@syncfusion/ej2-maps 20.3.47 → 20.3.49

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.47
3
+ * version : 20.3.49
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-maps@*",
3
- "_id": "@syncfusion/ej2-maps@16.39.2",
3
+ "_id": "@syncfusion/ej2-maps@20.3.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-wd2+ymrFzw6zBd2nH3Zl4MtTYFgp0nzEDl427hMvgwzYVOghAc/GW4NG1LpTGHtUDswjvAaYBFbY3057/sRhmA==",
5
+ "_integrity": "sha512-eM35NIkNhSwH73EarJVxZ5M1ED2F/t7BB23UD1Tgy9/ynEFhpFRlmRzT/YeiqlXgXJZLVW5DdwoUsc2w89TMBg==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-maps",
24
24
  "/@syncfusion/ej2-vue-maps"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-16.39.2.tgz",
27
- "_shasum": "3a372223d810b5637078aa09e45b00a5298c344d",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.3.47.tgz",
27
+ "_shasum": "4368a4fe57801d7161bf61ac79f29fd3f05156ea",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.3.47",
39
- "@syncfusion/ej2-buttons": "~20.3.47",
38
+ "@syncfusion/ej2-base": "~20.3.49",
39
+ "@syncfusion/ej2-buttons": "~20.3.49",
40
40
  "@syncfusion/ej2-compression": "~20.3.47",
41
41
  "@syncfusion/ej2-data": "~20.3.47",
42
42
  "@syncfusion/ej2-file-utils": "~20.3.47",
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "20.3.47",
83
+ "version": "20.3.49",
84
84
  "sideEffects": false
85
85
  }
@@ -19,10 +19,10 @@ var DataLabel = /** @class */ (function () {
19
19
  for (var i = 0; i < dataSource.length; i++) {
20
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
21
  var data = dataSource[i];
22
- var dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) ?
23
- data[shapeDataPath].toLowerCase() : data[shapeDataPath];
24
- shapeName = !isNullOrUndefined(shapeName) ? shapeName.toString() : shapeName;
25
- shapeNameValue = !isNullOrUndefined(shapeName) ? shapeName.toLowerCase() : shapeName;
22
+ var dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) &&
23
+ typeof data[shapeDataPath] === 'string' ? data[shapeDataPath].toLowerCase() : data[shapeDataPath];
24
+ shapeName = !isNullOrUndefined(shapeName) && typeof shapeName === 'string' ? shapeName.toString() : shapeName;
25
+ shapeNameValue = !isNullOrUndefined(shapeName) && typeof shapeName === 'string' ? shapeName.toLowerCase() : shapeName;
26
26
  if ((dataShapePathValue) === shapeNameValue) {
27
27
  text = data;
28
28
  break;
@@ -2090,10 +2090,11 @@ var Legend = /** @class */ (function () {
2090
2090
  var shapeData = layerData[i];
2091
2091
  var dataPathValue = (dataPath.indexOf('.') > -1) ? getValueFromObject(data, dataPath) : data[dataPath];
2092
2092
  var shapePath = checkPropertyPath(data[dataPath], shapePropertyPath, shapeData['properties']);
2093
- var dataPathValueCase = !isNullOrUndefined(dataPathValue)
2094
- ? dataPathValue.toLowerCase() : dataPathValue;
2093
+ var dataPathValueCase = !isNullOrUndefined(dataPathValue) &&
2094
+ typeof dataPathValue === 'string' ? dataPathValue.toLowerCase() : dataPathValue;
2095
2095
  var shapeDataValueCase = !isNullOrUndefined(shapeData['properties'][shapePath])
2096
- && isNaN(shapeData['properties'][shapePath]) ? shapeData['properties'][shapePath].toLowerCase() : shapeData['properties'][shapePath];
2096
+ && isNaN(shapeData['properties'][shapePath]) ?
2097
+ shapeData['properties'][shapePath].toLowerCase() : shapeData['properties'][shapePath];
2097
2098
  if (shapeDataValueCase === dataPathValueCase) {
2098
2099
  if (shapeData['geometry']['type'] != 'MultiPoint') {
2099
2100
  legendData.push({
package/src/maps/maps.js CHANGED
@@ -1538,7 +1538,7 @@ var Maps = /** @class */ (function (_super) {
1538
1538
  var propertyName_1 = !isNullOrUndefined(shapeData[i]['properties'][popertyNameArray[j]])
1539
1539
  && isNaN(shapeData[i]['properties'][popertyNameArray[j]]) ?
1540
1540
  shapeData[i]['properties'][popertyNameArray[j]].toLowerCase() : shapeData[i]['properties'][popertyNameArray[j]];
1541
- var shapeName = !isNullOrUndefined(name) ? name.toLowerCase() : name;
1541
+ var shapeName = !isNullOrUndefined(name) && typeof name === 'string' ? name.toLowerCase() : name;
1542
1542
  var k = void 0;
1543
1543
  if (propertyName_1 === shapeName) {
1544
1544
  if (!isNullOrUndefined(this.layers[layerIndex].shapeSettings.colorValuePath)) {
@@ -1709,7 +1709,7 @@ export function checkShapeDataFields(dataSource, properties, dataPath, propertyP
1709
1709
  dataSource[i][dataPath]);
1710
1710
  var shapePath = checkPropertyPath(shapeDataPath, propertyPath, properties);
1711
1711
  var shapeDataPathValue = !isNullOrUndefined(shapeDataPath) && isNaN(properties[shapePath])
1712
- ? shapeDataPath.toLowerCase() : shapeDataPath;
1712
+ ? (typeof shapeDataPath === 'string' ? shapeDataPath.toLowerCase() : shapeDataPath) : shapeDataPath;
1713
1713
  var propertiesShapePathValue = !isNullOrUndefined(properties[shapePath]) && isNaN(properties[shapePath])
1714
1714
  ? properties[shapePath].toLowerCase() : properties[shapePath];
1715
1715
  if (shapeDataPathValue === propertiesShapePathValue) {
@@ -1734,7 +1734,8 @@ export function checkPropertyPath(shapeData, shapePropertyPath, shape) {
1734
1734
  var properties = (Object.prototype.toString.call(shapePropertyPath) === '[object Array]' ?
1735
1735
  shapePropertyPath : [shapePropertyPath]);
1736
1736
  for (var i = 0; i < properties.length; i++) {
1737
- var shapeDataValue = !isNullOrUndefined(shapeData) ? shapeData.toLowerCase() : shapeData;
1737
+ var shapeDataValue = !isNullOrUndefined(shapeData) && typeof shapeData === 'string' ?
1738
+ shapeData.toLowerCase() : shapeData;
1738
1739
  var shapePropertiesValue = !isNullOrUndefined(shape[properties[i]])
1739
1740
  && isNaN(shape[properties[i]])
1740
1741
  ? shape[properties[i]].toLowerCase() : shape[properties[i]];