@dartcom/ui-kit 10.2.13 → 10.2.14
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/components/layers/leaflet/config/constants.d.ts +0 -1
- package/dist/components/layers/leaflet/config/constants.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/camera/lib/utils.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/pillar/lib/utils.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-sign/lib/utils.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/traffic-signal/lib/utils.d.ts.map +1 -1
- package/dist/configs/global/global.d.ts.map +1 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/index.cjs +12 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/leaflet/config/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/leaflet/config/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,SAAS,EAAE;KACrB,CAAC,IAAI,kBAAkB,GAAG,MAAM;CAKlC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,kBAAkB,yBA2F3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBAyDlE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,yBA4XlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBAwB9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/camera/lib/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/camera/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,eAAe,GAAI,QAAQ,kBAAkB,yBA6CzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/pillar/lib/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/pillar/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,eAAe,GAAI,QAAQ,kBAAkB,yBA6CzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/traffic-sign/lib/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/traffic-sign/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,iBAAiB,EAAgB,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAmB,iBAAiB,EAAmB,MAAM,SAAS,CAAC;AAE9E,eAAO,MAAM,oBAAoB,GAAI,QAAQ,kBAAkB,yBA8D9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,mBAGlC;IACD,IAAI,EAAE,MAAM,OAAO,iBAAiB,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,iBAAiB,CAAC;CAC3B,WAQA,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,SA4BnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/traffic-signal/lib/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/layers/traffic-signal/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,sBAAsB,GAAI,QAAQ,kBAAkB,yBA6ChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/configs/global/global.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/configs/global/global.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAoB,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC;AAED,qBAAa,YAAY;IAyBX,OAAO,CAAC,QAAQ,CAAC,aAAa;IAxB1C,OAAO,CAAC,WAAW,CAAa;IAChC,IAAW,UAAU,eAEpB;IAED,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgC;IACxD,WAAkB,QAAQ,iBAQzB;WACa,UAAU,CAAC,OAAO,EAAE,aAAa;WAKjC,UAAU;gBAIK,aAAa,EAAE,aAAa;IAezD,OAAO,CAAC,OAAO,CAAM;IACrB,IAAW,MAAM,WAEhB;IAED,OAAO,CAAC,cAAc,CAAS;IAC/B,IAAW,aAAa,YAEvB;YAEa,gBAAgB;CAgC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1978,6 +1978,10 @@ const getEntityNames = ({ entity, names, }) => {
|
|
|
1978
1978
|
});
|
|
1979
1979
|
return layerNames;
|
|
1980
1980
|
};
|
|
1981
|
+
const getImageSrc = (path) => {
|
|
1982
|
+
const imageSrc = `${"https://dalganmap.ru/api-image/images"}/${path}`;
|
|
1983
|
+
return imageSrc;
|
|
1984
|
+
};
|
|
1981
1985
|
|
|
1982
1986
|
var niceErrors = {
|
|
1983
1987
|
0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",
|
|
@@ -14734,8 +14738,6 @@ const arraySchema = create$2();
|
|
|
14734
14738
|
const dateSchema = create$4();
|
|
14735
14739
|
const dateRequiredSchema = dateSchema.required(requiredMessage);
|
|
14736
14740
|
|
|
14737
|
-
const _backendUrl = 'https://dalganmap.ru/api';
|
|
14738
|
-
|
|
14739
14741
|
const Accordion = ({ items, onOpen, defaultValue = null, }) => {
|
|
14740
14742
|
const [currentValue, setCurrentValue] = React__namespace.useState(defaultValue);
|
|
14741
14743
|
const handleClose = React__namespace.useCallback(() => {
|
|
@@ -24658,12 +24660,10 @@ class LoggerService {
|
|
|
24658
24660
|
const loggerService = new LoggerService();
|
|
24659
24661
|
|
|
24660
24662
|
const tile_size = 256;
|
|
24661
|
-
const imagesPath = 'https://dalganmap.ru/api-image/images';
|
|
24662
|
-
const apiUrl = "http://89.108.118.23:3070";
|
|
24663
24663
|
const sourceUrl = {
|
|
24664
|
-
[exports.TangramSourceNames.TILE]: `${
|
|
24665
|
-
[exports.TangramSourceNames.NATURE_TILE]: `${
|
|
24666
|
-
[exports.TangramSourceNames.MSK]: `${
|
|
24664
|
+
[exports.TangramSourceNames.TILE]: `${"https://dalganmap.ru/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
|
|
24665
|
+
[exports.TangramSourceNames.NATURE_TILE]: `${"https://dalganmap.ru/api"}/tiles/get_nature_tile/{z}/{x}/{y}.mvt`,
|
|
24666
|
+
[exports.TangramSourceNames.MSK]: `${"http://89.108.118.23:3070"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
|
|
24667
24667
|
};
|
|
24668
24668
|
const getRoadPolyLayers = (source) => {
|
|
24669
24669
|
const layers = [];
|
|
@@ -25503,7 +25503,7 @@ const getCameraLayers = (source) => {
|
|
|
25503
25503
|
const sublayers = {};
|
|
25504
25504
|
const texture = `camera`;
|
|
25505
25505
|
textures[texture] = {
|
|
25506
|
-
url:
|
|
25506
|
+
url: getImageSrc(`msk/${texture}/${texture}_${cameraConfig.size}.${cameraConfig.extension}`),
|
|
25507
25507
|
filtering: 'mipmap',
|
|
25508
25508
|
sprites: {
|
|
25509
25509
|
base: [0, 0, cameraConfig.size, cameraConfig.size],
|
|
@@ -26356,9 +26356,8 @@ const getPillarLayers = (source) => {
|
|
|
26356
26356
|
const textures = {};
|
|
26357
26357
|
const sublayers = {};
|
|
26358
26358
|
const texture = `pillar`;
|
|
26359
|
-
const textureUrl = `${imagesPath}/msk/${texture}/${texture}_${pillarConfig.size}.${pillarConfig.extension}`;
|
|
26360
26359
|
textures[texture] = {
|
|
26361
|
-
url:
|
|
26360
|
+
url: getImageSrc(`msk/${texture}/${texture}_${pillarConfig.size}.${pillarConfig.extension}`),
|
|
26362
26361
|
filtering: 'mipmap',
|
|
26363
26362
|
sprites: {
|
|
26364
26363
|
base: [0, 0, pillarConfig.size, pillarConfig.size],
|
|
@@ -28519,7 +28518,7 @@ const getTrafficSignLayers = (source) => {
|
|
|
28519
28518
|
};
|
|
28520
28519
|
const getTrafficSignImgSrc = ({ type, number, }) => {
|
|
28521
28520
|
const width = trafficSignConfig.widths[type];
|
|
28522
|
-
const textureUrl =
|
|
28521
|
+
const textureUrl = getImageSrc(`msk/${trafficSignConfig.fileName}_${width}/${number}.${trafficSignConfig.extension}`);
|
|
28523
28522
|
return textureUrl;
|
|
28524
28523
|
};
|
|
28525
28524
|
const parseTrafficSignCSVFile = (data) => {
|
|
@@ -28549,9 +28548,8 @@ const getTrafficSignalLayers = (source) => {
|
|
|
28549
28548
|
const textures = {};
|
|
28550
28549
|
const sublayers = {};
|
|
28551
28550
|
const texture = `traffic_signal`;
|
|
28552
|
-
const textureUrl = `${imagesPath}/msk/${texture}/${texture}_${trafficSignalConfig.size}.${trafficSignalConfig.extension}`;
|
|
28553
28551
|
textures[texture] = {
|
|
28554
|
-
url:
|
|
28552
|
+
url: getImageSrc(`msk/${texture}/${texture}_${trafficSignalConfig.size}.${trafficSignalConfig.extension}`),
|
|
28555
28553
|
filtering: 'mipmap',
|
|
28556
28554
|
sprites: {
|
|
28557
28555
|
base: [0, 0, trafficSignalConfig.size, trafficSignalConfig.size],
|
|
@@ -31847,7 +31845,6 @@ exports.StoreContext = StoreContext;
|
|
|
31847
31845
|
exports.Tabs = Tabs;
|
|
31848
31846
|
exports.TextField = TextField;
|
|
31849
31847
|
exports.UploadButton = UploadButton;
|
|
31850
|
-
exports._backendUrl = _backendUrl;
|
|
31851
31848
|
exports._testApiKeys = _testApiKeys;
|
|
31852
31849
|
exports.alertStore = alertStore;
|
|
31853
31850
|
exports.allTrafficSigns = allTrafficSigns;
|
|
@@ -31875,6 +31872,7 @@ exports.getCoordinateByLatLng = getCoordinateByLatLng;
|
|
|
31875
31872
|
exports.getDefaultPOI = getDefaultPOI;
|
|
31876
31873
|
exports.getEntityNames = getEntityNames;
|
|
31877
31874
|
exports.getFacilityAreaLayers = getFacilityAreaLayers;
|
|
31875
|
+
exports.getImageSrc = getImageSrc;
|
|
31878
31876
|
exports.getLanduseAreaLayers = getLanduseAreaLayers;
|
|
31879
31877
|
exports.getLaneMarkingLineLayers = getLaneMarkingLineLayers;
|
|
31880
31878
|
exports.getLaneMarkingPolyLayers = getLaneMarkingPolyLayers;
|
|
@@ -31902,7 +31900,6 @@ exports.getUrlencodedBody = getUrlencodedBody;
|
|
|
31902
31900
|
exports.getValidLayer = getValidLayer;
|
|
31903
31901
|
exports.getWaterAreaLayers = getWaterAreaLayers;
|
|
31904
31902
|
exports.getWaterLinkLayers = getWaterLinkLayers;
|
|
31905
|
-
exports.imagesPath = imagesPath;
|
|
31906
31903
|
exports.loggerService = loggerService;
|
|
31907
31904
|
exports.modalStore = modalStore;
|
|
31908
31905
|
exports.modalStyle = modalStyle;
|