1- import { Controller } from '@hotwired/stimulus' ;
2- import TomSelect from 'tom-select' ;
3- export interface AutocompletePreConnectOptions {
4- options : any ;
1+ import { Controller } from "@hotwired/stimulus" ;
2+ import TomSelect from "tom-select" ;
3+
4+ //#region src/controller.d.ts
5+ interface AutocompletePreConnectOptions {
6+ options : any ;
57}
6- export interface AutocompleteConnectOptions {
7- tomSelect : TomSelect ;
8- options : any ;
8+ interface AutocompleteConnectOptions {
9+ tomSelect : TomSelect ;
10+ options : any ;
911}
10- export default class extends Controller {
11- #private;
12- static values : {
13- url : StringConstructor ;
14- optionsAsHtml : BooleanConstructor ;
15- loadingMoreText : StringConstructor ;
16- noResultsFoundText : StringConstructor ;
17- noMoreResultsText : StringConstructor ;
18- createOptionText : StringConstructor ;
19- minCharacters : NumberConstructor ;
20- tomSelectOptions : ObjectConstructor ;
21- preload : StringConstructor ;
22- } ;
23- readonly urlValue : string ;
24- readonly optionsAsHtmlValue : boolean ;
25- readonly loadingMoreTextValue : string ;
26- readonly noMoreResultsTextValue : string ;
27- readonly noResultsFoundTextValue : string ;
28- readonly createOptionTextValue : string ;
29- readonly minCharactersValue : number ;
30- readonly hasMinCharactersValue : boolean ;
31- readonly tomSelectOptionsValue : object ;
32- readonly hasPreloadValue : boolean ;
33- readonly preloadValue : string ;
34- tomSelect : TomSelect ;
35- private mutationObserver ;
36- private isObserving ;
37- private hasLoadedChoicesPreviously ;
38- private originalOptions ;
39- initialize ( ) : void ;
40- connect ( ) : void ;
41- initializeTomSelect ( ) : void ;
42- disconnect ( ) : void ;
43- urlValueChanged ( ) : void ;
44- private getMaxOptions ;
45- get selectElement ( ) : HTMLSelectElement | null ;
46- get formElement ( ) : HTMLInputElement | HTMLSelectElement ;
47- private dispatchEvent ;
48- get preload ( ) : string | boolean ;
49- private resetTomSelect ;
50- private changeTomSelectDisabledState ;
51- private startMutationObserver ;
52- private stopMutationObserver ;
53- private onMutations ;
54- private createOptionsDataStructure ;
55- private areOptionsEquivalent ;
12+ declare class export_default extends Controller {
13+ #private;
14+ static values : {
15+ url : StringConstructor ;
16+ optionsAsHtml : BooleanConstructor ;
17+ loadingMoreText : StringConstructor ;
18+ noResultsFoundText : StringConstructor ;
19+ noMoreResultsText : StringConstructor ;
20+ createOptionText : StringConstructor ;
21+ minCharacters : NumberConstructor ;
22+ tomSelectOptions : ObjectConstructor ;
23+ preload : StringConstructor ;
24+ } ;
25+ readonly urlValue : string ;
26+ readonly optionsAsHtmlValue : boolean ;
27+ readonly loadingMoreTextValue : string ;
28+ readonly noMoreResultsTextValue : string ;
29+ readonly noResultsFoundTextValue : string ;
30+ readonly createOptionTextValue : string ;
31+ readonly minCharactersValue : number ;
32+ readonly hasMinCharactersValue : boolean ;
33+ readonly tomSelectOptionsValue : object ;
34+ readonly hasPreloadValue : boolean ;
35+ readonly preloadValue : string ;
36+ tomSelect : TomSelect ;
37+ private mutationObserver ;
38+ private isObserving ;
39+ private hasLoadedChoicesPreviously ;
40+ private originalOptions ;
41+ initialize ( ) : void ;
42+ connect ( ) : void ;
43+ initializeTomSelect ( ) : void ;
44+ disconnect ( ) : void ;
45+ urlValueChanged ( ) : void ;
46+ private getMaxOptions ;
47+ get selectElement ( ) : HTMLSelectElement | null ;
48+ get formElement ( ) : HTMLInputElement | HTMLSelectElement ;
49+ private dispatchEvent ;
50+ get preload ( ) : string | boolean ;
51+ private resetTomSelect ;
52+ private changeTomSelectDisabledState ;
53+ private startMutationObserver ;
54+ private stopMutationObserver ;
55+ private onMutations ;
56+ private createOptionsDataStructure ;
57+ private areOptionsEquivalent ;
5658}
59+ //#endregion
60+ export { AutocompleteConnectOptions , AutocompletePreConnectOptions , export_default as default } ;
0 commit comments