@hybridcore/ui 1.6.1 → 1.6.2

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 (231) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/Button-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1054 -330
  194. package/dist/main.js +163 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -1,10 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useHeatmapLogic as a } from "./logic.js";
3
- import { HeatmapRoot as p } from "./styled.js";
4
- function d(o) {
5
- const { chartId: r, ownerState: e, sx: i, other: m } = a(o);
6
- return /* @__PURE__ */ t(p, { ownerState: e, sx: i, ...m, children: /* @__PURE__ */ t("div", { id: r, style: { width: "100%", height: "100%" } }) });
7
- }
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ChartError as p } from "../_common/chart-error.js";
3
+ import { useHeatmapLogic as s } from "./logic.js";
4
+ import { HeatmapRoot as h } from "./styled.js";
5
+ const g = (o) => {
6
+ const { chartId: e, ownerState: m, sx: a, error: t, other: i } = s(o);
7
+ return /* @__PURE__ */ r(h, { ownerState: m, sx: a, ...i, children: t ? /* @__PURE__ */ r(p, { message: t }) : /* @__PURE__ */ r("div", { id: e, style: { width: "100%", height: "100%" } }) });
8
+ };
8
9
  export {
9
- d as Heatmap
10
+ g as Heatmap
10
11
  };
@@ -1,16 +1,16 @@
1
- import { m as Q, s as Z, C as D, L as $, k as ee, l as te, T as J, R as re, A as ae } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as ie, useTheme as se } from "@mui/material";
3
- import oe from "dayjs";
4
- import Y from "lodash";
5
- import { useId as ne, useRef as le, useEffect as ce } from "react";
6
- import { colorSetFromPalette as ue } from "../_common/utils.js";
7
- import { E as K, e as he, f as G, u as F, m as W, b as p, p as H, c as O } from "../../../ColorSet-C7vpNXhM.js";
8
- import { X as de } from "../../../AxisRenderer-DTyLLA6c.js";
9
- import { A as me, a as pe } from "../../../AxisRendererY-C_ItLPNV.js";
10
- import { C as X } from "../../../CategoryAxis-CwnfaGc8.js";
11
- import { R as fe } from "../../../RoundedRectangle-CWLi2PXn.js";
12
- import { C as ge } from "../../../ColumnSeries-CjgdJ2QL.js";
13
- class T extends K {
1
+ import { m as Z, s as ee, C as F, L as W, k as te, l as re, T as K, R as ae, A as ie } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useThemeProps as se, useTheme as oe } from "@mui/material";
3
+ import ne from "dayjs";
4
+ import O from "lodash";
5
+ import { useId as le, useRef as ce, useEffect as ue } from "react";
6
+ import { colorSetFromPalette as he } from "../_common/utils.js";
7
+ import { E as Q, e as de, f as H, u as P, m as J, b as f, p as B, c as D } from "../../../ColorSet-C7vpNXhM.js";
8
+ import { X as me } from "../../../AxisRenderer-DTyLLA6c.js";
9
+ import { A as pe, a as fe } from "../../../AxisRendererY-C_ItLPNV.js";
10
+ import { C as G } from "../../../CategoryAxis-CwnfaGc8.js";
11
+ import { R as ge } from "../../../RoundedRectangle-CWLi2PXn.js";
12
+ import { C as be } from "../../../ColumnSeries-CjgdJ2QL.js";
13
+ class T extends Q {
14
14
  _afterNew() {
15
15
  super._afterNewApplyThemes();
16
16
  }
@@ -33,12 +33,12 @@ class T extends K {
33
33
  const s = this.get("target");
34
34
  if (s) {
35
35
  let e = s.globalBounds();
36
- const r = i.toLocal({ x: e.left, y: e.top }), l = i.toLocal({ x: e.right, y: e.top }), o = i.toLocal({ x: e.right, y: e.bottom }), a = i.toLocal({ x: e.left, y: e.bottom });
36
+ const r = i.toLocal({ x: e.left, y: e.top }), n = i.toLocal({ x: e.right, y: e.top }), o = i.toLocal({ x: e.right, y: e.bottom }), a = i.toLocal({ x: e.left, y: e.bottom });
37
37
  return {
38
- left: Math.min(r.x, l.x, o.x, a.x),
39
- top: Math.min(r.y, l.y, o.y, a.y),
40
- right: Math.max(r.x, l.x, o.x, a.x),
41
- bottom: Math.max(r.y, l.y, o.y, a.y)
38
+ left: Math.min(r.x, n.x, o.x, a.x),
39
+ top: Math.min(r.y, n.y, o.y, a.y),
40
+ right: Math.max(r.x, n.x, o.x, a.x),
41
+ bottom: Math.max(r.y, n.y, o.y, a.y)
42
42
  };
43
43
  }
44
44
  return i._display.getLocalBounds();
@@ -54,83 +54,83 @@ Object.defineProperty(T, "classNames", {
54
54
  enumerable: !0,
55
55
  configurable: !0,
56
56
  writable: !0,
57
- value: K.classNames.concat([T.className])
57
+ value: Q.classNames.concat([T.className])
58
58
  });
59
- class P extends T {
59
+ class V extends T {
60
60
  /**
61
61
  * @ignore
62
62
  */
63
63
  getFill(i) {
64
64
  const s = this.get("rotation", 0);
65
- let e = this.getBounds(i), r = e.left || 0, l = e.right || 0, o = e.top || 0, a = e.bottom || 0, m = Q(s), f = Z(s), c = m * (l - r), u = f * (a - o);
66
- c == 0 && (c = 1), u == 0 && (u = 1);
67
- let h = Math.max(c, u);
68
- const g = this._root._renderer.createLinearGradient(r, o, r + h * m, o + h * f), A = this.get("stops");
69
- if (A) {
70
- let C = 0;
71
- he(A, (t) => {
72
- let d = t.offset;
73
- G(d) || (d = C / (A.length - 1));
74
- let v = t.opacity;
75
- G(v) || (v = 1);
76
- let n = t.color;
77
- if (n) {
78
- const w = t.lighten;
79
- w && (n = F.lighten(n, w));
80
- const b = t.brighten;
81
- b && (n = F.brighten(n, b)), g.addColorStop(d, "rgba(" + n.r + "," + n.g + "," + n.b + "," + v + ")");
65
+ let e = this.getBounds(i), r = e.left || 0, n = e.right || 0, o = e.top || 0, a = e.bottom || 0, p = Z(s), g = ee(s), l = p * (n - r), c = g * (a - o);
66
+ l == 0 && (l = 1), c == 0 && (c = 1);
67
+ let u = Math.max(l, c);
68
+ const b = this._root._renderer.createLinearGradient(r, o, r + u * p, o + u * g), v = this.get("stops");
69
+ if (v) {
70
+ let N = 0;
71
+ de(v, (y) => {
72
+ let t = y.offset;
73
+ H(t) || (t = N / (v.length - 1));
74
+ let h = y.opacity;
75
+ H(h) || (h = 1);
76
+ let m = y.color;
77
+ if (m) {
78
+ const d = y.lighten;
79
+ d && (m = P.lighten(m, d));
80
+ const C = y.brighten;
81
+ C && (m = P.brighten(m, C)), b.addColorStop(t, "rgba(" + m.r + "," + m.g + "," + m.b + "," + h + ")");
82
82
  }
83
- C++;
83
+ N++;
84
84
  });
85
85
  }
86
- return g;
86
+ return b;
87
87
  }
88
88
  }
89
- Object.defineProperty(P, "className", {
89
+ Object.defineProperty(V, "className", {
90
90
  enumerable: !0,
91
91
  configurable: !0,
92
92
  writable: !0,
93
93
  value: "LinearGradient"
94
94
  });
95
- Object.defineProperty(P, "classNames", {
95
+ Object.defineProperty(V, "classNames", {
96
96
  enumerable: !0,
97
97
  configurable: !0,
98
98
  writable: !0,
99
- value: T.classNames.concat([P.className])
99
+ value: T.classNames.concat([V.className])
100
100
  });
101
- class V extends D {
101
+ class j extends F {
102
102
  constructor() {
103
103
  super(...arguments), Object.defineProperty(this, "labelContainer", {
104
104
  enumerable: !0,
105
105
  configurable: !0,
106
106
  writable: !0,
107
- value: this.children.push(D.new(this._root, {}))
107
+ value: this.children.push(F.new(this._root, {}))
108
108
  }), Object.defineProperty(this, "markerContainer", {
109
109
  enumerable: !0,
110
110
  configurable: !0,
111
111
  writable: !0,
112
- value: this.children.push(D.new(this._root, {}))
112
+ value: this.children.push(F.new(this._root, {}))
113
113
  }), Object.defineProperty(this, "startLabel", {
114
114
  enumerable: !0,
115
115
  configurable: !0,
116
116
  writable: !0,
117
- value: this.labelContainer.children.push($.new(this._root, { themeTags: ["start"] }))
117
+ value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["start"] }))
118
118
  }), Object.defineProperty(this, "endLabel", {
119
119
  enumerable: !0,
120
120
  configurable: !0,
121
121
  writable: !0,
122
- value: this.labelContainer.children.push($.new(this._root, { themeTags: ["end"] }))
122
+ value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["end"] }))
123
123
  }), Object.defineProperty(this, "markers", {
124
124
  enumerable: !0,
125
125
  configurable: !0,
126
126
  writable: !0,
127
- value: this.addDisposer(new ee(te.new({}), () => fe._new(this._root, {
128
- themeTags: W(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
127
+ value: this.addDisposer(new te(re.new({}), () => ge._new(this._root, {
128
+ themeTags: J(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
129
129
  }, [this.markers.template])))
130
130
  });
131
131
  }
132
132
  _afterNew() {
133
- this._settings.themeTags = W(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", J.new(this._root, {
133
+ this._settings.themeTags = J(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", K.new(this._root, {
134
134
  themeTags: ["heatlegend"]
135
135
  }));
136
136
  }
@@ -152,98 +152,92 @@ class V extends D {
152
152
  */
153
153
  showValue(i, s, e) {
154
154
  const r = this.getTooltip();
155
- if (r && G(i)) {
156
- const l = this.get("startValue", 0), o = this.get("endValue", 1);
157
- let a = (i - l) / (o - l);
155
+ if (r && H(i)) {
156
+ const n = this.get("startValue", 0), o = this.get("endValue", 1);
157
+ let a = (i - n) / (o - n);
158
158
  (a == 1 / 0 || a == -1 / 0 || isNaN(a)) && (a = 0.5);
159
- const m = this.get("startColor"), f = this.get("endColor");
160
- s || (s = this.getNumberFormatter().format(i)), e || (e = F.interpolate(a, m, f)), r.label.set("text", s);
161
- let c;
162
- this.get("orientation") == "vertical" ? c = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - a) }) : c = this.markerContainer.toGlobal({ x: this.innerWidth() * a, y: 0 });
163
- let u = r.get("background");
164
- u && u.set("fill", e), r.set("pointTo", c), r.show();
159
+ const p = this.get("startColor"), g = this.get("endColor");
160
+ s || (s = this.getNumberFormatter().format(i)), e || (e = P.interpolate(a, p, g)), r.label.set("text", s);
161
+ let l;
162
+ this.get("orientation") == "vertical" ? l = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - a) }) : l = this.markerContainer.toGlobal({ x: this.innerWidth() * a, y: 0 });
163
+ let c = r.get("background");
164
+ c && c.set("fill", e), r.set("pointTo", l), r.show();
165
165
  }
166
166
  }
167
167
  _prepareChildren() {
168
168
  super._prepareChildren();
169
- const i = this.labelContainer, s = this.get("orientation"), e = this.startLabel, r = this.endLabel, l = this.getTooltip();
170
- if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: p }), this.set("layout", this._root.horizontalLayout), e.setAll({ y: p, x: void 0, centerY: p, centerX: p }), r.setAll({ y: 0, x: void 0, centerY: 0, centerX: p }), i.setAll({ height: p, width: void 0 }), l && l.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: p }), this.set("layout", this._root.verticalLayout), e.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), r.setAll({ x: p, y: void 0, centerX: p, centerY: 0 }), i.setAll({ width: p, height: void 0 }), l && l.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
171
- const o = this.get("stepCount", 1), a = this.get("startColor"), m = this.get("endColor"), f = this.get("startOpacity", 1), c = this.get("endOpacity", 1);
169
+ const i = this.labelContainer, s = this.get("orientation"), e = this.startLabel, r = this.endLabel, n = this.getTooltip();
170
+ if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: f }), this.set("layout", this._root.horizontalLayout), e.setAll({ y: f, x: void 0, centerY: f, centerX: f }), r.setAll({ y: 0, x: void 0, centerY: 0, centerX: f }), i.setAll({ height: f, width: void 0 }), n && n.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: f }), this.set("layout", this._root.verticalLayout), e.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), r.setAll({ x: f, y: void 0, centerX: f, centerY: 0 }), i.setAll({ width: f, height: void 0 }), n && n.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
171
+ const o = this.get("stepCount", 1), a = this.get("startColor"), p = this.get("endColor"), g = this.get("startOpacity", 1), l = this.get("endOpacity", 1);
172
172
  if (this.markerContainer.children.clear(), o > 1)
