bitboss-ui 2.1.3 → 2.1.5
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/BaseSlider/BaseSlider.vue.d.ts +5 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +12 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +12 -0
- package/dist/index.css +1 -1
- package/dist/index100.js +33 -28
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index117.js +35 -30
- package/dist/index121.js +12 -12
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index136.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index138.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index206.js +138 -2
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -138
- package/dist/index209.js +5 -13
- package/dist/index21.js +16 -16
- package/dist/index210.js +5 -13
- package/dist/index211.js +5 -11
- package/dist/index212.js +5 -86
- package/dist/index213.js +7 -0
- package/dist/index214.js +5 -29
- package/dist/index215.js +5 -17
- package/dist/index216.js +3 -51
- package/dist/index217.js +2 -15
- package/dist/index218.js +8 -3
- package/dist/index219.js +250 -12
- package/dist/index220.js +52 -16
- package/dist/index221.js +44 -2
- package/dist/index222.js +5 -106
- package/dist/index224.js +12 -99
- package/dist/index225.js +88 -0
- package/dist/index227.js +31 -0
- package/dist/index228.js +17 -13
- package/dist/index229.js +51 -2
- package/dist/index23.js +15 -15
- package/dist/index230.js +15 -5
- package/dist/index231.js +12 -5
- package/dist/index232.js +16 -5
- package/dist/index233.js +2 -5
- package/dist/index234.js +2 -5
- package/dist/index235.js +2 -5
- package/dist/index236.js +4 -2
- package/dist/index237.js +105 -19
- package/dist/index239.js +102 -0
- package/dist/index241.js +66 -4
- package/dist/index243.js +13 -34
- package/dist/index244.js +2 -2
- package/dist/index245.js +2 -2
- package/dist/index246.js +2 -7
- package/dist/index247.js +7 -7
- package/dist/index248.js +7 -3
- package/dist/index249.js +13 -4
- package/dist/index25.js +3 -3
- package/dist/index250.js +10 -196
- package/dist/index251.js +5 -0
- package/dist/index252.js +5 -5
- package/dist/index253.js +20 -5
- package/dist/index254.js +111 -6
- package/dist/index256.js +175 -50
- package/dist/index257.js +4 -44
- package/dist/index258.js +197 -5
- package/dist/index260.js +9 -17
- package/dist/index261.js +2 -11
- package/dist/index262.js +33 -5
- package/dist/index263.js +17 -227
- package/dist/index264.js +11 -9
- package/dist/index265.js +6 -3
- package/dist/index266.js +226 -175
- package/dist/index269.js +6 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +16 -6
- package/dist/index271.js +9 -16
- package/dist/index272.js +3 -9
- package/dist/index273.js +9 -2
- package/dist/index274.js +8 -9
- package/dist/index275.js +2 -8
- package/dist/index276.js +1 -1
- package/dist/index278.js +279 -4
- package/dist/index279.js +2 -8
- package/dist/index280.js +16 -3
- package/dist/index281.js +2 -17
- package/dist/index282.js +15 -27
- package/dist/index283.js +2 -7
- package/dist/index284.js +18 -10
- package/dist/index285.js +2 -3
- package/dist/index286.js +15 -3
- package/dist/index287.js +2 -3
- package/dist/{index309.js → index288.js} +1 -1
- package/dist/index289.js +2 -7
- package/dist/index29.js +4 -4
- package/dist/index290.js +26 -3
- package/dist/index291.js +2 -280
- package/dist/index292.js +2 -2
- package/dist/index293.js +2 -125
- package/dist/index294.js +2 -2
- package/dist/index295.js +2 -15
- package/dist/index296.js +28 -2
- package/dist/index297.js +22 -16
- package/dist/index299.js +7 -16
- package/dist/index300.js +7 -2
- package/dist/index301.js +10 -18
- package/dist/index302.js +3 -2
- package/dist/index303.js +17 -3
- package/dist/index304.js +6 -2
- package/dist/index306.js +3 -6
- package/dist/index307.js +3 -5
- package/dist/index308.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -2
- package/dist/index311.js +120 -22
- package/dist/index312.js +2 -2
- package/dist/index313.js +3 -2
- package/dist/index314.js +3 -2
- package/dist/index315.js +1 -1
- package/dist/index316.js +1 -1
- package/dist/index317.js +701 -22
- package/dist/index318.js +356 -0
- package/dist/index319.js +58 -2
- package/dist/index320.js +5 -5
- package/dist/index321.js +8 -701
- package/dist/index322.js +5 -354
- package/dist/index323.js +3 -57
- package/dist/index325.js +7 -58
- package/dist/index326.js +18 -57
- package/dist/index328.js +32 -227
- package/dist/index329.js +27 -128
- package/dist/index33.js +8 -8
- package/dist/index331.js +57 -32
- package/dist/index332.js +57 -27
- package/dist/index333.js +131 -0
- package/dist/index334.js +366 -44
- package/dist/index335.js +227 -7
- package/dist/index336.js +7 -5
- package/dist/index337.js +6 -8
- package/dist/index338.js +8 -7
- package/dist/index339.js +45 -17
- package/dist/index340.js +1 -1
- package/dist/index342.js +5 -0
- package/dist/index343.js +129 -3
- package/dist/index35.js +4 -4
- package/dist/index37.js +20 -20
- package/dist/index39.js +78 -70
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index65.js +30 -25
- package/dist/index67.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/package.json +2 -2
- package/dist/index226.js +0 -68
- package/dist/index238.js +0 -115
- package/dist/index240.js +0 -4
- package/dist/index242.js +0 -4
- package/dist/index255.js +0 -252
- package/dist/index298.js +0 -4
- package/dist/index330.js +0 -371
- package/dist/index341.js +0 -131
- /package/dist/{index259.js → index223.js} +0 -0
package/dist/index39.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { head as
|
3
|
-
import { isCssColor as Y } from "./
|
4
|
-
import { isNil as S } from "./
|
5
|
-
import { getAsPercentageBetween as T, getAsPercentage as
|
6
|
-
import { hash as j } from "./
|
7
|
-
import { snapToStep as
|
8
|
-
import { last as
|
9
|
-
import { transpose as J } from "./
|
10
|
-
import { clamp as
|
11
|
-
const
|
1
|
+
import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
|
2
|
+
import { head as de } from "./index245.js";
|
3
|
+
import { isCssColor as Y } from "./index235.js";
|
4
|
+
import { isNil as S } from "./index246.js";
|
5
|
+
import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
|
6
|
+
import { hash as j } from "./index216.js";
|
7
|
+
import { snapToStep as ce } from "./index247.js";
|
8
|
+
import { last as be } from "./index217.js";
|
9
|
+
import { transpose as J } from "./index248.js";
|
10
|
+
import { clamp as f } from "./index207.js";
|
11
|
+
const ve = { class: "bb-base-slider__slider-container" }, fe = {
|
12
12
|
key: 0,
|
13
13
|
class: "bb-base-slider__ticks-container"
|
14
|
-
},
|
14
|
+
}, pe = ["id", "disabled", "name", "readonly", "required", "value"], he = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], ye = ["aria-describedby", "aria-readonly", "aria-valuemax", "aria-valuemin", "aria-valuenow", "tabindex"], Ne = /* @__PURE__ */ te({
|
15
15
|
__name: "BaseSlider",
|
16
16
|
props: {
|
17
17
|
ariaDescribedby: {},
|
@@ -21,6 +21,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
21
21
|
hasErrors: { type: Boolean },
|
22
22
|
id: {},
|
23
23
|
max: { default: 100 },
|
24
|
+
maxPrecision: { default: 2 },
|
24
25
|
min: { default: 0 },
|
25
26
|
modelValue: { default: 0 },
|
26
27
|
name: {},
|
@@ -36,29 +37,29 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
36
37
|
const a = K, s = Q;
|
37
38
|
if (a.min < Number.MIN_SAFE_INTEGER || a.max > Number.MAX_SAFE_INTEGER)
|
38
39
|
throw new Error("BaseSlider min or max is too large");
|
39
|
-
const
|
40
|
+
const C = d(), V = d(), b = d(), u = d(), n = d(0), l = d(0), E = p(() => Array.isArray(a.modelValue) ? de(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), _ = p(() => Array.isArray(a.modelValue) ? be(a.modelValue) ?? void 0 : S(a.modelValue) ? void 0 : Number(a.modelValue)), A = p(() => [n.value, l.value].sort(
|
40
41
|
(e, r) => e - r
|
41
42
|
)), $ = d(!1);
|
42
43
|
if (a.range && !Array.isArray(a.modelValue))
|
43
44
|
throw new TypeError(
|
44
45
|
"BaseSlider mode is set as range but modelValue is not an array"
|
45
46
|
);
|
46
|
-
|
47
|
+
le(() => {
|
47
48
|
var e;
|
48
49
|
a.autofocus && ((e = u.value) == null || e.focus());
|
49
50
|
});
|
50
|
-
let
|
51
|
-
const
|
51
|
+
let P = d(!1), o = d(null);
|
52
|
+
const F = (e) => {
|
52
53
|
if (u.value && u.value.contains(e.target))
|
53
54
|
return "higher";
|
54
55
|
if (b.value && b.value.contains(e.target))
|
55
56
|
return "lower";
|
56
57
|
throw new Error("Could not identify target thumb");
|
57
58
|
}, U = (e) => {
|
58
|
-
a.disabled || a.readonly || (o.value || (o.value =
|
59
|
+
a.disabled || a.readonly || (o.value || (o.value = F(e)), P.value = !0, document.addEventListener("pointermove", B), document.addEventListener("pointerup", z), s("pointerdown", e));
|
59
60
|
};
|
60
|
-
let
|
61
|
-
const
|
61
|
+
let I = p(() => P.value ? {} : { onPointerdown: U });
|
62
|
+
const B = (e) => {
|
62
63
|
if (!(a.disabled || a.readonly) && V.value) {
|
63
64
|
e instanceof PointerEvent ? s("pointermove", e) : s("click", e);
|
64
65
|
const r = V.value.getBoundingClientRect(), t = e.clientX, i = r.left, h = r.width;
|
@@ -69,35 +70,42 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
69
70
|
a.min,
|
70
71
|
a.max
|
71
72
|
);
|
72
|
-
const ae =
|
73
|
+
const ae = ce(
|
73
74
|
ee,
|
74
75
|
a.min,
|
75
76
|
a.max,
|
76
77
|
a.step
|
77
|
-
),
|
78
|
+
), re = T(
|
78
79
|
ae,
|
79
80
|
a.min,
|
80
81
|
a.max
|
81
|
-
);
|
82
|
+
), M = f(re, 0, 100);
|
82
83
|
o.value === "higher" ? l.value = M : o.value === "lower" && (n.value = M), s("update:modelValue", N());
|
83
84
|
}
|
84
|
-
}, N = () =>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
85
|
+
}, N = () => {
|
86
|
+
if (a.range)
|
87
|
+
return [
|
88
|
+
x(
|
89
|
+
n.value,
|
90
|
+
a.min,
|
91
|
+
a.max
|
92
|
+
),
|
93
|
+
x(
|
94
|
+
l.value,
|
95
|
+
a.min,
|
96
|
+
a.max
|
97
|
+
)
|
98
|
+
].sort((e, r) => e - r).map((e) => Number(e.toFixed(a.maxPrecision)));
|
99
|
+
{
|
100
|
+
const e = x(
|
101
|
+
l.value,
|
102
|
+
a.min,
|
103
|
+
a.max
|
104
|
+
);
|
105
|
+
return Number(e.toFixed(a.maxPrecision));
|
106
|
+
}
|
107
|
+
};
|
108
|
+
oe(
|
101
109
|
() => a.modelValue,
|
102
110
|
(e) => {
|
103
111
|
if (a.range) {
|
@@ -108,44 +116,44 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
108
116
|
return;
|
109
117
|
}
|
110
118
|
const t = [...e].sort((i, h) => i - h).map(
|
111
|
-
(i) =>
|
119
|
+
(i) => f(T(i, a.min, a.max), 0, 100)
|
112
120
|
);
|
113
121
|
n.value > l.value ? (n.value = t[1], l.value = t[0]) : (n.value = t[0], l.value = t[1]);
|
114
122
|
} else {
|
115
123
|
let r = e ?? a.min;
|
116
|
-
const t = J(r, a.min, a.max, 0, 100), i =
|
124
|
+
const t = J(r, a.min, a.max, 0, 100), i = f(t, 0, 100);
|
117
125
|
l.value = i;
|
118
126
|
}
|
119
127
|
},
|
120
128
|
{ immediate: !0 }
|
121
129
|
);
|
122
|
-
const
|
123
|
-
|
124
|
-
}, w =
|
125
|
-
s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value =
|
130
|
+
const z = (e) => {
|
131
|
+
P.value = !1, o.value = null, document.removeEventListener("pointermove", B), document.removeEventListener("pointerup", z), s("pointerup", e);
|
132
|
+
}, w = me(a.step, a.max - a.min), R = (e) => {
|
133
|
+
s("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
|
126
134
|
l.value - w,
|
127
135
|
0,
|
128
136
|
100
|
129
|
-
) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value =
|
137
|
+
) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
|
130
138
|
n.value - w,
|
131
139
|
0,
|
132
140
|
100
|
133
|
-
)) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value =
|
141
|
+
)) : e.key === "ArrowRight" && (o.value === "higher" || document.activeElement === u.value || e.target === u.value ? l.value = f(
|
134
142
|
l.value + w,
|
135
143
|
0,
|
136
144
|
100
|
137
|
-
) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value =
|
145
|
+
) : (o.value === "lower" || document.activeElement === b.value || e.target === b.value) && (n.value = f(
|
138
146
|
n.value + w,
|
139
147
|
0,
|
140
148
|
100
|
141
149
|
))), s("update:modelValue", N()));
|
142
|
-
},
|
150
|
+
}, X = (e) => {
|
143
151
|
s("focus", e);
|
144
|
-
const r =
|
152
|
+
const r = F(e);
|
145
153
|
r && (o.value = r), $.value || ($.value = !0, s("active"), document.addEventListener("focusin", k), document.addEventListener("click", k));
|
146
154
|
}, k = (e) => {
|
147
155
|
var r;
|
148
|
-
e.target instanceof HTMLElement && ((r =
|
156
|
+
e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || ($.value = !1, o.value = null, s("inactive"), document.removeEventListener("focusin", k), document.removeEventListener("click", k)));
|
149
157
|
}, q = {
|
150
158
|
class: {
|
151
159
|
"bb-base-slider": !0,
|
@@ -157,14 +165,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
157
165
|
onClick: (e) => {
|
158
166
|
var t;
|
159
167
|
if (a.range) return;
|
160
|
-
(t = u.value) == null || t.focus(),
|
168
|
+
(t = u.value) == null || t.focus(), B(e);
|
161
169
|
const r = N();
|
162
170
|
j(r), j(a.modelValue);
|
163
171
|
},
|
164
172
|
style: {}
|
165
173
|
};
|
166
174
|
a.color && Y(a.color) && (q.style["--color"] = a.color);
|
167
|
-
const W =
|
175
|
+
const W = p(() => {
|
168
176
|
const e = "bb-base-slider__track-background", r = {
|
169
177
|
width: `${A.value[1] - A.value[0]}%`,
|
170
178
|
left: `${A.value[0]}%`
|
@@ -173,7 +181,7 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
173
181
|
class: e,
|
174
182
|
style: r
|
175
183
|
};
|
176
|
-
}), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D =
|
184
|
+
}), Z = (e) => S(a.modelValue) ? !1 : Array.isArray(a.modelValue) ? a.modelValue.length === 0 ? !1 : a.modelValue[0] <= e && a.modelValue[1] >= e : e <= Number(a.modelValue), D = p(() => {
|
177
185
|
if (!a.ticks) return [];
|
178
186
|
let e = [], r = a.min;
|
179
187
|
for (; r <= a.max; ) {
|
@@ -187,14 +195,14 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
187
195
|
}
|
188
196
|
return e;
|
189
197
|
});
|
190
|
-
return (e, r) => (g(), y("span",
|
198
|
+
return (e, r) => (g(), y("span", L(q, {
|
191
199
|
ref_key: "container",
|
192
|
-
ref:
|
200
|
+
ref: C
|
193
201
|
}), [
|
194
202
|
v(e.$slots, "prepend"),
|
195
|
-
m("span",
|
196
|
-
D.value.length ? (g(), y("span",
|
197
|
-
(g(!0), y(
|
203
|
+
m("span", ve, [
|
204
|
+
D.value.length ? (g(), y("span", fe, [
|
205
|
+
(g(!0), y(ne, null, se(D.value, (t) => (g(), y("span", {
|
198
206
|
key: t.value,
|
199
207
|
class: "bb-base-slider__tick"
|
200
208
|
}, [
|
@@ -215,16 +223,16 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
215
223
|
tabindex: -1,
|
216
224
|
type: "text",
|
217
225
|
value: JSON.stringify(e.modelValue)
|
218
|
-
}, null, 8,
|
226
|
+
}, null, 8, pe),
|
219
227
|
m("span", {
|
220
228
|
ref_key: "track",
|
221
229
|
ref: V,
|
222
230
|
class: "bb-base-slider__track-container"
|
223
231
|
}, [
|
224
232
|
r[0] || (r[0] = m("span", { class: "bb-base-slider__track-fill" }, null, -1)),
|
225
|
-
m("span",
|
233
|
+
m("span", ie(ue(W.value)), null, 16)
|
226
234
|
], 512),
|
227
|
-
a.range ? (g(), y("span",
|
235
|
+
a.range ? (g(), y("span", L({ key: 1 }, c(I), {
|
228
236
|
key: "thumblower",
|
229
237
|
ref_key: "thumblower",
|
230
238
|
ref: b,
|
@@ -239,8 +247,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
239
247
|
role: "slider",
|
240
248
|
style: { left: `${n.value}%` },
|
241
249
|
tabindex: e.disabled ? -1 : 0,
|
242
|
-
onFocus:
|
243
|
-
onKeydown:
|
250
|
+
onFocus: X,
|
251
|
+
onKeydown: R
|
244
252
|
}), [
|
245
253
|
m("span", {
|
246
254
|
class: O({
|
@@ -265,8 +273,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
265
273
|
})
|
266
274
|
])
|
267
275
|
], 6)
|
268
|
-
], 16,
|
269
|
-
m("span",
|
276
|
+
], 16, he)) : H("", !0),
|
277
|
+
m("span", L(c(I), {
|
270
278
|
key: "thumbhigher",
|
271
279
|
ref_key: "thumbhigher",
|
272
280
|
ref: u,
|
@@ -281,8 +289,8 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
281
289
|
role: "slider",
|
282
290
|
style: { left: `${l.value}%` },
|
283
291
|
tabindex: e.disabled ? -1 : 0,
|
284
|
-
onFocus:
|
285
|
-
onKeydown:
|
292
|
+
onFocus: X,
|
293
|
+
onKeydown: R
|
286
294
|
}), [
|
287
295
|
m("span", {
|
288
296
|
class: O({
|
@@ -307,12 +315,12 @@ const be = { class: "bb-base-slider__slider-container" }, ve = {
|
|
307
315
|
})
|
308
316
|
])
|
309
317
|
], 6)
|
310
|
-
], 16,
|
318
|
+
], 16, ye)
|
311
319
|
]),
|
312
320
|
v(e.$slots, "append")
|
313
321
|
], 16));
|
314
322
|
}
|
315
323
|
});
|
316
324
|
export {
|
317
|
-
|
325
|
+
Ne as default
|
318
326
|
};
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index235.js";
|
3
|
+
import { when as N } from "./index236.js";
|
4
4
|
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index225.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index227.js";
|
7
|
+
import { useIndexById as T } from "./index228.js";
|
8
|
+
import { useBaseOptions as q } from "./index229.js";
|
9
|
+
import { useCoherence as J } from "./index230.js";
|
10
|
+
import { hash as Q } from "./index216.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index231.js";
|
12
|
+
import { usePrefill as X } from "./index232.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index111.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index217.js";
|
7
|
+
import { useBaseOptions as ne } from "./index229.js";
|
8
|
+
import { useIndexById as re } from "./index228.js";
|
9
|
+
import ie from "./index237.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index239.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index241.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index243.js";
|
16
|
+
import { isEmpty as pe } from "./index244.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index243.js";
|
3
|
+
import G from "./index241.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index111.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
|
2
|
-
import E from "./
|
2
|
+
import E from "./index241.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
4
|
+
import I from "./index243.js";
|
5
5
|
import { isNotNil as N } from "./index140.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index256.js";
|
7
7
|
const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseTextInput",
|
9
9
|
props: {
|
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index235.js";
|
3
3
|
import { wait as C } from "./index135.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index235.js";
|
3
|
+
import { isNil as B } from "./index246.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index260.js";
|
11
|
+
import { noop as w } from "./index261.js";
|
12
|
+
import { useLocale as D } from "./index224.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index65.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as f, ref as
|
1
|
+
import { defineComponent as f, ref as g, computed as v, createBlock as y, openBlock as B, withCtx as i, createVNode as $, mergeProps as w, renderSlot as a, normalizeProps as l, guardReactiveProps as t } from "vue";
|
2
2
|
import T from "./index19.js";
|
3
3
|
/* empty css */
|
4
4
|
import V from "./index27.js";
|
@@ -11,6 +11,7 @@ const E = /* @__PURE__ */ f({
|
|
11
11
|
compact: { type: Boolean },
|
12
12
|
dependencies: {},
|
13
13
|
depsDebounceTime: {},
|
14
|
+
direction: {},
|
14
15
|
disabled: { type: Boolean },
|
15
16
|
enforceCoherence: { type: Boolean },
|
16
17
|
errors: {},
|
@@ -20,9 +21,11 @@ const E = /* @__PURE__ */ f({
|
|
20
21
|
hint: {},
|
21
22
|
id: {},
|
22
23
|
inputDirection: {},
|
24
|
+
inputPosition: { default: "left" },
|
23
25
|
items: {},
|
24
26
|
itemText: {},
|
25
27
|
itemValue: {},
|
28
|
+
labelPosition: {},
|
26
29
|
legend: {},
|
27
30
|
loadingText: {},
|
28
31
|
max: {},
|
@@ -36,7 +39,7 @@ const E = /* @__PURE__ */ f({
|
|
36
39
|
},
|
37
40
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
38
41
|
setup(d, { emit: p }) {
|
39
|
-
const
|
42
|
+
const u = d, n = p, s = g(!1), m = v(() => u.persistentHint || s.value), c = {
|
40
43
|
onBlur: (e) => n("blur", e),
|
41
44
|
onChange: (e) => n("change", e),
|
42
45
|
onClick: (e) => n("click", e),
|
@@ -56,24 +59,26 @@ const E = /* @__PURE__ */ f({
|
|
56
59
|
id: e.id,
|
57
60
|
class: "bb-checkbox-group",
|
58
61
|
compact: e.compact,
|
59
|
-
direction:
|
62
|
+
direction: e.direction,
|
60
63
|
errors: e.errors,
|
61
64
|
"has-errors": e.hasErrors,
|
62
65
|
"hide-label": e.hideLegend,
|
63
66
|
hint: e.hint,
|
67
|
+
"input-position": e.inputPosition,
|
64
68
|
label: e.legend,
|
69
|
+
"label-position": e.labelPosition,
|
65
70
|
"label-tag": "legend",
|
66
71
|
name: e.name,
|
67
72
|
reverse: e.reverse,
|
68
|
-
"show-hint":
|
73
|
+
"show-hint": m.value,
|
69
74
|
tag: "fieldset"
|
70
75
|
}, {
|
71
|
-
label:
|
72
|
-
|
76
|
+
label: i((r) => [
|
77
|
+
a(e.$slots, "legend", l(t(r)))
|
73
78
|
]),
|
74
|
-
input:
|
79
|
+
input: i(({ id: r, hasErrors: b, ariaDescribedby: h }) => [
|
75
80
|
$(T, w({
|
76
|
-
id:
|
81
|
+
id: r,
|
77
82
|
"aria-describedby": h,
|
78
83
|
autofocus: e.autofocus,
|
79
84
|
color: e.color,
|
@@ -95,35 +100,35 @@ const E = /* @__PURE__ */ f({
|
|
95
100
|
"no-data-text": e.noDataText,
|
96
101
|
readonly: e.readonly
|
97
102
|
}, c), {
|
98
|
-
prepend:
|
99
|
-
|
103
|
+
prepend: i((o) => [
|
104
|
+
a(e.$slots, "prepend", l(t(o)))
|
100
105
|
]),
|
101
|
-
loading:
|
102
|
-
|
106
|
+
loading: i((o) => [
|
107
|
+
a(e.$slots, "loading", l(t(o)))
|
103
108
|
]),
|
104
|
-
"no-data":
|
105
|
-
|
109
|
+
"no-data": i((o) => [
|
110
|
+
a(e.$slots, "no-data", l(t(o)))
|
106
111
|
]),
|
107
|
-
"option:prepend":
|
108
|
-
|
112
|
+
"option:prepend": i((o) => [
|
113
|
+
a(e.$slots, "option:prepend", l(t(o)))
|
109
114
|
]),
|
110
|
-
icon:
|
111
|
-
|
115
|
+
icon: i((o) => [
|
116
|
+
a(e.$slots, "icon", l(t(o)))
|
112
117
|
]),
|
113
|
-
label:
|
114
|
-
|
118
|
+
label: i((o) => [
|
119
|
+
a(e.$slots, "label", l(t(o)))
|
115
120
|
]),
|
116
|
-
"option:append":
|
117
|
-
|
121
|
+
"option:append": i((o) => [
|
122
|
+
a(e.$slots, "option:append", l(t(o)))
|
118
123
|
]),
|
119
|
-
append:
|
120
|
-
|
124
|
+
append: i((o) => [
|
125
|
+
a(e.$slots, "append", l(t(o)))
|
121
126
|
]),
|
122
127
|
_: 2
|
123
128
|
}, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "max", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
|
124
129
|
]),
|
125
130
|
_: 3
|
126
|
-
}, 8, ["id", "compact", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
|
131
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
|
127
132
|
}
|
128
133
|
});
|
129
134
|
export {
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index224.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
2
|
import { findRightIndex as T } from "./index267.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index250.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index254.js";
|
11
11
|
/* empty css */
|
12
12
|
import K from "./index268.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index224.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index270.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index269.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index235.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index272.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|