@owp/core 2.2.0 → 2.2.2

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 (55) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index11.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/index16.js +5 -2
  7. package/dist/_virtual/index16.js.map +1 -1
  8. package/dist/_virtual/index17.js +2 -2
  9. package/dist/_virtual/index5.js +2 -5
  10. package/dist/_virtual/index5.js.map +1 -1
  11. package/dist/_virtual/index6.js +2 -2
  12. package/dist/_virtual/index7.js +2 -2
  13. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +137 -134
  14. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  15. package/dist/components/OwpTreeGrid/OwpTreeGridNoDataOverlay.js +3 -4
  16. package/dist/components/OwpTreeGrid/OwpTreeGridNoDataOverlay.js.map +1 -1
  17. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  18. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  19. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  20. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  21. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  22. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  23. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  24. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.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/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  31. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.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/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
  34. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
  35. package/dist/utils/exceljsBrowser.js +6 -6
  36. package/dist/utils/exceljsBrowser.js.map +1 -1
  37. package/dist/utils/jszipBrowser.js +6 -6
  38. package/dist/utils/jszipBrowser.js.map +1 -1
  39. package/dist/utils/treeGridExportExcelUtil.js +306 -268
  40. package/dist/utils/treeGridExportExcelUtil.js.map +1 -1
  41. package/package.json +1 -3
  42. package/dist/_virtual/_commonjs-dynamic-modules.js +0 -10
  43. package/dist/_virtual/_commonjs-dynamic-modules.js.map +0 -1
  44. package/dist/_virtual/exceljs.min.js +0 -31
  45. package/dist/_virtual/exceljs.min.js.map +0 -1
  46. package/dist/_virtual/exceljs.min2.js +0 -5
  47. package/dist/_virtual/exceljs.min2.js.map +0 -1
  48. package/dist/_virtual/jszip.min.js +0 -31
  49. package/dist/_virtual/jszip.min.js.map +0 -1
  50. package/dist/_virtual/jszip.min2.js +0 -5
  51. package/dist/_virtual/jszip.min2.js.map +0 -1
  52. package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js +0 -23540
  53. package/dist/node_modules/.pnpm/exceljs@4.4.0/node_modules/exceljs/dist/exceljs.min.js.map +0 -1
  54. package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -2385
  55. package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index10.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index11.js.map
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var e = {};
2
2
  export {
3
- a as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index13.js.map
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index14.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
5
5
  //# sourceMappingURL=index15.js.map
@@ -1,5 +1,8 @@
1
- var e = {};
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
2
5
  export {
3
- e as __exports
6
+ s as default
4
7
  };
5
8
  //# sourceMappingURL=index16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var p = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ p as __module
4
4
  };
5
5
  //# sourceMappingURL=index17.js.map
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
1
+ var r = {};
5
2
  export {
6
- s as default
3
+ r as __exports
7
4
  };
8
5
  //# sourceMappingURL=index5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,5 @@
