flameresttable 1.0.44 → 1.0.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flameresttable",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -415,7 +415,13 @@ export default class FlameTable<T> {
415
415
  * @returns
416
416
  */
417
417
  public getSelectedRows() {
418
- return this.Rows.rows.filter((r: any) => r.selected).map((r: any) => r.item);
418
+ const res = [];
419
+ for (const key in this.RowsParams) {
420
+ const el = this.RowsParams[key];
421
+ if (el.selected)
422
+ res.push(el.item)
423
+ }
424
+ return res;
419
425
  }
420
426
 
421
427
  /**
@@ -115,7 +115,7 @@ const selectAction = () => {
115
115
  case 0:
116
116
  break;
117
117
  case 1:
118
- state.Table.exportToXLS();
118
+ state.Table.exportToXLS(true);
119
119
  break;
120
120
  case 2:
121
121
  state.Table.exportToXLS();