@tempots/beatui 0.26.0 → 0.27.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/{2019-Bt_x1Mqh.js → 2019-Cw6dbOsG.js} +2 -2
- package/dist/{2019-BZdoHGOO.cjs → 2019-DU48Szvf.cjs} +1 -1
- package/dist/{2020-C2Ifu6RV.js → 2020-C4Shen9O.js} +2 -2
- package/dist/{2020-Bk0sGwzQ.cjs → 2020-Cp1L6hfj.cjs} +1 -1
- package/dist/{ar-CxLxXsxZ.js → ar-L29B4drg.js} +1 -1
- package/dist/{ar-CNSt2O6X.cjs → ar-Xt0B1GBx.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +276 -276
- package/dist/{de-BlQbCGWj.cjs → de-BBH6Q1uM.cjs} +1 -1
- package/dist/{de-C7iv8rS5.js → de-BL9YMCWJ.js} +1 -1
- package/dist/{es-Chf24sm_.cjs → es-3mljmytv.cjs} +1 -1
- package/dist/{es-DyivIdRS.js → es-CS4u7MZp.js} +1 -1
- package/dist/{fa-DPDyDuq_.cjs → fa-C06uowfA.cjs} +1 -1
- package/dist/{fa-T2168lXR.js → fa-_5IxCXGI.js} +1 -1
- package/dist/{fr-ehNjmGC4.js → fr-B-ZWm43Y.js} +1 -1
- package/dist/{fr-BnxbTKeV.cjs → fr-ZoJsA1s0.cjs} +1 -1
- package/dist/{he-B9YZGENc.cjs → he-D-_HCjOB.cjs} +1 -1
- package/dist/{he-TD57Y17Z.js → he-J-Bcrgy9.js} +1 -1
- package/dist/{hi-ZyCUnzwK.cjs → hi-B9yNE6-J.cjs} +1 -1
- package/dist/{hi-B4NbRIf5.js → hi-ClGaIH71.js} +1 -1
- package/dist/{index-CZn1Pgwz.cjs → index-CLfb1616.cjs} +2 -2
- package/dist/{index-DvqD_Y1P.js → index-DxiM_mmQ.js} +4 -4
- package/dist/{index-DN_efvsJ.cjs → index-NUMH-iWq.cjs} +1 -1
- package/dist/{index-C494pbos.js → index-Nv9nZIgS.js} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +154 -156
- package/dist/{it-C5sp2CZC.cjs → it-D-bh7RoG.cjs} +1 -1
- package/dist/{it-D3x9ILJi.js → it-Dv8tmKm5.js} +1 -1
- package/dist/{ja-31clSGC3.cjs → ja-B4rdImcD.cjs} +1 -1
- package/dist/{ja-BSfyBDbo.js → ja-BpqiZN5f.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-DNahUn8W.js → ko-Bpa6y038.js} +1 -1
- package/dist/{ko-j4lOKHLl.cjs → ko-C43-vhJF.cjs} +1 -1
- package/dist/{modal-CMuvQ7U-.cjs → modal-DKWKUrDF.cjs} +1 -1
- package/dist/{modal-5GSPw0e_.js → modal-Fect9dc4.js} +1 -1
- package/dist/{nl-DxveNtuq.js → nl-B5HYWGRz.js} +1 -1
- package/dist/{nl-gQLaSMRt.cjs → nl-DDjoZpiU.cjs} +1 -1
- package/dist/{notice-DuvHeGyh.js → notice-DKO4C8y2.js} +2 -3
- package/dist/{notice-DTflcSdc.cjs → notice-DrmHRjLV.cjs} +2 -2
- package/dist/{pl-BQTsowH4.cjs → pl-CXYiY-nR.cjs} +1 -1
- package/dist/{pl-DuKW800E.js → pl-DksXqLHk.js} +1 -1
- package/dist/{pt-DPt1NyaL.js → pt-7-6UhRtW.js} +1 -1
- package/dist/{pt-DB-njyTA.cjs → pt-CnC1YN5K.cjs} +1 -1
- package/dist/{ru-DwiRelVA.js → ru-I676X0Bt.js} +1 -1
- package/dist/{ru-CIXDYJrr.cjs → ru-_1DUTMUW.cjs} +1 -1
- package/dist/{tr-DQIURNMa.js → tr-CssmRZfH.js} +1 -1
- package/dist/{tr-Dx_9vMU9.cjs → tr-DA-8X7MK.cjs} +1 -1
- package/dist/{translations-D4pKsgdi.js → translations-BBguPjg9.js} +1 -1
- package/dist/{translations-YkLfpjMl.cjs → translations-CrqWcCGM.cjs} +1 -1
- package/dist/{ur-DpGDKEUr.cjs → ur-B1YkWWDx.cjs} +1 -1
- package/dist/{ur-ChuKCUVI.js → ur-BCWL2ev1.js} +1 -1
- package/dist/{utils-Dz1qVHrn.cjs → utils-ClYvMRfA.cjs} +1 -1
- package/dist/{utils-CBZohCZi.js → utils-DU4oGQiY.js} +1 -1
- package/dist/{vi-CJ3gBepb.js → vi-D5K4x_hN.js} +1 -1
- package/dist/{vi-CjpgcyEa.cjs → vi-DA-qqgHJ.cjs} +1 -1
- package/dist/{zh-CLb0vdcx.cjs → zh-B4HcAg-5.cjs} +1 -1
- package/dist/{zh-DBCCiN2o.js → zh-HUwi9F-w.js} +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { prop as U, html as m, attr as s, computedOf as y, Use as Y, Empty as O, Value as
|
|
1
|
+
import { prop as U, html as m, attr as s, computedOf as y, Use as Y, Empty as O, Value as S, WithElement as X, Fragment as M, aria as A, OnDispose as z, OneOfValue as jt, on as $, style as h, When as te, coalesce as zt, ForEach as pe, Ensure as Te, OneOfType as pt, dataAttr as Fe, NotEmpty as Wt, input as J, emitValue as P, emitValueAsDate as qt, Portal as mt, WithProvider as Zt, Task as Yt, Provide as bt, makeProviderMark as Gt, MapSignal as ft, svg as Ye, svgAttr as Ge } from "@tempots/dom";
|
|
2
2
|
import { Use as hs } from "@tempots/dom";
|
|
3
3
|
import { PopOver as Kt, ElementRect as he, WindowSize as Xt, Query as Jt, Location as De, Anchor as He } from "@tempots/ui";
|
|
4
|
-
import { B as ne, C as gt, n as Ie, r as Ke, I as j, s as re, a as Pe, e as q, g as G, h as ht, i as vt, j as Re, v as xt, d as yt, S as Ue, p as Qt, l as je, w as Xe, x as Je, y as Qe } from "./notice-
|
|
5
|
-
import { R as xs, G as ys, c as ws, a3 as Ss, E as Cs, a1 as ks, aa as Is, L as $s, M as _s, a2 as Ts, N as Ds, Q as As, P as Vs, U as Ls, T as Bs, Y as Ms, $ as Os, Z as Ns, W as Ps, V as Es, z as Fs, k as Hs, f as Rs, a7 as Us, a5 as js, F as zs, a9 as Ws, ab as qs, A as Zs, a8 as Ys, m as Gs, q as Ks, a4 as Xs, H as Js, K as Qs, a6 as el, a0 as tl, D as nl, t as al, X as sl, u as ll, J as rl } from "./notice-
|
|
4
|
+
import { B as ne, C as gt, n as Ie, r as Ke, I as j, s as re, a as Pe, e as q, g as G, h as ht, i as vt, j as Re, v as xt, d as yt, S as Ue, p as Qt, l as je, w as Xe, x as Je, y as Qe } from "./notice-DKO4C8y2.js";
|
|
5
|
+
import { R as xs, G as ys, c as ws, a3 as Ss, E as Cs, a1 as ks, aa as Is, L as $s, M as _s, a2 as Ts, N as Ds, Q as As, P as Vs, U as Ls, T as Bs, Y as Ms, $ as Os, Z as Ns, W as Ps, V as Es, z as Fs, k as Hs, f as Rs, a7 as Us, a5 as js, F as zs, a9 as Ws, ab as qs, A as Zs, a8 as Ys, m as Gs, q as Ks, a4 as Xs, H as Js, K as Qs, a6 as el, a0 as tl, D as nl, t as al, X as sl, u as ll, J as rl } from "./notice-DKO4C8y2.js";
|
|
6
6
|
import { T as wt, a as en } from "./theme-CJVt8QIc.js";
|
|
7
7
|
import { t as il, am as ul, f as cl, J as dl, c as pl, N as ml, I as bl, K as fl, d as gl, k as hl, b as vl, a as xl, ab as yl, o as wl, a0 as Sl, ae as Cl, q as kl, H as Il, A as $l, al as _l, g as Tl, E as Dl, x as Al, aj as Vl, $ as Ll, a4 as Bl, j as Ml, i as Ol, h as Nl, Y as Pl, X as El, Q as Fl, P as Hl, S as Rl, R as Ul, W as jl, V as zl, U as Wl, T as ql, a8 as Zl, a7 as Yl, aa as Gl, a9 as Kl, n as Xl, m as Jl, l as Ql, _ as er, Z as tr, ad as nr, p as ar, G as sr, z as lr, ak as rr, D as or, C as ir, w as ur, v as cr, ai as dr, ah as pr, e as mr, a3 as br, a2 as fr, M as gr, L as hr, a5 as vr, a6 as xr, r as yr, O as wr, ac as Sr, s as Cr, F as kr, y as Ir, ag as $r, B as _r, u as Tr, af as Dr, a1 as Ar } from "./index-OrV7N-wE.js";
|
|
8
|
-
import { S as tn, G as St, E as nn, F as an, N as Ct, a as oe, M as me, e as et, n as sn, W as Q, d as ln } from "./utils-
|
|
9
|
-
import { g as Lr, i as Br, B as Mr, l as Or, O as Nr, C as Pr, j as Er, L as Fr, k as Hr, m as Rr, o as Ur, p as jr, I as zr, q as Wr, w as qr, r as Zr, A as Yr, H as Gr, s as Kr, u as Xr, z as Jr, K as Qr, v as eo, R as to, D as no, x as ao, T as so, y as lo, b as ro, U as oo, J as io, P as uo, Q as co, V as po, h as mo, c as bo, t as fo, f as go } from "./utils-
|
|
8
|
+
import { S as tn, G as St, E as nn, F as an, N as Ct, a as oe, M as me, e as et, n as sn, W as Q, d as ln } from "./utils-DU4oGQiY.js";
|
|
9
|
+
import { g as Lr, i as Br, B as Mr, l as Or, O as Nr, C as Pr, j as Er, L as Fr, k as Hr, m as Rr, o as Ur, p as jr, I as zr, q as Wr, w as qr, r as Zr, A as Yr, H as Gr, s as Kr, u as Xr, z as Jr, K as Qr, v as eo, R as to, D as no, x as ao, T as so, y as lo, b as ro, U as oo, J as io, P as uo, Q as co, V as po, h as mo, c as bo, t as fo, f as go } from "./utils-DU4oGQiY.js";
|
|
10
10
|
import { g as $e } from "./timer-CQlK5LhW.js";
|
|
11
|
-
import { u as ge, A as Ee, O as rn, F as on } from "./modal-
|
|
12
|
-
import { B as vo, C as xo, M as yo, a as wo, S as So, b as Co, c as ko, o as Io, s as $o, e as _o, d as To, f as Do } from "./modal-
|
|
11
|
+
import { u as ge, A as Ee, O as rn, F as on } from "./modal-Fect9dc4.js";
|
|
12
|
+
import { B as vo, C as xo, M as yo, a as wo, S as So, b as Co, c as ko, o as Io, s as $o, e as _o, d as To, f as Do } from "./modal-Fect9dc4.js";
|
|
13
13
|
import { L as Vo } from "./link-portal-Cr2l9f3k.js";
|
|
14
14
|
import { b as Bo, e as Mo, i as Oo, a as No, c as Po, o as Eo, l as Fo, m as Ho, g as Ro, k as Uo, j as jo, n as zo, r as Wo, s as qo, d as Zo, h as Yo, t as Go } from "./colors-WfmhQ5e1.js";
|
|
15
15
|
function _e(e) {
|
|
@@ -138,7 +138,7 @@ const kt = ({
|
|
|
138
138
|
label: i.$.removeItem,
|
|
139
139
|
color: "white",
|
|
140
140
|
disabled: r,
|
|
141
|
-
onClick: () => t?.(
|
|
141
|
+
onClick: () => t?.(S.get(e))
|
|
142
142
|
},
|
|
143
143
|
s.class("bc-tag__close")
|
|
144
144
|
)
|
|
@@ -203,19 +203,19 @@ function Ae(e) {
|
|
|
203
203
|
const g = ge({
|
|
204
204
|
initialStatus: "closed"
|
|
205
205
|
}), v = re("flyout"), _ = U(!1);
|
|
206
|
-
let
|
|
206
|
+
let C = null, f = null, w = null, D = !1;
|
|
207
207
|
function V() {
|
|
208
|
-
k != null && (clearTimeout(k), k = null), L != null && (clearTimeout(L), L = null), w && (w(), w = null), f && (f(), f = null),
|
|
208
|
+
k != null && (clearTimeout(k), k = null), L != null && (clearTimeout(L), L = null), w && (w(), w = null), f && (f(), f = null), C && (document.removeEventListener("keydown", C), C = null), _.set(!1), D = !1;
|
|
209
209
|
}
|
|
210
210
|
function E() {
|
|
211
|
-
|
|
211
|
+
S.get(u) && (C = (H) => {
|
|
212
212
|
H.key === "Escape" && N();
|
|
213
|
-
}, document.addEventListener("keydown",
|
|
213
|
+
}, document.addEventListener("keydown", C)), D = !0, _.set(!0), x({
|
|
214
214
|
placement: t ?? "top",
|
|
215
215
|
mainAxisOffset: r,
|
|
216
216
|
crossAxisOffset: i,
|
|
217
217
|
onClickOutside: () => {
|
|
218
|
-
|
|
218
|
+
S.get(u) && N();
|
|
219
219
|
},
|
|
220
220
|
arrow: o,
|
|
221
221
|
content: X((H) => {
|
|
@@ -223,7 +223,7 @@ function Ae(e) {
|
|
|
223
223
|
g.open(), w = null;
|
|
224
224
|
});
|
|
225
225
|
const F = (W) => {
|
|
226
|
-
|
|
226
|
+
S.get(u) && W.key === "Escape" && (W.preventDefault(), W.stopPropagation(), N(), _.set(!1));
|
|
227
227
|
};
|
|
228
228
|
return document.addEventListener("keydown", F, !0), M(
|
|
229
229
|
z(() => {
|
|
@@ -234,7 +234,7 @@ function Ae(e) {
|
|
|
234
234
|
s.tabindex(-1),
|
|
235
235
|
// Make focusable for screen readers
|
|
236
236
|
Ee(
|
|
237
|
-
|
|
237
|
+
S.map(t, gn),
|
|
238
238
|
g.status
|
|
239
239
|
),
|
|
240
240
|
d ? s.role(d) : s.role("dialog"),
|
|
@@ -252,7 +252,7 @@ function Ae(e) {
|
|
|
252
252
|
g.open();
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
|
-
const H =
|
|
255
|
+
const H = S.get(a);
|
|
256
256
|
k = setTimeout(() => {
|
|
257
257
|
k = null, E();
|
|
258
258
|
}, H);
|
|
@@ -263,7 +263,7 @@ function Ae(e) {
|
|
|
263
263
|
p(), V();
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
const H =
|
|
266
|
+
const H = S.get(l);
|
|
267
267
|
L = setTimeout(() => {
|
|
268
268
|
L = null, f && (f(), f = null), g.close(), f = g.onClosed(() => {
|
|
269
269
|
p(), V();
|
|
@@ -429,13 +429,17 @@ function ae(e, n) {
|
|
|
429
429
|
return `bc-panel ${(Array.isArray(e) ? e : [e]).map((a) => `bc-panel--side-${a}`).join(" ")} bc-panel--shadow-${n}`;
|
|
430
430
|
}
|
|
431
431
|
function ie(e) {
|
|
432
|
-
const n =
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
432
|
+
const n = S.toSignal(e).map(
|
|
433
|
+
(a) => Ie(a, "lighter", "light")
|
|
434
|
+
), t = S.toSignal(e).map(
|
|
435
|
+
(a) => Ie(a, "lighter", "dark")
|
|
436
|
+
);
|
|
437
|
+
return M(
|
|
438
|
+
h.variable("--panel-bg", n.$.backgroundColor),
|
|
439
|
+
h.variable("--panel-text", n.$.textColor),
|
|
440
|
+
h.variable("--panel-bg-dark", t.$.backgroundColor),
|
|
441
|
+
h.variable("--panel-text-dark", t.$.textColor)
|
|
442
|
+
);
|
|
439
443
|
}
|
|
440
444
|
const se = {
|
|
441
445
|
banner: {
|
|
@@ -658,7 +662,7 @@ function ma({
|
|
|
658
662
|
a.menu != null,
|
|
659
663
|
o,
|
|
660
664
|
p.display
|
|
661
|
-
)(In),
|
|
665
|
+
)(In), C = y(
|
|
662
666
|
a.aside != null,
|
|
663
667
|
o,
|
|
664
668
|
g.display
|
|
@@ -679,7 +683,7 @@ function ma({
|
|
|
679
683
|
s.class(
|
|
680
684
|
ae("none", t.banner.shadow ?? "none")
|
|
681
685
|
),
|
|
682
|
-
|
|
686
|
+
ie(t.banner.color ?? "white"),
|
|
683
687
|
h.height("100%"),
|
|
684
688
|
h.gridArea("banner"),
|
|
685
689
|
t.banner.content
|
|
@@ -688,7 +692,7 @@ function ma({
|
|
|
688
692
|
s.class(
|
|
689
693
|
ae("bottom", t.header?.shadow ?? "none")
|
|
690
694
|
),
|
|
691
|
-
|
|
695
|
+
ie(t.header?.color ?? "white"),
|
|
692
696
|
h.zIndex("20"),
|
|
693
697
|
h.display(d ? "block" : "none"),
|
|
694
698
|
h.gridArea("header"),
|
|
@@ -770,12 +774,12 @@ function ma({
|
|
|
770
774
|
)
|
|
771
775
|
)
|
|
772
776
|
),
|
|
773
|
-
|
|
777
|
+
ie(t.menu?.color ?? "white"),
|
|
778
|
+
h.height(
|
|
774
779
|
_.map(
|
|
775
|
-
() =>
|
|
780
|
+
(f) => f === "float" ? "auto" : "100%"
|
|
776
781
|
)
|
|
777
782
|
),
|
|
778
|
-
h.height("100%"),
|
|
779
783
|
h.overflow("hidden"),
|
|
780
784
|
h.gridArea("menu"),
|
|
781
785
|
h.display(
|
|
@@ -799,7 +803,7 @@ function ma({
|
|
|
799
803
|
)((f, w) => f === "block" ? "opened" : w)
|
|
800
804
|
),
|
|
801
805
|
h.width(o.$.menuWidth),
|
|
802
|
-
h.bottom(
|
|
806
|
+
h.bottom("0"),
|
|
803
807
|
t.menu?.content
|
|
804
808
|
) : null,
|
|
805
809
|
t.mainHeader ? m.header(
|
|
@@ -811,9 +815,7 @@ function ma({
|
|
|
811
815
|
t.mainHeader?.shadow ?? "none"
|
|
812
816
|
)
|
|
813
817
|
),
|
|
814
|
-
|
|
815
|
-
ie(t.mainHeader?.color ?? "white")
|
|
816
|
-
),
|
|
818
|
+
ie(t.mainHeader?.color ?? "white"),
|
|
817
819
|
t.mainHeader.content
|
|
818
820
|
) : null,
|
|
819
821
|
m.main(
|
|
@@ -823,7 +825,7 @@ function ma({
|
|
|
823
825
|
s.class(
|
|
824
826
|
ae("none", t.main?.shadow ?? "none")
|
|
825
827
|
),
|
|
826
|
-
|
|
828
|
+
ie(t.main?.color ?? "white"),
|
|
827
829
|
t.main.content
|
|
828
830
|
),
|
|
829
831
|
t.mainFooter ? m.footer(
|
|
@@ -835,9 +837,7 @@ function ma({
|
|
|
835
837
|
t.mainFooter?.shadow ?? "none"
|
|
836
838
|
)
|
|
837
839
|
),
|
|
838
|
-
|
|
839
|
-
ie(t.mainFooter?.color ?? "white")
|
|
840
|
-
),
|
|
840
|
+
ie(t.mainFooter?.color ?? "white"),
|
|
841
841
|
t.mainFooter.content
|
|
842
842
|
) : null,
|
|
843
843
|
t.aside ? m.aside(
|
|
@@ -849,24 +849,22 @@ function ma({
|
|
|
849
849
|
A.label(r.$.sidebar),
|
|
850
850
|
s.role("complementary"),
|
|
851
851
|
s.class(
|
|
852
|
-
|
|
852
|
+
C.map(
|
|
853
853
|
(f) => f === "float" ? ae("left", "md") : ae("left", "none")
|
|
854
854
|
)
|
|
855
855
|
),
|
|
856
|
-
|
|
857
|
-
S.map(() => ie("white"))
|
|
858
|
-
),
|
|
856
|
+
ie("white"),
|
|
859
857
|
h.height("100%"),
|
|
860
858
|
h.gridArea("aside"),
|
|
861
859
|
h.display(
|
|
862
860
|
y(
|
|
863
|
-
|
|
861
|
+
C,
|
|
864
862
|
g.status
|
|
865
863
|
)((f, w) => f === "none" && w === "closed" ? "none" : "block")
|
|
866
864
|
),
|
|
867
865
|
h.position(
|
|
868
866
|
y(
|
|
869
|
-
|
|
867
|
+
C,
|
|
870
868
|
g.status
|
|
871
869
|
)((f, w) => f === "float" || f === "none" && w !== "closed" ? "fixed" : "initial")
|
|
872
870
|
),
|
|
@@ -874,7 +872,7 @@ function ma({
|
|
|
874
872
|
Ee(
|
|
875
873
|
"slide-left",
|
|
876
874
|
y(
|
|
877
|
-
|
|
875
|
+
C,
|
|
878
876
|
g.status
|
|
879
877
|
)((f, w) => f === "block" ? "opened" : w)
|
|
880
878
|
),
|
|
@@ -884,7 +882,7 @@ function ma({
|
|
|
884
882
|
) : null,
|
|
885
883
|
t.footer ? m.footer(
|
|
886
884
|
s.class(ae("top", "none")),
|
|
887
|
-
|
|
885
|
+
ie("white"),
|
|
888
886
|
h.height("100%"),
|
|
889
887
|
h.gridArea("footer"),
|
|
890
888
|
t.footer.content
|
|
@@ -912,10 +910,10 @@ function fa({ gap: e = "lg" } = {}, ...n) {
|
|
|
912
910
|
function Tn({ open: e }, ...n) {
|
|
913
911
|
return X((t) => {
|
|
914
912
|
const { status: a, setOpen: l, dispose: r } = ge({
|
|
915
|
-
initialStatus:
|
|
913
|
+
initialStatus: S.get(e) ? "opened" : "closed",
|
|
916
914
|
element: t
|
|
917
915
|
});
|
|
918
|
-
return
|
|
916
|
+
return S.on(e, l), he((i) => {
|
|
919
917
|
const c = U(null);
|
|
920
918
|
return y(
|
|
921
919
|
a,
|
|
@@ -945,7 +943,7 @@ function Dn(e) {
|
|
|
945
943
|
return `${e}px`;
|
|
946
944
|
}
|
|
947
945
|
function st(e) {
|
|
948
|
-
return
|
|
946
|
+
return S.map(e, Dn);
|
|
949
947
|
}
|
|
950
948
|
function ga({
|
|
951
949
|
body: e,
|
|
@@ -965,11 +963,11 @@ function ga({
|
|
|
965
963
|
sidebarEndWidth: g = 0,
|
|
966
964
|
anchorMode: v = "container-edge"
|
|
967
965
|
}) {
|
|
968
|
-
const _ = U(0n),
|
|
966
|
+
const _ = U(0n), C = U(0n), f = st(l), w = st(x), D = U(16);
|
|
969
967
|
return m.div(
|
|
970
968
|
z(
|
|
971
969
|
_.dispose,
|
|
972
|
-
|
|
970
|
+
C.dispose,
|
|
973
971
|
D.dispose
|
|
974
972
|
),
|
|
975
973
|
s.class("bc-nine-slice-container"),
|
|
@@ -1002,7 +1000,7 @@ function ga({
|
|
|
1002
1000
|
)((I, B) => Number(I / BigInt(Math.max(1, B)))), W = y(
|
|
1003
1001
|
t,
|
|
1004
1002
|
H
|
|
1005
|
-
)((I, B) => Number(I / BigInt(Math.max(1, B)))), ve =
|
|
1003
|
+
)((I, B) => Number(I / BigInt(Math.max(1, B)))), ve = S.map(
|
|
1006
1004
|
v,
|
|
1007
1005
|
(I) => I === "body-end" || I === "body-end-bottom"
|
|
1008
1006
|
), be = te(
|
|
@@ -1019,7 +1017,7 @@ function ga({
|
|
|
1019
1017
|
})
|
|
1020
1018
|
),
|
|
1021
1019
|
() => h.right("0")
|
|
1022
|
-
), xe =
|
|
1020
|
+
), xe = S.map(
|
|
1023
1021
|
v,
|
|
1024
1022
|
(I) => I === "body-bottom" || I === "body-end-bottom"
|
|
1025
1023
|
), de = te(
|
|
@@ -1044,7 +1042,7 @@ function ga({
|
|
|
1044
1042
|
D
|
|
1045
1043
|
)((I, B) => I ? `${B}px` : "0"), Rt = h.transform(
|
|
1046
1044
|
y(
|
|
1047
|
-
|
|
1045
|
+
C,
|
|
1048
1046
|
_,
|
|
1049
1047
|
T,
|
|
1050
1048
|
L
|
|
@@ -1053,7 +1051,7 @@ function ga({
|
|
|
1053
1051
|
return `${ee} ${le}`.trim() || "none";
|
|
1054
1052
|
})
|
|
1055
1053
|
), qe = h.transform(
|
|
1056
|
-
|
|
1054
|
+
C.map((I) => `translateX(-${I}px)`)
|
|
1057
1055
|
), Ze = h.transform(
|
|
1058
1056
|
_.map((I) => `translateY(-${I}px)`)
|
|
1059
1057
|
), Ve = y(
|
|
@@ -1081,17 +1079,17 @@ function ga({
|
|
|
1081
1079
|
Se(0n, B),
|
|
1082
1080
|
Se(
|
|
1083
1081
|
0n,
|
|
1084
|
-
|
|
1082
|
+
C.value + BigInt(Math.round(ye))
|
|
1085
1083
|
)
|
|
1086
1084
|
);
|
|
1087
|
-
|
|
1085
|
+
C.set(ee);
|
|
1088
1086
|
}
|
|
1089
1087
|
ye = 0, we = 0, fe = null;
|
|
1090
1088
|
};
|
|
1091
1089
|
return M(
|
|
1092
1090
|
z(
|
|
1093
1091
|
T.on((I) => {
|
|
1094
|
-
I ||
|
|
1092
|
+
I || C.set(0n);
|
|
1095
1093
|
}),
|
|
1096
1094
|
L.on((I) => {
|
|
1097
1095
|
I || _.set(0n);
|
|
@@ -1244,7 +1242,7 @@ function ga({
|
|
|
1244
1242
|
const B = I.target, R = B.scrollLeft, K = B.scrollWidth - B.clientWidth;
|
|
1245
1243
|
if (K > 0) {
|
|
1246
1244
|
const ee = R / K, le = Le.value;
|
|
1247
|
-
|
|
1245
|
+
C.set(
|
|
1248
1246
|
BigInt(Math.round(Number(le) * ee))
|
|
1249
1247
|
);
|
|
1250
1248
|
}
|
|
@@ -1405,10 +1403,10 @@ const ue = {
|
|
|
1405
1403
|
buildListboxContent: o
|
|
1406
1404
|
} = e, d = U(!1), b = U(-1), x = U(null), p = re("dropdown"), g = re("listbox");
|
|
1407
1405
|
let v, _;
|
|
1408
|
-
const
|
|
1406
|
+
const C = (w) => {
|
|
1409
1407
|
n?.(w), d.set(!1), b.set(-1), x.set(null), v?.focus();
|
|
1410
1408
|
}, f = (w) => {
|
|
1411
|
-
const D = ue.getValues(
|
|
1409
|
+
const D = ue.getValues(S.get(r));
|
|
1412
1410
|
switch (w.key) {
|
|
1413
1411
|
case "ArrowDown": {
|
|
1414
1412
|
if (w.preventDefault(), !d.value)
|
|
@@ -1432,10 +1430,10 @@ const ue = {
|
|
|
1432
1430
|
case "Enter": {
|
|
1433
1431
|
if (w.preventDefault(), d.value && b.value >= 0) {
|
|
1434
1432
|
const V = D[b.value];
|
|
1435
|
-
V != null &&
|
|
1433
|
+
V != null && C(V);
|
|
1436
1434
|
} else {
|
|
1437
1435
|
c?.();
|
|
1438
|
-
const V = ue.getValues(
|
|
1436
|
+
const V = ue.getValues(S.get(r));
|
|
1439
1437
|
d.set(!0), V.length > 0 && (b.set(0), x.set(V[0])), setTimeout(() => u?.(), 0);
|
|
1440
1438
|
}
|
|
1441
1439
|
break;
|
|
@@ -1445,9 +1443,9 @@ const ue = {
|
|
|
1445
1443
|
break;
|
|
1446
1444
|
}
|
|
1447
1445
|
case " ": {
|
|
1448
|
-
if (
|
|
1446
|
+
if (S.get(i)) {
|
|
1449
1447
|
w.preventDefault();
|
|
1450
|
-
const V = ue.getValues(
|
|
1448
|
+
const V = ue.getValues(S.get(r));
|
|
1451
1449
|
d.set(!d.value), d.value && V.length > 0 && (b.set(0), x.set(V[0]));
|
|
1452
1450
|
}
|
|
1453
1451
|
break;
|
|
@@ -1505,7 +1503,7 @@ const ue = {
|
|
|
1505
1503
|
listboxId: g,
|
|
1506
1504
|
focusedValue: x,
|
|
1507
1505
|
handleKeyDown: f,
|
|
1508
|
-
onSelect:
|
|
1506
|
+
onSelect: C
|
|
1509
1507
|
})
|
|
1510
1508
|
),
|
|
1511
1509
|
mainAxisOffset: 0,
|
|
@@ -1521,7 +1519,7 @@ const ue = {
|
|
|
1521
1519
|
V();
|
|
1522
1520
|
else {
|
|
1523
1521
|
c?.();
|
|
1524
|
-
const T = ue.getValues(
|
|
1522
|
+
const T = ue.getValues(S.get(r));
|
|
1525
1523
|
d.set(!0), T.length > 0 && (b.set(0), x.set(T[0])), D(), setTimeout(() => u?.(), 0);
|
|
1526
1524
|
}
|
|
1527
1525
|
};
|
|
@@ -1736,7 +1734,7 @@ const ue = {
|
|
|
1736
1734
|
debounceMs: u = 150
|
|
1737
1735
|
} = e, o = U(""), d = U(!1), b = U([]);
|
|
1738
1736
|
let x;
|
|
1739
|
-
const p =
|
|
1737
|
+
const p = S.toSignal(n), g = () => (l ?? a)(p);
|
|
1740
1738
|
let v = null;
|
|
1741
1739
|
const _ = (f) => {
|
|
1742
1740
|
d.set(!0), Promise.resolve(t(f)).then((w) => {
|
|
@@ -1744,7 +1742,7 @@ const ue = {
|
|
|
1744
1742
|
}).catch(() => {
|
|
1745
1743
|
b.set([]);
|
|
1746
1744
|
}).finally(() => d.set(!1));
|
|
1747
|
-
},
|
|
1745
|
+
}, C = (f) => {
|
|
1748
1746
|
v != null && (clearTimeout(v), v = null), v = setTimeout(
|
|
1749
1747
|
() => {
|
|
1750
1748
|
_(f);
|
|
@@ -1762,8 +1760,8 @@ const ue = {
|
|
|
1762
1760
|
),
|
|
1763
1761
|
optionsSource: b,
|
|
1764
1762
|
onBeforeOpen: () => {
|
|
1765
|
-
const f =
|
|
1766
|
-
|
|
1763
|
+
const f = S.get(o);
|
|
1764
|
+
C(f);
|
|
1767
1765
|
},
|
|
1768
1766
|
onAfterOpen: () => {
|
|
1769
1767
|
x?.focus();
|
|
@@ -1785,7 +1783,7 @@ const ue = {
|
|
|
1785
1783
|
X((V) => (x = V, O)),
|
|
1786
1784
|
$.input((V) => {
|
|
1787
1785
|
const E = V.target;
|
|
1788
|
-
o.set(E.value),
|
|
1786
|
+
o.set(E.value), C(E.value);
|
|
1789
1787
|
}),
|
|
1790
1788
|
$.keydown(w)
|
|
1791
1789
|
)
|
|
@@ -1839,7 +1837,7 @@ function Dt(e) {
|
|
|
1839
1837
|
} = e, p = re("menu"), g = U(-1), v = U([]);
|
|
1840
1838
|
let _ = null;
|
|
1841
1839
|
return Ae({
|
|
1842
|
-
content: () => X((
|
|
1840
|
+
content: () => X((C) => {
|
|
1843
1841
|
_ = document.activeElement;
|
|
1844
1842
|
const f = (k, T, L) => {
|
|
1845
1843
|
if (T.length === 0) return -1;
|
|
@@ -1902,7 +1900,7 @@ function Dt(e) {
|
|
|
1902
1900
|
), T[g.value].removeAttribute("aria-selected")), k >= 0 && T[k] && (T[k].classList.add("bc-menu-item--focused"), T[k].setAttribute("aria-selected", "true"), g.set(k), typeof T[k].scrollIntoView == "function" && T[k].scrollIntoView({ block: "nearest" }));
|
|
1903
1901
|
}, V = () => {
|
|
1904
1902
|
const k = Array.from(
|
|
1905
|
-
|
|
1903
|
+
C.querySelectorAll('[role="menuitem"]')
|
|
1906
1904
|
);
|
|
1907
1905
|
if (v.set(k), k.length > 0) {
|
|
1908
1906
|
const T = k.findIndex(
|
|
@@ -1911,8 +1909,8 @@ function Dt(e) {
|
|
|
1911
1909
|
T >= 0 && D(T, k);
|
|
1912
1910
|
}
|
|
1913
1911
|
}, E = new MutationObserver(V);
|
|
1914
|
-
return E.observe(
|
|
1915
|
-
V(),
|
|
1912
|
+
return E.observe(C, { childList: !0, subtree: !0 }), setTimeout(() => {
|
|
1913
|
+
V(), C.focus();
|
|
1916
1914
|
}, 0), document.addEventListener("keydown", w, !0), M(
|
|
1917
1915
|
z(() => {
|
|
1918
1916
|
E.disconnect(), document.removeEventListener("keydown", w, !0), _ && _.focus();
|
|
@@ -1992,7 +1990,7 @@ function ya(e) {
|
|
|
1992
1990
|
x ? A.expanded(!1) : M(),
|
|
1993
1991
|
c ? A.label(c) : M(),
|
|
1994
1992
|
$.click((p) => {
|
|
1995
|
-
if (
|
|
1993
|
+
if (S.get(r)) {
|
|
1996
1994
|
p.preventDefault(), p.stopPropagation();
|
|
1997
1995
|
return;
|
|
1998
1996
|
}
|
|
@@ -2098,14 +2096,14 @@ function Pt(e) {
|
|
|
2098
2096
|
equality: a = (o, d) => o === d,
|
|
2099
2097
|
placeholder: l
|
|
2100
2098
|
} = e, r = (o) => {
|
|
2101
|
-
const d =
|
|
2099
|
+
const d = S.get(n);
|
|
2102
2100
|
e.onChange?.(Lt(d, o, a));
|
|
2103
2101
|
}, i = (o) => {
|
|
2104
|
-
const d =
|
|
2102
|
+
const d = S.get(n);
|
|
2105
2103
|
e.onChange?.(Vt(d, o, a));
|
|
2106
2104
|
}, c = (o) => y(n)((d) => Bt(d, o, a)), u = Dt({
|
|
2107
2105
|
items: () => {
|
|
2108
|
-
const o =
|
|
2106
|
+
const o = S.get(t), d = [];
|
|
2109
2107
|
for (const b of o)
|
|
2110
2108
|
if (b.type === "value") {
|
|
2111
2109
|
const x = c(b.value);
|
|
@@ -2189,17 +2187,17 @@ function Et(e) {
|
|
|
2189
2187
|
searchPlaceholder: r,
|
|
2190
2188
|
filter: i
|
|
2191
2189
|
} = e, c = U(""), u = (p) => {
|
|
2192
|
-
const g =
|
|
2190
|
+
const g = S.get(n);
|
|
2193
2191
|
e.onChange?.(Lt(g, p, a));
|
|
2194
2192
|
}, o = (p) => {
|
|
2195
|
-
const g =
|
|
2193
|
+
const g = S.get(n);
|
|
2196
2194
|
e.onChange?.(Vt(g, p, a));
|
|
2197
2195
|
}, d = (p) => y(n)((g) => Bt(g, p, a)), b = y(
|
|
2198
2196
|
t,
|
|
2199
2197
|
c
|
|
2200
2198
|
)((p, g) => Ot(p, g, i)), x = Dt({
|
|
2201
2199
|
items: () => {
|
|
2202
|
-
const p = [], g =
|
|
2200
|
+
const p = [], g = S.get(b);
|
|
2203
2201
|
if (g.length === 0)
|
|
2204
2202
|
return p.push(
|
|
2205
2203
|
m.div(
|
|
@@ -2227,12 +2225,12 @@ function Et(e) {
|
|
|
2227
2225
|
m.div(s.class("bc-menu-group__label"), v.group),
|
|
2228
2226
|
...v.options.map((_) => {
|
|
2229
2227
|
if (_.type === "value") {
|
|
2230
|
-
const
|
|
2228
|
+
const C = d(_.value);
|
|
2231
2229
|
return m.div(
|
|
2232
2230
|
s.role("menuitem"),
|
|
2233
2231
|
s.tabindex(-1),
|
|
2234
2232
|
A.disabled(_.disabled === !0),
|
|
2235
|
-
A.checked(
|
|
2233
|
+
A.checked(C),
|
|
2236
2234
|
s.class("bc-menu-item"),
|
|
2237
2235
|
m.span(s.class("bc-menu-item__content"), _.label),
|
|
2238
2236
|
$.click(() => o(_.value))
|
|
@@ -2255,9 +2253,9 @@ function Et(e) {
|
|
|
2255
2253
|
".bc-dropdown__search-input"
|
|
2256
2254
|
);
|
|
2257
2255
|
if (_) {
|
|
2258
|
-
const
|
|
2259
|
-
return _.addEventListener("focus",
|
|
2260
|
-
_.removeEventListener("focus",
|
|
2256
|
+
const C = () => p();
|
|
2257
|
+
return _.addEventListener("focus", C), z(() => {
|
|
2258
|
+
_.removeEventListener("focus", C);
|
|
2261
2259
|
});
|
|
2262
2260
|
}
|
|
2263
2261
|
return M();
|
|
@@ -2330,7 +2328,7 @@ const Ia = (e) => {
|
|
|
2330
2328
|
...e,
|
|
2331
2329
|
input: J["datetime-local"](
|
|
2332
2330
|
G(e),
|
|
2333
|
-
s.value(
|
|
2331
|
+
s.value(S.map(n, Nn)),
|
|
2334
2332
|
s.class("bc-input"),
|
|
2335
2333
|
t != null ? $.blur(P(t)) : O,
|
|
2336
2334
|
a != null ? $.change(P((l) => a(new Date(l)))) : O
|
|
@@ -2346,7 +2344,7 @@ const Ia = (e) => {
|
|
|
2346
2344
|
return an({
|
|
2347
2345
|
...l,
|
|
2348
2346
|
maxFiles: 1,
|
|
2349
|
-
value:
|
|
2347
|
+
value: S.map(n, (r) => r == null ? [] : [r]),
|
|
2350
2348
|
onChange: (r) => {
|
|
2351
2349
|
a?.(r[0]);
|
|
2352
2350
|
},
|
|
@@ -2382,7 +2380,7 @@ const Ia = (e) => {
|
|
|
2382
2380
|
const { value: n, onBlur: t, onChange: a, onInput: l, after: r, disabled: i, ...c } = e, u = oe(n, i, a);
|
|
2383
2381
|
return me({
|
|
2384
2382
|
...c,
|
|
2385
|
-
value:
|
|
2383
|
+
value: S.map(n, sn),
|
|
2386
2384
|
onChange: a != null ? (o) => a(et(o)) : void 0,
|
|
2387
2385
|
onInput: l != null ? (o) => l(et(o)) : void 0,
|
|
2388
2386
|
onBlur: t,
|
|
@@ -2396,18 +2394,18 @@ const Ia = (e) => {
|
|
|
2396
2394
|
}
|
|
2397
2395
|
}, Aa = (e) => {
|
|
2398
2396
|
const { value: n, step: t, min: a, max: l, onChange: r, onInput: i, after: c } = e, u = (p) => {
|
|
2399
|
-
const g = a != null ?
|
|
2397
|
+
const g = a != null ? S.get(a) : void 0, v = l != null ? S.get(l) : void 0;
|
|
2400
2398
|
return g != null && p < g ? g : v != null && p > v ? v : p;
|
|
2401
2399
|
}, o = t != null ? Y(ne, (p) => {
|
|
2402
2400
|
const g = y(
|
|
2403
2401
|
n,
|
|
2404
2402
|
a
|
|
2405
|
-
)((
|
|
2403
|
+
)((C, f) => f == null ? !0 : (C ?? 0n) > f), v = y(
|
|
2406
2404
|
n,
|
|
2407
2405
|
l
|
|
2408
|
-
)((
|
|
2409
|
-
const w =
|
|
2410
|
-
if (
|
|
2406
|
+
)((C, f) => f == null ? !0 : (C ?? 0n) < f), _ = (C, f) => {
|
|
2407
|
+
const w = S.get(n) ?? 0n, D = S.get(t), V = f?.shiftKey ? 10n : 1n, E = w + D * V * C, k = a != null ? S.get(a) : void 0, T = l != null ? S.get(l) : void 0;
|
|
2408
|
+
if (C < 0n && k != null && E < k || C > 0n && T != null && E > T) return;
|
|
2411
2409
|
const L = u(E);
|
|
2412
2410
|
L !== w && r && r(L);
|
|
2413
2411
|
};
|
|
@@ -2421,9 +2419,9 @@ const Ia = (e) => {
|
|
|
2421
2419
|
y(
|
|
2422
2420
|
v,
|
|
2423
2421
|
e.disabled ?? !1
|
|
2424
|
-
)((
|
|
2422
|
+
)((C, f) => !C || f)
|
|
2425
2423
|
),
|
|
2426
|
-
$.click((
|
|
2424
|
+
$.click((C) => _(1n, C)),
|
|
2427
2425
|
A.label(p.$.incrementValue),
|
|
2428
2426
|
j({ icon: "line-md:plus", size: "xs" })
|
|
2429
2427
|
),
|
|
@@ -2435,9 +2433,9 @@ const Ia = (e) => {
|
|
|
2435
2433
|
y(
|
|
2436
2434
|
g,
|
|
2437
2435
|
e.disabled ?? !1
|
|
2438
|
-
)((
|
|
2436
|
+
)((C, f) => !C || f)
|
|
2439
2437
|
),
|
|
2440
|
-
$.click((
|
|
2438
|
+
$.click((C) => _(-1n, C)),
|
|
2441
2439
|
A.label(p.$.decrementValue),
|
|
2442
2440
|
j({ icon: "line-md:minus", size: "xs" })
|
|
2443
2441
|
)
|
|
@@ -2451,7 +2449,7 @@ const Ia = (e) => {
|
|
|
2451
2449
|
} : void 0;
|
|
2452
2450
|
return me({
|
|
2453
2451
|
...e,
|
|
2454
|
-
value:
|
|
2452
|
+
value: S.map(n, (p) => p.toString()),
|
|
2455
2453
|
onChange: b,
|
|
2456
2454
|
onInput: x,
|
|
2457
2455
|
after: d,
|
|
@@ -2468,7 +2466,7 @@ const Ia = (e) => {
|
|
|
2468
2466
|
}
|
|
2469
2467
|
}, Va = (e) => {
|
|
2470
2468
|
const { value: n, step: t, min: a, max: l, onChange: r, onInput: i, after: c } = e, u = (g) => {
|
|
2471
|
-
const v = a != null ?
|
|
2469
|
+
const v = a != null ? S.get(a) : void 0, _ = l != null ? S.get(l) : void 0;
|
|
2472
2470
|
return v != null && g < v ? v : _ != null && g > _ ? _ : g;
|
|
2473
2471
|
}, o = t != null ? Y(ne, (g) => {
|
|
2474
2472
|
const v = y(
|
|
@@ -2483,8 +2481,8 @@ const Ia = (e) => {
|
|
|
2483
2481
|
)((f, w) => {
|
|
2484
2482
|
const D = f ?? 0n;
|
|
2485
2483
|
return w == null ? !0 : D < w;
|
|
2486
|
-
}),
|
|
2487
|
-
const D =
|
|
2484
|
+
}), C = (f, w) => {
|
|
2485
|
+
const D = S.get(n) ?? 0n, V = S.get(t), E = w?.shiftKey ? 10n : 1n, k = D + V * E * f, T = a != null ? S.get(a) : void 0, L = l != null ? S.get(l) : void 0;
|
|
2488
2486
|
if (f < 0n && T != null && k < T || f > 0n && L != null && k > L) return;
|
|
2489
2487
|
const N = u(k);
|
|
2490
2488
|
N !== D && r && r(N);
|
|
@@ -2501,7 +2499,7 @@ const Ia = (e) => {
|
|
|
2501
2499
|
e.disabled ?? !1
|
|
2502
2500
|
)((f, w) => !f || w)
|
|
2503
2501
|
),
|
|
2504
|
-
$.click((f) =>
|
|
2502
|
+
$.click((f) => C(1n, f)),
|
|
2505
2503
|
A.label(g.$.incrementValue),
|
|
2506
2504
|
j({ icon: "line-md:plus", size: "xs" })
|
|
2507
2505
|
),
|
|
@@ -2515,7 +2513,7 @@ const Ia = (e) => {
|
|
|
2515
2513
|
e.disabled ?? !1
|
|
2516
2514
|
)((f, w) => !f || w)
|
|
2517
2515
|
),
|
|
2518
|
-
$.click((f) =>
|
|
2516
|
+
$.click((f) => C(-1n, f)),
|
|
2519
2517
|
A.label(g.$.decrementValue),
|
|
2520
2518
|
j({ icon: "line-md:minus", size: "xs" })
|
|
2521
2519
|
)
|
|
@@ -2529,7 +2527,7 @@ const Ia = (e) => {
|
|
|
2529
2527
|
} : void 0;
|
|
2530
2528
|
return me({
|
|
2531
2529
|
...e,
|
|
2532
|
-
value:
|
|
2530
|
+
value: S.map(n, (g) => g == null ? "" : g.toString()),
|
|
2533
2531
|
onChange: x,
|
|
2534
2532
|
onInput: p,
|
|
2535
2533
|
after: b,
|
|
@@ -2539,9 +2537,9 @@ const Ia = (e) => {
|
|
|
2539
2537
|
});
|
|
2540
2538
|
}, La = (e) => {
|
|
2541
2539
|
const { value: n, onChange: t, onBlur: a, before: l } = e, r = U(""), i = (u) => {
|
|
2542
|
-
t?.(
|
|
2540
|
+
t?.(S.get(n).filter((o) => o !== u));
|
|
2543
2541
|
}, c = () => {
|
|
2544
|
-
const u = r.value.trim(), o =
|
|
2542
|
+
const u = r.value.trim(), o = S.get(n);
|
|
2545
2543
|
u === "" || o.includes(u) || (r.set(""), t?.([...o, u]));
|
|
2546
2544
|
};
|
|
2547
2545
|
return q({
|
|
@@ -2580,7 +2578,7 @@ const Ia = (e) => {
|
|
|
2580
2578
|
...e,
|
|
2581
2579
|
input: J.date(
|
|
2582
2580
|
G(e),
|
|
2583
|
-
s.value(
|
|
2581
|
+
s.value(S.map(n, (r) => r.toString())),
|
|
2584
2582
|
s.class("bc-input"),
|
|
2585
2583
|
t != null ? $.blur(P(t)) : O,
|
|
2586
2584
|
a != null ? $.change(P((r) => a(l.PlainDate.from(r)))) : O
|
|
@@ -2594,7 +2592,7 @@ const Ia = (e) => {
|
|
|
2594
2592
|
...e,
|
|
2595
2593
|
input: J.date(
|
|
2596
2594
|
G(e),
|
|
2597
|
-
s.value(
|
|
2595
|
+
s.value(S.map(n, (u) => u?.toString() ?? "")),
|
|
2598
2596
|
s.class("bc-input"),
|
|
2599
2597
|
t != null ? $.blur(P(t)) : O,
|
|
2600
2598
|
a != null ? $.change(
|
|
@@ -2613,7 +2611,7 @@ const Ia = (e) => {
|
|
|
2613
2611
|
...e,
|
|
2614
2612
|
input: J.time(
|
|
2615
2613
|
G(e),
|
|
2616
|
-
s.value(
|
|
2614
|
+
s.value(S.map(n, (r) => r.toString())),
|
|
2617
2615
|
s.class("bc-input"),
|
|
2618
2616
|
t != null ? $.blur(P(t)) : O,
|
|
2619
2617
|
a != null ? $.change(P((r) => a(l.PlainTime.from(r)))) : O
|
|
@@ -2627,7 +2625,7 @@ const Ia = (e) => {
|
|
|
2627
2625
|
...e,
|
|
2628
2626
|
input: J.time(
|
|
2629
2627
|
G(e),
|
|
2630
|
-
s.value(
|
|
2628
|
+
s.value(S.map(n, (u) => u?.toString())),
|
|
2631
2629
|
s.class("bc-input"),
|
|
2632
2630
|
t != null ? $.blur(P(t)) : O,
|
|
2633
2631
|
a != null ? $.change(
|
|
@@ -2646,7 +2644,7 @@ const Ia = (e) => {
|
|
|
2646
2644
|
...e,
|
|
2647
2645
|
input: J["datetime-local"](
|
|
2648
2646
|
G(e),
|
|
2649
|
-
s.value(
|
|
2647
|
+
s.value(S.map(n, (r) => r.toJSON())),
|
|
2650
2648
|
s.class("bc-input"),
|
|
2651
2649
|
t != null ? $.blur(P(t)) : O,
|
|
2652
2650
|
a != null ? $.change(P((r) => a(l.PlainDateTime.from(r)))) : O
|
|
@@ -2660,7 +2658,7 @@ const Ia = (e) => {
|
|
|
2660
2658
|
...e,
|
|
2661
2659
|
input: J["datetime-local"](
|
|
2662
2660
|
G(e),
|
|
2663
|
-
s.value(
|
|
2661
|
+
s.value(S.map(n, (u) => u?.toJSON())),
|
|
2664
2662
|
s.class("bc-input"),
|
|
2665
2663
|
t != null ? $.blur(P(t)) : O,
|
|
2666
2664
|
a != null ? $.change(
|
|
@@ -2683,7 +2681,7 @@ const Ia = (e) => {
|
|
|
2683
2681
|
input: J["datetime-local"](
|
|
2684
2682
|
G(e),
|
|
2685
2683
|
s.value(
|
|
2686
|
-
|
|
2684
|
+
S.map(n, (r) => Pn(Number(r.epochMilliseconds)))
|
|
2687
2685
|
),
|
|
2688
2686
|
s.class("bc-input"),
|
|
2689
2687
|
t != null ? $.blur(P(t)) : O,
|
|
@@ -2706,7 +2704,7 @@ const Ia = (e) => {
|
|
|
2706
2704
|
input: J["datetime-local"](
|
|
2707
2705
|
G(e),
|
|
2708
2706
|
s.value(
|
|
2709
|
-
|
|
2707
|
+
S.map(
|
|
2710
2708
|
n,
|
|
2711
2709
|
(u) => u == null ? null : En(Number(u.epochMilliseconds))
|
|
2712
2710
|
)
|
|
@@ -2729,12 +2727,12 @@ const Ia = (e) => {
|
|
|
2729
2727
|
...e,
|
|
2730
2728
|
input: J["datetime-local"](
|
|
2731
2729
|
G(e),
|
|
2732
|
-
s.value(
|
|
2730
|
+
s.value(S.map(n, (r) => r.toJSON())),
|
|
2733
2731
|
s.class("bc-input"),
|
|
2734
2732
|
t != null ? $.blur(P(t)) : O,
|
|
2735
2733
|
a != null ? $.change(
|
|
2736
2734
|
P((r) => {
|
|
2737
|
-
const i = l.PlainDateTime.from(r), c =
|
|
2735
|
+
const i = l.PlainDateTime.from(r), c = S.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2738
2736
|
return a(l.ZonedDateTime.from({ ...i, timeZone: c }));
|
|
2739
2737
|
})
|
|
2740
2738
|
) : O
|
|
@@ -2748,13 +2746,13 @@ const Ia = (e) => {
|
|
|
2748
2746
|
...e,
|
|
2749
2747
|
input: J["datetime-local"](
|
|
2750
2748
|
G(e),
|
|
2751
|
-
s.value(
|
|
2749
|
+
s.value(S.map(n, (u) => u?.toJSON())),
|
|
2752
2750
|
s.class("bc-input"),
|
|
2753
2751
|
t != null ? $.blur(P(t)) : O,
|
|
2754
2752
|
a != null ? $.change(
|
|
2755
2753
|
P((u) => {
|
|
2756
2754
|
if (u === "") return a(null);
|
|
2757
|
-
const o = c.PlainDateTime.from(u), d =
|
|
2755
|
+
const o = c.PlainDateTime.from(u), d = S.get(e.placeholder) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2758
2756
|
return a(c.ZonedDateTime.from({ ...o, timeZone: d }));
|
|
2759
2757
|
})
|
|
2760
2758
|
) : O
|
|
@@ -2769,7 +2767,7 @@ const Ia = (e) => {
|
|
|
2769
2767
|
...e,
|
|
2770
2768
|
input: J.month(
|
|
2771
2769
|
G(e),
|
|
2772
|
-
s.value(
|
|
2770
|
+
s.value(S.map(n, (r) => r.toString())),
|
|
2773
2771
|
s.class("bc-input"),
|
|
2774
2772
|
t != null ? $.blur(P(t)) : O,
|
|
2775
2773
|
a != null ? $.change(P((r) => a(l.PlainYearMonth.from(r)))) : O
|
|
@@ -2783,7 +2781,7 @@ const Ia = (e) => {
|
|
|
2783
2781
|
...e,
|
|
2784
2782
|
input: J.month(
|
|
2785
2783
|
G(e),
|
|
2786
|
-
s.value(
|
|
2784
|
+
s.value(S.map(n, (u) => u?.toString())),
|
|
2787
2785
|
s.class("bc-input"),
|
|
2788
2786
|
t != null ? $.blur(P(t)) : O,
|
|
2789
2787
|
a != null ? $.change(
|
|
@@ -2801,7 +2799,7 @@ const Ia = (e) => {
|
|
|
2801
2799
|
(a) => me({
|
|
2802
2800
|
...e,
|
|
2803
2801
|
// Map Temporal value to MM-DD string
|
|
2804
|
-
value:
|
|
2802
|
+
value: S.map(n, (l) => l.toString()),
|
|
2805
2803
|
onChange: t != null ? (l) => t(a.PlainMonthDay.from(`--${l}`)) : void 0,
|
|
2806
2804
|
onInput: void 0,
|
|
2807
2805
|
mask: "99-99",
|
|
@@ -2813,7 +2811,7 @@ const Ia = (e) => {
|
|
|
2813
2811
|
return Q(
|
|
2814
2812
|
(i) => me({
|
|
2815
2813
|
...e,
|
|
2816
|
-
value:
|
|
2814
|
+
value: S.map(n, (c) => c?.toString() ?? ""),
|
|
2817
2815
|
onChange: t != null ? (c) => t(c === "" ? null : i.PlainMonthDay.from(`--${c}`)) : void 0,
|
|
2818
2816
|
onInput: void 0,
|
|
2819
2817
|
mask: "99-99",
|
|
@@ -2826,7 +2824,7 @@ const Ia = (e) => {
|
|
|
2826
2824
|
return Q(
|
|
2827
2825
|
(a) => me({
|
|
2828
2826
|
...e,
|
|
2829
|
-
value:
|
|
2827
|
+
value: S.map(n, (l) => l.toString()),
|
|
2830
2828
|
onChange: t ? (l) => t(a.Duration.from(l)) : void 0,
|
|
2831
2829
|
onInput: void 0,
|
|
2832
2830
|
...ln(a.Duration.from),
|
|
@@ -2982,7 +2980,7 @@ function Ja({
|
|
|
2982
2980
|
title: a.$.locale
|
|
2983
2981
|
}),
|
|
2984
2982
|
Ct({
|
|
2985
|
-
options:
|
|
2983
|
+
options: S.map(
|
|
2986
2984
|
e,
|
|
2987
2985
|
(i) => i.map((c) => {
|
|
2988
2986
|
let u = c.name;
|
|
@@ -3007,13 +3005,13 @@ function Qa({ includeAuthI18n: e = !1 }, ...n) {
|
|
|
3007
3005
|
t(De, {}), t(je, {}), t(ne, {}), t(wt, {});
|
|
3008
3006
|
const a = M(en(), Hn(), ...n);
|
|
3009
3007
|
return e ? Yt(
|
|
3010
|
-
() => import("./translations-
|
|
3008
|
+
() => import("./translations-BBguPjg9.js"),
|
|
3011
3009
|
({ AuthI18n: l }) => bt(l, {}, () => a)
|
|
3012
3010
|
) : a;
|
|
3013
3011
|
});
|
|
3014
3012
|
}
|
|
3015
3013
|
function es({ content: e }) {
|
|
3016
|
-
const n =
|
|
3014
|
+
const n = S.toSignal(e), t = y(n)((a) => a.arrayBuffer()).mapAsync(
|
|
3017
3015
|
async (a) => {
|
|
3018
3016
|
const l = new Blob([await a], { type: "application/pdf" });
|
|
3019
3017
|
return URL.createObjectURL(l);
|
|
@@ -3205,12 +3203,12 @@ function as({
|
|
|
3205
3203
|
disabled: p = !1
|
|
3206
3204
|
}, ...g) {
|
|
3207
3205
|
return c !== void 0 || u !== void 0 ? Y(De, (v) => {
|
|
3208
|
-
const _ = c !== void 0 ? v.matchSignal(We(e, c)) : y(v.location)(() => !1),
|
|
3206
|
+
const _ = c !== void 0 ? v.matchSignal(We(e, c)) : y(v.location)(() => !1), C = y(
|
|
3209
3207
|
_,
|
|
3210
3208
|
u
|
|
3211
3209
|
)((w, D) => !(D ?? !0) || !c ? !1 : w), f = y(
|
|
3212
3210
|
p,
|
|
3213
|
-
|
|
3211
|
+
C
|
|
3214
3212
|
)((w, D) => w || D);
|
|
3215
3213
|
return ct(
|
|
3216
3214
|
{
|
|
@@ -3347,7 +3345,7 @@ const Wn = {
|
|
|
3347
3345
|
function ss({ backgroundMode: e = "light" }, ...n) {
|
|
3348
3346
|
return bt(
|
|
3349
3347
|
Wn,
|
|
3350
|
-
|
|
3348
|
+
S.map(
|
|
3351
3349
|
e,
|
|
3352
3350
|
(t) => ({
|
|
3353
3351
|
backgroundMode: t
|
|
@@ -3356,7 +3354,7 @@ function ss({ backgroundMode: e = "light" }, ...n) {
|
|
|
3356
3354
|
() => m.div(
|
|
3357
3355
|
s.class("bc-sidebar"),
|
|
3358
3356
|
s.class(
|
|
3359
|
-
|
|
3357
|
+
S.map(
|
|
3360
3358
|
e,
|
|
3361
3359
|
(t) => t === "dark" ? "bc-sidebar--dark-bg" : ""
|
|
3362
3360
|
)
|
|
@@ -3370,7 +3368,7 @@ function dt({ rail: e, header: n }, ...t) {
|
|
|
3370
3368
|
n != null ? m.div(s.class("bc-sidebar-group__header"), n) : null,
|
|
3371
3369
|
m.div(
|
|
3372
3370
|
s.class(
|
|
3373
|
-
|
|
3371
|
+
S.map(
|
|
3374
3372
|
e ?? !1,
|
|
3375
3373
|
(a) => a ? "bc-sidebar-group--rail" : ""
|
|
3376
3374
|
)
|
|
@@ -3396,7 +3394,7 @@ function Yn(e, ...n) {
|
|
|
3396
3394
|
return m.button(
|
|
3397
3395
|
$.click(e.onClick),
|
|
3398
3396
|
e.ariaExpanded != null ? A.expanded(
|
|
3399
|
-
|
|
3397
|
+
S.map(
|
|
3400
3398
|
e.ariaExpanded,
|
|
3401
3399
|
(t) => t
|
|
3402
3400
|
)
|
|
@@ -3446,7 +3444,7 @@ function ls({
|
|
|
3446
3444
|
header: t,
|
|
3447
3445
|
startOpen: a = !0
|
|
3448
3446
|
}, ...l) {
|
|
3449
|
-
const r =
|
|
3447
|
+
const r = S.deriveProp(a), i = re("sidebar-group"), c = `${i}-content`;
|
|
3450
3448
|
return dt(
|
|
3451
3449
|
{},
|
|
3452
3450
|
s.class("bc-sidebar-group-collapsible"),
|
|
@@ -3491,7 +3489,7 @@ function Ce(e, n, t) {
|
|
|
3491
3489
|
let r = 0;
|
|
3492
3490
|
for (; r < a; ) {
|
|
3493
3491
|
const i = n[l];
|
|
3494
|
-
if (!
|
|
3492
|
+
if (!S.get(i.disabled ?? !1))
|
|
3495
3493
|
return l;
|
|
3496
3494
|
l += t, l >= a ? l = 0 : l < 0 && (l = a - 1), r++;
|
|
3497
3495
|
}
|
|
@@ -3508,33 +3506,33 @@ function os(e) {
|
|
|
3508
3506
|
showContent: c = !0,
|
|
3509
3507
|
ariaLabel: u
|
|
3510
3508
|
} = e, o = re("tablist"), d = U(-1), b = y(t)((p) => n.find((g) => g.key === p)), x = (p) => {
|
|
3511
|
-
if (
|
|
3512
|
-
const v = d.value, _ =
|
|
3513
|
-
let
|
|
3509
|
+
if (S.get(r)) return;
|
|
3510
|
+
const v = d.value, _ = S.get(i) === "horizontal";
|
|
3511
|
+
let C = v;
|
|
3514
3512
|
switch (p.key) {
|
|
3515
3513
|
case (_ ? "ArrowRight" : "ArrowDown"):
|
|
3516
|
-
p.preventDefault(),
|
|
3514
|
+
p.preventDefault(), C = Ce(v, n, 1);
|
|
3517
3515
|
break;
|
|
3518
3516
|
case (_ ? "ArrowLeft" : "ArrowUp"):
|
|
3519
|
-
p.preventDefault(),
|
|
3517
|
+
p.preventDefault(), C = Ce(v, n, -1);
|
|
3520
3518
|
break;
|
|
3521
3519
|
case "Home":
|
|
3522
|
-
p.preventDefault(),
|
|
3520
|
+
p.preventDefault(), C = Ce(-1, n, 1);
|
|
3523
3521
|
break;
|
|
3524
3522
|
case "End":
|
|
3525
|
-
p.preventDefault(),
|
|
3523
|
+
p.preventDefault(), C = Ce(n.length, n, -1);
|
|
3526
3524
|
break;
|
|
3527
3525
|
case "Enter":
|
|
3528
3526
|
case " ":
|
|
3529
3527
|
if (p.preventDefault(), v >= 0 && v < n.length) {
|
|
3530
3528
|
const f = n[v];
|
|
3531
|
-
|
|
3529
|
+
S.get(f.disabled ?? !1) || a?.(f.key);
|
|
3532
3530
|
}
|
|
3533
3531
|
break;
|
|
3534
3532
|
}
|
|
3535
|
-
|
|
3533
|
+
C !== v && C >= 0 && C < n.length && (d.set(C), setTimeout(() => {
|
|
3536
3534
|
const f = document.querySelector(
|
|
3537
|
-
`[data-tab-index="${
|
|
3535
|
+
`[data-tab-index="${C}"]`
|
|
3538
3536
|
);
|
|
3539
3537
|
f && f.focus();
|
|
3540
3538
|
}, 0));
|
|
@@ -3567,7 +3565,7 @@ function os(e) {
|
|
|
3567
3565
|
const v = y(t)((w) => w === p.key), _ = y(
|
|
3568
3566
|
r,
|
|
3569
3567
|
p.disabled
|
|
3570
|
-
)((w, D) => w || D),
|
|
3568
|
+
)((w, D) => w || D), C = `${o}-tab-${p.key}`, f = `${o}-panel-${p.key}`;
|
|
3571
3569
|
return m.button(
|
|
3572
3570
|
s.class(
|
|
3573
3571
|
y(
|
|
@@ -3582,7 +3580,7 @@ function os(e) {
|
|
|
3582
3580
|
)
|
|
3583
3581
|
)
|
|
3584
3582
|
),
|
|
3585
|
-
s.id(
|
|
3583
|
+
s.id(C),
|
|
3586
3584
|
s.role("tab"),
|
|
3587
3585
|
s.tabindex(
|
|
3588
3586
|
y(
|
|
@@ -3597,7 +3595,7 @@ function os(e) {
|
|
|
3597
3595
|
Fe["tab-index"](String(g)),
|
|
3598
3596
|
p.ariaLabel ? A.label(p.ariaLabel) : M(),
|
|
3599
3597
|
$.click((w) => {
|
|
3600
|
-
w.preventDefault(),
|
|
3598
|
+
w.preventDefault(), S.get(p.disabled ?? !1) || S.get(r) || (a?.(p.key), d.set(g));
|
|
3601
3599
|
}),
|
|
3602
3600
|
$.focus(() => {
|
|
3603
3601
|
d.set(g);
|
|
@@ -3610,7 +3608,7 @@ function os(e) {
|
|
|
3610
3608
|
te(
|
|
3611
3609
|
c ?? !0,
|
|
3612
3610
|
() => Te(b, (p) => {
|
|
3613
|
-
const g = p.$.key, v = g.map((
|
|
3611
|
+
const g = p.$.key, v = g.map((C) => `${o}-tab-${C}`), _ = g.map((C) => `${o}-panel-${C}`);
|
|
3614
3612
|
return m.div(
|
|
3615
3613
|
s.class("bc-tabs__panels"),
|
|
3616
3614
|
m.div(
|
|
@@ -3619,7 +3617,7 @@ function os(e) {
|
|
|
3619
3617
|
s.role("tabpanel"),
|
|
3620
3618
|
s.tabindex(0),
|
|
3621
3619
|
A.labelledby(v),
|
|
3622
|
-
ft(p, (
|
|
3620
|
+
ft(p, (C) => C.content())
|
|
3623
3621
|
)
|
|
3624
3622
|
);
|
|
3625
3623
|
})
|
|
@@ -3750,11 +3748,11 @@ function ms(e) {
|
|
|
3750
3748
|
container: g = "body",
|
|
3751
3749
|
header: v,
|
|
3752
3750
|
body: _,
|
|
3753
|
-
footer:
|
|
3751
|
+
footer: C
|
|
3754
3752
|
} = c;
|
|
3755
3753
|
a = t;
|
|
3756
3754
|
const f = U("capturing");
|
|
3757
|
-
|
|
3755
|
+
S.on(d, (V) => {
|
|
3758
3756
|
f.set(V ? "capturing" : "non-capturing");
|
|
3759
3757
|
});
|
|
3760
3758
|
const w = y(
|
|
@@ -3824,14 +3822,14 @@ function ms(e) {
|
|
|
3824
3822
|
s.id(N),
|
|
3825
3823
|
_
|
|
3826
3824
|
),
|
|
3827
|
-
footer:
|
|
3825
|
+
footer: C && m.div(s.class("bc-drawer__footer"), C)
|
|
3828
3826
|
} : {
|
|
3829
3827
|
body: m.div(
|
|
3830
3828
|
s.class("bc-drawer__body"),
|
|
3831
3829
|
s.id(N),
|
|
3832
3830
|
_
|
|
3833
3831
|
),
|
|
3834
|
-
footer:
|
|
3832
|
+
footer: C && m.div(s.class("bc-drawer__footer"), C)
|
|
3835
3833
|
}))
|
|
3836
3834
|
);
|
|
3837
3835
|
});
|