@rio-cloud/rio-uikit 2.3.0 → 2.4.0
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/MapPreviousViewportButton.d.ts +2 -0
- package/MapPreviousViewportButton.js +5 -0
- package/MapPreviousViewportButton.js.map +1 -0
- package/Table.js +15 -14
- package/TableNext.js +15 -14
- package/components/map/components/Map.js +175 -157
- package/components/map/components/Map.js.map +1 -1
- package/components/map/components/MapContext.d.ts +2 -0
- package/components/map/components/MapContext.js +8 -6
- package/components/map/components/MapContext.js.map +1 -1
- package/components/map/components/MapPosition.d.ts +1 -1
- package/components/map/components/MapPosition.js +20 -13
- package/components/map/components/MapPosition.js.map +1 -1
- package/components/map/components/features/MapZoom.d.ts +0 -1
- package/components/map/components/features/MapZoom.js +12 -20
- package/components/map/components/features/MapZoom.js.map +1 -1
- package/components/map/components/features/settings/MapSettingsTile.d.ts +27 -0
- package/components/map/components/features/settings/MapSettingsTile.js +17 -17
- package/components/map/components/features/settings/MapSettingsTile.js.map +1 -1
- package/components/map/components/features/settings/buttons/MapPreviousViewportButton.d.ts +10 -0
- package/components/map/components/features/settings/buttons/MapPreviousViewportButton.js +23 -0
- package/components/map/components/features/settings/buttons/MapPreviousViewportButton.js.map +1 -0
- package/components/map/hooks/useMapViewportHistory.d.ts +19 -0
- package/components/map/hooks/useMapViewportHistory.js +116 -0
- package/components/map/hooks/useMapViewportHistory.js.map +1 -0
- package/components/map/icons/MapIcon.d.ts +1 -0
- package/components/map/icons/MapIcon.js +46 -37
- package/components/map/icons/MapIcon.js.map +1 -1
- package/components/map/utils/mapTypes.d.ts +6 -0
- package/components/map/utils/mapTypes.js.map +1 -1
- package/components/selects/Multiselect.d.ts +6 -0
- package/components/selects/Multiselect.js +85 -83
- package/components/selects/Multiselect.js.map +1 -1
- package/components/selects/Select.d.ts +6 -0
- package/components/selects/Select.js +79 -71
- package/components/selects/Select.js.map +1 -1
- package/components/table/Table.d.ts +2 -0
- package/components/table/Table.js +162 -158
- package/components/table/Table.js.map +1 -1
- package/components/table/Table.types.d.ts +6 -0
- package/components/table/TableExpandAllGroupsButton.d.ts +25 -0
- package/components/table/TableExpandAllGroupsButton.js +27 -0
- package/components/table/TableExpandAllGroupsButton.js.map +1 -0
- package/components/table/TableExpandedRow.js +77 -63
- package/components/table/TableExpandedRow.js.map +1 -1
- package/components/table/TableExpanderButton.js +11 -11
- package/components/table/TableExpanderButton.js.map +1 -1
- package/components/table/TableGroupRow.d.ts +13 -1
- package/components/table/TableGroupRow.js +57 -23
- package/components/table/TableGroupRow.js.map +1 -1
- package/components/table/TableHeader.js +40 -39
- package/components/table/TableHeader.js.map +1 -1
- package/components/table/TableRow.js +66 -52
- package/components/table/TableRow.js.map +1 -1
- package/components/table/context/TableRenderConfigContext.d.ts +2 -1
- package/components/table/context/TableRenderConfigContext.js.map +1 -1
- package/components/table/render/header/TableHeaderCellContent.js +4 -4
- package/components/table/render/header/TableHeaderCellContent.js.map +1 -1
- package/components/table/render/header/TableHeaderSelectionCell.d.ts +2 -0
- package/components/table/render/header/TableHeaderSelectionCell.js +22 -12
- package/components/table/render/header/TableHeaderSelectionCell.js.map +1 -1
- package/components/table/runtime/useRenderDraftState.js +1 -0
- package/components/table/runtime/useRenderDraftState.js.map +1 -1
- package/components/table/selection/useInternalTableSelectionState.js +12 -10
- package/components/table/selection/useInternalTableSelectionState.js.map +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapPreviousViewportButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/Table.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { TableBatchDropdown as a, TableBody as l, TableColumn as b, TableColumnFilter as T, TableColumnsDropdown as r, TableExpandedContentRow as
|
|
2
|
-
import { default as
|
|
1
|
+
import { TableBatchDropdown as a, TableBody as l, TableColumn as b, TableColumnFilter as T, TableColumnsDropdown as t, TableExpandAllGroupsButton as r, TableExpandedContentRow as n, TableExpandedRow as d, TableExpanderButton as u, TableFooter as p, TableGroupFooterRow as w, TableGroupRow as R, TableHeader as m, TableHeaderColumn as x, TableHeaderRow as B, TableRow as C, TableSpacerRow as c, TableStickyRowButton as f, default as s } from "./components/table/Table.js";
|
|
2
|
+
import { default as i } from "./components/table/selection/useTableSelection.js";
|
|
3
3
|
export {
|
|
4
4
|
a as TableBatchDropdown,
|
|
5
5
|
l as TableBody,
|
|
6
6
|
b as TableColumn,
|
|
7
7
|
T as TableColumnFilter,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
n as
|
|
11
|
-
d as
|
|
12
|
-
u as
|
|
13
|
-
p as
|
|
14
|
-
w as
|
|
15
|
-
R as
|
|
16
|
-
m as
|
|
17
|
-
x as
|
|
8
|
+
t as TableColumnsDropdown,
|
|
9
|
+
r as TableExpandAllGroupsButton,
|
|
10
|
+
n as TableExpandedContentRow,
|
|
11
|
+
d as TableExpandedRow,
|
|
12
|
+
u as TableExpanderButton,
|
|
13
|
+
p as TableFooter,
|
|
14
|
+
w as TableGroupFooterRow,
|
|
15
|
+
R as TableGroupRow,
|
|
16
|
+
m as TableHeader,
|
|
17
|
+
x as TableHeaderColumn,
|
|
18
|
+
B as TableHeaderRow,
|
|
18
19
|
C as TableRow,
|
|
19
20
|
c as TableSpacerRow,
|
|
20
21
|
f as TableStickyRowButton,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
s as default,
|
|
23
|
+
i as useTableSelection
|
|
23
24
|
};
|
|
24
25
|
//# sourceMappingURL=Table.js.map
|
package/TableNext.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { TableBatchDropdown as a, TableBody as l, TableColumn as b, TableColumnFilter as T, TableColumnsDropdown as r, TableExpandedContentRow as
|
|
2
|
-
import { default as
|
|
1
|
+
import { TableBatchDropdown as a, TableBody as l, TableColumn as b, TableColumnFilter as T, TableColumnsDropdown as t, TableExpandAllGroupsButton as r, TableExpandedContentRow as n, TableExpandedRow as d, TableExpanderButton as u, TableFooter as p, TableGroupFooterRow as w, TableGroupRow as R, TableHeader as m, TableHeaderColumn as x, TableHeaderRow as B, TableRow as C, TableSpacerRow as c, TableStickyRowButton as f, default as s } from "./components/table/Table.js";
|
|
2
|
+
import { default as i } from "./components/table/selection/useTableSelection.js";
|
|
3
3
|
export {
|
|
4
4
|
a as TableBatchDropdown,
|
|
5
5
|
l as TableBody,
|
|
6
6
|
b as TableColumn,
|
|
7
7
|
T as TableColumnFilter,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
n as
|
|
11
|
-
d as
|
|
12
|
-
u as
|
|
13
|
-
p as
|
|
14
|
-
w as
|
|
15
|
-
R as
|
|
16
|
-
m as
|
|
17
|
-
x as
|
|
8
|
+
t as TableColumnsDropdown,
|
|
9
|
+
r as TableExpandAllGroupsButton,
|
|
10
|
+
n as TableExpandedContentRow,
|
|
11
|
+
d as TableExpandedRow,
|
|
12
|
+
u as TableExpanderButton,
|
|
13
|
+
p as TableFooter,
|
|
14
|
+
w as TableGroupFooterRow,
|
|
15
|
+
R as TableGroupRow,
|
|
16
|
+
m as TableHeader,
|
|
17
|
+
x as TableHeaderColumn,
|
|
18
|
+
B as TableHeaderRow,
|
|
18
19
|
C as TableRow,
|
|
19
20
|
c as TableSpacerRow,
|
|
20
21
|
f as TableStickyRowButton,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
s as default,
|
|
23
|
+
i as useTableSelection
|
|
23
24
|
};
|
|
24
25
|
//# sourceMappingURL=TableNext.js.map
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { isEmpty as
|
|
4
|
-
import { isEqual as
|
|
5
|
-
import { DEFAULT_MAX_ZOOM as ce, MAP_TYPE_DEFAULT as
|
|
6
|
-
import { removeEventListenerMap as
|
|
7
|
-
import { MapContext as
|
|
8
|
-
import { getMapBounds as
|
|
9
|
-
import { getHereUi as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { getPlatform as
|
|
17
|
-
|
|
1
|
+
import { jsx as p, jsxs as He } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useState as i, useMemo as Ue, useEffect as l } from "react";
|
|
3
|
+
import { isEmpty as ze } from "es-toolkit/compat";
|
|
4
|
+
import { isEqual as Ve } from "es-toolkit/predicate";
|
|
5
|
+
import { DEFAULT_MAX_ZOOM as ce, MAP_TYPE_DEFAULT as w, DEFAULT_PIXEL_RATIO as je, DEFAULT_MIN_ZOOM as We, MAP_LAYER_ROAD_RESTRICTIONS as pe, MAP_TYPE_NIGHT as V, MAP_TYPE_FLEET_STYLE as qe, MAP_TYPE_SATELLITE as Ge, MAP_TYPE_TERRAIN as Ke, MAP_LAYER_INCIDENTS as Xe, MAP_LAYER_TRAFFIC as $e } from "./constants.js";
|
|
6
|
+
import { removeEventListenerMap as Je, addEventListenerMap as Qe } from "../utils/eventHandling.js";
|
|
7
|
+
import { MapContext as et } from "./MapContext.js";
|
|
8
|
+
import { getMapBounds as tt, createUtils as ot } from "../utils/mapUtils.js";
|
|
9
|
+
import { getHereUi as nt } from "../utils/mapUi.js";
|
|
10
|
+
import rt from "../../../hooks/useDarkMode.js";
|
|
11
|
+
import at from "./features/MapZoom.js";
|
|
12
|
+
import st from "./features/layers/MapOverlayLayers.js";
|
|
13
|
+
import it from "./MapSize.js";
|
|
14
|
+
import lt from "./MapPosition.js";
|
|
15
|
+
import mt from "./MapElements.js";
|
|
16
|
+
import { getPlatform as ct, getBaseLayer as pt, getEngineType as ut } from "../utils/rendering.js";
|
|
17
|
+
import { useMapViewportHistory as Et } from "../hooks/useMapViewportHistory.js";
|
|
18
|
+
const dt = "map-disable-marker-pointer-events", vt = 140, s = (ue) => {
|
|
18
19
|
const {
|
|
19
20
|
children: Ee,
|
|
20
|
-
credentials:
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
21
|
+
credentials: j,
|
|
22
|
+
width: W,
|
|
23
|
+
height: q,
|
|
23
24
|
language: de = "en",
|
|
24
|
-
center:
|
|
25
|
-
zoom:
|
|
26
|
-
zoomAnimation:
|
|
27
|
-
boundingBox:
|
|
25
|
+
center: m,
|
|
26
|
+
zoom: u,
|
|
27
|
+
zoomAnimation: b = !1,
|
|
28
|
+
boundingBox: O,
|
|
28
29
|
hideClusterSettings: ve = !1,
|
|
29
30
|
hideMapLayerSettings: fe = !1,
|
|
30
31
|
disableMapEvents: G,
|
|
31
32
|
disableBehavior: K = !1,
|
|
32
33
|
disableZoomMomentum: X = !0,
|
|
33
|
-
enableFractionalZoom:
|
|
34
|
+
enableFractionalZoom: x = !1,
|
|
34
35
|
eventListenerMap: he,
|
|
35
|
-
mapType:
|
|
36
|
-
mapLayer:
|
|
37
|
-
showCluster:
|
|
36
|
+
mapType: g = w,
|
|
37
|
+
mapLayer: E = [],
|
|
38
|
+
showCluster: D = !0,
|
|
38
39
|
showScaleBar: Me = !1,
|
|
39
40
|
onMapLayerChange: Le = () => {
|
|
40
41
|
},
|
|
@@ -48,195 +49,212 @@ const mt = "map-disable-marker-pointer-events", ct = 140, s = (ue) => {
|
|
|
48
49
|
},
|
|
49
50
|
onIncidentsChange: Re = () => {
|
|
50
51
|
},
|
|
51
|
-
mapSettingsTooltip:
|
|
52
|
+
mapSettingsTooltip: ye,
|
|
52
53
|
mapSettings: $,
|
|
53
|
-
|
|
54
|
+
maxViewportHistoryEntries: Pe,
|
|
55
|
+
enableWebGL: d = !0,
|
|
54
56
|
enableDevicePixelRatio: J = !0,
|
|
55
57
|
enableMarkerIconCache: Ce = !0,
|
|
56
|
-
disableMarkerPointerEventsWhileZooming:
|
|
57
|
-
pixelRatio: Q =
|
|
58
|
-
minZoom:
|
|
59
|
-
maxZoom:
|
|
58
|
+
disableMarkerPointerEventsWhileZooming: v = !1,
|
|
59
|
+
pixelRatio: Q = je,
|
|
60
|
+
minZoom: _ = We,
|
|
61
|
+
maxZoom: N = ce
|
|
60
62
|
} = ue;
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
let Y = N;
|
|
64
|
+
_ > N && (Y = ce, console.error("Invalid condition for zoom limits: min <= max)"));
|
|
65
|
+
const A = S(null), f = S(), ee = S(!1), Z = S(v), [Ie, Se] = i(!1), [we, R] = i(!1), [t, be] = i(), [r, Oe] = i(g), [a, te] = i(E), [oe, ne] = i(D), xe = Ue(
|
|
66
|
+
() => m && u !== void 0 ? { center: m, zoom: u } : void 0,
|
|
67
|
+
[m?.lat, m?.lng, u]
|
|
68
|
+
), De = Et(t, {
|
|
69
|
+
maxEntries: Pe,
|
|
70
|
+
zoomAnimation: b,
|
|
71
|
+
controlledViewport: xe
|
|
72
|
+
}), re = J && window.devicePixelRatio || Q, c = /* @__PURE__ */ ((e) => e === "nb" ? "no" : e)(de.split("-")[0].toLowerCase()), h = (e) => {
|
|
73
|
+
if (e && !Z.current)
|
|
65
74
|
return;
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
75
|
+
const n = A.current;
|
|
76
|
+
n && (n.classList.toggle(dt, e), ee.current = e);
|
|
77
|
+
}, M = () => {
|
|
78
|
+
f.current !== void 0 && (window.clearTimeout(f.current), f.current = void 0);
|
|
79
|
+
}, ae = () => {
|
|
80
|
+
M(), f.current = window.setTimeout(() => {
|
|
81
|
+
h(!1), R(!1), f.current = void 0;
|
|
82
|
+
}, vt);
|
|
74
83
|
}, se = () => {
|
|
75
|
-
|
|
84
|
+
R(!0), M(), Z.current && !ee.current && h(!0);
|
|
76
85
|
};
|
|
77
86
|
l(() => {
|
|
78
|
-
|
|
79
|
-
}, [
|
|
80
|
-
const e =
|
|
87
|
+
Z.current = v;
|
|
88
|
+
}, [v]), l(() => {
|
|
89
|
+
const e = A.current;
|
|
81
90
|
if (!e)
|
|
82
91
|
return;
|
|
83
|
-
const
|
|
84
|
-
se(),
|
|
92
|
+
const n = () => {
|
|
93
|
+
se(), ae();
|
|
85
94
|
};
|
|
86
|
-
return e.addEventListener("wheel",
|
|
87
|
-
e.removeEventListener("wheel",
|
|
95
|
+
return e.addEventListener("wheel", n, { passive: !0, capture: !0 }), () => {
|
|
96
|
+
e.removeEventListener("wheel", n, { capture: !0 });
|
|
88
97
|
};
|
|
89
98
|
}, []), l(() => {
|
|
90
|
-
let e = [],
|
|
99
|
+
let e = [], n = () => {
|
|
91
100
|
};
|
|
92
|
-
t?.map ? (e = t.map.getObjects(), console.debug("re-initialize here map")) : console.debug("initialize here map"), t?.map && (console.debug("disposing previous map"),
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
baseLayerName:
|
|
96
|
-
defaultLayers:
|
|
97
|
-
enableWebGL:
|
|
98
|
-
platform:
|
|
99
|
-
engineType:
|
|
100
|
-
vehicleRestrictions:
|
|
101
|
-
language:
|
|
102
|
-
minZoom:
|
|
103
|
-
maxZoom:
|
|
104
|
-
}).then((
|
|
101
|
+
t?.map ? (e = t.map.getObjects(), console.debug("re-initialize here map")) : console.debug("initialize here map"), t?.map && (console.debug("disposing previous map"), Je(t.map), t.mapEvents && t.mapEvents.dispose(), t.map.dispose());
|
|
102
|
+
const C = O && tt(O), L = ct(j), T = ut(r, d), k = L.createDefaultLayers({ engineType: T, lg: c, pois: !0 });
|
|
103
|
+
return pt({
|
|
104
|
+
baseLayerName: r,
|
|
105
|
+
defaultLayers: k,
|
|
106
|
+
enableWebGL: d,
|
|
107
|
+
platform: L,
|
|
108
|
+
engineType: T,
|
|
109
|
+
vehicleRestrictions: a.includes(pe),
|
|
110
|
+
language: c,
|
|
111
|
+
minZoom: _,
|
|
112
|
+
maxZoom: Y
|
|
113
|
+
}).then((U) => {
|
|
105
114
|
const le = () => {
|
|
106
115
|
se();
|
|
107
116
|
}, me = () => {
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
zoom:
|
|
111
|
-
center:
|
|
112
|
-
bounds:
|
|
113
|
-
engineType:
|
|
114
|
-
pixelRatio:
|
|
117
|
+
ae();
|
|
118
|
+
}, o = new H.Map(A.current, U.baseLayer, {
|
|
119
|
+
zoom: u,
|
|
120
|
+
center: m,
|
|
121
|
+
bounds: C,
|
|
122
|
+
engineType: T,
|
|
123
|
+
pixelRatio: re,
|
|
115
124
|
fixedCenter: !0
|
|
116
125
|
});
|
|
117
|
-
|
|
118
|
-
let
|
|
119
|
-
G || (
|
|
120
|
-
const
|
|
126
|
+
U.overlayLayer && o.addLayer(U.overlayLayer), Se(!0);
|
|
127
|
+
let z = !1, I;
|
|
128
|
+
G || (z = new H.mapevents.MapEvents(o)), G || K || (I = new H.mapevents.Behavior(z), x || I.disable(H.mapevents.Behavior.Feature.FRACTIONAL_ZOOM), X && I.disable(H.mapevents.Behavior.Feature.ZOOM_MOMENTUM)), Qe(o, he, o), o.addEventListener("mapviewchangestart", le), o.addEventListener("mapviewchangeend", me);
|
|
129
|
+
const ke = nt(o, k, Me, c);
|
|
121
130
|
be({
|
|
122
|
-
credentials:
|
|
123
|
-
defaultLayers:
|
|
124
|
-
map:
|
|
125
|
-
mapEvents:
|
|
126
|
-
behavior:
|
|
127
|
-
platform:
|
|
128
|
-
ui:
|
|
129
|
-
utils:
|
|
131
|
+
credentials: j,
|
|
132
|
+
defaultLayers: k,
|
|
133
|
+
map: o,
|
|
134
|
+
mapEvents: z,
|
|
135
|
+
behavior: I,
|
|
136
|
+
platform: L,
|
|
137
|
+
ui: ke,
|
|
138
|
+
utils: ot(o),
|
|
130
139
|
// Put settings back into the map API object so the invoking service
|
|
131
140
|
// can check on these settings for instance inside a test
|
|
132
141
|
settings: {
|
|
133
|
-
enableWebGL:
|
|
134
|
-
baseLayer:
|
|
135
|
-
activeLayers:
|
|
136
|
-
showCluster:
|
|
137
|
-
minZoom:
|
|
138
|
-
maxZoom:
|
|
142
|
+
enableWebGL: d,
|
|
143
|
+
baseLayer: r,
|
|
144
|
+
activeLayers: a,
|
|
145
|
+
showCluster: oe,
|
|
146
|
+
minZoom: _,
|
|
147
|
+
maxZoom: Y
|
|
139
148
|
}
|
|
140
|
-
}), e &&
|
|
141
|
-
|
|
149
|
+
}), e && o.addObjects(e), n = () => {
|
|
150
|
+
o.removeEventListener("mapviewchangestart", le), o.removeEventListener("mapviewchangeend", me);
|
|
142
151
|
};
|
|
143
152
|
}), () => {
|
|
144
|
-
|
|
153
|
+
n(), M(), h(!1), R(!1);
|
|
145
154
|
};
|
|
146
155
|
}, [
|
|
147
|
-
|
|
156
|
+
d,
|
|
148
157
|
J,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
158
|
+
c,
|
|
159
|
+
r,
|
|
160
|
+
_,
|
|
161
|
+
N,
|
|
153
162
|
X,
|
|
154
|
-
|
|
155
|
-
]), l(() => (
|
|
156
|
-
|
|
157
|
-
}), [
|
|
158
|
-
const
|
|
163
|
+
x
|
|
164
|
+
]), l(() => (v || (M(), h(!1)), () => {
|
|
165
|
+
M(), h(!1), R(!1);
|
|
166
|
+
}), [v]);
|
|
167
|
+
const F = rt();
|
|
159
168
|
l(() => {
|
|
160
|
-
|
|
161
|
-
}, [
|
|
162
|
-
const [
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
const
|
|
168
|
-
te(
|
|
169
|
-
},
|
|
170
|
-
|
|
169
|
+
F && r === w ? y(V) : !F && r === V && y(w);
|
|
170
|
+
}, [F, c]), l(() => y(g), [g]);
|
|
171
|
+
const [Ne, Ye] = i(E);
|
|
172
|
+
Ve(E, Ne) || (te(E), Ye(E)), l(() => ne(D), [D]);
|
|
173
|
+
const y = (e) => {
|
|
174
|
+
Oe(e), Te(e, g);
|
|
175
|
+
}, Ze = (e) => {
|
|
176
|
+
const n = (L) => a.filter((T) => T !== L), C = a.includes(e) ? n(e) : [...a, e];
|
|
177
|
+
te(C), Le(C, a);
|
|
178
|
+
}, Fe = (e) => {
|
|
179
|
+
ne(e), ge(e);
|
|
171
180
|
}, ie = () => {
|
|
172
181
|
document.querySelector(".AssetTree")?.classList.add("pointer-events-none");
|
|
173
|
-
},
|
|
182
|
+
}, B = () => {
|
|
174
183
|
document.querySelector(".AssetTree")?.classList.remove("pointer-events-none");
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
return /* @__PURE__ */
|
|
184
|
+
}, P = {};
|
|
185
|
+
q && (P.height = q), W && (P.width = W);
|
|
186
|
+
const Be = ze(P) ? "height-100pct" : "";
|
|
187
|
+
return /* @__PURE__ */ p(
|
|
179
188
|
"div",
|
|
180
189
|
{
|
|
181
|
-
className: `Map position-relative map-type-${
|
|
182
|
-
style:
|
|
183
|
-
ref:
|
|
190
|
+
className: `Map position-relative map-type-${r.toLowerCase()} ${Be}`,
|
|
191
|
+
style: P,
|
|
192
|
+
ref: A,
|
|
184
193
|
onTouchStart: ie,
|
|
185
|
-
onTouchEnd:
|
|
194
|
+
onTouchEnd: B,
|
|
186
195
|
onMouseEnter: ie,
|
|
187
|
-
onMouseOut:
|
|
188
|
-
onBlur:
|
|
189
|
-
children: Ie && t && /* @__PURE__ */
|
|
190
|
-
|
|
196
|
+
onMouseOut: B,
|
|
197
|
+
onBlur: B,
|
|
198
|
+
children: Ie && t && /* @__PURE__ */ He(
|
|
199
|
+
et.Provider,
|
|
191
200
|
{
|
|
192
201
|
value: {
|
|
193
202
|
api: t,
|
|
194
|
-
language:
|
|
195
|
-
enableWebGL:
|
|
203
|
+
language: c,
|
|
204
|
+
enableWebGL: d,
|
|
196
205
|
enableMarkerIconCache: Ce,
|
|
197
|
-
enableFractionalZoom:
|
|
198
|
-
isZoomInteractionActive:
|
|
199
|
-
showCluster:
|
|
200
|
-
activeLayers:
|
|
201
|
-
baseLayer:
|
|
206
|
+
enableFractionalZoom: x,
|
|
207
|
+
isZoomInteractionActive: we,
|
|
208
|
+
showCluster: oe,
|
|
209
|
+
activeLayers: a,
|
|
210
|
+
baseLayer: r,
|
|
202
211
|
hideMapLayerSettings: fe,
|
|
203
212
|
hideClusterSettings: ve,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
213
|
+
viewportHistory: De,
|
|
214
|
+
onMapTypeChange: y,
|
|
215
|
+
onMapLayerChange: Ze,
|
|
216
|
+
onShowClusterChange: Fe,
|
|
217
|
+
mapSettingsTooltip: ye,
|
|
208
218
|
onIncidentsChange: Re,
|
|
209
|
-
devicePixelRatio:
|
|
219
|
+
devicePixelRatio: re
|
|
210
220
|
},
|
|
211
221
|
children: [
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
222
|
+
/* @__PURE__ */ p(
|
|
223
|
+
lt,
|
|
224
|
+
{
|
|
225
|
+
api: t,
|
|
226
|
+
boundingBox: O,
|
|
227
|
+
center: m,
|
|
228
|
+
zoom: u,
|
|
229
|
+
zoomAnimation: b
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ p(it, { api: t }),
|
|
233
|
+
/* @__PURE__ */ p(
|
|
234
|
+
at,
|
|
216
235
|
{
|
|
217
|
-
zoom: W,
|
|
218
236
|
hideZoomButtons: K,
|
|
219
237
|
onZoomIn: _e,
|
|
220
238
|
onZoomOut: Ae,
|
|
221
|
-
zoomAnimation:
|
|
239
|
+
zoomAnimation: b
|
|
222
240
|
}
|
|
223
241
|
),
|
|
224
242
|
$ && $,
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ p(st, { layers: a }),
|
|
244
|
+
/* @__PURE__ */ p(mt, { api: t, children: Ee })
|
|
227
245
|
]
|
|
228
246
|
}
|
|
229
247
|
)
|
|
230
248
|
}
|
|
231
249
|
);
|
|
232
250
|
};
|
|
233
|
-
s.TYPE_DEFAULT =
|
|
234
|
-
s.TYPE_FLEET_STYLE =
|
|
235
|
-
s.TYPE_SATELLITE =
|
|
236
|
-
s.TYPE_TERRAIN =
|
|
237
|
-
s.TYPE_NIGHT =
|
|
238
|
-
s.LAYER_INCIDENTS =
|
|
239
|
-
s.LAYER_TRAFFIC =
|
|
251
|
+
s.TYPE_DEFAULT = w;
|
|
252
|
+
s.TYPE_FLEET_STYLE = qe;
|
|
253
|
+
s.TYPE_SATELLITE = Ge;
|
|
254
|
+
s.TYPE_TERRAIN = Ke;
|
|
255
|
+
s.TYPE_NIGHT = V;
|
|
256
|
+
s.LAYER_INCIDENTS = Xe;
|
|
257
|
+
s.LAYER_TRAFFIC = $e;
|
|
240
258
|
s.LAYER_ROAD_RESTRICTIONS = pe;
|
|
241
259
|
export {
|
|
242
260
|
s as default
|