bitboss-ui 2.1.33 → 2.1.35

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 (201) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +7 -6
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +7 -6
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
  5. package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
  6. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
  7. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
  8. package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
  9. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  10. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  11. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -2
  12. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -2
  13. package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
  14. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
  15. package/dist/components/BbRating/BbRating.vue.d.ts +8 -0
  16. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
  17. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  18. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  19. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  20. package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
  21. package/dist/composables/useToast.d.ts +4 -3
  22. package/dist/index.css +1 -1
  23. package/dist/index.d.ts +10 -0
  24. package/dist/index102.js +7 -5
  25. package/dist/index106.js +7 -7
  26. package/dist/index111.js +1 -1
  27. package/dist/index113.js +1 -1
  28. package/dist/index121.js +11 -11
  29. package/dist/index129.js +1 -1
  30. package/dist/index13.js +1 -1
  31. package/dist/index131.js +6 -6
  32. package/dist/index133.js +1 -1
  33. package/dist/index135.js +2 -2
  34. package/dist/index139.js +1 -1
  35. package/dist/index141.js +1 -1
  36. package/dist/index142.js +2 -2
  37. package/dist/index15.js +5 -5
  38. package/dist/index17.js +3 -3
  39. package/dist/index19.js +8 -8
  40. package/dist/index21.js +16 -16
  41. package/dist/index213.js +2 -2
  42. package/dist/index214.js +2 -2
  43. package/dist/index215.js +5 -13
  44. package/dist/index216.js +5 -13
  45. package/dist/index217.js +5 -13
  46. package/dist/index218.js +5 -3
  47. package/dist/index219.js +5 -86
  48. package/dist/index220.js +7 -0
  49. package/dist/index221.js +5 -29
  50. package/dist/index222.js +3 -17
  51. package/dist/index223.js +2 -51
  52. package/dist/index224.js +8 -15
  53. package/dist/index225.js +250 -3
  54. package/dist/index226.js +52 -12
  55. package/dist/index227.js +44 -16
  56. package/dist/index228.js +5 -2
  57. package/dist/index229.js +60 -2
  58. package/dist/index23.js +12 -12
  59. package/dist/index230.js +13 -6
  60. package/dist/index231.js +85 -15
  61. package/dist/index233.js +28 -2
  62. package/dist/index234.js +16 -8
  63. package/dist/index235.js +49 -119
  64. package/dist/index236.js +17 -0
  65. package/dist/index237.js +12 -23
  66. package/dist/index238.js +16 -4
  67. package/dist/index239.js +33 -22
  68. package/dist/index240.js +4 -5
  69. package/dist/index241.js +20 -5
  70. package/dist/index242.js +197 -5
  71. package/dist/index244.js +121 -5
  72. package/dist/index246.js +2 -5
  73. package/dist/index247.js +4 -2
  74. package/dist/index248.js +182 -7
  75. package/dist/index249.js +12 -249
  76. package/dist/index25.js +3 -3
  77. package/dist/index250.js +13 -52
  78. package/dist/index251.js +2 -44
  79. package/dist/index252.js +2 -5
  80. package/dist/index253.js +7 -60
  81. package/dist/index254.js +7 -106
  82. package/dist/index255.js +9 -0
  83. package/dist/index256.js +53 -47
  84. package/dist/index258.js +100 -2
  85. package/dist/index260.js +2 -5
  86. package/dist/index261.js +3 -2
  87. package/dist/index262.js +2 -20
  88. package/dist/index263.js +2 -2
  89. package/dist/index264.js +5 -7
  90. package/dist/index265.js +18 -7
  91. package/dist/index266.js +12 -34
  92. package/dist/index267.js +229 -2
  93. package/dist/index268.js +9 -17
  94. package/dist/index269.js +2 -11
  95. package/dist/index27.js +1 -1
  96. package/dist/index270.js +8 -228
  97. package/dist/index271.js +23 -3
  98. package/dist/index272.js +3 -3
  99. package/dist/index273.js +20 -194
  100. package/dist/index274.js +8 -0
  101. package/dist/index275.js +15 -182
  102. package/dist/index276.js +3 -7
  103. package/dist/index278.js +1 -1
  104. package/dist/index280.js +2 -33
  105. package/dist/index281.js +65 -26
  106. package/dist/index282.js +7 -0
  107. package/dist/index283.js +33 -2
  108. package/dist/index284.js +28 -5
  109. package/dist/index286.js +5 -7
  110. package/dist/index287.js +7 -10
  111. package/dist/index288.js +280 -5
  112. package/dist/index289.js +2 -3
  113. package/dist/index29.js +3 -3
  114. package/dist/index290.js +16 -17
  115. package/dist/index291.js +2 -28
  116. package/dist/index292.js +16 -718
  117. package/dist/index293.js +2 -366
  118. package/dist/index294.js +17 -56
  119. package/dist/index295.js +2 -3
  120. package/dist/index296.js +13 -278
  121. package/dist/index297.js +2 -2
  122. package/dist/index298.js +14 -11
  123. package/dist/index300.js +23 -12
  124. package/dist/index302.js +2 -19
  125. package/dist/index303.js +2 -2
  126. package/dist/index304.js +2 -15
  127. package/dist/index305.js +2 -2
  128. package/dist/index306.js +27 -18
  129. package/dist/index307.js +22 -2
  130. package/dist/index309.js +7 -2
  131. package/dist/index31.js +2 -2
  132. package/dist/index310.js +11 -2
  133. package/dist/index311.js +3 -2
  134. package/dist/index312.js +17 -2
  135. package/dist/index313.js +1 -1
  136. package/dist/index314.js +4 -22
  137. package/dist/index315.js +8 -0
  138. package/dist/index316.js +1 -1
  139. package/dist/index317.js +1 -1
  140. package/dist/index318.js +3 -5
  141. package/dist/index319.js +3 -4
  142. package/dist/index320.js +3 -125
  143. package/dist/index321.js +5 -2
  144. package/dist/index322.js +125 -2
  145. package/dist/index323.js +4 -0
  146. package/dist/index324.js +2 -3
  147. package/dist/index325.js +718 -5
  148. package/dist/index326.js +366 -8
  149. package/dist/index327.js +58 -2
  150. package/dist/index328.js +4 -4
  151. package/dist/index329.js +2 -3
  152. package/dist/index33.js +8 -8
  153. package/dist/index331.js +3 -93
  154. package/dist/index332.js +6 -34
  155. package/dist/index333.js +19 -6
  156. package/dist/index334.js +6 -128
  157. package/dist/index335.js +30 -364
  158. package/dist/index336.js +6 -58
  159. package/dist/index337.js +128 -57
  160. package/dist/index338.js +369 -2
  161. package/dist/index339.js +46 -6
  162. package/dist/index340.js +7 -6
  163. package/dist/index341.js +5 -18
  164. package/dist/index342.js +8 -47
  165. package/dist/index343.js +227 -7
  166. package/dist/index344.js +58 -6
  167. package/dist/index345.js +57 -7
  168. package/dist/index346.js +86 -221
  169. package/dist/index348.js +473 -421
  170. package/dist/index349.js +422 -113
  171. package/dist/index35.js +4 -4
  172. package/dist/index350.js +123 -484
  173. package/dist/index37.js +57 -59
  174. package/dist/index39.js +7 -7
  175. package/dist/index41.js +2 -2
  176. package/dist/index43.js +8 -8
  177. package/dist/index45.js +60 -62
  178. package/dist/index49.js +1 -1
  179. package/dist/index53.js +1 -1
  180. package/dist/index55.js +1 -1
  181. package/dist/index57.js +2 -2
  182. package/dist/index61.js +6 -6
  183. package/dist/index67.js +1 -1
  184. package/dist/index79.js +6 -6
  185. package/dist/index81.js +1 -1
  186. package/dist/index83.js +2 -2
  187. package/dist/index85.js +3 -3
  188. package/dist/index87.js +1 -1
  189. package/dist/index90.js +3 -3
  190. package/dist/index92.js +1 -1
  191. package/dist/index94.js +5 -5
  192. package/dist/index96.js +1 -1
  193. package/dist/types/Icon.d.ts +9 -0
  194. package/package.json +2 -2
  195. package/dist/index232.js +0 -12
  196. package/dist/index243.js +0 -7
  197. package/dist/index245.js +0 -7
  198. package/dist/index259.js +0 -6
  199. package/dist/index285.js +0 -69
  200. package/dist/index308.js +0 -29
  201. package/dist/index330.js +0 -6
