impact-nova 1.5.4 → 1.5.5
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.
|
@@ -4,13 +4,12 @@ import { ChevronLeftIcon as we, ChevronRightIcon as ye } from "lucide-react";
|
|
|
4
4
|
import { getDefaultClassNames as Fe, DayPicker as He } from "react-day-picker";
|
|
5
5
|
import { cn as f } from "../../lib/utils.js";
|
|
6
6
|
import { Button as A } from "./button.js";
|
|
7
|
-
import "./button-variants.js";
|
|
8
7
|
import ce from "./select/select.js";
|
|
9
8
|
import { FISCAL_PATTERNS as Be, resolveWeekSelection as Te } from "../../lib/fiscal-calendar.js";
|
|
10
9
|
import { getIntlLocale as We, getDateFnsLocale as qe } from "../../i18n/getDateFnsLocale.js";
|
|
11
10
|
import { useImpactNovaI18n as Ge } from "../../i18n/ImpactNovaI18nContext.js";
|
|
12
11
|
const fe = u.createContext(0);
|
|
13
|
-
function
|
|
12
|
+
function at({
|
|
14
13
|
className: ae,
|
|
15
14
|
classNames: J,
|
|
16
15
|
showOutsideDays: D = !1,
|
|
@@ -751,6 +750,6 @@ function Je({
|
|
|
751
750
|
);
|
|
752
751
|
}
|
|
753
752
|
export {
|
|
754
|
-
|
|
753
|
+
at as Calendar,
|
|
755
754
|
Je as CalendarDayButton
|
|
756
755
|
};
|
|
@@ -20,7 +20,7 @@ const le = ({
|
|
|
20
20
|
if (!r || y.current) return;
|
|
21
21
|
const o = r.getColumnState(), n = new Map(o.map((t) => [t.colId, t]));
|
|
22
22
|
W.current = n;
|
|
23
|
-
const
|
|
23
|
+
const i = r.getColumns() || [], s = new Map(i.map((t) => [t.getColId(), t])), u = [], e = [], T = /* @__PURE__ */ new Map(), k = (t, c) => {
|
|
24
24
|
const l = t.getGroupId();
|
|
25
25
|
let a = T.get(l);
|
|
26
26
|
if (a) return a;
|
|
@@ -33,9 +33,9 @@ const le = ({
|
|
|
33
33
|
category: "group"
|
|
34
34
|
}, T.set(l, a), b.push(a), a;
|
|
35
35
|
};
|
|
36
|
-
let v = 0, L = 0,
|
|
36
|
+
let v = 0, L = 0, G = 0, P = 0;
|
|
37
37
|
o.forEach((t) => {
|
|
38
|
-
const c =
|
|
38
|
+
const c = s.get(t.colId);
|
|
39
39
|
if (!c) return;
|
|
40
40
|
let l = r.getDisplayNameForColumn(c, "header");
|
|
41
41
|
if (l === "") return;
|
|
@@ -51,17 +51,17 @@ const le = ({
|
|
|
51
51
|
label: l,
|
|
52
52
|
checked: a
|
|
53
53
|
};
|
|
54
|
-
t.pinned ? (v++, a && L++) : (
|
|
54
|
+
t.pinned ? (v++, a && L++) : (G++, a && P++);
|
|
55
55
|
const b = t.pinned ? u : e, D = c.getOriginalParent();
|
|
56
|
-
D ? k(D, b).children.push(m) : b.push(m);
|
|
56
|
+
D?.getColGroupDef().children ? k(D, b).children.push(m) : b.push(m);
|
|
57
57
|
});
|
|
58
|
-
const
|
|
58
|
+
const M = (t) => {
|
|
59
59
|
let c = t.length > 0;
|
|
60
60
|
for (const l of t)
|
|
61
|
-
l.children && (l.checked =
|
|
61
|
+
l.children && (l.checked = M(l.children)), l.checked || (c = !1);
|
|
62
62
|
return c;
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
M(u), M(e);
|
|
65
65
|
const N = [];
|
|
66
66
|
u.length > 0 && N.push({
|
|
67
67
|
id: "root-frozen",
|
|
@@ -73,7 +73,7 @@ const le = ({
|
|
|
73
73
|
}), e.length > 0 && N.push({
|
|
74
74
|
id: "root-scrollable",
|
|
75
75
|
label: h("dataTable.scrollableColumns"),
|
|
76
|
-
checked:
|
|
76
|
+
checked: G > 0 && P === G,
|
|
77
77
|
children: e,
|
|
78
78
|
category: "structure",
|
|
79
79
|
isDragDisabled: !0
|
|
@@ -93,32 +93,32 @@ const le = ({
|
|
|
93
93
|
"columnRowGroupChanged",
|
|
94
94
|
"columnPivotModeChanged",
|
|
95
95
|
"columnEverythingChanged"
|
|
96
|
-
],
|
|
96
|
+
], i = () => {
|
|
97
97
|
z.current?.();
|
|
98
98
|
};
|
|
99
|
-
return r.isDestroyed() || n.forEach((
|
|
100
|
-
clearTimeout(o), r.isDestroyed() || n.forEach((
|
|
99
|
+
return r.isDestroyed() || n.forEach((s) => r.addEventListener(s, i)), () => {
|
|
100
|
+
clearTimeout(o), r.isDestroyed() || n.forEach((s) => r.removeEventListener(s, i));
|
|
101
101
|
};
|
|
102
102
|
}, [r, g]);
|
|
103
103
|
const O = p((o) => {
|
|
104
|
-
const n = [],
|
|
105
|
-
|
|
104
|
+
const n = [], i = (s, u) => {
|
|
105
|
+
s.forEach((e) => {
|
|
106
106
|
if (e.id === "root-frozen") {
|
|
107
|
-
e.children &&
|
|
107
|
+
e.children && i(e.children, "left");
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (e.id === "root-scrollable") {
|
|
111
|
-
e.children &&
|
|
111
|
+
e.children && i(e.children, null);
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
e.category === "group" || e.children && e.children.length > 0 ? e.children &&
|
|
114
|
+
e.category === "group" || e.children && e.children.length > 0 ? e.children && i(e.children, u) : r?.getColumn(e.id) && n.push({
|
|
115
115
|
colId: e.id,
|
|
116
116
|
pinned: u,
|
|
117
117
|
hide: !e.checked
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
return
|
|
121
|
+
return i(o, null), n;
|
|
122
122
|
}, [r]), C = p((o) => {
|
|
123
123
|
if (!r) return;
|
|
124
124
|
y.current = !0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impact-nova",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
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",
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
},
|
|
529
529
|
"scripts": {
|
|
530
530
|
"dev": "vite",
|
|
531
|
-
"prepublishOnly": "npm run build",
|
|
531
|
+
"prepublishOnly": "npm i && npm run build",
|
|
532
532
|
"build": "tsc -b && vite build",
|
|
533
533
|
"lint": "eslint .",
|
|
534
534
|
"preview": "vite preview",
|