bitboss-ui 2.0.114 → 2.0.116

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 (173) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +31 -58
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -5
  3. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +5 -0
  4. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
  5. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +8 -167
  6. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  7. package/dist/components/BbSelect/BbSelect.vue.d.ts +5 -0
  8. package/dist/index100.js +72 -70
  9. package/dist/index101.js +5 -3
  10. package/dist/index111.js +12 -12
  11. package/dist/index119.js +1 -1
  12. package/dist/index121.js +6 -6
  13. package/dist/index123.js +1 -1
  14. package/dist/index125.js +1 -1
  15. package/dist/index127.js +1 -1
  16. package/dist/index128.js +1 -1
  17. package/dist/index129.js +1 -1
  18. package/dist/index13.js +2 -2
  19. package/dist/index131.js +1 -1
  20. package/dist/index132.js +2 -2
  21. package/dist/index133.js +2 -2
  22. package/dist/index15.js +5 -5
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +8 -8
  25. package/dist/index205.js +2 -115
  26. package/dist/index206.js +3 -2
  27. package/dist/index207.js +51 -6
  28. package/dist/index209.js +13 -126
  29. package/dist/index21.js +16 -16
  30. package/dist/index210.js +2 -5
  31. package/dist/index211.js +4 -125
  32. package/dist/index212.js +2 -16
  33. package/dist/index213.js +86 -16
  34. package/dist/index215.js +25 -15
  35. package/dist/index216.js +17 -2
  36. package/dist/index217.js +51 -2
  37. package/dist/index218.js +14 -40
  38. package/dist/index219.js +3 -13
  39. package/dist/index220.js +11 -19
  40. package/dist/index221.js +16 -6
  41. package/dist/index222.js +125 -14
  42. package/dist/index223.js +5 -53
  43. package/dist/index224.js +127 -0
  44. package/dist/index225.js +16 -13
  45. package/dist/index226.js +16 -5
  46. package/dist/index227.js +17 -367
  47. package/dist/index228.js +13 -17
  48. package/dist/index229.js +2 -27
  49. package/dist/index23.js +31 -32
  50. package/dist/index230.js +2 -250
  51. package/dist/index231.js +41 -52
  52. package/dist/index232.js +12 -43
  53. package/dist/index233.js +20 -5
  54. package/dist/index234.js +5 -59
  55. package/dist/index235.js +11 -82
  56. package/dist/index236.js +7 -0
  57. package/dist/index237.js +365 -21
  58. package/dist/index238.js +18 -16
  59. package/dist/index239.js +26 -47
  60. package/dist/index240.js +8 -15
  61. package/dist/index241.js +250 -12
  62. package/dist/index242.js +52 -16
  63. package/dist/index243.js +44 -2
  64. package/dist/index244.js +5 -4
  65. package/dist/index245.js +60 -2
  66. package/dist/index246.js +3 -4
  67. package/dist/index247.js +7 -3
  68. package/dist/index248.js +4 -3
  69. package/dist/index249.js +115 -7
  70. package/dist/index25.js +7 -7
  71. package/dist/index250.js +2 -2
  72. package/dist/index251.js +2 -18
  73. package/dist/index252.js +2 -106
  74. package/dist/index253.js +20 -0
  75. package/dist/index254.js +53 -47
  76. package/dist/index256.js +100 -12
  77. package/dist/index258.js +12 -2
  78. package/dist/index261.js +9 -9
  79. package/dist/index262.js +23 -6
  80. package/dist/index263.js +89 -15
  81. package/dist/index265.js +8 -0
  82. package/dist/index266.js +15 -8
  83. package/dist/index267.js +224 -23
  84. package/dist/index268.js +3 -9
  85. package/dist/index27.js +1 -1
  86. package/dist/index270.js +7 -28
  87. package/dist/index271.js +4 -281
  88. package/dist/index272.js +3 -6
  89. package/dist/index273.js +17 -2
  90. package/dist/index274.js +9 -2
  91. package/dist/index275.js +28 -2
  92. package/dist/index276.js +281 -2
  93. package/dist/index277.js +6 -2
  94. package/dist/index278.js +2 -2
  95. package/dist/index279.js +2 -126
  96. package/dist/index280.js +2 -431
  97. package/dist/index281.js +2 -176
  98. package/dist/index282.js +2 -2
  99. package/dist/index283.js +2 -3
  100. package/dist/index284.js +128 -0
  101. package/dist/index285.js +429 -5
  102. package/dist/index286.js +176 -22
  103. package/dist/index287.js +4 -0
  104. package/dist/index288.js +22 -7
  105. package/dist/index29.js +3 -3
  106. package/dist/index290.js +7 -2
  107. package/dist/index291.js +11 -2
  108. package/dist/index292.js +2 -2
  109. package/dist/index293.js +2 -2
  110. package/dist/index294.js +1 -1
  111. package/dist/index295.js +1 -1
  112. package/dist/index296.js +1 -21
  113. package/dist/index297.js +4 -0
  114. package/dist/index298.js +22 -3
  115. package/dist/index300.js +9 -200
  116. package/dist/index301.js +191 -427
  117. package/dist/index302.js +422 -113
  118. package/dist/index303.js +126 -3
  119. package/dist/index304.js +83 -218
  120. package/dist/index305.js +8 -89
  121. package/dist/index306.js +1 -1
  122. package/dist/index307.js +1 -1
  123. package/dist/index308.js +4 -4
  124. package/dist/index309.js +2 -5
  125. package/dist/index31.js +2 -2
  126. package/dist/index310.js +3 -2
  127. package/dist/index311.js +1 -1
  128. package/dist/index312.js +5 -5
  129. package/dist/index313.js +3 -8
  130. package/dist/index314.js +3 -3
  131. package/dist/index315.js +58 -3
  132. package/dist/index316.js +32 -57
  133. package/dist/index317.js +5 -3
  134. package/dist/index318.js +8 -53
  135. package/dist/index319.js +4 -53
  136. package/dist/index320.js +6 -46
  137. package/dist/index321.js +18 -6
  138. package/dist/index322.js +52 -18
  139. package/dist/index323.js +52 -32
  140. package/dist/index324.js +6 -3
  141. package/dist/index325.js +46 -6
  142. package/dist/index327.js +1 -1
  143. package/dist/index33.js +8 -8
  144. package/dist/index35.js +4 -4
  145. package/dist/index37.js +136 -135
  146. package/dist/index39.js +5 -5
  147. package/dist/index41.js +2 -2
  148. package/dist/index43.js +8 -8
  149. package/dist/index45.js +7 -7
  150. package/dist/index47.js +2 -2
  151. package/dist/index49.js +2 -2
  152. package/dist/index51.js +11 -12
  153. package/dist/index53.js +1 -1
  154. package/dist/index55.js +1 -1
  155. package/dist/index57.js +2 -2
  156. package/dist/index61.js +1 -1
  157. package/dist/index75.js +3 -3
  158. package/dist/index77.js +1 -1
  159. package/dist/index79.js +2 -2
  160. package/dist/index81.js +1 -1
  161. package/dist/index84.js +4 -4
  162. package/dist/index86.js +2 -2
  163. package/dist/index88.js +5 -5
  164. package/dist/index90.js +1 -1
  165. package/package.json +2 -2
  166. package/dist/index208.js +0 -5
  167. package/dist/index214.js +0 -21
  168. package/dist/index257.js +0 -4
  169. package/dist/index264.js +0 -92
  170. package/dist/index269.js +0 -10
  171. package/dist/index289.js +0 -13
  172. package/dist/index299.js +0 -19
  173. /package/dist/{index328.js → index329.js} +0 -0
