@blaze-cms/plugin-data-ui 0.146.0-node18.1 → 0.146.0-rc-eagle-3.0

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.
Files changed (231) hide show
  1. package/CHANGELOG.md +35 -12
  2. package/README.md +64 -0
  3. package/lib/components/EntityDataListing/EntityDataListing.js +21 -19
  4. package/lib/components/EntityDataListing/EntityDataListing.js.map +1 -1
  5. package/lib/components/EntityDataListing/index.js +2 -3
  6. package/lib/components/EntityDataListing/index.js.map +1 -1
  7. package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +18 -20
  8. package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -1
  9. package/lib/components/EntityManager/Entity/EntitiyNavLinks/index.js +2 -3
  10. package/lib/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +1 -1
  11. package/lib/components/EntityManager/Entity/Entity.js +290 -452
  12. package/lib/components/EntityManager/Entity/Entity.js.map +1 -1
  13. package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js +62 -66
  14. package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
  15. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +34 -50
  16. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
  17. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js +2 -3
  18. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +1 -1
  19. package/lib/components/EntityManager/Entity/EntityHeader/index.js +2 -3
  20. package/lib/components/EntityManager/Entity/EntityHeader/index.js.map +1 -1
  21. package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +20 -26
  22. package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +1 -1
  23. package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +20 -18
  24. package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
  25. package/lib/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js +34 -32
  26. package/lib/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -1
  27. package/lib/components/EntityManager/Entity/SideBarRelations/index.js +105 -150
  28. package/lib/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
  29. package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +24 -24
  30. package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
  31. package/lib/components/EntityManager/Entity/actions-handlers/create/index.js +2 -3
  32. package/lib/components/EntityManager/Entity/actions-handlers/create/index.js.map +1 -1
  33. package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js +34 -59
  34. package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
  35. package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js +29 -45
  36. package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
  37. package/lib/components/EntityManager/Entity/actions-handlers/delete/index.js +2 -3
  38. package/lib/components/EntityManager/Entity/actions-handlers/delete/index.js.map +1 -1
  39. package/lib/components/EntityManager/Entity/actions-handlers/index.js +7 -8
  40. package/lib/components/EntityManager/Entity/actions-handlers/index.js.map +1 -1
  41. package/lib/components/EntityManager/Entity/actions-handlers/shared/index.js +2 -3
  42. package/lib/components/EntityManager/Entity/actions-handlers/shared/index.js.map +1 -1
  43. package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js +36 -57
  44. package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
  45. package/lib/components/EntityManager/Entity/actions-handlers/update/index.js +2 -3
  46. package/lib/components/EntityManager/Entity/actions-handlers/update/index.js.map +1 -1
  47. package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js +47 -66
  48. package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
  49. package/lib/components/EntityManager/Entity/index.js +2 -3
  50. package/lib/components/EntityManager/Entity/index.js.map +1 -1
  51. package/lib/components/EntityManager/EntityManager.js +92 -166
  52. package/lib/components/EntityManager/EntityManager.js.map +1 -1
  53. package/lib/components/EntityManager/index.js +2 -3
  54. package/lib/components/EntityManager/index.js.map +1 -1
  55. package/lib/components/EntityManager/utils/RecordEditContext/index.js +3 -4
  56. package/lib/components/EntityManager/utils/RecordEditContext/index.js.map +1 -1
  57. package/lib/components/EntityManager/utils/data-mappers.js +34 -46
  58. package/lib/components/EntityManager/utils/data-mappers.js.map +1 -1
  59. package/lib/components/EntityManager/utils/entity.js +36 -75
  60. package/lib/components/EntityManager/utils/entity.js.map +1 -1
  61. package/lib/components/EntityManager/utils/entityAvailableActions.js +51 -110
  62. package/lib/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
  63. package/lib/components/EntityManager/utils/is-form-empty.js +6 -10
  64. package/lib/components/EntityManager/utils/is-form-empty.js.map +1 -1
  65. package/lib/components/EntityManager/utils/query.js +17 -10
  66. package/lib/components/EntityManager/utils/query.js.map +1 -1
  67. package/lib/components/InfoBoxes/InfoBoxTooltip.js +43 -0
  68. package/lib/components/InfoBoxes/InfoBoxTooltip.js.map +1 -0
  69. package/lib/components/InfoBoxes/InfoBoxes.js +19 -20
  70. package/lib/components/InfoBoxes/InfoBoxes.js.map +1 -1
  71. package/lib/components/InfoBoxes/container/InfoBoxContainer.js +27 -38
  72. package/lib/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -1
  73. package/lib/components/InfoBoxes/helpers/build-dynamic-query.js +21 -17
  74. package/lib/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
  75. package/lib/components/InfoBoxes/hooks/useData.js +33 -30
  76. package/lib/components/InfoBoxes/hooks/useData.js.map +1 -1
  77. package/lib/components/InfoBoxes/hooks/useInfoBox.js +10 -10
  78. package/lib/components/InfoBoxes/hooks/useInfoBox.js.map +1 -1
  79. package/lib/components/InfoBoxes/index.js +2 -3
  80. package/lib/components/InfoBoxes/index.js.map +1 -1
  81. package/lib/components/InfoBoxes/presentational/InfoBox.js +28 -32
  82. package/lib/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
  83. package/lib/components/InfoBoxes/presentational/InfoBoxLabel.js +11 -12
  84. package/lib/components/InfoBoxes/presentational/InfoBoxLabel.js.map +1 -1
  85. package/lib/components/InfoBoxes/presentational/InfoBoxValue.js +12 -12
  86. package/lib/components/InfoBoxes/presentational/InfoBoxValue.js.map +1 -1
  87. package/lib/components/ListingTable/ListingTable.js +164 -303
  88. package/lib/components/ListingTable/ListingTable.js.map +1 -1
  89. package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js +62 -40
  90. package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
  91. package/lib/components/ListingTable/ListingTableContent/index.js +2 -3
  92. package/lib/components/ListingTable/ListingTableContent/index.js.map +1 -1
  93. package/lib/components/ListingTable/SearchFilter/RelationMultiSelectFilter.js +182 -0
  94. package/lib/components/ListingTable/SearchFilter/RelationMultiSelectFilter.js.map +1 -0
  95. package/lib/components/ListingTable/SearchFilter/SearchContainer.js +505 -0
  96. package/lib/components/ListingTable/SearchFilter/SearchContainer.js.map +1 -0
  97. package/lib/components/ListingTable/SearchFilter/SearchFilter.js +53 -0
  98. package/lib/components/ListingTable/SearchFilter/SearchFilter.js.map +1 -0
  99. package/lib/components/ListingTable/SearchFilter/helpers.js +138 -0
  100. package/lib/components/ListingTable/SearchFilter/helpers.js.map +1 -0
  101. package/lib/components/ListingTable/SearchFilter/querys.js +13 -0
  102. package/lib/components/ListingTable/SearchFilter/querys.js.map +1 -0
  103. package/lib/components/ListingTable/TableActions/TableActions.js +27 -31
  104. package/lib/components/ListingTable/TableActions/TableActions.js.map +1 -1
  105. package/lib/components/ListingTable/TableActions/index.js +2 -3
  106. package/lib/components/ListingTable/TableActions/index.js.map +1 -1
  107. package/lib/components/ListingTable/index.js +2 -3
  108. package/lib/components/ListingTable/index.js.map +1 -1
  109. package/lib/components/ListingTable/mappers/populate-rows.js +104 -120
  110. package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
  111. package/lib/components/ListingTable/service/index.js +66 -84
  112. package/lib/components/ListingTable/service/index.js.map +1 -1
  113. package/lib/components/Tabs/index.js +27 -42
  114. package/lib/components/Tabs/index.js.map +1 -1
  115. package/lib/components/hooks/useCallbackDebounce.js +5 -9
  116. package/lib/components/hooks/useCallbackDebounce.js.map +1 -1
  117. package/lib/constants.js +31 -29
  118. package/lib/constants.js.map +1 -1
  119. package/lib/icons/ContentIcon.js +17 -20
  120. package/lib/icons/ContentIcon.js.map +1 -1
  121. package/lib/icons/SettingsIcon.js +12 -15
  122. package/lib/icons/SettingsIcon.js.map +1 -1
  123. package/lib/icons/TaxonomyIcon.js +15 -18
  124. package/lib/icons/TaxonomyIcon.js.map +1 -1
  125. package/lib/icons/UsersIcon.js +11 -14
  126. package/lib/icons/UsersIcon.js.map +1 -1
  127. package/lib/icons/index.js +8 -9
  128. package/lib/icons/index.js.map +1 -1
  129. package/lib/index.js +88 -121
  130. package/lib/index.js.map +1 -1
  131. package/lib/utils/add-content-menu-items.js +67 -93
  132. package/lib/utils/add-content-menu-items.js.map +1 -1
  133. package/lib/utils/build-create-entity-mutation.js +5 -18
  134. package/lib/utils/build-create-entity-mutation.js.map +1 -1
  135. package/lib/utils/build-delete-entity-mutation.js +11 -8
  136. package/lib/utils/build-delete-entity-mutation.js.map +1 -1
  137. package/lib/utils/build-listing-query.js +20 -17
  138. package/lib/utils/build-listing-query.js.map +1 -1
  139. package/lib/utils/build-update-data-query.js +15 -9
  140. package/lib/utils/build-update-data-query.js.map +1 -1
  141. package/lib/utils/build-update-publish-unpublish-mutation.js +15 -8
  142. package/lib/utils/build-update-publish-unpublish-mutation.js.map +1 -1
  143. package/lib/utils/get-default-query-params.js +23 -10
  144. package/lib/utils/get-default-query-params.js.map +1 -1
  145. package/lib/utils/hoc/withContext.js +4 -6
  146. package/lib/utils/hoc/withContext.js.map +1 -1
  147. package/lib/utils/hooks/useToggle.js +4 -12
  148. package/lib/utils/hooks/useToggle.js.map +1 -1
  149. package/lib/utils/index.js +2 -3
  150. package/lib/utils/index.js.map +1 -1
  151. package/lib-es/components/EntityManager/Entity/Entity.js +23 -30
  152. package/lib-es/components/EntityManager/Entity/Entity.js.map +1 -1
  153. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +6 -1
  154. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
  155. package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -0
  156. package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
  157. package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js +26 -7
  158. package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
  159. package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +8 -2
  160. package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
  161. package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js +4 -14
  162. package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
  163. package/lib-es/components/EntityManager/utils/entity.js +8 -5
  164. package/lib-es/components/EntityManager/utils/entity.js.map +1 -1
  165. package/lib-es/components/InfoBoxes/InfoBoxTooltip.js +36 -0
  166. package/lib-es/components/InfoBoxes/InfoBoxTooltip.js.map +1 -0
  167. package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js +2 -0
  168. package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
  169. package/lib-es/components/InfoBoxes/presentational/InfoBox.js +4 -1
  170. package/lib-es/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
  171. package/lib-es/components/ListingTable/ListingTable.js +12 -11
  172. package/lib-es/components/ListingTable/ListingTable.js.map +1 -1
  173. package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js +34 -16
  174. package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
  175. package/lib-es/components/ListingTable/SearchFilter/RelationMultiSelectFilter.js +173 -0
  176. package/lib-es/components/ListingTable/SearchFilter/RelationMultiSelectFilter.js.map +1 -0
  177. package/lib-es/components/ListingTable/SearchFilter/SearchContainer.js +496 -0
  178. package/lib-es/components/ListingTable/SearchFilter/SearchContainer.js.map +1 -0
  179. package/lib-es/components/ListingTable/SearchFilter/SearchFilter.js +44 -0
  180. package/lib-es/components/ListingTable/SearchFilter/SearchFilter.js.map +1 -0
  181. package/lib-es/components/ListingTable/SearchFilter/helpers.js +127 -0
  182. package/lib-es/components/ListingTable/SearchFilter/helpers.js.map +1 -0
  183. package/lib-es/components/ListingTable/SearchFilter/querys.js +8 -0
  184. package/lib-es/components/ListingTable/SearchFilter/querys.js.map +1 -0
  185. package/lib-es/components/ListingTable/mappers/populate-rows.js +3 -0
  186. package/lib-es/components/ListingTable/mappers/populate-rows.js.map +1 -1
  187. package/lib-es/components/ListingTable/service/index.js +3 -2
  188. package/lib-es/components/ListingTable/service/index.js.map +1 -1
  189. package/lib-es/components/Tabs/index.js +6 -7
  190. package/lib-es/components/Tabs/index.js.map +1 -1
  191. package/lib-es/constants.js +4 -1
  192. package/lib-es/constants.js.map +1 -1
  193. package/lib-es/index.js +12 -3
  194. package/lib-es/index.js.map +1 -1
  195. package/lib-es/utils/build-create-entity-mutation.js +5 -19
  196. package/lib-es/utils/build-create-entity-mutation.js.map +1 -1
  197. package/lib-es/utils/build-listing-query.js +4 -4
  198. package/lib-es/utils/build-listing-query.js.map +1 -1
  199. package/lib-es/utils/get-default-query-params.js +17 -5
  200. package/lib-es/utils/get-default-query-params.js.map +1 -1
  201. package/lib-es/utils/hoc/withContext.js +1 -1
  202. package/lib-es/utils/hoc/withContext.js.map +1 -1
  203. package/package.json +21 -17
  204. package/src/components/EntityManager/Entity/Entity.js +35 -40
  205. package/src/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +8 -1
  206. package/src/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -0
  207. package/src/components/EntityManager/Entity/SideBarRelations/index.js +51 -17
  208. package/src/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +5 -3
  209. package/src/components/EntityManager/Entity/actions-handlers/create/submit.js +4 -11
  210. package/src/components/EntityManager/utils/entity.js +11 -6
  211. package/src/components/InfoBoxes/InfoBoxTooltip.js +32 -0
  212. package/src/components/InfoBoxes/helpers/build-dynamic-query.js +2 -0
  213. package/src/components/InfoBoxes/presentational/InfoBox.js +4 -2
  214. package/src/components/ListingTable/ListingTable.js +13 -18
  215. package/src/components/ListingTable/ListingTableContent/ListingTableContent.js +43 -25
  216. package/src/components/ListingTable/SearchFilter/RelationMultiSelectFilter.js +160 -0
  217. package/src/components/ListingTable/SearchFilter/SearchContainer.js +553 -0
  218. package/src/components/ListingTable/SearchFilter/SearchFilter.js +41 -0
  219. package/src/components/ListingTable/SearchFilter/helpers.js +146 -0
  220. package/src/components/ListingTable/SearchFilter/querys.js +9 -0
  221. package/src/components/ListingTable/mappers/populate-rows.js +3 -0
  222. package/src/components/ListingTable/service/index.js +2 -2
  223. package/src/components/Tabs/index.js +17 -21
  224. package/src/constants.js +9 -1
  225. package/src/index.js +11 -7
  226. package/src/utils/build-create-entity-mutation.js +5 -28
  227. package/src/utils/build-listing-query.js +4 -4
  228. package/src/utils/get-default-query-params.js +21 -9
  229. package/src/utils/hoc/withContext.js +5 -4
  230. package/babel.config.js +0 -3
  231. package/jest.config.js +0 -5
