@owp/core 2.5.31 → 2.5.32
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/OwpPageContent/OwpPageContent.js +1 -1
- package/dist/components/OwpPageContent/OwpPageContent.js.map +1 -1
- package/dist/components/OwpSection/OwpSection.js +1 -1
- package/dist/components/OwpSection/OwpSection.js.map +1 -1
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +813 -241
- package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +266 -252
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.js +59 -0
- package/dist/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.js +27 -0
- package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +607 -510
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridSelection.js +61 -0
- package/dist/components/OwpTreeGrid/internal/treeGridSelection.js.map +1 -0
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +157 -154
- package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
- package/dist/hooks/useMinimumVisibleState.js.map +1 -0
- package/dist/hooks.js +47 -45
- package/dist/hooks.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/types/components/OwpSelectorBase/types/types.d.ts +2 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +5 -1
- package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridErrorTooltip.d.ts +12 -0
- package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridErrorTooltip.d.ts +17 -0
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridSelection.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useMinimumVisibleState.d.ts +6 -0
- package/dist/types/utils/treeGridUtil.d.ts +6 -1
- package/dist/utils/treeGridUtil.js +240 -204
- package/dist/utils/treeGridUtil.js.map +1 -1
- package/package.json +1 -1
- package/dist/hooks/internal/useMinimumVisibleState.js.map +0 -1
- package/dist/types/hooks/internal/useMinimumVisibleState.d.ts +0 -7
- /package/dist/hooks/{internal/useMinimumVisibleState.js → useMinimumVisibleState.js} +0 -0
|
@@ -1,43 +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
|
|
8
|
-
import { useOwpTranslation as
|
|
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 {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
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
|
+
import { useOwpTranslation as Pr } from "../../hooks/useOwpTranslation.js";
|
|
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
|
+
import { OwpTreeGridNoDataOverlay as Qr } from "./internal/OwpTreeGridNoDataOverlay.js";
|
|
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(
|
|
29
30
|
`${e} : `
|
|
30
|
-
)}+${
|
|
31
|
+
)}+${st}+${sr(
|
|
31
32
|
` ${r}`
|
|
32
|
-
)}`, "buildTreeGridTotalCountToolbarFormula"),
|
|
33
|
-
(r) =>
|
|
34
|
-
) : !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) => {
|
|
35
36
|
const r = e == null ? void 0 : e.Visible;
|
|
36
37
|
return !!e && r !== 0 && r !== !1 && r !== "0";
|
|
37
|
-
}, "isVisibleTreeGridRow"),
|
|
38
|
+
}, "isVisibleTreeGridRow"), le = /* @__PURE__ */ i((e) => {
|
|
38
39
|
const r = e == null ? void 0 : e.Added;
|
|
39
40
|
return !!e && r !== 0 && r !== !1 && r !== "0" && r !== void 0;
|
|
40
|
-
}, "isAddedTreeGridRow"),
|
|
41
|
+
}, "isAddedTreeGridRow"), cr = /* @__PURE__ */ i((e) => !e || e.Fixed === "Foot" || !dt(e) ? !1 : e.Kind === "Data" || le(e), "isDisplayTreeGridRow"), ft = /* @__PURE__ */ i((e) => {
|
|
41
42
|
if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
|
|
42
43
|
const r = [];
|
|
43
44
|
let o = e.GetFirst();
|
|
@@ -46,328 +47,341 @@ const et = "NumberToString(count(5),',0')", rt = ["Formula", "FormulaFormula"],
|
|
|
46
47
|
return r;
|
|
47
48
|
}
|
|
48
49
|
return Object.values(e.Rows ?? {});
|
|
49
|
-
}, "getTreeGridRows"),
|
|
50
|
+
}, "getTreeGridRows"), mt = /* @__PURE__ */ i((e, r) => {
|
|
50
51
|
if (!e)
|
|
51
52
|
return;
|
|
52
53
|
const o = Object.keys(e.Cols ?? {}).filter(Boolean);
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
ft(e).forEach((n) => {
|
|
55
|
+
cr(n) && r.set(
|
|
55
56
|
n,
|
|
56
|
-
new Map(o.map((d) => [d,
|
|
57
|
+
new Map(o.map((d) => [d, ar(e, n, d)]))
|
|
57
58
|
);
|
|
58
59
|
});
|
|
59
|
-
}, "captureTreeGridChangeBaselines"),
|
|
60
|
+
}, "captureTreeGridChangeBaselines"), Tt = /* @__PURE__ */ i((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Rt = /* @__PURE__ */ i((e, r, o) => {
|
|
60
61
|
const n = r;
|
|
61
|
-
return Object.keys(e.Cols ?? {}).some((d) => d !== o &&
|
|
62
|
-
}, "hasOtherTreeGridChangedCells"),
|
|
62
|
+
return Object.keys(e.Cols ?? {}).some((d) => d !== o && Tt(n[`${d}Changed`]));
|
|
63
|
+
}, "hasOtherTreeGridChangedCells"), pt = /* @__PURE__ */ i((e, r, o) => {
|
|
63
64
|
const n = r;
|
|
64
|
-
n[`${o}Changed`] = 0, !
|
|
65
|
-
}, "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) => {
|
|
66
67
|
const n = e.get(r);
|
|
67
68
|
if (n != null && n.has(o))
|
|
68
69
|
return n.get(o);
|
|
69
|
-
}, "resolveTreeGridCellBaselineValue"),
|
|
70
|
+
}, "resolveTreeGridCellBaselineValue"), gt = /* @__PURE__ */ i(({
|
|
70
71
|
gridId: e,
|
|
71
72
|
grid: r,
|
|
72
73
|
row: o,
|
|
73
74
|
col: n,
|
|
74
75
|
backgroundColor: d,
|
|
75
|
-
baselineMap:
|
|
76
|
-
highlightRefresh:
|
|
76
|
+
baselineMap: j,
|
|
77
|
+
highlightRefresh: L
|
|
77
78
|
}) => {
|
|
78
|
-
if (!
|
|
79
|
+
if (!cr(o) || le(o) || lr(o))
|
|
79
80
|
return;
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
|
|
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);
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
+
Vr(e, {
|
|
86
87
|
row: o,
|
|
87
88
|
col: n,
|
|
88
89
|
backgroundColor: d,
|
|
89
|
-
refresh:
|
|
90
|
+
refresh: L
|
|
90
91
|
});
|
|
91
|
-
}, "syncTreeGridChangedCellHighlightById"),
|
|
92
|
+
}, "syncTreeGridChangedCellHighlightById"), Gt = [
|
|
92
93
|
"addRow",
|
|
93
94
|
"deleteRow",
|
|
94
95
|
"selectRow"
|
|
95
|
-
],
|
|
96
|
+
], zt = /* @__PURE__ */ i(({
|
|
96
97
|
id: e = "treeGridWrapper",
|
|
97
98
|
containerStyle: r,
|
|
98
99
|
containerClassName: o,
|
|
99
100
|
toolbarRowBackgroundColor: n,
|
|
100
101
|
className: d,
|
|
101
|
-
style:
|
|
102
|
-
height:
|
|
103
|
-
width:
|
|
104
|
-
canUseTableRadius:
|
|
105
|
-
tableBorderRadius:
|
|
106
|
-
suppressCfg:
|
|
107
|
-
showToolbarTotalCount:
|
|
108
|
-
hideChildHeaderSortButtons:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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,
|
|
113
115
|
layoutOverrides: C,
|
|
114
116
|
data: f,
|
|
115
|
-
useDataUrl:
|
|
116
|
-
onSelect:
|
|
117
|
-
onRowClick:
|
|
118
|
-
onRowAdd:
|
|
119
|
-
onRowDelete:
|
|
120
|
-
onRowUndelete:
|
|
121
|
-
onRowChange:
|
|
122
|
-
onClickButton:
|
|
123
|
-
onSave:
|
|
124
|
-
onReady:
|
|
125
|
-
onAfterValueChanged:
|
|
126
|
-
datePickerEditor:
|
|
127
|
-
highlightEditableCells:
|
|
128
|
-
highlightChangedCells:
|
|
129
|
-
syncDeletedRowCanEdit:
|
|
130
|
-
confirmDeletedRowRemoval:
|
|
131
|
-
loading:
|
|
117
|
+
useDataUrl: de,
|
|
118
|
+
onSelect: fe,
|
|
119
|
+
onRowClick: me,
|
|
120
|
+
onRowAdd: Te,
|
|
121
|
+
onRowDelete: Re,
|
|
122
|
+
onRowUndelete: pe,
|
|
123
|
+
onRowChange: Ce,
|
|
124
|
+
onClickButton: ge,
|
|
125
|
+
onSave: Ge,
|
|
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,
|
|
132
134
|
showLoading: m = !0
|
|
133
135
|
}) => {
|
|
134
|
-
var
|
|
135
|
-
const { t: G } =
|
|
136
|
-
() =>
|
|
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,
|
|
137
139
|
[
|
|
138
140
|
C,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
Ie,
|
|
142
|
+
De,
|
|
143
|
+
ae
|
|
142
144
|
]
|
|
143
|
-
), c = t(null),
|
|
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({
|
|
144
148
|
title: G("Message.삭제된 항목을 완전히 삭제하시겠습니까?"),
|
|
145
149
|
description: G("Message.취소하면 삭제 상태가 해제됩니다."),
|
|
146
150
|
okText: G("Button.완전 삭제")
|
|
147
|
-
}) ? "remove" : "undelete" : void 0,
|
|
148
|
-
onSelect:
|
|
149
|
-
onRowClick:
|
|
150
|
-
onRowAdd:
|
|
151
|
-
onRowDelete:
|
|
152
|
-
onBeforeRowUndelete:
|
|
153
|
-
onRowUndelete:
|
|
154
|
-
onRowChange:
|
|
155
|
-
onClickButton:
|
|
156
|
-
onSave:
|
|
157
|
-
onReady:
|
|
158
|
-
onAfterValueChanged:
|
|
159
|
-
}),
|
|
160
|
-
() =>
|
|
161
|
-
[
|
|
162
|
-
),
|
|
163
|
-
|
|
164
|
-
),
|
|
165
|
-
a.changed.backgroundColor ??
|
|
166
|
-
),
|
|
167
|
-
|
|
168
|
-
}, "syncHasDisplayDataRows"),
|
|
169
|
-
var
|
|
170
|
-
|
|
151
|
+
}) ? "remove" : "undelete" : void 0, A = t({
|
|
152
|
+
onSelect: fe,
|
|
153
|
+
onRowClick: me,
|
|
154
|
+
onRowAdd: Te,
|
|
155
|
+
onRowDelete: Re,
|
|
156
|
+
onBeforeRowUndelete: Me,
|
|
157
|
+
onRowUndelete: pe,
|
|
158
|
+
onRowChange: Ce,
|
|
159
|
+
onClickButton: ge,
|
|
160
|
+
onSave: Ge,
|
|
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),
|
|
165
|
+
[z]
|
|
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({
|
|
171
175
|
gridId: e,
|
|
172
176
|
grid: s,
|
|
173
177
|
row: l,
|
|
174
|
-
col:
|
|
175
|
-
backgroundColor:
|
|
176
|
-
baselineMap:
|
|
177
|
-
highlightRefresh:
|
|
178
|
+
col: T,
|
|
179
|
+
backgroundColor: ee.current,
|
|
180
|
+
baselineMap: M.current,
|
|
181
|
+
highlightRefresh: R == null ? void 0 : R.highlightRefresh
|
|
178
182
|
});
|
|
179
|
-
const u = ((
|
|
180
|
-
u == null || u(s, l,
|
|
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);
|
|
181
185
|
}, "handleDatePickerEditorValueChange");
|
|
182
|
-
|
|
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;
|
|
183
187
|
const {
|
|
184
|
-
datePickerEditorElement:
|
|
185
|
-
handleDatePickerEditorButtonClick:
|
|
186
|
-
handleDatePickerEditorCellClick:
|
|
187
|
-
handleDatePickerEditorKeyDown:
|
|
188
|
-
handleDatePickerEditorStartEdit:
|
|
189
|
-
} =
|
|
190
|
-
config:
|
|
188
|
+
datePickerEditorElement: br,
|
|
189
|
+
handleDatePickerEditorButtonClick: Br,
|
|
190
|
+
handleDatePickerEditorCellClick: Dr,
|
|
191
|
+
handleDatePickerEditorKeyDown: Ir,
|
|
192
|
+
handleDatePickerEditorStartEdit: _r
|
|
193
|
+
} = Ur({
|
|
194
|
+
config: mr,
|
|
191
195
|
treeGridInstanceRef: c,
|
|
192
|
-
isTreeGridReady:
|
|
193
|
-
onValueChange:
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
onSelect:
|
|
197
|
-
onRowClick:
|
|
198
|
-
onRowAdd:
|
|
199
|
-
onRowDelete:
|
|
200
|
-
onBeforeRowUndelete:
|
|
201
|
-
onRowUndelete:
|
|
202
|
-
onRowChange:
|
|
203
|
-
onClickButton:
|
|
204
|
-
onSave:
|
|
205
|
-
onReady:
|
|
206
|
-
onAfterValueChanged:
|
|
207
|
-
onInternalButtonClick:
|
|
208
|
-
onInternalCellClick:
|
|
209
|
-
onInternalKeyDown:
|
|
210
|
-
onInternalStartEdit:
|
|
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,
|
|
204
|
+
onBeforeRowUndelete: Me,
|
|
205
|
+
onRowUndelete: pe,
|
|
206
|
+
onRowChange: Ce,
|
|
207
|
+
onClickButton: ge,
|
|
208
|
+
onSave: Ge,
|
|
209
|
+
onReady: Ee,
|
|
210
|
+
onAfterValueChanged: ye,
|
|
211
|
+
onInternalButtonClick: Br,
|
|
212
|
+
onInternalCellClick: Dr,
|
|
213
|
+
onInternalKeyDown: Ir,
|
|
214
|
+
onInternalStartEdit: _r
|
|
211
215
|
};
|
|
212
|
-
const
|
|
213
|
-
visible:
|
|
214
|
-
containerRef:
|
|
216
|
+
const qe = $r({
|
|
217
|
+
visible: re || te,
|
|
218
|
+
containerRef: _e,
|
|
215
219
|
treeGridInstanceRef: c,
|
|
216
220
|
debugId: e
|
|
217
|
-
}),
|
|
218
|
-
B.current !== void 0 && (window.clearTimeout(B.current), B.current = void 0);
|
|
219
|
-
}, "clearBindingLoadingHideTimeout"), te = /* @__PURE__ */ i(() => {
|
|
221
|
+
}), N = /* @__PURE__ */ i(() => {
|
|
220
222
|
D.current !== void 0 && (window.clearTimeout(D.current), D.current = void 0);
|
|
223
|
+
}, "clearBindingLoadingHideTimeout"), oe = /* @__PURE__ */ i(() => {
|
|
224
|
+
I.current !== void 0 && (window.clearTimeout(I.current), I.current = void 0);
|
|
221
225
|
}, "clearBodyReloadStartTimeout");
|
|
222
|
-
|
|
226
|
+
x(() => {
|
|
223
227
|
const s = /* @__PURE__ */ i((l) => {
|
|
224
228
|
var g;
|
|
225
|
-
((g = l.detail) == null ? void 0 : g.gridId) === e &&
|
|
229
|
+
((g = l.detail) == null ? void 0 : g.gridId) === e && Ve(ir(c.current));
|
|
226
230
|
}, "handleBodyRowsChanged");
|
|
227
|
-
return window.addEventListener(
|
|
228
|
-
window.removeEventListener(
|
|
231
|
+
return window.addEventListener(Ze, s), () => {
|
|
232
|
+
window.removeEventListener(Ze, s);
|
|
229
233
|
};
|
|
230
|
-
}, [e]),
|
|
231
|
-
m || (
|
|
232
|
-
}, [m]),
|
|
234
|
+
}, [e]), x(() => {
|
|
235
|
+
m || (oe(), N(), E.current = null, _(!1));
|
|
236
|
+
}, [m]), x(() => {
|
|
233
237
|
var s;
|
|
234
|
-
if (
|
|
235
|
-
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({
|
|
236
240
|
id: e,
|
|
237
|
-
latestEventHandlersRef:
|
|
238
|
-
layoutHasExplicitEnterModeRef:
|
|
239
|
-
highlightEditableCellsRef:
|
|
240
|
-
highlightChangedCellsRef:
|
|
241
|
-
syncDeletedRowCanEditRef:
|
|
242
|
-
editableCellBackgroundColorValueRef:
|
|
243
|
-
changedCellBackgroundColorRef:
|
|
244
|
-
focusedCellBackgroundColorRef:
|
|
245
|
-
selectedCellBackgroundColorRef:
|
|
246
|
-
hoverCellBackgroundColorRef:
|
|
247
|
-
changedCellBaselineRef:
|
|
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,
|
|
248
252
|
treeGridInstanceRef: c,
|
|
249
|
-
treeGridInitStartedAtRef:
|
|
250
|
-
latestLayoutOverridesRef:
|
|
251
|
-
latestToolbarTotalCountFormulaRef:
|
|
252
|
-
latestSuppressCfgRef:
|
|
253
|
-
latestHideChildHeaderSortButtonsRef:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
treeGridInitStartedAtRef: ve,
|
|
254
|
+
latestLayoutOverridesRef: Q,
|
|
255
|
+
latestToolbarTotalCountFormulaRef: Le,
|
|
256
|
+
latestSuppressCfgRef: Oe,
|
|
257
|
+
latestHideChildHeaderSortButtonsRef: Ae,
|
|
258
|
+
latestSelectionScopeRef: ke,
|
|
259
|
+
latestDisabledAnimationsRef: Se,
|
|
260
|
+
appliedLayoutOverridesRef: k,
|
|
261
|
+
appliedBodyDataPropRef: S,
|
|
262
|
+
hasAppliedInitialLayoutRef: Cr,
|
|
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)
|
|
263
270
|
}), window.TreeGrid(
|
|
264
|
-
|
|
271
|
+
qr({
|
|
265
272
|
id: e,
|
|
266
|
-
layoutUrl:
|
|
267
|
-
layoutData:
|
|
268
|
-
toolbarTotalCountFormula:
|
|
269
|
-
suppressCfg:
|
|
270
|
-
disabledAnimations:
|
|
271
|
-
dataUrl:
|
|
273
|
+
layoutUrl: dr,
|
|
274
|
+
layoutData: W,
|
|
275
|
+
toolbarTotalCountFormula: J,
|
|
276
|
+
suppressCfg: $,
|
|
277
|
+
disabledAnimations: q,
|
|
278
|
+
dataUrl: fr,
|
|
272
279
|
bodyData: f,
|
|
273
|
-
useDataUrl:
|
|
274
|
-
width:
|
|
275
|
-
height:
|
|
276
|
-
languageId:
|
|
280
|
+
useDataUrl: de,
|
|
281
|
+
width: h,
|
|
282
|
+
height: L,
|
|
283
|
+
languageId: P.id
|
|
277
284
|
}),
|
|
278
285
|
e,
|
|
279
286
|
e
|
|
280
287
|
), () => {
|
|
281
|
-
|
|
288
|
+
y(), tt(() => {
|
|
282
289
|
var l;
|
|
283
290
|
(l = c.current) == null || l.Dispose();
|
|
284
291
|
}, 200);
|
|
285
292
|
};
|
|
286
|
-
}, []),
|
|
287
|
-
const s = c.current, l =
|
|
288
|
-
if (
|
|
293
|
+
}, []), Hr(() => {
|
|
294
|
+
const s = c.current, l = Q.current, T = Fe.current;
|
|
295
|
+
if (U(s) || !F)
|
|
289
296
|
return;
|
|
290
|
-
const g =
|
|
291
|
-
if (!(!g && !
|
|
292
|
-
if (g) {
|
|
293
|
-
const u =
|
|
294
|
-
|
|
295
|
-
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
|
|
296
303
|
});
|
|
297
304
|
}
|
|
298
|
-
if (
|
|
299
|
-
const u =
|
|
300
|
-
const p =
|
|
301
|
-
|
|
302
|
-
bodyRowCount:
|
|
303
|
-
}),
|
|
304
|
-
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)
|
|
305
312
|
return;
|
|
306
|
-
|
|
307
|
-
bodyRowCount:
|
|
308
|
-
}),
|
|
309
|
-
const
|
|
310
|
-
if (!m ||
|
|
311
|
-
E.current = null,
|
|
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);
|
|
312
319
|
return;
|
|
313
320
|
}
|
|
314
|
-
const
|
|
321
|
+
const Ye = Math.max(
|
|
315
322
|
0,
|
|
316
|
-
|
|
323
|
+
zr - (Date.now() - Je)
|
|
317
324
|
);
|
|
318
|
-
if (
|
|
319
|
-
E.current = null,
|
|
325
|
+
if (N(), Ye === 0) {
|
|
326
|
+
E.current = null, _(!1);
|
|
320
327
|
return;
|
|
321
328
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
},
|
|
329
|
+
D.current = window.setTimeout(() => {
|
|
330
|
+
B.current === u && (D.current = void 0, E.current = null, _(!1));
|
|
331
|
+
}, Ye);
|
|
325
332
|
});
|
|
326
333
|
}, "runBodyReload");
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}, 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();
|
|
330
337
|
}
|
|
331
338
|
}
|
|
332
|
-
}, [
|
|
333
|
-
|
|
334
|
-
}, []);
|
|
335
|
-
const
|
|
336
|
-
width:
|
|
337
|
-
height:
|
|
339
|
+
}, [F, C, f, m, e, y]), x(() => () => {
|
|
340
|
+
y(), oe(), N();
|
|
341
|
+
}, [y]);
|
|
342
|
+
const w = Xr({
|
|
343
|
+
width: h,
|
|
344
|
+
height: L,
|
|
338
345
|
treeGridTheme: a,
|
|
339
|
-
gridThemeConfig:
|
|
346
|
+
gridThemeConfig: z,
|
|
340
347
|
containerStyle: r,
|
|
341
|
-
tableBorderRadius:
|
|
348
|
+
tableBorderRadius: O ? ur : void 0
|
|
342
349
|
});
|
|
343
|
-
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(
|
|
344
351
|
"div",
|
|
345
352
|
{
|
|
346
|
-
ref:
|
|
353
|
+
ref: _e,
|
|
347
354
|
className: [
|
|
348
|
-
|
|
349
|
-
|
|
355
|
+
Zr,
|
|
356
|
+
O && et,
|
|
350
357
|
o
|
|
351
358
|
].filter(Boolean).join(" "),
|
|
352
|
-
style:
|
|
359
|
+
style: w,
|
|
353
360
|
children: [
|
|
354
|
-
/* @__PURE__ */ V(
|
|
355
|
-
/* @__PURE__ */ V("div", { id: e, className: d, style:
|
|
361
|
+
/* @__PURE__ */ V(xr, { styles: rt }),
|
|
362
|
+
/* @__PURE__ */ V("div", { id: e, className: d, style: nt(j, ["height", "width"]) }),
|
|
356
363
|
/* @__PURE__ */ V(
|
|
357
|
-
|
|
364
|
+
Qr,
|
|
358
365
|
{
|
|
359
|
-
visible:
|
|
366
|
+
visible: te,
|
|
360
367
|
message: G("Message.조회된 결과가 없습니다."),
|
|
361
|
-
overlayFrame:
|
|
368
|
+
overlayFrame: qe
|
|
369
|
+
}
|
|
370
|
+
),
|
|
371
|
+
/* @__PURE__ */ V(
|
|
372
|
+
Yr,
|
|
373
|
+
{
|
|
374
|
+
visible: re,
|
|
375
|
+
overlayFrame: qe
|
|
362
376
|
}
|
|
363
377
|
),
|
|
364
|
-
|
|
365
|
-
|
|
378
|
+
br,
|
|
379
|
+
vr
|
|
366
380
|
]
|
|
367
381
|
}
|
|
368
382
|
);
|
|
369
383
|
}, "OwpTreeGrid");
|
|
370
384
|
export {
|
|
371
|
-
|
|
385
|
+
zt as OwpTreeGrid
|
|
372
386
|
};
|
|
373
387
|
//# sourceMappingURL=OwpTreeGrid.js.map
|