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