bitboss-ui 2.0.175 → 2.0.176

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 (195) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
  2. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +1 -0
  3. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +34 -27
  4. package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
  5. package/dist/components/BbDialog/BbDialog.vue.d.ts +8 -3
  6. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  7. package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
  8. package/dist/index.css +1 -1
  9. package/dist/index106.js +9 -9
  10. package/dist/index111.js +1 -1
  11. package/dist/index113.js +1 -1
  12. package/dist/index121.js +11 -11
  13. package/dist/index129.js +20 -26
  14. package/dist/index13.js +1 -1
  15. package/dist/index131.js +4 -4
  16. package/dist/index133.js +1 -1
  17. package/dist/index136.js +1 -1
  18. package/dist/index137.js +2 -2
  19. package/dist/index138.js +1 -1
  20. package/dist/index139.js +2 -2
  21. package/dist/index15.js +9 -9
  22. package/dist/index17.js +2 -2
  23. package/dist/index19.js +8 -8
  24. package/dist/index207.js +2 -2
  25. package/dist/index208.js +2 -2
  26. package/dist/index209.js +13 -86
  27. package/dist/index21.js +16 -16
  28. package/dist/index210.js +68 -0
  29. package/dist/index212.js +175 -15
  30. package/dist/index213.js +86 -51
  31. package/dist/index215.js +29 -3
  32. package/dist/index216.js +16 -11
  33. package/dist/index217.js +48 -13
  34. package/dist/index218.js +15 -2
  35. package/dist/index219.js +3 -2
  36. package/dist/index220.js +11 -17
  37. package/dist/index221.js +15 -11
  38. package/dist/index222.js +33 -12
  39. package/dist/index223.js +2 -6
  40. package/dist/index224.js +1 -1
  41. package/dist/index225.js +2 -106
  42. package/dist/index226.js +7 -0
  43. package/dist/index227.js +5 -100
  44. package/dist/index228.js +7 -0
  45. package/dist/index229.js +5 -66
  46. package/dist/index23.js +15 -15
  47. package/dist/index230.js +7 -0
  48. package/dist/index231.js +5 -13
  49. package/dist/index232.js +2 -120
  50. package/dist/index233.js +4 -0
  51. package/dist/index234.js +2 -228
  52. package/dist/index235.js +13 -2
  53. package/dist/index236.js +11 -2
  54. package/dist/index237.js +20 -2
  55. package/dist/index238.js +113 -41
  56. package/dist/index240.js +102 -11
  57. package/dist/index242.js +100 -3
  58. package/dist/index244.js +4 -34
  59. package/dist/index245.js +194 -174
  60. package/dist/index247.js +18 -5
  61. package/dist/index248.js +12 -5
  62. package/dist/index249.js +6 -5
  63. package/dist/index25.js +154 -224
  64. package/dist/index250.js +228 -5
  65. package/dist/index251.js +13 -5
  66. package/dist/index252.js +3 -5
  67. package/dist/index253.js +5 -8
  68. package/dist/index254.js +5 -250
  69. package/dist/index255.js +6 -50
  70. package/dist/index256.js +242 -36
  71. package/dist/index257.js +52 -5
  72. package/dist/index258.js +31 -47
  73. package/dist/index259.js +5 -4
  74. package/dist/index260.js +60 -11
  75. package/dist/index261.js +2 -20
  76. package/dist/index262.js +2 -200
  77. package/dist/index263.js +11 -0
  78. package/dist/index264.js +23 -5
  79. package/dist/index265.js +10 -2
  80. package/dist/index266.js +3 -2
  81. package/dist/index267.js +41 -6
  82. package/dist/index268.js +7 -16
  83. package/dist/index269.js +15 -3
  84. package/dist/index27.js +1 -1
  85. package/dist/index270.js +3 -9
  86. package/dist/index271.js +6 -23
  87. package/dist/index272.js +16 -9
  88. package/dist/index273.js +9 -9
  89. package/dist/index274.js +9 -8
  90. package/dist/index275.js +7 -66
  91. package/dist/index276.js +2 -5
  92. package/dist/index277.js +5 -2
  93. package/dist/index278.js +67 -5
  94. package/dist/index279.js +4 -7
  95. package/dist/index280.js +8 -3
  96. package/dist/index282.js +7 -28
  97. package/dist/index283.js +3 -471
  98. package/dist/index284.js +3 -2
  99. package/dist/index285.js +17 -7
  100. package/dist/index286.js +27 -10
  101. package/dist/index287.js +2 -4
  102. package/dist/index289.js +4 -5
  103. package/dist/index29.js +3 -3
  104. package/dist/index290.js +278 -198
  105. package/dist/index291.js +2 -3
  106. package/dist/index292.js +125 -3
  107. package/dist/index293.js +2 -3
  108. package/dist/index294.js +17 -0
  109. package/dist/index295.js +2 -7
  110. package/dist/index296.js +16 -3
  111. package/dist/index297.js +2 -2
  112. package/dist/index298.js +16 -3
  113. package/dist/index299.js +2 -280
  114. package/dist/index300.js +19 -2
  115. package/dist/index301.js +2 -16
  116. package/dist/index302.js +3 -2
  117. package/dist/index303.js +7 -16
  118. package/dist/index304.js +11 -2
  119. package/dist/index305.js +3 -19
  120. package/dist/index306.js +3 -2
  121. package/dist/index307.js +3 -15
  122. package/dist/index308.js +6 -2
  123. package/dist/index309.js +2 -19
  124. package/dist/index31.js +1 -1
  125. package/dist/index310.js +5 -2
  126. package/dist/index311.js +15 -23
  127. package/dist/index313.js +27 -2
  128. package/dist/index314.js +2 -2
  129. package/dist/index316.js +1 -1
  130. package/dist/index317.js +1 -21
  131. package/dist/index318.js +4 -0
  132. package/dist/index319.js +22 -6
  133. package/dist/index321.js +471 -2
  134. package/dist/index322.js +1 -1
  135. package/dist/index323.js +2 -2
  136. package/dist/index324.js +199 -700
  137. package/dist/index325.js +699 -352
  138. package/dist/index326.js +354 -58
  139. package/dist/index327.js +58 -2
  140. package/dist/index328.js +2 -228
  141. package/dist/index329.js +6 -128
  142. package/dist/index33.js +8 -8
  143. package/dist/index330.js +44 -366
  144. package/dist/index331.js +128 -6
  145. package/dist/index332.js +366 -16
  146. package/dist/index333.js +6 -6
  147. package/dist/index334.js +17 -45
  148. package/dist/index335.js +32 -7
  149. package/dist/index336.js +28 -6
  150. package/dist/index340.js +7 -32
  151. package/dist/index341.js +6 -28
  152. package/dist/index343.js +221 -86
  153. package/dist/index344.js +89 -125
  154. package/dist/index345.js +467 -421
  155. package/dist/index346.js +123 -121
  156. package/dist/index348.js +5 -0
  157. package/dist/index349.js +47 -3
  158. package/dist/index35.js +4 -4
  159. package/dist/index350.js +429 -40
  160. package/dist/index351.js +129 -0
  161. package/dist/index37.js +19 -19
  162. package/dist/index39.js +5 -5
  163. package/dist/index41.js +1 -1
  164. package/dist/index43.js +8 -8
  165. package/dist/index45.js +8 -8
  166. package/dist/index47.js +2 -2
  167. package/dist/index49.js +3 -3
  168. package/dist/index53.js +1 -1
  169. package/dist/index55.js +1 -1
  170. package/dist/index57.js +2 -2
  171. package/dist/index61.js +3 -3
  172. package/dist/index67.js +1 -1
  173. package/dist/index73.js +23 -26
  174. package/dist/index77.js +32 -34
  175. package/dist/index79.js +4 -4
  176. package/dist/index81.js +1 -1
  177. package/dist/index83.js +2 -2
  178. package/dist/index85.js +1 -1
  179. package/dist/index87.js +1 -1
  180. package/dist/index90.js +4 -4
  181. package/dist/index92.js +2 -2
  182. package/dist/index94.js +7 -6
  183. package/dist/index96.js +1 -1
  184. package/dist/utilities/functions/parseSize.d.ts +2 -0
  185. package/package.json +2 -2
  186. package/dist/index211.js +0 -31
  187. package/dist/index214.js +0 -17
  188. package/dist/index239.js +0 -9
  189. package/dist/index241.js +0 -12
  190. package/dist/index243.js +0 -5
  191. package/dist/index246.js +0 -7
  192. package/dist/index281.js +0 -19
  193. package/dist/index320.js +0 -127
  194. package/dist/index347.js +0 -484
  195. /package/dist/{index337.js → index342.js} +0 -0
