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