@blaze-cms/plugin-data-ui 0.146.0-node18.1 → 0.146.0-rc-eagle.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 (307) hide show
  1. package/CHANGELOG.md +30 -16
  2. package/README.md +57 -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 +289 -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 +104 -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 +42 -56
  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 +91 -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 +35 -73
  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 +26 -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 +163 -303
  88. package/lib/components/ListingTable/ListingTable.js.map +1 -1
  89. package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js +61 -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/SearchContainer.js +215 -0
  94. package/lib/components/ListingTable/SearchFilter/SearchContainer.js.map +1 -0
  95. package/lib/components/ListingTable/SearchFilter/SearchFilter.js +48 -0
  96. package/lib/components/ListingTable/SearchFilter/SearchFilter.js.map +1 -0
  97. package/lib/components/ListingTable/SearchFilter/helpers.js +105 -0
  98. package/lib/components/ListingTable/SearchFilter/helpers.js.map +1 -0
  99. package/lib/components/ListingTable/SearchFilter/querys.js +13 -0
  100. package/lib/components/ListingTable/SearchFilter/querys.js.map +1 -0
  101. package/lib/components/ListingTable/TableActions/TableActions.js +27 -31
  102. package/lib/components/ListingTable/TableActions/TableActions.js.map +1 -1
  103. package/lib/components/ListingTable/TableActions/index.js +2 -3
  104. package/lib/components/ListingTable/TableActions/index.js.map +1 -1
  105. package/lib/components/ListingTable/index.js +2 -3
  106. package/lib/components/ListingTable/index.js.map +1 -1
  107. package/lib/components/ListingTable/mappers/populate-rows.js +104 -120
  108. package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
  109. package/lib/components/ListingTable/service/index.js +66 -84
  110. package/lib/components/ListingTable/service/index.js.map +1 -1
  111. package/lib/components/Tabs/index.js +26 -42
  112. package/lib/components/Tabs/index.js.map +1 -1
  113. package/lib/components/hooks/useCallbackDebounce.js +5 -9
  114. package/lib/components/hooks/useCallbackDebounce.js.map +1 -1
  115. package/lib/constants.js +31 -29
  116. package/lib/constants.js.map +1 -1
  117. package/lib/icons/ContentIcon.js +17 -20
  118. package/lib/icons/ContentIcon.js.map +1 -1
  119. package/lib/icons/SettingsIcon.js +12 -15
  120. package/lib/icons/SettingsIcon.js.map +1 -1
  121. package/lib/icons/TaxonomyIcon.js +15 -18
  122. package/lib/icons/TaxonomyIcon.js.map +1 -1
  123. package/lib/icons/UsersIcon.js +11 -14
  124. package/lib/icons/UsersIcon.js.map +1 -1
  125. package/lib/icons/index.js +8 -9
  126. package/lib/icons/index.js.map +1 -1
  127. package/lib/index.js +81 -121
  128. package/lib/index.js.map +1 -1
  129. package/lib/utils/add-content-menu-items.js +67 -93
  130. package/lib/utils/add-content-menu-items.js.map +1 -1
  131. package/lib/utils/build-create-entity-mutation.js +12 -9
  132. package/lib/utils/build-create-entity-mutation.js.map +1 -1
  133. package/lib/utils/build-delete-entity-mutation.js +11 -8
  134. package/lib/utils/build-delete-entity-mutation.js.map +1 -1
  135. package/lib/utils/build-listing-query.js +20 -17
  136. package/lib/utils/build-listing-query.js.map +1 -1
  137. package/lib/utils/build-update-data-query.js +15 -9
  138. package/lib/utils/build-update-data-query.js.map +1 -1
  139. package/lib/utils/build-update-publish-unpublish-mutation.js +15 -8
  140. package/lib/utils/build-update-publish-unpublish-mutation.js.map +1 -1
  141. package/lib/utils/get-default-query-params.js +7 -6
  142. package/lib/utils/get-default-query-params.js.map +1 -1
  143. package/lib/utils/hoc/withContext.js +4 -6
  144. package/lib/utils/hoc/withContext.js.map +1 -1
  145. package/lib/utils/hooks/useToggle.js +4 -12
  146. package/lib/utils/hooks/useToggle.js.map +1 -1
  147. package/lib/utils/index.js +2 -3
  148. package/lib/utils/index.js.map +1 -1
  149. package/package.json +16 -16
  150. package/src/components/EntityManager/Entity/Entity.js +34 -39
  151. package/src/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +8 -1
  152. package/src/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -0
  153. package/src/components/EntityManager/Entity/SideBarRelations/index.js +51 -17
  154. package/src/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +5 -3
  155. package/src/components/EntityManager/utils/entity.js +13 -2
  156. package/src/components/InfoBoxes/InfoBoxTooltip.js +32 -0
  157. package/src/components/InfoBoxes/helpers/build-dynamic-query.js +2 -0
  158. package/src/components/InfoBoxes/presentational/InfoBox.js +4 -2
  159. package/src/components/ListingTable/ListingTable.js +13 -18
  160. package/src/components/ListingTable/ListingTableContent/ListingTableContent.js +43 -25
  161. package/src/components/ListingTable/SearchFilter/SearchContainer.js +228 -0
  162. package/src/components/ListingTable/SearchFilter/SearchFilter.js +38 -0
  163. package/src/components/ListingTable/SearchFilter/helpers.js +99 -0
  164. package/src/components/ListingTable/SearchFilter/querys.js +9 -0
  165. package/src/components/ListingTable/mappers/populate-rows.js +3 -0
  166. package/src/components/ListingTable/service/index.js +2 -2
  167. package/src/components/Tabs/index.js +17 -21
  168. package/src/constants.js +9 -1
  169. package/src/index.js +9 -7
  170. package/src/utils/build-listing-query.js +4 -4
  171. package/src/utils/hoc/withContext.js +5 -4
  172. package/lib-es/components/EntityDataListing/EntityDataListing.js +0 -33
  173. package/lib-es/components/EntityDataListing/EntityDataListing.js.map +0 -1
  174. package/lib-es/components/EntityDataListing/index.js +0 -3
  175. package/lib-es/components/EntityDataListing/index.js.map +0 -1
  176. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +0 -30
  177. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +0 -1
  178. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/index.js +0 -3
  179. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +0 -1
  180. package/lib-es/components/EntityManager/Entity/Entity.js +0 -460
  181. package/lib-es/components/EntityManager/Entity/Entity.js.map +0 -1
  182. package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js +0 -103
  183. package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +0 -1
  184. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +0 -42
  185. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +0 -1
  186. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js +0 -3
  187. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +0 -1
  188. package/lib-es/components/EntityManager/Entity/EntityHeader/index.js +0 -3
  189. package/lib-es/components/EntityManager/Entity/EntityHeader/index.js.map +0 -1
  190. package/lib-es/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +0 -30
  191. package/lib-es/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +0 -1
  192. package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +0 -27
  193. package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +0 -1
  194. package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js +0 -49
  195. package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +0 -1
  196. package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js +0 -117
  197. package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js.map +0 -1
  198. package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +0 -30
  199. package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +0 -1
  200. package/lib-es/components/EntityManager/Entity/actions-handlers/create/index.js +0 -5
  201. package/lib-es/components/EntityManager/Entity/actions-handlers/create/index.js.map +0 -1
  202. package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js +0 -46
  203. package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js.map +0 -1
  204. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/delete.js +0 -32
  205. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +0 -1
  206. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/index.js +0 -5
  207. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/index.js.map +0 -1
  208. package/lib-es/components/EntityManager/Entity/actions-handlers/index.js +0 -12
  209. package/lib-es/components/EntityManager/Entity/actions-handlers/index.js.map +0 -1
  210. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/index.js +0 -5
  211. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/index.js.map +0 -1
  212. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js +0 -39
  213. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +0 -1
  214. package/lib-es/components/EntityManager/Entity/actions-handlers/update/index.js +0 -5
  215. package/lib-es/components/EntityManager/Entity/actions-handlers/update/index.js.map +0 -1
  216. package/lib-es/components/EntityManager/Entity/actions-handlers/update/submit.js +0 -53
  217. package/lib-es/components/EntityManager/Entity/actions-handlers/update/submit.js.map +0 -1
  218. package/lib-es/components/EntityManager/Entity/index.js +0 -3
  219. package/lib-es/components/EntityManager/Entity/index.js.map +0 -1
  220. package/lib-es/components/EntityManager/EntityManager.js +0 -133
  221. package/lib-es/components/EntityManager/EntityManager.js.map +0 -1
  222. package/lib-es/components/EntityManager/index.js +0 -3
  223. package/lib-es/components/EntityManager/index.js.map +0 -1
  224. package/lib-es/components/EntityManager/utils/RecordEditContext/index.js +0 -6
  225. package/lib-es/components/EntityManager/utils/RecordEditContext/index.js.map +0 -1
  226. package/lib-es/components/EntityManager/utils/data-mappers.js +0 -55
  227. package/lib-es/components/EntityManager/utils/data-mappers.js.map +0 -1
  228. package/lib-es/components/EntityManager/utils/entity.js +0 -66
  229. package/lib-es/components/EntityManager/utils/entity.js.map +0 -1
  230. package/lib-es/components/EntityManager/utils/entityAvailableActions.js +0 -56
  231. package/lib-es/components/EntityManager/utils/entityAvailableActions.js.map +0 -1
  232. package/lib-es/components/EntityManager/utils/is-form-empty.js +0 -9
  233. package/lib-es/components/EntityManager/utils/is-form-empty.js.map +0 -1
  234. package/lib-es/components/EntityManager/utils/query.js +0 -23
  235. package/lib-es/components/EntityManager/utils/query.js.map +0 -1
  236. package/lib-es/components/InfoBoxes/InfoBoxes.js +0 -28
  237. package/lib-es/components/InfoBoxes/InfoBoxes.js.map +0 -1
  238. package/lib-es/components/InfoBoxes/container/InfoBoxContainer.js +0 -38
  239. package/lib-es/components/InfoBoxes/container/InfoBoxContainer.js.map +0 -1
  240. package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js +0 -26
  241. package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js.map +0 -1
  242. package/lib-es/components/InfoBoxes/hooks/useData.js +0 -39
  243. package/lib-es/components/InfoBoxes/hooks/useData.js.map +0 -1
  244. package/lib-es/components/InfoBoxes/hooks/useInfoBox.js +0 -17
  245. package/lib-es/components/InfoBoxes/hooks/useInfoBox.js.map +0 -1
  246. package/lib-es/components/InfoBoxes/index.js +0 -3
  247. package/lib-es/components/InfoBoxes/index.js.map +0 -1
  248. package/lib-es/components/InfoBoxes/presentational/InfoBox.js +0 -37
  249. package/lib-es/components/InfoBoxes/presentational/InfoBox.js.map +0 -1
  250. package/lib-es/components/InfoBoxes/presentational/InfoBoxLabel.js +0 -12
  251. package/lib-es/components/InfoBoxes/presentational/InfoBoxLabel.js.map +0 -1
  252. package/lib-es/components/InfoBoxes/presentational/InfoBoxValue.js +0 -30
  253. package/lib-es/components/InfoBoxes/presentational/InfoBoxValue.js.map +0 -1
  254. package/lib-es/components/ListingTable/ListingTable.js +0 -207
  255. package/lib-es/components/ListingTable/ListingTable.js.map +0 -1
  256. package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js +0 -54
  257. package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +0 -1
  258. package/lib-es/components/ListingTable/ListingTableContent/index.js +0 -3
  259. package/lib-es/components/ListingTable/ListingTableContent/index.js.map +0 -1
  260. package/lib-es/components/ListingTable/TableActions/TableActions.js +0 -34
  261. package/lib-es/components/ListingTable/TableActions/TableActions.js.map +0 -1
  262. package/lib-es/components/ListingTable/TableActions/index.js +0 -3
  263. package/lib-es/components/ListingTable/TableActions/index.js.map +0 -1
  264. package/lib-es/components/ListingTable/index.js +0 -3
  265. package/lib-es/components/ListingTable/index.js.map +0 -1
  266. package/lib-es/components/ListingTable/mappers/populate-rows.js +0 -137
  267. package/lib-es/components/ListingTable/mappers/populate-rows.js.map +0 -1
  268. package/lib-es/components/ListingTable/service/index.js +0 -86
  269. package/lib-es/components/ListingTable/service/index.js.map +0 -1
  270. package/lib-es/components/Tabs/index.js +0 -39
  271. package/lib-es/components/Tabs/index.js.map +0 -1
  272. package/lib-es/components/hooks/useCallbackDebounce.js +0 -12
  273. package/lib-es/components/hooks/useCallbackDebounce.js.map +0 -1
  274. package/lib-es/constants.js +0 -39
  275. package/lib-es/constants.js.map +0 -1
  276. package/lib-es/icons/ContentIcon.js +0 -80
  277. package/lib-es/icons/ContentIcon.js.map +0 -1
  278. package/lib-es/icons/SettingsIcon.js +0 -36
  279. package/lib-es/icons/SettingsIcon.js.map +0 -1
  280. package/lib-es/icons/TaxonomyIcon.js +0 -60
  281. package/lib-es/icons/TaxonomyIcon.js.map +0 -1
  282. package/lib-es/icons/UsersIcon.js +0 -33
  283. package/lib-es/icons/UsersIcon.js.map +0 -1
  284. package/lib-es/icons/index.js +0 -6
  285. package/lib-es/icons/index.js.map +0 -1
  286. package/lib-es/index.js +0 -84
  287. package/lib-es/index.js.map +0 -1
  288. package/lib-es/utils/add-content-menu-items.js +0 -72
  289. package/lib-es/utils/add-content-menu-items.js.map +0 -1
  290. package/lib-es/utils/build-create-entity-mutation.js +0 -21
  291. package/lib-es/utils/build-create-entity-mutation.js.map +0 -1
  292. package/lib-es/utils/build-delete-entity-mutation.js +0 -18
  293. package/lib-es/utils/build-delete-entity-mutation.js.map +0 -1
  294. package/lib-es/utils/build-listing-query.js +0 -28
  295. package/lib-es/utils/build-listing-query.js.map +0 -1
  296. package/lib-es/utils/build-update-data-query.js +0 -24
  297. package/lib-es/utils/build-update-data-query.js.map +0 -1
  298. package/lib-es/utils/build-update-publish-unpublish-mutation.js +0 -22
  299. package/lib-es/utils/build-update-publish-unpublish-mutation.js.map +0 -1
  300. package/lib-es/utils/get-default-query-params.js +0 -17
  301. package/lib-es/utils/get-default-query-params.js.map +0 -1
  302. package/lib-es/utils/hoc/withContext.js +0 -8
  303. package/lib-es/utils/hoc/withContext.js.map +0 -1
  304. package/lib-es/utils/hooks/useToggle.js +0 -8
  305. package/lib-es/utils/hooks/useToggle.js.map +0 -1
  306. package/lib-es/utils/index.js +0 -3
  307. package/lib-es/utils/index.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,40 +3,54 @@
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.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-rc-eagle.0) (2026-05-20)
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))
28
- * udpated yarn lock ([0cd4fa4](https://github.com/thebyte9/blaze/commit/0cd4fa4a185fca4b80b57e472badb771dd649ec2))
29
- * updated with dev ([90f545f](https://github.com/thebyte9/blaze/commit/90f545f1beabb35e26ba6fb2b45a7a0dfd072927))
30
- * updated with dev ([729bb6e](https://github.com/thebyte9/blaze/commit/729bb6ee7e87946081d51564a4ab45538f7be1e7))
31
- * updated with latest ([21cde6f](https://github.com/thebyte9/blaze/commit/21cde6f157c9279ed1eccb326870547821bc3dde))
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))
29
+ * updated toaster version ([39f3dbd](https://github.com/thebyte9/blaze/commit/39f3dbd15833d45dd0d407b401eb825553135e01))
30
+ * use direct state value for toggling sidebar ([091a021](https://github.com/thebyte9/blaze/commit/091a0210bb312e06505d86582ee014a512317da0))
31
+ * use isCreatePage to control navigation prompt display ([b56e0c7](https://github.com/thebyte9/blaze/commit/b56e0c7560308874554e3029a68878d1c2e8d948))
32
32
 
33
33
 
34
34
  ### Features
35
35
 
36
+ * add admin listing filters based on schema settings ([#4797](https://github.com/thebyte9/blaze/issues/4797)) ([84b3109](https://github.com/thebyte9/blaze/commit/84b310900222a60050e3cf32928ab62a12a99b8d))
37
+ * 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))
38
+ * 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
39
  * allow custom components in table columns ([#4482](https://github.com/thebyte9/blaze/issues/4482)) ([87098c9](https://github.com/thebyte9/blaze/commit/87098c93d9fd85adc2a2aa19f2e9a3db4402ae41))
40
+ * get carousel images from record data ([#4341](https://github.com/thebyte9/blaze/issues/4341)) ([904e8a3](https://github.com/thebyte9/blaze/commit/904e8a319ab053ee470dbb4477c3865d3a5435df))
41
+ * make right sidebar collapsible ([cd45684](https://github.com/thebyte9/blaze/commit/cd456849648a6fe674b4de7e5f994146d76066c9))
42
+ * open frontend debug toolbar with a url param ([#4771](https://github.com/thebyte9/blaze/issues/4771)) ([37b8ea5](https://github.com/thebyte9/blaze/commit/37b8ea59a5ed4be0912465717adeb079fd6b3a89))
43
+ * 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))
44
+ * set admin property groupings ([#4623](https://github.com/thebyte9/blaze/issues/4623)) ([a4ad574](https://github.com/thebyte9/blaze/commit/a4ad574e3754f8cc410ab67910d5ae833137dbcc))
45
+ * update info box properties to support tooltips ([#4701](https://github.com/thebyte9/blaze/issues/4701)) ([08ed041](https://github.com/thebyte9/blaze/commit/08ed041c9432f02e82e4846974cda65ae6c15a26))
37
46
  * updated react to 18 ([9335f84](https://github.com/thebyte9/blaze/commit/9335f8432b376494501abb9c3deef1ddaa9b35a8))
38
47
 
39
48
 
49
+ ### Reverts
50
+
51
+ * Revert "chore: updating versions" ([1bbc7c2](https://github.com/thebyte9/blaze/commit/1bbc7c25a20903b8d517e1276b113b68976307d2))
52
+
53
+
40
54
 
41
55
 
42
56
 
package/README.md CHANGED
@@ -31,6 +31,12 @@ 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
+ }
34
40
  }
35
41
  }
36
42
  ```
@@ -40,7 +46,37 @@ The `displayProperties` property can be set on entity schema in the api to provi
40
46
  - adminHeader: properties to build admin header
41
47
  - 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
48
  - disableDefaultAdminInfo: boolean value that can be used to hide default sidebar values updated/created
49
+ - adminListings.dataSource:
50
+ -- adminListings.dataSource.source: indicates whether to get listing data from search queries instead of direct entity queries.
51
+ -- adminListings.dataSource.index: which index to search. This changes the query used e.g. searchAdmin
52
+
53
+ ### Listing filters
54
+ You can add the following to an entity properties/dynamicProperties to have them generate filters that appear at the top of admin record listings.
55
+ ```json
56
+ // this will be represented as a select
57
+ "relationKeyId": {
58
+ "type": "string",
59
+ "label": "Related records",
60
+ "searchable": true,
61
+ "showInForm": true,
62
+ "formFieldType": "relation",
63
+ "adminListingOptions": {
64
+ "filterType": "select"
65
+ }
66
+ },
43
67
 
68
+ // will include this property in a keyword search
69
+ "name": {
70
+ "type": "string",
71
+ "label": "Name",
72
+ "searchable": true,
73
+ "adminListingOptions": {
74
+ "includeInKeywordSeach": true
75
+ }
76
+ }
77
+ ```
78
+ - `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
79
+ - `includeInKeywordSeach`: This property will be included in a keyword search
44
80
 
45
81
  ### Info properties
46
82
 
@@ -93,3 +129,24 @@ import coreAdminPlugin from '@blaze-cms/plugin-admin-core-ui';
93
129
  }
94
130
  });
95
131
  ```
132
+
133
+ ## Environment Variables
134
+
135
+ The following environment variables can be used to configure the behavior of this plugin:
136
+
137
+ | Variable | Description | Default |
138
+ | ------------------------------- | -------------------------------------------------------------------------------- | ------- |
139
+ | `BLAZE_DISABLE_PREVIEW` | Disables the preview button functionality completely | `false` |
140
+ | `BLAZE_DISABLE_URL_DEBUG_PARAM` | Disables adding "blaze_debug=1" parameter to preview and view URLs | `false` |
141
+
142
+ ### Usage
143
+
144
+ Set these variables in your environment to modify the plugin behavior:
145
+
146
+ ```bash
147
+ # Disable preview functionality
148
+ BLAZE_DISABLE_PREVIEW=true
149
+
150
+ # Disable debug parameter in URLs
151
+ BLAZE_DISABLE_URL_DEBUG_PARAM=true
152
+ ```
@@ -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":[]}