@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
@@ -1,549 +0,0 @@
1
- import { N as W, L as M, T as $, n as A, m as G, i as j, F as K, Q as de, f as ge, D as _e, j as U } from "./AxisRendererY-kADUad00.js";
2
- function _(a) {
3
- return function() {
4
- return a;
5
- };
6
- }
7
- const N = Math.PI, V = 2 * N, D = 1e-6, me = V - D;
8
- function ee(a) {
9
- this._ += a[0];
10
- for (let e = 1, t = a.length; e < t; ++e)
11
- this._ += arguments[e] + a[e];
12
- }
13
- function be(a) {
14
- let e = Math.floor(a);
15
- if (!(e >= 0)) throw new Error(`invalid digits: ${a}`);
16
- if (e > 15) return ee;
17
- const t = 10 ** e;
18
- return function(i) {
19
- this._ += i[0];
20
- for (let r = 1, h = i.length; r < h; ++r)
21
- this._ += Math.round(arguments[r] * t) / t + i[r];
22
- };
23
- }
24
- class ke {
25
- constructor(e) {
26
- this._x0 = this._y0 = // start of current subpath
27
- this._x1 = this._y1 = null, this._ = "", this._append = e == null ? ee : be(e);
28
- }
29
- moveTo(e, t) {
30
- this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
31
- }
32
- closePath() {
33
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
34
- }
35
- lineTo(e, t) {
36
- this._append`L${this._x1 = +e},${this._y1 = +t}`;
37
- }
38
- quadraticCurveTo(e, t, i, r) {
39
- this._append`Q${+e},${+t},${this._x1 = +i},${this._y1 = +r}`;
40
- }
41
- bezierCurveTo(e, t, i, r, h, c) {
42
- this._append`C${+e},${+t},${+i},${+r},${this._x1 = +h},${this._y1 = +c}`;
43
- }
44
- arcTo(e, t, i, r, h) {
45
- if (e = +e, t = +t, i = +i, r = +r, h = +h, h < 0) throw new Error(`negative radius: ${h}`);
46
- let c = this._x1, o = this._y1, f = i - e, n = r - t, u = c - e, s = o - t, l = u * u + s * s;
47
- if (this._x1 === null)
48
- this._append`M${this._x1 = e},${this._y1 = t}`;
49
- else if (l > D) if (!(Math.abs(s * f - n * u) > D) || !h)
50
- this._append`L${this._x1 = e},${this._y1 = t}`;
51
- else {
52
- let p = i - c, g = r - o, P = f * f + n * n, m = p * p + g * g, b = Math.sqrt(P), x = Math.sqrt(l), v = h * Math.tan((N - Math.acos((P + l - m) / (2 * b * x))) / 2), k = v / x, O = v / b;
53
- Math.abs(k - 1) > D && this._append`L${e + k * u},${t + k * s}`, this._append`A${h},${h},0,0,${+(s * p > u * g)},${this._x1 = e + O * f},${this._y1 = t + O * n}`;
54
- }
55
- }
56
- arc(e, t, i, r, h, c) {
57
- if (e = +e, t = +t, i = +i, c = !!c, i < 0) throw new Error(`negative radius: ${i}`);
58
- let o = i * Math.cos(r), f = i * Math.sin(r), n = e + o, u = t + f, s = 1 ^ c, l = c ? r - h : h - r;
59
- this._x1 === null ? this._append`M${n},${u}` : (Math.abs(this._x1 - n) > D || Math.abs(this._y1 - u) > D) && this._append`L${n},${u}`, i && (l < 0 && (l = l % V + V), l > me ? this._append`A${i},${i},0,1,${s},${e - o},${t - f}A${i},${i},0,1,${s},${this._x1 = n},${this._y1 = u}` : l > D && this._append`A${i},${i},0,${+(l >= N)},${s},${this._x1 = e + i * Math.cos(h)},${this._y1 = t + i * Math.sin(h)}`);
60
- }
61
- rect(e, t, i, r) {
62
- this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${i = +i}v${+r}h${-i}Z`;
63
- }
64
- toString() {
65
- return this._;
66
- }
67
- }
68
- function te(a) {
69
- let e = 3;
70
- return a.digits = function(t) {
71
- if (!arguments.length) return e;
72
- if (t == null)
73
- e = null;
74
- else {
75
- const i = Math.floor(t);
76
- if (!(i >= 0)) throw new RangeError(`invalid digits: ${t}`);
77
- e = i;
78
- }
79
- return a;
80
- }, () => new ke(e);
81
- }
82
- function ie(a) {
83
- return typeof a == "object" && "length" in a ? a : Array.from(a);
84
- }
85
- function se(a) {
86
- this._context = a;
87
- }
88
- se.prototype = {
89
- areaStart: function() {
90
- this._line = 0;
91
- },
92
- areaEnd: function() {
93
- this._line = NaN;
94
- },
95
- lineStart: function() {
96
- this._point = 0;
97
- },
98
- lineEnd: function() {
99
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
100
- },
101
- point: function(a, e) {
102
- switch (a = +a, e = +e, this._point) {
103
- case 0:
104
- this._point = 1, this._line ? this._context.lineTo(a, e) : this._context.moveTo(a, e);
105
- break;
106
- case 1:
107
- this._point = 2;
108
- default:
109
- this._context.lineTo(a, e);
110
- break;
111
- }
112
- }
113
- };
114
- function ne(a) {
115
- return new se(a);
116
- }
117
- function le(a) {
118
- return a[0];
119
- }
120
- function re(a) {
121
- return a[1];
122
- }
123
- function ae(a, e) {
124
- var t = _(!0), i = null, r = ne, h = null, c = te(o);
125
- a = typeof a == "function" ? a : a === void 0 ? le : _(a), e = typeof e == "function" ? e : e === void 0 ? re : _(e);
126
- function o(f) {
127
- var n, u = (f = ie(f)).length, s, l = !1, p;
128
- for (i == null && (h = r(p = c())), n = 0; n <= u; ++n)
129
- !(n < u && t(s = f[n], n, f)) === l && ((l = !l) ? h.lineStart() : h.lineEnd()), l && h.point(+a(s, n, f), +e(s, n, f));
130
- if (p) return h = null, p + "" || null;
131
- }
132
- return o.x = function(f) {
133
- return arguments.length ? (a = typeof f == "function" ? f : _(+f), o) : a;
134
- }, o.y = function(f) {
135
- return arguments.length ? (e = typeof f == "function" ? f : _(+f), o) : e;
136
- }, o.defined = function(f) {
137
- return arguments.length ? (t = typeof f == "function" ? f : _(!!f), o) : t;
138
- }, o.curve = function(f) {
139
- return arguments.length ? (r = f, i != null && (h = r(i)), o) : r;
140
- }, o.context = function(f) {
141
- return arguments.length ? (f == null ? i = h = null : h = r(i = f), o) : i;
142
- }, o;
143
- }
144
- function xe(a, e, t) {
145
- var i = null, r = _(!0), h = null, c = ne, o = null, f = te(n);
146
- a = typeof a == "function" ? a : a === void 0 ? le : _(+a), e = typeof e == "function" ? e : _(e === void 0 ? 0 : +e), t = typeof t == "function" ? t : t === void 0 ? re : _(+t);
147
- function n(s) {
148
- var l, p, g, P = (s = ie(s)).length, m, b = !1, x, v = new Array(P), k = new Array(P);
149
- for (h == null && (o = c(x = f())), l = 0; l <= P; ++l) {
150
- if (!(l < P && r(m = s[l], l, s)) === b)
151
- if (b = !b)
152
- p = l, o.areaStart(), o.lineStart();
153
- else {
154
- for (o.lineEnd(), o.lineStart(), g = l - 1; g >= p; --g)
155
- o.point(v[g], k[g]);
156
- o.lineEnd(), o.areaEnd();
157
- }
158
- b && (v[l] = +a(m, l, s), k[l] = +e(m, l, s), o.point(i ? +i(m, l, s) : v[l], t ? +t(m, l, s) : k[l]));
159
- }
160
- if (x) return o = null, x + "" || null;
161
- }
162
- function u() {
163
- return ae().defined(r).curve(c).context(h);
164
- }
165
- return n.x = function(s) {
166
- return arguments.length ? (a = typeof s == "function" ? s : _(+s), i = null, n) : a;
167
- }, n.x0 = function(s) {
168
- return arguments.length ? (a = typeof s == "function" ? s : _(+s), n) : a;
169
- }, n.x1 = function(s) {
170
- return arguments.length ? (i = s == null ? null : typeof s == "function" ? s : _(+s), n) : i;
171
- }, n.y = function(s) {
172
- return arguments.length ? (e = typeof s == "function" ? s : _(+s), t = null, n) : e;
173
- }, n.y0 = function(s) {
174
- return arguments.length ? (e = typeof s == "function" ? s : _(+s), n) : e;
175
- }, n.y1 = function(s) {
176
- return arguments.length ? (t = s == null ? null : typeof s == "function" ? s : _(+s), n) : t;
177
- }, n.lineX0 = n.lineY0 = function() {
178
- return u().x(a).y(e);
179
- }, n.lineY1 = function() {
180
- return u().x(a).y(t);
181
- }, n.lineX1 = function() {
182
- return u().x(i).y(e);
183
- }, n.defined = function(s) {
184
- return arguments.length ? (r = typeof s == "function" ? s : _(!!s), n) : r;
185
- }, n.curve = function(s) {
186
- return arguments.length ? (c = s, h != null && (o = c(h)), n) : c;
187
- }, n.context = function(s) {
188
- return arguments.length ? (s == null ? h = o = null : o = c(h = s), n) : h;
189
- }, n;
190
- }
191
- class R extends W {
192
- constructor() {
193
- super(...arguments), Object.defineProperty(this, "_endIndex", {
194
- enumerable: !0,
195
- configurable: !0,
196
- writable: !0,
197
- value: void 0
198
- }), Object.defineProperty(this, "_strokeGenerator", {
199
- enumerable: !0,
200
- configurable: !0,
201
- writable: !0,
202
- value: ae()
203
- }), Object.defineProperty(this, "_fillGenerator", {
204
- enumerable: !0,
205
- configurable: !0,
206
- writable: !0,
207
- value: xe()
208
- }), Object.defineProperty(this, "_legendStroke", {
209
- enumerable: !0,
210
- configurable: !0,
211
- writable: !0,
212
- value: void 0
213
- }), Object.defineProperty(this, "_legendFill", {
214
- enumerable: !0,
215
- configurable: !0,
216
- writable: !0,
217
- value: void 0
218
- }), Object.defineProperty(this, "strokes", {
219
- enumerable: !0,
220
- configurable: !0,
221
- writable: !0,
222
- value: this.addDisposer(new M($.new({}), () => A._new(this._root, {
223
- themeTags: G(this.strokes.template.get("themeTags", []), ["line", "series", "stroke"])
224
- }, [this.strokes.template])))
225
- }), Object.defineProperty(this, "fills", {
226
- enumerable: !0,
227
- configurable: !0,
228
- writable: !0,
229
- value: this.addDisposer(new M($.new({}), () => A._new(this._root, {
230
- themeTags: G(this.strokes.template.get("themeTags", []), ["line", "series", "fill"])
231
- }, [this.fills.template])))
232
- }), Object.defineProperty(this, "_fillTemplate", {
233
- enumerable: !0,
234
- configurable: !0,
235
- writable: !0,
236
- value: void 0
237
- }), Object.defineProperty(this, "_strokeTemplate", {
238
- enumerable: !0,
239
- configurable: !0,
240
- writable: !0,
241
- value: void 0
242
- }), Object.defineProperty(this, "_previousPoint", {
243
- enumerable: !0,
244
- configurable: !0,
245
- writable: !0,
246
- value: [0, 0, 0, 0]
247
- }), Object.defineProperty(this, "_dindex", {
248
- enumerable: !0,
249
- configurable: !0,
250
- writable: !0,
251
- value: 0
252
- }), Object.defineProperty(this, "_sindex", {
253
- enumerable: !0,
254
- configurable: !0,
255
- writable: !0,
256
- value: 0
257
- });
258
- }
259
- _afterNew() {
260
- this._fillGenerator.y0(function(e) {
261
- return e[3];
262
- }), this._fillGenerator.x0(function(e) {
263
- return e[2];
264
- }), this._fillGenerator.y1(function(e) {
265
- return e[1];
266
- }), this._fillGenerator.x1(function(e) {
267
- return e[0];
268
- }), super._afterNew();
269
- }
270
- /**
271
- * @ignore
272
- */
273
- makeStroke(e) {
274
- const t = this.mainContainer.children.push(e.make());
275
- return e.push(t), t;
276
- }
277
- /**
278
- * @ignore
279
- */
280
- makeFill(e) {
281
- const t = this.mainContainer.children.push(e.make());
282
- return e.push(t), t;
283
- }
284
- _updateChildren() {
285
- this._strokeTemplate = void 0, this._fillTemplate = void 0;
286
- let e = this.get("xAxis"), t = this.get("yAxis");
287
- if (this.isDirty("stroke")) {
288
- const i = this.get("stroke");
289
- this.strokes.template.set("stroke", i);
290
- const r = this._legendStroke;
291
- r && r.states.lookup("default").set("stroke", i);
292
- }
293
- if (this.isDirty("fill")) {
294
- const i = this.get("fill");
295
- this.fills.template.set("fill", i);
296
- const r = this._legendFill;
297
- r && r.states.lookup("default").set("fill", i);
298
- }
299
- if (this.isDirty("fillPattern")) {
300
- const i = this.get("fillPattern");
301
- this.fills.template.set("fillPattern", i);
302
- const r = this._legendFill;
303
- r && r.states.lookup("default").set("fillPattern", i);
304
- }
305
- if (this.isDirty("curveFactory")) {
306
- const i = this.get("curveFactory");
307
- i && (this._strokeGenerator.curve(i), this._fillGenerator.curve(i));
308
- }
309
- if (e.inited && t.inited) {
310
- if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty || this.isDirty("connect") || this.isDirty("curveFactory")) {
311
- this.fills.each((u) => {
312
- u.setPrivate("visible", !1);
313
- }), this.strokes.each((u) => {
314
- u.setPrivate("visible", !1);
315
- }), this.axisRanges.each((u) => {
316
- let s = u.fills;
317
- s && s.each((p) => {
318
- p.setPrivate("visible", !1);
319
- });
320
- let l = u.strokes;
321
- l && l.each((p) => {
322
- p.setPrivate("visible", !1);
323
- });
324
- });
325
- let i = this.startIndex(), r = this.strokes.template.get("templateField"), h = this.fills.template.get("templateField"), c = !0, o = !0;
326
- r && (c = !1), h && (o = !1);
327
- for (let u = i - 1; u >= 0; u--) {
328
- let s = this.dataItems[u], l = !0, p = s.dataContext;
329
- if (r && p[r] && (c = !0), h && p[h] && (o = !0), j(this._valueFields, (g) => {
330
- U(s.get(g)) || (l = !1);
331
- }), l && c && o) {
332
- i = u;
333
- break;
334
- }
335
- }
336
- let f = this.dataItems.length, n = this.endIndex();
337
- if (n < f) {
338
- n++;
339
- for (let u = n; u < f; u++) {
340
- let s = this.dataItems[u], l = !0;
341
- if (j(this._valueFields, (p) => {
342
- U(s.get(p)) || (l = !1);
343
- }), l) {
344
- n = u + 1;
345
- break;
346
- }
347
- }
348
- }
349
- if (i > 0 && i--, this._endIndex = n, this._clearGraphics(), this._sindex = 0, this._dindex = i, this.dataItems.length == 1)
350
- this._startSegment(0);
351
- else
352
- for (; this._dindex < n - 1; )
353
- this._startSegment(this._dindex), this._sindex++;
354
- }
355
- } else
356
- this._skipped = !0;
357
- super._updateChildren();
358
- }
359
- _clearGraphics() {
360
- this.strokes.clear(), this.fills.clear(), this.axisRanges.each((e) => {
361
- e.fills.clear(), e.strokes.clear();
362
- });
363
- }
364
- _startSegment(e) {
365
- let t = this._endIndex, i = t;
366
- const r = this.get("autoGapCount"), h = this.get("connect"), c = this.makeFill(this.fills), o = this._fillTemplate, f = this.fills.template;
367
- o && o != f && (c.template = o), c.setPrivate("visible", !0);
368
- const n = this.makeStroke(this.strokes), u = this._strokeTemplate;
369
- u && u != this.strokes.template && (n.template = u), n.setPrivate("visible", !0);
370
- let s = this.get("xAxis"), l = this.get("yAxis"), p = this.get("baseAxis"), g = this.get("vcx", 1), P = this.get("vcy", 1), m = this._xField, b = this._yField, x = this._xOpenField, v = this._yOpenField;
371
- const k = this.get("openValueXField"), O = this.get("openValueYField");
372
- k || (x = this._xField), O || (v = this._yField);
373
- const z = this.get("stacked"), oe = s.basePosition(), ue = l.basePosition();
374
- let C;
375
- p === l ? C = this._yField : C = this._xField;
376
- const F = [];
377
- let T = [];
378
- F.push(T);
379
- const q = this.strokes.template.get("templateField"), H = this.fills.template.get("templateField");
380
- let Q = this.get("locationX", 0.5), Z = this.get("locationY", 0.5), he = this.get("openLocationX", Q), fe = this.get("openLocationY", Z);
381
- const ce = this.get("minDistance", 0);
382
- let y, B = this.fills.template.get("visible");
383
- this.axisRanges.length > 0 && (B = !0);
384
- let J = !1;
385
- (z || k || O) && (J = !0);
386
- const I = {
387
- points: T,
388
- segments: F,
389
- stacked: z,
390
- getOpen: J,
391
- basePosX: oe,
392
- basePosY: ue,
393
- fillVisible: B,
394
- xField: m,
395
- yField: b,
396
- xOpenField: x,
397
- yOpenField: v,
398
- vcx: g,
399
- vcy: P,
400
- baseAxis: p,
401
- xAxis: s,
402
- yAxis: l,
403
- locationX: Q,
404
- locationY: Z,
405
- openLocationX: he,
406
- openLocationY: fe,
407
- minDistance: ce
408
- };
409
- let Y = this._strokeTemplate, S = this._fillTemplate;
410
- for (y = e; y < i; y++) {
411
- this._dindex = y;
412
- const w = this._dataItems[y];
413
- let L = w.get(m), E = w.get(b);
414
- if (L == null || E == null ? h || (T = [], F.push(T), I.points = T) : this._getPoints(w, I), q) {
415
- let d = w.dataContext[q];
416
- if (d)
417
- if (d instanceof $ || (d = $.new(d)), this._strokeTemplate = d, y > e) {
418
- i = y;
419
- break;
420
- } else
421
- Y = d, n.template = d;
422
- }
423
- if (H) {
424
- let d = w.dataContext[H];
425
- if (d)
426
- if (d instanceof $ || (d = $.new(d)), this._fillTemplate = d, y > e) {
427
- i = y;
428
- break;
429
- } else
430
- S = d, c.template = d;
431
- }
432
- if (!h) {
433
- let d = this.dataItems[y + 1];
434
- d && p.shouldGap(w, d, r, C) && (T = [], F.push(T), I.points = T);
435
- }
436
- }
437
- c.setRaw("userData", [e, y]), n.setRaw("userData", [e, y]), y === t && this._endLine(T, F[0][0]), n && this._drawStroke(n, F), c && this._drawFill(c, F), this.axisRanges.each((w) => {
438
- const L = w.container, E = w.fills, d = this.makeFill(E);
439
- L && L.children.push(d), d.setPrivate("visible", !0), this._drawFill(d, F);
440
- const pe = w.strokes, X = this.makeStroke(pe);
441
- L && L.children.push(X), Y && Y != this.strokes.template && (X.template = Y), S && S != this.fills.template && (d.template = S), X.setPrivate("visible", !0), this._drawStroke(X, F), d.setRaw("userData", [e, y]), X.setRaw("userData", [e, y]);
442
- });
443
- }
444
- _getPoints(e, t) {
445
- let i = t.points, r = e.get("locationX", t.locationX), h = e.get("locationY", t.locationY);
446
- const c = this.get("exactLocationX", !1), o = this.get("exactLocationY", !1);
447
- let f = t.xAxis.getDataItemPositionX(e, t.xField, r, t.vcx, c), n = t.yAxis.getDataItemPositionY(e, t.yField, h, t.vcy, o);
448
- if (this._shouldInclude(f)) {
449
- const u = this.getPoint(f, n), s = [u.x, u.y];
450
- if (u.x += this._x, u.y += this._y, e.set("point", u), t.fillVisible) {
451
- let l = f, p = n;
452
- if (t.baseAxis === t.xAxis ? p = t.basePosY : t.baseAxis === t.yAxis && (l = t.basePosX), t.getOpen) {
453
- let P = e.get(t.xOpenField), m = e.get(t.yOpenField);
454
- if (P != null && m != null) {
455
- let b = e.get("openLocationX", t.openLocationX), x = e.get("openLocationY", t.openLocationY);
456
- if (t.stacked) {
457
- let v = e.get("stackToItemX"), k = e.get("stackToItemY");
458
- v ? (l = t.xAxis.getDataItemPositionX(v, t.xField, b, v.component.get("vcx"), c), K(l) && (l = t.basePosX)) : t.yAxis === t.baseAxis ? l = t.basePosX : l = t.xAxis.getDataItemPositionX(e, t.xOpenField, b, t.vcx, c), k ? (p = t.yAxis.getDataItemPositionY(k, t.yField, x, k.component.get("vcy"), o), K(p) && (p = t.basePosY)) : t.xAxis === t.baseAxis ? p = t.basePosY : p = t.yAxis.getDataItemPositionY(e, t.yOpenField, x, t.vcy, o);
459
- } else
460
- l = t.xAxis.getDataItemPositionX(e, t.xOpenField, b, t.vcx, c), p = t.yAxis.getDataItemPositionY(e, t.yOpenField, x, t.vcy, o);
461
- }
462
- }
463
- let g = this.getPoint(l, p);
464
- s[2] = g.x, s[3] = g.y;
465
- }
466
- if (t.minDistance > 0) {
467
- const l = s[0], p = s[1], g = s[2], P = s[3], m = this._previousPoint, b = m[0], x = m[1], v = m[2], k = m[3];
468
- (Math.hypot(l - b, p - x) > t.minDistance || g && P && Math.hypot(g - v, P - k) > t.minDistance) && (i.push(s), this._previousPoint = s);
469
- } else
470
- i.push(s);
471
- }
472
- }
473
- _endLine(e, t) {
474
- }
475
- _drawStroke(e, t) {
476
- e.get("visible") && !e.get("forceHidden") && e.set("draw", (i) => {
477
- j(t, (r) => {
478
- this._strokeGenerator.context(i), this._strokeGenerator(r);
479
- });
480
- });
481
- }
482
- _drawFill(e, t) {
483
- e.get("visible") && !e.get("forceHidden") && e.set("draw", (i) => {
484
- j(t, (r) => {
485
- this._fillGenerator.context(i), this._fillGenerator(r);
486
- });
487
- });
488
- }
489
- _processAxisRange(e) {
490
- super._processAxisRange(e), e.fills = new M($.new({}), () => A._new(this._root, {
491
- themeTags: G(e.fills.template.get("themeTags", []), ["line", "series", "fill"])
492
- }, [this.fills.template, e.fills.template])), e.strokes = new M($.new({}), () => A._new(this._root, {
493
- themeTags: G(e.strokes.template.get("themeTags", []), ["line", "series", "stroke"])
494
- }, [this.strokes.template, e.strokes.template]));
495
- }
496
- /**
497
- * @ignore
498
- */
499
- createLegendMarker(e) {
500
- const t = this.get("legendDataItem");
501
- if (t) {
502
- const i = t.get("marker"), r = t.get("markerRectangle");
503
- r && r.setPrivate("visible", !1), i.set("background", de.new(i._root, { fillOpacity: 0, fill: ge(0) }));
504
- const h = i.children.push(A._new(i._root, {
505
- themeTags: ["line", "series", "legend", "marker", "stroke"],
506
- interactive: !1
507
- }, [this.strokes.template]));
508
- this._legendStroke = h;
509
- const c = i.children.push(A._new(i._root, {
510
- themeTags: ["line", "series", "legend", "marker", "fill"]
511
- }, [this.fills.template]));
512
- this._legendFill = c;
513
- const o = this._root.interfaceColors.get("disabled");
514
- if (h.states.create("disabled", { fill: o, stroke: o }), c.states.create("disabled", { fill: o, stroke: o }), this.bullets.length > 0) {
515
- const f = this.bullets.getIndex(0);
516
- if (f) {
517
- const n = f(i._root, this, new _e(this, { legend: !0 }, {}));
518
- if (n) {
519
- const u = n.get("sprite");
520
- u instanceof A && u.states.create("disabled", { fill: o, stroke: o }), u && (u.setAll({
521
- tooltipText: void 0,
522
- tooltipHTML: void 0,
523
- focusable: void 0,
524
- focusableGroup: void 0,
525
- ariaLabel: void 0
526
- }), i.children.push(u), u.setAll({ x: i.width() / 2, y: i.height() / 2 }), i.events.on("boundschanged", () => {
527
- u.setAll({ x: i.width() / 2, y: i.height() / 2 });
528
- }));
529
- }
530
- }
531
- }
532
- }
533
- }
534
- }
535
- Object.defineProperty(R, "className", {
536
- enumerable: !0,
537
- configurable: !0,
538
- writable: !0,
539
- value: "LineSeries"
540
- });
541
- Object.defineProperty(R, "classNames", {
542
- enumerable: !0,
543
- configurable: !0,
544
- writable: !0,
545
- value: W.classNames.concat([R.className])
546
- });
547
- export {
548
- R as L
549
- };