bitboss-ui 2.1.85 → 2.1.87
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/index107.js +8 -8
- package/dist/index112.js +33 -24
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +11 -11
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +6 -6
- package/dist/index21.js +14 -14
- package/dist/index217.js +2 -33
- package/dist/index218.js +2 -28
- package/dist/index219.js +5 -0
- package/dist/index220.js +5 -5
- package/dist/index221.js +8 -5
- package/dist/index222.js +5 -5
- package/dist/index223.js +5 -5
- package/dist/index224.js +5 -3
- package/dist/index225.js +5 -2
- package/dist/index226.js +3 -6
- package/dist/index227.js +2 -8
- package/dist/index228.js +6 -268
- package/dist/index229.js +6 -50
- package/dist/index23.js +11 -11
- package/dist/index230.js +260 -44
- package/dist/index231.js +45 -25
- package/dist/index232.js +40 -48
- package/dist/index233.js +31 -12
- package/dist/index234.js +60 -5
- package/dist/index235.js +13 -8
- package/dist/index236.js +13 -5
- package/dist/index237.js +13 -4
- package/dist/index238.js +3 -20
- package/dist/index239.js +4 -201
- package/dist/index240.js +12 -0
- package/dist/index241.js +3 -135
- package/dist/index242.js +6 -0
- package/dist/index243.js +1 -1
- package/dist/index246.js +15 -14
- package/dist/index247.js +49 -15
- package/dist/index248.js +12 -48
- package/dist/index249.js +11 -14
- package/dist/index25.js +3 -3
- package/dist/index250.js +15 -11
- package/dist/index251.js +9 -2
- package/dist/index252.js +135 -2
- package/dist/index254.js +23 -7
- package/dist/index255.js +22 -6
- package/dist/index256.js +188 -4
- package/dist/index257.js +3 -9
- package/dist/index258.js +9 -53
- package/dist/index259.js +105 -187
- package/dist/index261.js +100 -3
- package/dist/index263.js +3 -9
- package/dist/index264.js +2 -3
- package/dist/index265.js +5 -9
- package/dist/index266.js +5 -13
- package/dist/index267.js +5 -23
- package/dist/index268.js +20 -4
- package/dist/index269.js +2 -23
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -13
- package/dist/index271.js +6 -9
- package/dist/index272.js +7 -3
- package/dist/index273.js +67 -3
- package/dist/index274.js +32 -6
- package/dist/index275.js +28 -3
- package/dist/index277.js +6 -11
- package/dist/index278.js +9 -106
- package/dist/index279.js +11 -0
- package/dist/index280.js +51 -98
- package/dist/index281.js +13 -0
- package/dist/index282.js +5 -229
- package/dist/index283.js +18 -6
- package/dist/index284.js +12 -16
- package/dist/index285.js +227 -9
- package/dist/index286.js +6 -11
- package/dist/index287.js +16 -5
- package/dist/index288.js +8 -5
- package/dist/index289.js +4 -5
- package/dist/index29.js +2 -2
- package/dist/index290.js +201 -2
- package/dist/index292.js +31 -64
- package/dist/index293.js +3 -8
- package/dist/index295.js +1 -1
- package/dist/index304.js +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index309.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -2
- package/dist/index311.js +4 -2
- package/dist/index312.js +5 -3
- package/dist/index313.js +1 -1
- package/dist/index314.js +17 -3
- package/dist/index315.js +3 -17
- package/dist/index316.js +3 -5
- package/dist/index317.js +3 -5
- package/dist/index318.js +125 -4
- package/dist/index319.js +2 -6
- package/dist/index320.js +14 -3
- package/dist/index321.js +2 -3
- package/dist/index322.js +19 -3
- package/dist/index323.js +2 -2
- package/dist/index324.js +2 -719
- package/dist/index325.js +6 -366
- package/dist/index326.js +719 -57
- package/dist/index327.js +366 -5
- package/dist/index328.js +56 -6
- package/dist/index329.js +2 -7
- package/dist/index33.js +6 -6
- package/dist/index330.js +3 -18
- package/dist/index331.js +2 -9
- package/dist/index332.js +3 -15
- package/dist/index333.js +5 -93
- package/dist/index334.js +35 -2
- package/dist/index335.js +6 -228
- package/dist/index336.js +126 -122
- package/dist/index337.js +398 -2
- package/dist/index338.js +6 -14
- package/dist/index339.js +7 -2
- package/dist/index340.js +18 -18
- package/dist/index341.js +9 -2
- package/dist/index342.js +14 -34
- package/dist/index343.js +5 -6
- package/dist/index344.js +57 -128
- package/dist/index345.js +56 -396
- package/dist/index346.js +227 -7
- package/dist/index347.js +133 -5
- package/dist/index348.js +22 -8
- package/dist/index35.js +4 -4
- package/dist/index350.js +47 -58
- package/dist/index351.js +8 -22
- package/dist/index352.js +8 -0
- package/dist/index353.js +7 -133
- package/dist/index354.js +92 -46
- package/dist/index37.js +17 -17
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +6 -6
- package/dist/index45.js +6 -6
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +5 -5
- package/dist/index67.js +1 -1
- package/dist/index80.js +6 -6
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/package.json +1 -1
- package/dist/index253.js +0 -4
- package/dist/index260.js +0 -5
- package/dist/index262.js +0 -36
- package/dist/index276.js +0 -20
- package/dist/index291.js +0 -4
- package/dist/index349.js +0 -60
package/dist/index290.js
CHANGED
|
@@ -1,4 +1,203 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as j, ref as s, onMounted as J, watch as Q, createElementBlock as M, openBlock as S, createElementVNode as x, createTextVNode as L, createCommentVNode as B, toDisplayString as y, unref as w } from "vue";
|
|
2
|
+
import { hexToRgb as K } from "./index351.js";
|
|
3
|
+
import { getHueFromRGB as F } from "./index352.js";
|
|
4
|
+
import { hslToHex as b } from "./index353.js";
|
|
5
|
+
import { useLocale as Z } from "./index235.js";
|
|
6
|
+
const ee = {
|
|
7
|
+
id: "mainCanvasDesc",
|
|
8
|
+
"aria-live": "polite",
|
|
9
|
+
class: "sr-only"
|
|
10
|
+
}, te = { key: 0 }, ae = {
|
|
11
|
+
id: "hueCanvasDesc",
|
|
12
|
+
"aria-live": "polite",
|
|
13
|
+
class: "sr-only"
|
|
14
|
+
}, ne = { key: 0 }, ue = /* @__PURE__ */ j({
|
|
15
|
+
__name: "ColorPallette",
|
|
16
|
+
props: {
|
|
17
|
+
modelValue: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(N, { emit: O }) {
|
|
21
|
+
const _ = N, f = O, { t: h } = Z(), o = s(_.modelValue), d = s(
|
|
22
|
+
b(F(...K(o.value ?? "#ff0000")), 100, 50)
|
|
23
|
+
), T = s(null), i = s(null), r = s(null), l = s({ x: 0, y: 0 }), u = s({ x: 0 }), p = s(!1), P = s(!1), q = () => {
|
|
24
|
+
const e = i.value, t = r.value;
|
|
25
|
+
!e || !t || (e.width = e.offsetWidth, e.height = e.offsetHeight, t.width = t.offsetWidth, t.height = t.offsetHeight, v(), g());
|
|
26
|
+
}, R = () => {
|
|
27
|
+
const e = i.value;
|
|
28
|
+
return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
|
|
29
|
+
}, v = () => {
|
|
30
|
+
const e = i.value;
|
|
31
|
+
if (!e) return;
|
|
32
|
+
const t = R();
|
|
33
|
+
if (!t) return;
|
|
34
|
+
t.clearRect(0, 0, e.width, e.height);
|
|
35
|
+
const a = t.createLinearGradient(0, 0, e.width, 0);
|
|
36
|
+
a.addColorStop(0, d.value), a.addColorStop(1, "#ffffff");
|
|
37
|
+
const n = t.createLinearGradient(0, 0, 0, e.height);
|
|
38
|
+
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;
|
|
39
|
+
}, m = () => {
|
|
40
|
+
const e = R();
|
|
41
|
+
e && (e.beginPath(), e.arc(
|
|
42
|
+
l.value.x,
|
|
43
|
+
l.value.y,
|
|
44
|
+
8,
|
|
45
|
+
0,
|
|
46
|
+
2 * Math.PI
|
|
47
|
+
), e.strokeStyle = "#ffffff", e.lineWidth = 2, e.stroke(), e.beginPath(), e.arc(
|
|
48
|
+
l.value.x,
|
|
49
|
+
l.value.y,
|
|
50
|
+
7,
|
|
51
|
+
0,
|
|
52
|
+
2 * Math.PI
|
|
53
|
+
), e.strokeStyle = "#000000", e.lineWidth = 1, e.stroke(), e.globalCompositeOperation = "source-over");
|
|
54
|
+
}, D = () => {
|
|
55
|
+
const e = r.value;
|
|
56
|
+
return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
|
|
57
|
+
}, g = () => {
|
|
58
|
+
const e = r.value;
|
|
59
|
+
if (!e) return;
|
|
60
|
+
const t = D();
|
|
61
|
+
if (!t) return;
|
|
62
|
+
const a = t.createLinearGradient(0, 0, e.width, 0);
|
|
63
|
+
for (let n = 0; n <= 360; n += 60)
|
|
64
|
+
a.addColorStop(n / 360, `hsl(${n}, 100%, 50%)`);
|
|
65
|
+
a.addColorStop(1, "hsl(360, 100%, 50%)"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), H(), t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
|
|
66
|
+
}, H = () => {
|
|
67
|
+
const e = r.value;
|
|
68
|
+
if (!e) return;
|
|
69
|
+
const t = D();
|
|
70
|
+
if (!t) return;
|
|
71
|
+
const a = 10, n = 16, c = u.value.x - a / 2, k = e.height / 2 - n / 2;
|
|
72
|
+
t.beginPath(), t.roundRect(c, k, a, n, 2), t.strokeStyle = "lightgray", t.stroke(), t.fillStyle = "#ffffff", t.fill();
|
|
73
|
+
}, E = (e) => {
|
|
74
|
+
const t = i.value;
|
|
75
|
+
t && (t.setPointerCapture(e.pointerId), p.value = !0, I(e));
|
|
76
|
+
}, U = (e) => {
|
|
77
|
+
const t = r.value;
|
|
78
|
+
t && (t.setPointerCapture(e.pointerId), P.value = !0, V(e));
|
|
79
|
+
}, I = (e) => {
|
|
80
|
+
const t = i.value;
|
|
81
|
+
if (!t) return;
|
|
82
|
+
const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width - 1, e.clientX - a.left)), c = Math.max(0, Math.min(t.height - 1, e.clientY - a.top));
|
|
83
|
+
l.value = { x: n, y: c }, v(), m(), o.value = C(), f("update:modelValue", o.value);
|
|
84
|
+
}, V = (e) => {
|
|
85
|
+
const t = r.value;
|
|
86
|
+
if (!t) return;
|
|
87
|
+
const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width - 1, e.clientX - a.left));
|
|
88
|
+
u.value = { x: n };
|
|
89
|
+
const c = n / t.width * 360;
|
|
90
|
+
d.value = b(c, 100, 50), g(), v(), m(), o.value = C(), f("update:modelValue", o.value);
|
|
91
|
+
}, G = (e) => {
|
|
92
|
+
p.value ? I(e) : P.value && V(e);
|
|
93
|
+
}, W = (e) => {
|
|
94
|
+
const t = p.value ? i.value : r.value;
|
|
95
|
+
t && t.releasePointerCapture(e.pointerId), p.value = !1, P.value = !1;
|
|
96
|
+
}, X = (e) => {
|
|
97
|
+
switch (e.key) {
|
|
98
|
+
case "ArrowUp":
|
|
99
|
+
l.value.y = Math.max(0, l.value.y - 5);
|
|
100
|
+
break;
|
|
101
|
+
case "ArrowDown":
|
|
102
|
+
l.value.y = Math.min(
|
|
103
|
+
i.value?.height ?? 0,
|
|
104
|
+
l.value.y + 5
|
|
105
|
+
);
|
|
106
|
+
break;
|
|
107
|
+
case "ArrowLeft":
|
|
108
|
+
l.value.x = Math.max(0, l.value.x - 5);
|
|
109
|
+
break;
|
|
110
|
+
case "ArrowRight":
|
|
111
|
+
l.value.x = Math.min(
|
|
112
|
+
i.value?.width ?? 0,
|
|
113
|
+
l.value.x + 5
|
|
114
|
+
);
|
|
115
|
+
break;
|
|
116
|
+
default:
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
v(), m(), o.value = C(), f("update:modelValue", o.value), e.preventDefault();
|
|
120
|
+
}, $ = (e) => {
|
|
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
|
+
r.value?.width ?? 0,
|
|
128
|
+
u.value.x + 5
|
|
129
|
+
);
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const a = u.value.x / (r.value?.width ?? 1) * 360;
|
|
135
|
+
d.value = b(a, 100, 50), g(), H(), v(), m(), o.value = C(), f("update:modelValue", o.value), e.preventDefault();
|
|
136
|
+
};
|
|
137
|
+
J(() => {
|
|
138
|
+
q(), A(o.value ?? "#ff0000");
|
|
139
|
+
}), Q(
|
|
140
|
+
() => _.modelValue,
|
|
141
|
+
(e) => {
|
|
142
|
+
!e || e === o.value || (o.value = e, A(e), g(), v());
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
const C = () => {
|
|
146
|
+
const e = i.value;
|
|
147
|
+
if (!e) return "#ffffff";
|
|
148
|
+
const t = e.getContext("2d");
|
|
149
|
+
if (!t) return "#ffffff";
|
|
150
|
+
const { x: a, y: n } = l.value, c = t.getImageData(a, n, 1, 1).data, [k, z, Y] = c;
|
|
151
|
+
return `#${((1 << 24) + (k << 16) + (z << 8) + Y).toString(16).slice(1)}`;
|
|
152
|
+
};
|
|
153
|
+
function A(e) {
|
|
154
|
+
const t = F(...K(e));
|
|
155
|
+
d.value = b(t, 100, 50), u.value.x = t / 360 * (r.value?.width ?? 0);
|
|
156
|
+
}
|
|
157
|
+
return (e, t) => (S(), M("span", {
|
|
158
|
+
ref_key: "paletteRef",
|
|
159
|
+
ref: T,
|
|
160
|
+
"aria-label": "Color Picker",
|
|
161
|
+
class: "bb-color-palette",
|
|
162
|
+
role: "application"
|
|
163
|
+
}, [
|
|
164
|
+
x("canvas", {
|
|
165
|
+
ref_key: "mainCanvasRef",
|
|
166
|
+
ref: i,
|
|
167
|
+
"aria-describedby": "mainCanvasDesc",
|
|
168
|
+
"aria-label": "Main Color Selection",
|
|
169
|
+
class: "bb-color-palette__canvas",
|
|
170
|
+
role: "application",
|
|
171
|
+
tabindex: "0",
|
|
172
|
+
onKeydown: X,
|
|
173
|
+
onPointerdown: E,
|
|
174
|
+
onPointermove: G,
|
|
175
|
+
onPointerup: W
|
|
176
|
+
}, null, 544),
|
|
177
|
+
x("span", ee, [
|
|
178
|
+
L(y(w(h)("colorInput.mainCanvasDesc")) + " ", 1),
|
|
179
|
+
o.value ? (S(), M("span", te, y(w(h)("colorInput.mainCanvasSelectedColor", o.value)), 1)) : B("", !0)
|
|
180
|
+
]),
|
|
181
|
+
x("canvas", {
|
|
182
|
+
ref_key: "hueCanvasRef",
|
|
183
|
+
ref: r,
|
|
184
|
+
"aria-describedby": "hueCanvasDesc",
|
|
185
|
+
"aria-label": "Hue Selection",
|
|
186
|
+
class: "bb-color-palette__hue-canvas",
|
|
187
|
+
role: "application",
|
|
188
|
+
tabindex: "0",
|
|
189
|
+
onKeydown: $,
|
|
190
|
+
onPointerdown: U,
|
|
191
|
+
onPointermove: G,
|
|
192
|
+
onPointerup: W
|
|
193
|
+
}, null, 544),
|
|
194
|
+
x("span", ae, [
|
|
195
|
+
L(y(w(h)("colorInput.hueCanvasDesc")) + " ", 1),
|
|
196
|
+
d.value ? (S(), M("span", ne, y(w(h)("colorInput.hueCanvasSelectedHue", d.value)), 1)) : B("", !0)
|
|
197
|
+
])
|
|
198
|
+
], 512));
|
|
199
|
+
}
|
|
200
|
+
});
|
|
2
201
|
export {
|
|
3
|
-
|
|
202
|
+
ue as default
|
|
4
203
|
};
|
package/dist/index292.js
CHANGED
|
@@ -1,69 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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)
|
|
1
|
+
import { defineComponent as a, resolveComponent as o, createBlock as u, openBlock as l, resolveDynamicComponent as m, unref as c, withCtx as p, renderSlot as f } from "vue";
|
|
2
|
+
import { _config as e } from "./index4.js";
|
|
3
|
+
import { useLogger as i } from "./index229.js";
|
|
4
|
+
import { useFrameworkDetection as k } from "./index278.js";
|
|
5
|
+
const y = /* @__PURE__ */ a({
|
|
6
|
+
__name: "RouterComponent",
|
|
7
|
+
setup(g) {
|
|
8
|
+
const { isInertia: r, isNuxt: s } = k();
|
|
9
|
+
let t;
|
|
10
|
+
if (r) {
|
|
11
|
+
if (t = o(e.inertiaLinkName), typeof t == "string") {
|
|
12
|
+
const { warn: n } = i();
|
|
13
|
+
n(
|
|
14
|
+
`Inertia link component "${e.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
} else if (s) {
|
|
18
|
+
if (t = o(e.nuxtLinkName), typeof t == "string") {
|
|
19
|
+
const { warn: n } = i();
|
|
20
|
+
n(
|
|
21
|
+
`Nuxt link component "${e.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
} else
|
|
25
|
+
t = "router-link";
|
|
26
|
+
return (n, d) => (l(), u(m(c(t)), null, {
|
|
27
|
+
default: p(() => [
|
|
28
|
+
f(n.$slots, "default")
|
|
37
29
|
]),
|
|
38
|
-
|
|
39
|
-
|
|
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));
|
|
30
|
+
_: 3
|
|
31
|
+
}));
|
|
65
32
|
}
|
|
66
33
|
});
|
|
67
34
|
export {
|
|
68
|
-
|
|
35
|
+
y as default
|
|
69
36
|
};
|
package/dist/index293.js
CHANGED
package/dist/index295.js
CHANGED
package/dist/index304.js
CHANGED
package/dist/index305.js
CHANGED
package/dist/index306.js
CHANGED
package/dist/index307.js
CHANGED
package/dist/index309.js
CHANGED
package/dist/index31.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as V, computed as r, ref as p, createElementBlock as _, openBlock as w, normalizeProps as l, guardReactiveProps as u, createElementVNode as i, mergeProps as E, renderSlot as C } from "vue";
|
|
2
|
-
import { isCssColor as c } from "./
|
|
3
|
-
import { when as A } from "./
|
|
2
|
+
import { isCssColor as c } from "./index217.js";
|
|
3
|
+
import { when as A } from "./index239.js";
|
|
4
4
|
const F = {
|
|
5
5
|
"aria-hidden": "true",
|
|
6
6
|
class: "bb-base-radio-container"
|
package/dist/index310.js
CHANGED
package/dist/index311.js
CHANGED
package/dist/index312.js
CHANGED
package/dist/index313.js
CHANGED
package/dist/index314.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { get as t } from "./index281.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
|
+
});
|
|
3
17
|
export {
|
|
4
|
-
o as
|
|
18
|
+
o as useItemText
|
|
5
19
|
};
|
package/dist/index315.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
-
});
|
|
1
|
+
import o from "./index259.js";
|
|
2
|
+
/* empty css */
|
|
17
3
|
export {
|
|
18
|
-
o as
|
|
4
|
+
o as default
|
|
19
5
|
};
|
package/dist/index316.js
CHANGED
package/dist/index317.js
CHANGED
package/dist/index318.js
CHANGED
|
@@ -1,6 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { __module as k } from "./index319.js";
|
|
2
|
+
var nt = k.exports, G;
|
|
3
|
+
function it() {
|
|
4
|
+
return G ? k.exports : (G = 1, function(I, ot) {
|
|
5
|
+
(function(E, F) {
|
|
6
|
+
I.exports = F();
|
|
7
|
+
})(nt, function() {
|
|
8
|
+
var E = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, F = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, Q = /\d/, L = /\d\d/, s = /\d\d?/, x = /\d*[^-_:/,()\s\d]+/, m = {}, X = function(t) {
|
|
9
|
+
return (t = +t) + (t > 68 ? 1900 : 2e3);
|
|
10
|
+
}, o = function(t) {
|
|
11
|
+
return function(r) {
|
|
12
|
+
this[t] = +r;
|
|
13
|
+
};
|
|
14
|
+
}, R = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
|
|
15
|
+
(this.zone || (this.zone = {})).offset = function(r) {
|
|
16
|
+
if (!r || r === "Z") return 0;
|
|
17
|
+
var e = r.match(/([+-]|\d\d)/g), n = 60 * e[1] + (+e[2] || 0);
|
|
18
|
+
return n === 0 ? 0 : e[0] === "+" ? -n : n;
|
|
19
|
+
}(t);
|
|
20
|
+
}], P = function(t) {
|
|
21
|
+
var r = m[t];
|
|
22
|
+
return r && (r.indexOf ? r : r.s.concat(r.f));
|
|
23
|
+
}, V = function(t, r) {
|
|
24
|
+
var e, n = m.meridiem;
|
|
25
|
+
if (n) {
|
|
26
|
+
for (var f = 1; f <= 24; f += 1) if (t.indexOf(n(f, 0, r)) > -1) {
|
|
27
|
+
e = f > 12;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
} else e = t === (r ? "pm" : "PM");
|
|
31
|
+
return e;
|
|
32
|
+
}, J = { A: [x, function(t) {
|
|
33
|
+
this.afternoon = V(t, !1);
|
|
34
|
+
}], a: [x, function(t) {
|
|
35
|
+
this.afternoon = V(t, !0);
|
|
36
|
+
}], Q: [Q, function(t) {
|
|
37
|
+
this.month = 3 * (t - 1) + 1;
|
|
38
|
+
}], S: [Q, function(t) {
|
|
39
|
+
this.milliseconds = 100 * +t;
|
|
40
|
+
}], SS: [L, function(t) {
|
|
41
|
+
this.milliseconds = 10 * +t;
|
|
42
|
+
}], SSS: [/\d{3}/, function(t) {
|
|
43
|
+
this.milliseconds = +t;
|
|
44
|
+
}], s: [s, o("seconds")], ss: [s, o("seconds")], m: [s, o("minutes")], mm: [s, o("minutes")], H: [s, o("hours")], h: [s, o("hours")], HH: [s, o("hours")], hh: [s, o("hours")], D: [s, o("day")], DD: [L, o("day")], Do: [x, function(t) {
|
|
45
|
+
var r = m.ordinal, e = t.match(/\d+/);
|
|
46
|
+
if (this.day = e[0], r) for (var n = 1; n <= 31; n += 1) r(n).replace(/\[|\]/g, "") === t && (this.day = n);
|
|
47
|
+
}], w: [s, o("week")], ww: [L, o("week")], M: [s, o("month")], MM: [L, o("month")], MMM: [x, function(t) {
|
|
48
|
+
var r = P("months"), e = (P("monthsShort") || r.map(function(n) {
|
|
49
|
+
return n.slice(0, 3);
|
|
50
|
+
})).indexOf(t) + 1;
|
|
51
|
+
if (e < 1) throw new Error();
|
|
52
|
+
this.month = e % 12 || e;
|
|
53
|
+
}], MMMM: [x, function(t) {
|
|
54
|
+
var r = P("months").indexOf(t) + 1;
|
|
55
|
+
if (r < 1) throw new Error();
|
|
56
|
+
this.month = r % 12 || r;
|
|
57
|
+
}], Y: [/[+-]?\d+/, o("year")], YY: [L, function(t) {
|
|
58
|
+
this.year = X(t);
|
|
59
|
+
}], YYYY: [/\d{4}/, o("year")], Z: R, ZZ: R };
|
|
60
|
+
function K(t) {
|
|
61
|
+
var r, e;
|
|
62
|
+
r = t, e = m && m.formats;
|
|
63
|
+
for (var n = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, u) {
|
|
64
|
+
var i = u && u.toUpperCase();
|
|
65
|
+
return l || e[u] || E[u] || e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
|
|
66
|
+
return Y || D.slice(1);
|
|
67
|
+
});
|
|
68
|
+
})).match(F), f = n.length, h = 0; h < f; h += 1) {
|
|
69
|
+
var $ = n[h], p = J[$], c = p && p[0], d = p && p[1];
|
|
70
|
+
n[h] = d ? { regex: c, parser: d } : $.replace(/^\[|\]$/g, "");
|
|
71
|
+
}
|
|
72
|
+
return function(v) {
|
|
73
|
+
for (var l = {}, u = 0, i = 0; u < f; u += 1) {
|
|
74
|
+
var M = n[u];
|
|
75
|
+
if (typeof M == "string") i += M.length;
|
|
76
|
+
else {
|
|
77
|
+
var Y = M.regex, D = M.parser, y = v.slice(i), g = Y.exec(y)[0];
|
|
78
|
+
D.call(l, g), v = v.replace(g, "");
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return function(w) {
|
|
82
|
+
var S = w.afternoon;
|
|
83
|
+
if (S !== void 0) {
|
|
84
|
+
var a = w.hours;
|
|
85
|
+
S ? a < 12 && (w.hours += 12) : a === 12 && (w.hours = 0), delete w.afternoon;
|
|
86
|
+
}
|
|
87
|
+
}(l), l;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
return function(t, r, e) {
|
|
91
|
+
e.p.customParseFormat = !0, t && t.parseTwoDigitYear && (X = t.parseTwoDigitYear);
|
|
92
|
+
var n = r.prototype, f = n.parse;
|
|
93
|
+
n.parse = function(h) {
|
|
94
|
+
var $ = h.date, p = h.utc, c = h.args;
|
|
95
|
+
this.$u = p;
|
|
96
|
+
var d = c[1];
|
|
97
|
+
if (typeof d == "string") {
|
|
98
|
+
var v = c[2] === !0, l = c[3] === !0, u = v || l, i = c[2];
|
|
99
|
+
l && (i = c[2]), m = this.$locale(), !v && i && (m = e.Ls[i]), this.$d = function(y, g, w, S) {
|
|
100
|
+
try {
|
|
101
|
+
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * y);
|
|
102
|
+
var a = K(g)(y), _ = a.year, A = a.month, N = a.day, W = a.hours, tt = a.minutes, rt = a.seconds, et = a.milliseconds, j = a.zone, B = a.week, C = /* @__PURE__ */ new Date(), H = N || (_ || A ? 1 : C.getDate()), O = _ || C.getFullYear(), T = 0;
|
|
103
|
+
_ && !A || (T = A > 0 ? A - 1 : C.getMonth());
|
|
104
|
+
var Z, z = W || 0, q = tt || 0, U = rt || 0, b = et || 0;
|
|
105
|
+
return j ? new Date(Date.UTC(O, T, H, z, q, U, b + 60 * j.offset * 1e3)) : w ? new Date(Date.UTC(O, T, H, z, q, U, b)) : (Z = new Date(O, T, H, z, q, U, b), B && (Z = S(Z).week(B).toDate()), Z);
|
|
106
|
+
} catch {
|
|
107
|
+
return /* @__PURE__ */ new Date("");
|
|
108
|
+
}
|
|
109
|
+
}($, d, p, e), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), u && $ != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
|
110
|
+
} else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
|
|
111
|
+
c[1] = d[Y - 1];
|
|
112
|
+
var D = e.apply(this, c);
|
|
113
|
+
if (D.isValid()) {
|
|
114
|
+
this.$d = D.$d, this.$L = D.$L, this.init();
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
Y === M && (this.$d = /* @__PURE__ */ new Date(""));
|
|
118
|
+
}
|
|
119
|
+
else f.call(this, h);
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
}(k), k.exports);
|
|
124
|
+
}
|
|
4
125
|
export {
|
|
5
|
-
|
|
126
|
+
it as __require
|
|
6
127
|
};
|
package/dist/index319.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
var o =
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
1
|
+
var o = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
o as
|
|
7
|
-
l as getDefaultExportFromCjs
|
|
3
|
+
o as __module
|
|
8
4
|
};
|
package/dist/index320.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { __module as e } from "./index321.js";
|
|
2
|
+
var a = e.exports, u;
|
|
3
|
+
function i() {
|
|
4
|
+
return u ? e.exports : (u = 1, function(_, o) {
|
|
5
|
+
(function(n, r) {
|
|
6
|
+
_.exports = r();
|
|
7
|
+
})(a, function() {
|
|
8
|
+
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(n) {
|
|
9
|
+
var r = ["th", "st", "nd", "rd"], t = n % 100;
|
|
10
|
+
return "[" + n + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
|
|
11
|
+
} };
|
|
12
|
+
});
|
|
13
|
+
}(e), e.exports);
|
|
3
14
|
}
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
i as __require
|
|
6
17
|
};
|
package/dist/index321.js
CHANGED