bitboss-ui 2.0.148 → 2.0.151

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