@plumile/backoffice-react 0.1.181 → 0.1.183

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 (32) hide show
  1. package/lib/esm/auth/login/loginPage.css.js +1 -0
  2. package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +1 -0
  3. package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js +0 -2
  4. package/lib/esm/pages/BackofficeDashboardShellPage.js +29 -0
  5. package/lib/esm/pages/BackofficeDashboardShellPage.js.map +1 -0
  6. package/lib/esm/pages/BackofficeEntityDetailPage.js +164 -175
  7. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  8. package/lib/esm/pages/BackofficeEntityDetailPageConfigPage.js +35 -0
  9. package/lib/esm/pages/BackofficeEntityDetailPageConfigPage.js.map +1 -0
  10. package/lib/esm/pages/BackofficeEntityDetailShellPage.js +99 -0
  11. package/lib/esm/pages/BackofficeEntityDetailShellPage.js.map +1 -0
  12. package/lib/esm/pages/BackofficeEntityListShellPage.js +32 -0
  13. package/lib/esm/pages/BackofficeEntityListShellPage.js.map +1 -0
  14. package/lib/esm/pages/BackofficeToolShellPage.js +32 -0
  15. package/lib/esm/pages/BackofficeToolShellPage.js.map +1 -0
  16. package/lib/esm/router/createBackofficeRoutes.js +186 -72
  17. package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
  18. package/lib/types/pages/BackofficeDashboardShellPage.d.ts +9 -0
  19. package/lib/types/pages/BackofficeDashboardShellPage.d.ts.map +1 -0
  20. package/lib/types/pages/BackofficeEntityDetailPage.d.ts +2 -3
  21. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  22. package/lib/types/pages/BackofficeEntityDetailPageConfigPage.d.ts +10 -0
  23. package/lib/types/pages/BackofficeEntityDetailPageConfigPage.d.ts.map +1 -0
  24. package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts +10 -0
  25. package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts.map +1 -0
  26. package/lib/types/pages/BackofficeEntityListShellPage.d.ts +10 -0
  27. package/lib/types/pages/BackofficeEntityListShellPage.d.ts.map +1 -0
  28. package/lib/types/pages/BackofficeToolShellPage.d.ts +10 -0
  29. package/lib/types/pages/BackofficeToolShellPage.d.ts.map +1 -0
  30. package/lib/types/router/createBackofficeRoutes.d.ts +11 -3
  31. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  32. package/package.json +13 -13
@@ -9,154 +9,151 @@ import { BackofficeDetailBadgeRow as c } from "../components/backoffice/detail/B
9
9
  import { BackofficeDetailFlagTag as l } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
10
10
  import { BackofficeDetailTaggedValue as u } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
11
11
  import { BackofficeLifecycleTimelineSection as d } from "../components/backoffice/detail/BackofficeLifecycleTimelineSection.js";
