@hybridcore/ui 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -1,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
|
+
};
|