@preline/non-auto 4.1.3 → 4.2.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.
- package/index.d.ts +18 -0
- package/index.js +91 -91
- package/index.mjs +83 -83
- package/package.json +3 -3
- package/theme.css +725 -0
package/index.d.ts
CHANGED
|
@@ -910,6 +910,7 @@ export interface IOverlayOptions {
|
|
|
910
910
|
backdropParent?: string | HTMLElement | Document;
|
|
911
911
|
backdropExtraClasses?: string | null;
|
|
912
912
|
moveOverlayToBody?: number | null;
|
|
913
|
+
isToggleClassesImmediately?: boolean;
|
|
913
914
|
}
|
|
914
915
|
export interface IOverlay {
|
|
915
916
|
options?: IOverlayOptions;
|
|
@@ -933,6 +934,8 @@ export declare class HSOverlay extends HSBasePlugin<{}> implements IOverlay {
|
|
|
933
934
|
private readonly backdropParent;
|
|
934
935
|
private readonly backdropExtraClasses;
|
|
935
936
|
private readonly animationTarget;
|
|
937
|
+
private readonly isScrollInsideViewport;
|
|
938
|
+
private onScrollInsideViewportClickListener;
|
|
936
939
|
private openNextOverlay;
|
|
937
940
|
private autoHide;
|
|
938
941
|
private toggleButtons;
|
|
@@ -949,6 +952,7 @@ export declare class HSOverlay extends HSBasePlugin<{}> implements IOverlay {
|
|
|
949
952
|
autoClose: number | null;
|
|
950
953
|
autoCloseEqualityType: TOverlayOptionsAutoCloseEqualityType | null;
|
|
951
954
|
moveOverlayToBody: number | null;
|
|
955
|
+
isToggleClassesImmediately: boolean;
|
|
952
956
|
private backdrop;
|
|
953
957
|
private initialZIndex;
|
|
954
958
|
static currentZIndex: number;
|
|
@@ -1065,6 +1069,8 @@ export declare class HSRangeSlider extends HSBasePlugin<IRangeSliderOptions> imp
|
|
|
1065
1069
|
private buildHandleIcon;
|
|
1066
1070
|
private updateCurrentValue;
|
|
1067
1071
|
destroy(): void;
|
|
1072
|
+
private static readonly unavailableMessage;
|
|
1073
|
+
private static isAvailable;
|
|
1068
1074
|
static getInstance(target: HTMLElement | string, isInstance?: boolean): any;
|
|
1069
1075
|
static autoInit(): void;
|
|
1070
1076
|
}
|
|
@@ -1149,6 +1155,7 @@ export declare class HSScrollspy extends HSBasePlugin<IScrollspyOptions> impleme
|
|
|
1149
1155
|
private isScrollingDown;
|
|
1150
1156
|
private lastScrollTop;
|
|
1151
1157
|
private onScrollableScrollListener;
|
|
1158
|
+
private onPopstateListener;
|
|
1152
1159
|
private onLinkClickListener;
|
|
1153
1160
|
constructor(el: HTMLElement, options?: {});
|
|
1154
1161
|
private scrollableScroll;
|
|
@@ -1156,6 +1163,7 @@ export declare class HSScrollspy extends HSBasePlugin<IScrollspyOptions> impleme
|
|
|
1156
1163
|
private determineScrollDirection;
|
|
1157
1164
|
private linkClick;
|
|
1158
1165
|
private update;
|
|
1166
|
+
private handlePopstate;
|
|
1159
1167
|
private scrollTo;
|
|
1160
1168
|
destroy(): void;
|
|
1161
1169
|
static getInstance(target: HTMLElement, isInstance?: boolean): any;
|
|
@@ -1253,6 +1261,7 @@ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements IS
|
|
|
1253
1261
|
private lastQuery;
|
|
1254
1262
|
private readonly apiPageStart?;
|
|
1255
1263
|
private readonly apiTotalPath?;
|
|
1264
|
+
private isLoadEventFired;
|
|
1256
1265
|
private optionId;
|
|
1257
1266
|
private onWrapperClickListener;
|
|
1258
1267
|
private onToggleClickListener;
|
|
@@ -1275,6 +1284,7 @@ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements IS
|
|
|
1275
1284
|
private hasValue;
|
|
1276
1285
|
private init;
|
|
1277
1286
|
private build;
|
|
1287
|
+
private fireLoadEvent;
|
|
1278
1288
|
private setOptions;
|
|
1279
1289
|
private buildWrapper;
|
|
1280
1290
|
private buildExtraMarkup;
|
|
@@ -1292,6 +1302,14 @@ export declare class HSSelect extends HSBasePlugin<ISelectOptions> implements IS
|
|
|
1292
1302
|
private setupInfiniteScroll;
|
|
1293
1303
|
private handleScroll;
|
|
1294
1304
|
private loadMore;
|
|
1305
|
+
/**
|
|
1306
|
+
* Positions the dropdown using Floating UI when `dropdownScope` is set to `"window"`.
|
|
1307
|
+
*
|
|
1308
|
+
* Requires `@floating-ui/dom` to be loaded on the page (e.g. via CDN or npm).
|
|
1309
|
+
* Used by: `dropdownScope: "window"`, `dropdownPlacement`, `dropdownAutoPlacement`.
|
|
1310
|
+
*
|
|
1311
|
+
* @see https://floating-ui.com
|
|
1312
|
+
*/
|
|
1295
1313
|
private buildFloatingUI;
|
|
1296
1314
|
private updateDropdownWidth;
|
|
1297
1315
|
private buildSearch;
|