@plumile/backoffice-react 0.2.3 → 0.2.5

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 (296) hide show
  1. package/README.md +14 -3
  2. package/lib/esm/auth/AuthRefreshNotice.js +21 -18
  3. package/lib/esm/auth/AuthRefreshNotice.js.map +1 -1
  4. package/lib/esm/auth/TotpQrCode.js +20 -12
  5. package/lib/esm/auth/TotpQrCode.js.map +1 -1
  6. package/lib/esm/auth/authRefreshNotice.css.js +2 -1
  7. package/lib/esm/auth/authRefreshNotice.css.js.map +1 -1
  8. package/lib/esm/auth/login/AuthPanel.js.map +1 -1
  9. package/lib/esm/auth/login/EmailCapturePanel.js +26 -28
  10. package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -1
  11. package/lib/esm/auth/login/LoginFlow.js +11 -11
  12. package/lib/esm/auth/login/LoginFlow.js.map +1 -1
  13. package/lib/esm/auth/login/MethodChooser.js +18 -16
  14. package/lib/esm/auth/login/MethodChooser.js.map +1 -1
  15. package/lib/esm/auth/login/MfaChallengeForm.js +47 -52
  16. package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -1
  17. package/lib/esm/auth/login/OidcButtons.js +3 -2
  18. package/lib/esm/auth/login/OidcButtons.js.map +1 -1
  19. package/lib/esm/auth/login/PasskeyLoginForm.js +13 -15
  20. package/lib/esm/auth/login/PasskeyLoginForm.js.map +1 -1
  21. package/lib/esm/auth/login/PasswordLoginPanel.js +8 -8
  22. package/lib/esm/auth/login/PasswordLoginPanel.js.map +1 -1
  23. package/lib/esm/auth/login/loginPage.css.js +1 -1
  24. package/lib/esm/auth/login/loginPage.css.js.map +1 -1
  25. package/lib/esm/auth/pages/AcceptInvitationScreen.js +80 -75
  26. package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -1
  27. package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +31 -31
  28. package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -1
  29. package/lib/esm/auth/pages/PasswordResetRequestScreen.js +33 -29
  30. package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -1
  31. package/lib/esm/auth/pages/VerifyEmailScreen.js +42 -40
  32. package/lib/esm/auth/pages/VerifyEmailScreen.js.map +1 -1
  33. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +202 -210
  34. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
  35. package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js +1 -1
  36. package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js.map +1 -1
  37. package/lib/esm/components/backoffice/actions/toastViewAction.js.map +1 -1
  38. package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js +36 -30
  39. package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js.map +1 -1
  40. package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +1 -1
  41. package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js.map +1 -1
  42. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +36 -33
  43. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
  44. package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -1
  45. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +1 -1
  46. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -1
  47. package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js +24 -20
  48. package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js.map +1 -1
  49. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js +1 -1
  50. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js.map +1 -1
  51. package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js +7 -8
  52. package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js.map +1 -1
  53. package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js +49 -45
  54. package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js.map +1 -1
  55. package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js +1 -1
  56. package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +1 -1
  57. package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js +1 -1
  58. package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +1 -1
  59. package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js +1 -1
  60. package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +1 -1
  61. package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js +1 -1
  62. package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +1 -1
  63. package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js +1 -1
  64. package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js.map +1 -1
  65. package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js +1 -1
  66. package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js.map +1 -1
  67. package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js +1 -1
  68. package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js.map +1 -1
  69. package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js +1 -1
  70. package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js.map +1 -1
  71. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +1 -1
  72. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -1
  73. package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js +15 -15
  74. package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js.map +1 -1
  75. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +53 -65
  76. package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -1
  77. package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js +1 -1
  78. package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +1 -1
  79. package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js +1 -1
  80. package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js.map +1 -1
  81. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js +2 -2
  82. package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +1 -1
  83. package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js +6 -6
  84. package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js.map +1 -1
  85. package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js +1 -1
  86. package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js.map +1 -1
  87. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +1 -1
  88. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +1 -1
  89. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +3 -3
  90. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
  91. package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +1 -1
  92. package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +1 -1
  93. package/lib/esm/components/backoffice/layout/buildSidebarSections.js +152 -172
  94. package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -1
  95. package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js +2 -5
  96. package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -1
  97. package/lib/esm/components/backoffice/layout/sidebarUtils.js +1 -1
  98. package/lib/esm/components/backoffice/layout/sidebarUtils.js.map +1 -1
  99. package/lib/esm/components/backoffice/links/BackofficeLinkContent.js +1 -1
  100. package/lib/esm/components/backoffice/links/backofficeLink.css.js +1 -1
  101. package/lib/esm/components/backoffice/links/backofficeLink.css.js.map +1 -1
  102. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +1 -1
  103. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js.map +1 -1
  104. package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js +1 -1
  105. package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js.map +1 -1
  106. package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js +1 -1
  107. package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +1 -1
  108. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +93 -82
  109. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
  110. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +1 -1
  111. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
  112. package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js +1 -1
  113. package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -1
  114. package/lib/esm/components/backoffice/routing/BackofficeContentError.js +6 -3
  115. package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -1
  116. package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +7 -7
  117. package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +1 -1
  118. package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js +1 -1
  119. package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +1 -1
  120. package/lib/esm/components/backoffice/routing/backofficeContentError.css.js +1 -1
  121. package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +1 -1
  122. package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js +1 -1
  123. package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +1 -1
  124. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js +3 -2
  125. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js.map +1 -1
  126. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +314 -309
  127. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
  128. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +1 -1
  129. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -1
  130. package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js +1 -1
  131. package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +1 -1
  132. package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js +1 -1
  133. package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +1 -1
  134. package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js +2 -2
  135. package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js.map +1 -1
  136. package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js +1 -1
  137. package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js.map +1 -1
  138. package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js +5 -5
  139. package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js.map +1 -1
  140. package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js +1 -1
  141. package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +1 -1
  142. package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js +12 -12
  143. package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js.map +1 -1
  144. package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +3 -2
  145. package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -1
  146. package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +15 -19
  147. package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -1
  148. package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js +1 -1
  149. package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -1
  150. package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js +1 -1
  151. package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js.map +1 -1
  152. package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js +1 -1
  153. package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js.map +1 -1
  154. package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js +17 -9
  155. package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js.map +1 -1
  156. package/lib/esm/hooks/useCopyToClipboard.js +1 -1
  157. package/lib/esm/hooks/useCopyToClipboard.js.map +1 -1
  158. package/lib/esm/i18n/locales/en/backofficeReact.js +21 -2
  159. package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
  160. package/lib/esm/i18n/locales/fr/backofficeReact.js +21 -2
  161. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
  162. package/lib/esm/pages/BackofficeDashboardPage.js +42 -41
  163. package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
  164. package/lib/esm/pages/BackofficeDashboardWidgetContent.js +291 -255
  165. package/lib/esm/pages/BackofficeDashboardWidgetContent.js.map +1 -1
  166. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +47 -49
  167. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -1
  168. package/lib/esm/pages/BackofficeEntityDetailPage.js +111 -105
  169. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  170. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +213 -213
  171. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
  172. package/lib/esm/pages/BackofficeEntityListDataPage.js +101 -83
  173. package/lib/esm/pages/BackofficeEntityListDataPage.js.map +1 -1
  174. package/lib/esm/pages/BackofficeEntityListPage.helpers.js +10 -4
  175. package/lib/esm/pages/BackofficeEntityListPage.helpers.js.map +1 -1
  176. package/lib/esm/pages/BackofficeEntityListPage.js +55 -54
  177. package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
  178. package/lib/esm/pages/BackofficeEntityListRouteContext.js.map +1 -1
  179. package/lib/esm/pages/BackofficeHubPage.js +1 -1
  180. package/lib/esm/pages/BackofficeHubPage.js.map +1 -1
  181. package/lib/esm/pages/BackofficeLayoutPage.js +64 -56
  182. package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
  183. package/lib/esm/pages/backofficeDashboardPage.css.js +1 -1
  184. package/lib/esm/pages/backofficeDashboardPage.css.js.map +1 -1
  185. package/lib/esm/pages/backofficeEntityDetailPage.css.js +1 -1
  186. package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +1 -1
  187. package/lib/esm/pages/backofficeEntityListPage.css.js +1 -1
  188. package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -1
  189. package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +1 -1
  190. package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js +11 -11
  191. package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js.map +1 -1
  192. package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
  193. package/lib/esm/provider/BackofficeProvider.js +41 -39
  194. package/lib/esm/provider/BackofficeProvider.js.map +1 -1
  195. package/lib/esm/router/createBackofficeRoutes.js +23 -23
  196. package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
  197. package/lib/esm/storybook/backofficeDashboardPageStory.css.js +6 -0
  198. package/lib/esm/storybook/backofficeDashboardPageStory.css.js.map +1 -0
  199. package/lib/esm/storybook/relay/RelayStory.css.js +1 -1
  200. package/lib/esm/storybook/relay/RelayStory.css.js.map +1 -1
  201. package/lib/esm/style.css +1 -1
  202. package/lib/types/auth/AuthRefreshNotice.d.ts +5 -1
  203. package/lib/types/auth/AuthRefreshNotice.d.ts.map +1 -1
  204. package/lib/types/auth/TotpQrCode.d.ts +2 -1
  205. package/lib/types/auth/TotpQrCode.d.ts.map +1 -1
  206. package/lib/types/auth/authRefreshNotice.css.d.ts.map +1 -1
  207. package/lib/types/auth/login/AuthPanel.d.ts.map +1 -1
  208. package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
  209. package/lib/types/auth/login/LoginFlow.d.ts.map +1 -1
  210. package/lib/types/auth/login/MethodChooser.d.ts.map +1 -1
  211. package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
  212. package/lib/types/auth/login/OidcButtons.d.ts.map +1 -1
  213. package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
  214. package/lib/types/auth/login/PasswordLoginPanel.d.ts +1 -1
  215. package/lib/types/auth/login/PasswordLoginPanel.d.ts.map +1 -1
  216. package/lib/types/auth/login/loginPage.css.d.ts.map +1 -1
  217. package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
  218. package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -1
  219. package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -1
  220. package/lib/types/auth/pages/VerifyEmailScreen.d.ts.map +1 -1
  221. package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts +3 -3
  222. package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
  223. package/lib/types/components/backoffice/actions/toastViewAction.d.ts +1 -1
  224. package/lib/types/components/backoffice/actions/toastViewAction.d.ts.map +1 -1
  225. package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts +2 -1
  226. package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts.map +1 -1
  227. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +2 -2
  228. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
  229. package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts.map +1 -1
  230. package/lib/types/components/backoffice/detail/BackofficeEntitySummaryHeader.d.ts.map +1 -1
  231. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts +1 -1
  232. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts.map +1 -1
  233. package/lib/types/components/backoffice/detail/BackofficeTokenUsageBreakdown.d.ts.map +1 -1
  234. package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts +1 -1
  235. package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts.map +1 -1
  236. package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts +1 -1
  237. package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts.map +1 -1
  238. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
  239. package/lib/types/components/backoffice/filters/backofficeFilterAction.css.d.ts.map +1 -1
  240. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -1
  241. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +0 -1
  242. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
  243. package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -1
  244. package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts.map +1 -1
  245. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +2 -2
  246. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  247. package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts +1 -1
  248. package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -1
  249. package/lib/types/components/backoffice/list/RowFlagsCell.css.d.ts.map +1 -1
  250. package/lib/types/components/backoffice/overview/backofficeOverviewLayout.css.d.ts.map +1 -1
  251. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +3 -3
  252. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  253. package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
  254. package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
  255. package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.d.ts.map +1 -1
  256. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +2 -2
  257. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  258. package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts +1 -1
  259. package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts.map +1 -1
  260. package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -1
  261. package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.d.ts.map +1 -1
  262. package/lib/types/components/backoffice/tools/BackofficeToolsJsonForm.d.ts.map +1 -1
  263. package/lib/types/components/backoffice/tools/backofficeToolsDocPanel.css.d.ts.map +1 -1
  264. package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts +1 -2
  265. package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
  266. package/lib/types/i18n/resources.d.ts +44 -2
  267. package/lib/types/i18n/resources.d.ts.map +1 -1
  268. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  269. package/lib/types/pages/BackofficeDashboardWidgetContent.d.ts.map +1 -1
  270. package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts.map +1 -1
  271. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  272. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +1 -1
  273. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  274. package/lib/types/pages/BackofficeEntityListDataPage.d.ts.map +1 -1
  275. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  276. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +9 -9
  277. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
  278. package/lib/types/pages/BackofficeEntityListRouteContext.d.ts +2 -2
  279. package/lib/types/pages/BackofficeEntityListRouteContext.d.ts.map +1 -1
  280. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  281. package/lib/types/pages/backofficeEntityListPage.css.d.ts.map +1 -1
  282. package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts +1 -1
  283. package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts.map +1 -1
  284. package/lib/types/pages/detail/buildTabsItems.d.ts +1 -1
  285. package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -1
  286. package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
  287. package/lib/types/provider/types.d.ts +2 -0
  288. package/lib/types/provider/types.d.ts.map +1 -1
  289. package/lib/types/router/createBackofficeRoutes.d.ts +0 -1
  290. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  291. package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts +2 -0
  292. package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts.map +1 -0
  293. package/package.json +17 -17
  294. package/lib/esm/components/backoffice/technical/TechnicalIdentifierValue.js +0 -2
  295. package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts +0 -2
  296. package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts.map +0 -1
