@tempots/beatui 1.1.4 → 1.2.0
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/{ar-CZ07-PLK.js → ar-C-kUt6f9.js} +1 -1
- package/dist/{ar-CFd5Xkva.cjs → ar-Dc56zcjW.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-CvQ0TQwi.js → auth-divider-DGNQZKEb.js} +7 -7
- package/dist/{auth-divider-BHAbd_PS.cjs → auth-divider-DfWGT38w.cjs} +1 -1
- package/dist/beatui.css +20 -7
- package/dist/beatui.tailwind.css +20 -7
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +5 -5
- package/dist/{colors-DwufPN8S.js → colors-C2sgnzFH.js} +7 -7
- package/dist/{colors-B-p6IzX9.cjs → colors-DPCHjRMj.cjs} +1 -1
- package/dist/{de-Dpx6i3Pv.js → de-CP0kbElb.js} +1 -1
- package/dist/{de-BJG9UqDS.cjs → de-DboQlEC4.cjs} +1 -1
- package/dist/{deep-merge-DEEd-Tte.cjs → deep-merge-Bjv1NvKj.cjs} +1 -1
- package/dist/{deep-merge-D1cBNWZX.js → deep-merge-DwXDd3iF.js} +234 -233
- package/dist/{duration-input-CdgMuk2b.cjs → duration-input-CjNZyVkf.cjs} +1 -1
- package/dist/{duration-input-Dpqj2Am9.js → duration-input-CnMMvPgT.js} +4 -4
- package/dist/{editor-toolbar-group-7eMZbEvH.js → editor-toolbar-group-DWUWUO-B.js} +2 -2
- package/dist/{editor-toolbar-group-BJWRgYtv.cjs → editor-toolbar-group-QVdBUbB8.cjs} +1 -1
- package/dist/{es-apq3F_om.js → es-BtIkcnsw.js} +1 -1
- package/dist/{es-BBqPUxJF.cjs → es-CAmE_0Ph.cjs} +1 -1
- package/dist/{fa-BYpfIkLu.js → fa-11-rZmQ-.js} +1 -1
- package/dist/{fa-d0o3KlIu.cjs → fa-D9LrFZdW.cjs} +1 -1
- package/dist/{fr-Ba5_hcn7.js → fr-C-L2F8w2.js} +1 -1
- package/dist/{fr-DzXA-sjH.cjs → fr-DKogQyss.cjs} +1 -1
- package/dist/{he-Dff_I80g.js → he-Bu1xGoQ9.js} +1 -1
- package/dist/{he-Cnx-qg1P.cjs → he-CVx91Jdr.cjs} +1 -1
- package/dist/{hi-BeJ8Q4O6.cjs → hi-BgrHV72l.cjs} +1 -1
- package/dist/{hi-7G-frHVR.js → hi-CewH-MAH.js} +1 -1
- package/dist/{index-C3o9GSH6.js → index-BGKz2Nol.js} +1 -1
- package/dist/{index-B5MAsOC-.cjs → index-DFF7Uahh.cjs} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +26 -26
- package/dist/{input-container-BZwpJgx6.cjs → input-container-BkPcNDaZ.cjs} +1 -1
- package/dist/{input-container-Q9wL2BUl.js → input-container-CO3DNqpp.js} +2 -2
- package/dist/{it-dSE5UgTZ.js → it-5hiKQO_p.js} +1 -1
- package/dist/{it-DE3pe-gS.cjs → it-B1rA1F9l.cjs} +1 -1
- package/dist/{ja-DRzjr2YR.js → ja-CGfEmZrm.js} +1 -1
- package/dist/{ja-yzk8mwox.cjs → ja-DZnjjqoi.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +10 -10
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +5 -5
- package/dist/{ko-rKqndOMO.cjs → ko-CDnYKYWU.cjs} +1 -1
- package/dist/{ko-7gpweMh7.js → ko-DZthvREd.js} +1 -1
- package/dist/lexical/index.cjs.js +1 -1
- package/dist/lexical/index.es.js +4 -4
- package/dist/{modal-ClnvWxzi.cjs → modal-DCxNGrzk.cjs} +1 -1
- package/dist/{modal-DXWQ-HUs.js → modal-YKqlh4Dk.js} +3 -3
- package/dist/{nl-DKHslb-6.cjs → nl-Bj8QnDEY.cjs} +1 -1
- package/dist/{nl-DAe4B7fb.js → nl-CcKyHlQ7.js} +1 -1
- package/dist/{notice-Dx4D1UOf.js → notice-Du3tWJTW.js} +4 -4
- package/dist/{notice-dOOD80F7.cjs → notice-Q0A1gIho.cjs} +1 -1
- package/dist/{oneof-branch-detection-bQKKfV32.cjs → oneof-branch-detection-BEkAezNi.cjs} +1 -1
- package/dist/{oneof-branch-detection-B57ZDbzM.js → oneof-branch-detection-DSzC0PkO.js} +1 -1
- package/dist/{pl-9yeqi1Kn.cjs → pl-BmuuxxVd.cjs} +1 -1
- package/dist/{pl-4xrzOC4A.js → pl-Mwtjp4MV.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +4 -4
- package/dist/{pt-DYQOe1Td.js → pt-BaTsY-8f.js} +1 -1
- package/dist/{pt-CCfVWHz4.cjs → pt-RiC0yeVA.cjs} +1 -1
- package/dist/{ru-FofxuqAJ.js → ru-CvbGmz5s.js} +1 -1
- package/dist/{ru-Cct0jttM.cjs → ru-pRqtOQHF.cjs} +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{text-input-DEAddaOi.js → text-input-BAn02BzO.js} +1 -1
- package/dist/{text-input-CynkbBpH.cjs → text-input-D_IxFd0M.cjs} +1 -1
- package/dist/{toolbar-e9POle8o.js → toolbar-BKan3NHw.js} +1 -1
- package/dist/{toolbar-Dz7R1kV3.cjs → toolbar-CnecqhaU.cjs} +1 -1
- package/dist/{tr-DhKxAXK0.cjs → tr-B9JhBJeL.cjs} +1 -1
- package/dist/{tr-BfKjkfhE.js → tr-YFqQdZjM.js} +1 -1
- package/dist/{translations-D8Jwi_d0.cjs → translations-C_-cObaF.cjs} +1 -1
- package/dist/{translations-BplmL3nb.js → translations-CxDUnbXn.js} +1 -1
- package/dist/{translations-B96REXIk.js → translations-DT5QQ4WO.js} +19 -19
- package/dist/{translations-BDGa_4jx.cjs → translations-qefRsdGi.cjs} +1 -1
- package/dist/types/components/form/input/date-input.d.ts +4 -4
- package/dist/types/components/form/input/date-time-input.d.ts +4 -4
- package/dist/types/components/form/input/input-container.d.ts +1 -1
- package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -2
- package/dist/{ur-DmfFC6MV.cjs → ur-BZakU0iv.cjs} +1 -1
- package/dist/{ur-COVuSAxC.js → ur-CdnwwnG_.js} +1 -1
- package/dist/{use-form-Ca0kF4af.cjs → use-form-BvBkVEKi.cjs} +1 -1
- package/dist/{use-form-CEY-gUUT.js → use-form-D_TJyZhP.js} +2 -2
- package/dist/{vi-DI3te8d5.js → vi-Bwvz1d_n.js} +1 -1
- package/dist/{vi-DvY-zvIr.cjs → vi-D1nly0nb.cjs} +1 -1
- package/dist/{widget-customization-CHxaaaEV.cjs → widget-customization-CD_NyRQ8.cjs} +1 -1
- package/dist/{widget-customization-BZ8aKWRK.js → widget-customization-D2a6SVP3.js} +5 -5
- package/dist/{zh-DJhzbpi2.cjs → zh-DBk7sSD9.cjs} +1 -1
- package/dist/{zh-DKIbNXv8.js → zh-hy7Uw6c5.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Task as ye, Use as O, Value as f, prop as ae, html as g, attr as
|
|
2
|
-
import { I as W, a as He, B as be } from "./input-container-
|
|
3
|
-
import { C as q, m as qe } from "./text-input-
|
|
4
|
-
import { I as Ae, m as Ye, c as Ge, C as oe, d as pe, e as Ce } from "./use-form-
|
|
5
|
-
import { B as F, d as ce, I as E, b as De, f as Ie } from "./translations-
|
|
1
|
+
import { Task as ye, Use as O, Value as f, prop as ae, html as g, attr as r, on as C, WithElement as te, Empty as M, aria as J, bind as ie, OnDispose as ne, coalesce as Ne, ForEach as ee, Fragment as N, Ensure as Pe, OneOfType as je, computedOf as A, input as se, emitValue as P, emitValueAsNumber as we, style as _e, When as U, NotEmpty as We, Repeat as Ze, signal as ke } from "@tempots/dom";
|
|
2
|
+
import { I as W, a as He, B as be } from "./input-container-CO3DNqpp.js";
|
|
3
|
+
import { C as q, m as qe } from "./text-input-BAn02BzO.js";
|
|
4
|
+
import { I as Ae, m as Ye, c as Ge, C as oe, d as pe, e as Ce } from "./use-form-D_TJyZhP.js";
|
|
5
|
+
import { B as F, d as ce, I as E, b as De, f as Ie } from "./translations-DT5QQ4WO.js";
|
|
6
6
|
import { S as Le } from "./stack-BLMteGTn.js";
|
|
7
7
|
import { objectEntries as Je, delayedAnimationFrame as Xe, strictEqual as K } from "@tempots/std";
|
|
8
8
|
import { ElementRect as Qe } from "@tempots/ui";
|
|
@@ -24,7 +24,7 @@ function de({
|
|
|
24
24
|
value: e,
|
|
25
25
|
accept: n = "*/*",
|
|
26
26
|
enableClick: s = !0,
|
|
27
|
-
content:
|
|
27
|
+
content: l,
|
|
28
28
|
disabled: h = !1,
|
|
29
29
|
allowMultiple: o
|
|
30
30
|
}) {
|
|
@@ -51,11 +51,11 @@ function de({
|
|
|
51
51
|
f.get(s) && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), i(a));
|
|
52
52
|
};
|
|
53
53
|
return g.div(
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
r.role("button"),
|
|
55
|
+
r.tabindex(
|
|
56
56
|
f.map(s, (a) => a ? 0 : -1)
|
|
57
57
|
),
|
|
58
|
-
|
|
58
|
+
r.style("position: relative;"),
|
|
59
59
|
C.dragover(p),
|
|
60
60
|
C.dragleave(m),
|
|
61
61
|
C.drop(v),
|
|
@@ -63,11 +63,11 @@ function de({
|
|
|
63
63
|
C.keydown(S),
|
|
64
64
|
// Hidden file input
|
|
65
65
|
g.input(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
r.type("file"),
|
|
67
|
+
r.disabled(h),
|
|
68
|
+
r.accept(n),
|
|
69
|
+
r.multiple(o),
|
|
70
|
+
r.style(
|
|
71
71
|
"position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
|
|
72
72
|
),
|
|
73
73
|
C.change(D),
|
|
@@ -82,7 +82,7 @@ function de({
|
|
|
82
82
|
// Screen reader instructions
|
|
83
83
|
J.label(ie(d.$.dropZoneInstructions)(s)),
|
|
84
84
|
// Content
|
|
85
|
-
|
|
85
|
+
l({
|
|
86
86
|
files: b,
|
|
87
87
|
clear: () => b.value = [],
|
|
88
88
|
change: (a) => b.set(a)
|
|
@@ -92,7 +92,7 @@ function de({
|
|
|
92
92
|
}
|
|
93
93
|
const ge = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
94
94
|
const s = `${ge}${t}`;
|
|
95
|
-
return ne(f.on(e, (
|
|
95
|
+
return ne(f.on(e, (l) => Reflect.set(n, s, l)));
|
|
96
96
|
}), $t = (t, e) => {
|
|
97
97
|
const n = `${ge}${t}`;
|
|
98
98
|
return (s) => {
|
|
@@ -101,27 +101,27 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
|
101
101
|
}, $e = (t, e) => {
|
|
102
102
|
const n = `${ge}${t}`;
|
|
103
103
|
return (s) => {
|
|
104
|
-
const
|
|
104
|
+
const l = s.target, h = l.selectedIndex, o = l.options[h];
|
|
105
105
|
e(Reflect.get(o, n));
|
|
106
106
|
};
|
|
107
107
|
}, Ue = (t, e, n) => Pe(
|
|
108
108
|
t,
|
|
109
109
|
(s) => je(s, {
|
|
110
|
-
value: (
|
|
110
|
+
value: (l) => {
|
|
111
111
|
const h = A(
|
|
112
|
-
|
|
112
|
+
l,
|
|
113
113
|
n
|
|
114
114
|
)((o, d) => e(o.value, d));
|
|
115
115
|
return g.option(
|
|
116
|
-
|
|
117
|
-
et("value",
|
|
118
|
-
|
|
116
|
+
r.selected(h),
|
|
117
|
+
et("value", l.$.value),
|
|
118
|
+
l.$.label
|
|
119
119
|
);
|
|
120
120
|
},
|
|
121
|
-
group: (
|
|
122
|
-
|
|
121
|
+
group: (l) => g.optgroup(
|
|
122
|
+
r.label(l.$.group),
|
|
123
123
|
ee(
|
|
124
|
-
|
|
124
|
+
l.$.options,
|
|
125
125
|
(h) => Ue(
|
|
126
126
|
h,
|
|
127
127
|
e,
|
|
@@ -136,7 +136,7 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
|
136
136
|
value: e,
|
|
137
137
|
onBlur: n,
|
|
138
138
|
onChange: s,
|
|
139
|
-
onInput:
|
|
139
|
+
onInput: l,
|
|
140
140
|
options: h,
|
|
141
141
|
unselectedLabel: o,
|
|
142
142
|
equality: d = (p, m) => p === m,
|
|
@@ -164,18 +164,18 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
|
164
164
|
return m.observe(p, { childList: !0 }), ne(() => m.disconnect());
|
|
165
165
|
}),
|
|
166
166
|
q(t),
|
|
167
|
-
|
|
167
|
+
r.class("bc-native-select bc-input"),
|
|
168
168
|
O(
|
|
169
169
|
F,
|
|
170
170
|
(p) => g.option(
|
|
171
|
-
|
|
171
|
+
r.hidden("hidden"),
|
|
172
172
|
Ne(o, p.$.selectOne)
|
|
173
173
|
)
|
|
174
174
|
),
|
|
175
175
|
ee(h, (p) => Ue(p, d, e)),
|
|
176
176
|
n != null ? C.blur(n) : M,
|
|
177
177
|
s != null ? C.change($e("value", (p) => s(p))) : M,
|
|
178
|
-
|
|
178
|
+
l != null ? C.input($e("value", (p) => l(p))) : M
|
|
179
179
|
)
|
|
180
180
|
},
|
|
181
181
|
C.click(() => {
|
|
@@ -188,9 +188,9 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
|
188
188
|
);
|
|
189
189
|
};
|
|
190
190
|
function nt(t) {
|
|
191
|
-
const { controller: e, onChange: n, onBlur: s, ...
|
|
191
|
+
const { controller: e, onChange: n, onBlur: s, ...l } = t;
|
|
192
192
|
return tt({
|
|
193
|
-
...
|
|
193
|
+
...l,
|
|
194
194
|
value: e.signal,
|
|
195
195
|
onChange: Ge(e, n),
|
|
196
196
|
onBlur: Ye(e, s)
|
|
@@ -203,16 +203,16 @@ function Mt(t) {
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
function Ee(t, e, n) {
|
|
206
|
-
const s = f.map(t, (o) => o != null),
|
|
206
|
+
const s = f.map(t, (o) => o != null), l = A(
|
|
207
207
|
s,
|
|
208
208
|
e ?? !1
|
|
209
209
|
)((o, d) => !o || d), h = ce.clearValue;
|
|
210
210
|
return g.button(
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
r.type("button"),
|
|
212
|
+
r.class("bc-input-container__reset"),
|
|
213
213
|
J.label(h),
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
r.title(h),
|
|
215
|
+
r.disabled(l),
|
|
216
216
|
E({ icon: "mdi:close", size: "sm" }),
|
|
217
217
|
C.click((o) => {
|
|
218
218
|
o.stopPropagation(), n?.(null);
|
|
@@ -220,7 +220,7 @@ function Ee(t, e, n) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
function Me(...t) {
|
|
223
|
-
return g.div(
|
|
223
|
+
return g.div(r.class("bc-group"), ...t);
|
|
224
224
|
}
|
|
225
225
|
function st(t) {
|
|
226
226
|
const e = String(t), n = e.indexOf(".");
|
|
@@ -233,8 +233,8 @@ function G(t, e) {
|
|
|
233
233
|
return Math.round(t * s) / s;
|
|
234
234
|
}
|
|
235
235
|
const St = (t) => {
|
|
236
|
-
const { value: e, step: n, min: s, max:
|
|
237
|
-
const i = s != null ? f.get(s) : void 0, u =
|
|
236
|
+
const { value: e, step: n, min: s, max: l, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (v) => {
|
|
237
|
+
const i = s != null ? f.get(s) : void 0, u = l != null ? f.get(l) : void 0;
|
|
238
238
|
return i != null && v < i ? i : u != null && v > u ? u : v;
|
|
239
239
|
}, p = n != null ? O(F, (v) => {
|
|
240
240
|
const i = A(
|
|
@@ -242,7 +242,7 @@ const St = (t) => {
|
|
|
242
242
|
s
|
|
243
243
|
)((a, x) => x == null ? !0 : (a ?? 0) > x), u = A(
|
|
244
244
|
e,
|
|
245
|
-
|
|
245
|
+
l
|
|
246
246
|
)((a, x) => x == null ? !0 : (a ?? 0) < x), D = (a) => {
|
|
247
247
|
const x = f.get(e) ?? 0, $ = f.get(n), I = a?.shiftKey ? 10 : 1, V = G(
|
|
248
248
|
x - $ * I,
|
|
@@ -256,21 +256,21 @@ const St = (t) => {
|
|
|
256
256
|
const x = f.get(e) ?? 0, $ = f.get(n), I = a?.shiftKey ? 10 : 1, V = G(
|
|
257
257
|
x + $ * I,
|
|
258
258
|
$
|
|
259
|
-
), k =
|
|
259
|
+
), k = l != null ? f.get(l) : void 0;
|
|
260
260
|
if (k != null && V > k)
|
|
261
261
|
return;
|
|
262
262
|
const c = w(V);
|
|
263
263
|
c !== x && (o?.(c), d?.(c));
|
|
264
264
|
};
|
|
265
265
|
return Le(
|
|
266
|
-
|
|
266
|
+
r.class("bc-number-input-steppers"),
|
|
267
267
|
// Increment second
|
|
268
268
|
g.button(
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
r.type("button"),
|
|
270
|
+
r.class(
|
|
271
271
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
272
272
|
),
|
|
273
|
-
|
|
273
|
+
r.disabled(
|
|
274
274
|
A(
|
|
275
275
|
u,
|
|
276
276
|
t.disabled ?? !1
|
|
@@ -282,11 +282,11 @@ const St = (t) => {
|
|
|
282
282
|
),
|
|
283
283
|
// Decrement first (matches tests expecting first button to be decrement)
|
|
284
284
|
g.button(
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
r.type("button"),
|
|
286
|
+
r.class(
|
|
287
287
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
288
288
|
),
|
|
289
|
-
|
|
289
|
+
r.disabled(
|
|
290
290
|
A(
|
|
291
291
|
i,
|
|
292
292
|
t.disabled ?? !1
|
|
@@ -301,12 +301,12 @@ const St = (t) => {
|
|
|
301
301
|
return W({
|
|
302
302
|
...t,
|
|
303
303
|
input: se.number(
|
|
304
|
-
s != null ?
|
|
305
|
-
|
|
304
|
+
s != null ? r.min(s) : M,
|
|
305
|
+
l != null ? r.max(l) : M,
|
|
306
306
|
q(t),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
r.valueAsNumber(e),
|
|
308
|
+
r.step(n),
|
|
309
|
+
r.class("bc-input bc-number-input"),
|
|
310
310
|
h != null ? C.blur(P(h)) : M,
|
|
311
311
|
o != null ? C.change(we(o)) : M,
|
|
312
312
|
d != null ? C.input(we(d)) : M,
|
|
@@ -330,14 +330,14 @@ function rt(t, e, n) {
|
|
|
330
330
|
function it(t) {
|
|
331
331
|
if (t == null) return "";
|
|
332
332
|
const e = /* @__PURE__ */ new Map(), n = De(t, "solid", "light"), s = De(t, "solid", "dark");
|
|
333
|
-
return e.set("--si-indicator-bg", n.backgroundColor), e.set("--si-active-text", n.textColor), e.set("--si-indicator-bg-dark", s.backgroundColor), e.set("--si-active-text-dark", s.textColor), Array.from(e.entries()).map(([
|
|
333
|
+
return e.set("--si-indicator-bg", n.backgroundColor), e.set("--si-active-text", n.textColor), e.set("--si-indicator-bg-dark", s.backgroundColor), e.set("--si-active-text-dark", s.textColor), Array.from(e.entries()).map(([l, h]) => `${l}: ${h}`).join("; ");
|
|
334
334
|
}
|
|
335
335
|
function Tt({
|
|
336
336
|
options: t,
|
|
337
337
|
value: e,
|
|
338
338
|
onChange: n,
|
|
339
339
|
size: s = "md",
|
|
340
|
-
disabled:
|
|
340
|
+
disabled: l = !1,
|
|
341
341
|
variant: h = "pill",
|
|
342
342
|
color: o
|
|
343
343
|
}, ...d) {
|
|
@@ -353,10 +353,10 @@ function Tt({
|
|
|
353
353
|
lt
|
|
354
354
|
);
|
|
355
355
|
return g.div(
|
|
356
|
-
|
|
356
|
+
r.class(
|
|
357
357
|
A(
|
|
358
358
|
s,
|
|
359
|
-
|
|
359
|
+
l,
|
|
360
360
|
h
|
|
361
361
|
)(
|
|
362
362
|
(m, v, i) => rt(
|
|
@@ -366,13 +366,13 @@ function Tt({
|
|
|
366
366
|
)
|
|
367
367
|
)
|
|
368
368
|
),
|
|
369
|
-
|
|
369
|
+
r.style(
|
|
370
370
|
o != null ? f.map(o, (m) => it(m)) : ""
|
|
371
371
|
),
|
|
372
372
|
g.div(
|
|
373
|
-
|
|
373
|
+
r.class("bc-segmented-input__container"),
|
|
374
374
|
g.div(
|
|
375
|
-
|
|
375
|
+
r.class("bc-segmented-input__indicator"),
|
|
376
376
|
_e.width(
|
|
377
377
|
A(
|
|
378
378
|
e,
|
|
@@ -394,13 +394,13 @@ function Tt({
|
|
|
394
394
|
),
|
|
395
395
|
// clickable buttons
|
|
396
396
|
b.map(({ label: m, key: v }, i) => g.button(
|
|
397
|
-
|
|
397
|
+
r.type("button"),
|
|
398
398
|
C.click((u) => {
|
|
399
|
-
u.preventDefault(), f.get(
|
|
399
|
+
u.preventDefault(), f.get(l) || n?.(v);
|
|
400
400
|
}),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
401
|
+
r.disabled(l),
|
|
402
|
+
r.class("bc-segmented-input__segment"),
|
|
403
|
+
r.class(
|
|
404
404
|
f.map(e, (u) => u === v ? "bc-segmented-input__segment--active" : "bc-segmented-input__segment--inactive")
|
|
405
405
|
),
|
|
406
406
|
Qe((u) => {
|
|
@@ -444,11 +444,11 @@ function me(t) {
|
|
|
444
444
|
ne(() => {
|
|
445
445
|
e.value && URL.revokeObjectURL(e.value);
|
|
446
446
|
}),
|
|
447
|
-
|
|
447
|
+
r.class("bc-file-input__thumbnail-container"),
|
|
448
448
|
g.img(
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
r.src(e),
|
|
450
|
+
r.alt(t.map((n) => n.name)),
|
|
451
|
+
r.class("bc-file-input__thumbnail")
|
|
452
452
|
)
|
|
453
453
|
);
|
|
454
454
|
},
|
|
@@ -459,7 +459,7 @@ const zt = (t, ...e) => {
|
|
|
459
459
|
const {
|
|
460
460
|
value: n = ae([]),
|
|
461
461
|
accept: s = "*/*",
|
|
462
|
-
maxFiles:
|
|
462
|
+
maxFiles: l,
|
|
463
463
|
maxFileSize: h,
|
|
464
464
|
onChange: o,
|
|
465
465
|
onBlur: d,
|
|
@@ -470,8 +470,8 @@ const zt = (t, ...e) => {
|
|
|
470
470
|
...v
|
|
471
471
|
} = t, i = n, u = f.map(p, (k) => k === "input"), D = f.map(p, (k) => k === "compact"), S = (k) => {
|
|
472
472
|
let c = k;
|
|
473
|
-
if (
|
|
474
|
-
const y = f.get(
|
|
473
|
+
if (l != null) {
|
|
474
|
+
const y = f.get(l);
|
|
475
475
|
c = c.slice(0, y);
|
|
476
476
|
}
|
|
477
477
|
if (h) {
|
|
@@ -491,16 +491,16 @@ const zt = (t, ...e) => {
|
|
|
491
491
|
}) => O(
|
|
492
492
|
F,
|
|
493
493
|
(T) => g.div(
|
|
494
|
-
|
|
494
|
+
r.class("bc-file-input__drop-zone"),
|
|
495
495
|
g.div(
|
|
496
|
-
|
|
496
|
+
r.class(
|
|
497
497
|
"bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"
|
|
498
498
|
),
|
|
499
499
|
E({ icon: "mdi:cloud-upload-outline", size: "xl" }),
|
|
500
500
|
g.div(
|
|
501
|
-
|
|
501
|
+
r.class("bc-file-input__drop-zone-text"),
|
|
502
502
|
ie(T.$.filesInputInstructions)(
|
|
503
|
-
|
|
503
|
+
l,
|
|
504
504
|
h,
|
|
505
505
|
T.$.fileSizeUnits.value
|
|
506
506
|
)
|
|
@@ -512,28 +512,28 @@ const zt = (t, ...e) => {
|
|
|
512
512
|
}) => O(
|
|
513
513
|
F,
|
|
514
514
|
(c) => g.div(
|
|
515
|
-
|
|
515
|
+
r.class("bc-file-input__compact-drop-zone"),
|
|
516
516
|
U(
|
|
517
517
|
k.map((y) => y.length > 0),
|
|
518
518
|
() => g.div(
|
|
519
|
-
|
|
519
|
+
r.class("bc-file-input__compact-file-list"),
|
|
520
520
|
ee(k, (y, T) => {
|
|
521
521
|
const z = T.index;
|
|
522
522
|
return g.div(
|
|
523
|
-
|
|
523
|
+
r.class("bc-file-input__compact-file-item"),
|
|
524
524
|
g.div(
|
|
525
|
-
|
|
525
|
+
r.class("bc-file-input__compact-file-icon"),
|
|
526
526
|
me(y)
|
|
527
527
|
),
|
|
528
528
|
g.div(
|
|
529
|
-
|
|
529
|
+
r.class("bc-file-input__compact-file-info"),
|
|
530
530
|
g.div(
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
r.class("bc-file-input__compact-file-name"),
|
|
532
|
+
r.title(y.$.name),
|
|
533
533
|
y.$.name
|
|
534
534
|
),
|
|
535
535
|
g.div(
|
|
536
|
-
|
|
536
|
+
r.class("bc-file-input__compact-file-meta"),
|
|
537
537
|
A(
|
|
538
538
|
y.$.size,
|
|
539
539
|
c.$.fileSizeUnits
|
|
@@ -552,18 +552,18 @@ const zt = (t, ...e) => {
|
|
|
552
552
|
disabled: b,
|
|
553
553
|
onClick: () => a(z)
|
|
554
554
|
},
|
|
555
|
-
|
|
555
|
+
r.class("bc-file-input__compact-remove-button")
|
|
556
556
|
)
|
|
557
557
|
);
|
|
558
558
|
})
|
|
559
559
|
),
|
|
560
560
|
() => g.div(
|
|
561
|
-
|
|
561
|
+
r.class("bc-file-input__compact-placeholder"),
|
|
562
562
|
E({ icon: "mdi:cloud-upload-outline", size: "lg" }),
|
|
563
563
|
g.div(
|
|
564
|
-
|
|
564
|
+
r.class("bc-file-input__compact-placeholder-text"),
|
|
565
565
|
ie(c.$.filesInputInstructions)(
|
|
566
|
-
|
|
566
|
+
l,
|
|
567
567
|
h,
|
|
568
568
|
c.$.fileSizeUnits.value
|
|
569
569
|
)
|
|
@@ -576,29 +576,29 @@ const zt = (t, ...e) => {
|
|
|
576
576
|
}) => O(
|
|
577
577
|
F,
|
|
578
578
|
(c) => g.div(
|
|
579
|
-
|
|
579
|
+
r.class("bc-file-input__compact-input"),
|
|
580
580
|
U(
|
|
581
581
|
k.map((y) => y.length > 0),
|
|
582
582
|
() => g.span(
|
|
583
|
-
|
|
583
|
+
r.class("bc-file-input__compact-value"),
|
|
584
584
|
ee(
|
|
585
585
|
k,
|
|
586
586
|
(y) => g.span(
|
|
587
|
-
|
|
587
|
+
r.class("bc-file-input__compact-value-item"),
|
|
588
588
|
me(y),
|
|
589
589
|
g.span(
|
|
590
|
-
|
|
590
|
+
r.class("bc-file-input__compact-value-item-name"),
|
|
591
591
|
y.$.name
|
|
592
592
|
)
|
|
593
593
|
)
|
|
594
594
|
)
|
|
595
595
|
),
|
|
596
596
|
() => g.span(
|
|
597
|
-
|
|
597
|
+
r.class("bc-file-input__compact-placeholder"),
|
|
598
598
|
E({ icon: "mdi:cloud-upload-outline", size: "md" }),
|
|
599
599
|
" ",
|
|
600
600
|
ie(c.$.filesInputInstructions)(
|
|
601
|
-
|
|
601
|
+
l,
|
|
602
602
|
h,
|
|
603
603
|
c.$.fileSizeUnits.value
|
|
604
604
|
)
|
|
@@ -624,7 +624,7 @@ const zt = (t, ...e) => {
|
|
|
624
624
|
disabled: b,
|
|
625
625
|
onClick: x
|
|
626
626
|
},
|
|
627
|
-
|
|
627
|
+
r.class("bc-file-input__compact-clear")
|
|
628
628
|
)
|
|
629
629
|
)
|
|
630
630
|
),
|
|
@@ -632,12 +632,12 @@ const zt = (t, ...e) => {
|
|
|
632
632
|
input: U(
|
|
633
633
|
u,
|
|
634
634
|
() => g.div(
|
|
635
|
-
|
|
635
|
+
r.class("bc-file-input bc-file-input--input"),
|
|
636
636
|
de({
|
|
637
637
|
value: i,
|
|
638
638
|
accept: s,
|
|
639
639
|
enableClick: !0,
|
|
640
|
-
allowMultiple: f.map(
|
|
640
|
+
allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
|
|
641
641
|
disabled: b,
|
|
642
642
|
onChange: S,
|
|
643
643
|
content: V
|
|
@@ -646,24 +646,24 @@ const zt = (t, ...e) => {
|
|
|
646
646
|
() => U(
|
|
647
647
|
D,
|
|
648
648
|
() => g.div(
|
|
649
|
-
|
|
649
|
+
r.class("bc-file-input bc-file-input--compact"),
|
|
650
650
|
de({
|
|
651
651
|
value: i,
|
|
652
652
|
accept: s,
|
|
653
653
|
enableClick: !0,
|
|
654
|
-
allowMultiple: f.map(
|
|
654
|
+
allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
|
|
655
655
|
disabled: b,
|
|
656
656
|
onChange: S,
|
|
657
657
|
content: I
|
|
658
658
|
})
|
|
659
659
|
),
|
|
660
660
|
() => g.div(
|
|
661
|
-
|
|
661
|
+
r.class("bc-file-input"),
|
|
662
662
|
de({
|
|
663
663
|
value: i,
|
|
664
664
|
accept: s,
|
|
665
665
|
enableClick: !0,
|
|
666
|
-
allowMultiple: f.map(
|
|
666
|
+
allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
|
|
667
667
|
disabled: b,
|
|
668
668
|
onChange: S,
|
|
669
669
|
content: $
|
|
@@ -674,24 +674,24 @@ const zt = (t, ...e) => {
|
|
|
674
674
|
i,
|
|
675
675
|
() => N(
|
|
676
676
|
g.div(
|
|
677
|
-
|
|
677
|
+
r.class("bc-file-input__file-list"),
|
|
678
678
|
ee(i, (c, y) => {
|
|
679
679
|
const T = y.index;
|
|
680
680
|
return g.div(
|
|
681
|
-
|
|
681
|
+
r.class("bc-file-input__file-item"),
|
|
682
682
|
g.div(
|
|
683
|
-
|
|
683
|
+
r.class("bc-file-input__file-icon"),
|
|
684
684
|
me(c)
|
|
685
685
|
),
|
|
686
686
|
g.div(
|
|
687
|
-
|
|
687
|
+
r.class("bc-file-input__file-info"),
|
|
688
688
|
g.div(
|
|
689
|
-
|
|
690
|
-
|
|
689
|
+
r.class("bc-file-input__file-name"),
|
|
690
|
+
r.title(c.$.name),
|
|
691
691
|
c.$.name
|
|
692
692
|
),
|
|
693
693
|
g.div(
|
|
694
|
-
|
|
694
|
+
r.class("bc-file-input__file-meta"),
|
|
695
695
|
A(
|
|
696
696
|
c.$.size,
|
|
697
697
|
k.$.fileSizeUnits
|
|
@@ -712,7 +712,7 @@ const zt = (t, ...e) => {
|
|
|
712
712
|
disabled: b,
|
|
713
713
|
onClick: () => a(T)
|
|
714
714
|
},
|
|
715
|
-
|
|
715
|
+
r.class("bc-file-input__remove-button")
|
|
716
716
|
)
|
|
717
717
|
);
|
|
718
718
|
})
|
|
@@ -720,13 +720,13 @@ const zt = (t, ...e) => {
|
|
|
720
720
|
U(
|
|
721
721
|
i.map(({ length: c }) => c > 1),
|
|
722
722
|
() => g.div(
|
|
723
|
-
|
|
723
|
+
r.class(
|
|
724
724
|
"bc-file-input__clear-all-button-container"
|
|
725
725
|
),
|
|
726
726
|
g.button(
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
727
|
+
r.type("button"),
|
|
728
|
+
r.class("bc-file-input__clear-all-button"),
|
|
729
|
+
r.disabled(b),
|
|
730
730
|
k.$.clearAllFiles,
|
|
731
731
|
C.click((c) => {
|
|
732
732
|
c.preventDefault(), c.stopPropagation(), x();
|
|
@@ -746,11 +746,11 @@ const zt = (t, ...e) => {
|
|
|
746
746
|
);
|
|
747
747
|
};
|
|
748
748
|
function at(t, e, n) {
|
|
749
|
-
const s = t.length.map((
|
|
749
|
+
const s = t.length.map((l) => l);
|
|
750
750
|
return Ze(
|
|
751
751
|
s,
|
|
752
|
-
(
|
|
753
|
-
const h = t.item(
|
|
752
|
+
(l) => {
|
|
753
|
+
const h = t.item(l.index), o = [];
|
|
754
754
|
return N(
|
|
755
755
|
ne(() => {
|
|
756
756
|
o.forEach((d) => d());
|
|
@@ -758,32 +758,32 @@ function at(t, e, n) {
|
|
|
758
758
|
e({
|
|
759
759
|
list: t,
|
|
760
760
|
item: h,
|
|
761
|
-
position:
|
|
762
|
-
remove: () => t.removeAt(
|
|
761
|
+
position: l,
|
|
762
|
+
remove: () => t.removeAt(l.index),
|
|
763
763
|
move: (d) => {
|
|
764
764
|
switch (d) {
|
|
765
765
|
case "up":
|
|
766
|
-
if (
|
|
767
|
-
t.move(
|
|
766
|
+
if (l.index === 0) return;
|
|
767
|
+
t.move(l.index, l.index - 1);
|
|
768
768
|
break;
|
|
769
769
|
case "down":
|
|
770
|
-
if (
|
|
771
|
-
t.move(
|
|
770
|
+
if (l.index === t.length.value - 1) return;
|
|
771
|
+
t.move(l.index, l.index + 1);
|
|
772
772
|
break;
|
|
773
773
|
case "first":
|
|
774
|
-
t.move(
|
|
774
|
+
t.move(l.index, 0);
|
|
775
775
|
break;
|
|
776
776
|
case "last":
|
|
777
|
-
t.move(
|
|
777
|
+
t.move(l.index, t.length.value - 1);
|
|
778
778
|
}
|
|
779
779
|
},
|
|
780
780
|
canMove: (d) => {
|
|
781
781
|
const b = (() => {
|
|
782
782
|
switch (d) {
|
|
783
783
|
case "up":
|
|
784
|
-
return ke(
|
|
784
|
+
return ke(l.index > 0);
|
|
785
785
|
case "down":
|
|
786
|
-
return t.length.map((w) =>
|
|
786
|
+
return t.length.map((w) => l.index < w - 1);
|
|
787
787
|
}
|
|
788
788
|
})();
|
|
789
789
|
return o.push(() => b.dispose()), b;
|
|
@@ -792,9 +792,9 @@ function at(t, e, n) {
|
|
|
792
792
|
const b = (() => {
|
|
793
793
|
switch (d) {
|
|
794
794
|
case "up":
|
|
795
|
-
return ke(
|
|
795
|
+
return ke(l.index === 0);
|
|
796
796
|
case "down":
|
|
797
|
-
return t.length.map((w) =>
|
|
797
|
+
return t.length.map((w) => l.index === w - 1);
|
|
798
798
|
}
|
|
799
799
|
})();
|
|
800
800
|
return o.push(() => b.dispose()), b;
|
|
@@ -812,18 +812,18 @@ const Se = {
|
|
|
812
812
|
}, ut = (t) => t instanceof RegExp;
|
|
813
813
|
function Oe(t, e, n) {
|
|
814
814
|
if (t == null) return [];
|
|
815
|
-
const s = n ? { ...Se, ...e } : e ?? Se,
|
|
815
|
+
const s = n ? { ...Se, ...e } : e ?? Se, l = (o, d) => {
|
|
816
816
|
const b = s[d];
|
|
817
817
|
b ? o.push({ type: "pattern", name: d, ...b }) : o.push({ type: "literal", char: d });
|
|
818
818
|
}, h = [];
|
|
819
819
|
if (typeof t == "string") {
|
|
820
|
-
for (const o of t)
|
|
820
|
+
for (const o of t) l(h, o);
|
|
821
821
|
return h;
|
|
822
822
|
}
|
|
823
823
|
for (const o of t)
|
|
824
824
|
if (typeof o == "string")
|
|
825
|
-
if (o.length <= 1)
|
|
826
|
-
else for (const d of o)
|
|
825
|
+
if (o.length <= 1) l(h, o);
|
|
826
|
+
else for (const d of o) l(h, d);
|
|
827
827
|
else ut(o) ? h.push({ type: "pattern", pattern: o }) : typeof o == "object" && o && h.push(o);
|
|
828
828
|
return h;
|
|
829
829
|
}
|
|
@@ -843,11 +843,11 @@ function pt(t, e) {
|
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
|
-
function Te(t, e, n, s,
|
|
846
|
+
function Te(t, e, n, s, l, h) {
|
|
847
847
|
const o = {
|
|
848
848
|
raw: t,
|
|
849
849
|
previousConformed: e,
|
|
850
|
-
cursor:
|
|
850
|
+
cursor: l ?? t.length,
|
|
851
851
|
completed: !1
|
|
852
852
|
}, d = s.definitions ?? {}, b = typeof n == "function" ? n(t, o) : n, w = Oe(
|
|
853
853
|
b,
|
|
@@ -905,7 +905,7 @@ const Fe = (t) => {
|
|
|
905
905
|
value: e,
|
|
906
906
|
onBlur: n,
|
|
907
907
|
onChange: s,
|
|
908
|
-
onInput:
|
|
908
|
+
onInput: l,
|
|
909
909
|
onAccept: h,
|
|
910
910
|
onComplete: o,
|
|
911
911
|
mask: d,
|
|
@@ -986,14 +986,14 @@ const Fe = (t) => {
|
|
|
986
986
|
conformed: H,
|
|
987
987
|
completed: ve,
|
|
988
988
|
cursor: ue
|
|
989
|
-
}), y === "input" ?
|
|
989
|
+
}), y === "input" ? l?.(H) : (s?.(H), ve && o?.({ raw: xe, conformed: H }));
|
|
990
990
|
};
|
|
991
991
|
return W({
|
|
992
992
|
...t,
|
|
993
993
|
input: se.text(
|
|
994
994
|
q(t),
|
|
995
|
-
|
|
996
|
-
|
|
995
|
+
r.value(V),
|
|
996
|
+
r.class("bc-input"),
|
|
997
997
|
n != null ? C.blur(n) : M,
|
|
998
998
|
te(
|
|
999
999
|
(c) => c instanceof HTMLInputElement ? N(
|
|
@@ -1030,17 +1030,17 @@ const Fe = (t) => {
|
|
|
1030
1030
|
)
|
|
1031
1031
|
});
|
|
1032
1032
|
}, Bt = (t) => {
|
|
1033
|
-
const { value: e, onBlur: n, onChange: s, onInput:
|
|
1033
|
+
const { value: e, onBlur: n, onChange: s, onInput: l, rows: h } = t;
|
|
1034
1034
|
return W({
|
|
1035
1035
|
...t,
|
|
1036
1036
|
input: g.textarea(
|
|
1037
1037
|
q(t),
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
r.rows(h ?? 3),
|
|
1039
|
+
r.value(e),
|
|
1040
|
+
r.class("bc-input"),
|
|
1041
1041
|
n != null ? C.blur(P(n)) : M,
|
|
1042
1042
|
s != null ? C.change(P(s)) : M,
|
|
1043
|
-
|
|
1043
|
+
l != null ? C.input(P(l)) : M
|
|
1044
1044
|
)
|
|
1045
1045
|
});
|
|
1046
1046
|
}, ze = (t) => {
|
|
@@ -1048,8 +1048,8 @@ const Fe = (t) => {
|
|
|
1048
1048
|
const e = Number(t);
|
|
1049
1049
|
return Number.isNaN(e) ? null : e;
|
|
1050
1050
|
}, Vt = (t) => {
|
|
1051
|
-
const { value: e, step: n, min: s, max:
|
|
1052
|
-
const u = s != null ? f.get(s) : void 0, D =
|
|
1051
|
+
const { value: e, step: n, min: s, max: l, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (i) => {
|
|
1052
|
+
const u = s != null ? f.get(s) : void 0, D = l != null ? f.get(l) : void 0;
|
|
1053
1053
|
return u != null && i < u ? u : D != null && i > D ? D : i;
|
|
1054
1054
|
}, p = (() => {
|
|
1055
1055
|
if (n == null) return null;
|
|
@@ -1061,7 +1061,7 @@ const Fe = (t) => {
|
|
|
1061
1061
|
return $ == null ? !0 : I > $;
|
|
1062
1062
|
}), u = A(
|
|
1063
1063
|
e,
|
|
1064
|
-
|
|
1064
|
+
l
|
|
1065
1065
|
)((x, $) => {
|
|
1066
1066
|
const I = x ?? 0;
|
|
1067
1067
|
return $ == null ? !0 : I < $;
|
|
@@ -1071,19 +1071,19 @@ const Fe = (t) => {
|
|
|
1071
1071
|
const y = w(k);
|
|
1072
1072
|
y !== $ && (o?.(y), d?.(y));
|
|
1073
1073
|
}, S = (x) => {
|
|
1074
|
-
const $ = f.get(e) ?? 0, I = f.get(n), V = x?.shiftKey ? 10 : 1, k = G($ + I * V, I), c =
|
|
1074
|
+
const $ = f.get(e) ?? 0, I = f.get(n), V = x?.shiftKey ? 10 : 1, k = G($ + I * V, I), c = l != null ? f.get(l) : void 0;
|
|
1075
1075
|
if (c != null && k > c) return;
|
|
1076
1076
|
const y = w(k);
|
|
1077
1077
|
y !== $ && (o?.(y), d?.(y));
|
|
1078
1078
|
};
|
|
1079
1079
|
return ((x, $) => Le(
|
|
1080
|
-
|
|
1080
|
+
r.class("bc-number-input-steppers"),
|
|
1081
1081
|
g.button(
|
|
1082
|
-
|
|
1083
|
-
|
|
1082
|
+
r.type("button"),
|
|
1083
|
+
r.class(
|
|
1084
1084
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1085
1085
|
),
|
|
1086
|
-
|
|
1086
|
+
r.disabled(
|
|
1087
1087
|
A(
|
|
1088
1088
|
u,
|
|
1089
1089
|
t.disabled ?? !1
|
|
@@ -1094,11 +1094,11 @@ const Fe = (t) => {
|
|
|
1094
1094
|
E({ icon: "line-md:plus", size: "xs" })
|
|
1095
1095
|
),
|
|
1096
1096
|
g.button(
|
|
1097
|
-
|
|
1098
|
-
|
|
1097
|
+
r.type("button"),
|
|
1098
|
+
r.class(
|
|
1099
1099
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1100
1100
|
),
|
|
1101
|
-
|
|
1101
|
+
r.disabled(
|
|
1102
1102
|
A(
|
|
1103
1103
|
i,
|
|
1104
1104
|
t.disabled ?? !1
|
|
@@ -1121,13 +1121,13 @@ const Fe = (t) => {
|
|
|
1121
1121
|
...t,
|
|
1122
1122
|
input: se.number(
|
|
1123
1123
|
// min/max attributes and reactive watchers (no forced correction)
|
|
1124
|
-
s != null ?
|
|
1125
|
-
|
|
1124
|
+
s != null ? r.min(s) : M,
|
|
1125
|
+
l != null ? r.max(l) : M,
|
|
1126
1126
|
q(t),
|
|
1127
1127
|
// Represent null as empty string so the field can be cleared
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1128
|
+
r.value(f.map(e, (i) => i == null ? "" : String(i))),
|
|
1129
|
+
r.step(n),
|
|
1130
|
+
r.class("bc-input bc-number-input"),
|
|
1131
1131
|
h != null ? C.blur(P(h)) : M,
|
|
1132
1132
|
o != null ? C.change(
|
|
1133
1133
|
P((i) => {
|
|
@@ -1154,48 +1154,49 @@ const Fe = (t) => {
|
|
|
1154
1154
|
const e = {
|
|
1155
1155
|
type: "pattern",
|
|
1156
1156
|
pattern: /[0-9A-Fa-f]/,
|
|
1157
|
-
transform: (
|
|
1158
|
-
}
|
|
1157
|
+
transform: (l) => l.toLowerCase()
|
|
1158
|
+
}, n = [
|
|
1159
|
+
e,
|
|
1160
|
+
e,
|
|
1161
|
+
e,
|
|
1162
|
+
e,
|
|
1163
|
+
e,
|
|
1164
|
+
e,
|
|
1165
|
+
e,
|
|
1166
|
+
e,
|
|
1167
|
+
"-",
|
|
1168
|
+
e,
|
|
1169
|
+
e,
|
|
1170
|
+
e,
|
|
1171
|
+
e,
|
|
1172
|
+
"-",
|
|
1173
|
+
e,
|
|
1174
|
+
e,
|
|
1175
|
+
e,
|
|
1176
|
+
e,
|
|
1177
|
+
"-",
|
|
1178
|
+
e,
|
|
1179
|
+
e,
|
|
1180
|
+
e,
|
|
1181
|
+
e,
|
|
1182
|
+
"-",
|
|
1183
|
+
e,
|
|
1184
|
+
e,
|
|
1185
|
+
e,
|
|
1186
|
+
e,
|
|
1187
|
+
e,
|
|
1188
|
+
e,
|
|
1189
|
+
e,
|
|
1190
|
+
e,
|
|
1191
|
+
e,
|
|
1192
|
+
e,
|
|
1193
|
+
e,
|
|
1194
|
+
e
|
|
1195
|
+
], s = t.class ? f.map(t.class, (l) => `bc-uuid-input ${l}`) : "bc-uuid-input";
|
|
1159
1196
|
return Fe({
|
|
1160
1197
|
...t,
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
e,
|
|
1164
|
-
e,
|
|
1165
|
-
e,
|
|
1166
|
-
e,
|
|
1167
|
-
e,
|
|
1168
|
-
e,
|
|
1169
|
-
e,
|
|
1170
|
-
"-",
|
|
1171
|
-
e,
|
|
1172
|
-
e,
|
|
1173
|
-
e,
|
|
1174
|
-
e,
|
|
1175
|
-
"-",
|
|
1176
|
-
e,
|
|
1177
|
-
e,
|
|
1178
|
-
e,
|
|
1179
|
-
e,
|
|
1180
|
-
"-",
|
|
1181
|
-
e,
|
|
1182
|
-
e,
|
|
1183
|
-
e,
|
|
1184
|
-
e,
|
|
1185
|
-
"-",
|
|
1186
|
-
e,
|
|
1187
|
-
e,
|
|
1188
|
-
e,
|
|
1189
|
-
e,
|
|
1190
|
-
e,
|
|
1191
|
-
e,
|
|
1192
|
-
e,
|
|
1193
|
-
e,
|
|
1194
|
-
e,
|
|
1195
|
-
e,
|
|
1196
|
-
e,
|
|
1197
|
-
e
|
|
1198
|
-
],
|
|
1198
|
+
class: s,
|
|
1199
|
+
mask: n,
|
|
1199
1200
|
// Sensible default placeholder; can be overridden via options.placeholder
|
|
1200
1201
|
placeholder: t.placeholder ?? "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
1201
1202
|
});
|
|
@@ -1231,10 +1232,10 @@ const Be = (t, e) => {
|
|
|
1231
1232
|
return null;
|
|
1232
1233
|
}
|
|
1233
1234
|
}, Lt = (t) => {
|
|
1234
|
-
const { value: e, onChange: n, onInput: s, after:
|
|
1235
|
+
const { value: e, onChange: n, onInput: s, after: l, disabled: h, onBlur: o } = t, d = () => {
|
|
1235
1236
|
const p = Ee(e, h, n ?? s);
|
|
1236
|
-
return
|
|
1237
|
-
}, b = t.placeholder != null ? M :
|
|
1237
|
+
return l != null ? N(p, l) : p;
|
|
1238
|
+
}, b = t.placeholder != null ? M : r.placeholder("P0DT0H0M0S");
|
|
1238
1239
|
return Ke(
|
|
1239
1240
|
(p) => {
|
|
1240
1241
|
const m = qe(
|
|
@@ -1272,8 +1273,8 @@ const Be = (t, e) => {
|
|
|
1272
1273
|
...t,
|
|
1273
1274
|
input: se.text(
|
|
1274
1275
|
q(t),
|
|
1275
|
-
|
|
1276
|
-
|
|
1276
|
+
r.value(f.map(e, (m) => m?.toString() ?? "")),
|
|
1277
|
+
r.class("bc-input"),
|
|
1277
1278
|
b,
|
|
1278
1279
|
o != null ? C.blur(() => o()) : M,
|
|
1279
1280
|
n != null ? C.change(p(n)) : M,
|
|
@@ -1284,16 +1285,16 @@ const Be = (t, e) => {
|
|
|
1284
1285
|
} }
|
|
1285
1286
|
);
|
|
1286
1287
|
}, Ut = (t) => {
|
|
1287
|
-
const { value: e, onBlur: n, onChange: s, onInput:
|
|
1288
|
+
const { value: e, onBlur: n, onChange: s, onInput: l } = t;
|
|
1288
1289
|
return W({
|
|
1289
1290
|
...t,
|
|
1290
1291
|
input: se.url(
|
|
1291
1292
|
q(t),
|
|
1292
|
-
|
|
1293
|
-
|
|
1293
|
+
r.value(e),
|
|
1294
|
+
r.class("bc-input"),
|
|
1294
1295
|
n != null ? C.blur(P(n)) : M,
|
|
1295
1296
|
s != null ? C.change(P(s)) : M,
|
|
1296
|
-
|
|
1297
|
+
l != null ? C.input(P(l)) : M
|
|
1297
1298
|
)
|
|
1298
1299
|
});
|
|
1299
1300
|
};
|
|
@@ -1301,7 +1302,7 @@ function ht(t, e) {
|
|
|
1301
1302
|
const {
|
|
1302
1303
|
onMove: n,
|
|
1303
1304
|
cannotMoveUp: s,
|
|
1304
|
-
cannotMoveDown:
|
|
1305
|
+
cannotMoveDown: l,
|
|
1305
1306
|
onRemove: h,
|
|
1306
1307
|
showMove: o = !0,
|
|
1307
1308
|
showRemove: d = !0,
|
|
@@ -1311,7 +1312,7 @@ function ht(t, e) {
|
|
|
1311
1312
|
} = t, m = f.toSignal(p).map((u) => u === "aside"), v = U(
|
|
1312
1313
|
o,
|
|
1313
1314
|
() => g.div(
|
|
1314
|
-
|
|
1315
|
+
r.class("bc-list-item-controls__move"),
|
|
1315
1316
|
be(
|
|
1316
1317
|
{
|
|
1317
1318
|
size: "xs",
|
|
@@ -1335,7 +1336,7 @@ function ht(t, e) {
|
|
|
1335
1336
|
roundedness: "full",
|
|
1336
1337
|
variant: "text",
|
|
1337
1338
|
onClick: () => n("down"),
|
|
1338
|
-
disabled:
|
|
1339
|
+
disabled: l
|
|
1339
1340
|
},
|
|
1340
1341
|
O(
|
|
1341
1342
|
F,
|
|
@@ -1363,19 +1364,19 @@ function ht(t, e) {
|
|
|
1363
1364
|
return U(
|
|
1364
1365
|
m,
|
|
1365
1366
|
() => g.div(
|
|
1366
|
-
|
|
1367
|
-
g.div(
|
|
1367
|
+
r.class("bc-list-item-controls bc-list-item-controls--aside"),
|
|
1368
|
+
g.div(r.class("bc-list-item-controls__content"), e),
|
|
1368
1369
|
g.div(
|
|
1369
|
-
|
|
1370
|
+
r.class("bc-list-item-controls__actions"),
|
|
1370
1371
|
U(w, () => v),
|
|
1371
1372
|
i
|
|
1372
1373
|
)
|
|
1373
1374
|
),
|
|
1374
1375
|
() => g.div(
|
|
1375
|
-
|
|
1376
|
-
g.div(
|
|
1376
|
+
r.class("bc-list-item-controls bc-list-item-controls--below"),
|
|
1377
|
+
g.div(r.class("bc-list-item-controls__content"), e),
|
|
1377
1378
|
g.div(
|
|
1378
|
-
|
|
1379
|
+
r.class("bc-list-item-controls__actions"),
|
|
1379
1380
|
U(
|
|
1380
1381
|
w,
|
|
1381
1382
|
() => v,
|
|
@@ -1391,7 +1392,7 @@ const gt = (t) => {
|
|
|
1391
1392
|
controller: e,
|
|
1392
1393
|
element: n,
|
|
1393
1394
|
separator: s,
|
|
1394
|
-
showMove:
|
|
1395
|
+
showMove: l = !0,
|
|
1395
1396
|
showRemove: h = !0,
|
|
1396
1397
|
showAdd: o = !0,
|
|
1397
1398
|
createItem: d,
|
|
@@ -1402,7 +1403,7 @@ const gt = (t) => {
|
|
|
1402
1403
|
} = t, v = U(
|
|
1403
1404
|
A(o, d)((i, u) => i && u != null),
|
|
1404
1405
|
() => Me(
|
|
1405
|
-
|
|
1406
|
+
r.class(
|
|
1406
1407
|
"bc-group--gap-2 bc-group--align-center bc-group--justify-center"
|
|
1407
1408
|
),
|
|
1408
1409
|
be(
|
|
@@ -1420,7 +1421,7 @@ const gt = (t) => {
|
|
|
1420
1421
|
O(
|
|
1421
1422
|
F,
|
|
1422
1423
|
(i) => Me(
|
|
1423
|
-
|
|
1424
|
+
r.class("bc-group--gap-2"),
|
|
1424
1425
|
E({ icon: "line-md:plus" }),
|
|
1425
1426
|
b ?? i.$.addLabel
|
|
1426
1427
|
)
|
|
@@ -1437,7 +1438,7 @@ const gt = (t) => {
|
|
|
1437
1438
|
cannotMoveUp: i.cannotMove("up"),
|
|
1438
1439
|
cannotMoveDown: i.cannotMove("down"),
|
|
1439
1440
|
onRemove: i.remove,
|
|
1440
|
-
showMove:
|
|
1441
|
+
showMove: l,
|
|
1441
1442
|
showRemove: h,
|
|
1442
1443
|
removeDisabled: p,
|
|
1443
1444
|
showMoveButtons: e.signal.map((u) => u.length > 1),
|
|
@@ -1453,7 +1454,7 @@ const gt = (t) => {
|
|
|
1453
1454
|
const {
|
|
1454
1455
|
controller: n,
|
|
1455
1456
|
element: s,
|
|
1456
|
-
separator:
|
|
1457
|
+
separator: l,
|
|
1457
1458
|
showMove: h,
|
|
1458
1459
|
showRemove: o,
|
|
1459
1460
|
showAdd: d,
|
|
@@ -1470,7 +1471,7 @@ const gt = (t) => {
|
|
|
1470
1471
|
content: gt({
|
|
1471
1472
|
controller: n,
|
|
1472
1473
|
element: s,
|
|
1473
|
-
separator:
|
|
1474
|
+
separator: l,
|
|
1474
1475
|
showMove: h,
|
|
1475
1476
|
showRemove: o,
|
|
1476
1477
|
showAdd: d,
|
|
@@ -1504,8 +1505,8 @@ class Ot extends pe {
|
|
|
1504
1505
|
* @param branches - Array of branch definitions describing the possible value types
|
|
1505
1506
|
* @param equals - Optional equality function for comparing values. Defaults to `strictEqual`.
|
|
1506
1507
|
*/
|
|
1507
|
-
constructor(e, n, s,
|
|
1508
|
-
super(e, n, s,
|
|
1508
|
+
constructor(e, n, s, l, h, o, d = K) {
|
|
1509
|
+
super(e, n, s, l, h, d), this.branches = o;
|
|
1509
1510
|
const b = (p) => {
|
|
1510
1511
|
for (const m of o)
|
|
1511
1512
|
if (m.detect(p))
|
|
@@ -1528,7 +1529,7 @@ class Ot extends pe {
|
|
|
1528
1529
|
(i) => m.detect(i) ? i : m.defaultValue(),
|
|
1529
1530
|
d
|
|
1530
1531
|
),
|
|
1531
|
-
|
|
1532
|
+
l.map(Ce([p])),
|
|
1532
1533
|
{
|
|
1533
1534
|
disabled: this.disabled,
|
|
1534
1535
|
validationMode: this.parent.validationMode
|
|
@@ -1567,18 +1568,18 @@ class Ot extends pe {
|
|
|
1567
1568
|
* @throws Error if the branch key is not found in the branches array
|
|
1568
1569
|
*/
|
|
1569
1570
|
getBranchController(e) {
|
|
1570
|
-
const n = this.branches.find((
|
|
1571
|
+
const n = this.branches.find((l) => l.key === e);
|
|
1571
1572
|
if (!n)
|
|
1572
1573
|
throw new Error(`Unknown branch: ${e}`);
|
|
1573
1574
|
if (this.#e.has(e))
|
|
1574
1575
|
return this.#e.get(e);
|
|
1575
1576
|
const s = new pe(
|
|
1576
1577
|
[...this.path, e],
|
|
1577
|
-
(
|
|
1578
|
-
this.change(
|
|
1578
|
+
(l) => {
|
|
1579
|
+
this.change(l);
|
|
1579
1580
|
},
|
|
1580
1581
|
this.signal.map(
|
|
1581
|
-
(
|
|
1582
|
+
(l) => n.detect(l) ? l : n.defaultValue(),
|
|
1582
1583
|
K
|
|
1583
1584
|
),
|
|
1584
1585
|
this.status.map(Ce([e])),
|
|
@@ -1608,11 +1609,11 @@ class Ot extends pe {
|
|
|
1608
1609
|
const s = this.branches.find((o) => o.key === e);
|
|
1609
1610
|
if (!s)
|
|
1610
1611
|
throw new Error(`Unknown branch: ${e}`);
|
|
1611
|
-
const
|
|
1612
|
-
if (s.detect(
|
|
1612
|
+
const l = f.get(this.signal);
|
|
1613
|
+
if (s.detect(l))
|
|
1613
1614
|
return !0;
|
|
1614
1615
|
if (s.convert) {
|
|
1615
|
-
const o = s.convert(
|
|
1616
|
+
const o = s.convert(l);
|
|
1616
1617
|
if (o.ok)
|
|
1617
1618
|
return this.change(o.value), !0;
|
|
1618
1619
|
}
|