package/dist/index37.js CHANGED
@@ -1,39 +1,39 @@
1
- import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as x, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as V, createElementVNode as H, createElementBlock as A, Fragment as ee, toDisplayString as je, createCommentVNode as te, withDirectives as Je, withModifiers as p, withKeys as g, vModelDynamic as Qe, renderList as Xe, mergeProps as oe, normalizeStyle as Ye, nextTick as _ } from "vue";
1
+ import { defineComponent as _e, defineAsyncComponent as Ge, ref as f, computed as y, toRef as L, openBlock as h, createBlock as T, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as V, createElementVNode as x, createElementBlock as F, Fragment as ee, toDisplayString as je, createCommentVNode as te, withDirectives as Je, withModifiers as p, withKeys as g, vModelDynamic as Qe, renderList as Xe, mergeProps as le, normalizeStyle as Ye, nextTick as U } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { useId as Ze } from "./index8.js";
5
5
  import { useMobile as et } from "./index9.js";
6
6
  import tt from "./index128.js";
7
7
  /* empty css */
8
- import { last as ot } from "./index217.js";
9
- import { matchAnyKey as le } from "./index251.js";
10
- import { useFloating as lt } from "./index209.js";
11
- import { useIntersectionObserver as at } from "./index132.js";
12
- import { wait as L } from "./index130.js";
13
- import { when as nt } from "./index244.js";
14
- import it from "./index252.js";
8
+ import { last as lt } from "./index230.js";
9
+ import { matchAnyKey as ae } from "./index253.js";
10
+ import { useFloating as at } from "./index222.js";
11
+ import { useIntersectionObserver as ot } from "./index132.js";
12
+ import { wait as H } from "./index130.js";
13
+ import { when as nt } from "./index211.js";
14
+ import it from "./index254.js";
15
15
  /* empty css */
