@hybridcore/ui 1.6.1 → 1.6.3

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 +1066 -328
  194. package/dist/main.js +165 -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,16 +1,16 @@
1
- import { k as N, l as M, R as B, A as I, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useTheme as U, useThemeProps as Z } from "@mui/material";
3
- import q from "lodash";
4
- import { useRef as P, useLayoutEffect as J, useEffect as K } from "react";
5
- import { m as S, e as j, c as X, p as Q } from "../../../ColorSet-C7vpNXhM.js";
6
- import { X as $, V as H } from "../../../AxisRenderer-DTyLLA6c.js";
1
+ import { k as N, l as M, R as B, A as U, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useTheme as Z, useThemeProps as q } from "@mui/material";
3
+ import J from "lodash";
4
+ import { useRef as C, useLayoutEffect as K, useEffect as S } from "react";
5
+ import { m as j, e as H, c as m, p as Q } from "../../../ColorSet-C7vpNXhM.js";
6
+ import { X as $, V as E } from "../../../AxisRenderer-DTyLLA6c.js";
7
7
  import { X as ee } from "../../../XYCursor-C8WktvKM.js";
8
8
  import { D as te } from "../../../DateAxis-YX3QNIB-.js";
9
- import { A as se, a as E } from "../../../AxisRendererY-C_ItLPNV.js";
9
+ import { A as se, a as z } from "../../../AxisRendererY-C_ItLPNV.js";
10
10
  import { C as T } from "../../../ColumnSeries-CjgdJ2QL.js";
11
11
  import { R as W } from "../../../RoundedRectangle-CWLi2PXn.js";
