(search, assign, rebase)
| 10508 | } |
| 10509 | } |
| 10510 | createUserSelection(search, assign, rebase) { |
| 10511 | const exec = new (0, _searchExpression.Exec)(search, this.getColumns()); |
| 10512 | const s = { |
| 10513 | search, |
| 10514 | included: [], |
| 10515 | excluded: [] |
| 10516 | }; |
| 10517 | const data = rebase ? this.data : this.currentData(); |
| 10518 | data.forEach((datum)=>{ |
| 10519 | if (exec.run(datum)) { |
| 10520 | if (assign) datum[(0, _sanddanceSpecs.FieldNames).Selected] = true; |
| 10521 | s.included.push(datum); |
| 10522 | } else s.excluded.push(datum); |
| 10523 | }); |
| 10524 | return s; |
| 10525 | } |
| 10526 | deselect() { |
| 10527 | this.deactivate(); |
| 10528 | this.data.forEach((datum)=>{ |
no test coverage detected