/* 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 { AddItemTextFn, AjaxFn, ClassNames, CustomAddItemText, FuseOptions, ItemFilterFn, MaxItemTextFn, NoChoicesTextFn, NoResultsTextFn, OnCreateTemplates, OnInit, SortFn, UniqueItemText, ValueCompareFunction, } from "./components/choicesjs-stencil/interfaces"; export namespace Components { interface ChoicesjsStencil { "addItemFilter": string | RegExp | ItemFilterFn; "addItemText": string | AddItemTextFn; "addItems": boolean; "ajax": (fn: AjaxFn) => Promise; "appendValue": string; "callbackOnCreateTemplates": OnCreateTemplates; "callbackOnInit": OnInit; "choices": Array; "classNames": ClassNames; "clearChoices": () => Promise; "clearInput": () => Promise; "clearStore": () => Promise; "customAddItemText": CustomAddItemText; "delimiter": string; "disable": () => Promise; "duplicateItemsAllowed": boolean; "editItems": boolean; "enable": () => Promise; "fuseOptions": FuseOptions; "getValue": (valueOnly?: boolean) => Promise; "hideDropdown": (blurInput?: boolean) => Promise; "highlightAll": () => Promise; "highlightItem": (item: HTMLElement, runEvent?: boolean) => Promise; "itemSelectText": string; "items": Array; "loadingText": string; "maxItemCount": number; "maxItemText": string | MaxItemTextFn; "name": string; "noChoicesText": string | NoChoicesTextFn; "noResultsText": string | NoResultsTextFn; "paste": boolean; "placeholder": boolean | string; "placeholderValue": string; "position": "auto" | "top" | "bottom"; "prependValue": string; "removeActiveItems": (excludedId?: number) => Promise; "removeActiveItemsByValue": (value: string) => Promise; "removeHighlightedItems": (runEvent?: boolean) => Promise; "removeItemButton": boolean; "removeItems": boolean; "renderChoiceLimit": number; "renderSelectedChoices": "always" | "auto"; "resetScrollPosition": boolean; "searchChoices": boolean; "searchEnabled": boolean; "searchFields": Array | string; "searchFloor": number; "searchPlaceholderValue": string; "searchResultLimit": number; "setChoiceByValue": (value: string | string[]) => Promise; "setChoices": (choices: any[], value: string, label: string, replaceChoices?: boolean) => Promise; "setValue": (args: any[]) => Promise; "shouldSort": boolean; "shouldSortItems": boolean; "showDropdown": (focusInput?: boolean) => Promise; "silent": boolean; "sorter": SortFn; "type"?: "single" | "multiple" | "text"; "unhighlightAll": () => Promise; "unhighlightItem": (item: HTMLElement) => Promise; "uniqueItemText": UniqueItemText; "value": string; "valueComparer": ValueCompareFunction; } } declare global { interface HTMLChoicesjsStencilElement extends Components.ChoicesjsStencil, HTMLStencilElement { } var HTMLChoicesjsStencilElement: { prototype: HTMLChoicesjsStencilElement; new (): HTMLChoicesjsStencilElement; }; interface HTMLElementTagNameMap { "choicesjs-stencil": HTMLChoicesjsStencilElement; } } declare namespace LocalJSX { interface ChoicesjsStencil { "addItemFilter"?: string | RegExp | ItemFilterFn; "addItemText"?: string | AddItemTextFn; "addItems"?: boolean; "appendValue"?: string; "callbackOnCreateTemplates"?: OnCreateTemplates; "callbackOnInit"?: OnInit; "choices"?: Array; "classNames"?: ClassNames; "customAddItemText"?: CustomAddItemText; "delimiter"?: string; "duplicateItemsAllowed"?: boolean; "editItems"?: boolean; "fuseOptions"?: FuseOptions; "itemSelectText"?: string; "items"?: Array; "loadingText"?: string; "maxItemCount"?: number; "maxItemText"?: string | MaxItemTextFn; "name"?: string; "noChoicesText"?: string | NoChoicesTextFn; "noResultsText"?: string | NoResultsTextFn; "paste"?: boolean; "placeholder"?: boolean | string; "placeholderValue"?: string; "position"?: "auto" | "top" | "bottom"; "prependValue"?: string; "removeItemButton"?: boolean; "removeItems"?: boolean; "renderChoiceLimit"?: number; "renderSelectedChoices"?: "always" | "auto"; "resetScrollPosition"?: boolean; "searchChoices"?: boolean; "searchEnabled"?: boolean; "searchFields"?: Array | string; "searchFloor"?: number; "searchPlaceholderValue"?: string; "searchResultLimit"?: number; "shouldSort"?: boolean; "shouldSortItems"?: boolean; "silent"?: boolean; "sorter"?: SortFn; "type"?: "single" | "multiple" | "text"; "uniqueItemText"?: UniqueItemText; "value"?: string; "valueComparer"?: ValueCompareFunction; } interface IntrinsicElements { "choicesjs-stencil": ChoicesjsStencil; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "choicesjs-stencil": LocalJSX.ChoicesjsStencil & JSXBase.HTMLAttributes; } } }