@hybridcore/ui 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- 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 +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- 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 +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useId as
|
|
6
|
-
import { colorSetFromPalette as
|
|
7
|
-
import { m as M, x as R, b as
|
|
8
|
-
import { a as
|
|
9
|
-
import { R as
|
|
10
|
-
import { X as
|
|
11
|
-
import { C as
|
|
12
|
-
import { L as
|
|
13
|
-
import { L as
|
|
14
|
-
class O extends
|
|
1
|
+
import { k as $, l as J, x as c, m as h, s as g, a as Ae, n as re, C as pe, G as K, o as ne, q as xe, t as L, y as C, j as le, z as oe, R as ve, A as ye, T as U } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as be, useTheme as Pe } from "@mui/material";
|
|
3
|
+
import Re from "dayjs";
|
|
4
|
+
import W from "lodash";
|
|
5
|
+
import { useId as _e, useRef as we, useEffect as Te } from "react";
|
|
6
|
+
import { colorSetFromPalette as Ce } from "../_common/utils.js";
|
|
7
|
+
import { m as M, x as R, b as Q, f as m, p as w, a as N, P as Le, c as Y } from "../../../ColorSet-C7vpNXhM.js";
|
|
8
|
+
import { a as I, X as de, V as Me } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
9
|
+
import { R as he, S as De, a as V } from "../../../Slice-B19rbYDZ.js";
|
|
10
|
+
import { X as ge } from "../../../XYCursor-C8WktvKM.js";
|
|
11
|
+
import { C as ue } from "../../../CategoryAxis-CwnfaGc8.js";
|
|
12
|
+
import { L as ce } from "../../../LineSeries-Uiv5o56b.js";
|
|
13
|
+
import { L as Ye } from "../../../Legend-Dp_MKfS4.js";
|
|
14
|
+
class O extends he {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments), Object.defineProperty(this, "_tickPoints", {
|
|
17
17
|
enumerable: !0,
|
|
@@ -31,29 +31,29 @@ Object.defineProperty(O, "classNames", {
|
|
|
31
31
|
enumerable: !0,
|
|
32
32
|
configurable: !0,
|
|
33
33
|
writable: !0,
|
|
34
|
-
value:
|
|
34
|
+
value: he.classNames.concat([O.className])
|
|
35
35
|
});
|
|
36
|
-
class
|
|
36
|
+
class G extends I {
|
|
37
37
|
constructor() {
|
|
38
38
|
super(...arguments), Object.defineProperty(this, "labels", {
|
|
39
39
|
enumerable: !0,
|
|
40
40
|
configurable: !0,
|
|
41
41
|
writable: !0,
|
|
42
|
-
value: this.addDisposer(new
|
|
42
|
+
value: this.addDisposer(new $(J.new({}), () => O._new(this._root, {
|
|
43
43
|
themeTags: M(this.labels.template.get("themeTags", []), this.get("themeTags", []))
|
|
44
44
|
}, [this.labels.template])))
|
|
45
45
|
}), Object.defineProperty(this, "axisFills", {
|
|
46
46
|
enumerable: !0,
|
|
47
47
|
configurable: !0,
|
|
48
48
|
writable: !0,
|
|
49
|
-
value: this.addDisposer(new
|
|
49
|
+
value: this.addDisposer(new $(J.new({}), () => De._new(this._root, {
|
|
50
50
|
themeTags: M(this.axisFills.template.get("themeTags", ["fill"]), this.get("themeTags", []))
|
|
51
51
|
}, [this.axisFills.template])))
|
|
52
52
|
}), Object.defineProperty(this, "_fillGenerator", {
|
|
53
53
|
enumerable: !0,
|
|
54
54
|
configurable: !0,
|
|
55
55
|
writable: !0,
|
|
56
|
-
value:
|
|
56
|
+
value: V()
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
_afterNew() {
|
|
@@ -75,7 +75,7 @@ class j extends E {
|
|
|
75
75
|
const e = this.chart;
|
|
76
76
|
if (e) {
|
|
77
77
|
const t = e.getPrivate("radius", 0);
|
|
78
|
-
let s = R(this.get("radius",
|
|
78
|
+
let s = R(this.get("radius", Q), t);
|
|
79
79
|
s < 0 && (s = t + s), this.setPrivate("radius", s);
|
|
80
80
|
let i = R(this.get("innerRadius", e.getPrivate("innerRadius", 0)), t) * e.getPrivate("irModifyer", 1);
|
|
81
81
|
i < 0 && (i = s + i), this.setPrivate("innerRadius", i);
|
|
@@ -216,30 +216,30 @@ class j extends E {
|
|
|
216
216
|
updateTooltipBounds(e) {
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
Object.defineProperty(
|
|
219
|
+
Object.defineProperty(G, "className", {
|
|
220
220
|
enumerable: !0,
|
|
221
221
|
configurable: !0,
|
|
222
222
|
writable: !0,
|
|
223
223
|
value: "AxisRendererCircular"
|
|
224
224
|
});
|
|
225
|
-
Object.defineProperty(
|
|
225
|
+
Object.defineProperty(G, "classNames", {
|
|
226
226
|
enumerable: !0,
|
|
227
227
|
configurable: !0,
|
|
228
228
|
writable: !0,
|
|
229
|
-
value:
|
|
229
|
+
value: I.classNames.concat([G.className])
|
|
230
230
|
});
|
|
231
|
-
class
|
|
231
|
+
class k extends I {
|
|
232
232
|
constructor() {
|
|
233
233
|
super(...arguments), Object.defineProperty(this, "_fillGenerator", {
|
|
234
234
|
enumerable: !0,
|
|
235
235
|
configurable: !0,
|
|
236
236
|
writable: !0,
|
|
237
|
-
value:
|
|
237
|
+
value: V()
|
|
238
238
|
}), Object.defineProperty(this, "labels", {
|
|
239
239
|
enumerable: !0,
|
|
240
240
|
configurable: !0,
|
|
241
241
|
writable: !0,
|
|
242
|
-
value: this.addDisposer(new
|
|
242
|
+
value: this.addDisposer(new $(J.new({}), () => O._new(this._root, {
|
|
243
243
|
themeTags: M(this.labels.template.get("themeTags", []), this.get("themeTags", []))
|
|
244
244
|
}, [this.labels.template])))
|
|
245
245
|
});
|
|
@@ -263,7 +263,7 @@ class G extends E {
|
|
|
263
263
|
const e = this.chart;
|
|
264
264
|
if (e) {
|
|
265
265
|
const t = e.getPrivate("radius", 0);
|
|
266
|
-
let s = R(this.get("radius",
|
|
266
|
+
let s = R(this.get("radius", Q), t), i = R(this.get("innerRadius", e.getPrivate("innerRadius", 0)), t) * e.getPrivate("irModifyer", 1);
|
|
267
267
|
i < 0 && (i = s + i), this.setPrivate("radius", s), this.setPrivate("innerRadius", i);
|
|
268
268
|
let a = this.get("startAngle", e.get("startAngle", -90)), r = this.get("endAngle", e.get("endAngle", 270));
|
|
269
269
|
this.setPrivate("startAngle", a), this.setPrivate("endAngle", r);
|
|
@@ -396,19 +396,19 @@ class G extends E {
|
|
|
396
396
|
this._positionTooltip(e, { x: s * h(i), y: s * g(i) });
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
Object.defineProperty(
|
|
399
|
+
Object.defineProperty(k, "className", {
|
|
400
400
|
enumerable: !0,
|
|
401
401
|
configurable: !0,
|
|
402
402
|
writable: !0,
|
|
403
403
|
value: "AxisRendererRadial"
|
|
404
404
|
});
|
|
405
|
-
Object.defineProperty(
|
|
405
|
+
Object.defineProperty(k, "classNames", {
|
|
406
406
|
enumerable: !0,
|
|
407
407
|
configurable: !0,
|
|
408
408
|
writable: !0,
|
|
409
|
-
value:
|
|
409
|
+
value: I.classNames.concat([k.className])
|
|
410
410
|
});
|
|
411
|
-
class
|
|
411
|
+
class Ne extends Ae {
|
|
412
412
|
setupDefaultRules() {
|
|
413
413
|
super.setupDefaultRules();
|
|
414
414
|
const e = this.rule.bind(this), t = this._root.interfaceColors;
|
|
@@ -467,28 +467,28 @@ class Ye extends me {
|
|
|
467
467
|
const s = e("Graphics", ["clock", "hand"]);
|
|
468
468
|
s.setAll({
|
|
469
469
|
fillOpacity: 1
|
|
470
|
-
}),
|
|
470
|
+
}), re(s, "fill", t, "alternativeBackground");
|
|
471
471
|
}
|
|
472
472
|
{
|
|
473
473
|
const s = e("Graphics", ["clock", "pin"]);
|
|
474
474
|
s.setAll({
|
|
475
475
|
fillOpacity: 1
|
|
476
|
-
}),
|
|
476
|
+
}), re(s, "fill", t, "alternativeBackground");
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class
|
|
480
|
+
class B extends de {
|
|
481
481
|
constructor() {
|
|
482
482
|
super(...arguments), Object.defineProperty(this, "radarContainer", {
|
|
483
483
|
enumerable: !0,
|
|
484
484
|
configurable: !0,
|
|
485
485
|
writable: !0,
|
|
486
|
-
value: this.plotContainer.children.push(
|
|
486
|
+
value: this.plotContainer.children.push(pe.new(this._root, { x: N, y: N }))
|
|
487
487
|
}), Object.defineProperty(this, "_arcGenerator", {
|
|
488
488
|
enumerable: !0,
|
|
489
489
|
configurable: !0,
|
|
490
490
|
writable: !0,
|
|
491
|
-
value:
|
|
491
|
+
value: V()
|
|
492
492
|
}), Object.defineProperty(this, "_maxRadius", {
|
|
493
493
|
enumerable: !0,
|
|
494
494
|
configurable: !0,
|
|
@@ -497,9 +497,9 @@ class k extends ue {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
_afterNew() {
|
|
500
|
-
this._defaultThemes.push(
|
|
500
|
+
this._defaultThemes.push(Ne.new(this._root)), super._afterNew();
|
|
501
501
|
const e = this.radarContainer, t = this.gridContainer, s = this.topGridContainer, i = this.seriesContainer, a = this.bulletsContainer;
|
|
502
|
-
e.children.pushAll([t, i, s, a]), i.set("mask",
|
|
502
|
+
e.children.pushAll([t, i, s, a]), i.set("mask", K.new(this._root, {})), t.set("mask", K.new(this._root, {})), this._disposers.push(this.plotContainer.events.on("boundschanged", () => {
|
|
503
503
|
this._updateRadius();
|
|
504
504
|
}));
|
|
505
505
|
}
|
|
@@ -508,14 +508,14 @@ class k extends ue {
|
|
|
508
508
|
_prepareChildren() {
|
|
509
509
|
if (super._prepareChildren(), this._sizeDirty || this.isDirty("radius") || this.isDirty("innerRadius") || this.isDirty("startAngle") || this.isDirty("endAngle")) {
|
|
510
510
|
const e = this.chartContainer, t = e.innerWidth(), s = e.innerHeight(), i = this.get("startAngle", 0), a = this.get("endAngle", 0), r = this.get("innerRadius");
|
|
511
|
-
let n =
|
|
511
|
+
let n = ne(0, 0, i, a, 1);
|
|
512
512
|
const l = t / (n.right - n.left), u = s / (n.bottom - n.top);
|
|
513
513
|
let o = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
514
|
-
if (r instanceof
|
|
514
|
+
if (r instanceof Le) {
|
|
515
515
|
let f = r.value, T = Math.min(l, u);
|
|
516
|
-
f = Math.max(T * f, T - Math.min(s, t)) / T, o =
|
|
516
|
+
f = Math.max(T * f, T - Math.min(s, t)) / T, o = ne(0, 0, i, a, f), this.setPrivateRaw("irModifyer", f / r.value);
|
|
517
517
|
}
|
|
518
|
-
n =
|
|
518
|
+
n = xe([n, o]), this._maxRadius = Math.max(0, Math.min(l, u));
|
|
519
519
|
const y = R(this.get("radius", 0), this._maxRadius);
|
|
520
520
|
this.radarContainer.setAll({
|
|
521
521
|
dy: -y * (n.bottom + n.top) / 2,
|
|
@@ -573,25 +573,25 @@ class k extends ue {
|
|
|
573
573
|
_handlePinch() {
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
Object.defineProperty(
|
|
576
|
+
Object.defineProperty(B, "className", {
|
|
577
577
|
enumerable: !0,
|
|
578
578
|
configurable: !0,
|
|
579
579
|
writable: !0,
|
|
580
580
|
value: "RadarChart"
|
|
581
581
|
});
|
|
582
|
-
Object.defineProperty(
|
|
582
|
+
Object.defineProperty(B, "classNames", {
|
|
583
583
|
enumerable: !0,
|
|
584
584
|
configurable: !0,
|
|
585
585
|
writable: !0,
|
|
586
|
-
value:
|
|
586
|
+
value: de.classNames.concat([B.className])
|
|
587
587
|
});
|
|
588
|
-
class
|
|
588
|
+
class F extends ge {
|
|
589
589
|
constructor() {
|
|
590
590
|
super(...arguments), Object.defineProperty(this, "_fillGenerator", {
|
|
591
591
|
enumerable: !0,
|
|
592
592
|
configurable: !0,
|
|
593
593
|
writable: !0,
|
|
594
|
-
value:
|
|
594
|
+
value: V()
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
597
|
_afterNew() {
|
|
@@ -621,7 +621,7 @@ class B extends he {
|
|
|
621
621
|
const e = this.chart;
|
|
622
622
|
if (e) {
|
|
623
623
|
const t = e.getPrivate("radius", 0);
|
|
624
|
-
this.setPrivate("radius", R(this.get("radius",
|
|
624
|
+
this.setPrivate("radius", R(this.get("radius", Q), t));
|
|
625
625
|
let s = R(this.get("innerRadius", e.getPrivate("innerRadius", 0)), t);
|
|
626
626
|
s < 0 && (s = t + s), this.setPrivate("innerRadius", s);
|
|
627
627
|
let i = this.get("startAngle", e.get("startAngle", -90)), a = this.get("endAngle", e.get("endAngle", 270));
|
|
@@ -661,25 +661,25 @@ class B extends he {
|
|
|
661
661
|
let n = this.getPrivate("radius"), l = this.getPrivate("innerRadius");
|
|
662
662
|
n < l && ([n, l] = [l, n]);
|
|
663
663
|
let u = a, o = r, y = n, f = l;
|
|
664
|
-
i && (s == "zoomXY" || s == "selectXY" ? (u = Math.atan2(i.y, i.x) * C, o = Math.atan2(e.y, e.x) * C, f = Math.hypot(i.x, i.y), y = Math.hypot(e.x, e.y)) : s == "zoomX" || s == "selectX" ? (u = Math.atan2(i.y, i.x) * C, o = Math.atan2(e.y, e.x) * C) : (s == "zoomY" || s == "selectY") && (f = Math.hypot(i.x, i.y), y = Math.hypot(e.x, e.y))), f =
|
|
664
|
+
i && (s == "zoomXY" || s == "selectXY" ? (u = Math.atan2(i.y, i.x) * C, o = Math.atan2(e.y, e.x) * C, f = Math.hypot(i.x, i.y), y = Math.hypot(e.x, e.y)) : s == "zoomX" || s == "selectX" ? (u = Math.atan2(i.y, i.x) * C, o = Math.atan2(e.y, e.x) * C) : (s == "zoomY" || s == "selectY") && (f = Math.hypot(i.x, i.y), y = Math.hypot(e.x, e.y))), f = le(f, l, n), y = le(y, l, n), u = oe(u, a, r), o = oe(o, a, r), u == o && (o = u + 360), u *= c, o *= c, this._fillGenerator.context(t), this._fillGenerator({ innerRadius: f, outerRadius: y, startAngle: u + Math.PI / 2, endAngle: o + Math.PI / 2 });
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
Object.defineProperty(
|
|
668
|
+
Object.defineProperty(F, "className", {
|
|
669
669
|
enumerable: !0,
|
|
670
670
|
configurable: !0,
|
|
671
671
|
writable: !0,
|
|
672
672
|
value: "RadarCursor"
|
|
673
673
|
});
|
|
674
|
-
Object.defineProperty(
|
|
674
|
+
Object.defineProperty(F, "classNames", {
|
|
675
675
|
enumerable: !0,
|
|
676
676
|
configurable: !0,
|
|
677
677
|
writable: !0,
|
|
678
|
-
value:
|
|
678
|
+
value: ge.classNames.concat([F.className])
|
|
679
679
|
});
|
|
680
|
-
class
|
|
680
|
+
class E extends ce {
|
|
681
681
|
_afterNew() {
|
|
682
|
-
super._afterNew(), this.set("maskContent", !1), this.bulletsContainer.set("maskContent", !1), this.bulletsContainer.set("mask",
|
|
682
|
+
super._afterNew(), this.set("maskContent", !1), this.bulletsContainer.set("maskContent", !1), this.bulletsContainer.set("mask", K.new(this._root, {}));
|
|
683
683
|
}
|
|
684
684
|
_handleMaskBullets() {
|
|
685
685
|
}
|
|
@@ -708,20 +708,20 @@ class F extends ge {
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
Object.defineProperty(
|
|
711
|
+
Object.defineProperty(E, "className", {
|
|
712
712
|
enumerable: !0,
|
|
713
713
|
configurable: !0,
|
|
714
714
|
writable: !0,
|
|
715
715
|
value: "RadarLineSeries"
|
|
716
716
|
});
|
|
717
|
-
Object.defineProperty(
|
|
717
|
+
Object.defineProperty(E, "classNames", {
|
|
718
718
|
enumerable: !0,
|
|
719
719
|
configurable: !0,
|
|
720
720
|
writable: !0,
|
|
721
|
-
value:
|
|
721
|
+
value: ce.classNames.concat([E.className])
|
|
722
722
|
});
|
|
723
|
-
const
|
|
724
|
-
const e =
|
|
723
|
+
const We = (_) => {
|
|
724
|
+
const e = be({ props: _, name: "HCStackedAreaRadar" }), {
|
|
725
725
|
dimensions: t,
|
|
726
726
|
values: s,
|
|
727
727
|
data: i,
|
|
@@ -730,19 +730,21 @@ const Ue = (_) => {
|
|
|
730
730
|
colors: n,
|
|
731
731
|
sx: l,
|
|
732
732
|
...u
|
|
733
|
-
} = e, o =
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
733
|
+
} = e, o = Pe(), f = `hc-stacked-area-radar-${_e().replace(/:/g, "")}`, T = we(null);
|
|
734
|
+
let S = null;
|
|
735
|
+
t.length < 2 ? S = "StackedAreaRadar requires at least 2 dimensions" : s.length < 1 && (S = "StackedAreaRadar requires at least 1 value"), Te(() => {
|
|
736
|
+
if (S) return;
|
|
737
|
+
let z;
|
|
738
|
+
return z = setTimeout(() => {
|
|
739
|
+
var ie, ae;
|
|
740
|
+
const d = ve.new(f);
|
|
741
|
+
T.current = d, d.setThemes([ye.new(d)]), d.interfaceColors.setAll({
|
|
740
742
|
text: Y(o.palette.text.primary),
|
|
741
743
|
grid: Y(o.palette.divider),
|
|
742
744
|
stroke: Y(o.palette.divider)
|
|
743
745
|
});
|
|
744
746
|
const b = d.container.children.push(
|
|
745
|
-
|
|
747
|
+
B.new(d, {
|
|
746
748
|
panX: !1,
|
|
747
749
|
panY: !1,
|
|
748
750
|
wheelX: "none",
|
|
@@ -752,43 +754,36 @@ const Ue = (_) => {
|
|
|
752
754
|
arrangeTooltips: !1
|
|
753
755
|
})
|
|
754
756
|
);
|
|
755
|
-
|
|
757
|
+
b.set("colors", Ce(d, n)), b.get("colors", {}).set("step", 2), b.set(
|
|
756
758
|
"cursor",
|
|
757
|
-
|
|
758
|
-
).lineY.set("visible", !1)
|
|
759
|
-
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
|
-
if (s.length < 1) {
|
|
763
|
-
console.error("StackedAreaRadar requires at least 1 value");
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
const x = t[0], fe = t[1];
|
|
759
|
+
F.new(d, { behavior: "zoomX" })
|
|
760
|
+
).lineY.set("visible", !1);
|
|
761
|
+
const x = t[0], me = t[1];
|
|
767
762
|
let v = [];
|
|
768
|
-
const
|
|
769
|
-
Object.keys(
|
|
770
|
-
|
|
771
|
-
const p = P[x.value],
|
|
772
|
-
|
|
763
|
+
const q = W.groupBy(i, me.value);
|
|
764
|
+
Object.keys(q).forEach((A) => {
|
|
765
|
+
q[A].forEach((P) => {
|
|
766
|
+
const p = P[x.value], H = W.findIndex(v, { [x.value]: p });
|
|
767
|
+
H === -1 ? v.push({
|
|
773
768
|
[x.value]: p,
|
|
774
769
|
[A]: P[s[0].dataFieldName]
|
|
775
|
-
}) : v[
|
|
776
|
-
...v[
|
|
770
|
+
}) : v[H] = {
|
|
771
|
+
...v[H],
|
|
777
772
|
[A]: P[s[0].dataFieldName]
|
|
778
773
|
};
|
|
779
774
|
});
|
|
780
775
|
});
|
|
781
|
-
const
|
|
776
|
+
const X = G.new(d, {
|
|
782
777
|
minGridDistance: 30
|
|
783
778
|
});
|
|
784
|
-
|
|
779
|
+
X.labels.template.setAll({
|
|
785
780
|
textType: "radial",
|
|
786
781
|
radius: 10,
|
|
787
782
|
paddingTop: 0,
|
|
788
783
|
paddingBottom: 0,
|
|
789
784
|
centerY: N,
|
|
790
785
|
fontSize: "0.8em"
|
|
791
|
-
}),
|
|
786
|
+
}), X.grid.template.setAll({
|
|
792
787
|
location: 0.5,
|
|
793
788
|
strokeDasharray: [2, 2]
|
|
794
789
|
});
|
|
@@ -797,72 +792,72 @@ const Ue = (_) => {
|
|
|
797
792
|
const A = (r == null ? void 0 : r.timeUnit) || "day";
|
|
798
793
|
let P = "DD/MM/YYYY";
|
|
799
794
|
A === "month" ? P = "MM YYYY" : A === "year" && (P = "YYYY"), D = b.xAxes.push(
|
|
800
|
-
|
|
795
|
+
ue.new(d, {
|
|
801
796
|
maxDeviation: 0,
|
|
802
797
|
categoryField: x.value,
|
|
803
|
-
renderer:
|
|
804
|
-
tooltip:
|
|
798
|
+
renderer: X,
|
|
799
|
+
tooltip: U.new(d, {})
|
|
805
800
|
})
|
|
806
|
-
), v =
|
|
801
|
+
), v = W.orderBy(v, [x.value]), v = v.map((p) => ({
|
|
807
802
|
...p,
|
|
808
|
-
[x.value]:
|
|
803
|
+
[x.value]: Re(p[x.value]).format(P)
|
|
809
804
|
}));
|
|
810
805
|
} else
|
|
811
806
|
D = b.xAxes.push(
|
|
812
|
-
|
|
807
|
+
ue.new(d, {
|
|
813
808
|
maxDeviation: 0,
|
|
814
809
|
categoryField: x.value,
|
|
815
|
-
renderer:
|
|
816
|
-
tooltip:
|
|
810
|
+
renderer: X,
|
|
811
|
+
tooltip: U.new(d, {})
|
|
817
812
|
})
|
|
818
813
|
);
|
|
819
|
-
const
|
|
814
|
+
const Z = k.new(d, {
|
|
820
815
|
minGridDistance: 30
|
|
821
|
-
}),
|
|
822
|
-
|
|
816
|
+
}), ee = b.yAxes.push(
|
|
817
|
+
Me.new(d, { renderer: Z })
|
|
823
818
|
);
|
|
824
|
-
|
|
819
|
+
Z.grid.template.setAll({ strokeDasharray: [2, 2] }), (ie = D.get("renderer")) == null || ie.grid.template.setAll({
|
|
825
820
|
stroke: Y(o.palette.divider),
|
|
826
821
|
strokeOpacity: 1
|
|
827
|
-
}), (
|
|
822
|
+
}), (ae = ee.get("renderer")) == null || ae.grid.template.setAll({
|
|
828
823
|
stroke: Y(o.palette.divider),
|
|
829
824
|
strokeOpacity: 1
|
|
830
825
|
});
|
|
831
|
-
const
|
|
832
|
-
let
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
`),
|
|
826
|
+
const te = [];
|
|
827
|
+
let j = "";
|
|
828
|
+
const se = Object.keys(q);
|
|
829
|
+
se.forEach((A, P) => {
|
|
830
|
+
j.length > 0 && (j += `
|
|
831
|
+
`), j += `${A}: {${A}}`;
|
|
837
832
|
const p = b.series.push(
|
|
838
|
-
|
|
833
|
+
E.new(d, {
|
|
839
834
|
name: A,
|
|
840
835
|
xAxis: D,
|
|
841
|
-
yAxis:
|
|
836
|
+
yAxis: ee,
|
|
842
837
|
valueYField: A,
|
|
843
838
|
categoryXField: x.value,
|
|
844
|
-
...P ===
|
|
839
|
+
...P === se.length - 1 && {
|
|
845
840
|
stacked: !0,
|
|
846
|
-
tooltip:
|
|
841
|
+
tooltip: U.new(d, { labelText: j })
|
|
847
842
|
}
|
|
848
843
|
})
|
|
849
844
|
);
|
|
850
|
-
p.strokes.template.setAll({ strokeOpacity: 0 }), p.fills.template.setAll({ visible: !0, fillOpacity: 0.5 }), p.data.setAll(v), p.appear(1e3),
|
|
845
|
+
p.strokes.template.setAll({ strokeOpacity: 0 }), p.fills.template.setAll({ visible: !0, fillOpacity: 0.5 }), p.data.setAll(v), p.appear(1e3), te.push(p);
|
|
851
846
|
}), b.radarContainer.children.push(
|
|
852
|
-
|
|
847
|
+
Ye.new(d, {
|
|
853
848
|
width: 150,
|
|
854
849
|
centerX: N,
|
|
855
850
|
centerY: N
|
|
856
851
|
})
|
|
857
|
-
).data.setAll(
|
|
852
|
+
).data.setAll(te), D.data.setAll(v), b.appear(1e3, 100);
|
|
858
853
|
}, a), () => {
|
|
859
854
|
var d;
|
|
860
|
-
|
|
855
|
+
z && clearTimeout(z), (d = T.current) == null || d.dispose(), T.current = null;
|
|
861
856
|
};
|
|
862
857
|
}, [i, t, s, o.palette.mode, n]);
|
|
863
|
-
const
|
|
864
|
-
return { chartId: f, ownerState:
|
|
858
|
+
const fe = { ...e };
|
|
859
|
+
return { chartId: f, ownerState: fe, sx: l, error: S, other: u };
|
|
865
860
|
};
|
|
866
861
|
export {
|
|
867
|
-
|
|
862
|
+
We as useStackedAreaRadarLogic
|
|
868
863
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ChartError as i } from "../_common/chart-error.js";
|
|
3
|
+
import { useStackedColumnChartLogic as c } from "./logic.js";
|
|
4
|
+
import { StackedColumnChartRoot as d } from "./styled.js";
|
|
5
|
+
const p = (o) => {
|
|
6
|
+
const { chartId: e, ownerState: m, sx: a, error: t, other: h } = c(o);
|
|
7
|
+
return /* @__PURE__ */ r(d, { ownerState: m, sx: a, ...h, children: t ? /* @__PURE__ */ r(i, { message: t }) : /* @__PURE__ */ r("div", { id: e, style: { width: "100%", height: "100%" } }) });
|
|
8
|
+
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
p as StackedColumnChart
|
|
10
11
|
};
|