bitboss-ui 2.0.78 → 2.0.79

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 (159) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  4. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
  6. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  7. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
  8. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  9. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  10. package/dist/components/OptionsContainer.vue.d.ts +1 -1
  11. package/dist/index110.js +5 -5
  12. package/dist/index118.js +25 -21
  13. package/dist/index120.js +5 -5
  14. package/dist/index122.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index130.js +1 -1
  20. package/dist/index132.js +2 -2
  21. package/dist/index133.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +2 -2
  25. package/dist/index204.js +2 -81
  26. package/dist/index205.js +5 -2
  27. package/dist/index206.js +16 -8
  28. package/dist/index207.js +16 -3
  29. package/dist/index208.js +18 -40
  30. package/dist/index209.js +19 -6
  31. package/dist/index21.js +14 -14
  32. package/dist/index210.js +27 -7
  33. package/dist/index211.js +3 -5
  34. package/dist/index212.js +2 -16
  35. package/dist/index213.js +8 -16
  36. package/dist/index214.js +249 -19
  37. package/dist/index215.js +51 -18
  38. package/dist/index216.js +44 -27
  39. package/dist/index217.js +5 -3
  40. package/dist/index218.js +60 -2
  41. package/dist/index219.js +47 -243
  42. package/dist/index221.js +13 -44
  43. package/dist/index222.js +20 -5
  44. package/dist/index223.js +4 -60
  45. package/dist/index224.js +124 -51
  46. package/dist/index225.js +127 -0
  47. package/dist/index226.js +2 -13
  48. package/dist/index227.js +39 -162
  49. package/dist/index228.js +5 -83
  50. package/dist/index229.js +7 -0
  51. package/dist/index23.js +188 -187
  52. package/dist/index230.js +12 -3
  53. package/dist/index231.js +353 -110
  54. package/dist/index232.js +81 -125
  55. package/dist/index233.js +3 -2
  56. package/dist/index234.js +2 -20
  57. package/dist/index235.js +4 -5
  58. package/dist/index236.js +2 -369
  59. package/dist/index237.js +164 -4
  60. package/dist/index238.js +84 -2
  61. package/dist/index240.js +3 -2
  62. package/dist/index241.js +7 -2
  63. package/dist/index242.js +2 -106
  64. package/dist/index244.js +53 -47
  65. package/dist/index246.js +100 -2
  66. package/dist/index248.js +2 -10
  67. package/dist/index249.js +9 -2
  68. package/dist/index25.js +109 -105
  69. package/dist/index250.js +2 -8
  70. package/dist/index251.js +6 -23
  71. package/dist/index252.js +14 -87
  72. package/dist/index253.js +11 -0
  73. package/dist/index254.js +23 -6
  74. package/dist/index255.js +87 -14
  75. package/dist/index257.js +8 -5
  76. package/dist/index258.js +3 -2
  77. package/dist/index260.js +7 -2
  78. package/dist/index261.js +176 -2
  79. package/dist/index262.js +281 -2
  80. package/dist/index263.js +6 -2
  81. package/dist/index264.js +2 -2
  82. package/dist/index265.js +2 -2
  83. package/dist/index266.js +2 -2
  84. package/dist/index267.js +2 -2
  85. package/dist/index268.js +2 -28
  86. package/dist/index269.js +2 -22
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +4 -0
  89. package/dist/index271.js +2 -7
  90. package/dist/index272.js +2 -431
  91. package/dist/index273.js +2 -89
  92. package/dist/index274.js +27 -8
  93. package/dist/index275.js +22 -3
  94. package/dist/index277.js +2 -200
  95. package/dist/index278.js +126 -3
  96. package/dist/index279.js +430 -11
  97. package/dist/index280.js +21 -8
  98. package/dist/index282.js +2 -17
  99. package/dist/index283.js +223 -3
  100. package/dist/index284.js +200 -224
  101. package/dist/index285.js +436 -2
  102. package/dist/index286.js +121 -120
  103. package/dist/index287.js +3 -175
  104. package/dist/index288.js +3 -22
  105. package/dist/index289.js +14 -0
  106. package/dist/index29.js +3 -3
  107. package/dist/index290.js +9 -4
  108. package/dist/index291.js +9 -436
  109. package/dist/index292.js +16 -126
  110. package/dist/index293.js +4 -2
  111. package/dist/index294.js +89 -3
  112. package/dist/index296.js +3 -5
  113. package/dist/index297.js +204 -59
  114. package/dist/index298.js +2 -211
  115. package/dist/index299.js +5 -5
  116. package/dist/index300.js +66 -8
  117. package/dist/index304.js +1 -1
  118. package/dist/index305.js +4 -3
  119. package/dist/index306.js +7 -6
  120. package/dist/index307.js +6 -6
  121. package/dist/index308.js +6 -18
  122. package/dist/index309.js +18 -32
  123. package/dist/index31.js +2 -2
  124. package/dist/index310.js +32 -10
  125. package/dist/index311.js +3 -46
  126. package/dist/index312.js +47 -12
  127. package/dist/index313.js +10 -479
  128. package/dist/index314.js +1 -1
  129. package/dist/index315.js +482 -0
  130. package/dist/index317.js +1 -1
  131. package/dist/index318.js +47 -2
  132. package/dist/index319.js +2 -47
  133. package/dist/index33.js +2 -2
  134. package/dist/index35.js +3 -3
  135. package/dist/index37.js +99 -98
  136. package/dist/index39.js +4 -4
  137. package/dist/index41.js +2 -2
  138. package/dist/index43.js +2 -2
  139. package/dist/index45.js +8 -8
  140. package/dist/index47.js +2 -2
  141. package/dist/index49.js +2 -2
  142. package/dist/index55.js +1 -1
  143. package/dist/index57.js +1 -1
  144. package/dist/index61.js +2 -2
  145. package/dist/index75.js +3 -3
  146. package/dist/index79.js +2 -2
  147. package/dist/index81.js +1 -1
  148. package/dist/index84.js +110 -106
  149. package/dist/index86.js +1 -1
  150. package/dist/index88.js +4 -4
  151. package/dist/index90.js +1 -1
  152. package/package.json +1 -1
  153. package/dist/index220.js +0 -54
  154. package/dist/index239.js +0 -6
  155. package/dist/index256.js +0 -283
  156. package/dist/index259.js +0 -4
  157. package/dist/index281.js +0 -11
  158. package/dist/index316.js +0 -4
  159. /package/dist/{index247.js → index243.js} +0 -0