package/dist/index257.js CHANGED
@@ -1,7 +1,54 @@
1
- import o from "./index317.js";
2
- /* empty css */
3
- import t from "./index295.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
1
+ import { defineComponent as p, ref as b, watch as _, computed as m, createElementBlock as d, openBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
+ import k from "./index259.js";
3
+ const y = { class: "bb-base-date-picker__year-container" }, v = {
4
+ "aria-live": "polite",
5
+ class: "bb-base-date-picker__selected-day-label"
6
+ }, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
7
+ __name: "BaseDatePickerHeader",
8
+ props: {
9
+ cursor: {},
10
+ disabled: { type: Boolean },
11
+ hidden: { type: Boolean }
12
+ },
13
+ emits: ["mode:year", "mode:month"],
14
+ setup(n) {
15
+ const s = n, r = b("top"), l = (e, a) => {
16
+ e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
17
+ };
18
+ _(
19
+ () => s.cursor,
20
+ (e, a) => {
21
+ l(e, a);
22
+ }
23
+ );
24
+ const i = m(() => s.cursor.format("YYYY"));
25
+ return (e, a) => (c(), d("div", {
26
+ class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
27
+ }, [
28
+ t("div", y, [
29
+ h(k, {
30
+ direction: r.value,
31
+ duration: 500,
32
+ gap: 30
33
+ }, {
34
+ default: f(() => [
35
+ (c(), d("span", {
36
+ key: i.value,
37
+ "aria-live": "polite",
38
+ class: "bb-base-date-picker__year-button"
39
+ }, o(i.value), 1))
40
+ ]),
41
+ _: 1
42
+ }, 8, ["direction"])
43
+ ]),
44
+ t("div", v, [
45
+ t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
46
+ t("span", D, o(e.cursor.format("DD")), 1),
47
+ t("span", M, o(e.cursor.format("MMMM")), 1)
48
+ ])
49
+ ], 2));
50
+ }
51
+ });
5
52
  export {
6
- m as default
53
+ C as default
7
54
  };
