bitboss-ui 2.0.95 → 2.0.96
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/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +9 -4
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
- package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
- package/dist/components/ListBox.vue.d.ts +4 -0
- package/dist/index100.js +4 -4
- package/dist/index101.js +18 -15
- package/dist/index103.js +11 -9
- package/dist/index105.js +10 -10
- package/dist/index107.js +16 -14
- package/dist/index111.js +7 -7
- package/dist/index113.js +12 -9
- package/dist/index115.js +27 -24
- package/dist/index117.js +27 -24
- package/dist/index119.js +2 -2
- package/dist/index121.js +4 -4
- package/dist/index123.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index15.js +24 -22
- package/dist/index17.js +15 -16
- package/dist/index19.js +57 -51
- package/dist/index206.js +81 -2
- package/dist/index207.js +2 -81
- package/dist/index208.js +6 -51
- package/dist/index209.js +128 -0
- package/dist/index21.js +77 -72
- package/dist/index210.js +5 -13
- package/dist/index211.js +124 -19
- package/dist/index212.js +19 -4
- package/dist/index213.js +16 -5
- package/dist/index214.js +10 -10
- package/dist/index215.js +2 -16
- package/dist/index216.js +2 -19
- package/dist/index217.js +40 -18
- package/dist/index218.js +19 -26
- package/dist/index219.js +6 -3
- package/dist/index220.js +53 -2
- package/dist/index222.js +13 -249
- package/dist/index223.js +5 -52
- package/dist/index224.js +10 -42
- package/dist/index225.js +369 -5
- package/dist/index226.js +18 -59
- package/dist/index227.js +27 -2
- package/dist/index228.js +3 -4
- package/dist/index229.js +250 -2
- package/dist/index23.js +28 -26
- package/dist/index230.js +52 -3
- package/dist/index231.js +44 -41
- package/dist/index232.js +5 -6
- package/dist/index233.js +60 -7
- package/dist/index234.js +164 -12
- package/dist/index235.js +84 -164
- package/dist/index237.js +5 -0
- package/dist/index238.js +7 -126
- package/dist/index239.js +2 -125
- package/dist/index240.js +4 -2
- package/dist/index241.js +2 -5
- package/dist/index242.js +3 -368
- package/dist/index243.js +1 -1
- package/dist/index244.js +2 -2
- package/dist/index245.js +17 -105
- package/dist/index246.js +108 -0
- package/dist/{index247.js → index248.js} +1 -1
- package/dist/index25.js +6 -6
- package/dist/index250.js +2 -18
- package/dist/index255.js +4 -4
- package/dist/index257.js +6 -9
- package/dist/index258.js +16 -6
- package/dist/index259.js +9 -16
- package/dist/index260.js +9 -3
- package/dist/index261.js +10 -0
- package/dist/index262.js +3 -7
- package/dist/index263.js +11 -175
- package/dist/index264.js +8 -280
- package/dist/index265.js +17 -6
- package/dist/index266.js +4 -2
- package/dist/index267.js +281 -2
- package/dist/index268.js +6 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +8 -6
- package/dist/index272.js +2 -2
- package/dist/index273.js +2 -2
- package/dist/index274.js +2 -2
- package/dist/index275.js +1 -1
- package/dist/index276.js +2 -28
- package/dist/index277.js +1 -21
- package/dist/index278.js +4 -0
- package/dist/index279.js +28 -4
- package/dist/index280.js +20 -429
- package/dist/index282.js +6 -88
- package/dist/index283.js +2 -3
- package/dist/index284.js +126 -12
- package/dist/index285.js +429 -7
- package/dist/index286.js +176 -9
- package/dist/index287.js +3 -17
- package/dist/index289.js +21 -199
- package/dist/index29.js +11 -9
- package/dist/index291.js +2 -126
- package/dist/index292.js +4 -22
- package/dist/index293.js +202 -0
- package/dist/index294.js +436 -8
- package/dist/index295.js +121 -218
- package/dist/index296.js +81 -428
- package/dist/index297.js +218 -121
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index300.js +23 -21
- package/dist/index301.js +65 -2
- package/dist/index302.js +5 -33
- package/dist/index303.js +2 -5
- package/dist/index304.js +3 -8
- package/dist/index308.js +11 -2
- package/dist/index309.js +6 -6
- package/dist/index31.js +6 -6
- package/dist/index310.js +18 -65
- package/dist/index311.js +7 -5
- package/dist/index312.js +32 -6
- package/dist/index313.js +45 -17
- package/dist/index314.js +4 -10
- package/dist/index315.js +7 -3
- package/dist/index316.js +2 -47
- package/dist/index317.js +4 -480
- package/dist/index318.js +482 -0
- package/dist/index33.js +12 -12
- package/dist/index35.js +35 -35
- package/dist/index37.js +58 -54
- package/dist/index39.js +5 -5
- package/dist/index41.js +3 -3
- package/dist/index43.js +3 -3
- package/dist/index45.js +46 -44
- package/dist/index47.js +31 -29
- package/dist/index49.js +18 -16
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index63.js +9 -9
- package/dist/index65.js +11 -9
- package/dist/index67.js +24 -21
- package/dist/index71.js +8 -5
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +24 -21
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/index92.js +6 -6
- package/dist/index94.js +11 -9
- package/dist/index96.js +13 -11
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index221.js +0 -10
- package/dist/index236.js +0 -86
- package/dist/index249.js +0 -4
- package/dist/index281.js +0 -4
- package/dist/index288.js +0 -6
- package/dist/index290.js +0 -4
- package/dist/index319.js +0 -4
package/dist/index37.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as
|
1
|
+
import { defineComponent as xe, defineAsyncComponent as Me, ref as v, computed as y, toRef as V, openBlock as b, createBlock as S, normalizeClass as W, withCtx as r, renderSlot as p, unref as i, createVNode as N, createElementVNode as $, createElementBlock as T, Fragment as R, toDisplayString as Ne, createCommentVNode as J, withDirectives as He, isRef as Pe, withModifiers as c, withKeys as g, vModelDynamic as ze, renderList as _e, mergeProps as Y, normalizeStyle as Qe, nextTick as Ke } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as Ue } from "./index8.js";
|
@@ -6,25 +6,25 @@ import { useMobile as We } from "./index9.js";
|
|
6
6
|
import Re from "./index128.js";
|
7
7
|
/* empty css */
|
8
8
|
import { isNotNil as Je } from "./index135.js";
|
9
|
-
import { last as Ye } from "./
|
10
|
-
import { matchAnyKey as j } from "./
|
11
|
-
import { useFloating as je } from "./
|
9
|
+
import { last as Ye } from "./index216.js";
|
10
|
+
import { matchAnyKey as j } from "./index245.js";
|
11
|
+
import { useFloating as je } from "./index209.js";
|
12
12
|
import { useIntersectionObserver as Ge } from "./index133.js";
|
13
|
-
import { useLogger as Xe } from "./
|
14
|
-
import { useOptions as Ze } from "./
|
13
|
+
import { useLogger as Xe } from "./index208.js";
|
14
|
+
import { useOptions as Ze } from "./index234.js";
|
15
15
|
import { wait as L } from "./index132.js";
|
16
|
-
import { when as et } from "./
|
17
|
-
import tt from "./
|
16
|
+
import { when as et } from "./index240.js";
|
17
|
+
import tt from "./index246.js";
|
18
18
|
/* empty css */
|
19
|
-
import ot from "./
|
19
|
+
import ot from "./index248.js";
|
20
20
|
/* empty css */
|
21
|
-
import nt from "./
|
21
|
+
import nt from "./index220.js";
|
22
22
|
/* empty css */
|
23
|
-
import lt from "./
|
24
|
-
import { waitFor as at } from "./
|
25
|
-
import it from "./
|
26
|
-
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./
|
27
|
-
const
|
23
|
+
import lt from "./index222.js";
|
24
|
+
import { waitFor as at } from "./index219.js";
|
25
|
+
import it from "./index224.js";
|
26
|
+
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index225.js";
|
27
|
+
const ct = { class: "bb-base-select__input-container" }, dt = {
|
28
28
|
key: 1,
|
29
29
|
class: "bb-base-select__max-reached"
|
30
30
|
}, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */ xe({
|
@@ -37,6 +37,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
37
37
|
autocomplete: { default: "off" },
|
38
38
|
autofocus: {},
|
39
39
|
comma: { type: Boolean },
|
40
|
+
compact: { type: Boolean },
|
40
41
|
dependencies: { default: () => [] },
|
41
42
|
depsDebounceTime: { default: 0 },
|
42
43
|
disabled: { type: Boolean },
|
@@ -72,11 +73,11 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
72
73
|
const t = G, h = X;
|
73
74
|
if (t.multiple && !Array.isArray(t.modelValue))
|
74
75
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
75
|
-
const Z = Me(() => import("./
|
76
|
+
const Z = Me(() => import("./index244.js")), A = v(null), B = v(null), a = v(null), H = v(null), P = v(null), u = y(
|
76
77
|
() => t.comma ? H.value : P.value
|
77
78
|
), { isMobile: ee } = We(), te = y(
|
78
79
|
() => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
|
79
|
-
),
|
80
|
+
), z = t.id || Ue().id.value;
|
80
81
|
Ge(
|
81
82
|
B,
|
82
83
|
([{ intersectionRatio: e }]) => {
|
@@ -117,17 +118,17 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
117
118
|
}
|
118
119
|
}, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
|
119
120
|
var e, o, n;
|
120
|
-
w.value && ((e = u.value) == null || e.blur(),
|
121
|
+
w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
|
121
122
|
}, pe = async () => {
|
122
123
|
var e, o, n;
|
123
|
-
w.value && ((e = u.value) == null || e.blur(),
|
124
|
-
},
|
124
|
+
w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
|
125
|
+
}, ce = (e) => {
|
125
126
|
var n, s, m, k;
|
126
127
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
127
128
|
(s = u.value) == null || s.focusPrevious();
|
128
129
|
const o = (m = u.value) == null ? void 0 : m.getHighlighted();
|
129
130
|
o && ((k = a.value) == null || k.focusByHash(o.valueHash));
|
130
|
-
},
|
131
|
+
}, de = (e) => {
|
131
132
|
var n, s, m, k;
|
132
133
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
133
134
|
(s = u.value) == null || s.focusNext();
|
@@ -136,7 +137,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
136
137
|
}, fe = async () => {
|
137
138
|
var e, o;
|
138
139
|
if (w.value) {
|
139
|
-
if (!
|
140
|
+
if (!d.value)
|
140
141
|
await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
|
141
142
|
else if ((o = a.value) != null && o.getHighlighted())
|
142
143
|
a.value.confirmOption();
|
@@ -154,7 +155,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
154
155
|
}
|
155
156
|
}
|
156
157
|
}, me = async () => {
|
157
|
-
|
158
|
+
d.value && await C();
|
158
159
|
}, ve = async () => {
|
159
160
|
var e, o;
|
160
161
|
!w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ke(), (o = u.value) == null || o.focusPrevious());
|
@@ -162,7 +163,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
162
163
|
query: l,
|
163
164
|
alignQueryToState: be,
|
164
165
|
addCurrentQueryToManualItems: he,
|
165
|
-
innerLoading:
|
166
|
+
innerLoading: _,
|
166
167
|
options: Q,
|
167
168
|
selectedOptions: f,
|
168
169
|
selectOption: ge,
|
@@ -191,7 +192,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
191
192
|
depsDebounceTime: t.depsDebounceTime,
|
192
193
|
queryDebounceTime: t.queryDebounceTime,
|
193
194
|
disabled: V(t, "disabled")
|
194
|
-
}), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(
|
195
|
+
}), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(_.value || t.loading)), $e = y(() => {
|
195
196
|
let e = [];
|
196
197
|
const o = f.value.some(
|
197
198
|
(s) => s.text === l.value
|
@@ -204,12 +205,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
204
205
|
ge(e), E(), t.multiple || C();
|
205
206
|
}, U = (e) => {
|
206
207
|
we(e), E();
|
207
|
-
},
|
208
|
-
x.value = !0, await at(() => !!a.value), F.value = !1,
|
208
|
+
}, d = v(!1), F = v(!0), x = v(!1), O = async () => {
|
209
|
+
x.value = !0, await at(() => !!a.value), F.value = !1, d.value = !0;
|
209
210
|
}, C = async () => {
|
210
211
|
var e;
|
211
|
-
|
212
|
-
}, Te = () =>
|
212
|
+
d.value = !1, F.value = !0, (e = u.value) == null || e.blur();
|
213
|
+
}, Te = () => d.value ? C() : O(), M = v(!1), Le = () => {
|
213
214
|
M.value = !0;
|
214
215
|
}, Ae = () => {
|
215
216
|
M.value = !1, h("inactive");
|
@@ -233,11 +234,12 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
233
234
|
class: W({
|
234
235
|
"bb-base-select": !0,
|
235
236
|
"bb-base-select--active": M.value,
|
236
|
-
"bb-base-select--shown":
|
237
|
+
"bb-base-select--shown": d.value,
|
237
238
|
"bb-base-select--loading": I.value,
|
238
239
|
"bb-base-select--disabled": e.disabled,
|
239
240
|
"bb-base-select--errors": e.hasErrors,
|
240
|
-
"bb-base-select--readonly": e.readonly
|
241
|
+
"bb-base-select--readonly": e.readonly,
|
242
|
+
"bb-base-select--compact": e.compact
|
241
243
|
}),
|
242
244
|
onClick: qe
|
243
245
|
}, {
|
@@ -270,7 +272,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
270
272
|
default: r(() => [
|
271
273
|
N(i(Re), { tag: "span" }, {
|
272
274
|
default: r(() => [
|
273
|
-
$("span",
|
275
|
+
$("span", ct, [
|
274
276
|
e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
|
275
277
|
e.comma ? (b(), S(ot, {
|
276
278
|
key: 0,
|
@@ -284,16 +286,16 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
284
286
|
options: i(f),
|
285
287
|
"onOption:unselected": U
|
286
288
|
}, null, 8, ["options"]))
|
287
|
-
], 64)) : e.multiple ? (b(), T("span",
|
289
|
+
], 64)) : e.multiple ? (b(), T("span", dt, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
|
288
290
|
He($("input", {
|
289
|
-
id: i(
|
291
|
+
id: i(z),
|
290
292
|
ref_key: "input",
|
291
293
|
ref: q,
|
292
294
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
|
293
295
|
"aria-autocomplete": "list",
|
294
|
-
"aria-controls": x.value ? `${i(
|
296
|
+
"aria-controls": x.value ? `${i(z)}_listbox` : void 0,
|
295
297
|
"aria-describedby": e.ariaDescribedby,
|
296
|
-
"aria-expanded":
|
298
|
+
"aria-expanded": d.value,
|
297
299
|
autocomplete: e.autocomplete,
|
298
300
|
autofocus: e.autofocus,
|
299
301
|
class: W("bb-base-select__text-input"),
|
@@ -303,31 +305,32 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
303
305
|
readonly: e.readonly || !e.allowWriting,
|
304
306
|
required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
|
305
307
|
role: "combobox",
|
308
|
+
size: "1",
|
306
309
|
type: "text",
|
307
|
-
onBlur:
|
308
|
-
onChange:
|
309
|
-
onFocusOnce:
|
310
|
-
onFocus:
|
311
|
-
onInput:
|
310
|
+
onBlur: c(ie, ["stop"]),
|
311
|
+
onChange: c(re, ["stop"]),
|
312
|
+
onFocusOnce: c(ae, ["stop"]),
|
313
|
+
onFocus: c(le, ["stop"]),
|
314
|
+
onInput: c(se, ["stop"]),
|
312
315
|
onKeydown: [
|
313
|
-
g(
|
314
|
-
g(
|
315
|
-
g(
|
316
|
-
g(
|
317
|
-
g(
|
318
|
-
g(
|
319
|
-
g(
|
316
|
+
g(c(ve, ["stop"]), ["delete"]),
|
317
|
+
g(c(ce, ["stop"]), ["left"]),
|
318
|
+
g(c(pe, ["stop", "prevent"]), ["down"]),
|
319
|
+
g(c(fe, ["stop", "prevent"]), ["enter"]),
|
320
|
+
g(c(me, ["stop", "prevent"]), ["esc"]),
|
321
|
+
g(c(ue, ["stop", "prevent"]), ["up"]),
|
322
|
+
g(c(de, ["stop"]), ["right"])
|
320
323
|
]
|
321
324
|
}, null, 40, ft), [
|
322
|
-
[
|
325
|
+
[ze, i(l)]
|
323
326
|
])
|
324
327
|
])
|
325
328
|
]),
|
326
329
|
_: 1
|
327
330
|
}),
|
328
331
|
p(e.$slots, "chevron", {
|
329
|
-
loading: !!i(
|
330
|
-
shown:
|
332
|
+
loading: !!i(_),
|
333
|
+
shown: d.value
|
331
334
|
}, () => [
|
332
335
|
o[1] || (o[1] = $("svg", {
|
333
336
|
class: "bb-base-select__chevron",
|
@@ -343,7 +346,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
343
346
|
]),
|
344
347
|
_: 3
|
345
348
|
}, 8, ["append:icon", "prepend:icon"]),
|
346
|
-
(b(!0), T(R, null,
|
349
|
+
(b(!0), T(R, null, _e(Fe.value, (n) => (b(), T("input", Y({
|
347
350
|
key: n.value,
|
348
351
|
ref_for: !0
|
349
352
|
}, n), null, 16))), 128)),
|
@@ -352,8 +355,9 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
352
355
|
N(i(Z), {
|
353
356
|
ref_key: "optionsContainer",
|
354
357
|
ref: a,
|
358
|
+
compact: e.compact,
|
355
359
|
loading: I.value,
|
356
|
-
open:
|
360
|
+
open: d.value,
|
357
361
|
options: $e.value,
|
358
362
|
style: Qe(ne.value),
|
359
363
|
"onOption:selected": K,
|
@@ -378,7 +382,7 @@ const dt = { class: "bb-base-select__input-container" }, ct = {
|
|
378
382
|
}, n))
|
379
383
|
]),
|
380
384
|
_: 3
|
381
|
-
}, 8, ["loading", "open", "options", "style"])
|
385
|
+
}, 8, ["compact", "loading", "open", "options", "style"])
|
382
386
|
]),
|
383
387
|
_: 3
|
384
388
|
})) : J("", !0)
|
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 "./index207.js";
|
3
|
+
import { head as O } from "./index250.js";
|
4
|
+
import { isCssColor as Y } from "./index239.js";
|
5
5
|
import { isNil as P } from "./index130.js";
|
6
6
|
import { isNotNil as ne } from "./index135.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index228.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
@@ -23,7 +23,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
23
23
|
modelValue: { default: 0 },
|
24
24
|
name: {},
|
25
25
|
range: { type: Boolean },
|
26
|
-
readonly: {},
|
26
|
+
readonly: { type: Boolean },
|
27
27
|
required: { type: Boolean },
|
28
28
|
step: { default: 1 },
|
29
29
|
ticks: { type: Boolean },
|
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 "./index239.js";
|
3
|
+
import { when as F } from "./index240.js";
|
4
4
|
const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
@@ -14,7 +14,7 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
|
14
14
|
id: {},
|
15
15
|
indeterminate: {},
|
16
16
|
name: {},
|
17
|
-
readonly: {},
|
17
|
+
readonly: { type: Boolean },
|
18
18
|
required: { type: Boolean },
|
19
19
|
submitWhenFalse: { type: Boolean },
|
20
20
|
trueValue: { default: !0 },
|
package/dist/index43.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as V, 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 "./index234.js";
|
3
3
|
import M from "./index41.js";
|
4
4
|
/* empty css */
|
5
|
-
import S from "./
|
5
|
+
import S from "./index235.js";
|
6
6
|
/* empty css */
|
7
7
|
const I = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseSwitchGroup",
|
@@ -27,7 +27,7 @@ const I = /* @__PURE__ */ V({
|
|
27
27
|
modelValueDebounceTime: { default: 0 },
|
28
28
|
name: {},
|
29
29
|
noDataText: { default: "Nessun elemento da visualizzare" },
|
30
|
-
readonly: {}
|
30
|
+
readonly: { type: Boolean }
|
31
31
|
},
|
32
32
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
33
33
|
setup(g, { emit: y }) {
|
package/dist/index45.js
CHANGED
@@ -1,26 +1,27 @@
|
|
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
|
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 oe, createCommentVNode as te, 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 "./index128.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index135.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
9
|
-
import ce from "./
|
7
|
+
import { last as de } from "./index216.js";
|
8
|
+
import { useOptions as pe } from "./index234.js";
|
9
|
+
import ce from "./index246.js";
|
10
10
|
/* empty css */
|
11
|
-
import me from "./
|
11
|
+
import me from "./index248.js";
|
12
12
|
/* empty css */
|
13
|
-
import fe from "./
|
13
|
+
import fe from "./index220.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index222.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
19
19
|
"append:icon": {},
|
20
20
|
ariaDescribedby: {},
|
21
|
-
autocomplete: {},
|
21
|
+
autocomplete: { default: "off" },
|
22
22
|
autofocus: {},
|
23
23
|
comma: { type: Boolean },
|
24
|
+
compact: { type: Boolean },
|
24
25
|
disabled: { type: Boolean },
|
25
26
|
divider: { default: "Enter" },
|
26
27
|
hasErrors: { type: Boolean },
|
@@ -32,85 +33,85 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
32
33
|
name: {},
|
33
34
|
placeholder: {},
|
34
35
|
"prepend:icon": {},
|
35
|
-
readonly: {},
|
36
|
+
readonly: { type: Boolean },
|
36
37
|
required: { type: Boolean }
|
37
38
|
},
|
38
39
|
emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
|
39
40
|
setup(D, { emit: I }) {
|
40
|
-
const
|
41
|
-
if (
|
41
|
+
const o = D, l = I;
|
42
|
+
if (o.multiple && !Array.isArray(o.modelValue))
|
42
43
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
43
|
-
const b = i(null), T = i(null), L = k(() =>
|
44
|
-
() =>
|
44
|
+
const b = i(null), T = i(null), L = k(() => o.placeholder), V = i(null), w = i(null), r = k(
|
45
|
+
() => o.comma ? V.value : w.value
|
45
46
|
), p = i(null), E = () => {
|
46
47
|
p.value instanceof HTMLInputElement && p.value.focus();
|
47
|
-
}, N = !
|
48
|
-
query:
|
48
|
+
}, N = !o.multiple && se(o.modelValue) || o.multiple && !!o.modelValue.length, q = i([]), {
|
49
|
+
query: t,
|
49
50
|
alignQueryToState: A,
|
50
51
|
addCurrentQueryToManualItems: K,
|
51
52
|
selectedOptions: u,
|
52
53
|
selectOption: M,
|
53
54
|
unselectOption: P,
|
54
|
-
valueIsSelected:
|
55
|
-
manualItems:
|
55
|
+
valueIsSelected: S,
|
56
|
+
manualItems: _
|
56
57
|
} = pe({
|
57
58
|
emit: l,
|
58
59
|
itemText: void 0,
|
59
60
|
itemValue: void 0,
|
60
|
-
modelValue: B(
|
61
|
-
multiple:
|
61
|
+
modelValue: B(o, "modelValue"),
|
62
|
+
multiple: o.multiple,
|
62
63
|
resetQueryOnOptionSelected: !0,
|
63
64
|
stash: !1,
|
64
|
-
items: B(
|
65
|
+
items: B(o, "modelValue"),
|
65
66
|
enforceCoherence: !1,
|
66
67
|
prefill: N,
|
67
68
|
modelValueDebounceTime: 0,
|
68
69
|
dependencies: q,
|
69
70
|
depsDebounceTime: 0,
|
70
71
|
queryDebounceTime: 0,
|
71
|
-
disabled: B(
|
72
|
+
disabled: B(o, "disabled")
|
72
73
|
}), g = i(!1), F = () => {
|
73
74
|
g.value = !0;
|
74
75
|
}, H = () => {
|
75
76
|
g.value = !1, l("inactive");
|
76
|
-
}, h = k(() => !(
|
77
|
+
}, h = k(() => !(o.readonly || o.disabled || !r.value && o.multiple)), Q = (e) => {
|
77
78
|
var n;
|
78
|
-
h.value && (!
|
79
|
+
h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
|
79
80
|
}, R = (e) => {
|
80
81
|
var n;
|
81
|
-
h.value && (!
|
82
|
+
h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
|
82
83
|
}, U = async () => {
|
83
84
|
var e, n;
|
84
|
-
!h.value ||
|
85
|
+
!h.value || t.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await ie(), (n = r.value) == null || n.focusPrevious());
|
85
86
|
}, z = () => {
|
86
87
|
var e;
|
87
88
|
(e = r.value) == null || e.blur();
|
88
89
|
}, Z = async (e) => {
|
89
90
|
var n;
|
90
|
-
if (l("keydown", e),
|
91
|
+
if (l("keydown", e), o.readonly || o.disabled) {
|
91
92
|
e.preventDefault();
|
92
93
|
return;
|
93
94
|
}
|
94
|
-
if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key ===
|
95
|
-
if (
|
96
|
-
const m =
|
95
|
+
if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key === o.divider || e.key === "Unidentified" && t.value.includes(o.divider)) {
|
96
|
+
if (o.divider.length === 1 && t.value.includes(o.divider)) {
|
97
|
+
const m = t.value.split(o.divider)[0];
|
97
98
|
if (m)
|
98
|
-
|
99
|
+
t.value = m;
|
99
100
|
else {
|
100
|
-
|
101
|
+
t.value = "";
|
101
102
|
return;
|
102
103
|
}
|
103
104
|
}
|
104
|
-
if (!
|
105
|
+
if (!t.value) {
|
105
106
|
l("keydown", e);
|
106
107
|
return;
|
107
108
|
}
|
108
|
-
if (e.preventDefault(),
|
109
|
-
l("duplicate",
|
109
|
+
if (e.preventDefault(), S(t.value))
|
110
|
+
l("duplicate", t.value), t.value = "";
|
110
111
|
else {
|
111
|
-
if (
|
112
|
+
if (o.max && u.value.length >= o.max)
|
112
113
|
return;
|
113
|
-
K(), j(de(
|
114
|
+
K(), j(de(_.value));
|
114
115
|
}
|
115
116
|
}
|
116
117
|
}, j = (e) => {
|
@@ -120,7 +121,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
120
121
|
}, J = (e) => {
|
121
122
|
l("focus", e), F(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
122
123
|
}, W = (e) => {
|
123
|
-
l("click", e), !(
|
124
|
+
l("click", e), !(o.disabled || o.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
124
125
|
}, c = async (e) => {
|
125
126
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
126
127
|
H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), A();
|
@@ -141,7 +142,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
141
142
|
"bb-base-tag--disabled": e.disabled,
|
142
143
|
"bb-base-tag--loading": e.loading,
|
143
144
|
"bb-base-tag--errors": e.hasErrors,
|
144
|
-
"bb-base-tag--readonly": e.readonly
|
145
|
+
"bb-base-tag--readonly": e.readonly,
|
146
|
+
"bb-base-tag--compact": e.compact
|
145
147
|
}),
|
146
148
|
onClick: W
|
147
149
|
}, {
|
@@ -155,8 +157,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
155
157
|
O(fe, {
|
156
158
|
ref_key: "innerContainer",
|
157
159
|
ref: T,
|
158
|
-
"append:icon":
|
159
|
-
"prepend:icon":
|
160
|
+
"append:icon": o["append:icon"],
|
161
|
+
"prepend:icon": o["prepend:icon"],
|
160
162
|
"prevent-focus": !0
|
161
163
|
}, {
|
162
164
|
prepend: a(() => [
|
@@ -175,7 +177,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
175
177
|
O(v(ue), { tag: "span" }, {
|
176
178
|
default: a(() => [
|
177
179
|
$("span", ye, [
|
178
|
-
e.multiple ? (f(), ee(
|
180
|
+
e.multiple ? (f(), ee(oe, { key: 0 }, [
|
179
181
|
e.comma ? (f(), C(me, {
|
180
182
|
key: 0,
|
181
183
|
ref_key: "commaBox",
|
@@ -188,13 +190,13 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
188
190
|
options: v(u),
|
189
191
|
"onOption:unselected": G
|
190
192
|
}, null, 8, ["options"]))
|
191
|
-
], 64)) :
|
193
|
+
], 64)) : te("", !0),
|
192
194
|
ne($("input", le({
|
193
195
|
id: e.id,
|
194
196
|
ref_key: "input",
|
195
197
|
ref: p
|
196
198
|
}, X, {
|
197
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => ae(
|
199
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => ae(t) ? t.value = m : null),
|
198
200
|
"aria-describedby": e.ariaDescribedby,
|
199
201
|
autocomplete: e.autocomplete,
|
200
202
|
autofocus: e.autofocus,
|
@@ -214,7 +216,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
214
216
|
y(d(R, ["stop"]), ["right"])
|
215
217
|
]
|
216
218
|
}), null, 16, be), [
|
217
|
-
[re, v(
|
219
|
+
[re, v(t)]
|
218
220
|
])
|
219
221
|
])
|
220
222
|
]),
|