@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,31 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (e, n) =>
|
|
3
|
-
import { jsx as P, jsxs as
|
|
4
|
-
import { PICKER_TRANSITION_DURATION as ye, PICKER_EXIT_TRANSFORM_DELAY as
|
|
5
|
-
import { useOwpPickerPopperTransition as
|
|
6
|
-
import { OwpDatePickerCalendarHeader as
|
|
7
|
-
import { getOwpPickerEditorPaperSx as
|
|
8
|
-
import { useOwpDatePickerCalendarHeaderState as
|
|
9
|
-
import { getPickerInputMask as
|
|
10
|
-
import { useOwpTranslation as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { LocalizationProvider as
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var i = (e, n) => ge(e, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { jsx as P, jsxs as et } 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 { PICKER_TRANSITION_DURATION as ye, PICKER_EXIT_TRANSFORM_DELAY as tt, PICKER_TRANSFORM_TRANSITION_DURATION as nt, PICKER_INVALID_INPUT_MESSAGE_KEY as rt, TIME_PICKER_SELECTED_ITEM_SX as ot, VALUE_TIME_SECOND_FORMATTER as B, VALUE_TIME_FORMATTER as ee, VALUE_DATE_FORMATTER as y, TIME_PICKER_EDITOR_SECTION_WIDTH as at, VALUE_MONTH_FORMATTER as b, VALUE_YEAR_FORMATTER as Q } from "../../../OwpPicker/constants/index.js";
|
|
5
|
+
import { useOwpPickerPopperTransition as it } from "../../../OwpPicker/hooks/useOwpPickerPopperTransition.js";
|
|
6
|
+
import { OwpDatePickerCalendarHeader as st } from "../../../OwpPicker/internal/OwpDatePickerCalendarHeader.js";
|
|
7
|
+
import { getOwpPickerEditorPaperSx as lt, getOwpDatePickerEditorPaperSx as ct, getOwpPickerEditorInputSx as ut, getOwpTimePickerClockSx as dt } from "../../../OwpPicker/styles/pickerEditorStyles.js";
|
|
8
|
+
import { useOwpDatePickerCalendarHeaderState as mt, getOwpDatePickerCalendarClassName as pt } from "../../../OwpPicker/hooks/useOwpDatePickerCalendarHeaderState.js";
|
|
9
|
+
import { getPickerInputMask as Et } from "../../../OwpPicker/utils/index.js";
|
|
10
|
+
import { useOwpTranslation as Dt } from "../../../../hooks/useOwpTranslation.js";
|
|
11
|
+
import Tt from "../../../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Clear.js";
|
|
12
|
+
import kt from "@mui/material/ClickAwayListener";
|
|
13
|
+
import ht from "@mui/material/IconButton";
|
|
14
|
+
import yt from "@mui/material/InputAdornment";
|
|
15
|
+
import Pt from "@mui/material/Paper";
|
|
16
|
+
import Ct from "@mui/material/Popper";
|
|
17
|
+
import { LocalizationProvider as It, MultiSectionDigitalClock as wt } from "@mui/x-date-pickers";
|
|
18
18
|
import { AdapterDayjs as Rt } from "@mui/x-date-pickers/AdapterDayjs";
|
|
19
|
-
import { enUS as _t } from "../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js";
|
|
20
|
-
import { ko as Mt } from "../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js";
|
|
21
19
|
import { owpDayjs as A } from "../../../../dayjs.js";
|
|
20
|
+
import { registerOwpDatePickerLocales as ft } from "../../../OwpPicker/utils/registerOwpDatePickerLocales.js";
|
|
22
21
|
import { useState as q, useRef as Pe, useMemo as F, useEffect as H, useCallback as h } from "react";
|
|
23
|
-
import { DatePicker as
|
|
24
|
-
import { OwpTextMaskField as
|
|
25
|
-
|
|
26
|
-
_e
|
|
27
|
-
Ot("ko");
|
|
28
|
-
const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEditor", Lt = "OwpTreeGridTimePickerEditor", St = '<span class="OwpTreeGridTimePickerEditorIcon" aria-hidden="true"></span>', ie = "MM", se = "DD", Ie = /* @__PURE__ */ new Map([
|
|
22
|
+
import { DatePicker as _t } from "../../../../node_modules/.pnpm/react-datepicker@8.7.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-datepicker/dist/index.es.js";
|
|
23
|
+
import { OwpTextMaskField as Mt } from "../../../OwpTextField/OwpTextMaskField.js";
|
|
24
|
+
ft();
|
|
25
|
+
const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", _e = "OwpTreeGridDatePickerEditor", At = "OwpTreeGridTimePickerEditor", Ot = '<span class="OwpTreeGridTimePickerEditorIcon" aria-hidden="true"></span>', ie = "MM", se = "DD", Ie = /* @__PURE__ */ new Map([
|
|
29
26
|
["yyyy", Q],
|
|
30
27
|
["YYYY", Q],
|
|
31
28
|
["mm", ie],
|
|
@@ -42,8 +39,8 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
42
39
|
["YYYY-MM-DD HH:mm", Z],
|
|
43
40
|
["yyyy-mm-dd HH:mm:ss", x],
|
|
44
41
|
["YYYY-MM-DD HH:mm:ss", x]
|
|
45
|
-
]),
|
|
46
|
-
const n =
|
|
42
|
+
]), Ft = /* @__PURE__ */ i((e) => (e == null ? void 0 : e.enabled) !== !1, "isDatePickerEditorEnabled"), Lt = /* @__PURE__ */ i((e) => e == null ? void 0 : e.trim().replace(/\s+/g, " "), "normalizeTreeGridDateFormat"), Me = /* @__PURE__ */ i((e) => {
|
|
43
|
+
const n = Lt(e);
|
|
47
44
|
return n ? Ie.get(n) ?? Ie.get(n.toLowerCase()) ?? null : null;
|
|
48
45
|
}, "convertTreeGridDateFormatToDayjs"), le = /* @__PURE__ */ i((e) => {
|
|
49
46
|
switch (e) {
|
|
@@ -66,15 +63,15 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
66
63
|
default:
|
|
67
64
|
return { kind: "date", valueFormat: e, inputLength: 10, digitLength: 8 };
|
|
68
65
|
}
|
|
69
|
-
}, "getDatePickerEditorFormatMeta"),
|
|
66
|
+
}, "getDatePickerEditorFormatMeta"), we = /* @__PURE__ */ i((e, n) => {
|
|
70
67
|
var r;
|
|
71
68
|
if (!e)
|
|
72
69
|
return le(y);
|
|
73
|
-
const o = e.row, s = (r = e.grid.Cols) == null ? void 0 : r[e.col], l = o[`${e.col}EditFormat`] ?? o[`${e.col}Format`] ?? (s == null ? void 0 : s.EditFormat) ?? (s == null ? void 0 : s.Format), c =
|
|
70
|
+
const o = e.row, s = (r = e.grid.Cols) == null ? void 0 : r[e.col], l = o[`${e.col}EditFormat`] ?? o[`${e.col}Format`] ?? (s == null ? void 0 : s.EditFormat) ?? (s == null ? void 0 : s.Format), c = Me(
|
|
74
71
|
typeof l == "string" ? l : void 0
|
|
75
72
|
) ?? (n != null && n.showTimeInput || n != null && n.showTimeSelect ? Z : y);
|
|
76
73
|
return le(c);
|
|
77
|
-
}, "resolveDatePickerEditorFormatMeta"),
|
|
74
|
+
}, "resolveDatePickerEditorFormatMeta"), Vt = /* @__PURE__ */ i((e, n) => {
|
|
78
75
|
const o = e.replace(/\D/g, "").slice(0, n.digitLength), s = o.slice(0, 4), l = o.slice(4, 6), c = o.slice(6, 8), r = o.slice(8, 10), m = o.slice(10, 12), p = o.slice(12, 14);
|
|
79
76
|
switch (n.kind) {
|
|
80
77
|
case "year":
|
|
@@ -90,10 +87,10 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
90
87
|
default:
|
|
91
88
|
return [s, l, c].filter(Boolean).join("-");
|
|
92
89
|
}
|
|
93
|
-
}, "formatDatePickerEditorInput"),
|
|
90
|
+
}, "formatDatePickerEditorInput"), St = /* @__PURE__ */ i((e, n) => e.length === n.inputLength, "isCompleteDatePickerEditorInput"), Kt = /* @__PURE__ */ i((e, n, o, s) => {
|
|
94
91
|
var l, c, r, m;
|
|
95
92
|
return o.kind === "month" ? `${((c = (l = s == null ? void 0 : s.columnOptions) == null ? void 0 : l[e]) == null ? void 0 : c.baseYear) ?? A().format(Q)}-${n}` : o.kind === "day" ? `${((m = (r = s == null ? void 0 : s.columnOptions) == null ? void 0 : r[e]) == null ? void 0 : m.baseYearMonth) ?? A().format(b)}-${n}` : n;
|
|
96
|
-
}, "resolvePartialDatePickerEditorInputValue"),
|
|
93
|
+
}, "resolvePartialDatePickerEditorInputValue"), Yt = /* @__PURE__ */ i((e) => e.kind === "month" ? b : e.kind === "day" ? y : e.valueFormat, "resolvePartialDatePickerEditorInputFormat"), J = /* @__PURE__ */ i((e, n, o, s) => {
|
|
97
94
|
if (!n)
|
|
98
95
|
return null;
|
|
99
96
|
if (o.kind === "year") {
|
|
@@ -104,9 +101,9 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
104
101
|
const m = `${n}-01`, p = A(m, y, !0);
|
|
105
102
|
return p.isValid() && p.format(y) === m ? p : null;
|
|
106
103
|
}
|
|
107
|
-
const l =
|
|
104
|
+
const l = Kt(e, n, o, s), c = Yt(o), r = A(l, c, !0);
|
|
108
105
|
return r.isValid() && r.format(c) === l ? r : null;
|
|
109
|
-
}, "parseDatePickerEditorValue"),
|
|
106
|
+
}, "parseDatePickerEditorValue"), Ht = /* @__PURE__ */ i((e) => {
|
|
110
107
|
switch (e.kind) {
|
|
111
108
|
case "year":
|
|
112
109
|
return "yyyy";
|
|
@@ -121,38 +118,38 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
121
118
|
default:
|
|
122
119
|
return "yyyy-MM-dd";
|
|
123
120
|
}
|
|
124
|
-
}, "getReactDatePickerDisplayFormat"), v = /* @__PURE__ */ i((e, n, o, s) =>
|
|
121
|
+
}, "getReactDatePickerDisplayFormat"), v = /* @__PURE__ */ i((e, n, o, s) => St(n, o) && !!J(e, n, o, s), "isValidDatePickerEditorInput"), Re = /* @__PURE__ */ i((e) => e.valueFormat === B || e.valueFormat === x, "hasDatePickerEditorSeconds"), vt = /* @__PURE__ */ i((e) => e !== "dateTime", "isDatePickerEditorAnimatedCommitKind"), bt = /* @__PURE__ */ i((e, n) => {
|
|
125
122
|
const o = n ? e.ActionTabLeft : e.ActionTabRight;
|
|
126
123
|
o == null || o.call(e, 1, 0);
|
|
127
|
-
}, "moveTreeGridDatePickerEditorFocusByTab"),
|
|
124
|
+
}, "moveTreeGridDatePickerEditorFocusByTab"), xt = /* @__PURE__ */ i((e, n, o) => {
|
|
128
125
|
e.Focus(n, o, void 0, void 0, 1);
|
|
129
|
-
}, "focusTreeGridDatePickerEditorCell"),
|
|
126
|
+
}, "focusTreeGridDatePickerEditorCell"), Bt = /* @__PURE__ */ i((e, n) => {
|
|
130
127
|
const o = (e == null ? void 0 : e.split(/\s+/).filter(Boolean)) ?? [];
|
|
131
128
|
return o.includes(n) ? e : [...o, n].join(" ");
|
|
132
|
-
}, "appendTreeGridClass"),
|
|
133
|
-
var p,
|
|
134
|
-
const l = (p = e.GetStringEdit) == null ? void 0 : p.call(e, n, o), c = (
|
|
129
|
+
}, "appendTreeGridClass"), $t = /* @__PURE__ */ i((e, n, o, s) => {
|
|
130
|
+
var p, V, k, f;
|
|
131
|
+
const l = (p = e.GetStringEdit) == null ? void 0 : p.call(e, n, o), c = (V = e.GetString) == null ? void 0 : V.call(e, n, o), r = (k = e.GetValue) == null ? void 0 : k.call(e, n, o), m = (f = s.textContent) == null ? void 0 : f.trim();
|
|
135
132
|
return String(l || c || m || r || "");
|
|
136
|
-
}, "resolveDatePickerEditorInitialValue"),
|
|
133
|
+
}, "resolveDatePickerEditorInitialValue"), Gt = /* @__PURE__ */ i((e, n, o, s) => {
|
|
137
134
|
if (!n)
|
|
138
135
|
return "";
|
|
139
136
|
if (v(e, n, o, s))
|
|
140
137
|
return n;
|
|
141
|
-
const l =
|
|
138
|
+
const l = Vt(n, o);
|
|
142
139
|
return v(e, l, o, s) ? l : n;
|
|
143
|
-
}, "normalizeDatePickerEditorInitialValue"),
|
|
140
|
+
}, "normalizeDatePickerEditorInitialValue"), Nt = /* @__PURE__ */ i((e, n, o) => n === "Tab" || e === "Tab" || o === "Tab" || o === "ShiftTab", "isDatePickerEditorTabKey"), Ut = /* @__PURE__ */ i((e, n, o) => {
|
|
144
141
|
const s = n, l = s.key;
|
|
145
|
-
return s.ctrlKey || s.altKey || s.metaKey ||
|
|
146
|
-
}, "isDatePickerEditorStartKey"),
|
|
142
|
+
return s.ctrlKey || s.altKey || s.metaKey || Nt(e, l, o) ? !1 : /^\d$/.test(l) || l === "F2" || l === "Backspace" || l === "Delete" || !l && (e === "F2" || e === "Backspace" || e === "Delete" || /^\d$/.test(e));
|
|
143
|
+
}, "isDatePickerEditorStartKey"), fe = /* @__PURE__ */ i((e) => {
|
|
147
144
|
const n = e.target;
|
|
148
|
-
return n instanceof Element && !!n.closest(`.${
|
|
149
|
-
}, "isDatePickerEditorEventTarget"), g = /* @__PURE__ */ i((e) => e === 1 || e === "1", "isTreeGridCanEditEnabled"),
|
|
145
|
+
return n instanceof Element && !!n.closest(`.${_e}`);
|
|
146
|
+
}, "isDatePickerEditorEventTarget"), g = /* @__PURE__ */ i((e) => e === 1 || e === "1", "isTreeGridCanEditEnabled"), jt = /* @__PURE__ */ i((e) => e === 0 || e === "0" || e === !1, "isTreeGridCanEditDisabled"), zt = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" ? !1 : e.Kind === "Data" || g(e.Added), "isDisplayTreeGridRow"), X = /* @__PURE__ */ i((e, n, o, s) => {
|
|
150
147
|
var p;
|
|
151
148
|
if (s.size > 0 && !s.has(o))
|
|
152
149
|
return !1;
|
|
153
150
|
const l = (p = e.Cols) == null ? void 0 : p[o], c = n[`${o}CanEdit`], r = c != null, m = g(r ? c : l == null ? void 0 : l.CanEdit);
|
|
154
|
-
return (l == null ? void 0 : l.Type) === "Date" &&
|
|
155
|
-
}, "isEditableDatePickerCell"),
|
|
151
|
+
return (l == null ? void 0 : l.Type) === "Date" && zt(n) && !jt(n.CanEdit) && m && n.Deleted !== 1;
|
|
152
|
+
}, "isEditableDatePickerCell"), Wt = /* @__PURE__ */ i((e, n) => {
|
|
156
153
|
var s;
|
|
157
154
|
if (!e)
|
|
158
155
|
return;
|
|
@@ -165,50 +162,50 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
165
162
|
if (!c || c.Type !== "Date" || !g(c.CanEdit))
|
|
166
163
|
return;
|
|
167
164
|
c.AutoCalendar = 0, c.CalendarButtons = 0;
|
|
168
|
-
const r = c.EditFormat ?? c.Format, m =
|
|
165
|
+
const r = c.EditFormat ?? c.Format, m = Me(
|
|
169
166
|
typeof r == "string" ? r : void 0
|
|
170
167
|
) ?? y;
|
|
171
|
-
le(m).kind === "time" ? (c.Button = "Html", c.ButtonText =
|
|
168
|
+
le(m).kind === "time" ? (c.Button = "Html", c.ButtonText = Ot, c.OnClickSide = "Focus", c.Class = Bt(c.Class, At)) : (c.Button = "Date", c.OnClickSideDate = "Focus");
|
|
172
169
|
}), (s = e.Rerender) == null || s.call(e, 1, 1);
|
|
173
|
-
}, "configureTreeGridDatePickerColumns"),
|
|
170
|
+
}, "configureTreeGridDatePickerColumns"), hn = /* @__PURE__ */ i(({
|
|
174
171
|
config: e,
|
|
175
172
|
treeGridInstanceRef: n,
|
|
176
173
|
isTreeGridReady: o,
|
|
177
174
|
onValueChange: s
|
|
178
175
|
}) => {
|
|
179
176
|
var ke;
|
|
180
|
-
const { t: l, i18n: c } =
|
|
177
|
+
const { t: l, i18n: c } = Dt(), [r, m] = q(null), [p, V] = q(null), [k, f] = q(""), [Ae, S] = q(!1), ce = Pe(null), O = Pe(!1), C = Ft(e), te = ((ke = e == null ? void 0 : e.columns) == null ? void 0 : ke.join(Ce)) ?? "", $ = F(
|
|
181
178
|
() => te ? te.split(Ce) : [],
|
|
182
179
|
[te]
|
|
183
|
-
), _ = F(() => new Set($), [$]), ue = c.resolvedLanguage ?? c.language ?? "kr",
|
|
184
|
-
() =>
|
|
180
|
+
), _ = F(() => new Set($), [$]), ue = c.resolvedLanguage ?? c.language ?? "kr", Oe = ue === "kr" ? "ko" : "en", Fe = ue === "kr" ? "ko" : "en", ne = (e == null ? void 0 : e.allowInput) !== !1, L = it(!!r), E = r ?? p, de = !!E, d = F(
|
|
181
|
+
() => we(E, e),
|
|
185
182
|
[e, E]
|
|
186
183
|
), G = d.kind === "year", N = d.kind === "yearMonth" || d.kind === "month", {
|
|
187
|
-
calendarDisplayDate:
|
|
184
|
+
calendarDisplayDate: Le,
|
|
188
185
|
calendarHeaderPickerView: Ve,
|
|
189
|
-
calendarHeaderView:
|
|
186
|
+
calendarHeaderView: Se,
|
|
190
187
|
closeCalendarHeaderPicker: K,
|
|
191
|
-
isCalendarHeaderViewOpen:
|
|
188
|
+
isCalendarHeaderViewOpen: Ke,
|
|
192
189
|
resetCalendarDisplayDate: U,
|
|
193
|
-
selectCalendarDisplayDate:
|
|
194
|
-
toggleCalendarHeaderPicker:
|
|
195
|
-
} =
|
|
190
|
+
selectCalendarDisplayDate: Ye,
|
|
191
|
+
toggleCalendarHeaderPicker: He
|
|
192
|
+
} = mt({
|
|
196
193
|
showMonthPicker: N,
|
|
197
194
|
showYearPicker: G
|
|
198
195
|
});
|
|
199
196
|
H(() => {
|
|
200
|
-
!C || !o ||
|
|
197
|
+
!C || !o || Wt(n.current, $);
|
|
201
198
|
}, [$, C, o, n]), H(() => {
|
|
202
|
-
r &&
|
|
199
|
+
r && V(r);
|
|
203
200
|
}, [r]), H(() => {
|
|
204
|
-
L.shouldRender ||
|
|
201
|
+
L.shouldRender || V(null);
|
|
205
202
|
}, [L.shouldRender]);
|
|
206
203
|
const I = h(() => {
|
|
207
204
|
K(), U(), m(null);
|
|
208
205
|
}, [K, U]), M = h(
|
|
209
206
|
(t, a, u) => {
|
|
210
207
|
var he;
|
|
211
|
-
|
|
208
|
+
xt(t, a, u);
|
|
212
209
|
const D = t.GetCell(a, u);
|
|
213
210
|
if (!D)
|
|
214
211
|
return;
|
|
@@ -217,47 +214,47 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
217
214
|
row: a,
|
|
218
215
|
col: u,
|
|
219
216
|
anchorRect: D.getBoundingClientRect(),
|
|
220
|
-
value:
|
|
221
|
-
},
|
|
217
|
+
value: $t(t, a, u, D)
|
|
218
|
+
}, w = we(T, e), R = {
|
|
222
219
|
...T,
|
|
223
|
-
value:
|
|
220
|
+
value: Gt(
|
|
224
221
|
u,
|
|
225
222
|
T.value,
|
|
226
|
-
|
|
223
|
+
w,
|
|
227
224
|
e
|
|
228
225
|
)
|
|
229
|
-
},
|
|
230
|
-
return O.current = !1, K(), U(
|
|
226
|
+
}, Ze = ((he = J(u, R.value, w, e)) == null ? void 0 : he.toDate()) ?? null;
|
|
227
|
+
return O.current = !1, K(), U(Ze), S(!1), f(R.value ?? ""), m(R), 1;
|
|
231
228
|
},
|
|
232
229
|
[K, e, U]
|
|
233
|
-
),
|
|
234
|
-
(t, a, u, D, T,
|
|
235
|
-
var
|
|
230
|
+
), ve = h(
|
|
231
|
+
(t, a, u, D, T, w) => {
|
|
232
|
+
var R;
|
|
236
233
|
if (!C || !X(t, a, u, _)) {
|
|
237
234
|
I();
|
|
238
235
|
return;
|
|
239
236
|
}
|
|
240
|
-
return (
|
|
237
|
+
return (R = t.CloseDialog) == null || R.call(t), w.preventDefault(), w.stopPropagation(), M(t, a, u);
|
|
241
238
|
},
|
|
242
239
|
[I, _, C, M]
|
|
243
|
-
),
|
|
240
|
+
), be = h(
|
|
244
241
|
(t, a, u, D) => {
|
|
245
242
|
var T;
|
|
246
243
|
if (!(!C || !X(t, a, u, _)))
|
|
247
244
|
return (T = t.CloseDialog) == null || T.call(t), D.preventDefault(), D.stopPropagation(), M(t, a, u);
|
|
248
245
|
},
|
|
249
246
|
[_, C, M]
|
|
250
|
-
),
|
|
247
|
+
), xe = h(
|
|
251
248
|
(t, a, u, D) => {
|
|
252
|
-
var
|
|
253
|
-
if (
|
|
249
|
+
var R;
|
|
250
|
+
if (fe(u))
|
|
254
251
|
return 1;
|
|
255
|
-
const T = t.FRow || t.ARow,
|
|
256
|
-
if (!(!C || !T || !
|
|
257
|
-
return (
|
|
252
|
+
const T = t.FRow || t.ARow, w = t.FCol || t.ACol;
|
|
253
|
+
if (!(!C || !T || !w || !X(t, T, w, _) || !Ut(a, u, D)))
|
|
254
|
+
return (R = t.CloseDialog) == null || R.call(t), u.preventDefault(), u.stopPropagation(), M(t, T, w);
|
|
258
255
|
},
|
|
259
256
|
[_, C, M]
|
|
260
|
-
),
|
|
257
|
+
), Be = h(
|
|
261
258
|
(t, a, u) => {
|
|
262
259
|
var D;
|
|
263
260
|
if (!(!C || !X(t, a, u, _)))
|
|
@@ -280,7 +277,7 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
280
277
|
d,
|
|
281
278
|
e
|
|
282
279
|
)) == null ? void 0 : a.toDate()) ?? null;
|
|
283
|
-
}, [e, d, k, E]),
|
|
280
|
+
}, [e, d, k, E]), $e = F(() => {
|
|
284
281
|
if (d.kind !== "time")
|
|
285
282
|
return null;
|
|
286
283
|
const t = A(k, d.valueFormat, !0);
|
|
@@ -290,16 +287,16 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
290
287
|
return null;
|
|
291
288
|
const a = A(E.value, d.valueFormat, !0);
|
|
292
289
|
return a.isValid() ? a : null;
|
|
293
|
-
}, [d, k, E == null ? void 0 : E.value]),
|
|
290
|
+
}, [d, k, E == null ? void 0 : E.value]), Ge = F(() => E ? {
|
|
294
291
|
getBoundingClientRect: /* @__PURE__ */ i(() => E.anchorRect, "getBoundingClientRect")
|
|
295
|
-
} : null, [E]),
|
|
292
|
+
} : null, [E]), Ne = F(() => {
|
|
296
293
|
if (!(typeof document > "u"))
|
|
297
294
|
return document.getElementById("calendar-portal") ?? void 0;
|
|
298
295
|
}, []), Y = h(
|
|
299
296
|
(t, a) => {
|
|
300
297
|
if (!r)
|
|
301
298
|
return;
|
|
302
|
-
const u = (a == null ? void 0 : a.animate) ??
|
|
299
|
+
const u = (a == null ? void 0 : a.animate) ?? vt(d.kind);
|
|
303
300
|
r.grid.SetString(
|
|
304
301
|
r.row,
|
|
305
302
|
r.col,
|
|
@@ -314,32 +311,32 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
314
311
|
), u && r.grid.RefreshCellAnimate(r.row, r.col, "Edit");
|
|
315
312
|
},
|
|
316
313
|
[r, d.kind, s]
|
|
317
|
-
),
|
|
314
|
+
), Ue = /* @__PURE__ */ i((t) => {
|
|
318
315
|
if (!r)
|
|
319
316
|
return;
|
|
320
317
|
const a = t ? A(t).format(d.valueFormat) : "";
|
|
321
|
-
O.current = !0,
|
|
322
|
-
}, "handleDateSelect"),
|
|
318
|
+
O.current = !0, f(a), Y(a), I();
|
|
319
|
+
}, "handleDateSelect"), je = /* @__PURE__ */ i((t, a) => {
|
|
323
320
|
if (!r)
|
|
324
321
|
return;
|
|
325
|
-
const u = t != null && t.isValid() ? t.format(d.valueFormat) : "", D = a === (
|
|
326
|
-
D && (O.current = !0),
|
|
322
|
+
const u = t != null && t.isValid() ? t.format(d.valueFormat) : "", D = a === (Re(d) ? "seconds" : "minutes");
|
|
323
|
+
D && (O.current = !0), f(u), Y(u, { animate: D }), m((T) => T && { ...T, value: u }), D && I();
|
|
327
324
|
}, "handleTimeSelect"), me = h(
|
|
328
325
|
(t) => {
|
|
329
326
|
Y(t);
|
|
330
327
|
},
|
|
331
328
|
[Y]
|
|
332
|
-
), j = h(() => !r || k !== "" && !v(r.col, k, d, e) ? (r && k &&
|
|
329
|
+
), j = h(() => !r || k !== "" && !v(r.col, k, d, e) ? (r && k && S(!0), !1) : (O.current = !0, S(!1), me(k), !0), [me, e, r, d, k]), ze = h(() => {
|
|
333
330
|
j(), I();
|
|
334
|
-
}, [I, j]),
|
|
335
|
-
r && (
|
|
331
|
+
}, [I, j]), We = /* @__PURE__ */ i((t) => {
|
|
332
|
+
r && (f(t.target.value), S(!1));
|
|
336
333
|
}, "handleInputChange"), z = h(
|
|
337
334
|
(t, a) => {
|
|
338
335
|
if (!r || t !== "Enter" && t !== "Tab" || !j())
|
|
339
336
|
return !1;
|
|
340
337
|
const { grid: u } = r, D = t === "Tab";
|
|
341
338
|
return I(), D && window.requestAnimationFrame(() => {
|
|
342
|
-
|
|
339
|
+
bt(u, a);
|
|
343
340
|
}), !0;
|
|
344
341
|
},
|
|
345
342
|
[I, j, r]
|
|
@@ -348,15 +345,15 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
348
345
|
t.key !== "Enter" && t.key !== "Tab" || (t.preventDefault(), z(t.key, t.shiftKey));
|
|
349
346
|
},
|
|
350
347
|
[z]
|
|
351
|
-
),
|
|
348
|
+
), qe = /* @__PURE__ */ i((t) => {
|
|
352
349
|
t.stopPropagation(), t.nativeEvent.stopImmediatePropagation(), pe(t);
|
|
353
|
-
}, "handleInputKeyDown"),
|
|
354
|
-
t.preventDefault(), t.stopPropagation(), r && (O.current = !0, Y(""),
|
|
350
|
+
}, "handleInputKeyDown"), Xe = /* @__PURE__ */ i((t) => {
|
|
351
|
+
t.preventDefault(), t.stopPropagation(), r && (O.current = !0, Y(""), f(""), S(!1), m((a) => a && { ...a, value: "" }));
|
|
355
352
|
}, "handleInputClear"), Ee = /* @__PURE__ */ i((t) => {
|
|
356
353
|
t.stopPropagation();
|
|
357
354
|
}, "handleEditorMouseEvent"), De = /* @__PURE__ */ i((t) => {
|
|
358
355
|
t.stopPropagation(), t.nativeEvent.stopImmediatePropagation(), pe(t);
|
|
359
|
-
}, "handleEditorKeyboardEvent"), W = k, Te =
|
|
356
|
+
}, "handleEditorKeyboardEvent"), W = k, Te = Ae && !O.current && !!W && !v((r == null ? void 0 : r.col) ?? "", W, d, e), oe = Re(d), ae = at * (oe ? 3 : 2), Je = oe ? ["hours", "minutes", "seconds"] : ["hours", "minutes"], Qe = oe ? B : ee;
|
|
360
357
|
return H(() => {
|
|
361
358
|
if (!r)
|
|
362
359
|
return;
|
|
@@ -365,7 +362,7 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
365
362
|
I();
|
|
366
363
|
return;
|
|
367
364
|
}
|
|
368
|
-
a.key !== "Enter" && a.key !== "Tab" ||
|
|
365
|
+
a.key !== "Enter" && a.key !== "Tab" || fe(a) && (a.preventDefault(), a.stopPropagation(), a.stopImmediatePropagation(), z(a.key, a.shiftKey));
|
|
369
366
|
}, "handleKeyDown");
|
|
370
367
|
return window.addEventListener("keydown", t, !0), () => {
|
|
371
368
|
window.removeEventListener("keydown", t, !0);
|
|
@@ -388,36 +385,36 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
388
385
|
};
|
|
389
386
|
}, [ne, L.state, de]), {
|
|
390
387
|
datePickerEditorElement: L.shouldRender && E ? /* @__PURE__ */ P(
|
|
391
|
-
|
|
388
|
+
Ct,
|
|
392
389
|
{
|
|
393
390
|
open: !0,
|
|
394
|
-
anchorEl:
|
|
395
|
-
container:
|
|
391
|
+
anchorEl: Ge,
|
|
392
|
+
container: Ne,
|
|
396
393
|
placement: "bottom-start",
|
|
397
394
|
sx: { zIndex: 1400 },
|
|
398
|
-
children: /* @__PURE__ */ P(
|
|
395
|
+
children: /* @__PURE__ */ P(kt, { onClickAway: ze, children: /* @__PURE__ */ P(
|
|
399
396
|
"div",
|
|
400
397
|
{
|
|
401
398
|
className: "owp-animated-picker-popper",
|
|
402
399
|
"data-state": L.state,
|
|
403
400
|
style: {
|
|
404
401
|
"--owp-calendar-transition-duration": `${ye}ms`,
|
|
405
|
-
"--owp-calendar-transform-transition-duration": `${
|
|
406
|
-
"--owp-calendar-exit-transform-delay": `${
|
|
402
|
+
"--owp-calendar-transform-transition-duration": `${nt}ms`,
|
|
403
|
+
"--owp-calendar-exit-transform-delay": `${tt}ms`
|
|
407
404
|
},
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
|
|
405
|
+
children: /* @__PURE__ */ et(
|
|
406
|
+
Pt,
|
|
410
407
|
{
|
|
411
|
-
className:
|
|
408
|
+
className: _e,
|
|
412
409
|
elevation: 8,
|
|
413
410
|
onClick: Ee,
|
|
414
411
|
onKeyDown: De,
|
|
415
412
|
onKeyUp: De,
|
|
416
413
|
onMouseDown: Ee,
|
|
417
|
-
sx: d.kind === "time" ?
|
|
414
|
+
sx: d.kind === "time" ? lt(ae) : ct(),
|
|
418
415
|
children: [
|
|
419
416
|
ne && /* @__PURE__ */ P(
|
|
420
|
-
|
|
417
|
+
Mt,
|
|
421
418
|
{
|
|
422
419
|
autoFocus: !0,
|
|
423
420
|
inputRef: ce,
|
|
@@ -426,30 +423,30 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
426
423
|
variant: "outlined",
|
|
427
424
|
value: W,
|
|
428
425
|
error: Te,
|
|
429
|
-
helperText: Te ? l(
|
|
426
|
+
helperText: Te ? l(rt) : void 0,
|
|
430
427
|
color: O.current ? "primary" : void 0,
|
|
431
|
-
mask:
|
|
428
|
+
mask: Et(d.valueFormat),
|
|
432
429
|
placeholder: d.valueFormat,
|
|
433
|
-
onChange:
|
|
434
|
-
onKeyDown:
|
|
430
|
+
onChange: We,
|
|
431
|
+
onKeyDown: qe,
|
|
435
432
|
inputProps: {
|
|
436
433
|
inputMode: "numeric",
|
|
437
434
|
"aria-label": d.valueFormat
|
|
438
435
|
},
|
|
439
436
|
endAdornment: /* @__PURE__ */ P(
|
|
440
|
-
|
|
437
|
+
yt,
|
|
441
438
|
{
|
|
442
439
|
position: "end",
|
|
443
440
|
sx: {
|
|
444
441
|
marginLeft: 0
|
|
445
442
|
},
|
|
446
443
|
children: /* @__PURE__ */ P(
|
|
447
|
-
|
|
444
|
+
ht,
|
|
448
445
|
{
|
|
449
446
|
size: "small",
|
|
450
447
|
"aria-label": "clear-date-picker-editor-value",
|
|
451
448
|
disabled: !W,
|
|
452
|
-
onClick:
|
|
449
|
+
onClick: Xe,
|
|
453
450
|
onMouseDown: /* @__PURE__ */ i((t) => {
|
|
454
451
|
t.preventDefault(), t.stopPropagation();
|
|
455
452
|
}, "onMouseDown"),
|
|
@@ -457,68 +454,68 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
457
454
|
margin: 0,
|
|
458
455
|
padding: 0.25
|
|
459
456
|
},
|
|
460
|
-
children: /* @__PURE__ */ P(
|
|
457
|
+
children: /* @__PURE__ */ P(Tt, { fontSize: "small" })
|
|
461
458
|
}
|
|
462
459
|
)
|
|
463
460
|
}
|
|
464
461
|
),
|
|
465
|
-
sx:
|
|
462
|
+
sx: ut(
|
|
466
463
|
d.kind === "time" ? ae : "100%"
|
|
467
464
|
)
|
|
468
465
|
}
|
|
469
466
|
),
|
|
470
|
-
d.kind === "time" ? /* @__PURE__ */ P(
|
|
467
|
+
d.kind === "time" ? /* @__PURE__ */ P(It, { dateAdapter: Rt, adapterLocale: Fe, children: /* @__PURE__ */ P(
|
|
471
468
|
wt,
|
|
472
469
|
{
|
|
473
470
|
ampm: !1,
|
|
474
|
-
value:
|
|
475
|
-
views:
|
|
476
|
-
onChange: /* @__PURE__ */ i((t, a, u) =>
|
|
471
|
+
value: $e,
|
|
472
|
+
views: Je,
|
|
473
|
+
onChange: /* @__PURE__ */ i((t, a, u) => je(t, u), "onChange"),
|
|
477
474
|
timeSteps: {
|
|
478
475
|
minutes: (e == null ? void 0 : e.timeIntervals) ?? 1,
|
|
479
476
|
seconds: 1
|
|
480
477
|
},
|
|
481
478
|
slotProps: {
|
|
482
479
|
digitalClockSectionItem: {
|
|
483
|
-
sx:
|
|
480
|
+
sx: ot
|
|
484
481
|
}
|
|
485
482
|
},
|
|
486
|
-
sx:
|
|
483
|
+
sx: dt(ae)
|
|
487
484
|
}
|
|
488
485
|
) }) : /* @__PURE__ */ P(
|
|
489
|
-
|
|
486
|
+
_t,
|
|
490
487
|
{
|
|
491
488
|
inline: !0,
|
|
492
|
-
locale:
|
|
493
|
-
calendarClassName:
|
|
494
|
-
isHeaderViewOpen:
|
|
489
|
+
locale: Oe,
|
|
490
|
+
calendarClassName: pt({
|
|
491
|
+
isHeaderViewOpen: Ke,
|
|
495
492
|
showMonthPicker: N,
|
|
496
493
|
showYearPicker: G
|
|
497
494
|
}),
|
|
498
|
-
openToDate:
|
|
495
|
+
openToDate: Le ?? re ?? void 0,
|
|
499
496
|
selected: re,
|
|
500
497
|
allowSameDay: d.kind === "date",
|
|
501
|
-
onChange: /* @__PURE__ */ i((t) =>
|
|
498
|
+
onChange: /* @__PURE__ */ i((t) => Ue(t), "onChange"),
|
|
502
499
|
showYearPicker: G,
|
|
503
500
|
showMonthYearPicker: N,
|
|
504
501
|
showTimeInput: d.kind === "dateTime",
|
|
505
502
|
timeIntervals: e == null ? void 0 : e.timeIntervals,
|
|
506
|
-
dateFormat:
|
|
507
|
-
timeFormat:
|
|
503
|
+
dateFormat: Ht(d),
|
|
504
|
+
timeFormat: Qe,
|
|
508
505
|
timeCaption: `${l("Common.시간")}: `,
|
|
509
506
|
timeInputLabel: `${l("Common.시간")}: `,
|
|
510
507
|
renderCustomHeader: /* @__PURE__ */ i((t) => /* @__PURE__ */ P(
|
|
511
|
-
|
|
508
|
+
st,
|
|
512
509
|
{
|
|
513
510
|
...t,
|
|
514
511
|
pickerView: Ve,
|
|
515
512
|
selectedDate: re,
|
|
516
513
|
showMonthPicker: N,
|
|
517
514
|
showYearPicker: G,
|
|
518
|
-
view:
|
|
515
|
+
view: Se,
|
|
519
516
|
onCloseView: K,
|
|
520
|
-
onSelectViewDate:
|
|
521
|
-
onToggleView:
|
|
517
|
+
onSelectViewDate: Ye,
|
|
518
|
+
onToggleView: He
|
|
522
519
|
}
|
|
523
520
|
), "renderCustomHeader")
|
|
524
521
|
}
|
|
@@ -530,13 +527,13 @@ const Z = `${y} ${ee}`, x = `${y} ${B}`, Ce = "", Me = "OwpTreeGridDatePickerEd
|
|
|
530
527
|
) })
|
|
531
528
|
}
|
|
532
529
|
) : null,
|
|
533
|
-
handleDatePickerEditorButtonClick:
|
|
534
|
-
handleDatePickerEditorCellClick:
|
|
535
|
-
handleDatePickerEditorKeyDown:
|
|
536
|
-
handleDatePickerEditorStartEdit:
|
|
530
|
+
handleDatePickerEditorButtonClick: be,
|
|
531
|
+
handleDatePickerEditorCellClick: ve,
|
|
532
|
+
handleDatePickerEditorKeyDown: xe,
|
|
533
|
+
handleDatePickerEditorStartEdit: Be
|
|
537
534
|
};
|
|
538
535
|
}, "useOwpTreeGridDatePickerEditor");
|
|
539
536
|
export {
|
|
540
|
-
|
|
537
|
+
hn as useOwpTreeGridDatePickerEditor
|
|
541
538
|
};
|
|
542
539
|
//# sourceMappingURL=useOwpTreeGridDatePickerEditor.js.map
|