bitboss-ui 2.0.169 → 2.0.171

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.
Files changed (182) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +4 -4
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +6 -6
  3. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  4. package/dist/index106.js +9 -9
  5. package/dist/index111.js +1 -1
  6. package/dist/index113.js +1 -1
  7. package/dist/index121.js +11 -11
  8. package/dist/index129.js +1 -1
  9. package/dist/index13.js +1 -1
  10. package/dist/index131.js +37 -37
  11. package/dist/index15.js +8 -8
  12. package/dist/index17.js +3 -3
  13. package/dist/index19.js +8 -8
  14. package/dist/index209.js +2 -66
  15. package/dist/index21.js +16 -16
  16. package/dist/index210.js +6 -0
  17. package/dist/index211.js +2 -13
  18. package/dist/index212.js +18 -41
  19. package/dist/index213.js +128 -6
  20. package/dist/index214.js +106 -7
  21. package/dist/index216.js +99 -12
  22. package/dist/index218.js +66 -5
  23. package/dist/index220.js +13 -5
  24. package/dist/index221.js +6 -5
  25. package/dist/index222.js +15 -5
  26. package/dist/index223.js +29 -2
  27. package/dist/index224.js +16 -2
  28. package/dist/index225.js +11 -19
  29. package/dist/index226.js +50 -93
  30. package/dist/index227.js +19 -0
  31. package/dist/index228.js +15 -2
  32. package/dist/index229.js +3 -9
  33. package/dist/index23.js +17 -17
  34. package/dist/index230.js +12 -34
  35. package/dist/index231.js +13 -4
  36. package/dist/index232.js +2 -200
  37. package/dist/index233.js +230 -0
  38. package/dist/index234.js +368 -2
  39. package/dist/index235.js +2 -2
  40. package/dist/index236.js +5 -4
  41. package/dist/index237.js +5 -2
  42. package/dist/index238.js +5 -2
  43. package/dist/index239.js +5 -3
  44. package/dist/index240.js +5 -5
  45. package/dist/index241.js +4 -4
  46. package/dist/index242.js +5 -8
  47. package/dist/index243.js +6 -248
  48. package/dist/index244.js +240 -42
  49. package/dist/index245.js +43 -35
  50. package/dist/index246.js +44 -5
  51. package/dist/index247.js +5 -60
  52. package/dist/index248.js +54 -80
  53. package/dist/index249.js +7 -0
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +2 -29
  56. package/dist/index251.js +40 -15
  57. package/dist/index252.js +19 -16
  58. package/dist/index253.js +93 -50
  59. package/dist/index255.js +9 -12
  60. package/dist/index256.js +4 -3
  61. package/dist/index257.js +193 -99
  62. package/dist/index259.js +7 -100
  63. package/dist/index260.js +88 -0
  64. package/dist/index262.js +32 -126
  65. package/dist/index263.js +2 -12
  66. package/dist/index264.js +2 -228
  67. package/dist/index265.js +3 -368
  68. package/dist/index266.js +177 -3
  69. package/dist/index269.js +6 -177
  70. package/dist/index27.js +1 -1
  71. package/dist/index270.js +15 -8
  72. package/dist/index272.js +2 -2
  73. package/dist/index274.js +3 -23
  74. package/dist/index275.js +9 -6
  75. package/dist/index276.js +23 -16
  76. package/dist/index277.js +2 -9
  77. package/dist/index278.js +9 -8
  78. package/dist/index279.js +8 -2
  79. package/dist/index281.js +1 -1
  80. package/dist/index282.js +1 -1
  81. package/dist/index283.js +1 -1
  82. package/dist/index284.js +4 -3
  83. package/dist/index285.js +6 -0
  84. package/dist/index286.js +129 -7
  85. package/dist/index287.js +3 -471
  86. package/dist/index288.js +3 -2
  87. package/dist/index289.js +3 -7
  88. package/dist/index29.js +2 -2
  89. package/dist/index291.js +7 -4
  90. package/dist/index292.js +1 -1
  91. package/dist/index293.js +2 -280
  92. package/dist/index294.js +17 -2
  93. package/dist/index295.js +26 -123
  94. package/dist/index296.js +7 -2
  95. package/dist/index297.js +10 -15
  96. package/dist/index298.js +280 -2
  97. package/dist/index299.js +2 -16
  98. package/dist/index300.js +16 -2
  99. package/dist/index301.js +2 -19
  100. package/dist/index302.js +16 -2
  101. package/dist/index303.js +2 -15
  102. package/dist/index304.js +19 -2
  103. package/dist/index305.js +2 -3
  104. package/dist/index306.js +14 -199
  105. package/dist/index307.js +2 -3
  106. package/dist/index308.js +19 -4
  107. package/dist/index309.js +2 -28
  108. package/dist/index31.js +2 -2
  109. package/dist/index310.js +26 -5
  110. package/dist/index311.js +2 -3
  111. package/dist/index312.js +2 -17
  112. package/dist/index313.js +2 -5
  113. package/dist/index314.js +2 -19
  114. package/dist/index315.js +2 -2
  115. package/dist/index316.js +22 -27
  116. package/dist/index318.js +125 -2
  117. package/dist/index319.js +2 -2
  118. package/dist/index320.js +471 -2
  119. package/dist/index321.js +3 -2
  120. package/dist/index322.js +3 -22
  121. package/dist/index323.js +384 -0
  122. package/dist/index324.js +126 -3
  123. package/dist/index325.js +2 -3
  124. package/dist/index326.js +3 -129
  125. package/dist/index327.js +6 -2
  126. package/dist/index328.js +191 -373
  127. package/dist/index329.js +5 -126
  128. package/dist/index33.js +8 -8
  129. package/dist/index330.js +701 -5
  130. package/dist/index331.js +354 -3
  131. package/dist/index332.js +58 -701
  132. package/dist/index333.js +3 -354
  133. package/dist/index334.js +5 -58
  134. package/dist/index335.js +47 -2
  135. package/dist/index336.js +2 -7
  136. package/dist/index337.js +32 -227
  137. package/dist/index338.js +28 -5
  138. package/dist/index340.js +58 -6
  139. package/dist/index341.js +57 -7
  140. package/dist/index342.js +6 -92
  141. package/dist/index343.js +7 -32
  142. package/dist/index344.js +6 -28
  143. package/dist/index345.js +10 -0
  144. package/dist/index346.js +5 -47
  145. package/dist/index349.js +227 -57
  146. package/dist/index35.js +4 -4
  147. package/dist/index350.js +92 -57
  148. package/dist/index351.js +484 -0
  149. package/dist/index353.js +3 -482
  150. package/dist/index354.js +45 -479
  151. package/dist/index355.js +481 -2
  152. package/dist/index356.js +2 -47
  153. package/dist/index37.js +22 -22
  154. package/dist/index39.js +4 -4
  155. package/dist/index41.js +2 -2
  156. package/dist/index43.js +8 -8
  157. package/dist/index45.js +8 -8
  158. package/dist/index47.js +2 -2
  159. package/dist/index49.js +3 -3
  160. package/dist/index53.js +1 -1
  161. package/dist/index55.js +1 -1
  162. package/dist/index57.js +2 -2
  163. package/dist/index61.js +1 -1
  164. package/dist/index67.js +1 -1
  165. package/dist/index79.js +56 -56
  166. package/dist/index81.js +1 -1
  167. package/dist/index83.js +2 -2
  168. package/dist/index85.js +1 -1
  169. package/dist/index87.js +1 -1
  170. package/dist/index90.js +4 -4
  171. package/dist/index92.js +2 -2
  172. package/dist/index94.js +50 -49
  173. package/package.json +1 -1
  174. package/dist/index215.js +0 -17
  175. package/dist/index217.js +0 -7
  176. package/dist/index219.js +0 -7
  177. package/dist/index254.js +0 -17
  178. package/dist/index261.js +0 -20
  179. package/dist/index290.js +0 -13
  180. package/dist/index317.js +0 -4
  181. package/dist/index339.js +0 -10
  182. package/dist/index352.js +0 -5
