bitboss-ui 2.0.71 → 2.0.72

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 (138) hide show
  1. package/dist/index110.js +4 -4
  2. package/dist/index118.js +1 -1
  3. package/dist/index120.js +4 -4
  4. package/dist/index122.js +1 -1
  5. package/dist/index126.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index133.js +2 -2
  9. package/dist/index15.js +4 -4
  10. package/dist/index17.js +3 -3
  11. package/dist/index19.js +3 -3
  12. package/dist/index207.js +2 -164
  13. package/dist/index208.js +4 -84
  14. package/dist/index209.js +4 -0
  15. package/dist/index21.js +13 -13
  16. package/dist/index210.js +51 -124
  17. package/dist/index212.js +13 -125
  18. package/dist/index213.js +20 -19
  19. package/dist/index214.js +4 -16
  20. package/dist/index215.js +162 -14
  21. package/dist/index216.js +84 -2
  22. package/dist/index218.js +3 -41
  23. package/dist/index219.js +41 -20
  24. package/dist/index221.js +7 -53
  25. package/dist/index222.js +128 -0
  26. package/dist/index223.js +5 -13
  27. package/dist/index224.js +125 -5
  28. package/dist/index225.js +17 -367
  29. package/dist/index226.js +16 -2
  30. package/dist/index227.js +16 -4
  31. package/dist/index228.js +2 -2
  32. package/dist/index229.js +2 -3
  33. package/dist/index23.js +14 -14
  34. package/dist/index230.js +5 -7
  35. package/dist/index231.js +369 -3
  36. package/dist/index232.js +3 -19
  37. package/dist/index233.js +14 -22
  38. package/dist/index234.js +27 -3
  39. package/dist/index235.js +3 -249
  40. package/dist/index236.js +239 -42
  41. package/dist/index237.js +43 -35
  42. package/dist/index238.js +44 -5
  43. package/dist/index239.js +5 -60
  44. package/dist/index240.js +60 -4
  45. package/dist/index241.js +2 -2
  46. package/dist/index242.js +18 -2
  47. package/dist/index243.js +105 -17
  48. package/dist/{index246.js → index245.js} +1 -1
  49. package/dist/index247.js +4 -0
  50. package/dist/index25.js +3 -3
  51. package/dist/index250.js +6 -3
  52. package/dist/index251.js +15 -8
  53. package/dist/index252.js +3 -23
  54. package/dist/index253.js +9 -6
  55. package/dist/index254.js +23 -16
  56. package/dist/index256.js +4 -3
  57. package/dist/index257.js +3 -12
  58. package/dist/index259.js +7 -9
  59. package/dist/index260.js +174 -15
  60. package/dist/index261.js +66 -4
  61. package/dist/index262.js +2 -281
  62. package/dist/index263.js +9 -6
  63. package/dist/index264.js +3 -2
  64. package/dist/index265.js +12 -2
  65. package/dist/index266.js +9 -2
  66. package/dist/index267.js +17 -2
  67. package/dist/index268.js +4 -2
  68. package/dist/index269.js +423 -118
  69. package/dist/index27.js +1 -1
  70. package/dist/index270.js +82 -424
  71. package/dist/index271.js +279 -174
  72. package/dist/index272.js +6 -3
  73. package/dist/index273.js +4 -0
  74. package/dist/index274.js +2 -7
  75. package/dist/index275.js +2 -22
  76. package/dist/index276.js +4 -0
  77. package/dist/index277.js +2 -4
  78. package/dist/index278.js +117 -427
  79. package/dist/index279.js +21 -126
  80. package/dist/index281.js +197 -86
  81. package/dist/index282.js +1 -1
  82. package/dist/index283.js +436 -2
  83. package/dist/index284.js +127 -2
  84. package/dist/index285.js +2 -2
  85. package/dist/index286.js +2 -2
  86. package/dist/index287.js +1 -1
  87. package/dist/index288.js +1 -1
  88. package/dist/index289.js +2 -28
  89. package/dist/index29.js +2 -2
  90. package/dist/index290.js +1 -21
  91. package/dist/index291.js +30 -0
  92. package/dist/index292.js +22 -2
  93. package/dist/index294.js +5 -66
  94. package/dist/index295.js +1 -1
  95. package/dist/index296.js +1 -1
  96. package/dist/index297.js +1 -1
  97. package/dist/index298.js +4 -79
  98. package/dist/index299.js +6 -0
  99. package/dist/index300.js +59 -4
  100. package/dist/index301.js +5 -4
  101. package/dist/index302.js +7 -58
  102. package/dist/index303.js +79 -5
  103. package/dist/index305.js +3 -32
  104. package/dist/index306.js +2 -4
  105. package/dist/index307.js +32 -6
  106. package/dist/index308.js +6 -10
  107. package/dist/index309.js +18 -6
  108. package/dist/index31.js +2 -2
  109. package/dist/index310.js +5 -17
  110. package/dist/index311.js +11 -2
  111. package/dist/index313.js +2 -2
  112. package/dist/index315.js +1 -1
  113. package/dist/index316.js +2 -47
  114. package/dist/index317.js +47 -2
  115. package/dist/index33.js +13 -13
  116. package/dist/index35.js +3 -3
  117. package/dist/index37.js +11 -11
  118. package/dist/index39.js +3 -3
  119. package/dist/index41.js +2 -2
  120. package/dist/index43.js +11 -11
  121. package/dist/index45.js +6 -6
  122. package/dist/index47.js +2 -2
  123. package/dist/index49.js +2 -2
  124. package/dist/index55.js +1 -1
  125. package/dist/index57.js +1 -1
  126. package/dist/index75.js +3 -3
  127. package/dist/index79.js +2 -2
  128. package/dist/index81.js +1 -1
  129. package/dist/index84.js +2 -2
  130. package/dist/index88.js +2 -2
  131. package/package.json +1 -1
  132. package/dist/index211.js +0 -7
  133. package/dist/index217.js +0 -4
  134. package/dist/index244.js +0 -108
  135. package/dist/index258.js +0 -11
  136. package/dist/index280.js +0 -202
  137. package/dist/index293.js +0 -7
  138. package/dist/index304.js +0 -10