12
- import { BackofficeRelationsSummaryGrid as ee } from "../components/backoffice/detail/BackofficeRelationsSummaryGrid.js";
13
- import { layout as te, primary as ne, secondary as re, stacked as ie } from "../components/backoffice/detail/backofficeDetailLayout.css.js";
14
- import { BackofficeEntityDetailScaffold as f } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
15
- import { useBackofficeEntityDetailNotFoundState as p } from "../components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js";
16
- import { useBackofficeFormats as m } from "../i18n/useBackofficeFormats.js";
17
- import { useRelayEnvironment as h } from "../relay/useRelayEnvironment.js";
18
- import { resolveVisibleDetailPages as g } from "./detail/pageResolution.js";
19
- import { headerActionGroup as ae, headerActions as oe } from "./backofficeEntityDetailPage.css.js";
20
- import { extractMutationPayload as se, isFormMutationAction as _, isMutationAction as ce, isRouteAction as le, resolveLabel as v } from "./BackofficeEntityDetailPage.helpers.js";
21
- import { buildFieldItems as y, renderBlocks as b } from "./BackofficeEntityDetailPage.view-helpers.js";
22
- import { useBackofficeEntityDetailLayoutContext as x } from "./detail/BackofficeEntityDetailLayoutContext.js";
23
- import { BackofficeRedirect as S } from "./BackofficeRedirect.js";
24
- import { useContext as ue, useState as C } from "react";
25
- import { Fragment as de, jsx as w, jsxs as T } from "react/jsx-runtime";
26
- import { useTranslation as E } from "react-i18next";
27
- import { Button as D } from "@plumile/ui/atomic/atoms/button/Button.js";
12
+ import { BackofficeRelationsSummaryGrid as f } from "../components/backoffice/detail/BackofficeRelationsSummaryGrid.js";
13
+ import { layout as ee, primary as te, secondary as ne, stacked as p } from "../components/backoffice/detail/backofficeDetailLayout.css.js";
14
+ import { BackofficeEntityDetailScaffold as m } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
15
+ import { useBackofficeEntityDetailNotFoundState as h } from "../components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js";
16
+ import { useBackofficeFormats as g } from "../i18n/useBackofficeFormats.js";
17
+ import { useRelayEnvironment as _ } from "../relay/useRelayEnvironment.js";
18
+ import { headerActionGroup as re, headerActions as ie } from "./backofficeEntityDetailPage.css.js";
19
+ import { extractMutationPayload as ae, isFormMutationAction as v, isMutationAction as oe, isRouteAction as se, resolveLabel as y } from "./BackofficeEntityDetailPage.helpers.js";
20
+ import { buildFieldItems as ce, renderBlocks as le } from "./BackofficeEntityDetailPage.view-helpers.js";
21
+ import { useContext as b, useState as x } from "react";
22
+ import { Fragment as ue, jsx as S, jsxs as C } from "react/jsx-runtime";
23
+ import { useTranslation as de } from "react-i18next";
24
+ import { Button as w } from "@plumile/ui/atomic/atoms/button/Button.js";
28
25
  import { commitMutation as fe, usePreloadedQuery as pe } from "react-relay";
29
26
  import { useToast as me } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
30
27
  import he from "@plumile/router/routing/RoutingContext.js";
