@hybridcore/ui 1.6.13 → 1.6.16
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/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/_common/tooltip.js +44 -35
- package/dist/components/charts/chart-wrapper/index.js +44 -43
- package/dist/components/charts/donut-chart/logic.js +53 -40
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/charts/xy-chart/logic.js +135 -134
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- 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 +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- 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 +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- 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 +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/main.d.ts +9 -1
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { useThemeProps as gt, useTheme as xt } from "@mui/material";
|
|
2
2
|
import { uniqueId as ht } from "lodash";
|
|
3
3
|
import { Feature as yt } from "ol";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import Lt from "ol/source/Vector";
|
|
9
|
-
import { Style as V, Text as vt, Fill as F, Icon as Ct, Stroke as Mt } from "ol/style";
|
|
10
|
-
import bt from "ol/style/Circle";
|
|
4
|
+
import { b as wt, P as St, f as k, g as Tt } from "../../Source-BSZST_GH.js";
|
|
5
|
+
import { V as Ct } from "../../Vector-BmuhQO4p.js";
|
|
6
|
+
import { V as Lt } from "../../Vector-DfTqQEln.js";
|
|
7
|
+
import { S as A, T as vt, F, I as Mt, a as bt, C as Xt } from "../../Text-ChJRuaD8.js";
|
|
11
8
|
import { useRef as m, useState as q, useEffect as O } from "react";
|
|
12
|
-
import { DEFAULT_VIRIDIS_COOL as
|
|
13
|
-
import { createMapboxLayer as
|
|
14
|
-
import { createHeatMapScale as
|
|
15
|
-
const
|
|
16
|
-
const u = r.getGeometry(),
|
|
17
|
-
return u && u.getType() === "Point" &&
|
|
9
|
+
import { DEFAULT_VIRIDIS_COOL as Yt } from "../charts/_common/utils.js";
|
|
10
|
+
import { createMapboxLayer as Gt } from "../map/helpers/mapbox.js";
|
|
11
|
+
import { createHeatMapScale as Rt } from "./helpers.js";
|
|
12
|
+
const Et = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='93'%20height='93'%20viewBox='0%200%2093%2093'%3e%3ccircle%20id='Ellipse_748'%20data-name='Ellipse%20748'%20cx='46.5'%20cy='46.5'%20r='46.5'%20fill='%23fff'%20opacity='0.925'/%3e%3c/svg%3e", Ft = 0.25, It = (r) => {
|
|
13
|
+
const u = r.getGeometry(), a = r.get("icon"), p = r.get("iconColor"), h = r.get("iconTextColor"), y = r.get("showText"), w = r.get("title"), S = r.get("scale");
|
|
14
|
+
return u && u.getType() === "Point" && a ? new A({
|
|
18
15
|
...y && {
|
|
19
16
|
text: new vt({
|
|
20
17
|
text: w,
|
|
@@ -22,77 +19,77 @@ const Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
22
19
|
fill: new F({ color: h ?? "#ddd" })
|
|
23
20
|
})
|
|
24
21
|
},
|
|
25
|
-
image: new
|
|
22
|
+
image: new Mt({
|
|
26
23
|
anchor: [0.5, 0.5],
|
|
27
|
-
src:
|
|
28
|
-
scale: S ??
|
|
24
|
+
src: a,
|
|
25
|
+
scale: S ?? Ft,
|
|
29
26
|
color: p ?? "#b32f5b"
|
|
30
27
|
}),
|
|
31
28
|
zIndex: 2
|
|
32
|
-
}) : new
|
|
29
|
+
}) : new A({
|
|
33
30
|
fill: new F({ color: "rgba(255, 255, 255, 0.25)" }),
|
|
34
|
-
stroke: new
|
|
35
|
-
image: new
|
|
31
|
+
stroke: new bt({ color: "#3069AA", width: 2 }),
|
|
32
|
+
image: new Xt({
|
|
36
33
|
radius: 5,
|
|
37
34
|
fill: new F({ color: "#444" })
|
|
38
35
|
})
|
|
39
36
|
});
|
|
40
37
|
}, Ut = (r) => {
|
|
41
38
|
const u = gt({ props: r, name: "HCRasterGridMap" }), {
|
|
42
|
-
data:
|
|
39
|
+
data: a,
|
|
43
40
|
payload: p,
|
|
44
41
|
onPayloadUpdate: h,
|
|
45
42
|
accessToken: y,
|
|
46
|
-
palette: w =
|
|
43
|
+
palette: w = Yt,
|
|
47
44
|
sx: S,
|
|
48
45
|
...U
|
|
49
|
-
} = u, T = xt(), I = m(ht("map-")), o = m(null),
|
|
46
|
+
} = u, T = xt(), I = m(ht("map-")), o = m(null), l = m(null), C = m(null), s = m(null), L = m(), [B, W] = q(!1), [Z, N] = q(null), z = () => {
|
|
50
47
|
let t = 3;
|
|
51
48
|
if (o.current) {
|
|
52
49
|
const e = o.current.getZoomLevel() || 3;
|
|
53
50
|
e > 11 ? t = 6 : e > 9 ? t = 5 : e > 5 && (t = 4);
|
|
54
51
|
}
|
|
55
52
|
return t;
|
|
56
|
-
},
|
|
57
|
-
var D, H
|
|
58
|
-
if (!
|
|
59
|
-
const { result: t, rowCount: e, columnCount: n, minX: c, minY:
|
|
60
|
-
(
|
|
61
|
-
const X =
|
|
53
|
+
}, j = () => {
|
|
54
|
+
var P, D, H;
|
|
55
|
+
if (!B || !o.current || !a) return;
|
|
56
|
+
const { result: t, rowCount: e, columnCount: n, minX: c, minY: i, maxX: d, maxY: f } = a, v = [c, i, d, f], [nt, rt] = Tt(v), M = nt / n, b = rt / e, ct = ((P = o.current) == null ? void 0 : P.getZoomLevel()) || 3;
|
|
57
|
+
(D = C.current) == null || D.clear();
|
|
58
|
+
const X = Rt(a, {
|
|
62
59
|
palette: [...w].reverse(),
|
|
63
60
|
mode: "log",
|
|
64
61
|
nullColor: "transparent",
|
|
65
62
|
zeroColor: "transparent"
|
|
66
63
|
});
|
|
67
|
-
if (
|
|
64
|
+
if (N(X), t !== null)
|
|
68
65
|
for (let g = 0; g < e; g++) {
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
66
|
+
const V = t[g];
|
|
67
|
+
if (V !== null)
|
|
71
68
|
for (let x = 0; x < n; x++) {
|
|
72
|
-
const Y =
|
|
69
|
+
const Y = V[x];
|
|
73
70
|
if (Y < 2) continue;
|
|
74
|
-
const
|
|
75
|
-
[
|
|
71
|
+
const G = c + x * M, R = i + (e - g - 1) * b, at = G + M, st = R + b, it = G + M / 2, lt = R + b / 2, mt = wt(
|
|
72
|
+
[it, lt],
|
|
76
73
|
"EPSG:4326",
|
|
77
74
|
"EPSG:3857"
|
|
78
75
|
), ut = {
|
|
79
|
-
bottomLeft: { latitude:
|
|
80
|
-
topRight: { latitude:
|
|
81
|
-
}, pt = ct /
|
|
76
|
+
bottomLeft: { latitude: R, longitude: G },
|
|
77
|
+
topRight: { latitude: st, longitude: at }
|
|
78
|
+
}, pt = ct / z(), E = X.getBin(Y), dt = (((E == null ? void 0 : E.index) || 0) + 1) * 0.1, ft = new yt({
|
|
82
79
|
geometry: new St(mt),
|
|
83
|
-
icon:
|
|
80
|
+
icon: Et,
|
|
84
81
|
iconColor: X.getColor(Y),
|
|
85
82
|
iconTextColor: "#fff",
|
|
86
83
|
showText: pt > 1.5,
|
|
87
84
|
boundingBox: ut,
|
|
88
85
|
scale: dt
|
|
89
86
|
});
|
|
90
|
-
(
|
|
87
|
+
(H = C.current) == null || H.addFeature(ft);
|
|
91
88
|
}
|
|
92
89
|
}
|
|
93
90
|
}, J = () => {
|
|
94
91
|
let t = {
|
|
95
|
-
gridLevel:
|
|
92
|
+
gridLevel: z(),
|
|
96
93
|
minX: -180,
|
|
97
94
|
minY: -180,
|
|
98
95
|
maxX: 180,
|
|
@@ -109,56 +106,56 @@ const Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
109
106
|
};
|
|
110
107
|
}
|
|
111
108
|
return t;
|
|
112
|
-
},
|
|
109
|
+
}, _ = () => {
|
|
113
110
|
const t = {
|
|
114
111
|
...p,
|
|
115
112
|
heatGridMapFilter: J()
|
|
116
113
|
};
|
|
117
114
|
h(t);
|
|
118
115
|
}, K = () => {
|
|
119
|
-
|
|
116
|
+
L.current && clearTimeout(L.current), L.current = setTimeout(() => {
|
|
120
117
|
var t;
|
|
121
|
-
(t = o.current) == null || t.updateSize(),
|
|
118
|
+
(t = o.current) == null || t.updateSize(), l.current && l.current.map.resize();
|
|
122
119
|
}, 100);
|
|
123
120
|
}, Q = () => {
|
|
124
121
|
var t, e;
|
|
125
122
|
(t = o.current) == null || t.on("movestart", () => {
|
|
126
|
-
|
|
123
|
+
s.current && (clearTimeout(s.current), s.current = null);
|
|
127
124
|
}), (e = o.current) == null || e.on("moveend", () => {
|
|
128
|
-
|
|
125
|
+
s.current && (clearTimeout(s.current), s.current = null), s.current = setTimeout(_, 500);
|
|
129
126
|
});
|
|
130
127
|
};
|
|
131
128
|
function $(t) {
|
|
132
|
-
const [e, n] =
|
|
133
|
-
return [e, n, c,
|
|
129
|
+
const [e, n] = k([t.minX, t.minY]), [c, i] = k([t.maxX, t.maxY]);
|
|
130
|
+
return [e, n, c, i];
|
|
134
131
|
}
|
|
135
132
|
const tt = () => {
|
|
136
133
|
var d, f;
|
|
137
|
-
const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e =
|
|
134
|
+
const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = Gt({
|
|
138
135
|
id: I.current,
|
|
139
136
|
center: [0, 0],
|
|
140
137
|
style: t,
|
|
141
138
|
accessToken: y
|
|
142
139
|
});
|
|
143
|
-
(d = o.current) == null || d.addLayer(e.layer),
|
|
144
|
-
const n = new Lt(), c = new
|
|
140
|
+
(d = o.current) == null || d.addLayer(e.layer), l.current = e;
|
|
141
|
+
const n = new Lt(), c = new Ct({
|
|
145
142
|
source: n,
|
|
146
|
-
style:
|
|
143
|
+
style: It
|
|
147
144
|
});
|
|
148
|
-
(f = o.current) == null || f.addLayer(c),
|
|
149
|
-
const { heatGridMapFilter:
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
o.current.centerToExtent(
|
|
145
|
+
(f = o.current) == null || f.addLayer(c), C.current = n, W(!0), Q(), _();
|
|
146
|
+
const { heatGridMapFilter: i } = p;
|
|
147
|
+
if (i && o.current) {
|
|
148
|
+
const v = $(i);
|
|
149
|
+
o.current.centerToExtent(v);
|
|
153
150
|
}
|
|
154
151
|
}, et = () => {
|
|
155
152
|
var n, c;
|
|
156
|
-
if (!
|
|
157
|
-
const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = ((c = (n =
|
|
153
|
+
if (!l.current) return;
|
|
154
|
+
const t = T.palette.mode === "light" ? "mapbox://styles/mapbox/light-v11" : "mapbox://styles/mapbox/dark-v11", e = ((c = (n = l.current.layer.getSource()) == null ? void 0 : n.getMapboxMap) == null ? void 0 : c.call(n)) || l.current.map;
|
|
158
155
|
e && e.setStyle(t);
|
|
159
156
|
};
|
|
160
|
-
O(() => (
|
|
161
|
-
}), [
|
|
157
|
+
O(() => (j(), () => {
|
|
158
|
+
}), [a, B]), O(() => (et(), () => {
|
|
162
159
|
}), [T.palette.mode]);
|
|
163
160
|
const ot = { ...u };
|
|
164
161
|
return {
|