@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
|
@@ -1,9 +1,150 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "@mui/material";
|
|
3
|
-
import "@mui/
|
|
4
|
-
import "dayjs";
|
|
5
|
-
import "../../../../hooks/useToggle.js";
|
|
6
|
-
import {
|
|
1
|
+
import { jsxs as n, Fragment as g, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Edit as M } from "@mui/icons-material";
|
|
3
|
+
import { Dialog as S, DialogTitle as U, DialogContent as H, FormControlLabel as b, Checkbox as v, InputLabel as I, Select as x, MenuItem as L, DialogActions as k, Button as D } from "@mui/material";
|
|
4
|
+
import i from "dayjs";
|
|
5
|
+
import E from "../../../../hooks/useToggle.js";
|
|
6
|
+
import { DateTrigger as z, DateTriggerText as h, DateTriggerArrow as A, DateTriggerEditButton as O, DateLimitCaption as F, DatePicker as N, DateUnitRow as w, DateUnitControl as j, DateRangeInput as Y } from "../../styled.js";
|
|
7
|
+
const y = [
|
|
8
|
+
"MILLISECOND",
|
|
9
|
+
"SECOND",
|
|
10
|
+
"MINUTE",
|
|
11
|
+
"HOUR",
|
|
12
|
+
"DAY",
|
|
13
|
+
"MONTH",
|
|
14
|
+
"YEAR"
|
|
15
|
+
], Z = (C) => {
|
|
16
|
+
const { value: e, minDate: r, maxDate: m, onChange: l } = C, o = E(!1), u = (a) => {
|
|
17
|
+
l({
|
|
18
|
+
...e,
|
|
19
|
+
startDate: i(a).format("YYYY-MM-DDTHH:mm:ssZ")
|
|
20
|
+
});
|
|
21
|
+
}, p = (a) => {
|
|
22
|
+
l({ ...e, limitForScenarioTimeRange: a.target.checked });
|
|
23
|
+
}, R = (a) => {
|
|
24
|
+
l({
|
|
25
|
+
...e,
|
|
26
|
+
timeUnit: a.target.value
|
|
27
|
+
});
|
|
28
|
+
}, s = (a) => {
|
|
29
|
+
const { name: T, value: f } = a.target;
|
|
30
|
+
l({ ...e, [T]: f });
|
|
31
|
+
}, c = e.startDate && e.timeUnit && e.startRange ? i(e.startDate).add(
|
|
32
|
+
e.startRange,
|
|
33
|
+
e.timeUnit.toLowerCase()
|
|
34
|
+
).format("DD/MM/YYYY HH:mm:ss.SSS") : "", d = e.startDate && e.timeUnit && e.endRange ? i(e.startDate).add(e.endRange, e.timeUnit.toLowerCase()).format("DD/MM/YYYY HH:mm:ss.SSS") : "";
|
|
35
|
+
return /* @__PURE__ */ n(g, { children: [
|
|
36
|
+
/* @__PURE__ */ n(
|
|
37
|
+
z,
|
|
38
|
+
{
|
|
39
|
+
title: `${c} -> ${d}`,
|
|
40
|
+
onClick: o.action.open,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ t(h, { variant: "body2", children: c }),
|
|
43
|
+
/* @__PURE__ */ t(A, { fontSize: "small" }),
|
|
44
|
+
/* @__PURE__ */ t(h, { variant: "body2", children: d }),
|
|
45
|
+
/* @__PURE__ */ t(O, { size: "small", children: /* @__PURE__ */ t(M, { fontSize: "small" }) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ n(
|
|
50
|
+
S,
|
|
51
|
+
{
|
|
52
|
+
open: o.state.isOpen,
|
|
53
|
+
onClose: o.action.close,
|
|
54
|
+
fullWidth: !0,
|
|
55
|
+
maxWidth: "sm",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ t(U, { children: "Date Range" }),
|
|
58
|
+
/* @__PURE__ */ n(H, { children: [
|
|
59
|
+
/* @__PURE__ */ t(
|
|
60
|
+
b,
|
|
61
|
+
{
|
|
62
|
+
control: /* @__PURE__ */ t(
|
|
63
|
+
v,
|
|
64
|
+
{
|
|
65
|
+
checked: e.limitForScenarioTimeRange,
|
|
66
|
+
onChange: p
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
label: /* @__PURE__ */ n(g, { children: [
|
|
70
|
+
"Limit range to scenario times",
|
|
71
|
+
/* @__PURE__ */ n(F, { variant: "caption", children: [
|
|
72
|
+
"(",
|
|
73
|
+
i(r).format("DD/MM/YYYY HH:mm"),
|
|
74
|
+
" - ",
|
|
75
|
+
i(m).format("DD/MM/YYYY HH:mm"),
|
|
76
|
+
")"
|
|
77
|
+
] })
|
|
78
|
+
] }),
|
|
79
|
+
title: "If checked, limits start and end time to scenario start and end time."
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ t(
|
|
83
|
+
N,
|
|
84
|
+
{
|
|
85
|
+
label: "Start Date",
|
|
86
|
+
slotProps: { textField: { size: "small" } },
|
|
87
|
+
format: "DD/MM/YYYY HH:mm:ss",
|
|
88
|
+
minDateTime: i(r),
|
|
89
|
+
maxDateTime: i(m),
|
|
90
|
+
value: i(e.startDate),
|
|
91
|
+
onChange: u
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ n(w, { children: [
|
|
95
|
+
/* @__PURE__ */ n(j, { size: "small", children: [
|
|
96
|
+
/* @__PURE__ */ t(I, { id: "timeUnit-label", children: "Time Unit" }),
|
|
97
|
+
/* @__PURE__ */ t(
|
|
98
|
+
x,
|
|
99
|
+
{
|
|
100
|
+
labelId: "timeUnit-label",
|
|
101
|
+
id: "timeUnit",
|
|
102
|
+
value: e.timeUnit,
|
|
103
|
+
label: "Time Unit",
|
|
104
|
+
onChange: R,
|
|
105
|
+
children: y.map((a) => /* @__PURE__ */ t(L, { value: a, children: a }, a))
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ t(
|
|
110
|
+
Y,
|
|
111
|
+
{
|
|
112
|
+
name: "startRange",
|
|
113
|
+
label: "Range Start",
|
|
114
|
+
size: "small",
|
|
115
|
+
value: e.startRange,
|
|
116
|
+
onChange: s
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ t(
|
|
120
|
+
Y,
|
|
121
|
+
{
|
|
122
|
+
name: "endRange",
|
|
123
|
+
label: "Range End",
|
|
124
|
+
size: "small",
|
|
125
|
+
value: e.endRange,
|
|
126
|
+
onChange: s
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
] })
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ n(k, { children: [
|
|
132
|
+
/* @__PURE__ */ t(
|
|
133
|
+
D,
|
|
134
|
+
{
|
|
135
|
+
variant: "contained",
|
|
136
|
+
color: "inherit",
|
|
137
|
+
onClick: o.action.close,
|
|
138
|
+
children: "Cancel"
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ t(D, { variant: "contained", onClick: o.action.close, children: "OK" })
|
|
142
|
+
] })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] });
|
|
147
|
+
};
|
|
7
148
|
export {
|
|
8
|
-
|
|
149
|
+
Z as DateRange
|
|
9
150
|
};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { GeometryPicker as
|
|
3
|
-
|
|
4
|
-
value: e,
|
|
5
|
-
|
|
6
|
-
onChange: o
|
|
7
|
-
}) {
|
|
8
|
-
const t = (a) => {
|
|
9
|
-
o({
|
|
10
|
-
geometryArea: a
|
|
11
|
-
});
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { GeometryPicker as s } from "../../../geometry-picker/index.js";
|
|
3
|
+
const l = (e) => {
|
|
4
|
+
const { value: o, mapboxAccessToken: r, onChange: a } = e, n = (t) => {
|
|
5
|
+
a({ geometryArea: t });
|
|
12
6
|
};
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
7
|
+
return /* @__PURE__ */ m(
|
|
8
|
+
s,
|
|
15
9
|
{
|
|
16
10
|
mapboxAccessToken: r,
|
|
17
11
|
label: "",
|
|
18
|
-
value:
|
|
12
|
+
value: o.geometryArea,
|
|
19
13
|
disableAddCoordinate: !0,
|
|
20
|
-
onChange:
|
|
14
|
+
onChange: n
|
|
21
15
|
}
|
|
22
16
|
);
|
|
23
|
-
}
|
|
17
|
+
};
|
|
24
18
|
export {
|
|
25
|
-
l as
|
|
19
|
+
l as GeometryRange
|
|
26
20
|
};
|
|
@@ -1,89 +1,84 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { useState as p } from "react";
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { TextField as C, FormControl as L, InputLabel as V, Select as M, MenuItem as d } from "@mui/material";
|
|
4
3
|
import I from "lodash";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"discreteList" in
|
|
10
|
-
),
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
const { name:
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
[
|
|
4
|
+
import { useState as c } from "react";
|
|
5
|
+
import { NumberRow as h, NumberRangeRow as N, NumberInputMin as R, NumberInputMax as T, ModeColumn as y } from "../../styled.js";
|
|
6
|
+
const F = (p) => {
|
|
7
|
+
const { value: e, onChange: a, variant: n = "outlined" } = p, [m, g] = c(
|
|
8
|
+
"discreteList" in e && e.discreteList.length > 0 ? "list" : "range"
|
|
9
|
+
), [b, x] = c(
|
|
10
|
+
"discreteList" in e ? e.discreteList.join(",") : ""
|
|
11
|
+
), v = (l) => {
|
|
12
|
+
g(l.target.value), l.target.value === "list" ? a({ discreteList: [] }) : a({ minValue: "", maxValue: "" });
|
|
13
|
+
}, f = (l) => {
|
|
14
|
+
const i = l.target.value, s = I.trimEnd(i, ",").split(",").filter((u) => u).map((u) => Number(u.trimStart()));
|
|
15
|
+
x(i), a({ discreteList: s });
|
|
16
|
+
}, o = (l) => {
|
|
17
|
+
const { name: i, value: s } = l.target;
|
|
18
|
+
a({
|
|
19
|
+
...e,
|
|
20
|
+
[i]: Number(s)
|
|
22
21
|
});
|
|
23
22
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
23
|
+
return /* @__PURE__ */ r(h, { children: [
|
|
24
|
+
m === "list" ? /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(
|
|
25
|
+
C,
|
|
27
26
|
{
|
|
28
27
|
size: "small",
|
|
29
28
|
fullWidth: !0,
|
|
30
|
-
variant:
|
|
31
|
-
value:
|
|
32
|
-
onChange:
|
|
33
|
-
inputProps: {
|
|
34
|
-
placeholder: "Comma separated number list"
|
|
35
|
-
},
|
|
29
|
+
variant: n,
|
|
30
|
+
value: b,
|
|
31
|
+
onChange: f,
|
|
32
|
+
inputProps: { placeholder: "Comma separated number list" },
|
|
36
33
|
title: "Add list values with the comma (,) separated numbers"
|
|
37
34
|
}
|
|
38
|
-
) : /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
35
|
+
) }) : /* @__PURE__ */ r(N, { children: [
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
|
+
R,
|
|
41
38
|
{
|
|
42
39
|
name: "minValue",
|
|
43
40
|
label: "Min",
|
|
44
41
|
type: "number",
|
|
45
42
|
size: "small",
|
|
46
|
-
variant:
|
|
43
|
+
variant: n,
|
|
47
44
|
fullWidth: !0,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onChange: c
|
|
45
|
+
value: "minValue" in e ? e.minValue : "",
|
|
46
|
+
onChange: o
|
|
51
47
|
}
|
|
52
48
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
T,
|
|
55
51
|
{
|
|
56
52
|
name: "maxValue",
|
|
57
53
|
label: "Max",
|
|
58
54
|
type: "number",
|
|
59
55
|
size: "small",
|
|
60
|
-
variant:
|
|
56
|
+
variant: n,
|
|
61
57
|
fullWidth: !0,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
onChange: c
|
|
58
|
+
value: "maxValue" in e ? e.maxValue : "",
|
|
59
|
+
onChange: o
|
|
65
60
|
}
|
|
66
61
|
)
|
|
67
|
-
] })
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(L, { fullWidth: !0, size: "small", variant: n, children: [
|
|
64
|
+
/* @__PURE__ */ t(V, { id: "mode-label", children: "Input Type" }),
|
|
65
|
+
/* @__PURE__ */ r(
|
|
66
|
+
M,
|
|
72
67
|
{
|
|
73
68
|
labelId: "mode-label",
|
|
74
69
|
id: "mode",
|
|
75
|
-
value:
|
|
70
|
+
value: m,
|
|
76
71
|
label: "Input Type",
|
|
77
|
-
onChange:
|
|
72
|
+
onChange: v,
|
|
78
73
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ t(d, { value: "range", children: "Range" }),
|
|
75
|
+
/* @__PURE__ */ t(d, { value: "list", children: "Discrete List" })
|
|
81
76
|
]
|
|
82
77
|
}
|
|
83
78
|
)
|
|
84
79
|
] }) })
|
|
85
80
|
] });
|
|
86
|
-
}
|
|
81
|
+
};
|
|
87
82
|
export {
|
|
88
|
-
|
|
83
|
+
F as NumberRange
|
|
89
84
|
};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TextField as
|
|
3
|
-
import { useState as p } from "react";
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { TextField as u } from "@mui/material";
|
|
4
3
|
import h from "lodash";
|
|
5
|
-
|
|
4
|
+
import { useState as c } from "react";
|
|
5
|
+
const L = (i) => {
|
|
6
6
|
var e;
|
|
7
|
-
const
|
|
8
|
-
((e =
|
|
7
|
+
const { value: a, onChange: l, variant: r = "outlined" } = i, [n, o] = c(
|
|
8
|
+
((e = a.listOfPossibleValues) == null ? void 0 : e.join(",")) || ""
|
|
9
9
|
);
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
return /* @__PURE__ */ p(
|
|
11
|
+
u,
|
|
12
12
|
{
|
|
13
13
|
size: "small",
|
|
14
14
|
fullWidth: !0,
|
|
15
|
-
variant:
|
|
16
|
-
value:
|
|
17
|
-
onChange: (
|
|
18
|
-
const s =
|
|
19
|
-
o(s), l({
|
|
20
|
-
listOfPossibleValues: m
|
|
21
|
-
});
|
|
15
|
+
variant: r,
|
|
16
|
+
value: n,
|
|
17
|
+
onChange: (m) => {
|
|
18
|
+
const s = m.target.value, d = h.trimEnd(s, ",").split(",").filter((t) => t).map((t) => t.trimStart());
|
|
19
|
+
o(s), l({ listOfPossibleValues: d });
|
|
22
20
|
},
|
|
23
21
|
inputProps: {
|
|
24
22
|
placeholder: "Add list values with the comma (,) separated string"
|
|
@@ -26,7 +24,7 @@ function C({ value: i, onChange: l, variant: a = "outlined" }) {
|
|
|
26
24
|
title: "Add list values with the comma (,) separated string"
|
|
27
25
|
}
|
|
28
26
|
);
|
|
29
|
-
}
|
|
27
|
+
};
|
|
30
28
|
export {
|
|
31
|
-
|
|
29
|
+
L as StringRange
|
|
32
30
|
};
|
|
@@ -1,59 +1,65 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import f from "./components/composite-list-range/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import s from "lodash";
|
|
3
|
+
import { CompositeListRange as f } from "./components/composite-list-range/index.js";
|
|
4
|
+
import { DateRange as u } from "./components/date-range/index.js";
|
|
5
|
+
import { GeometryRange as c } from "./components/geometry-range/index.js";
|
|
6
|
+
import { NumberRange as R } from "./components/number-range/index.js";
|
|
7
|
+
import { StringRange as D } from "./components/string-range/index.js";
|
|
8
|
+
import { useRangeSelectorLogic as x } from "./logic.js";
|
|
9
|
+
import { RangeSelectorRoot as y } from "./styled.js";
|
|
10
|
+
const C = (t) => {
|
|
11
|
+
const { state: r } = x(t), { ownerState: l } = r, { type: e, value: o, mapboxAccessToken: m, onChange: i, sx: g } = t;
|
|
12
|
+
let a = null;
|
|
13
|
+
return e === "byte" || e === "double" || e === "integer" || e === "long" ? a = /* @__PURE__ */ n(
|
|
14
|
+
R,
|
|
15
|
+
{
|
|
16
|
+
value: o || {
|
|
17
|
+
minValue: "",
|
|
18
|
+
maxValue: ""
|
|
19
|
+
},
|
|
20
|
+
onChange: i
|
|
21
|
+
}
|
|
22
|
+
) : e === "string" || e === "text" ? a = /* @__PURE__ */ n(
|
|
23
|
+
D,
|
|
24
|
+
{
|
|
25
|
+
value: o || {
|
|
26
|
+
listOfPossibleValues: []
|
|
27
|
+
},
|
|
28
|
+
onChange: i
|
|
29
|
+
}
|
|
30
|
+
) : e === "geometry" ? a = /* @__PURE__ */ n(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
value: o || { geometryArea: "" },
|
|
34
|
+
mapboxAccessToken: m,
|
|
35
|
+
onChange: i
|
|
36
|
+
}
|
|
37
|
+
) : e === "date" ? a = /* @__PURE__ */ n(
|
|
38
|
+
u,
|
|
39
|
+
{
|
|
40
|
+
value: o || {
|
|
41
|
+
startDate: s.get(t, "minDate", ""),
|
|
42
|
+
timeUnit: "MINUTE",
|
|
43
|
+
endRange: 0,
|
|
44
|
+
startRange: 0,
|
|
45
|
+
limitForScenarioTimeRange: !1
|
|
46
|
+
},
|
|
47
|
+
onChange: i,
|
|
48
|
+
minDate: t.minDate || "",
|
|
49
|
+
maxDate: t.maxDate || ""
|
|
50
|
+
}
|
|
51
|
+
) : e === "composite-list" && (a = /* @__PURE__ */ n(
|
|
52
|
+
f,
|
|
53
|
+
{
|
|
54
|
+
value: o || { count: "" },
|
|
55
|
+
mapboxAccessToken: m,
|
|
56
|
+
onChange: i,
|
|
57
|
+
innerType: t.innerType,
|
|
58
|
+
minDate: t.minDate,
|
|
59
|
+
maxDate: t.maxDate
|
|
60
|
+
}
|
|
61
|
+
)), /* @__PURE__ */ n(y, { ownerState: l, sx: g, children: a });
|
|
62
|
+
};
|
|
57
63
|
export {
|
|
58
|
-
|
|
64
|
+
C as RangeSelector
|
|
59
65
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useThemeProps as t } from "@mui/material";
|
|
2
|
+
const p = (e) => {
|
|
3
|
+
const o = { type: t({ props: e, name: "HCRangeSelector" }).type };
|
|
4
|
+
return {
|
|
5
|
+
refs: {},
|
|
6
|
+
state: { ownerState: o },
|
|
7
|
+
actions: {}
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
p as useRangeSelectorLogic
|
|
12
|
+
};
|