@hybridcore/ui 1.5.90 → 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.
- package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -1,469 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
_afterNew() {
|
|
22
|
-
this._settings.themeTags = k(this._settings.themeTags, ["axis"]), this.fields.push("category", "id", "cellSize"), this.setPrivateRaw("name", "category"), this.addTag("category"), super._afterNew();
|
|
23
|
-
}
|
|
24
|
-
_afterDataChange() {
|
|
25
|
-
super._afterDataChange();
|
|
26
|
-
const t = this.dataItems.length;
|
|
27
|
-
t > 0 && this.setPrivateRaw("maxZoomFactor", t), this.setPrivateRaw("startIndex", Math.min(this.getPrivate("startIndex", 0), t)), this.setPrivateRaw("endIndex", Math.min(this.getPrivate("endIndex", t), 1));
|
|
28
|
-
}
|
|
29
|
-
_prepareChildren() {
|
|
30
|
-
super._prepareChildren();
|
|
31
|
-
const t = this.dataItems.length;
|
|
32
|
-
let e = 0;
|
|
33
|
-
this._valuesDirty && (this._itemMap = {}, p(this.dataItems, (n) => {
|
|
34
|
-
n.setRaw("index", e), this._itemMap[n.get("category")] = n, e++;
|
|
35
|
-
}), this.setPrivateRaw("maxZoomFactor", t));
|
|
36
|
-
let s = this.get("start", 0), i = this.get("end", 1), a = this._getIndices(s, i);
|
|
37
|
-
this.setPrivateRaw("startIndex", a.startIndex), this.setPrivateRaw("endIndex", a.endIndex), (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("endIndex") || this.isPrivateDirty("startIndex") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && this.dataItems.length > 0 && (this._handleRangeChange(), this._prepareAxisItems(), this._updateAxisRanges());
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @ignore
|
|
41
|
-
*/
|
|
42
|
-
adjustZoom() {
|
|
43
|
-
const t = this.dataItems.length;
|
|
44
|
-
if (t > 1) {
|
|
45
|
-
let e = this.get("maxZoomCount", this.dataItems.length), s = this.get("minZoomCount", 1), i = 0, a = this.getPrivate("startIndex", 0), n = this.getPrivate("endIndex", 0);
|
|
46
|
-
const d = this._sAnimation, o = this._eAnimation;
|
|
47
|
-
let l = this.get("start", 0), r = !1;
|
|
48
|
-
d && !d.stopped && (l = Number(d.to), r = !0);
|
|
49
|
-
let h = this.get("end", 1);
|
|
50
|
-
if (o && !o.stopped && (h = Number(o.to), r = !0), r) {
|
|
51
|
-
const g = this._getIndices(l, h);
|
|
52
|
-
a = g.startIndex, n = g.endIndex;
|
|
53
|
-
}
|
|
54
|
-
for (let g = a; g < n; g++) {
|
|
55
|
-
const m = this.dataItems[g];
|
|
56
|
-
i += m.get("finalCellSize", 1);
|
|
57
|
-
}
|
|
58
|
-
if (i <= s) {
|
|
59
|
-
let g = 0;
|
|
60
|
-
for (let m = a; m < t; m++) {
|
|
61
|
-
const f = this.dataItems[m];
|
|
62
|
-
if (g += f.get("finalCellSize", 1), n = m + 1, g >= s)
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
if (g < s)
|
|
66
|
-
for (let m = a - 1; m >= 0; m--) {
|
|
67
|
-
const f = this.dataItems[m];
|
|
68
|
-
if (g += f.get("finalCellSize", 1), a = m, g >= s)
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
this.zoomToIndexes(a, n);
|
|
72
|
-
} else if (i >= e) {
|
|
73
|
-
let g = i;
|
|
74
|
-
for (let m = n - 1; m >= a; m--) {
|
|
75
|
-
const f = this.dataItems[m];
|
|
76
|
-
if (g -= f.get("finalCellSize", 1), g <= e) {
|
|
77
|
-
n = m + 1;
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
this.zoomToIndexes(a, n);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
_handleRangeChange() {
|
|
86
|
-
p(this.series, (t) => {
|
|
87
|
-
let e = this.dataItems[this.startIndex()].get("category"), s = this.dataItems[this.endIndex() - 1].get("category"), i = t.get("baseAxis"), a = t.get("xAxis"), n = t.get("yAxis");
|
|
88
|
-
if (a instanceof P && n instanceof P)
|
|
89
|
-
t._markDirtyAxes();
|
|
90
|
-
else if (i === this) {
|
|
91
|
-
let d, o, l = n;
|
|
92
|
-
if (a === i ? (t.get("categoryXField") && (d = "categoryX"), t.get("openCategoryXField") && (o = "openCategoryX")) : n === i && (t.get("categoryYField") && (d = "categoryY"), t.get("openCategoryYField") && (o = "openCategoryY"), l = a), l instanceof z && (d || o)) {
|
|
93
|
-
let g = function(c, y, u, v, N, w) {
|
|
94
|
-
let x, C = y.categoryToIndex(N);
|
|
95
|
-
for (; !x && C >= 0 && C < y.dataItems.length; ) {
|
|
96
|
-
let D = y.dataItems[C].get("category");
|
|
97
|
-
if (w == "previous")
|
|
98
|
-
for (let I = c.dataItems.length - 1; I >= 0; I--) {
|
|
99
|
-
let _ = c.dataItems[I];
|
|
100
|
-
if (u && _.get(u) === D) {
|
|
101
|
-
x = _;
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
if (v && _.get(v) === D) {
|
|
105
|
-
x = _;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
else
|
|
110
|
-
for (let I = 0, _ = c.dataItems.length; I < _; I++) {
|
|
111
|
-
let M = c.dataItems[I];
|
|
112
|
-
if (u && M.get(u) === D) {
|
|
113
|
-
x = M;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
if (v && M.get(v) === D) {
|
|
117
|
-
x = M;
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
x || (C += w === "previous" ? -1 : 1);
|
|
122
|
-
}
|
|
123
|
-
return x;
|
|
124
|
-
}, r, h;
|
|
125
|
-
r = g(t, this, d, o, e, "next"), h = g(t, this, d, o, s, "previous");
|
|
126
|
-
let m = 0, f = t.dataItems.length;
|
|
127
|
-
r && (m = t.dataItems.indexOf(r)), h && (f = t.dataItems.indexOf(h) + 1), t.setPrivate("startIndex", m), t.setPrivate("endIndex", f);
|
|
128
|
-
let T = !1;
|
|
129
|
-
for (let c = m; c < f; c++) {
|
|
130
|
-
const y = t.dataItems[c];
|
|
131
|
-
if (p(t.__valueXShowFields, (u) => {
|
|
132
|
-
y.get(u) != null && (T = !0);
|
|
133
|
-
}), p(t.__valueYShowFields, (u) => {
|
|
134
|
-
y.get(u) != null && (T = !0);
|
|
135
|
-
}), T)
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
t.setPrivate("outOfSelection", !T);
|
|
139
|
-
}
|
|
140
|
-
t._markDirtyAxes();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
_prepareAxisItems() {
|
|
145
|
-
var t;
|
|
146
|
-
const e = this.get("renderer"), s = this.dataItems.length;
|
|
147
|
-
let i = this.startIndex();
|
|
148
|
-
i > 0 && i--;
|
|
149
|
-
let a = this.endIndex();
|
|
150
|
-
a < s && a++;
|
|
151
|
-
const n = e.get("minorLabelsEnabled"), d = e.get("minorGridEnabled", n);
|
|
152
|
-
let o = e.axisLength() / Math.max(e.get("minGridDistance"), 1), l = Math.max(1, Math.min(s, Math.ceil((a - i) / o)));
|
|
153
|
-
i = Math.floor(i / l) * l, this._frequency = l;
|
|
154
|
-
for (let h = 0; h < s; h++)
|
|
155
|
-
this._toggleDataItem(this.dataItems[h], !1);
|
|
156
|
-
let r = this.dataItems[i].get("index", 0);
|
|
157
|
-
for (let h = i; h < a; h = h + l) {
|
|
158
|
-
let g = this.dataItems[h];
|
|
159
|
-
this._createAssets(g, []), this._toggleDataItem(g, !0);
|
|
160
|
-
let m = l;
|
|
161
|
-
d && (m = 1), this._prepareDataItem(g, r, m), r++;
|
|
162
|
-
}
|
|
163
|
-
if (e.get("minorGridEnabled"))
|
|
164
|
-
for (let h = i; h < a; h++) {
|
|
165
|
-
let g = this.dataItems[h];
|
|
166
|
-
h % l != 0 && (this._createAssets(g, ["minor"], !0), this._toggleDataItem(g, !0), this._prepareDataItem(g, 0, 1), n || (t = g.get("label")) === null || t === void 0 || t.setPrivate("visible", !1));
|
|
167
|
-
}
|
|
168
|
-
this._updateGhost();
|
|
169
|
-
}
|
|
170
|
-
_prepareDataItem(t, e, s) {
|
|
171
|
-
let i = this.get("renderer"), a = t.get("categoryLocation", 0), n = t.get("endCategoryLocation", 1), d = t.get("index");
|
|
172
|
-
b(d) || (d = this.categoryToIndex(t.get("category")));
|
|
173
|
-
let o = this.indexToPosition(d, a), l = t.get("endCategory"), r;
|
|
174
|
-
l ? (r = this.categoryToIndex(l), b(r) || (r = d)) : r = d;
|
|
175
|
-
let h = this.indexToPosition(r, n), g, m;
|
|
176
|
-
if (t.get("isRange")) {
|
|
177
|
-
if (g = r, !b(d)) {
|
|
178
|
-
this._toggleDataItem(t, !1);
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
} else
|
|
182
|
-
g = d + this._frequency - 1;
|
|
183
|
-
m = this.indexToPosition(g, n), i.updateLabel(t.get("label"), o, h, s), i.updateGrid(t.get("grid"), o, h), i.updateTick(t.get("tick"), o, h, s), i.updateFill(t.get("axisFill"), o, m), this._processBullet(t), i.updateBullet(t.get("bullet"), o, h);
|
|
184
|
-
const f = this.get("fillRule");
|
|
185
|
-
f && f(t, e);
|
|
186
|
-
}
|
|
187
|
-
startIndex() {
|
|
188
|
-
let t = this.dataItems.length;
|
|
189
|
-
return Math.min(Math.max(this.getPrivate("startIndex", 0), 0), t - 1);
|
|
190
|
-
}
|
|
191
|
-
endIndex() {
|
|
192
|
-
let t = this.dataItems.length;
|
|
193
|
-
return Math.max(1, Math.min(this.getPrivate("endIndex", t), t));
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* @ignore
|
|
197
|
-
*/
|
|
198
|
-
baseValue() {
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
basePosition() {
|
|
204
|
-
return 0;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Returns X coordinate in pixels corresponding to specific category index.
|
|
208
|
-
*
|
|
209
|
-
* @param value Index
|
|
210
|
-
* @return X coordinate
|
|
211
|
-
*/
|
|
212
|
-
getX(t) {
|
|
213
|
-
let e = this._itemMap[t];
|
|
214
|
-
return e ? this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index", 0))) : NaN;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Returns Y coordinate in pixels corresponding to specific category index.
|
|
218
|
-
*
|
|
219
|
-
* @param value Index
|
|
220
|
-
* @return Y coordinate
|
|
221
|
-
*/
|
|
222
|
-
getY(t) {
|
|
223
|
-
let e = this._itemMap[t];
|
|
224
|
-
return e ? this._settings.renderer.positionToCoordinate(this.indexToPosition(e.get("index", 0))) : NaN;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @ignore
|
|
228
|
-
*/
|
|
229
|
-
getDataItemPositionX(t, e, s, i) {
|
|
230
|
-
const a = t.get(e), n = this._itemMap[a];
|
|
231
|
-
return n ? this.indexToPosition(n.get("index", 0), s) : NaN;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* @ignore
|
|
235
|
-
*/
|
|
236
|
-
getDataItemCoordinateX(t, e, s, i) {
|
|
237
|
-
return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t, e, s, i));
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* @ignore
|
|
241
|
-
*/
|
|
242
|
-
getDataItemPositionY(t, e, s, i) {
|
|
243
|
-
const a = t.get(e), n = this._itemMap[a];
|
|
244
|
-
return n ? this.indexToPosition(n.get("index", 0), s) : NaN;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* @ignore
|
|
248
|
-
*/
|
|
249
|
-
getDataItemCoordinateY(t, e, s, i) {
|
|
250
|
-
return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t, e, s, i));
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Converts category index to a relative position.
|
|
254
|
-
*
|
|
255
|
-
* `location` indicates relative position within category: 0 - start, 1 - end.
|
|
256
|
-
*
|
|
257
|
-
* If not set, will use middle (0.5) of the category.
|
|
258
|
-
*
|
|
259
|
-
* @param index Index
|
|
260
|
-
* @param location Location
|
|
261
|
-
* @return Index
|
|
262
|
-
*/
|
|
263
|
-
indexToPosition(t, e, s) {
|
|
264
|
-
let i = this.dataItems.length, a = 0;
|
|
265
|
-
if (i == 0 || (t >= i && (t = i - 1, e = 1), b(e) || (e = 0.5), !b(t)))
|
|
266
|
-
return 0;
|
|
267
|
-
let n = this.get("startLocation", 0), d = this.get("endLocation", 1);
|
|
268
|
-
if (!this.get("cellSizeField"))
|
|
269
|
-
i -= n, i -= 1 - d, a = (t + e - n) / i;
|
|
270
|
-
else {
|
|
271
|
-
let o = s ? "finalCellSize" : "cellSize";
|
|
272
|
-
const l = this.dataItems;
|
|
273
|
-
let r = 0;
|
|
274
|
-
p(this.dataItems, (m) => {
|
|
275
|
-
r += m.get(o, 1);
|
|
276
|
-
}), r -= n * l[0].get(o, 1), r -= (1 - d) * l[l.length - 1].get(o, 1);
|
|
277
|
-
let h = 0;
|
|
278
|
-
for (let m = 0; m < t; m++)
|
|
279
|
-
h += l[m].get(o, 1);
|
|
280
|
-
let g = l[t].get(o, 1);
|
|
281
|
-
a = (h + e * g - n * l[0].get(o, 1)) / r;
|
|
282
|
-
}
|
|
283
|
-
if (!s) {
|
|
284
|
-
let o = this.dataItems[t];
|
|
285
|
-
o && (a += o.get("deltaPosition", 0));
|
|
286
|
-
}
|
|
287
|
-
return a;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Returns a position of a category.
|
|
291
|
-
*
|
|
292
|
-
* @param category Category to look up
|
|
293
|
-
* @return Position
|
|
294
|
-
*/
|
|
295
|
-
categoryToPosition(t) {
|
|
296
|
-
let e = this._itemMap[t];
|
|
297
|
-
return e ? this.indexToPosition(e.get("index")) : NaN;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Returns an index of a category.
|
|
301
|
-
*
|
|
302
|
-
* @param category Category to look up
|
|
303
|
-
* @return Index
|
|
304
|
-
*/
|
|
305
|
-
categoryToIndex(t) {
|
|
306
|
-
let e = this._itemMap[t];
|
|
307
|
-
return e ? e.get("index") : NaN;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* @ignore
|
|
311
|
-
*/
|
|
312
|
-
dataItemToPosition(t) {
|
|
313
|
-
return this.indexToPosition(t.get("index"));
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* @ignore
|
|
317
|
-
*/
|
|
318
|
-
roundAxisPosition(t, e) {
|
|
319
|
-
return t += (0.5 - e) / this.dataItems.length, this.indexToPosition(this.axisPositionToIndex(t), e);
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Returns an index of the category that corresponds to specific pixel
|
|
323
|
-
* position within axis.
|
|
324
|
-
*
|
|
325
|
-
* @param position Position (px)
|
|
326
|
-
* @return Category index
|
|
327
|
-
*/
|
|
328
|
-
axisPositionToIndex(t) {
|
|
329
|
-
let e = this.dataItems.length;
|
|
330
|
-
if (e === 0)
|
|
331
|
-
return 0;
|
|
332
|
-
if (this.get("cellSizeField")) {
|
|
333
|
-
let s = 0, i = [];
|
|
334
|
-
p(this.dataItems, (l) => {
|
|
335
|
-
const r = l.get("cellSize", 1);
|
|
336
|
-
i.push(r), s += r;
|
|
337
|
-
});
|
|
338
|
-
let a = this.get("startLocation", 0), n = this.get("endLocation", 1);
|
|
339
|
-
s -= a, s -= 1 - n;
|
|
340
|
-
let d = t * s + a, o = 0;
|
|
341
|
-
for (let l = 0; l < e; l++) {
|
|
342
|
-
const r = i[l];
|
|
343
|
-
if (d < o + r)
|
|
344
|
-
return l;
|
|
345
|
-
o += r;
|
|
346
|
-
}
|
|
347
|
-
return e - 1;
|
|
348
|
-
} else
|
|
349
|
-
return L(Math.floor(t * e), 0, e - 1);
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Returns text to be used in an axis tooltip for specific relative position.
|
|
353
|
-
*
|
|
354
|
-
* @param position Position
|
|
355
|
-
* @return Tooltip text
|
|
356
|
-
*/
|
|
357
|
-
getTooltipText(t, e) {
|
|
358
|
-
const s = this.dataItems[this.axisPositionToIndex(t)];
|
|
359
|
-
if (s) {
|
|
360
|
-
const i = s.get("label");
|
|
361
|
-
if (i)
|
|
362
|
-
return X(i, this.get("tooltipText", ""));
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
_updateTooltipText(t, e) {
|
|
366
|
-
t._setDataItem(this.dataItems[this.axisPositionToIndex(e)]), t.label.text.markDirtyText();
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Returns a data item from series that is closest to the `position`.
|
|
370
|
-
*
|
|
371
|
-
* @param series Series
|
|
372
|
-
* @param position Relative position
|
|
373
|
-
* @return Data item
|
|
374
|
-
*/
|
|
375
|
-
getSeriesItem(t, e) {
|
|
376
|
-
if (this.dataItems.length > 0) {
|
|
377
|
-
let s = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), i = this.axisPositionToIndex(e), a = t.dataItems[i], n = this.dataItems[i], d = n.get("category");
|
|
378
|
-
if (a && n && a.get(s) === d)
|
|
379
|
-
return a;
|
|
380
|
-
for (let o = 0, l = t.dataItems.length; o < l; o++) {
|
|
381
|
-
let r = t.dataItems[o];
|
|
382
|
-
if (r.get(s) === d)
|
|
383
|
-
return r;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
_getIndices(t, e) {
|
|
388
|
-
let s = this.dataItems.length, i = 0, a = s, n = "cellSize";
|
|
389
|
-
if (this.get("cellSizeField")) {
|
|
390
|
-
let d = 0;
|
|
391
|
-
const o = this.dataItems;
|
|
392
|
-
if (o.length == 0)
|
|
393
|
-
return { startIndex: 0, endIndex: 0 };
|
|
394
|
-
p(o, (r) => {
|
|
395
|
-
d += r.get(n, 1);
|
|
396
|
-
}), d -= this.get("startLocation", 0) * o[0].get(n, 1), d -= (1 - this.get("endLocation", 1)) * o[o.length - 1].get(n, 1);
|
|
397
|
-
let l = 0;
|
|
398
|
-
for (let r = 0; r < s; r++)
|
|
399
|
-
if (l += this.dataItems[r].get(n, 1), Math.round(l) > Math.round(t * d)) {
|
|
400
|
-
i = r;
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
for (let r = i + 1; r < s; r++)
|
|
404
|
-
if (l += this.dataItems[r].get(n, 1), Math.round(l) >= Math.round(e * d)) {
|
|
405
|
-
a = r + 1;
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
i = Math.max(i, 0), a = Math.min(a, s);
|
|
409
|
-
} else
|
|
410
|
-
i = Math.max(Math.round(this.get("start", 0) * s), 0), a = Math.min(Math.round(this.get("end", 1) * s), s);
|
|
411
|
-
return { startIndex: i, endIndex: a };
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Zooms the axis to specific `start` and `end` indexes.
|
|
415
|
-
*
|
|
416
|
-
* Optional `duration` specifies duration of zoom animation in milliseconds.
|
|
417
|
-
*
|
|
418
|
-
* @param start Start index
|
|
419
|
-
* @param end End index
|
|
420
|
-
* @param duration Duration in milliseconds
|
|
421
|
-
*/
|
|
422
|
-
zoomToIndexes(t, e, s) {
|
|
423
|
-
let i = this.dataItems.length;
|
|
424
|
-
this.get("cellSizeField") ? (t = Math.min(Math.max(t, 0), i), e = Math.max(Math.min(e, i), 1), this.setPrivateRaw("startIndex", t), this.setPrivateRaw("endIndex", e), this.zoom(this.indexToPosition(t, 0, !0), this.indexToPosition(e, 0, !0), s)) : this.zoom(t / i, e / i, s);
|
|
425
|
-
}
|
|
426
|
-
zoomToCategories(t, e, s) {
|
|
427
|
-
this.zoomToIndexes(this.categoryToIndex(t), this.categoryToIndex(e) + 1, s);
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Returns position span between start and end of a single cell in axis.
|
|
431
|
-
*
|
|
432
|
-
* @since 5.2.30
|
|
433
|
-
* @return Position
|
|
434
|
-
*/
|
|
435
|
-
getCellWidthPosition() {
|
|
436
|
-
return this._frequency / this.dataItems.length / (this.get("end", 1) - this.get("start", 0));
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* @ignore
|
|
440
|
-
*/
|
|
441
|
-
nextPosition(t) {
|
|
442
|
-
t == null && (t = 1), this.get("renderer").getPrivate("letter") == "Y" && (t *= -1);
|
|
443
|
-
const e = this.getPrivate("tooltipPosition", 0), s = L(this.axisPositionToIndex(e) + t, 0, this.dataItems.length - 1);
|
|
444
|
-
return this.toGlobalPosition(this.indexToPosition(s));
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
Object.defineProperty(P, "className", {
|
|
448
|
-
enumerable: !0,
|
|
449
|
-
configurable: !0,
|
|
450
|
-
writable: !0,
|
|
451
|
-
value: "CategoryAxis"
|
|
452
|
-
});
|
|
453
|
-
Object.defineProperty(P, "classNames", {
|
|
454
|
-
enumerable: !0,
|
|
455
|
-
configurable: !0,
|
|
456
|
-
writable: !0,
|
|
457
|
-
value: S.classNames.concat([P.className])
|
|
458
|
-
});
|
|
459
|
-
const it = ({ data: A, type: t, color: e }) => {
|
|
460
|
-
const s = V(null), i = q();
|
|
461
|
-
return W(() => {
|
|
462
|
-
if (!s.current) return;
|
|
463
|
-
const a = Y.new(s.current);
|
|
464
|
-
a.setThemes([j.new(a)]);
|
|
465
|
-
const n = a.container.children.push(
|
|
466
|
-
O.new(a, {
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { R as u, A as h, T as A } from "../../AnimatedTheme-jnasw6rT.js";
|
|
3
|
+
import { useTheme as g, alpha as v } from "@mui/material";
|
|
4
|
+
import { useRef as x, useLayoutEffect as w } from "react";
|
|
5
|
+
import { X as R, V as y } from "../../AxisRenderer-DTyLLA6c.js";
|
|
6
|
+
import { C as L } from "../../CategoryAxis-CwnfaGc8.js";
|
|
7
|
+
import { A as T, a as b } from "../../AxisRendererY-C_ItLPNV.js";
|
|
8
|
+
import { C as X } from "../../ColumnSeries-CjgdJ2QL.js";
|
|
9
|
+
import { c as d } from "../../ColorSet-C7vpNXhM.js";
|
|
10
|
+
import { L as C } from "../../LineSeries-Uiv5o56b.js";
|
|
11
|
+
const G = ({ data: l, type: n, color: c }) => {
|
|
12
|
+
const a = x(null), r = g();
|
|
13
|
+
return w(() => {
|
|
14
|
+
if (!a.current) return;
|
|
15
|
+
const e = u.new(a.current);
|
|
16
|
+
e.setThemes([h.new(e)]);
|
|
17
|
+
const s = e.container.children.push(
|
|
18
|
+
R.new(e, {
|
|
467
19
|
panX: !1,
|
|
468
20
|
panY: !1,
|
|
469
21
|
wheelX: "none",
|
|
@@ -473,62 +25,62 @@ const it = ({ data: A, type: t, color: e }) => {
|
|
|
473
25
|
paddingTop: 0,
|
|
474
26
|
paddingBottom: 0
|
|
475
27
|
})
|
|
476
|
-
),
|
|
477
|
-
|
|
28
|
+
), i = s.xAxes.push(
|
|
29
|
+
L.new(e, {
|
|
478
30
|
categoryField: "t",
|
|
479
|
-
renderer:
|
|
31
|
+
renderer: T.new(e, {
|
|
480
32
|
minGridDistance: 10
|
|
481
33
|
}),
|
|
482
|
-
tooltip:
|
|
34
|
+
tooltip: A.new(e, {})
|
|
483
35
|
})
|
|
484
|
-
),
|
|
485
|
-
|
|
36
|
+
), p = i.get("renderer");
|
|
37
|
+
p.grid.template.set("visible", !1), p.labels.template.set("visible", !1), i.setAll({
|
|
486
38
|
startLocation: 0.5,
|
|
487
39
|
endLocation: 0.5
|
|
488
|
-
}),
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
renderer:
|
|
40
|
+
}), i.data.setAll(l);
|
|
41
|
+
const o = s.yAxes.push(
|
|
42
|
+
y.new(e, {
|
|
43
|
+
renderer: b.new(e, {})
|
|
492
44
|
})
|
|
493
|
-
),
|
|
494
|
-
|
|
495
|
-
let
|
|
496
|
-
return
|
|
497
|
-
|
|
45
|
+
), m = o.get("renderer");
|
|
46
|
+
m.grid.template.set("visible", !1), m.labels.template.set("visible", !1);
|
|
47
|
+
let t;
|
|
48
|
+
return n === "column" ? (t = s.series.push(
|
|
49
|
+
X.new(e, {
|
|
498
50
|
name: "Series",
|
|
499
|
-
xAxis:
|
|
500
|
-
yAxis:
|
|
51
|
+
xAxis: i,
|
|
52
|
+
yAxis: o,
|
|
501
53
|
valueYField: "v",
|
|
502
54
|
categoryXField: "t",
|
|
503
|
-
fill:
|
|
55
|
+
fill: d(r.palette.divider)
|
|
504
56
|
})
|
|
505
|
-
),
|
|
57
|
+
), t.columns.template.setAll({
|
|
506
58
|
cornerRadiusTL: 2,
|
|
507
59
|
cornerRadiusTR: 2,
|
|
508
60
|
strokeOpacity: 0
|
|
509
|
-
})) : (
|
|
510
|
-
|
|
61
|
+
})) : (t = s.series.push(
|
|
62
|
+
C.new(e, {
|
|
511
63
|
name: "Series",
|
|
512
|
-
xAxis:
|
|
513
|
-
yAxis:
|
|
64
|
+
xAxis: i,
|
|
65
|
+
yAxis: o,
|
|
514
66
|
valueYField: "v",
|
|
515
67
|
categoryXField: "t",
|
|
516
68
|
// @ts-expect-error amcharts5 typing accepts string/Color; alpha returns rgba string
|
|
517
|
-
fill:
|
|
518
|
-
stroke:
|
|
69
|
+
fill: v(r.palette.divider, 0.25),
|
|
70
|
+
stroke: d(r.palette.divider)
|
|
519
71
|
})
|
|
520
|
-
),
|
|
72
|
+
), t.strokes.template.setAll({
|
|
521
73
|
strokeWidth: 1
|
|
522
|
-
}),
|
|
74
|
+
}), t.fills.template.setAll({
|
|
523
75
|
fillOpacity: 1,
|
|
524
76
|
visible: !0
|
|
525
|
-
})),
|
|
526
|
-
|
|
77
|
+
})), t.data.setAll(l), t.appear(1e3), s.appear(1e3, 100), () => {
|
|
78
|
+
e.dispose();
|
|
527
79
|
};
|
|
528
|
-
}, [
|
|
80
|
+
}, [l, n, c, r.palette.mode, r.palette.divider]), /* @__PURE__ */ f(
|
|
529
81
|
"div",
|
|
530
82
|
{
|
|
531
|
-
ref:
|
|
83
|
+
ref: a,
|
|
532
84
|
style: {
|
|
533
85
|
width: "calc(100% + 10px)",
|
|
534
86
|
height: "100%",
|
|
@@ -539,5 +91,5 @@ const it = ({ data: A, type: t, color: e }) => {
|
|
|
539
91
|
);
|
|
540
92
|
};
|
|
541
93
|
export {
|
|
542
|
-
|
|
94
|
+
G as MetricChart
|
|
543
95
|
};
|