@duxweb/dvha-pro 0.0.5
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/dist/cjs/app.cjs +1 -0
- package/dist/cjs/component.cjs +1 -0
- package/dist/cjs/components/card/card.cjs +1 -0
- package/dist/cjs/components/carousel/carousel.cjs +1 -0
- package/dist/cjs/components/dashboard/hello.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -0
- package/dist/cjs/components/dashboard/quick.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -0
- package/dist/cjs/components/draw/drawApps.cjs +1 -0
- package/dist/cjs/components/draw/drawAuth.cjs +1 -0
- package/dist/cjs/components/draw/drawEmpty.cjs +1 -0
- package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -0
- package/dist/cjs/components/draw/drawError.cjs +1 -0
- package/dist/cjs/components/drawer/drawer.cjs +1 -0
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -0
- package/dist/cjs/components/form/formItem.cjs +1 -0
- package/dist/cjs/components/form/formLayout.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -0
- package/dist/cjs/components/form/pageForm.cjs +1 -0
- package/dist/cjs/components/form/settingForm.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -0
- package/dist/cjs/components/layout/table.cjs +1 -0
- package/dist/cjs/components/layout/tools.cjs +1 -0
- package/dist/cjs/components/list/card.cjs +1 -0
- package/dist/cjs/components/list/list.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -0
- package/dist/cjs/components/modal/modalPage.cjs +1 -0
- package/dist/cjs/components/modal/modalTab.cjs +1 -0
- package/dist/cjs/components/panel/alert.cjs +1 -0
- package/dist/cjs/components/panel/setting.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -0
- package/dist/cjs/config/validate.cjs +1 -0
- package/dist/cjs/dvha-pro.css +1 -0
- package/dist/cjs/hooks/action.cjs +1 -0
- package/dist/cjs/hooks/dialog.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -0
- package/dist/cjs/hooks/table/copy.cjs +1 -0
- package/dist/cjs/hooks/table/hidden.cjs +1 -0
- package/dist/cjs/hooks/table/image.cjs +1 -0
- package/dist/cjs/hooks/table/input.cjs +1 -0
- package/dist/cjs/hooks/table/map.cjs +1 -0
- package/dist/cjs/hooks/table/media.cjs +1 -0
- package/dist/cjs/hooks/table/status.cjs +1 -0
- package/dist/cjs/hooks/table/switch.cjs +1 -0
- package/dist/cjs/hooks/table.cjs +1 -0
- package/dist/cjs/hooks/ui.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/langs/en-US.json.cjs +1 -0
- package/dist/cjs/langs/zh-CN.json.cjs +1 -0
- package/dist/cjs/main.cjs +1 -0
- package/dist/cjs/node_modules/@iconify-json/tabler/icons.json.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +1 -0
- package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
- package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
- package/dist/cjs/node_modules/colorizr/dist/index.cjs +1 -0
- package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +5 -0
- package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +1 -0
- package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +4 -0
- package/dist/cjs/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/cjs/pages/authLayout.cjs +1 -0
- package/dist/cjs/pages/layout/global.cjs +1 -0
- package/dist/cjs/pages/layout/page.cjs +1 -0
- package/dist/cjs/pages/layout/tab.cjs +1 -0
- package/dist/cjs/pages/layout.cjs +1 -0
- package/dist/cjs/pages/loading.cjs +1 -0
- package/dist/cjs/pages/login.cjs +1 -0
- package/dist/cjs/pages/menu/avatar.cjs +1 -0
- package/dist/cjs/pages/menu/button.cjs +1 -0
- package/dist/cjs/pages/menu/cmd.cjs +1 -0
- package/dist/cjs/pages/menu/main.cjs +1 -0
- package/dist/cjs/pages/menu/mobile.cjs +1 -0
- package/dist/cjs/pages/page.cjs +1 -0
- package/dist/cjs/pages/page403.cjs +1 -0
- package/dist/cjs/pages/page404.cjs +1 -0
- package/dist/cjs/pages/page500.cjs +1 -0
- package/dist/cjs/pages/pageEmpty.cjs +1 -0
- package/dist/cjs/pages/pageLoading.cjs +1 -0
- package/dist/cjs/pages/pageStatus.cjs +1 -0
- package/dist/cjs/static/images/placeholder.png.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -0
- package/dist/cjs/theme/naiveTheme.cjs +1 -0
- package/dist/cjs/theme/presetTheme.cjs +1 -0
- package/dist/cjs/theme/uno.css.cjs +1285 -0
- package/dist/esm/app.js +20 -0
- package/dist/esm/component.js +59 -0
- package/dist/esm/components/card/card.js +114 -0
- package/dist/esm/components/carousel/carousel.js +37 -0
- package/dist/esm/components/dashboard/hello.js +40 -0
- package/dist/esm/components/dashboard/helloBig.js +344 -0
- package/dist/esm/components/dashboard/quick.js +59 -0
- package/dist/esm/components/dialog/dialog.js +118 -0
- package/dist/esm/components/draw/drawApps.js +145 -0
- package/dist/esm/components/draw/drawAuth.js +50 -0
- package/dist/esm/components/draw/drawEmpty.js +92 -0
- package/dist/esm/components/draw/drawEmptyForm.js +128 -0
- package/dist/esm/components/draw/drawError.js +242 -0
- package/dist/esm/components/drawer/drawer.js +73 -0
- package/dist/esm/components/drawer/drawerPage.js +28 -0
- package/dist/esm/components/form/formItem.js +77 -0
- package/dist/esm/components/form/formLayout.js +38 -0
- package/dist/esm/components/form/modalForm.js +108 -0
- package/dist/esm/components/form/pageForm.js +94 -0
- package/dist/esm/components/form/settingForm.js +104 -0
- package/dist/esm/components/layout/filter.js +27 -0
- package/dist/esm/components/layout/list.js +333 -0
- package/dist/esm/components/layout/table.js +292 -0
- package/dist/esm/components/layout/tools.js +78 -0
- package/dist/esm/components/list/card.js +78 -0
- package/dist/esm/components/list/list.js +38 -0
- package/dist/esm/components/media/media.js +77 -0
- package/dist/esm/components/modal/modal.js +116 -0
- package/dist/esm/components/modal/modalPage.js +56 -0
- package/dist/esm/components/modal/modalTab.js +70 -0
- package/dist/esm/components/panel/alert.js +57 -0
- package/dist/esm/components/panel/setting.js +49 -0
- package/dist/esm/components/status/blockEmpty.js +78 -0
- package/dist/esm/components/table/tablePage.js +41 -0
- package/dist/esm/components/widget/connect.js +119 -0
- package/dist/esm/config/uno.js +32 -0
- package/dist/esm/config/validate.js +15 -0
- package/dist/esm/dvha-pro.css +1 -0
- package/dist/esm/hooks/action.js +213 -0
- package/dist/esm/hooks/dialog.js +32 -0
- package/dist/esm/hooks/drawer.js +25 -0
- package/dist/esm/hooks/modal.js +14 -0
- package/dist/esm/hooks/table/column.js +31 -0
- package/dist/esm/hooks/table/copy.js +27 -0
- package/dist/esm/hooks/table/hidden.js +48 -0
- package/dist/esm/hooks/table/image.js +24 -0
- package/dist/esm/hooks/table/input.js +81 -0
- package/dist/esm/hooks/table/map.js +21 -0
- package/dist/esm/hooks/table/media.js +34 -0
- package/dist/esm/hooks/table/status.js +32 -0
- package/dist/esm/hooks/table/switch.js +33 -0
- package/dist/esm/hooks/table.js +74 -0
- package/dist/esm/hooks/ui.js +16 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/langs/en-US.json.js +11 -0
- package/dist/esm/langs/zh-CN.json.js +11 -0
- package/dist/esm/main.js +18 -0
- package/dist/esm/node_modules/@iconify-json/tabler/icons.json.js +17 -0
- package/dist/esm/node_modules/@overlastic/core/dist/index.js +76 -0
- package/dist/esm/node_modules/@overlastic/vue/dist/index.js +122 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/en.json.js +9 -0
- package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +9 -0
- package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +43 -0
- package/dist/esm/node_modules/@vueuse/shared/index.js +6 -0
- package/dist/esm/node_modules/colorizr/dist/index.js +318 -0
- package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +473 -0
- package/dist/esm/node_modules/lower-case/dist.es2015/index.js +6 -0
- package/dist/esm/node_modules/no-case/dist.es2015/index.js +18 -0
- package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +13 -0
- package/dist/esm/node_modules/tabbable/dist/index.esm.js +202 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +12 -0
- package/dist/esm/pages/authLayout.js +38 -0
- package/dist/esm/pages/layout/global.js +51 -0
- package/dist/esm/pages/layout/page.js +54 -0
- package/dist/esm/pages/layout/tab.js +110 -0
- package/dist/esm/pages/layout.js +14 -0
- package/dist/esm/pages/loading.js +14 -0
- package/dist/esm/pages/login.js +143 -0
- package/dist/esm/pages/menu/avatar.js +205 -0
- package/dist/esm/pages/menu/button.js +60 -0
- package/dist/esm/pages/menu/cmd.js +156 -0
- package/dist/esm/pages/menu/main.js +101 -0
- package/dist/esm/pages/menu/mobile.js +38 -0
- package/dist/esm/pages/page.js +47 -0
- package/dist/esm/pages/page403.js +46 -0
- package/dist/esm/pages/page404.js +57 -0
- package/dist/esm/pages/page500.js +45 -0
- package/dist/esm/pages/pageEmpty.js +25 -0
- package/dist/esm/pages/pageLoading.js +22 -0
- package/dist/esm/pages/pageStatus.js +50 -0
- package/dist/esm/static/images/placeholder.png.js +4 -0
- package/dist/esm/stores/ui.js +34 -0
- package/dist/esm/theme/naiveTheme.js +97 -0
- package/dist/esm/theme/presetTheme.js +12 -0
- package/dist/esm/theme/uno.css.js +1288 -0
- package/dist/types/app.d.ts +1 -0
- package/dist/types/component.d.ts +5 -0
- package/dist/types/components/card/card.d.ts +140 -0
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/carousel/carousel.d.ts +20 -0
- package/dist/types/components/carousel/index.d.ts +1 -0
- package/dist/types/components/dashboard/hello.d.ts +16 -0
- package/dist/types/components/dashboard/helloBig.d.ts +19 -0
- package/dist/types/components/dashboard/index.d.ts +3 -0
- package/dist/types/components/dashboard/quick.d.ts +33 -0
- package/dist/types/components/dialog/dialog.d.ts +35 -0
- package/dist/types/components/dialog/index.d.ts +1 -0
- package/dist/types/components/draw/drawApps.d.ts +1 -0
- package/dist/types/components/draw/drawAuth.d.ts +1 -0
- package/dist/types/components/draw/drawEmpty.d.ts +1 -0
- package/dist/types/components/draw/drawEmptyForm.d.ts +1 -0
- package/dist/types/components/draw/drawError.d.ts +1 -0
- package/dist/types/components/draw/index.d.ts +5 -0
- package/dist/types/components/drawer/drawer.d.ts +19 -0
- package/dist/types/components/drawer/drawerPage.d.ts +1 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/formItem.d.ts +27 -0
- package/dist/types/components/form/formLayout.d.ts +38 -0
- package/dist/types/components/form/index.d.ts +5 -0
- package/dist/types/components/form/modalForm.d.ts +89 -0
- package/dist/types/components/form/pageForm.d.ts +51 -0
- package/dist/types/components/form/settingForm.d.ts +69 -0
- package/dist/types/components/index.d.ts +14 -0
- package/dist/types/components/layout/filter.d.ts +13 -0
- package/dist/types/components/layout/index.d.ts +4 -0
- package/dist/types/components/layout/list.d.ts +85 -0
- package/dist/types/components/layout/table.d.ts +72 -0
- package/dist/types/components/layout/tools.d.ts +37 -0
- package/dist/types/components/list/card.d.ts +117 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +87 -0
- package/dist/types/components/media/index.d.ts +1 -0
- package/dist/types/components/media/media.d.ts +95 -0
- package/dist/types/components/modal/index.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +66 -0
- package/dist/types/components/modal/modalPage.d.ts +42 -0
- package/dist/types/components/modal/modalTab.d.ts +42 -0
- package/dist/types/components/panel/alert.d.ts +32 -0
- package/dist/types/components/panel/index.d.ts +2 -0
- package/dist/types/components/panel/setting.d.ts +29 -0
- package/dist/types/components/status/blockEmpty.d.ts +25 -0
- package/dist/types/components/status/index.d.ts +1 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/table/tablePage.d.ts +73 -0
- package/dist/types/components/widget/connect.d.ts +11 -0
- package/dist/types/components/widget/index.d.ts +1 -0
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/config/uno.d.ts +2 -0
- package/dist/types/config/validate.d.ts +1 -0
- package/dist/types/hooks/action.d.ts +17 -0
- package/dist/types/hooks/dialog.d.ts +17 -0
- package/dist/types/hooks/drawer.d.ts +11 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/modal.d.ts +9 -0
- package/dist/types/hooks/table/column.d.ts +14 -0
- package/dist/types/hooks/table/copy.d.ts +6 -0
- package/dist/types/hooks/table/hidden.d.ts +7 -0
- package/dist/types/hooks/table/image.d.ts +8 -0
- package/dist/types/hooks/table/index.d.ts +7 -0
- package/dist/types/hooks/table/input.d.ts +9 -0
- package/dist/types/hooks/table/map.d.ts +13 -0
- package/dist/types/hooks/table/media.d.ts +12 -0
- package/dist/types/hooks/table/status.d.ts +12 -0
- package/dist/types/hooks/table/switch.d.ts +7 -0
- package/dist/types/hooks/table/types.d.ts +74 -0
- package/dist/types/hooks/table.d.ts +2 -0
- package/dist/types/hooks/ui.d.ts +8 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/langs/index.d.ts +3 -0
- package/dist/types/main.d.ts +5 -0
- package/dist/types/pages/authLayout.d.ts +1 -0
- package/dist/types/pages/index.d.ts +12 -0
- package/dist/types/pages/layout/global.d.ts +1 -0
- package/dist/types/pages/layout/index.d.ts +3 -0
- package/dist/types/pages/layout/page.d.ts +1 -0
- package/dist/types/pages/layout/tab.d.ts +1 -0
- package/dist/types/pages/layout.d.ts +1 -0
- package/dist/types/pages/loading.d.ts +1 -0
- package/dist/types/pages/login.d.ts +1 -0
- package/dist/types/pages/menu/avatar.d.ts +14 -0
- package/dist/types/pages/menu/button.d.ts +41 -0
- package/dist/types/pages/menu/cmd.d.ts +7 -0
- package/dist/types/pages/menu/index.d.ts +4 -0
- package/dist/types/pages/menu/main.d.ts +13 -0
- package/dist/types/pages/menu/mobile.d.ts +1 -0
- package/dist/types/pages/page.d.ts +42 -0
- package/dist/types/pages/page403.d.ts +1 -0
- package/dist/types/pages/page404.d.ts +1 -0
- package/dist/types/pages/page500.d.ts +1 -0
- package/dist/types/pages/pageEmpty.d.ts +7 -0
- package/dist/types/pages/pageLoading.d.ts +1 -0
- package/dist/types/pages/pageStatus.d.ts +7 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/ui.d.ts +28 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/naiveTheme.d.ts +5 -0
- package/dist/types/theme/presetTheme.d.ts +7 -0
- package/package.json +73 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { tabbable as ae, focusable as re, isTabbable as k, getTabIndex as R, isFocusable as x } from "../../tabbable/dist/index.esm.js";
|
|
2
|
+
/*!
|
|
3
|
+
* focus-trap 7.6.5
|
|
4
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5
|
+
*/
|
|
6
|
+
function G(n, t) {
|
|
7
|
+
(t == null || t > n.length) && (t = n.length);
|
|
8
|
+
for (var o = 0, u = Array(t); o < t; o++) u[o] = n[o];
|
|
9
|
+
return u;
|
|
10
|
+
}
|
|
11
|
+
function ne(n) {
|
|
12
|
+
if (Array.isArray(n)) return G(n);
|
|
13
|
+
}
|
|
14
|
+
function ie(n, t, o) {
|
|
15
|
+
return (t = le(t)) in n ? Object.defineProperty(n, t, {
|
|
16
|
+
value: o,
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
configurable: !0,
|
|
19
|
+
writable: !0
|
|
20
|
+
}) : n[t] = o, n;
|
|
21
|
+
}
|
|
22
|
+
function oe(n) {
|
|
23
|
+
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
24
|
+
}
|
|
25
|
+
function ue() {
|
|
26
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
28
|
+
}
|
|
29
|
+
function Q(n, t) {
|
|
30
|
+
var o = Object.keys(n);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var u = Object.getOwnPropertySymbols(n);
|
|
33
|
+
t && (u = u.filter(function(m) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(n, m).enumerable;
|
|
35
|
+
})), o.push.apply(o, u);
|
|
36
|
+
}
|
|
37
|
+
return o;
|
|
38
|
+
}
|
|
39
|
+
function X(n) {
|
|
40
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
41
|
+
var o = arguments[t] != null ? arguments[t] : {};
|
|
42
|
+
t % 2 ? Q(Object(o), !0).forEach(function(u) {
|
|
43
|
+
ie(n, u, o[u]);
|
|
44
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : Q(Object(o)).forEach(function(u) {
|
|
45
|
+
Object.defineProperty(n, u, Object.getOwnPropertyDescriptor(o, u));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function se(n) {
|
|
51
|
+
return ne(n) || oe(n) || fe(n) || ue();
|
|
52
|
+
}
|
|
53
|
+
function ce(n, t) {
|
|
54
|
+
if (typeof n != "object" || !n) return n;
|
|
55
|
+
var o = n[Symbol.toPrimitive];
|
|
56
|
+
if (o !== void 0) {
|
|
57
|
+
var u = o.call(n, t);
|
|
58
|
+
if (typeof u != "object") return u;
|
|
59
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60
|
+
}
|
|
61
|
+
return (t === "string" ? String : Number)(n);
|
|
62
|
+
}
|
|
63
|
+
function le(n) {
|
|
64
|
+
var t = ce(n, "string");
|
|
65
|
+
return typeof t == "symbol" ? t : t + "";
|
|
66
|
+
}
|
|
67
|
+
function fe(n, t) {
|
|
68
|
+
if (n) {
|
|
69
|
+
if (typeof n == "string") return G(n, t);
|
|
70
|
+
var o = {}.toString.call(n).slice(8, -1);
|
|
71
|
+
return o === "Object" && n.constructor && (o = n.constructor.name), o === "Map" || o === "Set" ? Array.from(n) : o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? G(n, t) : void 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
var Z = {
|
|
75
|
+
activateTrap: function(t, o) {
|
|
76
|
+
if (t.length > 0) {
|
|
77
|
+
var u = t[t.length - 1];
|
|
78
|
+
u !== o && u._setPausedState(!0);
|
|
79
|
+
}
|
|
80
|
+
var m = t.indexOf(o);
|
|
81
|
+
m === -1 || t.splice(m, 1), t.push(o);
|
|
82
|
+
},
|
|
83
|
+
deactivateTrap: function(t, o) {
|
|
84
|
+
var u = t.indexOf(o);
|
|
85
|
+
u !== -1 && t.splice(u, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
86
|
+
}
|
|
87
|
+
}, de = function(t) {
|
|
88
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
89
|
+
}, ve = function(t) {
|
|
90
|
+
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
91
|
+
}, L = function(t) {
|
|
92
|
+
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
93
|
+
}, be = function(t) {
|
|
94
|
+
return L(t) && !t.shiftKey;
|
|
95
|
+
}, pe = function(t) {
|
|
96
|
+
return L(t) && t.shiftKey;
|
|
97
|
+
}, U = function(t) {
|
|
98
|
+
return setTimeout(t, 0);
|
|
99
|
+
}, K = function(t) {
|
|
100
|
+
for (var o = arguments.length, u = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
|
|
101
|
+
u[m - 1] = arguments[m];
|
|
102
|
+
return typeof t == "function" ? t.apply(void 0, u) : t;
|
|
103
|
+
}, B = function(t) {
|
|
104
|
+
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
105
|
+
}, me = [], he = function(t, o) {
|
|
106
|
+
var u = (o == null ? void 0 : o.document) || document, m = (o == null ? void 0 : o.trapStack) || me, f = X({
|
|
107
|
+
returnFocusOnDeactivate: !0,
|
|
108
|
+
escapeDeactivates: !0,
|
|
109
|
+
delayInitialFocus: !0,
|
|
110
|
+
isKeyForward: be,
|
|
111
|
+
isKeyBackward: pe
|
|
112
|
+
}, o), r = {
|
|
113
|
+
// containers given to createFocusTrap()
|
|
114
|
+
// @type {Array<HTMLElement>}
|
|
115
|
+
containers: [],
|
|
116
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
117
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
118
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
119
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
120
|
+
// result in an error being thrown)
|
|
121
|
+
// @type {Array<{
|
|
122
|
+
// container: HTMLElement,
|
|
123
|
+
// tabbableNodes: Array<HTMLElement>, // empty if none
|
|
124
|
+
// focusableNodes: Array<HTMLElement>, // empty if none
|
|
125
|
+
// posTabIndexesFound: boolean,
|
|
126
|
+
// firstTabbableNode: HTMLElement|undefined,
|
|
127
|
+
// lastTabbableNode: HTMLElement|undefined,
|
|
128
|
+
// firstDomTabbableNode: HTMLElement|undefined,
|
|
129
|
+
// lastDomTabbableNode: HTMLElement|undefined,
|
|
130
|
+
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
131
|
+
// }>}
|
|
132
|
+
containerGroups: [],
|
|
133
|
+
// same order/length as `containers` list
|
|
134
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
135
|
+
// tabbable nodes in them
|
|
136
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
137
|
+
// the same length
|
|
138
|
+
tabbableGroups: [],
|
|
139
|
+
nodeFocusedBeforeActivation: null,
|
|
140
|
+
mostRecentlyFocusedNode: null,
|
|
141
|
+
active: !1,
|
|
142
|
+
paused: !1,
|
|
143
|
+
manuallyPaused: !1,
|
|
144
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
145
|
+
// has been delayed during activation
|
|
146
|
+
delayInitialFocusTimer: void 0,
|
|
147
|
+
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
148
|
+
recentNavEvent: void 0
|
|
149
|
+
}, h, y = function(e, a, i) {
|
|
150
|
+
return e && e[a] !== void 0 ? e[a] : f[i || a];
|
|
151
|
+
}, N = function(e, a) {
|
|
152
|
+
var i = typeof (a == null ? void 0 : a.composedPath) == "function" ? a.composedPath() : void 0;
|
|
153
|
+
return r.containerGroups.findIndex(function(c) {
|
|
154
|
+
var l = c.container, v = c.tabbableNodes;
|
|
155
|
+
return l.contains(e) || // fall back to explicit tabbable search which will take into consideration any
|
|
156
|
+
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
157
|
+
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
158
|
+
// look inside web components even if open)
|
|
159
|
+
(i == null ? void 0 : i.includes(l)) || v.find(function(s) {
|
|
160
|
+
return s === e;
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
}, T = function(e) {
|
|
164
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = a.hasFallback, c = i === void 0 ? !1 : i, l = a.params, v = l === void 0 ? [] : l, s = f[e];
|
|
165
|
+
if (typeof s == "function" && (s = s.apply(void 0, se(v))), s === !0 && (s = void 0), !s) {
|
|
166
|
+
if (s === void 0 || s === !1)
|
|
167
|
+
return s;
|
|
168
|
+
throw new Error("`".concat(e, "` was specified but was not a node, or did not return a node"));
|
|
169
|
+
}
|
|
170
|
+
var b = s;
|
|
171
|
+
if (typeof s == "string") {
|
|
172
|
+
try {
|
|
173
|
+
b = u.querySelector(s);
|
|
174
|
+
} catch (p) {
|
|
175
|
+
throw new Error("`".concat(e, '` appears to be an invalid selector; error="').concat(p.message, '"'));
|
|
176
|
+
}
|
|
177
|
+
if (!b && !c)
|
|
178
|
+
throw new Error("`".concat(e, "` as selector refers to no known node"));
|
|
179
|
+
}
|
|
180
|
+
return b;
|
|
181
|
+
}, E = function() {
|
|
182
|
+
var e = T("initialFocus", {
|
|
183
|
+
hasFallback: !0
|
|
184
|
+
});
|
|
185
|
+
if (e === !1)
|
|
186
|
+
return !1;
|
|
187
|
+
if (e === void 0 || e && !x(e, f.tabbableOptions))
|
|
188
|
+
if (N(u.activeElement) >= 0)
|
|
189
|
+
e = u.activeElement;
|
|
190
|
+
else {
|
|
191
|
+
var a = r.tabbableGroups[0], i = a && a.firstTabbableNode;
|
|
192
|
+
e = i || T("fallbackFocus");
|
|
193
|
+
}
|
|
194
|
+
else e === null && (e = T("fallbackFocus"));
|
|
195
|
+
if (!e)
|
|
196
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
197
|
+
return e;
|
|
198
|
+
}, P = function() {
|
|
199
|
+
if (r.containerGroups = r.containers.map(function(e) {
|
|
200
|
+
var a = ae(e, f.tabbableOptions), i = re(e, f.tabbableOptions), c = a.length > 0 ? a[0] : void 0, l = a.length > 0 ? a[a.length - 1] : void 0, v = i.find(function(p) {
|
|
201
|
+
return k(p);
|
|
202
|
+
}), s = i.slice().reverse().find(function(p) {
|
|
203
|
+
return k(p);
|
|
204
|
+
}), b = !!a.find(function(p) {
|
|
205
|
+
return R(p) > 0;
|
|
206
|
+
});
|
|
207
|
+
return {
|
|
208
|
+
container: e,
|
|
209
|
+
tabbableNodes: a,
|
|
210
|
+
focusableNodes: i,
|
|
211
|
+
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
212
|
+
posTabIndexesFound: b,
|
|
213
|
+
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
214
|
+
firstTabbableNode: c,
|
|
215
|
+
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
216
|
+
lastTabbableNode: l,
|
|
217
|
+
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
218
|
+
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
219
|
+
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
220
|
+
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
221
|
+
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
222
|
+
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
223
|
+
// be avoided anyway...
|
|
224
|
+
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
225
|
+
firstDomTabbableNode: v,
|
|
226
|
+
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
227
|
+
lastDomTabbableNode: s,
|
|
228
|
+
/**
|
|
229
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
230
|
+
* in this container, if any.
|
|
231
|
+
* @param {HTMLElement} node
|
|
232
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
233
|
+
* in reverse.
|
|
234
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
235
|
+
*/
|
|
236
|
+
nextTabbableNode: function(F) {
|
|
237
|
+
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, w = a.indexOf(F);
|
|
238
|
+
return w < 0 ? O ? i.slice(i.indexOf(F) + 1).find(function(A) {
|
|
239
|
+
return k(A);
|
|
240
|
+
}) : i.slice(0, i.indexOf(F)).reverse().find(function(A) {
|
|
241
|
+
return k(A);
|
|
242
|
+
}) : a[w + (O ? 1 : -1)];
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(e) {
|
|
246
|
+
return e.tabbableNodes.length > 0;
|
|
247
|
+
}), r.tabbableGroups.length <= 0 && !T("fallbackFocus"))
|
|
248
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
249
|
+
if (r.containerGroups.find(function(e) {
|
|
250
|
+
return e.posTabIndexesFound;
|
|
251
|
+
}) && r.containerGroups.length > 1)
|
|
252
|
+
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
253
|
+
}, C = function(e) {
|
|
254
|
+
var a = e.activeElement;
|
|
255
|
+
if (a)
|
|
256
|
+
return a.shadowRoot && a.shadowRoot.activeElement !== null ? C(a.shadowRoot) : a;
|
|
257
|
+
}, g = function(e) {
|
|
258
|
+
if (e !== !1 && e !== C(document)) {
|
|
259
|
+
if (!e || !e.focus) {
|
|
260
|
+
g(E());
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
e.focus({
|
|
264
|
+
preventScroll: !!f.preventScroll
|
|
265
|
+
}), r.mostRecentlyFocusedNode = e, de(e) && e.select();
|
|
266
|
+
}
|
|
267
|
+
}, M = function(e) {
|
|
268
|
+
var a = T("setReturnFocus", {
|
|
269
|
+
params: [e]
|
|
270
|
+
});
|
|
271
|
+
return a || (a === !1 ? !1 : e);
|
|
272
|
+
}, $ = function(e) {
|
|
273
|
+
var a = e.target, i = e.event, c = e.isBackward, l = c === void 0 ? !1 : c;
|
|
274
|
+
a = a || B(i), P();
|
|
275
|
+
var v = null;
|
|
276
|
+
if (r.tabbableGroups.length > 0) {
|
|
277
|
+
var s = N(a, i), b = s >= 0 ? r.containerGroups[s] : void 0;
|
|
278
|
+
if (s < 0)
|
|
279
|
+
l ? v = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : v = r.tabbableGroups[0].firstTabbableNode;
|
|
280
|
+
else if (l) {
|
|
281
|
+
var p = r.tabbableGroups.findIndex(function(_) {
|
|
282
|
+
var S = _.firstTabbableNode;
|
|
283
|
+
return a === S;
|
|
284
|
+
});
|
|
285
|
+
if (p < 0 && (b.container === a || x(a, f.tabbableOptions) && !k(a, f.tabbableOptions) && !b.nextTabbableNode(a, !1)) && (p = s), p >= 0) {
|
|
286
|
+
var F = p === 0 ? r.tabbableGroups.length - 1 : p - 1, O = r.tabbableGroups[F];
|
|
287
|
+
v = R(a) >= 0 ? O.lastTabbableNode : O.lastDomTabbableNode;
|
|
288
|
+
} else L(i) || (v = b.nextTabbableNode(a, !1));
|
|
289
|
+
} else {
|
|
290
|
+
var w = r.tabbableGroups.findIndex(function(_) {
|
|
291
|
+
var S = _.lastTabbableNode;
|
|
292
|
+
return a === S;
|
|
293
|
+
});
|
|
294
|
+
if (w < 0 && (b.container === a || x(a, f.tabbableOptions) && !k(a, f.tabbableOptions) && !b.nextTabbableNode(a)) && (w = s), w >= 0) {
|
|
295
|
+
var A = w === r.tabbableGroups.length - 1 ? 0 : w + 1, J = r.tabbableGroups[A];
|
|
296
|
+
v = R(a) >= 0 ? J.firstTabbableNode : J.firstDomTabbableNode;
|
|
297
|
+
} else L(i) || (v = b.nextTabbableNode(a));
|
|
298
|
+
}
|
|
299
|
+
} else
|
|
300
|
+
v = T("fallbackFocus");
|
|
301
|
+
return v;
|
|
302
|
+
}, j = function(e) {
|
|
303
|
+
var a = B(e);
|
|
304
|
+
if (!(N(a, e) >= 0)) {
|
|
305
|
+
if (K(f.clickOutsideDeactivates, e)) {
|
|
306
|
+
h.deactivate({
|
|
307
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
308
|
+
// which will result in the outside click setting focus to the node
|
|
309
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
310
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
311
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
312
|
+
// outside click was on a focusable node or not
|
|
313
|
+
returnFocus: f.returnFocusOnDeactivate
|
|
314
|
+
});
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
K(f.allowOutsideClick, e) || e.preventDefault();
|
|
318
|
+
}
|
|
319
|
+
}, H = function(e) {
|
|
320
|
+
var a = B(e), i = N(a, e) >= 0;
|
|
321
|
+
if (i || a instanceof Document)
|
|
322
|
+
i && (r.mostRecentlyFocusedNode = a);
|
|
323
|
+
else {
|
|
324
|
+
e.stopImmediatePropagation();
|
|
325
|
+
var c, l = !0;
|
|
326
|
+
if (r.mostRecentlyFocusedNode)
|
|
327
|
+
if (R(r.mostRecentlyFocusedNode) > 0) {
|
|
328
|
+
var v = N(r.mostRecentlyFocusedNode), s = r.containerGroups[v].tabbableNodes;
|
|
329
|
+
if (s.length > 0) {
|
|
330
|
+
var b = s.findIndex(function(p) {
|
|
331
|
+
return p === r.mostRecentlyFocusedNode;
|
|
332
|
+
});
|
|
333
|
+
b >= 0 && (f.isKeyForward(r.recentNavEvent) ? b + 1 < s.length && (c = s[b + 1], l = !1) : b - 1 >= 0 && (c = s[b - 1], l = !1));
|
|
334
|
+
}
|
|
335
|
+
} else
|
|
336
|
+
r.containerGroups.some(function(p) {
|
|
337
|
+
return p.tabbableNodes.some(function(F) {
|
|
338
|
+
return R(F) > 0;
|
|
339
|
+
});
|
|
340
|
+
}) || (l = !1);
|
|
341
|
+
else
|
|
342
|
+
l = !1;
|
|
343
|
+
l && (c = $({
|
|
344
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
345
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
346
|
+
target: r.mostRecentlyFocusedNode,
|
|
347
|
+
isBackward: f.isKeyBackward(r.recentNavEvent)
|
|
348
|
+
})), g(c || r.mostRecentlyFocusedNode || E());
|
|
349
|
+
}
|
|
350
|
+
r.recentNavEvent = void 0;
|
|
351
|
+
}, ee = function(e) {
|
|
352
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
353
|
+
r.recentNavEvent = e;
|
|
354
|
+
var i = $({
|
|
355
|
+
event: e,
|
|
356
|
+
isBackward: a
|
|
357
|
+
});
|
|
358
|
+
i && (L(e) && e.preventDefault(), g(i));
|
|
359
|
+
}, q = function(e) {
|
|
360
|
+
(f.isKeyForward(e) || f.isKeyBackward(e)) && ee(e, f.isKeyBackward(e));
|
|
361
|
+
}, Y = function(e) {
|
|
362
|
+
ve(e) && K(f.escapeDeactivates, e) !== !1 && (e.preventDefault(), h.deactivate());
|
|
363
|
+
}, V = function(e) {
|
|
364
|
+
var a = B(e);
|
|
365
|
+
N(a, e) >= 0 || K(f.clickOutsideDeactivates, e) || K(f.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
|
|
366
|
+
}, W = function() {
|
|
367
|
+
if (r.active)
|
|
368
|
+
return Z.activateTrap(m, h), r.delayInitialFocusTimer = f.delayInitialFocus ? U(function() {
|
|
369
|
+
g(E());
|
|
370
|
+
}) : g(E()), u.addEventListener("focusin", H, !0), u.addEventListener("mousedown", j, {
|
|
371
|
+
capture: !0,
|
|
372
|
+
passive: !1
|
|
373
|
+
}), u.addEventListener("touchstart", j, {
|
|
374
|
+
capture: !0,
|
|
375
|
+
passive: !1
|
|
376
|
+
}), u.addEventListener("click", V, {
|
|
377
|
+
capture: !0,
|
|
378
|
+
passive: !1
|
|
379
|
+
}), u.addEventListener("keydown", q, {
|
|
380
|
+
capture: !0,
|
|
381
|
+
passive: !1
|
|
382
|
+
}), u.addEventListener("keydown", Y), h;
|
|
383
|
+
}, z = function() {
|
|
384
|
+
if (r.active)
|
|
385
|
+
return u.removeEventListener("focusin", H, !0), u.removeEventListener("mousedown", j, !0), u.removeEventListener("touchstart", j, !0), u.removeEventListener("click", V, !0), u.removeEventListener("keydown", q, !0), u.removeEventListener("keydown", Y), h;
|
|
386
|
+
}, te = function(e) {
|
|
387
|
+
var a = e.some(function(i) {
|
|
388
|
+
var c = Array.from(i.removedNodes);
|
|
389
|
+
return c.some(function(l) {
|
|
390
|
+
return l === r.mostRecentlyFocusedNode;
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
a && g(E());
|
|
394
|
+
}, I = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(te) : void 0, D = function() {
|
|
395
|
+
I && (I.disconnect(), r.active && !r.paused && r.containers.map(function(e) {
|
|
396
|
+
I.observe(e, {
|
|
397
|
+
subtree: !0,
|
|
398
|
+
childList: !0
|
|
399
|
+
});
|
|
400
|
+
}));
|
|
401
|
+
};
|
|
402
|
+
return h = {
|
|
403
|
+
get active() {
|
|
404
|
+
return r.active;
|
|
405
|
+
},
|
|
406
|
+
get paused() {
|
|
407
|
+
return r.paused;
|
|
408
|
+
},
|
|
409
|
+
activate: function(e) {
|
|
410
|
+
if (r.active)
|
|
411
|
+
return this;
|
|
412
|
+
var a = y(e, "onActivate"), i = y(e, "onPostActivate"), c = y(e, "checkCanFocusTrap");
|
|
413
|
+
c || P(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = C(u), a == null || a();
|
|
414
|
+
var l = function() {
|
|
415
|
+
c && P(), W(), D(), i == null || i();
|
|
416
|
+
};
|
|
417
|
+
return c ? (c(r.containers.concat()).then(l, l), this) : (l(), this);
|
|
418
|
+
},
|
|
419
|
+
deactivate: function(e) {
|
|
420
|
+
if (!r.active)
|
|
421
|
+
return this;
|
|
422
|
+
var a = X({
|
|
423
|
+
onDeactivate: f.onDeactivate,
|
|
424
|
+
onPostDeactivate: f.onPostDeactivate,
|
|
425
|
+
checkCanReturnFocus: f.checkCanReturnFocus
|
|
426
|
+
}, e);
|
|
427
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, z(), r.active = !1, r.paused = !1, D(), Z.deactivateTrap(m, h);
|
|
428
|
+
var i = y(a, "onDeactivate"), c = y(a, "onPostDeactivate"), l = y(a, "checkCanReturnFocus"), v = y(a, "returnFocus", "returnFocusOnDeactivate");
|
|
429
|
+
i == null || i();
|
|
430
|
+
var s = function() {
|
|
431
|
+
U(function() {
|
|
432
|
+
v && g(M(r.nodeFocusedBeforeActivation)), c == null || c();
|
|
433
|
+
});
|
|
434
|
+
};
|
|
435
|
+
return v && l ? (l(M(r.nodeFocusedBeforeActivation)).then(s, s), this) : (s(), this);
|
|
436
|
+
},
|
|
437
|
+
pause: function(e) {
|
|
438
|
+
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, e)) : this;
|
|
439
|
+
},
|
|
440
|
+
unpause: function(e) {
|
|
441
|
+
return r.active ? (r.manuallyPaused = !1, m[m.length - 1] !== this ? this : this._setPausedState(!1, e)) : this;
|
|
442
|
+
},
|
|
443
|
+
updateContainerElements: function(e) {
|
|
444
|
+
var a = [].concat(e).filter(Boolean);
|
|
445
|
+
return r.containers = a.map(function(i) {
|
|
446
|
+
return typeof i == "string" ? u.querySelector(i) : i;
|
|
447
|
+
}), r.active && P(), D(), this;
|
|
448
|
+
}
|
|
449
|
+
}, Object.defineProperties(h, {
|
|
450
|
+
_isManuallyPaused: {
|
|
451
|
+
value: function() {
|
|
452
|
+
return r.manuallyPaused;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
_setPausedState: {
|
|
456
|
+
value: function(e, a) {
|
|
457
|
+
if (r.paused === e)
|
|
458
|
+
return this;
|
|
459
|
+
if (r.paused = e, e) {
|
|
460
|
+
var i = y(a, "onPause"), c = y(a, "onPostPause");
|
|
461
|
+
i == null || i(), z(), D(), c == null || c();
|
|
462
|
+
} else {
|
|
463
|
+
var l = y(a, "onUnpause"), v = y(a, "onPostUnpause");
|
|
464
|
+
l == null || l(), P(), W(), D(), v == null || v();
|
|
465
|
+
}
|
|
466
|
+
return this;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}), h.updateContainerElements(t), h;
|
|
470
|
+
};
|
|
471
|
+
export {
|
|
472
|
+
he as createFocusTrap
|
|
473
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { lowerCase as A } from "../../lower-case/dist.es2015/index.js";
|
|
2
|
+
var R = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], _ = /[^A-Z0-9]+/gi;
|
|
3
|
+
function o(a, e) {
|
|
4
|
+
e === void 0 && (e = {});
|
|
5
|
+
for (var r = e.splitRegexp, l = r === void 0 ? R : r, i = e.stripRegexp, f = i === void 0 ? _ : i, d = e.transform, g = d === void 0 ? A : d, p = e.delimiter, s = p === void 0 ? " " : p, t = v(v(a, l, "$1\0$2"), f, "\0"), c = 0, n = t.length; t.charAt(c) === "\0"; )
|
|
6
|
+
c++;
|
|
7
|
+
for (; t.charAt(n - 1) === "\0"; )
|
|
8
|
+
n--;
|
|
9
|
+
return t.slice(c, n).split("\0").map(g).join(s);
|
|
10
|
+
}
|
|
11
|
+
function v(a, e, r) {
|
|
12
|
+
return e instanceof RegExp ? a.replace(e, r) : e.reduce(function(l, i) {
|
|
13
|
+
return l.replace(i, r);
|
|
14
|
+
}, a);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
o as noCase
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __assign as t } from "../../tslib/tslib.es6.js";
|
|
2
|
+
import { noCase as o } from "../../no-case/dist.es2015/index.js";
|
|
3
|
+
function f(a, r) {
|
|
4
|
+
var e = a.charAt(0), s = a.substr(1).toLowerCase();
|
|
5
|
+
return r > 0 && e >= "0" && e <= "9" ? "_" + e + s : "" + e.toUpperCase() + s;
|
|
6
|
+
}
|
|
7
|
+
function m(a, r) {
|
|
8
|
+
return r === void 0 && (r = {}), o(a, t({ delimiter: "", transform: f }, r));
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as pascalCase,
|
|
12
|
+
f as pascalCaseTransform
|
|
13
|
+
};
|