@owp/core 2.5.37 → 2.5.39

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/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/_virtual/index3.js +2 -2
  10. package/dist/_virtual/index4.js +2 -2
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +192 -193
  12. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +140 -133
  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/layout/components/toggles/NavigationSearchToggle.js +3 -3
  18. package/dist/node_modules/.pnpm/inko@1.1.1/node_modules/inko/index.js +1 -1
  19. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  20. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  21. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.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/constants.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/index.js +1 -1
  30. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  31. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  32. 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
  33. package/dist/types/configs/defaultConfig.d.ts +7 -7
  34. package/dist/utils/treeGridUtil.js +91 -85
  35. package/dist/utils/treeGridUtil.js.map +1 -1
  36. package/package.json +1 -1
  37. package/treegrid/Defaults.xml +1 -1
@@ -1,57 +1,57 @@
1
- var q = Object.defineProperty;
2
- var l = (e, t) => q(e, "name", { value: t, configurable: !0 });
3
- import { TREEGRID_CELL_CHANGED_CLASS as z, TREEGRID_CELL_HIGHLIGHT_COLOR as O } from "../constants/treeGrid.js";
1
+ var z = Object.defineProperty;
2
+ var l = (e, t) => z(e, "name", { value: t, configurable: !0 });
3
+ import { TREEGRID_CELL_CHANGED_CLASS as O, TREEGRID_CELL_HIGHLIGHT_COLOR as N } from "../constants/treeGrid.js";
4
4
  import { TREEGRID_INPUT_CELL_COLOR as Tt, TREEGRID_WARNING_CELL_COLOR as Gt } from "../constants/treeGrid.js";
5
- import { parseTreeGridXmlToJson as N } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
6
- import { resolveTreeGridSelectedRows as U } from "../components/OwpTreeGrid/internal/treeGridSelection.js";
5
+ import { parseTreeGridXmlToJson as U } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
6
+ import { resolveTreeGridSelectedRows as P } from "../components/OwpTreeGrid/internal/treeGridSelection.js";
7
7
  import { emitTreeGridBodyRowsChanged as _ } from "./internal/treeGridBodyRowsEvent.js";
8
8
  import { isArray as D } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
9
- import { lowerCase as P } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
9
+ import { lowerCase as W } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
10
10
  import { isPlainObject as y } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isPlainObject.js";
