@progress/kendo-spreadsheet-common 1.2.6-develop.3 → 1.2.7-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 +6 -6
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index-esm.js
CHANGED
|
@@ -21,7 +21,7 @@ function displaySheet(sheet) {
|
|
|
21
21
|
if (/^[a-z_][a-z0-9_]*$/i.test(sheet)) {
|
|
22
22
|
return sheet;
|
|
23
23
|
}
|
|
24
|
-
return "'" + sheet.replace(/\x27/g, "\\'") + "'";
|
|
24
|
+
return "'" + sheet.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
|
|
25
25
|
}
|
|
26
26
|
function displayRef(sheet, row, col, rel) {
|
|
27
27
|
let aa = "";
|
|
@@ -5721,7 +5721,7 @@ class FormulaContext {
|
|
|
5721
5721
|
if (/^[a-z_][a-z0-9_]*$/i.test(val)) {
|
|
5722
5722
|
return val;
|
|
5723
5723
|
}
|
|
5724
|
-
return "'" + val.replace(/\x27/g, "\\'") + "'";
|
|
5724
|
+
return "'" + val.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
5727
|
|
|
@@ -15357,8 +15357,8 @@ function drawLayout(sheet, layout, group, options) {
|
|
|
15357
15357
|
content.append(bordersGroup);
|
|
15358
15358
|
|
|
15359
15359
|
drawings.forEach(function(d) {
|
|
15360
|
-
let
|
|
15361
|
-
let image =
|
|
15360
|
+
let currentDrawing = d.drawing;
|
|
15361
|
+
let image = currentDrawing.image;
|
|
15362
15362
|
if (image != null) {
|
|
15363
15363
|
let box = d.box;
|
|
15364
15364
|
let url = sheet._workbook.imageUrl(image);
|
|
@@ -15366,7 +15366,7 @@ function drawLayout(sheet, layout, group, options) {
|
|
|
15366
15366
|
new drawing.Image(url, new geometry.Rect(
|
|
15367
15367
|
[ box.left, box.top ],
|
|
15368
15368
|
[ box.width, box.height ]
|
|
15369
|
-
)).opacity(
|
|
15369
|
+
)).opacity(currentDrawing.opacity)
|
|
15370
15370
|
);
|
|
15371
15371
|
}
|
|
15372
15372
|
});
|
|
@@ -21022,7 +21022,7 @@ async function readWorkbook(zip, workbook, progress) {
|
|
|
21022
21022
|
let name = attrs.name;
|
|
21023
21023
|
if (name !== "_xlnm._FilterDatabase") {
|
|
21024
21024
|
if (sheet) {
|
|
21025
|
-
name = "'" + sheet.replace(/\'/g, "\\'") + "'!" + name;
|
|
21025
|
+
name = "'" + sheet.replace(/\\/g, "\\\\").replace(/\'/g, "\\'") + "'!" + name;
|
|
21026
21026
|
}
|
|
21027
21027
|
withErrorLog(sheet, null, function() {
|
|
21028
21028
|
workbook.defineName(name, text, bool(attrs.hidden));
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
if (/^[a-z_][a-z0-9_]*$/i.test(sheet)) {
|
|
23
23
|
return sheet;
|
|
24
24
|
}
|
|
25
|
-
return "'" + sheet.replace(/\x27/g, "\\'") + "'";
|
|
25
|
+
return "'" + sheet.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
|
|
26
26
|
}
|
|
27
27
|
function displayRef(sheet, row, col, rel) {
|
|
28
28
|
let aa = "";
|
|
@@ -5722,7 +5722,7 @@
|
|
|
5722
5722
|
if (/^[a-z_][a-z0-9_]*$/i.test(val)) {
|
|
5723
5723
|
return val;
|
|
5724
5724
|
}
|
|
5725
|
-
return "'" + val.replace(/\x27/g, "\\'") + "'";
|
|
5725
|
+
return "'" + val.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
|
|
5726
5726
|
}
|
|
5727
5727
|
}
|
|
5728
5728
|
|
|
@@ -15358,16 +15358,16 @@
|
|
|
15358
15358
|
content.append(bordersGroup);
|
|
15359
15359
|
|
|
15360
15360
|
drawings.forEach(function(d) {
|
|
15361
|
-
let
|
|
15362
|
-
let image =
|
|
15361
|
+
let currentDrawing = d.drawing;
|
|
15362
|
+
let image = currentDrawing.image;
|
|
15363
15363
|
if (image != null) {
|
|
15364
15364
|
let box = d.box;
|
|
15365
15365
|
let url = sheet._workbook.imageUrl(image);
|
|
15366
15366
|
content.append(
|
|
15367
|
-
new drawing.Image(url, new kendoDrawing.geometry.Rect(
|
|
15367
|
+
new kendoDrawing.drawing.Image(url, new kendoDrawing.geometry.Rect(
|
|
15368
15368
|
[ box.left, box.top ],
|
|
15369
15369
|
[ box.width, box.height ]
|
|
15370
|
-
)).opacity(
|
|
15370
|
+
)).opacity(currentDrawing.opacity)
|
|
15371
15371
|
);
|
|
15372
15372
|
}
|
|
15373
15373
|
});
|
|
@@ -21023,7 +21023,7 @@
|
|
|
21023
21023
|
let name = attrs.name;
|
|
21024
21024
|
if (name !== "_xlnm._FilterDatabase") {
|
|
21025
21025
|
if (sheet) {
|
|
21026
|
-
name = "'" + sheet.replace(/\'/g, "\\'") + "'!" + name;
|
|
21026
|
+
name = "'" + sheet.replace(/\\/g, "\\\\").replace(/\'/g, "\\'") + "'!" + name;
|
|
21027
21027
|
}
|
|
21028
21028
|
withErrorLog(sheet, null, function() {
|
|
21029
21029
|
workbook.defineName(name, text, bool(attrs.hidden));
|