@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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useThemeProps as g } from "@mui/material";
|
|
2
|
+
import { useMemo as r } from "react";
|
|
3
|
+
import { getPageIcon as d, getTemplateHierarchy as u } from "../../utils/ontology.js";
|
|
4
|
+
const C = (c) => {
|
|
5
|
+
const a = g({
|
|
6
|
+
props: c,
|
|
7
|
+
name: "HCObjectProfileCard"
|
|
8
|
+
}), { data: t, templates: o, avatarUploading: n, onAvatarUpload: s, sx: i, ...p } = a, e = r(
|
|
9
|
+
() => o == null ? void 0 : o.get(t == null ? void 0 : t.template.id),
|
|
10
|
+
[o, t]
|
|
11
|
+
), m = r(
|
|
12
|
+
() => o && e ? d(o, e.id, "focus-vision") : "",
|
|
13
|
+
[o, e]
|
|
14
|
+
), l = r(
|
|
15
|
+
() => o && e ? u(o, e) : [],
|
|
16
|
+
[o, e]
|
|
17
|
+
), f = { ...a };
|
|
18
|
+
return {
|
|
19
|
+
data: t,
|
|
20
|
+
template: e,
|
|
21
|
+
templates: o,
|
|
22
|
+
templateHierarchy: l,
|
|
23
|
+
icon: m,
|
|
24
|
+
avatarUploading: n,
|
|
25
|
+
onAvatarUpload: s,
|
|
26
|
+
ownerState: f,
|
|
27
|
+
sx: i,
|
|
28
|
+
other: p
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
C as useObjectProfileCardLogic
|
|
33
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { styled as e, Paper as r, Box as t } from "@mui/material";
|
|
2
|
+
const l = e(r, {
|
|
3
|
+
name: "HCObjectProfileCard",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(() => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
height: "100%"
|
|
9
|
+
})), a = e(t, {
|
|
10
|
+
name: "HCObjectProfileCard",
|
|
11
|
+
slot: "Content"
|
|
12
|
+
})(() => ({
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
flex: "1 1 auto",
|
|
16
|
+
minHeight: 0,
|
|
17
|
+
height: "100%"
|
|
18
|
+
})), n = e(t, {
|
|
19
|
+
name: "HCObjectProfileCard",
|
|
20
|
+
slot: "Header"
|
|
21
|
+
})(({ theme: o }) => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
flexShrink: 0,
|
|
26
|
+
padding: o.spacing(1.5),
|
|
27
|
+
width: "100%"
|
|
28
|
+
})), c = e(t, {
|
|
29
|
+
name: "HCObjectProfileCard",
|
|
30
|
+
slot: "Hierarchy"
|
|
31
|
+
})(() => ({
|
|
32
|
+
marginLeft: 0,
|
|
33
|
+
textAlign: "center"
|
|
34
|
+
})), f = e(t, {
|
|
35
|
+
name: "HCObjectProfileCard",
|
|
36
|
+
slot: "Variables"
|
|
37
|
+
})(() => ({
|
|
38
|
+
flex: 1,
|
|
39
|
+
minHeight: 0,
|
|
40
|
+
overflow: "auto"
|
|
41
|
+
}));
|
|
42
|
+
export {
|
|
43
|
+
a as ObjectProfileCardContent,
|
|
44
|
+
n as ObjectProfileCardHeader,
|
|
45
|
+
c as ObjectProfileCardHierarchy,
|
|
46
|
+
l as ObjectProfileCardRoot,
|
|
47
|
+
f as ObjectProfileCardVariables
|
|
48
|
+
};
|
|
@@ -1,95 +1,99 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { usePaginatedListLogic as
|
|
5
|
-
import { PaginatedListRoot as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
1
|
+
import { jsxs as a, Fragment as T, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as l, Divider as h, Box as k, ListItem as I, Checkbox as w, ListItemIcon as O, ListItemText as R, TablePagination as b } from "@mui/material";
|
|
3
|
+
import S from "lodash";
|
|
4
|
+
import { usePaginatedListLogic as _ } from "./logic.js";
|
|
5
|
+
import { PaginatedListRoot as E, PaginatedListHeader as D, PaginatedListContent as j, PaginatedListList as A, PaginatedListPagination as F } from "./styled.js";
|
|
6
|
+
const N = [5, 10, 25, 50];
|
|
7
|
+
function U(g) {
|
|
8
8
|
const {
|
|
9
9
|
title: t,
|
|
10
|
-
displayData:
|
|
11
|
-
count:
|
|
12
|
-
page:
|
|
13
|
-
rowsPerPage:
|
|
14
|
-
expanded:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
displayData: r,
|
|
11
|
+
count: p,
|
|
12
|
+
page: P,
|
|
13
|
+
rowsPerPage: m,
|
|
14
|
+
expanded: d,
|
|
15
|
+
selectionMode: o,
|
|
16
|
+
selected: y,
|
|
17
|
+
handleChangePage: L,
|
|
18
|
+
handleChangeRowsPerPage: u,
|
|
19
|
+
handleItemClick: x,
|
|
20
|
+
handleExpandToggle: C,
|
|
21
|
+
onItemClick: s,
|
|
22
|
+
ownerState: i,
|
|
21
23
|
sx: v,
|
|
22
|
-
other:
|
|
23
|
-
} =
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
24
|
+
other: f
|
|
25
|
+
} = _(g);
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
27
|
+
E,
|
|
28
|
+
{
|
|
29
|
+
ownerState: i,
|
|
30
|
+
sx: v,
|
|
31
|
+
elevation: 0,
|
|
32
|
+
"data-snapshot": JSON.stringify({
|
|
33
|
+
title: t,
|
|
34
|
+
data: r
|
|
35
|
+
}),
|
|
36
|
+
...f,
|
|
37
|
+
children: [
|
|
38
|
+
t && /* @__PURE__ */ a(T, { children: [
|
|
39
|
+
/* @__PURE__ */ n(D, { ownerState: i, children: /* @__PURE__ */ n(l, { variant: "h3", children: t }) }),
|
|
40
|
+
/* @__PURE__ */ n(h, {})
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ a(j, { ownerState: i, children: [
|
|
43
|
+
/* @__PURE__ */ n(A, { disablePadding: !0, ownerState: i, children: r.map((e, c) => /* @__PURE__ */ a(k, { children: [
|
|
44
|
+
c !== 0 && /* @__PURE__ */ n(h, { component: "li" }),
|
|
45
|
+
/* @__PURE__ */ a(
|
|
46
|
+
I,
|
|
47
|
+
{
|
|
48
|
+
onClick: x(e),
|
|
49
|
+
sx: {
|
|
50
|
+
cursor: o || s ? "pointer" : "default",
|
|
51
|
+
"&:hover": o || s ? { backgroundColor: "action.hover" } : void 0,
|
|
52
|
+
pl: o ? 0 : 2
|
|
53
|
+
},
|
|
54
|
+
children: [
|
|
55
|
+
o && /* @__PURE__ */ n(w, { checked: y.indexOf(e.id) !== -1 }),
|
|
56
|
+
!o && e.icon && /* @__PURE__ */ n(O, { children: e.icon }),
|
|
57
|
+
/* @__PURE__ */ n(
|
|
58
|
+
R,
|
|
59
|
+
{
|
|
60
|
+
primary: e.title,
|
|
61
|
+
primaryTypographyProps: { variant: "h4" },
|
|
62
|
+
secondaryTypographyProps: { component: "div" },
|
|
63
|
+
secondary: /* @__PURE__ */ n(
|
|
64
|
+
l,
|
|
65
|
+
{
|
|
66
|
+
variant: "body2",
|
|
67
|
+
mt: 1,
|
|
68
|
+
sx: { cursor: "pointer" },
|
|
69
|
+
title: d.includes(e.id) ? "Show less" : "Read more",
|
|
70
|
+
onClick: C(e),
|
|
71
|
+
children: d.includes(e.id) ? e.description : S.truncate(e.description, { length: 100 })
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] }, e.id || c)) }),
|
|
80
|
+
/* @__PURE__ */ n(F, { ownerState: i, children: /* @__PURE__ */ n(
|
|
81
|
+
b,
|
|
82
|
+
{
|
|
83
|
+
component: "div",
|
|
84
|
+
count: p,
|
|
85
|
+
page: P,
|
|
86
|
+
rowsPerPage: m,
|
|
87
|
+
rowsPerPageOptions: N,
|
|
88
|
+
onPageChange: L,
|
|
89
|
+
onRowsPerPageChange: u
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
92
96
|
}
|
|
93
97
|
export {
|
|
94
|
-
|
|
98
|
+
U as PaginatedList
|
|
95
99
|
};
|
|
@@ -1,45 +1,56 @@
|
|
|
1
|
-
import { useThemeProps as
|
|
2
|
-
import { useState as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
title:
|
|
6
|
-
data:
|
|
7
|
-
payload:
|
|
8
|
-
totalCount:
|
|
9
|
-
onChange:
|
|
10
|
-
onItemClick:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
f(o),
|
|
18
|
-
},
|
|
19
|
-
o
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
1
|
+
import { useThemeProps as _ } from "@mui/material";
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
const q = (h) => {
|
|
4
|
+
const P = _({ props: h, name: "HCPaginatedList" }), {
|
|
5
|
+
title: w,
|
|
6
|
+
data: d = [],
|
|
7
|
+
payload: t,
|
|
8
|
+
totalCount: x,
|
|
9
|
+
onChange: s,
|
|
10
|
+
onItemClick: a,
|
|
11
|
+
selectionMode: g = !1,
|
|
12
|
+
selected: r = [],
|
|
13
|
+
onSelectionChange: l,
|
|
14
|
+
sx: L,
|
|
15
|
+
...b
|
|
16
|
+
} = P, [m, f] = u(0), [v, C] = u(10), [N, R] = u([]), i = (t == null ? void 0 : t.pageNumber) !== void 0 ? t.pageNumber : m, c = (t == null ? void 0 : t.rows) !== void 0 ? t.rows : v, I = (e, o) => {
|
|
17
|
+
f(o), s && s({ ...t, pageNumber: o, rows: c });
|
|
18
|
+
}, T = (e) => {
|
|
19
|
+
const o = parseInt(e.target.value, 10);
|
|
20
|
+
C(o), f(0), s && s({ ...t, pageNumber: 0, rows: o });
|
|
21
|
+
}, E = (e) => {
|
|
22
|
+
const n = r.indexOf(e.id) === -1 ? [...r, e.id] : r.filter((p) => p !== e.id);
|
|
23
|
+
l == null || l(n, e);
|
|
24
|
+
}, S = (e) => () => {
|
|
25
|
+
if (g) {
|
|
26
|
+
E(e);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
a == null || a(e);
|
|
30
|
+
}, D = (e) => (o) => {
|
|
31
|
+
g || (o.stopPropagation(), R(
|
|
32
|
+
(n) => n.includes(e.id) ? n.filter((p) => p !== e.id) : [...n, e.id]
|
|
33
|
+
));
|
|
34
|
+
}, H = s ? x || 0 : d.length, M = s ? d : d.slice(i * c, (i + 1) * c), O = { ...P };
|
|
25
35
|
return {
|
|
26
|
-
title:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
title: w,
|
|
37
|
+
displayData: M,
|
|
38
|
+
count: H,
|
|
39
|
+
page: i,
|
|
40
|
+
rowsPerPage: c,
|
|
41
|
+
expanded: N,
|
|
42
|
+
selectionMode: g,
|
|
43
|
+
selected: r,
|
|
44
|
+
handleChangePage: I,
|
|
45
|
+
handleChangeRowsPerPage: T,
|
|
46
|
+
handleItemClick: S,
|
|
47
|
+
handleExpandToggle: D,
|
|
48
|
+
onItemClick: a,
|
|
49
|
+
ownerState: O,
|
|
50
|
+
sx: L,
|
|
51
|
+
other: b
|
|
41
52
|
};
|
|
42
53
|
};
|
|
43
54
|
export {
|
|
44
|
-
|
|
55
|
+
q as usePaginatedListLogic
|
|
45
56
|
};
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { styled as t,
|
|
2
|
-
const s = t(
|
|
1
|
+
import { styled as t, Paper as n, Box as a, List as o } from "@mui/material";
|
|
2
|
+
const s = t(n, {
|
|
3
3
|
name: "HCPaginatedList",
|
|
4
4
|
slot: "Root"
|
|
5
5
|
})(() => ({
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
8
|
height: "100%"
|
|
9
|
-
})),
|
|
9
|
+
})), d = t(a, {
|
|
10
10
|
name: "HCPaginatedList",
|
|
11
11
|
slot: "Header"
|
|
12
|
-
})(({ theme:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
fontSize: "1rem",
|
|
17
|
-
fontWeight: 500
|
|
18
|
-
},
|
|
19
|
-
"& .MuiCardHeader-subheader": {
|
|
20
|
-
fontSize: ".875rem"
|
|
21
|
-
}
|
|
22
|
-
})), l = t(n, {
|
|
12
|
+
})(({ theme: i }) => ({
|
|
13
|
+
flex: "0 0 auto",
|
|
14
|
+
padding: i.spacing(1.25, 2)
|
|
15
|
+
})), l = t(a, {
|
|
23
16
|
name: "HCPaginatedList",
|
|
24
17
|
slot: "Content"
|
|
25
18
|
})(() => ({
|
|
26
|
-
|
|
19
|
+
position: "relative",
|
|
27
20
|
display: "flex",
|
|
28
21
|
flexDirection: "column",
|
|
29
|
-
flex: 1,
|
|
22
|
+
flex: "1 1 auto",
|
|
23
|
+
minHeight: 0,
|
|
30
24
|
overflow: "hidden"
|
|
31
25
|
})), g = t(o, {
|
|
32
26
|
name: "HCPaginatedList",
|
|
@@ -34,16 +28,26 @@ const s = t(i, {
|
|
|
34
28
|
})(() => ({
|
|
35
29
|
flex: 1,
|
|
36
30
|
overflowY: "auto"
|
|
37
|
-
})),
|
|
31
|
+
})), r = t("div", {
|
|
38
32
|
name: "HCPaginatedList",
|
|
39
33
|
slot: "Pagination"
|
|
40
|
-
})(({ theme:
|
|
41
|
-
borderTop: `1px solid ${
|
|
34
|
+
})(({ theme: i }) => ({
|
|
35
|
+
borderTop: `1px solid ${i.palette.divider}`,
|
|
36
|
+
".MuiToolbar-root": {
|
|
37
|
+
minHeight: 24,
|
|
38
|
+
paddingLeft: i.spacing(1)
|
|
39
|
+
},
|
|
40
|
+
".MuiTablePagination-actions .MuiButtonBase-root": {
|
|
41
|
+
padding: i.spacing(0.5)
|
|
42
|
+
},
|
|
43
|
+
".MuiTablePagination-displayedRows": {
|
|
44
|
+
lineHeight: 1
|
|
45
|
+
}
|
|
42
46
|
}));
|
|
43
47
|
export {
|
|
44
48
|
l as PaginatedListContent,
|
|
45
|
-
|
|
49
|
+
d as PaginatedListHeader,
|
|
46
50
|
g as PaginatedListList,
|
|
47
|
-
|
|
51
|
+
r as PaginatedListPagination,
|
|
48
52
|
s as PaginatedListRoot
|
|
49
53
|
};
|
|
@@ -4,8 +4,8 @@ import { Dialog as de, DialogTitle as pe, Box as m, Typography as b, TextField a
|
|
|
4
4
|
import { DataGrid as fe } from "@mui/x-data-grid";
|
|
5
5
|
import { useState as G, useEffect as ue } from "react";
|
|
6
6
|
import h from "lodash";
|
|
7
|
-
import { d as ye } from "../../ol-
|
|
8
|
-
import { V as he } from "../../index-
|
|
7
|
+
import { d as ye } from "../../ol-yOE-NV0X.js";
|
|
8
|
+
import { V as he } from "../../index-CcdvNlgr.js";
|
|
9
9
|
import { RangeSelector as me } from "../range-selector/index.js";
|
|
10
10
|
const $e = ({
|
|
11
11
|
open: F,
|
|
@@ -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 r, Box as a, IconButton as n } from "@mui/material";
|
|
2
|
+
const t = r(a, {
|
|
3
|
+
name: "HCPrrMapControls",
|
|
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 = r(n, {
|
|
13
|
+
name: "HCPrrMapControls",
|
|
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
|
+
t as Container
|
|
34
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "@mui/material";
|
|
3
|
+
import { FlexCol as l } from "../../../flex-col/index.js";
|
|
4
|
+
import { FlexRow as i } from "../../../flex-row/index.js";
|
|
5
|
+
import { Container as c, ColorBox as n } from "./styled.js";
|
|
6
|
+
function p() {
|
|
7
|
+
return /* @__PURE__ */ r(c, { children: /* @__PURE__ */ o(l, { children: [
|
|
8
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
9
|
+
/* @__PURE__ */ r(n, { bgcolor: "#CF3655" }),
|
|
10
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "> 1000 (Very High)" })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
13
|
+
/* @__PURE__ */ r(n, { bgcolor: "#FA665A" }),
|
|
14
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "500 - 999" })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
17
|
+
/* @__PURE__ */ r(n, { bgcolor: "#FAAC3D" }),
|
|
18
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "220 - 499" })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
21
|
+
/* @__PURE__ */ r(n, { bgcolor: "#FAE742" }),
|
|
22
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "100 - 219" })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
25
|
+
/* @__PURE__ */ r(n, { bgcolor: "#DAED77" }),
|
|
26
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "50 - 99" })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ o(i, { gap: 0.5, children: [
|
|
29
|
+
/* @__PURE__ */ r(n, { bgcolor: "#A0EE77" }),
|
|
30
|
+
/* @__PURE__ */ r(e, { variant: "overline", children: "< 49 (Very Low)" })
|
|
31
|
+
] })
|
|
32
|
+
] }) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
p as Legend
|
|
36
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { styled as t, Paper as a, Box as n } from "@mui/material";
|
|
2
|
+
const i = t(a, {
|
|
3
|
+
name: "HCPrrMapLegend",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(({ theme: o }) => ({
|
|
6
|
+
position: "absolute",
|
|
7
|
+
right: o.spacing(1),
|
|
8
|
+
bottom: o.spacing(1),
|
|
9
|
+
padding: o.spacing(0.5),
|
|
10
|
+
backgroundColor: o.palette.background.default
|
|
11
|
+
})), p = t(n, {
|
|
12
|
+
name: "HCPrrMapLegend",
|
|
13
|
+
slot: "ColorBox"
|
|
14
|
+
})(() => ({
|
|
15
|
+
height: 18,
|
|
16
|
+
width: 24
|
|
17
|
+
}));
|
|
18
|
+
export {
|
|
19
|
+
p as ColorBox,
|
|
20
|
+
i as Container
|
|
21
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as c } from "@mui/material";
|
|
3
|
+
import { useEffect as l } from "react";
|
|
4
|
+
import { u } from "../../index.esm-BLLrbTzY.js";
|
|
5
|
+
import { M as d } from "../../index-kCJ_Zvl8.js";
|
|
6
|
+
import { Controls as h } from "./components/controls/index.js";
|
|
7
|
+
import { Legend as M } from "./components/legend/index.js";
|
|
8
|
+
import { usePrrMapLogic as R } from "./logic.js";
|
|
9
|
+
import { PrrMapRoot as g, PrrMapHeader as z, PrrMapContent as P } from "./styled.js";
|
|
10
|
+
function D(t) {
|
|
11
|
+
const { refs: o, actions: i, ownerState: e, sx: a, other: f } = R(t), { width: n, height: m, ref: p } = u();
|
|
12
|
+
return l(() => (n && m && i.onMapResize(), () => {
|
|
13
|
+
}), [n, m]), /* @__PURE__ */ s(g, { ownerState: e, sx: a, ref: p, ...f, children: [
|
|
14
|
+
/* @__PURE__ */ r(z, { ownerState: e, children: /* @__PURE__ */ r(c, { variant: "h3", children: t.title }) }),
|
|
15
|
+
/* @__PURE__ */ s(P, { ownerState: e, children: [
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
|
+
d,
|
|
18
|
+
{
|
|
19
|
+
id: o.mapId.current,
|
|
20
|
+
ref: o.mapRef,
|
|
21
|
+
center: { latitude: 0, longitude: 0 },
|
|
22
|
+
zoom: 3,
|
|
23
|
+
options: {
|
|
24
|
+
cssPosition: "absolute",
|
|
25
|
+
controls: { zoom: !1 },
|
|
26
|
+
interactions: { mouseWheelZoom: !1 }
|
|
27
|
+
},
|
|
28
|
+
onInit: i.onInit
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ r(M, {}),
|
|
32
|
+
/* @__PURE__ */ r(h, { mapRef: o.mapRef.current })
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
D as PrrMap
|
|
38
|
+
};
|