@plumile/backoffice-react 0.1.72 → 0.1.73

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 (390) hide show
  1. package/lib/esm/{auth/pages/AcceptInvitationScreen.js → AcceptInvitationScreen-CNLlSbdx.js} +25 -29
  2. package/lib/esm/AcceptInvitationScreen-CNLlSbdx.js.map +1 -0
  3. package/lib/esm/{auth/login/AuthPanel.js → AuthPanel-ttoH9YxE.js} +7 -7
  4. package/lib/esm/AuthPanel-ttoH9YxE.js.map +1 -0
  5. package/lib/esm/BackofficeAcceptInvitationPage-DRxM1Z-U.js +30 -0
  6. package/lib/esm/BackofficeAcceptInvitationPage-DRxM1Z-U.js.map +1 -0
  7. package/lib/esm/BackofficeDashboardPage-GKyT60qb.js +195 -0
  8. package/lib/esm/BackofficeDashboardPage-GKyT60qb.js.map +1 -0
  9. package/lib/esm/BackofficeDetailPayload-B-qs8Fai.js +94 -0
  10. package/lib/esm/BackofficeDetailPayload-B-qs8Fai.js.map +1 -0
  11. package/lib/esm/{components/backoffice/actions/BackofficeEntityActionFormDialog.js → BackofficeEntityActionFormDialog-FHlW0vys.js} +120 -131
  12. package/lib/esm/BackofficeEntityActionFormDialog-FHlW0vys.js.map +1 -0
  13. package/lib/esm/{pages/detail/BackofficeEntityDetailLayoutContext.js → BackofficeEntityDetailLayoutContext-C_tBqkVq.js} +2 -2
  14. package/lib/esm/BackofficeEntityDetailLayoutContext-C_tBqkVq.js.map +1 -0
  15. package/lib/esm/BackofficeEntityDetailLayoutPage-DXjRqvcZ.js +18 -0
  16. package/lib/esm/BackofficeEntityDetailLayoutPage-DXjRqvcZ.js.map +1 -0
  17. package/lib/esm/BackofficeEntityDetailPage-CdrMXu5a.js +991 -0
  18. package/lib/esm/BackofficeEntityDetailPage-CdrMXu5a.js.map +1 -0
  19. package/lib/esm/{pages/BackofficeEntityDetailUnknownPageRedirect.js → BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js} +3 -3
  20. package/lib/esm/BackofficeEntityDetailUnknownPageRedirect-DRWTeox-.js.map +1 -0
  21. package/lib/esm/BackofficeEntityListPage-BxgqdFpL.js +385 -0
  22. package/lib/esm/BackofficeEntityListPage-BxgqdFpL.js.map +1 -0
  23. package/lib/esm/BackofficeLayoutPage-k9OkLfXb.js +485 -0
  24. package/lib/esm/BackofficeLayoutPage-k9OkLfXb.js.map +1 -0
  25. package/lib/esm/BackofficeLoginPage-C64BcxMw.js +50 -0
  26. package/lib/esm/BackofficeLoginPage-C64BcxMw.js.map +1 -0
  27. package/lib/esm/BackofficePasswordResetCompletePage-BA7kkUxN.js +60 -0
  28. package/lib/esm/BackofficePasswordResetCompletePage-BA7kkUxN.js.map +1 -0
  29. package/lib/esm/{pages/BackofficePasswordResetRequestPage.js → BackofficePasswordResetRequestPage-B9wSZcyn.js} +15 -13
  30. package/lib/esm/BackofficePasswordResetRequestPage-B9wSZcyn.js.map +1 -0
  31. package/lib/esm/BackofficeRightPageLayout-ktdlvTZJ.js +107 -0
  32. package/lib/esm/BackofficeRightPageLayout-ktdlvTZJ.js.map +1 -0
  33. package/lib/esm/{components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js → BackofficeTopbarPortalContext-iD7dm4_h.js} +2 -2
  34. package/lib/esm/BackofficeTopbarPortalContext-iD7dm4_h.js.map +1 -0
  35. package/lib/esm/BackofficeVerifyEmailPage-CAzMqo2K.js +59 -0
  36. package/lib/esm/BackofficeVerifyEmailPage-CAzMqo2K.js.map +1 -0
  37. package/lib/esm/EntityFilterValue-SC_jkj4O.js +77 -0
  38. package/lib/esm/EntityFilterValue-SC_jkj4O.js.map +1 -0
  39. package/lib/esm/EntityIdPickerDialog-FMC5Hx_I.js +308 -0
  40. package/lib/esm/EntityIdPickerDialog-FMC5Hx_I.js.map +1 -0
  41. package/lib/esm/LazyBackofficeEntityActionFormDialog-DOEgoIfT.js +486 -0
  42. package/lib/esm/LazyBackofficeEntityActionFormDialog-DOEgoIfT.js.map +1 -0
  43. package/lib/esm/{auth/pages/PasswordResetCompleteScreen.js → PasswordResetCompleteScreen-C4GQdavL.js} +21 -25
  44. package/lib/esm/PasswordResetCompleteScreen-C4GQdavL.js.map +1 -0
  45. package/lib/esm/{auth/pages/PasswordResetRequestScreen.js → PasswordResetRequestScreen-aUY_yDqM.js} +19 -23
  46. package/lib/esm/PasswordResetRequestScreen-aUY_yDqM.js.map +1 -0
  47. package/lib/esm/VerifyEmailScreen-2DuHJgdY.js +62 -0
  48. package/lib/esm/VerifyEmailScreen-2DuHJgdY.js.map +1 -0
  49. package/lib/esm/backoffice-react.js +1804 -0
  50. package/lib/esm/backoffice-react.js.map +1 -0
  51. package/lib/esm/{router/backofficeAuthPaths.js → backofficeAuthPaths-BiJvoI5Q.js} +2 -2
  52. package/lib/esm/backofficeAuthPaths-BiJvoI5Q.js.map +1 -0
  53. package/lib/esm/{components/backoffice/layout/breadcrumb/buildBreadcrumbs.js → buildBreadcrumbs-CqF9Nh6x.js} +3 -7
  54. package/lib/esm/buildBreadcrumbs-CqF9Nh6x.js.map +1 -0
  55. package/lib/esm/{relay/environment.js → environment-BJeJTbIN.js} +91 -71
  56. package/lib/esm/environment-BJeJTbIN.js.map +1 -0
  57. package/lib/esm/loginPage.css-BDQJNcSr.js +12 -0
  58. package/lib/esm/loginPage.css-BDQJNcSr.js.map +1 -0
  59. package/lib/esm/{relay/mutationResult.js → mutationResult-CcQMY13J.js} +2 -2
  60. package/lib/esm/mutationResult-CcQMY13J.js.map +1 -0
  61. package/lib/esm/{pages/detail/pageResolution.js → pageResolution-hAQA5C6S.js} +2 -2
  62. package/lib/esm/pageResolution-hAQA5C6S.js.map +1 -0
  63. package/lib/esm/{components/backoffice/layout/sidebarUtils.js → sidebarUtils-CuwJ_3mD.js} +2 -12
  64. package/lib/esm/{components/backoffice/layout/sidebarUtils.js.map → sidebarUtils-CuwJ_3mD.js.map} +1 -1
  65. package/lib/esm/{provider/BackofficeConfigContext.js → sprinkles.css.ts.vanilla-n-NK_DwW.js} +2 -2
  66. package/lib/esm/sprinkles.css.ts.vanilla-n-NK_DwW.js.map +1 -0
  67. package/lib/esm/style.css +1 -1
  68. package/lib/esm/synchronizeAuthStatusQuery-lLR0XFew.js +323 -0
  69. package/lib/esm/synchronizeAuthStatusQuery-lLR0XFew.js.map +1 -0
  70. package/lib/esm/{components/backoffice/actions/toastViewAction.js → toastViewAction-BGTS7vqm.js} +2 -2
  71. package/lib/esm/{components/backoffice/actions/toastViewAction.js.map → toastViewAction-BGTS7vqm.js.map} +1 -1
  72. package/lib/esm/useAuth-AczFS-oL.js +543 -0
  73. package/lib/esm/useAuth-AczFS-oL.js.map +1 -0
  74. package/lib/esm/useBackofficeAuth-BHteJQzA.js +89 -0
  75. package/lib/esm/useBackofficeAuth-BHteJQzA.js.map +1 -0
  76. package/lib/esm/{provider/useBackofficeLazyValue.js → useBackofficeLazyValue-B0-ckL6e.js} +7 -15
  77. package/lib/esm/useBackofficeLazyValue-B0-ckL6e.js.map +1 -0
  78. package/lib/esm/{hooks/useBackofficeListUrlState.js → useBackofficeListUrlState-D4fx5O7u.js} +2 -2
  79. package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +1 -0
  80. package/lib/esm/{components/backoffice/errors/BackofficeErrorBoundary.js → useBackofficeReactTranslation-WfXU8kCf.js} +9 -3
  81. package/lib/esm/useBackofficeReactTranslation-WfXU8kCf.js.map +1 -0
  82. package/lib/esm/{relay/useRelayEnvironment.js → useRelayEnvironment-vQ86aW-n.js} +2 -2
  83. package/lib/esm/useRelayEnvironment-vQ86aW-n.js.map +1 -0
  84. package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
  85. package/lib/types/auth/login/MethodChooser.d.ts.map +1 -1
  86. package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
  87. package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
  88. package/lib/types/auth/login/PasswordLoginPanel.d.ts +1 -1
  89. package/lib/types/auth/login/PasswordLoginPanel.d.ts.map +1 -1
  90. package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
  91. package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -1
  92. package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -1
  93. package/lib/types/auth/pages/VerifyEmailScreen.d.ts.map +1 -1
  94. package/lib/types/components/backoffice/detail/BackofficeDetailErrorList.d.ts.map +1 -1
  95. package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts.map +1 -1
  96. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -1
  97. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +1 -1
  98. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  99. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  100. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  101. package/lib/types/filters/filterHelpers.d.ts +1 -1
  102. package/lib/types/filters/filterHelpers.d.ts.map +1 -1
  103. package/lib/types/index.d.ts +5 -0
  104. package/lib/types/index.d.ts.map +1 -1
  105. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  106. package/lib/types/provider/BackofficeConfigContext.d.ts +1 -0
  107. package/lib/types/provider/BackofficeConfigContext.d.ts.map +1 -1
  108. package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
  109. package/lib/types/provider/types.d.ts +2 -0
  110. package/lib/types/provider/types.d.ts.map +1 -1
  111. package/lib/types/relay/environment.d.ts +1 -0
  112. package/lib/types/relay/environment.d.ts.map +1 -1
  113. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  114. package/package.json +9 -9
  115. package/lib/esm/auth/login/AuthPanel.js.map +0 -1
  116. package/lib/esm/auth/login/EmailCapturePanel.js +0 -52
  117. package/lib/esm/auth/login/EmailCapturePanel.js.map +0 -1
  118. package/lib/esm/auth/login/LoginFlow.js +0 -130
  119. package/lib/esm/auth/login/LoginFlow.js.map +0 -1
  120. package/lib/esm/auth/login/MethodChooser.js +0 -51
  121. package/lib/esm/auth/login/MethodChooser.js.map +0 -1
  122. package/lib/esm/auth/login/MfaChallengeForm.js +0 -83
  123. package/lib/esm/auth/login/MfaChallengeForm.js.map +0 -1
  124. package/lib/esm/auth/login/OidcButtons.js +0 -29
  125. package/lib/esm/auth/login/OidcButtons.js.map +0 -1
  126. package/lib/esm/auth/login/PasskeyLoginForm.js +0 -84
  127. package/lib/esm/auth/login/PasskeyLoginForm.js.map +0 -1
  128. package/lib/esm/auth/login/PasswordLoginPanel.js +0 -37
  129. package/lib/esm/auth/login/PasswordLoginPanel.js.map +0 -1
  130. package/lib/esm/auth/login/loginPage.css.js +0 -8
  131. package/lib/esm/auth/login/loginPage.css.js.map +0 -1
  132. package/lib/esm/auth/login/synchronizeAuthStatusQuery.js +0 -10
  133. package/lib/esm/auth/login/synchronizeAuthStatusQuery.js.map +0 -1
  134. package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +0 -1
  135. package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +0 -1
  136. package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +0 -1
  137. package/lib/esm/auth/pages/VerifyEmailScreen.js +0 -65
  138. package/lib/esm/auth/pages/VerifyEmailScreen.js.map +0 -1
  139. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +0 -1
  140. package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js +0 -11
  141. package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js.map +0 -1
  142. package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js +0 -8
  143. package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js.map +0 -1
  144. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +0 -59
  145. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +0 -1
  146. package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js +0 -22
  147. package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +0 -1
  148. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +0 -41
  149. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +0 -1
  150. package/lib/esm/components/backoffice/detail/BackofficeDetailField.js +0 -31
  151. package/lib/esm/components/backoffice/detail/BackofficeDetailField.js.map +0 -1
  152. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js +0 -8
  153. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js.map +0 -1
  154. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js +0 -24
  155. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js.map +0 -1
  156. package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js +0 -20
  157. package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js.map +0 -1
  158. package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js +0 -18
  159. package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js.map +0 -1
  160. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js +0 -49
  161. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js.map +0 -1
  162. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationList.js +0 -11
  163. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationList.js.map +0 -1
  164. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +0 -115
  165. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +0 -1
  166. package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js +0 -33
  167. package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js.map +0 -1
  168. package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js +0 -18
  169. package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js.map +0 -1
  170. package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js +0 -8
  171. package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +0 -1
  172. package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js +0 -8
  173. package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +0 -1
  174. package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js +0 -15
  175. package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js.map +0 -1
  176. package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js +0 -8
  177. package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +0 -1
  178. package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +0 -8
  179. package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js.map +0 -1
  180. package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js +0 -8
  181. package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +0 -1
  182. package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js +0 -8
  183. package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js.map +0 -1
  184. package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js +0 -8
  185. package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js.map +0 -1
  186. package/lib/esm/components/backoffice/detail/detailPayloadUtils.js +0 -17
  187. package/lib/esm/components/backoffice/detail/detailPayloadUtils.js.map +0 -1
  188. package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js.map +0 -1
  189. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +0 -43
  190. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +0 -1
  191. package/lib/esm/components/backoffice/filters/EntityFilterValue.js +0 -46
  192. package/lib/esm/components/backoffice/filters/EntityFilterValue.js.map +0 -1
  193. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +0 -51
  194. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +0 -1
  195. package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js +0 -8
  196. package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +0 -1
  197. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js +0 -8
  198. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +0 -1
  199. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +0 -8
  200. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +0 -1
  201. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js +0 -10
  202. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js.map +0 -1
  203. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +0 -38
  204. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +0 -1
  205. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.js +0 -12
  206. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.js.map +0 -1
  207. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js.map +0 -1
  208. package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js +0 -16
  209. package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js.map +0 -1
  210. package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +0 -8
  211. package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +0 -1
  212. package/lib/esm/components/backoffice/layout/breadcrumb/buildBreadcrumbs.js.map +0 -1
  213. package/lib/esm/components/backoffice/layout/breadcrumb/types.js +0 -0
  214. package/lib/esm/components/backoffice/layout/buildSidebarSections.js +0 -183
  215. package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +0 -1
  216. package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js +0 -18
  217. package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +0 -1
  218. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +0 -7
  219. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js.map +0 -1
  220. package/lib/esm/components/backoffice/list/RowFlagsCell.js +0 -37
  221. package/lib/esm/components/backoffice/list/RowFlagsCell.js.map +0 -1
  222. package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js +0 -31
  223. package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js.map +0 -1
  224. package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js +0 -8
  225. package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +0 -1
  226. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +0 -106
  227. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +0 -1
  228. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +0 -8
  229. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +0 -1
  230. package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js +0 -23
  231. package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js.map +0 -1
  232. package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js +0 -23
  233. package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js.map +0 -1
  234. package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js +0 -24
  235. package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js.map +0 -1
  236. package/lib/esm/components/backoffice/pickers/types.js +0 -0
  237. package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js +0 -35
  238. package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js.map +0 -1
  239. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js +0 -54
  240. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js.map +0 -1
  241. package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js +0 -8
  242. package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js.map +0 -1
  243. package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js +0 -8
  244. package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +0 -1
  245. package/lib/esm/components/backoffice/routing/BackofficeContentBoundary.js +0 -24
  246. package/lib/esm/components/backoffice/routing/BackofficeContentBoundary.js.map +0 -1
  247. package/lib/esm/components/backoffice/routing/BackofficeContentError.js +0 -38
  248. package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +0 -1
  249. package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js +0 -47
  250. package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js.map +0 -1
  251. package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +0 -22
  252. package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +0 -1
  253. package/lib/esm/components/backoffice/routing/BackofficeRoutePendingBar.js +0 -12
  254. package/lib/esm/components/backoffice/routing/BackofficeRoutePendingBar.js.map +0 -1
  255. package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js +0 -8
  256. package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +0 -1
  257. package/lib/esm/components/backoffice/routing/backofficeContentError.css.js +0 -8
  258. package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +0 -1
  259. package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js +0 -8
  260. package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +0 -1
  261. package/lib/esm/components/backoffice/routing/backofficeRouteFallback.css.js +0 -8
  262. package/lib/esm/components/backoffice/routing/backofficeRouteFallback.css.js.map +0 -1
  263. package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js +0 -8
  264. package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js.map +0 -1
  265. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js +0 -11
  266. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js.map +0 -1
  267. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +0 -438
  268. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +0 -1
  269. package/lib/esm/components/backoffice/scaffolds/BackofficeListFilterContext.js +0 -40
  270. package/lib/esm/components/backoffice/scaffolds/BackofficeListFilterContext.js.map +0 -1
  271. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +0 -24
  272. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +0 -1
  273. package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js +0 -8
  274. package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +0 -1
  275. package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js +0 -8
  276. package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +0 -1
  277. package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js +0 -12
  278. package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js.map +0 -1
  279. package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js +0 -8
  280. package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +0 -1
  281. package/lib/esm/filters/filterHelpers.js +0 -36
  282. package/lib/esm/filters/filterHelpers.js.map +0 -1
  283. package/lib/esm/hooks/useAuth.js +0 -439
  284. package/lib/esm/hooks/useAuth.js.map +0 -1
  285. package/lib/esm/hooks/useBackofficeAuth.js +0 -89
  286. package/lib/esm/hooks/useBackofficeAuth.js.map +0 -1
  287. package/lib/esm/hooks/useBackofficeListRefetch.js +0 -40
  288. package/lib/esm/hooks/useBackofficeListRefetch.js.map +0 -1
  289. package/lib/esm/hooks/useBackofficeListUrlState.js.map +0 -1
  290. package/lib/esm/hooks/useBackofficeLoadMore.js +0 -18
  291. package/lib/esm/hooks/useBackofficeLoadMore.js.map +0 -1
  292. package/lib/esm/hooks/useBackofficeSessionAuth.js +0 -28
  293. package/lib/esm/hooks/useBackofficeSessionAuth.js.map +0 -1
  294. package/lib/esm/hooks/useBackofficeSidebarPins.js +0 -70
  295. package/lib/esm/hooks/useBackofficeSidebarPins.js.map +0 -1
  296. package/lib/esm/hooks/useConditionalSubscription.js +0 -57
  297. package/lib/esm/hooks/useConditionalSubscription.js.map +0 -1
  298. package/lib/esm/hooks/useCopyToClipboard.js +0 -31
  299. package/lib/esm/hooks/useCopyToClipboard.js.map +0 -1
  300. package/lib/esm/hooks/useRefetchNeededReload.js +0 -23
  301. package/lib/esm/hooks/useRefetchNeededReload.js.map +0 -1
  302. package/lib/esm/hooks/useSidebarGroupCollapse.js +0 -35
  303. package/lib/esm/hooks/useSidebarGroupCollapse.js.map +0 -1
  304. package/lib/esm/i18n/createI18nInstance.js +0 -62
  305. package/lib/esm/i18n/createI18nInstance.js.map +0 -1
  306. package/lib/esm/i18n/locales/en/backofficeReact.js +0 -249
  307. package/lib/esm/i18n/locales/en/backofficeReact.js.map +0 -1
  308. package/lib/esm/i18n/locales/en/shared.js +0 -201
  309. package/lib/esm/i18n/locales/en/shared.js.map +0 -1
  310. package/lib/esm/i18n/locales/fr/backofficeReact.js +0 -251
  311. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +0 -1
  312. package/lib/esm/i18n/locales/fr/shared.js +0 -201
  313. package/lib/esm/i18n/locales/fr/shared.js.map +0 -1
  314. package/lib/esm/i18n/mergeResourceLanguages.js +0 -19
  315. package/lib/esm/i18n/mergeResourceLanguages.js.map +0 -1
  316. package/lib/esm/i18n/resources.js +0 -19
  317. package/lib/esm/i18n/resources.js.map +0 -1
  318. package/lib/esm/i18n/useBackofficeFormats.js +0 -23
  319. package/lib/esm/i18n/useBackofficeFormats.js.map +0 -1
  320. package/lib/esm/i18n/useBackofficeReactTranslation.js +0 -9
  321. package/lib/esm/i18n/useBackofficeReactTranslation.js.map +0 -1
  322. package/lib/esm/i18n/useReviewStatusLabel.js +0 -19
  323. package/lib/esm/i18n/useReviewStatusLabel.js.map +0 -1
  324. package/lib/esm/i18n/useSharedTranslation.js +0 -9
  325. package/lib/esm/i18n/useSharedTranslation.js.map +0 -1
  326. package/lib/esm/index.js +0 -37
  327. package/lib/esm/modules/base64.js +0 -23
  328. package/lib/esm/modules/base64.js.map +0 -1
  329. package/lib/esm/modules/formatFileSize.js +0 -28
  330. package/lib/esm/modules/formatFileSize.js.map +0 -1
  331. package/lib/esm/modules/sharedSchemaTypes.js +0 -0
  332. package/lib/esm/modules/webauthn.js +0 -33
  333. package/lib/esm/modules/webauthn.js.map +0 -1
  334. package/lib/esm/pages/BackofficeAcceptInvitationPage.js +0 -24
  335. package/lib/esm/pages/BackofficeAcceptInvitationPage.js.map +0 -1
  336. package/lib/esm/pages/BackofficeDashboardPage.js +0 -197
  337. package/lib/esm/pages/BackofficeDashboardPage.js.map +0 -1
  338. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +0 -18
  339. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +0 -1
  340. package/lib/esm/pages/BackofficeEntityDetailPage.js +0 -837
  341. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +0 -1
  342. package/lib/esm/pages/BackofficeEntityDetailUnknownPageRedirect.js.map +0 -1
  343. package/lib/esm/pages/BackofficeEntityListPage.js +0 -363
  344. package/lib/esm/pages/BackofficeEntityListPage.js.map +0 -1
  345. package/lib/esm/pages/BackofficeLayoutPage.js +0 -137
  346. package/lib/esm/pages/BackofficeLayoutPage.js.map +0 -1
  347. package/lib/esm/pages/BackofficeLoginPage.js +0 -46
  348. package/lib/esm/pages/BackofficeLoginPage.js.map +0 -1
  349. package/lib/esm/pages/BackofficePasswordResetCompletePage.js +0 -59
  350. package/lib/esm/pages/BackofficePasswordResetCompletePage.js.map +0 -1
  351. package/lib/esm/pages/BackofficePasswordResetRequestPage.js.map +0 -1
  352. package/lib/esm/pages/BackofficeVerifyEmailPage.js +0 -59
  353. package/lib/esm/pages/BackofficeVerifyEmailPage.js.map +0 -1
  354. package/lib/esm/pages/backofficeDashboardPage.css.js +0 -8
  355. package/lib/esm/pages/backofficeDashboardPage.css.js.map +0 -1
  356. package/lib/esm/pages/backofficeEntityDetailPage.css.js +0 -8
  357. package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +0 -1
  358. package/lib/esm/pages/backofficeEntityListPage.css.js +0 -8
  359. package/lib/esm/pages/backofficeEntityListPage.css.js.map +0 -1
  360. package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +0 -1
  361. package/lib/esm/pages/detail/buildTabsItems.js +0 -10
  362. package/lib/esm/pages/detail/buildTabsItems.js.map +0 -1
  363. package/lib/esm/pages/detail/pageResolution.js.map +0 -1
  364. package/lib/esm/provider/BackofficeConfigContext.js.map +0 -1
  365. package/lib/esm/provider/BackofficeProvider.js +0 -152
  366. package/lib/esm/provider/BackofficeProvider.js.map +0 -1
  367. package/lib/esm/provider/entityRegistry.js +0 -91
  368. package/lib/esm/provider/entityRegistry.js.map +0 -1
  369. package/lib/esm/provider/lazyValue.js +0 -14
  370. package/lib/esm/provider/lazyValue.js.map +0 -1
  371. package/lib/esm/provider/types.js +0 -0
  372. package/lib/esm/provider/useBackofficeEntityLoader.js +0 -137
  373. package/lib/esm/provider/useBackofficeEntityLoader.js.map +0 -1
  374. package/lib/esm/provider/useBackofficeLazyValue.js.map +0 -1
  375. package/lib/esm/relay/RelayProvider.js +0 -12
  376. package/lib/esm/relay/RelayProvider.js.map +0 -1
  377. package/lib/esm/relay/createInlineDataReader.js +0 -2
  378. package/lib/esm/relay/createInlineReader.js +0 -7
  379. package/lib/esm/relay/createInlineReader.js.map +0 -1
  380. package/lib/esm/relay/envHelpers.js +0 -46
  381. package/lib/esm/relay/envHelpers.js.map +0 -1
  382. package/lib/esm/relay/environment.js.map +0 -1
  383. package/lib/esm/relay/identityView.js +0 -6
  384. package/lib/esm/relay/identityView.js.map +0 -1
  385. package/lib/esm/relay/mutationResult.js.map +0 -1
  386. package/lib/esm/relay/useRelayEnvironment.js.map +0 -1
  387. package/lib/esm/router/backofficeAuthPaths.js.map +0 -1
  388. package/lib/esm/router/createBackofficeRoutes.js +0 -273
  389. package/lib/esm/router/createBackofficeRoutes.js.map +0 -1
  390. package/lib/esm/style.js +0 -1