173
- for (let u = 0; u < o; u++) {
174
- const h = this.makeMarker();
175
- s == "vertical" ? this.markerContainer.children.moveValue(h, 0) : this.markerContainer.children.push(h), a && m && h.setAll({
176
- fill: F.interpolate(u / o, a, m),
177
- fillOpacity: H(u / o * 100).interpolate(f, c)
173
+ for (let c = 0; c < o; c++) {
174
+ const u = this.makeMarker();
175
+ s == "vertical" ? this.markerContainer.children.moveValue(u, 0) : this.markerContainer.children.push(u), a && p && u.setAll({
176
+ fill: P.interpolate(c / o, a, p),
177
+ fillOpacity: B(c / o * 100).interpolate(g, l)
178
178
  });
179
179
  }
180
180
  else if (o == 1) {
181
- const u = this.makeMarker();
182
- this.markerContainer.children.push(u);
183
- const h = P.new(this._root, {
181
+ const c = this.makeMarker();
182
+ this.markerContainer.children.push(c);
183
+ const u = V.new(this._root, {
184
184
  stops: [{
185
185
  color: a,
186
- opacity: f
186
+ opacity: g
187
187
  }, {
188
- color: m,
189
- opacity: c
188
+ color: p,
189
+ opacity: l
190
190
  }]
191
191
  });
192
192
  if (s == "vertical") {
193
- h.set("rotation", 90);
194
- let g = h.get("stops");
195
- g && g.reverse();
193
+ u.set("rotation", 90);
194
+ let b = u.get("stops");
195
+ b && b.reverse();
196
196
  } else
197
- h.set("rotation", 0);
198
- a && m && u.set("fillGradient", h);
197
+ u.set("rotation", 0);
198
+ a && p && c.set("fillGradient", u);
199
199
  }
200
200
  }
201
201
  (this.isDirty("startText") || this.isDirty("startValue")) && e.set("text", this.get("startText", this.getNumberFormatter().format(this.get("startValue", 0)))), (this.isDirty("endText") || this.isDirty("endValue")) && r.set("text", this.get("endText", this.getNumberFormatter().format(this.get("endValue", 1))));
202
202
  }
203
203
  }
204
- Object.defineProperty(V, "className", {
204
+ Object.defineProperty(j, "className", {
205
205
  enumerable: !0,
206
206
  configurable: !0,
207
207
  writable: !0,
208
208
  value: "HeatLegend"
209
209
  });
210
- Object.defineProperty(V, "classNames", {
210
+ Object.defineProperty(j, "classNames", {
211
211
  enumerable: !0,
212
212
  configurable: !0,
213
213
  writable: !0,
214
- value: D.classNames.concat([V.className])
214
+ value: F.classNames.concat([j.className])
215
215
  });
216
- const Ye = (L) => {
217
- const i = ie({ props: L, name: "HCHeatmap" }), {
216
+ const Oe = (L) => {
217
+ const i = se({ props: L, name: "HCHeatmap" }), {
218
218
  dimensions: s,
219
219
  values: e,
220
220
  data: r,
221
- initDelay: l = 0,
221
+ initDelay: n = 0,
222
222
  baseInterval: o,
223
223
  colors: a,
224
- sx: m,
225
- ...f
226
- } = i, c = se(), h = `hc-heatmap-${ne().replace(/:/g, "")}`, g = le(null);
227
- ce(() => {
228
- let C;
229
- return C = setTimeout(() => {
230
- var I, E;
231
- if (s.length < 2) {
232
- console.error("Heatmap requires at least 2 dimensions");
233
- return;
234
- }
235
- if (e.length < 1) {
236
- console.error("Heatmap requires at least 1 value");
237
- return;
238
- }
239
- const t = re.new(h);
240
- g.current = t, t.setThemes([ae.new(t)]), t.interfaceColors.setAll({
241
- text: O(c.palette.text.primary),
242
- grid: O(c.palette.divider),
243
- stroke: O(c.palette.divider)
224
+ sx: p,
225
+ ...g
226
+ } = i, l = oe(), u = `hc-heatmap-${le().replace(/:/g, "")}`, b = ce(null);
227
+ let v = null;
228
+ s.length < 2 ? v = "Heatmap requires at least 2 dimensions" : e.length < 1 && (v = "Heatmap requires at least 1 value"), ue(() => {
229
+ if (v) return;
230
+ let y;
231
+ return y = setTimeout(() => {
232
+ var E, S;
233
+ const t = ae.new(u);
234
+ b.current = t, t.setThemes([ie.new(t)]), t.interfaceColors.setAll({
235
+ text: D(l.palette.text.primary),
236
+ grid: D(l.palette.divider),
237
+ stroke: D(l.palette.divider)
244
238
  });
245
- const d = t.container.children.push(
246
- de.new(t, {
239
+ const h = t.container.children.push(
240
+ me.new(t, {
247
241
  panX: !1,
248
242
  panY: !1,
249
243
  wheelX: "none",
@@ -251,111 +245,111 @@ const Ye = (L) => {
251
245
  layout: t.verticalLayout
252
246
  })
253
247
  );
254
- d.set("colors", ue(t, a));
255
- const v = me.new(t, {
248
+ h.set("colors", he(t, a));
249
+ const m = pe.new(t, {
256
250
  visible: !1,
257
251
  minGridDistance: 30
258
252
  });
259
- v.grid.template.set("visible", !1);
260
- const n = s[0];
261
- let w, b = r;
262
- if (n.type === "date") {
263
- const y = (o == null ? void 0 : o.timeUnit) || "day";
264
- let k = "DD/MM/YYYY";
265
- y === "month" ? k = "MM YYYY" : y === "year" && (k = "YYYY"), w = d.xAxes.push(
266
- X.new(t, {
267
- categoryField: n.value,
268
- renderer: v
253
+ m.grid.template.set("visible", !1);
254
+ const d = s[0];
255
+ let C, k = r;
256
+ if (d.type === "date") {
257
+ const x = (o == null ? void 0 : o.timeUnit) || "day";
258
+ let A = "DD/MM/YYYY";
259
+ x === "month" ? A = "MM YYYY" : x === "year" && (A = "YYYY"), C = h.xAxes.push(
260
+ G.new(t, {
261
+ categoryField: d.value,
262
+ renderer: m
269
263
  })
270
- ), b = Y.orderBy(r, [n.value]), b = b.map((_) => ({
264
+ ), k = O.orderBy(r, [d.value]), k = k.map((_) => ({
271
265
  ..._,
272
- [n.value]: oe(_[n.value]).format(k)
266
+ [d.value]: ne(_[d.value]).format(A)
273
267
  }));
274
268
  } else
275
- w = d.xAxes.push(
276
- X.new(t, {
277
- categoryField: n.value,
278
- renderer: v,
279
- tooltip: J.new(t, {})
269
+ C = h.xAxes.push(
270
+ G.new(t, {
271
+ categoryField: d.value,
272
+ renderer: m,
273
+ tooltip: K.new(t, {})
280
274
  })
281
275
  );
282
- const B = Y.uniqBy(b, n.value);
283
- if (w.data.setAll(B), e.length === 1 && s.length > 1) {
284
- const y = s[1].value, k = pe.new(t, {
276
+ const I = O.uniqBy(k, d.value);
277
+ if (C.data.setAll(I), e.length === 1 && s.length > 1) {
278
+ const x = s[1].value, A = fe.new(t, {
285
279
  visible: !1,
286
280
  minGridDistance: 20,
287
281
  inversed: !0
288
282
  });
289
- k.grid.template.set("visible", !1);
290
- const _ = d.yAxes.push(
291
- X.new(t, {
283
+ A.grid.template.set("visible", !1);
284
+ const _ = h.yAxes.push(
285
+ G.new(t, {
292
286
  maxDeviation: 0,
293
- renderer: k,
294
- categoryField: y
287
+ renderer: A,
288
+ categoryField: x
295
289
  })
296
- ), S = t.interfaceColors.get("background"), j = d.bottomAxesContainer.children.push(
297
- V.new(t, {
290
+ ), q = t.interfaceColors.get("background"), M = h.bottomAxesContainer.children.push(
291
+ j.new(t, {
298
292
  orientation: "horizontal",
299
- startColor: S,
300
- endColor: (I = d.get("colors")) == null ? void 0 : I.getIndex(0),
293
+ startColor: q,
294
+ endColor: (E = h.get("colors")) == null ? void 0 : E.getIndex(0),
301
295
  startOpacity: 1,
302
296
  endOpacity: 1
303
297
  })
304
- ), x = d.series.push(
305
- ge.new(t, {
298
+ ), w = h.series.push(
299
+ be.new(t, {
306
300
  calculateAggregates: !0,
307
- stroke: O(16777215),
301
+ stroke: D(16777215),
308
302
  clustered: !1,
309
- xAxis: w,
303
+ xAxis: C,
310
304
  yAxis: _,
311
- categoryXField: n.value,
312
- categoryYField: y,
305
+ categoryXField: d.value,
306
+ categoryYField: x,
313
307
  valueField: e[0].dataFieldName
314
308
  })
315
309
  );
316
- x.columns.template.setAll({
310
+ w.columns.template.setAll({
317
311
  tooltipText: "{categoryY}, {categoryX}: {value}",
318
312
  strokeOpacity: 1,
319
313
  strokeWidth: 2,
320
- width: H(100),
321
- height: H(100)
322
- }), x.columns.template.events.on("pointerover", function(R) {
323
- const N = R.target.dataItem;
324
- N && j.showValue(N.get(y, 0));
325
- }), x.events.on("datavalidated", function() {
326
- j.set("startValue", x.getPrivate("valueLow")), j.set("endValue", x.getPrivate("valueHigh"));
327
- }), x.set("heatRules", [
314
+ width: B(100),
315
+ height: B(100)
316
+ }), w.columns.template.events.on("pointerover", function(X) {
317
+ const Y = X.target.dataItem;
318
+ Y && M.showValue(Y.get(x, 0));
319
+ }), w.events.on("datavalidated", function() {
320
+ M.set("startValue", w.getPrivate("valueLow")), M.set("endValue", w.getPrivate("valueHigh"));
321
+ }), w.set("heatRules", [
328
322
  {
329
- target: x.columns.template,
330
- min: S,
331
- max: (E = d.get("colors")) == null ? void 0 : E.getIndex(0),
323
+ target: w.columns.template,
324
+ min: q,
325
+ max: (S = h.get("colors")) == null ? void 0 : S.getIndex(0),
332
326
  dataField: "value",
333
327
  key: "fill"
334
328
  }
335
329
  ]);
336
- const q = Y.uniqBy(b, y), M = [];
337
- B.forEach((R) => {
338
- q.forEach((N) => {
339
- const z = {
340
- [n.value]: R[n.value],
341
- [y]: N[y]
342
- }, U = Y.find(b, z);
343
- U === void 0 ? M.push({
344
- ...z,
330
+ const z = O.uniqBy(k, x), R = [];
331
+ I.forEach((X) => {
332
+ z.forEach((Y) => {
333
+ const U = {
334
+ [d.value]: X[d.value],
335
+ [x]: Y[x]
336
+ }, $ = O.find(k, U);
337
+ $ === void 0 ? R.push({
338
+ ...U,
345
339
  [e[0].dataFieldName]: 0
346
- }) : M.push(U);
340
+ }) : R.push($);
347
341
  });
348
- }), _.data.setAll(q), x.data.setAll(M);
342
+ }), _.data.setAll(z), w.data.setAll(R);
349
343
  }
350
- d.appear(1e3, 100);
351
- }, l), () => {
344
+ h.appear(1e3, 100);
345
+ }, n), () => {
352
346
  var t;
353
- C && clearTimeout(C), (t = g.current) == null || t.dispose(), g.current = null;
347
+ y && clearTimeout(y), (t = b.current) == null || t.dispose(), b.current = null;
354
348
  };
355
- }, [r, s, e, c.palette.mode, a]);
356
- const A = { ...i };
357
- return { chartId: h, ownerState: A, sx: m, other: f };
349
+ }, [r, s, e, l.palette.mode, a]);
350
+ const N = { ...i };
351
+ return { chartId: u, ownerState: N, sx: p, error: v, other: g };
358
352
  };
359
353
  export {
360
- Ye as useHeatmapLogic
354
+ Oe as useHeatmapLogic
361
355
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useHighlightLineChartLogic as g } from "./logic.js";
3
3
  import { HighlightLineChartRoot as c } from "./styled.js";
4
- function u(i) {
4
+ const x = (i) => {
5
5
  const {
6
6
  chartDivRef: n,
7
7
  seriesData: o,
@@ -55,7 +55,7 @@ function u(i) {
55
55
  }
56
56
  )
57
57
  ] });
58
- }
58
+ };
59
59
  export {
60
- u as HighlightLineChart
60
+ x as HighlightLineChart
61
61
  };
@@ -1,10 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useLineChartLogic as n } from "./logic.js";
3
- import { LineChartRoot as m } from "./styled.js";
4
- function s(r) {
5
- const { chartId: o, ownerState: i, sx: e, other: h } = n(r);
6
- return /* @__PURE__ */ t(m, { ownerState: i, sx: e, ...h, children: /* @__PURE__ */ t("div", { id: o, style: { width: "100%", height: "100%" } }) });
7
- }
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ChartError as n } from "../_common/chart-error.js";
3
+ import { useLineChartLogic as s } from "./logic.js";
4
+ import { LineChartRoot as a } from "./styled.js";
5
+ const C = (o) => {
6
+ const { chartId: e, ownerState: i, sx: h, error: t, other: m } = s(o);
7
+ return /* @__PURE__ */ r(a, { ownerState: i, sx: h, ...m, children: t ? /* @__PURE__ */ r(n, { message: t }) : /* @__PURE__ */ r("div", { id: e, style: { width: "100%", height: "100%" } }) });
8
+ };
8
9
  export {
9
- s as LineChart
10
+ C as LineChart
10
11
  };