@strapi/content-manager 0.0.0-experimental.e02b4637b3906c6d31048d00600d09a23a0edc3d → 0.0.0-experimental.e12978dcee698470990e9c5c63384faf2c307443
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/admin/chunks/CardDragPreview-DwuraT0K.mjs +80 -0
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.mjs.map +1 -0
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +82 -0
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js +298 -0
- package/dist/admin/chunks/ComponentConfigurationPage-Ci3dN40b.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs +276 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DFPdl9pm.mjs.map +1 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs +153 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.mjs.map +1 -0
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +176 -0
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js +180 -0
- package/dist/admin/chunks/EditConfigurationPage-7xe8u-Pp.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs +158 -0
- package/dist/admin/chunks/EditConfigurationPage-BFse-urJ.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs +315 -0
- package/dist/admin/chunks/EditViewPage-BNpRr7fZ.mjs.map +1 -0
- package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js +338 -0
- package/dist/admin/chunks/EditViewPage-CwYSs8Cq.js.map +1 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs +56 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.mjs.map +1 -0
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +58 -0
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +1 -0
- package/dist/admin/chunks/Form-D9Ee-exF.mjs +955 -0
- package/dist/admin/chunks/Form-D9Ee-exF.mjs.map +1 -0
- package/dist/admin/chunks/Form-DDbxreII.js +978 -0
- package/dist/admin/chunks/Form-DDbxreII.js.map +1 -0
- package/dist/admin/chunks/History-D5joC76n.js +1384 -0
- package/dist/admin/chunks/History-D5joC76n.js.map +1 -0
- package/dist/admin/chunks/History-FuD7Tp5I.mjs +1361 -0
- package/dist/admin/chunks/History-FuD7Tp5I.mjs.map +1 -0
- package/dist/admin/chunks/Input-BHucdqva.mjs +8251 -0
- package/dist/admin/chunks/Input-BHucdqva.mjs.map +1 -0
- package/dist/admin/chunks/Input-BJCenRYN.js +8285 -0
- package/dist/admin/chunks/Input-BJCenRYN.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs +795 -0
- package/dist/admin/chunks/ListConfigurationPage-3kSfz9xV.mjs.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js +818 -0
- package/dist/admin/chunks/ListConfigurationPage-CgJEcEkD.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js +1154 -0
- package/dist/admin/chunks/ListViewPage-CvQ1w8IW.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs +1132 -0
- package/dist/admin/chunks/ListViewPage-DPUYRHss.mjs.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs +58 -0
- package/dist/admin/chunks/NoContentTypePage-BRLLtjLb.mjs.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js +60 -0
- package/dist/admin/chunks/NoContentTypePage-C5Vut1Af.js.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs +37 -0
- package/dist/admin/chunks/NoPermissionsPage-B5HJbcjm.mjs.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js +39 -0
- package/dist/admin/chunks/NoPermissionsPage-BBXnpc7M.js.map +1 -0
- package/dist/admin/chunks/Preview-C3lnOgQx.mjs +679 -0
- package/dist/admin/chunks/Preview-C3lnOgQx.mjs.map +1 -0
- package/dist/admin/chunks/Preview-DB7ZGawL.js +701 -0
- package/dist/admin/chunks/Preview-DB7ZGawL.js.map +1 -0
- package/dist/admin/chunks/ar-DckYq_WK.mjs +222 -0
- package/dist/{_chunks/ar-CCEVvqGG.mjs.map → admin/chunks/ar-DckYq_WK.mjs.map} +1 -1
- package/dist/admin/chunks/ar-DeQBSsfl.js +227 -0
- package/dist/{_chunks/ru-BT3ybNny.js.map → admin/chunks/ar-DeQBSsfl.js.map} +1 -1
- package/dist/admin/chunks/ca-ClDTvatJ.js +202 -0
- package/dist/admin/chunks/ca-ClDTvatJ.js.map +1 -0
- package/dist/admin/chunks/ca-DviY7mRj.mjs +197 -0
- package/dist/admin/chunks/ca-DviY7mRj.mjs.map +1 -0
- package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
- package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
- package/dist/admin/chunks/cs-C7OSYFQ7.mjs +122 -0
- package/dist/{_chunks/cs-CM2aBUar.mjs.map → admin/chunks/cs-C7OSYFQ7.mjs.map} +1 -1
- package/dist/admin/chunks/de-5QRlDHyR.mjs +195 -0
- package/dist/{_chunks/eu-CdALomew.mjs.map → admin/chunks/de-5QRlDHyR.mjs.map} +1 -1
- package/dist/admin/chunks/de-CbImAUA5.js +200 -0
- package/dist/{_chunks/gu-BRmF601H.js.map → admin/chunks/de-CbImAUA5.js.map} +1 -1
- package/dist/admin/chunks/en-CH__IC8g.js +316 -0
- package/dist/{_chunks/en-Bm0D0IWz.js.map → admin/chunks/en-CH__IC8g.js.map} +1 -1
- package/dist/admin/chunks/en-DBP0Gaid.mjs +311 -0
- package/dist/{_chunks/en-DKV44jRb.mjs.map → admin/chunks/en-DBP0Gaid.mjs.map} +1 -1
- package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
- package/dist/{_chunks/es-EUonQTon.js.map → admin/chunks/es-C8vLuvZL.js.map} +1 -1
- package/dist/admin/chunks/es-DkoWSExG.mjs +192 -0
- package/dist/{_chunks/ja-CtsUxOvk.mjs.map → admin/chunks/es-DkoWSExG.mjs.map} +1 -1
- package/dist/admin/chunks/eu-BG1xX7HK.mjs +198 -0
- package/dist/admin/chunks/eu-BG1xX7HK.mjs.map +1 -0
- package/dist/admin/chunks/eu-BJW3AvXu.js +203 -0
- package/dist/admin/chunks/eu-BJW3AvXu.js.map +1 -0
- package/dist/admin/chunks/fr-CFdRaRVj.mjs +215 -0
- package/dist/admin/chunks/fr-CFdRaRVj.mjs.map +1 -0
- package/dist/admin/chunks/fr-gQSilC7w.js +220 -0
- package/dist/admin/chunks/fr-gQSilC7w.js.map +1 -0
- package/dist/admin/chunks/gu-D5MMMXRs.mjs +196 -0
- package/dist/admin/chunks/gu-D5MMMXRs.mjs.map +1 -0
- package/dist/admin/chunks/gu-DPU4wyx7.js +201 -0
- package/dist/{_chunks/eu-VDH-3ovk.js.map → admin/chunks/gu-DPU4wyx7.js.map} +1 -1
- package/dist/admin/chunks/hi-Dp4omeBb.js +201 -0
- package/dist/admin/chunks/hi-Dp4omeBb.js.map +1 -0
- package/dist/admin/chunks/hi-lp17SCjr.mjs +196 -0
- package/dist/admin/chunks/hi-lp17SCjr.mjs.map +1 -0
- package/dist/{_chunks/hooks-BAaaKPS_.js → admin/chunks/hooks-D-sOYd1s.js} +6 -3
- package/dist/admin/chunks/hooks-D-sOYd1s.js.map +1 -0
- package/dist/admin/chunks/hooks-DMvik5y_.mjs +7 -0
- package/dist/admin/chunks/hooks-DMvik5y_.mjs.map +1 -0
- package/dist/admin/chunks/hu-CLka1U2C.mjs +198 -0
- package/dist/admin/chunks/hu-CLka1U2C.mjs.map +1 -0
- package/dist/admin/chunks/hu-CtFJuhTd.js +203 -0
- package/dist/admin/chunks/hu-CtFJuhTd.js.map +1 -0
- package/dist/admin/chunks/id-D7V5S1rB.js +161 -0
- package/dist/{_chunks/it-DkBIs7vD.js.map → admin/chunks/id-D7V5S1rB.js.map} +1 -1
- package/dist/admin/chunks/id-USfY9m1g.mjs +156 -0
- package/dist/{_chunks/id-BtwA9WJT.mjs.map → admin/chunks/id-USfY9m1g.mjs.map} +1 -1
- package/dist/admin/chunks/index-DYrCidCq.mjs +5436 -0
- package/dist/admin/chunks/index-DYrCidCq.mjs.map +1 -0
- package/dist/admin/chunks/index-DoUQnFTk.js +5506 -0
- package/dist/admin/chunks/index-DoUQnFTk.js.map +1 -0
- package/dist/admin/chunks/it-BAHrwmYS.mjs +158 -0
- package/dist/{_chunks/it-BrVPqaf1.mjs.map → admin/chunks/it-BAHrwmYS.mjs.map} +1 -1
- package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
- package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
- package/dist/admin/chunks/ja-BWKmBJFT.mjs +192 -0
- package/dist/{_chunks/ko-HVQRlfUI.mjs.map → admin/chunks/ja-BWKmBJFT.mjs.map} +1 -1
- package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
- package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ja-jdQM-B79.js.map} +1 -1
- package/dist/admin/chunks/ko-CgADGBNt.mjs +191 -0
- package/dist/{_chunks/es-CeXiYflN.mjs.map → admin/chunks/ko-CgADGBNt.mjs.map} +1 -1
- package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
- package/dist/{_chunks/ja-CcFe8diO.js.map → admin/chunks/ko-k46sEyzt.js.map} +1 -1
- package/dist/admin/chunks/layout-CqndYVtU.js +692 -0
- package/dist/admin/chunks/layout-CqndYVtU.js.map +1 -0
- package/dist/admin/chunks/layout-D2NJmgCw.mjs +672 -0
- package/dist/admin/chunks/layout-D2NJmgCw.mjs.map +1 -0
- package/dist/admin/chunks/ml-CnhCfOn_.mjs +196 -0
- package/dist/admin/chunks/ml-CnhCfOn_.mjs.map +1 -0
- package/dist/admin/chunks/ml-DqxPwODx.js +201 -0
- package/dist/admin/chunks/ml-DqxPwODx.js.map +1 -0
- package/dist/admin/chunks/ms-Bh09NFff.mjs +140 -0
- package/dist/{_chunks/ms-m_WjyWx7.mjs.map → admin/chunks/ms-Bh09NFff.mjs.map} +1 -1
- package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
- package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/ms-CvSC0OdG.js.map} +1 -1
- package/dist/admin/chunks/nl-BEubhS8C.js +203 -0
- package/dist/admin/chunks/nl-BEubhS8C.js.map +1 -0
- package/dist/admin/chunks/nl-C8HYflTc.mjs +198 -0
- package/dist/admin/chunks/nl-C8HYflTc.mjs.map +1 -0
- package/dist/admin/chunks/objects-BJTP843m.js +343 -0
- package/dist/admin/chunks/objects-BJTP843m.js.map +1 -0
- package/dist/admin/chunks/objects-D2z-IJgu.mjs +317 -0
- package/dist/admin/chunks/objects-D2z-IJgu.mjs.map +1 -0
- package/dist/admin/chunks/pl-DWhGDzmM.js +200 -0
- package/dist/{_chunks/ca-Cmk45QO6.js.map → admin/chunks/pl-DWhGDzmM.js.map} +1 -1
- package/dist/admin/chunks/pl-MFCZJZuZ.mjs +195 -0
- package/dist/{_chunks/ca-5U32ON2v.mjs.map → admin/chunks/pl-MFCZJZuZ.mjs.map} +1 -1
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
- package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CPtAXD-4.js.map} +1 -1
- package/dist/admin/chunks/pt-BR-CcotyBGJ.mjs +197 -0
- package/dist/{_chunks/pt-BR-C71iDxnh.mjs.map → admin/chunks/pt-BR-CcotyBGJ.mjs.map} +1 -1
- package/dist/admin/chunks/pt-BoPxN80n.js +96 -0
- package/dist/admin/chunks/pt-BoPxN80n.js.map +1 -0
- package/dist/admin/chunks/pt-HbmgeiYO.mjs +93 -0
- package/dist/admin/chunks/pt-HbmgeiYO.mjs.map +1 -0
- package/dist/admin/chunks/ru-C0op0ALG.js +232 -0
- package/dist/admin/chunks/ru-C0op0ALG.js.map +1 -0
- package/dist/admin/chunks/ru-CB4BUyQp.mjs +230 -0
- package/dist/{_chunks/ru-BE6A4Exp.mjs.map → admin/chunks/ru-CB4BUyQp.mjs.map} +1 -1
- package/dist/admin/chunks/sa-B_FuPyMw.js +201 -0
- package/dist/admin/chunks/sa-B_FuPyMw.js.map +1 -0
- package/dist/admin/chunks/sa-n_aPA-pU.mjs +196 -0
- package/dist/admin/chunks/sa-n_aPA-pU.mjs.map +1 -0
- package/dist/admin/chunks/sk-D_iXML2C.js +203 -0
- package/dist/admin/chunks/sk-D_iXML2C.js.map +1 -0
- package/dist/admin/chunks/sk-tn_BDjE2.mjs +198 -0
- package/dist/admin/chunks/sk-tn_BDjE2.mjs.map +1 -0
- package/dist/admin/chunks/sv-BstBC1Yp.js +203 -0
- package/dist/admin/chunks/sv-BstBC1Yp.js.map +1 -0
- package/dist/admin/chunks/sv-cq4ZrQRd.mjs +198 -0
- package/dist/admin/chunks/sv-cq4ZrQRd.mjs.map +1 -0
- package/dist/admin/chunks/th-lXoOCqPC.js +149 -0
- package/dist/{_chunks/th-D9_GfAjc.js.map → admin/chunks/th-lXoOCqPC.js.map} +1 -1
- package/dist/admin/chunks/th-mUH7hEtc.mjs +144 -0
- package/dist/{_chunks/uk-CR-zDhAY.mjs.map → admin/chunks/th-mUH7hEtc.mjs.map} +1 -1
- package/dist/admin/chunks/tr-CkS6sLIE.js +200 -0
- package/dist/admin/chunks/tr-CkS6sLIE.js.map +1 -0
- package/dist/admin/chunks/tr-Yt38daxh.mjs +195 -0
- package/dist/{_chunks/de-C72KDNOl.mjs.map → admin/chunks/tr-Yt38daxh.mjs.map} +1 -1
- package/dist/admin/chunks/uk-BtM6WnaE.mjs +313 -0
- package/dist/admin/chunks/uk-BtM6WnaE.mjs.map +1 -0
- package/dist/admin/chunks/uk-DB6OgySY.js +318 -0
- package/dist/admin/chunks/uk-DB6OgySY.js.map +1 -0
- package/dist/admin/chunks/usePrev-Cm_0-qRC.js +194 -0
- package/dist/admin/chunks/usePrev-Cm_0-qRC.js.map +1 -0
- package/dist/admin/chunks/usePrev-DinC2aha.mjs +187 -0
- package/dist/admin/chunks/usePrev-DinC2aha.mjs.map +1 -0
- package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
- package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-BGr1X_HZ.js.map} +1 -1
- package/dist/admin/chunks/vi-CvBGlTjr.mjs +108 -0
- package/dist/{_chunks/vi-DUXIk_fw.mjs.map → admin/chunks/vi-CvBGlTjr.mjs.map} +1 -1
- package/dist/admin/chunks/zh-BmF-sHaT.mjs +205 -0
- package/dist/admin/chunks/zh-BmF-sHaT.mjs.map +1 -0
- package/dist/admin/chunks/zh-DwFu_Kfj.js +210 -0
- package/dist/admin/chunks/zh-DwFu_Kfj.js.map +1 -0
- package/dist/admin/chunks/zh-Hans-CI0HKio3.mjs +934 -0
- package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-CI0HKio3.mjs.map} +1 -1
- package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
- package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
- package/dist/admin/index.js +25 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +17 -12
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/components/InjectionZone.d.ts +7 -1
- package/dist/admin/src/content-manager.d.ts +7 -2
- package/dist/admin/src/exports.d.ts +1 -0
- package/dist/admin/src/features/DocumentContext.d.ts +48 -0
- package/dist/admin/src/features/DocumentRBAC.d.ts +3 -2
- package/dist/admin/src/history/services/historyVersion.d.ts +2 -2
- package/dist/admin/src/hooks/useDocument.d.ts +23 -4
- package/dist/admin/src/hooks/useDocumentActions.d.ts +1 -0
- package/dist/admin/src/index.d.ts +1 -0
- package/dist/admin/src/pages/EditView/EditViewPage.d.ts +9 -1
- package/dist/admin/src/pages/EditView/components/DocumentActions.d.ts +3 -2
- package/dist/admin/src/pages/EditView/components/DocumentStatus.d.ts +3 -3
- package/dist/admin/src/pages/EditView/components/EditorToolbarObserver.d.ts +11 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +55 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/utils/constants.d.ts +1 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/DynamicComponent.d.ts +4 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/DynamicZone/Field.d.ts +4 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/Relations/RelationModal.d.ts +7 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/{Relations.d.ts → Relations/Relations.d.ts} +8 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/Wysiwyg/WysiwygNav.d.ts +1 -2
- package/dist/admin/src/pages/EditView/components/FormLayout.d.ts +32 -1
- package/dist/admin/src/pages/EditView/components/InputRenderer.d.ts +3 -3
- package/dist/admin/src/pages/EditView/utils/data.d.ts +1 -0
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -0
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +3 -0
- package/dist/admin/src/preview/components/PreviewSidePanel.d.ts +3 -0
- package/dist/admin/src/preview/index.d.ts +3 -0
- package/dist/admin/src/preview/pages/Preview.d.ts +15 -0
- package/dist/admin/src/preview/routes.d.ts +3 -0
- package/dist/admin/src/preview/services/preview.d.ts +3 -0
- package/dist/admin/src/router.d.ts +1 -1
- package/dist/admin/src/services/api.d.ts +1 -1
- package/dist/admin/src/services/components.d.ts +2 -2
- package/dist/admin/src/services/contentTypes.d.ts +3 -3
- package/dist/admin/src/services/documents.d.ts +16 -19
- package/dist/admin/src/services/init.d.ts +1 -1
- package/dist/admin/src/services/relations.d.ts +2 -2
- package/dist/admin/src/services/uid.d.ts +3 -3
- package/dist/server/index.js +5472 -4157
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +5457 -4139
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/index.d.ts.map +1 -1
- package/dist/server/src/controllers/relations.d.ts.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +17 -2
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/history/controllers/history-version.d.ts +1 -1
- package/dist/server/src/history/controllers/history-version.d.ts.map +1 -1
- package/dist/server/src/history/services/history.d.ts +3 -3
- package/dist/server/src/history/services/history.d.ts.map +1 -1
- package/dist/server/src/history/services/lifecycles.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.d.ts +6 -11
- package/dist/server/src/history/services/utils.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +7 -6
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/preview/controllers/index.d.ts +2 -0
- package/dist/server/src/preview/controllers/index.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/preview.d.ts +13 -0
- package/dist/server/src/preview/controllers/preview.d.ts.map +1 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts +6 -0
- package/dist/server/src/preview/controllers/validation/preview.d.ts.map +1 -0
- package/dist/server/src/preview/index.d.ts +4 -0
- package/dist/server/src/preview/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/index.d.ts +8 -0
- package/dist/server/src/preview/routes/index.d.ts.map +1 -0
- package/dist/server/src/preview/routes/preview.d.ts +4 -0
- package/dist/server/src/preview/routes/preview.d.ts.map +1 -0
- package/dist/server/src/preview/services/index.d.ts +16 -0
- package/dist/server/src/preview/services/index.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview-config.d.ts +32 -0
- package/dist/server/src/preview/services/preview-config.d.ts.map +1 -0
- package/dist/server/src/preview/services/preview.d.ts +12 -0
- package/dist/server/src/preview/services/preview.d.ts.map +1 -0
- package/dist/server/src/preview/utils.d.ts +19 -0
- package/dist/server/src/preview/utils.d.ts.map +1 -0
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/dist/server/src/services/document-manager.d.ts.map +1 -1
- package/dist/server/src/services/document-metadata.d.ts +12 -10
- package/dist/server/src/services/document-metadata.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +7 -6
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/count.d.ts +1 -1
- package/dist/server/src/services/utils/count.d.ts.map +1 -1
- package/dist/server/src/services/utils/populate.d.ts +3 -3
- package/dist/server/src/services/utils/populate.d.ts.map +1 -1
- package/dist/server/src/utils/index.d.ts +2 -0
- package/dist/server/src/utils/index.d.ts.map +1 -1
- package/dist/shared/contracts/collection-types.d.ts +0 -1
- package/dist/shared/contracts/components.d.ts +0 -1
- package/dist/shared/contracts/content-types.d.ts +0 -1
- package/dist/shared/contracts/history-versions.d.ts +0 -1
- package/dist/shared/contracts/index.d.ts +1 -1
- package/dist/shared/contracts/index.d.ts.map +1 -1
- package/dist/shared/contracts/init.d.ts +0 -1
- package/dist/shared/contracts/preview.d.ts +26 -0
- package/dist/shared/contracts/preview.d.ts.map +1 -0
- package/dist/shared/contracts/relations.d.ts +1 -2
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/dist/shared/contracts/review-workflows.d.ts +0 -1
- package/dist/shared/contracts/single-types.d.ts +0 -1
- package/dist/shared/contracts/uid.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/index.js +37 -22
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +36 -23
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +21 -17
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js +0 -69
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +0 -1
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +0 -70
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs +0 -236
- package/dist/_chunks/ComponentConfigurationPage-DfFSZQxe.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js +0 -255
- package/dist/_chunks/ComponentConfigurationPage-FqfsxQ1j.js.map +0 -1
- package/dist/_chunks/ComponentIcon-BXdiCGQp.js +0 -176
- package/dist/_chunks/ComponentIcon-BXdiCGQp.js.map +0 -1
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +0 -157
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +0 -1
- package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js +0 -151
- package/dist/_chunks/EditConfigurationPage-Cn0e8t3I.js.map +0 -1
- package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs +0 -132
- package/dist/_chunks/EditConfigurationPage-DdPNAbl3.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs +0 -224
- package/dist/_chunks/EditViewPage-B82x_x1b.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-DlxEHhUt.js +0 -243
- package/dist/_chunks/EditViewPage-DlxEHhUt.js.map +0 -1
- package/dist/_chunks/Field-COL25JiC.js +0 -5595
- package/dist/_chunks/Field-COL25JiC.js.map +0 -1
- package/dist/_chunks/Field-DufHXW17.mjs +0 -5563
- package/dist/_chunks/Field-DufHXW17.mjs.map +0 -1
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +0 -50
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +0 -1
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +0 -49
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +0 -1
- package/dist/_chunks/Form-BssUwrTO.js +0 -779
- package/dist/_chunks/Form-BssUwrTO.js.map +0 -1
- package/dist/_chunks/Form-u_kAOhwB.mjs +0 -758
- package/dist/_chunks/Form-u_kAOhwB.mjs.map +0 -1
- package/dist/_chunks/History-C9t9UqpO.js +0 -1066
- package/dist/_chunks/History-C9t9UqpO.js.map +0 -1
- package/dist/_chunks/History-DRwA3oMM.mjs +0 -1045
- package/dist/_chunks/History-DRwA3oMM.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BXYPohh-.js +0 -652
- package/dist/_chunks/ListConfigurationPage-BXYPohh-.js.map +0 -1
- package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs +0 -632
- package/dist/_chunks/ListConfigurationPage-BxfQJzPk.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-CELx2ysp.mjs +0 -828
- package/dist/_chunks/ListViewPage-CELx2ysp.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-D2VD8Szg.js +0 -852
- package/dist/_chunks/ListViewPage-D2VD8Szg.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-BV9IjJSM.js +0 -51
- package/dist/_chunks/NoContentTypePage-BV9IjJSM.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs +0 -51
- package/dist/_chunks/NoContentTypePage-DtJ9jcfk.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs +0 -23
- package/dist/_chunks/NoPermissionsPage-DWleVYK7.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js +0 -23
- package/dist/_chunks/NoPermissionsPage-Dp8NpF9I.js.map +0 -1
- package/dist/_chunks/Relations-BTcf5xaw.mjs +0 -703
- package/dist/_chunks/Relations-BTcf5xaw.mjs.map +0 -1
- package/dist/_chunks/Relations-DR7EUgyC.js +0 -723
- package/dist/_chunks/Relations-DR7EUgyC.js.map +0 -1
- package/dist/_chunks/ar-BUUWXIYu.js +0 -226
- package/dist/_chunks/ar-BUUWXIYu.js.map +0 -1
- package/dist/_chunks/ar-CCEVvqGG.mjs +0 -226
- package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
- package/dist/_chunks/ca-Cmk45QO6.js +0 -201
- package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
- package/dist/_chunks/cs-CkJy6B2v.js +0 -125
- package/dist/_chunks/de-C72KDNOl.mjs +0 -199
- package/dist/_chunks/de-CCEmbAah.js +0 -199
- package/dist/_chunks/en-Bm0D0IWz.js +0 -293
- package/dist/_chunks/en-DKV44jRb.mjs +0 -293
- package/dist/_chunks/es-CeXiYflN.mjs +0 -196
- package/dist/_chunks/es-EUonQTon.js +0 -196
- package/dist/_chunks/eu-CdALomew.mjs +0 -202
- package/dist/_chunks/eu-VDH-3ovk.js +0 -202
- package/dist/_chunks/fr-B7kGGg3E.js +0 -206
- package/dist/_chunks/fr-B7kGGg3E.js.map +0 -1
- package/dist/_chunks/fr-CD9VFbPM.mjs +0 -206
- package/dist/_chunks/fr-CD9VFbPM.mjs.map +0 -1
- package/dist/_chunks/gu-BRmF601H.js +0 -200
- package/dist/_chunks/gu-CNpaMDpH.mjs +0 -200
- package/dist/_chunks/gu-CNpaMDpH.mjs.map +0 -1
- package/dist/_chunks/hi-CCJBptSq.js +0 -200
- package/dist/_chunks/hi-CCJBptSq.js.map +0 -1
- package/dist/_chunks/hi-Dwvd04m3.mjs +0 -200
- package/dist/_chunks/hi-Dwvd04m3.mjs.map +0 -1
- package/dist/_chunks/hooks-BAaaKPS_.js.map +0 -1
- package/dist/_chunks/hooks-E5u1mcgM.mjs +0 -8
- package/dist/_chunks/hooks-E5u1mcgM.mjs.map +0 -1
- package/dist/_chunks/hu-CeYvaaO0.mjs +0 -202
- package/dist/_chunks/hu-CeYvaaO0.mjs.map +0 -1
- package/dist/_chunks/hu-sNV_yLYy.js +0 -202
- package/dist/_chunks/hu-sNV_yLYy.js.map +0 -1
- package/dist/_chunks/id-B5Ser98A.js +0 -160
- package/dist/_chunks/id-B5Ser98A.js.map +0 -1
- package/dist/_chunks/id-BtwA9WJT.mjs +0 -160
- package/dist/_chunks/index-BdMf2lfT.js +0 -4109
- package/dist/_chunks/index-BdMf2lfT.js.map +0 -1
- package/dist/_chunks/index-wnqzm4Q8.mjs +0 -4090
- package/dist/_chunks/index-wnqzm4Q8.mjs.map +0 -1
- package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
- package/dist/_chunks/it-DkBIs7vD.js +0 -162
- package/dist/_chunks/ja-CcFe8diO.js +0 -196
- package/dist/_chunks/ja-CtsUxOvk.mjs +0 -196
- package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
- package/dist/_chunks/ko-woFZPmLk.js +0 -195
- package/dist/_chunks/layout-2CfjL0T9.mjs +0 -471
- package/dist/_chunks/layout-2CfjL0T9.mjs.map +0 -1
- package/dist/_chunks/layout-B2MyZU-_.js +0 -489
- package/dist/_chunks/layout-B2MyZU-_.js.map +0 -1
- package/dist/_chunks/ml-BihZwQit.mjs +0 -200
- package/dist/_chunks/ml-BihZwQit.mjs.map +0 -1
- package/dist/_chunks/ml-C2W8N8k1.js +0 -200
- package/dist/_chunks/ml-C2W8N8k1.js.map +0 -1
- package/dist/_chunks/ms-BuFotyP_.js +0 -144
- package/dist/_chunks/ms-m_WjyWx7.mjs +0 -144
- package/dist/_chunks/nl-D4R9gHx5.mjs +0 -202
- package/dist/_chunks/nl-D4R9gHx5.mjs.map +0 -1
- package/dist/_chunks/nl-bbEOHChV.js +0 -202
- package/dist/_chunks/nl-bbEOHChV.js.map +0 -1
- package/dist/_chunks/objects-gigeqt7s.js +0 -49
- package/dist/_chunks/objects-gigeqt7s.js.map +0 -1
- package/dist/_chunks/objects-mKMAmfec.mjs +0 -47
- package/dist/_chunks/objects-mKMAmfec.mjs.map +0 -1
- package/dist/_chunks/pl-sbx9mSt_.mjs +0 -199
- package/dist/_chunks/pl-sbx9mSt_.mjs.map +0 -1
- package/dist/_chunks/pl-uzwG-hk7.js +0 -199
- package/dist/_chunks/pl-uzwG-hk7.js.map +0 -1
- package/dist/_chunks/pt-BR-BiOz37D9.js +0 -201
- package/dist/_chunks/pt-BR-C71iDxnh.mjs +0 -201
- package/dist/_chunks/pt-BsaFvS8-.mjs +0 -95
- package/dist/_chunks/pt-BsaFvS8-.mjs.map +0 -1
- package/dist/_chunks/pt-CeXQuq50.js +0 -95
- package/dist/_chunks/pt-CeXQuq50.js.map +0 -1
- package/dist/_chunks/relations-BH7JJGGe.js +0 -134
- package/dist/_chunks/relations-BH7JJGGe.js.map +0 -1
- package/dist/_chunks/relations-C0w0GcXi.mjs +0 -135
- package/dist/_chunks/relations-C0w0GcXi.mjs.map +0 -1
- package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
- package/dist/_chunks/ru-BT3ybNny.js +0 -231
- package/dist/_chunks/sa-CcvkYInH.js +0 -200
- package/dist/_chunks/sa-CcvkYInH.js.map +0 -1
- package/dist/_chunks/sa-Dag0k-Z8.mjs +0 -200
- package/dist/_chunks/sa-Dag0k-Z8.mjs.map +0 -1
- package/dist/_chunks/sk-BFg-R8qJ.mjs +0 -202
- package/dist/_chunks/sk-BFg-R8qJ.mjs.map +0 -1
- package/dist/_chunks/sk-CvY09Xjv.js +0 -202
- package/dist/_chunks/sk-CvY09Xjv.js.map +0 -1
- package/dist/_chunks/sv-CUnfWGsh.mjs +0 -202
- package/dist/_chunks/sv-CUnfWGsh.mjs.map +0 -1
- package/dist/_chunks/sv-MYDuzgvT.js +0 -202
- package/dist/_chunks/sv-MYDuzgvT.js.map +0 -1
- package/dist/_chunks/th-BqbI8lIT.mjs +0 -148
- package/dist/_chunks/th-BqbI8lIT.mjs.map +0 -1
- package/dist/_chunks/th-D9_GfAjc.js +0 -148
- package/dist/_chunks/tr-CgeK3wJM.mjs +0 -199
- package/dist/_chunks/tr-CgeK3wJM.mjs.map +0 -1
- package/dist/_chunks/tr-D9UH-O_R.js +0 -199
- package/dist/_chunks/tr-D9UH-O_R.js.map +0 -1
- package/dist/_chunks/uk-C8EiqJY7.js +0 -144
- package/dist/_chunks/uk-C8EiqJY7.js.map +0 -1
- package/dist/_chunks/uk-CR-zDhAY.mjs +0 -144
- package/dist/_chunks/useDebounce-CtcjDB3L.js +0 -28
- package/dist/_chunks/useDebounce-CtcjDB3L.js.map +0 -1
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs +0 -29
- package/dist/_chunks/useDebounce-DmuSJIF3.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs +0 -231
- package/dist/_chunks/useDragAndDrop-DdHgKsqq.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js +0 -249
- package/dist/_chunks/useDragAndDrop-J0TUUbR6.js.map +0 -1
- package/dist/_chunks/vi-CJlYDheJ.js +0 -111
- package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
- package/dist/_chunks/zh-BWZspA60.mjs +0 -209
- package/dist/_chunks/zh-BWZspA60.mjs.map +0 -1
- package/dist/_chunks/zh-CQQfszqR.js +0 -209
- package/dist/_chunks/zh-CQQfszqR.js.map +0 -1
- package/dist/_chunks/zh-Hans-9kOncHGw.js +0 -952
- package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +0 -952
@@ -0,0 +1,187 @@
|
|
1
|
+
import { useState, useEffect, useRef } from 'react';
|
2
|
+
import { generateNKeysBetween } from 'fractional-indexing';
|
3
|
+
import { l as contentManagerApi } from './index-DYrCidCq.mjs';
|
4
|
+
|
5
|
+
const prefixFileUrlWithBackendUrl = (fileURL)=>{
|
6
|
+
return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;
|
7
|
+
};
|
8
|
+
|
9
|
+
function useDebounce(value, delay) {
|
10
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
11
|
+
useEffect(()=>{
|
12
|
+
const handler = setTimeout(()=>{
|
13
|
+
setDebouncedValue(value);
|
14
|
+
}, delay);
|
15
|
+
return ()=>{
|
16
|
+
clearTimeout(handler);
|
17
|
+
};
|
18
|
+
}, [
|
19
|
+
value,
|
20
|
+
delay
|
21
|
+
]);
|
22
|
+
return debouncedValue;
|
23
|
+
}
|
24
|
+
|
25
|
+
const relationsApi = contentManagerApi.injectEndpoints({
|
26
|
+
endpoints: (build)=>({
|
27
|
+
getRelations: build.query({
|
28
|
+
query: ({ model, id, targetField, params })=>{
|
29
|
+
return {
|
30
|
+
url: `/content-manager/relations/${model}/${id}/${targetField}`,
|
31
|
+
method: 'GET',
|
32
|
+
config: {
|
33
|
+
params
|
34
|
+
}
|
35
|
+
};
|
36
|
+
},
|
37
|
+
serializeQueryArgs: (args)=>{
|
38
|
+
const { endpointName, queryArgs } = args;
|
39
|
+
return {
|
40
|
+
endpointName,
|
41
|
+
model: queryArgs.model,
|
42
|
+
id: queryArgs.id,
|
43
|
+
targetField: queryArgs.targetField,
|
44
|
+
locale: queryArgs.params?.locale,
|
45
|
+
status: queryArgs.params?.status
|
46
|
+
};
|
47
|
+
},
|
48
|
+
merge: (currentCache, newItems)=>{
|
49
|
+
if (currentCache.pagination && newItems.pagination) {
|
50
|
+
if (currentCache.pagination.page < newItems.pagination.page) {
|
51
|
+
/**
|
52
|
+
* Relations will always have unique IDs, so we can therefore assume
|
53
|
+
* that we only need to push the new items to the cache.
|
54
|
+
*
|
55
|
+
* Push new items at the beginning as latest items are shown first
|
56
|
+
*/ currentCache.results = [
|
57
|
+
...prepareTempKeys(newItems.results, currentCache.results),
|
58
|
+
...currentCache.results
|
59
|
+
];
|
60
|
+
currentCache.pagination = newItems.pagination;
|
61
|
+
} else if (newItems.pagination.page === 1) {
|
62
|
+
/**
|
63
|
+
* We're resetting the relations
|
64
|
+
*/ currentCache.results = prepareTempKeys(newItems.results);
|
65
|
+
currentCache.pagination = newItems.pagination;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
},
|
69
|
+
forceRefetch ({ currentArg, previousArg }) {
|
70
|
+
if (!currentArg?.params && !previousArg?.params) {
|
71
|
+
return false;
|
72
|
+
}
|
73
|
+
return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
|
74
|
+
},
|
75
|
+
transformResponse: (response)=>{
|
76
|
+
if ('results' in response && response.results) {
|
77
|
+
return {
|
78
|
+
...response,
|
79
|
+
results: prepareTempKeys(response.results.toReversed())
|
80
|
+
};
|
81
|
+
} else {
|
82
|
+
return response;
|
83
|
+
}
|
84
|
+
},
|
85
|
+
providesTags: [
|
86
|
+
'Relations'
|
87
|
+
]
|
88
|
+
}),
|
89
|
+
searchRelations: build.query({
|
90
|
+
query: ({ model, targetField, params })=>{
|
91
|
+
return {
|
92
|
+
url: `/content-manager/relations/${model}/${targetField}`,
|
93
|
+
method: 'GET',
|
94
|
+
config: {
|
95
|
+
params
|
96
|
+
}
|
97
|
+
};
|
98
|
+
},
|
99
|
+
serializeQueryArgs: (args)=>{
|
100
|
+
const { endpointName, queryArgs } = args;
|
101
|
+
return {
|
102
|
+
endpointName,
|
103
|
+
model: queryArgs.model,
|
104
|
+
targetField: queryArgs.targetField,
|
105
|
+
_q: queryArgs.params?._q,
|
106
|
+
idsToOmit: queryArgs.params?.idsToOmit,
|
107
|
+
idsToInclude: queryArgs.params?.idsToInclude
|
108
|
+
};
|
109
|
+
},
|
110
|
+
merge: (currentCache, newItems)=>{
|
111
|
+
if (currentCache.pagination && newItems.pagination) {
|
112
|
+
if (currentCache.pagination.page < newItems.pagination.page) {
|
113
|
+
/**
|
114
|
+
* Relations will always have unique IDs, so we can therefore assume
|
115
|
+
* that we only need to push the new items to the cache.
|
116
|
+
*/ const existingIds = currentCache.results.map((item)=>item.documentId);
|
117
|
+
const uniqueNewItems = newItems.results.filter((item)=>!existingIds.includes(item.documentId));
|
118
|
+
currentCache.results.push(...uniqueNewItems);
|
119
|
+
currentCache.pagination = newItems.pagination;
|
120
|
+
} else if (newItems.pagination.page === 1) {
|
121
|
+
/**
|
122
|
+
* We're resetting the relations
|
123
|
+
*/ currentCache.results = newItems.results;
|
124
|
+
currentCache.pagination = newItems.pagination;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
},
|
128
|
+
forceRefetch ({ currentArg, previousArg }) {
|
129
|
+
if (!currentArg?.params && !previousArg?.params) {
|
130
|
+
return false;
|
131
|
+
}
|
132
|
+
return currentArg?.params?.page !== previousArg?.params?.page || currentArg?.params?.pageSize !== previousArg?.params?.pageSize;
|
133
|
+
},
|
134
|
+
transformResponse: (response)=>{
|
135
|
+
if (response.results) {
|
136
|
+
return {
|
137
|
+
...response,
|
138
|
+
results: response.results
|
139
|
+
};
|
140
|
+
} else {
|
141
|
+
return response;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
})
|
145
|
+
})
|
146
|
+
});
|
147
|
+
/**
|
148
|
+
* @internal
|
149
|
+
* @description Adds a `__temp_key__` to each relation item. This gives us
|
150
|
+
* a stable identifier regardless of it's ids etc. that we can then use for drag and drop.
|
151
|
+
*/ const prepareTempKeys = (relations, existingRelations = [])=>{
|
152
|
+
const [firstItem] = existingRelations.slice(0);
|
153
|
+
const keys = generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);
|
154
|
+
return relations.map((datum, index)=>({
|
155
|
+
...datum,
|
156
|
+
__temp_key__: keys[index]
|
157
|
+
}));
|
158
|
+
};
|
159
|
+
const { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;
|
160
|
+
|
161
|
+
/**
|
162
|
+
* @internal
|
163
|
+
* @description Get the label of a relation, the contract has [key: string]: unknown,
|
164
|
+
* so we need to check if the mainFieldKey is defined and if the relation has a value
|
165
|
+
* under that property. If it does, we then verify it's type of string and return it.
|
166
|
+
*
|
167
|
+
* We fallback to the documentId.
|
168
|
+
*/ const getRelationLabel = (relation, mainField)=>{
|
169
|
+
const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;
|
170
|
+
if (typeof label === 'string') {
|
171
|
+
return label;
|
172
|
+
}
|
173
|
+
return relation.documentId;
|
174
|
+
};
|
175
|
+
|
176
|
+
const usePrev = (value)=>{
|
177
|
+
const ref = useRef();
|
178
|
+
useEffect(()=>{
|
179
|
+
ref.current = value;
|
180
|
+
}, [
|
181
|
+
value
|
182
|
+
]);
|
183
|
+
return ref.current;
|
184
|
+
};
|
185
|
+
|
186
|
+
export { useDebounce as a, useLazySearchRelationsQuery as b, usePrev as c, getRelationLabel as g, prefixFileUrlWithBackendUrl as p, useGetRelationsQuery as u };
|
187
|
+
//# sourceMappingURL=usePrev-DinC2aha.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"usePrev-DinC2aha.mjs","sources":["../../../admin/src/utils/urls.ts","../../../admin/src/hooks/useDebounce.ts","../../../admin/src/services/relations.ts","../../../admin/src/utils/relations.ts","../../../admin/src/hooks/usePrev.ts"],"sourcesContent":["const prefixFileUrlWithBackendUrl = (fileURL?: string): string | undefined => {\n return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;\n};\n\nexport { prefixFileUrlWithBackendUrl };\n","import { useEffect, useState } from 'react';\n\nexport function useDebounce<TValue>(value: TValue, delay: number): TValue {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value, delay]);\n\n return debouncedValue;\n}\n","import { generateNKeysBetween } from 'fractional-indexing';\n\nimport {\n RelationResult as RelResult,\n FindAvailable,\n FindExisting,\n} from '../../../shared/contracts/relations';\n\nimport { contentManagerApi } from './api';\n\nimport type { Modules } from '@strapi/types';\nimport type { errors } from '@strapi/utils';\n\ninterface RelationResult extends RelResult {\n __temp_key__: string;\n}\n\ntype GetRelationsResponse =\n | {\n results: Array<RelationResult>;\n pagination: {\n page: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['page']>;\n pageSize: NonNullable<Modules.EntityService.Params.Pagination.PageNotation['pageSize']>;\n pageCount: number;\n total: number;\n } | null;\n error?: never;\n }\n | {\n results?: never;\n pagination?: never;\n error: errors.ApplicationError | errors.YupValidationError;\n };\n\nconst relationsApi = contentManagerApi.injectEndpoints({\n endpoints: (build) => ({\n getRelations: build.query<\n GetRelationsResponse,\n FindExisting.Params & {\n params?: FindExisting.Request['query'];\n }\n >({\n query: ({ model, id, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${id}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n id: queryArgs.id,\n targetField: queryArgs.targetField,\n locale: queryArgs.params?.locale,\n status: queryArgs.params?.status,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n *\n * Push new items at the beginning as latest items are shown first\n */\n currentCache.results = [\n ...prepareTempKeys(newItems.results, currentCache.results),\n ...currentCache.results,\n ];\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = prepareTempKeys(newItems.results);\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindExisting.Response) => {\n if ('results' in response && response.results) {\n return {\n ...response,\n results: prepareTempKeys(response.results.toReversed()),\n };\n } else {\n return response;\n }\n },\n providesTags: ['Relations'],\n }),\n searchRelations: build.query<\n FindAvailable.Response,\n FindAvailable.Params & {\n params?: FindAvailable.Request['query'];\n }\n >({\n query: ({ model, targetField, params }) => {\n return {\n url: `/content-manager/relations/${model}/${targetField}`,\n method: 'GET',\n config: {\n params,\n },\n };\n },\n serializeQueryArgs: (args) => {\n const { endpointName, queryArgs } = args;\n return {\n endpointName,\n model: queryArgs.model,\n targetField: queryArgs.targetField,\n _q: queryArgs.params?._q,\n idsToOmit: queryArgs.params?.idsToOmit,\n idsToInclude: queryArgs.params?.idsToInclude,\n };\n },\n merge: (currentCache, newItems) => {\n if (currentCache.pagination && newItems.pagination) {\n if (currentCache.pagination.page < newItems.pagination.page) {\n /**\n * Relations will always have unique IDs, so we can therefore assume\n * that we only need to push the new items to the cache.\n */\n const existingIds = currentCache.results.map((item) => item.documentId);\n const uniqueNewItems = newItems.results.filter(\n (item) => !existingIds.includes(item.documentId)\n );\n currentCache.results.push(...uniqueNewItems);\n currentCache.pagination = newItems.pagination;\n } else if (newItems.pagination.page === 1) {\n /**\n * We're resetting the relations\n */\n currentCache.results = newItems.results;\n currentCache.pagination = newItems.pagination;\n }\n }\n },\n forceRefetch({ currentArg, previousArg }) {\n if (!currentArg?.params && !previousArg?.params) {\n return false;\n }\n\n return (\n currentArg?.params?.page !== previousArg?.params?.page ||\n currentArg?.params?.pageSize !== previousArg?.params?.pageSize\n );\n },\n transformResponse: (response: FindAvailable.Response) => {\n if (response.results) {\n return {\n ...response,\n results: response.results,\n };\n } else {\n return response;\n }\n },\n }),\n }),\n});\n\n/**\n * @internal\n * @description Adds a `__temp_key__` to each relation item. This gives us\n * a stable identifier regardless of it's ids etc. that we can then use for drag and drop.\n */\nconst prepareTempKeys = (relations: RelResult[], existingRelations: RelationResult[] = []) => {\n const [firstItem] = existingRelations.slice(0);\n const keys = generateNKeysBetween(null, firstItem?.__temp_key__ ?? null, relations.length);\n\n return relations.map((datum, index) => ({\n ...datum,\n __temp_key__: keys[index],\n }));\n};\n\nconst { useGetRelationsQuery, useLazySearchRelationsQuery } = relationsApi;\n\nexport { useGetRelationsQuery, useLazySearchRelationsQuery };\nexport type { RelationResult };\n","import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify it's type of string and return it.\n *\n * We fallback to the documentId.\n */\nconst getRelationLabel = (relation: RelationResult, mainField?: MainField): string => {\n const label = mainField && relation[mainField.name] ? relation[mainField.name] : null;\n\n if (typeof label === 'string') {\n return label;\n }\n\n return relation.documentId;\n};\n\nexport { getRelationLabel };\n","import { useEffect, useRef } from 'react';\n\nexport const usePrev = <T>(value: T): T | undefined => {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n};\n"],"names":["prefixFileUrlWithBackendUrl","fileURL","startsWith","window","strapi","backendURL","useDebounce","value","delay","debouncedValue","setDebouncedValue","useState","useEffect","handler","setTimeout","clearTimeout","relationsApi","contentManagerApi","injectEndpoints","endpoints","build","getRelations","query","model","id","targetField","params","url","method","config","serializeQueryArgs","args","endpointName","queryArgs","locale","status","merge","currentCache","newItems","pagination","page","results","prepareTempKeys","forceRefetch","currentArg","previousArg","pageSize","transformResponse","response","toReversed","providesTags","searchRelations","_q","idsToOmit","idsToInclude","existingIds","map","item","documentId","uniqueNewItems","filter","includes","push","relations","existingRelations","firstItem","slice","keys","generateNKeysBetween","__temp_key__","length","datum","index","useGetRelationsQuery","useLazySearchRelationsQuery","getRelationLabel","relation","mainField","label","name","usePrev","ref","useRef","current"],"mappings":";;;;AAAA,MAAMA,8BAA8B,CAACC,OAAAA,GAAAA;AACnC,IAAA,OAAO,CAAC,CAACA,OAAAA,IAAWA,OAAQC,CAAAA,UAAU,CAAC,GAAO,CAAA,GAAA,CAAC,EAAEC,MAAAA,CAAOC,MAAM,CAACC,UAAU,CAAC,EAAEJ,OAAAA,CAAQ,CAAC,GAAGA,OAAAA;AAC1F;;ACAO,SAASK,WAAAA,CAAoBC,KAAa,EAAEC,KAAa,EAAA;AAC9D,IAAA,MAAM,CAACC,cAAAA,EAAgBC,iBAAkB,CAAA,GAAGC,QAASJ,CAAAA,KAAAA,CAAAA;IAErDK,SAAU,CAAA,IA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CAACC,SAAAA,CAAU,GAAGD,iBAAAA,CAAkBE,KAAK,CAAC,CAAA,CAAA;AAC5C,IAAA,MAAMC,OAAOC,oBAAqB,CAAA,IAAA,EAAMH,WAAWI,YAAgB,IAAA,IAAA,EAAMN,UAAUO,MAAM,CAAA;AAEzF,IAAA,OAAOP,UAAUP,GAAG,CAAC,CAACe,KAAAA,EAAOC,SAAW;AACtC,YAAA,GAAGD,KAAK;YACRF,YAAcF,EAAAA,IAAI,CAACK,KAAM;SAC3B,CAAA,CAAA;AACF,CAAA;AAEA,MAAM,EAAEC,oBAAoB,EAAEC,2BAA2B,EAAE,GAAG1D;;AC/L9D;;;;;;;IAQA,MAAM2D,gBAAmB,GAAA,CAACC,QAA0BC,EAAAA,SAAAA,GAAAA;AAClD,IAAA,MAAMC,KAAQD,GAAAA,SAAAA,IAAaD,QAAQ,CAACC,SAAUE,CAAAA,IAAI,CAAC,GAAGH,QAAQ,CAACC,SAAUE,CAAAA,IAAI,CAAC,GAAG,IAAA;IAEjF,IAAI,OAAOD,UAAU,QAAU,EAAA;QAC7B,OAAOA,KAAAA;AACT;AAEA,IAAA,OAAOF,SAASlB,UAAU;AAC5B;;ACjBO,MAAMsB,UAAU,CAAIzE,KAAAA,GAAAA;AACzB,IAAA,MAAM0E,GAAMC,GAAAA,MAAAA,EAAAA;IAEZtE,SAAU,CAAA,IAAA;AACRqE,QAAAA,GAAAA,CAAIE,OAAO,GAAG5E,KAAAA;KACb,EAAA;AAACA,QAAAA;AAAM,KAAA,CAAA;AAEV,IAAA,OAAO0E,IAAIE,OAAO;AACpB;;;;"}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var groups = "Nhóm";
|
4
|
+
var pageNotFound = "Không Tìm Thấy Trang";
|
5
|
+
var vi = {
|
6
|
+
"EditRelations.title": "Dữ Liệu Quan Hệ",
|
7
|
+
"components.AddFilterCTA.add": "Lọc",
|
8
|
+
"components.AddFilterCTA.hide": "Lọc",
|
9
|
+
"components.DraggableAttr.edit": "Nhấn để chỉnh sửa",
|
10
|
+
"components.EmptyAttributesBlock.button": "Đến trang cài đặt",
|
11
|
+
"components.EmptyAttributesBlock.description": "Bạn có thể thay đổi cài đặt của bạn",
|
12
|
+
"components.FilterOptions.button.apply": "Áp dụng",
|
13
|
+
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Áp dụng",
|
14
|
+
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Xóa tất cả",
|
15
|
+
"components.FiltersPickWrapper.PluginHeader.description": "Cài đặt các điều kiện để áp dụng cho việc lọc các bản ghi",
|
16
|
+
"components.FiltersPickWrapper.PluginHeader.title.filter": "Các bộ lọc",
|
17
|
+
"components.FiltersPickWrapper.hide": "Ẩn đi",
|
18
|
+
"components.LimitSelect.itemsPerPage": "Số lượng bản ghi trong trang",
|
19
|
+
"components.Search.placeholder": "Tìm một bản ghi...",
|
20
|
+
"components.TableDelete.delete": "Xóa tất cả",
|
21
|
+
"components.TableDelete.deleteSelected": "Xóa đã chọn",
|
22
|
+
"components.TableEmpty.withFilters": "Không có {contentType} với bộ lọc được dùng",
|
23
|
+
"components.TableEmpty.withSearch": "Không có {contentType} tương ứng với tìm kiếm ({search})...",
|
24
|
+
"components.TableEmpty.withoutFilter": "Không có {contentType}...",
|
25
|
+
"containers.Edit.Link.Layout": "Cấu hình bố cục",
|
26
|
+
"containers.Edit.addAnItem": "Thêm một bản ghi...",
|
27
|
+
"containers.Edit.clickToJump": "Nhấn để nhảy vào bản ghi",
|
28
|
+
"containers.Edit.delete": "Xóa",
|
29
|
+
"containers.Edit.editing": "Đăng sửa...",
|
30
|
+
"containers.Edit.pluginHeader.title.new": "Tạo một Bản ghi",
|
31
|
+
"containers.Edit.reset": "Làm lại",
|
32
|
+
"containers.Edit.returnList": "Trở về danh sách",
|
33
|
+
"containers.Edit.seeDetails": "Chi tiết",
|
34
|
+
"containers.Edit.submit": "Lưu",
|
35
|
+
"containers.EditView.notification.errors": "Bảng nhập liệu có vài lỗi",
|
36
|
+
"containers.Home.introduction": "Để chỉnh sửa các bản ghi của bạn, đi đến liên kết ở menu bên trái. Plugin này chưa có cách thích hợp để chỉnh sửa các cài đặt và nó vẫn đang được phát triển.",
|
37
|
+
"containers.Home.pluginHeaderDescription": "Quản lý các bản ghi thông qua một giao diện mạnh và đẹp.",
|
38
|
+
"containers.Home.pluginHeaderTitle": "Quản Lý Nội Dung",
|
39
|
+
"containers.List.errorFetchRecords": "Lỗi",
|
40
|
+
"containers.list.displayedFields": "Các trường đã được trình bày",
|
41
|
+
"containers.SettingPage.attributes": "Các trường thuộc tính",
|
42
|
+
"containers.SettingPage.attributes.description": "Định nghĩa thứ tự các thuộc tính",
|
43
|
+
"containers.SettingPage.editSettings.description": "Kéo & thả các trường để xây dựng bố cục",
|
44
|
+
"containers.SettingPage.editSettings.entry.title": "Tên bản ghi",
|
45
|
+
"containers.SettingPage.editSettings.entry.title.description": "Cài đặt trường được trình bày trong bản ghi của bạn",
|
46
|
+
"containers.SettingPage.editSettings.title": "Chỉnh sửa hiển thị (các cài đặt)",
|
47
|
+
"containers.SettingPage.layout": "Bố cục",
|
48
|
+
"containers.SettingPage.listSettings.title": "Hiển thị danh sách (các cài đặt)",
|
49
|
+
"containers.SettingPage.settings": "Các cài đặt",
|
50
|
+
"containers.SettingViewModel.pluginHeader.title": "Quản Lý Nội Dung - {name}",
|
51
|
+
"containers.SettingsPage.Block.contentType.description": "Cấu hình các cài đặt riêng",
|
52
|
+
"containers.SettingsPage.Block.generalSettings.title": "Chung",
|
53
|
+
"containers.SettingsView.list.title": "Các cấu hình về Trình bày",
|
54
|
+
"emptyAttributes.title": "Chưa có trường nào hết",
|
55
|
+
"error.attribute.key.taken": "Giá trị này đã tồn tại",
|
56
|
+
"error.attribute.sameKeyAndName": "Không thể bằng nhau",
|
57
|
+
"error.attribute.taken": "Tên trường này đã tồn tại",
|
58
|
+
"error.contentTypeName.taken": "Tên này đã tồn tại",
|
59
|
+
"error.model.fetch": "Một lỗi đã xảy ra trong khi lấy về cấu hình nội dung.",
|
60
|
+
"error.record.create": "Một lỗi đã xảy ra trong khi tạo bản ghi.",
|
61
|
+
"error.record.delete": "Một lỗi đã xảy ra trong khi xoá bản ghi.",
|
62
|
+
"error.record.fetch": "Một lỗi đã xảy ra trong khi lấy về bản ghi.",
|
63
|
+
"error.record.update": "Một lỗi đã xảy ra trong khi cập nhật bản ghi.",
|
64
|
+
"error.records.count": "Một lỗi đã xảy ra trong khi lấy về số lượng bản ghi.",
|
65
|
+
"error.records.fetch": "Một lỗi đã xảy ra trong khi lấy về các bản ghi.",
|
66
|
+
"error.schema.generation": "Một lỗi đã xảy ra trong khi quá trình tạo ra lược đồ.",
|
67
|
+
"error.validation.json": "Đây không phải là định dạng JSON",
|
68
|
+
"error.validation.max": "Giá trị quá cao.",
|
69
|
+
"error.validation.maxLength": "Giá trị quá dài.",
|
70
|
+
"error.validation.min": "Giá trị quá thấp.",
|
71
|
+
"error.validation.minLength": "Giá trị quá ngắn.",
|
72
|
+
"error.validation.minSupMax": "Không thể là trên mũ",
|
73
|
+
"error.validation.regex": "Giá trị không khới với regex.",
|
74
|
+
"error.validation.required": "Giá trị này bắt buộc.",
|
75
|
+
"form.Input.bulkActions": "Kích hoạt hoạt động gộp",
|
76
|
+
"form.Input.defaultSort": "Thuộc tính sắp xếp mặc định",
|
77
|
+
"form.Input.description": "Mô tả",
|
78
|
+
"form.Input.description.placeholder": "Tên hiển thị trong hồ sơ",
|
79
|
+
"form.Input.editable": "Trường chỉnh sửa được",
|
80
|
+
"form.Input.filters": "Kích hoạt các bộ lọc",
|
81
|
+
"form.Input.label": "Nhãn",
|
82
|
+
"form.Input.label.inputDescription": "Giá trị này ghi đè lên nhãn được trình bày trong phần đầu của bảng",
|
83
|
+
"form.Input.pageEntries": "Bản ghi trong trang",
|
84
|
+
"form.Input.placeholder": "Chỗ chờ giá trị",
|
85
|
+
"form.Input.placeholder.placeholder": "Giá trị tuyệt vời của tôi",
|
86
|
+
"form.Input.search": "Kích hoạt tìm kiếm",
|
87
|
+
"form.Input.search.field": "Kích hoạt tìm kiếm cho trường này",
|
88
|
+
"form.Input.sort.field": "Kích hoạt sắp xếp trên trường này",
|
89
|
+
"form.Input.wysiwyg": "Trình bày như là WYSIWYG",
|
90
|
+
"global.displayedFields": "Các Trường Đã Được Trình Bày",
|
91
|
+
groups: groups,
|
92
|
+
"groups.numbered": "Nhóm ({number})",
|
93
|
+
"notification.error.displayedFields": "Bạn cần trình bày ít nhất một trường",
|
94
|
+
"notification.error.relationship.fetch": "Một lỗi đã xảy ra trong khi lấy về mối quan hệ.",
|
95
|
+
"notification.info.SettingPage.disableSort": "Bạn cần có một thuộc tính được phép sắp xếp",
|
96
|
+
"notification.info.minimumFields": "Bạn cần hiển thị ít nhất một trường",
|
97
|
+
"notification.upload.error": "Một lỗi đã xảy ra trong khi tải lên các tập tin của bạn",
|
98
|
+
pageNotFound: pageNotFound,
|
99
|
+
"plugin.description.long": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
|
100
|
+
"plugin.description.short": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
|
101
|
+
"popUpWarning.bodyMessage.contentType.delete": "Bạn có chắc là muốn xoá bản ghi này không?",
|
102
|
+
"popUpWarning.bodyMessage.contentType.delete.all": "Bạn có chắc là muốn xoá các bản ghi này không?",
|
103
|
+
"popUpWarning.warning.cancelAllSettings": "Bạn có chắc là muốn hủy bỏ các thay đổi của bạn?",
|
104
|
+
"popUpWarning.warning.updateAllSettings": "Nó sẽ thay đổi tất cả cài đặt của bạn",
|
105
|
+
"success.record.delete": "Đã xoá",
|
106
|
+
"success.record.save": "Đã lưu"
|
107
|
+
};
|
108
|
+
|
109
|
+
exports.default = vi;
|
110
|
+
exports.groups = groups;
|
111
|
+
exports.pageNotFound = pageNotFound;
|
112
|
+
//# sourceMappingURL=vi-BGr1X_HZ.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vi-
|
1
|
+
{"version":3,"file":"vi-BGr1X_HZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
var groups = "Nhóm";
|
2
|
+
var pageNotFound = "Không Tìm Thấy Trang";
|
3
|
+
var vi = {
|
4
|
+
"EditRelations.title": "Dữ Liệu Quan Hệ",
|
5
|
+
"components.AddFilterCTA.add": "Lọc",
|
6
|
+
"components.AddFilterCTA.hide": "Lọc",
|
7
|
+
"components.DraggableAttr.edit": "Nhấn để chỉnh sửa",
|
8
|
+
"components.EmptyAttributesBlock.button": "Đến trang cài đặt",
|
9
|
+
"components.EmptyAttributesBlock.description": "Bạn có thể thay đổi cài đặt của bạn",
|
10
|
+
"components.FilterOptions.button.apply": "Áp dụng",
|
11
|
+
"components.FiltersPickWrapper.PluginHeader.actions.apply": "Áp dụng",
|
12
|
+
"components.FiltersPickWrapper.PluginHeader.actions.clearAll": "Xóa tất cả",
|
13
|
+
"components.FiltersPickWrapper.PluginHeader.description": "Cài đặt các điều kiện để áp dụng cho việc lọc các bản ghi",
|
14
|
+
"components.FiltersPickWrapper.PluginHeader.title.filter": "Các bộ lọc",
|
15
|
+
"components.FiltersPickWrapper.hide": "Ẩn đi",
|
16
|
+
"components.LimitSelect.itemsPerPage": "Số lượng bản ghi trong trang",
|
17
|
+
"components.Search.placeholder": "Tìm một bản ghi...",
|
18
|
+
"components.TableDelete.delete": "Xóa tất cả",
|
19
|
+
"components.TableDelete.deleteSelected": "Xóa đã chọn",
|
20
|
+
"components.TableEmpty.withFilters": "Không có {contentType} với bộ lọc được dùng",
|
21
|
+
"components.TableEmpty.withSearch": "Không có {contentType} tương ứng với tìm kiếm ({search})...",
|
22
|
+
"components.TableEmpty.withoutFilter": "Không có {contentType}...",
|
23
|
+
"containers.Edit.Link.Layout": "Cấu hình bố cục",
|
24
|
+
"containers.Edit.addAnItem": "Thêm một bản ghi...",
|
25
|
+
"containers.Edit.clickToJump": "Nhấn để nhảy vào bản ghi",
|
26
|
+
"containers.Edit.delete": "Xóa",
|
27
|
+
"containers.Edit.editing": "Đăng sửa...",
|
28
|
+
"containers.Edit.pluginHeader.title.new": "Tạo một Bản ghi",
|
29
|
+
"containers.Edit.reset": "Làm lại",
|
30
|
+
"containers.Edit.returnList": "Trở về danh sách",
|
31
|
+
"containers.Edit.seeDetails": "Chi tiết",
|
32
|
+
"containers.Edit.submit": "Lưu",
|
33
|
+
"containers.EditView.notification.errors": "Bảng nhập liệu có vài lỗi",
|
34
|
+
"containers.Home.introduction": "Để chỉnh sửa các bản ghi của bạn, đi đến liên kết ở menu bên trái. Plugin này chưa có cách thích hợp để chỉnh sửa các cài đặt và nó vẫn đang được phát triển.",
|
35
|
+
"containers.Home.pluginHeaderDescription": "Quản lý các bản ghi thông qua một giao diện mạnh và đẹp.",
|
36
|
+
"containers.Home.pluginHeaderTitle": "Quản Lý Nội Dung",
|
37
|
+
"containers.List.errorFetchRecords": "Lỗi",
|
38
|
+
"containers.list.displayedFields": "Các trường đã được trình bày",
|
39
|
+
"containers.SettingPage.attributes": "Các trường thuộc tính",
|
40
|
+
"containers.SettingPage.attributes.description": "Định nghĩa thứ tự các thuộc tính",
|
41
|
+
"containers.SettingPage.editSettings.description": "Kéo & thả các trường để xây dựng bố cục",
|
42
|
+
"containers.SettingPage.editSettings.entry.title": "Tên bản ghi",
|
43
|
+
"containers.SettingPage.editSettings.entry.title.description": "Cài đặt trường được trình bày trong bản ghi của bạn",
|
44
|
+
"containers.SettingPage.editSettings.title": "Chỉnh sửa hiển thị (các cài đặt)",
|
45
|
+
"containers.SettingPage.layout": "Bố cục",
|
46
|
+
"containers.SettingPage.listSettings.title": "Hiển thị danh sách (các cài đặt)",
|
47
|
+
"containers.SettingPage.settings": "Các cài đặt",
|
48
|
+
"containers.SettingViewModel.pluginHeader.title": "Quản Lý Nội Dung - {name}",
|
49
|
+
"containers.SettingsPage.Block.contentType.description": "Cấu hình các cài đặt riêng",
|
50
|
+
"containers.SettingsPage.Block.generalSettings.title": "Chung",
|
51
|
+
"containers.SettingsView.list.title": "Các cấu hình về Trình bày",
|
52
|
+
"emptyAttributes.title": "Chưa có trường nào hết",
|
53
|
+
"error.attribute.key.taken": "Giá trị này đã tồn tại",
|
54
|
+
"error.attribute.sameKeyAndName": "Không thể bằng nhau",
|
55
|
+
"error.attribute.taken": "Tên trường này đã tồn tại",
|
56
|
+
"error.contentTypeName.taken": "Tên này đã tồn tại",
|
57
|
+
"error.model.fetch": "Một lỗi đã xảy ra trong khi lấy về cấu hình nội dung.",
|
58
|
+
"error.record.create": "Một lỗi đã xảy ra trong khi tạo bản ghi.",
|
59
|
+
"error.record.delete": "Một lỗi đã xảy ra trong khi xoá bản ghi.",
|
60
|
+
"error.record.fetch": "Một lỗi đã xảy ra trong khi lấy về bản ghi.",
|
61
|
+
"error.record.update": "Một lỗi đã xảy ra trong khi cập nhật bản ghi.",
|
62
|
+
"error.records.count": "Một lỗi đã xảy ra trong khi lấy về số lượng bản ghi.",
|
63
|
+
"error.records.fetch": "Một lỗi đã xảy ra trong khi lấy về các bản ghi.",
|
64
|
+
"error.schema.generation": "Một lỗi đã xảy ra trong khi quá trình tạo ra lược đồ.",
|
65
|
+
"error.validation.json": "Đây không phải là định dạng JSON",
|
66
|
+
"error.validation.max": "Giá trị quá cao.",
|
67
|
+
"error.validation.maxLength": "Giá trị quá dài.",
|
68
|
+
"error.validation.min": "Giá trị quá thấp.",
|
69
|
+
"error.validation.minLength": "Giá trị quá ngắn.",
|
70
|
+
"error.validation.minSupMax": "Không thể là trên mũ",
|
71
|
+
"error.validation.regex": "Giá trị không khới với regex.",
|
72
|
+
"error.validation.required": "Giá trị này bắt buộc.",
|
73
|
+
"form.Input.bulkActions": "Kích hoạt hoạt động gộp",
|
74
|
+
"form.Input.defaultSort": "Thuộc tính sắp xếp mặc định",
|
75
|
+
"form.Input.description": "Mô tả",
|
76
|
+
"form.Input.description.placeholder": "Tên hiển thị trong hồ sơ",
|
77
|
+
"form.Input.editable": "Trường chỉnh sửa được",
|
78
|
+
"form.Input.filters": "Kích hoạt các bộ lọc",
|
79
|
+
"form.Input.label": "Nhãn",
|
80
|
+
"form.Input.label.inputDescription": "Giá trị này ghi đè lên nhãn được trình bày trong phần đầu của bảng",
|
81
|
+
"form.Input.pageEntries": "Bản ghi trong trang",
|
82
|
+
"form.Input.placeholder": "Chỗ chờ giá trị",
|
83
|
+
"form.Input.placeholder.placeholder": "Giá trị tuyệt vời của tôi",
|
84
|
+
"form.Input.search": "Kích hoạt tìm kiếm",
|
85
|
+
"form.Input.search.field": "Kích hoạt tìm kiếm cho trường này",
|
86
|
+
"form.Input.sort.field": "Kích hoạt sắp xếp trên trường này",
|
87
|
+
"form.Input.wysiwyg": "Trình bày như là WYSIWYG",
|
88
|
+
"global.displayedFields": "Các Trường Đã Được Trình Bày",
|
89
|
+
groups: groups,
|
90
|
+
"groups.numbered": "Nhóm ({number})",
|
91
|
+
"notification.error.displayedFields": "Bạn cần trình bày ít nhất một trường",
|
92
|
+
"notification.error.relationship.fetch": "Một lỗi đã xảy ra trong khi lấy về mối quan hệ.",
|
93
|
+
"notification.info.SettingPage.disableSort": "Bạn cần có một thuộc tính được phép sắp xếp",
|
94
|
+
"notification.info.minimumFields": "Bạn cần hiển thị ít nhất một trường",
|
95
|
+
"notification.upload.error": "Một lỗi đã xảy ra trong khi tải lên các tập tin của bạn",
|
96
|
+
pageNotFound: pageNotFound,
|
97
|
+
"plugin.description.long": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
|
98
|
+
"plugin.description.short": "Cách nhanh để xem, sửa và xoá dữ liệu trong cơ sở dữ liệu của bạn.",
|
99
|
+
"popUpWarning.bodyMessage.contentType.delete": "Bạn có chắc là muốn xoá bản ghi này không?",
|
100
|
+
"popUpWarning.bodyMessage.contentType.delete.all": "Bạn có chắc là muốn xoá các bản ghi này không?",
|
101
|
+
"popUpWarning.warning.cancelAllSettings": "Bạn có chắc là muốn hủy bỏ các thay đổi của bạn?",
|
102
|
+
"popUpWarning.warning.updateAllSettings": "Nó sẽ thay đổi tất cả cài đặt của bạn",
|
103
|
+
"success.record.delete": "Đã xoá",
|
104
|
+
"success.record.save": "Đã lưu"
|
105
|
+
};
|
106
|
+
|
107
|
+
export { vi as default, groups, pageNotFound };
|
108
|
+
//# sourceMappingURL=vi-CvBGlTjr.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vi-
|
1
|
+
{"version":3,"file":"vi-CvBGlTjr.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|