@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.
- app-ng-runtime/components/data/table/bundles/index.umd.js +6 -2
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +7 -3
- app-ng-runtime/components/data/table/fesm2015/index.mjs +6 -2
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +6 -2
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +2 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +2 -2
|
@@ -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,
|
|
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 && (
|
|
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 {
|