ninegrid2 6.453.0 → 6.454.0

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.
@@ -17877,8 +17877,11 @@ class ngExport extends HTMLElement
17877
17877
 
17878
17878
  exportExcel = () => {
17879
17879
  //console.log("export Excel...");
17880
- this.#dialog.showModal();
17881
- $(".title", this.#dialog).html("Export Excel");
17880
+ if (this.#owner.data.count() > 100) {
17881
+ this.#dialog.showModal();
17882
+ $(".title", this.#dialog).html("Export Excel");
17883
+ }
17884
+
17882
17885
  this.#excel.export();
17883
17886
  };
17884
17887
  }
@@ -17875,8 +17875,11 @@ class ngExport extends HTMLElement
17875
17875
 
17876
17876
  exportExcel = () => {
17877
17877
  //console.log("export Excel...");
17878
- this.#dialog.showModal();
17879
- $(".title", this.#dialog).html("Export Excel");
17878
+ if (this.#owner.data.count() > 100) {
17879
+ this.#dialog.showModal();
17880
+ $(".title", this.#dialog).html("Export Excel");
17881
+ }
17882
+
17880
17883
  this.#excel.export();
17881
17884
  };
17882
17885
  }
@@ -423,8 +423,11 @@ export class ngExport extends HTMLElement
423
423
 
424
424
  exportExcel = () => {
425
425
  //console.log("export Excel...");
426
- this.#dialog.showModal();
427
- $(".title", this.#dialog).html("Export Excel");
426
+ if (this.#owner.data.count() > 100) {
427
+ this.#dialog.showModal();
428
+ $(".title", this.#dialog).html("Export Excel");
429
+ }
430
+
428
431
  this.#excel.export();
429
432
  };
430
433
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.453.0",
4
+ "version": "6.454.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -423,8 +423,11 @@ export class ngExport extends HTMLElement
423
423
 
424
424
  exportExcel = () => {
425
425
  //console.log("export Excel...");
426
- this.#dialog.showModal();
427
- $(".title", this.#dialog).html("Export Excel");
426
+ if (this.#owner.data.count() > 100) {
427
+ this.#dialog.showModal();
428
+ $(".title", this.#dialog).html("Export Excel");
429
+ }
430
+
428
431
  this.#excel.export();
429
432
  };
430
433
  }