@progress/kendo-spreadsheet-common 1.2.5-develop.4 → 1.2.6-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 +11 -2
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index-esm.js
CHANGED
|
@@ -1183,7 +1183,7 @@ function getter(field, safe) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
const fields = [];
|
|
1186
|
-
field.replace(FIELD_REGEX, (_, index, indexAccessor, field) => {
|
|
1186
|
+
limitString(field, 1000).replace(FIELD_REGEX, (_, index, indexAccessor, field) => {
|
|
1187
1187
|
fields.push(isPresent(index) ? index : indexAccessor || field);
|
|
1188
1188
|
return undefined;
|
|
1189
1189
|
});
|
|
@@ -1363,6 +1363,14 @@ const isPlainObject = function(obj) {
|
|
|
1363
1363
|
return proto === null || proto.constructor === Object;
|
|
1364
1364
|
};
|
|
1365
1365
|
|
|
1366
|
+
const limitString = function(strValue, max) {
|
|
1367
|
+
if (typeof strValue === 'string' && strValue.length > max) {
|
|
1368
|
+
return strValue.substring(0, max);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
return strValue;
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1366
1374
|
class CalcError {
|
|
1367
1375
|
|
|
1368
1376
|
constructor(code) {
|
|
@@ -8153,6 +8161,7 @@ function compileValidation(sheet, row, col, validation) {
|
|
|
8153
8161
|
// course, we'd need to do the reverse transformation too on serialization for OOXML
|
|
8154
8162
|
// (see how _matrix(...) is unwrapped below in `toJSON`).
|
|
8155
8163
|
if (validation.from.indexOf("{") > -1) {
|
|
8164
|
+
validation.from = limitString(validation.from, 1000);
|
|
8156
8165
|
validation.from = validation.from.replace(/\"/g,"").replace(/^\s*\{\s*/,"\"").replace(/\s*\}\s*$/, "\"");
|
|
8157
8166
|
}
|
|
8158
8167
|
validation.from = `_matrix(${validation.from})`;
|
|
@@ -18855,7 +18864,7 @@ class View extends Observable {
|
|
|
18855
18864
|
|
|
18856
18865
|
View.classNames = viewClassNames;
|
|
18857
18866
|
|
|
18858
|
-
const reTable = /<table[^>]
|
|
18867
|
+
const reTable = /<table [^>]*>/gmi;
|
|
18859
18868
|
const tables = contentStr => ((contentStr || '').match(reTable) || []);
|
|
18860
18869
|
|
|
18861
18870
|
class Clipboard {
|
package/dist/index.js
CHANGED
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
const fields = [];
|
|
1187
|
-
field.replace(FIELD_REGEX, (_, index, indexAccessor, field) => {
|
|
1187
|
+
limitString(field, 1000).replace(FIELD_REGEX, (_, index, indexAccessor, field) => {
|
|
1188
1188
|
fields.push(isPresent(index) ? index : indexAccessor || field);
|
|
1189
1189
|
return undefined;
|
|
1190
1190
|
});
|
|
@@ -1364,6 +1364,14 @@
|
|
|
1364
1364
|
return proto === null || proto.constructor === Object;
|
|
1365
1365
|
};
|
|
1366
1366
|
|
|
1367
|
+
const limitString = function(strValue, max) {
|
|
1368
|
+
if (typeof strValue === 'string' && strValue.length > max) {
|
|
1369
|
+
return strValue.substring(0, max);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
return strValue;
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1367
1375
|
class CalcError {
|
|
1368
1376
|
|
|
1369
1377
|
constructor(code) {
|
|
@@ -8154,6 +8162,7 @@
|
|
|
8154
8162
|
// course, we'd need to do the reverse transformation too on serialization for OOXML
|
|
8155
8163
|
// (see how _matrix(...) is unwrapped below in `toJSON`).
|
|
8156
8164
|
if (validation.from.indexOf("{") > -1) {
|
|
8165
|
+
validation.from = limitString(validation.from, 1000);
|
|
8157
8166
|
validation.from = validation.from.replace(/\"/g,"").replace(/^\s*\{\s*/,"\"").replace(/\s*\}\s*$/, "\"");
|
|
8158
8167
|
}
|
|
8159
8168
|
validation.from = `_matrix(${validation.from})`;
|
|
@@ -18856,7 +18865,7 @@
|
|
|
18856
18865
|
|
|
18857
18866
|
View.classNames = viewClassNames;
|
|
18858
18867
|
|
|
18859
|
-
const reTable = /<table[^>]
|
|
18868
|
+
const reTable = /<table [^>]*>/gmi;
|
|
18860
18869
|
const tables = contentStr => ((contentStr || '').match(reTable) || []);
|
|
18861
18870
|
|
|
18862
18871
|
class Clipboard {
|