bitboss-ui 0.1.109 → 0.1.110
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/index101.js +3 -3
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index195.js +10 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +3 -35
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +35 -6
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +6 -295
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -16
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +15 -18
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +15 -24
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -8
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +351 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +134 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -2
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +186 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +23 -351
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +369 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -369
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -134
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +3 -186
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -23
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -3
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +235 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -235
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +12 -115
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +8 -27
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +115 -12
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -435
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +428 -82
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +86 -197
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +200 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +295 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index236.js +2 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -117
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -106
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -68
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +105 -161
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +224 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +258 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +162 -224
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -258
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +69 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -38
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +38 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.js +2 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -0
- package/dist/index254.js.map +1 -0
- package/dist/index29.js +3 -3
- package/dist/index31.js +6 -6
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +28 -26
- package/dist/index65.js.map +1 -1
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index8.js +13 -13
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index223.js
CHANGED
@@ -1,31 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
for (var o = 0; o < i.length; o++) {
|
7
|
-
const e = i[o];
|
8
|
-
if (typeof e != "string" && !Array.isArray(e)) {
|
9
|
-
for (const t in e)
|
10
|
-
if (t !== "default" && !(t in r)) {
|
11
|
-
const a = Object.getOwnPropertyDescriptor(e, t);
|
12
|
-
a && Object.defineProperty(r, t, a.get ? a : {
|
13
|
-
enumerable: !0,
|
14
|
-
get: () => e[t]
|
15
|
-
});
|
16
|
-
}
|
17
|
-
}
|
1
|
+
const o = (n, t) => {
|
2
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
3
|
+
const i = n[e];
|
4
|
+
if (t(i, e, n))
|
5
|
+
return e;
|
18
6
|
}
|
19
|
-
return
|
20
|
-
}
|
21
|
-
let l = s;
|
22
|
-
var n = new l(m, p);
|
23
|
-
const d = /* @__PURE__ */ f(n), _ = /* @__PURE__ */ c({
|
24
|
-
__proto__: null,
|
25
|
-
default: d
|
26
|
-
}, [n]);
|
7
|
+
return -1;
|
8
|
+
};
|
27
9
|
export {
|
28
|
-
|
29
|
-
_ as i
|
10
|
+
o as findRightIndex
|
30
11
|
};
|
31
12
|
//# sourceMappingURL=index223.js.map
|
package/dist/index223.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index223.js","sources":["../
|
1
|
+
{"version":3,"file":"index223.js","sources":["../src/utilities/functions/findRightIndex.ts"],"sourcesContent":["/**\n * Same as find but from the end of an array\n */\nexport const findRightIndex = <T>(arr: T[], iteratee: (value: T, index: number, arr: T[]) => boolean) => {\n for (let index = arr.length - 1; index >= 0; index--) {\n const element = arr[index];\n if(iteratee(element, index, arr)) {\n return index\n }\n }\n return -1;\n}"],"names":["findRightIndex","arr","iteratee","index","element"],"mappings":"AAGa,MAAAA,IAAiB,CAAIC,GAAUC,MAA6D;AACrG,WAASC,IAAQF,EAAI,SAAS,GAAGE,KAAS,GAAGA,KAAS;AAC5C,UAAAC,IAAUH,EAAIE,CAAK;AACzB,QAAGD,EAASE,GAASD,GAAOF,CAAG;AACpB,aAAAE;AAAA,EAEf;AACO,SAAA;AACX;"}
|
package/dist/index224.js
CHANGED
@@ -1,16 +1,119 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { computePosition as F } from "./index207.js";
|
2
|
+
import { autoUpdate as L, platform as N } from "./index207.js";
|
3
|
+
import { unref as o, computed as u, ref as i, shallowRef as U, watch as g, getCurrentScope as j, onScopeDispose as k, shallowReadonly as a } from "vue";
|
4
|
+
import { arrow as q } from "./index212.js";
|
5
|
+
import { detectOverflow as T, flip as W, offset as X, shift as Y } from "./index212.js";
|
6
|
+
function h(t) {
|
7
|
+
var l;
|
8
|
+
return (l = t == null ? void 0 : t.$el) != null ? l : t;
|
9
|
+
}
|
10
|
+
function H(t) {
|
11
|
+
return {
|
12
|
+
name: "arrow",
|
13
|
+
options: t,
|
14
|
+
fn(l) {
|
15
|
+
const n = h(o(t.element));
|
16
|
+
return n == null ? {} : q({
|
17
|
+
element: n,
|
18
|
+
padding: t.padding
|
19
|
+
}).fn(l);
|
20
|
+
}
|
21
|
+
};
|
22
|
+
}
|
23
|
+
function C(t) {
|
24
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
25
|
+
}
|
26
|
+
function S(t, l) {
|
27
|
+
const n = C(t);
|
28
|
+
return Math.round(l * n) / n;
|
29
|
+
}
|
30
|
+
function I(t, l, n) {
|
31
|
+
n === void 0 && (n = {});
|
32
|
+
const x = n.whileElementsMounted, D = u(() => {
|
33
|
+
var e;
|
34
|
+
return (e = o(n.open)) != null ? e : !0;
|
35
|
+
}), O = u(() => o(n.middleware)), v = u(() => {
|
36
|
+
var e;
|
37
|
+
return (e = o(n.placement)) != null ? e : "bottom";
|
38
|
+
}), m = u(() => {
|
39
|
+
var e;
|
40
|
+
return (e = o(n.strategy)) != null ? e : "absolute";
|
41
|
+
}), V = u(() => {
|
42
|
+
var e;
|
43
|
+
return (e = o(n.transform)) != null ? e : !0;
|
44
|
+
}), f = u(() => h(t.value)), r = u(() => h(l.value)), p = i(0), w = i(0), c = i(m.value), E = i(v.value), P = U({}), y = i(!1), $ = u(() => {
|
45
|
+
const e = {
|
46
|
+
position: c.value,
|
47
|
+
left: "0",
|
48
|
+
top: "0"
|
49
|
+
};
|
50
|
+
if (!r.value)
|
51
|
+
return e;
|
52
|
+
const _ = S(r.value, p.value), M = S(r.value, w.value);
|
53
|
+
return V.value ? {
|
54
|
+
...e,
|
55
|
+
transform: "translate(" + _ + "px, " + M + "px)",
|
56
|
+
...C(r.value) >= 1.5 && {
|
57
|
+
willChange: "transform"
|
58
|
+
}
|
59
|
+
} : {
|
60
|
+
position: c.value,
|
61
|
+
left: _ + "px",
|
62
|
+
top: M + "px"
|
63
|
+
};
|
64
|
+
});
|
65
|
+
let s;
|
66
|
+
function d() {
|
67
|
+
f.value == null || r.value == null || F(f.value, r.value, {
|
68
|
+
middleware: O.value,
|
69
|
+
placement: v.value,
|
70
|
+
strategy: m.value
|
71
|
+
}).then((e) => {
|
72
|
+
p.value = e.x, w.value = e.y, c.value = e.strategy, E.value = e.placement, P.value = e.middlewareData, y.value = !0;
|
73
|
+
});
|
10
74
|
}
|
11
|
-
|
12
|
-
|
75
|
+
function R() {
|
76
|
+
typeof s == "function" && (s(), s = void 0);
|
77
|
+
}
|
78
|
+
function b() {
|
79
|
+
if (R(), x === void 0) {
|
80
|
+
d();
|
81
|
+
return;
|
82
|
+
}
|
83
|
+
if (f.value != null && r.value != null) {
|
84
|
+
s = x(f.value, r.value, d);
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
function B() {
|
89
|
+
D.value || (y.value = !1);
|
90
|
+
}
|
91
|
+
return g([O, v, m], d, {
|
92
|
+
flush: "sync"
|
93
|
+
}), g([f, r], b, {
|
94
|
+
flush: "sync"
|
95
|
+
}), g(D, B, {
|
96
|
+
flush: "sync"
|
97
|
+
}), j() && k(R), {
|
98
|
+
x: a(p),
|
99
|
+
y: a(w),
|
100
|
+
strategy: a(c),
|
101
|
+
placement: a(E),
|
102
|
+
middlewareData: a(P),
|
103
|
+
isPositioned: a(y),
|
104
|
+
floatingStyles: $,
|
105
|
+
update: d
|
106
|
+
};
|
107
|
+
}
|
13
108
|
export {
|
14
|
-
|
109
|
+
H as arrow,
|
110
|
+
L as autoUpdate,
|
111
|
+
F as computePosition,
|
112
|
+
T as detectOverflow,
|
113
|
+
W as flip,
|
114
|
+
X as offset,
|
115
|
+
N as platform,
|
116
|
+
Y as shift,
|
117
|
+
I as useFloating
|
15
118
|
};
|
16
119
|
//# sourceMappingURL=index224.js.map
|
package/dist/index224.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index224.js","sources":["../
|
1
|
+
{"version":3,"file":"index224.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.esm.js"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction unwrapElement(element) {\n var _$el;\n return (_$el = element == null ? void 0 : element.$el) != null ? _$el : element;\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(unref(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _unref;\n return (_unref = unref(options.open)) != null ? _unref : true;\n });\n const middlewareOption = computed(() => unref(options.middleware));\n const placementOption = computed(() => {\n var _unref2;\n return (_unref2 = unref(options.placement)) != null ? _unref2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _unref3;\n return (_unref3 = unref(options.strategy)) != null ? _unref3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _unref4;\n return (_unref4 = unref(options.transform)) != null ? _unref4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["unwrapElement","element","_$el","arrow","options","args","unref","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_unref","middlewareOption","placementOption","_unref2","strategyOption","_unref3","transformOption","_unref4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index225.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./
|
1
|
+
import { getDefaultExportFromCjs as F, commonjsGlobal as g } from "./index231.js";
|
2
2
|
var M = "Expected a function", S = 0 / 0, N = "[object Symbol]", W = /^\s+|\s+$/g, A = /^[-+]0x[0-9a-f]+$/i, B = /^0b[01]+$/i, R = /^0o[0-7]+$/i, _ = parseInt, D = typeof g == "object" && g && g.Object === Object && g, G = typeof self == "object" && self && self.Object === Object && self, P = D || G || Function("return this")(), H = Object.prototype, U = H.toString, X = Math.max, q = Math.min, T = function() {
|
3
3
|
return P.Date.now();
|
4
4
|
};
|
package/dist/index226.js
CHANGED
@@ -1,438 +1,5 @@
|
|
1
|
-
|
2
|
-
/*!
|
3
|
-
* focus-trap 7.5.4
|
4
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
5
|
-
*/
|
6
|
-
function z(u, a) {
|
7
|
-
var o = Object.keys(u);
|
8
|
-
if (Object.getOwnPropertySymbols) {
|
9
|
-
var i = Object.getOwnPropertySymbols(u);
|
10
|
-
a && (i = i.filter(function(m) {
|
11
|
-
return Object.getOwnPropertyDescriptor(u, m).enumerable;
|
12
|
-
})), o.push.apply(o, i);
|
13
|
-
}
|
14
|
-
return o;
|
15
|
-
}
|
16
|
-
function J(u) {
|
17
|
-
for (var a = 1; a < arguments.length; a++) {
|
18
|
-
var o = arguments[a] != null ? arguments[a] : {};
|
19
|
-
a % 2 ? z(Object(o), !0).forEach(function(i) {
|
20
|
-
ne(u, i, o[i]);
|
21
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(o)) : z(Object(o)).forEach(function(i) {
|
22
|
-
Object.defineProperty(u, i, Object.getOwnPropertyDescriptor(o, i));
|
23
|
-
});
|
24
|
-
}
|
25
|
-
return u;
|
26
|
-
}
|
27
|
-
function ne(u, a, o) {
|
28
|
-
return a = ie(a), a in u ? Object.defineProperty(u, a, {
|
29
|
-
value: o,
|
30
|
-
enumerable: !0,
|
31
|
-
configurable: !0,
|
32
|
-
writable: !0
|
33
|
-
}) : u[a] = o, u;
|
34
|
-
}
|
35
|
-
function re(u, a) {
|
36
|
-
if (typeof u != "object" || u === null)
|
37
|
-
return u;
|
38
|
-
var o = u[Symbol.toPrimitive];
|
39
|
-
if (o !== void 0) {
|
40
|
-
var i = o.call(u, a || "default");
|
41
|
-
if (typeof i != "object")
|
42
|
-
return i;
|
43
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
44
|
-
}
|
45
|
-
return (a === "string" ? String : Number)(u);
|
46
|
-
}
|
47
|
-
function ie(u) {
|
48
|
-
var a = re(u, "string");
|
49
|
-
return typeof a == "symbol" ? a : String(a);
|
50
|
-
}
|
51
|
-
var Q = {
|
52
|
-
activateTrap: function(a, o) {
|
53
|
-
if (a.length > 0) {
|
54
|
-
var i = a[a.length - 1];
|
55
|
-
i !== o && i.pause();
|
56
|
-
}
|
57
|
-
var m = a.indexOf(o);
|
58
|
-
m === -1 || a.splice(m, 1), a.push(o);
|
59
|
-
},
|
60
|
-
deactivateTrap: function(a, o) {
|
61
|
-
var i = a.indexOf(o);
|
62
|
-
i !== -1 && a.splice(i, 1), a.length > 0 && a[a.length - 1].unpause();
|
63
|
-
}
|
64
|
-
}, oe = function(a) {
|
65
|
-
return a.tagName && a.tagName.toLowerCase() === "input" && typeof a.select == "function";
|
66
|
-
}, ue = function(a) {
|
67
|
-
return (a == null ? void 0 : a.key) === "Escape" || (a == null ? void 0 : a.key) === "Esc" || (a == null ? void 0 : a.keyCode) === 27;
|
68
|
-
}, L = function(a) {
|
69
|
-
return (a == null ? void 0 : a.key) === "Tab" || (a == null ? void 0 : a.keyCode) === 9;
|
70
|
-
}, se = function(a) {
|
71
|
-
return L(a) && !a.shiftKey;
|
72
|
-
}, ce = function(a) {
|
73
|
-
return L(a) && a.shiftKey;
|
74
|
-
}, W = function(a) {
|
75
|
-
return setTimeout(a, 0);
|
76
|
-
}, X = function(a, o) {
|
77
|
-
var i = -1;
|
78
|
-
return a.every(function(m, s) {
|
79
|
-
return o(m) ? (i = s, !1) : !0;
|
80
|
-
}), i;
|
81
|
-
}, B = function(a) {
|
82
|
-
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
|
83
|
-
i[m - 1] = arguments[m];
|
84
|
-
return typeof a == "function" ? a.apply(void 0, i) : a;
|
85
|
-
}, C = function(a) {
|
86
|
-
return a.target.shadowRoot && typeof a.composedPath == "function" ? a.composedPath()[0] : a.target;
|
87
|
-
}, le = [], de = function(a, o) {
|
88
|
-
var i = (o == null ? void 0 : o.document) || document, m = (o == null ? void 0 : o.trapStack) || le, s = J({
|
89
|
-
returnFocusOnDeactivate: !0,
|
90
|
-
escapeDeactivates: !0,
|
91
|
-
delayInitialFocus: !0,
|
92
|
-
isKeyForward: se,
|
93
|
-
isKeyBackward: ce
|
94
|
-
}, o), n = {
|
95
|
-
// containers given to createFocusTrap()
|
96
|
-
// @type {Array<HTMLElement>}
|
97
|
-
containers: [],
|
98
|
-
// list of objects identifying tabbable nodes in `containers` in the trap
|
99
|
-
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
100
|
-
// is active, but the trap should never get to a state where there isn't at least one group
|
101
|
-
// with at least one tabbable node in it (that would lead to an error condition that would
|
102
|
-
// result in an error being thrown)
|
103
|
-
// @type {Array<{
|
104
|
-
// container: HTMLElement,
|
105
|
-
// tabbableNodes: Array<HTMLElement>, // empty if none
|
106
|
-
// focusableNodes: Array<HTMLElement>, // empty if none
|
107
|
-
// posTabIndexesFound: boolean,
|
108
|
-
// firstTabbableNode: HTMLElement|undefined,
|
109
|
-
// lastTabbableNode: HTMLElement|undefined,
|
110
|
-
// firstDomTabbableNode: HTMLElement|undefined,
|
111
|
-
// lastDomTabbableNode: HTMLElement|undefined,
|
112
|
-
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
113
|
-
// }>}
|
114
|
-
containerGroups: [],
|
115
|
-
// same order/length as `containers` list
|
116
|
-
// references to objects in `containerGroups`, but only those that actually have
|
117
|
-
// tabbable nodes in them
|
118
|
-
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
119
|
-
// the same length
|
120
|
-
tabbableGroups: [],
|
121
|
-
nodeFocusedBeforeActivation: null,
|
122
|
-
mostRecentlyFocusedNode: null,
|
123
|
-
active: !1,
|
124
|
-
paused: !1,
|
125
|
-
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
126
|
-
// has been delayed during activation
|
127
|
-
delayInitialFocusTimer: void 0,
|
128
|
-
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
129
|
-
recentNavEvent: void 0
|
130
|
-
}, g, h = function(t, e, r) {
|
131
|
-
return t && t[e] !== void 0 ? t[e] : s[r || e];
|
132
|
-
}, F = function(t, e) {
|
133
|
-
var r = typeof (e == null ? void 0 : e.composedPath) == "function" ? e.composedPath() : void 0;
|
134
|
-
return n.containerGroups.findIndex(function(c) {
|
135
|
-
var l = c.container, d = c.tabbableNodes;
|
136
|
-
return l.contains(t) || // fall back to explicit tabbable search which will take into consideration any
|
137
|
-
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
138
|
-
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
139
|
-
// look inside web components even if open)
|
140
|
-
(r == null ? void 0 : r.includes(l)) || d.find(function(v) {
|
141
|
-
return v === t;
|
142
|
-
});
|
143
|
-
});
|
144
|
-
}, E = function(t) {
|
145
|
-
var e = s[t];
|
146
|
-
if (typeof e == "function") {
|
147
|
-
for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
148
|
-
c[l - 1] = arguments[l];
|
149
|
-
e = e.apply(void 0, c);
|
150
|
-
}
|
151
|
-
if (e === !0 && (e = void 0), !e) {
|
152
|
-
if (e === void 0 || e === !1)
|
153
|
-
return e;
|
154
|
-
throw new Error("`".concat(t, "` was specified but was not a node, or did not return a node"));
|
155
|
-
}
|
156
|
-
var d = e;
|
157
|
-
if (typeof e == "string" && (d = i.querySelector(e), !d))
|
158
|
-
throw new Error("`".concat(t, "` as selector refers to no known node"));
|
159
|
-
return d;
|
160
|
-
}, P = function() {
|
161
|
-
var t = E("initialFocus");
|
162
|
-
if (t === !1)
|
163
|
-
return !1;
|
164
|
-
if (t === void 0 || !G(t, s.tabbableOptions))
|
165
|
-
if (F(i.activeElement) >= 0)
|
166
|
-
t = i.activeElement;
|
167
|
-
else {
|
168
|
-
var e = n.tabbableGroups[0], r = e && e.firstTabbableNode;
|
169
|
-
t = r || E("fallbackFocus");
|
170
|
-
}
|
171
|
-
if (!t)
|
172
|
-
throw new Error("Your focus-trap needs to have at least one focusable element");
|
173
|
-
return t;
|
174
|
-
}, D = function() {
|
175
|
-
if (n.containerGroups = n.containers.map(function(t) {
|
176
|
-
var e = te(t, s.tabbableOptions), r = ae(t, s.tabbableOptions), c = e.length > 0 ? e[0] : void 0, l = e.length > 0 ? e[e.length - 1] : void 0, d = r.find(function(b) {
|
177
|
-
return T(b);
|
178
|
-
}), v = r.slice().reverse().find(function(b) {
|
179
|
-
return T(b);
|
180
|
-
}), p = !!e.find(function(b) {
|
181
|
-
return K(b) > 0;
|
182
|
-
});
|
183
|
-
return {
|
184
|
-
container: t,
|
185
|
-
tabbableNodes: e,
|
186
|
-
focusableNodes: r,
|
187
|
-
/** True if at least one node with positive `tabindex` was found in this container. */
|
188
|
-
posTabIndexesFound: p,
|
189
|
-
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
190
|
-
firstTabbableNode: c,
|
191
|
-
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
192
|
-
lastTabbableNode: l,
|
193
|
-
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
194
|
-
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
195
|
-
// because that API doesn't work with Shadow DOM as well as it should (@see
|
196
|
-
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
197
|
-
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
198
|
-
// "close enough most of the time" alternative for positive tabindexes which should generally
|
199
|
-
// be avoided anyway...
|
200
|
-
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
201
|
-
firstDomTabbableNode: d,
|
202
|
-
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
203
|
-
lastDomTabbableNode: v,
|
204
|
-
/**
|
205
|
-
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
206
|
-
* in this container, if any.
|
207
|
-
* @param {HTMLElement} node
|
208
|
-
* @param {boolean} [forward] True if going in forward tab order; false if going
|
209
|
-
* in reverse.
|
210
|
-
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
211
|
-
*/
|
212
|
-
nextTabbableNode: function(N) {
|
213
|
-
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = e.indexOf(N);
|
214
|
-
return y < 0 ? O ? r.slice(r.indexOf(N) + 1).find(function(R) {
|
215
|
-
return T(R);
|
216
|
-
}) : r.slice(0, r.indexOf(N)).reverse().find(function(R) {
|
217
|
-
return T(R);
|
218
|
-
}) : e[y + (O ? 1 : -1)];
|
219
|
-
}
|
220
|
-
};
|
221
|
-
}), n.tabbableGroups = n.containerGroups.filter(function(t) {
|
222
|
-
return t.tabbableNodes.length > 0;
|
223
|
-
}), n.tabbableGroups.length <= 0 && !E("fallbackFocus"))
|
224
|
-
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
225
|
-
if (n.containerGroups.find(function(t) {
|
226
|
-
return t.posTabIndexesFound;
|
227
|
-
}) && n.containerGroups.length > 1)
|
228
|
-
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.");
|
229
|
-
}, Z = function f(t) {
|
230
|
-
var e = t.activeElement;
|
231
|
-
if (e)
|
232
|
-
return e.shadowRoot && e.shadowRoot.activeElement !== null ? f(e.shadowRoot) : e;
|
233
|
-
}, w = function f(t) {
|
234
|
-
if (t !== !1 && t !== Z(document)) {
|
235
|
-
if (!t || !t.focus) {
|
236
|
-
f(P());
|
237
|
-
return;
|
238
|
-
}
|
239
|
-
t.focus({
|
240
|
-
preventScroll: !!s.preventScroll
|
241
|
-
}), n.mostRecentlyFocusedNode = t, oe(t) && t.select();
|
242
|
-
}
|
243
|
-
}, S = function(t) {
|
244
|
-
var e = E("setReturnFocus", t);
|
245
|
-
return e || (e === !1 ? !1 : t);
|
246
|
-
}, U = function(t) {
|
247
|
-
var e = t.target, r = t.event, c = t.isBackward, l = c === void 0 ? !1 : c;
|
248
|
-
e = e || C(r), D();
|
249
|
-
var d = null;
|
250
|
-
if (n.tabbableGroups.length > 0) {
|
251
|
-
var v = F(e, r), p = v >= 0 ? n.containerGroups[v] : void 0;
|
252
|
-
if (v < 0)
|
253
|
-
l ? d = n.tabbableGroups[n.tabbableGroups.length - 1].lastTabbableNode : d = n.tabbableGroups[0].firstTabbableNode;
|
254
|
-
else if (l) {
|
255
|
-
var b = X(n.tabbableGroups, function(I) {
|
256
|
-
var x = I.firstTabbableNode;
|
257
|
-
return e === x;
|
258
|
-
});
|
259
|
-
if (b < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e, !1)) && (b = v), b >= 0) {
|
260
|
-
var N = b === 0 ? n.tabbableGroups.length - 1 : b - 1, O = n.tabbableGroups[N];
|
261
|
-
d = K(e) >= 0 ? O.lastTabbableNode : O.lastDomTabbableNode;
|
262
|
-
} else
|
263
|
-
L(r) || (d = p.nextTabbableNode(e, !1));
|
264
|
-
} else {
|
265
|
-
var y = X(n.tabbableGroups, function(I) {
|
266
|
-
var x = I.lastTabbableNode;
|
267
|
-
return e === x;
|
268
|
-
});
|
269
|
-
if (y < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e)) && (y = v), y >= 0) {
|
270
|
-
var R = y === n.tabbableGroups.length - 1 ? 0 : y + 1, $ = n.tabbableGroups[R];
|
271
|
-
d = K(e) >= 0 ? $.firstTabbableNode : $.firstDomTabbableNode;
|
272
|
-
} else
|
273
|
-
L(r) || (d = p.nextTabbableNode(e));
|
274
|
-
}
|
275
|
-
} else
|
276
|
-
d = E("fallbackFocus");
|
277
|
-
return d;
|
278
|
-
}, A = function(t) {
|
279
|
-
var e = C(t);
|
280
|
-
if (!(F(e, t) >= 0)) {
|
281
|
-
if (B(s.clickOutsideDeactivates, t)) {
|
282
|
-
g.deactivate({
|
283
|
-
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
284
|
-
// which will result in the outside click setting focus to the node
|
285
|
-
// that was clicked (and if not focusable, to "nothing"); by setting
|
286
|
-
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
287
|
-
// on activation (or the configured `setReturnFocus` node), whether the
|
288
|
-
// outside click was on a focusable node or not
|
289
|
-
returnFocus: s.returnFocusOnDeactivate
|
290
|
-
});
|
291
|
-
return;
|
292
|
-
}
|
293
|
-
B(s.allowOutsideClick, t) || t.preventDefault();
|
294
|
-
}
|
295
|
-
}, q = function(t) {
|
296
|
-
var e = C(t), r = F(e, t) >= 0;
|
297
|
-
if (r || e instanceof Document)
|
298
|
-
r && (n.mostRecentlyFocusedNode = e);
|
299
|
-
else {
|
300
|
-
t.stopImmediatePropagation();
|
301
|
-
var c, l = !0;
|
302
|
-
if (n.mostRecentlyFocusedNode)
|
303
|
-
if (K(n.mostRecentlyFocusedNode) > 0) {
|
304
|
-
var d = F(n.mostRecentlyFocusedNode), v = n.containerGroups[d].tabbableNodes;
|
305
|
-
if (v.length > 0) {
|
306
|
-
var p = v.findIndex(function(b) {
|
307
|
-
return b === n.mostRecentlyFocusedNode;
|
308
|
-
});
|
309
|
-
p >= 0 && (s.isKeyForward(n.recentNavEvent) ? p + 1 < v.length && (c = v[p + 1], l = !1) : p - 1 >= 0 && (c = v[p - 1], l = !1));
|
310
|
-
}
|
311
|
-
} else
|
312
|
-
n.containerGroups.some(function(b) {
|
313
|
-
return b.tabbableNodes.some(function(N) {
|
314
|
-
return K(N) > 0;
|
315
|
-
});
|
316
|
-
}) || (l = !1);
|
317
|
-
else
|
318
|
-
l = !1;
|
319
|
-
l && (c = U({
|
320
|
-
// move FROM the MRU node, not event-related node (which will be the node that is
|
321
|
-
// outside the trap causing the focus escape we're trying to fix)
|
322
|
-
target: n.mostRecentlyFocusedNode,
|
323
|
-
isBackward: s.isKeyBackward(n.recentNavEvent)
|
324
|
-
})), w(c || n.mostRecentlyFocusedNode || P());
|
325
|
-
}
|
326
|
-
n.recentNavEvent = void 0;
|
327
|
-
}, _ = function(t) {
|
328
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
329
|
-
n.recentNavEvent = t;
|
330
|
-
var r = U({
|
331
|
-
event: t,
|
332
|
-
isBackward: e
|
333
|
-
});
|
334
|
-
r && (L(t) && t.preventDefault(), w(r));
|
335
|
-
}, H = function(t) {
|
336
|
-
if (ue(t) && B(s.escapeDeactivates, t) !== !1) {
|
337
|
-
t.preventDefault(), g.deactivate();
|
338
|
-
return;
|
339
|
-
}
|
340
|
-
(s.isKeyForward(t) || s.isKeyBackward(t)) && _(t, s.isKeyBackward(t));
|
341
|
-
}, M = function(t) {
|
342
|
-
var e = C(t);
|
343
|
-
F(e, t) >= 0 || B(s.clickOutsideDeactivates, t) || B(s.allowOutsideClick, t) || (t.preventDefault(), t.stopImmediatePropagation());
|
344
|
-
}, Y = function() {
|
345
|
-
if (n.active)
|
346
|
-
return Q.activateTrap(m, g), n.delayInitialFocusTimer = s.delayInitialFocus ? W(function() {
|
347
|
-
w(P());
|
348
|
-
}) : w(P()), i.addEventListener("focusin", q, !0), i.addEventListener("mousedown", A, {
|
349
|
-
capture: !0,
|
350
|
-
passive: !1
|
351
|
-
}), i.addEventListener("touchstart", A, {
|
352
|
-
capture: !0,
|
353
|
-
passive: !1
|
354
|
-
}), i.addEventListener("click", M, {
|
355
|
-
capture: !0,
|
356
|
-
passive: !1
|
357
|
-
}), i.addEventListener("keydown", H, {
|
358
|
-
capture: !0,
|
359
|
-
passive: !1
|
360
|
-
}), g;
|
361
|
-
}, V = function() {
|
362
|
-
if (n.active)
|
363
|
-
return i.removeEventListener("focusin", q, !0), i.removeEventListener("mousedown", A, !0), i.removeEventListener("touchstart", A, !0), i.removeEventListener("click", M, !0), i.removeEventListener("keydown", H, !0), g;
|
364
|
-
}, ee = function(t) {
|
365
|
-
var e = t.some(function(r) {
|
366
|
-
var c = Array.from(r.removedNodes);
|
367
|
-
return c.some(function(l) {
|
368
|
-
return l === n.mostRecentlyFocusedNode;
|
369
|
-
});
|
370
|
-
});
|
371
|
-
e && w(P());
|
372
|
-
}, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(ee) : void 0, k = function() {
|
373
|
-
j && (j.disconnect(), n.active && !n.paused && n.containers.map(function(t) {
|
374
|
-
j.observe(t, {
|
375
|
-
subtree: !0,
|
376
|
-
childList: !0
|
377
|
-
});
|
378
|
-
}));
|
379
|
-
};
|
380
|
-
return g = {
|
381
|
-
get active() {
|
382
|
-
return n.active;
|
383
|
-
},
|
384
|
-
get paused() {
|
385
|
-
return n.paused;
|
386
|
-
},
|
387
|
-
activate: function(t) {
|
388
|
-
if (n.active)
|
389
|
-
return this;
|
390
|
-
var e = h(t, "onActivate"), r = h(t, "onPostActivate"), c = h(t, "checkCanFocusTrap");
|
391
|
-
c || D(), n.active = !0, n.paused = !1, n.nodeFocusedBeforeActivation = i.activeElement, e == null || e();
|
392
|
-
var l = function() {
|
393
|
-
c && D(), Y(), k(), r == null || r();
|
394
|
-
};
|
395
|
-
return c ? (c(n.containers.concat()).then(l, l), this) : (l(), this);
|
396
|
-
},
|
397
|
-
deactivate: function(t) {
|
398
|
-
if (!n.active)
|
399
|
-
return this;
|
400
|
-
var e = J({
|
401
|
-
onDeactivate: s.onDeactivate,
|
402
|
-
onPostDeactivate: s.onPostDeactivate,
|
403
|
-
checkCanReturnFocus: s.checkCanReturnFocus
|
404
|
-
}, t);
|
405
|
-
clearTimeout(n.delayInitialFocusTimer), n.delayInitialFocusTimer = void 0, V(), n.active = !1, n.paused = !1, k(), Q.deactivateTrap(m, g);
|
406
|
-
var r = h(e, "onDeactivate"), c = h(e, "onPostDeactivate"), l = h(e, "checkCanReturnFocus"), d = h(e, "returnFocus", "returnFocusOnDeactivate");
|
407
|
-
r == null || r();
|
408
|
-
var v = function() {
|
409
|
-
W(function() {
|
410
|
-
d && w(S(n.nodeFocusedBeforeActivation)), c == null || c();
|
411
|
-
});
|
412
|
-
};
|
413
|
-
return d && l ? (l(S(n.nodeFocusedBeforeActivation)).then(v, v), this) : (v(), this);
|
414
|
-
},
|
415
|
-
pause: function(t) {
|
416
|
-
if (n.paused || !n.active)
|
417
|
-
return this;
|
418
|
-
var e = h(t, "onPause"), r = h(t, "onPostPause");
|
419
|
-
return n.paused = !0, e == null || e(), V(), k(), r == null || r(), this;
|
420
|
-
},
|
421
|
-
unpause: function(t) {
|
422
|
-
if (!n.paused || !n.active)
|
423
|
-
return this;
|
424
|
-
var e = h(t, "onUnpause"), r = h(t, "onPostUnpause");
|
425
|
-
return n.paused = !1, e == null || e(), D(), Y(), k(), r == null || r(), this;
|
426
|
-
},
|
427
|
-
updateContainerElements: function(t) {
|
428
|
-
var e = [].concat(t).filter(Boolean);
|
429
|
-
return n.containers = e.map(function(r) {
|
430
|
-
return typeof r == "string" ? i.querySelector(r) : r;
|
431
|
-
}), n.active && D(), k(), this;
|
432
|
-
}
|
433
|
-
}, g.updateContainerElements(a), g;
|
434
|
-
};
|
1
|
+
const t = (d, o) => +d + +o;
|
435
2
|
export {
|
436
|
-
|
3
|
+
t as add
|
437
4
|
};
|
438
5
|
//# sourceMappingURL=index226.js.map
|