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.
Files changed (204) hide show
  1. package/README.md +27 -25
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +28 -1
  3. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +0 -3
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +31 -38
  5. package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
  6. package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +22 -0
  8. package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +20 -0
  9. package/dist/components/data/ag-grid-react/chat/chat-column.js +81 -0
  10. package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +10 -0
  11. package/dist/components/data/ag-grid-react/chat/chat-composer.js +352 -0
  12. package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +17 -0
  13. package/dist/components/data/ag-grid-react/chat/chat-constants.js +22 -0
  14. package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +41 -0
  15. package/dist/components/data/ag-grid-react/chat/chat-format.js +94 -0
  16. package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +10 -0
  17. package/dist/components/data/ag-grid-react/chat/chat-host.js +651 -0
  18. package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +13 -0
  19. package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +2 -0
  20. package/dist/components/data/ag-grid-react/chat/chat-html.js +40 -0
  21. package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +13 -0
  22. package/dist/components/data/ag-grid-react/chat/chat-identity.js +24 -0
  23. package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +13 -0
  24. package/dist/components/data/ag-grid-react/chat/chat-menu.js +15 -0
  25. package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +17 -0
  26. package/dist/components/data/ag-grid-react/chat/chat-notify.js +124 -0
  27. package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +13 -0
  28. package/dist/components/data/ag-grid-react/chat/chat-persist.js +34 -0
  29. package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +13 -0
  30. package/dist/components/data/ag-grid-react/chat/chat-priority.js +79 -0
  31. package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +2 -0
  32. package/dist/components/data/ag-grid-react/chat/chat-summaries.js +24 -0
  33. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +72 -0
  34. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +713 -0
  35. package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +6 -0
  36. package/dist/components/data/ag-grid-react/chat/chat-toggle.js +25 -0
  37. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +13 -0
  38. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +26 -0
  39. package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +14 -0
  40. package/dist/components/data/ag-grid-react/chat/chat-window.js +82 -0
  41. package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +91 -0
  42. package/dist/components/data/ag-grid-react/chat/chat-workspace.js +555 -0
  43. package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +319 -0
  44. package/dist/components/data/ag-grid-react/chat/index.d.ts +6 -0
  45. package/dist/components/data/ag-grid-react/chat/index.js +24 -0
  46. package/dist/components/data/ag-grid-react/chat.story-data.d.ts +34 -0
  47. package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +4 -0
  48. package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +4 -0
  49. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +6 -0
  50. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +29 -0
  51. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +8 -0
  52. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +18 -0
  53. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +18 -0
  54. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +16 -0
  55. package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +11 -0
  56. package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +26 -0
  57. package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +12 -0
  58. package/dist/components/data/ag-grid-react/comments/comments-constants.js +21 -0
  59. package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +20 -0
  60. package/dist/components/data/ag-grid-react/comments/comments-format.js +49 -0
  61. package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +14 -0
  62. package/dist/components/data/ag-grid-react/comments/comments-generation.js +18 -0
  63. package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +10 -0
  64. package/dist/components/data/ag-grid-react/comments/comments-host.js +343 -0
  65. package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +18 -0
  66. package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +7 -0
  67. package/dist/components/data/ag-grid-react/comments/comments-identity.js +20 -0
  68. package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +29 -0
  69. package/dist/components/data/ag-grid-react/comments/comments-menu.js +35 -0
  70. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +22 -0
  71. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +98 -0
  72. package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +21 -0
  73. package/dist/components/data/ag-grid-react/comments/comments-overlay.js +406 -0
  74. package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +9 -0
  75. package/dist/components/data/ag-grid-react/comments/comments-panel.js +272 -0
  76. package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +11 -0
  77. package/dist/components/data/ag-grid-react/comments/comments-persist.js +19 -0
  78. package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +11 -0
  79. package/dist/components/data/ag-grid-react/comments/comments-reveal.js +31 -0
  80. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +18 -0
  81. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +22 -0
  82. package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +10 -0
  83. package/dist/components/data/ag-grid-react/comments/comments-window.js +62 -0
  84. package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +178 -0
  85. package/dist/components/data/ag-grid-react/comments/index.d.ts +5 -0
  86. package/dist/components/data/ag-grid-react/comments/index.js +15 -0
  87. package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +25 -0
  88. package/dist/components/data/ag-grid-react/comments.story-data.d.ts +37 -0
  89. package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +11 -0
  90. package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +21 -0
  91. package/dist/components/data/ag-grid-react/grid-cell-address.js +21 -0
  92. package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +34 -0
  93. package/dist/components/data/ag-grid-react/grid-row-reveal.js +33 -0
  94. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +75 -65
  95. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
  96. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
  97. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
  98. package/dist/components/data/ag-grid-react/headers/header-search-input.js +122 -119
  99. package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +2 -1
  100. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +25 -20
  101. package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
  102. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  103. package/dist/components/data/ag-grid-react/index.js +481 -254
  104. package/dist/components/data/ag-grid-react/notes/index.d.ts +2 -0
  105. package/dist/components/data/ag-grid-react/notes/index.js +1 -0
  106. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +25 -0
  107. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +32 -0
  108. package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +2 -0
  109. package/dist/components/data/ag-grid-react/notes/notes-constants.js +4 -0
  110. package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +12 -0
  111. package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +7 -0
  112. package/dist/components/data/ag-grid-react/nova-system-column.d.ts +7 -0
  113. package/dist/components/data/ag-grid-react/nova-system-column.js +18 -0
  114. package/dist/components/data/ag-grid-react/theme.js +6 -2
  115. package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +4 -0
  116. package/dist/components/data/ag-grid-react/value-formatters.d.ts +0 -19
  117. package/dist/components/data/ag-grid-react/value-formatters.js +88 -90
  118. package/dist/components/data/data-table/build-column-tree-from-grid.js +14 -13
  119. package/dist/components/data/data-table/data-table-column-def-pin.js +34 -31
  120. package/dist/components/data/data-table/data-table-context.js +5 -5
  121. package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
  122. package/dist/components/data/data-table/data-table-sheet.js +2 -1
  123. package/dist/components/data-display/calendar/calendar-config.js +22 -21
  124. package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
  125. package/dist/components/data-display/calendar/calendar-day-picker-view.js +36 -35
  126. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
  127. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +50 -62
  128. package/dist/components/data-display/calendar/calendar.js +138 -137
  129. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +23 -22
  130. package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +1 -0
  131. package/dist/components/data-display/calendar/use-calendar-i18n.js +10 -9
  132. package/dist/components/data-display/chart/chart.js +72 -72
  133. package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
  134. package/dist/components/data-display/chart/chart.utils.js +40 -31
  135. package/dist/components/feedback/sheet/sheet.js +1 -1
  136. package/dist/components/feedback/toast/toast.d.ts +1 -1
  137. package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
  138. package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
  139. package/dist/components/flows/filter-panel/filter-panel.js +65 -64
  140. package/dist/components/flows/filter-panel/filter-panel.types.d.ts +1 -0
  141. package/dist/components/forms/date-picker/date-picker.js +125 -126
  142. package/dist/components/forms/date-picker/date-range-picker.js +191 -192
  143. package/dist/components/forms/date-picker/multi-date-picker.js +66 -67
  144. package/dist/components/forms/date-picker/multi-week-picker.js +82 -83
  145. package/dist/components/forms/date-picker/use-picker-i18n.d.ts +6 -0
  146. package/dist/components/forms/date-picker/use-picker-i18n.js +11 -0
  147. package/dist/components/forms/date-picker/week-picker.js +146 -147
  148. package/dist/components/forms/date-picker/week-range-picker.js +158 -159
  149. package/dist/components/ui/local-raster-icons/message3d.webp.js +4 -0
  150. package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +1 -0
  151. package/dist/components/ui/local-raster-icons/rasterIcons.js +27 -25
  152. package/dist/form-react/Fields/WeekRangePicker.js +16 -16
  153. package/dist/form-react/fields.d.ts +0 -3
  154. package/dist/form-react/fields.js +29 -35
  155. package/dist/i18n/defaultMessages.d.ts +144 -0
  156. package/dist/i18n/defaultMessages.js +161 -19
  157. package/dist/i18n/format/collator.d.ts +1 -0
  158. package/dist/i18n/format/collator.js +7 -0
  159. package/dist/i18n/format/date-pattern.d.ts +5 -0
  160. package/dist/i18n/format/date-pattern.js +20 -0
  161. package/dist/i18n/format/format-date.d.ts +9 -0
  162. package/dist/i18n/format/format-date.js +56 -0
  163. package/dist/i18n/format/format-number.d.ts +20 -0
  164. package/dist/i18n/format/format-number.js +68 -0
  165. package/dist/i18n/format/formatter-cache.d.ts +9 -0
  166. package/dist/i18n/format/formatter-cache.js +66 -0
  167. package/dist/i18n/format/index.d.ts +6 -0
  168. package/dist/i18n/format/parse-number.d.ts +6 -0
  169. package/dist/i18n/format/parse-number.js +53 -0
  170. package/dist/i18n/getDateFnsLocale.d.ts +5 -4
  171. package/dist/i18n/getDateFnsLocale.js +46 -16
  172. package/dist/i18n/i18n.types.d.ts +13 -0
  173. package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
  174. package/dist/i18n/impact-nova-i18n-context.js +33 -25
  175. package/dist/i18n/impact-nova-i18n-defaults.js +8 -6
  176. package/dist/i18n/index.d.ts +4 -1
  177. package/dist/i18n/index.js +41 -16
  178. package/dist/i18n/locale-config.d.ts +28 -0
  179. package/dist/i18n/locale-config.js +32 -0
  180. package/dist/i18n/locales/de.js +142 -0
  181. package/dist/i18n/locales/es.js +142 -0
  182. package/dist/i18n/locales/hi.js +142 -0
  183. package/dist/i18n/locales/kn.js +142 -0
  184. package/dist/i18n/week-start.d.ts +6 -0
  185. package/dist/i18n/week-start.js +30 -0
  186. package/dist/impact-nova-components.css +249 -0
  187. package/dist/impact-nova-tokens.scss +6 -0
  188. package/dist/impact-nova.css +1 -1
  189. package/dist/index.d.ts +1 -1
  190. package/dist/index.js +624 -601
  191. package/dist/llms/index.js +26 -2
  192. package/dist/llms/rules/ag-grid.js +1 -1
  193. package/dist/llms/rules/best-practices.js +1 -1
  194. package/dist/llms/rules/data-table-chat.js +1 -0
  195. package/dist/llms/rules/data-table-comments.js +1 -0
  196. package/dist/llms/rules/data-table-notes.js +1 -0
  197. package/dist/llms/rules/installation.js +1 -1
  198. package/dist/llms/rules/migration.js +1 -1
  199. package/dist/llms/rules/real-world-patterns.js +1 -1
  200. package/dist/llms/rules/requirements.js +1 -1
  201. package/dist/llms/rules/troubleshooting.js +1 -1
  202. package/dist/providers/app-providers.d.ts +3 -1
  203. package/dist/providers/app-providers.js +22 -11
  204. package/package.json +13 -1
