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