@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,143 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
function M(e) {
|
|
16
|
-
return e.substring(2).toLowerCase();
|
|
17
|
-
}
|
|
18
|
-
function te(e, o) {
|
|
19
|
-
return o.documentElement.clientWidth < e.clientX || o.documentElement.clientHeight < e.clientY;
|
|
20
|
-
}
|
|
21
|
-
function O(e) {
|
|
22
|
-
const {
|
|
23
|
-
children: o,
|
|
24
|
-
disableReactTree: s = !1,
|
|
25
|
-
mouseEvent: n = "onClick",
|
|
26
|
-
onClickAway: p,
|
|
27
|
-
touchEvent: c = "onTouchEnd"
|
|
28
|
-
} = e, l = d.useRef(!1), a = d.useRef(null), u = d.useRef(!1), m = d.useRef(!1);
|
|
29
|
-
d.useEffect(() => (setTimeout(() => {
|
|
30
|
-
u.current = !0;
|
|
31
|
-
}, 0), () => {
|
|
32
|
-
u.current = !1;
|
|
33
|
-
}), []);
|
|
34
|
-
const I = D(
|
|
35
|
-
// @ts-expect-error TODO upstream fix
|
|
36
|
-
o.ref,
|
|
37
|
-
a
|
|
38
|
-
), g = W((r) => {
|
|
39
|
-
const i = m.current;
|
|
40
|
-
m.current = !1;
|
|
41
|
-
const f = k(a.current);
|
|
42
|
-
if (!u.current || !a.current || "clientX" in r && te(r, f))
|
|
43
|
-
return;
|
|
44
|
-
if (l.current) {
|
|
45
|
-
l.current = !1;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
let v;
|
|
49
|
-
r.composedPath ? v = r.composedPath().indexOf(a.current) > -1 : v = !f.documentElement.contains(
|
|
50
|
-
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
51
|
-
r.target
|
|
52
|
-
) || a.current.contains(
|
|
53
|
-
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
54
|
-
r.target
|
|
55
|
-
), !v && (s || !i) && p(r);
|
|
56
|
-
}), h = (r) => (i) => {
|
|
57
|
-
m.current = !0;
|
|
58
|
-
const f = o.props[r];
|
|
59
|
-
f && f(i);
|
|
60
|
-
}, x = {
|
|
61
|
-
ref: I
|
|
62
|
-
};
|
|
63
|
-
return c !== !1 && (x[c] = h(c)), d.useEffect(() => {
|
|
64
|
-
if (c !== !1) {
|
|
65
|
-
const r = M(c), i = k(a.current), f = () => {
|
|
66
|
-
l.current = !0;
|
|
67
|
-
};
|
|
68
|
-
return i.addEventListener(r, g), i.addEventListener("touchmove", f), () => {
|
|
69
|
-
i.removeEventListener(r, g), i.removeEventListener("touchmove", f);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}, [g, c]), n !== !1 && (x[n] = h(n)), d.useEffect(() => {
|
|
73
|
-
if (n !== !1) {
|
|
74
|
-
const r = M(n), i = k(a.current);
|
|
75
|
-
return i.addEventListener(r, g), () => {
|
|
76
|
-
i.removeEventListener(r, g);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}, [g, n]), /* @__PURE__ */ y(d.Fragment, {
|
|
80
|
-
children: /* @__PURE__ */ d.cloneElement(o, x)
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
84
|
-
// ----------------------------- Warning --------------------------------
|
|
85
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
87
|
-
// ----------------------------------------------------------------------
|
|
88
|
-
/**
|
|
89
|
-
* The wrapped element.
|
|
90
|
-
*/
|
|
91
|
-
children: q.isRequired,
|
|
92
|
-
/**
|
|
93
|
-
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
94
|
-
* This prop changes how portaled elements are handled.
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
disableReactTree: t.bool,
|
|
98
|
-
/**
|
|
99
|
-
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
100
|
-
* @default 'onClick'
|
|
101
|
-
*/
|
|
102
|
-
mouseEvent: t.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
|
|
103
|
-
/**
|
|
104
|
-
* Callback fired when a "click away" event is detected.
|
|
105
|
-
*/
|
|
106
|
-
onClickAway: t.func.isRequired,
|
|
107
|
-
/**
|
|
108
|
-
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
109
|
-
* @default 'onTouchEnd'
|
|
110
|
-
*/
|
|
111
|
-
touchEvent: t.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
112
|
-
});
|
|
113
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = X(O.propTypes));
|
|
114
|
-
const oe = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], se = (e, o) => {
|
|
1
|
+
import { jsx as p, jsxs as S, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { ClickAwayListener as U } from "@mui/material";
|
|
3
|
+
import { L as T, a as G } from "../../List-tqElle9C.js";
|
|
4
|
+
import { l as v, g as D, L as W } from "../../ListItem-CfjsIg4B.js";
|
|
5
|
+
import { a as d, _ as k } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
6
|
+
import * as f from "react";
|
|
7
|
+
import { P as t } from "../../index-C__OZmYy.js";
|
|
8
|
+
import { u as R, c as h, a as P } from "../../useThemeProps-BzzHcQyd.js";
|
|
9
|
+
import { alpha as I } from "@mui/system";
|
|
10
|
+
import { s as B, r as A } from "../../styled-eZwjUruw.js";
|
|
11
|
+
import { B as z, u as q, a as H } from "../../ButtonBase-2bPw77UP.js";
|
|
12
|
+
import { g as J, l as w, b as K } from "../../listItemTextClasses-C3lndiXO.js";
|
|
13
|
+
import { T as C } from "../../Typography-CxbneZy_.js";
|
|
14
|
+
const Q = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], X = (e, o) => {
|
|
115
15
|
const {
|
|
116
16
|
ownerState: s
|
|
117
17
|
} = e;
|
|
118
18
|
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
|
|
119
|
-
},
|
|
19
|
+
}, Y = (e) => {
|
|
120
20
|
const {
|
|
121
21
|
alignItems: o,
|
|
122
22
|
classes: s,
|
|
123
|
-
dense:
|
|
124
|
-
disabled:
|
|
125
|
-
disableGutters:
|
|
126
|
-
divider:
|
|
127
|
-
selected:
|
|
128
|
-
} = e,
|
|
129
|
-
root: ["root",
|
|
130
|
-
},
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
shouldForwardProp: (e) =>
|
|
23
|
+
dense: a,
|
|
24
|
+
disabled: n,
|
|
25
|
+
disableGutters: i,
|
|
26
|
+
divider: c,
|
|
27
|
+
selected: r
|
|
28
|
+
} = e, u = P({
|
|
29
|
+
root: ["root", a && "dense", !i && "gutters", c && "divider", n && "disabled", o === "flex-start" && "alignItemsFlexStart", r && "selected"]
|
|
30
|
+
}, D, s);
|
|
31
|
+
return d({}, s, u);
|
|
32
|
+
}, Z = B(z, {
|
|
33
|
+
shouldForwardProp: (e) => A(e) || e === "classes",
|
|
134
34
|
name: "MuiListItemButton",
|
|
135
35
|
slot: "Root",
|
|
136
|
-
overridesResolver:
|
|
36
|
+
overridesResolver: X
|
|
137
37
|
})(({
|
|
138
38
|
theme: e,
|
|
139
39
|
ownerState: o
|
|
140
|
-
}) =>
|
|
40
|
+
}) => d({
|
|
141
41
|
display: "flex",
|
|
142
42
|
flexGrow: 1,
|
|
143
43
|
justifyContent: "flex-start",
|
|
@@ -160,23 +60,23 @@ const oe = ["alignItems", "autoFocus", "component", "children", "dense", "disabl
|
|
|
160
60
|
backgroundColor: "transparent"
|
|
161
61
|
}
|
|
162
62
|
},
|
|
163
|
-
[`&.${
|
|
164
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
165
|
-
[`&.${
|
|
166
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
63
|
+
[`&.${v.selected}`]: {
|
|
64
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
65
|
+
[`&.${v.focusVisible}`]: {
|
|
66
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
167
67
|
}
|
|
168
68
|
},
|
|
169
|
-
[`&.${
|
|
170
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
69
|
+
[`&.${v.selected}:hover`]: {
|
|
70
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : I(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
171
71
|
// Reset on touch devices, it doesn't add specificity
|
|
172
72
|
"@media (hover: none)": {
|
|
173
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
73
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : I(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
174
74
|
}
|
|
175
75
|
},
|
|
176
|
-
[`&.${
|
|
76
|
+
[`&.${v.focusVisible}`]: {
|
|
177
77
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
178
78
|
},
|
|
179
|
-
[`&.${
|
|
79
|
+
[`&.${v.disabled}`]: {
|
|
180
80
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
181
81
|
}
|
|
182
82
|
}, o.divider && {
|
|
@@ -190,48 +90,48 @@ const oe = ["alignItems", "autoFocus", "component", "children", "dense", "disabl
|
|
|
190
90
|
}, o.dense && {
|
|
191
91
|
paddingTop: 4,
|
|
192
92
|
paddingBottom: 4
|
|
193
|
-
})), F = /* @__PURE__ */
|
|
194
|
-
const
|
|
93
|
+
})), F = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
94
|
+
const a = R({
|
|
195
95
|
props: o,
|
|
196
96
|
name: "MuiListItemButton"
|
|
197
97
|
}), {
|
|
198
|
-
alignItems:
|
|
199
|
-
autoFocus:
|
|
200
|
-
component:
|
|
201
|
-
children:
|
|
202
|
-
dense:
|
|
203
|
-
disableGutters:
|
|
204
|
-
divider:
|
|
205
|
-
focusVisibleClassName:
|
|
206
|
-
selected:
|
|
98
|
+
alignItems: n = "center",
|
|
99
|
+
autoFocus: i = !1,
|
|
100
|
+
component: c = "div",
|
|
101
|
+
children: r,
|
|
102
|
+
dense: m = !1,
|
|
103
|
+
disableGutters: u = !1,
|
|
104
|
+
divider: L = !1,
|
|
105
|
+
focusVisibleClassName: O,
|
|
106
|
+
selected: N = !1,
|
|
207
107
|
className: x
|
|
208
|
-
} =
|
|
209
|
-
dense:
|
|
210
|
-
alignItems:
|
|
211
|
-
disableGutters:
|
|
212
|
-
}), [
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}, [
|
|
216
|
-
const j =
|
|
217
|
-
alignItems:
|
|
218
|
-
dense:
|
|
219
|
-
disableGutters:
|
|
220
|
-
divider:
|
|
221
|
-
selected:
|
|
222
|
-
}),
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
value:
|
|
225
|
-
children: /* @__PURE__ */
|
|
226
|
-
ref:
|
|
227
|
-
href:
|
|
228
|
-
component: (
|
|
229
|
-
focusVisibleClassName:
|
|
108
|
+
} = a, l = k(a, Q), y = f.useContext(T), g = f.useMemo(() => ({
|
|
109
|
+
dense: m || y.dense || !1,
|
|
110
|
+
alignItems: n,
|
|
111
|
+
disableGutters: u
|
|
112
|
+
}), [n, y.dense, m, u]), b = f.useRef(null);
|
|
113
|
+
q(() => {
|
|
114
|
+
i && (b.current ? b.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
115
|
+
}, [i]);
|
|
116
|
+
const j = d({}, a, {
|
|
117
|
+
alignItems: n,
|
|
118
|
+
dense: g.dense,
|
|
119
|
+
disableGutters: u,
|
|
120
|
+
divider: L,
|
|
121
|
+
selected: N
|
|
122
|
+
}), $ = Y(j), _ = H(b, s);
|
|
123
|
+
return /* @__PURE__ */ p(T.Provider, {
|
|
124
|
+
value: g,
|
|
125
|
+
children: /* @__PURE__ */ p(Z, d({
|
|
126
|
+
ref: _,
|
|
127
|
+
href: l.href || l.to,
|
|
128
|
+
component: (l.href || l.to) && c === "div" ? "a" : c,
|
|
129
|
+
focusVisibleClassName: h($.focusVisible, O),
|
|
230
130
|
ownerState: j,
|
|
231
|
-
className:
|
|
232
|
-
},
|
|
233
|
-
classes:
|
|
234
|
-
children:
|
|
131
|
+
className: h($.root, x)
|
|
132
|
+
}, l, {
|
|
133
|
+
classes: $,
|
|
134
|
+
children: r
|
|
235
135
|
}))
|
|
236
136
|
});
|
|
237
137
|
});
|
|
@@ -313,15 +213,15 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
313
213
|
*/
|
|
314
214
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
315
215
|
});
|
|
316
|
-
const
|
|
216
|
+
const ee = ["className"], te = (e) => {
|
|
317
217
|
const {
|
|
318
218
|
alignItems: o,
|
|
319
219
|
classes: s
|
|
320
220
|
} = e;
|
|
321
|
-
return
|
|
221
|
+
return P({
|
|
322
222
|
root: ["root", o === "flex-start" && "alignItemsFlexStart"]
|
|
323
|
-
},
|
|
324
|
-
},
|
|
223
|
+
}, J, s);
|
|
224
|
+
}, oe = B("div", {
|
|
325
225
|
name: "MuiListItemIcon",
|
|
326
226
|
slot: "Root",
|
|
327
227
|
overridesResolver: (e, o) => {
|
|
@@ -333,29 +233,29 @@ const ae = ["className"], ie = (e) => {
|
|
|
333
233
|
})(({
|
|
334
234
|
theme: e,
|
|
335
235
|
ownerState: o
|
|
336
|
-
}) =>
|
|
236
|
+
}) => d({
|
|
337
237
|
minWidth: 56,
|
|
338
238
|
color: (e.vars || e).palette.action.active,
|
|
339
239
|
flexShrink: 0,
|
|
340
240
|
display: "inline-flex"
|
|
341
241
|
}, o.alignItems === "flex-start" && {
|
|
342
242
|
marginTop: 8
|
|
343
|
-
})),
|
|
344
|
-
const
|
|
243
|
+
})), V = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
244
|
+
const a = R({
|
|
345
245
|
props: o,
|
|
346
246
|
name: "MuiListItemIcon"
|
|
347
247
|
}), {
|
|
348
|
-
className:
|
|
349
|
-
} =
|
|
350
|
-
alignItems:
|
|
351
|
-
}),
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
className:
|
|
354
|
-
ownerState:
|
|
248
|
+
className: n
|
|
249
|
+
} = a, i = k(a, ee), c = f.useContext(T), r = d({}, a, {
|
|
250
|
+
alignItems: c.alignItems
|
|
251
|
+
}), m = te(r);
|
|
252
|
+
return /* @__PURE__ */ p(oe, d({
|
|
253
|
+
className: h(m.root, n),
|
|
254
|
+
ownerState: r,
|
|
355
255
|
ref: s
|
|
356
|
-
},
|
|
256
|
+
}, i));
|
|
357
257
|
});
|
|
358
|
-
process.env.NODE_ENV !== "production" && (
|
|
258
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
359
259
|
// ----------------------------- Warning --------------------------------
|
|
360
260
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
361
261
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -378,20 +278,20 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
378
278
|
*/
|
|
379
279
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
380
280
|
});
|
|
381
|
-
const
|
|
281
|
+
const se = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], ae = (e) => {
|
|
382
282
|
const {
|
|
383
283
|
classes: o,
|
|
384
284
|
inset: s,
|
|
385
|
-
primary:
|
|
386
|
-
secondary:
|
|
387
|
-
dense:
|
|
285
|
+
primary: a,
|
|
286
|
+
secondary: n,
|
|
287
|
+
dense: i
|
|
388
288
|
} = e;
|
|
389
|
-
return
|
|
390
|
-
root: ["root", s && "inset",
|
|
289
|
+
return P({
|
|
290
|
+
root: ["root", s && "inset", i && "dense", a && n && "multiline"],
|
|
391
291
|
primary: ["primary"],
|
|
392
292
|
secondary: ["secondary"]
|
|
393
|
-
},
|
|
394
|
-
},
|
|
293
|
+
}, K, o);
|
|
294
|
+
}, re = B("div", {
|
|
395
295
|
name: "MuiListItemText",
|
|
396
296
|
slot: "Root",
|
|
397
297
|
overridesResolver: (e, o) => {
|
|
@@ -399,14 +299,14 @@ const le = ["children", "className", "disableTypography", "inset", "primary", "p
|
|
|
399
299
|
ownerState: s
|
|
400
300
|
} = e;
|
|
401
301
|
return [{
|
|
402
|
-
[`& .${
|
|
302
|
+
[`& .${w.primary}`]: o.primary
|
|
403
303
|
}, {
|
|
404
|
-
[`& .${
|
|
304
|
+
[`& .${w.secondary}`]: o.secondary
|
|
405
305
|
}, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
|
|
406
306
|
}
|
|
407
307
|
})(({
|
|
408
308
|
ownerState: e
|
|
409
|
-
}) =>
|
|
309
|
+
}) => d({
|
|
410
310
|
flex: "1 1 auto",
|
|
411
311
|
minWidth: 0,
|
|
412
312
|
marginTop: 4,
|
|
@@ -416,53 +316,53 @@ const le = ["children", "className", "disableTypography", "inset", "primary", "p
|
|
|
416
316
|
marginBottom: 6
|
|
417
317
|
}, e.inset && {
|
|
418
318
|
paddingLeft: 56
|
|
419
|
-
})),
|
|
420
|
-
const
|
|
319
|
+
})), E = /* @__PURE__ */ f.forwardRef(function(o, s) {
|
|
320
|
+
const a = R({
|
|
421
321
|
props: o,
|
|
422
322
|
name: "MuiListItemText"
|
|
423
323
|
}), {
|
|
424
|
-
children:
|
|
425
|
-
className:
|
|
426
|
-
disableTypography:
|
|
427
|
-
inset:
|
|
428
|
-
primary:
|
|
429
|
-
primaryTypographyProps:
|
|
430
|
-
secondary:
|
|
431
|
-
secondaryTypographyProps:
|
|
432
|
-
} =
|
|
324
|
+
children: n,
|
|
325
|
+
className: i,
|
|
326
|
+
disableTypography: c = !1,
|
|
327
|
+
inset: r = !1,
|
|
328
|
+
primary: m,
|
|
329
|
+
primaryTypographyProps: u,
|
|
330
|
+
secondary: L,
|
|
331
|
+
secondaryTypographyProps: O
|
|
332
|
+
} = a, N = k(a, se), {
|
|
433
333
|
dense: x
|
|
434
|
-
} =
|
|
435
|
-
let
|
|
436
|
-
const
|
|
437
|
-
disableTypography:
|
|
438
|
-
inset:
|
|
439
|
-
primary: !!
|
|
440
|
-
secondary: !!
|
|
334
|
+
} = f.useContext(T);
|
|
335
|
+
let l = m ?? n, y = L;
|
|
336
|
+
const g = d({}, a, {
|
|
337
|
+
disableTypography: c,
|
|
338
|
+
inset: r,
|
|
339
|
+
primary: !!l,
|
|
340
|
+
secondary: !!y,
|
|
441
341
|
dense: x
|
|
442
|
-
}),
|
|
443
|
-
return
|
|
342
|
+
}), b = ae(g);
|
|
343
|
+
return l != null && l.type !== C && !c && (l = /* @__PURE__ */ p(C, d({
|
|
444
344
|
variant: x ? "body2" : "body1",
|
|
445
|
-
className:
|
|
446
|
-
component:
|
|
345
|
+
className: b.primary,
|
|
346
|
+
component: u != null && u.variant ? void 0 : "span",
|
|
447
347
|
display: "block"
|
|
448
|
-
},
|
|
449
|
-
children:
|
|
450
|
-
}))),
|
|
348
|
+
}, u, {
|
|
349
|
+
children: l
|
|
350
|
+
}))), y != null && y.type !== C && !c && (y = /* @__PURE__ */ p(C, d({
|
|
451
351
|
variant: "body2",
|
|
452
|
-
className:
|
|
352
|
+
className: b.secondary,
|
|
453
353
|
color: "text.secondary",
|
|
454
354
|
display: "block"
|
|
455
|
-
},
|
|
456
|
-
children:
|
|
457
|
-
}))), /* @__PURE__ */
|
|
458
|
-
className:
|
|
459
|
-
ownerState:
|
|
355
|
+
}, O, {
|
|
356
|
+
children: y
|
|
357
|
+
}))), /* @__PURE__ */ S(re, d({
|
|
358
|
+
className: h(b.root, i),
|
|
359
|
+
ownerState: g,
|
|
460
360
|
ref: s
|
|
461
|
-
},
|
|
462
|
-
children: [
|
|
361
|
+
}, N, {
|
|
362
|
+
children: [l, y]
|
|
463
363
|
}));
|
|
464
364
|
});
|
|
465
|
-
process.env.NODE_ENV !== "production" && (
|
|
365
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
466
366
|
// ----------------------------- Warning --------------------------------
|
|
467
367
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
468
368
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -516,47 +416,47 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
516
416
|
*/
|
|
517
417
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
518
418
|
});
|
|
519
|
-
const
|
|
419
|
+
const ve = ({
|
|
520
420
|
open: e,
|
|
521
421
|
buttons: o,
|
|
522
422
|
position: s,
|
|
523
|
-
width:
|
|
524
|
-
sx:
|
|
525
|
-
onClose:
|
|
423
|
+
width: a = 160,
|
|
424
|
+
sx: n,
|
|
425
|
+
onClose: i
|
|
526
426
|
}) => {
|
|
527
|
-
const
|
|
528
|
-
|
|
427
|
+
const c = () => {
|
|
428
|
+
i && i();
|
|
529
429
|
};
|
|
530
|
-
return e ? /* @__PURE__ */
|
|
531
|
-
|
|
430
|
+
return e ? /* @__PURE__ */ p(U, { onClickAway: c, children: /* @__PURE__ */ p(
|
|
431
|
+
G,
|
|
532
432
|
{
|
|
533
433
|
sx: {
|
|
534
434
|
position: "absolute",
|
|
535
435
|
zIndex: 9999999,
|
|
536
|
-
width:
|
|
436
|
+
width: a,
|
|
537
437
|
maxWidth: 360,
|
|
538
438
|
bgcolor: "background.paper",
|
|
539
439
|
left: s == null ? void 0 : s.left,
|
|
540
440
|
top: s == null ? void 0 : s.top,
|
|
541
441
|
borderRadius: 0.5,
|
|
542
|
-
...
|
|
442
|
+
...n
|
|
543
443
|
},
|
|
544
444
|
disablePadding: !0,
|
|
545
|
-
children: o.map((
|
|
546
|
-
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
|
|
445
|
+
children: o.map((r, m) => /* @__PURE__ */ p(W, { secondaryAction: r.endIcon, disablePadding: !0, children: /* @__PURE__ */ S(F, { role: void 0, onClick: r.onClick, dense: !0, children: [
|
|
446
|
+
r.startIcon !== void 0 && /* @__PURE__ */ p(V, { sx: { minWidth: "auto", mr: 1 }, children: r.startIcon }),
|
|
447
|
+
/* @__PURE__ */ p(
|
|
448
|
+
E,
|
|
549
449
|
{
|
|
550
|
-
primary:
|
|
450
|
+
primary: r.label,
|
|
551
451
|
primaryTypographyProps: {
|
|
552
452
|
fontSize: "12px"
|
|
553
453
|
}
|
|
554
454
|
}
|
|
555
455
|
)
|
|
556
|
-
] }) },
|
|
456
|
+
] }) }, m))
|
|
557
457
|
}
|
|
558
|
-
) }) : /* @__PURE__ */
|
|
458
|
+
) }) : /* @__PURE__ */ p(M, {});
|
|
559
459
|
};
|
|
560
460
|
export {
|
|
561
|
-
|
|
461
|
+
ve as ContextMenu
|
|
562
462
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Container as t, Button as r } from "./styled.js";
|
|
3
|
+
import { I as s, a as l } from "../../../../IconPlus-yPkff_Vj.js";
|
|
4
|
+
function m({ mapRef: n }) {
|
|
5
|
+
return n ? /* @__PURE__ */ i(t, { children: [
|
|
6
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
|
|
7
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
|
|
8
|
+
] }) : null;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as Controls
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { styled as a, Box as n, IconButton as t } from "@mui/material";
|
|
2
|
+
const r = a(n, {
|
|
3
|
+
name: "HCDataMapControls",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(({ theme: o }) => ({
|
|
6
|
+
position: "absolute",
|
|
7
|
+
left: o.spacing(1),
|
|
8
|
+
bottom: o.spacing(1),
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: o.spacing(0.5)
|
|
12
|
+
})), p = a(t, {
|
|
13
|
+
name: "HCDataMapControls",
|
|
14
|
+
slot: "Button"
|
|
15
|
+
})(({ theme: o }) => ({
|
|
16
|
+
borderRadius: o.shape.borderRadius,
|
|
17
|
+
backgroundColor: o.palette.background.paper,
|
|
18
|
+
border: "1px solid",
|
|
19
|
+
borderColor: o.palette.divider,
|
|
20
|
+
width: o.spacing(3),
|
|
21
|
+
height: o.spacing(3),
|
|
22
|
+
padding: o.spacing(0.5),
|
|
23
|
+
".MuiSvgIcon-root": {
|
|
24
|
+
width: o.spacing(2),
|
|
25
|
+
height: o.spacing(2)
|
|
26
|
+
},
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: o.palette.background.default
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
export {
|
|
32
|
+
p as Button,
|
|
33
|
+
r as Container
|
|
34
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as f, Paper as d } from "@mui/material";
|
|
3
|
+
import { useEffect as u } from "react";
|
|
4
|
+
import { u as h } from "../../index.esm-BLLrbTzY.js";
|
|
5
|
+
import { M as x } from "../../index-kCJ_Zvl8.js";
|
|
6
|
+
import { Controls as M } from "./components/controls/index.js";
|
|
7
|
+
import { useDataMapLogic as R } from "./logic.js";
|
|
8
|
+
import { DataMapRoot as z, DataMapHeader as D, DataMapContent as y } from "./styled.js";
|
|
9
|
+
function H(i) {
|
|
10
|
+
const { refs: e, actions: a, state: o, ownerState: r, sx: m, other: l } = R(i), { width: n, height: p, ref: c } = h();
|
|
11
|
+
return u(() => (n && p && a.onMapResize(), () => {
|
|
12
|
+
}), [n, p]), /* @__PURE__ */ s(z, { ownerState: r, sx: m, ref: c, ...l, children: [
|
|
13
|
+
/* @__PURE__ */ t(D, { ownerState: r, children: /* @__PURE__ */ t(f, { variant: "h3", children: i.title }) }),
|
|
14
|
+
/* @__PURE__ */ s(y, { ownerState: r, children: [
|
|
15
|
+
/* @__PURE__ */ t(
|
|
16
|
+
x,
|
|
17
|
+
{
|
|
18
|
+
id: e.mapId.current,
|
|
19
|
+
ref: e.mapRef,
|
|
20
|
+
center: { latitude: 0, longitude: 0 },
|
|
21
|
+
zoom: 3,
|
|
22
|
+
options: {
|
|
23
|
+
cssPosition: "absolute",
|
|
24
|
+
controls: { zoom: !1 }
|
|
25
|
+
},
|
|
26
|
+
onInit: a.onInit
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ t(M, { mapRef: e.mapRef.current }),
|
|
30
|
+
o.tooltip && /* @__PURE__ */ t(
|
|
31
|
+
d,
|
|
32
|
+
{
|
|
33
|
+
elevation: 3,
|
|
34
|
+
sx: {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
left: o.tooltip.x + 12,
|
|
37
|
+
top: o.tooltip.y + 12,
|
|
38
|
+
px: 1.5,
|
|
39
|
+
py: 0.75,
|
|
40
|
+
pointerEvents: "none",
|
|
41
|
+
zIndex: 1e3
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ t(f, { variant: "body2", children: o.tooltip.text })
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
H as DataMap
|
|
51
|
+
};
|