package/CHANGELOG.md CHANGED
@@ -3,40 +3,63 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [0.146.0-node18.1](https://github.com/thebyte9/blaze/compare/v0.146.0-node18.0...v0.146.0-node18.1) (2025-03-25)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * toaster version updates ([2ccc815](https://github.com/thebyte9/blaze/commit/2ccc8151b332f225afe609c2fa8585073c7753fa))
12
-
13
-
14
-
15
-
16
-
17
- # [0.146.0-node18.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18.0) (2025-03-12)
6
+ # [0.146.0-rc-eagle-3.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-rc-eagle-3.0) (2026-07-13)
18
7
 
19
8
 
20
9
  ### Bug Fixes
21
10
 
11
+ * add hasUnsavedChanges state to track actual user edits ([b2e507a](https://github.com/thebyte9/blaze/commit/b2e507a756d90990da603230b589defa8b7e12f4))
12
+ * add necessary state for pop up ([fd37f1d](https://github.com/thebyte9/blaze/commit/fd37f1d45e27bae8ea4ab93ae1f52c3628be7d77))
13
+ * admin listing search filter fixes ([#4827](https://github.com/thebyte9/blaze/issues/4827)) ([8f72d2c](https://github.com/thebyte9/blaze/commit/8f72d2c4e9bb1fa585e20dc899fae6120a3d644e))
14
+ * correct tooltip position ([#4853](https://github.com/thebyte9/blaze/issues/4853)) ([f55356e](https://github.com/thebyte9/blaze/commit/f55356ed8900ba48e7320206ffa16ea57ca3cb2b))
15
+ * fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
22
16
  * fixed breaking tests, updated next to 14 ([fecb0e1](https://github.com/thebyte9/blaze/commit/fecb0e1d822bd69ebbaa084072a219f0fddd23f1))
17
+ * get index from source data ([64425ec](https://github.com/thebyte9/blaze/commit/64425ec1b9e69385b45659f4b941631ae4c8b871))
23
18
  * group data table row fields correctly ([#4465](https://github.com/thebyte9/blaze/issues/4465)) ([a07a06f](https://github.com/thebyte9/blaze/commit/a07a06f4db5d0f1980afad70d28352641effea1e))
24
19
  * handle missing record error ([#4454](https://github.com/thebyte9/blaze/issues/4454)) ([f2ecf41](https://github.com/thebyte9/blaze/commit/f2ecf41962fd78b5808e6d7cd3714620697c4aaa))
25
20
  * linting fixed automatically ([73135b9](https://github.com/thebyte9/blaze/commit/73135b9b8b0d5407e2e1dfba42ab2381f290607f))
26
21
  * more test fixes ([a2a2f7a](https://github.com/thebyte9/blaze/commit/a2a2f7a650bb2c995660ba8e88e2d8f1c54586d7))
22
+ * move tabs from entity to page builder ([#4601](https://github.com/thebyte9/blaze/issues/4601)) ([944fe19](https://github.com/thebyte9/blaze/commit/944fe19ce0a09d2f36604fcced44f0054dd5e8e5))
23
+ * remove unused code ([95c24df](https://github.com/thebyte9/blaze/commit/95c24dfd3bb9068a5be69b40be1f3e93007ed850))
27
24
  * render page from the ur on initial load ([#4463](https://github.com/thebyte9/blaze/issues/4463)) ([8de5fbe](https://github.com/thebyte9/blaze/commit/8de5fbe969e9c2954f6484e044fdfec49d7050ae))
25
+ * revert save text change ([#4833](https://github.com/thebyte9/blaze/issues/4833)) ([2cfc73b](https://github.com/thebyte9/blaze/commit/2cfc73bfc06dac1dc682f696ca30f932ac79e42b))
26
+ * set missing ref on listing table to fix table header widths ([#4917](https://github.com/thebyte9/blaze/issues/4917)) ([d3d3cab](https://github.com/thebyte9/blaze/commit/d3d3cab771b8ab8c395fa071833b400e38b49f11))
27
+ * show pagebuilder tabs when no components added ([#4844](https://github.com/thebyte9/blaze/issues/4844)) ([2cbb24d](https://github.com/thebyte9/blaze/commit/2cbb24df95b38d4c8f4575814daadebd74ba04d4))
28
+ * table list cell style updates ([#4841](https://github.com/thebyte9/blaze/issues/4841)) ([e4fd643](https://github.com/thebyte9/blaze/commit/e4fd643300e710d2209763795280f5df84563806))
28
29
  * udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
30
+ * updated toaster version ([39f3dbd](https://github.com/thebyte9/blaze/commit/39f3dbd15833d45dd0d407b401eb825553135e01))
29
31
  * updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
30
32
  * updated with dev ([729bb6e](https://github.com/thebyte9/blaze/commit/729bb6ee7e87946081d51564a4ab45538f7be1e7))
31
33
  * updated with latest ([21cde6f](https://github.com/thebyte9/blaze/commit/21cde6f157c9279ed1eccb326870547821bc3dde))
34
+ * use direct state value for toggling sidebar ([091a021](https://github.com/thebyte9/blaze/commit/091a0210bb312e06505d86582ee014a512317da0))
35
+ * use isCreatePage to control navigation prompt display ([b56e0c7](https://github.com/thebyte9/blaze/commit/b56e0c7560308874554e3029a68878d1c2e8d948))
32
36
 
33
37
 
34
38
  ### Features
35
39
 
40
+ * display url in the admin ([#4065](https://github.com/thebyte9/blaze/issues/4065)) ([ada8f4b](https://github.com/thebyte9/blaze/commit/ada8f4b1d2a1799a87768160f36da693a58bedb6))
41
+ * **form-builder:** inline add record for relation fields ([#5202](https://github.com/thebyte9/blaze/issues/5202)) ([3f35bc2](https://github.com/thebyte9/blaze/commit/3f35bc2637c9ff48218871b785233831aaeb2324))
42
+ * add admin listing filters based on schema settings ([#4797](https://github.com/thebyte9/blaze/issues/4797)) ([84b3109](https://github.com/thebyte9/blaze/commit/84b310900222a60050e3cf32928ab62a12a99b8d))
43
+ * add custom fields to media upload ([#5149](https://github.com/thebyte9/blaze/issues/5149)) ([04adf5c](https://github.com/thebyte9/blaze/commit/04adf5c741541984f10d1c08a3af46830f47b68c))
44
+ * add env var to disable automatically appending blaze_debug param to admin links ([#4937](https://github.com/thebyte9/blaze/issues/4937)) ([b545d72](https://github.com/thebyte9/blaze/commit/b545d72112e311db3f73388487de8a9f284de84e))
45
+ * add tooltip support to parent select in DynamicRelation component ([#4603](https://github.com/thebyte9/blaze/issues/4603)) ([7767b5d](https://github.com/thebyte9/blaze/commit/7767b5dd7641d4b0c2477cffe6c0be8f9e8aa9dd))
36
46
  * allow custom components in table columns ([#4482](https://github.com/thebyte9/blaze/issues/4482)) ([87098c9](https://github.com/thebyte9/blaze/commit/87098c93d9fd85adc2a2aa19f2e9a3db4402ae41))
47
+ * allow customising entity admin listing default sort ([#5156](https://github.com/thebyte9/blaze/issues/5156)) ([af379c4](https://github.com/thebyte9/blaze/commit/af379c49002dab210e714c9c7fb9eed2a778bd15))
48
+ * get carousel images from record data ([#4341](https://github.com/thebyte9/blaze/issues/4341)) ([904e8a3](https://github.com/thebyte9/blaze/commit/904e8a319ab053ee470dbb4477c3865d3a5435df))
49
+ * make right sidebar collapsible ([cd45684](https://github.com/thebyte9/blaze/commit/cd456849648a6fe674b4de7e5f994146d76066c9))
50
+ * open frontend debug toolbar with a url param ([#4771](https://github.com/thebyte9/blaze/issues/4771)) ([37b8ea5](https://github.com/thebyte9/blaze/commit/37b8ea59a5ed4be0912465717adeb079fd6b3a89))
51
+ * query for getting the audit details in dynamic properties ([#3287](https://github.com/thebyte9/blaze/issues/3287)) ([39d889b](https://github.com/thebyte9/blaze/commit/39d889b18a6c6b8bc43ae1a5fddb4d19751cf159))
52
+ * set admin property groupings ([#4623](https://github.com/thebyte9/blaze/issues/4623)) ([a4ad574](https://github.com/thebyte9/blaze/commit/a4ad574e3754f8cc410ab67910d5ae833137dbcc))
53
+ * update info box properties to support tooltips ([#4701](https://github.com/thebyte9/blaze/issues/4701)) ([08ed041](https://github.com/thebyte9/blaze/commit/08ed041c9432f02e82e4846974cda65ae6c15a26))
54
+ * update media listing to use schema based search filters ([#4873](https://github.com/thebyte9/blaze/issues/4873)) ([c3f3d03](https://github.com/thebyte9/blaze/commit/c3f3d032062e76a5496e5c7b2c22bcb8af63a3ae))
37
55
  * updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
38
56
 
39
57
 
58
+ ### Reverts
59
+
60
+ * Revert "chore: updating versions" ([1bbc7c2](https://github.com/thebyte9/blaze/commit/1bbc7c25a20903b8d517e1276b113b68976307d2))
61
+
62
+
40
63
 
41
64
 
42
65
 
package/README.md CHANGED
@@ -31,6 +31,16 @@ The `displayProperties` property can be set on entity schema in the api to provi
31
31
  "firstname": {
32
32
  "_exists": false
33
33
  }
34
+ },
35
+ "adminListings": {
36
+ "dataSource": {
37
+ "source": "search",
38
+ "index": "admin"
39
+ },
40
+ "defaultSort": {
41
+ "property": "name",
42
+ "direction": "asc"
43
+ }
34
44
  }
35
45
  }
36
46
  ```
@@ -40,7 +50,40 @@ The `displayProperties` property can be set on entity schema in the api to provi
40
50
  - adminHeader: properties to build admin header
41
51
  - adminMainInfoProperty: indicates a property that returns data to be displayed in the admin edit sidebar. Data is returned is formatted with the [data/info-properties](#Info properties) definition
42
52
  - disableDefaultAdminInfo: boolean value that can be used to hide default sidebar values updated/created
53
+ - adminListings.dataSource:
54
+ - adminListings.dataSource.source: indicates whether to get listing data from search queries instead of direct entity queries.
55
+ - adminListings.dataSource.index: which index to search. This changes the query used e.g. searchAdmin
56
+ - adminListings.defaultSort: specifies custom default sort order for listings (overrides the default "updated" descending)
57
+ - adminListings.defaultSort.property: the property to sort by (required if defaultSort is specified)
58
+ - adminListings.defaultSort.direction: sort direction - "asc" or "desc" (defaults to "asc" if not specified)
59
+
60
+ ### Listing filters
61
+ You can add the following to an entity properties/dynamicProperties to have them generate filters that appear at the top of admin record listings.
62
+ ```json
63
+ // this will be represented as a select
64
+ "relationKeyId": {
65
+ "type": "string",
66
+ "label": "Related records",
67
+ "searchable": true,
68
+ "showInForm": true,
69
+ "formFieldType": "relation",
70
+ "adminListingOptions": {
71
+ "filterType": "select"
72
+ }
73
+ },
43
74
 
75
+ // will include this property in a keyword search
76
+ "name": {
77
+ "type": "string",
78
+ "label": "Name",
79
+ "searchable": true,
80
+ "adminListingOptions": {
81
+ "includeInKeywordSeach": true
82
+ }
83
+ }
84
+ ```
85
+ - `filterType: "select"`: This will get relevant options and display them in a select. If the property is relation data the select will be populated with the `name` property from the related records
86
+ - `includeInKeywordSeach`: This property will be included in a keyword search
44
87
 
45
88
  ### Info properties
46
89
 
@@ -93,3 +136,24 @@ import coreAdminPlugin from '@blaze-cms/plugin-admin-core-ui';
93
136
  }
94
137
  });
95
138
  ```
139
+
140
+ ## Environment Variables
141
+
142
+ The following environment variables can be used to configure the behavior of this plugin:
143
+
144
+ | Variable | Description | Default |
145
+ | ------------------------------- | -------------------------------------------------------------------------------- | ------- |
146
+ | `BLAZE_DISABLE_PREVIEW` | Disables the preview button functionality completely | `false` |
147
+ | `BLAZE_DISABLE_URL_DEBUG_PARAM` | Disables adding "blaze_debug=1" parameter to preview and view URLs | `false` |
148
+
149
+ ### Usage
150
+
151
+ Set these variables in your environment to modify the plugin behavior:
152
+
153
+ ```bash
154
+ # Disable preview functionality
155
+ BLAZE_DISABLE_PREVIEW=true
156
+
157
+ # Disable debug parameter in URLs
158
+ BLAZE_DISABLE_URL_DEBUG_PARAM=true
159
+ ```
@@ -1,38 +1,40 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
9
- require("core-js/modules/es.regexp.exec.js");
10
- require("core-js/modules/es.string.match.js");
7
+ exports.default = void 0;
11
8
  var _client = require("@apollo/client");
12
9
  var _react = _interopRequireDefault(require("react"));
13
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
11
  var _adminUiUtils = require("@blaze-cms/admin-ui-utils");
15
12
  var _ListingTable = _interopRequireDefault(require("../ListingTable/ListingTable"));
16
13
  var _withContext = require("../../utils/hoc/withContext");
17
- var EntityDataListing = function EntityDataListing(_ref) {
18
- var match = _ref.match;
19
- var identifier = match.params.entityIdentifier;
20
- var _useQuery = (0, _client.useQuery)((0, _adminUiUtils.getQuery)('GET_ENTITY_SCHEMA'), {
21
- variables: {
22
- identifier: identifier
23
- }
24
- }),
25
- _useQuery$data = _useQuery.data,
26
- _useQuery$data2 = _useQuery$data === void 0 ? {} : _useQuery$data,
27
- _useQuery$data2$getEn = _useQuery$data2.getEntitySchemas,
28
- getEntitySchemas = _useQuery$data2$getEn === void 0 ? [] : _useQuery$data2$getEn;
14
+ const EntityDataListing = ({
15
+ match
16
+ }) => {
17
+ const {
18
+ params: {
19
+ entityIdentifier: identifier
20
+ }
21
+ } = match;
22
+ const {
23
+ data: {
24
+ getEntitySchemas = []
25
+ } = {}
26
+ } = (0, _client.useQuery)((0, _adminUiUtils.getQuery)('GET_ENTITY_SCHEMA'), {
27
+ variables: {
28
+ identifier
29
+ }
30
+ });
29
31
  if (!getEntitySchemas.length) return '';
30
- return /*#__PURE__*/_react["default"].createElement(_ListingTable["default"], {
32
+ return /*#__PURE__*/_react.default.createElement(_ListingTable.default, {
31
33
  entitySchema: getEntitySchemas[0]
32
34
  });
33
35
  };
34
36
  EntityDataListing.propTypes = {
35
- match: _propTypes["default"].object.isRequired
37
+ match: _propTypes.default.object.isRequired
36
38
  };
37
- var _default = exports["default"] = (0, _withContext.withContext)(EntityDataListing);
39
+ var _default = exports.default = (0, _withContext.withContext)(EntityDataListing);
38
40
  //# sourceMappingURL=EntityDataListing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityDataListing.js","names":["_client","require","_react","_interopRequireDefault","_propTypes","_adminUiUtils","_ListingTable","_withContext","EntityDataListing","_ref","match","identifier","params","entityIdentifier","_useQuery","useQuery","getQuery","variables","_useQuery$data","data","_useQuery$data2","_useQuery$data2$getEn","getEntitySchemas","length","createElement","entitySchema","propTypes","PropTypes","object","isRequired","_default","exports","withContext"],"sources":["../../../src/components/EntityDataListing/EntityDataListing.js"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\n\nimport ListingTable from '../ListingTable/ListingTable';\nimport { withContext } from '../../utils/hoc/withContext';\n\nconst EntityDataListing = ({ match }) => {\n const {\n params: { entityIdentifier: identifier }\n } = match;\n\n const { data: { getEntitySchemas = [] } = {} } = useQuery(getQuery('GET_ENTITY_SCHEMA'), {\n variables: { identifier }\n });\n\n if (!getEntitySchemas.length) return '';\n\n return <ListingTable entitySchema={getEntitySchemas[0]} />;\n};\n\nEntityDataListing.propTypes = {\n match: PropTypes.object.isRequired\n};\n\nexport default withContext(EntityDataListing);\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAMO,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAChC,IAC8BC,UAAU,GACpCD,KAAK,CADPE,MAAM,CAAIC,gBAAgB;EAG5B,IAAAC,SAAA,GAAiD,IAAAC,gBAAQ,EAAC,IAAAC,sBAAQ,EAAC,mBAAmB,CAAC,EAAE;MACvFC,SAAS,EAAE;QAAEN,UAAU,EAAVA;MAAW;IAC1B,CAAC,CAAC;IAAAO,cAAA,GAAAJ,SAAA,CAFMK,IAAI;IAAAC,eAAA,GAAAF,cAAA,cAA8B,CAAC,CAAC,GAAAA,cAAA;IAAAG,qBAAA,GAAAD,eAAA,CAA5BE,gBAAgB;IAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EAIrC,IAAI,CAACC,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EAEvC,oBAAOrB,MAAA,YAAAsB,aAAA,CAAClB,aAAA,WAAY;IAACmB,YAAY,EAAEH,gBAAgB,CAAC,CAAC;EAAE,CAAE,CAAC;AAC5D,CAAC;AAEDd,iBAAiB,CAACkB,SAAS,GAAG;EAC5BhB,KAAK,EAAEiB,qBAAS,CAACC,MAAM,CAACC;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,wBAAW,EAACxB,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"EntityDataListing.js","names":["_client","require","_react","_interopRequireDefault","_propTypes","_adminUiUtils","_ListingTable","_withContext","EntityDataListing","match","params","entityIdentifier","identifier","data","getEntitySchemas","useQuery","getQuery","variables","length","default","createElement","entitySchema","propTypes","PropTypes","object","isRequired","_default","exports","withContext"],"sources":["../../../src/components/EntityDataListing/EntityDataListing.js"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\n\nimport ListingTable from '../ListingTable/ListingTable';\nimport { withContext } from '../../utils/hoc/withContext';\n\nconst EntityDataListing = ({ match }) => {\n const {\n params: { entityIdentifier: identifier }\n } = match;\n\n const { data: { getEntitySchemas = [] } = {} } = useQuery(getQuery('GET_ENTITY_SCHEMA'), {\n variables: { identifier }\n });\n\n if (!getEntitySchemas.length) return '';\n\n return <ListingTable entitySchema={getEntitySchemas[0]} />;\n};\n\nEntityDataListing.propTypes = {\n match: PropTypes.object.isRequired\n};\n\nexport default withContext(EntityDataListing);\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,MAAMO,iBAAiB,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EACvC,MAAM;IACJC,MAAM,EAAE;MAAEC,gBAAgB,EAAEC;IAAW;EACzC,CAAC,GAAGH,KAAK;EAET,MAAM;IAAEI,IAAI,EAAE;MAAEC,gBAAgB,GAAG;IAAG,CAAC,GAAG,CAAC;EAAE,CAAC,GAAG,IAAAC,gBAAQ,EAAC,IAAAC,sBAAQ,EAAC,mBAAmB,CAAC,EAAE;IACvFC,SAAS,EAAE;MAAEL;IAAW;EAC1B,CAAC,CAAC;EAEF,IAAI,CAACE,gBAAgB,CAACI,MAAM,EAAE,OAAO,EAAE;EAEvC,oBAAOhB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACd,aAAA,CAAAa,OAAY;IAACE,YAAY,EAAEP,gBAAgB,CAAC,CAAC;EAAE,CAAE,CAAC;AAC5D,CAAC;AAEDN,iBAAiB,CAACc,SAAS,GAAG;EAC5Bb,KAAK,EAAEc,kBAAS,CAACC,MAAM,CAACC;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAEa,IAAAS,wBAAW,EAACpB,iBAAiB,CAAC","ignoreList":[]}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
7
+ exports.default = void 0;
9
8
  var _EntityDataListing = _interopRequireDefault(require("./EntityDataListing"));
10
- var _default = exports["default"] = _EntityDataListing["default"];
9
+ var _default = exports.default = _EntityDataListing.default;
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_EntityDataListing","_interopRequireDefault","require","_default","exports","EntityDataListing"],"sources":["../../../src/components/EntityDataListing/index.js"],"sourcesContent":["import EntityDataListing from './EntityDataListing';\n\nexport default EntityDataListing;\n"],"mappings":";;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoD,IAAAC,QAAA,GAAAC,OAAA,cAErCC,6BAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_EntityDataListing","_interopRequireDefault","require","_default","exports","default","EntityDataListing"],"sources":["../../../src/components/EntityDataListing/index.js"],"sourcesContent":["import EntityDataListing from './EntityDataListing';\n\nexport default EntityDataListing;\n"],"mappings":";;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAErCC,0BAAiB","ignoreList":[]}
@@ -1,39 +1,37 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- require("core-js/modules/es.array.map.js");
11
- require("core-js/modules/es.object.entries.js");
12
- require("core-js/modules/es.object.to-string.js");
13
- require("core-js/modules/es.string.starts-with.js");
7
+ exports.default = void 0;
14
8
  var _reactRouterDom = require("react-router-dom");
15
9
  var _react = _interopRequireDefault(require("react"));
16
- var EntityNavLinks = function EntityNavLinks(_ref) {
17
- var schema = _ref.schema;
10
+ const EntityNavLinks = ({
11
+ schema
12
+ }) => {
18
13
  if (!schema) return null;
19
- var adminSectionNavigation = schema.displayProperties.adminSectionNavigation;
14
+ const {
15
+ displayProperties: {
16
+ adminSectionNavigation
17
+ }
18
+ } = schema;
20
19
  if (!adminSectionNavigation) return null;
21
- var links = Object.entries(adminSectionNavigation).map(function (_ref2) {
22
- var _ref3 = (0, _slicedToArray2["default"])(_ref2, 2),
23
- k = _ref3[0],
24
- v = _ref3[1];
25
- var label = v.label,
26
- uri = v.uri;
27
- var Wrapper = uri.startsWith('#') ? 'a' : _reactRouterDom.Link;
28
- return /*#__PURE__*/_react["default"].createElement(Wrapper, {
20
+ const links = Object.entries(adminSectionNavigation).map(([k, v]) => {
21
+ const {
22
+ label,
23
+ uri
24
+ } = v;
25
+ const Wrapper = uri.startsWith('#') ? 'a' : _reactRouterDom.Link;
26
+ return /*#__PURE__*/_react.default.createElement(Wrapper, {
29
27
  className: "entity-section-link",
30
28
  href: uri,
31
29
  to: uri
32
30
  }, label);
33
31
  });
34
- return /*#__PURE__*/_react["default"].createElement("div", {
32
+ return /*#__PURE__*/_react.default.createElement("div", {
35
33
  className: "entity-section-links"
36
34
  }, links);
37
35
  };
38
- var _default = exports["default"] = EntityNavLinks;
36
+ var _default = exports.default = EntityNavLinks;
39
37
  //# sourceMappingURL=EntityNavLinks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityNavLinks.js","names":["_reactRouterDom","require","_react","_interopRequireDefault","EntityNavLinks","_ref","schema","adminSectionNavigation","displayProperties","links","Object","entries","map","_ref2","_ref3","_slicedToArray2","k","v","label","uri","Wrapper","startsWith","Link","createElement","className","href","to","_default","exports"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js"],"sourcesContent":["import { Link } from 'react-router-dom';\nimport React from 'react';\n\nconst EntityNavLinks = ({ schema }) => {\n if (!schema) return null;\n\n const {\n displayProperties: { adminSectionNavigation }\n } = schema;\n\n if (!adminSectionNavigation) return null;\n\n const links = Object.entries(adminSectionNavigation).map(([k, v]) => {\n const { label, uri } = v;\n const Wrapper = uri.startsWith('#') ? 'a' : Link;\n\n return (\n <Wrapper className=\"entity-section-link\" href={uri} to={uri}>\n {label}\n </Wrapper>\n );\n });\n\n return <div className=\"entity-section-links\">{links}</div>;\n};\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAMG,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAmB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EAC9B,IAAI,CAACA,MAAM,EAAE,OAAO,IAAI;EAExB,IACuBC,sBAAsB,GACzCD,MAAM,CADRE,iBAAiB,CAAID,sBAAsB;EAG7C,IAAI,CAACA,sBAAsB,EAAE,OAAO,IAAI;EAExC,IAAME,KAAK,GAAGC,MAAM,CAACC,OAAO,CAACJ,sBAAsB,CAAC,CAACK,GAAG,CAAC,UAAAC,KAAA,EAAY;IAAA,IAAAC,KAAA,OAAAC,eAAA,aAAAF,KAAA;MAAVG,CAAC,GAAAF,KAAA;MAAEG,CAAC,GAAAH,KAAA;IAC7D,IAAQI,KAAK,GAAUD,CAAC,CAAhBC,KAAK;MAAEC,GAAG,GAAKF,CAAC,CAATE,GAAG;IAClB,IAAMC,OAAO,GAAGD,GAAG,CAACE,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,GAAGC,oBAAI;IAEhD,oBACEpB,MAAA,YAAAqB,aAAA,CAACH,OAAO;MAACI,SAAS,EAAC,qBAAqB;MAACC,IAAI,EAAEN,GAAI;MAACO,EAAE,EAAEP;IAAI,GACzDD,KACM,CAAC;EAEd,CAAC,CAAC;EAEF,oBAAOhB,MAAA,YAAAqB,aAAA;IAAKC,SAAS,EAAC;EAAsB,GAAEf,KAAW,CAAC;AAC5D,CAAC;AAAC,IAAAkB,QAAA,GAAAC,OAAA,cAEaxB,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"EntityNavLinks.js","names":["_reactRouterDom","require","_react","_interopRequireDefault","EntityNavLinks","schema","displayProperties","adminSectionNavigation","links","Object","entries","map","k","v","label","uri","Wrapper","startsWith","Link","default","createElement","className","href","to","_default","exports"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js"],"sourcesContent":["import { Link } from 'react-router-dom';\nimport React from 'react';\n\nconst EntityNavLinks = ({ schema }) => {\n if (!schema) return null;\n\n const {\n displayProperties: { adminSectionNavigation }\n } = schema;\n\n if (!adminSectionNavigation) return null;\n\n const links = Object.entries(adminSectionNavigation).map(([k, v]) => {\n const { label, uri } = v;\n const Wrapper = uri.startsWith('#') ? 'a' : Link;\n\n return (\n <Wrapper className=\"entity-section-link\" href={uri} to={uri}>\n {label}\n </Wrapper>\n );\n });\n\n return <div className=\"entity-section-links\">{links}</div>;\n};\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,MAAMG,cAAc,GAAGA,CAAC;EAAEC;AAAO,CAAC,KAAK;EACrC,IAAI,CAACA,MAAM,EAAE,OAAO,IAAI;EAExB,MAAM;IACJC,iBAAiB,EAAE;MAAEC;IAAuB;EAC9C,CAAC,GAAGF,MAAM;EAEV,IAAI,CAACE,sBAAsB,EAAE,OAAO,IAAI;EAExC,MAAMC,KAAK,GAAGC,MAAM,CAACC,OAAO,CAACH,sBAAsB,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,KAAK;IACnE,MAAM;MAAEC,KAAK;MAAEC;IAAI,CAAC,GAAGF,CAAC;IACxB,MAAMG,OAAO,GAAGD,GAAG,CAACE,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,GAAGC,oBAAI;IAEhD,oBACEhB,MAAA,CAAAiB,OAAA,CAAAC,aAAA,CAACJ,OAAO;MAACK,SAAS,EAAC,qBAAqB;MAACC,IAAI,EAAEP,GAAI;MAACQ,EAAE,EAAER;IAAI,GACzDD,KACM,CAAC;EAEd,CAAC,CAAC;EAEF,oBAAOZ,MAAA,CAAAiB,OAAA,CAAAC,aAAA;IAAKC,SAAS,EAAC;EAAsB,GAAEb,KAAW,CAAC;AAC5D,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,CAAAN,OAAA,GAEaf,cAAc","ignoreList":[]}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
7
+ exports.default = void 0;
9
8
  var _EntityNavLinks = _interopRequireDefault(require("./EntityNavLinks"));
10
- var _default = exports["default"] = _EntityNavLinks["default"];
9
+ var _default = exports.default = _EntityNavLinks.default;
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_EntityNavLinks","_interopRequireDefault","require","_default","exports","EntityNavLinks"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/index.js"],"sourcesContent":["import EntityNavLinks from './EntityNavLinks';\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,cAE/BC,0BAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_EntityNavLinks","_interopRequireDefault","require","_default","exports","default","EntityNavLinks"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/index.js"],"sourcesContent":["import EntityNavLinks from './EntityNavLinks';\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE/BC,uBAAc","ignoreList":[]}