@rxap/material-table-system 14.0.1 → 14.1.0
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.
- package/esm2020/lib/select-row/select-row.options.mjs +1 -1
- package/esm2020/lib/select-row/select-row.service.mjs +2 -5
- package/fesm2015/rxap-material-table-system.mjs +1 -4
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +1 -4
- package/fesm2020/rxap-material-table-system.mjs.map +1 -1
- package/lib/select-row/select-row.options.d.ts +3 -1
- package/lib/select-row/tokens.d.ts +1 -1
- package/package.json +3 -3
|
@@ -283,10 +283,7 @@ const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-m
|
|
|
283
283
|
class SelectRowService {
|
|
284
284
|
constructor(options = null) {
|
|
285
285
|
this.selectionModel = new SelectionModel(true);
|
|
286
|
-
this.selectionModel = new SelectionModel(options?.multiple);
|
|
287
|
-
if (options?.selected) {
|
|
288
|
-
this.selectionModel.select(...options?.selected);
|
|
289
|
-
}
|
|
286
|
+
this.selectionModel = new SelectionModel(options?.multiple, options?.selected, options?.emitChanges, options?.compareWith);
|
|
290
287
|
this.selectedRows$ = this.selectionModel.changed.pipe(map(() => this.selectionModel.selected));
|
|
291
288
|
}
|
|
292
289
|
get selectedRows() {
|