bitboss-ui 2.1.3 → 2.1.4

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 (168) hide show
  1. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +5 -0
  2. package/dist/index106.js +9 -9
  3. package/dist/index113.js +1 -1
  4. package/dist/index121.js +11 -11
  5. package/dist/index13.js +1 -1
  6. package/dist/index131.js +3 -3
  7. package/dist/index15.js +8 -8
  8. package/dist/index17.js +3 -3
  9. package/dist/index19.js +8 -8
  10. package/dist/index209.js +85 -12
  11. package/dist/index21.js +11 -11
  12. package/dist/index211.js +27 -9
  13. package/dist/index212.js +17 -86
  14. package/dist/index213.js +53 -0
  15. package/dist/index214.js +12 -26
  16. package/dist/index215.js +3 -17
  17. package/dist/index216.js +11 -50
  18. package/dist/index217.js +14 -13
  19. package/dist/index218.js +66 -3
  20. package/dist/index220.js +13 -16
  21. package/dist/index221.js +177 -2
  22. package/dist/index222.js +2 -106
  23. package/dist/index223.js +4 -0
  24. package/dist/index224.js +31 -97
  25. package/dist/index225.js +6 -0
  26. package/dist/index226.js +2 -66
  27. package/dist/index227.js +11 -0
  28. package/dist/index228.js +13 -13
  29. package/dist/index229.js +3 -2
  30. package/dist/index23.js +8 -8
  31. package/dist/index230.js +2 -2
  32. package/dist/index231.js +2 -2
  33. package/dist/index232.js +2 -2
  34. package/dist/index233.js +2 -2
  35. package/dist/index234.js +2 -2
  36. package/dist/index235.js +2 -2
  37. package/dist/index237.js +2 -20
  38. package/dist/index238.js +2 -113
  39. package/dist/index239.js +13 -0
  40. package/dist/index240.js +20 -2
  41. package/dist/index241.js +113 -4
  42. package/dist/index243.js +6 -34
  43. package/dist/index244.js +16 -2
  44. package/dist/index245.js +106 -2
  45. package/dist/index247.js +100 -7
  46. package/dist/index249.js +18 -4
  47. package/dist/index25.js +3 -3
  48. package/dist/index250.js +12 -197
  49. package/dist/index251.js +8 -0
  50. package/dist/index252.js +228 -5
  51. package/dist/index253.js +10 -5
  52. package/dist/index254.js +3 -8
  53. package/dist/index255.js +12 -249
  54. package/dist/index256.js +2 -52
  55. package/dist/index257.js +7 -44
  56. package/dist/index258.js +7 -5
  57. package/dist/index259.js +5 -60
  58. package/dist/index260.js +5 -18
  59. package/dist/index261.js +8 -12
  60. package/dist/index262.js +249 -5
  61. package/dist/index263.js +45 -221
  62. package/dist/index264.js +44 -10
  63. package/dist/index265.js +5 -3
  64. package/dist/index266.js +59 -176
  65. package/dist/index267.js +8 -8
  66. package/dist/index268.js +8 -23
  67. package/dist/index269.js +1 -1
  68. package/dist/index27.js +1 -1
  69. package/dist/index270.js +9 -6
  70. package/dist/index271.js +23 -16
  71. package/dist/index272.js +3 -8
  72. package/dist/index273.js +197 -2
  73. package/dist/index275.js +2 -8
  74. package/dist/index276.js +1 -1
  75. package/dist/index278.js +1 -1
  76. package/dist/index279.js +1 -1
  77. package/dist/index280.js +1 -1
  78. package/dist/index281.js +1 -1
  79. package/dist/index283.js +3 -7
  80. package/dist/index285.js +7 -3
  81. package/dist/index286.js +2 -3
  82. package/dist/index287.js +4 -3
  83. package/dist/index288.js +6 -0
  84. package/dist/index289.js +6 -6
  85. package/dist/index29.js +3 -3
  86. package/dist/index290.js +10 -3
  87. package/dist/index291.js +5 -280
  88. package/dist/index292.js +280 -2
  89. package/dist/index293.js +2 -125
  90. package/dist/index294.js +125 -2
  91. package/dist/index295.js +2 -15
  92. package/dist/index296.js +15 -2
  93. package/dist/index297.js +2 -16
  94. package/dist/index298.js +16 -2
  95. package/dist/index299.js +2 -16
  96. package/dist/index300.js +16 -2
  97. package/dist/index301.js +2 -19
  98. package/dist/index302.js +19 -2
  99. package/dist/index303.js +2 -3
  100. package/dist/index304.js +3 -2
  101. package/dist/index305.js +700 -3
  102. package/dist/index306.js +354 -6
  103. package/dist/index307.js +58 -5
  104. package/dist/index308.js +1 -1
  105. package/dist/index309.js +3 -19
  106. package/dist/index31.js +2 -2
  107. package/dist/index310.js +6 -2
  108. package/dist/index311.js +2 -27
  109. package/dist/index312.js +19 -2
  110. package/dist/index313.js +2 -2
  111. package/dist/index314.js +27 -2
  112. package/dist/index315.js +2 -2
  113. package/dist/index316.js +1 -1
  114. package/dist/index317.js +1 -21
  115. package/dist/index318.js +4 -0
  116. package/dist/index319.js +1 -1
  117. package/dist/index320.js +22 -5
  118. package/dist/index322.js +5 -354
  119. package/dist/index323.js +3 -58
  120. package/dist/index325.js +32 -57
  121. package/dist/index326.js +27 -57
  122. package/dist/index328.js +1 -1
  123. package/dist/index329.js +2 -2
  124. package/dist/index33.js +8 -8
  125. package/dist/index330.js +1 -1
  126. package/dist/index331.js +46 -32
  127. package/dist/index332.js +57 -27
  128. package/dist/index333.js +60 -0
  129. package/dist/index334.js +6 -46
  130. package/dist/index335.js +6 -7
  131. package/dist/index336.js +18 -5
  132. package/dist/index337.js +92 -7
  133. package/dist/index338.js +7 -6
  134. package/dist/index339.js +5 -18
  135. package/dist/index340.js +7 -92
  136. package/dist/index342.js +5 -0
  137. package/dist/index343.js +129 -3
  138. package/dist/index35.js +3 -3
  139. package/dist/index37.js +20 -20
  140. package/dist/index39.js +78 -70
  141. package/dist/index41.js +2 -2
  142. package/dist/index43.js +8 -8
  143. package/dist/index45.js +8 -8
  144. package/dist/index47.js +2 -2
  145. package/dist/index49.js +3 -3
  146. package/dist/index53.js +1 -1
  147. package/dist/index55.js +1 -1
  148. package/dist/index57.js +2 -2
  149. package/dist/index61.js +3 -3
  150. package/dist/index67.js +1 -1
  151. package/dist/index79.js +4 -4
  152. package/dist/index81.js +1 -1
  153. package/dist/index83.js +2 -2
  154. package/dist/index85.js +1 -1
  155. package/dist/index90.js +3 -3
  156. package/dist/index92.js +2 -2
  157. package/dist/index94.js +3 -3
  158. package/package.json +2 -2
  159. package/dist/index210.js +0 -15
  160. package/dist/index219.js +0 -14
  161. package/dist/index242.js +0 -4
  162. package/dist/index246.js +0 -9
  163. package/dist/index248.js +0 -5
  164. package/dist/index274.js +0 -11
  165. package/dist/index284.js +0 -13
  166. package/dist/index321.js +0 -703
  167. package/dist/index327.js +0 -9
  168. package/dist/index341.js +0 -131