@@ -1,837 +0,0 @@
1
- import { resolveMutationOutcome as e } from "../relay/mutationResult.js";
2
- import { useBackofficeReactTranslation as t } from "../i18n/useBackofficeReactTranslation.js";
3
- import { useBackofficeConfig as n } from "../provider/BackofficeConfigContext.js";
4
- import { resolveToastSpec as r, resolveToastViewActions as i } from "../components/backoffice/actions/toastViewAction.js";
5
- import { LazyBackofficeEntityActionFormDialog as a } from "../components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js";
6
- import { buildDataTableColumns as o } from "../components/backoffice/columns/buildDataTableColumns.js";
7
- import { BackofficeDetailBadgeRow as s } from "../components/backoffice/detail/BackofficeDetailBadgeRow.js";
8
- import { BackofficeDetailSection as c } from "../components/backoffice/detail/BackofficeDetailSection.js";
9
- import { BackofficeDetailErrorList as l } from "../components/backoffice/detail/BackofficeDetailErrorList.js";
10
- import { BackofficeDetailFlagTag as u } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
11
- import { BackofficeDetailPayload as d } from "../components/backoffice/detail/BackofficeDetailPayload.js";
12
- import { BackofficeDetailRelationListBlock as f } from "../components/backoffice/detail/BackofficeDetailRelationListBlock.js";
13
- import { BackofficeDetailTaggedValue as p } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
14
- import { BackofficeRightPageLayout as m } from "../components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js";
15
- import { buildEntityDetailBreadcrumb as h } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
16
- import { BackofficeEntityDetailScaffold as g } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
17
- import { useRelayEnvironment as _ } from "../relay/useRelayEnvironment.js";
18
- import { useBackofficeFormats as v } from "../i18n/useBackofficeFormats.js";
19
- import { resolveVisibleDetailPages as y } from "./detail/pageResolution.js";
20
- import { useBackofficeEntityDetailLayoutContext as b } from "./detail/BackofficeEntityDetailLayoutContext.js";
21
- import { headerActions as ee, headerBlock as te, headerMeta as ne, headerMetaList as re } from "./backofficeEntityDetailPage.css.js";
22
- import { buildTabsItems as ie } from "./detail/buildTabsItems.js";
23
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
24
- import { useTranslation as w } from "react-i18next";
25
- import { BackofficeKeyValueList as ae, BackofficePageHeader as oe, BackofficeRelationsMenu as se, BackofficeTabs as ce, Button as le, DataTable as T, DetailPageTemplate as ue, FormattedDate as E, HighlightCode as D, LazyBackofficeJsonViewer as O, LinkButton as de, Tag as k, useToast as A } from "@plumile/ui";
26
- import { useContext as j, useMemo as fe, useState as M } from "react";
27
- import { commitMutation as pe, useFragment as N, usePreloadedQuery as P } from "react-relay";
28
- import { HttpRedirect as F, Link as I, RoutingContext as L } from "@plumile/router";
29
- import { BACKOFFICE_DATE_TIME_OPTIONS as R } from "@plumile/backoffice-core/constants.js";
30
- import { buildBackofficeFallbackListHref as me, buildBackofficeListHref as he, buildBackofficeListLink as ge } from "@plumile/backoffice-core/state/buildListHref.js";
31
- import { setWhereValue as z } from "@plumile/backoffice-core/filters/where.js";
32
- import { ChatCheckSvg as B } from "@plumile/ui/icons/ChatCheckSvg.js";
33
- import { KeyOffSvg as V } from "@plumile/ui/icons/KeyOffSvg.js";
34
- import { KeySvg as H } from "@plumile/ui/icons/KeySvg.js";
35
- import { LockOpenSvg as U } from "@plumile/ui/icons/LockOpenSvg.js";
36
- import { LockSvg as W } from "@plumile/ui/icons/LockSvg.js";
37
- import { RobotCheckSvg as G } from "@plumile/ui/icons/RobotCheckSvg.js";
38
- import { RobotXSvg as K } from "@plumile/ui/icons/RobotXSvg.js";
39
- import { RocketOffSvg as q } from "@plumile/ui/icons/RocketOffSvg.js";
40
- import { RocketSvg as J } from "@plumile/ui/icons/RocketSvg.js";
41
- import { SettingsCheckSvg as _e } from "@plumile/ui/icons/SettingsCheckSvg.js";
42
- import { SettingsXSvg as ve } from "@plumile/ui/icons/SettingsXSvg.js";
43
- import { ShieldLockSvg as ye } from "@plumile/ui/icons/ShieldLockSvg.js";
44
- import { ShieldOffSvg as be } from "@plumile/ui/icons/ShieldOffSvg.js";
45
- import { XBadgeSvg as xe } from "@plumile/ui/icons/XBadgeSvg.js";
46
- //#region src/pages/BackofficeEntityDetailPage.tsx
47
- var Y = (e, t) => e(t), Se = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ce = (e) => {
48
- throw Error(`Unexpected value: ${String(e)}`);
49
- }, we = (e, t, n) => {
50
- switch (e) {
51
- case "yesNo": return t ? {
52
- tone: "success",
53
- label: n("common.boolean.yes")
54
- } : {
55
- tone: "neutral",
56
- label: n("common.boolean.no")
57
- };
58
- case "capability": return t ? {
59
- tone: "success",
60
- label: n("flags.capability.allowed"),
61
- icon: /* @__PURE__ */ S(ye, {
62
- width: 14,
63
- height: 14,
64
- "aria-hidden": "true"
65
- })
66
- } : {
67
- tone: "neutral",
68
- label: n("flags.capability.denied"),
69
- icon: /* @__PURE__ */ S(be, {
70
- width: 14,
71
- height: 14,
72
- "aria-hidden": "true"
73
- })
74
- };
75
- case "enabled": return t ? {
76
- tone: "success",
77
- label: n("flags.enabled.enabled"),
78
- icon: /* @__PURE__ */ S(_e, {
79
- width: 14,
80
- height: 14,
81
- "aria-hidden": "true"
82
- })
83
- } : {
84
- tone: "neutral",
85
- label: n("flags.enabled.disabled"),
86
- icon: /* @__PURE__ */ S(ve, {
87
- width: 14,
88
- height: 14,
89
- "aria-hidden": "true"
90
- })
91
- };
92
- case "failure": return t ? {
93
- tone: "danger",
94
- label: n("flags.failure.failed"),
95
- icon: /* @__PURE__ */ S(xe, {
96
- width: 14,
97
- height: 14,
98
- "aria-hidden": "true"
99
- })
100
- } : {
101
- tone: "success",
102
- label: n("flags.failure.ok"),
103
- icon: /* @__PURE__ */ S(B, {
104
- width: 14,
105
- height: 14,
106
- "aria-hidden": "true"
107
- })
108
- };
109
- case "encrypted": return t ? {
110
- tone: "info",
111
- label: n("flags.encrypted.encrypted"),
112
- icon: /* @__PURE__ */ S(H, {
113
- width: 14,
114
- height: 14,
115
- "aria-hidden": "true"
116
- })
117
- } : {
118
- tone: "neutral",
119
- label: n("flags.encrypted.notEncrypted"),
120
- icon: /* @__PURE__ */ S(V, {
121
- width: 14,
122
- height: 14,
123
- "aria-hidden": "true"
124
- })
125
- };
126
- case "locked": return t ? {
127
- tone: "warning",
128
- label: n("flags.locked.locked"),
129
- icon: /* @__PURE__ */ S(W, {
130
- width: 14,
131
- height: 14,
132
- "aria-hidden": "true"
133
- })
134
- } : {
135
- tone: "success",
136
- label: n("flags.locked.unlocked"),
137
- icon: /* @__PURE__ */ S(U, {
138
- width: 14,
139
- height: 14,
140
- "aria-hidden": "true"
141
- })
142
- };
143
- case "default": return t ? {
144
- tone: "info",
145
- label: n("flags.default.default")
146
- } : {
147
- tone: "neutral",
148
- label: n("flags.default.notDefault")
149
- };
150
- case "agentManaged": return t ? {
151
- tone: "info",
152
- label: n("flags.agentManaged.agentManaged"),
153
- icon: /* @__PURE__ */ S(G, {
154
- width: 14,
155
- height: 14,
156
- "aria-hidden": "true"
157
- })
158
- } : {
159
- tone: "neutral",
160
- label: n("flags.agentManaged.userManaged"),
161
- icon: /* @__PURE__ */ S(K, {
162
- width: 14,
163
- height: 14,
164
- "aria-hidden": "true"
165
- })
166
- };
167
- case "deployedProduction": return t ? {
168
- tone: "success",
169
- label: n("flags.deployedProduction.deployed"),
170
- icon: /* @__PURE__ */ S(J, {
171
- width: 14,
172
- height: 14,
173
- "aria-hidden": "true"
174
- })
175
- } : {
176
- tone: "neutral",
177
- label: n("flags.deployedProduction.notDeployed"),
178
- icon: /* @__PURE__ */ S(q, {
179
- width: 14,
180
- height: 14,
181
- "aria-hidden": "true"
182
- })
183
- };
184
- case "forced": return t ? {
185
- tone: "warning",
186
- label: n("flags.forced.forced")
187
- } : {
188
- tone: "neutral",
189
- label: n("flags.forced.normal")
190
- };
191
- default: return Ce(e);
192
- }
193
- }, Te = (e) => {
194
- if (!Se(e)) return null;
195
- for (let t of Object.values(e)) if (Se(t) && ("status" in t || "result" in t)) return t;
196
- return null;
197
- }, Ee = (e) => e.kind === "route", De = (e) => e.kind === "mutation", Oe = (e) => e.kind === "formMutation", X = (e, t) => typeof e == "function" ? e(t) : e ?? null, ke = (e) => {
198
- if (e == null) return null;
199
- let t = e.trim();
200
- return t === "" ? null : t;
201
- }, Z = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1, Q = (e, t) => typeof e == "function" ? e(t) : e, Ae = (e, t) => {
202
- let { tApp: n, t: r, resolveEntityHref: i } = t, a = r("common.notAvailable");
203
- if (e.type === "text") {
204
- let t = X(e.value, n);
205
- return Z(t) ? a : t;
206
- }
207
- if (e.type === "entityRef") {
208
- let { id: t } = e;
209
- if (t == null || t.trim() === "") return a;
210
- let r = X(e.label, n), o = r != null && String(r).trim() !== "" ? r : null;
211
- if (o == null) return a;
212
- let s = i?.(e.entity, t) ?? null;
213
- return s == null ? o : /* @__PURE__ */ S(I, {
214
- to: s,
215
- children: o
216
- });
217
- }
218
- let { href: o } = e;
219
- if (o == null || o.trim() === "") return a;
220
- let s = X(e.label, n);
221
- return Z(s) ? a : /* @__PURE__ */ S(I, {
222
- to: o,
223
- children: s
224
- });
225
- }, je = (e, t, n) => {
226
- let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: c, formatPercent: l, relationEntityListRoutes: d, resolveRelationItem: f } = n, m = [], h = [], g = [], _ = i("common.notAvailable");
227
- return e.forEach((e, n) => {
228
- let v = `${e.type}-${n}`;
229
- switch (e.type) {
230
- case "text": {
231
- let n = X(e.value(t), r);
232
- m.push({
233
- id: v,
234
- label: Y(e.label, r),
235
- size: e.size,
236
- value: n,
237
- copyValue: e.copyValue?.(t) ?? void 0,
238
- fullWidth: e.fullWidth
239
- });
240
- break;
241
- }
242
- case "badge": {
243
- let n = X(e.value(t), r), i = n == null ? "" : String(n), a = Q(e.tone, t), o = i.trim() === "" ? null : /* @__PURE__ */ S(k, {
244
- tone: a,
245
- children: i
246
- });
247
- m.push({
248
- id: v,
249
- label: Y(e.label, r),
250
- size: e.size,
251
- value: o
252
- });
253
- break;
254
- }
255
- case "badgeRow": {
256
- let n = e.items(t).map((e) => {
257
- let t = X(e.label, r), n = t == null ? "" : String(t);
258
- return {
259
- ...e,
260
- label: n
261
- };
262
- }), i = n.length > 0 ? /* @__PURE__ */ S(s, { items: n }) : null;
263
- m.push({
264
- id: v,
265
- label: Y(e.label, r),
266
- size: e.size,
267
- value: i,
268
- fullWidth: e.fullWidth
269
- });
270
- break;
271
- }
272
- case "dateTime": {
273
- let n = e.value(t);
274
- m.push({
275
- id: v,
276
- label: Y(e.label, r),
277
- size: e.size,
278
- value: /* @__PURE__ */ S(E, {
279
- value: n,
280
- options: R,
281
- fallback: i("common.notAvailable")
282
- })
283
- });
284
- break;
285
- }
286
- case "number": {
287
- let n = e.value(t), i = null;
288
- n != null && (i = e.format === "currency" ? c(n) : e.format === "percent" ? l(n) : o(n)), m.push({
289
- id: v,
290
- label: Y(e.label, r),
291
- size: e.size,
292
- value: i
293
- });
294
- break;
295
- }
296
- case "flag": {
297
- let n = e.value(t), a = null;
298
- if (n != null) {
299
- let t = we(e.variant, n, i);
300
- a = /* @__PURE__ */ S(u, {
301
- tone: t.tone,
302
- icon: t.icon,
303
- label: t.label
304
- });
305
- }
306
- m.push({
307
- id: v,
308
- label: Y(e.label, r),
309
- size: e.size,
310
- value: a
311
- });
312
- break;
313
- }
314
- case "entityRef": {
315
- let n = e.id(t), i = null;
316
- if (n != null && n.trim() !== "") {
317
- let r = e.value?.(t), o = r != null && r.trim() !== "" ? r : null, s = a?.(e.entity, n) ?? null;
318
- o != null && (i = s == null ? o : /* @__PURE__ */ S(I, {
319
- to: s,
320
- children: o
321
- }));
322
- }
323
- m.push({
324
- id: v,
325
- label: Y(e.label, r),
326
- size: e.size,
327
- value: i ?? _
328
- });
329
- break;
330
- }
331
- case "link": {
332
- let n = e.href(t), i = e.value(t), a = n != null && n.trim() !== "" && !Z(i) ? /* @__PURE__ */ S(I, {
333
- to: n,
334
- children: i
335
- }) : null;
336
- m.push({
337
- id: v,
338
- label: Y(e.label, r),
339
- size: e.size,
340
- value: a
341
- });
342
- break;
343
- }
344
- case "taggedValue": {
345
- let n = e.tag(t), o = Ae(e.value(t), {
346
- tApp: r,
347
- t: i,
348
- resolveEntityHref: a
349
- }), s = n == null ? null : {
350
- ...n,
351
- label: (() => {
352
- let e = X(n.label, r);
353
- return e == null ? "" : String(e);
354
- })()
355
- }, c = s != null || o != null ? /* @__PURE__ */ S(p, {
356
- tag: s,
357
- value: o
358
- }) : null;
359
- m.push({
360
- id: v,
361
- label: Y(e.label, r),
362
- size: e.size,
363
- value: c,
364
- fullWidth: e.fullWidth
365
- });
366
- break;
367
- }
368
- case "relation": {
369
- let n = ke(e.value(t));
370
- if (n == null) break;
371
- let i = d[e.entity];
372
- if (i == null) break;
373
- let a = Y(e.label, r), o = e.count?.(t) ?? null, s = z(null, e.whereKey, n, e.path);
374
- if (s == null) break;
375
- h.push(f({
376
- id: v,
377
- label: a,
378
- count: o,
379
- entityId: e.entity,
380
- filterId: e.filterId,
381
- listRoute: i,
382
- path: e.path,
383
- value: n,
384
- where: s,
385
- whereKey: e.whereKey
386
- }));
387
- break;
388
- }
389
- case "custom": {
390
- let n = e.render(t);
391
- if (n == null) break;
392
- if (e.label != null) {
393
- m.push({
394
- id: v,
395
- label: Y(e.label, r),
396
- size: e.size,
397
- value: n,
398
- fullWidth: e.fullWidth
399
- });
400
- break;
401
- }
402
- g.push(/* @__PURE__ */ S("div", { children: n }, v));
403
- break;
404
- }
405
- default: break;
406
- }
407
- }), {
408
- items: m,
409
- relationItems: h,
410
- customNodes: g
411
- };
412
- }, Me = (e, t, n) => {
413
- let { tApp: r, t: i, resolveEntityHref: a } = n, o = i("common.notAvailable");
414
- if (e.type === "dateTime") return /* @__PURE__ */ S(E, {
415
- value: e.value(t),
416
- options: R,
417
- fallback: o
418
- });
419
- if (e.type === "entityRef") {
420
- let n = e.id(t);
421
- if (n == null || n.trim() === "") return o;
422
- let i = X(e.value?.(t), r), s = i != null && String(i).trim() !== "" ? i : null;
423
- if (s == null) return o;
424
- let c = a?.(e.entity, n) ?? null;
425
- return c == null ? s : /* @__PURE__ */ S(I, {
426
- to: c,
427
- children: s
428
- });
429
- }
430
- if (e.type === "link") {
431
- let n = e.href(t), i = X(e.value(t), r);
432
- return n == null || n.trim() === "" || Z(i) ? o : /* @__PURE__ */ S(I, {
433
- to: n,
434
- children: i
435
- });
436
- }
437
- let s = X(e.value(t), r);
438
- return Z(s) ? o : s;
439
- }, Ne = (e, t, n) => {
440
- if (e.type === "badgeRow") {
441
- let r = e.items(t).map((e) => {
442
- let t = X(e.label, n), r = t == null ? "" : String(t);
443
- return {
444
- ...e,
445
- label: r
446
- };
447
- });
448
- return r.length === 0 ? void 0 : /* @__PURE__ */ S(s, { items: r });
449
- }
450
- let r = X(e.value(t), n), i = r == null ? "" : String(r);
451
- if (i.trim() !== "") return /* @__PURE__ */ S(k, {
452
- tone: Q(e.tone, t),
453
- children: i
454
- });
455
- }, Pe = (e, t, n) => {
456
- let { tApp: r, t: i, resolveEntityHref: a } = n, o = e.titleValue?.(t, r) ?? Y(e.title, r), s = o.trim() === "" ? Y(e.title, r) : o, c;
457
- if (e.subtitleItems != null && e.subtitleItems.length > 0) {
458
- let n = e.subtitleSeparator ?? " / ", o = [], { subtitleItems: s } = e;
459
- s.forEach((e, c) => {
460
- let l = e.value(t);
461
- o.push(/* @__PURE__ */ S("span", { children: Ae(l, {
462
- tApp: r,
463
- t: i,
464
- resolveEntityHref: a
465
- }) }, e.id)), c < s.length - 1 && o.push(/* @__PURE__ */ S("span", { children: n }, `${e.id}-sep`));
466
- }), c = /* @__PURE__ */ S("span", { children: o });
467
- } else {
468
- let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null : Y(e.subtitle, r));
469
- c = n != null && n.trim() !== "" ? n : void 0;
470
- }
471
- let l = [];
472
- e.badges != null && e.badges.forEach((e, n) => {
473
- let i = Y(e.label, r), a = X(e.value(t), r), o = a == null ? "" : String(a);
474
- if (o.trim() === "") return;
475
- let s = Q(e.tone, t);
476
- l.push(/* @__PURE__ */ S(k, {
477
- tone: s,
478
- children: `${i}: ${o}`
479
- }, `${i}-${n}`));
480
- });
481
- let u;
482
- e.status != null && (u = Ne(e.status, t, r));
483
- let d = e.meta?.map((e, n) => {
484
- let o = Y(e.label, r), s = Me(e, t, {
485
- tApp: r,
486
- t: i,
487
- resolveEntityHref: a
488
- });
489
- return {
490
- id: `${o}-${n}`,
491
- label: o,
492
- value: s
493
- };
494
- });
495
- return {
496
- title: s,
497
- subtitle: c,
498
- badges: l.length > 0 ? /* @__PURE__ */ S(x, { children: l }) : void 0,
499
- status: u,
500
- items: d
501
- };
502
- }, Fe = (e, t, n) => {
503
- let { tApp: r, t: i, resolveEntityHref: a } = n;
504
- return e == null || e.length === 0 ? [] : e.map((e, s) => {
505
- let u = n.keyPrefix == null ? `${e.kind}-${s}` : `${n.keyPrefix}-${e.kind}-${s}`;
506
- if (e.kind === "custom") {
507
- let n = e.render(t);
508
- return n == null ? null : e.label == null ? /* @__PURE__ */ S("div", { children: n }, u) : /* @__PURE__ */ S(c, {
509
- title: Y(e.label, r),
510
- children: n
511
- }, u);
512
- }
513
- let p = Y(e.label, r), m = e.description == null ? void 0 : Y(e.description, r);
514
- if (e.kind === "relationList") {
515
- let n = e.value(t);
516
- return /* @__PURE__ */ S(f, {
517
- title: p,
518
- target: e.target,
519
- whereKey: e.whereKey,
520
- value: n,
521
- path: e.path
522
- }, u);
523
- }
524
- if (e.kind === "table") {
525
- let n = e.rows(t);
526
- return /* @__PURE__ */ S(c, {
527
- title: p,
528
- description: m,
529
- children: /* @__PURE__ */ S(T, {
530
- columns: o(e.columns, {
531
- tApp: r,
532
- t: i,
533
- resolveEntityHref: a
534
- }),
535
- rows: n,
536
- getRowId: (e, t) => {
537
- if (typeof e == "object" && e) {
538
- let t = e.id;
539
- if (typeof t == "string" && t.trim() !== "") return t;
540
- }
541
- return String(t);
542
- }
543
- })
544
- }, u);
545
- }
546
- if (e.kind === "json") return /* @__PURE__ */ S(c, {
547
- title: p,
548
- description: m,
549
- children: /* @__PURE__ */ S(O, {
550
- value: e.value(t),
551
- title: p
552
- })
553
- }, u);
554
- if (e.kind === "code") {
555
- let n = e.value(t);
556
- return /* @__PURE__ */ S(c, {
557
- title: p,
558
- description: m,
559
- children: /* @__PURE__ */ S(D, {
560
- badgeLabel: i("tools.output"),
561
- copyCode: n,
562
- fallbackCodeText: n
563
- })
564
- }, u);
565
- }
566
- return e.kind === "payload" ? /* @__PURE__ */ S(d, {
567
- title: p,
568
- description: m,
569
- content: e.value(t),
570
- format: e.format
571
- }, u) : e.kind === "errorList" ? /* @__PURE__ */ S(l, {
572
- title: p,
573
- description: m,
574
- items: e.errors(t)
575
- }, u) : /* @__PURE__ */ S(c, {
576
- title: p,
577
- description: m,
578
- children: /* @__PURE__ */ S(ae, { items: e.items.map((e, n) => {
579
- let a = Y(e.label, r), o = X(e.value(t), r);
580
- return {
581
- id: `${a}-${n}`,
582
- label: a,
583
- value: o ?? i("common.notAvailable")
584
- };
585
- }) })
586
- }, u);
587
- });
588
- }, Ie = ({ config: o, prepared: s }) => {
589
- let { t: l } = w(), { t: u } = t(), { formatNumber: d, formatCurrency: f, formatPercent: p } = v(), { entities: T, entityRegistry: E } = n(), { layoutView: D } = b(), O = j(L), k = _(), I = A(), [R, z] = M({}), [B, V] = M(null), H = y({
590
- mainPage: o.pages.mainPage,
591
- subPages: o.pages.subPages,
592
- activePagePath: s.pagePath,
593
- node: D
594
- }), U = H.activePage ?? o.pages.mainPage, W = H.pages.length > 0 ? H.pages : [o.pages.mainPage], G = (e, t) => {
595
- z((n) => n[e] === t ? n : {
596
- ...n,
597
- [e]: t
598
- });
599
- }, { page: K } = o, q = P(K.query, s.pageQuery), J = K.resolveNode(q, {
600
- id: s.id,
601
- detailId: s.detailId
602
- });
603
- if (J == null) throw new F(o.routes.list);
604
- let _e = N(K.fragment, J), ve = fe(() => Object.fromEntries(K.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.entity] : []) : []).flatMap((e) => {
605
- let t = T[e];
606
- return t?.hasList === !0 ? [[e, t.routes.list]] : [];
607
- })), [T, K.content]);
608
- return /* @__PURE__ */ S(g, {
609
- node: _e,
610
- render: (t) => {
611
- let n = K.toView(t), g = ie({
612
- pages: W,
613
- id: s.id,
614
- tApp: l,
615
- detailPageHref: o.routes.detailPage
616
- }), _ = (e, t) => {
617
- let n = T[e];
618
- return n == null ? null : n.routes.detail(t);
619
- }, v = ({ id: e, label: t, count: n, entityId: r, filterId: i, listRoute: a, path: o, value: s, where: c, whereKey: l }) => {
620
- let u = E.getLoadedListEntity(r);
621
- return {
622
- id: e,
623
- label: t,
624
- count: n,
625
- href: u == null ? me(a, c, [{
626
- id: i ?? (o == null ? l : `${l}.${o.join(".")}`),
627
- value: s
628
- }]) : he(u.config, { where: c }),
629
- onClick: async (e) => {
630
- if (O == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
631
- e.preventDefault();
632
- let t = ge((await E.loadListEntity(r)).config, { where: c });
633
- O.history.push({
634
- pathname: t.pathname,
635
- search: t.search === "" ? "" : `?${t.search}`,
636
- hash: ""
637
- });
638
- }
639
- };
640
- }, y = Pe(o.header, D, {
641
- tApp: l,
642
- t: u,
643
- resolveEntityHref: _
644
- }), b = h({
645
- config: o,
646
- tApp: l,
647
- entityId: s.id,
648
- layoutView: D,
649
- pageLabel: U.label(l)
650
- }), w = K.actions ?? [], A = [];
651
- if (w.length > 0) {
652
- let t = w.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
653
- t.length > 0 && (A = t.map((t) => {
654
- let a = Y(t.label, l), o = t.ariaLabel == null ? a : Y(t.ariaLabel, l), s = t.variant ?? "secondary", c = t.size ?? "small", d = R[t.id] ?? !1, f = d || t.isDisabled?.(n) === !0;
655
- return Ee(t) ? /* @__PURE__ */ S(de, {
656
- to: t.to(n),
657
- variant: s,
658
- size: c,
659
- isDisabled: f,
660
- "aria-label": o,
661
- children: a
662
- }, t.id) : Oe(t) ? /* @__PURE__ */ S(le, {
663
- type: "button",
664
- variant: s,
665
- size: c,
666
- isLoading: !1,
667
- disabled: f,
668
- onClick: () => {
669
- V(t.id);
670
- },
671
- "aria-label": o,
672
- children: a
673
- }, t.id) : De(t) ? /* @__PURE__ */ S(le, {
674
- type: "button",
675
- variant: s,
676
- size: c,
677
- isLoading: d,
678
- disabled: f,
679
- onClick: () => {
680
- if (d) return;
681
- let a = t.getVariables(n);
682
- G(t.id, !0), pe(k, {
683
- mutation: t.mutation,
684
- variables: a,
685
- updater: (e) => {
686
- t.updater?.(e, n);
687
- },
688
- onCompleted: (a) => {
689
- G(t.id, !1);
690
- let o = Te(a);
691
- if (o != null) {
692
- let i = u("actions.form.errors.invalidPayload");
693
- t.toasts?.error?.message == null ? t.toasts?.error?.title != null && (i = Y(t.toasts.error.title, l)) : i = Y(t.toasts.error.message, l);
694
- let a = e(o, {
695
- defaultErrorMessage: i,
696
- mapReason: (e) => {
697
- let r = t.mapErrorReason?.(e, n);
698
- return r == null ? null : typeof r == "function" ? Y(r, l) : String(r);
699
- }
700
- });
701
- if (!a.ok) {
702
- let e = Error(a.message);
703
- if (t.onError?.(e, n), t.toasts?.error != null) {
704
- let e = r(t.toasts.error, l);
705
- I.error(e.title, e.message);
706
- }
707
- return;
708
- }
709
- }
710
- if (t.onCompleted?.(a, n), t.toasts?.success != null) {
711
- let e = r(t.toasts.success, l), o = i({
712
- toast: t.toasts.success,
713
- response: a,
714
- node: n,
715
- tApp: l,
716
- entities: T,
717
- defaultLabel: u("actions.view"),
718
- navigateTo: (e) => {
719
- O?.history.push({ pathname: e });
720
- }
721
- });
722
- I.push({
723
- kind: "info",
724
- title: e.title,
725
- message: e.message,
726
- actions: o
727
- });
728
- }
729
- },
730
- onError: (e) => {
731
- if (G(t.id, !1), t.onError?.(e, n), t.toasts?.error != null) {
732
- let e = r(t.toasts.error, l);
733
- I.error(e.title, e.message);
734
- }
735
- }
736
- });
737
- },
738
- "aria-label": o,
739
- children: a
740
- }, t.id) : null;
741
- }));
742
- }
743
- let j = w.find((e) => e.id === B), { content: fe } = K, M = [], N = [], P = [];
744
- fe.forEach((e, t) => {
745
- let r = (e.placement ?? "primary") === "secondary" ? N : M;
746
- if (e.kind === "section") {
747
- let i = Y(e.title, l), a = e.description == null ? void 0 : Y(e.description, l), { items: o, relationItems: s, customNodes: m } = je(e.fields, n, {
748
- tApp: l,
749
- t: u,
750
- resolveEntityHref: _,
751
- formatNumber: d,
752
- formatCurrency: f,
753
- formatPercent: p,
754
- relationEntityListRoutes: ve,
755
- resolveRelationItem: v
756
- });
757
- if (s.forEach((e) => {
758
- P.some((t) => t.id === e.id) || P.push(e);
759
- }), !(o.length > 0 || m.length > 0)) return;
760
- r.push(/* @__PURE__ */ S(c, {
761
- title: i,
762
- description: a,
763
- items: o.length > 0 ? o : void 0,
764
- children: m
765
- }, `${i}-${t}`));
766
- return;
767
- }
768
- let i = Fe([e], n, {
769
- tApp: l,
770
- t: u,
771
- resolveEntityHref: _,
772
- keyPrefix: String(t)
773
- })[0];
774
- i != null && r.push(i);
775
- });
776
- let F = P.length > 0 ? /* @__PURE__ */ S(se, {
777
- label: u("relations.menu.label"),
778
- items: P
779
- }) : null, L = A.length > 0 || F != null ? /* @__PURE__ */ C("div", {
780
- className: ee,
781
- children: [A, F]
782
- }) : void 0, z = y.status != null || y.badges != null ? /* @__PURE__ */ C("div", {
783
- className: ne,
784
- children: [y.status, y.badges]
785
- }) : void 0, H = y.items != null && y.items.length > 0 ? /* @__PURE__ */ S("div", {
786
- className: re,
787
- children: /* @__PURE__ */ S(ae, { items: y.items })
788
- }) : null, q = N.length > 0, J = null;
789
- return W.length > 1 && (J = /* @__PURE__ */ S(ce, {
790
- items: g,
791
- activeId: U.id,
792
- onChange: () => {}
793
- })), /* @__PURE__ */ C(m, {
794
- breadcrumb: b,
795
- children: [/* @__PURE__ */ S(ue, {
796
- headerNode: /* @__PURE__ */ C("div", {
797
- className: te,
798
- children: [/* @__PURE__ */ S(oe, {
799
- title: y.title,
800
- subtitle: y.subtitle,
801
- actions: L,
802
- meta: z
803
- }), H]
804
- }),
805
- tabsNode: J,
806
- sidePanel: q ? /* @__PURE__ */ S(x, { children: N }) : void 0,
807
- sidePanelVariant: "plain",
808
- children: /* @__PURE__ */ S(x, { children: M })
809
- }), j != null && Oe(j) && /* @__PURE__ */ S(a, {
810
- isOpen: !0,
811
- action: j,
812
- node: n,
813
- onClose: () => {
814
- V(null);
815
- }
816
- })]
817
- });
818
- }
819
- });
820
- }, $ = ({ config: e, prepared: t }) => {
821
- let { layoutView: n } = b(), r = y({
822
- mainPage: e.pages.mainPage,
823
- subPages: e.pages.subPages,
824
- activePagePath: t.pagePath,
825
- node: n
826
- });
827
- if (!r.hasVisiblePages || r.activePage == null) throw new F(e.routes.list);
828
- if (r.activePage.id !== t.pageId) throw new F(e.routes.detailPage(t.id, r.activePage.id));
829
- return /* @__PURE__ */ S(Ie, {
830
- config: t.pageConfig,
831
- prepared: t
832
- });
833
- };
834
- //#endregion
835
- export { $ as BackofficeEntityDetailPage, $ as default };
836
-
837
- //# sourceMappingURL=BackofficeEntityDetailPage.js.map