@progress/kendo-spreadsheet-common 1.2.8 → 1.2.9-develop.2

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 CHANGED
@@ -18859,6 +18859,16 @@ function stripStyle(style) {
18859
18859
  return style.replace(/^-(?:ms|moz|webkit)-/, "");
18860
18860
  }
18861
18861
 
18862
+ function textAlign(align) {
18863
+ switch (align) {
18864
+ case "start":
18865
+ return "left";
18866
+ case "end":
18867
+ return "right";
18868
+ }
18869
+ return align;
18870
+ }
18871
+
18862
18872
  function borderObject(element, styles) {
18863
18873
  // MS Office uses class name and writes borders in the <style> section, so for it we need to
18864
18874
  // use the computed styles. For Google Sheets / LibreOffice, however, the inline styles are
@@ -18950,7 +18960,7 @@ function cellState(row, col, element, hBorders, vBorders, program) {
18950
18960
  state.background = styles["backgroundColor"];
18951
18961
  }
18952
18962
  if (stripStyle(styles["textAlign"]) !== "right") {
18953
- state.textAlign = stripStyle(styles["textAlign"]);
18963
+ state.textAlign = textAlign(stripStyle(styles["textAlign"]));
18954
18964
  }
18955
18965
  if (styles["verticalAlign"] !== "middle") {
18956
18966
  state.verticalAlign = styles["verticalAlign"];
@@ -22938,9 +22948,13 @@ class Workbook extends Observable {
22938
22948
  let data = self.toJSON();
22939
22949
 
22940
22950
  if (!options.applyProtection) {
22941
- data.sheets.forEach(({ rows }) =>
22942
- rows.forEach(({ cells }) =>
22943
- cells.forEach(cell => delete cell.enable)));
22951
+ data.sheets.forEach(({ rows }) => {
22952
+ rows.forEach(({ cells }) => {
22953
+ if (rows.cells) {
22954
+ cells.forEach(cell => delete cell.enable);
22955
+ }
22956
+ });
22957
+ });
22944
22958
  }
22945
22959
 
22946
22960
  if (self.trigger("excelExport", { workbook: data })) {
package/dist/index.js CHANGED
@@ -18860,6 +18860,16 @@
18860
18860
  return style.replace(/^-(?:ms|moz|webkit)-/, "");
18861
18861
  }
18862
18862
 
18863
+ function textAlign(align) {
18864
+ switch (align) {
18865
+ case "start":
18866
+ return "left";
18867
+ case "end":
18868
+ return "right";
18869
+ }
18870
+ return align;
18871
+ }
18872
+
18863
18873
  function borderObject(element, styles) {
18864
18874
  // MS Office uses class name and writes borders in the <style> section, so for it we need to
18865
18875
  // use the computed styles. For Google Sheets / LibreOffice, however, the inline styles are
@@ -18951,7 +18961,7 @@
18951
18961
  state.background = styles["backgroundColor"];
18952
18962
  }
18953
18963
  if (stripStyle(styles["textAlign"]) !== "right") {
18954
- state.textAlign = stripStyle(styles["textAlign"]);
18964
+ state.textAlign = textAlign(stripStyle(styles["textAlign"]));
18955
18965
  }
18956
18966
  if (styles["verticalAlign"] !== "middle") {
18957
18967
  state.verticalAlign = styles["verticalAlign"];
@@ -22939,9 +22949,13 @@
22939
22949
  let data = self.toJSON();
22940
22950
 
22941
22951
  if (!options.applyProtection) {
22942
- data.sheets.forEach(({ rows }) =>
22943
- rows.forEach(({ cells }) =>
22944
- cells.forEach(cell => delete cell.enable)));
22952
+ data.sheets.forEach(({ rows }) => {
22953
+ rows.forEach(({ cells }) => {
22954
+ if (rows.cells) {
22955
+ cells.forEach(cell => delete cell.enable);
22956
+ }
22957
+ });
22958
+ });
22945
22959
  }
22946
22960
 
22947
22961
  if (self.trigger("excelExport", { workbook: data })) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-spreadsheet-common",
3
3
  "description": "Kendo UI platform-independent Spreadsheet library",
4
- "version": "1.2.8",
4
+ "version": "1.2.9-develop.2",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],
@@ -17,8 +17,13 @@
17
17
  "lint": "eslint src",
18
18
  "lintfix": "eslint src --fix",
19
19
  "test": "jest",
20
- "e2e": "jest --config ./jest.e2e.config.json",
21
- "e2e:visual": "jest --config ./jest.e2e.visual.config.json",
20
+ "serve": "http-server . -p 8765 -c-1 --cors -a 127.0.0.1",
21
+ "e2e": "node tools/run-e2e-tests.js",
22
+ "e2e:functional": "TEST_FILE=e2e/functional.test.js node tools/run-e2e-tests.js",
23
+ "e2e:kb-interaction": "TEST_FILE=e2e/kb-interaction.test.js node tools/run-e2e-tests.js",
24
+ "e2e:objectat": "TEST_FILE=e2e/objectat.test.js node tools/run-e2e-tests.js",
25
+ "e2e:smoke": "TEST_FILE=e2e/smoke.test.js node tools/run-e2e-tests.js",
26
+ "e2e:visual": "node tools/run-e2e-tests.js jest.e2e.visual.config.json",
22
27
  "prepare": "husky install"
23
28
  },
24
29
  "peerDependencies": {
@@ -31,7 +36,7 @@
31
36
  "@babel/eslint-parser": "^7.27.0",
32
37
  "@commitlint/cli": "^17.3.0",
33
38
  "@commitlint/config-conventional": "^17.3.0",
34
- "@progress/kendo-e2e": "^4.0.0",
39
+ "@progress/kendo-e2e": "^4.14.0",
35
40
  "@progress/kendo-intl": "^3.1.1",
36
41
  "@telerik/dx-metrics": "^2.1.8",
37
42
  "@types/jest": "^29.0.0",
@@ -40,6 +45,7 @@
40
45
  "escodegen": "^2.1.0",
41
46
  "eslint": "^9.3.0",
42
47
  "eslint-plugin-jest": "^28.11.0",
48
+ "http-server": "^14.1.1",
43
49
  "husky": "^8.0.2",
44
50
  "jest-cli": "^29.0.0",
45
51
  "jest-environment-jsdom": "^29.5.0",