package/dist/index343.js CHANGED
@@ -1,5 +1,131 @@
1
- import o from "./index332.js";
2
- /* empty css */
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function s(n) {
5
+ return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(n) {
8
+ var t;
9
+ return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function E(n) {
12
+ var t;
13
+ return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function p(n) {
16
+ return c() ? n instanceof Node || n instanceof i(n).Node : !1;
17
+ }
18
+ function m(n) {
19
+ return c() ? n instanceof Element || n instanceof i(n).Element : !1;
20
+ }
21
+ function w(n) {
22
+ return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
23
+ }
24
+ function a(n) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
26
+ }
27
+ function y(n) {
28
+ const {
29
+ overflow: t,
30
+ overflowX: e,
31
+ overflowY: o,
32
+ display: r
33
+ } = b(n);
34
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
35
+ }
36
+ function D(n) {
37
+ return ["table", "td", "th"].includes(s(n));
38
+ }
39
+ function N(n) {
40
+ return [":popover-open", ":modal"].some((t) => {
41
+ try {
42
+ return n.matches(t);
43
+ } catch {
44
+ return !1;
45
+ }
46
+ });
47
+ }
48
+ function T(n) {
49
+ const t = L(), e = m(n) ? b(n) : n;
50
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
51
+ }
52
+ function k(n) {
53
+ let t = u(n);
54
+ for (; w(t) && !g(t); ) {
55
+ if (T(t))
56
+ return t;
57
+ if (N(t))
58
+ return null;
59
+ t = u(t);
60
+ }
61
+ return null;
62
+ }
63
+ function L() {
64
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
+ }
66
+ function g(n) {
67
+ return ["html", "body", "#document"].includes(s(n));
68
+ }
69
+ function b(n) {
70
+ return i(n).getComputedStyle(n);
71
+ }
72
+ function C(n) {
73
+ return m(n) ? {
74
+ scrollLeft: n.scrollLeft,
75
+ scrollTop: n.scrollTop
76
+ } : {
77
+ scrollLeft: n.scrollX,
78
+ scrollTop: n.scrollY
79
+ };
80
+ }
81
+ function u(n) {
82
+ if (s(n) === "html")
83
+ return n;
84
+ const t = (
85
+ // Step into the shadow DOM of the parent of a slotted node.
86
+ n.assignedSlot || // DOM Element detected.
87
+ n.parentNode || // ShadowRoot detected.
88
+ a(n) && n.host || // Fallback.
89
+ E(n)
90
+ );
91
+ return a(t) ? t.host : t;
92
+ }
93
+ function h(n) {
94
+ const t = u(n);
95
+ return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
96
+ }
97
+ function d(n, t, e) {
98
+ var o;
99
+ t === void 0 && (t = []), e === void 0 && (e = !0);
100
+ const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
+ if (S) {
102
+ const f = v(l);
103
+ return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
104
+ }
105
+ return t.concat(r, d(r, [], e));
106
+ }
107
+ function v(n) {
108
+ return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
109
+ }
3
110
  export {
4
- o as default
111
+ b as getComputedStyle,
112
+ k as getContainingBlock,
113
+ E as getDocumentElement,
114
+ v as getFrameElement,
115
+ h as getNearestOverflowAncestor,
116
+ s as getNodeName,
117
+ C as getNodeScroll,
118
+ d as getOverflowAncestors,
119
+ u as getParentNode,
120
+ i as getWindow,
121
+ T as isContainingBlock,
122
+ m as isElement,
123
+ w as isHTMLElement,
124
+ g as isLastTraversableNode,
125
+ p as isNode,
126
+ y as isOverflowElement,
127
+ a as isShadowRoot,
128
+ D as isTableElement,
129
+ N as isTopLayer,
130
+ L as isWebKit
5
131
  };
package/dist/index35.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, ref as v, computed as f, createElementBlock as l, openBlock as r, mergeProps as h, createElementVNode as i, renderSlot as p, Fragment as V, renderList as M, normalizeClass as D, toDisplayString as F, unref as y } from "vue";
2
- import { booleanishToBoolean as T } from "./index242.js";
2
+ import { booleanishToBoolean as T } from "./index226.js";
3
3
  import { identity as $ } from "./index236.js";
4
- import { isCssColor as k } from "./index240.js";
4
+ import { isCssColor as k } from "./index222.js";
5
5
  import { isNotNil as q } from "./index140.js";
6
- import { useLocale as x } from "./index210.js";
6
+ import { useLocale as x } from "./index228.js";
7
7
  const H = { class: "bb-base-rating__inner-container" }, S = { class: "bb-base-rating__label-text sr-only" }, N = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], j = ["height", "width"], W = /* @__PURE__ */ I({
8
8
  __name: "BaseRating",
9
9
  props: {
package/dist/index37.js CHANGED
@@ -5,32 +5,32 @@ import { useId as Ye } from "./index8.js";
5
5
  import { useMobile as Ze } from "./index9.js";
6
6
  import et from "./index111.js";
7
7
  /* empty css */
8
- import { hash as tt } from "./index218.js";
9
- import { isEmpty as lt } from "./index229.js";
10
- import { last as at } from "./index221.js";
11
- import { matchAnyKey as ne } from "./index260.js";
12
- import { useArray as ot } from "./index261.js";
13
- import { useBaseOptions as nt } from "./index216.js";
14
- import { useCoherence as ut } from "./index217.js";
15
- import { useHashedWatcher as ue } from "./index219.js";
16
- import { useIndexById as ie } from "./index215.js";
8
+ import { hash as tt } from "./index215.js";
9
+ import { isEmpty as lt } from "./index237.js";
10
+ import { last as at } from "./index238.js";
11
+ import { matchAnyKey as ne } from "./index249.js";
12
+ import { useArray as ot } from "./index250.js";
13
+ import { useBaseOptions as nt } from "./index213.js";
14
+ import { useCoherence as ut } from "./index214.js";
15
+ import { useHashedWatcher as ue } from "./index216.js";
16
+ import { useIndexById as ie } from "./index212.js";
17
17
  import { useMounted as it, useIntersectionObserver as rt } from "./index137.js";
18
- import { useItemsGetter as st } from "./index214.js";
19
- import { useLocale as dt } from "./index210.js";
20
- import { usePrefill as ct } from "./index220.js";
18
+ import { useItemsGetter as st } from "./index211.js";
19
+ import { useLocale as dt } from "./index228.js";
20
+ import { usePrefill as ct } from "./index217.js";
21
21
  import { wait as F } from "./index135.js";
22
- import { waitFor as pt } from "./index262.js";
23
- import { when as mt } from "./index241.js";
24
- import ft from "./index222.js";
22
+ import { waitFor as pt } from "./index251.js";
23
+ import { when as mt } from "./index225.js";
24
+ import ft from "./index245.js";
25
25
  /* empty css */
26
- import vt from "./index224.js";
26
+ import vt from "./index247.js";
27
27
  /* empty css */
28
- import yt from "./index226.js";
28
+ import yt from "./index218.js";
29
29
  /* empty css */
30
- import ht from "./index228.js";
31
- import bt from "./index238.js";
30
+ import ht from "./index220.js";
31
+ import bt from "./index241.js";
32
32
  /* empty css */
33
- import gt from "./index263.js";
33
+ import gt from "./index252.js";
34
34
  const wt = { class: "bb-base-select__input-container" }, Bt = {
35
35
  key: 1,
36
36
  class: "bb-base-select__max-reached"
package/dist/index39.js CHANGED
@@ -1,17 +1,17 @@
1
- import { defineComponent as re, ref as d, computed as f, onMounted as te, watch as le, createElementBlock as y, openBlock as g, mergeProps as P, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as oe, renderList as ne, normalizeProps as se, guardReactiveProps as ie, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
2
- import { head as ue } from "./index244.js";
3
- import { isCssColor as Y } from "./index240.js";
4
- import { isNil as S } from "./index245.js";
5
- import { getAsPercentageBetween as T, getAsPercentage as de, getValueFromPercentageInInterval as C } from "./index136.js";
6
- import { hash as j } from "./index218.js";
7
- import { snapToStep as me } from "./index246.js";
8
- import { last as ce } from "./index221.js";
9
- import { transpose as J } from "./index247.js";
10
- import { clamp as p } from "./index206.js";
11
- const be = { class: "bb-base-slider__slider-container" }, ve = {
1
+ import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
2
+ import { head as de } from "./index256.js";
3
+ import { isCssColor as Y } from "./index222.js";
4
+ import { isNil as S } from "./index223.js";
5
+ import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
6
+ import { hash as j } from "./index215.js";
7
+ import { snapToStep as ce } from "./index257.js";
8
+ import { last as be } from "./index238.js";
9
+ import { transpose as J } from "./index258.js";
10
+ import { clamp as f } from "./index206.js";
11
+ const ve = { class: "bb-base-slider__slider-container" }, fe = {
12
12
  key: 0,
13
13
  class: "bb-base-slider__ticks-container"
14
- }, fe = ["id", "disabled", "name", "readonly", "required", "value"], pe = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], he = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], Le = /* @__PURE__ */ re({
14
+ }, pe = ["id", "disabled", "name", "readonly", "required", "value"], he = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], ye = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], Ne = /* @__PURE__ */ te({
15
15
  __name: "BaseSlider",
16
16
  props: {
17
17
  ariaDescribedby: {},
@@ -21,6 +21,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
21
21
  hasErrors: { type: Boolean },
22
22
  id: {},
23
23
  max: { default: 100 },
24
+ maxPrecision: { default: 2 },
24
25
  min: { default: 0 },
25
26
  modelValue: { default: 0 },
26
27
  name: {},
@@ -36,29 +37,29 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
36
37
  const a = K, s = Q;
37
38
  if (a.min < Number.MIN_SAFE_INTEGER || a.max > Number.MAX_SAFE_INTEGER)
38
39
  throw new Error("BaseSlider min or max is too large");
39
- const I = d(), V = d(), b = d(), u = d(), n = d(0), l = d(0), E = f(() => Array.isArray(a.modelValue) ? ue(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), _ = f(() => Array.isArray(a.modelValue) ? ce(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), A = f(() => [n.value, l.value].sort(
40
+ const C = d(), V = d(), b = d(), u = d(), n = d(0), l = d(0), E = p(() => Array.isArray(a.modelValue) ? de(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), _ = p(() => Array.isArray(a.modelValue) ? be(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), A = p(() => [n.value, l.value].sort(
40
41
  (e, r) => e - r
41
42
  )), $ = d(!1);
42
43
  if (a.range && !Array.isArray(a.modelValue))
43
44
  throw new TypeError(
44
45
  "BaseSlider mode is set as range but modelValue is not an array"
45
46
  );
46
- te(() => {
47
+ le(() => {
47
48
  var e;
48
49
  a.autofocus && ((e = u.value) == null || e.focus());
49
50
  });
50
- let B = d(!1), o = d(null);
51
- const x = (e) => {
51
+ let P = d(!1), o = d(null);
52
+ const F = (e) => {
52
53
  if (u.value && u.value.contains(e.target))
53
54
  return "higher";
54
55
  if (b.value && b.value.contains(e.target))
55
56
  return "lower";
56
57
  throw new Error("Could not identify target thumb");
57
58
  }, U = (e) => {
58
- a.disabled || a.readonly || (o.value || (o.value = x(e)), B.value = !0, document.addEventListener("pointermove", L), document.addEventListener("pointerup", R), s("pointerdown", e));
59
+ a.disabled || a.readonly || (o.value || (o.value = F(e)), P.value = !0, document.addEventListener("pointermove", B), document.addEventListener("pointerup", z), s("pointerdown", e));
59
60
  };
60
- let z = f(() => B.value ? {} : { onPointerdown: U });
61
- const L = (e) => {
61
+ let I = p(() => P.value ? {} : { onPointerdown: U });
62
+ const B = (e) => {
62
63
  if (!(a.disabled || a.readonly) && V.value) {
63
64
  e instanceof PointerEvent ? s("pointermove", e) : s("click", e);
64
65
  const r = V.value.getBoundingClientRect(), t = e.clientX, i = r.left, h = r.width;
@@ -69,35 +70,42 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
69
70
  a.min,
70
71
  a.max
71
72
  );
72
- const ae = me(
73
+ const ae = ce(
73
74
  ee,
74
75
  a.min,
75
76
  a.max,
76
77
  a.step
77
- ), M = T(
78
+ ), re = T(
78
79
  ae,
79
80
  a.min,
80
81
  a.max
81
- );
82
+ ), M = f(re, 0, 100);
82
83
  o.value === "higher" ? l.value = M : o.value === "lower" && (n.value = M), s("update:modelValue", N());
83
84
  }
84
- }, N = () => a.range ? [
85
- C(
86
- n.value,
87
- a.min,
88
- a.max
89
- ),
90
- C(
91
- l.value,
92
- a.min,
93
- a.max
94
- )
95
- ].sort((e, r) => e - r) : C(
96
- l.value,
97
- a.min,
98
- a.max
99
- );
100
- le(
85
+ }, N = () => {
86
+ if (a.range)
87
+ return [
88
+ x(
89
+ n.value,
90
+ a.min,
91
+ a.max
92
+ ),
93
+ x(
94
+ l.value,
95
+ a.min,
96
+ a.max
97
+ )
98
+ ].sort((e, r) => e - r).map((e) => Number(e.toFixed(a.maxPrecision)));
99
+ {
100
+ const e = x(
101
+ l.value,
102
+ a.min,
103
+ a.max
104
+ );
105
+ return Number(e.toFixed(a.maxPrecision));
106
+ }
107
+ };
108
+ oe(
101
109
  () => a.modelValue,
102
110
  (e) => {
103
111
  if (a.range) {
@@ -108,44 +116,44 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
108
116
  return;
109
117
  }
110
118
  const t = [...e].sort((i, h) => i - h).map(
111
- (i) => p(T(i, a.min, a.max), 0, 100)
119
+ (i) => f(T(i, a.min, a.max), 0, 100)
112
120
  );
113
121
  n.value > l.value ? (n.value = t[1], l.value = t[0]) : (n.value = t[0], l.value = t[1]);
114
122
  } else {
115
123
  let r = e ?? a.min;
116
- const t = J(r, a.min, a.max, 0, 100), i = p(t, 0, 100);
124
+ const t = J(r, a.min, a.max, 0, 100), i = f(t, 0, 100);
117
125
  l.value = i;
118
126
  }
119
127
  },
120
128
  { immediate: !0 }
121
129
  );
122
- const R = (e) => {
123
- B.value = !1, o.value = null, document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", R), s("pointerup", e);
124
- }, w = de(a.step, a.max - a.min), X = (e) => {
125
- s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = p(
130
+ const z = (e) => {
131
+ P.value = !1, o.value = null, document.removeEventListener("pointermove", B), document.removeEventListener("pointerup", z), s("pointerup", e);
132
+ }, w = me(a.step, a.max - a.min), R = (e) => {
133
+ s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
126
134
  l.value - w,
127
135
  0,
128
136
  100
129
- ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = p(
137
+ ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
130
138
  n.value - w,
131
139
  0,
132
140
  100
133
- )) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = p(
141
+ )) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
134
142
  l.value + w,
135
143
  0,
136
144
  100
137
- ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = p(
145
+ ) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
138
146
  n.value + w,
139
147
  0,
140
148
  100
141
149
  ))), s("update:modelValue", N()));
142
- }, F = (e) => {
150
+ }, X = (e) => {
143
151
  s("focus", e);
144
- const r = x(e);
152
+ const r = F(e);
145
153
  r && (o.value = r), $.value || ($.value = !0, s("active"), document.addEventListener("focusin", k), document.addEventListener("click", k));
146
154
  }, k = (e) => {
147
155
  var r;
148
- e.target instanceof HTMLElement && ((r = I.value) != null && r.contains(e.target) || ($.value = !1, o.value = null, s("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k)));
156
+ e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || ($.value = !1, o.value = null, s("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k)));
149
157
  }, q = {
150
158
  class: {
151
159
  "bb-base-slider": !0,
@@ -157,14 +165,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
157
165
  onClick: (e) => {
158
166
  var t;
159
167
  if (a.range) return;
160
- (t = u.value) == null || t.focus(), L(e);
168
+ (t = u.value) == null || t.focus(), B(e);
161
169
  const r = N();
162
170
  j(r), j(a.modelValue);
163
171
  },
164
172
  style: {}
165
173
  };
166
174
  a.color && Y(a.color) && (q.style["--color"] = a.color);
167
- const W = f(() => {
175
+ const W = p(() => {
168
176
  const e = "bb-base-slider__track-background", r = {
169
177
  width: `${A.value[1] - A.value[0]}%`,
170
178
  left: `${A.value[0]}%`
@@ -173,7 +181,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
173
181
  class: e,
174
182
  style: r
175
183
  };
176
- }), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D = f(() => {
184
+ }), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D = p(() => {
177
185
  if (!a.ticks) return [];
178
186
  let e = [], r = a.min;
179
187
  for (; r <= a.max; ) {
@@ -187,14 +195,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
187
195
  }
188
196
  return e;
189
197
  });
190
- return (e, r) => (g(), y("span", P(q, {
198
+ return (e, r) => (g(), y("span", L(q, {
191
199
  ref_key: "container",
192
- ref: I
200
+ ref: C
193
201
  }), [
194
202
  v(e.$slots, "prepend"),
195
- m("span", be, [
196
- D.value.length ? (g(), y("span", ve, [
197
- (g(!0), y(oe, null, ne(D.value, (t) => (g(), y("span", {
203
+ m("span", ve, [
204
+ D.value.length ? (g(), y("span", fe, [
205
+ (g(!0), y(ne, null, se(D.value, (t) => (g(), y("span", {
198
206
  key: t.value,
199
207
  class: "bb-base-slider__tick"
200
208
  }, [
@@ -215,16 +223,16 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
215
223
  tabindex: -1,
216
224
  type: "text",
217
225
  value: JSON.stringify(e.modelValue)
218
- }, null, 8, fe),
226
+ }, null, 8, pe),
219
227
  m("span", {
220
228
  ref_key: "track",
221
229
  ref: V,
222
230
  class: "bb-base-slider__track-container"
223
231
  }, [
224
232
  r[0] || (r[0] = m("span", { class: "bb-base-slider__track-fill" }, null, -1)),
225
- m("span", se(ie(W.value)), null, 16)
233
+ m("span", ie(ue(W.value)), null, 16)
226
234
  ], 512),
227
- a.range ? (g(), y("span", P({ key: 1 }, c(z), {
235
+ a.range ? (g(), y("span", L({ key: 1 }, c(I), {
228
236
  key: "thumblower",
229
237
  ref_key: "thumblower",
230
238
  ref: b,
@@ -239,8 +247,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
239
247
  role: "slider",
240
248
  style: { left: `${n.value}%` },
241
249
  tabindex: e.disabled ? -1 : 0,
242
- onFocus: F,
243
- onKeydown: X
250
+ onFocus: X,
251
+ onKeydown: R
244
252
  }), [
245
253
  m("span", {
246
254
  class: O({
@@ -265,8 +273,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
265
273
  })
266
274
  ])
267
275
  ], 6)
268
- ], 16, pe)) : H("", !0),
269
- m("span", P(c(z), {
276
+ ], 16, he)) : H("", !0),
277
+ m("span", L(c(I), {
270
278
  key: "thumbhigher",
271
279
  ref_key: "thumbhigher",
272
280
  ref: u,
@@ -281,8 +289,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
281
289
  role: "slider",
282
290
  style: { left: `${l.value}%` },
283
291
  tabindex: e.disabled ? -1 : 0,
284
- onFocus: F,
285
- onKeydown: X
292
+ onFocus: X,
293
+ onKeydown: R
286
294
  }), [
287
295
  m("span", {
288
296
  class: O({
@@ -307,12 +315,12 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
307
315
  })
308
316
  ])
309
317
  ], 6)
310
- ], 16, he)
318
+ ], 16, ye)
311
319
  ]),
312
320
  v(e.$slots, "append")
313
321
  ], 16));
314
322
  }
315
323
  });
316
324
  export {
317
- Le as default
325
+ Ne as default
318
326
  };
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index240.js";
3
- import { when as N } from "./index241.js";
2
+ import { isCssColor as b } from "./index222.js";
3
+ import { when as N } from "./index225.js";
4
4
  const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
2
  import K from "./index41.js";
3
3
  /* empty css */
4
- import N from "./index212.js";
4
+ import N from "./index209.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index214.js";
7
- import { useIndexById as T } from "./index215.js";
8
- import { useBaseOptions as q } from "./index216.js";
9
- import { useCoherence as J } from "./index217.js";
10
- import { hash as Q } from "./index218.js";
11
- import { useHashedWatcher as $ } from "./index219.js";
12
- import { usePrefill as X } from "./index220.js";
6
+ import { useItemsGetter as U } from "./index211.js";
7
+ import { useIndexById as T } from "./index212.js";
8
+ import { useBaseOptions as q } from "./index213.js";
9
+ import { useCoherence as J } from "./index214.js";
10
+ import { hash as Q } from "./index215.js";
11
+ import { useHashedWatcher as $ } from "./index216.js";
12
+ import { usePrefill as X } from "./index217.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
3
3
  /* empty css */
4
4
  import ae from "./index111.js";
5
5
  /* empty css */
6
- import { last as le } from "./index221.js";
7
- import { useBaseOptions as ne } from "./index216.js";
8
- import { useIndexById as re } from "./index215.js";
9
- import ie from "./index222.js";
6
+ import { last as le } from "./index238.js";
7
+ import { useBaseOptions as ne } from "./index213.js";
8
+ import { useIndexById as re } from "./index212.js";
9
+ import ie from "./index245.js";
10
10
  /* empty css */
11
- import ue from "./index224.js";
11
+ import ue from "./index247.js";
12
12
  /* empty css */
13
- import se from "./index226.js";
13
+ import se from "./index218.js";
14
14
  /* empty css */
15
- import de from "./index228.js";
16
- import { isEmpty as pe } from "./index229.js";
15
+ import de from "./index220.js";
16
+ import { isEmpty as pe } from "./index237.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
2
- import E from "./index228.js";
3
- import G from "./index226.js";
2
+ import E from "./index220.js";
3
+ import G from "./index218.js";
4
4
  /* empty css */
5
5
  import M from "./index111.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
2
- import E from "./index226.js";
2
+ import E from "./index218.js";
3
3
  /* empty css */
4
- import I from "./index228.js";
4
+ import I from "./index220.js";
5
5
  import { isNotNil as N } from "./index140.js";
6
- import { MaskInput as z } from "./index266.js";
6
+ import { MaskInput as z } from "./index221.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
8
8
  __name: "BaseTextInput",
9
9
  props: {
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index69.js";
3
3
  /* empty css */
4
4
  import L from "./index85.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index210.js";
6
+ import { useLocale as g } from "./index228.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index240.js";
2
+ import { isCssColor as y } from "./index222.js";
3
3
  import { wait as C } from "./index135.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index240.js";
3
- import { isNil as B } from "./index245.js";
2
+ import { isCssColor as l } from "./index222.js";
3
+ import { isNil as B } from "./index223.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
7
7
  /* empty css */
8
8
  import T from "./index113.js";
9
9
  /* empty css */
10
- import { pickBy as W } from "./index264.js";
11
- import { noop as w } from "./index265.js";
12
- import { useLocale as D } from "./index210.js";
10
+ import { pickBy as W } from "./index253.js";
11
+ import { noop as w } from "./index254.js";
12
+ import { useLocale as D } from "./index228.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index210.js";
2
+ import { useLocale as f } from "./index228.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {