bitboss-ui 2.0.94 → 2.0.96

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 (181) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  3. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
  4. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +9 -4
  5. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
  6. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
  7. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
  8. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
  9. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
  10. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  11. package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
  12. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +8 -0
  13. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
  14. package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
  15. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
  16. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
  17. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
  18. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
  19. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
  20. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  21. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
  22. package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
  23. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
  24. package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
  25. package/dist/components/BbRows/BbRows.vue.d.ts +1 -1
  26. package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
  27. package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
  28. package/dist/components/BbTable/types.d.ts +1 -1
  29. package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
  30. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
  31. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
  32. package/dist/components/ListBox.vue.d.ts +4 -0
  33. package/dist/index100.js +10 -10
  34. package/dist/index101.js +18 -15
  35. package/dist/index103.js +11 -9
  36. package/dist/index105.js +10 -10
  37. package/dist/index107.js +16 -14
  38. package/dist/index111.js +5 -5
  39. package/dist/index113.js +12 -9
  40. package/dist/index115.js +27 -24
  41. package/dist/index117.js +27 -24
  42. package/dist/index119.js +1 -1
  43. package/dist/index121.js +5 -5
  44. package/dist/index123.js +1 -1
  45. package/dist/index128.js +1 -1
  46. package/dist/index13.js +1 -1
  47. package/dist/index134.js +2 -2
  48. package/dist/index15.js +24 -22
  49. package/dist/index17.js +14 -15
  50. package/dist/index19.js +57 -51
  51. package/dist/index208.js +7 -125
  52. package/dist/index209.js +126 -5
  53. package/dist/index21.js +77 -72
  54. package/dist/index210.js +5 -125
  55. package/dist/index211.js +123 -17
  56. package/dist/index212.js +18 -15
  57. package/dist/index213.js +10 -10
  58. package/dist/index214.js +16 -2
  59. package/dist/index215.js +2 -2
  60. package/dist/index216.js +2 -41
  61. package/dist/index217.js +41 -20
  62. package/dist/index218.js +20 -6
  63. package/dist/index219.js +5 -52
  64. package/dist/index220.js +55 -0
  65. package/dist/index222.js +12 -4
  66. package/dist/index223.js +5 -12
  67. package/dist/index224.js +12 -369
  68. package/dist/index225.js +369 -3
  69. package/dist/index226.js +19 -4
  70. package/dist/index227.js +22 -14
  71. package/dist/index228.js +3 -27
  72. package/dist/index229.js +250 -3
  73. package/dist/index23.js +28 -26
  74. package/dist/index230.js +50 -6
  75. package/dist/index231.js +36 -241
  76. package/dist/index232.js +5 -52
  77. package/dist/index233.js +47 -31
  78. package/dist/index234.js +164 -5
  79. package/dist/index235.js +78 -54
  80. package/dist/index237.js +3 -84
  81. package/dist/index238.js +9 -0
  82. package/dist/index240.js +1 -1
  83. package/dist/index242.js +4 -3
  84. package/dist/index243.js +3 -7
  85. package/dist/index246.js +1 -1
  86. package/dist/index248.js +1 -1
  87. package/dist/index25.js +6 -6
  88. package/dist/index253.js +9 -224
  89. package/dist/index254.js +23 -281
  90. package/dist/index255.js +89 -6
  91. package/dist/index257.js +6 -2
  92. package/dist/index258.js +16 -2
  93. package/dist/index259.js +9 -2
  94. package/dist/index260.js +9 -2
  95. package/dist/index261.js +8 -126
  96. package/dist/index262.js +3 -431
  97. package/dist/index263.js +11 -175
  98. package/dist/index264.js +9 -3
  99. package/dist/index265.js +19 -0
  100. package/dist/index266.js +4 -7
  101. package/dist/index267.js +281 -22
  102. package/dist/index268.js +8 -0
  103. package/dist/index269.js +2 -2
  104. package/dist/index27.js +9 -7
  105. package/dist/index270.js +2 -6
  106. package/dist/index271.js +2 -16
  107. package/dist/index272.js +2 -9
  108. package/dist/index273.js +2 -23
  109. package/dist/index274.js +2 -89
  110. package/dist/index275.js +4 -0
  111. package/dist/index276.js +2 -9
  112. package/dist/index277.js +2 -2
  113. package/dist/index278.js +2 -2
  114. package/dist/index279.js +28 -2
  115. package/dist/index280.js +21 -1
  116. package/dist/index282.js +7 -2
  117. package/dist/index283.js +2 -28
  118. package/dist/index284.js +125 -21
  119. package/dist/index285.js +433 -0
  120. package/dist/index286.js +167 -427
  121. package/dist/index287.js +3 -127
  122. package/dist/index289.js +22 -3
  123. package/dist/index29.js +10 -8
  124. package/dist/index291.js +2 -9
  125. package/dist/index292.js +4 -9
  126. package/dist/index293.js +197 -14
  127. package/dist/index294.js +435 -3
  128. package/dist/index295.js +127 -8
  129. package/dist/index296.js +88 -3
  130. package/dist/index297.js +218 -83
  131. package/dist/index300.js +23 -21
  132. package/dist/index302.js +5 -2
  133. package/dist/index303.js +2 -5
  134. package/dist/index304.js +3 -5
  135. package/dist/index305.js +3 -8
  136. package/dist/index306.js +3 -3
  137. package/dist/index307.js +58 -3
  138. package/dist/index308.js +10 -57
  139. package/dist/index309.js +6 -3
  140. package/dist/index31.js +4 -4
  141. package/dist/index310.js +19 -3
  142. package/dist/index311.js +6 -6
  143. package/dist/index312.js +32 -18
  144. package/dist/index313.js +46 -32
  145. package/dist/index314.js +4 -6
  146. package/dist/index315.js +7 -10
  147. package/dist/index316.js +2 -47
  148. package/dist/index317.js +4 -2
  149. package/dist/{index319.js → index318.js} +1 -1
  150. package/dist/index33.js +12 -12
  151. package/dist/index35.js +33 -33
  152. package/dist/index37.js +54 -50
  153. package/dist/index39.js +2 -2
  154. package/dist/index41.js +1 -1
  155. package/dist/index43.js +3 -3
  156. package/dist/index45.js +44 -42
  157. package/dist/index47.js +31 -29
  158. package/dist/index49.js +18 -16
  159. package/dist/index63.js +9 -9
  160. package/dist/index65.js +11 -9
  161. package/dist/index67.js +24 -21
  162. package/dist/index71.js +8 -5
  163. package/dist/index75.js +3 -3
  164. package/dist/index79.js +2 -2
  165. package/dist/index81.js +1 -1
  166. package/dist/index82.js +24 -21
  167. package/dist/index84.js +3 -3
  168. package/dist/index86.js +1 -1
  169. package/dist/index88.js +3 -3
  170. package/dist/index92.js +6 -6
  171. package/dist/index94.js +11 -9
  172. package/dist/index96.js +13 -11
  173. package/dist/style.css +1 -1
  174. package/dist/types/CommonProps.d.ts +1 -1
  175. package/package.json +2 -2
  176. package/dist/index221.js +0 -15
  177. package/dist/index236.js +0 -166
  178. package/dist/index256.js +0 -4
  179. package/dist/index281.js +0 -4
  180. package/dist/index288.js +0 -202
  181. package/dist/index290.js +0 -14
