@preline/non-auto 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +51 -0
  2. package/index.d.ts +1773 -0
  3. package/index.js +212 -0
  4. package/package.json +15 -0
package/index.d.ts ADDED
@@ -0,0 +1,1773 @@
1
+ import { VirtualElement } from '@floating-ui/dom';
2
+ import { Config } from 'datatables.net-dt';
3
+ import { DropzoneOptions } from 'dropzone';
4
+ import { Options as Options$1 } from 'nouislider';
5
+ import { DatesArr } from 'vanilla-calendar-pro';
6
+ import { Options } from 'vanilla-calendar-pro/types';
7
+
8
+ export interface ICopyMarkupOptions {
9
+ targetSelector: string;
10
+ wrapperSelector: string;
11
+ limit?: number;
12
+ }
13
+ export interface ICopyMarkup {
14
+ options?: ICopyMarkupOptions;
15
+ delete(target: HTMLElement): void;
16
+ destroy(): void;
17
+ }
18
+ export interface IBasePlugin<O, E> {
19
+ el: E;
20
+ options?: O;
21
+ events?: {};
22
+ }
23
+ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
24
+ el: E;
25
+ options: O;
26
+ events?: any;
27
+ constructor(el: E, options: O, events?: any);
28
+ createCollection(collection: any[], element: any): void;
29
+ fireEvent(evt: string, payload?: any): any;
30
+ on(evt: string, cb: Function): void;
31
+ }
32
+ export declare class HSCopyMarkup extends HSBasePlugin<ICopyMarkupOptions> implements ICopyMarkup {
33
+ private readonly targetSelector;
34
+ private readonly wrapperSelector;
35
+ private readonly limit;
36
+ private target;
37
+ private wrapper;
38
+ private items;
39
+ private onElementClickListener;
40
+ private onDeleteItemButtonClickListener;
41
+ constructor(el: HTMLElement, options?: ICopyMarkupOptions);
42
+ private elementClick;
43
+ private deleteItemButtonClick;
44
+ private init;
45
+ private copy;
46
+ private addPredefinedItems;
47
+ private setTarget;
48
+ private setWrapper;
49
+ private addToItems;
50
+ delete(target: HTMLElement): void;
51
+ destroy(): void;
52
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
53
+ static autoInit(): void;
54
+ }
55
+ export interface IAccordionTreeViewStaticOptions {
56
+ }
57
+ export interface IAccordionTreeView {
58
+ el: HTMLElement | null;
59
+ options?: IAccordionTreeViewStaticOptions;
60
+ listeners?: {
61
+ el: HTMLElement;
62
+ listener: (evt: Event) => void;
63
+ }[];
64
+ }
65
+ export interface IAccordionOptions {
66
+ }
67
+ export interface IAccordion {
68
+ options?: IAccordionOptions;
69
+ toggleClick(evt: Event): void;
70
+ show(): void;
71
+ hide(): void;
72
+ update(): void;
73
+ destroy(): void;
74
+ }
75
+ export declare class HSAccordion extends HSBasePlugin<IAccordionOptions> implements IAccordion {
76
+ private toggle;
77
+ content: HTMLElement | null;
78
+ private group;
79
+ private isAlwaysOpened;
80
+ private keepOneOpen;
81
+ private isToggleStopPropagated;
82
+ private onToggleClickListener;
83
+ static selectable: IAccordionTreeView[];
84
+ constructor(el: HTMLElement, options?: IAccordionOptions, events?: {});
85
+ private init;
86
+ toggleClick(evt: Event): boolean;
87
+ show(): boolean;
88
+ hide(): boolean;
89
+ update(): boolean;
90
+ destroy(): void;
91
+ private static findInCollection;
92
+ static autoInit(): void;
93
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
94
+ static show(target: HSAccordion | HTMLElement | string): void;
95
+ static hide(target: HSAccordion | HTMLElement | string): void;
96
+ static onSelectableClick: (evt: Event, item: IAccordionTreeView, el: HTMLElement) => void;
97
+ static treeView(): boolean;
98
+ static toggleSelected(root: IAccordionTreeView, item: HTMLElement): void;
99
+ static on(evt: string, target: HSAccordion | HTMLElement | string, cb: Function): void;
100
+ }
101
+ export type TCarouselOptionsSlidesQty = {
102
+ [key: string]: number;
103
+ };
104
+ export interface ICarouselOptions {
105
+ currentIndex: number;
106
+ loadingClasses?: string | string[];
107
+ dotsItemClasses?: string;
108
+ mode?: "default" | "scroll-nav";
109
+ isAutoHeight?: boolean;
110
+ isAutoPlay?: boolean;
111
+ isCentered?: boolean;
112
+ isDraggable?: boolean;
113
+ isInfiniteLoop?: boolean;
114
+ isRTL?: boolean;
115
+ isSnap?: boolean;
116
+ hasSnapSpacers?: boolean;
117
+ slidesQty?: TCarouselOptionsSlidesQty | number;
118
+ speed?: number;
119
+ updateDelay?: number;
120
+ }
121
+ export interface ICarousel {
122
+ options?: ICarouselOptions;
123
+ recalculateWidth(): void;
124
+ goToPrev(): void;
125
+ goToNext(): void;
126
+ goTo(i: number): void;
127
+ destroy(): void;
128
+ }
129
+ export declare class HSCarousel extends HSBasePlugin<ICarouselOptions> implements ICarousel {
130
+ private currentIndex;
131
+ private readonly loadingClasses;
132
+ private readonly dotsItemClasses;
133
+ private readonly isAutoHeight;
134
+ private readonly isAutoPlay;
135
+ private readonly isCentered;
136
+ private readonly isDraggable;
137
+ private readonly isInfiniteLoop;
138
+ private readonly isRTL;
139
+ private readonly isSnap;
140
+ private readonly hasSnapSpacers;
141
+ private readonly slidesQty;
142
+ private readonly speed;
143
+ private readonly updateDelay;
144
+ private readonly loadingClassesRemove;
145
+ private readonly loadingClassesAdd;
146
+ private readonly afterLoadingClassesAdd;
147
+ private readonly container;
148
+ private readonly inner;
149
+ private readonly slides;
150
+ private readonly prev;
151
+ private readonly next;
152
+ private readonly dots;
153
+ private dotsItems;
154
+ private readonly info;
155
+ private readonly infoTotal;
156
+ private readonly infoCurrent;
157
+ private sliderWidth;
158
+ private timer;
159
+ private isScrolling;
160
+ private isDragging;
161
+ private dragStartX;
162
+ private initialTranslateX;
163
+ private readonly touchX;
164
+ private readonly touchY;
165
+ private resizeContainer;
166
+ resizeContainerWidth: number;
167
+ private onPrevClickListener;
168
+ private onNextClickListener;
169
+ private onContainerScrollListener;
170
+ private onElementTouchStartListener;
171
+ private onElementTouchEndListener;
172
+ private onInnerMouseDownListener;
173
+ private onInnerTouchStartListener;
174
+ private onDocumentMouseMoveListener;
175
+ private onDocumentTouchMoveListener;
176
+ private onDocumentMouseUpListener;
177
+ private onDocumentTouchEndListener;
178
+ private onDotClickListener;
179
+ constructor(el: HTMLElement, options?: ICarouselOptions);
180
+ private setIsSnap;
181
+ private prevClick;
182
+ private nextClick;
183
+ private containerScroll;
184
+ private elementTouchStart;
185
+ private elementTouchEnd;
186
+ private innerMouseDown;
187
+ private innerTouchStart;
188
+ private documentMouseMove;
189
+ private documentTouchMove;
190
+ private documentMouseUp;
191
+ private documentTouchEnd;
192
+ private dotClick;
193
+ private init;
194
+ private initDragHandling;
195
+ private getTranslateXValue;
196
+ private removeClickEventWhileDragging;
197
+ private handleDragStart;
198
+ private handleDragMove;
199
+ private handleDragEnd;
200
+ private getEventX;
201
+ private getCurrentSlidesQty;
202
+ private buildSnapSpacers;
203
+ private initDots;
204
+ private buildDots;
205
+ private setDots;
206
+ private goToCurrentDot;
207
+ private buildInfo;
208
+ private setInfoTotal;
209
+ private setInfoCurrent;
210
+ private buildSingleDot;
211
+ private singleDotEvents;
212
+ private observeResize;
213
+ private calculateWidth;
214
+ private addCurrentClass;
215
+ private setCurrentDot;
216
+ private setElementToDisabled;
217
+ private unsetElementToDisabled;
218
+ private addDisabledClass;
219
+ private autoPlay;
220
+ private setTimer;
221
+ private resetTimer;
222
+ private detectDirection;
223
+ private calculateTransform;
224
+ private setTransform;
225
+ private setTranslate;
226
+ private setIndex;
227
+ recalculateWidth(): void;
228
+ goToPrev(): void;
229
+ goToNext(): void;
230
+ goTo(i: number): void;
231
+ destroy(): void;
232
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
233
+ static autoInit(): void;
234
+ }
235
+ export interface ICollapse {
236
+ options?: {};
237
+ show(): void;
238
+ hide(): void;
239
+ destroy(): void;
240
+ }
241
+ export declare class HSCollapse extends HSBasePlugin<{}> implements ICollapse {
242
+ private readonly contentId;
243
+ content: HTMLElement | null;
244
+ private animationInProcess;
245
+ private onElementClickListener;
246
+ constructor(el: HTMLElement, options?: {}, events?: {});
247
+ private elementClick;
248
+ private init;
249
+ private hideAllMegaMenuItems;
250
+ show(): boolean;
251
+ hide(): boolean;
252
+ destroy(): void;
253
+ private static findInCollection;
254
+ static getInstance(target: HTMLElement, isInstance?: boolean): any;
255
+ static autoInit(): void;
256
+ static show(target: HSCollapse | HTMLElement | string): void;
257
+ static hide(target: HSCollapse | HTMLElement | string): void;
258
+ static on(evt: string, target: HSCollapse | HTMLElement | string, cb: Function): void;
259
+ }
260
+ export interface IComboBoxOptions {
261
+ gap?: number;
262
+ viewport?: string | HTMLElement | null;
263
+ preventVisibility?: boolean;
264
+ minSearchLength?: number;
265
+ apiUrl?: string | null;
266
+ apiDataPart?: string | null;
267
+ apiQuery?: string | null;
268
+ apiSearchQuery?: string | null;
269
+ apiSearchPath?: string | null;
270
+ apiSearchDefaultPath?: string | null;
271
+ apiHeaders?: {};
272
+ apiGroupField?: string | null;
273
+ outputItemTemplate?: string | null;
274
+ outputEmptyTemplate?: string | null;
275
+ outputLoaderTemplate?: string | null;
276
+ groupingType?: "default" | "tabs" | null;
277
+ groupingTitleTemplate?: string | null;
278
+ tabsWrapperTemplate?: string | null;
279
+ preventSelection?: boolean;
280
+ preventAutoPosition?: boolean;
281
+ preventClientFiltering?: boolean;
282
+ isOpenOnFocus?: boolean;
283
+ keepOriginalOrder?: boolean;
284
+ preserveSelectionOnEmpty?: boolean;
285
+ }
286
+ export interface IComboBox {
287
+ options?: IComboBoxOptions;
288
+ getCurrentData(): {} | {}[];
289
+ open(): void;
290
+ close(): void;
291
+ recalculateDirection(): void;
292
+ destroy(): void;
293
+ }
294
+ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
295
+ gap: number;
296
+ viewport: string | HTMLElement | null;
297
+ preventVisibility: boolean;
298
+ minSearchLength: number;
299
+ apiUrl: string | null;
300
+ apiDataPart: string | null;
301
+ apiQuery: string | null;
302
+ apiSearchQuery: string | null;
303
+ apiSearchPath: string | null;
304
+ apiSearchDefaultPath: string | null;
305
+ apiHeaders: {};
306
+ apiGroupField: string | null;
307
+ outputItemTemplate: string | null;
308
+ outputEmptyTemplate: string | null;
309
+ outputLoaderTemplate: string | null;
310
+ groupingType: "default" | "tabs" | null;
311
+ groupingTitleTemplate: string | null;
312
+ tabsWrapperTemplate: string | null;
313
+ preventSelection: boolean;
314
+ preventAutoPosition: boolean;
315
+ preventClientFiltering: boolean;
316
+ isOpenOnFocus: boolean;
317
+ keepOriginalOrder: boolean;
318
+ preserveSelectionOnEmpty: boolean;
319
+ private accessibilityComponent;
320
+ private readonly input;
321
+ private readonly output;
322
+ private readonly itemsWrapper;
323
+ private items;
324
+ private tabs;
325
+ private readonly toggle;
326
+ private readonly toggleClose;
327
+ private readonly toggleOpen;
328
+ private outputPlaceholder;
329
+ private outputLoader;
330
+ private value;
331
+ private selected;
332
+ private currentData;
333
+ private groups;
334
+ private selectedGroup;
335
+ isOpened: boolean;
336
+ isCurrent: boolean;
337
+ private animationInProcess;
338
+ private isSearchLengthExceeded;
339
+ private lastQuery;
340
+ private queryAbortController?;
341
+ private onInputFocusListener;
342
+ private onInputInputListener;
343
+ private onToggleClickListener;
344
+ private onToggleCloseClickListener;
345
+ private onToggleOpenClickListener;
346
+ constructor(el: HTMLElement, options?: IComboBoxOptions, events?: {});
347
+ private inputFocus;
348
+ private inputInput;
349
+ private toggleClick;
350
+ private toggleCloseClick;
351
+ private toggleOpenClick;
352
+ private init;
353
+ private build;
354
+ private getNestedProperty;
355
+ private setValue;
356
+ private setValueAndOpen;
357
+ private setValueAndClear;
358
+ private setSelectedByValue;
359
+ private setResultAndRender;
360
+ private setResults;
361
+ private updatePlaceholderVisibility;
362
+ private setGroups;
363
+ private setApiGroups;
364
+ private setItemsVisibility;
365
+ private isTextExistsAny;
366
+ private hasVisibleItems;
367
+ private valuesBySelector;
368
+ private sortItems;
369
+ private buildInput;
370
+ private buildItems;
371
+ private buildOutputLoader;
372
+ private buildToggle;
373
+ private buildToggleClose;
374
+ private buildToggleOpen;
375
+ private buildOutputPlaceholder;
376
+ private destroyOutputLoader;
377
+ private itemRender;
378
+ private plainRender;
379
+ private jsonItemsRender;
380
+ private groupDefaultRender;
381
+ private groupTabsRender;
382
+ private itemsFromHtml;
383
+ private itemsFromJson;
384
+ private appendItemsToWrapper;
385
+ private resultItems;
386
+ private destroyOutputPlaceholder;
387
+ private setHighlighted;
388
+ private setupAccessibility;
389
+ private onEnter;
390
+ private focusMenuItem;
391
+ private onStartEnd;
392
+ getCurrentData(): {} | {}[];
393
+ setCurrent(): void;
394
+ open(val?: string): boolean;
395
+ close(val?: string | null, data?: {} | null): boolean;
396
+ recalculateDirection(): void;
397
+ destroy(): void;
398
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
399
+ static autoInit(): void;
400
+ static close(target: HTMLElement | string): void;
401
+ static closeCurrentlyOpened(evtTarget?: HTMLElement | null): void;
402
+ }
403
+ export interface IDataTablePagingOptions {
404
+ pageBtnClasses?: string;
405
+ }
406
+ export interface IDataTableRowSelectingOptions {
407
+ selectAllSelector?: string;
408
+ individualSelector?: string;
409
+ }
410
+ export interface IDataTableOptions extends Config {
411
+ rowSelectingOptions?: IDataTableRowSelectingOptions;
412
+ pagingOptions?: IDataTablePagingOptions;
413
+ }
414
+ export interface IDataTable {
415
+ options?: IDataTableOptions;
416
+ destroy(): void;
417
+ }
418
+ export declare class HSDataTable extends HSBasePlugin<IDataTableOptions> implements IDataTable {
419
+ private concatOptions;
420
+ private dataTable;
421
+ private readonly table;
422
+ private searches;
423
+ private pageEntitiesList;
424
+ private pagingList;
425
+ private pagingPagesList;
426
+ private pagingPrevList;
427
+ private pagingNextList;
428
+ private readonly infoList;
429
+ private rowSelectingAll;
430
+ private rowSelectingIndividual;
431
+ private maxPagesToShow;
432
+ private isRowSelecting;
433
+ private readonly pageBtnClasses;
434
+ private onSearchInputListener;
435
+ private onPageEntitiesChangeListener;
436
+ private onSinglePagingClickListener;
437
+ private onPagingPrevClickListener;
438
+ private onPagingNextClickListener;
439
+ private onRowSelectingAllChangeListener;
440
+ constructor(el: HTMLElement, options?: IDataTableOptions, events?: {});
441
+ private init;
442
+ private initTable;
443
+ private searchInput;
444
+ private pageEntitiesChange;
445
+ private pagingPrevClick;
446
+ private pagingNextClick;
447
+ private rowSelectingAllChange;
448
+ private singlePagingClick;
449
+ private initSearch;
450
+ private onSearchInput;
451
+ private initPageEntities;
452
+ private onEntitiesChange;
453
+ private initInfo;
454
+ private initInfoFrom;
455
+ private initInfoTo;
456
+ private initInfoLength;
457
+ private updateInfo;
458
+ private initPaging;
459
+ private hidePagingIfSinglePage;
460
+ private initPagingPrev;
461
+ private onPrevClick;
462
+ private disablePagingArrow;
463
+ private initPagingNext;
464
+ private onNextClick;
465
+ private buildPagingPages;
466
+ private updatePaging;
467
+ private buildPagingPage;
468
+ private onPageClick;
469
+ private initRowSelecting;
470
+ private triggerChangeEventToRow;
471
+ private onSelectAllChange;
472
+ private updateSelectAllCheckbox;
473
+ destroy(): void;
474
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
475
+ static autoInit(): void;
476
+ }
477
+ export interface ISingleOptionOptions {
478
+ description?: string;
479
+ icon?: string;
480
+ additionalClasses?: [
481
+ string,
482
+ string[]
483
+ ][];
484
+ apiFields?: {
485
+ [key: string]: unknown;
486
+ };
487
+ }
488
+ export interface ISingleOption {
489
+ title: string;
490
+ val: string;
491
+ disabled?: boolean;
492
+ selected?: boolean;
493
+ options?: ISingleOptionOptions | null;
494
+ optgroupName?: string | null;
495
+ }
496
+ export interface IApiFieldMap {
497
+ id: string;
498
+ val: string;
499
+ title: string;
500
+ icon?: string | null;
501
+ description?: string | null;
502
+ page?: string;
503
+ offset?: string;
504
+ limit?: string;
505
+ pageStart?: string;
506
+ totalPath?: string;
507
+ [key: string]: unknown;
508
+ }
509
+ export interface ISelectOptions {
510
+ value?: string | string[];
511
+ isOpened?: boolean;
512
+ placeholder?: string;
513
+ hasSearch?: boolean;
514
+ minSearchLength?: number;
515
+ preventSearchFocus?: boolean;
516
+ preventSearchInsideDescription?: boolean;
517
+ mode?: string;
518
+ scrollToSelected?: boolean;
519
+ viewport?: string;
520
+ wrapperClasses?: string;
521
+ apiUrl?: string | null;
522
+ apiQuery?: string | null;
523
+ apiOptions?: RequestInit | null;
524
+ apiDataPart?: string | null;
525
+ apiSearchQueryKey?: string | null;
526
+ apiFieldsMap?: IApiFieldMap | null;
527
+ apiSelectedValues?: string | string[];
528
+ apiIconTag?: string | null;
529
+ apiLoadMore?: boolean | {
530
+ perPage: number;
531
+ scrollThreshold: number;
532
+ };
533
+ apiPageStart?: number;
534
+ apiTotalPath?: string | null;
535
+ useTagsInputAsSearch?: boolean;
536
+ toggleTag?: string;
537
+ toggleClasses?: string;
538
+ toggleSeparators?: {
539
+ items?: string;
540
+ betweenItemsAndCounter?: string;
541
+ };
542
+ toggleCountText?: string | null;
543
+ toggleCountTextPlacement?: "postfix" | "prefix" | "postfix-no-space" | "prefix-no-space";
544
+ toggleCountTextMinItems?: number;
545
+ toggleCountTextMode?: string;
546
+ tagsItemTemplate?: string;
547
+ tagsItemClasses?: string;
548
+ tagsInputId?: string;
549
+ tagsInputClasses?: string;
550
+ dropdownTag?: string;
551
+ dropdownClasses?: string;
552
+ dropdownDirectionClasses?: {
553
+ top?: string;
554
+ bottom?: string;
555
+ };
556
+ dropdownSpace: number;
557
+ dropdownPlacement: string | null;
558
+ dropdownVerticalFixedPlacement: "top" | "bottom" | null;
559
+ dropdownScope: "window" | "parent";
560
+ extraMarkup?: string | string[] | null;
561
+ searchTemplate?: string;
562
+ searchWrapperTemplate?: string;
563
+ searchId?: string;
564
+ searchLimit?: number | typeof Infinity;
565
+ isSearchDirectMatch?: boolean;
566
+ searchMatchMode?: "substring" | "chars-sequence" | "token-all" | "hybrid";
567
+ searchClasses?: string;
568
+ searchWrapperClasses?: string;
569
+ searchPlaceholder?: string;
570
+ searchNoResultTemplate?: string | null;
571
+ searchNoResultText?: string | null;
572
+ searchNoResultClasses?: string | null;
573
+ optionAllowEmptyOption?: boolean;
574
+ optionTemplate?: string;
575
+ optionTag?: string;
576
+ optionClasses?: string;
577
+ optgroupTag?: string;
578
+ optgroupClasses?: string;
579
+ descriptionClasses?: string;
580
+ iconClasses?: string;
581
+ isAddTagOnEnter?: boolean;
582
+ dropdownAutoPlacement?: boolean;
583
+ isSelectedOptionOnTop?: boolean;
584
+ }
585
+ export interface ISelect {
586
+ options?: ISelectOptions;
587
+ setValue(val: string | string[]): void;
588
+ open(): void;
589
+ close(): void;
590
+ addOption(items: ISingleOption | ISingleOption[]): void;
591
+ removeOption(values: string | string[]): void;
592
+ recalculateDirection(): void;
593
+ destroy(): void;
594
+ }
595
+ export interface ICustomDatepickerOptions extends Options {
596
+ removeDefaultStyles?: boolean;
597
+ mode?: "custom-select" | "default";
598
+ applyUtilityClasses?: boolean;
599
+ inputModeOptions?: {
600
+ dateSeparator?: string;
601
+ itemsSeparator?: string;
602
+ };
603
+ templates?: {
604
+ time?: string;
605
+ arrowPrev?: string;
606
+ arrowNext?: string;
607
+ };
608
+ styles?: Options["styles"] & {
609
+ customSelect?: {
610
+ shared?: ISelectOptions;
611
+ years?: ISelectOptions;
612
+ months?: ISelectOptions;
613
+ hours?: ISelectOptions;
614
+ minutes?: ISelectOptions;
615
+ meridiem?: ISelectOptions;
616
+ };
617
+ };
618
+ dateFormat?: string;
619
+ dateLocale?: string;
620
+ replaceTodayWithText?: boolean;
621
+ }
622
+ export interface IDatepicker {
623
+ options?: ICustomDatepickerOptions;
624
+ formatDate(date: string | number | Date, format?: string): string;
625
+ }
626
+ export declare class HSDatepicker extends HSBasePlugin<{}> implements IDatepicker {
627
+ private dataOptions;
628
+ private concatOptions;
629
+ private updatedStyles;
630
+ private applyUtilityClasses;
631
+ private templatesByType;
632
+ private vanillaCalendar;
633
+ constructor(el: HTMLElement, options?: {}, events?: {});
634
+ private init;
635
+ private getTimeParts;
636
+ private getCurrentMonthAndYear;
637
+ private extractSeparatorFromFormat;
638
+ private setInputValue;
639
+ private getLocalizedTodayText;
640
+ private changeDateSeparator;
641
+ private formatDateArrayToIndividualDates;
642
+ private hasTime;
643
+ private createArrowFromTemplate;
644
+ private concatObjectProperties;
645
+ private updateTemplate;
646
+ private initCustomTime;
647
+ private initCustomMonths;
648
+ private initCustomYears;
649
+ private generateCustomTimeMarkup;
650
+ private generateCustomMonthMarkup;
651
+ private generateCustomYearMarkup;
652
+ private generateCustomArrowPrevMarkup;
653
+ private generateCustomArrowNextMarkup;
654
+ private parseCustomTime;
655
+ private parseCustomMonth;
656
+ private parseCustomYear;
657
+ private parseArrowPrev;
658
+ private parseArrowNext;
659
+ private processCustomTemplate;
660
+ private disableOptions;
661
+ private disableNav;
662
+ private destroySelects;
663
+ private updateSelect;
664
+ private updateCalendar;
665
+ private updateCustomSelects;
666
+ getCurrentState(): {
667
+ selectedDates: DatesArr;
668
+ selectedTime: string;
669
+ };
670
+ formatDate(date: string | number | Date, format?: string): string;
671
+ destroy(): void;
672
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
673
+ static autoInit(): void;
674
+ }
675
+ export interface IDropdown {
676
+ options?: {};
677
+ open(): void;
678
+ close(isAnimated: boolean): void;
679
+ forceClearState(): void;
680
+ destroy(): void;
681
+ }
682
+ export interface IHTMLElementFloatingUI extends HTMLElement {
683
+ _floatingUI: any;
684
+ }
685
+ export declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementFloatingUI> implements IDropdown {
686
+ private accessibilityComponent;
687
+ private readonly toggle;
688
+ private readonly closers;
689
+ menu: HTMLElement | null;
690
+ private eventMode;
691
+ private closeMode;
692
+ private hasAutofocus;
693
+ private autofocusOnKeyboardOnly;
694
+ private animationInProcess;
695
+ private longPressTimer;
696
+ private openedViaKeyboard;
697
+ private onElementMouseEnterListener;
698
+ private onElementMouseLeaveListener;
699
+ private onToggleClickListener;
700
+ private onToggleContextMenuListener;
701
+ private onTouchStartListener;
702
+ private onTouchEndListener;
703
+ private onCloserClickListener;
704
+ constructor(el: IHTMLElementFloatingUI, options?: {}, events?: {});
705
+ private elementMouseEnter;
706
+ private elementMouseLeave;
707
+ private toggleClick;
708
+ private toggleContextMenu;
709
+ private handleTouchStart;
710
+ private handleTouchEnd;
711
+ private closerClick;
712
+ private init;
713
+ resizeHandler(): void;
714
+ private isOpen;
715
+ private buildToggle;
716
+ private buildMenu;
717
+ private buildClosers;
718
+ private getScrollbarSize;
719
+ private onContextMenuHandler;
720
+ private onClickHandler;
721
+ private onMouseEnterHandler;
722
+ private onMouseLeaveHandler;
723
+ private destroyFloatingUI;
724
+ private focusElement;
725
+ private setupFloatingUI;
726
+ private selectCheckbox;
727
+ private selectRadio;
728
+ calculatePopperPosition(target?: VirtualElement | HTMLElement): string;
729
+ open(target?: VirtualElement | HTMLElement, openedViaKeyboard?: boolean): boolean;
730
+ close(isAnimated?: boolean): boolean;
731
+ forceClearState(): void;
732
+ destroy(): void;
733
+ private static findInCollection;
734
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
735
+ static autoInit(): void;
736
+ static open(target: HSDropdown | HTMLElement | string, openedViaKeyboard?: boolean): void;
737
+ static close(target: HSDropdown | HTMLElement | string): void;
738
+ static closeCurrentlyOpened(evtTarget?: HTMLElement | null, isAnimated?: boolean): void;
739
+ private setupAccessibility;
740
+ private onFirstLetter;
741
+ private onArrowX;
742
+ private onStartEnd;
743
+ private focusMenuItem;
744
+ static on(evt: string, target: HSDropdown | HTMLElement | string, cb: Function): void;
745
+ isOpened(): boolean;
746
+ containsElement(element: HTMLElement): boolean;
747
+ }
748
+ export interface IFileUploadOptions extends DropzoneOptions {
749
+ extensions?: {};
750
+ autoHideTrigger?: boolean;
751
+ singleton?: boolean;
752
+ }
753
+ export interface IFileUpload {
754
+ options?: IFileUploadOptions;
755
+ destroy(): void;
756
+ }
757
+ export declare class HSFileUpload extends HSBasePlugin<IFileUploadOptions> implements IFileUpload {
758
+ private concatOptions;
759
+ private previewTemplate;
760
+ private extensions;
761
+ private singleton;
762
+ dropzone: Dropzone | null;
763
+ private onReloadButtonClickListener;
764
+ private onTempFileInputChangeListener;
765
+ constructor(el: HTMLElement, options?: IFileUploadOptions, events?: {});
766
+ private tempFileInputChange;
767
+ private reloadButtonClick;
768
+ private init;
769
+ private initDropzone;
770
+ destroy(): void;
771
+ private onAddFile;
772
+ private previewAccepted;
773
+ private onRemoveFile;
774
+ private onUploadProgress;
775
+ private onComplete;
776
+ private setIcon;
777
+ private createIcon;
778
+ private formatFileSize;
779
+ private splitFileName;
780
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
781
+ static autoInit(): void;
782
+ }
783
+ export interface IInputNumberOptions {
784
+ min?: number;
785
+ max?: number;
786
+ step?: number;
787
+ forceBlankValue?: boolean;
788
+ }
789
+ export interface IInputNumber {
790
+ options?: IInputNumberOptions;
791
+ destroy(): void;
792
+ }
793
+ export declare class HSInputNumber extends HSBasePlugin<IInputNumberOptions> implements IInputNumber {
794
+ private readonly input;
795
+ private readonly increment;
796
+ private readonly decrement;
797
+ private inputValue;
798
+ private readonly minInputValue;
799
+ private readonly maxInputValue;
800
+ private readonly step;
801
+ private readonly forceBlankValue;
802
+ private onInputInputListener;
803
+ private onIncrementClickListener;
804
+ private onDecrementClickListener;
805
+ constructor(el: HTMLElement, options?: IInputNumberOptions);
806
+ private inputInput;
807
+ private incrementClick;
808
+ private decrementClick;
809
+ private init;
810
+ private checkIsNumberAndConvert;
811
+ private cleanAndExtractNumber;
812
+ private build;
813
+ private buildInput;
814
+ private buildIncrement;
815
+ private buildDecrement;
816
+ private changeValue;
817
+ private disableButtons;
818
+ private enableButtons;
819
+ destroy(): void;
820
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
821
+ static autoInit(): void;
822
+ }
823
+ export interface ILayoutSplitterOptions {
824
+ horizontalSplitterClasses?: string | null;
825
+ horizontalSplitterTemplate?: string;
826
+ verticalSplitterClasses?: string | null;
827
+ verticalSplitterTemplate?: string;
828
+ isSplittersAddedManually?: boolean;
829
+ }
830
+ export interface IControlLayoutSplitter {
831
+ el: HTMLElement;
832
+ direction: "horizontal" | "vertical";
833
+ prev: HTMLElement | null;
834
+ next: HTMLElement | null;
835
+ }
836
+ export interface ILayoutSplitter {
837
+ options?: ILayoutSplitterOptions;
838
+ getSplitterItemSingleParam(item: HTMLElement, name: string): any;
839
+ getData(el: HTMLElement): any;
840
+ setSplitterItemSize(el: HTMLElement, size: number): void;
841
+ updateFlexValues(data: Array<{
842
+ id: string;
843
+ breakpoints: Record<number, number>;
844
+ }>): void;
845
+ destroy(): void;
846
+ }
847
+ export declare class HSLayoutSplitter extends HSBasePlugin<ILayoutSplitterOptions> implements ILayoutSplitter {
848
+ static isListenersInitialized: boolean;
849
+ private readonly horizontalSplitterClasses;
850
+ private readonly horizontalSplitterTemplate;
851
+ private readonly verticalSplitterClasses;
852
+ private readonly verticalSplitterTemplate;
853
+ private readonly isSplittersAddedManually;
854
+ private horizontalSplitters;
855
+ private horizontalControls;
856
+ private verticalSplitters;
857
+ private verticalControls;
858
+ isDragging: boolean;
859
+ activeSplitter: IControlLayoutSplitter | null;
860
+ private onControlPointerDownListener;
861
+ constructor(el: HTMLElement, options?: ILayoutSplitterOptions);
862
+ private controlPointerDown;
863
+ private controlPointerUp;
864
+ private static onDocumentPointerMove;
865
+ private static onDocumentPointerUp;
866
+ private init;
867
+ private buildSplitters;
868
+ private buildHorizontalSplitters;
869
+ private buildVerticalSplitters;
870
+ private buildControl;
871
+ private getSplitterItemParsedParam;
872
+ private getContainerSize;
873
+ private getMaxFlexSize;
874
+ private updateHorizontalSplitter;
875
+ private updateSingleSplitter;
876
+ private updateVerticalSplitter;
877
+ private updateSplitterItemParam;
878
+ private onPointerDownHandler;
879
+ private onPointerUpHandler;
880
+ private onPointerMoveHandler;
881
+ private bindListeners;
882
+ private calculateAvailableSize;
883
+ private calculateResizedSizes;
884
+ private enforceLimits;
885
+ private applySizes;
886
+ getSplitterItemSingleParam(item: HTMLElement, name: string): any;
887
+ getData(el: HTMLElement): any;
888
+ setSplitterItemSize(el: HTMLElement, size: number): void;
889
+ updateFlexValues(data: Array<{
890
+ id: string;
891
+ breakpoints: Record<number, number>;
892
+ }>): void;
893
+ destroy(): void;
894
+ private static findInCollection;
895
+ static autoInit(): void;
896
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
897
+ static on(evt: string, target: HSLayoutSplitter | HTMLElement | string, cb: Function): void;
898
+ }
899
+ export interface IOverlayOptions {
900
+ hiddenClass?: string | null;
901
+ emulateScrollbarSpace?: boolean;
902
+ isClosePrev?: boolean;
903
+ backdropClasses?: string | null;
904
+ backdropParent?: string | HTMLElement | Document;
905
+ backdropExtraClasses?: string | null;
906
+ moveOverlayToBody?: number | null;
907
+ }
908
+ export interface IOverlay {
909
+ options?: IOverlayOptions;
910
+ open(cb: Function | null): void;
911
+ close(forceClose: boolean, cb: Function | null): void;
912
+ destroy(): void;
913
+ }
914
+ export type TOverlayOptionsAutoCloseEqualityType = "less-than" | "more-than";
915
+ export interface ICollectionItem<T> {
916
+ id: string | number;
917
+ element: T;
918
+ }
919
+ export declare class HSOverlay extends HSBasePlugin<{}> implements IOverlay {
920
+ private accessibilityComponent;
921
+ private lastFocusedToggle;
922
+ private initiallyOpened;
923
+ private readonly hiddenClass;
924
+ private readonly emulateScrollbarSpace;
925
+ private readonly isClosePrev;
926
+ private readonly backdropClasses;
927
+ private readonly backdropParent;
928
+ private readonly backdropExtraClasses;
929
+ private readonly animationTarget;
930
+ private openNextOverlay;
931
+ private autoHide;
932
+ private toggleButtons;
933
+ toggleMinifierButtons: HTMLElement[];
934
+ static openedItemsQty: number;
935
+ initContainer: HTMLElement | null;
936
+ isCloseWhenClickInside: boolean;
937
+ isTabAccessibilityLimited: boolean;
938
+ isLayoutAffect: boolean;
939
+ hasAutofocus: boolean;
940
+ hasDynamicZIndex: boolean;
941
+ hasAbilityToCloseOnBackdropClick: boolean;
942
+ openedBreakpoint: number | null;
943
+ autoClose: number | null;
944
+ autoCloseEqualityType: TOverlayOptionsAutoCloseEqualityType | null;
945
+ moveOverlayToBody: number | null;
946
+ private backdrop;
947
+ private initialZIndex;
948
+ static currentZIndex: number;
949
+ private onElementClickListener;
950
+ private onElementMinifierClickListener;
951
+ private onOverlayClickListener;
952
+ private onBackdropClickListener;
953
+ constructor(el: HTMLElement, options?: IOverlayOptions, events?: {});
954
+ private elementClick;
955
+ private elementMinifierClick;
956
+ minify(isMinified: boolean, cb?: Function | null): void;
957
+ private overlayClick;
958
+ private backdropClick;
959
+ private init;
960
+ private buildToggleButtons;
961
+ private buildToggleMinifierButtons;
962
+ private hideAuto;
963
+ private checkTimer;
964
+ private buildBackdrop;
965
+ private destroyBackdrop;
966
+ private focusElement;
967
+ private getBodyCurrentScrollbarSize;
968
+ private collectToggleParameters;
969
+ private isElementVisible;
970
+ private isOpened;
971
+ open(cb?: Function | null): any;
972
+ close(forceClose?: boolean, cb?: Function | null): Promise<unknown>;
973
+ updateToggles(): void;
974
+ destroy(): void;
975
+ private static findInCollection;
976
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
977
+ static autoInit(): void;
978
+ static open(target: HSOverlay | HTMLElement | string): void;
979
+ static close(target: HSOverlay | HTMLElement | string): void;
980
+ static minify(target: HSOverlay | HTMLElement | string, isMinified: boolean): void;
981
+ static setOpened(breakpoint: number, el: ICollectionItem<HSOverlay>): void;
982
+ private setupAccessibility;
983
+ static on(evt: string, target: HSOverlay | HTMLElement | string, cb: Function): void;
984
+ }
985
+ export interface IPinInputOptions {
986
+ availableCharsRE?: RegExp;
987
+ }
988
+ export interface IPinInput {
989
+ options?: IPinInputOptions;
990
+ destroy(): void;
991
+ }
992
+ export declare class HSPinInput extends HSBasePlugin<IPinInputOptions> implements IPinInput {
993
+ private items;
994
+ private currentItem;
995
+ private currentValue;
996
+ private readonly placeholders;
997
+ private readonly availableCharsRE;
998
+ private onElementInputListener;
999
+ private onElementPasteListener;
1000
+ private onElementKeydownListener;
1001
+ private onElementFocusinListener;
1002
+ private onElementFocusoutListener;
1003
+ private elementInput;
1004
+ private elementPaste;
1005
+ private elementKeydown;
1006
+ private elementFocusin;
1007
+ private elementFocusout;
1008
+ constructor(el: HTMLElement, options?: IPinInputOptions);
1009
+ private init;
1010
+ private build;
1011
+ private buildInputItems;
1012
+ private checkIfNumber;
1013
+ private autoFillAll;
1014
+ private setCurrentValue;
1015
+ private toggleCompleted;
1016
+ private onInput;
1017
+ private onKeydown;
1018
+ private onFocusIn;
1019
+ private onFocusOut;
1020
+ private onPaste;
1021
+ destroy(): void;
1022
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1023
+ static autoInit(): void;
1024
+ }
1025
+ export type TRangeSliderOptionsFormatterType = "integer" | "thousandsSeparatorAndDecimalPoints" | null;
1026
+ export interface IRangeSliderOptionsFormatterOptions {
1027
+ type?: TRangeSliderOptionsFormatterType;
1028
+ prefix?: string;
1029
+ postfix?: string;
1030
+ }
1031
+ export interface IRangeSliderOptions extends Options$1 {
1032
+ disabled?: boolean;
1033
+ wrapper?: HTMLElement;
1034
+ currentValue?: HTMLElement[];
1035
+ formatter?: IRangeSliderOptionsFormatterOptions | TRangeSliderOptionsFormatterType;
1036
+ icons?: {
1037
+ handle?: string;
1038
+ };
1039
+ }
1040
+ export interface IRangeSlider {
1041
+ options?: IRangeSliderOptions;
1042
+ destroy(): void;
1043
+ }
1044
+ export declare class HSRangeSlider extends HSBasePlugin<IRangeSliderOptions> implements IRangeSlider {
1045
+ private readonly concatOptions;
1046
+ private readonly wrapper;
1047
+ private readonly currentValue;
1048
+ private format;
1049
+ private readonly icons;
1050
+ constructor(el: HTMLElement, options?: IRangeSliderOptions, events?: {});
1051
+ get formattedValue(): any;
1052
+ private processClasses;
1053
+ private init;
1054
+ private formatValue;
1055
+ private integerFormatter;
1056
+ private prefixOrPostfixFormatter;
1057
+ private thousandsSeparatorAndDecimalPointsFormatter;
1058
+ private setDisabled;
1059
+ private buildHandleIcon;
1060
+ private updateCurrentValue;
1061
+ destroy(): void;
1062
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1063
+ static autoInit(): void;
1064
+ }
1065
+ export interface IRemoveElementOptions {
1066
+ removeTargetAnimationClass: string;
1067
+ }
1068
+ export interface IRemoveElement {
1069
+ options?: IRemoveElementOptions;
1070
+ destroy(): void;
1071
+ }
1072
+ export declare class HSRemoveElement extends HSBasePlugin<IRemoveElementOptions> implements IRemoveElement {
1073
+ private readonly removeTargetId;
1074
+ private readonly removeTarget;
1075
+ private readonly removeTargetAnimationClass;
1076
+ private onElementClickListener;
1077
+ constructor(el: HTMLElement, options?: IRemoveElementOptions);
1078
+ private elementClick;
1079
+ private init;
1080
+ private remove;
1081
+ destroy(): void;
1082
+ static getInstance(target: HTMLElement, isInstance?: boolean): any;
1083
+ static autoInit(): void;
1084
+ }
1085
+ export interface IScrollNavOptions {
1086
+ paging?: boolean;
1087
+ autoCentering?: boolean;
1088
+ }
1089
+ export interface IScrollNavCurrentState {
1090
+ first: HTMLElement;
1091
+ last: HTMLElement;
1092
+ center: HTMLElement;
1093
+ }
1094
+ export interface IScrollNav {
1095
+ options?: IScrollNavOptions;
1096
+ getCurrentState(): IScrollNavCurrentState;
1097
+ goTo(el: Element, cb?: () => void): void;
1098
+ centerElement(el: HTMLElement, behavior: ScrollBehavior): void;
1099
+ destroy(): void;
1100
+ }
1101
+ export declare class HSScrollNav extends HSBasePlugin<IScrollNavOptions> implements IScrollNav {
1102
+ private readonly paging;
1103
+ private readonly autoCentering;
1104
+ private body;
1105
+ private items;
1106
+ private prev;
1107
+ private next;
1108
+ private currentState;
1109
+ constructor(el: HTMLElement, options?: IScrollNavOptions);
1110
+ private init;
1111
+ private setCurrentState;
1112
+ private setPrevToDisabled;
1113
+ private setNextToDisabled;
1114
+ private buildPrev;
1115
+ private buildNext;
1116
+ private buildPrevSingle;
1117
+ private buildNextSingle;
1118
+ private getCenterVisibleItem;
1119
+ private getFirstVisibleItem;
1120
+ private getLastVisibleItem;
1121
+ private getVisibleItemsCount;
1122
+ private scrollToActiveElement;
1123
+ getCurrentState(): IScrollNavCurrentState;
1124
+ goTo(el: Element, cb?: () => void): void;
1125
+ centerElement(el: HTMLElement, behavior?: ScrollBehavior): void;
1126
+ destroy(): void;
1127
+ static getInstance(target: HTMLElement, isInstance?: boolean): any;
1128
+ static autoInit(): void;
1129
+ }
1130
+ export interface IScrollspyOptions {
1131
+ ignoreScrollUp?: boolean;
1132
+ }
1133
+ export interface IScrollspy {
1134
+ options?: IScrollspyOptions;
1135
+ destroy(): void;
1136
+ }
1137
+ export declare class HSScrollspy extends HSBasePlugin<IScrollspyOptions> implements IScrollspy {
1138
+ private readonly ignoreScrollUp;
1139
+ private readonly links;
1140
+ private readonly sections;
1141
+ private readonly scrollableId;
1142
+ private readonly scrollable;
1143
+ private isScrollingDown;
1144
+ private lastScrollTop;
1145
+ private onScrollableScrollListener;
1146
+ private onLinkClickListener;
1147
+ constructor(el: HTMLElement, options?: {});
1148
+ private scrollableScroll;
1149
+ private init;
1150
+ private determineScrollDirection;
1151
+ private linkClick;
1152
+ private update;
1153
+ private scrollTo;
1154
+ destroy(): void;
1155
+ static getInstance(target: HTMLElement, isInstance?: boolean): any;
1156
+ static autoInit(): void;
1157
+ }
1158
+ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements ISelect {
1159
+ private accessibilityComponent;
1160
+ value: string | string[] | null;
1161
+ private readonly placeholder;
1162
+ private readonly hasSearch;
1163
+ private readonly minSearchLength;
1164
+ private readonly preventSearchFocus;
1165
+ private readonly preventSearchInsideDescription;
1166
+ private readonly mode;
1167
+ private readonly viewport;
1168
+ private readonly scrollToSelected;
1169
+ private _isOpened;
1170
+ isMultiple: boolean | null;
1171
+ isDisabled: boolean | null;
1172
+ selectedItems: string[];
1173
+ private readonly apiUrl;
1174
+ private readonly apiQuery;
1175
+ private readonly apiOptions;
1176
+ private readonly apiDataPart;
1177
+ private readonly apiSearchQueryKey;
1178
+ private readonly apiLoadMore;
1179
+ private readonly apiFieldsMap;
1180
+ private readonly apiIconTag;
1181
+ private readonly apiSelectedValues;
1182
+ private readonly toggleTag;
1183
+ private readonly toggleClasses;
1184
+ private readonly toggleSeparators;
1185
+ private readonly toggleCountText;
1186
+ private readonly toggleCountTextPlacement;
1187
+ private readonly toggleCountTextMinItems;
1188
+ private readonly toggleCountTextMode;
1189
+ private readonly wrapperClasses;
1190
+ private readonly tagsItemTemplate;
1191
+ private readonly tagsItemClasses;
1192
+ private readonly tagsInputId;
1193
+ private readonly tagsInputClasses;
1194
+ private readonly dropdownTag;
1195
+ private readonly dropdownClasses;
1196
+ private readonly dropdownDirectionClasses;
1197
+ dropdownSpace: number | null;
1198
+ readonly dropdownPlacement: string | null;
1199
+ private readonly dropdownAutoPlacement;
1200
+ readonly dropdownVerticalFixedPlacement: "top" | "bottom" | null;
1201
+ readonly dropdownScope: "window" | "parent";
1202
+ private readonly searchTemplate;
1203
+ private readonly searchWrapperTemplate;
1204
+ private readonly searchPlaceholder;
1205
+ private readonly searchId;
1206
+ private readonly searchLimit;
1207
+ private readonly isSearchDirectMatch;
1208
+ private readonly searchMatchMode;
1209
+ private readonly searchClasses;
1210
+ private readonly searchWrapperClasses;
1211
+ private readonly searchNoResultTemplate;
1212
+ private readonly searchNoResultText;
1213
+ private readonly searchNoResultClasses;
1214
+ private readonly optionAllowEmptyOption;
1215
+ private readonly optionTag;
1216
+ private readonly optionTemplate;
1217
+ private readonly optionClasses;
1218
+ private readonly optgroupTag;
1219
+ private readonly optgroupClasses;
1220
+ private readonly descriptionClasses;
1221
+ private readonly iconClasses;
1222
+ private animationInProcess;
1223
+ private currentPage;
1224
+ private isLoading;
1225
+ private hasMore;
1226
+ private hasOptgroup;
1227
+ private wrapper;
1228
+ private toggle;
1229
+ private toggleTextWrapper;
1230
+ private tagsInput;
1231
+ private dropdown;
1232
+ private floatingUIInstance;
1233
+ private searchWrapper;
1234
+ private search;
1235
+ private searchNoResult;
1236
+ private selectOptions;
1237
+ private staticOptions;
1238
+ private extraMarkup;
1239
+ private readonly isAddTagOnEnter;
1240
+ private tagsInputHelper;
1241
+ private remoteOptions;
1242
+ private disabledObserver;
1243
+ private remoteSearchAbortController;
1244
+ private loadMoreAbortController;
1245
+ private requestId;
1246
+ private lastQuery;
1247
+ private readonly apiPageStart?;
1248
+ private readonly apiTotalPath?;
1249
+ private optionId;
1250
+ private onWrapperClickListener;
1251
+ private onToggleClickListener;
1252
+ private onTagsInputFocusListener;
1253
+ private onTagsInputInputListener;
1254
+ private onTagsInputInputSecondListener;
1255
+ private onTagsInputKeydownListener;
1256
+ private onSearchInputListener;
1257
+ private readonly isSelectedOptionOnTop;
1258
+ constructor(el: HTMLElement, options?: ISelectOptions);
1259
+ private wrapperClick;
1260
+ private toggleClick;
1261
+ private tagsInputFocus;
1262
+ private tagsInputInput;
1263
+ private tagsInputInputSecond;
1264
+ private tagsInputKeydown;
1265
+ private searchInput;
1266
+ setValue(val: string | string[]): void;
1267
+ private setDisabledState;
1268
+ private hasValue;
1269
+ private init;
1270
+ private build;
1271
+ private setOptions;
1272
+ private buildWrapper;
1273
+ private buildExtraMarkup;
1274
+ private buildToggle;
1275
+ private setToggleIcon;
1276
+ private setToggleTitle;
1277
+ private buildTags;
1278
+ private reassignTagsInputPlaceholder;
1279
+ private buildTagsItem;
1280
+ private getItemByValue;
1281
+ private setTagsItems;
1282
+ private buildTagsInput;
1283
+ private buildDropdown;
1284
+ private buildOptgroup;
1285
+ private setupInfiniteScroll;
1286
+ private handleScroll;
1287
+ private loadMore;
1288
+ private buildFloatingUI;
1289
+ private updateDropdownWidth;
1290
+ private buildSearch;
1291
+ private buildOption;
1292
+ private buildOptionFromRemoteData;
1293
+ private buildOptionsFromRemoteData;
1294
+ private mergeRemoteDataIntoStaticOption;
1295
+ private optionsFromRemoteData;
1296
+ private apiRequest;
1297
+ private sortElements;
1298
+ private remoteSearch;
1299
+ private filterStaticOptions;
1300
+ private normalizeSearchText;
1301
+ private tokenizeSearchQuery;
1302
+ private charsSequenceMatch;
1303
+ private optionMatchesQuery;
1304
+ private destroyOption;
1305
+ private buildOriginalOption;
1306
+ private destroyOriginalOption;
1307
+ private buildTagsInputHelper;
1308
+ private calculateInputWidth;
1309
+ private adjustInputWidth;
1310
+ private onSelectOption;
1311
+ private triggerChangeEventForNativeSelect;
1312
+ private addSelectOption;
1313
+ private removeSelectOption;
1314
+ private resetTagsInputField;
1315
+ private clearSelections;
1316
+ private setNewValue;
1317
+ private stringFromValueBasic;
1318
+ private stringFromValueRemoteData;
1319
+ private stringFromValue;
1320
+ private selectSingleItem;
1321
+ private selectMultipleItems;
1322
+ private unselectMultipleItems;
1323
+ private searchOptions;
1324
+ private eraseToggleIcon;
1325
+ private eraseToggleTitle;
1326
+ private toggleFn;
1327
+ private setupAccessibility;
1328
+ private focusMenuItem;
1329
+ private onStartEnd;
1330
+ destroy(): void;
1331
+ open(): boolean;
1332
+ close(forceFocus?: boolean): boolean;
1333
+ addOption(items: ISingleOption | ISingleOption[]): void;
1334
+ removeOption(values: string | string[]): void;
1335
+ recalculateDirection(): boolean;
1336
+ isOpened(): boolean;
1337
+ containsElement(element: HTMLElement): boolean;
1338
+ containsDropdownElement(element: HTMLElement): boolean;
1339
+ private static findInCollection;
1340
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1341
+ static autoInit(): void;
1342
+ static open(target: HSSelect | HTMLElement | string): void;
1343
+ static close(target: HSSelect | HTMLElement | string): void;
1344
+ static closeCurrentlyOpened(evtTarget?: HTMLElement | null): void;
1345
+ }
1346
+ export interface IStepperOptions {
1347
+ currentIndex?: number;
1348
+ isCompleted?: boolean;
1349
+ mode?: string;
1350
+ }
1351
+ export interface IStepper {
1352
+ options?: IStepperOptions;
1353
+ setProcessedNavItem(n?: number): void;
1354
+ unsetProcessedNavItem(n?: number): void;
1355
+ goToNext(): void;
1356
+ goToFinish(): void;
1357
+ disableButtons(): void;
1358
+ enableButtons(): void;
1359
+ setErrorNavItem(n?: number): void;
1360
+ destroy(): void;
1361
+ }
1362
+ export declare class HSStepper extends HSBasePlugin<{}> implements IStepper {
1363
+ private currentIndex;
1364
+ private readonly mode;
1365
+ private isCompleted;
1366
+ private totalSteps;
1367
+ private navItems;
1368
+ private contentItems;
1369
+ private backBtn;
1370
+ private nextBtn;
1371
+ private skipBtn;
1372
+ private completeStepBtn;
1373
+ private completeStepBtnDefaultText;
1374
+ private finishBtn;
1375
+ private resetBtn;
1376
+ private onNavItemClickListener;
1377
+ private onBackClickListener;
1378
+ private onNextClickListener;
1379
+ private onSkipClickListener;
1380
+ private onCompleteStepBtnClickListener;
1381
+ private onFinishBtnClickListener;
1382
+ private onResetBtnClickListener;
1383
+ constructor(el: HTMLElement, options?: IStepperOptions);
1384
+ private navItemClick;
1385
+ private backClick;
1386
+ private nextClick;
1387
+ private skipClick;
1388
+ private completeStepBtnClick;
1389
+ private finishBtnClick;
1390
+ private resetBtnClick;
1391
+ private init;
1392
+ private getUncompletedSteps;
1393
+ private setTotalSteps;
1394
+ private buildNav;
1395
+ private buildNavItem;
1396
+ private addNavItem;
1397
+ private setCurrentNavItem;
1398
+ private setCurrentNavItemActions;
1399
+ private getNavItem;
1400
+ private setProcessedNavItemActions;
1401
+ private setErrorNavItemActions;
1402
+ private unsetCurrentNavItemActions;
1403
+ private handleNavItemClick;
1404
+ private buildContent;
1405
+ private buildContentItem;
1406
+ private addContentItem;
1407
+ private setCurrentContentItem;
1408
+ private hideAllContentItems;
1409
+ private setCurrentContentItemActions;
1410
+ private unsetCurrentContentItemActions;
1411
+ private disableAll;
1412
+ private disableNavItemActions;
1413
+ private enableNavItemActions;
1414
+ private buildButtons;
1415
+ private buildBackButton;
1416
+ private handleBackButtonClick;
1417
+ private checkForTheFirstStep;
1418
+ private setToDisabled;
1419
+ private setToNonDisabled;
1420
+ private buildNextButton;
1421
+ private unsetProcessedNavItemActions;
1422
+ private handleNextButtonClick;
1423
+ private removeOptionalClasses;
1424
+ private buildSkipButton;
1425
+ private setSkipItem;
1426
+ private setSkipItemActions;
1427
+ private showSkipButton;
1428
+ private handleSkipButtonClick;
1429
+ private buildCompleteStepButton;
1430
+ private changeTextAndDisableCompleteButtonIfStepCompleted;
1431
+ private setCompleteItem;
1432
+ private setCompleteItemActions;
1433
+ private showCompleteStepButton;
1434
+ private handleCompleteStepButtonClick;
1435
+ private buildFinishButton;
1436
+ private setCompleted;
1437
+ private unsetCompleted;
1438
+ private showFinishButton;
1439
+ private handleFinishButtonClick;
1440
+ private buildResetButton;
1441
+ private handleResetButtonClick;
1442
+ setProcessedNavItem(n?: number): void;
1443
+ unsetProcessedNavItem(n?: number): void;
1444
+ goToNext(): void;
1445
+ goToFinish(): void;
1446
+ disableButtons(): void;
1447
+ enableButtons(): void;
1448
+ setErrorNavItem(n?: number): void;
1449
+ destroy(): void;
1450
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1451
+ static autoInit(): void;
1452
+ }
1453
+ export interface IStrongPasswordOptions {
1454
+ target: string | HTMLInputElement;
1455
+ hints?: string;
1456
+ stripClasses?: string;
1457
+ minLength?: number;
1458
+ mode?: string;
1459
+ popoverSpace?: number;
1460
+ checksExclude?: string[];
1461
+ specialCharactersSet?: string;
1462
+ }
1463
+ export interface IStrongPassword {
1464
+ options?: IStrongPasswordOptions;
1465
+ recalculateDirection(): void;
1466
+ destroy(): void;
1467
+ }
1468
+ export declare class HSStrongPassword extends HSBasePlugin<IStrongPasswordOptions> implements IStrongPassword {
1469
+ private readonly target;
1470
+ private readonly hints;
1471
+ private readonly stripClasses;
1472
+ private readonly minLength;
1473
+ private readonly mode;
1474
+ private readonly popoverSpace;
1475
+ private readonly checksExclude;
1476
+ private readonly specialCharactersSet;
1477
+ isOpened: boolean;
1478
+ private strength;
1479
+ private passedRules;
1480
+ private weakness;
1481
+ private rules;
1482
+ private availableChecks;
1483
+ private onTargetInputListener;
1484
+ private onTargetFocusListener;
1485
+ private onTargetBlurListener;
1486
+ private onTargetInputSecondListener;
1487
+ private onTargetInputThirdListener;
1488
+ constructor(el: HTMLElement, options?: IStrongPasswordOptions);
1489
+ private targetInput;
1490
+ private targetFocus;
1491
+ private targetBlur;
1492
+ private targetInputSecond;
1493
+ private targetInputThird;
1494
+ private init;
1495
+ private build;
1496
+ private buildStrips;
1497
+ private buildHints;
1498
+ private buildWeakness;
1499
+ private buildRules;
1500
+ private setWeaknessText;
1501
+ private setRulesText;
1502
+ private togglePopover;
1503
+ private checkStrength;
1504
+ private checkIfPassed;
1505
+ private setStrength;
1506
+ private hideStrips;
1507
+ recalculateDirection(): void;
1508
+ destroy(): void;
1509
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1510
+ static autoInit(): void;
1511
+ }
1512
+ export interface ITabsOptions {
1513
+ eventType: "click" | "hover";
1514
+ preventNavigationResolution: string | number | null;
1515
+ }
1516
+ export interface ITabs {
1517
+ options?: ITabsOptions;
1518
+ destroy(): void;
1519
+ }
1520
+ export declare class HSTabs extends HSBasePlugin<ITabsOptions> implements ITabs {
1521
+ private accessibilityComponent;
1522
+ private readonly eventType;
1523
+ private readonly preventNavigationResolution;
1524
+ toggles: NodeListOf<HTMLElement> | null;
1525
+ private readonly extraToggleId;
1526
+ private readonly extraToggle;
1527
+ private current;
1528
+ private currentContentId;
1529
+ currentContent: HTMLElement | null;
1530
+ private prev;
1531
+ private prevContentId;
1532
+ private prevContent;
1533
+ private onToggleHandler;
1534
+ private onExtraToggleChangeListener;
1535
+ constructor(el: HTMLElement, options?: ITabsOptions, events?: {});
1536
+ private toggle;
1537
+ private extraToggleChange;
1538
+ private init;
1539
+ private open;
1540
+ private change;
1541
+ private setupAccessibility;
1542
+ private onArrow;
1543
+ private onStartEnd;
1544
+ destroy(): void;
1545
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1546
+ static autoInit(): void;
1547
+ static open(target: HTMLElement): void;
1548
+ static on(evt: string, target: HTMLElement, cb: Function): void;
1549
+ }
1550
+ export interface ITextareaAutoHeightOptions {
1551
+ defaultHeight: number;
1552
+ }
1553
+ export interface ITextareaAutoHeight {
1554
+ options?: ITextareaAutoHeightOptions;
1555
+ destroy(): void;
1556
+ }
1557
+ export declare class HSTextareaAutoHeight extends HSBasePlugin<ITextareaAutoHeightOptions> implements ITextareaAutoHeight {
1558
+ private readonly defaultHeight;
1559
+ private onElementInputListener;
1560
+ constructor(el: HTMLTextAreaElement, options?: ITextareaAutoHeightOptions);
1561
+ private elementInput;
1562
+ private init;
1563
+ private setAutoHeight;
1564
+ private textareaSetHeight;
1565
+ private checkIfOneLine;
1566
+ private isParentHidden;
1567
+ private parentType;
1568
+ private callbackAccordingToType;
1569
+ destroy(): void;
1570
+ static getInstance(target: HTMLTextAreaElement | string, isInstance?: boolean): any;
1571
+ static autoInit(): void;
1572
+ }
1573
+ export interface IThemeSwitchOptions {
1574
+ theme?: "dark" | "light" | "default";
1575
+ type?: "change" | "click";
1576
+ }
1577
+ export interface IThemeSwitch {
1578
+ options?: IThemeSwitchOptions;
1579
+ setAppearance(theme: string, isSaveToLocalStorage: boolean, isSetDispatchEvent: boolean): void;
1580
+ destroy(): void;
1581
+ }
1582
+ export declare class HSThemeSwitch extends HSBasePlugin<IThemeSwitchOptions> implements IThemeSwitch {
1583
+ theme: string;
1584
+ type: "change" | "click";
1585
+ private onElementChangeListener;
1586
+ private onElementClickListener;
1587
+ private static systemThemeObserver;
1588
+ constructor(el: HTMLElement | HTMLInputElement, options?: IThemeSwitchOptions);
1589
+ private elementChange;
1590
+ private elementClick;
1591
+ private init;
1592
+ private buildSwitchTypeOfChange;
1593
+ private buildSwitchTypeOfClick;
1594
+ private setResetStyles;
1595
+ private addSystemThemeObserver;
1596
+ private removeSystemThemeObserver;
1597
+ private toggleObserveSystemTheme;
1598
+ setAppearance(theme?: string, isSaveToLocalStorage?: boolean, isSetDispatchEvent?: boolean): void;
1599
+ destroy(): void;
1600
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1601
+ static autoInit(): void;
1602
+ }
1603
+ export interface IToggleCountOptions {
1604
+ target: string | HTMLInputElement;
1605
+ min: number;
1606
+ max: number;
1607
+ duration: number;
1608
+ }
1609
+ export interface IToggleCount {
1610
+ options?: IToggleCountOptions;
1611
+ countUp(): void;
1612
+ countDown(): void;
1613
+ destroy(): void;
1614
+ }
1615
+ export declare class HSToggleCount extends HSBasePlugin<IToggleCountOptions> implements IToggleCount {
1616
+ private readonly target;
1617
+ private readonly min;
1618
+ private readonly max;
1619
+ private readonly duration;
1620
+ private isChecked;
1621
+ private onToggleChangeListener;
1622
+ constructor(el: HTMLElement, options?: IToggleCountOptions);
1623
+ private toggleChange;
1624
+ private init;
1625
+ private toggle;
1626
+ private animate;
1627
+ countUp(): void;
1628
+ countDown(): void;
1629
+ destroy(): void;
1630
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1631
+ static autoInit(): void;
1632
+ }
1633
+ export interface ITogglePasswordOptions {
1634
+ target: string | string[] | HTMLInputElement | HTMLInputElement[];
1635
+ }
1636
+ export interface ITogglePassword {
1637
+ options?: ITogglePasswordOptions;
1638
+ show(): void;
1639
+ hide(): void;
1640
+ destroy(): void;
1641
+ }
1642
+ export declare class HSTogglePassword extends HSBasePlugin<ITogglePasswordOptions> implements ITogglePassword {
1643
+ private readonly target;
1644
+ private isShown;
1645
+ private isMultiple;
1646
+ private eventType;
1647
+ private onElementActionListener;
1648
+ constructor(el: HTMLElement, options?: ITogglePasswordOptions);
1649
+ private elementAction;
1650
+ private init;
1651
+ private getMultipleToggles;
1652
+ show(): void;
1653
+ hide(): void;
1654
+ destroy(): void;
1655
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1656
+ static autoInit(): void;
1657
+ }
1658
+ export interface ITooltip {
1659
+ options?: {};
1660
+ show(): void;
1661
+ hide(): void;
1662
+ destroy(): void;
1663
+ }
1664
+ export declare class HSTooltip extends HSBasePlugin<{}> implements ITooltip {
1665
+ private readonly toggle;
1666
+ content: HTMLElement | null;
1667
+ readonly eventMode: string;
1668
+ private readonly preventFloatingUI;
1669
+ private readonly placement;
1670
+ private readonly strategy;
1671
+ private readonly scope;
1672
+ cleanupAutoUpdate: (() => void) | null;
1673
+ private onToggleClickListener;
1674
+ private onToggleFocusListener;
1675
+ private onToggleBlurListener;
1676
+ private onToggleMouseEnterListener;
1677
+ private onToggleMouseLeaveListener;
1678
+ private onToggleHandleListener;
1679
+ constructor(el: HTMLElement, options?: {}, events?: {});
1680
+ private toggleClick;
1681
+ private toggleFocus;
1682
+ private toggleMouseEnter;
1683
+ private toggleMouseLeave;
1684
+ private toggleHandle;
1685
+ private hideOtherTooltips;
1686
+ private init;
1687
+ private enter;
1688
+ private leave;
1689
+ private click;
1690
+ private focus;
1691
+ private positionTooltip;
1692
+ private getFallbackPlacements;
1693
+ private applyTooltipPosition;
1694
+ private buildFloatingUI;
1695
+ private _show;
1696
+ show(): void;
1697
+ hide(): void;
1698
+ destroy(): void;
1699
+ private static findInCollection;
1700
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1701
+ static autoInit(): void;
1702
+ static show(target: HSTooltip | HTMLElement | string): void;
1703
+ static hide(target: HSTooltip | HTMLElement | string): void;
1704
+ static on(evt: string, target: HSTooltip | HTMLElement | string, cb: Function): void;
1705
+ }
1706
+ export type ITreeViewOptionsControlBy = "checkbox" | "button";
1707
+ export interface ITreeViewItem {
1708
+ id: string;
1709
+ value: string;
1710
+ isDir: boolean;
1711
+ path: string;
1712
+ isSelected?: boolean;
1713
+ }
1714
+ export interface ITreeViewOptions {
1715
+ items: ITreeViewItem[] | null;
1716
+ controlBy?: ITreeViewOptionsControlBy;
1717
+ autoSelectChildren?: boolean;
1718
+ isIndeterminate?: boolean;
1719
+ }
1720
+ export interface ITreeView {
1721
+ options?: ITreeViewOptions;
1722
+ update(): void;
1723
+ getSelectedItems(): ITreeViewItem[];
1724
+ changeItemProp(id: string, prop: string, val: any): void;
1725
+ destroy(): void;
1726
+ }
1727
+ export declare class HSTreeView extends HSBasePlugin<ITreeViewOptions> implements ITreeView {
1728
+ private items;
1729
+ private readonly controlBy;
1730
+ private readonly autoSelectChildren;
1731
+ private readonly isIndeterminate;
1732
+ static group: number;
1733
+ private onElementClickListener;
1734
+ private onControlChangeListener;
1735
+ constructor(el: HTMLElement, options?: ITreeViewOptions, events?: {});
1736
+ private elementClick;
1737
+ private controlChange;
1738
+ private init;
1739
+ private initItems;
1740
+ private controlByButton;
1741
+ private controlByCheckbox;
1742
+ private getItem;
1743
+ private getPath;
1744
+ private unselectItem;
1745
+ private selectItem;
1746
+ private selectChildren;
1747
+ private toggleParent;
1748
+ update(): void;
1749
+ getSelectedItems(): ITreeViewItem[];
1750
+ changeItemProp(id: string, prop: string, val: any): void;
1751
+ destroy(): void;
1752
+ private static findInCollection;
1753
+ static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
1754
+ static autoInit(): void;
1755
+ static on(evt: string, target: HSTreeView | HTMLElement | string, cb: Function): void;
1756
+ }
1757
+ export type TAutoInitPlugin = {
1758
+ autoInit?: () => void;
1759
+ };
1760
+ export type TCollectionItem = {
1761
+ key: string;
1762
+ fn: TAutoInitPlugin | null;
1763
+ collection: string;
1764
+ };
1765
+ export declare const COLLECTIONS: TCollectionItem[];
1766
+ export declare const HSStaticMethods: {
1767
+ getClassProperty: (el: HTMLElement, prop: string, val?: string) => string;
1768
+ afterTransition: (el: HTMLElement, callback: Function) => void;
1769
+ autoInit(collection?: string | string[]): void;
1770
+ cleanCollection(name?: string | string[]): void;
1771
+ };
1772
+
1773
+ export {};