/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { ICustomGoogleAnalyticsConfig } from "@progleasing/grit-universal-analytics"; import { GritAccordionEventData, GritCheckboxEventData, GritCheckboxGroupEventData, GritChipEventData, GritEventData, GritRadioEventData } from "./common/interfaces/event"; import { GritAutocompleteItemData, GritEventData as GritEventData1 } from "."; import { ALIGNMENT, BUTTON_COLOR, BUTTON_TYPE, CHECKBOX_GROUP_TYPE, COLOR, COLOR_PALETTE, ELEVATION, FIELD_HINT_OPTION, FIRE_ANALYTICS_TRIGGER, FLEX_DIRECTION, GritFieldStatus, ICON_FONT, LINEAR_LOADER_MESSAGE, LINEAR_LOADER_TYPE, LOGO_TYPE, MARKDOWN_HEADING, NOTIFICATION_INTERACTION, NOTIFICATION_TYPE, OVERLAY_TYPE, PADDING_ITEM_SIZE, POSITION, SELECT_DIRECTION, SELECT_TYPE, SIZE, SKELETON_ITEM_TYPE, STEPPER_STAGE, TARGET_TYPES } from "./common/interfaces/ui"; import { GritIconMode } from "./components/grit-icon/grit-icon"; import { ICustomAnalyticsConfig } from "./services/google-analytics.interfaces"; import { GritNotificationAction } from "./components/grit-notification/grit-notification"; import { retrieveElementRef } from "./components/grit-radio/grit-radio"; export namespace Components { interface AccordionDemo { } interface AnalyticsScroll { } interface AutocompleteDemo { } interface BadgesDemo { } interface ButtonsDemo { } interface CardsDemo { } interface CheckboxDemo { } interface ChipsDemo { } interface ClipboardCardDemo { } interface DebitCreditField { } interface DemoStepper { } interface FieldDemo { } interface FormsDemo { } interface GritWcAccordion { /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it's set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * This method closes the accordion component. */ "close": () => Promise; /** * Determines if accordion is opened or closed. */ "isOpen": boolean; /** * Determines level of

to

*/ "level": number; /** * This method opens the accordion component. */ "open": () => Promise; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; } interface GritWcAccordionGroup { /** * Determines if multiple accordions can be opened at the same time. */ "multiple": boolean; /** * An index representing the accordion to be defaulted to open. */ "open": number | Array; } interface GritWcAnalytics { } interface GritWcAutocomplete { /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * This method closes the autocomplete selectable list box with it’s collapse animation. */ "close": () => Promise; /** * Sets the autocomplete to disable state. */ "disabled": boolean; /** * Determines if listbox is currently displayed or hidden. */ "display": boolean; /** * If it contains an error, errorKey will match the corresponding autocomplete message and show the error. */ "errorKey": string; /** * Label string. */ "label": string; /** * Sets the autocomplete to match full case, if it’s false or not present, it will match with any case */ "matchFullCase": boolean; /** * Determines name property for the native input element. */ "name": string; /** * This method opens the autocomplete selectable list box with it’s expand animation. */ "open": () => Promise; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; /** * If it is set to true, it will show fields validation Icon. */ "useValidationIcon": boolean; /** * Value of the autocomplete. */ "value": string; } interface GritWcAutocompleteItem { "displayValue": string; /** * Variable used to re render the option with bold text. */ "filteredValue": string; /** * Value of the autocomplete option/item. */ "value": string | string[]; } interface GritWcBadge { /** * Description of icon or the context of the badge. */ "description": string; /** * Allows the use of the proper aria roles and attributes. */ "dynamic": boolean; /** * Fills and shows the progress icon, when there is a value between 0 and 100, this only works with type = COLOR.PRIMARY or COLOR.DEFAULT. */ "progress": number; /** * Hides or shows the icon. */ "showIcon": boolean; /** * Changes the badge's background-color and icon color in case there is one. */ "type": COLOR; } interface GritWcButton { /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * Sets buttons border-color, background-color, font color and the color it will have depending on interactions (hover, focus, etc). */ "color": BUTTON_COLOR; /** * Displays a button with no changes on hover/focus. */ "disabled": boolean; /** * Prompts the user to save the linked URL instead of navigating to it. */ "download": string; /** * The form attribute takes in the ID of the form the button will submit or reset. */ "form": string; /** * When `fullWidth` property is true, the button's width is set to 100% it's parent. */ "fullWidth": boolean; /** * If href is set, then the button will behave as an anchor. It's the hyperlink used in the anchor. */ "href": string; /** * If loading is set to true, a spinner will be rendered along the text. */ "loading": boolean; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; /** * The relationship of the linked URL as space-separated link types. */ "rel": string; /** * Changes the button height and paddings. */ "size": SIZE | string; /** * Target used in case the href prop is set. Possible values "_blank", "_self", "_parent", "_top". */ "target": string; /** * Changes the type of the button so it can be `submit` or `button`. */ "type": BUTTON_TYPE; } interface GritWcCard { /** * Sets the shown elevation of the card */ "elevation": ELEVATION; /** * Sets padding of the card */ "padding": PADDING_ITEM_SIZE | string; } interface GritWcCheckbox { /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * Will switch depending on if the checkbox is checked or not. */ "checked": boolean; /** * Disables the checkbox. */ "disabled": boolean; /** * Determines element id property. */ "elementId": string; /** * This prop will indicate whether error styles should be displayed or not */ "error": boolean; /** * indeterminate state masks the real value of the checkbox, checked or unchecked state will still change but it will not show when indeterminate value is true */ "indeterminate": boolean; /** * Determines where the label will be positioned relative to the checkbox. */ "labelAlignment": string; /** * Determines name property for the native input element. */ "name": string; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; } interface GritWcCheckboxGroup { /** * Sets direction of the card */ "direction": FLEX_DIRECTION | string; /** * indeterminateElement state masks the real value of the checkbox, checked or unchecked state will still change but it will not show when indeterminate value is true */ "indeterminateElement": boolean; /** * String used for the label element. */ "label": string; /** * Determines where the label will be positioned relative to the checkbox. */ "labelAlignment": string; /** * Specifies options */ "options": CHECKBOX_GROUP_TYPE[]; } interface GritWcChip { /** * The name of the icon to show to the right of the text in the chip. Leave unspecified to show no icon. */ "actionIcon": boolean; /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; "color": COLOR_PALETTE; /** * If it is set to true, it will allow the chip to be displayed in multiple lines */ "multiline": boolean; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; /** * If set to spanish, the aria-label will be set to spanish; */ "textLang": string; } interface GritWcClipboardCard { } interface GritWcField { /** * It's the custom object to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomGoogleAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * Uses this property to validate the field. */ "errorKey": string; /** * When to fire Google Analitycs trigger. */ "fireTriggerOption": FIRE_ANALYTICS_TRIGGER; /** * Sets the field hint option. */ "hintOption": FIELD_HINT_OPTION; /** * If it is set to true, no personally identifiable information will be pushed into Google Analytics. */ "pii": boolean; "setTouched": (touched: boolean) => Promise; "triggerRender": () => Promise; /** * changes padding and margins depending on the presence of suffix and prefix icons */ "updateIcons": () => Promise; /** * Force the field messages to re-render, useful when message content changes by the host application * @param forceRerender force the animation to play again regardless of the field state */ "updateMessages": (forceRerender?: boolean) => Promise; /** * Sets the field to show or not a validation icon. */ "useValidationIcons": boolean; } interface GritWcFieldIcon { "color": string; "visible": boolean; } interface GritWcIcon { /** * Sets the color the Icon will have, and if it's bordered, the color of the border. */ "color": COLOR; /** * Sets the type of font the icon has */ "font": ICON_FONT; /** * Hides the icon leaving the empty space as is, setting it's css visibility to false. */ "hidden": boolean; /** * Adds an `aria-label` with the value passed. If no value is passed then an `aria-hidden` will be true */ "label": string; /** * If 'border', adds the corresponding border styling. Otherwise, it only shows the icon. */ "mode": GritIconMode; /** * Height & Width of the icon in pixels. If the icon is bordered, the minimum size allowed for the icon is 24px so that the icon is rendered correctly. */ "size": number; } interface GritWcIconButton { /** * It's the custom event to be passed into the `GoogleAnalytics.getInstance().pushCustomEvent()` function. */ "analyticsCustomObj": ICustomAnalyticsConfig; /** * If it is set to false, no event will be pushed into Google Analytics. */ "analyticsEnabled": boolean; /** * Disables the button/anchor. */ "disabled": boolean; /** * If an href is passed, will render with the icon. By default it will render