package/dist/index37.js CHANGED
@@ -1,40 +1,38 @@
1
- import { defineComponent as Xe, ref as v, computed as h, toRef as L, createBlock as U, openBlock as y, normalizeClass as ee, withCtx as s, createElementVNode as T, createVNode as E, createElementBlock as O, unref as b, renderSlot as p, createCommentVNode as te, withDirectives as Ye, Fragment as ae, toDisplayString as Ze, withKeys as w, withModifiers as m, normalizeStyle as le, vModelDynamic as et, mergeProps as oe, renderList as tt, nextTick as j } from "vue";
2
- /* empty css */
3
- /* empty css */
4
- import { useId as at } from "./index8.js";
5
- import { useMobile as lt } from "./index9.js";
6
- import ot from "./index111.js";
1
+ import { defineComponent as Xe, ref as v, computed as h, toRef as L, createBlock as U, openBlock as y, normalizeClass as ee, withCtx as s, createElementVNode as T, createVNode as E, createElementBlock as O, unref as g, renderSlot as p, createCommentVNode as te, withDirectives as Ye, Fragment as ae, toDisplayString as Ze, withKeys as w, withModifiers as m, normalizeStyle as le, vModelDynamic as et, mergeProps as oe, renderList as tt, nextTick as j } from "vue";
2
+ import at from "./index111.js";
7
3
  /* empty css */
