@hybridcore/ui 1.5.89 → 1.6.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 (267) hide show
  1. package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
  2. package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
  3. package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
  4. package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
  5. package/dist/AxisRendererY-C_ItLPNV.js +445 -0
  6. package/dist/Box-p6OtTUEo.js +30 -0
  7. package/dist/Bullet-DVczI2TD.js +41 -0
  8. package/dist/Button-CcsPEIDh.js +35 -0
  9. package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
  10. package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
  11. package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
  12. package/dist/CategoryAxis-CwnfaGc8.js +458 -0
  13. package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
  14. package/dist/Circle-Cy5s-pVc.js +27 -0
  15. package/dist/ColorSet-C7vpNXhM.js +2957 -0
  16. package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
  17. package/dist/DataProcessor-CHDO51q4.js +83 -0
  18. package/dist/DateAxis-YX3QNIB-.js +569 -0
  19. package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
  20. package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
  21. package/dist/FormControl-BLbrq4C7.js +1636 -0
  22. package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
  23. package/dist/Hierarchy-Bihj0S61.js +925 -0
  24. package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
  25. package/dist/IconPlus-yPkff_Vj.js +19 -0
  26. package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
  27. package/dist/Legend-Dp_MKfS4.js +178 -0
  28. package/dist/LineSeries-Uiv5o56b.js +472 -0
  29. package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
  30. package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
  31. package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
  32. package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
  33. package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
  34. package/dist/PieSeries-B2fW3z0s.js +693 -0
  35. package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
  36. package/dist/Scrollbar-D86MJyr2.js +171 -0
  37. package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
  38. package/dist/Slice-B19rbYDZ.js +261 -0
  39. package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
  40. package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
  41. package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
  42. package/dist/Tick-2bcLyHpF.js +162 -0
  43. package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
  44. package/dist/Vector-BmuhQO4p.js +3606 -0
  45. package/dist/Vector-DfTqQEln.js +1735 -0
  46. package/dist/WKT-2wsDT-nq.js +2310 -0
  47. package/dist/XYCursor-C8WktvKM.js +362 -0
  48. package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
  49. package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
  50. package/dist/capitalize-ciszXJ7R.js +9 -0
  51. package/dist/components/access/helpers.js +1 -1
  52. package/dist/components/access/index.js +1 -1
  53. package/dist/components/card/index.js +6 -6
  54. package/dist/components/card/styled.js +1 -1
  55. package/dist/components/charts/_common/utils.js +20 -0
  56. package/dist/components/charts/candlestick/logic.js +170 -140
  57. package/dist/components/charts/chart-wrapper/helpers.js +27 -0
  58. package/dist/components/charts/chart-wrapper/index.js +44 -0
  59. package/dist/components/charts/chart-wrapper/logic.js +47 -0
  60. package/dist/components/charts/chart-wrapper/styled.js +44 -0
  61. package/dist/components/charts/column-line-mix/index.js +10 -0
  62. package/dist/components/charts/column-line-mix/logic.js +162 -0
  63. package/dist/components/charts/column-line-mix/styled.js +12 -0
  64. package/dist/components/charts/drill-down-treemap/index.js +10 -0
  65. package/dist/components/charts/drill-down-treemap/logic.js +391 -0
  66. package/dist/components/charts/drill-down-treemap/styled.js +12 -0
  67. package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
  68. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
  69. package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
  70. package/dist/components/charts/heatmap/index.js +10 -0
  71. package/dist/components/charts/heatmap/logic.js +361 -0
  72. package/dist/components/charts/heatmap/styled.js +12 -0
  73. package/dist/components/charts/highlighting-line-data/logic.js +89 -256
  74. package/dist/components/charts/line/index.js +10 -0
  75. package/dist/components/charts/line/logic.js +148 -0
  76. package/dist/components/charts/line/styled.js +12 -0
  77. package/dist/components/charts/logaritmic-scale/index.js +10 -0
  78. package/dist/components/charts/logaritmic-scale/logic.js +119 -0
  79. package/dist/components/charts/logaritmic-scale/styled.js +12 -0
  80. package/dist/components/charts/multiple-value-axes/index.js +10 -0
  81. package/dist/components/charts/multiple-value-axes/logic.js +191 -0
  82. package/dist/components/charts/multiple-value-axes/styled.js +12 -0
  83. package/dist/components/charts/nested-pie/index.js +10 -0
  84. package/dist/components/charts/nested-pie/logic.js +110 -0
  85. package/dist/components/charts/nested-pie/styled.js +12 -0
  86. package/dist/components/charts/packed-circles/index.js +10 -0
  87. package/dist/components/charts/packed-circles/logic.js +423 -0
  88. package/dist/components/charts/packed-circles/styled.js +12 -0
  89. package/dist/components/charts/pie-chart/index.js +10 -0
  90. package/dist/components/charts/pie-chart/logic.js +70 -0
  91. package/dist/components/charts/pie-chart/styled.js +12 -0
  92. package/dist/components/charts/stacked-area-radar/index.js +10 -0
  93. package/dist/components/charts/stacked-area-radar/logic.js +868 -0
  94. package/dist/components/charts/stacked-area-radar/styled.js +12 -0
  95. package/dist/components/charts/stacked-column-chart/index.js +10 -0
  96. package/dist/components/charts/stacked-column-chart/logic.js +148 -0
  97. package/dist/components/charts/stacked-column-chart/styled.js +12 -0
  98. package/dist/components/charts/xy-chart/index.js +10 -0
  99. package/dist/components/charts/xy-chart/logic.js +170 -0
  100. package/dist/components/charts/xy-chart/styled.js +12 -0
  101. package/dist/components/collapsible-card/index.js +58 -32
  102. package/dist/components/collapsible-card/logic.js +20 -0
  103. package/dist/components/collapsible-card/styled.js +52 -0
  104. package/dist/components/confirm/dialog.js +3 -3
  105. package/dist/components/confirm/index.js +1 -1
  106. package/dist/components/container/index.js +7 -7
  107. package/dist/components/context-menu/index.js +153 -253
  108. package/dist/components/data-map/components/controls/index.js +12 -0
  109. package/dist/components/data-map/components/controls/styled.js +34 -0
  110. package/dist/components/data-map/index.js +51 -0
  111. package/dist/components/data-map/logic.js +108 -0
  112. package/dist/components/data-map/styled.js +32 -0
  113. package/dist/components/data-security-selectors/security-level/index.js +5 -5
  114. package/dist/components/date-picker-with-custom-range/index.js +9 -0
  115. package/dist/components/date-picker-with-custom-range/logic.js +66 -0
  116. package/dist/components/date-picker-with-custom-range/styled.js +43 -0
  117. package/dist/components/divider/index.js +18 -0
  118. package/dist/components/divider/logic.js +13 -0
  119. package/dist/components/divider/styled.js +14 -0
  120. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  121. package/dist/components/geometry-picker/edit/index.js +1 -1
  122. package/dist/components/geometry-picker/geometry/index.js +1 -1
  123. package/dist/components/geometry-picker/index.js +7 -8
  124. package/dist/components/geometry-picker/kml/index.js +1 -1
  125. package/dist/components/geometry-picker/map/index.js +1 -1
  126. package/dist/components/geometry-picker/map/logic.js +65 -62
  127. package/dist/components/geometry-picker/map/style.js +1 -1
  128. package/dist/components/heat-map/components/controls/index.js +12 -0
  129. package/dist/components/heat-map/components/controls/styled.js +34 -0
  130. package/dist/components/heat-map/components/legend/index.js +26 -0
  131. package/dist/components/heat-map/components/legend/styled.js +14 -0
  132. package/dist/components/heat-map/index.js +37 -0
  133. package/dist/components/heat-map/logic.js +1945 -0
  134. package/dist/components/heat-map/styled.js +32 -0
  135. package/dist/components/icon-button/index.js +22 -15
  136. package/dist/components/icon-button/logic.js +15 -0
  137. package/dist/components/icon-button/styled.js +22 -10
  138. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  139. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
  140. package/dist/components/instance-form/components/variable/index.js +8 -8
  141. package/dist/components/instance-form/components/variables/index.js +1 -1
  142. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  143. package/dist/components/instance-variable-list/index.js +34 -29
  144. package/dist/components/instance-variable-list/styled.js +21 -21
  145. package/dist/components/instance-variable-list/variable.js +44 -74
  146. package/dist/components/linear-indicator/index.js +10 -67
  147. package/dist/components/linear-indicator/logic.js +47 -0
  148. package/dist/components/linear-indicator/styled.js +39 -40
  149. package/dist/components/map/helpers/kml.js +1 -1
  150. package/dist/components/map/helpers/mapbox.js +14 -14
  151. package/dist/components/map/helpers/ol.js +23 -19
  152. package/dist/components/map/helpers/wkt.js +26 -1314
  153. package/dist/components/map/index.js +1 -1
  154. package/dist/components/map/logic.js +113 -101
  155. package/dist/components/map/styled.js +39 -31
  156. package/dist/components/metric-card/MetricChart.js +50 -498
  157. package/dist/components/metric-card/index.js +94 -115
  158. package/dist/components/metric-card/logic.js +70 -131
  159. package/dist/components/object-profile-card/components/avatar/index.js +44 -0
  160. package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
  161. package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
  162. package/dist/components/object-profile-card/index.js +90 -0
  163. package/dist/components/object-profile-card/logic.js +33 -0
  164. package/dist/components/object-profile-card/styled.js +48 -0
  165. package/dist/components/paginated-list/index.js +93 -89
  166. package/dist/components/paginated-list/logic.js +51 -40
  167. package/dist/components/paginated-list/styled.js +25 -21
  168. package/dist/components/property-mapping/index.js +2 -2
  169. package/dist/components/prr-map/components/controls/index.js +12 -0
  170. package/dist/components/prr-map/components/controls/styled.js +34 -0
  171. package/dist/components/prr-map/components/legend/index.js +36 -0
  172. package/dist/components/prr-map/components/legend/styled.js +21 -0
  173. package/dist/components/prr-map/index.js +38 -0
  174. package/dist/components/prr-map/logic.js +104 -0
  175. package/dist/components/prr-map/styled.js +32 -0
  176. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  177. package/dist/components/range-selector/components/date-range/index.js +4282 -7
  178. package/dist/components/range-selector/index.js +1 -1
  179. package/dist/components/raster-grid-map/components/controls/index.js +12 -0
  180. package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
  181. package/dist/components/raster-grid-map/components/legend/index.js +14 -0
  182. package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
  183. package/dist/components/raster-grid-map/helpers.js +190 -0
  184. package/dist/components/raster-grid-map/index.js +38 -0
  185. package/dist/components/raster-grid-map/logic.js +172 -0
  186. package/dist/components/raster-grid-map/styled.js +32 -0
  187. package/dist/components/search-input/index.js +62 -140
  188. package/dist/components/search-input/logic.js +43 -0
  189. package/dist/components/search-input/styled.js +33 -0
  190. package/dist/components/simple-pivot-table/index.js +66 -0
  191. package/dist/components/simple-pivot-table/logic.js +51 -0
  192. package/dist/components/simple-pivot-table/styled.js +45 -0
  193. package/dist/components/static-text/index.js +18 -0
  194. package/dist/components/static-text/logic.js +13 -0
  195. package/dist/components/static-text/styled.js +45 -0
  196. package/dist/components/tabs/index.js +56 -2160
  197. package/dist/components/tabs/logic.js +36 -0
  198. package/dist/components/tabs/styled.js +94 -16
  199. package/dist/components/tabs/tab-panel.js +11 -10
  200. package/dist/components/template-filters/components/tab-panel/index.js +1 -1
  201. package/dist/components/template-form/components/property-list/index.js +7 -7
  202. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  203. package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
  204. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  205. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  206. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  207. package/dist/components/template-form/index.js +5 -5
  208. package/dist/components/template-property-filters/property.js +5 -5
  209. package/dist/components/timeline/index.js +61 -0
  210. package/dist/components/timeline/logic.js +40 -0
  211. package/dist/components/timeline/styled.js +48 -0
  212. package/dist/components/tree-select/index.js +5 -5
  213. package/dist/components/treeview-filter/item-label/index.js +3 -3
  214. package/dist/constant-BiOGvlZc.js +21 -0
  215. package/dist/createReactComponent-C7L-DMHj.js +60 -0
  216. package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
  217. package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
  218. package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
  219. package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
  220. package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
  221. package/dist/index-BMS1Otro.js +183 -0
  222. package/dist/index-C__OZmYy.js +663 -0
  223. package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
  224. package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
  225. package/dist/index-syTc6m_V.js +1934 -0
  226. package/dist/index.es-CHNMhaMi.js +2067 -0
  227. package/dist/index.esm-BLLrbTzY.js +318 -0
  228. package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
  229. package/dist/main.d.ts +1226 -358
  230. package/dist/main.js +141 -443
  231. package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
  232. package/dist/ol-yOE-NV0X.js +7465 -0
  233. package/dist/path-CNVruS--.js +84 -0
  234. package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
  235. package/dist/styled-eZwjUruw.js +12 -0
  236. package/dist/useId-B4-oF9Mq.js +34 -0
  237. package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
  238. package/dist/useThemeProps-BzzHcQyd.js +58 -0
  239. package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
  240. package/package.json +42 -9
  241. package/dist/AxisRendererY-kADUad00.js +0 -18370
  242. package/dist/Box-B1AVyJ_s.js +0 -71
  243. package/dist/DateAxis-CMum47iz.js +0 -924
  244. package/dist/Input-CoIrGZAh.js +0 -326
  245. package/dist/InputLabel-CBuAYyuT.js +0 -1367
  246. package/dist/LineSeries-CfcpoYla.js +0 -549
  247. package/dist/OutlinedInput-B-iZoc9l.js +0 -450
  248. package/dist/Tabs-Cn42Z5QI.js +0 -789
  249. package/dist/components/collapsible-card/style.js +0 -49
  250. package/dist/components/profile-card/index.js +0 -80
  251. package/dist/components/profile-card/logic.js +0 -33
  252. package/dist/components/profile-card/styled.js +0 -43
  253. package/dist/components/tabs/appleTabs.style.js +0 -55
  254. package/dist/createStyled-BGx1I94c.js +0 -352
  255. package/dist/createTheme-CyC5HawC.js +0 -879
  256. package/dist/exactProp-cjT0t_Pt.js +0 -36
  257. package/dist/extendSxProp-FEpqY5_S.js +0 -30
  258. package/dist/index-DMSHuq6l.js +0 -688
  259. package/dist/index-SpeaLUQD.js +0 -10963
  260. package/dist/ol-lGwSyEIV.js +0 -15050
  261. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  262. package/dist/ownerWindow-niciwP7I.js +0 -7
  263. package/dist/styled-B8ugzvji.js +0 -12
  264. package/dist/useId-BHG98T5I.js +0 -26
  265. package/dist/useTheme-C15Eq8KG.js +0 -18
  266. package/dist/useTheme-D-uii9iX.js +0 -10
  267. package/dist/useThemeProps-DRP1dikX.js +0 -95