31
- import { FormattedDate as O } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
32
- import { BACKOFFICE_DATE_TIME_OPTIONS as k } from "@plumile/backoffice-core/constants.js";
33
- import A from "@plumile/router/routing/Link.js";
34
- import { Tag as j } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
35
- import { BackofficeDetailSection as M } from "@plumile/ui/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js";
36
- import { BackofficePayloadViewer as N } from "@plumile/ui/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js";
37
- import { AuditTimeline as P } from "@plumile/ui/backoffice/organisms/audit_timeline/AuditTimeline.js";
38
- import { MetricCard as F } from "@plumile/ui/components/dashboard/metric_card/MetricCard.js";
39
- import { MetricTileGroup as I } from "@plumile/ui/components/dashboard/metric_tile_group/MetricTileGroup.js";
40
- import { LinkButton as L } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
41
- import { DataTable as ge } from "@plumile/ui/components/data-table/DataTable.js";
42
- import { BackofficeKeyValueList as _e } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
43
- import { BackofficeScopeStack as ve } from "@plumile/ui/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js";
44
- import { ChatCheckSvg as R } from "@plumile/ui/icons/ChatCheckSvg.js";
45
- import { KeyOffSvg as z } from "@plumile/ui/icons/KeyOffSvg.js";
46
- import { KeySvg as B } from "@plumile/ui/icons/KeySvg.js";
47
- import { LockOpenSvg as V } from "@plumile/ui/icons/LockOpenSvg.js";
48
- import { LockSvg as H } from "@plumile/ui/icons/LockSvg.js";
49
- import { RobotCheckSvg as U } from "@plumile/ui/icons/RobotCheckSvg.js";
50
- import { RobotXSvg as W } from "@plumile/ui/icons/RobotXSvg.js";
51
- import { RocketOffSvg as G } from "@plumile/ui/icons/RocketOffSvg.js";
52
- import { RocketSvg as K } from "@plumile/ui/icons/RocketSvg.js";
53
- import { SettingsCheckSvg as q } from "@plumile/ui/icons/SettingsCheckSvg.js";
54
- import { SettingsXSvg as J } from "@plumile/ui/icons/SettingsXSvg.js";
55
- import { ShieldLockSvg as Y } from "@plumile/ui/icons/ShieldLockSvg.js";
56
- import { ShieldOffSvg as X } from "@plumile/ui/icons/ShieldOffSvg.js";
57
- import { XBadgeSvg as Z } from "@plumile/ui/icons/XBadgeSvg.js";
28
+ import { FormattedDate as T } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
29
+ import { BACKOFFICE_DATE_TIME_OPTIONS as E } from "@plumile/backoffice-core/constants.js";
30
+ import D from "@plumile/router/routing/Link.js";
31
+ import { Tag as O } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
32
+ import { BackofficeDetailSection as k } from "@plumile/ui/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js";
33
+ import { BackofficePayloadViewer as ge } from "@plumile/ui/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js";
34
+ import { AuditTimeline as _e } from "@plumile/ui/backoffice/organisms/audit_timeline/AuditTimeline.js";
35
+ import { MetricCard as A } from "@plumile/ui/components/dashboard/metric_card/MetricCard.js";
36
+ import { MetricTileGroup as j } from "@plumile/ui/components/dashboard/metric_tile_group/MetricTileGroup.js";
37
+ import { LinkButton as M } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
38
+ import { DataTable as N } from "@plumile/ui/components/data-table/DataTable.js";
39
+ import { BackofficeKeyValueList as P } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
40
+ import { BackofficeScopeStack as F } from "@plumile/ui/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js";
41
+ import { ChatCheckSvg as I } from "@plumile/ui/icons/ChatCheckSvg.js";
42
+ import { KeyOffSvg as L } from "@plumile/ui/icons/KeyOffSvg.js";
43
+ import { KeySvg as R } from "@plumile/ui/icons/KeySvg.js";
44
+ import { LockOpenSvg as z } from "@plumile/ui/icons/LockOpenSvg.js";
45
+ import { LockSvg as B } from "@plumile/ui/icons/LockSvg.js";
46
+ import { RobotCheckSvg as V } from "@plumile/ui/icons/RobotCheckSvg.js";
47
+ import { RobotXSvg as H } from "@plumile/ui/icons/RobotXSvg.js";
48
+ import { RocketOffSvg as U } from "@plumile/ui/icons/RocketOffSvg.js";
49
+ import { RocketSvg as W } from "@plumile/ui/icons/RocketSvg.js";
50
+ import { SettingsCheckSvg as G } from "@plumile/ui/icons/SettingsCheckSvg.js";
51
+ import { SettingsXSvg as K } from "@plumile/ui/icons/SettingsXSvg.js";
52
+ import { ShieldLockSvg as q } from "@plumile/ui/icons/ShieldLockSvg.js";
53
+ import { ShieldOffSvg as J } from "@plumile/ui/icons/ShieldOffSvg.js";
54
+ import { XBadgeSvg as Y } from "@plumile/ui/icons/XBadgeSvg.js";
58
55
  //#region src/pages/BackofficeEntityDetailPage.tsx
