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