@plumile/backoffice-react 0.1.182 → 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.
- package/lib/esm/auth/authRefreshNotice.css.js +0 -1
- package/lib/esm/auth/login/loginPage.css.js +1 -0
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +1 -0
- package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js +0 -1
- package/lib/esm/pages/BackofficeDashboardShellPage.js +29 -0
- package/lib/esm/pages/BackofficeDashboardShellPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityDetailPage.js +164 -175
- package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPageConfigPage.js +35 -0
- package/lib/esm/pages/BackofficeEntityDetailPageConfigPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityDetailShellPage.js +99 -0
- package/lib/esm/pages/BackofficeEntityDetailShellPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityListShellPage.js +32 -0
- package/lib/esm/pages/BackofficeEntityListShellPage.js.map +1 -0
- package/lib/esm/pages/BackofficeToolShellPage.js +32 -0
- package/lib/esm/pages/BackofficeToolShellPage.js.map +1 -0
- package/lib/esm/router/createBackofficeRoutes.js +186 -72
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
- package/lib/types/pages/BackofficeDashboardShellPage.d.ts +9 -0
- package/lib/types/pages/BackofficeDashboardShellPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts +2 -3
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPageConfigPage.d.ts +10 -0
- package/lib/types/pages/BackofficeEntityDetailPageConfigPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts +10 -0
- package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityListShellPage.d.ts +10 -0
- package/lib/types/pages/BackofficeEntityListShellPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeToolShellPage.d.ts +10 -0
- package/lib/types/pages/BackofficeToolShellPage.d.ts.map +1 -0
- package/lib/types/router/createBackofficeRoutes.d.ts +11 -3
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -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
|
|
13
|
-
import { layout as
|
|
14
|
-
import { BackofficeEntityDetailScaffold as
|
|
15
|
-
import { useBackofficeEntityDetailNotFoundState as
|
|
16
|
-
import { useBackofficeFormats as
|
|
17
|
-
import { useRelayEnvironment as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
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
|
|
32
|
-
import { BACKOFFICE_DATE_TIME_OPTIONS as
|
|
33
|
-
import
|
|
34
|
-
import { Tag as
|
|
35
|
-
import { BackofficeDetailSection as
|
|
36
|
-
import { BackofficePayloadViewer as
|
|
37
|
-
import { AuditTimeline as
|
|
38
|
-
import { MetricCard as
|
|
39
|
-
import { MetricTileGroup as
|
|
40
|
-
import { LinkButton as
|
|
41
|
-
import { DataTable as
|
|
42
|
-
import { BackofficeKeyValueList as
|
|
43
|
-
import { BackofficeScopeStack as
|
|
44
|
-
import { ChatCheckSvg as
|
|
45
|
-
import { KeyOffSvg as
|
|
46
|
-
import { KeySvg as
|
|
47
|
-
import { LockOpenSvg as
|
|
48
|
-
import { LockSvg as
|
|
49
|
-
import { RobotCheckSvg as
|
|
50
|
-
import { RobotXSvg as
|
|
51
|
-
import { RocketOffSvg as
|
|
52
|
-
import { RocketSvg as
|
|
53
|
-
import { SettingsCheckSvg as
|
|
54
|
-
import { SettingsXSvg as
|
|
55
|
-
import { ShieldLockSvg as
|
|
56
|
-
import { ShieldOffSvg as
|
|
57
|
-
import { XBadgeSvg as
|
|
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
|
|
56
|
+
var ve = (e) => {
|
|
60
57
|
switch (e) {
|
|
61
|
-
case "shield-lock": return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
},
|
|
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
|
-
},
|
|
138
|
-
let { t:
|
|
139
|
-
|
|
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:
|
|
144
|
-
id:
|
|
145
|
-
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__ */
|
|
148
|
-
node: r(
|
|
149
|
-
notFound:
|
|
144
|
+
return /* @__PURE__ */ S(m, {
|
|
145
|
+
node: r($.fragment, Se),
|
|
146
|
+
notFound: be,
|
|
150
147
|
render: (e) => {
|
|
151
|
-
let n =
|
|
152
|
-
let n =
|
|
148
|
+
let n = $.toView(e), r = (e, t) => {
|
|
149
|
+
let n = W[e];
|
|
153
150
|
return n == null ? null : n.routes.detail(t);
|
|
154
|
-
},
|
|
155
|
-
if (
|
|
156
|
-
let e =
|
|
157
|
-
e.length > 0 && (
|
|
158
|
-
let r =
|
|
159
|
-
return
|
|
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) :
|
|
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
|
-
|
|
171
|
+
Z(e.id);
|
|
175
172
|
},
|
|
176
173
|
"aria-label": o,
|
|
177
174
|
children: r
|
|
178
|
-
}, e.id) :
|
|
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
|
-
|
|
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
|
-
|
|
195
|
-
let o =
|
|
191
|
+
Q(e.id, !1);
|
|
192
|
+
let o = ae(r);
|
|
196
193
|
if (o != null) {
|
|
197
|
-
let r =
|
|
198
|
-
e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (r =
|
|
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" ?
|
|
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,
|
|
210
|
-
|
|
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,
|
|
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:
|
|
221
|
-
entities:
|
|
222
|
-
defaultLabel:
|
|
217
|
+
tApp: R,
|
|
218
|
+
entities: W,
|
|
219
|
+
defaultLabel: z("actions.view"),
|
|
223
220
|
navigateTo: (e) => {
|
|
224
|
-
|
|
221
|
+
G?.history.push({ pathname: e });
|
|
225
222
|
}
|
|
226
223
|
});
|
|
227
|
-
|
|
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 (
|
|
237
|
-
let t = i(e.toasts.error,
|
|
238
|
-
|
|
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
|
|
249
|
-
return
|
|
250
|
-
let i =
|
|
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 =
|
|
253
|
-
tApp:
|
|
254
|
-
t:
|
|
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:
|
|
257
|
-
formatCurrency:
|
|
258
|
-
formatCurrencyTitle:
|
|
259
|
-
formatPercent:
|
|
260
|
-
renderTag: (e, t) => /* @__PURE__ */
|
|
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__ */
|
|
265
|
-
renderDate: (e, t) => /* @__PURE__ */
|
|
261
|
+
renderBadgeRow: (e) => /* @__PURE__ */ S(c, { items: e }),
|
|
262
|
+
renderDate: (e, t) => /* @__PURE__ */ S(T, {
|
|
266
263
|
value: e,
|
|
267
|
-
options:
|
|
264
|
+
options: E,
|
|
268
265
|
fallback: t
|
|
269
266
|
}),
|
|
270
|
-
renderFlagTag: (e) => /* @__PURE__ */
|
|
267
|
+
renderFlagTag: (e) => /* @__PURE__ */ S(l, {
|
|
271
268
|
tone: e.tone,
|
|
272
|
-
icon: e.iconName == null ? void 0 :
|
|
269
|
+
icon: e.iconName == null ? void 0 : ve(e.iconName),
|
|
273
270
|
label: e.label
|
|
274
271
|
}),
|
|
275
|
-
renderLink: (e, t) => /* @__PURE__ */
|
|
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__ */
|
|
277
|
+
renderTaggedValue: (e, t) => /* @__PURE__ */ S(u, {
|
|
281
278
|
tag: e,
|
|
282
279
|
value: t
|
|
283
280
|
}),
|
|
284
|
-
wrapCustomNode: (e, t) => /* @__PURE__ */
|
|
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__ */
|
|
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 =
|
|
296
|
-
tApp:
|
|
297
|
-
t:
|
|
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__ */
|
|
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__ */
|
|
302
|
+
renderDate: (e, t) => /* @__PURE__ */ S(T, {
|
|
306
303
|
value: e,
|
|
307
|
-
options:
|
|
304
|
+
options: E,
|
|
308
305
|
fallback: t
|
|
309
306
|
}),
|
|
310
|
-
renderTag: (e, t) => /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
314
|
+
children: i.length > 0 && /* @__PURE__ */ S(j, {
|
|
318
315
|
density: r ?? "comfortable",
|
|
319
316
|
minColumn: "180",
|
|
320
|
-
children: i.map((e) => /* @__PURE__ */
|
|
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:
|
|
328
|
-
copiedLabel:
|
|
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__ */
|
|
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__ */
|
|
334
|
+
renderAuditTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ S(k, {
|
|
338
335
|
title: t,
|
|
339
336
|
description: n,
|
|
340
|
-
children: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ S(_e, { events: r })
|
|
341
338
|
}, e),
|
|
342
|
-
renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
347
|
+
renderCustomSection: (e, t, n) => /* @__PURE__ */ S(k, {
|
|
351
348
|
title: t,
|
|
352
349
|
children: n
|
|
353
350
|
}, e),
|
|
354
|
-
wrapCustomNode: (e, t) => /* @__PURE__ */
|
|
351
|
+
wrapCustomNode: (e, t) => /* @__PURE__ */ S("div", { children: t }, e),
|
|
355
352
|
resolveTableColumns: (e) => s(e, {
|
|
356
|
-
tApp:
|
|
357
|
-
t:
|
|
353
|
+
tApp: R,
|
|
354
|
+
t: z
|
|
358
355
|
}),
|
|
359
|
-
renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
374
|
+
children: /* @__PURE__ */ S(ge, {
|
|
378
375
|
content: r,
|
|
379
376
|
format: i,
|
|
380
|
-
emptyState:
|
|
377
|
+
emptyState: z("common.notAvailable")
|
|
381
378
|
})
|
|
382
379
|
}, e),
|
|
383
|
-
renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */
|
|
380
|
+
renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ S(k, {
|
|
384
381
|
title: t,
|
|
385
382
|
description: n,
|
|
386
|
-
children: /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ S(P, { items: r })
|
|
387
384
|
}, e)
|
|
388
385
|
})[0];
|
|
389
386
|
a != null && i.push(a);
|
|
390
|
-
}), /* @__PURE__ */
|
|
391
|
-
|
|
392
|
-
className:
|
|
393
|
-
children: /* @__PURE__ */
|
|
394
|
-
className:
|
|
395
|
-
children:
|
|
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__ */
|
|
399
|
-
className:
|
|
400
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
408
|
-
className:
|
|
409
|
-
children:
|
|
404
|
+
}) : /* @__PURE__ */ S("div", {
|
|
405
|
+
className: p,
|
|
406
|
+
children: b
|
|
410
407
|
}),
|
|
411
|
-
|
|
408
|
+
g != null && v(g) && /* @__PURE__ */ S(o, {
|
|
412
409
|
isOpen: !0,
|
|
413
|
-
action:
|
|
410
|
+
action: g,
|
|
414
411
|
node: n,
|
|
415
412
|
onClose: () => {
|
|
416
|
-
|
|
413
|
+
Z(null);
|
|
417
414
|
}
|
|
418
415
|
})
|
|
419
416
|
] });
|
|
420
417
|
}
|
|
421
418
|
});
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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 {
|
|
424
|
+
export { Z as BackofficeEntityDetailPage, Z as default };
|
|
436
425
|
|
|
437
426
|
//# sourceMappingURL=BackofficeEntityDetailPage.js.map
|