11
- import { get as W } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
- import { isEmpty as Y } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
13
- import { without as M } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
14
- const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, B = "__owpAddedByAddTreeGridRowById", E = "__owpAddedRowHighlightColumns", L = "__owpAddedRowInitialValueKeys", v = "__owpAddedRowBaselineValues", G = "__owpCellStyleBaselineValues", h = "Selected", J = /* @__PURE__ */ l(({
11
+ import { get as Y } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
+ import { isEmpty as M } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
13
+ import { without as X } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
14
+ const Q = ["Added", "Changed"], J = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, B = "__owpAddedByAddTreeGridRowById", E = "__owpAddedRowHighlightColumns", L = "__owpAddedRowInitialValueKeys", v = "__owpAddedRowBaselineValues", G = "__owpCellStyleBaselineValues", h = "Selected", Z = /* @__PURE__ */ l(({
15
15
  label: e
16
- }) => `${e} 필수 입력`, "DEFAULT_TREE_GRID_REQUIRED_CELL_MESSAGE_FACTORY"), Z = [
16
+ }) => `${e} 필수 입력`, "DEFAULT_TREE_GRID_REQUIRED_CELL_MESSAGE_FACTORY"), p = [
17
17
  "added"
18
- ], S = /* @__PURE__ */ l((e) => D(e) ? e.filter((t) => typeof t == "string" && t !== "") : [], "normalizeTreeGridStringValues"), A = S, p = /* @__PURE__ */ l((e) => {
18
+ ], S = /* @__PURE__ */ l((e) => D(e) ? e.filter((t) => typeof t == "string" && t !== "") : [], "normalizeTreeGridStringValues"), A = S, ee = /* @__PURE__ */ l((e) => {
19
19
  e && (e[B] = 1);
20
- }, "markTreeGridRowAddedById"), ee = /* @__PURE__ */ l((e) => {
20
+ }, "markTreeGridRowAddedById"), te = /* @__PURE__ */ l((e) => {
21
21
  const t = e == null ? void 0 : e[B];
22
22
  return !!e && t !== 0 && t !== !1 && t !== void 0;
23
23
  }, "isTreeGridRowAddedById"), m = /* @__PURE__ */ l((e) => {
24
24
  const t = e == null ? void 0 : e.Added;
25
- return t === 1 || t === "1" || t === !0 || ee(e);
26
- }, "isTreeGridAddedRow"), te = /* @__PURE__ */ l((e) => {
25
+ return t === 1 || t === "1" || t === !0 || te(e);
26
+ }, "isTreeGridAddedRow"), re = /* @__PURE__ */ l((e) => {
27
27
  const t = e == null ? void 0 : e.Changed;
28
28
  return !m(e) && (t === 1 || t === "1" || t === !0);
29
- }, "isTreeGridChangedRow"), k = /* @__PURE__ */ l((e) => {
29
+ }, "isTreeGridChangedRow"), F = /* @__PURE__ */ l((e) => {
30
30
  const t = e == null ? void 0 : e.Deleted;
31
31
  return t === 1 || t === "1" || t === !0;
32
- }, "isTreeGridDeletedRow"), re = /* @__PURE__ */ l((e) => {
33
- const t = D(e) ? e : e ? [e] : Z;
32
+ }, "isTreeGridDeletedRow"), ne = /* @__PURE__ */ l((e) => {
33
+ const t = D(e) ? e : e ? [e] : p;
34
34
  return t.includes("all") ? /* @__PURE__ */ new Set(["all"]) : new Set(
35
35
  t.filter(
36
36
  (r) => r === "added" || r === "changed"
37
37
  )
38
38
  );
39
- }, "normalizeTreeGridRequiredCellTargetRows"), ne = /* @__PURE__ */ l((e, t) => k(e) ? !1 : t.has("all") ? e.Kind === "Data" || m(e) : t.has("added") && m(e) || t.has("changed") && te(e), "shouldValidateTreeGridRequiredCellRow"), se = /* @__PURE__ */ l((e) => !!e && !k(e) && (e.Kind === "Data" || m(e)), "shouldValidateExplicitTreeGridRequiredCellRow"), le = /* @__PURE__ */ l((e, t) => {
39
+ }, "normalizeTreeGridRequiredCellTargetRows"), se = /* @__PURE__ */ l((e, t) => F(e) ? !1 : t.has("all") ? e.Kind === "Data" || m(e) : t.has("added") && m(e) || t.has("changed") && re(e), "shouldValidateTreeGridRequiredCellRow"), le = /* @__PURE__ */ l((e) => !!e && !F(e) && (e.Kind === "Data" || m(e)), "shouldValidateExplicitTreeGridRequiredCellRow"), ie = /* @__PURE__ */ l((e, t) => {
40
40
  var r;
41
41
  if (t)
42
42
  return typeof t.id != "string" ? t : ((r = e.Rows) == null ? void 0 : r[t.id]) ?? t;
43
- }, "resolveLiveTreeGridRequiredCellRow"), ie = /* @__PURE__ */ l((e, t) => {
43
+ }, "resolveLiveTreeGridRequiredCellRow"), ae = /* @__PURE__ */ l((e, t) => {
44
44
  const r = /* @__PURE__ */ new Set(), n = [];
45
45
  return t.forEach((s) => {
46
- const i = le(e, s);
47
- !se(i) || r.has(i) || (r.add(i), n.push(i));
46
+ const i = ie(e, s);
47
+ !le(i) || r.has(i) || (r.add(i), n.push(i));
48
48
  }), n;
49
- }, "normalizeExplicitTreeGridRequiredCellRows"), ae = /* @__PURE__ */ l((e, t) => {
49
+ }, "normalizeExplicitTreeGridRequiredCellRows"), ce = /* @__PURE__ */ l((e, t) => {
50
50
  if (t.rows !== void 0)
51
- return ie(e, t.rows);
52
- const r = re(t.targetRows);
51
+ return ae(e, t.rows);
52
+ const r = ne(t.targetRows);
53
53
  return Object.values(e.Rows ?? {}).filter(
54
- (n) => ne(n, r)
54
+ (n) => se(n, r)
55
55
  );
56
56
  }, "getTreeGridRequiredCellRows"), Qe = /* @__PURE__ */ l((e, t) => {
57
57
  if (!e || !t)
@@ -60,7 +60,7 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
60
60
  r[E]
61
61
  );
62
62
  n.includes(t) || (r[E] = [...n, t]);
63
- }, "appendTreeGridAddedRowHighlightColumn"), ge = /* @__PURE__ */ l((e, t) => {
63
+ }, "appendTreeGridAddedRowHighlightColumn"), Je = /* @__PURE__ */ l((e, t) => {
64
64
  if (!e || !t)
65
65
  return;
66
66
  const r = e, s = A(
@@ -71,9 +71,9 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
71
71
  return;
72
72
  }
73
73
  delete r[E];
74
- }, "removeTreeGridAddedRowHighlightColumn"), Je = /* @__PURE__ */ l((e) => A(
74
+ }, "removeTreeGridAddedRowHighlightColumn"), ge = /* @__PURE__ */ l((e) => A(
75
75
  e == null ? void 0 : e[E]
76
- ), "getTreeGridAddedRowHighlightColumns"), F = /* @__PURE__ */ l((e, t, r) => {
76
+ ), "getTreeGridAddedRowHighlightColumns"), $ = /* @__PURE__ */ l((e, t, r) => {
77
77
  var i, a, c, d, f;
78
78
  const n = ((i = e.GetType) == null ? void 0 : i.call(e, t, r)) || ((c = (a = e.Cols) == null ? void 0 : a[r]) == null ? void 0 : c.Type) || "", s = ((d = e.GetValue) == null ? void 0 : d.call(e, t, r)) ?? t[r];
79
79
  if (n === "Enum" || n === "Select")
@@ -85,31 +85,31 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
85
85
  } catch {
86
86
  }
87
87
  return s == null ? "" : `${s}`;
88
- }, "getTreeGridCellComparableValue"), ce = /* @__PURE__ */ l((e, t) => {
88
+ }, "getTreeGridCellComparableValue"), de = /* @__PURE__ */ l((e, t) => {
89
89
  const r = Object.fromEntries(
90
90
  Object.keys(e.Cols ?? {}).map((n) => [
91
91
  n,
92
- F(e, t, n)
92
+ $(e, t, n)
93
93
  ])
94
94
  );
95
95
  t[v] = r;
96
96
  }, "markTreeGridAddedRowBaselineValues"), Ze = /* @__PURE__ */ l((e, t) => {
97
97
  var r;
98
98
  return (r = e == null ? void 0 : e[v]) == null ? void 0 : r[t];
99
- }, "getTreeGridAddedRowBaselineValue"), de = /* @__PURE__ */ l((e, t, r) => {
99
+ }, "getTreeGridAddedRowBaselineValue"), oe = /* @__PURE__ */ l((e, t, r) => {
100
100
  var s;
101
101
  const n = t;
102
102
  n[G] ?? (n[G] = {}), !((s = n[G]) != null && s[r]) && (n[G][r] = {
103
103
  className: e.GetAttribute(t, r, "Class"),
104
104
  color: e.GetAttribute(t, r, "Color")
105
105
  });
106
- }, "preserveTreeGridCellStyleBaseline"), oe = /* @__PURE__ */ l((e, t) => {
106
+ }, "preserveTreeGridCellStyleBaseline"), ue = /* @__PURE__ */ l((e, t) => {
107
107
  var r;
108
108
  return (r = e[G]) == null ? void 0 : r[t];
109
- }, "getTreeGridCellStyleBaseline"), ue = /* @__PURE__ */ l(async () => {
109
+ }, "getTreeGridCellStyleBaseline"), fe = /* @__PURE__ */ l(async () => {
110
110
  const { exportTreeGridExcel: e } = await import("./treeGridExportExcelUtil.js");
111
111
  return e;
112
- }, "loadExportTreeGridExcel"), fe = /* @__PURE__ */ l((e) => Object.values((e == null ? void 0 : e.Rows) ?? {}).filter((t) => t.Kind === "Data"), "getDataRows"), Re = /* @__PURE__ */ l((e) => e != null && e.length ? e.map((t) => {
112
+ }, "loadExportTreeGridExcel"), Re = /* @__PURE__ */ l((e) => Object.values((e == null ? void 0 : e.Rows) ?? {}).filter((t) => t.Kind === "Data"), "getDataRows"), Te = /* @__PURE__ */ l((e) => e != null && e.length ? e.map((t) => {
113
113
  if (typeof t == "string") {
114
114
  const n = t.trim();
115
115
  return n ? { key: n } : null;
@@ -122,17 +122,17 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
122
122
  label: typeof t.label == "string" ? t.label.trim() : void 0,
123
123
  message: typeof t.message == "string" ? t.message : void 0
124
124
  } : null;
125
- }).filter((t) => !!t) : [], "normalizeTreeGridRequiredCellColumns"), $ = /* @__PURE__ */ l((e, t, r) => {
125
+ }).filter((t) => !!t) : [], "normalizeTreeGridRequiredCellColumns"), k = /* @__PURE__ */ l((e, t, r) => {
126
126
  var s;
127
127
  const n = (s = e.CanEdit) == null ? void 0 : s.call(e, t, r);
128
128
  return n === 1 || n === "1" || n === !0;
129
- }, "isTreeGridEditableCell"), Te = /* @__PURE__ */ l((e, t, r) => {
130
- const n = Re(r.columns);
129
+ }, "isTreeGridEditableCell"), Ge = /* @__PURE__ */ l((e, t, r) => {
130
+ const n = Te(r.columns);
131
131
  return n.length ? n.filter((s) => {
132
132
  var i;
133
133
  return !!((i = e.Cols) != null && i[s.key]);
134
- }) : r.editableOnly ? Object.keys(e.Cols ?? {}).filter((s) => ve(e, s) && $(e, t, s)).map((s) => ({ key: s })) : [];
135
- }, "getTreeGridRequiredCellColumns"), Ge = /* @__PURE__ */ l((e, t) => {
134
+ }) : r.editableOnly ? Object.keys(e.Cols ?? {}).filter((s) => K(e, s) && k(e, t, s)).map((s) => ({ key: s })) : [];
135
+ }, "getTreeGridRequiredCellColumns"), Ee = /* @__PURE__ */ l((e, t) => {
136
136
  var n, s, i;
137
137
  if (t.label)
138
138
  return t.label;
@@ -144,8 +144,8 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
144
144
  }
145
145
  const r = (i = (s = e.Cols) == null ? void 0 : s[t.key]) == null ? void 0 : i.Caption;
146
146
  return r ? `${r}`.trim() : t.key;
147
- }, "getTreeGridRequiredCellLabel"), Ee = /* @__PURE__ */ l((e, t, r) => t.message ? t.message : (r ?? J)(e), "getTreeGridRequiredCellMessage"), Ce = /* @__PURE__ */ l((e) => e.trim() === "", "isBlankTreeGridRequiredCellValue"), me = /* @__PURE__ */ l((e, t, r) => {
148
- !t || r.focusFirstError === !1 || (e.Focus(t.row, t.col), r.startEditFirstError === !0 && $(e, t.row, t.col) && e.StartEdit(t.row, t.col));
147
+ }, "getTreeGridRequiredCellLabel"), Ce = /* @__PURE__ */ l((e, t, r) => t.message ? t.message : (r ?? Z)(e), "getTreeGridRequiredCellMessage"), me = /* @__PURE__ */ l((e) => e.trim() === "", "isBlankTreeGridRequiredCellValue"), ye = /* @__PURE__ */ l((e, t, r) => {
148
+ !t || r.focusFirstError === !1 || (e.Focus(t.row, t.col), r.startEditFirstError === !0 && k(e, t.row, t.col) && e.StartEdit(t.row, t.col));
149
149
  }, "focusFirstTreeGridRequiredCellError"), C = /* @__PURE__ */ l((e) => typeof e == "string" && g.test(e.trim()), "isTreeGridTimeDateFormat"), x = /* @__PURE__ */ l((e, t, r) => {
150
150
  var i;
151
151
  const n = t, s = (i = e.Cols) == null ? void 0 : i[r];
@@ -160,14 +160,14 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
160
160
  } catch {
161
161
  }
162
162
  return n == null ? "" : `${n}`;
163
- }, "getTreeGridTimeDateDisplayValue"), ye = /* @__PURE__ */ l((e, t) => {
163
+ }, "getTreeGridTimeDateDisplayValue"), he = /* @__PURE__ */ l((e, t) => {
164
164
  const r = { ...t };
165
165
  return Object.keys(e.Cols ?? {}).forEach((n) => {
166
166
  x(e, t, n) && (r[n] = j(e, t, n));
167
167
  }), r;
168
- }, "normalizeTreeGridExternalRow"), w = /* @__PURE__ */ l((e, t) => t.map((r) => ye(e, r)), "normalizeTreeGridExternalRows"), H = /* @__PURE__ */ l((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), he = /* @__PURE__ */ l((e) => H(e.SelectingSingle), "isTreeGridSingleSelectionLayout"), _e = /* @__PURE__ */ l((e) => y(e) ? H(
168
+ }, "normalizeTreeGridExternalRow"), w = /* @__PURE__ */ l((e, t) => t.map((r) => he(e, r)), "normalizeTreeGridExternalRows"), H = /* @__PURE__ */ l((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), _e = /* @__PURE__ */ l((e) => H(e.SelectingSingle), "isTreeGridSingleSelectionLayout"), De = /* @__PURE__ */ l((e) => y(e) ? H(
169
169
  e[h]
170
- ) : !1, "isTreeGridSelectedInitialValue"), De = /* @__PURE__ */ l((e) => {
170
+ ) : !1, "isTreeGridSelectedInitialValue"), Se = /* @__PURE__ */ l((e) => {
171
171
  if (!y(e))
172
172
  return e;
173
173
  const t = e;
@@ -176,7 +176,7 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
176
176
  ([r]) => r !== h
177
177
  )
178
178
  ) : e;
179
- }, "omitTreeGridSelectedInitialValue"), Se = /* @__PURE__ */ l((e, t) => {
179
+ }, "omitTreeGridSelectedInitialValue"), Ae = /* @__PURE__ */ l((e, t) => {
180
180
  const r = (t == null ? void 0 : t.insertPosition) ?? "top", n = t == null ? void 0 : t.parent, s = t == null ? void 0 : t.anchorRow;
181
181
  let i = n ?? (s ? s.parentNode : null) ?? e.GetFirst(), a = null;
182
182
  switch (r) {
@@ -194,7 +194,7 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
194
194
  break;
195
195
  }
196
196
  return { resolvedParent: i, next: a };
197
- }, "resolveRowInsertionTarget"), Ae = /* @__PURE__ */ l((e, t, r) => {
197
+ }, "resolveRowInsertionTarget"), be = /* @__PURE__ */ l((e, t, r) => {
198
198
  if (!y(r))
199
199
  return;
200
200
  const n = Object.keys(r).filter(Boolean);
@@ -206,7 +206,7 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
206
206
  }
207
207
  t[s] = i;
208
208
  });
