@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,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 p } from "../_common/chart-error.js";
|
|
3
|
+
import { useHeatmapLogic as s } from "./logic.js";
|
|
4
|
+
import { HeatmapRoot as h } from "./styled.js";
|
|
5
|
+
const g = (o) => {
|
|
6
|
+
const { chartId: e, ownerState: m, sx: a, error: t, other: i } = s(o);
|
|
7
|
+
return /* @__PURE__ */ r(h, { ownerState: m, sx: a, ...i, children: t ? /* @__PURE__ */ r(p, { message: t }) : /* @__PURE__ */ r("div", { id: e, style: { width: "100%", height: "100%" } }) });
|
|
8
|
+
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
g as Heatmap
|
|
10
11
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useId as
|
|
6
|
-
import { colorSetFromPalette as
|
|
7
|
-
import { E as
|
|
8
|
-
import { X as
|
|
9
|
-
import { A as
|
|
10
|
-
import { C as
|
|
11
|
-
import { R as
|
|
12
|
-
import { C as
|
|
13
|
-
class T extends
|
|
1
|
+
import { m as Z, s as ee, C as F, L as W, k as te, l as re, T as K, R as ae, A as ie } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as se, useTheme as oe } from "@mui/material";
|
|
3
|
+
import ne from "dayjs";
|
|
4
|
+
import O from "lodash";
|
|
5
|
+
import { useId as le, useRef as ce, useEffect as ue } from "react";
|
|
6
|
+
import { colorSetFromPalette as he } from "../_common/utils.js";
|
|
7
|
+
import { E as Q, e as de, f as H, u as P, m as J, b as f, p as B, c as D } from "../../../ColorSet-C7vpNXhM.js";
|
|
8
|
+
import { X as me } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
9
|
+
import { A as pe, a as fe } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
10
|
+
import { C as G } from "../../../CategoryAxis-CwnfaGc8.js";
|
|
11
|
+
import { R as ge } from "../../../RoundedRectangle-CWLi2PXn.js";
|
|
12
|
+
import { C as be } from "../../../ColumnSeries-CjgdJ2QL.js";
|
|
13
|
+
class T extends Q {
|
|
14
14
|
_afterNew() {
|
|
15
15
|
super._afterNewApplyThemes();
|
|
16
16
|
}
|
|
@@ -33,12 +33,12 @@ class T extends K {
|
|
|
33
33
|
const s = this.get("target");
|
|
34
34
|
if (s) {
|
|
35
35
|
let e = s.globalBounds();
|
|
36
|
-
const r = i.toLocal({ x: e.left, y: e.top }),
|
|
36
|
+
const r = i.toLocal({ x: e.left, y: e.top }), n = i.toLocal({ x: e.right, y: e.top }), o = i.toLocal({ x: e.right, y: e.bottom }), a = i.toLocal({ x: e.left, y: e.bottom });
|
|
37
37
|
return {
|
|
38
|
-
left: Math.min(r.x,
|
|
39
|
-
top: Math.min(r.y,
|
|
40
|
-
right: Math.max(r.x,
|
|
41
|
-
bottom: Math.max(r.y,
|
|
38
|
+
left: Math.min(r.x, n.x, o.x, a.x),
|
|
39
|
+
top: Math.min(r.y, n.y, o.y, a.y),
|
|
40
|
+
right: Math.max(r.x, n.x, o.x, a.x),
|
|
41
|
+
bottom: Math.max(r.y, n.y, o.y, a.y)
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
return i._display.getLocalBounds();
|
|
@@ -54,83 +54,83 @@ Object.defineProperty(T, "classNames", {
|
|
|
54
54
|
enumerable: !0,
|
|
55
55
|
configurable: !0,
|
|
56
56
|
writable: !0,
|
|
57
|
-
value:
|
|
57
|
+
value: Q.classNames.concat([T.className])
|
|
58
58
|
});
|
|
59
|
-
class
|
|
59
|
+
class V extends T {
|
|
60
60
|
/**
|
|
61
61
|
* @ignore
|
|
62
62
|
*/
|
|
63
63
|
getFill(i) {
|
|
64
64
|
const s = this.get("rotation", 0);
|
|
65
|
-
let e = this.getBounds(i), r = e.left || 0,
|
|
66
|
-
|
|
67
|
-
let
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
65
|
+
let e = this.getBounds(i), r = e.left || 0, n = e.right || 0, o = e.top || 0, a = e.bottom || 0, p = Z(s), g = ee(s), l = p * (n - r), c = g * (a - o);
|
|
66
|
+
l == 0 && (l = 1), c == 0 && (c = 1);
|
|
67
|
+
let u = Math.max(l, c);
|
|
68
|
+
const b = this._root._renderer.createLinearGradient(r, o, r + u * p, o + u * g), v = this.get("stops");
|
|
69
|
+
if (v) {
|
|
70
|
+
let N = 0;
|
|
71
|
+
de(v, (y) => {
|
|
72
|
+
let t = y.offset;
|
|
73
|
+
H(t) || (t = N / (v.length - 1));
|
|
74
|
+
let h = y.opacity;
|
|
75
|
+
H(h) || (h = 1);
|
|
76
|
+
let m = y.color;
|
|
77
|
+
if (m) {
|
|
78
|
+
const d = y.lighten;
|
|
79
|
+
d && (m = P.lighten(m, d));
|
|
80
|
+
const C = y.brighten;
|
|
81
|
+
C && (m = P.brighten(m, C)), b.addColorStop(t, "rgba(" + m.r + "," + m.g + "," + m.b + "," + h + ")");
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
N++;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return b;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
Object.defineProperty(
|
|
89
|
+
Object.defineProperty(V, "className", {
|
|
90
90
|
enumerable: !0,
|
|
91
91
|
configurable: !0,
|
|
92
92
|
writable: !0,
|
|
93
93
|
value: "LinearGradient"
|
|
94
94
|
});
|
|
95
|
-
Object.defineProperty(
|
|
95
|
+
Object.defineProperty(V, "classNames", {
|
|
96
96
|
enumerable: !0,
|
|
97
97
|
configurable: !0,
|
|
98
98
|
writable: !0,
|
|
99
|
-
value: T.classNames.concat([
|
|
99
|
+
value: T.classNames.concat([V.className])
|
|
100
100
|
});
|
|
101
|
-
class
|
|
101
|
+
class j extends F {
|
|
102
102
|
constructor() {
|
|
103
103
|
super(...arguments), Object.defineProperty(this, "labelContainer", {
|
|
104
104
|
enumerable: !0,
|
|
105
105
|
configurable: !0,
|
|
106
106
|
writable: !0,
|
|
107
|
-
value: this.children.push(
|
|
107
|
+
value: this.children.push(F.new(this._root, {}))
|
|
108
108
|
}), Object.defineProperty(this, "markerContainer", {
|
|
109
109
|
enumerable: !0,
|
|
110
110
|
configurable: !0,
|
|
111
111
|
writable: !0,
|
|
112
|
-
value: this.children.push(
|
|
112
|
+
value: this.children.push(F.new(this._root, {}))
|
|
113
113
|
}), Object.defineProperty(this, "startLabel", {
|
|
114
114
|
enumerable: !0,
|
|
115
115
|
configurable: !0,
|
|
116
116
|
writable: !0,
|
|
117
|
-
value: this.labelContainer.children.push(
|
|
117
|
+
value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["start"] }))
|
|
118
118
|
}), Object.defineProperty(this, "endLabel", {
|
|
119
119
|
enumerable: !0,
|
|
120
120
|
configurable: !0,
|
|
121
121
|
writable: !0,
|
|
122
|
-
value: this.labelContainer.children.push(
|
|
122
|
+
value: this.labelContainer.children.push(W.new(this._root, { themeTags: ["end"] }))
|
|
123
123
|
}), Object.defineProperty(this, "markers", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !0,
|
|
126
126
|
writable: !0,
|
|
127
|
-
value: this.addDisposer(new
|
|
128
|
-
themeTags:
|
|
127
|
+
value: this.addDisposer(new te(re.new({}), () => ge._new(this._root, {
|
|
128
|
+
themeTags: J(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
|
|
129
129
|
}, [this.markers.template])))
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
_afterNew() {
|
|
133
|
-
this._settings.themeTags =
|
|
133
|
+
this._settings.themeTags = J(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", K.new(this._root, {
|
|
134
134
|
themeTags: ["heatlegend"]
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
@@ -152,98 +152,92 @@ class V extends D {
|
|
|
152
152
|
*/
|
|
153
153
|
showValue(i, s, e) {
|
|
154
154
|
const r = this.getTooltip();
|
|
155
|
-
if (r &&
|
|
156
|
-
const
|
|
157
|
-
let a = (i -
|
|
155
|
+
if (r && H(i)) {
|
|
156
|
+
const n = this.get("startValue", 0), o = this.get("endValue", 1);
|
|
157
|
+
let a = (i - n) / (o - n);
|
|
158
158
|
(a == 1 / 0 || a == -1 / 0 || isNaN(a)) && (a = 0.5);
|
|
159
|
-
const
|
|
160
|
-
s || (s = this.getNumberFormatter().format(i)), e || (e =
|
|
161
|
-
let
|
|
162
|
-
this.get("orientation") == "vertical" ?
|
|
163
|
-
let
|
|
164
|
-
|
|
159
|
+
const p = this.get("startColor"), g = this.get("endColor");
|
|
160
|
+
s || (s = this.getNumberFormatter().format(i)), e || (e = P.interpolate(a, p, g)), r.label.set("text", s);
|
|
161
|
+
let l;
|
|
162
|
+
this.get("orientation") == "vertical" ? l = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - a) }) : l = this.markerContainer.toGlobal({ x: this.innerWidth() * a, y: 0 });
|
|
163
|
+
let c = r.get("background");
|
|
164
|
+
c && c.set("fill", e), r.set("pointTo", l), r.show();
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
_prepareChildren() {
|
|
168
168
|
super._prepareChildren();
|
|
169
|
-
const i = this.labelContainer, s = this.get("orientation"), e = this.startLabel, r = this.endLabel,
|
|
170
|
-
if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height:
|
|
171
|
-
const o = this.get("stepCount", 1), a = this.get("startColor"),
|
|
169
|
+
const i = this.labelContainer, s = this.get("orientation"), e = this.startLabel, r = this.endLabel, n = this.getTooltip();
|
|
170
|
+
if (this.isDirty("orientation") && (s == "vertical" ? (this.markerContainer.setAll({ layout: this._root.verticalLayout, height: f }), this.set("layout", this._root.horizontalLayout), e.setAll({ y: f, x: void 0, centerY: f, centerX: f }), r.setAll({ y: 0, x: void 0, centerY: 0, centerX: f }), i.setAll({ height: f, width: void 0 }), n && n.set("pointerOrientation", "horizontal")) : (this.markerContainer.setAll({ layout: this._root.horizontalLayout, width: f }), this.set("layout", this._root.verticalLayout), e.setAll({ x: 0, y: void 0, centerX: 0, centerY: 0 }), r.setAll({ x: f, y: void 0, centerX: f, centerY: 0 }), i.setAll({ width: f, height: void 0 }), n && n.set("pointerOrientation", "vertical"))), this.isDirty("stepCount")) {
|
|
171
|
+
const o = this.get("stepCount", 1), a = this.get("startColor"), p = this.get("endColor"), g = this.get("startOpacity", 1), l = this.get("endOpacity", 1);
|
|
172
172
|
if (this.markerContainer.children.clear(), o > 1)
|
|
173
|
-
for (let
|
|
174
|
-
const
|
|
175
|
-
s == "vertical" ? this.markerContainer.children.moveValue(
|
|
176
|
-
fill:
|
|
177
|
-
fillOpacity:
|
|
173
|
+
for (let c = 0; c < o; c++) {
|
|
174
|
+
const u = this.makeMarker();
|
|
175
|
+
s == "vertical" ? this.markerContainer.children.moveValue(u, 0) : this.markerContainer.children.push(u), a && p && u.setAll({
|
|
176
|
+
fill: P.interpolate(c / o, a, p),
|
|
177
|
+
fillOpacity: B(c / o * 100).interpolate(g, l)
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
else if (o == 1) {
|
|
181
|
-
const
|
|
182
|
-
this.markerContainer.children.push(
|
|
183
|
-
const
|
|
181
|
+
const c = this.makeMarker();
|
|
182
|
+
this.markerContainer.children.push(c);
|
|
183
|
+
const u = V.new(this._root, {
|
|
184
184
|
stops: [{
|
|
185
185
|
color: a,
|
|
186
|
-
opacity:
|
|
186
|
+
opacity: g
|
|
187
187
|
}, {
|
|
188
|
-
color:
|
|
189
|
-
opacity:
|
|
188
|
+
color: p,
|
|
189
|
+
opacity: l
|
|
190
190
|
}]
|
|
191
191
|
});
|
|
192
192
|
if (s == "vertical") {
|
|
193
|
-
|
|
194
|
-
let
|
|
195
|
-
|
|
193
|
+
u.set("rotation", 90);
|
|
194
|
+
let b = u.get("stops");
|
|
195
|
+
b && b.reverse();
|
|
196
196
|
} else
|
|
197
|
-
|
|
198
|
-
a &&
|
|
197
|
+
u.set("rotation", 0);
|
|
198
|
+
a && p && c.set("fillGradient", u);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
(this.isDirty("startText") || this.isDirty("startValue")) && e.set("text", this.get("startText", this.getNumberFormatter().format(this.get("startValue", 0)))), (this.isDirty("endText") || this.isDirty("endValue")) && r.set("text", this.get("endText", this.getNumberFormatter().format(this.get("endValue", 1))));
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
Object.defineProperty(
|
|
204
|
+
Object.defineProperty(j, "className", {
|
|
205
205
|
enumerable: !0,
|
|
206
206
|
configurable: !0,
|
|
207
207
|
writable: !0,
|
|
208
208
|
value: "HeatLegend"
|
|
209
209
|
});
|
|
210
|
-
Object.defineProperty(
|
|
210
|
+
Object.defineProperty(j, "classNames", {
|
|
211
211
|
enumerable: !0,
|
|
212
212
|
configurable: !0,
|
|
213
213
|
writable: !0,
|
|
214
|
-
value:
|
|
214
|
+
value: F.classNames.concat([j.className])
|
|
215
215
|
});
|
|
216
|
-
const
|
|
217
|
-
const i =
|
|
216
|
+
const Oe = (L) => {
|
|
217
|
+
const i = se({ props: L, name: "HCHeatmap" }), {
|
|
218
218
|
dimensions: s,
|
|
219
219
|
values: e,
|
|
220
220
|
data: r,
|
|
221
|
-
initDelay:
|
|
221
|
+
initDelay: n = 0,
|
|
222
222
|
baseInterval: o,
|
|
223
223
|
colors: a,
|
|
224
|
-
sx:
|
|
225
|
-
...
|
|
226
|
-
} = i,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
const t = re.new(h);
|
|
240
|
-
g.current = t, t.setThemes([ae.new(t)]), t.interfaceColors.setAll({
|
|
241
|
-
text: O(c.palette.text.primary),
|
|
242
|
-
grid: O(c.palette.divider),
|
|
243
|
-
stroke: O(c.palette.divider)
|
|
224
|
+
sx: p,
|
|
225
|
+
...g
|
|
226
|
+
} = i, l = oe(), u = `hc-heatmap-${le().replace(/:/g, "")}`, b = ce(null);
|
|
227
|
+
let v = null;
|
|
228
|
+
s.length < 2 ? v = "Heatmap requires at least 2 dimensions" : e.length < 1 && (v = "Heatmap requires at least 1 value"), ue(() => {
|
|
229
|
+
if (v) return;
|
|
230
|
+
let y;
|
|
231
|
+
return y = setTimeout(() => {
|
|
232
|
+
var E, S;
|
|
233
|
+
const t = ae.new(u);
|
|
234
|
+
b.current = t, t.setThemes([ie.new(t)]), t.interfaceColors.setAll({
|
|
235
|
+
text: D(l.palette.text.primary),
|
|
236
|
+
grid: D(l.palette.divider),
|
|
237
|
+
stroke: D(l.palette.divider)
|
|
244
238
|
});
|
|
245
|
-
const
|
|
246
|
-
|
|
239
|
+
const h = t.container.children.push(
|
|
240
|
+
me.new(t, {
|
|
247
241
|
panX: !1,
|
|
248
242
|
panY: !1,
|
|
249
243
|
wheelX: "none",
|
|
@@ -251,111 +245,111 @@ const Ye = (L) => {
|
|
|
251
245
|
layout: t.verticalLayout
|
|
252
246
|
})
|
|
253
247
|
);
|
|
254
|
-
|
|
255
|
-
const
|
|
248
|
+
h.set("colors", he(t, a));
|
|
249
|
+
const m = pe.new(t, {
|
|
256
250
|
visible: !1,
|
|
257
251
|
minGridDistance: 30
|
|
258
252
|
});
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
let
|
|
262
|
-
if (
|
|
263
|
-
const
|
|
264
|
-
let
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
categoryField:
|
|
268
|
-
renderer:
|
|
253
|
+
m.grid.template.set("visible", !1);
|
|
254
|
+
const d = s[0];
|
|
255
|
+
let C, k = r;
|
|
256
|
+
if (d.type === "date") {
|
|
257
|
+
const x = (o == null ? void 0 : o.timeUnit) || "day";
|
|
258
|
+
let A = "DD/MM/YYYY";
|
|
259
|
+
x === "month" ? A = "MM YYYY" : x === "year" && (A = "YYYY"), C = h.xAxes.push(
|
|
260
|
+
G.new(t, {
|
|
261
|
+
categoryField: d.value,
|
|
262
|
+
renderer: m
|
|
269
263
|
})
|
|
270
|
-
),
|
|
264
|
+
), k = O.orderBy(r, [d.value]), k = k.map((_) => ({
|
|
271
265
|
..._,
|
|
272
|
-
[
|
|
266
|
+
[d.value]: ne(_[d.value]).format(A)
|
|
273
267
|
}));
|
|
274
268
|
} else
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
categoryField:
|
|
278
|
-
renderer:
|
|
279
|
-
tooltip:
|
|
269
|
+
C = h.xAxes.push(
|
|
270
|
+
G.new(t, {
|
|
271
|
+
categoryField: d.value,
|
|
272
|
+
renderer: m,
|
|
273
|
+
tooltip: K.new(t, {})
|
|
280
274
|
})
|
|
281
275
|
);
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
const
|
|
276
|
+
const I = O.uniqBy(k, d.value);
|
|
277
|
+
if (C.data.setAll(I), e.length === 1 && s.length > 1) {
|
|
278
|
+
const x = s[1].value, A = fe.new(t, {
|
|
285
279
|
visible: !1,
|
|
286
280
|
minGridDistance: 20,
|
|
287
281
|
inversed: !0
|
|
288
282
|
});
|
|
289
|
-
|
|
290
|
-
const _ =
|
|
291
|
-
|
|
283
|
+
A.grid.template.set("visible", !1);
|
|
284
|
+
const _ = h.yAxes.push(
|
|
285
|
+
G.new(t, {
|
|
292
286
|
maxDeviation: 0,
|
|
293
|
-
renderer:
|
|
294
|
-
categoryField:
|
|
287
|
+
renderer: A,
|
|
288
|
+
categoryField: x
|
|
295
289
|
})
|
|
296
|
-
),
|
|
297
|
-
|
|
290
|
+
), q = t.interfaceColors.get("background"), M = h.bottomAxesContainer.children.push(
|
|
291
|
+
j.new(t, {
|
|
298
292
|
orientation: "horizontal",
|
|
299
|
-
startColor:
|
|
300
|
-
endColor: (
|
|
293
|
+
startColor: q,
|
|
294
|
+
endColor: (E = h.get("colors")) == null ? void 0 : E.getIndex(0),
|
|
301
295
|
startOpacity: 1,
|
|
302
296
|
endOpacity: 1
|
|
303
297
|
})
|
|
304
|
-
),
|
|
305
|
-
|
|
298
|
+
), w = h.series.push(
|
|
299
|
+
be.new(t, {
|
|
306
300
|
calculateAggregates: !0,
|
|
307
|
-
stroke:
|
|
301
|
+
stroke: D(16777215),
|
|
308
302
|
clustered: !1,
|
|
309
|
-
xAxis:
|
|
303
|
+
xAxis: C,
|
|
310
304
|
yAxis: _,
|
|
311
|
-
categoryXField:
|
|
312
|
-
categoryYField:
|
|
305
|
+
categoryXField: d.value,
|
|
306
|
+
categoryYField: x,
|
|
313
307
|
valueField: e[0].dataFieldName
|
|
314
308
|
})
|
|
315
309
|
);
|
|
316
|
-
|
|
310
|
+
w.columns.template.setAll({
|
|
317
311
|
tooltipText: "{categoryY}, {categoryX}: {value}",
|
|
318
312
|
strokeOpacity: 1,
|
|
319
313
|
strokeWidth: 2,
|
|
320
|
-
width:
|
|
321
|
-
height:
|
|
322
|
-
}),
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}),
|
|
326
|
-
|
|
327
|
-
}),
|
|
314
|
+
width: B(100),
|
|
315
|
+
height: B(100)
|
|
316
|
+
}), w.columns.template.events.on("pointerover", function(X) {
|
|
317
|
+
const Y = X.target.dataItem;
|
|
318
|
+
Y && M.showValue(Y.get(x, 0));
|
|
319
|
+
}), w.events.on("datavalidated", function() {
|
|
320
|
+
M.set("startValue", w.getPrivate("valueLow")), M.set("endValue", w.getPrivate("valueHigh"));
|
|
321
|
+
}), w.set("heatRules", [
|
|
328
322
|
{
|
|
329
|
-
target:
|
|
330
|
-
min:
|
|
331
|
-
max: (
|
|
323
|
+
target: w.columns.template,
|
|
324
|
+
min: q,
|
|
325
|
+
max: (S = h.get("colors")) == null ? void 0 : S.getIndex(0),
|
|
332
326
|
dataField: "value",
|
|
333
327
|
key: "fill"
|
|
334
328
|
}
|
|
335
329
|
]);
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
const
|
|
340
|
-
[
|
|
341
|
-
[
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
...
|
|
330
|
+
const z = O.uniqBy(k, x), R = [];
|
|
331
|
+
I.forEach((X) => {
|
|
332
|
+
z.forEach((Y) => {
|
|
333
|
+
const U = {
|
|
334
|
+
[d.value]: X[d.value],
|
|
335
|
+
[x]: Y[x]
|
|
336
|
+
}, $ = O.find(k, U);
|
|
337
|
+
$ === void 0 ? R.push({
|
|
338
|
+
...U,
|
|
345
339
|
[e[0].dataFieldName]: 0
|
|
346
|
-
}) :
|
|
340
|
+
}) : R.push($);
|
|
347
341
|
});
|
|
348
|
-
}), _.data.setAll(
|
|
342
|
+
}), _.data.setAll(z), w.data.setAll(R);
|
|
349
343
|
}
|
|
350
|
-
|
|
351
|
-
},
|
|
344
|
+
h.appear(1e3, 100);
|
|
345
|
+
}, n), () => {
|
|
352
346
|
var t;
|
|
353
|
-
|
|
347
|
+
y && clearTimeout(y), (t = b.current) == null || t.dispose(), b.current = null;
|
|
354
348
|
};
|
|
355
|
-
}, [r, s, e,
|
|
356
|
-
const
|
|
357
|
-
return { chartId:
|
|
349
|
+
}, [r, s, e, l.palette.mode, a]);
|
|
350
|
+
const N = { ...i };
|
|
351
|
+
return { chartId: u, ownerState: N, sx: p, error: v, other: g };
|
|
358
352
|
};
|
|
359
353
|
export {
|
|
360
|
-
|
|
354
|
+
Oe as useHeatmapLogic
|
|
361
355
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useHighlightLineChartLogic as g } from "./logic.js";
|
|
3
3
|
import { HighlightLineChartRoot as c } from "./styled.js";
|
|
4
|
-
|
|
4
|
+
const x = (i) => {
|
|
5
5
|
const {
|
|
6
6
|
chartDivRef: n,
|
|
7
7
|
seriesData: o,
|
|
@@ -55,7 +55,7 @@ function u(i) {
|
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] });
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
x as HighlightLineChart
|
|
61
61
|
};
|
|
@@ -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 n } from "../_common/chart-error.js";
|
|
3
|
+
import { useLineChartLogic as s } from "./logic.js";
|
|
4
|
+
import { LineChartRoot as a } from "./styled.js";
|
|
5
|
+
const C = (o) => {
|
|
6
|
+
const { chartId: e, ownerState: i, sx: h, error: t, other: m } = s(o);
|
|
7
|
+
return /* @__PURE__ */ r(a, { ownerState: i, sx: h, ...m, children: t ? /* @__PURE__ */ r(n, { message: t }) : /* @__PURE__ */ r("div", { id: e, style: { width: "100%", height: "100%" } }) });
|
|
8
|
+
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
C as LineChart
|
|
10
11
|
};
|