16
- import ut from "./index254.js";
16
+ import ut from "./index256.js";
17
17
  /* empty css */
18
- import rt from "./index223.js";
18
+ import rt from "./index207.js";
19
19
  /* empty css */
20
- import st from "./index225.js";
21
- import { waitFor as dt } from "./index221.js";
22
- import ct from "./index222.js";
23
- import { useItemsGetter as pt } from "./index237.js";
24
- import { usePrefill as mt } from "./index242.js";
25
- import { useArray as ft } from "./index256.js";
26
- import { useBaseOptions as vt } from "./index239.js";
27
- import { useIndexById as ae } from "./index238.js";
28
- import { useCoherence as yt } from "./index240.js";
29
- import { hash as ht } from "./index208.js";
30
- import { useHashedWatcher as ne } from "./index241.js";
31
- import { useLocale as bt } from "./index219.js";
32
- import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./index227.js";
33
- const It = { class: "bb-base-select__input-container" }, kt = {
20
+ import st from "./index209.js";
21
+ import { waitFor as dt } from "./index234.js";
22
+ import ct from "./index235.js";
23
+ import { useItemsGetter as pt } from "./index215.js";
24
+ import { usePrefill as mt } from "./index221.js";
25
+ import { useArray as ft } from "./index258.js";
26
+ import { useBaseOptions as vt } from "./index217.js";
27
+ import { useIndexById as oe } from "./index216.js";
28
+ import { useCoherence as yt } from "./index218.js";
29
+ import { hash as ht } from "./index219.js";
30
+ import { useHashedWatcher as ne } from "./index220.js";
31
+ import { useLocale as bt } from "./index232.js";
32
+ import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./index237.js";
33
+ const It = { class: "bb-base-select__input-container" }, St = {
34
34
  key: 1,
35
35
  class: "bb-base-select__max-reached"
36
- }, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ao = /* @__PURE__ */ Re({
36
+ }, kt = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ol = /* @__PURE__ */ _e({
37
37
  __name: "BaseSelect",
38
38
  props: {
39
39
  allowWriting: { type: [Boolean, String], default: !0 },
@@ -69,6 +69,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
69
69
  readonly: { type: Boolean },
70
70
  required: { type: Boolean },
71
71
  stash: { type: Boolean },
72
+ selectedLabelsFn: {},
72
73
  teleportTarget: {},
73
74
  transitionDuration: { default: 300 },
74
75
  updateOnAnimationFrame: { type: Boolean, default: !1 }
@@ -78,19 +79,19 @@ const It = { class: "bb-base-select__input-container" }, kt = {
78
79
  const t = ie, u = ue;
79
80
  if (t.multiple && !Array.isArray(t.modelValue))
80
81
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
81
- const { t: re } = bt(), se = Ge(() => import("./index250.js")), E = f(null), I = f(null), n = f(null), U = f(null), R = f(null), r = y(
82
- () => t.comma ? U.value : R.value
82
+ const { t: re } = bt(), se = Ge(() => import("./index252.js")), A = f(null), I = f(null), n = f(null), R = f(null), _ = f(null), s = y(
83
+ () => t.comma ? R.value : _.value
83
84
  ), { isMobile: de } = et(), ce = y(
84
85
  () => t.allowWriting === "not-mobile" && de.value ? "none" : void 0
85
86
  ), G = t.id || Ze().id.value;
86
- at(
87
+ ot(
87
88
  I,
88
89
  ([{ intersectionRatio: e }]) => {
89
- e !== 1 && S();
90
+ e !== 1 && k();
90
91
  },
91
92
  { threshold: [0, 1] }
92
93
  );
93
- const { floatingStyles: pe } = lt(
94
+ const { floatingStyles: pe } = at(
94
95
  I,
95
96
  n,
96
97
  {
@@ -99,14 +100,14 @@ const It = { class: "bb-base-select__input-container" }, kt = {
99
100
  middleware: [wt(), Bt(5), Vt()]
100
101
  }
101
102
  ), me = y(() => {
102
- var o;
103
+ var l;
103
104
  const e = {
104
105
  ...pe.value,
105
106
  zIndex: "10"
106
107
  };
107
- return I.value && (e.width = `${(o = I.value) == null ? void 0 : o.$el.clientWidth}px`), e;
108
- }), F = f(null), q = () => {
109
- F.value instanceof HTMLInputElement && F.value.focus();
108
+ return I.value && (e.width = `${(l = I.value) == null ? void 0 : l.$el.clientWidth}px`), e;
109
+ }), E = f(null), q = () => {
110
+ E.value instanceof HTMLInputElement && E.value.focus();
110
111
  }, fe = async (e) => {
111
112
  u("focus", e), We(), document.addEventListener("click", D), document.addEventListener("focusin", D);
112
113
  }, ve = () => {
@@ -114,62 +115,62 @@ const It = { class: "bb-base-select__input-container" }, kt = {
114
115
  }, ye = async (e) => {
115
116
  u("blur", e);
116
117
  }, he = (e) => u("change", e), be = (e) => {
117
- var o;
118
- u("input", e), l.value === "" && (t.multiple || u("update:modelValue", null)), (o = r.value) == null || o.blur(), N.value && k(), Ce(l.value, !1, t.modelValue);
118
+ var l;
119
+ u("input", e), a.value === "" && (t.multiple || u("update:modelValue", null)), (l = s.value) == null || l.blur(), N.value && S(), Ce(a.value, !1, t.modelValue);
119
120
  }, D = async (e) => {
120
- if (e.target instanceof Node && E.value && n.value && !E.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
121
- S(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), b();
121
+ if (e.target instanceof Node && A.value && n.value && !A.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
122
+ k(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await H(t.transitionDuration), b();
122
123
  return;
123
124
  }
124
- }, w = y(() => !(t.readonly || t.disabled || O.value || !r.value && t.multiple)), ge = async () => {
125
- var e, o, a;
126
- w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusPrevious() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusLastSelected()));
125
+ }, w = y(() => !(t.readonly || t.disabled || O.value || !s.value && t.multiple && r.value.length <= t.maxSelectedLabels)), ge = async () => {
126
+ var e, l, o;
127
+ w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusPrevious() : (await S(), await H(t.transitionDuration), (o = n.value) == null || o.focusLastSelected()));
127
128
  }, we = async () => {
128
- var e, o, a;
129
- w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusNext() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusFirstSelected()));
129
+ var e, l, o;
130
+ w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusNext() : (await S(), await H(t.transitionDuration), (o = n.value) == null || o.focusFirstSelected()));
130
131
  }, Be = (e) => {
131
- var a, d, v, C;
132
- if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
133
- (d = r.value) == null || d.focusPrevious();
134
- const o = (v = r.value) == null ? void 0 : v.getHighlighted();
135
- o && ((C = n.value) == null || C.focusByHash(o.valueHash));
132
+ var o, d, v, C;
133
+ if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !r.value.length)) return;
134
+ (d = s.value) == null || d.focusPrevious();
135
+ const l = (v = s.value) == null ? void 0 : v.getHighlighted();
136
+ l && ((C = n.value) == null || C.focusByHash(l.valueHash));
136
137
  }, Ve = (e) => {
137
- var a, d, v, C;
138
- if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
139
- (d = r.value) == null || d.focusNext();
140
- const o = (v = r.value) == null ? void 0 : v.getHighlighted();
141
- o && ((C = n.value) == null || C.focusByHash(o.valueHash));
138
+ var o, d, v, C;
139
+ if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !r.value.length)) return;
140
+ (d = s.value) == null || d.focusNext();
141
+ const l = (v = s.value) == null ? void 0 : v.getHighlighted();
142
+ l && ((C = n.value) == null || C.focusByHash(l.valueHash));
142
143
  }, Ie = async () => {
143
- var o, a;
144
+ var l, o;
144
145
  if (!w.value)
145
146
  return;
146
147
  if (m.value) {
147
- if ((a = n.value) != null && a.getHighlighted()) {
148
+ if ((o = n.value) != null && o.getHighlighted()) {
148
149
  n.value.confirmOption();
149
150
  return;
150
151
  }
151
152
  } else {
152
- await k(), await L(t.transitionDuration), s.value.length && ((o = n.value) == null || o.focusFirstSelected());
153
+ await S(), await H(t.transitionDuration), r.value.length && ((l = n.value) == null || l.focusFirstSelected());
153
154
  return;
154
155
  }
155
- const e = l.value.trim();
156
- Ee(e) || (u("option:add", e), l.value = "");
157
- }, ke = async () => {
158
- m.value && await S();
156
+ const e = a.value.trim();
157
+ Ae(e) || (u("option:add", e), a.value = "");
159
158
  }, Se = async () => {
160
- var e, o;
161
- !w.value || l.value || !s.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await _(), (o = r.value) == null || o.focusPrevious());
162
- }, l = f(""), {
159
+ m.value && await k();
160
+ }, ke = async () => {
161
+ var e, l;
162
+ !w.value || a.value || !r.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await U(), (l = s.value) == null || l.focusPrevious());
163
+ }, a = f(""), {
163
164
  getter: M,
164
165
  debouncedGetter: Ce,
165
166
  items: De,
166
167
  loading: j
167
168
  } = pt({
168
- items: T(t, "items"),
169
+ items: L(t, "items"),
169
170
  debounce: t.queryDebounceTime
170
171
  }), P = () => {
171
- var e, o;
172
- t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (o = n.value) == null || o.blur());
172
+ var e, l;
173
+ t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = s.value) == null || e.blur(), (l = n.value) == null || l.blur());
173
174
  }, {
174
175
  hasPrefilled: J,
175
176
  isPrefilling: $e,
@@ -179,53 +180,53 @@ const It = { class: "bb-base-select__input-container" }, kt = {
179
180
  currentValue: t.modelValue,
180
181
  multiple: t.multiple,
181
182
  fn: async ({ prefill: e }) => {
182
- await M(l.value, e, t.modelValue), P(), b();
183
+ await M(a.value, e, t.modelValue), P(), b();
183
184
  }
184
185
  }), {
185
- array: Te,
186
- add: xe,
187
- remove: He,
188
- set: Ae
189
- } = ft(), s = y(() => $.value.filter((e) => e.selected)), Le = y(() => s.value.length ? "" : t.placeholder), { data: Q, get: Ee } = ae({
190
- items: T(t, "modelValue")
186
+ array: Le,
187
+ add: Te,
188
+ remove: xe,
189
+ set: Fe
190
+ } = ft(), r = y(() => $.value.filter((e) => e.selected)), He = y(() => r.value.length ? "" : t.placeholder), { data: Q, get: Ae } = oe({
191
+ items: L(t, "modelValue")
191
192
  }), { options: $ } = vt({
192
- disabled: T(t, "disabled"),
193
- items: y(() => [...De.value, ...Te.value]),
193
+ disabled: L(t, "disabled"),
194
+ items: y(() => [...De.value, ...Le.value]),
194
195
  itemText: t.itemText,
195
196
  itemValue: t.itemValue,
196
197
  max: t.max,
197
198
  selectable: !0,
198
199
  selectedIndexedByHash: Q
199
- }), O = y(() => !!(j.value || t.loading)), Fe = y(() => {
200
+ }), O = y(() => !!(j.value || t.loading)), Ee = y(() => {
200
201
  let e = [];
201
- const o = s.value.some(
202
- (d) => d.text === l.value
202
+ const l = r.value.some(
203
+ (d) => d.text === a.value
203
204
  );
204
- return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
205
+ return (t.multiple && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
205
206
  let v = !1;
206
- return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || le(d.item, t.filterBy, l.value.trim())), v || le(d, ["text"], l.value.trim());
207
+ return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || ae(d.item, t.filterBy, a.value.trim())), v || ae(d, ["text"], a.value.trim());
207
208
  }) : e = $.value, e;
208
209
  }), b = () => {
209
210
  if (t.multiple) {
210
- l.value = "";
211
+ a.value = "";
211
212
  return;
212
213
  }
213
214
  let e;
214
- s.value && (e = ot(s.value)), l.value = (e == null ? void 0 : e.text) || "";
215
+ r.value && (e = lt(r.value)), a.value = (e == null ? void 0 : e.text) || "";
215
216
  }, qe = async (e) => {
216
- t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && xe(e.item), b()) : (t.stash && Ae(e.item), u("update:modelValue", e.value), await _(), b()), q(), t.multiple || S();
217
+ t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash && Fe(e.item), u("update:modelValue", e.value), await U(), b()), q(), t.multiple || k();
217
218
  }, X = async (e) => {
218
- if (He((o) => o.valueHash !== e.valueHash), t.multiple) {
219
- const o = { ...Q.value };
220
- delete o[e.valueHash], u("update:modelValue", Object.values(o));
219
+ if (xe((l) => l.valueHash !== e.valueHash), t.multiple) {
220
+ const l = { ...Q.value };
221
+ delete l[e.valueHash], u("update:modelValue", Object.values(l));
221
222
  } else
222
- u("update:modelValue", null), await _(), b();
223
+ u("update:modelValue", null), await U(), b();
223
224
  q();
224
- }, { data: Me } = ae({
225
+ }, { data: Me } = oe({
225
226
  items: $,
226
227
  key: "valueHash"
227
228
  }), { coherent: Y, status: Pe } = yt({
228
- modelValue: T(t, "modelValue"),
229
+ modelValue: L(t, "modelValue"),
229
230
  multiple: t.multiple,
230
231
  iteratee: (e) => !!Me.value[ht(e)]
231
232
  });
@@ -233,7 +234,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
233
234
  ne(
234
235
  () => t.modelValue,
235
236
  async () => {
236
- B++, Y.value || (await M(l.value, !1, t.modelValue), P()), B === 1 && b(), B--;
237
+ B++, Y.value || (await M(a.value, !1, t.modelValue), P()), B === 1 && b(), B--;
237
238
  },
238
239
  {
239
240
  debounce: t.modelValueDebounceTime
@@ -241,38 +242,38 @@ const It = { class: "bb-base-select__input-container" }, kt = {
241
242
  ), ne(
242
243
  () => [t.dependencies, t.items],
243
244
  async () => {
244
- J.value && (B++, await M(l.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
245
+ J.value && (B++, await M(a.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
245
246
  },
246
247
  {
247
248
  debounce: t.depsDebounceTime
248
249
  }
249
250
  );
250
- const m = f(!1), N = f(!0), W = f(!1), k = async () => {
251
+ const m = f(!1), N = f(!0), W = f(!1), S = async () => {
251
252
  W.value = !0, await dt(() => !!n.value), N.value = !1, m.value = !0;
252
- }, S = async () => {
253
+ }, k = async () => {
253
254
  var e;
254
- m.value = !1, N.value = !0, (e = r.value) == null || e.blur();
255
- }, Ne = () => m.value ? S() : k(), z = f(!1), We = () => {
255
+ m.value = !1, N.value = !0, (e = s.value) == null || e.blur();
256
+ }, Ne = () => m.value ? k() : S(), z = f(!1), We = () => {
256
257
  z.value = !0;
257
258
  }, ze = () => {
258
259
  z.value = !1, u("inactive");
259
260
  }, Ke = (e) => {
260
261
  e.preventDefault(), u("click", e), !(t.disabled || t.readonly) && (q(), Ne());
261
- }, _e = nt(
262
+ }, Ue = nt(
262
263
  (e) => typeof e != "string",
263
264
  JSON.stringify
264
- ), Ue = y(() => [].concat(t.modelValue).map((e) => {
265
- const o = _e(e);
265
+ ), Re = y(() => [].concat(t.modelValue).map((e) => {
266
+ const l = Ue(e);
266
267
  return {
267
268
  disabled: t.disabled,
268
269
  name: t.name,
269
270
  type: "hidden",
270
- value: o
271
+ value: l
271
272
  };
272
273
  }));
273
- return (e, o) => (h(), x(st, {
274
+ return (e, l) => (h(), T(st, {
274
275
  ref_key: "outerContainer",
275
- ref: E,
276
+ ref: A,
276
277
  class: Z({
277
278
  "bb-base-select": !0,
278
279
  "bb-base-select--active": z.value,
@@ -286,10 +287,10 @@ const It = { class: "bb-base-select__input-container" }, kt = {
286
287
  onClick: Ke
287
288
  }, {
288
289
  "prepend-outer": i(() => [
289
- c(e.$slots, "prepend-outer", { query: l.value })
290
+ c(e.$slots, "prepend-outer", { query: a.value })
290
291
  ]),
291
292
  "append-outer": i(() => [
292
- c(e.$slots, "append-outer", { query: l.value })
293
+ c(e.$slots, "append-outer", { query: a.value })
293
294
  ]),
294
295
  default: i(() => [
295
296
  K(rt, {
@@ -300,13 +301,13 @@ const It = { class: "bb-base-select__input-container" }, kt = {
300
301
  "prevent-focus": !0
301
302
  }, {
302
303
  prepend: i(() => [
303
- c(e.$slots, "prepend", { query: l.value })
304
+ c(e.$slots, "prepend", { query: a.value })
304
305
  ]),
305
306
  prefix: i(() => [
306
307
  c(e.$slots, "prefix")
307
308
  ]),
308
309
  append: i(() => [
309
- c(e.$slots, "append", { query: l.value })
310
+ c(e.$slots, "append", { query: a.value })
310
311
  ]),
311
312
  suffix: i(() => [
312
313
  c(e.$slots, "suffix")
@@ -314,26 +315,26 @@ const It = { class: "bb-base-select__input-container" }, kt = {
314
315
  default: i(() => [
315
316
  K(V(tt), { tag: "span" }, {
316
317
  default: i(() => [
317
- H("span", It, [
318
- e.multiple && s.value.length <= e.maxSelectedLabels ? (h(), A(ee, { key: 0 }, [
319
- e.comma ? (h(), x(ut, {
318
+ x("span", It, [
319
+ e.multiple && r.value.length <= e.maxSelectedLabels ? (h(), F(ee, { key: 0 }, [
320
+ e.comma ? (h(), T(ut, {
320
321
  key: 0,
321
322
  ref_key: "commaBox",
322
- ref: U,
323
- options: s.value
324
- }, null, 8, ["options"])) : (h(), x(it, {
323
+ ref: R,
324
+ options: r.value
325
+ }, null, 8, ["options"])) : (h(), T(it, {
325
326
  key: 1,
326
327
  ref_key: "chipsBox",
327
- ref: R,
328
- options: s.value,
328
+ ref: _,
329
+ options: r.value,
329
330
  "onOption:unselected": X
330
331
  }, null, 8, ["options"]))
331
- ], 64)) : e.multiple ? (h(), A("span", kt, je(V(re)("select.multipleMaxReached", s.value.length)), 1)) : te("", !0),
332
- Je(H("input", {
332
+ ], 64)) : e.multiple ? (h(), F("span", St, je(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : V(re)("select.multipleMaxReached", r.value.length)), 1)) : te("", !0),
333
+ Je(x("input", {
333
334
  id: V(G),
334
335
  ref_key: "input",
335
- ref: F,
336
- "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
336
+ ref: E,
337
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
337
338
  "aria-autocomplete": "list",
338
339
  "aria-controls": W.value ? `${V(G)}_listbox` : void 0,
339
340
  "aria-describedby": e.ariaDescribedby,
@@ -343,7 +344,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
343
344
  class: Z("bb-base-select__text-input"),
344
345
  disabled: e.disabled,
345
346
  inputmode: ce.value,
346
- placeholder: Le.value,
347
+ placeholder: He.value,
347
348
  readonly: e.readonly || !e.allowWriting,
348
349
  required: e.required && (!e.multiple || !e.modelValue.length),
349
350
  role: "combobox",
@@ -355,16 +356,16 @@ const It = { class: "bb-base-select__input-container" }, kt = {
355
356
  onFocus: p(fe, ["stop"]),
356
357
  onInput: p(be, ["stop"]),
357
358
  onKeydown: [
358
- g(p(Se, ["stop"]), ["delete"]),
359
+ g(p(ke, ["stop"]), ["delete"]),
359
360
  g(p(Be, ["stop"]), ["left"]),
360
361
  g(p(we, ["stop", "prevent"]), ["down"]),
361
362
  g(p(Ie, ["stop", "prevent"]), ["enter"]),
362
- g(p(ke, ["stop", "prevent"]), ["esc"]),
363
+ g(p(Se, ["stop", "prevent"]), ["esc"]),
363
364
  g(p(ge, ["stop", "prevent"]), ["up"]),
364
365
  g(p(Ve, ["stop"]), ["right"])
365
366
  ]
366
- }, null, 40, St), [
367
- [Qe, l.value]
367
+ }, null, 40, kt), [
368
+ [Qe, a.value]
368
369
  ])
369
370
  ])
370
371
  ]),
@@ -374,12 +375,12 @@ const It = { class: "bb-base-select__input-container" }, kt = {
374
375
  loading: !!V(j),
375
376
  shown: m.value
376
377
  }, () => [
377
- o[1] || (o[1] = H("svg", {
378
+ l[1] || (l[1] = x("svg", {
378
379
  class: "bb-base-select__chevron",
379
380
  viewBox: "0 0 24 24",
380
381
  xmlns: "http://www.w3.org/2000/svg"
381
382
  }, [
382
- H("path", {
383
+ x("path", {
383
384
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
384
385
  fill: "currentColor"
385
386
  })
@@ -388,11 +389,11 @@ const It = { class: "bb-base-select__input-container" }, kt = {
388
389
  ]),
389
390
  _: 3
390
391
  }, 8, ["append:icon", "prepend:icon"]),
391
- (h(!0), A(ee, null, Xe(Ue.value, (a) => (h(), A("input", oe({
392
- key: a.value,
392
+ (h(!0), F(ee, null, Xe(Re.value, (o) => (h(), F("input", le({
393
+ key: o.value,
393
394
  ref_for: !0
394
- }, a), null, 16))), 128)),
395
- W.value ? (h(), x(ct, {
395
+ }, o), null, 16))), 128)),
396
+ W.value ? (h(), T(ct, {
396
397
  key: 0,
397
398
  target: e.teleportTarget
398
399
  }, {
@@ -405,7 +406,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
405
406
  "loading-text": e.loadingText,
406
407
  "no-data-text": e.noDataText,
407
408
  open: m.value,
408
- options: Fe.value,
409
+ options: Ee.value,
409
410
  style: Ye(me.value),
410
411
  "onOption:selected": qe,
411
412
  "onOption:unselected": X
@@ -414,19 +415,19 @@ const It = { class: "bb-base-select__input-container" }, kt = {
414
415
  c(e.$slots, "options:prepend")
415
416
  ]),
416
417
  loading: i(() => [
417
- c(e.$slots, "loading", { query: l.value })
418
+ c(e.$slots, "loading", { query: a.value })
418
419
  ]),
419
420
  "no-data": i(() => [
420
- c(e.$slots, "no-data", { query: l.value })
421
+ c(e.$slots, "no-data", { query: a.value })
421
422
  ]),
422
423
  "options:append": i(() => [
423
424
  c(e.$slots, "options:append")
424
425
  ]),
425
- option: i((a) => [
426
- c(e.$slots, "option", oe({
426
+ option: i((o) => [
427
+ c(e.$slots, "option", le({
427
428
  hasErrors: e.hasErrors,
428
429
  loading: O.value
429
- }, a))
430
+ }, o))
430
431
  ]),
431
432
  _: 3
432
433
  }, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
@@ -439,5 +440,5 @@ const It = { class: "bb-base-select__input-container" }, kt = {
439
440
  }
440
441
  });
441
442
  export {
442
- ao as default
443
+ ol as default
443
444
  };
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
- import { clamp as le } from "./index206.js";
3
- import { head as O } from "./index258.js";
4
- import { isCssColor as Y } from "./index243.js";
5
- import { isNil as P } from "./index257.js";
2
+ import { clamp as le } from "./index205.js";
3
+ import { head as O } from "./index250.js";
4
+ import { isCssColor as Y } from "./index210.js";
5
+ import { isNil as P } from "./index251.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index208.js";
8
+ import { hash as J } from "./index219.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 A, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index243.js";
3
- import { when as N } from "./index244.js";
2
+ import { isCssColor as b } from "./index210.js";
3
+ import { when as N } from "./index211.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, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as v, 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 "./index235.js";
4
+ import N from "./index213.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index237.js";
7
- import { useIndexById as T } from "./index238.js";
8
- import { useBaseOptions as q } from "./index239.js";
9
- import { useCoherence as J } from "./index240.js";
10
- import { hash as Q } from "./index208.js";
11
- import { useHashedWatcher as E } from "./index241.js";
12
- import { usePrefill as X } from "./index242.js";
6
+ import { useItemsGetter as U } from "./index215.js";
7
+ import { useIndexById as T } from "./index216.js";
8
+ import { useBaseOptions as q } from "./index217.js";
9
+ import { useCoherence as J } from "./index218.js";
10
+ import { hash as Q } from "./index219.js";
11
+ import { useHashedWatcher as E } from "./index220.js";
12
+ import { usePrefill as X } from "./index221.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -3,16 +3,16 @@ import { defineComponent as R, ref as u, computed as m, toRef as E, watch as j,
3
3
  /* empty css */
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
6
- import { last as ae } from "./index217.js";
7
- import { useBaseOptions as ne } from "./index239.js";
8
- import { useIndexById as le } from "./index238.js";
9
- import re from "./index252.js";
6
+ import { last as ae } from "./index230.js";
7
+ import { useBaseOptions as ne } from "./index217.js";
8
+ import { useIndexById as le } from "./index216.js";
9
+ import re from "./index254.js";
10
10
  /* empty css */
11
- import ie from "./index254.js";
11
+ import ie from "./index256.js";
12
12
  /* empty css */
13
- import ue from "./index223.js";
13
+ import ue from "./index207.js";
14
14
  /* empty css */
15
- import se from "./index225.js";
15
+ import se from "./index209.js";
16
16
  const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], $e = /* @__PURE__ */ R({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index225.js";
3
- import E from "./index223.js";
2
+ import v from "./index209.js";
3
+ import E from "./index207.js";
4
4
  /* empty css */
5
5
  import G from "./index128.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index223.js";
2
+ import B from "./index207.js";
3
3
  /* empty css */
4
- import k from "./index225.js";
4
+ import k from "./index209.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {