@plumile/backoffice-react 0.1.107 → 0.1.108

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 (177) hide show
  1. package/lib/esm/auth/TotpQrCode.js +1 -1
  2. package/lib/esm/auth/TotpQrCode.js.map +1 -1
  3. package/lib/esm/auth/login/EmailCapturePanel.js +27 -23
  4. package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -1
  5. package/lib/esm/auth/login/MfaChallengeForm.js +38 -36
  6. package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -1
  7. package/lib/esm/auth/login/PasskeyLoginForm.js +40 -37
  8. package/lib/esm/auth/login/PasskeyLoginForm.js.map +1 -1
  9. package/lib/esm/auth/pages/AcceptInvitationScreen.js +63 -62
  10. package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -1
  11. package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +56 -55
  12. package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -1
  13. package/lib/esm/auth/pages/PasswordResetRequestScreen.js +45 -45
  14. package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -1
  15. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +1 -0
  16. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
  17. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +44 -39
  18. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
  19. package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js +15 -0
  20. package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js.map +1 -0
  21. package/lib/esm/components/backoffice/detail/BackofficeDetailActionBar.js +11 -0
  22. package/lib/esm/components/backoffice/detail/BackofficeDetailActionBar.js.map +1 -0
  23. package/lib/esm/components/backoffice/detail/BackofficeDetailBlock.js +7 -0
  24. package/lib/esm/components/backoffice/detail/BackofficeDetailBlock.js.map +1 -0
  25. package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js +15 -0
  26. package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js.map +1 -0
  27. package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js +19 -0
  28. package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js.map +1 -0
  29. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js +47 -40
  30. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js.map +1 -1
  31. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +83 -90
  32. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +1 -1
  33. package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js +8 -0
  34. package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js.map +1 -0
  35. package/lib/esm/components/backoffice/detail/BackofficeEmptyValue.js +7 -0
  36. package/lib/esm/components/backoffice/detail/BackofficeEmptyValue.js.map +1 -0
  37. package/lib/esm/components/backoffice/detail/BackofficeStatusGroup.js +8 -0
  38. package/lib/esm/components/backoffice/detail/BackofficeStatusGroup.js.map +1 -0
  39. package/lib/esm/components/backoffice/detail/BackofficeTechnicalFacts.js +2 -0
  40. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +53 -48
  41. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
  42. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js +2 -2
  43. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js.map +1 -1
  44. package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js +15 -11
  45. package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js.map +1 -1
  46. package/lib/esm/components/backoffice/layout/breadcrumb/buildBreadcrumbs.js +50 -23
  47. package/lib/esm/components/backoffice/layout/breadcrumb/buildBreadcrumbs.js.map +1 -1
  48. package/lib/esm/components/backoffice/layout/buildSidebarSections.js +69 -69
  49. package/lib/esm/components/backoffice/layout/sidebarUtils.js +16 -16
  50. package/lib/esm/components/backoffice/layout/sidebarUtils.js.map +1 -1
  51. package/lib/esm/components/backoffice/links/BackofficeInlineLink.js +29 -0
  52. package/lib/esm/components/backoffice/links/BackofficeInlineLink.js.map +1 -0
  53. package/lib/esm/components/backoffice/links/BackofficeLink.js +21 -0
  54. package/lib/esm/components/backoffice/links/BackofficeLink.js.map +1 -0
  55. package/lib/esm/components/backoffice/links/BackofficeLinkContent.js +26 -0
  56. package/lib/esm/components/backoffice/links/BackofficeLinkContent.js.map +1 -0
  57. package/lib/esm/components/backoffice/links/BackofficeLinkLabel.js +19 -0
  58. package/lib/esm/components/backoffice/links/BackofficeLinkLabel.js.map +1 -0
  59. package/lib/esm/components/backoffice/links/backofficeLink.css.js +7 -0
  60. package/lib/esm/components/backoffice/links/backofficeLink.css.js.map +1 -0
  61. package/lib/esm/components/backoffice/links/resolveBackofficeLink.js +81 -0
  62. package/lib/esm/components/backoffice/links/resolveBackofficeLink.js.map +1 -0
  63. package/lib/esm/components/backoffice/links/resolveBackofficeTargetIcon.js +50 -0
  64. package/lib/esm/components/backoffice/links/resolveBackofficeTargetIcon.js.map +1 -0
  65. package/lib/esm/components/backoffice/links/types.js +0 -0
  66. package/lib/esm/components/backoffice/links/useBackofficeLink.js +21 -0
  67. package/lib/esm/components/backoffice/links/useBackofficeLink.js.map +1 -0
  68. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +1 -0
  69. package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
  70. package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js +27 -27
  71. package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js.map +1 -1
  72. package/lib/esm/components/backoffice/refs/BackofficeEntityLink.js +24 -21
  73. package/lib/esm/components/backoffice/refs/BackofficeEntityLink.js.map +1 -1
  74. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js +45 -44
  75. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js.map +1 -1
  76. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +269 -223
  77. package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
  78. package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js +25 -30
  79. package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js.map +1 -1
  80. package/lib/esm/i18n/locales/en/backofficeReact.js +8 -0
  81. package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
  82. package/lib/esm/i18n/locales/fr/backofficeReact.js +8 -0
  83. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
  84. package/lib/esm/index.js +88 -73
  85. package/lib/esm/pages/BackofficeDashboardPage.js +1 -5
  86. package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
  87. package/lib/esm/pages/BackofficeEntityDetailPage.js +231 -222
  88. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  89. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +170 -54
  90. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
  91. package/lib/esm/pages/BackofficeEntityListPage.js +196 -207
  92. package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
  93. package/lib/esm/pages/BackofficeHubPage.js +21 -21
  94. package/lib/esm/pages/BackofficeLayoutPage.js +7 -7
  95. package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
  96. package/lib/esm/router/createBackofficeRoutes.js +132 -126
  97. package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
  98. package/lib/esm/style.css +1 -1
  99. package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
  100. package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
  101. package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
  102. package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
  103. package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -1
  104. package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -1
  105. package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
  106. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +0 -1
  107. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
  108. package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts +8 -0
  109. package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts.map +1 -0
  110. package/lib/types/components/backoffice/detail/BackofficeDetailActionBar.d.ts +9 -0
  111. package/lib/types/components/backoffice/detail/BackofficeDetailActionBar.d.ts.map +1 -0
  112. package/lib/types/components/backoffice/detail/BackofficeDetailBlock.d.ts +7 -0
  113. package/lib/types/components/backoffice/detail/BackofficeDetailBlock.d.ts.map +1 -0
  114. package/lib/types/components/backoffice/detail/BackofficeDetailHeader.d.ts +12 -0
  115. package/lib/types/components/backoffice/detail/BackofficeDetailHeader.d.ts.map +1 -0
  116. package/lib/types/components/backoffice/detail/BackofficeDetailPage.d.ts +16 -0
  117. package/lib/types/components/backoffice/detail/BackofficeDetailPage.d.ts.map +1 -0
  118. package/lib/types/components/backoffice/detail/BackofficeDetailPage.stories.d.ts +11 -0
  119. package/lib/types/components/backoffice/detail/BackofficeDetailPage.stories.d.ts.map +1 -0
  120. package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts.map +1 -1
  121. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
  122. package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts +6 -0
  123. package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts.map +1 -0
  124. package/lib/types/components/backoffice/detail/BackofficeEmptyValue.d.ts +7 -0
  125. package/lib/types/components/backoffice/detail/BackofficeEmptyValue.d.ts.map +1 -0
  126. package/lib/types/components/backoffice/detail/BackofficeStatusGroup.d.ts +8 -0
  127. package/lib/types/components/backoffice/detail/BackofficeStatusGroup.d.ts.map +1 -0
  128. package/lib/types/components/backoffice/detail/BackofficeTechnicalFacts.d.ts +2 -0
  129. package/lib/types/components/backoffice/detail/BackofficeTechnicalFacts.d.ts.map +1 -0
  130. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -1
  131. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts +1 -0
  132. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts.map +1 -1
  133. package/lib/types/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.d.ts.map +1 -1
  134. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +10 -8
  135. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
  136. package/lib/types/components/backoffice/layout/breadcrumb/types.d.ts +10 -5
  137. package/lib/types/components/backoffice/layout/breadcrumb/types.d.ts.map +1 -1
  138. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +6 -2
  139. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
  140. package/lib/types/components/backoffice/links/BackofficeInlineLink.d.ts +18 -0
  141. package/lib/types/components/backoffice/links/BackofficeInlineLink.d.ts.map +1 -0
  142. package/lib/types/components/backoffice/links/BackofficeLink.d.ts +13 -0
  143. package/lib/types/components/backoffice/links/BackofficeLink.d.ts.map +1 -0
  144. package/lib/types/components/backoffice/links/BackofficeLinkContent.d.ts +10 -0
  145. package/lib/types/components/backoffice/links/BackofficeLinkContent.d.ts.map +1 -0
  146. package/lib/types/components/backoffice/links/BackofficeLinkLabel.d.ts +12 -0
  147. package/lib/types/components/backoffice/links/BackofficeLinkLabel.d.ts.map +1 -0
  148. package/lib/types/components/backoffice/links/backofficeLink.css.d.ts +4 -0
  149. package/lib/types/components/backoffice/links/backofficeLink.css.d.ts.map +1 -0
  150. package/lib/types/components/backoffice/links/resolveBackofficeLink.d.ts +15 -0
  151. package/lib/types/components/backoffice/links/resolveBackofficeLink.d.ts.map +1 -0
  152. package/lib/types/components/backoffice/links/resolveBackofficeTargetIcon.d.ts +8 -0
  153. package/lib/types/components/backoffice/links/resolveBackofficeTargetIcon.d.ts.map +1 -0
  154. package/lib/types/components/backoffice/links/types.d.ts +45 -0
  155. package/lib/types/components/backoffice/links/types.d.ts.map +1 -0
  156. package/lib/types/components/backoffice/links/useBackofficeLink.d.ts +7 -0
  157. package/lib/types/components/backoffice/links/useBackofficeLink.d.ts.map +1 -0
  158. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  159. package/lib/types/components/backoffice/refs/BackofficeEntityLink.d.ts.map +1 -1
  160. package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -1
  161. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  162. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts +6 -3
  163. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts.map +1 -1
  164. package/lib/types/i18n/resources.d.ts +16 -0
  165. package/lib/types/i18n/resources.d.ts.map +1 -1
  166. package/lib/types/index.d.ts +24 -1
  167. package/lib/types/index.d.ts.map +1 -1
  168. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  169. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  170. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +49 -22
  171. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  172. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  173. package/lib/types/provider/types.d.ts +26 -22
  174. package/lib/types/provider/types.d.ts.map +1 -1
  175. package/lib/types/router/createBackofficeRoutes.d.ts +36 -1
  176. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  177. package/package.json +7 -7
@@ -6,209 +6,215 @@ import { LazyBackofficeEntityActionFormDialog as a } from "../components/backoff
6
6
  import { buildDataTableColumns as o } from "../components/backoffice/columns/buildDataTableColumns.js";
7
7
  import { BackofficeDetailSection as s } from "../components/backoffice/detail/BackofficeDetailSection.js";
8
8
  import { BackofficeDetailBadgeRow as c } from "../components/backoffice/detail/BackofficeDetailBadgeRow.js";
9
- import { BackofficeDetailErrorList as l } from "../components/backoffice/detail/BackofficeDetailErrorList.js";
10
- import { BackofficeDetailFlagTag as u } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
11
- import { BackofficeDetailPayload as d } from "../components/backoffice/detail/BackofficeDetailPayload.js";
12
- import { BackofficeDetailRelationListBlock as ee } from "../components/backoffice/detail/BackofficeDetailRelationListBlock.js";
13
- import { BackofficeDetailTaggedValue as te } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
14
- import { BackofficeRightPageLayout as ne } from "../components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js";
15
- import { buildEntityDetailBreadcrumb as re } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
16
- import { BackofficeEntityDetailScaffold as ie } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
17
- import { useBackofficeFormats as f } from "../i18n/useBackofficeFormats.js";
18
- import { useRelayEnvironment as ae } from "../relay/useRelayEnvironment.js";
19
- import { resolveVisibleDetailPages as p } from "./detail/pageResolution.js";
20
- import { useBackofficeEntityDetailLayoutContext as m } from "./detail/BackofficeEntityDetailLayoutContext.js";
21
- import { extractMutationPayload as oe, isFormMutationAction as h, isMutationAction as se, isRouteAction as ce, resolveLabel as g } from "./BackofficeEntityDetailPage.helpers.js";
22
- import { headerActions as le, headerBlock as ue, headerMeta as de, headerMetaList as fe } from "./backofficeEntityDetailPage.css.js";
23
- import { buildTabsItems as pe } from "./detail/buildTabsItems.js";
24
- import { buildFieldItems as me, renderBlocks as he, resolveHeaderItems as ge } from "./BackofficeEntityDetailPage.view-helpers.js";
25
- import { useContext as _, useMemo as v, useState as y } from "react";
26
- import { BackofficeKeyValueList as b, BackofficePageHeader as _e, BackofficeRelationsMenu as ve, BackofficeTabs as ye, Button as x, ChatCheckSvg as S, DataTable as be, DetailPageTemplate as xe, FormattedDate as C, HighlightCode as Se, KeyOffSvg as w, KeySvg as T, LazyBackofficeJsonViewer as Ce, LinkButton as we, LockOpenSvg as E, LockSvg as D, RobotCheckSvg as O, RobotXSvg as k, RocketOffSvg as A, RocketSvg as j, SettingsCheckSvg as M, SettingsXSvg as N, ShieldLockSvg as P, ShieldOffSvg as F, Tag as I, XBadgeSvg as L, useToast as R } from "@plumile/ui";
27
- import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
28
- import { useTranslation as H } from "react-i18next";
29
- import { commitMutation as Te, useFragment as U, usePreloadedQuery as W } from "react-relay";
30
- import { HttpRedirect as G, Link as K, RoutingContext as q } from "@plumile/router";
31
- import { BACKOFFICE_DATE_TIME_OPTIONS as Ee } from "@plumile/backoffice-core/constants.js";
32
- import { buildBackofficeFallbackListHref as De, buildBackofficeListHref as Oe, buildBackofficeListLink as ke } from "@plumile/backoffice-core/state/buildListHref.js";
33
- import { setWhereValue as Ae } from "@plumile/backoffice-core/filters/where.js";
9
+ import { BackofficeDetailFlagTag as l } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
10
+ import { BackofficeDetailHeader as u } from "../components/backoffice/detail/BackofficeDetailHeader.js";
11
+ import { BackofficeDetailPage as d } from "../components/backoffice/detail/BackofficeDetailPage.js";
12
+ import { BackofficeDetailPayload as ee } from "../components/backoffice/detail/BackofficeDetailPayload.js";
13
+ import { BackofficeDetailTable as te } from "../components/backoffice/detail/BackofficeDetailTable.js";
14
+ import { BackofficeDetailTaggedValue as ne } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
15
+ import { BackofficeKpiStrip as re } from "../components/backoffice/detail/BackofficeKpiStrip.js";
16
+ import { BackofficeLifecycleTimelineSection as ie } from "../components/backoffice/detail/BackofficeLifecycleTimelineSection.js";
17
+ import { BackofficeRelationsSummaryGrid as ae } from "../components/backoffice/detail/BackofficeRelationsSummaryGrid.js";
18
+ import { BackofficeScopeStack as oe } from "../components/backoffice/detail/BackofficeScopeStack.js";
19
+ import { BackofficeRightPageLayout as se } from "../components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js";
20
+ import { buildEntityDetailBreadcrumb as ce } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
21
+ import { BackofficeEntityDetailScaffold as f } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
22
+ import { useBackofficeFormats as p } from "../i18n/useBackofficeFormats.js";
23
+ import { useRelayEnvironment as m } from "../relay/useRelayEnvironment.js";
24
+ import { resolveVisibleDetailPages as h } from "./detail/pageResolution.js";
25
+ import { useBackofficeEntityDetailLayoutContext as g } from "./detail/BackofficeEntityDetailLayoutContext.js";
26
+ import { extractMutationPayload as le, isFormMutationAction as _, isMutationAction as ue, isRouteAction as de, resolveLabel as v } from "./BackofficeEntityDetailPage.helpers.js";
27
+ import { headerActions as fe, headerBlock as pe, headerMeta as me, headerMetaList as he } from "./backofficeEntityDetailPage.css.js";
28
+ import { buildTabsItems as ge } from "./detail/buildTabsItems.js";
29
+ import { buildFieldItems as _e, renderBlocks as ve, resolveHeaderItems as ye } from "./BackofficeEntityDetailPage.view-helpers.js";
30
+ import { useContext as y, useMemo as b, useState as x } from "react";
31
+ import { BackofficeKeyValueList as S, BackofficeRelationsMenu as be, BackofficeTabs as xe, Button as C, ChatCheckSvg as w, FormattedDate as T, KeyOffSvg as E, KeySvg as D, LinkButton as Se, LockOpenSvg as O, LockSvg as k, RobotCheckSvg as A, RobotXSvg as j, RocketOffSvg as M, RocketSvg as N, SettingsCheckSvg as P, SettingsXSvg as F, ShieldLockSvg as Ce, ShieldOffSvg as I, Tag as L, XBadgeSvg as we, useToast as Te } from "@plumile/ui";
32
+ import { Fragment as Ee, jsx as R, jsxs as z } from "react/jsx-runtime";
33
+ import { useTranslation as B } from "react-i18next";
34
+ import { commitMutation as De, useFragment as V, usePreloadedQuery as H } from "react-relay";
35
+ import { HttpRedirect as U, Link as W, RoutingContext as Oe } from "@plumile/router";
36
+ import { BACKOFFICE_DATE_TIME_OPTIONS as G } from "@plumile/backoffice-core/constants.js";
37
+ import { buildBackofficeFallbackListHref as ke, buildBackofficeListHref as Ae, buildBackofficeListLink as je } from "@plumile/backoffice-core/state/buildListHref.js";
38
+ import { setWhereValue as Me } from "@plumile/backoffice-core/filters/where.js";
34
39
  //#region src/pages/BackofficeEntityDetailPage.tsx
