bitboss-ui 2.0.117 → 2.0.119

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