package/dist/index25.js CHANGED
@@ -1,12 +1,13 @@
1
- import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as G, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
- import { throttle as ve } from "./index207.js";
3
- import { useFocusTrap as fe } from "./index208.js";
1
+ import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, withCtx as de, createElementVNode as a, mergeProps as G, createElementBlock as $, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
+ import { throttle as ve } from "./index240.js";
3
+ import { useFocusTrap as fe } from "./index227.js";
4
4
  import { useId as K } from "./index8.js";
5
5
  import { wait as H } from "./index131.js";
6
- import { waitFor as be } from "./index209.js";
7
- import { useModalsState as C } from "./index210.js";
8
- import { useLogger as pe } from "./index206.js";
9
- const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PURE__ */ ae({
6
+ import { waitFor as be } from "./index228.js";
7
+ import { useModalsState as _ } from "./index241.js";
8
+ import { useLogger as pe } from "./index213.js";
9
+ import me from "./index230.js";
10
+ const ge = { class: "bb-base-dialog-close" }, ye = ["aria-label"], ze = /* @__PURE__ */ ae({
10
11
  __name: "BaseDialog",
11
12
  props: {
12
13
  closeLabel: { default: "Chiudi modale" },
@@ -29,10 +30,10 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
29
30
  emits: ["shown", "hidden", "update:modelValue"],
30
31
  setup(U, { emit: j }) {
31
32
  var I, R;
32
- const t = U, d = j, _ = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), $ = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
33
- const { openedModals: e } = C();
33
+ const t = U, d = j, C = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), T = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
34
+ const { openedModals: e } = _();
34
35
  return e.value && e.value === h.value;
35
- }), { activate: Q, deactivate: M } = fe($, {
36
+ }), { activate: Q, deactivate: M } = fe(T, {
36
37
  initialFocus: t.focusTarget ?? void 0,
37
38
  clickOutsideDeactivates: (e) => e.target === c.value,
38
39
  allowOutsideClick: !0,
@@ -46,28 +47,28 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
46
47
  }), F(() => {
47
48
  window.removeEventListener("resize", r);
48
49
  });
49
- const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), O = m(() => b.value || p.value), Z = () => {
50
+ const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), x = m(() => b.value || p.value), Z = () => {
50
51
  if (!globalThis.document) return;
51
52
  const e = window.innerWidth - document.documentElement.clientWidth;
52
53
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
53
- }, x = () => {
54
+ }, O = () => {
54
55
  globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
55
56
  };
56
57
  F(() => {
57
58
  if (t.modelValue) {
58
- const { openedModals: e, modalHasClosed: l } = C();
59
- e.value && (l(), h.value = 0, x());
59
+ const { openedModals: e, modalHasClosed: l } = _();
60
+ e.value && (l(), h.value = 0, O());
60
61
  }
61
62
  });
62
63
  const S = async () => {
63
64
  if (t.modelValue) {
64
65
  i.value || (i.value = !0, await be(() => !!s.value), await N(), s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value))), D.value = !1, p.value = !1, b.value = !0;
65
- const { modalHasOpened: e, openedModals: l } = C();
66
+ const { modalHasOpened: e, openedModals: l } = _();
66
67
  e(), h.value = l.value, Z(), await H(t.transitionDuration), b.value = !1, V.value = !0, d("shown"), Q();
67
68
  } else {
68
69
  M(), b.value = !1, V.value = !1, p.value = !0, await H(t.transitionDuration), p.value = !1, D.value = !0;
69
- const { modalHasClosed: e, openedModals: l } = C();
70
- e(), h.value = 0, l.value || x(), d("hidden");
70
+ const { modalHasClosed: e, openedModals: l } = _();
71
+ e(), h.value = 0, l.value || O(), d("hidden");
71
72
  }