@@ -0,0 +1,12 @@
1
+ import { styled as t, Box as a } from "@mui/material";
2
+ const e = t(a, {
3
+ name: "HCStackedAreaRadar",
4
+ slot: "Root",
5
+ shouldForwardProp: (o) => o !== "ownerState"
6
+ })(() => ({
7
+ width: "100%",
8
+ height: "100%"
9
+ }));
10
+ export {
11
+ e as StackedAreaRadarRoot
12
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useStackedColumnChartLogic as m } from "./logic.js";
3
+ import { StackedColumnChartRoot as n } from "./styled.js";
4
+ function u(o) {
5
+ const { chartId: r, ownerState: e, sx: i, other: h } = m(o);
6
+ return /* @__PURE__ */ t(n, { ownerState: e, sx: i, ...h, children: /* @__PURE__ */ t("div", { id: r, style: { width: "100%", height: "100%" } }) });
7
+ }
8
+ export {
9
+ u as StackedColumnChart
10
+ };
@@ -0,0 +1,148 @@
1
+ import { R as U, A as q, T as S, L as I } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useThemeProps as N, useTheme as P } from "@mui/material";
3
+ import V from "dayjs";
4
+ import y from "lodash";
5
+ import { useId as H, useRef as _, useEffect as $ } from "react";
6
+ import { colorSetFromPalette as z } from "../_common/utils.js";
7
+ import { c as p, a as u, p as G } from "../../../ColorSet-C7vpNXhM.js";
8
+ import { X as J, V as K } from "../../../AxisRenderer-DTyLLA6c.js";
9
+ import { A as Q, a as W } from "../../../AxisRendererY-C_ItLPNV.js";
10
+ import { C as R } from "../../../CategoryAxis-CwnfaGc8.js";
11
+ import { L as Z } from "../../../Legend-Dp_MKfS4.js";
12
+ import { C as ee } from "../../../ColumnSeries-CjgdJ2QL.js";
13
+ import { B as te } from "../../../Bullet-DVczI2TD.js";
14
+ const xe = (L) => {
15
+ const A = N({
16
+ props: L,
17
+ name: "HCStackedColumnChart"
18
+ }), {
19
+ dimensions: m,
20
+ values: d,
21
+ data: w,
22
+ initDelay: D = 0,
23
+ baseInterval: f,
24
+ colors: C,
25
+ sx: O,
26
+ ...B
27
+ } = A, n = P(), k = `hc-stacked-column-chart-${H().replace(/:/g, "")}`, h = _(null);
28
+ $(() => {
29
+ let x;
30
+ return x = setTimeout(() => {
31
+ var X, F;
32
+ if (m.length < 2) {
33
+ console.error("StackedColumnChart requires at least 2 dimensions");
34
+ return;
35
+ }
36
+ if (d.length < 1) {
37
+ console.error("StackedColumnChart requires at least 1 value");
38
+ return;
39
+ }
40
+ const e = U.new(k);
41
+ h.current = e, e.setThemes([q.new(e)]), e.interfaceColors.setAll({
42
+ text: p(n.palette.text.primary),
43
+ grid: p(n.palette.divider),
44
+ stroke: p(n.palette.divider)
45
+ });
46
+ const s = e.container.children.push(
47
+ J.new(e, {
48
+ panX: !1,
49
+ panY: !1,
50
+ wheelX: "none",
51
+ wheelY: "none",
52
+ layout: e.verticalLayout
53
+ })
54
+ );
55
+ s.set("colors", z(e, C)), s.get("colors", {}).set("step", 2);
56
+ const Y = Q.new(e, {});
57
+ Y.grid.template.setAll({ location: 1 });
58
+ const o = m[0], M = m[1];
59
+ let i, c = w;
60
+ if (o.type === "date") {
61
+ const t = (f == null ? void 0 : f.timeUnit) || "day";
62
+ let a = "DD/MM/YYYY";
63
+ t === "month" ? a = "MM YYYY" : t === "year" && (a = "YYYY"), i = s.xAxes.push(
64
+ R.new(e, {
65
+ categoryField: o.value,
66
+ renderer: Y,
67
+ tooltip: S.new(e, {})
68
+ })
69
+ ), c = y.orderBy(c, [o.value]), c = c.map((r) => ({
70
+ ...r,
71
+ [o.value]: V(r[o.value]).format(a)
72
+ }));
73
+ } else
74
+ i = s.xAxes.push(
75
+ R.new(e, {
76
+ categoryField: o.value,
77
+ renderer: Y,
78
+ tooltip: S.new(e, {})
79
+ })
80
+ );
81
+ const l = [], g = y.groupBy(c, M.value);
82
+ Object.keys(g).forEach((t) => {
83
+ g[t].forEach((a) => {
84
+ const r = a[o.value], v = y.findIndex(l, { [o.value]: r });
85
+ v === -1 ? l.push({
86
+ [o.value]: r,
87
+ [t]: a[d[0].dataFieldName]
88
+ }) : l[v] = {
89
+ ...l[v],
90
+ [t]: a[d[0].dataFieldName]
91
+ };
92
+ });
93
+ }), i.data.setAll(l);
94
+ const T = s.yAxes.push(
95
+ K.new(e, {
96
+ min: 0,
97
+ renderer: W.new(e, { strokeOpacity: 0.1 })
98
+ })
99
+ ), b = s.children.push(
100
+ Z.new(e, {
101
+ centerX: u,
102
+ x: u
103
+ })
104
+ );
105
+ (X = i.get("renderer")) == null || X.grid.template.setAll({
106
+ stroke: p(n.palette.divider),
107
+ strokeOpacity: 1
108
+ }), (F = T.get("renderer")) == null || F.grid.template.setAll({
109
+ stroke: p(n.palette.divider),
110
+ strokeOpacity: 1
111
+ });
112
+ function j(t, a) {
113
+ const r = s.series.push(
114
+ ee.new(e, {
115
+ name: t,
116
+ stacked: !0,
117
+ xAxis: i,
118
+ yAxis: T,
119
+ valueYField: a,
120
+ categoryXField: o.value
121
+ })
122
+ );
123
+ r.columns.template.setAll({
124
+ tooltipText: "{name}, {categoryX}: {valueY}",
125
+ tooltipY: G(10)
126
+ }), r.data.setAll(l), r.appear(), r.bullets.push(function() {
127
+ return te.new(e, {
128
+ sprite: I.new(e, {
129
+ fill: e.interfaceColors.get("alternativeText"),
130
+ centerY: u,
131
+ centerX: u,
132
+ populateText: !0
133
+ })
134
+ });
135
+ }), b.data.push(r);
136
+ }
137
+ Object.keys(g).forEach((t) => j(t, t)), s.appear(1e3, 100);
138
+ }, D), () => {
139
+ var e;
140
+ x && clearTimeout(x), (e = h.current) == null || e.dispose(), h.current = null;
141
+ };
142
+ }, [w, m, d, n.palette.mode, C]);
143
+ const E = { ...A };
144
+ return { chartId: k, ownerState: E, sx: O, other: B };
145
+ };
146
+ export {
147
+ xe as useStackedColumnChartLogic
148
+ };
@@ -0,0 +1,12 @@
1
+ import { styled as t, Box as r } from "@mui/material";
2
+ const a = t(r, {
3
+ name: "HCStackedColumnChart",
4
+ slot: "Root",
5
+ shouldForwardProp: (o) => o !== "ownerState"
6
+ })(() => ({
7
+ width: "100%",
8
+ height: "100%"
9
+ }));
10
+ export {
11
+ a as StackedColumnChartRoot
12
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useXYChartLogic as m } from "./logic.js";
3
+ import { XYChartRoot as n } from "./styled.js";
4
+ function s(r) {
5
+ const { chartId: o, ownerState: i, sx: e, other: h } = m(r);
6
+ return /* @__PURE__ */ t(n, { ownerState: i, sx: e, ...h, children: /* @__PURE__ */ t("div", { id: o, style: { width: "100%", height: "100%" } }) });
7
+ }
8
+ export {
9
+ s as XYChart
10
+ };
@@ -0,0 +1,170 @@
1
+ import { R as E, A as I, T as x, b as P, L as W } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useThemeProps as G, useTheme as N } from "@mui/material";
3
+ import g from "lodash";
4
+ import { useId as V, useRef as j, useEffect as z } from "react";
5
+ import { colorSetFromPalette as H } from "../_common/utils.js";
6
+ import { c as l, a as w, p as M } from "../../../ColorSet-C7vpNXhM.js";
7
+ import { X as U, V as _ } from "../../../AxisRenderer-DTyLLA6c.js";
8
+ import { L as $ } from "../../../Legend-Dp_MKfS4.js";
9
+ import { D as q } from "../../../DateAxis-YX3QNIB-.js";
10
+ import { A as D, a as J } from "../../../AxisRendererY-C_ItLPNV.js";
11
+ import { C as K } from "../../../CategoryAxis-CwnfaGc8.js";
12
+ import { C as Q } from "../../../ColumnSeries-CjgdJ2QL.js";
13
+ import { D as Z } from "../../../DataProcessor-CHDO51q4.js";
14
+ import { B as ee } from "../../../Bullet-DVczI2TD.js";
15
+ const xe = (X) => {
16
+ const y = G({ props: X, name: "HCXYChart" }), {
17
+ dimensions: c,
18
+ values: m,
19
+ data: d,
20
+ initDelay: k = 0,
21
+ baseInterval: F,
22
+ colors: A,
23
+ sx: L,
24
+ ...R
25
+ } = y, n = N(), v = `hc-xy-chart-${V().replace(/:/g, "")}`, u = j(null);
26
+ z(() => {
27
+ let f;
28
+ return f = setTimeout(() => {
29
+ var T, Y;
30
+ const e = E.new(v);
31
+ u.current = e, e.setThemes([I.new(e)]), e.interfaceColors.setAll({
32
+ text: l(n.palette.text.primary),
33
+ grid: l(n.palette.divider),
34
+ stroke: l(n.palette.divider)
35
+ });
36
+ const o = e.container.children.push(
37
+ U.new(e, {
38
+ panX: !1,
39
+ panY: !1,
40
+ wheelX: "none",
41
+ wheelY: "none",
42
+ layout: e.verticalLayout
43
+ })
44
+ );
45
+ o.set("colors", H(e, A));
46
+ const B = o.children.push(
47
+ $.new(e, {
48
+ centerX: w,
49
+ x: w
50
+ })
51
+ );
52
+ if (c.length < 1) {
53
+ console.error("Missing dimensions config!");
54
+ return;
55
+ }
56
+ const a = c[0];
57
+ let s, p = d;
58
+ if (a.type === "date")
59
+ s = o.xAxes.push(
60
+ q.new(e, {
61
+ maxDeviation: 0,
62
+ baseInterval: F || { timeUnit: "day", count: 1 },
63
+ renderer: D.new(e, { minGridDistance: 60 }),
64
+ tooltip: x.new(e, {})
65
+ })
66
+ ), p = g.orderBy(d, [a.value]);
67
+ else {
68
+ const t = D.new(e, {
69
+ cellStartLocation: 0.1,
70
+ cellEndLocation: 0.9,
71
+ minGridDistance: 30
72
+ });
73
+ s = o.xAxes.push(
74
+ K.new(e, {
75
+ categoryField: a.value,
76
+ renderer: t,
77
+ tooltip: x.new(e, {})
78
+ })
79
+ ), t.grid.template.setAll({ location: 1 }), s.labelsContainer.set(
80
+ "tooltip",
81
+ x.new(e, { pointerOrientation: "down" })
82
+ ), t.labels.template.setAll({
83
+ oversizedBehavior: "truncate",
84
+ maxWidth: 150,
85
+ tooltipText: "{category}"
86
+ }), t.labels.template.setup = function(r) {
87
+ r.set(
88
+ "background",
89
+ P.new(e, {
90
+ fill: l(0),
91
+ fillOpacity: 0
92
+ })
93
+ );
94
+ }, s.onPrivate("cellWidth", function(r) {
95
+ t.labels.template.set("maxWidth", r);
96
+ }), e.numberFormatter.setAll({
97
+ numberFormat: "#",
98
+ numericFields: ["valueX"]
99
+ }), s.data.setAll(p);
100
+ }
101
+ const b = o.yAxes.push(
102
+ _.new(e, {
103
+ renderer: J.new(e, { strokeOpacity: 0.1 })
104
+ })
105
+ );
106
+ (T = s.get("renderer")) == null || T.grid.template.setAll({
107
+ stroke: l(n.palette.divider),
108
+ strokeOpacity: 1
109
+ }), (Y = b.get("renderer")) == null || Y.grid.template.setAll({
110
+ stroke: l(n.palette.divider),
111
+ strokeOpacity: 1
112
+ });
113
+ function C(t, r, h, S) {
114
+ const i = o.series.push(
115
+ Q.new(e, {
116
+ name: t,
117
+ xAxis: s,
118
+ yAxis: b,
119
+ valueYField: S,
120
+ ...a.type === "date" ? { valueXField: h } : { categoryXField: h }
121
+ })
122
+ );
123
+ i.columns.template.setAll({
124
+ tooltipText: "{name}, {categoryX}:{valueY}",
125
+ width: M(90),
126
+ tooltipY: 0,
127
+ strokeOpacity: 0
128
+ }), a.type === "date" && (i.data.processor = Z.new(e, {
129
+ dateFormat: "i",
130
+ dateFields: [h]
131
+ })), i.data.setAll(r), i.appear(), i.bullets.push(function() {
132
+ return ee.new(e, {
133
+ locationY: 0,
134
+ sprite: W.new(e, {
135
+ text: "{valueY}",
136
+ fill: e.interfaceColors.get("alternativeText"),
137
+ centerY: 0,
138
+ centerX: w,
139
+ populateText: !0
140
+ })
141
+ });
142
+ }), B.data.push(i);
143
+ }
144
+ if (c.length === 1)
145
+ m.forEach((t) => {
146
+ C(t.name, p, a.value, t.dataFieldName);
147
+ });
148
+ else {
149
+ const t = g.groupBy(p, c[1].value);
150
+ Object.keys(t).forEach((r) => {
151
+ C(
152
+ g.startCase(r),
153
+ t[r],
154
+ a.value,
155
+ m[0].dataFieldName
156
+ );
157
+ });
158
+ }
159
+ o.appear(1e3, 100);
160
+ }, k), () => {
161
+ var e;
162
+ f && clearTimeout(f), (e = u.current) == null || e.dispose(), u.current = null;
163
+ };
164
+ }, [d, c, m, n.palette.mode, A]);
165
+ const O = { ...y };
166
+ return { chartId: v, ownerState: O, sx: L, other: R };
167
+ };
168
+ export {
169
+ xe as useXYChartLogic
170
+ };
@@ -0,0 +1,12 @@
1
+ import { styled as t, Box as r } from "@mui/material";
2
+ const h = t(r, {
3
+ name: "HCXYChart",
4
+ slot: "Root",
5
+ shouldForwardProp: (o) => o !== "ownerState"
6
+ })(() => ({
7
+ width: "100%",
8
+ height: "100%"
9
+ }));
10
+ export {
11
+ h as XYChartRoot
12
+ };
@@ -1,34 +1,60 @@
1
- import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
- import { Box as r } from "@mui/material";
3
- import { Container as a } from "../container/index.js";
4
- import { Accordion as o, AccordionSummary as i, AccordionDetails as t } from "./style.js";
5
- const h = (e) => /* @__PURE__ */ n(
6
- a,
7
- {
8
- disableHeader: !0,
9
- sx: { marginTop: 1, borderRadius: "13px", ...e.sx },
10
- contentSx: {
11
- p: "0 !important",
12
- m: 0,
13
- "& .MuiPaper-root": { borderRadius: "13px" }
14
- },
15
- children: /* @__PURE__ */ d(
16
- o,
17
- {
18
- defaultExpanded: e.defaultExpanded,
19
- expanded: e.expanded,
20
- onChange: e.onChange,
21
- children: [
22
- /* @__PURE__ */ d(i, { "aria-controls": "panel1d-content", id: "panel1d-header", children: [
23
- /* @__PURE__ */ n(r, { children: e.header }),
24
- /* @__PURE__ */ n(r, { children: e.actions })
25
- ] }),
26
- /* @__PURE__ */ n(t, { children: e.content })
27
- ]
28
- }
29
- )
30
- }
31
- );
1
+ import i, { jsx as r, jsxs as n } from "react/jsx-runtime";
2
+ import { r as c, i as l } from "../../createSvgIcon-BjpIhJ30.js";
3
+ import { Container as u } from "../container/index.js";
4
+ import { useCollapsibleCardLogic as s } from "./logic.js";
5
+ import { Accordion as x, AccordionSummary as m, SummaryHeader as f, SummaryActions as h, AccordionDetails as S } from "./styled.js";
6
+ var a = {}, p = l;
7
+ Object.defineProperty(a, "__esModule", {
8
+ value: !0
9
+ });
10
+ var o = a.default = void 0, v = p(c()), C = i;
11
+ o = a.default = (0, v.default)(/* @__PURE__ */ (0, C.jsx)("path", {
12
+ d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
13
+ }), "ArrowForwardIosSharp");
14
+ const A = { marginTop: 1, borderRadius: "13px" }, b = {
15
+ p: "0 !important",
16
+ m: 0,
17
+ "& .MuiPaper-root": { borderRadius: "13px" }
18
+ }, w = (e) => {
19
+ const { state: d } = s(e), { ownerState: t } = d;
20
+ return /* @__PURE__ */ r(
21
+ u,
22
+ {
23
+ disableHeader: !0,
24
+ sx: [
25
+ A,
26
+ ...Array.isArray(e.sx) ? e.sx : [e.sx]
27
+ ],
28
+ contentSx: b,
29
+ children: /* @__PURE__ */ n(
30
+ x,
31
+ {
32
+ disableGutters: !0,
33
+ elevation: 0,
34
+ square: !0,
35
+ defaultExpanded: e.defaultExpanded,
36
+ expanded: e.expanded,
37
+ onChange: e.onChange,
38
+ children: [
39
+ /* @__PURE__ */ n(
40
+ m,
41
+ {
42
+ expandIcon: /* @__PURE__ */ r(o, { sx: { fontSize: 12 } }),
43
+ "aria-controls": "panel1d-content",
44
+ id: "panel1d-header",
45
+ children: [
46
+ /* @__PURE__ */ r(f, { ownerState: t, children: e.header }),
47
+ /* @__PURE__ */ r(h, { ownerState: t, children: e.actions })
48
+ ]
49
+ }
50
+ ),
51
+ /* @__PURE__ */ r(S, { children: e.content })
52
+ ]
53
+ }
54
+ )
55
+ }
56
+ );
57
+ };
32
58
  export {
33
- h as CollapsibleCard
59
+ w as CollapsibleCard
34
60
  };
