@fluxhub/fluxhub-lib 19.0.141 → 19.0.143

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.
@@ -9450,6 +9450,7 @@ class FHGridComponent {
9450
9450
  p_fi = {};
9451
9451
  dataSource = {
9452
9452
  getRows: (params) => {
9453
+ console.log('🔵 getRows chiamato - startRow:', params.request.startRow, 'endRow:', params.request.endRow);
9453
9454
  this.num_r = -1;
9454
9455
  this.m_appService.start();
9455
9456
  let p = { kd: this.grid_config_key };
@@ -9488,11 +9489,13 @@ class FHGridComponent {
9488
9489
  this._gridservice
9489
9490
  .doQuery(p, true, this.m_appService.API_ENDPOINT + this.service)
9490
9491
  .subscribe((data) => {
9492
+ console.log('🟢 Risposta ricevuta - count:', data?.count, 'result_data.length:', data?.result_data?.length);
9491
9493
  let ok_op = false;
9492
9494
  if (data != null)
9493
9495
  if (data.result_msg == 'OK') {
9494
9496
  ok_op = true;
9495
9497
  this.rowData = data.result_data;
9498
+ console.log('🟡 Chiamata params.success con rowCount:', data.count, 'rowData.length:', data.result_data.length);
9496
9499
  params.success({ rowData: data.result_data, rowCount: data.count });
9497
9500
  this.b_init = true;
9498
9501
  this.myData = data.result_data.slice();
@@ -10105,6 +10108,7 @@ class FHGridComponent {
10105
10108
  // return sortData(sortModel, filterData(filterModel, allOfTheData))
10106
10109
  }
10107
10110
  ref_dt() {
10111
+ console.log('🔴 ref_dt chiamato - resetting datasource');
10108
10112
  if (this.gridOptions == null)
10109
10113
  setTimeout(() => {
10110
10114
  this.ref_dt();
@@ -33907,7 +33911,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
33907
33911
  class FHWorkflowHeaderBar {
33908
33912
  m_appService;
33909
33913
  _trs;
33910
- custom_commands = [];
33914
+ _custom_commands = [];
33915
+ set custom_commands(value) {
33916
+ this._custom_commands = value;
33917
+ this.set_custom_buttons();
33918
+ }
33919
+ get custom_commands() {
33920
+ return this._custom_commands;
33921
+ }
33911
33922
  dt_agg = null;
33912
33923
  edit_button = false;
33913
33924
  in_carico = false;
@@ -33947,7 +33958,6 @@ class FHWorkflowHeaderBar {
33947
33958
  this.command.emit({ cmd: command });
33948
33959
  }
33949
33960
  set_custom_buttons() {
33950
- console.log('set_custom_buttons ', this.custom_commands);
33951
33961
  this.custom_commands_pri = [];
33952
33962
  this.custom_commands_sec = [];
33953
33963
  this.custom_commands.forEach((v) => {
@@ -34016,9 +34026,6 @@ class FHWorkflowHeaderBar {
34016
34026
  constructor(m_appService, _trs) {
34017
34027
  this.m_appService = m_appService;
34018
34028
  this._trs = _trs;
34019
- if (this.custom_commands != null)
34020
- if (this.custom_commands.length > 0)
34021
- this.set_custom_buttons();
34022
34029
  }
34023
34030
  ngAfterViewInit() {
34024
34031
  setTimeout(() => {