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