@coffer-org/web 2.5.5 → 2.6.1
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/ChatWidget-BxY9kQxi.js +16 -0
- package/dist/assets/DiagnosticsPage-DUqimXFJ.js +1 -0
- package/dist/assets/ExtendReasonInfo-iAIjJ48b.js +1 -0
- package/dist/assets/Icon-Dydn049Z.js +2 -0
- package/dist/assets/NewRecordView-uOQOfkOx.js +1 -0
- package/dist/assets/{NoMac-BarbbnIj.js → NoMac-DLu311Th.js} +1 -1
- package/dist/assets/{PluginSettingsPage-i-OMHgqv.js → PluginSettingsPage-IaFxvJdf.js} +1 -1
- package/dist/assets/SettingsForm-BC0viqzW.js +1 -0
- package/dist/assets/{SettingsPage-cGmurCr0.js → SettingsPage-PQygWGag.js} +2 -2
- package/dist/assets/ThemeSwitcher-D-6Vlu3T.js +1 -0
- package/dist/assets/{Toolbar-tBn9ARi5.js → Toolbar-Ce0rNkTo.js} +2 -2
- package/dist/assets/{auth-context-CpmpND1h.js → auth-context-C1voH8bU.js} +1 -1
- package/dist/assets/button-DaYjtbcx.js +1 -0
- package/dist/assets/chevron-down-DgMjlPLK.js +1 -0
- package/dist/assets/{chrome-izijxuBU.js → chrome-Dxg72x2y.js} +1 -1
- package/dist/assets/combobox-Cqg-VPvV.js +1 -0
- package/dist/assets/{data-size-ncAO72C8.js → data-size-FYe9GB-w.js} +1 -1
- package/dist/assets/dialog-BKC2UrX0.js +1 -0
- package/dist/assets/{dispatch-BR6ES1YV.js → dispatch-CBwxUhZb.js} +1 -1
- package/dist/assets/{extend-CK_8aGP-.js → extend-BEeQnsjj.js} +1 -1
- package/dist/assets/{field-frame-DRn_YTLz.js → field-frame-B0aT2ksn.js} +1 -1
- package/dist/assets/{fields-BbsbCIvX.js → fields-C2JBwQro.js} +1 -1
- package/dist/assets/index-BsQAt1OP.js +36 -0
- package/dist/assets/index-DFq4B5gv.css +2 -0
- package/dist/assets/input-group-Cp9n2MAA.js +1 -0
- package/dist/assets/{phone-input-Nmpfmhew.js → phone-input-BI3bOFX2.js} +2 -2
- package/dist/assets/shared-vjdjsgQc.js +1 -0
- package/dist/assets/{shelf-DPQYW8n7.js → shelf-ZF6KVxZd.js} +1 -1
- package/dist/assets/{square-CiErsTOS.js → square-DuQOQJGU.js} +1 -1
- package/dist/assets/src-6mlUyIfG.js +1 -0
- package/dist/assets/{src-KGPu1fwh.js → src-B1LkgGT0.js} +1 -1
- package/dist/assets/{src-DnlNLa7L.js → src-B5Wv5ASz.js} +2 -2
- package/dist/assets/{src-DqtBktfY.js → src-BBWK9u-H.js} +1 -1
- package/dist/assets/src-BFOIP3DL.js +1 -0
- package/dist/assets/{src-DdcjPE8f.js → src-BcIpCv23.js} +1 -1
- package/dist/assets/src-Bq0RDmeB.js +1 -0
- package/dist/assets/src-CFMj5Och.js +1 -0
- package/dist/assets/{src-yWzIeLL6.js → src-CQfRvkxA.js} +1 -1
- package/dist/assets/{src-CX8lJ_Bd.js → src-CS4PO4i_.js} +1 -1
- package/dist/assets/{src-N4vEUcQu.js → src-CUVSyD4r.js} +1 -1
- package/dist/assets/{src-CdtEUqtE.js → src-CmB0Aw5B.js} +1 -1
- package/dist/assets/{src-DcsqR-q0.js → src-CyicyuOu.js} +1 -1
- package/dist/assets/src-D30TPrc-.js +4 -0
- package/dist/assets/src-D7-BUu3l.js +1 -0
- package/dist/assets/src-DHkUSKtU.js +1 -0
- package/dist/assets/{src-5zhuOMm-.js → src-DN5_wKHc.js} +1 -1
- package/dist/assets/{src-C7_YQgbA.js → src-DSF8bpP1.js} +1 -1
- package/dist/assets/src-DYJtabTg.js +1 -0
- package/dist/assets/{src-D3BnFRPS.js → src-DkXs3X9I.js} +1 -1
- package/dist/assets/{src-BJDg-3KB.js → src-Dnc57MD8.js} +1 -1
- package/dist/assets/src-Wi0SYiAd.js +1 -0
- package/dist/assets/{src-BN2zezj6.js → src-ctux6MQD.js} +1 -1
- package/dist/assets/{src-DF0JjvAL.js → src-na7K2wUl.js} +1 -1
- package/dist/assets/{src-CuZmkqRm.js → src-oZtYFN79.js} +1 -1
- package/dist/assets/ui-BF1Zz_Rh.js +2 -0
- package/dist/assets/{ui-BRZ7wpuB.js → ui-CVX34OBw.js} +2 -2
- package/dist/assets/{ui-CAcWu8py.js → ui-DbAPxl8P.js} +1 -1
- package/dist/assets/{upload-eoIHAc6j.js → upload-C8XxQG6m.js} +1 -1
- package/dist/assets/use-media-query-D1fYNz6w.js +1 -0
- package/dist/assets/{version-BgluE_nc.js → version-DHVNWcte.js} +1 -1
- package/dist/assets/{x-BFRg18Fi.js → x-CzSVfh-E.js} +1 -1
- package/dist/index.html +25 -24
- package/dist-vendor/web-sdk.js +253 -213
- package/package.json +1 -1
- package/dist/assets/ChatWidget-BJkTiD5X.js +0 -16
- package/dist/assets/DiagnosticsPage-CLhgz-6M.js +0 -1
- package/dist/assets/ExtendReasonInfo-CiNt5Y3V.js +0 -1
- package/dist/assets/Icon-wZ-Cwtc3.js +0 -2
- package/dist/assets/NewRecordView-DOotbZbV.js +0 -1
- package/dist/assets/SettingsForm-DhXLCpGR.js +0 -1
- package/dist/assets/ThemeSwitcher-BoIYJENA.js +0 -1
- package/dist/assets/button-DsalTwxl.js +0 -1
- package/dist/assets/combobox-Bo_yQsV-.js +0 -1
- package/dist/assets/dialog-DqWXrq6M.js +0 -1
- package/dist/assets/index-C5KupH3J.css +0 -2
- package/dist/assets/index-pM8Du-1p.js +0 -59
- package/dist/assets/input-group-DnBGkT_z.js +0 -1
- package/dist/assets/shared-C2_-YViH.js +0 -1
- package/dist/assets/src-BJeZ0fIl.js +0 -1
- package/dist/assets/src-BLvQI8Un.js +0 -1
- package/dist/assets/src-BhzIt6X_.js +0 -1
- package/dist/assets/src-Blz6vbqg.js +0 -1
- package/dist/assets/src-C99L3laQ.js +0 -1
- package/dist/assets/src-COqoTMyz.js +0 -1
- package/dist/assets/src-Ck2r9PdK.js +0 -4
- package/dist/assets/src-D0IOasYV.js +0 -1
- package/dist/assets/src-Dajw9Az6.js +0 -1
- package/dist/assets/ui-DwQMDUGA.js +0 -2
- package/dist/assets/use-media-query-BED2JoBm.js +0 -1
package/dist-vendor/web-sdk.js
CHANGED
|
@@ -3433,6 +3433,8 @@ function K(e) {
|
|
|
3433
3433
|
unique: n.unique,
|
|
3434
3434
|
fixed: n.fixed,
|
|
3435
3435
|
exts: n.exts,
|
|
3436
|
+
ext: n.ext,
|
|
3437
|
+
maxBytes: n.maxBytes,
|
|
3436
3438
|
lead: n.lead,
|
|
3437
3439
|
by: n.by,
|
|
3438
3440
|
min: n.min,
|
|
@@ -3640,6 +3642,37 @@ function jo(e) {
|
|
|
3640
3642
|
});
|
|
3641
3643
|
}
|
|
3642
3644
|
function Mo(e) {
|
|
3645
|
+
return e.includes("\0") || e.includes("�");
|
|
3646
|
+
}
|
|
3647
|
+
function No(e) {
|
|
3648
|
+
let t = K(e), n = t.required ?? !1, r = t.ext ?? "txt", i = t.maxBytes ?? 262144, a = F(uo()).superRefine((e, t) => {
|
|
3649
|
+
if (Mo(e)) {
|
|
3650
|
+
t.addIssue({
|
|
3651
|
+
code: B.custom,
|
|
3652
|
+
message: H("source_binary")
|
|
3653
|
+
});
|
|
3654
|
+
return;
|
|
3655
|
+
}
|
|
3656
|
+
new TextEncoder().encode(e).length > i && t.addIssue({
|
|
3657
|
+
code: B.custom,
|
|
3658
|
+
message: H("source_too_large", { maxBytes: i })
|
|
3659
|
+
});
|
|
3660
|
+
});
|
|
3661
|
+
return J(t, {
|
|
3662
|
+
kind: "source",
|
|
3663
|
+
label: t.label ?? "",
|
|
3664
|
+
required: n,
|
|
3665
|
+
prim: "text",
|
|
3666
|
+
column: "text",
|
|
3667
|
+
hints: {
|
|
3668
|
+
ext: r,
|
|
3669
|
+
maxBytes: i,
|
|
3670
|
+
noEditControl: !0
|
|
3671
|
+
},
|
|
3672
|
+
zod: G(a, n)
|
|
3673
|
+
});
|
|
3674
|
+
}
|
|
3675
|
+
function Po(e) {
|
|
3643
3676
|
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = V(lo()).int({ message: H("int") }).min(1, { message: H("min", { min: 1 }) }).max(r, { message: H("max", { max: r }) });
|
|
3644
3677
|
return J(t, Y({
|
|
3645
3678
|
kind: "rating",
|
|
@@ -3651,7 +3684,7 @@ function Mo(e) {
|
|
|
3651
3684
|
zod: G(i, n)
|
|
3652
3685
|
}, t.multiple ?? !1));
|
|
3653
3686
|
}
|
|
3654
|
-
function
|
|
3687
|
+
function Fo(e) {
|
|
3655
3688
|
let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = V(lo()).int({ message: H("int") }).min(0, { message: H("min", { min: 0 }) }).max(r, { message: H("max", { max: r }) });
|
|
3656
3689
|
return J(t, Y({
|
|
3657
3690
|
kind: "duration",
|
|
@@ -3666,8 +3699,8 @@ function No(e) {
|
|
|
3666
3699
|
zod: G(a, n)
|
|
3667
3700
|
}, t.multiple ?? !1));
|
|
3668
3701
|
}
|
|
3669
|
-
function
|
|
3670
|
-
let t = K(e), n =
|
|
3702
|
+
function Io(e) {
|
|
3703
|
+
let t = K(e), n = bs({
|
|
3671
3704
|
label: e.label,
|
|
3672
3705
|
rules: e.rules,
|
|
3673
3706
|
view: e.view
|
|
@@ -3682,9 +3715,9 @@ function Po(e) {
|
|
|
3682
3715
|
}
|
|
3683
3716
|
});
|
|
3684
3717
|
}
|
|
3685
|
-
var
|
|
3686
|
-
function
|
|
3687
|
-
return
|
|
3718
|
+
var Lo = vs, Ro = ys;
|
|
3719
|
+
function zo(e) {
|
|
3720
|
+
return Lo({
|
|
3688
3721
|
...e,
|
|
3689
3722
|
rules: {
|
|
3690
3723
|
min: 0,
|
|
@@ -3693,8 +3726,8 @@ function Lo(e) {
|
|
|
3693
3726
|
}
|
|
3694
3727
|
});
|
|
3695
3728
|
}
|
|
3696
|
-
function
|
|
3697
|
-
return
|
|
3729
|
+
function Bo(e) {
|
|
3730
|
+
return Ro({
|
|
3698
3731
|
...e,
|
|
3699
3732
|
rules: {
|
|
3700
3733
|
min: 1900,
|
|
@@ -3703,8 +3736,8 @@ function Ro(e) {
|
|
|
3703
3736
|
}
|
|
3704
3737
|
});
|
|
3705
3738
|
}
|
|
3706
|
-
function
|
|
3707
|
-
let t = K(e), n =
|
|
3739
|
+
function Vo(e) {
|
|
3740
|
+
let t = K(e), n = ys({
|
|
3708
3741
|
label: e.label,
|
|
3709
3742
|
rules: {
|
|
3710
3743
|
min: 1,
|
|
@@ -3721,7 +3754,7 @@ function zo(e) {
|
|
|
3721
3754
|
}
|
|
3722
3755
|
});
|
|
3723
3756
|
}
|
|
3724
|
-
function
|
|
3757
|
+
function Ho(e) {
|
|
3725
3758
|
let t = K(e), n = t.required ?? !1, r = fo(z({
|
|
3726
3759
|
w: L().int().nonnegative(),
|
|
3727
3760
|
h: L().int().nonnegative(),
|
|
@@ -3742,13 +3775,13 @@ function Bo(e) {
|
|
|
3742
3775
|
zod: G(r, n)
|
|
3743
3776
|
});
|
|
3744
3777
|
}
|
|
3745
|
-
function
|
|
3746
|
-
return
|
|
3778
|
+
function Uo(e) {
|
|
3779
|
+
return Es({
|
|
3747
3780
|
...e,
|
|
3748
3781
|
options: "countries"
|
|
3749
3782
|
});
|
|
3750
3783
|
}
|
|
3751
|
-
var
|
|
3784
|
+
var Wo = {
|
|
3752
3785
|
email: po,
|
|
3753
3786
|
tel: mo,
|
|
3754
3787
|
slug: yo,
|
|
@@ -3761,17 +3794,18 @@ var Ho = {
|
|
|
3761
3794
|
tags: ko,
|
|
3762
3795
|
markdown: Ao,
|
|
3763
3796
|
snippet: jo,
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3797
|
+
source: No,
|
|
3798
|
+
rating: Po,
|
|
3799
|
+
duration: Fo,
|
|
3800
|
+
reminder: Io,
|
|
3801
|
+
percent: zo,
|
|
3802
|
+
year: Bo,
|
|
3803
|
+
weight: Vo,
|
|
3804
|
+
dimensions: Ho,
|
|
3805
|
+
country: Uo,
|
|
3772
3806
|
internalApiToken: go,
|
|
3773
3807
|
internalOauthGrants: _o
|
|
3774
|
-
},
|
|
3808
|
+
}, Go = /* @__PURE__ */ t(((e, t) => {
|
|
3775
3809
|
t.exports = {
|
|
3776
3810
|
aa: {
|
|
3777
3811
|
name: "Afar",
|
|
@@ -4506,8 +4540,8 @@ var Ho = {
|
|
|
4506
4540
|
nativeName: "isiZulu"
|
|
4507
4541
|
}
|
|
4508
4542
|
};
|
|
4509
|
-
})),
|
|
4510
|
-
var n =
|
|
4543
|
+
})), Ko = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
4544
|
+
var n = Go(), r = {}, i = {}, a = [], o = [], s = [];
|
|
4511
4545
|
for (let e in n) {
|
|
4512
4546
|
let { name: t, nativeName: c } = n[e];
|
|
4513
4547
|
r[e] = i[t.toLowerCase()] = i[c.toLowerCase()] = {
|
|
@@ -4547,13 +4581,13 @@ var Ho = {
|
|
|
4547
4581
|
}
|
|
4548
4582
|
};
|
|
4549
4583
|
})))(), 1);
|
|
4550
|
-
|
|
4584
|
+
Ko.default.getAllCodes().map((e) => ({
|
|
4551
4585
|
code: e,
|
|
4552
|
-
name:
|
|
4586
|
+
name: Ko.default.getNativeName(e)
|
|
4553
4587
|
})).sort((e, t) => e.name.localeCompare(t.name));
|
|
4554
4588
|
//#endregion
|
|
4555
4589
|
//#region ../sdk/src/fields.ts
|
|
4556
|
-
var
|
|
4590
|
+
var qo = (e) => "key" in e && !("el" in e), Jo = (e) => "el" in e && e.el === "static", Yo = (e) => "el" in e && e.el === "group", Xo = (e) => "el" in e && e.el === "divider", Zo = (e) => "el" in e && e.el === "info", Qo = (e) => "el" in e && e.el === "button";
|
|
4557
4591
|
function q(e) {
|
|
4558
4592
|
let t = e.rules ?? {}, n = e.view ?? {};
|
|
4559
4593
|
if (e.key) {
|
|
@@ -4575,7 +4609,7 @@ function q(e) {
|
|
|
4575
4609
|
fields: e.fields
|
|
4576
4610
|
};
|
|
4577
4611
|
}
|
|
4578
|
-
function
|
|
4612
|
+
function $o(e) {
|
|
4579
4613
|
return q({
|
|
4580
4614
|
label: e.label,
|
|
4581
4615
|
icon: e.icon,
|
|
@@ -4583,7 +4617,7 @@ function Zo(e) {
|
|
|
4583
4617
|
view: { display: "scroll" }
|
|
4584
4618
|
});
|
|
4585
4619
|
}
|
|
4586
|
-
function
|
|
4620
|
+
function es(e) {
|
|
4587
4621
|
return q({
|
|
4588
4622
|
key: e.key,
|
|
4589
4623
|
label: e.label,
|
|
@@ -4595,10 +4629,10 @@ function Qo(e) {
|
|
|
4595
4629
|
view: { display: "table" }
|
|
4596
4630
|
});
|
|
4597
4631
|
}
|
|
4598
|
-
function
|
|
4632
|
+
function ts(e) {
|
|
4599
4633
|
let t = [];
|
|
4600
4634
|
return e.fields.forEach((e, n) => {
|
|
4601
|
-
n > 0 && t.push(
|
|
4635
|
+
n > 0 && t.push(ss()), t.push(...e);
|
|
4602
4636
|
}), q({
|
|
4603
4637
|
label: e.label,
|
|
4604
4638
|
icon: e.icon,
|
|
@@ -4606,7 +4640,7 @@ function $o(e) {
|
|
|
4606
4640
|
view: { display: "sheet" }
|
|
4607
4641
|
});
|
|
4608
4642
|
}
|
|
4609
|
-
function
|
|
4643
|
+
function ns(e) {
|
|
4610
4644
|
return q({
|
|
4611
4645
|
key: e.key,
|
|
4612
4646
|
label: e.label ?? e.key,
|
|
@@ -4617,14 +4651,14 @@ function es(e) {
|
|
|
4617
4651
|
X({ key: "username" }),
|
|
4618
4652
|
X({ key: "password" }),
|
|
4619
4653
|
X({ key: "host" }),
|
|
4620
|
-
|
|
4654
|
+
ys({ key: "port" }),
|
|
4621
4655
|
X({ key: "path" }),
|
|
4622
4656
|
X({ key: "query" }),
|
|
4623
4657
|
X({ key: "hash" })
|
|
4624
4658
|
]
|
|
4625
4659
|
});
|
|
4626
4660
|
}
|
|
4627
|
-
function
|
|
4661
|
+
function rs(e) {
|
|
4628
4662
|
if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
|
|
4629
4663
|
return {
|
|
4630
4664
|
...(e.container ?? q)({
|
|
@@ -4639,20 +4673,20 @@ function ts(e) {
|
|
|
4639
4673
|
fixed: e.fixed
|
|
4640
4674
|
};
|
|
4641
4675
|
}
|
|
4642
|
-
var
|
|
4643
|
-
function
|
|
4676
|
+
var is = (e) => e.key != null && e.multiple === !0, as = (e) => e.key != null && e.multiple !== !0;
|
|
4677
|
+
function os() {
|
|
4644
4678
|
return { el: "divider" };
|
|
4645
4679
|
}
|
|
4646
|
-
function
|
|
4680
|
+
function ss() {
|
|
4647
4681
|
return { el: "break" };
|
|
4648
4682
|
}
|
|
4649
|
-
function
|
|
4683
|
+
function cs(e) {
|
|
4650
4684
|
return {
|
|
4651
4685
|
el: "info",
|
|
4652
4686
|
text: e
|
|
4653
4687
|
};
|
|
4654
4688
|
}
|
|
4655
|
-
function
|
|
4689
|
+
function ls(e) {
|
|
4656
4690
|
return {
|
|
4657
4691
|
el: "button",
|
|
4658
4692
|
label: e.label,
|
|
@@ -4702,17 +4736,17 @@ function J(e, t) {
|
|
|
4702
4736
|
value: e.value
|
|
4703
4737
|
} : n;
|
|
4704
4738
|
}
|
|
4705
|
-
function
|
|
4739
|
+
function us(e) {
|
|
4706
4740
|
return e === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : e;
|
|
4707
4741
|
}
|
|
4708
|
-
function
|
|
4742
|
+
function ds(e) {
|
|
4709
4743
|
try {
|
|
4710
4744
|
return JSON.parse(e);
|
|
4711
4745
|
} catch {
|
|
4712
4746
|
return;
|
|
4713
4747
|
}
|
|
4714
4748
|
}
|
|
4715
|
-
function
|
|
4749
|
+
function fs(e) {
|
|
4716
4750
|
return R().superRefine((t, n) => {
|
|
4717
4751
|
let r;
|
|
4718
4752
|
if (Array.isArray(t)) r = t;
|
|
@@ -4750,7 +4784,7 @@ function us(e) {
|
|
|
4750
4784
|
}
|
|
4751
4785
|
function Y(e, t) {
|
|
4752
4786
|
if (!t) return e;
|
|
4753
|
-
let n =
|
|
4787
|
+
let n = fs(e.zod);
|
|
4754
4788
|
return {
|
|
4755
4789
|
...e,
|
|
4756
4790
|
column: "text",
|
|
@@ -4777,7 +4811,7 @@ function X(e) {
|
|
|
4777
4811
|
zod: G(a, n)
|
|
4778
4812
|
}, t.multiple ?? !1));
|
|
4779
4813
|
}
|
|
4780
|
-
function
|
|
4814
|
+
function ps(e, t, n) {
|
|
4781
4815
|
let r = e.required ?? !1, i = F(uo());
|
|
4782
4816
|
return e.required === !0 && (i = i.min(1, { message: H("min_length", { min: 1 }) })), J(e, {
|
|
4783
4817
|
kind: t,
|
|
@@ -4790,12 +4824,12 @@ function ds(e, t, n) {
|
|
|
4790
4824
|
...e.default === void 0 ? {} : { default: e.default }
|
|
4791
4825
|
});
|
|
4792
4826
|
}
|
|
4793
|
-
function
|
|
4794
|
-
return
|
|
4827
|
+
function ms(e) {
|
|
4828
|
+
return ps(K(e), "localDir");
|
|
4795
4829
|
}
|
|
4796
|
-
function
|
|
4830
|
+
function hs(e) {
|
|
4797
4831
|
let t = K(e);
|
|
4798
|
-
return
|
|
4832
|
+
return ps(t, "localFile", t.exts);
|
|
4799
4833
|
}
|
|
4800
4834
|
function Z(e) {
|
|
4801
4835
|
return J(K(e), {
|
|
@@ -4808,7 +4842,7 @@ function Z(e) {
|
|
|
4808
4842
|
kind: "textarea"
|
|
4809
4843
|
});
|
|
4810
4844
|
}
|
|
4811
|
-
function
|
|
4845
|
+
function gs(e) {
|
|
4812
4846
|
return J(K(e), {
|
|
4813
4847
|
...Z({
|
|
4814
4848
|
...e,
|
|
@@ -4818,7 +4852,7 @@ function ms(e) {
|
|
|
4818
4852
|
kind: "i18n"
|
|
4819
4853
|
});
|
|
4820
4854
|
}
|
|
4821
|
-
function
|
|
4855
|
+
function _s(e) {
|
|
4822
4856
|
return J(K(e), {
|
|
4823
4857
|
...Z({
|
|
4824
4858
|
...e,
|
|
@@ -4828,7 +4862,7 @@ function hs(e) {
|
|
|
4828
4862
|
kind: "smalltext"
|
|
4829
4863
|
});
|
|
4830
4864
|
}
|
|
4831
|
-
function
|
|
4865
|
+
function vs(e) {
|
|
4832
4866
|
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo());
|
|
4833
4867
|
return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
|
|
4834
4868
|
kind: "number",
|
|
@@ -4844,7 +4878,7 @@ function gs(e) {
|
|
|
4844
4878
|
zod: G(i, n)
|
|
4845
4879
|
}, t.multiple ?? !1));
|
|
4846
4880
|
}
|
|
4847
|
-
function
|
|
4881
|
+
function ys(e) {
|
|
4848
4882
|
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo()).int({ message: H("int") });
|
|
4849
4883
|
return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
|
|
4850
4884
|
kind: "number",
|
|
@@ -4860,7 +4894,7 @@ function _s(e) {
|
|
|
4860
4894
|
zod: G(i, n)
|
|
4861
4895
|
}, t.multiple ?? !1));
|
|
4862
4896
|
}
|
|
4863
|
-
function
|
|
4897
|
+
function bs(e) {
|
|
4864
4898
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
|
|
4865
4899
|
return i = r === "year" ? F(U()).regex(/^\d{4}$/, { message: H("date_format") }).superRefine((e, n) => {
|
|
4866
4900
|
t.min && e < t.min && n.addIssue({
|
|
@@ -4879,12 +4913,12 @@ function vs(e) {
|
|
|
4879
4913
|
message: H("date_max", { max: t.max })
|
|
4880
4914
|
});
|
|
4881
4915
|
}) : F(U()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: H("date_format") }).superRefine((e, n) => {
|
|
4882
|
-
t.min && e <
|
|
4916
|
+
t.min && e < us(t.min) && n.addIssue({
|
|
4883
4917
|
code: B.custom,
|
|
4884
|
-
message: H("date_min", { min:
|
|
4885
|
-
}), t.max && e >
|
|
4918
|
+
message: H("date_min", { min: us(t.min) })
|
|
4919
|
+
}), t.max && e > us(t.max) && n.addIssue({
|
|
4886
4920
|
code: B.custom,
|
|
4887
|
-
message: H("date_max", { max:
|
|
4921
|
+
message: H("date_max", { max: us(t.max) })
|
|
4888
4922
|
});
|
|
4889
4923
|
}), J(t, Y({
|
|
4890
4924
|
kind: "date",
|
|
@@ -4900,7 +4934,7 @@ function vs(e) {
|
|
|
4900
4934
|
zod: G(i, n)
|
|
4901
4935
|
}, t.multiple ?? !1));
|
|
4902
4936
|
}
|
|
4903
|
-
function
|
|
4937
|
+
function xs(e) {
|
|
4904
4938
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = F(U()).regex({
|
|
4905
4939
|
hour: /^([01]\d|2[0-3])$/,
|
|
4906
4940
|
minute: /^([01]\d|2[0-3]):[0-5]\d$/,
|
|
@@ -4916,7 +4950,7 @@ function ys(e) {
|
|
|
4916
4950
|
zod: G(i, n)
|
|
4917
4951
|
}, t.multiple ?? !1));
|
|
4918
4952
|
}
|
|
4919
|
-
function
|
|
4953
|
+
function Ss(e) {
|
|
4920
4954
|
let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = F(U()).regex({
|
|
4921
4955
|
hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
|
|
4922
4956
|
minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
|
|
@@ -4932,7 +4966,7 @@ function bs(e) {
|
|
|
4932
4966
|
zod: G(i, n)
|
|
4933
4967
|
}, t.multiple ?? !1));
|
|
4934
4968
|
}
|
|
4935
|
-
function
|
|
4969
|
+
function Cs(e) {
|
|
4936
4970
|
let t = K(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
|
|
4937
4971
|
return J(t, {
|
|
4938
4972
|
kind: "boolean",
|
|
@@ -4944,7 +4978,7 @@ function xs(e) {
|
|
|
4944
4978
|
zod: n
|
|
4945
4979
|
});
|
|
4946
4980
|
}
|
|
4947
|
-
function
|
|
4981
|
+
function ws(e) {
|
|
4948
4982
|
let t = K(e), n = t.required ?? !1, r = Oa([
|
|
4949
4983
|
"yes",
|
|
4950
4984
|
"no",
|
|
@@ -4960,8 +4994,14 @@ function Ss(e) {
|
|
|
4960
4994
|
zod: G(r, n)
|
|
4961
4995
|
});
|
|
4962
4996
|
}
|
|
4963
|
-
function
|
|
4964
|
-
|
|
4997
|
+
function Ts(e) {
|
|
4998
|
+
return typeof e == "string" ? {
|
|
4999
|
+
value: e,
|
|
5000
|
+
title: e
|
|
5001
|
+
} : e;
|
|
5002
|
+
}
|
|
5003
|
+
function Es(e) {
|
|
5004
|
+
let t = K(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options.map(Ts) : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => H("enum") }) : F(U());
|
|
4965
5005
|
return J(t, Y({
|
|
4966
5006
|
kind: "select",
|
|
4967
5007
|
label: t.label ?? "",
|
|
@@ -4973,7 +5013,7 @@ function Cs(e) {
|
|
|
4973
5013
|
zod: G(a, n)
|
|
4974
5014
|
}, t.multiple ?? !1));
|
|
4975
5015
|
}
|
|
4976
|
-
function
|
|
5016
|
+
function Ds(e) {
|
|
4977
5017
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
|
|
4978
5018
|
return i = r ? R().superRefine((e, t) => {
|
|
4979
5019
|
let n = W(e);
|
|
@@ -4999,7 +5039,7 @@ function ws(e) {
|
|
|
4999
5039
|
zod: G(i, n)
|
|
5000
5040
|
});
|
|
5001
5041
|
}
|
|
5002
|
-
function
|
|
5042
|
+
function Os(e) {
|
|
5003
5043
|
let t = K(e), n = t.required ?? !1, r = R().superRefine((e, t) => {
|
|
5004
5044
|
if (typeof e == "string") try {
|
|
5005
5045
|
JSON.parse(e);
|
|
@@ -5021,7 +5061,7 @@ function Ts(e) {
|
|
|
5021
5061
|
zod: G(r, n)
|
|
5022
5062
|
});
|
|
5023
5063
|
}
|
|
5024
|
-
function
|
|
5064
|
+
function ks(e) {
|
|
5025
5065
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""], a = t.fields?.length ? t.fields : [X({
|
|
5026
5066
|
key: "text",
|
|
5027
5067
|
label: "core.fields.text"
|
|
@@ -5032,7 +5072,7 @@ function Es(e) {
|
|
|
5032
5072
|
if (!r && (e.type.virtual || e.type.columns)) throw Error(`[field.check] single content field '${e.key}' must be a scalar stored field`);
|
|
5033
5073
|
o.add(e.key);
|
|
5034
5074
|
}
|
|
5035
|
-
let s = i.map((e, t) =>
|
|
5075
|
+
let s = i.map((e, t) => Cs({
|
|
5036
5076
|
key: `check${t}`,
|
|
5037
5077
|
label: e || "core.fields.check"
|
|
5038
5078
|
}));
|
|
@@ -5053,7 +5093,7 @@ function Es(e) {
|
|
|
5053
5093
|
c[`check${t}`] = ma(), l[`check${t}`] = "boolean";
|
|
5054
5094
|
});
|
|
5055
5095
|
let u = z(c).passthrough(), d = R().superRefine((e, t) => {
|
|
5056
|
-
let n = typeof e == "string" ?
|
|
5096
|
+
let n = typeof e == "string" ? ds(e) : e;
|
|
5057
5097
|
if (n === void 0) {
|
|
5058
5098
|
t.addIssue({
|
|
5059
5099
|
code: B.custom,
|
|
@@ -5076,14 +5116,14 @@ function Es(e) {
|
|
|
5076
5116
|
slots: i,
|
|
5077
5117
|
fields: a.map((e) => ({
|
|
5078
5118
|
key: e.key,
|
|
5079
|
-
...
|
|
5119
|
+
...ic(e.type)
|
|
5080
5120
|
}))
|
|
5081
5121
|
},
|
|
5082
5122
|
columns: l,
|
|
5083
5123
|
zod: G(d, n)
|
|
5084
5124
|
});
|
|
5085
5125
|
}
|
|
5086
|
-
function
|
|
5126
|
+
function As(e) {
|
|
5087
5127
|
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = L().finite();
|
|
5088
5128
|
r.step === 1 && (a = a.int({ message: H("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
|
|
5089
5129
|
let o = z({
|
|
@@ -5132,7 +5172,7 @@ function Ds(e) {
|
|
|
5132
5172
|
zod: G(s, n)
|
|
5133
5173
|
});
|
|
5134
5174
|
}
|
|
5135
|
-
function
|
|
5175
|
+
function js(e) {
|
|
5136
5176
|
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L().finite();
|
|
5137
5177
|
r.min != null && (i = i.min(r.min)), r.max != null && (i = i.max(r.max));
|
|
5138
5178
|
let a = z({
|
|
@@ -5170,7 +5210,7 @@ function Os(e) {
|
|
|
5170
5210
|
zod: G(o, n)
|
|
5171
5211
|
});
|
|
5172
5212
|
}
|
|
5173
|
-
function
|
|
5213
|
+
function Ms(e) {
|
|
5174
5214
|
let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = z({
|
|
5175
5215
|
code: F(),
|
|
5176
5216
|
lang: F()
|
|
@@ -5202,7 +5242,7 @@ function ks(e) {
|
|
|
5202
5242
|
zod: G(a, n)
|
|
5203
5243
|
});
|
|
5204
5244
|
}
|
|
5205
|
-
function
|
|
5245
|
+
function Ns(e) {
|
|
5206
5246
|
let t = K(e), n = t.required ?? !1, r = z({
|
|
5207
5247
|
lat: L().min(-90).max(90),
|
|
5208
5248
|
lng: L().min(-180).max(180),
|
|
@@ -5243,18 +5283,18 @@ function As(e) {
|
|
|
5243
5283
|
zod: G(i, n)
|
|
5244
5284
|
});
|
|
5245
5285
|
}
|
|
5246
|
-
function
|
|
5286
|
+
function Ps(e) {
|
|
5247
5287
|
return {
|
|
5248
|
-
...
|
|
5288
|
+
...rs({
|
|
5249
5289
|
key: e.key,
|
|
5250
5290
|
label: e.label,
|
|
5251
|
-
by:
|
|
5291
|
+
by: Es({
|
|
5252
5292
|
key: "day",
|
|
5253
5293
|
label: "core.fields.weekday",
|
|
5254
5294
|
options: "weekdays"
|
|
5255
5295
|
}),
|
|
5256
5296
|
fixed: !0,
|
|
5257
|
-
fields: [
|
|
5297
|
+
fields: [vs({
|
|
5258
5298
|
key: "value",
|
|
5259
5299
|
label: "core.fields.value",
|
|
5260
5300
|
rules: e.rules
|
|
@@ -5263,7 +5303,7 @@ function js(e) {
|
|
|
5263
5303
|
kind: "per-weekday"
|
|
5264
5304
|
};
|
|
5265
5305
|
}
|
|
5266
|
-
function
|
|
5306
|
+
function Fs(e) {
|
|
5267
5307
|
let t = K(e);
|
|
5268
5308
|
return J(t, {
|
|
5269
5309
|
kind: "lookup",
|
|
@@ -5280,11 +5320,11 @@ function Ms(e) {
|
|
|
5280
5320
|
zod: ga().optional()
|
|
5281
5321
|
});
|
|
5282
5322
|
}
|
|
5283
|
-
function
|
|
5284
|
-
let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ?
|
|
5323
|
+
function Is(e) {
|
|
5324
|
+
let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? Ss({
|
|
5285
5325
|
key: e,
|
|
5286
5326
|
label: t
|
|
5287
|
-
}) :
|
|
5327
|
+
}) : bs({
|
|
5288
5328
|
key: e,
|
|
5289
5329
|
label: t,
|
|
5290
5330
|
rules: { granularity: n === "month" ? "month" : "day" }
|
|
@@ -5321,10 +5361,10 @@ function Ns(e) {
|
|
|
5321
5361
|
});
|
|
5322
5362
|
let d = n === "datetime" ? "datetime" : n === "day" ? "date" : "text", f = [{
|
|
5323
5363
|
key: "from",
|
|
5324
|
-
...
|
|
5364
|
+
...ic(o.type)
|
|
5325
5365
|
}, {
|
|
5326
5366
|
key: "until",
|
|
5327
|
-
...
|
|
5367
|
+
...ic(s.type)
|
|
5328
5368
|
}];
|
|
5329
5369
|
return J(t, {
|
|
5330
5370
|
kind: "period",
|
|
@@ -5345,25 +5385,25 @@ function Ns(e) {
|
|
|
5345
5385
|
zod: G(u, r)
|
|
5346
5386
|
});
|
|
5347
5387
|
}
|
|
5348
|
-
var
|
|
5388
|
+
var Ls = /* @__PURE__ */ new Set([
|
|
5349
5389
|
"name",
|
|
5350
5390
|
"mime",
|
|
5351
5391
|
"size"
|
|
5352
|
-
]),
|
|
5392
|
+
]), Rs = [
|
|
5353
5393
|
"url",
|
|
5354
5394
|
"src",
|
|
5355
5395
|
"href",
|
|
5356
5396
|
"link"
|
|
5357
5397
|
];
|
|
5358
|
-
function
|
|
5398
|
+
function zs(e) {
|
|
5359
5399
|
if (typeof e != "object" || !e || Array.isArray(e)) return "file_structure";
|
|
5360
5400
|
let t = e;
|
|
5361
|
-
if (
|
|
5401
|
+
if (Rs.some((e) => e in t)) return "file_remote_url";
|
|
5362
5402
|
let n = t.name;
|
|
5363
5403
|
if (typeof n != "string" || n === "") return "file_structure";
|
|
5364
5404
|
if (n.includes("://") || n.startsWith("//")) return "file_remote_url";
|
|
5365
5405
|
if (/[\\/]/.test(n) || n.includes("..")) return "file_name";
|
|
5366
|
-
for (let e of Object.keys(t)) if (!
|
|
5406
|
+
for (let e of Object.keys(t)) if (!Ls.has(e)) return "file_unknown_key";
|
|
5367
5407
|
return t.mime !== void 0 && typeof t.mime != "string" || t.size !== void 0 && typeof t.size != "number" ? "file_structure" : null;
|
|
5368
5408
|
}
|
|
5369
5409
|
function Q(e, t) {
|
|
@@ -5379,7 +5419,7 @@ function Q(e, t) {
|
|
|
5379
5419
|
}
|
|
5380
5420
|
let n = W(e), r = Array.isArray(n) ? n : [n];
|
|
5381
5421
|
for (let e of r) {
|
|
5382
|
-
let n =
|
|
5422
|
+
let n = zs(e);
|
|
5383
5423
|
if (n) {
|
|
5384
5424
|
t.addIssue({
|
|
5385
5425
|
code: B.custom,
|
|
@@ -5400,42 +5440,42 @@ function Q(e, t) {
|
|
|
5400
5440
|
zod: G(a, r)
|
|
5401
5441
|
});
|
|
5402
5442
|
}
|
|
5403
|
-
function
|
|
5443
|
+
function Bs(e) {
|
|
5404
5444
|
return Q("file", e);
|
|
5405
5445
|
}
|
|
5406
|
-
function
|
|
5446
|
+
function Vs(e) {
|
|
5407
5447
|
return Q("document", e);
|
|
5408
5448
|
}
|
|
5409
|
-
function
|
|
5449
|
+
function Hs(e) {
|
|
5410
5450
|
return Q("audio", e);
|
|
5411
5451
|
}
|
|
5412
|
-
function
|
|
5452
|
+
function Us(e) {
|
|
5413
5453
|
return Q("video", e);
|
|
5414
5454
|
}
|
|
5415
|
-
function
|
|
5455
|
+
function Ws(e) {
|
|
5416
5456
|
return Q("image", e);
|
|
5417
5457
|
}
|
|
5418
|
-
function
|
|
5458
|
+
function Gs(e) {
|
|
5419
5459
|
return Q("media", e);
|
|
5420
5460
|
}
|
|
5421
|
-
function
|
|
5461
|
+
function Ks(e) {
|
|
5422
5462
|
return Q("avatar", e);
|
|
5423
5463
|
}
|
|
5424
|
-
function
|
|
5464
|
+
function qs(e) {
|
|
5425
5465
|
return Q("cover", e);
|
|
5426
5466
|
}
|
|
5427
|
-
function
|
|
5467
|
+
function Js(e) {
|
|
5428
5468
|
return Q("poster", e);
|
|
5429
5469
|
}
|
|
5430
|
-
function
|
|
5470
|
+
function Ys(e) {
|
|
5431
5471
|
let t = K(e), n = {
|
|
5432
5472
|
...t.option ?? X({ label: "" }),
|
|
5433
5473
|
label: t.valueLabel ?? ""
|
|
5434
5474
|
};
|
|
5435
|
-
return
|
|
5475
|
+
return rs({
|
|
5436
5476
|
key: t.key,
|
|
5437
5477
|
label: t.label ?? "",
|
|
5438
|
-
container: t.container ??
|
|
5478
|
+
container: t.container ?? es,
|
|
5439
5479
|
by: X({
|
|
5440
5480
|
key: "key",
|
|
5441
5481
|
label: t.keyLabel ?? ""
|
|
@@ -5447,7 +5487,7 @@ function Ks(e) {
|
|
|
5447
5487
|
required: t.required
|
|
5448
5488
|
});
|
|
5449
5489
|
}
|
|
5450
|
-
function
|
|
5490
|
+
function Xs(e, t, n) {
|
|
5451
5491
|
let r = K(n), i = r.required ?? !1, a = r.config ?? {}, o = L().finite();
|
|
5452
5492
|
t && (o = o.int({ message: H("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
|
|
5453
5493
|
let s = z({
|
|
@@ -5497,13 +5537,13 @@ function qs(e, t, n) {
|
|
|
5497
5537
|
zod: G(c, i)
|
|
5498
5538
|
});
|
|
5499
5539
|
}
|
|
5500
|
-
function
|
|
5501
|
-
return
|
|
5540
|
+
function Zs(e) {
|
|
5541
|
+
return Xs("numberRange", !0, e);
|
|
5502
5542
|
}
|
|
5503
|
-
function
|
|
5504
|
-
return
|
|
5543
|
+
function Qs(e) {
|
|
5544
|
+
return Xs("realRange", !1, e);
|
|
5505
5545
|
}
|
|
5506
|
-
function
|
|
5546
|
+
function $s(e) {
|
|
5507
5547
|
let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = z({
|
|
5508
5548
|
url: F().min(1),
|
|
5509
5549
|
title: F().optional(),
|
|
@@ -5531,68 +5571,68 @@ function Xs(e) {
|
|
|
5531
5571
|
zod: G(a, n)
|
|
5532
5572
|
});
|
|
5533
5573
|
}
|
|
5534
|
-
var
|
|
5574
|
+
var ec = {
|
|
5535
5575
|
string: X,
|
|
5536
5576
|
text: Z,
|
|
5537
|
-
i18n:
|
|
5538
|
-
smallText:
|
|
5539
|
-
localDir:
|
|
5540
|
-
localFile:
|
|
5541
|
-
real:
|
|
5542
|
-
int:
|
|
5543
|
-
date:
|
|
5544
|
-
time:
|
|
5545
|
-
datetime:
|
|
5546
|
-
boolean:
|
|
5547
|
-
triState:
|
|
5548
|
-
select:
|
|
5549
|
-
relation:
|
|
5550
|
-
json:
|
|
5551
|
-
check:
|
|
5552
|
-
measured:
|
|
5553
|
-
money:
|
|
5554
|
-
code:
|
|
5555
|
-
geo:
|
|
5556
|
-
lookup:
|
|
5557
|
-
perWeekday:
|
|
5558
|
-
period:
|
|
5559
|
-
file:
|
|
5560
|
-
document:
|
|
5561
|
-
audio:
|
|
5562
|
-
video:
|
|
5563
|
-
image:
|
|
5564
|
-
media:
|
|
5565
|
-
avatar:
|
|
5566
|
-
cover:
|
|
5567
|
-
poster:
|
|
5568
|
-
embed:
|
|
5569
|
-
keyValue:
|
|
5570
|
-
numberRange:
|
|
5571
|
-
realRange:
|
|
5577
|
+
i18n: gs,
|
|
5578
|
+
smallText: _s,
|
|
5579
|
+
localDir: ms,
|
|
5580
|
+
localFile: hs,
|
|
5581
|
+
real: vs,
|
|
5582
|
+
int: ys,
|
|
5583
|
+
date: bs,
|
|
5584
|
+
time: xs,
|
|
5585
|
+
datetime: Ss,
|
|
5586
|
+
boolean: Cs,
|
|
5587
|
+
triState: ws,
|
|
5588
|
+
select: Es,
|
|
5589
|
+
relation: Ds,
|
|
5590
|
+
json: Os,
|
|
5591
|
+
check: ks,
|
|
5592
|
+
measured: As,
|
|
5593
|
+
money: js,
|
|
5594
|
+
code: Ms,
|
|
5595
|
+
geo: Ns,
|
|
5596
|
+
lookup: Fs,
|
|
5597
|
+
perWeekday: Ps,
|
|
5598
|
+
period: Is,
|
|
5599
|
+
file: Bs,
|
|
5600
|
+
document: Vs,
|
|
5601
|
+
audio: Hs,
|
|
5602
|
+
video: Us,
|
|
5603
|
+
image: Ws,
|
|
5604
|
+
media: Gs,
|
|
5605
|
+
avatar: Ks,
|
|
5606
|
+
cover: qs,
|
|
5607
|
+
poster: Js,
|
|
5608
|
+
embed: $s,
|
|
5609
|
+
keyValue: Ys,
|
|
5610
|
+
numberRange: Zs,
|
|
5611
|
+
realRange: Qs,
|
|
5572
5612
|
group: q,
|
|
5573
|
-
row:
|
|
5574
|
-
table:
|
|
5575
|
-
sheet:
|
|
5576
|
-
keyed:
|
|
5577
|
-
url:
|
|
5578
|
-
divider:
|
|
5579
|
-
break:
|
|
5580
|
-
info:
|
|
5581
|
-
button:
|
|
5613
|
+
row: $o,
|
|
5614
|
+
table: es,
|
|
5615
|
+
sheet: ts,
|
|
5616
|
+
keyed: rs,
|
|
5617
|
+
url: ns,
|
|
5618
|
+
divider: os,
|
|
5619
|
+
break: ss,
|
|
5620
|
+
info: cs,
|
|
5621
|
+
button: ls
|
|
5582
5622
|
};
|
|
5583
|
-
function
|
|
5584
|
-
for (let t of Object.keys(e)) if (t in
|
|
5623
|
+
function tc(e) {
|
|
5624
|
+
for (let t of Object.keys(e)) if (t in ec) throw Error(`[f] preset '${t}' overrides a primitive`);
|
|
5585
5625
|
return {
|
|
5586
|
-
...
|
|
5626
|
+
...ec,
|
|
5587
5627
|
...e
|
|
5588
5628
|
};
|
|
5589
5629
|
}
|
|
5590
|
-
var
|
|
5630
|
+
var nc, rc = () => nc ??= tc(Wo);
|
|
5591
5631
|
new Proxy({}, {
|
|
5592
|
-
get: (e, t) =>
|
|
5593
|
-
has: (e, t) => t in
|
|
5632
|
+
get: (e, t) => rc()[t],
|
|
5633
|
+
has: (e, t) => t in rc()
|
|
5594
5634
|
});
|
|
5595
|
-
function
|
|
5635
|
+
function ic(e) {
|
|
5596
5636
|
let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u } = e;
|
|
5597
5637
|
return {
|
|
5598
5638
|
kind: t,
|
|
@@ -5609,8 +5649,8 @@ function tc(e) {
|
|
|
5609
5649
|
}
|
|
5610
5650
|
//#endregion
|
|
5611
5651
|
//#region ../web-sdk/src/registry.ts
|
|
5612
|
-
var
|
|
5613
|
-
function
|
|
5652
|
+
var ac = {};
|
|
5653
|
+
function oc(e) {
|
|
5614
5654
|
if (!e.kinds.length) throw Error("[render] renderer without kinds");
|
|
5615
5655
|
let t = {
|
|
5616
5656
|
kinds: e.kinds,
|
|
@@ -5621,90 +5661,90 @@ function rc(e) {
|
|
|
5621
5661
|
keys: e.keys
|
|
5622
5662
|
};
|
|
5623
5663
|
for (let n of e.kinds) {
|
|
5624
|
-
if (
|
|
5625
|
-
|
|
5664
|
+
if (ac[n]) throw Error(`[render] kind '${n}' already registered`);
|
|
5665
|
+
ac[n] = t;
|
|
5626
5666
|
}
|
|
5627
5667
|
}
|
|
5628
|
-
function
|
|
5629
|
-
return
|
|
5630
|
-
}
|
|
5631
|
-
function
|
|
5632
|
-
if (
|
|
5633
|
-
if (
|
|
5634
|
-
if (
|
|
5635
|
-
if (
|
|
5636
|
-
if (
|
|
5668
|
+
function sc(e) {
|
|
5669
|
+
return ac[e.kind];
|
|
5670
|
+
}
|
|
5671
|
+
function cc(e) {
|
|
5672
|
+
if (qo(e) || Jo(e)) return e.type.kind;
|
|
5673
|
+
if (Yo(e)) return e.kind ?? (is(e) ? "collection" : as(e) ? "embedded" : "group");
|
|
5674
|
+
if (Qo(e)) return "button";
|
|
5675
|
+
if (Xo(e)) return "divider";
|
|
5676
|
+
if (Zo(e)) return "info";
|
|
5637
5677
|
throw Error("[render] unknown layout element");
|
|
5638
5678
|
}
|
|
5639
|
-
function
|
|
5640
|
-
let t =
|
|
5679
|
+
function lc(e) {
|
|
5680
|
+
let t = sc(e)?.layout;
|
|
5641
5681
|
return typeof t == "function" ? t(e) : t ?? "scalar";
|
|
5642
5682
|
}
|
|
5643
|
-
var
|
|
5644
|
-
function
|
|
5645
|
-
if (
|
|
5646
|
-
|
|
5683
|
+
var uc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", dc = {};
|
|
5684
|
+
function fc(e, t) {
|
|
5685
|
+
if (dc[e]) throw Error(`[template] '${e}' already registered`);
|
|
5686
|
+
dc[e] = t;
|
|
5647
5687
|
}
|
|
5648
|
-
function
|
|
5649
|
-
return
|
|
5688
|
+
function pc(e) {
|
|
5689
|
+
return dc[e];
|
|
5650
5690
|
}
|
|
5651
5691
|
//#endregion
|
|
5652
5692
|
//#region ../web-sdk/src/list-view.ts
|
|
5653
|
-
var
|
|
5654
|
-
function
|
|
5693
|
+
var mc = {};
|
|
5694
|
+
function hc(e) {
|
|
5655
5695
|
if (!e.kind) throw Error("[list-view] view without kind");
|
|
5656
|
-
if (
|
|
5657
|
-
|
|
5696
|
+
if (mc[e.kind]) throw Error(`[list-view] kind '${e.kind}' already registered`);
|
|
5697
|
+
mc[e.kind] = e;
|
|
5658
5698
|
}
|
|
5659
|
-
function
|
|
5660
|
-
return
|
|
5699
|
+
function gc(e) {
|
|
5700
|
+
return mc[e];
|
|
5661
5701
|
}
|
|
5662
5702
|
//#endregion
|
|
5663
5703
|
//#region ../web-sdk/src/plugin-ui.ts
|
|
5664
|
-
function
|
|
5704
|
+
function _c(e) {
|
|
5665
5705
|
return e;
|
|
5666
5706
|
}
|
|
5667
|
-
var $ = /* @__PURE__ */ new Map(),
|
|
5668
|
-
function
|
|
5707
|
+
var $ = /* @__PURE__ */ new Map(), vc = /* @__PURE__ */ new Map(), yc = /* @__PURE__ */ new Map();
|
|
5708
|
+
function bc(e) {
|
|
5669
5709
|
for (let t of e.slots ?? []) {
|
|
5670
5710
|
let e = $.get(t.slot);
|
|
5671
5711
|
e || (e = /* @__PURE__ */ new Map(), $.set(t.slot, e)), e.set(t.id, t);
|
|
5672
5712
|
}
|
|
5673
|
-
for (let t of e.routes ?? [])
|
|
5674
|
-
for (let t of e.nav ?? [])
|
|
5713
|
+
for (let t of e.routes ?? []) vc.set(t.path, t);
|
|
5714
|
+
for (let t of e.nav ?? []) yc.set(t.to, t);
|
|
5675
5715
|
}
|
|
5676
|
-
function
|
|
5716
|
+
function xc(e) {
|
|
5677
5717
|
return (t, n) => (t.order ?? 0) - (n.order ?? 0) || e(t).localeCompare(e(n));
|
|
5678
5718
|
}
|
|
5679
|
-
function
|
|
5680
|
-
return [...$.get(e)?.values() ?? []].sort(
|
|
5719
|
+
function Sc(e) {
|
|
5720
|
+
return [...$.get(e)?.values() ?? []].sort(xc((e) => e.id));
|
|
5681
5721
|
}
|
|
5682
|
-
function
|
|
5683
|
-
return [...
|
|
5722
|
+
function Cc() {
|
|
5723
|
+
return [...vc.values()];
|
|
5684
5724
|
}
|
|
5685
|
-
function
|
|
5686
|
-
return [...
|
|
5725
|
+
function wc() {
|
|
5726
|
+
return [...yc.values()].sort(xc((e) => e.to));
|
|
5687
5727
|
}
|
|
5688
|
-
function
|
|
5689
|
-
$.clear(),
|
|
5728
|
+
function Tc() {
|
|
5729
|
+
$.clear(), vc.clear(), yc.clear();
|
|
5690
5730
|
}
|
|
5691
5731
|
//#endregion
|
|
5692
5732
|
//#region ../web-sdk/src/site-links.ts
|
|
5693
|
-
var
|
|
5694
|
-
function
|
|
5695
|
-
|
|
5733
|
+
var Ec = [], Dc = [];
|
|
5734
|
+
function Oc(e) {
|
|
5735
|
+
Ec = [...e];
|
|
5696
5736
|
}
|
|
5697
|
-
function
|
|
5698
|
-
return [...
|
|
5737
|
+
function kc() {
|
|
5738
|
+
return [...Ec];
|
|
5699
5739
|
}
|
|
5700
|
-
function
|
|
5701
|
-
|
|
5740
|
+
function Ac(e) {
|
|
5741
|
+
Dc = [...e];
|
|
5702
5742
|
}
|
|
5703
|
-
function
|
|
5704
|
-
return [...
|
|
5743
|
+
function jc() {
|
|
5744
|
+
return [...Dc];
|
|
5705
5745
|
}
|
|
5706
|
-
function
|
|
5707
|
-
|
|
5746
|
+
function Mc() {
|
|
5747
|
+
Ec = [], Dc = [];
|
|
5708
5748
|
}
|
|
5709
5749
|
//#endregion
|
|
5710
|
-
export {
|
|
5750
|
+
export { bc as applyAppUI, _c as definePluginUI, cc as elementKind, lc as fieldLayout, wc as getPluginNav, Cc as getPluginRoutes, kc as getSiteLinks, jc as getSiteShelves, Sc as getSlotEntries, mc as listViewRegistry, uc as multiBlock, hc as registerListView, oc as registerRenderer, Oc as registerSiteLinks, Ac as registerSiteShelves, fc as registerTemplate, ac as rendererRegistry, Tc as resetAppUI, Mc as resetSiteLinks, gc as resolveListView, sc as resolveRenderer, pc as resolveTemplate };
|