@plumile/backoffice-react 0.2.3 → 0.2.6
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 +14 -3
- package/lib/esm/auth/AuthRefreshNotice.js +21 -18
- package/lib/esm/auth/AuthRefreshNotice.js.map +1 -1
- package/lib/esm/auth/TotpQrCode.js +20 -12
- package/lib/esm/auth/TotpQrCode.js.map +1 -1
- package/lib/esm/auth/authRefreshNotice.css.js +2 -1
- package/lib/esm/auth/authRefreshNotice.css.js.map +1 -1
- package/lib/esm/auth/login/AuthPanel.js.map +1 -1
- package/lib/esm/auth/login/EmailCapturePanel.js +26 -28
- package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -1
- package/lib/esm/auth/login/LoginFlow.js +11 -11
- package/lib/esm/auth/login/LoginFlow.js.map +1 -1
- package/lib/esm/auth/login/MethodChooser.js +18 -16
- package/lib/esm/auth/login/MethodChooser.js.map +1 -1
- package/lib/esm/auth/login/MfaChallengeForm.js +47 -52
- package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -1
- package/lib/esm/auth/login/OidcButtons.js +3 -2
- package/lib/esm/auth/login/OidcButtons.js.map +1 -1
- package/lib/esm/auth/login/PasskeyLoginForm.js +13 -15
- 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 +1 -1
- package/lib/esm/auth/login/loginPage.css.js.map +1 -1
- package/lib/esm/auth/pages/AcceptInvitationScreen.js +80 -75
- package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +31 -31
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js +33 -29
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -1
- package/lib/esm/auth/pages/VerifyEmailScreen.js +42 -40
- package/lib/esm/auth/pages/VerifyEmailScreen.js.map +1 -1
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +202 -210
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js +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/billing/BackofficeBillingUsageChart.js +36 -30
- package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js.map +1 -1
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +1 -1
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js.map +1 -1
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +36 -33
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js +24 -20
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.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/BackofficeTokenUsageBreakdown.js +7 -8
- package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js +49 -45
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js.map +1 -1
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js +1 -1
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js.map +1 -1
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +1 -1
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -1
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js +15 -15
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js.map +1 -1
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +53 -65
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -1
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js +1 -1
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js +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 +6 -6
- package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js.map +1 -1
- package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js +1 -1
- package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.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/breadcrumb/BackofficeTopbarBreadcrumb.js +3 -3
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js +152 -172
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -1
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js +2 -5
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -1
- package/lib/esm/components/backoffice/layout/sidebarUtils.js +1 -1
- package/lib/esm/components/backoffice/layout/sidebarUtils.js.map +1 -1
- package/lib/esm/components/backoffice/links/BackofficeLinkContent.js +1 -1
- package/lib/esm/components/backoffice/links/backofficeLink.css.js +1 -1
- package/lib/esm/components/backoffice/links/backofficeLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +1 -1
- package/lib/esm/components/backoffice/list/RowFlagsCell.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 +1 -1
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +93 -82
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +1 -1
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js +1 -1
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js +6 -3
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +7 -7
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js +3 -2
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +314 -309
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js +2 -2
- 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 +5 -5
- package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js +1 -1
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js +12 -12
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +3 -2
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +15 -19
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js.map +1 -1
- package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js +17 -9
- package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js.map +1 -1
- package/lib/esm/hooks/useCopyToClipboard.js +1 -1
- package/lib/esm/hooks/useCopyToClipboard.js.map +1 -1
- package/lib/esm/i18n/locales/en/backofficeReact.js +21 -2
- package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
- package/lib/esm/i18n/locales/fr/backofficeReact.js +21 -2
- package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
- package/lib/esm/pages/BackofficeDashboardPage.js +42 -41
- package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
- package/lib/esm/pages/BackofficeDashboardWidgetContent.js +291 -255
- package/lib/esm/pages/BackofficeDashboardWidgetContent.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +47 -49
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPage.js +111 -105
- package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +213 -213
- package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListDataPage.js +101 -83
- package/lib/esm/pages/BackofficeEntityListDataPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.helpers.js +10 -4
- package/lib/esm/pages/BackofficeEntityListPage.helpers.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.js +55 -54
- package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListRouteContext.js.map +1 -1
- package/lib/esm/pages/BackofficeHubPage.js +1 -1
- package/lib/esm/pages/BackofficeHubPage.js.map +1 -1
- package/lib/esm/pages/BackofficeLayoutPage.js +64 -56
- package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
- package/lib/esm/pages/backofficeDashboardPage.css.js +1 -1
- package/lib/esm/pages/backofficeDashboardPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityDetailPage.css.js +1 -1
- package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityListPage.css.js +1 -1
- package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -1
- package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +1 -1
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js +11 -11
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js.map +1 -1
- package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
- package/lib/esm/provider/BackofficeProvider.js +41 -39
- package/lib/esm/provider/BackofficeProvider.js.map +1 -1
- package/lib/esm/router/createBackofficeRoutes.js +23 -23
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
- package/lib/esm/storybook/backofficeDashboardPageStory.css.js +6 -0
- package/lib/esm/storybook/backofficeDashboardPageStory.css.js.map +1 -0
- package/lib/esm/storybook/relay/RelayStory.css.js +1 -1
- package/lib/esm/storybook/relay/RelayStory.css.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/types/auth/AuthRefreshNotice.d.ts +5 -1
- package/lib/types/auth/AuthRefreshNotice.d.ts.map +1 -1
- package/lib/types/auth/TotpQrCode.d.ts +2 -1
- package/lib/types/auth/TotpQrCode.d.ts.map +1 -1
- package/lib/types/auth/authRefreshNotice.css.d.ts.map +1 -1
- package/lib/types/auth/login/AuthPanel.d.ts.map +1 -1
- package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
- package/lib/types/auth/login/LoginFlow.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/OidcButtons.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 +3 -3
- 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/billing/BackofficeBillingUsageChart.d.ts +2 -1
- package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts.map +1 -1
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +2 -2
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeEntitySummaryHeader.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeTokenUsageBreakdown.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts.map +1 -1
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts +1 -1
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts.map +1 -1
- 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/deferredFilterSearchInput.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +0 -1
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
- 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/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 +1 -1
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -1
- package/lib/types/components/backoffice/list/RowFlagsCell.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/overview/backofficeOverviewLayout.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +3 -3
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.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/scaffolds/BackofficeEntityDetailNotFound.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +2 -2
- 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/shared/backofficeFilterableCell.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.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/useBackofficeInfiniteScrollSentinel.d.ts +1 -2
- package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +44 -2
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardWidgetContent.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListDataPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +9 -9
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListRouteContext.d.ts +2 -2
- package/lib/types/pages/BackofficeEntityListRouteContext.d.ts.map +1 -1
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/backofficeEntityListPage.css.d.ts.map +1 -1
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts +1 -1
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.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 -0
- package/lib/types/provider/types.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts +0 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts +2 -0
- package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts.map +1 -0
- package/package.json +17 -17
- package/lib/esm/components/backoffice/technical/TechnicalIdentifierValue.js +0 -2
- package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts +0 -2
- package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { isEmptyText as e, resolveBadgeTone as t, resolveLabel as n, resolveValueLabel as r } from "./BackofficeEntityDetailPage.helpers.js";
|
|
2
|
+
import { Fragment as i, createElement as a } from "react";
|
|
3
|
+
import { TechnicalIdentifierValue as o, normalizeTechnicalIdentifier as s } from "@plumile/ui";
|
|
4
4
|
//#region src/pages/BackofficeEntityDetailPage.view-helpers.ts
|
|
5
5
|
var c = (e, t, n) => {
|
|
6
6
|
switch (e) {
|
|
@@ -90,86 +90,86 @@ var c = (e, t, n) => {
|
|
|
90
90
|
};
|
|
91
91
|
default: throw Error(`Unsupported flag variant: ${String(e)}`);
|
|
92
92
|
}
|
|
93
|
-
}, l = (
|
|
94
|
-
let { tApp:
|
|
95
|
-
if (
|
|
96
|
-
let
|
|
97
|
-
return n
|
|
93
|
+
}, l = (t, n) => {
|
|
94
|
+
let { tApp: i, t: a, resolveEntityHref: o, renderLink: s } = n, c = a("common.notAvailable");
|
|
95
|
+
if (t.type === "text") {
|
|
96
|
+
let n = r(t.value, i);
|
|
97
|
+
return e(n) ? c : n;
|
|
98
98
|
}
|
|
99
|
-
if (
|
|
100
|
-
let { id:
|
|
101
|
-
if (
|
|
102
|
-
let n =
|
|
103
|
-
if (
|
|
104
|
-
let l = o?.(
|
|
105
|
-
return l == null ?
|
|
99
|
+
if (t.type === "entityRef") {
|
|
100
|
+
let { id: e } = t;
|
|
101
|
+
if (e == null || e.trim() === "") return c;
|
|
102
|
+
let n = r(t.label, i), a = n != null && String(n).trim() !== "" ? n : null;
|
|
103
|
+
if (a == null) return c;
|
|
104
|
+
let l = o?.(t.entity, e) ?? null;
|
|
105
|
+
return l == null ? a : s(l, a);
|
|
106
106
|
}
|
|
107
|
-
let { href: l } =
|
|
107
|
+
let { href: l } = t;
|
|
108
108
|
if (l == null || l.trim() === "") return c;
|
|
109
|
-
let u =
|
|
110
|
-
return
|
|
111
|
-
}, u = (
|
|
112
|
-
let { tApp:
|
|
113
|
-
if (
|
|
114
|
-
if (
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let
|
|
109
|
+
let u = r(t.label, i);
|
|
110
|
+
return e(u) ? c : s(l, u);
|
|
111
|
+
}, u = (t, n, i) => {
|
|
112
|
+
let { tApp: a, t: o, resolveEntityHref: s, renderDate: c, renderLink: l } = i, u = o("common.notAvailable");
|
|
113
|
+
if (t.type === "dateTime") return c(t.value(n), u);
|
|
114
|
+
if (t.type === "entityRef") {
|
|
115
|
+
let e = t.id(n);
|
|
116
|
+
if (e == null || e.trim() === "") return u;
|
|
117
|
+
let i = r(t.value?.(n), a), o = i != null && String(i).trim() !== "" ? i : null;
|
|
118
118
|
if (o == null) return u;
|
|
119
|
-
let c = s?.(
|
|
119
|
+
let c = s?.(t.entity, e) ?? null;
|
|
120
120
|
return c == null ? o : l(c, o);
|
|
121
121
|
}
|
|
122
|
-
if (
|
|
123
|
-
let
|
|
124
|
-
return
|
|
122
|
+
if (t.type === "link") {
|
|
123
|
+
let i = t.href(n), o = r(t.value(n), a);
|
|
124
|
+
return i == null || i.trim() === "" || e(o) ? u : l(i, o);
|
|
125
125
|
}
|
|
126
|
-
let d =
|
|
127
|
-
return
|
|
128
|
-
}, d = (e,
|
|
126
|
+
let d = r(t.value(n), a);
|
|
127
|
+
return e(d) ? u : d;
|
|
128
|
+
}, d = (e, n, i, a) => {
|
|
129
129
|
if (e.type === "badgeRow") {
|
|
130
|
-
let
|
|
131
|
-
let t =
|
|
130
|
+
let t = e.items(n).map((e) => {
|
|
131
|
+
let t = r(e.label, i), n = t == null ? "" : String(t);
|
|
132
132
|
return {
|
|
133
133
|
...e,
|
|
134
|
-
label:
|
|
134
|
+
label: n
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
return
|
|
137
|
+
return t.length === 0 ? void 0 : a.renderBadgeRow(t);
|
|
138
138
|
}
|
|
139
|
-
let o =
|
|
139
|
+
let o = r(e.value(n), i), s = o == null ? "" : String(o);
|
|
140
140
|
if (s.trim() === "") return;
|
|
141
|
-
let c =
|
|
142
|
-
return
|
|
143
|
-
}, f = (
|
|
141
|
+
let c = t(e.tone, n);
|
|
142
|
+
return a.renderTag(c, s);
|
|
143
|
+
}, f = (i, s, u) => {
|
|
144
144
|
let { tApp: d, t: f, resolveEntityHref: p, formatNumber: m, formatCurrency: h, formatCurrencyTitle: g, formatPercent: _, renderTag: v, renderBadgeRow: y, renderDate: b, renderFlagTag: x, renderLink: S, renderTaggedValue: C, wrapCustomNode: w } = u, T = [], E = [], D = f("common.notAvailable");
|
|
145
|
-
return
|
|
146
|
-
let O = `${
|
|
147
|
-
switch (
|
|
145
|
+
return i.forEach((i, u) => {
|
|
146
|
+
let O = `${i.type}-${u}`;
|
|
147
|
+
switch (i.type) {
|
|
148
148
|
case "text": {
|
|
149
|
-
let e =
|
|
149
|
+
let e = r(i.value(s), d);
|
|
150
150
|
T.push({
|
|
151
151
|
id: O,
|
|
152
|
-
label: i
|
|
153
|
-
size:
|
|
152
|
+
label: n(i.label, d),
|
|
153
|
+
size: i.size,
|
|
154
154
|
value: e,
|
|
155
|
-
copyValue:
|
|
156
|
-
fullWidth:
|
|
155
|
+
copyValue: i.copyValue?.(s) ?? void 0,
|
|
156
|
+
fullWidth: i.fullWidth
|
|
157
157
|
});
|
|
158
158
|
break;
|
|
159
159
|
}
|
|
160
160
|
case "badge": {
|
|
161
|
-
let e =
|
|
161
|
+
let e = r(i.value(s), d), a = e == null ? "" : String(e), o = t(i.tone, s);
|
|
162
162
|
T.push({
|
|
163
163
|
id: O,
|
|
164
|
-
label: i
|
|
165
|
-
size:
|
|
166
|
-
value:
|
|
164
|
+
label: n(i.label, d),
|
|
165
|
+
size: i.size,
|
|
166
|
+
value: a.trim() === "" ? null : v(o, a)
|
|
167
167
|
});
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
case "badgeRow": {
|
|
171
|
-
let e =
|
|
172
|
-
let t =
|
|
171
|
+
let e = i.items(s).map((e) => {
|
|
172
|
+
let t = r(e.label, d), n = t == null ? "" : String(t);
|
|
173
173
|
return {
|
|
174
174
|
...e,
|
|
175
175
|
label: n
|
|
@@ -177,120 +177,120 @@ var c = (e, t, n) => {
|
|
|
177
177
|
});
|
|
178
178
|
T.push({
|
|
179
179
|
id: O,
|
|
180
|
-
label: i
|
|
181
|
-
size:
|
|
180
|
+
label: n(i.label, d),
|
|
181
|
+
size: i.size,
|
|
182
182
|
value: e.length > 0 ? y(e) : null,
|
|
183
|
-
fullWidth:
|
|
183
|
+
fullWidth: i.fullWidth
|
|
184
184
|
});
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
187
187
|
case "dateTime":
|
|
188
188
|
T.push({
|
|
189
189
|
id: O,
|
|
190
|
-
label: i
|
|
191
|
-
size:
|
|
192
|
-
value: b(
|
|
190
|
+
label: n(i.label, d),
|
|
191
|
+
size: i.size,
|
|
192
|
+
value: b(i.value(s), D)
|
|
193
193
|
});
|
|
194
194
|
break;
|
|
195
195
|
case "number": {
|
|
196
|
-
let e =
|
|
196
|
+
let e = i.value(s), t = null;
|
|
197
197
|
if (e != null) {
|
|
198
|
-
if (
|
|
199
|
-
let
|
|
200
|
-
|
|
201
|
-
} else
|
|
198
|
+
if (i.format === "currency") {
|
|
199
|
+
let n = h(e);
|
|
200
|
+
t = a("span", { title: g?.(e) ?? void 0 }, n);
|
|
201
|
+
} else t = i.format === "percent" ? _(e) : m(e);
|
|
202
202
|
}
|
|
203
203
|
T.push({
|
|
204
204
|
id: O,
|
|
205
|
-
label: i
|
|
206
|
-
size:
|
|
207
|
-
value:
|
|
205
|
+
label: n(i.label, d),
|
|
206
|
+
size: i.size,
|
|
207
|
+
value: t
|
|
208
208
|
});
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
211
|
case "flag": {
|
|
212
|
-
let e =
|
|
212
|
+
let e = i.value(s);
|
|
213
213
|
T.push({
|
|
214
214
|
id: O,
|
|
215
|
-
label: i
|
|
216
|
-
size:
|
|
217
|
-
value: e == null ? null : x(c(
|
|
215
|
+
label: n(i.label, d),
|
|
216
|
+
size: i.size,
|
|
217
|
+
value: e == null ? null : x(c(i.variant, e, f))
|
|
218
218
|
});
|
|
219
219
|
break;
|
|
220
220
|
}
|
|
221
221
|
case "entityRef": {
|
|
222
|
-
let e =
|
|
222
|
+
let e = i.id(s), t = null;
|
|
223
223
|
if (e != null && e.trim() !== "") {
|
|
224
|
-
let
|
|
225
|
-
|
|
224
|
+
let n = i.value?.(s), r = n != null && n.trim() !== "" ? n : null, a = p?.(i.entity, e) ?? null;
|
|
225
|
+
r != null && (t = a == null ? r : S(a, r));
|
|
226
226
|
}
|
|
227
227
|
T.push({
|
|
228
228
|
id: O,
|
|
229
|
-
label: i
|
|
230
|
-
size:
|
|
231
|
-
value:
|
|
229
|
+
label: n(i.label, d),
|
|
230
|
+
size: i.size,
|
|
231
|
+
value: t ?? D
|
|
232
232
|
});
|
|
233
233
|
break;
|
|
234
234
|
}
|
|
235
235
|
case "technicalIdentifier": {
|
|
236
|
-
let
|
|
236
|
+
let e = i.value(s);
|
|
237
237
|
T.push({
|
|
238
238
|
id: O,
|
|
239
|
-
label: i
|
|
240
|
-
size:
|
|
241
|
-
value:
|
|
242
|
-
value:
|
|
243
|
-
copyValue:
|
|
244
|
-
|
|
239
|
+
label: n(i.label, d),
|
|
240
|
+
size: i.size,
|
|
241
|
+
value: e == null ? null : a(o, {
|
|
242
|
+
value: e,
|
|
243
|
+
copyValue: i.copyValue?.(s) ?? void 0,
|
|
244
|
+
abbreviation: i.abbreviation,
|
|
245
245
|
copyLabel: f("common.actions.copy")
|
|
246
246
|
}),
|
|
247
|
-
copyValue:
|
|
248
|
-
fullWidth:
|
|
247
|
+
copyValue: i.copyValue?.(s) ?? void 0,
|
|
248
|
+
fullWidth: i.fullWidth
|
|
249
249
|
});
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
case "link": {
|
|
253
|
-
let
|
|
253
|
+
let t = i.href(s), r = i.value(s);
|
|
254
254
|
T.push({
|
|
255
255
|
id: O,
|
|
256
|
-
label: i
|
|
257
|
-
size:
|
|
258
|
-
value:
|
|
256
|
+
label: n(i.label, d),
|
|
257
|
+
size: i.size,
|
|
258
|
+
value: t != null && t.trim() !== "" && !e(r) ? S(t, r) : null
|
|
259
259
|
});
|
|
260
260
|
break;
|
|
261
261
|
}
|
|
262
262
|
case "taggedValue": {
|
|
263
|
-
let e =
|
|
263
|
+
let e = i.tag(s), t = l(i.value(s), {
|
|
264
264
|
tApp: d,
|
|
265
265
|
t: f,
|
|
266
266
|
resolveEntityHref: p,
|
|
267
267
|
renderLink: S
|
|
268
|
-
}),
|
|
268
|
+
}), a = e == null ? null : {
|
|
269
269
|
...e,
|
|
270
270
|
label: (() => {
|
|
271
|
-
let t =
|
|
271
|
+
let t = r(e.label, d);
|
|
272
272
|
return t == null ? "" : String(t);
|
|
273
273
|
})()
|
|
274
274
|
};
|
|
275
275
|
T.push({
|
|
276
276
|
id: O,
|
|
277
|
-
label: i
|
|
278
|
-
size:
|
|
279
|
-
value:
|
|
280
|
-
fullWidth:
|
|
277
|
+
label: n(i.label, d),
|
|
278
|
+
size: i.size,
|
|
279
|
+
value: a != null || t != null ? C(a, t) : null,
|
|
280
|
+
fullWidth: i.fullWidth
|
|
281
281
|
});
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
case "custom": {
|
|
285
|
-
let e =
|
|
285
|
+
let e = i.render(s);
|
|
286
286
|
if (e == null) break;
|
|
287
|
-
if (
|
|
287
|
+
if (i.label != null) {
|
|
288
288
|
T.push({
|
|
289
289
|
id: O,
|
|
290
|
-
label: i
|
|
291
|
-
size:
|
|
290
|
+
label: n(i.label, d),
|
|
291
|
+
size: i.size,
|
|
292
292
|
value: e,
|
|
293
|
-
fullWidth:
|
|
293
|
+
fullWidth: i.fullWidth
|
|
294
294
|
});
|
|
295
295
|
break;
|
|
296
296
|
}
|
|
@@ -302,36 +302,36 @@ var c = (e, t, n) => {
|
|
|
302
302
|
items: T,
|
|
303
303
|
customNodes: E
|
|
304
304
|
};
|
|
305
|
-
}, p = (e,
|
|
306
|
-
let { tApp: c, t: f, resolveEntityHref: p, renderLink: m, renderDate: h, renderTag: g, renderBadgeRow: _ } =
|
|
305
|
+
}, p = (e, o, s) => {
|
|
306
|
+
let { tApp: c, t: f, resolveEntityHref: p, renderLink: m, renderDate: h, renderTag: g, renderBadgeRow: _ } = s, v = e.titleValue?.(o, c) ?? n(e.title, c), y = typeof o == "object" && o && "id" in o && typeof o.id == "string" ? o.id.trim() : null, b = v.trim() === "" || y != null && v.trim() === y ? n(e.title, c) : v, x;
|
|
307
307
|
if (e.subtitleItems != null && e.subtitleItems.length > 0) {
|
|
308
|
-
let { subtitleItems:
|
|
309
|
-
|
|
310
|
-
|
|
308
|
+
let { subtitleItems: t } = e, n = e.subtitleSeparator ?? " / ", r = [];
|
|
309
|
+
t.forEach((e, i) => {
|
|
310
|
+
r.push(a("span", { key: e.id }, l(e.value(o), {
|
|
311
311
|
tApp: c,
|
|
312
312
|
t: f,
|
|
313
313
|
resolveEntityHref: p,
|
|
314
314
|
renderLink: m
|
|
315
|
-
}))),
|
|
316
|
-
}), x =
|
|
315
|
+
}))), i < t.length - 1 && r.push(a("span", { key: `${e.id}-sep` }, n));
|
|
316
|
+
}), x = a("span", null, ...r);
|
|
317
317
|
} else {
|
|
318
|
-
let
|
|
319
|
-
x =
|
|
318
|
+
let t = e.subtitleValue?.(o, c) ?? (e.subtitle == null ? null : n(e.subtitle, c));
|
|
319
|
+
x = t != null && t.trim() !== "" ? t : void 0;
|
|
320
320
|
}
|
|
321
321
|
let S = [];
|
|
322
|
-
e.badges?.forEach((e,
|
|
323
|
-
let l =
|
|
324
|
-
d.trim() !== "" && (S.push(g(
|
|
322
|
+
e.badges?.forEach((e, s) => {
|
|
323
|
+
let l = n(e.label, c), u = r(e.value(o), c), d = u == null ? "" : String(u);
|
|
324
|
+
d.trim() !== "" && (S.push(g(t(e.tone, o), `${l}: ${d}`)), typeof S[S.length - 1] == "object" && (S[S.length - 1] = a(i, { key: `${l}-${s}` }, S[S.length - 1])));
|
|
325
325
|
});
|
|
326
|
-
let C = e.status == null ? void 0 : d(e.status,
|
|
326
|
+
let C = e.status == null ? void 0 : d(e.status, o, c, {
|
|
327
327
|
renderBadgeRow: _,
|
|
328
328
|
renderTag: g
|
|
329
|
-
}), w = e.meta?.map((e,
|
|
330
|
-
let r =
|
|
329
|
+
}), w = e.meta?.map((e, t) => {
|
|
330
|
+
let r = n(e.label, c);
|
|
331
331
|
return {
|
|
332
|
-
id: `${r}-${
|
|
332
|
+
id: `${r}-${t}`,
|
|
333
333
|
label: r,
|
|
334
|
-
value: u(e,
|
|
334
|
+
value: u(e, o, {
|
|
335
335
|
tApp: c,
|
|
336
336
|
t: f,
|
|
337
337
|
resolveEntityHref: p,
|
|
@@ -343,7 +343,7 @@ var c = (e, t, n) => {
|
|
|
343
343
|
return {
|
|
344
344
|
title: b,
|
|
345
345
|
subtitle: x,
|
|
346
|
-
badges: S.length > 0 ?
|
|
346
|
+
badges: S.length > 0 ? a(i, null, ...S) : void 0,
|
|
347
347
|
status: C,
|
|
348
348
|
items: w
|
|
349
349
|
};
|
|
@@ -351,215 +351,215 @@ var c = (e, t, n) => {
|
|
|
351
351
|
if (e != null) {
|
|
352
352
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return String(e);
|
|
353
353
|
try {
|
|
354
|
-
return
|
|
354
|
+
return a("pre", null, JSON.stringify(e, null, 2));
|
|
355
355
|
} catch {
|
|
356
356
|
let t = e instanceof Error ? e.message : "[unserializable payload]";
|
|
357
|
-
return
|
|
357
|
+
return a("pre", null, t);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
}, h = (e) => e === "id" || e === "hash" || e === "external" ?
|
|
361
|
-
let { value:
|
|
360
|
+
}, h = (e) => e === "id" || e === "hash" || e === "external" ? "middle" : null, g = (t) => {
|
|
361
|
+
let { value: n, href: i, refKind: c, copyValue: l, tApp: u, t: d, renderLink: f } = t, p = r(n, u), m = h(c);
|
|
362
362
|
if (m != null) {
|
|
363
|
-
let
|
|
364
|
-
return
|
|
365
|
-
value:
|
|
366
|
-
copyValue: l ??
|
|
367
|
-
|
|
363
|
+
let e = s(p);
|
|
364
|
+
return e == null ? d("common.notAvailable") : a(o, {
|
|
365
|
+
value: e,
|
|
366
|
+
copyValue: l ?? e,
|
|
367
|
+
abbreviation: m,
|
|
368
368
|
copyLabel: d("common.actions.copy")
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
return
|
|
372
|
-
}, _ = (t,
|
|
373
|
-
let { tApp: c, t: l, keyPrefix: u } =
|
|
371
|
+
return i != null && i.trim() !== "" && !e(p) ? f(i, p) : p ?? d("common.notAvailable");
|
|
372
|
+
}, _ = (t, i, s) => {
|
|
373
|
+
let { tApp: c, t: l, keyPrefix: u } = s;
|
|
374
374
|
return t == null || t.length === 0 ? [] : t.map((t, d) => {
|
|
375
375
|
let f = u == null ? `${t.kind}-${d}` : `${u}-${t.kind}-${d}`;
|
|
376
376
|
if (t.kind === "custom") {
|
|
377
|
-
let e = t.render(
|
|
378
|
-
return e == null ? null : t.label == null ?
|
|
377
|
+
let e = t.render(i);
|
|
378
|
+
return e == null ? null : t.label == null ? s.wrapCustomNode(f, e) : s.renderCustomSection(f, n(t.label, c), e);
|
|
379
379
|
}
|
|
380
|
-
let p = "title" in t ?
|
|
381
|
-
if (t.kind === "summary") return
|
|
380
|
+
let p = "title" in t ? n(t.title, c) : n(t.label, c), h = t.description == null ? void 0 : n(t.description, c);
|
|
381
|
+
if (t.kind === "summary") return s.renderKeyValueListSection({
|
|
382
382
|
key: f,
|
|
383
383
|
title: p,
|
|
384
384
|
description: h,
|
|
385
|
-
items: t.items.map((
|
|
386
|
-
let
|
|
387
|
-
return
|
|
388
|
-
id:
|
|
389
|
-
label:
|
|
385
|
+
items: t.items.map((t) => {
|
|
386
|
+
let a = r(t.value(i), c), o = t.href?.(i), u = t.tone?.(i), d = a ?? l("common.notAvailable");
|
|
387
|
+
return o != null && o.trim() !== "" && !e(a) ? d = s.renderLink(o, a) : u != null && !e(a) && (d = s.renderTag(u, String(a))), {
|
|
388
|
+
id: t.id,
|
|
389
|
+
label: n(t.label, c),
|
|
390
390
|
value: d
|
|
391
391
|
};
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
|
-
if (t.kind === "metrics") return
|
|
394
|
+
if (t.kind === "metrics") return s.renderMetricGroup({
|
|
395
395
|
key: f,
|
|
396
396
|
title: p,
|
|
397
397
|
description: h,
|
|
398
398
|
density: t.density,
|
|
399
399
|
items: t.items.map((e) => {
|
|
400
|
-
let t = e.formattedValue?.(
|
|
400
|
+
let t = e.formattedValue?.(i), a = r(e.value(i), c);
|
|
401
401
|
return {
|
|
402
402
|
id: e.id,
|
|
403
|
-
label:
|
|
404
|
-
value: t ??
|
|
405
|
-
hint:
|
|
406
|
-
tone: e.tone?.(
|
|
407
|
-
copyValue: e.copyValue?.(
|
|
403
|
+
label: n(e.label, c),
|
|
404
|
+
value: t ?? a ?? l("common.notAvailable"),
|
|
405
|
+
hint: r(e.hint?.(i), c),
|
|
406
|
+
tone: e.tone?.(i),
|
|
407
|
+
copyValue: e.copyValue?.(i) ?? void 0
|
|
408
408
|
};
|
|
409
409
|
})
|
|
410
410
|
});
|
|
411
|
-
if (t.kind === "states") return
|
|
411
|
+
if (t.kind === "states") return s.renderKeyValueListSection({
|
|
412
412
|
key: f,
|
|
413
413
|
title: p,
|
|
414
414
|
description: h,
|
|
415
415
|
items: t.states.map((e) => {
|
|
416
|
-
let t = e.getDisplay(e.value(
|
|
416
|
+
let t = e.getDisplay(e.value(i), i);
|
|
417
417
|
return {
|
|
418
418
|
id: e.id,
|
|
419
|
-
label:
|
|
420
|
-
value:
|
|
419
|
+
label: n(e.label, c),
|
|
420
|
+
value: s.renderTag(t.tone, String(r(t.label, c) ?? l("common.notAvailable")))
|
|
421
421
|
};
|
|
422
422
|
})
|
|
423
423
|
});
|
|
424
|
-
if (t.kind === "context") return
|
|
424
|
+
if (t.kind === "context") return s.renderContextStack({
|
|
425
425
|
key: f,
|
|
426
426
|
title: p,
|
|
427
|
-
items: t.items.map((
|
|
428
|
-
let
|
|
427
|
+
items: t.items.map((t) => {
|
|
428
|
+
let a = r(t.value(i), c), o = t.href?.(i);
|
|
429
429
|
return {
|
|
430
|
-
id:
|
|
431
|
-
label:
|
|
432
|
-
value:
|
|
430
|
+
id: t.id,
|
|
431
|
+
label: n(t.label, c),
|
|
432
|
+
value: o != null && o.trim() !== "" && !e(a) ? s.renderLink(o, a) : a
|
|
433
433
|
};
|
|
434
434
|
})
|
|
435
435
|
});
|
|
436
|
-
if (t.kind === "relationSummary") return
|
|
436
|
+
if (t.kind === "relationSummary") return s.renderRelations({
|
|
437
437
|
key: f,
|
|
438
438
|
title: p,
|
|
439
439
|
description: h,
|
|
440
440
|
items: t.items.map((e) => ({
|
|
441
441
|
id: e.id,
|
|
442
|
-
label:
|
|
443
|
-
count: e.count?.(
|
|
444
|
-
href: e.href?.(
|
|
445
|
-
description:
|
|
446
|
-
tone: e.tone?.(
|
|
442
|
+
label: n(e.label, c),
|
|
443
|
+
count: e.count?.(i) ?? null,
|
|
444
|
+
href: e.href?.(i) ?? void 0,
|
|
445
|
+
description: r(e.description?.(i), c),
|
|
446
|
+
tone: e.tone?.(i)
|
|
447
447
|
}))
|
|
448
448
|
});
|
|
449
|
-
if (t.kind === "timeline") return
|
|
449
|
+
if (t.kind === "timeline") return s.renderTimeline({
|
|
450
450
|
key: f,
|
|
451
451
|
title: p,
|
|
452
452
|
description: h,
|
|
453
453
|
events: t.events.map((e) => {
|
|
454
|
-
let t = e.state?.(
|
|
454
|
+
let t = e.state?.(i), a = t == null ? null : r(t.label, c), o = a == null ? null : String(a);
|
|
455
455
|
return {
|
|
456
456
|
id: e.id,
|
|
457
|
-
label:
|
|
458
|
-
timestamp: e.timestamp == null ? void 0 :
|
|
459
|
-
description:
|
|
460
|
-
actor:
|
|
457
|
+
label: o == null || o.trim() === "" ? n(e.label, c) : `${n(e.label, c)}: ${o}`,
|
|
458
|
+
timestamp: e.timestamp == null ? void 0 : s.renderDate(e.timestamp(i), l("common.notAvailable")),
|
|
459
|
+
description: r(e.description?.(i), c),
|
|
460
|
+
actor: r(e.actor?.(i), c),
|
|
461
461
|
tone: t?.tone,
|
|
462
|
-
payload: m(e.payload?.(
|
|
462
|
+
payload: m(e.payload?.(i))
|
|
463
463
|
};
|
|
464
464
|
})
|
|
465
465
|
});
|
|
466
|
-
if (t.kind === "audit") return
|
|
466
|
+
if (t.kind === "audit") return s.renderAuditTimeline({
|
|
467
467
|
key: f,
|
|
468
468
|
title: p,
|
|
469
469
|
description: h,
|
|
470
|
-
events: t.items.map((
|
|
471
|
-
let
|
|
470
|
+
events: t.items.map((t) => {
|
|
471
|
+
let a = r(t.actor?.(i), c), o = r(t.source?.(i), c);
|
|
472
472
|
return {
|
|
473
|
-
id:
|
|
474
|
-
title:
|
|
475
|
-
time:
|
|
476
|
-
actor:
|
|
477
|
-
source:
|
|
473
|
+
id: t.id,
|
|
474
|
+
title: n(t.label, c),
|
|
475
|
+
time: s.renderDate(t.timestamp?.(i), l("common.notAvailable")),
|
|
476
|
+
actor: e(a) ? void 0 : a,
|
|
477
|
+
source: e(o) ? void 0 : o
|
|
478
478
|
};
|
|
479
479
|
})
|
|
480
480
|
});
|
|
481
|
-
if (t.kind === "references") return
|
|
481
|
+
if (t.kind === "references") return s.renderKeyValueListSection({
|
|
482
482
|
key: f,
|
|
483
483
|
title: p,
|
|
484
484
|
description: h,
|
|
485
485
|
items: t.references.map((e) => {
|
|
486
|
-
let t = e.href?.(
|
|
486
|
+
let t = e.href?.(i);
|
|
487
487
|
return {
|
|
488
488
|
id: e.id,
|
|
489
|
-
label:
|
|
489
|
+
label: n(e.label, c),
|
|
490
490
|
value: g({
|
|
491
|
-
value: e.value(
|
|
491
|
+
value: e.value(i),
|
|
492
492
|
href: t,
|
|
493
493
|
refKind: e.refKind ?? "text",
|
|
494
|
-
copyValue: e.copyValue?.(
|
|
494
|
+
copyValue: e.copyValue?.(i) ?? void 0,
|
|
495
495
|
tApp: c,
|
|
496
496
|
t: l,
|
|
497
|
-
renderLink:
|
|
497
|
+
renderLink: s.renderLink
|
|
498
498
|
})
|
|
499
499
|
};
|
|
500
500
|
})
|
|
501
501
|
});
|
|
502
502
|
if (t.kind === "actionResult") {
|
|
503
|
-
let
|
|
504
|
-
|
|
503
|
+
let a = [], o = t.status?.(i);
|
|
504
|
+
o != null && a.push({
|
|
505
505
|
id: `${t.id}-status`,
|
|
506
506
|
label: l("detail.actionResult.status"),
|
|
507
|
-
value:
|
|
507
|
+
value: s.renderTag(o.tone, String(r(o.label, c) ?? l("common.notAvailable")))
|
|
508
508
|
});
|
|
509
|
-
let u =
|
|
510
|
-
return
|
|
509
|
+
let u = r(t.message?.(i), c);
|
|
510
|
+
return e(u) || a.push({
|
|
511
511
|
id: `${t.id}-message`,
|
|
512
512
|
label: l("detail.actionResult.message"),
|
|
513
513
|
value: u
|
|
514
|
-
}), t.references?.forEach((
|
|
515
|
-
|
|
516
|
-
id:
|
|
517
|
-
label:
|
|
514
|
+
}), t.references?.forEach((e) => {
|
|
515
|
+
a.push({
|
|
516
|
+
id: e.id,
|
|
517
|
+
label: n(e.label, c),
|
|
518
518
|
value: g({
|
|
519
|
-
value:
|
|
520
|
-
href:
|
|
521
|
-
refKind:
|
|
522
|
-
copyValue:
|
|
519
|
+
value: e.value(i),
|
|
520
|
+
href: e.href?.(i),
|
|
521
|
+
refKind: e.refKind ?? "text",
|
|
522
|
+
copyValue: e.copyValue?.(i) ?? void 0,
|
|
523
523
|
tApp: c,
|
|
524
524
|
t: l,
|
|
525
|
-
renderLink:
|
|
525
|
+
renderLink: s.renderLink
|
|
526
526
|
})
|
|
527
527
|
});
|
|
528
|
-
}),
|
|
528
|
+
}), s.renderKeyValueListSection({
|
|
529
529
|
key: f,
|
|
530
530
|
title: p,
|
|
531
531
|
description: h,
|
|
532
|
-
items:
|
|
532
|
+
items: a
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
return t.kind === "technicalFacts" ?
|
|
535
|
+
return t.kind === "technicalFacts" ? s.renderKeyValueListSection({
|
|
536
536
|
key: f,
|
|
537
537
|
title: p,
|
|
538
538
|
description: h,
|
|
539
539
|
items: t.facts.map((t) => {
|
|
540
|
-
let u =
|
|
540
|
+
let u = r(t.value(i), c), d = t.href?.(i), f = t.copyValue?.(i) ?? void 0;
|
|
541
541
|
return {
|
|
542
542
|
id: t.id,
|
|
543
|
-
label:
|
|
544
|
-
value: f != null && f.trim() !== "" ?
|
|
543
|
+
label: n(t.label, c),
|
|
544
|
+
value: f != null && f.trim() !== "" ? a(o, {
|
|
545
545
|
value: u ?? f,
|
|
546
546
|
copyValue: f,
|
|
547
|
-
|
|
547
|
+
abbreviation: "middle",
|
|
548
548
|
copyLabel: l("common.actions.copy")
|
|
549
|
-
}) : d != null && d.trim() !== "" && !
|
|
549
|
+
}) : d != null && d.trim() !== "" && !e(u) ? s.renderLink(d, u) : u ?? l("common.notAvailable")
|
|
550
550
|
};
|
|
551
551
|
})
|
|
552
|
-
}) : t.kind === "table" ?
|
|
552
|
+
}) : t.kind === "table" ? s.renderTable({
|
|
553
553
|
key: f,
|
|
554
554
|
title: p,
|
|
555
555
|
description: h,
|
|
556
|
-
columns:
|
|
557
|
-
rows: t.rows(
|
|
558
|
-
}) :
|
|
556
|
+
columns: s.resolveTableColumns(t.columns),
|
|
557
|
+
rows: t.rows(i)
|
|
558
|
+
}) : s.renderPayload({
|
|
559
559
|
key: f,
|
|
560
560
|
title: p,
|
|
561
561
|
description: h,
|
|
562
|
-
content: t.value(
|
|
562
|
+
content: t.value(i),
|
|
563
563
|
format: t.format ?? "json"
|
|
564
564
|
});
|
|
565
565
|
});
|