@plumile/backoffice-react 0.1.132 → 0.1.140

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 (291) hide show
  1. package/README.md +46 -2
  2. package/lib/esm/auth/AuthRefreshNotice.js +20 -29
  3. package/lib/esm/auth/AuthRefreshNotice.js.map +1 -1
  4. package/lib/esm/auth/authRefreshNotice.css.js +2 -2
  5. package/lib/esm/auth/authRefreshNotice.css.js.map +1 -1
  6. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +164 -164
  7. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
  8. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +35 -32
  9. package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -1
  10. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js +9 -20
  11. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js.map +1 -1
  12. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +19 -19
  13. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +1 -1
  14. package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js +7 -13
  15. package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js.map +1 -1
  16. package/lib/esm/components/backoffice/detail/BackofficeEnumLabel.js +9 -4
  17. package/lib/esm/components/backoffice/detail/BackofficeEnumLabel.js.map +1 -1
  18. package/lib/esm/components/backoffice/detail/BackofficeLifecycleTimelineSection.js +22 -30
  19. package/lib/esm/components/backoffice/detail/BackofficeLifecycleTimelineSection.js.map +1 -1
  20. package/lib/esm/components/backoffice/detail/BackofficeReferenceValue.js +10 -15
  21. package/lib/esm/components/backoffice/detail/BackofficeReferenceValue.js.map +1 -1
  22. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js +20 -20
  23. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js.map +1 -1
  24. package/lib/esm/components/backoffice/detail/BackofficeStatusGroup.js +4 -4
  25. package/lib/esm/components/backoffice/detail/BackofficeStatusGroup.js.map +1 -1
  26. package/lib/esm/components/backoffice/detail/BackofficeStatusMetaBadge.js +9 -20
  27. package/lib/esm/components/backoffice/detail/BackofficeStatusMetaBadge.js.map +1 -1
  28. package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js +28 -18
  29. package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js.map +1 -1
  30. package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js +57 -46
  31. package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js.map +1 -1
  32. package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +0 -1
  33. package/lib/esm/components/backoffice/detail/detailPayloadUtils.js +1 -10
  34. package/lib/esm/components/backoffice/detail/detailPayloadUtils.js.map +1 -1
  35. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +1 -1
  36. package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +1 -1
  37. package/lib/esm/components/backoffice/layout/buildSidebarSections.js +36 -27
  38. package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -1
  39. package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -1
  40. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +1 -0
  41. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +46 -43
  42. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
  43. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +2 -2
  44. package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
  45. package/lib/esm/components/backoffice/routing/BackofficeContentError.js +6 -6
  46. package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -1
  47. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +48 -44
  48. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
  49. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +12 -8
  50. package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -1
  51. package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +13 -11
  52. package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -1
  53. package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +8 -8
  54. package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -1
  55. package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js +16 -16
  56. package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js.map +1 -1
  57. package/lib/esm/i18n/locales/en/backofficeReact.js +0 -9
  58. package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
  59. package/lib/esm/i18n/locales/fr/backofficeReact.js +0 -9
  60. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
  61. package/lib/esm/index.js +72 -89
  62. package/lib/esm/pages/BackofficeDashboardPage.js +95 -95
  63. package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
  64. package/lib/esm/pages/BackofficeEntityDetailPage.js +223 -204
  65. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  66. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +23 -21
  67. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
  68. package/lib/esm/pages/BackofficeEntityListPage.js +34 -34
  69. package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
  70. package/lib/esm/pages/BackofficeHubPage.js +4 -4
  71. package/lib/esm/pages/BackofficeLayoutPage.js +58 -56
  72. package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
  73. package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
  74. package/lib/esm/style.css +1 -1
  75. package/lib/types/auth/AuthRefreshNotice.d.ts.map +1 -1
  76. package/lib/types/auth/authRefreshNotice.css.d.ts +0 -2
  77. package/lib/types/auth/authRefreshNotice.css.d.ts.map +1 -1
  78. package/lib/types/components/backoffice/detail/BackofficeDetailErrorList.d.ts.map +1 -1
  79. package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts +2 -1
  80. package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts.map +1 -1
  81. package/lib/types/components/backoffice/detail/BackofficeDetailPrimitives.stories.d.ts.map +1 -1
  82. package/lib/types/components/backoffice/detail/BackofficeDetailTaggedValue.d.ts +2 -1
  83. package/lib/types/components/backoffice/detail/BackofficeDetailTaggedValue.d.ts.map +1 -1
  84. package/lib/types/components/backoffice/detail/BackofficeEnumLabel.d.ts.map +1 -1
  85. package/lib/types/components/backoffice/detail/BackofficeLifecycleTimelineSection.d.ts.map +1 -1
  86. package/lib/types/components/backoffice/detail/BackofficeReferenceValue.d.ts +2 -1
  87. package/lib/types/components/backoffice/detail/BackofficeReferenceValue.d.ts.map +1 -1
  88. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts +2 -2
  89. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts.map +1 -1
  90. package/lib/types/components/backoffice/detail/BackofficeStatusGroup.d.ts.map +1 -1
  91. package/lib/types/components/backoffice/detail/BackofficeStatusMetaBadge.d.ts +4 -6
  92. package/lib/types/components/backoffice/detail/BackofficeStatusMetaBadge.d.ts.map +1 -1
  93. package/lib/types/components/backoffice/detail/BackofficeTokenUsageBreakdown.d.ts.map +1 -1
  94. package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts +10 -2
  95. package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts.map +1 -1
  96. package/lib/types/components/backoffice/detail/detailPayloadUtils.d.ts +0 -1
  97. package/lib/types/components/backoffice/detail/detailPayloadUtils.d.ts.map +1 -1
  98. package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts.map +1 -1
  99. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +2 -2
  100. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  101. package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts +2 -2
  102. package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -1
  103. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  104. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts +0 -8
  105. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -1
  106. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  107. package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts +2 -2
  108. package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts.map +1 -1
  109. package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.d.ts.map +1 -1
  110. package/lib/types/i18n/resources.d.ts +0 -22
  111. package/lib/types/i18n/resources.d.ts.map +1 -1
  112. package/lib/types/index.d.ts +2 -25
  113. package/lib/types/index.d.ts.map +1 -1
  114. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  115. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  116. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +12 -0
  117. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  118. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  119. package/lib/types/pages/detail/buildTabsItems.d.ts +4 -4
  120. package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -1
  121. package/package.json +11 -11
  122. package/lib/esm/components/backoffice/detail/BackofficeAuditMetadataPanel.js +0 -31
  123. package/lib/esm/components/backoffice/detail/BackofficeAuditMetadataPanel.js.map +0 -1
  124. package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js +0 -15
  125. package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js.map +0 -1
  126. package/lib/esm/components/backoffice/detail/BackofficeDetailActionBar.js +0 -11
  127. package/lib/esm/components/backoffice/detail/BackofficeDetailActionBar.js.map +0 -1
  128. package/lib/esm/components/backoffice/detail/BackofficeDetailBlock.js +0 -7
  129. package/lib/esm/components/backoffice/detail/BackofficeDetailBlock.js.map +0 -1
  130. package/lib/esm/components/backoffice/detail/BackofficeDetailField.js +0 -31
  131. package/lib/esm/components/backoffice/detail/BackofficeDetailField.js.map +0 -1
  132. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js +0 -7
  133. package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js.map +0 -1
  134. package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js +0 -15
  135. package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js.map +0 -1
  136. package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js +0 -20
  137. package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js.map +0 -1
  138. package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js +0 -19
  139. package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js.map +0 -1
  140. package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js +0 -18
  141. package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js.map +0 -1
  142. package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js +0 -36
  143. package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js.map +0 -1
  144. package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js +0 -8
  145. package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js.map +0 -1
  146. package/lib/esm/components/backoffice/detail/BackofficeEmptyValue.js +0 -7
  147. package/lib/esm/components/backoffice/detail/BackofficeEmptyValue.js.map +0 -1
  148. package/lib/esm/components/backoffice/detail/BackofficeEntityRefLink.js +0 -17
  149. package/lib/esm/components/backoffice/detail/BackofficeEntityRefLink.js.map +0 -1
  150. package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js +0 -38
  151. package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js.map +0 -1
  152. package/lib/esm/components/backoffice/detail/BackofficePayloadInspectorSection.js +0 -36
  153. package/lib/esm/components/backoffice/detail/BackofficePayloadInspectorSection.js.map +0 -1
  154. package/lib/esm/components/backoffice/detail/BackofficeScopeStack.js +0 -28
  155. package/lib/esm/components/backoffice/detail/BackofficeScopeStack.js.map +0 -1
  156. package/lib/esm/components/backoffice/detail/BackofficeTechnicalFacts.js +0 -2
  157. package/lib/esm/components/backoffice/detail/backofficeAuditMetadataPanel.css.js +0 -7
  158. package/lib/esm/components/backoffice/detail/backofficeAuditMetadataPanel.css.js.map +0 -1
  159. package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js +0 -15
  160. package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js.map +0 -1
  161. package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js +0 -7
  162. package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js.map +0 -1
  163. package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js +0 -7
  164. package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js.map +0 -1
  165. package/lib/esm/components/backoffice/detail/backofficeKpiStrip.css.js +0 -19
  166. package/lib/esm/components/backoffice/detail/backofficeKpiStrip.css.js.map +0 -1
  167. package/lib/esm/components/backoffice/detail/backofficeLifecycleTimelineSection.css.js +0 -7
  168. package/lib/esm/components/backoffice/detail/backofficeLifecycleTimelineSection.css.js.map +0 -1
  169. package/lib/esm/components/backoffice/detail/backofficePayloadInspectorSection.css.js +0 -7
  170. package/lib/esm/components/backoffice/detail/backofficePayloadInspectorSection.css.js.map +0 -1
  171. package/lib/esm/components/backoffice/detail/backofficeReferenceValue.css.js +0 -7
  172. package/lib/esm/components/backoffice/detail/backofficeReferenceValue.css.js.map +0 -1
  173. package/lib/esm/components/backoffice/detail/backofficeScopeStack.css.js +0 -7
  174. package/lib/esm/components/backoffice/detail/backofficeScopeStack.css.js.map +0 -1
  175. package/lib/esm/components/backoffice/detail/backofficeStatusMetaBadge.css.js +0 -7
  176. package/lib/esm/components/backoffice/detail/backofficeStatusMetaBadge.css.js.map +0 -1
  177. package/lib/esm/components/backoffice/lists/BackofficeListToolbar.js +0 -33
  178. package/lib/esm/components/backoffice/lists/BackofficeListToolbar.js.map +0 -1
  179. package/lib/esm/components/backoffice/lists/backofficeListToolbar.css.js +0 -13
  180. package/lib/esm/components/backoffice/lists/backofficeListToolbar.css.js.map +0 -1
  181. package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js +0 -33
  182. package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js.map +0 -1
  183. package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js +0 -23
  184. package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js.map +0 -1
  185. package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js +0 -28
  186. package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js.map +0 -1
  187. package/lib/esm/components/backoffice/pickers/types.js +0 -0
  188. package/lib/esm/pages/dashboard/DashboardMetricGroup.js +0 -26
  189. package/lib/esm/pages/dashboard/DashboardMetricGroup.js.map +0 -1
  190. package/lib/esm/pages/dashboard/DashboardPanel.js +0 -15
  191. package/lib/esm/pages/dashboard/DashboardPanel.js.map +0 -1
  192. package/lib/esm/pages/dashboard/DashboardQuickActions.js +0 -27
  193. package/lib/esm/pages/dashboard/DashboardQuickActions.js.map +0 -1
  194. package/lib/esm/pages/dashboard/DashboardStatusList.js +0 -28
  195. package/lib/esm/pages/dashboard/DashboardStatusList.js.map +0 -1
  196. package/lib/esm/pages/dashboard/dashboardMetricGroup.css.js +0 -8
  197. package/lib/esm/pages/dashboard/dashboardMetricGroup.css.js.map +0 -1
  198. package/lib/esm/pages/dashboard/dashboardPanel.css.js +0 -7
  199. package/lib/esm/pages/dashboard/dashboardPanel.css.js.map +0 -1
  200. package/lib/esm/pages/dashboard/dashboardQuickActions.css.js +0 -7
  201. package/lib/esm/pages/dashboard/dashboardQuickActions.css.js.map +0 -1
  202. package/lib/esm/pages/dashboard/dashboardStatusList.css.js +0 -7
  203. package/lib/esm/pages/dashboard/dashboardStatusList.css.js.map +0 -1
  204. package/lib/types/components/backoffice/detail/BackofficeAuditMetadataPanel.d.ts +0 -19
  205. package/lib/types/components/backoffice/detail/BackofficeAuditMetadataPanel.d.ts.map +0 -1
  206. package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts +0 -8
  207. package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts.map +0 -1
  208. package/lib/types/components/backoffice/detail/BackofficeDetailActionBar.d.ts +0 -9
  209. package/lib/types/components/backoffice/detail/BackofficeDetailActionBar.d.ts.map +0 -1
  210. package/lib/types/components/backoffice/detail/BackofficeDetailBlock.d.ts +0 -7
  211. package/lib/types/components/backoffice/detail/BackofficeDetailBlock.d.ts.map +0 -1
  212. package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts +0 -13
  213. package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts.map +0 -1
  214. package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.css.d.ts +0 -4
  215. package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.css.d.ts.map +0 -1
  216. package/lib/types/components/backoffice/detail/BackofficeDetailHeader.d.ts +0 -12
  217. package/lib/types/components/backoffice/detail/BackofficeDetailHeader.d.ts.map +0 -1
  218. package/lib/types/components/backoffice/detail/BackofficeDetailLayout.d.ts +0 -8
  219. package/lib/types/components/backoffice/detail/BackofficeDetailLayout.d.ts.map +0 -1
  220. package/lib/types/components/backoffice/detail/BackofficeDetailPage.d.ts +0 -16
  221. package/lib/types/components/backoffice/detail/BackofficeDetailPage.d.ts.map +0 -1
  222. package/lib/types/components/backoffice/detail/BackofficeDetailPage.stories.d.ts +0 -11
  223. package/lib/types/components/backoffice/detail/BackofficeDetailPage.stories.d.ts.map +0 -1
  224. package/lib/types/components/backoffice/detail/BackofficeDetailPayload.d.ts +0 -10
  225. package/lib/types/components/backoffice/detail/BackofficeDetailPayload.d.ts.map +0 -1
  226. package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts +0 -11
  227. package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts.map +0 -1
  228. package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts +0 -6
  229. package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts.map +0 -1
  230. package/lib/types/components/backoffice/detail/BackofficeEmptyValue.d.ts +0 -7
  231. package/lib/types/components/backoffice/detail/BackofficeEmptyValue.d.ts.map +0 -1
  232. package/lib/types/components/backoffice/detail/BackofficeEntityRefLink.d.ts +0 -15
  233. package/lib/types/components/backoffice/detail/BackofficeEntityRefLink.d.ts.map +0 -1
  234. package/lib/types/components/backoffice/detail/BackofficeKpiStrip.d.ts +0 -17
  235. package/lib/types/components/backoffice/detail/BackofficeKpiStrip.d.ts.map +0 -1
  236. package/lib/types/components/backoffice/detail/BackofficePayloadInspectorSection.d.ts +0 -15
  237. package/lib/types/components/backoffice/detail/BackofficePayloadInspectorSection.d.ts.map +0 -1
  238. package/lib/types/components/backoffice/detail/BackofficeScopeStack.d.ts +0 -13
  239. package/lib/types/components/backoffice/detail/BackofficeScopeStack.d.ts.map +0 -1
  240. package/lib/types/components/backoffice/detail/BackofficeTechnicalFacts.d.ts +0 -2
  241. package/lib/types/components/backoffice/detail/BackofficeTechnicalFacts.d.ts.map +0 -1
  242. package/lib/types/components/backoffice/detail/backofficeAuditMetadataPanel.css.d.ts +0 -5
  243. package/lib/types/components/backoffice/detail/backofficeAuditMetadataPanel.css.d.ts.map +0 -1
  244. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts +0 -14
  245. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts.map +0 -1
  246. package/lib/types/components/backoffice/detail/backofficeDetailSection.css.d.ts +0 -6
  247. package/lib/types/components/backoffice/detail/backofficeDetailSection.css.d.ts.map +0 -1
  248. package/lib/types/components/backoffice/detail/backofficeDetailTaggedValue.css.d.ts +0 -3
  249. package/lib/types/components/backoffice/detail/backofficeDetailTaggedValue.css.d.ts.map +0 -1
  250. package/lib/types/components/backoffice/detail/backofficeKpiStrip.css.d.ts +0 -29
  251. package/lib/types/components/backoffice/detail/backofficeKpiStrip.css.d.ts.map +0 -1
  252. package/lib/types/components/backoffice/detail/backofficeLifecycleTimelineSection.css.d.ts +0 -3
  253. package/lib/types/components/backoffice/detail/backofficeLifecycleTimelineSection.css.d.ts.map +0 -1
  254. package/lib/types/components/backoffice/detail/backofficePayloadInspectorSection.css.d.ts +0 -4
  255. package/lib/types/components/backoffice/detail/backofficePayloadInspectorSection.css.d.ts.map +0 -1
  256. package/lib/types/components/backoffice/detail/backofficeReferenceValue.css.d.ts +0 -3
  257. package/lib/types/components/backoffice/detail/backofficeReferenceValue.css.d.ts.map +0 -1
  258. package/lib/types/components/backoffice/detail/backofficeScopeStack.css.d.ts +0 -5
  259. package/lib/types/components/backoffice/detail/backofficeScopeStack.css.d.ts.map +0 -1
  260. package/lib/types/components/backoffice/detail/backofficeStatusMetaBadge.css.d.ts +0 -2
  261. package/lib/types/components/backoffice/detail/backofficeStatusMetaBadge.css.d.ts.map +0 -1
  262. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts +0 -16
  263. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts.map +0 -1
  264. package/lib/types/components/backoffice/lists/BackofficeListToolbar.stories.d.ts +0 -13
  265. package/lib/types/components/backoffice/lists/BackofficeListToolbar.stories.d.ts.map +0 -1
  266. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts +0 -16
  267. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts.map +0 -1
  268. package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts +0 -10
  269. package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts.map +0 -1
  270. package/lib/types/components/backoffice/pickers/shared/EntityPickerRowBase.d.ts +0 -8
  271. package/lib/types/components/backoffice/pickers/shared/EntityPickerRowBase.d.ts.map +0 -1
  272. package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts +0 -11
  273. package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts.map +0 -1
  274. package/lib/types/components/backoffice/pickers/types.d.ts +0 -14
  275. package/lib/types/components/backoffice/pickers/types.d.ts.map +0 -1
  276. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts +0 -14
  277. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts.map +0 -1
  278. package/lib/types/pages/dashboard/DashboardPanel.d.ts +0 -9
  279. package/lib/types/pages/dashboard/DashboardPanel.d.ts.map +0 -1
  280. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts +0 -13
  281. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts.map +0 -1
  282. package/lib/types/pages/dashboard/DashboardStatusList.d.ts +0 -13
  283. package/lib/types/pages/dashboard/DashboardStatusList.d.ts.map +0 -1
  284. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts +0 -4
  285. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts.map +0 -1
  286. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts +0 -2
  287. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts.map +0 -1
  288. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts +0 -5
  289. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts.map +0 -1
  290. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts +0 -6
  291. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts.map +0 -1