@@ -5,30 +5,21 @@ import { EntityIdFilterField as r } from "../filters/EntityIdFilterField.js";
5
5
  import { EntityIdPickerDialog as i } from "../pickers/EntityIdPickerDialog.js";
6
6
  import { resolveToastSpec as a, resolveToastViewActions as o } from "./toastViewAction.js";
7
7
  import { actions as s, checkboxGroup as c, form as l } from "./backofficeEntityActionFormDialog.css.js";
8
- import { useCallback as u, useContext as d, useEffect as f, useId as ee, useMemo as p, useState as m } from "react";
9
- import { Fragment as te, jsx as h, jsxs as g } from "react/jsx-runtime";
10
- import { useTranslation as ne } from "react-i18next";
11
- import { Button as _ } from "@plumile/ui/atomic/atoms/button/Button.js";
12
- import { FormError as re } from "@plumile/ui/atomic/molecules/form_error/FormError.js";
13
- import { Form as ie } from "@plumile/ui/atomic/molecules/form/Form.js";
14
- import * as v from "react-relay";
15
- import { Input as y } from "@plumile/ui/atomic/atoms/input/Input.js";
16
- import { Modal as ae } from "@plumile/ui/atomic/atoms/modal/Modal.js";
17
- import { Textarea as b } from "@plumile/ui/atomic/atoms/textarea/Textarea.js";
18
- import { CheckboxField as x } from "@plumile/ui/atomic/molecules/checkbox_field/CheckboxField.js";
19
- import { FormGrid as oe } from "@plumile/ui/atomic/molecules/form_grid/FormGrid.js";
20
- import { FormFieldLayout as S } from "@plumile/ui/atomic/molecules/form_field_layout/FormFieldLayout.js";
21
- import { HighlightCode as se } from "@plumile/ui/atomic/molecules/highlight/HighlightCode.js";
22
- import { useToast as ce } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
23
- import { BackofficeFormSection as le } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
24
- import { SimpleSelect as ue } from "@plumile/ui/components/select/SimpleSelect.js";
25
- import de from "@plumile/router/routing/RoutingContext.js";
8
+ import { useCallback as u, useContext as d, useEffect as f, useId as ee, useMemo as te, useState as p } from "react";
9
+ import { CheckboxField as ne, Form as re, FormError as ie, FormFieldLayout as m, FormGrid as ae, HighlightCode as oe, Input as h, Modal as se, Textarea as g, useToast as ce } from "@plumile/ui";
10
+ import { Fragment as le, jsx as _, jsxs as v } from "react/jsx-runtime";
11
+ import { useTranslation as ue } from "react-i18next";
12
+ import { Button as y } from "@plumile/ui/button";
13
+ import * as b from "react-relay";
14
+ import { BackofficeFormSection as de } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
15
+ import { Select as fe } from "@plumile/ui/select";
16
+ import pe from "@plumile/router/routing/RoutingContext.js";
26
17
  //#region src/components/backoffice/actions/BackofficeEntityActionFormDialog.tsx
