impact-nova 1.7.12 → 1.7.13

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.
@@ -1,4 +1,4 @@
1
- import { jsxs as re, jsx as g } from "react/jsx-runtime";
1
+ import { jsxs as ne, jsx as g } from "react/jsx-runtime";
2
2
  import { lazy as oe, useRef as _, useState as v, useCallback as y, useMemo as b, useEffect as le, Suspense as ie } from "react";
3
3
  import { ModuleRegistry as ae, AllCommunityModule as ue, ValidationModule as se } from "ag-grid-community";
4
4
  import { AllEnterpriseModule as ce } from "ag-grid-enterprise";
@@ -22,17 +22,17 @@ const D = "", W = (a) => {
22
22
  K(a);
23
23
  }, K = (a) => {
24
24
  if (typeof document > "u") return;
25
- const r = document.createElement("textarea");
26
- r.value = a, r.setAttribute("readonly", ""), r.style.position = "fixed", r.style.top = "0", r.style.left = "0", r.style.opacity = "0", r.style.pointerEvents = "none", document.body.appendChild(r);
25
+ const n = document.createElement("textarea");
26
+ n.value = a, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.top = "0", n.style.left = "0", n.style.opacity = "0", n.style.pointerEvents = "none", document.body.appendChild(n);
27
27
  try {
28
- r.select(), document.execCommand("copy");
28
+ n.select(), document.execCommand("copy");
29
29
  } finally {
30
- document.body.removeChild(r);
30
+ document.body.removeChild(n);
31
31
  }
32
32
  };
33
33
  function Ve({
34
34
  children: a,
35
- defaultColDef: r,
35
+ defaultColDef: n,
36
36
  defaultColGroupDef: s,
37
37
  columnDefs: x,
38
38
  valueFormatters: h,
@@ -78,38 +78,38 @@ function Ve({
78
78
  le(() => {
79
79
  const e = f.current;
80
80
  if (!e) return;
81
- const t = (n) => {
82
- if (n.key !== "Enter" && n.key !== " ") return;
83
- const c = n.target;
81
+ const t = (r) => {
82
+ if (r.key !== "Enter" && r.key !== " ") return;
83
+ const c = r.target;
84
84
  if (!c.classList.contains("ag-cell") && !c.classList.contains("ag-header-cell")) return;
85
85
  const u = c.querySelector(
86
86
  'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
87
87
  );
88
- u && (n.preventDefault(), n.stopPropagation(), u.click(), u.focus());
88
+ u && (r.preventDefault(), r.stopPropagation(), u.click(), u.focus());
89
89
  };
90
90
  return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
91
91
  }, []);
92
92
  const z = b(() => ({
93
93
  headerComponent: pe,
94
- ...r,
94
+ ...n,
95
95
  suppressHeaderKeyboardEvent: (e) => {
96
- const { event: t } = e, n = t.target;
97
- if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
96
+ const { event: t } = e, r = t.target;
97
+ if (r.tagName === "INPUT" || r.tagName === "TEXTAREA")
98
98
  return !(t.key === "Enter" || t.key === "Escape" || t.key === "Tab");
99
99
  if (t.key === "Enter" || t.key === " ") {
100
- const u = n.closest(".ag-header-cell");
100
+ const u = r.closest(".ag-header-cell");
101
101
  if (u) {
102
102
  const m = u.querySelector('[role="checkbox"], button, [role="switch"], input');
103
103
  if (m)
104
104
  return t.preventDefault(), m.click(), !0;
105
105
  }
106
106
  }
107
- return r?.suppressHeaderKeyboardEvent?.(e) ?? !1;
107
+ return n?.suppressHeaderKeyboardEvent?.(e) ?? !1;
108
108
  },
109
109
  headerComponentParams: {
110
- ...r?.headerComponentParams
110
+ ...n?.headerComponentParams
111
111
  }
112
- }), [r]), J = b(() => ({
112
+ }), [n]), J = b(() => ({
113
113
  headerGroupComponent: fe,
114
114
  ...s,
115
115
  headerGroupComponentParams: {
@@ -124,7 +124,7 @@ function Ve({
124
124
  // Optional custom formatters override defaults
125
125
  }), [h, i.components]), B = y((e) => {
126
126
  if (e.value !== null && e.value !== void 0 && typeof e.value == "object") {
127
- const t = Object.entries(e.value).map(([, n]) => n && typeof n == "object" && "value" in n ? n.value : typeof n != "object" && typeof n < "u" ? n : null).filter((n) => n != null);
127
+ const t = Object.entries(e.value).map(([, r]) => r && typeof r == "object" && "value" in r ? r.value : typeof r != "object" && typeof r < "u" ? r : null).filter((r) => r != null);
128
128
  return t.length === 0 ? "" : t.length === 1 ? t[0] : t.join(D);
129
129
  }
130
130
  return e.value;
@@ -145,25 +145,25 @@ function Ve({
145
145
  W(t);
146
146
  return;
147
147
  }
148
- const n = [], c = t.split(`
148
+ const r = [], c = t.split(`
149
149
  `);
150
150
  for (let u = 0; u < c.length; u++) {
151
151
  const m = c[u];
152
152
  if (m.length === 0 && u === c.length - 1) {
153
- n.push("");
153
+ r.push("");
154
154
  continue;
155
155
  }
156
156
  const d = m.split(" ").map((l) => l.split(D)), S = Math.max(1, ...d.map((l) => l.length));
157
157
  if (S === 1) {
158
- n.push(m);
158
+ r.push(m);
159
159
  continue;
160
160
  }
161
161
  for (let l = 0; l < S; l++) {
162
162
  const G = d.map((p) => p.length === 1 ? p[0] : p[l] ?? "");
163
- n.push(G.join(" "));
163
+ r.push(G.join(" "));
164
164
  }
165
165
  }
166
- W(n.join(`
166
+ W(r.join(`
167
167
  `));
168
168
  }, []), A = y((e) => {
169
169
  const t = e.value;
@@ -174,7 +174,7 @@ function Ve({
174
174
  if (l && typeof l == "object" && "value" in l) {
175
175
  const G = l, p = G.value;
176
176
  if (p == null) continue;
177
- const te = u?.find((ne) => ne.field?.split(".").pop() === S), V = xe(
177
+ const te = u?.find((re) => re.field?.split(".").pop() === S), V = xe(
178
178
  G,
179
179
  H,
180
180
  te?.valueFormatter ?? null,
@@ -194,7 +194,7 @@ function Ve({
194
194
  processCellCallback: A,
195
195
  ...i.defaultExcelExportParams ?? {}
196
196
  }), [A, i.defaultExcelExportParams]);
197
- return /* @__PURE__ */ re(ge.Provider, { value: E, children: [
197
+ return /* @__PURE__ */ ne(ge.Provider, { value: E, children: [
198
198
  /* @__PURE__ */ g("div", { ref: f, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ g(
199
199
  de,
200
200
  {
@@ -212,7 +212,6 @@ function Ve({
212
212
  suppressHeaderFocus: !1,
213
213
  suppressFocusAfterRefresh: !0,
214
214
  suppressGroupRowsSticky: !0,
215
- enableCellTextSelection: !0,
216
215
  columnTypes: {
217
216
  numericColumn: {
218
217
  cellClass: "ag-right-aligned-cell",
@@ -265,13 +264,13 @@ function Ve({
265
264
  }
266
265
  function Ee({
267
266
  isOpen: a,
268
- columnId: r,
267
+ columnId: n,
269
268
  gridApi: s,
270
269
  onClose: x,
271
270
  onApply: h
272
271
  }) {
273
- if (!a || !r || !s) return null;
274
- const C = s.getColumn(r);
272
+ if (!a || !n || !s) return null;
273
+ const C = s.getColumn(n);
275
274
  if (!C) return null;
276
275
  const i = C.getColDef(), o = i.headerComponentParams, f = Ce(i), F = f.text !== -1 || f.number !== -1 || f.date !== -1, k = f.set !== -1, M = i.filter === "agMultiColumnFilter" && (F || k) ? "multi" : i.filter === "agNumberColumnFilter" ? "number" : i.filter === "agDateColumnFilter" ? "date" : i.filter === "agSetColumnFilter" || o?.selectOptions ? "select" : "text", R = ve(s.getFilterModel());
277
276
  return /* @__PURE__ */ g(ie, { fallback: null, children: /* @__PURE__ */ g(
@@ -280,8 +279,8 @@ function Ee({
280
279
  isOpen: a,
281
280
  onClose: x,
282
281
  onApply: h,
283
- columnId: r,
284
- columnLabel: i.headerName || r,
282
+ columnId: n,
283
+ columnLabel: i.headerName || n,
285
284
  columnType: M,
286
285
  selectOptions: o?.selectOptions,
287
286
  isMultiSelect: o?.isMultiSelect,
@@ -292,16 +291,16 @@ function Ee({
292
291
  }
293
292
  function Ae({
294
293
  isOpen: a,
295
- columnId: r,
294
+ columnId: n,
296
295
  gridApi: s,
297
296
  anchor: x,
298
297
  onClose: h
299
298
  }) {
300
- return !a || !r || !s ? null : /* @__PURE__ */ g(
299
+ return !a || !n || !s ? null : /* @__PURE__ */ g(
301
300
  ye,
302
301
  {
303
302
  isOpen: a,
304
- columnId: r,
303
+ columnId: n,
305
304
  gridApi: s,
306
305
  anchor: x,
307
306
  onClose: h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-nova",
3
- "version": "1.7.12",
3
+ "version": "1.7.13",
4
4
  "description": "Enterprise-grade React design system built with React 19, Vite, Tailwind CSS, and Radix UI. Built-in internationalization (i18n) and comprehensive UI component library for scalable, accessible, and performant applications.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",