package/dist/index286.js CHANGED
@@ -1,9 +1,131 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function s(n) {
5
+ return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(n) {
8
+ var t;
9
+ return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function E(n) {
12
+ var t;
13
+ return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function p(n) {
16
+ return c() ? n instanceof Node || n instanceof i(n).Node : !1;
17
+ }
18
+ function m(n) {
19
+ return c() ? n instanceof Element || n instanceof i(n).Element : !1;
20
+ }
21
+ function w(n) {
22
+ return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
23
+ }
24
+ function a(n) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
26
+ }
27
+ function y(n) {
28
+ const {
29
+ overflow: t,
30
+ overflowX: e,
31
+ overflowY: o,
32
+ display: r
33
+ } = b(n);
34
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
35
+ }
36
+ function D(n) {
37
+ return ["table", "td", "th"].includes(s(n));
38
+ }
39
+ function N(n) {
40
+ return [":popover-open", ":modal"].some((t) => {
41
+ try {
42
+ return n.matches(t);
43
+ } catch {
44
+ return !1;
45
+ }
46
+ });
47
+ }
48
+ function T(n) {
49
+ const t = L(), e = m(n) ? b(n) : n;
50
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
51
+ }
52
+ function k(n) {
53
+ let t = u(n);
54
+ for (; w(t) && !g(t); ) {
55
+ if (T(t))
56
+ return t;
57
+ if (N(t))
58
+ return null;
59
+ t = u(t);
60
+ }
61
+ return null;
62
+ }
63
+ function L() {
64
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
+ }
66
+ function g(n) {
67
+ return ["html", "body", "#document"].includes(s(n));
68
+ }
69
+ function b(n) {
70
+ return i(n).getComputedStyle(n);
71
+ }
72
+ function C(n) {
73
+ return m(n) ? {
74
+ scrollLeft: n.scrollLeft,
75
+ scrollTop: n.scrollTop
76
+ } : {
77
+ scrollLeft: n.scrollX,
78
+ scrollTop: n.scrollY
79
+ };
80
+ }
81
+ function u(n) {
82
+ if (s(n) === "html")
83
+ return n;
84
+ const t = (
85
+ // Step into the shadow DOM of the parent of a slotted node.
86
+ n.assignedSlot || // DOM Element detected.
87
+ n.parentNode || // ShadowRoot detected.
88
+ a(n) && n.host || // Fallback.
89
+ E(n)
90
+ );
91
+ return a(t) ? t.host : t;
92
+ }
93
+ function h(n) {
94
+ const t = u(n);
95
+ return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
96
+ }
97
+ function d(n, t, e) {
98
+ var o;
99
+ t === void 0 && (t = []), e === void 0 && (e = !0);
100
+ const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
+ if (S) {
102
+ const f = v(l);
103
+ return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
104
+ }
105
+ return t.concat(r, d(r, [], e));
106
+ }
107
+ function v(n) {
108
+ return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
109
+ }
7
110
  export {
8
- s as default
111
+ b as getComputedStyle,
112
+ k as getContainingBlock,
113
+ E as getDocumentElement,
114
+ v as getFrameElement,
115
+ h as getNearestOverflowAncestor,
116
+ s as getNodeName,
117
+ C as getNodeScroll,
118
+ d as getOverflowAncestors,
119
+ u as getParentNode,
120
+ i as getWindow,
121
+ T as isContainingBlock,
122
+ m as isElement,
123
+ w as isHTMLElement,
124
+ g as isLastTraversableNode,
125
+ p as isNode,
126
+ y as isOverflowElement,
127
+ a as isShadowRoot,
128
+ D as isTableElement,
129
+ N as isTopLayer,
130
+ L as isWebKit
9
131
  };
package/dist/index287.js CHANGED
@@ -1,473 +1,5 @@
1
- import { tabbable as ne, focusable as ae, isTabbable as k, getTabIndex as R, isFocusable as S } from "./index306.js";
2
- /*!
3
- * focus-trap 7.6.4
4
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
5
- */
6
- function x(r, t) {
7
- (t == null || t > r.length) && (t = r.length);
8
- for (var o = 0, u = Array(t); o < t; o++) u[o] = r[o];
9
- return u;
10
- }
11
- function re(r) {
12
- if (Array.isArray(r)) return x(r);
13
- }
14
- function ie(r, t, o) {
15
- return (t = le(t)) in r ? Object.defineProperty(r, t, {
16
- value: o,
17
- enumerable: !0,
18
- configurable: !0,
19
- writable: !0
20
- }) : r[t] = o, r;
21
- }
22
- function oe(r) {
23
- if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
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(r, t) {
30
- var o = Object.keys(r);
31
- if (Object.getOwnPropertySymbols) {
32
- var u = Object.getOwnPropertySymbols(r);
33
- t && (u = u.filter(function(m) {
34
- return Object.getOwnPropertyDescriptor(r, m).enumerable;
35
- })), o.push.apply(o, u);
36
- }
37
- return o;
38
- }
39
- function X(r) {
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(r, u, o[u]);
44
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : Q(Object(o)).forEach(function(u) {
45
- Object.defineProperty(r, u, Object.getOwnPropertyDescriptor(o, u));
46
- });
47
- }
48
- return r;
49
- }
50
- function se(r) {
51
- return re(r) || oe(r) || fe(r) || ue();
52
- }
53
- function ce(r, t) {
54
- if (typeof r != "object" || !r) return r;
55
- var o = r[Symbol.toPrimitive];
56
- if (o !== void 0) {
57
- var u = o.call(r, 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)(r);
62
- }
63
- function le(r) {
64
- var t = ce(r, "string");
65
- return typeof t == "symbol" ? t : t + "";
66
- }
67
- function fe(r, t) {
68
- if (r) {
69
- if (typeof r == "string") return x(r, t);
70
- var o = {}.toString.call(r).slice(8, -1);
71
- return o === "Object" && r.constructor && (o = r.constructor.name), o === "Map" || o === "Set" ? Array.from(r) : o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? x(r, 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
- }, be = 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
- }, ve = 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: ve,
111
- isKeyBackward: pe
112
- }, o), a = {
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, n, i) {
150
- return e && e[n] !== void 0 ? e[n] : f[i || n];
151
- }, N = function(e, n) {
152
- var i = typeof (n == null ? void 0 : n.composedPath) == "function" ? n.composedPath() : void 0;
153
- return a.containerGroups.findIndex(function(c) {
154
- var l = c.container, b = 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)) || b.find(function(s) {
160
- return s === e;
161
- });
162
- });
163
- }, T = function(e) {
164
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = n.hasFallback, c = i === void 0 ? !1 : i, l = n.params, b = l === void 0 ? [] : l, s = f[e];
165
- if (typeof s == "function" && (s = s.apply(void 0, se(b))), 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 v = s;
171
- if (typeof s == "string") {
172
- try {
173
- v = 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 (!v && !c)
178
- throw new Error("`".concat(e, "` as selector refers to no known node"));
179
- }
180
- return v;
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 && !S(e, f.tabbableOptions))
188
- if (N(u.activeElement) >= 0)
189
- e = u.activeElement;
190
- else {
191
- var n = a.tabbableGroups[0], i = n && n.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 (a.containerGroups = a.containers.map(function(e) {
200
- var n = ne(e, f.tabbableOptions), i = ae(e, f.tabbableOptions), c = n.length > 0 ? n[0] : void 0, l = n.length > 0 ? n[n.length - 1] : void 0, b = i.find(function(p) {
201
- return k(p);
202
- }), s = i.slice().reverse().find(function(p) {
203
- return k(p);
204
- }), v = !!n.find(function(p) {
205
- return R(p) > 0;
206
- });
207
- return {
208
- container: e,
209
- tabbableNodes: n,
210
- focusableNodes: i,
211
- /** True if at least one node with positive `tabindex` was found in this container. */
212
- posTabIndexesFound: v,
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: b,
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 = n.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
- }) : n[w + (O ? 1 : -1)];
243
- }
244
- };
245
- }), a.tabbableGroups = a.containerGroups.filter(function(e) {
246
- return e.tabbableNodes.length > 0;
247
- }), a.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 (a.containerGroups.find(function(e) {
250
- return e.posTabIndexesFound;
251
- }) && a.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
- }, G = function(e) {
254
- var n = e.activeElement;
255
- if (n)
256
- return n.shadowRoot && n.shadowRoot.activeElement !== null ? G(n.shadowRoot) : n;
257
- }, g = function(e) {
258
- if (e !== !1 && e !== G(document)) {
259
- if (!e || !e.focus) {
260
- g(E());
261
- return;
262
- }
263
- e.focus({
264
- preventScroll: !!f.preventScroll
265
- }), a.mostRecentlyFocusedNode = e, de(e) && e.select();
266
- }
267
- }, M = function(e) {
268
- var n = T("setReturnFocus", {
269
- params: [e]
270
- });
271
- return n || (n === !1 ? !1 : e);
272
- }, $ = function(e) {
273
- var n = e.target, i = e.event, c = e.isBackward, l = c === void 0 ? !1 : c;
274
- n = n || B(i), P();
275
- var b = null;
276
- if (a.tabbableGroups.length > 0) {
277
- var s = N(n, i), v = s >= 0 ? a.containerGroups[s] : void 0;
278
- if (s < 0)
279
- l ? b = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : b = a.tabbableGroups[0].firstTabbableNode;
280
- else if (l) {
281
- var p = a.tabbableGroups.findIndex(function(I) {
282
- var _ = I.firstTabbableNode;
283
- return n === _;
284
- });
285
- if (p < 0 && (v.container === n || S(n, f.tabbableOptions) && !k(n, f.tabbableOptions) && !v.nextTabbableNode(n, !1)) && (p = s), p >= 0) {
286
- var F = p === 0 ? a.tabbableGroups.length - 1 : p - 1, O = a.tabbableGroups[F];
287
- b = R(n) >= 0 ? O.lastTabbableNode : O.lastDomTabbableNode;
288
- } else L(i) || (b = v.nextTabbableNode(n, !1));
289
- } else {
290
- var w = a.tabbableGroups.findIndex(function(I) {
291
- var _ = I.lastTabbableNode;
292
- return n === _;
293
- });
294
- if (w < 0 && (v.container === n || S(n, f.tabbableOptions) && !k(n, f.tabbableOptions) && !v.nextTabbableNode(n)) && (w = s), w >= 0) {
295
- var A = w === a.tabbableGroups.length - 1 ? 0 : w + 1, J = a.tabbableGroups[A];
296
- b = R(n) >= 0 ? J.firstTabbableNode : J.firstDomTabbableNode;
297
- } else L(i) || (b = v.nextTabbableNode(n));
298
- }
299
- } else
300
- b = T("fallbackFocus");
301
- return b;
302
- }, j = function(e) {
303
- var n = B(e);
304
- if (!(N(n, 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 n = B(e), i = N(n, e) >= 0;
321
- if (i || n instanceof Document)
322
- i && (a.mostRecentlyFocusedNode = n);
323
- else {
324
- e.stopImmediatePropagation();
325
- var c, l = !0;
326
- if (a.mostRecentlyFocusedNode)
327
- if (R(a.mostRecentlyFocusedNode) > 0) {
328
- var b = N(a.mostRecentlyFocusedNode), s = a.containerGroups[b].tabbableNodes;
329
- if (s.length > 0) {
330
- var v = s.findIndex(function(p) {
331
- return p === a.mostRecentlyFocusedNode;
332
- });
333
- v >= 0 && (f.isKeyForward(a.recentNavEvent) ? v + 1 < s.length && (c = s[v + 1], l = !1) : v - 1 >= 0 && (c = s[v - 1], l = !1));
334
- }
335
- } else
336
- a.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: a.mostRecentlyFocusedNode,
347
- isBackward: f.isKeyBackward(a.recentNavEvent)
348
- })), g(c || a.mostRecentlyFocusedNode || E());
349
- }
350
- a.recentNavEvent = void 0;
351
- }, ee = function(e) {
352
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
353
- a.recentNavEvent = e;
354
- var i = $({
355
- event: e,
356
- isBackward: n
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
- be(e) && K(f.escapeDeactivates, e) !== !1 && (e.preventDefault(), h.deactivate());
363
- }, V = function(e) {
364
- var n = B(e);
365
- N(n, e) >= 0 || K(f.clickOutsideDeactivates, e) || K(f.allowOutsideClick, e) || (e.preventDefault(), e.stopImmediatePropagation());
366
- }, W = function() {
367
- if (a.active)
368
- return Z.activateTrap(m, h), a.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 (a.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 n = e.some(function(i) {
388
- var c = Array.from(i.removedNodes);
389
- return c.some(function(l) {
390
- return l === a.mostRecentlyFocusedNode;
391
- });
392
- });
393
- n && g(E());
394
- }, C = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(te) : void 0, D = function() {
395
- C && (C.disconnect(), a.active && !a.paused && a.containers.map(function(e) {
396
- C.observe(e, {
397
- subtree: !0,
398
- childList: !0
399
- });
400
- }));
401
- };
402
- return h = {
403
- get active() {
404
- return a.active;
405
- },
406
- get paused() {
407
- return a.paused;
408
- },
409
- activate: function(e) {
410
- if (a.active)
411
- return this;
412
- var n = y(e, "onActivate"), i = y(e, "onPostActivate"), c = y(e, "checkCanFocusTrap");
413
- c || P(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = u.activeElement, n == null || n();
414
- var l = function() {
415
- c && P(), W(), D(), i == null || i();
416
- };
417
- return c ? (c(a.containers.concat()).then(l, l), this) : (l(), this);
418
- },
419
- deactivate: function(e) {
420
- if (!a.active)
421
- return this;
422
- var n = X({
423
- onDeactivate: f.onDeactivate,
424
- onPostDeactivate: f.onPostDeactivate,
425
- checkCanReturnFocus: f.checkCanReturnFocus
426
- }, e);
427
- clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, z(), a.active = !1, a.paused = !1, D(), Z.deactivateTrap(m, h);
428
- var i = y(n, "onDeactivate"), c = y(n, "onPostDeactivate"), l = y(n, "checkCanReturnFocus"), b = y(n, "returnFocus", "returnFocusOnDeactivate");
429
- i == null || i();
430
- var s = function() {
431
- U(function() {
432
- b && g(M(a.nodeFocusedBeforeActivation)), c == null || c();
433
- });
434
- };
435
- return b && l ? (l(M(a.nodeFocusedBeforeActivation)).then(s, s), this) : (s(), this);
436
- },
437
- pause: function(e) {
438
- return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, e)) : this;
439
- },
440
- unpause: function(e) {
441
- return a.active ? (a.manuallyPaused = !1, m[m.length - 1] !== this ? this : this._setPausedState(!1, e)) : this;
442
- },
443
- updateContainerElements: function(e) {
444
- var n = [].concat(e).filter(Boolean);
445
- return a.containers = n.map(function(i) {
446
- return typeof i == "string" ? u.querySelector(i) : i;
447
- }), a.active && P(), D(), this;
448
- }
449
- }, Object.defineProperties(h, {
450
- _isManuallyPaused: {
451
- value: function() {
452
- return a.manuallyPaused;
453
- }
454
- },
455
- _setPausedState: {
456
- value: function(e, n) {
457
- if (a.paused === e)
458
- return this;
459
- if (a.paused = e, e) {
460
- var i = y(n, "onPause"), c = y(n, "onPostPause");
461
- i == null || i(), z(), D(), c == null || c();
462
- } else {
463
- var l = y(n, "onUnpause"), b = y(n, "onPostUnpause");
464
- l == null || l(), P(), W(), D(), b == null || b();
465
- }
466
- return this;
467
- }
468
- }
469
- }), h.updateContainerElements(t), h;
470
- };
1
+ import o from "./index214.js";
2
+ /* empty css */
471
3
  export {
472
- he as createFocusTrap
4
+ o as default
473
5
  };
package/dist/index288.js CHANGED
@@ -1,4 +1,5 @@
1
- import f from "./index215.js";
1
+ import o from "./index216.js";
2
+ /* empty css */
2
3
  export {
3
- f as default
4
+ o as default
4
5
  };
package/dist/index289.js CHANGED
@@ -1,9 +1,5 @@
1
- import o from "./index349.js";
2
- import r from "./index350.js";
3
- const e = {
4
- it: o,
5
- en: r
6
- };
1
+ import o from "./index218.js";
2
+ /* empty css */
7
3
  export {
8
- e as locales
4
+ o as default
9
5
  };
package/dist/index29.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as D, computed as E, ref as h, onMounted as A, watch as x, createBlock as T, openBlock as q, normalizeClass as L, withCtx as u, createVNode as P, unref as v, createElementVNode as S, mergeProps as K, withModifiers as j, renderSlot as d } from "vue";
2
2
  import { clamp as b } from "./index207.js";
3
- import z from "./index209.js";
3
+ import z from "./index218.js";
4
4
  /* empty css */
5
- import O from "./index211.js";
5
+ import O from "./index220.js";
6
6
  import { isNotNil as V } from "./index140.js";
7
7
  const F = ["id", "aria-describedby", "aria-valuemax", "aria-valuemin", "aria-valuenow", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required"], W = /* @__PURE__ */ D({
8
8
  __name: "BaseNumberInput",
package/dist/index291.js CHANGED
@@ -1,6 +1,9 @@
1
- function e(t) {
2
- return Object.prototype.toString.call(t).slice(8, -1);
3
- }
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
4
7
  export {
5
- e as getType
8
+ s as default
6
9
  };
package/dist/index292.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index230.js";
1
+ import f from "./index222.js";
2
2
  export {
3
3
  f as default
4
4
  };