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