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