@@ -0,0 +1,20 @@
1
+ import { useThemeProps as o } from "@mui/material";
2
+ const s = (n) => {
3
+ const e = o({ props: n, name: "HCCollapsibleCard" }), a = {
4
+ header: e.header,
5
+ content: e.content,
6
+ actions: e.actions,
7
+ expanded: e.expanded,
8
+ defaultExpanded: e.defaultExpanded,
9
+ sx: e.sx,
10
+ onChange: e.onChange
11
+ };
12
+ return {
13
+ refs: {},
14
+ state: { ownerState: a },
15
+ actions: {}
16
+ };
17
+ };
18
+ export {
19
+ s as useCollapsibleCardLogic
20
+ };
@@ -0,0 +1,52 @@
1
+ import { styled as a, Box as e } from "@mui/material";
2
+ import { A as n, a as t, b as i } from "../../AccordionSummary-DgAwVTk8.js";
3
+ const r = (o) => o !== "ownerState", m = a(n, {
4
+ name: "HCCollapsibleCard",
5
+ slot: "accordion"
6
+ })({
7
+ "&:not(:last-child)": {
8
+ borderBottom: 0
9
+ },
10
+ "&:before": {
11
+ display: "none"
12
+ }
13
+ }), d = a(t, {
14
+ name: "HCCollapsibleCard",
15
+ slot: "summary"
16
+ })(({ theme: o }) => ({
17
+ fontSize: "14px",
18
+ minHeight: "auto",
19
+ height: 44,
20
+ flexDirection: "row-reverse",
21
+ "& .MuiAccordionSummary-expandIconWrapper.Mui-expanded": {
22
+ transform: "rotate(90deg)"
23
+ },
24
+ "& .MuiAccordionSummary-content": {
25
+ display: "flex",
26
+ margin: o.spacing(1),
27
+ marginRight: 0,
28
+ justifyContent: "space-between",
29
+ alignItems: "center"
30
+ }
31
+ })), l = a(i, {
32
+ name: "HCCollapsibleCard",
33
+ slot: "details"
34
+ })(({ theme: o }) => ({
35
+ padding: o.spacing(2),
36
+ paddingTop: 0
37
+ })), p = a(e, {
38
+ name: "HCCollapsibleCard",
39
+ slot: "summaryHeader",
40
+ shouldForwardProp: r
41
+ })({}), C = a(e, {
42
+ name: "HCCollapsibleCard",
43
+ slot: "summaryActions",
44
+ shouldForwardProp: r
45
+ })({});
46
+ export {
47
+ m as Accordion,
48
+ l as AccordionDetails,
49
+ d as AccordionSummary,
50
+ C as SummaryActions,
51
+ p as SummaryHeader
52
+ };
@@ -2,9 +2,9 @@ import "react/jsx-runtime";
2
2
  import "react-confirm";
