@smart-factor/gem-ui-map-component 0.0.25 → 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.
|
@@ -21671,7 +21671,7 @@ var utilInspect = require$$0$1, inspectCustom = utilInspect.custom, inspectSymbo
|
|
|
21671
21671
|
if (typeof globalThis < "u" && B === globalThis || typeof commonjsGlobal < "u" && B === commonjsGlobal)
|
|
21672
21672
|
return "{ [object globalThis] }";
|
|
21673
21673
|
if (!isDate$2(B) && !isRegExp$3(B)) {
|
|
21674
|
-
var n1 = arrObjKeys(B, _0), u1 = gPO ? gPO(B) === Object.prototype : B instanceof Object || B.constructor === Object, g1 = B instanceof Object ? "" : "null prototype", ti = !u1 && toStringTag$2 && Object(B) === B && toStringTag$2 in B ? $slice.call(toStr(B), 8, -1) : g1 ? "Object" : "", l1 = u1 || typeof B.constructor != "function" ? "" : B.constructor.name ? B.constructor.name + " " : "", y1 = l1 + (ti || g1 ? "[" + $join.call($concat$1.call([], ti || [], g1 || []), ": ") + "] " : "");
|
|
21674
|
+
var n1 = arrObjKeys(B, _0), u1 = gPO ? gPO(B) === Object.prototype : B instanceof Object || B.constructor === Object, g1 = B instanceof Object ? "" : "null prototype", ti = !u1 && toStringTag$2 && Object(B) === B && toStringTag$2 in B ? $slice.call(toStr$1(B), 8, -1) : g1 ? "Object" : "", l1 = u1 || typeof B.constructor != "function" ? "" : B.constructor.name ? B.constructor.name + " " : "", y1 = l1 + (ti || g1 ? "[" + $join.call($concat$1.call([], ti || [], g1 || []), ": ") + "] " : "");
|
|
21675
21675
|
return n1.length === 0 ? y1 + "{}" : O0 ? y1 + "{" + indentedJoin(n1, O0) + "}" : y1 + "{ " + $join.call(n1, ", ") + " }";
|
|
21676
21676
|
}
|
|
21677
21677
|
return String(B);
|
|
@@ -21687,25 +21687,25 @@ function canTrustToString(L) {
|
|
|
21687
21687
|
return !toStringTag$2 || !(typeof L == "object" && (toStringTag$2 in L || typeof L[toStringTag$2] < "u"));
|
|
21688
21688
|
}
|
|
21689
21689
|
function isArray$6(L) {
|
|
21690
|
-
return toStr(L) === "[object Array]" && canTrustToString(L);
|
|
21690
|
+
return toStr$1(L) === "[object Array]" && canTrustToString(L);
|
|
21691
21691
|
}
|
|
21692
21692
|
function isDate$2(L) {
|
|
21693
|
-
return toStr(L) === "[object Date]" && canTrustToString(L);
|
|
21693
|
+
return toStr$1(L) === "[object Date]" && canTrustToString(L);
|
|
21694
21694
|
}
|
|
21695
21695
|
function isRegExp$3(L) {
|
|
21696
|
-
return toStr(L) === "[object RegExp]" && canTrustToString(L);
|
|
21696
|
+
return toStr$1(L) === "[object RegExp]" && canTrustToString(L);
|
|
21697
21697
|
}
|
|
21698
21698
|
function isError(L) {
|
|
21699
|
-
return toStr(L) === "[object Error]" && canTrustToString(L);
|
|
21699
|
+
return toStr$1(L) === "[object Error]" && canTrustToString(L);
|
|
21700
21700
|
}
|
|
21701
21701
|
function isString$2(L) {
|
|
21702
|
-
return toStr(L) === "[object String]" && canTrustToString(L);
|
|
21702
|
+
return toStr$1(L) === "[object String]" && canTrustToString(L);
|
|
21703
21703
|
}
|
|
21704
21704
|
function isNumber$3(L) {
|
|
21705
|
-
return toStr(L) === "[object Number]" && canTrustToString(L);
|
|
21705
|
+
return toStr$1(L) === "[object Number]" && canTrustToString(L);
|
|
21706
21706
|
}
|
|
21707
21707
|
function isBoolean$2(L) {
|
|
21708
|
-
return toStr(L) === "[object Boolean]" && canTrustToString(L);
|
|
21708
|
+
return toStr$1(L) === "[object Boolean]" && canTrustToString(L);
|
|
21709
21709
|
}
|
|
21710
21710
|
function isSymbol$1(L) {
|
|
21711
21711
|
if (hasShammedSymbols)
|
|
@@ -21735,7 +21735,7 @@ var hasOwn$2 = Object.prototype.hasOwnProperty || function(L) {
|
|
|
21735
21735
|
function has$4(L, B) {
|
|
21736
21736
|
return hasOwn$2.call(L, B);
|
|
21737
21737
|
}
|
|
21738
|
-
function toStr(L) {
|
|
21738
|
+
function toStr$1(L) {
|
|
21739
21739
|
return objectToString$2.call(L);
|
|
21740
21740
|
}
|
|
21741
21741
|
function nameOf(L) {
|
|
@@ -21954,7 +21954,7 @@ var inspect$3 = objectInspect$1, $TypeError$5 = type$1, listGetNode = function(L
|
|
|
21954
21954
|
}
|
|
21955
21955
|
};
|
|
21956
21956
|
return z;
|
|
21957
|
-
}, esObjectAtoms$1 = Object, esErrors$1 = Error, _eval$1 = EvalError, range$1 = RangeError, ref$1 = ReferenceError, syntax$1 = SyntaxError, uri$1 = URIError, abs$3 = Math.abs, floor$2 = Math.floor, max$
|
|
21957
|
+
}, esObjectAtoms$1 = Object, esErrors$1 = Error, _eval$1 = EvalError, range$1 = RangeError, ref$1 = ReferenceError, syntax$1 = SyntaxError, uri$1 = URIError, abs$3 = Math.abs, floor$2 = Math.floor, max$5 = Math.max, min$4 = Math.min, pow$2 = Math.pow, round$7 = Math.round, _isNaN$1 = Number.isNaN || function(B) {
|
|
21958
21958
|
return B !== B;
|
|
21959
21959
|
}, $isNaN = _isNaN$1, sign$3 = function(B) {
|
|
21960
21960
|
return $isNaN(B) || B === 0 ? B : B < 0 ? -1 : 1;
|
|
@@ -22022,67 +22022,49 @@ function requireObject_getPrototypeOf$1() {
|
|
|
22022
22022
|
var L = esObjectAtoms$1;
|
|
22023
22023
|
return Object_getPrototypeOf$1 = L.getPrototypeOf || null, Object_getPrototypeOf$1;
|
|
22024
22024
|
}
|
|
22025
|
-
var
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
for (var T0 = s0(arguments, 1), O0, _0 = function() {
|
|
22049
|
-
if (this instanceof O0) {
|
|
22050
|
-
var Z0 = $0.apply(
|
|
22051
|
-
this,
|
|
22052
|
-
r0(T0, arguments)
|
|
22053
|
-
);
|
|
22054
|
-
return Object(Z0) === Z0 ? Z0 : this;
|
|
22055
|
-
}
|
|
22056
|
-
return $0.apply(
|
|
22057
|
-
y0,
|
|
22058
|
-
r0(T0, arguments)
|
|
22025
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max$4 = Math.max, funcType = "[object Function]", concatty = function(B, z) {
|
|
22026
|
+
for (var e0 = [], r0 = 0; r0 < B.length; r0 += 1)
|
|
22027
|
+
e0[r0] = B[r0];
|
|
22028
|
+
for (var s0 = 0; s0 < z.length; s0 += 1)
|
|
22029
|
+
e0[s0 + B.length] = z[s0];
|
|
22030
|
+
return e0;
|
|
22031
|
+
}, slicy = function(B, z) {
|
|
22032
|
+
for (var e0 = [], r0 = z, s0 = 0; r0 < B.length; r0 += 1, s0 += 1)
|
|
22033
|
+
e0[s0] = B[r0];
|
|
22034
|
+
return e0;
|
|
22035
|
+
}, joiny = function(L, B) {
|
|
22036
|
+
for (var z = "", e0 = 0; e0 < L.length; e0 += 1)
|
|
22037
|
+
z += L[e0], e0 + 1 < L.length && (z += B);
|
|
22038
|
+
return z;
|
|
22039
|
+
}, implementation$2 = function(B) {
|
|
22040
|
+
var z = this;
|
|
22041
|
+
if (typeof z != "function" || toStr.apply(z) !== funcType)
|
|
22042
|
+
throw new TypeError(ERROR_MESSAGE + z);
|
|
22043
|
+
for (var e0 = slicy(arguments, 1), r0, s0 = function() {
|
|
22044
|
+
if (this instanceof r0) {
|
|
22045
|
+
var T0 = z.apply(
|
|
22046
|
+
this,
|
|
22047
|
+
concatty(e0, arguments)
|
|
22059
22048
|
);
|
|
22060
|
-
|
|
22061
|
-
B0[A0] = "$" + A0;
|
|
22062
|
-
if (O0 = Function("binder", "return function (" + u0(B0, ",") + "){ return binder.apply(this,arguments); }")(_0), $0.prototype) {
|
|
22063
|
-
var U0 = function() {
|
|
22064
|
-
};
|
|
22065
|
-
U0.prototype = $0.prototype, O0.prototype = new U0(), U0.prototype = null;
|
|
22049
|
+
return Object(T0) === T0 ? T0 : this;
|
|
22066
22050
|
}
|
|
22067
|
-
return
|
|
22068
|
-
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
|
|
22079
|
-
|
|
22080
|
-
}
|
|
22081
|
-
var functionApply$1, hasRequiredFunctionApply$1;
|
|
22051
|
+
return z.apply(
|
|
22052
|
+
B,
|
|
22053
|
+
concatty(e0, arguments)
|
|
22054
|
+
);
|
|
22055
|
+
}, u0 = max$4(0, z.length - e0.length), h0 = [], y0 = 0; y0 < u0; y0++)
|
|
22056
|
+
h0[y0] = "$" + y0;
|
|
22057
|
+
if (r0 = Function("binder", "return function (" + joiny(h0, ",") + "){ return binder.apply(this,arguments); }")(s0), z.prototype) {
|
|
22058
|
+
var $0 = function() {
|
|
22059
|
+
};
|
|
22060
|
+
$0.prototype = z.prototype, r0.prototype = new $0(), $0.prototype = null;
|
|
22061
|
+
}
|
|
22062
|
+
return r0;
|
|
22063
|
+
}, implementation$1 = implementation$2, functionBind$1 = Function.prototype.bind || implementation$1, functionCall$1 = Function.prototype.call, functionApply$1, hasRequiredFunctionApply$1;
|
|
22082
22064
|
function requireFunctionApply$1() {
|
|
22083
22065
|
return hasRequiredFunctionApply$1 || (hasRequiredFunctionApply$1 = 1, functionApply$1 = Function.prototype.apply), functionApply$1;
|
|
22084
22066
|
}
|
|
22085
|
-
var reflectApply$1 = typeof Reflect < "u" && Reflect && Reflect.apply, bind$4 =
|
|
22067
|
+
var reflectApply$1 = typeof Reflect < "u" && Reflect && Reflect.apply, bind$4 = functionBind$1, $apply$1 = requireFunctionApply$1(), $call$2 = functionCall$1, $reflectApply = reflectApply$1, actualApply$1 = $reflectApply || bind$4.call($call$2, $apply$1), bind$3 = functionBind$1, $TypeError$4 = type$1, $call$1 = functionCall$1, $actualApply = actualApply$1, callBindApplyHelpers$1 = function(B) {
|
|
22086
22068
|
if (B.length < 1 || typeof B[0] != "function")
|
|
22087
22069
|
throw new $TypeError$4("a function is required");
|
|
22088
22070
|
return $actualApply(bind$3, $call$1, B);
|
|
@@ -22129,10 +22111,10 @@ var hasown$1, hasRequiredHasown$1;
|
|
|
22129
22111
|
function requireHasown$1() {
|
|
22130
22112
|
if (hasRequiredHasown$1) return hasown$1;
|
|
22131
22113
|
hasRequiredHasown$1 = 1;
|
|
22132
|
-
var L = Function.prototype.call, B = Object.prototype.hasOwnProperty, z =
|
|
22114
|
+
var L = Function.prototype.call, B = Object.prototype.hasOwnProperty, z = functionBind$1;
|
|
22133
22115
|
return hasown$1 = z.call(L, B), hasown$1;
|
|
22134
22116
|
}
|
|
22135
|
-
var undefined$1, $Object = esObjectAtoms$1, $Error = esErrors$1, $EvalError = _eval$1, $RangeError = range$1, $ReferenceError = ref$1, $SyntaxError = syntax$1, $TypeError$3 = type$1, $URIError = uri$1, abs$2 = abs$3, floor$1 = floor$2, max$3 = max$
|
|
22117
|
+
var undefined$1, $Object = esObjectAtoms$1, $Error = esErrors$1, $EvalError = _eval$1, $RangeError = range$1, $ReferenceError = ref$1, $SyntaxError = syntax$1, $TypeError$3 = type$1, $URIError = uri$1, abs$2 = abs$3, floor$1 = floor$2, max$3 = max$5, min$3 = min$4, pow$1 = pow$2, round$6 = round$7, sign$2 = sign$3, $Function = Function, getEvalledConstructor = function(L) {
|
|
22136
22118
|
try {
|
|
22137
22119
|
return $Function('"use strict"; return (' + L + ").constructor;")();
|
|
22138
22120
|
} catch {
|
|
@@ -22149,7 +22131,7 @@ var undefined$1, $Object = esObjectAtoms$1, $Error = esErrors$1, $EvalError = _e
|
|
|
22149
22131
|
return throwTypeError;
|
|
22150
22132
|
}
|
|
22151
22133
|
}
|
|
22152
|
-
}() : throwTypeError, hasSymbols$1 = requireHasSymbols$1()(), getProto$1 = requireGetProto$1(), $ObjectGPO = requireObject_getPrototypeOf$1(), $ReflectGPO = requireReflect_getPrototypeOf$1(), $apply = requireFunctionApply$1(), $call =
|
|
22134
|
+
}() : throwTypeError, hasSymbols$1 = requireHasSymbols$1()(), getProto$1 = requireGetProto$1(), $ObjectGPO = requireObject_getPrototypeOf$1(), $ReflectGPO = requireReflect_getPrototypeOf$1(), $apply = requireFunctionApply$1(), $call = functionCall$1, needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array), INTRINSICS = {
|
|
22153
22135
|
__proto__: null,
|
|
22154
22136
|
"%AggregateError%": typeof AggregateError > "u" ? undefined$1 : AggregateError,
|
|
22155
22137
|
"%Array%": Array,
|
|
@@ -22309,7 +22291,7 @@ var doEval = function L(B) {
|
|
|
22309
22291
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
22310
22292
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
22311
22293
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
22312
|
-
}, bind$2 =
|
|
22294
|
+
}, bind$2 = functionBind$1, hasOwn$1 = requireHasown$1(), $concat = bind$2.call($call, Array.prototype.concat), $spliceApply = bind$2.call($apply, Array.prototype.splice), $replace = bind$2.call($call, String.prototype.replace), $strSlice = bind$2.call($call, String.prototype.slice), $exec = bind$2.call($call, RegExp.prototype.exec), rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, reEscapeChar$1 = /\\(\\)?/g, stringToPath = function(B) {
|
|
22313
22295
|
var z = $strSlice(B, 0, 1), e0 = $strSlice(B, -1);
|
|
22314
22296
|
if (z === "%" && e0 !== "%")
|
|
22315
22297
|
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -317239,7 +317221,7 @@ const initializeSnapInteraction = (L) => {
|
|
|
317239
317221
|
onClick: ei,
|
|
317240
317222
|
children: /* @__PURE__ */ jsx$1(LocationOn, {})
|
|
317241
317223
|
}
|
|
317242
|
-
) : 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(
|
|
317243
317225
|
SquareIconButton,
|
|
317244
317226
|
{
|
|
317245
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);
|