bitboss-ui 2.0.51 → 2.0.52
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 +7 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +6 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -0
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +7 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -0
- package/dist/components/BbTable/types.d.ts +4 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
- package/dist/composables/useOptions.d.ts +1 -0
- package/dist/index100.js +12 -10
- package/dist/index106.js +3 -1
- package/dist/index108.js +1 -1
- package/dist/index110.js +66 -64
- package/dist/index112.js +3 -1
- package/dist/index118.js +1 -1
- package/dist/index120.js +4 -4
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +6 -4
- package/dist/index204.js +116 -2
- package/dist/index205.js +281 -116
- package/dist/index206.js +14 -124
- package/dist/index207.js +16 -5
- package/dist/index208.js +17 -123
- package/dist/index209.js +18 -18
- package/dist/index21.js +14 -14
- package/dist/index210.js +24 -13
- package/dist/index211.js +3 -16
- package/dist/index212.js +2 -2
- package/dist/index213.js +8 -2
- package/dist/index214.js +248 -40
- package/dist/index215.js +50 -18
- package/dist/index216.js +43 -5
- package/dist/index217.js +4 -52
- package/dist/index218.js +51 -0
- package/dist/index219.js +2 -13
- package/dist/index220.js +4 -5
- package/dist/index221.js +2 -369
- package/dist/index222.js +162 -3
- package/dist/index223.js +84 -4
- package/dist/index225.js +3 -7
- package/dist/index226.js +41 -8
- package/dist/index227.js +6 -2
- package/dist/index228.js +7 -4
- package/dist/index229.js +2 -2
- package/dist/index23.js +15 -15
- package/dist/index230.js +3 -19
- package/dist/index231.js +124 -25
- package/dist/index232.js +125 -3
- package/dist/index233.js +2 -249
- package/dist/index234.js +18 -50
- package/dist/index235.js +48 -39
- package/dist/index237.js +13 -49
- package/dist/index238.js +5 -158
- package/dist/index239.js +368 -83
- package/dist/index240.js +6 -0
- package/dist/index241.js +2 -2
- package/dist/index242.js +2 -18
- package/dist/index243.js +17 -105
- package/dist/index244.js +108 -0
- package/dist/{index245.js → index246.js} +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +1 -1
- package/dist/index253.js +3 -3
- package/dist/index255.js +8 -280
- package/dist/index258.js +2 -2
- package/dist/index262.js +2 -126
- package/dist/index263.js +2 -431
- package/dist/index264.js +2 -176
- package/dist/index265.js +2 -3
- package/dist/index266.js +4 -0
- package/dist/index267.js +28 -7
- package/dist/index268.js +6 -6
- package/dist/index27.js +1 -1
- package/dist/index270.js +7 -224
- package/dist/index271.js +3 -199
- package/dist/index272.js +3 -436
- package/dist/index273.js +11 -126
- package/dist/index274.js +7 -87
- package/dist/index275.js +9 -4
- package/dist/index276.js +17 -9
- package/dist/index277.js +4 -2
- package/dist/index278.js +431 -2
- package/dist/index279.js +89 -2
- package/dist/index280.js +224 -2
- package/dist/index281.js +200 -2
- package/dist/index282.js +3 -2
- package/dist/index284.js +2 -22
- package/dist/index285.js +128 -0
- package/dist/index286.js +176 -3
- package/dist/index287.js +22 -12
- package/dist/index289.js +5 -9
- package/dist/index29.js +3 -3
- package/dist/index290.js +64 -15
- package/dist/index291.js +2 -3
- package/dist/index292.js +436 -3
- package/dist/index293.js +126 -210
- package/dist/index294.js +2 -65
- package/dist/index295.js +3 -2
- package/dist/index296.js +211 -33
- package/dist/index297.js +79 -5
- package/dist/index299.js +4 -79
- package/dist/index300.js +6 -0
- package/dist/index301.js +59 -4
- package/dist/index302.js +7 -4
- package/dist/index303.js +6 -58
- package/dist/index304.js +18 -3
- package/dist/index305.js +5 -5
- package/dist/index306.js +7 -6
- package/dist/index307.js +3 -6
- package/dist/index308.js +32 -18
- package/dist/index309.js +10 -46
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -11
- package/dist/index311.js +47 -2
- package/dist/{index313.js → index312.js} +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +2 -47
- package/dist/index316.js +47 -2
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +72 -70
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +4 -2
- package/dist/index45.js +53 -46
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index65.js +3 -1
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +1 -1
- package/dist/index88.js +2 -2
- package/dist/index90.js +1 -1
- package/package.json +2 -2
- package/dist/index224.js +0 -5
- package/dist/index236.js +0 -7
- package/dist/index247.js +0 -4
- package/dist/index283.js +0 -30
- package/dist/index288.js +0 -11
- package/dist/index298.js +0 -10
package/dist/index37.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as xe, defineAsyncComponent as Fe, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as s, renderSlot as p, unref as i, createVNode as F, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Me, withDirectives as Ne, isRef as He, withModifiers as d, withKeys as g, vModelDynamic as Pe, renderList as ze, mergeProps as J, Teleport as _e, normalizeStyle as Qe, createCommentVNode as Ke, nextTick as Ue } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as We } from "./index8.js";
|
@@ -6,27 +6,27 @@ import { useMobile as Re } from "./index9.js";
|
|
6
6
|
import Je from "./index127.js";
|
7
7
|
/* empty css */
|
8
8
|
import { isNotNil as Ye } from "./index134.js";
|
9
|
-
import { last as je } from "./
|
10
|
-
import { matchAnyKey as Y } from "./
|
11
|
-
import { useFloating as Ge } from "./
|
9
|
+
import { last as je } from "./index212.js";
|
10
|
+
import { matchAnyKey as Y } from "./index243.js";
|
11
|
+
import { useFloating as Ge } from "./index231.js";
|
12
12
|
import { useIntersectionObserver as Xe } from "./index132.js";
|
13
|
-
import { useLogger as Ze } from "./
|
14
|
-
import { useOptions as et } from "./
|
15
|
-
import { wait as
|
16
|
-
import { when as tt } from "./
|
17
|
-
import ot from "./
|
13
|
+
import { useLogger as Ze } from "./index213.js";
|
14
|
+
import { useOptions as et } from "./index222.js";
|
15
|
+
import { wait as L } from "./index131.js";
|
16
|
+
import { when as tt } from "./index220.js";
|
17
|
+
import ot from "./index244.js";
|
18
18
|
/* empty css */
|
19
|
-
import nt from "./
|
19
|
+
import nt from "./index246.js";
|
20
20
|
/* empty css */
|
21
|
-
import lt from "./
|
21
|
+
import lt from "./index235.js";
|
22
22
|
/* empty css */
|
23
|
-
import at from "./
|
24
|
-
import { waitFor as it } from "./
|
25
|
-
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./
|
23
|
+
import at from "./index237.js";
|
24
|
+
import { waitFor as it } from "./index227.js";
|
25
|
+
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index239.js";
|
26
26
|
const dt = { class: "bb-base-select__input-container" }, ct = {
|
27
27
|
key: 1,
|
28
28
|
class: "bb-base-select__max-reached"
|
29
|
-
}, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Ht = /* @__PURE__ */
|
29
|
+
}, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Ht = /* @__PURE__ */ xe({
|
30
30
|
__name: "BaseSelect",
|
31
31
|
props: {
|
32
32
|
addOptions: { type: Boolean },
|
@@ -49,6 +49,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
49
49
|
loading: { type: Boolean },
|
50
50
|
loadingText: { default: "Caricamento..." },
|
51
51
|
max: { default: 1 / 0 },
|
52
|
+
maxSelectedLabels: { default: 1 / 0 },
|
52
53
|
modelValue: {},
|
53
54
|
modelValueDebounceTime: { default: 0 },
|
54
55
|
multiple: { type: Boolean },
|
@@ -67,10 +68,10 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
67
68
|
},
|
68
69
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
|
69
70
|
setup(j, { emit: G }) {
|
70
|
-
const t = j,
|
71
|
+
const t = j, h = G;
|
71
72
|
if (t.multiple && !Array.isArray(t.modelValue))
|
72
73
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
73
|
-
const X =
|
74
|
+
const X = Fe(() => import("./index242.js")), A = v(null), B = v(null), a = v(null), M = v(null), N = v(null), u = y(
|
74
75
|
() => t.comma ? M.value : N.value
|
75
76
|
), { isMobile: Z } = Re(), ee = y(
|
76
77
|
() => t.allowWriting === "not-mobile" && Z.value ? "none" : void 0
|
@@ -97,28 +98,28 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
97
98
|
zIndex: "10"
|
98
99
|
};
|
99
100
|
return B.value && (e.width = `${(o = B.value) == null ? void 0 : o.$el.clientWidth}px`), e;
|
100
|
-
}),
|
101
|
-
|
101
|
+
}), q = v(null), E = () => {
|
102
|
+
q.value instanceof HTMLInputElement && q.value.focus();
|
102
103
|
}, ne = async (e) => {
|
103
|
-
|
104
|
+
h("focus", e), Te(), document.addEventListener("click", k), document.addEventListener("focusin", k);
|
104
105
|
}, le = () => {
|
105
106
|
t.prefill === "focus" && !Be.value && !Oe.value && we();
|
106
107
|
}, ae = async (e) => {
|
107
|
-
|
108
|
-
}, ie = (e) =>
|
108
|
+
h("blur", e);
|
109
|
+
}, ie = (e) => h("change", e), re = (e) => {
|
109
110
|
var o;
|
110
|
-
|
111
|
+
h("input", e), l.value === "" && (t.multiple || Ce(null)), (o = u.value) == null || o.blur(), Ie();
|
111
112
|
}, k = async (e) => {
|
112
|
-
if (e.target instanceof Node &&
|
113
|
-
O(),
|
113
|
+
if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
|
114
|
+
O(), Le(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await L(t.transitionDuration), ye();
|
114
115
|
return;
|
115
116
|
}
|
116
117
|
}, w = y(() => !(t.readonly || t.disabled || D.value || !u.value && t.multiple)), se = async () => {
|
117
118
|
var e, o, n;
|
118
|
-
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await
|
119
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
|
119
120
|
}, ue = async () => {
|
120
121
|
var e, o, n;
|
121
|
-
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await
|
122
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await I(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
|
122
123
|
}, pe = (e) => {
|
123
124
|
var n, r, m, C;
|
124
125
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
@@ -135,7 +136,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
135
136
|
var e, o;
|
136
137
|
if (w.value) {
|
137
138
|
if (!c.value)
|
138
|
-
await
|
139
|
+
await I(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
|
139
140
|
else if ((o = a.value) != null && o.getHighlighted())
|
140
141
|
a.value.confirmOption();
|
141
142
|
else if (t.addOptions) {
|
@@ -148,7 +149,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
148
149
|
}
|
149
150
|
const n = l.value.trim();
|
150
151
|
if (ke(n)) return;
|
151
|
-
|
152
|
+
be(), _(je(De.value));
|
152
153
|
}
|
153
154
|
}
|
154
155
|
}, fe = async () => {
|
@@ -159,11 +160,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
159
160
|
}, ve = t.prefill === !0 || !t.multiple && Ye(t.modelValue) || t.multiple && !!t.modelValue.length, {
|
160
161
|
query: l,
|
161
162
|
alignQueryToState: ye,
|
162
|
-
addCurrentQueryToManualItems:
|
163
|
+
addCurrentQueryToManualItems: be,
|
163
164
|
innerLoading: P,
|
164
165
|
options: z,
|
165
166
|
selectedOptions: f,
|
166
|
-
selectOption:
|
167
|
+
selectOption: he,
|
167
168
|
unselectOption: ge,
|
168
169
|
prefillItems: we,
|
169
170
|
isPrefilling: Be,
|
@@ -171,24 +172,25 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
171
172
|
updateModelValue: Ce,
|
172
173
|
valueIsSelected: ke,
|
173
174
|
manualItems: De,
|
174
|
-
searchByQuery:
|
175
|
+
searchByQuery: Ie
|
175
176
|
} = et({
|
176
|
-
emit:
|
177
|
+
emit: h,
|
177
178
|
itemText: t.itemText,
|
178
179
|
itemValue: t.itemValue,
|
179
|
-
modelValue:
|
180
|
+
modelValue: V(t, "modelValue"),
|
181
|
+
max: t.max,
|
180
182
|
multiple: t.multiple,
|
181
183
|
resetQueryOnOptionSelected: t.resetQueryOnOptionSelected,
|
182
184
|
stash: t.stash,
|
183
|
-
items:
|
185
|
+
items: V(t, "items"),
|
184
186
|
enforceCoherence: t.enforceCoherence,
|
185
187
|
prefill: ve,
|
186
188
|
modelValueDebounceTime: t.modelValueDebounceTime,
|
187
|
-
dependencies:
|
189
|
+
dependencies: V(t, "dependencies"),
|
188
190
|
depsDebounceTime: t.depsDebounceTime,
|
189
191
|
queryDebounceTime: t.queryDebounceTime,
|
190
|
-
disabled:
|
191
|
-
}),
|
192
|
+
disabled: V(t, "disabled")
|
193
|
+
}), Ve = y(() => f.value.length ? "" : t.placeholder), D = y(() => !!(P.value || t.loading)), Se = y(() => {
|
192
194
|
let e = [];
|
193
195
|
const o = f.value.some(
|
194
196
|
(r) => r.text === l.value
|
@@ -198,25 +200,25 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
198
200
|
return typeof t.filterBy == "function" ? m = t.filterBy(r.value, r.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || Y(r.item, t.filterBy, l.value.trim())), m || Y(r, ["text"], l.value.trim());
|
199
201
|
}) : e = z.value, e;
|
200
202
|
}), _ = (e) => {
|
201
|
-
|
203
|
+
he(e), E(), t.multiple || O();
|
202
204
|
}, Q = (e) => {
|
203
|
-
ge(e),
|
204
|
-
}, c = v(!1), K = v(!0), U = v(!1),
|
205
|
+
ge(e), E();
|
206
|
+
}, c = v(!1), K = v(!0), U = v(!1), I = async () => {
|
205
207
|
U.value = !0, await it(() => !!a.value), K.value = !1, c.value = !0;
|
206
208
|
}, O = async () => {
|
207
209
|
var e;
|
208
210
|
c.value = !1, K.value = !0, (e = u.value) == null || e.blur();
|
209
|
-
},
|
210
|
-
|
211
|
-
},
|
212
|
-
|
213
|
-
},
|
214
|
-
e.preventDefault(),
|
215
|
-
},
|
211
|
+
}, $e = () => c.value ? O() : I(), x = v(!1), Te = () => {
|
212
|
+
x.value = !0;
|
213
|
+
}, Le = () => {
|
214
|
+
x.value = !1, h("inactive");
|
215
|
+
}, Ae = (e) => {
|
216
|
+
e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), $e());
|
217
|
+
}, qe = tt(
|
216
218
|
(e) => typeof e != "string",
|
217
219
|
JSON.stringify
|
218
|
-
),
|
219
|
-
const o =
|
220
|
+
), Ee = y(() => [].concat(t.modelValue).map((e) => {
|
221
|
+
const o = qe(e);
|
220
222
|
return {
|
221
223
|
disabled: t.disabled,
|
222
224
|
name: t.name,
|
@@ -224,19 +226,19 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
224
226
|
value: o
|
225
227
|
};
|
226
228
|
}));
|
227
|
-
return (e, o) => (
|
229
|
+
return (e, o) => (b(), S(at, {
|
228
230
|
ref_key: "outerContainer",
|
229
|
-
ref:
|
231
|
+
ref: A,
|
230
232
|
class: W({
|
231
233
|
"bb-base-select": !0,
|
232
|
-
"bb-base-select--active":
|
234
|
+
"bb-base-select--active": x.value,
|
233
235
|
"bb-base-select--shown": c.value,
|
234
236
|
"bb-base-select--loading": D.value,
|
235
237
|
"bb-base-select--disabled": e.disabled,
|
236
238
|
"bb-base-select--errors": e.hasErrors,
|
237
239
|
"bb-base-select--readonly": e.readonly
|
238
240
|
}),
|
239
|
-
onClick:
|
241
|
+
onClick: Ae
|
240
242
|
}, {
|
241
243
|
"prepend-outer": s(() => [
|
242
244
|
p(e.$slots, "prepend-outer", { query: i(l) })
|
@@ -245,7 +247,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
245
247
|
p(e.$slots, "append-outer", { query: i(l) })
|
246
248
|
]),
|
247
249
|
default: s(() => [
|
248
|
-
|
250
|
+
F(lt, {
|
249
251
|
ref_key: "innerContainer",
|
250
252
|
ref: B,
|
251
253
|
"append:icon": t["append:icon"],
|
@@ -265,27 +267,27 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
265
267
|
p(e.$slots, "suffix")
|
266
268
|
]),
|
267
269
|
default: s(() => [
|
268
|
-
|
270
|
+
F(i(Je), { tag: "span" }, {
|
269
271
|
default: s(() => [
|
270
|
-
|
271
|
-
e.multiple && i(f).length <= e.
|
272
|
-
e.comma ? (
|
272
|
+
$("span", dt, [
|
273
|
+
e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
|
274
|
+
e.comma ? (b(), S(nt, {
|
273
275
|
key: 0,
|
274
276
|
ref_key: "commaBox",
|
275
277
|
ref: M,
|
276
278
|
options: i(f)
|
277
|
-
}, null, 8, ["options"])) : (
|
279
|
+
}, null, 8, ["options"])) : (b(), S(ot, {
|
278
280
|
key: 1,
|
279
281
|
ref_key: "chipsBox",
|
280
282
|
ref: N,
|
281
283
|
options: i(f),
|
282
284
|
"onOption:unselected": Q
|
283
285
|
}, null, 8, ["options"]))
|
284
|
-
], 64)) : (
|
285
|
-
Ne(
|
286
|
+
], 64)) : (b(), T("span", ct, Me(i(f).length) + " elementi selezionati ", 1)),
|
287
|
+
Ne($("input", {
|
286
288
|
id: i(H),
|
287
289
|
ref_key: "input",
|
288
|
-
ref:
|
290
|
+
ref: q,
|
289
291
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => He(l) ? l.value = n : null),
|
290
292
|
"aria-autocomplete": "list",
|
291
293
|
"aria-controls": `${i(H)}_listbox`,
|
@@ -296,7 +298,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
296
298
|
class: W("bb-base-select__text-input"),
|
297
299
|
disabled: e.disabled,
|
298
300
|
inputmode: ee.value,
|
299
|
-
placeholder:
|
301
|
+
placeholder: Ve.value,
|
300
302
|
readonly: e.readonly || !e.allowWriting,
|
301
303
|
required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
|
302
304
|
role: "combobox",
|
@@ -326,12 +328,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
326
328
|
loading: !!i(P),
|
327
329
|
shown: c.value
|
328
330
|
}, () => [
|
329
|
-
o[1] || (o[1] =
|
331
|
+
o[1] || (o[1] = $("svg", {
|
330
332
|
class: "bb-base-select__chevron",
|
331
333
|
viewBox: "0 0 24 24",
|
332
334
|
xmlns: "http://www.w3.org/2000/svg"
|
333
335
|
}, [
|
334
|
-
|
336
|
+
$("path", {
|
335
337
|
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
|
336
338
|
fill: "currentColor"
|
337
339
|
})
|
@@ -340,20 +342,20 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
340
342
|
]),
|
341
343
|
_: 3
|
342
344
|
}, 8, ["append:icon", "prepend:icon"]),
|
343
|
-
(
|
345
|
+
(b(!0), T(R, null, ze(Ee.value, (n) => (b(), T("input", J({
|
344
346
|
key: n.value,
|
345
347
|
ref_for: !0
|
346
348
|
}, n), null, 16))), 128)),
|
347
|
-
U.value ? (
|
349
|
+
U.value ? (b(), S(_e, {
|
348
350
|
key: 0,
|
349
351
|
to: "body"
|
350
352
|
}, [
|
351
|
-
|
353
|
+
F(i(X), {
|
352
354
|
ref_key: "optionsContainer",
|
353
355
|
ref: a,
|
354
356
|
loading: D.value,
|
355
357
|
open: c.value,
|
356
|
-
options:
|
358
|
+
options: Se.value,
|
357
359
|
style: Qe(oe.value),
|
358
360
|
"onOption:selected": _,
|
359
361
|
"onOption:unselected": Q
|
package/dist/index39.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
|
2
|
-
import { clamp as le } from "./
|
3
|
-
import { head as O } from "./
|
4
|
-
import { isCssColor as Y } from "./
|
2
|
+
import { clamp as le } from "./index229.js";
|
3
|
+
import { head as O } from "./index241.js";
|
4
|
+
import { isCssColor as Y } from "./index219.js";
|
5
5
|
import { isNil as P } from "./index129.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index130.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index211.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 q, createElementVNode as l, renderSlot as A } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as F } from "./
|
2
|
+
import { isCssColor as b } from "./index219.js";
|
3
|
+
import { when as F } from "./index220.js";
|
4
4
|
const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
|
2
|
-
import { useOptions as F } from "./
|
2
|
+
import { useOptions as F } from "./index222.js";
|
3
3
|
import M from "./index41.js";
|
4
4
|
/* empty css */
|
5
|
-
import S from "./
|
5
|
+
import S from "./index223.js";
|
6
6
|
/* empty css */
|
7
7
|
const I = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseSwitchGroup",
|
@@ -22,6 +22,7 @@ const I = /* @__PURE__ */ $({
|
|
22
22
|
itemText: {},
|
23
23
|
itemValue: {},
|
24
24
|
loadingText: { default: "Caricamento..." },
|
25
|
+
max: {},
|
25
26
|
modelValue: {},
|
26
27
|
modelValueDebounceTime: { default: 0 },
|
27
28
|
name: {},
|
@@ -44,6 +45,7 @@ const I = /* @__PURE__ */ $({
|
|
44
45
|
items: l(a, "items"),
|
45
46
|
itemText: a.itemText,
|
46
47
|
itemValue: a.itemValue,
|
48
|
+
max: a.max,
|
47
49
|
modelValue: l(a, "modelValue"),
|
48
50
|
modelValueDebounceTime: a.modelValueDebounceTime,
|
49
51
|
multiple: !0,
|
package/dist/index45.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { defineComponent as Y, ref as
|
1
|
+
import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as f, createBlock as C, normalizeClass as x, withCtx as a, renderSlot as s, createVNode as O, unref as v, createElementVNode as $, createElementBlock as ee, Fragment as te, createCommentVNode as oe, withDirectives as ne, mergeProps as le, isRef as ae, withModifiers as d, withKeys as y, vModelDynamic as re, nextTick as ie } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import ue from "./index127.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index134.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
9
|
-
import ce from "./
|
7
|
+
import { last as de } from "./index212.js";
|
8
|
+
import { useOptions as pe } from "./index222.js";
|
9
|
+
import ce from "./index244.js";
|
10
10
|
/* empty css */
|
11
|
-
import
|
11
|
+
import me from "./index246.js";
|
12
12
|
/* empty css */
|
13
|
-
import
|
13
|
+
import fe from "./index235.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index237.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
@@ -26,6 +26,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
26
26
|
hasErrors: { type: Boolean },
|
27
27
|
id: {},
|
28
28
|
loading: { type: Boolean },
|
29
|
+
max: {},
|
29
30
|
modelValue: {},
|
30
31
|
multiple: { type: Boolean, default: !0 },
|
31
32
|
name: {},
|
@@ -39,15 +40,15 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
39
40
|
const t = I, l = D;
|
40
41
|
if (t.multiple && !Array.isArray(t.modelValue))
|
41
42
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
42
|
-
const b =
|
43
|
+
const b = i(null), T = i(null), L = k(() => t.placeholder), V = i(null), w = i(null), r = k(
|
43
44
|
() => t.comma ? V.value : w.value
|
44
|
-
),
|
45
|
-
|
46
|
-
}, K = !t.multiple && se(t.modelValue) || t.multiple && !!t.modelValue.length, N =
|
45
|
+
), p = i(null), E = () => {
|
46
|
+
p.value instanceof HTMLInputElement && p.value.focus();
|
47
|
+
}, K = !t.multiple && se(t.modelValue) || t.multiple && !!t.modelValue.length, N = i([]), {
|
47
48
|
query: o,
|
48
49
|
alignQueryToState: q,
|
49
50
|
addCurrentQueryToManualItems: A,
|
50
|
-
selectedOptions:
|
51
|
+
selectedOptions: u,
|
51
52
|
selectOption: M,
|
52
53
|
unselectOption: P,
|
53
54
|
valueIsSelected: _,
|
@@ -68,40 +69,46 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
68
69
|
depsDebounceTime: 0,
|
69
70
|
queryDebounceTime: 0,
|
70
71
|
disabled: B(t, "disabled")
|
71
|
-
}), g =
|
72
|
+
}), g = i(!1), F = () => {
|
72
73
|
g.value = !0;
|
73
74
|
}, H = () => {
|
74
75
|
g.value = !1, l("inactive");
|
75
|
-
}, h = k(() => !(t.readonly || t.disabled || !
|
76
|
+
}, h = k(() => !(t.readonly || t.disabled || !r.value && t.multiple)), Q = (e) => {
|
76
77
|
var n;
|
77
|
-
h.value && (!t.multiple || o.value || (e.preventDefault(),
|
78
|
+
h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
|
78
79
|
}, R = (e) => {
|
79
80
|
var n;
|
80
|
-
h.value && (!t.multiple || o.value || (e.preventDefault(),
|
81
|
+
h.value && (!t.multiple || o.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
|
81
82
|
}, U = async () => {
|
82
83
|
var e, n;
|
83
|
-
!h.value || o.value || !
|
84
|
+
!h.value || o.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await ie(), (n = r.value) == null || n.focusPrevious());
|
84
85
|
}, z = () => {
|
85
86
|
var e;
|
86
|
-
(e =
|
87
|
+
(e = r.value) == null || e.blur();
|
87
88
|
}, Z = async (e) => {
|
88
89
|
var n;
|
89
90
|
if (l("keyup", e), t.readonly || t.disabled) {
|
90
91
|
e.preventDefault();
|
91
92
|
return;
|
92
93
|
}
|
93
|
-
if (/^[A-Za-z0-9]$/.test(e.key) && ((n =
|
94
|
+
if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
|
94
95
|
if (t.divider.length === 1 && o.value.includes(t.divider)) {
|
95
|
-
const
|
96
|
-
if (
|
97
|
-
o.value =
|
96
|
+
const m = o.value.split(t.divider)[0];
|
97
|
+
if (m)
|
98
|
+
o.value = m;
|
98
99
|
else {
|
99
100
|
o.value = "";
|
100
101
|
return;
|
101
102
|
}
|
102
103
|
}
|
103
104
|
if (!o.value) return;
|
104
|
-
|
105
|
+
if (_(o.value))
|
106
|
+
l("duplicate", o.value), o.value = "";
|
107
|
+
else {
|
108
|
+
if (t.max && u.value.length >= t.max)
|
109
|
+
return;
|
110
|
+
A(), j(de(S.value));
|
111
|
+
}
|
105
112
|
}
|
106
113
|
}, j = (e) => {
|
107
114
|
M(e), E();
|
@@ -110,7 +117,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
110
117
|
}, J = (e) => {
|
111
118
|
l("focus", e), F(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
112
119
|
}, W = (e) => {
|
113
|
-
l("click", e), !(t.disabled || t.readonly) &&
|
120
|
+
l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
114
121
|
}, c = async (e) => {
|
115
122
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
116
123
|
H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), q();
|
@@ -122,7 +129,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
122
129
|
onKeydown: (e) => l("keydown", e),
|
123
130
|
onInput: (e) => l("input", e)
|
124
131
|
};
|
125
|
-
return (e, n) => (
|
132
|
+
return (e, n) => (f(), C(ve, {
|
126
133
|
ref_key: "outerContainer",
|
127
134
|
ref: b,
|
128
135
|
class: x({
|
@@ -136,13 +143,13 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
136
143
|
onClick: W
|
137
144
|
}, {
|
138
145
|
"prepend-outer": a(() => [
|
139
|
-
|
146
|
+
s(e.$slots, "prepend-outer")
|
140
147
|
]),
|
141
148
|
"append-outer": a(() => [
|
142
|
-
|
149
|
+
s(e.$slots, "append-outer")
|
143
150
|
]),
|
144
151
|
default: a(() => [
|
145
|
-
O(
|
152
|
+
O(fe, {
|
146
153
|
ref_key: "innerContainer",
|
147
154
|
ref: T,
|
148
155
|
"append:icon": t["append:icon"],
|
@@ -150,41 +157,41 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
150
157
|
"prevent-focus": !0
|
151
158
|
}, {
|
152
159
|
prepend: a(() => [
|
153
|
-
|
160
|
+
s(e.$slots, "prepend")
|
154
161
|
]),
|
155
162
|
prefix: a(() => [
|
156
|
-
|
163
|
+
s(e.$slots, "prefix")
|
157
164
|
]),
|
158
165
|
append: a(() => [
|
159
|
-
|
166
|
+
s(e.$slots, "append")
|
160
167
|
]),
|
161
168
|
suffix: a(() => [
|
162
|
-
|
169
|
+
s(e.$slots, "suffix")
|
163
170
|
]),
|
164
171
|
default: a(() => [
|
165
172
|
O(v(ue), { tag: "span" }, {
|
166
173
|
default: a(() => [
|
167
174
|
$("span", ye, [
|
168
|
-
e.multiple ? (
|
169
|
-
e.comma ? (
|
175
|
+
e.multiple ? (f(), ee(te, { key: 0 }, [
|
176
|
+
e.comma ? (f(), C(me, {
|
170
177
|
key: 0,
|
171
178
|
ref_key: "commaBox",
|
172
179
|
ref: V,
|
173
|
-
options: v(
|
174
|
-
}, null, 8, ["options"])) : (
|
180
|
+
options: v(u)
|
181
|
+
}, null, 8, ["options"])) : (f(), C(ce, {
|
175
182
|
key: 1,
|
176
183
|
ref_key: "chipsBox",
|
177
184
|
ref: w,
|
178
|
-
options: v(
|
185
|
+
options: v(u),
|
179
186
|
"onOption:unselected": G
|
180
187
|
}, null, 8, ["options"]))
|
181
188
|
], 64)) : oe("", !0),
|
182
189
|
ne($("input", le({
|
183
190
|
id: e.id,
|
184
191
|
ref_key: "input",
|
185
|
-
ref:
|
192
|
+
ref: p
|
186
193
|
}, X, {
|
187
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
194
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => ae(o) ? o.value = m : null),
|
188
195
|
"aria-describedby": e.ariaDescribedby,
|
189
196
|
autocomplete: e.autocomplete,
|
190
197
|
autofocus: e.autofocus,
|
@@ -196,16 +203,16 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
196
203
|
readonly: e.readonly,
|
197
204
|
required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
|
198
205
|
type: "text",
|
199
|
-
onFocus:
|
206
|
+
onFocus: d(J, ["stop"]),
|
200
207
|
onKeydown: [
|
201
|
-
y(
|
202
|
-
y(
|
203
|
-
y(
|
204
|
-
y(
|
208
|
+
y(d(U, ["stop"]), ["delete"]),
|
209
|
+
y(d(Q, ["stop"]), ["left"]),
|
210
|
+
y(d(z, ["stop", "prevent"]), ["esc"]),
|
211
|
+
y(d(R, ["stop"]), ["right"])
|
205
212
|
],
|
206
|
-
onKeyup:
|
213
|
+
onKeyup: d(Z, ["stop"])
|
207
214
|
}), null, 16, be), [
|
208
|
-
[
|
215
|
+
[re, v(o)]
|
209
216
|
])
|
210
217
|
])
|
211
218
|
]),
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index237.js";
|
3
|
+
import E from "./index235.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index127.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index235.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index237.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: {
|
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
|
2
|
-
import { isCssColor as _ } from "./
|
2
|
+
import { isCssColor as _ } from "./index219.js";
|
3
3
|
import { wait as C } from "./index131.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as r } from "./
|
2
|
+
import { isCssColor as r } from "./index219.js";
|
3
3
|
import { isNil as B } from "./index129.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|