bitboss-ui 2.0.78 → 2.0.80

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 (160) 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 +14 -14
  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 +2 -2
  27. package/dist/index206.js +4 -8
  28. package/dist/index207.js +2 -3
  29. package/dist/index208.js +3 -41
  30. package/dist/index209.js +41 -6
  31. package/dist/index21.js +14 -14
  32. package/dist/index210.js +6 -7
  33. package/dist/index211.js +7 -5
  34. package/dist/index212.js +8 -16
  35. package/dist/index213.js +12 -16
  36. package/dist/index214.js +53 -19
  37. package/dist/index216.js +13 -27
  38. package/dist/index217.js +20 -3
  39. package/dist/index218.js +4 -2
  40. package/dist/index219.js +122 -245
  41. package/dist/index220.js +5 -52
  42. package/dist/index221.js +125 -44
  43. package/dist/index222.js +19 -5
  44. package/dist/index223.js +15 -59
  45. package/dist/index224.js +15 -52
  46. package/dist/index225.js +4 -0
  47. package/dist/index226.js +2 -13
  48. package/dist/index227.js +5 -164
  49. package/dist/index228.js +368 -83
  50. package/dist/index229.js +166 -0
  51. package/dist/index23.js +188 -187
  52. package/dist/index230.js +84 -3
  53. package/dist/index232.js +81 -125
  54. package/dist/index233.js +19 -2
  55. package/dist/index234.js +26 -19
  56. package/dist/index235.js +3 -5
  57. package/dist/index236.js +246 -366
  58. package/dist/index237.js +52 -4
  59. package/dist/index238.js +44 -2
  60. package/dist/index239.js +5 -4
  61. package/dist/index240.js +60 -2
  62. package/dist/index241.js +3 -2
  63. package/dist/index242.js +1 -1
  64. package/dist/index244.js +1 -1
  65. package/dist/index246.js +1 -1
  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 +4 -2
  77. package/dist/index259.js +3 -2
  78. package/dist/index261.js +7 -2
  79. package/dist/index262.js +176 -2
  80. package/dist/index263.js +431 -2
  81. package/dist/index264.js +1 -1
  82. package/dist/index265.js +89 -2
  83. package/dist/index266.js +200 -2
  84. package/dist/index267.js +3 -2
  85. package/dist/index268.js +12 -28
  86. package/dist/index269.js +8 -21
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +11 -0
  89. package/dist/index271.js +17 -7
  90. package/dist/index272.js +3 -430
  91. package/dist/index273.js +280 -88
  92. package/dist/index274.js +5 -8
  93. package/dist/index275.js +2 -3
  94. package/dist/index276.js +4 -0
  95. package/dist/index277.js +2 -200
  96. package/dist/index278.js +2 -3
  97. package/dist/index279.js +2 -12
  98. package/dist/index280.js +124 -7
  99. package/dist/index281.js +20 -7
  100. package/dist/index283.js +435 -3
  101. package/dist/index284.js +121 -218
  102. package/dist/index285.js +2 -2
  103. package/dist/index286.js +2 -126
  104. package/dist/index287.js +2 -176
  105. package/dist/index288.js +1 -21
  106. package/dist/index289.js +4 -0
  107. package/dist/index29.js +3 -3
  108. package/dist/index290.js +2 -4
  109. package/dist/index291.js +23 -431
  110. package/dist/index292.js +21 -126
  111. package/dist/index294.js +224 -3
  112. package/dist/index295.js +1 -1
  113. package/dist/index296.js +3 -5
  114. package/dist/index297.js +204 -59
  115. package/dist/index298.js +2 -211
  116. package/dist/index299.js +5 -5
  117. package/dist/index300.js +66 -8
  118. package/dist/index304.js +1 -1
  119. package/dist/index305.js +4 -3
  120. package/dist/index306.js +7 -6
  121. package/dist/index307.js +32 -6
  122. package/dist/index308.js +3 -18
  123. package/dist/index309.js +6 -32
  124. package/dist/index31.js +2 -2
  125. package/dist/index310.js +46 -10
  126. package/dist/index311.js +10 -46
  127. package/dist/index312.js +7 -12
  128. package/dist/index313.js +19 -480
  129. package/dist/index314.js +1 -1
  130. package/dist/index315.js +482 -0
  131. package/dist/index317.js +1 -1
  132. package/dist/index318.js +47 -2
  133. package/dist/index319.js +2 -47
  134. package/dist/index33.js +2 -2
  135. package/dist/index35.js +3 -3
  136. package/dist/index37.js +97 -96
  137. package/dist/index39.js +4 -4
  138. package/dist/index41.js +2 -2
  139. package/dist/index43.js +2 -2
  140. package/dist/index45.js +6 -6
  141. package/dist/index47.js +2 -2
  142. package/dist/index49.js +2 -2
  143. package/dist/index55.js +1 -1
  144. package/dist/index57.js +1 -1
  145. package/dist/index61.js +2 -2
  146. package/dist/index75.js +3 -3
  147. package/dist/index79.js +2 -2
  148. package/dist/index81.js +1 -1
  149. package/dist/index84.js +110 -106
  150. package/dist/index86.js +1 -1
  151. package/dist/index88.js +4 -4
  152. package/dist/index90.js +1 -1
  153. package/package.json +1 -1
  154. package/dist/index215.js +0 -21
  155. package/dist/index231.js +0 -128
  156. package/dist/index256.js +0 -283
  157. package/dist/index260.js +0 -4
  158. package/dist/index282.js +0 -19
  159. package/dist/index293.js +0 -4
  160. package/dist/index316.js +0 -4
