@plumile/backoffice-react 0.1.59
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/LICENSE +21 -0
- package/lib/esm/auth/login/AuthPanel.js +28 -0
- package/lib/esm/auth/login/AuthPanel.js.map +1 -0
- package/lib/esm/auth/login/EmailCapturePanel.js +52 -0
- package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -0
- package/lib/esm/auth/login/LoginFlow.js +130 -0
- package/lib/esm/auth/login/LoginFlow.js.map +1 -0
- package/lib/esm/auth/login/MethodChooser.js +51 -0
- package/lib/esm/auth/login/MethodChooser.js.map +1 -0
- package/lib/esm/auth/login/MfaChallengeForm.js +83 -0
- package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -0
- package/lib/esm/auth/login/OidcButtons.js +29 -0
- package/lib/esm/auth/login/OidcButtons.js.map +1 -0
- package/lib/esm/auth/login/PasskeyLoginForm.js +84 -0
- package/lib/esm/auth/login/PasskeyLoginForm.js.map +1 -0
- package/lib/esm/auth/login/PasswordLoginPanel.js +37 -0
- package/lib/esm/auth/login/PasswordLoginPanel.js.map +1 -0
- package/lib/esm/auth/login/loginPage.css.js +8 -0
- package/lib/esm/auth/login/loginPage.css.js.map +1 -0
- package/lib/esm/auth/login/synchronizeAuthStatusQuery.js +9 -0
- package/lib/esm/auth/login/synchronizeAuthStatusQuery.js.map +1 -0
- package/lib/esm/auth/pages/AcceptInvitationScreen.js +120 -0
- package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -0
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +105 -0
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -0
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js +88 -0
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -0
- package/lib/esm/auth/pages/VerifyEmailScreen.js +65 -0
- package/lib/esm/auth/pages/VerifyEmailScreen.js.map +1 -0
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +525 -0
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -0
- package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js +11 -0
- package/lib/esm/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js.map +1 -0
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js +8 -0
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js.map +1 -0
- package/lib/esm/components/backoffice/actions/toastViewAction.js +27 -0
- package/lib/esm/components/backoffice/actions/toastViewAction.js.map +1 -0
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +60 -0
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js +22 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +41 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailField.js +31 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailField.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js +8 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js +24 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailFlagTag.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js +20 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailLayout.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js +18 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailPayload.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js +49 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationLink.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationList.js +11 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationList.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +115 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js +33 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailSection.js.map +1 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js +18 -0
- package/lib/esm/components/backoffice/detail/BackofficeDetailTaggedValue.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js +15 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailField.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailSection.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js +8 -0
- package/lib/esm/components/backoffice/detail/backofficeDetailTaggedValue.css.js.map +1 -0
- package/lib/esm/components/backoffice/detail/detailPayloadUtils.js +17 -0
- package/lib/esm/components/backoffice/detail/detailPayloadUtils.js.map +1 -0
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js +21 -0
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js.map +1 -0
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +43 -0
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -0
- package/lib/esm/components/backoffice/filters/EntityFilterValue.js +46 -0
- package/lib/esm/components/backoffice/filters/EntityFilterValue.js.map +1 -0
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +51 -0
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -0
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js +8 -0
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +1 -0
- package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js +8 -0
- package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +1 -0
- package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +8 -0
- package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js +10 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +38 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.js +12 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js +11 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js +16 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +8 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/buildBreadcrumbs.js +48 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/buildBreadcrumbs.js.map +1 -0
- package/lib/esm/components/backoffice/layout/breadcrumb/types.js +0 -0
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js +183 -0
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -0
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js +18 -0
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -0
- package/lib/esm/components/backoffice/layout/sidebarUtils.js +44 -0
- package/lib/esm/components/backoffice/layout/sidebarUtils.js.map +1 -0
- package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +7 -0
- package/lib/esm/components/backoffice/list/RowFlagsCell.css.js.map +1 -0
- package/lib/esm/components/backoffice/list/RowFlagsCell.js +37 -0
- package/lib/esm/components/backoffice/list/RowFlagsCell.js.map +1 -0
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js +31 -0
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js.map +1 -0
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js +8 -0
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +107 -0
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +8 -0
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js +24 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerList.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js +23 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerRowBase.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js +24 -0
- package/lib/esm/components/backoffice/pickers/shared/EntityPickerShell.js.map +1 -0
- package/lib/esm/components/backoffice/pickers/types.js +0 -0
- package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js +35 -0
- package/lib/esm/components/backoffice/refs/BackofficeEntityIdRef.js.map +1 -0
- package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js +54 -0
- package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js.map +1 -0
- package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js +8 -0
- package/lib/esm/components/backoffice/refs/backofficeEntityIdRef.css.js.map +1 -0
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js +8 -0
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentBoundary.js +24 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentBoundary.js.map +1 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js +39 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js +47 -0
- package/lib/esm/components/backoffice/routing/BackofficeContentFallback.js.map +1 -0
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +22 -0
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +1 -0
- package/lib/esm/components/backoffice/routing/BackofficeRoutePendingBar.js +12 -0
- package/lib/esm/components/backoffice/routing/BackofficeRoutePendingBar.js.map +1 -0
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js +8 -0
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +1 -0
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js +8 -0
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +1 -0
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js +8 -0
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +1 -0
- package/lib/esm/components/backoffice/routing/backofficeRouteFallback.css.js +8 -0
- package/lib/esm/components/backoffice/routing/backofficeRouteFallback.css.js.map +1 -0
- package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js +8 -0
- package/lib/esm/components/backoffice/routing/backofficeRoutePendingBar.css.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js +11 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +446 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeListFilterContext.js +40 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeListFilterContext.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +25 -0
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js +8 -0
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +1 -0
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js +8 -0
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +1 -0
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js +12 -0
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js.map +1 -0
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js +8 -0
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js +40 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +48 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +58 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsPageLayout.js +81 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsPageLayout.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsParamsContext.js +16 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsParamsContext.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsProjectPicker.js +56 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsProjectPicker.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js +20 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsQueryBoundary.js.map +1 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsScopePicker.js +56 -0
- package/lib/esm/components/backoffice/tools/BackofficeToolsScopePicker.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsPageLayout.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsPageLayout.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsProjectPicker.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsProjectPicker.css.js.map +1 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsScopePicker.css.js +8 -0
- package/lib/esm/components/backoffice/tools/backofficeToolsScopePicker.css.js.map +1 -0
- package/lib/esm/filters/filterHelpers.js +36 -0
- package/lib/esm/filters/filterHelpers.js.map +1 -0
- package/lib/esm/hooks/useAuth.js +439 -0
- package/lib/esm/hooks/useAuth.js.map +1 -0
- package/lib/esm/hooks/useBackofficeAuth.js +89 -0
- package/lib/esm/hooks/useBackofficeAuth.js.map +1 -0
- package/lib/esm/hooks/useBackofficeListRefetch.js +40 -0
- package/lib/esm/hooks/useBackofficeListRefetch.js.map +1 -0
- package/lib/esm/hooks/useBackofficeListUrlState.js +37 -0
- package/lib/esm/hooks/useBackofficeListUrlState.js.map +1 -0
- package/lib/esm/hooks/useBackofficeLoadMore.js +18 -0
- package/lib/esm/hooks/useBackofficeLoadMore.js.map +1 -0
- package/lib/esm/hooks/useBackofficeSessionAuth.js +28 -0
- package/lib/esm/hooks/useBackofficeSessionAuth.js.map +1 -0
- package/lib/esm/hooks/useBackofficeSidebarPins.js +70 -0
- package/lib/esm/hooks/useBackofficeSidebarPins.js.map +1 -0
- package/lib/esm/hooks/useBackofficeToolsUrlParams.js +15 -0
- package/lib/esm/hooks/useBackofficeToolsUrlParams.js.map +1 -0
- package/lib/esm/hooks/useSidebarGroupCollapse.js +35 -0
- package/lib/esm/hooks/useSidebarGroupCollapse.js.map +1 -0
- package/lib/esm/i18n/createI18nInstance.js +62 -0
- package/lib/esm/i18n/createI18nInstance.js.map +1 -0
- package/lib/esm/i18n/locales/en/backofficeReact.js +249 -0
- package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -0
- package/lib/esm/i18n/locales/en/shared.js +207 -0
- package/lib/esm/i18n/locales/en/shared.js.map +1 -0
- package/lib/esm/i18n/locales/fr/backofficeReact.js +251 -0
- package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -0
- package/lib/esm/i18n/locales/fr/shared.js +207 -0
- package/lib/esm/i18n/locales/fr/shared.js.map +1 -0
- package/lib/esm/i18n/mergeResourceLanguages.js +19 -0
- package/lib/esm/i18n/mergeResourceLanguages.js.map +1 -0
- package/lib/esm/i18n/resources.js +19 -0
- package/lib/esm/i18n/resources.js.map +1 -0
- package/lib/esm/i18n/useBackofficeFormats.js +23 -0
- package/lib/esm/i18n/useBackofficeFormats.js.map +1 -0
- package/lib/esm/i18n/useBackofficeReactTranslation.js +9 -0
- package/lib/esm/i18n/useBackofficeReactTranslation.js.map +1 -0
- package/lib/esm/i18n/useSharedTranslation.js +9 -0
- package/lib/esm/i18n/useSharedTranslation.js.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/modules/sharedSchemaTypes.js +0 -0
- package/lib/esm/modules/webauthn.js +33 -0
- package/lib/esm/modules/webauthn.js.map +1 -0
- package/lib/esm/pages/BackofficeAcceptInvitationPage.js +24 -0
- package/lib/esm/pages/BackofficeAcceptInvitationPage.js.map +1 -0
- package/lib/esm/pages/BackofficeDashboardPage.js +198 -0
- package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +18 -0
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityDetailPage.js +843 -0
- package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityDetailUnknownPageRedirect.js +17 -0
- package/lib/esm/pages/BackofficeEntityDetailUnknownPageRedirect.js.map +1 -0
- package/lib/esm/pages/BackofficeEntityListPage.js +363 -0
- package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -0
- package/lib/esm/pages/BackofficeLayoutPage.js +141 -0
- package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -0
- package/lib/esm/pages/BackofficeLoginPage.js +46 -0
- package/lib/esm/pages/BackofficeLoginPage.js.map +1 -0
- package/lib/esm/pages/BackofficePasswordResetCompletePage.js +59 -0
- package/lib/esm/pages/BackofficePasswordResetCompletePage.js.map +1 -0
- package/lib/esm/pages/BackofficePasswordResetRequestPage.js +54 -0
- package/lib/esm/pages/BackofficePasswordResetRequestPage.js.map +1 -0
- package/lib/esm/pages/BackofficeToolsOperationPage.js +465 -0
- package/lib/esm/pages/BackofficeToolsOperationPage.js.map +1 -0
- package/lib/esm/pages/BackofficeVerifyEmailPage.js +59 -0
- package/lib/esm/pages/BackofficeVerifyEmailPage.js.map +1 -0
- package/lib/esm/pages/backofficeDashboardPage.css.js +8 -0
- package/lib/esm/pages/backofficeDashboardPage.css.js.map +1 -0
- package/lib/esm/pages/backofficeEntityDetailPage.css.js +8 -0
- package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +1 -0
- package/lib/esm/pages/backofficeEntityListPage.css.js +8 -0
- package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -0
- package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js +11 -0
- package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +1 -0
- package/lib/esm/pages/detail/buildTabsItems.js +10 -0
- package/lib/esm/pages/detail/buildTabsItems.js.map +1 -0
- package/lib/esm/pages/detail/pageResolution.js +28 -0
- package/lib/esm/pages/detail/pageResolution.js.map +1 -0
- package/lib/esm/provider/BackofficeConfigContext.js +12 -0
- package/lib/esm/provider/BackofficeConfigContext.js.map +1 -0
- package/lib/esm/provider/BackofficeProvider.js +142 -0
- package/lib/esm/provider/BackofficeProvider.js.map +1 -0
- package/lib/esm/provider/entityRegistry.js +91 -0
- package/lib/esm/provider/entityRegistry.js.map +1 -0
- package/lib/esm/provider/lazyValue.js +14 -0
- package/lib/esm/provider/lazyValue.js.map +1 -0
- package/lib/esm/provider/types.js +0 -0
- package/lib/esm/provider/useBackofficeEntityLoader.js +137 -0
- package/lib/esm/provider/useBackofficeEntityLoader.js.map +1 -0
- package/lib/esm/provider/useBackofficeLazyValue.js +39 -0
- package/lib/esm/provider/useBackofficeLazyValue.js.map +1 -0
- package/lib/esm/relay/RelayProvider.js +12 -0
- package/lib/esm/relay/RelayProvider.js.map +1 -0
- package/lib/esm/relay/createInlineDataReader.js +2 -0
- package/lib/esm/relay/createInlineReader.js +7 -0
- package/lib/esm/relay/createInlineReader.js.map +1 -0
- package/lib/esm/relay/envHelpers.js +46 -0
- package/lib/esm/relay/envHelpers.js.map +1 -0
- package/lib/esm/relay/environment.js +221 -0
- package/lib/esm/relay/environment.js.map +1 -0
- package/lib/esm/relay/identityView.js +6 -0
- package/lib/esm/relay/identityView.js.map +1 -0
- package/lib/esm/relay/mutationResult.js +47 -0
- package/lib/esm/relay/mutationResult.js.map +1 -0
- package/lib/esm/relay/useRelayEnvironment.js +2 -0
- package/lib/esm/router/backofficeAuthPaths.js +13 -0
- package/lib/esm/router/backofficeAuthPaths.js.map +1 -0
- package/lib/esm/router/createBackofficeRoutes.js +273 -0
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -0
- package/lib/esm/style.css +2 -0
- package/lib/esm/style.js +1 -0
- package/lib/types/auth/login/AuthPanel.d.ts +10 -0
- package/lib/types/auth/login/AuthPanel.d.ts.map +1 -0
- package/lib/types/auth/login/EmailCapturePanel.d.ts +12 -0
- package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -0
- package/lib/types/auth/login/LoginFlow.d.ts +11 -0
- package/lib/types/auth/login/LoginFlow.d.ts.map +1 -0
- package/lib/types/auth/login/MethodChooser.d.ts +12 -0
- package/lib/types/auth/login/MethodChooser.d.ts.map +1 -0
- package/lib/types/auth/login/MfaChallengeForm.d.ts +10 -0
- package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -0
- package/lib/types/auth/login/OidcButtons.d.ts +8 -0
- package/lib/types/auth/login/OidcButtons.d.ts.map +1 -0
- package/lib/types/auth/login/PasskeyLoginForm.d.ts +12 -0
- package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -0
- package/lib/types/auth/login/PasswordLoginPanel.d.ts +13 -0
- package/lib/types/auth/login/PasswordLoginPanel.d.ts.map +1 -0
- package/lib/types/auth/login/loginPage.css.d.ts +14 -0
- package/lib/types/auth/login/loginPage.css.d.ts.map +1 -0
- package/lib/types/auth/login/synchronizeAuthStatusQuery.d.ts +3 -0
- package/lib/types/auth/login/synchronizeAuthStatusQuery.d.ts.map +1 -0
- package/lib/types/auth/pages/AcceptInvitationScreen.d.ts +11 -0
- package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -0
- package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts +12 -0
- package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -0
- package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts +10 -0
- package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -0
- package/lib/types/auth/pages/VerifyEmailScreen.d.ts +11 -0
- package/lib/types/auth/pages/VerifyEmailScreen.d.ts.map +1 -0
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts +12 -0
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -0
- package/lib/types/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.d.ts +5 -0
- package/lib/types/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.d.ts.map +1 -0
- package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts +7 -0
- package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts +17 -0
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts.map +1 -0
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +13 -0
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts +8 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailErrorList.d.ts +14 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailErrorList.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts +13 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailField.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.css.d.ts +4 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts +10 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailFlagTag.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailLayout.d.ts +8 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailLayout.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailPayload.d.ts +10 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailPayload.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts +13 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationList.d.ts +7 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationList.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts +11 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts +11 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailTaggedValue.d.ts +12 -0
- package/lib/types/components/backoffice/detail/BackofficeDetailTaggedValue.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailBadgeRow.css.d.ts +2 -0
- package/lib/types/components/backoffice/detail/backofficeDetailBadgeRow.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailErrorList.css.d.ts +8 -0
- package/lib/types/components/backoffice/detail/backofficeDetailErrorList.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts +13 -0
- package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailLayout.css.d.ts +5 -0
- package/lib/types/components/backoffice/detail/backofficeDetailLayout.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts +4 -0
- package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailRelationList.css.d.ts +2 -0
- package/lib/types/components/backoffice/detail/backofficeDetailRelationList.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailSection.css.d.ts +6 -0
- package/lib/types/components/backoffice/detail/backofficeDetailSection.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailTaggedValue.css.d.ts +3 -0
- package/lib/types/components/backoffice/detail/backofficeDetailTaggedValue.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/detail/detailPayloadUtils.d.ts +3 -0
- package/lib/types/components/backoffice/detail/detailPayloadUtils.d.ts.map +1 -0
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts +19 -0
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts +12 -0
- package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/EntityFilterValue.d.ts +14 -0
- package/lib/types/components/backoffice/filters/EntityFilterValue.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts +12 -0
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/backofficeFilterAction.css.d.ts +3 -0
- package/lib/types/components/backoffice/filters/backofficeFilterAction.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +6 -0
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts +2 -0
- package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.d.ts +9 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts +8 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.d.ts +7 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortal.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts +6 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.d.ts +3 -0
- package/lib/types/components/backoffice/layout/breadcrumb/assertValidBreadcrumb.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts +7 -0
- package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +21 -0
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/types.d.ts +9 -0
- package/lib/types/components/backoffice/layout/breadcrumb/types.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +22 -0
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts +15 -0
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +16 -0
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -0
- package/lib/types/components/backoffice/list/RowFlagsCell.css.d.ts +4 -0
- package/lib/types/components/backoffice/list/RowFlagsCell.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/list/RowFlagsCell.d.ts +10 -0
- package/lib/types/components/backoffice/list/RowFlagsCell.d.ts.map +1 -0
- package/lib/types/components/backoffice/overview/BackofficeOverviewLayout.d.ts +10 -0
- package/lib/types/components/backoffice/overview/BackofficeOverviewLayout.d.ts.map +1 -0
- package/lib/types/components/backoffice/overview/backofficeOverviewLayout.css.d.ts +6 -0
- package/lib/types/components/backoffice/overview/backofficeOverviewLayout.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +14 -0
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts +8 -0
- package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts +10 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerRowBase.d.ts +8 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerRowBase.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts +11 -0
- package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/types.d.ts +14 -0
- package/lib/types/components/backoffice/pickers/types.d.ts.map +1 -0
- package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts +13 -0
- package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts.map +1 -0
- package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts +9 -0
- package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -0
- package/lib/types/components/backoffice/refs/backofficeEntityIdRef.css.d.ts +2 -0
- package/lib/types/components/backoffice/refs/backofficeEntityIdRef.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts +2 -0
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/BackofficeContentBoundary.d.ts +7 -0
- package/lib/types/components/backoffice/routing/BackofficeContentBoundary.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts +8 -0
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/BackofficeContentFallback.d.ts +4 -0
- package/lib/types/components/backoffice/routing/BackofficeContentFallback.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts +4 -0
- package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/BackofficeRoutePendingBar.d.ts +4 -0
- package/lib/types/components/backoffice/routing/BackofficeRoutePendingBar.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/backofficeContentBoundary.css.d.ts +2 -0
- package/lib/types/components/backoffice/routing/backofficeContentBoundary.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/backofficeContentError.css.d.ts +3 -0
- package/lib/types/components/backoffice/routing/backofficeContentError.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/backofficeContentFallback.css.d.ts +5 -0
- package/lib/types/components/backoffice/routing/backofficeContentFallback.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/backofficeRouteFallback.css.d.ts +3 -0
- package/lib/types/components/backoffice/routing/backofficeRouteFallback.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/routing/backofficeRoutePendingBar.css.d.ts +3 -0
- package/lib/types/components/backoffice/routing/backofficeRoutePendingBar.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.d.ts +13 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +30 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts +23 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts +11 -0
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/backofficeEntityListScaffold.css.d.ts +5 -0
- package/lib/types/components/backoffice/scaffolds/backofficeEntityListScaffold.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.d.ts +3 -0
- package/lib/types/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/shared/BackofficeInlineFilterRow.d.ts +8 -0
- package/lib/types/components/backoffice/shared/BackofficeInlineFilterRow.d.ts.map +1 -0
- package/lib/types/components/backoffice/shared/backofficeInlineFilterRow.css.d.ts +2 -0
- package/lib/types/components/backoffice/shared/backofficeInlineFilterRow.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsDocPanel.d.ts +11 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsDocPanel.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.d.ts +8 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsJsonForm.d.ts +15 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsJsonForm.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsPageLayout.d.ts +13 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsPageLayout.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsParamsContext.d.ts +14 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsParamsContext.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsProjectPicker.d.ts +8 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsProjectPicker.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsQueryBoundary.d.ts +7 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsQueryBoundary.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsScopePicker.d.ts +8 -0
- package/lib/types/components/backoffice/tools/BackofficeToolsScopePicker.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsDocPanel.css.d.ts +8 -0
- package/lib/types/components/backoffice/tools/backofficeToolsDocPanel.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsForm.css.d.ts +6 -0
- package/lib/types/components/backoffice/tools/backofficeToolsForm.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsJsonForm.css.d.ts +4 -0
- package/lib/types/components/backoffice/tools/backofficeToolsJsonForm.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsPageLayout.css.d.ts +13 -0
- package/lib/types/components/backoffice/tools/backofficeToolsPageLayout.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsProjectPicker.css.d.ts +4 -0
- package/lib/types/components/backoffice/tools/backofficeToolsProjectPicker.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/tools/backofficeToolsScopePicker.css.d.ts +4 -0
- package/lib/types/components/backoffice/tools/backofficeToolsScopePicker.css.d.ts.map +1 -0
- package/lib/types/filters/filterHelpers.d.ts +5 -0
- package/lib/types/filters/filterHelpers.d.ts.map +1 -0
- package/lib/types/hooks/useAuth.d.ts +170 -0
- package/lib/types/hooks/useAuth.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeAuth.d.ts +3 -0
- package/lib/types/hooks/useBackofficeAuth.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeListRefetch.d.ts +17 -0
- package/lib/types/hooks/useBackofficeListRefetch.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeListUrlState.d.ts +8 -0
- package/lib/types/hooks/useBackofficeListUrlState.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeLoadMore.d.ts +9 -0
- package/lib/types/hooks/useBackofficeLoadMore.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeSessionAuth.d.ts +7 -0
- package/lib/types/hooks/useBackofficeSessionAuth.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeSidebarPins.d.ts +15 -0
- package/lib/types/hooks/useBackofficeSidebarPins.d.ts.map +1 -0
- package/lib/types/hooks/useBackofficeToolsUrlParams.d.ts +8 -0
- package/lib/types/hooks/useBackofficeToolsUrlParams.d.ts.map +1 -0
- package/lib/types/hooks/useSidebarGroupCollapse.d.ts +11 -0
- package/lib/types/hooks/useSidebarGroupCollapse.d.ts.map +1 -0
- package/lib/types/i18n/createI18nInstance.d.ts +17 -0
- package/lib/types/i18n/createI18nInstance.d.ts.map +1 -0
- package/lib/types/i18n/mergeResourceLanguages.d.ts +3 -0
- package/lib/types/i18n/mergeResourceLanguages.d.ts.map +1 -0
- package/lib/types/i18n/resources.d.ts +1010 -0
- package/lib/types/i18n/resources.d.ts.map +1 -0
- package/lib/types/i18n/useBackofficeFormats.d.ts +7 -0
- package/lib/types/i18n/useBackofficeFormats.d.ts.map +1 -0
- package/lib/types/i18n/useBackofficeReactTranslation.d.ts +3 -0
- package/lib/types/i18n/useBackofficeReactTranslation.d.ts.map +1 -0
- package/lib/types/i18n/useSharedTranslation.d.ts +3 -0
- package/lib/types/i18n/useSharedTranslation.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/modules/sharedSchemaTypes.d.ts +7 -0
- package/lib/types/modules/sharedSchemaTypes.d.ts.map +1 -0
- package/lib/types/modules/webauthn.d.ts +6 -0
- package/lib/types/modules/webauthn.d.ts.map +1 -0
- package/lib/types/pages/BackofficeAcceptInvitationPage.d.ts +4 -0
- package/lib/types/pages/BackofficeAcceptInvitationPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeDashboardPage.d.ts +4 -0
- package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts +11 -0
- package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts +18 -0
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityDetailUnknownPageRedirect.d.ts +13 -0
- package/lib/types/pages/BackofficeEntityDetailUnknownPageRedirect.d.ts.map +1 -0
- package/lib/types/pages/BackofficeEntityListPage.d.ts +10 -0
- package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeLayoutPage.d.ts +17 -0
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeLoginPage.d.ts +11 -0
- package/lib/types/pages/BackofficeLoginPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficePasswordResetCompletePage.d.ts +4 -0
- package/lib/types/pages/BackofficePasswordResetCompletePage.d.ts.map +1 -0
- package/lib/types/pages/BackofficePasswordResetRequestPage.d.ts +4 -0
- package/lib/types/pages/BackofficePasswordResetRequestPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeToolsOperationPage.d.ts +9 -0
- package/lib/types/pages/BackofficeToolsOperationPage.d.ts.map +1 -0
- package/lib/types/pages/BackofficeVerifyEmailPage.d.ts +4 -0
- package/lib/types/pages/BackofficeVerifyEmailPage.d.ts.map +1 -0
- package/lib/types/pages/backofficeDashboardPage.css.d.ts +5 -0
- package/lib/types/pages/backofficeDashboardPage.css.d.ts.map +1 -0
- package/lib/types/pages/backofficeEntityDetailPage.css.d.ts +5 -0
- package/lib/types/pages/backofficeEntityDetailPage.css.d.ts.map +1 -0
- package/lib/types/pages/backofficeEntityListPage.css.d.ts +4 -0
- package/lib/types/pages/backofficeEntityListPage.css.d.ts.map +1 -0
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts +6 -0
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts.map +1 -0
- package/lib/types/pages/detail/buildTabsItems.d.ts +12 -0
- package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -0
- package/lib/types/pages/detail/pageResolution.d.ts +20 -0
- package/lib/types/pages/detail/pageResolution.d.ts.map +1 -0
- package/lib/types/provider/BackofficeConfigContext.d.ts +18 -0
- package/lib/types/provider/BackofficeConfigContext.d.ts.map +1 -0
- package/lib/types/provider/BackofficeProvider.d.ts +7 -0
- package/lib/types/provider/BackofficeProvider.d.ts.map +1 -0
- package/lib/types/provider/entityRegistry.d.ts +28 -0
- package/lib/types/provider/entityRegistry.d.ts.map +1 -0
- package/lib/types/provider/lazyValue.d.ts +7 -0
- package/lib/types/provider/lazyValue.d.ts.map +1 -0
- package/lib/types/provider/types.d.ts +101 -0
- package/lib/types/provider/types.d.ts.map +1 -0
- package/lib/types/provider/useBackofficeEntityLoader.d.ts +39 -0
- package/lib/types/provider/useBackofficeEntityLoader.d.ts.map +1 -0
- package/lib/types/provider/useBackofficeLazyValue.d.ts +13 -0
- package/lib/types/provider/useBackofficeLazyValue.d.ts.map +1 -0
- package/lib/types/relay/RelayProvider.d.ts +7 -0
- package/lib/types/relay/RelayProvider.d.ts.map +1 -0
- package/lib/types/relay/createInlineDataReader.d.ts +2 -0
- package/lib/types/relay/createInlineDataReader.d.ts.map +1 -0
- package/lib/types/relay/createInlineReader.d.ts +4 -0
- package/lib/types/relay/createInlineReader.d.ts.map +1 -0
- package/lib/types/relay/envHelpers.d.ts +16 -0
- package/lib/types/relay/envHelpers.d.ts.map +1 -0
- package/lib/types/relay/environment.d.ts +12 -0
- package/lib/types/relay/environment.d.ts.map +1 -0
- package/lib/types/relay/identityView.d.ts +2 -0
- package/lib/types/relay/identityView.d.ts.map +1 -0
- package/lib/types/relay/mutationResult.d.ts +51 -0
- package/lib/types/relay/mutationResult.d.ts.map +1 -0
- package/lib/types/relay/useRelayEnvironment.d.ts +2 -0
- package/lib/types/relay/useRelayEnvironment.d.ts.map +1 -0
- package/lib/types/router/backofficeAuthPaths.d.ts +3 -0
- package/lib/types/router/backofficeAuthPaths.d.ts.map +1 -0
- package/lib/types/router/createBackofficeRoutes.d.ts +32 -0
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -0
- package/lib/types/style.d.ts +2 -0
- package/lib/types/style.d.ts.map +1 -0
- package/package.json +138 -0
|
@@ -0,0 +1,843 @@
|
|
|
1
|
+
import { resolveMutationOutcome as e } from "../relay/mutationResult.js";
|
|
2
|
+
import { useBackofficeReactTranslation as t } from "../i18n/useBackofficeReactTranslation.js";
|
|
3
|
+
import { useBackofficeConfig as n } from "../provider/BackofficeConfigContext.js";
|
|
4
|
+
import { resolveToastSpec as r, resolveToastViewActions as i } from "../components/backoffice/actions/toastViewAction.js";
|
|
5
|
+
import { LazyBackofficeEntityActionFormDialog as a } from "../components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js";
|
|
6
|
+
import { buildDataTableColumns as o } from "../components/backoffice/columns/buildDataTableColumns.js";
|
|
7
|
+
import { BackofficeDetailBadgeRow as s } from "../components/backoffice/detail/BackofficeDetailBadgeRow.js";
|
|
8
|
+
import { BackofficeDetailSection as c } from "../components/backoffice/detail/BackofficeDetailSection.js";
|
|
9
|
+
import { BackofficeDetailErrorList as l } from "../components/backoffice/detail/BackofficeDetailErrorList.js";
|
|
10
|
+
import { BackofficeDetailFlagTag as u } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
|
|
11
|
+
import { BackofficeDetailPayload as d } from "../components/backoffice/detail/BackofficeDetailPayload.js";
|
|
12
|
+
import { BackofficeDetailRelationListBlock as f } from "../components/backoffice/detail/BackofficeDetailRelationListBlock.js";
|
|
13
|
+
import { BackofficeDetailTaggedValue as p } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
|
|
14
|
+
import { BackofficeRightPageLayout as m } from "../components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js";
|
|
15
|
+
import { buildEntityDetailBreadcrumb as h } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
|
|
16
|
+
import { BackofficeEntityDetailScaffold as g } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
|
|
17
|
+
import { useRelayEnvironment as _ } from "../relay/useRelayEnvironment.js";
|
|
18
|
+
import { useBackofficeFormats as v } from "../i18n/useBackofficeFormats.js";
|
|
19
|
+
import { useBackofficeEntityDetailLayoutContext as y } from "./detail/BackofficeEntityDetailLayoutContext.js";
|
|
20
|
+
import { headerActions as ee, headerBlock as te, headerMeta as ne, headerMetaList as re } from "./backofficeEntityDetailPage.css.js";
|
|
21
|
+
import { buildTabsItems as ie } from "./detail/buildTabsItems.js";
|
|
22
|
+
import { resolveVisibleDetailPages as b } from "./detail/pageResolution.js";
|
|
23
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
24
|
+
import { useTranslation as w } from "react-i18next";
|
|
25
|
+
import { Button as ae, DataTable as T, FormattedDate as E, LinkButton as oe, useToast as D } from "@plumile/ui";
|
|
26
|
+
import { useContext as O, useMemo as se, useState as k } from "react";
|
|
27
|
+
import { commitMutation as ce, useFragment as A, usePreloadedQuery as j } from "react-relay";
|
|
28
|
+
import { HighlightCode as M } from "@plumile/ui/atomic/molecules/highlight/HighlightCode.js";
|
|
29
|
+
import { BackofficeKeyValueList as N, BackofficePageHeader as le, BackofficeRelationsMenu as ue } from "@plumile/ui-backoffice";
|
|
30
|
+
import { HttpRedirect as P, Link as F, RoutingContext as I } from "@plumile/router";
|
|
31
|
+
import { BACKOFFICE_DATE_TIME_OPTIONS as L } from "@plumile/backoffice-core/constants.js";
|
|
32
|
+
import { Tag as R } from "@plumile/ui-backoffice/backoffice/atoms/tag/Tag.js";
|
|
33
|
+
import { buildBackofficeFallbackListHref as de, buildBackofficeListHref as fe, buildBackofficeListLink as pe } from "@plumile/backoffice-core/state/buildListHref.js";
|
|
34
|
+
import { setWhereValue as z } from "@plumile/backoffice-core/filters/where.js";
|
|
35
|
+
import { DetailPageTemplate as me } from "@plumile/ui-backoffice/backoffice/templates/detail_page_template/DetailPageTemplate.js";
|
|
36
|
+
import { BackofficeTabs as he } from "@plumile/ui-backoffice/backoffice/molecules/backoffice_tabs/BackofficeTabs.js";
|
|
37
|
+
import { LazyBackofficeJsonViewer as B } from "@plumile/ui-backoffice/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js";
|
|
38
|
+
import { ChatCheckSvg as V } from "@plumile/ui/icons/ChatCheckSvg.js";
|
|
39
|
+
import { KeyOffSvg as H } from "@plumile/ui/icons/KeyOffSvg.js";
|
|
40
|
+
import { KeySvg as U } from "@plumile/ui/icons/KeySvg.js";
|
|
41
|
+
import { LockOpenSvg as W } from "@plumile/ui/icons/LockOpenSvg.js";
|
|
42
|
+
import { LockSvg as G } from "@plumile/ui/icons/LockSvg.js";
|
|
43
|
+
import { RobotCheckSvg as K } from "@plumile/ui/icons/RobotCheckSvg.js";
|
|
44
|
+
import { RobotXSvg as q } from "@plumile/ui/icons/RobotXSvg.js";
|
|
45
|
+
import { RocketOffSvg as J } from "@plumile/ui/icons/RocketOffSvg.js";
|
|
46
|
+
import { RocketSvg as Y } from "@plumile/ui/icons/RocketSvg.js";
|
|
47
|
+
import { SettingsCheckSvg as ge } from "@plumile/ui/icons/SettingsCheckSvg.js";
|
|
48
|
+
import { SettingsXSvg as _e } from "@plumile/ui/icons/SettingsXSvg.js";
|
|
49
|
+
import { ShieldLockSvg as ve } from "@plumile/ui/icons/ShieldLockSvg.js";
|
|
50
|
+
import { ShieldOffSvg as ye } from "@plumile/ui/icons/ShieldOffSvg.js";
|
|
51
|
+
import { XBadgeSvg as be } from "@plumile/ui/icons/XBadgeSvg.js";
|
|
52
|
+
//#region src/pages/BackofficeEntityDetailPage.tsx
|
|
53
|
+
var X = (e, t) => e(t), xe = (e) => typeof e == "object" && !!e && !Array.isArray(e), Se = (e) => {
|
|
54
|
+
throw Error(`Unexpected value: ${String(e)}`);
|
|
55
|
+
}, Ce = (e, t, n) => {
|
|
56
|
+
switch (e) {
|
|
57
|
+
case "yesNo": return t ? {
|
|
58
|
+
tone: "success",
|
|
59
|
+
label: n("common.boolean.yes")
|
|
60
|
+
} : {
|
|
61
|
+
tone: "neutral",
|
|
62
|
+
label: n("common.boolean.no")
|
|
63
|
+
};
|
|
64
|
+
case "capability": return t ? {
|
|
65
|
+
tone: "success",
|
|
66
|
+
label: n("flags.capability.allowed"),
|
|
67
|
+
icon: /* @__PURE__ */ S(ve, {
|
|
68
|
+
width: 14,
|
|
69
|
+
height: 14,
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
})
|
|
72
|
+
} : {
|
|
73
|
+
tone: "neutral",
|
|
74
|
+
label: n("flags.capability.denied"),
|
|
75
|
+
icon: /* @__PURE__ */ S(ye, {
|
|
76
|
+
width: 14,
|
|
77
|
+
height: 14,
|
|
78
|
+
"aria-hidden": "true"
|
|
79
|
+
})
|
|
80
|
+
};
|
|
81
|
+
case "enabled": return t ? {
|
|
82
|
+
tone: "success",
|
|
83
|
+
label: n("flags.enabled.enabled"),
|
|
84
|
+
icon: /* @__PURE__ */ S(ge, {
|
|
85
|
+
width: 14,
|
|
86
|
+
height: 14,
|
|
87
|
+
"aria-hidden": "true"
|
|
88
|
+
})
|
|
89
|
+
} : {
|
|
90
|
+
tone: "neutral",
|
|
91
|
+
label: n("flags.enabled.disabled"),
|
|
92
|
+
icon: /* @__PURE__ */ S(_e, {
|
|
93
|
+
width: 14,
|
|
94
|
+
height: 14,
|
|
95
|
+
"aria-hidden": "true"
|
|
96
|
+
})
|
|
97
|
+
};
|
|
98
|
+
case "failure": return t ? {
|
|
99
|
+
tone: "danger",
|
|
100
|
+
label: n("flags.failure.failed"),
|
|
101
|
+
icon: /* @__PURE__ */ S(be, {
|
|
102
|
+
width: 14,
|
|
103
|
+
height: 14,
|
|
104
|
+
"aria-hidden": "true"
|
|
105
|
+
})
|
|
106
|
+
} : {
|
|
107
|
+
tone: "success",
|
|
108
|
+
label: n("flags.failure.ok"),
|
|
109
|
+
icon: /* @__PURE__ */ S(V, {
|
|
110
|
+
width: 14,
|
|
111
|
+
height: 14,
|
|
112
|
+
"aria-hidden": "true"
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
case "encrypted": return t ? {
|
|
116
|
+
tone: "info",
|
|
117
|
+
label: n("flags.encrypted.encrypted"),
|
|
118
|
+
icon: /* @__PURE__ */ S(U, {
|
|
119
|
+
width: 14,
|
|
120
|
+
height: 14,
|
|
121
|
+
"aria-hidden": "true"
|
|
122
|
+
})
|
|
123
|
+
} : {
|
|
124
|
+
tone: "neutral",
|
|
125
|
+
label: n("flags.encrypted.notEncrypted"),
|
|
126
|
+
icon: /* @__PURE__ */ S(H, {
|
|
127
|
+
width: 14,
|
|
128
|
+
height: 14,
|
|
129
|
+
"aria-hidden": "true"
|
|
130
|
+
})
|
|
131
|
+
};
|
|
132
|
+
case "locked": return t ? {
|
|
133
|
+
tone: "warning",
|
|
134
|
+
label: n("flags.locked.locked"),
|
|
135
|
+
icon: /* @__PURE__ */ S(G, {
|
|
136
|
+
width: 14,
|
|
137
|
+
height: 14,
|
|
138
|
+
"aria-hidden": "true"
|
|
139
|
+
})
|
|
140
|
+
} : {
|
|
141
|
+
tone: "success",
|
|
142
|
+
label: n("flags.locked.unlocked"),
|
|
143
|
+
icon: /* @__PURE__ */ S(W, {
|
|
144
|
+
width: 14,
|
|
145
|
+
height: 14,
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
})
|
|
148
|
+
};
|
|
149
|
+
case "default": return t ? {
|
|
150
|
+
tone: "info",
|
|
151
|
+
label: n("flags.default.default")
|
|
152
|
+
} : {
|
|
153
|
+
tone: "neutral",
|
|
154
|
+
label: n("flags.default.notDefault")
|
|
155
|
+
};
|
|
156
|
+
case "agentManaged": return t ? {
|
|
157
|
+
tone: "info",
|
|
158
|
+
label: n("flags.agentManaged.agentManaged"),
|
|
159
|
+
icon: /* @__PURE__ */ S(K, {
|
|
160
|
+
width: 14,
|
|
161
|
+
height: 14,
|
|
162
|
+
"aria-hidden": "true"
|
|
163
|
+
})
|
|
164
|
+
} : {
|
|
165
|
+
tone: "neutral",
|
|
166
|
+
label: n("flags.agentManaged.userManaged"),
|
|
167
|
+
icon: /* @__PURE__ */ S(q, {
|
|
168
|
+
width: 14,
|
|
169
|
+
height: 14,
|
|
170
|
+
"aria-hidden": "true"
|
|
171
|
+
})
|
|
172
|
+
};
|
|
173
|
+
case "deployedProduction": return t ? {
|
|
174
|
+
tone: "success",
|
|
175
|
+
label: n("flags.deployedProduction.deployed"),
|
|
176
|
+
icon: /* @__PURE__ */ S(Y, {
|
|
177
|
+
width: 14,
|
|
178
|
+
height: 14,
|
|
179
|
+
"aria-hidden": "true"
|
|
180
|
+
})
|
|
181
|
+
} : {
|
|
182
|
+
tone: "neutral",
|
|
183
|
+
label: n("flags.deployedProduction.notDeployed"),
|
|
184
|
+
icon: /* @__PURE__ */ S(J, {
|
|
185
|
+
width: 14,
|
|
186
|
+
height: 14,
|
|
187
|
+
"aria-hidden": "true"
|
|
188
|
+
})
|
|
189
|
+
};
|
|
190
|
+
case "forced": return t ? {
|
|
191
|
+
tone: "warning",
|
|
192
|
+
label: n("flags.forced.forced")
|
|
193
|
+
} : {
|
|
194
|
+
tone: "neutral",
|
|
195
|
+
label: n("flags.forced.normal")
|
|
196
|
+
};
|
|
197
|
+
default: return Se(e);
|
|
198
|
+
}
|
|
199
|
+
}, we = (e) => {
|
|
200
|
+
if (!xe(e)) return null;
|
|
201
|
+
for (let t of Object.values(e)) if (xe(t) && ("status" in t || "result" in t)) return t;
|
|
202
|
+
return null;
|
|
203
|
+
}, Te = (e) => e.kind === "route", Ee = (e) => e.kind === "mutation", De = (e) => e.kind === "formMutation", Z = (e, t) => typeof e == "function" ? e(t) : e ?? null, Oe = (e) => {
|
|
204
|
+
if (e == null) return null;
|
|
205
|
+
let t = e.trim();
|
|
206
|
+
return t === "" ? null : t;
|
|
207
|
+
}, Q = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1, $ = (e, t) => typeof e == "function" ? e(t) : e, ke = (e, t) => {
|
|
208
|
+
let { tApp: n, t: r, resolveEntityHref: i } = t, a = r("common.notAvailable");
|
|
209
|
+
if (e.type === "text") {
|
|
210
|
+
let t = Z(e.value, n);
|
|
211
|
+
return Q(t) ? a : t;
|
|
212
|
+
}
|
|
213
|
+
if (e.type === "entityRef") {
|
|
214
|
+
let { id: t } = e;
|
|
215
|
+
if (t == null || t.trim() === "") return a;
|
|
216
|
+
let r = Z(e.label, n), o = r != null && String(r).trim() !== "" ? r : null;
|
|
217
|
+
if (o == null) return a;
|
|
218
|
+
let s = i?.(e.entity, t) ?? null;
|
|
219
|
+
return s == null ? o : /* @__PURE__ */ S(F, {
|
|
220
|
+
to: s,
|
|
221
|
+
children: o
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
let { href: o } = e;
|
|
225
|
+
if (o == null || o.trim() === "") return a;
|
|
226
|
+
let s = Z(e.label, n);
|
|
227
|
+
return Q(s) ? a : /* @__PURE__ */ S(F, {
|
|
228
|
+
to: o,
|
|
229
|
+
children: s
|
|
230
|
+
});
|
|
231
|
+
}, Ae = (e, t, n) => {
|
|
232
|
+
let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: c, formatPercent: l, relationEntityListRoutes: d, resolveRelationItem: f } = n, m = [], h = [], g = [], _ = i("common.notAvailable");
|
|
233
|
+
return e.forEach((e, n) => {
|
|
234
|
+
let v = `${e.type}-${n}`;
|
|
235
|
+
switch (e.type) {
|
|
236
|
+
case "text": {
|
|
237
|
+
let n = Z(e.value(t), r);
|
|
238
|
+
m.push({
|
|
239
|
+
id: v,
|
|
240
|
+
label: X(e.label, r),
|
|
241
|
+
size: e.size,
|
|
242
|
+
value: n,
|
|
243
|
+
copyValue: e.copyValue?.(t) ?? void 0,
|
|
244
|
+
fullWidth: e.fullWidth
|
|
245
|
+
});
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
case "badge": {
|
|
249
|
+
let n = Z(e.value(t), r), i = n == null ? "" : String(n), a = $(e.tone, t), o = i.trim() === "" ? null : /* @__PURE__ */ S(R, {
|
|
250
|
+
tone: a,
|
|
251
|
+
children: i
|
|
252
|
+
});
|
|
253
|
+
m.push({
|
|
254
|
+
id: v,
|
|
255
|
+
label: X(e.label, r),
|
|
256
|
+
size: e.size,
|
|
257
|
+
value: o
|
|
258
|
+
});
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
case "badgeRow": {
|
|
262
|
+
let n = e.items(t).map((e) => {
|
|
263
|
+
let t = Z(e.label, r), n = t == null ? "" : String(t);
|
|
264
|
+
return {
|
|
265
|
+
...e,
|
|
266
|
+
label: n
|
|
267
|
+
};
|
|
268
|
+
}), i = n.length > 0 ? /* @__PURE__ */ S(s, { items: n }) : null;
|
|
269
|
+
m.push({
|
|
270
|
+
id: v,
|
|
271
|
+
label: X(e.label, r),
|
|
272
|
+
size: e.size,
|
|
273
|
+
value: i,
|
|
274
|
+
fullWidth: e.fullWidth
|
|
275
|
+
});
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case "dateTime": {
|
|
279
|
+
let n = e.value(t);
|
|
280
|
+
m.push({
|
|
281
|
+
id: v,
|
|
282
|
+
label: X(e.label, r),
|
|
283
|
+
size: e.size,
|
|
284
|
+
value: /* @__PURE__ */ S(E, {
|
|
285
|
+
value: n,
|
|
286
|
+
options: L,
|
|
287
|
+
fallback: i("common.notAvailable")
|
|
288
|
+
})
|
|
289
|
+
});
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
case "number": {
|
|
293
|
+
let n = e.value(t), i = null;
|
|
294
|
+
n != null && (i = e.format === "currency" ? c(n) : e.format === "percent" ? l(n) : o(n)), m.push({
|
|
295
|
+
id: v,
|
|
296
|
+
label: X(e.label, r),
|
|
297
|
+
size: e.size,
|
|
298
|
+
value: i
|
|
299
|
+
});
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
case "flag": {
|
|
303
|
+
let n = e.value(t), a = null;
|
|
304
|
+
if (n != null) {
|
|
305
|
+
let t = Ce(e.variant, n, i);
|
|
306
|
+
a = /* @__PURE__ */ S(u, {
|
|
307
|
+
tone: t.tone,
|
|
308
|
+
icon: t.icon,
|
|
309
|
+
label: t.label
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
m.push({
|
|
313
|
+
id: v,
|
|
314
|
+
label: X(e.label, r),
|
|
315
|
+
size: e.size,
|
|
316
|
+
value: a
|
|
317
|
+
});
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
case "entityRef": {
|
|
321
|
+
let n = e.id(t), i = null;
|
|
322
|
+
if (n != null && n.trim() !== "") {
|
|
323
|
+
let r = e.value?.(t), o = r != null && r.trim() !== "" ? r : null, s = a?.(e.entity, n) ?? null;
|
|
324
|
+
o != null && (i = s == null ? o : /* @__PURE__ */ S(F, {
|
|
325
|
+
to: s,
|
|
326
|
+
children: o
|
|
327
|
+
}));
|
|
328
|
+
}
|
|
329
|
+
m.push({
|
|
330
|
+
id: v,
|
|
331
|
+
label: X(e.label, r),
|
|
332
|
+
size: e.size,
|
|
333
|
+
value: i ?? _
|
|
334
|
+
});
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
case "link": {
|
|
338
|
+
let n = e.href(t), i = e.value(t), a = n != null && n.trim() !== "" && !Q(i) ? /* @__PURE__ */ S(F, {
|
|
339
|
+
to: n,
|
|
340
|
+
children: i
|
|
341
|
+
}) : null;
|
|
342
|
+
m.push({
|
|
343
|
+
id: v,
|
|
344
|
+
label: X(e.label, r),
|
|
345
|
+
size: e.size,
|
|
346
|
+
value: a
|
|
347
|
+
});
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
case "taggedValue": {
|
|
351
|
+
let n = e.tag(t), o = ke(e.value(t), {
|
|
352
|
+
tApp: r,
|
|
353
|
+
t: i,
|
|
354
|
+
resolveEntityHref: a
|
|
355
|
+
}), s = n == null ? null : {
|
|
356
|
+
...n,
|
|
357
|
+
label: (() => {
|
|
358
|
+
let e = Z(n.label, r);
|
|
359
|
+
return e == null ? "" : String(e);
|
|
360
|
+
})()
|
|
361
|
+
}, c = s != null || o != null ? /* @__PURE__ */ S(p, {
|
|
362
|
+
tag: s,
|
|
363
|
+
value: o
|
|
364
|
+
}) : null;
|
|
365
|
+
m.push({
|
|
366
|
+
id: v,
|
|
367
|
+
label: X(e.label, r),
|
|
368
|
+
size: e.size,
|
|
369
|
+
value: c,
|
|
370
|
+
fullWidth: e.fullWidth
|
|
371
|
+
});
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
case "relation": {
|
|
375
|
+
let n = Oe(e.value(t));
|
|
376
|
+
if (n == null) break;
|
|
377
|
+
let i = d[e.entity];
|
|
378
|
+
if (i == null) break;
|
|
379
|
+
let a = X(e.label, r), o = e.count?.(t) ?? null, s = z(null, e.whereKey, n, e.path);
|
|
380
|
+
if (s == null) break;
|
|
381
|
+
h.push(f({
|
|
382
|
+
id: v,
|
|
383
|
+
label: a,
|
|
384
|
+
count: o,
|
|
385
|
+
entityId: e.entity,
|
|
386
|
+
filterId: e.filterId,
|
|
387
|
+
listRoute: i,
|
|
388
|
+
path: e.path,
|
|
389
|
+
value: n,
|
|
390
|
+
where: s,
|
|
391
|
+
whereKey: e.whereKey
|
|
392
|
+
}));
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
case "custom": {
|
|
396
|
+
let n = e.render(t);
|
|
397
|
+
if (n == null) break;
|
|
398
|
+
if (e.label != null) {
|
|
399
|
+
m.push({
|
|
400
|
+
id: v,
|
|
401
|
+
label: X(e.label, r),
|
|
402
|
+
size: e.size,
|
|
403
|
+
value: n,
|
|
404
|
+
fullWidth: e.fullWidth
|
|
405
|
+
});
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
g.push(/* @__PURE__ */ S("div", { children: n }, v));
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
default: break;
|
|
412
|
+
}
|
|
413
|
+
}), {
|
|
414
|
+
items: m,
|
|
415
|
+
relationItems: h,
|
|
416
|
+
customNodes: g
|
|
417
|
+
};
|
|
418
|
+
}, je = (e, t, n) => {
|
|
419
|
+
let { tApp: r, t: i, resolveEntityHref: a } = n, o = i("common.notAvailable");
|
|
420
|
+
if (e.type === "dateTime") return /* @__PURE__ */ S(E, {
|
|
421
|
+
value: e.value(t),
|
|
422
|
+
options: L,
|
|
423
|
+
fallback: o
|
|
424
|
+
});
|
|
425
|
+
if (e.type === "entityRef") {
|
|
426
|
+
let n = e.id(t);
|
|
427
|
+
if (n == null || n.trim() === "") return o;
|
|
428
|
+
let i = Z(e.value?.(t), r), s = i != null && String(i).trim() !== "" ? i : null;
|
|
429
|
+
if (s == null) return o;
|
|
430
|
+
let c = a?.(e.entity, n) ?? null;
|
|
431
|
+
return c == null ? s : /* @__PURE__ */ S(F, {
|
|
432
|
+
to: c,
|
|
433
|
+
children: s
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
if (e.type === "link") {
|
|
437
|
+
let n = e.href(t), i = Z(e.value(t), r);
|
|
438
|
+
return n == null || n.trim() === "" || Q(i) ? o : /* @__PURE__ */ S(F, {
|
|
439
|
+
to: n,
|
|
440
|
+
children: i
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
let s = Z(e.value(t), r);
|
|
444
|
+
return Q(s) ? o : s;
|
|
445
|
+
}, Me = (e, t, n) => {
|
|
446
|
+
if (e.type === "badgeRow") {
|
|
447
|
+
let r = e.items(t).map((e) => {
|
|
448
|
+
let t = Z(e.label, n), r = t == null ? "" : String(t);
|
|
449
|
+
return {
|
|
450
|
+
...e,
|
|
451
|
+
label: r
|
|
452
|
+
};
|
|
453
|
+
});
|
|
454
|
+
return r.length === 0 ? void 0 : /* @__PURE__ */ S(s, { items: r });
|
|
455
|
+
}
|
|
456
|
+
let r = Z(e.value(t), n), i = r == null ? "" : String(r);
|
|
457
|
+
if (i.trim() !== "") return /* @__PURE__ */ S(R, {
|
|
458
|
+
tone: $(e.tone, t),
|
|
459
|
+
children: i
|
|
460
|
+
});
|
|
461
|
+
}, Ne = (e, t, n) => {
|
|
462
|
+
let { tApp: r, t: i, resolveEntityHref: a } = n, o = e.titleValue?.(t, r) ?? X(e.title, r), s = o.trim() === "" ? X(e.title, r) : o, c;
|
|
463
|
+
if (e.subtitleItems != null && e.subtitleItems.length > 0) {
|
|
464
|
+
let n = e.subtitleSeparator ?? " / ", o = [], { subtitleItems: s } = e;
|
|
465
|
+
s.forEach((e, c) => {
|
|
466
|
+
let l = e.value(t);
|
|
467
|
+
o.push(/* @__PURE__ */ S("span", { children: ke(l, {
|
|
468
|
+
tApp: r,
|
|
469
|
+
t: i,
|
|
470
|
+
resolveEntityHref: a
|
|
471
|
+
}) }, e.id)), c < s.length - 1 && o.push(/* @__PURE__ */ S("span", { children: n }, `${e.id}-sep`));
|
|
472
|
+
}), c = /* @__PURE__ */ S("span", { children: o });
|
|
473
|
+
} else {
|
|
474
|
+
let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null : X(e.subtitle, r));
|
|
475
|
+
c = n != null && n.trim() !== "" ? n : void 0;
|
|
476
|
+
}
|
|
477
|
+
let l = [];
|
|
478
|
+
e.badges != null && e.badges.forEach((e, n) => {
|
|
479
|
+
let i = X(e.label, r), a = Z(e.value(t), r), o = a == null ? "" : String(a);
|
|
480
|
+
if (o.trim() === "") return;
|
|
481
|
+
let s = $(e.tone, t);
|
|
482
|
+
l.push(/* @__PURE__ */ S(R, {
|
|
483
|
+
tone: s,
|
|
484
|
+
children: `${i}: ${o}`
|
|
485
|
+
}, `${i}-${n}`));
|
|
486
|
+
});
|
|
487
|
+
let u;
|
|
488
|
+
e.status != null && (u = Me(e.status, t, r));
|
|
489
|
+
let d = e.meta?.map((e, n) => {
|
|
490
|
+
let o = X(e.label, r), s = je(e, t, {
|
|
491
|
+
tApp: r,
|
|
492
|
+
t: i,
|
|
493
|
+
resolveEntityHref: a
|
|
494
|
+
});
|
|
495
|
+
return {
|
|
496
|
+
id: `${o}-${n}`,
|
|
497
|
+
label: o,
|
|
498
|
+
value: s
|
|
499
|
+
};
|
|
500
|
+
});
|
|
501
|
+
return {
|
|
502
|
+
title: s,
|
|
503
|
+
subtitle: c,
|
|
504
|
+
badges: l.length > 0 ? /* @__PURE__ */ S(x, { children: l }) : void 0,
|
|
505
|
+
status: u,
|
|
506
|
+
items: d
|
|
507
|
+
};
|
|
508
|
+
}, Pe = (e, t, n) => {
|
|
509
|
+
let { tApp: r, t: i, resolveEntityHref: a } = n;
|
|
510
|
+
return e == null || e.length === 0 ? [] : e.map((e, s) => {
|
|
511
|
+
let u = n.keyPrefix == null ? `${e.kind}-${s}` : `${n.keyPrefix}-${e.kind}-${s}`;
|
|
512
|
+
if (e.kind === "custom") {
|
|
513
|
+
let n = e.render(t);
|
|
514
|
+
return n == null ? null : e.label == null ? /* @__PURE__ */ S("div", { children: n }, u) : /* @__PURE__ */ S(c, {
|
|
515
|
+
title: X(e.label, r),
|
|
516
|
+
children: n
|
|
517
|
+
}, u);
|
|
518
|
+
}
|
|
519
|
+
let p = X(e.label, r), m = e.description == null ? void 0 : X(e.description, r);
|
|
520
|
+
if (e.kind === "relationList") {
|
|
521
|
+
let n = e.value(t);
|
|
522
|
+
return /* @__PURE__ */ S(f, {
|
|
523
|
+
title: p,
|
|
524
|
+
target: e.target,
|
|
525
|
+
whereKey: e.whereKey,
|
|
526
|
+
value: n,
|
|
527
|
+
path: e.path
|
|
528
|
+
}, u);
|
|
529
|
+
}
|
|
530
|
+
if (e.kind === "table") {
|
|
531
|
+
let n = e.rows(t);
|
|
532
|
+
return /* @__PURE__ */ S(c, {
|
|
533
|
+
title: p,
|
|
534
|
+
description: m,
|
|
535
|
+
children: /* @__PURE__ */ S(T, {
|
|
536
|
+
columns: o(e.columns, {
|
|
537
|
+
tApp: r,
|
|
538
|
+
t: i,
|
|
539
|
+
resolveEntityHref: a
|
|
540
|
+
}),
|
|
541
|
+
rows: n,
|
|
542
|
+
getRowId: (e, t) => {
|
|
543
|
+
if (typeof e == "object" && e) {
|
|
544
|
+
let t = e.id;
|
|
545
|
+
if (typeof t == "string" && t.trim() !== "") return t;
|
|
546
|
+
}
|
|
547
|
+
return String(t);
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
}, u);
|
|
551
|
+
}
|
|
552
|
+
if (e.kind === "json") return /* @__PURE__ */ S(c, {
|
|
553
|
+
title: p,
|
|
554
|
+
description: m,
|
|
555
|
+
children: /* @__PURE__ */ S(B, {
|
|
556
|
+
value: e.value(t),
|
|
557
|
+
title: p
|
|
558
|
+
})
|
|
559
|
+
}, u);
|
|
560
|
+
if (e.kind === "code") {
|
|
561
|
+
let n = e.value(t);
|
|
562
|
+
return /* @__PURE__ */ S(c, {
|
|
563
|
+
title: p,
|
|
564
|
+
description: m,
|
|
565
|
+
children: /* @__PURE__ */ S(M, {
|
|
566
|
+
badgeLabel: i("tools.output"),
|
|
567
|
+
copyCode: n,
|
|
568
|
+
fallbackCodeText: n
|
|
569
|
+
})
|
|
570
|
+
}, u);
|
|
571
|
+
}
|
|
572
|
+
return e.kind === "payload" ? /* @__PURE__ */ S(d, {
|
|
573
|
+
title: p,
|
|
574
|
+
description: m,
|
|
575
|
+
content: e.value(t),
|
|
576
|
+
format: e.format
|
|
577
|
+
}, u) : e.kind === "errorList" ? /* @__PURE__ */ S(l, {
|
|
578
|
+
title: p,
|
|
579
|
+
description: m,
|
|
580
|
+
items: e.errors(t)
|
|
581
|
+
}, u) : /* @__PURE__ */ S(c, {
|
|
582
|
+
title: p,
|
|
583
|
+
description: m,
|
|
584
|
+
children: /* @__PURE__ */ S(N, { items: e.items.map((e, n) => {
|
|
585
|
+
let a = X(e.label, r), o = Z(e.value(t), r);
|
|
586
|
+
return {
|
|
587
|
+
id: `${a}-${n}`,
|
|
588
|
+
label: a,
|
|
589
|
+
value: o ?? i("common.notAvailable")
|
|
590
|
+
};
|
|
591
|
+
}) })
|
|
592
|
+
}, u);
|
|
593
|
+
});
|
|
594
|
+
}, Fe = ({ config: o, prepared: s }) => {
|
|
595
|
+
let { t: l } = w(), { t: u } = t(), { formatNumber: d, formatCurrency: f, formatPercent: p } = v(), { entities: T, entityRegistry: E } = n(), { layoutView: M } = y(), F = O(I), L = _(), R = D(), [z, B] = k({}), [V, H] = k(null), U = b({
|
|
596
|
+
mainPage: o.pages.mainPage,
|
|
597
|
+
subPages: o.pages.subPages,
|
|
598
|
+
activePagePath: s.pagePath,
|
|
599
|
+
node: M
|
|
600
|
+
}), W = U.activePage ?? o.pages.mainPage, G = U.pages.length > 0 ? U.pages : [o.pages.mainPage], K = (e, t) => {
|
|
601
|
+
B((n) => n[e] === t ? n : {
|
|
602
|
+
...n,
|
|
603
|
+
[e]: t
|
|
604
|
+
});
|
|
605
|
+
}, { page: q } = o, J = j(q.query, s.pageQuery), Y = q.resolveNode(J, {
|
|
606
|
+
id: s.id,
|
|
607
|
+
detailId: s.detailId
|
|
608
|
+
});
|
|
609
|
+
if (Y == null) throw new P(o.routes.list);
|
|
610
|
+
let ge = A(q.fragment, Y), _e = se(() => Object.fromEntries(q.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.entity] : []) : []).flatMap((e) => {
|
|
611
|
+
let t = T[e];
|
|
612
|
+
return t?.hasList === !0 ? [[e, t.routes.list]] : [];
|
|
613
|
+
})), [T, q.content]);
|
|
614
|
+
return /* @__PURE__ */ S(g, {
|
|
615
|
+
node: ge,
|
|
616
|
+
render: (t) => {
|
|
617
|
+
let n = q.toView(t), g = ie({
|
|
618
|
+
pages: G,
|
|
619
|
+
id: s.id,
|
|
620
|
+
tApp: l,
|
|
621
|
+
detailPageHref: o.routes.detailPage
|
|
622
|
+
}), _ = (e, t) => {
|
|
623
|
+
let n = T[e];
|
|
624
|
+
return n == null ? null : n.routes.detail(t);
|
|
625
|
+
}, v = ({ id: e, label: t, count: n, entityId: r, filterId: i, listRoute: a, path: o, value: s, where: c, whereKey: l }) => {
|
|
626
|
+
let u = E.getLoadedListEntity(r);
|
|
627
|
+
return {
|
|
628
|
+
id: e,
|
|
629
|
+
label: t,
|
|
630
|
+
count: n,
|
|
631
|
+
href: u == null ? de(a, c, [{
|
|
632
|
+
id: i ?? (o == null ? l : `${l}.${o.join(".")}`),
|
|
633
|
+
value: s
|
|
634
|
+
}]) : fe(u.config, { where: c }),
|
|
635
|
+
onClick: async (e) => {
|
|
636
|
+
if (F == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
|
|
637
|
+
e.preventDefault();
|
|
638
|
+
let t = pe((await E.loadListEntity(r)).config, { where: c });
|
|
639
|
+
F.history.push({
|
|
640
|
+
pathname: t.pathname,
|
|
641
|
+
search: t.search === "" ? "" : `?${t.search}`,
|
|
642
|
+
hash: ""
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
}, y = Ne(o.header, M, {
|
|
647
|
+
tApp: l,
|
|
648
|
+
t: u,
|
|
649
|
+
resolveEntityHref: _
|
|
650
|
+
}), b = h({
|
|
651
|
+
config: o,
|
|
652
|
+
tApp: l,
|
|
653
|
+
entityId: s.id,
|
|
654
|
+
layoutView: M,
|
|
655
|
+
pageLabel: W.label(l)
|
|
656
|
+
}), w = q.actions ?? [], D = [];
|
|
657
|
+
if (w.length > 0) {
|
|
658
|
+
let t = w.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
|
|
659
|
+
t.length > 0 && (D = t.map((t) => {
|
|
660
|
+
let a = X(t.label, l), o = t.ariaLabel == null ? a : X(t.ariaLabel, l), s = t.variant ?? "secondary", c = t.size ?? "small", d = z[t.id] ?? !1, f = d || t.isDisabled?.(n) === !0;
|
|
661
|
+
return Te(t) ? /* @__PURE__ */ S(oe, {
|
|
662
|
+
to: t.to(n),
|
|
663
|
+
variant: s,
|
|
664
|
+
size: c,
|
|
665
|
+
isDisabled: f,
|
|
666
|
+
"aria-label": o,
|
|
667
|
+
children: a
|
|
668
|
+
}, t.id) : De(t) ? /* @__PURE__ */ S(ae, {
|
|
669
|
+
type: "button",
|
|
670
|
+
variant: s,
|
|
671
|
+
size: c,
|
|
672
|
+
isLoading: !1,
|
|
673
|
+
disabled: f,
|
|
674
|
+
onClick: () => {
|
|
675
|
+
H(t.id);
|
|
676
|
+
},
|
|
677
|
+
"aria-label": o,
|
|
678
|
+
children: a
|
|
679
|
+
}, t.id) : Ee(t) ? /* @__PURE__ */ S(ae, {
|
|
680
|
+
type: "button",
|
|
681
|
+
variant: s,
|
|
682
|
+
size: c,
|
|
683
|
+
isLoading: d,
|
|
684
|
+
disabled: f,
|
|
685
|
+
onClick: () => {
|
|
686
|
+
if (d) return;
|
|
687
|
+
let a = t.getVariables(n);
|
|
688
|
+
K(t.id, !0), ce(L, {
|
|
689
|
+
mutation: t.mutation,
|
|
690
|
+
variables: a,
|
|
691
|
+
updater: (e) => {
|
|
692
|
+
t.updater?.(e, n);
|
|
693
|
+
},
|
|
694
|
+
onCompleted: (a) => {
|
|
695
|
+
K(t.id, !1);
|
|
696
|
+
let o = we(a);
|
|
697
|
+
if (o != null) {
|
|
698
|
+
let i = u("actions.form.errors.invalidPayload");
|
|
699
|
+
t.toasts?.error?.message == null ? t.toasts?.error?.title != null && (i = X(t.toasts.error.title, l)) : i = X(t.toasts.error.message, l);
|
|
700
|
+
let a = e(o, {
|
|
701
|
+
defaultErrorMessage: i,
|
|
702
|
+
mapReason: (e) => {
|
|
703
|
+
let r = t.mapErrorReason?.(e, n);
|
|
704
|
+
return r == null ? null : typeof r == "function" ? X(r, l) : String(r);
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
if (!a.ok) {
|
|
708
|
+
let e = Error(a.message);
|
|
709
|
+
if (t.onError?.(e, n), t.toasts?.error != null) {
|
|
710
|
+
let e = r(t.toasts.error, l);
|
|
711
|
+
R.error(e.title, e.message);
|
|
712
|
+
}
|
|
713
|
+
return;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
if (t.onCompleted?.(a, n), t.toasts?.success != null) {
|
|
717
|
+
let e = r(t.toasts.success, l), o = i({
|
|
718
|
+
toast: t.toasts.success,
|
|
719
|
+
response: a,
|
|
720
|
+
node: n,
|
|
721
|
+
tApp: l,
|
|
722
|
+
entities: T,
|
|
723
|
+
defaultLabel: u("actions.view"),
|
|
724
|
+
navigateTo: (e) => {
|
|
725
|
+
F?.history.push({ pathname: e });
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
R.push({
|
|
729
|
+
kind: "info",
|
|
730
|
+
title: e.title,
|
|
731
|
+
message: e.message,
|
|
732
|
+
actions: o
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
onError: (e) => {
|
|
737
|
+
if (K(t.id, !1), t.onError?.(e, n), t.toasts?.error != null) {
|
|
738
|
+
let e = r(t.toasts.error, l);
|
|
739
|
+
R.error(e.title, e.message);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
},
|
|
744
|
+
"aria-label": o,
|
|
745
|
+
children: a
|
|
746
|
+
}, t.id) : null;
|
|
747
|
+
}));
|
|
748
|
+
}
|
|
749
|
+
let O = w.find((e) => e.id === V), { content: se } = q, k = [], A = [], j = [];
|
|
750
|
+
se.forEach((e, t) => {
|
|
751
|
+
let r = (e.placement ?? "primary") === "secondary" ? A : k;
|
|
752
|
+
if (e.kind === "section") {
|
|
753
|
+
let i = X(e.title, l), a = e.description == null ? void 0 : X(e.description, l), { items: o, relationItems: s, customNodes: m } = Ae(e.fields, n, {
|
|
754
|
+
tApp: l,
|
|
755
|
+
t: u,
|
|
756
|
+
resolveEntityHref: _,
|
|
757
|
+
formatNumber: d,
|
|
758
|
+
formatCurrency: f,
|
|
759
|
+
formatPercent: p,
|
|
760
|
+
relationEntityListRoutes: _e,
|
|
761
|
+
resolveRelationItem: v
|
|
762
|
+
});
|
|
763
|
+
if (s.forEach((e) => {
|
|
764
|
+
j.some((t) => t.id === e.id) || j.push(e);
|
|
765
|
+
}), !(o.length > 0 || m.length > 0)) return;
|
|
766
|
+
r.push(/* @__PURE__ */ S(c, {
|
|
767
|
+
title: i,
|
|
768
|
+
description: a,
|
|
769
|
+
items: o.length > 0 ? o : void 0,
|
|
770
|
+
children: m
|
|
771
|
+
}, `${i}-${t}`));
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
let i = Pe([e], n, {
|
|
775
|
+
tApp: l,
|
|
776
|
+
t: u,
|
|
777
|
+
resolveEntityHref: _,
|
|
778
|
+
keyPrefix: String(t)
|
|
779
|
+
})[0];
|
|
780
|
+
i != null && r.push(i);
|
|
781
|
+
});
|
|
782
|
+
let P = j.length > 0 ? /* @__PURE__ */ S(ue, {
|
|
783
|
+
label: u("relations.menu.label"),
|
|
784
|
+
items: j
|
|
785
|
+
}) : null, I = D.length > 0 || P != null ? /* @__PURE__ */ C("div", {
|
|
786
|
+
className: ee,
|
|
787
|
+
children: [D, P]
|
|
788
|
+
}) : void 0, B = y.status != null || y.badges != null ? /* @__PURE__ */ C("div", {
|
|
789
|
+
className: ne,
|
|
790
|
+
children: [y.status, y.badges]
|
|
791
|
+
}) : void 0, U = y.items != null && y.items.length > 0 ? /* @__PURE__ */ S("div", {
|
|
792
|
+
className: re,
|
|
793
|
+
children: /* @__PURE__ */ S(N, { items: y.items })
|
|
794
|
+
}) : null, J = A.length > 0, Y = null;
|
|
795
|
+
return G.length > 1 && (Y = /* @__PURE__ */ S(he, {
|
|
796
|
+
items: g,
|
|
797
|
+
activeId: W.id,
|
|
798
|
+
onChange: () => {}
|
|
799
|
+
})), /* @__PURE__ */ C(m, {
|
|
800
|
+
breadcrumb: b,
|
|
801
|
+
children: [/* @__PURE__ */ S(me, {
|
|
802
|
+
headerNode: /* @__PURE__ */ C("div", {
|
|
803
|
+
className: te,
|
|
804
|
+
children: [/* @__PURE__ */ S(le, {
|
|
805
|
+
title: y.title,
|
|
806
|
+
subtitle: y.subtitle,
|
|
807
|
+
actions: I,
|
|
808
|
+
meta: B
|
|
809
|
+
}), U]
|
|
810
|
+
}),
|
|
811
|
+
tabsNode: Y,
|
|
812
|
+
sidePanel: J ? /* @__PURE__ */ S(x, { children: A }) : void 0,
|
|
813
|
+
sidePanelVariant: "plain",
|
|
814
|
+
children: /* @__PURE__ */ S(x, { children: k })
|
|
815
|
+
}), O != null && De(O) && /* @__PURE__ */ S(a, {
|
|
816
|
+
isOpen: !0,
|
|
817
|
+
action: O,
|
|
818
|
+
node: n,
|
|
819
|
+
onClose: () => {
|
|
820
|
+
H(null);
|
|
821
|
+
}
|
|
822
|
+
})]
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}, Ie = ({ config: e, prepared: t }) => {
|
|
827
|
+
let { layoutView: n } = y(), r = b({
|
|
828
|
+
mainPage: e.pages.mainPage,
|
|
829
|
+
subPages: e.pages.subPages,
|
|
830
|
+
activePagePath: t.pagePath,
|
|
831
|
+
node: n
|
|
832
|
+
});
|
|
833
|
+
if (!r.hasVisiblePages || r.activePage == null) throw new P(e.routes.list);
|
|
834
|
+
if (r.activePage.id !== t.pageId) throw new P(e.routes.detailPage(t.id, r.activePage.id));
|
|
835
|
+
return /* @__PURE__ */ S(Fe, {
|
|
836
|
+
config: t.pageConfig,
|
|
837
|
+
prepared: t
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
//#endregion
|
|
841
|
+
export { Ie as BackofficeEntityDetailPage, Ie as default };
|
|
842
|
+
|
|
843
|
+
//# sourceMappingURL=BackofficeEntityDetailPage.js.map
|