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