bitboss-ui 2.0.174 → 2.0.175
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/index106.js +7 -7
- package/dist/index113.js +1 -1
- package/dist/index121.js +9 -9
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index133.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +86 -2
- package/dist/index21.js +16 -16
- package/dist/index211.js +29 -2
- package/dist/index212.js +17 -13
- package/dist/index213.js +50 -65
- package/dist/index214.js +17 -0
- package/dist/index215.js +3 -34
- package/dist/index216.js +12 -4
- package/dist/index217.js +16 -13
- package/dist/index218.js +2 -11
- package/dist/index219.js +2 -20
- package/dist/index220.js +16 -198
- package/dist/index221.js +14 -0
- package/dist/index222.js +12 -119
- package/dist/index223.js +8 -0
- package/dist/index224.js +4 -2
- package/dist/index225.js +106 -2
- package/dist/index227.js +100 -5
- package/dist/index229.js +66 -5
- package/dist/index23.js +15 -15
- package/dist/index231.js +13 -5
- package/dist/index232.js +120 -5
- package/dist/index234.js +228 -2
- package/dist/index235.js +2 -2
- package/dist/index236.js +2 -51
- package/dist/index237.js +2 -17
- package/dist/index238.js +41 -106
- package/dist/index239.js +9 -0
- package/dist/index240.js +11 -96
- package/dist/index241.js +12 -0
- package/dist/index242.js +3 -86
- package/dist/index243.js +5 -0
- package/dist/index244.js +33 -28
- package/dist/index245.js +176 -15
- package/dist/index246.js +5 -15
- package/dist/index247.js +5 -12
- package/dist/index248.js +5 -41
- package/dist/index249.js +5 -6
- package/dist/index25.js +5 -5
- package/dist/index250.js +5 -7
- package/dist/index251.js +5 -15
- package/dist/index252.js +5 -177
- package/dist/index253.js +8 -5
- package/dist/index254.js +250 -5
- package/dist/index255.js +50 -6
- package/dist/index256.js +36 -242
- package/dist/index257.js +5 -52
- package/dist/index258.js +47 -31
- package/dist/index259.js +4 -5
- package/dist/index260.js +11 -60
- package/dist/index261.js +18 -16
- package/dist/index262.js +200 -12
- package/dist/index264.js +5 -3
- package/dist/index265.js +2 -6
- package/dist/index266.js +2 -16
- package/dist/index267.js +6 -10
- package/dist/index268.js +16 -3
- package/dist/index269.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -9
- package/dist/index271.js +23 -9
- package/dist/index272.js +9 -23
- package/dist/index273.js +1 -1
- package/dist/index275.js +67 -5
- package/dist/index276.js +5 -67
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +3 -4
- package/dist/index281.js +19 -0
- package/dist/index282.js +28 -7
- package/dist/index283.js +471 -3
- package/dist/index284.js +1 -1
- package/dist/index285.js +7 -3
- package/dist/index286.js +11 -3
- package/dist/index287.js +3 -6
- package/dist/index288.js +3 -10
- package/dist/index289.js +5 -4
- package/dist/index29.js +2 -2
- package/dist/index290.js +197 -25
- package/dist/index291.js +3 -280
- package/dist/index292.js +3 -2
- package/dist/index293.js +3 -125
- package/dist/index295.js +7 -15
- package/dist/index296.js +3 -2
- package/dist/index297.js +2 -16
- package/dist/index298.js +3 -2
- package/dist/index299.js +277 -13
- package/dist/index300.js +2 -2
- package/dist/index301.js +12 -15
- package/dist/index303.js +15 -5
- package/dist/index304.js +2 -3
- package/dist/index305.js +19 -3
- package/dist/index306.js +2 -17
- package/dist/index307.js +15 -3
- package/dist/index308.js +2 -471
- package/dist/index309.js +19 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -200
- package/dist/index311.js +23 -15
- package/dist/index313.js +2 -27
- package/dist/index314.js +2 -2
- package/dist/index316.js +1 -1
- package/dist/index317.js +21 -1
- package/dist/index319.js +6 -22
- package/dist/index320.js +127 -0
- package/dist/index321.js +2 -2
- package/dist/index322.js +2 -5
- package/dist/index323.js +5 -701
- package/dist/index324.js +699 -352
- package/dist/index325.js +354 -58
- package/dist/index326.js +58 -5
- package/dist/index327.js +1 -1
- package/dist/index328.js +227 -7
- package/dist/index329.js +128 -5
- package/dist/index33.js +8 -8
- package/dist/index330.js +367 -6
- package/dist/index331.js +6 -128
- package/dist/index332.js +16 -366
- package/dist/index333.js +6 -32
- package/dist/index334.js +47 -28
- package/dist/index335.js +10 -0
- package/dist/index336.js +5 -6
- package/dist/index337.js +8 -19
- package/dist/index338.js +57 -227
- package/dist/index339.js +58 -47
- package/dist/index340.js +32 -6
- package/dist/index341.js +27 -57
- package/dist/index343.js +1 -1
- package/dist/index344.js +131 -0
- package/dist/index345.js +436 -3
- package/dist/index346.js +121 -123
- package/dist/index347.js +467 -421
- package/dist/index349.js +3 -482
- package/dist/index35.js +4 -4
- package/dist/index37.js +102 -102
- package/dist/index39.js +4 -4
- 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/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/package.json +2 -2
- package/dist/index210.js +0 -6
- package/dist/index226.js +0 -5
- package/dist/index228.js +0 -7
- package/dist/index230.js +0 -7
- package/dist/index233.js +0 -4
- package/dist/index263.js +0 -230
- package/dist/index294.js +0 -4
- package/dist/index318.js +0 -4
- package/dist/index342.js +0 -60
- package/dist/index348.js +0 -129
package/dist/index262.js
CHANGED
@@ -1,14 +1,202 @@
|
|
1
|
-
import { ref as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
1
|
+
import { defineComponent as j, ref as c, onMounted as J, watch as Q, createElementBlock as _, openBlock as R, createElementVNode as w, createTextVNode as B, createCommentVNode as K, toDisplayString as C, unref as x } from "vue";
|
2
|
+
import { useResizeObserver as Z } from "./index137.js";
|
3
|
+
import { hexToRgb as O } from "./index335.js";
|
4
|
+
import { getHueFromRGB as F } from "./index336.js";
|
5
|
+
import { hslToHex as y } from "./index337.js";
|
6
|
+
import { useLocale as ee } from "./index222.js";
|
7
|
+
const te = {
|
8
|
+
id: "mainCanvasDesc",
|
9
|
+
"aria-live": "polite",
|
10
|
+
class: "sr-only"
|
11
|
+
}, ae = { key: 0 }, ne = {
|
12
|
+
id: "hueCanvasDesc",
|
13
|
+
"aria-live": "polite",
|
14
|
+
class: "sr-only"
|
15
|
+
}, oe = { key: 0 }, de = /* @__PURE__ */ j({
|
16
|
+
__name: "ColorPallette",
|
17
|
+
props: {
|
18
|
+
modelValue: {}
|
19
|
+
},
|
20
|
+
emits: ["update:modelValue"],
|
21
|
+
setup(N, { emit: T }) {
|
22
|
+
const D = N, f = T, { t: h } = ee(), o = c(D.modelValue), d = c(
|
23
|
+
y(F(...O(o.value ?? "#ff0000")), 100, 50)
|
24
|
+
), P = c(null), s = c(null), r = c(null), l = c({ x: 0, y: 0 }), u = c({ x: 0 }), b = c(!1), k = c(!1), H = () => {
|
25
|
+
const e = s.value, t = r.value;
|
26
|
+
!e || !t || (e.width = e.offsetWidth, e.height = e.offsetHeight, t.width = t.offsetWidth, t.height = t.offsetHeight, v(), m());
|
27
|
+
}, I = () => {
|
28
|
+
const e = s.value;
|
29
|
+
return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
|
30
|
+
}, v = () => {
|
31
|
+
const e = s.value;
|
32
|
+
if (!e) return;
|
33
|
+
const t = I();
|
34
|
+
if (!t) return;
|
35
|
+
t.clearRect(0, 0, e.width, e.height);
|
36
|
+
const a = t.createLinearGradient(0, 0, e.width, 0);
|
37
|
+
a.addColorStop(0, d.value), a.addColorStop(1, "#ffffff");
|
38
|
+
const n = t.createLinearGradient(0, 0, 0, e.height);
|
39
|
+
n.addColorStop(0, "transparent"), n.addColorStop(1, "#000000"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), t.fillStyle = n, t.globalCompositeOperation = "multiply", t.fillRect(0, 0, e.width, e.height), t.globalCompositeOperation = "source-over", t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
|
40
|
+
}, p = () => {
|
41
|
+
const e = I();
|
42
|
+
e && (e.beginPath(), e.arc(
|
43
|
+
l.value.x,
|
44
|
+
l.value.y,
|
45
|
+
8,
|
46
|
+
0,
|
47
|
+
2 * Math.PI
|
48
|
+
), e.strokeStyle = "#ffffff", e.lineWidth = 2, e.stroke(), e.beginPath(), e.arc(
|
49
|
+
l.value.x,
|
50
|
+
l.value.y,
|
51
|
+
7,
|
52
|
+
0,
|
53
|
+
2 * Math.PI
|
54
|
+
), e.strokeStyle = "#000000", e.lineWidth = 1, e.stroke(), e.globalCompositeOperation = "source-over");
|
55
|
+
}, V = () => {
|
56
|
+
const e = r.value;
|
57
|
+
return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
|
58
|
+
}, m = () => {
|
59
|
+
const e = r.value;
|
60
|
+
if (!e) return;
|
61
|
+
const t = V();
|
62
|
+
if (!t) return;
|
63
|
+
const a = t.createLinearGradient(0, 0, e.width, 0);
|
64
|
+
for (let n = 0; n <= 360; n += 60)
|
65
|
+
a.addColorStop(n / 360, `hsl(${n}, 100%, 50%)`);
|
66
|
+
a.addColorStop(1, "hsl(360, 100%, 50%)"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), L(), t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
|
67
|
+
}, L = () => {
|
68
|
+
const e = r.value;
|
69
|
+
if (!e) return;
|
70
|
+
const t = V();
|
71
|
+
if (!t) return;
|
72
|
+
const a = 10, n = 16, i = u.value.x - a / 2, S = e.height / 2 - n / 2;
|
73
|
+
t.beginPath(), t.roundRect(i, S, a, n, 2), t.strokeStyle = "lightgray", t.stroke(), t.fillStyle = "#ffffff", t.fill();
|
74
|
+
}, q = (e) => {
|
75
|
+
s.value && (window.addEventListener("pointermove", A), window.addEventListener("pointerup", E), b.value = !0, G(e));
|
76
|
+
}, z = (e) => {
|
77
|
+
r.value && (window.addEventListener("pointermove", A), window.addEventListener("pointerup", E), k.value = !0, W(e));
|
78
|
+
}, G = (e) => {
|
79
|
+
const t = s.value;
|
80
|
+
if (!t) return;
|
81
|
+
const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left)), i = Math.max(0, Math.min(t.height, e.clientY - a.top));
|
82
|
+
l.value = { x: n, y: i }, v(), p(), o.value = g(), f("update:modelValue", o.value);
|
83
|
+
}, W = (e) => {
|
84
|
+
const t = r.value;
|
85
|
+
if (!t) return;
|
86
|
+
const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left));
|
87
|
+
u.value = { x: n };
|
88
|
+
const i = n / t.width * 360;
|
89
|
+
d.value = y(i, 100, 50), m(), v(), p(), o.value = g(), f("update:modelValue", o.value);
|
90
|
+
}, A = (e) => {
|
91
|
+
b.value ? G(e) : k.value && W(e);
|
92
|
+
}, E = () => {
|
93
|
+
b.value = !1, k.value = !1;
|
94
|
+
}, U = (e) => {
|
95
|
+
var a, n;
|
96
|
+
switch (e.key) {
|
97
|
+
case "ArrowUp":
|
98
|
+
l.value.y = Math.max(0, l.value.y - 5);
|
99
|
+
break;
|
100
|
+
case "ArrowDown":
|
101
|
+
l.value.y = Math.min(
|
102
|
+
((a = s.value) == null ? void 0 : a.height) ?? 0,
|
103
|
+
l.value.y + 5
|
104
|
+
);
|
105
|
+
break;
|
106
|
+
case "ArrowLeft":
|
107
|
+
l.value.x = Math.max(0, l.value.x - 5);
|
108
|
+
break;
|
109
|
+
case "ArrowRight":
|
110
|
+
l.value.x = Math.min(
|
111
|
+
((n = s.value) == null ? void 0 : n.width) ?? 0,
|
112
|
+
l.value.x + 5
|
113
|
+
);
|
114
|
+
break;
|
115
|
+
default:
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
|
119
|
+
}, X = (e) => {
|
120
|
+
var n, i;
|
121
|
+
switch (e.key) {
|
122
|
+
case "ArrowLeft":
|
123
|
+
u.value.x = Math.max(0, u.value.x - 5);
|
124
|
+
break;
|
125
|
+
case "ArrowRight":
|
126
|
+
u.value.x = Math.min(
|
127
|
+
((n = r.value) == null ? void 0 : n.width) ?? 0,
|
128
|
+
u.value.x + 5
|
129
|
+
);
|
130
|
+
break;
|
131
|
+
default:
|
132
|
+
return;
|
133
|
+
}
|
134
|
+
const a = u.value.x / (((i = r.value) == null ? void 0 : i.width) ?? 1) * 360;
|
135
|
+
d.value = y(a, 100, 50), m(), L(), v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
|
136
|
+
};
|
137
|
+
J(() => {
|
138
|
+
H(), M(o.value ?? "#ff0000");
|
139
|
+
}), Z(P, () => {
|
140
|
+
H(), M(o.value ?? "#ff0000");
|
141
|
+
}), Q(
|
142
|
+
() => D.modelValue,
|
143
|
+
(e) => {
|
144
|
+
!e || e === o.value || (o.value = e, M(e), m(), v());
|
145
|
+
}
|
146
|
+
);
|
147
|
+
const g = () => {
|
148
|
+
const e = s.value;
|
149
|
+
if (!e) return "#ffffff";
|
150
|
+
const t = e.getContext("2d");
|
151
|
+
if (!t) return "#ffffff";
|
152
|
+
const { x: a, y: n } = l.value, i = t.getImageData(a, n, 1, 1).data, [S, $, Y] = i;
|
153
|
+
return `#${((1 << 24) + (S << 16) + ($ << 8) + Y).toString(16).slice(1)}`;
|
154
|
+
};
|
155
|
+
function M(e) {
|
156
|
+
var a;
|
157
|
+
const t = F(...O(e));
|
158
|
+
d.value = y(t, 100, 50), u.value.x = t / 360 * (((a = r.value) == null ? void 0 : a.width) ?? 0);
|
159
|
+
}
|
160
|
+
return (e, t) => (R(), _("div", {
|
161
|
+
ref_key: "paletteRef",
|
162
|
+
ref: P,
|
163
|
+
"aria-label": "Color Picker",
|
164
|
+
class: "bb-color-palette",
|
165
|
+
role: "application"
|
166
|
+
}, [
|
167
|
+
w("canvas", {
|
168
|
+
ref_key: "mainCanvasRef",
|
169
|
+
ref: s,
|
170
|
+
"aria-describedby": "mainCanvasDesc",
|
171
|
+
"aria-label": "Main Color Selection",
|
172
|
+
class: "bb-color-palette__canvas",
|
173
|
+
role: "application",
|
174
|
+
tabindex: "0",
|
175
|
+
onKeydown: U,
|
176
|
+
onPointerdown: q
|
177
|
+
}, null, 544),
|
178
|
+
w("p", te, [
|
179
|
+
B(C(x(h)("colorInput.mainCanvasDesc")) + " ", 1),
|
180
|
+
o.value ? (R(), _("span", ae, C(x(h)("colorInput.mainCanvasSelectedColor", o.value)), 1)) : K("", !0)
|
181
|
+
]),
|
182
|
+
w("canvas", {
|
183
|
+
ref_key: "hueCanvasRef",
|
184
|
+
ref: r,
|
185
|
+
"aria-describedby": "hueCanvasDesc",
|
186
|
+
"aria-label": "Hue Selection",
|
187
|
+
class: "bb-color-palette__hue-canvas",
|
188
|
+
role: "application",
|
189
|
+
tabindex: "0",
|
190
|
+
onKeydown: X,
|
191
|
+
onPointerdown: z
|
192
|
+
}, null, 544),
|
193
|
+
w("p", ne, [
|
194
|
+
B(C(x(h)("colorInput.hueCanvasDesc")) + " ", 1),
|
195
|
+
d.value ? (R(), _("span", oe, C(x(h)("colorInput.hueCanvasSelectedHue", d.value)), 1)) : K("", !0)
|
196
|
+
])
|
197
|
+
], 512));
|
198
|
+
}
|
199
|
+
});
|
12
200
|
export {
|
13
|
-
|
201
|
+
de as default
|
14
202
|
};
|
package/dist/index264.js
CHANGED
package/dist/index265.js
CHANGED
package/dist/index266.js
CHANGED
@@ -1,18 +1,4 @@
|
|
1
|
-
const
|
2
|
-
if (t) return t;
|
3
|
-
if (f(n))
|
4
|
-
return n;
|
5
|
-
if (r in n) {
|
6
|
-
const i = e(
|
7
|
-
[].concat(n[r]),
|
8
|
-
r,
|
9
|
-
f
|
10
|
-
);
|
11
|
-
if (i)
|
12
|
-
return i;
|
13
|
-
}
|
14
|
-
return t;
|
15
|
-
}, null);
|
1
|
+
const o = (e) => typeof e == "boolean" ? e : e === "true";
|
16
2
|
export {
|
17
|
-
|
3
|
+
o as booleanishToBoolean
|
18
4
|
};
|
package/dist/index267.js
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const n = t[c];
|
6
|
-
r(n, c, t) && (e[c] = n);
|
7
|
-
}
|
8
|
-
return e;
|
9
|
-
};
|
1
|
+
import e from "./index324.js";
|
2
|
+
import o from "./index325.js";
|
3
|
+
import r from "./index326.js";
|
4
|
+
const f = new r(o, e)._freeze();
|
10
5
|
export {
|
11
|
-
|
6
|
+
r as Mime,
|
7
|
+
f as default
|
12
8
|
};
|
package/dist/index268.js
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
const
|
2
|
-
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
2
|
+
if (t) return t;
|
3
|
+
if (f(n))
|
4
|
+
return n;
|
5
|
+
if (r in n) {
|
6
|
+
const i = e(
|
7
|
+
[].concat(n[r]),
|
8
|
+
r,
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
13
|
+
}
|
14
|
+
return t;
|
15
|
+
}, null);
|
3
16
|
export {
|
4
|
-
|
17
|
+
e as findInTree
|
5
18
|
};
|
package/dist/index269.js
CHANGED
package/dist/index27.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as S, computed as n, createElementBlock as c, openBlock as r, normalizeClass as T, createBlock as w, createVNode as B, createElementVNode as p, resolveDynamicComponent as E, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as P, createTextVNode as V, toDisplayString as d, unref as m, Fragment as D, renderList as I } from "vue";
|
2
|
-
import { deburr as N } from "./
|
2
|
+
import { deburr as N } from "./index243.js";
|
3
3
|
import { getAsPercentage as $ } from "./index136.js";
|
4
4
|
import { useId as F } from "./index8.js";
|
5
5
|
import R from "./index69.js";
|
package/dist/index270.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
let
|
3
|
-
|
4
|
-
|
5
|
-
e
|
6
|
-
|
7
|
-
|
8
|
-
}
|
1
|
+
const o = (n, t) => {
|
2
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
3
|
+
const i = n[e];
|
4
|
+
if (t(i, e, n))
|
5
|
+
return e;
|
6
|
+
}
|
7
|
+
return -1;
|
8
|
+
};
|
9
9
|
export {
|
10
|
-
|
10
|
+
o as findRightIndex
|
11
11
|
};
|
package/dist/index271.js
CHANGED
@@ -1,11 +1,25 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}
|
7
|
-
|
8
|
-
}
|
1
|
+
const e = {
|
2
|
+
inert: ":not([inert]):not([inert] *)",
|
3
|
+
negTabIndex: ':not([tabindex^="-"])',
|
4
|
+
disabled: ":not(:disabled)"
|
5
|
+
}, n = [
|
6
|
+
`a[href]${e.inert}${e.negTabIndex}`,
|
7
|
+
`area[href]${e.inert}${e.negTabIndex}`,
|
8
|
+
`input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
|
9
|
+
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
10
|
+
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
11
|
+
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
12
|
+
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
13
|
+
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
14
|
+
// Discard until Firefox supports `:has()`
|
15
|
+
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
16
|
+
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
+
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
+
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
+
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
+
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
+
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
+
];
|
9
23
|
export {
|
10
|
-
|
24
|
+
n as default
|
11
25
|
};
|
package/dist/index272.js
CHANGED
@@ -1,25 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
10
|
-
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
11
|
-
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
12
|
-
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
13
|
-
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
14
|
-
// Discard until Firefox supports `:has()`
|
15
|
-
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
16
|
-
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
-
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
-
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
-
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
-
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
-
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
-
];
|
1
|
+
function u(e, i) {
|
2
|
+
let t;
|
3
|
+
return function(...o) {
|
4
|
+
t !== void 0 && clearTimeout(t), t = setTimeout(() => {
|
5
|
+
e.apply(this, o);
|
6
|
+
}, i);
|
7
|
+
};
|
8
|
+
}
|
23
9
|
export {
|
24
|
-
|
10
|
+
u as debounce
|
25
11
|
};
|
package/dist/index273.js
CHANGED
package/dist/index275.js
CHANGED
@@ -1,7 +1,69 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
|
2
|
+
import { useLocale as k } from "./index222.js";
|
3
|
+
import h from "./index13.js";
|
4
|
+
/* empty css */
|
5
|
+
import C from "./index85.js";
|
6
|
+
/* empty css */
|
7
|
+
const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
|
8
|
+
key: 1,
|
9
|
+
class: "bb-toast-message__title"
|
10
|
+
}, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
|
11
|
+
__name: "BbToastMessage",
|
12
|
+
props: {
|
13
|
+
title: {},
|
14
|
+
text: {},
|
15
|
+
icon: {},
|
16
|
+
theme: { default: "default" },
|
17
|
+
id: {},
|
18
|
+
showClose: { type: Boolean }
|
19
|
+
},
|
20
|
+
emits: ["click:close"],
|
21
|
+
setup(r, { emit: c }) {
|
22
|
+
const m = r, p = c, { t: _ } = k(), b = () => {
|
23
|
+
p("click:close", m.id);
|
24
|
+
};
|
25
|
+
return (e, a) => (o(), l("div", {
|
26
|
+
"aria-atomic": "true",
|
27
|
+
"aria-live": "polite",
|
28
|
+
"aria-role": "alert",
|
29
|
+
class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
30
|
+
}, [
|
31
|
+
t("div", w, [
|
32
|
+
e.icon ? (o(), i(C, {
|
33
|
+
key: 0,
|
34
|
+
class: "bb-toast-message__icon",
|
35
|
+
type: e.icon
|
36
|
+
}, null, 8, ["type"])) : s("", !0)
|
37
|
+
]),
|
38
|
+
t("div", v, [
|
39
|
+
e.showClose ? (o(), i(h, {
|
40
|
+
key: 0,
|
41
|
+
"aria-label": f(_)("common.closeLabel").value,
|
42
|
+
class: "bb-toast-message__close",
|
43
|
+
onClick: b
|
44
|
+
}, {
|
45
|
+
default: g(() => a[0] || (a[0] = [
|
46
|
+
t("svg", {
|
47
|
+
fill: "none",
|
48
|
+
viewBox: "0 0 24 24",
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
50
|
+
}, [
|
51
|
+
t("path", {
|
52
|
+
d: "M23 23L1 1M23 1L1 23",
|
53
|
+
stroke: "currentColor",
|
54
|
+
"stroke-linecap": "round",
|
55
|
+
"stroke-width": "2"
|
56
|
+
})
|
57
|
+
], -1)
|
58
|
+
])),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["aria-label"])) : s("", !0),
|
61
|
+
e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
|
62
|
+
t("p", B, n(e.text), 1)
|
63
|
+
])
|
64
|
+
], 2));
|
65
|
+
}
|
66
|
+
});
|
5
67
|
export {
|
6
|
-
|
68
|
+
z as default
|
7
69
|
};
|
package/dist/index276.js
CHANGED
@@ -1,69 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import C from "./index85.js";
|
6
|
-
/* empty css */
|
7
|
-
const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
|
8
|
-
key: 1,
|
9
|
-
class: "bb-toast-message__title"
|
10
|
-
}, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
|
11
|
-
__name: "BbToastMessage",
|
12
|
-
props: {
|
13
|
-
title: {},
|
14
|
-
text: {},
|
15
|
-
icon: {},
|
16
|
-
theme: { default: "default" },
|
17
|
-
id: {},
|
18
|
-
showClose: { type: Boolean }
|
19
|
-
},
|
20
|
-
emits: ["click:close"],
|
21
|
-
setup(r, { emit: c }) {
|
22
|
-
const m = r, p = c, { t: _ } = k(), b = () => {
|
23
|
-
p("click:close", m.id);
|
24
|
-
};
|
25
|
-
return (e, a) => (o(), l("div", {
|
26
|
-
"aria-atomic": "true",
|
27
|
-
"aria-live": "polite",
|
28
|
-
"aria-role": "alert",
|
29
|
-
class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
30
|
-
}, [
|
31
|
-
t("div", w, [
|
32
|
-
e.icon ? (o(), i(C, {
|
33
|
-
key: 0,
|
34
|
-
class: "bb-toast-message__icon",
|
35
|
-
type: e.icon
|
36
|
-
}, null, 8, ["type"])) : s("", !0)
|
37
|
-
]),
|
38
|
-
t("div", v, [
|
39
|
-
e.showClose ? (o(), i(h, {
|
40
|
-
key: 0,
|
41
|
-
"aria-label": f(_)("common.closeLabel").value,
|
42
|
-
class: "bb-toast-message__close",
|
43
|
-
onClick: b
|
44
|
-
}, {
|
45
|
-
default: g(() => a[0] || (a[0] = [
|
46
|
-
t("svg", {
|
47
|
-
fill: "none",
|
48
|
-
viewBox: "0 0 24 24",
|
49
|
-
xmlns: "http://www.w3.org/2000/svg"
|
50
|
-
}, [
|
51
|
-
t("path", {
|
52
|
-
d: "M23 23L1 1M23 1L1 23",
|
53
|
-
stroke: "currentColor",
|
54
|
-
"stroke-linecap": "round",
|
55
|
-
"stroke-width": "2"
|
56
|
-
})
|
57
|
-
], -1)
|
58
|
-
])),
|
59
|
-
_: 1
|
60
|
-
}, 8, ["aria-label"])) : s("", !0),
|
61
|
-
e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
|
62
|
-
t("p", B, n(e.text), 1)
|
63
|
-
])
|
64
|
-
], 2));
|
65
|
-
}
|
66
|
-
});
|
1
|
+
const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
|
2
|
+
f(r, u),
|
3
|
+
...o(r[n], n, f, f(r, u))
|
4
|
+
] : [f(r, u)]).flat();
|
67
5
|
export {
|
68
|
-
|
6
|
+
o as flattenTree
|
69
7
|
};
|
package/dist/index278.js
CHANGED
package/dist/index279.js
CHANGED
package/dist/index280.js
CHANGED
package/dist/index281.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
import { get as t } from "./index286.js";
|
2
|
+
const o = () => ({
|
3
|
+
getItemText(r, n) {
|
4
|
+
if (typeof r == "string" && !n) return r;
|
5
|
+
if (n) {
|
6
|
+
if (typeof n == "function") {
|
7
|
+
let f = n(r);
|
8
|
+
return typeof f != "string" && (f = JSON.stringify(f)), f;
|
9
|
+
} else if (typeof n == "string") {
|
10
|
+
const f = t(r, n);
|
11
|
+
return typeof f == "string" ? f : JSON.stringify(f);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return JSON.stringify(r);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
export {
|
18
|
+
o as useItemText
|
19
|
+
};
|
package/dist/index282.js
CHANGED
@@ -1,9 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
function y(t, r) {
|
2
|
+
return t > r ? 1 : -1;
|
3
|
+
}
|
4
|
+
function c(t, r) {
|
5
|
+
var n = 5381;
|
6
|
+
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
7
|
+
r || (r = /* @__PURE__ */ new WeakSet());
|
8
|
+
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
9
|
+
var s = p[i], e = t[s];
|
10
|
+
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
11
|
+
if (r.has(e)) continue;
|
12
|
+
r.add(e);
|
13
|
+
}
|
14
|
+
n = 33 * n ^ c(e, r);
|
15
|
+
}
|
16
|
+
return 33 * n ^ c(t.constructor, r);
|
17
|
+
}
|
18
|
+
var o = typeof t;
|
19
|
+
try {
|
20
|
+
t instanceof Date ? o += t.getTime() : o += String(t);
|
21
|
+
} catch {
|
22
|
+
o += String(Object.assign({}, t));
|
23
|
+
}
|
24
|
+
for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
|
25
|
+
return n;
|
26
|
+
}
|
7
27
|
export {
|
8
|
-
|
28
|
+
c as hash,
|
29
|
+
y as sortNumbers
|
9
30
|
};
|