@owp/core 2.5.36 → 2.5.38

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