package/dist/index238.js CHANGED
@@ -1,4 +1,46 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { defineComponent as _, computed as a, openBlock as o, createElementBlock as c, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
2
+ import C from "./index13.js";
3
+ /* empty css */
4
+ const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
+ __name: "BaseDatePickerMonthSelector",
6
+ props: {
7
+ cursor: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:month"],
11
+ setup(l, { emit: d }) {
12
+ const s = l, m = d, i = a(() => s.cursor.month()), u = a(
13
+ () => new Array(12).fill(0).map((r, t) => {
14
+ const n = s.cursor.clone().startOf("year").add(t, "month");
15
+ return {
16
+ text: n.format("MMMM"),
17
+ key: n.unix(),
18
+ selected: n.month() === i.value,
19
+ handler: () => m("update:month", t)
20
+ };
21
+ })
22
+ );
23
+ return (r, t) => (o(), c("div", M, [
24
+ p("div", v, [
25
+ (o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
26
+ key: e.key,
27
+ class: f({
28
+ content__btn: !0,
29
+ "content__btn--selected": e.selected
30
+ }),
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
34
+ }, {
35
+ default: y(() => [
36
+ x(B(e.text), 1)
37
+ ]),
38
+ _: 2
39
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
40
+ ])
41
+ ]));
42
+ }
43
+ });
2
44
  export {
3
- s as isCssColor
45
+ E as default
4
46
  };
package/dist/index239.js CHANGED
@@ -1,6 +1,7 @@
1
- import { curry as e } from "./index290.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import o from "./index292.js";
2
+ /* empty css */
3
+ import t from "./index261.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
3
5
  export {
4
- t as baseWhen,
5
- s as when
6
+ m as default
6
7
  };
package/dist/index240.js CHANGED
@@ -1,4 +1,62 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import { defineComponent as g, ref as i, computed as d, onMounted as h, openBlock as u, createElementBlock as m, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
+ import { range as H } from "./index309.js";
3
+ import M from "./index13.js";
4
+ /* empty css */
5
+ const n = 10, l = 3, V = /* @__PURE__ */ g({
6
+ __name: "BaseDatePickerYearSelector",
7
+ props: {
8
+ cursor: {},
9
+ disabled: { type: Boolean }
10
+ },
11
+ emits: ["update:year"],
12
+ setup(p, { emit: _ }) {
13
+ const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
+ () => H(c.value, s.value).map((e) => ({
15
+ text: e,
16
+ key: e,
17
+ selected: e === r.value,
18
+ handler: () => b("update:year", e)
19
+ }))
20
+ ), k = (e) => {
21
+ const t = e.target;
22
+ t.scrollTop <= 100 ? c.value = Math.max(
23
+ c.value - n * l,
24
+ r.value - 200
25
+ ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
+ };
27
+ return h(() => {
28
+ if (!o.value) return;
29
+ const e = o.value.querySelector(
30
+ ".content__btn--selected"
31
+ );
32
+ e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
+ }), (e, t) => (u(), m("div", {
34
+ ref_key: "container",
35
+ ref: o,
36
+ class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
+ }, [
38
+ y("div", {
39
+ class: "content",
40
+ onScrollPassive: k
41
+ }, [
42
+ (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
+ key: a.key,
44
+ class: S({
45
+ content__btn: !0,
46
+ "content__btn--selected": a.selected
47
+ }),
48
+ disabled: e.disabled,
49
+ onClick: a.handler
50
+ }, {
51
+ default: T(() => [
52
+ E(w(a.text), 1)
53
+ ]),
54
+ _: 2
55
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
56
+ ], 32)
57
+ ], 512));
58
+ }
59
+ });
2
60
  export {
3
- o as booleanishToBoolean
61
+ V as default
4
62
  };
package/dist/index241.js CHANGED
@@ -1,4 +1,5 @@
1
- const o = (e) => e[0];
1
+ import r from "./index294.js";
2
+ const t = r;
2
3
  export {
3
- o as head
4
+ t as deburr
4
5
  };
package/dist/index242.js CHANGED
@@ -1,5 +1,5 @@
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 "./index217.js";
2
+ import { hash as d } from "./index235.js";
3
3
  import { isNil as l } from "./index129.js";
4
4
  import E from "./index124.js";
5
5
  /* empty css */
package/dist/index244.js CHANGED
@@ -1,5 +1,5 @@
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 "./index217.js";
2
+ import { hash as f } from "./index235.js";
3
3
  import { isNil as i } from "./index129.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
package/dist/index246.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index298.js";
1
+ import f from "./index297.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/index248.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 o = (e) => e[0];
10
2
  export {
11
- o as pickBy
3
+ o as head
12
4
  };
package/dist/index249.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/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 "./index208.js";
3
+ import { useFocusTrap as fe } from "./index209.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 "./index210.js";
7
+ import { useModalsState as _ } from "./index211.js";
8
+ import { useLogger as pe } from "./index212.js";
9
+ import me from "./index213.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
+ };