package/dist/index287.js CHANGED
@@ -1,129 +1,5 @@
1
- const P = ["top", "right", "bottom", "left"], l = Math.min, m = Math.max, M = Math.round, O = Math.floor, S = (t) => ({
2
- x: t,
3
- y: t
4
- }), p = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- }, a = {
10
- start: "end",
11
- end: "start"
12
- };
13
- function w(t, n, e) {
14
- return m(t, l(n, e));
15
- }
16
- function j(t, n) {
17
- return typeof t == "function" ? t(n) : t;
18
- }
19
- function u(t) {
20
- return t.split("-")[0];
21
- }
22
- function g(t) {
23
- return t.split("-")[1];
24
- }
25
- function h(t) {
26
- return t === "x" ? "y" : "x";
27
- }
28
- function b(t) {
29
- return t === "y" ? "height" : "width";
30
- }
31
- function x(t) {
32
- return ["top", "bottom"].includes(u(t)) ? "y" : "x";
33
- }
34
- function d(t) {
35
- return h(x(t));
36
- }
37
- function C(t, n, e) {
38
- e === void 0 && (e = !1);
39
- const r = g(t), o = d(t), i = b(o);
40
- let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
41
- return n.reference[i] > n.floating[i] && (c = f(c)), [c, f(c)];
42
- }
43
- function L(t) {
44
- const n = f(t);
45
- return [s(t), n, s(n)];
46
- }
47
- function s(t) {
48
- return t.replace(/start|end/g, (n) => a[n]);
49
- }
50
- function A(t, n, e) {
51
- const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
52
- switch (t) {
53
- case "top":
54
- case "bottom":
55
- return e ? n ? o : r : n ? r : o;
56
- case "left":
57
- case "right":
58
- return n ? i : c;
59
- default:
60
- return [];
61
- }
62
- }
63
- function E(t, n, e, r) {
64
- const o = g(t);
65
- let i = A(u(t), e === "start", r);
66
- return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
67
- }
68
- function f(t) {
69
- return t.replace(/left|right|bottom|top/g, (n) => p[n]);
70
- }
71
- function y(t) {
72
- return {
73
- top: 0,
74
- right: 0,
75
- bottom: 0,
76
- left: 0,
77
- ...t
78
- };
79
- }
80
- function R(t) {
81
- return typeof t != "number" ? y(t) : {
82
- top: t,
83
- right: t,
84
- bottom: t,
85
- left: t
86
- };
87
- }
88
- function T(t) {
89
- const {
90
- x: n,
91
- y: e,
92
- width: r,
93
- height: o
94
- } = t;
95
- return {
96
- width: r,
97
- height: o,
98
- top: e,
99
- left: n,
100
- right: n + r,
101
- bottom: e + o,
102
- x: n,
103
- y: e
104
- };
105
- }
1
+ import o from "./index220.js";
2
+ /* empty css */
106
3
  export {
107
- w as clamp,
108
- S as createCoords,
109
- j as evaluate,
110
- y as expandPaddingObject,
111
- O as floor,
112
- g as getAlignment,
113
- d as getAlignmentAxis,
114
- C as getAlignmentSides,
115
- b as getAxisLength,
116
- L as getExpandedPlacements,
117
- s as getOppositeAlignmentPlacement,
118
- h as getOppositeAxis,
119
- E as getOppositeAxisPlacements,
120
- f as getOppositePlacement,
121
- R as getPaddingObject,
122
- u as getSide,
123
- x as getSideAxis,
124
- m as max,
125
- l as min,
126
- T as rectToClientRect,
127
- M as round,
128
- P as sides
4
+ o as default
129
5
  };
