@coffer-org/web 1.6.0 → 1.7.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/assets/{ExtendReasonInfo-C9TZgX6o.js → ExtendReasonInfo-Cw042gEq.js} +1 -1
- package/dist/assets/{NewRecordView-DqJNxHM0.js → NewRecordView-B6V00NvK.js} +1 -1
- package/dist/assets/{PluginSettingsPage-BiBoejjn.js → PluginSettingsPage-BLyv_svI.js} +1 -1
- package/dist/assets/{SettingsForm-D9kBgf6H.js → SettingsForm-YHNQLRBn.js} +1 -1
- package/dist/assets/{SettingsPage-CSzqxAX9.js → SettingsPage-BVB0OiB8.js} +2 -2
- package/dist/assets/{Toolbar-DFtG8IB3.js → Toolbar-C08bdOI6.js} +1 -1
- package/dist/assets/{api-j5etRnzW.js → api-V98HaFMa.js} +1 -1
- package/dist/assets/{auth-context-zE-2rDEl.js → auth-context-CIGQgBfM.js} +1 -1
- package/dist/assets/{data-size-DGgafqIa.js → data-size-DCGcE2iT.js} +1 -1
- package/dist/assets/{extend-DrbW8fXY.js → extend-DDZLGxKJ.js} +1 -1
- package/dist/assets/{field-frame-9VMMov4O.js → field-frame-UyV2HVbd.js} +1 -1
- package/dist/assets/fields-B4fdbc1_.js +64 -0
- package/dist/assets/index-D_9GGfvb.js +354 -0
- package/dist/assets/{shelf-iRNXQLvo.js → shelf-e7xL1R3N.js} +1 -1
- package/dist/assets/{src-BfR4XKOl.js → src-56y8la1R.js} +1 -1
- package/dist/assets/{src-BZoeScha.js → src-B5o7YUhY.js} +1 -1
- package/dist/assets/{src-Ds0SdDJ_.js → src-BB5pAQoq.js} +1 -1
- package/dist/assets/src-BBTJclQ3.js +1 -0
- package/dist/assets/{src-DrOECW8l.js → src-BEw_wZX0.js} +1 -1
- package/dist/assets/{src-Dh23dKOF.js → src-BKpM04ou.js} +1 -1
- package/dist/assets/{src-DBWRsAkM.js → src-BNqZqACY.js} +1 -1
- package/dist/assets/src-BYe9NBzz.js +1 -0
- package/dist/assets/{src-YSzd3JaE.js → src-Bt8MMPOh.js} +1 -1
- package/dist/assets/{src-Coppd4mf.js → src-BylCqt8_.js} +1 -1
- package/dist/assets/src-CB26t1uZ.js +1 -0
- package/dist/assets/{src-CVrkkuph.js → src-CQcwtQ4u.js} +1 -1
- package/dist/assets/{src-C76fLvMo.js → src-CSLTj9M0.js} +1 -1
- package/dist/assets/{src-DEDH6rgD.js → src-CVMB8d9V.js} +1 -1
- package/dist/assets/{src-AaMeWnPg.js → src-CW-yI1QF.js} +1 -1
- package/dist/assets/{src-CwtznTUh.js → src-Cldq12DB.js} +1 -1
- package/dist/assets/{src-BBa4IgZu.js → src-D6YMn8QE.js} +1 -1
- package/dist/assets/{src-BxsItvRt.js → src-DlE7vhyV.js} +1 -1
- package/dist/assets/{src-Cp_tlXaj2.js → src-Dm6EOjlD2.js} +1 -1
- package/dist/assets/{src-kp91nAOQ.js → src-EnowVU3i.js} +1 -1
- package/dist/assets/{src-DdtX_tOa.js → src-R62BabNC.js} +1 -1
- package/dist/assets/{src-BkfNNzHS.js → src-iQwVT5tJ.js} +1 -1
- package/dist/assets/{src-P7xgnaCz.js → src-juXm-tHq.js} +1 -1
- package/dist/assets/{ui-uxAWrOIV.js → ui-D2hIw4gq.js} +1 -1
- package/dist/index.html +10 -10
- package/dist-vendor/web-sdk.js +215 -201
- package/package.json +1 -1
- package/dist/assets/fields-CQxZPdka.js +0 -64
- package/dist/assets/index-D5IQ3-ik.js +0 -381
- package/dist/assets/src-BGSRFSIw.js +0 -1
- package/dist/assets/src-CSK1-7o-.js +0 -1
- package/dist/assets/src-GOwr0Acm.js +0 -1
package/dist-vendor/web-sdk.js
CHANGED
|
@@ -3477,7 +3477,7 @@ function po(e) {
|
|
|
3477
3477
|
}, t.multiple ?? !1));
|
|
3478
3478
|
}
|
|
3479
3479
|
function mo(e) {
|
|
3480
|
-
let t = q(e), n = t.required ?? !1, r = I().regex(
|
|
3480
|
+
let t = q(e), n = t.required ?? !1, r = I().regex(To, { message: U("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
|
|
3481
3481
|
return Y(t, X({
|
|
3482
3482
|
kind: "tel",
|
|
3483
3483
|
label: t.label ?? "",
|
|
@@ -3521,9 +3521,22 @@ function go(e) {
|
|
|
3521
3521
|
]
|
|
3522
3522
|
});
|
|
3523
3523
|
}
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3524
|
+
function _o(e) {
|
|
3525
|
+
return J({
|
|
3526
|
+
key: e.key,
|
|
3527
|
+
label: e.label ?? e.key,
|
|
3528
|
+
multiple: !0,
|
|
3529
|
+
view: { kind: "internalOauthGrants" },
|
|
3530
|
+
fields: [
|
|
3531
|
+
Z({ key: "clientName" }),
|
|
3532
|
+
Z({ key: "createdAt" }),
|
|
3533
|
+
Z({ key: "lastUsedAt" })
|
|
3534
|
+
]
|
|
3535
|
+
});
|
|
3536
|
+
}
|
|
3537
|
+
var vo = /^[a-z0-9-]+$/;
|
|
3538
|
+
function yo(e) {
|
|
3539
|
+
let t = q(e), n = t.required ?? !1, r = I().regex(vo, { message: U("pattern", { messageKey: "core.presets.slug" }) });
|
|
3527
3540
|
return Y(t, X({
|
|
3528
3541
|
kind: "slug",
|
|
3529
3542
|
label: t.label ?? "",
|
|
@@ -3534,9 +3547,9 @@ function vo(e) {
|
|
|
3534
3547
|
zod: K(r, n)
|
|
3535
3548
|
}, t.multiple ?? !1));
|
|
3536
3549
|
}
|
|
3537
|
-
var
|
|
3538
|
-
function
|
|
3539
|
-
let t = q(e), n = t.required ?? !1, r = I().regex(
|
|
3550
|
+
var bo = /^#[0-9a-fA-F]{6}$/;
|
|
3551
|
+
function xo(e) {
|
|
3552
|
+
let t = q(e), n = t.required ?? !1, r = I().regex(bo, { message: U("color_format") });
|
|
3540
3553
|
return Y(t, X({
|
|
3541
3554
|
kind: "color",
|
|
3542
3555
|
label: t.label ?? "",
|
|
@@ -3547,8 +3560,8 @@ function bo(e) {
|
|
|
3547
3560
|
zod: K(r, n)
|
|
3548
3561
|
}, t.multiple ?? !1));
|
|
3549
3562
|
}
|
|
3550
|
-
function
|
|
3551
|
-
let t = q(e), n = t.required ?? !1, r = (n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I()).refine((e) =>
|
|
3563
|
+
function So(e) {
|
|
3564
|
+
let t = q(e), n = t.required ?? !1, r = (n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I()).refine((e) => Do.has(e.toLowerCase()), { message: U("colorname") });
|
|
3552
3565
|
return Y(t, X({
|
|
3553
3566
|
kind: "colorname",
|
|
3554
3567
|
label: t.label ?? "",
|
|
@@ -3559,7 +3572,7 @@ function xo(e) {
|
|
|
3559
3572
|
zod: K(r, n)
|
|
3560
3573
|
}, t.multiple ?? !1));
|
|
3561
3574
|
}
|
|
3562
|
-
function
|
|
3575
|
+
function Co(e) {
|
|
3563
3576
|
let t = q(e), n = t.required ?? !1, r = n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I();
|
|
3564
3577
|
return Y(t, X({
|
|
3565
3578
|
kind: "title",
|
|
@@ -3571,8 +3584,8 @@ function So(e) {
|
|
|
3571
3584
|
zod: K(r, n)
|
|
3572
3585
|
}, t.multiple ?? !1));
|
|
3573
3586
|
}
|
|
3574
|
-
function
|
|
3575
|
-
let t = q(e), n = t.required ?? !1, r = I().regex(
|
|
3587
|
+
function wo(e) {
|
|
3588
|
+
let t = q(e), n = t.required ?? !1, r = I().regex(Eo, { message: U("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
|
|
3576
3589
|
return Y(t, X({
|
|
3577
3590
|
kind: "link",
|
|
3578
3591
|
label: t.label ?? "",
|
|
@@ -3586,8 +3599,8 @@ function Co(e) {
|
|
|
3586
3599
|
zod: K(i, n)
|
|
3587
3600
|
}, t.multiple ?? !1));
|
|
3588
3601
|
}
|
|
3589
|
-
var
|
|
3590
|
-
function
|
|
3602
|
+
var To = /^\+?[\d\s()-]{4,}$/, Eo = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i, Do = /* @__PURE__ */ new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent".split("."));
|
|
3603
|
+
function Oo(e) {
|
|
3591
3604
|
let t = q(e), n = t.required ?? !1, r = I().min(1, { message: U("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
|
|
3592
3605
|
return Y(t, X({
|
|
3593
3606
|
kind: "tag",
|
|
@@ -3602,13 +3615,13 @@ function Do(e) {
|
|
|
3602
3615
|
zod: K(r, n)
|
|
3603
3616
|
}, t.multiple ?? !1));
|
|
3604
3617
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3618
|
+
function ko(e) {
|
|
3619
|
+
return Oo({
|
|
3607
3620
|
...e,
|
|
3608
3621
|
multiple: !0
|
|
3609
3622
|
});
|
|
3610
3623
|
}
|
|
3611
|
-
function
|
|
3624
|
+
function Ao(e) {
|
|
3612
3625
|
return Y(q(e), {
|
|
3613
3626
|
...Q({
|
|
3614
3627
|
label: e.label,
|
|
@@ -3619,7 +3632,7 @@ function ko(e) {
|
|
|
3619
3632
|
kind: "markdown"
|
|
3620
3633
|
});
|
|
3621
3634
|
}
|
|
3622
|
-
function
|
|
3635
|
+
function jo(e) {
|
|
3623
3636
|
let t = e.rules?.language, n = q(e), r = Q({
|
|
3624
3637
|
label: e.label,
|
|
3625
3638
|
rules: e.rules,
|
|
@@ -3635,7 +3648,7 @@ function Ao(e) {
|
|
|
3635
3648
|
}
|
|
3636
3649
|
});
|
|
3637
3650
|
}
|
|
3638
|
-
function
|
|
3651
|
+
function Mo(e) {
|
|
3639
3652
|
let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = H(lo()).int({ message: U("int") }).min(1, { message: U("min", { min: 1 }) }).max(r, { message: U("max", { max: r }) });
|
|
3640
3653
|
return Y(t, X({
|
|
3641
3654
|
kind: "rating",
|
|
@@ -3647,7 +3660,7 @@ function jo(e) {
|
|
|
3647
3660
|
zod: K(i, n)
|
|
3648
3661
|
}, t.multiple ?? !1));
|
|
3649
3662
|
}
|
|
3650
|
-
function
|
|
3663
|
+
function No(e) {
|
|
3651
3664
|
let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = H(lo()).int({ message: U("int") }).min(0, { message: U("min", { min: 0 }) }).max(r, { message: U("max", { max: r }) });
|
|
3652
3665
|
return Y(t, X({
|
|
3653
3666
|
kind: "duration",
|
|
@@ -3662,8 +3675,8 @@ function Mo(e) {
|
|
|
3662
3675
|
zod: K(a, n)
|
|
3663
3676
|
}, t.multiple ?? !1));
|
|
3664
3677
|
}
|
|
3665
|
-
function
|
|
3666
|
-
let t = q(e), n =
|
|
3678
|
+
function Po(e) {
|
|
3679
|
+
let t = q(e), n = vs({
|
|
3667
3680
|
label: e.label,
|
|
3668
3681
|
rules: e.rules,
|
|
3669
3682
|
view: e.view
|
|
@@ -3678,9 +3691,9 @@ function No(e) {
|
|
|
3678
3691
|
}
|
|
3679
3692
|
});
|
|
3680
3693
|
}
|
|
3681
|
-
var
|
|
3682
|
-
function
|
|
3683
|
-
return
|
|
3694
|
+
var Fo = gs, Io = _s;
|
|
3695
|
+
function Lo(e) {
|
|
3696
|
+
return Fo({
|
|
3684
3697
|
...e,
|
|
3685
3698
|
rules: {
|
|
3686
3699
|
min: 0,
|
|
@@ -3689,8 +3702,8 @@ function Io(e) {
|
|
|
3689
3702
|
}
|
|
3690
3703
|
});
|
|
3691
3704
|
}
|
|
3692
|
-
function
|
|
3693
|
-
return
|
|
3705
|
+
function Ro(e) {
|
|
3706
|
+
return Io({
|
|
3694
3707
|
...e,
|
|
3695
3708
|
rules: {
|
|
3696
3709
|
min: 1900,
|
|
@@ -3699,8 +3712,8 @@ function Lo(e) {
|
|
|
3699
3712
|
}
|
|
3700
3713
|
});
|
|
3701
3714
|
}
|
|
3702
|
-
function
|
|
3703
|
-
let t = q(e), n =
|
|
3715
|
+
function zo(e) {
|
|
3716
|
+
let t = q(e), n = _s({
|
|
3704
3717
|
label: e.label,
|
|
3705
3718
|
rules: {
|
|
3706
3719
|
min: 1,
|
|
@@ -3717,7 +3730,7 @@ function Ro(e) {
|
|
|
3717
3730
|
}
|
|
3718
3731
|
});
|
|
3719
3732
|
}
|
|
3720
|
-
function
|
|
3733
|
+
function Bo(e) {
|
|
3721
3734
|
let t = q(e), n = t.required ?? !1, r = fo(B({
|
|
3722
3735
|
w: R().int().nonnegative(),
|
|
3723
3736
|
h: R().int().nonnegative(),
|
|
@@ -3738,35 +3751,36 @@ function zo(e) {
|
|
|
3738
3751
|
zod: K(r, n)
|
|
3739
3752
|
});
|
|
3740
3753
|
}
|
|
3741
|
-
function
|
|
3742
|
-
return
|
|
3754
|
+
function Vo(e) {
|
|
3755
|
+
return Cs({
|
|
3743
3756
|
...e,
|
|
3744
3757
|
options: "countries"
|
|
3745
3758
|
});
|
|
3746
3759
|
}
|
|
3747
|
-
var
|
|
3760
|
+
var Ho = {
|
|
3748
3761
|
email: po,
|
|
3749
3762
|
tel: mo,
|
|
3750
|
-
slug:
|
|
3751
|
-
color:
|
|
3752
|
-
colorname:
|
|
3753
|
-
title:
|
|
3763
|
+
slug: yo,
|
|
3764
|
+
color: xo,
|
|
3765
|
+
colorname: So,
|
|
3766
|
+
title: Co,
|
|
3754
3767
|
password: ho,
|
|
3755
|
-
link:
|
|
3756
|
-
tag:
|
|
3757
|
-
tags:
|
|
3758
|
-
markdown:
|
|
3759
|
-
snippet:
|
|
3760
|
-
rating:
|
|
3761
|
-
duration:
|
|
3762
|
-
reminder:
|
|
3763
|
-
percent:
|
|
3764
|
-
year:
|
|
3765
|
-
weight:
|
|
3766
|
-
dimensions:
|
|
3767
|
-
country:
|
|
3768
|
-
internalApiToken: go
|
|
3769
|
-
|
|
3768
|
+
link: wo,
|
|
3769
|
+
tag: Oo,
|
|
3770
|
+
tags: ko,
|
|
3771
|
+
markdown: Ao,
|
|
3772
|
+
snippet: jo,
|
|
3773
|
+
rating: Mo,
|
|
3774
|
+
duration: No,
|
|
3775
|
+
reminder: Po,
|
|
3776
|
+
percent: Lo,
|
|
3777
|
+
year: Ro,
|
|
3778
|
+
weight: zo,
|
|
3779
|
+
dimensions: Bo,
|
|
3780
|
+
country: Vo,
|
|
3781
|
+
internalApiToken: go,
|
|
3782
|
+
internalOauthGrants: _o
|
|
3783
|
+
}, Uo = /* @__PURE__ */ t(((e, t) => {
|
|
3770
3784
|
t.exports = {
|
|
3771
3785
|
aa: {
|
|
3772
3786
|
name: "Afar",
|
|
@@ -4501,8 +4515,8 @@ var Vo = {
|
|
|
4501
4515
|
nativeName: "isiZulu"
|
|
4502
4516
|
}
|
|
4503
4517
|
};
|
|
4504
|
-
})),
|
|
4505
|
-
var n =
|
|
4518
|
+
})), Wo = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
4519
|
+
var n = Uo(), r = {}, i = {}, a = [], o = [], s = [];
|
|
4506
4520
|
for (let e in n) {
|
|
4507
4521
|
let { name: t, nativeName: c } = n[e];
|
|
4508
4522
|
r[e] = i[t.toLowerCase()] = i[c.toLowerCase()] = {
|
|
@@ -4542,13 +4556,13 @@ var Vo = {
|
|
|
4542
4556
|
}
|
|
4543
4557
|
};
|
|
4544
4558
|
})))(), 1);
|
|
4545
|
-
|
|
4559
|
+
Wo.default.getAllCodes().map((e) => ({
|
|
4546
4560
|
code: e,
|
|
4547
|
-
name:
|
|
4561
|
+
name: Wo.default.getNativeName(e)
|
|
4548
4562
|
})).sort((e, t) => e.name.localeCompare(t.name));
|
|
4549
4563
|
//#endregion
|
|
4550
4564
|
//#region ../sdk/src/fields.ts
|
|
4551
|
-
var
|
|
4565
|
+
var Go = (e) => "key" in e && !("el" in e), Ko = (e) => "el" in e && e.el === "static", qo = (e) => "el" in e && e.el === "group", Jo = (e) => "el" in e && e.el === "divider", Yo = (e) => "el" in e && e.el === "info", Xo = (e) => "el" in e && e.el === "button";
|
|
4552
4566
|
function J(e) {
|
|
4553
4567
|
let t = e.rules ?? {}, n = e.view ?? {};
|
|
4554
4568
|
if (e.key) {
|
|
@@ -4570,7 +4584,7 @@ function J(e) {
|
|
|
4570
4584
|
fields: e.fields
|
|
4571
4585
|
};
|
|
4572
4586
|
}
|
|
4573
|
-
function
|
|
4587
|
+
function Zo(e) {
|
|
4574
4588
|
return J({
|
|
4575
4589
|
label: e.label,
|
|
4576
4590
|
fields: e.fields,
|
|
@@ -4580,7 +4594,7 @@ function Xo(e) {
|
|
|
4580
4594
|
}
|
|
4581
4595
|
});
|
|
4582
4596
|
}
|
|
4583
|
-
function
|
|
4597
|
+
function Qo(e) {
|
|
4584
4598
|
return J({
|
|
4585
4599
|
key: e.key,
|
|
4586
4600
|
label: e.label,
|
|
@@ -4594,10 +4608,10 @@ function Zo(e) {
|
|
|
4594
4608
|
}
|
|
4595
4609
|
});
|
|
4596
4610
|
}
|
|
4597
|
-
function
|
|
4611
|
+
function $o(e) {
|
|
4598
4612
|
let t = [];
|
|
4599
4613
|
return e.fields.forEach((e, n) => {
|
|
4600
|
-
n > 0 && t.push(
|
|
4614
|
+
n > 0 && t.push(as()), t.push(...e);
|
|
4601
4615
|
}), J({
|
|
4602
4616
|
label: e.label,
|
|
4603
4617
|
fields: t,
|
|
@@ -4607,7 +4621,7 @@ function Qo(e) {
|
|
|
4607
4621
|
}
|
|
4608
4622
|
});
|
|
4609
4623
|
}
|
|
4610
|
-
function
|
|
4624
|
+
function es(e) {
|
|
4611
4625
|
return J({
|
|
4612
4626
|
key: e.key,
|
|
4613
4627
|
label: e.label ?? e.key,
|
|
@@ -4618,14 +4632,14 @@ function $o(e) {
|
|
|
4618
4632
|
Z({ key: "username" }),
|
|
4619
4633
|
Z({ key: "password" }),
|
|
4620
4634
|
Z({ key: "host" }),
|
|
4621
|
-
|
|
4635
|
+
_s({ key: "port" }),
|
|
4622
4636
|
Z({ key: "path" }),
|
|
4623
4637
|
Z({ key: "query" }),
|
|
4624
4638
|
Z({ key: "hash" })
|
|
4625
4639
|
]
|
|
4626
4640
|
});
|
|
4627
4641
|
}
|
|
4628
|
-
function
|
|
4642
|
+
function ts(e) {
|
|
4629
4643
|
if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
|
|
4630
4644
|
return {
|
|
4631
4645
|
...(e.container ?? J)({
|
|
@@ -4640,20 +4654,20 @@ function es(e) {
|
|
|
4640
4654
|
fixed: e.fixed
|
|
4641
4655
|
};
|
|
4642
4656
|
}
|
|
4643
|
-
var
|
|
4644
|
-
function
|
|
4657
|
+
var ns = (e) => e.key != null && e.multiple === !0, rs = (e) => e.key != null && e.multiple !== !0;
|
|
4658
|
+
function is() {
|
|
4645
4659
|
return { el: "divider" };
|
|
4646
4660
|
}
|
|
4647
|
-
function
|
|
4661
|
+
function as() {
|
|
4648
4662
|
return { el: "break" };
|
|
4649
4663
|
}
|
|
4650
|
-
function
|
|
4664
|
+
function os(e) {
|
|
4651
4665
|
return {
|
|
4652
4666
|
el: "info",
|
|
4653
4667
|
text: e
|
|
4654
4668
|
};
|
|
4655
4669
|
}
|
|
4656
|
-
function
|
|
4670
|
+
function ss(e) {
|
|
4657
4671
|
return {
|
|
4658
4672
|
el: "button",
|
|
4659
4673
|
label: e.label,
|
|
@@ -4709,17 +4723,17 @@ function Y(e, t) {
|
|
|
4709
4723
|
value: e.value
|
|
4710
4724
|
} : n;
|
|
4711
4725
|
}
|
|
4712
|
-
function
|
|
4726
|
+
function cs(e) {
|
|
4713
4727
|
return e === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : e;
|
|
4714
4728
|
}
|
|
4715
|
-
function
|
|
4729
|
+
function ls(e) {
|
|
4716
4730
|
try {
|
|
4717
4731
|
return JSON.parse(e);
|
|
4718
4732
|
} catch {
|
|
4719
4733
|
return;
|
|
4720
4734
|
}
|
|
4721
4735
|
}
|
|
4722
|
-
function
|
|
4736
|
+
function us(e) {
|
|
4723
4737
|
return z().superRefine((t, n) => {
|
|
4724
4738
|
let r;
|
|
4725
4739
|
if (Array.isArray(t)) r = t;
|
|
@@ -4757,7 +4771,7 @@ function ls(e) {
|
|
|
4757
4771
|
}
|
|
4758
4772
|
function X(e, t) {
|
|
4759
4773
|
if (!t) return e;
|
|
4760
|
-
let n =
|
|
4774
|
+
let n = us(e.zod);
|
|
4761
4775
|
return {
|
|
4762
4776
|
...e,
|
|
4763
4777
|
column: "text",
|
|
@@ -4784,7 +4798,7 @@ function Z(e) {
|
|
|
4784
4798
|
zod: K(a, n)
|
|
4785
4799
|
}, t.multiple ?? !1));
|
|
4786
4800
|
}
|
|
4787
|
-
function
|
|
4801
|
+
function ds(e, t, n) {
|
|
4788
4802
|
let r = e.required ?? !1, i = I(uo());
|
|
4789
4803
|
return e.required === !0 && (i = i.min(1, { message: U("min_length", { min: 1 }) })), Y(e, {
|
|
4790
4804
|
kind: t,
|
|
@@ -4797,12 +4811,12 @@ function us(e, t, n) {
|
|
|
4797
4811
|
...e.default === void 0 ? {} : { default: e.default }
|
|
4798
4812
|
});
|
|
4799
4813
|
}
|
|
4800
|
-
function ds(e) {
|
|
4801
|
-
return us(q(e), "localDir");
|
|
4802
|
-
}
|
|
4803
4814
|
function fs(e) {
|
|
4815
|
+
return ds(q(e), "localDir");
|
|
4816
|
+
}
|
|
4817
|
+
function ps(e) {
|
|
4804
4818
|
let t = q(e);
|
|
4805
|
-
return
|
|
4819
|
+
return ds(t, "localFile", t.exts);
|
|
4806
4820
|
}
|
|
4807
4821
|
function Q(e) {
|
|
4808
4822
|
return Y(q(e), {
|
|
@@ -4815,7 +4829,7 @@ function Q(e) {
|
|
|
4815
4829
|
kind: "textarea"
|
|
4816
4830
|
});
|
|
4817
4831
|
}
|
|
4818
|
-
function
|
|
4832
|
+
function ms(e) {
|
|
4819
4833
|
return Y(q(e), {
|
|
4820
4834
|
...Q({
|
|
4821
4835
|
...e,
|
|
@@ -4825,7 +4839,7 @@ function ps(e) {
|
|
|
4825
4839
|
kind: "i18n"
|
|
4826
4840
|
});
|
|
4827
4841
|
}
|
|
4828
|
-
function
|
|
4842
|
+
function hs(e) {
|
|
4829
4843
|
return Y(q(e), {
|
|
4830
4844
|
...Q({
|
|
4831
4845
|
...e,
|
|
@@ -4835,7 +4849,7 @@ function ms(e) {
|
|
|
4835
4849
|
kind: "smalltext"
|
|
4836
4850
|
});
|
|
4837
4851
|
}
|
|
4838
|
-
function
|
|
4852
|
+
function gs(e) {
|
|
4839
4853
|
let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo());
|
|
4840
4854
|
return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
|
|
4841
4855
|
kind: "number",
|
|
@@ -4851,7 +4865,7 @@ function hs(e) {
|
|
|
4851
4865
|
zod: K(i, n)
|
|
4852
4866
|
}, t.multiple ?? !1));
|
|
4853
4867
|
}
|
|
4854
|
-
function
|
|
4868
|
+
function _s(e) {
|
|
4855
4869
|
let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo()).int({ message: U("int") });
|
|
4856
4870
|
return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
|
|
4857
4871
|
kind: "number",
|
|
@@ -4867,7 +4881,7 @@ function gs(e) {
|
|
|
4867
4881
|
zod: K(i, n)
|
|
4868
4882
|
}, t.multiple ?? !1));
|
|
4869
4883
|
}
|
|
4870
|
-
function
|
|
4884
|
+
function vs(e) {
|
|
4871
4885
|
let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
|
|
4872
4886
|
return i = r === "year" ? I(W()).regex(/^\d{4}$/, { message: U("date_format") }).superRefine((e, n) => {
|
|
4873
4887
|
t.min && e < t.min && n.addIssue({
|
|
@@ -4886,12 +4900,12 @@ function _s(e) {
|
|
|
4886
4900
|
message: U("date_max", { max: t.max })
|
|
4887
4901
|
});
|
|
4888
4902
|
}) : I(W()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: U("date_format") }).superRefine((e, n) => {
|
|
4889
|
-
t.min && e <
|
|
4903
|
+
t.min && e < cs(t.min) && n.addIssue({
|
|
4890
4904
|
code: V.custom,
|
|
4891
|
-
message: U("date_min", { min:
|
|
4892
|
-
}), t.max && e >
|
|
4905
|
+
message: U("date_min", { min: cs(t.min) })
|
|
4906
|
+
}), t.max && e > cs(t.max) && n.addIssue({
|
|
4893
4907
|
code: V.custom,
|
|
4894
|
-
message: U("date_max", { max:
|
|
4908
|
+
message: U("date_max", { max: cs(t.max) })
|
|
4895
4909
|
});
|
|
4896
4910
|
}), Y(t, X({
|
|
4897
4911
|
kind: "date",
|
|
@@ -4907,7 +4921,7 @@ function _s(e) {
|
|
|
4907
4921
|
zod: K(i, n)
|
|
4908
4922
|
}, t.multiple ?? !1));
|
|
4909
4923
|
}
|
|
4910
|
-
function
|
|
4924
|
+
function ys(e) {
|
|
4911
4925
|
let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = I(W()).regex({
|
|
4912
4926
|
hour: /^([01]\d|2[0-3])$/,
|
|
4913
4927
|
minute: /^([01]\d|2[0-3]):[0-5]\d$/,
|
|
@@ -4923,7 +4937,7 @@ function vs(e) {
|
|
|
4923
4937
|
zod: K(i, n)
|
|
4924
4938
|
}, t.multiple ?? !1));
|
|
4925
4939
|
}
|
|
4926
|
-
function
|
|
4940
|
+
function bs(e) {
|
|
4927
4941
|
let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = I(W()).regex({
|
|
4928
4942
|
hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
|
|
4929
4943
|
minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
|
|
@@ -4939,7 +4953,7 @@ function ys(e) {
|
|
|
4939
4953
|
zod: K(i, n)
|
|
4940
4954
|
}, t.multiple ?? !1));
|
|
4941
4955
|
}
|
|
4942
|
-
function
|
|
4956
|
+
function xs(e) {
|
|
4943
4957
|
let t = q(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
|
|
4944
4958
|
return Y(t, {
|
|
4945
4959
|
kind: "boolean",
|
|
@@ -4951,7 +4965,7 @@ function bs(e) {
|
|
|
4951
4965
|
zod: n
|
|
4952
4966
|
});
|
|
4953
4967
|
}
|
|
4954
|
-
function
|
|
4968
|
+
function Ss(e) {
|
|
4955
4969
|
let t = q(e), n = t.required ?? !1, r = Oa([
|
|
4956
4970
|
"yes",
|
|
4957
4971
|
"no",
|
|
@@ -4967,7 +4981,7 @@ function xs(e) {
|
|
|
4967
4981
|
zod: K(r, n)
|
|
4968
4982
|
});
|
|
4969
4983
|
}
|
|
4970
|
-
function
|
|
4984
|
+
function Cs(e) {
|
|
4971
4985
|
let t = q(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => U("enum") }) : I(W());
|
|
4972
4986
|
return Y(t, X({
|
|
4973
4987
|
kind: "select",
|
|
@@ -4980,7 +4994,7 @@ function Ss(e) {
|
|
|
4980
4994
|
zod: K(a, n)
|
|
4981
4995
|
}, t.multiple ?? !1));
|
|
4982
4996
|
}
|
|
4983
|
-
function
|
|
4997
|
+
function ws(e) {
|
|
4984
4998
|
let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
|
|
4985
4999
|
return i = r ? z().superRefine((e, t) => {
|
|
4986
5000
|
let n = G(e);
|
|
@@ -5006,7 +5020,7 @@ function Cs(e) {
|
|
|
5006
5020
|
zod: K(i, n)
|
|
5007
5021
|
});
|
|
5008
5022
|
}
|
|
5009
|
-
function
|
|
5023
|
+
function Ts(e) {
|
|
5010
5024
|
let t = q(e), n = t.required ?? !1, r = z().superRefine((e, t) => {
|
|
5011
5025
|
if (typeof e == "string") try {
|
|
5012
5026
|
JSON.parse(e);
|
|
@@ -5028,10 +5042,10 @@ function ws(e) {
|
|
|
5028
5042
|
zod: K(r, n)
|
|
5029
5043
|
});
|
|
5030
5044
|
}
|
|
5031
|
-
function
|
|
5045
|
+
function Es(e) {
|
|
5032
5046
|
let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""];
|
|
5033
5047
|
if (r) {
|
|
5034
|
-
let e = i.map((e, t) =>
|
|
5048
|
+
let e = i.map((e, t) => xs({
|
|
5035
5049
|
key: `check${t}`,
|
|
5036
5050
|
label: e || "core.fields.check"
|
|
5037
5051
|
}));
|
|
@@ -5052,7 +5066,7 @@ function Ts(e) {
|
|
|
5052
5066
|
a[`check${t}`] = ma(), o[`check${t}`] = "boolean";
|
|
5053
5067
|
});
|
|
5054
5068
|
let s = B(a).passthrough(), c = z().superRefine((e, t) => {
|
|
5055
|
-
let n = typeof e == "string" ?
|
|
5069
|
+
let n = typeof e == "string" ? ls(e) : e;
|
|
5056
5070
|
if (n === void 0) {
|
|
5057
5071
|
t.addIssue({
|
|
5058
5072
|
code: V.custom,
|
|
@@ -5076,7 +5090,7 @@ function Ts(e) {
|
|
|
5076
5090
|
zod: K(c, n)
|
|
5077
5091
|
});
|
|
5078
5092
|
}
|
|
5079
|
-
function
|
|
5093
|
+
function Ds(e) {
|
|
5080
5094
|
let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = R().finite();
|
|
5081
5095
|
r.step === 1 && (a = a.int({ message: U("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
|
|
5082
5096
|
let o = B({
|
|
@@ -5125,7 +5139,7 @@ function Es(e) {
|
|
|
5125
5139
|
zod: K(s, n)
|
|
5126
5140
|
});
|
|
5127
5141
|
}
|
|
5128
|
-
function
|
|
5142
|
+
function Os(e) {
|
|
5129
5143
|
let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = R().finite();
|
|
5130
5144
|
r.min != null && (i = i.min(r.min)), r.max != null && (i = i.max(r.max));
|
|
5131
5145
|
let a = B({
|
|
@@ -5163,7 +5177,7 @@ function Ds(e) {
|
|
|
5163
5177
|
zod: K(o, n)
|
|
5164
5178
|
});
|
|
5165
5179
|
}
|
|
5166
|
-
function
|
|
5180
|
+
function ks(e) {
|
|
5167
5181
|
let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = B({
|
|
5168
5182
|
code: I(),
|
|
5169
5183
|
lang: I()
|
|
@@ -5195,7 +5209,7 @@ function Os(e) {
|
|
|
5195
5209
|
zod: K(a, n)
|
|
5196
5210
|
});
|
|
5197
5211
|
}
|
|
5198
|
-
function
|
|
5212
|
+
function As(e) {
|
|
5199
5213
|
let t = q(e), n = t.required ?? !1, r = B({
|
|
5200
5214
|
lat: R().min(-90).max(90),
|
|
5201
5215
|
lng: R().min(-180).max(180),
|
|
@@ -5236,18 +5250,18 @@ function ks(e) {
|
|
|
5236
5250
|
zod: K(i, n)
|
|
5237
5251
|
});
|
|
5238
5252
|
}
|
|
5239
|
-
function
|
|
5253
|
+
function js(e) {
|
|
5240
5254
|
return {
|
|
5241
|
-
...
|
|
5255
|
+
...ts({
|
|
5242
5256
|
key: e.key,
|
|
5243
5257
|
label: e.label,
|
|
5244
|
-
by:
|
|
5258
|
+
by: Cs({
|
|
5245
5259
|
key: "day",
|
|
5246
5260
|
label: "core.fields.weekday",
|
|
5247
5261
|
options: "weekdays"
|
|
5248
5262
|
}),
|
|
5249
5263
|
fixed: !0,
|
|
5250
|
-
fields: [
|
|
5264
|
+
fields: [gs({
|
|
5251
5265
|
key: "value",
|
|
5252
5266
|
label: "core.fields.value",
|
|
5253
5267
|
rules: e.rules
|
|
@@ -5256,7 +5270,7 @@ function As(e) {
|
|
|
5256
5270
|
kind: "per-weekday"
|
|
5257
5271
|
};
|
|
5258
5272
|
}
|
|
5259
|
-
function
|
|
5273
|
+
function Ms(e) {
|
|
5260
5274
|
let t = q(e);
|
|
5261
5275
|
return Y(t, {
|
|
5262
5276
|
kind: "lookup",
|
|
@@ -5273,11 +5287,11 @@ function js(e) {
|
|
|
5273
5287
|
zod: ga().optional()
|
|
5274
5288
|
});
|
|
5275
5289
|
}
|
|
5276
|
-
function
|
|
5277
|
-
let t = q(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ?
|
|
5290
|
+
function Ns(e) {
|
|
5291
|
+
let t = q(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? bs({
|
|
5278
5292
|
key: e,
|
|
5279
5293
|
label: t
|
|
5280
|
-
}) :
|
|
5294
|
+
}) : vs({
|
|
5281
5295
|
key: e,
|
|
5282
5296
|
label: t,
|
|
5283
5297
|
rules: { granularity: n === "month" ? "month" : "day" }
|
|
@@ -5314,10 +5328,10 @@ function Ms(e) {
|
|
|
5314
5328
|
});
|
|
5315
5329
|
let d = n === "datetime" ? "datetime" : n === "day" ? "date" : "text", f = [{
|
|
5316
5330
|
key: "from",
|
|
5317
|
-
...
|
|
5331
|
+
...Qs(o.type)
|
|
5318
5332
|
}, {
|
|
5319
5333
|
key: "until",
|
|
5320
|
-
...
|
|
5334
|
+
...Qs(s.type)
|
|
5321
5335
|
}];
|
|
5322
5336
|
return Y(t, {
|
|
5323
5337
|
kind: "period",
|
|
@@ -5373,42 +5387,42 @@ function $(e, t) {
|
|
|
5373
5387
|
zod: K(o, r)
|
|
5374
5388
|
});
|
|
5375
5389
|
}
|
|
5376
|
-
function
|
|
5390
|
+
function Ps(e) {
|
|
5377
5391
|
return $("file", e);
|
|
5378
5392
|
}
|
|
5379
|
-
function
|
|
5393
|
+
function Fs(e) {
|
|
5380
5394
|
return $("document", e);
|
|
5381
5395
|
}
|
|
5382
|
-
function
|
|
5396
|
+
function Is(e) {
|
|
5383
5397
|
return $("audio", e);
|
|
5384
5398
|
}
|
|
5385
|
-
function
|
|
5399
|
+
function Ls(e) {
|
|
5386
5400
|
return $("video", e);
|
|
5387
5401
|
}
|
|
5388
|
-
function
|
|
5402
|
+
function Rs(e) {
|
|
5389
5403
|
return $("image", e);
|
|
5390
5404
|
}
|
|
5391
|
-
function
|
|
5405
|
+
function zs(e) {
|
|
5392
5406
|
return $("media", e);
|
|
5393
5407
|
}
|
|
5394
|
-
function
|
|
5408
|
+
function Bs(e) {
|
|
5395
5409
|
return $("avatar", e);
|
|
5396
5410
|
}
|
|
5397
|
-
function
|
|
5411
|
+
function Vs(e) {
|
|
5398
5412
|
return $("cover", e);
|
|
5399
5413
|
}
|
|
5400
|
-
function
|
|
5414
|
+
function Hs(e) {
|
|
5401
5415
|
return $("poster", e);
|
|
5402
5416
|
}
|
|
5403
|
-
function
|
|
5417
|
+
function Us(e) {
|
|
5404
5418
|
let t = q(e), n = {
|
|
5405
5419
|
...t.option ?? Z({ label: "" }),
|
|
5406
5420
|
label: t.valueLabel ?? ""
|
|
5407
5421
|
};
|
|
5408
|
-
return
|
|
5422
|
+
return ts({
|
|
5409
5423
|
key: t.key,
|
|
5410
5424
|
label: t.label ?? "",
|
|
5411
|
-
container: t.container ??
|
|
5425
|
+
container: t.container ?? Qo,
|
|
5412
5426
|
by: Z({
|
|
5413
5427
|
key: "key",
|
|
5414
5428
|
label: t.keyLabel ?? ""
|
|
@@ -5420,7 +5434,7 @@ function Hs(e) {
|
|
|
5420
5434
|
required: t.required
|
|
5421
5435
|
});
|
|
5422
5436
|
}
|
|
5423
|
-
function
|
|
5437
|
+
function Ws(e, t, n) {
|
|
5424
5438
|
let r = q(n), i = r.required ?? !1, a = r.config ?? {}, o = R().finite();
|
|
5425
5439
|
t && (o = o.int({ message: U("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
|
|
5426
5440
|
let s = B({
|
|
@@ -5470,13 +5484,13 @@ function Us(e, t, n) {
|
|
|
5470
5484
|
zod: K(c, i)
|
|
5471
5485
|
});
|
|
5472
5486
|
}
|
|
5473
|
-
function Ws(e) {
|
|
5474
|
-
return Us("numberRange", !0, e);
|
|
5475
|
-
}
|
|
5476
5487
|
function Gs(e) {
|
|
5477
|
-
return
|
|
5488
|
+
return Ws("numberRange", !0, e);
|
|
5478
5489
|
}
|
|
5479
5490
|
function Ks(e) {
|
|
5491
|
+
return Ws("realRange", !1, e);
|
|
5492
|
+
}
|
|
5493
|
+
function qs(e) {
|
|
5480
5494
|
let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = B({
|
|
5481
5495
|
url: I().min(1),
|
|
5482
5496
|
title: I().optional(),
|
|
@@ -5504,68 +5518,68 @@ function Ks(e) {
|
|
|
5504
5518
|
zod: K(a, n)
|
|
5505
5519
|
});
|
|
5506
5520
|
}
|
|
5507
|
-
var
|
|
5521
|
+
var Js = {
|
|
5508
5522
|
string: Z,
|
|
5509
5523
|
text: Q,
|
|
5510
|
-
i18n:
|
|
5511
|
-
smallText:
|
|
5512
|
-
localDir:
|
|
5513
|
-
localFile:
|
|
5514
|
-
real:
|
|
5515
|
-
int:
|
|
5516
|
-
date:
|
|
5517
|
-
time:
|
|
5518
|
-
datetime:
|
|
5519
|
-
boolean:
|
|
5520
|
-
triState:
|
|
5521
|
-
select:
|
|
5522
|
-
relation:
|
|
5523
|
-
json:
|
|
5524
|
-
check:
|
|
5525
|
-
measured:
|
|
5526
|
-
money:
|
|
5527
|
-
code:
|
|
5528
|
-
geo:
|
|
5529
|
-
lookup:
|
|
5530
|
-
perWeekday:
|
|
5531
|
-
period:
|
|
5532
|
-
file:
|
|
5533
|
-
document:
|
|
5534
|
-
audio:
|
|
5535
|
-
video:
|
|
5536
|
-
image:
|
|
5537
|
-
media:
|
|
5538
|
-
avatar:
|
|
5539
|
-
cover:
|
|
5540
|
-
poster:
|
|
5541
|
-
embed:
|
|
5542
|
-
keyValue:
|
|
5543
|
-
numberRange:
|
|
5544
|
-
realRange:
|
|
5524
|
+
i18n: ms,
|
|
5525
|
+
smallText: hs,
|
|
5526
|
+
localDir: fs,
|
|
5527
|
+
localFile: ps,
|
|
5528
|
+
real: gs,
|
|
5529
|
+
int: _s,
|
|
5530
|
+
date: vs,
|
|
5531
|
+
time: ys,
|
|
5532
|
+
datetime: bs,
|
|
5533
|
+
boolean: xs,
|
|
5534
|
+
triState: Ss,
|
|
5535
|
+
select: Cs,
|
|
5536
|
+
relation: ws,
|
|
5537
|
+
json: Ts,
|
|
5538
|
+
check: Es,
|
|
5539
|
+
measured: Ds,
|
|
5540
|
+
money: Os,
|
|
5541
|
+
code: ks,
|
|
5542
|
+
geo: As,
|
|
5543
|
+
lookup: Ms,
|
|
5544
|
+
perWeekday: js,
|
|
5545
|
+
period: Ns,
|
|
5546
|
+
file: Ps,
|
|
5547
|
+
document: Fs,
|
|
5548
|
+
audio: Is,
|
|
5549
|
+
video: Ls,
|
|
5550
|
+
image: Rs,
|
|
5551
|
+
media: zs,
|
|
5552
|
+
avatar: Bs,
|
|
5553
|
+
cover: Vs,
|
|
5554
|
+
poster: Hs,
|
|
5555
|
+
embed: qs,
|
|
5556
|
+
keyValue: Us,
|
|
5557
|
+
numberRange: Gs,
|
|
5558
|
+
realRange: Ks,
|
|
5545
5559
|
group: J,
|
|
5546
|
-
row:
|
|
5547
|
-
table:
|
|
5548
|
-
sheet:
|
|
5549
|
-
keyed:
|
|
5550
|
-
url:
|
|
5551
|
-
divider:
|
|
5552
|
-
break:
|
|
5553
|
-
info:
|
|
5554
|
-
button:
|
|
5560
|
+
row: Zo,
|
|
5561
|
+
table: Qo,
|
|
5562
|
+
sheet: $o,
|
|
5563
|
+
keyed: ts,
|
|
5564
|
+
url: es,
|
|
5565
|
+
divider: is,
|
|
5566
|
+
break: as,
|
|
5567
|
+
info: os,
|
|
5568
|
+
button: ss
|
|
5555
5569
|
};
|
|
5556
|
-
function
|
|
5557
|
-
for (let t of Object.keys(e)) if (t in
|
|
5570
|
+
function Ys(e) {
|
|
5571
|
+
for (let t of Object.keys(e)) if (t in Js) throw Error(`[f] preset '${t}' overrides a primitive`);
|
|
5558
5572
|
return {
|
|
5559
|
-
...
|
|
5573
|
+
...Js,
|
|
5560
5574
|
...e
|
|
5561
5575
|
};
|
|
5562
5576
|
}
|
|
5563
|
-
var
|
|
5577
|
+
var Xs, Zs = () => Xs ??= Ys(Ho);
|
|
5564
5578
|
new Proxy({}, {
|
|
5565
|
-
get: (e, t) =>
|
|
5566
|
-
has: (e, t) => t in
|
|
5579
|
+
get: (e, t) => Zs()[t],
|
|
5580
|
+
has: (e, t) => t in Zs()
|
|
5567
5581
|
});
|
|
5568
|
-
function
|
|
5582
|
+
function Qs(e) {
|
|
5569
5583
|
let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u } = e;
|
|
5570
5584
|
return {
|
|
5571
5585
|
kind: t,
|
|
@@ -5582,8 +5596,8 @@ function Zs(e) {
|
|
|
5582
5596
|
}
|
|
5583
5597
|
//#endregion
|
|
5584
5598
|
//#region ../web-sdk/src/registry.ts
|
|
5585
|
-
var
|
|
5586
|
-
function
|
|
5599
|
+
var $s = {};
|
|
5600
|
+
function ec(e) {
|
|
5587
5601
|
if (!e.kinds.length) throw Error("[render] renderer without kinds");
|
|
5588
5602
|
let t = {
|
|
5589
5603
|
kinds: e.kinds,
|
|
@@ -5594,32 +5608,32 @@ function $s(e) {
|
|
|
5594
5608
|
keys: e.keys
|
|
5595
5609
|
};
|
|
5596
5610
|
for (let n of e.kinds) {
|
|
5597
|
-
if (
|
|
5598
|
-
|
|
5611
|
+
if ($s[n]) throw Error(`[render] kind '${n}' already registered`);
|
|
5612
|
+
$s[n] = t;
|
|
5599
5613
|
}
|
|
5600
5614
|
}
|
|
5601
|
-
function ec(e) {
|
|
5602
|
-
return Qs[e.kind];
|
|
5603
|
-
}
|
|
5604
5615
|
function tc(e) {
|
|
5605
|
-
|
|
5606
|
-
if (Ko(e)) return e.kind ?? (ts(e) ? "collection" : ns(e) ? "embedded" : "group");
|
|
5607
|
-
if (Yo(e)) return "button";
|
|
5608
|
-
if (qo(e)) return "divider";
|
|
5609
|
-
if (Jo(e)) return "info";
|
|
5610
|
-
throw Error("[render] unknown layout element");
|
|
5616
|
+
return $s[e.kind];
|
|
5611
5617
|
}
|
|
5612
5618
|
function nc(e) {
|
|
5613
|
-
|
|
5619
|
+
if (Go(e) || Ko(e)) return e.type.kind;
|
|
5620
|
+
if (qo(e)) return e.kind ?? (ns(e) ? "collection" : rs(e) ? "embedded" : "group");
|
|
5621
|
+
if (Xo(e)) return "button";
|
|
5622
|
+
if (Jo(e)) return "divider";
|
|
5623
|
+
if (Yo(e)) return "info";
|
|
5624
|
+
throw Error("[render] unknown layout element");
|
|
5625
|
+
}
|
|
5626
|
+
function rc(e) {
|
|
5627
|
+
let t = tc(e)?.layout;
|
|
5614
5628
|
return typeof t == "function" ? t(e) : t ?? "scalar";
|
|
5615
5629
|
}
|
|
5616
|
-
var
|
|
5617
|
-
function
|
|
5618
|
-
if (
|
|
5619
|
-
|
|
5630
|
+
var ic = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", ac = {};
|
|
5631
|
+
function oc(e, t) {
|
|
5632
|
+
if (ac[e]) throw Error(`[template] '${e}' already registered`);
|
|
5633
|
+
ac[e] = t;
|
|
5620
5634
|
}
|
|
5621
|
-
function
|
|
5622
|
-
return
|
|
5635
|
+
function sc(e) {
|
|
5636
|
+
return ac[e];
|
|
5623
5637
|
}
|
|
5624
5638
|
//#endregion
|
|
5625
|
-
export { n as defineShelfUI,
|
|
5639
|
+
export { n as defineShelfUI, nc as elementKind, rc as fieldLayout, ic as multiBlock, ec as registerRenderer, oc as registerTemplate, $s as rendererRegistry, tc as resolveRenderer, sc as resolveTemplate };
|