impact-nova 2.5.17 → 2.6.0-alpha.0
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/README.md +27 -25
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +28 -1
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +0 -3
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +31 -38
- package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +9 -0
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +22 -0
- package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +20 -0
- package/dist/components/data/ag-grid-react/chat/chat-column.js +81 -0
- package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +10 -0
- package/dist/components/data/ag-grid-react/chat/chat-composer.js +352 -0
- package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +17 -0
- package/dist/components/data/ag-grid-react/chat/chat-constants.js +22 -0
- package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +41 -0
- package/dist/components/data/ag-grid-react/chat/chat-format.js +94 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +10 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.js +651 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +2 -0
- package/dist/components/data/ag-grid-react/chat/chat-html.js +40 -0
- package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-identity.js +24 -0
- package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-menu.js +15 -0
- package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +17 -0
- package/dist/components/data/ag-grid-react/chat/chat-notify.js +124 -0
- package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-persist.js +34 -0
- package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-priority.js +79 -0
- package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +2 -0
- package/dist/components/data/ag-grid-react/chat/chat-summaries.js +24 -0
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +72 -0
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +713 -0
- package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +6 -0
- package/dist/components/data/ag-grid-react/chat/chat-toggle.js +25 -0
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +26 -0
- package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +14 -0
- package/dist/components/data/ag-grid-react/chat/chat-window.js +82 -0
- package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +91 -0
- package/dist/components/data/ag-grid-react/chat/chat-workspace.js +555 -0
- package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +319 -0
- package/dist/components/data/ag-grid-react/chat/index.d.ts +6 -0
- package/dist/components/data/ag-grid-react/chat/index.js +24 -0
- package/dist/components/data/ag-grid-react/chat.story-data.d.ts +34 -0
- package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +4 -0
- package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +4 -0
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +6 -0
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +29 -0
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +8 -0
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +16 -0
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +26 -0
- package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +12 -0
- package/dist/components/data/ag-grid-react/comments/comments-constants.js +21 -0
- package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +20 -0
- package/dist/components/data/ag-grid-react/comments/comments-format.js +49 -0
- package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +14 -0
- package/dist/components/data/ag-grid-react/comments/comments-generation.js +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +10 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.js +343 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +7 -0
- package/dist/components/data/ag-grid-react/comments/comments-identity.js +20 -0
- package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +29 -0
- package/dist/components/data/ag-grid-react/comments/comments-menu.js +35 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +22 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +98 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +21 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay.js +406 -0
- package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +9 -0
- package/dist/components/data/ag-grid-react/comments/comments-panel.js +272 -0
- package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-persist.js +19 -0
- package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-reveal.js +31 -0
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +22 -0
- package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +10 -0
- package/dist/components/data/ag-grid-react/comments/comments-window.js +62 -0
- package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +178 -0
- package/dist/components/data/ag-grid-react/comments/index.d.ts +5 -0
- package/dist/components/data/ag-grid-react/comments/index.js +15 -0
- package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +25 -0
- package/dist/components/data/ag-grid-react/comments.story-data.d.ts +37 -0
- package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +11 -0
- package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +21 -0
- package/dist/components/data/ag-grid-react/grid-cell-address.js +21 -0
- package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +34 -0
- package/dist/components/data/ag-grid-react/grid-row-reveal.js +33 -0
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +75 -65
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +122 -119
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +2 -1
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +25 -20
- package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +481 -254
- package/dist/components/data/ag-grid-react/notes/index.d.ts +2 -0
- package/dist/components/data/ag-grid-react/notes/index.js +1 -0
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +25 -0
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +32 -0
- package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +2 -0
- package/dist/components/data/ag-grid-react/notes/notes-constants.js +4 -0
- package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +12 -0
- package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +7 -0
- package/dist/components/data/ag-grid-react/nova-system-column.d.ts +7 -0
- package/dist/components/data/ag-grid-react/nova-system-column.js +18 -0
- package/dist/components/data/ag-grid-react/theme.js +6 -2
- package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/value-formatters.d.ts +0 -19
- package/dist/components/data/ag-grid-react/value-formatters.js +88 -90
- package/dist/components/data/data-table/build-column-tree-from-grid.js +14 -13
- package/dist/components/data/data-table/data-table-column-def-pin.js +34 -31
- package/dist/components/data/data-table/data-table-context.js +5 -5
- package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
- package/dist/components/data/data-table/data-table-sheet.js +2 -1
- package/dist/components/data-display/calendar/calendar-config.js +22 -21
- package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +36 -35
- package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +50 -62
- package/dist/components/data-display/calendar/calendar.js +138 -137
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +23 -22
- package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +1 -0
- package/dist/components/data-display/calendar/use-calendar-i18n.js +10 -9
- package/dist/components/data-display/chart/chart.js +72 -72
- package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
- package/dist/components/data-display/chart/chart.utils.js +40 -31
- package/dist/components/feedback/sheet/sheet.js +1 -1
- package/dist/components/feedback/toast/toast.d.ts +1 -1
- package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.js +65 -64
- package/dist/components/flows/filter-panel/filter-panel.types.d.ts +1 -0
- package/dist/components/forms/date-picker/date-picker.js +125 -126
- package/dist/components/forms/date-picker/date-range-picker.js +191 -192
- package/dist/components/forms/date-picker/multi-date-picker.js +66 -67
- package/dist/components/forms/date-picker/multi-week-picker.js +82 -83
- package/dist/components/forms/date-picker/use-picker-i18n.d.ts +6 -0
- package/dist/components/forms/date-picker/use-picker-i18n.js +11 -0
- package/dist/components/forms/date-picker/week-picker.js +146 -147
- package/dist/components/forms/date-picker/week-range-picker.js +158 -159
- package/dist/components/ui/local-raster-icons/message3d.webp.js +4 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +1 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.js +27 -25
- package/dist/form-react/Fields/WeekRangePicker.js +16 -16
- package/dist/form-react/fields.d.ts +0 -3
- package/dist/form-react/fields.js +29 -35
- package/dist/i18n/defaultMessages.d.ts +144 -0
- package/dist/i18n/defaultMessages.js +161 -19
- package/dist/i18n/format/collator.d.ts +1 -0
- package/dist/i18n/format/collator.js +7 -0
- package/dist/i18n/format/date-pattern.d.ts +5 -0
- package/dist/i18n/format/date-pattern.js +20 -0
- package/dist/i18n/format/format-date.d.ts +9 -0
- package/dist/i18n/format/format-date.js +56 -0
- package/dist/i18n/format/format-number.d.ts +20 -0
- package/dist/i18n/format/format-number.js +68 -0
- package/dist/i18n/format/formatter-cache.d.ts +9 -0
- package/dist/i18n/format/formatter-cache.js +66 -0
- package/dist/i18n/format/index.d.ts +6 -0
- package/dist/i18n/format/parse-number.d.ts +6 -0
- package/dist/i18n/format/parse-number.js +53 -0
- package/dist/i18n/getDateFnsLocale.d.ts +5 -4
- package/dist/i18n/getDateFnsLocale.js +46 -16
- package/dist/i18n/i18n.types.d.ts +13 -0
- package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
- package/dist/i18n/impact-nova-i18n-context.js +33 -25
- package/dist/i18n/impact-nova-i18n-defaults.js +8 -6
- package/dist/i18n/index.d.ts +4 -1
- package/dist/i18n/index.js +41 -16
- package/dist/i18n/locale-config.d.ts +28 -0
- package/dist/i18n/locale-config.js +32 -0
- package/dist/i18n/locales/de.js +142 -0
- package/dist/i18n/locales/es.js +142 -0
- package/dist/i18n/locales/hi.js +142 -0
- package/dist/i18n/locales/kn.js +142 -0
- package/dist/i18n/week-start.d.ts +6 -0
- package/dist/i18n/week-start.js +30 -0
- package/dist/impact-nova-components.css +249 -0
- package/dist/impact-nova-tokens.scss +6 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +624 -601
- package/dist/llms/index.js +26 -2
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/data-table-chat.js +1 -0
- package/dist/llms/rules/data-table-comments.js +1 -0
- package/dist/llms/rules/data-table-notes.js +1 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/migration.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/llms/rules/troubleshooting.js +1 -1
- package/dist/providers/app-providers.d.ts +3 -1
- package/dist/providers/app-providers.js +22 -11
- package/package.json +13 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import N from "highcharts-react-official";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
5
5
|
import { Skeleton as q } from "../skeleton/skeleton.js";
|
|
6
|
-
import { Collapse as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { getInitializedHighcharts as
|
|
9
|
-
import { getBaseChartOptions as
|
|
10
|
-
import { resolveHighchartsOptions as
|
|
11
|
-
import { useImpactNovaI18n as
|
|
12
|
-
const R =
|
|
6
|
+
import { Collapse as B, Expand as P } from "impact-nova-icons";
|
|
7
|
+
import { Button as T } from "../../primitives/button/button.js";
|
|
8
|
+
import { getInitializedHighcharts as O } from "./initializeHighcharts.js";
|
|
9
|
+
import { getBaseChartOptions as M } from "./chart.utils.js";
|
|
10
|
+
import { resolveHighchartsOptions as V } from "./resolve-highcharts-options.js";
|
|
11
|
+
import { useImpactNovaI18n as A } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
|
+
const R = O(), S = t.createContext(null), H = () => {
|
|
13
13
|
const n = t.useContext(S);
|
|
14
14
|
if (!n)
|
|
15
15
|
throw new Error("Chart components must be used within a ChartContainer");
|
|
16
16
|
return n;
|
|
17
|
-
},
|
|
18
|
-
({ className: n, children: r, isLoading: l = !1, ...
|
|
19
|
-
const a = t.useRef(null), o = t.useRef(null), [m, h] = t.useState(null), [
|
|
17
|
+
}, I = t.forwardRef(
|
|
18
|
+
({ className: n, children: r, isLoading: l = !1, ...i }, u) => {
|
|
19
|
+
const a = t.useRef(null), o = t.useRef(null), [m, h] = t.useState(null), [p, g] = t.useState(!1), [C, w] = t.useState(!1), v = t.useCallback((e) => {
|
|
20
20
|
a.current = e, h(e);
|
|
21
21
|
}, []);
|
|
22
22
|
t.useImperativeHandle(u, () => a.current);
|
|
23
|
-
const
|
|
23
|
+
const E = () => {
|
|
24
24
|
const e = a.current;
|
|
25
|
-
e && (
|
|
26
|
-
e.requestFullscreen ? e.requestFullscreen() : "webkitRequestFullscreen" in e ? e.webkitRequestFullscreen() : "msRequestFullscreen" in e && e.msRequestFullscreen(),
|
|
25
|
+
e && (w(!0), e.classList.add("fullscreen-animating"), setTimeout(() => {
|
|
26
|
+
e.requestFullscreen ? e.requestFullscreen() : "webkitRequestFullscreen" in e ? e.webkitRequestFullscreen() : "msRequestFullscreen" in e && e.msRequestFullscreen(), g(!0), e.classList.remove("fullscreen-animating");
|
|
27
27
|
}, 200));
|
|
28
|
-
},
|
|
28
|
+
}, x = () => {
|
|
29
29
|
const e = a.current;
|
|
30
|
-
e && (
|
|
31
|
-
document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(),
|
|
30
|
+
e && (w(!0), e.classList.add("fullscreen-animating-out"), setTimeout(() => {
|
|
31
|
+
document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), g(!1), e.classList.remove("fullscreen-animating-out");
|
|
32
32
|
}, 200));
|
|
33
|
-
},
|
|
34
|
-
|
|
33
|
+
}, F = () => {
|
|
34
|
+
p ? x() : E();
|
|
35
35
|
};
|
|
36
36
|
return t.useEffect(() => {
|
|
37
37
|
const e = () => {
|
|
38
|
-
document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement ||
|
|
38
|
+
document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || g(!1);
|
|
39
39
|
};
|
|
40
40
|
return document.addEventListener("fullscreenchange", e), document.addEventListener("webkitfullscreenchange", e), () => {
|
|
41
41
|
document.removeEventListener("fullscreenchange", e), document.removeEventListener(
|
|
@@ -46,29 +46,29 @@ const R = T(), S = t.createContext(null), A = () => {
|
|
|
46
46
|
}, []), t.useEffect(() => {
|
|
47
47
|
if (!o?.current?.chart) return;
|
|
48
48
|
const e = o.current.chart;
|
|
49
|
-
let
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
54
|
-
const y =
|
|
49
|
+
let c = null;
|
|
50
|
+
const f = () => {
|
|
51
|
+
p && a.current ? (c && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
52
|
+
const b = a.current;
|
|
53
|
+
if (!b) return;
|
|
54
|
+
const y = b.getBoundingClientRect(), k = b.querySelector('[class*="ChartContent"]');
|
|
55
55
|
if (k) {
|
|
56
56
|
const z = k.getBoundingClientRect();
|
|
57
57
|
e.setSize(z.width, z.height, !1);
|
|
58
58
|
} else
|
|
59
59
|
e.setSize(y.width, y.height, !1);
|
|
60
|
-
|
|
60
|
+
c = null;
|
|
61
61
|
})) : (e.setSize(null, null, !1), e.reflow());
|
|
62
62
|
};
|
|
63
|
-
return window.addEventListener("resize",
|
|
64
|
-
|
|
63
|
+
return window.addEventListener("resize", f), () => {
|
|
64
|
+
c && cancelAnimationFrame(c), window.removeEventListener("resize", f);
|
|
65
65
|
};
|
|
66
|
-
}, [
|
|
66
|
+
}, [p]), /* @__PURE__ */ s(
|
|
67
67
|
S.Provider,
|
|
68
68
|
{
|
|
69
69
|
value: {
|
|
70
|
-
isExpanded:
|
|
71
|
-
toggleFullscreen:
|
|
70
|
+
isExpanded: p,
|
|
71
|
+
toggleFullscreen: F,
|
|
72
72
|
isLoading: l,
|
|
73
73
|
containerRef: a,
|
|
74
74
|
containerElement: m,
|
|
@@ -77,15 +77,15 @@ const R = T(), S = t.createContext(null), A = () => {
|
|
|
77
77
|
children: /* @__PURE__ */ s(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
|
-
ref:
|
|
80
|
+
ref: v,
|
|
81
81
|
"data-component": "chart",
|
|
82
|
-
className:
|
|
82
|
+
className: d(
|
|
83
83
|
n,
|
|
84
84
|
"w-full relative bg-canvas-elevated transition-all duration-200 ease-in-out",
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
p && "fixed inset-0 z-50 h-screen w-screen p-4 bg-canvas flex flex-col",
|
|
86
|
+
C && "overflow-hidden"
|
|
87
87
|
),
|
|
88
|
-
...
|
|
88
|
+
...i,
|
|
89
89
|
children: r
|
|
90
90
|
}
|
|
91
91
|
)
|
|
@@ -93,34 +93,34 @@ const R = T(), S = t.createContext(null), A = () => {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
|
|
96
|
+
I.displayName = "ChartContainer";
|
|
97
97
|
const W = t.forwardRef(
|
|
98
|
-
({ className: n, children: r, ...l },
|
|
98
|
+
({ className: n, children: r, ...l }, i) => /* @__PURE__ */ s("div", { ref: i, className: d("flex items-center justify-between mb-4", n), ...l, children: r })
|
|
99
99
|
);
|
|
100
100
|
W.displayName = "ChartHeader";
|
|
101
101
|
const D = t.forwardRef(
|
|
102
|
-
({ className: n, ...r }, l) => /* @__PURE__ */ s("h3", { ref: l, className:
|
|
102
|
+
({ className: n, ...r }, l) => /* @__PURE__ */ s("h3", { ref: l, className: d("text-lg font-semibold leading-none tracking-tight", n), ...r })
|
|
103
103
|
);
|
|
104
104
|
D.displayName = "ChartTitle";
|
|
105
105
|
const G = t.forwardRef(
|
|
106
|
-
({ className: n, ...r }, l) => /* @__PURE__ */ s("div", { ref: l, className:
|
|
106
|
+
({ className: n, ...r }, l) => /* @__PURE__ */ s("div", { ref: l, className: d("flex items-center gap-2", n), ...r })
|
|
107
107
|
);
|
|
108
108
|
G.displayName = "ChartActions";
|
|
109
109
|
const J = t.forwardRef(
|
|
110
110
|
({ className: n, ...r }, l) => {
|
|
111
|
-
const { t:
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
|
|
111
|
+
const { t: i } = A(), { toggleFullscreen: u, isExpanded: a } = H(), o = i("aria.toggleFullscreen");
|
|
112
|
+
return /* @__PURE__ */ L(
|
|
113
|
+
T,
|
|
114
114
|
{
|
|
115
115
|
variant: "ghost",
|
|
116
116
|
size: "icon",
|
|
117
117
|
onClick: u,
|
|
118
118
|
ref: l,
|
|
119
|
-
className:
|
|
119
|
+
className: d("h-8 w-8", n),
|
|
120
120
|
"aria-label": o,
|
|
121
121
|
...r,
|
|
122
122
|
children: [
|
|
123
|
-
a ? /* @__PURE__ */ s(
|
|
123
|
+
a ? /* @__PURE__ */ s(B, { className: "h-4 w-4" }) : /* @__PURE__ */ s(P, { className: "h-4 w-4" }),
|
|
124
124
|
/* @__PURE__ */ s("span", { className: "sr-only", children: o })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -128,11 +128,11 @@ const J = t.forwardRef(
|
|
|
128
128
|
}
|
|
129
129
|
);
|
|
130
130
|
J.displayName = "ChartFullScreen";
|
|
131
|
-
const
|
|
132
|
-
({ className: n, children: r, loader: l, ...
|
|
133
|
-
const { isLoading: a, chartComponentRef: o, isExpanded: m } =
|
|
134
|
-
return a && l ? /* @__PURE__ */ s("div", { ref: u, className:
|
|
135
|
-
a && /* @__PURE__ */
|
|
131
|
+
const j = t.forwardRef(
|
|
132
|
+
({ className: n, children: r, loader: l, ...i }, u) => {
|
|
133
|
+
const { isLoading: a, chartComponentRef: o, isExpanded: m } = H();
|
|
134
|
+
return a && l ? /* @__PURE__ */ s("div", { ref: u, className: d(n, "w-full relative flex items-center justify-center flex-1 min-h-[300px]", m && "min-h-0"), ...i, children: l }) : /* @__PURE__ */ L("div", { ref: u, className: d(n, "w-full relative flex-1 min-h-[300px]", m && "min-h-0"), ...i, children: [
|
|
135
|
+
a && /* @__PURE__ */ L("div", { className: "absolute inset-0 z-10 bg-canvas/50 flex flex-col gap-2 p-4", children: [
|
|
136
136
|
/* @__PURE__ */ s(q, { className: "h-8 w-1/3" }),
|
|
137
137
|
/* @__PURE__ */ s(q, { className: "flex-1 w-full" })
|
|
138
138
|
] }),
|
|
@@ -140,53 +140,53 @@ const I = t.forwardRef(
|
|
|
140
140
|
] });
|
|
141
141
|
}
|
|
142
142
|
);
|
|
143
|
-
|
|
143
|
+
j.displayName = "ChartContent";
|
|
144
144
|
const K = t.forwardRef(
|
|
145
145
|
(n, r) => {
|
|
146
146
|
const {
|
|
147
147
|
height: l,
|
|
148
|
-
width:
|
|
148
|
+
width: i,
|
|
149
149
|
className: u,
|
|
150
150
|
isLoading: a,
|
|
151
151
|
loader: o,
|
|
152
152
|
title: m,
|
|
153
153
|
noWrapper: h,
|
|
154
|
-
children:
|
|
155
|
-
...
|
|
156
|
-
} = n,
|
|
157
|
-
|
|
158
|
-
}, []),
|
|
159
|
-
const
|
|
154
|
+
children: p,
|
|
155
|
+
...g
|
|
156
|
+
} = n, C = t.useContext(S), [w, v] = t.useState(null), E = t.useCallback((f) => {
|
|
157
|
+
v(f);
|
|
158
|
+
}, []), { numberLocale: x } = A(), F = t.useMemo(() => {
|
|
159
|
+
const f = M({ title: m, ...g }, x);
|
|
160
160
|
return {
|
|
161
|
-
...
|
|
161
|
+
...f,
|
|
162
162
|
chart: {
|
|
163
|
-
...
|
|
163
|
+
...f.chart,
|
|
164
164
|
height: l ?? null,
|
|
165
|
-
width:
|
|
165
|
+
width: i ?? null
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
}, [m, l,
|
|
169
|
-
return h ? /* @__PURE__ */ s("div", { ref:
|
|
168
|
+
}, [m, l, i, g, x]), e = C?.containerElement ?? w, c = V(F, e);
|
|
169
|
+
return h ? /* @__PURE__ */ s("div", { ref: E, className: "h-full w-full", children: /* @__PURE__ */ s(
|
|
170
170
|
N,
|
|
171
171
|
{
|
|
172
172
|
highcharts: R,
|
|
173
|
-
options:
|
|
173
|
+
options: c,
|
|
174
174
|
ref: r,
|
|
175
175
|
containerProps: { style: { height: "100%", width: "100%" } }
|
|
176
176
|
}
|
|
177
|
-
) }) :
|
|
177
|
+
) }) : C ? /* @__PURE__ */ s(
|
|
178
178
|
N,
|
|
179
179
|
{
|
|
180
180
|
highcharts: R,
|
|
181
|
-
options:
|
|
181
|
+
options: c,
|
|
182
182
|
ref: r,
|
|
183
183
|
containerProps: { style: { height: "100%", width: "100%" } }
|
|
184
184
|
}
|
|
185
|
-
) : /* @__PURE__ */ s(
|
|
185
|
+
) : /* @__PURE__ */ s(I, { className: u, isLoading: a, children: /* @__PURE__ */ s(j, { loader: o, children: /* @__PURE__ */ s(
|
|
186
186
|
N,
|
|
187
187
|
{
|
|
188
188
|
highcharts: R,
|
|
189
|
-
options:
|
|
189
|
+
options: c,
|
|
190
190
|
ref: r,
|
|
191
191
|
containerProps: { style: { height: "100%", width: "100%" } }
|
|
192
192
|
}
|
|
@@ -197,8 +197,8 @@ K.displayName = "Chart";
|
|
|
197
197
|
export {
|
|
198
198
|
K as Chart,
|
|
199
199
|
G as ChartActions,
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
I as ChartContainer,
|
|
201
|
+
j as ChartContent,
|
|
202
202
|
J as ChartFullScreen,
|
|
203
203
|
W as ChartHeader,
|
|
204
204
|
D as ChartTitle
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChartProps } from './chart.types';
|
|
2
2
|
import type * as Highcharts from 'highcharts';
|
|
3
|
-
export declare const getBaseChartOptions: (props: ChartProps) => Highcharts.Options;
|
|
3
|
+
export declare const getBaseChartOptions: (props: ChartProps, numberLocale?: string) => Highcharts.Options;
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
import { CHART_PALETTE_CSS_VARS as
|
|
2
|
-
|
|
1
|
+
import { CHART_PALETTE_CSS_VARS as x } from "./chart-palette.js";
|
|
2
|
+
import { DEFAULT_LOCALE as m } from "../../../i18n/locale-config.js";
|
|
3
|
+
import { getNumberSeparators as h, formatNumber as v } from "../../../i18n/format/format-number.js";
|
|
4
|
+
const C = (a, e = m) => {
|
|
3
5
|
const {
|
|
4
|
-
type:
|
|
5
|
-
title:
|
|
6
|
-
subtitle:
|
|
7
|
-
xAxisCategories:
|
|
8
|
-
xAxisTitle:
|
|
9
|
-
yAxisTitle:
|
|
10
|
-
series:
|
|
6
|
+
type: s = "column",
|
|
7
|
+
title: n,
|
|
8
|
+
subtitle: d,
|
|
9
|
+
xAxisCategories: p,
|
|
10
|
+
xAxisTitle: t,
|
|
11
|
+
yAxisTitle: c,
|
|
12
|
+
series: f,
|
|
11
13
|
options: o,
|
|
12
|
-
stacked:
|
|
13
|
-
is3D:
|
|
14
|
-
showLegend:
|
|
15
|
-
showTooltip:
|
|
16
|
-
} =
|
|
14
|
+
stacked: i,
|
|
15
|
+
is3D: u,
|
|
16
|
+
showLegend: b = !0,
|
|
17
|
+
showTooltip: g = !0
|
|
18
|
+
} = a, l = h(e), r = {
|
|
19
|
+
lang: {
|
|
20
|
+
decimalPoint: l.decimal,
|
|
21
|
+
thousandsSep: l.group
|
|
22
|
+
},
|
|
17
23
|
chart: {
|
|
18
|
-
type:
|
|
24
|
+
type: s,
|
|
19
25
|
backgroundColor: "transparent",
|
|
20
26
|
style: {
|
|
21
27
|
fontFamily: "Manrope, sans-serif"
|
|
22
28
|
},
|
|
23
|
-
options3d:
|
|
29
|
+
options3d: u ? {
|
|
24
30
|
enabled: !0,
|
|
25
31
|
alpha: 15,
|
|
26
32
|
beta: 15,
|
|
@@ -29,7 +35,7 @@ const u = (i) => {
|
|
|
29
35
|
} : void 0
|
|
30
36
|
},
|
|
31
37
|
title: {
|
|
32
|
-
text:
|
|
38
|
+
text: n ?? "",
|
|
33
39
|
align: "left",
|
|
34
40
|
style: {
|
|
35
41
|
fontSize: "18px",
|
|
@@ -38,7 +44,7 @@ const u = (i) => {
|
|
|
38
44
|
}
|
|
39
45
|
},
|
|
40
46
|
subtitle: {
|
|
41
|
-
text:
|
|
47
|
+
text: d,
|
|
42
48
|
align: "left"
|
|
43
49
|
},
|
|
44
50
|
credits: {
|
|
@@ -54,9 +60,9 @@ const u = (i) => {
|
|
|
54
60
|
}
|
|
55
61
|
},
|
|
56
62
|
xAxis: {
|
|
57
|
-
categories:
|
|
58
|
-
title:
|
|
59
|
-
text:
|
|
63
|
+
categories: p,
|
|
64
|
+
title: t ? {
|
|
65
|
+
text: t,
|
|
60
66
|
style: {
|
|
61
67
|
color: "var(--color-foreground-tertiary)",
|
|
62
68
|
fontFamily: '"Manrope", sans-serif',
|
|
@@ -80,7 +86,7 @@ const u = (i) => {
|
|
|
80
86
|
},
|
|
81
87
|
yAxis: {
|
|
82
88
|
title: {
|
|
83
|
-
text:
|
|
89
|
+
text: c,
|
|
84
90
|
margin: 30,
|
|
85
91
|
style: {
|
|
86
92
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -96,6 +102,9 @@ const u = (i) => {
|
|
|
96
102
|
gridLineColor: "var(--color-border)",
|
|
97
103
|
gridLineDashStyle: "Dash",
|
|
98
104
|
labels: {
|
|
105
|
+
formatter() {
|
|
106
|
+
return v(Number(this.value), e);
|
|
107
|
+
},
|
|
99
108
|
style: {
|
|
100
109
|
color: "var(--color-foreground-tertiary)",
|
|
101
110
|
fontFamily: '"Manrope", sans-serif',
|
|
@@ -105,7 +114,7 @@ const u = (i) => {
|
|
|
105
114
|
}
|
|
106
115
|
},
|
|
107
116
|
legend: {
|
|
108
|
-
enabled:
|
|
117
|
+
enabled: b,
|
|
109
118
|
symbolRadius: 2,
|
|
110
119
|
itemStyle: {
|
|
111
120
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -117,7 +126,7 @@ const u = (i) => {
|
|
|
117
126
|
}
|
|
118
127
|
},
|
|
119
128
|
tooltip: {
|
|
120
|
-
enabled:
|
|
129
|
+
enabled: g,
|
|
121
130
|
backgroundColor: "var(--color-surface-floating)",
|
|
122
131
|
borderColor: "var(--color-border)",
|
|
123
132
|
borderRadius: 8,
|
|
@@ -126,16 +135,16 @@ const u = (i) => {
|
|
|
126
135
|
},
|
|
127
136
|
shadow: !0
|
|
128
137
|
},
|
|
129
|
-
colors: [...
|
|
138
|
+
colors: [...x],
|
|
130
139
|
plotOptions: {
|
|
131
140
|
column: {
|
|
132
141
|
borderRadius: 4,
|
|
133
|
-
stacking:
|
|
142
|
+
stacking: i ? "normal" : void 0,
|
|
134
143
|
borderWidth: 0
|
|
135
144
|
},
|
|
136
145
|
bar: {
|
|
137
146
|
borderRadius: 4,
|
|
138
|
-
stacking:
|
|
147
|
+
stacking: i ? "normal" : void 0,
|
|
139
148
|
borderWidth: 1,
|
|
140
149
|
borderColor: "var(--color-background)"
|
|
141
150
|
},
|
|
@@ -153,7 +162,7 @@ const u = (i) => {
|
|
|
153
162
|
}
|
|
154
163
|
}
|
|
155
164
|
},
|
|
156
|
-
series:
|
|
165
|
+
series: f
|
|
157
166
|
};
|
|
158
167
|
return {
|
|
159
168
|
...r,
|
|
@@ -167,9 +176,9 @@ const u = (i) => {
|
|
|
167
176
|
...r.xAxis,
|
|
168
177
|
...Array.isArray(o?.xAxis) ? {} : o?.xAxis
|
|
169
178
|
},
|
|
170
|
-
yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((
|
|
179
|
+
yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((y) => ({
|
|
171
180
|
...r.yAxis,
|
|
172
|
-
...
|
|
181
|
+
...y
|
|
173
182
|
})) : {
|
|
174
183
|
...r.yAxis,
|
|
175
184
|
...o?.yAxis
|
|
@@ -197,5 +206,5 @@ const u = (i) => {
|
|
|
197
206
|
};
|
|
198
207
|
};
|
|
199
208
|
export {
|
|
200
|
-
|
|
209
|
+
C as getBaseChartOptions
|
|
201
210
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import * as a from "@radix-ui/react-dialog";
|
|
4
4
|
import { ChevronRight as v, Cross as L } from "impact-nova-icons";
|
|
5
|
-
import {
|
|
5
|
+
import { wrapRadixPart as y, createCompoundPart as b } from "../../../lib/primitives/create-compound.js";
|
|
6
6
|
import { cn as g } from "../../../lib/utils.js";
|
|
7
7
|
import { useImpactNovaI18n as R } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
8
|
import { Tooltip as N, TooltipTrigger as S, TooltipContent as C } from "../tooltip/tooltip.js";
|
|
@@ -6,7 +6,7 @@ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive
|
|
|
6
6
|
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
7
7
|
} & React.RefAttributes<HTMLOListElement>>;
|
|
8
8
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & import('class-variance-authority').VariantProps<(props?: ({
|
|
9
|
-
variant?: "default" | "
|
|
9
|
+
variant?: "default" | "basic" | "destructive" | "unstyled" | "basic-success" | "basic-info" | "basic-warning" | "basic-error" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
11
11
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const toastVariants: (props?: ({
|
|
2
|
-
variant?: "default" | "
|
|
2
|
+
variant?: "default" | "basic" | "destructive" | "unstyled" | "basic-success" | "basic-info" | "basic-warning" | "basic-error" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FilterPanelHeaderProps, FilterPanelProps, FilterPanelSidebarProps, FilterPanelFooterProps } from './filter-panel.types';
|
|
3
3
|
declare const FilterPanelHeader: ({ title, children, className, }: FilterPanelHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const FilterPanel: ({ open, onOpenChange, title, children, header, sidebar, className, preventClose, }: FilterPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const FilterPanel: ({ open, onOpenChange, title, description, children, header, sidebar, className, preventClose, }: FilterPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const FilterPanelSidebar: ({ items, activeTab, onTabChange, className, }: FilterPanelSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare const FilterPanelBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const FilterPanelFooter: ({ children, className, leftAction, }: FilterPanelFooterProps) => import("react/jsx-runtime").JSX.Element;
|