@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
package/services/floatingUI.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, derived } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { arrow, autoUpdate, computePosition } from "@floating-ui/dom";
|
|
3
|
-
import {
|
|
4
|
-
import { a as promiseStoreToValueStore } from "../promise-
|
|
3
|
+
import { i as createBrowserStoreDirective, s as mergeDirectives, o as directiveSubscribe } from "../dom-Bb5ZCr_a.js";
|
|
4
|
+
import { a as promiseStoreToValueStore } from "../promise-D-RZVPuv.js";
|
|
5
5
|
import { writablesForProps, stateStores } from "../utils/stores.js";
|
|
6
6
|
const defaultConfig = {
|
|
7
7
|
computePositionOptions: {},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_directive = require("../dom-
|
|
3
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
4
4
|
const isFocusable = require("../isFocusable-DfzDLeAN.cjs");
|
|
5
5
|
const stack = [];
|
|
6
6
|
let stackProcessPlanned = false;
|
package/services/focusElement.js
CHANGED
package/services/focustrack.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_directive = require("../dom-
|
|
4
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
5
5
|
const esmEnv = require("esm-env");
|
|
6
6
|
const evtFocusIn = "focusin";
|
|
7
7
|
const evtFocusOut = "focusout";
|
package/services/focustrack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readable, computed } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { h as createBrowserStoreArrayDirective } from "../dom-
|
|
2
|
+
import { h as createBrowserStoreArrayDirective } from "../dom-Bb5ZCr_a.js";
|
|
3
3
|
import { BROWSER } from "esm-env";
|
|
4
4
|
const evtFocusIn = "focusin";
|
|
5
5
|
const evtFocusOut = "focusout";
|
package/services/matchMedia.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 esmEnv = require("esm-env");
|
|
5
|
-
const utils_directive = require("../dom-
|
|
5
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
6
6
|
const utils_stores = require("../utils/stores.cjs");
|
|
7
7
|
const createMatchMedia = (query) => esmEnv.BROWSER ? tansu.readable(false, {
|
|
8
8
|
onUse({ set }) {
|
package/services/matchMedia.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { BROWSER } from "esm-env";
|
|
3
|
-
import { w as addEvent } from "../dom-
|
|
3
|
+
import { w as addEvent } from "../dom-Bb5ZCr_a.js";
|
|
4
4
|
import { false$ } from "../utils/stores.js";
|
|
5
5
|
const createMatchMedia = (query) => BROWSER ? readable(false, {
|
|
6
6
|
onUse({ set }) {
|
package/services/navManager.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_directive = require("../dom-
|
|
4
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
5
5
|
const isFocusable = require("../isFocusable-DfzDLeAN.cjs");
|
|
6
|
+
const textDirection = require("../textDirection-zqcZ5-eK.cjs");
|
|
6
7
|
const compareDomOrder = (element1, element2) => {
|
|
7
8
|
if (element1 === element2) {
|
|
8
9
|
return 0;
|
|
@@ -15,7 +16,6 @@ const compareDomOrder = (element1, element2) => {
|
|
|
15
16
|
}
|
|
16
17
|
throw new Error("failed to compare elements");
|
|
17
18
|
};
|
|
18
|
-
const getTextDirection = (element) => getComputedStyle(element).direction;
|
|
19
19
|
const textInputTypes = /* @__PURE__ */ new Set(["text", "search", "url", "tel", "password"]);
|
|
20
20
|
const isTextInput = (element) => element instanceof HTMLInputElement && textInputTypes.has(element.type);
|
|
21
21
|
const getKeyName = (event) => {
|
|
@@ -39,7 +39,7 @@ const isInternalInputNavigation = (event) => {
|
|
|
39
39
|
if (isTextInput(target) && (key === "ArrowLeft" || key === "ArrowRight" || key === "Home" || key === "End")) {
|
|
40
40
|
let startPosition;
|
|
41
41
|
if (key === "ArrowLeft" || key === "ArrowRight") {
|
|
42
|
-
const direction = getTextDirection(target);
|
|
42
|
+
const direction = textDirection.getTextDirection(target);
|
|
43
43
|
startPosition = key === (direction === "ltr" ? "ArrowLeft" : "ArrowRight");
|
|
44
44
|
} else {
|
|
45
45
|
startPosition = key === "Home";
|
|
@@ -74,7 +74,7 @@ const createNavManager = () => {
|
|
|
74
74
|
const elementsInDomOrder$ = tansu.computed(() => [...elements$()].sort(compareDomOrder));
|
|
75
75
|
const ancestorDirection = () => {
|
|
76
76
|
const commonAncestor = commonAncestor$();
|
|
77
|
-
return commonAncestor ? getTextDirection(commonAncestor) : "ltr";
|
|
77
|
+
return commonAncestor ? textDirection.getTextDirection(commonAncestor) : "ltr";
|
|
78
78
|
};
|
|
79
79
|
const preventDefaultIfRelevant = (value, event) => {
|
|
80
80
|
if (value) {
|
|
@@ -89,7 +89,7 @@ const createNavManager = () => {
|
|
|
89
89
|
if (isFocusable.isFocusable(newItem)) {
|
|
90
90
|
newItem.focus();
|
|
91
91
|
if (moveDirection != 0 && isTextInput(newItem)) {
|
|
92
|
-
const changeDirection = ancestorDirection() !== getTextDirection(newItem);
|
|
92
|
+
const changeDirection = ancestorDirection() !== textDirection.getTextDirection(newItem);
|
|
93
93
|
const position = moveDirection > 0 !== changeDirection ? 0 : newItem.value.length;
|
|
94
94
|
newItem.setSelectionRange(position, position, position === 0 ? "forward" : "backward");
|
|
95
95
|
}
|
package/services/navManager.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { writable, computed } from "@amadeus-it-group/tansu";
|
|
2
|
-
import {
|
|
2
|
+
import { u as registrationArray, B as computeCommonAncestor, d as browserDirective } from "../dom-Bb5ZCr_a.js";
|
|
3
3
|
import { i as isFocusable } from "../isFocusable-Ckwus82R.js";
|
|
4
|
+
import { g as getTextDirection } from "../textDirection-cNgt24LJ.js";
|
|
4
5
|
const compareDomOrder = (element1, element2) => {
|
|
5
6
|
if (element1 === element2) {
|
|
6
7
|
return 0;
|
|
@@ -13,7 +14,6 @@ const compareDomOrder = (element1, element2) => {
|
|
|
13
14
|
}
|
|
14
15
|
throw new Error("failed to compare elements");
|
|
15
16
|
};
|
|
16
|
-
const getTextDirection = (element) => getComputedStyle(element).direction;
|
|
17
17
|
const textInputTypes = /* @__PURE__ */ new Set(["text", "search", "url", "tel", "password"]);
|
|
18
18
|
const isTextInput = (element) => element instanceof HTMLInputElement && textInputTypes.has(element.type);
|
|
19
19
|
const getKeyName = (event) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_directive = require("../dom-
|
|
3
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
4
4
|
const utils_func = require("../utils/func.cjs");
|
|
5
5
|
const createPointerdownPositionDirective = (onStart) => utils_directive.browserDirective((element, arg) => {
|
|
6
6
|
let activePointerId = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as browserDirective, w as addEvent } from "../dom-Bb5ZCr_a.js";
|
|
2
2
|
import { noop } from "../utils/func.js";
|
|
3
3
|
const createPointerdownPositionDirective = (onStart) => browserDirective((element, arg) => {
|
|
4
4
|
let activePointerId = null;
|
package/services/portal.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_directive = require("../dom-
|
|
3
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
4
4
|
const portal = utils_directive.browserDirective((content, newArg) => {
|
|
5
5
|
let arg;
|
|
6
6
|
let replaceComment;
|
package/services/portal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_directive = require("../dom-
|
|
4
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
5
5
|
const utils_func = require("../utils/func.cjs");
|
|
6
6
|
const createResizeObserverMap = () => {
|
|
7
7
|
const { elements$, directive } = utils_directive.createBrowserStoreArrayDirective();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { derived } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { h as createBrowserStoreArrayDirective,
|
|
2
|
+
import { h as createBrowserStoreArrayDirective, d as browserDirective } from "../dom-Bb5ZCr_a.js";
|
|
3
3
|
import { noop } from "../utils/func.js";
|
|
4
4
|
const createResizeObserverMap = () => {
|
|
5
5
|
const { elements$, directive } = createBrowserStoreArrayDirective();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_directive = require("../dom-
|
|
4
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
5
5
|
const utils_func = require("../utils/func.cjs");
|
|
6
6
|
const ignoreInertAttributeName = "data-agnos-ignore-inert";
|
|
7
7
|
const applyInertToSiblingsRecursively = (element) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { j as createConditionalBrowserStoreArrayDirective,
|
|
2
|
+
import { j as createConditionalBrowserStoreArrayDirective, s as mergeDirectives, o as directiveSubscribe } from "../dom-Bb5ZCr_a.js";
|
|
3
3
|
import { noop } from "../utils/func.js";
|
|
4
4
|
const ignoreInertAttributeName = "data-agnos-ignore-inert";
|
|
5
5
|
const applyInertToSiblingsRecursively = (element) => {
|
|
@@ -5,7 +5,7 @@ const utils_writables = require("../../writables-Dt68gADJ.cjs");
|
|
|
5
5
|
const promise = require("../../promise-CxCD3NYv.cjs");
|
|
6
6
|
const utils_func = require("../../utils/func.cjs");
|
|
7
7
|
const utils_stores = require("../../utils/stores.cjs");
|
|
8
|
-
const utils_directive = require("../../dom-
|
|
8
|
+
const utils_directive = require("../../dom-BX4ImCTd.cjs");
|
|
9
9
|
const neverEndingPromise = new Promise(utils_func.noop);
|
|
10
10
|
const noAnimation = (element, direction) => {
|
|
11
11
|
element.style.display = direction === "show" ? "" : "none";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, writable, derived, batch } from "@amadeus-it-group/tansu";
|
|
2
|
-
import { d as typeBooleanOrNull,
|
|
3
|
-
import { d as promiseWithResolve } from "../../promise-
|
|
2
|
+
import { d as typeBooleanOrNull, e as typeFunction, b as typeBoolean } from "../../writables-DYGjj5T3.js";
|
|
3
|
+
import { d as promiseWithResolve } from "../../promise-D-RZVPuv.js";
|
|
4
4
|
import { noop } from "../../utils/func.js";
|
|
5
5
|
import { writablesForProps, bindableDerived, stateStores } from "../../utils/stores.js";
|
|
6
|
-
import {
|
|
6
|
+
import { m as createStoreDirective, s as mergeDirectives, o as directiveSubscribe } from "../../dom-Bb5ZCr_a.js";
|
|
7
7
|
const neverEndingPromise = new Promise(noop);
|
|
8
8
|
const noAnimation = (element, direction) => {
|
|
9
9
|
element.style.display = direction === "show" ? "" : "none";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_directive = require("../../dom-
|
|
3
|
+
const utils_directive = require("../../dom-BX4ImCTd.cjs");
|
|
4
4
|
const services_transitions_cssTransitions = require("./cssTransitions.cjs");
|
|
5
5
|
const createCollapseTransition = ({
|
|
6
6
|
dimension = "height",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as isBrowserHTMLElement, x as removeClasses, y as addClasses, z as reflow } from "../../dom-Bb5ZCr_a.js";
|
|
2
2
|
import { createCSSTransition } from "./cssTransitions.js";
|
|
3
3
|
const createCollapseTransition = ({
|
|
4
4
|
dimension = "height",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_directive = require("../../dom-
|
|
3
|
+
const utils_directive = require("../../dom-BX4ImCTd.cjs");
|
|
4
4
|
const utils_func = require("../../utils/func.cjs");
|
|
5
5
|
const promise = require("../../promise-CxCD3NYv.cjs");
|
|
6
6
|
function hasTransition(element) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as isBrowserHTMLElement } from "../../dom-Bb5ZCr_a.js";
|
|
2
2
|
import { noop } from "../../utils/func.js";
|
|
3
|
-
import { b as promiseFromEvent, c as promiseFromTimeout } from "../../promise-
|
|
3
|
+
import { b as promiseFromEvent, c as promiseFromTimeout } from "../../promise-D-RZVPuv.js";
|
|
4
4
|
function hasTransition(element) {
|
|
5
5
|
return window.getComputedStyle(element).transitionProperty !== "none";
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const services_transitions_cssTransitions = require("./cssTransitions.cjs");
|
|
4
|
-
const utils_directive = require("../../dom-
|
|
4
|
+
const utils_directive = require("../../dom-BX4ImCTd.cjs");
|
|
5
5
|
const createSimpleClassTransition = (config) => {
|
|
6
6
|
const { animationPendingClasses, animationPendingShowClasses, animationPendingHideClasses, showClasses, hideClasses } = config;
|
|
7
7
|
return services_transitions_cssTransitions.createCSSTransition((element, direction, animated, context) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createCSSTransition } from "./cssTransitions.js";
|
|
2
|
-
import { x as removeClasses, y as addClasses, z as reflow } from "../../dom-
|
|
2
|
+
import { x as removeClasses, y as addClasses, z as reflow } from "../../dom-Bb5ZCr_a.js";
|
|
3
3
|
const createSimpleClassTransition = (config) => {
|
|
4
4
|
const { animationPendingClasses, animationPendingShowClasses, animationPendingHideClasses, showClasses, hideClasses } = config;
|
|
5
5
|
return createCSSTransition((element, direction, animated, context) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, writable, readable } from "@amadeus-it-group/tansu";
|
|
2
|
-
import {
|
|
2
|
+
import { i as createBrowserStoreDirective, h as createBrowserStoreArrayDirective, s as mergeDirectives, g as createAttributesDirective, d as browserDirective } from "./dom-Bb5ZCr_a.js";
|
|
3
3
|
import { noop } from "./utils/func.js";
|
|
4
|
-
import { writablesForProps, bindableProp, stateStores
|
|
5
|
-
import {
|
|
4
|
+
import { writablesForProps, bindableProp, true$, stateStores } from "./utils/stores.js";
|
|
5
|
+
import { h as typeNumberInRangeFactory, b as typeBoolean, j as typeString, a as typeArray, e as typeFunction, g as typeNumber, l as clamp } from "./writables-DYGjj5T3.js";
|
|
6
6
|
import { createResizeObserver, createResizeObserverMap } from "./services/resizeObserver.js";
|
|
7
7
|
import { createPointerdownPositionDirective } from "./services/pointerdownPosition.js";
|
|
8
8
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
|
-
const utils_directive = require("./dom-
|
|
3
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
4
4
|
const utils_func = require("./utils/func.cjs");
|
|
5
5
|
const utils_stores = require("./utils/stores.cjs");
|
|
6
6
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
3
|
const services_extendWidget = require("./services/extendWidget.cjs");
|
|
4
|
-
const utils_directive = require("./dom-
|
|
4
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
5
5
|
const utils_stores = require("./utils/stores.cjs");
|
|
6
6
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
7
7
|
const common = require("./common-B5jS-Ih_.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, readable, writable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { extendWidgetProps } from "./services/extendWidget.js";
|
|
3
|
-
import {
|
|
3
|
+
import { o as directiveSubscribe, g as createAttributesDirective } from "./dom-Bb5ZCr_a.js";
|
|
4
4
|
import { true$ } from "./utils/stores.js";
|
|
5
|
-
import {
|
|
6
|
-
import { g as getCommonAlertDefaultConfig, c as createCommonAlert } from "./common-
|
|
5
|
+
import { h as typeNumberInRangeFactory, b as typeBoolean } from "./writables-DYGjj5T3.js";
|
|
6
|
+
import { g as getCommonAlertDefaultConfig, c as createCommonAlert } from "./common-DFyZvkII.js";
|
|
7
7
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
8
8
|
const toastDefaultConfig = {
|
|
9
9
|
autoHide: true,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { writable, computed, readable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { createNavManager } from "./services/navManager.js";
|
|
3
|
-
import {
|
|
3
|
+
import { s as mergeDirectives, d as browserDirective, g as createAttributesDirective, b as bindDirective } from "./dom-Bb5ZCr_a.js";
|
|
4
4
|
import { noop } from "./utils/func.js";
|
|
5
5
|
import { writablesForProps, stateStores, true$ } from "./utils/stores.js";
|
|
6
|
-
import {
|
|
6
|
+
import { e as typeFunction, a as typeArray, j as typeString } from "./writables-DYGjj5T3.js";
|
|
7
7
|
import { createWidgetFactory } from "./utils/widget.js";
|
|
8
8
|
function getTreeDefaultConfig() {
|
|
9
9
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const tansu = require("@amadeus-it-group/tansu");
|
|
3
3
|
const services_navManager = require("./services/navManager.cjs");
|
|
4
|
-
const utils_directive = require("./dom-
|
|
4
|
+
const utils_directive = require("./dom-BX4ImCTd.cjs");
|
|
5
5
|
const utils_func = require("./utils/func.cjs");
|
|
6
6
|
const utils_stores = require("./utils/stores.cjs");
|
|
7
7
|
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
package/utils/directive.cjs
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("@amadeus-it-group/tansu");
|
|
4
4
|
require("esm-env");
|
|
5
|
-
const utils_directive = require("../dom-
|
|
5
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
6
6
|
require("./func.cjs");
|
|
7
7
|
exports.attributesData = utils_directive.attributesData;
|
|
8
8
|
exports.bindDirective = utils_directive.bindDirective;
|
|
9
9
|
exports.bindDirectiveNoArg = utils_directive.bindDirectiveNoArg;
|
|
10
10
|
exports.browserDirective = utils_directive.browserDirective;
|
|
11
11
|
exports.classDirective = utils_directive.classDirective;
|
|
12
|
+
exports.conditionalDirective = utils_directive.conditionalDirective;
|
|
12
13
|
exports.createAttributesDirective = utils_directive.createAttributesDirective;
|
|
13
14
|
exports.createBrowserStoreArrayDirective = utils_directive.createBrowserStoreArrayDirective;
|
|
14
15
|
exports.createBrowserStoreDirective = utils_directive.createBrowserStoreDirective;
|
package/utils/directive.d.ts
CHANGED
|
@@ -211,6 +211,14 @@ export declare const createBrowserStoreDirective: () => {
|
|
|
211
211
|
directive: Directive<void, SSRHTMLElement>;
|
|
212
212
|
element$: ReadableSignal<HTMLElement | null>;
|
|
213
213
|
};
|
|
214
|
+
/**
|
|
215
|
+
* Returns a directive that conditionally applies another directive.
|
|
216
|
+
*
|
|
217
|
+
* @param directive - The directive to conditionally apply.
|
|
218
|
+
* @param condition - The condition
|
|
219
|
+
* @returns A directive that applies the given directive when true, and removes it when false.
|
|
220
|
+
*/
|
|
221
|
+
export declare const conditionalDirective: <T, U extends SSRHTMLElement>(directive: Directive<T, U>, condition: ReadableSignal<boolean>) => Directive<T, U>;
|
|
214
222
|
/**
|
|
215
223
|
* Merges multiple directives into a single directive that executes all of them when called.
|
|
216
224
|
*
|
package/utils/directive.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import "@amadeus-it-group/tansu";
|
|
2
2
|
import "esm-env";
|
|
3
|
-
import {
|
|
3
|
+
import { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v } from "../dom-Bb5ZCr_a.js";
|
|
4
4
|
import "./func.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a as attributesData,
|
|
7
|
+
b as bindDirective,
|
|
8
8
|
c as bindDirectiveNoArg,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
d as browserDirective,
|
|
10
|
+
e as classDirective,
|
|
11
|
+
f as conditionalDirective,
|
|
12
|
+
g as createAttributesDirective,
|
|
12
13
|
h as createBrowserStoreArrayDirective,
|
|
13
|
-
|
|
14
|
+
i as createBrowserStoreDirective,
|
|
14
15
|
j as createConditionalBrowserStoreArrayDirective,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
k as createConditionalStoreArrayDirective,
|
|
17
|
+
l as createStoreArrayDirective,
|
|
18
|
+
m as createStoreDirective,
|
|
19
|
+
n as directiveAttributes,
|
|
20
|
+
o as directiveSubscribe,
|
|
21
|
+
p as directiveUpdate,
|
|
22
|
+
q as isBrowserHTMLElement,
|
|
23
|
+
r as mapDirectiveArg,
|
|
24
|
+
s as mergeDirectives,
|
|
25
|
+
t as multiDirective,
|
|
26
|
+
u as registrationArray,
|
|
27
|
+
v as ssrAttributes
|
|
27
28
|
};
|
package/utils/stores.cjs
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const tansu = require("@amadeus-it-group/tansu");
|
|
4
4
|
const types = require("../types.cjs");
|
|
5
5
|
const utils_func = require("./func.cjs");
|
|
6
|
-
const utils_directive = require("../dom-
|
|
6
|
+
const utils_directive = require("../dom-BX4ImCTd.cjs");
|
|
7
7
|
function createPatch(stores) {
|
|
8
8
|
return function(storesValues) {
|
|
9
9
|
tansu.batch(() => {
|
|
@@ -65,7 +65,10 @@ const normalizeConfigStores = (keys, config) => {
|
|
|
65
65
|
if (config) {
|
|
66
66
|
const configIsStore = isStore(config);
|
|
67
67
|
for (const key of keys) {
|
|
68
|
-
res[key] = configIsStore ? tansu.computed(() => config()[key]) :
|
|
68
|
+
res[key] = configIsStore ? tansu.computed(() => config()[key]) : (
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
70
|
+
toReadableStore(config[key])
|
|
71
|
+
);
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
return res;
|
package/utils/stores.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { readable,
|
|
1
|
+
import { readable, equal, asWritable, derived, computed, batch, asReadable, get, writable } from "@amadeus-it-group/tansu";
|
|
2
2
|
import { INVALID_VALUE } from "../types.js";
|
|
3
3
|
import { identity } from "./func.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as generateId } from "../dom-Bb5ZCr_a.js";
|
|
5
5
|
function createPatch(stores) {
|
|
6
6
|
return function(storesValues) {
|
|
7
7
|
batch(() => {
|
|
@@ -63,7 +63,10 @@ const normalizeConfigStores = (keys, config) => {
|
|
|
63
63
|
if (config) {
|
|
64
64
|
const configIsStore = isStore(config);
|
|
65
65
|
for (const key of keys) {
|
|
66
|
-
res[key] = configIsStore ? computed(() => config()[key]) :
|
|
66
|
+
res[key] = configIsStore ? computed(() => config()[key]) : (
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
68
|
+
toReadableStore(config[key])
|
|
69
|
+
);
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
return res;
|
package/utils/writables.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c, t, a, b, d, e, f, g, h, i, j, k } from "../writables-DYGjj5T3.js";
|
|
2
2
|
import "../types.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
c as createTypeEnum,
|
|
5
5
|
t as testToNormalizeValue,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a as typeArray,
|
|
7
|
+
b as typeBoolean,
|
|
8
8
|
d as typeBooleanOrNull,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
e as typeFunction,
|
|
10
|
+
f as typeHTMLElementOrNull,
|
|
11
|
+
g as typeNumber,
|
|
12
|
+
h as typeNumberInRangeFactory,
|
|
13
|
+
i as typeNumberOrNull,
|
|
14
|
+
j as typeString,
|
|
15
|
+
k as typeStringOrNull
|
|
16
16
|
};
|
|
@@ -86,17 +86,17 @@ function createTypeEnum(enumList) {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
typeArray as a,
|
|
90
|
+
typeBoolean as b,
|
|
91
|
+
createTypeEnum as c,
|
|
92
92
|
typeBooleanOrNull as d,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
typeFunction as e,
|
|
94
|
+
typeHTMLElementOrNull as f,
|
|
95
|
+
typeNumber as g,
|
|
96
|
+
typeNumberInRangeFactory as h,
|
|
97
|
+
typeNumberOrNull as i,
|
|
98
|
+
typeString as j,
|
|
99
|
+
typeStringOrNull as k,
|
|
100
100
|
clamp as l,
|
|
101
101
|
isNumber as m,
|
|
102
102
|
testToNormalizeValue as t
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './select';
|