@hybridcore/ui 1.6.12 → 1.6.13
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/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +149 -41
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/collapsible-card/index.js +21 -30
- package/dist/components/collapsible-card/styled.js +16 -14
- package/dist/components/color-picker/index.js +2227 -3357
- package/dist/components/color-picker/styled.js +87 -7
- package/dist/components/confirm/dialog.js +89 -8
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +464 -452
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- 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/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +145 -3656
- package/dist/components/geometry-picker/map/style.js +18 -17
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +77 -1924
- package/dist/components/instance-hierarchy-table/styled.js +18 -16
- package/dist/components/map/helpers/mapbox.js +17 -15
- package/dist/components/map/helpers/ol.js +386 -27
- package/dist/components/map/index.js +11 -10
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +31 -27
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/phone-input/index.js +10 -9
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +27 -26
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +60 -57
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +1091 -1264
- package/dist/components/template-form/components/property-list/index.js +36 -33
- package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
- package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
- package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
- package/dist/components/tree-select/index.js +16 -16
- package/dist/index.esm-UfGMjYOL.js +197 -0
- package/dist/main.d.ts +54 -8
- package/dist/main.js +176 -175
- package/package.json +1 -1
- package/dist/AccordionSummary-CJppWeqF.js +0 -781
- package/dist/Add-CqcD1PWb.js +0 -403
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Button-C5yquWAB.js +0 -357
- package/dist/ButtonBase-BEF7oTOe.js +0 -887
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/DialogContent-BvVjD9z3.js +0 -523
- package/dist/FormGroup-CpBsIyYR.js +0 -89
- package/dist/IconButton-BoGwbvrP.js +0 -184
- package/dist/InputLabel-Dd8RrneV.js +0 -341
- package/dist/MenuItem-DwqJqzuM.js +0 -233
- package/dist/Modal-MUZygjmQ.js +0 -1158
- package/dist/Paper-BkQLdsCI.js +0 -582
- package/dist/Select-DHUl_uG3.js +0 -3916
- package/dist/Source-BSZST_GH.js +0 -4410
- package/dist/SwitchBase-DTndTqI8.js +0 -235
- package/dist/Text-ChJRuaD8.js +0 -2197
- package/dist/TextField-e2oKaUN1.js +0 -669
- package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
- package/dist/Typography-DgsSLCFC.js +0 -178
- package/dist/Vector-BmuhQO4p.js +0 -3606
- package/dist/Vector-DfTqQEln.js +0 -1735
- package/dist/WKT-2wsDT-nq.js +0 -2310
- package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSvgIcon-Ch_cT8az.js +0 -185
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
- package/dist/index-DH6qsPBn.js +0 -153
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/index.esm-BLLrbTzY.js +0 -318
- package/dist/math-Bvt2Ubuz.js +0 -704
- package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
- package/dist/ol-yOE-NV0X.js +0 -7465
- package/dist/ownerWindow-wg6foiOE.js +0 -10
- package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
- package/dist/styled-SoqbyrkW.js +0 -350
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/useSlot-B_Q4vnX5.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
function
|
|
1
|
+
import i from "react";
|
|
2
|
+
import { createMap as Q } from "./helpers/ol.js";
|
|
3
|
+
import * as U from "ol/proj";
|
|
4
|
+
function Y({
|
|
5
5
|
id: g = "map",
|
|
6
6
|
layers: u = [],
|
|
7
7
|
center: { latitude: m = 0, longitude: d = 0 } = { latitude: 0, longitude: 0 },
|
|
@@ -9,7 +9,7 @@ function $({
|
|
|
9
9
|
options: o,
|
|
10
10
|
onInit: s
|
|
11
11
|
}) {
|
|
12
|
-
const t =
|
|
12
|
+
const t = i.useRef(null), f = i.useRef(null), y = () => {
|
|
13
13
|
t.current === null && (t.current = Q(
|
|
14
14
|
u,
|
|
15
15
|
{
|
|
@@ -29,12 +29,12 @@ function $({
|
|
|
29
29
|
t.current.addOverlay(e);
|
|
30
30
|
}, E = (e) => {
|
|
31
31
|
t.current.removeOverlay(e);
|
|
32
|
-
},
|
|
32
|
+
}, P = (e) => {
|
|
33
33
|
const r = t.current.getOverlayById(e);
|
|
34
34
|
t.current.removeOverlay(r);
|
|
35
|
-
},
|
|
35
|
+
}, V = (e, r) => {
|
|
36
36
|
t.current.getLayers().insertAt(e, r);
|
|
37
|
-
},
|
|
37
|
+
}, z = () => t.current.getAllLayers(), p = () => t.current.getLayerGroup(), C = () => t.current.getLayers(), F = () => t.current.getView().getZoom(), R = (e) => t.current.getView().setZoom(e), O = (e) => {
|
|
38
38
|
t.current.removeLayer(e);
|
|
39
39
|
}, Z = (e) => {
|
|
40
40
|
t.current.setLayerGroup(e);
|
|
@@ -46,9 +46,9 @@ function $({
|
|
|
46
46
|
t.current.removeInteraction(e);
|
|
47
47
|
}, A = (e, r) => {
|
|
48
48
|
t.current.on(e, r);
|
|
49
|
-
},
|
|
49
|
+
}, a = () => t.current.getView(), I = (e) => t.current.getEventPixel(e), T = (e) => t.current.getEventCoordinate(e), B = () => {
|
|
50
50
|
let e = t.current.getView().calculateExtent();
|
|
51
|
-
return e = U(e, "EPSG:3857", "EPSG:4326"), {
|
|
51
|
+
return e = U.transformExtent(e, "EPSG:3857", "EPSG:4326"), {
|
|
52
52
|
bottomLeft: {
|
|
53
53
|
latitude: e[1],
|
|
54
54
|
longitude: e[0]
|
|
@@ -79,13 +79,13 @@ function $({
|
|
|
79
79
|
minResolution: r,
|
|
80
80
|
padding: n
|
|
81
81
|
});
|
|
82
|
-
},
|
|
82
|
+
}, _ = (e, r = [0, 0, 0, 0]) => {
|
|
83
83
|
const n = e.getGeometry();
|
|
84
84
|
if (n) {
|
|
85
85
|
const c = n.getExtent();
|
|
86
86
|
l(c, 12, r);
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, b = (e) => {
|
|
89
89
|
t.current.getView().setCenter(e);
|
|
90
90
|
}, j = () => {
|
|
91
91
|
t.current.updateSize();
|
|
@@ -99,13 +99,13 @@ function $({
|
|
|
99
99
|
zoom: t.current.getView().getZoom() - 1,
|
|
100
100
|
duration: 250
|
|
101
101
|
});
|
|
102
|
-
}, D = (e) => t.current.getCoordinateFromPixel(e), H = (e) => t.current.getPixelFromCoordinate(e), J = () => t.current.getSize(), K = () =>
|
|
103
|
-
return
|
|
102
|
+
}, D = (e) => t.current.getCoordinateFromPixel(e), H = (e) => t.current.getPixelFromCoordinate(e), J = () => t.current.getSize(), K = () => a().getResolution(), N = (e) => a().getResolutionForZoom(e);
|
|
103
|
+
return i.useEffect(() => {
|
|
104
104
|
const e = setTimeout(y, 50);
|
|
105
105
|
return () => {
|
|
106
106
|
e ? clearTimeout(e) : L();
|
|
107
107
|
};
|
|
108
|
-
}, []),
|
|
108
|
+
}, []), i.useEffect(() => (u.length > 0 && t.current && t.current.setLayers(u), () => {
|
|
109
109
|
}), [u]), {
|
|
110
110
|
refs: {
|
|
111
111
|
map: t,
|
|
@@ -115,9 +115,9 @@ function $({
|
|
|
115
115
|
addInteraction: S,
|
|
116
116
|
addLayer: w,
|
|
117
117
|
centerToExtent: l,
|
|
118
|
-
centerToFeature:
|
|
118
|
+
centerToFeature: _,
|
|
119
119
|
forEachFeatureAtPixel: M,
|
|
120
|
-
getAllLayers:
|
|
120
|
+
getAllLayers: z,
|
|
121
121
|
getBoundingBox: B,
|
|
122
122
|
getCoordinateFromPixel: D,
|
|
123
123
|
getEventCoordinate: T,
|
|
@@ -128,25 +128,25 @@ function $({
|
|
|
128
128
|
getResolution: K,
|
|
129
129
|
getResolutionForZoom: N,
|
|
130
130
|
getSize: J,
|
|
131
|
-
getView:
|
|
131
|
+
getView: a,
|
|
132
132
|
getZoomLevel: F,
|
|
133
|
-
insertLayerAt:
|
|
133
|
+
insertLayerAt: V,
|
|
134
134
|
on: A,
|
|
135
135
|
removeInteraction: h,
|
|
136
136
|
removeLayer: O,
|
|
137
137
|
setLayerGroup: Z,
|
|
138
138
|
setLayers: G,
|
|
139
|
-
setCenter:
|
|
139
|
+
setCenter: b,
|
|
140
140
|
setZoomLevel: R,
|
|
141
141
|
addOverlay: x,
|
|
142
142
|
updateSize: j,
|
|
143
143
|
zoomIn: k,
|
|
144
144
|
zoomOut: q,
|
|
145
145
|
removeOverlay: E,
|
|
146
|
-
removeOverlayById:
|
|
146
|
+
removeOverlayById: P
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
export {
|
|
151
|
-
|
|
151
|
+
Y as default
|
|
152
152
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { styled as f } from "@mui/material";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Icon as l, Text as d } from "ol/style";
|
|
3
|
+
import a from "ol/style/Circle";
|
|
4
|
+
import o from "ol/style/Fill";
|
|
5
|
+
import s from "ol/style/Stroke";
|
|
6
|
+
import r from "ol/style/Style";
|
|
7
|
+
const c = 0.4, g = f("div")(({ theme: t, cssPosition: n = "absolute" }) => ({
|
|
4
8
|
position: n,
|
|
5
9
|
width: "100%",
|
|
6
10
|
height: "100%",
|
|
7
11
|
// minHeight: 500,
|
|
8
|
-
backgroundColor:
|
|
12
|
+
backgroundColor: t.palette.background.paper,
|
|
9
13
|
"& .ol-zoom": {
|
|
10
14
|
backgroundColor: "transparent",
|
|
11
15
|
"& button": {
|
|
@@ -16,60 +20,60 @@ const i = 0.4, g = f("div")(({ theme: o, cssPosition: n = "absolute" }) => ({
|
|
|
16
20
|
marginTop: 3
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
|
-
})),
|
|
20
|
-
fill: new
|
|
23
|
+
})), x = new r({
|
|
24
|
+
fill: new o({
|
|
21
25
|
color: "rgba(255, 255, 255, 0.2)"
|
|
22
26
|
}),
|
|
23
|
-
stroke: new
|
|
27
|
+
stroke: new s({
|
|
24
28
|
color: "#2daae1",
|
|
25
29
|
width: 2
|
|
26
30
|
}),
|
|
27
|
-
image: new
|
|
31
|
+
image: new a({
|
|
28
32
|
radius: 7,
|
|
29
|
-
fill: new
|
|
33
|
+
fill: new o({
|
|
30
34
|
color: "#2daae1"
|
|
31
35
|
})
|
|
32
36
|
})
|
|
33
37
|
}), w = new r({
|
|
34
|
-
fill: new
|
|
38
|
+
fill: new o({
|
|
35
39
|
color: "rgba(255, 255, 255, 0.4)"
|
|
36
40
|
}),
|
|
37
|
-
stroke: new
|
|
41
|
+
stroke: new s({
|
|
38
42
|
color: "#0f70b7",
|
|
39
43
|
width: 2
|
|
40
44
|
}),
|
|
41
|
-
image: new
|
|
45
|
+
image: new a({
|
|
42
46
|
radius: 7,
|
|
43
|
-
fill: new
|
|
47
|
+
fill: new o({
|
|
44
48
|
color: "#0f70b7"
|
|
45
49
|
})
|
|
46
50
|
})
|
|
47
|
-
}),
|
|
48
|
-
const n =
|
|
51
|
+
}), C = (t) => {
|
|
52
|
+
const n = t.get("icon");
|
|
49
53
|
if (n)
|
|
50
54
|
return new r({
|
|
51
|
-
image: new
|
|
55
|
+
image: new l({
|
|
52
56
|
anchor: [0.5, 0.5],
|
|
53
57
|
src: n,
|
|
54
|
-
scale:
|
|
58
|
+
scale: c
|
|
55
59
|
}),
|
|
56
60
|
zIndex: 2
|
|
57
61
|
});
|
|
58
|
-
const e =
|
|
62
|
+
const e = t.get("features");
|
|
59
63
|
if (e) {
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
64
|
+
const i = e.length > 1 ? e[0].get("clusterIcon") : e[0].get("icon");
|
|
65
|
+
if (i)
|
|
62
66
|
return new r({
|
|
63
|
-
image: new
|
|
67
|
+
image: new l({
|
|
64
68
|
anchor: [0.5, 0.5],
|
|
65
|
-
src:
|
|
66
|
-
scale:
|
|
69
|
+
src: i,
|
|
70
|
+
scale: c
|
|
67
71
|
}),
|
|
68
72
|
...e.length > 1 && {
|
|
69
73
|
text: new d({
|
|
70
74
|
text: e.length.toString(),
|
|
71
75
|
font: "14px sans-serif",
|
|
72
|
-
fill: new
|
|
76
|
+
fill: new o({
|
|
73
77
|
color: "#fff"
|
|
74
78
|
})
|
|
75
79
|
})
|
|
@@ -78,12 +82,12 @@ const i = 0.4, g = f("div")(({ theme: o, cssPosition: n = "absolute" }) => ({
|
|
|
78
82
|
});
|
|
79
83
|
}
|
|
80
84
|
return w;
|
|
81
|
-
},
|
|
85
|
+
}, k = {
|
|
82
86
|
Container: g
|
|
83
87
|
};
|
|
84
88
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
k as default,
|
|
90
|
+
x as defaultStyle,
|
|
91
|
+
C as selectStyleFunction,
|
|
88
92
|
w as selectedStyle
|
|
89
93
|
};
|
|
@@ -1,99 +1,96 @@
|
|
|
1
1
|
import { useThemeProps as K } from "@mui/material";
|
|
2
|
-
import { formatValue as
|
|
3
|
-
import { c as
|
|
2
|
+
import { formatValue as B, resolveConditionalStyle as D } from "../charts/_common/format.js";
|
|
3
|
+
import { c as m } from "../../createReactComponent-C7L-DMHj.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W =
|
|
10
|
+
const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = m("outline", "arrow-right", "ArrowRight", Q);
|
|
11
11
|
/**
|
|
12
12
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y =
|
|
17
|
+
const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = m("outline", "trending-down", "TrendingDown", X);
|
|
18
18
|
/**
|
|
19
19
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license.
|
|
22
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
-
const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe =
|
|
25
|
-
const
|
|
24
|
+
const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = m("outline", "trending-up", "TrendingUp", ee), ce = (F) => {
|
|
25
|
+
const i = K({ props: F, name: "HCMetricCard" }), {
|
|
26
26
|
value: c = [],
|
|
27
|
-
secondValue:
|
|
28
|
-
secondValueFormat:
|
|
29
|
-
variant:
|
|
27
|
+
secondValue: y = [],
|
|
28
|
+
secondValueFormat: P,
|
|
29
|
+
variant: R = "default",
|
|
30
30
|
layout: w = "overlay",
|
|
31
31
|
valuePrefix: A,
|
|
32
32
|
valueSuffix: O,
|
|
33
|
-
format:
|
|
33
|
+
format: o,
|
|
34
34
|
showChange: U = !1,
|
|
35
|
-
changeType:
|
|
35
|
+
changeType: a = "percentage",
|
|
36
36
|
showTrend: Z = !1,
|
|
37
|
-
showIcon:
|
|
37
|
+
showIcon: C = !1,
|
|
38
38
|
icon: d,
|
|
39
39
|
iconPosition: u = "right"
|
|
40
|
-
} =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
color: e == null ? void 0 : e.color,
|
|
45
|
-
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
46
|
-
conditionalRules: e == null ? void 0 : e.conditionalRules
|
|
40
|
+
} = i, H = c.length > 0, g = c[c.length - 1], S = c[c.length - 2], e = g ? Number(g.v) : NaN, t = S ? Number(S.v) : NaN, b = !isNaN(e) && !isNaN(t), p = {
|
|
41
|
+
...o,
|
|
42
|
+
prefix: (o == null ? void 0 : o.prefix) ?? A,
|
|
43
|
+
suffix: (o == null ? void 0 : o.suffix) ?? O
|
|
47
44
|
};
|
|
48
|
-
let
|
|
49
|
-
if (!isNaN(
|
|
50
|
-
|
|
51
|
-
const l =
|
|
52
|
-
|
|
45
|
+
let r = "—", M = "", V, k;
|
|
46
|
+
if (!isNaN(e)) {
|
|
47
|
+
r = B(e, p), M = g.t;
|
|
48
|
+
const l = D(e, p);
|
|
49
|
+
V = l.color, k = l.backgroundColor;
|
|
53
50
|
}
|
|
54
|
-
const I =
|
|
51
|
+
const I = P ?? p;
|
|
55
52
|
let h, T, x;
|
|
56
|
-
const _ =
|
|
53
|
+
const _ = y[y.length - 1], f = _ ? Number(_.v) : NaN;
|
|
57
54
|
if (!isNaN(f)) {
|
|
58
|
-
h =
|
|
59
|
-
const l =
|
|
55
|
+
h = B(f, I);
|
|
56
|
+
const l = D(f, I);
|
|
60
57
|
T = l.color, x = l.backgroundColor;
|
|
61
58
|
}
|
|
62
|
-
let
|
|
59
|
+
let s;
|
|
63
60
|
if (U)
|
|
64
|
-
if (
|
|
65
|
-
const N =
|
|
66
|
-
|
|
61
|
+
if (b && !(t === 0 && a === "percentage")) {
|
|
62
|
+
const N = a === "absolute" ? e - t : (e - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = a === "percentage" ? 1 : 2, G = a === "percentage" ? "%" : "";
|
|
63
|
+
s = `${z}${Math.abs(N).toFixed(E)}${G}`;
|
|
67
64
|
} else
|
|
68
|
-
|
|
65
|
+
s = "—";
|
|
69
66
|
let n;
|
|
70
|
-
Z &&
|
|
67
|
+
Z && b && (e > t ? n = "up" : e < t ? n = "down" : n = "neutral");
|
|
71
68
|
let v = W;
|
|
72
69
|
n === "up" ? v = oe : n === "down" && (v = Y);
|
|
73
|
-
const
|
|
70
|
+
const $ = [
|
|
74
71
|
"top-left",
|
|
75
72
|
"top-right",
|
|
76
73
|
"bottom-left",
|
|
77
74
|
"bottom-right"
|
|
78
|
-
].includes(u), J =
|
|
79
|
-
metric:
|
|
80
|
-
value:
|
|
81
|
-
change:
|
|
82
|
-
asOf:
|
|
75
|
+
].includes(u), J = C && !!d && $, L = C && !!d && !$, j = JSON.stringify({
|
|
76
|
+
metric: i.label,
|
|
77
|
+
value: r,
|
|
78
|
+
change: s,
|
|
79
|
+
asOf: M
|
|
83
80
|
}), q = {
|
|
84
|
-
...
|
|
85
|
-
variant:
|
|
81
|
+
...i,
|
|
82
|
+
variant: R,
|
|
86
83
|
layout: w,
|
|
87
|
-
changeType:
|
|
84
|
+
changeType: a,
|
|
88
85
|
iconPosition: u,
|
|
89
|
-
calculatedValue:
|
|
86
|
+
calculatedValue: r,
|
|
90
87
|
calculatedSecondValue: h,
|
|
91
88
|
calculatedSecondValueColor: T,
|
|
92
89
|
calculatedSecondValueBg: x,
|
|
93
|
-
calculatedChange:
|
|
90
|
+
calculatedChange: s,
|
|
94
91
|
calculatedTrend: n,
|
|
95
|
-
calculatedValueColor:
|
|
96
|
-
calculatedValueBg:
|
|
92
|
+
calculatedValueColor: V,
|
|
93
|
+
calculatedValueBg: k,
|
|
97
94
|
hasData: H
|
|
98
95
|
};
|
|
99
96
|
return {
|
|
@@ -101,9 +98,9 @@ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d:
|
|
|
101
98
|
state: {
|
|
102
99
|
ownerState: q,
|
|
103
100
|
layout: w,
|
|
104
|
-
calculatedValue:
|
|
101
|
+
calculatedValue: r,
|
|
105
102
|
calculatedSecondValue: h,
|
|
106
|
-
calculatedChange:
|
|
103
|
+
calculatedChange: s,
|
|
107
104
|
TrendIcon: v,
|
|
108
105
|
Icon: d,
|
|
109
106
|
showCornerIcon: J,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import r from "react-phone-number-input";
|
|
3
|
+
import "react-phone-number-input/style.css";
|
|
4
|
+
import { usePhoneInputLogic as h } from "./logic.js";
|
|
5
|
+
import { PhoneInputRoot as m, PhoneInputLabel as u } from "./styled.js";
|
|
6
|
+
const I = (e) => {
|
|
7
|
+
const { state: o, actions: t } = h(e), { ownerState: l } = o;
|
|
8
|
+
return /* @__PURE__ */ a(m, { ownerState: l, sx: e.sx, children: [
|
|
9
|
+
e.label && /* @__PURE__ */ n(u, { children: e.label }),
|
|
9
10
|
/* @__PURE__ */ n(
|
|
10
|
-
|
|
11
|
+
r,
|
|
11
12
|
{
|
|
12
13
|
value: e.value,
|
|
13
14
|
placeholder: e.placeholder,
|
|
@@ -17,5 +18,5 @@ import '../../assets/index2.css';const x = (e) => {
|
|
|
17
18
|
] });
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
I as PhoneInput
|
|
21
22
|
};
|
|
@@ -3,7 +3,7 @@ import { CloseOutlined as W, ChevronRight as $, ErrorOutline as q, Refresh as J,
|
|
|
3
3
|
import { Button as N, IconButton as _, FormControl as O, Select as D, MenuItem as C, Typography as H } from "@mui/material";
|
|
4
4
|
import F from "lodash";
|
|
5
5
|
import { V as G } from "../../index-BtlzPygz.js";
|
|
6
|
-
import {
|
|
6
|
+
import { getWKTExtent as L } from "../map/helpers/ol.js";
|
|
7
7
|
import { RangeSelector as Q } from "../range-selector/index.js";
|
|
8
8
|
import { usePropertyMappingLogic as X } from "./logic.js";
|
|
9
9
|
import { PropertyMappingRoot as Y, PropertyMappingTitle as Z, PropertyMappingTitleContent as ee, PropertyMappingTitleHeading as te, PropertyMappingTitleSubtitle as re, PropertyMappingTitleAgentForm as ne, PropertyMappingTitleAgentFields as le, PropertyMappingTitleAgentNameInput as ae, PropertyMappingTitleAgentDescriptionInput as ie, PropertyMappingTitleAgentMetaRow as oe, PropertyMappingTitleAgentCountInput as pe, PropertyMappingTitleAgentCriticalityInput as de, PropertyMappingTitleClose as ce, PropertyMappingTitleCloseButton as ue, PropertyMappingContent as se, PropertyMappingPolicyCard as ye, PropertyMappingPolicyCardHeader as he, PropertyMappingPolicyCardCatalogueNames as ge, PropertyMappingPolicyCardArrow as fe, PropertyMappingPolicyCardPolicyName as me, PropertyMappingDataGrid as Ce, PropertyMappingActions as Me, PropertyMappingValueErrorIcon as Te, PropertyMappingValueCell as be, PropertyMappingValueCellInner as ve, PropertyMappingNameCell as Pe, PropertyMappingRequiredAsterisk as Ie, PropertyMappingDataTypeCell as Ae, PropertyMappingValueUpdatedIcon as Se } from "./styled.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as c } from "@mui/material";
|
|
3
3
|
import { useEffect as l } from "react";
|
|
4
|
-
import { u } from "../../index.esm-
|
|
4
|
+
import { u } from "../../index.esm-UfGMjYOL.js";
|
|
5
5
|
import { Map as d } from "../map/index.js";
|
|
6
6
|
import { Controls as h } from "./components/controls/index.js";
|
|
7
7
|
import { Legend as M } from "./components/legend/index.js";
|