@progress/kendo-spreadsheet-common 1.2.3 → 1.2.4-develop.1
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/index-esm.js +15 -0
- package/dist/index.js +15 -0
- package/package.json +1 -1
package/dist/index-esm.js
CHANGED
|
@@ -1726,6 +1726,10 @@ class Matrix {
|
|
|
1726
1726
|
return new CalcError("N/A");
|
|
1727
1727
|
}
|
|
1728
1728
|
set(row, col, data) {
|
|
1729
|
+
if (col === '__proto__' || col === 'constructor' || col === 'prototype'
|
|
1730
|
+
|| row === '__proto__' || row === 'constructor' || row === 'prototype') {
|
|
1731
|
+
return;
|
|
1732
|
+
}
|
|
1729
1733
|
var line = this.data[row];
|
|
1730
1734
|
if (line == null) {
|
|
1731
1735
|
line = this.data[row] = [];
|
|
@@ -15804,7 +15808,15 @@ function Borders() {
|
|
|
15804
15808
|
cell.bottom, cell.left, cell.right);
|
|
15805
15809
|
}
|
|
15806
15810
|
}
|
|
15811
|
+
|
|
15812
|
+
function isUnwantedProp(propName){
|
|
15813
|
+
return propName === '__proto__' || propName === 'constructor' || propName === 'prototype'
|
|
15814
|
+
}
|
|
15815
|
+
|
|
15807
15816
|
function addVert(row, col, border, x, top, bottom) {
|
|
15817
|
+
if (isUnwantedProp(row) || isUnwantedProp(col)) {
|
|
15818
|
+
return;
|
|
15819
|
+
}
|
|
15808
15820
|
let a = vert[col] || (vert[col] = new Container());
|
|
15809
15821
|
let prev = row > 0 && a[row - 1];
|
|
15810
15822
|
if (prev && sameBorder(prev, border)) {
|
|
@@ -15821,6 +15833,9 @@ function Borders() {
|
|
|
15821
15833
|
}
|
|
15822
15834
|
}
|
|
15823
15835
|
function addHoriz(row, col, border, y, left, right) {
|
|
15836
|
+
if (isUnwantedProp(row) || isUnwantedProp(col)) {
|
|
15837
|
+
return;
|
|
15838
|
+
}
|
|
15824
15839
|
let a = horiz[row] || (horiz[row] = new Container());
|
|
15825
15840
|
let prev = col > 0 && a[col - 1];
|
|
15826
15841
|
if (prev && sameBorder(prev, border)) {
|
package/dist/index.js
CHANGED
|
@@ -1727,6 +1727,10 @@
|
|
|
1727
1727
|
return new CalcError("N/A");
|
|
1728
1728
|
}
|
|
1729
1729
|
set(row, col, data) {
|
|
1730
|
+
if (col === '__proto__' || col === 'constructor' || col === 'prototype'
|
|
1731
|
+
|| row === '__proto__' || row === 'constructor' || row === 'prototype') {
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1730
1734
|
var line = this.data[row];
|
|
1731
1735
|
if (line == null) {
|
|
1732
1736
|
line = this.data[row] = [];
|
|
@@ -15805,7 +15809,15 @@
|
|
|
15805
15809
|
cell.bottom, cell.left, cell.right);
|
|
15806
15810
|
}
|
|
15807
15811
|
}
|
|
15812
|
+
|
|
15813
|
+
function isUnwantedProp(propName){
|
|
15814
|
+
return propName === '__proto__' || propName === 'constructor' || propName === 'prototype'
|
|
15815
|
+
}
|
|
15816
|
+
|
|
15808
15817
|
function addVert(row, col, border, x, top, bottom) {
|
|
15818
|
+
if (isUnwantedProp(row) || isUnwantedProp(col)) {
|
|
15819
|
+
return;
|
|
15820
|
+
}
|
|
15809
15821
|
let a = vert[col] || (vert[col] = new Container());
|
|
15810
15822
|
let prev = row > 0 && a[row - 1];
|
|
15811
15823
|
if (prev && sameBorder(prev, border)) {
|
|
@@ -15822,6 +15834,9 @@
|
|
|
15822
15834
|
}
|
|
15823
15835
|
}
|
|
15824
15836
|
function addHoriz(row, col, border, y, left, right) {
|
|
15837
|
+
if (isUnwantedProp(row) || isUnwantedProp(col)) {
|
|
15838
|
+
return;
|
|
15839
|
+
}
|
|
15825
15840
|
let a = horiz[row] || (horiz[row] = new Container());
|
|
15826
15841
|
let prev = col > 0 && a[col - 1];
|
|
15827
15842
|
if (prev && sameBorder(prev, border)) {
|