@agnos-ui/core 0.10.0-next.4 → 0.11.0-next.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/{accordion-nxveC0GZ.cjs → accordion-BNq8mApi.cjs} +16 -21
- package/{accordion-47EpOD36.js → accordion-CYAFmYRn.js} +19 -24
- package/{alert-anMaigvi.js → alert-Cb9FhbFQ.js} +1 -1
- package/{collapse-CrfvGo_T.js → collapse-Cg9s33tY.js} +2 -2
- package/{collapse-Da_27YUU.cjs → collapse-yKsOxJlH.cjs} +1 -1
- package/{common-CCxNtFNM.js → common-DFyZvkII.js} +1 -1
- package/components/accordion/accordion.d.ts +18 -8
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +3 -3
- package/components/alert/common.d.ts +2 -2
- package/components/alert/index.js +1 -1
- package/components/carousel/index.cjs +1 -1
- package/components/carousel/index.js +3 -3
- package/components/collapse/collapse.d.ts +3 -3
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.js +1 -1
- package/components/drawer/drawer.d.ts +12 -2
- package/components/drawer/index.cjs +1 -1
- package/components/drawer/index.js +1 -1
- package/components/modal/index.cjs +1 -1
- package/components/modal/index.js +4 -4
- package/components/pagination/index.cjs +1 -1
- package/components/pagination/index.js +1 -1
- package/components/progressbar/index.cjs +1 -1
- package/components/progressbar/index.js +1 -1
- package/components/rating/index.cjs +1 -1
- package/components/rating/index.js +1 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/tree/index.cjs +1 -1
- package/components/tree/index.js +1 -1
- package/config.d.ts +0 -5
- package/{dom-Cm9_uROp.cjs → dom-BX4ImCTd.cjs} +28 -4
- package/{dom-DD1hAVZy.js → dom-Bb5ZCr_a.js} +49 -25
- package/{drawer-CGHyRTM9.js → drawer-CYtNS8c1.js} +16 -9
- package/{drawer-B5Yaqpiu.cjs → drawer-DoaLRui_.cjs} +13 -6
- package/index.cjs +12 -14
- package/index.d.ts +0 -1
- package/index.js +56 -58
- package/{modal-B_3Uxplo.cjs → modal-CMeWLNO-.cjs} +1 -1
- package/{modal-cKd3qUn1.js → modal-EHJERSIp.js} +6 -6
- package/package.json +1 -1
- package/{pagination-DlOyP_2C.js → pagination-BDKo2d3i.js} +2 -2
- package/{pagination-2Vor6JPZ.cjs → pagination-Ddk3z56A.cjs} +1 -1
- package/{progressbar-B5g76eMV.js → progressbar-BFdAfV5g.js} +2 -2
- package/{progressbar-DyBRINco.cjs → progressbar-ysfDQD0Q.cjs} +1 -1
- package/{promise-Y53vc4Ia.js → promise-D-RZVPuv.js} +1 -1
- package/{rating-C7C4-p4B.js → rating-D04FQgtR.js} +2 -2
- package/{rating-C0y1j4SC.cjs → rating-DO_fKNp3.cjs} +1 -1
- package/services/floatingUI.cjs +1 -1
- package/services/floatingUI.js +2 -2
- package/services/focusElement.cjs +1 -1
- package/services/focusElement.js +1 -1
- package/services/focustrack.cjs +1 -1
- package/services/focustrack.js +1 -1
- package/services/matchMedia.cjs +1 -1
- package/services/matchMedia.js +1 -1
- package/services/navManager.cjs +5 -5
- package/services/navManager.js +2 -2
- package/services/pointerdownPosition.cjs +1 -1
- package/services/pointerdownPosition.js +1 -1
- package/services/portal.cjs +1 -1
- package/services/portal.js +1 -1
- package/services/resizeObserver.cjs +1 -1
- package/services/resizeObserver.js +1 -1
- package/services/siblingsInert.cjs +1 -1
- package/services/siblingsInert.js +1 -1
- package/services/transitions/baseTransitions.cjs +1 -1
- package/services/transitions/baseTransitions.js +3 -3
- package/services/transitions/collapse.cjs +1 -1
- package/services/transitions/collapse.js +1 -1
- package/services/transitions/cssTransitions.cjs +1 -1
- package/services/transitions/cssTransitions.js +2 -2
- package/services/transitions/simpleClassTransition.cjs +1 -1
- package/services/transitions/simpleClassTransition.js +1 -1
- package/{slider-B4WrdTeE.js → slider-BPQIKRKL.js} +3 -3
- package/{slider-DTO58syz.cjs → slider-BRktp0--.cjs} +1 -1
- package/textDirection-cNgt24LJ.js +4 -0
- package/textDirection-zqcZ5-eK.cjs +3 -0
- package/{toaster-CT148JSJ.cjs → toaster-Kq-cZoiD.cjs} +1 -1
- package/{toaster-CRPErgI2.js → toaster-y_hXuh4o.js} +3 -3
- package/{tree-CHpFqJPx.js → tree-AM_J23Hz.js} +2 -2
- package/{tree-C4l2Wqny.cjs → tree-BAE89Xjn.cjs} +1 -1
- package/utils/directive.cjs +2 -1
- package/utils/directive.d.ts +8 -0
- package/utils/directive.js +20 -19
- package/utils/stores.cjs +5 -2
- package/utils/stores.js +6 -3
- package/utils/writables.js +11 -11
- package/{writables-Is1bF1Vt.js → writables-DYGjj5T3.js} +10 -10
- package/components/select/index.cjs +0 -5
- package/components/select/index.d.ts +0 -1
- package/components/select/index.js +0 -5
- package/components/select/select.d.ts +0 -311
- package/select-Dhsb9msC.cjs +0 -376
- package/select-nnl00UWY.js +0 -377
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BROWSER } from "esm-env";
|
|
2
|
-
import { readable, batch, asReadable, writable, computed } from "@amadeus-it-group/tansu";
|
|
2
|
+
import { readable, batch, asReadable, writable, derived, computed } from "@amadeus-it-group/tansu";
|
|
3
3
|
import { noop } from "./utils/func.js";
|
|
4
4
|
const importantSuffixRegExp = /\s*!important$/;
|
|
5
5
|
const withoutImportant = (value) => value?.replace(importantSuffixRegExp, "") ?? "";
|
|
@@ -121,10 +121,13 @@ function clsx() {
|
|
|
121
121
|
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
122
122
|
return n;
|
|
123
123
|
}
|
|
124
|
-
const isBrowserHTMLElement = BROWSER ? (
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
const isBrowserHTMLElement = BROWSER ? (
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
126
|
+
((element) => {
|
|
127
|
+
const contentWindow = element?.ownerDocument?.defaultView ?? window;
|
|
128
|
+
return element instanceof contentWindow.HTMLElement;
|
|
129
|
+
})
|
|
130
|
+
) : (
|
|
128
131
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
129
132
|
((element) => false)
|
|
130
133
|
);
|
|
@@ -276,6 +279,26 @@ const createBrowserStoreDirective = () => {
|
|
|
276
279
|
const { directive, element$ } = createStoreDirective();
|
|
277
280
|
return { directive: browserDirective(directive), element$ };
|
|
278
281
|
};
|
|
282
|
+
const conditionalDirective = (directive, condition) => (element, arg) => {
|
|
283
|
+
const instance$ = derived(
|
|
284
|
+
condition,
|
|
285
|
+
(enabled, set) => {
|
|
286
|
+
const instance = enabled ? directive(element, arg) : void 0;
|
|
287
|
+
set(instance);
|
|
288
|
+
return () => instance?.destroy?.();
|
|
289
|
+
},
|
|
290
|
+
void 0
|
|
291
|
+
);
|
|
292
|
+
const destroy = instance$.subscribe(() => {
|
|
293
|
+
});
|
|
294
|
+
return {
|
|
295
|
+
update(newArg) {
|
|
296
|
+
arg = newArg;
|
|
297
|
+
instance$()?.update?.(newArg);
|
|
298
|
+
},
|
|
299
|
+
destroy
|
|
300
|
+
};
|
|
301
|
+
};
|
|
279
302
|
const mergeDirectives = (...args) => (element, arg) => {
|
|
280
303
|
const instances = batch(() => args.map((directive) => directive(element, arg)));
|
|
281
304
|
return {
|
|
@@ -473,29 +496,30 @@ function bindClassName(node, className, value$) {
|
|
|
473
496
|
};
|
|
474
497
|
}
|
|
475
498
|
export {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
499
|
+
generateId as A,
|
|
500
|
+
computeCommonAncestor as B,
|
|
501
|
+
attributesData as a,
|
|
502
|
+
bindDirective as b,
|
|
479
503
|
bindDirectiveNoArg as c,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
504
|
+
browserDirective as d,
|
|
505
|
+
classDirective as e,
|
|
506
|
+
conditionalDirective as f,
|
|
507
|
+
createAttributesDirective as g,
|
|
484
508
|
createBrowserStoreArrayDirective as h,
|
|
485
|
-
|
|
509
|
+
createBrowserStoreDirective as i,
|
|
486
510
|
createConditionalBrowserStoreArrayDirective as j,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
511
|
+
createConditionalStoreArrayDirective as k,
|
|
512
|
+
createStoreArrayDirective as l,
|
|
513
|
+
createStoreDirective as m,
|
|
514
|
+
directiveAttributes as n,
|
|
515
|
+
directiveSubscribe as o,
|
|
516
|
+
directiveUpdate as p,
|
|
517
|
+
isBrowserHTMLElement as q,
|
|
518
|
+
mapDirectiveArg as r,
|
|
519
|
+
mergeDirectives as s,
|
|
520
|
+
multiDirective as t,
|
|
521
|
+
registrationArray as u,
|
|
522
|
+
ssrAttributes as v,
|
|
499
523
|
addEvent as w,
|
|
500
524
|
removeClasses as x,
|
|
501
525
|
addClasses as y,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { computed, asWritable, writable, untrack
|
|
1
|
+
import { computed, asWritable, readable, writable, untrack } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { focusElement } from "./services/focusElement.js";
|
|
3
3
|
import { createPointerdownPositionDirective } from "./services/pointerdownPosition.js";
|
|
4
4
|
import { portal } from "./services/portal.js";
|
|
5
5
|
import { siblingsInert } from "./services/siblingsInert.js";
|
|
6
6
|
import { createTransition } from "./services/transitions/baseTransitions.js";
|
|
7
|
-
import {
|
|
7
|
+
import { b as bindDirective, i as createBrowserStoreDirective, s as mergeDirectives, g as createAttributesDirective, q as isBrowserHTMLElement, f as conditionalDirective, o as directiveSubscribe } from "./dom-Bb5ZCr_a.js";
|
|
8
8
|
import { noop } from "./utils/func.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as revertScrollbars, r as removeScrollbars } from "./scrollbars-CcxSrnCx.js";
|
|
10
10
|
import { writablesForProps, bindableProp, stateStores, true$ } from "./utils/stores.js";
|
|
11
11
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
12
|
-
import {
|
|
12
|
+
import { b as typeBoolean, i as typeNumberOrNull, e as typeFunction, f as typeHTMLElementOrNull, j as typeString } from "./writables-DYGjj5T3.js";
|
|
13
|
+
import { g as getTextDirection } from "./textDirection-cNgt24LJ.js";
|
|
13
14
|
function getDrawerDefaultConfig() {
|
|
14
15
|
return {
|
|
15
16
|
...defaultDrawerConfig
|
|
@@ -36,7 +37,8 @@ const defaultDrawerConfig = {
|
|
|
36
37
|
resizable: false,
|
|
37
38
|
backdrop: true,
|
|
38
39
|
bodyScroll: false,
|
|
39
|
-
size: null
|
|
40
|
+
size: null,
|
|
41
|
+
focusOnInit: true
|
|
40
42
|
};
|
|
41
43
|
const configValidator = {
|
|
42
44
|
animated: typeBoolean,
|
|
@@ -59,7 +61,8 @@ const configValidator = {
|
|
|
59
61
|
resizable: typeBoolean,
|
|
60
62
|
backdrop: typeBoolean,
|
|
61
63
|
bodyScroll: typeBoolean,
|
|
62
|
-
size: typeNumberOrNull
|
|
64
|
+
size: typeNumberOrNull,
|
|
65
|
+
focusOnInit: typeBoolean
|
|
63
66
|
};
|
|
64
67
|
const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
65
68
|
const [
|
|
@@ -84,6 +87,7 @@ const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
|
84
87
|
onMinimizedChange$,
|
|
85
88
|
onMaximizedChange$,
|
|
86
89
|
onResizingChange$,
|
|
90
|
+
focusOnInit$,
|
|
87
91
|
...stateProps
|
|
88
92
|
},
|
|
89
93
|
patch
|
|
@@ -190,6 +194,8 @@ const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
|
190
194
|
createPointerdownPositionDirective((event) => {
|
|
191
195
|
const drawerElement = drawerElement$();
|
|
192
196
|
const isVertical = isVertical$();
|
|
197
|
+
const documentDirection = getTextDirection(drawerElement) === "ltr" ? 1 : -1;
|
|
198
|
+
const directionFactor = isVertical ? 1 : documentDirection;
|
|
193
199
|
const startSize = drawerElement[isVertical ? "offsetHeight" : "offsetWidth"];
|
|
194
200
|
const clientXorY = isVertical ? "clientY" : "clientX";
|
|
195
201
|
const startPos = event[clientXorY];
|
|
@@ -197,7 +203,7 @@ const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
|
197
203
|
let isResizing = false;
|
|
198
204
|
return {
|
|
199
205
|
onMove(event2) {
|
|
200
|
-
setSize(startSize + direction * (event2[clientXorY] - startPos));
|
|
206
|
+
setSize(startSize + directionFactor * direction * (event2[clientXorY] - startPos));
|
|
201
207
|
if (!isResizing) {
|
|
202
208
|
isResizing = true;
|
|
203
209
|
onResizingChange$()(true);
|
|
@@ -265,7 +271,8 @@ const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
|
265
271
|
size$,
|
|
266
272
|
visible$,
|
|
267
273
|
backdropHidden$,
|
|
268
|
-
hidden
|
|
274
|
+
hidden$,
|
|
275
|
+
isVertical$
|
|
269
276
|
}),
|
|
270
277
|
patch,
|
|
271
278
|
api: {
|
|
@@ -283,7 +290,7 @@ const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
|
283
290
|
),
|
|
284
291
|
// This directive must come after the attribute directive, to ensure that all the classes and attributes are applied for the transition
|
|
285
292
|
transition.directives.directive,
|
|
286
|
-
focusElement
|
|
293
|
+
conditionalDirective(focusElement, focusOnInit$)
|
|
287
294
|
),
|
|
288
295
|
backdropPortalDirective,
|
|
289
296
|
backdropDirective: mergeDirectives(backdropTransition.directives.directive, backdropAttributeDirective),
|
|
@@ -5,12 +5,13 @@ const services_pointerdownPosition = require("./services/pointerdownPosition.cjs
|
|
|
5
5
|
const services_portal = require("./services/portal.cjs");
|
|
6
6
|
const services_siblingsInert = require("./services/siblingsInert.cjs");
|
|
7
7
|
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
8
|
-
const utils_directive = require("./dom-
|
|
8
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
9
9
|
const utils_func = require("./utils/func.cjs");
|
|
10
10
|
const scrollbars = require("./scrollbars-CT87iv_6.cjs");
|
|
11
11
|
const utils_stores = require("./utils/stores.cjs");
|
|
12
12
|
const utils_widget = require("./utils/widget.cjs");
|
|
13
13
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
14
|
+
const textDirection = require("./textDirection-zqcZ5-eK.cjs");
|
|
14
15
|
function getDrawerDefaultConfig() {
|
|
15
16
|
return {
|
|
16
17
|
...defaultDrawerConfig
|
|
@@ -37,7 +38,8 @@ const defaultDrawerConfig = {
|
|
|
37
38
|
resizable: false,
|
|
38
39
|
backdrop: true,
|
|
39
40
|
bodyScroll: false,
|
|
40
|
-
size: null
|
|
41
|
+
size: null,
|
|
42
|
+
focusOnInit: true
|
|
41
43
|
};
|
|
42
44
|
const configValidator = {
|
|
43
45
|
animated: utils_writables.typeBoolean,
|
|
@@ -60,7 +62,8 @@ const configValidator = {
|
|
|
60
62
|
resizable: utils_writables.typeBoolean,
|
|
61
63
|
backdrop: utils_writables.typeBoolean,
|
|
62
64
|
bodyScroll: utils_writables.typeBoolean,
|
|
63
|
-
size: utils_writables.typeNumberOrNull
|
|
65
|
+
size: utils_writables.typeNumberOrNull,
|
|
66
|
+
focusOnInit: utils_writables.typeBoolean
|
|
64
67
|
};
|
|
65
68
|
const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
66
69
|
const [
|
|
@@ -85,6 +88,7 @@ const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
|
85
88
|
onMinimizedChange$,
|
|
86
89
|
onMaximizedChange$,
|
|
87
90
|
onResizingChange$,
|
|
91
|
+
focusOnInit$,
|
|
88
92
|
...stateProps
|
|
89
93
|
},
|
|
90
94
|
patch
|
|
@@ -191,6 +195,8 @@ const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
|
191
195
|
services_pointerdownPosition.createPointerdownPositionDirective((event) => {
|
|
192
196
|
const drawerElement = drawerElement$();
|
|
193
197
|
const isVertical = isVertical$();
|
|
198
|
+
const documentDirection = textDirection.getTextDirection(drawerElement) === "ltr" ? 1 : -1;
|
|
199
|
+
const directionFactor = isVertical ? 1 : documentDirection;
|
|
194
200
|
const startSize = drawerElement[isVertical ? "offsetHeight" : "offsetWidth"];
|
|
195
201
|
const clientXorY = isVertical ? "clientY" : "clientX";
|
|
196
202
|
const startPos = event[clientXorY];
|
|
@@ -198,7 +204,7 @@ const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
|
198
204
|
let isResizing = false;
|
|
199
205
|
return {
|
|
200
206
|
onMove(event2) {
|
|
201
|
-
setSize(startSize + direction * (event2[clientXorY] - startPos));
|
|
207
|
+
setSize(startSize + directionFactor * direction * (event2[clientXorY] - startPos));
|
|
202
208
|
if (!isResizing) {
|
|
203
209
|
isResizing = true;
|
|
204
210
|
onResizingChange$()(true);
|
|
@@ -266,7 +272,8 @@ const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
|
266
272
|
size$,
|
|
267
273
|
visible$,
|
|
268
274
|
backdropHidden$,
|
|
269
|
-
hidden
|
|
275
|
+
hidden$,
|
|
276
|
+
isVertical$
|
|
270
277
|
}),
|
|
271
278
|
patch,
|
|
272
279
|
api: {
|
|
@@ -284,7 +291,7 @@ const createDrawer = utils_widget.createWidgetFactory("drawer", (config) => {
|
|
|
284
291
|
),
|
|
285
292
|
// This directive must come after the attribute directive, to ensure that all the classes and attributes are applied for the transition
|
|
286
293
|
transition.directives.directive,
|
|
287
|
-
services_focusElement.focusElement
|
|
294
|
+
utils_directive.conditionalDirective(services_focusElement.focusElement, focusOnInit$)
|
|
288
295
|
),
|
|
289
296
|
backdropPortalDirective,
|
|
290
297
|
backdropDirective: utils_directive.mergeDirectives(backdropTransition.directives.directive, backdropAttributeDirective),
|
package/index.cjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const types = require("./types.cjs");
|
|
4
|
-
const accordion = require("./accordion-
|
|
4
|
+
const accordion = require("./accordion-BNq8mApi.cjs");
|
|
5
5
|
const alert = require("./alert-AhaliJ17.cjs");
|
|
6
|
-
const collapse = require("./collapse-
|
|
7
|
-
const modal = require("./modal-
|
|
8
|
-
const pagination = require("./pagination-
|
|
9
|
-
const progressbar = require("./progressbar-
|
|
10
|
-
const rating = require("./rating-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const drawer = require("./drawer-B5Yaqpiu.cjs");
|
|
6
|
+
const collapse = require("./collapse-yKsOxJlH.cjs");
|
|
7
|
+
const modal = require("./modal-CMeWLNO-.cjs");
|
|
8
|
+
const pagination = require("./pagination-Ddk3z56A.cjs");
|
|
9
|
+
const progressbar = require("./progressbar-ysfDQD0Q.cjs");
|
|
10
|
+
const rating = require("./rating-DO_fKNp3.cjs");
|
|
11
|
+
const slider = require("./slider-BRktp0--.cjs");
|
|
12
|
+
const toaster = require("./toaster-Kq-cZoiD.cjs");
|
|
13
|
+
const tree = require("./tree-BAE89Xjn.cjs");
|
|
14
|
+
const drawer = require("./drawer-DoaLRui_.cjs");
|
|
16
15
|
const config = require("./config.cjs");
|
|
17
16
|
const services_extendWidget = require("./services/extendWidget.cjs");
|
|
18
17
|
const services_floatingUI = require("./services/floatingUI.cjs");
|
|
@@ -27,7 +26,7 @@ const services_hash = require("./services/hash.cjs");
|
|
|
27
26
|
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
28
27
|
const services_transitions_cssTransitions = require("./services/transitions/cssTransitions.cjs");
|
|
29
28
|
const services_transitions_simpleClassTransition = require("./services/transitions/simpleClassTransition.cjs");
|
|
30
|
-
const utils_directive = require("./dom-
|
|
29
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
31
30
|
const utils_stores = require("./utils/stores.cjs");
|
|
32
31
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
33
32
|
exports.FACTORY_WIDGET_NAME = types.FACTORY_WIDGET_NAME;
|
|
@@ -51,8 +50,6 @@ exports.createProgressbar = progressbar.createProgressbar;
|
|
|
51
50
|
exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
|
|
52
51
|
exports.createRating = rating.createRating;
|
|
53
52
|
exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
|
|
54
|
-
exports.createSelect = select.createSelect;
|
|
55
|
-
exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
|
|
56
53
|
exports.createSlider = slider.createSlider;
|
|
57
54
|
exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
|
|
58
55
|
exports.Toaster = toaster.Toaster;
|
|
@@ -90,6 +87,7 @@ exports.bindDirective = utils_directive.bindDirective;
|
|
|
90
87
|
exports.bindDirectiveNoArg = utils_directive.bindDirectiveNoArg;
|
|
91
88
|
exports.browserDirective = utils_directive.browserDirective;
|
|
92
89
|
exports.classDirective = utils_directive.classDirective;
|
|
90
|
+
exports.conditionalDirective = utils_directive.conditionalDirective;
|
|
93
91
|
exports.createAttributesDirective = utils_directive.createAttributesDirective;
|
|
94
92
|
exports.createBrowserStoreArrayDirective = utils_directive.createBrowserStoreArrayDirective;
|
|
95
93
|
exports.createBrowserStoreDirective = utils_directive.createBrowserStoreDirective;
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './components/modal';
|
|
|
6
6
|
export * from './components/pagination';
|
|
7
7
|
export * from './components/progressbar';
|
|
8
8
|
export * from './components/rating';
|
|
9
|
-
export * from './components/select';
|
|
10
9
|
export * from './components/slider';
|
|
11
10
|
export * from './components/toast';
|
|
12
11
|
export * from './components/tree';
|
package/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { FACTORY_WIDGET_NAME, INVALID_VALUE } from "./types.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as c2, g as g2 } from "./alert-
|
|
4
|
-
import { c as c3, g as g3 } from "./collapse-
|
|
5
|
-
import { c as c4, g as g4, a as a2, b
|
|
6
|
-
import { c as c5, g as g5 } from "./pagination-
|
|
7
|
-
import { c as c6, g as g6 } from "./progressbar-
|
|
8
|
-
import { c as c7, g as g7 } from "./rating-
|
|
9
|
-
import { c as c8, g as g8 } from "./
|
|
10
|
-
import { c as c9, g as g9 } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { c as c11, g as g11 } from "./
|
|
13
|
-
import { c as c12, g as g12 } from "./drawer-CGHyRTM9.js";
|
|
2
|
+
import { c, a, f, g } from "./accordion-CYAFmYRn.js";
|
|
3
|
+
import { c as c2, g as g2 } from "./alert-Cb9FhbFQ.js";
|
|
4
|
+
import { c as c3, g as g3 } from "./collapse-Cg9s33tY.js";
|
|
5
|
+
import { c as c4, g as g4, m, a as a2, b } from "./modal-EHJERSIp.js";
|
|
6
|
+
import { c as c5, g as g5 } from "./pagination-BDKo2d3i.js";
|
|
7
|
+
import { c as c6, g as g6 } from "./progressbar-BFdAfV5g.js";
|
|
8
|
+
import { c as c7, g as g7 } from "./rating-D04FQgtR.js";
|
|
9
|
+
import { c as c8, g as g8 } from "./slider-BPQIKRKL.js";
|
|
10
|
+
import { T, c as c9, d, g as g9 } from "./toaster-y_hXuh4o.js";
|
|
11
|
+
import { c as c10, g as g10 } from "./tree-AM_J23Hz.js";
|
|
12
|
+
import { c as c11, g as g11 } from "./drawer-CYtNS8c1.js";
|
|
14
13
|
import { createWidgetsConfig, mergeInto } from "./config.js";
|
|
15
14
|
import { extendWidgetProps } from "./services/extendWidget.js";
|
|
16
15
|
import { createFloatingUI } from "./services/floatingUI.js";
|
|
@@ -25,32 +24,33 @@ import { hash$ } from "./services/hash.js";
|
|
|
25
24
|
import { createTransition, noAnimation } from "./services/transitions/baseTransitions.js";
|
|
26
25
|
import { createCSSTransition, getTransitionDurationMs, hasTransition } from "./services/transitions/cssTransitions.js";
|
|
27
26
|
import { createSimpleClassTransition } from "./services/transitions/simpleClassTransition.js";
|
|
28
|
-
import {
|
|
27
|
+
import { a as a3, b as b2, c as c12, d as d2, e, f as f2, g as g12, h, i, j, k, l, m as m2, n, o, p, q, r, s, t, u, v } from "./dom-Bb5ZCr_a.js";
|
|
29
28
|
import { bindableDerived, bindableProp, createPatch, false$, findChangedProperties, idWithDefault, isStore, mergeConfigStores, normalizeConfigStores, stateStores, toReadableStore, toWritableStore, true$, writableWithDefault, writablesForProps, writablesWithDefault } from "./utils/stores.js";
|
|
30
|
-
import {
|
|
29
|
+
import { c as c13, t as t2, a as a4, b as b3, d as d3, e as e2, f as f3, g as g13, h as h2, i as i2, j as j2, k as k2 } from "./writables-DYGjj5T3.js";
|
|
31
30
|
export {
|
|
32
31
|
FACTORY_WIDGET_NAME,
|
|
33
32
|
INVALID_VALUE,
|
|
34
33
|
T as Toaster,
|
|
35
34
|
activeElement$,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
a3 as attributesData,
|
|
36
|
+
b2 as bindDirective,
|
|
37
|
+
c12 as bindDirectiveNoArg,
|
|
39
38
|
bindableDerived,
|
|
40
39
|
bindableProp,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
c as
|
|
40
|
+
d2 as browserDirective,
|
|
41
|
+
e as classDirective,
|
|
42
|
+
f2 as conditionalDirective,
|
|
43
|
+
c as createAccordion,
|
|
44
|
+
a as createAccordionItem,
|
|
45
45
|
c2 as createAlert,
|
|
46
|
-
|
|
46
|
+
g12 as createAttributesDirective,
|
|
47
47
|
h as createBrowserStoreArrayDirective,
|
|
48
|
-
|
|
48
|
+
i as createBrowserStoreDirective,
|
|
49
49
|
createCSSTransition,
|
|
50
50
|
c3 as createCollapse,
|
|
51
51
|
j as createConditionalBrowserStoreArrayDirective,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
k as createConditionalStoreArrayDirective,
|
|
53
|
+
c11 as createDrawer,
|
|
54
54
|
createFloatingUI,
|
|
55
55
|
createHasFocus,
|
|
56
56
|
createIntersection,
|
|
@@ -63,20 +63,19 @@ export {
|
|
|
63
63
|
c7 as createRating,
|
|
64
64
|
createResizeObserver,
|
|
65
65
|
createResizeObserverMap,
|
|
66
|
-
c8 as createSelect,
|
|
67
66
|
createSimpleClassTransition,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
c8 as createSlider,
|
|
68
|
+
l as createStoreArrayDirective,
|
|
69
|
+
m2 as createStoreDirective,
|
|
70
|
+
c9 as createToast,
|
|
72
71
|
createTransition,
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
c10 as createTree,
|
|
73
|
+
c13 as createTypeEnum,
|
|
75
74
|
createWidgetsConfig,
|
|
76
75
|
d as defaultToasterProps,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
n as directiveAttributes,
|
|
77
|
+
o as directiveSubscribe,
|
|
78
|
+
p as directiveUpdate,
|
|
80
79
|
extendWidgetProps,
|
|
81
80
|
f as factoryCreateAccordion,
|
|
82
81
|
false$,
|
|
@@ -84,52 +83,51 @@ export {
|
|
|
84
83
|
g as getAccordionDefaultConfig,
|
|
85
84
|
g2 as getAlertDefaultConfig,
|
|
86
85
|
g3 as getCollapseDefaultConfig,
|
|
87
|
-
|
|
86
|
+
g11 as getDrawerDefaultConfig,
|
|
88
87
|
getKeyName,
|
|
89
88
|
g4 as getModalDefaultConfig,
|
|
90
89
|
g5 as getPaginationDefaultConfig,
|
|
91
90
|
g6 as getProgressbarDefaultConfig,
|
|
92
91
|
g7 as getRatingDefaultConfig,
|
|
93
|
-
g8 as
|
|
94
|
-
g9 as
|
|
95
|
-
g10 as getToastDefaultConfig,
|
|
92
|
+
g8 as getSliderDefaultConfig,
|
|
93
|
+
g9 as getToastDefaultConfig,
|
|
96
94
|
getTransitionDurationMs,
|
|
97
|
-
|
|
95
|
+
g10 as getTreeDefaultConfig,
|
|
98
96
|
hasTransition,
|
|
99
97
|
hash$,
|
|
100
98
|
idWithDefault,
|
|
101
|
-
|
|
99
|
+
q as isBrowserHTMLElement,
|
|
102
100
|
isInternalInputNavigation,
|
|
103
101
|
isStore,
|
|
104
|
-
|
|
102
|
+
r as mapDirectiveArg,
|
|
105
103
|
mergeConfigStores,
|
|
106
|
-
|
|
104
|
+
s as mergeDirectives,
|
|
107
105
|
mergeInto,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
m as modalCloseButtonClick,
|
|
107
|
+
a2 as modalCloseEscape,
|
|
108
|
+
b as modalOutsideClick,
|
|
109
|
+
t as multiDirective,
|
|
112
110
|
noAnimation,
|
|
113
111
|
normalizeConfigStores,
|
|
114
112
|
portal,
|
|
115
|
-
|
|
113
|
+
u as registrationArray,
|
|
116
114
|
siblingsInert,
|
|
117
|
-
|
|
115
|
+
v as ssrAttributes,
|
|
118
116
|
stateStores,
|
|
119
117
|
t2 as testToNormalizeValue,
|
|
120
118
|
toReadableStore,
|
|
121
119
|
toWritableStore,
|
|
122
120
|
true$,
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
a4 as typeArray,
|
|
122
|
+
b3 as typeBoolean,
|
|
125
123
|
d3 as typeBooleanOrNull,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
124
|
+
e2 as typeFunction,
|
|
125
|
+
f3 as typeHTMLElementOrNull,
|
|
126
|
+
g13 as typeNumber,
|
|
127
|
+
h2 as typeNumberInRangeFactory,
|
|
128
|
+
i2 as typeNumberOrNull,
|
|
129
|
+
j2 as typeString,
|
|
130
|
+
k2 as typeStringOrNull,
|
|
133
131
|
writableWithDefault,
|
|
134
132
|
writablesForProps,
|
|
135
133
|
writablesWithDefault
|
|
@@ -6,7 +6,7 @@ const services_transitions_baseTransitions = require("./services/transitions/bas
|
|
|
6
6
|
const promise = require("./promise-CxCD3NYv.cjs");
|
|
7
7
|
const utils_func = require("./utils/func.cjs");
|
|
8
8
|
const scrollbars = require("./scrollbars-CT87iv_6.cjs");
|
|
9
|
-
const utils_directive = require("./dom-
|
|
9
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
10
10
|
const services_portal = require("./services/portal.cjs");
|
|
11
11
|
const services_siblingsInert = require("./services/siblingsInert.cjs");
|
|
12
12
|
const utils_widget = require("./utils/widget.cjs");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed, readable } from "@amadeus-it-group/tansu";
|
|
2
|
-
import {
|
|
2
|
+
import { b as typeBoolean, e as typeFunction, j as typeString, f as typeHTMLElementOrNull } from "./writables-DYGjj5T3.js";
|
|
3
3
|
import { writablesForProps, stateStores } from "./utils/stores.js";
|
|
4
4
|
import { createTransition } from "./services/transitions/baseTransitions.js";
|
|
5
|
-
import { p as promiseFromStore } from "./promise-
|
|
5
|
+
import { p as promiseFromStore } from "./promise-D-RZVPuv.js";
|
|
6
6
|
import { noop } from "./utils/func.js";
|
|
7
7
|
import { r as removeScrollbars, a as revertScrollbars } from "./scrollbars-CcxSrnCx.js";
|
|
8
|
-
import {
|
|
8
|
+
import { u as registrationArray, b as bindDirective, g as createAttributesDirective, d as browserDirective, s as mergeDirectives, o as directiveSubscribe, c as bindDirectiveNoArg } from "./dom-Bb5ZCr_a.js";
|
|
9
9
|
import { portal } from "./services/portal.js";
|
|
10
10
|
import { siblingsInert } from "./services/siblingsInert.js";
|
|
11
11
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
@@ -240,9 +240,9 @@ const createModal = createWidgetFactory("modal", (config$) => {
|
|
|
240
240
|
return res;
|
|
241
241
|
});
|
|
242
242
|
export {
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
modalCloseEscape as a,
|
|
244
|
+
modalOutsideClick as b,
|
|
245
245
|
createModal as c,
|
|
246
246
|
getModalDefaultConfig as g,
|
|
247
|
-
|
|
247
|
+
modalCloseButtonClick as m
|
|
248
248
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { writablesForProps, bindableProp, stateStores, true$ } from "./utils/stores.js";
|
|
3
|
-
import {
|
|
3
|
+
import { j as typeString, e as typeFunction, b as typeBoolean, g as typeNumber, l as clamp, m as isNumber } from "./writables-DYGjj5T3.js";
|
|
4
4
|
import { noop } from "./utils/func.js";
|
|
5
|
-
import {
|
|
5
|
+
import { g as createAttributesDirective } from "./dom-Bb5ZCr_a.js";
|
|
6
6
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
7
7
|
const PAGE_LINK_DEFAULT = "#";
|
|
8
8
|
const defaultConfig = {
|
|
@@ -3,7 +3,7 @@ const tansu = require("@amadeus-it-group/tansu");
|
|
|
3
3
|
const utils_stores = require("./utils/stores.cjs");
|
|
4
4
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
5
5
|
const utils_func = require("./utils/func.cjs");
|
|
6
|
-
const utils_directive = require("./dom-
|
|
6
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
7
7
|
const utils_widget = require("./utils/widget.cjs");
|
|
8
8
|
const PAGE_LINK_DEFAULT = "#";
|
|
9
9
|
const defaultConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as typeFunction, j as typeString, g as typeNumber, l as clamp } from "./writables-DYGjj5T3.js";
|
|
2
2
|
import { writablesForProps, stateStores } from "./utils/stores.js";
|
|
3
3
|
import { computed, readable } from "@amadeus-it-group/tansu";
|
|
4
|
-
import {
|
|
4
|
+
import { g as createAttributesDirective } from "./dom-Bb5ZCr_a.js";
|
|
5
5
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
6
6
|
const defaultConfig = {
|
|
7
7
|
min: 0,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
3
3
|
const utils_stores = require("./utils/stores.cjs");
|
|
4
4
|
const tansu = require("@amadeus-it-group/tansu");
|
|
5
|
-
const utils_directive = require("./dom-
|
|
5
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
6
6
|
const utils_widget = require("./utils/widget.cjs");
|
|
7
7
|
const defaultConfig = {
|
|
8
8
|
min: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { derived, computed,
|
|
1
|
+
import { derived, computed, readable, equal, writable, asReadable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { noop } from "./utils/func.js";
|
|
3
3
|
const promisePending = { status: "pending" };
|
|
4
4
|
const isThenable = (value) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, writable, readable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { INVALID_VALUE } from "./types.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { g as createAttributesDirective } from "./dom-Bb5ZCr_a.js";
|
|
4
|
+
import { j as typeString, e as typeFunction, b as typeBoolean, g as typeNumber, l as clamp, m as isNumber } from "./writables-DYGjj5T3.js";
|
|
5
5
|
import { noop } from "./utils/func.js";
|
|
6
6
|
import { writablesForProps, bindableProp, stateStores, true$ } from "./utils/stores.js";
|
|
7
7
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
3
|
const types = require("./types.cjs");
|
|
4
|
-
const utils_directive = require("./dom-
|
|
4
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
5
5
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
6
6
|
const utils_func = require("./utils/func.cjs");
|
|
7
7
|
const utils_stores = require("./utils/stores.cjs");
|
package/services/floatingUI.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
4
|
const dom = require("@floating-ui/dom");
|
|
5
|
-
const utils_directive = require("../dom-
|
|
5
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
6
6
|
const promise = require("../promise-CxCD3NYv.cjs");
|
|
7
7
|
const utils_stores = require("../utils/stores.cjs");
|
|
8
8
|
const defaultConfig = {
|