package/dist/index289.js CHANGED
@@ -1,5 +1,24 @@
1
- import o from "./index237.js";
2
- /* empty css */
1
+ import { defineComponent as o, computed as i, openBlock as r, createBlock as d, Transition as l, normalizeStyle as s, withCtx as u, renderSlot as p } from "vue";
2
+ const f = /* @__PURE__ */ o({
3
+ __name: "SlideBack",
4
+ props: {
5
+ direction: { default: "right" },
6
+ duration: { default: 500 },
7
+ gap: { default: 0 }
8
+ },
9
+ setup(t) {
10
+ const a = t, n = i(() => `bb-slide-back-in-${a.direction}`);
11
+ return (e, c) => (r(), d(l, {
12
+ name: n.value,
13
+ style: s({ "--transition-duration": `${e.duration}ms`, "--gap": `${e.gap}px` })
14
+ }, {
15
+ default: u(() => [
16
+ p(e.$slots, "default", {}, void 0, !0)
17
+ ]),
18
+ _: 3
19
+ }, 8, ["name", "style"]));
20
+ }
21
+ });
3
22
  export {
4
- o as default
23
+ f as default
5
24
  };
package/dist/index29.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, computed as D, ref as g, onMounted as E, watch as N, openBlock as x, createBlock as A, normalizeClass as T, withCtx as u, renderSlot as d, createVNode as q, createElementVNode as L, mergeProps as S, withModifiers as K } from "vue";
2
2
  import { clamp as b } from "./index207.js";
3
- import j from "./index219.js";
3
+ import j from "./index220.js";
4
4
  /* empty css */
5
- import z from "./index221.js";
5
+ import z from "./index222.js";
6
6
  const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required"], J = /* @__PURE__ */ M({
7
7
  __name: "BaseNumberInput",
8
8
  props: {
@@ -10,6 +10,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
10
10
  ariaDescribedby: {},
11
11
  autocomplete: { default: "off" },
12
12
  autofocus: {},
13
+ compact: { type: Boolean },
13
14
  disabled: { type: Boolean },
14
15
  hasErrors: { type: Boolean },
15
16
  id: {},
@@ -20,7 +21,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
20
21
  name: {},
21
22
  placeholder: {},
22
23
  "prepend:icon": {},
23
- readonly: {},
24
+ readonly: { type: Boolean },
24
25
  required: { type: Boolean },
25
26
  step: { default: 1 }
26
27
  },