@@ -8,27 +8,27 @@ import { actions as s, checkboxGroup as c, fieldset as l, form as u, legend as e
8
8
  import { useCallback as d, useContext as f, useEffect as p, useId as te, useMemo as m, useState as h } from "react";
9
9
  import { Fragment as ne, jsx as g, jsxs as _ } from "react/jsx-runtime";
10
10
  import { useTranslation as re } from "react-i18next";
11
- import { Button as v } from "@plumile/ui/atomic/atoms/button/Button.js";
12
- import { Form as ie } from "@plumile/ui/atomic/molecules/form/Form.js";
13
- import * as y from "react-relay";
14
- import { Input as b } from "@plumile/ui/atomic/atoms/input/Input.js";
15
- import { Label as x } from "@plumile/ui/atomic/atoms/label/Label.js";
16
- import { Modal as ae } from "@plumile/ui/atomic/atoms/modal/Modal.js";
17
- import { Textarea as oe } from "@plumile/ui/atomic/atoms/textarea/Textarea.js";
18
- import { CheckboxField as S } from "@plumile/ui/atomic/molecules/checkbox_field/CheckboxField.js";
19
- import { FormErrorBanner as se } from "@plumile/ui/atomic/molecules/form/FormErrorBanner.js";
20
- import { FormGroup as C } from "@plumile/ui/atomic/molecules/form/FormGroup.js";
21
- import { HighlightCode as ce } from "@plumile/ui/atomic/molecules/highlight/HighlightCode.js";
22
- import { useToast as le } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
23
- import { BackofficeFormSection as ue } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
24
- import { SimpleSelect as de } from "@plumile/ui/components/select/SimpleSelect.js";
25
- import fe from "@plumile/router/routing/RoutingContext.js";
11
+ import { Button as ie } from "@plumile/ui/atomic/atoms/button/Button.js";
12
+ import { FormError as ae } from "@plumile/ui/atomic/molecules/form_error/FormError.js";
13
+ import { Form as oe } 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 { Label as b } from "@plumile/ui/atomic/atoms/label/Label.js";
17
+ import { Modal as se } from "@plumile/ui/atomic/atoms/modal/Modal.js";
18
+ import { Textarea as ce } from "@plumile/ui/atomic/atoms/textarea/Textarea.js";
19
+ import { CheckboxField as x } from "@plumile/ui/atomic/molecules/checkbox_field/CheckboxField.js";
20
+ import { FormGroup as S } from "@plumile/ui/atomic/molecules/form/FormGroup.js";
21
+ import { HighlightCode as le } from "@plumile/ui/atomic/molecules/highlight/HighlightCode.js";
22
+ import { useToast as ue } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
23
+ import { BackofficeFormSection as de } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
24
+ import { SimpleSelect as fe } from "@plumile/ui/components/select/SimpleSelect.js";
25
+ import pe from "@plumile/router/routing/RoutingContext.js";
26
26
  //#region src/components/backoffice/actions/BackofficeEntityActionFormDialog.tsx
27
- var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T = (e) => typeof e == "object" && !!e && !Array.isArray(e), he = (e) => {
28
- if (!T(e)) return null;
29
- for (let t of Object.values(e)) if (T(t) && ("status" in t || "result" in t)) return t;
27
+ var { commitMutation: me, useRelayEnvironment: he } = v, C = (e, t) => e(t), w = (e) => typeof e == "object" && !!e && !Array.isArray(e), ge = (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;
30
30
  return null;
31
- }, E = (e) => {
31
+ }, T = (e) => {
32
32
  let t = {};
33
33
  return e.forEach((e) => {
34
34
  if (e.kind === "boolean") {
@@ -45,43 +45,43 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
45
45
  }
46
46
  t[e.id] = "";
47
47
  }), t;
48
- }, D = (e, t) => e.kind === "number" ? typeof t == "number" ? String(t) : typeof t == "string" ? t : "" : e.kind === "multiEnum" ? Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim() !== "") : [] : e.kind === "boolean" ? t === !0 : typeof t == "string" ? t : t ?? "", ge = (e, t) => {
49
- let n = E(e.fields);
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 ?? "", _e = (e, t) => {
49
+ let n = T(e.fields);
50
50
  if (e.getInitialValues == null) return n;
51
51
  let r = e.getInitialValues(t), i = { ...n };
52
52
  return e.fields.forEach((e) => {
53
- e.id in r && (i[e.id] = D(e, r[e.id]));
53
+ e.id in r && (i[e.id] = E(e, r[e.id]));
54
54
  }), i;
55
- }, O = ({ isOpen: y, action: E, node: D, onClose: O, onSuccess: k }) => {
56
- let { t: A } = re(), { t: j } = e(), { entities: M } = n(), N = f(fe), P = me(), F = le(), _e = te(), [I, L] = h({}), [ve, R] = h(null), [ye, z] = h({}), [B, V] = h(!1), [H, U] = h(null), [W, G] = h(null), [K, q] = h(null);
55
+ }, D = ({ isOpen: v, action: T, node: E, onClose: D, onSuccess: O }) => {
56
+ let { t: k } = re(), { t: A } = e(), { entities: j } = n(), M = f(pe), N = he(), P = ue(), ve = te(), [F, I] = h({}), [ye, L] = h(null), [be, R] = h({}), [z, B] = h(!1), [V, H] = h(null), [U, W] = h(null), [G, K] = h(null);
57
57
  p(() => {
58
- y && (L(ge(E, D)), R(null), z({}), U(null), G(null));
58
+ v && (I(_e(T, E)), L(null), R({}), H(null), W(null));
59
59
  }, [
60
- E,
61
- y,
62
- D
60
+ T,
61
+ v,
62
+ E
63
63
  ]);
64
- let J = d(() => {
65
- B || O();
66
- }, [B, O]), Y = d((e, t) => {
67
- L((n) => ({
64
+ let q = d(() => {
65
+ z || D();
66
+ }, [z, D]), J = d((e, t) => {
67
+ I((n) => ({
68
68
  ...n,
69
69
  [e]: t
70
- })), z((t) => {
70
+ })), R((t) => {
71
71
  if (t[e] == null) return t;
72
72
  let { [e]: n, ...r } = t;
73
73
  return r;
74
74
  });
75
- }, []), be = w(E.label, A), X = d((e) => j("actions.form.errors.required", { label: e }), [j]), xe = d((e) => j("actions.form.errors.invalidNumber", { label: e }), [j]), Se = d((e) => j("actions.form.errors.invalidJson", { label: e }), [j]), Ce = d((e) => j("actions.form.errors.invalidJsonObject", { label: e }), [j]), we = d((e) => j("actions.form.errors.invalidJsonArray", { label: e }), [j]), Te = d(() => {
75
+ }, []), xe = C(T.label, k), Y = d((e) => A("actions.form.errors.required", { label: e }), [A]), X = d((e) => A("actions.form.errors.invalidNumber", { label: e }), [A]), Se = d((e) => A("actions.form.errors.invalidJson", { label: e }), [A]), Ce = d((e) => A("actions.form.errors.invalidJsonObject", { label: e }), [A]), we = d((e) => A("actions.form.errors.invalidJsonArray", { label: e }), [A]), Te = d(() => {
76
76
  let e = {};
77
- for (let t of E.fields) {
78
- let n = w(t.label, A), r = I[t.id];
77
+ for (let t of T.fields) {
78
+ let n = C(t.label, k), r = F[t.id];
79
79
  switch (t.kind) {
80
80
  case "text": {
81
81
  let i = "";
82
82
  if (typeof r == "string" && (i = r.trim()), i === "") {
83
83
  if (t.required) return {
84
- error: X(n),
84
+ error: Y(n),
85
85
  fieldId: t.id
86
86
  };
87
87
  break;
@@ -93,14 +93,14 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
93
93
  let i = "";
94
94
  if (typeof r == "string" ? i = r.trim() : typeof r == "number" && Number.isFinite(r) && (i = String(r)), i === "") {
95
95
  if (t.required) return {
96
- error: X(n),
96
+ error: Y(n),
97
97
  fieldId: t.id
98
98
  };
99
99
  break;
100
100
  }
101
101
  let a = Number(i);
102
102
  if (!Number.isFinite(a)) return {
103
- error: xe(n),
103
+ error: X(n),
104
104
  fieldId: t.id
105
105
  };
106
106
  e[t.id] = a;
@@ -110,7 +110,7 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
110
110
  let i = "";
111
111
  if (typeof r == "string" && (i = r.trim()), i === "") {
112
112
  if (t.required) return {
113
- error: X(n),
113
+ error: Y(n),
114
114
  fieldId: t.id
115
115
  };
116
116
  break;
@@ -125,7 +125,7 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
125
125
  };
126
126
  }
127
127
  let o = t.jsonType ?? "object";
128
- if (o === "object" && !T(a)) return {
128
+ if (o === "object" && !w(a)) return {
129
129
  error: Ce(n),
130
130
  fieldId: t.id
131
131
  };
@@ -140,7 +140,7 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
140
140
  let i = "";
141
141
  if (typeof r == "string" && (i = r.trim()), i === "") {
142
142
  if (t.required) return {
143
- error: X(n),
143
+ error: Y(n),
144
144
  fieldId: t.id
145
145
  };
146
146
  break;
@@ -155,7 +155,7 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
155
155
  let i = "";
156
156
  if (typeof r == "string" && (i = r.trim()), i === "") {
157
157
  if (t.required) return {
158
- error: X(n),
158
+ error: Y(n),
159
159
  fieldId: t.id
160
160
  };
161
161
  break;
@@ -167,7 +167,7 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
167
167
  let i = [];
168
168
  if (Array.isArray(r) && (i = r.filter((e) => typeof e == "string" && e.trim() !== "")), i.length === 0) {
169
169
  if (t.required) return {
170
- error: X(n),
170
+ error: Y(n),
171
171
  fieldId: t.id
172
172
  };
173
173
  break;
@@ -180,161 +180,161 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
180
180
  }
181
181
  return { values: e };
182
182
  }, [
183
- E.fields,
183
+ T.fields,
184
184
  we,
185
185
  Se,
186
186
  Ce,
187
- xe,
188
187
  X,
189
- A,
190
- I
188
+ Y,
189
+ k,
190
+ F
191
191
  ]), Z = d(() => {
192
- if (B) return;
193
- R(null), z({});
192
+ if (z) return;
193
+ L(null), R({});
194
194
  let e = Te();
195
195
  if ("error" in e) {
196
- R(e.error), e.fieldId != null && z({ [e.fieldId]: e.error });
196
+ L(e.error), e.fieldId != null && R({ [e.fieldId]: e.error });
197
197
  return;
198
198
  }
199
199
  let n;
200
200
  try {
201
- n = E.getVariables(D, e.values);
201
+ n = T.getVariables(E, e.values);
202
202
  } catch {
203
- R(j("actions.form.errors.invalidPayload"));
203
+ L(A("actions.form.errors.invalidPayload"));
204
204
  return;
205
205
  }
206
- V(!0), pe(P, {
207
- mutation: E.mutation,
206
+ B(!0), me(N, {
207
+ mutation: T.mutation,
208
208
  variables: n,
209
209
  updater: (e) => {
210
- E.updater?.(e, D);
210
+ T.updater?.(e, E);
211
211
  },
212
212
  onCompleted: (e) => {
213
- V(!1);
214
- let n = he(e);
213
+ B(!1);
214
+ let n = ge(e);
215
215
  if (n != null) {
216
- let e = j("actions.form.errors.invalidPayload");
217
- E.toasts?.error?.message == null ? E.toasts?.error?.title != null && (e = w(E.toasts.error.title, A)) : e = w(E.toasts.error.message, A);
216
+ let e = A("actions.form.errors.invalidPayload");
217
+ T.toasts?.error?.message == null ? T.toasts?.error?.title != null && (e = C(T.toasts.error.title, k)) : e = C(T.toasts.error.message, k);
218
218
  let r = t(n, {
219
219
  defaultErrorMessage: e,
220
220
  mapReason: (e) => {
221
- let t = E.mapErrorReason?.(e, D);
222
- return t == null ? null : typeof t == "function" ? w(t, A) : String(t);
221
+ let t = T.mapErrorReason?.(e, E);
222
+ return t == null ? null : typeof t == "function" ? C(t, k) : String(t);
223
223
  }
224
224
  });
225
225
  if (!r.ok) {
226
226
  let e = Error(r.message);
227
- if (R(r.message), E.onError?.(e, D), E.toasts?.error != null) {
228
- let e = w(E.toasts.error.title, A), t;
229
- E.toasts.error.message != null && (t = w(E.toasts.error.message, A)), F.error(e, t);
227
+ if (L(r.message), T.onError?.(e, E), T.toasts?.error != null) {
228
+ let e = C(T.toasts.error.title, k), t;
229
+ T.toasts.error.message != null && (t = C(T.toasts.error.message, k)), P.error(e, t);
230
230
  }
231
231
  return;
232
232
  }
233
233
  }
234
- E.onCompleted?.(e, D);
234
+ T.onCompleted?.(e, E);
235
235
  let r = !1;
236
- if (E.result?.render != null && E.result.render(e, D) != null && (r = !0, G(e)), E.toasts?.success != null) {
237
- let t = a(E.toasts.success, A), n = o({
238
- toast: E.toasts.success,
236
+ if (T.result?.render != null && T.result.render(e, E) != null && (r = !0, W(e)), T.toasts?.success != null) {
237
+ let t = a(T.toasts.success, k), n = o({
238
+ toast: T.toasts.success,
239
239
  response: e,
240
- node: D,
241
- tApp: A,
242
- entities: M,
243
- defaultLabel: j("actions.view"),
240
+ node: E,
241
+ tApp: k,
242
+ entities: j,
243
+ defaultLabel: A("actions.view"),
244
244
  navigateTo: (e) => {
245
- N?.history.push({ pathname: e });
245
+ M?.history.push({ pathname: e });
246
246
  }
247
247
  });
248
- F.push({
248
+ P.push({
249
249
  kind: "info",
250
250
  title: t.title,
251
251
  message: t.message,
252
252
  actions: n
253
253
  });
254
254
  }
255
- if (E.result != null) {
256
- let t = E.result.getValue(e, D);
255
+ if (T.result != null) {
256
+ let t = T.result.getValue(e, E);
257
257
  if (typeof t == "string" && t.trim() !== "") {
258
- U(t), k?.();
258
+ H(t), O?.();
259
259
  return;
260
260
  }
261
261
  }
262
262
  if (r) {
263
- k?.();
263
+ O?.();
264
264
  return;
265
265
  }
266
- k?.(), O();
266
+ O?.(), D();
267
267
  },
268
268
  onError: (e) => {
269
- if (V(!1), R(j("actions.form.errors.submitFailed")), E.onError?.(e, D), E.toasts?.error != null) {
270
- let e = w(E.toasts.error.title, A), t;
271
- E.toasts.error.message != null && (t = w(E.toasts.error.message, A)), F.error(e, t);
269
+ if (B(!1), L(A("actions.form.errors.submitFailed")), T.onError?.(e, E), T.toasts?.error != null) {
270
+ let e = C(T.toasts.error.title, k), t;
271
+ T.toasts.error.message != null && (t = C(T.toasts.error.message, k)), P.error(e, t);
272
272
  }
273
273
  }
274
274
  });
275
275
  }, [
276
- E,
276
+ T,
277
277
  Te,
278
- M,
279
- P,
280
- B,
278
+ j,
279
+ N,
280
+ z,
281
+ E,
281
282
  D,
282
283
  O,
283
- k,
284
- N?.history,
285
- j,
284
+ M?.history,
286
285
  A,
287
- F
286
+ k,
287
+ P
288
288
  ]), Ee = d((e) => {
289
289
  e.preventDefault(), Z();
290
- }, [Z]), Q = m(() => E.result == null ? null : w(E.result.label, A), [E.result, A]), De = m(() => E.result?.render == null || W == null ? null : E.result.render(W, D), [
291
- E.result,
292
- D,
293
- W
294
- ]), $ = H != null && Q != null || De != null, Oe = w(E.label, A);
295
- return y ? /* @__PURE__ */ _(ne, { children: [/* @__PURE__ */ g(ae, {
296
- isOpen: y,
297
- onClose: J,
298
- title: be,
290
+ }, [Z]), Q = m(() => T.result == null ? null : C(T.result.label, k), [T.result, k]), De = m(() => T.result?.render == null || U == null ? null : T.result.render(U, E), [
291
+ T.result,
292
+ E,
293
+ U
294
+ ]), $ = V != null && Q != null || De != null, Oe = C(T.label, k);
295
+ return v ? /* @__PURE__ */ _(ne, { children: [/* @__PURE__ */ g(se, {
296
+ isOpen: v,
297
+ onClose: q,
298
+ title: xe,
299
299
  initialFocus: "first-form-control",
300
300
  footer: /* @__PURE__ */ _("div", {
301
301
  className: s,
302
- children: [/* @__PURE__ */ g(v, {
302
+ children: [/* @__PURE__ */ g(ie, {
303
303
  type: "button",
304
304
  variant: "secondary",
305
305
  size: "small",
306
- disabled: B,
307
- onClick: J,
308
- children: j("actions.form.cancel")
309
- }), !$ && /* @__PURE__ */ g(v, {
306
+ disabled: z,
307
+ onClick: q,
308
+ children: A("actions.form.cancel")
309
+ }), !$ && /* @__PURE__ */ g(ie, {
310
310
  type: "submit",
311
311
  variant: "primary",
312
312
  size: "small",
313
- disabled: B,
314
- isLoading: B,
315
- loadingLabel: j("actions.form.submitting"),
313
+ disabled: z,
314
+ isLoading: z,
315
+ loadingLabel: A("actions.form.submitting"),
316
316
  onClick: Z,
317
317
  children: Oe
318
318
  })]
319
319
  }),
320
- children: /* @__PURE__ */ _(ie, {
320
+ children: /* @__PURE__ */ _(oe, {
321
321
  onSubmit: Ee,
322
322
  className: u,
323
323
  children: [
324
- /* @__PURE__ */ g(se, { message: ve }),
325
- /* @__PURE__ */ g(ue, { children: E.fields.map((e) => {
326
- let t = w(e.label, A), n = null;
327
- e.description != null && (n = w(e.description, A));
328
- let i = `${_e}-${e.id}`, a = `${i}-description`, o = `${i}-error`, s = ye[e.id] ?? null, u = s != null, d, f = "default";
324
+ /* @__PURE__ */ g(ae, { message: ye }),
325
+ /* @__PURE__ */ g(de, { children: T.fields.map((e) => {
326
+ let t = C(e.label, k), n = null;
327
+ e.description != null && (n = C(e.description, k));
328
+ let i = `${ve}-${e.id}`, a = `${i}-description`, o = `${i}-error`, s = be[e.id] ?? null, u = s != null, d, f = "default";
329
329
  u && (d = "error", f = "error");
330
330
  let p;
331
331
  switch (n != null && s != null ? p = `${a} ${o}` : n == null ? s != null && (p = o) : p = a, e.kind) {
332
332
  case "text": {
333
- let r = I[e.id], c = "";
333
+ let r = F[e.id], c = "";
334
334
  typeof r == "string" && (c = r);
335
335
  let l;
336
- return e.placeholder != null && (l = w(e.placeholder, A)), /* @__PURE__ */ _(C, { children: [
337
- /* @__PURE__ */ g(x, {
336
+ return e.placeholder != null && (l = C(e.placeholder, k)), /* @__PURE__ */ _(S, { children: [
337
+ /* @__PURE__ */ g(b, {
338
338
  htmlFor: i,
339
339
  required: e.required,
340
340
  children: t
@@ -344,17 +344,17 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
344
344
  className: "txvbqb96 txvbqb19bn",
345
345
  children: n
346
346
  }),
347
- /* @__PURE__ */ g(b, {
347
+ /* @__PURE__ */ g(y, {
348
348
  id: i,
349
349
  type: "text",
350
350
  value: c,
351
351
  placeholder: l,
352
352
  "aria-describedby": p,
353
353
  "aria-invalid": u,
354
- disabled: B,
354
+ disabled: z,
355
355
  variant: d,
356
356
  onChange: (t) => {
357
- Y(e.id, t.target.value);
357
+ J(e.id, t.target.value);
358
358
  },
359
359
  fullWidth: !0
360
360
  }),
@@ -366,11 +366,11 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
366
366
  ] }, e.id);
367
367
  }
368
368
  case "number": {
369
- let r = I[e.id], c = "";
369
+ let r = F[e.id], c = "";
370
370
  typeof r == "string" && (c = r);
371
371
  let l;
372
- return e.placeholder != null && (l = w(e.placeholder, A)), /* @__PURE__ */ _(C, { children: [
373
- /* @__PURE__ */ g(x, {
372
+ return e.placeholder != null && (l = C(e.placeholder, k)), /* @__PURE__ */ _(S, { children: [
373
+ /* @__PURE__ */ g(b, {
374
374
  htmlFor: i,
375
375
  required: e.required,
376
376
  children: t
@@ -380,17 +380,17 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
380
380
  className: "txvbqb96 txvbqb19bn",
381
381
  children: n
382
382
  }),
383
- /* @__PURE__ */ g(b, {
383
+ /* @__PURE__ */ g(y, {
384
384
  id: i,
385
385
  type: "number",
386
386
  value: c,
387
387
  placeholder: l,
388
388
  "aria-describedby": p,
389
389
  "aria-invalid": u,
390
- disabled: B,
390
+ disabled: z,
391
391
  variant: d,
392
392
  onChange: (t) => {
393
- Y(e.id, t.target.value);
393
+ J(e.id, t.target.value);
394
394
  },
395
395
  fullWidth: !0
396
396
  }),
@@ -402,11 +402,11 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
402
402
  ] }, e.id);
403
403
  }
404
404
  case "json": {
405
- let r = I[e.id], c = "";
405
+ let r = F[e.id], c = "";
406
406
  typeof r == "string" && (c = r);
407
407
  let l;
408
- return e.placeholder != null && (l = w(e.placeholder, A)), /* @__PURE__ */ _(C, { children: [
409
- /* @__PURE__ */ g(x, {
408
+ return e.placeholder != null && (l = C(e.placeholder, k)), /* @__PURE__ */ _(S, { children: [
409
+ /* @__PURE__ */ g(b, {
410
410
  htmlFor: i,
411
411
  required: e.required,
412
412
  children: t
@@ -416,17 +416,17 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
416
416
  className: "txvbqb96 txvbqb19bn",
417
417
  children: n
418
418
  }),
419
- /* @__PURE__ */ g(oe, {
419
+ /* @__PURE__ */ g(ce, {
420
420
  id: i,
421
421
  value: c,
422
422
  placeholder: l,
423
423
  rows: 8,
424
424
  "aria-describedby": p,
425
425
  "aria-invalid": u,
426
- disabled: B,
426
+ disabled: z,
427
427
  variant: d,
428
428
  onChange: (t) => {
429
- Y(e.id, t.target.value);
429
+ J(e.id, t.target.value);
430
430
  },
431
431
  fullWidth: !0
432
432
  }),
@@ -438,15 +438,15 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
438
438
  ] }, e.id);
439
439
  }
440
440
  case "enum": {
441
- let r = I[e.id], c = "";
441
+ let r = F[e.id], c = "";
442
442
  typeof r == "string" && (c = r);
443
443
  let l = e.options.map((e) => ({
444
444
  id: e.value,
445
445
  value: e.value,
446
- label: w(e.label, A)
446
+ label: C(e.label, k)
447
447
  }));
448
- return /* @__PURE__ */ _(C, { children: [
449
- /* @__PURE__ */ g(x, {
448
+ return /* @__PURE__ */ _(S, { children: [
449
+ /* @__PURE__ */ g(b, {
450
450
  id: `${i}-label`,
451
451
  required: e.required,
452
452
  children: t
@@ -456,17 +456,17 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
456
456
  className: "txvbqb96 txvbqb19bn",
457
457
  children: n
458
458
  }),
459
- /* @__PURE__ */ g(de, {
459
+ /* @__PURE__ */ g(fe, {
460
460
  options: l,
461
461
  value: c,
462
462
  placeholder: t,
463
463
  ariaDescribedBy: p,
464
464
  ariaInvalid: u,
465
465
  ariaLabelledBy: `${i}-label`,
466
- isDisabled: B,
466
+ isDisabled: z,
467
467
  state: f,
468
468
  onChange: (t) => {
469
- Y(e.id, t);
469
+ J(e.id, t);
470
470
  }
471
471
  }),
472
472
  s != null && /* @__PURE__ */ g("span", {
@@ -477,23 +477,23 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
477
477
  ] }, e.id);
478
478
  }
479
479
  case "boolean": {
480
- let r = I[e.id] === !0;
481
- return /* @__PURE__ */ g(C, { children: /* @__PURE__ */ g(S, {
480
+ let r = F[e.id] === !0;
481
+ return /* @__PURE__ */ g(S, { children: /* @__PURE__ */ g(x, {
482
482
  id: i,
483
483
  label: t,
484
484
  helperText: n ?? void 0,
485
485
  error: s ?? void 0,
486
486
  checked: r,
487
- disabled: B,
487
+ disabled: z,
488
488
  onChange: (t) => {
489
- Y(e.id, t.target.checked);
489
+ J(e.id, t.target.checked);
490
490
  }
491
491
  }) }, e.id);
492
492
  }
493
493
  case "entityId": {
494
- let c = I[e.id], l = "";
495
- return typeof c == "string" && (l = c), /* @__PURE__ */ _(C, { children: [
496
- /* @__PURE__ */ g(x, {
494
+ let c = F[e.id], l = "";
495
+ return typeof c == "string" && (l = c), /* @__PURE__ */ _(S, { children: [
496
+ /* @__PURE__ */ g(b, {
497
497
  htmlFor: i,
498
498
  required: e.required,
499
499
  children: t
@@ -509,16 +509,16 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
509
509
  value: l,
510
510
  ariaDescribedBy: p,
511
511
  ariaInvalid: u,
512
- disabled: B,
512
+ disabled: z,
513
513
  onPick: () => {
514
- q({
514
+ K({
515
515
  fieldId: e.id,
516
516
  entity: e.entity,
517
517
  label: t
518
518
  });
519
519
  },
520
520
  onClear: () => {
521
- Y(e.id, "");
521
+ J(e.id, "");
522
522
  }
523
523
  }),
524
524
  s != null && /* @__PURE__ */ g("span", {
@@ -529,8 +529,8 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
529
529
  ] }, e.id);
530
530
  }
531
531
  case "multiEnum": {
532
- let r = I[e.id], d = `${i}-legend`, f = [];
533
- return Array.isArray(r) && (f = r.filter((e) => typeof e == "string")), /* @__PURE__ */ _(C, { children: [/* @__PURE__ */ _("fieldset", {
532
+ let r = F[e.id], d = `${i}-legend`, f = [];
533
+ return Array.isArray(r) && (f = r.filter((e) => typeof e == "string")), /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ _("fieldset", {
534
534
  className: l,
535
535
  children: [
536
536
  /* @__PURE__ */ _("legend", {
@@ -553,15 +553,15 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
553
553
  "aria-describedby": p,
554
554
  "aria-invalid": u,
555
555
  children: e.options.map((t, n) => {
556
- let r = w(t.label, A), a = f.includes(t.value);
557
- return /* @__PURE__ */ g(S, {
556
+ let r = C(t.label, k), a = f.includes(t.value);
557
+ return /* @__PURE__ */ g(x, {
558
558
  id: `${i}-${n}`,
559
559
  label: r,
560
560
  checked: a,
561
- disabled: B,
561
+ disabled: z,
562
562
  onChange: (n) => {
563
563
  let r = f;
564
- n.target.checked ? f.includes(t.value) || (r = [...f, t.value]) : r = f.filter((e) => e !== t.value), Y(e.id, r);
564
+ n.target.checked ? f.includes(t.value) || (r = [...f, t.value]) : r = f.filter((e) => e !== t.value), J(e.id, r);
565
565
  }
566
566
  }, `${t.value}-${n}`);
567
567
  })
@@ -578,27 +578,27 @@ var { commitMutation: pe, useRelayEnvironment: me } = y, w = (e, t) => e(t), T =
578
578
  }) }),
579
579
  $ && /* @__PURE__ */ _("div", {
580
580
  className: "txvbqbdr8 txvbqbf6i txvbqbff6",
581
- children: [H != null && Q != null && /* @__PURE__ */ g(ce, {
581
+ children: [V != null && Q != null && /* @__PURE__ */ g(le, {
582
582
  badgeLabel: Q,
583
- copyCode: H,
584
- fallbackCodeText: H
583
+ copyCode: V,
584
+ fallbackCodeText: V
585
585
  }), De]
586
586
  })
587
587
  ]
588
588
  })
589
589
  }), /* @__PURE__ */ g(i, {
590
- isOpen: K != null,
591
- entity: K?.entity ?? "",
592
- title: K?.label ?? "",
590
+ isOpen: G != null,
591
+ entity: G?.entity ?? "",
592
+ title: G?.label ?? "",
593
593
  onClose: () => {
594
- q(null);
594
+ K(null);
595
595
  },
596
596
  onSelectId: (e) => {
597
- K != null && (Y(K.fieldId, e), q(null));
597
+ G != null && (J(G.fieldId, e), K(null));
598
598
  }
599
599
  })] }) : null;
600
600
  };
601
601
  //#endregion
602
- export { O as BackofficeEntityActionFormDialog, O as default };
602
+ export { D as BackofficeEntityActionFormDialog, D as default };
603
603
 
604
604
  //# sourceMappingURL=BackofficeEntityActionFormDialog.js.map