@strapi/content-manager 0.0.0-experimental.d1602f22dc638a4c3c5084965fd6126fff5e9d4f → 0.0.0-experimental.d325780feab1caf1b9e4423588eb1cc73b74c376
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/_chunks/CardDragPreview-C0QyJgRA.js +69 -0
- package/dist/_chunks/CardDragPreview-C0QyJgRA.js.map +1 -0
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs +70 -0
- package/dist/_chunks/CardDragPreview-DOxamsuj.mjs.map +1 -0
- package/dist/_chunks/ComponentConfigurationPage-Cx-bPC7o.mjs +236 -0
- package/dist/_chunks/ComponentConfigurationPage-Cx-bPC7o.mjs.map +1 -0
- package/dist/_chunks/ComponentConfigurationPage-Dco_oGcv.js +254 -0
- package/dist/_chunks/ComponentConfigurationPage-Dco_oGcv.js.map +1 -0
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js +175 -0
- package/dist/_chunks/ComponentIcon-CRbtQEUV.js.map +1 -0
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs +157 -0
- package/dist/_chunks/ComponentIcon-u4bIXTFY.mjs.map +1 -0
- package/dist/_chunks/EditConfigurationPage-2JHTYC9l.mjs +132 -0
- package/dist/_chunks/EditConfigurationPage-2JHTYC9l.mjs.map +1 -0
- package/dist/_chunks/EditConfigurationPage-7ex5BamM.js +150 -0
- package/dist/_chunks/EditConfigurationPage-7ex5BamM.js.map +1 -0
- package/dist/_chunks/EditViewPage-BUdd4V-E.mjs +191 -0
- package/dist/_chunks/EditViewPage-BUdd4V-E.mjs.map +1 -0
- package/dist/_chunks/EditViewPage-CpSt4shF.js +209 -0
- package/dist/_chunks/EditViewPage-CpSt4shF.js.map +1 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs +50 -0
- package/dist/_chunks/FieldTypeIcon-CMlNO8PE.mjs.map +1 -0
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js +49 -0
- package/dist/_chunks/FieldTypeIcon-Dnwq_IRF.js.map +1 -0
- package/dist/_chunks/Form-B5wai69r.js +778 -0
- package/dist/_chunks/Form-B5wai69r.js.map +1 -0
- package/dist/_chunks/Form-CKvmIxLb.mjs +758 -0
- package/dist/_chunks/Form-CKvmIxLb.mjs.map +1 -0
- package/dist/_chunks/History-BtUvMl3c.mjs +999 -0
- package/dist/_chunks/History-BtUvMl3c.mjs.map +1 -0
- package/dist/_chunks/History-_uVRZnTx.js +1019 -0
- package/dist/_chunks/History-_uVRZnTx.js.map +1 -0
- package/dist/_chunks/Input-C7kIupyO.mjs +5585 -0
- package/dist/_chunks/Input-C7kIupyO.mjs.map +1 -0
- package/dist/_chunks/Input-D_lWa2v5.js +5617 -0
- package/dist/_chunks/Input-D_lWa2v5.js.map +1 -0
- package/dist/_chunks/ListConfigurationPage-B8V2YLn_.mjs +633 -0
- package/dist/_chunks/ListConfigurationPage-B8V2YLn_.mjs.map +1 -0
- package/dist/_chunks/ListConfigurationPage-mzxHRiSU.js +652 -0
- package/dist/_chunks/ListConfigurationPage-mzxHRiSU.js.map +1 -0
- package/dist/_chunks/ListViewPage-CmYoPeqC.js +877 -0
- package/dist/_chunks/ListViewPage-CmYoPeqC.js.map +1 -0
- package/dist/_chunks/ListViewPage-GTcTc1Mh.mjs +854 -0
- package/dist/_chunks/ListViewPage-GTcTc1Mh.mjs.map +1 -0
- package/dist/_chunks/NoContentTypePage-CurjDsnX.js +51 -0
- package/dist/_chunks/NoContentTypePage-CurjDsnX.js.map +1 -0
- package/dist/_chunks/NoContentTypePage-aTTRCOJI.mjs +51 -0
- package/dist/_chunks/NoContentTypePage-aTTRCOJI.mjs.map +1 -0
- package/dist/_chunks/NoPermissionsPage-BaC4j1Lu.mjs +23 -0
- package/dist/_chunks/NoPermissionsPage-BaC4j1Lu.mjs.map +1 -0
- package/dist/_chunks/NoPermissionsPage-DW7_REzi.js +23 -0
- package/dist/_chunks/NoPermissionsPage-DW7_REzi.js.map +1 -0
- package/dist/_chunks/Preview-DTUxeZDR.js +305 -0
- package/dist/_chunks/Preview-DTUxeZDR.js.map +1 -0
- package/dist/_chunks/Preview-k2MYjnIi.mjs +287 -0
- package/dist/_chunks/Preview-k2MYjnIi.mjs.map +1 -0
- package/dist/_chunks/Relations-CkfzR66V.js +750 -0
- package/dist/_chunks/Relations-CkfzR66V.js.map +1 -0
- package/dist/_chunks/Relations-ClCLZFKk.mjs +731 -0
- package/dist/_chunks/Relations-ClCLZFKk.mjs.map +1 -0
- package/dist/_chunks/ar-BUUWXIYu.js +226 -0
- package/dist/{admin/chunks/ar-DckYq_WK.js.map → _chunks/ar-BUUWXIYu.js.map} +1 -1
- package/dist/_chunks/ar-CCEVvqGG.mjs +226 -0
- package/dist/_chunks/ar-CCEVvqGG.mjs.map +1 -0
- package/dist/_chunks/ca-5U32ON2v.mjs +201 -0
- package/dist/_chunks/ca-5U32ON2v.mjs.map +1 -0
- package/dist/_chunks/ca-Cmk45QO6.js +201 -0
- package/dist/{admin/chunks/de-CbImAUA5.js.map → _chunks/ca-Cmk45QO6.js.map} +1 -1
- package/dist/_chunks/cs-CM2aBUar.mjs +125 -0
- package/dist/_chunks/cs-CM2aBUar.mjs.map +1 -0
- package/dist/_chunks/cs-CkJy6B2v.js +125 -0
- package/dist/{admin/chunks/cs-C7OSYFQ7.js.map → _chunks/cs-CkJy6B2v.js.map} +1 -1
- package/dist/_chunks/de-C72KDNOl.mjs +199 -0
- package/dist/_chunks/de-C72KDNOl.mjs.map +1 -0
- package/dist/_chunks/de-CCEmbAah.js +199 -0
- package/dist/{admin/chunks/es-C8vLuvZL.js.map → _chunks/de-CCEmbAah.js.map} +1 -1
- package/dist/_chunks/en-BR48D_RH.js +312 -0
- package/dist/{admin/chunks/en-LfhocNG2.js.map → _chunks/en-BR48D_RH.js.map} +1 -1
- package/dist/_chunks/en-D65uIF6Y.mjs +312 -0
- package/dist/{admin/chunks/en-C1CjdAtC.js.map → _chunks/en-D65uIF6Y.mjs.map} +1 -1
- package/dist/_chunks/es-9K52xZIr.js +196 -0
- package/dist/{admin/chunks/de-5QRlDHyR.js.map → _chunks/es-9K52xZIr.js.map} +1 -1
- package/dist/_chunks/es-D34tqjMw.mjs +196 -0
- package/dist/_chunks/es-D34tqjMw.mjs.map +1 -0
- package/dist/_chunks/eu-CdALomew.mjs +202 -0
- package/dist/_chunks/eu-CdALomew.mjs.map +1 -0
- package/dist/_chunks/eu-VDH-3ovk.js +202 -0
- package/dist/_chunks/eu-VDH-3ovk.js.map +1 -0
- package/dist/_chunks/fr-C43IbhA_.js +219 -0
- package/dist/_chunks/fr-C43IbhA_.js.map +1 -0
- package/dist/_chunks/fr-DBseuRuB.mjs +219 -0
- package/dist/_chunks/fr-DBseuRuB.mjs.map +1 -0
- package/dist/_chunks/gu-BRmF601H.js +200 -0
- package/dist/_chunks/gu-BRmF601H.js.map +1 -0
- package/dist/_chunks/gu-CNpaMDpH.mjs +200 -0
- package/dist/_chunks/gu-CNpaMDpH.mjs.map +1 -0
- package/dist/_chunks/hi-CCJBptSq.js +200 -0
- package/dist/_chunks/hi-CCJBptSq.js.map +1 -0
- package/dist/_chunks/hi-Dwvd04m3.mjs +200 -0
- package/dist/_chunks/hi-Dwvd04m3.mjs.map +1 -0
- package/dist/{admin/chunks/hooks-D-sOYd1s.js → _chunks/hooks-BAaaKPS_.js} +3 -6
- package/dist/_chunks/hooks-BAaaKPS_.js.map +1 -0
- package/dist/_chunks/hooks-E5u1mcgM.mjs +8 -0
- package/dist/_chunks/hooks-E5u1mcgM.mjs.map +1 -0
- package/dist/_chunks/hu-CeYvaaO0.mjs +202 -0
- package/dist/_chunks/hu-CeYvaaO0.mjs.map +1 -0
- package/dist/_chunks/hu-sNV_yLYy.js +202 -0
- package/dist/_chunks/hu-sNV_yLYy.js.map +1 -0
- package/dist/_chunks/id-B5Ser98A.js +160 -0
- package/dist/{admin/chunks/it-BAHrwmYS.js.map → _chunks/id-B5Ser98A.js.map} +1 -1
- package/dist/_chunks/id-BtwA9WJT.mjs +160 -0
- package/dist/_chunks/id-BtwA9WJT.mjs.map +1 -0
- package/dist/_chunks/index-CIIIuVmx.mjs +4481 -0
- package/dist/_chunks/index-CIIIuVmx.mjs.map +1 -0
- package/dist/_chunks/index-CwbxJQVl.js +4500 -0
- package/dist/_chunks/index-CwbxJQVl.js.map +1 -0
- package/dist/_chunks/it-BrVPqaf1.mjs +162 -0
- package/dist/_chunks/it-BrVPqaf1.mjs.map +1 -0
- package/dist/_chunks/it-DkBIs7vD.js +162 -0
- package/dist/{admin/chunks/id-D7V5S1rB.js.map → _chunks/it-DkBIs7vD.js.map} +1 -1
- package/dist/_chunks/ja-7sfIbjxE.js +196 -0
- package/dist/{admin/chunks/it-CQFpa_Dc.js.map → _chunks/ja-7sfIbjxE.js.map} +1 -1
- package/dist/_chunks/ja-BHqhDq4V.mjs +196 -0
- package/dist/_chunks/ja-BHqhDq4V.mjs.map +1 -0
- package/dist/_chunks/ko-HVQRlfUI.mjs +195 -0
- package/dist/_chunks/ko-HVQRlfUI.mjs.map +1 -0
- package/dist/_chunks/ko-woFZPmLk.js +195 -0
- package/dist/{admin/chunks/es-DkoWSExG.js.map → _chunks/ko-woFZPmLk.js.map} +1 -1
- package/dist/_chunks/layout-B1sUBgaT.js +488 -0
- package/dist/_chunks/layout-B1sUBgaT.js.map +1 -0
- package/dist/_chunks/layout-CpUqPtOS.mjs +471 -0
- package/dist/_chunks/layout-CpUqPtOS.mjs.map +1 -0
- package/dist/_chunks/ml-BihZwQit.mjs +200 -0
- package/dist/_chunks/ml-BihZwQit.mjs.map +1 -0
- package/dist/_chunks/ml-C2W8N8k1.js +200 -0
- package/dist/_chunks/ml-C2W8N8k1.js.map +1 -0
- package/dist/_chunks/ms-BuFotyP_.js +144 -0
- package/dist/{admin/chunks/cs-BJFxwIWj.js.map → _chunks/ms-BuFotyP_.js.map} +1 -1
- package/dist/_chunks/ms-m_WjyWx7.mjs +144 -0
- package/dist/_chunks/ms-m_WjyWx7.mjs.map +1 -0
- package/dist/_chunks/nl-D4R9gHx5.mjs +202 -0
- package/dist/_chunks/nl-D4R9gHx5.mjs.map +1 -0
- package/dist/_chunks/nl-bbEOHChV.js +202 -0
- package/dist/_chunks/nl-bbEOHChV.js.map +1 -0
- package/dist/_chunks/objects-BcXOv6_9.js +47 -0
- package/dist/_chunks/objects-BcXOv6_9.js.map +1 -0
- package/dist/_chunks/objects-D6yBsdmx.mjs +45 -0
- package/dist/_chunks/objects-D6yBsdmx.mjs.map +1 -0
- package/dist/_chunks/pl-sbx9mSt_.mjs +199 -0
- package/dist/_chunks/pl-sbx9mSt_.mjs.map +1 -0
- package/dist/_chunks/pl-uzwG-hk7.js +199 -0
- package/dist/{admin/chunks/ca-DviY7mRj.js.map → _chunks/pl-uzwG-hk7.js.map} +1 -1
- package/dist/_chunks/pt-BR-BiOz37D9.js +201 -0
- package/dist/{admin/chunks/pt-BR-CcotyBGJ.js.map → _chunks/pt-BR-BiOz37D9.js.map} +1 -1
- package/dist/_chunks/pt-BR-C71iDxnh.mjs +201 -0
- package/dist/_chunks/pt-BR-C71iDxnh.mjs.map +1 -0
- package/dist/_chunks/pt-BsaFvS8-.mjs +95 -0
- package/dist/_chunks/pt-BsaFvS8-.mjs.map +1 -0
- package/dist/_chunks/pt-CeXQuq50.js +95 -0
- package/dist/_chunks/pt-CeXQuq50.js.map +1 -0
- package/dist/_chunks/relations-B6L5kXX8.js +133 -0
- package/dist/_chunks/relations-B6L5kXX8.js.map +1 -0
- package/dist/_chunks/relations-DU-iUzo_.mjs +134 -0
- package/dist/_chunks/relations-DU-iUzo_.mjs.map +1 -0
- package/dist/_chunks/ru-BE6A4Exp.mjs +231 -0
- package/dist/{admin/chunks/ar-DeQBSsfl.js.map → _chunks/ru-BE6A4Exp.mjs.map} +1 -1
- package/dist/_chunks/ru-BT3ybNny.js +231 -0
- package/dist/{admin/chunks/ru-CB4BUyQp.js.map → _chunks/ru-BT3ybNny.js.map} +1 -1
- package/dist/_chunks/sa-CcvkYInH.js +200 -0
- package/dist/_chunks/sa-CcvkYInH.js.map +1 -0
- package/dist/_chunks/sa-Dag0k-Z8.mjs +200 -0
- package/dist/_chunks/sa-Dag0k-Z8.mjs.map +1 -0
- package/dist/_chunks/sk-BFg-R8qJ.mjs +202 -0
- package/dist/_chunks/sk-BFg-R8qJ.mjs.map +1 -0
- package/dist/_chunks/sk-CvY09Xjv.js +202 -0
- package/dist/_chunks/sk-CvY09Xjv.js.map +1 -0
- package/dist/_chunks/sv-CUnfWGsh.mjs +202 -0
- package/dist/_chunks/sv-CUnfWGsh.mjs.map +1 -0
- package/dist/_chunks/sv-MYDuzgvT.js +202 -0
- package/dist/_chunks/sv-MYDuzgvT.js.map +1 -0
- package/dist/_chunks/th-BqbI8lIT.mjs +148 -0
- package/dist/_chunks/th-BqbI8lIT.mjs.map +1 -0
- package/dist/_chunks/th-D9_GfAjc.js +148 -0
- package/dist/{admin/chunks/ms-CvSC0OdG.js.map → _chunks/th-D9_GfAjc.js.map} +1 -1
- package/dist/_chunks/tr-CgeK3wJM.mjs +199 -0
- package/dist/_chunks/tr-CgeK3wJM.mjs.map +1 -0
- package/dist/_chunks/tr-D9UH-O_R.js +199 -0
- package/dist/_chunks/tr-D9UH-O_R.js.map +1 -0
- package/dist/_chunks/uk-C8EiqJY7.js +144 -0
- package/dist/{admin/chunks/ms-Bh09NFff.js.map → _chunks/uk-C8EiqJY7.js.map} +1 -1
- package/dist/_chunks/uk-CR-zDhAY.mjs +144 -0
- package/dist/_chunks/uk-CR-zDhAY.mjs.map +1 -0
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js +245 -0
- package/dist/_chunks/useDragAndDrop-BMtgCYzL.js.map +1 -0
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs +228 -0
- package/dist/_chunks/useDragAndDrop-DJ6jqvZN.mjs.map +1 -0
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs +29 -0
- package/dist/_chunks/usePrev-CZGy2Vjf.mjs.map +1 -0
- package/dist/_chunks/usePrev-D5J_2fEu.js +28 -0
- package/dist/_chunks/usePrev-D5J_2fEu.js.map +1 -0
- package/dist/_chunks/vi-CJlYDheJ.js +111 -0
- package/dist/{admin/chunks/vi-CvBGlTjr.js.map → _chunks/vi-CJlYDheJ.js.map} +1 -1
- package/dist/_chunks/vi-DUXIk_fw.mjs +111 -0
- package/dist/_chunks/vi-DUXIk_fw.mjs.map +1 -0
- package/dist/_chunks/zh-BWZspA60.mjs +209 -0
- package/dist/_chunks/zh-BWZspA60.mjs.map +1 -0
- package/dist/_chunks/zh-CQQfszqR.js +209 -0
- package/dist/{admin/chunks/ca-ClDTvatJ.js.map → _chunks/zh-CQQfszqR.js.map} +1 -1
- package/dist/_chunks/zh-Hans-9kOncHGw.js +952 -0
- package/dist/{admin/chunks/zh-Hans-CI0HKio3.js.map → _chunks/zh-Hans-9kOncHGw.js.map} +1 -1
- package/dist/_chunks/zh-Hans-BPQcRIyH.mjs +952 -0
- package/dist/{admin/chunks/zh-Hans-JVK9x7xr.js.map → _chunks/zh-Hans-BPQcRIyH.mjs.map} +1 -1
- package/dist/admin/index.js +4 -23
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +13 -16
- 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 +1 -0
- package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/Blocks/utils/prismLanguages.d.ts +49 -0
- package/dist/admin/src/preview/components/PreviewContent.d.ts +1 -2
- package/dist/admin/src/preview/components/PreviewHeader.d.ts +1 -2
- package/dist/admin/src/preview/index.d.ts +3 -2
- package/dist/server/index.js +4396 -5468
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +4368 -5442
- 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 +1 -0
- package/dist/shared/contracts/components.d.ts +1 -0
- package/dist/shared/contracts/content-types.d.ts +1 -0
- package/dist/shared/contracts/history-versions.d.ts +1 -0
- package/dist/shared/contracts/index.d.ts +1 -0
- package/dist/shared/contracts/init.d.ts +1 -0
- package/dist/shared/contracts/preview.d.ts +1 -0
- package/dist/shared/contracts/relations.d.ts +2 -1
- package/dist/shared/contracts/relations.d.ts.map +1 -1
- package/dist/shared/contracts/review-workflows.d.ts +1 -0
- package/dist/shared/contracts/single-types.d.ts +1 -0
- package/dist/shared/contracts/uid.d.ts +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +24 -35
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/index.mjs +25 -34
- package/dist/shared/index.mjs.map +1 -1
- package/package.json +10 -13
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.js +0 -80
- package/dist/admin/chunks/CardDragPreview-DwuraT0K.js.map +0 -1
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js +0 -82
- package/dist/admin/chunks/CardDragPreview-_dubYgXO.js.map +0 -1
- package/dist/admin/chunks/ComponentConfigurationPage-DXwOtpq1.js +0 -298
- package/dist/admin/chunks/ComponentConfigurationPage-DXwOtpq1.js.map +0 -1
- package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js +0 -276
- package/dist/admin/chunks/ComponentConfigurationPage-DhYZp4nN.js.map +0 -1
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js +0 -153
- package/dist/admin/chunks/ComponentIcon-BZcTc4rj.js.map +0 -1
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js +0 -176
- package/dist/admin/chunks/ComponentIcon-C-EjOUPA.js.map +0 -1
- package/dist/admin/chunks/EditConfigurationPage-D0Ng758X.js +0 -180
- package/dist/admin/chunks/EditConfigurationPage-D0Ng758X.js.map +0 -1
- package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js +0 -158
- package/dist/admin/chunks/EditConfigurationPage-DDuPch5d.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-jCZnUuCR.js +0 -265
- package/dist/admin/chunks/EditViewPage-jCZnUuCR.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-zSnDwLz3.js +0 -288
- package/dist/admin/chunks/EditViewPage-zSnDwLz3.js.map +0 -1
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js +0 -56
- package/dist/admin/chunks/FieldTypeIcon-BY6MrVF4.js.map +0 -1
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js +0 -58
- package/dist/admin/chunks/FieldTypeIcon-Bxh-7Jin.js.map +0 -1
- package/dist/admin/chunks/Form-BEqiuSvQ.js +0 -978
- package/dist/admin/chunks/Form-BEqiuSvQ.js.map +0 -1
- package/dist/admin/chunks/Form-CZmB6JIg.js +0 -955
- package/dist/admin/chunks/Form-CZmB6JIg.js.map +0 -1
- package/dist/admin/chunks/History-BlLKDZSw.js +0 -1331
- package/dist/admin/chunks/History-BlLKDZSw.js.map +0 -1
- package/dist/admin/chunks/History-CPYXgxkS.js +0 -1308
- package/dist/admin/chunks/History-CPYXgxkS.js.map +0 -1
- package/dist/admin/chunks/Input-CLX3C5DI.js +0 -6711
- package/dist/admin/chunks/Input-CLX3C5DI.js.map +0 -1
- package/dist/admin/chunks/Input-DiR2Xfa7.js +0 -6742
- package/dist/admin/chunks/Input-DiR2Xfa7.js.map +0 -1
- package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js +0 -795
- package/dist/admin/chunks/ListConfigurationPage-CNvotSqe.js.map +0 -1
- package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js +0 -818
- package/dist/admin/chunks/ListConfigurationPage-DdTp-HxB.js.map +0 -1
- package/dist/admin/chunks/ListViewPage-BtXYjEYz.js +0 -1154
- package/dist/admin/chunks/ListViewPage-BtXYjEYz.js.map +0 -1
- package/dist/admin/chunks/ListViewPage-MJNfQTp-.js +0 -1132
- package/dist/admin/chunks/ListViewPage-MJNfQTp-.js.map +0 -1
- package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js +0 -57
- package/dist/admin/chunks/NoContentTypePage-BJrZvYPY.js.map +0 -1
- package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js +0 -59
- package/dist/admin/chunks/NoContentTypePage-CVvVpwj4.js.map +0 -1
- package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js +0 -36
- package/dist/admin/chunks/NoPermissionsPage-BulvG4hB.js.map +0 -1
- package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js +0 -38
- package/dist/admin/chunks/NoPermissionsPage-C5yWg70d.js.map +0 -1
- package/dist/admin/chunks/Preview-DEuQgQg2.js +0 -482
- package/dist/admin/chunks/Preview-DEuQgQg2.js.map +0 -1
- package/dist/admin/chunks/Preview-H74FQ9Cq.js +0 -504
- package/dist/admin/chunks/Preview-H74FQ9Cq.js.map +0 -1
- package/dist/admin/chunks/Relations-C8jbZPVK.js +0 -827
- package/dist/admin/chunks/Relations-C8jbZPVK.js.map +0 -1
- package/dist/admin/chunks/Relations-mxOUS7TJ.js +0 -853
- package/dist/admin/chunks/Relations-mxOUS7TJ.js.map +0 -1
- package/dist/admin/chunks/ar-DckYq_WK.js +0 -222
- package/dist/admin/chunks/ar-DeQBSsfl.js +0 -227
- package/dist/admin/chunks/ca-ClDTvatJ.js +0 -202
- package/dist/admin/chunks/ca-DviY7mRj.js +0 -197
- package/dist/admin/chunks/cs-BJFxwIWj.js +0 -126
- package/dist/admin/chunks/cs-C7OSYFQ7.js +0 -122
- package/dist/admin/chunks/de-5QRlDHyR.js +0 -195
- package/dist/admin/chunks/de-CbImAUA5.js +0 -200
- package/dist/admin/chunks/en-C1CjdAtC.js +0 -313
- package/dist/admin/chunks/en-LfhocNG2.js +0 -308
- package/dist/admin/chunks/es-C8vLuvZL.js +0 -197
- package/dist/admin/chunks/es-DkoWSExG.js +0 -192
- package/dist/admin/chunks/eu-BG1xX7HK.js +0 -198
- package/dist/admin/chunks/eu-BG1xX7HK.js.map +0 -1
- package/dist/admin/chunks/eu-BJW3AvXu.js +0 -203
- package/dist/admin/chunks/eu-BJW3AvXu.js.map +0 -1
- package/dist/admin/chunks/fr-CFdRaRVj.js +0 -215
- package/dist/admin/chunks/fr-CFdRaRVj.js.map +0 -1
- package/dist/admin/chunks/fr-gQSilC7w.js +0 -220
- package/dist/admin/chunks/fr-gQSilC7w.js.map +0 -1
- package/dist/admin/chunks/gu-D5MMMXRs.js +0 -196
- package/dist/admin/chunks/gu-D5MMMXRs.js.map +0 -1
- package/dist/admin/chunks/gu-DPU4wyx7.js +0 -201
- package/dist/admin/chunks/gu-DPU4wyx7.js.map +0 -1
- package/dist/admin/chunks/hi-Dp4omeBb.js +0 -201
- package/dist/admin/chunks/hi-Dp4omeBb.js.map +0 -1
- package/dist/admin/chunks/hi-lp17SCjr.js +0 -196
- package/dist/admin/chunks/hi-lp17SCjr.js.map +0 -1
- package/dist/admin/chunks/hooks-D-sOYd1s.js.map +0 -1
- package/dist/admin/chunks/hooks-DMvik5y_.js +0 -7
- package/dist/admin/chunks/hooks-DMvik5y_.js.map +0 -1
- package/dist/admin/chunks/hu-CLka1U2C.js +0 -198
- package/dist/admin/chunks/hu-CLka1U2C.js.map +0 -1
- package/dist/admin/chunks/hu-CtFJuhTd.js +0 -203
- package/dist/admin/chunks/hu-CtFJuhTd.js.map +0 -1
- package/dist/admin/chunks/id-D7V5S1rB.js +0 -161
- package/dist/admin/chunks/id-USfY9m1g.js +0 -156
- package/dist/admin/chunks/id-USfY9m1g.js.map +0 -1
- package/dist/admin/chunks/index-BRlRBRLb.js +0 -5350
- package/dist/admin/chunks/index-BRlRBRLb.js.map +0 -1
- package/dist/admin/chunks/index-ZIwOPk6p.js +0 -5416
- package/dist/admin/chunks/index-ZIwOPk6p.js.map +0 -1
- package/dist/admin/chunks/it-BAHrwmYS.js +0 -158
- package/dist/admin/chunks/it-CQFpa_Dc.js +0 -163
- package/dist/admin/chunks/ja-BWKmBJFT.js +0 -192
- package/dist/admin/chunks/ja-BWKmBJFT.js.map +0 -1
- package/dist/admin/chunks/ja-jdQM-B79.js +0 -197
- package/dist/admin/chunks/ja-jdQM-B79.js.map +0 -1
- package/dist/admin/chunks/ko-CgADGBNt.js +0 -191
- package/dist/admin/chunks/ko-CgADGBNt.js.map +0 -1
- package/dist/admin/chunks/ko-k46sEyzt.js +0 -196
- package/dist/admin/chunks/ko-k46sEyzt.js.map +0 -1
- package/dist/admin/chunks/layout-B3-guCPG.js +0 -598
- package/dist/admin/chunks/layout-B3-guCPG.js.map +0 -1
- package/dist/admin/chunks/layout-ameRNiAM.js +0 -618
- package/dist/admin/chunks/layout-ameRNiAM.js.map +0 -1
- package/dist/admin/chunks/ml-CnhCfOn_.js +0 -196
- package/dist/admin/chunks/ml-CnhCfOn_.js.map +0 -1
- package/dist/admin/chunks/ml-DqxPwODx.js +0 -201
- package/dist/admin/chunks/ml-DqxPwODx.js.map +0 -1
- package/dist/admin/chunks/ms-Bh09NFff.js +0 -140
- package/dist/admin/chunks/ms-CvSC0OdG.js +0 -145
- package/dist/admin/chunks/nl-BEubhS8C.js +0 -203
- package/dist/admin/chunks/nl-BEubhS8C.js.map +0 -1
- package/dist/admin/chunks/nl-C8HYflTc.js +0 -198
- package/dist/admin/chunks/nl-C8HYflTc.js.map +0 -1
- package/dist/admin/chunks/objects-C3EebVVe.js +0 -76
- package/dist/admin/chunks/objects-C3EebVVe.js.map +0 -1
- package/dist/admin/chunks/objects-wl73iEma.js +0 -73
- package/dist/admin/chunks/objects-wl73iEma.js.map +0 -1
- package/dist/admin/chunks/pl-DWhGDzmM.js +0 -200
- package/dist/admin/chunks/pl-DWhGDzmM.js.map +0 -1
- package/dist/admin/chunks/pl-MFCZJZuZ.js +0 -195
- package/dist/admin/chunks/pl-MFCZJZuZ.js.map +0 -1
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js +0 -202
- package/dist/admin/chunks/pt-BR-CPtAXD-4.js.map +0 -1
- package/dist/admin/chunks/pt-BR-CcotyBGJ.js +0 -197
- package/dist/admin/chunks/pt-BoPxN80n.js +0 -96
- package/dist/admin/chunks/pt-BoPxN80n.js.map +0 -1
- package/dist/admin/chunks/pt-HbmgeiYO.js +0 -93
- package/dist/admin/chunks/pt-HbmgeiYO.js.map +0 -1
- package/dist/admin/chunks/relations-CmoFVrKj.js +0 -178
- package/dist/admin/chunks/relations-CmoFVrKj.js.map +0 -1
- package/dist/admin/chunks/relations-DYQAaXwZ.js +0 -173
- package/dist/admin/chunks/relations-DYQAaXwZ.js.map +0 -1
- package/dist/admin/chunks/ru-C0op0ALG.js +0 -232
- package/dist/admin/chunks/ru-C0op0ALG.js.map +0 -1
- package/dist/admin/chunks/ru-CB4BUyQp.js +0 -230
- package/dist/admin/chunks/sa-B_FuPyMw.js +0 -201
- package/dist/admin/chunks/sa-B_FuPyMw.js.map +0 -1
- package/dist/admin/chunks/sa-n_aPA-pU.js +0 -196
- package/dist/admin/chunks/sa-n_aPA-pU.js.map +0 -1
- package/dist/admin/chunks/sk-D_iXML2C.js +0 -203
- package/dist/admin/chunks/sk-D_iXML2C.js.map +0 -1
- package/dist/admin/chunks/sk-tn_BDjE2.js +0 -198
- package/dist/admin/chunks/sk-tn_BDjE2.js.map +0 -1
- package/dist/admin/chunks/sv-BstBC1Yp.js +0 -203
- package/dist/admin/chunks/sv-BstBC1Yp.js.map +0 -1
- package/dist/admin/chunks/sv-cq4ZrQRd.js +0 -198
- package/dist/admin/chunks/sv-cq4ZrQRd.js.map +0 -1
- package/dist/admin/chunks/th-lXoOCqPC.js +0 -149
- package/dist/admin/chunks/th-lXoOCqPC.js.map +0 -1
- package/dist/admin/chunks/th-mUH7hEtc.js +0 -144
- package/dist/admin/chunks/th-mUH7hEtc.js.map +0 -1
- package/dist/admin/chunks/tr-CkS6sLIE.js +0 -200
- package/dist/admin/chunks/tr-CkS6sLIE.js.map +0 -1
- package/dist/admin/chunks/tr-Yt38daxh.js +0 -195
- package/dist/admin/chunks/tr-Yt38daxh.js.map +0 -1
- package/dist/admin/chunks/uk-B24MoTVg.js +0 -145
- package/dist/admin/chunks/uk-B24MoTVg.js.map +0 -1
- package/dist/admin/chunks/uk-Cpgmm7gE.js +0 -140
- package/dist/admin/chunks/uk-Cpgmm7gE.js.map +0 -1
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js +0 -247
- package/dist/admin/chunks/useDragAndDrop-HYwNDExe.js.map +0 -1
- package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js +0 -271
- package/dist/admin/chunks/useDragAndDrop-gcqEJMnO.js.map +0 -1
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js +0 -18
- package/dist/admin/chunks/usePrev-Bjw2dhmq.js.map +0 -1
- package/dist/admin/chunks/usePrev-DIYl-IAL.js +0 -21
- package/dist/admin/chunks/usePrev-DIYl-IAL.js.map +0 -1
- package/dist/admin/chunks/vi-BGr1X_HZ.js +0 -112
- package/dist/admin/chunks/vi-BGr1X_HZ.js.map +0 -1
- package/dist/admin/chunks/vi-CvBGlTjr.js +0 -108
- package/dist/admin/chunks/zh-BmF-sHaT.js +0 -205
- package/dist/admin/chunks/zh-BmF-sHaT.js.map +0 -1
- package/dist/admin/chunks/zh-DwFu_Kfj.js +0 -210
- package/dist/admin/chunks/zh-DwFu_Kfj.js.map +0 -1
- package/dist/admin/chunks/zh-Hans-CI0HKio3.js +0 -934
- package/dist/admin/chunks/zh-Hans-JVK9x7xr.js +0 -953
@@ -0,0 +1,50 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { useStrapiApp } from "@strapi/admin/strapi-admin";
|
3
|
+
import { Box } from "@strapi/design-system";
|
4
|
+
import { NumberField, BooleanField, DateField, EmailField, EnumerationField, MediaField, PasswordField, RelationField, TextField, JsonField, UidField, ComponentField, DynamicZoneField, BlocksField } from "@strapi/icons/symbols";
|
5
|
+
const iconByTypes = {
|
6
|
+
biginteger: /* @__PURE__ */ jsx(NumberField, {}),
|
7
|
+
boolean: /* @__PURE__ */ jsx(BooleanField, {}),
|
8
|
+
date: /* @__PURE__ */ jsx(DateField, {}),
|
9
|
+
datetime: /* @__PURE__ */ jsx(DateField, {}),
|
10
|
+
decimal: /* @__PURE__ */ jsx(NumberField, {}),
|
11
|
+
email: /* @__PURE__ */ jsx(EmailField, {}),
|
12
|
+
enumeration: /* @__PURE__ */ jsx(EnumerationField, {}),
|
13
|
+
float: /* @__PURE__ */ jsx(NumberField, {}),
|
14
|
+
integer: /* @__PURE__ */ jsx(NumberField, {}),
|
15
|
+
media: /* @__PURE__ */ jsx(MediaField, {}),
|
16
|
+
password: /* @__PURE__ */ jsx(PasswordField, {}),
|
17
|
+
relation: /* @__PURE__ */ jsx(RelationField, {}),
|
18
|
+
string: /* @__PURE__ */ jsx(TextField, {}),
|
19
|
+
text: /* @__PURE__ */ jsx(TextField, {}),
|
20
|
+
richtext: /* @__PURE__ */ jsx(TextField, {}),
|
21
|
+
time: /* @__PURE__ */ jsx(DateField, {}),
|
22
|
+
timestamp: /* @__PURE__ */ jsx(DateField, {}),
|
23
|
+
json: /* @__PURE__ */ jsx(JsonField, {}),
|
24
|
+
uid: /* @__PURE__ */ jsx(UidField, {}),
|
25
|
+
component: /* @__PURE__ */ jsx(ComponentField, {}),
|
26
|
+
dynamiczone: /* @__PURE__ */ jsx(DynamicZoneField, {}),
|
27
|
+
blocks: /* @__PURE__ */ jsx(BlocksField, {})
|
28
|
+
};
|
29
|
+
const FieldTypeIcon = ({ type, customFieldUid }) => {
|
30
|
+
const getCustomField = useStrapiApp("FieldTypeIcon", (state) => state.customFields.get);
|
31
|
+
if (!type) {
|
32
|
+
return null;
|
33
|
+
}
|
34
|
+
let Compo = iconByTypes[type];
|
35
|
+
if (customFieldUid) {
|
36
|
+
const customField = getCustomField(customFieldUid);
|
37
|
+
const CustomFieldIcon = customField?.icon;
|
38
|
+
if (CustomFieldIcon) {
|
39
|
+
Compo = /* @__PURE__ */ jsx(Box, { marginRight: 3, width: 7, height: 6, children: /* @__PURE__ */ jsx(CustomFieldIcon, {}) });
|
40
|
+
}
|
41
|
+
}
|
42
|
+
if (!iconByTypes[type]) {
|
43
|
+
return null;
|
44
|
+
}
|
45
|
+
return Compo;
|
46
|
+
};
|
47
|
+
export {
|
48
|
+
FieldTypeIcon as F
|
49
|
+
};
|
50
|
+
//# sourceMappingURL=FieldTypeIcon-CMlNO8PE.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldTypeIcon-CMlNO8PE.mjs","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":[],"mappings":";;;;AAuBA,MAAM,cAAiE;AAAA,EACrE,gCAAa,aAAY,EAAA;AAAA,EACzB,6BAAU,cAAa,EAAA;AAAA,EACvB,0BAAO,WAAU,EAAA;AAAA,EACjB,8BAAW,WAAU,EAAA;AAAA,EACrB,6BAAU,aAAY,EAAA;AAAA,EACtB,2BAAQ,YAAW,EAAA;AAAA,EACnB,iCAAc,kBAAiB,EAAA;AAAA,EAC/B,2BAAQ,aAAY,EAAA;AAAA,EACpB,6BAAU,aAAY,EAAA;AAAA,EACtB,2BAAQ,YAAW,EAAA;AAAA,EACnB,8BAAW,eAAc,EAAA;AAAA,EACzB,8BAAW,eAAc,EAAA;AAAA,EACzB,4BAAS,WAAU,EAAA;AAAA,EACnB,0BAAO,WAAU,EAAA;AAAA,EACjB,8BAAW,WAAU,EAAA;AAAA,EACrB,0BAAO,WAAU,EAAA;AAAA,EACjB,+BAAY,WAAU,EAAA;AAAA,EACtB,0BAAO,WAAU,EAAA;AAAA,EACjB,yBAAM,UAAS,EAAA;AAAA,EACf,+BAAY,gBAAe,EAAA;AAAA,EAC3B,iCAAc,kBAAiB,EAAA;AAAA,EAC/B,4BAAS,aAAY,CAAA,CAAA;AACvB;AAOA,MAAM,gBAAgB,CAAC,EAAE,MAAM,qBAAyC;AACtE,QAAM,iBAAiB,aAAa,iBAAiB,CAAC,UAAU,MAAM,aAAa,GAAG;AAEtF,MAAI,CAAC,MAAM;AACF,WAAA;AAAA,EAAA;AAGL,MAAA,QAAQ,YAAY,IAAI;AAE5B,MAAI,gBAAgB;AACZ,UAAA,cAAc,eAAe,cAAc;AACjD,UAAM,kBAAkB,aAAa;AAErC,QAAI,iBAAiB;AAEjB,cAAA,oBAAC,KAAI,EAAA,aAAa,GAAG,OAAO,GAAG,QAAQ,GACrC,UAAC,oBAAA,iBAAA,CAAA,CAAgB,EACnB,CAAA;AAAA,IAAA;AAAA,EAEJ;AAGE,MAAA,CAAC,YAAY,IAAI,GAAG;AACf,WAAA;AAAA,EAAA;AAGF,SAAA;AACT;"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
3
|
+
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
4
|
+
const designSystem = require("@strapi/design-system");
|
5
|
+
const Symbols = require("@strapi/icons/symbols");
|
6
|
+
const iconByTypes = {
|
7
|
+
biginteger: /* @__PURE__ */ jsxRuntime.jsx(Symbols.NumberField, {}),
|
8
|
+
boolean: /* @__PURE__ */ jsxRuntime.jsx(Symbols.BooleanField, {}),
|
9
|
+
date: /* @__PURE__ */ jsxRuntime.jsx(Symbols.DateField, {}),
|
10
|
+
datetime: /* @__PURE__ */ jsxRuntime.jsx(Symbols.DateField, {}),
|
11
|
+
decimal: /* @__PURE__ */ jsxRuntime.jsx(Symbols.NumberField, {}),
|
12
|
+
email: /* @__PURE__ */ jsxRuntime.jsx(Symbols.EmailField, {}),
|
13
|
+
enumeration: /* @__PURE__ */ jsxRuntime.jsx(Symbols.EnumerationField, {}),
|
14
|
+
float: /* @__PURE__ */ jsxRuntime.jsx(Symbols.NumberField, {}),
|
15
|
+
integer: /* @__PURE__ */ jsxRuntime.jsx(Symbols.NumberField, {}),
|
16
|
+
media: /* @__PURE__ */ jsxRuntime.jsx(Symbols.MediaField, {}),
|
17
|
+
password: /* @__PURE__ */ jsxRuntime.jsx(Symbols.PasswordField, {}),
|
18
|
+
relation: /* @__PURE__ */ jsxRuntime.jsx(Symbols.RelationField, {}),
|
19
|
+
string: /* @__PURE__ */ jsxRuntime.jsx(Symbols.TextField, {}),
|
20
|
+
text: /* @__PURE__ */ jsxRuntime.jsx(Symbols.TextField, {}),
|
21
|
+
richtext: /* @__PURE__ */ jsxRuntime.jsx(Symbols.TextField, {}),
|
22
|
+
time: /* @__PURE__ */ jsxRuntime.jsx(Symbols.DateField, {}),
|
23
|
+
timestamp: /* @__PURE__ */ jsxRuntime.jsx(Symbols.DateField, {}),
|
24
|
+
json: /* @__PURE__ */ jsxRuntime.jsx(Symbols.JsonField, {}),
|
25
|
+
uid: /* @__PURE__ */ jsxRuntime.jsx(Symbols.UidField, {}),
|
26
|
+
component: /* @__PURE__ */ jsxRuntime.jsx(Symbols.ComponentField, {}),
|
27
|
+
dynamiczone: /* @__PURE__ */ jsxRuntime.jsx(Symbols.DynamicZoneField, {}),
|
28
|
+
blocks: /* @__PURE__ */ jsxRuntime.jsx(Symbols.BlocksField, {})
|
29
|
+
};
|
30
|
+
const FieldTypeIcon = ({ type, customFieldUid }) => {
|
31
|
+
const getCustomField = strapiAdmin.useStrapiApp("FieldTypeIcon", (state) => state.customFields.get);
|
32
|
+
if (!type) {
|
33
|
+
return null;
|
34
|
+
}
|
35
|
+
let Compo = iconByTypes[type];
|
36
|
+
if (customFieldUid) {
|
37
|
+
const customField = getCustomField(customFieldUid);
|
38
|
+
const CustomFieldIcon = customField?.icon;
|
39
|
+
if (CustomFieldIcon) {
|
40
|
+
Compo = /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { marginRight: 3, width: 7, height: 6, children: /* @__PURE__ */ jsxRuntime.jsx(CustomFieldIcon, {}) });
|
41
|
+
}
|
42
|
+
}
|
43
|
+
if (!iconByTypes[type]) {
|
44
|
+
return null;
|
45
|
+
}
|
46
|
+
return Compo;
|
47
|
+
};
|
48
|
+
exports.FieldTypeIcon = FieldTypeIcon;
|
49
|
+
//# sourceMappingURL=FieldTypeIcon-Dnwq_IRF.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldTypeIcon-Dnwq_IRF.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":["NumberField","BooleanField","DateField","EmailField","EnumerationField","MediaField","PasswordField","RelationField","TextField","JsonField","UidField","ComponentField","DynamicZoneField","BlocksField","useStrapiApp","jsx","Box"],"mappings":";;;;;AAuBA,MAAM,cAAiE;AAAA,EACrE,2CAAaA,QAAY,aAAA,EAAA;AAAA,EACzB,wCAAUC,QAAa,cAAA,EAAA;AAAA,EACvB,qCAAOC,QAAU,WAAA,EAAA;AAAA,EACjB,yCAAWA,QAAU,WAAA,EAAA;AAAA,EACrB,wCAAUF,QAAY,aAAA,EAAA;AAAA,EACtB,sCAAQG,QAAW,YAAA,EAAA;AAAA,EACnB,4CAAcC,QAAiB,kBAAA,EAAA;AAAA,EAC/B,sCAAQJ,QAAY,aAAA,EAAA;AAAA,EACpB,wCAAUA,QAAY,aAAA,EAAA;AAAA,EACtB,sCAAQK,QAAW,YAAA,EAAA;AAAA,EACnB,yCAAWC,QAAc,eAAA,EAAA;AAAA,EACzB,yCAAWC,QAAc,eAAA,EAAA;AAAA,EACzB,uCAASC,QAAU,WAAA,EAAA;AAAA,EACnB,qCAAOA,QAAU,WAAA,EAAA;AAAA,EACjB,yCAAWA,QAAU,WAAA,EAAA;AAAA,EACrB,qCAAON,QAAU,WAAA,EAAA;AAAA,EACjB,0CAAYA,QAAU,WAAA,EAAA;AAAA,EACtB,qCAAOO,QAAU,WAAA,EAAA;AAAA,EACjB,oCAAMC,QAAS,UAAA,EAAA;AAAA,EACf,0CAAYC,QAAe,gBAAA,EAAA;AAAA,EAC3B,4CAAcC,QAAiB,kBAAA,EAAA;AAAA,EAC/B,uCAASC,QAAAA,aAAY,CAAA,CAAA;AACvB;AAOA,MAAM,gBAAgB,CAAC,EAAE,MAAM,qBAAyC;AACtE,QAAM,iBAAiBC,YAAAA,aAAa,iBAAiB,CAAC,UAAU,MAAM,aAAa,GAAG;AAEtF,MAAI,CAAC,MAAM;AACF,WAAA;AAAA,EAAA;AAGL,MAAA,QAAQ,YAAY,IAAI;AAE5B,MAAI,gBAAgB;AACZ,UAAA,cAAc,eAAe,cAAc;AACjD,UAAM,kBAAkB,aAAa;AAErC,QAAI,iBAAiB;AAEjB,cAAAC,2BAAA,IAACC,aAAI,KAAA,EAAA,aAAa,GAAG,OAAO,GAAG,QAAQ,GACrC,UAACD,2BAAAA,IAAA,iBAAA,CAAA,CAAgB,EACnB,CAAA;AAAA,IAAA;AAAA,EAEJ;AAGE,MAAA,CAAC,YAAY,IAAI,GAAG;AACf,WAAA;AAAA,EAAA;AAGF,SAAA;AACT;;"}
|