8
- import nt from "./index135.js";
9
- /* empty css */
10
- import ut from "./index137.js";
11
- import { hash as st } from "./index225.js";
12
- import { isEmpty as it } from "./index258.js";
13
- import { last as rt } from "./index247.js";
14
- import { matchAnyKey as ne } from "./index268.js";
15
- import { useArray as dt } from "./index269.js";
16
- import { useBaseOptions as ct } from "./index223.js";
17
- import { useCoherence as pt } from "./index224.js";
18
- import { useHashedWatcher as ue } from "./index226.js";
19
- import { useIndexById as se } from "./index222.js";
20
- import { useMounted as mt, useElementSize as ft, useIntersectionObserver as vt } from "./index140.js";
21
- import { useItemsGetter as ht } from "./index221.js";
22
- import { useLocale as yt } from "./index216.js";
23
- import { usePrefill as bt } from "./index227.js";
4
+ import { hash as lt } from "./index222.js";
5
+ import { isEmpty as ot } from "./index260.js";
6
+ import { last as nt } from "./index223.js";
7
+ import { matchAnyKey as ne } from "./index265.js";
8
+ import { useArray as ut } from "./index266.js";
9
+ import { useBaseOptions as st } from "./index235.js";
10
+ import { useCoherence as it } from "./index236.js";
11
+ import { useHashedWatcher as ue } from "./index237.js";
12
+ import { useId as rt } from "./index8.js";
13
+ import { useIndexById as se } from "./index234.js";
14
+ import { useMounted as dt, useElementSize as ct, useIntersectionObserver as pt } from "./index140.js";
15
+ import { useItemsGetter as mt } from "./index233.js";
16
+ import { useLocale as ft } from "./index230.js";
17
+ import { useMobile as vt } from "./index9.js";
18
+ import { usePrefill as ht } from "./index238.js";
24
19
  import { wait as F } from "./index138.js";
25
- import { when as gt } from "./index259.js";
26
- import wt from "./index254.js";
20
+ import { when as yt } from "./index247.js";
21
+ import bt from "./index256.js";
22
+ /* empty css */
23
+ import gt from "./index258.js";
27
24
  /* empty css */
28
- import Bt from "./index256.js";
25
+ import wt from "./index135.js";
29
26
  /* empty css */
30
- import Vt from "./index235.js";
27
+ import Bt from "./index137.js";
28
+ import Vt from "./index244.js";
31
29
  /* empty css */