27
- var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w = (e) => typeof e == "object" && !!e && !Array.isArray(e), me = (e) => {
28
- if (!w(e)) return null;
29
- for (let t of Object.values(e)) if (w(t) && ("status" in t || "result" in t)) return t;
18
+ var { commitMutation: me, useRelayEnvironment: he } = b, x = (e, t) => e(t), S = (e) => typeof e == "object" && !!e && !Array.isArray(e), ge = (e) => {
19
+ if (!S(e)) return null;
20
+ for (let t of Object.values(e)) if (S(t) && ("status" in t || "result" in t)) return t;
30
21
  return null;
31
- }, T = (e) => {
22
+ }, C = (e) => {
32
23
  let t = {};
33
24
  return e.forEach((e) => {
34
25
  if (e.kind === "boolean") {
@@ -45,45 +36,45 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
45
36
  }
46
37
  t[e.id] = "";
47
38
  }), t;
48
- }, E = (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 ?? "", he = (e, t) => {
49
- let n = T(e.fields);
39
+ }, w = (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 ?? "", _e = (e, t) => {
40
+ let n = C(e.fields);
50
41
  if (e.getInitialValues == null) return n;
51
42
  let r = e.getInitialValues(t);
52
- if (!w(r)) return n;
43
+ if (!S(r)) return n;
53
44
  let i = { ...n };
54
45
  return e.fields.forEach((e) => {
55
- e.id in r && (i[e.id] = E(e, r[e.id]));
46
+ e.id in r && (i[e.id] = w(e, r[e.id]));
56
47
  }), i;
57
- }, D = ({ isOpen: v, action: T, node: E, onClose: D, onSuccess: O }) => {
58
- let { t: k } = ne(), { t: A } = e(), { entities: j } = n(), M = d(de), N = pe(), P = ce(), ge = ee(), [F, I] = m({}), [_e, L] = m(null), [ve, R] = m({}), [z, B] = m(!1), [V, H] = m(null), [U, W] = m(null), [G, K] = m(null);
48
+ }, T = ({ open: b, action: C, node: w, onOpenChange: T, onSuccess: E }) => {
49
+ let { t: D } = ue(), { t: O } = e(), { entities: k } = n(), A = d(pe), j = he(), M = ce(), ve = ee(), [N, P] = p({}), [ye, F] = p(null), [be, I] = p({}), [L, R] = p(!1), [z, B] = p(null), [V, H] = p(null), [U, W] = p(null);
59
50
  f(() => {
60
- v && (I(he(T, E)), L(null), R({}), H(null), W(null));
51
+ b && (P(_e(C, w)), F(null), I({}), B(null), H(null));
61
52
  }, [
62
- T,
63
- v,
64
- E
53
+ C,
54
+ w,
55
+ b
65
56
  ]);
66
- let q = u(() => {
67
- z || D();
68
- }, [z, D]), J = u((e, t) => {
69
- I((n) => ({
57
+ let G = u(() => {
58
+ L || T(!1);
59
+ }, [L, T]), K = u((e, t) => {
60
+ P((n) => ({
70
61
  ...n,
71
62
  [e]: t
72
- })), R((t) => {
63
+ })), I((t) => {
73
64
  if (t[e] == null) return t;
74
65
  let { [e]: n, ...r } = t;
75
66
  return r;
76
67
  });
77
- }, []), ye = C(T.label, k), Y = u((e) => A("actions.form.errors.required", { label: e }), [A]), X = u((e) => A("actions.form.errors.invalidNumber", { label: e }), [A]), be = u((e) => A("actions.form.errors.invalidJson", { label: e }), [A]), xe = u((e) => A("actions.form.errors.invalidJsonObject", { label: e }), [A]), Se = u((e) => A("actions.form.errors.invalidJsonArray", { label: e }), [A]), Ce = u(() => {
68
+ }, []), xe = x(C.label, D), q = u((e) => O("actions.form.errors.required", { label: e }), [O]), J = u((e) => O("actions.form.errors.invalidNumber", { label: e }), [O]), Y = u((e) => O("actions.form.errors.invalidJson", { label: e }), [O]), X = u((e) => O("actions.form.errors.invalidJsonObject", { label: e }), [O]), Se = u((e) => O("actions.form.errors.invalidJsonArray", { label: e }), [O]), Ce = u(() => {
78
69
  let e = {};
79
- for (let t of T.fields) {
80
- let n = C(t.label, k), r = F[t.id];
70
+ for (let t of C.fields) {
71
+ let n = x(t.label, D), r = N[t.id];
81
72
  switch (t.kind) {
82
73
  case "text": {
83
74
  let i = "";
84
75
  if (typeof r == "string" && (i = r.trim()), i === "") {
85
76
  if (t.required) return {
86
- error: Y(n),
77
+ error: q(n),
87
78
  fieldId: t.id
88
79
  };
89
80
  break;
@@ -95,7 +86,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
95
86
  let i = "";
96
87
  if (typeof r == "string" && (i = r.trim()), i === "") {
97
88
  if (t.required) return {
98
- error: Y(n),
89
+ error: q(n),
99
90
  fieldId: t.id
100
91
  };
101
92
  break;
@@ -107,14 +98,14 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
107
98
  let i = "";
108
99
  if (typeof r == "string" ? i = r.trim() : typeof r == "number" && Number.isFinite(r) && (i = String(r)), i === "") {
109
100
  if (t.required) return {
110
- error: Y(n),
101
+ error: q(n),
111
102
  fieldId: t.id
112
103
  };
113
104
  break;
114
105
  }
115
106
  let a = Number(i);
116
107
  if (!Number.isFinite(a)) return {
117
- error: X(n),
108
+ error: J(n),
118
109
  fieldId: t.id
119
110
  };
120
111
  e[t.id] = a;
@@ -124,7 +115,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
124
115
  let i = "";
125
116
  if (typeof r == "string" && (i = r.trim()), i === "") {
126
117
  if (t.required) return {
127
- error: Y(n),
118
+ error: q(n),
128
119
  fieldId: t.id
129
120
  };
130
121
  break;
@@ -134,13 +125,13 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
134
125
  a = JSON.parse(i);
135
126
  } catch {
136
127
  return {
137
- error: be(n),
128
+ error: Y(n),
138
129
  fieldId: t.id
139
130
  };
140
131
  }
141
132
  let o = t.jsonType ?? "object";
142
- if (o === "object" && !w(a)) return {
143
- error: xe(n),
133
+ if (o === "object" && !S(a)) return {
134
+ error: X(n),
144
135
  fieldId: t.id
145
136
  };
146
137
  if (o === "array" && !Array.isArray(a)) return {
@@ -154,7 +145,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
154
145
  let i = "";
155
146
  if (typeof r == "string" && (i = r.trim()), i === "") {
156
147
  if (t.required) return {
157
- error: Y(n),
148
+ error: q(n),
158
149
  fieldId: t.id
159
150
  };
160
151
  break;
@@ -169,7 +160,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
169
160
  let i = "";
170
161
  if (typeof r == "string" && (i = r.trim()), i === "") {
171
162
  if (t.required) return {
172
- error: Y(n),
163
+ error: q(n),
173
164
  fieldId: t.id
174
165
  };
175
166
  break;
@@ -181,7 +172,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
181
172
  let i = [];
182
173
  if (Array.isArray(r) && (i = r.filter((e) => typeof e == "string" && e.trim() !== "")), i.length === 0) {
183
174
  if (t.required) return {
184
- error: Y(n),
175
+ error: q(n),
185
176
  fieldId: t.id
186
177
  };
187
178
  break;
@@ -193,165 +184,168 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
193
184
  }
194
185
  return { values: e };
195
186
  }, [
196
- T.fields,
187
+ C.fields,
197
188
  Se,
198
- be,
199
- xe,
200
- X,
201
189
  Y,
202
- k,
203
- F
190
+ X,
191
+ J,
192
+ q,
193
+ D,
194
+ N
204
195
  ]), Z = u(() => {
205
- if (z) return;
206
- L(null), R({});
196
+ if (L) return;
197
+ F(null), I({});
207
198
  let e = Ce();
208
199
  if ("error" in e) {
209
- L(e.error), e.fieldId != null && R({ [e.fieldId]: e.error });
200
+ F(e.error), e.fieldId != null && I({ [e.fieldId]: e.error });
210
201
  return;
211
202
  }
212
203
  let n;
213
204
  try {
214
- n = T.getVariables(E, e.values);
205
+ n = C.getVariables(w, e.values);
215
206
  } catch {
216
- let e = A("actions.form.errors.invalidPayload");
217
- L(e);
207
+ let e = O("actions.form.errors.invalidPayload");
208
+ F(e);
218
209
  return;
219
210
  }
220
- B(!0), fe(N, {
221
- mutation: T.mutation,
211
+ R(!0), me(j, {
212
+ mutation: C.mutation,
222
213
  variables: n,
223
214
  updater: (e) => {
224
- T.updater?.(e, E);
215
+ C.updater?.(e, w);
225
216
  },
226
217
  onCompleted: (e) => {
227
- B(!1);
228
- let n = me(e);
218
+ R(!1);
219
+ let n = ge(e);
229
220
  if (n != null) {
230
- let e = A("actions.form.errors.invalidPayload");
231
- T.toasts?.error?.message == null ? T.toasts?.error?.title != null && (e = C(T.toasts.error.title, k)) : e = C(T.toasts.error.message, k);
221
+ let e = O("actions.form.errors.invalidPayload");
222
+ C.toasts?.error?.message == null ? C.toasts?.error?.title != null && (e = x(C.toasts.error.title, D)) : e = x(C.toasts.error.message, D);
232
223
  let r = t(n, {
233
224
  defaultErrorMessage: e,
234
225
  mapReason: (e) => {
235
- let t = T.mapErrorReason?.(e, E);
236
- return t == null ? null : typeof t == "function" ? C(t, k) : String(t);
226
+ let t = C.mapErrorReason?.(e, w);
227
+ return t == null ? null : typeof t == "function" ? x(t, D) : String(t);
237
228
  }
238
229
  });
239
230
  if (!r.ok) {
240
231
  let e = Error(r.message);
241
- if (L(r.message), T.onError?.(e, E), T.toasts?.error != null) {
242
- let e = C(T.toasts.error.title, k), t;
243
- T.toasts.error.message != null && (t = C(T.toasts.error.message, k)), P.error(e, t);
232
+ if (F(r.message), C.onError?.(e, w), C.toasts?.error != null) {
233
+ let e = x(C.toasts.error.title, D), t;
234
+ C.toasts.error.message != null && (t = x(C.toasts.error.message, D)), M.error(e, t);
244
235
  }
245
236
  return;
246
237
  }
247
238
  }
248
- T.onCompleted?.(e, E);
239
+ C.onCompleted?.(e, w);
249
240
  let r = !1;
250
- if (T.result?.render != null && T.result.render(e, E) != null && (r = !0, W(e)), T.toasts?.success != null) {
251
- let t = a(T.toasts.success, k), n = o({
252
- toast: T.toasts.success,
241
+ if (C.result?.render != null && C.result.render(e, w) != null && (r = !0, H(e)), C.toasts?.success != null) {
242
+ let t = a(C.toasts.success, D), n = o({
243
+ toast: C.toasts.success,
253
244
  response: e,
254
- node: E,
255
- tApp: k,
256
- entities: j,
257
- defaultLabel: A("actions.view"),
245
+ node: w,
246
+ tApp: D,
247
+ entities: k,
248
+ defaultLabel: O("actions.view"),
258
249
  navigateTo: (e) => {
259
- M?.history.push({ pathname: e });
250
+ A?.history.push({ pathname: e });
260
251
  }
261
252
  });
262
- P.push({
253
+ M.push({
263
254
  kind: "info",
264
255
  title: t.title,
265
256
  message: t.message,
266
257
  actions: n
267
258
  });
268
259
  }
269
- if (T.result != null) {
270
- let t = T.result.getValue(e, E);
260
+ if (C.result != null) {
261
+ let t = C.result.getValue(e, w);
271
262
  if (typeof t == "string" && t.trim() !== "") {
272
- H(t), O?.();
263
+ B(t), E?.();
273
264
  return;
274
265
  }
275
266
  }
276
267
  if (r) {
277
- O?.();
268
+ E?.();
278
269
  return;
279
270
  }
280
- O?.(), D();
271
+ E?.(), T(!1);
281
272
  },
282
273
  onError: (e) => {
283
- B(!1);
284
- let t = A("actions.form.errors.submitFailed");
285
- if (L(t), T.onError?.(e, E), T.toasts?.error != null) {
286
- let e = C(T.toasts.error.title, k), t;
287
- T.toasts.error.message != null && (t = C(T.toasts.error.message, k)), P.error(e, t);
274
+ R(!1);
275
+ let t = O("actions.form.errors.submitFailed");
276
+ if (F(t), C.onError?.(e, w), C.toasts?.error != null) {
277
+ let e = x(C.toasts.error.title, D), t;
278
+ C.toasts.error.message != null && (t = x(C.toasts.error.message, D)), M.error(e, t);
288
279
  }
289
280
  }
290
281
  });
291
282
  }, [
292
- T,
283
+ C,
293
284
  Ce,
285
+ k,
294
286
  j,
295
- N,
296
- z,
287
+ L,
288
+ w,
289
+ T,
297
290
  E,
298
- D,
291
+ A?.history,
299
292
  O,
300
- M?.history,
301
- A,
302
- k,
303
- P
293
+ D,
294
+ M
304
295
  ]), we = u((e) => {
305
296
  e.preventDefault(), Z();
306
- }, [Z]), Q = p(() => T.result == null ? null : C(T.result.label, k), [T.result, k]), Te = p(() => T.result?.render == null || U == null ? null : T.result.render(U, E), [
307
- T.result,
308
- E,
309
- U
310
- ]), $ = V != null && Q != null || Te != null, Ee = C(T.label, k);
311
- return v ? /* @__PURE__ */ g(te, { children: [/* @__PURE__ */ h(ae, {
312
- isOpen: v,
313
- onClose: q,
314
- title: ye,
297
+ }, [Z]), Q = te(() => C.result == null ? null : x(C.result.label, D), [C.result, D]), Te = te(() => C.result?.render == null || V == null ? null : C.result.render(V, w), [
298
+ C.result,
299
+ w,
300
+ V
301
+ ]), $ = z != null && Q != null || Te != null, Ee = x(C.label, D);
302
+ return b ? /* @__PURE__ */ v(le, { children: [/* @__PURE__ */ _(se, {
303
+ open: b,
304
+ onOpenChange: (e) => {
305
+ e || G();
306
+ },
307
+ title: xe,
315
308
  initialFocus: "first-form-control",
316
- footer: /* @__PURE__ */ g("div", {
309
+ footer: /* @__PURE__ */ v("div", {
317
310
  className: s,
318
- children: [/* @__PURE__ */ h(_, {
311
+ children: [/* @__PURE__ */ _(y, {
319
312
  type: "button",
320
- variant: "secondary",
313
+ variant: "soft",
321
314
  size: "small",
322
- disabled: z,
323
- onClick: q,
324
- children: A("actions.form.cancel")
325
- }), !$ && /* @__PURE__ */ h(_, {
315
+ disabled: L,
316
+ onClick: G,
317
+ tone: "neutral",
318
+ children: O("actions.form.cancel")
319
+ }), !$ && /* @__PURE__ */ _(y, {
326
320
  type: "submit",
327
- variant: "primary",
321
+ variant: "solid",
328
322
  size: "small",
329
- disabled: z,
330
- isLoading: z,
331
- loadingLabel: A("actions.form.submitting"),
323
+ disabled: L,
324
+ loading: L,
325
+ loadingText: O("actions.form.submitting"),
332
326
  onClick: Z,
333
327
  children: Ee
334
328
  })]
335
329
  }),
336
- children: /* @__PURE__ */ g(ie, {
330
+ children: /* @__PURE__ */ v(re, {
337
331
  onSubmit: we,
338
332
  className: l,
339
333
  children: [
340
- /* @__PURE__ */ h(re, { message: _e }),
341
- /* @__PURE__ */ h(le, { children: /* @__PURE__ */ h(oe, {
334
+ /* @__PURE__ */ _(ie, { message: ye }),
335
+ /* @__PURE__ */ _(de, { children: /* @__PURE__ */ _(ae, {
342
336
  layout: "vertical",
343
- children: T.fields.map((e) => {
344
- let t = C(e.label, k), n = null;
345
- e.description != null && (n = C(e.description, k));
346
- let i = `${ge}-${e.id}`, a = `${i}-description`, o = `${i}-error`, s = ve[e.id] ?? null, l = s != null, u, d = "default";
347
- l && (u = "error", d = "error");
348
- let f;
349
- switch (n != null && s != null ? f = `${a} ${o}` : n == null ? s != null && (f = o) : f = a, e.kind) {
337
+ children: C.fields.map((e) => {
338
+ let t = x(e.label, D), n = null;
339
+ e.description != null && (n = x(e.description, D));
340
+ let i = `${ve}-${e.id}`, a = `${i}-description`, o = `${i}-error`, s = be[e.id] ?? null, l = s != null, u;
341
+ l && (u = "error");
342
+ let d;
343
+ switch (n != null && s != null ? d = `${a} ${o}` : n == null ? s != null && (d = o) : d = a, e.kind) {
350
344
  case "text": {
351
- let r = F[e.id], c = "";
345
+ let r = N[e.id], c = "";
352
346
  typeof r == "string" && (c = r);
353
- let d;
354
- return e.placeholder != null && (d = C(e.placeholder, k)), /* @__PURE__ */ h(S, {
347
+ let f;
348
+ return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
355
349
  label: t,
356
350
  labelFor: i,
357
351
  required: e.required,
@@ -359,27 +353,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
359
353
  descriptionId: a,
360
354
  error: s,
361
355
  errorId: o,
362
- children: /* @__PURE__ */ h(y, {
356
+ children: /* @__PURE__ */ _(h, {
363
357
  id: i,
364
358
  type: "text",
365
359
  value: c,
366
- placeholder: d,
367
- "aria-describedby": f,
360
+ placeholder: f,
361
+ "aria-describedby": d,
368
362
  "aria-invalid": l,
369
- disabled: z,
363
+ disabled: L,
370
364
  variant: u,
371
365
  onChange: (t) => {
372
- J(e.id, t.target.value);
366
+ K(e.id, t.target.value);
373
367
  },
374
368
  fullWidth: !0
375
369
  })
376
370
  }, e.id);
377
371
  }
378
372
  case "textarea": {
379
- let r = F[e.id], c = "";
373
+ let r = N[e.id], c = "";
380
374
  typeof r == "string" && (c = r);
381
- let d;
382
- return e.placeholder != null && (d = C(e.placeholder, k)), /* @__PURE__ */ h(S, {
375
+ let f;
376
+ return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
383
377
  label: t,
384
378
  labelFor: i,
385
379
  required: e.required,
@@ -387,27 +381,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
387
381
  descriptionId: a,
388
382
  error: s,
389
383
  errorId: o,
390
- children: /* @__PURE__ */ h(b, {
384
+ children: /* @__PURE__ */ _(g, {
391
385
  id: i,
392
386
  value: c,
393
- placeholder: d,
387
+ placeholder: f,
394
388
  rows: e.rows ?? 8,
395
- "aria-describedby": f,
389
+ "aria-describedby": d,
396
390
  "aria-invalid": l,
397
- disabled: z,
391
+ disabled: L,
398
392
  variant: u,
399
393
  onChange: (t) => {
400
- J(e.id, t.target.value);
394
+ K(e.id, t.target.value);
401
395
  },
402
396
  fullWidth: !0
403
397
  })
404
398
  }, e.id);
405
399
  }
406
400
  case "number": {
407
- let r = F[e.id], c = "";
401
+ let r = N[e.id], c = "";
408
402
  typeof r == "string" && (c = r);
409
- let d;
410
- return e.placeholder != null && (d = C(e.placeholder, k)), /* @__PURE__ */ h(S, {
403
+ let f;
404
+ return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
411
405
  label: t,
412
406
  labelFor: i,
413
407
  required: e.required,
@@ -415,27 +409,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
415
409
  descriptionId: a,
416
410
  error: s,
417
411
  errorId: o,
418
- children: /* @__PURE__ */ h(y, {
412
+ children: /* @__PURE__ */ _(h, {
419
413
  id: i,
420
414
  type: "number",
421
415
  value: c,
422
- placeholder: d,
423
- "aria-describedby": f,
416
+ placeholder: f,
417
+ "aria-describedby": d,
424
418
  "aria-invalid": l,
425
- disabled: z,
419
+ disabled: L,
426
420
  variant: u,
427
421
  onChange: (t) => {
428
- J(e.id, t.target.value);
422
+ K(e.id, t.target.value);
429
423
  },
430
424
  fullWidth: !0
431
425
  })
432
426
  }, e.id);
433
427
  }
434
428
  case "json": {
435
- let r = F[e.id], c = "";
429
+ let r = N[e.id], c = "";
436
430
  typeof r == "string" && (c = r);
437
- let d;
438
- return e.placeholder != null && (d = C(e.placeholder, k)), /* @__PURE__ */ h(S, {
431
+ let f;
432
+ return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
439
433
  label: t,
440
434
  labelFor: i,
441
435
  required: e.required,
@@ -443,31 +437,30 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
443
437
  descriptionId: a,
444
438
  error: s,
445
439
  errorId: o,
446
- children: /* @__PURE__ */ h(b, {
440
+ children: /* @__PURE__ */ _(g, {
447
441
  id: i,
448
442
  value: c,
449
- placeholder: d,
443
+ placeholder: f,
450
444
  rows: 8,
451
- "aria-describedby": f,
445
+ "aria-describedby": d,
452
446
  "aria-invalid": l,
453
- disabled: z,
447
+ disabled: L,
454
448
  variant: u,
455
449
  onChange: (t) => {
456
- J(e.id, t.target.value);
450
+ K(e.id, t.target.value);
457
451
  },
458
452
  fullWidth: !0
459
453
  })
460
454
  }, e.id);
461
455
  }
462
456
  case "enum": {
463
- let r = F[e.id], c = "";
457
+ let r = N[e.id], c = "";
464
458
  typeof r == "string" && (c = r);
465
459
  let u = e.options.map((e) => ({
466
- id: e.value,
467
460
  value: e.value,
468
- label: C(e.label, k)
461
+ label: x(e.label, D)
469
462
  }));
470
- return /* @__PURE__ */ h(S, {
463
+ return /* @__PURE__ */ _(m, {
471
464
  label: t,
472
465
  labelId: `${i}-label`,
473
466
  required: e.required,
@@ -475,38 +468,37 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
475
468
  descriptionId: a,
476
469
  error: s,
477
470
  errorId: o,
478
- children: /* @__PURE__ */ h(ue, {
471
+ children: /* @__PURE__ */ _(fe, {
479
472
  options: u,
480
473
  value: c,
481
474
  placeholder: t,
482
- ariaDescribedBy: f,
483
- ariaInvalid: l,
484
- ariaLabelledBy: `${i}-label`,
485
- isDisabled: z,
486
- state: d,
487
- onChange: (t) => {
488
- J(e.id, t);
475
+ "aria-describedby": d,
476
+ "aria-invalid": l,
477
+ "aria-labelledby": `${i}-label`,
478
+ disabled: L,
479
+ onValueChange: (t) => {
480
+ K(e.id, t);
489
481
  }
490
482
  })
491
483
  }, e.id);
492
484
  }
493
485
  case "boolean": {
494
- let r = F[e.id] === !0;
495
- return /* @__PURE__ */ h(S, { children: /* @__PURE__ */ h(x, {
486
+ let r = N[e.id] === !0;
487
+ return /* @__PURE__ */ _(m, { children: /* @__PURE__ */ _(ne, {
496
488
  id: i,
497
489
  label: t,
498
490
  helperText: n ?? void 0,
499
491
  error: s ?? void 0,
500
492
  checked: r,
501
- disabled: z,
493
+ disabled: L,
502
494
  onChange: (t) => {
503
- J(e.id, t.target.checked);
495
+ K(e.id, t.target.checked);
504
496
  }
505
497
  }) }, e.id);
506
498
  }
507
499
  case "entityId": {
508
- let c = F[e.id], u = "";
509
- return typeof c == "string" && (u = c), /* @__PURE__ */ h(S, {
500
+ let c = N[e.id], u = "";
501
+ return typeof c == "string" && (u = c), /* @__PURE__ */ _(m, {
510
502
  label: t,
511
503
  labelFor: i,
512
504
  required: e.required,
@@ -514,29 +506,29 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
514
506
  descriptionId: a,
515
507
  error: s,
516
508
  errorId: o,
517
- children: /* @__PURE__ */ h(r, {
509
+ children: /* @__PURE__ */ _(r, {
518
510
  id: i,
519
511
  label: t,
520
512
  value: u,
521
- ariaDescribedBy: f,
513
+ ariaDescribedBy: d,
522
514
  ariaInvalid: l,
523
- disabled: z,
515
+ disabled: L,
524
516
  onPick: () => {
525
- K({
517
+ W({
526
518
  fieldId: e.id,
527
519
  entity: e.entity,
528
520
  label: t
529
521
  });
530
522
  },
531
523
  onClear: () => {
532
- J(e.id, "");
524
+ K(e.id, "");
533
525
  }
534
526
  })
535
527
  }, e.id);
536
528
  }
537
529
  case "multiEnum": {
538
- let r = F[e.id], u = `${i}-legend`, d = [];
539
- return Array.isArray(r) && (d = r.filter((e) => typeof e == "string")), /* @__PURE__ */ h(S, {
530
+ let r = N[e.id], u = `${i}-legend`, f = [];
531
+ return Array.isArray(r) && (f = r.filter((e) => typeof e == "string")), /* @__PURE__ */ _(m, {
540
532
  as: "fieldset",
541
533
  label: t,
542
534
  labelId: u,
@@ -545,22 +537,22 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
545
537
  descriptionId: a,
546
538
  error: s,
547
539
  errorId: o,
548
- children: /* @__PURE__ */ h("div", {
540
+ children: /* @__PURE__ */ _("div", {
549
541
  className: c,
550
542
  role: "group",
551
543
  "aria-labelledby": u,
552
- "aria-describedby": f,
544
+ "aria-describedby": d,
553
545
  "aria-invalid": l,
554
546
  children: e.options.map((t, n) => {
555
- let r = C(t.label, k), a = d.includes(t.value);
556
- return /* @__PURE__ */ h(x, {
547
+ let r = x(t.label, D), a = f.includes(t.value);
548
+ return /* @__PURE__ */ _(ne, {
557
549
  id: `${i}-${n}`,
558
550
  label: r,
559
551
  checked: a,
560
- disabled: z,
552
+ disabled: L,
561
553
  onChange: (n) => {
562
- let r = d;
563
- n.target.checked ? d.includes(t.value) || (r = [...d, t.value]) : r = d.filter((e) => e !== t.value), J(e.id, r);
554
+ let r = f;
555
+ n.target.checked ? f.includes(t.value) || (r = [...f, t.value]) : r = f.filter((e) => e !== t.value), K(e.id, r);
564
556
  }
565
557
  }, `${t.value}-${n}`);
566
558
  })
@@ -571,29 +563,29 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
571
563
  }
572
564
  })
573
565
  }) }),
574
- $ && /* @__PURE__ */ g("div", {
575
- className: "txvbqb5b1 txvbqb6bf txvbqb6gz",
576
- children: [V != null && Q != null && /* @__PURE__ */ h(se, {
566
+ $ && /* @__PURE__ */ v("div", {
567
+ className: "txvbqb5lr txvbqb6m5 txvbqb6rp",
568
+ children: [z != null && Q != null && /* @__PURE__ */ _(oe, {
577
569
  badgeLabel: Q,
578
- copyCode: V,
579
- fallbackCodeText: V
570
+ copyCode: z,
571
+ fallbackCodeText: z
580
572
  }), Te]
581
573
  })
582
574
  ]
583
575
  })
584
- }), /* @__PURE__ */ h(i, {
585
- isOpen: G != null,
586
- entity: G?.entity ?? "",
587
- title: G?.label ?? "",
588
- onClose: () => {
589
- K(null);
576
+ }), /* @__PURE__ */ _(i, {
577
+ open: U != null,
578
+ entity: U?.entity ?? "",
579
+ title: U?.label ?? "",
580
+ onOpenChange: (e) => {
581
+ e || W(null);
590
582
  },
591
583
  onSelectId: (e) => {
592
- G != null && (J(G.fieldId, e), K(null));
584
+ U != null && (K(U.fieldId, e), W(null));
593
585
  }
594
586
  })] }) : null;
595
587
  };
596
588
  //#endregion
597
- export { D as BackofficeEntityActionFormDialog, D as default };
589
+ export { T as BackofficeEntityActionFormDialog, T as default };
598
590
 
599
591
  //# sourceMappingURL=BackofficeEntityActionFormDialog.js.map