@owp/core 2.5.47 → 2.5.49
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/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +4 -4
- package/dist/_virtual/index17.js +5 -2
- package/dist/_virtual/index17.js.map +1 -1
- package/dist/_virtual/index18.js +3 -3
- package/dist/_virtual/index19.js +3 -3
- package/dist/_virtual/index20.js +2 -5
- package/dist/_virtual/index20.js.map +1 -1
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +1 -1
- package/dist/components/OwpCommonCode/OwpCommonCodeQuerySelector.js.map +1 -1
- package/dist/components/OwpCommonCode/OwpCommonCodeRadioGroup.js.map +1 -1
- package/dist/components/OwpCommonCode/OwpCommonCodeSelector.js.map +1 -1
- package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -1
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +1 -1
- package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js.map +1 -1
- package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
- package/dist/components/OwpFieldHelperText/OwpFieldHelperText.js.map +1 -1
- package/dist/components/OwpFilePickerButton/OwpFilePickerButton.js.map +1 -1
- package/dist/components/OwpHidden/OwpHidden.js.map +1 -1
- package/dist/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js.map +1 -1
- package/dist/components/OwpLayout/OwpLayout.js +1 -1
- package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
- package/dist/components/OwpLoading/OwpLoading.js.map +1 -1
- package/dist/components/OwpMoreActionsButton/OwpMoreActionsButton.js.map +1 -1
- package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +1 -1
- package/dist/components/OwpOptionSelector/OwpOptionSelector.js.map +1 -1
- package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +1 -1
- package/dist/components/OwpPageCarded/OwpPageCarded.js +21 -23
- package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
- package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +1 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +1 -1
- package/dist/components/OwpPicker/OwpDatePicker.js +141 -144
- package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpDateRangePicker.js +114 -118
- package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
- package/dist/components/OwpPicker/OwpWeekDatePicker.js +152 -155
- package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
- package/dist/components/OwpPicker/constants/index.js.map +1 -1
- package/dist/components/OwpPicker/hooks/useOwpPickerPopperTransition.js.map +1 -1
- package/dist/components/OwpPicker/internal/OwpDatePickerCalendarHeader.js.map +1 -1
- package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js +13 -0
- package/dist/components/OwpPicker/utils/registerOwpDatePickerLocales.js.map +1 -0
- package/dist/components/OwpQuerySelector/OwpQuerySelector.js +1 -1
- package/dist/components/OwpRequiredHelperText/OwpRequiredHelperText.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorSelect.js.map +1 -1
- package/dist/components/OwpSelectorBase/hooks/useOwpSelectorBase.js.map +1 -1
- package/dist/components/OwpSelectorBase/selectorBaseStyles.js.map +1 -1
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
- package/dist/components/OwpSuspense/OwpSuspense.js +1 -1
- package/dist/components/OwpTable/OwpDataTable.js +277 -270
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +42 -43
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/OwpTable.js +54 -55
- package/dist/components/OwpTable/OwpTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +34 -35
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +18 -14
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
- package/dist/components/OwpTabs/OwpTab.js.map +1 -1
- package/dist/components/OwpTabs/OwpTabs.js.map +1 -1
- package/dist/components/OwpTextField/OwpTextMaskField.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +271 -257
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js +43 -37
- package/dist/components/OwpTreeGrid/OwpTreeGridToolbar.js.map +1 -1
- package/dist/components/OwpTreeGrid/TreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js +41 -0
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +141 -144
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.js +161 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridLayout.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +842 -617
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridSelection.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +353 -321
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/utils/perf.js.map +1 -1
- package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -1
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +1 -1
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
- package/dist/components/OwpYesNoSelector/OwpYesNoSelector.js.map +1 -1
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/excel.js.map +1 -1
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/language.js.map +1 -1
- package/dist/constants/localStorageKeys.js.map +1 -1
- package/dist/constants/table.js.map +1 -1
- package/dist/constants/tableTheme.js.map +1 -1
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/contexts/OwpAppContext.js +14 -0
- package/dist/contexts/OwpAppContext.js.map +1 -0
- package/dist/contexts/OwpAppProvider.js +20 -23
- package/dist/contexts/OwpAppProvider.js.map +1 -1
- package/dist/contexts/OwpCoreProvider.js.map +1 -1
- package/dist/contexts/OwpStoreProvider.js.map +1 -1
- package/dist/contexts/OwpUiProvider.js +1 -1
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/contexts.js +8 -7
- package/dist/contexts.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
- package/dist/features/themePreview/components/themePreviewCanvas.icons.js.map +1 -1
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/presets.js.map +1 -1
- package/dist/features/themePreview/configs/previewStorage.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/configs/snackbar.js.map +1 -1
- package/dist/features/themePreview/configs/surface.js.map +1 -1
- package/dist/features/themePreview/configs/table.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/color.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
- package/dist/hooks/internal/useAccessTokenGuard.js +1 -1
- package/dist/hooks/internal/useAccessTokenGuard.js.map +1 -1
- package/dist/hooks/internal/useCurrentLanguage.js.map +1 -1
- package/dist/hooks/internal/useInitCommonCodes.js +1 -1
- package/dist/hooks/internal/useNavigationActiveRouteRemount.js +1 -1
- package/dist/hooks/useCommonCodeList.js.map +1 -1
- package/dist/hooks/useConfirm.js.map +1 -1
- package/dist/hooks/useCurrentUser.js.map +1 -1
- package/dist/hooks/useCurrentUserSeq.js.map +1 -1
- package/dist/hooks/useFormDataUploadMutation.js.map +1 -1
- package/dist/hooks/useInitApp.js +1 -1
- package/dist/hooks/useInitApp.js.map +1 -1
- package/dist/hooks/useStorage.js.map +1 -1
- package/dist/hooks/useTreeGridExcelExport.js.map +1 -1
- package/dist/layout/components/logo/Logo.js +1 -1
- package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
- package/dist/layout/components/navigation/NavItem.js.map +1 -1
- package/dist/layout/components/navigation/NavigationMenu.js.map +1 -1
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toggles/ThemePreviewToggle.js +1 -1
- package/dist/layout/components/toolbar/ToolbarLayout.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/store/atoms/navbarAtoms.js.map +1 -1
- package/dist/store/atoms/owpSettingsAtoms.js.map +1 -1
- package/dist/store/atoms/owpStore.js.map +1 -1
- package/dist/types/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts +2 -2
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +3 -2
- package/dist/types/components/OwpCommonCode/OwpCommonCodeQuerySelector.d.ts +28 -2
- package/dist/types/components/OwpCommonCode/OwpCommonCodeRadioGroup.d.ts +14 -2
- package/dist/types/components/OwpCommonCode/OwpCommonCodeSelector.d.ts +20 -2
- package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +18 -4
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +19 -10
- package/dist/types/components/OwpDialogsProvider/OwpDialogsContext.d.ts +1 -0
- package/dist/types/components/OwpErrorStatusPage/OwpErrorStatusPage.d.ts +8 -0
- package/dist/types/components/OwpExportExcelButton/OwpExportExcelButton.d.ts +24 -6
- package/dist/types/components/OwpFieldHelperText/OwpFieldHelperText.d.ts +5 -0
- package/dist/types/components/OwpFilePickerButton/OwpFilePickerButton.d.ts +13 -6
- package/dist/types/components/OwpHidden/OwpHidden.d.ts +12 -0
- package/dist/types/components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.d.ts +2 -1
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +10 -4
- package/dist/types/components/OwpLoading/OwpLoading.d.ts +7 -1
- package/dist/types/components/OwpMoreActionsButton/OwpMoreActionsButton.d.ts +34 -7
- package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +10 -5
- package/dist/types/components/OwpNumberField/OwpNumberField.d.ts +4 -4
- package/dist/types/components/OwpOptionSelector/OwpOptionSelector.d.ts +19 -2
- package/dist/types/components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts +8 -0
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -4
- package/dist/types/components/OwpPageCarded/internal/OwpPageCardedHeader.d.ts +3 -3
- package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebar.d.ts +1 -1
- package/dist/types/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.d.ts +1 -1
- package/dist/types/components/OwpPageContent/OwpPageContent.d.ts +7 -7
- package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +7 -3
- package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +1 -1
- package/dist/types/components/OwpPageTitle/OwpPageTitle.d.ts +10 -6
- package/dist/types/components/OwpPicker/OwpDatePicker.d.ts +18 -11
- package/dist/types/components/OwpPicker/OwpDateRangePicker.d.ts +15 -10
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +17 -12
- package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +17 -12
- package/dist/types/components/OwpPicker/constants/index.d.ts +15 -0
- package/dist/types/components/OwpPicker/hooks/useOwpPickerPopperTransition.d.ts +5 -1
- package/dist/types/components/OwpPicker/internal/CalendarContainer.d.ts +3 -3
- package/dist/types/components/OwpPicker/internal/DatePickerInput.d.ts +11 -11
- package/dist/types/components/OwpPicker/internal/OwpDatePickerCalendarHeader.d.ts +1 -0
- package/dist/types/components/OwpPicker/utils/registerOwpDatePickerLocales.d.ts +4 -0
- package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +2 -2
- package/dist/types/components/OwpQuerySelector/types/types.d.ts +31 -0
- package/dist/types/components/OwpRequiredHelperText/OwpRequiredHelperText.d.ts +10 -6
- package/dist/types/components/OwpScrollbars/OwpScrollbars.d.ts +2 -2
- package/dist/types/components/OwpSearchFilter/OwpSearchFilter.d.ts +7 -7
- package/dist/types/components/OwpSection/OwpSection.d.ts +13 -13
- package/dist/types/components/OwpSelectorBase/OwpSelectorAutocomplete.d.ts +2 -2
- package/dist/types/components/OwpSelectorBase/OwpSelectorBase.d.ts +2 -2
- package/dist/types/components/OwpSelectorBase/OwpSelectorSelect.d.ts +2 -2
- package/dist/types/components/OwpSelectorBase/hooks/useOwpSelectorBase.d.ts +2 -2
- package/dist/types/components/OwpSelectorBase/selectorBaseStyles.d.ts +2 -0
- package/dist/types/components/OwpSelectorBase/types/types.d.ts +54 -1
- package/dist/types/components/OwpSelectorBase/utils/querySelectorUtils.d.ts +2 -2
- package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +1 -0
- package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +10 -5
- package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +1 -1
- package/dist/types/components/OwpTable/OwpDataTable.d.ts +11 -11
- package/dist/types/components/OwpTable/OwpFieldTable.d.ts +13 -13
- package/dist/types/components/OwpTable/OwpTable.d.ts +7 -7
- package/dist/types/components/OwpTable/internal/OwpTableBase.d.ts +15 -2
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +8 -0
- package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +4 -1
- package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -3
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -3
- package/dist/types/components/OwpTextField/OwpTextMaskField.d.ts +7 -4
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +91 -15
- package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +10 -5
- package/dist/types/components/OwpTreeGrid/TreeGrid.d.ts +11 -7
- package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.d.ts +6 -2
- package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.d.ts +10 -0
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridAddedRowBoxOverlay.d.ts +6 -0
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.d.ts +8 -1
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridOverlayFrame.d.ts +7 -0
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridScrollRenderLoading.d.ts +14 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridLayout.d.ts +12 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +38 -3
- package/dist/types/components/OwpTreeGrid/internal/treeGridSelection.d.ts +10 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +18 -2
- package/dist/types/components/OwpTreeGrid/internal/utils/perf.d.ts +4 -3
- package/dist/types/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.d.ts +7 -3
- package/dist/types/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.d.ts +7 -3
- package/dist/types/components/OwpYesNoSelector/OwpYesNoSelector.d.ts +7 -6
- package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +8 -8
- package/dist/types/configs/defaultConfig.d.ts +13 -7
- package/dist/types/configs/layoutConfig.d.ts +1 -0
- package/dist/types/constants/excel.d.ts +18 -0
- package/dist/types/constants/gridTheme.d.ts +10 -1
- package/dist/types/constants/language.d.ts +3 -0
- package/dist/types/constants/localStorageKeys.d.ts +7 -1
- package/dist/types/constants/storageKeys.d.ts +1 -1
- package/dist/types/constants/table.d.ts +3 -0
- package/dist/types/constants/tableTheme.d.ts +6 -2
- package/dist/types/constants/treeGrid.d.ts +19 -3
- package/dist/types/contexts/OwpAppContext.d.ts +164 -0
- package/dist/types/contexts/OwpAppProvider.d.ts +4 -81
- package/dist/types/contexts/OwpCoreProvider.d.ts +11 -7
- package/dist/types/contexts/OwpStoreProvider.d.ts +8 -4
- package/dist/types/contexts/OwpUiProvider.d.ts +9 -4
- package/dist/types/contexts/index.d.ts +1 -0
- package/dist/types/dayjs.d.ts +2 -2
- package/dist/types/features/themePreview/components/ThemePreviewCanvas.d.ts +4 -0
- package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +7 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -0
- package/dist/types/features/themePreview/components/ThemePreviewControls.d.ts +4 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.icons.d.ts +1 -0
- package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +81 -0
- package/dist/types/features/themePreview/configs/grid.d.ts +3 -0
- package/dist/types/features/themePreview/configs/presets.d.ts +12 -0
- package/dist/types/features/themePreview/configs/previewStorage.d.ts +44 -0
- package/dist/types/features/themePreview/configs/settings.d.ts +3 -0
- package/dist/types/features/themePreview/configs/snackbar.d.ts +23 -0
- package/dist/types/features/themePreview/configs/surface.d.ts +3 -0
- package/dist/types/features/themePreview/configs/table.d.ts +24 -0
- package/dist/types/features/themePreview/dialogs/ThemePreviewDialog.d.ts +4 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +4 -0
- package/dist/types/features/themePreview/types/themePreview.d.ts +59 -0
- package/dist/types/features/themePreview/utils/color.d.ts +25 -0
- package/dist/types/features/themePreview/utils/themePreviewDefinitions.d.ts +6 -0
- package/dist/types/features/themePreview/utils/themePreviewExport.d.ts +19 -0
- package/dist/types/features/themePreview/utils/themePreviewSettings.d.ts +84 -0
- package/dist/types/hooks/internal/useAccessTokenGuard.d.ts +7 -3
- package/dist/types/hooks/internal/useCurrentLanguage.d.ts +4 -3
- package/dist/types/hooks/internal/useHeaderWrapState.d.ts +1 -1
- package/dist/types/hooks/internal/useInitCommonCodes.d.ts +1 -1
- package/dist/types/hooks/internal/useNavbar.d.ts +2 -2
- package/dist/types/hooks/internal/useShortcuts.d.ts +2 -2
- package/dist/types/hooks/useCommonCodeList.d.ts +12 -4
- package/dist/types/hooks/useConfirm.d.ts +5 -1
- package/dist/types/hooks/useCurrentUser.d.ts +5 -2
- package/dist/types/hooks/useCurrentUserId.d.ts +2 -2
- package/dist/types/hooks/useCurrentUserSeq.d.ts +11 -4
- package/dist/types/hooks/useFormDataUploadMutation.d.ts +18 -3
- package/dist/types/hooks/useInitApp.d.ts +7 -3
- package/dist/types/hooks/useLogoSrc.d.ts +2 -2
- package/dist/types/hooks/useNavigation.d.ts +2 -2
- package/dist/types/hooks/useOwpSettings.d.ts +13 -13
- package/dist/types/hooks/useOwpTranslation.d.ts +1 -1
- package/dist/types/hooks/usePageLockLoading.d.ts +2 -2
- package/dist/types/hooks/useStorage.d.ts +10 -4
- package/dist/types/hooks/useTreeGridCommonCodeEnums.d.ts +4 -4
- package/dist/types/hooks/useTreeGridEnums.d.ts +6 -6
- package/dist/types/hooks/useTreeGridExcelExport.d.ts +4 -1
- package/dist/types/layout/Layout.d.ts +1 -1
- package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +5 -4
- package/dist/types/layout/components/navigation/NavItem.d.ts +9 -3
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +13 -8
- package/dist/types/store/atoms/navbarAtoms.d.ts +5 -1
- package/dist/types/store/atoms/owpSettingsAtoms.d.ts +60 -8
- package/dist/types/store/atoms/owpStore.d.ts +9 -2
- package/dist/types/types/OwpDialogTypes.d.ts +75 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +59 -0
- package/dist/types/types/OwpNavigationTypes.d.ts +29 -0
- package/dist/types/types/OwpRouteTypes.d.ts +10 -3
- package/dist/types/types/OwpSettingsTypes.d.ts +30 -0
- package/dist/types/types/OwpTableThemeTypes.d.ts +30 -0
- package/dist/types/types/ThemeFormConfigTypes.d.ts +5 -6
- package/dist/types/utils/commonCodeUtils.d.ts +18 -0
- package/dist/types/utils/createFormDataBody.d.ts +18 -0
- package/dist/types/utils/excelUtil.d.ts +5 -5
- package/dist/types/utils/getStartPagePath.d.ts +10 -0
- package/dist/types/utils/internal/exceljsBrowser.d.ts +1 -1
- package/dist/types/utils/internal/jszipBrowser.d.ts +1 -1
- package/dist/types/utils/internal/treeGridBodyRowsEvent.d.ts +4 -1
- package/dist/types/utils/isEnterKeyEvent.d.ts +2 -2
- package/dist/types/utils/preloadOnIdle.d.ts +1 -1
- package/dist/types/utils/rebuildValue.d.ts +8 -1
- package/dist/types/utils/treeGridExportExcelUtil.d.ts +6 -0
- package/dist/types/utils/treeGridUtil.d.ts +38 -1
- package/dist/types/utils/zipUtil.d.ts +14 -2
- package/dist/utils/commonCodeUtils.js.map +1 -1
- package/dist/utils/createFormDataBody.js.map +1 -1
- package/dist/utils/getStartPagePath.js.map +1 -1
- package/dist/utils/internal/treeGridBodyRowsEvent.js.map +1 -1
- package/dist/utils/rebuildValue.js.map +1 -1
- package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/dist/utils/zipUtil.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,70 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (t, r) =>
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { resolveOwpGridTheme as
|
|
5
|
-
import { resolveOwpTableTheme as
|
|
6
|
-
import { DEFAULT_TABLE_RADIUS as
|
|
7
|
-
import { getTreeGridFontFaceStyles as
|
|
8
|
-
import { useGetCurrentSettings as
|
|
9
|
-
import { TextField as
|
|
10
|
-
import
|
|
11
|
-
import { grey as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { useState as
|
|
22
|
-
import { TREEGRID_TABLE_BODY_BORDER_COLOR as
|
|
23
|
-
import { getDefaultTableCellSx as
|
|
24
|
-
import { OwpTableTotalCount as
|
|
25
|
-
import { toTableRadiusCssValue as
|
|
26
|
-
import { uniqueId as
|
|
27
|
-
import {
|
|
28
|
-
import { isEqual as
|
|
29
|
-
import { OwpNumberField as
|
|
1
|
+
var nt = Object.defineProperty;
|
|
2
|
+
var n = (t, r) => nt(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsxs as J, jsx as l } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
|
|
4
|
+
import { resolveOwpGridTheme as at } from "../../constants/gridTheme.js";
|
|
5
|
+
import { resolveOwpTableTheme as st } from "../../constants/tableTheme.js";
|
|
6
|
+
import { DEFAULT_TABLE_RADIUS as Jo } from "../../constants/table.js";
|
|
7
|
+
import { getTreeGridFontFaceStyles as dt } from "../../constants/treeGrid.js";
|
|
8
|
+
import { useGetCurrentSettings as ut } from "../../hooks/useOwpSettings.js";
|
|
9
|
+
import { TextField as lt, Typography as Io } from "@mui/material";
|
|
10
|
+
import Qo, { checkboxClasses as bt } from "@mui/material/Checkbox";
|
|
11
|
+
import { grey as mt } from "@mui/material/colors";
|
|
12
|
+
import ct from "@mui/material/GlobalStyles";
|
|
13
|
+
import ft from "@mui/material/Paper";
|
|
14
|
+
import gt from "@mui/material/Table";
|
|
15
|
+
import ht from "@mui/material/TableBody";
|
|
16
|
+
import N from "@mui/material/TableCell";
|
|
17
|
+
import pt from "@mui/material/TableContainer";
|
|
18
|
+
import xt from "@mui/material/TableHead";
|
|
19
|
+
import Xo from "@mui/material/TableRow";
|
|
20
|
+
import Rt from "@mui/material/TableSortLabel";
|
|
21
|
+
import { useState as oo, useRef as Mo, useMemo as A, useEffect as No } from "react";
|
|
22
|
+
import { TREEGRID_TABLE_BODY_BORDER_COLOR as yo, getTreeGridBodyCellSx as to, getTreeGridBodyRowSx as vt, getTreeGridContainerSx as ro, getTreeGridHeaderCellSx as zo, TREEGRID_TABLE_HEADER_BORDER_COLOR as Ct } from "./internal/treeGridTableStyle.js";
|
|
23
|
+
import { getDefaultTableBorderColor as wt, getDefaultTableCellSx as kt, getDefaultTableHeaderCellSx as Lt, defaultTableSortLabelSx as Bt, getDefaultTableHeaderLabelSx as Vo, defaultStyledTableTheme as At, DEFAULT_TABLE_HEADER_BACKGROUND_COLOR as So } from "./internal/defaultTableStyle.js";
|
|
24
|
+
import { OwpTableTotalCount as Tt } from "./internal/OwpTableTotalCount.js";
|
|
25
|
+
import { toTableRadiusCssValue as Dt } from "./utils/tableSx.js";
|
|
26
|
+
import { uniqueId as $t } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/util/uniqueId.js";
|
|
27
|
+
import { isArray as so } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
|
|
28
|
+
import { isEqual as eo } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
29
|
+
import { OwpNumberField as Et } from "../OwpNumberField/OwpNumberField.js";
|
|
30
30
|
import { isNumber as _ } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
...xt(t, r),
|
|
31
|
+
import { isBoolean as qo } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isBoolean.js";
|
|
32
|
+
const Po = /* @__PURE__ */ n((t, r) => ({
|
|
33
|
+
...Lt(t, r),
|
|
35
34
|
borderBottom: `1px solid ${t.borderColor}`,
|
|
36
35
|
borderTopLeftRadius: "inherit",
|
|
37
36
|
borderTopRightRadius: "inherit"
|
|
38
|
-
}), "defaultHeadCellsSx"),
|
|
39
|
-
borderRight: `1px solid ${
|
|
40
|
-
},
|
|
37
|
+
}), "defaultHeadCellsSx"), Zo = {
|
|
38
|
+
borderRight: `1px solid ${Ct}`
|
|
39
|
+
}, io = /* @__PURE__ */ n((t) => ({
|
|
41
40
|
borderRight: `1px solid ${t.borderColor}`
|
|
42
|
-
}), "getDefaultRowBorderRightSx"),
|
|
43
|
-
borderRight: `1px solid ${
|
|
44
|
-
},
|
|
45
|
-
borderLeft: `1px solid ${
|
|
41
|
+
}), "getDefaultRowBorderRightSx"), no = {
|
|
42
|
+
borderRight: `1px solid ${yo}`
|
|
43
|
+
}, Ot = {
|
|
44
|
+
borderLeft: `1px solid ${yo}`,
|
|
46
45
|
boxSizing: "border-box"
|
|
47
|
-
},
|
|
48
|
-
...
|
|
49
|
-
}), "getDefaultTableBodyCellSx"),
|
|
46
|
+
}, ao = /* @__PURE__ */ n((t) => ({
|
|
47
|
+
...kt(t)
|
|
48
|
+
}), "getDefaultTableBodyCellSx"), _t = /* @__PURE__ */ n((t) => ({
|
|
50
49
|
border: `1px solid ${t.borderColor}`,
|
|
51
50
|
boxSizing: "border-box"
|
|
52
|
-
}), "getDefaultTableContainerFrameSx"),
|
|
51
|
+
}), "getDefaultTableContainerFrameSx"), jo = /* @__PURE__ */ n((t) => ({
|
|
53
52
|
borderRight: `1px solid ${t.borderColor}`
|
|
54
53
|
}), "getDefaultHeaderDividerSx"), g = {
|
|
55
54
|
borderRadius: 0
|
|
56
|
-
},
|
|
57
|
-
borderRadius:
|
|
58
|
-
},
|
|
55
|
+
}, Ht = {
|
|
56
|
+
borderRadius: Jo
|
|
57
|
+
}, Ft = {
|
|
59
58
|
"& > th, & > td": {
|
|
60
59
|
borderBottomLeftRadius: 0,
|
|
61
60
|
borderBottomRightRadius: 0
|
|
62
61
|
}
|
|
63
|
-
},
|
|
62
|
+
}, It = {
|
|
64
63
|
"& > th, & > td": {
|
|
65
64
|
borderBottom: "none"
|
|
66
65
|
}
|
|
67
|
-
},
|
|
66
|
+
}, Mt = {
|
|
68
67
|
"&.MuiTableSortLabel-root": {
|
|
69
68
|
color: "inherit",
|
|
70
69
|
display: "flex",
|
|
@@ -91,10 +90,10 @@ const Io = /* @__PURE__ */ n((t, r) => ({
|
|
|
91
90
|
position: "absolute",
|
|
92
91
|
right: 0
|
|
93
92
|
}
|
|
94
|
-
},
|
|
93
|
+
}, b = /* @__PURE__ */ n((...t) => t.reduce((r, a) => a ? [...r, ...so(a) ? a : [a]] : r, []), "mergeSx"), Nt = /* @__PURE__ */ n((t) => {
|
|
95
94
|
if (!(!_(t) || t < 1))
|
|
96
95
|
return t;
|
|
97
|
-
}, "getFixedRowCount"),
|
|
96
|
+
}, "getFixedRowCount"), zt = /* @__PURE__ */ n((t) => Array.from({ length: t }, () => ({})), "createEmptyRows"), uo = /* @__PURE__ */ n((t, r) => {
|
|
98
97
|
switch (t) {
|
|
99
98
|
case "center":
|
|
100
99
|
case "right":
|
|
@@ -105,35 +104,35 @@ const Io = /* @__PURE__ */ n((t, r) => ({
|
|
|
105
104
|
default:
|
|
106
105
|
return r;
|
|
107
106
|
}
|
|
108
|
-
}, "getTableCellAlign"),
|
|
107
|
+
}, "getTableCellAlign"), z = /* @__PURE__ */ n((t, r) => {
|
|
109
108
|
if (r)
|
|
110
109
|
return t == null ? void 0 : t[r];
|
|
111
|
-
}, "getRowValue"),
|
|
110
|
+
}, "getRowValue"), Ko = /* @__PURE__ */ n((t) => {
|
|
112
111
|
if (typeof t == "string" || _(t))
|
|
113
112
|
return t;
|
|
114
113
|
}, "getComparableValue");
|
|
115
|
-
function
|
|
116
|
-
const m =
|
|
117
|
-
return
|
|
114
|
+
function Wo(t, r, a) {
|
|
115
|
+
const m = Ko(z(t, a)), c = Ko(z(r, a));
|
|
116
|
+
return c == null && m == null ? 0 : c == null ? -1 : m == null ? 1 : c < m ? -1 : c > m ? 1 : 0;
|
|
118
117
|
}
|
|
119
|
-
n(
|
|
120
|
-
function
|
|
121
|
-
return t === "desc" ? (a, m) =>
|
|
118
|
+
n(Wo, "descendingComparator");
|
|
119
|
+
function Vt(t, r) {
|
|
120
|
+
return t === "desc" ? (a, m) => Wo(a, m, r) : (a, m) => -Wo(a, m, r);
|
|
122
121
|
}
|
|
123
|
-
n(
|
|
124
|
-
const
|
|
122
|
+
n(Vt, "getComparator");
|
|
123
|
+
const lo = /* @__PURE__ */ n((t, r) => {
|
|
125
124
|
if (r)
|
|
126
|
-
return
|
|
127
|
-
}, "getRowRangeValue"),
|
|
128
|
-
var m,
|
|
125
|
+
return z(t, r);
|
|
126
|
+
}, "getRowRangeValue"), St = /* @__PURE__ */ n((t, r) => {
|
|
127
|
+
var m, c, h, C;
|
|
129
128
|
if (!(r.inputLabel ?? r.rangeKey))
|
|
130
129
|
return "";
|
|
131
|
-
const a =
|
|
132
|
-
return `${(m = r.rangeLabel) != null && m.start ? `${(
|
|
133
|
-
}, "getRangeLabel"),
|
|
134
|
-
const a =
|
|
130
|
+
const a = lo(t, r.rangeKey);
|
|
131
|
+
return `${(m = r.rangeLabel) != null && m.start ? `${(c = r.rangeLabel) == null ? void 0 : c.start}: ` : ""}${a == null ? void 0 : a.start} ~ ${(h = r.rangeLabel) != null && h.end ? `${(C = r.rangeLabel) == null ? void 0 : C.end}: ` : ""}${a == null ? void 0 : a.end}`;
|
|
132
|
+
}, "getRangeLabel"), qt = /* @__PURE__ */ n((t, r) => {
|
|
133
|
+
const a = z(t, "index");
|
|
135
134
|
return _(a) ? a : r;
|
|
136
|
-
}, "getRowTabIndex"),
|
|
135
|
+
}, "getRowTabIndex"), Yo = /* @__PURE__ */ n((t, r) => ({
|
|
137
136
|
"& input": {
|
|
138
137
|
fontSize: r,
|
|
139
138
|
textAlign: t ?? "center"
|
|
@@ -143,92 +142,92 @@ const so = /* @__PURE__ */ n((t, r) => {
|
|
|
143
142
|
},
|
|
144
143
|
height: 34
|
|
145
144
|
}), "getEditableCellSx");
|
|
146
|
-
function
|
|
145
|
+
function Pt(t) {
|
|
147
146
|
const {
|
|
148
147
|
sx: r,
|
|
149
148
|
headCells: a,
|
|
150
149
|
onSelectAllClick: m,
|
|
151
|
-
order:
|
|
152
|
-
orderBy:
|
|
153
|
-
numSelected:
|
|
154
|
-
rowCount:
|
|
155
|
-
onRequestSort:
|
|
156
|
-
canCheckbox:
|
|
157
|
-
canUseOrderBy:
|
|
158
|
-
canTableRadiusZero:
|
|
150
|
+
order: c,
|
|
151
|
+
orderBy: h,
|
|
152
|
+
numSelected: C,
|
|
153
|
+
rowCount: T,
|
|
154
|
+
onRequestSort: V,
|
|
155
|
+
canCheckbox: Q,
|
|
156
|
+
canUseOrderBy: X = !0,
|
|
157
|
+
canTableRadiusZero: D,
|
|
159
158
|
canUseTreeGridStyle: o,
|
|
160
159
|
gridTheme: H,
|
|
161
|
-
tableTheme:
|
|
162
|
-
} = t,
|
|
163
|
-
|
|
160
|
+
tableTheme: w
|
|
161
|
+
} = t, S = /* @__PURE__ */ n((i) => (s) => {
|
|
162
|
+
V(s, i);
|
|
164
163
|
}, "createSortHandler");
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
|
|
164
|
+
return /* @__PURE__ */ l(xt, { sx: b(D && g), children: /* @__PURE__ */ J(
|
|
165
|
+
Xo,
|
|
167
166
|
{
|
|
168
|
-
sx:
|
|
167
|
+
sx: b(
|
|
169
168
|
o && { height: H.header.height },
|
|
170
|
-
|
|
169
|
+
D && g
|
|
171
170
|
),
|
|
172
171
|
children: [
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
Q && /* @__PURE__ */ l(
|
|
173
|
+
N,
|
|
175
174
|
{
|
|
176
175
|
padding: "checkbox",
|
|
177
|
-
sx:
|
|
176
|
+
sx: b(
|
|
178
177
|
{
|
|
179
|
-
...
|
|
178
|
+
...Po(w, So)
|
|
180
179
|
},
|
|
181
|
-
!o &&
|
|
182
|
-
o &&
|
|
183
|
-
o &&
|
|
184
|
-
|
|
180
|
+
!o && jo(w),
|
|
181
|
+
o && Zo,
|
|
182
|
+
o && zo(H),
|
|
183
|
+
D && g,
|
|
185
184
|
r
|
|
186
185
|
),
|
|
187
|
-
children: /* @__PURE__ */
|
|
188
|
-
|
|
186
|
+
children: /* @__PURE__ */ l(
|
|
187
|
+
Qo,
|
|
189
188
|
{
|
|
190
189
|
color: "default",
|
|
191
|
-
sx:
|
|
190
|
+
sx: b(
|
|
192
191
|
{
|
|
193
|
-
[`&, &.${
|
|
192
|
+
[`&, &.${bt.checked}`]: o ? { color: mt[50] } : { color: "inherit" }
|
|
194
193
|
},
|
|
195
194
|
o && { p: 0 }
|
|
196
195
|
),
|
|
197
|
-
indeterminate:
|
|
198
|
-
checked:
|
|
196
|
+
indeterminate: C > 0 && C < T,
|
|
197
|
+
checked: T > 0 && C === T,
|
|
199
198
|
onChange: m
|
|
200
199
|
}
|
|
201
200
|
)
|
|
202
201
|
}
|
|
203
202
|
),
|
|
204
|
-
a.map((i, s) => /* @__PURE__ */
|
|
205
|
-
|
|
203
|
+
a.map((i, s) => /* @__PURE__ */ l(
|
|
204
|
+
N,
|
|
206
205
|
{
|
|
207
206
|
className: o ? void 0 : "pl-20",
|
|
208
|
-
align:
|
|
207
|
+
align: uo(i.align, "center"),
|
|
209
208
|
padding: i.enablePadding ? "normal" : "none",
|
|
210
|
-
sortDirection:
|
|
211
|
-
sx:
|
|
209
|
+
sortDirection: h === i.id ? c : !1,
|
|
210
|
+
sx: b(
|
|
212
211
|
{
|
|
213
|
-
...
|
|
212
|
+
...Po(w, So)
|
|
214
213
|
},
|
|
215
|
-
!o && a.length - 1 !== s &&
|
|
216
|
-
o && a.length - 1 !== s &&
|
|
217
|
-
o &&
|
|
218
|
-
|
|
214
|
+
!o && a.length - 1 !== s && jo(w),
|
|
215
|
+
o && a.length - 1 !== s && Zo,
|
|
216
|
+
o && zo(H),
|
|
217
|
+
D && g,
|
|
219
218
|
r,
|
|
220
219
|
o && (i == null ? void 0 : i.sx)
|
|
221
220
|
),
|
|
222
|
-
children:
|
|
223
|
-
|
|
221
|
+
children: X ? /* @__PURE__ */ l(
|
|
222
|
+
Rt,
|
|
224
223
|
{
|
|
225
|
-
sx: o ?
|
|
226
|
-
active:
|
|
227
|
-
direction:
|
|
228
|
-
onClick:
|
|
229
|
-
children: o ? i.label : /* @__PURE__ */
|
|
224
|
+
sx: o ? Mt : Bt,
|
|
225
|
+
active: h === i.id,
|
|
226
|
+
direction: h === i.id ? c : "asc",
|
|
227
|
+
onClick: S(i.id),
|
|
228
|
+
children: o ? i.label : /* @__PURE__ */ l(Io, { sx: b(Vo(w), i == null ? void 0 : i.sx), children: i.label })
|
|
230
229
|
}
|
|
231
|
-
) : o ? i.label : /* @__PURE__ */
|
|
230
|
+
) : o ? i.label : /* @__PURE__ */ l(Io, { sx: b(Vo(w), i == null ? void 0 : i.sx), children: i.label })
|
|
232
231
|
},
|
|
233
232
|
i.id
|
|
234
233
|
))
|
|
@@ -236,286 +235,294 @@ function Nt(t) {
|
|
|
236
235
|
}
|
|
237
236
|
) });
|
|
238
237
|
}
|
|
239
|
-
n(
|
|
240
|
-
function
|
|
238
|
+
n(Pt, "DataTableHead");
|
|
239
|
+
function Rr({
|
|
241
240
|
className: t,
|
|
242
241
|
sx: r,
|
|
243
242
|
headSx: a,
|
|
244
243
|
headCells: m,
|
|
245
|
-
rows:
|
|
246
|
-
selected:
|
|
247
|
-
canCheckbox:
|
|
248
|
-
canTotalCountRow:
|
|
249
|
-
canSelectingSingle:
|
|
250
|
-
canUseOrderBy:
|
|
251
|
-
canTableRadiusZero:
|
|
252
|
-
canUseTableRadius:
|
|
244
|
+
rows: c,
|
|
245
|
+
selected: h,
|
|
246
|
+
canCheckbox: C,
|
|
247
|
+
canTotalCountRow: T,
|
|
248
|
+
canSelectingSingle: V,
|
|
249
|
+
canUseOrderBy: Q = !0,
|
|
250
|
+
canTableRadiusZero: X,
|
|
251
|
+
canUseTableRadius: D = !1,
|
|
253
252
|
canUseTreeGridStyle: o = !1,
|
|
254
|
-
tableBorderRadius: H =
|
|
255
|
-
fixedRowCount:
|
|
256
|
-
onSelect:
|
|
253
|
+
tableBorderRadius: H = Jo,
|
|
254
|
+
fixedRowCount: w,
|
|
255
|
+
onSelect: S,
|
|
257
256
|
onBlur: i
|
|
258
257
|
}) {
|
|
259
|
-
var
|
|
260
|
-
const s =
|
|
261
|
-
|
|
258
|
+
var po, xo, Ro, vo, Co, wo, ko, Lo, Bo, Ao, To, Do, $o, Eo, Oo;
|
|
259
|
+
const s = ut(), [q, Go] = oo("asc"), [P, Uo] = oo(""), [Z, F] = oo([]), ot = Mo($t("owp-data-table")), j = Mo(S);
|
|
260
|
+
j.current = S;
|
|
261
|
+
const x = A(() => Nt(w), [w]), I = A(() => {
|
|
262
|
+
const d = so(c) ? c : [];
|
|
262
263
|
return x ? d.slice(0, x) : d;
|
|
263
|
-
}, [
|
|
264
|
+
}, [c, x]), K = A(() => m ?? [], [m]), R = A(
|
|
264
265
|
() => {
|
|
265
266
|
var d, u;
|
|
266
|
-
return
|
|
267
|
+
return at((u = (d = s == null ? void 0 : s.theme) == null ? void 0 : d.main) == null ? void 0 : u.grid);
|
|
267
268
|
},
|
|
268
269
|
[s]
|
|
269
|
-
),
|
|
270
|
+
), bo = wt(
|
|
271
|
+
(Ro = (xo = (po = s == null ? void 0 : s.theme) == null ? void 0 : po.main) == null ? void 0 : xo.palette) == null ? void 0 : Ro.mode
|
|
272
|
+
), v = A(
|
|
270
273
|
() => {
|
|
271
274
|
var d, u;
|
|
272
|
-
return
|
|
275
|
+
return st((u = (d = s == null ? void 0 : s.theme) == null ? void 0 : d.main) == null ? void 0 : u.table, {
|
|
276
|
+
...At,
|
|
277
|
+
borderColor: bo
|
|
278
|
+
});
|
|
273
279
|
},
|
|
274
|
-
[s]
|
|
275
|
-
),
|
|
276
|
-
borderRadius:
|
|
280
|
+
[s, bo]
|
|
281
|
+
), $ = (ko = (wo = (Co = (vo = s == null ? void 0 : s.theme) == null ? void 0 : vo.main) == null ? void 0 : Co.table) == null ? void 0 : wo.row) == null ? void 0 : ko.backgroundColor, mo = (To = (Ao = (Bo = (Lo = s == null ? void 0 : s.theme) == null ? void 0 : Lo.main) == null ? void 0 : Bo.table) == null ? void 0 : Ao.row) == null ? void 0 : To.hoverBackgroundColor, co = (Oo = (Eo = ($o = (Do = s == null ? void 0 : s.theme) == null ? void 0 : Do.main) == null ? void 0 : $o.table) == null ? void 0 : Eo.row) == null ? void 0 : Oo.selectedBackgroundColor, p = !!X, fo = p ? g : o && D ? {
|
|
282
|
+
borderRadius: Dt(H),
|
|
277
283
|
overflow: "hidden"
|
|
278
|
-
} : o ? void 0 :
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}, [
|
|
282
|
-
|
|
284
|
+
} : o ? void 0 : Ht, go = qo(C) ? C : !0, tt = qo(T) ? T : !0;
|
|
285
|
+
No(() => {
|
|
286
|
+
h !== void 0 && F(so(h) ? h : []);
|
|
287
|
+
}, [h]), No(() => {
|
|
288
|
+
var d;
|
|
289
|
+
(d = j.current) == null || d.call(j, Z);
|
|
283
290
|
}, [Z]);
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
}, "handleRequestSort"),
|
|
291
|
+
const rt = /* @__PURE__ */ n((d, u) => {
|
|
292
|
+
Go(P === u && q === "asc" ? "desc" : "asc"), Uo(u);
|
|
293
|
+
}, "handleRequestSort"), et = /* @__PURE__ */ n((d) => {
|
|
287
294
|
if (d.target.checked) {
|
|
288
|
-
I
|
|
295
|
+
F(I);
|
|
289
296
|
return;
|
|
290
297
|
}
|
|
291
|
-
|
|
292
|
-
}, "handleSelectAllClick"),
|
|
293
|
-
if (
|
|
294
|
-
|
|
298
|
+
F([]);
|
|
299
|
+
}, "handleSelectAllClick"), it = /* @__PURE__ */ n((d, u) => {
|
|
300
|
+
if (V) {
|
|
301
|
+
F([u]);
|
|
295
302
|
return;
|
|
296
303
|
}
|
|
297
|
-
|
|
298
|
-
}, "handleClick"),
|
|
299
|
-
() => [...
|
|
300
|
-
[q, P,
|
|
301
|
-
),
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
|
|
304
|
+
F((f) => !!f.find((k) => eo(k, u)) ? f == null ? void 0 : f.filter((k) => !eo(k, u)) : [...f, u]);
|
|
305
|
+
}, "handleClick"), E = A(
|
|
306
|
+
() => [...I].sort(Vt(q, P)),
|
|
307
|
+
[q, P, I]
|
|
308
|
+
), ho = A(() => !x || E.length >= x ? E : [...E, ...zt(x - E.length)], [x, E]);
|
|
309
|
+
return /* @__PURE__ */ J(
|
|
310
|
+
ft,
|
|
304
311
|
{
|
|
305
312
|
className: t,
|
|
306
313
|
elevation: 0,
|
|
307
|
-
sx:
|
|
314
|
+
sx: b(
|
|
308
315
|
{ width: "100%" },
|
|
309
|
-
!o &&
|
|
310
|
-
o &&
|
|
311
|
-
|
|
316
|
+
!o && $ && { backgroundColor: $ },
|
|
317
|
+
o && ro(R),
|
|
318
|
+
fo
|
|
312
319
|
),
|
|
313
320
|
children: [
|
|
314
|
-
o && /* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
321
|
+
o && /* @__PURE__ */ l(ct, { styles: dt() }),
|
|
322
|
+
/* @__PURE__ */ l(
|
|
323
|
+
pt,
|
|
317
324
|
{
|
|
318
|
-
sx:
|
|
325
|
+
sx: b(
|
|
319
326
|
{ height: x ? "auto" : 500 },
|
|
320
|
-
!o &&
|
|
321
|
-
!o &&
|
|
322
|
-
o &&
|
|
323
|
-
o &&
|
|
327
|
+
!o && $ && { backgroundColor: $ },
|
|
328
|
+
!o && _t(v),
|
|
329
|
+
o && ro(R),
|
|
330
|
+
o && Ot,
|
|
324
331
|
x && { overflowY: "hidden" },
|
|
325
|
-
|
|
332
|
+
fo,
|
|
326
333
|
r
|
|
327
334
|
),
|
|
328
|
-
children: /* @__PURE__ */
|
|
329
|
-
|
|
335
|
+
children: /* @__PURE__ */ J(
|
|
336
|
+
gt,
|
|
330
337
|
{
|
|
331
338
|
stickyHeader: !o,
|
|
332
|
-
sx:
|
|
339
|
+
sx: b({ minWidth: 200 }, p && g),
|
|
333
340
|
"aria-labelledby": "owp-data-table",
|
|
334
341
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
|
|
342
|
+
/* @__PURE__ */ l(
|
|
343
|
+
Pt,
|
|
337
344
|
{
|
|
338
345
|
sx: a,
|
|
339
|
-
headCells:
|
|
346
|
+
headCells: K,
|
|
340
347
|
gridTheme: R,
|
|
341
348
|
tableTheme: v,
|
|
342
349
|
numSelected: Z.length,
|
|
343
350
|
order: q,
|
|
344
351
|
orderBy: P,
|
|
345
|
-
onSelectAllClick:
|
|
346
|
-
canCheckbox: !
|
|
347
|
-
canUseOrderBy:
|
|
348
|
-
canTableRadiusZero:
|
|
352
|
+
onSelectAllClick: et,
|
|
353
|
+
canCheckbox: !V && go,
|
|
354
|
+
canUseOrderBy: Q,
|
|
355
|
+
canTableRadiusZero: p,
|
|
349
356
|
canUseTreeGridStyle: o,
|
|
350
|
-
onRequestSort:
|
|
351
|
-
rowCount:
|
|
357
|
+
onRequestSort: rt,
|
|
358
|
+
rowCount: I.length
|
|
352
359
|
}
|
|
353
360
|
),
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
const
|
|
356
|
-
return /* @__PURE__ */
|
|
357
|
-
|
|
361
|
+
/* @__PURE__ */ l(ht, { sx: b(p && g), children: ho.map((d, u) => {
|
|
362
|
+
const f = Z.some((e) => eo(e, d)), y = ho.length - 1 === u, k = x ? u >= E.length : !1, G = `${ot.current}-${u}`;
|
|
363
|
+
return /* @__PURE__ */ J(
|
|
364
|
+
Xo,
|
|
358
365
|
{
|
|
359
366
|
hover: !0,
|
|
360
367
|
role: o ? void 0 : "checkbox",
|
|
361
|
-
"aria-checked": o ? void 0 :
|
|
368
|
+
"aria-checked": o ? void 0 : f,
|
|
362
369
|
tabIndex: -1,
|
|
363
|
-
selected:
|
|
364
|
-
sx:
|
|
365
|
-
{ cursor:
|
|
366
|
-
!o &&
|
|
367
|
-
!o &&
|
|
370
|
+
selected: f,
|
|
371
|
+
sx: b(
|
|
372
|
+
{ cursor: k ? "default" : "pointer" },
|
|
373
|
+
!o && $ && !f && { backgroundColor: $ },
|
|
374
|
+
!o && mo && !k && !f && {
|
|
368
375
|
"&.MuiTableRow-hover:hover": {
|
|
369
|
-
backgroundColor:
|
|
376
|
+
backgroundColor: mo
|
|
370
377
|
}
|
|
371
378
|
},
|
|
372
|
-
!o &&
|
|
379
|
+
!o && co && f && {
|
|
373
380
|
"&.Mui-selected, &.Mui-selected:hover": {
|
|
374
|
-
backgroundColor:
|
|
381
|
+
backgroundColor: co
|
|
375
382
|
}
|
|
376
383
|
},
|
|
377
|
-
o &&
|
|
378
|
-
canHover: !
|
|
379
|
-
selected:
|
|
384
|
+
o && vt(R, {
|
|
385
|
+
canHover: !k,
|
|
386
|
+
selected: f
|
|
380
387
|
}),
|
|
381
|
-
!o &&
|
|
388
|
+
!o && y && It,
|
|
382
389
|
o && { height: 30 },
|
|
383
|
-
|
|
384
|
-
|
|
390
|
+
p && g,
|
|
391
|
+
p && y && Ft
|
|
385
392
|
),
|
|
386
393
|
children: [
|
|
387
|
-
|
|
388
|
-
|
|
394
|
+
go && /* @__PURE__ */ l(
|
|
395
|
+
N,
|
|
389
396
|
{
|
|
390
397
|
padding: "checkbox",
|
|
391
398
|
onClick: /* @__PURE__ */ n((e) => {
|
|
392
|
-
|
|
399
|
+
k || it(e, d);
|
|
393
400
|
}, "onClick"),
|
|
394
|
-
sx:
|
|
395
|
-
!o &&
|
|
396
|
-
o &&
|
|
397
|
-
o ?
|
|
398
|
-
|
|
401
|
+
sx: b(
|
|
402
|
+
!o && ao(v),
|
|
403
|
+
o && to(R),
|
|
404
|
+
o ? no : io(v),
|
|
405
|
+
p && g
|
|
399
406
|
),
|
|
400
|
-
children: /* @__PURE__ */
|
|
401
|
-
|
|
407
|
+
children: /* @__PURE__ */ l(
|
|
408
|
+
Qo,
|
|
402
409
|
{
|
|
403
410
|
color: "default",
|
|
404
|
-
checked:
|
|
405
|
-
disabled:
|
|
406
|
-
sx:
|
|
411
|
+
checked: f,
|
|
412
|
+
disabled: k,
|
|
413
|
+
sx: b(o && { p: 0 })
|
|
407
414
|
}
|
|
408
415
|
)
|
|
409
416
|
}
|
|
410
417
|
),
|
|
411
|
-
|
|
412
|
-
const
|
|
413
|
-
return
|
|
414
|
-
|
|
418
|
+
K.map((e, U) => {
|
|
419
|
+
const _o = `${G}-row-${u}-cell-${U}`, Ho = St(d, e), W = qt(d, u), Y = z(d, String(e == null ? void 0 : e.id));
|
|
420
|
+
return U === 0 ? /* @__PURE__ */ l(
|
|
421
|
+
N,
|
|
415
422
|
{
|
|
416
423
|
className: o ? void 0 : "px-4",
|
|
417
424
|
component: o ? "td" : "th",
|
|
418
|
-
id:
|
|
425
|
+
id: G,
|
|
419
426
|
scope: o ? void 0 : "row",
|
|
420
427
|
padding: "none",
|
|
421
428
|
role: o ? "cell" : void 0,
|
|
422
|
-
align:
|
|
423
|
-
sx:
|
|
424
|
-
!o &&
|
|
425
|
-
o &&
|
|
426
|
-
|
|
427
|
-
|
|
429
|
+
align: uo(e.valueAlign, "left"),
|
|
430
|
+
sx: b(
|
|
431
|
+
!o && ao(v),
|
|
432
|
+
o && to(R),
|
|
433
|
+
K.length > 1 && (o ? no : io(v)),
|
|
434
|
+
p && g
|
|
428
435
|
),
|
|
429
|
-
children:
|
|
436
|
+
children: Y
|
|
430
437
|
},
|
|
431
|
-
|
|
432
|
-
) : /* @__PURE__ */
|
|
433
|
-
|
|
438
|
+
_o
|
|
439
|
+
) : /* @__PURE__ */ l(
|
|
440
|
+
N,
|
|
434
441
|
{
|
|
435
442
|
className: o ? void 0 : "px-4",
|
|
436
443
|
role: o ? "cell" : void 0,
|
|
437
|
-
align:
|
|
438
|
-
sx:
|
|
439
|
-
!o &&
|
|
440
|
-
o &&
|
|
441
|
-
|
|
442
|
-
|
|
444
|
+
align: uo(e.valueAlign, "left"),
|
|
445
|
+
sx: b(
|
|
446
|
+
!o && ao(v),
|
|
447
|
+
o && to(R),
|
|
448
|
+
K.length - 1 !== U && (o ? no : io(v)),
|
|
449
|
+
p && g
|
|
443
450
|
),
|
|
444
|
-
children: e != null && e.canTextField ? (e == null ? void 0 : e.textFieldType) === "number" ? /* @__PURE__ */
|
|
445
|
-
|
|
451
|
+
children: e != null && e.canTextField ? (e == null ? void 0 : e.textFieldType) === "number" ? /* @__PURE__ */ l(
|
|
452
|
+
Et,
|
|
446
453
|
{
|
|
447
454
|
variant: "standard",
|
|
448
455
|
decimalScale: 2,
|
|
449
|
-
label:
|
|
456
|
+
label: Ho,
|
|
450
457
|
fullWidth: !0,
|
|
451
458
|
size: "small",
|
|
452
|
-
sx:
|
|
459
|
+
sx: Yo(
|
|
453
460
|
e == null ? void 0 : e.valueAlign,
|
|
454
461
|
o ? R.cell.fontSize : v.cell.fontSize
|
|
455
462
|
),
|
|
456
463
|
slotProps: {
|
|
457
464
|
input: {
|
|
458
|
-
tabIndex:
|
|
465
|
+
tabIndex: W
|
|
459
466
|
},
|
|
460
467
|
inputLabel: {
|
|
461
468
|
shrink: !0
|
|
462
469
|
}
|
|
463
470
|
},
|
|
464
471
|
isAllowed: /* @__PURE__ */ n((L) => {
|
|
465
|
-
var
|
|
466
|
-
const { floatValue: O } = L,
|
|
467
|
-
return _(O) && _(
|
|
472
|
+
var M;
|
|
473
|
+
const { floatValue: O } = L, B = (M = lo(d, e == null ? void 0 : e.rangeKey)) == null ? void 0 : M.end;
|
|
474
|
+
return _(O) && _(B) ? O <= B : !0;
|
|
468
475
|
}, "isAllowed"),
|
|
469
|
-
value:
|
|
476
|
+
value: Y,
|
|
470
477
|
onBlur: /* @__PURE__ */ n((L) => {
|
|
471
|
-
var
|
|
472
|
-
const O = (
|
|
478
|
+
var M, Fo;
|
|
479
|
+
const O = (M = lo(d, e == null ? void 0 : e.rangeKey)) == null ? void 0 : M.start, B = (Fo = L.target.value) == null ? void 0 : Fo.replace(/,/g, "");
|
|
473
480
|
i == null || i(
|
|
474
481
|
{
|
|
475
482
|
...L,
|
|
476
483
|
target: {
|
|
477
484
|
...L.target,
|
|
478
|
-
value: _(O) &&
|
|
485
|
+
value: _(O) && B !== "" ? Number(O > Number(B) ? O : B) : B
|
|
479
486
|
}
|
|
480
487
|
},
|
|
481
|
-
|
|
488
|
+
W
|
|
482
489
|
);
|
|
483
490
|
}, "onBlur")
|
|
484
491
|
}
|
|
485
|
-
) : /* @__PURE__ */
|
|
486
|
-
|
|
492
|
+
) : /* @__PURE__ */ l(
|
|
493
|
+
lt,
|
|
487
494
|
{
|
|
488
495
|
variant: "standard",
|
|
489
|
-
label:
|
|
496
|
+
label: Ho,
|
|
490
497
|
fullWidth: !0,
|
|
491
498
|
size: "small",
|
|
492
|
-
sx:
|
|
499
|
+
sx: Yo(
|
|
493
500
|
e == null ? void 0 : e.valueAlign,
|
|
494
501
|
o ? R.cell.fontSize : v.cell.fontSize
|
|
495
502
|
),
|
|
496
503
|
slotProps: {
|
|
497
504
|
input: {
|
|
498
|
-
tabIndex:
|
|
505
|
+
tabIndex: W
|
|
499
506
|
},
|
|
500
507
|
inputLabel: {
|
|
501
508
|
shrink: !0
|
|
502
509
|
}
|
|
503
510
|
},
|
|
504
511
|
type: (e == null ? void 0 : e.textFieldType) ?? "text",
|
|
505
|
-
defaultValue:
|
|
512
|
+
defaultValue: Y,
|
|
506
513
|
onBlur: /* @__PURE__ */ n((L) => i == null ? void 0 : i(
|
|
507
514
|
{ ...L, target: { ...L.target, value: L.target.value } },
|
|
508
|
-
|
|
515
|
+
W
|
|
509
516
|
), "onBlur")
|
|
510
517
|
}
|
|
511
|
-
) :
|
|
518
|
+
) : Y
|
|
512
519
|
},
|
|
513
|
-
|
|
520
|
+
_o
|
|
514
521
|
);
|
|
515
522
|
})
|
|
516
523
|
]
|
|
517
524
|
},
|
|
518
|
-
`${
|
|
525
|
+
`${G}-row-${u}`
|
|
519
526
|
);
|
|
520
527
|
}) })
|
|
521
528
|
]
|
|
@@ -523,14 +530,14 @@ function gr({
|
|
|
523
530
|
)
|
|
524
531
|
}
|
|
525
532
|
),
|
|
526
|
-
|
|
527
|
-
|
|
533
|
+
tt && /* @__PURE__ */ l(
|
|
534
|
+
Tt,
|
|
528
535
|
{
|
|
529
|
-
dividerSx:
|
|
530
|
-
totalCount:
|
|
531
|
-
typographySx:
|
|
532
|
-
o &&
|
|
533
|
-
|
|
536
|
+
dividerSx: b(p && g),
|
|
537
|
+
totalCount: I.length,
|
|
538
|
+
typographySx: b(
|
|
539
|
+
o && ro(R),
|
|
540
|
+
p && g
|
|
534
541
|
)
|
|
535
542
|
}
|
|
536
543
|
)
|
|
@@ -538,8 +545,8 @@ function gr({
|
|
|
538
545
|
}
|
|
539
546
|
);
|
|
540
547
|
}
|
|
541
|
-
n(
|
|
548
|
+
n(Rr, "OwpDataTable");
|
|
542
549
|
export {
|
|
543
|
-
|
|
550
|
+
Rr as OwpDataTable
|
|
544
551
|
};
|
|
545
552
|
//# sourceMappingURL=OwpDataTable.js.map
|