32
- import St from "./index270.js";
33
- import { useUntil as kt } from "./index217.js";
30
+ import St from "./index267.js";
31
+ import { useUntil as kt } from "./index250.js";
34
32
  const Ct = { class: "bb-base-select__input-container" }, It = {
35
33
  key: 1,
36
34
  class: "bb-base-select__max-reached"
37
- }, Ot = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], sa = /* @__PURE__ */ Xe({
35
+ }, Ot = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], na = /* @__PURE__ */ Xe({
38
36
  __name: "BaseSelect",
39
37
  props: {
40
38
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -81,11 +79,11 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
81
79
  const t = ie, n = re;
82
80
  if (t.multiple && !Array.isArray(t.modelValue))
83
81
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
84
- const { t: de } = yt(), ce = mt(), A = v(null), D = v(null), i = v(null), R = v(null), _ = v(null), d = h(
82
+ const { t: de } = ft(), ce = dt(), A = v(null), D = v(null), i = v(null), R = v(null), _ = v(null), d = h(
85
83
  () => t.comma ? R.value : _.value
86
- ), { width: pe } = ft(D), { isMobile: me } = lt(), fe = h(
84
+ ), { width: pe } = ct(D), { isMobile: me } = vt(), fe = h(
87
85
  () => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
88
- ), G = t.id || at().id.value, { resume: ve, pause: he } = vt(
86
+ ), G = t.id || rt().id.value, { resume: ve, pause: he } = pt(
89
87
  D,
90
88
  async ([{ intersectionRatio: e }]) => {
91
89
  e !== 1 && u.value && await I();
@@ -107,7 +105,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
107
105
  }, $ = async (e) => {
108
106
  var a, l;
109
107
  if (e.target instanceof Node && A.value && !A.value.$el.contains(e.target) && !((l = (a = i.value) == null ? void 0 : a.$el) != null && l.contains(e.target))) {
110
- I(), je(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await F(t.transitionDuration), g();
108
+ I(), je(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await F(t.transitionDuration), b();
111
109
  return;
112
110
  }
113
111
  }, B = h(() => !(t.readonly || t.disabled || H.value || !d.value && t.multiple && r.value.length <= t.maxSelectedLabels)), Se = async () => {
@@ -153,7 +151,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
153
151
  debouncedGetter: He,
154
152
  items: Le,
155
153
  loading: J
156
- } = ht({
154
+ } = mt({
157
155
  items: L(t, "items"),
158
156
  debounce: t.queryDebounceTime
159
157
  }), P = () => {
@@ -163,26 +161,26 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
163
161
  hasPrefilled: Q,
164
162
  isPrefilling: Te,
165
163
  prefill: Ee
166
- } = bt({
164
+ } = ht({
167
165
  onStart: t.prefill === !0,
168
166
  currentValue: t.modelValue,
169
167
  multiple: t.multiple,
170
168
  fn: async ({ prefill: e }) => {
171
- await M(o.value, e, t.modelValue), t.stash && Y(...k.value.map((a) => a.item)), P(), g();
169
+ await M(o.value, e, t.modelValue), t.stash && Y(...k.value.map((a) => a.item)), P(), b();
172
170
  }
173
171
  }), {
174
172
  array: X,
175
173
  add: Y,
176
174
  remove: Fe,
177
175
  set: Ae
178
- } = dt(), r = h(() => {
176
+ } = ut(), r = h(() => {
179
177
  const e = Object.fromEntries(
180
178
  Object.entries(N.value).map(([a], l) => [a, l])
181
179
  );
182
180
  return k.value.filter((a) => a.selected).sort((a, l) => e[a.valueHash] - e[l.valueHash]);
183
181
  }), qe = h(() => r.value.length ? "" : t.placeholder), { data: N, get: xe } = se({
184
182
  items: L(t, "modelValue")
185
- }), { options: k } = ct({
183
+ }), { options: k } = st({
186
184
  disabled: L(t, "disabled"),
187
185
  items: h(() => [...Le.value, ...X.value]),
188
186
  itemText: t.itemText,
@@ -199,35 +197,35 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
199
197
  let f = !1;
200
198
  return typeof t.filterBy == "function" ? f = t.filterBy(c.value, c.item, o.value) : t.filterBy === "not_stashed" && o.value ? f = !new Set(X.value.map((Qe) => Qe.valueHash)).has(c.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || ne(c.item, t.filterBy, o.value.trim())), f || ne(c, ["text"], o.value.trim());
201
199
  }) : e = k.value, e;
202
- }), g = () => {
200
+ }), b = () => {
203
201
  if (t.multiple) {
204
202
  o.value = "";
205
203
  return;
206
204
  }
207
205
  let e;
208
- r.value && (e = rt(r.value)), o.value = (e == null ? void 0 : e.text) || "";
206
+ r.value && (e = nt(r.value)), o.value = (e == null ? void 0 : e.text) || "";
209
207
  }, Pe = async (e) => {
210
- t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Y(e.item), g()) : (t.stash && Ae(e.item), n("update:modelValue", e.value), await j(), g()), x(), t.multiple || I();
208
+ t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Y(e.item), b()) : (t.stash && Ae(e.item), n("update:modelValue", e.value), await j(), b()), x(), t.multiple || I();
211
209
  }, W = async (e) => {
212
210
  if (Fe((a) => a.valueHash !== e.valueHash), t.multiple) {
213
211
  const a = { ...N.value };
214
212
  delete a[e.valueHash], n("update:modelValue", Object.values(a));
215
213
  } else
216
- n("update:modelValue", null), await j(), g();
214
+ n("update:modelValue", null), await j(), b();
217
215
  x();
218
216
  }, { data: Ne } = se({
219
217
  items: k,
220
218
  key: "valueHash"
221
- }), { coherent: Z, status: We } = pt({
219
+ }), { coherent: Z, status: We } = it({
222
220
  modelValue: L(t, "modelValue"),
223
221
  multiple: t.multiple,
224
- iteratee: (e) => !!Ne.value[st(e)]
222
+ iteratee: (e) => !!Ne.value[lt(e)]
225
223
  });
226
224
  let V = 0;
227
225
  ue(
228
226
  () => t.modelValue,
229
227
  async () => {
230
- V++, Z.value || (await M(o.value, !0, t.modelValue), P()), V === 1 && g(), V--;
228
+ V++, Z.value || (await M(o.value, !0, t.modelValue), P()), V === 1 && b(), V--;
231
229
  },
232
230
  {
233
231
  debounce: t.modelValueDebounceTime
@@ -235,7 +233,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
235
233
  ), ue(
236
234
  () => [t.dependencies, t.items],
237
235
  async () => {
238
- Q.value && (V++, await M(o.value, !0, t.modelValue), V === 1 && (P(), g()), V--);
236
+ Q.value && (V++, await M(o.value, !0, t.modelValue), V === 1 && (P(), b()), V--);
239
237
  },
240
238
  {
241
239
  debounce: t.depsDebounceTime
@@ -252,7 +250,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
252
250
  K.value = !1, n("inactive");
253
251
  }, Re = (e) => {
254
252
  e.preventDefault(), n("click", e), !(t.disabled || t.readonly) && (x(), Ke());
255
- }, _e = gt(
253
+ }, _e = yt(
256
254
  (e) => typeof e != "string",
257
255
  JSON.stringify
258
256
  ), Ge = h(() => [].concat(t.modelValue).map((e) => {
@@ -267,7 +265,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
267
265
  let e = null;
268
266
  t.multiple && (e = []), n("update:modelValue", e);
269
267
  };
270
- return (e, a) => (y(), U(ut, {
268
+ return (e, a) => (y(), U(Bt, {
271
269
  ref_key: "outerContainer",
272
270
  ref: A,
273
271
  class: ee({
@@ -294,9 +292,9 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
294
292
  ref: D,
295
293
  class: "bb-base-select__inner-wrapper"
296
294
  }, [
297
- E(nt, {
295
+ E(wt, {
298
296
  "append:icon": t["append:icon"],
299
- clearable: e.clearable && !b(it)(e.modelValue),
297
+ clearable: e.clearable && !g(ot)(e.modelValue),
300
298
  "prepend:icon": t["prepend:icon"],
301
299
  "prevent-focus": !0,
302
300
  "onClick:clear": Je
@@ -314,32 +312,32 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
314
312
  p(e.$slots, "suffix")
315
313
  ]),
316
314
  default: s(() => [
317
- E(b(ot), { tag: "span" }, {
315
+ E(at, { tag: "span" }, {
318
316
  default: s(() => [
319
317
  T("span", Ct, [
320
318
  e.multiple && r.value.length <= e.maxSelectedLabels ? (y(), O(ae, { key: 0 }, [
321
- e.comma ? (y(), U(Bt, {
319
+ e.comma ? (y(), U(gt, {
322
320
  key: 0,
323
321
  ref_key: "commaBox",
324
322
  ref: R,
325
323
  options: r.value,
326
324
  "onOption:unselected": W
327
- }, null, 8, ["options"])) : (y(), U(wt, {
325
+ }, null, 8, ["options"])) : (y(), U(bt, {
328
326
  key: 1,
329
327
  ref_key: "chipsBox",
330
328
  ref: _,
331
329
  options: r.value,
332
330
  "onOption:unselected": W
333
331
  }, null, 8, ["options"]))
334
- ], 64)) : e.multiple ? (y(), O("span", It, Ze(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : b(de)("select.multipleMaxReached", r.value.length)), 1)) : te("", !0),
332
+ ], 64)) : e.multiple ? (y(), O("span", It, Ze(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : g(de)("select.multipleMaxReached", r.value.length)), 1)) : te("", !0),
335
333
  Ye((y(), O("input", {
336
- id: b(G),
337
- key: `${b(ce)}`,
334
+ id: g(G),
335
+ key: `${g(ce)}`,
338
336
  ref_key: "input",
339
337
  ref: q,
340
338
  "onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
341
339
  "aria-autocomplete": "list",
342
- "aria-controls": b(ze) ? `${b(G)}_listbox` : void 0,
340
+ "aria-controls": g(ze) ? `${g(G)}_listbox` : void 0,
343
341
  "aria-describedby": e.ariaDescribedby,
344
342
  "aria-expanded": u.value,
345
343
  autocomplete: e.autocomplete,
@@ -377,7 +375,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
377
375
  }),
378
376
  e.showChevron ? p(e.$slots, "chevron", {
379
377
  key: 0,
380
- loading: !!b(J),
378
+ loading: !!g(J),
381
379
  shown: u.value
382
380
  }, () => [
383
381
  a[2] || (a[2] = T("svg", {
@@ -450,5 +448,5 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
450
448
  }
451
449
  });
452
450
  export {
453
- sa as default
451
+ na as default
454
452
  };
package/dist/index39.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as re, ref as d, computed as p, onMounted as te, watch as le, createElementBlock as y, openBlock as g, mergeProps as N, 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 "./index263.js";
3
- import { isCssColor as Y } from "./index228.js";
4
- import { isNil as S } from "./index229.js";
2
+ import { head as ue } from "./index251.js";
3
+ import { isCssColor as Y } from "./index246.js";
4
+ import { isNil as S } from "./index252.js";
5
5
  import { getAsPercentageBetween as x, getAsPercentage as de, getValueFromPercentageInInterval as T } from "./index139.js";
6
- import { snapToStep as me } from "./index264.js";
7
- import { last as ce } from "./index247.js";
8
- import { transpose as j } from "./index265.js";
9
- import { clamp as f } from "./index213.js";
6
+ import { snapToStep as me } from "./index253.js";
7
+ import { last as ce } from "./index223.js";
8
+ import { transpose as j } from "./index254.js";
9
+ import { clamp as f } from "./index214.js";
10
10
  const be = { class: "bb-base-slider__slider-container" }, ve = {
11
11
  key: 0,
12
12
  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, 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 "./index228.js";
3
- import { when as N } from "./index259.js";
2
+ import { isCssColor as b } from "./index246.js";
3
+ import { when as N } from "./index247.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 "./index219.js";
4
+ import N from "./index231.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index221.js";
7
- import { useIndexById as T } from "./index222.js";
8
- import { useBaseOptions as q } from "./index223.js";
9
- import { useCoherence as J } from "./index224.js";
10
- import { hash as Q } from "./index225.js";
11
- import { useHashedWatcher as $ } from "./index226.js";
12
- import { usePrefill as X } from "./index227.js";
6
+ import { useItemsGetter as U } from "./index233.js";
7
+ import { useIndexById as T } from "./index234.js";
8
+ import { useBaseOptions as q } from "./index235.js";
9
+ import { useCoherence as J } from "./index236.js";
10
+ import { hash as Q } from "./index222.js";
11
+ import { useHashedWatcher as $ } from "./index237.js";
12
+ import { usePrefill as X } from "./index238.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -1,20 +1,18 @@
1
- import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z, createBlock as k, openBlock as v, normalizeClass as G, withCtx as n, createVNode as I, unref as $, createElementVNode as O, createElementBlock as J, createCommentVNode as W, withDirectives as X, Fragment as Y, mergeProps as ee, withModifiers as s, withKeys as y, vModelText as te, renderSlot as d, nextTick as oe } from "vue";
2
- /* empty css */
3
- /* empty css */
1
+ import { defineComponent as j, ref as i, computed as f, toRef as E, watch as Q, createBlock as k, openBlock as v, normalizeClass as Z, withCtx as n, createVNode as I, unref as G, createElementVNode as $, createElementBlock as J, createCommentVNode as W, withDirectives as X, Fragment as Y, mergeProps as ee, withModifiers as s, withKeys as y, vModelText as te, renderSlot as d, nextTick as oe } from "vue";
4
2
  import ae from "./index111.js";
5
3
  /* empty css */
6
- import le from "./index135.js";
4
+ import { last as le } from "./index223.js";
5
+ import { useBaseOptions as ne } from "./index235.js";
6
+ import { useIndexById as re } from "./index234.js";
7
+ import ue from "./index256.js";
7
8
  /* empty css */
8
- import ne from "./index137.js";
9
- import { last as re } from "./index247.js";
10
- import { useBaseOptions as ie } from "./index223.js";
11
- import { useIndexById as ue } from "./index222.js";
12
- import se from "./index254.js";
9
+ import ie from "./index258.js";
13
10
  /* empty css */
14
- import de from "./index256.js";
11
+ import se from "./index135.js";
15
12
  /* empty css */
16
- import { isEmpty as pe } from "./index258.js";
17
- const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
13
+ import de from "./index137.js";
14
+ import { isEmpty as pe } from "./index260.js";
15
+ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Oe = /* @__PURE__ */ j({
18
16
  __name: "BaseTag",
19
17
  props: {
20
18
  "append:icon": {},
@@ -39,17 +37,17 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
39
37
  required: { type: Boolean }
40
38
  },
41
39
  emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
42
- setup(L, { emit: D }) {
43
- const t = L, l = D;
40
+ setup(O, { emit: L }) {
41
+ const t = O, l = L;
44
42
  if (t.multiple && !Array.isArray(t.modelValue))
45
43
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
46
- const b = u(null), T = u(null), B = u(null), V = u(null), r = f(
44
+ const b = i(null), D = i(null), B = i(null), V = i(null), r = f(
47
45
  () => t.comma ? B.value : V.value
48
- ), p = u(null), A = () => {
46
+ ), p = i(null), T = () => {
49
47
  p.value instanceof HTMLInputElement && p.value.focus();
50
- }, o = u(""), i = f(() => K.value.filter((e) => e.selected)), { data: w, get: H } = ue({
48
+ }, o = i(""), u = f(() => H.value.filter((e) => e.selected)), { data: w, get: A } = re({
51
49
  items: E(t, "modelValue")
52
- }), { options: K } = ie({
50
+ }), { options: H } = ne({
53
51
  disabled: E(t, "disabled"),
54
52
  items: f(() => [].concat(t.modelValue)),
55
53
  itemText: void 0,
@@ -63,38 +61,38 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
63
61
  return;
64
62
  }
65
63
  let e;
66
- i.value && (e = re(i.value)), o.value = (e == null ? void 0 : e.text) || "";
67
- }, q = async (e) => {
64
+ u.value && (e = le(u.value)), o.value = (e == null ? void 0 : e.text) || "";
65
+ }, K = async (e) => {
68
66
  if (t.multiple) {
69
67
  const a = { ...w.value };
70
68
  delete a[e.valueHash], l("update:modelValue", Object.values(a));
71
69
  } else
72
70
  l("update:modelValue", null);
73
- A();
71
+ T();
74
72
  };
75
- Z(
73
+ Q(
76
74
  () => t.modelValue,
77
75
  async () => {
78
76
  C();
79
77
  }
80
78
  );
81
- const g = u(!1), M = () => {
79
+ const g = i(!1), q = () => {
82
80
  g.value = !0;
83
- }, N = () => {
81
+ }, M = () => {
84
82
  g.value = !1, l("inactive");
85
- }, h = f(() => !(t.readonly || t.disabled || !r.value && t.multiple)), P = (e) => {
83
+ }, h = f(() => !(t.readonly || t.disabled || !r.value && t.multiple)), N = (e) => {
86
84
  var a;
87
- h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusPrevious())));
88
- }, z = (e) => {
85
+ h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((a = r.value) == null || a.focusPrevious())));
86
+ }, P = (e) => {
89
87
  var a;
90
- h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusNext())));
91
- }, F = async () => {
88
+ h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((a = r.value) == null || a.focusNext())));
89
+ }, z = async () => {
92
90
  var e, a;
93
- !h.value || o.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await oe(), (a = r.value) == null || a.focusPrevious());
94
- }, S = () => {
91
+ !h.value || o.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await oe(), (a = r.value) == null || a.focusPrevious());
92
+ }, F = () => {
95
93
  var e;
96
94
  (e = r.value) == null || e.blur();
97
- }, U = async (e) => {
95
+ }, S = async (e) => {
98
96
  var a;
99
97
  if (l("keydown", e), t.readonly || t.disabled) {
100
98
  e.preventDefault();
@@ -114,36 +112,36 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
114
112
  l("keydown", e);
115
113
  return;
116
114
  }
117
- if (e.preventDefault(), H(o.value))
115
+ if (e.preventDefault(), A(o.value))
118
116
  l("duplicate", o.value), o.value = "";
119
117
  else {
120
- if (t.max && i.value.length >= t.max)
118
+ if (t.max && u.value.length >= t.max)
121
119
  return;
122
120
  t.multiple ? l("update:modelValue", t.modelValue.concat(o.value)) : l("update:modelValue", o.value);
123
121
  }
124
122
  }
123
+ }, U = (e) => {
124
+ l("focus", e), q(), document.addEventListener("click", c), document.addEventListener("focusin", c);
125
125
  }, _ = (e) => {
126
- l("focus", e), M(), document.addEventListener("click", c), document.addEventListener("focusin", c);
127
- }, x = (e) => {
128
126
  l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
129
127
  }, c = async (e) => {
130
128
  if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
131
- N(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), C();
129
+ M(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), C();
132
130
  return;
133
131
  }
134
- }, R = {
132
+ }, x = {
135
133
  onBlur: (e) => l("blur", e),
136
134
  onChange: (e) => l("change", e),
137
135
  onKeyup: (e) => l("keyup", e),
138
136
  onInput: (e) => l("input", e)
139
- }, j = () => {
137
+ }, R = () => {
140
138
  let e = null;
141
139
  t.multiple && (e = []), l("update:modelValue", e);
142
140
  };
143
- return (e, a) => (v(), k(ne, {
141
+ return (e, a) => (v(), k(de, {
144
142
  ref_key: "outerContainer",
145
143
  ref: b,
146
- class: G({
144
+ class: Z({
147
145
  "bb-base-tag": !0,
148
146
  "bb-base-tag--active": g.value,
149
147
  "bb-base-tag--disabled": e.disabled,
@@ -152,7 +150,7 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
152
150
  "bb-base-tag--readonly": e.readonly,
153
151
  "bb-base-tag--compact": e.compact
154
152
  }),
155
- onClick: x
153
+ onClick: _
156
154
  }, {
157
155
  "prepend-outer": n(() => [
158
156
  d(e.$slots, "prepend-outer")
@@ -161,14 +159,14 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
161
159
  d(e.$slots, "append-outer")
162
160
  ]),
163
161
  default: n(() => [
164
- I(le, {
162
+ I(se, {
165
163
  ref_key: "innerContainer",
166
- ref: T,
164
+ ref: D,
167
165
  "append:icon": t["append:icon"],
168
- clearable: e.clearable && !$(pe)(e.modelValue),
166
+ clearable: e.clearable && !G(pe)(e.modelValue),
169
167
  "prepend:icon": t["prepend:icon"],
170
168
  "prevent-focus": !0,
171
- "onClick:clear": j
169
+ "onClick:clear": R
172
170
  }, {
173
171
  prepend: n(() => [
174
172
  d(e.$slots, "prepend")
@@ -183,28 +181,28 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
183
181
  d(e.$slots, "suffix")
184
182
  ]),
185
183
  default: n(() => [
186
- I($(ae), { tag: "span" }, {
184
+ I(ae, { tag: "span" }, {
187
185
  default: n(() => [
188
- O("span", ce, [
186
+ $("span", ce, [
189
187
  e.multiple ? (v(), J(Y, { key: 0 }, [
190
- e.comma ? (v(), k(de, {
188
+ e.comma ? (v(), k(ie, {
191
189
  key: 0,
192
190
  ref_key: "commaBox",
193
191
  ref: B,
194
- options: i.value
195
- }, null, 8, ["options"])) : (v(), k(se, {
192
+ options: u.value
193
+ }, null, 8, ["options"])) : (v(), k(ue, {
196
194
  key: 1,
197
195
  ref_key: "chipsBox",
198
196
  ref: V,
199
- options: i.value,
200
- "onOption:unselected": q
197
+ options: u.value,
198
+ "onOption:unselected": K
201
199
  }, null, 8, ["options"]))
202
200
  ], 64)) : W("", !0),
203
- X(O("input", ee({
201
+ X($("input", ee({
204
202
  id: e.id,
205
203
  ref_key: "input",
206
204
  ref: p
207
- }, R, {
205
+ }, x, {
208
206
  "onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
209
207
  "aria-describedby": e.ariaDescribedby,
210
208
  autocomplete: e.autocomplete,
@@ -218,13 +216,13 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
218
216
  size: "1",
219
217
  style: { "--characters": o.value.length },
220
218
  type: "text",
221
- onFocus: s(_, ["stop"]),
219
+ onFocus: s(U, ["stop"]),
222
220
  onKeydown: [
223
- s(U, ["stop"]),
224
- y(s(F, ["stop"]), ["delete"]),
225
- y(s(P, ["stop"]), ["left"]),
226
- y(s(S, ["stop", "prevent"]), ["esc"]),
227
- y(s(z, ["stop"]), ["right"])
221
+ s(S, ["stop"]),
222
+ y(s(z, ["stop"]), ["delete"]),
223
+ y(s(N, ["stop"]), ["left"]),
224
+ y(s(F, ["stop", "prevent"]), ["esc"]),
225
+ y(s(P, ["stop"]), ["right"])
228
226
  ]
229
227
  }), null, 16, me), [
230
228
  [te, o.value]
@@ -242,5 +240,5 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
242
240
  }
243
241
  });
244
242
  export {
245
- De as default
243
+ Oe as default
246
244
  };
package/dist/index49.js CHANGED
@@ -3,7 +3,7 @@ import E from "./index135.js";
3
3
  /* empty css */
4
4
  import I from "./index137.js";
5
5
  import { isNotNil as N } from "./index143.js";
6
- import { MaskInput as z } from "./index275.js";
6
+ import { MaskInput as z } from "./index248.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 "./index216.js";
6
+ import { useLocale as g } from "./index230.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 "./index228.js";
2
+ import { isCssColor as y } from "./index246.js";
3
3
  import { wait as C } from "./index138.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 "./index228.js";
3
- import { isNil as B } from "./index229.js";
2
+ import { isCssColor as l } from "./index246.js";
3
+ import { isNil as B } from "./index252.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: {