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