@@ -1,41 +1,41 @@
1
- import { jsx as s, jsxs as b } from "react/jsx-runtime";
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 f } from "../../../lib/utils.js";
4
+ import { cn as d } from "../../../lib/utils.js";
5
5
  import { Skeleton as q } from "../skeleton/skeleton.js";
6
- import { Collapse as j, Expand as B } from "impact-nova-icons";
7
- import { Button as P } from "../../primitives/button/button.js";
8
- import { getInitializedHighcharts as T } from "./initializeHighcharts.js";
9
- import { getBaseChartOptions as O } from "./chart.utils.js";
10
- import { resolveHighchartsOptions as M } from "./resolve-highcharts-options.js";
11
- import { useImpactNovaI18n as V } from "../../../i18n/use-impact-nova-i18n.js";
12
- const R = T(), S = t.createContext(null), A = () => {
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
- }, H = t.forwardRef(
18
- ({ className: n, children: r, isLoading: l = !1, ...c }, u) => {
19
- const a = t.useRef(null), o = t.useRef(null), [m, h] = t.useState(null), [d, p] = t.useState(!1), [g, C] = t.useState(!1), w = t.useCallback((e) => {
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 x = () => {
23
+ const E = () => {
24
24
  const e = a.current;
25
- e && (C(!0), e.classList.add("fullscreen-animating"), setTimeout(() => {
26
- e.requestFullscreen ? e.requestFullscreen() : "webkitRequestFullscreen" in e ? e.webkitRequestFullscreen() : "msRequestFullscreen" in e && e.msRequestFullscreen(), p(!0), e.classList.remove("fullscreen-animating");
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
- }, v = () => {
28
+ }, x = () => {
29
29
  const e = a.current;
30
- e && (C(!0), e.classList.add("fullscreen-animating-out"), setTimeout(() => {
31
- document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen && document.msExitFullscreen(), p(!1), e.classList.remove("fullscreen-animating-out");
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
- }, E = () => {
34
- d ? v() : x();
33
+ }, F = () => {
34
+ p ? x() : E();
35
35
  };
36
36
  return t.useEffect(() => {
37
37
  const e = () => {
38
- document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || p(!1);
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 i = null;
50
- const L = () => {
51
- d && a.current ? (i && cancelAnimationFrame(i), i = requestAnimationFrame(() => {
52
- const F = a.current;
53
- if (!F) return;
54
- const y = F.getBoundingClientRect(), k = F.querySelector('[class*="ChartContent"]');
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
- i = null;
60
+ c = null;
61
61
  })) : (e.setSize(null, null, !1), e.reflow());
62
62
  };
63
- return window.addEventListener("resize", L), () => {
64
- i && cancelAnimationFrame(i), window.removeEventListener("resize", L);
63
+ return window.addEventListener("resize", f), () => {
64
+ c && cancelAnimationFrame(c), window.removeEventListener("resize", f);
65
65
  };
66
- }, [d]), /* @__PURE__ */ s(
66
+ }, [p]), /* @__PURE__ */ s(
67
67
  S.Provider,
68
68
  {
69
69
  value: {
70
- isExpanded: d,
71
- toggleFullscreen: E,
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: w,
80
+ ref: v,
81
81
  "data-component": "chart",
82
- className: f(
82
+ className: d(
83
83
  n,
84
84
  "w-full relative bg-canvas-elevated transition-all duration-200 ease-in-out",
85
- d && "fixed inset-0 z-50 h-screen w-screen p-4 bg-canvas flex flex-col",
86
- g && "overflow-hidden"
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
- ...c,
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
- H.displayName = "ChartContainer";
96
+ I.displayName = "ChartContainer";
97
97
  const W = t.forwardRef(
98
- ({ className: n, children: r, ...l }, c) => /* @__PURE__ */ s("div", { ref: c, className: f("flex items-center justify-between mb-4", n), ...l, children: r })
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: f("text-lg font-semibold leading-none tracking-tight", n), ...r })
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: f("flex items-center gap-2", n), ...r })
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: c } = V(), { toggleFullscreen: u, isExpanded: a } = A(), o = c("aria.toggleFullscreen");
112
- return /* @__PURE__ */ b(
113
- P,
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: f("h-8 w-8", n),
119
+ className: d("h-8 w-8", n),
120
120
  "aria-label": o,
121
121
  ...r,
122
122
  children: [
123
- a ? /* @__PURE__ */ s(j, { className: "h-4 w-4" }) : /* @__PURE__ */ s(B, { className: "h-4 w-4" }),
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 I = t.forwardRef(
132
- ({ className: n, children: r, loader: l, ...c }, u) => {
133
- const { isLoading: a, chartComponentRef: o, isExpanded: m } = A();
134
- return a && l ? /* @__PURE__ */ s("div", { ref: u, className: f(n, "w-full relative flex items-center justify-center flex-1 min-h-[300px]", m && "min-h-0"), ...c, children: l }) : /* @__PURE__ */ b("div", { ref: u, className: f(n, "w-full relative flex-1 min-h-[300px]", m && "min-h-0"), ...c, children: [
135
- a && /* @__PURE__ */ b("div", { className: "absolute inset-0 z-10 bg-canvas/50 flex flex-col gap-2 p-4", children: [
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
- I.displayName = "ChartContent";
143
+ j.displayName = "ChartContent";
144
144
  const K = t.forwardRef(
145
145
  (n, r) => {
146
146
  const {
147
147
  height: l,
148
- width: c,
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: d,
155
- ...p
156
- } = n, g = t.useContext(S), [C, w] = t.useState(null), x = t.useCallback((i) => {
157
- w(i);
158
- }, []), v = t.useMemo(() => {
159
- const i = O({ title: m, ...p });
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
- ...i,
161
+ ...f,
162
162
  chart: {
163
- ...i.chart,
163
+ ...f.chart,
164
164
  height: l ?? null,
165
- width: c ?? null
165
+ width: i ?? null
166
166
  }
167
167
  };
168
- }, [m, l, c, p]), E = g?.containerElement ?? C, e = M(v, E);
169
- return h ? /* @__PURE__ */ s("div", { ref: x, className: "h-full w-full", children: /* @__PURE__ */ s(
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: e,
173
+ options: c,
174
174
  ref: r,
175
175
  containerProps: { style: { height: "100%", width: "100%" } }
176
176
  }
177
- ) }) : g ? /* @__PURE__ */ s(
177
+ ) }) : C ? /* @__PURE__ */ s(
178
178
  N,
179
179
  {
180
180
  highcharts: R,
181
- options: e,
181
+ options: c,
182
182
  ref: r,
183
183
  containerProps: { style: { height: "100%", width: "100%" } }
184
184
  }
185
- ) : /* @__PURE__ */ s(H, { className: u, isLoading: a, children: /* @__PURE__ */ s(I, { loader: o, children: /* @__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: e,
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
- H as ChartContainer,
201
- I as ChartContent,
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 g } from "./chart-palette.js";
2
- const u = (i) => {
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: l = "column",
5
- title: a,
6
- subtitle: s,
7
- xAxisCategories: n,
8
- xAxisTitle: e,
9
- yAxisTitle: d,
10
- series: c,
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: t,
13
- is3D: p,
14
- showLegend: f = !0,
15
- showTooltip: y = !0
16
- } = i, r = {
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: l,
24
+ type: s,
19
25
  backgroundColor: "transparent",
20
26
  style: {
21
27
  fontFamily: "Manrope, sans-serif"
22
28
  },
23
- options3d: p ? {
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: a ?? "",
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: s,
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: n,
58
- title: e ? {
59
- text: e,
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: d,
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: f,
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: y,
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: [...g],
138
+ colors: [...x],
130
139
  plotOptions: {
131
140
  column: {
132
141
  borderRadius: 4,
133
- stacking: t ? "normal" : void 0,
142
+ stacking: i ? "normal" : void 0,
134
143
  borderWidth: 0
135
144
  },
136
145
  bar: {
137
146
  borderRadius: 4,
138
- stacking: t ? "normal" : void 0,
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: c
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((b) => ({
179
+ yAxis: Array.isArray(o?.yAxis) ? o?.yAxis.map((y) => ({
171
180
  ...r.yAxis,
172
- ...b
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
- u as getBaseChartOptions
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 { createCompoundPart as b, wrapRadixPart as y } from "../../../lib/primitives/create-compound.js";
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" | "destructive" | "basic" | "unstyled" | "basic-success" | "basic-info" | "basic-warning" | "basic-error" | null | undefined;
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" | "destructive" | "basic" | "unstyled" | "basic-success" | "basic-info" | "basic-warning" | "basic-error" | null | undefined;
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;