bitboss-ui 2.0.96 → 2.0.98

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 (244) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -2
  2. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +13 -1
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +65 -19
  4. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -29
  5. package/dist/components/OptionsContainer.vue.d.ts +2 -2
  6. package/dist/composables/useBbConfig.d.ts +3 -0
  7. package/dist/composables/useConfirm.d.ts +67 -32
  8. package/dist/composables/useLocale.d.ts +5 -0
  9. package/dist/i18n/en.d.ts +8 -0
  10. package/dist/i18n/index.d.ts +3 -0
  11. package/dist/i18n/it.d.ts +8 -0
  12. package/dist/index100.js +5 -5
  13. package/dist/index109.js +4 -4
  14. package/dist/index11.js +1 -1
  15. package/dist/index111.js +7 -7
  16. package/dist/index119.js +2 -2
  17. package/dist/index12.js +6 -6
  18. package/dist/index121.js +6 -6
  19. package/dist/index123.js +1 -1
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.js +1 -1
  24. package/dist/index130.js +2 -2
  25. package/dist/index131.js +1 -1
  26. package/dist/index132.js +340 -2
  27. package/dist/index133.js +22 -337
  28. package/dist/index134.js +2 -25
  29. package/dist/index135.js +5 -2
  30. package/dist/index136.js +9 -5
  31. package/dist/index137.js +5 -8
  32. package/dist/index138.js +3 -6
  33. package/dist/index139.js +1 -1
  34. package/dist/index140.js +1 -1
  35. package/dist/index141.js +1 -1
  36. package/dist/index142.js +1 -1
  37. package/dist/index143.js +1 -1
  38. package/dist/index144.js +1 -1
  39. package/dist/index145.js +1 -1
  40. package/dist/index146.js +1 -1
  41. package/dist/index147.js +1 -1
  42. package/dist/index148.js +1 -1
  43. package/dist/index149.js +1 -1
  44. package/dist/index15.js +4 -4
  45. package/dist/index150.js +1 -1
  46. package/dist/index151.js +1 -1
  47. package/dist/index152.js +1 -1
  48. package/dist/index153.js +1 -1
  49. package/dist/index154.js +1 -1
  50. package/dist/index155.js +1 -1
  51. package/dist/index156.js +1 -1
  52. package/dist/index157.js +1 -1
  53. package/dist/index158.js +1 -1
  54. package/dist/index159.js +1 -1
  55. package/dist/index160.js +1 -1
  56. package/dist/index161.js +1 -1
  57. package/dist/index162.js +1 -1
  58. package/dist/index163.js +1 -1
  59. package/dist/index164.js +1 -1
  60. package/dist/index165.js +2 -2
  61. package/dist/index169.js +5 -0
  62. package/dist/index17.js +3 -3
  63. package/dist/index170.js +1 -1
  64. package/dist/index171.js +1 -1
  65. package/dist/index172.js +1 -1
  66. package/dist/index173.js +1 -1
  67. package/dist/index174.js +1 -1
  68. package/dist/index175.js +1 -1
  69. package/dist/index176.js +2 -2
  70. package/dist/index178.js +4 -0
  71. package/dist/index179.js +3 -2
  72. package/dist/index180.js +1 -1
  73. package/dist/index181.js +1 -1
  74. package/dist/index182.js +1 -1
  75. package/dist/index183.js +1 -1
  76. package/dist/index184.js +1 -1
  77. package/dist/index185.js +1 -1
  78. package/dist/index186.js +1 -1
  79. package/dist/index187.js +1 -1
  80. package/dist/index188.js +2 -3
  81. package/dist/index189.js +3 -2
  82. package/dist/index19.js +49 -48
  83. package/dist/index190.js +1 -1
  84. package/dist/index191.js +1 -1
  85. package/dist/{index166.js → index195.js} +1 -1
  86. package/dist/index196.js +1 -1
  87. package/dist/index197.js +1 -1
  88. package/dist/index198.js +1 -1
  89. package/dist/index199.js +1 -1
  90. package/dist/index200.js +1 -1
  91. package/dist/index201.js +1 -1
  92. package/dist/index202.js +1 -1
  93. package/dist/index203.js +1 -1
  94. package/dist/index204.js +1 -1
  95. package/dist/index205.js +81 -3
  96. package/dist/index206.js +2 -81
  97. package/dist/index207.js +53 -2
  98. package/dist/index209.js +13 -126
  99. package/dist/index21.js +63 -56
  100. package/dist/index210.js +20 -5
  101. package/dist/index211.js +4 -125
  102. package/dist/index212.js +5 -19
  103. package/dist/index213.js +2 -2
  104. package/dist/index214.js +2 -2
  105. package/dist/index215.js +19 -2
  106. package/dist/index216.js +19 -2
  107. package/dist/index217.js +26 -40
  108. package/dist/index218.js +3 -20
  109. package/dist/index219.js +2 -6
  110. package/dist/index220.js +6 -51
  111. package/dist/index221.js +252 -0
  112. package/dist/index222.js +52 -13
  113. package/dist/index223.js +44 -5
  114. package/dist/index224.js +4 -11
  115. package/dist/index225.js +59 -368
  116. package/dist/index226.js +3 -19
  117. package/dist/index227.js +40 -26
  118. package/dist/index228.js +6 -3
  119. package/dist/index229.js +7 -250
  120. package/dist/index23.js +31 -31
  121. package/dist/index230.js +10 -50
  122. package/dist/index231.js +125 -43
  123. package/dist/index232.js +125 -5
  124. package/dist/index233.js +2 -60
  125. package/dist/index234.js +5 -164
  126. package/dist/index235.js +368 -83
  127. package/dist/index236.js +166 -0
  128. package/dist/index237.js +84 -3
  129. package/dist/index239.js +8 -2
  130. package/dist/index240.js +3 -4
  131. package/dist/index241.js +2 -2
  132. package/dist/index242.js +4 -4
  133. package/dist/index243.js +2 -3
  134. package/dist/index244.js +1 -1
  135. package/dist/index245.js +1 -1
  136. package/dist/index246.js +2 -2
  137. package/dist/index248.js +2 -2
  138. package/dist/index25.js +33 -32
  139. package/dist/index251.js +2 -10
  140. package/dist/index252.js +9 -2
  141. package/dist/index253.js +2 -8
  142. package/dist/index254.js +9 -23
  143. package/dist/index255.js +23 -89
  144. package/dist/index256.js +91 -0
  145. package/dist/index258.js +6 -16
  146. package/dist/index259.js +16 -9
  147. package/dist/index260.js +3 -9
  148. package/dist/index262.js +7 -3
  149. package/dist/index263.js +175 -11
  150. package/dist/index264.js +280 -8
  151. package/dist/index265.js +6 -17
  152. package/dist/index266.js +2 -4
  153. package/dist/index267.js +2 -281
  154. package/dist/index268.js +2 -6
  155. package/dist/index269.js +2 -2
  156. package/dist/index27.js +5 -2
  157. package/dist/index272.js +2 -2
  158. package/dist/index273.js +2 -2
  159. package/dist/index274.js +2 -2
  160. package/dist/index275.js +1 -1
  161. package/dist/index276.js +28 -2
  162. package/dist/index277.js +21 -1
  163. package/dist/index279.js +427 -24
  164. package/dist/index280.js +1 -21
  165. package/dist/index281.js +91 -0
  166. package/dist/index282.js +9 -7
  167. package/dist/index285.js +20 -429
  168. package/dist/index287.js +200 -3
  169. package/dist/index288.js +11 -0
  170. package/dist/index289.js +7 -21
  171. package/dist/index29.js +3 -3
  172. package/dist/index290.js +438 -0
  173. package/dist/index291.js +127 -2
  174. package/dist/index292.js +3 -4
  175. package/dist/index293.js +11 -199
  176. package/dist/index294.js +7 -434
  177. package/dist/index295.js +16 -126
  178. package/dist/index296.js +3 -88
  179. package/dist/index297.js +7 -224
  180. package/dist/index298.js +11 -3
  181. package/dist/index299.js +224 -3
  182. package/dist/index300.js +4 -213
  183. package/dist/index301.js +2 -66
  184. package/dist/index302.js +3 -5
  185. package/dist/index303.js +3 -2
  186. package/dist/index304.js +213 -3
  187. package/dist/index305.js +5 -3
  188. package/dist/index306.js +66 -3
  189. package/dist/index307.js +6 -57
  190. package/dist/index308.js +18 -10
  191. package/dist/index309.js +6 -6
  192. package/dist/index31.js +2 -2
  193. package/dist/index310.js +4 -18
  194. package/dist/index311.js +7 -6
  195. package/dist/index312.js +2 -32
  196. package/dist/index313.js +32 -46
  197. package/dist/index314.js +3 -5
  198. package/dist/index315.js +3 -8
  199. package/dist/index316.js +58 -2
  200. package/dist/index318.js +7 -479
  201. package/dist/index319.js +10 -0
  202. package/dist/index320.js +43 -420
  203. package/dist/index321.js +2 -47
  204. package/dist/index323.js +482 -0
  205. package/dist/index324.js +426 -0
  206. package/dist/index325.js +49 -0
  207. package/dist/index33.js +2 -2
  208. package/dist/index35.js +4 -4
  209. package/dist/index37.js +13 -13
  210. package/dist/index39.js +5 -5
  211. package/dist/index4.js +5 -4
  212. package/dist/index41.js +2 -2
  213. package/dist/index43.js +2 -2
  214. package/dist/index45.js +5 -5
  215. package/dist/index47.js +2 -2
  216. package/dist/index49.js +2 -2
  217. package/dist/index55.js +2 -2
  218. package/dist/index57.js +2 -2
  219. package/dist/index6.js +65 -51
  220. package/dist/index61.js +2 -2
  221. package/dist/index69.js +51 -59
  222. package/dist/index7.js +1 -1
  223. package/dist/index75.js +5 -5
  224. package/dist/index77.js +36 -34
  225. package/dist/index79.js +2 -2
  226. package/dist/index81.js +1 -1
  227. package/dist/index84.js +4 -4
  228. package/dist/index86.js +1 -1
  229. package/dist/index88.js +5 -5
  230. package/dist/index9.js +1 -1
  231. package/dist/index90.js +1 -1
  232. package/dist/style.css +1 -1
  233. package/package.json +2 -2
  234. package/dist/index177.js +0 -5
  235. package/dist/index192.js +0 -5
  236. package/dist/index208.js +0 -10
  237. package/dist/index238.js +0 -9
  238. package/dist/index257.js +0 -8
  239. package/dist/index261.js +0 -10
  240. package/dist/index278.js +0 -4
  241. package/dist/index286.js +0 -178
  242. /package/dist/{index168.js → index167.js} +0 -0
  243. /package/dist/{index194.js → index193.js} +0 -0
  244. /package/dist/{index322.js → index326.js} +0 -0