72
73
  };
73
74
  re(
@@ -80,9 +81,9 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
80
81
  const w = (e) => {
81
82
  e.target === c.value && e.preventDefault();
82
83
  }, ee = (e) => {
83
- t.disabled || O.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
84
+ t.disabled || x.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
84
85
  }, A = () => {
85
- t.disabled || O.value || (M(), d("update:modelValue", !1));
86
+ t.disabled || x.value || (M(), d("update:modelValue", !1));
86
87
  }, te = m(() => {
87
88
  const e = [
88
89
  {
@@ -122,7 +123,7 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
122
123
  role: "dialog",
123
124
  "aria-modal": !0
124
125
  };
125
- i.value && (t.title && (l["aria-labelledby"] = _), t.description && (l["aria-describedby"] = B));
126
+ i.value && (t.title && (l["aria-labelledby"] = C), t.description && (l["aria-describedby"] = B));
126
127
  let n;
127
128
  const W = {
128
129
  sm: 384,
@@ -164,98 +165,101 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
164
165
  200,
165
166
  { trailing: !0 }
166
167
  );
167
- return (e, l) => (k(), ue(de, { to: "body" }, [
168
- a("div", G(te.value, {
169
- ref_key: "overlay",
170
- ref: c
171
- }), [
172
- a("div", G(le.value, {
173
- ref_key: "panel",
174
- ref: $
168
+ return (e, l) => (k(), ue(me, null, {
169
+ default: de(() => [
170
+ a("div", G(te.value, {
171
+ ref_key: "overlay",
172
+ ref: c
175
173
  }), [
176
- i.value ? (k(), T("div", {
177
- key: 0,
178
- ref_key: "content",
179
- ref: y,
180
- class: "bb-base-dialog__content"
181
- }, [
182
- a("div", {
183
- ref_key: "header",
184
- ref: v,
185
- class: "bb-base-dialog__header"
174
+ a("div", G(le.value, {
175
+ ref_key: "panel",
176
+ ref: T
177
+ }), [
178
+ i.value ? (k(), $("div", {
179
+ key: 0,
180
+ ref_key: "content",
181
+ ref: y,
182
+ class: "bb-base-dialog__content"
186
183
  }, [
187
- u(e.$slots, "header", {
188
- close: A,
189
- title: e.title,
190
- titleId: _
191
- }, () => [
192
- a("span", {
193
- id: _,
194
- class: "bb-base-dialog__title"
195
- }, [
196
- u(e.$slots, "title", { text: e.title }, () => [
197
- ce(P(e.title), 1)
198
- ])
199
- ]),
200
- a("span", me, [
201
- e.showClose ? (k(), T("button", {
202
- key: 0,
203
- "aria-label": Y.value,
204
- type: "button",
205
- onClick: A
184
+ a("div", {
185
+ ref_key: "header",
186
+ ref: v,
187
+ class: "bb-base-dialog__header"
188
+ }, [
189
+ u(e.$slots, "header", {
190
+ close: A,
191
+ title: e.title,
192
+ titleId: C
193
+ }, () => [
194
+ a("span", {
195
+ id: C,
196
+ class: "bb-base-dialog__title"
206
197
  }, [
207
- u(e.$slots, "close", {}, () => [
208
- l[0] || (l[0] = a("span", { class: "bb-base-dialog-close__icon" }, [
209
- a("svg", {
210
- "aria-hidden": "true",
211
- fill: "none",
212
- viewBox: "0 0 24 24",
213
- xmlns: "http://www.w3.org/2000/svg"
214
- }, [
215
- a("path", {
216
- d: "M23 23L1 1M23 1L1 23",
217
- stroke: "currentColor",
218
- "stroke-linecap": "round",
219
- "stroke-width": "2"
220
- })
221
- ])
222
- ], -1))
198
+ u(e.$slots, "title", { text: e.title }, () => [
199
+ ce(P(e.title), 1)
223
200
  ])
224
- ], 8, ge)) : z("", !0)
201
+ ]),
202
+ a("span", ge, [
203
+ e.showClose ? (k(), $("button", {
204
+ key: 0,
205
+ "aria-label": Y.value,
206
+ type: "button",
207
+ onClick: A
208
+ }, [
209
+ u(e.$slots, "close", {}, () => [
210
+ l[0] || (l[0] = a("span", { class: "bb-base-dialog-close__icon" }, [
211
+ a("svg", {
212
+ "aria-hidden": "true",
213
+ fill: "none",
214
+ viewBox: "0 0 24 24",
215
+ xmlns: "http://www.w3.org/2000/svg"
216
+ }, [
217
+ a("path", {
218
+ d: "M23 23L1 1M23 1L1 23",
219
+ stroke: "currentColor",
220
+ "stroke-linecap": "round",
221
+ "stroke-width": "2"
222
+ })
223
+ ])
224
+ ], -1))
225
+ ])
226
+ ], 8, ye)) : z("", !0)
227
+ ])
225
228
  ])
226
- ])
227
- ], 512),
228
- a("div", {
229
- ref_key: "body",
230
- ref: s,
231
- class: "bb-base-dialog__body scrollbar-border"
232
- }, [
233
- u(e.$slots, "description", {
234
- descriptionId: B,
235
- text: e.description
236
- }, () => [
237
- e.description ? (k(), T("div", {
238
- key: 0,
239
- id: B,
240
- class: "bb-base-dialog__description sr-only"
241
- }, P(e.description), 1)) : z("", !0)
242
- ]),
243
- u(e.$slots, "default")
244
- ], 512),
245
- l[1] || (l[1] = a("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
246
- a("div", {
247
- ref_key: "footer",
248
- ref: f,
249
- class: "bb-base-dialog__footer"
250
- }, [
251
- u(e.$slots, "footer")
252
- ], 512)
253
- ], 512)) : z("", !0)
229
+ ], 512),
230
+ a("div", {
231
+ ref_key: "body",
232
+ ref: s,
233
+ class: "bb-base-dialog__body scrollbar-border"
234
+ }, [
235
+ u(e.$slots, "description", {
236
+ descriptionId: B,
237
+ text: e.description
238
+ }, () => [
239
+ e.description ? (k(), $("div", {
240
+ key: 0,
241
+ id: B,
242
+ class: "bb-base-dialog__description sr-only"
243
+ }, P(e.description), 1)) : z("", !0)
244
+ ]),
245
+ u(e.$slots, "default")
246
+ ], 512),
247
+ l[1] || (l[1] = a("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
248
+ a("div", {
249
+ ref_key: "footer",
250
+ ref: f,
251
+ class: "bb-base-dialog__footer"
252
+ }, [
253
+ u(e.$slots, "footer")
254
+ ], 512)
255
+ ], 512)) : z("", !0)
256
+ ], 16)
254
257
  ], 16)
255
- ], 16)
256
- ]));
258
+ ]),
259
+ _: 3
260
+ }));
257
261
  }
258
262
  });
259
263
  export {
260
- De as default
264
+ ze as default
261
265
  };
package/dist/index250.js CHANGED
@@ -1,11 +1,5 @@
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;
6
- }
7
- return -1;
1
+ const o = () => {
8
2
  };
9
3
  export {
10
- o as findRightIndex
4
+ o as noop
11
5
  };
package/dist/index251.js CHANGED
@@ -1,25 +1,8 @@
1
- const e = {
2
- inert: ":not([inert]):not([inert] *)",
3
- negTabIndex: ':not([tabindex^="-"])',
4
- disabled: ":not(:disabled)"
5
- }, n = [
6
- `a[href]${e.inert}${e.negTabIndex}`,
7
- `area[href]${e.inert}${e.negTabIndex}`,
8
- `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
- `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
- `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
- `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
- `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
- `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
- // Discard until Firefox supports `:has()`
15
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
- `iframe${e.inert}${e.negTabIndex}`,
18
- `audio[controls]${e.inert}${e.negTabIndex}`,
19
- `video[controls]${e.inert}${e.negTabIndex}`,
20
- `[contenteditable]${e.inert}${e.negTabIndex}`,
21
- `[tabindex]${e.inert}${e.negTabIndex}`
22
- ];
1
+ import e from "./index301.js";
2
+ import r from "./index302.js";
3
+ import o from "./index303.js";
4
+ const f = new o(r, e)._freeze();
23
5
  export {
24
- n as default
6
+ o as Mime,
7
+ f as default
25
8
  };
package/dist/index252.js CHANGED
@@ -1,91 +1,18 @@
1
- import { defineComponent as h, toRef as y, ref as n, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
2
- import C from "./index312.js";
3
- import f from "./index313.js";
4
- import { useFloating as D, arrow as E } from "./index231.js";
5
- import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index236.js";
6
- const j = /* @__PURE__ */ h({
7
- __name: "CommonFloating",
8
- props: {
9
- arrowPadding: {},
10
- eager: { type: Boolean },
11
- offset: {},
12
- padding: {},
13
- placement: {},
14
- theme: {},
15
- transitionDuration: {},
16
- containerAttributes: { default: () => ({}) },
17
- bubbleAttributes: {},
18
- wrapper: {},
19
- baseClass: {},
20
- open: { type: Boolean }
21
- },
22
- setup(d) {
23
- const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
1
+ const e = (o, r, f) => o.reduce((t, n) => {
2
+ if (t) return t;
3
+ if (f(n))
4
+ return n;
5
+ if (r in n) {
6
+ const i = e(
7
+ [].concat(n[r]),
24
8
  r,
25
- l,
26
- {
27
- placement: e.placement,
28
- whileElementsMounted: P,
29
- middleware: [
30
- F(),
31
- S(e.offset),
32
- M({ padding: e.padding }),
33
- E({
34
- element: i,
35
- padding: e.arrowPadding
36
- })
37
- ]
38
- }
39
- ), _ = a(() => {
40
- if (s.value.arrow) {
41
- const { x: t, y: u } = s.value.arrow;
42
- return {
43
- style: {
44
- left: `${t}px`,
45
- top: `${u}px`
46
- }
47
- };
48
- }
49
- }), p = a(() => f({}, e.containerAttributes, {
50
- class: {
51
- "bb-floating": !0,
52
- [`bb-floating--${w.value}`]: !0,
53
- [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
54
- "bb-floating--hidden": !e.open,
55
- "bb-floating--open": e.open
56
- },
57
- style: {
58
- ...g.value,
59
- "--transition-duration": `${e.transitionDuration}ms`
60
- },
61
- tabindex: e.open ? void 0 : -1
62
- })), v = a(() => f({}, e.bubbleAttributes, {}));
63
- return $(
64
- () => e.open,
65
- (t) => {
66
- t && (r.value = m.value);
67
- }
68
- ), (t, u) => (b(), A(C, null, {
69
- default: k(() => [
70
- (b(), x("span", o(p.value, {
71
- key: p.value.id,
72
- ref_key: "content",
73
- ref: l
74
- }), [
75
- c("span", o({
76
- ref_key: "bubblearrow",
77
- ref: i,
78
- class: "bb-floating__arrow"
79
- }, _.value), null, 16),
80
- c("span", o({ class: "bb-floating__bubble" }, v.value), [
81
- B(t.$slots, "default")
82
- ], 16)
83
- ], 16))
84
- ]),
85
- _: 3
86
- }));
9
+ f
10
+ );
11
+ if (i)
12
+ return i;
87
13
  }
88
- });
14
+ return t;
15
+ }, null);
89
16
  export {
90
- j as default
17
+ e as findInTree
91
18
  };
@@ -0,0 +1,11 @@
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;
6
+ }
7
+ return -1;
8
+ };
9
+ export {
10
+ o as findRightIndex
11
+ };
package/dist/index254.js CHANGED
@@ -1,8 +1,25 @@
1
- import e from "./index301.js";
2
- import r from "./index302.js";
3
- import o from "./index303.js";
4
- const f = new o(r, e)._freeze();
1
+ const e = {
2
+ inert: ":not([inert]):not([inert] *)",
3
+ negTabIndex: ':not([tabindex^="-"])',
4
+ disabled: ":not(:disabled)"
5
+ }, n = [
6
+ `a[href]${e.inert}${e.negTabIndex}`,
7
+ `area[href]${e.inert}${e.negTabIndex}`,
8
+ `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
+ `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
+ `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
+ `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
+ `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
+ `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
+ // Discard until Firefox supports `:has()`
15
+ // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
+ // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
+ `iframe${e.inert}${e.negTabIndex}`,
18
+ `audio[controls]${e.inert}${e.negTabIndex}`,
19
+ `video[controls]${e.inert}${e.negTabIndex}`,
20
+ `[contenteditable]${e.inert}${e.negTabIndex}`,
21
+ `[tabindex]${e.inert}${e.negTabIndex}`
22
+ ];
5
23
  export {
6
- o as Mime,
7
- f as default
24
+ n as default
8
25
  };
package/dist/index255.js CHANGED
@@ -1,18 +1,91 @@
1
- const e = (o, r, f) => o.reduce((t, n) => {
2
- if (t) return t;
3
- if (f(n))
4
- return n;
5
- if (r in n) {
6
- const i = e(
7
- [].concat(n[r]),
1
+ import { defineComponent as h, toRef as y, ref as n, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
2
+ import C from "./index230.js";
3
+ import f from "./index315.js";
4
+ import { useFloating as D, arrow as E } from "./index224.js";
5
+ import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index231.js";
6
+ const j = /* @__PURE__ */ h({
7
+ __name: "CommonFloating",
8
+ props: {
9
+ arrowPadding: {},
10
+ eager: { type: Boolean },
11
+ offset: {},
12
+ padding: {},
13
+ placement: {},
14
+ theme: {},
15
+ transitionDuration: {},
16
+ containerAttributes: { default: () => ({}) },
17
+ bubbleAttributes: {},
18
+ wrapper: {},
19
+ baseClass: {},
20
+ open: { type: Boolean }
21
+ },
22
+ setup(d) {
23
+ const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
8
24
  r,
9
- f
10
- );
11
- if (i)
12
- return i;
25
+ l,
26
+ {
27
+ placement: e.placement,
28
+ whileElementsMounted: P,
29
+ middleware: [
30
+ F(),
31
+ S(e.offset),
32
+ M({ padding: e.padding }),
33
+ E({
34
+ element: i,
35
+ padding: e.arrowPadding
36
+ })
37
+ ]
38
+ }
39
+ ), _ = a(() => {
40
+ if (s.value.arrow) {
41
+ const { x: t, y: u } = s.value.arrow;
42
+ return {
43
+ style: {
44
+ left: `${t}px`,
45
+ top: `${u}px`
46
+ }
47
+ };
48
+ }
49
+ }), p = a(() => f({}, e.containerAttributes, {
50
+ class: {
51
+ "bb-floating": !0,
52
+ [`bb-floating--${w.value}`]: !0,
53
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
54
+ "bb-floating--hidden": !e.open,
55
+ "bb-floating--open": e.open
56
+ },
57
+ style: {
58
+ ...g.value,
59
+ "--transition-duration": `${e.transitionDuration}ms`
60
+ },
61
+ tabindex: e.open ? void 0 : -1
62
+ })), v = a(() => f({}, e.bubbleAttributes, {}));
63
+ return $(
64
+ () => e.open,
65
+ (t) => {
66
+ t && (r.value = m.value);
67
+ }
68
+ ), (t, u) => (b(), A(C, null, {
69
+ default: k(() => [
70
+ (b(), x("span", o(p.value, {
71
+ key: p.value.id,
72
+ ref_key: "content",
73
+ ref: l
74
+ }), [
75
+ c("span", o({
76
+ ref_key: "bubblearrow",
77
+ ref: i,
78
+ class: "bb-floating__arrow"
79
+ }, _.value), null, 16),
80
+ c("span", o({ class: "bb-floating__bubble" }, v.value), [
81
+ B(t.$slots, "default")
82
+ ], 16)
83
+ ], 16))
84
+ ]),
85
+ _: 3
86
+ }));
13
87
  }
14
- return t;
15
- }, null);
88
+ });
16
89
  export {
17
- e as findInTree
90
+ j as default
18
91
  };
package/dist/index257.js CHANGED
@@ -1,8 +1,11 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1
+ function u(e, i) {
2
+ let t;
3
+ return function(...o) {
4
+ t !== void 0 && clearTimeout(t), t = setTimeout(() => {
5
+ e.apply(this, o);
6
+ }, i);
7
+ };
4
8
  }
5
9
  export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
10
+ u as debounce
8
11
  };
package/dist/index258.js CHANGED
@@ -1,4 +1,5 @@
1
- var a = { exports: {} };
1
+ import o from "./index219.js";
2
+ /* empty css */
2
3
  export {
3
- a as __module
4
+ o as default
4
5
  };
package/dist/index260.js CHANGED
@@ -1,4 +1,9 @@
1
- var e = { exports: {} };
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
+ };
2
7
  export {
3
- e as __module
8
+ s as default
4
9
  };