@gen-epix/ui-client-common 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +287 -0
- package/README.md +93 -0
- package/dist/@types/environment.d.ts +7 -0
- package/dist/@types/mui.d.ts +9 -0
- package/dist/@types/ui.d.ts +4 -0
- package/dist/@types/vite-env.d.ts +3 -0
- package/dist/_chunks/ApplicationFooter.js +119 -0
- package/dist/_chunks/ApplicationFooter.js.map +1 -0
- package/dist/_chunks/Breadcrumbs.js +40 -0
- package/dist/_chunks/Breadcrumbs.js.map +1 -0
- package/dist/_chunks/CrudPage.js +535 -0
- package/dist/_chunks/CrudPage.js.map +1 -0
- package/dist/_chunks/GeoFilter.js +38 -0
- package/dist/_chunks/GeoFilter.js.map +1 -0
- package/dist/_chunks/Notifications.js +152 -0
- package/dist/_chunks/Notifications.js.map +1 -0
- package/dist/_chunks/OutageList.js +78 -0
- package/dist/_chunks/OutageList.js.map +1 -0
- package/dist/_chunks/OutageUtil.js +47 -0
- package/dist/_chunks/OutageUtil.js.map +1 -0
- package/dist/_chunks/QueryClientProvider.js +18 -0
- package/dist/_chunks/QueryClientProvider.js.map +1 -0
- package/dist/_chunks/QueryClientService.js +655 -0
- package/dist/_chunks/QueryClientService.js.map +1 -0
- package/dist/_chunks/Table.js +4565 -0
- package/dist/_chunks/Table.js.map +1 -0
- package/dist/_chunks/TableUtil.js +626 -0
- package/dist/_chunks/TableUtil.js.map +1 -0
- package/dist/_chunks/TextFilter.js +249 -0
- package/dist/_chunks/TextFilter.js.map +1 -0
- package/dist/_chunks/UserInvitationsAdminPage.js +273 -0
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -0
- package/dist/_chunks/_baseAssignValue.js +19 -0
- package/dist/_chunks/_baseAssignValue.js.map +1 -0
- package/dist/_chunks/_baseFlatten.js +27 -0
- package/dist/_chunks/_baseFlatten.js.map +1 -0
- package/dist/_chunks/_baseGet.js +280 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +275 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_baseUnset.js +37 -0
- package/dist/_chunks/_baseUnset.js.map +1 -0
- package/dist/_chunks/_cacheHas.js +65 -0
- package/dist/_chunks/_cacheHas.js.map +1 -0
- package/dist/_chunks/_setToString.js +71 -0
- package/dist/_chunks/_setToString.js.map +1 -0
- package/dist/_chunks/chunk-KS7C4IRE.js +3829 -0
- package/dist/_chunks/chunk-KS7C4IRE.js.map +1 -0
- package/dist/_chunks/format.js +1135 -0
- package/dist/_chunks/format.js.map +1 -0
- package/dist/_chunks/index.esm.js +1179 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/isArrayLike.js +255 -0
- package/dist/_chunks/isArrayLike.js.map +1 -0
- package/dist/_chunks/isObject.js +13 -0
- package/dist/_chunks/isObject.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +43 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isSymbol.js +14 -0
- package/dist/_chunks/isSymbol.js.map +1 -0
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/middleware.js +111 -0
- package/dist/_chunks/middleware.js.map +1 -0
- package/dist/_chunks/oidc-client-ts.js +1843 -0
- package/dist/_chunks/oidc-client-ts.js.map +1 -0
- package/dist/_chunks/omit.js +293 -0
- package/dist/_chunks/omit.js.map +1 -0
- package/dist/_chunks/query.js +769 -0
- package/dist/_chunks/query.js.map +1 -0
- package/dist/_chunks/react-oidc-context.js +201 -0
- package/dist/_chunks/react-oidc-context.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/rolldown-runtime.js +13 -0
- package/dist/_chunks/tableStore.js +822 -0
- package/dist/_chunks/tableStore.js.map +1 -0
- package/dist/_chunks/toDate.js +18 -0
- package/dist/_chunks/toDate.js.map +1 -0
- package/dist/_chunks/uniq.js +44 -0
- package/dist/_chunks/uniq.js.map +1 -0
- package/dist/_chunks/useColumnsMenu.js +159 -0
- package/dist/_chunks/useColumnsMenu.js.map +1 -0
- package/dist/_chunks/useMutation.js +110 -0
- package/dist/_chunks/useMutation.js.map +1 -0
- package/dist/_chunks/useQueryMemo.js +325 -0
- package/dist/_chunks/useQueryMemo.js.map +1 -0
- package/dist/_chunks/vanilla.js +20 -0
- package/dist/_chunks/vanilla.js.map +1 -0
- package/dist/_chunks/yup.js +73 -0
- package/dist/_chunks/yup.js.map +1 -0
- package/dist/classes/TableEventBus/TableEventBus.d.ts +12 -0
- package/dist/classes/TableEventBus/index.d.ts +1 -0
- package/dist/classes/TableEventBus/index.js +7 -0
- package/dist/classes/TableEventBus/index.js.map +1 -0
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +27 -0
- package/dist/classes/abstracts/FilterAbstract/index.d.ts +1 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +37 -0
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -0
- package/dist/classes/filters/BooleanFilter.d.ts +11 -0
- package/dist/classes/filters/DateFilter.d.ts +26 -0
- package/dist/classes/filters/GeoFilter.d.ts +17 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +19 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +17 -0
- package/dist/classes/filters/TextFilter.d.ts +10 -0
- package/dist/classes/filters/index.d.ts +6 -0
- package/dist/classes/filters/index.js +3 -0
- package/dist/classes/services/ApiService/ApiService.d.ts +19 -0
- package/dist/classes/services/ApiService/index.d.ts +1 -0
- package/dist/classes/services/ApiService/index.js +21 -0
- package/dist/classes/services/ApiService/index.js.map +1 -0
- package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +18 -0
- package/dist/classes/services/AuthenticationService/index.d.ts +1 -0
- package/dist/classes/services/AuthenticationService/index.js +694 -0
- package/dist/classes/services/AuthenticationService/index.js.map +1 -0
- package/dist/classes/services/AuthorizationService/AuthorizationService.d.ts +15 -0
- package/dist/classes/services/AuthorizationService/index.d.ts +1 -0
- package/dist/classes/services/AuthorizationService/index.js +36 -0
- package/dist/classes/services/AuthorizationService/index.js.map +1 -0
- package/dist/classes/services/BackendVersionService/BackendVersionService.d.ts +8 -0
- package/dist/classes/services/BackendVersionService/index.d.ts +1 -0
- package/dist/classes/services/BackendVersionService/index.js +17 -0
- package/dist/classes/services/BackendVersionService/index.js.map +1 -0
- package/dist/classes/services/BreadcrumbService/BreadcrumbService.d.ts +10 -0
- package/dist/classes/services/BreadcrumbService/index.d.ts +1 -0
- package/dist/classes/services/BreadcrumbService/index.js +50 -0
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -0
- package/dist/classes/services/ConfigService/ConfigService.d.ts +9 -0
- package/dist/classes/services/ConfigService/index.d.ts +1 -0
- package/dist/classes/services/ConfigService/index.js +21 -0
- package/dist/classes/services/ConfigService/index.js.map +1 -0
- package/dist/classes/services/EmotionCacheService/EmotionCacheService.d.ts +7 -0
- package/dist/classes/services/EmotionCacheService/index.d.ts +1 -0
- package/dist/classes/services/EmotionCacheService/index.js +24 -0
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -0
- package/dist/classes/services/FeatureFlagsService/FeatureFlagsService.d.ts +9 -0
- package/dist/classes/services/FeatureFlagsService/index.d.ts +1 -0
- package/dist/classes/services/FeatureFlagsService/index.js +21 -0
- package/dist/classes/services/FeatureFlagsService/index.js.map +1 -0
- package/dist/classes/services/I18nService/I18nService.d.ts +28 -0
- package/dist/classes/services/I18nService/index.d.ts +1 -0
- package/dist/classes/services/I18nService/index.js +67 -0
- package/dist/classes/services/I18nService/index.js.map +1 -0
- package/dist/classes/services/InactivityService/InactivityService.d.ts +25 -0
- package/dist/classes/services/InactivityService/index.d.ts +1 -0
- package/dist/classes/services/InactivityService/index.js +172 -0
- package/dist/classes/services/InactivityService/index.js.map +1 -0
- package/dist/classes/services/LogService/LogService.d.ts +22 -0
- package/dist/classes/services/LogService/index.d.ts +1 -0
- package/dist/classes/services/LogService/index.js +92 -0
- package/dist/classes/services/LogService/index.js.map +1 -0
- package/dist/classes/services/NavigationHistoryService/NavigationHistoryService.d.ts +6 -0
- package/dist/classes/services/NavigationHistoryService/index.d.ts +1 -0
- package/dist/classes/services/NavigationHistoryService/index.js +14 -0
- package/dist/classes/services/NavigationHistoryService/index.js.map +1 -0
- package/dist/classes/services/NotificationService/NotificationService.d.ts +14 -0
- package/dist/classes/services/NotificationService/index.d.ts +1 -0
- package/dist/classes/services/NotificationService/index.js +63 -0
- package/dist/classes/services/NotificationService/index.js.map +1 -0
- package/dist/classes/services/PageEventBusService/PageEventBusService.d.ts +28 -0
- package/dist/classes/services/PageEventBusService/index.d.ts +1 -0
- package/dist/classes/services/PageEventBusService/index.js +66 -0
- package/dist/classes/services/PageEventBusService/index.js.map +1 -0
- package/dist/classes/services/QueryClientService/QueryClientService.d.ts +25 -0
- package/dist/classes/services/QueryClientService/index.d.ts +1 -0
- package/dist/classes/services/QueryClientService/index.js +2 -0
- package/dist/classes/services/RouterService/RouterService.d.ts +19 -0
- package/dist/classes/services/RouterService/index.d.ts +1 -0
- package/dist/classes/services/RouterService/index.js +22 -0
- package/dist/classes/services/RouterService/index.js.map +1 -0
- package/dist/classes/services/UserSettingsService/UserSettingsService.d.ts +6 -0
- package/dist/classes/services/UserSettingsService/index.d.ts +1 -0
- package/dist/classes/services/UserSettingsService/index.js +14 -0
- package/dist/classes/services/UserSettingsService/index.js.map +1 -0
- package/dist/components/app/App/App.d.ts +1 -0
- package/dist/components/app/App/index.d.ts +1 -0
- package/dist/components/app/App/index.js +106 -0
- package/dist/components/app/App/index.js.map +1 -0
- package/dist/components/app/ApplicationBootstrap/ApplicationBootstrap.d.ts +2 -0
- package/dist/components/app/ApplicationBootstrap/index.d.ts +1 -0
- package/dist/components/app/ApplicationBootstrap/index.js +135 -0
- package/dist/components/app/ApplicationBootstrap/index.js.map +1 -0
- package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +2 -0
- package/dist/components/app/AuthenticationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthenticationWrapper/index.js +126 -0
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -0
- package/dist/components/app/AuthorizationWrapper/AuthorizationWrapper.d.ts +2 -0
- package/dist/components/app/AuthorizationWrapper/index.d.ts +1 -0
- package/dist/components/app/AuthorizationWrapper/index.js +46 -0
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -0
- package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.d.ts +1 -0
- package/dist/components/app/RouterRoot/index.js +118 -0
- package/dist/components/app/RouterRoot/index.js.map +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +9 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.d.ts +1 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js +81 -0
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -0
- package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +5 -0
- package/dist/components/filters/BooleanFilterField/index.d.ts +1 -0
- package/dist/components/filters/BooleanFilterField/index.js +23 -0
- package/dist/components/filters/BooleanFilterField/index.js.map +1 -0
- package/dist/components/filters/DateFilterField/DateFilterField.d.ts +5 -0
- package/dist/components/filters/DateFilterField/index.d.ts +1 -0
- package/dist/components/filters/DateFilterField/index.js +15 -0
- package/dist/components/filters/DateFilterField/index.js.map +1 -0
- package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +5 -0
- package/dist/components/filters/GeoFilterField/index.d.ts +1 -0
- package/dist/components/filters/GeoFilterField/index.js +20 -0
- package/dist/components/filters/GeoFilterField/index.js.map +1 -0
- package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +5 -0
- package/dist/components/filters/MultiSelectFilterField/index.d.ts +1 -0
- package/dist/components/filters/MultiSelectFilterField/index.js +19 -0
- package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -0
- package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +5 -0
- package/dist/components/filters/NumberRangeFilterField/index.d.ts +1 -0
- package/dist/components/filters/NumberRangeFilterField/index.js +14 -0
- package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -0
- package/dist/components/filters/TextFilterField/TextFilterField.d.ts +5 -0
- package/dist/components/filters/TextFilterField/index.d.ts +1 -0
- package/dist/components/filters/TextFilterField/index.js +12 -0
- package/dist/components/filters/TextFilterField/index.js.map +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +6 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/InfoMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserMenu.d.ts +7 -0
- package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/index.d.ts +1 -0
- package/dist/components/ui/ApplicationBar/index.js +661 -0
- package/dist/components/ui/ApplicationBar/index.js.map +1 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +4 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +7 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +5 -0
- package/dist/components/ui/ApplicationFooter/index.d.ts +1 -0
- package/dist/components/ui/ApplicationFooter/index.js +2 -0
- package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +5 -0
- package/dist/components/ui/BackdropSpinner/index.d.ts +1 -0
- package/dist/components/ui/BackdropSpinner/index.js +19 -0
- package/dist/components/ui/BackdropSpinner/index.js.map +1 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumb.d.ts +9 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui/Breadcrumbs/index.js +2 -0
- package/dist/components/ui/Confirmation/Confirmation.d.ts +2 -0
- package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +11 -0
- package/dist/components/ui/Confirmation/index.d.ts +2 -0
- package/dist/components/ui/Confirmation/index.js +58 -0
- package/dist/components/ui/Confirmation/index.js.map +1 -0
- package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +8 -0
- package/dist/components/ui/ConsentDialog/index.d.ts +1 -0
- package/dist/components/ui/ConsentDialog/index.js +36 -0
- package/dist/components/ui/ConsentDialog/index.js.map +1 -0
- package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +13 -0
- package/dist/components/ui/CopyToClipboardButton/index.d.ts +1 -0
- package/dist/components/ui/CopyToClipboardButton/index.js +101 -0
- package/dist/components/ui/CopyToClipboardButton/index.js.map +1 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +27 -0
- package/dist/components/ui/Dialog/index.d.ts +1 -0
- package/dist/components/ui/Dialog/index.js +83 -0
- package/dist/components/ui/Dialog/index.js.map +1 -0
- package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +5 -0
- package/dist/components/ui/GenericErrorMessage/index.d.ts +1 -0
- package/dist/components/ui/GenericErrorMessage/index.js +91 -0
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -0
- package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +7 -0
- package/dist/components/ui/LicensesDialog/index.d.ts +1 -0
- package/dist/components/ui/LicensesDialog/index.js +117 -0
- package/dist/components/ui/LicensesDialog/index.js.map +1 -0
- package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +5 -0
- package/dist/components/ui/LinearProgressWithLabel/index.d.ts +1 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js +31 -0
- package/dist/components/ui/LinearProgressWithLabel/index.js.map +1 -0
- package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +2 -0
- package/dist/components/ui/LoadingIndicator/index.d.ts +1 -0
- package/dist/components/ui/LoadingIndicator/index.js +12 -0
- package/dist/components/ui/LoadingIndicator/index.js.map +1 -0
- package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +7 -0
- package/dist/components/ui/MyPermissionsDialog/index.d.ts +1 -0
- package/dist/components/ui/MyPermissionsDialog/index.js +41 -0
- package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -0
- package/dist/components/ui/NavLink/NavLink.d.ts +7 -0
- package/dist/components/ui/NavLink/index.d.ts +1 -0
- package/dist/components/ui/NavLink/index.js +23 -0
- package/dist/components/ui/NavLink/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +18 -0
- package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +17 -0
- package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +22 -0
- package/dist/components/ui/NestedMenu/index.d.ts +4 -0
- package/dist/components/ui/NestedMenu/index.js +240 -0
- package/dist/components/ui/NestedMenu/index.js.map +1 -0
- package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +11 -0
- package/dist/components/ui/Notifications/NotificationItem.d.ts +8 -0
- package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +5 -0
- package/dist/components/ui/Notifications/NotificationsStack.d.ts +2 -0
- package/dist/components/ui/Notifications/index.d.ts +2 -0
- package/dist/components/ui/Notifications/index.js +2 -0
- package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +7 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.d.ts +1 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +123 -0
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -0
- package/dist/components/ui/OutageList/OutageItem.d.ts +9 -0
- package/dist/components/ui/OutageList/OutageList.d.ts +7 -0
- package/dist/components/ui/OutageList/OutageSection.d.ts +10 -0
- package/dist/components/ui/OutageList/index.d.ts +1 -0
- package/dist/components/ui/OutageList/index.js +2 -0
- package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +7 -0
- package/dist/components/ui/OutagesDialog/index.d.ts +1 -0
- package/dist/components/ui/OutagesDialog/index.js +43 -0
- package/dist/components/ui/OutagesDialog/index.js.map +1 -0
- package/dist/components/ui/PageContainer/PageContainer.d.ts +14 -0
- package/dist/components/ui/PageContainer/index.d.ts +1 -0
- package/dist/components/ui/PageContainer/index.js +135 -0
- package/dist/components/ui/PageContainer/index.js.map +1 -0
- package/dist/components/ui/ResponseHandler/ResponseHandler.d.ts +16 -0
- package/dist/components/ui/ResponseHandler/index.d.ts +1 -0
- package/dist/components/ui/ResponseHandler/index.js +28 -0
- package/dist/components/ui/ResponseHandler/index.js.map +1 -0
- package/dist/components/ui/Sidebar/SidebarItem.d.ts +13 -0
- package/dist/components/ui/Sidebar/SidebarMenu.d.ts +3 -0
- package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +12 -0
- package/dist/components/ui/Sidebar/index.d.ts +3 -0
- package/dist/components/ui/Sidebar/index.js +128 -0
- package/dist/components/ui/Sidebar/index.js.map +1 -0
- package/dist/components/ui/SortableList/SortableList.d.ts +14 -0
- package/dist/components/ui/SortableList/SortableListItem.d.ts +8 -0
- package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +4 -0
- package/dist/components/ui/SortableList/SortableOverlay.d.ts +2 -0
- package/dist/components/ui/SortableList/context/SortableListItemContext.d.ts +7 -0
- package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +6 -0
- package/dist/components/ui/SortableList/context/useSortableListItemContext.d.ts +1 -0
- package/dist/components/ui/Spinner/Spinner.d.ts +11 -0
- package/dist/components/ui/Spinner/index.d.ts +1 -0
- package/dist/components/ui/Spinner/index.js +63 -0
- package/dist/components/ui/Spinner/index.js.map +1 -0
- package/dist/components/ui/Stepper/Stepper.d.ts +17 -0
- package/dist/components/ui/Stepper/index.d.ts +2 -0
- package/dist/components/ui/Stepper/index.js +126 -0
- package/dist/components/ui/Stepper/index.js.map +1 -0
- package/dist/components/ui/Stepper/stepperModel.d.ts +4 -0
- package/dist/components/ui/Table/Table.d.ts +30 -0
- package/dist/components/ui/Table/TableActionsCell.d.ts +6 -0
- package/dist/components/ui/Table/TableCaption.d.ts +7 -0
- package/dist/components/ui/Table/TableCell.d.ts +27 -0
- package/dist/components/ui/Table/TableCellAsyncContent.d.ts +4 -0
- package/dist/components/ui/Table/TableCheckboxCell.d.ts +8 -0
- package/dist/components/ui/Table/TableCheckboxHeader.d.ts +5 -0
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +9 -0
- package/dist/components/ui/Table/TableFilter.d.ts +6 -0
- package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +9 -0
- package/dist/components/ui/Table/TableHeader.d.ts +8 -0
- package/dist/components/ui/Table/TableHeaderCell.d.ts +9 -0
- package/dist/components/ui/Table/TableHeaderFilter.d.ts +7 -0
- package/dist/components/ui/Table/TableMenu.d.ts +5 -0
- package/dist/components/ui/Table/TableReadableIndexCell.d.ts +8 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +5 -0
- package/dist/components/ui/Table/classNames.d.ts +8 -0
- package/dist/components/ui/Table/index.d.ts +12 -0
- package/dist/components/ui/Table/index.js +2 -0
- package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +7 -0
- package/dist/components/ui/UserFeedbackDialog/index.d.ts +1 -0
- package/dist/components/ui/UserFeedbackDialog/index.js +117 -0
- package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -0
- package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.d.ts +1 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js +40 -0
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -0
- package/dist/constants/query.d.ts +21 -0
- package/dist/constants/query.js +46 -0
- package/dist/constants/query.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +26 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/useIdentifierIssuerOwnOrganizationQuery.d.ts +5 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.d.ts +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +22 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -0
- package/dist/dataHooks/useIdentifierIssuerQuery/useIdentifierIssuerQuery.d.ts +8 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +21 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -0
- package/dist/dataHooks/useInviteUserConstraintsQuery/useInviteUserConstraintsQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +32 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/useOrganizationAdminPoliciesQuery.d.ts +7 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +13 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/useOrganizationIdentifierIssuerLinksQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js +22 -0
- package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationsQuery/useOrganizationsQuery.d.ts +6 -0
- package/dist/dataHooks/useUsersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUsersQuery/index.js +23 -0
- package/dist/dataHooks/useUsersQuery/index.js.map +1 -0
- package/dist/dataHooks/useUsersQuery/useUsersQuery.d.ts +6 -0
- package/dist/hoc/withDialog/index.d.ts +1 -0
- package/dist/hoc/withDialog/index.js +69 -0
- package/dist/hoc/withDialog/index.js.map +1 -0
- package/dist/hoc/withDialog/withDialog.d.ts +33 -0
- package/dist/hoc/withPermissions/index.d.ts +1 -0
- package/dist/hoc/withPermissions/index.js +21 -0
- package/dist/hoc/withPermissions/index.js.map +1 -0
- package/dist/hoc/withPermissions/withPermissions.d.ts +10 -0
- package/dist/hooks/useColumnsMenu/index.d.ts +1 -0
- package/dist/hooks/useColumnsMenu/index.js +2 -0
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +6 -0
- package/dist/hooks/useCreateMutation/index.d.ts +1 -0
- package/dist/hooks/useCreateMutation/index.js +50 -0
- package/dist/hooks/useCreateMutation/index.js.map +1 -0
- package/dist/hooks/useCreateMutation/useCreateMutation.d.ts +21 -0
- package/dist/hooks/useDeleteMutation/index.d.ts +1 -0
- package/dist/hooks/useDeleteMutation/index.js +41 -0
- package/dist/hooks/useDeleteMutation/index.js.map +1 -0
- package/dist/hooks/useDeleteMutation/useDeleteMutation.d.ts +20 -0
- package/dist/hooks/useEditMutation/index.d.ts +1 -0
- package/dist/hooks/useEditMutation/index.js +57 -0
- package/dist/hooks/useEditMutation/index.js.map +1 -0
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +23 -0
- package/dist/hooks/useInitializeTableStore/index.d.ts +1 -0
- package/dist/hooks/useInitializeTableStore/index.js +28 -0
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -0
- package/dist/hooks/useInitializeTableStore/useInitializeTableStore.d.ts +11 -0
- package/dist/hooks/useItemQuery/index.d.ts +1 -0
- package/dist/hooks/useItemQuery/index.js +61 -0
- package/dist/hooks/useItemQuery/index.js.map +1 -0
- package/dist/hooks/useItemQuery/useItemQuery.d.ts +15 -0
- package/dist/hooks/useQueryMemo/index.d.ts +1 -0
- package/dist/hooks/useQueryMemo/index.js +2 -0
- package/dist/hooks/useQueryMemo/useQueryMemo.d.ts +2 -0
- package/dist/hooks/useUpdateBreadcrumb/index.d.ts +1 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js +15 -0
- package/dist/hooks/useUpdateBreadcrumb/index.js.map +1 -0
- package/dist/hooks/useUpdateBreadcrumb/useUpdateBreadcrumb.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.d.ts +1 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js +12 -0
- package/dist/hooks/useUpdateDocumentTitle/index.js.map +1 -0
- package/dist/hooks/useUpdateDocumentTitle/useUpdateDocumentTitle.d.ts +1 -0
- package/dist/locale/en.json +294 -0
- package/dist/locale/nl.json +294 -0
- package/dist/models/admin.d.ts +7 -0
- package/dist/models/admin.js +8 -0
- package/dist/models/admin.js.map +1 -0
- package/dist/models/api.d.ts +9 -0
- package/dist/models/api.js +0 -0
- package/dist/models/auth.d.ts +11 -0
- package/dist/models/auth.js +0 -0
- package/dist/models/config.d.ts +77 -0
- package/dist/models/config.js +0 -0
- package/dist/models/data.d.ts +10 -0
- package/dist/models/data.js +0 -0
- package/dist/models/dataHooks.d.ts +17 -0
- package/dist/models/dataHooks.js +0 -0
- package/dist/models/filter.d.ts +34 -0
- package/dist/models/filter.js +0 -0
- package/dist/models/nestedMenu.d.ts +17 -0
- package/dist/models/nestedMenu.js +0 -0
- package/dist/models/notification.d.ts +11 -0
- package/dist/models/notification.js +0 -0
- package/dist/models/outage.d.ts +6 -0
- package/dist/models/outage.js +0 -0
- package/dist/models/reactRouter.d.ts +25 -0
- package/dist/models/reactRouter.js +0 -0
- package/dist/models/table.d.ts +149 -0
- package/dist/models/table.js +10 -0
- package/dist/models/table.js.map +1 -0
- package/dist/models/theme.d.ts +17 -0
- package/dist/models/theme.js +0 -0
- package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.d.ts +1 -0
- package/dist/pages/AcceptInvitationPage/index.js +61 -0
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -0
- package/dist/pages/AdminPage/AdminPage.d.ts +1 -0
- package/dist/pages/AdminPage/index.d.ts +1 -0
- package/dist/pages/AdminPage/index.js +83 -0
- package/dist/pages/AdminPage/index.js.map +1 -0
- package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +5 -0
- package/dist/pages/ChooseIdentityProviderPage/index.d.ts +1 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js +85 -0
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -0
- package/dist/pages/CrudPage/CrudPage.d.ts +75 -0
- package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +12 -0
- package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +23 -0
- package/dist/pages/CrudPage/index.d.ts +1 -0
- package/dist/pages/CrudPage/index.js +2 -0
- package/dist/pages/ErrorPage/ErrorPage.d.ts +4 -0
- package/dist/pages/ErrorPage/index.d.ts +1 -0
- package/dist/pages/ErrorPage/index.js +19 -0
- package/dist/pages/ErrorPage/index.js.map +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.d.ts +1 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js +69 -0
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +98 -0
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js +86 -0
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js +68 -0
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationsAdminPage/index.js +132 -0
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -0
- package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.d.ts +1 -0
- package/dist/pages/OutagesAdminPage/index.js +133 -0
- package/dist/pages/OutagesAdminPage/index.js.map +1 -0
- package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.d.ts +1 -0
- package/dist/pages/PostLoginPage/index.js +26 -0
- package/dist/pages/PostLoginPage/index.js.map +1 -0
- package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.d.ts +1 -0
- package/dist/pages/PostLogoutPage/index.js +32 -0
- package/dist/pages/PostLogoutPage/index.js.map +1 -0
- package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.d.ts +1 -0
- package/dist/pages/RouterErrorPage/index.js +20 -0
- package/dist/pages/RouterErrorPage/index.js.map +1 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +9 -0
- package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.d.ts +1 -0
- package/dist/pages/UserInvitationsAdminPage/index.js +2 -0
- package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +7 -0
- package/dist/pages/UsersAdminPage/index.d.ts +1 -0
- package/dist/pages/UsersAdminPage/index.js +206 -0
- package/dist/pages/UsersAdminPage/index.js.map +1 -0
- package/dist/routes/adminRoutes.d.ts +9 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +258 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/routes.d.ts +8 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +9 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/stores/oidcStore/index.d.ts +1 -0
- package/dist/stores/oidcStore/index.js +18 -0
- package/dist/stores/oidcStore/index.js.map +1 -0
- package/dist/stores/oidcStore/oidcStore.d.ts +22 -0
- package/dist/stores/outagesStore/index.d.ts +1 -0
- package/dist/stores/outagesStore/index.js +16 -0
- package/dist/stores/outagesStore/index.js.map +1 -0
- package/dist/stores/outagesStore/outagesStore.d.ts +12 -0
- package/dist/stores/tableStore/TableStoreContext.d.ts +3 -0
- package/dist/stores/tableStore/TableStoreContextProvider.d.ts +7 -0
- package/dist/stores/tableStore/index.d.ts +4 -0
- package/dist/stores/tableStore/index.js +2 -0
- package/dist/stores/tableStore/tableStore.d.ts +102 -0
- package/dist/stores/tableStore/useTableStoreContext.d.ts +3 -0
- package/dist/test/lib/index.d.ts +1 -0
- package/dist/test/lib/render.d.ts +2 -0
- package/dist/theme/demoTheme/demoTheme.d.ts +3 -0
- package/dist/theme/demoTheme/index.d.ts +1 -0
- package/dist/theme/demoTheme/index.js +337 -0
- package/dist/theme/demoTheme/index.js.map +1 -0
- package/dist/utils/AxiosUtil/AxiosUtil.d.ts +13 -0
- package/dist/utils/AxiosUtil/index.d.ts +1 -0
- package/dist/utils/AxiosUtil/index.js +38 -0
- package/dist/utils/AxiosUtil/index.js.map +1 -0
- package/dist/utils/DataHookUtil/DataHookUtil.d.ts +8 -0
- package/dist/utils/DataHookUtil/index.d.ts +1 -0
- package/dist/utils/DataHookUtil/index.js +77 -0
- package/dist/utils/DataHookUtil/index.js.map +1 -0
- package/dist/utils/LoadableUtil/LoadableUtil.d.ts +9 -0
- package/dist/utils/LoadableUtil/index.d.ts +1 -0
- package/dist/utils/LoadableUtil/index.js +25 -0
- package/dist/utils/LoadableUtil/index.js.map +1 -0
- package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +5 -0
- package/dist/utils/MenuDataUtil/index.d.ts +1 -0
- package/dist/utils/MenuDataUtil/index.js +19 -0
- package/dist/utils/MenuDataUtil/index.js.map +1 -0
- package/dist/utils/NotificationUtil/NotificationUtil.d.ts +4 -0
- package/dist/utils/NotificationUtil/index.d.ts +1 -0
- package/dist/utils/NotificationUtil/index.js +12 -0
- package/dist/utils/NotificationUtil/index.js.map +1 -0
- package/dist/utils/OutageUtil/OutageUtil.d.ts +5 -0
- package/dist/utils/OutageUtil/index.d.ts +1 -0
- package/dist/utils/OutageUtil/index.js +2 -0
- package/dist/utils/StandardConfigUtil/StandardConfigUtil.d.ts +4 -0
- package/dist/utils/StandardConfigUtil/index.d.ts +1 -0
- package/dist/utils/StandardConfigUtil/index.js +76 -0
- package/dist/utils/StandardConfigUtil/index.js.map +1 -0
- package/dist/utils/TableUtil/TableUtil.d.ts +90 -0
- package/dist/utils/TableUtil/index.d.ts +1 -0
- package/dist/utils/TableUtil/index.js +2 -0
- package/dist/utils/TimeUtil/TimeUtil.d.ts +3 -0
- package/dist/utils/TimeUtil/index.d.ts +1 -0
- package/dist/utils/TimeUtil/index.js +19 -0
- package/dist/utils/TimeUtil/index.js.map +1 -0
- package/dist/utils/UserManagerUtil/UserManagerUtil.d.ts +6 -0
- package/dist/utils/UserManagerUtil/index.d.ts +1 -0
- package/dist/utils/UserManagerUtil/index.js +31 -0
- package/dist/utils/UserManagerUtil/index.js.map +1 -0
- package/dist/utils/UserUtil/UserUtil.d.ts +5 -0
- package/dist/utils/UserUtil/index.d.ts +1 -0
- package/dist/utils/UserUtil/index.js +10 -0
- package/dist/utils/UserUtil/index.js.map +1 -0
- package/package.json +585 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
import { n as e, t } from "./rolldown-runtime.js";
|
|
2
|
+
import { a as n, i as r, n as i, t as a } from "./toDate.js";
|
|
3
|
+
import { t as o } from "./format.js";
|
|
4
|
+
import { c as s, l as c, n as l, o as u, r as d, s as f, t as p } from "./TextFilter.js";
|
|
5
|
+
import { t as m } from "./isSymbol.js";
|
|
6
|
+
import { a as h, f as g, i as _ } from "./isArrayLike.js";
|
|
7
|
+
import { i as v, n as y, r as b, t as ee } from "./_cacheHas.js";
|
|
8
|
+
import { t as x } from "./_baseFlatten.js";
|
|
9
|
+
import { t as S } from "./_baseIteratee.js";
|
|
10
|
+
import { DEFAULT_FILTER_GROUP as C, FILTER_MODE as w } from "../classes/abstracts/FilterAbstract/index.js";
|
|
11
|
+
import { FIXED_COLUMN_ID as T, TABLE_COLUMN_FROZEN as E } from "../models/table.js";
|
|
12
|
+
import { ConfigService as D } from "../classes/services/ConfigService/index.js";
|
|
13
|
+
import { StringUtil as O } from "@gen-epix/ui-core/utils/StringUtil";
|
|
14
|
+
import { DATE_FORMAT as k } from "@gen-epix/ui-core/constants/date";
|
|
15
|
+
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/parseISO.js
|
|
16
|
+
function A(e, t) {
|
|
17
|
+
let n = () => i(t?.in, NaN), r = t?.additionalDigits ?? 2, o = M(e), s;
|
|
18
|
+
if (o.date) {
|
|
19
|
+
let e = N(o.date, r);
|
|
20
|
+
s = P(e.restDateString, e.year);
|
|
21
|
+
}
|
|
22
|
+
if (!s || isNaN(+s)) return n();
|
|
23
|
+
let c = +s, l = 0, u;
|
|
24
|
+
if (o.time && (l = I(o.time), isNaN(l))) return n();
|
|
25
|
+
if (o.timezone) {
|
|
26
|
+
if (u = R(o.timezone), isNaN(u)) return n();
|
|
27
|
+
} else {
|
|
28
|
+
let e = new Date(c + l), n = a(0, t?.in);
|
|
29
|
+
return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
|
|
30
|
+
}
|
|
31
|
+
return a(c + l + u, t?.in);
|
|
32
|
+
}
|
|
33
|
+
var j = {
|
|
34
|
+
dateTimeDelimiter: /[T ]/,
|
|
35
|
+
timeZoneDelimiter: /[Z ]/i,
|
|
36
|
+
timezone: /([Z+-].*)$/
|
|
37
|
+
}, te = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ne = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, re = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
38
|
+
function M(e) {
|
|
39
|
+
let t = {}, n = e.split(j.dateTimeDelimiter), r;
|
|
40
|
+
if (n.length > 2) return t;
|
|
41
|
+
if (/:/.test(n[0]) ? r = n[0] : (t.date = n[0], r = n[1], j.timeZoneDelimiter.test(t.date) && (t.date = e.split(j.timeZoneDelimiter)[0], r = e.substr(t.date.length, e.length))), r) {
|
|
42
|
+
let e = j.timezone.exec(r);
|
|
43
|
+
e ? (t.time = r.replace(e[1], ""), t.timezone = e[1]) : t.time = r;
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
function N(e, t) {
|
|
48
|
+
let n = RegExp("^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"), r = e.match(n);
|
|
49
|
+
if (!r) return {
|
|
50
|
+
year: NaN,
|
|
51
|
+
restDateString: ""
|
|
52
|
+
};
|
|
53
|
+
let i = r[1] ? parseInt(r[1]) : null, a = r[2] ? parseInt(r[2]) : null;
|
|
54
|
+
return {
|
|
55
|
+
year: a === null ? i : a * 100,
|
|
56
|
+
restDateString: e.slice((r[1] || r[2]).length)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function P(e, t) {
|
|
60
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
61
|
+
let n = e.match(te);
|
|
62
|
+
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
63
|
+
let r = !!n[4], i = F(n[1]), a = F(n[2]) - 1, o = F(n[3]), s = F(n[4]), c = F(n[5]) - 1;
|
|
64
|
+
if (r) return W(t, s, c) ? z(t, s, c) : /* @__PURE__ */ new Date(NaN);
|
|
65
|
+
{
|
|
66
|
+
let e = /* @__PURE__ */ new Date(0);
|
|
67
|
+
return !H(t, a, o) || !U(t, i) ? /* @__PURE__ */ new Date(NaN) : (e.setUTCFullYear(t, a, Math.max(i, o)), e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function F(e) {
|
|
71
|
+
return e ? parseInt(e) : 1;
|
|
72
|
+
}
|
|
73
|
+
function I(e) {
|
|
74
|
+
let t = e.match(ne);
|
|
75
|
+
if (!t) return NaN;
|
|
76
|
+
let i = L(t[1]), a = L(t[2]), o = L(t[3]);
|
|
77
|
+
return G(i, a, o) ? i * r + a * n + o * 1e3 : NaN;
|
|
78
|
+
}
|
|
79
|
+
function L(e) {
|
|
80
|
+
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
81
|
+
}
|
|
82
|
+
function R(e) {
|
|
83
|
+
if (e === "Z") return 0;
|
|
84
|
+
let t = e.match(re);
|
|
85
|
+
if (!t) return 0;
|
|
86
|
+
let i = t[1] === "+" ? -1 : 1, a = parseInt(t[2]), o = t[3] && parseInt(t[3]) || 0;
|
|
87
|
+
return K(a, o) ? i * (a * r + o * n) : NaN;
|
|
88
|
+
}
|
|
89
|
+
function z(e, t, n) {
|
|
90
|
+
let r = /* @__PURE__ */ new Date(0);
|
|
91
|
+
r.setUTCFullYear(e, 0, 4);
|
|
92
|
+
let i = r.getUTCDay() || 7, a = (t - 1) * 7 + n + 1 - i;
|
|
93
|
+
return r.setUTCDate(r.getUTCDate() + a), r;
|
|
94
|
+
}
|
|
95
|
+
var B = [
|
|
96
|
+
31,
|
|
97
|
+
null,
|
|
98
|
+
31,
|
|
99
|
+
30,
|
|
100
|
+
31,
|
|
101
|
+
30,
|
|
102
|
+
31,
|
|
103
|
+
31,
|
|
104
|
+
30,
|
|
105
|
+
31,
|
|
106
|
+
30,
|
|
107
|
+
31
|
|
108
|
+
];
|
|
109
|
+
function V(e) {
|
|
110
|
+
return e % 400 == 0 || e % 4 == 0 && e % 100 != 0;
|
|
111
|
+
}
|
|
112
|
+
function H(e, t, n) {
|
|
113
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (B[t] || (V(e) ? 29 : 28));
|
|
114
|
+
}
|
|
115
|
+
function U(e, t) {
|
|
116
|
+
return t >= 1 && t <= (V(e) ? 366 : 365);
|
|
117
|
+
}
|
|
118
|
+
function W(e, t, n) {
|
|
119
|
+
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
120
|
+
}
|
|
121
|
+
function G(e, t, n) {
|
|
122
|
+
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
123
|
+
}
|
|
124
|
+
function K(e, t) {
|
|
125
|
+
return t >= 0 && t <= 59;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseExtremum.js
|
|
129
|
+
var q = /* @__PURE__ */ t(((e, t) => {
|
|
130
|
+
var n = m();
|
|
131
|
+
function r(e, t, r) {
|
|
132
|
+
for (var i = -1, a = e.length; ++i < a;) {
|
|
133
|
+
var o = e[i], s = t(o);
|
|
134
|
+
if (s != null && (c === void 0 ? s === s && !n(s) : r(s, c))) var c = s, l = o;
|
|
135
|
+
}
|
|
136
|
+
return l;
|
|
137
|
+
}
|
|
138
|
+
t.exports = r;
|
|
139
|
+
})), J = /* @__PURE__ */ t(((e, t) => {
|
|
140
|
+
function n(e, t) {
|
|
141
|
+
return e < t;
|
|
142
|
+
}
|
|
143
|
+
t.exports = n;
|
|
144
|
+
})), Y = /* @__PURE__ */ t(((e, t) => {
|
|
145
|
+
var n = q(), r = J(), i = g();
|
|
146
|
+
function a(e) {
|
|
147
|
+
return e && e.length ? n(e, i, r) : void 0;
|
|
148
|
+
}
|
|
149
|
+
t.exports = a;
|
|
150
|
+
})), ie = /* @__PURE__ */ t(((e, t) => {
|
|
151
|
+
function n(e, t) {
|
|
152
|
+
return e > t;
|
|
153
|
+
}
|
|
154
|
+
t.exports = n;
|
|
155
|
+
})), ae = /* @__PURE__ */ t(((e, t) => {
|
|
156
|
+
var n = q(), r = ie(), i = g();
|
|
157
|
+
function a(e) {
|
|
158
|
+
return e && e.length ? n(e, i, r) : void 0;
|
|
159
|
+
}
|
|
160
|
+
t.exports = a;
|
|
161
|
+
})), oe = /* @__PURE__ */ t(((e, t) => {
|
|
162
|
+
var n = v(), r = b(), i = y(), a = h(), o = _(), s = ee(), c = 200;
|
|
163
|
+
function l(e, t, l, u) {
|
|
164
|
+
var d = -1, f = r, p = !0, m = e.length, h = [], g = t.length;
|
|
165
|
+
if (!m) return h;
|
|
166
|
+
l && (t = a(t, o(l))), u ? (f = i, p = !1) : t.length >= c && (f = s, p = !1, t = new n(t));
|
|
167
|
+
outer: for (; ++d < m;) {
|
|
168
|
+
var _ = e[d], v = l == null ? _ : l(_);
|
|
169
|
+
if (_ = u || _ !== 0 ? _ : 0, p && v === v) {
|
|
170
|
+
for (var y = g; y--;) if (t[y] === v) continue outer;
|
|
171
|
+
h.push(_);
|
|
172
|
+
} else f(t, v, u) || h.push(_);
|
|
173
|
+
}
|
|
174
|
+
return h;
|
|
175
|
+
}
|
|
176
|
+
t.exports = l;
|
|
177
|
+
})), se = /* @__PURE__ */ t(((e, t) => {
|
|
178
|
+
var n = oe(), r = x(), i = c(), a = s();
|
|
179
|
+
t.exports = i(function(e, t) {
|
|
180
|
+
return a(e) ? n(e, r(t, 1, a, !0)) : [];
|
|
181
|
+
});
|
|
182
|
+
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
183
|
+
function n(e, t) {
|
|
184
|
+
for (var n, r = -1, i = e.length; ++r < i;) {
|
|
185
|
+
var a = t(e[r]);
|
|
186
|
+
a !== void 0 && (n = n === void 0 ? a : n + a);
|
|
187
|
+
}
|
|
188
|
+
return n;
|
|
189
|
+
}
|
|
190
|
+
t.exports = n;
|
|
191
|
+
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
192
|
+
var n = S(), r = X();
|
|
193
|
+
function i(e, t) {
|
|
194
|
+
return e && e.length ? r(e, n(t, 2)) : 0;
|
|
195
|
+
}
|
|
196
|
+
t.exports = i;
|
|
197
|
+
})), Q = /* @__PURE__ */ e(Y(), 1), ce = /* @__PURE__ */ e(ae(), 1), le = /* @__PURE__ */ e(se(), 1), $ = /* @__PURE__ */ e(Z(), 1), ue = class e {
|
|
198
|
+
static areColumnVisualSettingsValid(e, t) {
|
|
199
|
+
if (!t?.length) return !1;
|
|
200
|
+
let n = e?.map((e) => e.id), r = t?.map((e) => e.id);
|
|
201
|
+
return n.length === r.length && (0, le.default)(n, r).length === 0;
|
|
202
|
+
}
|
|
203
|
+
static createActionsColumn(e) {
|
|
204
|
+
return {
|
|
205
|
+
columnContext: e.columnContext,
|
|
206
|
+
frozen: E.RIGHT,
|
|
207
|
+
getActions: e.getActions,
|
|
208
|
+
headerName: e.t`Actions`,
|
|
209
|
+
id: T.ACTIONS,
|
|
210
|
+
isInitiallyVisible: !0,
|
|
211
|
+
resizable: !1,
|
|
212
|
+
type: "actions",
|
|
213
|
+
widthPx: 48
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
static createBooleanCellRowComperator({ column: t, dataContext: n, direction: r }) {
|
|
217
|
+
return (i, a) => {
|
|
218
|
+
let o = +!!e.getTableBooleanCellValue({
|
|
219
|
+
column: t,
|
|
220
|
+
dataContext: n,
|
|
221
|
+
row: i,
|
|
222
|
+
rowIndex: 0
|
|
223
|
+
}), s = +!!e.getTableBooleanCellValue({
|
|
224
|
+
column: t,
|
|
225
|
+
dataContext: n,
|
|
226
|
+
row: a,
|
|
227
|
+
rowIndex: 0
|
|
228
|
+
});
|
|
229
|
+
return r === "asc" ? o - s : s - o;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
static createBooleanColumn(t) {
|
|
233
|
+
return {
|
|
234
|
+
columnContext: t.columnContext,
|
|
235
|
+
comparatorFactory: e.createBooleanCellRowComperator,
|
|
236
|
+
filterLabel: t.filterLabel,
|
|
237
|
+
headerName: t.name,
|
|
238
|
+
id: t.id,
|
|
239
|
+
isInitiallyVisible: !0,
|
|
240
|
+
type: "boolean",
|
|
241
|
+
widthFlex: t.flex ?? .25
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
static createCondensedVisualColumnSettingsFromColumnSettings(t, n) {
|
|
245
|
+
let r = JSON.parse(JSON.stringify(n));
|
|
246
|
+
r.forEach((e) => {
|
|
247
|
+
t.find((t) => t.id === e.id)?.cellColorGetter && (e.widthPx = D.getInstance().config.table.CONDENSED_WIDTH_PX, e.isVisible = !0);
|
|
248
|
+
});
|
|
249
|
+
let i = t.filter((e) => e.frozen === E.LEFT).map((e) => e.id), a = t.filter((e) => e.cellColorGetter && !e.frozen).map((e) => e.id), o = -1;
|
|
250
|
+
for (let e = 0; e < r.length; ++e) i.includes(r[e].id) && (o = e);
|
|
251
|
+
return o++, a.forEach((n) => {
|
|
252
|
+
let i = r.findIndex((e) => e.id === n);
|
|
253
|
+
if (i !== -1) {
|
|
254
|
+
for (; i > o;) {
|
|
255
|
+
let a = t.find((e) => e.id === n);
|
|
256
|
+
if (!a) break;
|
|
257
|
+
e.handleMoveColumn([], r, t, a, -1), i--;
|
|
258
|
+
}
|
|
259
|
+
for (; i < o;) {
|
|
260
|
+
let a = t.find((e) => e.id === n);
|
|
261
|
+
if (!a) break;
|
|
262
|
+
e.handleMoveColumn([], r, t, a, 1), i++;
|
|
263
|
+
}
|
|
264
|
+
o++;
|
|
265
|
+
}
|
|
266
|
+
}), r;
|
|
267
|
+
}
|
|
268
|
+
static createDateCellRowComperator({ column: e, direction: t }) {
|
|
269
|
+
return (n, r) => {
|
|
270
|
+
let i = n[e.id], a = r[e.id];
|
|
271
|
+
return i === a ? 0 : i && !a ? t === "asc" ? 1 : -1 : a && !i ? t === "asc" ? -1 : 1 : i > a ? t === "asc" ? 1 : -1 : t === "asc" ? -1 : 1;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
static createDateColumn(t) {
|
|
275
|
+
return {
|
|
276
|
+
columnContext: t.columnContext,
|
|
277
|
+
comparatorFactory: e.createDateCellRowComperator,
|
|
278
|
+
dateFormat: t.dateFormat ?? k.DATE,
|
|
279
|
+
filterLabel: t.filterLabel,
|
|
280
|
+
headerName: t.name,
|
|
281
|
+
id: t.id,
|
|
282
|
+
isInitiallyVisible: !0,
|
|
283
|
+
type: "date",
|
|
284
|
+
widthFlex: t.flex ?? .5
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
static createFiltersFromColumns(e, t, n) {
|
|
288
|
+
if (!e?.length || !t?.length) return [];
|
|
289
|
+
let r = [];
|
|
290
|
+
e.forEach((e) => {
|
|
291
|
+
if (!e.hideInFilter) {
|
|
292
|
+
if (e.type === "text") r.push(new p({
|
|
293
|
+
filterMode: w.FRONTEND,
|
|
294
|
+
filterPriority: C,
|
|
295
|
+
id: e.id,
|
|
296
|
+
label: e.filterLabel ?? e.headerName
|
|
297
|
+
}));
|
|
298
|
+
else if (e.type === "boolean") r.push(new f({
|
|
299
|
+
filterMode: w.FRONTEND,
|
|
300
|
+
filterPriority: C,
|
|
301
|
+
id: e.id,
|
|
302
|
+
label: e.filterLabel ?? e.headerName
|
|
303
|
+
}));
|
|
304
|
+
else if (e.type === "number") {
|
|
305
|
+
let n = t.map((t) => t[e.id]);
|
|
306
|
+
r.push(new l({
|
|
307
|
+
filterMode: w.FRONTEND,
|
|
308
|
+
filterPriority: C,
|
|
309
|
+
id: e.id,
|
|
310
|
+
label: e.filterLabel ?? e.headerName,
|
|
311
|
+
max: (0, ce.default)(n),
|
|
312
|
+
min: (0, Q.default)(n)
|
|
313
|
+
}));
|
|
314
|
+
} else if (e.type === "options") {
|
|
315
|
+
let i;
|
|
316
|
+
if (e.shouldFilterOptions) {
|
|
317
|
+
let r = t.map((t, r) => {
|
|
318
|
+
let i = e.valueGetter ? e.valueGetter({
|
|
319
|
+
column: e,
|
|
320
|
+
dataContext: n,
|
|
321
|
+
id: e.id,
|
|
322
|
+
row: t,
|
|
323
|
+
rowIndex: r
|
|
324
|
+
}) : t[e.id];
|
|
325
|
+
return Array.isArray(i) ? i : [i];
|
|
326
|
+
}).flat();
|
|
327
|
+
i = e.options.filter((e) => r.includes(e.value));
|
|
328
|
+
} else i = e.options;
|
|
329
|
+
r.push(new d({
|
|
330
|
+
filterMode: w.FRONTEND,
|
|
331
|
+
filterPriority: C,
|
|
332
|
+
id: e.id,
|
|
333
|
+
label: e.filterLabel ?? e.headerName,
|
|
334
|
+
maxNumOptionsExpanded: e.maxNumOptionsExpanded,
|
|
335
|
+
options: i
|
|
336
|
+
}));
|
|
337
|
+
} else if (e.type === "date") {
|
|
338
|
+
let n = t.map((t) => t[e.id]).filter((e) => !!e).map((e) => A(e)), i = new Date(Math.min.apply(null, n)), a = new Date(Math.max.apply(null, n));
|
|
339
|
+
return r.push(new u({
|
|
340
|
+
dateFormat: e.dateFormat ?? k.DATE,
|
|
341
|
+
dateParser: A,
|
|
342
|
+
filterMode: w.FRONTEND,
|
|
343
|
+
filterPriority: C,
|
|
344
|
+
id: e.id,
|
|
345
|
+
label: e.filterLabel ?? e.headerName,
|
|
346
|
+
maxDate: a,
|
|
347
|
+
minDate: i
|
|
348
|
+
}));
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
let i = new URL(document.location.href).searchParams;
|
|
353
|
+
return r.forEach((e) => {
|
|
354
|
+
let t = i.get(e.id);
|
|
355
|
+
t && e.setFilterValue(e.fromURLSearchParameterValue(t));
|
|
356
|
+
}), r;
|
|
357
|
+
}
|
|
358
|
+
static createInitialVisualColumnSettings(e) {
|
|
359
|
+
return e.map((e) => ({
|
|
360
|
+
id: e.id,
|
|
361
|
+
isVisible: e.isInitiallyVisible,
|
|
362
|
+
label: e.headerName,
|
|
363
|
+
widthFlex: e.widthFlex,
|
|
364
|
+
widthPx: e.widthPx,
|
|
365
|
+
widthPxFn: e.widthPxFn
|
|
366
|
+
}));
|
|
367
|
+
}
|
|
368
|
+
static createNumberCellRowComperator({ column: t, dataContext: n, direction: r }) {
|
|
369
|
+
return (i, a) => {
|
|
370
|
+
let o = e.getTableNumberCellValue({
|
|
371
|
+
column: t,
|
|
372
|
+
dataContext: n,
|
|
373
|
+
row: i,
|
|
374
|
+
rowIndex: 0
|
|
375
|
+
}), s = e.getTableNumberCellValue({
|
|
376
|
+
column: t,
|
|
377
|
+
dataContext: n,
|
|
378
|
+
row: a,
|
|
379
|
+
rowIndex: 0
|
|
380
|
+
});
|
|
381
|
+
return r === "asc" ? o - s : s - o;
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
static createNumberColumn(t) {
|
|
385
|
+
return {
|
|
386
|
+
columnContext: t.columnContext,
|
|
387
|
+
comparatorFactory: e.createNumberCellRowComperator,
|
|
388
|
+
filterLabel: t.filterLabel,
|
|
389
|
+
headerName: t.name,
|
|
390
|
+
id: t.id,
|
|
391
|
+
isInitiallyVisible: !0,
|
|
392
|
+
textAlign: "right",
|
|
393
|
+
type: "number",
|
|
394
|
+
widthFlex: t.flex ?? 1
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
static createOptionsCellRowComperator({ column: t, dataContext: n, direction: r }) {
|
|
398
|
+
return (i, a) => {
|
|
399
|
+
let o = e.getTableOptionsCellValue({
|
|
400
|
+
column: t,
|
|
401
|
+
dataContext: n,
|
|
402
|
+
row: i,
|
|
403
|
+
rowIndex: 0
|
|
404
|
+
}), s = e.getTableOptionsCellValue({
|
|
405
|
+
column: t,
|
|
406
|
+
dataContext: n,
|
|
407
|
+
row: a,
|
|
408
|
+
rowIndex: 0
|
|
409
|
+
}), c = (Array.isArray(o) ? o.join(", ") : o) ?? "", l = (Array.isArray(s) ? s.join(", ") : s) ?? "";
|
|
410
|
+
return r === "asc" ? c.localeCompare(l) : l.localeCompare(c);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
static createOptionsColumn(t) {
|
|
414
|
+
return {
|
|
415
|
+
columnContext: t.columnContext,
|
|
416
|
+
comparatorFactory: e.createOptionsCellRowComperator,
|
|
417
|
+
filterLabel: t.filterLabel,
|
|
418
|
+
headerName: t.name,
|
|
419
|
+
id: t.id,
|
|
420
|
+
isInitiallyVisible: !0,
|
|
421
|
+
maxNumOptionsExpanded: t.maxNumOptionsExpanded ?? 5,
|
|
422
|
+
options: t.options,
|
|
423
|
+
shouldFilterOptions: t.shouldFilterOptions,
|
|
424
|
+
type: "options",
|
|
425
|
+
widthFlex: t.flex ?? 1
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
static createReadableIndexColumn(e = {}) {
|
|
429
|
+
return {
|
|
430
|
+
columnContext: e.columnContext,
|
|
431
|
+
disableEllipsis: !0,
|
|
432
|
+
frozen: E.LEFT,
|
|
433
|
+
getAriaLabel: e.getAriaLabel ?? (() => null),
|
|
434
|
+
headerName: "",
|
|
435
|
+
id: T.READABLE_INDEX,
|
|
436
|
+
isInitiallyVisible: !0,
|
|
437
|
+
resizable: !1,
|
|
438
|
+
textAlign: "right",
|
|
439
|
+
type: "readableIndex",
|
|
440
|
+
widthPxFn: (e) => e.toString().length * 10 + 16
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
static createSelectableColumn(e = {}) {
|
|
444
|
+
return {
|
|
445
|
+
columnContext: e.columnContext,
|
|
446
|
+
disableEllipsis: !0,
|
|
447
|
+
frozen: E.LEFT,
|
|
448
|
+
id: T.ROW_SELECT,
|
|
449
|
+
isDisabled: e.isDisabled,
|
|
450
|
+
isInitiallyVisible: !0,
|
|
451
|
+
resizable: !1,
|
|
452
|
+
type: "selectable",
|
|
453
|
+
widthPx: 38
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
static createTextCellRowAdvancedComperator({ column: t, dataContext: n, direction: r }) {
|
|
457
|
+
return (i, a) => {
|
|
458
|
+
let o = e.getTableTextCellValue({
|
|
459
|
+
column: t,
|
|
460
|
+
dataContext: n,
|
|
461
|
+
row: i,
|
|
462
|
+
rowIndex: 0
|
|
463
|
+
}), s = e.getTableTextCellValue({
|
|
464
|
+
column: t,
|
|
465
|
+
dataContext: n,
|
|
466
|
+
row: a,
|
|
467
|
+
rowIndex: 0
|
|
468
|
+
}), c = O.advancedSortComperator(o ?? "", s ?? "");
|
|
469
|
+
return r === "asc" ? c : -c;
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
static createTextCellRowComperator({ column: t, dataContext: n, direction: r }) {
|
|
473
|
+
return (i, a) => {
|
|
474
|
+
let o = e.getTableTextCellValue({
|
|
475
|
+
column: t,
|
|
476
|
+
dataContext: n,
|
|
477
|
+
row: i,
|
|
478
|
+
rowIndex: 0
|
|
479
|
+
}), s = e.getTableTextCellValue({
|
|
480
|
+
column: t,
|
|
481
|
+
dataContext: n,
|
|
482
|
+
row: a,
|
|
483
|
+
rowIndex: 0
|
|
484
|
+
}), c = (o ?? "").localeCompare(s ?? "");
|
|
485
|
+
return r === "asc" ? c : -c;
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
static createTextColumn(t) {
|
|
489
|
+
return {
|
|
490
|
+
columnContext: t.columnContext,
|
|
491
|
+
comparatorFactory: t.advancedSort ? e.createTextCellRowAdvancedComperator : e.createTextCellRowComperator,
|
|
492
|
+
filterLabel: t.filterLabel,
|
|
493
|
+
headerName: t.name,
|
|
494
|
+
id: t.id,
|
|
495
|
+
isInitiallyVisible: !0,
|
|
496
|
+
type: "text",
|
|
497
|
+
widthFlex: t.flex ?? 1
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
static getColumnIdsWithData(e) {
|
|
501
|
+
let { dataContext: t, hasCellData: n, sortedData: r, tableColumns: i, visibleColumnIds: a } = e, o = a.map((e) => i.find((t) => t.id === e)), s;
|
|
502
|
+
return s = n ? o.filter((e) => e.frozen ? !0 : r.some((r, i) => n(r, e, i, t))).map((e) => e.id) : o.filter((e) => e.frozen ? !0 : r.some((n, r) => e.valueGetter ? e.valueGetter({
|
|
503
|
+
column: e,
|
|
504
|
+
dataContext: t,
|
|
505
|
+
id: e.id,
|
|
506
|
+
row: n,
|
|
507
|
+
rowIndex: r
|
|
508
|
+
}) : n[e.id] !== void 0)).map((e) => e.id), s;
|
|
509
|
+
}
|
|
510
|
+
static getTableBooleanCellDisplayValue({ column: t, dataContext: n, row: r, rowIndex: i, t: a }) {
|
|
511
|
+
return e.getTableBooleanCellValue({
|
|
512
|
+
column: t,
|
|
513
|
+
dataContext: n,
|
|
514
|
+
row: r,
|
|
515
|
+
rowIndex: i
|
|
516
|
+
}) ? a("Yes") : a("No");
|
|
517
|
+
}
|
|
518
|
+
static getTableBooleanCellValue({ column: e, dataContext: t, row: n, rowIndex: r }) {
|
|
519
|
+
return e.valueGetter ? e.valueGetter({
|
|
520
|
+
column: e,
|
|
521
|
+
dataContext: t,
|
|
522
|
+
id: e.id,
|
|
523
|
+
row: n,
|
|
524
|
+
rowIndex: r
|
|
525
|
+
}) : n[e.id];
|
|
526
|
+
}
|
|
527
|
+
static getTableDateCellValue({ column: e, dataContext: t, row: n, rowIndex: r }) {
|
|
528
|
+
if (e.valueGetter) return e.valueGetter({
|
|
529
|
+
column: e,
|
|
530
|
+
dataContext: t,
|
|
531
|
+
id: e.id,
|
|
532
|
+
row: n,
|
|
533
|
+
rowIndex: r
|
|
534
|
+
});
|
|
535
|
+
let i = n[e.id];
|
|
536
|
+
return i ? o(i, e.dateFormat) : "";
|
|
537
|
+
}
|
|
538
|
+
static getTableNumberCellValue({ column: e, dataContext: t, row: n, rowIndex: r }) {
|
|
539
|
+
return e.valueGetter ? e.valueGetter({
|
|
540
|
+
column: e,
|
|
541
|
+
dataContext: t,
|
|
542
|
+
id: e.id,
|
|
543
|
+
row: n,
|
|
544
|
+
rowIndex: r
|
|
545
|
+
}) : n[e.id];
|
|
546
|
+
}
|
|
547
|
+
static getTableOptionsCellDisplayValue({ column: t, dataContext: n, row: r, rowIndex: i }) {
|
|
548
|
+
let a = e.getTableOptionsCellValue({
|
|
549
|
+
column: t,
|
|
550
|
+
dataContext: n,
|
|
551
|
+
row: r,
|
|
552
|
+
rowIndex: i
|
|
553
|
+
});
|
|
554
|
+
return Array.isArray(a) ? a.join(", ") : a;
|
|
555
|
+
}
|
|
556
|
+
static getTableOptionsCellValue({ column: e, dataContext: t, row: n, rowIndex: r }) {
|
|
557
|
+
if (e.valueGetter) return e.valueGetter({
|
|
558
|
+
column: e,
|
|
559
|
+
dataContext: t,
|
|
560
|
+
id: e.id,
|
|
561
|
+
row: n,
|
|
562
|
+
rowIndex: r
|
|
563
|
+
});
|
|
564
|
+
let i = n[e.id];
|
|
565
|
+
return Array.isArray(i) ? i.map((t) => e.options.find((e) => e.value === t)?.label ?? "") : e.options.find((e) => e.value === i)?.label ?? "";
|
|
566
|
+
}
|
|
567
|
+
static getTableTextCellValue({ column: e, dataContext: t, row: n, rowIndex: r }) {
|
|
568
|
+
return e.valueGetter ? e.valueGetter({
|
|
569
|
+
column: e,
|
|
570
|
+
dataContext: t,
|
|
571
|
+
id: e.id,
|
|
572
|
+
row: n,
|
|
573
|
+
rowIndex: r
|
|
574
|
+
}) : n[e.id];
|
|
575
|
+
}
|
|
576
|
+
static handleMoveColumn(t, n, r, i, a) {
|
|
577
|
+
if (!i || i.frozen) return !1;
|
|
578
|
+
let o = n.findIndex((e) => e.id === i.id), s = n[o];
|
|
579
|
+
if (!s) return !1;
|
|
580
|
+
let c, l, u;
|
|
581
|
+
for (let e = o + a; e >= 0 && e < n.length; e += a) if (u = n[e], u?.isVisible && (l = r.find((t) => t.id === n[e].id), l && !l.frozen)) {
|
|
582
|
+
c = e;
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
return !u || !l || l.frozen || c === void 0 ? !1 : t?.length ? e.handleMoveColumnAcrossDimensions(t, n, s, u, o, c, a) : (e.swapTwoTableColumns(n, o, c), !0);
|
|
586
|
+
}
|
|
587
|
+
static updateColumnSizesInVisualSettings(e, t, n, r, i) {
|
|
588
|
+
let a = new Map(r.map((e) => [e.id, e])), o = i.filter((e) => e.isVisible), s = o.some((e) => e.hasResized), c = o.some((e) => e.widthFlex);
|
|
589
|
+
s && c && i.forEach((e) => {
|
|
590
|
+
!e.widthPx && e.calculatedWidth && (e.widthPx = e.calculatedWidth, e.widthFlex = void 0);
|
|
591
|
+
});
|
|
592
|
+
let l = (0, $.default)(o, (e) => e.hasResized ? 0 : e.widthFlex) ?? 0, u = (0, $.default)(o, (e) => a.get(e.id)?.widthPxFn ? a.get(e.id)?.widthPxFn(n.length) : e.widthPx) ?? 0, d = e.getBoundingClientRect().width - t - u, f = l > 0 ? d / l : 1;
|
|
593
|
+
i.forEach((e) => {
|
|
594
|
+
let t;
|
|
595
|
+
t = e.hasResized ? e.widthPx : e.widthFlex ? e.widthFlex * f : a.get(e.id)?.widthPxFn ? a.get(e.id)?.widthPxFn(n.length) : e.widthPx, e.calculatedWidth = t, e.offsetX = 0;
|
|
596
|
+
});
|
|
597
|
+
let p = 0;
|
|
598
|
+
o.forEach((e) => {
|
|
599
|
+
a.get(e.id)?.frozen === E.LEFT && (e.offsetX = p, p += e.calculatedWidth ?? 0);
|
|
600
|
+
});
|
|
601
|
+
let m = 0;
|
|
602
|
+
for (let e = o.length - 1; e >= 0; --e) {
|
|
603
|
+
let t = o[e];
|
|
604
|
+
a.get(t.id)?.frozen === E.RIGHT && (t.offsetX = m, m += t.calculatedWidth ?? 0);
|
|
605
|
+
}
|
|
606
|
+
return new Map(i.map((e) => [e.id, e]));
|
|
607
|
+
}
|
|
608
|
+
static handleMoveColumnAcrossDimensions(t, n, r, i, a, o, s) {
|
|
609
|
+
let c = t?.find((e) => e.columnIds.includes(r.id)), l = t?.find((e) => e.columnIds.includes(i.id));
|
|
610
|
+
if (t?.length && (!c || !l)) return !1;
|
|
611
|
+
if (c.id === l.id) return e.swapTwoTableColumns(n, a, o), !0;
|
|
612
|
+
let u = c.columnIds.filter((e) => n.find((t) => t.id === e)?.isVisible).length, d = l.columnIds.filter((e) => n.find((t) => t.id === e)?.isVisible).length;
|
|
613
|
+
if (u > 1 || d > 1) return e.swapTwoTableColumns(n, a, o), !0;
|
|
614
|
+
let f = c.columnIds.length, p = c.columnIds.map((e) => n.findIndex((t) => t.id === e)), m = Math.min(...p);
|
|
615
|
+
if (Math.max(...p) - m !== f - 1) return e.swapTwoTableColumns(n, a, o), !0;
|
|
616
|
+
let h = l.columnIds.map((e) => n.findIndex((t) => t.id === e)), g = Math.min(...h), _ = Math.max(...h), v = c.columnIds.map((e) => n.find((t) => t.id === e)), y = l.columnIds.map((e) => n.find((t) => t.id === e)), b = y.length;
|
|
617
|
+
return _ - g === l.columnIds.length - 1 ? (n.splice(m, f, ...y), s === 1 ? n.splice(g - f + b, b, ...v) : n.splice(g, b, ...v)) : (n.splice(m, f, i), s === 1 ? n.splice(g - (f - 1), 1, ...v) : n.splice(g, 1, ...v)), !0;
|
|
618
|
+
}
|
|
619
|
+
static swapTwoTableColumns(e, t, n) {
|
|
620
|
+
e[t] = e.splice(n, 1, e[t])[0];
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
//#endregion
|
|
624
|
+
export { Z as n, X as r, ue as t };
|
|
625
|
+
|
|
626
|
+
//# sourceMappingURL=TableUtil.js.map
|