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