bitboss-ui 2.0.116 → 2.0.117

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