bitboss-ui 2.0.99 → 2.0.101
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/BaseSelect/BaseSelect.vue.d.ts +0 -6
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/index100.js +4 -4
- package/dist/index111.js +6 -6
- package/dist/index119.js +2 -2
- package/dist/index121.js +5 -5
- 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 +2 -2
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +3 -3
- package/dist/index17.js +3 -3
- package/dist/index19.js +3 -3
- package/dist/index205.js +81 -2
- package/dist/index206.js +126 -3
- package/dist/index207.js +5 -41
- package/dist/index208.js +125 -6
- package/dist/index209.js +19 -7
- package/dist/index21.js +14 -14
- package/dist/index210.js +16 -8
- package/dist/index211.js +16 -12
- package/dist/index212.js +2 -53
- package/dist/index213.js +4 -0
- package/dist/index214.js +40 -12
- package/dist/index215.js +1 -1
- package/dist/index216.js +6 -4
- package/dist/index217.js +53 -5
- package/dist/index219.js +13 -16
- package/dist/index220.js +5 -19
- package/dist/index221.js +12 -19
- package/dist/index222.js +367 -25
- package/dist/index223.js +4 -3
- package/dist/index224.js +3 -2
- package/dist/index225.js +6 -248
- package/dist/index226.js +2 -52
- package/dist/index227.js +4 -44
- package/dist/index228.js +2 -5
- package/dist/index229.js +2 -60
- package/dist/index23.js +15 -15
- package/dist/index230.js +19 -81
- package/dist/index231.js +27 -2
- package/dist/index232.js +3 -4
- package/dist/index233.js +250 -2
- package/dist/index234.js +50 -162
- package/dist/index235.js +38 -78
- package/dist/index236.js +7 -0
- package/dist/index237.js +59 -7
- package/dist/index238.js +3 -126
- package/dist/index239.js +7 -125
- package/dist/index240.js +168 -2
- package/dist/index241.js +84 -5
- package/dist/index243.js +8 -3
- package/dist/index244.js +2 -106
- package/dist/index246.js +53 -47
- package/dist/index248.js +100 -2
- package/dist/index25.js +6 -6
- package/dist/index256.js +4 -4
- package/dist/index258.js +3 -3
- package/dist/index260.js +3 -431
- package/dist/index262.js +6 -88
- package/dist/index263.js +176 -3
- package/dist/index264.js +11 -0
- package/dist/index265.js +224 -7
- package/dist/index266.js +279 -174
- package/dist/index267.js +6 -200
- package/dist/index268.js +2 -9
- package/dist/index269.js +2 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -8
- package/dist/index271.js +2 -281
- package/dist/index272.js +2 -6
- package/dist/index273.js +126 -2
- package/dist/index274.js +431 -2
- package/dist/index275.js +22 -2
- package/dist/index277.js +2 -2
- package/dist/index278.js +4 -2
- package/dist/index279.js +9 -2
- package/dist/index280.js +8 -2
- package/dist/index281.js +2 -2
- package/dist/index282.js +2 -2
- package/dist/index283.js +2 -28
- package/dist/index284.js +1 -21
- package/dist/index285.js +4 -0
- package/dist/index286.js +2 -4
- package/dist/index287.js +28 -3
- package/dist/index288.js +22 -12
- package/dist/index29.js +3 -3
- package/dist/index290.js +434 -15
- package/dist/index291.js +126 -3
- package/dist/index292.js +199 -6
- package/dist/index293.js +88 -10
- package/dist/index294.js +3 -2
- package/dist/index295.js +12 -126
- package/dist/index296.js +8 -21
- package/dist/index297.js +19 -0
- package/dist/index298.js +3 -223
- package/dist/index299.js +6 -435
- package/dist/index300.js +10 -126
- package/dist/index301.js +1 -1
- package/dist/index302.js +1 -1
- package/dist/index303.js +2 -2
- package/dist/index304.js +5 -2
- package/dist/index305.js +2 -66
- package/dist/index306.js +66 -5
- package/dist/index307.js +3 -5
- package/dist/index308.js +3 -8
- package/dist/index309.js +3 -3
- package/dist/index31.js +26 -27
- package/dist/index310.js +58 -3
- package/dist/index311.js +4 -57
- package/dist/index312.js +8 -3
- package/dist/index313.js +32 -3
- package/dist/index314.js +3 -32
- package/dist/index315.js +6 -6
- package/dist/index316.js +6 -18
- package/dist/index317.js +17 -5
- package/dist/index318.js +8 -47
- package/dist/index319.js +5 -5
- package/dist/index320.js +47 -8
- package/dist/index321.js +1 -1
- package/dist/{index322.js → index323.js} +1 -1
- package/dist/index33.js +48 -42
- package/dist/index35.js +3 -3
- package/dist/index37.js +80 -78
- package/dist/index39.js +3 -3
- package/dist/index41.js +8 -9
- package/dist/index43.js +58 -52
- package/dist/index45.js +6 -6
- 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/index71.js +38 -18
- package/dist/index75.js +10 -10
- package/dist/index77.js +21 -20
- package/dist/index81.js +1 -1
- 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/style.css +1 -1
- package/package.json +1 -1
- package/dist/index218.js +0 -18
- package/dist/index242.js +0 -371
- package/dist/index261.js +0 -4
- package/dist/index276.js +0 -4
- package/dist/index289.js +0 -11
- /package/dist/{index249.js → index245.js} +0 -0
package/dist/index33.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useOptions as
|
3
|
-
import
|
1
|
+
import { defineComponent as B, ref as f, toRef as l, openBlock as E, createBlock as $, unref as b, withCtx as t, renderSlot as i, normalizeProps as c, guardReactiveProps as m, createVNode as C, mergeProps as v, createSlots as w } from "vue";
|
2
|
+
import { useOptions as q } from "./index240.js";
|
3
|
+
import z from "./index31.js";
|
4
4
|
/* empty css */
|
5
|
-
import
|
5
|
+
import F from "./index241.js";
|
6
6
|
/* empty css */
|
7
|
-
const N = /* @__PURE__ */
|
7
|
+
const N = /* @__PURE__ */ B({
|
8
8
|
__name: "BaseRadioGroup",
|
9
9
|
props: {
|
10
10
|
ariaDescribedby: {},
|
@@ -31,50 +31,53 @@ const N = /* @__PURE__ */ L({
|
|
31
31
|
},
|
32
32
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
33
33
|
setup(h, { emit: y }) {
|
34
|
-
const
|
35
|
-
dependencies: l(
|
36
|
-
depsDebounceTime:
|
37
|
-
disabled: l(
|
38
|
-
emit:
|
39
|
-
enforceCoherence:
|
40
|
-
items: l(
|
41
|
-
itemText:
|
42
|
-
itemValue:
|
43
|
-
modelValue: l(
|
44
|
-
modelValueDebounceTime:
|
34
|
+
const o = h, n = y, p = f(), r = f(!1), { innerLoading: g, options: T } = q({
|
35
|
+
dependencies: l(o, "dependencies"),
|
36
|
+
depsDebounceTime: o.depsDebounceTime,
|
37
|
+
disabled: l(o, "disabled"),
|
38
|
+
emit: n,
|
39
|
+
enforceCoherence: o.enforceCoherence,
|
40
|
+
items: l(o, "items"),
|
41
|
+
itemText: o.itemText,
|
42
|
+
itemValue: o.itemValue,
|
43
|
+
modelValue: l(o, "modelValue"),
|
44
|
+
modelValueDebounceTime: o.modelValueDebounceTime,
|
45
45
|
multiple: !1,
|
46
46
|
prefill: !0,
|
47
47
|
queryDebounceTime: 0,
|
48
48
|
resetQueryOnOptionSelected: !1,
|
49
49
|
stash: !1
|
50
|
-
}), k = {
|
51
|
-
|
52
|
-
|
53
|
-
|
50
|
+
}), k = (e) => {
|
51
|
+
if (o.id)
|
52
|
+
return [o.id, e.valueHash].filter(Boolean).join("-");
|
53
|
+
}, V = {
|
54
|
+
onBlur: (e) => n("blur", e),
|
55
|
+
onChange: (e) => n("change", e),
|
56
|
+
onClick: (e) => n("click", e),
|
54
57
|
onFocus: (e) => {
|
55
|
-
|
58
|
+
n("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
|
56
59
|
},
|
57
|
-
onInput: (e) =>
|
58
|
-
onKeydown: (e) =>
|
59
|
-
onMousedown: (e) =>
|
60
|
-
onMouseup: (e) =>
|
61
|
-
"onUpdate:modelValue": (e) =>
|
60
|
+
onInput: (e) => n("input", e),
|
61
|
+
onKeydown: (e) => n("keydown", e),
|
62
|
+
onMousedown: (e) => n("mousedown", e),
|
63
|
+
onMouseup: (e) => n("mouseup", e),
|
64
|
+
"onUpdate:modelValue": (e) => n("update:modelValue", e)
|
62
65
|
}, d = (e) => {
|
63
66
|
var s;
|
64
|
-
e.target instanceof HTMLElement && ((s =
|
67
|
+
e.target instanceof HTMLElement && ((s = p.value) != null && s.contains(e.target) || (n("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
|
65
68
|
}, u = (e) => {
|
66
69
|
var s;
|
67
|
-
e.target instanceof HTMLElement && ((s =
|
70
|
+
e.target instanceof HTMLElement && ((s = p.value) != null && s.contains(e.target) || (n("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
|
68
71
|
};
|
69
|
-
return (e, s) => (
|
72
|
+
return (e, s) => (E(), $(F, {
|
70
73
|
class: "bb-base-radio-group",
|
71
74
|
direction: e.direction,
|
72
75
|
"has-errors": e.hasErrors,
|
73
76
|
"hide-label": e.hideLabel,
|
74
|
-
loading: !!
|
77
|
+
loading: !!b(g),
|
75
78
|
"loading-text": e.loadingText,
|
76
79
|
"no-data-text": e.noDataText,
|
77
|
-
options:
|
80
|
+
options: b(T)
|
78
81
|
}, {
|
79
82
|
prepend: t(() => [
|
80
83
|
i(e.$slots, "prepend")
|
@@ -85,41 +88,44 @@ const N = /* @__PURE__ */ L({
|
|
85
88
|
"no-data": t(() => [
|
86
89
|
i(e.$slots, "no-data")
|
87
90
|
]),
|
91
|
+
label: t((a) => [
|
92
|
+
i(e.$slots, "label", c(m(a)))
|
93
|
+
]),
|
88
94
|
"option:prepend": t((a) => [
|
89
|
-
i(e.$slots, "option:prepend",
|
95
|
+
i(e.$slots, "option:prepend", c(m(a)))
|
90
96
|
]),
|
91
|
-
input: t(({ option: a, index:
|
92
|
-
|
93
|
-
id:
|
97
|
+
input: t(({ option: a, index: D }) => [
|
98
|
+
C(z, v({
|
99
|
+
id: k(a),
|
94
100
|
"aria-describedby": e.ariaDescribedby,
|
95
|
-
autofocus: e.autofocus && !
|
101
|
+
autofocus: e.autofocus && !D,
|
96
102
|
checked: a.selected,
|
97
103
|
color: e.color,
|
98
104
|
disabled: a.disabled,
|
99
105
|
"has-errors": e.hasErrors,
|
100
|
-
"model-value":
|
106
|
+
"model-value": o.modelValue,
|
101
107
|
name: e.name,
|
102
108
|
readonly: e.readonly,
|
103
109
|
required: e.required,
|
104
110
|
value: a.value
|
105
|
-
},
|
111
|
+
}, V), w({ _: 2 }, [
|
106
112
|
e.$slots.icon ? {
|
107
113
|
name: "icon",
|
108
|
-
fn: t((
|
114
|
+
fn: t((L) => [
|
109
115
|
i(e.$slots, "icon", v({
|
110
116
|
item: a.item,
|
111
117
|
text: a.text
|
112
|
-
},
|
118
|
+
}, L))
|
113
119
|
]),
|
114
120
|
key: "0"
|
115
121
|
} : void 0
|
116
122
|
]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
|
117
123
|
]),
|
118
124
|
"option:append": t((a) => [
|
119
|
-
i(e.$slots, "option:
|
125
|
+
i(e.$slots, "option:append", c(m(a)))
|
120
126
|
]),
|
121
127
|
append: t(() => [
|
122
|
-
i(e.$slots, "
|
128
|
+
i(e.$slots, "append")
|
123
129
|
]),
|
124
130
|
_: 3
|
125
131
|
}, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
|
package/dist/index35.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
|
2
|
-
import { booleanishToBoolean as D } from "./
|
3
|
-
import { identity as F } from "./
|
4
|
-
import { isCssColor as v } from "./
|
2
|
+
import { booleanishToBoolean as D } from "./index228.js";
|
3
|
+
import { identity as F } from "./index212.js";
|
4
|
+
import { isCssColor as v } from "./index226.js";
|
5
5
|
import { isNotNil as T } from "./index134.js";
|
6
6
|
const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
|
7
7
|
__name: "BaseRating",
|
package/dist/index37.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as Fe, 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 d, withKeys as g, vModelDynamic as ze, renderList as Qe, mergeProps as Y, normalizeStyle as Ke, nextTick as _e } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as Ue } from "./index8.js";
|
@@ -6,28 +6,28 @@ 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 "./index134.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 "./index213.js";
|
10
|
+
import { matchAnyKey as j } from "./index245.js";
|
11
|
+
import { useFloating as je } from "./index206.js";
|
12
12
|
import { useIntersectionObserver as Ge } from "./index132.js";
|
13
|
-
import { useLogger as Xe } from "./
|
14
|
-
import { useOptions as Ze } from "./
|
13
|
+
import { useLogger as Xe } from "./index225.js";
|
14
|
+
import { useOptions as Ze } from "./index240.js";
|
15
15
|
import { wait as L } from "./index130.js";
|
16
|
-
import { when as et } from "./
|
17
|
-
import tt from "./
|
16
|
+
import { when as et } from "./index227.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 "./index217.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 "./index219.js";
|
24
|
+
import { waitFor as at } from "./index216.js";
|
25
|
+
import it from "./index221.js";
|
26
|
+
import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index222.js";
|
27
|
+
const dt = { class: "bb-base-select__input-container" }, ct = {
|
28
28
|
key: 1,
|
29
29
|
class: "bb-base-select__max-reached"
|
30
|
-
}, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */
|
30
|
+
}, ft = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], Pt = /* @__PURE__ */ Fe({
|
31
31
|
__name: "BaseSelect",
|
32
32
|
props: {
|
33
33
|
addOptions: { type: Boolean },
|
@@ -73,7 +73,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
73
73
|
const t = G, h = X;
|
74
74
|
if (t.multiple && !Array.isArray(t.modelValue))
|
75
75
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
76
|
-
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(
|
77
77
|
() => t.comma ? H.value : P.value
|
78
78
|
), { isMobile: ee } = We(), te = y(
|
79
79
|
() => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
|
@@ -100,44 +100,44 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
100
100
|
zIndex: "10"
|
101
101
|
};
|
102
102
|
return B.value && (e.width = `${(o = B.value) == null ? void 0 : o.$el.clientWidth}px`), e;
|
103
|
-
}), q = v(null),
|
103
|
+
}), q = v(null), x = () => {
|
104
104
|
q.value instanceof HTMLInputElement && q.value.focus();
|
105
105
|
}, le = async (e) => {
|
106
|
-
h("focus", e), Le(), document.addEventListener("click",
|
106
|
+
h("focus", e), Le(), document.addEventListener("click", k), document.addEventListener("focusin", k);
|
107
107
|
}, ae = () => {
|
108
108
|
t.prefill === "focus" && !Oe.value && !Ce.value && Be();
|
109
109
|
}, ie = async (e) => {
|
110
110
|
h("blur", e);
|
111
111
|
}, re = (e) => h("change", e), se = (e) => {
|
112
112
|
var o;
|
113
|
-
h("input", e), l.value === "" && (t.multiple ||
|
114
|
-
},
|
113
|
+
h("input", e), l.value === "" && (t.multiple || De(null)), (o = u.value) == null || o.blur(), E.value && O(), Ve();
|
114
|
+
}, k = async (e) => {
|
115
115
|
if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
|
116
|
-
C(), Ae(), document.removeEventListener("click",
|
116
|
+
C(), Ae(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await L(t.transitionDuration), be();
|
117
117
|
return;
|
118
118
|
}
|
119
119
|
}, w = y(() => !(t.readonly || t.disabled || I.value || !u.value && t.multiple)), ue = async () => {
|
120
120
|
var e, o, n;
|
121
|
-
w.value && ((e = u.value) == null || e.blur(),
|
121
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusPrevious() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
|
122
122
|
}, pe = async () => {
|
123
123
|
var e, o, n;
|
124
|
-
w.value && ((e = u.value) == null || e.blur(),
|
125
|
-
},
|
126
|
-
var n, s, m,
|
124
|
+
w.value && ((e = u.value) == null || e.blur(), c.value ? (o = a.value) == null || o.focusNext() : (await O(), await L(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
|
125
|
+
}, de = (e) => {
|
126
|
+
var n, s, m, D;
|
127
127
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
128
128
|
(s = u.value) == null || s.focusPrevious();
|
129
129
|
const o = (m = u.value) == null ? void 0 : m.getHighlighted();
|
130
|
-
o && ((
|
131
|
-
},
|
132
|
-
var n, s, m,
|
130
|
+
o && ((D = a.value) == null || D.focusByHash(o.valueHash));
|
131
|
+
}, ce = (e) => {
|
132
|
+
var n, s, m, D;
|
133
133
|
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !f.value.length)) return;
|
134
134
|
(s = u.value) == null || s.focusNext();
|
135
135
|
const o = (m = u.value) == null ? void 0 : m.getHighlighted();
|
136
|
-
o && ((
|
136
|
+
o && ((D = a.value) == null || D.focusByHash(o.valueHash));
|
137
137
|
}, fe = async () => {
|
138
138
|
var e, o;
|
139
139
|
if (w.value) {
|
140
|
-
if (!
|
140
|
+
if (!c.value)
|
141
141
|
await O(), await L(t.transitionDuration), f.value.length && ((e = a.value) == null || e.focusFirstSelected());
|
142
142
|
else if ((o = a.value) != null && o.getHighlighted())
|
143
143
|
a.value.confirmOption();
|
@@ -150,29 +150,29 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
150
150
|
return;
|
151
151
|
}
|
152
152
|
const n = l.value.trim();
|
153
|
-
if (
|
154
|
-
he(),
|
153
|
+
if (ke(n)) return;
|
154
|
+
he(), _(Ye(Ie.value));
|
155
155
|
}
|
156
156
|
}
|
157
157
|
}, me = async () => {
|
158
|
-
|
158
|
+
c.value && await C();
|
159
159
|
}, ve = async () => {
|
160
160
|
var e, o;
|
161
|
-
!w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await
|
161
|
+
!w.value || l.value || !f.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await _e(), (o = u.value) == null || o.focusPrevious());
|
162
162
|
}, ye = t.prefill === !0 || !t.multiple && Je(t.modelValue) || t.multiple && !!t.modelValue.length, {
|
163
163
|
query: l,
|
164
164
|
alignQueryToState: be,
|
165
165
|
addCurrentQueryToManualItems: he,
|
166
|
-
innerLoading:
|
167
|
-
options:
|
166
|
+
innerLoading: Q,
|
167
|
+
options: K,
|
168
168
|
selectedOptions: f,
|
169
169
|
selectOption: ge,
|
170
170
|
unselectOption: we,
|
171
171
|
prefillItems: Be,
|
172
172
|
isPrefilling: Oe,
|
173
173
|
hasPrefilled: Ce,
|
174
|
-
updateModelValue:
|
175
|
-
valueIsSelected:
|
174
|
+
updateModelValue: De,
|
175
|
+
valueIsSelected: ke,
|
176
176
|
manualItems: Ie,
|
177
177
|
searchByQuery: Ve
|
178
178
|
} = Ze({
|
@@ -192,35 +192,35 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
192
192
|
depsDebounceTime: t.depsDebounceTime,
|
193
193
|
queryDebounceTime: t.queryDebounceTime,
|
194
194
|
disabled: V(t, "disabled")
|
195
|
-
}), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(
|
195
|
+
}), Se = y(() => f.value.length ? "" : t.placeholder), I = y(() => !!(Q.value || t.loading)), $e = y(() => {
|
196
196
|
let e = [];
|
197
197
|
const o = f.value.some(
|
198
198
|
(s) => s.text === l.value
|
199
199
|
);
|
200
|
-
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e =
|
200
|
+
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = K.value.filter((s) => {
|
201
201
|
let m = !1;
|
202
202
|
return typeof t.filterBy == "function" ? m = t.filterBy(s.value, s.item) : Array.isArray(t.filterBy) && t.filterBy.length && (m = m || j(s.item, t.filterBy, l.value.trim())), m || j(s, ["text"], l.value.trim());
|
203
|
-
}) : e =
|
204
|
-
}),
|
205
|
-
ge(e),
|
203
|
+
}) : e = K.value, e;
|
204
|
+
}), _ = (e) => {
|
205
|
+
ge(e), x(), t.multiple || C();
|
206
206
|
}, U = (e) => {
|
207
|
-
we(e),
|
208
|
-
},
|
209
|
-
|
207
|
+
we(e), x();
|
208
|
+
}, c = v(!1), E = v(!0), F = v(!1), O = async () => {
|
209
|
+
F.value = !0, await at(() => !!a.value), E.value = !1, c.value = !0;
|
210
210
|
}, C = async () => {
|
211
211
|
var e;
|
212
|
-
|
213
|
-
}, Te = () =>
|
212
|
+
c.value = !1, E.value = !0, (e = u.value) == null || e.blur();
|
213
|
+
}, Te = () => c.value ? C() : O(), M = v(!1), Le = () => {
|
214
214
|
M.value = !0;
|
215
215
|
}, Ae = () => {
|
216
216
|
M.value = !1, h("inactive");
|
217
217
|
}, qe = (e) => {
|
218
|
-
e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (
|
219
|
-
},
|
218
|
+
e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (x(), Te());
|
219
|
+
}, xe = et(
|
220
220
|
(e) => typeof e != "string",
|
221
221
|
JSON.stringify
|
222
|
-
),
|
223
|
-
const o =
|
222
|
+
), Ee = y(() => [].concat(t.modelValue).map((e) => {
|
223
|
+
const o = xe(e);
|
224
224
|
return {
|
225
225
|
disabled: t.disabled,
|
226
226
|
name: t.name,
|
@@ -234,7 +234,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
234
234
|
class: W({
|
235
235
|
"bb-base-select": !0,
|
236
236
|
"bb-base-select--active": M.value,
|
237
|
-
"bb-base-select--shown":
|
237
|
+
"bb-base-select--shown": c.value,
|
238
238
|
"bb-base-select--loading": I.value,
|
239
239
|
"bb-base-select--disabled": e.disabled,
|
240
240
|
"bb-base-select--errors": e.hasErrors,
|
@@ -272,7 +272,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
272
272
|
default: r(() => [
|
273
273
|
N(i(Re), { tag: "span" }, {
|
274
274
|
default: r(() => [
|
275
|
-
$("span",
|
275
|
+
$("span", dt, [
|
276
276
|
e.multiple && i(f).length <= e.maxSelectedLabels ? (b(), T(R, { key: 0 }, [
|
277
277
|
e.comma ? (b(), S(ot, {
|
278
278
|
key: 0,
|
@@ -286,16 +286,16 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
286
286
|
options: i(f),
|
287
287
|
"onOption:unselected": U
|
288
288
|
}, null, 8, ["options"]))
|
289
|
-
], 64)) : e.multiple ? (b(), T("span",
|
289
|
+
], 64)) : e.multiple ? (b(), T("span", ct, Ne(i(f).length) + " elementi selezionati ", 1)) : J("", !0),
|
290
290
|
He($("input", {
|
291
291
|
id: i(z),
|
292
292
|
ref_key: "input",
|
293
293
|
ref: q,
|
294
294
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => Pe(l) ? l.value = n : null),
|
295
295
|
"aria-autocomplete": "list",
|
296
|
-
"aria-controls":
|
296
|
+
"aria-controls": F.value ? `${i(z)}_listbox` : void 0,
|
297
297
|
"aria-describedby": e.ariaDescribedby,
|
298
|
-
"aria-expanded":
|
298
|
+
"aria-expanded": c.value,
|
299
299
|
autocomplete: e.autocomplete,
|
300
300
|
autofocus: e.autofocus,
|
301
301
|
class: W("bb-base-select__text-input"),
|
@@ -307,19 +307,19 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
307
307
|
role: "combobox",
|
308
308
|
size: "1",
|
309
309
|
type: "text",
|
310
|
-
onBlur:
|
311
|
-
onChange:
|
312
|
-
onFocusOnce:
|
313
|
-
onFocus:
|
314
|
-
onInput:
|
310
|
+
onBlur: d(ie, ["stop"]),
|
311
|
+
onChange: d(re, ["stop"]),
|
312
|
+
onFocusOnce: d(ae, ["stop"]),
|
313
|
+
onFocus: d(le, ["stop"]),
|
314
|
+
onInput: d(se, ["stop"]),
|
315
315
|
onKeydown: [
|
316
|
-
g(
|
317
|
-
g(
|
318
|
-
g(
|
319
|
-
g(
|
320
|
-
g(
|
321
|
-
g(
|
322
|
-
g(
|
316
|
+
g(d(ve, ["stop"]), ["delete"]),
|
317
|
+
g(d(de, ["stop"]), ["left"]),
|
318
|
+
g(d(pe, ["stop", "prevent"]), ["down"]),
|
319
|
+
g(d(fe, ["stop", "prevent"]), ["enter"]),
|
320
|
+
g(d(me, ["stop", "prevent"]), ["esc"]),
|
321
|
+
g(d(ue, ["stop", "prevent"]), ["up"]),
|
322
|
+
g(d(ce, ["stop"]), ["right"])
|
323
323
|
]
|
324
324
|
}, null, 40, ft), [
|
325
325
|
[ze, i(l)]
|
@@ -329,8 +329,8 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
329
329
|
_: 1
|
330
330
|
}),
|
331
331
|
p(e.$slots, "chevron", {
|
332
|
-
loading: !!i(
|
333
|
-
shown:
|
332
|
+
loading: !!i(Q),
|
333
|
+
shown: c.value
|
334
334
|
}, () => [
|
335
335
|
o[1] || (o[1] = $("svg", {
|
336
336
|
class: "bb-base-select__chevron",
|
@@ -346,21 +346,23 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
346
346
|
]),
|
347
347
|
_: 3
|
348
348
|
}, 8, ["append:icon", "prepend:icon"]),
|
349
|
-
(b(!0), T(R, null,
|
349
|
+
(b(!0), T(R, null, Qe(Ee.value, (n) => (b(), T("input", Y({
|
350
350
|
key: n.value,
|
351
351
|
ref_for: !0
|
352
352
|
}, n), null, 16))), 128)),
|
353
|
-
|
353
|
+
F.value ? (b(), S(it, { key: 0 }, {
|
354
354
|
default: r(() => [
|
355
355
|
N(i(Z), {
|
356
356
|
ref_key: "optionsContainer",
|
357
357
|
ref: a,
|
358
358
|
compact: e.compact,
|
359
359
|
loading: I.value,
|
360
|
-
|
360
|
+
"loading-text": e.loadingText,
|
361
|
+
"no-data-text": e.noDataText,
|
362
|
+
open: c.value,
|
361
363
|
options: $e.value,
|
362
|
-
style:
|
363
|
-
"onOption:selected":
|
364
|
+
style: Ke(ne.value),
|
365
|
+
"onOption:selected": _,
|
364
366
|
"onOption:unselected": U
|
365
367
|
}, {
|
366
368
|
"options:prepend": r(() => [
|
@@ -382,7 +384,7 @@ const ct = { class: "bb-base-select__input-container" }, dt = {
|
|
382
384
|
}, n))
|
383
385
|
]),
|
384
386
|
_: 3
|
385
|
-
}, 8, ["compact", "loading", "open", "options", "style"])
|
387
|
+
}, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
|
386
388
|
]),
|
387
389
|
_: 3
|
388
390
|
})) : 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 "./
|
2
|
+
import { clamp as le } from "./index229.js";
|
3
3
|
import { head as O } from "./index250.js";
|
4
|
-
import { isCssColor as Y } from "./
|
4
|
+
import { isCssColor as Y } from "./index226.js";
|
5
5
|
import { isNil as P } from "./index251.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./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,7 +1,7 @@
|
|
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
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as
|
4
|
-
const
|
1
|
+
import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
+
import { isCssColor as b } from "./index226.js";
|
3
|
+
import { when as N } from "./index227.js";
|
4
|
+
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
7
7
|
ariaDescribedby: {},
|
@@ -34,7 +34,7 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
|
34
34
|
}
|
35
35
|
};
|
36
36
|
return e.color && b(e.color) && (a.style = `--color: ${e.color}`), a;
|
37
|
-
}), m =
|
37
|
+
}), m = N(
|
38
38
|
(a) => typeof a != "string",
|
39
39
|
JSON.stringify
|
40
40
|
), g = n(() => {
|
@@ -91,7 +91,6 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
|
91
91
|
name: e.name,
|
92
92
|
parsedValue: p.value.value,
|
93
93
|
readonly: e.readonly,
|
94
|
-
required: e.required,
|
95
94
|
trueValue: e.trueValue,
|
96
95
|
value: s.value ? e.trueValue : e.falseValue
|
97
96
|
})), _ = n(() => {
|
@@ -107,13 +106,13 @@ const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
|
107
106
|
u.value && (u.value.indeterminate = !!e.indeterminate);
|
108
107
|
}
|
109
108
|
), (a, c) => (h(), y("span", r(d(w.value)), [
|
110
|
-
!s.value && a.submitWhenFalse ? (h(), y("input", r(V({ key: 0 }, g.value)), null, 16)) :
|
109
|
+
!s.value && a.submitWhenFalse ? (h(), y("input", r(V({ key: 0 }, g.value)), null, 16)) : A("", !0),
|
111
110
|
l("input", V(p.value, {
|
112
111
|
ref_key: "checkboxInput",
|
113
112
|
ref: u
|
114
113
|
}), null, 16),
|
115
|
-
l("span",
|
116
|
-
|
114
|
+
l("span", x, [
|
115
|
+
F(a.$slots, "icon", r(d(B.value)), () => [
|
117
116
|
l("span", r(d(_.value)), c[0] || (c[0] = [
|
118
117
|
l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1)
|
119
118
|
]), 16)
|