Fix schema compare include/exclude behavior (#8042)

* don't uncheck difference if unsuccessful

* changes after rebasing to get schema compare fix

* First cut of column checkbox checking reactive to include opteration

* handle blocking dependencies and affected dependencies

* Changing the checked property of table to be list

* Addressing comments

* add map to keep row number of diff entries

* remove findDifferenceRow() since it isn't needed anymore

* fix scrolling to the top when checking/unchecking and add info message

* change checked to updateCells

* improve warning cannot include/exclude message
This commit is contained in:
Kim Santiago
2019-10-29 11:55:31 -07:00
committed by GitHub
parent 5629356c66
commit ce5eb00177
9 changed files with 135 additions and 8 deletions

View File

@@ -189,7 +189,24 @@ export class CheckboxSelectColumn<T extends Slick.SlickData> implements Slick.Pl
}
//Ensure that the focus stays correct
this._grid.getActiveCellNode().focus();
if(this._grid.getActiveCellNode()) {
this._grid.getActiveCellNode().focus();
}
// set selected row to the row of this checkbox
this._grid.setSelectedRows([row]);
}
// This call is to handle reactive changes in check box UI
// This DOES NOT fire UI change Events
reactiveCheckboxCheck(row: number, value: boolean) {
value ? this._selectedCheckBoxLookup[row] = true : delete this._selectedCheckBoxLookup[row];
// update row to call formatter
this._grid.updateRow(row);
// ensure that grid reflects the change
this._grid.scrollRowIntoView(row);
}
private handleHeaderClick(e: Event, args: Slick.OnHeaderClickEventArgs<T>): void {