@wavemaker/app-ng-runtime 11.6.0-next.26299 → 11.6.0-next.26302

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.
@@ -385,6 +385,7 @@
385
385
  this.items = [];
386
386
  this.rowActions = [];
387
387
  this.shownavigation = false;
388
+ this.showFirstRow = false;
388
389
  this.documentClickBind = noop;
389
390
  this.prevFilterExpression = [];
390
391
  this.fieldDefs = [];
@@ -551,7 +552,7 @@
551
552
  });
552
553
  },
553
554
  // assigns the items on capture phase of the click handler.
554
- assignSelectedItems: (row, e, isRowSelected) => {
555
+ assignSelectedItems: (row, e, rowInfo) => {
555
556
  this.ngZone.run(() => {
556
557
  /*
557
558
  * in case of single select, update the items with out changing the reference.
@@ -559,8 +560,11 @@
559
560
  */
560
561
  if (this.multiselect) {
561
562
  //Fix for [WMS-25110]: Add row to items list only if the row is selected
562
- if (_.findIndex(this.items, row) === -1 && (isRowSelected === undefined || isRowSelected == true)) {
563
+ if (_.findIndex(this.items, row) === -1 && ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo._selected) === undefined || (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo._selected) == true || (this.gridfirstrowselect && (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0 && !this.showFirstRow))) {
563
564
  this.items.push(row);
565
+ if ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0) {
566
+ this.showFirstRow = true;
567
+ }
564
568
  }
565
569
  }
566
570
  else {