@preline/non-auto 4.1.0 → 4.1.3
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.
- package/index.d.ts +9 -1
- package/index.js +39 -39
- package/index.mjs +211 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare class HSBasePlugin<O, E = HTMLElement> implements IBasePlugin<O, E> {
|
|
|
25
25
|
options: O;
|
|
26
26
|
events?: any;
|
|
27
27
|
constructor(el: E, options: O, events?: any);
|
|
28
|
-
createCollection(collection: any[], element: any): void;
|
|
28
|
+
createCollection(collection: any[] | undefined, element: any): void;
|
|
29
29
|
fireEvent(evt: string, payload?: any): any;
|
|
30
30
|
on(evt: string, cb: Function): void;
|
|
31
31
|
}
|
|
@@ -292,6 +292,7 @@ export interface IComboBox {
|
|
|
292
292
|
destroy(): void;
|
|
293
293
|
}
|
|
294
294
|
export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
|
|
295
|
+
private static globalListenersInitialized;
|
|
295
296
|
gap: number;
|
|
296
297
|
viewport: string | HTMLElement | null;
|
|
297
298
|
preventVisibility: boolean;
|
|
@@ -397,6 +398,7 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
|
|
|
397
398
|
destroy(): void;
|
|
398
399
|
static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
|
|
399
400
|
static autoInit(): void;
|
|
401
|
+
private static ensureGlobalHandlers;
|
|
400
402
|
static close(target: HTMLElement | string): void;
|
|
401
403
|
static closeCurrentlyOpened(evtTarget?: HTMLElement | null): void;
|
|
402
404
|
}
|
|
@@ -683,6 +685,7 @@ export interface IHTMLElementFloatingUI extends HTMLElement {
|
|
|
683
685
|
_floatingUI: any;
|
|
684
686
|
}
|
|
685
687
|
export declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementFloatingUI> implements IDropdown {
|
|
688
|
+
private static globalListenersInitialized;
|
|
686
689
|
private accessibilityComponent;
|
|
687
690
|
private readonly toggle;
|
|
688
691
|
private readonly closers;
|
|
@@ -733,6 +736,7 @@ export declare class HSDropdown extends HSBasePlugin<{}, IHTMLElementFloatingUI>
|
|
|
733
736
|
private static findInCollection;
|
|
734
737
|
static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
|
|
735
738
|
static autoInit(): void;
|
|
739
|
+
private static ensureGlobalHandlers;
|
|
736
740
|
static open(target: HSDropdown | HTMLElement | string, openedViaKeyboard?: boolean): void;
|
|
737
741
|
static close(target: HSDropdown | HTMLElement | string): void;
|
|
738
742
|
static closeCurrentlyOpened(evtTarget?: HTMLElement | null, isAnimated?: boolean): void;
|
|
@@ -846,6 +850,7 @@ export interface ILayoutSplitter {
|
|
|
846
850
|
}
|
|
847
851
|
export declare class HSLayoutSplitter extends HSBasePlugin<ILayoutSplitterOptions> implements ILayoutSplitter {
|
|
848
852
|
static isListenersInitialized: boolean;
|
|
853
|
+
static isWindowListenersInitialized: boolean;
|
|
849
854
|
private readonly horizontalSplitterClasses;
|
|
850
855
|
private readonly horizontalSplitterTemplate;
|
|
851
856
|
private readonly verticalSplitterClasses;
|
|
@@ -893,6 +898,7 @@ export declare class HSLayoutSplitter extends HSBasePlugin<ILayoutSplitterOption
|
|
|
893
898
|
destroy(): void;
|
|
894
899
|
private static findInCollection;
|
|
895
900
|
static autoInit(): void;
|
|
901
|
+
private static ensureGlobalHandlers;
|
|
896
902
|
static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
|
|
897
903
|
static on(evt: string, target: HSLayoutSplitter | HTMLElement | string, cb: Function): void;
|
|
898
904
|
}
|
|
@@ -1156,6 +1162,7 @@ export declare class HSScrollspy extends HSBasePlugin<IScrollspyOptions> impleme
|
|
|
1156
1162
|
static autoInit(): void;
|
|
1157
1163
|
}
|
|
1158
1164
|
export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements ISelect {
|
|
1165
|
+
private static globalListenersInitialized;
|
|
1159
1166
|
private accessibilityComponent;
|
|
1160
1167
|
value: string | string[] | null;
|
|
1161
1168
|
private readonly placeholder;
|
|
@@ -1339,6 +1346,7 @@ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements IS
|
|
|
1339
1346
|
private static findInCollection;
|
|
1340
1347
|
static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
|
|
1341
1348
|
static autoInit(): void;
|
|
1349
|
+
private static ensureGlobalHandlers;
|
|
1342
1350
|
static open(target: HSSelect | HTMLElement | string): void;
|
|
1343
1351
|
static close(target: HSSelect | HTMLElement | string): void;
|
|
1344
1352
|
static closeCurrentlyOpened(evtTarget?: HTMLElement | null): void;
|