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