209
- }, "assignInitialRowValues"), be = /* @__PURE__ */ l((e, t, r) => {
209
+ }, "assignInitialRowValues"), Ie = /* @__PURE__ */ l((e, t, r) => {
210
210
  const n = S(r);
211
211
  if (!n.length)
212
212
  return;
@@ -215,24 +215,30 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
215
215
  var a;
216
216
  (a = e.Cols) != null && a[i] && (s[`${i}CanEdit`] = 1);
217
217
  });
218
- }, "assignEditableAddedRowColumns"), Ie = /* @__PURE__ */ l((e) => Q.some((t) => e.startsWith(t)), "isTreeGridDataKey"), Ve = /* @__PURE__ */ l((e, t) => {
218
+ }, "assignEditableAddedRowColumns"), Ve = /* @__PURE__ */ l((e) => J.some((t) => e.startsWith(t)), "isTreeGridDataKey"), Be = /* @__PURE__ */ l((e, t) => {
219
219
  var r;
220
220
  return !!((r = e == null ? void 0 : e.Cols) != null && r[t]);
221
- }, "isTreeGridColumnDataKey"), Be = /* @__PURE__ */ l((e) => e != null && e !== "", "hasTreeGridUploadValue"), Le = /* @__PURE__ */ l((e) => e === 0 || e === !1 || e === "0", "isHiddenTreeGridValue"), ve = /* @__PURE__ */ l((e, t) => {
221
+ }, "isTreeGridColumnDataKey"), Le = /* @__PURE__ */ l((e) => e != null && e !== "", "hasTreeGridUploadValue"), ve = /* @__PURE__ */ l((e) => e === 0 || e === !1 || e === "0", "isHiddenTreeGridValue"), K = /* @__PURE__ */ l((e, t) => {
222
222
  var r, n;
223
- return !Le((n = (r = e == null ? void 0 : e.Cols) == null ? void 0 : r[t]) == null ? void 0 : n.Visible);
224
- }, "isVisibleTreeGridColumn"), ke = /* @__PURE__ */ l((e, t) => S(
223
+ return !ve((n = (r = e == null ? void 0 : e.Cols) == null ? void 0 : r[t]) == null ? void 0 : n.Visible);
224
+ }, "isVisibleTreeGridColumn"), Fe = /* @__PURE__ */ l((e, t) => S(
225
225
  e == null ? void 0 : e[L]
226
- ).includes(t), "isTreeGridAddedRowInitialValueKey"), Fe = /* @__PURE__ */ l((e, t) => {
226
+ ).includes(t), "isTreeGridAddedRowInitialValueKey"), $e = /* @__PURE__ */ l((e, t) => {
227
227
  var r;
228
228
  return typeof t.id == "string" ? (r = e == null ? void 0 : e.Rows) == null ? void 0 : r[t.id] : null;
229
- }, "getLiveTreeGridChangedRow"), $e = /* @__PURE__ */ l((e, t, r, n = !1) => Be(t[r]) ? Ve(e, r) || Ie(r) ? !0 : n && ke(Fe(e, t), r) : !1, "shouldIncludeTreeGridChangeDataKey"), V = /* @__PURE__ */ l((e, t, r, n = !1) => Object.fromEntries(
230
- M(Object.keys(t), ...r).filter(
231
- (s) => $e(e, t, s, n)
232
- ).map((s) => [s, t[s]])
233
- ), "normalizeTreeGridChangeRow"), xe = /* @__PURE__ */ l((e, t, r) => t.filter((n) => W(n, r) === "1" && n.Deleted !== "1").map(
234
- (n) => r === "Changed" ? V(e, n, ["id", "Changed"]) : V(e, n, ["id"], !0)
235
- ).filter((n) => !Y(n)), "getChangedRowsByStatus"), je = /* @__PURE__ */ l((e, t) => e ? t.map((r) => {
229
+ }, "getLiveTreeGridChangedRow"), ke = /* @__PURE__ */ l((e, t, r, n = !1, s = !1) => Le(t[r]) ? Be(e, r) ? !s || K(e, r) : Ve(r) ? !0 : n && Fe($e(e, t), r) : !1, "shouldIncludeTreeGridChangeDataKey"), V = /* @__PURE__ */ l((e, t, r, n = !1, s = !1) => Object.fromEntries(
230
+ X(Object.keys(t), ...r).filter(
231
+ (i) => ke(
232
+ e,
233
+ t,
234
+ i,
235
+ n,
236
+ s
237
+ )
238
+ ).map((i) => [i, t[i]])
239
+ ), "normalizeTreeGridChangeRow"), xe = /* @__PURE__ */ l((e, t, r) => t.filter((n) => Y(n, r) === "1" && n.Deleted !== "1").map(
240
+ (n) => r === "Changed" ? V(e, n, ["id", "Changed"]) : V(e, n, ["id"], !0, !0)
241
+ ).filter((n) => !M(n)), "getChangedRowsByStatus"), je = /* @__PURE__ */ l((e, t) => e ? t.map((r) => {
236
242
  const n = typeof r.id == "string" ? e.Rows[r.id] : null;
237
243
  if (!n)
238
244
  return r;
@@ -248,7 +254,7 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
248
254
  }
249
255
  }, "commitTreeGridActiveEdit"), u = /* @__PURE__ */ l((e) => Grids[e], "getTreeGridById"), pe = /* @__PURE__ */ l((e) => {
250
256
  const t = u(e);
251
- return t ? w(t, fe(t)) : [];
257
+ return t ? w(t, Re(t)) : [];
252
258
  }, "getTreeGridDataRowsById"), et = /* @__PURE__ */ l((e, t) => {
253
259
  const r = u(e);
254
260
  if (!r)
@@ -265,20 +271,20 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
265
271
  const r = u(e);
266
272
  if (!r)
267
273
  return;
268
- const n = t == null ? void 0 : t.canSelect, s = t == null ? void 0 : t.initialValues, i = t == null ? void 0 : t.editableColumns, a = he(r), c = !!n && a, d = c && _e(s), f = d ? De(s) : s;
274
+ const n = t == null ? void 0 : t.canSelect, s = t == null ? void 0 : t.initialValues, i = t == null ? void 0 : t.editableColumns, a = _e(r), c = !!n && a, d = c && De(s), f = d ? Se(s) : s;
269
275
  c && b(e);
270
- const { resolvedParent: R, next: T } = Se(r, t), o = r.AddRow(R, T, 1);
271
- p(o), Ae(r, o, f), ce(r, o), o.CanEdit = 1, o.CanDelete = 1, o.CanSelect = n ? 1 : 0, be(r, o, i), d && r.SelectRow(o, 1), r.Focus(o), r.RefreshRow(o), r.Calculate(1, 1), window.setTimeout(() => {
276
+ const { resolvedParent: R, next: T } = Ae(r, t), o = r.AddRow(R, T, 1);
277
+ ee(o), be(r, o, f), de(r, o), o.CanEdit = 1, o.CanDelete = 1, o.CanSelect = n ? 1 : 0, Ie(r, o, i), d && r.SelectRow(o, 1), r.Focus(o), r.RefreshRow(o), r.Calculate(1, 1), window.setTimeout(() => {
272
278
  _(e);
273
279
  }, 0);
274
280
  }, "addTreeGridRowById"), rt = /* @__PURE__ */ l((e, t) => {
275
281
  const r = u(e);
276
282
  if (!r)
277
283
  return { valid: !1, errors: [] };
278
- const n = ae(r, t), s = [], i = t.refresh === !1 ? 0 : 1;
284
+ const n = ce(r, t), s = [], i = t.refresh === !1 ? 0 : 1;
279
285
  n.forEach((c) => {
280
- Te(r, c, t).forEach((d) => {
281
- const f = d.key, R = F(r, c, f), T = Ge(r, d), o = {
286
+ Ge(r, c, t).forEach((d) => {
287
+ const f = d.key, R = $(r, c, f), T = Ee(r, d), o = {
282
288
  grid: r,
283
289
  row: c,
284
290
  col: f,
@@ -286,20 +292,20 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
286
292
  label: T,
287
293
  value: R
288
294
  };
289
- if (!Ce(R)) {
295
+ if (!me(R)) {
290
296
  r.SetAttribute(c, f, "Error", "", i);
291
297
  return;
292
298
  }
293
- const I = Ee(
299
+ const I = Ce(
294
300
  o,
295
301
  d,
296
302
  t.messageFactory
297
- ), K = { ...o, message: I };
298
- r.SetAttribute(c, f, "Error", I, i), s.push(K);
303
+ ), q = { ...o, message: I };
304
+ r.SetAttribute(c, f, "Error", I, i), s.push(q);
299
305
  });
300
306
  });
301
307
  const a = s[0];
302
- return me(r, a, t), {
308
+ return ye(r, a, t), {
303
309
  valid: !a,
304
310
  errors: s,
305
311
  firstError: a
@@ -307,10 +313,10 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
307
313
  }, "validateTreeGridRequiredCellsById"), nt = /* @__PURE__ */ l((e) => {
308
314
  const t = u(e);
309
315
  we(t);
310
- const r = N(t == null ? void 0 : t.GetXmlData("changes,allcols,nogrid,noio"));
316
+ const r = U(t == null ? void 0 : t.GetXmlData("changes,allcols,nogrid,noio"));
311
317
  return D(r) ? Object.fromEntries(
312
- X.map((n) => [
313
- P(n),
318
+ Q.map((n) => [
319
+ W(n),
314
320
  xe(
315
321
  t,
316
322
  je(t, r),
@@ -320,14 +326,14 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
320
326
  ) : { added: [], changed: [] };
321
327
  }, "getTreeGridRowChangesById"), st = /* @__PURE__ */ l((e, t) => {
322
328
  const r = u(e);
323
- r && ue().then(
329
+ r && fe().then(
324
330
  (n) => n(r, { exportName: t ?? "" })
325
331
  );
326
332
  }, "exportTreeGridToExcelById"), lt = /* @__PURE__ */ l((e, t) => {
327
333
  const r = u(e), n = r == null ? void 0 : r.GetSelRows();
328
334
  if (!r || !n)
329
335
  return [];
330
- const s = U(
336
+ const s = P(
331
337
  r,
332
338
  n,
333
339
  t
@@ -345,12 +351,12 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
345
351
  r.HideCol(n);
346
352
  }, "setTreeGridColumnVisibilityById"), at = /* @__PURE__ */ l((e, t) => {
347
353
  const r = u(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
348
- !r || !n || !s || (de(r, n, s), r.SetValue(n, `${s}Class`, z), r.SetValue(n, `${s}Color`, t.backgroundColor ?? O), t.refresh !== !1 && r.RefreshCell(n, s));
354
+ !r || !n || !s || (oe(r, n, s), r.SetValue(n, `${s}Class`, O), r.SetValue(n, `${s}Color`, t.backgroundColor ?? N), t.refresh !== !1 && r.RefreshCell(n, s));
349
355
  }, "highlightTreeGridCellById"), ct = /* @__PURE__ */ l((e, t) => {
350
356
  const r = u(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
351
357
  if (!r || !n || !s)
352
358
  return;
353
- const i = oe(n, s);
359
+ const i = ue(n, s);
354
360
  r.SetValue(n, `${s}Class`, (i == null ? void 0 : i.className) ?? ""), r.SetValue(n, `${s}Color`, (i == null ? void 0 : i.color) ?? ""), r.RefreshCell(n, s);
355
361
  }, "clearTreeGridCellHighlightById"), b = /* @__PURE__ */ l((e) => {
356
362
  const t = u(e);
@@ -377,8 +383,8 @@ const X = ["Added", "Changed"], Q = ["OWP", "IPX"], g = /^H{1,2}(?::m{1,2})?(?::
377
383
  i.SetAttribute(null, t, "Type", "Enum", 0, 0), i.SetAttribute(null, t, "Enum", `|${a}`, 0, 0), i.SetAttribute(null, t, "EnumKeys", `|${c}`, 1, 0);
378
384
  }, "setTreeGridColumnEnumOptionsById");
379
385
  export {
380
- z as TREEGRID_CELL_CHANGED_CLASS,
381
- O as TREEGRID_CELL_HIGHLIGHT_COLOR,
386
+ O as TREEGRID_CELL_CHANGED_CLASS,
387
+ N as TREEGRID_CELL_HIGHLIGHT_COLOR,
382
388
  Tt as TREEGRID_INPUT_CELL_COLOR,
383
389
  Gt as TREEGRID_WARNING_CELL_COLOR,
384
390
  tt as addTreeGridRowById,
@@ -386,17 +392,17 @@ export {
386
392
  ct as clearTreeGridCellHighlightById,
387
393
  st as exportTreeGridToExcelById,
388
394
  Ze as getTreeGridAddedRowBaselineValue,
389
- Je as getTreeGridAddedRowHighlightColumns,
395
+ ge as getTreeGridAddedRowHighlightColumns,
390
396
  u as getTreeGridById,
391
- F as getTreeGridCellComparableValue,
397
+ $ as getTreeGridCellComparableValue,
392
398
  pe as getTreeGridDataRowsById,
393
399
  nt as getTreeGridRowChangesById,
394
400
  lt as getTreeGridSelectedRowsById,
395
401
  at as highlightTreeGridCellById,
396
- ee as isTreeGridRowAddedById,
402
+ te as isTreeGridRowAddedById,
397
403
  w as normalizeTreeGridExternalRows,
398
404
  et as reloadTreeGridBodyById,
399
- ge as removeTreeGridAddedRowHighlightColumn,
405
+ Je as removeTreeGridAddedRowHighlightColumn,
400
406
  He as resetTreeGridChangesById,
401
407
  ot as resetTreeGridChangesByIds,
402
408
  b as resetTreeGridSelectionById,