@plumile/backoffice-react 0.1.104 → 0.1.105

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 (228) hide show
  1. package/lib/esm/{AcceptInvitationScreen-B1IPafwD.js → AcceptInvitationScreen-VaWXQPHp.js} +4 -4
  2. package/lib/esm/AcceptInvitationScreen-VaWXQPHp.js.map +1 -0
  3. package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js → BackofficeAcceptInvitationPage-tpfBfhT9.js} +4 -4
  4. package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js.map → BackofficeAcceptInvitationPage-tpfBfhT9.js.map} +1 -1
  5. package/lib/esm/BackofficeDashboardPage-D5W36DY-.js +329 -0
  6. package/lib/esm/BackofficeDashboardPage-D5W36DY-.js.map +1 -0
  7. package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js +98 -0
  8. package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js.map +1 -0
  9. package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js +589 -0
  10. package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js.map +1 -0
  11. package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js → BackofficeEntityDetailLayoutContext-C5G-PH28.js} +1 -1
  12. package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map → BackofficeEntityDetailLayoutContext-C5G-PH28.js.map} +1 -1
  13. package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js → BackofficeEntityDetailLayoutPage-BSgGBzSL.js} +2 -2
  14. package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map → BackofficeEntityDetailLayoutPage-BSgGBzSL.js.map} +1 -1
  15. package/lib/esm/{BackofficeEntityDetailPage-ChxBrqz8.js → BackofficeEntityDetailPage-LB1uEJVM.js} +366 -358
  16. package/lib/esm/BackofficeEntityDetailPage-LB1uEJVM.js.map +1 -0
  17. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js} +3 -3
  18. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js.map} +1 -1
  19. package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js +432 -0
  20. package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js.map +1 -0
  21. package/lib/esm/BackofficeHubPage-DOePQ8Fc.js +121 -0
  22. package/lib/esm/BackofficeHubPage-DOePQ8Fc.js.map +1 -0
  23. package/lib/esm/BackofficeHubTemplate-C6K55egX.js +82 -0
  24. package/lib/esm/BackofficeHubTemplate-C6K55egX.js.map +1 -0
  25. package/lib/esm/{BackofficeLayoutPage-r6dXo9SI.js → BackofficeLayoutPage-Bq2bKkYF.js} +301 -217
  26. package/lib/esm/BackofficeLayoutPage-Bq2bKkYF.js.map +1 -0
  27. package/lib/esm/BackofficeListToolbar-loFfIPtP.js +109 -0
  28. package/lib/esm/BackofficeListToolbar-loFfIPtP.js.map +1 -0
  29. package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js → BackofficeLoginPage-DIlcOueK.js} +5 -5
  30. package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js.map → BackofficeLoginPage-DIlcOueK.js.map} +1 -1
  31. package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js → BackofficePasswordResetCompletePage-Cit5sdDm.js} +6 -7
  32. package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js.map → BackofficePasswordResetCompletePage-Cit5sdDm.js.map} +1 -1
  33. package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js → BackofficePasswordResetRequestPage-B_TurHev.js} +5 -6
  34. package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js.map → BackofficePasswordResetRequestPage-B_TurHev.js.map} +1 -1
  35. package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js → BackofficePermissionsContext-C2bdxy2z.js} +1 -1
  36. package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js.map → BackofficePermissionsContext-C2bdxy2z.js.map} +1 -1
  37. package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js +83 -0
  38. package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js.map +1 -0
  39. package/lib/esm/{BackofficeTopbarPortalContext-CphoSrZD.js → BackofficeTopbarPortalContext-Da5XFatM.js} +1 -1
  40. package/lib/esm/BackofficeTopbarPortalContext-Da5XFatM.js.map +1 -0
  41. package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js → BackofficeVerifyEmailPage-DQbFIob1.js} +6 -7
  42. package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js.map → BackofficeVerifyEmailPage-DQbFIob1.js.map} +1 -1
  43. package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js +340 -0
  44. package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js.map +1 -0
  45. package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js +670 -0
  46. package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js.map +1 -0
  47. package/lib/esm/backoffice-react.js +553 -315
  48. package/lib/esm/backoffice-react.js.map +1 -1
  49. package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js → backofficeAuthPaths-2hHNn8D3.js} +1 -1
  50. package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js.map → backofficeAuthPaths-2hHNn8D3.js.map} +1 -1
  51. package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js +6 -0
  52. package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js.map +1 -0
  53. package/lib/esm/{buildBreadcrumbs-C9cyiXb7.js → buildBreadcrumbs-C5St167Y.js} +1 -1
  54. package/lib/esm/buildBreadcrumbs-C5St167Y.js.map +1 -0
  55. package/lib/esm/{buildDataTableColumns-DGPjPK4N.js → buildDataTableColumns-DdmF-EYq.js} +1 -1
  56. package/lib/esm/{buildDataTableColumns-DGPjPK4N.js.map → buildDataTableColumns-DdmF-EYq.js.map} +1 -1
  57. package/lib/esm/{mutationResult-CcQMY13J.js → mutationResult-C2Vb_vPt.js} +1 -1
  58. package/lib/esm/{mutationResult-CcQMY13J.js.map → mutationResult-C2Vb_vPt.js.map} +1 -1
  59. package/lib/esm/{pageResolution-hAQA5C6S.js → pageResolution-CUaTq4Ql.js} +1 -1
  60. package/lib/esm/{pageResolution-hAQA5C6S.js.map → pageResolution-CUaTq4Ql.js.map} +1 -1
  61. package/lib/esm/{sidebarUtils-BZETlHea.js → sidebarUtils-BgCBLJLv.js} +20 -6
  62. package/lib/esm/sidebarUtils-BgCBLJLv.js.map +1 -0
  63. package/lib/esm/style.css +1 -1
  64. package/lib/esm/{synchronizeAuthStatusQuery-BoPKMrP1.js → synchronizeAuthStatusQuery-DNJR5MfH.js} +8 -9
  65. package/lib/esm/synchronizeAuthStatusQuery-DNJR5MfH.js.map +1 -0
  66. package/lib/esm/{toastViewAction-DJkv_4p9.js → toastViewAction-DQYlcGOL.js} +1 -1
  67. package/lib/esm/{toastViewAction-DJkv_4p9.js.map → toastViewAction-DQYlcGOL.js.map} +1 -1
  68. package/lib/esm/{useAuth-CheTnq60.js → useAuth-CWf8ZspF.js} +70 -66
  69. package/lib/esm/useAuth-CWf8ZspF.js.map +1 -0
  70. package/lib/esm/{useBackofficeAuth-DVAXNAjP.js → useBackofficeAuth-Da7FPNys.js} +2 -2
  71. package/lib/esm/{useBackofficeAuth-DVAXNAjP.js.map → useBackofficeAuth-Da7FPNys.js.map} +1 -1
  72. package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js → useBackofficeLazyValue-CW9xfRzQ.js} +1 -1
  73. package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js.map → useBackofficeLazyValue-CW9xfRzQ.js.map} +1 -1
  74. package/lib/esm/{useBackofficeListUrlState-D4fx5O7u.js → useBackofficeListUrlState-Ca6d7uIN.js} +1 -1
  75. package/lib/esm/useBackofficeListUrlState-Ca6d7uIN.js.map +1 -0
  76. package/lib/types/auth/login/LoginFlow.d.ts.map +1 -1
  77. package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
  78. package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
  79. package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
  80. package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
  81. package/lib/types/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.d.ts.map +1 -1
  82. package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts +4 -0
  83. package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts.map +1 -1
  84. package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts +3 -5
  85. package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts.map +1 -1
  86. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts +3 -4
  87. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
  88. package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts.map +1 -1
  89. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts +1 -0
  90. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts.map +1 -1
  91. package/lib/types/components/backoffice/detail/backofficeDetailLayout.css.d.ts.map +1 -1
  92. package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts +2 -0
  93. package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts.map +1 -1
  94. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts +4 -4
  95. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -1
  96. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts +13 -0
  97. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts.map +1 -0
  98. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts +4 -0
  99. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
  100. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts +3 -0
  101. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -0
  102. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +3 -0
  103. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
  104. package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts +36 -0
  105. package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts.map +1 -0
  106. package/lib/types/{pages/backofficeHubPage.css.d.ts → components/backoffice/hub/backofficeHubTemplate.css.d.ts} +5 -3
  107. package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -0
  108. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -1
  109. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts +2 -0
  110. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts.map +1 -1
  111. package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts +3 -0
  112. package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts.map +1 -1
  113. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +2 -2
  114. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
  115. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +1 -0
  116. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  117. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +2 -1
  118. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
  119. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts +16 -0
  120. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts.map +1 -0
  121. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts +16 -0
  122. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts.map +1 -0
  123. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +1 -1
  124. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  125. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts +2 -0
  126. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -1
  127. package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts.map +1 -1
  128. package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts.map +1 -1
  129. package/lib/types/components/backoffice/pickers/types.d.ts +1 -1
  130. package/lib/types/components/backoffice/pickers/types.d.ts.map +1 -1
  131. package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts +4 -4
  132. package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts.map +1 -1
  133. package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -1
  134. package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts +2 -0
  135. package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
  136. package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts +1 -1
  137. package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
  138. package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts +4 -0
  139. package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts.map +1 -1
  140. package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.d.ts.map +1 -1
  141. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +10 -6
  142. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  143. package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts +3 -3
  144. package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts.map +1 -1
  145. package/lib/types/components/backoffice/scaffolds/backofficeEntityListScaffold.css.d.ts.map +1 -1
  146. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts +13 -0
  147. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts.map +1 -0
  148. package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts +12 -0
  149. package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -0
  150. package/lib/types/components/backoffice/shared/backofficeInlineFilterRow.css.d.ts.map +1 -1
  151. package/lib/types/filters/filterHelpers.d.ts +3 -3
  152. package/lib/types/filters/filterHelpers.d.ts.map +1 -1
  153. package/lib/types/hooks/useAuth.d.ts.map +1 -1
  154. package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
  155. package/lib/types/hooks/useBackofficeListRefetch.d.ts +7 -3
  156. package/lib/types/hooks/useBackofficeListRefetch.d.ts.map +1 -1
  157. package/lib/types/hooks/useBackofficeListUrlState.d.ts +2 -2
  158. package/lib/types/hooks/useBackofficeListUrlState.d.ts.map +1 -1
  159. package/lib/types/i18n/resources.d.ts +84 -7
  160. package/lib/types/i18n/resources.d.ts.map +1 -1
  161. package/lib/types/index.d.ts +3 -0
  162. package/lib/types/index.d.ts.map +1 -1
  163. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  164. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  165. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +3 -8
  166. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  167. package/lib/types/pages/BackofficeEntityListPage.d.ts +2 -2
  168. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  169. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +8 -4
  170. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
  171. package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -1
  172. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  173. package/lib/types/pages/BackofficePasswordResetCompletePage.d.ts.map +1 -1
  174. package/lib/types/pages/BackofficePasswordResetRequestPage.d.ts.map +1 -1
  175. package/lib/types/pages/BackofficeVerifyEmailPage.d.ts.map +1 -1
  176. package/lib/types/pages/backofficeDashboardPage.css.d.ts +1 -14
  177. package/lib/types/pages/backofficeDashboardPage.css.d.ts.map +1 -1
  178. package/lib/types/pages/backofficeEntityDetailPage.css.d.ts +2 -0
  179. package/lib/types/pages/backofficeEntityDetailPage.css.d.ts.map +1 -1
  180. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts +14 -0
  181. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts.map +1 -0
  182. package/lib/types/pages/dashboard/DashboardPanel.d.ts +9 -0
  183. package/lib/types/pages/dashboard/DashboardPanel.d.ts.map +1 -0
  184. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts +13 -0
  185. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts.map +1 -0
  186. package/lib/types/pages/dashboard/DashboardStatusList.d.ts +13 -0
  187. package/lib/types/pages/dashboard/DashboardStatusList.d.ts.map +1 -0
  188. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts +4 -0
  189. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts.map +1 -0
  190. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts +2 -0
  191. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts.map +1 -0
  192. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts +5 -0
  193. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts.map +1 -0
  194. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts +6 -0
  195. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts.map +1 -0
  196. package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
  197. package/lib/types/provider/types.d.ts +5 -1
  198. package/lib/types/provider/types.d.ts.map +1 -1
  199. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  200. package/package.json +5 -5
  201. package/lib/esm/AcceptInvitationScreen-B1IPafwD.js.map +0 -1
  202. package/lib/esm/BackofficeDashboardPage-CZAcZwRc.js +0 -344
  203. package/lib/esm/BackofficeDashboardPage-CZAcZwRc.js.map +0 -1
  204. package/lib/esm/BackofficeDetailPayload-P61MDRLE.js +0 -94
  205. package/lib/esm/BackofficeDetailPayload-P61MDRLE.js.map +0 -1
  206. package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js +0 -512
  207. package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js.map +0 -1
  208. package/lib/esm/BackofficeEntityDetailPage-ChxBrqz8.js.map +0 -1
  209. package/lib/esm/BackofficeEntityListPage-BACvfX6c.js +0 -404
  210. package/lib/esm/BackofficeEntityListPage-BACvfX6c.js.map +0 -1
  211. package/lib/esm/BackofficeHubPage-BsUXulN0.js +0 -136
  212. package/lib/esm/BackofficeHubPage-BsUXulN0.js.map +0 -1
  213. package/lib/esm/BackofficeLayoutPage-r6dXo9SI.js.map +0 -1
  214. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +0 -53
  215. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +0 -1
  216. package/lib/esm/BackofficeTopbarPortalContext-CphoSrZD.js.map +0 -1
  217. package/lib/esm/EntityFilterValue-BWUdPBwp.js +0 -78
  218. package/lib/esm/EntityFilterValue-BWUdPBwp.js.map +0 -1
  219. package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js +0 -308
  220. package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js.map +0 -1
  221. package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js +0 -522
  222. package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js.map +0 -1
  223. package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +0 -1
  224. package/lib/esm/sidebarUtils-BZETlHea.js.map +0 -1
  225. package/lib/esm/synchronizeAuthStatusQuery-BoPKMrP1.js.map +0 -1
  226. package/lib/esm/useAuth-CheTnq60.js.map +0 -1
  227. package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +0 -1
  228. package/lib/types/pages/backofficeHubPage.css.d.ts.map +0 -1