35
- var je = (e) => {
40
+ var Ne = (e) => {
36
41
  switch (e) {
37
- case "shield-lock": return /* @__PURE__ */ B(P, {
42
+ case "shield-lock": return /* @__PURE__ */ R(Ce, {
38
43
  width: 14,
39
44
  height: 14,
40
45
  "aria-hidden": "true"
41
46
  });
42
- case "shield-off": return /* @__PURE__ */ B(F, {
47
+ case "shield-off": return /* @__PURE__ */ R(I, {
43
48
  width: 14,
44
49
  height: 14,
45
50
  "aria-hidden": "true"
46
51
  });
47
- case "settings-check": return /* @__PURE__ */ B(M, {
52
+ case "settings-check": return /* @__PURE__ */ R(P, {
48
53
  width: 14,
49
54
  height: 14,
50
55
  "aria-hidden": "true"
51
56
  });
52
- case "settings-x": return /* @__PURE__ */ B(N, {
57
+ case "settings-x": return /* @__PURE__ */ R(F, {
53
58
  width: 14,
54
59
  height: 14,
55
60
  "aria-hidden": "true"
56
61
  });
57
- case "x-badge": return /* @__PURE__ */ B(L, {
62
+ case "x-badge": return /* @__PURE__ */ R(we, {
58
63
  width: 14,
59
64
  height: 14,
60
65
  "aria-hidden": "true"
61
66
  });
62
- case "chat-check": return /* @__PURE__ */ B(S, {
67
+ case "chat-check": return /* @__PURE__ */ R(w, {
63
68
  width: 14,
64
69
  height: 14,
65
70
  "aria-hidden": "true"
66
71
  });
67
- case "key": return /* @__PURE__ */ B(T, {
72
+ case "key": return /* @__PURE__ */ R(D, {
68
73
  width: 14,
69
74
  height: 14,
70
75
  "aria-hidden": "true"
71
76
  });
72
- case "key-off": return /* @__PURE__ */ B(w, {
77
+ case "key-off": return /* @__PURE__ */ R(E, {
73
78
  width: 14,
74
79
  height: 14,
75
80
  "aria-hidden": "true"
76
81
  });
77
- case "lock": return /* @__PURE__ */ B(D, {
82
+ case "lock": return /* @__PURE__ */ R(k, {
78
83
  width: 14,
79
84
  height: 14,
80
85
  "aria-hidden": "true"
81
86
  });
82
- case "lock-open": return /* @__PURE__ */ B(E, {
87
+ case "lock-open": return /* @__PURE__ */ R(O, {
83
88
  width: 14,
84
89
  height: 14,
85
90
  "aria-hidden": "true"
86
91
  });
87
- case "robot-check": return /* @__PURE__ */ B(O, {
92
+ case "robot-check": return /* @__PURE__ */ R(A, {
88
93
  width: 14,
89
94
  height: 14,
90
95
  "aria-hidden": "true"
91
96
  });
92
- case "robot-x": return /* @__PURE__ */ B(k, {
97
+ case "robot-x": return /* @__PURE__ */ R(j, {
93
98
  width: 14,
94
99
  height: 14,
95
100
  "aria-hidden": "true"
96
101
  });
97
- case "rocket": return /* @__PURE__ */ B(j, {
102
+ case "rocket": return /* @__PURE__ */ R(N, {
98
103
  width: 14,
99
104
  height: 14,
100
105
  "aria-hidden": "true"
101
106
  });
102
- case "rocket-off": return /* @__PURE__ */ B(A, {
107
+ case "rocket-off": return /* @__PURE__ */ R(M, {
103
108
  width: 14,
104
109
  height: 14,
105
110
  "aria-hidden": "true"
106
111
  });
107
112
  default: throw Error(`Unsupported flag icon: ${String(e)}`);
108
113
  }
109
- }, Me = (e) => {
114
+ }, Pe = (e) => {
110
115
  if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
111
116
  let t = e.fields?.map((e) => e.presentation?.group) ?? [];
112
- return t.length > 0 && t.every((e) => e === "scope" || e === "status") ? "secondary" : e.placement ?? "primary";
113
- }, J = ({ config: S, prepared: w }) => {
114
- let { t: T } = H(), { t: E } = e(), { formatNumber: D, formatCurrency: O, formatPercent: k } = f(), { entities: A, entityRegistry: j } = n(), { layoutView: M } = m(), N = _(q), P = ae(), F = R(), [L, J] = y({}), [Y, Ne] = y(null), X = p({
115
- mainPage: S.pages.mainPage,
116
- subPages: S.pages.subPages,
117
- activePagePath: w.pagePath,
118
- node: M
119
- }), Pe = X.activePage ?? S.pages.mainPage, Fe = X.pages.length > 0 ? X.pages : [S.pages.mainPage], Z = (e, t) => {
120
- J((n) => n[e] === t ? n : {
117
+ return t.length > 0 && t.every((e) => e === "scope" || e === "status") || e.placement === "side" || e.placement === "secondary" ? "secondary" : "primary";
118
+ }, K = ({ config: w, prepared: E }) => {
119
+ let { t: D } = B(), { t: O } = e(), { formatNumber: k, formatCurrency: A, formatPercent: j } = p(), { entities: M, entityRegistry: N } = n(), { layoutView: P } = g(), F = y(Oe), Ce = m(), I = Te(), [we, K] = x({}), [q, Fe] = x(null), J = h({
120
+ mainPage: w.pages.mainPage,
121
+ subPages: w.pages.subPages,
122
+ activePagePath: E.pagePath,
123
+ node: P
124
+ }), Y = J.activePage ?? w.pages.mainPage, Ie = J.pages.length > 0 ? J.pages : [w.pages.mainPage], X = (e, t) => {
125
+ K((n) => n[e] === t ? n : {
121
126
  ...n,
122
127
  [e]: t
123
128
  });
124
- }, { page: Q } = S, Ie = W(Q.query, w.pageQuery), $ = Q.resolveNode(Ie, {
125
- id: w.id,
126
- detailId: w.detailId
127
- }), Le = $ != null, Re = U(Q.fragment, $), ze = v(() => Object.fromEntries(Q.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
128
- let t = A[e];
129
+ }, { page: Z } = w, Q = H(Z.query, E.pageQuery), $ = Z.resolveNode(Q, {
130
+ id: E.id,
131
+ detailId: E.detailId
132
+ }), Le = $ != null, Re = V(Z.fragment, $), ze = b(() => Object.fromEntries(Z.content.flatMap((e) => e.kind === "fieldSet" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
133
+ let t = M[e];
129
134
  return t?.hasList === !0 ? [[e, t.routes.list]] : [];
130
- })), [A, Q.content]);
131
- if (!Le) throw new G(S.routes.list);
132
- return /* @__PURE__ */ B(ie, {
135
+ })), [M, Z.content]);
136
+ if (!Le) throw new U(w.routes.list);
137
+ return /* @__PURE__ */ R(f, {
133
138
  node: Re,
134
139
  render: (e) => {
135
- let n = Q.toView(e), ie = pe({
136
- pages: Fe,
137
- id: w.id,
138
- tApp: T,
139
- detailPageHref: S.routes.detailPage
140
- }), f = (e, t) => {
141
- let n = A[e];
140
+ let n = Z.toView(e), f = ge({
141
+ pages: Ie,
142
+ id: E.id,
143
+ tApp: D,
144
+ detailPageHref: w.routes.detailPage
145
+ }), p = (e, t) => {
146
+ let n = M[e];
142
147
  return n == null ? null : n.routes.detail(t);
143
- }, ae = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
144
- let { target: s, filterId: c, whereKey: l, path: u } = r, d = j.getLoadedListEntity(s);
148
+ }, m = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
149
+ let { target: s, filterId: c, whereKey: l, path: u } = r, d = N.getLoadedListEntity(s);
145
150
  return {
146
151
  id: e,
147
152
  label: t,
148
153
  count: n,
149
- href: d == null ? De(i, o, [{
154
+ href: d == null ? ke(i, o, [{
150
155
  id: c ?? (u == null ? l : `${l}.${u.join(".")}`),
151
156
  value: a
152
- }]) : Oe(d.config, { where: o }),
157
+ }]) : Ae(d.config, { where: o }),
153
158
  onClick: async (e) => {
154
- if (N == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
159
+ if (F == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
155
160
  e.preventDefault();
156
- let t = ke((await j.loadListEntity(s)).config, { where: o });
157
- N.history.push({
161
+ let t = je((await N.loadListEntity(s)).config, { where: o });
162
+ F.history.push({
158
163
  pathname: t.pathname,
159
164
  search: t.search === "" ? "" : `?${t.search}`,
160
165
  hash: ""
161
166
  });
162
167
  }
163
168
  };
164
- }, p = ge(S.header, M, {
165
- tApp: T,
166
- t: E,
167
- resolveEntityHref: f,
168
- renderLink: (e, t) => /* @__PURE__ */ B(K, {
169
+ }, h = ye(w.header, P, {
170
+ tApp: D,
171
+ t: O,
172
+ resolveEntityHref: p,
173
+ renderLink: (e, t) => /* @__PURE__ */ R(W, {
169
174
  to: e,
170
175
  children: t
171
176
  }),
172
- renderDate: (e, t) => /* @__PURE__ */ B(C, {
177
+ renderDate: (e, t) => /* @__PURE__ */ R(T, {
173
178
  value: e,
174
- options: Ee,
179
+ options: G,
175
180
  fallback: t
176
181
  }),
177
- renderTag: (e, t) => /* @__PURE__ */ B(I, {
182
+ renderTag: (e, t) => /* @__PURE__ */ R(L, {
178
183
  tone: e,
179
184
  children: t
180
185
  }),
181
- renderBadgeRow: (e) => /* @__PURE__ */ B(c, { items: e })
182
- }), m = re({
183
- config: S,
184
- tApp: T,
185
- entityId: w.id,
186
- layoutView: M,
187
- pageLabel: Pe.label(T)
188
- }), _ = Q.actions ?? [], v = [];
189
- if (_.length > 0) {
190
- let e = _.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
191
- e.length > 0 && (v = e.map((e) => {
192
- let a = g(e.label, T), o = e.ariaLabel == null ? a : g(e.ariaLabel, T), s = e.variant ?? "secondary", c = e.size ?? "small", l = L[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
193
- return ce(e) ? /* @__PURE__ */ B(we, {
186
+ renderBadgeRow: (e) => /* @__PURE__ */ R(c, { items: e })
187
+ }), g = ce({
188
+ config: w,
189
+ tApp: D,
190
+ entityId: E.id,
191
+ layoutView: P,
192
+ pageLabel: Y.label(D),
193
+ pageId: Y.id
194
+ }), y = Z.actions ?? [], b = [];
195
+ if (y.length > 0) {
196
+ let e = y.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
197
+ e.length > 0 && (b = e.map((e) => {
198
+ let a = v(e.label, D), o = e.ariaLabel == null ? a : v(e.ariaLabel, D), s = e.variant ?? "secondary", c = e.size ?? "small", l = we[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
199
+ return de(e) ? /* @__PURE__ */ R(Se, {
194
200
  to: e.to(n),
195
201
  variant: s,
196
202
  size: c,
197
203
  isDisabled: u,
198
204
  "aria-label": o,
199
205
  children: a
200
- }, e.id) : h(e) ? /* @__PURE__ */ B(x, {
206
+ }, e.id) : _(e) ? /* @__PURE__ */ R(C, {
201
207
  type: "button",
202
208
  variant: s,
203
209
  size: c,
204
210
  isLoading: !1,
205
211
  disabled: u,
206
212
  onClick: () => {
207
- Ne(e.id);
213
+ Fe(e.id);
208
214
  },
209
215
  "aria-label": o,
210
216
  children: a
211
- }, e.id) : se(e) ? /* @__PURE__ */ B(x, {
217
+ }, e.id) : ue(e) ? /* @__PURE__ */ R(C, {
212
218
  type: "button",
213
219
  variant: s,
214
220
  size: c,
@@ -217,47 +223,47 @@ var je = (e) => {
217
223
  onClick: () => {
218
224
  if (l) return;
219
225
  let a = e.getVariables(n);
220
- Z(e.id, !0), Te(P, {
226
+ X(e.id, !0), De(Ce, {
221
227
  mutation: e.mutation,
222
228
  variables: a,
223
229
  updater: (t) => {
224
230
  e.updater?.(t, n);
225
231
  },
226
232
  onCompleted: (a) => {
227
- Z(e.id, !1);
228
- let o = oe(a);
233
+ X(e.id, !1);
234
+ let o = le(a);
229
235
  if (o != null) {
230
- let i = E("actions.form.errors.invalidPayload");
231
- e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (i = g(e.toasts.error.title, T)) : i = g(e.toasts.error.message, T);
236
+ let i = O("actions.form.errors.invalidPayload");
237
+ e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (i = v(e.toasts.error.title, D)) : i = v(e.toasts.error.message, D);
232
238
  let a = t(o, {
233
239
  defaultErrorMessage: i,
234
240
  mapReason: (t) => {
235
241
  let r = e.mapErrorReason?.(t, n);
236
- return r == null ? null : typeof r == "function" ? g(r, T) : String(r);
242
+ return r == null ? null : typeof r == "function" ? v(r, D) : String(r);
237
243
  }
238
244
  });
239
245
  if (!a.ok) {
240
246
  let t = Error(a.message);
241
247
  if (e.onError?.(t, n), e.toasts?.error != null) {
242
- let t = r(e.toasts.error, T);
243
- F.error(t.title, t.message);
248
+ let t = r(e.toasts.error, D);
249
+ I.error(t.title, t.message);
244
250
  }
245
251
  return;
246
252
  }
247
253
  }
248
254
  if (e.onCompleted?.(a, n), e.toasts?.success != null) {
249
- let t = r(e.toasts.success, T), o = i({
255
+ let t = r(e.toasts.success, D), o = i({
250
256
  toast: e.toasts.success,
251
257
  response: a,
252
258
  node: n,
253
- tApp: T,
254
- entities: A,
255
- defaultLabel: E("actions.view"),
259
+ tApp: D,
260
+ entities: M,
261
+ defaultLabel: O("actions.view"),
256
262
  navigateTo: (e) => {
257
- N?.history.push({ pathname: e });
263
+ F?.history.push({ pathname: e });
258
264
  }
259
265
  });
260
- F.push({
266
+ I.push({
261
267
  kind: "info",
262
268
  title: t.title,
263
269
  message: t.message,
@@ -266,9 +272,9 @@ var je = (e) => {
266
272
  }
267
273
  },
268
274
  onError: (t) => {
269
- if (Z(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
270
- let t = r(e.toasts.error, T);
271
- F.error(t.title, t.message);
275
+ if (X(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
276
+ let t = r(e.toasts.error, D);
277
+ I.error(t.title, t.message);
272
278
  }
273
279
  }
274
280
  });
@@ -278,49 +284,49 @@ var je = (e) => {
278
284
  }, e.id) : null;
279
285
  }));
280
286
  }
281
- let y = _.find((e) => e.id === Y), { content: R } = Q, H = [], U = [], W = [];
282
- R.forEach((e, t) => {
283
- let r = Me(e) === "secondary" ? U : H;
284
- if (e.kind === "section") {
285
- let i = g(e.title, T), a = e.description == null ? void 0 : g(e.description, T), { items: o, relationItems: l, customNodes: d } = me(e.fields, n, {
286
- tApp: T,
287
- t: E,
288
- resolveEntityHref: f,
289
- formatNumber: D,
290
- formatCurrency: O,
291
- formatPercent: k,
287
+ let x = y.find((e) => e.id === q), { content: Te } = Z, B = [], V = [], H = [];
288
+ Te.forEach((e, t) => {
289
+ let r = Pe(e) === "secondary" ? V : B;
290
+ if (e.kind === "fieldSet") {
291
+ let i = v(e.title, D), a = e.description == null ? void 0 : v(e.description, D), { items: o, relationItems: u, customNodes: d } = _e(e.fields, n, {
292
+ tApp: D,
293
+ t: O,
294
+ resolveEntityHref: p,
295
+ formatNumber: k,
296
+ formatCurrency: A,
297
+ formatPercent: j,
292
298
  relationEntityListRoutes: ze,
293
- resolveRelationItem: ae,
294
- setWhereValue: Ae,
295
- renderTag: (e, t) => /* @__PURE__ */ B(I, {
299
+ resolveRelationItem: m,
300
+ setWhereValue: Me,
301
+ renderTag: (e, t) => /* @__PURE__ */ R(L, {
296
302
  tone: e,
297
303
  children: t
298
304
  }),
299
- renderBadgeRow: (e) => /* @__PURE__ */ B(c, { items: e }),
300
- renderDate: (e, t) => /* @__PURE__ */ B(C, {
305
+ renderBadgeRow: (e) => /* @__PURE__ */ R(c, { items: e }),
306
+ renderDate: (e, t) => /* @__PURE__ */ R(T, {
301
307
  value: e,
302
- options: Ee,
308
+ options: G,
303
309
  fallback: t
304
310
  }),
305
- renderFlagTag: (e) => /* @__PURE__ */ B(u, {
311
+ renderFlagTag: (e) => /* @__PURE__ */ R(l, {
306
312
  tone: e.tone,
307
- icon: e.iconName == null ? void 0 : je(e.iconName),
313
+ icon: e.iconName == null ? void 0 : Ne(e.iconName),
308
314
  label: e.label
309
315
  }),
310
- renderLink: (e, t) => /* @__PURE__ */ B(K, {
316
+ renderLink: (e, t) => /* @__PURE__ */ R(W, {
311
317
  to: e,
312
318
  children: t
313
319
  }),
314
- renderTaggedValue: (e, t) => /* @__PURE__ */ B(te, {
320
+ renderTaggedValue: (e, t) => /* @__PURE__ */ R(ne, {
315
321
  tag: e,
316
322
  value: t
317
323
  }),
318
- wrapCustomNode: (e, t) => /* @__PURE__ */ B("div", { children: t }, e)
324
+ wrapCustomNode: (e, t) => /* @__PURE__ */ R("div", { children: t }, e)
319
325
  });
320
- if (l.forEach((e) => {
321
- W.some((t) => t.id === e.id) || W.push(e);
326
+ if (u.forEach((e) => {
327
+ H.some((t) => t.id === e.id) || H.push(e);
322
328
  }), !(o.length > 0 || d.length > 0)) return;
323
- r.push(/* @__PURE__ */ B(s, {
329
+ r.push(/* @__PURE__ */ R(s, {
324
330
  title: i,
325
331
  description: a,
326
332
  items: o.length > 0 ? o : void 0,
@@ -328,30 +334,58 @@ var je = (e) => {
328
334
  }, `${i}-${t}`));
329
335
  return;
330
336
  }
331
- let i = he([e], n, {
332
- tApp: T,
333
- t: E,
334
- resolveEntityHref: f,
337
+ let i = ve([e], n, {
338
+ tApp: D,
339
+ t: O,
340
+ resolveEntityHref: p,
335
341
  keyPrefix: String(t),
336
- renderCustomSection: (e, t, n) => /* @__PURE__ */ B(s, {
342
+ renderLink: (e, t) => /* @__PURE__ */ R(W, {
343
+ to: e,
344
+ children: t
345
+ }),
346
+ renderDate: (e, t) => /* @__PURE__ */ R(T, {
347
+ value: e,
348
+ options: G,
349
+ fallback: t
350
+ }),
351
+ renderTag: (e, t) => /* @__PURE__ */ R(L, {
352
+ tone: e,
353
+ children: t
354
+ }),
355
+ renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ R(s, {
337
356
  title: t,
338
- children: n
357
+ description: n,
358
+ children: /* @__PURE__ */ R(re, {
359
+ items: i,
360
+ density: r ?? "comfortable"
361
+ })
339
362
  }, e),
340
- wrapCustomNode: (e, t) => /* @__PURE__ */ B("div", { children: t }, e),
341
- renderRelationList: ({ key: e, title: t, relation: n, value: r }) => /* @__PURE__ */ B(ee, {
363
+ renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ R(ie, {
342
364
  title: t,
343
- relation: n,
344
- value: r ?? null
365
+ description: n,
366
+ events: r
367
+ }, e),
368
+ renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ R(ae, {
369
+ title: t,
370
+ items: n
345
371
  }, e),
372
+ renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ R(oe, {
373
+ title: t,
374
+ items: n
375
+ }, e),
376
+ renderCustomSection: (e, t, n) => /* @__PURE__ */ R(s, {
377
+ title: t,
378
+ children: n
379
+ }, e),
380
+ wrapCustomNode: (e, t) => /* @__PURE__ */ R("div", { children: t }, e),
346
381
  resolveTableColumns: (e) => o(e, {
347
- tApp: T,
348
- t: E,
349
- resolveEntityHref: f
382
+ tApp: D,
383
+ t: O
350
384
  }),
351
- renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ B(s, {
385
+ renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ R(s, {
352
386
  title: t,
353
387
  description: n,
354
- children: /* @__PURE__ */ B(be, {
388
+ children: /* @__PURE__ */ R(te, {
355
389
  columns: r,
356
390
  rows: i,
357
391
  getRowId: (e, t) => {
@@ -363,112 +397,87 @@ var je = (e) => {
363
397
  }
364
398
  })
365
399
  }, e),
366
- renderJson: ({ key: e, title: t, description: n, value: r, defaultCollapsed: i }) => {
367
- let a = /* @__PURE__ */ B(s, {
368
- title: t,
369
- description: n,
370
- children: /* @__PURE__ */ B(Ce, {
371
- value: r,
372
- title: t
373
- })
374
- }, e);
375
- return i === !0 ? /* @__PURE__ */ V("details", { children: [/* @__PURE__ */ B("summary", { children: t }), a] }, e) : a;
376
- },
377
- renderCode: ({ key: e, title: t, description: n, value: r, outputLabel: i }) => /* @__PURE__ */ B(s, {
378
- title: t,
379
- description: n,
380
- children: /* @__PURE__ */ B(Se, {
381
- badgeLabel: i,
382
- copyCode: r,
383
- fallbackCodeText: r
384
- })
385
- }, e),
386
- renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ B(d, {
400
+ renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ R(ee, {
387
401
  title: t,
388
402
  description: n,
389
403
  content: r,
390
404
  format: i
391
405
  }, e),
392
- renderErrorList: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ B(l, {
406
+ renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ R(s, {
393
407
  title: t,
394
408
  description: n,
395
- items: r
396
- }, e),
397
- renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ B(s, {
398
- title: t,
399
- description: n,
400
- children: /* @__PURE__ */ B(b, { items: r })
409
+ children: /* @__PURE__ */ R(S, { items: r })
401
410
  }, e)
402
411
  })[0];
403
412
  i != null && r.push(i);
404
413
  });
405
- let G = W.length > 0 ? /* @__PURE__ */ B(ve, {
406
- label: E("relations.menu.label"),
407
- items: W
408
- }) : null, q = v.length > 0 || G != null ? /* @__PURE__ */ V("div", {
409
- className: le,
410
- children: [v.length > 0 && /* @__PURE__ */ B("div", {
414
+ let U = H.length > 0 ? /* @__PURE__ */ R(be, {
415
+ label: O("relations.menu.label"),
416
+ items: H
417
+ }) : null, Oe = b.length > 0 || U != null ? /* @__PURE__ */ z("div", {
418
+ className: fe,
419
+ children: [b.length > 0 && /* @__PURE__ */ R("div", {
411
420
  className: "txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy",
412
- children: v
413
- }), G != null && /* @__PURE__ */ B("div", {
421
+ children: b
422
+ }), U != null && /* @__PURE__ */ R("div", {
414
423
  className: "_1i6bm7z0 txvbqb9ip txvbqbcp",
415
- children: G
424
+ children: U
416
425
  })]
417
- }) : void 0, J = p.status != null || p.badges != null ? /* @__PURE__ */ V("div", {
418
- className: de,
419
- children: [p.status, p.badges]
420
- }) : void 0, X = p.items != null && p.items.length > 0 ? /* @__PURE__ */ B("div", {
421
- className: fe,
422
- children: /* @__PURE__ */ B(b, { items: p.items })
423
- }) : null, Ie = U.length > 0, $ = null;
424
- return Fe.length > 1 && ($ = /* @__PURE__ */ B(ye, {
425
- items: ie,
426
- activeId: Pe.id,
426
+ }) : void 0, K = h.status != null || h.badges != null ? /* @__PURE__ */ z("div", {
427
+ className: me,
428
+ children: [h.status, h.badges]
429
+ }) : void 0, J = h.items != null && h.items.length > 0 ? /* @__PURE__ */ R("div", {
430
+ className: he,
431
+ children: /* @__PURE__ */ R(S, { items: h.items })
432
+ }) : null, Q = V.length > 0, $ = null;
433
+ return Ie.length > 1 && ($ = /* @__PURE__ */ R(xe, {
434
+ items: f,
435
+ activeId: Y.id,
427
436
  onChange: () => {},
428
437
  variant: "underline"
429
- })), /* @__PURE__ */ V(ne, {
430
- breadcrumb: m,
431
- children: [/* @__PURE__ */ B(xe, {
432
- headerNode: /* @__PURE__ */ V("div", {
433
- className: ue,
434
- children: [/* @__PURE__ */ B(_e, {
435
- title: p.title,
436
- subtitle: p.subtitle,
437
- actions: q,
438
- meta: J
439
- }), X]
438
+ })), /* @__PURE__ */ z(se, {
439
+ breadcrumb: g,
440
+ children: [/* @__PURE__ */ R(d, {
441
+ headerNode: /* @__PURE__ */ z("div", {
442
+ className: pe,
443
+ children: [/* @__PURE__ */ R(u, {
444
+ title: h.title,
445
+ subtitle: h.subtitle,
446
+ actions: Oe,
447
+ meta: K
448
+ }), J]
440
449
  }),
441
450
  tabsNode: $,
442
- sidePanel: Ie ? /* @__PURE__ */ B(z, { children: U }) : void 0,
451
+ sidePanel: Q ? /* @__PURE__ */ R(Ee, { children: V }) : void 0,
443
452
  sidePanelVariant: "plain",
444
453
  headerDensity: "compact",
445
- children: /* @__PURE__ */ B(z, { children: H })
446
- }), y != null && h(y) && /* @__PURE__ */ B(a, {
454
+ children: /* @__PURE__ */ R(Ee, { children: B })
455
+ }), x != null && _(x) && /* @__PURE__ */ R(a, {
447
456
  isOpen: !0,
448
- action: y,
457
+ action: x,
449
458
  node: n,
450
459
  onClose: () => {
451
- Ne(null);
460
+ Fe(null);
452
461
  }
453
462
  })]
454
463
  });
455
464
  }
456
465
  });
457
- }, Y = ({ config: e, prepared: t }) => {
458
- let { layoutView: n } = m(), r = p({
466
+ }, q = ({ config: e, prepared: t }) => {
467
+ let { layoutView: n } = g(), r = h({
459
468
  mainPage: e.pages.mainPage,
460
469
  subPages: e.pages.subPages,
461
470
  activePagePath: t.pagePath,
462
471
  node: n
463
472
  });
464
- if (!r.hasVisiblePages || r.activePage == null) throw new G(e.routes.list);
465
- if (r.activePage.id !== t.pageId) throw new G(e.routes.detailPage(t.id, r.activePage.id));
466
- return /* @__PURE__ */ B(J, {
473
+ if (!r.hasVisiblePages || r.activePage == null) throw new U(e.routes.list);
474
+ if (r.activePage.id !== t.pageId) throw new U(e.routes.detailPage(t.id, r.activePage.id));
475
+ return /* @__PURE__ */ R(K, {
467
476
  config: t.pageConfig,
468
477
  prepared: t
469
478
  });
470
479
  };
471
480
  //#endregion
472
- export { Y as BackofficeEntityDetailPage, Y as default };
481
+ export { q as BackofficeEntityDetailPage, q as default };
473
482
 
474
483
  //# sourceMappingURL=BackofficeEntityDetailPage.js.map