12
- import { D as z } from "../../../DataProcessor-CHDO51q4.js";
13
- class C extends W {
12
+ import { D as I } from "../../../DataProcessor-CHDO51q4.js";
13
+ class A extends W {
14
14
  _beforeChanged() {
15
15
  super._beforeChanged(), (this.isDirty("lowX0") || this.isDirty("lowY0") || this.isDirty("lowX1") || this.isDirty("lowY1") || this.isDirty("highX0") || this.isDirty("highX1") || this.isDirty("highY0") || this.isDirty("highY1")) && (this._clear = !0);
16
16
  }
@@ -20,19 +20,19 @@ class C extends W {
20
20
  e.moveTo(this.get("lowX0", 0), this.get("lowY0", 0)), e.lineTo(this.get("lowX1", 0), this.get("lowY1", 0)), e.moveTo(this.get("highX0", 0), this.get("highY0", 0)), e.lineTo(this.get("highX1", 0), this.get("highY1", 0));
21
21
  }
22
22
  }
23
- Object.defineProperty(C, "className", {
23
+ Object.defineProperty(A, "className", {
24
24
  enumerable: !0,
25
25
  configurable: !0,
26
26
  writable: !0,
27
27
  value: "Candlestick"
28
28
  });
29
- Object.defineProperty(C, "classNames", {
29
+ Object.defineProperty(A, "classNames", {
30
30
  enumerable: !0,
31
31
  configurable: !0,
32
32
  writable: !0,
33
- value: W.classNames.concat([C.className])
33
+ value: W.classNames.concat([A.className])
34
34
  });
35
- class k extends T {
35
+ class F extends T {
36
36
  constructor() {
37
37
  super(...arguments), Object.defineProperty(this, "columns", {
38
38
  enumerable: !0,
@@ -40,8 +40,8 @@ class k extends T {
40
40
  writable: !0,
41
41
  value: this.addDisposer(new N(M.new({
42
42
  themeTags: ["autocolor"]
43
- }), () => C._new(this._root, {
44
- themeTags: S(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
43
+ }), () => A._new(this._root, {
44
+ themeTags: j(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
45
45
  }, [this.columns.template])))
46
46
  });
47
47
  }
@@ -54,105 +54,105 @@ class k extends T {
54
54
  }
55
55
  _updateGraphics(e, i, h) {
56
56
  super._updateGraphics(e, i, h);
57
- const m = this.getRaw("xAxis"), w = this.getRaw("yAxis");
58
- let Y = this.get("vcy", 1), f = this.get("vcx", 1), l, x, r, o, c, u, p, d, s = this.get("locationX", e.get("locationX", 0.5)), g = this.get("locationY", e.get("locationY", 0.5)), y = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", g)), b;
57
+ const Y = this.getRaw("xAxis"), x = this.getRaw("yAxis");
58
+ let y = this.get("vcy", 1), X = this.get("vcx", 1), a, c, r, o, u, g, d, w, s = this.get("locationX", e.get("locationX", 0.5)), p = this.get("locationY", e.get("locationY", 0.5)), f = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", p)), b;
59
59
  if (h == 0) {
60
- let t = w.getDataItemPositionY(e, this._yOpenField, 1, Y), a = w.getDataItemPositionY(e, this._yField, 1, Y);
61
- o = w.getDataItemPositionY(e, this._yLowField, 1, Y), d = w.getDataItemPositionY(e, this._yHighField, 1, Y), p = Math.max(t, a), r = Math.min(t, a);
62
- let v = this._aLocationX0 + y - 0.5, D = this._aLocationX1 + s - 0.5;
63
- l = m.getDataItemPositionX(e, this._xField, v + (D - v) / 2, f), x = l, c = l, u = l, b = "vertical";
60
+ let t = x.getDataItemPositionY(e, this._yOpenField, 1, y), l = x.getDataItemPositionY(e, this._yField, 1, y);
61
+ o = x.getDataItemPositionY(e, this._yLowField, 1, y), w = x.getDataItemPositionY(e, this._yHighField, 1, y), d = Math.max(t, l), r = Math.min(t, l);
62
+ let v = this._aLocationX0 + f - 0.5, D = this._aLocationX1 + s - 0.5;
63
+ a = Y.getDataItemPositionX(e, this._xField, v + (D - v) / 2, X), c = a, u = a, g = a, b = "vertical";
64
64
  } else {
65
- let t = m.getDataItemPositionX(e, this._xOpenField, 1, f), a = m.getDataItemPositionX(e, this._xField, 1, f);
66
- x = m.getDataItemPositionX(e, this._xLowField, 1, f), u = m.getDataItemPositionX(e, this._xHighField, 1, f), c = Math.max(t, a), l = Math.min(t, a);
67
- let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + g - 0.5;
68
- r = w.getDataItemPositionY(e, this._yField, v + (D - v) / 2, Y), o = r, p = r, d = r, b = "horizontal";
65
+ let t = Y.getDataItemPositionX(e, this._xOpenField, 1, X), l = Y.getDataItemPositionX(e, this._xField, 1, X);
66
+ c = Y.getDataItemPositionX(e, this._xLowField, 1, X), g = Y.getDataItemPositionX(e, this._xHighField, 1, X), u = Math.max(t, l), a = Math.min(t, l);
67
+ let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + p - 0.5;
68
+ r = x.getDataItemPositionY(e, this._yField, v + (D - v) / 2, y), o = r, d = r, w = r, b = "horizontal";
69
69
  }
70
- this._updateCandleGraphics(e, l, x, r, o, c, u, p, d, b);
70
+ this._updateCandleGraphics(e, a, c, r, o, u, g, d, w, b);
71
71
  }
72
- _updateCandleGraphics(e, i, h, m, w, Y, f, l, x, r) {
72
+ _updateCandleGraphics(e, i, h, Y, x, y, X, a, c, r) {
73
73
  let o = e.get("graphics");
74
74
  if (o) {
75
- let c = this.getPoint(i, m), u = this.getPoint(h, w), p = this.getPoint(Y, l), d = this.getPoint(f, x);
75
+ let u = this.getPoint(i, Y), g = this.getPoint(h, x), d = this.getPoint(y, a), w = this.getPoint(X, c);
76
76
  if (this.get("turboMode")) {
77
77
  const s = this.allColumnsData[this.allColumnsData.length - 1];
78
- s.lowX0 = c.x, s.lowY0 = c.y, s.lowX1 = u.x, s.lowY1 = u.y, s.highX0 = p.x, s.highY0 = p.y, s.highX1 = d.x, s.highY1 = d.y;
78
+ s.lowX0 = u.x, s.lowY0 = u.y, s.lowX1 = g.x, s.lowY1 = g.y, s.highX0 = d.x, s.highY0 = d.y, s.highX1 = w.x, s.highY1 = w.y;
79
79
  } else {
80
- let s = o.x(), g = o.y();
81
- o.set("lowX0", c.x - s), o.set("lowY0", c.y - g), o.set("lowX1", u.x - s), o.set("lowY1", u.y - g), o.set("highX0", p.x - s), o.set("highY0", p.y - g), o.set("highX1", d.x - s), o.set("highY1", d.y - g), o.set("orientation", r);
82
- let y = e.get("rangeGraphics");
83
- y && j(y, (n) => {
84
- n.set("lowX0", c.x - s), n.set("lowY0", c.y - g), n.set("lowX1", u.x - s), n.set("lowY1", u.y - g), n.set("highX0", p.x - s), n.set("highY0", p.y - g), n.set("highX1", d.x - s), n.set("highY1", d.y - g), n.set("orientation", r);
80
+ let s = o.x(), p = o.y();
81
+ o.set("lowX0", u.x - s), o.set("lowY0", u.y - p), o.set("lowX1", g.x - s), o.set("lowY1", g.y - p), o.set("highX0", d.x - s), o.set("highY0", d.y - p), o.set("highX1", w.x - s), o.set("highY1", w.y - p), o.set("orientation", r);
82
+ let f = e.get("rangeGraphics");
83
+ f && H(f, (n) => {
84
+ n.set("lowX0", u.x - s), n.set("lowY0", u.y - p), n.set("lowX1", g.x - s), n.set("lowY1", g.y - p), n.set("highX0", d.x - s), n.set("highY0", d.y - p), n.set("highX1", w.x - s), n.set("highY1", w.y - p), n.set("orientation", r);
85
85
  });
86
86
  }
87
87
  }
88
88
  }
89
89
  _afterColumnsDraw() {
90
90
  this.get("turboMode") && this.allColumns.set("draw", (e) => {
91
- e.clear(), j(this.allColumnsData, (i) => {
91
+ e.clear(), H(this.allColumnsData, (i) => {
92
92
  e.beginPath();
93
- const h = i.width, m = i.height, w = i.x, Y = i.y, f = i.stroke, l = i.fill, x = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, c = i.lowX0, u = i.lowY0, p = i.lowX1, d = i.lowY1, s = i.highX0, g = i.highY0, y = i.highX1, n = i.highY1;
94
- e.beginFill(l, o), e.beginPath(), e.lineStyle(x, f, r), e.drawRect(w, Y, h, m), e.moveTo(c, u), e.lineTo(p, d), e.moveTo(s, g), e.lineTo(y, n), e.endStroke(), e.endFill();
93
+ const h = i.width, Y = i.height, x = i.x, y = i.y, X = i.stroke, a = i.fill, c = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, u = i.lowX0, g = i.lowY0, d = i.lowX1, w = i.lowY1, s = i.highX0, p = i.highY0, f = i.highX1, n = i.highY1;
94
+ e.beginFill(a, o), e.beginPath(), e.lineStyle(c, X, r), e.drawRect(x, y, h, Y), e.moveTo(u, g), e.lineTo(d, w), e.moveTo(s, p), e.lineTo(f, n), e.endStroke(), e.endFill();
95
95
  });
96
96
  });
97
97
  }
98
98
  _processAxisRange(e) {
99
- super._processAxisRange(e), e.columns = new N(M.new({}), () => C._new(this._root, {
100
- themeTags: S(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
99
+ super._processAxisRange(e), e.columns = new N(M.new({}), () => A._new(this._root, {
100
+ themeTags: j(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
101
101
  }, [this.columns.template, e.columns.template]));
102
102
  }
103
103
  }
104
- Object.defineProperty(k, "className", {
104
+ Object.defineProperty(F, "className", {
105
105
  enumerable: !0,
106
106
  configurable: !0,
107
107
  writable: !0,
108
108
  value: "CandlestickSeries"
109
109
  });
110
- Object.defineProperty(k, "classNames", {
110
+ Object.defineProperty(F, "classNames", {
111
111
  enumerable: !0,
112
112
  configurable: !0,
113
113
  writable: !0,
114
- value: T.classNames.concat([k.className])
114
+ value: T.classNames.concat([F.className])
115
115
  });
116
- const me = (F) => {
117
- const e = U(), i = Z({
118
- props: F,
116
+ const de = (P) => {
117
+ const e = Z(), i = q({
118
+ props: P,
119
119
  name: "HCCandlestickChart"
120
120
  }), {
121
121
  data: h,
122
- seriesName: m,
123
- height: w = "100%",
124
- width: Y = "100%",
125
- chartId: f = "candlestick-chart",
126
- showVolume: l = !1,
127
- risingColor: x = e.palette.success.main,
122
+ seriesName: Y,
123
+ height: x = "100%",
124
+ width: y = "100%",
125
+ chartId: X = "candlestick-chart",
126
+ showVolume: a = !1,
127
+ risingColor: c = e.palette.success.main,
128
128
  fallingColor: r = e.palette.error.main,
129
129
  loading: o = !1,
130
- emptyMessage: c = "No data available",
131
- baseInterval: u,
132
- sx: p,
133
- ...d
134
- } = i, s = q.orderBy(h, ["date"]), g = {
130
+ emptyMessage: u = "No data available",
131
+ baseInterval: g,
132
+ sx: d,
133
+ ...w
134
+ } = i, s = J.orderBy(h, ["date"]), p = {
135
135
  ...i,
136
- height: w,
137
- width: Y,
138
- chartId: f,
139
- showVolume: l,
140
- risingColor: x,
136
+ height: x,
137
+ width: y,
138
+ chartId: X,
139
+ showVolume: a,
140
+ risingColor: c,
141
141
  fallingColor: r,
142
142
  loading: o,
143
- emptyMessage: c,
144
- baseInterval: u
145
- }, y = P(null), n = P(null), b = P(null);
146
- return J(() => {
143
+ emptyMessage: u,
144
+ baseInterval: g
145
+ }, f = C(null), n = C(null), b = C(null);
146
+ return K(() => {
147
147
  var O, R, V;
148
148
  if (!b.current) return;
149
149
  const t = B.new(b.current);
150
- n.current = t, t.setThemes([I.new(t)]), t.interfaceColors.setAll({
151
- text: X(e.palette.text.primary),
152
- grid: X(e.palette.divider),
153
- stroke: X(e.palette.divider)
150
+ n.current = t, t.setThemes([U.new(t)]), t.interfaceColors.setAll({
151
+ text: m(e.palette.text.primary),
152
+ grid: m(e.palette.divider),
153
+ stroke: m(e.palette.divider)
154
154
  });
155
- const a = t.container.children.push(
155
+ const l = t.container.children.push(
156
156
  $.new(t, {
157
157
  panX: !0,
158
158
  panY: !0,
@@ -162,39 +162,39 @@ const me = (F) => {
162
162
  layout: t.verticalLayout
163
163
  })
164
164
  );
165
- y.current = a, a.set(
165
+ f.current = l, l.set(
166
166
  "cursor",
167
167
  ee.new(t, {
168
168
  behavior: "zoomX"
169
169
  })
170
170
  ).lineY.set("visible", !1);
171
- const v = a.xAxes.push(
171
+ const v = l.xAxes.push(
172
172
  te.new(t, {
173
173
  maxDeviation: 0.3,
174
174
  groupData: !0,
175
- baseInterval: u || { timeUnit: "day", count: 1 },
175
+ baseInterval: g || { timeUnit: "day", count: 1 },
176
176
  renderer: se.new(t, {
177
177
  minorGridEnabled: !0
178
178
  }),
179
179
  tooltip: G.new(t, {})
180
180
  })
181
- ), D = a.yAxes.push(
182
- H.new(t, {
183
- renderer: E.new(t, {})
181
+ ), D = l.yAxes.push(
182
+ E.new(t, {
183
+ renderer: z.new(t, {})
184
184
  })
185
185
  );
186
186
  (O = v.get("renderer")) == null || O.grid.template.setAll({
187
- stroke: X(e.palette.divider),
187
+ stroke: m(e.palette.divider),
188
188
  strokeOpacity: 1
189
189
  }), (R = v.get("renderer")) == null || R.labels.template.setAll({
190
190
  paddingTop: 12
191
191
  }), (V = D.get("renderer")) == null || V.grid.template.setAll({
192
- stroke: X(e.palette.divider),
192
+ stroke: m(e.palette.divider),
193
193
  strokeOpacity: 1
194
194
  });
195
- const _ = a.series.push(
196
- k.new(t, {
197
- name: m || "Price",
195
+ const _ = l.series.push(
196
+ F.new(t, {
197
+ name: Y || "Price",
198
198
  xAxis: v,
199
199
  yAxis: D,
200
200
  valueXField: "date",
@@ -214,66 +214,76 @@ const me = (F) => {
214
214
  })
215
215
  );
216
216
  _.columns.template.states.create("riseFromPrevious", {
217
- fill: X(x),
218
- stroke: X(x)
217
+ fill: m(c),
218
+ stroke: m(c)
219
219
  }), _.columns.template.states.create("dropFromPrevious", {
220
- fill: X(r),
221
- stroke: X(r)
222
- }), _.data.processor = z.new(t, {
220
+ fill: m(r),
221
+ stroke: m(r)
222
+ }), _.data.processor = I.new(t, {
223
223
  dateFormat: "i",
224
224
  dateFields: ["date"]
225
225
  });
226
- let A = null, L = null;
227
- return l && (L = a.yAxes.push(
228
- H.new(t, {
229
- renderer: E.new(t, {
226
+ let k = null, L = null;
227
+ return a && (L = l.yAxes.push(
228
+ E.new(t, {
229
+ renderer: z.new(t, {
230
230
  opposite: !0
231
231
  }),
232
232
  numberFormat: "#a"
233
233
  })
234
- ), A = a.series.push(
234
+ ), k = l.series.push(
235
235
  T.new(t, {
236
236
  name: "Volume",
237
237
  xAxis: v,
238
238
  yAxis: L,
239
239
  valueYField: "volume",
240
240
  valueXField: "date",
241
- fill: X("#2962ff"),
242
- stroke: X("#2962ff"),
241
+ fill: m("#2962ff"),
242
+ stroke: m("#2962ff"),
243
243
  opacity: 0.6
244
244
  })
245
- ), A.columns.template.setAll({
245
+ ), k.columns.template.setAll({
246
246
  width: Q(80)
247
- }), A.data.processor = z.new(t, {
247
+ }), k.data.processor = I.new(t, {
248
248
  dateFormat: "i",
249
249
  dateFields: ["date"]
250
- })), _.data.setAll(s), l && A && A.data.setAll(s), a.appear(1e3), _.appear(1e3), () => {
250
+ })), _.data.setAll(s), a && k && k.data.setAll(s), l.appear(1e3), _.appear(1e3), () => {
251
251
  t.dispose();
252
252
  };
253
- }, [e.palette.mode]), K(() => {
254
- if (y.current && n.current) {
255
- const t = y.current.series.getIndex(
253
+ }, [e.palette.mode]), S(() => {
254
+ if (f.current && n.current) {
255
+ const t = f.current.series.getIndex(
256
256
  0
257
- ), a = l ? y.current.series.getIndex(1) : null;
258
- t == null || t.data.setAll(s), a == null || a.data.setAll(s);
257
+ ), l = a ? f.current.series.getIndex(1) : null;
258
+ t == null || t.data.setAll(s), l == null || l.data.setAll(s);
259
259
  }
260
- }, [s, l]), {
260
+ }, [s, a]), S(() => {
261
+ if (!f.current) return;
262
+ const t = f.current.series.getIndex(0);
263
+ t && (t.columns.template.states.create("riseFromPrevious", {
264
+ fill: m(c),
265
+ stroke: m(c)
266
+ }), t.columns.template.states.create("dropFromPrevious", {
267
+ fill: m(r),
268
+ stroke: m(r)
269
+ }));
270
+ }, [c, r]), {
261
271
  chartDivRef: b,
262
272
  data: h,
263
- seriesName: m,
264
- height: w,
265
- width: Y,
266
- chartId: f,
267
- showVolume: l,
268
- risingColor: x,
273
+ seriesName: Y,
274
+ height: x,
275
+ width: y,
276
+ chartId: X,
277
+ showVolume: a,
278
+ risingColor: c,
269
279
  fallingColor: r,
270
280
  loading: o,
271
- emptyMessage: c,
272
- sx: p,
273
- other: d,
274
- ownerState: g
281
+ emptyMessage: u,
282
+ sx: d,
283
+ other: w,
284
+ ownerState: p
275
285
  };
276
286
  };
277
287
  export {
278
- me as useCandlestickChartLogic
288
+ de as useCandlestickChartLogic
279
289
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { Typography as n, Divider as l } from "@mui/material";
2
+ import { Typography as l, Divider as n } from "@mui/material";
3
3
  import { CandlestickChart as C } from "../candlestick/index.js";
4
4
  import { ColumnLineMix as h } from "../column-line-mix/index.js";
5
5
  import { DrillDownTreemap as c } from "../drill-down-treemap/index.js";
@@ -16,11 +16,11 @@ import { StackedColumnChart as g } from "../stacked-column-chart/index.js";
16
16
  import { XYChart as P } from "../xy-chart/index.js";
17
17
  import { useChartWrapperLogic as w } from "./logic.js";
18
18
  import { ChartWrapperRoot as A, ChartWrapperHeader as T, ChartWrapperContent as W } from "./styled.js";
19
- function J(a) {
19
+ const J = (a) => {
20
20
  const { title: m, type: e, chartProps: o, ownerState: t, sx: p } = w(a);
21
21
  return /* @__PURE__ */ i(A, { ownerState: t, sx: p, children: [
22
- /* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(n, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
23
- /* @__PURE__ */ r(l, {}),
22
+ /* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(l, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
23
+ /* @__PURE__ */ r(n, {}),
24
24
  /* @__PURE__ */ i(W, { ownerState: t, children: [
25
25
  e === "MultipleValueAxes" && /* @__PURE__ */ r(L, { ...o }),
26
26
  e === "XYChart" && /* @__PURE__ */ r(P, { ...o }),
@@ -38,7 +38,7 @@ function J(a) {
38
38
  e === "CandlestickChart" && /* @__PURE__ */ r(C, { ...o })
39
39
  ] })
40
40
  ] });
41
- }
41
+ };
42
42
  export {
43
43
  J as ChartWrapper
44
44
  };
@@ -1,10 +1,11 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useColumnLineMixLogic as m } from "./logic.js";
3
- import { ColumnLineMixRoot as h } from "./styled.js";
4
- function d(i) {
5
- const { chartId: t, ownerState: r, sx: e, other: n } = m(i);
6
- return /* @__PURE__ */ o(h, { ownerState: r, sx: e, ...n, children: /* @__PURE__ */ o("div", { id: t, style: { width: "100%", height: "100%" } }) });
7
- }
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ChartError as s } from "../_common/chart-error.js";
3
+ import { useColumnLineMixLogic as h } from "./logic.js";
4
+ import { ColumnLineMixRoot as x } from "./styled.js";
5
+ const u = (t) => {
6
+ const { chartId: i, ownerState: e, sx: m, error: o, other: n } = h(t);
7
+ return /* @__PURE__ */ r(x, { ownerState: e, sx: m, ...n, children: o ? /* @__PURE__ */ r(s, { message: o }) : /* @__PURE__ */ r("div", { id: i, style: { width: "100%", height: "100%" } }) });
8
+ };
8
9
  export {
9
- d as ColumnLineMix
10
+ u as ColumnLineMix
10
11
  };