@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.
@@ -7320,6 +7320,7 @@ class FHGridComponent {
7320
7320
  this.dclicked = new EventEmitter();
7321
7321
  this.columndclicked = new EventEmitter();
7322
7322
  this.cell_clicked = new EventEmitter();
7323
+ this.custom_export = false;
7323
7324
  this.toolbar_type = "NONE";
7324
7325
  this.toolbar_wkfapp = null;
7325
7326
  this.toolbar_custom_commands = [];
@@ -8249,6 +8250,10 @@ class FHGridComponent {
8249
8250
  this.show_pulisci_filtri = false;
8250
8251
  }
8251
8252
  export_excel(format = "xlsx") {
8253
+ if (this.custom_export) {
8254
+ this.command.emit({ cmd: "export_excel", v: format });
8255
+ return;
8256
+ }
8252
8257
  if (this.num_r > 15000) {
8253
8258
  this._toast.error("Massimo 15000 elementi esportabili");
8254
8259
  return;
@@ -8340,7 +8345,10 @@ class FHGridComponent {
8340
8345
  });
8341
8346
  }
8342
8347
  print() {
8343
- this.export_excel("pdf");
8348
+ if (this.custom_export)
8349
+ this.command.emit({ cmd: "print_pdf" });
8350
+ else
8351
+ this.export_excel("pdf");
8344
8352
  }
8345
8353
  init_conf() {
8346
8354
  // console.log(" init_conf()");
@@ -8806,6 +8814,7 @@ FHGridComponent.propDecorators = {
8806
8814
  dclicked: [{ type: Output }],
8807
8815
  columndclicked: [{ type: Output }],
8808
8816
  cell_clicked: [{ type: Output }],
8817
+ custom_export: [{ type: Input }],
8809
8818
  toolbar_type: [{ type: Input }],
8810
8819
  toolbar_wkfapp: [{ type: Input }],
8811
8820
  toolbar_custom_commands: [{ type: Input }],