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