@plumile/backoffice-react 0.2.3 → 0.2.5
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
|
@@ -5,39 +5,55 @@ import { buildDataTableColumns as r } from "../components/backoffice/columns/bui
|
|
|
5
5
|
import { resolveLabel as i } from "./BackofficeDashboardPage.helpers.js";
|
|
6
6
|
import { tileBody as a, tileCount as o } from "./backofficeDashboardPage.css.js";
|
|
7
7
|
import s from "./resolveDashboardTargetDestination.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import { DashboardQuickActions as m } from "@plumile/ui/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js";
|
|
14
|
-
import { DashboardMetricGroup as h } from "@plumile/ui/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js";
|
|
15
|
-
import { DashboardStatusList as g } from "@plumile/ui/components/dashboard/dashboard_status_list/DashboardStatusList.js";
|
|
16
|
-
import { DashboardBreakdownList as _ } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardBreakdownList.js";
|
|
17
|
-
import { DashboardEntitySpotlight as v } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardEntitySpotlight.js";
|
|
18
|
-
import { DashboardHealthMatrix as y } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardHealthMatrix.js";
|
|
19
|
-
import { DashboardRiskQueue as b } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardRiskQueue.js";
|
|
20
|
-
import { DashboardSlaGauge as x } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardSlaGauge.js";
|
|
21
|
-
import { DashboardTimelineChart as S } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardTimelineChart.js";
|
|
22
|
-
import { DashboardTrendMetric as C } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardTrendMetric.js";
|
|
23
|
-
import { DashboardWindowControl as w } from "@plumile/ui/components/dashboard/dashboard_operational/DashboardWindowControl.js";
|
|
24
|
-
import { DataTable as T } from "@plumile/ui/components/data-table/DataTable.js";
|
|
8
|
+
import { DashboardBreakdownList as c, DashboardEntitySpotlight as l, DashboardHealthMatrix as u, DashboardMetricGroup as d, DashboardPanel as f, DashboardQuickActions as p, DashboardRiskQueue as m, DashboardSlaGauge as h, DashboardStatusList as g, DashboardTimelineChart as _, DashboardTrendMetric as v, DashboardWindowControl as y, DataTable as b } from "@plumile/ui";
|
|
9
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
10
|
+
import { useTranslation as C } from "react-i18next";
|
|
11
|
+
import * as w from "react-relay";
|
|
12
|
+
import { BackofficeEmptyState as T } from "@plumile/ui/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js";
|
|
25
13
|
//#region src/pages/BackofficeDashboardWidgetContent.tsx
|
|
26
|
-
var { useLazyLoadQuery: E } =
|
|
14
|
+
var { useLazyLoadQuery: E } = w, D = (e, t) => {
|
|
15
|
+
switch (e) {
|
|
16
|
+
case "neutral": return t("dashboard.tones.neutral");
|
|
17
|
+
case "info": return t("dashboard.tones.info");
|
|
18
|
+
case "success": return t("dashboard.tones.success");
|
|
19
|
+
case "warning": return t("dashboard.tones.warning");
|
|
20
|
+
case "danger": return t("dashboard.tones.danger");
|
|
21
|
+
default: return e;
|
|
22
|
+
}
|
|
23
|
+
}, O = (e, t) => e == null ? {} : {
|
|
24
|
+
tone: e,
|
|
25
|
+
toneLabel: D(e, t)
|
|
26
|
+
}, k = (e, t) => e == null ? {} : {
|
|
27
|
+
threshold: e,
|
|
28
|
+
thresholdLabel: t("dashboard.threshold")
|
|
29
|
+
}, A = (e, t, n, r) => e == null ? {} : {
|
|
30
|
+
sparkline: e,
|
|
31
|
+
sparklineLabel: t,
|
|
32
|
+
sparklineDescription: r("dashboard.chart.description", { label: t }),
|
|
33
|
+
sparklineEmptyMessage: r("dashboard.chart.empty"),
|
|
34
|
+
locale: n
|
|
35
|
+
}, j = (e, t) => {
|
|
36
|
+
switch (e) {
|
|
37
|
+
case "up": return t("dashboard.trendDirections.up");
|
|
38
|
+
case "down": return t("dashboard.trendDirections.down");
|
|
39
|
+
case "flat": return t("dashboard.trendDirections.flat");
|
|
40
|
+
default: return e;
|
|
41
|
+
}
|
|
42
|
+
}, M = { window: {
|
|
27
43
|
id: "24h",
|
|
28
44
|
label: (e) => e("common.time.lastDay", "24 h"),
|
|
29
45
|
from: (/* @__PURE__ */ new Date(0)).toISOString(),
|
|
30
46
|
to: (/* @__PURE__ */ new Date(0)).toISOString()
|
|
31
|
-
} },
|
|
47
|
+
} }, N = (e, t) => typeof e.variables == "function" ? e.variables(t) : e.variables, P = () => {
|
|
32
48
|
let { t } = e();
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
},
|
|
49
|
+
return /* @__PURE__ */ x(T, { title: t("common.notAvailable") });
|
|
50
|
+
}, F = () => {
|
|
35
51
|
let { entities: e } = t();
|
|
36
52
|
return (t, n) => s(t, e, n);
|
|
37
|
-
},
|
|
38
|
-
let { t: n } =
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
emptyState: /* @__PURE__ */
|
|
53
|
+
}, I = ({ metrics: t }) => {
|
|
54
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
55
|
+
return /* @__PURE__ */ x(d, {
|
|
56
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
41
57
|
metrics: t.map((e) => ({
|
|
42
58
|
id: e.id,
|
|
43
59
|
destination: a(e.target, e.href),
|
|
@@ -46,111 +62,122 @@ var { useLazyLoadQuery: E } = d, D = { window: {
|
|
|
46
62
|
hint: e.meta == null ? void 0 : i(e.meta, n)
|
|
47
63
|
}))
|
|
48
64
|
});
|
|
49
|
-
},
|
|
50
|
-
let { t: n } =
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
emptyState: /* @__PURE__ */
|
|
53
|
-
items: t.map((e) =>
|
|
54
|
-
|
|
55
|
-
destination: a(e.target, e.href),
|
|
56
|
-
label: i(e.label, n),
|
|
57
|
-
value: e.value ?? r("common.notAvailable")
|
|
58
|
-
}))
|
|
59
|
-
});
|
|
60
|
-
}, N = ({ actions: e, layout: t }) => {
|
|
61
|
-
let { t: n } = u(), r = A();
|
|
62
|
-
return /* @__PURE__ */ c(m, {
|
|
63
|
-
layout: t,
|
|
64
|
-
emptyState: /* @__PURE__ */ c(k, {}),
|
|
65
|
-
actions: e.map((e) => {
|
|
66
|
-
let t;
|
|
67
|
-
return t = typeof e.label == "string" ? e.label : i(e.label, n), {
|
|
65
|
+
}, L = ({ items: t }) => {
|
|
66
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
67
|
+
return /* @__PURE__ */ x(g, {
|
|
68
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
69
|
+
items: t.map((e) => {
|
|
70
|
+
let t = a(e.target, e.href), o = {
|
|
68
71
|
id: e.id,
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
label: i(e.label, n),
|
|
73
|
+
value: e.value ?? r("common.notAvailable")
|
|
74
|
+
};
|
|
75
|
+
return t == null ? o : {
|
|
76
|
+
...o,
|
|
77
|
+
destination: t
|
|
71
78
|
};
|
|
72
79
|
})
|
|
73
80
|
});
|
|
74
|
-
},
|
|
75
|
-
let { t: n } =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
}, R = ({ actions: e, layout: t }) => {
|
|
82
|
+
let { t: n } = C(), r = F(), a = e.flatMap((e) => {
|
|
83
|
+
let t = r(e.target, e.href);
|
|
84
|
+
if (t == null) return [];
|
|
85
|
+
let a;
|
|
86
|
+
return a = typeof e.label == "string" ? e.label : i(e.label, n), [{
|
|
87
|
+
id: e.id,
|
|
88
|
+
destination: t,
|
|
89
|
+
label: a
|
|
90
|
+
}];
|
|
91
|
+
});
|
|
92
|
+
return /* @__PURE__ */ x(p, {
|
|
93
|
+
layout: t,
|
|
94
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
95
|
+
actions: a
|
|
96
|
+
});
|
|
97
|
+
}, z = ({ metric: t }) => {
|
|
98
|
+
let { i18n: n, t: r } = C(), { t: a } = e(), o = F();
|
|
99
|
+
return /* @__PURE__ */ x(v, {
|
|
100
|
+
label: i(t.label, r),
|
|
101
|
+
value: t.value ?? a("common.notAvailable"),
|
|
79
102
|
unit: t.unit,
|
|
80
|
-
destination:
|
|
81
|
-
|
|
103
|
+
destination: o(t.target, t.href),
|
|
104
|
+
...O(t.tone, a),
|
|
82
105
|
delta: t.delta == null ? void 0 : {
|
|
83
106
|
...t.delta,
|
|
84
|
-
|
|
107
|
+
directionLabel: j(t.delta.direction, a),
|
|
108
|
+
label: t.delta.label == null ? void 0 : i(t.delta.label, r)
|
|
85
109
|
},
|
|
86
|
-
sparkline
|
|
87
|
-
sparklineLabel: i(t.label, n)
|
|
110
|
+
...A(t.sparkline, i(t.label, r), n.language, a)
|
|
88
111
|
});
|
|
89
|
-
},
|
|
90
|
-
let { t: n } =
|
|
91
|
-
return t.value == null ? /* @__PURE__ */
|
|
112
|
+
}, B = ({ gauge: t }) => {
|
|
113
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
114
|
+
return t.value == null ? /* @__PURE__ */ x(T, { title: r("common.notAvailable") }) : /* @__PURE__ */ x(h, {
|
|
92
115
|
label: i(t.label, n),
|
|
93
116
|
value: t.value,
|
|
117
|
+
valueText: `${t.value}${t.unit ?? ""}`,
|
|
94
118
|
max: t.max,
|
|
95
|
-
|
|
119
|
+
...k(t.threshold, r),
|
|
96
120
|
unit: t.unit,
|
|
97
121
|
tone: t.tone,
|
|
98
122
|
destination: a(t.target, t.href)
|
|
99
123
|
});
|
|
100
|
-
},
|
|
101
|
-
let { t: n } =
|
|
102
|
-
return /* @__PURE__ */ c
|
|
103
|
-
emptyState: /* @__PURE__ */
|
|
124
|
+
}, V = ({ items: t }) => {
|
|
125
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
126
|
+
return /* @__PURE__ */ x(c, {
|
|
127
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
104
128
|
items: t.map((e) => ({
|
|
105
129
|
id: e.id,
|
|
106
130
|
destination: a(e.target, e.href),
|
|
107
131
|
label: i(e.label, n),
|
|
108
132
|
meta: e.meta == null ? void 0 : i(e.meta, n),
|
|
109
|
-
|
|
133
|
+
...O(e.tone, r),
|
|
110
134
|
value: e.value ?? r("common.notAvailable")
|
|
111
135
|
}))
|
|
112
136
|
});
|
|
113
|
-
},
|
|
114
|
-
let { t:
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
ariaLabel: i(
|
|
117
|
-
chart: t,
|
|
118
|
-
|
|
119
|
-
|
|
137
|
+
}, H = ({ ariaLabel: t, chart: n, result: r }) => {
|
|
138
|
+
let { i18n: a, t: o } = C(), { t: s } = e();
|
|
139
|
+
return /* @__PURE__ */ x(_, {
|
|
140
|
+
ariaLabel: i(t, o),
|
|
141
|
+
ariaDescription: s("dashboard.chart.description", { label: i(t, o) }),
|
|
142
|
+
chart: n,
|
|
143
|
+
emptyMessage: r.emptyLabel == null ? s("dashboard.chart.empty") : i(r.emptyLabel, o),
|
|
144
|
+
locale: a.language,
|
|
145
|
+
series: r.series.map((e) => ({
|
|
120
146
|
...e,
|
|
121
|
-
label: i(e.label,
|
|
147
|
+
label: i(e.label, o)
|
|
122
148
|
}))
|
|
123
149
|
});
|
|
124
|
-
},
|
|
125
|
-
let { t: n } =
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
emptyState: /* @__PURE__ */
|
|
150
|
+
}, U = ({ items: t }) => {
|
|
151
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
152
|
+
return /* @__PURE__ */ x(m, {
|
|
153
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
128
154
|
items: t.map((e) => ({
|
|
129
155
|
id: e.id,
|
|
130
156
|
destination: a(e.target, e.href),
|
|
131
157
|
label: i(e.label, n),
|
|
132
158
|
meta: e.meta == null ? void 0 : i(e.meta, n),
|
|
133
159
|
severity: e.severity,
|
|
160
|
+
severityLabel: D(e.severity, r),
|
|
134
161
|
value: e.value ?? r("common.notAvailable")
|
|
135
162
|
}))
|
|
136
163
|
});
|
|
137
|
-
},
|
|
138
|
-
let { t } =
|
|
139
|
-
return
|
|
140
|
-
destination:
|
|
141
|
-
label: i(
|
|
142
|
-
title: i(
|
|
143
|
-
|
|
144
|
-
meta:
|
|
164
|
+
}, W = ({ item: t }) => {
|
|
165
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
166
|
+
return t == null ? /* @__PURE__ */ x(P, {}) : /* @__PURE__ */ x(l, {
|
|
167
|
+
destination: a(t.target, t.href),
|
|
168
|
+
label: i(t.label, n),
|
|
169
|
+
title: i(t.title, n),
|
|
170
|
+
...O(t.tone, r),
|
|
171
|
+
meta: t.meta?.map((e) => ({
|
|
145
172
|
id: e.id,
|
|
146
|
-
label: i(e.label,
|
|
173
|
+
label: i(e.label, n),
|
|
147
174
|
value: e.value
|
|
148
175
|
}))
|
|
149
176
|
});
|
|
150
|
-
},
|
|
151
|
-
let { t: n } =
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
emptyState: /* @__PURE__ */
|
|
177
|
+
}, G = ({ rows: t }) => {
|
|
178
|
+
let { t: n } = C(), { t: r } = e(), a = F();
|
|
179
|
+
return /* @__PURE__ */ x(u, {
|
|
180
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
154
181
|
rows: t.map((e) => ({
|
|
155
182
|
id: e.id,
|
|
156
183
|
label: i(e.label, n),
|
|
@@ -158,63 +185,70 @@ var { useLazyLoadQuery: E } = d, D = { window: {
|
|
|
158
185
|
id: e.id,
|
|
159
186
|
destination: a(e.target, e.href),
|
|
160
187
|
label: i(e.label, n),
|
|
161
|
-
|
|
188
|
+
...O(e.tone, r),
|
|
162
189
|
value: e.value ?? r("common.notAvailable")
|
|
163
190
|
}))
|
|
164
191
|
}))
|
|
165
192
|
});
|
|
166
|
-
},
|
|
167
|
-
let { t:
|
|
168
|
-
if (
|
|
169
|
-
let e = i(
|
|
170
|
-
return /* @__PURE__ */
|
|
193
|
+
}, K = ({ activeWindowPresetId: s, context: c = M, widget: l, data: u, onWindowPresetChange: d, windowPresets: m = [] }) => {
|
|
194
|
+
let { i18n: h, t: g } = C(), { t: _ } = e(), { entities: v } = t(), w = l.description == null ? void 0 : i(l.description, g), T = () => l.dataSource === "query" && u != null ? l.resolve(u, c) : null;
|
|
195
|
+
if (l.kind === "textBlock") {
|
|
196
|
+
let e = i(l.title, g), t = i(l.body, g);
|
|
197
|
+
return /* @__PURE__ */ x(f, {
|
|
171
198
|
title: e,
|
|
172
|
-
subtitle:
|
|
173
|
-
children: /* @__PURE__ */
|
|
199
|
+
subtitle: w,
|
|
200
|
+
children: /* @__PURE__ */ x("div", {
|
|
174
201
|
className: a,
|
|
175
202
|
children: t
|
|
176
203
|
})
|
|
177
204
|
});
|
|
178
205
|
}
|
|
179
|
-
if (
|
|
180
|
-
let e =
|
|
181
|
-
return e == null ? /* @__PURE__ */
|
|
206
|
+
if (l.kind === "shortcut") {
|
|
207
|
+
let e = v[l.entityId], t = i(l.label, g);
|
|
208
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
182
209
|
title: t,
|
|
183
|
-
subtitle:
|
|
184
|
-
children: /* @__PURE__ */
|
|
185
|
-
}) : e.kind === "tool" ? /* @__PURE__ */
|
|
210
|
+
subtitle: w,
|
|
211
|
+
children: /* @__PURE__ */ x(P, {})
|
|
212
|
+
}) : e.kind === "tool" ? /* @__PURE__ */ x(f, {
|
|
186
213
|
title: t,
|
|
187
|
-
subtitle:
|
|
188
|
-
children: /* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
214
|
+
subtitle: w,
|
|
215
|
+
children: /* @__PURE__ */ x(p, {
|
|
216
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
217
|
+
actions: [{
|
|
218
|
+
id: e.id,
|
|
219
|
+
destination: { pathname: e.routes.list },
|
|
220
|
+
label: _("dashboard.actions.openTool")
|
|
221
|
+
}]
|
|
222
|
+
})
|
|
223
|
+
}) : /* @__PURE__ */ x(f, {
|
|
194
224
|
title: t,
|
|
195
|
-
subtitle:
|
|
196
|
-
children: /* @__PURE__ */
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
225
|
+
subtitle: w,
|
|
226
|
+
children: /* @__PURE__ */ x(p, {
|
|
227
|
+
emptyState: /* @__PURE__ */ x(P, {}),
|
|
228
|
+
actions: [{
|
|
229
|
+
id: e.id,
|
|
230
|
+
destination: { pathname: e.routes.list },
|
|
231
|
+
label: _("dashboard.actions.openList")
|
|
232
|
+
}]
|
|
233
|
+
})
|
|
201
234
|
});
|
|
202
235
|
}
|
|
203
|
-
if (
|
|
204
|
-
let e =
|
|
205
|
-
if (e == null) return /* @__PURE__ */
|
|
206
|
-
title: i(
|
|
207
|
-
subtitle:
|
|
208
|
-
children: /* @__PURE__ */
|
|
236
|
+
if (l.kind === "tablePreview") {
|
|
237
|
+
let e = T();
|
|
238
|
+
if (e == null) return /* @__PURE__ */ x(f, {
|
|
239
|
+
title: i(l.title, g),
|
|
240
|
+
subtitle: w,
|
|
241
|
+
children: /* @__PURE__ */ x(P, {})
|
|
209
242
|
});
|
|
210
243
|
let t = r(e.columns, {
|
|
211
|
-
tApp:
|
|
212
|
-
t:
|
|
213
|
-
}), n = i(
|
|
214
|
-
return /* @__PURE__ */
|
|
244
|
+
tApp: g,
|
|
245
|
+
t: _
|
|
246
|
+
}), n = i(l.title, g);
|
|
247
|
+
return /* @__PURE__ */ x(f, {
|
|
215
248
|
title: n,
|
|
216
|
-
subtitle:
|
|
217
|
-
children: /* @__PURE__ */
|
|
249
|
+
subtitle: w,
|
|
250
|
+
children: /* @__PURE__ */ x(b, {
|
|
251
|
+
"aria-label": n,
|
|
218
252
|
columns: t,
|
|
219
253
|
rows: e.rows,
|
|
220
254
|
getRowId: (e, t) => {
|
|
@@ -227,198 +261,200 @@ var { useLazyLoadQuery: E } = d, D = { window: {
|
|
|
227
261
|
})
|
|
228
262
|
});
|
|
229
263
|
}
|
|
230
|
-
if (
|
|
231
|
-
let e =
|
|
232
|
-
return e == null ? /* @__PURE__ */
|
|
264
|
+
if (l.kind === "metricGroup") {
|
|
265
|
+
let e = T();
|
|
266
|
+
return e == null ? /* @__PURE__ */ x(P, {}) : /* @__PURE__ */ x(I, { metrics: e });
|
|
233
267
|
}
|
|
234
|
-
if (
|
|
235
|
-
let e =
|
|
236
|
-
return e == null ? /* @__PURE__ */
|
|
268
|
+
if (l.kind === "trendMetric") {
|
|
269
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
270
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
237
271
|
title: t,
|
|
238
|
-
subtitle:
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
-
}) : /* @__PURE__ */
|
|
272
|
+
subtitle: w,
|
|
273
|
+
children: /* @__PURE__ */ x(P, {})
|
|
274
|
+
}) : /* @__PURE__ */ x(f, {
|
|
241
275
|
title: t,
|
|
242
|
-
subtitle:
|
|
243
|
-
children: /* @__PURE__ */
|
|
276
|
+
subtitle: w,
|
|
277
|
+
children: /* @__PURE__ */ x(z, { metric: e })
|
|
244
278
|
});
|
|
245
279
|
}
|
|
246
|
-
if (
|
|
247
|
-
let e =
|
|
248
|
-
return e == null ? /* @__PURE__ */
|
|
280
|
+
if (l.kind === "slaGauge") {
|
|
281
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
282
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
249
283
|
title: t,
|
|
250
|
-
subtitle:
|
|
251
|
-
children: /* @__PURE__ */
|
|
252
|
-
}) : /* @__PURE__ */
|
|
284
|
+
subtitle: w,
|
|
285
|
+
children: /* @__PURE__ */ x(P, {})
|
|
286
|
+
}) : /* @__PURE__ */ x(f, {
|
|
253
287
|
title: t,
|
|
254
|
-
subtitle:
|
|
255
|
-
children: /* @__PURE__ */
|
|
288
|
+
subtitle: w,
|
|
289
|
+
children: /* @__PURE__ */ x(B, { gauge: e })
|
|
256
290
|
});
|
|
257
291
|
}
|
|
258
|
-
if (
|
|
259
|
-
let e =
|
|
260
|
-
return e == null ? /* @__PURE__ */
|
|
292
|
+
if (l.kind === "breakdownList") {
|
|
293
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
294
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
261
295
|
title: t,
|
|
262
|
-
subtitle:
|
|
263
|
-
children: /* @__PURE__ */
|
|
264
|
-
}) : /* @__PURE__ */
|
|
296
|
+
subtitle: w,
|
|
297
|
+
children: /* @__PURE__ */ x(P, {})
|
|
298
|
+
}) : /* @__PURE__ */ x(f, {
|
|
265
299
|
title: t,
|
|
266
|
-
subtitle:
|
|
267
|
-
children: /* @__PURE__ */
|
|
300
|
+
subtitle: w,
|
|
301
|
+
children: /* @__PURE__ */ x(V, { items: e })
|
|
268
302
|
});
|
|
269
303
|
}
|
|
270
|
-
if (
|
|
271
|
-
let e =
|
|
272
|
-
return e == null ? /* @__PURE__ */
|
|
304
|
+
if (l.kind === "timelineChart") {
|
|
305
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
306
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
273
307
|
title: t,
|
|
274
|
-
subtitle:
|
|
275
|
-
children: /* @__PURE__ */
|
|
276
|
-
}) : /* @__PURE__ */
|
|
308
|
+
subtitle: w,
|
|
309
|
+
children: /* @__PURE__ */ x(P, {})
|
|
310
|
+
}) : /* @__PURE__ */ x(f, {
|
|
277
311
|
title: t,
|
|
278
|
-
subtitle:
|
|
279
|
-
children: /* @__PURE__ */
|
|
280
|
-
ariaLabel:
|
|
281
|
-
chart:
|
|
312
|
+
subtitle: w,
|
|
313
|
+
children: /* @__PURE__ */ x(H, {
|
|
314
|
+
ariaLabel: l.ariaLabel,
|
|
315
|
+
chart: l.chart,
|
|
282
316
|
result: e
|
|
283
317
|
})
|
|
284
318
|
});
|
|
285
319
|
}
|
|
286
|
-
if (
|
|
287
|
-
let e =
|
|
288
|
-
return e == null ? /* @__PURE__ */
|
|
320
|
+
if (l.kind === "riskQueue") {
|
|
321
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
322
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
289
323
|
title: t,
|
|
290
|
-
subtitle:
|
|
291
|
-
children: /* @__PURE__ */
|
|
292
|
-
}) : /* @__PURE__ */
|
|
324
|
+
subtitle: w,
|
|
325
|
+
children: /* @__PURE__ */ x(P, {})
|
|
326
|
+
}) : /* @__PURE__ */ x(f, {
|
|
293
327
|
title: t,
|
|
294
|
-
subtitle:
|
|
295
|
-
children: /* @__PURE__ */
|
|
328
|
+
subtitle: w,
|
|
329
|
+
children: /* @__PURE__ */ x(U, { items: e })
|
|
296
330
|
});
|
|
297
331
|
}
|
|
298
|
-
if (
|
|
299
|
-
let e =
|
|
300
|
-
return /* @__PURE__ */
|
|
332
|
+
if (l.kind === "entitySpotlight") {
|
|
333
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
334
|
+
return /* @__PURE__ */ x(f, {
|
|
301
335
|
title: t,
|
|
302
|
-
subtitle:
|
|
303
|
-
children: /* @__PURE__ */
|
|
336
|
+
subtitle: w,
|
|
337
|
+
children: /* @__PURE__ */ x(W, { item: e })
|
|
304
338
|
});
|
|
305
339
|
}
|
|
306
|
-
if (
|
|
307
|
-
let e =
|
|
308
|
-
return e == null ? /* @__PURE__ */
|
|
340
|
+
if (l.kind === "healthMatrix") {
|
|
341
|
+
let e = T(), t = l.title == null ? void 0 : i(l.title, g);
|
|
342
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
309
343
|
title: t,
|
|
310
|
-
subtitle:
|
|
311
|
-
children: /* @__PURE__ */
|
|
312
|
-
}) : /* @__PURE__ */
|
|
344
|
+
subtitle: w,
|
|
345
|
+
children: /* @__PURE__ */ x(P, {})
|
|
346
|
+
}) : /* @__PURE__ */ x(f, {
|
|
313
347
|
title: t,
|
|
314
|
-
subtitle:
|
|
315
|
-
children: /* @__PURE__ */
|
|
348
|
+
subtitle: w,
|
|
349
|
+
children: /* @__PURE__ */ x(G, { rows: e })
|
|
316
350
|
});
|
|
317
351
|
}
|
|
318
|
-
if (
|
|
319
|
-
let e =
|
|
320
|
-
return e == null ? /* @__PURE__ */
|
|
352
|
+
if (l.kind === "billingUsageChart") {
|
|
353
|
+
let e = T(), t = i(l.title, g);
|
|
354
|
+
return e == null ? /* @__PURE__ */ x(f, {
|
|
321
355
|
title: t,
|
|
322
|
-
subtitle:
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
-
}) : /* @__PURE__ */
|
|
356
|
+
subtitle: w,
|
|
357
|
+
children: /* @__PURE__ */ x(P, {})
|
|
358
|
+
}) : /* @__PURE__ */ x(f, {
|
|
325
359
|
title: t,
|
|
326
|
-
subtitle:
|
|
327
|
-
children: /* @__PURE__ */
|
|
328
|
-
ariaLabel: i(
|
|
360
|
+
subtitle: w,
|
|
361
|
+
children: /* @__PURE__ */ x(n, {
|
|
362
|
+
ariaLabel: i(l.ariaLabel, g),
|
|
329
363
|
buckets: e.buckets,
|
|
330
|
-
categories:
|
|
364
|
+
categories: l.categories.map((e) => ({
|
|
331
365
|
id: e.id,
|
|
332
|
-
label: i(e.label,
|
|
366
|
+
label: i(e.label, g),
|
|
333
367
|
color: e.color
|
|
334
368
|
})),
|
|
335
369
|
currency: e.currency,
|
|
336
|
-
emptyLabel: i(
|
|
370
|
+
emptyLabel: i(l.emptyLabel, g),
|
|
337
371
|
from: e.from,
|
|
338
|
-
|
|
372
|
+
locale: h.language,
|
|
373
|
+
rangePrefix: i(l.rangePrefix, g),
|
|
339
374
|
to: e.to,
|
|
340
375
|
totalAmount: e.totalAmount
|
|
341
376
|
})
|
|
342
377
|
});
|
|
343
378
|
}
|
|
344
|
-
if (
|
|
345
|
-
let e =
|
|
346
|
-
return /* @__PURE__ */
|
|
379
|
+
if (l.kind === "quickActions") {
|
|
380
|
+
let e = l.title == null ? _("dashboard.actions.openTool") : i(l.title, g);
|
|
381
|
+
return /* @__PURE__ */ x(f, {
|
|
347
382
|
title: e,
|
|
348
|
-
subtitle:
|
|
349
|
-
children: /* @__PURE__ */
|
|
350
|
-
layout:
|
|
351
|
-
actions:
|
|
383
|
+
subtitle: w,
|
|
384
|
+
children: /* @__PURE__ */ x(R, {
|
|
385
|
+
layout: l.layout?.zone === "aside" ? "stack" : "grid",
|
|
386
|
+
actions: l.actions
|
|
352
387
|
})
|
|
353
388
|
});
|
|
354
389
|
}
|
|
355
|
-
if (
|
|
356
|
-
title: i(
|
|
357
|
-
subtitle:
|
|
358
|
-
children: /* @__PURE__ */
|
|
359
|
-
|
|
390
|
+
if (l.kind === "windowControl") return /* @__PURE__ */ x(f, {
|
|
391
|
+
title: i(l.title, g),
|
|
392
|
+
subtitle: w,
|
|
393
|
+
children: /* @__PURE__ */ x(y, {
|
|
394
|
+
label: _("dashboard.windowLabel"),
|
|
395
|
+
activePresetId: s ?? c.window.id,
|
|
360
396
|
onChange: (e) => {
|
|
361
|
-
|
|
397
|
+
d?.(e);
|
|
362
398
|
},
|
|
363
|
-
presets:
|
|
399
|
+
presets: m.map((e) => ({
|
|
364
400
|
id: e.id,
|
|
365
|
-
label: i(e.label,
|
|
401
|
+
label: i(e.label, g)
|
|
366
402
|
}))
|
|
367
403
|
})
|
|
368
404
|
});
|
|
369
|
-
if (
|
|
370
|
-
let e =
|
|
405
|
+
if (l.kind === "statusSummary") {
|
|
406
|
+
let e = T();
|
|
371
407
|
if (e == null) {
|
|
372
|
-
let e =
|
|
373
|
-
return /* @__PURE__ */
|
|
408
|
+
let e = l.title == null ? void 0 : i(l.title, g);
|
|
409
|
+
return /* @__PURE__ */ x(f, {
|
|
374
410
|
title: e,
|
|
375
|
-
subtitle:
|
|
376
|
-
children: /* @__PURE__ */
|
|
411
|
+
subtitle: w,
|
|
412
|
+
children: /* @__PURE__ */ x(P, {})
|
|
377
413
|
});
|
|
378
414
|
}
|
|
379
|
-
let t =
|
|
380
|
-
return /* @__PURE__ */
|
|
415
|
+
let t = l.title == null ? void 0 : i(l.title, g);
|
|
416
|
+
return /* @__PURE__ */ x(f, {
|
|
381
417
|
title: t,
|
|
382
|
-
subtitle:
|
|
383
|
-
children: /* @__PURE__ */
|
|
418
|
+
subtitle: w,
|
|
419
|
+
children: /* @__PURE__ */ x(L, { items: e })
|
|
384
420
|
});
|
|
385
421
|
}
|
|
386
|
-
if (
|
|
387
|
-
let e =
|
|
388
|
-
return /* @__PURE__ */
|
|
422
|
+
if (l.kind === "recentItems") {
|
|
423
|
+
let e = l.title == null ? _("dashboard.title") : i(l.title, g);
|
|
424
|
+
return /* @__PURE__ */ x(f, {
|
|
389
425
|
title: e,
|
|
390
|
-
subtitle:
|
|
391
|
-
children: /* @__PURE__ */
|
|
426
|
+
subtitle: w,
|
|
427
|
+
children: /* @__PURE__ */ x(P, {})
|
|
392
428
|
});
|
|
393
429
|
}
|
|
394
|
-
let
|
|
395
|
-
if (
|
|
396
|
-
title: i(
|
|
397
|
-
subtitle:
|
|
398
|
-
children: /* @__PURE__ */
|
|
430
|
+
let E = v[l.entityId];
|
|
431
|
+
if (E?.kind !== "list-detail") return /* @__PURE__ */ x(f, {
|
|
432
|
+
title: i(l.label, g),
|
|
433
|
+
subtitle: w,
|
|
434
|
+
children: /* @__PURE__ */ x(P, {})
|
|
399
435
|
});
|
|
400
|
-
let
|
|
401
|
-
typeof
|
|
402
|
-
let
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
-
title:
|
|
405
|
-
subtitle:
|
|
406
|
-
children: /* @__PURE__ */
|
|
436
|
+
let D = T(), O = _("common.notAvailable");
|
|
437
|
+
typeof D?.count == "number" && (O = D.count);
|
|
438
|
+
let k = i(l.label, g);
|
|
439
|
+
return /* @__PURE__ */ x(f, {
|
|
440
|
+
title: k,
|
|
441
|
+
subtitle: w,
|
|
442
|
+
children: /* @__PURE__ */ S("div", {
|
|
407
443
|
className: a,
|
|
408
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ x("div", {
|
|
409
445
|
className: o,
|
|
410
446
|
children: O
|
|
411
|
-
}), /* @__PURE__ */
|
|
412
|
-
id:
|
|
413
|
-
href:
|
|
414
|
-
target:
|
|
415
|
-
label:
|
|
447
|
+
}), /* @__PURE__ */ x(R, { actions: [{
|
|
448
|
+
id: E.id,
|
|
449
|
+
href: D?.href ?? E.routes.list,
|
|
450
|
+
target: D?.target,
|
|
451
|
+
label: _("dashboard.actions.openList")
|
|
416
452
|
}] })]
|
|
417
453
|
})
|
|
418
454
|
});
|
|
419
|
-
},
|
|
420
|
-
let a = E(r.query,
|
|
421
|
-
return /* @__PURE__ */
|
|
455
|
+
}, q = ({ activeWindowPresetId: e, context: t = M, onWindowPresetChange: n, widget: r, windowPresets: i }) => {
|
|
456
|
+
let a = E(r.query, N(r, t), { fetchPolicy: "store-or-network" });
|
|
457
|
+
return /* @__PURE__ */ x(K, {
|
|
422
458
|
activeWindowPresetId: e,
|
|
423
459
|
context: t,
|
|
424
460
|
data: a,
|
|
@@ -426,14 +462,14 @@ var { useLazyLoadQuery: E } = d, D = { window: {
|
|
|
426
462
|
widget: r,
|
|
427
463
|
windowPresets: i
|
|
428
464
|
});
|
|
429
|
-
},
|
|
465
|
+
}, J = (e) => {
|
|
430
466
|
let { widget: t } = e;
|
|
431
|
-
return t.dataSource === "query" ? /* @__PURE__ */
|
|
467
|
+
return t.dataSource === "query" ? /* @__PURE__ */ x(q, {
|
|
432
468
|
...e,
|
|
433
469
|
widget: t
|
|
434
|
-
}) : /* @__PURE__ */
|
|
470
|
+
}) : /* @__PURE__ */ x(K, { ...e });
|
|
435
471
|
};
|
|
436
472
|
//#endregion
|
|
437
|
-
export {
|
|
473
|
+
export { J as BackofficeDashboardWidgetContent, J as default };
|
|
438
474
|
|
|
439
475
|
//# sourceMappingURL=BackofficeDashboardWidgetContent.js.map
|