@oktis-works/admin 0.19.1 → 0.23.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/client/_astro/{ActivityWidget.9T9D1Dwq.js → ActivityWidget.Dzoi-bq3.js} +1 -1
- package/dist/client/_astro/{AdminBar.uZX_VBFr.js → AdminBar.eT1ch_B6.js} +1 -1
- package/dist/client/_astro/{ApiKeysManager.BeZosAcl.js → ApiKeysManager.kbTE1CPk.js} +1 -1
- package/dist/client/_astro/{AtGlanceWidget.B6FKmL7A.js → AtGlanceWidget.w23IIv06.js} +1 -1
- package/dist/client/_astro/{BaseLayout.Cp-O10m_.css → BaseLayout.Rpr86VwM.css} +1 -1
- package/dist/client/_astro/{CommentsManager.9iktJziN.js → CommentsManager.BN7i1RHa.js} +1 -1
- package/dist/client/_astro/ContentEditor.BlsJ2bwD.js +1 -0
- package/dist/client/_astro/ContentTypeWorkspace.BPVuQgzA.js +1 -0
- package/dist/client/_astro/{DashboardHome.CBTZuAbN.js → DashboardHome.DXzu_IXZ.js} +1 -1
- package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.ohczxyNy.js → DashboardLayout.astro_astro_type_script_index_0_lang.DmNSzErX.js} +1 -1
- package/dist/client/_astro/FieldGroupEditor.DsqphEgt.js +69 -0
- package/dist/client/_astro/{FieldGroupList.DwHwSB-m.js → FieldGroupList.pW2Um9om.js} +1 -1
- package/dist/client/_astro/FieldRenderer.AYtSBfHZ.js +3 -0
- package/dist/client/_astro/{Footer.ZmhGZsX_.js → Footer.5Lcn2VXz.js} +1 -1
- package/dist/client/_astro/GeneralSettings.B-H8Rzy7.js +1 -0
- package/dist/client/_astro/{LogsManager.VmsL1Y_c.js → LogsManager.Crd8q2te.js} +1 -1
- package/dist/client/_astro/{MediaLibrary.BPA5KcoT.js → MediaLibrary.Cv6Ry3u9.js} +1 -1
- package/dist/client/_astro/{MenuManager.-kATOHiC.js → MenuManager.D25ika09.js} +1 -1
- package/dist/client/_astro/{Modal.6YIPt-vQ.js → Modal.572hmVvb.js} +1 -1
- package/dist/client/_astro/{PluginManager.ezr27PG_.js → PluginManager.DLfgQFPF.js} +1 -1
- package/dist/client/_astro/{PostTypesManager.D4rhu5qf.js → PostTypesManager.C3RbmOZT.js} +1 -1
- package/dist/client/_astro/{QuickDraftWidget.tEoK6vHH.js → QuickDraftWidget.BtSGzhKq.js} +1 -1
- package/dist/client/_astro/{ReadingSettings.BhxqtNjo.js → ReadingSettings.ZFDaeo5U.js} +1 -1
- package/dist/client/_astro/{ResourceHubs.Bjng1UYH.js → ResourceHubs.Cx9fbCv1.js} +1 -1
- package/dist/client/_astro/{TaxonomiesManager.C12F1EN1.js → TaxonomiesManager.BLsvmjaL.js} +1 -1
- package/dist/client/_astro/TaxonomyTermsManager.C_xEh8Ab.js +1 -0
- package/dist/client/_astro/ThemeCustomizer.yx8rEKcL.js +577 -0
- package/dist/client/_astro/{ThemeManager.D28v1eyx.js → ThemeManager.BpS3m7Qc.js} +2 -2
- package/dist/client/_astro/{UserCreateForm.Bh_H8pJN.js → UserCreateForm.BYwgAqKk.js} +1 -1
- package/dist/client/_astro/{UsersManager.Ds7__cY5.js → UsersManager.DODMr48D.js} +1 -1
- package/dist/client/_astro/{WebhooksManager.2IVxZFIV.js → WebhooksManager.DmWIW272.js} +1 -1
- package/dist/client/_astro/ar.BCtMLfbL.js +1 -0
- package/dist/client/_astro/clone.oDfZEkVn.js +1 -0
- package/dist/client/_astro/es-ES.BfYd3kCv.js +1 -0
- package/dist/client/_astro/he.pQFPO6hc.js +1 -0
- package/dist/client/_astro/i18n.A82w5XQu.js +1 -0
- package/dist/client/_astro/it.ZpeUogpB.js +1 -0
- package/dist/client/_astro/ja.Ch5X4gaR.js +1 -0
- package/dist/client/_astro/pl.DDgkAPXr.js +1 -0
- package/dist/client/_astro/pt-BR.zZcF2v3X.js +1 -0
- package/dist/client/_astro/ru.CAjJz8Cj.js +1 -0
- package/dist/client/_astro/sw.CehAEkRN.js +1 -0
- package/dist/client/_astro/tr.Sf1XkPHa.js +1 -0
- package/dist/client/_astro/uk.-2u2eOOq.js +1 -0
- package/dist/client/_astro/yo.os9m69tq.js +1 -0
- package/dist/client/_astro/zh-CN.Bt1lpQQu.js +1 -0
- package/dist/server/chunks/{404_CtVqPqLh.mjs → 404_BjHJCErQ.mjs} +1 -1
- package/dist/server/chunks/{BaseLayout_CH8MQ3No.mjs → BaseLayout_DrIrAANk.mjs} +1 -1
- package/dist/server/chunks/{ContentEditor_6J53ebJ2.mjs → ContentEditor_BhXk6xd0.mjs} +42 -7
- package/dist/server/chunks/{DashboardLayout_DGbCn1gh.mjs → DashboardLayout_DxMWAFCu.mjs} +12 -12
- package/dist/server/chunks/{FbIcon_7YixzwO3.mjs → FbIcon_D0f6QiFJ.mjs} +1 -1
- package/dist/server/chunks/{FieldRenderer_DowQgtDc.mjs → FieldRenderer_CD8prpXz.mjs} +173 -131
- package/dist/server/chunks/{FloatingPanel_BtB-nNBT.mjs → FloatingPanel_DI2CdUZK.mjs} +1 -1
- package/dist/server/chunks/{MediaLibrary_DuxnoiMa.mjs → MediaLibrary_BY9b_CPa.mjs} +3 -3
- package/dist/server/chunks/{Modal_CkrRnNzN.mjs → Modal_BmuvdwoB.mjs} +2 -2
- package/dist/server/chunks/{PageHeader_CRpzf5xU.mjs → PageHeader_CBOioOjo.mjs} +1 -1
- package/dist/server/chunks/{TimezoneSelect_Cj-oxeeA.mjs → TimezoneSelect_D6o-2_7b.mjs} +2 -2
- package/dist/server/chunks/{_id__DfQqu18v.mjs → _id__BeIHLdfs.mjs} +79 -67
- package/dist/server/chunks/{_slug__CPv34VnT.mjs → _slug__Dsz2U4cu.mjs} +2 -2
- package/dist/server/chunks/{access_B-f0fZwc.mjs → access_ClmMoH40.mjs} +8 -8
- package/dist/server/chunks/{api-keys_BSvI1g4B.mjs → api-keys_DLbrSM4U.mjs} +6 -6
- package/dist/server/chunks/{ar_DObFFdrO.mjs → ar_Cgz1nkYN.mjs} +30 -3
- package/dist/server/chunks/clone_FT3Zf-Bf.mjs +59 -0
- package/dist/server/chunks/{comments_D3X5nFKK.mjs → comments_Cg1jrxti.mjs} +3 -3
- package/dist/server/chunks/{custom-fields_Cue8nhbd.mjs → custom-fields_CVJsfyk6.mjs} +5 -5
- package/dist/server/chunks/customize_BW-P44BY.mjs +1549 -0
- package/dist/server/chunks/{edit_5CwEtymP.mjs → edit_DdmQd4K3.mjs} +3 -3
- package/dist/server/chunks/{es-ES_D6jd6T7H.mjs → es-ES_Bw0g3h9x.mjs} +30 -3
- package/dist/server/chunks/{he_DwGJwonL.mjs → he_BcJYW2q8.mjs} +30 -3
- package/dist/server/chunks/{i18n_RELfVLel.mjs → i18n_C-sgJSi1.mjs} +34 -19
- package/dist/server/chunks/{index_BzgdFBMP.mjs → index_BSQio-Py.mjs} +4 -4
- package/dist/server/chunks/{index_C594fLur.mjs → index_BktteRMy.mjs} +6 -17
- package/dist/server/chunks/{index_CJVbaexl.mjs → index_Bv2fgBnE.mjs} +6 -6
- package/dist/server/chunks/{index_DW0-epn4.mjs → index_Bw0pBVRv.mjs} +4 -4
- package/dist/server/chunks/{index_CvbZ6goO.mjs → index_DxNPNwIw.mjs} +5 -5
- package/dist/server/chunks/{it_CMLpQyoj.mjs → it_CgOxhoxy.mjs} +30 -3
- package/dist/server/chunks/{ja_CYRz0pHv.mjs → ja_0swn1wUm.mjs} +30 -3
- package/dist/server/chunks/{login_BAhzxnXF.mjs → login_BCRPUCQz.mjs} +1 -1
- package/dist/server/chunks/{logs_iVt0OMQv.mjs → logs_DlzM1kpI.mjs} +5 -5
- package/dist/server/chunks/{menus_zRwS15d7.mjs → menus_pMKatAHX.mjs} +4 -4
- package/dist/server/chunks/{new_DKOOAiqy.mjs → new_B3cNZZO2.mjs} +3 -3
- package/dist/server/chunks/{new_CWejzb4K.mjs → new_C9JrPY2y.mjs} +5 -5
- package/dist/server/chunks/{pl_BuXVPvU1.mjs → pl_eLBKfEwP.mjs} +30 -3
- package/dist/server/chunks/{plugins_BpPZxAK2.mjs → plugins_BTPNe18c.mjs} +3 -3
- package/dist/server/chunks/{post-types_C_JULYq5.mjs → post-types_DIYWDXCR.mjs} +7 -7
- package/dist/server/chunks/{pt-BR_B2PJHiOg.mjs → pt-BR_AVNE88MZ.mjs} +16 -1
- package/dist/server/chunks/{reading_fhgI8X3-.mjs → reading_BBV5Dsg0.mjs} +4 -4
- package/dist/server/chunks/{ru_C56ltukG.mjs → ru_Dt3fMzac.mjs} +30 -3
- package/dist/server/chunks/{sw_Dhw0GAgD.mjs → sw_oPyQwKSK.mjs} +30 -3
- package/dist/server/chunks/{taxonomies_Bb8DwbNZ.mjs → taxonomies_G6ROt7Dn.mjs} +5 -5
- package/dist/server/chunks/{taxonomy_BXM2ubYg.mjs → taxonomy_B59mViQc.mjs} +5 -4
- package/dist/server/chunks/{themes_BPlBocEN.mjs → themes_CygkZJbP.mjs} +7 -5
- package/dist/server/chunks/{tr_zELRy7A-.mjs → tr_DG1ipiJ0.mjs} +30 -3
- package/dist/server/chunks/{uk_DVOqp1x6.mjs → uk_DCWgX6k4.mjs} +30 -3
- package/dist/server/chunks/{upload_BWA1htvi.mjs → upload_BOPk3diJ.mjs} +4 -4
- package/dist/server/chunks/{webhooks_CzjbYgHf.mjs → webhooks_BiHf1cMk.mjs} +5 -5
- package/dist/server/chunks/{yo_BqgZcoxs.mjs → yo_DsFzhH21.mjs} +30 -3
- package/dist/server/chunks/{zh-CN_Dz2D1XUc.mjs → zh-CN_OaG8XYVK.mjs} +30 -3
- package/dist/server/entry.mjs +28 -28
- package/dist/server/virtual_astro_middleware.mjs +3 -3
- package/package.json +1 -1
- package/dist/client/_astro/ContentEditor.BqDPU74P.js +0 -1
- package/dist/client/_astro/ContentEditor.DVKohXM-.js +0 -3
- package/dist/client/_astro/ContentTypeWorkspace.DqoBUPpT.js +0 -1
- package/dist/client/_astro/FieldGroupEditor.DBT985JP.js +0 -69
- package/dist/client/_astro/FieldRenderer.BxkMD5Kl.js +0 -1
- package/dist/client/_astro/GeneralSettings.B1f0Zpzs.js +0 -1
- package/dist/client/_astro/TaxonomyTermsManager.2V-JSC-7.js +0 -1
- package/dist/client/_astro/ThemeCustomizer.CGY-3Jl4.js +0 -49
- package/dist/client/_astro/ar.BeEmOTlL.js +0 -1
- package/dist/client/_astro/es-ES.C0DI0CK6.js +0 -1
- package/dist/client/_astro/he.RF4swhtn.js +0 -1
- package/dist/client/_astro/i18n.DnYRsWBJ.js +0 -1
- package/dist/client/_astro/it.DhCR9YsW.js +0 -1
- package/dist/client/_astro/ja.DPrxHQvU.js +0 -1
- package/dist/client/_astro/pl.6VCoPa7y.js +0 -1
- package/dist/client/_astro/pt-BR.CeCNYyhv.js +0 -1
- package/dist/client/_astro/ru.Cv0Z6X2y.js +0 -1
- package/dist/client/_astro/sw.BBMIgY-Y.js +0 -1
- package/dist/client/_astro/tr.BWEmWhCE.js +0 -1
- package/dist/client/_astro/uk.DDXJXOmn.js +0 -1
- package/dist/client/_astro/yo.DNoEBLJd.js +0 -1
- package/dist/client/_astro/zh-CN.CVKBB6Ky.js +0 -1
- package/dist/server/chunks/customize_CSP8B-As.mjs +0 -233
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { _ as createMemo$1, h as Show2, u as For2, v as createSignal$1 } from "./
|
|
3
|
-
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
4
|
-
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
1
|
+
import "./i18n_C-sgJSi1.mjs";
|
|
2
|
+
import { _ as createMemo$1, h as Show2, u as For2, v as createSignal$1 } from "./DashboardLayout_DxMWAFCu.mjs";
|
|
3
|
+
import { Dynamic, createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
4
|
+
import { For, Match, Show, Switch, createMemo, createSignal, onMount } from "solid-js";
|
|
5
5
|
//#region ../../packages/validation/dist/client-validate.js
|
|
6
6
|
function isEmptyValue(value) {
|
|
7
7
|
if (value === null || value === void 0) return true;
|
|
@@ -467,65 +467,7 @@ function validateFieldClient(field, value) {
|
|
|
467
467
|
return errors[0]?.message ?? null;
|
|
468
468
|
}
|
|
469
469
|
//#endregion
|
|
470
|
-
//#region
|
|
471
|
-
/**
|
|
472
|
-
* Expande campos do tipo `clone` nas definições alvo.
|
|
473
|
-
*
|
|
474
|
-
* - `display: 'seamless'` (default): os campos referenciados entram
|
|
475
|
-
* diretamente na lista, com os mesmos nomes (valores "inline").
|
|
476
|
-
* - `display: 'group'`: os campos viram subcampos de um pseudo-group com o
|
|
477
|
-
* nome do clone, e os nomes internos recebem o prefixo `{clone}_`
|
|
478
|
-
* (valores aninhados em data[clone.name]).
|
|
479
|
-
*
|
|
480
|
-
* Referências inexistentes são ignoradas; clones de clones não são
|
|
481
|
-
* resolvidos recursivamente (profundidade 1).
|
|
482
|
-
*/
|
|
483
|
-
function expandCloneFields(fields) {
|
|
484
|
-
const byName = /* @__PURE__ */ new Map();
|
|
485
|
-
for (const field of fields) byName.set(field.name, field);
|
|
486
|
-
const result = [];
|
|
487
|
-
const emittedNames = /* @__PURE__ */ new Set();
|
|
488
|
-
const emit = (field) => {
|
|
489
|
-
if (emittedNames.has(field.name)) return;
|
|
490
|
-
emittedNames.add(field.name);
|
|
491
|
-
result.push(field);
|
|
492
|
-
};
|
|
493
|
-
for (const field of fields) {
|
|
494
|
-
if (field.type !== "clone") {
|
|
495
|
-
emit(field);
|
|
496
|
-
continue;
|
|
497
|
-
}
|
|
498
|
-
const config = field.config ?? {};
|
|
499
|
-
const display = config["display"] ?? "seamless";
|
|
500
|
-
const targets = config["clone"] ?? [];
|
|
501
|
-
const resolved = [];
|
|
502
|
-
for (const targetName of targets) {
|
|
503
|
-
const target = byName.get(targetName);
|
|
504
|
-
if (!target || target.type === "clone") continue;
|
|
505
|
-
resolved.push(target);
|
|
506
|
-
}
|
|
507
|
-
if (resolved.length === 0) continue;
|
|
508
|
-
if (display === "group") {
|
|
509
|
-
emit({
|
|
510
|
-
...field,
|
|
511
|
-
type: "group",
|
|
512
|
-
name: field.name,
|
|
513
|
-
label: field.label,
|
|
514
|
-
required: false,
|
|
515
|
-
conditionalLogic: void 0,
|
|
516
|
-
subFields: resolved.map((target) => ({
|
|
517
|
-
...target,
|
|
518
|
-
name: `${field.name}_${target.name}`
|
|
519
|
-
}))
|
|
520
|
-
});
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
for (const target of resolved) emit(target);
|
|
524
|
-
}
|
|
525
|
-
return result;
|
|
526
|
-
}
|
|
527
|
-
//#endregion
|
|
528
|
-
//#region src/components/content/RelationshipPicker.jsx
|
|
470
|
+
//#region src/components/content/RelationshipPicker.tsx
|
|
529
471
|
var _tmpl$$2 = [
|
|
530
472
|
"<ul",
|
|
531
473
|
" class=\"relationship-picker__selection\">",
|
|
@@ -610,7 +552,7 @@ function RelationshipPicker(props) {
|
|
|
610
552
|
})));
|
|
611
553
|
}
|
|
612
554
|
//#endregion
|
|
613
|
-
//#region src/content/PluginFieldRenderer.
|
|
555
|
+
//#region src/content/PluginFieldRenderer.tsx
|
|
614
556
|
var _tmpl$$1 = ["<div", " class=\"fb-plugin-field-renderer fb-plugin-field-renderer--loading\"><div class=\"fb-spinner\" aria-hidden=\"true\"></div><span>Carregando editor...</span></div>"];
|
|
615
557
|
var _tmpl$2$1 = [
|
|
616
558
|
"<div",
|
|
@@ -655,7 +597,7 @@ function PluginFieldRenderer(props) {
|
|
|
655
597
|
const pathsToTry = [props.adminRendererPath, props.adminComponentPath].filter(Boolean);
|
|
656
598
|
for (const path of pathsToTry) try {
|
|
657
599
|
const module = await import(path);
|
|
658
|
-
const Comp = module.default || module.PluginFieldRenderer || module.PluginFieldConfig ||
|
|
600
|
+
const Comp = module.default || module.PluginFieldRenderer || module.PluginFieldConfig || Object.values(module)[0];
|
|
659
601
|
if (Comp) {
|
|
660
602
|
setComponent(Comp);
|
|
661
603
|
setLoading(false);
|
|
@@ -671,56 +613,82 @@ function PluginFieldRenderer(props) {
|
|
|
671
613
|
const handleValueChange = (newValue) => {
|
|
672
614
|
props.onChange(newValue);
|
|
673
615
|
};
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
616
|
+
return createComponent(Switch, { get children() {
|
|
617
|
+
return [
|
|
618
|
+
createComponent(Match, {
|
|
619
|
+
get when() {
|
|
620
|
+
return loading();
|
|
621
|
+
},
|
|
622
|
+
get children() {
|
|
623
|
+
return ssr(_tmpl$$1, ssrHydrationKey());
|
|
624
|
+
}
|
|
625
|
+
}),
|
|
626
|
+
createComponent(Match, {
|
|
627
|
+
get when() {
|
|
628
|
+
return error() || !Component();
|
|
629
|
+
},
|
|
630
|
+
get children() {
|
|
631
|
+
return ssr(_tmpl$3$1, ssrHydrationKey(), escape(createComponent(Show, {
|
|
632
|
+
get when() {
|
|
633
|
+
return error();
|
|
634
|
+
},
|
|
635
|
+
get children() {
|
|
636
|
+
return ssr(_tmpl$2$1, ssrHydrationKey(), escape(error()));
|
|
637
|
+
}
|
|
638
|
+
})), escape(createComponent(FallbackRenderer, {
|
|
639
|
+
get field() {
|
|
640
|
+
return props.field;
|
|
641
|
+
},
|
|
642
|
+
get value() {
|
|
643
|
+
return props.value;
|
|
644
|
+
},
|
|
645
|
+
onChange: handleValueChange,
|
|
646
|
+
get disabled() {
|
|
647
|
+
return props.disabled;
|
|
648
|
+
},
|
|
649
|
+
get _t() {
|
|
650
|
+
return props._t;
|
|
651
|
+
}
|
|
652
|
+
})));
|
|
653
|
+
}
|
|
654
|
+
}),
|
|
655
|
+
createComponent(Match, {
|
|
656
|
+
when: true,
|
|
657
|
+
get children() {
|
|
658
|
+
return ssr(_tmpl$4$1, ssrHydrationKey(), escape(createComponent(Dynamic, {
|
|
659
|
+
get component() {
|
|
660
|
+
return Component();
|
|
661
|
+
},
|
|
662
|
+
get field() {
|
|
663
|
+
return props.field;
|
|
664
|
+
},
|
|
665
|
+
get value() {
|
|
666
|
+
return props.value;
|
|
667
|
+
},
|
|
668
|
+
onChange: handleValueChange,
|
|
669
|
+
get disabled() {
|
|
670
|
+
return props.disabled;
|
|
671
|
+
},
|
|
672
|
+
get _t() {
|
|
673
|
+
return props._t;
|
|
674
|
+
}
|
|
675
|
+
})));
|
|
676
|
+
}
|
|
677
|
+
})
|
|
678
|
+
];
|
|
679
|
+
} });
|
|
712
680
|
}
|
|
713
681
|
function FallbackRenderer(props) {
|
|
714
|
-
const { field, value, onChange, disabled
|
|
715
|
-
const inputType = field.config?.inputType || "textarea";
|
|
716
|
-
const placeholder = field.config?.placeholder || "";
|
|
717
|
-
const rows = field.config?.rows || 4;
|
|
682
|
+
const { field, value, onChange, disabled } = props;
|
|
683
|
+
const inputType = field.config?.["inputType"] || "textarea";
|
|
684
|
+
const placeholder = field.config?.["placeholder"] || "";
|
|
685
|
+
const rows = field.config?.["rows"] || 4;
|
|
718
686
|
if (inputType === "textarea" || inputType === "code" || inputType === "markdown") return ssr(_tmpl$5$1, ssrHydrationKey(), ssrAttribute("value", escape(value, true), false) + ssrAttribute("placeholder", escape(placeholder, true), false) + ssrAttribute("rows", escape(rows, true), false), ssrAttribute("disabled", disabled, true));
|
|
719
687
|
if (inputType === "number") return ssr(_tmpl$6$1, ssrHydrationKey(), ssrAttribute("value", escape(value, true), false) + ssrAttribute("placeholder", escape(placeholder, true), false), ssrAttribute("disabled", disabled, true));
|
|
720
688
|
return ssr(_tmpl$7$1, ssrHydrationKey(), ssrAttribute("value", escape(value, true), false) + ssrAttribute("placeholder", escape(placeholder, true), false), ssrAttribute("disabled", disabled, true));
|
|
721
689
|
}
|
|
722
690
|
//#endregion
|
|
723
|
-
//#region src/components/content/FieldRenderer.
|
|
691
|
+
//#region src/components/content/FieldRenderer.tsx
|
|
724
692
|
var _tmpl$ = ["<span", " class=\"field-renderer__required\">*</span>"];
|
|
725
693
|
var _tmpl$2 = [
|
|
726
694
|
"<p",
|
|
@@ -752,15 +720,47 @@ var _tmpl$6 = [
|
|
|
752
720
|
" class=\"input\"",
|
|
753
721
|
"></textarea>"
|
|
754
722
|
];
|
|
755
|
-
var _tmpl$7 = [
|
|
723
|
+
var _tmpl$7 = [
|
|
724
|
+
"<div",
|
|
725
|
+
" class=\"field-renderer__wysiwyg\"><div class=\"field-renderer__wysiwyg-toolbar\" role=\"toolbar\"",
|
|
726
|
+
"><select class=\"input\"",
|
|
727
|
+
" value><option value>",
|
|
728
|
+
"</option><option value=\"<h1>\">",
|
|
729
|
+
"</option><option value=\"<h2>\">",
|
|
730
|
+
"</option><option value=\"<h3>\">",
|
|
731
|
+
"</option><option value=\"<h4>\">",
|
|
732
|
+
"</option><option value=\"<blockquote>\">",
|
|
733
|
+
"</option><option value=\"<pre>\">",
|
|
734
|
+
"</option></select><span class=\"field-renderer__wysiwyg-divider\"></span><button type=\"button\"><strong>",
|
|
735
|
+
"</strong></button><button type=\"button\"><em>",
|
|
736
|
+
"</em></button><button type=\"button\"><u>",
|
|
737
|
+
"</u></button><span class=\"field-renderer__wysiwyg-divider\"></span><button type=\"button\">",
|
|
738
|
+
"</button><button type=\"button\">",
|
|
739
|
+
"</button><button type=\"button\">",
|
|
740
|
+
"</button></div><div class=\"field-renderer__wysiwyg-body input\" contenteditable=\"true\" role=\"textbox\" aria-multiline=\"true\"",
|
|
741
|
+
">",
|
|
742
|
+
"</div></div>"
|
|
743
|
+
];
|
|
756
744
|
var _tmpl$8 = [
|
|
757
745
|
"<input",
|
|
758
746
|
" type=\"number\" class=\"input\"",
|
|
759
747
|
">"
|
|
760
748
|
];
|
|
761
|
-
var _tmpl$9 = [
|
|
762
|
-
|
|
763
|
-
|
|
749
|
+
var _tmpl$9 = [
|
|
750
|
+
"<input",
|
|
751
|
+
" type=\"email\" class=\"input\"",
|
|
752
|
+
">"
|
|
753
|
+
];
|
|
754
|
+
var _tmpl$0 = [
|
|
755
|
+
"<input",
|
|
756
|
+
" type=\"url\" class=\"input\" placeholder=\"https://\"",
|
|
757
|
+
">"
|
|
758
|
+
];
|
|
759
|
+
var _tmpl$1 = [
|
|
760
|
+
"<input",
|
|
761
|
+
" type=\"password\" class=\"input\"",
|
|
762
|
+
">"
|
|
763
|
+
];
|
|
764
764
|
var _tmpl$10 = [
|
|
765
765
|
"<input",
|
|
766
766
|
" type=\"checkbox\"",
|
|
@@ -795,12 +795,39 @@ var _tmpl$15 = [
|
|
|
795
795
|
"> <!--$-->",
|
|
796
796
|
"<!--/--></label>"
|
|
797
797
|
];
|
|
798
|
-
var _tmpl$16 = [
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
var _tmpl$
|
|
798
|
+
var _tmpl$16 = [
|
|
799
|
+
"<input",
|
|
800
|
+
" type=\"date\" class=\"input\"",
|
|
801
|
+
">"
|
|
802
|
+
];
|
|
803
|
+
var _tmpl$17 = [
|
|
804
|
+
"<input",
|
|
805
|
+
" type=\"datetime-local\" class=\"input\"",
|
|
806
|
+
">"
|
|
807
|
+
];
|
|
808
|
+
var _tmpl$18 = [
|
|
809
|
+
"<input",
|
|
810
|
+
" type=\"time\" class=\"input\"",
|
|
811
|
+
">"
|
|
812
|
+
];
|
|
813
|
+
var _tmpl$19 = [
|
|
814
|
+
"<input",
|
|
815
|
+
" type=\"color\" class=\"input\"",
|
|
816
|
+
">"
|
|
817
|
+
];
|
|
818
|
+
var _tmpl$20 = [
|
|
819
|
+
"<div",
|
|
820
|
+
" class=\"field-renderer__map\"><input type=\"text\" class=\"input\" placeholder=\"Endereço\"",
|
|
821
|
+
"><input type=\"number\" class=\"input\" placeholder=\"Latitude (-90 a 90)\" step=\"any\" min=\"-90\" max=\"90\"",
|
|
822
|
+
"><input type=\"number\" class=\"input\" placeholder=\"Longitude (-180 a 180)\" step=\"any\" min=\"-180\" max=\"180\"",
|
|
823
|
+
"></div>"
|
|
824
|
+
];
|
|
825
|
+
var _tmpl$21 = [
|
|
826
|
+
"<div",
|
|
827
|
+
" class=\"field-renderer__link\"><input type=\"url\" class=\"input\" placeholder=\"https:// ou /caminho\"",
|
|
828
|
+
"><select class=\"input\"",
|
|
829
|
+
"><option value=\"_self\">Mesma janela</option><option value=\"_blank\">Nova janela</option></select></div>"
|
|
830
|
+
];
|
|
804
831
|
var _tmpl$22 = [
|
|
805
832
|
"<div",
|
|
806
833
|
" class=\"field-renderer__rows\"><!--$-->",
|
|
@@ -935,6 +962,9 @@ function FieldRenderer(props) {
|
|
|
935
962
|
onChange: setValue,
|
|
936
963
|
get values() {
|
|
937
964
|
return props.values;
|
|
965
|
+
},
|
|
966
|
+
get t() {
|
|
967
|
+
return props.t;
|
|
938
968
|
}
|
|
939
969
|
})), escape(createComponent(Show, {
|
|
940
970
|
get when() {
|
|
@@ -952,15 +982,15 @@ function FieldControl(props) {
|
|
|
952
982
|
switch (props.field.type) {
|
|
953
983
|
case "text": return ssr(_tmpl$5, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false) + ssrAttribute("placeholder", escape(config()["placeholder"], true), false) + ssrAttribute("maxlength", escape(config()["maxLength"] ?? config()["characterLimit"], true), false));
|
|
954
984
|
case "textarea": return ssr(_tmpl$6, ssrHydrationKey(), ssrAttribute("rows", escape(config()["rows"] ?? 4, true), false) + ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false) + ssrAttribute("placeholder", escape(config()["placeholder"], true), false) + ssrAttribute("maxlength", escape(config()["maxLength"] ?? config()["characterLimit"], true), false));
|
|
955
|
-
case "wysiwyg": return ssr(_tmpl$7, ssrHydrationKey());
|
|
985
|
+
case "wysiwyg": return ssr(_tmpl$7, ssrHydrationKey(), ssrAttribute("aria-label", escape(props.t("content.editor.toolbar"), true), false), ssrAttribute("aria-label", escape(props.t("content.editor.format"), true), false), escape(props.t("content.editor.formatParagraph")), escape(props.t("content.editor.formatH1")), escape(props.t("content.editor.formatH2")), escape(props.t("content.editor.formatH3")), escape(props.t("content.editor.formatH4")), escape(props.t("content.editor.formatBlockquote")), escape(props.t("content.editor.formatCode")), escape(props.t("content.editor.bold")), escape(props.t("content.editor.italic")), escape(props.t("content.editor.underline")), escape(props.t("content.editor.bulletList")), escape(props.t("content.editor.numberedList")), escape(props.t("content.editor.link")), ssrAttribute("data-placeholder", escape(config()["placeholder"], true), false), props.value ?? config()["defaultValue"] ?? "");
|
|
956
986
|
case "number":
|
|
957
987
|
case "range": return ssr(_tmpl$8, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false) + ssrAttribute("min", escape(config()["min"] ?? config()["minValue"], true), false) + ssrAttribute("max", escape(config()["max"] ?? config()["maxValue"], true), false) + ssrAttribute("step", escape(config()["step"], true), false));
|
|
958
|
-
case "email": return ssr(_tmpl$9, ssrHydrationKey());
|
|
959
|
-
case "url": return ssr(_tmpl$0, ssrHydrationKey());
|
|
960
|
-
case "password": return ssr(_tmpl$1, ssrHydrationKey());
|
|
988
|
+
case "email": return ssr(_tmpl$9, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
989
|
+
case "url": return ssr(_tmpl$0, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
990
|
+
case "password": return ssr(_tmpl$1, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
961
991
|
case "slug": return ssr(_tmpl$5, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false) + ssrAttribute("placeholder", escape(config()["placeholder"], true), false));
|
|
962
992
|
case "true_false": return ssr(_tmpl$10, ssrHydrationKey(), ssrAttribute("checked", Boolean(props.value), true));
|
|
963
|
-
case "select": return ssr(_tmpl$11, ssrHydrationKey(), ssrAttribute("multiple", config()["multiple"] === true, true), escape(createComponent(For, {
|
|
993
|
+
case "select": return ssr(_tmpl$11, ssrHydrationKey(), ssrAttribute("multiple", config()["multiple"] === true, true) + ssrAttribute("value", config()["multiple"] === true ? Array.isArray(props.value) ? escape(props.value, true) : escape([], true) : escape(props.value ?? config()["defaultValue"] ?? "", true), false), escape(createComponent(For, {
|
|
964
994
|
get each() {
|
|
965
995
|
return config()["choices"] ?? [];
|
|
966
996
|
},
|
|
@@ -981,10 +1011,10 @@ function FieldControl(props) {
|
|
|
981
1011
|
return ssr(_tmpl$15, ssrHydrationKey(), ssrAttribute("checked", checked(), true), escape(choice.label));
|
|
982
1012
|
}
|
|
983
1013
|
})));
|
|
984
|
-
case "date_picker": return ssr(_tmpl$16, ssrHydrationKey());
|
|
985
|
-
case "date_time_picker": return ssr(_tmpl$17, ssrHydrationKey());
|
|
986
|
-
case "time_picker": return ssr(_tmpl$18, ssrHydrationKey());
|
|
987
|
-
case "color_picker": return ssr(_tmpl$19, ssrHydrationKey());
|
|
1014
|
+
case "date_picker": return ssr(_tmpl$16, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
1015
|
+
case "date_time_picker": return ssr(_tmpl$17, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
1016
|
+
case "time_picker": return ssr(_tmpl$18, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
1017
|
+
case "color_picker": return ssr(_tmpl$19, ssrHydrationKey(), ssrAttribute("value", escape(props.value ?? config()["defaultValue"] ?? "", true), false));
|
|
988
1018
|
case "image":
|
|
989
1019
|
case "file": return createComponent(MediaPickerInput, {
|
|
990
1020
|
multiple: false,
|
|
@@ -1002,8 +1032,8 @@ function FieldControl(props) {
|
|
|
1002
1032
|
},
|
|
1003
1033
|
accept: "image/*"
|
|
1004
1034
|
});
|
|
1005
|
-
case "google_map": return ssr(_tmpl$20, ssrHydrationKey());
|
|
1006
|
-
case "link": return ssr(_tmpl$21, ssrHydrationKey());
|
|
1035
|
+
case "google_map": return ssr(_tmpl$20, ssrHydrationKey(), ssrAttribute("value", escape(props.value?.["address"] ?? "", true), false), ssrAttribute("value", escape(props.value?.["lat"] ?? "", true), false), ssrAttribute("value", escape(props.value?.["lng"] ?? "", true), false));
|
|
1036
|
+
case "link": return ssr(_tmpl$21, ssrHydrationKey(), ssrAttribute("value", escape(props.value?.["url"] ?? "", true), false), ssrAttribute("value", escape(props.value?.["target"] ?? "_self", true), false));
|
|
1007
1037
|
case "relationship":
|
|
1008
1038
|
case "post_object": return createComponent(RelationshipPicker, {
|
|
1009
1039
|
get postType() {
|
|
@@ -1048,6 +1078,9 @@ function FieldControl(props) {
|
|
|
1048
1078
|
get index() {
|
|
1049
1079
|
return index();
|
|
1050
1080
|
},
|
|
1081
|
+
get t() {
|
|
1082
|
+
return props.t;
|
|
1083
|
+
},
|
|
1051
1084
|
onUpdate: (updated) => {
|
|
1052
1085
|
const next = [...rows()];
|
|
1053
1086
|
next[index()] = updated;
|
|
@@ -1097,6 +1130,9 @@ function FieldControl(props) {
|
|
|
1097
1130
|
get values() {
|
|
1098
1131
|
return rowData();
|
|
1099
1132
|
},
|
|
1133
|
+
get t() {
|
|
1134
|
+
return props.t;
|
|
1135
|
+
},
|
|
1100
1136
|
onChange: (name, value) => {
|
|
1101
1137
|
const current = [...Array.isArray(props.value) ? props.value : []];
|
|
1102
1138
|
current[index()] = {
|
|
@@ -1126,6 +1162,9 @@ function FieldControl(props) {
|
|
|
1126
1162
|
get values() {
|
|
1127
1163
|
return props.value ?? {};
|
|
1128
1164
|
},
|
|
1165
|
+
get t() {
|
|
1166
|
+
return props.t;
|
|
1167
|
+
},
|
|
1129
1168
|
onChange: (name, val) => props.onChange({
|
|
1130
1169
|
...props.value ?? {},
|
|
1131
1170
|
[name]: val
|
|
@@ -1149,7 +1188,7 @@ function FieldControl(props) {
|
|
|
1149
1188
|
get adminComponentPath() {
|
|
1150
1189
|
return props.field.adminComponentPath;
|
|
1151
1190
|
},
|
|
1152
|
-
get
|
|
1191
|
+
get _t() {
|
|
1153
1192
|
return props.t;
|
|
1154
1193
|
}
|
|
1155
1194
|
});
|
|
@@ -1166,6 +1205,9 @@ function RepeaterRow(props) {
|
|
|
1166
1205
|
get values() {
|
|
1167
1206
|
return props.row;
|
|
1168
1207
|
},
|
|
1208
|
+
get t() {
|
|
1209
|
+
return props.t;
|
|
1210
|
+
},
|
|
1169
1211
|
onChange: (name, value) => props.onUpdate({
|
|
1170
1212
|
...props.row,
|
|
1171
1213
|
[name]: value
|
|
@@ -1186,4 +1228,4 @@ function RelationshipSelector(props) {
|
|
|
1186
1228
|
})));
|
|
1187
1229
|
}
|
|
1188
1230
|
//#endregion
|
|
1189
|
-
export {
|
|
1231
|
+
export { isFieldVisible as n, FieldRenderer as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Portal, createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
|
|
2
2
|
import { Show, createEffect, createSignal, onCleanup, onMount } from "solid-js";
|
|
3
|
-
//#region src/components/ui/FloatingPanel.
|
|
3
|
+
//#region src/components/ui/FloatingPanel.tsx
|
|
4
4
|
var _tmpl$ = [
|
|
5
5
|
"<div",
|
|
6
6
|
" style=\"",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useTranslation, r as apiClient } from "./
|
|
2
|
-
import { c as Button, d as Input, f as Modal, h as Show2, m as Select, p as Pagination, u as For2, v as createSignal, y as onMount } from "./
|
|
1
|
+
import { n as useTranslation, r as apiClient } from "./i18n_C-sgJSi1.mjs";
|
|
2
|
+
import { c as Button, d as Input, f as Modal, h as Show2, m as Select, p as Pagination, u as For2, v as createSignal, y as onMount } from "./DashboardLayout_DxMWAFCu.mjs";
|
|
3
3
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
4
|
-
//#region src/components/media/MediaLibrary.
|
|
4
|
+
//#region src/components/media/MediaLibrary.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
6
6
|
"<div",
|
|
7
7
|
" class=\"notice notice--error\">",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useTranslation } from "./
|
|
1
|
+
import { n as useTranslation } from "./i18n_C-sgJSi1.mjs";
|
|
2
2
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
3
3
|
import { Show, createEffect, onCleanup } from "solid-js";
|
|
4
|
-
//#region src/components/ui/Modal.
|
|
4
|
+
//#region src/components/ui/Modal.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
6
6
|
"<div",
|
|
7
7
|
" class=\"modal-overlay\" role=\"presentation\"><section class=\"modal\" role=\"dialog\" aria-modal=\"true\"",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as FloatingPanel } from "./
|
|
1
|
+
import { t as FloatingPanel } from "./FloatingPanel_DI2CdUZK.mjs";
|
|
2
2
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
3
3
|
import { For, Show, createMemo, createSignal } from "solid-js";
|
|
4
|
-
//#region src/components/apps/settings/TimezoneSelect.
|
|
4
|
+
//#region src/components/apps/settings/TimezoneSelect.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
6
6
|
"<input",
|
|
7
7
|
" type=\"search\" class=\"input tz-select__search\"",
|