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