@owp/core 2.5.57 → 2.5.58

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