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