@owp/core 2.5.61 → 2.5.63
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/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index17.js +2 -5
- package/dist/_virtual/index17.js.map +1 -1
- package/dist/_virtual/index18.js +4 -4
- package/dist/_virtual/index19.js +4 -4
- package/dist/_virtual/index20.js +5 -2
- package/dist/_virtual/index20.js.map +1 -1
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js +73 -33
- package/dist/components/OwpErrorBoundary/OwpErrorBoundary.js.map +1 -1
- package/dist/components/OwpPageCarded/OwpPageCarded.js +10 -10
- package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js +5 -5
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js +1 -1
- package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -1
- package/dist/components/OwpPageContent/OwpPageContent.js +3 -3
- package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
- package/dist/components/{OwpPageTitle/OwpPageTitle.js → OwpPageContent/internal/PageTitle.js} +7 -7
- package/dist/components/OwpPageContent/internal/PageTitle.js.map +1 -0
- package/dist/components/OwpTable/OwpDataTable.js +98 -98
- package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
- package/dist/components/OwpTable/OwpFieldTable.js +70 -68
- package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
- package/dist/components/OwpTable/internal/OwpTableBase.js +47 -38
- package/dist/components/OwpTable/internal/OwpTableBase.js.map +1 -1
- package/dist/components/OwpTable/internal/defaultTableStyle.js +11 -8
- package/dist/components/OwpTable/internal/defaultTableStyle.js.map +1 -1
- package/dist/components/OwpTextField/OwpBarcodeInputField.js +50 -0
- package/dist/components/OwpTextField/OwpBarcodeInputField.js.map +1 -0
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +301 -284
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +811 -745
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +631 -580
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/components/{OwpHidden/OwpHidden.js → internal/Hidden.js} +9 -9
- package/dist/components/internal/Hidden.js.map +1 -0
- package/dist/components/{OwpScrollbars/OwpScrollbars.js → internal/Scrollbars.js} +6 -6
- package/dist/components/internal/Scrollbars.js.map +1 -0
- package/dist/configs/defaultConfig.js +248 -159
- package/dist/configs/defaultConfig.js.map +1 -1
- package/dist/constants/gridTheme.js +85 -61
- package/dist/constants/gridTheme.js.map +1 -1
- package/dist/constants/tableTheme.js.map +1 -1
- package/dist/constants/treeGrid.js +57 -54
- package/dist/constants/treeGrid.js.map +1 -1
- package/dist/constants.js +50 -47
- package/dist/contexts/OwpDialogsContext.js.map +1 -0
- package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.js +3 -3
- package/dist/contexts/OwpDialogsProvider.js.map +1 -0
- package/dist/{components/OwpStyleProvider → contexts}/OwpStyleProvider.js +2 -2
- package/dist/contexts/OwpStyleProvider.js.map +1 -0
- package/dist/contexts/OwpUiProvider.js +22 -22
- package/dist/contexts/OwpUiProvider.js.map +1 -1
- package/dist/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js → contexts/internal/AutoLogoutDialog.js} +4 -4
- package/dist/contexts/internal/AutoLogoutDialog.js.map +1 -0
- package/dist/{components/OwpPageLockLoading/OwpPageLockLoading.js → contexts/internal/PageLockLoading.js} +11 -11
- package/dist/contexts/internal/PageLockLoading.js.map +1 -0
- package/dist/{components/OwpSnackbarContent/OwpSnackbarContent.js → contexts/internal/SnackbarContent.js} +26 -26
- package/dist/contexts/internal/SnackbarContent.js.map +1 -0
- package/dist/contexts.js +10 -6
- package/dist/contexts.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvas.js +270 -256
- package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +195 -191
- package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +185 -188
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewControls.js +213 -206
- package/dist/features/themePreview/components/ThemePreviewControls.js.map +1 -1
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js +238 -148
- package/dist/features/themePreview/components/themePreviewCanvas.shared.js.map +1 -1
- package/dist/features/themePreview/configs/grid.js +3 -59
- package/dist/features/themePreview/configs/grid.js.map +1 -1
- package/dist/features/themePreview/configs/presets.js +90 -52
- package/dist/features/themePreview/configs/presets.js.map +1 -1
- package/dist/features/themePreview/configs/settings.js +51 -27
- package/dist/features/themePreview/configs/settings.js.map +1 -1
- package/dist/features/themePreview/configs/table.js +8 -5
- package/dist/features/themePreview/configs/table.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +26 -11
- package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +25 -11
- package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js +250 -209
- package/dist/features/themePreview/dialogs/ThemePreviewDialog.js.map +1 -1
- package/dist/features/themePreview/hooks/useThemePreview.js +373 -274
- package/dist/features/themePreview/hooks/useThemePreview.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewDefinitions.js +79 -63
- package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
- package/dist/features/themePreview/utils/themePreviewExport.js +1 -1
- package/dist/features/themePreview/utils/themePreviewSettings.js +258 -170
- package/dist/features/themePreview/utils/themePreviewSettings.js.map +1 -1
- package/dist/hooks/useOwpDialogs.js +1 -1
- package/dist/index.js +89 -107
- package/dist/index.js.map +1 -1
- package/dist/layout/Layout.js +18 -18
- package/dist/layout/Layout.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js +1 -1
- package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
- package/dist/layout/components/navbar/style/NavbarStyleContent.js +11 -11
- package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
- package/dist/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.js → layout/components/navigation/internal/NavLinkAdapter.js} +25 -25
- package/dist/layout/components/navigation/internal/NavLinkAdapter.js.map +1 -0
- package/dist/layout/components/navigation/vertical/types/NavVerticalCollapse.js +15 -15
- package/dist/layout/components/navigation/vertical/types/NavVerticalGroup.js +6 -6
- package/dist/layout/components/navigation/vertical/types/NavVerticalItem.js +4 -4
- package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
- package/dist/layout/components/toolbar/ToolbarLayout.js +29 -29
- package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
- package/dist/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.js → layout/components/toolbar/internal/PageBreadcrumb.js} +9 -9
- package/dist/layout/components/toolbar/internal/PageBreadcrumb.js.map +1 -0
- package/dist/{components/OwpPageSkeleton/OwpPageSkeleton.js → layout/internal/PageSkeleton.js} +9 -9
- package/dist/layout/internal/PageSkeleton.js.map +1 -0
- package/dist/{components/OwpSuspense/OwpSuspense.js → layout/internal/Suspense.js} +37 -37
- package/dist/layout/internal/Suspense.js.map +1 -0
- package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.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/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.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/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/owp-app.css +1 -1
- package/dist/types/components/{OwpPageTitle/OwpPageTitle.d.ts → OwpPageContent/internal/PageTitle.d.ts} +3 -3
- package/dist/types/components/OwpTable/internal/defaultTableStyle.d.ts +5 -2
- package/dist/types/components/OwpTextField/OwpBarcodeInputField.d.ts +15 -0
- package/dist/types/components/OwpTextField/index.d.ts +1 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +9 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +8 -1
- package/dist/types/components/{OwpHidden/OwpHidden.d.ts → internal/Hidden.d.ts} +4 -4
- package/dist/types/components/{OwpScrollbars/OwpScrollbars.d.ts → internal/Scrollbars.d.ts} +7 -7
- package/dist/types/configs/defaultConfig.d.ts +4 -4
- package/dist/types/constants/gridTheme.d.ts +24 -0
- package/dist/types/constants/tableTheme.d.ts +1 -0
- package/dist/types/constants/treeGrid.d.ts +8 -2
- package/dist/types/contexts/index.d.ts +2 -0
- package/dist/types/{components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.d.ts → contexts/internal/AutoLogoutDialog.d.ts} +2 -2
- package/dist/types/contexts/internal/PageLockLoading.d.ts +7 -0
- package/dist/types/contexts/internal/SnackbarContent.d.ts +3 -0
- package/dist/types/features/themePreview/components/ThemePreviewColorField.d.ts +4 -5
- package/dist/types/features/themePreview/components/themePreviewCanvas.shared.d.ts +38 -2
- package/dist/types/features/themePreview/configs/grid.d.ts +14 -0
- package/dist/types/features/themePreview/configs/presets.d.ts +4 -2
- package/dist/types/features/themePreview/configs/settings.d.ts +40 -0
- package/dist/types/features/themePreview/configs/table.d.ts +2 -0
- package/dist/types/features/themePreview/hooks/useThemePreview.d.ts +2 -0
- package/dist/types/hooks/usePageLockLoading.d.ts +3 -3
- package/dist/types/index.d.ts +1 -10
- package/dist/types/{components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts → layout/components/navigation/internal/NavLinkAdapter.d.ts} +3 -3
- package/dist/types/layout/internal/PageSkeleton.d.ts +6 -0
- package/dist/types/layout/internal/Suspense.d.ts +13 -0
- package/dist/types/types/OwpGridThemeTypes.d.ts +30 -1
- package/dist/types/types/OwpMuiThemeTypes.d.ts +16 -0
- package/dist/types/types/OwpTableThemeTypes.d.ts +2 -0
- package/dist/types/types/PageLockLoadingTypes.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/utils/treeGridUtil.js +44 -38
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/OwpAutoLogoutDialog/OwpAutoLogoutDialog.js.map +0 -1
- package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js +0 -38
- package/dist/components/OwpBarcodeInput/OwpBarcodeInputField.js.map +0 -1
- package/dist/components/OwpDialogsProvider/OwpDialogsContext.js.map +0 -1
- package/dist/components/OwpDialogsProvider/OwpDialogsProvider.js.map +0 -1
- package/dist/components/OwpHidden/OwpHidden.js.map +0 -1
- package/dist/components/OwpNavLinkAdapter/OwpNavLinkAdapter.js.map +0 -1
- package/dist/components/OwpPageBreadcrumb/OwpPageBreadcrumb.js.map +0 -1
- package/dist/components/OwpPageLockLoading/OwpPageLockLoading.js.map +0 -1
- package/dist/components/OwpPageSkeleton/OwpPageSkeleton.js.map +0 -1
- package/dist/components/OwpPageTitle/OwpPageTitle.js.map +0 -1
- package/dist/components/OwpScrollbars/OwpScrollbars.js.map +0 -1
- package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +0 -1
- package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +0 -1
- package/dist/components/OwpSuspense/OwpSuspense.js.map +0 -1
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +0 -66
- package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +0 -1
- package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js +0 -49
- package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +0 -1
- package/dist/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/ArrowBackIosNew.js +0 -9
- package/dist/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/ArrowBackIosNew.js.map +0 -1
- package/dist/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/ArrowForwardIos.js +0 -9
- package/dist/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/ArrowForwardIos.js.map +0 -1
- package/dist/types/components/OwpAutoLogoutDialog/index.d.ts +0 -1
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInput.d.ts +0 -1
- package/dist/types/components/OwpBarcodeInput/OwpBarcodeInputField.d.ts +0 -7
- package/dist/types/components/OwpBarcodeInput/index.d.ts +0 -1
- package/dist/types/components/OwpDialogsProvider/index.d.ts +0 -1
- package/dist/types/components/OwpHidden/index.d.ts +0 -2
- package/dist/types/components/OwpNavLinkAdapter/index.d.ts +0 -2
- package/dist/types/components/OwpPageBreadcrumb/index.d.ts +0 -2
- package/dist/types/components/OwpPageLockLoading/OwpPageLockLoading.d.ts +0 -15
- package/dist/types/components/OwpPageLockLoading/index.d.ts +0 -1
- package/dist/types/components/OwpPageSkeleton/OwpPageSkeleton.d.ts +0 -6
- package/dist/types/components/OwpPageSkeleton/index.d.ts +0 -1
- package/dist/types/components/OwpPageTitle/index.d.ts +0 -1
- package/dist/types/components/OwpScrollbars/index.d.ts +0 -1
- package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +0 -3
- package/dist/types/components/OwpStyleProvider/index.d.ts +0 -2
- package/dist/types/components/OwpSuspense/OwpSuspense.d.ts +0 -16
- package/dist/types/components/OwpSuspense/index.d.ts +0 -1
- package/dist/types/components/OwpZoomImageSlider/OwpZoomImageSlider.d.ts +0 -20
- package/dist/types/components/OwpZoomImageSlider/index.d.ts +0 -1
- package/dist/types/components/OwpZoomImageSlider/internal/ZoomImage.d.ts +0 -7
- /package/dist/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.js +0 -0
- /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsContext.d.ts +0 -0
- /package/dist/types/{components/OwpDialogsProvider → contexts}/OwpDialogsProvider.d.ts +0 -0
- /package/dist/types/{components/OwpStyleProvider → contexts}/OwpStyleProvider.d.ts +0 -0
- /package/dist/types/{components/OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts → layout/components/toolbar/internal/PageBreadcrumb.d.ts} +0 -0
|
@@ -1,430 +1,447 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { resolveOwpGridTheme as
|
|
5
|
-
import { DEFAULT_TABLE_RADIUS as
|
|
6
|
-
import { resolveTreeGridColorNumber as Q, TREEGRID_INPUT_CELL_COLOR as
|
|
7
|
-
import { useGetCurrentSettings as
|
|
8
|
-
import { useOwpTranslation as
|
|
9
|
-
import { useGetCurrentLanguage as
|
|
10
|
-
import { useConfirm as
|
|
11
|
-
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as
|
|
12
|
-
import { getTreeGridPerfTimestamp as Re, countTreeGridPerf as
|
|
13
|
-
import { useMemo as yr, useRef as r, useState as O, useEffect as
|
|
14
|
-
import { useOwpTreeGridDatePickerEditor as
|
|
15
|
-
import { useOwpTreeGridErrorTooltip as
|
|
16
|
-
import { useOwpTreeGridAddedRowBoxOverlay as
|
|
17
|
-
import { useOwpTreeGridOverlayFrame as
|
|
18
|
-
import { useOwpTreeGridScrollRenderLoading as
|
|
19
|
-
import { hasTreeGridExplicitEnterMode as
|
|
20
|
-
import { applyTreeGridLayoutToGrid as
|
|
21
|
-
import { OwpTreeGridAddedRowBoxOverlay as
|
|
22
|
-
import { OwpTreeGridGlobalStyles as
|
|
23
|
-
import { OwpTreeGridLoadingOverlay as
|
|
24
|
-
import { OwpTreeGridNoDataOverlay as
|
|
25
|
-
import { OwpTreeGridScrollLoadingOverlay as
|
|
26
|
-
import { createTreeGridThemeContainerStyle as
|
|
27
|
-
import { isEmpty as
|
|
28
|
-
import { isEqual as
|
|
29
|
-
import { omit as
|
|
30
|
-
import { isPlainObject as
|
|
31
|
-
const
|
|
1
|
+
var nt = Object.defineProperty;
|
|
2
|
+
var c = (e, s) => nt(e, "name", { value: s, configurable: !0 });
|
|
3
|
+
import { jsxs as it, jsx as I } 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 ct } from "../../constants/gridTheme.js";
|
|
5
|
+
import { DEFAULT_TABLE_RADIUS as lt } from "../../constants/table.js";
|
|
6
|
+
import { resolveTreeGridColorNumber as Q, TREEGRID_INPUT_CELL_COLOR as vr, TREEGRID_CELL_HIGHLIGHT_COLOR as hr } from "../../constants/treeGrid.js";
|
|
7
|
+
import { useGetCurrentSettings as at } from "../../hooks/useOwpSettings.js";
|
|
8
|
+
import { useOwpTranslation as st } from "../../hooks/useOwpTranslation.js";
|
|
9
|
+
import { useGetCurrentLanguage as dt } from "../../hooks/internal/useCurrentLanguage.js";
|
|
10
|
+
import { useConfirm as ut } from "../../hooks/useConfirm.js";
|
|
11
|
+
import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as _r } from "../../utils/internal/treeGridBodyRowsEvent.js";
|
|
12
|
+
import { getTreeGridPerfTimestamp as Re, countTreeGridPerf as Lr, logTreeGridPerf as wr, measureTreeGridPerf as Dr } from "./internal/utils/perf.js";
|
|
13
|
+
import { useMemo as yr, useRef as r, useState as O, useEffect as p, useLayoutEffect as ft } from "react";
|
|
14
|
+
import { useOwpTreeGridDatePickerEditor as mt } from "./internal/hooks/useOwpTreeGridDatePickerEditor.js";
|
|
15
|
+
import { useOwpTreeGridErrorTooltip as Rt } from "./internal/hooks/useOwpTreeGridErrorTooltip.js";
|
|
16
|
+
import { useOwpTreeGridAddedRowBoxOverlay as Ct } from "./internal/hooks/useOwpTreeGridAddedRowBoxOverlay.js";
|
|
17
|
+
import { useOwpTreeGridOverlayFrame as Tt } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
|
|
18
|
+
import { useOwpTreeGridScrollRenderLoading as gt } from "./internal/hooks/useOwpTreeGridScrollRenderLoading.js";
|
|
19
|
+
import { hasTreeGridExplicitEnterMode as br, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as Ir, bindTreeGridEvents as Et, getTreeGridBodyDataCount as Ce, buildTreeGridInitializationOptions as pt, hasTreeGridDisplayDataRows as Te, replaceTreeGridBodyData as Bt, syncTreeGridChangedCellHighlight as Gt, captureTreeGridChangeBaselines as vt } from "./internal/treeGridRuntime.js";
|
|
20
|
+
import { applyTreeGridLayoutToGrid as ht } from "./internal/treeGridLayout.js";
|
|
21
|
+
import { OwpTreeGridAddedRowBoxOverlay as _t } from "./internal/OwpTreeGridAddedRowBoxOverlay.js";
|
|
22
|
+
import { OwpTreeGridGlobalStyles as Lt } from "./internal/OwpTreeGridGlobalStyles.js";
|
|
23
|
+
import { OwpTreeGridLoadingOverlay as wt } from "./internal/OwpTreeGridLoadingOverlay.js";
|
|
24
|
+
import { OwpTreeGridNoDataOverlay as Dt } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
25
|
+
import { OwpTreeGridScrollLoadingOverlay as yt } from "./internal/OwpTreeGridScrollLoadingOverlay.js";
|
|
26
|
+
import { setTreeGridFloatingLayerCssVariable as Or, TREE_GRID_ENUM_MENU_HOVER_BACKGROUND_COLOR_CSS_VARIABLE as bt, TREE_GRID_ENUM_MENU_SELECTED_BACKGROUND_COLOR_CSS_VARIABLE as It, createTreeGridThemeContainerStyle as Ot, TREE_GRID_THEME_WRAPPER_CLASS as kt, TREE_GRID_THEME_TABLE_RADIUS_CLASS as St } from "./internal/treeGridTheme.js";
|
|
27
|
+
import { isEmpty as kr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
|
|
28
|
+
import { isEqual as At } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
|
|
29
|
+
import { omit as Mt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
|
|
30
|
+
import { isPlainObject as Nt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
|
|
31
|
+
const Ft = "NumberToString(count(4),',0')", Pt = ["Formula", "FormulaFormula"], Vt = 33, xt = 50, Ht = Object.prototype.hasOwnProperty, Ut = /* @__PURE__ */ c((e) => !!e && typeof e.Dispose == "function", "isTreeGridInstance"), Sr = /* @__PURE__ */ c((e) => JSON.stringify(e) ?? '""', "toTreeGridFormulaStringLiteral"), zt = /* @__PURE__ */ c((e, s) => `${Sr(
|
|
32
32
|
`${e} : `
|
|
33
|
-
)}+${
|
|
33
|
+
)}+${Ft}+${Sr(
|
|
34
34
|
` ${s}`
|
|
35
|
-
)}`, "buildTreeGridTotalCountToolbarFormula"),
|
|
36
|
-
(s) =>
|
|
37
|
-
) : !1, "hasTreeGridToolbarFormulaField"),
|
|
38
|
-
var
|
|
39
|
-
const s = (
|
|
40
|
-
if (!e || !s ||
|
|
35
|
+
)}`, "buildTreeGridTotalCountToolbarFormula"), Wt = /* @__PURE__ */ c((e) => Nt(e) ? Pt.some(
|
|
36
|
+
(s) => Ht.call(e, s)
|
|
37
|
+
) : !1, "hasTreeGridToolbarFormulaField"), Mr = /* @__PURE__ */ c((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), Ar = /* @__PURE__ */ c((e) => e != null && !Mr(e), "isTreeGridEnabledConfigValue"), jt = /* @__PURE__ */ c((e) => {
|
|
38
|
+
var V;
|
|
39
|
+
const s = (V = e == null ? void 0 : e.Cols) == null ? void 0 : V.Panel;
|
|
40
|
+
if (!e || !s || Mr(s.Visible))
|
|
41
41
|
return 0;
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
}, "resolveTreeGridScrollLoadingPanelLeftInset"),
|
|
42
|
+
const P = Ar(e.Selecting), k = Ar(e.Deleting);
|
|
43
|
+
return P && k ? xt : P || k ? Vt : 0;
|
|
44
|
+
}, "resolveTreeGridScrollLoadingPanelLeftInset"), Kt = [
|
|
45
45
|
"selectRow"
|
|
46
|
-
],
|
|
46
|
+
], _o = /* @__PURE__ */ c(({
|
|
47
47
|
id: e = "treeGridWrapper",
|
|
48
48
|
containerStyle: s,
|
|
49
|
-
containerClassName:
|
|
50
|
-
toolbarRowBackgroundColor:
|
|
51
|
-
className:
|
|
52
|
-
style:
|
|
49
|
+
containerClassName: P,
|
|
50
|
+
toolbarRowBackgroundColor: k,
|
|
51
|
+
className: V,
|
|
52
|
+
style: Nr,
|
|
53
53
|
height: ge = "100%",
|
|
54
54
|
width: Ee = "100%",
|
|
55
|
-
canUseTableRadius:
|
|
56
|
-
tableBorderRadius:
|
|
55
|
+
canUseTableRadius: pe = !1,
|
|
56
|
+
tableBorderRadius: Fr = lt,
|
|
57
57
|
suppressCfg: X = 3,
|
|
58
|
-
showToolbarTotalCount:
|
|
59
|
-
hideChildHeaderSortButtons:
|
|
60
|
-
selectionScope:
|
|
61
|
-
layoutUrl:
|
|
58
|
+
showToolbarTotalCount: Be = !0,
|
|
59
|
+
hideChildHeaderSortButtons: Ge = !0,
|
|
60
|
+
selectionScope: ve = "native",
|
|
61
|
+
layoutUrl: Pr,
|
|
62
62
|
layoutData: Z,
|
|
63
|
-
disabledAnimations: ee =
|
|
64
|
-
dataUrl:
|
|
65
|
-
layoutOverrides:
|
|
63
|
+
disabledAnimations: ee = Kt,
|
|
64
|
+
dataUrl: Vr,
|
|
65
|
+
layoutOverrides: B,
|
|
66
66
|
data: f,
|
|
67
|
-
useDataUrl:
|
|
68
|
-
onSelect:
|
|
67
|
+
useDataUrl: he,
|
|
68
|
+
onSelect: _e,
|
|
69
69
|
onRowClick: Le,
|
|
70
|
-
onRowAdd:
|
|
71
|
-
onRowDelete:
|
|
72
|
-
onRowUndelete:
|
|
73
|
-
onRowChange:
|
|
70
|
+
onRowAdd: we,
|
|
71
|
+
onRowDelete: De,
|
|
72
|
+
onRowUndelete: ye,
|
|
73
|
+
onRowChange: be,
|
|
74
74
|
onClickButton: Ie,
|
|
75
75
|
onSave: Oe,
|
|
76
|
-
onReady:
|
|
77
|
-
onAfterValueChanged:
|
|
78
|
-
datePickerEditor:
|
|
79
|
-
highlightEditableCells:
|
|
80
|
-
highlightChangedCells:
|
|
81
|
-
syncDeletedRowCanEdit:
|
|
82
|
-
confirmDeletedRowRemoval:
|
|
83
|
-
loading:
|
|
76
|
+
onReady: ke,
|
|
77
|
+
onAfterValueChanged: Se,
|
|
78
|
+
datePickerEditor: xr,
|
|
79
|
+
highlightEditableCells: Ae = !0,
|
|
80
|
+
highlightChangedCells: Me = !0,
|
|
81
|
+
syncDeletedRowCanEdit: Ne = !0,
|
|
82
|
+
confirmDeletedRowRemoval: Hr = !0,
|
|
83
|
+
loading: x,
|
|
84
84
|
showLoading: u = !0
|
|
85
85
|
}) => {
|
|
86
|
-
var
|
|
87
|
-
const { t:
|
|
88
|
-
() =>
|
|
86
|
+
var pr, Br;
|
|
87
|
+
const { t: h } = st(), { confirmDelete: Ur } = ut(), re = at(), te = (Br = (pr = re == null ? void 0 : re.theme) == null ? void 0 : pr.main) == null ? void 0 : Br.grid, Fe = h("Common.전체"), Pe = h("Common.건"), oe = yr(
|
|
88
|
+
() => Be && !Wt(B == null ? void 0 : B.Toolbar) ? zt(Fe, Pe) : void 0,
|
|
89
89
|
[
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
B,
|
|
91
|
+
Pe,
|
|
92
|
+
Fe,
|
|
93
|
+
Be
|
|
94
94
|
]
|
|
95
|
-
),
|
|
96
|
-
|
|
97
|
-
), We = r(ee),
|
|
98
|
-
title:
|
|
99
|
-
description:
|
|
100
|
-
okText:
|
|
101
|
-
}) ? "remove" : "undelete" : void 0,
|
|
102
|
-
onSelect:
|
|
95
|
+
), l = r(null), _ = r(null), Ve = r(null), ne = r(null), ie = r(B), xe = r(oe), He = r(X), Ue = r(Ge), ze = r(
|
|
96
|
+
ve
|
|
97
|
+
), We = r(ee), ce = r(f), je = r(br(Z)), Ke = Hr ? async () => await Ur({
|
|
98
|
+
title: h("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
|
|
99
|
+
description: h("Message.취소하면 삭제 상태가 해제됩니다."),
|
|
100
|
+
okText: h("Button.완전 삭제")
|
|
101
|
+
}) ? "remove" : "undelete" : void 0, H = r({
|
|
102
|
+
onSelect: _e,
|
|
103
103
|
onRowClick: Le,
|
|
104
|
-
onRowAdd:
|
|
105
|
-
onRowDelete:
|
|
106
|
-
onBeforeRowUndelete:
|
|
107
|
-
onRowUndelete:
|
|
108
|
-
onRowChange:
|
|
104
|
+
onRowAdd: we,
|
|
105
|
+
onRowDelete: De,
|
|
106
|
+
onBeforeRowUndelete: Ke,
|
|
107
|
+
onRowUndelete: ye,
|
|
108
|
+
onRowChange: be,
|
|
109
109
|
onClickButton: Ie,
|
|
110
110
|
onSave: Oe,
|
|
111
|
-
onReady:
|
|
112
|
-
onAfterValueChanged:
|
|
113
|
-
}), L = r(void 0), U = r(!1), z = r(void 0), G = r(void 0),
|
|
114
|
-
|
|
115
|
-
),
|
|
116
|
-
|
|
117
|
-
), [
|
|
118
|
-
() =>
|
|
111
|
+
onReady: ke,
|
|
112
|
+
onAfterValueChanged: Se
|
|
113
|
+
}), L = r(void 0), U = r(!1), z = r(void 0), G = r(void 0), $e = r(!1), w = r(0), qe = u && (x === !0 || x !== void 0 && f !== void 0 && kr(f)), W = r(
|
|
114
|
+
qe ? Date.now() : null
|
|
115
|
+
), S = r(void 0), v = r(null), A = r(void 0), M = r(void 0), Je = r(Ae), le = r(Me), Ye = r(Ne), [D, zr] = O(!1), [Wr, j] = O(
|
|
116
|
+
qe
|
|
117
|
+
), [jr, y] = O(!1), [Qe, Xe] = O(!1), [ae, Kr] = O(!1), [se, $r] = O(!1), K = dt(), t = yr(
|
|
118
|
+
() => ct(te),
|
|
119
119
|
[te]
|
|
120
120
|
), Ze = r(
|
|
121
|
-
Q(
|
|
121
|
+
Q(t.editable.backgroundColor) ?? Q(vr)
|
|
122
122
|
), de = r(
|
|
123
|
-
|
|
124
|
-
), er = r(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
t.changed.backgroundColor ?? hr
|
|
124
|
+
), er = r(t.changed.rowBackgroundColor), rr = r(t.added.rowBackgroundColor), tr = r(t.deleted.rowBackgroundColor), or = r(t.state.focusedRowBackgroundColor), $ = r(/* @__PURE__ */ new WeakMap()), nr = r(t.state.focusedCellBackgroundColor), ir = r(t.state.selectedCellBackgroundColor), cr = r(t.state.hoverCellBackgroundColor), lr = r(t.state.hoverCellBorderColor), ar = r(t.state.editingCellBorderColor), sr = r(t.state.hintBackgroundColor), dr = r(t.enumMenu.hoverBackgroundColor), ur = r(
|
|
125
|
+
t.enumMenu.selectedBackgroundColor
|
|
126
|
+
), fr = r(K.id), qr = u && f !== void 0 && D && G.current !== f, ue = u && Wr || u && (jr || qr), fe = !ue && f !== void 0 && kr(f) && !Qe, N = ae && !se, mr = N && ue, Rr = N && fe, Cr = /* @__PURE__ */ c((o) => {
|
|
127
|
+
Xe(Te(o));
|
|
128
|
+
}, "syncHasDisplayDataRows"), Jr = /* @__PURE__ */ c((o, n, a, d, g) => {
|
|
129
|
+
var m, i;
|
|
130
|
+
le.current && n.Fixed !== "Foot" && Gt({
|
|
129
131
|
gridId: e,
|
|
130
|
-
grid:
|
|
131
|
-
row:
|
|
132
|
+
grid: o,
|
|
133
|
+
row: n,
|
|
132
134
|
col: a,
|
|
133
135
|
backgroundColor: de.current,
|
|
134
|
-
baselineMap:
|
|
136
|
+
baselineMap: $.current,
|
|
135
137
|
highlightRefresh: g == null ? void 0 : g.highlightRefresh
|
|
136
138
|
});
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
+
const C = ((m = H.current) == null ? void 0 : m.onAfterValueChanged) ?? ((i = H.current) == null ? void 0 : i.onRowChange);
|
|
140
|
+
C == null || C(o, n, a, d);
|
|
139
141
|
}, "handleDatePickerEditorValueChange");
|
|
140
|
-
ie.current =
|
|
142
|
+
ie.current = B, xe.current = oe, He.current = X, Ue.current = Ge, ze.current = ve, We.current = ee, ce.current = f, je.current = br(Z), Je.current = Ae, le.current = Me, Ye.current = Ne, Ze.current = Q(t.editable.backgroundColor) ?? Q(vr), de.current = t.changed.backgroundColor ?? hr, er.current = t.changed.rowBackgroundColor, rr.current = t.added.rowBackgroundColor, tr.current = t.deleted.rowBackgroundColor, or.current = t.state.focusedRowBackgroundColor, nr.current = t.state.focusedCellBackgroundColor, ir.current = t.state.selectedCellBackgroundColor, cr.current = t.state.hoverCellBackgroundColor, lr.current = t.state.hoverCellBorderColor, ar.current = t.state.editingCellBorderColor, sr.current = t.state.hintBackgroundColor, dr.current = t.enumMenu.hoverBackgroundColor, ur.current = t.enumMenu.selectedBackgroundColor, p(() => {
|
|
143
|
+
Or(
|
|
144
|
+
bt,
|
|
145
|
+
t.enumMenu.hoverBackgroundColor
|
|
146
|
+
), Or(
|
|
147
|
+
It,
|
|
148
|
+
t.enumMenu.selectedBackgroundColor
|
|
149
|
+
);
|
|
150
|
+
}, [
|
|
151
|
+
t.enumMenu.hoverBackgroundColor,
|
|
152
|
+
t.enumMenu.selectedBackgroundColor
|
|
153
|
+
]);
|
|
141
154
|
const {
|
|
142
|
-
datePickerEditorElement:
|
|
143
|
-
handleDatePickerEditorButtonClick:
|
|
144
|
-
handleDatePickerEditorCellClick:
|
|
145
|
-
handleDatePickerEditorKeyDown:
|
|
146
|
-
handleDatePickerEditorStartEdit:
|
|
147
|
-
} =
|
|
148
|
-
config:
|
|
149
|
-
treeGridInstanceRef:
|
|
150
|
-
isTreeGridReady:
|
|
151
|
-
onValueChange:
|
|
152
|
-
}), { errorTooltipElement:
|
|
153
|
-
|
|
154
|
-
onSelect:
|
|
155
|
+
datePickerEditorElement: Yr,
|
|
156
|
+
handleDatePickerEditorButtonClick: Qr,
|
|
157
|
+
handleDatePickerEditorCellClick: Xr,
|
|
158
|
+
handleDatePickerEditorKeyDown: Zr,
|
|
159
|
+
handleDatePickerEditorStartEdit: et
|
|
160
|
+
} = mt({
|
|
161
|
+
config: xr,
|
|
162
|
+
treeGridInstanceRef: l,
|
|
163
|
+
isTreeGridReady: D,
|
|
164
|
+
onValueChange: Jr
|
|
165
|
+
}), { errorTooltipElement: rt, showErrorTooltip: tt, hideErrorTooltip: R } = Rt();
|
|
166
|
+
H.current = {
|
|
167
|
+
onSelect: _e,
|
|
155
168
|
onRowClick: Le,
|
|
156
|
-
onRowAdd:
|
|
157
|
-
onRowDelete:
|
|
158
|
-
onBeforeRowUndelete:
|
|
159
|
-
onRowUndelete:
|
|
160
|
-
onRowChange:
|
|
169
|
+
onRowAdd: we,
|
|
170
|
+
onRowDelete: De,
|
|
171
|
+
onBeforeRowUndelete: Ke,
|
|
172
|
+
onRowUndelete: ye,
|
|
173
|
+
onRowChange: be,
|
|
161
174
|
onClickButton: Ie,
|
|
162
175
|
onSave: Oe,
|
|
163
|
-
onReady:
|
|
164
|
-
onAfterValueChanged:
|
|
165
|
-
onInternalButtonClick:
|
|
166
|
-
onInternalCellClick:
|
|
167
|
-
onInternalKeyDown:
|
|
168
|
-
onInternalStartEdit:
|
|
176
|
+
onReady: ke,
|
|
177
|
+
onAfterValueChanged: Se,
|
|
178
|
+
onInternalButtonClick: Qr,
|
|
179
|
+
onInternalCellClick: Xr,
|
|
180
|
+
onInternalKeyDown: Zr,
|
|
181
|
+
onInternalStartEdit: et
|
|
169
182
|
};
|
|
170
|
-
const
|
|
171
|
-
containerRef:
|
|
172
|
-
treeGridInstanceRef:
|
|
173
|
-
enabled:
|
|
183
|
+
const Tr = gt({
|
|
184
|
+
containerRef: _,
|
|
185
|
+
treeGridInstanceRef: l,
|
|
186
|
+
enabled: N && u && D && Qe && !ue && !fe,
|
|
174
187
|
resetKey: f
|
|
175
|
-
}),
|
|
176
|
-
visible:
|
|
177
|
-
containerRef:
|
|
178
|
-
treeGridInstanceRef:
|
|
188
|
+
}), ot = N && Tr !== null, me = Tt({
|
|
189
|
+
visible: mr || Rr,
|
|
190
|
+
containerRef: _,
|
|
191
|
+
treeGridInstanceRef: l,
|
|
179
192
|
debugId: e
|
|
180
|
-
}),
|
|
181
|
-
containerRef:
|
|
182
|
-
treeGridInstanceRef:
|
|
183
|
-
enabled:
|
|
184
|
-
}),
|
|
185
|
-
k.current !== void 0 && (window.clearTimeout(k.current), k.current = void 0);
|
|
186
|
-
}, "clearBindingLoadingHideTimeout"), K = /* @__PURE__ */ l(() => {
|
|
193
|
+
}), gr = Ct({
|
|
194
|
+
containerRef: _,
|
|
195
|
+
treeGridInstanceRef: l,
|
|
196
|
+
enabled: N && D
|
|
197
|
+
}), Er = gr.frames, F = /* @__PURE__ */ c(() => {
|
|
187
198
|
A.current !== void 0 && (window.clearTimeout(A.current), A.current = void 0);
|
|
188
|
-
}, "
|
|
189
|
-
|
|
199
|
+
}, "clearBindingLoadingHideTimeout"), q = /* @__PURE__ */ c(() => {
|
|
200
|
+
S.current !== void 0 && (window.clearTimeout(S.current), S.current = void 0);
|
|
201
|
+
}, "clearExternalLoadingHideTimeout"), J = /* @__PURE__ */ c(() => {
|
|
202
|
+
M.current !== void 0 && (window.clearTimeout(M.current), M.current = void 0);
|
|
190
203
|
}, "clearBodyReloadStartTimeout");
|
|
191
|
-
|
|
192
|
-
const
|
|
204
|
+
p(() => {
|
|
205
|
+
const o = /* @__PURE__ */ c((n) => {
|
|
193
206
|
var d;
|
|
194
|
-
((d =
|
|
207
|
+
((d = n.detail) == null ? void 0 : d.gridId) === e && Xe(Te(l.current));
|
|
195
208
|
}, "handleBodyRowsChanged");
|
|
196
|
-
return window.addEventListener(
|
|
197
|
-
window.removeEventListener(
|
|
209
|
+
return window.addEventListener(_r, o), () => {
|
|
210
|
+
window.removeEventListener(_r, o);
|
|
198
211
|
};
|
|
199
|
-
}, [e]),
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
return
|
|
203
|
-
|
|
212
|
+
}, [e]), p(() => {
|
|
213
|
+
const o = _.current;
|
|
214
|
+
if (o)
|
|
215
|
+
return o.addEventListener("scroll", R, !0), () => {
|
|
216
|
+
o.removeEventListener("scroll", R, !0);
|
|
204
217
|
};
|
|
205
|
-
}, [R]),
|
|
206
|
-
u || (
|
|
207
|
-
}, [u]),
|
|
218
|
+
}, [R]), p(() => {
|
|
219
|
+
u || (q(), W.current = null, j(!1), J(), F(), v.current = null, y(!1));
|
|
220
|
+
}, [u]), p(() => {
|
|
208
221
|
if (!u)
|
|
209
222
|
return;
|
|
210
|
-
if (
|
|
211
|
-
|
|
223
|
+
if (x === !0) {
|
|
224
|
+
q(), W.current = Date.now(), j(!0);
|
|
212
225
|
return;
|
|
213
226
|
}
|
|
214
227
|
if (W.current === null) {
|
|
215
228
|
j(!1);
|
|
216
229
|
return;
|
|
217
230
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
}, [ae,
|
|
231
|
+
q(), ae && (S.current = window.setTimeout(() => {
|
|
232
|
+
S.current = void 0, W.current = null, j(!1);
|
|
233
|
+
}, Ir));
|
|
234
|
+
}, [ae, x, u]), p(() => {
|
|
222
235
|
if (!se || typeof window > "u")
|
|
223
236
|
return;
|
|
224
|
-
const
|
|
225
|
-
if (!
|
|
237
|
+
const o = _.current;
|
|
238
|
+
if (!o)
|
|
226
239
|
return;
|
|
227
|
-
let
|
|
228
|
-
const g = /* @__PURE__ */
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
!
|
|
240
|
+
let n, a = Math.round(o.clientWidth), d = Math.round(o.clientHeight);
|
|
241
|
+
const g = /* @__PURE__ */ c(() => {
|
|
242
|
+
n === void 0 && (n = window.requestAnimationFrame(() => {
|
|
243
|
+
n = void 0;
|
|
244
|
+
const i = l.current;
|
|
245
|
+
!i || i.Loading || i.Rendering || i.Update();
|
|
233
246
|
}));
|
|
234
|
-
}, "retryTreeGridSizeErrorRender"),
|
|
235
|
-
const
|
|
236
|
-
|
|
247
|
+
}, "retryTreeGridSizeErrorRender"), C = /* @__PURE__ */ c((i, E) => {
|
|
248
|
+
const T = Math.round(i), b = Math.round(E);
|
|
249
|
+
T === a && b === d || (a = T, d = b, !(T <= 0 || b <= 0) && g());
|
|
237
250
|
}, "handleContainerSizeChange");
|
|
238
251
|
if (typeof ResizeObserver > "u") {
|
|
239
|
-
const
|
|
240
|
-
|
|
252
|
+
const i = /* @__PURE__ */ c(() => {
|
|
253
|
+
C(o.clientWidth, o.clientHeight);
|
|
241
254
|
}, "handleWindowResize");
|
|
242
|
-
return window.addEventListener("resize",
|
|
243
|
-
|
|
255
|
+
return window.addEventListener("resize", i), () => {
|
|
256
|
+
n !== void 0 && window.cancelAnimationFrame(n), window.removeEventListener("resize", i);
|
|
244
257
|
};
|
|
245
258
|
}
|
|
246
|
-
const m = new ResizeObserver((
|
|
247
|
-
const E =
|
|
248
|
-
E &&
|
|
259
|
+
const m = new ResizeObserver((i) => {
|
|
260
|
+
const E = i[i.length - 1];
|
|
261
|
+
E && C(E.contentRect.width, E.contentRect.height);
|
|
249
262
|
});
|
|
250
|
-
return m.observe(
|
|
251
|
-
|
|
263
|
+
return m.observe(o), () => {
|
|
264
|
+
n !== void 0 && window.cancelAnimationFrame(n), m.disconnect();
|
|
252
265
|
};
|
|
253
|
-
}, [se]),
|
|
266
|
+
}, [se]), p(() => {
|
|
254
267
|
var a;
|
|
255
|
-
if (
|
|
268
|
+
if (K.id !== fr.current && l.current && ((a = l.current) == null || a.Dispose(), l.current = null, fr.current = K.id), l.current)
|
|
256
269
|
return;
|
|
257
|
-
|
|
270
|
+
Et({
|
|
258
271
|
id: e,
|
|
259
|
-
latestEventHandlersRef:
|
|
272
|
+
latestEventHandlersRef: H,
|
|
260
273
|
layoutHasExplicitEnterModeRef: je,
|
|
261
274
|
highlightEditableCellsRef: Je,
|
|
262
|
-
highlightChangedCellsRef:
|
|
275
|
+
highlightChangedCellsRef: le,
|
|
263
276
|
syncDeletedRowCanEditRef: Ye,
|
|
264
277
|
editableCellBackgroundColorValueRef: Ze,
|
|
265
278
|
changedCellBackgroundColorRef: de,
|
|
266
279
|
changedRowBackgroundColorRef: er,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
280
|
+
addedRowBackgroundColorRef: rr,
|
|
281
|
+
deletedRowBackgroundColorRef: tr,
|
|
282
|
+
focusedRowBackgroundColorRef: or,
|
|
283
|
+
focusedCellBackgroundColorRef: nr,
|
|
284
|
+
selectedCellBackgroundColorRef: ir,
|
|
285
|
+
hoverCellBackgroundColorRef: cr,
|
|
286
|
+
hoverCellBorderColorRef: lr,
|
|
287
|
+
editingCellBorderColorRef: ar,
|
|
288
|
+
hintBackgroundColorRef: sr,
|
|
289
|
+
enumMenuHoverBackgroundColorRef: dr,
|
|
290
|
+
enumMenuSelectedBackgroundColorRef: ur,
|
|
291
|
+
changedCellBaselineRef: $,
|
|
292
|
+
treeGridInstanceRef: l,
|
|
293
|
+
treeGridInitStartedAtRef: Ve,
|
|
277
294
|
latestLayoutOverridesRef: ie,
|
|
278
|
-
latestToolbarTotalCountFormulaRef:
|
|
279
|
-
latestSuppressCfgRef:
|
|
295
|
+
latestToolbarTotalCountFormulaRef: xe,
|
|
296
|
+
latestSuppressCfgRef: He,
|
|
280
297
|
latestHideChildHeaderSortButtonsRef: Ue,
|
|
281
298
|
latestSelectionScopeRef: ze,
|
|
282
299
|
latestDisabledAnimationsRef: We,
|
|
283
300
|
appliedLayoutOverridesRef: z,
|
|
284
301
|
appliedBodyDataPropRef: G,
|
|
285
|
-
hasAppliedInitialLayoutRef:
|
|
286
|
-
syncHasDisplayDataRows:
|
|
287
|
-
setIsTreeGridReady:
|
|
288
|
-
setCanRenderTreeGridOverlays:
|
|
289
|
-
setHasTreeGridSizeError:
|
|
290
|
-
showErrorTooltip:
|
|
302
|
+
hasAppliedInitialLayoutRef: $e,
|
|
303
|
+
syncHasDisplayDataRows: Cr,
|
|
304
|
+
setIsTreeGridReady: zr,
|
|
305
|
+
setCanRenderTreeGridOverlays: Kr,
|
|
306
|
+
setHasTreeGridSizeError: $r,
|
|
307
|
+
showErrorTooltip: tt,
|
|
291
308
|
hideErrorTooltip: R
|
|
292
309
|
});
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
useDataUrl: !!
|
|
296
|
-
bodyRowCount:
|
|
310
|
+
const o = ce.current;
|
|
311
|
+
Ve.current = Re(), Lr(e, "init"), wr(e, "TreeGrid init start", {
|
|
312
|
+
useDataUrl: !!he,
|
|
313
|
+
bodyRowCount: Ce(o)
|
|
297
314
|
});
|
|
298
|
-
const
|
|
299
|
-
|
|
315
|
+
const n = window.TreeGrid(
|
|
316
|
+
pt({
|
|
300
317
|
id: e,
|
|
301
|
-
layoutUrl:
|
|
318
|
+
layoutUrl: Pr,
|
|
302
319
|
layoutData: Z,
|
|
303
320
|
toolbarTotalCountFormula: oe,
|
|
304
321
|
suppressCfg: X,
|
|
305
322
|
disabledAnimations: ee,
|
|
306
|
-
dataUrl:
|
|
307
|
-
bodyData:
|
|
308
|
-
useDataUrl:
|
|
323
|
+
dataUrl: Vr,
|
|
324
|
+
bodyData: o,
|
|
325
|
+
useDataUrl: he,
|
|
309
326
|
width: Ee,
|
|
310
327
|
height: ge,
|
|
311
|
-
languageId:
|
|
328
|
+
languageId: K.id
|
|
312
329
|
}),
|
|
313
330
|
e,
|
|
314
331
|
e
|
|
315
332
|
);
|
|
316
|
-
return
|
|
317
|
-
R(),
|
|
318
|
-
const d =
|
|
319
|
-
|
|
333
|
+
return Ut(n) && (l.current = n), () => {
|
|
334
|
+
R(), $e.current = !0;
|
|
335
|
+
const d = n || l.current;
|
|
336
|
+
l.current === d && (l.current = null), d == null || d.Dispose();
|
|
320
337
|
};
|
|
321
|
-
}, []),
|
|
322
|
-
const
|
|
323
|
-
if (!
|
|
338
|
+
}, []), ft(() => {
|
|
339
|
+
const o = l.current, n = ie.current, a = ce.current;
|
|
340
|
+
if (!o || !D)
|
|
324
341
|
return;
|
|
325
|
-
const d = G.current !== a && (!U.current || L.current !== a), g = d && a === void 0 && Array.isArray(G.current) && G.current.length === 0 && !
|
|
326
|
-
if (g && (
|
|
327
|
-
if (R(),
|
|
328
|
-
const
|
|
329
|
-
|
|
342
|
+
const d = G.current !== a && (!U.current || L.current !== a), g = d && a === void 0 && Array.isArray(G.current) && G.current.length === 0 && !Te(o), C = z.current !== n && !At(z.current, n), m = d && !g;
|
|
343
|
+
if (g && (w.current += 1, J(), F(), L.current = void 0, U.current = !1, v.current = null, G.current = a, y(!1)), !(!C && !m)) {
|
|
344
|
+
if (R(), C) {
|
|
345
|
+
const i = Re();
|
|
346
|
+
ht(o, n, m), z.current = n, Dr(e, "apply layout", i, {
|
|
330
347
|
disableBodyReload: !!m
|
|
331
348
|
});
|
|
332
349
|
}
|
|
333
350
|
if (m) {
|
|
334
|
-
const
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
bodyRowCount:
|
|
338
|
-
}),
|
|
339
|
-
if (
|
|
351
|
+
const i = w.current + 1, E = /* @__PURE__ */ c(() => {
|
|
352
|
+
const T = L.current;
|
|
353
|
+
M.current = void 0, ne.current = Re(), Lr(e, "reload"), wr(e, "ReloadBody start", {
|
|
354
|
+
bodyRowCount: Ce(T)
|
|
355
|
+
}), Bt(o, T, () => {
|
|
356
|
+
if (w.current !== i)
|
|
340
357
|
return;
|
|
341
|
-
G.current =
|
|
342
|
-
bodyRowCount:
|
|
343
|
-
}), ne.current = null, L.current ===
|
|
344
|
-
const
|
|
345
|
-
if (!u ||
|
|
346
|
-
v.current = null,
|
|
358
|
+
G.current = T, $.current = /* @__PURE__ */ new WeakMap(), vt(o, $.current), Cr(o), Dr(e, "ReloadBody end", ne.current, {
|
|
359
|
+
bodyRowCount: Ce(T)
|
|
360
|
+
}), ne.current = null, L.current === T && (L.current = void 0, U.current = !1);
|
|
361
|
+
const b = v.current;
|
|
362
|
+
if (!u || b === null) {
|
|
363
|
+
v.current = null, y(!1);
|
|
347
364
|
return;
|
|
348
365
|
}
|
|
349
|
-
const
|
|
366
|
+
const Gr = Math.max(
|
|
350
367
|
0,
|
|
351
|
-
|
|
368
|
+
Ir - (Date.now() - b)
|
|
352
369
|
);
|
|
353
|
-
if (
|
|
354
|
-
v.current = null,
|
|
370
|
+
if (F(), Gr === 0) {
|
|
371
|
+
v.current = null, y(!1);
|
|
355
372
|
return;
|
|
356
373
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
},
|
|
374
|
+
A.current = window.setTimeout(() => {
|
|
375
|
+
w.current === i && (A.current = void 0, v.current = null, y(!1));
|
|
376
|
+
}, Gr);
|
|
360
377
|
});
|
|
361
378
|
}, "runBodyReload");
|
|
362
|
-
|
|
363
|
-
|
|
379
|
+
w.current = i, L.current = a, U.current = !0, u && a !== void 0 ? (J(), F(), v.current = Date.now(), y(!0), M.current = window.setTimeout(() => {
|
|
380
|
+
w.current === i && E();
|
|
364
381
|
}, 0)) : E();
|
|
365
382
|
}
|
|
366
383
|
}
|
|
367
|
-
}, [
|
|
368
|
-
R(),
|
|
384
|
+
}, [D, B, f, u, e, R]), p(() => () => {
|
|
385
|
+
R(), q(), J(), F();
|
|
369
386
|
}, [R]);
|
|
370
|
-
const Y =
|
|
387
|
+
const Y = Ot({
|
|
371
388
|
width: Ee,
|
|
372
389
|
height: ge,
|
|
373
|
-
treeGridTheme:
|
|
390
|
+
treeGridTheme: t,
|
|
374
391
|
gridThemeConfig: te,
|
|
375
392
|
containerStyle: s,
|
|
376
|
-
tableBorderRadius:
|
|
393
|
+
tableBorderRadius: pe ? Fr : void 0
|
|
377
394
|
});
|
|
378
|
-
return
|
|
395
|
+
return k !== void 0 && (Y["--owp-tree-grid-toolbar-row-background-color"] = String(k)), (u || fe || Er.length > 0) && (Y.position = s != null && s.position && s.position !== "static" ? s.position : "relative", Y.isolation = "isolate"), /* @__PURE__ */ it(
|
|
379
396
|
"div",
|
|
380
397
|
{
|
|
381
|
-
ref:
|
|
398
|
+
ref: _,
|
|
382
399
|
className: [
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
400
|
+
kt,
|
|
401
|
+
pe && St,
|
|
402
|
+
P
|
|
386
403
|
].filter(Boolean).join(" "),
|
|
387
404
|
style: Y,
|
|
388
405
|
children: [
|
|
389
|
-
/* @__PURE__ */ I(
|
|
390
|
-
/* @__PURE__ */ I("div", { id: e, className:
|
|
406
|
+
/* @__PURE__ */ I(Lt, {}),
|
|
407
|
+
/* @__PURE__ */ I("div", { id: e, className: V, style: Mt(Nr, ["height", "width"]) }),
|
|
391
408
|
/* @__PURE__ */ I(
|
|
392
|
-
|
|
409
|
+
_t,
|
|
393
410
|
{
|
|
394
|
-
frames:
|
|
395
|
-
clipFrame:
|
|
411
|
+
frames: Er,
|
|
412
|
+
clipFrame: gr.clipFrame
|
|
396
413
|
}
|
|
397
414
|
),
|
|
398
415
|
/* @__PURE__ */ I(
|
|
399
|
-
|
|
416
|
+
Dt,
|
|
400
417
|
{
|
|
401
|
-
visible:
|
|
402
|
-
message:
|
|
418
|
+
visible: Rr,
|
|
419
|
+
message: h("Message.조회된 결과가 없습니다."),
|
|
403
420
|
overlayFrame: me
|
|
404
421
|
}
|
|
405
422
|
),
|
|
406
423
|
/* @__PURE__ */ I(
|
|
407
|
-
|
|
424
|
+
yt,
|
|
408
425
|
{
|
|
409
|
-
visible:
|
|
410
|
-
overlayFrame:
|
|
411
|
-
panelLeftInset:
|
|
426
|
+
visible: ot,
|
|
427
|
+
overlayFrame: Tr ?? me,
|
|
428
|
+
panelLeftInset: jt(l.current)
|
|
412
429
|
}
|
|
413
430
|
),
|
|
414
431
|
/* @__PURE__ */ I(
|
|
415
|
-
|
|
432
|
+
wt,
|
|
416
433
|
{
|
|
417
|
-
visible:
|
|
434
|
+
visible: mr,
|
|
418
435
|
overlayFrame: me
|
|
419
436
|
}
|
|
420
437
|
),
|
|
421
|
-
|
|
422
|
-
|
|
438
|
+
Yr,
|
|
439
|
+
rt
|
|
423
440
|
]
|
|
424
441
|
}
|
|
425
442
|
);
|
|
426
443
|
}, "OwpTreeGrid");
|
|
427
444
|
export {
|
|
428
|
-
|
|
445
|
+
_o as OwpTreeGrid
|
|
429
446
|
};
|
|
430
447
|
//# sourceMappingURL=OwpTreeGrid.js.map
|