@owp/core 2.5.26 → 2.5.28

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 (60) hide show
  1. package/dist/_virtual/index16.js +4 -4
  2. package/dist/_virtual/index17.js +4 -4
  3. package/dist/_virtual/index18.js +4 -4
  4. package/dist/_virtual/index19.js +4 -4
  5. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js +19 -19
  6. package/dist/components/OwpExportExcelButton/OwpExportExcelButton.js.map +1 -1
  7. package/dist/components/OwpMrtTable/OwpMrtTable.js +334 -287
  8. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  9. package/dist/components/OwpPicker/OwpDatePicker.js +251 -243
  10. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  11. package/dist/components/OwpPicker/internal/useOwpPickerPopperTransition.js +13 -12
  12. package/dist/components/OwpPicker/internal/useOwpPickerPopperTransition.js.map +1 -1
  13. package/dist/components/OwpTable/OwpDataTable.js +151 -156
  14. package/dist/components/OwpTable/OwpDataTable.js.map +1 -1
  15. package/dist/components/OwpTable/internal/OwpTableTotalCount.js +23 -16
  16. package/dist/components/OwpTable/internal/OwpTableTotalCount.js.map +1 -1
  17. package/dist/components/OwpTable/internal/treeGridTableStyle.js +29 -28
  18. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
  19. package/dist/components/OwpTable/utils/tableSx.js +11 -10
  20. package/dist/components/OwpTable/utils/tableSx.js.map +1 -1
  21. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +297 -265
  22. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  23. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +310 -291
  24. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  25. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1039 -385
  26. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  27. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +435 -186
  28. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  29. package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js +10 -10
  30. package/dist/components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js.map +1 -1
  31. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js +1 -1
  32. package/dist/features/themePreview/defs/ThemePreviewGridDef.xml.js.map +1 -1
  33. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js +1 -1
  34. package/dist/features/themePreview/defs/ThemePreviewReadonlyGridDef.xml.js.map +1 -1
  35. package/dist/layout/components/logo/Logo.js +40 -53
  36. package/dist/layout/components/logo/Logo.js.map +1 -1
  37. package/dist/layout/components/navbar/style/NavbarStyle.js +27 -37
  38. package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
  39. package/dist/layout/components/navbar/style/NavbarStyleContent.js +67 -42
  40. package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
  41. package/dist/layout/components/toggles/NavigationSearchToggle.js +3 -3
  42. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  43. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  44. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  45. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  46. 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
  47. package/dist/owp-app.css +1 -1
  48. package/dist/types/components/OwpPicker/internal/useOwpPickerPopperTransition.d.ts +1 -0
  49. package/dist/types/components/OwpTable/internal/OwpTableTotalCount.d.ts +11 -4
  50. package/dist/types/components/OwpTable/internal/treeGridTableStyle.d.ts +5 -0
  51. package/dist/types/components/OwpTable/utils/tableSx.d.ts +15 -0
  52. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +11 -1
  53. package/dist/types/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.d.ts +5 -2
  54. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +14 -4
  55. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +5 -0
  56. package/dist/types/utils/treeGridUtil.d.ts +4 -0
  57. package/dist/utils/treeGridUtil.js +154 -145
  58. package/dist/utils/treeGridUtil.js.map +1 -1
  59. package/package.json +1 -1
  60. package/treegrid/TextKR.xml +1 -1
@@ -7,6 +7,7 @@ type TreeGridAddRowOptions<T> = {
7
7
  parent?: TRow & T;
8
8
  anchorRow?: TRow & T;
9
9
  initialValues?: T;
10
+ editableColumns?: readonly string[];
10
11
  };
