@hybridcore/ui 1.5.90 → 1.6.1
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-CMg08YSA.js} +91 -95
- package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- 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-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
- package/dist/FormControl-BCurCxRj.js +1294 -0
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- 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-DSDIEEKu.js +3161 -0
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
- 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-quqpGCFu.js +9 -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/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/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 +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 -557
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- 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 +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- 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 +8 -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 +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- 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 +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/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- 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/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/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/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/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 +42 -50
- package/dist/components/range-selector/components/date-range/index.js +148 -7
- 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 +4222 -0
- 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/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 +8 -8
- 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 +8 -10
- 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 +8 -9
- package/dist/components/template-form/index.js +32 -33
- 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/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 +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/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
- package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C8C3YXle.js +1932 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +1869 -565
- 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-DL_dEoNn.js} +57 -62
- package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/Button-eqWvpDuh.js +0 -356
- package/dist/CardContent-DsYqqPeJ.js +0 -74
- package/dist/Checkbox-CrU2hpWB.js +0 -420
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/FormControlLabel-BrdX4R71.js +0 -195
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/List-DOD5kSk3.js +0 -121
- package/dist/ListItem-r8PbsvCz.js +0 -429
- package/dist/Modal-CkcFEpHa.js +0 -1284
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Paper-CjqLScHA.js +0 -163
- package/dist/Select-t3ewnSdf.js +0 -2180
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/TextField-BQ8a50fA.js +0 -459
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/key-protection/menu.js +0 -85
- 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/components/treeview-filter/item/styled.js +0 -39
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/debounce-46wSf_lW.js +0 -15
- 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/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-CNjn41Of.js +0 -16
- 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/useFormControl-CatNKXAi.js +0 -10
- 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
- package/dist/utils-CsOZUsQj.js +0 -365
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useThemeProps as Q, useTheme as X } from "@mui/material";
|
|
2
|
+
import { V as B } from "../../Vector-BmuhQO4p.js";
|
|
3
|
+
import { t as V } from "../../Source-BSZST_GH.js";
|
|
4
|
+
import { V as T } from "../../Vector-DfTqQEln.js";
|
|
5
|
+
import { uniqueId as C, isEmpty as O, values as z } from "lodash";
|
|
6
|
+
import { useRef as m, useState as N, useEffect as G } from "react";
|
|
7
|
+
import { createMapboxLayer as Y } from "../map/helpers/mapbox.js";
|
|
8
|
+
import { parse as U } from "../map/helpers/wkt.js";
|
|
9
|
+
import { W as K } from "../../WKT-2wsDT-nq.js";
|
|
10
|
+
import { S as j, I as _ } from "../../Text-ChJRuaD8.js";
|
|
11
|
+
const $ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAADNCAMAAAAmPqoJAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAohQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Ro2BGQAAANh0Uk5TABA4XICDn6e/y9/Pq4dkPBgoWHyjx+v/8zQEGkx/seTntIJPHSxwr++3eAqO1JJQDgFDhYlHBQhAkeHmlkVOnvRTAgtbrPxgSD6dRCDeJmHAxmebu9zjdwwumaBWwchdE37q8DuuQmLbam7odnv7CQ0VkyHDj2niJK2G8sw5pRJxomyLP0uqswZXqb4w97V5NRxo1yeMxA91+C1a5f3KjXLSvbzO7h8lUS8X2Zea/qHCsMVv2tDpPdFUhJzJc5VSuKQbbbLsdGM2Ht1Z1SM37RQDqPFmZYEzh2hhYQAAC0NJREFUeJzNnQ1UFNcVx+cKKOAHu0BslSY1ftRDbSs0p0I4Ao1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n2rqLWZ9fYJsIZah1l3RwYrqPWYCfa+MJ1al5lglxGzqfWZSfZzMZeagJlo5xwzqUmYybb7MY+aiJlwYyWzqMmYSbewMoeakJl4szAzqEmZyXc4M56amJliLzmjqcmZaXbtM5aagplqq0EjqWmY6TZ1NI6aiplyJ0qjqOmYaff8NIaakpkW2hBqWmZqaAOoqZnpoblT0zMzQHOmZmBmgeZKzcLMBM2RmomZDZobNRszIzQnakZmVmgu1KzMzNAcqJmZ2aHR1OzMCGgkNYIZA42ixjCjoBHUKGYcNDM1jhkJzUiNZMZCM1FjmdHQDNRoZjw0NTWemQM0JTUHZh7QVNQ8mLlAC3lvkobmt0agMi94xGe/u8FXydL1tOWobl1MI16b9J0box+cPyyJ0/Z63HYWzHlH7xKBb/CK1uG3HeJg22NawbWOjEIel7NLPPdwLJ94Wm1datTK1ER+jvhuPAmJN5WWe5ZVNvLYP8HvhmdlTqVcrPxSnjrAfjUhkirpur54Q4uy9Sqo7Cp13ilKqpqjoC9lzhIC/R8ayIzTAQpU0QAAAABJRU5ErkJggg==", le = (Z) => {
|
|
12
|
+
const q = Q({ props: Z, name: "HCDataMap" }), { data: A, payload: l, onPayloadUpdate: H, accessToken: D, sx: w, ...R } = q, p = X(), g = m(C("map-")), t = m(null), c = m(null), d = m(null), n = m(null), f = m(), [x, E] = N(!1), [L, M] = N(null), P = () => {
|
|
13
|
+
if (!x || !t.current || !A || O(A) || !d.current)
|
|
14
|
+
return;
|
|
15
|
+
const r = new K(), o = A.filter((e) => {
|
|
16
|
+
const a = z(e.variables.geometry)[0];
|
|
17
|
+
try {
|
|
18
|
+
return U(a), !0;
|
|
19
|
+
} catch {
|
|
20
|
+
return !1;
|
|
21
|
+
}
|
|
22
|
+
}).map((e) => {
|
|
23
|
+
const a = z(e.variables.geometry)[0], u = r.readFeature(a, {
|
|
24
|
+
dataProjection: "EPSG:4326",
|
|
25
|
+
featureProjection: "EPSG:3857"
|
|
26
|
+
});
|
|
27
|
+
return u.set("title", e.title), u;
|
|
28
|
+
});
|
|
29
|
+
d.current.clear(), d.current.addFeatures(o);
|
|
30
|
+
}, y = () => {
|
|
31
|
+
var e;
|
|
32
|
+
if (!t.current) return;
|
|
33
|
+
const r = (e = t.current) == null ? void 0 : e.getBoundingBox(), o = {
|
|
34
|
+
...l,
|
|
35
|
+
boundingBox: r
|
|
36
|
+
};
|
|
37
|
+
H(o);
|
|
38
|
+
}, S = () => {
|
|
39
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
40
|
+
var r;
|
|
41
|
+
(r = t.current) == null || r.updateSize(), c.current && c.current.map.resize();
|
|
42
|
+
}, 100);
|
|
43
|
+
}, W = () => {
|
|
44
|
+
var r, o;
|
|
45
|
+
(r = t.current) == null || r.on("movestart", () => {
|
|
46
|
+
n.current && (clearTimeout(n.current), n.current = null);
|
|
47
|
+
}), (o = t.current) == null || o.on("moveend", () => {
|
|
48
|
+
n.current && (clearTimeout(n.current), n.current = null), n.current = setTimeout(y, 500);
|
|
49
|
+
});
|
|
50
|
+
}, k = () => {
|
|
51
|
+
var u, J, h;
|
|
52
|
+
const r = p.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", o = Y({
|
|
53
|
+
id: g.current,
|
|
54
|
+
center: [0, 0],
|
|
55
|
+
style: r,
|
|
56
|
+
accessToken: D
|
|
57
|
+
});
|
|
58
|
+
(u = t.current) == null || u.addLayer(o.layer), c.current = o;
|
|
59
|
+
const e = new T(), a = new B({
|
|
60
|
+
source: e,
|
|
61
|
+
style: new j({
|
|
62
|
+
image: new _({
|
|
63
|
+
anchor: [0.5, 1],
|
|
64
|
+
src: $,
|
|
65
|
+
scale: 0.1,
|
|
66
|
+
color: p.palette.primary.main
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
if ((J = t.current) == null || J.addLayer(a), d.current = e, E(!0), W(), y(), (h = t.current) == null || h.on("pointermove", (s) => {
|
|
71
|
+
var b;
|
|
72
|
+
const i = (b = t.current) == null ? void 0 : b.forEachFeatureAtPixel(s.pixel, 4);
|
|
73
|
+
M(i ? {
|
|
74
|
+
text: i.get("title"),
|
|
75
|
+
x: s.pixel[0],
|
|
76
|
+
y: s.pixel[1]
|
|
77
|
+
} : null);
|
|
78
|
+
}), l != null && l.boundingBox && t.current) {
|
|
79
|
+
const { bottomLeft: s, topRight: i } = l.boundingBox, b = [
|
|
80
|
+
s.longitude,
|
|
81
|
+
s.latitude,
|
|
82
|
+
i.longitude,
|
|
83
|
+
i.latitude
|
|
84
|
+
], F = V(b, "EPSG:4326", "EPSG:3857");
|
|
85
|
+
t.current.centerToExtent(F);
|
|
86
|
+
}
|
|
87
|
+
}, v = () => {
|
|
88
|
+
var e, a;
|
|
89
|
+
if (!c.current) return;
|
|
90
|
+
const r = p.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", o = ((a = (e = c.current.layer.getSource()) == null ? void 0 : e.getMapboxMap) == null ? void 0 : a.call(e)) || c.current.map;
|
|
91
|
+
o && o.setStyle(r);
|
|
92
|
+
};
|
|
93
|
+
G(() => (P(), () => {
|
|
94
|
+
}), [A, x]), G(() => (v(), () => {
|
|
95
|
+
}), [p.palette.mode]);
|
|
96
|
+
const I = { ...q };
|
|
97
|
+
return {
|
|
98
|
+
refs: { mapRef: t, mapId: g },
|
|
99
|
+
state: { tooltip: L },
|
|
100
|
+
actions: { onInit: k, onMapResize: S },
|
|
101
|
+
ownerState: I,
|
|
102
|
+
sx: w,
|
|
103
|
+
other: R
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
le as useDataMapLogic
|
|
108
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { styled as o, Paper as e, Box as t } from "@mui/material";
|
|
2
|
+
const r = o(e, {
|
|
3
|
+
name: "HCDataMap",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (a) => a !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
height: "100%",
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column"
|
|
10
|
+
})), l = o(t, {
|
|
11
|
+
name: "HCDataMap",
|
|
12
|
+
slot: "Header",
|
|
13
|
+
shouldForwardProp: (a) => a !== "ownerState"
|
|
14
|
+
})(({ theme: a }) => ({
|
|
15
|
+
flex: "0 0 auto",
|
|
16
|
+
padding: a.spacing(1.25, 2)
|
|
17
|
+
})), p = o(t, {
|
|
18
|
+
name: "HCDataMap",
|
|
19
|
+
slot: "Content",
|
|
20
|
+
shouldForwardProp: (a) => a !== "ownerState"
|
|
21
|
+
})(() => ({
|
|
22
|
+
position: "relative",
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
flex: "1 1 auto",
|
|
26
|
+
minHeight: 0
|
|
27
|
+
}));
|
|
28
|
+
export {
|
|
29
|
+
p as DataMapContent,
|
|
30
|
+
l as DataMapHeader,
|
|
31
|
+
r as DataMapRoot
|
|
32
|
+
};
|
|
@@ -1,94 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (d && t.length > 0) {
|
|
37
|
-
const r = t.find(
|
|
38
|
-
(h) => h.id === d
|
|
39
|
-
);
|
|
40
|
-
if (r) return r.level;
|
|
41
|
-
}
|
|
42
|
-
return l;
|
|
43
|
-
}, [
|
|
44
|
-
l,
|
|
45
|
-
d,
|
|
46
|
-
t,
|
|
47
|
-
n,
|
|
48
|
-
i,
|
|
49
|
-
c,
|
|
50
|
-
o,
|
|
51
|
-
a
|
|
52
|
-
]), b = (r) => {
|
|
53
|
-
S(r.target.value);
|
|
54
|
-
};
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
y,
|
|
57
|
-
{
|
|
58
|
-
condition: f === "left",
|
|
59
|
-
wrapper: (r) => /* @__PURE__ */ u(p, { display: "flex", alignItems: "center", children: [
|
|
60
|
-
/* @__PURE__ */ e(F, { width: "32%", children: "Security Level *" }),
|
|
61
|
-
/* @__PURE__ */ e(p, { width: "68%", children: r })
|
|
62
|
-
] }),
|
|
63
|
-
children: /* @__PURE__ */ u(A, { children: [
|
|
64
|
-
/* @__PURE__ */ u(
|
|
65
|
-
I,
|
|
66
|
-
{
|
|
67
|
-
fullWidth: !0,
|
|
68
|
-
variant: g,
|
|
69
|
-
error: m,
|
|
70
|
-
sx: { ...g === "outlined" && { mt: 1 } },
|
|
71
|
-
children: [
|
|
72
|
-
f === "default" && /* @__PURE__ */ e($, { id: "security-level-label", children: "Security Level *" }),
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
j,
|
|
75
|
-
{
|
|
76
|
-
label: f === "default" ? "Security Level *" : void 0,
|
|
77
|
-
labelId: "security-level-label",
|
|
78
|
-
id: "demo-simple-select",
|
|
79
|
-
value: x,
|
|
80
|
-
onChange: b,
|
|
81
|
-
children: t.filter((r) => r.level <= C).map((r, h) => /* @__PURE__ */ e(v, { value: r.id, children: r.name }, h))
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
m && /* @__PURE__ */ e(w, { error: !0, children: "This field is required!" })
|
|
88
|
-
] })
|
|
89
|
-
}
|
|
90
|
-
);
|
|
1
|
+
import { jsxs as t, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { InputLabel as v } from "@mui/material";
|
|
3
|
+
import { useSecurityLevelLogic as y } from "./logic.js";
|
|
4
|
+
import { SecurityFormControl as L, SecuritySelect as f, SecurityMenuItem as m, SecurityHelperText as S, SecurityLevelRoot as b, LeftLayout as x, LeftLabel as g, LeftContent as C } from "./styled.js";
|
|
5
|
+
const F = (r) => {
|
|
6
|
+
const { state: o, actions: u } = y(r), { ownerState: i, visibleLevels: a, variant: d, labelPosition: l } = o, c = /* @__PURE__ */ t(h, { children: [
|
|
7
|
+
/* @__PURE__ */ t(
|
|
8
|
+
L,
|
|
9
|
+
{
|
|
10
|
+
ownerState: i,
|
|
11
|
+
fullWidth: !0,
|
|
12
|
+
variant: d,
|
|
13
|
+
error: r.showError,
|
|
14
|
+
children: [
|
|
15
|
+
l === "default" && /* @__PURE__ */ e(v, { id: "security-level-label", children: "Security Level *" }),
|
|
16
|
+
/* @__PURE__ */ e(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
label: l === "default" ? "Security Level *" : void 0,
|
|
20
|
+
labelId: "security-level-label",
|
|
21
|
+
id: "security-level-select",
|
|
22
|
+
value: r.value,
|
|
23
|
+
onChange: u.handleChange,
|
|
24
|
+
children: a.map((n, s) => /* @__PURE__ */ e(m, { value: n.id, children: n.name }, s))
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
r.showError && /* @__PURE__ */ e(S, { error: !0, children: "This field is required!" })
|
|
31
|
+
] });
|
|
32
|
+
return /* @__PURE__ */ e(b, { ownerState: i, sx: r.sx, children: l === "left" ? /* @__PURE__ */ t(x, { children: [
|
|
33
|
+
/* @__PURE__ */ e(g, { children: "Security Level *" }),
|
|
34
|
+
/* @__PURE__ */ e(C, { children: c })
|
|
35
|
+
] }) : c });
|
|
91
36
|
};
|
|
92
37
|
export {
|
|
93
|
-
|
|
38
|
+
F as SecurityLevel
|
|
94
39
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { useThemeProps as M } from "@mui/material";
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
import { b as p } from "../../../helpers-B4UL9NMD.js";
|
|
4
|
+
const R = (L) => {
|
|
5
|
+
const c = M({ props: L, name: "HCSecurityLevel" }), {
|
|
6
|
+
ontologyId: f,
|
|
7
|
+
appRoles: s,
|
|
8
|
+
templateKeys: o,
|
|
9
|
+
templateType: i,
|
|
10
|
+
securityLevels: t,
|
|
11
|
+
minLevel: n = 99,
|
|
12
|
+
minLevelId: a,
|
|
13
|
+
minLevelRoles: l,
|
|
14
|
+
variant: u = "outlined",
|
|
15
|
+
labelPosition: v = "default",
|
|
16
|
+
onChange: d
|
|
17
|
+
} = c, r = m(() => {
|
|
18
|
+
if (l && l.length > 0) {
|
|
19
|
+
for (const e of l)
|
|
20
|
+
if (p(e, "SUPER_ADMIN", s))
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
if (o && o.length > 0 && i) {
|
|
24
|
+
for (const e of o)
|
|
25
|
+
if (p(
|
|
26
|
+
`${f}.${i}.${e}`,
|
|
27
|
+
"SUPER_ADMIN",
|
|
28
|
+
s
|
|
29
|
+
))
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
if (a && t.length > 0) {
|
|
33
|
+
const e = t.find(
|
|
34
|
+
(y) => y.id === a
|
|
35
|
+
);
|
|
36
|
+
if (e) return e.level;
|
|
37
|
+
}
|
|
38
|
+
return n;
|
|
39
|
+
}, [
|
|
40
|
+
n,
|
|
41
|
+
a,
|
|
42
|
+
t,
|
|
43
|
+
l,
|
|
44
|
+
o,
|
|
45
|
+
i,
|
|
46
|
+
s,
|
|
47
|
+
f
|
|
48
|
+
]), h = m(
|
|
49
|
+
() => t.filter((e) => e.level <= r),
|
|
50
|
+
[t, r]
|
|
51
|
+
), g = {
|
|
52
|
+
...c,
|
|
53
|
+
variant: u,
|
|
54
|
+
labelPosition: v,
|
|
55
|
+
resolvedMinLevel: r
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
refs: {},
|
|
59
|
+
state: {
|
|
60
|
+
ownerState: g,
|
|
61
|
+
resolvedMinLevel: r,
|
|
62
|
+
visibleLevels: h,
|
|
63
|
+
variant: u,
|
|
64
|
+
labelPosition: v
|
|
65
|
+
},
|
|
66
|
+
actions: { handleChange: (e) => {
|
|
67
|
+
d(e.target.value);
|
|
68
|
+
} }
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
R as useSecurityLevelLogic
|
|
73
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { styled as e, Box as o, Typography as n, FormControl as c, Select as s, MenuItem as i, FormHelperText as a } from "@mui/material";
|
|
2
|
+
const l = (t) => t !== "ownerState", u = e(o, {
|
|
3
|
+
name: "HCSecurityLevel",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: l
|
|
6
|
+
})({}), y = e(o, {
|
|
7
|
+
name: "HCSecurityLevel",
|
|
8
|
+
slot: "leftLayout"
|
|
9
|
+
})({
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center"
|
|
12
|
+
}), L = e(n, {
|
|
13
|
+
name: "HCSecurityLevel",
|
|
14
|
+
slot: "leftLabel"
|
|
15
|
+
})({
|
|
16
|
+
width: "32%"
|
|
17
|
+
}), S = e(o, {
|
|
18
|
+
name: "HCSecurityLevel",
|
|
19
|
+
slot: "leftContent"
|
|
20
|
+
})({
|
|
21
|
+
width: "68%"
|
|
22
|
+
}), C = e(c, {
|
|
23
|
+
name: "HCSecurityLevel",
|
|
24
|
+
slot: "formControl",
|
|
25
|
+
shouldForwardProp: l
|
|
26
|
+
})(({ theme: t, ownerState: r }) => ({
|
|
27
|
+
...r.variant === "outlined" && { marginTop: t.spacing(1) }
|
|
28
|
+
})), p = e(s, {
|
|
29
|
+
name: "HCSecurityLevel",
|
|
30
|
+
slot: "select"
|
|
31
|
+
})({}), v = e(i, {
|
|
32
|
+
name: "HCSecurityLevel",
|
|
33
|
+
slot: "menuItem"
|
|
34
|
+
})({}), H = e(a, {
|
|
35
|
+
name: "HCSecurityLevel",
|
|
36
|
+
slot: "helperText"
|
|
37
|
+
})({});
|
|
38
|
+
export {
|
|
39
|
+
S as LeftContent,
|
|
40
|
+
L as LeftLabel,
|
|
41
|
+
y as LeftLayout,
|
|
42
|
+
C as SecurityFormControl,
|
|
43
|
+
H as SecurityHelperText,
|
|
44
|
+
u as SecurityLevelRoot,
|
|
45
|
+
v as SecurityMenuItem,
|
|
46
|
+
p as SecuritySelect
|
|
47
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useThemeProps as Y } from "@mui/material";
|
|
2
|
+
import c from "dayjs";
|
|
3
|
+
import { useState as g, useEffect as O } from "react";
|
|
4
|
+
const d = {
|
|
5
|
+
TODAY: "Today",
|
|
6
|
+
YESTERDAY: "Yesterday",
|
|
7
|
+
THIS_WEEK: "This Week",
|
|
8
|
+
LAST_7_DAYS: "Last 7 Days",
|
|
9
|
+
THIS_MONTH: "This Month",
|
|
10
|
+
LAST_30_DAYS: "Last 30 Days",
|
|
11
|
+
LAST_MONTH: "Last Month",
|
|
12
|
+
LAST_3_MONTHS: "Last 3 Months",
|
|
13
|
+
THIS_YEAR: "This Year",
|
|
14
|
+
LAST_YEAR: "Last Year"
|
|
15
|
+
}, C = (i) => {
|
|
16
|
+
const a = Y({
|
|
17
|
+
props: i,
|
|
18
|
+
name: "HCDatePickerWithCustomRange"
|
|
19
|
+
}), { value: t, onChange: o, presetLabels: m, sx: p, ...T } = a, [S, r] = g(
|
|
20
|
+
(t == null ? void 0 : t.type) ?? "relative"
|
|
21
|
+
);
|
|
22
|
+
O(() => {
|
|
23
|
+
t != null && t.type && r(t.type);
|
|
24
|
+
}, [t == null ? void 0 : t.type]);
|
|
25
|
+
const l = { ...d, ...m || {} }, u = Object.entries(l), y = (e, s) => {
|
|
26
|
+
s && r(s);
|
|
27
|
+
}, h = (e) => {
|
|
28
|
+
o({ type: "relative", value: e });
|
|
29
|
+
}, L = (e) => {
|
|
30
|
+
if (!e || !e.isValid()) return;
|
|
31
|
+
const s = (t == null ? void 0 : t.type) === "custom" ? t.value : {};
|
|
32
|
+
o({
|
|
33
|
+
type: "custom",
|
|
34
|
+
value: { ...s, min: e.startOf("day").toISOString() }
|
|
35
|
+
});
|
|
36
|
+
}, _ = (e) => {
|
|
37
|
+
if (!e || !e.isValid()) return;
|
|
38
|
+
const s = (t == null ? void 0 : t.type) === "custom" ? t.value : {};
|
|
39
|
+
o({
|
|
40
|
+
type: "custom",
|
|
41
|
+
value: { ...s, max: e.endOf("day").toISOString() }
|
|
42
|
+
});
|
|
43
|
+
}, A = (t == null ? void 0 : t.type) === "relative" ? t.value : null, n = (t == null ? void 0 : t.type) === "custom" ? t.value : {}, E = n.min ? c(n.min) : null, f = n.max ? c(n.max) : null, D = { ...a };
|
|
44
|
+
return {
|
|
45
|
+
state: {
|
|
46
|
+
filterType: S,
|
|
47
|
+
activePreset: A,
|
|
48
|
+
minValue: E,
|
|
49
|
+
maxValue: f,
|
|
50
|
+
presets: u
|
|
51
|
+
},
|
|
52
|
+
actions: {
|
|
53
|
+
handleTypeChange: y,
|
|
54
|
+
handlePresetSelect: h,
|
|
55
|
+
handleMinDateChange: L,
|
|
56
|
+
handleMaxDateChange: _
|
|
57
|
+
},
|
|
58
|
+
ownerState: D,
|
|
59
|
+
sx: p,
|
|
60
|
+
other: T
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
d as DEFAULT_RELATIVE_PRESET_LABELS,
|
|
65
|
+
C as useDatePickerWithCustomRangeLogic
|
|
66
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { styled as o, Box as e, ToggleButtonGroup as r, Button as s } from "@mui/material";
|
|
2
|
+
const i = o(e, {
|
|
3
|
+
name: "HCDatePickerWithCustomRange",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (t) => t !== "ownerState"
|
|
6
|
+
})(() => ({})), l = o(r, {
|
|
7
|
+
name: "HCDatePickerWithCustomRange",
|
|
8
|
+
slot: "Toggle"
|
|
9
|
+
})(({ theme: t }) => ({
|
|
10
|
+
marginBottom: t.spacing(2)
|
|
11
|
+
})), g = o(e, {
|
|
12
|
+
name: "HCDatePickerWithCustomRange",
|
|
13
|
+
slot: "PresetGrid"
|
|
14
|
+
})(({ theme: t }) => ({
|
|
15
|
+
display: "flex",
|
|
16
|
+
gap: t.spacing(1),
|
|
17
|
+
flexWrap: "wrap"
|
|
18
|
+
})), c = o(s, {
|
|
19
|
+
name: "HCDatePickerWithCustomRange",
|
|
20
|
+
slot: "PresetButton",
|
|
21
|
+
shouldForwardProp: (t) => t !== "active"
|
|
22
|
+
})(({ theme: t, active: a }) => ({
|
|
23
|
+
...a && {
|
|
24
|
+
backgroundColor: t.palette.primary.main,
|
|
25
|
+
color: t.palette.primary.contrastText,
|
|
26
|
+
"&:hover": {
|
|
27
|
+
backgroundColor: t.palette.primary.dark
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
})), m = o(e, {
|
|
31
|
+
name: "HCDatePickerWithCustomRange",
|
|
32
|
+
slot: "CustomRow"
|
|
33
|
+
})(({ theme: t }) => ({
|
|
34
|
+
display: "flex",
|
|
35
|
+
gap: t.spacing(2)
|
|
36
|
+
}));
|
|
37
|
+
export {
|
|
38
|
+
m as CustomRow,
|
|
39
|
+
i as DatePickerWithCustomRangeRoot,
|
|
40
|
+
l as DatePickerWithCustomRangeToggle,
|
|
41
|
+
c as PresetButton,
|
|
42
|
+
g as PresetGrid
|
|
43
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useDividerLogic as m } from "./logic.js";
|
|
3
|
+
import { DividerRoot as f } from "./styled.js";
|
|
4
|
+
function d(o) {
|
|
5
|
+
const { orientation: r, ownerState: i, sx: t, other: e } = m(o);
|
|
6
|
+
return /* @__PURE__ */ n(
|
|
7
|
+
f,
|
|
8
|
+
{
|
|
9
|
+
ownerState: i,
|
|
10
|
+
orientation: r,
|
|
11
|
+
sx: t,
|
|
12
|
+
...e
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as Divider
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useThemeProps as i } from "@mui/material";
|
|
2
|
+
const c = (e) => {
|
|
3
|
+
const o = i({ props: e, name: "HCDivider" }), { orientation: r = "horizontal", sx: t, ...n } = o, s = { ...o, orientation: r };
|
|
4
|
+
return {
|
|
5
|
+
orientation: r,
|
|
6
|
+
ownerState: s,
|
|
7
|
+
sx: t,
|
|
8
|
+
other: n
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
c as useDividerLogic
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { styled as t, Divider as r } from "@mui/material";
|
|
2
|
+
const e = t(r, {
|
|
3
|
+
name: "HCDivider",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(({ ownerState: o }) => ({
|
|
7
|
+
...o.orientation === "vertical" && {
|
|
8
|
+
width: "1px",
|
|
9
|
+
margin: "auto"
|
|
10
|
+
}
|
|
11
|
+
}));
|
|
12
|
+
export {
|
|
13
|
+
e as DividerRoot
|
|
14
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, Fragment as p, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button as a, Box as f } from "@mui/material";
|
|
3
3
|
import u from "../map/index.js";
|
|
4
4
|
import C from "../parser/index.js";
|
|
5
|
-
import { g as y, c as h } from "../../../ol-
|
|
5
|
+
import { g as y, c as h } from "../../../ol-yOE-NV0X.js";
|
|
6
6
|
import { useState as g } from "react";
|
|
7
7
|
import { Add as P } from "@mui/icons-material";
|
|
8
8
|
import { parse as v, convert as x } from "../../map/helpers/wkt.js";
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as i, Fragment as D } from "react/jsx-runtime";
|
|
|
2
2
|
import k, { useState as x } from "react";
|
|
3
3
|
import { Dialog as W, DialogContent as w, DialogActions as y, Button as e, Box as j } from "@mui/material";
|
|
4
4
|
import m from "../map/index.js";
|
|
5
|
-
import { c as K } from "../../../ol-
|
|
5
|
+
import { c as K } from "../../../ol-yOE-NV0X.js";
|
|
6
6
|
function F({
|
|
7
7
|
value: h,
|
|
8
8
|
disableActions: p,
|
|
@@ -3,7 +3,7 @@ import D, { useState as k } from "react";
|
|
|
3
3
|
import { Dialog as R, DialogContent as K, Box as o, Typography as x, DialogActions as F, Button as d } from "@mui/material";
|
|
4
4
|
import P from "../map/index.js";
|
|
5
5
|
import b from "../parser/index.js";
|
|
6
|
-
import { c as _ } from "../../../ol-
|
|
6
|
+
import { c as _ } from "../../../ol-yOE-NV0X.js";
|
|
7
7
|
import { Button as l } from "../styled.js";
|
|
8
8
|
import { HorizontalRule as j, ShowChart as O, CircleOutlined as I } from "@mui/icons-material";
|
|
9
9
|
import L from "./map-overlay.js";
|