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