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/index328.js CHANGED
@@ -1,384 +1,202 @@
1
- import { evaluate as $, getSide as j, getSideAxis as B, getOppositePlacement as K, getExpandedPlacements as N, getOppositeAxisPlacements as Q, getAlignmentSides as U, clamp as Y, getPaddingObject as I, rectToClientRect as _, getAlignment as X, getOppositeAxis as Z, getAlignmentAxis as W, getAxisLength as q, min as z } from "./index329.js";
2
- function H(o, i, m) {
3
- let {
4
- reference: n,
5
- floating: r
6
- } = o;
7
- const e = B(i), l = W(i), s = q(l), g = j(i), x = e === "y", d = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[s] / 2 - r[s] / 2;
8
- let t;
9
- switch (g) {
10
- case "top":
11
- t = {
12
- x: d,
13
- y: n.y - r.height
14
- };
15
- break;
16
- case "bottom":
17
- t = {
18
- x: d,
19
- y: n.y + n.height
20
- };
21
- break;
22
- case "right":
23
- t = {
24
- x: n.x + n.width,
25
- y: c
26
- };
27
- break;
28
- case "left":
29
- t = {
30
- x: n.x - r.width,
31
- y: c
32
- };
33
- break;
34
- default:
35
- t = {
36
- x: n.x,
37
- y: n.y
38
- };
39
- }
40
- switch (X(i)) {
41
- case "start":
42
- t[l] -= f * (m && x ? -1 : 1);
43
- break;
44
- case "end":
45
- t[l] += f * (m && x ? -1 : 1);
46
- break;
47
- }
48
- return t;
49
- }
50
- const nt = async (o, i, m) => {
51
- const {
52
- placement: n = "bottom",
53
- strategy: r = "absolute",
54
- middleware: e = [],
55
- platform: l
56
- } = m, s = e.filter(Boolean), g = await (l.isRTL == null ? void 0 : l.isRTL(i));
57
- let x = await l.getElementRects({
58
- reference: o,
59
- floating: i,
60
- strategy: r
61
- }), {
62
- x: d,
63
- y: c
64
- } = H(x, n, g), f = n, t = {}, a = 0;
65
- for (let w = 0; w < s.length; w++) {
66
- const {
67
- name: u,
68
- fn: y
69
- } = s[w], {
70
- x: h,
71
- y: v,
72
- data: b,
73
- reset: p
74
- } = await y({
75
- x: d,
76
- y: c,
77
- initialPlacement: n,
78
- placement: f,
79
- strategy: r,
80
- middlewareData: t,
81
- rects: x,
82
- platform: l,
83
- elements: {
84
- reference: o,
85
- floating: i
86
- }
87
- });
88
- d = h ?? d, c = v ?? c, t = {
89
- ...t,
90
- [u]: {
91
- ...t[u],
92
- ...b
1
+ /*!
2
+ * tabbable 6.2.0
3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
+ */
5
+ var w = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], v = /* @__PURE__ */ w.join(","), T = typeof Element > "u", o = T ? function() {
6
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !T && Element.prototype.getRootNode ? function(i) {
7
+ var t;
8
+ return i == null || (t = i.getRootNode) === null || t === void 0 ? void 0 : t.call(i);
9
+ } : function(i) {
10
+ return i == null ? void 0 : i.ownerDocument;
11
+ }, h = function i(t, e) {
12
+ var r;
13
+ e === void 0 && (e = !0);
14
+ var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = a === "" || a === "true", n = l || e && t && i(t.parentNode);
15
+ return n;
16
+ }, A = function(t) {
17
+ var e, r = t == null || (e = t.getAttribute) === null || e === void 0 ? void 0 : e.call(t, "contenteditable");
18
+ return r === "" || r === "true";
19
+ }, I = function(t, e, r) {
20
+ if (h(t))
21
+ return [];
22
+ var a = Array.prototype.slice.apply(t.querySelectorAll(v));
23
+ return e && o.call(t, v) && a.unshift(t), a = a.filter(r), a;
24
+ }, m = function i(t, e, r) {
25
+ for (var a = [], l = Array.from(t); l.length; ) {
26
+ var n = l.shift();
27
+ if (!h(n, !1))
28
+ if (n.tagName === "SLOT") {
29
+ var u = n.assignedElements(), c = u.length ? u : n.children, s = i(c, !0, r);
30
+ r.flatten ? a.push.apply(a, s) : a.push({
31
+ scopeParent: n,
32
+ candidates: s
33
+ });
34
+ } else {
35
+ var f = o.call(n, v);
36
+ f && r.filter(n) && (e || !t.includes(n)) && a.push(n);
37
+ var d = n.shadowRoot || // check for an undisclosed shadow
38
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(n), E = !h(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
39
+ if (d && E) {
40
+ var y = i(d === !0 ? n.children : d.children, !0, r);
41
+ r.flatten ? a.push.apply(a, y) : a.push({
42
+ scopeParent: n,
43
+ candidates: y
44
+ });
45
+ } else
46
+ l.unshift.apply(l, n.children);
93
47
  }
94
- }, p && a <= 50 && (a++, typeof p == "object" && (p.placement && (f = p.placement), p.rects && (x = p.rects === !0 ? await l.getElementRects({
95
- reference: o,
96
- floating: i,
97
- strategy: r
98
- }) : p.rects), {
99
- x: d,
100
- y: c
101
- } = H(x, f, g)), w = -1);
102
48
  }
103
- return {
104
- x: d,
105
- y: c,
106
- placement: f,
107
- strategy: r,
108
- middlewareData: t
109
- };
110
- };
111
- async function G(o, i) {
112
- var m;
113
- i === void 0 && (i = {});
114
- const {
115
- x: n,
116
- y: r,
117
- platform: e,
118
- rects: l,
119
- elements: s,
120
- strategy: g
121
- } = o, {
122
- boundary: x = "clippingAncestors",
123
- rootBoundary: d = "viewport",
124
- elementContext: c = "floating",
125
- altBoundary: f = !1,
126
- padding: t = 0
127
- } = $(i, o), a = I(t), u = s[f ? c === "floating" ? "reference" : "floating" : c], y = _(await e.getClippingRect({
128
- element: (m = await (e.isElement == null ? void 0 : e.isElement(u))) == null || m ? u : u.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(s.floating)),
129
- boundary: x,
130
- rootBoundary: d,
131
- strategy: g
132
- })), h = c === "floating" ? {
133
- x: n,
134
- y: r,
135
- width: l.floating.width,
136
- height: l.floating.height
137
- } : l.reference, v = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(s.floating)), b = await (e.isElement == null ? void 0 : e.isElement(v)) ? await (e.getScale == null ? void 0 : e.getScale(v)) || {
138
- x: 1,
139
- y: 1
140
- } : {
141
- x: 1,
142
- y: 1
143
- }, p = _(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
144
- elements: s,
145
- rect: h,
146
- offsetParent: v,
147
- strategy: g
148
- }) : h);
149
- return {
150
- top: (y.top - p.top + a.top) / b.y,
151
- bottom: (p.bottom - y.bottom + a.bottom) / b.y,
152
- left: (y.left - p.left + a.left) / b.x,
153
- right: (p.right - y.right + a.right) / b.x
154
- };
155
- }
156
- const it = (o) => ({
157
- name: "arrow",
158
- options: o,
159
- async fn(i) {
160
- const {
161
- x: m,
162
- y: n,
163
- placement: r,
164
- rects: e,
165
- platform: l,
166
- elements: s,
167
- middlewareData: g
168
- } = i, {
169
- element: x,
170
- padding: d = 0
171
- } = $(o, i) || {};
172
- if (x == null)
173
- return {};
174
- const c = I(d), f = {
175
- x: m,
176
- y: n
177
- }, t = W(r), a = q(t), w = await l.getDimensions(x), u = t === "y", y = u ? "top" : "left", h = u ? "bottom" : "right", v = u ? "clientHeight" : "clientWidth", b = e.reference[a] + e.reference[t] - f[t] - e.floating[a], p = f[t] - e.reference[t], T = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(x));
178
- let S = T ? T[v] : 0;
179
- (!S || !await (l.isElement == null ? void 0 : l.isElement(T))) && (S = s.floating[v] || e.floating[a]);
180
- const V = b / 2 - p / 2, D = S / 2 - w[a] / 2 - 1, R = z(c[y], D), F = z(c[h], D), E = R, M = S - w[a] - F, A = S / 2 - w[a] / 2 + V, L = Y(E, A, M), O = !g.arrow && X(r) != null && A !== L && e.reference[a] / 2 - (A < E ? R : F) - w[a] / 2 < 0, P = O ? A < E ? A - E : A - M : 0;
181
- return {
182
- [t]: f[t] + P,
183
- data: {
184
- [t]: L,
185
- centerOffset: A - L - P,
186
- ...O && {
187
- alignmentOffset: P
188
- }
189
- },
190
- reset: O
191
- };
49
+ return a;
50
+ }, N = function(t) {
51
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
52
+ }, R = function(t) {
53
+ if (!t)
54
+ throw new Error("No node provided");
55
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || A(t)) && !N(t) ? 0 : t.tabIndex;
56
+ }, x = function(t, e) {
57
+ var r = R(t);
58
+ return r < 0 && e && !N(t) ? 0 : r;
59
+ }, O = function(t, e) {
60
+ return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
61
+ }, C = function(t) {
62
+ return t.tagName === "INPUT";
63
+ }, F = function(t) {
64
+ return C(t) && t.type === "hidden";
65
+ }, D = function(t) {
66
+ var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
67
+ return r.tagName === "SUMMARY";
68
+ });
69
+ return e;
70
+ }, k = function(t, e) {
71
+ for (var r = 0; r < t.length; r++)
72
+ if (t[r].checked && t[r].form === e)
73
+ return t[r];
74
+ }, M = function(t) {
75
+ if (!t.name)
76
+ return !0;
77
+ var e = t.form || b(t), r = function(u) {
78
+ return e.querySelectorAll('input[type="radio"][name="' + u + '"]');
79
+ }, a;
80
+ if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
81
+ a = r(window.CSS.escape(t.name));
82
+ else
83
+ try {
84
+ a = r(t.name);
85
+ } catch (n) {
86
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
87
+ }
88
+ var l = k(a, t.form);
89
+ return !l || l === t;
90
+ }, L = function(t) {
91
+ return C(t) && t.type === "radio";
92
+ }, P = function(t) {
93
+ return L(t) && !M(t);
94
+ }, B = function(t) {
95
+ var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
96
+ if (r && r !== t) {
97
+ var n, u, c;
98
+ for (l = !!((n = a) !== null && n !== void 0 && (u = n.ownerDocument) !== null && u !== void 0 && u.contains(a) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !l && a; ) {
99
+ var s, f, d;
100
+ r = b(a), a = (s = r) === null || s === void 0 ? void 0 : s.host, l = !!((f = a) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(a));
101
+ }
192
102
  }
193
- }), ot = function(o) {
194
- return o === void 0 && (o = {}), {
195
- name: "flip",
196
- options: o,
197
- async fn(i) {
198
- var m, n;
199
- const {
200
- placement: r,
201
- middlewareData: e,
202
- rects: l,
203
- initialPlacement: s,
204
- platform: g,
205
- elements: x
206
- } = i, {
207
- mainAxis: d = !0,
208
- crossAxis: c = !0,
209
- fallbackPlacements: f,
210
- fallbackStrategy: t = "bestFit",
211
- fallbackAxisSideDirection: a = "none",
212
- flipAlignment: w = !0,
213
- ...u
214
- } = $(o, i);
215
- if ((m = e.arrow) != null && m.alignmentOffset)
216
- return {};
217
- const y = j(r), h = B(s), v = j(s) === s, b = await (g.isRTL == null ? void 0 : g.isRTL(x.floating)), p = f || (v || !w ? [K(s)] : N(s)), T = a !== "none";
218
- !f && T && p.push(...Q(s, w, a, b));
219
- const S = [s, ...p], V = await G(i, u), D = [];
220
- let R = ((n = e.flip) == null ? void 0 : n.overflows) || [];
221
- if (d && D.push(V[y]), c) {
222
- const A = U(r, l, b);
223
- D.push(V[A[0]], V[A[1]]);
224
- }
225
- if (R = [...R, {
226
- placement: r,
227
- overflows: D
228
- }], !D.every((A) => A <= 0)) {
229
- var F, E;
230
- const A = (((F = e.flip) == null ? void 0 : F.index) || 0) + 1, L = S[A];
231
- if (L)
232
- return {
233
- data: {
234
- index: A,
235
- overflows: R
236
- },
237
- reset: {
238
- placement: L
239
- }
240
- };
241
- let O = (E = R.filter((P) => P.overflows[0] <= 0).sort((P, k) => P.overflows[1] - k.overflows[1])[0]) == null ? void 0 : E.placement;
242
- if (!O)
243
- switch (t) {
244
- case "bestFit": {
245
- var M;
246
- const P = (M = R.filter((k) => {
247
- if (T) {
248
- const C = B(k.placement);
249
- return C === h || // Create a bias to the `y` side axis due to horizontal
250
- // reading directions favoring greater width.
251
- C === "y";
252
- }
253
- return !0;
254
- }).map((k) => [k.placement, k.overflows.filter((C) => C > 0).reduce((C, J) => C + J, 0)]).sort((k, C) => k[1] - C[1])[0]) == null ? void 0 : M[0];
255
- P && (O = P);
256
- break;
257
- }
258
- case "initialPlacement":
259
- O = s;
260
- break;
261
- }
262
- if (r !== O)
263
- return {
264
- reset: {
265
- placement: O
266
- }
267
- };
103
+ return l;
104
+ }, p = function(t) {
105
+ var e = t.getBoundingClientRect(), r = e.width, a = e.height;
106
+ return r === 0 && a === 0;
107
+ }, q = function(t, e) {
108
+ var r = e.displayCheck, a = e.getShadowRoot;
109
+ if (getComputedStyle(t).visibility === "hidden")
110
+ return !0;
111
+ var l = o.call(t, "details>summary:first-of-type"), n = l ? t.parentElement : t;
112
+ if (o.call(n, "details:not([open]) *"))
113
+ return !0;
114
+ if (!r || r === "full" || r === "legacy-full") {
115
+ if (typeof a == "function") {
116
+ for (var u = t; t; ) {
117
+ var c = t.parentElement, s = b(t);
118
+ if (c && !c.shadowRoot && a(c) === !0)
119
+ return p(t);
120
+ t.assignedSlot ? t = t.assignedSlot : !c && s !== t.ownerDocument ? t = s.host : t = c;
268
121
  }
269
- return {};
122
+ t = u;
270
123
  }
271
- };
272
- };
273
- async function tt(o, i) {
274
- const {
275
- placement: m,
276
- platform: n,
277
- elements: r
278
- } = o, e = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), l = j(m), s = X(m), g = B(m) === "y", x = ["left", "top"].includes(l) ? -1 : 1, d = e && g ? -1 : 1, c = $(i, o);
279
- let {
280
- mainAxis: f,
281
- crossAxis: t,
282
- alignmentAxis: a
283
- } = typeof c == "number" ? {
284
- mainAxis: c,
285
- crossAxis: 0,
286
- alignmentAxis: null
287
- } : {
288
- mainAxis: 0,
289
- crossAxis: 0,
290
- alignmentAxis: null,
291
- ...c
292
- };
293
- return s && typeof a == "number" && (t = s === "end" ? a * -1 : a), g ? {
294
- x: t * d,
295
- y: f * x
296
- } : {
297
- x: f * x,
298
- y: t * d
299
- };
300
- }
301
- const st = function(o) {
302
- return o === void 0 && (o = 0), {
303
- name: "offset",
304
- options: o,
305
- async fn(i) {
306
- var m, n;
307
- const {
308
- x: r,
309
- y: e,
310
- placement: l,
311
- middlewareData: s
312
- } = i, g = await tt(i, o);
313
- return l === ((m = s.offset) == null ? void 0 : m.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
314
- x: r + g.x,
315
- y: e + g.y,
316
- data: {
317
- ...g,
318
- placement: l
124
+ if (B(t))
125
+ return !t.getClientRects().length;
126
+ if (r !== "legacy-full")
127
+ return !0;
128
+ } else if (r === "non-zero-area")
129
+ return p(t);
130
+ return !1;
131
+ }, U = function(t) {
132
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
133
+ for (var e = t.parentElement; e; ) {
134
+ if (e.tagName === "FIELDSET" && e.disabled) {
135
+ for (var r = 0; r < e.children.length; r++) {
136
+ var a = e.children.item(r);
137
+ if (a.tagName === "LEGEND")
138
+ return o.call(e, "fieldset[disabled] *") ? !0 : !a.contains(t);
319
139
  }
320
- };
321
- }
322
- };
323
- }, at = function(o) {
324
- return o === void 0 && (o = {}), {
325
- name: "shift",
326
- options: o,
327
- async fn(i) {
328
- const {
329
- x: m,
330
- y: n,
331
- placement: r
332
- } = i, {
333
- mainAxis: e = !0,
334
- crossAxis: l = !1,
335
- limiter: s = {
336
- fn: (u) => {
337
- let {
338
- x: y,
339
- y: h
340
- } = u;
341
- return {
342
- x: y,
343
- y: h
344
- };
345
- }
346
- },
347
- ...g
348
- } = $(o, i), x = {
349
- x: m,
350
- y: n
351
- }, d = await G(i, g), c = B(j(r)), f = Z(c);
352
- let t = x[f], a = x[c];
353
- if (e) {
354
- const u = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", h = t + d[u], v = t - d[y];
355
- t = Y(h, t, v);
140
+ return !0;
356
141
  }
357
- if (l) {
358
- const u = c === "y" ? "top" : "left", y = c === "y" ? "bottom" : "right", h = a + d[u], v = a - d[y];
359
- a = Y(h, a, v);
360
- }
361
- const w = s.fn({
362
- ...i,
363
- [f]: t,
364
- [c]: a
365
- });
366
- return {
367
- ...w,
368
- data: {
369
- x: w.x - m,
370
- y: w.y - n
371
- }
372
- };
142
+ e = e.parentElement;
373
143
  }
374
- };
144
+ return !1;
145
+ }, g = function(t, e) {
146
+ return !(e.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
147
+ // because we're limited in the type of selectors we can use in JSDom (see related
148
+ // note related to `candidateSelectors`)
149
+ h(e) || F(e) || q(e, t) || // For a details element with a summary, the summary element gets the focus
150
+ D(e) || U(e));
151
+ }, S = function(t, e) {
152
+ return !(P(e) || R(e) < 0 || !g(t, e));
153
+ }, V = function(t) {
154
+ var e = parseInt(t.getAttribute("tabindex"), 10);
155
+ return !!(isNaN(e) || e >= 0);
156
+ }, j = function i(t) {
157
+ var e = [], r = [];
158
+ return t.forEach(function(a, l) {
159
+ var n = !!a.scopeParent, u = n ? a.scopeParent : a, c = x(u, n), s = n ? i(a.candidates) : u;
160
+ c === 0 ? n ? e.push.apply(e, s) : e.push(u) : r.push({
161
+ documentOrder: l,
162
+ tabIndex: c,
163
+ item: a,
164
+ isScope: n,
165
+ content: s
166
+ });
167
+ }), r.sort(O).reduce(function(a, l) {
168
+ return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
169
+ }, []).concat(e);
170
+ }, Z = function(t, e) {
171
+ e = e || {};
172
+ var r;
173
+ return e.getShadowRoot ? r = m([t], e.includeContainer, {
174
+ filter: S.bind(null, e),
175
+ flatten: !1,
176
+ getShadowRoot: e.getShadowRoot,
177
+ shadowRootFilter: V
178
+ }) : r = I(t, e.includeContainer, S.bind(null, e)), j(r);
179
+ }, z = function(t, e) {
180
+ e = e || {};
181
+ var r;
182
+ return e.getShadowRoot ? r = m([t], e.includeContainer, {
183
+ filter: g.bind(null, e),
184
+ flatten: !0,
185
+ getShadowRoot: e.getShadowRoot
186
+ }) : r = I(t, e.includeContainer, g.bind(null, e)), r;
187
+ }, G = function(t, e) {
188
+ if (e = e || {}, !t)
189
+ throw new Error("No node provided");
190
+ return o.call(t, v) === !1 ? !1 : S(e, t);
191
+ }, W = /* @__PURE__ */ w.concat("iframe").join(","), X = function(t, e) {
192
+ if (e = e || {}, !t)
193
+ throw new Error("No node provided");
194
+ return o.call(t, W) === !1 ? !1 : g(e, t);
375
195
  };
376
196
  export {
377
- it as arrow,
378
- nt as computePosition,
379
- G as detectOverflow,
380
- ot as flip,
381
- st as offset,
382
- _ as rectToClientRect,
383
- at as shift
197
+ z as focusable,
198
+ R as getTabIndex,
199
+ X as isFocusable,
200
+ G as isTabbable,
201
+ Z as tabbable
384
202
  };