11
12
  type TreeGridColumnVisibilityOptions = {
12
13
  targetKey: string;
@@ -16,6 +17,7 @@ type TreeGridHighlightTargetOption = {
16
17
  row: TRow;
17
18
  col: string;
18
19
  backgroundColor?: string;
20
+ refresh?: boolean;
19
21
  };
20
22
  /**
21
23
  * addTreeGridRowById 생성 행 여부
@@ -82,6 +84,7 @@ export declare const reloadTreeGridBodyById: (gridId: string, rows: unknown) =>
82
84
  * @param options.anchorRow above/below용 기준 행
83
85
  * @param options.insertPosition 행 삽입 위치
84
86
  * @param options.initialValues 신규 행 초기값
87
+ * @param options.editableColumns 신규 행 셀 단위 편집 가능 컬럼
85
88
  */
86
89
  export declare const addTreeGridRowById: <T>(gridId: string, options?: TreeGridAddRowOptions<T>) => void;
87
90
  /**
@@ -115,6 +118,7 @@ export declare const setTreeGridColumnVisibilityById: (gridId: string, options:
115
118
  * @param gridId TreeGrid 인스턴스 ID
116
119
  * @param targetOption.row 강조할 대상 행
117
120
  * @param targetOption.col 강조할 대상 컬럼
121
+ * @param targetOption.refresh 강조 적용 후 셀 refresh 여부
118
122
  */
119
123
  export declare const highlightTreeGridCellById: (gridId: string, targetOption: TreeGridHighlightTargetOption) => void;
120
124
  /**
@@ -1,258 +1,267 @@
1
1
  var w = Object.defineProperty;
2
- var l = (e, t) => w(e, "name", { value: t, configurable: !0 });
3
- import { TREEGRID_CELL_CHANGED_CLASS as H, TREEGRID_CELL_HIGHLIGHT_COLOR as L } from "../constants/treeGrid.js";
4
- import { TREEGRID_INPUT_CELL_COLOR as ve, TREEGRID_WARNING_CELL_COLOR as Ne } from "../constants/treeGrid.js";
5
- import { parseTreeGridXmlToJson as $ } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
2
+ var l = (t, e) => w(t, "name", { value: e, configurable: !0 });
3
+ import { TREEGRID_CELL_CHANGED_CLASS as $, TREEGRID_CELL_HIGHLIGHT_COLOR as H } from "../constants/treeGrid.js";
4
+ import { TREEGRID_INPUT_CELL_COLOR as Ne, TREEGRID_WARNING_CELL_COLOR as Pe } from "../constants/treeGrid.js";
5
+ import { parseTreeGridXmlToJson as L } from "../components/OwpTreeGrid/internal/treeGridLayout.js";
6
6
  import { emitTreeGridBodyRowsChanged as C } from "./internal/treeGridBodyRowsEvent.js";
7
- import { isArray as y } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
7
+ import { isArray as h } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
8
8
  import { lowerCase as x } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/string/lowerCase.js";
9
9
  import { isPlainObject as j } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isPlainObject.js";
10
10
  import { get as F } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
11
11
  import { omit as K } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/omit.js";
12
12
  import { isEmpty as D } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
13
13
  import { without as v } from "../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/array/without.js";
14
- const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, _ = "__owpAddedByAddTreeGridRowById", m = "__owpAddedRowHighlightColumns", h = "__owpAddedRowInitialValueKeys", A = "__owpAddedRowBaselineValues", u = "__owpCellStyleBaselineValues", I = /* @__PURE__ */ l((e) => y(e) ? e.filter((t) => typeof t == "string" && t !== "") : [], "normalizeTreeGridStringValues"), E = I, z = /* @__PURE__ */ l((e) => {
15
- e && (e[_] = 1);
16
- }, "markTreeGridRowAddedById"), Ee = /* @__PURE__ */ l((e) => {
17
- const t = e == null ? void 0 : e[_];
18
- return !!e && t !== 0 && t !== !1 && t !== void 0;
19
- }, "isTreeGridRowAddedById"), ye = /* @__PURE__ */ l((e, t) => {
20
- if (!e || !t)
14
+ const N = ["Added", "Changed"], P = ["OWP", "IPX"], k = /^H{1,2}(?::m{1,2})?(?::s{1,2})?$/, _ = "__owpAddedByAddTreeGridRowById", m = "__owpAddedRowHighlightColumns", A = "__owpAddedRowInitialValueKeys", I = "__owpAddedRowBaselineValues", u = "__owpCellStyleBaselineValues", E = /* @__PURE__ */ l((t) => h(t) ? t.filter((e) => typeof e == "string" && e !== "") : [], "normalizeTreeGridStringValues"), y = E, z = /* @__PURE__ */ l((t) => {
15
+ t && (t[_] = 1);
16
+ }, "markTreeGridRowAddedById"), ye = /* @__PURE__ */ l((t) => {
17
+ const e = t == null ? void 0 : t[_];
18
+ return !!t && e !== 0 && e !== !1 && e !== void 0;
19
+ }, "isTreeGridRowAddedById"), he = /* @__PURE__ */ l((t, e) => {
20
+ if (!t || !e)
21
21
  return;
22
- const r = e, n = E(
22
+ const r = t, n = y(
23
23
  r[m]
24
24
  );
25
- n.includes(t) || (r[m] = [...n, t]);
26
- }, "appendTreeGridAddedRowHighlightColumn"), De = /* @__PURE__ */ l((e, t) => {
27
- if (!e || !t)
25
+ n.includes(e) || (r[m] = [...n, e]);
26
+ }, "appendTreeGridAddedRowHighlightColumn"), De = /* @__PURE__ */ l((t, e) => {
27
+ if (!t || !e)
28
28
  return;
29
- const r = e, s = E(
29
+ const r = t, s = y(
30
30
  r[m]
31
- ).filter((c) => c !== t);
31
+ ).filter((c) => c !== e);
32
32
  if (s.length) {
33
33
  r[m] = s;
34
34
  return;
35
35
  }
36
36
  delete r[m];
37
- }, "removeTreeGridAddedRowHighlightColumn"), _e = /* @__PURE__ */ l((e) => E(
38
- e == null ? void 0 : e[m]
39
- ), "getTreeGridAddedRowHighlightColumns"), W = /* @__PURE__ */ l((e, t, r) => {
40
- var c, o, a, i, R;
41
- const n = ((c = e.GetType) == null ? void 0 : c.call(e, t, r)) || ((a = (o = e.Cols) == null ? void 0 : o[r]) == null ? void 0 : a.Type) || "", s = ((i = e.GetValue) == null ? void 0 : i.call(e, t, r)) ?? t[r];
37
+ }, "removeTreeGridAddedRowHighlightColumn"), _e = /* @__PURE__ */ l((t) => y(
38
+ t == null ? void 0 : t[m]
39
+ ), "getTreeGridAddedRowHighlightColumns"), W = /* @__PURE__ */ l((t, e, r) => {
40
+ var c, a, i, d, T;
41
+ const n = ((c = t.GetType) == null ? void 0 : c.call(t, e, r)) || ((i = (a = t.Cols) == null ? void 0 : a[r]) == null ? void 0 : i.Type) || "", s = ((d = t.GetValue) == null ? void 0 : d.call(t, e, r)) ?? e[r];
42
42
  if (n === "Enum" || n === "Select")
43
43
  return s == null ? "" : `${s}`;
44
44
  try {
45
- const G = (R = e.GetString) == null ? void 0 : R.call(e, t, r);
45
+ const G = (T = t.GetString) == null ? void 0 : T.call(t, e, r);
46
46
  if (G != null)
47
47
  return `${G}`;
48
48
  } catch {
49
49
  }
50
50
  return s == null ? "" : `${s}`;
51
- }, "getTreeGridCellComparableValue"), O = /* @__PURE__ */ l((e, t) => {
51
+ }, "getTreeGridCellComparableValue"), U = /* @__PURE__ */ l((t, e) => {
52
52
  const r = Object.fromEntries(
53
- Object.keys(e.Cols ?? {}).map((n) => [
53
+ Object.keys(t.Cols ?? {}).map((n) => [
54
54
  n,
55
- W(e, t, n)
55
+ W(t, e, n)
56
56
  ])
57
57
  );
58
- t[A] = r;
59
- }, "markTreeGridAddedRowBaselineValues"), he = /* @__PURE__ */ l((e, t) => {
58
+ e[I] = r;
59
+ }, "markTreeGridAddedRowBaselineValues"), Ae = /* @__PURE__ */ l((t, e) => {
60
60
  var r;
61
- return (r = e == null ? void 0 : e[A]) == null ? void 0 : r[t];
62
- }, "getTreeGridAddedRowBaselineValue"), U = /* @__PURE__ */ l((e, t, r) => {
61
+ return (r = t == null ? void 0 : t[I]) == null ? void 0 : r[e];
62
+ }, "getTreeGridAddedRowBaselineValue"), O = /* @__PURE__ */ l((t, e, r) => {
63
63
  var s;
64
- const n = t;
64
+ const n = e;
65
65
  n[u] ?? (n[u] = {}), !((s = n[u]) != null && s[r]) && (n[u][r] = {
66
- className: e.GetAttribute(t, r, "Class"),
67
- color: e.GetAttribute(t, r, "Color")
66
+ className: t.GetAttribute(e, r, "Class"),
67
+ color: t.GetAttribute(e, r, "Color")
68
68
  });
69
- }, "preserveTreeGridCellStyleBaseline"), X = /* @__PURE__ */ l((e, t) => {
69
+ }, "preserveTreeGridCellStyleBaseline"), X = /* @__PURE__ */ l((t, e) => {
70
70
  var r;
71
- return (r = e[u]) == null ? void 0 : r[t];
71
+ return (r = t[u]) == null ? void 0 : r[e];
72
72
  }, "getTreeGridCellStyleBaseline"), Y = /* @__PURE__ */ l(async () => {
73
- const { exportTreeGridExcel: e } = await import("./treeGridExportExcelUtil.js");
74
- return e;
75
- }, "loadExportTreeGridExcel"), M = /* @__PURE__ */ l((e) => Object.values((e == null ? void 0 : e.Rows) ?? {}).filter((t) => t.Kind === "Data"), "getDataRows"), f = /* @__PURE__ */ l((e) => typeof e == "string" && k.test(e.trim()), "isTreeGridTimeDateFormat"), b = /* @__PURE__ */ l((e, t, r) => {
73
+ const { exportTreeGridExcel: t } = await import("./treeGridExportExcelUtil.js");
74
+ return t;
75
+ }, "loadExportTreeGridExcel"), M = /* @__PURE__ */ l((t) => Object.values((t == null ? void 0 : t.Rows) ?? {}).filter((e) => e.Kind === "Data"), "getDataRows"), f = /* @__PURE__ */ l((t) => typeof t == "string" && k.test(t.trim()), "isTreeGridTimeDateFormat"), b = /* @__PURE__ */ l((t, e, r) => {
76
76
  var c;
77
- const n = t, s = (c = e.Cols) == null ? void 0 : c[r];
77
+ const n = e, s = (c = t.Cols) == null ? void 0 : c[r];
78
78
  return (s == null ? void 0 : s.Type) === "Date" && (f(n[`${r}EditFormat`]) || f(n[`${r}Format`]) || f(s.EditFormat) || f(s.Format));
79
- }, "isTreeGridTimeDateColumn"), S = /* @__PURE__ */ l((e, t, r) => {
79
+ }, "isTreeGridTimeDateColumn"), S = /* @__PURE__ */ l((t, e, r) => {
80
80
  var s;
81
- const n = t[r];
81
+ const n = e[r];
82
82
  try {
83
- const c = (s = e.GetString) == null ? void 0 : s.call(e, t, r);
83
+ const c = (s = t.GetString) == null ? void 0 : s.call(t, e, r);
84
84
  if (c != null && `${c}` != "")
85
85
  return `${c}`;
86
86
  } catch {
87
87
  }
88
88
  return n == null ? "" : `${n}`;
89
- }, "getTreeGridTimeDateDisplayValue"), J = /* @__PURE__ */ l((e, t) => {
90
- const r = { ...t };
91
- return Object.keys(e.Cols ?? {}).forEach((n) => {
92
- b(e, t, n) && (r[n] = S(e, t, n));
89
+ }, "getTreeGridTimeDateDisplayValue"), J = /* @__PURE__ */ l((t, e) => {
90
+ const r = { ...e };
91
+ return Object.keys(t.Cols ?? {}).forEach((n) => {
92
+ b(t, e, n) && (r[n] = S(t, e, n));
93
93
  }), r;
94
- }, "normalizeTreeGridExternalRow"), B = /* @__PURE__ */ l((e, t) => t.map((r) => J(e, r)), "normalizeTreeGridExternalRows"), q = /* @__PURE__ */ l((e, t) => {
95
- const r = (t == null ? void 0 : t.insertPosition) ?? "top", n = t == null ? void 0 : t.parent, s = t == null ? void 0 : t.anchorRow;
96
- let c = n ?? (s ? s.parentNode : null) ?? e.GetFirst(), o = null;
94
+ }, "normalizeTreeGridExternalRow"), B = /* @__PURE__ */ l((t, e) => e.map((r) => J(t, r)), "normalizeTreeGridExternalRows"), g = /* @__PURE__ */ l((t, e) => {
95
+ const r = (e == null ? void 0 : e.insertPosition) ?? "top", n = e == null ? void 0 : e.parent, s = e == null ? void 0 : e.anchorRow;
96
+ let c = n ?? (s ? s.parentNode : null) ?? t.GetFirst(), a = null;
97
97
  switch (r) {
98
98
  case "top":
99
- o = e.GetFirst();
99
+ a = t.GetFirst();
100
100
  break;
101
101
  case "last":
102
- c = e.GetNext(e.GetLast(), e.RowCount > 0 ? e.RowCount + 1 : 0), o = c;
102
+ c = t.GetNext(t.GetLast(), t.RowCount > 0 ? t.RowCount + 1 : 0), a = c;
103
103
  break;
104
104
  case "above":
105
- o = s ?? e.GetFirst();
105
+ a = s ?? t.GetFirst();
106
106
  break;
107
107
  case "below":
108
- o = (s == null ? void 0 : s.nextSibling) ?? e.GetFirst();
108
+ a = (s == null ? void 0 : s.nextSibling) ?? t.GetFirst();
109
109
  break;
110
110
  }
111
- return { resolvedParent: c, next: o };
112
- }, "resolveRowInsertionTarget"), Q = /* @__PURE__ */ l((e, t, r) => {
111
+ return { resolvedParent: c, next: a };
112
+ }, "resolveRowInsertionTarget"), q = /* @__PURE__ */ l((t, e, r) => {
113
113
  if (!j(r))
114
114
  return;
115
115
  const n = Object.keys(r).filter(Boolean);
116
- t[h] = n, Object.entries(r).forEach(([s, c]) => {
117
- var o, a;
118
- if (((a = (o = e.Cols) == null ? void 0 : o[s]) == null ? void 0 : a.Type) === "Date" && typeof c == "string") {
119
- e.SetString(t, s, c, 0);
116
+ e[A] = n, Object.entries(r).forEach(([s, c]) => {
117
+ var a, i;
118
+ if (((i = (a = t.Cols) == null ? void 0 : a[s]) == null ? void 0 : i.Type) === "Date" && typeof c == "string") {
119
+ t.SetString(e, s, c, 0);
120
120
  return;
121
121
  }
122
- t[s] = c;
122
+ e[s] = c;
123
123
  });
124
- }, "assignInitialRowValues"), Z = /* @__PURE__ */ l((e) => P.some((t) => e.startsWith(t)), "isTreeGridDataKey"), g = /* @__PURE__ */ l((e) => e === 0 || e === !1 || e === "0", "isHiddenTreeGridValue"), p = /* @__PURE__ */ l((e, t) => {
124
+ }, "assignInitialRowValues"), Q = /* @__PURE__ */ l((t, e, r) => {
125
+ const n = E(r);
126
+ if (!n.length)
127
+ return;
128
+ const s = e;
129
+ n.forEach((c) => {
130
+ var a;
131
+ (a = t.Cols) != null && a[c] && (s[`${c}CanEdit`] = 1);
132
+ });
133
+ }, "assignEditableAddedRowColumns"), Z = /* @__PURE__ */ l((t) => P.some((e) => t.startsWith(e)), "isTreeGridDataKey"), p = /* @__PURE__ */ l((t) => t === 0 || t === !1 || t === "0", "isHiddenTreeGridValue"), ee = /* @__PURE__ */ l((t, e) => {
125
134
  var r, n;
126
- return !g((n = (r = e == null ? void 0 : e.Cols) == null ? void 0 : r[t]) == null ? void 0 : n.Visible);
127
- }, "isVisibleTreeGridColumn"), ee = /* @__PURE__ */ l((e, t) => I(
128
- e == null ? void 0 : e[h]
129
- ).includes(t), "isTreeGridAddedRowInitialValueKey"), te = /* @__PURE__ */ l((e, t) => {
135
+ return !p((n = (r = t == null ? void 0 : t.Cols) == null ? void 0 : r[e]) == null ? void 0 : n.Visible);
136
+ }, "isVisibleTreeGridColumn"), te = /* @__PURE__ */ l((t, e) => E(
137
+ t == null ? void 0 : t[A]
138
+ ).includes(e), "isTreeGridAddedRowInitialValueKey"), re = /* @__PURE__ */ l((t, e) => {
130
139
  var r;
131
- return typeof t.id == "string" ? (r = e == null ? void 0 : e.Rows) == null ? void 0 : r[t.id] : null;
132
- }, "getLiveTreeGridChangedRow"), re = /* @__PURE__ */ l((e, t, r) => !Z(r) || D(t[r]) ? !1 : p(e, r) ? !0 : ee(te(e, t), r), "shouldIncludeAddedRowDataKey"), ne = /* @__PURE__ */ l((e, t) => Object.fromEntries(
133
- v(Object.keys(t), "id").filter((r) => re(e, t, r)).map((r) => [r, t[r]])
134
- ), "normalizeAddedRow"), se = /* @__PURE__ */ l((e, t, r) => t.filter((n) => F(n, r) === "1" && n.Deleted !== "1").map(
135
- (n) => r === "Changed" ? K(n, ["id", "Changed"]) : ne(e, n)
136
- ).filter((n) => !D(n)), "getChangedRowsByStatus"), le = /* @__PURE__ */ l((e, t) => e ? t.map((r) => {
137
- const n = typeof r.id == "string" ? e.Rows[r.id] : null;
140
+ return typeof e.id == "string" ? (r = t == null ? void 0 : t.Rows) == null ? void 0 : r[e.id] : null;
141
+ }, "getLiveTreeGridChangedRow"), ne = /* @__PURE__ */ l((t, e, r) => !Z(r) || D(e[r]) ? !1 : ee(t, r) ? !0 : te(re(t, e), r), "shouldIncludeAddedRowDataKey"), se = /* @__PURE__ */ l((t, e) => Object.fromEntries(
142
+ v(Object.keys(e), "id").filter((r) => ne(t, e, r)).map((r) => [r, e[r]])
143
+ ), "normalizeAddedRow"), le = /* @__PURE__ */ l((t, e, r) => e.filter((n) => F(n, r) === "1" && n.Deleted !== "1").map(
144
+ (n) => r === "Changed" ? K(n, ["id", "Changed"]) : se(t, n)
145
+ ).filter((n) => !D(n)), "getChangedRowsByStatus"), ce = /* @__PURE__ */ l((t, e) => t ? e.map((r) => {
146
+ const n = typeof r.id == "string" ? t.Rows[r.id] : null;
138
147
  if (!n)
139
148
  return r;
140
149
  const s = { ...r };
141
150
  return Object.keys(r).forEach((c) => {
142
- b(e, n, c) && (s[c] = S(e, n, c));
151
+ b(t, n, c) && (s[c] = S(t, n, c));
143
152
  }), s;
144
- }) : t, "normalizeTreeGridChangedRows"), d = /* @__PURE__ */ l((e) => Grids[e], "getTreeGridById"), Ae = /* @__PURE__ */ l((e) => {
145
- const t = d(e);
146
- return t ? B(t, M(t)) : [];
147
- }, "getTreeGridDataRowsById"), Ie = /* @__PURE__ */ l((e, t) => {
148
- const r = d(e);
153
+ }) : e, "normalizeTreeGridChangedRows"), o = /* @__PURE__ */ l((t) => Grids[t], "getTreeGridById"), Ie = /* @__PURE__ */ l((t) => {
154
+ const e = o(t);
155
+ return e ? B(e, M(e)) : [];
156
+ }, "getTreeGridDataRowsById"), be = /* @__PURE__ */ l((t, e) => {
157
+ const r = o(t);
149
158
  if (!r)
150
159
  return;
151
160
  const n = r.Data.Data;
152
161
  r.Data.Data = {
153
162
  ...n,
154
- Data: { Body: [t || []] },
163
+ Data: { Body: [e || []] },
155
164
  Url: ""
156
165
  }, r.ReloadBody(), window.setTimeout(() => {
157
- C(e);
166
+ C(t);
158
167
  }, 0);
159
- }, "reloadTreeGridBodyById"), be = /* @__PURE__ */ l((e, t) => {
160
- const r = d(e);
168
+ }, "reloadTreeGridBodyById"), Se = /* @__PURE__ */ l((t, e) => {
169
+ const r = o(t);
161
170
  if (!r)
162
171
  return;
163
- const n = t == null ? void 0 : t.canSelect, s = t == null ? void 0 : t.initialValues, { resolvedParent: c, next: o } = q(r, t), a = r.AddRow(c, o, 1);
164
- z(a), Q(r, a, s), O(r, a), a.CanEdit = 1, a.CanDelete = 1, a.CanSelect = n ? 1 : 0, r.Focus(a), r.RefreshRow(a), window.setTimeout(() => {
165
- C(e);
172
+ const n = e == null ? void 0 : e.canSelect, s = e == null ? void 0 : e.initialValues, c = e == null ? void 0 : e.editableColumns, { resolvedParent: a, next: i } = g(r, e), d = r.AddRow(a, i, 1);
173
+ z(d), q(r, d, s), U(r, d), d.CanEdit = 1, d.CanDelete = 1, d.CanSelect = n ? 1 : 0, Q(r, d, c), r.Focus(d), r.RefreshRow(d), window.setTimeout(() => {
174
+ C(t);
166
175
  }, 0);
167
- }, "addTreeGridRowById"), Se = /* @__PURE__ */ l((e) => {
168
- const t = d(e), r = $(t == null ? void 0 : t.GetXmlData("changes,allcols,nogrid,noio"));
169
- return y(r) ? Object.fromEntries(
176
+ }, "addTreeGridRowById"), Be = /* @__PURE__ */ l((t) => {
177
+ const e = o(t), r = L(e == null ? void 0 : e.GetXmlData("changes,allcols,nogrid,noio"));
178
+ return h(r) ? Object.fromEntries(
170
179
  N.map((n) => [
171
180
  x(n),
172
- se(
173
- t,
174
- le(t, r),
181
+ le(
182
+ e,
183
+ ce(e, r),
175
184
  n
176
185
  )
177
186
  ])
178
187
  ) : { added: [], changed: [] };
179
- }, "getTreeGridRowChangesById"), Be = /* @__PURE__ */ l((e, t) => {
180
- const r = d(e);
188
+ }, "getTreeGridRowChangesById"), Ve = /* @__PURE__ */ l((t, e) => {
189
+ const r = o(t);
181
190
  r && Y().then(
182
- (n) => n(r, { exportName: t ?? "" })
191
+ (n) => n(r, { exportName: e ?? "" })
183
192
  );
184
- }, "exportTreeGridToExcelById"), Ve = /* @__PURE__ */ l((e) => {
185
- const t = d(e), r = t == null ? void 0 : t.GetSelRows();
186
- return t && r ? B(t, r) : [];
187
- }, "getTreeGridSelectedRowsById"), we = /* @__PURE__ */ l((e, t) => {
188
- const r = d(e);
189
- if (!r || !(t != null && t.targetKey))
193
+ }, "exportTreeGridToExcelById"), we = /* @__PURE__ */ l((t) => {
194
+ const e = o(t), r = e == null ? void 0 : e.GetSelRows();
195
+ return e && r ? B(e, r) : [];
196
+ }, "getTreeGridSelectedRowsById"), $e = /* @__PURE__ */ l((t, e) => {
197
+ const r = o(t);
198
+ if (!r || !(e != null && e.targetKey))
190
199
  return;
191
- const n = t == null ? void 0 : t.targetKey;
192
- if (t == null ? void 0 : t.canVisible) {
200
+ const n = e == null ? void 0 : e.targetKey;
201
+ if (e == null ? void 0 : e.canVisible) {
193
202
  r.ShowCol(n);
194
203
  return;
195
204
  }
196
205
  r.HideCol(n);
197
- }, "setTreeGridColumnVisibilityById"), He = /* @__PURE__ */ l((e, t) => {
198
- const r = d(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
199
- !r || !n || !s || (U(r, n, s), r.SetValue(n, `${s}Class`, H), r.SetValue(n, `${s}Color`, t.backgroundColor ?? L), r.RefreshCell(n, s));
200
- }, "highlightTreeGridCellById"), Le = /* @__PURE__ */ l((e, t) => {
201
- const r = d(e), n = t == null ? void 0 : t.row, s = t == null ? void 0 : t.col;
206
+ }, "setTreeGridColumnVisibilityById"), He = /* @__PURE__ */ l((t, e) => {
207
+ const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
208
+ !r || !n || !s || (O(r, n, s), r.SetValue(n, `${s}Class`, $), r.SetValue(n, `${s}Color`, e.backgroundColor ?? H), e.refresh !== !1 && r.RefreshCell(n, s));
209
+ }, "highlightTreeGridCellById"), Le = /* @__PURE__ */ l((t, e) => {
210
+ const r = o(t), n = e == null ? void 0 : e.row, s = e == null ? void 0 : e.col;
202
211
  if (!r || !n || !s)
203
212
  return;
204
213
  const c = X(n, s);
205
214
  r.SetValue(n, `${s}Class`, (c == null ? void 0 : c.className) ?? ""), r.SetValue(n, `${s}Color`, (c == null ? void 0 : c.color) ?? ""), r.RefreshCell(n, s);
206
- }, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((e) => {
207
- const t = d(e);
208
- t && t.ActionDeselectAll(1, 0);
209
- }, "resetTreeGridSelectionById"), $e = /* @__PURE__ */ l((e) => {
210
- e.forEach(V);
211
- }, "resetTreeGridSelectionsByIds"), ce = /* @__PURE__ */ l((e) => {
212
- const t = d(e);
213
- t && (t.ActionUndoAll(1, 0), V(e), window.setTimeout(() => {
214
- C(e);
215
+ }, "clearTreeGridCellHighlightById"), V = /* @__PURE__ */ l((t) => {
216
+ const e = o(t);
217
+ e && e.ActionDeselectAll(1, 0);
218
+ }, "resetTreeGridSelectionById"), xe = /* @__PURE__ */ l((t) => {
219
+ t.forEach(V);
220
+ }, "resetTreeGridSelectionsByIds"), ae = /* @__PURE__ */ l((t) => {
221
+ const e = o(t);
222
+ e && (e.ActionUndoAll(1, 0), V(t), window.setTimeout(() => {
223
+ C(t);
215
224
  }, 0));
216
- }, "resetTreeGridChangesById"), xe = /* @__PURE__ */ l((e) => {
217
- e.forEach(ce);
218
- }, "resetTreeGridChangesByIds"), je = /* @__PURE__ */ l((e, t, r, n, s) => {
225
+ }, "resetTreeGridChangesById"), je = /* @__PURE__ */ l((t) => {
226
+ t.forEach(ae);
227
+ }, "resetTreeGridChangesByIds"), Fe = /* @__PURE__ */ l((t, e, r, n, s) => {
219
228
  if (!(r != null && r.length))
220
229
  return;
221
- const c = d(e);
230
+ const c = o(t);
222
231
  if (!c)
223
232
  return;
224
- const o = r.map((i) => {
225
- const R = i;
226
- return `${s.map((T) => R[T]).find((T) => T != null && T !== "") ?? ""}`;
227
- }).join("|"), a = r.map((i) => `${i[n] ?? ""}`).join("|");
228
- c.SetAttribute(null, t, "Type", "Enum", 0, 0), c.SetAttribute(null, t, "Enum", `|${o}`, 0, 0), c.SetAttribute(null, t, "EnumKeys", `|${a}`, 1, 0);
233
+ const a = r.map((d) => {
234
+ const T = d;
235
+ return `${s.map((R) => T[R]).find((R) => R != null && R !== "") ?? ""}`;
236
+ }).join("|"), i = r.map((d) => `${d[n] ?? ""}`).join("|");
237
+ c.SetAttribute(null, e, "Type", "Enum", 0, 0), c.SetAttribute(null, e, "Enum", `|${a}`, 0, 0), c.SetAttribute(null, e, "EnumKeys", `|${i}`, 1, 0);
229
238
  }, "setTreeGridColumnEnumOptionsById");
230
239
  export {
231
- H as TREEGRID_CELL_CHANGED_CLASS,
232
- L as TREEGRID_CELL_HIGHLIGHT_COLOR,
233
- ve as TREEGRID_INPUT_CELL_COLOR,
234
- Ne as TREEGRID_WARNING_CELL_COLOR,
235
- be as addTreeGridRowById,
236
- ye as appendTreeGridAddedRowHighlightColumn,
240
+ $ as TREEGRID_CELL_CHANGED_CLASS,
241
+ H as TREEGRID_CELL_HIGHLIGHT_COLOR,
242
+ Ne as TREEGRID_INPUT_CELL_COLOR,
243
+ Pe as TREEGRID_WARNING_CELL_COLOR,
244
+ Se as addTreeGridRowById,
245
+ he as appendTreeGridAddedRowHighlightColumn,
237
246
  Le as clearTreeGridCellHighlightById,
238
- Be as exportTreeGridToExcelById,
239
- he as getTreeGridAddedRowBaselineValue,
247
+ Ve as exportTreeGridToExcelById,
248
+ Ae as getTreeGridAddedRowBaselineValue,
240
249
  _e as getTreeGridAddedRowHighlightColumns,
241
- d as getTreeGridById,
250
+ o as getTreeGridById,
242
251
  W as getTreeGridCellComparableValue,
243
- Ae as getTreeGridDataRowsById,
244
- Se as getTreeGridRowChangesById,
245
- Ve as getTreeGridSelectedRowsById,
252
+ Ie as getTreeGridDataRowsById,
253
+ Be as getTreeGridRowChangesById,
254
+ we as getTreeGridSelectedRowsById,
246
255
  He as highlightTreeGridCellById,
247
- Ee as isTreeGridRowAddedById,
256
+ ye as isTreeGridRowAddedById,
248
257
  B as normalizeTreeGridExternalRows,
249
- Ie as reloadTreeGridBodyById,
258
+ be as reloadTreeGridBodyById,
250
259
  De as removeTreeGridAddedRowHighlightColumn,
251
- ce as resetTreeGridChangesById,
252
- xe as resetTreeGridChangesByIds,
260
+ ae as resetTreeGridChangesById,
261
+ je as resetTreeGridChangesByIds,
253
262
  V as resetTreeGridSelectionById,
254
- $e as resetTreeGridSelectionsByIds,
255
- je as setTreeGridColumnEnumOptionsById,
256
- we as setTreeGridColumnVisibilityById
263
+ xe as resetTreeGridSelectionsByIds,
264
+ Fe as setTreeGridColumnEnumOptionsById,
265
+ $e as setTreeGridColumnVisibilityById
257
266
  };
258
267
  //# sourceMappingURL=treeGridUtil.js.map