package/dist/index302.js CHANGED
@@ -1,61 +1,10 @@
1
- var o = function(a, e, s, t) {
2
- if (s === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof e == "function" ? a !== e || !t : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return s === "m" ? t : s === "a" ? t.call(a) : t ? t.value : e.get(a);
5
- }, r, l, i;
6
- class d {
7
- constructor(...e) {
8
- r.set(this, /* @__PURE__ */ new Map()), l.set(this, /* @__PURE__ */ new Map()), i.set(this, /* @__PURE__ */ new Map());
9
- for (const s of e)
10
- this.define(s);
11
- }
12
- define(e, s = !1) {
13
- for (let [t, f] of Object.entries(e)) {
14
- t = t.toLowerCase(), f = f.map((n) => n.toLowerCase()), o(this, i, "f").has(t) || o(this, i, "f").set(t, /* @__PURE__ */ new Set());
15
- const h = o(this, i, "f").get(t);
16
- let u = !0;
17
- for (let n of f) {
18
- const w = n.startsWith("*");
19
- if (n = w ? n.slice(1) : n, h == null || h.add(n), u && o(this, l, "f").set(t, n), u = !1, w)
20
- continue;
21
- const c = o(this, r, "f").get(n);
22
- if (c && c != t && !s)
23
- throw new Error(`"${t} -> ${n}" conflicts with "${c} -> ${n}". Pass \`force=true\` to override this definition.`);
24
- o(this, r, "f").set(n, t);
25
- }
26
- }
27
- return this;
28
- }
29
- getType(e) {
30
- if (typeof e != "string")
31
- return null;
32
- const s = e.replace(/^.*[/\\]/, "").toLowerCase(), t = s.replace(/^.*\./, "").toLowerCase(), f = s.length < e.length;
33
- return !(t.length < s.length - 1) && f ? null : o(this, r, "f").get(t) ?? null;
34
- }
35
- getExtension(e) {
36
- var s;
37
- return typeof e != "string" ? null : (e = (s = e == null ? void 0 : e.split) == null ? void 0 : s.call(e, ";")[0], (e && o(this, l, "f").get(e.trim().toLowerCase())) ?? null);
38
- }
39
- getAllExtensions(e) {
40
- return typeof e != "string" ? null : o(this, i, "f").get(e.toLowerCase()) ?? null;
41
- }
42
- _freeze() {
43
- this.define = () => {
44
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
45
- }, Object.freeze(this);
46
- for (const e of o(this, i, "f").values())
47
- Object.freeze(e);
48
- return this;
49
- }
50
- _getTestState() {
51
- return {
52
- types: o(this, r, "f"),
53
- extensions: o(this, l, "f")
54
- };
55
- }
1
+ import { getType as o } from "./index305.js";
2
+ function c(e) {
3
+ if (o(e) !== "Object")
4
+ return !1;
5
+ const t = Object.getPrototypeOf(e);
6
+ return !!t && t.constructor === Object && t === Object.prototype;
56
7
  }
57
- r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap();
58
- const g = d;
59
8
  export {
60
- g as default
9
+ c as isPlainObject
61
10
  };
package/dist/index303.js CHANGED
@@ -1,7 +1,81 @@
1
- import { getType as t } from "./index306.js";
2
- function o(r) {
3
- return t(r) === "Array";
4
- }
1
+ import { defineComponent as _, toRef as y, ref as p, computed as o, openBlock as v, createBlock as h, Teleport as A, createElementVNode as r, mergeProps as n, renderSlot as $ } from "vue";
2
+ import b from "./index313.js";
3
+ import { useFloating as k, arrow as x } from "./index222.js";
4
+ import { autoUpdate as B, flip as C, offset as D, shift as P } from "./index231.js";
5
+ const N = /* @__PURE__ */ _({
6
+ __name: "CommonFloating",
7
+ props: {
8
+ arrowPadding: {},
9
+ eager: { type: Boolean },
10
+ offset: {},
11
+ padding: {},
12
+ placement: {},
13
+ theme: {},
14
+ transitionDuration: {},
15
+ containerAttributes: { default: () => ({}) },
16
+ bubbleAttributes: {},
17
+ wrapper: {},
18
+ baseClass: {},
19
+ open: { type: Boolean }
20
+ },
21
+ setup(u) {
22
+ const e = u, f = y(e, "wrapper"), a = p(), l = p(), { floatingStyles: c, placement: d, middlewareData: s } = k(
23
+ f,
24
+ a,
25
+ {
26
+ placement: e.placement,
27
+ whileElementsMounted: B,
28
+ middleware: [
29
+ C(),
30
+ D(e.offset),
31
+ P({ padding: e.padding }),
32
+ x({
33
+ element: l,
34
+ padding: e.arrowPadding
35
+ })
36
+ ]
37
+ }
38
+ ), m = o(() => {
39
+ if (s.value.arrow) {
40
+ const { x: t, y: i } = s.value.arrow;
41
+ return {
42
+ style: {
43
+ left: `${t}px`,
44
+ top: `${i}px`
45
+ }
46
+ };
47
+ }
48
+ }), g = o(() => b({}, e.containerAttributes, {
49
+ class: {
50
+ "bb-floating": !0,
51
+ [`bb-floating--${d.value}`]: !0,
52
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
53
+ "bb-floating--hidden": !e.open,
54
+ "bb-floating--open": e.open
55
+ },
56
+ style: {
57
+ ...c.value,
58
+ "--transition-duration": `${e.transitionDuration}ms`
59
+ },
60
+ inert: !e.open
61
+ })), w = o(() => b({}, e.bubbleAttributes, {}));
62
+ return (t, i) => (v(), h(A, { to: "body" }, [
63
+ r("span", n({
64
+ ref_key: "content",
65
+ ref: a
66
+ }, g.value), [
67
+ r("span", n({
68
+ ref_key: "bubblearrow",
69
+ ref: l,
70
+ class: "bb-floating__arrow"
71
+ }, m.value), null, 16),
72
+ r("span", n({ class: "bb-floating__bubble" }, w.value), [
73
+ $(t.$slots, "default")
74
+ ], 16)
75
+ ], 16)
76
+ ]));
77
+ }
78
+ });
5
79
  export {
6
- o as isArray
80
+ N as default
7
81
  };
package/dist/index305.js CHANGED
@@ -1,35 +1,6 @@
1
- import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import n from "./index274.js";
4
- const l = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- viewBox: "0 0 20 20",
8
- xmlns: "http://www.w3.org/2000/svg"
9
- };
10
- function i(c, r) {
11
- return e(), t("svg", s, r[0] || (r[0] = [
12
- o("path", {
13
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
- fill: "currentColor"
15
- }, null, -1),
16
- o("path", {
17
- d: "M9.99414 6.66666V9.99999",
18
- stroke: "white",
19
- "stroke-linecap": "round",
20
- "stroke-linejoin": "round",
21
- "stroke-width": "2"
22
- }, null, -1),
23
- o("path", {
24
- d: "M9.99414 13.3333H10.0025",
25
- stroke: "white",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round",
28
- "stroke-width": "2"
29
- }, null, -1)
30
- ]));
1
+ function e(t) {
2
+ return Object.prototype.toString.call(t).slice(8, -1);
31
3
  }
32
- const a = /* @__PURE__ */ n(l, [["render", i]]);
33
4
  export {
34
- a as default
5
+ e as getType
35
6
  };
package/dist/index306.js CHANGED
@@ -1,6 +1,4 @@
1
- function e(t) {
2
- return Object.prototype.toString.call(t).slice(8, -1);
3
- }
1
+ import f from "./index261.js";
4
2
  export {
5
- e as getType
3
+ f as default
6
4
  };
package/dist/index307.js CHANGED
@@ -1,9 +1,35 @@
1
- function l(n, c, r = 1) {
2
- const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
- for (let e = 0; e < o; e++, n += r)
4
- t[e] = n;
5
- return t;
1
+ import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
2
+ /* empty css */
3
+ import n from "./index259.js";
4
+ const l = {}, s = {
5
+ class: "bb-error-icon",
6
+ fill: "none",
7
+ viewBox: "0 0 20 20",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(c, r) {
11
+ return e(), t("svg", s, r[0] || (r[0] = [
12
+ o("path", {
13
+ d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
+ fill: "currentColor"
15
+ }, null, -1),
16
+ o("path", {
17
+ d: "M9.99414 6.66666V9.99999",
18
+ stroke: "white",
19
+ "stroke-linecap": "round",
20
+ "stroke-linejoin": "round",
21
+ "stroke-width": "2"
22
+ }, null, -1),
23
+ o("path", {
24
+ d: "M9.99414 13.3333H10.0025",
25
+ stroke: "white",
26
+ "stroke-linecap": "round",
27
+ "stroke-linejoin": "round",
28
+ "stroke-width": "2"
29
+ }, null, -1)
30
+ ]));
6
31
  }
32
+ const a = /* @__PURE__ */ n(l, [["render", i]]);
7
33
  export {
8
- l as range
34
+ a as default
9
35
  };
package/dist/index308.js CHANGED
@@ -1,13 +1,9 @@
1
- function c(n, r, e) {
2
- const i = typeof r == "string" ? r.split(".") : r;
3
- let t = n;
4
- for (const o of i)
5
- if (t && typeof t == "object" && o in t)
6
- t = t[o];
7
- else
8
- return e;
9
- return t === void 0 ? e : t;
1
+ function c(n, e) {
2
+ const u = [];
3
+ for (let t = 0; t < n.length; t += e)
4
+ u.push(n.slice(t, t + e));
5
+ return u;
10
6
  }
11
7
  export {
12
- c as get
8
+ c as chunk
13
9
  };
package/dist/index309.js CHANGED
@@ -1,9 +1,21 @@
1
- function c(n, e) {
2
- const u = [];
3
- for (let t = 0; t < n.length; t += e)
4
- u.push(n.slice(t, t + e));
5
- return u;
1
+ function l(t, ...e) {
2
+ if (t.length) {
3
+ const o = t[0];
4
+ if (typeof o == "string") return [...t].sort(r);
5
+ if (typeof o == "number") return [...t].sort(r);
6
+ if (e && e.length)
7
+ return [...t].sort((f, u) => {
8
+ for (let n = 0; n < e.length; n++) {
9
+ const i = e[n], s = r(f[i], u[i]);
10
+ if (s) return s;
11
+ }
12
+ return 0;
13
+ });
14
+ throw new Error("Invalid comparison");
15
+ }
16
+ return t;
6
17
  }
18
+ const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
7
19
  export {
8
- c as chunk
20
+ l as sort
9
21
  };
package/dist/index31.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, ref as _, openBlock as B, createElementBlock as w, normalizeProps as t, guardReactiveProps as l, createElementVNode as u, mergeProps as V, renderSlot as C } from "vue";
2
- import { isCssColor as i } from "./index226.js";
3
- import { when as E } from "./index227.js";
2
+ import { isCssColor as i } from "./index207.js";
3
+ import { when as E } from "./index208.js";
4
4
  const q = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-radio-container"
package/dist/index310.js CHANGED
@@ -1,21 +1,9 @@
1
- function l(t, ...e) {
2
- if (t.length) {
3
- const o = t[0];
4
- if (typeof o == "string") return [...t].sort(r);
5
- if (typeof o == "number") return [...t].sort(r);
6
- if (e && e.length)
7
- return [...t].sort((f, u) => {
8
- for (let n = 0; n < e.length; n++) {
9
- const i = e[n], s = r(f[i], u[i]);
10
- if (s) return s;
11
- }
12
- return 0;
13
- });
14
- throw new Error("Invalid comparison");
15
- }
1
+ function l(n, c, r = 1) {
2
+ const o = Math.max(Math.ceil((c - n) / r), 0), t = new Array(o);
3
+ for (let e = 0; e < o; e++, n += r)
4
+ t[e] = n;
16
5
  return t;
17
6
  }
18
- const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
19
7
  export {
20
- l as sort
8
+ l as range
21
9
  };
package/dist/index311.js CHANGED
@@ -1,4 +1,13 @@
1
- import f from "./index294.js";
1
+ function c(n, r, e) {
2
+ const i = typeof r == "string" ? r.split(".") : r;
3
+ let t = n;
4
+ for (const o of i)
5
+ if (t && typeof t == "object" && o in t)
6
+ t = t[o];
7
+ else
8
+ return e;
9
+ return t === void 0 ? e : t;
10
+ }
2
11
  export {
3
- f as default
12
+ c as get
4
13
  };
package/dist/index313.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index263.js";
2
- import { __module as M } from "./index317.js";
1
+ import { getDefaultExportFromCjs as dr, commonjsGlobal as D } from "./index272.js";
2
+ import { __module as M } from "./index316.js";
3
3
  M.exports;
4
4
  (function(j, F) {
5
5
  var At = 200, W = "__lodash_hash_undefined__", Ot = 800, jt = 16, X = 9007199254740991, Y = "[object Arguments]", wt = "[object Array]", Ct = "[object AsyncFunction]", xt = "[object Boolean]", St = "[object Date]", It = "[object Error]", Z = "[object Function]", zt = "[object GeneratorFunction]", Et = "[object Map]", Pt = "[object Number]", Dt = "[object Null]", Q = "[object Object]", Mt = "[object Proxy]", Ft = "[object RegExp]", Ut = "[object Set]", Nt = "[object String]", Rt = "[object Undefined]", Gt = "[object WeakMap]", Ht = "[object ArrayBuffer]", Lt = "[object DataView]", Bt = "[object Float32Array]", $t = "[object Float64Array]", Kt = "[object Int8Array]", qt = "[object Int16Array]", Vt = "[object Int32Array]", Jt = "[object Uint8Array]", Wt = "[object Uint8ClampedArray]", Xt = "[object Uint16Array]", Yt = "[object Uint32Array]", Zt = /[\\^$.*+?()[\]{}|]/g, Qt = /^\[object .+?Constructor\]$/, kt = /^(?:0|[1-9]\d*)$/, u = {};
package/dist/index315.js CHANGED
@@ -1,4 +1,4 @@
1
- import { debounce as I, memo as u, notUndefined as f, approxEqual as O } from "./index316.js";
1
+ import { debounce as I, memo as u, notUndefined as f, approxEqual as O } from "./index317.js";
2
2
  const z = (r) => r, M = (r) => {
3
3
  const h = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
4
4
  for (let t = h; t <= e; t++)
package/dist/index316.js CHANGED
@@ -1,49 +1,4 @@
1
- function D(n, l, e) {
2
- let i = e.initialDeps ?? [], t;
3
- return () => {
4
- var r, c, h, m;
5
- let f;
6
- e.key && ((r = e.debug) != null && r.call(e)) && (f = Date.now());
7
- const o = n();
8
- if (!(o.length !== i.length || o.some((a, u) => i[u] !== a)))
9
- return t;
10
- i = o;
11
- let g;
12
- if (e.key && ((c = e.debug) != null && c.call(e)) && (g = Date.now()), t = l(...o), e.key && ((h = e.debug) != null && h.call(e))) {
13
- const a = Math.round((Date.now() - f) * 100) / 100, u = Math.round((Date.now() - g) * 100) / 100, w = u / 16, s = (d, b) => {
14
- for (d = String(d); d.length < b; )
15
- d = " " + d;
16
- return d;
17
- };
18
- console.info(
19
- `%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
20
- `
21
- font-size: .6rem;
22
- font-weight: bold;
23
- color: hsl(${Math.max(
24
- 0,
25
- Math.min(120 - 120 * w, 120)
26
- )}deg 100% 31%);`,
27
- e == null ? void 0 : e.key
28
- );
29
- }
30
- return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
31
- };
32
- }
33
- function T(n, l) {
34
- if (n === void 0)
35
- throw new Error("Unexpected undefined");
36
- return n;
37
- }
38
- const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
39
- let i;
40
- return function(...t) {
41
- n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
42
- };
43
- };
1
+ var e = { exports: {} };
44
2
  export {
45
- y as approxEqual,
46
- M as debounce,
47
- D as memo,
48
- T as notUndefined
3
+ e as __module
49
4
  };
package/dist/index317.js CHANGED
@@ -1,4 +1,49 @@
1
- var e = { exports: {} };
1
+ function D(n, l, e) {
2
+ let i = e.initialDeps ?? [], t;
3
+ return () => {
4
+ var r, c, h, m;
5
+ let f;
6
+ e.key && ((r = e.debug) != null && r.call(e)) && (f = Date.now());
7
+ const o = n();
8
+ if (!(o.length !== i.length || o.some((a, u) => i[u] !== a)))
9
+ return t;
10
+ i = o;
11
+ let g;
12
+ if (e.key && ((c = e.debug) != null && c.call(e)) && (g = Date.now()), t = l(...o), e.key && ((h = e.debug) != null && h.call(e))) {
13
+ const a = Math.round((Date.now() - f) * 100) / 100, u = Math.round((Date.now() - g) * 100) / 100, w = u / 16, s = (d, b) => {
14
+ for (d = String(d); d.length < b; )
15
+ d = " " + d;
16
+ return d;
17
+ };
18
+ console.info(
19
+ `%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
20
+ `
21
+ font-size: .6rem;
22
+ font-weight: bold;
23
+ color: hsl(${Math.max(
24
+ 0,
25
+ Math.min(120 - 120 * w, 120)
26
+ )}deg 100% 31%);`,
27
+ e == null ? void 0 : e.key
28
+ );
29
+ }
30
+ return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
31
+ };
32
+ }
33
+ function T(n, l) {
34
+ if (n === void 0)
35
+ throw new Error("Unexpected undefined");
36
+ return n;
37
+ }
38
+ const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
39
+ let i;
40
+ return function(...t) {
41
+ n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
42
+ };
43
+ };
2
44
  export {
3
- e as __module
45
+ y as approxEqual,
46
+ M as debounce,
47
+ D as memo,
48
+ T as notUndefined
4
49
  };
package/dist/index33.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as L, ref as m, toRef as l, openBlock as E, createBlock as $, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
- import { useOptions as w } from "./index207.js";
1
+ import { defineComponent as L, ref as m, toRef as d, openBlock as $, createBlock as E, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
+ import { useOptions as w } from "./index215.js";
3
3
  import q from "./index31.js";
4
4
  /* empty css */
5
- import z from "./index208.js";
5
+ import z from "./index216.js";
6
6
  /* empty css */
7
7
  const N = /* @__PURE__ */ L({
8
8
  __name: "BaseRadioGroup",
@@ -32,15 +32,15 @@ const N = /* @__PURE__ */ L({
32
32
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
33
33
  setup(h, { emit: y }) {
34
34
  const n = h, o = y, c = m(), r = m(!1), { innerLoading: g, options: T } = w({
35
- dependencies: l(n, "dependencies"),
35
+ dependencies: d(n, "dependencies"),
36
36
  depsDebounceTime: n.depsDebounceTime,
37
- disabled: l(n, "disabled"),
37
+ disabled: d(n, "disabled"),
38
38
  emit: o,
39
39
  enforceCoherence: n.enforceCoherence,
40
- items: l(n, "items"),
40
+ items: d(n, "items"),
41
41
  itemText: n.itemText,
42
42
  itemValue: n.itemValue,
43
- modelValue: l(n, "modelValue"),
43
+ modelValue: d(n, "modelValue"),
44
44
  modelValueDebounceTime: n.modelValueDebounceTime,
45
45
  multiple: !1,
46
46
  prefill: !0,
@@ -52,21 +52,21 @@ const N = /* @__PURE__ */ L({
52
52
  onChange: (e) => o("change", e),
53
53
  onClick: (e) => o("click", e),
54
54
  onFocus: (e) => {
55
- o("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
55
+ o("focus", e), r.value || (document.addEventListener("focusin", l, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
56
56
  },
57
57
  onInput: (e) => o("input", e),
58
58
  onKeydown: (e) => o("keydown", e),
59
59
  onMousedown: (e) => o("mousedown", e),
60
60
  onMouseup: (e) => o("mouseup", e),
61
61
  "onUpdate:modelValue": (e) => o("update:modelValue", e)
62
- }, d = (e) => {
62
+ }, l = (e) => {
63
63
  var s;
64
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
64
+ e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", l), document.removeEventListener("click", u)));
65
65
  }, u = (e) => {
66
66
  var s;
67
- e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
67
+ e.target instanceof HTMLElement && ((s = c.value) != null && s.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", l), document.removeEventListener("click", u)));
68
68
  };
69
- return (e, s) => (E(), $(z, {
69
+ return (e, s) => ($(), E(z, {
70
70
  class: "bb-base-radio-group",
71
71
  direction: e.direction,
72
72
  "has-errors": e.hasErrors,
@@ -90,7 +90,7 @@ const N = /* @__PURE__ */ L({
90
90
  ]),
91
91
  input: t(({ option: a, index: V }) => [
92
92
  B(q, v({
93
- id: a.valueHash,
93
+ id: `${e.id}-${a.valueHash}`,
94
94
  "aria-describedby": e.ariaDescribedby,
95
95
  autofocus: e.autofocus && !V,
96
96
  checked: a.selected,
package/dist/index35.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index228.js";
3
- import { identity as F } from "./index216.js";
4
- import { isCssColor as v } from "./index226.js";
2
+ import { booleanishToBoolean as D } from "./index209.js";
3
+ import { identity as F } from "./index228.js";
4
+ import { isCssColor as v } from "./index207.js";
5
5
  import { isNotNil as T } from "./index134.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
7
7
  __name: "BaseRating",
package/dist/index37.js CHANGED
@@ -6,23 +6,23 @@ import { useMobile as Re } from "./index9.js";
6
6
  import Je from "./index127.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Ye } from "./index134.js";
9
- import { last as je } from "./index217.js";
10
- import { matchAnyKey as j } from "./index243.js";
11
- import { useFloating as Ge } from "./index210.js";
9
+ import { last as je } from "./index229.js";
10
+ import { matchAnyKey as j } from "./index242.js";
11
+ import { useFloating as Ge } from "./index222.js";
12
12
  import { useIntersectionObserver as Xe } from "./index132.js";
13
13
  import { useLogger as Ze } from "./index206.js";
14
- import { useOptions as et } from "./index207.js";
14
+ import { useOptions as et } from "./index215.js";
15
15
  import { wait as L } from "./index131.js";
16
- import { when as tt } from "./index227.js";
17
- import ot from "./index244.js";
16
+ import { when as tt } from "./index208.js";
17
+ import ot from "./index243.js";
18
18
  /* empty css */
19
- import nt from "./index246.js";
19
+ import nt from "./index245.js";
20
20
  /* empty css */
21
- import lt from "./index221.js";
21
+ import lt from "./index210.js";
22
22
  /* empty css */
23
- import at from "./index223.js";
23
+ import at from "./index212.js";
24
24
  import { waitFor as it } from "./index220.js";
25
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index225.js";
25
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index231.js";
26
26
  const dt = { class: "bb-base-select__input-container" }, ct = {
27
27
  key: 1,
28
28
  class: "bb-base-select__max-reached"
@@ -71,7 +71,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
71
71
  const t = G, h = X;
72
72
  if (t.multiple && !Array.isArray(t.modelValue))
73
73
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
74
- const Z = Me(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
74
+ const Z = Me(() => import("./index241.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
75
75
  () => t.comma ? H.value : P.value
76
76
  ), { isMobile: ee } = Re(), te = y(
77
77
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
2
  import { clamp as le } from "./index205.js";
3
- import { head as O } from "./index241.js";
4
- import { isCssColor as Y } from "./index226.js";
3
+ import { head as O } from "./index247.js";
4
+ import { isCssColor as Y } from "./index207.js";
5
5
  import { isNil as P } from "./index129.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index130.js";
8
- import { hash as J } from "./index234.js";
8
+ import { hash as J } from "./index235.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index226.js";
3
- import { when as F } from "./index227.js";
2
+ import { isCssColor as b } from "./index207.js";
3
+ import { when as F } from "./index208.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {