impact-nova 3.0.0-alpha.20 → 3.0.0-alpha.22
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.
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +32 -31
- package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +165 -150
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- package/dist/i18n/defaultMessages.d.ts +6 -0
- package/dist/i18n/defaultMessages.js +16 -11
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/kn.js +5 -0
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useVirtualizedRows as H } from "../../../../lib/virtualized/useVirtualizedRows.js";
|
|
3
|
+
import { readHeatmapGridLayout as F, readHeatmapGridCellPosition as C, readNextHeatmapGridFocusCell as T, readHeatmapGridCellKey as R } from "../heatmap-grid.layout.js";
|
|
4
|
+
import { useHeatmapGridContext as L } from "./heatmap-grid-context.js";
|
|
5
|
+
const y = 2;
|
|
6
|
+
function O(e) {
|
|
7
|
+
const [u, i] = o.useState({ widthPx: 0, heightPx: 0 });
|
|
8
|
+
return o.useLayoutEffect(() => {
|
|
9
|
+
const c = e.current;
|
|
10
|
+
if (!c)
|
|
11
|
+
return;
|
|
12
|
+
const s = () => i(
|
|
13
|
+
(n) => n.widthPx === c.clientWidth && n.heightPx === c.clientHeight ? n : { widthPx: c.clientWidth, heightPx: c.clientHeight }
|
|
14
|
+
);
|
|
15
|
+
s();
|
|
16
|
+
const l = new ResizeObserver(s);
|
|
17
|
+
return l.observe(c), () => l.disconnect();
|
|
18
|
+
}, [e]), u;
|
|
19
|
+
}
|
|
20
|
+
function G(e, u, i) {
|
|
21
|
+
return {
|
|
22
|
+
rowIndex: Math.max(Math.min(e.rowIndex, u - 1), 0),
|
|
23
|
+
columnIndex: Math.max(Math.min(e.columnIndex, i - 1), 0)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function V(e) {
|
|
27
|
+
const u = o.useRef(e.onEndReached), i = o.useRef(-1), c = o.useRef(!1), s = o.useRef(!1);
|
|
28
|
+
o.useLayoutEffect(() => {
|
|
29
|
+
u.current = e.onEndReached;
|
|
30
|
+
});
|
|
31
|
+
const { lastPaintedRowIndex: l, rowCount: n, hasMore: d, isFetchingMore: a, threshold: x } = e, h = d && !a && n > 0 && l >= 0 && l >= n - 1 - x;
|
|
32
|
+
return o.useEffect(() => {
|
|
33
|
+
s.current && !a && i.current === n && (c.current = !0), s.current = a;
|
|
34
|
+
}, [a, n]), o.useEffect(() => {
|
|
35
|
+
!h || i.current === n || (i.current = n, u.current?.());
|
|
36
|
+
}, [h, n]), () => {
|
|
37
|
+
!h || !c.current || (c.current = !1, i.current = n, u.current?.());
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function B() {
|
|
41
|
+
const e = L(), u = o.useRef(null), i = o.useRef(null), c = o.useRef("pointer"), s = O(u), l = F({
|
|
42
|
+
rowCount: e.rowCount,
|
|
43
|
+
columnCount: e.columnCount,
|
|
44
|
+
viewportWidthPx: s.widthPx,
|
|
45
|
+
viewportHeightPx: s.heightPx,
|
|
46
|
+
minRowSizePx: e.minRowSizePx,
|
|
47
|
+
minColumnSizePx: e.minColumnSizePx,
|
|
48
|
+
rowHeaderWidthPx: e.rowHeaderWidthPx,
|
|
49
|
+
columnHeaderHeightPx: e.columnHeaderHeightPx,
|
|
50
|
+
isFetchingMore: e.isFetchingMore
|
|
51
|
+
}), n = { width: s.widthPx, height: s.heightPx }, d = H({
|
|
52
|
+
scrollElementRef: u,
|
|
53
|
+
rowCount: e.rowCount,
|
|
54
|
+
estimateSize: () => l.rowSizePx,
|
|
55
|
+
overscan: y,
|
|
56
|
+
rerenderWhenPaintedRangeChanges: !0,
|
|
57
|
+
scrollPaddingEnd: e.columnHeaderHeightPx,
|
|
58
|
+
initialRect: n
|
|
59
|
+
}), a = H({
|
|
60
|
+
scrollElementRef: u,
|
|
61
|
+
rowCount: e.columnCount,
|
|
62
|
+
estimateSize: () => l.columnSizePx,
|
|
63
|
+
overscan: y,
|
|
64
|
+
rerenderWhenPaintedRangeChanges: !0,
|
|
65
|
+
horizontal: !0,
|
|
66
|
+
paddingStart: e.rowHeaderWidthPx,
|
|
67
|
+
scrollPaddingStart: e.rowHeaderWidthPx,
|
|
68
|
+
initialRect: n
|
|
69
|
+
}), { virtualizer: x } = d, { virtualizer: h } = a;
|
|
70
|
+
o.useLayoutEffect(() => {
|
|
71
|
+
x.measure();
|
|
72
|
+
}, [x, l.rowSizePx]), o.useLayoutEffect(() => {
|
|
73
|
+
h.measure();
|
|
74
|
+
}, [h, l.columnSizePx]);
|
|
75
|
+
const S = V({
|
|
76
|
+
lastPaintedRowIndex: d.virtualItems[d.virtualItems.length - 1]?.index ?? -1,
|
|
77
|
+
rowCount: e.rowCount,
|
|
78
|
+
hasMore: e.hasMore,
|
|
79
|
+
isFetchingMore: e.isFetchingMore,
|
|
80
|
+
threshold: e.endReachedThreshold,
|
|
81
|
+
onEndReached: e.onEndReached
|
|
82
|
+
}), f = G(e.activeCell, e.rowCount, e.columnCount), M = d.virtualItems.some((t) => t.index === f.rowIndex) && a.virtualItems.some((t) => t.index === f.columnIndex), E = () => {
|
|
83
|
+
const t = i.current, r = t ? u.current?.querySelector(
|
|
84
|
+
`[data-heatmap-cell][data-row-index="${t.rowIndex}"][data-column-index="${t.columnIndex}"]`
|
|
85
|
+
) : null;
|
|
86
|
+
r && (i.current = null, r.focus({ preventScroll: !0 }));
|
|
87
|
+
};
|
|
88
|
+
o.useLayoutEffect(E);
|
|
89
|
+
const I = (t) => {
|
|
90
|
+
i.current = t, x.scrollToIndex(t.rowIndex, { align: "auto" }), h.scrollToIndex(t.columnIndex, { align: "auto" }), R(t) !== R(f) && e.setActiveCell(t), E();
|
|
91
|
+
}, P = (t, r = !1) => {
|
|
92
|
+
const m = C(t), v = t?.closest("[data-heatmap-cell]"), p = e.rootRef.current;
|
|
93
|
+
if (!m || !v || !p) {
|
|
94
|
+
e.hoverStore.set(null);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const z = e.hoverStore.get();
|
|
98
|
+
if (!r && z?.rowIndex === m.rowIndex && z.columnIndex === m.columnIndex)
|
|
99
|
+
return;
|
|
100
|
+
const w = p.getBoundingClientRect(), g = v.getBoundingClientRect();
|
|
101
|
+
e.hoverStore.set({
|
|
102
|
+
...m,
|
|
103
|
+
anchorX: g.left + g.width / 2 - w.left,
|
|
104
|
+
anchorTop: g.top - w.top,
|
|
105
|
+
anchorBottom: g.bottom - w.top,
|
|
106
|
+
rootWidthPx: w.width
|
|
107
|
+
});
|
|
108
|
+
}, W = {
|
|
109
|
+
onPointerOver: (t) => {
|
|
110
|
+
c.current = "pointer", P(t.target);
|
|
111
|
+
},
|
|
112
|
+
onPointerLeave: () => e.hoverStore.set(null),
|
|
113
|
+
onScroll: (t) => {
|
|
114
|
+
if (S(), e.hoverStore.get() === null)
|
|
115
|
+
return;
|
|
116
|
+
const r = document.activeElement;
|
|
117
|
+
if (c.current === "focus" && r && t.currentTarget.contains(r)) {
|
|
118
|
+
P(r, !0);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
e.hoverStore.set(null);
|
|
122
|
+
},
|
|
123
|
+
onFocus: (t) => {
|
|
124
|
+
if (t.target === t.currentTarget) {
|
|
125
|
+
I(f);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const r = C(t.target);
|
|
129
|
+
r && (R(r) !== R(f) && e.setActiveCell(r), c.current = "focus", P(t.target));
|
|
130
|
+
},
|
|
131
|
+
onBlur: (t) => {
|
|
132
|
+
t.currentTarget.contains(t.relatedTarget) || e.hoverStore.set(null);
|
|
133
|
+
},
|
|
134
|
+
onKeyDown: (t) => {
|
|
135
|
+
const r = C(t.target);
|
|
136
|
+
if (!r)
|
|
137
|
+
return;
|
|
138
|
+
const m = T({
|
|
139
|
+
current: r,
|
|
140
|
+
rowCount: e.rowCount,
|
|
141
|
+
columnCount: e.columnCount,
|
|
142
|
+
key: t.key,
|
|
143
|
+
ctrlKey: t.ctrlKey || t.metaKey
|
|
144
|
+
});
|
|
145
|
+
m && (t.preventDefault(), I(m));
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
return {
|
|
149
|
+
context: e,
|
|
150
|
+
scrollRef: u,
|
|
151
|
+
layout: l,
|
|
152
|
+
rowItems: d.virtualItems,
|
|
153
|
+
columnItems: a.virtualItems,
|
|
154
|
+
activeCell: f,
|
|
155
|
+
isActiveCellPainted: M,
|
|
156
|
+
handlers: W
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
B as useHeatmapGridViewport
|
|
161
|
+
};
|
|
@@ -475,6 +475,11 @@ export interface GlobeMapMessages {
|
|
|
475
475
|
trendingNow: string;
|
|
476
476
|
slideLabel: string;
|
|
477
477
|
}
|
|
478
|
+
export interface HeatmapGridMessages {
|
|
479
|
+
gridLabel: string;
|
|
480
|
+
rowHeaderLabel: string;
|
|
481
|
+
loadingMore: string;
|
|
482
|
+
}
|
|
478
483
|
export interface StereoScatterMessages {
|
|
479
484
|
chartLabel: string;
|
|
480
485
|
legend: string;
|
|
@@ -525,6 +530,7 @@ export interface ImpactNovaMessages {
|
|
|
525
530
|
hexTilemap: HexTilemapMessages;
|
|
526
531
|
globeMap: GlobeMapMessages;
|
|
527
532
|
stereoScatter: StereoScatterMessages;
|
|
533
|
+
heatmapGrid: HeatmapGridMessages;
|
|
528
534
|
}
|
|
529
535
|
/** Default English messages used when no provider or partial override */
|
|
530
536
|
export declare const defaultMessages: ImpactNovaMessages;
|
|
@@ -283,6 +283,10 @@ const e = {
|
|
|
283
283
|
trendingNow: "Trending now",
|
|
284
284
|
slideLabel: "Slide {{number}}"
|
|
285
285
|
}, y = {
|
|
286
|
+
gridLabel: "Heatmap",
|
|
287
|
+
rowHeaderLabel: "Row",
|
|
288
|
+
loadingMore: "Loading more rows"
|
|
289
|
+
}, C = {
|
|
286
290
|
chartLabel: "Cluster scatter",
|
|
287
291
|
legend: "Cluster legend",
|
|
288
292
|
hideCluster: "Hide {{label}}",
|
|
@@ -305,10 +309,10 @@ const e = {
|
|
|
305
309
|
interactionHint: "Drag to rotate · click a cluster to focus",
|
|
306
310
|
clearFocus: "Clear focus",
|
|
307
311
|
webglUnavailable: "3D view is unavailable in this browser."
|
|
308
|
-
},
|
|
312
|
+
}, A = {
|
|
309
313
|
endTour: "End tour",
|
|
310
314
|
actionRequiredBadge: "Action required"
|
|
311
|
-
},
|
|
315
|
+
}, T = {
|
|
312
316
|
askIris: "Ask Iris",
|
|
313
317
|
askAnything: "Ask Iris Anything",
|
|
314
318
|
greetingHello: "Good morning",
|
|
@@ -402,7 +406,7 @@ const e = {
|
|
|
402
406
|
generationErrorBody: "The model or a tool failed. Try again.",
|
|
403
407
|
cancelled: "Response stopped",
|
|
404
408
|
copyCode: "Copy code"
|
|
405
|
-
},
|
|
409
|
+
}, k = {
|
|
406
410
|
title: "Advanced Filter",
|
|
407
411
|
currentColumn: "Current Column",
|
|
408
412
|
allFilters: "Active Filters",
|
|
@@ -416,7 +420,7 @@ const e = {
|
|
|
416
420
|
addRule: "+ Add Rule",
|
|
417
421
|
deleteColumn: "Delete",
|
|
418
422
|
noValueNeeded: "No value needed"
|
|
419
|
-
},
|
|
423
|
+
}, F = {
|
|
420
424
|
activeFilter: "Active filter",
|
|
421
425
|
search: "Search",
|
|
422
426
|
selection: "Selection",
|
|
@@ -451,7 +455,7 @@ const e = {
|
|
|
451
455
|
columnOptions: "Column Options",
|
|
452
456
|
chooseColumns: "Choose Columns",
|
|
453
457
|
resetColumns: "Reset Columns"
|
|
454
|
-
},
|
|
458
|
+
}, D = {
|
|
455
459
|
calendar: e,
|
|
456
460
|
datePicker: t,
|
|
457
461
|
filter: a,
|
|
@@ -465,19 +469,20 @@ const e = {
|
|
|
465
469
|
fileUpload: u,
|
|
466
470
|
filterStrip: p,
|
|
467
471
|
filterPanel: h,
|
|
468
|
-
advancedFilter:
|
|
469
|
-
gridHeader:
|
|
472
|
+
advancedFilter: k,
|
|
473
|
+
gridHeader: F,
|
|
470
474
|
notificationPanel: m,
|
|
471
475
|
helpCenter: g,
|
|
472
476
|
horizontalScroller: f,
|
|
473
477
|
sidebar: S,
|
|
474
478
|
stepper: v,
|
|
475
|
-
guidance:
|
|
476
|
-
irisChat:
|
|
479
|
+
guidance: A,
|
|
480
|
+
irisChat: T,
|
|
477
481
|
hexTilemap: w,
|
|
478
482
|
globeMap: b,
|
|
479
|
-
stereoScatter:
|
|
483
|
+
stereoScatter: C,
|
|
484
|
+
heatmapGrid: y
|
|
480
485
|
};
|
|
481
486
|
export {
|
|
482
|
-
|
|
487
|
+
D as defaultMessages
|
|
483
488
|
};
|
package/dist/i18n/locales/de.js
CHANGED
|
@@ -476,6 +476,11 @@ const e = {
|
|
|
476
476
|
interactionHint: "Ziehen zum Drehen · Cluster anklicken zum Fokussieren",
|
|
477
477
|
clearFocus: "Fokus aufheben",
|
|
478
478
|
webglUnavailable: "3D-Ansicht ist in diesem Browser nicht verfügbar."
|
|
479
|
+
},
|
|
480
|
+
heatmapGrid: {
|
|
481
|
+
gridLabel: "Heatmap",
|
|
482
|
+
rowHeaderLabel: "Zeile",
|
|
483
|
+
loadingMore: "Weitere Zeilen werden geladen"
|
|
479
484
|
}
|
|
480
485
|
};
|
|
481
486
|
export {
|
package/dist/i18n/locales/es.js
CHANGED
|
@@ -476,6 +476,11 @@ const e = {
|
|
|
476
476
|
interactionHint: "Arrastra para rotar · haz clic en un clúster para enfocarlo",
|
|
477
477
|
clearFocus: "Quitar enfoque",
|
|
478
478
|
webglUnavailable: "La vista 3D no está disponible en este navegador."
|
|
479
|
+
},
|
|
480
|
+
heatmapGrid: {
|
|
481
|
+
gridLabel: "Mapa de calor",
|
|
482
|
+
rowHeaderLabel: "Fila",
|
|
483
|
+
loadingMore: "Cargando más filas"
|
|
479
484
|
}
|
|
480
485
|
};
|
|
481
486
|
export {
|
package/dist/i18n/locales/hi.js
CHANGED
|
@@ -476,6 +476,11 @@ const e = {
|
|
|
476
476
|
interactionHint: "घुमाने के लिए खींचें · फ़ोकस के लिए क्लस्टर पर क्लिक करें",
|
|
477
477
|
clearFocus: "फ़ोकस हटाएँ",
|
|
478
478
|
webglUnavailable: "इस ब्राउज़र में 3D व्यू उपलब्ध नहीं है।"
|
|
479
|
+
},
|
|
480
|
+
heatmapGrid: {
|
|
481
|
+
gridLabel: "हीटमैप",
|
|
482
|
+
rowHeaderLabel: "पंक्ति",
|
|
483
|
+
loadingMore: "और पंक्तियाँ लोड हो रही हैं"
|
|
479
484
|
}
|
|
480
485
|
};
|
|
481
486
|
export {
|
package/dist/i18n/locales/kn.js
CHANGED
|
@@ -476,6 +476,11 @@ const e = {
|
|
|
476
476
|
interactionHint: "Drag to rotate · click a cluster to focus",
|
|
477
477
|
clearFocus: "Clear focus",
|
|
478
478
|
webglUnavailable: "3D view is unavailable in this browser."
|
|
479
|
+
},
|
|
480
|
+
heatmapGrid: {
|
|
481
|
+
gridLabel: "ಹೀಟ್ಮ್ಯಾಪ್",
|
|
482
|
+
rowHeaderLabel: "ಸಾಲು",
|
|
483
|
+
loadingMore: "ಇನ್ನಷ್ಟು ಸಾಲುಗಳನ್ನು ಲೋಡ್ ಮಾಡಲಾಗುತ್ತಿದೆ"
|
|
479
484
|
}
|
|
480
485
|
};
|
|
481
486
|
export {
|