3
3
  import "@mui/material";
4
4
  import "@mui/icons-material";
5
- import "../../DialogContent-CqTojymQ.js";
6
- import { a as f } from "../../dialog-BE4D6swf.js";
7
- import "../../Button-eqWvpDuh.js";
5
+ import "../../DialogContent-B3nbEbuv.js";
6
+ import { a as f } from "../../dialog-DcwXug9J.js";
7
+ import "../../Button-CvE2gnly.js";
8
8
  export {
9
9
  f as default
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import { createConfirmation as r } from "react-confirm";
2
- import { a as i } from "../../dialog-BE4D6swf.js";
2
+ import { a as i } from "../../dialog-DcwXug9J.js";
3
3
  const o = r(i);
4
4
  function f(t, n, e = {
5
5
  cancelButtonText: "Cancel",
@@ -1,13 +1,13 @@
1
1
  import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
2
  import { _ as g, a as i } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
3
3
  import * as T from "react";
4
- import { P as e } from "../../index-DMSHuq6l.js";
5
- import { g as N, u as P, c as x, b as S, a as H } from "../../useThemeProps-DRP1dikX.js";
6
- import { s as h } from "../../styled-B8ugzvji.js";
7
- import { g as R } from "../../createTheme-CNnKNxwL.js";
8
- import { P as E } from "../../Paper-CjqLScHA.js";
9
- import { T as b } from "../../Typography-D1t7XuLN.js";
10
- import { C as $ } from "../../CardContent-DsYqqPeJ.js";
4
+ import { P as e } from "../../index-C__OZmYy.js";
5
+ import { g as N, u as P, c as x, b as S, a as H } from "../../useThemeProps-BzzHcQyd.js";
6
+ import { s as h } from "../../styled-eZwjUruw.js";
7
+ import { g as R } from "../../createTheme-DYxDnE9u.js";
8
+ import { P as E } from "../../Paper-2B03OBmZ.js";
9
+ import { T as b } from "../../Typography-CxbneZy_.js";
10
+ import { C as $ } from "../../CardContent-CSHh-ZlM.js";
11
11
  function k(r) {
12
12
  return R("MuiCard", r);
13
13
  }