bitboss-ui 2.0.171 → 2.0.172

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