@strapi/content-manager 0.0.0-experimental.cffeb3f30bb8beaa0d2a247ba56da461781c6690 → 0.0.0-experimental.d042f6a350fa3a48d61e7c56875e2a0a7ba3c8f5
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-9_4yUE9L.mjs +236 -0
- package/dist/_chunks/ComponentConfigurationPage-9_4yUE9L.mjs.map +1 -0
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.js +254 -0
- package/dist/_chunks/ComponentConfigurationPage-DBSh-kET.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-Bl_U2JgH.js +150 -0
- package/dist/_chunks/EditConfigurationPage-Bl_U2JgH.js.map +1 -0
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs +132 -0
- package/dist/_chunks/EditConfigurationPage-COe6hjPC.mjs.map +1 -0
- package/dist/_chunks/EditViewPage-D4yFJET6.js +209 -0
- package/dist/_chunks/EditViewPage-D4yFJET6.js.map +1 -0
- package/dist/_chunks/EditViewPage-DrmVmYN0.mjs +191 -0
- package/dist/_chunks/EditViewPage-DrmVmYN0.mjs.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-C4rSaGsz.js +778 -0
- package/dist/_chunks/Form-C4rSaGsz.js.map +1 -0
- package/dist/_chunks/Form-DamaxNpG.mjs +758 -0
- package/dist/_chunks/Form-DamaxNpG.mjs.map +1 -0
- package/dist/_chunks/History-D1PreDSY.mjs +999 -0
- package/dist/_chunks/History-D1PreDSY.mjs.map +1 -0
- package/dist/_chunks/History-DTm8UCCQ.js +1019 -0
- package/dist/_chunks/History-DTm8UCCQ.js.map +1 -0
- package/dist/_chunks/Input-B7sapvBG.js +5617 -0
- package/dist/_chunks/Input-B7sapvBG.js.map +1 -0
- package/dist/_chunks/Input-CZ1YvjHR.mjs +5585 -0
- package/dist/_chunks/Input-CZ1YvjHR.mjs.map +1 -0
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs +633 -0
- package/dist/_chunks/ListConfigurationPage-Bbi32isk.mjs.map +1 -0
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js +652 -0
- package/dist/_chunks/ListConfigurationPage-ysFMjKI3.js.map +1 -0
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs +854 -0
- package/dist/_chunks/ListViewPage-Bud_jBDQ.mjs.map +1 -0
- package/dist/_chunks/ListViewPage-DTuuxU3n.js +877 -0
- package/dist/_chunks/ListViewPage-DTuuxU3n.js.map +1 -0
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js +51 -0
- package/dist/_chunks/NoContentTypePage-CL7VVeYs.js.map +1 -0
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs +51 -0
- package/dist/_chunks/NoContentTypePage-DVhkugsf.mjs.map +1 -0
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs +23 -0
- package/dist/_chunks/NoPermissionsPage-CMdM-dCo.mjs.map +1 -0
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js +23 -0
- package/dist/_chunks/NoPermissionsPage-v7I599vC.js.map +1 -0
- package/dist/_chunks/Preview-BNuU0SuQ.mjs +287 -0
- package/dist/_chunks/Preview-BNuU0SuQ.mjs.map +1 -0
- package/dist/_chunks/Preview-Cxq-uI6D.js +305 -0
- package/dist/_chunks/Preview-Cxq-uI6D.js.map +1 -0
- package/dist/_chunks/Relations-C2Ahkrdg.mjs +728 -0
- package/dist/_chunks/Relations-C2Ahkrdg.mjs.map +1 -0
- package/dist/_chunks/Relations-CWS79QQn.js +747 -0
- package/dist/_chunks/Relations-CWS79QQn.js.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-DB7sPJVj.js.map → _chunks/en-BR48D_RH.js.map} +1 -1
- package/dist/_chunks/en-D65uIF6Y.mjs +312 -0
- package/dist/{admin/chunks/en-1xHet_GV.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-DQsvBb_N.js +4500 -0
- package/dist/_chunks/index-DQsvBb_N.js.map +1 -0
- package/dist/_chunks/index-ZKrsjv-2.mjs +4481 -0
- package/dist/_chunks/index-ZKrsjv-2.mjs.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-Cl0NhlQB.js +488 -0
- package/dist/_chunks/layout-Cl0NhlQB.js.map +1 -0
- package/dist/_chunks/layout-fQk1rMk9.mjs +471 -0
- package/dist/_chunks/layout-fQk1rMk9.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-BRfBxVbX.js +133 -0
- package/dist/_chunks/relations-BRfBxVbX.js.map +1 -0
- package/dist/_chunks/relations-BakOFl_1.mjs +134 -0
- package/dist/_chunks/relations-BakOFl_1.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/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-BqW-t7Lr.js +0 -276
- package/dist/admin/chunks/ComponentConfigurationPage-BqW-t7Lr.js.map +0 -1
- package/dist/admin/chunks/ComponentConfigurationPage-CM3vQxyp.js +0 -298
- package/dist/admin/chunks/ComponentConfigurationPage-CM3vQxyp.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-CIKO27N8.js +0 -180
- package/dist/admin/chunks/EditConfigurationPage-CIKO27N8.js.map +0 -1
- package/dist/admin/chunks/EditConfigurationPage-CYQ6mJWy.js +0 -158
- package/dist/admin/chunks/EditConfigurationPage-CYQ6mJWy.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-CRu2G4OS.js +0 -337
- package/dist/admin/chunks/EditViewPage-CRu2G4OS.js.map +0 -1
- package/dist/admin/chunks/EditViewPage-DaY9aMeu.js +0 -314
- package/dist/admin/chunks/EditViewPage-DaY9aMeu.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--7s-Wsw1.js +0 -978
- package/dist/admin/chunks/Form--7s-Wsw1.js.map +0 -1
- package/dist/admin/chunks/Form-CX_f1AUZ.js +0 -955
- package/dist/admin/chunks/Form-CX_f1AUZ.js.map +0 -1
- package/dist/admin/chunks/History-SRih7tGq.js +0 -1380
- package/dist/admin/chunks/History-SRih7tGq.js.map +0 -1
- package/dist/admin/chunks/History-VVVFEAnd.js +0 -1357
- package/dist/admin/chunks/History-VVVFEAnd.js.map +0 -1
- package/dist/admin/chunks/Input-B3wbR0pJ.js +0 -6754
- package/dist/admin/chunks/Input-B3wbR0pJ.js.map +0 -1
- package/dist/admin/chunks/Input-BIRb1gP2.js +0 -6785
- package/dist/admin/chunks/Input-BIRb1gP2.js.map +0 -1
- package/dist/admin/chunks/ListConfigurationPage-BMBxgLtZ.js +0 -795
- package/dist/admin/chunks/ListConfigurationPage-BMBxgLtZ.js.map +0 -1
- package/dist/admin/chunks/ListConfigurationPage-DBWZlkHs.js +0 -818
- package/dist/admin/chunks/ListConfigurationPage-DBWZlkHs.js.map +0 -1
- package/dist/admin/chunks/ListViewPage-9jad22KO.js +0 -1154
- package/dist/admin/chunks/ListViewPage-9jad22KO.js.map +0 -1
- package/dist/admin/chunks/ListViewPage-Dq2zuPYL.js +0 -1132
- package/dist/admin/chunks/ListViewPage-Dq2zuPYL.js.map +0 -1
- package/dist/admin/chunks/NoContentTypePage-B5xX6Br5.js +0 -59
- package/dist/admin/chunks/NoContentTypePage-B5xX6Br5.js.map +0 -1
- package/dist/admin/chunks/NoContentTypePage-BtpSxTZs.js +0 -57
- package/dist/admin/chunks/NoContentTypePage-BtpSxTZs.js.map +0 -1
- package/dist/admin/chunks/NoPermissionsPage-CRS0hARz.js +0 -38
- package/dist/admin/chunks/NoPermissionsPage-CRS0hARz.js.map +0 -1
- package/dist/admin/chunks/NoPermissionsPage-HnOCsRtG.js +0 -36
- package/dist/admin/chunks/NoPermissionsPage-HnOCsRtG.js.map +0 -1
- package/dist/admin/chunks/Preview-BcggSPwn.js +0 -435
- package/dist/admin/chunks/Preview-BcggSPwn.js.map +0 -1
- package/dist/admin/chunks/Preview-DRtWRrYn.js +0 -457
- package/dist/admin/chunks/Preview-DRtWRrYn.js.map +0 -1
- package/dist/admin/chunks/Relations-B1i77Jba.js +0 -826
- package/dist/admin/chunks/Relations-B1i77Jba.js.map +0 -1
- package/dist/admin/chunks/Relations-BDe2e0a7.js +0 -852
- package/dist/admin/chunks/Relations-BDe2e0a7.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-1xHet_GV.js +0 -312
- package/dist/admin/chunks/en-DB7sPJVj.js +0 -307
- 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-CqAyDOmo.js +0 -217
- package/dist/admin/chunks/fr-CqAyDOmo.js.map +0 -1
- package/dist/admin/chunks/fr-Dm1xiZI5.js +0 -212
- package/dist/admin/chunks/fr-Dm1xiZI5.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-CKZHZ3ir.js +0 -5339
- package/dist/admin/chunks/index-CKZHZ3ir.js.map +0 -1
- package/dist/admin/chunks/index-DfEfFmQC.js +0 -5273
- package/dist/admin/chunks/index-DfEfFmQC.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-BN6DSZ4t.js +0 -598
- package/dist/admin/chunks/layout-BN6DSZ4t.js.map +0 -1
- package/dist/admin/chunks/layout-CX-A0s3P.js +0 -618
- package/dist/admin/chunks/layout-CX-A0s3P.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-CuPmv-zR.js +0 -160
- package/dist/admin/chunks/relations-CuPmv-zR.js.map +0 -1
- package/dist/admin/chunks/relations-xwSNlsdc.js +0 -156
- package/dist/admin/chunks/relations-xwSNlsdc.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-CwGzb4ed.js +0 -38
- package/dist/admin/chunks/usePrev-CwGzb4ed.js.map +0 -1
- package/dist/admin/chunks/usePrev-tlgK0qPG.js +0 -34
- package/dist/admin/chunks/usePrev-tlgK0qPG.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;;"}
|