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