@@ -31,7 +32,8 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
31
32
  "bb-base-number-input--disabled": n.disabled,
32
33
  "bb-base-number-input--errors": n.hasErrors,
33
34
  "bb-base-number-input--loading": n.loading,
34
- "bb-base-number-input--readonly": n.readonly
35
+ "bb-base-number-input--readonly": n.readonly,
36
+ "bb-base-number-input--compact": n.compact
35
37
  })), s = g(null), p = g(!1), i = () => {
36
38
  if (n.disabled || n.readonly || p.value) return;
37
39
  const e = typeof n.min > "u" ? -1 / 0 : n.min, a = typeof n.max > "u" ? 1 / 0 : n.max;
@@ -60,19 +62,19 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
60
62
  p.value = !0;
61
63
  t("input", e);
62
64
  }
63
- }, $ = (e) => {
65
+ }, B = (e) => {
64
66
  e.key === "ArrowUp" ? (e.preventDefault(), r()) : e.key === "ArrowDown" && (e.preventDefault(), i());
65
67
  }, y = (e) => {
66
68
  if (typeof e == "number") return e;
67
69
  let a = e.replaceAll(",", "."), l = a.slice(0, 1).concat(a.slice(1).replaceAll("-", "")).replaceAll(/[^\d.-]/g, "").split("."), c = l.slice(0, 1).join("") || 0, f = l.slice(1).join("") || 0, C = `${c}.${f}`;
68
70
  return Number(C);
69
- }, B = {
71
+ }, $ = {
70
72
  onBlur: (e) => t("blur", e),
71
73
  onChange: (e) => t("change", e),
72
74
  onClick: (e) => t("click", e),
73
75
  onFocus: (e) => t("focus", e),
74
76
  onKeydown: (e) => {
75
- $(e), t("keydown", e);
77
+ B(e), t("keydown", e);
76
78
  },
77
79
  onKeyup: (e) => t("keyup", e),
78
80
  onMousedown: (e) => t("mousedown", e),
@@ -143,7 +145,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
143
145
  required: e.required,
144
146
  size: "1",
145
147
  type: "text"
146
- }, B, {
148
+ }, $, {
147
149
  onInput: K(V, ["stop"])
148
150
  }), null, 16, O)
149
151
  ]),
package/dist/index291.js CHANGED
@@ -1,11 +1,4 @@
1
- function u(e, i) {
2
- const n = /* @__PURE__ */ new Set(), s = [];
3
- for (let t = 0; t < e.length; t++) {
4
- const o = e[t], c = i(o);
5
- n.has(c) || (n.add(c), s.push(o));
6
- }
7
- return s;
8
- }
1
+ import f from "./index224.js";
9
2
  export {
10
- u as uniqBy
3
+ f as default
11
4
  };
package/dist/index292.js CHANGED
@@ -1,11 +1,6 @@
1
- import { get as o } from "./index315.js";
2
- const e = () => ({
3
- getItemValue(n, f) {
4
- if (typeof f > "u") return n;
5
- if (typeof f == "function") return f(n);
6
- if (typeof f == "string") return o(n, f);
7
- }
8
- });
1
+ const e = function(t) {
2
+ return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
+ };
9
4
  export {
10
- e as useItemValue
5
+ e as curry
11
6
  };
package/dist/index293.js CHANGED
@@ -1,19 +1,202 @@
1
- import { get as t } from "./index315.js";
2
- const o = () => ({
3
- getItemText(r, n) {
4
- if (typeof r == "string" && !n) return r;
5
- if (n) {
6
- if (typeof n == "function") {
7
- let f = n(r);
8
- return typeof f != "string" && (f = JSON.stringify(f)), f;
9
- } else if (typeof n == "string") {
10
- const f = t(r, n);
11
- return typeof f == "string" ? f : JSON.stringify(f);
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);
12
47
  }
48
+ }
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));
13
101
  }
14
- return JSON.stringify(r);
15
102
  }
16
- });
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;
121
+ }
122
+ t = u;
123
+ }
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);
139
+ }
140
+ return !0;
141
+ }
142
+ e = e.parentElement;
143
+ }
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);
195
+ };
17
196
  export {
18
- o as useItemText
197
+ z as focusable,
198
+ R as getTabIndex,
199
+ X as isFocusable,
200
+ G as isTabbable,
201
+ Z as tabbable
19
202
  };