package/dist/index258.js CHANGED
@@ -1,62 +1,46 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, 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 "./index333.js";
3
- import M from "./index13.js";
1
+ import { defineComponent as _, computed as a, createElementBlock as c, openBlock as o, 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";
4
3
  /* empty css */
5
- const n = 10, l = 3, V = /* @__PURE__ */ g({
6
- __name: "BaseDatePickerYearSelector",
4
+ const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
+ __name: "BaseDatePickerMonthSelector",
7
6
  props: {
8
7
  cursor: {},
9
8
  disabled: { type: Boolean }
10
9
  },
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({
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({
45
28
  content__btn: !0,
46
- "content__btn--selected": a.selected
29
+ "content__btn--selected": e.selected
47
30
  }),
48
- disabled: e.disabled,
49
- onClick: a.handler
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
50
34
  }, {
51
- default: T(() => [
52
- E(w(a.text), 1)
35
+ default: y(() => [
36
+ x(B(e.text), 1)
53
37
  ]),
54
38
  _: 2
55
39
  }, 1032, ["class", "disabled", "onClick"]))), 128))
56
- ], 32)
57
- ], 512));
40
+ ])
41
+ ]));
58
42
  }
59
43
  });
60
44
  export {
61
- V as default
45
+ E as default
62
46
  };
