@design-factory/angular 21.1.0-next.0 → 21.1.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/fesm2022/design-factory-angular-drawer.mjs +22 -29
- package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
- package/fesm2022/design-factory-angular-internals.mjs +5 -5
- package/fesm2022/design-factory-angular-internals.mjs.map +1 -1
- package/fesm2022/design-factory-angular-sidenav.mjs +139 -62
- package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
- package/fesm2022/design-factory-angular-theme.mjs +1 -1
- package/fesm2022/design-factory-angular-theme.mjs.map +1 -1
- package/fesm2022/design-factory-angular-topnav.mjs +152 -75
- package/fesm2022/design-factory-angular-topnav.mjs.map +1 -1
- package/package.json +3 -6
- package/types/design-factory-angular-drawer.d.ts +13 -14
- package/types/design-factory-angular-internals.d.ts +3 -3
- package/types/design-factory-angular-sidenav.d.ts +19 -6
- package/types/design-factory-angular-topnav.d.ts +13 -6
- package/node_modules/@agnos-ui/core/README.md +0 -5
- package/node_modules/@agnos-ui/core/accordion-BC_9xn23.cjs +0 -314
- package/node_modules/@agnos-ui/core/accordion-Ca_0T8Bc.js +0 -315
- package/node_modules/@agnos-ui/core/alert-AhaliJ17.cjs +0 -9
- package/node_modules/@agnos-ui/core/alert-Cb9FhbFQ.js +0 -10
- package/node_modules/@agnos-ui/core/collapse-COriZO7o.cjs +0 -94
- package/node_modules/@agnos-ui/core/collapse-CP79atna.js +0 -95
- package/node_modules/@agnos-ui/core/common-B5jS-Ih_.cjs +0 -73
- package/node_modules/@agnos-ui/core/common-DFyZvkII.js +0 -74
- package/node_modules/@agnos-ui/core/components/accordion/accordion.d.ts +0 -333
- package/node_modules/@agnos-ui/core/components/accordion/index.cjs +0 -7
- package/node_modules/@agnos-ui/core/components/accordion/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/accordion/index.js +0 -7
- package/node_modules/@agnos-ui/core/components/alert/alert.d.ts +0 -37
- package/node_modules/@agnos-ui/core/components/alert/common.d.ts +0 -138
- package/node_modules/@agnos-ui/core/components/alert/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/alert/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/alert/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/carousel/carousel.d.ts +0 -247
- package/node_modules/@agnos-ui/core/components/carousel/index.cjs +0 -292
- package/node_modules/@agnos-ui/core/components/carousel/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/carousel/index.js +0 -292
- package/node_modules/@agnos-ui/core/components/collapse/collapse.d.ts +0 -135
- package/node_modules/@agnos-ui/core/components/collapse/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/collapse/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/collapse/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/commonProps.d.ts +0 -11
- package/node_modules/@agnos-ui/core/components/drawer/drawer.d.ts +0 -279
- package/node_modules/@agnos-ui/core/components/drawer/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/drawer/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/drawer/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/modal/index.cjs +0 -8
- package/node_modules/@agnos-ui/core/components/modal/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/modal/index.js +0 -8
- package/node_modules/@agnos-ui/core/components/modal/modal.d.ts +0 -245
- package/node_modules/@agnos-ui/core/components/pagination/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/pagination/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/pagination/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/pagination/pagination.d.ts +0 -313
- package/node_modules/@agnos-ui/core/components/progressbar/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/progressbar/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/progressbar/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/progressbar/progressbar.d.ts +0 -91
- package/node_modules/@agnos-ui/core/components/rating/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/rating/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/rating/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/rating/rating.d.ts +0 -191
- package/node_modules/@agnos-ui/core/components/slider/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/slider/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/slider/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/slider/slider-utils.d.ts +0 -25
- package/node_modules/@agnos-ui/core/components/slider/slider.d.ts +0 -383
- package/node_modules/@agnos-ui/core/components/toast/index.cjs +0 -7
- package/node_modules/@agnos-ui/core/components/toast/index.d.ts +0 -2
- package/node_modules/@agnos-ui/core/components/toast/index.js +0 -7
- package/node_modules/@agnos-ui/core/components/toast/toast.d.ts +0 -66
- package/node_modules/@agnos-ui/core/components/toast/toaster.d.ts +0 -128
- package/node_modules/@agnos-ui/core/components/tree/index.cjs +0 -5
- package/node_modules/@agnos-ui/core/components/tree/index.d.ts +0 -1
- package/node_modules/@agnos-ui/core/components/tree/index.js +0 -5
- package/node_modules/@agnos-ui/core/components/tree/tree.d.ts +0 -143
- package/node_modules/@agnos-ui/core/config.cjs +0 -36
- package/node_modules/@agnos-ui/core/config.d.ts +0 -117
- package/node_modules/@agnos-ui/core/config.js +0 -36
- package/node_modules/@agnos-ui/core/directive-Bsreu2z1.js +0 -523
- package/node_modules/@agnos-ui/core/directive-DCaXmRe_.cjs +0 -522
- package/node_modules/@agnos-ui/core/drawer-BbFAHV07.cjs +0 -328
- package/node_modules/@agnos-ui/core/drawer-C6Qa0xEu.js +0 -329
- package/node_modules/@agnos-ui/core/index.cjs +0 -134
- package/node_modules/@agnos-ui/core/index.d.ts +0 -29
- package/node_modules/@agnos-ui/core/index.js +0 -134
- package/node_modules/@agnos-ui/core/isFocusable-Ckwus82R.js +0 -32
- package/node_modules/@agnos-ui/core/isFocusable-DfzDLeAN.cjs +0 -31
- package/node_modules/@agnos-ui/core/modal-BsNuHhT7.cjs +0 -252
- package/node_modules/@agnos-ui/core/modal-CgzY8ezz.js +0 -253
- package/node_modules/@agnos-ui/core/package.json +0 -57
- package/node_modules/@agnos-ui/core/pagination-ZxGaNWZz.js +0 -255
- package/node_modules/@agnos-ui/core/pagination-xbcOHnhd.cjs +0 -254
- package/node_modules/@agnos-ui/core/progressbar-CRbMKp4b.cjs +0 -86
- package/node_modules/@agnos-ui/core/progressbar-CSEIFnlD.js +0 -87
- package/node_modules/@agnos-ui/core/promise-CxCD3NYv.cjs +0 -118
- package/node_modules/@agnos-ui/core/promise-D-RZVPuv.js +0 -119
- package/node_modules/@agnos-ui/core/rating-BIdiiPUo.js +0 -184
- package/node_modules/@agnos-ui/core/rating-qx1xaBmz.cjs +0 -183
- package/node_modules/@agnos-ui/core/scrollbars-CT87iv_6.cjs +0 -30
- package/node_modules/@agnos-ui/core/scrollbars-CcxSrnCx.js +0 -31
- package/node_modules/@agnos-ui/core/services/extendWidget.cjs +0 -41
- package/node_modules/@agnos-ui/core/services/extendWidget.d.ts +0 -31
- package/node_modules/@agnos-ui/core/services/extendWidget.js +0 -41
- package/node_modules/@agnos-ui/core/services/floatingUI.cjs +0 -111
- package/node_modules/@agnos-ui/core/services/floatingUI.d.ts +0 -76
- package/node_modules/@agnos-ui/core/services/floatingUI.js +0 -111
- package/node_modules/@agnos-ui/core/services/focusElement.cjs +0 -46
- package/node_modules/@agnos-ui/core/services/focusElement.d.ts +0 -9
- package/node_modules/@agnos-ui/core/services/focusElement.js +0 -46
- package/node_modules/@agnos-ui/core/services/focustrack.cjs +0 -47
- package/node_modules/@agnos-ui/core/services/focustrack.d.ts +0 -40
- package/node_modules/@agnos-ui/core/services/focustrack.js +0 -47
- package/node_modules/@agnos-ui/core/services/hash.cjs +0 -15
- package/node_modules/@agnos-ui/core/services/hash.d.ts +0 -3
- package/node_modules/@agnos-ui/core/services/hash.js +0 -15
- package/node_modules/@agnos-ui/core/services/intersection.cjs +0 -53
- package/node_modules/@agnos-ui/core/services/intersection.d.ts +0 -30
- package/node_modules/@agnos-ui/core/services/intersection.js +0 -53
- package/node_modules/@agnos-ui/core/services/matchMedia.cjs +0 -14
- package/node_modules/@agnos-ui/core/services/matchMedia.d.ts +0 -8
- package/node_modules/@agnos-ui/core/services/matchMedia.js +0 -14
- package/node_modules/@agnos-ui/core/services/navManager.cjs +0 -166
- package/node_modules/@agnos-ui/core/services/navManager.d.ts +0 -144
- package/node_modules/@agnos-ui/core/services/navManager.js +0 -166
- package/node_modules/@agnos-ui/core/services/pointerdownPosition.cjs +0 -60
- package/node_modules/@agnos-ui/core/services/pointerdownPosition.d.ts +0 -42
- package/node_modules/@agnos-ui/core/services/pointerdownPosition.js +0 -60
- package/node_modules/@agnos-ui/core/services/portal.cjs +0 -42
- package/node_modules/@agnos-ui/core/services/portal.d.ts +0 -16
- package/node_modules/@agnos-ui/core/services/portal.js +0 -42
- package/node_modules/@agnos-ui/core/services/resizeObserver.cjs +0 -54
- package/node_modules/@agnos-ui/core/services/resizeObserver.d.ts +0 -18
- package/node_modules/@agnos-ui/core/services/resizeObserver.js +0 -54
- package/node_modules/@agnos-ui/core/services/siblingsInert.cjs +0 -44
- package/node_modules/@agnos-ui/core/services/siblingsInert.d.ts +0 -16
- package/node_modules/@agnos-ui/core/services/siblingsInert.js +0 -44
- package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.cjs +0 -186
- package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.d.ts +0 -166
- package/node_modules/@agnos-ui/core/services/transitions/baseTransitions.js +0 -186
- package/node_modules/@agnos-ui/core/services/transitions/collapse.cjs +0 -40
- package/node_modules/@agnos-ui/core/services/transitions/collapse.d.ts +0 -49
- package/node_modules/@agnos-ui/core/services/transitions/collapse.js +0 -40
- package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.cjs +0 -32
- package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.d.ts +0 -25
- package/node_modules/@agnos-ui/core/services/transitions/cssTransitions.js +0 -32
- package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.cjs +0 -37
- package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.d.ts +0 -47
- package/node_modules/@agnos-ui/core/services/transitions/simpleClassTransition.js +0 -37
- package/node_modules/@agnos-ui/core/slider-B93hE0ag.cjs +0 -807
- package/node_modules/@agnos-ui/core/slider-Cjiq9FgI.js +0 -808
- package/node_modules/@agnos-ui/core/textDirection-cNgt24LJ.js +0 -4
- package/node_modules/@agnos-ui/core/textDirection-zqcZ5-eK.cjs +0 -3
- package/node_modules/@agnos-ui/core/toaster-BQWqxYv-.cjs +0 -190
- package/node_modules/@agnos-ui/core/toaster-BzEkshT2.js +0 -191
- package/node_modules/@agnos-ui/core/tree-DY04XPPg.cjs +0 -228
- package/node_modules/@agnos-ui/core/tree-HwcvZ0_p.js +0 -229
- package/node_modules/@agnos-ui/core/types.cjs +0 -6
- package/node_modules/@agnos-ui/core/types.d.ts +0 -246
- package/node_modules/@agnos-ui/core/types.js +0 -6
- package/node_modules/@agnos-ui/core/utils/directive.cjs +0 -28
- package/node_modules/@agnos-ui/core/utils/directive.d.ts +0 -352
- package/node_modules/@agnos-ui/core/utils/directive.js +0 -28
- package/node_modules/@agnos-ui/core/utils/func.cjs +0 -7
- package/node_modules/@agnos-ui/core/utils/func.d.ts +0 -11
- package/node_modules/@agnos-ui/core/utils/func.js +0 -7
- package/node_modules/@agnos-ui/core/utils/id.cjs +0 -5
- package/node_modules/@agnos-ui/core/utils/id.d.ts +0 -6
- package/node_modules/@agnos-ui/core/utils/id.js +0 -5
- package/node_modules/@agnos-ui/core/utils/internal/assign.d.ts +0 -10
- package/node_modules/@agnos-ui/core/utils/internal/checks.d.ts +0 -57
- package/node_modules/@agnos-ui/core/utils/internal/dom.d.ts +0 -75
- package/node_modules/@agnos-ui/core/utils/internal/isFocusable.d.ts +0 -9
- package/node_modules/@agnos-ui/core/utils/internal/math.d.ts +0 -5
- package/node_modules/@agnos-ui/core/utils/internal/promise.d.ts +0 -98
- package/node_modules/@agnos-ui/core/utils/internal/scrollbars.d.ts +0 -8
- package/node_modules/@agnos-ui/core/utils/internal/sort.d.ts +0 -16
- package/node_modules/@agnos-ui/core/utils/internal/ssrHTMLElement.d.ts +0 -17
- package/node_modules/@agnos-ui/core/utils/internal/textDirection.d.ts +0 -7
- package/node_modules/@agnos-ui/core/utils/internal/traversal.d.ts +0 -54
- package/node_modules/@agnos-ui/core/utils/stores.cjs +0 -172
- package/node_modules/@agnos-ui/core/utils/stores.d.ts +0 -224
- package/node_modules/@agnos-ui/core/utils/stores.js +0 -172
- package/node_modules/@agnos-ui/core/utils/widget.cjs +0 -8
- package/node_modules/@agnos-ui/core/utils/widget.d.ts +0 -11
- package/node_modules/@agnos-ui/core/utils/widget.js +0 -8
- package/node_modules/@agnos-ui/core/utils/writables.cjs +0 -16
- package/node_modules/@agnos-ui/core/utils/writables.d.ts +0 -95
- package/node_modules/@agnos-ui/core/utils/writables.js +0 -16
- package/node_modules/@agnos-ui/core/writables-DYGjj5T3.js +0 -103
- package/node_modules/@agnos-ui/core/writables-Dt68gADJ.cjs +0 -102
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const types = require("./types.cjs");
|
|
4
|
-
const accordion = require("./accordion-BC_9xn23.cjs");
|
|
5
|
-
const alert = require("./alert-AhaliJ17.cjs");
|
|
6
|
-
const collapse = require("./collapse-COriZO7o.cjs");
|
|
7
|
-
const modal = require("./modal-BsNuHhT7.cjs");
|
|
8
|
-
const pagination = require("./pagination-xbcOHnhd.cjs");
|
|
9
|
-
const progressbar = require("./progressbar-CRbMKp4b.cjs");
|
|
10
|
-
const rating = require("./rating-qx1xaBmz.cjs");
|
|
11
|
-
const slider = require("./slider-B93hE0ag.cjs");
|
|
12
|
-
const toaster = require("./toaster-BQWqxYv-.cjs");
|
|
13
|
-
const tree = require("./tree-DY04XPPg.cjs");
|
|
14
|
-
const drawer = require("./drawer-BbFAHV07.cjs");
|
|
15
|
-
const config = require("./config.cjs");
|
|
16
|
-
const services_extendWidget = require("./services/extendWidget.cjs");
|
|
17
|
-
const services_floatingUI = require("./services/floatingUI.cjs");
|
|
18
|
-
const services_focustrack = require("./services/focustrack.cjs");
|
|
19
|
-
const services_intersection = require("./services/intersection.cjs");
|
|
20
|
-
const services_matchMedia = require("./services/matchMedia.cjs");
|
|
21
|
-
const services_navManager = require("./services/navManager.cjs");
|
|
22
|
-
const services_portal = require("./services/portal.cjs");
|
|
23
|
-
const services_resizeObserver = require("./services/resizeObserver.cjs");
|
|
24
|
-
const services_siblingsInert = require("./services/siblingsInert.cjs");
|
|
25
|
-
const services_hash = require("./services/hash.cjs");
|
|
26
|
-
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
27
|
-
const services_transitions_cssTransitions = require("./services/transitions/cssTransitions.cjs");
|
|
28
|
-
const services_transitions_simpleClassTransition = require("./services/transitions/simpleClassTransition.cjs");
|
|
29
|
-
const utils_directive = require("./directive-DCaXmRe_.cjs");
|
|
30
|
-
const utils_stores = require("./utils/stores.cjs");
|
|
31
|
-
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
32
|
-
exports.FACTORY_WIDGET_NAME = types.FACTORY_WIDGET_NAME;
|
|
33
|
-
exports.INVALID_VALUE = types.INVALID_VALUE;
|
|
34
|
-
exports.createAccordion = accordion.createAccordion;
|
|
35
|
-
exports.createAccordionItem = accordion.createAccordionItem;
|
|
36
|
-
exports.factoryCreateAccordion = accordion.factoryCreateAccordion;
|
|
37
|
-
exports.getAccordionDefaultConfig = accordion.getAccordionDefaultConfig;
|
|
38
|
-
exports.createAlert = alert.createAlert;
|
|
39
|
-
exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
|
|
40
|
-
exports.createCollapse = collapse.createCollapse;
|
|
41
|
-
exports.getCollapseDefaultConfig = collapse.getCollapseDefaultConfig;
|
|
42
|
-
exports.createModal = modal.createModal;
|
|
43
|
-
exports.getModalDefaultConfig = modal.getModalDefaultConfig;
|
|
44
|
-
exports.modalCloseButtonClick = modal.modalCloseButtonClick;
|
|
45
|
-
exports.modalCloseEscape = modal.modalCloseEscape;
|
|
46
|
-
exports.modalOutsideClick = modal.modalOutsideClick;
|
|
47
|
-
exports.createPagination = pagination.createPagination;
|
|
48
|
-
exports.getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
|
|
49
|
-
exports.createProgressbar = progressbar.createProgressbar;
|
|
50
|
-
exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
|
|
51
|
-
exports.createRating = rating.createRating;
|
|
52
|
-
exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
|
|
53
|
-
exports.createSlider = slider.createSlider;
|
|
54
|
-
exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
|
|
55
|
-
exports.Toaster = toaster.Toaster;
|
|
56
|
-
exports.createToast = toaster.createToast;
|
|
57
|
-
exports.defaultToasterProps = toaster.defaultToasterProps;
|
|
58
|
-
exports.getToastDefaultConfig = toaster.getToastDefaultConfig;
|
|
59
|
-
exports.createTree = tree.createTree;
|
|
60
|
-
exports.getTreeDefaultConfig = tree.getTreeDefaultConfig;
|
|
61
|
-
exports.createDrawer = drawer.createDrawer;
|
|
62
|
-
exports.getDrawerDefaultConfig = drawer.getDrawerDefaultConfig;
|
|
63
|
-
exports.createWidgetsConfig = config.createWidgetsConfig;
|
|
64
|
-
exports.mergeInto = config.mergeInto;
|
|
65
|
-
exports.extendWidgetProps = services_extendWidget.extendWidgetProps;
|
|
66
|
-
exports.createFloatingUI = services_floatingUI.createFloatingUI;
|
|
67
|
-
exports.activeElement$ = services_focustrack.activeElement$;
|
|
68
|
-
exports.createHasFocus = services_focustrack.createHasFocus;
|
|
69
|
-
exports.createIntersection = services_intersection.createIntersection;
|
|
70
|
-
exports.createMatchMedia = services_matchMedia.createMatchMedia;
|
|
71
|
-
exports.createNavManager = services_navManager.createNavManager;
|
|
72
|
-
exports.getKeyName = services_navManager.getKeyName;
|
|
73
|
-
exports.isInternalInputNavigation = services_navManager.isInternalInputNavigation;
|
|
74
|
-
exports.portal = services_portal.portal;
|
|
75
|
-
exports.createResizeObserver = services_resizeObserver.createResizeObserver;
|
|
76
|
-
exports.createResizeObserverMap = services_resizeObserver.createResizeObserverMap;
|
|
77
|
-
exports.siblingsInert = services_siblingsInert.siblingsInert;
|
|
78
|
-
exports.hash$ = services_hash.hash$;
|
|
79
|
-
exports.createTransition = services_transitions_baseTransitions.createTransition;
|
|
80
|
-
exports.noAnimation = services_transitions_baseTransitions.noAnimation;
|
|
81
|
-
exports.createCSSTransition = services_transitions_cssTransitions.createCSSTransition;
|
|
82
|
-
exports.getTransitionDurationMs = services_transitions_cssTransitions.getTransitionDurationMs;
|
|
83
|
-
exports.hasTransition = services_transitions_cssTransitions.hasTransition;
|
|
84
|
-
exports.createSimpleClassTransition = services_transitions_simpleClassTransition.createSimpleClassTransition;
|
|
85
|
-
exports.attributesData = utils_directive.attributesData;
|
|
86
|
-
exports.bindDirective = utils_directive.bindDirective;
|
|
87
|
-
exports.bindDirectiveNoArg = utils_directive.bindDirectiveNoArg;
|
|
88
|
-
exports.browserDirective = utils_directive.browserDirective;
|
|
89
|
-
exports.classDirective = utils_directive.classDirective;
|
|
90
|
-
exports.conditionalDirective = utils_directive.conditionalDirective;
|
|
91
|
-
exports.createAttributesDirective = utils_directive.createAttributesDirective;
|
|
92
|
-
exports.createBrowserStoreArrayDirective = utils_directive.createBrowserStoreArrayDirective;
|
|
93
|
-
exports.createBrowserStoreDirective = utils_directive.createBrowserStoreDirective;
|
|
94
|
-
exports.createConditionalBrowserStoreArrayDirective = utils_directive.createConditionalBrowserStoreArrayDirective;
|
|
95
|
-
exports.createConditionalStoreArrayDirective = utils_directive.createConditionalStoreArrayDirective;
|
|
96
|
-
exports.createStoreArrayDirective = utils_directive.createStoreArrayDirective;
|
|
97
|
-
exports.createStoreDirective = utils_directive.createStoreDirective;
|
|
98
|
-
exports.directiveAttributes = utils_directive.directiveAttributes;
|
|
99
|
-
exports.directiveSubscribe = utils_directive.directiveSubscribe;
|
|
100
|
-
exports.directiveUpdate = utils_directive.directiveUpdate;
|
|
101
|
-
exports.isBrowserHTMLElement = utils_directive.isBrowserHTMLElement;
|
|
102
|
-
exports.mapDirectiveArg = utils_directive.mapDirectiveArg;
|
|
103
|
-
exports.mergeDirectives = utils_directive.mergeDirectives;
|
|
104
|
-
exports.multiDirective = utils_directive.multiDirective;
|
|
105
|
-
exports.registrationArray = utils_directive.registrationArray;
|
|
106
|
-
exports.ssrAttributes = utils_directive.ssrAttributes;
|
|
107
|
-
exports.bindableDerived = utils_stores.bindableDerived;
|
|
108
|
-
exports.bindableProp = utils_stores.bindableProp;
|
|
109
|
-
exports.createPatch = utils_stores.createPatch;
|
|
110
|
-
exports.false$ = utils_stores.false$;
|
|
111
|
-
exports.findChangedProperties = utils_stores.findChangedProperties;
|
|
112
|
-
exports.idWithDefault = utils_stores.idWithDefault;
|
|
113
|
-
exports.isStore = utils_stores.isStore;
|
|
114
|
-
exports.mergeConfigStores = utils_stores.mergeConfigStores;
|
|
115
|
-
exports.normalizeConfigStores = utils_stores.normalizeConfigStores;
|
|
116
|
-
exports.stateStores = utils_stores.stateStores;
|
|
117
|
-
exports.toReadableStore = utils_stores.toReadableStore;
|
|
118
|
-
exports.toWritableStore = utils_stores.toWritableStore;
|
|
119
|
-
exports.true$ = utils_stores.true$;
|
|
120
|
-
exports.writableWithDefault = utils_stores.writableWithDefault;
|
|
121
|
-
exports.writablesForProps = utils_stores.writablesForProps;
|
|
122
|
-
exports.writablesWithDefault = utils_stores.writablesWithDefault;
|
|
123
|
-
exports.createTypeEnum = utils_writables.createTypeEnum;
|
|
124
|
-
exports.testToNormalizeValue = utils_writables.testToNormalizeValue;
|
|
125
|
-
exports.typeArray = utils_writables.typeArray;
|
|
126
|
-
exports.typeBoolean = utils_writables.typeBoolean;
|
|
127
|
-
exports.typeBooleanOrNull = utils_writables.typeBooleanOrNull;
|
|
128
|
-
exports.typeFunction = utils_writables.typeFunction;
|
|
129
|
-
exports.typeHTMLElementOrNull = utils_writables.typeHTMLElementOrNull;
|
|
130
|
-
exports.typeNumber = utils_writables.typeNumber;
|
|
131
|
-
exports.typeNumberInRangeFactory = utils_writables.typeNumberInRangeFactory;
|
|
132
|
-
exports.typeNumberOrNull = utils_writables.typeNumberOrNull;
|
|
133
|
-
exports.typeString = utils_writables.typeString;
|
|
134
|
-
exports.typeStringOrNull = utils_writables.typeStringOrNull;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './components/accordion';
|
|
3
|
-
export * from './components/alert';
|
|
4
|
-
export * from './components/collapse';
|
|
5
|
-
export * from './components/modal';
|
|
6
|
-
export * from './components/pagination';
|
|
7
|
-
export * from './components/progressbar';
|
|
8
|
-
export * from './components/rating';
|
|
9
|
-
export * from './components/slider';
|
|
10
|
-
export * from './components/toast';
|
|
11
|
-
export * from './components/tree';
|
|
12
|
-
export * from './components/drawer';
|
|
13
|
-
export * from './config';
|
|
14
|
-
export * from './services/extendWidget';
|
|
15
|
-
export * from './services/floatingUI';
|
|
16
|
-
export * from './services/focustrack';
|
|
17
|
-
export * from './services/intersection';
|
|
18
|
-
export * from './services/matchMedia';
|
|
19
|
-
export * from './services/navManager';
|
|
20
|
-
export * from './services/portal';
|
|
21
|
-
export * from './services/resizeObserver';
|
|
22
|
-
export * from './services/siblingsInert';
|
|
23
|
-
export * from './services/hash';
|
|
24
|
-
export * from './services/transitions/baseTransitions';
|
|
25
|
-
export * from './services/transitions/cssTransitions';
|
|
26
|
-
export * from './services/transitions/simpleClassTransition';
|
|
27
|
-
export * from './utils/directive';
|
|
28
|
-
export * from './utils/stores';
|
|
29
|
-
export * from './utils/writables';
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { FACTORY_WIDGET_NAME, INVALID_VALUE } from "./types.js";
|
|
2
|
-
import { c, a, f, g } from "./accordion-Ca_0T8Bc.js";
|
|
3
|
-
import { c as c2, g as g2 } from "./alert-Cb9FhbFQ.js";
|
|
4
|
-
import { c as c3, g as g3 } from "./collapse-CP79atna.js";
|
|
5
|
-
import { c as c4, g as g4, m, a as a2, b } from "./modal-CgzY8ezz.js";
|
|
6
|
-
import { c as c5, g as g5 } from "./pagination-ZxGaNWZz.js";
|
|
7
|
-
import { c as c6, g as g6 } from "./progressbar-CSEIFnlD.js";
|
|
8
|
-
import { c as c7, g as g7 } from "./rating-BIdiiPUo.js";
|
|
9
|
-
import { c as c8, g as g8 } from "./slider-Cjiq9FgI.js";
|
|
10
|
-
import { T, c as c9, d, g as g9 } from "./toaster-BzEkshT2.js";
|
|
11
|
-
import { c as c10, g as g10 } from "./tree-HwcvZ0_p.js";
|
|
12
|
-
import { c as c11, g as g11 } from "./drawer-C6Qa0xEu.js";
|
|
13
|
-
import { createWidgetsConfig, mergeInto } from "./config.js";
|
|
14
|
-
import { extendWidgetProps } from "./services/extendWidget.js";
|
|
15
|
-
import { createFloatingUI } from "./services/floatingUI.js";
|
|
16
|
-
import { activeElement$, createHasFocus } from "./services/focustrack.js";
|
|
17
|
-
import { createIntersection } from "./services/intersection.js";
|
|
18
|
-
import { createMatchMedia } from "./services/matchMedia.js";
|
|
19
|
-
import { createNavManager, getKeyName, isInternalInputNavigation } from "./services/navManager.js";
|
|
20
|
-
import { portal } from "./services/portal.js";
|
|
21
|
-
import { createResizeObserver, createResizeObserverMap } from "./services/resizeObserver.js";
|
|
22
|
-
import { siblingsInert } from "./services/siblingsInert.js";
|
|
23
|
-
import { hash$ } from "./services/hash.js";
|
|
24
|
-
import { createTransition, noAnimation } from "./services/transitions/baseTransitions.js";
|
|
25
|
-
import { createCSSTransition, getTransitionDurationMs, hasTransition } from "./services/transitions/cssTransitions.js";
|
|
26
|
-
import { createSimpleClassTransition } from "./services/transitions/simpleClassTransition.js";
|
|
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 "./directive-Bsreu2z1.js";
|
|
28
|
-
import { bindableDerived, bindableProp, createPatch, false$, findChangedProperties, idWithDefault, isStore, mergeConfigStores, normalizeConfigStores, stateStores, toReadableStore, toWritableStore, true$, writableWithDefault, writablesForProps, writablesWithDefault } from "./utils/stores.js";
|
|
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";
|
|
30
|
-
export {
|
|
31
|
-
FACTORY_WIDGET_NAME,
|
|
32
|
-
INVALID_VALUE,
|
|
33
|
-
T as Toaster,
|
|
34
|
-
activeElement$,
|
|
35
|
-
a3 as attributesData,
|
|
36
|
-
b2 as bindDirective,
|
|
37
|
-
c12 as bindDirectiveNoArg,
|
|
38
|
-
bindableDerived,
|
|
39
|
-
bindableProp,
|
|
40
|
-
d2 as browserDirective,
|
|
41
|
-
e as classDirective,
|
|
42
|
-
f2 as conditionalDirective,
|
|
43
|
-
c as createAccordion,
|
|
44
|
-
a as createAccordionItem,
|
|
45
|
-
c2 as createAlert,
|
|
46
|
-
g12 as createAttributesDirective,
|
|
47
|
-
h as createBrowserStoreArrayDirective,
|
|
48
|
-
i as createBrowserStoreDirective,
|
|
49
|
-
createCSSTransition,
|
|
50
|
-
c3 as createCollapse,
|
|
51
|
-
j as createConditionalBrowserStoreArrayDirective,
|
|
52
|
-
k as createConditionalStoreArrayDirective,
|
|
53
|
-
c11 as createDrawer,
|
|
54
|
-
createFloatingUI,
|
|
55
|
-
createHasFocus,
|
|
56
|
-
createIntersection,
|
|
57
|
-
createMatchMedia,
|
|
58
|
-
c4 as createModal,
|
|
59
|
-
createNavManager,
|
|
60
|
-
c5 as createPagination,
|
|
61
|
-
createPatch,
|
|
62
|
-
c6 as createProgressbar,
|
|
63
|
-
c7 as createRating,
|
|
64
|
-
createResizeObserver,
|
|
65
|
-
createResizeObserverMap,
|
|
66
|
-
createSimpleClassTransition,
|
|
67
|
-
c8 as createSlider,
|
|
68
|
-
l as createStoreArrayDirective,
|
|
69
|
-
m2 as createStoreDirective,
|
|
70
|
-
c9 as createToast,
|
|
71
|
-
createTransition,
|
|
72
|
-
c10 as createTree,
|
|
73
|
-
c13 as createTypeEnum,
|
|
74
|
-
createWidgetsConfig,
|
|
75
|
-
d as defaultToasterProps,
|
|
76
|
-
n as directiveAttributes,
|
|
77
|
-
o as directiveSubscribe,
|
|
78
|
-
p as directiveUpdate,
|
|
79
|
-
extendWidgetProps,
|
|
80
|
-
f as factoryCreateAccordion,
|
|
81
|
-
false$,
|
|
82
|
-
findChangedProperties,
|
|
83
|
-
g as getAccordionDefaultConfig,
|
|
84
|
-
g2 as getAlertDefaultConfig,
|
|
85
|
-
g3 as getCollapseDefaultConfig,
|
|
86
|
-
g11 as getDrawerDefaultConfig,
|
|
87
|
-
getKeyName,
|
|
88
|
-
g4 as getModalDefaultConfig,
|
|
89
|
-
g5 as getPaginationDefaultConfig,
|
|
90
|
-
g6 as getProgressbarDefaultConfig,
|
|
91
|
-
g7 as getRatingDefaultConfig,
|
|
92
|
-
g8 as getSliderDefaultConfig,
|
|
93
|
-
g9 as getToastDefaultConfig,
|
|
94
|
-
getTransitionDurationMs,
|
|
95
|
-
g10 as getTreeDefaultConfig,
|
|
96
|
-
hasTransition,
|
|
97
|
-
hash$,
|
|
98
|
-
idWithDefault,
|
|
99
|
-
q as isBrowserHTMLElement,
|
|
100
|
-
isInternalInputNavigation,
|
|
101
|
-
isStore,
|
|
102
|
-
r as mapDirectiveArg,
|
|
103
|
-
mergeConfigStores,
|
|
104
|
-
s as mergeDirectives,
|
|
105
|
-
mergeInto,
|
|
106
|
-
m as modalCloseButtonClick,
|
|
107
|
-
a2 as modalCloseEscape,
|
|
108
|
-
b as modalOutsideClick,
|
|
109
|
-
t as multiDirective,
|
|
110
|
-
noAnimation,
|
|
111
|
-
normalizeConfigStores,
|
|
112
|
-
portal,
|
|
113
|
-
u as registrationArray,
|
|
114
|
-
siblingsInert,
|
|
115
|
-
v as ssrAttributes,
|
|
116
|
-
stateStores,
|
|
117
|
-
t2 as testToNormalizeValue,
|
|
118
|
-
toReadableStore,
|
|
119
|
-
toWritableStore,
|
|
120
|
-
true$,
|
|
121
|
-
a4 as typeArray,
|
|
122
|
-
b3 as typeBoolean,
|
|
123
|
-
d3 as typeBooleanOrNull,
|
|
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,
|
|
131
|
-
writableWithDefault,
|
|
132
|
-
writablesForProps,
|
|
133
|
-
writablesWithDefault
|
|
134
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const isInertOrInvisible = (element) => {
|
|
2
|
-
let curElement = element;
|
|
3
|
-
while (curElement) {
|
|
4
|
-
const style = getComputedStyle(curElement);
|
|
5
|
-
if (curElement.inert || curElement.hidden || style.display === "none" || style.visibility === "hidden") {
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
curElement = curElement.parentElement;
|
|
9
|
-
}
|
|
10
|
-
return false;
|
|
11
|
-
};
|
|
12
|
-
const checkNotDisabled = (element) => {
|
|
13
|
-
if (element.disabled) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
const parentFieldset = element.parentElement?.closest("fieldset");
|
|
17
|
-
return parentFieldset ? checkNotDisabled(parentFieldset) : true;
|
|
18
|
-
};
|
|
19
|
-
const isFocusableOtherTags = (element) => element.isContentEditable || !!element.hasAttribute("tabindex");
|
|
20
|
-
const isFocusableByTagName = {
|
|
21
|
-
INPUT: (element) => element.type !== "hidden" && checkNotDisabled(element),
|
|
22
|
-
SELECT: checkNotDisabled,
|
|
23
|
-
TEXTAREA: checkNotDisabled,
|
|
24
|
-
BUTTON: checkNotDisabled,
|
|
25
|
-
A: (element) => !!element.href || isFocusableOtherTags(element)
|
|
26
|
-
};
|
|
27
|
-
const isFocusable = (element) => {
|
|
28
|
-
return document.contains(element) && !isInertOrInvisible(element) && (isFocusableByTagName[element.tagName] ?? isFocusableOtherTags)(element);
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
isFocusable as i
|
|
32
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const isInertOrInvisible = (element) => {
|
|
3
|
-
let curElement = element;
|
|
4
|
-
while (curElement) {
|
|
5
|
-
const style = getComputedStyle(curElement);
|
|
6
|
-
if (curElement.inert || curElement.hidden || style.display === "none" || style.visibility === "hidden") {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
curElement = curElement.parentElement;
|
|
10
|
-
}
|
|
11
|
-
return false;
|
|
12
|
-
};
|
|
13
|
-
const checkNotDisabled = (element) => {
|
|
14
|
-
if (element.disabled) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
const parentFieldset = element.parentElement?.closest("fieldset");
|
|
18
|
-
return parentFieldset ? checkNotDisabled(parentFieldset) : true;
|
|
19
|
-
};
|
|
20
|
-
const isFocusableOtherTags = (element) => element.isContentEditable || !!element.hasAttribute("tabindex");
|
|
21
|
-
const isFocusableByTagName = {
|
|
22
|
-
INPUT: (element) => element.type !== "hidden" && checkNotDisabled(element),
|
|
23
|
-
SELECT: checkNotDisabled,
|
|
24
|
-
TEXTAREA: checkNotDisabled,
|
|
25
|
-
BUTTON: checkNotDisabled,
|
|
26
|
-
A: (element) => !!element.href || isFocusableOtherTags(element)
|
|
27
|
-
};
|
|
28
|
-
const isFocusable = (element) => {
|
|
29
|
-
return document.contains(element) && !isInertOrInvisible(element) && (isFocusableByTagName[element.tagName] ?? isFocusableOtherTags)(element);
|
|
30
|
-
};
|
|
31
|
-
exports.isFocusable = isFocusable;
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const tansu = require("@amadeus-it-group/tansu");
|
|
3
|
-
const utils_writables = require("./writables-Dt68gADJ.cjs");
|
|
4
|
-
const utils_stores = require("./utils/stores.cjs");
|
|
5
|
-
const services_transitions_baseTransitions = require("./services/transitions/baseTransitions.cjs");
|
|
6
|
-
const promise = require("./promise-CxCD3NYv.cjs");
|
|
7
|
-
const utils_func = require("./utils/func.cjs");
|
|
8
|
-
const scrollbars = require("./scrollbars-CT87iv_6.cjs");
|
|
9
|
-
const utils_directive = require("./directive-DCaXmRe_.cjs");
|
|
10
|
-
const services_portal = require("./services/portal.cjs");
|
|
11
|
-
const services_siblingsInert = require("./services/siblingsInert.cjs");
|
|
12
|
-
const utils_widget = require("./utils/widget.cjs");
|
|
13
|
-
const services_focusElement = require("./services/focusElement.cjs");
|
|
14
|
-
const modalOutsideClick = /* @__PURE__ */ Symbol();
|
|
15
|
-
const modalCloseButtonClick = /* @__PURE__ */ Symbol();
|
|
16
|
-
const modalCloseEscape = /* @__PURE__ */ Symbol();
|
|
17
|
-
const defaultConfig = {
|
|
18
|
-
animated: true,
|
|
19
|
-
ariaCloseButtonLabel: "Close",
|
|
20
|
-
backdrop: true,
|
|
21
|
-
backdropClass: "",
|
|
22
|
-
backdropTransition: utils_func.noop,
|
|
23
|
-
closeButton: true,
|
|
24
|
-
closeOnOutsideClick: true,
|
|
25
|
-
container: typeof window !== "undefined" ? document.body : null,
|
|
26
|
-
className: "",
|
|
27
|
-
modalTransition: utils_func.noop,
|
|
28
|
-
onBeforeClose: utils_func.noop,
|
|
29
|
-
onVisibleChange: utils_func.noop,
|
|
30
|
-
onHidden: utils_func.noop,
|
|
31
|
-
onShown: utils_func.noop,
|
|
32
|
-
visible: false
|
|
33
|
-
};
|
|
34
|
-
const configValidator = {
|
|
35
|
-
animated: utils_writables.typeBoolean,
|
|
36
|
-
ariaCloseButtonLabel: utils_writables.typeString,
|
|
37
|
-
backdrop: utils_writables.typeBoolean,
|
|
38
|
-
backdropClass: utils_writables.typeString,
|
|
39
|
-
backdropTransition: utils_writables.typeFunction,
|
|
40
|
-
closeButton: utils_writables.typeBoolean,
|
|
41
|
-
closeOnOutsideClick: utils_writables.typeBoolean,
|
|
42
|
-
container: utils_writables.typeHTMLElementOrNull,
|
|
43
|
-
className: utils_writables.typeString,
|
|
44
|
-
modalTransition: utils_writables.typeFunction,
|
|
45
|
-
onBeforeClose: utils_writables.typeFunction,
|
|
46
|
-
onVisibleChange: utils_writables.typeFunction,
|
|
47
|
-
onHidden: utils_writables.typeFunction,
|
|
48
|
-
onShown: utils_writables.typeFunction,
|
|
49
|
-
visible: utils_writables.typeBoolean
|
|
50
|
-
};
|
|
51
|
-
function getModalDefaultConfig() {
|
|
52
|
-
return { ...defaultConfig };
|
|
53
|
-
}
|
|
54
|
-
const modals$ = utils_directive.registrationArray();
|
|
55
|
-
const hasModals$ = tansu.computed(() => modals$().length > 0);
|
|
56
|
-
const scrollbarsAction$ = tansu.computed(() => {
|
|
57
|
-
if (hasModals$()) {
|
|
58
|
-
scrollbars.removeScrollbars();
|
|
59
|
-
} else {
|
|
60
|
-
scrollbars.revertScrollbars();
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const modalsAction$ = tansu.computed(() => {
|
|
64
|
-
scrollbarsAction$();
|
|
65
|
-
});
|
|
66
|
-
const createModal = utils_widget.createWidgetFactory(
|
|
67
|
-
"modal",
|
|
68
|
-
(config$) => {
|
|
69
|
-
const [
|
|
70
|
-
{
|
|
71
|
-
animated$,
|
|
72
|
-
backdrop$,
|
|
73
|
-
backdropTransition$,
|
|
74
|
-
closeOnOutsideClick$,
|
|
75
|
-
container$,
|
|
76
|
-
modalTransition$,
|
|
77
|
-
onBeforeClose$,
|
|
78
|
-
onVisibleChange$,
|
|
79
|
-
onHidden$,
|
|
80
|
-
onShown$,
|
|
81
|
-
ariaCloseButtonLabel$,
|
|
82
|
-
className$,
|
|
83
|
-
backdropClass$,
|
|
84
|
-
visible$: requestedVisible$,
|
|
85
|
-
...stateProps
|
|
86
|
-
},
|
|
87
|
-
patch
|
|
88
|
-
] = utils_stores.writablesForProps(defaultConfig, config$, configValidator);
|
|
89
|
-
const modalTransition = services_transitions_baseTransitions.createTransition({
|
|
90
|
-
props: {
|
|
91
|
-
transition: modalTransition$,
|
|
92
|
-
visible: requestedVisible$,
|
|
93
|
-
animated: animated$,
|
|
94
|
-
animatedOnInit: animated$,
|
|
95
|
-
onVisibleChange: onVisibleChange$,
|
|
96
|
-
// TODO: for onHidden and onShown, should we combine with information from the backdrop transition?
|
|
97
|
-
// (especially in case one of the two transitions takes more time than the other)
|
|
98
|
-
onHidden: onHidden$,
|
|
99
|
-
onShown: onShown$
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
const visible$ = modalTransition.stores.visible$;
|
|
103
|
-
const backdropTransition = services_transitions_baseTransitions.createTransition({
|
|
104
|
-
props: {
|
|
105
|
-
transition: backdropTransition$,
|
|
106
|
-
visible: requestedVisible$,
|
|
107
|
-
animated: animated$,
|
|
108
|
-
animatedOnInit: animated$
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
const transitioning$ = tansu.computed(
|
|
112
|
-
() => modalTransition.stores.transitioning$() || backdrop$() && backdropTransition.stores.transitioning$()
|
|
113
|
-
);
|
|
114
|
-
const hidden$ = tansu.computed(() => !transitioning$() && !visible$());
|
|
115
|
-
const backdropHidden$ = tansu.computed(() => !backdrop$() || hidden$());
|
|
116
|
-
let hideResult;
|
|
117
|
-
const close = (result) => {
|
|
118
|
-
hideResult = result;
|
|
119
|
-
const beforeCloseEvent = {
|
|
120
|
-
get result() {
|
|
121
|
-
return hideResult;
|
|
122
|
-
},
|
|
123
|
-
set result(value) {
|
|
124
|
-
hideResult = value;
|
|
125
|
-
},
|
|
126
|
-
cancel: false
|
|
127
|
-
};
|
|
128
|
-
onBeforeClose$()(beforeCloseEvent);
|
|
129
|
-
if (beforeCloseEvent.cancel) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
patch({ visible: false });
|
|
133
|
-
};
|
|
134
|
-
const modalPortalDirective = utils_directive.bindDirective(
|
|
135
|
-
services_portal.portal,
|
|
136
|
-
tansu.computed(() => ({ container: container$() }))
|
|
137
|
-
);
|
|
138
|
-
const backdropPortalDirective = utils_directive.bindDirective(
|
|
139
|
-
services_portal.portal,
|
|
140
|
-
tansu.computed(() => {
|
|
141
|
-
const container = container$();
|
|
142
|
-
const element = container ? modalTransition.stores.element$() : void 0;
|
|
143
|
-
return {
|
|
144
|
-
container,
|
|
145
|
-
insertBefore: element?.parentElement === container ? element : void 0
|
|
146
|
-
};
|
|
147
|
-
})
|
|
148
|
-
);
|
|
149
|
-
const registerModalAction$ = tansu.readable(void 0, () => modals$.register(res));
|
|
150
|
-
const action$ = tansu.computed(() => {
|
|
151
|
-
if (modalTransition.stores.elementPresent$() && !hidden$()) {
|
|
152
|
-
registerModalAction$();
|
|
153
|
-
}
|
|
154
|
-
modalsAction$();
|
|
155
|
-
});
|
|
156
|
-
const closeButtonDirective = utils_directive.createAttributesDirective(() => ({
|
|
157
|
-
attributes: {
|
|
158
|
-
type: tansu.readable("button"),
|
|
159
|
-
"aria-label": ariaCloseButtonLabel$
|
|
160
|
-
},
|
|
161
|
-
events: {
|
|
162
|
-
click: () => close(modalCloseButtonClick)
|
|
163
|
-
}
|
|
164
|
-
}));
|
|
165
|
-
const backdropAttributeDirective = utils_directive.createAttributesDirective(() => ({
|
|
166
|
-
attributes: {
|
|
167
|
-
class: backdropClass$
|
|
168
|
-
}
|
|
169
|
-
}));
|
|
170
|
-
const modalAttributeDirective = utils_directive.createAttributesDirective(() => ({
|
|
171
|
-
attributes: {
|
|
172
|
-
class: className$,
|
|
173
|
-
tabIndex: tansu.readable("-1")
|
|
174
|
-
},
|
|
175
|
-
events: {
|
|
176
|
-
click: (event) => {
|
|
177
|
-
if (event.currentTarget === event.target && closeOnOutsideClick$()) {
|
|
178
|
-
close(modalOutsideClick);
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
keydown: (event) => {
|
|
182
|
-
const { key } = event;
|
|
183
|
-
switch (key) {
|
|
184
|
-
case "Escape":
|
|
185
|
-
close(modalCloseEscape);
|
|
186
|
-
event.stopPropagation();
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}));
|
|
192
|
-
const res = {
|
|
193
|
-
...utils_stores.stateStores({
|
|
194
|
-
backdropHidden$,
|
|
195
|
-
container$,
|
|
196
|
-
hidden$,
|
|
197
|
-
transitioning$,
|
|
198
|
-
visible$,
|
|
199
|
-
modalElement$: modalTransition.stores.element$,
|
|
200
|
-
ariaCloseButtonLabel$,
|
|
201
|
-
className$,
|
|
202
|
-
backdropClass$,
|
|
203
|
-
...stateProps
|
|
204
|
-
}),
|
|
205
|
-
directives: {
|
|
206
|
-
modalPortalDirective,
|
|
207
|
-
backdropPortalDirective,
|
|
208
|
-
backdropDirective: utils_directive.mergeDirectives(backdropTransition.directives.directive, backdropAttributeDirective),
|
|
209
|
-
modalDirective: utils_directive.mergeDirectives(
|
|
210
|
-
modalTransition.directives.directive,
|
|
211
|
-
utils_directive.bindDirectiveNoArg(services_siblingsInert.siblingsInert),
|
|
212
|
-
utils_directive.directiveSubscribe(action$),
|
|
213
|
-
modalAttributeDirective,
|
|
214
|
-
services_focusElement.focusElement
|
|
215
|
-
),
|
|
216
|
-
closeButtonDirective,
|
|
217
|
-
dialogDirective: utils_directive.bindDirective(
|
|
218
|
-
utils_directive.browserDirective((dialog, visible) => {
|
|
219
|
-
const update = (visible2) => {
|
|
220
|
-
if (visible2) {
|
|
221
|
-
dialog.showModal();
|
|
222
|
-
} else {
|
|
223
|
-
dialog.close();
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
update(visible);
|
|
227
|
-
return {
|
|
228
|
-
update
|
|
229
|
-
};
|
|
230
|
-
}),
|
|
231
|
-
visible$
|
|
232
|
-
)
|
|
233
|
-
},
|
|
234
|
-
patch,
|
|
235
|
-
api: {
|
|
236
|
-
close,
|
|
237
|
-
async open() {
|
|
238
|
-
patch({ visible: true });
|
|
239
|
-
await promise.promiseFromStore(hidden$).promise;
|
|
240
|
-
return hideResult;
|
|
241
|
-
},
|
|
242
|
-
patch
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
return res;
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
exports.createModal = createModal;
|
|
249
|
-
exports.getModalDefaultConfig = getModalDefaultConfig;
|
|
250
|
-
exports.modalCloseButtonClick = modalCloseButtonClick;
|
|
251
|
-
exports.modalCloseEscape = modalCloseEscape;
|
|
252
|
-
exports.modalOutsideClick = modalOutsideClick;
|