@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.
@@ -377,6 +377,7 @@ class TableComponent extends StylableComponent {
377
377
  this.items = [];
378
378
  this.rowActions = [];
379
379
  this.shownavigation = false;
380
+ this.showFirstRow = false;
380
381
  this.documentClickBind = noop;
381
382
  this.prevFilterExpression = [];
382
383
  this.fieldDefs = [];
@@ -543,7 +544,7 @@ class TableComponent extends StylableComponent {
543
544
  });
544
545
  },
545
546
  // assigns the items on capture phase of the click handler.
546
- assignSelectedItems: (row, e, isRowSelected) => {
547
+ assignSelectedItems: (row, e, rowInfo) => {
547
548
  this.ngZone.run(() => {
548
549
  /*
549
550
  * in case of single select, update the items with out changing the reference.
@@ -551,8 +552,11 @@ class TableComponent extends StylableComponent {
551
552
  */
552
553
  if (this.multiselect) {
553
554
  //Fix for [WMS-25110]: Add row to items list only if the row is selected
554
- if (_.findIndex(this.items, row) === -1 && (isRowSelected === undefined || isRowSelected == true)) {
555
+ 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))) {
555
556
  this.items.push(row);
557
+ if ((rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.rowId) == 0) {
558
+ this.showFirstRow = true;
559
+ }
556
560
  }
557
561
  }
558
562
  else {