@progress/kendo-spreadsheet-common 1.0.0-develop.4 → 1.0.0-develop.5

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
@@ -23161,6 +23161,14 @@ class View extends Observable {
23161
23161
 
23162
23162
  destroy() {
23163
23163
  this.unbind();
23164
+
23165
+ [this.tree, this.clipboardContents].forEach(el => {
23166
+ while (el && el.root && el.root.lastChild) {
23167
+ el.root.removeChild(el.root.lastChild);
23168
+ }
23169
+ });
23170
+ this.tree = this.clipboardContents = null;
23171
+
23164
23172
  // this._dialogs.forEach(function(dialog) {
23165
23173
  // dialog.destroy();
23166
23174
  // });
@@ -27406,8 +27414,10 @@ class Workbook extends Observable {
27406
27414
  }
27407
27415
 
27408
27416
  fromFile(file) {
27409
- this._clearSheets();
27410
- readExcel(file, this);
27417
+ if (file && !this.trigger("excelImport", { file })) {
27418
+ this._clearSheets();
27419
+ readExcel(file, this);
27420
+ }
27411
27421
  }
27412
27422
 
27413
27423
  saveAsExcel(options) {
package/dist/index.js CHANGED
@@ -23161,6 +23161,14 @@
23161
23161
 
23162
23162
  destroy() {
23163
23163
  this.unbind();
23164
+
23165
+ [this.tree, this.clipboardContents].forEach(el => {
23166
+ while (el && el.root && el.root.lastChild) {
23167
+ el.root.removeChild(el.root.lastChild);
23168
+ }
23169
+ });
23170
+ this.tree = this.clipboardContents = null;
23171
+
23164
23172
  // this._dialogs.forEach(function(dialog) {
23165
23173
  // dialog.destroy();
23166
23174
  // });
@@ -27406,8 +27414,10 @@
27406
27414
  }
27407
27415
 
27408
27416
  fromFile(file) {
27409
- this._clearSheets();
27410
- readExcel(file, this);
27417
+ if (file && !this.trigger("excelImport", { file })) {
27418
+ this._clearSheets();
27419
+ readExcel(file, this);
27420
+ }
27411
27421
  }
27412
27422
 
27413
27423
  saveAsExcel(options) {
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.0.0-develop.4",
4
+ "version": "1.0.0-develop.5",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],