1
- var p = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- p as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index6.js.map
@@ -1,5 +1,5 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index7.js.map
@@ -1,92 +1,92 @@
1
- var pe = Object.defineProperty;
2
- var o = (e, n) => pe(e, "name", { value: n, configurable: !0 });
3
- import { jsxs as me, jsx as W } 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 { useOwpTranslation as Te } from "../../hooks/useOwpTranslation.js";
5
- import { useGetCurrentLanguage as ve } from "../../hooks/useCurrentLanguage.js";
6
- import { useRef as i, useState as ie, useEffect as X, useLayoutEffect as Ge } from "react";
7
- import { useOwpTreeGridOverlayFrame as ye } from "./hooks/useOwpTreeGridOverlayFrame.js";
8
- import { OwpTreeGridLoadingOverlay as De } from "./OwpTreeGridLoadingOverlay.js";
9
- import { OwpTreeGridNoDataOverlay as we } from "./OwpTreeGridNoDataOverlay.js";
10
- import { applyTreeGridLayoutToGrid as ue } from "./utils/index.js";
1
+ var ye = Object.defineProperty;
2
+ var i = (e, n) => ye(e, "name", { value: n, configurable: !0 });
3
+ import { jsxs as Ge, 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 { useOwpTranslation as De } from "../../hooks/useOwpTranslation.js";
5
+ import { useGetCurrentLanguage as Re } from "../../hooks/useCurrentLanguage.js";
6
+ import { useRef as o, useState as ce, useEffect as Z, useLayoutEffect as we } from "react";
7
+ import { useOwpTreeGridOverlayFrame as Ee } from "./hooks/useOwpTreeGridOverlayFrame.js";
8
+ import { OwpTreeGridLoadingOverlay as Oe } from "./OwpTreeGridLoadingOverlay.js";
9
+ import { OwpTreeGridNoDataOverlay as ge } from "./OwpTreeGridNoDataOverlay.js";
10
+ import { applyTreeGridLayoutToGrid as fe } from "./utils/index.js";
11
11
  import { isEmpty as B } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
12
- import { delay as Ee } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
13
- import { isEqual as Re } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
14
- import { omit as Oe } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
12
+ import { delay as be } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/delay.js";
13
+ import { isEqual as Be } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
14
+ import { omit as Ie } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
15
15
  import { debounce as $ } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
16
- import { get as ge } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
17
- const Be = 300, se = {
16
+ import { get as Se } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
17
+ const Le = 300, ae = {
18
18
  en: "/assets/vendors/Grid/TextEN.xml",
19
19
  kr: "/assets/vendors/Grid/TextKR.xml"
20
- }, ce = /* @__PURE__ */ o((e) => `${e}?noCache=${Date.now()}`, "appendNoCacheQuery"), be = /* @__PURE__ */ o((e) => e === "kr" ? se.kr : se.en, "getTreeGridTextResourceUrl"), Se = /* @__PURE__ */ o((e) => e != null && e.includes("assets") ? ce(e) : (
20
+ }, de = /* @__PURE__ */ i((e) => `${e}?noCache=${Date.now()}`, "appendNoCacheQuery"), xe = /* @__PURE__ */ i((e) => e === "kr" ? ae.kr : ae.en, "getTreeGridTextResourceUrl"), Ce = /* @__PURE__ */ i((e) => e != null && e.includes("assets") ? de(e) : (
21
21
  // @ts-expect-error - API base URL env is provided by host app
22
22
  `undefined/${e}?noCache=${Date.now()}`
23
- ), "resolveTreeGridDataUrl"), Ie = /* @__PURE__ */ o((e, n, s) => e ? { Url: Se(n) } : { Data: { Body: [B(s) ? [] : s] } }, "buildTreeGridDataSource"), Le = /* @__PURE__ */ o(({
23
+ ), "resolveTreeGridDataUrl"), _e = /* @__PURE__ */ i((e, n, s) => e ? { Url: Ce(n) } : { Data: { Body: [B(s) ? [] : s] } }, "buildTreeGridDataSource"), Ne = /* @__PURE__ */ i(({
24
24
  id: e,
25
25
  layoutUrl: n,
26
26
  dataUrl: s,
27
27
  bodyData: f,
28
- useDataUrl: l,
28
+ useDataUrl: d,
29
29
  width: p,
30
- height: G,
31
- languageId: y
30
+ height: y,
31
+ languageId: G
32
32
  }) => ({
33
33
  id: e,
34
- Layout: { Url: ce(n ?? "") },
35
- Data: Ie(l, s, f),
34
+ Layout: { Url: de(n ?? "") },
35
+ Data: _e(d, s, f),
36
36
  Text: {
37
- Url: be(y)
37
+ Url: xe(G)
38
38
  },
39
39
  width: p,
40
- height: G,
40
+ height: y,
41
41
  Debug: "Error"
42
- }), "buildTreeGridInitializationOptions"), xe = /* @__PURE__ */ o((e) => ge(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Ce = /* @__PURE__ */ o((e, n, s) => {
43
- var l;
44
- const f = (l = e.Data) == null ? void 0 : l.Data;
42
+ }), "buildTreeGridInitializationOptions"), Ve = /* @__PURE__ */ i((e) => Se(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), Pe = /* @__PURE__ */ i((e, n, s) => {
43
+ var d;
44
+ const f = (d = e.Data) == null ? void 0 : d.Data;
45
45
  e.Data.Data = {
46
46
  ...f,
47
47
  Data: { Body: [n || []] },
48
48
  Url: ""
49
49
  }, e.ReloadBody(s);
50
- }, "replaceTreeGridBodyData"), _e = /* @__PURE__ */ o(({
50
+ }, "replaceTreeGridBodyData"), $e = /* @__PURE__ */ i(({
51
51
  id: e,
52
52
  onSelect: n,
53
53
  onRowClick: s,
54
54
  onRowAdd: f,
55
- onRowDelete: l,
55
+ onRowDelete: d,
56
56
  onRowUndelete: p,
57
- onRowChange: G,
58
- onClickButton: y,
59
- onSave: b,
57
+ onRowChange: y,
58
+ onClickButton: G,
59
+ onSave: I,
60
60
  onReady: m,
61
- onAfterValueChanged: c,
62
- treeGridInstanceRef: M,
63
- latestLayoutOverridesRef: k,
64
- appliedLayoutOverridesRef: q,
65
- appliedBodyDataPropRef: A,
61
+ onAfterValueChanged: a,
62
+ treeGridInstanceRef: A,
63
+ latestLayoutOverridesRef: M,
64
+ appliedLayoutOverridesRef: k,
65
+ appliedBodyDataPropRef: q,
66
66
  hasAppliedInitialLayoutRef: S,
67
67
  setIsTreeGridReady: H
68
68
  }) => {
69
- const I = c ?? G;
69
+ const L = a ?? y;
70
70
  window.TGSetEvent("OnRowAdd", e, (t, r) => {
71
71
  r.CanEdit = 1, r.CanDelete = 1, f == null || f(t, r);
72
72
  }), typeof s == "function" && window.TGSetEvent(
73
73
  "OnClick",
74
74
  e,
75
- $((t, r, u, T, a, P) => {
76
- s(t, r, u, T, a, P);
75
+ $((t, r, u, v, h, c) => {
76
+ s(t, r, u, v, h, c);
77
77
  }, 300)
78
- ), typeof y == "function" && window.TGSetEvent(
78
+ ), typeof G == "function" && window.TGSetEvent(
79
79
  "OnClickButton",
80
80
  e,
81
- $((t, r, u, T) => {
82
- y(t, r, u, T);
81
+ $((t, r, u, v) => {
82
+ G(t, r, u, v);
83
83
  }, 300)
84
- ), typeof l == "function" && window.TGSetEvent("OnRowDelete", e, (t, r, u) => {
85
- l(t, r, u);
84
+ ), typeof d == "function" && window.TGSetEvent("OnRowDelete", e, (t, r, u) => {
85
+ d(t, r, u);
86
86
  }), typeof p == "function" && window.TGSetEvent("OnRowUndelete", e, (t, r) => {
87
87
  p(t, r);
88
- }), typeof I == "function" && window.TGSetEvent("OnAfterValueChanged", e, (t, r, u, T) => {
89
- I(t, r, u, T);
88
+ }), typeof L == "function" && window.TGSetEvent("OnAfterValueChanged", e, (t, r, u, v) => {
89
+ L(t, r, u, v);
90
90
  }), typeof n == "function" && window.TGSetEvent(
91
91
  "OnSelect",
92
92
  e,
@@ -94,150 +94,153 @@ const Be = 300, se = {
94
94
  const r = t.GetSelRows() ?? [];
95
95
  n(r);
96
96
  }, 100)
97
- ), typeof b == "function" && window.TGSetEvent("OnSave", e, (t, r, u) => {
98
- b(t, r, u);
97
+ ), typeof I == "function" && window.TGSetEvent("OnSave", e, (t, r, u) => {
98
+ I(t, r, u);
99
99
  }), window.TGSetEvent(
100
100
  "OnReady",
101
101
  e,
102
102
  $((t) => {
103
103
  if (!S.current) {
104
- const r = k.current;
105
- S.current = !0, ue(t, r), M.current = t, q.current = r, A.current = xe(t), H(!0), m == null || m(t);
104
+ const r = M.current;
105
+ S.current = !0, fe(t, r), A.current = t, k.current = r, q.current = Ve(t), H(!0), m == null || m(t);
106
106
  }
107
107
  }, 100)
108
108
  );
109
- }, "bindTreeGridEvents"), Qe = /* @__PURE__ */ o(({
109
+ }, "bindTreeGridEvents"), Ze = /* @__PURE__ */ i(({
110
110
  id: e = "treeGridWrapper",
111
111
  containerStyle: n,
112
112
  containerClassName: s,
113
113
  className: f,
114
- style: l,
114
+ style: d,
115
115
  height: p = "100%",
116
- width: G = "100%",
117
- layoutUrl: y,
118
- dataUrl: b,
116
+ width: y = "100%",
117
+ layoutUrl: G,
118
+ dataUrl: I,
119
119
  layoutOverrides: m,
120
- data: c,
121
- useDataUrl: M,
122
- onSelect: k,
123
- onRowClick: q,
124
- onRowAdd: A,
120
+ data: a,
121
+ useDataUrl: A,
122
+ onSelect: M,
123
+ onRowClick: k,
124
+ onRowAdd: q,
125
125
  onRowDelete: S,
126
126
  onRowUndelete: H,
127
- onRowChange: I,
127
+ onRowChange: L,
128
128
  onClickButton: t,
129
129
  onSave: r,
130
130
  onReady: u,
131
- onAfterValueChanged: T,
132
- showLoading: a = !0
131
+ onAfterValueChanged: v,
132
+ loading: h,
133
+ showLoading: c = !0
133
134
  }) => {
134
- const { t: P } = Te(), d = i(null), J = i(null), h = i(m), Y = i(c), L = i(void 0), x = i(void 0), ae = i(!1), E = i(0), D = i(null), R = i(void 0), O = i(void 0), [j, fe] = ie(!1), [le, g] = ie(!1), C = ve(), Z = i(C.id), de = a && c !== void 0 && j && x.current !== c, F = a && (le || de), U = !F && c !== void 0 && B(c);
135
- h.current = m, Y.current = c;
136
- const ee = ye({
137
- visible: F || U,
138
- containerRef: J,
139
- treeGridInstanceRef: d
140
- }), _ = /* @__PURE__ */ o(() => {
141
- R.current !== void 0 && (window.clearTimeout(R.current), R.current = void 0);
142
- }, "clearBindingLoadingHideTimeout"), z = /* @__PURE__ */ o(() => {
135
+ const { t: le } = De(), l = o(null), ee = o(null), j = o(m), te = o(a), w = o(void 0), F = o(!1), x = o(void 0), C = o(void 0), pe = o(!1), E = o(0), D = o(null), O = o(void 0), g = o(void 0), [U, me] = ce(!1), [ve, b] = ce(!1), _ = Re(), re = o(_.id), Te = c && a !== void 0 && U && C.current !== a, z = c && h === !0 || c && (ve || Te), K = !z && a !== void 0 && B(a);
136
+ j.current = m, te.current = a;
137
+ const ne = Ee({
138
+ visible: z || K,
139
+ containerRef: ee,
140
+ treeGridInstanceRef: l
141
+ }), N = /* @__PURE__ */ i(() => {
143
142
  O.current !== void 0 && (window.clearTimeout(O.current), O.current = void 0);
143
+ }, "clearBindingLoadingHideTimeout"), Q = /* @__PURE__ */ i(() => {
144
+ g.current !== void 0 && (window.clearTimeout(g.current), g.current = void 0);
144
145
  }, "clearBodyReloadStartTimeout");
145
- X(() => {
146
- a || (z(), _(), D.current = null, g(!1));
147
- }, [a]), X(() => {
148
- var w;
149
- if (C.id !== Z.current && !B(d.current) && ((w = d.current) == null || w.Dispose(), d.current = null, Z.current = C.id), !!B(d.current))
150
- return _e({
146
+ Z(() => {
147
+ c || (Q(), N(), D.current = null, b(!1));
148
+ }, [c]), Z(() => {
149
+ var R;
150
+ if (_.id !== re.current && !B(l.current) && ((R = l.current) == null || R.Dispose(), l.current = null, re.current = _.id), !!B(l.current))
151
+ return $e({
151
152
  id: e,
152
- onSelect: k,
153
- onRowClick: q,
154
- onRowAdd: A,
153
+ onSelect: M,
154
+ onRowClick: k,
155
+ onRowAdd: q,
155
156
  onRowDelete: S,
156
157
  onRowUndelete: H,
157
- onRowChange: I,
158
+ onRowChange: L,
158
159
  onClickButton: t,
159
160
  onSave: r,
160
161
  onReady: u,
161
- onAfterValueChanged: T,
162
- treeGridInstanceRef: d,
163
- latestLayoutOverridesRef: h,
164
- appliedLayoutOverridesRef: L,
165
- appliedBodyDataPropRef: x,
166
- hasAppliedInitialLayoutRef: ae,
167
- setIsTreeGridReady: fe
162
+ onAfterValueChanged: v,
163
+ treeGridInstanceRef: l,
164
+ latestLayoutOverridesRef: j,
165
+ appliedLayoutOverridesRef: x,
166
+ appliedBodyDataPropRef: C,
167
+ hasAppliedInitialLayoutRef: pe,
168
+ setIsTreeGridReady: me
168
169
  }), window.TreeGrid(
169
- Le({
170
+ Ne({
170
171
  id: e,
171
- layoutUrl: y,
172
- dataUrl: b,
173
- bodyData: c,
174
- useDataUrl: M,
175
- width: G,
172
+ layoutUrl: G,
173
+ dataUrl: I,
174
+ bodyData: a,
175
+ useDataUrl: A,
176
+ width: y,
176
177
  height: p,
177
- languageId: C.id
178
+ languageId: _.id
178
179
  }),
179
180
  e,
180
181
  e
181
182
  ), () => {
182
- Ee(() => {
183
- var v;
184
- (v = d.current) == null || v.Dispose();
183
+ be(() => {
184
+ var T;
185
+ (T = l.current) == null || T.Dispose();
185
186
  }, 200);
186
187
  };
187
- }, []), Ge(() => {
188
- const w = d.current, v = h.current, N = Y.current;
189
- if (B(w) || !j)
188
+ }, []), we(() => {
189
+ const R = l.current, T = j.current, V = te.current;
190
+ if (B(R) || !U)
190
191
  return;
191
- const te = L.current !== v && !Re(L.current, v), Q = x.current !== N;
192
- if (!(!te && !Q) && (te && (ue(w, v, Q), L.current = v), Q)) {
193
- const V = E.current + 1, re = /* @__PURE__ */ o(() => {
194
- O.current = void 0, Ce(w, N, () => {
195
- if (E.current !== V)
192
+ const oe = x.current !== T && !Be(x.current, T), X = C.current !== V && (!F.current || w.current !== V);
193
+ if (!(!oe && !X) && (oe && (fe(R, T, X), x.current = T), X)) {
194
+ const P = E.current + 1, ie = /* @__PURE__ */ i(() => {
195
+ const J = w.current;
196
+ g.current = void 0, Pe(R, J, () => {
197
+ if (E.current !== P)
196
198
  return;
197
- const ne = D.current;
198
- if (!a || ne === null) {
199
- D.current = null, g(!1);
199
+ C.current = J, w.current === J && (w.current = void 0, F.current = !1);
200
+ const se = D.current;
201
+ if (!c || se === null) {
202
+ D.current = null, b(!1);
200
203
  return;
201
204
  }
202
- const oe = Math.max(
205
+ const ue = Math.max(
203
206
  0,
204
- Be - (Date.now() - ne)
207
+ Le - (Date.now() - se)
205
208
  );
206
- if (_(), oe === 0) {
207
- D.current = null, g(!1);
209
+ if (N(), ue === 0) {
210
+ D.current = null, b(!1);
208
211
  return;
209
212
  }
210
- R.current = window.setTimeout(() => {
211
- E.current === V && (R.current = void 0, D.current = null, g(!1));
212
- }, oe);
213
+ O.current = window.setTimeout(() => {
214
+ E.current === P && (O.current = void 0, D.current = null, b(!1));
215
+ }, ue);
213
216
  });
214
217
  }, "runBodyReload");
215
- E.current = V, a && N !== void 0 ? (z(), _(), D.current = Date.now(), g(!0), O.current = window.setTimeout(() => {
216
- E.current === V && re();
217
- }, 0)) : re(), x.current = N;
218
+ E.current = P, w.current = V, F.current = !0, c && V !== void 0 ? (Q(), N(), D.current = Date.now(), b(!0), g.current = window.setTimeout(() => {
219
+ E.current === P && ie();
220
+ }, 0)) : ie();
218
221
  }
219
- }, [j, m, c, a]), X(() => () => {
220
- z(), _();
222
+ }, [U, m, a, c]), Z(() => () => {
223
+ Q(), N();
221
224
  }, []);
222
- const K = {
225
+ const W = {
223
226
  height: p,
224
- width: G,
227
+ width: y,
225
228
  ...n
226
229
  };
227
- return (a || U) && (K.position = n != null && n.position && n.position !== "static" ? n.position : "relative", K.isolation = "isolate"), /* @__PURE__ */ me("div", { ref: J, className: s, style: K, children: [
228
- /* @__PURE__ */ W("div", { id: e, className: f, style: Oe(l, ["height", "width"]) }),
229
- /* @__PURE__ */ W(
230
- we,
230
+ return (c || K) && (W.position = n != null && n.position && n.position !== "static" ? n.position : "relative", W.isolation = "isolate"), /* @__PURE__ */ Ge("div", { ref: ee, className: s, style: W, children: [
231
+ /* @__PURE__ */ Y("div", { id: e, className: f, style: Ie(d, ["height", "width"]) }),
232
+ /* @__PURE__ */ Y(
233
+ ge,
231
234
  {
232
- visible: U,
233
- message: P("Message.조회된 결과가 없습니다."),
234
- overlayFrame: ee
235
+ visible: K,
236
+ message: le("Message.조회된 결과가 없습니다."),
237
+ overlayFrame: ne
235
238
  }
236
239
  ),
237
- /* @__PURE__ */ W(De, { visible: F, overlayFrame: ee })
240
+ /* @__PURE__ */ Y(Oe, { visible: z, overlayFrame: ne })
238
241
  ] });
239
242
  }, "OwpTreeGrid");
240
243
  export {
241
- Qe as OwpTreeGrid
244
+ Ze as OwpTreeGrid
242
245
  };
243
246
  //# sourceMappingURL=OwpTreeGrid.js.map