/* 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 { IConf, KeyboardNavigationDisplay } from "./utils/utils"; export { IConf, KeyboardNavigationDisplay } from "./utils/utils"; export namespace Components { interface RenecoHierarchizedPicker { /** * @default true */ "activatedDragAndDrop": boolean; /** * This method clears the component from any selected value(s) */ "clearPicker": () => Promise; /** * The disabled property allow the component to be locked when set at true as any standard HTML component would be */ "disabled": boolean; /** * This method triggers a search inside of the tree based on the value passed to the method and displays the result */ "filterTree": (searchedValue: string) => Promise; "getError": () => Promise; "getSearchResult": () => Promise<{ data: any; matches: number; }>; /** * This method returns the current component's value */ "getValue": () => Promise; /** * Visual display style for keyboard navigation focused node: 'underlined' (default), 'pointer', 'badge', 'glow', 'bracket' */ "keyboardNavigationDisplay": KeyboardNavigationDisplay; /** * When set, this property triggers a search of the set value inside the tree as the method [filterTree] would This property exists as an alternative for react context in which we can't directly call the component's method [filterTree] */ "newfilter": string; /** * When set, this property allows the replacement of the [options] property of the component with the set value as the method [setOptions] would This property exists as an alternative for react context in which we can't directly call the component's method [setOptions] */ "newoptions": string; /** * The component's options as described in the IConf interface */ "options": string | IConf; "refreshPicker": (resetDefaultValue?: boolean) => Promise; "scrollToNodeWithId": (targetNodeId: any, setTargetedIdAsSelected?: boolean, displayChildren?: boolean, refreshPicker?: boolean) => Promise; /** * This method replaces the current component's options with the ones passed to the method */ "setOptions": (newOptions: IConf) => Promise; /** * This method display the current selected node to the user by expanding all it's parent nodes and scrolling inside the tree */ "showSelectedNodes": (addDelay?: boolean) => Promise; /** * The callback Function called when the value change of the component is triggered */ "valueChangeCallback": Function; } interface SearchInput { "placeholder": string; "setFocus": () => Promise; } } export interface RenecoHierarchizedPickerCustomEvent extends CustomEvent { detail: T; target: HTMLRenecoHierarchizedPickerElement; } export interface SearchInputCustomEvent extends CustomEvent { detail: T; target: HTMLSearchInputElement; } declare global { interface HTMLRenecoHierarchizedPickerElementEventMap { "valueChange": any; "itemDropped": any; "itemContextMenuItemClick": any; "searchResult": any; "navigateInTree": any; "errorRaised": any; } interface HTMLRenecoHierarchizedPickerElement extends Components.RenecoHierarchizedPicker, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLRenecoHierarchizedPickerElement, ev: RenecoHierarchizedPickerCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLRenecoHierarchizedPickerElement, ev: RenecoHierarchizedPickerCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLRenecoHierarchizedPickerElement: { prototype: HTMLRenecoHierarchizedPickerElement; new (): HTMLRenecoHierarchizedPickerElement; }; interface HTMLSearchInputElementEventMap { "inputFocus": void; "inputBlur": void; "search": string; } interface HTMLSearchInputElement extends Components.SearchInput, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLSearchInputElement, ev: SearchInputCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLSearchInputElement, ev: SearchInputCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSearchInputElement: { prototype: HTMLSearchInputElement; new (): HTMLSearchInputElement; }; interface HTMLElementTagNameMap { "reneco-hierarchized-picker": HTMLRenecoHierarchizedPickerElement; "search-input": HTMLSearchInputElement; } } declare namespace LocalJSX { interface RenecoHierarchizedPicker { /** * @default true */ "activatedDragAndDrop"?: boolean; /** * The disabled property allow the component to be locked when set at true as any standard HTML component would be */ "disabled"?: boolean; /** * Visual display style for keyboard navigation focused node: 'underlined' (default), 'pointer', 'badge', 'glow', 'bracket' */ "keyboardNavigationDisplay"?: KeyboardNavigationDisplay; /** * When set, this property triggers a search of the set value inside the tree as the method [filterTree] would This property exists as an alternative for react context in which we can't directly call the component's method [filterTree] */ "newfilter"?: string; /** * When set, this property allows the replacement of the [options] property of the component with the set value as the method [setOptions] would This property exists as an alternative for react context in which we can't directly call the component's method [setOptions] */ "newoptions"?: string; /** * This event is emitted when the picker suffers an error */ "onErrorRaised"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * This event can only be emitted when the component is in tree mode and the menu item context is set It will fire when the user clicks in the menu item, providing the item which has been clicked in the menu along with the focused node's ID */ "onItemContextMenuItemClick"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * This event can only be emitted when the component is in tree mode and the drag and drop feature enabled It will fire when a node is dropped inside of the tree and provides the node after, before or in which the node is dropped along with it's ID */ "onItemDropped"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * This event is emitted when the user navigates in the tree */ "onNavigateInTree"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * This event is emitted when the component's value is modified, providing the new value of the component */ "onSearchResult"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * This event is emitted when the component's value is modified, providing the new value of the component */ "onValueChange"?: (event: RenecoHierarchizedPickerCustomEvent) => void; /** * The component's options as described in the IConf interface */ "options"?: string | IConf; /** * The callback Function called when the value change of the component is triggered */ "valueChangeCallback"?: Function; } interface SearchInput { "onInputBlur"?: (event: SearchInputCustomEvent) => void; "onInputFocus"?: (event: SearchInputCustomEvent) => void; "onSearch"?: (event: SearchInputCustomEvent) => void; "placeholder"?: string; } interface RenecoHierarchizedPickerAttributes { "options": string | IConf; "disabled": boolean; "keyboardNavigationDisplay": KeyboardNavigationDisplay; "newoptions": string; "newfilter": string; "activatedDragAndDrop": boolean; } interface SearchInputAttributes { "placeholder": string; } interface IntrinsicElements { "reneco-hierarchized-picker": Omit & { [K in keyof RenecoHierarchizedPicker & keyof RenecoHierarchizedPickerAttributes]?: RenecoHierarchizedPicker[K] } & { [K in keyof RenecoHierarchizedPicker & keyof RenecoHierarchizedPickerAttributes as `attr:${K}`]?: RenecoHierarchizedPickerAttributes[K] } & { [K in keyof RenecoHierarchizedPicker & keyof RenecoHierarchizedPickerAttributes as `prop:${K}`]?: RenecoHierarchizedPicker[K] }; "search-input": Omit & { [K in keyof SearchInput & keyof SearchInputAttributes]?: SearchInput[K] } & { [K in keyof SearchInput & keyof SearchInputAttributes as `attr:${K}`]?: SearchInputAttributes[K] } & { [K in keyof SearchInput & keyof SearchInputAttributes as `prop:${K}`]?: SearchInput[K] }; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "reneco-hierarchized-picker": LocalJSX.IntrinsicElements["reneco-hierarchized-picker"] & JSXBase.HTMLAttributes; "search-input": LocalJSX.IntrinsicElements["search-input"] & JSXBase.HTMLAttributes; } } }