@strapi/content-manager 0.0.0-experimental.d042f6a350fa3a48d61e7c56875e2a0a7ba3c8f5 → 0.0.0-experimental.d1602f22dc638a4c3c5084965fd6126fff5e9d4f
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.js +80 -0
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.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-DXwOtpq1.js +298 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DXwOtpq1.js.map +1 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js +276 -0
- package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js.map +1 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js +153 -0
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.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-D0Ng758X.js +180 -0
- package/dist/admin/chunks/EditConfigurationPage-D0Ng758X.js.map +1 -0
- package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js +158 -0
- package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js.map +1 -0
- package/dist/admin/chunks/EditViewPage-jCZnUuCR.js +265 -0
- package/dist/admin/chunks/EditViewPage-jCZnUuCR.js.map +1 -0
- package/dist/admin/chunks/EditViewPage-zSnDwLz3.js +288 -0
- package/dist/admin/chunks/EditViewPage-zSnDwLz3.js.map +1 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js +56 -0
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.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-BEqiuSvQ.js +978 -0
- package/dist/admin/chunks/Form-BEqiuSvQ.js.map +1 -0
- package/dist/admin/chunks/Form-CZmB6JIg.js +955 -0
- package/dist/admin/chunks/Form-CZmB6JIg.js.map +1 -0
- package/dist/admin/chunks/History-BlLKDZSw.js +1331 -0
- package/dist/admin/chunks/History-BlLKDZSw.js.map +1 -0
- package/dist/admin/chunks/History-CPYXgxkS.js +1308 -0
- package/dist/admin/chunks/History-CPYXgxkS.js.map +1 -0
- package/dist/admin/chunks/Input-CLX3C5DI.js +6711 -0
- package/dist/admin/chunks/Input-CLX3C5DI.js.map +1 -0
- package/dist/admin/chunks/Input-DiR2Xfa7.js +6742 -0
- package/dist/admin/chunks/Input-DiR2Xfa7.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js +795 -0
- package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js.map +1 -0
- package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js +818 -0
- package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-BtXYjEYz.js +1154 -0
- package/dist/admin/chunks/ListViewPage-BtXYjEYz.js.map +1 -0
- package/dist/admin/chunks/ListViewPage-MJNfQTp-.js +1132 -0
- package/dist/admin/chunks/ListViewPage-MJNfQTp-.js.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js +57 -0
- package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js.map +1 -0
- package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js +59 -0
- package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js +36 -0
- package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js.map +1 -0
- package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js +38 -0
- package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js.map +1 -0
- package/dist/admin/chunks/Preview-DEuQgQg2.js +482 -0
- package/dist/admin/chunks/Preview-DEuQgQg2.js.map +1 -0
- package/dist/admin/chunks/Preview-H74FQ9Cq.js +504 -0
- package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +1 -0
- package/dist/admin/chunks/Relations-C8jbZPVK.js +827 -0
- package/dist/admin/chunks/Relations-C8jbZPVK.js.map +1 -0
- package/dist/admin/chunks/Relations-mxOUS7TJ.js +853 -0
- package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +1 -0
- package/dist/admin/chunks/ar-DckYq_WK.js +222 -0
- package/dist/admin/chunks/ar-DckYq_WK.js.map +1 -0
- 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.js +197 -0
- package/dist/{_chunks/de-CCEmbAah.js.map → admin/chunks/ca-DviY7mRj.js.map} +1 -1
- package/dist/admin/chunks/cs-BJFxwIWj.js +126 -0
- package/dist/{_chunks/ms-BuFotyP_.js.map → admin/chunks/cs-BJFxwIWj.js.map} +1 -1
- package/dist/admin/chunks/cs-C7OSYFQ7.js +122 -0
- package/dist/{_chunks/cs-CkJy6B2v.js.map → admin/chunks/cs-C7OSYFQ7.js.map} +1 -1
- package/dist/admin/chunks/de-5QRlDHyR.js +195 -0
- package/dist/{_chunks/ja-7sfIbjxE.js.map → admin/chunks/de-5QRlDHyR.js.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-C1CjdAtC.js +313 -0
- package/dist/{_chunks/en-D65uIF6Y.mjs.map → admin/chunks/en-C1CjdAtC.js.map} +1 -1
- package/dist/admin/chunks/en-LfhocNG2.js +308 -0
- package/dist/{_chunks/en-BR48D_RH.js.map → admin/chunks/en-LfhocNG2.js.map} +1 -1
- package/dist/admin/chunks/es-C8vLuvZL.js +197 -0
- package/dist/admin/chunks/es-C8vLuvZL.js.map +1 -0
- package/dist/admin/chunks/es-DkoWSExG.js +192 -0
- package/dist/{_chunks/ko-woFZPmLk.js.map → admin/chunks/es-DkoWSExG.js.map} +1 -1
- package/dist/admin/chunks/eu-BG1xX7HK.js +198 -0
- package/dist/admin/chunks/eu-BG1xX7HK.js.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.js +215 -0
- package/dist/admin/chunks/fr-CFdRaRVj.js.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.js +196 -0
- package/dist/admin/chunks/gu-D5MMMXRs.js.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.js +196 -0
- package/dist/admin/chunks/hi-lp17SCjr.js.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_.js +7 -0
- package/dist/admin/chunks/hooks-DMvik5y_.js.map +1 -0
- package/dist/admin/chunks/hu-CLka1U2C.js +198 -0
- package/dist/admin/chunks/hu-CLka1U2C.js.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.js +156 -0
- package/dist/admin/chunks/id-USfY9m1g.js.map +1 -0
- package/dist/admin/chunks/index-BRlRBRLb.js +5350 -0
- package/dist/admin/chunks/index-BRlRBRLb.js.map +1 -0
- package/dist/admin/chunks/index-ZIwOPk6p.js +5416 -0
- package/dist/admin/chunks/index-ZIwOPk6p.js.map +1 -0
- package/dist/admin/chunks/it-BAHrwmYS.js +158 -0
- package/dist/admin/chunks/it-BAHrwmYS.js.map +1 -0
- package/dist/admin/chunks/it-CQFpa_Dc.js +163 -0
- package/dist/{_chunks/es-9K52xZIr.js.map → admin/chunks/it-CQFpa_Dc.js.map} +1 -1
- package/dist/admin/chunks/ja-BWKmBJFT.js +192 -0
- package/dist/admin/chunks/ja-BWKmBJFT.js.map +1 -0
- package/dist/admin/chunks/ja-jdQM-B79.js +197 -0
- package/dist/admin/chunks/ja-jdQM-B79.js.map +1 -0
- package/dist/admin/chunks/ko-CgADGBNt.js +191 -0
- package/dist/admin/chunks/ko-CgADGBNt.js.map +1 -0
- package/dist/admin/chunks/ko-k46sEyzt.js +196 -0
- package/dist/admin/chunks/ko-k46sEyzt.js.map +1 -0
- package/dist/admin/chunks/layout-B3-guCPG.js +598 -0
- package/dist/admin/chunks/layout-B3-guCPG.js.map +1 -0
- package/dist/admin/chunks/layout-ameRNiAM.js +618 -0
- package/dist/admin/chunks/layout-ameRNiAM.js.map +1 -0
- package/dist/admin/chunks/ml-CnhCfOn_.js +196 -0
- package/dist/admin/chunks/ml-CnhCfOn_.js.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.js +140 -0
- package/dist/{_chunks/uk-C8EiqJY7.js.map → admin/chunks/ms-Bh09NFff.js.map} +1 -1
- package/dist/admin/chunks/ms-CvSC0OdG.js +145 -0
- package/dist/admin/chunks/ms-CvSC0OdG.js.map +1 -0
- 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.js +198 -0
- package/dist/admin/chunks/nl-C8HYflTc.js.map +1 -0
- package/dist/admin/chunks/objects-C3EebVVe.js +76 -0
- package/dist/admin/chunks/objects-C3EebVVe.js.map +1 -0
- package/dist/admin/chunks/objects-wl73iEma.js +73 -0
- package/dist/admin/chunks/objects-wl73iEma.js.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.js +195 -0
- package/dist/admin/chunks/pl-MFCZJZuZ.js.map +1 -0
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js +202 -0
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js.map +1 -0
- package/dist/admin/chunks/pt-BR-CcotyBGJ.js +197 -0
- package/dist/{_chunks/pt-BR-BiOz37D9.js.map → admin/chunks/pt-BR-CcotyBGJ.js.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.js +93 -0
- package/dist/admin/chunks/pt-HbmgeiYO.js.map +1 -0
- package/dist/admin/chunks/relations-CmoFVrKj.js +178 -0
- package/dist/admin/chunks/relations-CmoFVrKj.js.map +1 -0
- package/dist/admin/chunks/relations-DYQAaXwZ.js +173 -0
- package/dist/admin/chunks/relations-DYQAaXwZ.js.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.js +230 -0
- package/dist/admin/chunks/ru-CB4BUyQp.js.map +1 -0
- 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.js +196 -0
- package/dist/admin/chunks/sa-n_aPA-pU.js.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.js +198 -0
- package/dist/admin/chunks/sk-tn_BDjE2.js.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.js +198 -0
- package/dist/admin/chunks/sv-cq4ZrQRd.js.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.js +144 -0
- package/dist/admin/chunks/th-mUH7hEtc.js.map +1 -0
- 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.js +195 -0
- package/dist/admin/chunks/tr-Yt38daxh.js.map +1 -0
- package/dist/admin/chunks/uk-B24MoTVg.js +145 -0
- package/dist/admin/chunks/uk-B24MoTVg.js.map +1 -0
- package/dist/admin/chunks/uk-Cpgmm7gE.js +140 -0
- package/dist/admin/chunks/uk-Cpgmm7gE.js.map +1 -0
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js +247 -0
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +1 -0
- package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +271 -0
- package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +1 -0
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js +18 -0
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +1 -0
- package/dist/admin/chunks/usePrev-DIYl-IAL.js +21 -0
- package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +1 -0
- package/dist/admin/chunks/vi-BGr1X_HZ.js +112 -0
- package/dist/admin/chunks/vi-BGr1X_HZ.js.map +1 -0
- package/dist/admin/chunks/vi-CvBGlTjr.js +108 -0
- package/dist/{_chunks/vi-CJlYDheJ.js.map → admin/chunks/vi-CvBGlTjr.js.map} +1 -1
- package/dist/admin/chunks/zh-BmF-sHaT.js +205 -0
- package/dist/admin/chunks/zh-BmF-sHaT.js.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.js +934 -0
- package/dist/{_chunks/zh-Hans-9kOncHGw.js.map → admin/chunks/zh-Hans-CI0HKio3.js.map} +1 -1
- package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +953 -0
- package/dist/{_chunks/zh-Hans-BPQcRIyH.mjs.map → admin/chunks/zh-Hans-JVK9x7xr.js.map} +1 -1
- package/dist/admin/index.js +23 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +16 -13
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
- package/dist/admin/src/hooks/useDocument.d.ts +2 -2
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/Code.d.ts +0 -1
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +0 -49
- package/dist/admin/src/preview/components/PreviewContent.d.ts +2 -1
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +2 -1
- package/dist/admin/src/preview/index.d.ts +2 -3
- package/dist/server/index.js +5459 -4387
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +5446 -4372
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
- package/dist/server/src/controllers/utils/metadata.d.ts.map +1 -1
- package/dist/server/src/history/services/utils.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 +1 -1
- package/dist/server/src/services/utils/populate.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 +0 -1
- package/dist/shared/contracts/init.d.ts +0 -1
- package/dist/shared/contracts/preview.d.ts +0 -1
- 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 +35 -24
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +34 -25
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +13 -10
- 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-9_4yUE9L.mjs +0 -236
- package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +0 -1
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +0 -254
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js.map +0 -1
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js +0 -175
- package/dist/_chunks/ComponentIcon-CRbtQEUV.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-Bl_U2JgH.js +0 -150
- package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +0 -1
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +0 -132
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +0 -1
- package/dist/_chunks/EditViewPage-D4yFJET6.js +0 -209
- package/dist/_chunks/EditViewPage-D4yFJET6.js.map +0 -1
- package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +0 -191
- package/dist/_chunks/EditViewPage-DrmVmYN0.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-C4rSaGsz.js +0 -778
- package/dist/_chunks/Form-C4rSaGsz.js.map +0 -1
- package/dist/_chunks/Form-DamaxNpG.mjs +0 -758
- package/dist/_chunks/Form-DamaxNpG.mjs.map +0 -1
- package/dist/_chunks/History-D1PreDSY.mjs +0 -999
- package/dist/_chunks/History-D1PreDSY.mjs.map +0 -1
- package/dist/_chunks/History-DTm8UCCQ.js +0 -1019
- package/dist/_chunks/History-DTm8UCCQ.js.map +0 -1
- package/dist/_chunks/Input-B7sapvBG.js +0 -5617
- package/dist/_chunks/Input-B7sapvBG.js.map +0 -1
- package/dist/_chunks/Input-CZ1YvjHR.mjs +0 -5585
- package/dist/_chunks/Input-CZ1YvjHR.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +0 -633
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +0 -1
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +0 -652
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +0 -1
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +0 -854
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +0 -1
- package/dist/_chunks/ListViewPage-DTuuxU3n.js +0 -877
- package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +0 -51
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +0 -1
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +0 -51
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +0 -23
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +0 -1
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js +0 -23
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +0 -1
- package/dist/_chunks/Preview-BNuU0SuQ.mjs +0 -287
- package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +0 -1
- package/dist/_chunks/Preview-Cxq-uI6D.js +0 -305
- package/dist/_chunks/Preview-Cxq-uI6D.js.map +0 -1
- package/dist/_chunks/Relations-C2Ahkrdg.mjs +0 -728
- package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +0 -1
- package/dist/_chunks/Relations-CWS79QQn.js +0 -747
- package/dist/_chunks/Relations-CWS79QQn.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/ar-CCEVvqGG.mjs.map +0 -1
- package/dist/_chunks/ca-5U32ON2v.mjs +0 -201
- package/dist/_chunks/ca-5U32ON2v.mjs.map +0 -1
- package/dist/_chunks/ca-Cmk45QO6.js +0 -201
- package/dist/_chunks/cs-CM2aBUar.mjs +0 -125
- package/dist/_chunks/cs-CM2aBUar.mjs.map +0 -1
- package/dist/_chunks/cs-CkJy6B2v.js +0 -125
- package/dist/_chunks/de-C72KDNOl.mjs +0 -199
- package/dist/_chunks/de-C72KDNOl.mjs.map +0 -1
- package/dist/_chunks/de-CCEmbAah.js +0 -199
- package/dist/_chunks/en-BR48D_RH.js +0 -312
- package/dist/_chunks/en-D65uIF6Y.mjs +0 -312
- package/dist/_chunks/es-9K52xZIr.js +0 -196
- package/dist/_chunks/es-D34tqjMw.mjs +0 -196
- package/dist/_chunks/es-D34tqjMw.mjs.map +0 -1
- package/dist/_chunks/eu-CdALomew.mjs +0 -202
- package/dist/_chunks/eu-CdALomew.mjs.map +0 -1
- package/dist/_chunks/eu-VDH-3ovk.js +0 -202
- package/dist/_chunks/fr-C43IbhA_.js +0 -219
- package/dist/_chunks/fr-C43IbhA_.js.map +0 -1
- package/dist/_chunks/fr-DBseuRuB.mjs +0 -219
- package/dist/_chunks/fr-DBseuRuB.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/id-BtwA9WJT.mjs.map +0 -1
- package/dist/_chunks/index-DQsvBb_N.js +0 -4500
- package/dist/_chunks/index-DQsvBb_N.js.map +0 -1
- package/dist/_chunks/index-ZKrsjv-2.mjs +0 -4481
- package/dist/_chunks/index-ZKrsjv-2.mjs.map +0 -1
- package/dist/_chunks/it-BrVPqaf1.mjs +0 -162
- package/dist/_chunks/it-BrVPqaf1.mjs.map +0 -1
- package/dist/_chunks/it-DkBIs7vD.js +0 -162
- package/dist/_chunks/ja-7sfIbjxE.js +0 -196
- package/dist/_chunks/ja-BHqhDq4V.mjs +0 -196
- package/dist/_chunks/ja-BHqhDq4V.mjs.map +0 -1
- package/dist/_chunks/ko-HVQRlfUI.mjs +0 -195
- package/dist/_chunks/ko-HVQRlfUI.mjs.map +0 -1
- package/dist/_chunks/ko-woFZPmLk.js +0 -195
- package/dist/_chunks/layout-Cl0NhlQB.js +0 -488
- package/dist/_chunks/layout-Cl0NhlQB.js.map +0 -1
- package/dist/_chunks/layout-fQk1rMk9.mjs +0 -471
- package/dist/_chunks/layout-fQk1rMk9.mjs.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/ms-m_WjyWx7.mjs.map +0 -1
- 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-BcXOv6_9.js +0 -47
- package/dist/_chunks/objects-BcXOv6_9.js.map +0 -1
- package/dist/_chunks/objects-D6yBsdmx.mjs +0 -45
- package/dist/_chunks/objects-D6yBsdmx.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-BR-C71iDxnh.mjs.map +0 -1
- 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-BRfBxVbX.js +0 -133
- package/dist/_chunks/relations-BRfBxVbX.js.map +0 -1
- package/dist/_chunks/relations-BakOFl_1.mjs +0 -134
- package/dist/_chunks/relations-BakOFl_1.mjs.map +0 -1
- package/dist/_chunks/ru-BE6A4Exp.mjs +0 -231
- package/dist/_chunks/ru-BE6A4Exp.mjs.map +0 -1
- 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-CR-zDhAY.mjs +0 -144
- package/dist/_chunks/uk-CR-zDhAY.mjs.map +0 -1
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js +0 -245
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +0 -1
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +0 -228
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +0 -1
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs +0 -29
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +0 -1
- package/dist/_chunks/usePrev-D5J_2fEu.js +0 -28
- package/dist/_chunks/usePrev-D5J_2fEu.js.map +0 -1
- package/dist/_chunks/vi-CJlYDheJ.js +0 -111
- package/dist/_chunks/vi-DUXIk_fw.mjs +0 -111
- package/dist/_chunks/vi-DUXIk_fw.mjs.map +0 -1
- 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,56 @@
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
2
|
+
import 'react';
|
3
|
+
import { useStrapiApp } from '@strapi/admin/strapi-admin';
|
4
|
+
import { Box } from '@strapi/design-system';
|
5
|
+
import { NumberField, BooleanField, DateField, EmailField, EnumerationField, MediaField, PasswordField, RelationField, TextField, JsonField, UidField, ComponentField, DynamicZoneField, BlocksField } from '@strapi/icons/symbols';
|
6
|
+
|
7
|
+
const iconByTypes = {
|
8
|
+
biginteger: /*#__PURE__*/ jsx(NumberField, {}),
|
9
|
+
boolean: /*#__PURE__*/ jsx(BooleanField, {}),
|
10
|
+
date: /*#__PURE__*/ jsx(DateField, {}),
|
11
|
+
datetime: /*#__PURE__*/ jsx(DateField, {}),
|
12
|
+
decimal: /*#__PURE__*/ jsx(NumberField, {}),
|
13
|
+
email: /*#__PURE__*/ jsx(EmailField, {}),
|
14
|
+
enumeration: /*#__PURE__*/ jsx(EnumerationField, {}),
|
15
|
+
float: /*#__PURE__*/ jsx(NumberField, {}),
|
16
|
+
integer: /*#__PURE__*/ jsx(NumberField, {}),
|
17
|
+
media: /*#__PURE__*/ jsx(MediaField, {}),
|
18
|
+
password: /*#__PURE__*/ jsx(PasswordField, {}),
|
19
|
+
relation: /*#__PURE__*/ jsx(RelationField, {}),
|
20
|
+
string: /*#__PURE__*/ jsx(TextField, {}),
|
21
|
+
text: /*#__PURE__*/ jsx(TextField, {}),
|
22
|
+
richtext: /*#__PURE__*/ jsx(TextField, {}),
|
23
|
+
time: /*#__PURE__*/ jsx(DateField, {}),
|
24
|
+
timestamp: /*#__PURE__*/ jsx(DateField, {}),
|
25
|
+
json: /*#__PURE__*/ jsx(JsonField, {}),
|
26
|
+
uid: /*#__PURE__*/ jsx(UidField, {}),
|
27
|
+
component: /*#__PURE__*/ jsx(ComponentField, {}),
|
28
|
+
dynamiczone: /*#__PURE__*/ jsx(DynamicZoneField, {}),
|
29
|
+
blocks: /*#__PURE__*/ jsx(BlocksField, {})
|
30
|
+
};
|
31
|
+
const FieldTypeIcon = ({ type, customFieldUid })=>{
|
32
|
+
const getCustomField = useStrapiApp('FieldTypeIcon', (state)=>state.customFields.get);
|
33
|
+
if (!type) {
|
34
|
+
return null;
|
35
|
+
}
|
36
|
+
let Compo = iconByTypes[type];
|
37
|
+
if (customFieldUid) {
|
38
|
+
const customField = getCustomField(customFieldUid);
|
39
|
+
const CustomFieldIcon = customField?.icon;
|
40
|
+
if (CustomFieldIcon) {
|
41
|
+
Compo = /*#__PURE__*/ jsx(Box, {
|
42
|
+
marginRight: 3,
|
43
|
+
width: 7,
|
44
|
+
height: 6,
|
45
|
+
children: /*#__PURE__*/ jsx(CustomFieldIcon, {})
|
46
|
+
});
|
47
|
+
}
|
48
|
+
}
|
49
|
+
if (!iconByTypes[type]) {
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
return Compo;
|
53
|
+
};
|
54
|
+
|
55
|
+
export { FieldTypeIcon as F };
|
56
|
+
//# sourceMappingURL=FieldTypeIcon-BY6MrVF4.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldTypeIcon-BY6MrVF4.js","sources":["../../../admin/src/components/FieldTypeIcon.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useStrapiApp } from '@strapi/admin/strapi-admin';\nimport { Box } from '@strapi/design-system';\nimport {\n BlocksField,\n BooleanField,\n ComponentField,\n DateField,\n DynamicZoneField,\n EmailField,\n EnumerationField,\n JsonField,\n MediaField,\n NumberField,\n PasswordField,\n RelationField,\n TextField,\n UidField,\n} from '@strapi/icons/symbols';\n\nimport type { Schema } from '@strapi/types';\n\nconst iconByTypes: Record<Schema.Attribute.Kind, React.ReactElement> = {\n biginteger: <NumberField />,\n boolean: <BooleanField />,\n date: <DateField />,\n datetime: <DateField />,\n decimal: <NumberField />,\n email: <EmailField />,\n enumeration: <EnumerationField />,\n float: <NumberField />,\n integer: <NumberField />,\n media: <MediaField />,\n password: <PasswordField />,\n relation: <RelationField />,\n string: <TextField />,\n text: <TextField />,\n richtext: <TextField />,\n time: <DateField />,\n timestamp: <DateField />,\n json: <JsonField />,\n uid: <UidField />,\n component: <ComponentField />,\n dynamiczone: <DynamicZoneField />,\n blocks: <BlocksField />,\n};\n\ninterface FieldTypeIconProps {\n type?: keyof typeof iconByTypes;\n customFieldUid?: string;\n}\n\nconst FieldTypeIcon = ({ type, customFieldUid }: FieldTypeIconProps) => {\n const getCustomField = useStrapiApp('FieldTypeIcon', (state) => state.customFields.get);\n\n if (!type) {\n return null;\n }\n\n let Compo = iconByTypes[type];\n\n if (customFieldUid) {\n const customField = getCustomField(customFieldUid);\n const CustomFieldIcon = customField?.icon;\n\n if (CustomFieldIcon) {\n Compo = (\n <Box marginRight={3} width={7} height={6}>\n <CustomFieldIcon />\n </Box>\n );\n }\n }\n\n if (!iconByTypes[type]) {\n return null;\n }\n\n return Compo;\n};\n\nexport { FieldTypeIcon };\n"],"names":["iconByTypes","biginteger","_jsx","NumberField","boolean","BooleanField","date","DateField","datetime","decimal","email","EmailField","enumeration","EnumerationField","float","integer","media","MediaField","password","PasswordField","relation","RelationField","string","TextField","text","richtext","time","timestamp","json","JsonField","uid","UidField","component","ComponentField","dynamiczone","DynamicZoneField","blocks","BlocksField","FieldTypeIcon","type","customFieldUid","getCustomField","useStrapiApp","state","customFields","get","Compo","customField","CustomFieldIcon","icon","Box","marginRight","width","height"],"mappings":";;;;;;AAuBA,MAAMA,WAAiE,GAAA;AACrEC,IAAAA,UAAAA,gBAAYC,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACbC,IAAAA,OAAAA,gBAASF,GAACG,CAAAA,YAAAA,EAAAA,EAAAA,CAAAA;AACVC,IAAAA,IAAAA,gBAAMJ,GAACK,CAAAA,SAAAA,EAAAA,EAAAA,CAAAA;AACPC,IAAAA,QAAAA,gBAAUN,GAACK,CAAAA,SAAAA,EAAAA,EAAAA,CAAAA;AACXE,IAAAA,OAAAA,gBAASP,GAACC,CAAAA,WAAAA,EAAAA,EAAAA,CAAAA;AACVO,IAAAA,KAAAA,gBAAOR,GAACS,CAA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,EAAEC,IAAI,EAAEC,cAAc,EAAsB,GAAA;IACjE,MAAMC,cAAAA,GAAiBC,aAAa,eAAiB,EAAA,CAACC,QAAUA,KAAMC,CAAAA,YAAY,CAACC,GAAG,CAAA;AAEtF,IAAA,IAAI,CAACN,IAAM,EAAA;QACT,OAAO,IAAA;AACT;IAEA,IAAIO,KAAAA,GAAQ9C,WAAW,CAACuC,IAAK,CAAA;AAE7B,IAAA,IAAIC,cAAgB,EAAA;AAClB,QAAA,MAAMO,cAAcN,cAAeD,CAAAA,cAAAA,CAAAA;AACnC,QAAA,MAAMQ,kBAAkBD,WAAaE,EAAAA,IAAAA;AAErC,QAAA,IAAID,eAAiB,EAAA;AACnBF,YAAAA,KAAAA,iBACE5C,GAACgD,CAAAA,GAAAA,EAAAA;gBAAIC,WAAa,EAAA,CAAA;gBAAGC,KAAO,EAAA,CAAA;gBAAGC,MAAQ,EAAA,CAAA;AACrC,gBAAA,QAAA,gBAAAnD,GAAC8C,CAAAA,eAAAA,EAAAA,EAAAA;;AAGP;AACF;AAEA,IAAA,IAAI,CAAChD,WAAW,CAACuC,IAAAA,CAAK,EAAE;QACtB,OAAO,IAAA;AACT;IAEA,OAAOO,KAAAA;AACT;;;;"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
4
|
+
require('react');
|
5
|
+
var strapiAdmin = require('@strapi/admin/strapi-admin');
|
6
|
+
var designSystem = require('@strapi/design-system');
|
7
|
+
var Symbols = require('@strapi/icons/symbols');
|
8
|
+
|
9
|
+
const iconByTypes = {
|
10
|
+
biginteger: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
|
11
|
+
boolean: /*#__PURE__*/ jsxRuntime.jsx(Symbols.BooleanField, {}),
|
12
|
+
date: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
|
13
|
+
datetime: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
|
14
|
+
decimal: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
|
15
|
+
email: /*#__PURE__*/ jsxRuntime.jsx(Symbols.EmailField, {}),
|
16
|
+
enumeration: /*#__PURE__*/ jsxRuntime.jsx(Symbols.EnumerationField, {}),
|
17
|
+
float: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
|
18
|
+
integer: /*#__PURE__*/ jsxRuntime.jsx(Symbols.NumberField, {}),
|
19
|
+
media: /*#__PURE__*/ jsxRuntime.jsx(Symbols.MediaField, {}),
|
20
|
+
password: /*#__PURE__*/ jsxRuntime.jsx(Symbols.PasswordField, {}),
|
21
|
+
relation: /*#__PURE__*/ jsxRuntime.jsx(Symbols.RelationField, {}),
|
22
|
+
string: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
|
23
|
+
text: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
|
24
|
+
richtext: /*#__PURE__*/ jsxRuntime.jsx(Symbols.TextField, {}),
|
25
|
+
time: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
|
26
|
+
timestamp: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DateField, {}),
|
27
|
+
json: /*#__PURE__*/ jsxRuntime.jsx(Symbols.JsonField, {}),
|
28
|
+
uid: /*#__PURE__*/ jsxRuntime.jsx(Symbols.UidField, {}),
|
29
|
+
component: /*#__PURE__*/ jsxRuntime.jsx(Symbols.ComponentField, {}),
|
30
|
+
dynamiczone: /*#__PURE__*/ jsxRuntime.jsx(Symbols.DynamicZoneField, {}),
|
31
|
+
blocks: /*#__PURE__*/ jsxRuntime.jsx(Symbols.BlocksField, {})
|
32
|
+
};
|
33
|
+
const FieldTypeIcon = ({ type, customFieldUid })=>{
|
34
|
+
const getCustomField = strapiAdmin.useStrapiApp('FieldTypeIcon', (state)=>state.customFields.get);
|
35
|
+
if (!type) {
|
36
|
+
return null;
|
37
|
+
}
|
38
|
+
let Compo = iconByTypes[type];
|
39
|
+
if (customFieldUid) {
|
40
|
+
const customField = getCustomField(customFieldUid);
|
41
|
+
const CustomFieldIcon = customField?.icon;
|
42
|
+
if (CustomFieldIcon) {
|
43
|
+
Compo = /*#__PURE__*/ jsxRuntime.jsx(designSystem.Box, {
|
44
|
+
marginRight: 3,
|
45
|
+
width: 7,
|
46
|
+
height: 6,
|
47
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(CustomFieldIcon, {})
|
48
|
+
});
|
49
|
+
}
|
50
|
+
}
|
51
|
+
if (!iconByTypes[type]) {
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
return Compo;
|
55
|
+
};
|
56
|
+
|
57
|
+
exports.FieldTypeIcon = FieldTypeIcon;
|
58
|
+
//# sourceMappingURL=FieldTypeIcon-Bxh-7Jin.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldTypeIcon-Bxh-7Jin.js","sources":["../../../admin/src/components/FieldTypeIcon.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useStrapiApp } from '@strapi/admin/strapi-admin';\nimport { Box } from '@strapi/design-system';\nimport {\n BlocksField,\n BooleanField,\n ComponentField,\n DateField,\n DynamicZoneField,\n EmailField,\n EnumerationField,\n JsonField,\n MediaField,\n NumberField,\n PasswordField,\n RelationField,\n TextField,\n UidField,\n} from '@strapi/icons/symbols';\n\nimport type { Schema } from '@strapi/types';\n\nconst iconByTypes: Record<Schema.Attribute.Kind, React.ReactElement> = {\n biginteger: <NumberField />,\n boolean: <BooleanField />,\n date: <DateField />,\n datetime: <DateField />,\n decimal: <NumberField />,\n email: <EmailField />,\n enumeration: <EnumerationField />,\n float: <NumberField />,\n integer: <NumberField />,\n media: <MediaField />,\n password: <PasswordField />,\n relation: <RelationField />,\n string: <TextField />,\n text: <TextField />,\n richtext: <TextField />,\n time: <DateField />,\n timestamp: <DateField />,\n json: <JsonField />,\n uid: <UidField />,\n component: <ComponentField />,\n dynamiczone: <DynamicZoneField />,\n blocks: <BlocksField />,\n};\n\ninterface FieldTypeIconProps {\n type?: keyof typeof iconByTypes;\n customFieldUid?: string;\n}\n\nconst FieldTypeIcon = ({ type, customFieldUid }: FieldTypeIconProps) => {\n const getCustomField = useStrapiApp('FieldTypeIcon', (state) => state.customFields.get);\n\n if (!type) {\n return null;\n }\n\n let Compo = iconByTypes[type];\n\n if (customFieldUid) {\n const customField = getCustomField(customFieldUid);\n const CustomFieldIcon = customField?.icon;\n\n if (CustomFieldIcon) {\n Compo = (\n <Box marginRight={3} width={7} height={6}>\n <CustomFieldIcon />\n </Box>\n );\n }\n }\n\n if (!iconByTypes[type]) {\n return null;\n }\n\n return Compo;\n};\n\nexport { FieldTypeIcon };\n"],"names":["iconByTypes","biginteger","_jsx","NumberField","boolean","BooleanField","date","DateField","datetime","decimal","email","EmailField","enumeration","EnumerationField","float","integer","media","MediaField","password","PasswordField","relation","RelationField","string","TextField","text","richtext","time","timestamp","json","JsonField","uid","UidField","component","ComponentField","dynamiczone","DynamicZoneField","blocks","BlocksField","FieldTypeIcon","type","customFieldUid","getCustomField","useStrapiApp","state","customFields","get","Compo","customField","CustomFieldIcon","icon","Box","marginRight","width","height"],"mappings":";;;;;;;;AAuBA,MAAMA,WAAiE,GAAA;AACrEC,IAAAA,UAAAA,gBAAYC,cAACC,CAAAA,mBAAAA,EAAAA,EAAAA,CAAAA;AACbC,IAAAA,OAAAA,gBAASF,cAACG,CAAAA,oBAAAA,EAAAA,EAAAA,CAAAA;AACVC,IAAAA,IAAAA,gBAAMJ,cAACK,CAAAA,iBAAAA,EAAAA,EAAAA,CAAAA;AACPC,IAAAA,QAAAA,gBAAUN,cAACK,CAAAA,iBAAAA,EAAAA,EAAAA,CAAAA;AACXE,IAAAA,OAAAA,gBAASP,cAACC,CAAAA,mBAAAA,EAAAA,EAAAA,CAAAA;AACVO,IAAAA,KAAAA,gBAAOR,cAACS,CAAAA,kBAAAA,EAAAA,EAAAA,CAAAA;AACRC,IAAAA,WAAAA,gBAAaV,cAAC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