@plumile/backoffice-react 0.1.103 → 0.1.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/{AcceptInvitationScreen-B1IPafwD.js → AcceptInvitationScreen-VaWXQPHp.js} +4 -4
- package/lib/esm/AcceptInvitationScreen-VaWXQPHp.js.map +1 -0
- package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js → BackofficeAcceptInvitationPage-tpfBfhT9.js} +4 -4
- package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js.map → BackofficeAcceptInvitationPage-tpfBfhT9.js.map} +1 -1
- package/lib/esm/BackofficeDashboardPage-D5W36DY-.js +329 -0
- package/lib/esm/BackofficeDashboardPage-D5W36DY-.js.map +1 -0
- package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js +98 -0
- package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js.map +1 -0
- package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js +589 -0
- package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js.map +1 -0
- package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js → BackofficeEntityDetailLayoutContext-C5G-PH28.js} +1 -1
- package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map → BackofficeEntityDetailLayoutContext-C5G-PH28.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js → BackofficeEntityDetailLayoutPage-BSgGBzSL.js} +2 -2
- package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map → BackofficeEntityDetailLayoutPage-BSgGBzSL.js.map} +1 -1
- package/lib/esm/{BackofficeEntityDetailPage-ChxBrqz8.js → BackofficeEntityDetailPage-LB1uEJVM.js} +366 -358
- package/lib/esm/BackofficeEntityDetailPage-LB1uEJVM.js.map +1 -0
- package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js} +3 -3
- package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js.map} +1 -1
- package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js +432 -0
- package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js.map +1 -0
- package/lib/esm/BackofficeHubPage-DOePQ8Fc.js +121 -0
- package/lib/esm/BackofficeHubPage-DOePQ8Fc.js.map +1 -0
- package/lib/esm/BackofficeHubTemplate-C6K55egX.js +82 -0
- package/lib/esm/BackofficeHubTemplate-C6K55egX.js.map +1 -0
- package/lib/esm/{BackofficeLayoutPage-r6dXo9SI.js → BackofficeLayoutPage-Bq2bKkYF.js} +301 -217
- package/lib/esm/BackofficeLayoutPage-Bq2bKkYF.js.map +1 -0
- package/lib/esm/BackofficeListToolbar-loFfIPtP.js +109 -0
- package/lib/esm/BackofficeListToolbar-loFfIPtP.js.map +1 -0
- package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js → BackofficeLoginPage-DIlcOueK.js} +5 -5
- package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js.map → BackofficeLoginPage-DIlcOueK.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js → BackofficePasswordResetCompletePage-Cit5sdDm.js} +6 -7
- package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js.map → BackofficePasswordResetCompletePage-Cit5sdDm.js.map} +1 -1
- package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js → BackofficePasswordResetRequestPage-B_TurHev.js} +5 -6
- package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js.map → BackofficePasswordResetRequestPage-B_TurHev.js.map} +1 -1
- package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js → BackofficePermissionsContext-C2bdxy2z.js} +1 -1
- package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js.map → BackofficePermissionsContext-C2bdxy2z.js.map} +1 -1
- package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js +83 -0
- package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js.map +1 -0
- package/lib/esm/{BackofficeTopbarPortalContext-CphoSrZD.js → BackofficeTopbarPortalContext-Da5XFatM.js} +1 -1
- package/lib/esm/BackofficeTopbarPortalContext-Da5XFatM.js.map +1 -0
- package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js → BackofficeVerifyEmailPage-DQbFIob1.js} +6 -7
- package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js.map → BackofficeVerifyEmailPage-DQbFIob1.js.map} +1 -1
- package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js +340 -0
- package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js.map +1 -0
- package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js +670 -0
- package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js.map +1 -0
- package/lib/esm/backoffice-react.js +553 -315
- package/lib/esm/backoffice-react.js.map +1 -1
- package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js → backofficeAuthPaths-2hHNn8D3.js} +1 -1
- package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js.map → backofficeAuthPaths-2hHNn8D3.js.map} +1 -1
- package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js +6 -0
- package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js.map +1 -0
- package/lib/esm/{buildBreadcrumbs-C9cyiXb7.js → buildBreadcrumbs-C5St167Y.js} +1 -1
- package/lib/esm/buildBreadcrumbs-C5St167Y.js.map +1 -0
- package/lib/esm/{buildDataTableColumns-DGPjPK4N.js → buildDataTableColumns-DdmF-EYq.js} +1 -1
- package/lib/esm/{buildDataTableColumns-DGPjPK4N.js.map → buildDataTableColumns-DdmF-EYq.js.map} +1 -1
- package/lib/esm/{mutationResult-CcQMY13J.js → mutationResult-C2Vb_vPt.js} +1 -1
- package/lib/esm/{mutationResult-CcQMY13J.js.map → mutationResult-C2Vb_vPt.js.map} +1 -1
- package/lib/esm/{pageResolution-hAQA5C6S.js → pageResolution-CUaTq4Ql.js} +1 -1
- package/lib/esm/{pageResolution-hAQA5C6S.js.map → pageResolution-CUaTq4Ql.js.map} +1 -1
- package/lib/esm/{sidebarUtils-BZETlHea.js → sidebarUtils-BgCBLJLv.js} +20 -6
- package/lib/esm/sidebarUtils-BgCBLJLv.js.map +1 -0
- package/lib/esm/style.css +1 -1
- package/lib/esm/{synchronizeAuthStatusQuery-BoPKMrP1.js → synchronizeAuthStatusQuery-DNJR5MfH.js} +8 -9
- package/lib/esm/synchronizeAuthStatusQuery-DNJR5MfH.js.map +1 -0
- package/lib/esm/{toastViewAction-DJkv_4p9.js → toastViewAction-DQYlcGOL.js} +1 -1
- package/lib/esm/{toastViewAction-DJkv_4p9.js.map → toastViewAction-DQYlcGOL.js.map} +1 -1
- package/lib/esm/{useAuth-CheTnq60.js → useAuth-CWf8ZspF.js} +70 -66
- package/lib/esm/useAuth-CWf8ZspF.js.map +1 -0
- package/lib/esm/{useBackofficeAuth-DVAXNAjP.js → useBackofficeAuth-Da7FPNys.js} +2 -2
- package/lib/esm/{useBackofficeAuth-DVAXNAjP.js.map → useBackofficeAuth-Da7FPNys.js.map} +1 -1
- package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js → useBackofficeLazyValue-CW9xfRzQ.js} +1 -1
- package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js.map → useBackofficeLazyValue-CW9xfRzQ.js.map} +1 -1
- package/lib/esm/{useBackofficeListUrlState-D4fx5O7u.js → useBackofficeListUrlState-Ca6d7uIN.js} +1 -1
- package/lib/esm/useBackofficeListUrlState-Ca6d7uIN.js.map +1 -0
- package/lib/types/auth/login/LoginFlow.d.ts.map +1 -1
- package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
- package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
- package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts +4 -0
- package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts +3 -5
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts +3 -4
- package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts +1 -0
- package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/backofficeDetailLayout.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts +2 -0
- package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts +4 -4
- package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts +13 -0
- package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts +4 -0
- package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
- package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts +3 -0
- package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +3 -0
- package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts +36 -0
- package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts.map +1 -0
- package/lib/types/{pages/backofficeHubPage.css.d.ts → components/backoffice/hub/backofficeHubTemplate.css.d.ts} +5 -3
- package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts +2 -0
- package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts +3 -0
- package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +2 -2
- package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +1 -0
- package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +2 -1
- package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
- package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts +16 -0
- package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts.map +1 -0
- package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts +16 -0
- package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +1 -1
- package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts +2 -0
- package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts.map +1 -1
- package/lib/types/components/backoffice/pickers/types.d.ts +1 -1
- package/lib/types/components/backoffice/pickers/types.d.ts.map +1 -1
- package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts +4 -4
- package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts.map +1 -1
- package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -1
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts +2 -0
- package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts +1 -1
- package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
- package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts +4 -0
- package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +10 -6
- package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts +3 -3
- package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts.map +1 -1
- package/lib/types/components/backoffice/scaffolds/backofficeEntityListScaffold.css.d.ts.map +1 -1
- package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts +13 -0
- package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts.map +1 -0
- package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts +12 -0
- package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -0
- package/lib/types/components/backoffice/shared/backofficeInlineFilterRow.css.d.ts.map +1 -1
- package/lib/types/filters/filterHelpers.d.ts +3 -3
- package/lib/types/filters/filterHelpers.d.ts.map +1 -1
- package/lib/types/hooks/useAuth.d.ts.map +1 -1
- package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
- package/lib/types/hooks/useBackofficeListRefetch.d.ts +7 -3
- package/lib/types/hooks/useBackofficeListRefetch.d.ts.map +1 -1
- package/lib/types/hooks/useBackofficeListUrlState.d.ts +2 -2
- package/lib/types/hooks/useBackofficeListUrlState.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +84 -7
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +3 -8
- package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.d.ts +2 -2
- package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +8 -4
- package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
- package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficePasswordResetCompletePage.d.ts.map +1 -1
- package/lib/types/pages/BackofficePasswordResetRequestPage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeVerifyEmailPage.d.ts.map +1 -1
- package/lib/types/pages/backofficeDashboardPage.css.d.ts +1 -14
- package/lib/types/pages/backofficeDashboardPage.css.d.ts.map +1 -1
- package/lib/types/pages/backofficeEntityDetailPage.css.d.ts +2 -0
- package/lib/types/pages/backofficeEntityDetailPage.css.d.ts.map +1 -1
- package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts +14 -0
- package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts.map +1 -0
- package/lib/types/pages/dashboard/DashboardPanel.d.ts +9 -0
- package/lib/types/pages/dashboard/DashboardPanel.d.ts.map +1 -0
- package/lib/types/pages/dashboard/DashboardQuickActions.d.ts +13 -0
- package/lib/types/pages/dashboard/DashboardQuickActions.d.ts.map +1 -0
- package/lib/types/pages/dashboard/DashboardStatusList.d.ts +13 -0
- package/lib/types/pages/dashboard/DashboardStatusList.d.ts.map +1 -0
- package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts +4 -0
- package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts.map +1 -0
- package/lib/types/pages/dashboard/dashboardPanel.css.d.ts +2 -0
- package/lib/types/pages/dashboard/dashboardPanel.css.d.ts.map +1 -0
- package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts +5 -0
- package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts.map +1 -0
- package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts +6 -0
- package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts.map +1 -0
- package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
- package/lib/types/provider/types.d.ts +5 -1
- package/lib/types/provider/types.d.ts.map +1 -1
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +5 -5
- package/lib/esm/AcceptInvitationScreen-B1IPafwD.js.map +0 -1
- package/lib/esm/BackofficeDashboardPage-C0zP0QO7.js +0 -344
- package/lib/esm/BackofficeDashboardPage-C0zP0QO7.js.map +0 -1
- package/lib/esm/BackofficeDetailPayload-P61MDRLE.js +0 -94
- package/lib/esm/BackofficeDetailPayload-P61MDRLE.js.map +0 -1
- package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js +0 -512
- package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js.map +0 -1
- package/lib/esm/BackofficeEntityDetailPage-ChxBrqz8.js.map +0 -1
- package/lib/esm/BackofficeEntityListPage-BACvfX6c.js +0 -404
- package/lib/esm/BackofficeEntityListPage-BACvfX6c.js.map +0 -1
- package/lib/esm/BackofficeHubPage-BsUXulN0.js +0 -136
- package/lib/esm/BackofficeHubPage-BsUXulN0.js.map +0 -1
- package/lib/esm/BackofficeLayoutPage-r6dXo9SI.js.map +0 -1
- package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +0 -53
- package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +0 -1
- package/lib/esm/BackofficeTopbarPortalContext-CphoSrZD.js.map +0 -1
- package/lib/esm/EntityFilterValue-BWUdPBwp.js +0 -78
- package/lib/esm/EntityFilterValue-BWUdPBwp.js.map +0 -1
- package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js +0 -308
- package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js.map +0 -1
- package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js +0 -522
- package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js.map +0 -1
- package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +0 -1
- package/lib/esm/sidebarUtils-BZETlHea.js.map +0 -1
- package/lib/esm/synchronizeAuthStatusQuery-BoPKMrP1.js.map +0 -1
- package/lib/esm/useAuth-CheTnq60.js.map +0 -1
- package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +0 -1
- package/lib/types/pages/backofficeHubPage.css.d.ts.map +0 -1
package/lib/esm/{BackofficeEntityDetailPage-ChxBrqz8.js → BackofficeEntityDetailPage-LB1uEJVM.js}
RENAMED
|
@@ -1,180 +1,188 @@
|
|
|
1
1
|
import { t as e } from "./useRelayEnvironment-vQ86aW-n.js";
|
|
2
2
|
import { r as t, t as n } from "./useBackofficeReactTranslation-Btt58EIo.js";
|
|
3
3
|
import { t as r } from "./BackofficeErrorBoundary-BwRVSDHU.js";
|
|
4
|
-
import { n as i } from "./EntityIdPickerDialog-
|
|
5
|
-
import { a, n as o, r as s, t as c } from "./BackofficeDetailPayload-
|
|
6
|
-
import { i as l } from "./mutationResult-
|
|
7
|
-
import { t as u } from "./pageResolution-
|
|
8
|
-
import { t as d } from "./buildDataTableColumns-
|
|
9
|
-
import { t as f } from "./BackofficeRightPageLayout-
|
|
10
|
-
import { n as p, t as m } from "./toastViewAction-
|
|
11
|
-
import { n as h } from "./buildBreadcrumbs-
|
|
12
|
-
import { n as g } from "./BackofficeEntityDetailLayoutContext-
|
|
13
|
-
import { i as _, n as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { useTranslation as
|
|
16
|
-
import { HttpRedirect as
|
|
17
|
-
import { BackofficeKeyValueList as
|
|
18
|
-
import * as
|
|
19
|
-
import { commitMutation as
|
|
20
|
-
import { Fragment as
|
|
21
|
-
import { BACKOFFICE_DATE_TIME_OPTIONS as
|
|
22
|
-
import { buildBackofficeFallbackListHref as
|
|
23
|
-
import { setWhereValue as
|
|
4
|
+
import { n as i } from "./EntityIdPickerDialog-BSn0v3bv.js";
|
|
5
|
+
import { a, n as o, r as s, t as c } from "./BackofficeDetailPayload-CZcsDv2w.js";
|
|
6
|
+
import { i as l } from "./mutationResult-C2Vb_vPt.js";
|
|
7
|
+
import { t as u } from "./pageResolution-CUaTq4Ql.js";
|
|
8
|
+
import { t as d } from "./buildDataTableColumns-DdmF-EYq.js";
|
|
9
|
+
import { t as f } from "./BackofficeRightPageLayout-CfNkrMvH.js";
|
|
10
|
+
import { n as p, t as m } from "./toastViewAction-DQYlcGOL.js";
|
|
11
|
+
import { n as h } from "./buildBreadcrumbs-C5St167Y.js";
|
|
12
|
+
import { n as g } from "./BackofficeEntityDetailLayoutContext-C5G-PH28.js";
|
|
13
|
+
import { i as _, n as v, r as y, t as b } from "./LazyBackofficeEntityActionFormDialog-oRd_WHAK.js";
|
|
14
|
+
import { Fragment as x, Suspense as S, createElement as C, useCallback as w, useContext as T, useMemo as E, useState as D } from "react";
|
|
15
|
+
import { useTranslation as O } from "react-i18next";
|
|
16
|
+
import { HttpRedirect as k, Link as A, RoutingContext as j } from "@plumile/router";
|
|
17
|
+
import { BackofficeEmptyState as M, BackofficeKeyValueList as N, BackofficePageHeader as ee, BackofficeRelationsMenu as te, BackofficeTableSkeleton as P, BackofficeTabs as ne, Button as re, ChatCheckSvg as F, DataTable as ie, DetailPageTemplate as ae, FormattedDate as oe, HighlightCode as se, InlineBanner as ce, KeyOffSvg as I, KeySvg as le, LazyBackofficeJsonViewer as ue, LazyMarkdownRenderer as L, LinkButton as de, LockOpenSvg as R, LockSvg as z, RobotCheckSvg as B, RobotXSvg as V, RocketOffSvg as H, RocketSvg as U, SettingsCheckSvg as W, SettingsXSvg as G, ShieldLockSvg as K, ShieldOffSvg as fe, Tag as q, XBadgeSvg as pe, cx as me, useToast as J } from "@plumile/ui";
|
|
18
|
+
import * as he from "react-relay";
|
|
19
|
+
import { commitMutation as ge, useFragment as _e, usePreloadedQuery as ve } from "react-relay";
|
|
20
|
+
import { Fragment as ye, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
21
|
+
import { BACKOFFICE_DATE_TIME_OPTIONS as be, BACKOFFICE_LIST_REFETCH_POLICY as xe, BACKOFFICE_RELATED_TAB_PAGE_SIZE as Se } from "@plumile/backoffice-core/constants.js";
|
|
22
|
+
import { buildBackofficeFallbackListHref as Ce, buildBackofficeListHref as we, buildBackofficeListLink as Te } from "@plumile/backoffice-core/state/buildListHref.js";
|
|
23
|
+
import { setWhereValue as Ee } from "@plumile/backoffice-core/filters/where.js";
|
|
24
24
|
//#region src/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.tsx
|
|
25
|
-
var
|
|
25
|
+
var De = ({ node: e, render: t, notFound: r }) => {
|
|
26
26
|
let { t: i } = n(), a = r ?? i("detail.notFound");
|
|
27
|
-
return e == null ? /* @__PURE__ */
|
|
28
|
-
},
|
|
27
|
+
return e == null ? /* @__PURE__ */ Y(M, { title: a }) : t(e) ?? /* @__PURE__ */ Y(M, { title: a });
|
|
28
|
+
}, Oe = "txvbqb9ip txvbqbcp txvbqbao7", ke = "_1lzrtns0 txvbqb9ip txvbqbcp", Ae = "_1lzrtns1", je = ({ tone: e, icon: t, label: n }) => {
|
|
29
29
|
let r = t != null, i = null;
|
|
30
|
-
return r && (i = /* @__PURE__ */
|
|
31
|
-
className:
|
|
30
|
+
return r && (i = /* @__PURE__ */ Y("span", {
|
|
31
|
+
className: ke,
|
|
32
32
|
children: t
|
|
33
|
-
})), /* @__PURE__ */
|
|
33
|
+
})), /* @__PURE__ */ Y(q, {
|
|
34
34
|
tone: e,
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
className:
|
|
37
|
-
children: [i, /* @__PURE__ */
|
|
38
|
-
className:
|
|
35
|
+
children: /* @__PURE__ */ X("span", {
|
|
36
|
+
className: Oe,
|
|
37
|
+
children: [i, /* @__PURE__ */ Y("span", {
|
|
38
|
+
className: Ae,
|
|
39
39
|
children: n
|
|
40
40
|
})]
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
|
-
},
|
|
44
|
-
className:
|
|
45
|
-
children: [e != null && /* @__PURE__ */
|
|
43
|
+
}, Me = "txvbqb9jg txvbqbcp txvbqbao7 txvbqbajy", Ne = "txvbqb9jg txvbqbcp txvbqbany", Pe = ({ tag: e, value: t }) => /* @__PURE__ */ X("span", {
|
|
44
|
+
className: Me,
|
|
45
|
+
children: [e != null && /* @__PURE__ */ Y(q, {
|
|
46
46
|
tone: e.tone,
|
|
47
47
|
children: e.label
|
|
48
|
-
}), /* @__PURE__ */
|
|
49
|
-
className:
|
|
48
|
+
}), /* @__PURE__ */ Y("span", {
|
|
49
|
+
className: Ne,
|
|
50
50
|
children: t
|
|
51
51
|
})]
|
|
52
|
-
}),
|
|
52
|
+
}), Fe = "txvbqb9ip txvbqbai7 txvbqbaop", Ie = "txvbqb9ip txvbqbai7 txvbqbao7 txvbqblb7 txvbqb1ry", Le = "txvbqb1cp txvbqb1qg txvbqbwp txvbqbv45", Re = "txvbqb9ip txvbqbai7 txvbqbany", ze = "txvbqbal7 txvbqb8y txvbqbva3", Be = "txvbqbamp", Ve = "txvbqb8y", He = ({ title: e, description: t, items: r }) => {
|
|
53
53
|
let { t: i } = n();
|
|
54
|
-
return r.length === 0 ? null : /* @__PURE__ */
|
|
54
|
+
return r.length === 0 ? null : /* @__PURE__ */ Y(s, {
|
|
55
55
|
title: e,
|
|
56
56
|
description: t,
|
|
57
|
-
children: /* @__PURE__ */
|
|
58
|
-
className:
|
|
57
|
+
children: /* @__PURE__ */ Y("div", {
|
|
58
|
+
className: Fe,
|
|
59
59
|
children: r.map((e, t) => {
|
|
60
60
|
let n = i("common.notAvailable");
|
|
61
|
-
return e.details != null && (n = o(e.details)), /* @__PURE__ */
|
|
62
|
-
className: me(
|
|
63
|
-
children: [/* @__PURE__ */
|
|
64
|
-
className:
|
|
65
|
-
children: [/* @__PURE__ */
|
|
66
|
-
className: Re,
|
|
67
|
-
children: e.code
|
|
68
|
-
}), /* @__PURE__ */ J("span", {
|
|
61
|
+
return e.details != null && (n = o(e.details)), /* @__PURE__ */ X("div", {
|
|
62
|
+
className: me(Ie, Le),
|
|
63
|
+
children: [/* @__PURE__ */ X("div", {
|
|
64
|
+
className: Re,
|
|
65
|
+
children: [/* @__PURE__ */ Y("span", {
|
|
69
66
|
className: ze,
|
|
67
|
+
children: e.code
|
|
68
|
+
}), /* @__PURE__ */ Y("span", {
|
|
69
|
+
className: Be,
|
|
70
70
|
children: e.message
|
|
71
71
|
})]
|
|
72
|
-
}), /* @__PURE__ */
|
|
73
|
-
className:
|
|
74
|
-
children: /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ Y("div", {
|
|
73
|
+
className: Ve,
|
|
74
|
+
children: /* @__PURE__ */ Y(L, { content: n })
|
|
75
75
|
})]
|
|
76
76
|
}, `${e.code}-${t}`);
|
|
77
77
|
})
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
|
-
}, { useLazyLoadQuery:
|
|
81
|
-
let { t:
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
}, { useLazyLoadQuery: Ue, usePaginationFragment: We } = he, Ge = () => {
|
|
81
|
+
let { t: e } = n();
|
|
82
|
+
return /* @__PURE__ */ Y(P, {
|
|
83
|
+
rows: 6,
|
|
84
|
+
ariaLabel: e("common.loading")
|
|
85
|
+
});
|
|
86
|
+
}, Ke = ({ title: e, config: t, entities: r, relation: i, value: a }) => {
|
|
87
|
+
let { t: o } = O(), { t: s } = n(), c = t.list, l = t.listDefaults ?? c.defaultState ?? {
|
|
84
88
|
where: null,
|
|
85
89
|
sort: null
|
|
86
|
-
}, [
|
|
87
|
-
where:
|
|
88
|
-
sort:
|
|
89
|
-
}),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]),
|
|
95
|
-
where:
|
|
96
|
-
sort:
|
|
97
|
-
count:
|
|
90
|
+
}, [u, f] = D({
|
|
91
|
+
where: l.where,
|
|
92
|
+
sort: l.sort ?? null
|
|
93
|
+
}), p = E(() => a == null || a.trim() === "" ? null : Ee(u.where, i.whereKey, a, i.path), [
|
|
94
|
+
i.path,
|
|
95
|
+
i.whereKey,
|
|
96
|
+
u.where,
|
|
97
|
+
a
|
|
98
|
+
]), m = p ?? u.where, h = u.sort ?? l.sort, g = E(() => ({
|
|
99
|
+
where: m,
|
|
100
|
+
sort: h,
|
|
101
|
+
count: Se,
|
|
98
102
|
cursor: null
|
|
99
|
-
}), [
|
|
100
|
-
tApp:
|
|
101
|
-
t:
|
|
103
|
+
}), [m, h]), b = E(() => c.buildQueryVariables(g), [c, g]), x = Ue(c.query, b, { fetchPolicy: "store-or-network" }), { data: S, loadNext: C, hasNext: T, isLoadingNext: k, refetch: A } = We(c.fragment, x), j = c.getConnection(S), M = E(() => j.edges.map((e) => c.toRow(e.node)), [j.edges, c]), N = E(() => d(c.columns, {
|
|
104
|
+
tApp: o,
|
|
105
|
+
t: s,
|
|
102
106
|
resolveEntityHref: (e, t) => {
|
|
103
107
|
let n = r[e];
|
|
104
108
|
return n == null ? null : n.routes.detail(t);
|
|
105
109
|
}
|
|
106
110
|
}), [
|
|
107
111
|
r,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
]),
|
|
112
|
+
c.columns,
|
|
113
|
+
s,
|
|
114
|
+
o
|
|
115
|
+
]), ee = w((e) => c.getRowId(e), [c]), { onRefresh: te } = y({
|
|
112
116
|
refetch: A,
|
|
113
|
-
variables:
|
|
114
|
-
defaults:
|
|
115
|
-
where:
|
|
116
|
-
sort:
|
|
117
|
-
count:
|
|
117
|
+
variables: g,
|
|
118
|
+
defaults: E(() => ({
|
|
119
|
+
where: p ?? l.where,
|
|
120
|
+
sort: l.sort,
|
|
121
|
+
count: Se,
|
|
118
122
|
cursor: null
|
|
119
123
|
}), [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
l.sort,
|
|
125
|
+
l.where,
|
|
126
|
+
p
|
|
123
127
|
]),
|
|
124
|
-
fetchPolicy:
|
|
125
|
-
|
|
126
|
-
}),
|
|
127
|
-
hasNext:
|
|
128
|
+
fetchPolicy: xe,
|
|
129
|
+
buildQueryVariables: c.buildQueryVariables
|
|
130
|
+
}), P = _({
|
|
131
|
+
hasNext: T,
|
|
128
132
|
isLoadingNext: k,
|
|
129
|
-
loadNext:
|
|
130
|
-
count:
|
|
133
|
+
loadNext: C,
|
|
134
|
+
count: Se
|
|
131
135
|
});
|
|
132
|
-
return /* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ Y(v, {
|
|
133
137
|
config: t,
|
|
134
|
-
state:
|
|
138
|
+
state: u,
|
|
135
139
|
pushState: (e) => {
|
|
136
|
-
|
|
140
|
+
f(e);
|
|
137
141
|
},
|
|
138
142
|
header: { title: e },
|
|
139
|
-
rows:
|
|
140
|
-
columns:
|
|
141
|
-
getRowId:
|
|
142
|
-
hasNextPage:
|
|
143
|
+
rows: M,
|
|
144
|
+
columns: N,
|
|
145
|
+
getRowId: ee,
|
|
146
|
+
hasNextPage: T,
|
|
143
147
|
isLoadingMore: k,
|
|
144
|
-
onLoadMore:
|
|
145
|
-
onRefresh:
|
|
148
|
+
onLoadMore: P,
|
|
149
|
+
onRefresh: te,
|
|
146
150
|
totalCount: j.totalCount ?? null,
|
|
147
151
|
variant: "embedded"
|
|
148
152
|
});
|
|
149
|
-
},
|
|
150
|
-
let { entities: s } = t(), c = i(
|
|
151
|
-
if (c.status === "loading") return /* @__PURE__ */
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
}, qe = ({ title: e, relation: r, value: a }) => {
|
|
154
|
+
let { t: o } = n(), { entities: s } = t(), c = i(E(() => [r.target], [r.target]));
|
|
155
|
+
if (c.status === "loading") return /* @__PURE__ */ Y(P, {
|
|
156
|
+
rows: 6,
|
|
157
|
+
ariaLabel: o("common.loading")
|
|
158
|
+
});
|
|
159
|
+
if (c.status === "error") return /* @__PURE__ */ Y(ce, {
|
|
160
|
+
tone: "warning",
|
|
161
|
+
title: o("relations.unavailable.title"),
|
|
162
|
+
children: o("relations.unavailable.description")
|
|
163
|
+
});
|
|
164
|
+
let l = c.modules[r.target]?.config;
|
|
165
|
+
return l == null || l.list.kind === "records" ? null : /* @__PURE__ */ Y(Ke, {
|
|
155
166
|
title: e,
|
|
156
167
|
config: l,
|
|
157
168
|
entities: s,
|
|
158
|
-
|
|
159
|
-
value: a
|
|
160
|
-
path: o
|
|
169
|
+
relation: r,
|
|
170
|
+
value: a
|
|
161
171
|
});
|
|
162
|
-
},
|
|
163
|
-
fallback: () => /* @__PURE__ */
|
|
164
|
-
children: /* @__PURE__ */
|
|
165
|
-
fallback: /* @__PURE__ */
|
|
166
|
-
children: /* @__PURE__ */
|
|
172
|
+
}, Je = ({ title: e, relation: t, value: n }) => /* @__PURE__ */ Y(r, {
|
|
173
|
+
fallback: () => /* @__PURE__ */ Y(Ge, {}),
|
|
174
|
+
children: /* @__PURE__ */ Y(S, {
|
|
175
|
+
fallback: /* @__PURE__ */ Y(Ge, {}),
|
|
176
|
+
children: /* @__PURE__ */ Y(qe, {
|
|
167
177
|
title: e,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
value: i,
|
|
171
|
-
path: a
|
|
178
|
+
relation: t,
|
|
179
|
+
value: n
|
|
172
180
|
})
|
|
173
181
|
})
|
|
174
|
-
}),
|
|
182
|
+
}), Ye = "txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy txvbqbk5y", Xe = "txvbqb9ip txvbqbai7 txvbqbaog", Ze = "txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy", Qe = "txvbqb9ip txvbqbai7 txvbqbao7";
|
|
175
183
|
//#endregion
|
|
176
184
|
//#region src/i18n/useBackofficeFormats.ts
|
|
177
|
-
function
|
|
185
|
+
function $e() {
|
|
178
186
|
let { t: e } = n();
|
|
179
187
|
function t(t) {
|
|
180
188
|
return e("format.number", { value: t });
|
|
@@ -193,19 +201,19 @@ function Ze() {
|
|
|
193
201
|
}
|
|
194
202
|
//#endregion
|
|
195
203
|
//#region src/pages/detail/buildTabsItems.ts
|
|
196
|
-
var
|
|
204
|
+
var et = (e) => e.pages.map((t) => ({
|
|
197
205
|
id: t.id,
|
|
198
206
|
label: t.label(e.tApp),
|
|
199
207
|
to: e.detailPageHref(e.id, t.id)
|
|
200
|
-
})),
|
|
201
|
-
if (
|
|
202
|
-
for (let t of Object.values(e)) if (
|
|
208
|
+
})), Z = (e, t) => e(t), tt = (e) => typeof e == "object" && !!e && !Array.isArray(e), nt = (e) => {
|
|
209
|
+
if (!tt(e)) return null;
|
|
210
|
+
for (let t of Object.values(e)) if (tt(t) && ("status" in t || "result" in t)) return t;
|
|
203
211
|
return null;
|
|
204
|
-
},
|
|
212
|
+
}, rt = (e) => e.kind === "route", it = (e) => e.kind === "mutation", at = (e) => e.kind === "formMutation", Q = (e, t) => typeof e == "function" ? e(t) : e ?? null, ot = (e) => {
|
|
205
213
|
if (e == null) return null;
|
|
206
214
|
let t = e.trim();
|
|
207
215
|
return t === "" ? null : t;
|
|
208
|
-
},
|
|
216
|
+
}, $ = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1, st = (e, t) => typeof e == "function" ? e(t) : e, ct = (e, t, n) => {
|
|
209
217
|
switch (e) {
|
|
210
218
|
case "yesNo": return t ? {
|
|
211
219
|
tone: "success",
|
|
@@ -293,45 +301,45 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
293
301
|
};
|
|
294
302
|
default: throw Error(`Unsupported flag variant: ${String(e)}`);
|
|
295
303
|
}
|
|
296
|
-
},
|
|
304
|
+
}, lt = (e, t) => {
|
|
297
305
|
let { tApp: n, t: r, resolveEntityHref: i, renderLink: a } = t, o = r("common.notAvailable");
|
|
298
306
|
if (e.type === "text") {
|
|
299
|
-
let t =
|
|
300
|
-
return
|
|
307
|
+
let t = Q(e.value, n);
|
|
308
|
+
return $(t) ? o : t;
|
|
301
309
|
}
|
|
302
310
|
if (e.type === "entityRef") {
|
|
303
311
|
let { id: t } = e;
|
|
304
312
|
if (t == null || t.trim() === "") return o;
|
|
305
|
-
let r =
|
|
313
|
+
let r = Q(e.label, n), s = r != null && String(r).trim() !== "" ? r : null;
|
|
306
314
|
if (s == null) return o;
|
|
307
315
|
let c = i?.(e.entity, t) ?? null;
|
|
308
316
|
return c == null ? s : a(c, s);
|
|
309
317
|
}
|
|
310
318
|
let { href: s } = e;
|
|
311
319
|
if (s == null || s.trim() === "") return o;
|
|
312
|
-
let c =
|
|
313
|
-
return
|
|
314
|
-
},
|
|
320
|
+
let c = Q(e.label, n);
|
|
321
|
+
return $(c) ? o : a(s, c);
|
|
322
|
+
}, ut = (e, t, n) => {
|
|
315
323
|
let { tApp: r, t: i, resolveEntityHref: a, renderDate: o, renderLink: s } = n, c = i("common.notAvailable");
|
|
316
324
|
if (e.type === "dateTime") return o(e.value(t), c);
|
|
317
325
|
if (e.type === "entityRef") {
|
|
318
326
|
let n = e.id(t);
|
|
319
327
|
if (n == null || n.trim() === "") return c;
|
|
320
|
-
let i =
|
|
328
|
+
let i = Q(e.value?.(t), r), o = i != null && String(i).trim() !== "" ? i : null;
|
|
321
329
|
if (o == null) return c;
|
|
322
330
|
let l = a?.(e.entity, n) ?? null;
|
|
323
331
|
return l == null ? o : s(l, o);
|
|
324
332
|
}
|
|
325
333
|
if (e.type === "link") {
|
|
326
|
-
let n = e.href(t), i =
|
|
327
|
-
return n == null || n.trim() === "" ||
|
|
334
|
+
let n = e.href(t), i = Q(e.value(t), r);
|
|
335
|
+
return n == null || n.trim() === "" || $(i) ? c : s(n, i);
|
|
328
336
|
}
|
|
329
|
-
let l =
|
|
330
|
-
return
|
|
331
|
-
},
|
|
337
|
+
let l = Q(e.value(t), r);
|
|
338
|
+
return $(l) ? c : l;
|
|
339
|
+
}, dt = (e, t, n, r) => {
|
|
332
340
|
if (e.type === "badgeRow") {
|
|
333
341
|
let i = e.items(t).map((e) => {
|
|
334
|
-
let t =
|
|
342
|
+
let t = Q(e.label, n), r = t == null ? "" : String(t);
|
|
335
343
|
return {
|
|
336
344
|
...e,
|
|
337
345
|
label: r
|
|
@@ -339,20 +347,20 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
339
347
|
});
|
|
340
348
|
return i.length === 0 ? void 0 : r.renderBadgeRow(i);
|
|
341
349
|
}
|
|
342
|
-
let i =
|
|
350
|
+
let i = Q(e.value(t), n), a = i == null ? "" : String(i);
|
|
343
351
|
if (a.trim() === "") return;
|
|
344
|
-
let o =
|
|
352
|
+
let o = st(e.tone, t);
|
|
345
353
|
return r.renderTag(o, a);
|
|
346
|
-
},
|
|
347
|
-
let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: s, formatPercent: c, relationEntityListRoutes: l, resolveRelationItem: u, setWhereValue: d, renderTag: f, renderBadgeRow: p, renderDate: m, renderFlagTag: h, renderLink: g, renderTaggedValue: _, wrapCustomNode:
|
|
354
|
+
}, ft = (e, t, n) => {
|
|
355
|
+
let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: s, formatPercent: c, relationEntityListRoutes: l, resolveRelationItem: u, setWhereValue: d, renderTag: f, renderBadgeRow: p, renderDate: m, renderFlagTag: h, renderLink: g, renderTaggedValue: _, wrapCustomNode: v } = n, y = [], b = [], x = [], S = i("common.notAvailable");
|
|
348
356
|
return e.forEach((e, n) => {
|
|
349
|
-
let
|
|
357
|
+
let C = `${e.type}-${n}`;
|
|
350
358
|
switch (e.type) {
|
|
351
359
|
case "text": {
|
|
352
|
-
let n =
|
|
353
|
-
|
|
354
|
-
id:
|
|
355
|
-
label:
|
|
360
|
+
let n = Q(e.value(t), r);
|
|
361
|
+
y.push({
|
|
362
|
+
id: C,
|
|
363
|
+
label: Z(e.label, r),
|
|
356
364
|
size: e.size,
|
|
357
365
|
value: n,
|
|
358
366
|
copyValue: e.copyValue?.(t) ?? void 0,
|
|
@@ -361,10 +369,10 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
361
369
|
break;
|
|
362
370
|
}
|
|
363
371
|
case "badge": {
|
|
364
|
-
let n =
|
|
365
|
-
|
|
366
|
-
id:
|
|
367
|
-
label:
|
|
372
|
+
let n = Q(e.value(t), r), i = n == null ? "" : String(n), a = st(e.tone, t);
|
|
373
|
+
y.push({
|
|
374
|
+
id: C,
|
|
375
|
+
label: Z(e.label, r),
|
|
368
376
|
size: e.size,
|
|
369
377
|
value: i.trim() === "" ? null : f(a, i)
|
|
370
378
|
});
|
|
@@ -372,15 +380,15 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
372
380
|
}
|
|
373
381
|
case "badgeRow": {
|
|
374
382
|
let n = e.items(t).map((e) => {
|
|
375
|
-
let t =
|
|
383
|
+
let t = Q(e.label, r), n = t == null ? "" : String(t);
|
|
376
384
|
return {
|
|
377
385
|
...e,
|
|
378
386
|
label: n
|
|
379
387
|
};
|
|
380
388
|
});
|
|
381
|
-
|
|
382
|
-
id:
|
|
383
|
-
label:
|
|
389
|
+
y.push({
|
|
390
|
+
id: C,
|
|
391
|
+
label: Z(e.label, r),
|
|
384
392
|
size: e.size,
|
|
385
393
|
value: n.length > 0 ? p(n) : null,
|
|
386
394
|
fullWidth: e.fullWidth
|
|
@@ -388,18 +396,18 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
388
396
|
break;
|
|
389
397
|
}
|
|
390
398
|
case "dateTime":
|
|
391
|
-
|
|
392
|
-
id:
|
|
393
|
-
label:
|
|
399
|
+
y.push({
|
|
400
|
+
id: C,
|
|
401
|
+
label: Z(e.label, r),
|
|
394
402
|
size: e.size,
|
|
395
|
-
value: m(e.value(t),
|
|
403
|
+
value: m(e.value(t), S)
|
|
396
404
|
});
|
|
397
405
|
break;
|
|
398
406
|
case "number": {
|
|
399
407
|
let n = e.value(t), i = null;
|
|
400
|
-
n != null && (i = e.format === "currency" ? s(n) : e.format === "percent" ? c(n) : o(n)),
|
|
401
|
-
id:
|
|
402
|
-
label:
|
|
408
|
+
n != null && (i = e.format === "currency" ? s(n) : e.format === "percent" ? c(n) : o(n)), y.push({
|
|
409
|
+
id: C,
|
|
410
|
+
label: Z(e.label, r),
|
|
403
411
|
size: e.size,
|
|
404
412
|
value: i
|
|
405
413
|
});
|
|
@@ -407,11 +415,11 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
407
415
|
}
|
|
408
416
|
case "flag": {
|
|
409
417
|
let n = e.value(t);
|
|
410
|
-
|
|
411
|
-
id:
|
|
412
|
-
label:
|
|
418
|
+
y.push({
|
|
419
|
+
id: C,
|
|
420
|
+
label: Z(e.label, r),
|
|
413
421
|
size: e.size,
|
|
414
|
-
value: n == null ? null : h(
|
|
422
|
+
value: n == null ? null : h(ct(e.variant, n, i))
|
|
415
423
|
});
|
|
416
424
|
break;
|
|
417
425
|
}
|
|
@@ -421,26 +429,26 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
421
429
|
let r = e.value?.(t), o = r != null && r.trim() !== "" ? r : null, s = a?.(e.entity, n) ?? null;
|
|
422
430
|
o != null && (i = s == null ? o : g(s, o));
|
|
423
431
|
}
|
|
424
|
-
|
|
425
|
-
id:
|
|
426
|
-
label:
|
|
432
|
+
y.push({
|
|
433
|
+
id: C,
|
|
434
|
+
label: Z(e.label, r),
|
|
427
435
|
size: e.size,
|
|
428
|
-
value: i ??
|
|
436
|
+
value: i ?? S
|
|
429
437
|
});
|
|
430
438
|
break;
|
|
431
439
|
}
|
|
432
440
|
case "link": {
|
|
433
441
|
let n = e.href(t), i = e.value(t);
|
|
434
|
-
|
|
435
|
-
id:
|
|
436
|
-
label:
|
|
442
|
+
y.push({
|
|
443
|
+
id: C,
|
|
444
|
+
label: Z(e.label, r),
|
|
437
445
|
size: e.size,
|
|
438
|
-
value: n != null && n.trim() !== "" &&
|
|
446
|
+
value: n != null && n.trim() !== "" && !$(i) ? g(n, i) : null
|
|
439
447
|
});
|
|
440
448
|
break;
|
|
441
449
|
}
|
|
442
450
|
case "taggedValue": {
|
|
443
|
-
let n = e.tag(t), o =
|
|
451
|
+
let n = e.tag(t), o = lt(e.value(t), {
|
|
444
452
|
tApp: r,
|
|
445
453
|
t: i,
|
|
446
454
|
resolveEntityHref: a,
|
|
@@ -448,13 +456,13 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
448
456
|
}), s = n == null ? null : {
|
|
449
457
|
...n,
|
|
450
458
|
label: (() => {
|
|
451
|
-
let e =
|
|
459
|
+
let e = Q(n.label, r);
|
|
452
460
|
return e == null ? "" : String(e);
|
|
453
461
|
})()
|
|
454
462
|
};
|
|
455
|
-
|
|
456
|
-
id:
|
|
457
|
-
label:
|
|
463
|
+
y.push({
|
|
464
|
+
id: C,
|
|
465
|
+
label: Z(e.label, r),
|
|
458
466
|
size: e.size,
|
|
459
467
|
value: s != null || o != null ? _(s, o) : null,
|
|
460
468
|
fullWidth: e.fullWidth
|
|
@@ -462,23 +470,20 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
462
470
|
break;
|
|
463
471
|
}
|
|
464
472
|
case "relation": {
|
|
465
|
-
let n =
|
|
473
|
+
let n = ot(e.value(t));
|
|
466
474
|
if (n == null) break;
|
|
467
|
-
let i = l[e.
|
|
475
|
+
let i = l[e.relation.target];
|
|
468
476
|
if (i == null) break;
|
|
469
|
-
let a = d(null, e.whereKey, n, e.path);
|
|
477
|
+
let a = d(null, e.relation.whereKey, n, e.relation.path);
|
|
470
478
|
if (a == null) break;
|
|
471
|
-
|
|
472
|
-
id:
|
|
473
|
-
label:
|
|
479
|
+
b.push(u({
|
|
480
|
+
id: C,
|
|
481
|
+
label: Z(e.label, r),
|
|
474
482
|
count: e.count?.(t) ?? null,
|
|
475
|
-
|
|
476
|
-
filterId: e.filterId,
|
|
483
|
+
relation: e.relation,
|
|
477
484
|
listRoute: i,
|
|
478
|
-
path: e.path,
|
|
479
485
|
value: n,
|
|
480
|
-
where: a
|
|
481
|
-
whereKey: e.whereKey
|
|
486
|
+
where: a
|
|
482
487
|
}));
|
|
483
488
|
break;
|
|
484
489
|
}
|
|
@@ -486,55 +491,55 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
486
491
|
let n = e.render(t);
|
|
487
492
|
if (n == null) break;
|
|
488
493
|
if (e.label != null) {
|
|
489
|
-
|
|
490
|
-
id:
|
|
491
|
-
label:
|
|
494
|
+
y.push({
|
|
495
|
+
id: C,
|
|
496
|
+
label: Z(e.label, r),
|
|
492
497
|
size: e.size,
|
|
493
498
|
value: n,
|
|
494
499
|
fullWidth: e.fullWidth
|
|
495
500
|
});
|
|
496
501
|
break;
|
|
497
502
|
}
|
|
498
|
-
|
|
503
|
+
x.push(v(C, n));
|
|
499
504
|
break;
|
|
500
505
|
}
|
|
501
506
|
default: break;
|
|
502
507
|
}
|
|
503
508
|
}), {
|
|
504
|
-
items:
|
|
505
|
-
relationItems:
|
|
506
|
-
customNodes:
|
|
509
|
+
items: y,
|
|
510
|
+
relationItems: b,
|
|
511
|
+
customNodes: x
|
|
507
512
|
};
|
|
508
|
-
},
|
|
509
|
-
let { tApp: r, t: i, resolveEntityHref: a, renderLink: o, renderDate: s, renderTag: c, renderBadgeRow: l } = n, u = e.titleValue?.(t, r) ??
|
|
513
|
+
}, pt = (e, t, n) => {
|
|
514
|
+
let { tApp: r, t: i, resolveEntityHref: a, renderLink: o, renderDate: s, renderTag: c, renderBadgeRow: l } = n, u = e.titleValue?.(t, r) ?? Z(e.title, r), d = u.trim() === "" ? Z(e.title, r) : u, f;
|
|
510
515
|
if (e.subtitleItems != null && e.subtitleItems.length > 0) {
|
|
511
516
|
let { subtitleItems: n } = e, s = e.subtitleSeparator ?? " / ", c = [];
|
|
512
517
|
n.forEach((e, l) => {
|
|
513
|
-
c.push(
|
|
518
|
+
c.push(C("span", { key: e.id }, lt(e.value(t), {
|
|
514
519
|
tApp: r,
|
|
515
520
|
t: i,
|
|
516
521
|
resolveEntityHref: a,
|
|
517
522
|
renderLink: o
|
|
518
|
-
}))), l < n.length - 1 && c.push(
|
|
519
|
-
}), f =
|
|
523
|
+
}))), l < n.length - 1 && c.push(C("span", { key: `${e.id}-sep` }, s));
|
|
524
|
+
}), f = C("span", null, ...c);
|
|
520
525
|
} else {
|
|
521
|
-
let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null :
|
|
526
|
+
let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null : Z(e.subtitle, r));
|
|
522
527
|
f = n != null && n.trim() !== "" ? n : void 0;
|
|
523
528
|
}
|
|
524
529
|
let p = [];
|
|
525
530
|
e.badges?.forEach((e, n) => {
|
|
526
|
-
let i =
|
|
527
|
-
o.trim() !== "" && (p.push(c(
|
|
531
|
+
let i = Z(e.label, r), a = Q(e.value(t), r), o = a == null ? "" : String(a);
|
|
532
|
+
o.trim() !== "" && (p.push(c(st(e.tone, t), `${i}: ${o}`)), typeof p[p.length - 1] == "object" && (p[p.length - 1] = C(x, { key: `${i}-${n}` }, p[p.length - 1])));
|
|
528
533
|
});
|
|
529
|
-
let m = e.status == null ? void 0 :
|
|
534
|
+
let m = e.status == null ? void 0 : dt(e.status, t, r, {
|
|
530
535
|
renderBadgeRow: l,
|
|
531
536
|
renderTag: c
|
|
532
537
|
}), h = e.meta?.map((e, n) => {
|
|
533
|
-
let c =
|
|
538
|
+
let c = Z(e.label, r);
|
|
534
539
|
return {
|
|
535
540
|
id: `${c}-${n}`,
|
|
536
541
|
label: c,
|
|
537
|
-
value:
|
|
542
|
+
value: ut(e, t, {
|
|
538
543
|
tApp: r,
|
|
539
544
|
t: i,
|
|
540
545
|
resolveEntityHref: a,
|
|
@@ -546,26 +551,24 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
546
551
|
return {
|
|
547
552
|
title: d,
|
|
548
553
|
subtitle: f,
|
|
549
|
-
badges: p.length > 0 ?
|
|
554
|
+
badges: p.length > 0 ? C(x, null, ...p) : void 0,
|
|
550
555
|
status: m,
|
|
551
556
|
items: h
|
|
552
557
|
};
|
|
553
|
-
},
|
|
558
|
+
}, mt = (e, t, n) => {
|
|
554
559
|
let { tApp: r, t: i, keyPrefix: a } = n;
|
|
555
560
|
return e == null || e.length === 0 ? [] : e.map((e, o) => {
|
|
556
561
|
let s = a == null ? `${e.kind}-${o}` : `${a}-${e.kind}-${o}`;
|
|
557
562
|
if (e.kind === "custom") {
|
|
558
563
|
let i = e.render(t);
|
|
559
|
-
return i == null ? null : e.label == null ? n.wrapCustomNode(s, i) : n.renderCustomSection(s,
|
|
564
|
+
return i == null ? null : e.label == null ? n.wrapCustomNode(s, i) : n.renderCustomSection(s, Z(e.label, r), i);
|
|
560
565
|
}
|
|
561
|
-
let c =
|
|
566
|
+
let c = Z(e.label, r), l = e.description == null ? void 0 : Z(e.description, r);
|
|
562
567
|
if (e.kind === "relationList") return n.renderRelationList({
|
|
563
568
|
key: s,
|
|
564
569
|
title: c,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
value: e.value(t),
|
|
568
|
-
path: e.path
|
|
570
|
+
relation: e.relation,
|
|
571
|
+
value: e.value(t)
|
|
569
572
|
});
|
|
570
573
|
if (e.kind === "table") return n.renderTable({
|
|
571
574
|
key: s,
|
|
@@ -602,7 +605,7 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
602
605
|
items: e.errors(t)
|
|
603
606
|
});
|
|
604
607
|
let u = e.items.map((e, n) => {
|
|
605
|
-
let a =
|
|
608
|
+
let a = Z(e.label, r), o = Q(e.value(t), r);
|
|
606
609
|
return {
|
|
607
610
|
id: `${a}-${n}`,
|
|
608
611
|
label: a,
|
|
@@ -616,129 +619,128 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
616
619
|
items: u
|
|
617
620
|
});
|
|
618
621
|
});
|
|
619
|
-
},
|
|
622
|
+
}, ht = (e) => {
|
|
620
623
|
switch (e) {
|
|
621
|
-
case "shield-lock": return /* @__PURE__ */
|
|
624
|
+
case "shield-lock": return /* @__PURE__ */ Y(K, {
|
|
622
625
|
width: 14,
|
|
623
626
|
height: 14,
|
|
624
627
|
"aria-hidden": "true"
|
|
625
628
|
});
|
|
626
|
-
case "shield-off": return /* @__PURE__ */
|
|
629
|
+
case "shield-off": return /* @__PURE__ */ Y(fe, {
|
|
627
630
|
width: 14,
|
|
628
631
|
height: 14,
|
|
629
632
|
"aria-hidden": "true"
|
|
630
633
|
});
|
|
631
|
-
case "settings-check": return /* @__PURE__ */
|
|
634
|
+
case "settings-check": return /* @__PURE__ */ Y(W, {
|
|
632
635
|
width: 14,
|
|
633
636
|
height: 14,
|
|
634
637
|
"aria-hidden": "true"
|
|
635
638
|
});
|
|
636
|
-
case "settings-x": return /* @__PURE__ */
|
|
639
|
+
case "settings-x": return /* @__PURE__ */ Y(G, {
|
|
637
640
|
width: 14,
|
|
638
641
|
height: 14,
|
|
639
642
|
"aria-hidden": "true"
|
|
640
643
|
});
|
|
641
|
-
case "x-badge": return /* @__PURE__ */
|
|
644
|
+
case "x-badge": return /* @__PURE__ */ Y(pe, {
|
|
642
645
|
width: 14,
|
|
643
646
|
height: 14,
|
|
644
647
|
"aria-hidden": "true"
|
|
645
648
|
});
|
|
646
|
-
case "chat-check": return /* @__PURE__ */
|
|
649
|
+
case "chat-check": return /* @__PURE__ */ Y(F, {
|
|
647
650
|
width: 14,
|
|
648
651
|
height: 14,
|
|
649
652
|
"aria-hidden": "true"
|
|
650
653
|
});
|
|
651
|
-
case "key": return /* @__PURE__ */
|
|
654
|
+
case "key": return /* @__PURE__ */ Y(le, {
|
|
652
655
|
width: 14,
|
|
653
656
|
height: 14,
|
|
654
657
|
"aria-hidden": "true"
|
|
655
658
|
});
|
|
656
|
-
case "key-off": return /* @__PURE__ */
|
|
659
|
+
case "key-off": return /* @__PURE__ */ Y(I, {
|
|
657
660
|
width: 14,
|
|
658
661
|
height: 14,
|
|
659
662
|
"aria-hidden": "true"
|
|
660
663
|
});
|
|
661
|
-
case "lock": return /* @__PURE__ */
|
|
664
|
+
case "lock": return /* @__PURE__ */ Y(z, {
|
|
662
665
|
width: 14,
|
|
663
666
|
height: 14,
|
|
664
667
|
"aria-hidden": "true"
|
|
665
668
|
});
|
|
666
|
-
case "lock-open": return /* @__PURE__ */
|
|
669
|
+
case "lock-open": return /* @__PURE__ */ Y(R, {
|
|
667
670
|
width: 14,
|
|
668
671
|
height: 14,
|
|
669
672
|
"aria-hidden": "true"
|
|
670
673
|
});
|
|
671
|
-
case "robot-check": return /* @__PURE__ */
|
|
674
|
+
case "robot-check": return /* @__PURE__ */ Y(B, {
|
|
672
675
|
width: 14,
|
|
673
676
|
height: 14,
|
|
674
677
|
"aria-hidden": "true"
|
|
675
678
|
});
|
|
676
|
-
case "robot-x": return /* @__PURE__ */
|
|
679
|
+
case "robot-x": return /* @__PURE__ */ Y(V, {
|
|
677
680
|
width: 14,
|
|
678
681
|
height: 14,
|
|
679
682
|
"aria-hidden": "true"
|
|
680
683
|
});
|
|
681
|
-
case "rocket": return /* @__PURE__ */
|
|
684
|
+
case "rocket": return /* @__PURE__ */ Y(U, {
|
|
682
685
|
width: 14,
|
|
683
686
|
height: 14,
|
|
684
687
|
"aria-hidden": "true"
|
|
685
688
|
});
|
|
686
|
-
case "rocket-off": return /* @__PURE__ */
|
|
689
|
+
case "rocket-off": return /* @__PURE__ */ Y(H, {
|
|
687
690
|
width: 14,
|
|
688
691
|
height: 14,
|
|
689
692
|
"aria-hidden": "true"
|
|
690
693
|
});
|
|
691
694
|
default: throw Error(`Unsupported flag icon: ${String(e)}`);
|
|
692
695
|
}
|
|
693
|
-
},
|
|
696
|
+
}, gt = (e) => {
|
|
694
697
|
if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
|
|
695
698
|
let t = e.fields?.map((e) => e.presentation?.group) ?? [];
|
|
696
699
|
return t.length > 0 && t.every((e) => e === "scope" || e === "status") ? "secondary" : e.placement ?? "primary";
|
|
697
|
-
},
|
|
698
|
-
let { t: o } =
|
|
700
|
+
}, _t = ({ config: r, prepared: i }) => {
|
|
701
|
+
let { t: o } = O(), { t: _ } = n(), { formatNumber: v, formatCurrency: y, formatPercent: x } = $e(), { entities: S, entityRegistry: C } = t(), { layoutView: w } = g(), M = T(j), P = e(), F = J(), [ce, I] = D({}), [le, L] = D(null), R = u({
|
|
699
702
|
mainPage: r.pages.mainPage,
|
|
700
703
|
subPages: r.pages.subPages,
|
|
701
704
|
activePagePath: i.pagePath,
|
|
702
|
-
node:
|
|
703
|
-
}),
|
|
704
|
-
|
|
705
|
+
node: w
|
|
706
|
+
}), z = R.activePage ?? r.pages.mainPage, B = R.pages.length > 0 ? R.pages : [r.pages.mainPage], V = (e, t) => {
|
|
707
|
+
I((n) => n[e] === t ? n : {
|
|
705
708
|
...n,
|
|
706
709
|
[e]: t
|
|
707
710
|
});
|
|
708
|
-
}, { page:
|
|
711
|
+
}, { page: H } = r, U = ve(H.query, i.pageQuery), W = H.resolveNode(U, {
|
|
709
712
|
id: i.id,
|
|
710
713
|
detailId: i.detailId
|
|
711
|
-
})
|
|
712
|
-
|
|
713
|
-
let W = K(V.fragment, U), pe = T(() => Object.fromEntries(V.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.entity] : []) : []).flatMap((e) => {
|
|
714
|
-
let t = x[e];
|
|
714
|
+
}), G = W != null, K = _e(H.fragment, W), fe = E(() => Object.fromEntries(H.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
|
|
715
|
+
let t = S[e];
|
|
715
716
|
return t?.hasList === !0 ? [[e, t.routes.list]] : [];
|
|
716
|
-
})), [
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
})), [S, H.content]);
|
|
718
|
+
if (!G) throw new k(r.routes.list);
|
|
719
|
+
return /* @__PURE__ */ Y(De, {
|
|
720
|
+
node: K,
|
|
719
721
|
render: (e) => {
|
|
720
|
-
let t =
|
|
721
|
-
pages:
|
|
722
|
+
let t = H.toView(e), n = et({
|
|
723
|
+
pages: B,
|
|
722
724
|
id: i.id,
|
|
723
725
|
tApp: o,
|
|
724
726
|
detailPageHref: r.routes.detailPage
|
|
725
727
|
}), u = (e, t) => {
|
|
726
|
-
let n =
|
|
728
|
+
let n = S[e];
|
|
727
729
|
return n == null ? null : n.routes.detail(t);
|
|
728
|
-
}, g = ({ id: e, label: t, count: n,
|
|
729
|
-
let u =
|
|
730
|
+
}, g = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
|
|
731
|
+
let { target: s, filterId: c, whereKey: l, path: u } = r, d = C.getLoadedListEntity(s);
|
|
730
732
|
return {
|
|
731
733
|
id: e,
|
|
732
734
|
label: t,
|
|
733
735
|
count: n,
|
|
734
|
-
href:
|
|
735
|
-
id:
|
|
736
|
-
value:
|
|
737
|
-
}]) :
|
|
736
|
+
href: d == null ? Ce(i, o, [{
|
|
737
|
+
id: c ?? (u == null ? l : `${l}.${u.join(".")}`),
|
|
738
|
+
value: a
|
|
739
|
+
}]) : we(d.config, { where: o }),
|
|
738
740
|
onClick: async (e) => {
|
|
739
741
|
if (M == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
|
|
740
742
|
e.preventDefault();
|
|
741
|
-
let t =
|
|
743
|
+
let t = Te((await C.loadListEntity(s)).config, { where: o });
|
|
742
744
|
M.history.push({
|
|
743
745
|
pathname: t.pathname,
|
|
744
746
|
search: t.search === "" ? "" : `?${t.search}`,
|
|
@@ -746,54 +748,54 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
746
748
|
});
|
|
747
749
|
}
|
|
748
750
|
};
|
|
749
|
-
},
|
|
751
|
+
}, T = pt(r.header, w, {
|
|
750
752
|
tApp: o,
|
|
751
753
|
t: _,
|
|
752
754
|
resolveEntityHref: u,
|
|
753
|
-
renderLink: (e, t) => /* @__PURE__ */
|
|
755
|
+
renderLink: (e, t) => /* @__PURE__ */ Y(A, {
|
|
754
756
|
to: e,
|
|
755
757
|
children: t
|
|
756
758
|
}),
|
|
757
|
-
renderDate: (e, t) => /* @__PURE__ */
|
|
759
|
+
renderDate: (e, t) => /* @__PURE__ */ Y(oe, {
|
|
758
760
|
value: e,
|
|
759
|
-
options:
|
|
761
|
+
options: be,
|
|
760
762
|
fallback: t
|
|
761
763
|
}),
|
|
762
|
-
renderTag: (e, t) => /* @__PURE__ */
|
|
764
|
+
renderTag: (e, t) => /* @__PURE__ */ Y(q, {
|
|
763
765
|
tone: e,
|
|
764
766
|
children: t
|
|
765
767
|
}),
|
|
766
|
-
renderBadgeRow: (e) => /* @__PURE__ */
|
|
767
|
-
}),
|
|
768
|
+
renderBadgeRow: (e) => /* @__PURE__ */ Y(a, { items: e })
|
|
769
|
+
}), E = h({
|
|
768
770
|
config: r,
|
|
769
771
|
tApp: o,
|
|
770
772
|
entityId: i.id,
|
|
771
|
-
layoutView:
|
|
772
|
-
pageLabel:
|
|
773
|
-
}),
|
|
774
|
-
if (
|
|
775
|
-
let e =
|
|
776
|
-
e.length > 0 && (
|
|
777
|
-
let n =
|
|
778
|
-
return
|
|
773
|
+
layoutView: w,
|
|
774
|
+
pageLabel: z.label(o)
|
|
775
|
+
}), D = H.actions ?? [], O = [];
|
|
776
|
+
if (D.length > 0) {
|
|
777
|
+
let e = D.filter((e) => e.isVisible == null ? !0 : e.isVisible(t));
|
|
778
|
+
e.length > 0 && (O = e.map((e) => {
|
|
779
|
+
let n = Z(e.label, o), r = e.ariaLabel == null ? n : Z(e.ariaLabel, o), i = e.variant ?? "secondary", a = e.size ?? "small", s = ce[e.id] ?? !1, c = s || e.isDisabled?.(t) === !0;
|
|
780
|
+
return rt(e) ? /* @__PURE__ */ Y(de, {
|
|
779
781
|
to: e.to(t),
|
|
780
782
|
variant: i,
|
|
781
783
|
size: a,
|
|
782
784
|
isDisabled: c,
|
|
783
785
|
"aria-label": r,
|
|
784
786
|
children: n
|
|
785
|
-
}, e.id) :
|
|
787
|
+
}, e.id) : at(e) ? /* @__PURE__ */ Y(re, {
|
|
786
788
|
type: "button",
|
|
787
789
|
variant: i,
|
|
788
790
|
size: a,
|
|
789
791
|
isLoading: !1,
|
|
790
792
|
disabled: c,
|
|
791
793
|
onClick: () => {
|
|
792
|
-
|
|
794
|
+
L(e.id);
|
|
793
795
|
},
|
|
794
796
|
"aria-label": r,
|
|
795
797
|
children: n
|
|
796
|
-
}, e.id) :
|
|
798
|
+
}, e.id) : it(e) ? /* @__PURE__ */ Y(re, {
|
|
797
799
|
type: "button",
|
|
798
800
|
variant: i,
|
|
799
801
|
size: a,
|
|
@@ -802,30 +804,30 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
802
804
|
onClick: () => {
|
|
803
805
|
if (s) return;
|
|
804
806
|
let n = e.getVariables(t);
|
|
805
|
-
|
|
807
|
+
V(e.id, !0), ge(P, {
|
|
806
808
|
mutation: e.mutation,
|
|
807
809
|
variables: n,
|
|
808
810
|
updater: (n) => {
|
|
809
811
|
e.updater?.(n, t);
|
|
810
812
|
},
|
|
811
813
|
onCompleted: (n) => {
|
|
812
|
-
|
|
813
|
-
let r =
|
|
814
|
+
V(e.id, !1);
|
|
815
|
+
let r = nt(n);
|
|
814
816
|
if (r != null) {
|
|
815
817
|
let n = _("actions.form.errors.invalidPayload");
|
|
816
|
-
e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (n =
|
|
818
|
+
e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (n = Z(e.toasts.error.title, o)) : n = Z(e.toasts.error.message, o);
|
|
817
819
|
let i = l(r, {
|
|
818
820
|
defaultErrorMessage: n,
|
|
819
821
|
mapReason: (n) => {
|
|
820
822
|
let r = e.mapErrorReason?.(n, t);
|
|
821
|
-
return r == null ? null : typeof r == "function" ?
|
|
823
|
+
return r == null ? null : typeof r == "function" ? Z(r, o) : String(r);
|
|
822
824
|
}
|
|
823
825
|
});
|
|
824
826
|
if (!i.ok) {
|
|
825
827
|
let n = Error(i.message);
|
|
826
828
|
if (e.onError?.(n, t), e.toasts?.error != null) {
|
|
827
829
|
let t = m(e.toasts.error, o);
|
|
828
|
-
|
|
830
|
+
F.error(t.title, t.message);
|
|
829
831
|
}
|
|
830
832
|
return;
|
|
831
833
|
}
|
|
@@ -836,13 +838,13 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
836
838
|
response: n,
|
|
837
839
|
node: t,
|
|
838
840
|
tApp: o,
|
|
839
|
-
entities:
|
|
841
|
+
entities: S,
|
|
840
842
|
defaultLabel: _("actions.view"),
|
|
841
843
|
navigateTo: (e) => {
|
|
842
844
|
M?.history.push({ pathname: e });
|
|
843
845
|
}
|
|
844
846
|
});
|
|
845
|
-
|
|
847
|
+
F.push({
|
|
846
848
|
kind: "info",
|
|
847
849
|
title: r.title,
|
|
848
850
|
message: r.message,
|
|
@@ -851,9 +853,9 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
851
853
|
}
|
|
852
854
|
},
|
|
853
855
|
onError: (n) => {
|
|
854
|
-
if (
|
|
856
|
+
if (V(e.id, !1), e.onError?.(n, t), e.toasts?.error != null) {
|
|
855
857
|
let t = m(e.toasts.error, o);
|
|
856
|
-
|
|
858
|
+
F.error(t.title, t.message);
|
|
857
859
|
}
|
|
858
860
|
}
|
|
859
861
|
});
|
|
@@ -863,49 +865,49 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
863
865
|
}, e.id) : null;
|
|
864
866
|
}));
|
|
865
867
|
}
|
|
866
|
-
let
|
|
867
|
-
|
|
868
|
-
let r =
|
|
868
|
+
let k = D.find((e) => e.id === le), { content: j } = H, I = [], R = [], U = [];
|
|
869
|
+
j.forEach((e, n) => {
|
|
870
|
+
let r = gt(e) === "secondary" ? R : I;
|
|
869
871
|
if (e.kind === "section") {
|
|
870
|
-
let i =
|
|
872
|
+
let i = Z(e.title, o), c = e.description == null ? void 0 : Z(e.description, o), { items: l, relationItems: d, customNodes: f } = ft(e.fields, t, {
|
|
871
873
|
tApp: o,
|
|
872
874
|
t: _,
|
|
873
875
|
resolveEntityHref: u,
|
|
874
|
-
formatNumber:
|
|
875
|
-
formatCurrency:
|
|
876
|
-
formatPercent:
|
|
877
|
-
relationEntityListRoutes:
|
|
876
|
+
formatNumber: v,
|
|
877
|
+
formatCurrency: y,
|
|
878
|
+
formatPercent: x,
|
|
879
|
+
relationEntityListRoutes: fe,
|
|
878
880
|
resolveRelationItem: g,
|
|
879
|
-
setWhereValue:
|
|
880
|
-
renderTag: (e, t) => /* @__PURE__ */
|
|
881
|
+
setWhereValue: Ee,
|
|
882
|
+
renderTag: (e, t) => /* @__PURE__ */ Y(q, {
|
|
881
883
|
tone: e,
|
|
882
884
|
children: t
|
|
883
885
|
}),
|
|
884
|
-
renderBadgeRow: (e) => /* @__PURE__ */
|
|
885
|
-
renderDate: (e, t) => /* @__PURE__ */
|
|
886
|
+
renderBadgeRow: (e) => /* @__PURE__ */ Y(a, { items: e }),
|
|
887
|
+
renderDate: (e, t) => /* @__PURE__ */ Y(oe, {
|
|
886
888
|
value: e,
|
|
887
|
-
options:
|
|
889
|
+
options: be,
|
|
888
890
|
fallback: t
|
|
889
891
|
}),
|
|
890
|
-
renderFlagTag: (e) => /* @__PURE__ */
|
|
892
|
+
renderFlagTag: (e) => /* @__PURE__ */ Y(je, {
|
|
891
893
|
tone: e.tone,
|
|
892
|
-
icon: e.iconName == null ? void 0 :
|
|
894
|
+
icon: e.iconName == null ? void 0 : ht(e.iconName),
|
|
893
895
|
label: e.label
|
|
894
896
|
}),
|
|
895
|
-
renderLink: (e, t) => /* @__PURE__ */
|
|
897
|
+
renderLink: (e, t) => /* @__PURE__ */ Y(A, {
|
|
896
898
|
to: e,
|
|
897
899
|
children: t
|
|
898
900
|
}),
|
|
899
|
-
renderTaggedValue: (e, t) => /* @__PURE__ */
|
|
901
|
+
renderTaggedValue: (e, t) => /* @__PURE__ */ Y(Pe, {
|
|
900
902
|
tag: e,
|
|
901
903
|
value: t
|
|
902
904
|
}),
|
|
903
|
-
wrapCustomNode: (e, t) => /* @__PURE__ */
|
|
905
|
+
wrapCustomNode: (e, t) => /* @__PURE__ */ Y("div", { children: t }, e)
|
|
904
906
|
});
|
|
905
907
|
if (d.forEach((e) => {
|
|
906
|
-
|
|
908
|
+
U.some((t) => t.id === e.id) || U.push(e);
|
|
907
909
|
}), !(l.length > 0 || f.length > 0)) return;
|
|
908
|
-
r.push(/* @__PURE__ */
|
|
910
|
+
r.push(/* @__PURE__ */ Y(s, {
|
|
909
911
|
title: i,
|
|
910
912
|
description: c,
|
|
911
913
|
items: l.length > 0 ? l : void 0,
|
|
@@ -913,32 +915,30 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
913
915
|
}, `${i}-${n}`));
|
|
914
916
|
return;
|
|
915
917
|
}
|
|
916
|
-
let i =
|
|
918
|
+
let i = mt([e], t, {
|
|
917
919
|
tApp: o,
|
|
918
920
|
t: _,
|
|
919
921
|
resolveEntityHref: u,
|
|
920
922
|
keyPrefix: String(n),
|
|
921
|
-
renderCustomSection: (e, t, n) => /* @__PURE__ */
|
|
923
|
+
renderCustomSection: (e, t, n) => /* @__PURE__ */ Y(s, {
|
|
922
924
|
title: t,
|
|
923
925
|
children: n
|
|
924
926
|
}, e),
|
|
925
|
-
wrapCustomNode: (e, t) => /* @__PURE__ */
|
|
926
|
-
renderRelationList: ({ key: e, title: t,
|
|
927
|
+
wrapCustomNode: (e, t) => /* @__PURE__ */ Y("div", { children: t }, e),
|
|
928
|
+
renderRelationList: ({ key: e, title: t, relation: n, value: r }) => /* @__PURE__ */ Y(Je, {
|
|
927
929
|
title: t,
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
value: i ?? null,
|
|
931
|
-
path: a
|
|
930
|
+
relation: n,
|
|
931
|
+
value: r ?? null
|
|
932
932
|
}, e),
|
|
933
933
|
resolveTableColumns: (e) => d(e, {
|
|
934
934
|
tApp: o,
|
|
935
935
|
t: _,
|
|
936
936
|
resolveEntityHref: u
|
|
937
937
|
}),
|
|
938
|
-
renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */
|
|
938
|
+
renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ Y(s, {
|
|
939
939
|
title: t,
|
|
940
940
|
description: n,
|
|
941
|
-
children: /* @__PURE__ */
|
|
941
|
+
children: /* @__PURE__ */ Y(ie, {
|
|
942
942
|
columns: r,
|
|
943
943
|
rows: i,
|
|
944
944
|
getRowId: (e, t) => {
|
|
@@ -951,103 +951,111 @@ var Qe = (e) => e.pages.map((t) => ({
|
|
|
951
951
|
})
|
|
952
952
|
}, e),
|
|
953
953
|
renderJson: ({ key: e, title: t, description: n, value: r, defaultCollapsed: i }) => {
|
|
954
|
-
let a = /* @__PURE__ */
|
|
954
|
+
let a = /* @__PURE__ */ Y(s, {
|
|
955
955
|
title: t,
|
|
956
956
|
description: n,
|
|
957
|
-
children: /* @__PURE__ */
|
|
957
|
+
children: /* @__PURE__ */ Y(ue, {
|
|
958
958
|
value: r,
|
|
959
959
|
title: t
|
|
960
960
|
})
|
|
961
961
|
}, e);
|
|
962
|
-
return i === !0 ? /* @__PURE__ */
|
|
962
|
+
return i === !0 ? /* @__PURE__ */ X("details", { children: [/* @__PURE__ */ Y("summary", { children: t }), a] }, e) : a;
|
|
963
963
|
},
|
|
964
|
-
renderCode: ({ key: e, title: t, description: n, value: r, outputLabel: i }) => /* @__PURE__ */
|
|
964
|
+
renderCode: ({ key: e, title: t, description: n, value: r, outputLabel: i }) => /* @__PURE__ */ Y(s, {
|
|
965
965
|
title: t,
|
|
966
966
|
description: n,
|
|
967
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ Y(se, {
|
|
968
968
|
badgeLabel: i,
|
|
969
969
|
copyCode: r,
|
|
970
970
|
fallbackCodeText: r
|
|
971
971
|
})
|
|
972
972
|
}, e),
|
|
973
|
-
renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */
|
|
973
|
+
renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ Y(c, {
|
|
974
974
|
title: t,
|
|
975
975
|
description: n,
|
|
976
976
|
content: r,
|
|
977
977
|
format: i
|
|
978
978
|
}, e),
|
|
979
|
-
renderErrorList: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */
|
|
979
|
+
renderErrorList: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ Y(He, {
|
|
980
980
|
title: t,
|
|
981
981
|
description: n,
|
|
982
982
|
items: r
|
|
983
983
|
}, e),
|
|
984
|
-
renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */
|
|
984
|
+
renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ Y(s, {
|
|
985
985
|
title: t,
|
|
986
986
|
description: n,
|
|
987
|
-
children: /* @__PURE__ */
|
|
987
|
+
children: /* @__PURE__ */ Y(N, { items: r })
|
|
988
988
|
}, e)
|
|
989
989
|
})[0];
|
|
990
990
|
i != null && r.push(i);
|
|
991
991
|
});
|
|
992
|
-
let
|
|
992
|
+
let W = U.length > 0 ? /* @__PURE__ */ Y(te, {
|
|
993
993
|
label: _("relations.menu.label"),
|
|
994
|
-
items:
|
|
995
|
-
}) : null,
|
|
996
|
-
className: qe,
|
|
997
|
-
children: [D, U]
|
|
998
|
-
}) : void 0, me = w.status != null || w.badges != null ? /* @__PURE__ */ Y("div", {
|
|
994
|
+
items: U
|
|
995
|
+
}) : null, G = O.length > 0 || W != null ? /* @__PURE__ */ X("div", {
|
|
999
996
|
className: Ye,
|
|
1000
|
-
children: [
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
997
|
+
children: [O.length > 0 && /* @__PURE__ */ Y("div", {
|
|
998
|
+
className: "txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy",
|
|
999
|
+
children: O
|
|
1000
|
+
}), W != null && /* @__PURE__ */ Y("div", {
|
|
1001
|
+
className: "_1i6bm7z0 txvbqb9ip txvbqbcp",
|
|
1002
|
+
children: W
|
|
1003
|
+
})]
|
|
1004
|
+
}) : void 0, K = T.status != null || T.badges != null ? /* @__PURE__ */ X("div", {
|
|
1005
|
+
className: Ze,
|
|
1006
|
+
children: [T.status, T.badges]
|
|
1007
|
+
}) : void 0, pe = T.items != null && T.items.length > 0 ? /* @__PURE__ */ Y("div", {
|
|
1008
|
+
className: Qe,
|
|
1009
|
+
children: /* @__PURE__ */ Y(N, { items: T.items })
|
|
1010
|
+
}) : null, me = R.length > 0, J = null;
|
|
1011
|
+
return B.length > 1 && (J = /* @__PURE__ */ Y(ne, {
|
|
1006
1012
|
items: n,
|
|
1007
|
-
activeId:
|
|
1008
|
-
onChange: () => {}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1013
|
+
activeId: z.id,
|
|
1014
|
+
onChange: () => {},
|
|
1015
|
+
variant: "underline"
|
|
1016
|
+
})), /* @__PURE__ */ X(f, {
|
|
1017
|
+
breadcrumb: E,
|
|
1018
|
+
children: [/* @__PURE__ */ Y(ae, {
|
|
1019
|
+
headerNode: /* @__PURE__ */ X("div", {
|
|
1020
|
+
className: Xe,
|
|
1021
|
+
children: [/* @__PURE__ */ Y(ee, {
|
|
1022
|
+
title: T.title,
|
|
1023
|
+
subtitle: T.subtitle,
|
|
1024
|
+
actions: G,
|
|
1025
|
+
meta: K
|
|
1026
|
+
}), pe]
|
|
1020
1027
|
}),
|
|
1021
|
-
tabsNode:
|
|
1022
|
-
sidePanel:
|
|
1028
|
+
tabsNode: J,
|
|
1029
|
+
sidePanel: me ? /* @__PURE__ */ Y(ye, { children: R }) : void 0,
|
|
1023
1030
|
sidePanelVariant: "plain",
|
|
1024
|
-
|
|
1025
|
-
|
|
1031
|
+
headerDensity: "compact",
|
|
1032
|
+
children: /* @__PURE__ */ Y(ye, { children: I })
|
|
1033
|
+
}), k != null && at(k) && /* @__PURE__ */ Y(b, {
|
|
1026
1034
|
isOpen: !0,
|
|
1027
|
-
action:
|
|
1035
|
+
action: k,
|
|
1028
1036
|
node: t,
|
|
1029
1037
|
onClose: () => {
|
|
1030
|
-
|
|
1038
|
+
L(null);
|
|
1031
1039
|
}
|
|
1032
1040
|
})]
|
|
1033
1041
|
});
|
|
1034
1042
|
}
|
|
1035
1043
|
});
|
|
1036
|
-
},
|
|
1044
|
+
}, vt = ({ config: e, prepared: t }) => {
|
|
1037
1045
|
let { layoutView: n } = g(), r = u({
|
|
1038
1046
|
mainPage: e.pages.mainPage,
|
|
1039
1047
|
subPages: e.pages.subPages,
|
|
1040
1048
|
activePagePath: t.pagePath,
|
|
1041
1049
|
node: n
|
|
1042
1050
|
});
|
|
1043
|
-
if (!r.hasVisiblePages || r.activePage == null) throw new
|
|
1044
|
-
if (r.activePage.id !== t.pageId) throw new
|
|
1045
|
-
return /* @__PURE__ */
|
|
1051
|
+
if (!r.hasVisiblePages || r.activePage == null) throw new k(e.routes.list);
|
|
1052
|
+
if (r.activePage.id !== t.pageId) throw new k(e.routes.detailPage(t.id, r.activePage.id));
|
|
1053
|
+
return /* @__PURE__ */ Y(_t, {
|
|
1046
1054
|
config: t.pageConfig,
|
|
1047
1055
|
prepared: t
|
|
1048
1056
|
});
|
|
1049
1057
|
};
|
|
1050
1058
|
//#endregion
|
|
1051
|
-
export {
|
|
1059
|
+
export { vt as BackofficeEntityDetailPage, vt as default };
|
|
1052
1060
|
|
|
1053
|
-
//# sourceMappingURL=BackofficeEntityDetailPage-
|
|
1061
|
+
//# sourceMappingURL=BackofficeEntityDetailPage-LB1uEJVM.js.map
|