@@ -87,14 +87,15 @@ export declare class HSAccordion extends HSBasePlugin<IAccordionOptions> impleme
8787 hide ( ) : boolean ;
8888 update ( ) : boolean ;
8989 destroy ( ) : void ;
90- static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSAccordion > ;
91- static show ( target : HTMLElement ) : void ;
92- static hide ( target : HTMLElement ) : void ;
90+ private static findInCollection ;
9391 static autoInit ( ) : void ;
92+ static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSAccordion > ;
93+ static show ( target : HSAccordion | HTMLElement | string ) : void ;
94+ static hide ( target : HSAccordion | HTMLElement | string ) : void ;
9495 static onSelectableClick : ( evt : Event , item : IAccordionTreeView , el : HTMLElement ) => void ;
9596 static treeView ( ) : boolean ;
9697 static toggleSelected ( root : IAccordionTreeView , item : HTMLElement ) : void ;
97- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
98+ static on ( evt : string , target : HSAccordion | HTMLElement | string , cb : Function ) : void ;
9899}
99100export type TCarouselOptionsSlidesQty = {
100101 [ key : string ] : number ;
@@ -246,16 +247,18 @@ export declare class HSCollapse extends HSBasePlugin<{}> implements ICollapse {
246247 show ( ) : boolean ;
247248 hide ( ) : boolean ;
248249 destroy ( ) : void ;
250+ private static findInCollection ;
249251 static getInstance ( target : HTMLElement , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSCollapse > ;
250252 static autoInit ( ) : void ;
251- static show ( target : HTMLElement ) : void ;
252- static hide ( target : HTMLElement ) : void ;
253- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
253+ static show ( target : HSCollapse | HTMLElement | string ) : void ;
254+ static hide ( target : HSCollapse | HTMLElement | string ) : void ;
255+ static on ( evt : string , target : HSCollapse | HTMLElement | string , cb : Function ) : void ;
254256}
255257export interface IComboBoxOptions {
256258 gap ?: number ;
257259 viewport ?: string | HTMLElement | null ;
258260 preventVisibility ?: boolean ;
261+ minSearchLength ?: number ;
259262 apiUrl ?: string | null ;
260263 apiDataPart ?: string | null ;
261264 apiQuery ?: string | null ;
@@ -286,6 +289,7 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
286289 gap : number ;
287290 viewport : string | HTMLElement | null ;
288291 preventVisibility : boolean ;
292+ minSearchLength : number ;
289293 apiUrl : string | null ;
290294 apiDataPart : string | null ;
291295 apiQuery : string | null ;
@@ -321,6 +325,7 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
321325 isOpened : boolean ;
322326 isCurrent : boolean ;
323327 private animationInProcess ;
328+ private isSearchLengthExceeded ;
324329 private onInputFocusListener ;
325330 private onInputInputListener ;
326331 private onToggleClickListener ;
@@ -436,10 +441,11 @@ export declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementPopper> imp
436441 close ( isAnimated ?: boolean ) : boolean ;
437442 forceClearState ( ) : void ;
438443 destroy ( ) : void ;
444+ private static findInCollection ;
439445 static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : ICollectionItem < HSDropdown > | IHTMLElementPopper ;
440446 static autoInit ( ) : void ;
441- static open ( target : HTMLElement ) : void ;
442- static close ( target : HTMLElement ) : void ;
447+ static open ( target : HSDropdown | HTMLElement | string ) : void ;
448+ static close ( target : HSDropdown | HTMLElement | string ) : void ;
443449 static accessibility ( evt : KeyboardEvent ) : void ;
444450 static onEscape ( evt : KeyboardEvent ) : void ;
445451 static onEnter ( evt : KeyboardEvent ) : boolean ;
@@ -448,7 +454,7 @@ export declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementPopper> imp
448454 static onStartEnd ( isStart ?: boolean ) : boolean ;
449455 static onFirstLetter ( code : string ) : boolean ;
450456 static closeCurrentlyOpened ( evtTarget ?: HTMLElement | null , isAnimated ?: boolean ) : void ;
451- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
457+ static on ( evt : string , target : HSDropdown | HTMLElement | string , cb : Function ) : void ;
452458}
453459export interface IInputNumberOptions {
454460 min ?: number ;
@@ -517,8 +523,7 @@ export declare class HSOverlay extends HSBasePlugin<{}> implements IOverlay {
517523 private readonly animationTarget ;
518524 private openNextOverlay ;
519525 private autoHide ;
520- private readonly overlayId ;
521- overlay : HTMLElement | null ;
526+ private toggleButtons ;
522527 initContainer : HTMLElement | null ;
523528 isCloseWhenClickInside : boolean ;
524529 isTabAccessibilityLimited : boolean ;
@@ -538,24 +543,27 @@ export declare class HSOverlay extends HSBasePlugin<{}> implements IOverlay {
538543 private overlayClick ;
539544 private backdropClick ;
540545 private init ;
546+ private buildToggleButtons ;
541547 private hideAuto ;
542548 private checkTimer ;
543549 private buildBackdrop ;
544550 private destroyBackdrop ;
545551 private focusElement ;
546552 private getScrollbarSize ;
547- open ( ) : false | Promise < void > ;
553+ private collectToggleParameters ;
554+ open ( ) : Promise < void > ;
548555 close ( forceClose ?: boolean ) : Promise < unknown > ;
549556 destroy ( ) : void ;
550- static getInstance ( target : HTMLElement , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSOverlay > ;
557+ private static findInCollection ;
558+ static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSOverlay > ;
551559 static autoInit ( ) : void ;
552- static open ( target : HTMLElement ) : void ;
553- static close ( target : HTMLElement ) : void ;
560+ static open ( target : HSOverlay | HTMLElement | string ) : void ;
561+ static close ( target : HSOverlay | HTMLElement | string ) : void ;
554562 static setOpened ( breakpoint : number , el : ICollectionItem < HSOverlay > ) : void ;
555563 static accessibility ( evt : KeyboardEvent ) : boolean ;
556564 static onEscape ( target : ICollectionItem < HSOverlay > ) : void ;
557565 static onTab ( target : ICollectionItem < HSOverlay > ) : boolean ;
558- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
566+ static on ( evt : string , target : HSOverlay | HTMLElement | string , cb : Function ) : void ;
559567}
560568export interface IPinInputOptions {
561569 availableCharsRE ?: RegExp ;
@@ -712,6 +720,7 @@ export interface ISelectOptions {
712720 searchNoResultTemplate ?: string | null ;
713721 searchNoResultText ?: string | null ;
714722 searchNoResultClasses ?: string | null ;
723+ optionAllowEmptyOption ?: boolean ;
715724 optionTemplate ?: string ;
716725 optionTag ?: string ;
717726 optionClasses ?: string ;
@@ -777,6 +786,7 @@ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements IS
777786 private readonly searchNoResultTemplate ;
778787 private readonly searchNoResultText ;
779788 private readonly searchNoResultClasses ;
789+ private readonly optionAllowEmptyOption ;
780790 private readonly optionTag ;
781791 private readonly optionTemplate ;
782792 private readonly optionClasses ;
@@ -1167,11 +1177,12 @@ export declare class HSTooltip extends HSBasePlugin<{}> implements ITooltip {
11671177 show ( ) : void ;
11681178 hide ( ) : void ;
11691179 destroy ( ) : void ;
1180+ private static findInCollection ;
11701181 static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSTooltip > ;
11711182 static autoInit ( ) : void ;
1172- static show ( target : HTMLElement ) : void ;
1173- static hide ( target : HTMLElement ) : void ;
1174- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
1183+ static show ( target : HSTooltip | HTMLElement | string ) : void ;
1184+ static hide ( target : HSTooltip | HTMLElement | string ) : void ;
1185+ static on ( evt : string , target : HSTooltip | HTMLElement | string , cb : Function ) : void ;
11751186}
11761187export type ITreeViewOptionsControlBy = "checkbox" | "button" ;
11771188export interface ITreeViewItem {
@@ -1219,9 +1230,10 @@ export declare class HSTreeView extends HSBasePlugin<ITreeViewOptions> implement
12191230 getSelectedItems ( ) : ITreeViewItem [ ] ;
12201231 changeItemProp ( id : string , prop : string , val : any ) : void ;
12211232 destroy ( ) : void ;
1233+ private static findInCollection ;
12221234 static getInstance ( target : HTMLElement | string , isInstance ?: boolean ) : HTMLElement | ICollectionItem < HSTreeView > ;
12231235 static autoInit ( ) : void ;
1224- static on ( evt : string , target : HTMLElement , cb : Function ) : void ;
1236+ static on ( evt : string , target : HSTreeView | HTMLElement | string , cb : Function ) : void ;
12251237}
12261238export interface IStaticMethods {
12271239 getClassProperty ( el : HTMLElement , prop ?: string , val ?: string ) : string ;
0 commit comments