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