@plumile/backoffice-react 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- package/lib/esm/auth/AuthRefreshNotice.js +21 -18
- package/lib/esm/auth/AuthRefreshNotice.js.map +1 -1
- package/lib/esm/auth/TotpQrCode.js +20 -12
- package/lib/esm/auth/TotpQrCode.js.map +1 -1
- package/lib/esm/auth/authRefreshNotice.css.js +2 -1
- package/lib/esm/auth/authRefreshNotice.css.js.map +1 -1
- package/lib/esm/auth/login/AuthPanel.js.map +1 -1
- package/lib/esm/auth/login/EmailCapturePanel.js +26 -28
- package/lib/esm/auth/login/EmailCapturePanel.js.map +1 -1
- package/lib/esm/auth/login/LoginFlow.js +11 -11
- package/lib/esm/auth/login/LoginFlow.js.map +1 -1
- package/lib/esm/auth/login/MethodChooser.js +18 -16
- package/lib/esm/auth/login/MethodChooser.js.map +1 -1
- package/lib/esm/auth/login/MfaChallengeForm.js +47 -52
- package/lib/esm/auth/login/MfaChallengeForm.js.map +1 -1
- package/lib/esm/auth/login/OidcButtons.js +3 -2
- package/lib/esm/auth/login/OidcButtons.js.map +1 -1
- package/lib/esm/auth/login/PasskeyLoginForm.js +13 -15
- package/lib/esm/auth/login/PasskeyLoginForm.js.map +1 -1
- package/lib/esm/auth/login/PasswordLoginPanel.js +8 -8
- package/lib/esm/auth/login/PasswordLoginPanel.js.map +1 -1
- package/lib/esm/auth/login/loginPage.css.js +1 -1
- package/lib/esm/auth/login/loginPage.css.js.map +1 -1
- package/lib/esm/auth/pages/AcceptInvitationScreen.js +80 -75
- package/lib/esm/auth/pages/AcceptInvitationScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js +31 -31
- package/lib/esm/auth/pages/PasswordResetCompleteScreen.js.map +1 -1
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js +33 -29
- package/lib/esm/auth/pages/PasswordResetRequestScreen.js.map +1 -1
- package/lib/esm/auth/pages/VerifyEmailScreen.js +42 -40
- package/lib/esm/auth/pages/VerifyEmailScreen.js.map +1 -1
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js +202 -210
- package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js +1 -1
- package/lib/esm/components/backoffice/actions/backofficeEntityActionFormDialog.css.js.map +1 -1
- package/lib/esm/components/backoffice/actions/toastViewAction.js.map +1 -1
- package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js +36 -30
- package/lib/esm/components/backoffice/billing/BackofficeBillingUsageChart.js.map +1 -1
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +1 -1
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js.map +1 -1
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +36 -33
- package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailBadgeRow.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeDetailErrorList.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js +24 -20
- package/lib/esm/components/backoffice/detail/BackofficeEntitySummaryHeader.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js +7 -8
- package/lib/esm/components/backoffice/detail/BackofficeTokenUsageBreakdown.js.map +1 -1
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js +49 -45
- package/lib/esm/components/backoffice/detail/BackofficeUsageCostBreakdown.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailBadgeRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailErrorList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationList.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeEntitySummaryHeader.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeRelationsSummaryGrid.css.js.map +1 -1
- package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js +1 -1
- package/lib/esm/components/backoffice/detail/backofficeUsageCostBreakdown.css.js.map +1 -1
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js +1 -1
- package/lib/esm/components/backoffice/errors/BackofficeErrorBoundary.js.map +1 -1
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +1 -1
- package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -1
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js +15 -15
- package/lib/esm/components/backoffice/filters/DeferredFilterSearchInput.js.map +1 -1
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js +53 -65
- package/lib/esm/components/backoffice/filters/EntityIdFilterField.js.map +1 -1
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js +1 -1
- package/lib/esm/components/backoffice/filters/backofficeFilterAction.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js +1 -1
- package/lib/esm/components/backoffice/filters/deferredFilterSearchInput.css.js.map +1 -1
- package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js +2 -2
- package/lib/esm/components/backoffice/filters/entityIdFilterField.css.js.map +1 -1
- package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js +6 -6
- package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js.map +1 -1
- package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js +1 -1
- package/lib/esm/components/backoffice/hub/backofficeHubTemplate.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js +1 -1
- package/lib/esm/components/backoffice/layout/backofficeSidebarActions.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +3 -3
- package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +1 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js.map +1 -1
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js +152 -172
- package/lib/esm/components/backoffice/layout/buildSidebarSections.js.map +1 -1
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js +2 -5
- package/lib/esm/components/backoffice/layout/mapViewerToSidebarProfileView.js.map +1 -1
- package/lib/esm/components/backoffice/layout/sidebarUtils.js +1 -1
- package/lib/esm/components/backoffice/layout/sidebarUtils.js.map +1 -1
- package/lib/esm/components/backoffice/links/BackofficeLinkContent.js +1 -1
- package/lib/esm/components/backoffice/links/backofficeLink.css.js +1 -1
- package/lib/esm/components/backoffice/links/backofficeLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +1 -1
- package/lib/esm/components/backoffice/list/RowFlagsCell.css.js.map +1 -1
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js +1 -1
- package/lib/esm/components/backoffice/overview/BackofficeOverviewLayout.js.map +1 -1
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js +1 -1
- package/lib/esm/components/backoffice/overview/backofficeOverviewLayout.css.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js +93 -82
- package/lib/esm/components/backoffice/pickers/EntityIdPickerDialog.js.map +1 -1
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js +1 -1
- package/lib/esm/components/backoffice/pickers/entityIdPickerDialog.css.js.map +1 -1
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js +1 -1
- package/lib/esm/components/backoffice/refs/backofficeRelatedCountLink.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js +6 -3
- package/lib/esm/components/backoffice/routing/BackofficeContentError.js.map +1 -1
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js +7 -7
- package/lib/esm/components/backoffice/routing/BackofficeRouteFallback.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentBoundary.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentError.css.js.map +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js +1 -1
- package/lib/esm/components/backoffice/routing/backofficeContentFallback.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js +3 -2
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js +314 -309
- package/lib/esm/components/backoffice/scaffolds/BackofficeEntityListScaffold.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/BackofficeTabbedDetailShell.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeEntityListScaffold.css.js.map +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js +1 -1
- package/lib/esm/components/backoffice/scaffolds/backofficeTabbedDetailShell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js +2 -2
- package/lib/esm/components/backoffice/shared/BackofficeFilterableCell.js.map +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js +1 -1
- package/lib/esm/components/backoffice/shared/BackofficeInlineFilterRow.js.map +1 -1
- package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js +5 -5
- package/lib/esm/components/backoffice/shared/backofficeFilterableCell.css.js.map +1 -1
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js +1 -1
- package/lib/esm/components/backoffice/shared/backofficeInlineFilterRow.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js +12 -12
- package/lib/esm/components/backoffice/tools/BackofficeToolsDocPanel.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js +3 -2
- package/lib/esm/components/backoffice/tools/BackofficeToolsErrorFallback.js.map +1 -1
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js +15 -19
- package/lib/esm/components/backoffice/tools/BackofficeToolsJsonForm.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsDocPanel.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsForm.css.js.map +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js +1 -1
- package/lib/esm/components/backoffice/tools/backofficeToolsJsonForm.css.js.map +1 -1
- package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js +17 -9
- package/lib/esm/hooks/useBackofficeInfiniteScrollSentinel.js.map +1 -1
- package/lib/esm/hooks/useCopyToClipboard.js +1 -1
- package/lib/esm/hooks/useCopyToClipboard.js.map +1 -1
- package/lib/esm/i18n/locales/en/backofficeReact.js +21 -2
- package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
- package/lib/esm/i18n/locales/fr/backofficeReact.js +21 -2
- package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
- package/lib/esm/pages/BackofficeDashboardPage.js +42 -41
- package/lib/esm/pages/BackofficeDashboardPage.js.map +1 -1
- package/lib/esm/pages/BackofficeDashboardWidgetContent.js +291 -255
- package/lib/esm/pages/BackofficeDashboardWidgetContent.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +47 -49
- package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPage.js +111 -105
- package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +213 -213
- package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListDataPage.js +101 -83
- package/lib/esm/pages/BackofficeEntityListDataPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.helpers.js +10 -4
- package/lib/esm/pages/BackofficeEntityListPage.helpers.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListPage.js +55 -54
- package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityListRouteContext.js.map +1 -1
- package/lib/esm/pages/BackofficeHubPage.js +1 -1
- package/lib/esm/pages/BackofficeHubPage.js.map +1 -1
- package/lib/esm/pages/BackofficeLayoutPage.js +64 -56
- package/lib/esm/pages/BackofficeLayoutPage.js.map +1 -1
- package/lib/esm/pages/backofficeDashboardPage.css.js +1 -1
- package/lib/esm/pages/backofficeDashboardPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityDetailPage.css.js +1 -1
- package/lib/esm/pages/backofficeEntityDetailPage.css.js.map +1 -1
- package/lib/esm/pages/backofficeEntityListPage.css.js +1 -1
- package/lib/esm/pages/backofficeEntityListPage.css.js.map +1 -1
- package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +1 -1
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js +11 -11
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js.map +1 -1
- package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
- package/lib/esm/provider/BackofficeProvider.js +41 -39
- package/lib/esm/provider/BackofficeProvider.js.map +1 -1
- package/lib/esm/router/createBackofficeRoutes.js +23 -23
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
- package/lib/esm/storybook/backofficeDashboardPageStory.css.js +6 -0
- package/lib/esm/storybook/backofficeDashboardPageStory.css.js.map +1 -0
- package/lib/esm/storybook/relay/RelayStory.css.js +1 -1
- package/lib/esm/storybook/relay/RelayStory.css.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/types/auth/AuthRefreshNotice.d.ts +5 -1
- package/lib/types/auth/AuthRefreshNotice.d.ts.map +1 -1
- package/lib/types/auth/TotpQrCode.d.ts +2 -1
- package/lib/types/auth/TotpQrCode.d.ts.map +1 -1
- package/lib/types/auth/authRefreshNotice.css.d.ts.map +1 -1
- package/lib/types/auth/login/AuthPanel.d.ts.map +1 -1
- package/lib/types/auth/login/EmailCapturePanel.d.ts.map +1 -1
- package/lib/types/auth/login/LoginFlow.d.ts.map +1 -1
- package/lib/types/auth/login/MethodChooser.d.ts.map +1 -1
- package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
- package/lib/types/auth/login/OidcButtons.d.ts.map +1 -1
- package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
- package/lib/types/auth/login/PasswordLoginPanel.d.ts +1 -1
- package/lib/types/auth/login/PasswordLoginPanel.d.ts.map +1 -1
- package/lib/types/auth/login/loginPage.css.d.ts.map +1 -1
- package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/PasswordResetCompleteScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/PasswordResetRequestScreen.d.ts.map +1 -1
- package/lib/types/auth/pages/VerifyEmailScreen.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts +3 -3
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts +1 -1
- package/lib/types/components/backoffice/actions/toastViewAction.d.ts.map +1 -1
- package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts +2 -1
- package/lib/types/components/backoffice/billing/BackofficeBillingUsageChart.d.ts.map +1 -1
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts +2 -2
- package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailBadgeRow.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeEntitySummaryHeader.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeTokenUsageBreakdown.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts +1 -1
- package/lib/types/components/backoffice/detail/BackofficeUsageCostBreakdown.d.ts.map +1 -1
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts +1 -1
- package/lib/types/components/backoffice/errors/BackofficeErrorBoundary.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/backofficeFilterAction.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +0 -1
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/backofficeSidebarActions.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +2 -2
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts +1 -1
- package/lib/types/components/backoffice/layout/mapViewerToSidebarProfileView.d.ts.map +1 -1
- package/lib/types/components/backoffice/list/RowFlagsCell.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/overview/backofficeOverviewLayout.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +3 -3
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailNotFound.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +2 -2
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeTabbedDetailShell.d.ts.map +1 -1
- package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/BackofficeToolsErrorFallback.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/BackofficeToolsJsonForm.d.ts.map +1 -1
- package/lib/types/components/backoffice/tools/backofficeToolsDocPanel.css.d.ts.map +1 -1
- package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts +1 -2
- package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +44 -2
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardWidgetContent.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListDataPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +9 -9
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListRouteContext.d.ts +2 -2
- package/lib/types/pages/BackofficeEntityListRouteContext.d.ts.map +1 -1
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/backofficeEntityListPage.css.d.ts.map +1 -1
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts +1 -1
- package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts.map +1 -1
- package/lib/types/pages/detail/buildTabsItems.d.ts +1 -1
- package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -1
- package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
- package/lib/types/provider/types.d.ts +2 -0
- package/lib/types/provider/types.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts +0 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts +2 -0
- package/lib/types/storybook/backofficeDashboardPageStory.css.d.ts.map +1 -0
- package/package.json +17 -17
- package/lib/esm/components/backoffice/technical/TechnicalIdentifierValue.js +0 -2
- package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts +0 -2
- package/lib/types/components/backoffice/technical/TechnicalIdentifierValue.d.ts.map +0 -1
|
@@ -5,30 +5,21 @@ import { EntityIdFilterField as r } from "../filters/EntityIdFilterField.js";
|
|
|
5
5
|
import { EntityIdPickerDialog as i } from "../pickers/EntityIdPickerDialog.js";
|
|
6
6
|
import { resolveToastSpec as a, resolveToastViewActions as o } from "./toastViewAction.js";
|
|
7
7
|
import { actions as s, checkboxGroup as c, form as l } from "./backofficeEntityActionFormDialog.css.js";
|
|
8
|
-
import { useCallback as u, useContext as d, useEffect as f, useId as ee, useMemo as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { Textarea as b } from "@plumile/ui/atomic/atoms/textarea/Textarea.js";
|
|
18
|
-
import { CheckboxField as x } from "@plumile/ui/atomic/molecules/checkbox_field/CheckboxField.js";
|
|
19
|
-
import { FormGrid as oe } from "@plumile/ui/atomic/molecules/form_grid/FormGrid.js";
|
|
20
|
-
import { FormFieldLayout as S } from "@plumile/ui/atomic/molecules/form_field_layout/FormFieldLayout.js";
|
|
21
|
-
import { HighlightCode as se } from "@plumile/ui/atomic/molecules/highlight/HighlightCode.js";
|
|
22
|
-
import { useToast as ce } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
|
|
23
|
-
import { BackofficeFormSection as le } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
|
|
24
|
-
import { SimpleSelect as ue } from "@plumile/ui/components/select/SimpleSelect.js";
|
|
25
|
-
import de from "@plumile/router/routing/RoutingContext.js";
|
|
8
|
+
import { useCallback as u, useContext as d, useEffect as f, useId as ee, useMemo as te, useState as p } from "react";
|
|
9
|
+
import { CheckboxField as ne, Form as re, FormError as ie, FormFieldLayout as m, FormGrid as ae, HighlightCode as oe, Input as h, Modal as se, Textarea as g, useToast as ce } from "@plumile/ui";
|
|
10
|
+
import { Fragment as le, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
|
+
import { useTranslation as ue } from "react-i18next";
|
|
12
|
+
import { Button as y } from "@plumile/ui/button";
|
|
13
|
+
import * as b from "react-relay";
|
|
14
|
+
import { BackofficeFormSection as de } from "@plumile/ui/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js";
|
|
15
|
+
import { Select as fe } from "@plumile/ui/select";
|
|
16
|
+
import pe from "@plumile/router/routing/RoutingContext.js";
|
|
26
17
|
//#region src/components/backoffice/actions/BackofficeEntityActionFormDialog.tsx
|
|
27
|
-
var { commitMutation:
|
|
28
|
-
if (!
|
|
29
|
-
for (let t of Object.values(e)) if (
|
|
18
|
+
var { commitMutation: me, useRelayEnvironment: he } = b, x = (e, t) => e(t), S = (e) => typeof e == "object" && !!e && !Array.isArray(e), ge = (e) => {
|
|
19
|
+
if (!S(e)) return null;
|
|
20
|
+
for (let t of Object.values(e)) if (S(t) && ("status" in t || "result" in t)) return t;
|
|
30
21
|
return null;
|
|
31
|
-
},
|
|
22
|
+
}, C = (e) => {
|
|
32
23
|
let t = {};
|
|
33
24
|
return e.forEach((e) => {
|
|
34
25
|
if (e.kind === "boolean") {
|
|
@@ -45,45 +36,45 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
45
36
|
}
|
|
46
37
|
t[e.id] = "";
|
|
47
38
|
}), t;
|
|
48
|
-
},
|
|
49
|
-
let n =
|
|
39
|
+
}, w = (e, t) => e.kind === "number" ? typeof t == "number" ? String(t) : typeof t == "string" ? t : "" : e.kind === "multiEnum" ? Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim() !== "") : [] : e.kind === "boolean" ? t === !0 : typeof t == "string" ? t : t ?? "", _e = (e, t) => {
|
|
40
|
+
let n = C(e.fields);
|
|
50
41
|
if (e.getInitialValues == null) return n;
|
|
51
42
|
let r = e.getInitialValues(t);
|
|
52
|
-
if (!
|
|
43
|
+
if (!S(r)) return n;
|
|
53
44
|
let i = { ...n };
|
|
54
45
|
return e.fields.forEach((e) => {
|
|
55
|
-
e.id in r && (i[e.id] =
|
|
46
|
+
e.id in r && (i[e.id] = w(e, r[e.id]));
|
|
56
47
|
}), i;
|
|
57
|
-
},
|
|
58
|
-
let { t:
|
|
48
|
+
}, T = ({ open: b, action: C, node: w, onOpenChange: T, onSuccess: E }) => {
|
|
49
|
+
let { t: D } = ue(), { t: O } = e(), { entities: k } = n(), A = d(pe), j = he(), M = ce(), ve = ee(), [N, P] = p({}), [ye, F] = p(null), [be, I] = p({}), [L, R] = p(!1), [z, B] = p(null), [V, H] = p(null), [U, W] = p(null);
|
|
59
50
|
f(() => {
|
|
60
|
-
|
|
51
|
+
b && (P(_e(C, w)), F(null), I({}), B(null), H(null));
|
|
61
52
|
}, [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
C,
|
|
54
|
+
w,
|
|
55
|
+
b
|
|
65
56
|
]);
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
}, [
|
|
69
|
-
|
|
57
|
+
let G = u(() => {
|
|
58
|
+
L || T(!1);
|
|
59
|
+
}, [L, T]), K = u((e, t) => {
|
|
60
|
+
P((n) => ({
|
|
70
61
|
...n,
|
|
71
62
|
[e]: t
|
|
72
|
-
})),
|
|
63
|
+
})), I((t) => {
|
|
73
64
|
if (t[e] == null) return t;
|
|
74
65
|
let { [e]: n, ...r } = t;
|
|
75
66
|
return r;
|
|
76
67
|
});
|
|
77
|
-
}, []),
|
|
68
|
+
}, []), xe = x(C.label, D), q = u((e) => O("actions.form.errors.required", { label: e }), [O]), J = u((e) => O("actions.form.errors.invalidNumber", { label: e }), [O]), Y = u((e) => O("actions.form.errors.invalidJson", { label: e }), [O]), X = u((e) => O("actions.form.errors.invalidJsonObject", { label: e }), [O]), Se = u((e) => O("actions.form.errors.invalidJsonArray", { label: e }), [O]), Ce = u(() => {
|
|
78
69
|
let e = {};
|
|
79
|
-
for (let t of
|
|
80
|
-
let n =
|
|
70
|
+
for (let t of C.fields) {
|
|
71
|
+
let n = x(t.label, D), r = N[t.id];
|
|
81
72
|
switch (t.kind) {
|
|
82
73
|
case "text": {
|
|
83
74
|
let i = "";
|
|
84
75
|
if (typeof r == "string" && (i = r.trim()), i === "") {
|
|
85
76
|
if (t.required) return {
|
|
86
|
-
error:
|
|
77
|
+
error: q(n),
|
|
87
78
|
fieldId: t.id
|
|
88
79
|
};
|
|
89
80
|
break;
|
|
@@ -95,7 +86,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
95
86
|
let i = "";
|
|
96
87
|
if (typeof r == "string" && (i = r.trim()), i === "") {
|
|
97
88
|
if (t.required) return {
|
|
98
|
-
error:
|
|
89
|
+
error: q(n),
|
|
99
90
|
fieldId: t.id
|
|
100
91
|
};
|
|
101
92
|
break;
|
|
@@ -107,14 +98,14 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
107
98
|
let i = "";
|
|
108
99
|
if (typeof r == "string" ? i = r.trim() : typeof r == "number" && Number.isFinite(r) && (i = String(r)), i === "") {
|
|
109
100
|
if (t.required) return {
|
|
110
|
-
error:
|
|
101
|
+
error: q(n),
|
|
111
102
|
fieldId: t.id
|
|
112
103
|
};
|
|
113
104
|
break;
|
|
114
105
|
}
|
|
115
106
|
let a = Number(i);
|
|
116
107
|
if (!Number.isFinite(a)) return {
|
|
117
|
-
error:
|
|
108
|
+
error: J(n),
|
|
118
109
|
fieldId: t.id
|
|
119
110
|
};
|
|
120
111
|
e[t.id] = a;
|
|
@@ -124,7 +115,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
124
115
|
let i = "";
|
|
125
116
|
if (typeof r == "string" && (i = r.trim()), i === "") {
|
|
126
117
|
if (t.required) return {
|
|
127
|
-
error:
|
|
118
|
+
error: q(n),
|
|
128
119
|
fieldId: t.id
|
|
129
120
|
};
|
|
130
121
|
break;
|
|
@@ -134,13 +125,13 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
134
125
|
a = JSON.parse(i);
|
|
135
126
|
} catch {
|
|
136
127
|
return {
|
|
137
|
-
error:
|
|
128
|
+
error: Y(n),
|
|
138
129
|
fieldId: t.id
|
|
139
130
|
};
|
|
140
131
|
}
|
|
141
132
|
let o = t.jsonType ?? "object";
|
|
142
|
-
if (o === "object" && !
|
|
143
|
-
error:
|
|
133
|
+
if (o === "object" && !S(a)) return {
|
|
134
|
+
error: X(n),
|
|
144
135
|
fieldId: t.id
|
|
145
136
|
};
|
|
146
137
|
if (o === "array" && !Array.isArray(a)) return {
|
|
@@ -154,7 +145,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
154
145
|
let i = "";
|
|
155
146
|
if (typeof r == "string" && (i = r.trim()), i === "") {
|
|
156
147
|
if (t.required) return {
|
|
157
|
-
error:
|
|
148
|
+
error: q(n),
|
|
158
149
|
fieldId: t.id
|
|
159
150
|
};
|
|
160
151
|
break;
|
|
@@ -169,7 +160,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
169
160
|
let i = "";
|
|
170
161
|
if (typeof r == "string" && (i = r.trim()), i === "") {
|
|
171
162
|
if (t.required) return {
|
|
172
|
-
error:
|
|
163
|
+
error: q(n),
|
|
173
164
|
fieldId: t.id
|
|
174
165
|
};
|
|
175
166
|
break;
|
|
@@ -181,7 +172,7 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
181
172
|
let i = [];
|
|
182
173
|
if (Array.isArray(r) && (i = r.filter((e) => typeof e == "string" && e.trim() !== "")), i.length === 0) {
|
|
183
174
|
if (t.required) return {
|
|
184
|
-
error:
|
|
175
|
+
error: q(n),
|
|
185
176
|
fieldId: t.id
|
|
186
177
|
};
|
|
187
178
|
break;
|
|
@@ -193,165 +184,168 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
193
184
|
}
|
|
194
185
|
return { values: e };
|
|
195
186
|
}, [
|
|
196
|
-
|
|
187
|
+
C.fields,
|
|
197
188
|
Se,
|
|
198
|
-
be,
|
|
199
|
-
xe,
|
|
200
|
-
X,
|
|
201
189
|
Y,
|
|
202
|
-
|
|
203
|
-
|
|
190
|
+
X,
|
|
191
|
+
J,
|
|
192
|
+
q,
|
|
193
|
+
D,
|
|
194
|
+
N
|
|
204
195
|
]), Z = u(() => {
|
|
205
|
-
if (
|
|
206
|
-
|
|
196
|
+
if (L) return;
|
|
197
|
+
F(null), I({});
|
|
207
198
|
let e = Ce();
|
|
208
199
|
if ("error" in e) {
|
|
209
|
-
|
|
200
|
+
F(e.error), e.fieldId != null && I({ [e.fieldId]: e.error });
|
|
210
201
|
return;
|
|
211
202
|
}
|
|
212
203
|
let n;
|
|
213
204
|
try {
|
|
214
|
-
n =
|
|
205
|
+
n = C.getVariables(w, e.values);
|
|
215
206
|
} catch {
|
|
216
|
-
let e =
|
|
217
|
-
|
|
207
|
+
let e = O("actions.form.errors.invalidPayload");
|
|
208
|
+
F(e);
|
|
218
209
|
return;
|
|
219
210
|
}
|
|
220
|
-
|
|
221
|
-
mutation:
|
|
211
|
+
R(!0), me(j, {
|
|
212
|
+
mutation: C.mutation,
|
|
222
213
|
variables: n,
|
|
223
214
|
updater: (e) => {
|
|
224
|
-
|
|
215
|
+
C.updater?.(e, w);
|
|
225
216
|
},
|
|
226
217
|
onCompleted: (e) => {
|
|
227
|
-
|
|
228
|
-
let n =
|
|
218
|
+
R(!1);
|
|
219
|
+
let n = ge(e);
|
|
229
220
|
if (n != null) {
|
|
230
|
-
let e =
|
|
231
|
-
|
|
221
|
+
let e = O("actions.form.errors.invalidPayload");
|
|
222
|
+
C.toasts?.error?.message == null ? C.toasts?.error?.title != null && (e = x(C.toasts.error.title, D)) : e = x(C.toasts.error.message, D);
|
|
232
223
|
let r = t(n, {
|
|
233
224
|
defaultErrorMessage: e,
|
|
234
225
|
mapReason: (e) => {
|
|
235
|
-
let t =
|
|
236
|
-
return t == null ? null : typeof t == "function" ?
|
|
226
|
+
let t = C.mapErrorReason?.(e, w);
|
|
227
|
+
return t == null ? null : typeof t == "function" ? x(t, D) : String(t);
|
|
237
228
|
}
|
|
238
229
|
});
|
|
239
230
|
if (!r.ok) {
|
|
240
231
|
let e = Error(r.message);
|
|
241
|
-
if (
|
|
242
|
-
let e = C
|
|
243
|
-
|
|
232
|
+
if (F(r.message), C.onError?.(e, w), C.toasts?.error != null) {
|
|
233
|
+
let e = x(C.toasts.error.title, D), t;
|
|
234
|
+
C.toasts.error.message != null && (t = x(C.toasts.error.message, D)), M.error(e, t);
|
|
244
235
|
}
|
|
245
236
|
return;
|
|
246
237
|
}
|
|
247
238
|
}
|
|
248
|
-
|
|
239
|
+
C.onCompleted?.(e, w);
|
|
249
240
|
let r = !1;
|
|
250
|
-
if (
|
|
251
|
-
let t = a(
|
|
252
|
-
toast:
|
|
241
|
+
if (C.result?.render != null && C.result.render(e, w) != null && (r = !0, H(e)), C.toasts?.success != null) {
|
|
242
|
+
let t = a(C.toasts.success, D), n = o({
|
|
243
|
+
toast: C.toasts.success,
|
|
253
244
|
response: e,
|
|
254
|
-
node:
|
|
255
|
-
tApp:
|
|
256
|
-
entities:
|
|
257
|
-
defaultLabel:
|
|
245
|
+
node: w,
|
|
246
|
+
tApp: D,
|
|
247
|
+
entities: k,
|
|
248
|
+
defaultLabel: O("actions.view"),
|
|
258
249
|
navigateTo: (e) => {
|
|
259
|
-
|
|
250
|
+
A?.history.push({ pathname: e });
|
|
260
251
|
}
|
|
261
252
|
});
|
|
262
|
-
|
|
253
|
+
M.push({
|
|
263
254
|
kind: "info",
|
|
264
255
|
title: t.title,
|
|
265
256
|
message: t.message,
|
|
266
257
|
actions: n
|
|
267
258
|
});
|
|
268
259
|
}
|
|
269
|
-
if (
|
|
270
|
-
let t =
|
|
260
|
+
if (C.result != null) {
|
|
261
|
+
let t = C.result.getValue(e, w);
|
|
271
262
|
if (typeof t == "string" && t.trim() !== "") {
|
|
272
|
-
|
|
263
|
+
B(t), E?.();
|
|
273
264
|
return;
|
|
274
265
|
}
|
|
275
266
|
}
|
|
276
267
|
if (r) {
|
|
277
|
-
|
|
268
|
+
E?.();
|
|
278
269
|
return;
|
|
279
270
|
}
|
|
280
|
-
|
|
271
|
+
E?.(), T(!1);
|
|
281
272
|
},
|
|
282
273
|
onError: (e) => {
|
|
283
|
-
|
|
284
|
-
let t =
|
|
285
|
-
if (
|
|
286
|
-
let e = C
|
|
287
|
-
|
|
274
|
+
R(!1);
|
|
275
|
+
let t = O("actions.form.errors.submitFailed");
|
|
276
|
+
if (F(t), C.onError?.(e, w), C.toasts?.error != null) {
|
|
277
|
+
let e = x(C.toasts.error.title, D), t;
|
|
278
|
+
C.toasts.error.message != null && (t = x(C.toasts.error.message, D)), M.error(e, t);
|
|
288
279
|
}
|
|
289
280
|
}
|
|
290
281
|
});
|
|
291
282
|
}, [
|
|
292
|
-
|
|
283
|
+
C,
|
|
293
284
|
Ce,
|
|
285
|
+
k,
|
|
294
286
|
j,
|
|
295
|
-
|
|
296
|
-
|
|
287
|
+
L,
|
|
288
|
+
w,
|
|
289
|
+
T,
|
|
297
290
|
E,
|
|
298
|
-
|
|
291
|
+
A?.history,
|
|
299
292
|
O,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
k,
|
|
303
|
-
P
|
|
293
|
+
D,
|
|
294
|
+
M
|
|
304
295
|
]), we = u((e) => {
|
|
305
296
|
e.preventDefault(), Z();
|
|
306
|
-
}, [Z]), Q =
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
]), $ =
|
|
311
|
-
return
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
297
|
+
}, [Z]), Q = te(() => C.result == null ? null : x(C.result.label, D), [C.result, D]), Te = te(() => C.result?.render == null || V == null ? null : C.result.render(V, w), [
|
|
298
|
+
C.result,
|
|
299
|
+
w,
|
|
300
|
+
V
|
|
301
|
+
]), $ = z != null && Q != null || Te != null, Ee = x(C.label, D);
|
|
302
|
+
return b ? /* @__PURE__ */ v(le, { children: [/* @__PURE__ */ _(se, {
|
|
303
|
+
open: b,
|
|
304
|
+
onOpenChange: (e) => {
|
|
305
|
+
e || G();
|
|
306
|
+
},
|
|
307
|
+
title: xe,
|
|
315
308
|
initialFocus: "first-form-control",
|
|
316
|
-
footer: /* @__PURE__ */
|
|
309
|
+
footer: /* @__PURE__ */ v("div", {
|
|
317
310
|
className: s,
|
|
318
|
-
children: [/* @__PURE__ */
|
|
311
|
+
children: [/* @__PURE__ */ _(y, {
|
|
319
312
|
type: "button",
|
|
320
|
-
variant: "
|
|
313
|
+
variant: "soft",
|
|
321
314
|
size: "small",
|
|
322
|
-
disabled:
|
|
323
|
-
onClick:
|
|
324
|
-
|
|
325
|
-
|
|
315
|
+
disabled: L,
|
|
316
|
+
onClick: G,
|
|
317
|
+
tone: "neutral",
|
|
318
|
+
children: O("actions.form.cancel")
|
|
319
|
+
}), !$ && /* @__PURE__ */ _(y, {
|
|
326
320
|
type: "submit",
|
|
327
|
-
variant: "
|
|
321
|
+
variant: "solid",
|
|
328
322
|
size: "small",
|
|
329
|
-
disabled:
|
|
330
|
-
|
|
331
|
-
|
|
323
|
+
disabled: L,
|
|
324
|
+
loading: L,
|
|
325
|
+
loadingText: O("actions.form.submitting"),
|
|
332
326
|
onClick: Z,
|
|
333
327
|
children: Ee
|
|
334
328
|
})]
|
|
335
329
|
}),
|
|
336
|
-
children: /* @__PURE__ */
|
|
330
|
+
children: /* @__PURE__ */ v(re, {
|
|
337
331
|
onSubmit: we,
|
|
338
332
|
className: l,
|
|
339
333
|
children: [
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ _(ie, { message: ye }),
|
|
335
|
+
/* @__PURE__ */ _(de, { children: /* @__PURE__ */ _(ae, {
|
|
342
336
|
layout: "vertical",
|
|
343
|
-
children:
|
|
344
|
-
let t =
|
|
345
|
-
e.description != null && (n =
|
|
346
|
-
let i = `${
|
|
347
|
-
l && (u = "error"
|
|
348
|
-
let
|
|
349
|
-
switch (n != null && s != null ?
|
|
337
|
+
children: C.fields.map((e) => {
|
|
338
|
+
let t = x(e.label, D), n = null;
|
|
339
|
+
e.description != null && (n = x(e.description, D));
|
|
340
|
+
let i = `${ve}-${e.id}`, a = `${i}-description`, o = `${i}-error`, s = be[e.id] ?? null, l = s != null, u;
|
|
341
|
+
l && (u = "error");
|
|
342
|
+
let d;
|
|
343
|
+
switch (n != null && s != null ? d = `${a} ${o}` : n == null ? s != null && (d = o) : d = a, e.kind) {
|
|
350
344
|
case "text": {
|
|
351
|
-
let r =
|
|
345
|
+
let r = N[e.id], c = "";
|
|
352
346
|
typeof r == "string" && (c = r);
|
|
353
|
-
let
|
|
354
|
-
return e.placeholder != null && (
|
|
347
|
+
let f;
|
|
348
|
+
return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
|
|
355
349
|
label: t,
|
|
356
350
|
labelFor: i,
|
|
357
351
|
required: e.required,
|
|
@@ -359,27 +353,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
359
353
|
descriptionId: a,
|
|
360
354
|
error: s,
|
|
361
355
|
errorId: o,
|
|
362
|
-
children: /* @__PURE__ */ h
|
|
356
|
+
children: /* @__PURE__ */ _(h, {
|
|
363
357
|
id: i,
|
|
364
358
|
type: "text",
|
|
365
359
|
value: c,
|
|
366
|
-
placeholder:
|
|
367
|
-
"aria-describedby":
|
|
360
|
+
placeholder: f,
|
|
361
|
+
"aria-describedby": d,
|
|
368
362
|
"aria-invalid": l,
|
|
369
|
-
disabled:
|
|
363
|
+
disabled: L,
|
|
370
364
|
variant: u,
|
|
371
365
|
onChange: (t) => {
|
|
372
|
-
|
|
366
|
+
K(e.id, t.target.value);
|
|
373
367
|
},
|
|
374
368
|
fullWidth: !0
|
|
375
369
|
})
|
|
376
370
|
}, e.id);
|
|
377
371
|
}
|
|
378
372
|
case "textarea": {
|
|
379
|
-
let r =
|
|
373
|
+
let r = N[e.id], c = "";
|
|
380
374
|
typeof r == "string" && (c = r);
|
|
381
|
-
let
|
|
382
|
-
return e.placeholder != null && (
|
|
375
|
+
let f;
|
|
376
|
+
return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
|
|
383
377
|
label: t,
|
|
384
378
|
labelFor: i,
|
|
385
379
|
required: e.required,
|
|
@@ -387,27 +381,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
387
381
|
descriptionId: a,
|
|
388
382
|
error: s,
|
|
389
383
|
errorId: o,
|
|
390
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ _(g, {
|
|
391
385
|
id: i,
|
|
392
386
|
value: c,
|
|
393
|
-
placeholder:
|
|
387
|
+
placeholder: f,
|
|
394
388
|
rows: e.rows ?? 8,
|
|
395
|
-
"aria-describedby":
|
|
389
|
+
"aria-describedby": d,
|
|
396
390
|
"aria-invalid": l,
|
|
397
|
-
disabled:
|
|
391
|
+
disabled: L,
|
|
398
392
|
variant: u,
|
|
399
393
|
onChange: (t) => {
|
|
400
|
-
|
|
394
|
+
K(e.id, t.target.value);
|
|
401
395
|
},
|
|
402
396
|
fullWidth: !0
|
|
403
397
|
})
|
|
404
398
|
}, e.id);
|
|
405
399
|
}
|
|
406
400
|
case "number": {
|
|
407
|
-
let r =
|
|
401
|
+
let r = N[e.id], c = "";
|
|
408
402
|
typeof r == "string" && (c = r);
|
|
409
|
-
let
|
|
410
|
-
return e.placeholder != null && (
|
|
403
|
+
let f;
|
|
404
|
+
return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
|
|
411
405
|
label: t,
|
|
412
406
|
labelFor: i,
|
|
413
407
|
required: e.required,
|
|
@@ -415,27 +409,27 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
415
409
|
descriptionId: a,
|
|
416
410
|
error: s,
|
|
417
411
|
errorId: o,
|
|
418
|
-
children: /* @__PURE__ */ h
|
|
412
|
+
children: /* @__PURE__ */ _(h, {
|
|
419
413
|
id: i,
|
|
420
414
|
type: "number",
|
|
421
415
|
value: c,
|
|
422
|
-
placeholder:
|
|
423
|
-
"aria-describedby":
|
|
416
|
+
placeholder: f,
|
|
417
|
+
"aria-describedby": d,
|
|
424
418
|
"aria-invalid": l,
|
|
425
|
-
disabled:
|
|
419
|
+
disabled: L,
|
|
426
420
|
variant: u,
|
|
427
421
|
onChange: (t) => {
|
|
428
|
-
|
|
422
|
+
K(e.id, t.target.value);
|
|
429
423
|
},
|
|
430
424
|
fullWidth: !0
|
|
431
425
|
})
|
|
432
426
|
}, e.id);
|
|
433
427
|
}
|
|
434
428
|
case "json": {
|
|
435
|
-
let r =
|
|
429
|
+
let r = N[e.id], c = "";
|
|
436
430
|
typeof r == "string" && (c = r);
|
|
437
|
-
let
|
|
438
|
-
return e.placeholder != null && (
|
|
431
|
+
let f;
|
|
432
|
+
return e.placeholder != null && (f = x(e.placeholder, D)), /* @__PURE__ */ _(m, {
|
|
439
433
|
label: t,
|
|
440
434
|
labelFor: i,
|
|
441
435
|
required: e.required,
|
|
@@ -443,31 +437,30 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
443
437
|
descriptionId: a,
|
|
444
438
|
error: s,
|
|
445
439
|
errorId: o,
|
|
446
|
-
children: /* @__PURE__ */
|
|
440
|
+
children: /* @__PURE__ */ _(g, {
|
|
447
441
|
id: i,
|
|
448
442
|
value: c,
|
|
449
|
-
placeholder:
|
|
443
|
+
placeholder: f,
|
|
450
444
|
rows: 8,
|
|
451
|
-
"aria-describedby":
|
|
445
|
+
"aria-describedby": d,
|
|
452
446
|
"aria-invalid": l,
|
|
453
|
-
disabled:
|
|
447
|
+
disabled: L,
|
|
454
448
|
variant: u,
|
|
455
449
|
onChange: (t) => {
|
|
456
|
-
|
|
450
|
+
K(e.id, t.target.value);
|
|
457
451
|
},
|
|
458
452
|
fullWidth: !0
|
|
459
453
|
})
|
|
460
454
|
}, e.id);
|
|
461
455
|
}
|
|
462
456
|
case "enum": {
|
|
463
|
-
let r =
|
|
457
|
+
let r = N[e.id], c = "";
|
|
464
458
|
typeof r == "string" && (c = r);
|
|
465
459
|
let u = e.options.map((e) => ({
|
|
466
|
-
id: e.value,
|
|
467
460
|
value: e.value,
|
|
468
|
-
label:
|
|
461
|
+
label: x(e.label, D)
|
|
469
462
|
}));
|
|
470
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ _(m, {
|
|
471
464
|
label: t,
|
|
472
465
|
labelId: `${i}-label`,
|
|
473
466
|
required: e.required,
|
|
@@ -475,38 +468,37 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
475
468
|
descriptionId: a,
|
|
476
469
|
error: s,
|
|
477
470
|
errorId: o,
|
|
478
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ _(fe, {
|
|
479
472
|
options: u,
|
|
480
473
|
value: c,
|
|
481
474
|
placeholder: t,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
J(e.id, t);
|
|
475
|
+
"aria-describedby": d,
|
|
476
|
+
"aria-invalid": l,
|
|
477
|
+
"aria-labelledby": `${i}-label`,
|
|
478
|
+
disabled: L,
|
|
479
|
+
onValueChange: (t) => {
|
|
480
|
+
K(e.id, t);
|
|
489
481
|
}
|
|
490
482
|
})
|
|
491
483
|
}, e.id);
|
|
492
484
|
}
|
|
493
485
|
case "boolean": {
|
|
494
|
-
let r =
|
|
495
|
-
return /* @__PURE__ */
|
|
486
|
+
let r = N[e.id] === !0;
|
|
487
|
+
return /* @__PURE__ */ _(m, { children: /* @__PURE__ */ _(ne, {
|
|
496
488
|
id: i,
|
|
497
489
|
label: t,
|
|
498
490
|
helperText: n ?? void 0,
|
|
499
491
|
error: s ?? void 0,
|
|
500
492
|
checked: r,
|
|
501
|
-
disabled:
|
|
493
|
+
disabled: L,
|
|
502
494
|
onChange: (t) => {
|
|
503
|
-
|
|
495
|
+
K(e.id, t.target.checked);
|
|
504
496
|
}
|
|
505
497
|
}) }, e.id);
|
|
506
498
|
}
|
|
507
499
|
case "entityId": {
|
|
508
|
-
let c =
|
|
509
|
-
return typeof c == "string" && (u = c), /* @__PURE__ */
|
|
500
|
+
let c = N[e.id], u = "";
|
|
501
|
+
return typeof c == "string" && (u = c), /* @__PURE__ */ _(m, {
|
|
510
502
|
label: t,
|
|
511
503
|
labelFor: i,
|
|
512
504
|
required: e.required,
|
|
@@ -514,29 +506,29 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
514
506
|
descriptionId: a,
|
|
515
507
|
error: s,
|
|
516
508
|
errorId: o,
|
|
517
|
-
children: /* @__PURE__ */
|
|
509
|
+
children: /* @__PURE__ */ _(r, {
|
|
518
510
|
id: i,
|
|
519
511
|
label: t,
|
|
520
512
|
value: u,
|
|
521
|
-
ariaDescribedBy:
|
|
513
|
+
ariaDescribedBy: d,
|
|
522
514
|
ariaInvalid: l,
|
|
523
|
-
disabled:
|
|
515
|
+
disabled: L,
|
|
524
516
|
onPick: () => {
|
|
525
|
-
|
|
517
|
+
W({
|
|
526
518
|
fieldId: e.id,
|
|
527
519
|
entity: e.entity,
|
|
528
520
|
label: t
|
|
529
521
|
});
|
|
530
522
|
},
|
|
531
523
|
onClear: () => {
|
|
532
|
-
|
|
524
|
+
K(e.id, "");
|
|
533
525
|
}
|
|
534
526
|
})
|
|
535
527
|
}, e.id);
|
|
536
528
|
}
|
|
537
529
|
case "multiEnum": {
|
|
538
|
-
let r =
|
|
539
|
-
return Array.isArray(r) && (
|
|
530
|
+
let r = N[e.id], u = `${i}-legend`, f = [];
|
|
531
|
+
return Array.isArray(r) && (f = r.filter((e) => typeof e == "string")), /* @__PURE__ */ _(m, {
|
|
540
532
|
as: "fieldset",
|
|
541
533
|
label: t,
|
|
542
534
|
labelId: u,
|
|
@@ -545,22 +537,22 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
545
537
|
descriptionId: a,
|
|
546
538
|
error: s,
|
|
547
539
|
errorId: o,
|
|
548
|
-
children: /* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ _("div", {
|
|
549
541
|
className: c,
|
|
550
542
|
role: "group",
|
|
551
543
|
"aria-labelledby": u,
|
|
552
|
-
"aria-describedby":
|
|
544
|
+
"aria-describedby": d,
|
|
553
545
|
"aria-invalid": l,
|
|
554
546
|
children: e.options.map((t, n) => {
|
|
555
|
-
let r =
|
|
556
|
-
return /* @__PURE__ */
|
|
547
|
+
let r = x(t.label, D), a = f.includes(t.value);
|
|
548
|
+
return /* @__PURE__ */ _(ne, {
|
|
557
549
|
id: `${i}-${n}`,
|
|
558
550
|
label: r,
|
|
559
551
|
checked: a,
|
|
560
|
-
disabled:
|
|
552
|
+
disabled: L,
|
|
561
553
|
onChange: (n) => {
|
|
562
|
-
let r =
|
|
563
|
-
n.target.checked ?
|
|
554
|
+
let r = f;
|
|
555
|
+
n.target.checked ? f.includes(t.value) || (r = [...f, t.value]) : r = f.filter((e) => e !== t.value), K(e.id, r);
|
|
564
556
|
}
|
|
565
557
|
}, `${t.value}-${n}`);
|
|
566
558
|
})
|
|
@@ -571,29 +563,29 @@ var { commitMutation: fe, useRelayEnvironment: pe } = v, C = (e, t) => e(t), w =
|
|
|
571
563
|
}
|
|
572
564
|
})
|
|
573
565
|
}) }),
|
|
574
|
-
$ && /* @__PURE__ */
|
|
575
|
-
className: "
|
|
576
|
-
children: [
|
|
566
|
+
$ && /* @__PURE__ */ v("div", {
|
|
567
|
+
className: "txvbqb5lr txvbqb6m5 txvbqb6rp",
|
|
568
|
+
children: [z != null && Q != null && /* @__PURE__ */ _(oe, {
|
|
577
569
|
badgeLabel: Q,
|
|
578
|
-
copyCode:
|
|
579
|
-
fallbackCodeText:
|
|
570
|
+
copyCode: z,
|
|
571
|
+
fallbackCodeText: z
|
|
580
572
|
}), Te]
|
|
581
573
|
})
|
|
582
574
|
]
|
|
583
575
|
})
|
|
584
|
-
}), /* @__PURE__ */
|
|
585
|
-
|
|
586
|
-
entity:
|
|
587
|
-
title:
|
|
588
|
-
|
|
589
|
-
|
|
576
|
+
}), /* @__PURE__ */ _(i, {
|
|
577
|
+
open: U != null,
|
|
578
|
+
entity: U?.entity ?? "",
|
|
579
|
+
title: U?.label ?? "",
|
|
580
|
+
onOpenChange: (e) => {
|
|
581
|
+
e || W(null);
|
|
590
582
|
},
|
|
591
583
|
onSelectId: (e) => {
|
|
592
|
-
|
|
584
|
+
U != null && (K(U.fieldId, e), W(null));
|
|
593
585
|
}
|
|
594
586
|
})] }) : null;
|
|
595
587
|
};
|
|
596
588
|
//#endregion
|
|
597
|
-
export {
|
|
589
|
+
export { T as BackofficeEntityActionFormDialog, T as default };
|
|
598
590
|
|
|
599
591
|
//# sourceMappingURL=BackofficeEntityActionFormDialog.js.map
|