@design-factory/core 21.1.0 → 22.0.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-D9ba0XYq.js → accordion-B5RqDwi3.js} +76 -15
- package/alert-Db6cG6JE.js +125 -0
- package/{collapse-Bn8iHKrd.js → collapse-D8Jo56k9.js} +2 -2
- package/{common-DFyZvkII.js → common-CP4amR0Z.js} +2 -2
- package/components/accordion/accordion.d.ts +73 -15
- package/components/accordion/index.js +1 -1
- package/components/alert/alert.d.ts +77 -8
- package/components/alert/common.d.ts +9 -9
- package/components/alert/index.js +2 -3
- package/components/carousel/index.js +2 -2
- package/components/collapse/index.js +1 -1
- package/components/drawer/drawer.d.ts +6 -0
- package/components/drawer/index.js +1 -1
- package/components/dropdown/dropdown.d.ts +110 -0
- package/components/dropdown/index.d.ts +1 -0
- package/components/dropdown/index.js +5 -0
- package/components/modal/index.js +1 -1
- package/components/pagination/index.js +1 -1
- package/components/progressbar/index.js +1 -1
- package/components/rating/index.js +1 -1
- package/components/slider/index.js +1 -1
- package/components/slider/slider.d.ts +23 -4
- package/components/toast/index.js +1 -1
- package/components/tooltip/index.d.ts +1 -0
- package/components/tooltip/index.js +174 -0
- package/components/tooltip/tooltip.d.ts +63 -0
- package/components/tree/index.js +1 -1
- package/{directive-CNNSo5Yn.js → directive-CMT2vEDg.js} +7 -4
- package/{drawer-CoBXUPyv.js → drawer-CpGnS2ln.js} +11 -4
- package/dropdown-Bjj2ql6d.js +246 -0
- package/index.d.ts +3 -1
- package/index.js +44 -37
- package/isFocusable-C2iRr0zh.js +72 -0
- package/{modal-BH9nrwVz.js → modal-CQWh2Sm5.js} +3 -3
- package/package.json +1 -1
- package/{pagination-BQWusWXN.js → pagination-DIRcpdRE.js} +2 -2
- package/{progressbar-S1pNn5rM.js → progressbar-Bth8r3Qu.js} +2 -2
- package/{promise-D-RZVPuv.js → promise-CkIc0KKt.js} +3 -3
- package/{rating-DWgGgwk3.js → rating-DLsgFSyB.js} +2 -2
- package/services/extendWidget.d.ts +1 -1
- package/services/focusElement.js +2 -2
- package/services/focustrack.js +2 -2
- package/services/matchMedia.js +1 -1
- package/services/mousetrack.d.ts +34 -0
- package/services/mousetrack.js +41 -0
- package/services/navManager.js +2 -2
- package/services/pointerdownPosition.js +1 -1
- package/services/portal.js +1 -1
- package/services/positioning.d.ts +101 -0
- package/services/positioning.js +104 -0
- package/services/resizeObserver.js +1 -1
- package/services/siblingsInert.js +1 -1
- package/services/transitions/baseTransitions.js +3 -3
- package/services/transitions/collapse.js +4 -7
- package/services/transitions/cssTransitions.js +2 -2
- package/services/transitions/simpleClassTransition.js +1 -1
- package/{slider-Br_Qiopx.js → slider-b9cVFNAL.js} +96 -58
- package/{toaster-BUBzFeJM.js → toaster-BS9qeRLF.js} +3 -3
- package/{tree-vD7ZkV8Z.js → tree-DW6iLxdw.js} +2 -2
- package/types.d.ts +8 -1
- package/utils/debounceSignal.d.ts +11 -0
- package/utils/debounceSignal.js +18 -0
- package/utils/directive.js +1 -1
- package/utils/edgeState.d.ts +23 -0
- package/utils/edgeState.js +43 -0
- package/utils/internal/isFocusable.d.ts +40 -0
- package/utils/stores.d.ts +1 -1
- package/utils/stores.js +4 -1
- package/utils/writables.d.ts +27 -13
- package/utils/writables.js +12 -11
- package/{writables-DYGjj5T3.js → writables-_7BriMb2.js} +37 -12
- package/accordion-B0vs8JWM.cjs +0 -314
- package/alert-AhaliJ17.cjs +0 -9
- package/alert-Cb9FhbFQ.js +0 -10
- package/collapse-BnWw4Hnc.cjs +0 -94
- package/common-B5jS-Ih_.cjs +0 -73
- package/components/accordion/index.cjs +0 -7
- package/components/alert/index.cjs +0 -5
- package/components/carousel/index.cjs +0 -292
- package/components/collapse/index.cjs +0 -5
- package/components/drawer/index.cjs +0 -5
- package/components/modal/index.cjs +0 -8
- package/components/pagination/index.cjs +0 -5
- package/components/progressbar/index.cjs +0 -5
- package/components/rating/index.cjs +0 -5
- package/components/slider/index.cjs +0 -5
- package/components/toast/index.cjs +0 -7
- package/components/tree/index.cjs +0 -5
- package/config.cjs +0 -36
- package/directive-DyTodNPd.cjs +0 -523
- package/drawer-Ca_ktkEs.cjs +0 -328
- package/index.cjs +0 -134
- package/isFocusable-Ckwus82R.js +0 -32
- package/isFocusable-DfzDLeAN.cjs +0 -31
- package/modal-Dxdw2Pkv.cjs +0 -252
- package/pagination-BLVa1UsZ.cjs +0 -254
- package/progressbar-RopgvVeA.cjs +0 -86
- package/promise-CxCD3NYv.cjs +0 -118
- package/rating-DZ3OQgtt.cjs +0 -183
- package/scrollbars-f651ntzz.cjs +0 -33
- package/services/extendWidget.cjs +0 -41
- package/services/floatingUI.cjs +0 -111
- package/services/floatingUI.d.ts +0 -76
- package/services/floatingUI.js +0 -111
- package/services/focusElement.cjs +0 -46
- package/services/focustrack.cjs +0 -47
- package/services/hash.cjs +0 -15
- package/services/intersection.cjs +0 -53
- package/services/matchMedia.cjs +0 -14
- package/services/navManager.cjs +0 -166
- package/services/pointerdownPosition.cjs +0 -60
- package/services/portal.cjs +0 -42
- package/services/resizeObserver.cjs +0 -54
- package/services/siblingsInert.cjs +0 -44
- package/services/transitions/baseTransitions.cjs +0 -186
- package/services/transitions/collapse.cjs +0 -40
- package/services/transitions/cssTransitions.cjs +0 -32
- package/services/transitions/simpleClassTransition.cjs +0 -37
- package/slider-pgDq1V5r.cjs +0 -807
- package/textDirection-zqcZ5-eK.cjs +0 -3
- package/toaster-Dlube4Ya.cjs +0 -161
- package/tree-Chcy4ulJ.cjs +0 -228
- package/types.cjs +0 -6
- package/utils/directive.cjs +0 -28
- package/utils/func.cjs +0 -7
- package/utils/id.cjs +0 -5
- package/utils/stores.cjs +0 -172
- package/utils/widget.cjs +0 -8
- package/utils/writables.cjs +0 -16
- package/writables-Dt68gADJ.cjs +0 -102
package/common-B5jS-Ih_.cjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
3
|
-
const utils_func = require("./utils/func.cjs");
|
|
4
|
-
const utils_stores = require("./utils/stores.cjs");
|
|
5
|
-
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
6
|
-
const defaultCommonAlertConfig = {
|
|
7
|
-
visible: true,
|
|
8
|
-
dismissible: true,
|
|
9
|
-
ariaCloseButtonLabel: "Close",
|
|
10
|
-
onVisibleChange: utils_func.noop,
|
|
11
|
-
onShown: utils_func.noop,
|
|
12
|
-
onHidden: utils_func.noop,
|
|
13
|
-
animated: true,
|
|
14
|
-
animatedOnInit: false,
|
|
15
|
-
transition: utils_func.noop,
|
|
16
|
-
className: ""
|
|
17
|
-
};
|
|
18
|
-
function getCommonAlertDefaultConfig() {
|
|
19
|
-
return { ...defaultCommonAlertConfig };
|
|
20
|
-
}
|
|
21
|
-
const commonAlertConfigValidator = {
|
|
22
|
-
dismissible: utils_writables.typeBoolean,
|
|
23
|
-
onVisibleChange: utils_writables.typeFunction,
|
|
24
|
-
onHidden: utils_writables.typeFunction,
|
|
25
|
-
onShown: utils_writables.typeFunction,
|
|
26
|
-
transition: utils_writables.typeFunction,
|
|
27
|
-
animatedOnInit: utils_writables.typeBoolean,
|
|
28
|
-
animated: utils_writables.typeBoolean,
|
|
29
|
-
visible: utils_writables.typeBoolean,
|
|
30
|
-
ariaCloseButtonLabel: utils_writables.typeString,
|
|
31
|
-
className: utils_writables.typeString
|
|
32
|
-
};
|
|
33
|
-
function createCommonAlert(config) {
|
|
34
|
-
const [
|
|
35
|
-
{
|
|
36
|
-
transition$,
|
|
37
|
-
animatedOnInit$,
|
|
38
|
-
animated$,
|
|
39
|
-
visible$: requestedVisible$,
|
|
40
|
-
onVisibleChange$,
|
|
41
|
-
onHidden$,
|
|
42
|
-
onShown$,
|
|
43
|
-
...stateProps
|
|
44
|
-
},
|
|
45
|
-
patch
|
|
46
|
-
] = utils_stores.writablesForProps(defaultCommonAlertConfig, config, commonAlertConfigValidator);
|
|
47
|
-
const transition = services_transitions_baseTransitions.createTransition({
|
|
48
|
-
props: {
|
|
49
|
-
transition: transition$,
|
|
50
|
-
visible: requestedVisible$,
|
|
51
|
-
animated: animated$,
|
|
52
|
-
animatedOnInit: animatedOnInit$,
|
|
53
|
-
onVisibleChange: onVisibleChange$,
|
|
54
|
-
onHidden: onHidden$,
|
|
55
|
-
onShown: onShown$
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
const visible$ = transition.stores.visible$;
|
|
59
|
-
const hidden$ = transition.stores.hidden$;
|
|
60
|
-
return {
|
|
61
|
-
...utils_stores.stateStores({ ...stateProps, visible$, hidden$ }),
|
|
62
|
-
patch,
|
|
63
|
-
api: {
|
|
64
|
-
open: transition.api.show,
|
|
65
|
-
close: transition.api.hide
|
|
66
|
-
},
|
|
67
|
-
directives: {
|
|
68
|
-
transitionDirective: transition.directives.directive
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
exports.createCommonAlert = createCommonAlert;
|
|
73
|
-
exports.getCommonAlertDefaultConfig = getCommonAlertDefaultConfig;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const accordion = require("../../accordion-B0vs8JWM.cjs");
|
|
4
|
-
exports.createAccordion = accordion.createAccordion;
|
|
5
|
-
exports.createAccordionItem = accordion.createAccordionItem;
|
|
6
|
-
exports.factoryCreateAccordion = accordion.factoryCreateAccordion;
|
|
7
|
-
exports.getAccordionDefaultConfig = accordion.getAccordionDefaultConfig;
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils_stores = require("../../utils/stores.cjs");
|
|
4
|
-
const utils_directive = require("../../directive-DyTodNPd.cjs");
|
|
5
|
-
const EmblaCarousel = require("embla-carousel");
|
|
6
|
-
const tansu = require("@amadeus-it-group/tansu");
|
|
7
|
-
const utils_writables = require("../../writables-Dt68gADJ.cjs");
|
|
8
|
-
const services_navManager = require("../../services/navManager.cjs");
|
|
9
|
-
const utils_widget = require("../../utils/widget.cjs");
|
|
10
|
-
const defaultConfig = {
|
|
11
|
-
align: "center",
|
|
12
|
-
container: null,
|
|
13
|
-
containScroll: "trimSnaps",
|
|
14
|
-
direction: "ltr",
|
|
15
|
-
dragFree: false,
|
|
16
|
-
dragThreshold: 10,
|
|
17
|
-
duration: 25,
|
|
18
|
-
loop: false,
|
|
19
|
-
skipSnaps: false,
|
|
20
|
-
plugins: [],
|
|
21
|
-
showNavigationArrows: true,
|
|
22
|
-
showNavigationIndicators: true,
|
|
23
|
-
ariaPrevLabel: "Select previous slide",
|
|
24
|
-
ariaNextLabel: "Select next slide",
|
|
25
|
-
ariaIndicatorLabel: (index) => `Select slide ${index + 1}`
|
|
26
|
-
};
|
|
27
|
-
function getCarouselDefaultConfig() {
|
|
28
|
-
return { ...defaultConfig };
|
|
29
|
-
}
|
|
30
|
-
const configValidator = {
|
|
31
|
-
dragFree: utils_writables.typeBoolean,
|
|
32
|
-
plugins: utils_writables.typeArray,
|
|
33
|
-
align: utils_writables.createTypeEnum(["start", "center", "end"]),
|
|
34
|
-
container: utils_writables.typeStringOrNull,
|
|
35
|
-
containScroll: utils_writables.createTypeEnum([false, "trimSnaps", "keepSnaps"]),
|
|
36
|
-
direction: utils_writables.createTypeEnum(["ltr", "rtl"]),
|
|
37
|
-
dragThreshold: utils_writables.typeNumber,
|
|
38
|
-
duration: utils_writables.typeNumber,
|
|
39
|
-
loop: utils_writables.typeBoolean,
|
|
40
|
-
skipSnaps: utils_writables.typeBoolean,
|
|
41
|
-
showNavigationArrows: utils_writables.typeBoolean,
|
|
42
|
-
showNavigationIndicators: utils_writables.typeBoolean,
|
|
43
|
-
ariaPrevLabel: utils_writables.typeString,
|
|
44
|
-
ariaNextLabel: utils_writables.typeString,
|
|
45
|
-
ariaIndicatorLabel: utils_writables.typeFunction
|
|
46
|
-
};
|
|
47
|
-
function createEmblaCarousel(options$, plugins$) {
|
|
48
|
-
let emblaApi;
|
|
49
|
-
const scrolling$ = tansu.writable(false);
|
|
50
|
-
const canScrollPrev$ = tansu.writable(false);
|
|
51
|
-
const canScrollNext$ = tansu.writable(true);
|
|
52
|
-
const selectedScrollSnap$ = tansu.writable(0);
|
|
53
|
-
const initialized$ = tansu.writable(false);
|
|
54
|
-
const slideNodes$ = tansu.writable([]);
|
|
55
|
-
const directiveArgs$ = tansu.computed(() => ({
|
|
56
|
-
options: options$(),
|
|
57
|
-
plugins: plugins$ ? plugins$() : []
|
|
58
|
-
}));
|
|
59
|
-
return {
|
|
60
|
-
directive: utils_directive.bindDirective(
|
|
61
|
-
utils_directive.browserDirective(
|
|
62
|
-
(element, { options, plugins }) => {
|
|
63
|
-
if (emblaApi) {
|
|
64
|
-
throw new Error("Only one Embla directive can be attached per carousel widget !");
|
|
65
|
-
}
|
|
66
|
-
emblaApi = EmblaCarousel(element, options, plugins);
|
|
67
|
-
emblaApi.on("scroll", () => {
|
|
68
|
-
scrolling$.set(true);
|
|
69
|
-
});
|
|
70
|
-
emblaApi.on("settle", () => {
|
|
71
|
-
scrolling$.set(false);
|
|
72
|
-
});
|
|
73
|
-
emblaApi.on("select", (api) => {
|
|
74
|
-
canScrollNext$.set(api.canScrollNext());
|
|
75
|
-
canScrollPrev$.set(api.canScrollPrev());
|
|
76
|
-
selectedScrollSnap$.set(api.selectedScrollSnap());
|
|
77
|
-
});
|
|
78
|
-
emblaApi.on("init", () => {
|
|
79
|
-
initialized$.set(true);
|
|
80
|
-
});
|
|
81
|
-
emblaApi.on("reInit", (api) => {
|
|
82
|
-
canScrollNext$.set(api.canScrollNext());
|
|
83
|
-
canScrollPrev$.set(api.canScrollPrev());
|
|
84
|
-
scrolling$.set(false);
|
|
85
|
-
selectedScrollSnap$.set(api.selectedScrollSnap());
|
|
86
|
-
});
|
|
87
|
-
emblaApi.on("slidesChanged", (api) => {
|
|
88
|
-
slideNodes$.set(api.slideNodes());
|
|
89
|
-
});
|
|
90
|
-
canScrollNext$.set(emblaApi.canScrollNext());
|
|
91
|
-
canScrollPrev$.set(emblaApi.canScrollPrev());
|
|
92
|
-
slideNodes$.set(emblaApi.slideNodes());
|
|
93
|
-
return {
|
|
94
|
-
update: ({ options: options2, plugins: plugins2 }) => {
|
|
95
|
-
emblaApi.reInit(options2, plugins2);
|
|
96
|
-
},
|
|
97
|
-
destroy: () => {
|
|
98
|
-
emblaApi?.destroy();
|
|
99
|
-
emblaApi = void 0;
|
|
100
|
-
initialized$.set(false);
|
|
101
|
-
scrolling$.set(false);
|
|
102
|
-
canScrollPrev$.set(false);
|
|
103
|
-
canScrollNext$.set(true);
|
|
104
|
-
selectedScrollSnap$.set(0);
|
|
105
|
-
slideNodes$.set([]);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
),
|
|
110
|
-
directiveArgs$
|
|
111
|
-
),
|
|
112
|
-
stores: {
|
|
113
|
-
scrolling$: tansu.asReadable(scrolling$),
|
|
114
|
-
canScrollPrev$: tansu.asReadable(canScrollPrev$),
|
|
115
|
-
canScrollNext$: tansu.asReadable(canScrollNext$),
|
|
116
|
-
selectedScrollSnap$: tansu.asReadable(selectedScrollSnap$),
|
|
117
|
-
initialized$: tansu.asReadable(initialized$),
|
|
118
|
-
slideNodes$: tansu.asReadable(slideNodes$)
|
|
119
|
-
},
|
|
120
|
-
get api() {
|
|
121
|
-
return emblaApi;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
const createCarousel = utils_widget.createWidgetFactory(
|
|
126
|
-
"carousel",
|
|
127
|
-
(config) => {
|
|
128
|
-
const [
|
|
129
|
-
{
|
|
130
|
-
align$,
|
|
131
|
-
container$,
|
|
132
|
-
containScroll$,
|
|
133
|
-
direction$,
|
|
134
|
-
dragFree$,
|
|
135
|
-
dragThreshold$,
|
|
136
|
-
duration$,
|
|
137
|
-
loop$,
|
|
138
|
-
skipSnaps$,
|
|
139
|
-
plugins$,
|
|
140
|
-
ariaPrevLabel$,
|
|
141
|
-
ariaNextLabel$,
|
|
142
|
-
ariaIndicatorLabel$,
|
|
143
|
-
showNavigationIndicators$,
|
|
144
|
-
...stateProps
|
|
145
|
-
},
|
|
146
|
-
patch
|
|
147
|
-
] = utils_stores.writablesForProps(defaultConfig, config, configValidator);
|
|
148
|
-
const emblaOptions$ = tansu.computed(() => ({
|
|
149
|
-
align: align$(),
|
|
150
|
-
container: container$(),
|
|
151
|
-
containScroll: containScroll$(),
|
|
152
|
-
direction: direction$(),
|
|
153
|
-
dragFree: dragFree$(),
|
|
154
|
-
dragThreshold: dragThreshold$(),
|
|
155
|
-
duration: duration$(),
|
|
156
|
-
loop: loop$(),
|
|
157
|
-
skipSnaps: skipSnaps$()
|
|
158
|
-
}));
|
|
159
|
-
const emblaCarousel = createEmblaCarousel(emblaOptions$, plugins$);
|
|
160
|
-
const {
|
|
161
|
-
stores: { slideNodes$, ...emblaStores }
|
|
162
|
-
} = emblaCarousel;
|
|
163
|
-
const {
|
|
164
|
-
directive: navDirective,
|
|
165
|
-
refreshElements,
|
|
166
|
-
focusLeft,
|
|
167
|
-
focusRight,
|
|
168
|
-
focusFirst,
|
|
169
|
-
focusLast
|
|
170
|
-
} = services_navManager.createNavManager();
|
|
171
|
-
const navManagerConfig = {
|
|
172
|
-
keys: {
|
|
173
|
-
ArrowLeft: focusLeft,
|
|
174
|
-
ArrowRight: focusRight,
|
|
175
|
-
Home: focusFirst,
|
|
176
|
-
End: focusLast
|
|
177
|
-
},
|
|
178
|
-
selector: (node) => node.querySelectorAll("[role='tab']")
|
|
179
|
-
};
|
|
180
|
-
return {
|
|
181
|
-
...utils_stores.stateStores({
|
|
182
|
-
...emblaStores,
|
|
183
|
-
...stateProps,
|
|
184
|
-
direction$,
|
|
185
|
-
showNavigationIndicators$
|
|
186
|
-
}),
|
|
187
|
-
patch,
|
|
188
|
-
api: {
|
|
189
|
-
scrollPrev: (jump) => {
|
|
190
|
-
emblaCarousel.api?.scrollPrev?.(jump);
|
|
191
|
-
},
|
|
192
|
-
scrollNext: (jump) => {
|
|
193
|
-
emblaCarousel.api?.scrollNext?.(jump);
|
|
194
|
-
},
|
|
195
|
-
scrollTo: (index, jump) => {
|
|
196
|
-
emblaCarousel.api?.scrollTo?.(index, jump);
|
|
197
|
-
},
|
|
198
|
-
plugins: () => emblaCarousel.api?.plugins?.(),
|
|
199
|
-
emblaApi: () => emblaCarousel.api
|
|
200
|
-
},
|
|
201
|
-
directives: {
|
|
202
|
-
root: utils_directive.mergeDirectives(
|
|
203
|
-
emblaCarousel.directive,
|
|
204
|
-
utils_directive.createAttributesDirective(() => ({
|
|
205
|
-
classNames: {
|
|
206
|
-
"au-carousel": utils_stores.true$
|
|
207
|
-
},
|
|
208
|
-
attributes: {
|
|
209
|
-
role: tansu.readable("region"),
|
|
210
|
-
"aria-roledescription": tansu.readable("carousel"),
|
|
211
|
-
dir: direction$
|
|
212
|
-
}
|
|
213
|
-
}))
|
|
214
|
-
),
|
|
215
|
-
scrollPrev: utils_directive.createAttributesDirective(() => ({
|
|
216
|
-
attributes: {
|
|
217
|
-
"aria-label": ariaPrevLabel$,
|
|
218
|
-
disabled: tansu.computed(() => !emblaCarousel.stores.canScrollPrev$() || void 0)
|
|
219
|
-
},
|
|
220
|
-
events: {
|
|
221
|
-
click: () => emblaCarousel.api?.scrollPrev(),
|
|
222
|
-
pointerdown: (event) => event.preventDefault(),
|
|
223
|
-
touchstart: (event) => event.stopPropagation()
|
|
224
|
-
}
|
|
225
|
-
})),
|
|
226
|
-
scrollNext: utils_directive.createAttributesDirective(() => ({
|
|
227
|
-
attributes: {
|
|
228
|
-
"aria-label": ariaNextLabel$,
|
|
229
|
-
disabled: tansu.computed(() => !emblaCarousel.stores.canScrollNext$() || void 0)
|
|
230
|
-
},
|
|
231
|
-
events: {
|
|
232
|
-
click: () => emblaCarousel.api?.scrollNext(),
|
|
233
|
-
pointerdown: (event) => event.preventDefault(),
|
|
234
|
-
touchstart: (event) => event.stopPropagation()
|
|
235
|
-
}
|
|
236
|
-
})),
|
|
237
|
-
tabList: utils_directive.mergeDirectives(
|
|
238
|
-
utils_directive.bindDirective(navDirective, tansu.readable(navManagerConfig)),
|
|
239
|
-
utils_directive.browserDirective(() => {
|
|
240
|
-
const unsubscribe = slideNodes$.subscribe(() => {
|
|
241
|
-
refreshElements();
|
|
242
|
-
});
|
|
243
|
-
return {
|
|
244
|
-
destroy: unsubscribe
|
|
245
|
-
};
|
|
246
|
-
}),
|
|
247
|
-
utils_directive.createAttributesDirective(() => ({
|
|
248
|
-
attributes: {
|
|
249
|
-
role: tansu.readable("tablist")
|
|
250
|
-
}
|
|
251
|
-
}))
|
|
252
|
-
),
|
|
253
|
-
tabIndicator: utils_directive.createAttributesDirective(
|
|
254
|
-
(slide$) => ({
|
|
255
|
-
events: {
|
|
256
|
-
click: () => {
|
|
257
|
-
emblaCarousel.api?.scrollTo(slide$().index, slide$().jump ?? true);
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
attributes: {
|
|
261
|
-
"aria-label": tansu.computed(() => ariaIndicatorLabel$()(slide$().index)),
|
|
262
|
-
"aria-selected": tansu.computed(
|
|
263
|
-
() => slide$().index === emblaCarousel.stores.selectedScrollSnap$() ? "true" : void 0
|
|
264
|
-
),
|
|
265
|
-
"aria-controls": tansu.computed(() => slide$().id),
|
|
266
|
-
role: tansu.readable("tab"),
|
|
267
|
-
tabindex: tansu.computed(() => slide$().index === emblaCarousel.stores.selectedScrollSnap$() ? "0" : "-1")
|
|
268
|
-
}
|
|
269
|
-
})
|
|
270
|
-
),
|
|
271
|
-
slide: utils_directive.createAttributesDirective((slide$) => {
|
|
272
|
-
const selected$ = tansu.computed(() => slide$().index === emblaCarousel.stores.selectedScrollSnap$());
|
|
273
|
-
return {
|
|
274
|
-
attributes: {
|
|
275
|
-
id: tansu.computed(() => slide$().id),
|
|
276
|
-
"aria-hidden": tansu.computed(() => selected$() ? void 0 : "true"),
|
|
277
|
-
role: tansu.computed(() => showNavigationIndicators$() ? "tabpanel" : "group"),
|
|
278
|
-
"aria-roledescription": tansu.computed(() => showNavigationIndicators$() ? void 0 : "slide"),
|
|
279
|
-
tabindex: tansu.computed(() => showNavigationIndicators$() && selected$() ? "0" : void 0)
|
|
280
|
-
},
|
|
281
|
-
classNames: {
|
|
282
|
-
"au-carousel-slide": utils_stores.true$
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
})
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
exports.createCarousel = createCarousel;
|
|
291
|
-
exports.createEmblaCarousel = createEmblaCarousel;
|
|
292
|
-
exports.getCarouselDefaultConfig = getCarouselDefaultConfig;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const modal = require("../../modal-Dxdw2Pkv.cjs");
|
|
4
|
-
exports.createModal = modal.createModal;
|
|
5
|
-
exports.getModalDefaultConfig = modal.getModalDefaultConfig;
|
|
6
|
-
exports.modalCloseButtonClick = modal.modalCloseButtonClick;
|
|
7
|
-
exports.modalCloseEscape = modal.modalCloseEscape;
|
|
8
|
-
exports.modalOutsideClick = modal.modalOutsideClick;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const pagination = require("../../pagination-BLVa1UsZ.cjs");
|
|
4
|
-
exports.createPagination = pagination.createPagination;
|
|
5
|
-
exports.getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const progressbar = require("../../progressbar-RopgvVeA.cjs");
|
|
4
|
-
exports.createProgressbar = progressbar.createProgressbar;
|
|
5
|
-
exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const toaster = require("../../toaster-Dlube4Ya.cjs");
|
|
4
|
-
exports.Toaster = toaster.Toaster;
|
|
5
|
-
exports.createToast = toaster.createToast;
|
|
6
|
-
exports.defaultToasterProps = toaster.defaultToasterProps;
|
|
7
|
-
exports.getToastDefaultConfig = toaster.getToastDefaultConfig;
|
package/config.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const tansu = require("@amadeus-it-group/tansu");
|
|
4
|
-
const utils_func = require("./utils/func.cjs");
|
|
5
|
-
const mergeInto = (destination, source, levels = Infinity) => {
|
|
6
|
-
if (source !== void 0) {
|
|
7
|
-
if (typeof source === "object" && source && levels >= 1) {
|
|
8
|
-
if (!destination) {
|
|
9
|
-
destination = {};
|
|
10
|
-
}
|
|
11
|
-
for (const key of Object.keys(source)) {
|
|
12
|
-
if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
|
|
13
|
-
if (key === "__proto__" || key === "constructor") continue;
|
|
14
|
-
destination[key] = mergeInto(destination[key], source[key], levels - 1);
|
|
15
|
-
}
|
|
16
|
-
} else {
|
|
17
|
-
return source;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return destination;
|
|
21
|
-
};
|
|
22
|
-
const createWidgetsConfig = (parent$, adaptParentConfig = utils_func.identity) => {
|
|
23
|
-
const own$ = tansu.writable({});
|
|
24
|
-
const adaptedParent$ = adaptParentConfig === utils_func.identity ? parent$ : tansu.computed(() => adaptParentConfig(mergeInto({}, parent$?.(), 2)));
|
|
25
|
-
return tansu.asWritable(
|
|
26
|
-
tansu.computed(() => mergeInto(mergeInto({}, adaptedParent$?.(), 2), own$(), 2)),
|
|
27
|
-
{
|
|
28
|
-
...own$,
|
|
29
|
-
own$,
|
|
30
|
-
adaptedParent$,
|
|
31
|
-
parent$
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
exports.createWidgetsConfig = createWidgetsConfig;
|
|
36
|
-
exports.mergeInto = mergeInto;
|