@fluxhub/fluxhub-lib 19.0.20 → 19.0.22

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.
@@ -8599,7 +8599,7 @@ class FHGridComponent {
8599
8599
  system_dest = 1;
8600
8600
  header_h = 35;
8601
8601
  selection_mode = {
8602
- mode: 'multiRow'
8602
+ mode: 'singleRow'
8603
8603
  };
8604
8604
  init_fill = true;
8605
8605
  no_pref = false;
@@ -9203,8 +9203,13 @@ class FHGridComponent {
9203
9203
  paste: this._trs.instant('Incolla'),
9204
9204
  ctrlV: this._trs.instant('ctrl & V'),
9205
9205
  },
9206
- getRowId: (item) => {
9207
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ item:", item);
9206
+ getRowId: (itemg) => {
9207
+ if (itemg == null)
9208
+ return this.uti_s.newGuid();
9209
+ if (itemg.data == null)
9210
+ return this.uti_s.newGuid();
9211
+ let item = itemg.data;
9212
+ console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ uiid calcolo", item);
9208
9213
  if (item.customKeyField != null)
9209
9214
  return [item.customKeyField];
9210
9215
  if (item.ID != null)
@@ -9225,7 +9230,7 @@ class FHGridComponent {
9225
9230
  return item.ord;
9226
9231
  console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ NOT FOUND!!", item);
9227
9232
  return this.uti_s.newGuid();
9228
- },
9233
+ }
9229
9234
  };
9230
9235
  this.init_opt = true;
9231
9236
  if (this.grid_key == 'PRO_H')
@@ -11362,8 +11367,12 @@ class FHGridJSONComponent {
11362
11367
  paste: this._trs.instant('Incolla'),
11363
11368
  ctrlV: this._trs.instant('ctrl & V'),
11364
11369
  },
11365
- getRowId: (item) => {
11366
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ item:", item);
11370
+ getRowId: (itemg) => {
11371
+ if (itemg == null)
11372
+ return this.uti_s.newGuid();
11373
+ if (itemg.data == null)
11374
+ return this.uti_s.newGuid();
11375
+ let item = itemg.data;
11367
11376
  if (item.customKeyField != null)
11368
11377
  return [item.customKeyField];
11369
11378
  if (item.ID != null)
@@ -11382,9 +11391,8 @@ class FHGridJSONComponent {
11382
11391
  return item.notesid;
11383
11392
  if (item.ord != null)
11384
11393
  return item.ord;
11385
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ NOT FOUND!!", item);
11386
11394
  return this.uti_s.newGuid();
11387
- },
11395
+ }
11388
11396
  };
11389
11397
  }
11390
11398
  init_conf() {
@@ -27472,8 +27480,13 @@ class FHGridInternalComponent {
27472
27480
  paste: this._trs.instant('Incolla'),
27473
27481
  ctrlV: this._trs.instant('ctrl & V'),
27474
27482
  },
27475
- getRowId: (item) => {
27476
- console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ item:", item);
27483
+ getRowId: (itemg) => {
27484
+ if (itemg == null)
27485
+ return this.uti_s.newGuid();
27486
+ if (itemg.data == null)
27487
+ return this.uti_s.newGuid();
27488
+ let item = itemg.data;
27489
+ console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ uiid calcolo", item);
27477
27490
  if (item.customKeyField != null)
27478
27491
  return [item.customKeyField];
27479
27492
  if (item.ID != null)
@@ -27494,7 +27507,7 @@ class FHGridInternalComponent {
27494
27507
  return item.ord;
27495
27508
  console.log("🚀 ~ FHGridComponent ~ ngAfterViewInit ~ NOT FOUND!!", item);
27496
27509
  return this.uti_s.newGuid();
27497
- },
27510
+ }
27498
27511
  };
27499
27512
  }
27500
27513
  uiid_stampa = '';