bitboss-ui 2.0.108 → 2.0.109

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