package/dist/index259.js CHANGED
@@ -1,6 +1,7 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ import o from "./index319.js";
2
+ /* empty css */
3
+ import t from "./index282.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
4
5
  export {
5
- x as isHex
6
+ m as default
6
7
  };
package/dist/index260.js CHANGED
@@ -1,13 +1,62 @@
1
- import { ref as a, watch as c, toValue as u } from "vue";
2
- const i = (e, { initialValue: o = !1, nextValue: r = !0 } = {}) => {
3
- const t = a(o), n = c(
4
- () => u(e),
5
- (s) => {
6
- s && (t.value = r, n());
7
- }
8
- );
9
- return t;
10
- };
1
+ import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, 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 "./index329.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
+ });
11
60
  export {
12
- i as useUntil
61
+ V as default
13
62
  };
package/dist/index261.js CHANGED
@@ -1,22 +1,4 @@
1
- import { MaskInput as r } from "./index245.js";
2
- const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
- if (a.arg == null || a.instance == null) return;
4
- const s = "setup" in a.instance.$.type;
5
- a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
- }, k = (a, n) => {
7
- var s;
8
- const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
- if (t == null || (t == null ? void 0 : t.type) === "file") return;
10
- let e = {};
11
- if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
- const l = (o) => {
13
- const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
- p(n, i);
15
- };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
- }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
- };
1
+ const o = (e) => e[0];
20
2
  export {
21
- k as vMaska
3
+ o as head
22
4
  };
package/dist/index262.js CHANGED
@@ -1,202 +1,4 @@
1
- import { defineComponent as j, ref as c, onMounted as J, watch as Q, createElementBlock as _, openBlock as R, createElementVNode as w, createTextVNode as B, createCommentVNode as K, toDisplayString as C, unref as x } from "vue";
2
- import { useResizeObserver as Z } from "./index137.js";
3
- import { hexToRgb as O } from "./index335.js";
4
- import { getHueFromRGB as F } from "./index336.js";
5
- import { hslToHex as y } from "./index337.js";
6
- import { useLocale as ee } from "./index222.js";
7
- const te = {
8
- id: "mainCanvasDesc",
9
- "aria-live": "polite",
10
- class: "sr-only"
11
- }, ae = { key: 0 }, ne = {
12
- id: "hueCanvasDesc",
13
- "aria-live": "polite",
14
- class: "sr-only"
15
- }, oe = { key: 0 }, de = /* @__PURE__ */ j({
16
- __name: "ColorPallette",
17
- props: {
18
- modelValue: {}
19
- },
20
- emits: ["update:modelValue"],
21
- setup(N, { emit: T }) {
22
- const D = N, f = T, { t: h } = ee(), o = c(D.modelValue), d = c(
23
- y(F(...O(o.value ?? "#ff0000")), 100, 50)
24
- ), P = c(null), s = c(null), r = c(null), l = c({ x: 0, y: 0 }), u = c({ x: 0 }), b = c(!1), k = c(!1), H = () => {
25
- const e = s.value, t = r.value;
26
- !e || !t || (e.width = e.offsetWidth, e.height = e.offsetHeight, t.width = t.offsetWidth, t.height = t.offsetHeight, v(), m());
27
- }, I = () => {
28
- const e = s.value;
29
- return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
30
- }, v = () => {
31
- const e = s.value;
32
- if (!e) return;
33
- const t = I();
34
- if (!t) return;
35
- t.clearRect(0, 0, e.width, e.height);
36
- const a = t.createLinearGradient(0, 0, e.width, 0);
37
- a.addColorStop(0, d.value), a.addColorStop(1, "#ffffff");
38
- const n = t.createLinearGradient(0, 0, 0, e.height);
39
- n.addColorStop(0, "transparent"), n.addColorStop(1, "#000000"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), t.fillStyle = n, t.globalCompositeOperation = "multiply", t.fillRect(0, 0, e.width, e.height), t.globalCompositeOperation = "source-over", t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
40
- }, p = () => {
41
- const e = I();
42
- e && (e.beginPath(), e.arc(
43
- l.value.x,
44
- l.value.y,
45
- 8,
46
- 0,
47
- 2 * Math.PI
48
- ), e.strokeStyle = "#ffffff", e.lineWidth = 2, e.stroke(), e.beginPath(), e.arc(
49
- l.value.x,
50
- l.value.y,
51
- 7,
52
- 0,
53
- 2 * Math.PI
54
- ), e.strokeStyle = "#000000", e.lineWidth = 1, e.stroke(), e.globalCompositeOperation = "source-over");
55
- }, V = () => {
56
- const e = r.value;
57
- return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
58
- }, m = () => {
59
- const e = r.value;
60
- if (!e) return;
61
- const t = V();
62
- if (!t) return;
63
- const a = t.createLinearGradient(0, 0, e.width, 0);
64
- for (let n = 0; n <= 360; n += 60)
65
- a.addColorStop(n / 360, `hsl(${n}, 100%, 50%)`);
66
- a.addColorStop(1, "hsl(360, 100%, 50%)"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), L(), t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
67
- }, L = () => {
68
- const e = r.value;
69
- if (!e) return;
70
- const t = V();
71
- if (!t) return;
72
- const a = 10, n = 16, i = u.value.x - a / 2, S = e.height / 2 - n / 2;
73
- t.beginPath(), t.roundRect(i, S, a, n, 2), t.strokeStyle = "lightgray", t.stroke(), t.fillStyle = "#ffffff", t.fill();
74
- }, q = (e) => {
75
- s.value && (window.addEventListener("pointermove", A), window.addEventListener("pointerup", E), b.value = !0, G(e));
76
- }, z = (e) => {
77
- r.value && (window.addEventListener("pointermove", A), window.addEventListener("pointerup", E), k.value = !0, W(e));
78
- }, G = (e) => {
79
- const t = s.value;
80
- if (!t) return;
81
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left)), i = Math.max(0, Math.min(t.height, e.clientY - a.top));
82
- l.value = { x: n, y: i }, v(), p(), o.value = g(), f("update:modelValue", o.value);
83
- }, W = (e) => {
84
- const t = r.value;
85
- if (!t) return;
86
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left));
87
- u.value = { x: n };
88
- const i = n / t.width * 360;
89
- d.value = y(i, 100, 50), m(), v(), p(), o.value = g(), f("update:modelValue", o.value);
90
- }, A = (e) => {
91
- b.value ? G(e) : k.value && W(e);
92
- }, E = () => {
93
- b.value = !1, k.value = !1;
94
- }, U = (e) => {
95
- var a, n;
96
- switch (e.key) {
97
- case "ArrowUp":
98
- l.value.y = Math.max(0, l.value.y - 5);
99
- break;
100
- case "ArrowDown":
101
- l.value.y = Math.min(
102
- ((a = s.value) == null ? void 0 : a.height) ?? 0,
103
- l.value.y + 5
104
- );
105
- break;
106
- case "ArrowLeft":
107
- l.value.x = Math.max(0, l.value.x - 5);
108
- break;
109
- case "ArrowRight":
110
- l.value.x = Math.min(
111
- ((n = s.value) == null ? void 0 : n.width) ?? 0,
112
- l.value.x + 5
113
- );
114
- break;
115
- default:
116
- return;
117
- }
118
- v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
119
- }, X = (e) => {
120
- var n, i;
121
- switch (e.key) {
122
- case "ArrowLeft":
123
- u.value.x = Math.max(0, u.value.x - 5);
124
- break;
125
- case "ArrowRight":
126
- u.value.x = Math.min(
127
- ((n = r.value) == null ? void 0 : n.width) ?? 0,
128
- u.value.x + 5
129
- );
130
- break;
131
- default:
132
- return;
133
- }
134
- const a = u.value.x / (((i = r.value) == null ? void 0 : i.width) ?? 1) * 360;
135
- d.value = y(a, 100, 50), m(), L(), v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
136
- };
137
- J(() => {
138
- H(), M(o.value ?? "#ff0000");
139
- }), Z(P, () => {
140
- H(), M(o.value ?? "#ff0000");
141
- }), Q(
142
- () => D.modelValue,
143
- (e) => {
144
- !e || e === o.value || (o.value = e, M(e), m(), v());
145
- }
146
- );
147
- const g = () => {
148
- const e = s.value;
149
- if (!e) return "#ffffff";
150
- const t = e.getContext("2d");
151
- if (!t) return "#ffffff";
152
- const { x: a, y: n } = l.value, i = t.getImageData(a, n, 1, 1).data, [S, $, Y] = i;
153
- return `#${((1 << 24) + (S << 16) + ($ << 8) + Y).toString(16).slice(1)}`;
154
- };
155
- function M(e) {
156
- var a;
157
- const t = F(...O(e));
158
- d.value = y(t, 100, 50), u.value.x = t / 360 * (((a = r.value) == null ? void 0 : a.width) ?? 0);
159
- }
160
- return (e, t) => (R(), _("div", {
161
- ref_key: "paletteRef",
162
- ref: P,
163
- "aria-label": "Color Picker",
164
- class: "bb-color-palette",
165
- role: "application"
166
- }, [
167
- w("canvas", {
168
- ref_key: "mainCanvasRef",
169
- ref: s,
170
- "aria-describedby": "mainCanvasDesc",
171
- "aria-label": "Main Color Selection",
172
- class: "bb-color-palette__canvas",
173
- role: "application",
174
- tabindex: "0",
175
- onKeydown: U,
176
- onPointerdown: q
177
- }, null, 544),
178
- w("p", te, [
179
- B(C(x(h)("colorInput.mainCanvasDesc")) + " ", 1),
180
- o.value ? (R(), _("span", ae, C(x(h)("colorInput.mainCanvasSelectedColor", o.value)), 1)) : K("", !0)
181
- ]),
182
- w("canvas", {
183
- ref_key: "hueCanvasRef",
184
- ref: r,
185
- "aria-describedby": "hueCanvasDesc",
186
- "aria-label": "Hue Selection",
187
- class: "bb-color-palette__hue-canvas",
188
- role: "application",
189
- tabindex: "0",
190
- onKeydown: X,
191
- onPointerdown: z
192
- }, null, 544),
193
- w("p", ne, [
194
- B(C(x(h)("colorInput.hueCanvasDesc")) + " ", 1),
195
- d.value ? (R(), _("span", oe, C(x(h)("colorInput.hueCanvasSelectedHue", d.value)), 1)) : K("", !0)
196
- ])
197
- ], 512));
198
- }
199
- });
1
+ const r = (e) => typeof e > "u" || e === null;
200
2
  export {
201
- de as default
3
+ r as isNil
202
4
  };
@@ -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/index264.js CHANGED
@@ -1,7 +1,25 @@
1
- import { getDefaultExportFromCjs as r } from "./index319.js";
2
- import { __require as o } from "./index320.js";
3
- var t = o();
4
- const m = /* @__PURE__ */ r(t);
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
- m as default
24
+ n as default
7
25
  };
package/dist/index265.js CHANGED
@@ -1,4 +1,12 @@
1
- const e = (t) => t;
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
+ };
2
10
  export {
3
- e as identity
11
+ o as pickBy
4
12
  };
package/dist/index266.js CHANGED
@@ -1,4 +1,5 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ const o = () => {
2
+ };
2
3
  export {
3
- o as booleanishToBoolean
4
+ o as noop
4
5
  };
package/dist/index267.js CHANGED
@@ -1,8 +1,43 @@
1
- import e from "./index324.js";
2
- import o from "./index325.js";
3
- import r from "./index326.js";
4
- const f = new r(o, e)._freeze();
1
+ import { unrefElement as g } from "./index137.js";
2
+ import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
3
+ import { createFocusTrap as F } from "./index321.js";
4
+ import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
5
+ function N(f, a = {}) {
6
+ let t;
7
+ const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
8
+ t && (t.pause(), r.value = !0);
9
+ }, m = () => {
10
+ t && (t.unpause(), r.value = !1);
11
+ }, h = T(() => {
12
+ const e = i(f);
13
+ return A(e).map((d) => {
14
+ const s = i(d);
15
+ return typeof s == "string" ? s : g(s);
16
+ }).filter(D);
17
+ });
18
+ return w(
19
+ h,
20
+ (e) => {
21
+ e.length && (t = F(e, {
22
+ ...p,
23
+ onActivate() {
24
+ o.value = !0, a.onActivate && a.onActivate();
25
+ },
26
+ onDeactivate() {
27
+ o.value = !1, a.onDeactivate && a.onDeactivate();
28
+ }
29
+ }), l && c());
30
+ },
31
+ { flush: "post" }
32
+ ), y(() => u()), {
33
+ hasFocus: o,
34
+ isPaused: r,
35
+ activate: c,
36
+ deactivate: u,
37
+ pause: v,
38
+ unpause: m
39
+ };
40
+ }
5
41
  export {
6
- r as Mime,
7
- f as default
42
+ N as useFocusTrap
8
43
  };
package/dist/index268.js CHANGED
@@ -1,18 +1,9 @@
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 { ref as e } from "vue";
2
+ const o = e(0), s = () => {
3
+ o.value++;
4
+ }, a = () => {
5
+ o.value--;
6
+ }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
16
7
  export {
17
- e as findInTree
8
+ d as useModalsState
18
9
  };
package/dist/index269.js CHANGED
@@ -1,5 +1,17 @@
1
- import t from "./index323.js";
2
- const r = t;
1
+ import { defineComponent as a, getCurrentInstance as c, createBlock as l, openBlock as u, Teleport as f, unref as d, renderSlot as m } from "vue";
2
+ const i = /* @__PURE__ */ a({
3
+ __name: "BbTeleport",
4
+ props: {
5
+ target: {}
6
+ },
7
+ setup(o) {
8
+ var t, e;
9
+ const r = o, n = !!((e = (t = c()) == null ? void 0 : t.proxy) != null && e.$nuxt), p = r.target || (n ? "#teleports" : "body");
10
+ return (s, _) => (u(), l(f, { to: d(p) }, [
11
+ m(s.$slots, "default")
12
+ ], 8, ["to"]));
13
+ }
14
+ });
3
15
  export {
4
- r as throttle
16
+ i as default
5
17
  };
package/dist/index27.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as n, createElementBlock as c, openBlock as r, normalizeClass as T, createBlock as w, createVNode as B, createElementVNode as p, resolveDynamicComponent as E, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as P, createTextVNode as V, toDisplayString as d, unref as m, Fragment as D, renderList as I } from "vue";
2
- import { deburr as N } from "./index243.js";
2
+ import { deburr as N } from "./index252.js";
3
3
  import { getAsPercentage as $ } from "./index136.js";
4
4
  import { useId as F } from "./index8.js";
5
5
  import R from "./index69.js";
package/dist/index270.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;
8
- };
1
+ import t from "./index323.js";
2
+ const r = t;
9
3
  export {
10
- o as findRightIndex
4
+ r as throttle
11
5
  };