package/dist/index237.js CHANGED
@@ -1,5 +1,86 @@
1
- import t from "./index296.js";
2
- const r = t;
1
+ import { defineComponent as b, openBlock as t, createElementBlock as n, normalizeClass as r, createElementVNode as l, renderSlot as s, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
2
+ const p = { class: "bb-cr-container__container" }, u = {
3
+ key: 0,
4
+ class: "bb-cr-container__loading-container"
5
+ }, g = {
6
+ key: 1,
7
+ class: "bb-cr-container__no-data-container"
8
+ }, f = /* @__PURE__ */ b({
9
+ __name: "OptionsContainer",
10
+ props: {
11
+ direction: {},
12
+ hasErrors: { type: Boolean },
13
+ hideLabel: { type: Boolean },
14
+ loadingText: {},
15
+ loading: { type: Boolean },
16
+ noDataText: {},
17
+ options: {}
18
+ },
19
+ setup(k) {
20
+ return (a, y) => (t(), n("span", {
21
+ ref: "container",
22
+ class: r(["bb-cr-container", {
23
+ "bb-cr-container--errors": a.hasErrors,
24
+ "bb-cr-container--horizontal": a.direction === "horizontal",
25
+ "bb-cr-container--vertical": a.direction === "vertical"
26
+ }])
27
+ }, [
28
+ l("span", p, [
29
+ s(a.$slots, "prepend"),
30
+ !a.options.length && a.loading ? (t(), n("span", u, [
31
+ s(a.$slots, "loading", {}, () => [
32
+ o(d(a.loadingText), 1)
33
+ ])
34
+ ])) : a.options.length ? h("", !0) : (t(), n("span", g, [
35
+ s(a.$slots, "no-data", {}, () => [
36
+ o(d(a.noDataText), 1)
37
+ ])
38
+ ])),
39
+ (t(!0), n(c, null, m(a.options, (e, i) => (t(), n(c, {
40
+ key: (e == null ? void 0 : e.valueHash) || i
41
+ }, [
42
+ s(a.$slots, "option:prepend", {
43
+ id: e.valueHash,
44
+ checked: !!e.selected,
45
+ disabled: !!e.disabled,
46
+ item: e.item,
47
+ text: e.text
48
+ }),
49
+ l("label", {
50
+ class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
51
+ }, [
52
+ s(a.$slots, "input", {
53
+ index: i,
54
+ option: e
55
+ }),
56
+ l("span", {
57
+ class: r({
58
+ "bb-cr-container-option__text": !0,
59
+ "sr-only": a.hideLabel
60
+ })
61
+ }, [
62
+ s(a.$slots, "label", {
63
+ checked: !!e.selected,
64
+ item: e.item,
65
+ text: e.text
66
+ }, () => [
67
+ o(d(e.text), 1)
68
+ ])
69
+ ], 2)
70
+ ], 2),
71
+ s(a.$slots, "option:append", {
72
+ id: e.valueHash,
73
+ checked: !!e.selected,
74
+ disabled: !!e.disabled,
75
+ item: e.item,
76
+ text: e.text
77
+ })
78
+ ], 64))), 128)),
79
+ s(a.$slots, "append")
80
+ ])
81
+ ], 2));
82
+ }
83
+ });
3
84
  export {
4
- r as throttle
85
+ f as default
5
86
  };
package/dist/index239.js CHANGED
@@ -1,4 +1,10 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { locales as r } from "./index297.js";
2
+ import { _config as t } from "./index4.js";
3
+ import { get as e } from "./index298.js";
4
+ import { readonly as m, computed as c } from "vue";
5
+ const l = (o) => m(c(() => e(r[t.locale], o))), a = () => ({
6
+ t: l
7
+ });
2
8
  export {
3
- s as isCssColor
9
+ a as useLocale
4
10
  };
package/dist/index240.js CHANGED
@@ -1,6 +1,5 @@
1
- import { curry as e } from "./index292.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import r from "./index299.js";
2
+ const t = r;
3
3
  export {
4
- t as baseWhen,
5
- s as when
4
+ t as deburr
6
5
  };
package/dist/index241.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
2
  export {
3
- o as booleanishToBoolean
3
+ s as isCssColor
4
4
  };
package/dist/index242.js CHANGED
@@ -1,6 +1,6 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ import { curry as e } from "./index300.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
4
3
  export {
5
- x as isHex
4
+ t as baseWhen,
5
+ s as when
6
6
  };
package/dist/index243.js CHANGED
@@ -1,5 +1,4 @@
1
- import r from "./index297.js";
2
- const t = r;
1
+ const o = (e) => typeof e == "boolean" ? e : e === "true";
3
2
  export {
4
- t as deburr
3
+ o as booleanishToBoolean
5
4
  };
package/dist/index244.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index300.js";
1
+ import f from "./index304.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/index245.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isNil as c } from "./index130.js";
1
+ import { isNil as c } from "./index251.js";
2
2
  const a = (t, r) => {
3
3
  if (!Object.prototype.hasOwnProperty.call(t, r))
4
4
  throw new Error(
package/dist/index246.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index228.js";
3
- import { isNil as l } from "./index130.js";
2
+ import { hash as d } from "./index218.js";
3
+ import { isNil as l } from "./index251.js";
4
4
  import E from "./index125.js";
5
5
  /* empty css */
6
6
  const K = /* @__PURE__ */ y({
package/dist/index248.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
2
- import { hash as f } from "./index228.js";
3
- import { isNil as i } from "./index130.js";
2
+ import { hash as f } from "./index218.js";
3
+ import { isNil as i } from "./index251.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
6
6
  props: {
package/dist/index25.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as ie, ref as o, computed as u, getCurrentInstance as ne, nextTick as N, useAttrs as re, onMounted as ue, onBeforeUnmount as G, watch as de, openBlock as k, createBlock as ce, withCtx as ve, createElementVNode as a, mergeProps as P, createElementBlock as $, renderSlot as d, createTextVNode as fe, toDisplayString as K, createCommentVNode as z } from "vue";
2
- import { throttle as be } from "./index237.js";
3
- import { useFocusTrap as pe } from "./index217.js";
1
+ import { defineComponent as ie, ref as o, computed as u, getCurrentInstance as ne, nextTick as N, useAttrs as re, onMounted as ue, onBeforeUnmount as G, watch as de, openBlock as _, createBlock as ce, withCtx as ve, createElementVNode as a, mergeProps as P, createElementBlock as $, renderSlot as d, createTextVNode as fe, toDisplayString as K, createCommentVNode as z } from "vue";
2
+ import { throttle as be } from "./index226.js";
3
+ import { useFocusTrap as pe } from "./index227.js";
4
4
  import { useId as U } from "./index8.js";
5
- import { wait as H } from "./index132.js";
6
- import { waitFor as me } from "./index219.js";
7
- import { useModalsState as _ } from "./index238.js";
8
- import { useLogger as ge } from "./index208.js";
5
+ import { wait as H } from "./index130.js";
6
+ import { waitFor as me } from "./index228.js";
7
+ import { useModalsState as C } from "./index229.js";
8
+ import { useLogger as ge } from "./index220.js";
9
9
  import { useMobile as ye } from "./index9.js";
10
- import he from "./index224.js";
10
+ import he from "./index230.js";
11
11
  const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PURE__ */ ie({
12
12
  __name: "BaseDialog",
13
13
  props: {
@@ -31,10 +31,10 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
31
31
  emits: ["shown", "hidden", "update:modelValue"],
32
32
  setup(j, { emit: q }) {
33
33
  var R, W;
34
- const l = j, c = q, C = `title_${U().id.value}`, B = `description_${U().id.value}`, { isMobile: J } = ye(), g = o(null), v = o(null), T = o(null), y = o(null), f = o(null), s = o(null), b = o(null), Q = o(null), M = u(
34
+ const l = j, c = q, B = `title_${U().id.value}`, V = `description_${U().id.value}`, { isMobile: J } = ye(), g = o(null), v = o(null), T = o(null), y = o(null), f = o(null), s = o(null), b = o(null), Q = o(null), M = u(
35
35
  () => l.fullscreen === !0 || l.fullscreen === "mobile" && J.value
36
36
  ), L = !!((W = (R = ne()) == null ? void 0 : R.proxy) != null && W.$nuxt), h = o(0), X = u(() => {
37
- const { openedModals: e } = _();
37
+ const { openedModals: e } = C();
38
38
  return e.value && e.value === h.value;
39
39
  }), { activate: Y, deactivate: x } = pe(T, {
40
40
  initialFocus: l.focusTarget ?? void 0,
@@ -50,7 +50,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
50
50
  }), G(() => {
51
51
  window.removeEventListener("resize", r);
52
52
  });
53
- const V = o(!1), p = o(!1), D = o(!0), m = o(!1), n = o(l.eager || l.modelValue), O = u(() => p.value || m.value), le = () => {
53
+ const w = o(!1), p = o(!1), D = o(!0), m = o(!1), n = o(l.eager || l.modelValue), O = u(() => p.value || m.value), le = () => {
54
54
  if (!globalThis.document) return;
55
55
  const e = window.innerWidth - document.documentElement.clientWidth;
56
56
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
@@ -59,18 +59,18 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
59
59
  };
60
60
  G(() => {
61
61
  if (l.modelValue) {
62
- const { openedModals: e, modalHasClosed: t } = _();
62
+ const { openedModals: e, modalHasClosed: t } = C();
63
63
  e.value && (t(), h.value = 0, S());
64
64
  }
65
65
  });
66
66
  const A = async () => {
67
67
  if (l.modelValue) {
68
68
  n.value || (n.value = !0, await me(() => !!s.value), await N(), s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value))), D.value = !1, m.value = !1, p.value = !0;
69
- const { modalHasOpened: e, openedModals: t } = _();
70
- e(), h.value = t.value, le(), await H(l.transitionDuration), p.value = !1, V.value = !0, c("shown"), Y();
69
+ const { modalHasOpened: e, openedModals: t } = C();
70
+ e(), h.value = t.value, le(), await H(l.transitionDuration), p.value = !1, w.value = !0, c("shown"), Y();
71
71
  } else {
72
- x(), p.value = !1, V.value = !1, m.value = !0, await H(l.transitionDuration), m.value = !1, D.value = !0;
73
- const { modalHasClosed: e, openedModals: t } = _();
72
+ x(), p.value = !1, w.value = !1, m.value = !0, await H(l.transitionDuration), m.value = !1, D.value = !0;
73
+ const { modalHasClosed: e, openedModals: t } = C();
74
74
  e(), h.value = 0, t.value || S(), c("hidden");
75
75
  }
76
76
  };
@@ -81,7 +81,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
81
81
  },
82
82
  { flush: "post" }
83
83
  );
84
- const w = (e) => {
84
+ const k = (e) => {
85
85
  e.target === v.value && e.preventDefault();
86
86
  }, te = (e) => {
87
87
  l.disabled || O.value || v.value && e.target === v.value && (l.persistent || c("update:modelValue", !1));
@@ -93,7 +93,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
93
93
  "bb-base-dialog bb-base-dialog__overlay": !0,
94
94
  "bb-base-dialog--fullscreen": M.value,
95
95
  "bb-base-dialog--faded": !X.value,
96
- "bb-base-dialog--open": V.value,
96
+ "bb-base-dialog--open": w.value,
97
97
  "bb-base-dialog--opening": p.value,
98
98
  "bb-base-dialog--closed": D.value,
99
99
  "bb-base-dialog--closing": m.value,
@@ -102,10 +102,10 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
102
102
  l.overlayClasses
103
103
  ].flat(), t = {
104
104
  onClick: te,
105
- onScroll: w,
106
- onTouchmove: w,
107
- onWheel: w,
108
- onKeydown: w
105
+ onScroll: k,
106
+ onTouchmove: k,
107
+ onWheel: k,
108
+ onKeydown: k
109
109
  }, i = {
110
110
  transitionDuration: l.transitionDuration / 1e3 + "s"
111
111
  };
@@ -124,9 +124,10 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
124
124
  l.panelClasses
125
125
  ].flat(), t = {
126
126
  role: "dialog",
127
- "aria-modal": !0
127
+ "aria-modal": !0,
128
+ "aria-live": w.value ? "polite" : "off"
128
129
  };
129
- n.value && (l.title && (t["aria-labelledby"] = C), l.description && (t["aria-describedby"] = B));
130
+ n.value && (l.title && (t["aria-labelledby"] = B), l.description && (t["aria-describedby"] = V));
130
131
  let i;
131
132
  const F = {
132
133
  sm: 384,
@@ -168,7 +169,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
168
169
  200,
169
170
  { trailing: !0 }
170
171
  );
171
- return (e, t) => (k(), ce(he, null, {
172
+ return (e, t) => (_(), ce(he, null, {
172
173
  default: ve(() => [
173
174
  a("div", P(oe.value, {
174
175
  ref_key: "overlay",
@@ -178,7 +179,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
178
179
  ref_key: "panel",
179
180
  ref: T
180
181
  }), [
181
- n.value ? (k(), $("div", {
182
+ n.value ? (_(), $("div", {
182
183
  key: 0,
183
184
  ref_key: "content",
184
185
  ref: y,
@@ -192,10 +193,10 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
192
193
  d(e.$slots, "header", {
193
194
  close: E,
194
195
  title: e.title,
195
- titleId: C
196
+ titleId: B
196
197
  }, () => [
197
198
  a("span", {
198
- id: C,
199
+ id: B,
199
200
  class: "bb-base-dialog__title"
200
201
  }, [
201
202
  d(e.$slots, "title", { text: e.title }, () => [
@@ -203,7 +204,7 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
203
204
  ])
204
205
  ]),
205
206
  a("span", we, [
206
- e.showClose ? (k(), $("button", {
207
+ e.showClose ? (_(), $("button", {
207
208
  key: 0,
208
209
  "aria-label": ee.value,
209
210
  type: "button",
@@ -236,12 +237,12 @@ const we = { class: "bb-base-dialog-close" }, ke = ["aria-label"], Le = /* @__PU
236
237
  class: "bb-base-dialog__body scrollbar-border"
237
238
  }, [
238
239
  d(e.$slots, "description", {
239
- descriptionId: B,
240
+ descriptionId: V,
240
241
  text: e.description
241
242
  }, () => [
242
- e.description ? (k(), $("div", {
243
+ e.description ? (_(), $("div", {
243
244
  key: 0,
244
- id: B,
245
+ id: V,
245
246
  class: "bb-base-dialog__description sr-only"
246
247
  }, K(e.description), 1)) : z("", !0)
247
248
  ]),
package/dist/index251.js CHANGED
@@ -1,12 +1,4 @@
1
- const o = (t, r) => {
2
- const e = {};
3
- for (const c in t)
4
- if (Object.prototype.hasOwnProperty.call(t, c)) {
5
- const n = t[c];
6
- r(n, c, t) && (e[c] = n);
7
- }
8
- return e;
9
- };
1
+ const r = (e) => typeof e > "u" || e === null;
10
2
  export {
11
- o as pickBy
3
+ r as isNil
12
4
  };
package/dist/index252.js CHANGED
@@ -1,5 +1,12 @@
1
- const o = () => {
1
+ const o = (t, r) => {
2
+ const e = {};
3
+ for (const c in t)
4
+ if (Object.prototype.hasOwnProperty.call(t, c)) {
5
+ const n = t[c];
6
+ r(n, c, t) && (e[c] = n);
7
+ }
8
+ return e;
2
9
  };
3
10
  export {
4
- o as noop
11
+ o as pickBy
5
12
  };
package/dist/index253.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/index254.js CHANGED
@@ -1,25 +1,11 @@
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
+ 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
+ };
23
9
  export {
24
- n as default
10
+ o as findRightIndex
25
11
  };
package/dist/index255.js CHANGED
@@ -1,91 +1,25 @@
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 "./index224.js";
3
- import f from "./index318.js";
4
- import { useFloating as D, arrow as E } from "./index209.js";
5
- import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index225.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(
24
- 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
- }));
87
- }
88
- });
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
+ ];
89
23
  export {
90
- j as default
24
+ n as default
91
25
  };
@@ -0,0 +1,91 @@
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 "./index323.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 "./index235.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(
24
+ 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
+ }));
87
+ }
88
+ });
89
+ export {
90
+ j as default
91
+ };
package/dist/index258.js CHANGED
@@ -1,18 +1,8 @@
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]),
8
- r,
9
- f
10
- );
11
- if (i)
12
- return i;
13
- }
14
- return t;
15
- }, null);
1
+ import e from "./index314.js";
2
+ import o from "./index315.js";
3
+ import r from "./index316.js";
4
+ const f = new r(o, e)._freeze();
16
5
  export {
17
- e as findInTree
6
+ r as Mime,
7
+ f as default
18
8
  };