bitboss-ui 2.1.33 → 2.1.34
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/BaseColorInput/BaseColorInput.vue.d.ts +7 -6
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +7 -6
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
- package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -2
- package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
- package/dist/composables/useToast.d.ts +4 -3
- package/dist/index.d.ts +10 -0
- package/dist/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +6 -6
- package/dist/index133.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +16 -16
- package/dist/index213.js +2 -2
- package/dist/index214.js +2 -2
- package/dist/index215.js +85 -12
- package/dist/index217.js +27 -11
- package/dist/index218.js +17 -3
- package/dist/index219.js +51 -86
- package/dist/index220.js +17 -0
- package/dist/index221.js +3 -29
- package/dist/index222.js +11 -16
- package/dist/index223.js +13 -48
- package/dist/index224.js +2 -15
- package/dist/index225.js +2 -3
- package/dist/index226.js +2 -12
- package/dist/index227.js +106 -16
- package/dist/index229.js +100 -2
- package/dist/index23.js +12 -12
- package/dist/index231.js +2 -16
- package/dist/index232.js +4 -10
- package/dist/index233.js +5 -3
- package/dist/index234.js +5 -9
- package/dist/index235.js +5 -121
- package/dist/index236.js +7 -0
- package/dist/index237.js +5 -23
- package/dist/index238.js +5 -4
- package/dist/index239.js +2 -23
- package/dist/index240.js +13 -5
- package/dist/index241.js +20 -5
- package/dist/index242.js +121 -5
- package/dist/index244.js +18 -5
- package/dist/index245.js +12 -5
- package/dist/index246.js +229 -5
- package/dist/index247.js +13 -2
- package/dist/index248.js +4 -8
- package/dist/index249.js +186 -239
- package/dist/index25.js +3 -3
- package/dist/index251.js +7 -44
- package/dist/index252.js +34 -5
- package/dist/index253.js +2 -60
- package/dist/index254.js +182 -105
- package/dist/index255.js +5 -0
- package/dist/index256.js +2 -100
- package/dist/index257.js +9 -0
- package/dist/index258.js +7 -2
- package/dist/index259.js +13 -4
- package/dist/index260.js +5 -5
- package/dist/index261.js +5 -2
- package/dist/index262.js +7 -19
- package/dist/index263.js +250 -2
- package/dist/index264.js +52 -7
- package/dist/index265.js +44 -7
- package/dist/index266.js +5 -34
- package/dist/index267.js +60 -2
- package/dist/index268.js +6 -18
- package/dist/index269.js +16 -12
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -229
- package/dist/index271.js +4 -3
- package/dist/index272.js +22 -3
- package/dist/index273.js +8 -196
- package/dist/index274.js +25 -0
- package/dist/index275.js +8 -181
- package/dist/index276.js +2 -6
- package/dist/index277.js +3 -9
- package/dist/index278.js +1 -1
- package/dist/index281.js +1 -1
- package/dist/index284.js +67 -5
- package/dist/index285.js +5 -67
- package/dist/index286.js +5 -7
- package/dist/index287.js +7 -10
- package/dist/index288.js +4 -5
- package/dist/index289.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index290.js +1 -1
- package/dist/index292.js +3 -718
- package/dist/index293.js +3 -366
- package/dist/index294.js +3 -57
- package/dist/index295.js +280 -3
- package/dist/index296.js +2 -280
- package/dist/index297.js +125 -2
- package/dist/index298.js +2 -16
- package/dist/index299.js +15 -2
- package/dist/index300.js +2 -16
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -19
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -15
- package/dist/index305.js +19 -2
- package/dist/index306.js +2 -19
- package/dist/index307.js +3 -2
- package/dist/index308.js +7 -27
- package/dist/index309.js +11 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +3 -2
- package/dist/index312.js +6 -2
- package/dist/index313.js +1 -1
- package/dist/index314.js +5 -22
- package/dist/index315.js +21 -0
- package/dist/index316.js +2 -3
- package/dist/index317.js +27 -3
- package/dist/index318.js +2 -6
- package/dist/index319.js +2 -4
- package/dist/index320.js +2 -125
- package/dist/index321.js +2 -2
- package/dist/index322.js +1 -1
- package/dist/index323.js +24 -0
- package/dist/index325.js +718 -5
- package/dist/index326.js +366 -8
- package/dist/index327.js +58 -2
- package/dist/index328.js +4 -4
- package/dist/index33.js +8 -8
- package/dist/index330.js +3 -4
- package/dist/index331.js +2 -93
- package/dist/index335.js +2 -2
- package/dist/index336.js +47 -58
- package/dist/index337.js +33 -33
- package/dist/index338.js +58 -2
- package/dist/index339.js +7 -6
- package/dist/index340.js +5 -6
- package/dist/index341.js +8 -19
- package/dist/index342.js +6 -46
- package/dist/index343.js +227 -7
- package/dist/index344.js +6 -5
- package/dist/index345.js +19 -8
- package/dist/index346.js +86 -221
- package/dist/index348.js +473 -421
- package/dist/index349.js +422 -113
- package/dist/index35.js +4 -4
- package/dist/index350.js +123 -484
- package/dist/index37.js +57 -59
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +60 -62
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +6 -6
- package/dist/index67.js +1 -1
- package/dist/index79.js +6 -6
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +3 -3
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +5 -5
- package/dist/index96.js +1 -1
- package/dist/types/Icon.d.ts +9 -0
- package/package.json +2 -2
- package/dist/index216.js +0 -15
- package/dist/index228.js +0 -4
- package/dist/index230.js +0 -8
- package/dist/index243.js +0 -7
- package/dist/index250.js +0 -54
- package/dist/index324.js +0 -5
- package/dist/index329.js +0 -5
package/dist/index37.js
CHANGED
@@ -1,40 +1,38 @@
|
|
1
|
-
import { defineComponent as Xe, ref as v, computed as h, toRef as L, createBlock as U, openBlock as y, normalizeClass as ee, withCtx as s, createElementVNode as T, createVNode as E, createElementBlock as O, unref as
|
2
|
-
|
3
|
-
/* empty css */
|
4
|
-
import { useId as at } from "./index8.js";
|
5
|
-
import { useMobile as lt } from "./index9.js";
|
6
|
-
import ot from "./index111.js";
|
1
|
+
import { defineComponent as Xe, ref as v, computed as h, toRef as L, createBlock as U, openBlock as y, normalizeClass as ee, withCtx as s, createElementVNode as T, createVNode as E, createElementBlock as O, unref as g, renderSlot as p, createCommentVNode as te, withDirectives as Ye, Fragment as ae, toDisplayString as Ze, withKeys as w, withModifiers as m, normalizeStyle as le, vModelDynamic as et, mergeProps as oe, renderList as tt, nextTick as j } from "vue";
|
2
|
+
import at from "./index111.js";
|
7
3
|
/* empty css */
|
8
|
-
import
|
9
|
-
|
10
|
-
import
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import { usePrefill as bt } from "./index227.js";
|
4
|
+
import { hash as lt } from "./index221.js";
|
5
|
+
import { isEmpty as ot } from "./index231.js";
|
6
|
+
import { last as nt } from "./index226.js";
|
7
|
+
import { matchAnyKey as ne } from "./index244.js";
|
8
|
+
import { useArray as ut } from "./index245.js";
|
9
|
+
import { useBaseOptions as st } from "./index219.js";
|
10
|
+
import { useCoherence as it } from "./index220.js";
|
11
|
+
import { useHashedWatcher as ue } from "./index222.js";
|
12
|
+
import { useId as rt } from "./index8.js";
|
13
|
+
import { useIndexById as se } from "./index218.js";
|
14
|
+
import { useMounted as dt, useElementSize as ct, useIntersectionObserver as pt } from "./index140.js";
|
15
|
+
import { useItemsGetter as mt } from "./index217.js";
|
16
|
+
import { useLocale as ft } from "./index240.js";
|
17
|
+
import { useMobile as vt } from "./index9.js";
|
18
|
+
import { usePrefill as ht } from "./index223.js";
|
24
19
|
import { wait as F } from "./index138.js";
|
25
|
-
import { when as
|
26
|
-
import
|
20
|
+
import { when as yt } from "./index232.js";
|
21
|
+
import bt from "./index227.js";
|
22
|
+
/* empty css */
|
23
|
+
import gt from "./index229.js";
|
27
24
|
/* empty css */
|
28
|
-
import
|
25
|
+
import wt from "./index135.js";
|
29
26
|
/* empty css */
|
30
|
-
import
|
27
|
+
import Bt from "./index137.js";
|
28
|
+
import Vt from "./index242.js";
|
31
29
|
/* empty css */
|
32
|
-
import St from "./
|
33
|
-
import { useUntil as kt } from "./
|
30
|
+
import St from "./index246.js";
|
31
|
+
import { useUntil as kt } from "./index247.js";
|
34
32
|
const Ct = { class: "bb-base-select__input-container" }, It = {
|
35
33
|
key: 1,
|
36
34
|
class: "bb-base-select__max-reached"
|
37
|
-
}, Ot = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
35
|
+
}, Ot = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], na = /* @__PURE__ */ Xe({
|
38
36
|
__name: "BaseSelect",
|
39
37
|
props: {
|
40
38
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -81,11 +79,11 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
81
79
|
const t = ie, n = re;
|
82
80
|
if (t.multiple && !Array.isArray(t.modelValue))
|
83
81
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
84
|
-
const { t: de } =
|
82
|
+
const { t: de } = ft(), ce = dt(), A = v(null), D = v(null), i = v(null), R = v(null), _ = v(null), d = h(
|
85
83
|
() => t.comma ? R.value : _.value
|
86
|
-
), { width: pe } =
|
84
|
+
), { width: pe } = ct(D), { isMobile: me } = vt(), fe = h(
|
87
85
|
() => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
|
88
|
-
), G = t.id ||
|
86
|
+
), G = t.id || rt().id.value, { resume: ve, pause: he } = pt(
|
89
87
|
D,
|
90
88
|
async ([{ intersectionRatio: e }]) => {
|
91
89
|
e !== 1 && u.value && await I();
|
@@ -107,7 +105,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
107
105
|
}, $ = async (e) => {
|
108
106
|
var a, l;
|
109
107
|
if (e.target instanceof Node && A.value && !A.value.$el.contains(e.target) && !((l = (a = i.value) == null ? void 0 : a.$el) != null && l.contains(e.target))) {
|
110
|
-
I(), je(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await F(t.transitionDuration),
|
108
|
+
I(), je(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await F(t.transitionDuration), b();
|
111
109
|
return;
|
112
110
|
}
|
113
111
|
}, B = h(() => !(t.readonly || t.disabled || H.value || !d.value && t.multiple && r.value.length <= t.maxSelectedLabels)), Se = async () => {
|
@@ -153,7 +151,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
153
151
|
debouncedGetter: He,
|
154
152
|
items: Le,
|
155
153
|
loading: J
|
156
|
-
} =
|
154
|
+
} = mt({
|
157
155
|
items: L(t, "items"),
|
158
156
|
debounce: t.queryDebounceTime
|
159
157
|
}), P = () => {
|
@@ -163,26 +161,26 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
163
161
|
hasPrefilled: Q,
|
164
162
|
isPrefilling: Te,
|
165
163
|
prefill: Ee
|
166
|
-
} =
|
164
|
+
} = ht({
|
167
165
|
onStart: t.prefill === !0,
|
168
166
|
currentValue: t.modelValue,
|
169
167
|
multiple: t.multiple,
|
170
168
|
fn: async ({ prefill: e }) => {
|
171
|
-
await M(o.value, e, t.modelValue), t.stash && Y(...k.value.map((a) => a.item)), P(),
|
169
|
+
await M(o.value, e, t.modelValue), t.stash && Y(...k.value.map((a) => a.item)), P(), b();
|
172
170
|
}
|
173
171
|
}), {
|
174
172
|
array: X,
|
175
173
|
add: Y,
|
176
174
|
remove: Fe,
|
177
175
|
set: Ae
|
178
|
-
} =
|
176
|
+
} = ut(), r = h(() => {
|
179
177
|
const e = Object.fromEntries(
|
180
178
|
Object.entries(N.value).map(([a], l) => [a, l])
|
181
179
|
);
|
182
180
|
return k.value.filter((a) => a.selected).sort((a, l) => e[a.valueHash] - e[l.valueHash]);
|
183
181
|
}), qe = h(() => r.value.length ? "" : t.placeholder), { data: N, get: xe } = se({
|
184
182
|
items: L(t, "modelValue")
|
185
|
-
}), { options: k } =
|
183
|
+
}), { options: k } = st({
|
186
184
|
disabled: L(t, "disabled"),
|
187
185
|
items: h(() => [...Le.value, ...X.value]),
|
188
186
|
itemText: t.itemText,
|
@@ -199,35 +197,35 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
199
197
|
let f = !1;
|
200
198
|
return typeof t.filterBy == "function" ? f = t.filterBy(c.value, c.item, o.value) : t.filterBy === "not_stashed" && o.value ? f = !new Set(X.value.map((Qe) => Qe.valueHash)).has(c.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || ne(c.item, t.filterBy, o.value.trim())), f || ne(c, ["text"], o.value.trim());
|
201
199
|
}) : e = k.value, e;
|
202
|
-
}),
|
200
|
+
}), b = () => {
|
203
201
|
if (t.multiple) {
|
204
202
|
o.value = "";
|
205
203
|
return;
|
206
204
|
}
|
207
205
|
let e;
|
208
|
-
r.value && (e =
|
206
|
+
r.value && (e = nt(r.value)), o.value = (e == null ? void 0 : e.text) || "";
|
209
207
|
}, Pe = async (e) => {
|
210
|
-
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Y(e.item),
|
208
|
+
t.multiple ? (n("update:modelValue", t.modelValue.concat(e.value)), t.stash && Y(e.item), b()) : (t.stash && Ae(e.item), n("update:modelValue", e.value), await j(), b()), x(), t.multiple || I();
|
211
209
|
}, W = async (e) => {
|
212
210
|
if (Fe((a) => a.valueHash !== e.valueHash), t.multiple) {
|
213
211
|
const a = { ...N.value };
|
214
212
|
delete a[e.valueHash], n("update:modelValue", Object.values(a));
|
215
213
|
} else
|
216
|
-
n("update:modelValue", null), await j(),
|
214
|
+
n("update:modelValue", null), await j(), b();
|
217
215
|
x();
|
218
216
|
}, { data: Ne } = se({
|
219
217
|
items: k,
|
220
218
|
key: "valueHash"
|
221
|
-
}), { coherent: Z, status: We } =
|
219
|
+
}), { coherent: Z, status: We } = it({
|
222
220
|
modelValue: L(t, "modelValue"),
|
223
221
|
multiple: t.multiple,
|
224
|
-
iteratee: (e) => !!Ne.value[
|
222
|
+
iteratee: (e) => !!Ne.value[lt(e)]
|
225
223
|
});
|
226
224
|
let V = 0;
|
227
225
|
ue(
|
228
226
|
() => t.modelValue,
|
229
227
|
async () => {
|
230
|
-
V++, Z.value || (await M(o.value, !0, t.modelValue), P()), V === 1 &&
|
228
|
+
V++, Z.value || (await M(o.value, !0, t.modelValue), P()), V === 1 && b(), V--;
|
231
229
|
},
|
232
230
|
{
|
233
231
|
debounce: t.modelValueDebounceTime
|
@@ -235,7 +233,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
235
233
|
), ue(
|
236
234
|
() => [t.dependencies, t.items],
|
237
235
|
async () => {
|
238
|
-
Q.value && (V++, await M(o.value, !0, t.modelValue), V === 1 && (P(),
|
236
|
+
Q.value && (V++, await M(o.value, !0, t.modelValue), V === 1 && (P(), b()), V--);
|
239
237
|
},
|
240
238
|
{
|
241
239
|
debounce: t.depsDebounceTime
|
@@ -252,7 +250,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
252
250
|
K.value = !1, n("inactive");
|
253
251
|
}, Re = (e) => {
|
254
252
|
e.preventDefault(), n("click", e), !(t.disabled || t.readonly) && (x(), Ke());
|
255
|
-
}, _e =
|
253
|
+
}, _e = yt(
|
256
254
|
(e) => typeof e != "string",
|
257
255
|
JSON.stringify
|
258
256
|
), Ge = h(() => [].concat(t.modelValue).map((e) => {
|
@@ -267,7 +265,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
267
265
|
let e = null;
|
268
266
|
t.multiple && (e = []), n("update:modelValue", e);
|
269
267
|
};
|
270
|
-
return (e, a) => (y(), U(
|
268
|
+
return (e, a) => (y(), U(Bt, {
|
271
269
|
ref_key: "outerContainer",
|
272
270
|
ref: A,
|
273
271
|
class: ee({
|
@@ -294,9 +292,9 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
294
292
|
ref: D,
|
295
293
|
class: "bb-base-select__inner-wrapper"
|
296
294
|
}, [
|
297
|
-
E(
|
295
|
+
E(wt, {
|
298
296
|
"append:icon": t["append:icon"],
|
299
|
-
clearable: e.clearable && !
|
297
|
+
clearable: e.clearable && !g(ot)(e.modelValue),
|
300
298
|
"prepend:icon": t["prepend:icon"],
|
301
299
|
"prevent-focus": !0,
|
302
300
|
"onClick:clear": Je
|
@@ -314,32 +312,32 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
314
312
|
p(e.$slots, "suffix")
|
315
313
|
]),
|
316
314
|
default: s(() => [
|
317
|
-
E(
|
315
|
+
E(at, { tag: "span" }, {
|
318
316
|
default: s(() => [
|
319
317
|
T("span", Ct, [
|
320
318
|
e.multiple && r.value.length <= e.maxSelectedLabels ? (y(), O(ae, { key: 0 }, [
|
321
|
-
e.comma ? (y(), U(
|
319
|
+
e.comma ? (y(), U(gt, {
|
322
320
|
key: 0,
|
323
321
|
ref_key: "commaBox",
|
324
322
|
ref: R,
|
325
323
|
options: r.value,
|
326
324
|
"onOption:unselected": W
|
327
|
-
}, null, 8, ["options"])) : (y(), U(
|
325
|
+
}, null, 8, ["options"])) : (y(), U(bt, {
|
328
326
|
key: 1,
|
329
327
|
ref_key: "chipsBox",
|
330
328
|
ref: _,
|
331
329
|
options: r.value,
|
332
330
|
"onOption:unselected": W
|
333
331
|
}, null, 8, ["options"]))
|
334
|
-
], 64)) : e.multiple ? (y(), O("span", It, Ze(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) :
|
332
|
+
], 64)) : e.multiple ? (y(), O("span", It, Ze(e.selectedLabelsFn ? e.selectedLabelsFn(r.value.length) : g(de)("select.multipleMaxReached", r.value.length)), 1)) : te("", !0),
|
335
333
|
Ye((y(), O("input", {
|
336
|
-
id:
|
337
|
-
key: `${
|
334
|
+
id: g(G),
|
335
|
+
key: `${g(ce)}`,
|
338
336
|
ref_key: "input",
|
339
337
|
ref: q,
|
340
338
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
|
341
339
|
"aria-autocomplete": "list",
|
342
|
-
"aria-controls":
|
340
|
+
"aria-controls": g(ze) ? `${g(G)}_listbox` : void 0,
|
343
341
|
"aria-describedby": e.ariaDescribedby,
|
344
342
|
"aria-expanded": u.value,
|
345
343
|
autocomplete: e.autocomplete,
|
@@ -377,7 +375,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
377
375
|
}),
|
378
376
|
e.showChevron ? p(e.$slots, "chevron", {
|
379
377
|
key: 0,
|
380
|
-
loading: !!
|
378
|
+
loading: !!g(J),
|
381
379
|
shown: u.value
|
382
380
|
}, () => [
|
383
381
|
a[2] || (a[2] = T("svg", {
|
@@ -450,5 +448,5 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
450
448
|
}
|
451
449
|
});
|
452
450
|
export {
|
453
|
-
|
451
|
+
na as default
|
454
452
|
};
|
package/dist/index39.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as re, ref as d, computed as p, onMounted as te, watch as le, createElementBlock as y, openBlock as g, mergeProps as N, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as oe, renderList as ne, normalizeProps as se, guardReactiveProps as ie, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
|
2
|
-
import { head as ue } from "./
|
3
|
-
import { isCssColor as Y } from "./
|
4
|
-
import { isNil as S } from "./
|
2
|
+
import { head as ue } from "./index256.js";
|
3
|
+
import { isCssColor as Y } from "./index224.js";
|
4
|
+
import { isNil as S } from "./index225.js";
|
5
5
|
import { getAsPercentageBetween as x, getAsPercentage as de, getValueFromPercentageInInterval as T } from "./index139.js";
|
6
|
-
import { snapToStep as me } from "./
|
7
|
-
import { last as ce } from "./
|
8
|
-
import { transpose as j } from "./
|
9
|
-
import { clamp as f } from "./
|
6
|
+
import { snapToStep as me } from "./index257.js";
|
7
|
+
import { last as ce } from "./index226.js";
|
8
|
+
import { transpose as j } from "./index258.js";
|
9
|
+
import { clamp as f } from "./index214.js";
|
10
10
|
const be = { class: "bb-base-slider__slider-container" }, ve = {
|
11
11
|
key: 0,
|
12
12
|
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, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index224.js";
|
3
|
+
import { when as N } from "./index232.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, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index215.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 "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index217.js";
|
7
|
+
import { useIndexById as T } from "./index218.js";
|
8
|
+
import { useBaseOptions as q } from "./index219.js";
|
9
|
+
import { useCoherence as J } from "./index220.js";
|
10
|
+
import { hash as Q } from "./index221.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index222.js";
|
12
|
+
import { usePrefill as X } from "./index223.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -1,20 +1,18 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
/* empty css */
|
3
|
-
/* empty css */
|
1
|
+
import { defineComponent as j, ref as i, computed as f, toRef as E, watch as Q, createBlock as k, openBlock as v, normalizeClass as Z, withCtx as n, createVNode as I, unref as G, createElementVNode as $, createElementBlock as J, createCommentVNode as W, withDirectives as X, Fragment as Y, mergeProps as ee, withModifiers as s, withKeys as y, vModelText as te, renderSlot as d, nextTick as oe } from "vue";
|
4
2
|
import ae from "./index111.js";
|
5
3
|
/* empty css */
|
6
|
-
import le from "./
|
4
|
+
import { last as le } from "./index226.js";
|
5
|
+
import { useBaseOptions as ne } from "./index219.js";
|
6
|
+
import { useIndexById as re } from "./index218.js";
|
7
|
+
import ue from "./index227.js";
|
7
8
|
/* empty css */
|
8
|
-
import
|
9
|
-
import { last as re } from "./index247.js";
|
10
|
-
import { useBaseOptions as ie } from "./index223.js";
|
11
|
-
import { useIndexById as ue } from "./index222.js";
|
12
|
-
import se from "./index254.js";
|
9
|
+
import ie from "./index229.js";
|
13
10
|
/* empty css */
|
14
|
-
import
|
11
|
+
import se from "./index135.js";
|
15
12
|
/* empty css */
|
16
|
-
import
|
17
|
-
|
13
|
+
import de from "./index137.js";
|
14
|
+
import { isEmpty as pe } from "./index231.js";
|
15
|
+
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Oe = /* @__PURE__ */ j({
|
18
16
|
__name: "BaseTag",
|
19
17
|
props: {
|
20
18
|
"append:icon": {},
|
@@ -39,17 +37,17 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
39
37
|
required: { type: Boolean }
|
40
38
|
},
|
41
39
|
emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
|
42
|
-
setup(
|
43
|
-
const t =
|
40
|
+
setup(O, { emit: L }) {
|
41
|
+
const t = O, l = L;
|
44
42
|
if (t.multiple && !Array.isArray(t.modelValue))
|
45
43
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
46
|
-
const b =
|
44
|
+
const b = i(null), D = i(null), B = i(null), V = i(null), r = f(
|
47
45
|
() => t.comma ? B.value : V.value
|
48
|
-
), p =
|
46
|
+
), p = i(null), T = () => {
|
49
47
|
p.value instanceof HTMLInputElement && p.value.focus();
|
50
|
-
}, o =
|
48
|
+
}, o = i(""), u = f(() => H.value.filter((e) => e.selected)), { data: w, get: A } = re({
|
51
49
|
items: E(t, "modelValue")
|
52
|
-
}), { options:
|
50
|
+
}), { options: H } = ne({
|
53
51
|
disabled: E(t, "disabled"),
|
54
52
|
items: f(() => [].concat(t.modelValue)),
|
55
53
|
itemText: void 0,
|
@@ -63,38 +61,38 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
63
61
|
return;
|
64
62
|
}
|
65
63
|
let e;
|
66
|
-
|
67
|
-
},
|
64
|
+
u.value && (e = le(u.value)), o.value = (e == null ? void 0 : e.text) || "";
|
65
|
+
}, K = async (e) => {
|
68
66
|
if (t.multiple) {
|
69
67
|
const a = { ...w.value };
|
70
68
|
delete a[e.valueHash], l("update:modelValue", Object.values(a));
|
71
69
|
} else
|
72
70
|
l("update:modelValue", null);
|
73
|
-
|
71
|
+
T();
|
74
72
|
};
|
75
|
-
|
73
|
+
Q(
|
76
74
|
() => t.modelValue,
|
77
75
|
async () => {
|
78
76
|
C();
|
79
77
|
}
|
80
78
|
);
|
81
|
-
const g =
|
79
|
+
const g = i(!1), q = () => {
|
82
80
|
g.value = !0;
|
83
|
-
},
|
81
|
+
}, M = () => {
|
84
82
|
g.value = !1, l("inactive");
|
85
|
-
}, h = f(() => !(t.readonly || t.disabled || !r.value && t.multiple)),
|
83
|
+
}, h = f(() => !(t.readonly || t.disabled || !r.value && t.multiple)), N = (e) => {
|
86
84
|
var a;
|
87
|
-
h.value && (!t.multiple || o.value || (e.preventDefault(),
|
88
|
-
},
|
85
|
+
h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((a = r.value) == null || a.focusPrevious())));
|
86
|
+
}, P = (e) => {
|
89
87
|
var a;
|
90
|
-
h.value && (!t.multiple || o.value || (e.preventDefault(),
|
91
|
-
},
|
88
|
+
h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((a = r.value) == null || a.focusNext())));
|
89
|
+
}, z = async () => {
|
92
90
|
var e, a;
|
93
|
-
!h.value || o.value || !
|
94
|
-
},
|
91
|
+
!h.value || o.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await oe(), (a = r.value) == null || a.focusPrevious());
|
92
|
+
}, F = () => {
|
95
93
|
var e;
|
96
94
|
(e = r.value) == null || e.blur();
|
97
|
-
},
|
95
|
+
}, S = async (e) => {
|
98
96
|
var a;
|
99
97
|
if (l("keydown", e), t.readonly || t.disabled) {
|
100
98
|
e.preventDefault();
|
@@ -114,36 +112,36 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
114
112
|
l("keydown", e);
|
115
113
|
return;
|
116
114
|
}
|
117
|
-
if (e.preventDefault(),
|
115
|
+
if (e.preventDefault(), A(o.value))
|
118
116
|
l("duplicate", o.value), o.value = "";
|
119
117
|
else {
|
120
|
-
if (t.max &&
|
118
|
+
if (t.max && u.value.length >= t.max)
|
121
119
|
return;
|
122
120
|
t.multiple ? l("update:modelValue", t.modelValue.concat(o.value)) : l("update:modelValue", o.value);
|
123
121
|
}
|
124
122
|
}
|
123
|
+
}, U = (e) => {
|
124
|
+
l("focus", e), q(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
125
125
|
}, _ = (e) => {
|
126
|
-
l("focus", e), M(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
127
|
-
}, x = (e) => {
|
128
126
|
l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
129
127
|
}, c = async (e) => {
|
130
128
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
131
|
-
|
129
|
+
M(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), C();
|
132
130
|
return;
|
133
131
|
}
|
134
|
-
},
|
132
|
+
}, x = {
|
135
133
|
onBlur: (e) => l("blur", e),
|
136
134
|
onChange: (e) => l("change", e),
|
137
135
|
onKeyup: (e) => l("keyup", e),
|
138
136
|
onInput: (e) => l("input", e)
|
139
|
-
},
|
137
|
+
}, R = () => {
|
140
138
|
let e = null;
|
141
139
|
t.multiple && (e = []), l("update:modelValue", e);
|
142
140
|
};
|
143
|
-
return (e, a) => (v(), k(
|
141
|
+
return (e, a) => (v(), k(de, {
|
144
142
|
ref_key: "outerContainer",
|
145
143
|
ref: b,
|
146
|
-
class:
|
144
|
+
class: Z({
|
147
145
|
"bb-base-tag": !0,
|
148
146
|
"bb-base-tag--active": g.value,
|
149
147
|
"bb-base-tag--disabled": e.disabled,
|
@@ -152,7 +150,7 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
152
150
|
"bb-base-tag--readonly": e.readonly,
|
153
151
|
"bb-base-tag--compact": e.compact
|
154
152
|
}),
|
155
|
-
onClick:
|
153
|
+
onClick: _
|
156
154
|
}, {
|
157
155
|
"prepend-outer": n(() => [
|
158
156
|
d(e.$slots, "prepend-outer")
|
@@ -161,14 +159,14 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
161
159
|
d(e.$slots, "append-outer")
|
162
160
|
]),
|
163
161
|
default: n(() => [
|
164
|
-
I(
|
162
|
+
I(se, {
|
165
163
|
ref_key: "innerContainer",
|
166
|
-
ref:
|
164
|
+
ref: D,
|
167
165
|
"append:icon": t["append:icon"],
|
168
|
-
clearable: e.clearable &&
|
166
|
+
clearable: e.clearable && !G(pe)(e.modelValue),
|
169
167
|
"prepend:icon": t["prepend:icon"],
|
170
168
|
"prevent-focus": !0,
|
171
|
-
"onClick:clear":
|
169
|
+
"onClick:clear": R
|
172
170
|
}, {
|
173
171
|
prepend: n(() => [
|
174
172
|
d(e.$slots, "prepend")
|
@@ -183,28 +181,28 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
183
181
|
d(e.$slots, "suffix")
|
184
182
|
]),
|
185
183
|
default: n(() => [
|
186
|
-
I(
|
184
|
+
I(ae, { tag: "span" }, {
|
187
185
|
default: n(() => [
|
188
|
-
|
186
|
+
$("span", ce, [
|
189
187
|
e.multiple ? (v(), J(Y, { key: 0 }, [
|
190
|
-
e.comma ? (v(), k(
|
188
|
+
e.comma ? (v(), k(ie, {
|
191
189
|
key: 0,
|
192
190
|
ref_key: "commaBox",
|
193
191
|
ref: B,
|
194
|
-
options:
|
195
|
-
}, null, 8, ["options"])) : (v(), k(
|
192
|
+
options: u.value
|
193
|
+
}, null, 8, ["options"])) : (v(), k(ue, {
|
196
194
|
key: 1,
|
197
195
|
ref_key: "chipsBox",
|
198
196
|
ref: V,
|
199
|
-
options:
|
200
|
-
"onOption:unselected":
|
197
|
+
options: u.value,
|
198
|
+
"onOption:unselected": K
|
201
199
|
}, null, 8, ["options"]))
|
202
200
|
], 64)) : W("", !0),
|
203
|
-
X(
|
201
|
+
X($("input", ee({
|
204
202
|
id: e.id,
|
205
203
|
ref_key: "input",
|
206
204
|
ref: p
|
207
|
-
},
|
205
|
+
}, x, {
|
208
206
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
|
209
207
|
"aria-describedby": e.ariaDescribedby,
|
210
208
|
autocomplete: e.autocomplete,
|
@@ -218,13 +216,13 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
218
216
|
size: "1",
|
219
217
|
style: { "--characters": o.value.length },
|
220
218
|
type: "text",
|
221
|
-
onFocus: s(
|
219
|
+
onFocus: s(U, ["stop"]),
|
222
220
|
onKeydown: [
|
223
|
-
s(
|
224
|
-
y(s(
|
225
|
-
y(s(
|
226
|
-
y(s(
|
227
|
-
y(s(
|
221
|
+
s(S, ["stop"]),
|
222
|
+
y(s(z, ["stop"]), ["delete"]),
|
223
|
+
y(s(N, ["stop"]), ["left"]),
|
224
|
+
y(s(F, ["stop", "prevent"]), ["esc"]),
|
225
|
+
y(s(P, ["stop"]), ["right"])
|
228
226
|
]
|
229
227
|
}), null, 16, me), [
|
230
228
|
[te, o.value]
|
@@ -242,5 +240,5 @@ const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describe
|
|
242
240
|
}
|
243
241
|
});
|
244
242
|
export {
|
245
|
-
|
243
|
+
Oe as default
|
246
244
|
};
|
package/dist/index49.js
CHANGED
@@ -3,7 +3,7 @@ import E from "./index135.js";
|
|
3
3
|
/* empty css */
|
4
4
|
import I from "./index137.js";
|
5
5
|
import { isNotNil as N } from "./index143.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index254.js";
|
7
7
|
const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseTextInput",
|
9
9
|
props: {
|
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index224.js";
|
3
3
|
import { wait as C } from "./index138.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index224.js";
|
3
|
+
import { isNil as B } from "./index225.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|