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