@@ -0,0 +1,589 @@
1
+ import { r as e, t } from "./useBackofficeReactTranslation-Btt58EIo.js";
2
+ import { i as n, t as r } from "./EntityIdPickerDialog-BSn0v3bv.js";
3
+ import { i } from "./mutationResult-C2Vb_vPt.js";
4
+ import { n as a, t as o } from "./toastViewAction-DQYlcGOL.js";
5
+ import { a as s, c, n as ee, o as l, t as u } from "./backofficeEntityActionFormDialog.css-DJgEKwaA.js";
6
+ import { useCallback as d, useContext as f, useEffect as p, useId as te, useMemo as m, useState as h } from "react";
7
+ import { useTranslation as ne } from "react-i18next";
8
+ import { RoutingContext as re } from "@plumile/router";
9
+ import { BackofficeFormSection as ie, Button as g, CheckboxField as _, Form as ae, FormErrorBanner as oe, FormGroup as v, HighlightCode as se, Input as y, Label as b, Modal as ce, SimpleSelect as le, Textarea as ue, useToast as de } from "@plumile/ui";
10
+ import * as x from "react-relay";
11
+ import { Fragment as fe, jsx as S, jsxs as C } from "react/jsx-runtime";
12
+ //#region src/components/backoffice/actions/BackofficeEntityActionFormDialog.tsx
13
+ var { commitMutation: pe, useRelayEnvironment: me } = x, w = (e, t) => e(t), T = (e) => typeof e == "object" && !!e && !Array.isArray(e), he = (e) => {
14
+ if (!T(e)) return null;
15
+ for (let t of Object.values(e)) if (T(t) && ("status" in t || "result" in t)) return t;
16
+ return null;
17
+ }, E = (e) => {
18
+ let t = {};
19
+ return e.forEach((e) => {
20
+ if (e.kind === "boolean") {
21
+ t[e.id] = e.defaultValue ?? !1;
22
+ return;
23
+ }
24
+ if (e.kind === "multiEnum") {
25
+ t[e.id] = e.defaultValue ?? [];
26
+ return;
27
+ }
28
+ if (e.defaultValue != null) {
29
+ t[e.id] = e.defaultValue;
30
+ return;
31
+ }
32
+ t[e.id] = "";
33
+ }), t;
34
+ }, D = (e, t) => e.kind === "number" ? typeof t == "number" ? String(t) : typeof t == "string" ? t : "" : e.kind === "multiEnum" ? Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim() !== "") : [] : e.kind === "boolean" ? t === !0 : typeof t == "string" ? t : t ?? "", ge = (e, t) => {
35
+ let n = E(e.fields);
36
+ if (e.getInitialValues == null) return n;
37
+ let r = e.getInitialValues(t), i = { ...n };
38
+ return e.fields.forEach((e) => {
39
+ e.id in r && (i[e.id] = D(e, r[e.id]));
40
+ }), i;
41
+ }, O = ({ isOpen: x, action: E, node: D, onClose: O, onSuccess: k }) => {
42
+ let { t: A } = ne(), { t: j } = t(), { entities: M } = e(), N = f(re), P = me(), F = de(), _e = te(), [I, L] = h({}), [ve, R] = h(null), [ye, z] = h({}), [B, V] = h(!1), [H, U] = h(null), [W, G] = h(null), [K, q] = h(null);
43
+ p(() => {
44
+ x && (L(ge(E, D)), R(null), z({}), U(null), G(null));
45
+ }, [
46
+ E,
47
+ x,
48
+ D
49
+ ]);
50
+ let J = d(() => {
51
+ B || O();
52
+ }, [B, O]), Y = d((e, t) => {
53
+ L((n) => ({
54
+ ...n,
55
+ [e]: t
56
+ })), z((t) => {
57
+ if (t[e] == null) return t;
58
+ let { [e]: n, ...r } = t;
59
+ return r;
60
+ });
61
+ }, []), be = w(E.label, A), X = d((e) => j("actions.form.errors.required", { label: e }), [j]), xe = d((e) => j("actions.form.errors.invalidNumber", { label: e }), [j]), Se = d((e) => j("actions.form.errors.invalidJson", { label: e }), [j]), Ce = d((e) => j("actions.form.errors.invalidJsonObject", { label: e }), [j]), we = d((e) => j("actions.form.errors.invalidJsonArray", { label: e }), [j]), Te = d(() => {
62
+ let e = {};
63
+ for (let t of E.fields) {
64
+ let n = w(t.label, A), r = I[t.id];
65
+ switch (t.kind) {
66
+ case "text": {
67
+ let i = "";
68
+ if (typeof r == "string" && (i = r.trim()), i === "") {
69
+ if (t.required) return {
70
+ error: X(n),
71
+ fieldId: t.id
72
+ };
73
+ break;
74
+ }
75
+ e[t.id] = i;
76
+ break;
77
+ }
78
+ case "number": {
79
+ let i = "";
80
+ if (typeof r == "string" ? i = r.trim() : typeof r == "number" && Number.isFinite(r) && (i = String(r)), i === "") {
81
+ if (t.required) return {
82
+ error: X(n),
83
+ fieldId: t.id
84
+ };
85
+ break;
86
+ }
87
+ let a = Number(i);
88
+ if (!Number.isFinite(a)) return {
89
+ error: xe(n),
90
+ fieldId: t.id
91
+ };
92
+ e[t.id] = a;
93
+ break;
94
+ }
95
+ case "json": {
96
+ let i = "";
97
+ if (typeof r == "string" && (i = r.trim()), i === "") {
98
+ if (t.required) return {
99
+ error: X(n),
100
+ fieldId: t.id
101
+ };
102
+ break;
103
+ }
104
+ let a;
105
+ try {
106
+ a = JSON.parse(i);
107
+ } catch {
108
+ return {
109
+ error: Se(n),
110
+ fieldId: t.id
111
+ };
112
+ }
113
+ let o = t.jsonType ?? "object";
114
+ if (o === "object" && !T(a)) return {
115
+ error: Ce(n),
116
+ fieldId: t.id
117
+ };
118
+ if (o === "array" && !Array.isArray(a)) return {
119
+ error: we(n),
120
+ fieldId: t.id
121
+ };
122
+ e[t.id] = a;
123
+ break;
124
+ }
125
+ case "enum": {
126
+ let i = "";
127
+ if (typeof r == "string" && (i = r.trim()), i === "") {
128
+ if (t.required) return {
129
+ error: X(n),
130
+ fieldId: t.id
131
+ };
132
+ break;
133
+ }
134
+ e[t.id] = i;
135
+ break;
136
+ }
137
+ case "boolean":
138
+ e[t.id] = r === !0;
139
+ break;
140
+ case "entityId": {
141
+ let i = "";
142
+ if (typeof r == "string" && (i = r.trim()), i === "") {
143
+ if (t.required) return {
144
+ error: X(n),
145
+ fieldId: t.id
146
+ };
147
+ break;
148
+ }
149
+ e[t.id] = i;
150
+ break;
151
+ }
152
+ case "multiEnum": {
153
+ let i = [];
154
+ if (Array.isArray(r) && (i = r.filter((e) => typeof e == "string" && e.trim() !== "")), i.length === 0) {
155
+ if (t.required) return {
156
+ error: X(n),
157
+ fieldId: t.id
158
+ };
159
+ break;
160
+ }
161
+ e[t.id] = i;
162
+ break;
163
+ }
164
+ default: break;
165
+ }
166
+ }
167
+ return { values: e };
168
+ }, [
169
+ E.fields,
170
+ we,
171
+ Se,
172
+ Ce,
173
+ xe,
174
+ X,
175
+ A,
176
+ I
177
+ ]), Z = d(() => {
178
+ if (B) return;
179
+ R(null), z({});
180
+ let e = Te();
181
+ if ("error" in e) {
182
+ R(e.error), e.fieldId != null && z({ [e.fieldId]: e.error });
183
+ return;
184
+ }
185
+ let t;
186
+ try {
187
+ t = E.getVariables(D, e.values);
188
+ } catch {
189
+ R(j("actions.form.errors.invalidPayload"));
190
+ return;
191
+ }
192
+ V(!0), pe(P, {
193
+ mutation: E.mutation,
194
+ variables: t,
195
+ updater: (e) => {
196
+ E.updater?.(e, D);
197
+ },
198
+ onCompleted: (e) => {
199
+ V(!1);
200
+ let t = he(e);
201
+ if (t != null) {
202
+ let e = j("actions.form.errors.invalidPayload");
203
+ E.toasts?.error?.message == null ? E.toasts?.error?.title != null && (e = w(E.toasts.error.title, A)) : e = w(E.toasts.error.message, A);
204
+ let n = i(t, {
205
+ defaultErrorMessage: e,
206
+ mapReason: (e) => {
207
+ let t = E.mapErrorReason?.(e, D);
208
+ return t == null ? null : typeof t == "function" ? w(t, A) : String(t);
209
+ }
210
+ });
211
+ if (!n.ok) {
212
+ let e = Error(n.message);
213
+ if (R(n.message), E.onError?.(e, D), E.toasts?.error != null) {
214
+ let e = w(E.toasts.error.title, A), t;
215
+ E.toasts.error.message != null && (t = w(E.toasts.error.message, A)), F.error(e, t);
216
+ }
217
+ return;
218
+ }
219
+ }
220
+ E.onCompleted?.(e, D);
221
+ let n = !1;
222
+ if (E.result?.render != null && E.result.render(e, D) != null && (n = !0, G(e)), E.toasts?.success != null) {
223
+ let t = o(E.toasts.success, A), n = a({
224
+ toast: E.toasts.success,
225
+ response: e,
226
+ node: D,
227
+ tApp: A,
228
+ entities: M,
229
+ defaultLabel: j("actions.view"),
230
+ navigateTo: (e) => {
231
+ N?.history.push({ pathname: e });
232
+ }
233
+ });
234
+ F.push({
235
+ kind: "info",
236
+ title: t.title,
237
+ message: t.message,
238
+ actions: n
239
+ });
240
+ }
241
+ if (E.result != null) {
242
+ let t = E.result.getValue(e, D);
243
+ if (typeof t == "string" && t.trim() !== "") {
244
+ U(t), k?.();
245
+ return;
246
+ }
247
+ }
248
+ if (n) {
249
+ k?.();
250
+ return;
251
+ }
252
+ k?.(), O();
253
+ },
254
+ onError: (e) => {
255
+ if (V(!1), R(j("actions.form.errors.submitFailed")), E.onError?.(e, D), E.toasts?.error != null) {
256
+ let e = w(E.toasts.error.title, A), t;
257
+ E.toasts.error.message != null && (t = w(E.toasts.error.message, A)), F.error(e, t);
258
+ }
259
+ }
260
+ });
261
+ }, [
262
+ E,
263
+ Te,
264
+ M,
265
+ P,
266
+ B,
267
+ D,
268
+ O,
269
+ k,
270
+ N?.history,
271
+ j,
272
+ A,
273
+ F
274
+ ]), Ee = d((e) => {
275
+ e.preventDefault(), Z();
276
+ }, [Z]), Q = m(() => E.result == null ? null : w(E.result.label, A), [E.result, A]), De = m(() => E.result?.render == null || W == null ? null : E.result.render(W, D), [
277
+ E.result,
278
+ D,
279
+ W
280
+ ]), $ = H != null && Q != null || De != null, Oe = w(E.label, A);
281
+ return x ? /* @__PURE__ */ C(fe, { children: [/* @__PURE__ */ S(ce, {
282
+ isOpen: x,
283
+ onClose: J,
284
+ title: be,
285
+ footer: /* @__PURE__ */ C("div", {
286
+ className: u,
287
+ children: [/* @__PURE__ */ S(g, {
288
+ type: "button",
289
+ variant: "secondary",
290
+ size: "small",
291
+ disabled: B,
292
+ onClick: J,
293
+ children: j("actions.form.cancel")
294
+ }), !$ && /* @__PURE__ */ S(g, {
295
+ type: "submit",
296
+ variant: "primary",
297
+ size: "small",
298
+ disabled: B,
299
+ isLoading: B,
300
+ loadingLabel: j("actions.form.submitting"),
301
+ onClick: Z,
302
+ children: Oe
303
+ })]
304
+ }),
305
+ children: /* @__PURE__ */ C(ae, {
306
+ onSubmit: Ee,
307
+ className: l,
308
+ children: [
309
+ /* @__PURE__ */ S(oe, { message: ve }),
310
+ /* @__PURE__ */ S(ie, { children: E.fields.map((e) => {
311
+ let t = w(e.label, A), r = null;
312
+ e.description != null && (r = w(e.description, A));
313
+ let i = `${_e}-${e.id}`, a = `${i}-description`, o = `${i}-error`, l = ye[e.id] ?? null, u = l != null, d, f = "default";
314
+ u && (d = "error", f = "error");
315
+ let p;
316
+ switch (r != null && l != null ? p = `${a} ${o}` : r == null ? l != null && (p = o) : p = a, e.kind) {
317
+ case "text": {
318
+ let n = I[e.id], s = "";
319
+ typeof n == "string" && (s = n);
320
+ let c;
321
+ return e.placeholder != null && (c = w(e.placeholder, A)), /* @__PURE__ */ C(v, { children: [
322
+ /* @__PURE__ */ S(b, {
323
+ htmlFor: i,
324
+ required: e.required,
325
+ children: t
326
+ }),
327
+ r != null && /* @__PURE__ */ S("span", {
328
+ id: a,
329
+ className: "txvbqb8p txvbqbv9d",
330
+ children: r
331
+ }),
332
+ /* @__PURE__ */ S(y, {
333
+ id: i,
334
+ type: "text",
335
+ value: s,
336
+ placeholder: c,
337
+ "aria-describedby": p,
338
+ "aria-invalid": u,
339
+ disabled: B,
340
+ variant: d,
341
+ onChange: (t) => {
342
+ Y(e.id, t.target.value);
343
+ },
344
+ fullWidth: !0
345
+ }),
346
+ l != null && /* @__PURE__ */ S("span", {
347
+ id: o,
348
+ className: "txvbqb8p txvbqbvad",
349
+ children: l
350
+ })
351
+ ] }, e.id);
352
+ }
353
+ case "number": {
354
+ let n = I[e.id], s = "";
355
+ typeof n == "string" && (s = n);
356
+ let c;
357
+ return e.placeholder != null && (c = w(e.placeholder, A)), /* @__PURE__ */ C(v, { children: [
358
+ /* @__PURE__ */ S(b, {
359
+ htmlFor: i,
360
+ required: e.required,
361
+ children: t
362
+ }),
363
+ r != null && /* @__PURE__ */ S("span", {
364
+ id: a,
365
+ className: "txvbqb8p txvbqbv9d",
366
+ children: r
367
+ }),
368
+ /* @__PURE__ */ S(y, {
369
+ id: i,
370
+ type: "number",
371
+ value: s,
372
+ placeholder: c,
373
+ "aria-describedby": p,
374
+ "aria-invalid": u,
375
+ disabled: B,
376
+ variant: d,
377
+ onChange: (t) => {
378
+ Y(e.id, t.target.value);
379
+ },
380
+ fullWidth: !0
381
+ }),
382
+ l != null && /* @__PURE__ */ S("span", {
383
+ id: o,
384
+ className: "txvbqb8p txvbqbvad",
385
+ children: l
386
+ })
387
+ ] }, e.id);
388
+ }
389
+ case "json": {
390
+ let n = I[e.id], s = "";
391
+ typeof n == "string" && (s = n);
392
+ let c;
393
+ return e.placeholder != null && (c = w(e.placeholder, A)), /* @__PURE__ */ C(v, { children: [
394
+ /* @__PURE__ */ S(b, {
395
+ htmlFor: i,
396
+ required: e.required,
397
+ children: t
398
+ }),
399
+ r != null && /* @__PURE__ */ S("span", {
400
+ id: a,
401
+ className: "txvbqb8p txvbqbv9d",
402
+ children: r
403
+ }),
404
+ /* @__PURE__ */ S(ue, {
405
+ id: i,
406
+ value: s,
407
+ placeholder: c,
408
+ rows: 8,
409
+ "aria-describedby": p,
410
+ "aria-invalid": u,
411
+ disabled: B,
412
+ variant: d,
413
+ onChange: (t) => {
414
+ Y(e.id, t.target.value);
415
+ },
416
+ fullWidth: !0
417
+ }),
418
+ l != null && /* @__PURE__ */ S("span", {
419
+ id: o,
420
+ className: "txvbqb8p txvbqbvad",
421
+ children: l
422
+ })
423
+ ] }, e.id);
424
+ }
425
+ case "enum": {
426
+ let n = I[e.id], s = "";
427
+ typeof n == "string" && (s = n);
428
+ let c = e.options.map((e) => ({
429
+ id: e.value,
430
+ value: e.value,
431
+ label: w(e.label, A)
432
+ }));
433
+ return /* @__PURE__ */ C(v, { children: [
434
+ /* @__PURE__ */ S(b, {
435
+ id: `${i}-label`,
436
+ required: e.required,
437
+ children: t
438
+ }),
439
+ r != null && /* @__PURE__ */ S("span", {
440
+ id: a,
441
+ className: "txvbqb8p txvbqbv9d",
442
+ children: r
443
+ }),
444
+ /* @__PURE__ */ S(le, {
445
+ options: c,
446
+ value: s,
447
+ placeholder: t,
448
+ ariaDescribedBy: p,
449
+ ariaInvalid: u,
450
+ ariaLabelledBy: `${i}-label`,
451
+ isDisabled: B,
452
+ state: f,
453
+ onChange: (t) => {
454
+ Y(e.id, t);
455
+ }
456
+ }),
457
+ l != null && /* @__PURE__ */ S("span", {
458
+ id: o,
459
+ className: "txvbqb8p txvbqbvad",
460
+ children: l
461
+ })
462
+ ] }, e.id);
463
+ }
464
+ case "boolean": {
465
+ let n = I[e.id] === !0;
466
+ return /* @__PURE__ */ S(v, { children: /* @__PURE__ */ S(_, {
467
+ id: i,
468
+ label: t,
469
+ helperText: r ?? void 0,
470
+ error: l ?? void 0,
471
+ checked: n,
472
+ disabled: B,
473
+ onChange: (t) => {
474
+ Y(e.id, t.target.checked);
475
+ }
476
+ }) }, e.id);
477
+ }
478
+ case "entityId": {
479
+ let s = I[e.id], c = "";
480
+ return typeof s == "string" && (c = s), /* @__PURE__ */ C(v, { children: [
481
+ /* @__PURE__ */ S(b, {
482
+ htmlFor: i,
483
+ required: e.required,
484
+ children: t
485
+ }),
486
+ r != null && /* @__PURE__ */ S("span", {
487
+ id: a,
488
+ className: "txvbqb8p txvbqbv9d",
489
+ children: r
490
+ }),
491
+ /* @__PURE__ */ S(n, {
492
+ id: i,
493
+ label: t,
494
+ value: c,
495
+ ariaDescribedBy: p,
496
+ ariaInvalid: u,
497
+ disabled: B,
498
+ onPick: () => {
499
+ q({
500
+ fieldId: e.id,
501
+ entity: e.entity,
502
+ label: t
503
+ });
504
+ },
505
+ onClear: () => {
506
+ Y(e.id, "");
507
+ }
508
+ }),
509
+ l != null && /* @__PURE__ */ S("span", {
510
+ id: o,
511
+ className: "txvbqb8p txvbqbvad",
512
+ children: l
513
+ })
514
+ ] }, e.id);
515
+ }
516
+ case "multiEnum": {
517
+ let n = I[e.id], d = `${i}-legend`, f = [];
518
+ return Array.isArray(n) && (f = n.filter((e) => typeof e == "string")), /* @__PURE__ */ C(v, { children: [/* @__PURE__ */ C("fieldset", {
519
+ className: s,
520
+ children: [
521
+ /* @__PURE__ */ C("legend", {
522
+ id: d,
523
+ className: c,
524
+ children: [t, e.required && /* @__PURE__ */ S("span", {
525
+ className: "txvbqbgng txvbqbvad",
526
+ children: "*"
527
+ })]
528
+ }),
529
+ r != null && /* @__PURE__ */ S("span", {
530
+ id: a,
531
+ className: "txvbqb8p txvbqbv9d",
532
+ children: r
533
+ }),
534
+ /* @__PURE__ */ S("div", {
535
+ className: ee,
536
+ role: "group",
537
+ "aria-labelledby": d,
538
+ "aria-describedby": p,
539
+ "aria-invalid": u,
540
+ children: e.options.map((t, n) => {
541
+ let r = w(t.label, A), a = f.includes(t.value);
542
+ return /* @__PURE__ */ S(_, {
543
+ id: `${i}-${n}`,
544
+ label: r,
545
+ checked: a,
546
+ disabled: B,
547
+ onChange: (n) => {
548
+ let r = f;
549
+ n.target.checked ? f.includes(t.value) || (r = [...f, t.value]) : r = f.filter((e) => e !== t.value), Y(e.id, r);
550
+ }
551
+ }, `${t.value}-${n}`);
552
+ })
553
+ })
554
+ ]
555
+ }), l != null && /* @__PURE__ */ S("span", {
556
+ id: o,
557
+ className: "txvbqb8p txvbqbvad",
558
+ children: l
559
+ })] }, e.id);
560
+ }
561
+ default: return null;
562
+ }
563
+ }) }),
564
+ $ && /* @__PURE__ */ C("div", {
565
+ className: "txvbqb9ip txvbqbai7 txvbqbao7",
566
+ children: [H != null && Q != null && /* @__PURE__ */ S(se, {
567
+ badgeLabel: Q,
568
+ copyCode: H,
569
+ fallbackCodeText: H
570
+ }), De]
571
+ })
572
+ ]
573
+ })
574
+ }), /* @__PURE__ */ S(r, {
575
+ isOpen: K != null,
576
+ entity: K?.entity ?? "",
577
+ title: K?.label ?? "",
578
+ onClose: () => {
579
+ q(null);
580
+ },
581
+ onSelectId: (e) => {
582
+ K != null && (Y(K.fieldId, e), q(null));
583
+ }
584
+ })] }) : null;
585
+ };
586
+ //#endregion
587
+ export { O as BackofficeEntityActionFormDialog, O as default };
588
+
589
+ //# sourceMappingURL=BackofficeEntityActionFormDialog-DrZxuytz.js.map