@plumile/backoffice-react 0.1.109 → 0.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/auth/AuthRefreshNotice.js +2 -2
- package/lib/esm/auth/AuthRefreshNotice.js.map +1 -1
- package/lib/esm/auth/authRefreshNotice.css.js +1 -0
- package/lib/esm/auth/authRefreshNotice.css.js.map +1 -1
- package/lib/esm/auth/login/EmailCapturePanel.js +12 -9
- package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -1
- package/lib/esm/auth/login/LoginFlow.js +10 -10
- package/lib/esm/auth/login/LoginFlow.js.map +1 -1
- package/lib/esm/auth/login/MethodChooser.js +14 -12
- package/lib/esm/auth/login/MethodChooser.js.map +1 -1
- package/lib/esm/auth/login/MfaChallengeForm.js +13 -10
- package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -1
- package/lib/esm/auth/login/OidcButtons.js +4 -4
- package/lib/esm/auth/login/OidcButtons.js.map +1 -1
- package/lib/esm/auth/login/PasskeyLoginForm.js +13 -10
- package/lib/esm/auth/login/PasskeyLoginForm.js.map +1 -1
- package/lib/esm/auth/login/PasswordLoginPanel.js +8 -8
- package/lib/esm/auth/login/PasswordLoginPanel.js.map +1 -1
- package/lib/esm/auth/login/loginPage.css.js.map +1 -1
- package/lib/esm/auth/pages/AcceptInvitationScreen.js +18 -14
- package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +16 -12
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js +15 -11
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -1
- package/lib/esm/auth/pages/VerifyEmailScreen.js +13 -11
- package/lib/esm/auth/pages/VerifyEmailScreen.js.map +1 -1
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +66 -54
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
- package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js +8 -8
- package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js.map +1 -1
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js.map +1 -1
- package/lib/esm/components/backoffice/actions/toastViewAction.js.map +1 -1
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +13 -12
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js +3 -3
- package/lib/esm/components/backoffice/detail/BackofficeCopyButton.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js +8 -8
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +12 -11
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailField.js +8 -7
- package/lib/esm/components/backoffice/detail/BackofficeDetailField.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js +6 -6
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js +3 -3
- package/lib/esm/components/backoffice/detail/BackofficeDetailHeader.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js +3 -3
- package/lib/esm/components/backoffice/detail/BackofficeDetailPage.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js +4 -4
- package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +30 -29
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js +3 -3
- package/lib/esm/components/backoffice/detail/BackofficeDetailTable.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js +5 -5
- package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js +21 -19
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js +9 -6
- package/lib/esm/components/backoffice/detail/BackofficeKpiStrip.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeLifecycleTimelineSection.js +7 -7
- package/lib/esm/components/backoffice/detail/BackofficeLifecycleTimelineSection.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficePayloadInspectorSection.js +8 -8
- package/lib/esm/components/backoffice/detail/BackofficePayloadInspectorSection.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeReferenceValue.js +5 -5
- package/lib/esm/components/backoffice/detail/BackofficeReferenceValue.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeStatusMetaBadge.js +4 -4
- package/lib/esm/components/backoffice/detail/BackofficeStatusMetaBadge.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeAuditMetadataPanel.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeKpiStrip.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeLifecycleTimelineSection.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficePayloadInspectorSection.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeReferenceValue.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeScopeStack.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeStatusMetaBadge.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +12 -12
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -1
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js +11 -9
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js.map +1 -1
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +18 -17
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -1
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +1 -1
- package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js +25 -23
- package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js.map +1 -1
- package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +14 -14
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js +42 -37
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -1
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -1
- package/lib/esm/components/backoffice/links/BackofficeInlineLink.js +1 -1
- package/lib/esm/components/backoffice/links/BackofficeInlineLink.js.map +1 -1
- package/lib/esm/components/backoffice/links/BackofficeLink.js +1 -1
- package/lib/esm/components/backoffice/links/BackofficeLink.js.map +1 -1
- package/lib/esm/components/backoffice/links/backofficeLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/lists/BackofficeListToolbar.js +1 -1
- package/lib/esm/components/backoffice/lists/BackofficeListToolbar.js.map +1 -1
- package/lib/esm/components/backoffice/lists/backofficeListToolbar.css.js.map +1 -1
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js +1 -1
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js.map +1 -1
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +31 -27
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js +6 -6
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js +4 -4
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js.map +1 -1
- package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js +1 -1
- package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js.map +1 -1
- package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js.map +1 -1
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js +6 -5
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js +10 -10
- package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +10 -10
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeRouteFallback.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js +3 -3
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +191 -178
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +6 -5
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js +10 -9
- package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js.map +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js.map +1 -1
- package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js +11 -9
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +7 -7
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +17 -12
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js +10 -10
- package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js.map +1 -1
- package/lib/esm/hooks/useBackofficeListUrlState.js +2 -1
- package/lib/esm/hooks/useBackofficeListUrlState.js.map +1 -1
- package/lib/esm/pages/BackofficeAcceptInvitationPage.js +1 -1
- package/lib/esm/pages/BackofficeAcceptInvitationPage.js.map +1 -1
- package/lib/esm/pages/BackofficeDashboardPage.js +72 -68
- package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +1 -1
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPage.js +207 -184
- package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailUnknownPageRedirect.js +1 -1
- package/lib/esm/pages/BackofficeEntityDetailUnknownPageRedirect.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.helpers.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.js +143 -139
- package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
- package/lib/esm/pages/BackofficeHubPage.js +10 -9
- package/lib/esm/pages/BackofficeHubPage.js.map +1 -1
- package/lib/esm/pages/BackofficeLayoutPage.js +44 -39
- package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
- package/lib/esm/pages/BackofficeLoginPage.js +1 -1
- package/lib/esm/pages/BackofficeLoginPage.js.map +1 -1
- package/lib/esm/pages/BackofficePasswordResetCompletePage.js +1 -1
- package/lib/esm/pages/BackofficePasswordResetCompletePage.js.map +1 -1
- package/lib/esm/pages/BackofficeVerifyEmailPage.js +1 -1
- package/lib/esm/pages/BackofficeVerifyEmailPage.js.map +1 -1
- package/lib/esm/pages/backofficeDashboardPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -1
- package/lib/esm/pages/dashboard/DashboardMetricGroup.js +10 -9
- package/lib/esm/pages/dashboard/DashboardMetricGroup.js.map +1 -1
- package/lib/esm/pages/dashboard/DashboardPanel.js +3 -3
- package/lib/esm/pages/dashboard/DashboardPanel.js.map +1 -1
- package/lib/esm/pages/dashboard/DashboardQuickActions.js +2 -2
- package/lib/esm/pages/dashboard/DashboardQuickActions.js.map +1 -1
- package/lib/esm/pages/dashboard/DashboardStatusList.js +1 -1
- package/lib/esm/pages/dashboard/DashboardStatusList.js.map +1 -1
- package/lib/esm/pages/dashboard/dashboardMetricGroup.css.js.map +1 -1
- package/lib/esm/pages/dashboard/dashboardPanel.css.js.map +1 -1
- package/lib/esm/pages/dashboard/dashboardQuickActions.css.js.map +1 -1
- package/lib/esm/pages/dashboard/dashboardStatusList.css.js.map +1 -1
- package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
- package/lib/esm/provider/BackofficeProvider.js +22 -20
- package/lib/esm/provider/BackofficeProvider.js.map +1 -1
- package/lib/esm/router/createBackofficeRoutes.js +33 -30
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
- package/lib/esm/storybook/relay/RelayStory.css.js.map +1 -1
- package/lib/types/auth/AuthFlows.stories.d.ts +19 -0
- package/lib/types/auth/AuthFlows.stories.d.ts.map +1 -0
- package/lib/types/auth/AuthRefreshNotice.d.ts +1 -1
- package/lib/types/auth/AuthRefreshNotice.d.ts.map +1 -1
- package/lib/types/auth/authRefreshNotice.css.d.ts.map +1 -1
- package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
- package/lib/types/auth/login/MethodChooser.d.ts.map +1 -1
- package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
- package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
- package/lib/types/auth/login/PasswordLoginPanel.d.ts +1 -1
- package/lib/types/auth/login/PasswordLoginPanel.d.ts.map +1 -1
- package/lib/types/auth/login/loginPage.css.d.ts.map +1 -1
- package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/VerifyEmailScreen.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts +1 -1
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts.map +1 -1
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +1 -1
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeCopyButton.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailErrorList.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailPrimitives.stories.d.ts +17 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailPrimitives.stories.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailTable.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeEntitySummaryHeader.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeKpiStrip.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/backofficeFilterAction.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts.map +1 -1
- package/lib/types/components/backoffice/hub/BackofficeHubTemplate.stories.d.ts +48 -0
- package/lib/types/components/backoffice/hub/BackofficeHubTemplate.stories.d.ts.map +1 -0
- package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +1 -1
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts +1 -1
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -1
- package/lib/types/components/backoffice/lists/BackofficeListToolbar.stories.d.ts +13 -0
- package/lib/types/components/backoffice/lists/BackofficeListToolbar.stories.d.ts.map +1 -0
- package/lib/types/components/backoffice/overview/BackofficeOverviewLayout.stories.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.stories.d.ts +11 -0
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.stories.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
- package/lib/types/components/backoffice/routing/backofficeRoutePendingBar.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.stories.d.ts.map +1 -1
- package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts.map +1 -1
- package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/BackofficeTools.stories.d.ts +17 -0
- package/lib/types/components/backoffice/tools/BackofficeTools.stories.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsDocPanel.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/BackofficeToolsJsonForm.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/backofficeToolsDocPanel.css.d.ts.map +1 -1
- package/lib/types/hooks/useBackofficeListUrlState.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +2 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/backofficeEntityDetailPage.css.d.ts.map +1 -1
- package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts.map +1 -1
- package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts.map +1 -1
- package/lib/types/pages/dashboard/dashboardPanel.css.d.ts.map +1 -1
- package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts.map +1 -1
- package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts.map +1 -1
- package/lib/types/pages/detail/buildTabsItems.d.ts +1 -1
- package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -1
- package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
- package/lib/types/provider/types.d.ts +2 -1
- package/lib/types/provider/types.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts +2 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +14 -10
|
@@ -10,13 +10,26 @@ import { useBackofficeInfiniteScrollSentinel as l } from "../../../hooks/useBack
|
|
|
10
10
|
import { isDevEnv as u } from "../../../relay/envHelpers.js";
|
|
11
11
|
import { controlsRow as ee, embeddedContainer as te, embeddedHeader as ne, filterInput as d } from "./backofficeEntityListScaffold.css.js";
|
|
12
12
|
import { useCallback as f, useEffect as re, useMemo as p, useState as m } from "react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
13
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
+
import { useTranslation as ie } from "react-i18next";
|
|
15
|
+
import { Button as v } from "@plumile/ui/atomic/atoms/button/Button.js";
|
|
16
|
+
import { SimpleSelect as y } from "@plumile/ui/components/select/SimpleSelect.js";
|
|
17
|
+
import { BackofficeEmptyState as b } from "@plumile/ui/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js";
|
|
18
|
+
import { InlineBanner as ae } from "@plumile/ui/backoffice/molecules/inline_banner/InlineBanner.js";
|
|
19
|
+
import { BackofficePageHeader as oe } from "@plumile/ui/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
20
|
+
import { readWhereValue as x, setWhereValue as S } from "@plumile/backoffice-core/filters/where.js";
|
|
21
|
+
import { BackofficeTableSkeleton as se } from "@plumile/ui/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js";
|
|
22
|
+
import { BackofficeFilterDrawer as ce } from "@plumile/ui/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js";
|
|
23
|
+
import { BackofficeFilterField as le } from "@plumile/ui/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js";
|
|
24
|
+
import { BackofficeInfiniteListStatus as ue } from "@plumile/ui/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js";
|
|
25
|
+
import { FilterChipRow as de } from "@plumile/ui/backoffice/molecules/filter_chip_row/FilterChipRow.js";
|
|
26
|
+
import { BackofficeVirtualizedConnectionTable as fe } from "@plumile/ui/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js";
|
|
27
|
+
import { ListPageTemplate as pe } from "@plumile/ui/backoffice/templates/list_page_template/ListPageTemplate.js";
|
|
28
|
+
import { ResponsiveRecordList as me } from "@plumile/ui/components/data-table/ResponsiveRecordList.js";
|
|
29
|
+
import { denseTableClass as he } from "@plumile/ui/shared/backofficeTableDensity.css.js";
|
|
30
|
+
import { resolveBackofficeListRuntimeConfig as ge } from "@plumile/backoffice-core/config/listRuntime.js";
|
|
18
31
|
//#region src/components/backoffice/scaffolds/BackofficeEntityListScaffold.tsx
|
|
19
|
-
var
|
|
32
|
+
var C = (e, t) => e(t), _e = (e, t) => e.fromGraphQL != null && t != null ? e.fromGraphQL(t) : x(t, e.whereKey ?? e.id, e.path), ve = (e, t, n) => {
|
|
20
33
|
if (t == null) return null;
|
|
21
34
|
if (Array.isArray(t)) {
|
|
22
35
|
let e = t.map((e) => {
|
|
@@ -29,25 +42,25 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
29
42
|
if (typeof t == "boolean") return e.kind === "boolean" ? n.booleanLabel(t) : t ? n.fallbackBooleanLabels.yes : n.fallbackBooleanLabels.no;
|
|
30
43
|
if (typeof t != "string" && typeof t != "number") return null;
|
|
31
44
|
let r = String(t).trim();
|
|
32
|
-
return r === "" ? null : e.kind === "entityId" ? /* @__PURE__ */
|
|
45
|
+
return r === "" ? null : e.kind === "entityId" ? /* @__PURE__ */ g(i, {
|
|
33
46
|
entityId: e.entity,
|
|
34
47
|
id: r
|
|
35
48
|
}) : e.kind === "enum" ? n.enumLabel(r) : r;
|
|
36
|
-
},
|
|
49
|
+
}, ye = (e) => {
|
|
37
50
|
let t = new Date(e);
|
|
38
51
|
if (Number.isNaN(t.getTime())) return e;
|
|
39
52
|
let n = t.getTimezoneOffset() * 6e4;
|
|
40
53
|
return new Date(t.getTime() - n).toISOString().slice(0, 16);
|
|
41
|
-
},
|
|
54
|
+
}, be = (e) => {
|
|
42
55
|
let t = e.trim();
|
|
43
56
|
if (t === "") return "";
|
|
44
57
|
let n = new Date(t);
|
|
45
58
|
return Number.isNaN(n.getTime()) ? t : n.toISOString();
|
|
46
|
-
},
|
|
47
|
-
let { t:
|
|
59
|
+
}, w = (i) => {
|
|
60
|
+
let { t: x } = ie(), { t: w } = e(), { config: T, state: E, pushState: D, rows: O, getRowId: k, columns: A, gridTemplateColumns: j, hasNextPage: M, isLoadingMore: N, isRefreshing: xe = !1, onLoadMore: P, onRefresh: F, totalCount: I, emptyState: L, statusBanner: R, header: Se, headerActions: Ce, isLoadingInitial: we = !1, variant: Te = "page", showFilters: Ee = !0 } = i, z = T.list, De = T.listDefaults ?? z.defaultState ?? {
|
|
48
61
|
where: null,
|
|
49
62
|
sort: null
|
|
50
|
-
}, B = p(() =>
|
|
63
|
+
}, B = p(() => A.some((e) => e.isPrimary === !0) || A.length === 0 ? A : A.map((e, t) => {
|
|
51
64
|
let { header: n } = e;
|
|
52
65
|
return t === 0 ? {
|
|
53
66
|
...e,
|
|
@@ -57,32 +70,32 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
57
70
|
...e,
|
|
58
71
|
header: n
|
|
59
72
|
};
|
|
60
|
-
}), [
|
|
73
|
+
}), [A]), V = p(() => {
|
|
61
74
|
let e = [];
|
|
62
75
|
for (let t of z.filters) {
|
|
63
|
-
let n =
|
|
76
|
+
let n = _e(t, E.where), r = ve(t, n, {
|
|
64
77
|
enumLabel: (e) => {
|
|
65
78
|
if (t.kind !== "enum") return e;
|
|
66
79
|
let n = t.options.find((t) => t.value === e);
|
|
67
|
-
return n == null ? e :
|
|
80
|
+
return n == null ? e : C(n.label, x);
|
|
68
81
|
},
|
|
69
82
|
booleanLabel: (e) => {
|
|
70
83
|
if (t.kind === "boolean") {
|
|
71
|
-
if (e && t.trueLabel != null) return
|
|
72
|
-
if (!e && t.falseLabel != null) return
|
|
84
|
+
if (e && t.trueLabel != null) return C(t.trueLabel, x);
|
|
85
|
+
if (!e && t.falseLabel != null) return C(t.falseLabel, x);
|
|
73
86
|
}
|
|
74
|
-
return
|
|
87
|
+
return w(e ? "filters.boolean.yes" : "filters.boolean.no");
|
|
75
88
|
},
|
|
76
89
|
fallbackBooleanLabels: {
|
|
77
|
-
yes:
|
|
78
|
-
no:
|
|
90
|
+
yes: w("filters.boolean.yes"),
|
|
91
|
+
no: w("filters.boolean.no")
|
|
79
92
|
}
|
|
80
93
|
});
|
|
81
94
|
if (r != null) {
|
|
82
95
|
let i = String(n);
|
|
83
96
|
Array.isArray(n) && (i = n.join(","));
|
|
84
|
-
let a = /* @__PURE__ */
|
|
85
|
-
|
|
97
|
+
let a = /* @__PURE__ */ _("span", { children: [
|
|
98
|
+
C(t.label, x),
|
|
86
99
|
": ",
|
|
87
100
|
r
|
|
88
101
|
] });
|
|
@@ -90,9 +103,9 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
90
103
|
id: `${t.id}:${i}`,
|
|
91
104
|
label: a,
|
|
92
105
|
onRemove: () => {
|
|
93
|
-
let e = t.whereKey ?? t.id, n =
|
|
94
|
-
|
|
95
|
-
...
|
|
106
|
+
let e = t.whereKey ?? t.id, n = S(E.where, e, null, t.path);
|
|
107
|
+
D({
|
|
108
|
+
...E,
|
|
96
109
|
where: n
|
|
97
110
|
});
|
|
98
111
|
}
|
|
@@ -102,24 +115,24 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
102
115
|
return e;
|
|
103
116
|
}, [
|
|
104
117
|
z.filters,
|
|
118
|
+
D,
|
|
105
119
|
E,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
b
|
|
120
|
+
w,
|
|
121
|
+
x
|
|
109
122
|
]), H = f(() => {
|
|
110
|
-
|
|
111
|
-
}, [De,
|
|
112
|
-
let n = e.whereKey ?? e.id, r =
|
|
123
|
+
D({ ...De });
|
|
124
|
+
}, [De, D]), [Oe, ke] = m(!1), [U, Ae] = m(""), [W, je] = m(null), G = f((e) => {
|
|
125
|
+
let n = e.whereKey ?? e.id, r = _e(e, E.where), i = "";
|
|
113
126
|
typeof r == "string" && (i = r), typeof r == "number" && Number.isFinite(r) && (i = String(r));
|
|
114
|
-
let s =
|
|
127
|
+
let s = C(e.label, x);
|
|
115
128
|
if (e.kind === "text") {
|
|
116
|
-
let t =
|
|
117
|
-
return e.placeholderText != null && (t =
|
|
118
|
-
value:
|
|
129
|
+
let t = w("filters.placeholders.search", { label: e.placeholderLabel == null ? s : C(e.placeholderLabel, x) });
|
|
130
|
+
return e.placeholderText != null && (t = C(e.placeholderText, x)), /* @__PURE__ */ g(o, {
|
|
131
|
+
value: ye(i),
|
|
119
132
|
onApply: (t) => {
|
|
120
|
-
let r =
|
|
121
|
-
|
|
122
|
-
...
|
|
133
|
+
let r = be(t), i = S(E.where, n, r, e.path);
|
|
134
|
+
D({
|
|
135
|
+
...E,
|
|
123
136
|
where: i
|
|
124
137
|
});
|
|
125
138
|
},
|
|
@@ -129,13 +142,13 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
129
142
|
});
|
|
130
143
|
}
|
|
131
144
|
if (e.kind === "datetime") {
|
|
132
|
-
let t =
|
|
133
|
-
return e.placeholderText != null && (t =
|
|
145
|
+
let t = w("filters.placeholders.search", { label: e.placeholderLabel == null ? s : C(e.placeholderLabel, x) });
|
|
146
|
+
return e.placeholderText != null && (t = C(e.placeholderText, x)), /* @__PURE__ */ g(o, {
|
|
134
147
|
value: i,
|
|
135
148
|
onApply: (t) => {
|
|
136
|
-
let r =
|
|
137
|
-
|
|
138
|
-
...
|
|
149
|
+
let r = S(E.where, n, t, e.path);
|
|
150
|
+
D({
|
|
151
|
+
...E,
|
|
139
152
|
where: r
|
|
140
153
|
});
|
|
141
154
|
},
|
|
@@ -146,13 +159,13 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
146
159
|
});
|
|
147
160
|
}
|
|
148
161
|
if (e.kind === "number") {
|
|
149
|
-
let t =
|
|
150
|
-
return e.placeholderText != null && (t =
|
|
162
|
+
let t = w("filters.placeholders.search", { label: e.placeholderLabel == null ? s : C(e.placeholderLabel, x) });
|
|
163
|
+
return e.placeholderText != null && (t = C(e.placeholderText, x)), /* @__PURE__ */ g(o, {
|
|
151
164
|
value: i,
|
|
152
165
|
onApply: (t) => {
|
|
153
|
-
let r = t.trim(), i = r === "" ? null : Number(r), a =
|
|
154
|
-
|
|
155
|
-
...
|
|
166
|
+
let r = t.trim(), i = r === "" ? null : Number(r), a = S(E.where, n, Number.isFinite(i) ? i : null, e.path);
|
|
167
|
+
D({
|
|
168
|
+
...E,
|
|
156
169
|
where: a
|
|
157
170
|
});
|
|
158
171
|
},
|
|
@@ -163,23 +176,23 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
163
176
|
type: "number"
|
|
164
177
|
});
|
|
165
178
|
}
|
|
166
|
-
if (e.kind === "enum") return /* @__PURE__ */
|
|
179
|
+
if (e.kind === "enum") return /* @__PURE__ */ g(y, {
|
|
167
180
|
options: [{
|
|
168
181
|
id: "any",
|
|
169
182
|
value: "",
|
|
170
|
-
label:
|
|
183
|
+
label: w("filters.all", { label: s })
|
|
171
184
|
}, ...e.options.map((e) => ({
|
|
172
185
|
id: e.value,
|
|
173
186
|
value: e.value,
|
|
174
|
-
label:
|
|
187
|
+
label: C(e.label, x)
|
|
175
188
|
}))],
|
|
176
189
|
value: i,
|
|
177
190
|
size: "small",
|
|
178
191
|
ariaLabel: s,
|
|
179
192
|
onChange: (t) => {
|
|
180
|
-
let r =
|
|
181
|
-
|
|
182
|
-
...
|
|
193
|
+
let r = S(E.where, n, t, e.path);
|
|
194
|
+
D({
|
|
195
|
+
...E,
|
|
183
196
|
where: r
|
|
184
197
|
});
|
|
185
198
|
}
|
|
@@ -189,13 +202,13 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
189
202
|
typeof r == "boolean" && (t = r);
|
|
190
203
|
let i = "";
|
|
191
204
|
t === !0 && (i = "true"), t === !1 && (i = "false");
|
|
192
|
-
let a = e.trueLabel == null ?
|
|
193
|
-
return /* @__PURE__ */
|
|
205
|
+
let a = e.trueLabel == null ? w("filters.boolean.yes") : C(e.trueLabel, x), o = e.falseLabel == null ? w("filters.boolean.no") : C(e.falseLabel, x);
|
|
206
|
+
return /* @__PURE__ */ g(y, {
|
|
194
207
|
options: [
|
|
195
208
|
{
|
|
196
209
|
id: "any",
|
|
197
210
|
value: "",
|
|
198
|
-
label:
|
|
211
|
+
label: w("filters.all", { label: s })
|
|
199
212
|
},
|
|
200
213
|
{
|
|
201
214
|
id: "true",
|
|
@@ -214,26 +227,26 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
214
227
|
onChange: (t) => {
|
|
215
228
|
let r = null;
|
|
216
229
|
t === "true" && (r = !0), t === "false" && (r = !1);
|
|
217
|
-
let i =
|
|
218
|
-
|
|
219
|
-
...
|
|
230
|
+
let i = S(E.where, n, r, e.path);
|
|
231
|
+
D({
|
|
232
|
+
...E,
|
|
220
233
|
where: i
|
|
221
234
|
});
|
|
222
235
|
}
|
|
223
236
|
});
|
|
224
237
|
}
|
|
225
238
|
let c = (() => {
|
|
226
|
-
if (e.pickerScope != null) return typeof e.pickerScope == "function" ? e.pickerScope(
|
|
239
|
+
if (e.pickerScope != null) return typeof e.pickerScope == "function" ? e.pickerScope(E.where) : e.pickerScope;
|
|
227
240
|
})(), l = null;
|
|
228
241
|
typeof r == "string" && (l = r);
|
|
229
242
|
let u = (r = null, i = !1) => {
|
|
230
243
|
let a = r?.trim() ?? "";
|
|
231
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ g(t, {
|
|
232
245
|
label: s,
|
|
233
246
|
value: l,
|
|
234
247
|
displayValue: a,
|
|
235
248
|
isResolving: i,
|
|
236
|
-
placeholder:
|
|
249
|
+
placeholder: w("filters.placeholders.anyEntity", { label: s }),
|
|
237
250
|
onPick: () => {
|
|
238
251
|
je({
|
|
239
252
|
entity: e.entity,
|
|
@@ -244,27 +257,27 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
244
257
|
});
|
|
245
258
|
},
|
|
246
259
|
onClear: () => {
|
|
247
|
-
let t =
|
|
248
|
-
|
|
249
|
-
...
|
|
260
|
+
let t = S(E.where, n, null, e.path);
|
|
261
|
+
D({
|
|
262
|
+
...E,
|
|
250
263
|
where: t
|
|
251
264
|
});
|
|
252
265
|
}
|
|
253
266
|
});
|
|
254
267
|
};
|
|
255
|
-
return l == null || l.trim() === "" ? u() : /* @__PURE__ */
|
|
268
|
+
return l == null || l.trim() === "" ? u() : /* @__PURE__ */ g(a, {
|
|
256
269
|
entityId: e.entity,
|
|
257
270
|
id: l,
|
|
258
271
|
children: (e, t) => {
|
|
259
272
|
let n = t?.status === "loading";
|
|
260
|
-
return u(n ?
|
|
273
|
+
return u(n ? w("common.loading") : e, n);
|
|
261
274
|
}
|
|
262
275
|
});
|
|
263
276
|
}, [
|
|
277
|
+
D,
|
|
264
278
|
E,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
b
|
|
279
|
+
w,
|
|
280
|
+
x
|
|
268
281
|
]), Me = p(() => z.filters.some((e) => e.placement != null), [z.filters]), K = p(() => {
|
|
269
282
|
if (z.filters.length === 0) return [];
|
|
270
283
|
let e = z.ui?.toolbar?.maxPromotedFilters ?? 3;
|
|
@@ -275,9 +288,9 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
275
288
|
Me
|
|
276
289
|
]), q = p(() => z.filters.filter((e) => e.placement == null ? !0 : e.placement === "drawer" || e.placement === "both"), [z.filters]), J = p(() => K.find((e) => e.kind === "text"), [K]), Ne = p(() => {
|
|
277
290
|
let e = K.filter((e) => e !== J);
|
|
278
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
291
|
+
return e.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
279
292
|
className: ee,
|
|
280
|
-
children: e.map((e) => /* @__PURE__ */
|
|
293
|
+
children: e.map((e) => /* @__PURE__ */ g("span", { children: G(e) }, e.id))
|
|
281
294
|
});
|
|
282
295
|
}, [
|
|
283
296
|
K,
|
|
@@ -286,39 +299,39 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
286
299
|
]), Pe = p(() => J == null ? null : G(J), [G, J]), Fe = p(() => {
|
|
287
300
|
if (z.sorts.length === 0) return null;
|
|
288
301
|
let e = z.sorts[0];
|
|
289
|
-
return e == null ? null : /* @__PURE__ */
|
|
302
|
+
return e == null ? null : /* @__PURE__ */ g(y, {
|
|
290
303
|
options: z.sorts.map((e) => ({
|
|
291
304
|
id: e.id,
|
|
292
305
|
value: e.id,
|
|
293
|
-
label:
|
|
306
|
+
label: C(e.label, x)
|
|
294
307
|
})),
|
|
295
|
-
value:
|
|
308
|
+
value: E.sort ?? e.id,
|
|
296
309
|
size: "small",
|
|
297
|
-
ariaLabel:
|
|
310
|
+
ariaLabel: w("list.sort.label"),
|
|
298
311
|
onChange: (e) => {
|
|
299
|
-
|
|
300
|
-
...
|
|
312
|
+
D({
|
|
313
|
+
...E,
|
|
301
314
|
sort: e
|
|
302
315
|
});
|
|
303
316
|
}
|
|
304
317
|
});
|
|
305
318
|
}, [
|
|
306
319
|
z.sorts,
|
|
320
|
+
D,
|
|
307
321
|
E,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
]), Ie = p(() => V.length === 0 ? null : /* @__PURE__ */ v(de, {
|
|
322
|
+
w,
|
|
323
|
+
x
|
|
324
|
+
]), Ie = p(() => V.length === 0 ? null : /* @__PURE__ */ g(de, {
|
|
312
325
|
chips: V,
|
|
313
326
|
onClearAll: H
|
|
314
327
|
}), [V, H]), Le = p(() => {
|
|
315
328
|
if (q.length === 0) return [];
|
|
316
329
|
let e = U.trim().toLowerCase(), t = [];
|
|
317
330
|
for (let n of q) {
|
|
318
|
-
let r =
|
|
331
|
+
let r = C(n.label, x);
|
|
319
332
|
(e === "" || r.toLowerCase().includes(e)) && t.push({
|
|
320
333
|
id: n.id,
|
|
321
|
-
node: /* @__PURE__ */
|
|
334
|
+
node: /* @__PURE__ */ g(le, {
|
|
322
335
|
label: r,
|
|
323
336
|
children: G(n)
|
|
324
337
|
})
|
|
@@ -326,19 +339,19 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
326
339
|
}
|
|
327
340
|
return t.length === 0 ? [] : [{
|
|
328
341
|
id: "backoffice.filters.sections.default",
|
|
329
|
-
title:
|
|
342
|
+
title: w("filters.sections.default"),
|
|
330
343
|
items: t
|
|
331
344
|
}];
|
|
332
345
|
}, [
|
|
333
346
|
q,
|
|
334
347
|
U,
|
|
335
348
|
G,
|
|
336
|
-
|
|
337
|
-
|
|
349
|
+
w,
|
|
350
|
+
x
|
|
338
351
|
]), Re = p(() => {
|
|
339
352
|
if (q.length === 0) return null;
|
|
340
|
-
let e = V.length, t =
|
|
341
|
-
return e > 0 && (t =
|
|
353
|
+
let e = V.length, t = w("filters.trigger");
|
|
354
|
+
return e > 0 && (t = w("filters.triggerWithCount", { count: e })), /* @__PURE__ */ g(v, {
|
|
342
355
|
type: "button",
|
|
343
356
|
variant: "secondary",
|
|
344
357
|
size: "small",
|
|
@@ -350,8 +363,8 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
350
363
|
}, [
|
|
351
364
|
V.length,
|
|
352
365
|
q.length,
|
|
353
|
-
|
|
354
|
-
]), ze = /* @__PURE__ */
|
|
366
|
+
w
|
|
367
|
+
]), ze = /* @__PURE__ */ g(ce, {
|
|
355
368
|
isOpen: Oe,
|
|
356
369
|
onClose: () => {
|
|
357
370
|
ke(!1), Ae("");
|
|
@@ -362,39 +375,39 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
362
375
|
Ae(e);
|
|
363
376
|
},
|
|
364
377
|
onReset: H,
|
|
365
|
-
emptyLabel: U.trim() === "" ? void 0 :
|
|
366
|
-
}), Be = p(() =>
|
|
378
|
+
emptyLabel: U.trim() === "" ? void 0 : w("filters.drawer.emptySearchResults")
|
|
379
|
+
}), Be = p(() => L ?? (we ? /* @__PURE__ */ g(se, {
|
|
367
380
|
variant: "embedded",
|
|
368
|
-
ariaLabel:
|
|
369
|
-
}) : V.length > 0 ? /* @__PURE__ */
|
|
370
|
-
title:
|
|
371
|
-
description:
|
|
372
|
-
actions: /* @__PURE__ */ v
|
|
381
|
+
ariaLabel: w("common.loading")
|
|
382
|
+
}) : V.length > 0 ? /* @__PURE__ */ g(b, {
|
|
383
|
+
title: w("emptyState.listEmpty.title"),
|
|
384
|
+
description: w("emptyState.listEmptyFiltered.description"),
|
|
385
|
+
actions: /* @__PURE__ */ g(v, {
|
|
373
386
|
type: "button",
|
|
374
387
|
variant: "secondary",
|
|
375
388
|
size: "small",
|
|
376
389
|
onClick: H,
|
|
377
|
-
children:
|
|
390
|
+
children: w("emptyState.listEmptyFiltered.actions.reset")
|
|
378
391
|
})
|
|
379
|
-
}) : /* @__PURE__ */
|
|
380
|
-
title:
|
|
381
|
-
description:
|
|
392
|
+
}) : /* @__PURE__ */ g(b, {
|
|
393
|
+
title: w("emptyState.listEmpty.title"),
|
|
394
|
+
description: w("emptyState.listEmpty.description")
|
|
382
395
|
})), [
|
|
383
396
|
V.length,
|
|
384
|
-
|
|
397
|
+
L,
|
|
385
398
|
H,
|
|
386
399
|
we,
|
|
387
|
-
|
|
388
|
-
]), Ve = p(() => typeof
|
|
389
|
-
shown:
|
|
390
|
-
total:
|
|
391
|
-
}) }) :
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
400
|
+
w
|
|
401
|
+
]), Ve = p(() => typeof I == "number" ? /* @__PURE__ */ g("span", { children: w("list.showing", {
|
|
402
|
+
shown: O.length,
|
|
403
|
+
total: I
|
|
404
|
+
}) }) : O.length === 0 ? null : /* @__PURE__ */ g("span", { children: w("list.loaded", { count: O.length }) }), [
|
|
405
|
+
O.length,
|
|
406
|
+
w,
|
|
407
|
+
I
|
|
395
408
|
]), Y = p(() => {
|
|
396
409
|
let e = z.ui?.displayMode ?? z.responsive?.mode ?? "auto";
|
|
397
|
-
return
|
|
410
|
+
return ge({
|
|
398
411
|
kind: z.kind,
|
|
399
412
|
displayMode: e,
|
|
400
413
|
ui: z.ui
|
|
@@ -403,147 +416,147 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
403
416
|
z.kind,
|
|
404
417
|
z.responsive?.mode,
|
|
405
418
|
z.ui
|
|
406
|
-
]), X = typeof
|
|
419
|
+
]), X = typeof I == "number" && O.length < I && !M;
|
|
407
420
|
re(() => {
|
|
408
421
|
!X || !Y.infiniteScroll.showInconsistentPageInfo || !u() || console.warn("Backoffice list received inconsistent pageInfo: loaded rows are lower than totalCount but hasNextPage is false.", {
|
|
409
|
-
entityId:
|
|
410
|
-
loadedCount:
|
|
411
|
-
totalCount:
|
|
422
|
+
entityId: T.id,
|
|
423
|
+
loadedCount: O.length,
|
|
424
|
+
totalCount: I
|
|
412
425
|
});
|
|
413
426
|
}, [
|
|
414
|
-
|
|
427
|
+
T.id,
|
|
415
428
|
X,
|
|
416
|
-
|
|
429
|
+
O.length,
|
|
417
430
|
Y.infiniteScroll.showInconsistentPageInfo,
|
|
418
|
-
|
|
431
|
+
I
|
|
419
432
|
]);
|
|
420
433
|
let Z = i.virtualize === !0 || Y.virtualization.enabled, { sentinelRef: He } = l({
|
|
421
434
|
enabled: !Z && Y.infiniteScroll.enabled,
|
|
422
|
-
hasNextPage:
|
|
423
|
-
isLoading:
|
|
424
|
-
onIntersect:
|
|
435
|
+
hasNextPage: M,
|
|
436
|
+
isLoading: N,
|
|
437
|
+
onIntersect: P,
|
|
425
438
|
rootMargin: Y.infiniteScroll.rootMargin,
|
|
426
439
|
threshold: Y.infiniteScroll.threshold
|
|
427
|
-
}), Q =
|
|
440
|
+
}), Q = Se?.title ?? C(z.title, x), Ue = Se?.subtitle, We = B.find((e) => e.mobileRole === "action" || e.id === "actions"), Ge = z.ui?.displayMode ?? z.responsive?.mode ?? "auto", Ke = z.ui?.density ?? z.responsive?.density ?? "compact", qe = /* @__PURE__ */ g(n, {
|
|
428
441
|
fallback: (e) => {
|
|
429
442
|
let { reset: t } = e;
|
|
430
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ g(ae, {
|
|
431
444
|
tone: "danger",
|
|
432
|
-
title:
|
|
433
|
-
actions: /* @__PURE__ */ v
|
|
445
|
+
title: w("list.errors.title"),
|
|
446
|
+
actions: /* @__PURE__ */ g(v, {
|
|
434
447
|
type: "button",
|
|
435
448
|
variant: "secondary",
|
|
436
449
|
size: "small",
|
|
437
450
|
onClick: () => {
|
|
438
|
-
t(),
|
|
451
|
+
t(), F?.();
|
|
439
452
|
},
|
|
440
|
-
children:
|
|
453
|
+
children: w("list.actions.retry")
|
|
441
454
|
}),
|
|
442
|
-
children:
|
|
455
|
+
children: w("list.errors.tableFailed")
|
|
443
456
|
});
|
|
444
457
|
},
|
|
445
|
-
children: Z ? /* @__PURE__ */
|
|
458
|
+
children: Z ? /* @__PURE__ */ g(fe, {
|
|
446
459
|
columns: B,
|
|
447
|
-
rows:
|
|
448
|
-
getRowId:
|
|
460
|
+
rows: O,
|
|
461
|
+
getRowId: k,
|
|
449
462
|
emptyState: Be,
|
|
450
463
|
className: he,
|
|
451
|
-
gridTemplateColumns:
|
|
464
|
+
gridTemplateColumns: j,
|
|
452
465
|
virtualization: Y.virtualization,
|
|
453
466
|
infiniteScroll: {
|
|
454
467
|
enabled: Y.infiniteScroll.enabled,
|
|
455
468
|
thresholdPx: Y.infiniteScroll.thresholdPx,
|
|
456
469
|
autoLoad: Y.infiniteScroll.autoLoad
|
|
457
470
|
},
|
|
458
|
-
hasNextPage:
|
|
459
|
-
isLoadingMore:
|
|
460
|
-
onLoadMore:
|
|
461
|
-
}) : /* @__PURE__ */
|
|
471
|
+
hasNextPage: M,
|
|
472
|
+
isLoadingMore: N,
|
|
473
|
+
onLoadMore: P
|
|
474
|
+
}) : /* @__PURE__ */ g(me, {
|
|
462
475
|
columns: B,
|
|
463
|
-
rows:
|
|
464
|
-
getRowId:
|
|
476
|
+
rows: O,
|
|
477
|
+
getRowId: k,
|
|
465
478
|
emptyState: Be,
|
|
466
479
|
className: he,
|
|
467
|
-
gridTemplateColumns:
|
|
480
|
+
gridTemplateColumns: j,
|
|
468
481
|
mode: Ge,
|
|
469
482
|
density: Ke,
|
|
470
483
|
renderAction: (e) => We?.cell(e) ?? null
|
|
471
484
|
})
|
|
472
|
-
}), Je = Ee ? /* @__PURE__ */
|
|
473
|
-
primaryFilters: Pe != null || Ne != null ? /* @__PURE__ */
|
|
485
|
+
}), Je = Ee ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(s, {
|
|
486
|
+
primaryFilters: Pe != null || Ne != null ? /* @__PURE__ */ _(h, { children: [Pe, Ne] }) : null,
|
|
474
487
|
filterDrawerTrigger: Re,
|
|
475
488
|
sortControl: Fe,
|
|
476
|
-
utilityActions:
|
|
489
|
+
utilityActions: F == null ? null : /* @__PURE__ */ g(v, {
|
|
477
490
|
type: "button",
|
|
478
491
|
variant: "secondary",
|
|
479
492
|
size: "small",
|
|
480
|
-
isLoading:
|
|
481
|
-
loadingLabel:
|
|
493
|
+
isLoading: xe,
|
|
494
|
+
loadingLabel: w("list.actions.refreshing"),
|
|
482
495
|
onClick: () => {
|
|
483
|
-
|
|
496
|
+
F();
|
|
484
497
|
},
|
|
485
|
-
children:
|
|
498
|
+
children: w("list.actions.refresh")
|
|
486
499
|
}),
|
|
487
500
|
activeFilters: Ie,
|
|
488
501
|
density: "compact"
|
|
489
|
-
}), ze] }) : null, Ye = /* @__PURE__ */
|
|
502
|
+
}), ze] }) : null, Ye = /* @__PURE__ */ _("div", { children: [qe, /* @__PURE__ */ g(r, {
|
|
490
503
|
isOpen: W != null,
|
|
491
|
-
entity: W?.entity ??
|
|
492
|
-
title: W?.label ??
|
|
504
|
+
entity: W?.entity ?? T.id,
|
|
505
|
+
title: W?.label ?? w("picker.title"),
|
|
493
506
|
scope: W?.scope,
|
|
494
507
|
onClose: () => {
|
|
495
508
|
je(null);
|
|
496
509
|
},
|
|
497
510
|
onSelectId: (e) => {
|
|
498
511
|
if (W == null) return;
|
|
499
|
-
let t =
|
|
500
|
-
|
|
501
|
-
...
|
|
512
|
+
let t = S(E.where, W.whereKey, e, W.path);
|
|
513
|
+
D({
|
|
514
|
+
...E,
|
|
502
515
|
where: t
|
|
503
516
|
});
|
|
504
517
|
}
|
|
505
|
-
})] }), $ =
|
|
518
|
+
})] }), $ = O.length > 0 || N || M ? /* @__PURE__ */ _(h, { children: [!Z && /* @__PURE__ */ g("div", {
|
|
506
519
|
ref: He,
|
|
507
520
|
"aria-hidden": "true"
|
|
508
|
-
}), /* @__PURE__ */
|
|
509
|
-
loadedCount:
|
|
510
|
-
totalCount:
|
|
511
|
-
hasNextPage:
|
|
512
|
-
isLoading:
|
|
513
|
-
pageInfoState: X ? "inconsistent" :
|
|
521
|
+
}), /* @__PURE__ */ g(ue, {
|
|
522
|
+
loadedCount: O.length,
|
|
523
|
+
totalCount: I,
|
|
524
|
+
hasNextPage: M,
|
|
525
|
+
isLoading: N,
|
|
526
|
+
pageInfoState: X ? "inconsistent" : N ? "loading" : M ? "ready" : "complete",
|
|
514
527
|
loadedLabel: Ve,
|
|
515
|
-
loadingLabel:
|
|
516
|
-
endLabel:
|
|
528
|
+
loadingLabel: w("list.loadMore.loading"),
|
|
529
|
+
endLabel: w("list.loadMore.end")
|
|
517
530
|
})] }) : null;
|
|
518
|
-
return Te === "embedded" ? /* @__PURE__ */
|
|
519
|
-
config:
|
|
520
|
-
state:
|
|
521
|
-
pushState:
|
|
522
|
-
children: /* @__PURE__ */
|
|
531
|
+
return Te === "embedded" ? /* @__PURE__ */ g(c, {
|
|
532
|
+
config: T,
|
|
533
|
+
state: E,
|
|
534
|
+
pushState: D,
|
|
535
|
+
children: /* @__PURE__ */ _("div", {
|
|
523
536
|
className: te,
|
|
524
537
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ g("div", {
|
|
526
539
|
className: ne,
|
|
527
540
|
children: Q
|
|
528
541
|
}),
|
|
529
542
|
Je,
|
|
530
|
-
|
|
543
|
+
R,
|
|
531
544
|
Ye,
|
|
532
545
|
$
|
|
533
546
|
]
|
|
534
547
|
})
|
|
535
|
-
}) : /* @__PURE__ */
|
|
536
|
-
config:
|
|
537
|
-
state:
|
|
538
|
-
pushState:
|
|
539
|
-
children: /* @__PURE__ */
|
|
540
|
-
headerNode: /* @__PURE__ */
|
|
548
|
+
}) : /* @__PURE__ */ g(c, {
|
|
549
|
+
config: T,
|
|
550
|
+
state: E,
|
|
551
|
+
pushState: D,
|
|
552
|
+
children: /* @__PURE__ */ g(pe, {
|
|
553
|
+
headerNode: /* @__PURE__ */ g(oe, {
|
|
541
554
|
title: Q,
|
|
542
555
|
subtitle: Ue,
|
|
543
556
|
actions: Ce
|
|
544
557
|
}),
|
|
545
558
|
toolbarNode: Je,
|
|
546
|
-
statusNode:
|
|
559
|
+
statusNode: R,
|
|
547
560
|
tableNode: Ye,
|
|
548
561
|
tableFooterNode: $,
|
|
549
562
|
presentation: "flat"
|
|
@@ -551,6 +564,6 @@ var S = (e, t) => e(t), ve = (e, t) => e.fromGraphQL != null && t != null ? e.fr
|
|
|
551
564
|
});
|
|
552
565
|
};
|
|
553
566
|
//#endregion
|
|
554
|
-
export {
|
|
567
|
+
export { w as BackofficeEntityListScaffold, w as default };
|
|
555
568
|
|
|
556
569
|
//# sourceMappingURL=BackofficeEntityListScaffold.js.map
|