px-jspreadsheet-ce 0.0.18 → 0.0.20

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "version": "0.0.18",
8
+ "version": "0.0.20",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./src/index.js",
@@ -349,7 +349,7 @@ export const closeEditor = function (cell, save) {
349
349
  }
350
350
 
351
351
  // Ignore changes if the value is the same
352
- if (obj.options.data[y][x] == value) {
352
+ if (obj.options.data[y][x] === value) {
353
353
  cell.innerHTML = obj.edition[1];
354
354
  } else {
355
355
  obj.setValue(cell, value); // update cell
@@ -523,7 +523,7 @@ export const createCell = function (i, j, value) {
523
523
  // Wrap option
524
524
  if ((!config || config.wordWrap != false) && (obj.options.wordWrap == true || (config && config.wordWrap == true) || td.innerHTML.length > 200)) {
525
525
  td.style.overflowWrap = 'break-word';
526
- td.style.whiteSpace = 'normal';
526
+ td.style.whiteSpace = 'pre-wrap';
527
527
  }
528
528
 
529
529
  // Overflow
package/src/utils/rows.js CHANGED
@@ -622,3 +622,9 @@ export const setRowData = function (rowNumber, data, force) {
622
622
  }
623
623
  }
624
624
  };
625
+
626
+ export const getRowLength = function () {
627
+ const obj = this;
628
+
629
+ return obj.options.data.length;
630
+ };
@@ -640,6 +640,8 @@ export const deleteWorksheet = function (position) {
640
640
  app.unmount();
641
641
  });
642
642
 
643
+ obj.vueApps = [];
644
+
643
645
  obj.content.onscroll = null;
644
646
  obj.content.onwheel = null;
645
647
  obj.searchInput.onfocus = null;