@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.
- 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 +42 -9
- 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,209 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { X as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
themeTagsSelf: f(this.itemContainers.template.get("themeTagsSelf", []), ["itemcontainer"]),
|
|
15
|
-
background: O.new(this._root, {
|
|
16
|
-
themeTags: f(this.itemContainers.template.get("themeTags", []), ["legend", "item", "background"]),
|
|
17
|
-
themeTagsSelf: f(this.itemContainers.template.get("themeTagsSelf", []), ["itemcontainer"])
|
|
18
|
-
})
|
|
19
|
-
}, [this.itemContainers.template])))
|
|
20
|
-
}), Object.defineProperty(this, "markers", {
|
|
21
|
-
enumerable: !0,
|
|
22
|
-
configurable: !0,
|
|
23
|
-
writable: !0,
|
|
24
|
-
value: this.addDisposer(new C(T.new({}), () => A._new(this._root, {
|
|
25
|
-
themeTags: f(this.markers.template.get("themeTags", []), ["legend", "marker"])
|
|
26
|
-
}, [this.markers.template])))
|
|
27
|
-
}), Object.defineProperty(this, "labels", {
|
|
28
|
-
enumerable: !0,
|
|
29
|
-
configurable: !0,
|
|
30
|
-
writable: !0,
|
|
31
|
-
value: this.addDisposer(new C(T.new({}), () => X._new(this._root, {
|
|
32
|
-
themeTags: f(this.labels.template.get("themeTags", []), ["legend", "label"])
|
|
33
|
-
}, [this.labels.template])))
|
|
34
|
-
}), Object.defineProperty(this, "valueLabels", {
|
|
35
|
-
enumerable: !0,
|
|
36
|
-
configurable: !0,
|
|
37
|
-
writable: !0,
|
|
38
|
-
value: this.addDisposer(new C(T.new({}), () => X._new(this._root, {
|
|
39
|
-
themeTags: f(this.valueLabels.template.get("themeTags", []), ["legend", "label", "value"])
|
|
40
|
-
}, [this.valueLabels.template])))
|
|
41
|
-
}), Object.defineProperty(this, "markerRectangles", {
|
|
42
|
-
enumerable: !0,
|
|
43
|
-
configurable: !0,
|
|
44
|
-
writable: !0,
|
|
45
|
-
value: this.addDisposer(new C(T.new({}), () => O._new(this._root, {
|
|
46
|
-
themeTags: f(this.markerRectangles.template.get("themeTags", []), ["legend", "marker", "rectangle"])
|
|
47
|
-
}, [this.markerRectangles.template])))
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
_afterNew() {
|
|
51
|
-
this._settings.themeTags = f(this._settings.themeTags, ["legend"]), this.fields.push("name", "stroke", "fill"), super._afterNew();
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @ignore
|
|
55
|
-
*/
|
|
56
|
-
makeItemContainer(e) {
|
|
57
|
-
const t = this.children.push(this.itemContainers.make());
|
|
58
|
-
return t._setDataItem(e), this.itemContainers.push(t), t.states.create("disabled", {}), t;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @ignore
|
|
62
|
-
*/
|
|
63
|
-
makeMarker() {
|
|
64
|
-
const e = this.markers.make();
|
|
65
|
-
return this.markers.push(e), e.states.create("disabled", {}), e;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @ignore
|
|
69
|
-
*/
|
|
70
|
-
makeLabel() {
|
|
71
|
-
const e = this.labels.make();
|
|
72
|
-
return e.states.create("disabled", {}), e;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @ignore
|
|
76
|
-
*/
|
|
77
|
-
makeValueLabel() {
|
|
78
|
-
const e = this.valueLabels.make();
|
|
79
|
-
return e.states.create("disabled", {}), e;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @ignore
|
|
83
|
-
*/
|
|
84
|
-
makeMarkerRectangle() {
|
|
85
|
-
const e = this.markerRectangles.make();
|
|
86
|
-
return e.states.create("disabled", {}), e;
|
|
87
|
-
}
|
|
88
|
-
processDataItem(e) {
|
|
89
|
-
super.processDataItem(e);
|
|
90
|
-
const t = this.makeItemContainer(e), c = this.get("nameField"), r = this.get("fillField"), l = this.get("strokeField");
|
|
91
|
-
if (t) {
|
|
92
|
-
const o = this.get("clickTarget", "itemContainer"), s = e.dataContext;
|
|
93
|
-
s && s.set && s.set("legendDataItem", e), t._setDataItem(e), e.set("itemContainer", t);
|
|
94
|
-
const m = this.makeMarker();
|
|
95
|
-
if (m) {
|
|
96
|
-
t.children.push(m), m._setDataItem(e), e.set("marker", m);
|
|
97
|
-
const i = this.get("useDefaultMarker"), k = m.children.push(this.makeMarkerRectangle());
|
|
98
|
-
let g = e.get("fill"), n = e.get("stroke");
|
|
99
|
-
e.set("markerRectangle", k), s && s.get && (g = s.get(r, g), n = s.get(l, n)), n || (n = g), i ? s.on && (s.on(r, () => {
|
|
100
|
-
k.set("fill", s.get(r));
|
|
101
|
-
}), s.on(l, () => {
|
|
102
|
-
k.set("stroke", s.get(l));
|
|
103
|
-
})) : s && s.createLegendMarker && s.createLegendMarker(), k.setAll({ fill: g, stroke: n });
|
|
104
|
-
const a = s.component;
|
|
105
|
-
a && a.updateLegendMarker && a.updateLegendMarker(s);
|
|
106
|
-
}
|
|
107
|
-
const d = this.makeLabel();
|
|
108
|
-
if (d) {
|
|
109
|
-
t.children.push(d), d._setDataItem(e), e.set("label", d), d.text.on("text", () => {
|
|
110
|
-
t.setRaw("ariaLabel", d.text._getText() + (this.get("clickTarget") !== "none" ? "; " + this._t("Press ENTER to toggle") : "")), t.markDirtyAccessibility();
|
|
111
|
-
}), s && s.get && e.set("name", s.get(c));
|
|
112
|
-
let i = e.get("name");
|
|
113
|
-
i && d.set("text", i);
|
|
114
|
-
}
|
|
115
|
-
const v = this.makeValueLabel();
|
|
116
|
-
if (v && (t.children.push(v), v._setDataItem(e), e.set("valueLabel", v)), s && s.show && (s.on("visible", (i) => {
|
|
117
|
-
t.set("disabled", !i);
|
|
118
|
-
}), s.get("visible") || t.set("disabled", !0), o != "none")) {
|
|
119
|
-
let i = t;
|
|
120
|
-
o == "marker" && (i = m), this._addClickEvents(i, s, e);
|
|
121
|
-
}
|
|
122
|
-
this.children.values.sort((i, k) => {
|
|
123
|
-
const g = i.dataItem.dataContext, n = k.dataItem.dataContext;
|
|
124
|
-
if (g && n) {
|
|
125
|
-
const a = this.data.indexOf(g), h = this.data.indexOf(n);
|
|
126
|
-
if (a > h)
|
|
127
|
-
return 1;
|
|
128
|
-
if (a < h)
|
|
129
|
-
return -1;
|
|
130
|
-
}
|
|
131
|
-
return 0;
|
|
132
|
-
}), s && s.updateLegendValue && s.updateLegendValue();
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
_addClickEvents(e, t, c) {
|
|
136
|
-
e.set("cursorOverStyle", "pointer"), e.events.on("pointerover", () => {
|
|
137
|
-
const r = t.component;
|
|
138
|
-
r && r.hoverDataItem && r.hoverDataItem(t);
|
|
139
|
-
}), e.events.on("pointerout", () => {
|
|
140
|
-
const r = t.component;
|
|
141
|
-
r && r.hoverDataItem && r.unhoverDataItem(t);
|
|
142
|
-
}), e.events.on("click", () => {
|
|
143
|
-
const r = c.get("label").text._getText();
|
|
144
|
-
t.show && t.isHidden && (t.isHidden() || t.get("visible") === !1) ? (t.show(), e.set("disabled", !1), this._root.readerAlert(this._t("%1 shown", this._root.locale, r))) : t.hide && (t.hide(), e.set("disabled", !0), this._root.readerAlert(this._t("%1 hidden", this._root.locale, r)));
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @ignore
|
|
149
|
-
*/
|
|
150
|
-
disposeDataItem(e) {
|
|
151
|
-
super.disposeDataItem(e);
|
|
152
|
-
const t = e.dataContext;
|
|
153
|
-
t && t.get && t.get("legendDataItem") == e && t.set("legendDataItem", void 0);
|
|
154
|
-
let c = e.get("itemContainer");
|
|
155
|
-
c && (this.itemContainers.removeValue(c), c.dispose());
|
|
156
|
-
let r = e.get("marker");
|
|
157
|
-
r && (this.markers.removeValue(r), r.dispose());
|
|
158
|
-
let l = e.get("markerRectangle");
|
|
159
|
-
l && (this.markerRectangles.removeValue(l), l.dispose());
|
|
160
|
-
let o = e.get("label");
|
|
161
|
-
o && (this.labels.removeValue(o), o.dispose());
|
|
162
|
-
let s = e.get("valueLabel");
|
|
163
|
-
s && (this.valueLabels.removeValue(s), s.dispose());
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
Object.defineProperty(D, "className", {
|
|
167
|
-
enumerable: !0,
|
|
168
|
-
configurable: !0,
|
|
169
|
-
writable: !0,
|
|
170
|
-
value: "Legend"
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(D, "classNames", {
|
|
173
|
-
enumerable: !0,
|
|
174
|
-
configurable: !0,
|
|
175
|
-
writable: !0,
|
|
176
|
-
value: V.classNames.concat([D.className])
|
|
177
|
-
});
|
|
178
|
-
const le = (y) => {
|
|
179
|
-
const e = K({
|
|
180
|
-
props: y,
|
|
1
|
+
import { R as I, A as W, T as z } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as S } from "@mui/material";
|
|
3
|
+
import { useRef as d, useLayoutEffect as F } from "react";
|
|
4
|
+
import { X as V, V as G } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
5
|
+
import { X as M } from "../../../XYCursor-C8WktvKM.js";
|
|
6
|
+
import { D as N } from "../../../DateAxis-YX3QNIB-.js";
|
|
7
|
+
import { A as P, a as U } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
8
|
+
import { C as Z, c as j, p as w } from "../../../ColorSet-C7vpNXhM.js";
|
|
9
|
+
import { L as q } from "../../../LineSeries-Uiv5o56b.js";
|
|
10
|
+
import { L as B } from "../../../Legend-Dp_MKfS4.js";
|
|
11
|
+
const ae = (v) => {
|
|
12
|
+
const u = S({
|
|
13
|
+
props: v,
|
|
181
14
|
name: "HCHighlightLineChart"
|
|
182
15
|
}), {
|
|
183
|
-
seriesData:
|
|
184
|
-
height:
|
|
185
|
-
width:
|
|
186
|
-
chartId:
|
|
187
|
-
showLegend:
|
|
188
|
-
loading:
|
|
189
|
-
emptyMessage:
|
|
190
|
-
sx:
|
|
191
|
-
...
|
|
192
|
-
} =
|
|
193
|
-
...
|
|
194
|
-
height:
|
|
195
|
-
width:
|
|
196
|
-
chartId:
|
|
197
|
-
showLegend:
|
|
198
|
-
loading:
|
|
199
|
-
emptyMessage:
|
|
200
|
-
},
|
|
201
|
-
return
|
|
202
|
-
if (!
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
const
|
|
206
|
-
|
|
16
|
+
seriesData: m,
|
|
17
|
+
height: f = "500px",
|
|
18
|
+
width: k = "100%",
|
|
19
|
+
chartId: p = "highlight-line-chart",
|
|
20
|
+
showLegend: l = !0,
|
|
21
|
+
loading: g = !1,
|
|
22
|
+
emptyMessage: x = "No data available",
|
|
23
|
+
sx: A,
|
|
24
|
+
...L
|
|
25
|
+
} = u, X = {
|
|
26
|
+
...u,
|
|
27
|
+
height: f,
|
|
28
|
+
width: k,
|
|
29
|
+
chartId: p,
|
|
30
|
+
showLegend: l,
|
|
31
|
+
loading: g,
|
|
32
|
+
emptyMessage: x
|
|
33
|
+
}, y = d(null), C = d(null), h = d(null);
|
|
34
|
+
return F(() => {
|
|
35
|
+
if (!h.current) return;
|
|
36
|
+
const e = I.new(h.current);
|
|
37
|
+
C.current = e, e.setThemes([W.new(e)]);
|
|
38
|
+
const o = e.container.children.push(
|
|
39
|
+
V.new(e, {
|
|
207
40
|
panX: !0,
|
|
208
41
|
panY: !0,
|
|
209
42
|
wheelX: "panX",
|
|
@@ -211,83 +44,83 @@ const le = (y) => {
|
|
|
211
44
|
pinchZoomX: !0
|
|
212
45
|
})
|
|
213
46
|
);
|
|
214
|
-
|
|
47
|
+
y.current = o, o.set(
|
|
215
48
|
"cursor",
|
|
216
|
-
|
|
49
|
+
M.new(e, {
|
|
217
50
|
behavior: "zoomX"
|
|
218
51
|
})
|
|
219
52
|
).lineY.set("visible", !1);
|
|
220
|
-
const
|
|
221
|
-
|
|
53
|
+
const R = o.xAxes.push(
|
|
54
|
+
N.new(e, {
|
|
222
55
|
maxDeviation: 0.3,
|
|
223
56
|
baseInterval: { timeUnit: "day", count: 1 },
|
|
224
|
-
renderer:
|
|
57
|
+
renderer: P.new(e, {
|
|
225
58
|
minorGridEnabled: !0
|
|
226
59
|
})
|
|
227
60
|
})
|
|
228
|
-
),
|
|
229
|
-
|
|
230
|
-
renderer: U.new(
|
|
61
|
+
), Y = o.yAxes.push(
|
|
62
|
+
G.new(e, {
|
|
63
|
+
renderer: U.new(e, {})
|
|
231
64
|
})
|
|
232
|
-
),
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
name:
|
|
237
|
-
xAxis:
|
|
238
|
-
yAxis:
|
|
65
|
+
), c = [], b = Z.new(e, {});
|
|
66
|
+
m.forEach((t, i) => {
|
|
67
|
+
const s = t.color ? j(t.color) : b.getIndex(i), r = o.series.push(
|
|
68
|
+
q.new(e, {
|
|
69
|
+
name: t.name,
|
|
70
|
+
xAxis: R,
|
|
71
|
+
yAxis: Y,
|
|
239
72
|
valueYField: "value",
|
|
240
73
|
valueXField: "date",
|
|
241
|
-
stroke:
|
|
242
|
-
fill:
|
|
243
|
-
tooltip:
|
|
74
|
+
stroke: s,
|
|
75
|
+
fill: s,
|
|
76
|
+
tooltip: z.new(e, {
|
|
244
77
|
labelText: "{name}: {valueY}"
|
|
245
78
|
})
|
|
246
79
|
})
|
|
247
80
|
);
|
|
248
|
-
|
|
81
|
+
r.strokes.template.setAll({
|
|
249
82
|
strokeWidth: 2
|
|
250
|
-
}),
|
|
83
|
+
}), r.data.setAll(t.data), c.push(r);
|
|
251
84
|
});
|
|
252
|
-
let
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
centerX:
|
|
256
|
-
x:
|
|
257
|
-
layout:
|
|
85
|
+
let n = null;
|
|
86
|
+
l && (n = o.children.push(
|
|
87
|
+
B.new(e, {
|
|
88
|
+
centerX: w(50),
|
|
89
|
+
x: w(50),
|
|
90
|
+
layout: e.horizontalLayout
|
|
258
91
|
})
|
|
259
|
-
),
|
|
260
|
-
const
|
|
261
|
-
var
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
92
|
+
), n.data.setAll(o.series.values));
|
|
93
|
+
const E = 1, O = 0.2, T = 4, D = (t) => {
|
|
94
|
+
var r;
|
|
95
|
+
const s = (r = t.target.dataItem) == null ? void 0 : r.dataContext;
|
|
96
|
+
s && (s.strokes.template.set("strokeOpacity", 1), s.strokes.template.set("strokeWidth", T), c.forEach((a) => {
|
|
97
|
+
a !== s && (a.strokes.template.set("strokeOpacity", O), a.strokes.template.set("strokeWidth", 1));
|
|
265
98
|
}));
|
|
266
|
-
}, H = (
|
|
267
|
-
var
|
|
268
|
-
((
|
|
269
|
-
|
|
99
|
+
}, H = (t) => {
|
|
100
|
+
var r;
|
|
101
|
+
((r = t.target.dataItem) == null ? void 0 : r.dataContext) && c.forEach((a) => {
|
|
102
|
+
a.strokes.template.set("strokeOpacity", E), a.strokes.template.set("strokeWidth", 2);
|
|
270
103
|
});
|
|
271
104
|
};
|
|
272
|
-
return
|
|
273
|
-
|
|
105
|
+
return n && (n.markers.template.events.on("pointerover", D), n.markers.template.events.on("pointerout", H)), o.appear(1e3, 100), c.forEach((t, i) => {
|
|
106
|
+
t.appear(1e3, 100 * (i + 1));
|
|
274
107
|
}), () => {
|
|
275
|
-
|
|
108
|
+
e.dispose();
|
|
276
109
|
};
|
|
277
|
-
}, [
|
|
278
|
-
chartDivRef:
|
|
279
|
-
seriesData:
|
|
280
|
-
height:
|
|
281
|
-
width:
|
|
282
|
-
chartId:
|
|
283
|
-
showLegend:
|
|
284
|
-
loading:
|
|
285
|
-
emptyMessage:
|
|
286
|
-
sx:
|
|
287
|
-
other:
|
|
288
|
-
ownerState:
|
|
110
|
+
}, [p, m, l]), {
|
|
111
|
+
chartDivRef: h,
|
|
112
|
+
seriesData: m,
|
|
113
|
+
height: f,
|
|
114
|
+
width: k,
|
|
115
|
+
chartId: p,
|
|
116
|
+
showLegend: l,
|
|
117
|
+
loading: g,
|
|
118
|
+
emptyMessage: x,
|
|
119
|
+
sx: A,
|
|
120
|
+
other: L,
|
|
121
|
+
ownerState: X
|
|
289
122
|
};
|
|
290
123
|
};
|
|
291
124
|
export {
|
|
292
|
-
|
|
125
|
+
ae as useHighlightLineChartLogic
|
|
293
126
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useLineChartLogic as n } from "./logic.js";
|
|
3
|
+
import { LineChartRoot as m } from "./styled.js";
|
|
4
|
+
function s(r) {
|
|
5
|
+
const { chartId: o, ownerState: i, sx: e, other: h } = n(r);
|
|
6
|
+
return /* @__PURE__ */ t(m, { ownerState: i, sx: e, ...h, children: /* @__PURE__ */ t("div", { id: o, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
s as LineChart
|
|
10
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { R as B, a as E, A as M, T as f } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as V, useTheme as z } from "@mui/material";
|
|
3
|
+
import X from "lodash";
|
|
4
|
+
import { useId as H, useRef as N, useEffect as S } from "react";
|
|
5
|
+
import { colorSetFromPalette as U } from "../_common/utils.js";
|
|
6
|
+
import { c as i, p as A, b } from "../../../ColorSet-C7vpNXhM.js";
|
|
7
|
+
import { X as Z, V as _ } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
8
|
+
import { D as $ } from "../../../DateAxis-YX3QNIB-.js";
|
|
9
|
+
import { A as F, a as j } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
10
|
+
import { C as q } from "../../../CategoryAxis-CwnfaGc8.js";
|
|
11
|
+
import { L as G } from "../../../LineSeries-Uiv5o56b.js";
|
|
12
|
+
import { D as J } from "../../../DataProcessor-CHDO51q4.js";
|
|
13
|
+
import { X as K } from "../../../XYCursor-C8WktvKM.js";
|
|
14
|
+
import { L as Q } from "../../../Legend-Dp_MKfS4.js";
|
|
15
|
+
const Ae = (D) => {
|
|
16
|
+
const g = V({ props: D, name: "HCLineChart" }), {
|
|
17
|
+
dimensions: t,
|
|
18
|
+
values: d,
|
|
19
|
+
data: p,
|
|
20
|
+
initDelay: L = 0,
|
|
21
|
+
baseInterval: Y,
|
|
22
|
+
colors: v,
|
|
23
|
+
sx: R,
|
|
24
|
+
...I
|
|
25
|
+
} = g, a = z(), x = `hc-line-chart-${H().replace(/:/g, "")}`, c = N(null);
|
|
26
|
+
S(() => {
|
|
27
|
+
let u;
|
|
28
|
+
return u = setTimeout(() => {
|
|
29
|
+
var y, k, T;
|
|
30
|
+
const e = B.new(x);
|
|
31
|
+
c.current = e;
|
|
32
|
+
const P = E.new(e);
|
|
33
|
+
e.setThemes([M.new(e), P]), e.interfaceColors.setAll({
|
|
34
|
+
text: i(a.palette.text.primary),
|
|
35
|
+
grid: i(a.palette.divider),
|
|
36
|
+
stroke: i(a.palette.divider)
|
|
37
|
+
});
|
|
38
|
+
const r = e.container.children.push(
|
|
39
|
+
Z.new(e, {
|
|
40
|
+
panX: !0,
|
|
41
|
+
panY: !0,
|
|
42
|
+
wheelX: "none",
|
|
43
|
+
wheelY: "none",
|
|
44
|
+
maxTooltipDistance: 0,
|
|
45
|
+
pinchZoomX: !0
|
|
46
|
+
})
|
|
47
|
+
);
|
|
48
|
+
if (r.set("colors", U(e, v)), t.length < 1) {
|
|
49
|
+
console.error("Missing dimensions config!");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (d.length < 1) {
|
|
53
|
+
console.error("Missing values config!");
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
let n, m = p;
|
|
57
|
+
t[0].type === "date" ? (n = r.xAxes.push(
|
|
58
|
+
$.new(e, {
|
|
59
|
+
maxDeviation: 0.1,
|
|
60
|
+
groupData: !1,
|
|
61
|
+
baseInterval: Y || { timeUnit: "day", count: 1 },
|
|
62
|
+
renderer: F.new(e, {}),
|
|
63
|
+
tooltip: f.new(e, {})
|
|
64
|
+
})
|
|
65
|
+
), m = X.orderBy(p, [t[0].value])) : (n = r.xAxes.push(
|
|
66
|
+
q.new(e, {
|
|
67
|
+
categoryField: t[0].value,
|
|
68
|
+
renderer: F.new(e, {}),
|
|
69
|
+
tooltip: f.new(e, {})
|
|
70
|
+
})
|
|
71
|
+
), e.numberFormatter.setAll({
|
|
72
|
+
numberFormat: "#",
|
|
73
|
+
numericFields: ["valueX"]
|
|
74
|
+
}), m = X.orderBy(p, [t[0].value]), n.data.setAll(m));
|
|
75
|
+
const w = r.yAxes.push(
|
|
76
|
+
_.new(e, {
|
|
77
|
+
renderer: j.new(e, {})
|
|
78
|
+
})
|
|
79
|
+
);
|
|
80
|
+
(y = n.get("renderer")) == null || y.grid.template.setAll({
|
|
81
|
+
stroke: i(a.palette.divider),
|
|
82
|
+
strokeOpacity: 1
|
|
83
|
+
}), (k = n.get("renderer")) == null || k.labels.template.setAll({ paddingTop: 12 }), (T = w.get("renderer")) == null || T.grid.template.setAll({
|
|
84
|
+
stroke: i(a.palette.divider),
|
|
85
|
+
strokeOpacity: 1
|
|
86
|
+
}), d.forEach((s) => {
|
|
87
|
+
const o = r.series.push(
|
|
88
|
+
G.new(e, {
|
|
89
|
+
name: s.name,
|
|
90
|
+
xAxis: n,
|
|
91
|
+
yAxis: w,
|
|
92
|
+
valueYField: s.dataFieldName,
|
|
93
|
+
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value },
|
|
94
|
+
tooltip: f.new(e, {
|
|
95
|
+
pointerOrientation: "horizontal",
|
|
96
|
+
labelText: "{name}: {valueY}"
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
t[0].type === "date" && (o.data.processor = J.new(e, {
|
|
101
|
+
dateFormat: "i",
|
|
102
|
+
dateFields: [t[0].value]
|
|
103
|
+
})), o.data.setAll(m), o.strokes.template.setAll({ strokeWidth: 2 }), o.appear();
|
|
104
|
+
}), r.set(
|
|
105
|
+
"cursor",
|
|
106
|
+
K.new(e, { behavior: "none" })
|
|
107
|
+
).lineY.set("visible", !1);
|
|
108
|
+
const l = r.bottomAxesContainer.children.push(
|
|
109
|
+
Q.new(e, {
|
|
110
|
+
width: A(100),
|
|
111
|
+
paddingTop: 10,
|
|
112
|
+
centerX: A(50),
|
|
113
|
+
x: A(50),
|
|
114
|
+
layout: e.gridLayout
|
|
115
|
+
})
|
|
116
|
+
);
|
|
117
|
+
l.itemContainers.template.events.on("pointerover", function(s) {
|
|
118
|
+
var C;
|
|
119
|
+
const o = s.target, W = (C = o == null ? void 0 : o.dataItem) == null ? void 0 : C.dataContext;
|
|
120
|
+
r.series.each(function(h) {
|
|
121
|
+
h !== W ? h.strokes.template.setAll({
|
|
122
|
+
strokeOpacity: 0.15,
|
|
123
|
+
stroke: i(0)
|
|
124
|
+
}) : h.strokes.template.setAll({ strokeWidth: 3 });
|
|
125
|
+
});
|
|
126
|
+
}), l.itemContainers.template.events.on("pointerout", function() {
|
|
127
|
+
r.series.each(function(s) {
|
|
128
|
+
s.strokes.template.setAll({
|
|
129
|
+
strokeOpacity: 1,
|
|
130
|
+
strokeWidth: 2,
|
|
131
|
+
stroke: s.get("fill")
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
}), l.itemContainers.template.set("width", b), l.valueLabels.template.setAll({
|
|
135
|
+
width: b,
|
|
136
|
+
textAlign: "right"
|
|
137
|
+
}), l.data.setAll(r.series.values), r.appear(1e3, 100);
|
|
138
|
+
}, L), () => {
|
|
139
|
+
var e;
|
|
140
|
+
u && clearTimeout(u), (e = c.current) == null || e.dispose(), c.current = null;
|
|
141
|
+
};
|
|
142
|
+
}, [p, t, d, a.palette.mode, v]);
|
|
143
|
+
const O = { ...g };
|
|
144
|
+
return { chartId: x, ownerState: O, sx: R, other: I };
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
Ae as useLineChartLogic
|
|
148
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useLogaritmicScaleLogic as m } from "./logic.js";
|
|
3
|
+
import { LogaritmicScaleRoot as a } from "./styled.js";
|
|
4
|
+
function g(o) {
|
|
5
|
+
const { chartId: i, ownerState: r, sx: e, other: c } = m(o);
|
|
6
|
+
return /* @__PURE__ */ t(a, { ownerState: r, sx: e, ...c, children: /* @__PURE__ */ t("div", { id: i, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
g as LogaritmicScale
|
|
10
|
+
};
|