@owp/core 2.5.48 → 2.5.49

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