@owp/core 2.5.3 → 2.5.4

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 (65) hide show
  1. package/dist/_virtual/index11.js +2 -2
  2. package/dist/_virtual/index13.js +2 -2
  3. package/dist/_virtual/index14.js +2 -2
  4. package/dist/_virtual/index15.js +2 -2
  5. package/dist/components/OwpMrtTable/OwpMrtTable.js +250 -258
  6. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  7. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js +166 -0
  8. package/dist/components/OwpSnackbarContent/OwpSnackbarContent.js.map +1 -0
  9. package/dist/components/OwpTable/OwpDataTable.js +316 -288
  10. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  11. package/dist/components/OwpTable/OwpFieldTable.js +102 -58
  12. package/dist/components/OwpTable/OwpFieldTable.js.map +1 -1
  13. package/dist/components/OwpTable/OwpTable.js +163 -164
  14. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  15. package/dist/components/OwpTable/internal/treeGridTableStyle.js +77 -0
  16. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -0
  17. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +197 -252
  18. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  19. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +172 -131
  20. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  21. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +462 -0
  22. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -0
  23. package/dist/configs/defaultConfig.js +67 -44
  24. package/dist/configs/defaultConfig.js.map +1 -1
  25. package/dist/constants/gridTheme.js +60 -10
  26. package/dist/constants/gridTheme.js.map +1 -1
  27. package/dist/constants/tableTheme.js +16 -0
  28. package/dist/constants/tableTheme.js.map +1 -0
  29. package/dist/constants/treeGrid.js +44 -26
  30. package/dist/constants/treeGrid.js.map +1 -1
  31. package/dist/constants.js +21 -20
  32. package/dist/contexts/OwpUiProvider.js +59 -38
  33. package/dist/contexts/OwpUiProvider.js.map +1 -1
  34. package/dist/index.js +111 -110
  35. package/dist/layout/components/toolbar/ToolbarLayout.js +5 -4
  36. package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
  37. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  38. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  39. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  40. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  41. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  42. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  43. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  44. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  45. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  46. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  47. package/dist/types/components/OwpSnackbarContent/OwpSnackbarContent.d.ts +2 -0
  48. package/dist/types/components/OwpTable/OwpTable.d.ts +3 -1
  49. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +105 -0
  50. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
  51. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +20 -0
  52. package/dist/types/configs/defaultConfig.d.ts +22 -0
  53. package/dist/types/constants/gridTheme.d.ts +58 -0
  54. package/dist/types/constants/tableTheme.d.ts +18 -0
  55. package/dist/types/constants/treeGrid.d.ts +5 -0
  56. package/dist/types/types/OwpGridThemeTypes.d.ts +34 -0
  57. package/dist/types/types/OwpSettingsTypes.d.ts +9 -0
  58. package/dist/types/types/OwpTableThemeTypes.d.ts +16 -0
  59. package/dist/types/types/index.d.ts +3 -2
  60. package/dist/types/utils/treeGridUtil.d.ts +1 -0
  61. package/dist/utils/exceljsBrowser.js +45 -48
  62. package/dist/utils/exceljsBrowser.js.map +1 -1
  63. package/dist/utils/treeGridUtil.js +66 -66
  64. package/dist/utils/treeGridUtil.js.map +1 -1
  65. package/package.json +1 -1
