mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Table Designer: Move columns UI (#19154)
* format * added buttons and initial drag plugin * initial drag and drop working * add actions and taskbar * drag and drop bugfix and other changes * fix few issues * more changes * fix all move and insertion issues * PRcomments * fit and finish comments * remove dead code * bump sts * add style for object being dragged * add plugin to copyright filter * Add to eslintrc * fix drag contrast ratio * generalize logic for cell focus * demo feedback * feedback * add action state * feedback * remove unncecessary check * add move actions to context menu * change to const * fix bug with tables and fix drop color Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -59,6 +59,9 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
private _onColumnResize = new Emitter<void>();
|
||||
public readonly onColumnResize = this._onColumnResize.event;
|
||||
|
||||
private _onBlur = new Emitter<void>();
|
||||
public readonly onBlur = this._onBlur.event;
|
||||
|
||||
constructor(parent: HTMLElement, configuration?: ITableConfiguration<T>, options?: Slick.GridOptions<T>) {
|
||||
super();
|
||||
if (!configuration || !configuration.dataProvider || isArray(configuration.dataProvider)) {
|
||||
@@ -84,6 +87,7 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
||||
clearTimeout(this._classChangeTimeout);
|
||||
this._classChangeTimeout = setTimeout(() => {
|
||||
this._container.classList.remove('focused');
|
||||
this._onBlur.fire();
|
||||
}, 100);
|
||||
}, true));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user