@plumile/backoffice-react 0.1.104 → 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-CZAcZwRc.js +0 -344
- package/lib/esm/BackofficeDashboardPage-CZAcZwRc.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
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
import { t as e } from "./useBackofficeReactTranslation-Btt58EIo.js";
|
|
2
|
+
import { t } from "./BackofficeErrorBoundary-BwRVSDHU.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./BackofficeListToolbar-loFfIPtP.js";
|
|
4
|
+
import { i as o, t as s } from "./EntityIdPickerDialog-BSn0v3bv.js";
|
|
5
|
+
import { s as c } from "./backofficeEntityActionFormDialog.css-DJgEKwaA.js";
|
|
6
|
+
import { Suspense as l, lazy as u, startTransition as d, useCallback as f, useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
7
|
+
import { useTranslation as _ } from "react-i18next";
|
|
8
|
+
import { BackofficeEmptyState as v, BackofficeFilterDrawer as y, BackofficeFilterField as ee, BackofficeInfiniteListStatus as te, BackofficePageHeader as ne, BackofficeTableSkeleton as re, Button as b, FilterChipRow as ie, InlineBanner as ae, Input as oe, ListPageTemplate as se, ResponsiveRecordList as ce, SidebarSearchSvg as x, SimpleSelect as S, Spinner as C, denseTableClass as le } from "@plumile/ui";
|
|
9
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
10
|
+
import { readWhereValue as D, setWhereValue as O } from "@plumile/backoffice-core/filters/where.js";
|
|
11
|
+
import { stableListVariablesKey as k } from "@plumile/backoffice-core/state/stableKey.js";
|
|
12
|
+
//#region src/hooks/useBackofficeLoadMore.ts
|
|
13
|
+
function ue({ hasNext: e, isLoadingNext: t, loadNext: n, count: r }) {
|
|
14
|
+
return f(() => {
|
|
15
|
+
!e || t || d(() => {
|
|
16
|
+
n(r);
|
|
17
|
+
});
|
|
18
|
+
}, [
|
|
19
|
+
r,
|
|
20
|
+
e,
|
|
21
|
+
t,
|
|
22
|
+
n
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/hooks/useBackofficeListRefetch.ts
|
|
27
|
+
function de({ refetch: e, variables: t, defaults: n, fetchPolicy: r, buildQueryVariables: i }) {
|
|
28
|
+
let [a, o] = g(!1), s = h(0), c = h(k({
|
|
29
|
+
where: n.where,
|
|
30
|
+
sort: n.sort,
|
|
31
|
+
count: n.count
|
|
32
|
+
})), l = f((e) => i(e), [i]), u = f((t) => {
|
|
33
|
+
let n = s.current + 1;
|
|
34
|
+
s.current = n, o(!0);
|
|
35
|
+
let i = l({
|
|
36
|
+
...t,
|
|
37
|
+
cursor: null
|
|
38
|
+
});
|
|
39
|
+
try {
|
|
40
|
+
d(() => {
|
|
41
|
+
e(i, {
|
|
42
|
+
fetchPolicy: r,
|
|
43
|
+
onComplete: () => {
|
|
44
|
+
s.current === n && o(!1);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
} catch (e) {
|
|
49
|
+
throw s.current === n && o(!1), e;
|
|
50
|
+
}
|
|
51
|
+
}, [
|
|
52
|
+
r,
|
|
53
|
+
e,
|
|
54
|
+
l
|
|
55
|
+
]);
|
|
56
|
+
return p(() => {
|
|
57
|
+
let e = k({
|
|
58
|
+
where: t.where,
|
|
59
|
+
sort: t.sort,
|
|
60
|
+
count: t.count
|
|
61
|
+
});
|
|
62
|
+
c.current !== e && (c.current = e, u(t));
|
|
63
|
+
}, [u, t]), {
|
|
64
|
+
isRefreshing: a,
|
|
65
|
+
onRefresh: f(() => {
|
|
66
|
+
u(t);
|
|
67
|
+
}, [u, t])
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/backoffice/filters/deferredFilterSearchInput.css.ts
|
|
72
|
+
var A = "ds2thc0 txvbqb9ip txvbqbcp txvbqbao7 txvbqbu7g", j = "ds2thc1 txvbqb9ip txvbqbcp txvbqbany", M = ({ value: t, placeholder: n, ariaLabel: r, className: i, inputMode: a = "search", type: o = "search", onApply: s }) => {
|
|
73
|
+
let { t: c } = e(), [l, u] = g(t);
|
|
74
|
+
p(() => {
|
|
75
|
+
u(t);
|
|
76
|
+
}, [t]);
|
|
77
|
+
let d = l.trim(), f = t.trim(), m = d !== "", h = d !== f, _ = m || f !== "", v = "secondary";
|
|
78
|
+
h && (v = "primary");
|
|
79
|
+
let y = () => {
|
|
80
|
+
h && s(d);
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ T("form", {
|
|
83
|
+
className: i,
|
|
84
|
+
onSubmit: (e) => {
|
|
85
|
+
e.preventDefault(), y();
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ E("div", {
|
|
88
|
+
className: A,
|
|
89
|
+
children: [/* @__PURE__ */ T(oe, {
|
|
90
|
+
type: o,
|
|
91
|
+
inputMode: a,
|
|
92
|
+
value: l,
|
|
93
|
+
onChange: (e) => {
|
|
94
|
+
u(e.target.value);
|
|
95
|
+
},
|
|
96
|
+
onKeyDown: (e) => {
|
|
97
|
+
e.key === "Escape" && (e.preventDefault(), u(t));
|
|
98
|
+
},
|
|
99
|
+
placeholder: n,
|
|
100
|
+
"aria-label": r ?? n,
|
|
101
|
+
size: "small",
|
|
102
|
+
fullWidth: !0,
|
|
103
|
+
leftIcon: /* @__PURE__ */ T(x, {
|
|
104
|
+
width: 18,
|
|
105
|
+
height: 18,
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
})
|
|
108
|
+
}), /* @__PURE__ */ E("div", {
|
|
109
|
+
className: j,
|
|
110
|
+
children: [_ && /* @__PURE__ */ T(b, {
|
|
111
|
+
type: "button",
|
|
112
|
+
variant: "text",
|
|
113
|
+
size: "small",
|
|
114
|
+
onClick: () => {
|
|
115
|
+
u(""), f !== "" && s("");
|
|
116
|
+
},
|
|
117
|
+
children: c("common.actions.clear")
|
|
118
|
+
}), /* @__PURE__ */ T(b, {
|
|
119
|
+
type: "submit",
|
|
120
|
+
variant: v,
|
|
121
|
+
size: "small",
|
|
122
|
+
disabled: !h,
|
|
123
|
+
children: c("filters.actions.apply")
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/hooks/useBackofficeInfiniteScrollSentinel.ts
|
|
131
|
+
function fe({ enabled: e, hasNextPage: t, isLoading: n, onIntersect: r, root: i = null, rootMargin: a = "360px 0px", threshold: o = 0 }) {
|
|
132
|
+
let [s, c] = g(null), l = h(r), u = h(0);
|
|
133
|
+
return p(() => {
|
|
134
|
+
l.current = r;
|
|
135
|
+
}, [r]), p(() => {
|
|
136
|
+
if (!e || !t || n || s == null) return () => {};
|
|
137
|
+
let r = () => {
|
|
138
|
+
let e = Date.now();
|
|
139
|
+
e - u.current < 250 || (u.current = e, l.current());
|
|
140
|
+
};
|
|
141
|
+
if (typeof IntersectionObserver > "u") return r(), () => {};
|
|
142
|
+
let c = new IntersectionObserver((e) => {
|
|
143
|
+
e[0]?.isIntersecting === !0 && r();
|
|
144
|
+
}, {
|
|
145
|
+
root: i,
|
|
146
|
+
rootMargin: a,
|
|
147
|
+
threshold: o
|
|
148
|
+
});
|
|
149
|
+
return c.observe(s), () => {
|
|
150
|
+
c.disconnect();
|
|
151
|
+
};
|
|
152
|
+
}, [
|
|
153
|
+
e,
|
|
154
|
+
t,
|
|
155
|
+
n,
|
|
156
|
+
s,
|
|
157
|
+
i,
|
|
158
|
+
a,
|
|
159
|
+
o
|
|
160
|
+
]), { sentinelRef: f((e) => {
|
|
161
|
+
c(e);
|
|
162
|
+
}, []) };
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/components/backoffice/scaffolds/backofficeEntityListScaffold.css.ts
|
|
166
|
+
var pe = "txvbqb9ip txvbqbajy txvbqbcp txvbqbao7", N = "_8gc5760 txvbqbu4g txvbqbjep", me = "txvbqb9ip txvbqbai7 txvbqbaog", he = "txvbqb97 txvbqbamp txvbqbv9z", P = (e, t) => e(t), F = (e, t) => e.fromGraphQL != null && t != null ? e.fromGraphQL(t) : D(t, e.whereKey ?? e.id, e.path), ge = (e, t, n) => {
|
|
167
|
+
if (t == null) return null;
|
|
168
|
+
if (Array.isArray(t)) {
|
|
169
|
+
let e = t.map((e) => {
|
|
170
|
+
if (e == null || typeof e != "string" && typeof e != "number" && typeof e != "boolean") return null;
|
|
171
|
+
let t = String(e).trim();
|
|
172
|
+
return t === "" ? null : t;
|
|
173
|
+
}).filter((e) => e != null);
|
|
174
|
+
return e.length === 0 ? null : e.join(", ");
|
|
175
|
+
}
|
|
176
|
+
if (typeof t == "boolean") return e.kind === "boolean" ? n.booleanLabel(t) : t ? n.fallbackBooleanLabels.yes : n.fallbackBooleanLabels.no;
|
|
177
|
+
if (typeof t != "string" && typeof t != "number") return null;
|
|
178
|
+
let i = String(t).trim();
|
|
179
|
+
return i === "" ? null : e.kind === "entityId" ? /* @__PURE__ */ T(r, {
|
|
180
|
+
entityId: e.entity,
|
|
181
|
+
id: i
|
|
182
|
+
}) : e.kind === "enum" ? n.enumLabel(i) : i;
|
|
183
|
+
}, _e = (e) => {
|
|
184
|
+
let t = new Date(e);
|
|
185
|
+
if (Number.isNaN(t.getTime())) return e;
|
|
186
|
+
let n = t.getTimezoneOffset() * 6e4;
|
|
187
|
+
return new Date(t.getTime() - n).toISOString().slice(0, 16);
|
|
188
|
+
}, ve = (e) => {
|
|
189
|
+
let t = e.trim();
|
|
190
|
+
if (t === "") return "";
|
|
191
|
+
let n = new Date(t);
|
|
192
|
+
return Number.isNaN(n.getTime()) ? t : n.toISOString();
|
|
193
|
+
}, I = (r) => {
|
|
194
|
+
let { t: c } = _(), { t: l } = e(), { config: u, state: d, pushState: p, rows: h, getRowId: oe, columns: x, gridTemplateColumns: C, hasNextPage: D, isLoadingMore: k, isRefreshing: ue = !1, onLoadMore: de, onRefresh: A, totalCount: j, emptyState: I, statusBanner: L, header: R, headerActions: z, isLoadingInitial: B = !1, variant: ye = "page", showFilters: be = !0 } = r, V = u.list, H = u.listDefaults ?? V.defaultState ?? {
|
|
195
|
+
where: null,
|
|
196
|
+
sort: null
|
|
197
|
+
}, U = m(() => x.some((e) => e.isPrimary === !0) || x.length === 0 ? x : x.map((e, t) => {
|
|
198
|
+
let { header: n } = e;
|
|
199
|
+
return t === 0 ? {
|
|
200
|
+
...e,
|
|
201
|
+
isPrimary: !0,
|
|
202
|
+
header: n
|
|
203
|
+
} : {
|
|
204
|
+
...e,
|
|
205
|
+
header: n
|
|
206
|
+
};
|
|
207
|
+
}), [x]), W = m(() => {
|
|
208
|
+
let e = [];
|
|
209
|
+
for (let t of V.filters) {
|
|
210
|
+
let n = F(t, d.where), r = ge(t, n, {
|
|
211
|
+
enumLabel: (e) => {
|
|
212
|
+
if (t.kind !== "enum") return e;
|
|
213
|
+
let n = t.options.find((t) => t.value === e);
|
|
214
|
+
return n == null ? e : P(n.label, c);
|
|
215
|
+
},
|
|
216
|
+
booleanLabel: (e) => {
|
|
217
|
+
if (t.kind === "boolean") {
|
|
218
|
+
if (e && t.trueLabel != null) return P(t.trueLabel, c);
|
|
219
|
+
if (!e && t.falseLabel != null) return P(t.falseLabel, c);
|
|
220
|
+
}
|
|
221
|
+
return l(e ? "filters.boolean.yes" : "filters.boolean.no");
|
|
222
|
+
},
|
|
223
|
+
fallbackBooleanLabels: {
|
|
224
|
+
yes: l("filters.boolean.yes"),
|
|
225
|
+
no: l("filters.boolean.no")
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
if (r != null) {
|
|
229
|
+
let i = String(n);
|
|
230
|
+
Array.isArray(n) && (i = n.join(","));
|
|
231
|
+
let a = /* @__PURE__ */ E("span", { children: [
|
|
232
|
+
P(t.label, c),
|
|
233
|
+
": ",
|
|
234
|
+
r
|
|
235
|
+
] });
|
|
236
|
+
e.push({
|
|
237
|
+
id: `${t.id}:${i}`,
|
|
238
|
+
label: a,
|
|
239
|
+
onRemove: () => {
|
|
240
|
+
let e = t.whereKey ?? t.id, n = O(d.where, e, null, t.path);
|
|
241
|
+
p({
|
|
242
|
+
...d,
|
|
243
|
+
where: n
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return e;
|
|
250
|
+
}, [
|
|
251
|
+
V.filters,
|
|
252
|
+
p,
|
|
253
|
+
d,
|
|
254
|
+
l,
|
|
255
|
+
c
|
|
256
|
+
]), G = f(() => {
|
|
257
|
+
p({ ...H });
|
|
258
|
+
}, [H, p]), [xe, K] = g(!1), [q, Se] = g(""), [J, Ce] = g(null), Y = f((e) => {
|
|
259
|
+
let t = e.whereKey ?? e.id, n = F(e, d.where), r = "";
|
|
260
|
+
typeof n == "string" && (r = n), typeof n == "number" && Number.isFinite(n) && (r = String(n));
|
|
261
|
+
let a = P(e.label, c);
|
|
262
|
+
if (e.kind === "text") {
|
|
263
|
+
let n = l("filters.placeholders.search", { label: e.placeholderLabel == null ? a : P(e.placeholderLabel, c) });
|
|
264
|
+
return e.placeholderText != null && (n = P(e.placeholderText, c)), /* @__PURE__ */ T(M, {
|
|
265
|
+
value: _e(r),
|
|
266
|
+
onApply: (n) => {
|
|
267
|
+
let r = ve(n), i = O(d.where, t, r, e.path);
|
|
268
|
+
p({
|
|
269
|
+
...d,
|
|
270
|
+
where: i
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
placeholder: n,
|
|
274
|
+
ariaLabel: n,
|
|
275
|
+
className: N
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
if (e.kind === "datetime") {
|
|
279
|
+
let n = l("filters.placeholders.search", { label: e.placeholderLabel == null ? a : P(e.placeholderLabel, c) });
|
|
280
|
+
return e.placeholderText != null && (n = P(e.placeholderText, c)), /* @__PURE__ */ T(M, {
|
|
281
|
+
value: r,
|
|
282
|
+
onApply: (n) => {
|
|
283
|
+
let r = O(d.where, t, n, e.path);
|
|
284
|
+
p({
|
|
285
|
+
...d,
|
|
286
|
+
where: r
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
placeholder: n,
|
|
290
|
+
ariaLabel: n,
|
|
291
|
+
className: N,
|
|
292
|
+
type: "datetime-local"
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
if (e.kind === "number") {
|
|
296
|
+
let n = l("filters.placeholders.search", { label: e.placeholderLabel == null ? a : P(e.placeholderLabel, c) });
|
|
297
|
+
return e.placeholderText != null && (n = P(e.placeholderText, c)), /* @__PURE__ */ T(M, {
|
|
298
|
+
value: r,
|
|
299
|
+
onApply: (n) => {
|
|
300
|
+
let r = n.trim(), i = r === "" ? null : Number(r), a = O(d.where, t, Number.isFinite(i) ? i : null, e.path);
|
|
301
|
+
p({
|
|
302
|
+
...d,
|
|
303
|
+
where: a
|
|
304
|
+
});
|
|
305
|
+
},
|
|
306
|
+
placeholder: n,
|
|
307
|
+
ariaLabel: n,
|
|
308
|
+
className: N,
|
|
309
|
+
inputMode: e.inputMode ?? "numeric",
|
|
310
|
+
type: "number"
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
if (e.kind === "enum") return /* @__PURE__ */ T(S, {
|
|
314
|
+
options: [{
|
|
315
|
+
id: "any",
|
|
316
|
+
value: "",
|
|
317
|
+
label: l("filters.all", { label: a })
|
|
318
|
+
}, ...e.options.map((e) => ({
|
|
319
|
+
id: e.value,
|
|
320
|
+
value: e.value,
|
|
321
|
+
label: P(e.label, c)
|
|
322
|
+
}))],
|
|
323
|
+
value: r,
|
|
324
|
+
size: "small",
|
|
325
|
+
ariaLabel: a,
|
|
326
|
+
onChange: (n) => {
|
|
327
|
+
let r = O(d.where, t, n, e.path);
|
|
328
|
+
p({
|
|
329
|
+
...d,
|
|
330
|
+
where: r
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
if (e.kind === "boolean") {
|
|
335
|
+
let r = null;
|
|
336
|
+
typeof n == "boolean" && (r = n);
|
|
337
|
+
let i = "";
|
|
338
|
+
r === !0 && (i = "true"), r === !1 && (i = "false");
|
|
339
|
+
let o = e.trueLabel == null ? l("filters.boolean.yes") : P(e.trueLabel, c), s = e.falseLabel == null ? l("filters.boolean.no") : P(e.falseLabel, c);
|
|
340
|
+
return /* @__PURE__ */ T(S, {
|
|
341
|
+
options: [
|
|
342
|
+
{
|
|
343
|
+
id: "any",
|
|
344
|
+
value: "",
|
|
345
|
+
label: l("filters.all", { label: a })
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: "true",
|
|
349
|
+
value: "true",
|
|
350
|
+
label: o
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: "false",
|
|
354
|
+
value: "false",
|
|
355
|
+
label: s
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
value: i,
|
|
359
|
+
size: "small",
|
|
360
|
+
ariaLabel: a,
|
|
361
|
+
onChange: (n) => {
|
|
362
|
+
let r = null;
|
|
363
|
+
n === "true" && (r = !0), n === "false" && (r = !1);
|
|
364
|
+
let i = O(d.where, t, r, e.path);
|
|
365
|
+
p({
|
|
366
|
+
...d,
|
|
367
|
+
where: i
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
let s = (() => {
|
|
373
|
+
if (e.pickerScope != null) return typeof e.pickerScope == "function" ? e.pickerScope(d.where) : e.pickerScope;
|
|
374
|
+
})(), u = null;
|
|
375
|
+
typeof n == "string" && (u = n);
|
|
376
|
+
let f = (n = null) => {
|
|
377
|
+
let r = n?.trim() ?? "";
|
|
378
|
+
return /* @__PURE__ */ T(o, {
|
|
379
|
+
label: a,
|
|
380
|
+
value: u,
|
|
381
|
+
displayValue: r,
|
|
382
|
+
placeholder: l("filters.placeholders.anyEntity", { label: a }),
|
|
383
|
+
onPick: () => {
|
|
384
|
+
Ce({
|
|
385
|
+
entity: e.entity,
|
|
386
|
+
whereKey: t,
|
|
387
|
+
label: a,
|
|
388
|
+
path: e.path,
|
|
389
|
+
scope: s
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
onClear: () => {
|
|
393
|
+
let n = O(d.where, t, null, e.path);
|
|
394
|
+
p({
|
|
395
|
+
...d,
|
|
396
|
+
where: n
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
return u == null || u.trim() === "" ? f() : /* @__PURE__ */ T(i, {
|
|
402
|
+
entityId: e.entity,
|
|
403
|
+
id: u,
|
|
404
|
+
children: (e) => f(e)
|
|
405
|
+
});
|
|
406
|
+
}, [
|
|
407
|
+
p,
|
|
408
|
+
d,
|
|
409
|
+
l,
|
|
410
|
+
c
|
|
411
|
+
]), we = m(() => V.filters.some((e) => e.placement != null), [V.filters]), X = m(() => {
|
|
412
|
+
if (V.filters.length === 0) return [];
|
|
413
|
+
let e = V.ui?.toolbar?.maxPromotedFilters ?? 3;
|
|
414
|
+
return we ? V.filters.filter((e) => e.placement === "quick" || e.placement === "both") : V.filters.slice(0, e);
|
|
415
|
+
}, [
|
|
416
|
+
V.filters,
|
|
417
|
+
V.ui?.toolbar,
|
|
418
|
+
we
|
|
419
|
+
]), Z = m(() => V.filters.filter((e) => e.placement == null ? !0 : e.placement === "drawer" || e.placement === "both"), [V.filters]), Q = m(() => X.find((e) => e.kind === "text"), [X]), Te = m(() => {
|
|
420
|
+
let e = X.filter((e) => e !== Q);
|
|
421
|
+
return e.length === 0 ? null : /* @__PURE__ */ T("div", {
|
|
422
|
+
className: pe,
|
|
423
|
+
children: e.map((e) => /* @__PURE__ */ T("span", { children: Y(e) }, e.id))
|
|
424
|
+
});
|
|
425
|
+
}, [
|
|
426
|
+
X,
|
|
427
|
+
Y,
|
|
428
|
+
Q
|
|
429
|
+
]), Ee = m(() => Q == null ? null : Y(Q), [Y, Q]), De = m(() => {
|
|
430
|
+
if (V.sorts.length === 0) return null;
|
|
431
|
+
let e = V.sorts[0];
|
|
432
|
+
return e == null ? null : /* @__PURE__ */ T(S, {
|
|
433
|
+
options: V.sorts.map((e) => ({
|
|
434
|
+
id: e.id,
|
|
435
|
+
value: e.id,
|
|
436
|
+
label: P(e.label, c)
|
|
437
|
+
})),
|
|
438
|
+
value: d.sort ?? e.id,
|
|
439
|
+
size: "small",
|
|
440
|
+
ariaLabel: l("list.sort.label"),
|
|
441
|
+
onChange: (e) => {
|
|
442
|
+
p({
|
|
443
|
+
...d,
|
|
444
|
+
sort: e
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}, [
|
|
449
|
+
V.sorts,
|
|
450
|
+
p,
|
|
451
|
+
d,
|
|
452
|
+
l,
|
|
453
|
+
c
|
|
454
|
+
]), Oe = m(() => W.length === 0 ? null : /* @__PURE__ */ T(ie, {
|
|
455
|
+
chips: W,
|
|
456
|
+
onClearAll: G
|
|
457
|
+
}), [W, G]), ke = m(() => {
|
|
458
|
+
if (Z.length === 0) return [];
|
|
459
|
+
let e = q.trim().toLowerCase(), t = [];
|
|
460
|
+
for (let n of Z) {
|
|
461
|
+
let r = P(n.label, c);
|
|
462
|
+
(e === "" || r.toLowerCase().includes(e)) && t.push({
|
|
463
|
+
id: n.id,
|
|
464
|
+
node: /* @__PURE__ */ T(ee, {
|
|
465
|
+
label: r,
|
|
466
|
+
children: Y(n)
|
|
467
|
+
})
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
return t.length === 0 ? [] : [{
|
|
471
|
+
id: "backoffice.filters.sections.default",
|
|
472
|
+
title: l("filters.sections.default"),
|
|
473
|
+
items: t
|
|
474
|
+
}];
|
|
475
|
+
}, [
|
|
476
|
+
Z,
|
|
477
|
+
q,
|
|
478
|
+
Y,
|
|
479
|
+
l,
|
|
480
|
+
c
|
|
481
|
+
]), Ae = m(() => {
|
|
482
|
+
if (Z.length === 0) return null;
|
|
483
|
+
let e = W.length, t = l("filters.trigger");
|
|
484
|
+
return e > 0 && (t = l("filters.triggerWithCount", { count: e })), /* @__PURE__ */ T(b, {
|
|
485
|
+
type: "button",
|
|
486
|
+
variant: "secondary",
|
|
487
|
+
size: "small",
|
|
488
|
+
onClick: () => {
|
|
489
|
+
K(!0);
|
|
490
|
+
},
|
|
491
|
+
children: t
|
|
492
|
+
});
|
|
493
|
+
}, [
|
|
494
|
+
W.length,
|
|
495
|
+
Z.length,
|
|
496
|
+
l
|
|
497
|
+
]), je = /* @__PURE__ */ T(y, {
|
|
498
|
+
isOpen: xe,
|
|
499
|
+
onClose: () => {
|
|
500
|
+
K(!1), Se("");
|
|
501
|
+
},
|
|
502
|
+
sections: ke,
|
|
503
|
+
searchValue: q,
|
|
504
|
+
onSearchChange: (e) => {
|
|
505
|
+
Se(e);
|
|
506
|
+
},
|
|
507
|
+
onReset: G,
|
|
508
|
+
emptyLabel: q.trim() === "" ? void 0 : l("filters.drawer.emptySearchResults")
|
|
509
|
+
}), Me = m(() => I ?? (B ? /* @__PURE__ */ T(re, {
|
|
510
|
+
variant: "embedded",
|
|
511
|
+
ariaLabel: l("common.loading")
|
|
512
|
+
}) : W.length > 0 ? /* @__PURE__ */ T(v, {
|
|
513
|
+
title: l("emptyState.listEmpty.title"),
|
|
514
|
+
description: l("emptyState.listEmptyFiltered.description"),
|
|
515
|
+
actions: /* @__PURE__ */ T(b, {
|
|
516
|
+
type: "button",
|
|
517
|
+
variant: "secondary",
|
|
518
|
+
size: "small",
|
|
519
|
+
onClick: G,
|
|
520
|
+
children: l("emptyState.listEmptyFiltered.actions.reset")
|
|
521
|
+
})
|
|
522
|
+
}) : /* @__PURE__ */ T(v, {
|
|
523
|
+
title: l("emptyState.listEmpty.title"),
|
|
524
|
+
description: l("emptyState.listEmpty.description")
|
|
525
|
+
})), [
|
|
526
|
+
W.length,
|
|
527
|
+
I,
|
|
528
|
+
G,
|
|
529
|
+
B,
|
|
530
|
+
l
|
|
531
|
+
]), Ne = m(() => typeof j == "number" ? /* @__PURE__ */ T("span", { children: l("list.showing", {
|
|
532
|
+
shown: h.length,
|
|
533
|
+
total: j
|
|
534
|
+
}) }) : h.length === 0 ? null : /* @__PURE__ */ T("span", { children: l("list.loaded", { count: h.length }) }), [
|
|
535
|
+
h.length,
|
|
536
|
+
l,
|
|
537
|
+
j
|
|
538
|
+
]), { sentinelRef: Pe } = fe({
|
|
539
|
+
enabled: !0,
|
|
540
|
+
hasNextPage: D,
|
|
541
|
+
isLoading: k,
|
|
542
|
+
onIntersect: de
|
|
543
|
+
}), Fe = R?.title ?? P(V.title, c), Ie = R?.subtitle, Le = U.find((e) => e.mobileRole === "action" || e.id === "actions"), Re = /* @__PURE__ */ T(t, {
|
|
544
|
+
fallback: (e) => {
|
|
545
|
+
let { reset: t } = e;
|
|
546
|
+
return /* @__PURE__ */ T(ae, {
|
|
547
|
+
tone: "danger",
|
|
548
|
+
title: l("list.errors.title"),
|
|
549
|
+
actions: /* @__PURE__ */ T(b, {
|
|
550
|
+
type: "button",
|
|
551
|
+
variant: "secondary",
|
|
552
|
+
size: "small",
|
|
553
|
+
onClick: () => {
|
|
554
|
+
t(), A?.();
|
|
555
|
+
},
|
|
556
|
+
children: l("list.actions.retry")
|
|
557
|
+
}),
|
|
558
|
+
children: l("list.errors.tableFailed")
|
|
559
|
+
});
|
|
560
|
+
},
|
|
561
|
+
children: /* @__PURE__ */ T(ce, {
|
|
562
|
+
columns: U,
|
|
563
|
+
rows: h,
|
|
564
|
+
getRowId: oe,
|
|
565
|
+
emptyState: Me,
|
|
566
|
+
className: le,
|
|
567
|
+
gridTemplateColumns: C,
|
|
568
|
+
mode: V.ui?.displayMode ?? V.responsive?.mode ?? "auto",
|
|
569
|
+
density: V.ui?.density ?? V.responsive?.density ?? "compact",
|
|
570
|
+
renderAction: (e) => Le?.cell(e) ?? null
|
|
571
|
+
})
|
|
572
|
+
}), ze = be ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(a, {
|
|
573
|
+
primaryFilters: Ee != null || Te != null ? /* @__PURE__ */ E(w, { children: [Ee, Te] }) : null,
|
|
574
|
+
filterDrawerTrigger: Ae,
|
|
575
|
+
sortControl: De,
|
|
576
|
+
utilityActions: A == null ? null : /* @__PURE__ */ T(b, {
|
|
577
|
+
type: "button",
|
|
578
|
+
variant: "secondary",
|
|
579
|
+
size: "small",
|
|
580
|
+
isLoading: ue,
|
|
581
|
+
loadingLabel: l("list.actions.refreshing"),
|
|
582
|
+
onClick: () => {
|
|
583
|
+
A();
|
|
584
|
+
},
|
|
585
|
+
children: l("list.actions.refresh")
|
|
586
|
+
}),
|
|
587
|
+
activeFilters: Oe,
|
|
588
|
+
density: "compact"
|
|
589
|
+
}), je] }) : null, Be = /* @__PURE__ */ E("div", { children: [Re, /* @__PURE__ */ T(s, {
|
|
590
|
+
isOpen: J != null,
|
|
591
|
+
entity: J?.entity ?? u.id,
|
|
592
|
+
title: J?.label ?? l("picker.title"),
|
|
593
|
+
scope: J?.scope,
|
|
594
|
+
onClose: () => {
|
|
595
|
+
Ce(null);
|
|
596
|
+
},
|
|
597
|
+
onSelectId: (e) => {
|
|
598
|
+
if (J == null) return;
|
|
599
|
+
let t = O(d.where, J.whereKey, e, J.path);
|
|
600
|
+
p({
|
|
601
|
+
...d,
|
|
602
|
+
where: t
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
})] }), $ = h.length > 0 || k || D ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
|
|
606
|
+
ref: Pe,
|
|
607
|
+
"aria-hidden": "true"
|
|
608
|
+
}), /* @__PURE__ */ T(te, {
|
|
609
|
+
loadedCount: h.length,
|
|
610
|
+
totalCount: j,
|
|
611
|
+
hasNextPage: D,
|
|
612
|
+
isLoading: k,
|
|
613
|
+
loadedLabel: Ne,
|
|
614
|
+
loadingLabel: l("list.loadMore.loading"),
|
|
615
|
+
endLabel: l("list.loadMore.end")
|
|
616
|
+
})] }) : null;
|
|
617
|
+
return ye === "embedded" ? /* @__PURE__ */ T(n, {
|
|
618
|
+
config: u,
|
|
619
|
+
state: d,
|
|
620
|
+
pushState: p,
|
|
621
|
+
children: /* @__PURE__ */ E("div", {
|
|
622
|
+
className: me,
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ T("div", {
|
|
625
|
+
className: he,
|
|
626
|
+
children: Fe
|
|
627
|
+
}),
|
|
628
|
+
ze,
|
|
629
|
+
L,
|
|
630
|
+
Be,
|
|
631
|
+
$
|
|
632
|
+
]
|
|
633
|
+
})
|
|
634
|
+
}) : /* @__PURE__ */ T(n, {
|
|
635
|
+
config: u,
|
|
636
|
+
state: d,
|
|
637
|
+
pushState: p,
|
|
638
|
+
children: /* @__PURE__ */ T(se, {
|
|
639
|
+
headerNode: /* @__PURE__ */ T(ne, {
|
|
640
|
+
title: Fe,
|
|
641
|
+
subtitle: Ie,
|
|
642
|
+
actions: z
|
|
643
|
+
}),
|
|
644
|
+
toolbarNode: ze,
|
|
645
|
+
statusNode: L,
|
|
646
|
+
tableNode: Be,
|
|
647
|
+
tableFooterNode: $,
|
|
648
|
+
presentation: "flat"
|
|
649
|
+
})
|
|
650
|
+
});
|
|
651
|
+
}, L = u(async () => ({ default: (await import("./BackofficeEntityActionFormDialog-DrZxuytz.js")).BackofficeEntityActionFormDialog })), R = () => {
|
|
652
|
+
let { t } = e();
|
|
653
|
+
return /* @__PURE__ */ E("div", {
|
|
654
|
+
className: c,
|
|
655
|
+
role: "status",
|
|
656
|
+
"aria-live": "polite",
|
|
657
|
+
"aria-busy": "true",
|
|
658
|
+
children: [/* @__PURE__ */ T(C, {
|
|
659
|
+
ariaLabel: t("common.loading"),
|
|
660
|
+
size: 20
|
|
661
|
+
}), /* @__PURE__ */ T("span", { children: t("common.loading") })]
|
|
662
|
+
});
|
|
663
|
+
}, z = (e) => /* @__PURE__ */ T(l, {
|
|
664
|
+
fallback: /* @__PURE__ */ T(R, {}),
|
|
665
|
+
children: /* @__PURE__ */ T(L, { ...e })
|
|
666
|
+
});
|
|
667
|
+
//#endregion
|
|
668
|
+
export { ue as i, I as n, de as r, z as t };
|
|
669
|
+
|
|
670
|
+
//# sourceMappingURL=LazyBackofficeEntityActionFormDialog-oRd_WHAK.js.map
|