@@ -1,304 +1,249 @@
1
- var je = Object.defineProperty;
2
- var d = (e, n) => je(e, "name", { value: n, configurable: !0 });
3
- import { jsxs as ke, jsx as L } 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 qe } from "../../constants/gridTheme.js";
5
- import { useGetCurrentSettings as Ye } from "../../hooks/useOwpSettings.js";
6
- import { useOwpTranslation as Qe } from "../../hooks/useOwpTranslation.js";
7
- import { useGetCurrentLanguage as Xe } from "../../hooks/useCurrentLanguage.js";
8
- import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Be } from "../../utils/treeGridBodyRowsEvent.js";
9
- import { getTreeGridPerfTimestamp as X, countTreeGridPerf as He, logTreeGridPerf as Se, measureTreeGridPerf as xe } from "./internal/utils/perf.js";
10
- import { useRef as r, useState as J, useMemo as Je, useEffect as _, useLayoutEffect as Ke } from "react";
11
- import Ze from "@mui/material/GlobalStyles";
12
- import { useOwpTreeGridOverlayFrame as Ue } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
13
- import { bindTreeGridEvents as er, getTreeGridBodyDataCount as K, buildTreeGridInitializationOptions as rr, hasTreeGridDisplayDataRows as Le, replaceTreeGridBodyData as tr, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as or } from "./internal/treeGridRuntime.js";
14
- import { applyTreeGridLayoutToGrid as nr } from "./internal/treeGridLayout.js";
15
- import { OwpTreeGridLoadingOverlay as ir } from "./internal/OwpTreeGridLoadingOverlay.js";
16
- import { OwpTreeGridNoDataOverlay as sr } from "./internal/OwpTreeGridNoDataOverlay.js";
17
- import { resolveTreeGridColumnEditRuleLookup as _e, createTreeGridColumnEditRulesState as ar, syncTreeGridColumnEditRules as dr } from "./internal/treeGridColumnEditRules.js";
18
- import { isEmpty as O } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
19
- import { delay as ur } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
20
- import { isEqual as Oe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
21
- import { omit as lr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
22
- const cr = [
23
- "TS",
24
- "TW",
25
- "TB",
26
- "TM",
27
- "TT",
28
- "CF",
29
- "CL",
30
- "CO",
31
- "CG",
32
- "CB",
33
- "CQ",
34
- "CE",
35
- "CS",
36
- "CR",
37
- "CP",
38
- "CC"
39
- ], Ae = "owp-tree-grid-theme", Me = /* @__PURE__ */ d((e) => typeof e == "number" ? `${e}px` : e, "toTreeGridCssValue"), Z = /* @__PURE__ */ d(({
40
- rowSuffix: e,
41
- suffixes: n,
42
- withChildren: M = !1
43
- }) => cr.flatMap((w) => n.flatMap((A) => {
44
- const E = `.${Ae}`, h = e ? ` .${w}${e}` : "", f = `${E}${h} .${w}${A}`;
45
- return M ? [f, `${f} *`] : [f];
46
- })).join(", "), "createTreeGridSelectors"), fr = Z({
47
- suffixes: ["Main"],
48
- withChildren: !0
49
- }), pr = Z({
50
- rowSuffix: "HeaderRow",
51
- suffixes: ["CellHeader", "CellIndex", "GanttHeaderBase", "LevelButton"],
52
- withChildren: !0
53
- }), mr = Z({
54
- rowSuffix: "HeaderRow",
55
- suffixes: [
56
- "CellHeader",
57
- "CellIndex",
58
- "EditHeaderInput",
59
- "EditHeaderTextarea",
60
- "ColorFocusedCellHeader",
61
- "ColorHoveredCellHeader",
62
- "ColorHoveredCellIndex",
63
- "HeaderFocus",
64
- "HeaderDrag"
65
- ]
66
- }), Rr = {
67
- [fr]: {
68
- fontSize: "var(--owp-tree-grid-cell-font-size, 13px)",
69
- fontWeight: "normal",
70
- lineHeight: "16px"
71
- },
72
- [pr]: {
73
- color: "var(--owp-tree-grid-header-color, #ffffff) !important",
74
- fontSize: "var(--owp-tree-grid-header-font-size, 14px) !important",
75
- fontWeight: "var(--owp-tree-grid-header-font-weight, normal) !important",
76
- lineHeight: "16px"
77
- },
78
- [mr]: {
79
- backgroundColor: "var(--owp-tree-grid-header-background-color, #586980) !important",
80
- color: "var(--owp-tree-grid-header-color, #ffffff) !important"
81
- }
82
- }, Pr = /* @__PURE__ */ d(({
83
- id: e = "treeGridWrapper",
84
- containerStyle: n,
85
- containerClassName: M,
86
- className: w,
87
- style: A,
88
- height: E = "100%",
89
- width: h = "100%",
90
- layoutUrl: f,
91
- dataUrl: Pe,
92
- layoutOverrides: P,
93
- data: i,
1
+ var Xe = Object.defineProperty;
2
+ var a = (r, l) => Xe(r, "name", { value: l, configurable: !0 });
3
+ import { jsxs as Ze, jsx as L } 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 $e } from "../../constants/gridTheme.js";
5
+ import { resolveTreeGridColorNumber as _, TREEGRID_INPUT_CELL_COLOR as he, TREEGRID_CELL_HIGHLIGHT_COLOR as He } from "../../constants/treeGrid.js";
6
+ import { useGetCurrentSettings as er } from "../../hooks/useOwpSettings.js";
7
+ import { useOwpTranslation as rr } from "../../hooks/useOwpTranslation.js";
8
+ import { useGetCurrentLanguage as tr } from "../../hooks/useCurrentLanguage.js";
9
+ import { TREE_GRID_BODY_ROWS_CHANGED_EVENT as Ae } from "../../utils/treeGridBodyRowsEvent.js";
10
+ import { getTreeGridPerfTimestamp as z, countTreeGridPerf as ke, logTreeGridPerf as Pe, measureTreeGridPerf as Se } from "./internal/utils/perf.js";
11
+ import { useRef as e, useState as Y, useMemo as or, useEffect as O, useLayoutEffect as nr } from "react";
12
+ import ir from "@mui/material/GlobalStyles";
13
+ import { useOwpTreeGridOverlayFrame as sr } from "./internal/hooks/useOwpTreeGridOverlayFrame.js";
14
+ import { bindTreeGridEvents as ur, getTreeGridBodyDataCount as J, buildTreeGridInitializationOptions as lr, hasTreeGridDisplayDataRows as Ne, replaceTreeGridBodyData as ar, TREE_GRID_BINDING_LOADING_MIN_VISIBLE_MS as cr } from "./internal/treeGridRuntime.js";
15
+ import { applyTreeGridLayoutToGrid as dr } from "./internal/treeGridLayout.js";
16
+ import { OwpTreeGridLoadingOverlay as fr } from "./internal/OwpTreeGridLoadingOverlay.js";
17
+ import { OwpTreeGridNoDataOverlay as mr } from "./internal/OwpTreeGridNoDataOverlay.js";
18
+ import { resolveTreeGridColumnEditRuleLookup as Me, createTreeGridColumnEditRulesState as pr, syncTreeGridColumnEditRules as Rr } from "./internal/treeGridColumnEditRules.js";
19
+ import { createTreeGridThemeContainerStyle as Tr, TREE_GRID_THEME_WRAPPER_CLASS as yr, treeGridThemeStyles as Gr } from "./internal/treeGridTheme.js";
20
+ import { isEmpty as w } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
21
+ import { delay as gr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
22
+ import { isEqual as xe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
23
+ import { omit as vr } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
24
+ const Fr = /* @__PURE__ */ a(({
25
+ id: r = "treeGridWrapper",
26
+ containerStyle: l,
27
+ containerClassName: Ve,
28
+ className: je,
29
+ style: qe,
30
+ height: K = "100%",
31
+ width: Q = "100%",
32
+ layoutUrl: We,
33
+ dataUrl: Fe,
34
+ layoutOverrides: h,
35
+ data: o,
94
36
  useDataUrl: U,
95
- onSelect: ee,
96
- onRowClick: re,
97
- onRowAdd: te,
98
- onRowDelete: oe,
99
- onRowUndelete: ne,
100
- onRowChange: ie,
101
- onClickButton: se,
102
- onSave: ae,
103
- onReady: de,
104
- onAfterValueChanged: ue,
105
- columnEditRules: p,
106
- highlightEditableCells: le = !0,
107
- highlightChangedCells: ce = !0,
37
+ onSelect: X,
38
+ onRowClick: Z,
39
+ onRowAdd: $,
40
+ onRowDelete: ee,
41
+ onRowUndelete: re,
42
+ onRowChange: te,
43
+ onClickButton: oe,
44
+ onSave: ne,
45
+ onReady: ie,
46
+ onAfterValueChanged: se,
47
+ columnEditRules: m,
48
+ highlightEditableCells: ue = !0,
49
+ highlightChangedCells: le = !0,
108
50
  loading: ze,
109
- showLoading: s = !0
51
+ showLoading: n = !0
110
52
  }) => {
111
- const { t: z } = Qe(), D = Ye(), a = r(null), fe = r(null), pe = r(null), N = r(null), V = r(P), me = r(i), $ = r(
112
- p
113
- ), W = r(
114
- _e(p, {
115
- hourMinuteInvalidText: z("Message.시간은 HH:mm 형식으로 입력해주세요.")
53
+ var De, Be;
54
+ const { t: H } = rr(), A = er(), k = (Be = (De = A == null ? void 0 : A.theme) == null ? void 0 : De.main) == null ? void 0 : Be.grid, i = e(null), ae = e(null), ce = e(null), P = e(null), S = e(h), de = e(o), N = e(
55
+ m
56
+ ), M = e(
57
+ Me(m, {
58
+ hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
116
59
  })
117
- ), Re = r({
118
- onSelect: ee,
119
- onRowClick: re,
120
- onRowAdd: te,
121
- onRowDelete: oe,
122
- onRowUndelete: ne,
123
- onRowChange: ie,
124
- onClickButton: se,
125
- onSave: ae,
126
- onReady: de,
127
- onAfterValueChanged: ue
128
- }), m = r(void 0), F = r(!1), b = r(void 0), I = r(void 0), B = r(
60
+ ), fe = e({
61
+ onSelect: X,
62
+ onRowClick: Z,
63
+ onRowAdd: $,
64
+ onRowDelete: ee,
65
+ onRowUndelete: re,
66
+ onRowChange: te,
67
+ onClickButton: oe,
68
+ onSave: ne,
69
+ onReady: ie,
70
+ onAfterValueChanged: se
71
+ }), p = e(void 0), x = e(!1), C = e(void 0), E = e(void 0), b = e(
129
72
  void 0
130
- ), Te = r(ar()), Ne = r(!1), R = r(0), u = r(null), T = r(void 0), y = r(void 0), ye = r(le), ge = r(ce), [j, Ve] = J(!1), [$e, g] = J(!1), [We, ve] = J(!1), H = Xe(), v = Je(
131
- () => {
132
- var t, o;
133
- return qe((o = (t = D == null ? void 0 : D.theme) == null ? void 0 : t.main) == null ? void 0 : o.grid);
134
- },
135
- [D]
136
- ), Ge = r(H.id), Fe = s && i !== void 0 && j && I.current !== i, k = s && ze === !0 || s && ($e || Fe), q = !k && i !== void 0 && O(i) && !We, Ce = /* @__PURE__ */ d((t) => {
137
- ve(Le(t));
73
+ ), me = e(pr()), Ye = e(!1), R = e(0), c = e(null), T = e(void 0), y = e(void 0), pe = e(ue), Re = e(le), [V, Je] = Y(!1), [Ke, G] = Y(!1), [Qe, Te] = Y(!1), D = tr(), s = or(
74
+ () => $e(k),
75
+ [k]
76
+ ), ye = e(
77
+ _(s.editable.backgroundColor) ?? _(he)
78
+ ), Ge = e(
79
+ s.changed.backgroundColor ?? He
80
+ ), ge = e(s.state.selectedCellBackgroundColor), ve = e(s.state.hoverCellBackgroundColor), Ce = e(D.id), Ue = n && o !== void 0 && V && E.current !== o, j = n && ze === !0 || n && (Ke || Ue), q = !j && o !== void 0 && w(o) && !Qe, Ee = /* @__PURE__ */ a((t) => {
81
+ Te(Ne(t));
138
82
  }, "syncHasDisplayDataRows");
139
- V.current = P, me.current = i, $.current = p, W.current = _e(p, {
140
- hourMinuteInvalidText: z("Message.시간은 HH:mm 형식으로 입력해주세요.")
141
- }), ye.current = le, ge.current = ce, Re.current = {
142
- onSelect: ee,
143
- onRowClick: re,
144
- onRowAdd: te,
145
- onRowDelete: oe,
146
- onRowUndelete: ne,
147
- onRowChange: ie,
148
- onClickButton: se,
149
- onSave: ae,
150
- onReady: de,
151
- onAfterValueChanged: ue
83
+ S.current = h, de.current = o, N.current = m, M.current = Me(m, {
84
+ hourMinuteInvalidText: H("Message.시간은 HH:mm 형식으로 입력해주세요.")
85
+ }), pe.current = ue, Re.current = le, ye.current = _(s.editable.backgroundColor) ?? _(he), Ge.current = s.changed.backgroundColor ?? He, ge.current = s.state.selectedCellBackgroundColor, ve.current = s.state.hoverCellBackgroundColor, fe.current = {
86
+ onSelect: X,
87
+ onRowClick: Z,
88
+ onRowAdd: $,
89
+ onRowDelete: ee,
90
+ onRowUndelete: re,
91
+ onRowChange: te,
92
+ onClickButton: oe,
93
+ onSave: ne,
94
+ onReady: ie,
95
+ onAfterValueChanged: se
152
96
  };
153
- const we = Ue({
154
- visible: k || q,
155
- containerRef: fe,
156
- treeGridInstanceRef: a,
157
- debugId: e
158
- }), S = /* @__PURE__ */ d(() => {
97
+ const be = sr({
98
+ visible: j || q,
99
+ containerRef: ae,
100
+ treeGridInstanceRef: i,
101
+ debugId: r
102
+ }), B = /* @__PURE__ */ a(() => {
159
103
  T.current !== void 0 && (window.clearTimeout(T.current), T.current = void 0);
160
- }, "clearBindingLoadingHideTimeout"), Y = /* @__PURE__ */ d(() => {
104
+ }, "clearBindingLoadingHideTimeout"), W = /* @__PURE__ */ a(() => {
161
105
  y.current !== void 0 && (window.clearTimeout(y.current), y.current = void 0);
162
106
  }, "clearBodyReloadStartTimeout");
163
- _(() => {
164
- const t = /* @__PURE__ */ d((o) => {
165
- var l;
166
- ((l = o.detail) == null ? void 0 : l.gridId) === e && ve(Le(a.current));
107
+ O(() => {
108
+ const t = /* @__PURE__ */ a((u) => {
109
+ var d;
110
+ ((d = u.detail) == null ? void 0 : d.gridId) === r && Te(Ne(i.current));
167
111
  }, "handleBodyRowsChanged");
168
- return window.addEventListener(Be, t), () => {
169
- window.removeEventListener(Be, t);
112
+ return window.addEventListener(Ae, t), () => {
113
+ window.removeEventListener(Ae, t);
170
114
  };
171
- }, [e]), _(() => {
172
- s || (Y(), S(), u.current = null, g(!1));
173
- }, [s]), _(() => {
115
+ }, [r]), O(() => {
116
+ n || (W(), B(), c.current = null, G(!1));
117
+ }, [n]), O(() => {
174
118
  var t;
175
- if (H.id !== Ge.current && !O(a.current) && ((t = a.current) == null || t.Dispose(), a.current = null, Ge.current = H.id), !!O(a.current))
176
- return er({
177
- id: e,
178
- latestEventHandlersRef: Re,
179
- highlightEditableCellsRef: ye,
180
- highlightChangedCellsRef: ge,
181
- treeGridInstanceRef: a,
182
- treeGridInitStartedAtRef: pe,
183
- latestLayoutOverridesRef: V,
184
- appliedLayoutOverridesRef: b,
185
- appliedBodyDataPropRef: I,
186
- latestColumnEditRulesRef: $,
187
- latestColumnEditRuleLookupRef: W,
188
- appliedColumnEditRulesRef: B,
189
- columnEditRulesStateRef: Te,
190
- hasAppliedInitialLayoutRef: Ne,
191
- syncHasDisplayDataRows: Ce,
192
- setIsTreeGridReady: Ve
193
- }), pe.current = X(), He(e, "init"), Se(e, "TreeGrid init start", {
119
+ if (D.id !== Ce.current && !w(i.current) && ((t = i.current) == null || t.Dispose(), i.current = null, Ce.current = D.id), !!w(i.current))
120
+ return ur({
121
+ id: r,
122
+ latestEventHandlersRef: fe,
123
+ highlightEditableCellsRef: pe,
124
+ highlightChangedCellsRef: Re,
125
+ editableCellBackgroundColorValueRef: ye,
126
+ changedCellBackgroundColorRef: Ge,
127
+ selectedCellBackgroundColorRef: ge,
128
+ hoverCellBackgroundColorRef: ve,
129
+ treeGridInstanceRef: i,
130
+ treeGridInitStartedAtRef: ce,
131
+ latestLayoutOverridesRef: S,
132
+ appliedLayoutOverridesRef: C,
133
+ appliedBodyDataPropRef: E,
134
+ latestColumnEditRulesRef: N,
135
+ latestColumnEditRuleLookupRef: M,
136
+ appliedColumnEditRulesRef: b,
137
+ columnEditRulesStateRef: me,
138
+ hasAppliedInitialLayoutRef: Ye,
139
+ syncHasDisplayDataRows: Ee,
140
+ setIsTreeGridReady: Je
141
+ }), ce.current = z(), ke(r, "init"), Pe(r, "TreeGrid init start", {
194
142
  useDataUrl: !!U,
195
- bodyRowCount: K(i)
143
+ bodyRowCount: J(o)
196
144
  }), window.TreeGrid(
197
- rr({
198
- id: e,
199
- layoutUrl: f,
200
- dataUrl: Pe,
201
- bodyData: i,
145
+ lr({
146
+ id: r,
147
+ layoutUrl: We,
148
+ dataUrl: Fe,
149
+ bodyData: o,
202
150
  useDataUrl: U,
203
- width: h,
204
- height: E,
205
- languageId: H.id
151
+ width: Q,
152
+ height: K,
153
+ languageId: D.id
206
154
  }),
207
- e,
208
- e
155
+ r,
156
+ r
209
157
  ), () => {
210
- ur(() => {
211
- var o;
212
- (o = a.current) == null || o.Dispose();
158
+ gr(() => {
159
+ var u;
160
+ (u = i.current) == null || u.Dispose();
213
161
  }, 200);
214
162
  };
215
- }, []), Ke(() => {
216
- const t = a.current, o = V.current, G = me.current, l = $.current;
217
- if (O(t) || !j)
163
+ }, []), nr(() => {
164
+ const t = i.current, u = S.current, g = de.current, d = N.current;
165
+ if (w(t) || !V)
218
166
  return;
219
- const Ee = b.current !== o && !Oe(b.current, o), x = I.current !== G && (!F.current || m.current !== G), he = B.current !== l && !Oe(B.current, l);
220
- if (!(!Ee && !x && !he)) {
221
- if (Ee) {
222
- const c = X();
223
- nr(t, o, x), b.current = o, xe(e, "apply layout", c, {
224
- disableBodyReload: !!x
167
+ const Ie = C.current !== u && !xe(C.current, u), I = E.current !== g && (!x.current || p.current !== g), Le = b.current !== d && !xe(b.current, d);
168
+ if (!(!Ie && !I && !Le)) {
169
+ if (Ie) {
170
+ const f = z();
171
+ dr(t, u, I), C.current = u, Se(r, "apply layout", f, {
172
+ disableBodyReload: !!I
225
173
  });
226
174
  }
227
- if (x) {
228
- const c = R.current + 1, De = /* @__PURE__ */ d(() => {
229
- const C = m.current;
230
- y.current = void 0, N.current = X(), He(e, "reload"), Se(e, "ReloadBody start", {
231
- bodyRowCount: K(C)
232
- }), tr(t, C, () => {
233
- if (R.current !== c)
175
+ if (I) {
176
+ const f = R.current + 1, _e = /* @__PURE__ */ a(() => {
177
+ const v = p.current;
178
+ y.current = void 0, P.current = z(), ke(r, "reload"), Pe(r, "ReloadBody start", {
179
+ bodyRowCount: J(v)
180
+ }), ar(t, v, () => {
181
+ if (R.current !== f)
234
182
  return;
235
- I.current = C, Ce(t), xe(e, "ReloadBody end", N.current, {
236
- bodyRowCount: K(C)
237
- }), N.current = null, m.current === C && (m.current = void 0, F.current = !1);
238
- const be = u.current;
239
- if (!s || be === null) {
240
- u.current = null, g(!1);
183
+ E.current = v, Ee(t), Se(r, "ReloadBody end", P.current, {
184
+ bodyRowCount: J(v)
185
+ }), P.current = null, p.current === v && (p.current = void 0, x.current = !1);
186
+ const Oe = c.current;
187
+ if (!n || Oe === null) {
188
+ c.current = null, G(!1);
241
189
  return;
242
190
  }
243
- const Ie = Math.max(
191
+ const we = Math.max(
244
192
  0,
245
- or - (Date.now() - be)
193
+ cr - (Date.now() - Oe)
246
194
  );
247
- if (S(), Ie === 0) {
248
- u.current = null, g(!1);
195
+ if (B(), we === 0) {
196
+ c.current = null, G(!1);
249
197
  return;
250
198
  }
251
199
  T.current = window.setTimeout(() => {
252
- R.current === c && (T.current = void 0, u.current = null, g(!1));
253
- }, Ie);
200
+ R.current === f && (T.current = void 0, c.current = null, G(!1));
201
+ }, we);
254
202
  });
255
203
  }, "runBodyReload");
256
- R.current = c, m.current = G, F.current = !0, s && G !== void 0 ? (Y(), S(), u.current = Date.now(), g(!0), y.current = window.setTimeout(() => {
257
- R.current === c && De();
258
- }, 0)) : De();
204
+ R.current = f, p.current = g, x.current = !0, n && g !== void 0 ? (W(), B(), c.current = Date.now(), G(!0), y.current = window.setTimeout(() => {
205
+ R.current === f && _e();
206
+ }, 0)) : _e();
259
207
  }
260
- he && (dr(
208
+ Le && (Rr(
261
209
  t,
262
- W.current,
263
- Te.current
264
- ), B.current = l);
210
+ M.current,
211
+ me.current
212
+ ), b.current = d);
265
213
  }
266
- }, [j, P, i, p, s, e]), _(() => () => {
267
- Y(), S();
214
+ }, [V, h, o, m, n, r]), O(() => () => {
215
+ W(), B();
268
216
  }, []);
269
- const Q = {
270
- height: E,
271
- width: h,
272
- "--owp-tree-grid-header-background-color": v.header.backgroundColor,
273
- "--owp-tree-grid-header-color": v.header.color,
274
- "--owp-tree-grid-header-font-size": Me(v.header.fontSize),
275
- "--owp-tree-grid-header-font-weight": String(v.header.fontWeight),
276
- "--owp-tree-grid-cell-font-size": Me(v.cell.fontSize),
277
- ...n
278
- };
279
- return (s || q) && (Q.position = n != null && n.position && n.position !== "static" ? n.position : "relative", Q.isolation = "isolate"), /* @__PURE__ */ ke(
217
+ const F = Tr({
218
+ width: Q,
219
+ height: K,
220
+ treeGridTheme: s,
221
+ gridThemeConfig: k,
222
+ containerStyle: l
223
+ });
224
+ return (n || q) && (F.position = l != null && l.position && l.position !== "static" ? l.position : "relative", F.isolation = "isolate"), /* @__PURE__ */ Ze(
280
225
  "div",
281
226
  {
282
- ref: fe,
283
- className: [Ae, M].filter(Boolean).join(" "),
284
- style: Q,
227
+ ref: ae,
228
+ className: [yr, Ve].filter(Boolean).join(" "),
229
+ style: F,
285
230
  children: [
286
- /* @__PURE__ */ L(Ze, { styles: Rr }),
287
- /* @__PURE__ */ L("div", { id: e, className: w, style: lr(A, ["height", "width"]) }),
231
+ /* @__PURE__ */ L(ir, { styles: Gr }),
232
+ /* @__PURE__ */ L("div", { id: r, className: je, style: vr(qe, ["height", "width"]) }),
288
233
  /* @__PURE__ */ L(
289
- sr,
234
+ mr,
290
235
  {
291
236
  visible: q,
292
- message: z("Message.조회된 결과가 없습니다."),
293
- overlayFrame: we
237
+ message: H("Message.조회된 결과가 없습니다."),
238
+ overlayFrame: be
294
239
  }
295
240
  ),
296
- /* @__PURE__ */ L(ir, { visible: k, overlayFrame: we })
241
+ /* @__PURE__ */ L(fr, { visible: j, overlayFrame: be })
297
242
  ]
298
243
  }
299
244
  );
300
245
  }, "OwpTreeGrid");
301
246
  export {
302
- Pr as OwpTreeGrid
247
+ Fr as OwpTreeGrid
303
248
  };
304
249
  //# sourceMappingURL=OwpTreeGrid.js.map