@fluxhub/fluxhub-lib 10.0.10 → 10.0.12

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.
@@ -4901,6 +4901,7 @@
4901
4901
  this.dclicked = new i0.EventEmitter();
4902
4902
  this.columndclicked = new i0.EventEmitter();
4903
4903
  this.cell_clicked = new i0.EventEmitter();
4904
+ this.custom_export = false;
4904
4905
  this.toolbar_type = "NONE";
4905
4906
  this.toolbar_wkfapp = null;
4906
4907
  this.toolbar_custom_commands = [];
@@ -5842,6 +5843,10 @@
5842
5843
  FHGridComponent.prototype.export_excel = function (format) {
5843
5844
  var _this = this;
5844
5845
  if (format === void 0) { format = "xlsx"; }
5846
+ if (this.custom_export) {
5847
+ this.command.emit({ cmd: "export_excel", v: format });
5848
+ return;
5849
+ }
5845
5850
  if (this.num_r > 15000) {
5846
5851
  this._toast.error("Massimo 15000 elementi esportabili");
5847
5852
  return;
@@ -5933,7 +5938,10 @@
5933
5938
  });
5934
5939
  };
5935
5940
  FHGridComponent.prototype.print = function () {
5936
- this.export_excel("pdf");
5941
+ if (this.custom_export)
5942
+ this.command.emit({ cmd: "print_pdf" });
5943
+ else
5944
+ this.export_excel("pdf");
5937
5945
  };
5938
5946
  FHGridComponent.prototype.init_conf = function () {
5939
5947
  // console.log(" init_conf()");
@@ -6411,6 +6419,7 @@
6411
6419
  dclicked: [{ type: i0.Output }],
6412
6420
  columndclicked: [{ type: i0.Output }],
6413
6421
  cell_clicked: [{ type: i0.Output }],
6422
+ custom_export: [{ type: i0.Input }],
6414
6423
  toolbar_type: [{ type: i0.Input }],
6415
6424
  toolbar_wkfapp: [{ type: i0.Input }],
6416
6425
  toolbar_custom_commands: [{ type: i0.Input }],