59
- var ye = (e) => {
56
+ var ve = (e) => {
60
57
  switch (e) {
61
- case "shield-lock": return /* @__PURE__ */ w(Y, {
58
+ case "shield-lock": return /* @__PURE__ */ S(q, {
62
59
  width: 14,
63
60
  height: 14,
64
61
  "aria-hidden": "true"
65
62
  });
66
- case "shield-off": return /* @__PURE__ */ w(X, {
63
+ case "shield-off": return /* @__PURE__ */ S(J, {
67
64
  width: 14,
68
65
  height: 14,
69
66
  "aria-hidden": "true"
70
67
  });
71
- case "settings-check": return /* @__PURE__ */ w(q, {
68
+ case "settings-check": return /* @__PURE__ */ S(G, {
72
69
  width: 14,
73
70
  height: 14,
74
71
  "aria-hidden": "true"
75
72
  });
76
- case "settings-x": return /* @__PURE__ */ w(J, {
73
+ case "settings-x": return /* @__PURE__ */ S(K, {
77
74
  width: 14,
78
75
  height: 14,
79
76
  "aria-hidden": "true"
80
77
  });
81
- case "x-badge": return /* @__PURE__ */ w(Z, {
78
+ case "x-badge": return /* @__PURE__ */ S(Y, {
82
79
  width: 14,
83
80
  height: 14,
84
81
  "aria-hidden": "true"
85
82
  });
86
- case "chat-check": return /* @__PURE__ */ w(R, {
83
+ case "chat-check": return /* @__PURE__ */ S(I, {
87
84
  width: 14,
88
85
  height: 14,
89
86
  "aria-hidden": "true"
90
87
  });
91
- case "key": return /* @__PURE__ */ w(B, {
88
+ case "key": return /* @__PURE__ */ S(R, {
92
89
  width: 14,
93
90
  height: 14,
94
91
  "aria-hidden": "true"
95
92
  });
96
- case "key-off": return /* @__PURE__ */ w(z, {
93
+ case "key-off": return /* @__PURE__ */ S(L, {
97
94
  width: 14,
98
95
  height: 14,
99
96
  "aria-hidden": "true"
100
97
  });
101
- case "lock": return /* @__PURE__ */ w(H, {
98
+ case "lock": return /* @__PURE__ */ S(B, {
102
99
  width: 14,
103
100
  height: 14,
104
101
  "aria-hidden": "true"
105
102
  });
106
- case "lock-open": return /* @__PURE__ */ w(V, {
103
+ case "lock-open": return /* @__PURE__ */ S(z, {
107
104
  width: 14,
108
105
  height: 14,
109
106
  "aria-hidden": "true"
110
107
  });
111
- case "robot-check": return /* @__PURE__ */ w(U, {
108
+ case "robot-check": return /* @__PURE__ */ S(V, {
112
109
  width: 14,
113
110
  height: 14,
114
111
  "aria-hidden": "true"
115
112
  });
116
- case "robot-x": return /* @__PURE__ */ w(W, {
113
+ case "robot-x": return /* @__PURE__ */ S(H, {
117
114
  width: 14,
118
115
  height: 14,
119
116
  "aria-hidden": "true"
120
117
  });
121
- case "rocket": return /* @__PURE__ */ w(K, {
118
+ case "rocket": return /* @__PURE__ */ S(W, {
122
119
  width: 14,
123
120
  height: 14,
124
121
  "aria-hidden": "true"
125
122
  });
126
- case "rocket-off": return /* @__PURE__ */ w(G, {
123
+ case "rocket-off": return /* @__PURE__ */ S(U, {
127
124
  width: 14,
128
125
  height: 14,
129
126
  "aria-hidden": "true"
130
127
  });
131
128
  default: throw Error(`Unsupported flag icon: ${String(e)}`);
132
129
  }
133
- }, be = (e) => {
130
+ }, ye = (e) => {
134
131
  if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
135
132
  let t = e.fields?.map((e) => e.presentation?.group) ?? [];
136
133
  return t.length > 0 && t.every((e) => e === "scope" || e === "status") || e.placement === "side" || e.placement === "secondary" ? "secondary" : "primary";
137
- }, Q = ({ config: g, prepared: x }) => {
138
- let { t: S } = E(), { t: R } = e(), { formatNumber: z, formatCurrency: B, formatCurrencyTitle: V, formatPercent: H } = m(), { entities: U } = n(), W = ue(he), G = h(), K = me(), [q, J] = C({}), [Y, X] = C(null), Z = (e, t) => {
139
- J((n) => n[e] === t ? n : {
134
+ }, X = ({ config: I, prepared: L }) => {
135
+ let { t: R } = de(), { t: z } = e(), { formatNumber: B, formatCurrency: V, formatCurrencyTitle: H, formatPercent: U } = g(), { entities: W } = n(), G = b(he), K = _(), q = me(), [J, Y] = x({}), [X, Z] = x(null), Q = (e, t) => {
136
+ Y((n) => n[e] === t ? n : {
140
137
  ...n,
141
138
  [e]: t
142
139
  });
143
- }, { page: Q } = g, $ = p({ listHref: g.routes.list }), xe = pe(Q.query, x.pageQuery), Se = Q.resolveNode(xe, {
144
- id: x.id,
145
- detailId: x.detailId
140
+ }, { page: $ } = I, be = h({ listHref: I.routes.list }), xe = pe($.query, L.pageQuery), Se = $.resolveNode(xe, {
141
+ id: L.id,
142
+ detailId: L.detailId
146
143
  });
147
- return /* @__PURE__ */ w(f, {
148
- node: r(Q.fragment, Se),
149
- notFound: $,
144
+ return /* @__PURE__ */ S(m, {
145
+ node: r($.fragment, Se),
146
+ notFound: be,
150
147
  render: (e) => {
151
- let n = Q.toView(e), r = (e, t) => {
152
- let n = U[e];
148
+ let n = $.toView(e), r = (e, t) => {
149
+ let n = W[e];
153
150
  return n == null ? null : n.routes.detail(t);
154
- }, f = Q.actions ?? [], p = [];
155
- if (f.length > 0) {
156
- let e = f.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
157
- e.length > 0 && (p = e.map((e) => {
158
- let r = v(e.label, S), o = e.ariaLabel == null ? r : v(e.ariaLabel, S), s = e.variant ?? "secondary", c = e.size ?? "small", l = q[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
159
- return le(e) ? /* @__PURE__ */ w(L, {
151
+ }, m = $.actions ?? [], h = [];
152
+ if (m.length > 0) {
153
+ let e = m.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
154
+ e.length > 0 && (h = e.map((e) => {
155
+ let r = y(e.label, R), o = e.ariaLabel == null ? r : y(e.ariaLabel, R), s = e.variant ?? "secondary", c = e.size ?? "small", l = J[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
156
+ return se(e) ? /* @__PURE__ */ S(M, {
160
157
  to: e.to(n),
161
158
  variant: s,
162
159
  size: c,
@@ -164,18 +161,18 @@ var ye = (e) => {
164
161
  "aria-label": o,
165
162
  preloadOnHover: "code-and-data",
166
163
  children: r
167
- }, e.id) : _(e) ? /* @__PURE__ */ w(D, {
164
+ }, e.id) : v(e) ? /* @__PURE__ */ S(w, {
168
165
  type: "button",
169
166
  variant: s,
170
167
  size: c,
171
168
  isLoading: !1,
172
169
  disabled: u,
173
170
  onClick: () => {
174
- X(e.id);
171
+ Z(e.id);
175
172
  },
176
173
  "aria-label": o,
177
174
  children: r
178
- }, e.id) : ce(e) ? /* @__PURE__ */ w(D, {
175
+ }, e.id) : oe(e) ? /* @__PURE__ */ S(w, {
179
176
  type: "button",
180
177
  variant: s,
181
178
  size: c,
@@ -184,47 +181,47 @@ var ye = (e) => {
184
181
  onClick: () => {
185
182
  if (l) return;
186
183
  let r = e.getVariables(n);
187
- Z(e.id, !0), fe(G, {
184
+ Q(e.id, !0), fe(K, {
188
185
  mutation: e.mutation,
189
186
  variables: r,
190
187
  updater: (t) => {
191
188
  e.updater?.(t, n);
192
189
  },
193
190
  onCompleted: (r) => {
194
- Z(e.id, !1);
195
- let o = se(r);
191
+ Q(e.id, !1);
192
+ let o = ae(r);
196
193
  if (o != null) {
197
- let r = R("actions.form.errors.invalidPayload");
198
- e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (r = v(e.toasts.error.title, S)) : r = v(e.toasts.error.message, S);
194
+ let r = z("actions.form.errors.invalidPayload");
195
+ e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (r = y(e.toasts.error.title, R)) : r = y(e.toasts.error.message, R);
199
196
  let a = t(o, {
200
197
  defaultErrorMessage: r,
201
198
  mapReason: (t) => {
202
199
  let r = e.mapErrorReason?.(t, n);
203
- return r == null ? null : typeof r == "function" ? v(r, S) : String(r);
200
+ return r == null ? null : typeof r == "function" ? y(r, R) : String(r);
204
201
  }
205
202
  });
206
203
  if (!a.ok) {
207
204
  let t = Error(a.message);
208
205
  if (e.onError?.(t, n), e.toasts?.error != null) {
209
- let t = i(e.toasts.error, S);
210
- K.error(t.title, t.message);
206
+ let t = i(e.toasts.error, R);
207
+ q.error(t.title, t.message);
211
208
  }
212
209
  return;
213
210
  }
214
211
  }
215
212
  if (e.onCompleted?.(r, n), e.toasts?.success != null) {
216
- let t = i(e.toasts.success, S), o = a({
213
+ let t = i(e.toasts.success, R), o = a({
217
214
  toast: e.toasts.success,
218
215
  response: r,
219
216
  node: n,
220
- tApp: S,
221
- entities: U,
222
- defaultLabel: R("actions.view"),
217
+ tApp: R,
218
+ entities: W,
219
+ defaultLabel: z("actions.view"),
223
220
  navigateTo: (e) => {
224
- W?.history.push({ pathname: e });
221
+ G?.history.push({ pathname: e });
225
222
  }
226
223
  });
227
- K.push({
224
+ q.push({
228
225
  kind: "info",
229
226
  title: t.title,
230
227
  message: t.message,
@@ -233,9 +230,9 @@ var ye = (e) => {
233
230
  }
234
231
  },
235
232
  onError: (t) => {
236
- if (Z(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
237
- let t = i(e.toasts.error, S);
238
- K.error(t.title, t.message);
233
+ if (Q(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
234
+ let t = i(e.toasts.error, R);
235
+ q.error(t.title, t.message);
239
236
  }
240
237
  }
241
238
  });
@@ -245,46 +242,46 @@ var ye = (e) => {
245
242
  }, e.id) : null;
246
243
  }));
247
244
  }
248
- let m = f.find((e) => e.id === Y), { content: h } = Q, g = [], x = [];
249
- return h.forEach((e, t) => {
250
- let i = be(e) === "secondary" ? x : g;
245
+ let g = m.find((e) => e.id === X), { content: _ } = $, b = [], x = [];
246
+ return _.forEach((e, t) => {
247
+ let i = ye(e) === "secondary" ? x : b;
251
248
  if (e.kind === "fieldSet") {
252
- let a = v(e.title, S), o = e.description == null ? void 0 : v(e.description, S), { items: s, customNodes: d } = y(e.fields, n, {
253
- tApp: S,
254
- t: R,
249
+ let a = y(e.title, R), o = e.description == null ? void 0 : y(e.description, R), { items: s, customNodes: d } = ce(e.fields, n, {
250
+ tApp: R,
251
+ t: z,
255
252
  resolveEntityHref: r,
256
- formatNumber: z,
257
- formatCurrency: B,
258
- formatCurrencyTitle: V,
259
- formatPercent: H,
260
- renderTag: (e, t) => /* @__PURE__ */ w(j, {
253
+ formatNumber: B,
254
+ formatCurrency: V,
255
+ formatCurrencyTitle: H,
256
+ formatPercent: U,
257
+ renderTag: (e, t) => /* @__PURE__ */ S(O, {
261
258
  tone: e,
262
259
  children: t
263
260
  }),
264
- renderBadgeRow: (e) => /* @__PURE__ */ w(c, { items: e }),
265
- renderDate: (e, t) => /* @__PURE__ */ w(O, {
261
+ renderBadgeRow: (e) => /* @__PURE__ */ S(c, { items: e }),
262
+ renderDate: (e, t) => /* @__PURE__ */ S(T, {
266
263
  value: e,
267
- options: k,
264
+ options: E,
268
265
  fallback: t
269
266
  }),
270
- renderFlagTag: (e) => /* @__PURE__ */ w(l, {
267
+ renderFlagTag: (e) => /* @__PURE__ */ S(l, {
271
268
  tone: e.tone,
272
- icon: e.iconName == null ? void 0 : ye(e.iconName),
269
+ icon: e.iconName == null ? void 0 : ve(e.iconName),
273
270
  label: e.label
274
271
  }),
275
- renderLink: (e, t) => /* @__PURE__ */ w(A, {
272
+ renderLink: (e, t) => /* @__PURE__ */ S(D, {
276
273
  to: e,
277
274
  preloadOnHover: "code-and-data",
278
275
  children: t
279
276
  }),
280
- renderTaggedValue: (e, t) => /* @__PURE__ */ w(u, {
277
+ renderTaggedValue: (e, t) => /* @__PURE__ */ S(u, {
281
278
  tag: e,
282
279
  value: t
283
280
  }),
284
- wrapCustomNode: (e, t) => /* @__PURE__ */ w("div", { children: t }, e)
281
+ wrapCustomNode: (e, t) => /* @__PURE__ */ S("div", { children: t }, e)
285
282
  });
286
283
  if (!(s.length > 0 || d.length > 0)) return;
287
- i.push(/* @__PURE__ */ w(M, {
284
+ i.push(/* @__PURE__ */ S(k, {
288
285
  title: a,
289
286
  description: o,
290
287
  items: s.length > 0 ? s : void 0,
@@ -292,74 +289,74 @@ var ye = (e) => {
292
289
  }, `${a}-${t}`));
293
290
  return;
294
291
  }
295
- let a = b([e], n, {
296
- tApp: S,
297
- t: R,
292
+ let a = le([e], n, {
293
+ tApp: R,
294
+ t: z,
298
295
  resolveEntityHref: r,
299
296
  keyPrefix: String(t),
300
- renderLink: (e, t) => /* @__PURE__ */ w(A, {
297
+ renderLink: (e, t) => /* @__PURE__ */ S(D, {
301
298
  to: e,
302
299
  preloadOnHover: "code-and-data",
303
300
  children: t
304
301
  }),
305
- renderDate: (e, t) => /* @__PURE__ */ w(O, {
302
+ renderDate: (e, t) => /* @__PURE__ */ S(T, {
306
303
  value: e,
307
- options: k,
304
+ options: E,
308
305
  fallback: t
309
306
  }),
310
- renderTag: (e, t) => /* @__PURE__ */ w(j, {
307
+ renderTag: (e, t) => /* @__PURE__ */ S(O, {
311
308
  tone: e,
312
309
  children: t
313
310
  }),
314
- renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ w(M, {
311
+ renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ S(k, {
315
312
  title: t,
316
313
  description: n,
317
- children: i.length > 0 && /* @__PURE__ */ w(I, {
314
+ children: i.length > 0 && /* @__PURE__ */ S(j, {
318
315
  density: r ?? "comfortable",
319
316
  minColumn: "180",
320
- children: i.map((e) => /* @__PURE__ */ w(F, {
317
+ children: i.map((e) => /* @__PURE__ */ S(A, {
321
318
  label: e.label,
322
319
  value: e.value,
323
320
  hint: e.hint,
324
321
  tone: e.tone ?? "neutral",
325
322
  density: r ?? "comfortable",
326
323
  copyValue: e.copyValue,
327
- copyLabel: R("common.actions.copy"),
328
- copiedLabel: R("common.actions.copied")
324
+ copyLabel: z("common.actions.copy"),
325
+ copiedLabel: z("common.actions.copied")
329
326
  }, e.id))
330
327
  })
331
328
  }, e),
332
- renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ w(d, {
329
+ renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ S(d, {
333
330
  title: t,
334
331
  description: n,
335
332
  events: r
336
333
  }, e),
337
- renderAuditTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ w(M, {
334
+ renderAuditTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ S(k, {
338
335
  title: t,
339
336
  description: n,
340
- children: /* @__PURE__ */ w(P, { events: r })
337
+ children: /* @__PURE__ */ S(_e, { events: r })
341
338
  }, e),
342
- renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ w(ee, {
339
+ renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ S(f, {
343
340
  title: t,
344
341
  items: n
345
342
  }, e),
346
- renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ w(ve, {
343
+ renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ S(F, {
347
344
  title: t,
348
345
  items: n
349
346
  }, e),
350
- renderCustomSection: (e, t, n) => /* @__PURE__ */ w(M, {
347
+ renderCustomSection: (e, t, n) => /* @__PURE__ */ S(k, {
351
348
  title: t,
352
349
  children: n
353
350
  }, e),
354
- wrapCustomNode: (e, t) => /* @__PURE__ */ w("div", { children: t }, e),
351
+ wrapCustomNode: (e, t) => /* @__PURE__ */ S("div", { children: t }, e),
355
352
  resolveTableColumns: (e) => s(e, {
356
- tApp: S,
357
- t: R
353
+ tApp: R,
354
+ t: z
358
355
  }),
359
- renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ w(M, {
356
+ renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ S(k, {
360
357
  title: t,
361
358
  description: n,
362
- children: /* @__PURE__ */ w(ge, {
359
+ children: /* @__PURE__ */ S(N, {
363
360
  columns: r,
364
361
  rows: i,
365
362
  getRowId: (e, t) => {
@@ -371,67 +368,59 @@ var ye = (e) => {
371
368
  }
372
369
  })
373
370
  }, e),
374
- renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ w(M, {
371
+ renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ S(k, {
375
372
  title: t,
376
373
  description: n,
377
- children: /* @__PURE__ */ w(N, {
374
+ children: /* @__PURE__ */ S(ge, {
378
375
  content: r,
379
376
  format: i,
380
- emptyState: R("common.notAvailable")
377
+ emptyState: z("common.notAvailable")
381
378
  })
382
379
  }, e),
383
- renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ w(M, {
380
+ renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ S(k, {
384
381
  title: t,
385
382
  description: n,
386
- children: /* @__PURE__ */ w(_e, { items: r })
383
+ children: /* @__PURE__ */ S(P, { items: r })
387
384
  }, e)
388
385
  })[0];
389
386
  a != null && i.push(a);
390
- }), /* @__PURE__ */ T(de, { children: [
391
- p.length > 0 ? /* @__PURE__ */ w("div", {
392
- className: oe,
393
- children: /* @__PURE__ */ w("div", {
394
- className: ae,
395
- children: p
387
+ }), /* @__PURE__ */ C(ue, { children: [
388
+ h.length > 0 ? /* @__PURE__ */ S("div", {
389
+ className: ie,
390
+ children: /* @__PURE__ */ S("div", {
391
+ className: re,
392
+ children: h
396
393
  })
397
394
  }) : null,
398
- x.length > 0 ? /* @__PURE__ */ T("div", {
399
- className: te,
400
- children: [/* @__PURE__ */ w("div", {
395
+ x.length > 0 ? /* @__PURE__ */ C("div", {
396
+ className: ee,
397
+ children: [/* @__PURE__ */ S("div", {
398
+ className: te,
399
+ children: b
400
+ }), /* @__PURE__ */ S("aside", {
401
401
  className: ne,
402
- children: g
403
- }), /* @__PURE__ */ w("aside", {
404
- className: re,
405
402
  children: x
406
403
  })]
407
- }) : /* @__PURE__ */ w("div", {
408
- className: ie,
409
- children: g
404
+ }) : /* @__PURE__ */ S("div", {
405
+ className: p,
406
+ children: b
410
407
  }),
411
- m != null && _(m) && /* @__PURE__ */ w(o, {
408
+ g != null && v(g) && /* @__PURE__ */ S(o, {
412
409
  isOpen: !0,
413
- action: m,
410
+ action: g,
414
411
  node: n,
415
412
  onClose: () => {
416
- X(null);
413
+ Z(null);
417
414
  }
418
415
  })
419
416
  ] });
420
417
  }
421
418
  });
422
- }, $ = ({ config: e, prepared: t }) => {
423
- let { layoutView: n } = x(), r = g({
424
- mainPage: e.pages.mainPage,
425
- subPages: e.pages.subPages,
426
- activePagePath: t.pagePath,
427
- node: n
428
- });
429
- return !r.hasVisiblePages || r.activePage == null ? /* @__PURE__ */ w(S, { to: e.routes.list }) : r.activePage.id === t.pageId ? /* @__PURE__ */ w(Q, {
430
- config: t.pageConfig,
431
- prepared: t
432
- }) : /* @__PURE__ */ w(S, { to: e.routes.detailPage(t.id, r.activePage.id) });
433
- };
419
+ }, Z = ({ prepared: e }) => /* @__PURE__ */ S(X, {
420
+ config: e.pageConfig,
421
+ prepared: e
422
+ });
434
423
  //#endregion
435
- export { $ as BackofficeEntityDetailPage, $ as default };
424
+ export { Z as BackofficeEntityDetailPage, Z as default };
436
425
 
437
426
  //# sourceMappingURL=BackofficeEntityDetailPage.js.map