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