@smart-factor/gem-ui-map-component 0.0.24 → 0.0.26
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.
|
@@ -314860,7 +314860,13 @@ class LayersService {
|
|
|
314860
314860
|
});
|
|
314861
314861
|
}
|
|
314862
314862
|
setSelectedLayers(B) {
|
|
314863
|
-
B.length > this.selectedLayers.length ? this.addLayersToSelected(B) : B.length < this.selectedLayers.length
|
|
314863
|
+
B.length > this.selectedLayers.length ? this.addLayersToSelected(B) : B.length < this.selectedLayers.length ? this.removeLayersFromSelected(B) : B.length === this.selectedLayers.length && this.forceAddLayersToSelected(B);
|
|
314864
|
+
}
|
|
314865
|
+
forceAddLayersToSelected(B) {
|
|
314866
|
+
this.selectedLayers = [...B], this.selectedLayersSymbols = B.map((z) => {
|
|
314867
|
+
var e0;
|
|
314868
|
+
return (e0 = z.config) == null ? void 0 : e0.symbol;
|
|
314869
|
+
}), this.layersEventEmitters.emit("onLayersSelected", B);
|
|
314864
314870
|
}
|
|
314865
314871
|
addLayersToSelected(B) {
|
|
314866
314872
|
const z = B.filter(
|
|
@@ -317215,7 +317221,7 @@ const initializeSnapInteraction = (L) => {
|
|
|
317215
317221
|
onClick: ei,
|
|
317216
317222
|
children: /* @__PURE__ */ jsx$1(LocationOn, {})
|
|
317217
317223
|
}
|
|
317218
|
-
) : null, N1 = () => L.items.smartGemSync ? /* @__PURE__ */ jsx$1(Tooltip, { title: "Synchronizuj pozycję na mapie SmartGEM", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(SquareIconButton, { variant: "contained", onClick: Ko, children: /* @__PURE__ */ jsx$1(Sync, {}) }) }) }) : null, I1 = () => /* @__PURE__ */ jsx$1(Tooltip, { title: "Odznacz wszystkie wybrane obiekty", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(SquareIconButton, { variant: "contained", onClick: ri, children: /* @__PURE__ */ jsx$1(DeselectOutlined, {}) }) }) }), G1 = () => L.items.centerToInitial ? /* @__PURE__ */ jsx$1(Tooltip, { title: "Wyśrodkuj mapę do początkowo wybranych obiektów", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(
|
|
317224
|
+
) : null, N1 = () => L.items.smartGemSync ? /* @__PURE__ */ jsx$1(Tooltip, { title: "Synchronizuj pozycję na mapie SmartGEM", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(SquareIconButton, { variant: "contained", onClick: Ko, children: /* @__PURE__ */ jsx$1(Sync, {}) }) }) }) : null, I1 = () => L.items.deselectAllSelected ? /* @__PURE__ */ jsx$1(Tooltip, { title: "Odznacz wszystkie wybrane obiekty", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(SquareIconButton, { variant: "contained", onClick: ri, children: /* @__PURE__ */ jsx$1(DeselectOutlined, {}) }) }) }) : null, G1 = () => L.items.centerToInitial ? /* @__PURE__ */ jsx$1(Tooltip, { title: "Wyśrodkuj mapę do początkowo wybranych obiektów", children: /* @__PURE__ */ jsx$1(Box, { children: /* @__PURE__ */ jsx$1(
|
|
317219
317225
|
SquareIconButton,
|
|
317220
317226
|
{
|
|
317221
317227
|
variant: "contained",
|
|
@@ -4,7 +4,7 @@ interface SidebarConfig {
|
|
|
4
4
|
}
|
|
5
5
|
interface MapButtonsConfig {
|
|
6
6
|
mapButtonsVisible: boolean;
|
|
7
|
-
items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected', boolean>;
|
|
7
|
+
items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected' | 'deselectAllSelected', boolean>;
|
|
8
8
|
}
|
|
9
9
|
interface MapElementsConfig {
|
|
10
10
|
mapElementsVisible: boolean;
|
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ var Yn = (t, e, r, n) => ({
|
|
|
16
16
|
import { jsx as g, jsxs as re, Fragment as at } from "react/jsx-runtime";
|
|
17
17
|
import * as B from "react";
|
|
18
18
|
import ve, { useState as J, forwardRef as sl, useEffect as Re, createContext as al, useContext as il, useRef as Xs, useMemo as fs, useCallback as sn } from "react";
|
|
19
|
-
import { a as cn, b as ol, r as Ca, i as Wi, c as Gi, t as ll, d as cl, e as ul, u as dl, P as l, f as Qi, g as et, h as Ba, j as qs, k as fl, l as hl, m as pl, n as Zt, o as Bt, p as ml, q as qa, s as qt, v as Wt, w as $e, x as _t, y as hs, z as yt, A as Ls, B as Ki, C as Ta, D as yl, T as gl, E as Ea, F as vl, G as Wa, H as bl, I as _l, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as xl, R as Qa, S as Ka, V as Ha, U as wl, W as oe, X as Jn, Y as Ya, Z as Xn, _ as Ne, $ as Ja, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Xa, ac as Al, ad as Kt, ae as ei, af as ti, ag as Hi, ah as Ue, ai as ps, aj as Ot, ak as Nr, al as $t, am as Yi, an as Zn, ao as Ol, ap as Rl, aq as Ft, ar as Ji, as as ms, at as Il, au as Pl, av as Xi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Fl, aC as Vl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-
|
|
19
|
+
import { a as cn, b as ol, r as Ca, i as Wi, c as Gi, t as ll, d as cl, e as ul, u as dl, P as l, f as Qi, g as et, h as Ba, j as qs, k as fl, l as hl, m as pl, n as Zt, o as Bt, p as ml, q as qa, s as qt, v as Wt, w as $e, x as _t, y as hs, z as yt, A as Ls, B as Ki, C as Ta, D as yl, T as gl, E as Ea, F as vl, G as Wa, H as bl, I as _l, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as xl, R as Qa, S as Ka, V as Ha, U as wl, W as oe, X as Jn, Y as Ya, Z as Xn, _ as Ne, $ as Ja, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Xa, ac as Al, ad as Kt, ae as ei, af as ti, ag as Hi, ah as Ue, ai as ps, aj as Ot, ak as Nr, al as $t, am as Yi, an as Zn, ao as Ol, ap as Rl, aq as Ft, ar as Ji, as as ms, at as Il, au as Pl, av as Xi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Fl, aC as Vl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-DrHjsRcp.js";
|
|
20
20
|
var dn = class {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -12,6 +12,7 @@ declare class LayersService {
|
|
|
12
12
|
querySelectedLayers(symbol: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
13
13
|
saveLayersConfig(value: string, symbol: string): Promise<import('axios').AxiosResponse<any, any>>;
|
|
14
14
|
setSelectedLayers(layers: (GEMLayer | WMSLayerDetailed)[]): void;
|
|
15
|
+
forceAddLayersToSelected(layers: (GEMLayer | WMSLayerDetailed)[]): void;
|
|
15
16
|
addLayersToSelected(layers: (GEMLayer | WMSLayerDetailed)[]): void;
|
|
16
17
|
removeLayersFromSelected(layers: (GEMLayer | WMSLayerDetailed)[]): void;
|
|
17
18
|
getSelectedLayersSymbols(): string[];
|