@progress/kendo-spreadsheet-common 1.2.9-develop.1 → 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"];
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"];
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.9-develop.1",
4
+ "version": "1.2.9-develop.2",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],