mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
This reverts commit f2779f2a50.
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
"@angular/router": "~4.1.3",
|
"@angular/router": "~4.1.3",
|
||||||
"@angular/upgrade": "~4.1.3",
|
"@angular/upgrade": "~4.1.3",
|
||||||
"angular2-grid": "2.0.6",
|
"angular2-grid": "2.0.6",
|
||||||
"angular2-slickgrid": "git://github.com/Microsoft/angular2-slickgrid.git#1.3.10",
|
"angular2-slickgrid": "git://github.com/Microsoft/angular2-slickgrid.git#1.3.9",
|
||||||
"applicationinsights": "0.17.1",
|
"applicationinsights": "0.17.1",
|
||||||
"chart.js": "^2.6.0",
|
"chart.js": "^2.6.0",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
|
|||||||
@@ -26,8 +26,7 @@
|
|||||||
(mousedown)="navigateToGrid(i)"
|
(mousedown)="navigateToGrid(i)"
|
||||||
[selectionModel]="selectionModel"
|
[selectionModel]="selectionModel"
|
||||||
[plugins]="slickgridPlugins"
|
[plugins]="slickgridPlugins"
|
||||||
class="boxCol content vertBox slickgrid"
|
class="boxCol content vertBox slickgrid">
|
||||||
[rowHeight]="rowHeight">
|
|
||||||
</slick-grid>
|
</slick-grid>
|
||||||
<span class="boxCol content vertBox">
|
<span class="boxCol content vertBox">
|
||||||
<div class="boxRow content maxHeight" *ngFor="let icon of dataIcons">
|
<div class="boxRow content maxHeight" *ngFor="let icon of dataIcons">
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ export class QueryComponent extends GridParentComponent implements OnInit, OnDes
|
|||||||
private resizing = false;
|
private resizing = false;
|
||||||
private resizeHandleTop: string = '0';
|
private resizeHandleTop: string = '0';
|
||||||
private scrollEnabled = true;
|
private scrollEnabled = true;
|
||||||
private rowHeight: number;
|
|
||||||
// tslint:disable-next-line:no-unused-variable
|
// tslint:disable-next-line:no-unused-variable
|
||||||
private firstRender = true;
|
private firstRender = true;
|
||||||
private totalElapsedTimeSpan: number;
|
private totalElapsedTimeSpan: number;
|
||||||
@@ -158,16 +157,6 @@ export class QueryComponent extends GridParentComponent implements OnInit, OnDes
|
|||||||
) {
|
) {
|
||||||
super(el, cd, bootstrapService);
|
super(el, cd, bootstrapService);
|
||||||
this._el.nativeElement.className = 'slickgridContainer';
|
this._el.nativeElement.className = 'slickgridContainer';
|
||||||
this.rowHeight = bootstrapService.configurationService.getValue<any>('resultsGrid').rowHeight;
|
|
||||||
bootstrapService.configurationService.onDidChangeConfiguration(e => {
|
|
||||||
if (e.affectsConfiguration('resultsGrid')) {
|
|
||||||
this.rowHeight = bootstrapService.configurationService.getValue<any>('resultsGrid').rowHeight;
|
|
||||||
this.slickgrids.forEach(i => {
|
|
||||||
i.rowHeight = this.rowHeight;
|
|
||||||
});
|
|
||||||
this.resizeGrids();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ export class QueryResultsInput extends EditorInput {
|
|||||||
|
|
||||||
// Holds the HTML content for the editor when the editor discards this input and loads another
|
// Holds the HTML content for the editor when the editor discards this input and loads another
|
||||||
private _editorContainer: HTMLElement;
|
private _editorContainer: HTMLElement;
|
||||||
public css: HTMLStyleElement;
|
|
||||||
|
|
||||||
constructor(private _uri: string) {
|
constructor(private _uri: string) {
|
||||||
super();
|
super();
|
||||||
|
|||||||
@@ -11,60 +11,16 @@ import { EditorOptions } from 'vs/workbench/common/editor';
|
|||||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||||
import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||||
import { BaseEditor } from 'vs/workbench/browser/parts/editor/baseEditor';
|
import { BaseEditor } from 'vs/workbench/browser/parts/editor/baseEditor';
|
||||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
|
||||||
import { BareFontInfo } from 'vs/editor/common/config/fontInfo';
|
|
||||||
import { getZoomLevel } from 'vs/base/browser/browser';
|
|
||||||
import { Configuration } from 'vs/editor/browser/config/configuration';
|
|
||||||
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
|
||||||
import * as dom from 'vs/base/browser/dom';
|
|
||||||
import * as types from 'vs/base/common/types';
|
|
||||||
|
|
||||||
import { QueryResultsInput } from 'sql/parts/query/common/queryResultsInput';
|
import { QueryResultsInput } from 'sql/parts/query/common/queryResultsInput';
|
||||||
import { IQueryModelService } from 'sql/parts/query/execution/queryModel';
|
import { IQueryModelService } from 'sql/parts/query/execution/queryModel';
|
||||||
import { IBootstrapService } from 'sql/services/bootstrap/bootstrapService';
|
import { IBootstrapService } from 'sql/services/bootstrap/bootstrapService';
|
||||||
import { QueryComponentParams } from 'sql/services/bootstrap/bootstrapParams';
|
import { QueryComponentParams } from 'sql/services/bootstrap/bootstrapParams';
|
||||||
|
import { IThemeService } from 'vs/platform/theme/common/themeService';
|
||||||
import { QueryOutputModule } from 'sql/parts/query/views/queryOutput.module';
|
import { QueryOutputModule } from 'sql/parts/query/views/queryOutput.module';
|
||||||
import { QUERY_OUTPUT_SELECTOR } from 'sql/parts/query/views/queryOutput.component';
|
import { QUERY_OUTPUT_SELECTOR } from 'sql/parts/query/views/queryOutput.component';
|
||||||
|
|
||||||
export const RESULTS_GRID_DEFAULTS = {
|
|
||||||
cellPadding: [6, 10, 5],
|
|
||||||
rowHeight: 29
|
|
||||||
};
|
|
||||||
|
|
||||||
export const TextCompareEditorVisible = new RawContextKey<boolean>('textCompareEditorVisible', false);
|
export const TextCompareEditorVisible = new RawContextKey<boolean>('textCompareEditorVisible', false);
|
||||||
|
|
||||||
export class BareResultsGridInfo extends BareFontInfo {
|
|
||||||
|
|
||||||
public static createFromRawSettings(opts: {
|
|
||||||
fontFamily?: string;
|
|
||||||
fontWeight?: string;
|
|
||||||
fontSize?: number | string;
|
|
||||||
lineHeight?: number | string;
|
|
||||||
letterSpacing?: number | string;
|
|
||||||
cellPadding?: number | number[];
|
|
||||||
}, zoomLevel: number): BareResultsGridInfo {
|
|
||||||
let cellPadding = !types.isUndefinedOrNull(opts.cellPadding) ? opts.cellPadding : RESULTS_GRID_DEFAULTS.cellPadding;
|
|
||||||
|
|
||||||
return new BareResultsGridInfo(BareFontInfo.createFromRawSettings(opts, zoomLevel), { cellPadding });
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly cellPadding: number | number[];
|
|
||||||
|
|
||||||
protected constructor(fontInfo: BareFontInfo, opts: {
|
|
||||||
cellPadding: number | number[];
|
|
||||||
}) {
|
|
||||||
super({
|
|
||||||
zoomLevel: fontInfo.zoomLevel,
|
|
||||||
fontFamily: fontInfo.fontFamily,
|
|
||||||
fontWeight: fontInfo.fontWeight,
|
|
||||||
fontSize: fontInfo.fontSize,
|
|
||||||
lineHeight: fontInfo.lineHeight,
|
|
||||||
letterSpacing: fontInfo.letterSpacing
|
|
||||||
});
|
|
||||||
this.cellPadding = opts.cellPadding;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Editor associated with viewing and editing the data of a query results grid.
|
* Editor associated with viewing and editing the data of a query results grid.
|
||||||
*/
|
*/
|
||||||
@@ -72,45 +28,14 @@ export class QueryResultsEditor extends BaseEditor {
|
|||||||
|
|
||||||
public static ID: string = 'workbench.editor.queryResultsEditor';
|
public static ID: string = 'workbench.editor.queryResultsEditor';
|
||||||
public static AngularSelectorString: string = 'slickgrid-container.slickgridContainer';
|
public static AngularSelectorString: string = 'slickgrid-container.slickgridContainer';
|
||||||
protected _rawOptions: BareResultsGridInfo;
|
|
||||||
protected _input: QueryResultsInput;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ITelemetryService telemetryService: ITelemetryService,
|
@ITelemetryService telemetryService: ITelemetryService,
|
||||||
@IThemeService themeService: IThemeService,
|
@IThemeService themeService: IThemeService,
|
||||||
@IQueryModelService private _queryModelService: IQueryModelService,
|
@IQueryModelService private _queryModelService: IQueryModelService,
|
||||||
@IBootstrapService private _bootstrapService: IBootstrapService,
|
@IBootstrapService private _bootstrapService: IBootstrapService
|
||||||
@IConfigurationService private _configurationService: IConfigurationService
|
|
||||||
) {
|
) {
|
||||||
super(QueryResultsEditor.ID, telemetryService, themeService);
|
super(QueryResultsEditor.ID, telemetryService, themeService);
|
||||||
this._rawOptions = BareResultsGridInfo.createFromRawSettings(this._configurationService.getValue('resultsGrid'), getZoomLevel());
|
|
||||||
this._configurationService.onDidChangeConfiguration(e => {
|
|
||||||
if (e.affectsConfiguration('resultsGrid')) {
|
|
||||||
this._rawOptions = BareResultsGridInfo.createFromRawSettings(this._configurationService.getValue('resultsGrid'), getZoomLevel());
|
|
||||||
this.applySettings();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public get input(): QueryResultsInput {
|
|
||||||
return this._input;
|
|
||||||
}
|
|
||||||
|
|
||||||
private applySettings() {
|
|
||||||
if (this.input && this.input.container) {
|
|
||||||
Configuration.applyFontInfoSlow(this.getContainer().getHTMLElement(), this._rawOptions);
|
|
||||||
if (!this.input.css) {
|
|
||||||
this.input.css = dom.createStyleSheet(this.input.container);
|
|
||||||
}
|
|
||||||
let cssRuleText = '';
|
|
||||||
if (types.isNumber(this._rawOptions.cellPadding)) {
|
|
||||||
cssRuleText = this._rawOptions.cellPadding + 'px';
|
|
||||||
} else {
|
|
||||||
cssRuleText = this._rawOptions.cellPadding.join('px ') + 'px;';
|
|
||||||
}
|
|
||||||
let content = `.grid .slick-cell { padding: ${cssRuleText}; }`;
|
|
||||||
this.input.css.innerHTML = content;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createEditor(parent: Builder): void {
|
createEditor(parent: Builder): void {
|
||||||
@@ -121,7 +46,6 @@ export class QueryResultsEditor extends BaseEditor {
|
|||||||
|
|
||||||
setInput(input: QueryResultsInput, options: EditorOptions): TPromise<void> {
|
setInput(input: QueryResultsInput, options: EditorOptions): TPromise<void> {
|
||||||
super.setInput(input, options);
|
super.setInput(input, options);
|
||||||
this.applySettings();
|
|
||||||
if (!input.hasBootstrapped) {
|
if (!input.hasBootstrapped) {
|
||||||
this._bootstrapAngular();
|
this._bootstrapAngular();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------------------------
|
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
||||||
*--------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
import { Extensions, IConfigurationRegistry, IConfigurationNode, ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry';
|
|
||||||
import { Registry } from 'vs/platform/registry/common/platform';
|
|
||||||
import * as nls from 'vs/nls';
|
|
||||||
import * as editorOptions from 'vs/editor/common/config/editorOptions';
|
|
||||||
import EDITOR_DEFAULTS = editorOptions.EDITOR_DEFAULTS;
|
|
||||||
import EDITOR_FONT_DEFAULTS = editorOptions.EDITOR_FONT_DEFAULTS;
|
|
||||||
import EDITOR_MODEL_DEFAULTS = editorOptions.EDITOR_MODEL_DEFAULTS;
|
|
||||||
|
|
||||||
import { RESULTS_GRID_DEFAULTS } from 'sql/parts/query/editor/queryResultsEditor';
|
|
||||||
|
|
||||||
const configurationRegistry = <IConfigurationRegistry>Registry.as(Extensions.Configuration);
|
|
||||||
|
|
||||||
const resultsGridConfiguration: IConfigurationNode = {
|
|
||||||
id: 'resultsGrid',
|
|
||||||
type: 'object',
|
|
||||||
title: nls.localize('resultsGridConfigurationTitle', "Results Grid"),
|
|
||||||
overridable: true,
|
|
||||||
scope: ConfigurationScope.RESOURCE,
|
|
||||||
properties: {
|
|
||||||
'resultsGrid.fontFamily': {
|
|
||||||
type: 'string',
|
|
||||||
default: EDITOR_FONT_DEFAULTS.fontFamily,
|
|
||||||
description: nls.localize('fontFamily', "Controls the font family.")
|
|
||||||
},
|
|
||||||
'resultsGrid.fontWeight': {
|
|
||||||
type: 'string',
|
|
||||||
enum: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
||||||
default: EDITOR_FONT_DEFAULTS.fontWeight,
|
|
||||||
description: nls.localize('fontWeight', "Controls the font weight.")
|
|
||||||
},
|
|
||||||
'resultsGrid.fontSize': {
|
|
||||||
type: 'number',
|
|
||||||
default: EDITOR_FONT_DEFAULTS.fontSize,
|
|
||||||
description: nls.localize('fontSize', "Controls the font size in pixels.")
|
|
||||||
},
|
|
||||||
'resultsGrid.letterSpacing': {
|
|
||||||
type: 'number',
|
|
||||||
default: EDITOR_FONT_DEFAULTS.letterSpacing,
|
|
||||||
description: nls.localize('letterSpacing', "Controls the letter spacing in pixels.")
|
|
||||||
},
|
|
||||||
'resultsGrid.rowHeight': {
|
|
||||||
type: 'number',
|
|
||||||
default: RESULTS_GRID_DEFAULTS.rowHeight,
|
|
||||||
description: nls.localize('rowHeight', "Controls the row height in pixels")
|
|
||||||
},
|
|
||||||
'resultsGrid.cellPadding': {
|
|
||||||
oneOf: [
|
|
||||||
{
|
|
||||||
type: 'number'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'array',
|
|
||||||
items: {
|
|
||||||
type: 'number'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
default: RESULTS_GRID_DEFAULTS.cellPadding,
|
|
||||||
description: nls.localize('cellPadding', "Controls the cell padding in pixels")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
configurationRegistry.registerConfiguration(resultsGridConfiguration);
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/js/gridsync.service.d.ts
|
// Source: node_modules/angular2-slickgrid/components/js/gridsync.service.d.ts
|
||||||
declare module '~angular2-slickgrid/out/js/gridsync.service' {
|
declare module '~angular2-slickgrid/components/js/gridsync.service' {
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
import { SelectionModel } from '~angular2-slickgrid/out/js/selectionModel';
|
import { SelectionModel } from '~angular2-slickgrid/components/js/selectionmodel';
|
||||||
export class GridSyncService {
|
export class GridSyncService {
|
||||||
columnMinWidthPX: number;
|
columnMinWidthPX: number;
|
||||||
private _scrollLeftPX;
|
private _scrollLeftPX;
|
||||||
@@ -30,13 +30,13 @@ export class GridSyncService {
|
|||||||
private notifyUpdates(propertyName);
|
private notifyUpdates(propertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/js/gridsync.service' {
|
declare module 'angular2-slickgrid/components/js/gridsync.service' {
|
||||||
export * from '~angular2-slickgrid/out/js/gridsync.service';
|
export * from '~angular2-slickgrid/components/js/gridsync.service';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/js/interfaces.d.ts
|
// Source: node_modules/angular2-slickgrid/components/js/interfaces.d.ts
|
||||||
declare module '~angular2-slickgrid/out/js/interfaces' {
|
declare module '~angular2-slickgrid/components/js/interfaces' {
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
export enum NotificationType {
|
export enum NotificationType {
|
||||||
Error = 0,
|
Error = 0,
|
||||||
@@ -90,14 +90,14 @@ export interface IGridDataRow {
|
|||||||
values: any[];
|
values: any[];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/js/interfaces' {
|
declare module 'angular2-slickgrid/components/js/interfaces' {
|
||||||
export * from '~angular2-slickgrid/out/js/interfaces';
|
export * from '~angular2-slickgrid/components/js/interfaces';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/js/selectionModel.d.ts
|
// Source: node_modules/angular2-slickgrid/components/js/selectionmodel.d.ts
|
||||||
declare module '~angular2-slickgrid/out/js/selectionModel' {
|
declare module '~angular2-slickgrid/components/js/selectionmodel' {
|
||||||
import { ISelectionRange } from '~angular2-slickgrid/out/js/interfaces';
|
import { ISelectionRange } from '~angular2-slickgrid/components/js/interfaces';
|
||||||
export class SelectionModel implements ISlickSelectionModel {
|
export class SelectionModel implements ISlickSelectionModel {
|
||||||
private _rowSelectionModel;
|
private _rowSelectionModel;
|
||||||
private _handler;
|
private _handler;
|
||||||
@@ -156,17 +156,17 @@ export interface ISlickGrid {
|
|||||||
getDataLength(): number;
|
getDataLength(): number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/js/selectionModel' {
|
declare module 'angular2-slickgrid/components/js/selectionmodel' {
|
||||||
export * from '~angular2-slickgrid/out/js/selectionModel';
|
export * from '~angular2-slickgrid/components/js/selectionmodel';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/js/slickGrid.d.ts
|
// Source: node_modules/angular2-slickgrid/components/js/slickgrid.d.ts
|
||||||
declare module '~angular2-slickgrid/out/js/slickGrid' {
|
declare module '~angular2-slickgrid/components/js/slickgrid' {
|
||||||
import { OnChanges, OnInit, OnDestroy, SimpleChange, EventEmitter, AfterViewInit } from '@angular/core';
|
import { OnChanges, OnInit, OnDestroy, SimpleChange, EventEmitter, AfterViewInit } from '@angular/core';
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
import { IObservableCollection, IGridDataRow, IColumnDefinition } from '~angular2-slickgrid/out/js/interfaces';
|
import { IObservableCollection, IGridDataRow, IColumnDefinition } from '~angular2-slickgrid/components/js/interfaces';
|
||||||
import { ISlickRange } from '~angular2-slickgrid/out/js/selectionModel';
|
import { ISlickRange, ISlickEvent } from '~angular2-slickgrid/components/js/selectionmodel';
|
||||||
export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
||||||
private _el;
|
private _el;
|
||||||
private _gridSyncService;
|
private _gridSyncService;
|
||||||
@@ -184,22 +184,17 @@ export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
|||||||
showDataTypeIcon: boolean;
|
showDataTypeIcon: boolean;
|
||||||
enableColumnReorder: boolean;
|
enableColumnReorder: boolean;
|
||||||
enableAsyncPostRender: boolean;
|
enableAsyncPostRender: boolean;
|
||||||
selectionModel: string | Slick.SelectionModel<any, any>;
|
selectionModel: string;
|
||||||
plugins: Array<string | Slick.Plugin<any>>;
|
plugins: string[];
|
||||||
enableEditing: boolean;
|
enableEditing: boolean;
|
||||||
topRowNumber: number;
|
topRowNumber: number;
|
||||||
overrideCellFn: (rowNumber, columnId, value?, data?) => string;
|
overrideCellFn: (rowNumber, columnId, value?, data?) => string;
|
||||||
isColumnEditable: (column: number) => boolean;
|
isColumnEditable: (column: number) => boolean;
|
||||||
isCellEditValid: (row: number, column: number, newValue: any) => boolean;
|
isCellEditValid: (row: number, column: number, newValue: any) => boolean;
|
||||||
private _rowHeight;
|
|
||||||
loadFinished: EventEmitter<void>;
|
loadFinished: EventEmitter<void>;
|
||||||
editingFinished: EventEmitter<any>;
|
editingFinished: EventEmitter<any>;
|
||||||
contextMenu: EventEmitter<any>;
|
contextMenu: EventEmitter<any>;
|
||||||
topRowNumberChange: EventEmitter<number>;
|
topRowNumberChange: EventEmitter<number>;
|
||||||
activeCellChanged: EventEmitter<{
|
|
||||||
row: number;
|
|
||||||
column: number;
|
|
||||||
}>;
|
|
||||||
cellEditBegin: EventEmitter<{
|
cellEditBegin: EventEmitter<{
|
||||||
row: number;
|
row: number;
|
||||||
column: number;
|
column: number;
|
||||||
@@ -216,11 +211,11 @@ export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
|||||||
row: number;
|
row: number;
|
||||||
}>;
|
}>;
|
||||||
onFocus(): void;
|
onFocus(): void;
|
||||||
rowHeight: number;
|
|
||||||
private _grid;
|
private _grid;
|
||||||
private _gridColumns;
|
private _gridColumns;
|
||||||
private _columnNameToIndex;
|
private _columnNameToIndex;
|
||||||
private _gridData;
|
private _gridData;
|
||||||
|
private _rowHeight;
|
||||||
private _resizeSubscription;
|
private _resizeSubscription;
|
||||||
private _gridSyncSubscription;
|
private _gridSyncSubscription;
|
||||||
private _topRow;
|
private _topRow;
|
||||||
@@ -236,11 +231,11 @@ export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
|||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
enterEditSession(): void;
|
enterEditSession(): void;
|
||||||
endEditSession(): void;
|
endEditSession(): void;
|
||||||
readonly onSelectedRowsChanged: Slick.Event<Slick.OnSelectedRowsChangedEventArgs<any>>;
|
readonly onSelectedRowsChanged: ISlickEvent;
|
||||||
getSelectedRows(): number[];
|
getSelectedRows(): number[];
|
||||||
getColumnIndex(name: string): number;
|
getColumnIndex(name: string): number;
|
||||||
getSelectedRanges(): ISlickRange[];
|
getSelectedRanges(): ISlickRange[];
|
||||||
registerPlugin(plugin: Slick.Plugin<any> | string): void;
|
registerPlugin(plugin: string): void;
|
||||||
setActive(): void;
|
setActive(): void;
|
||||||
selection: ISlickRange[] | boolean;
|
selection: ISlickRange[] | boolean;
|
||||||
subscribeToContextMenu(): void;
|
subscribeToContextMenu(): void;
|
||||||
@@ -263,14 +258,14 @@ export class SlickGrid implements OnChanges, OnInit, OnDestroy, AfterViewInit {
|
|||||||
private renderGridDataRowsRange(startIndex, count);
|
private renderGridDataRowsRange(startIndex, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/js/slickGrid' {
|
declare module 'angular2-slickgrid/components/js/slickgrid' {
|
||||||
export * from '~angular2-slickgrid/out/js/slickGrid';
|
export * from '~angular2-slickgrid/components/js/slickgrid';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/js/virtualizedCollection.d.ts
|
// Source: node_modules/angular2-slickgrid/components/js/virtualizedcollection.d.ts
|
||||||
declare module '~angular2-slickgrid/out/js/virtualizedCollection' {
|
declare module '~angular2-slickgrid/components/js/virtualizedcollection' {
|
||||||
import { IObservableCollection, CollectionChange } from '~angular2-slickgrid/out/js/interfaces';
|
import { IObservableCollection, CollectionChange } from '~angular2-slickgrid/components/js/interfaces';
|
||||||
export class VirtualizedCollection<TData> implements IObservableCollection<TData> {
|
export class VirtualizedCollection<TData> implements IObservableCollection<TData> {
|
||||||
private _placeHolderGenerator;
|
private _placeHolderGenerator;
|
||||||
private _length;
|
private _length;
|
||||||
@@ -289,22 +284,22 @@ export class VirtualizedCollection<TData> implements IObservableCollection<TData
|
|||||||
private resetWindowsAroundIndex(index);
|
private resetWindowsAroundIndex(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/js/virtualizedCollection' {
|
declare module 'angular2-slickgrid/components/js/virtualizedcollection' {
|
||||||
export * from '~angular2-slickgrid/out/js/virtualizedCollection';
|
export * from '~angular2-slickgrid/components/js/virtualizedcollection';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generated by typings
|
// Generated by typings
|
||||||
// Source: node_modules/angular2-slickgrid/out/index.d.ts
|
// Source: node_modules/angular2-slickgrid/index.d.ts
|
||||||
declare module '~angular2-slickgrid/out/index' {
|
declare module '~angular2-slickgrid/index' {
|
||||||
export * from '~angular2-slickgrid/out/js/gridsync.service';
|
export * from '~angular2-slickgrid/components/js/gridsync.service';
|
||||||
export * from '~angular2-slickgrid/out/js/interfaces';
|
export * from '~angular2-slickgrid/components/js/interfaces';
|
||||||
export * from '~angular2-slickgrid/out/js/selectionModel';
|
export * from '~angular2-slickgrid/components/js/selectionmodel';
|
||||||
export * from '~angular2-slickgrid/out/js/slickGrid';
|
export * from '~angular2-slickgrid/components/js/slickgrid';
|
||||||
export * from '~angular2-slickgrid/out/js/virtualizedCollection';
|
export * from '~angular2-slickgrid/components/js/virtualizedcollection';
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid/out/index' {
|
declare module 'angular2-slickgrid/index' {
|
||||||
export * from '~angular2-slickgrid/out/index';
|
export * from '~angular2-slickgrid/index';
|
||||||
}
|
}
|
||||||
declare module 'angular2-slickgrid' {
|
declare module 'angular2-slickgrid' {
|
||||||
export * from '~angular2-slickgrid/out/index';
|
export * from '~angular2-slickgrid/index';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"resolution": "main",
|
"resolution": "main",
|
||||||
"tree": {
|
"tree": {
|
||||||
"raw": "npm:angular2-slickgrid",
|
"src": "npm:angular2-slickgrid/index.d.ts"
|
||||||
"main": "out/index.js",
|
|
||||||
"version": "1.3.9",
|
|
||||||
"name": "angular2-slickgrid"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,6 @@ import 'sql/parts/registeredServer/viewlet/connectionViewlet';
|
|||||||
import 'sql/workbench/api/node/sqlExtHost.contribution';
|
import 'sql/workbench/api/node/sqlExtHost.contribution';
|
||||||
import 'sql/parts/connection/common/connection.contribution';
|
import 'sql/parts/connection/common/connection.contribution';
|
||||||
import 'sql/parts/query/common/query.contribution';
|
import 'sql/parts/query/common/query.contribution';
|
||||||
import 'sql/parts/query/editor/resultsGridContribution';
|
|
||||||
import 'sql/parts/profiler/contrib/profiler.contribution';
|
import 'sql/parts/profiler/contrib/profiler.contribution';
|
||||||
import 'sql/parts/profiler/contrib/profilerActions.contribution';
|
import 'sql/parts/profiler/contrib/profilerActions.contribution';
|
||||||
import 'sql/parts/registeredServer/serverGroupDialog/serverGroup.contribution';
|
import 'sql/parts/registeredServer/serverGroupDialog/serverGroup.contribution';
|
||||||
|
|||||||
@@ -162,9 +162,9 @@ angular2-grid@2.0.6:
|
|||||||
version "2.0.6"
|
version "2.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/angular2-grid/-/angular2-grid-2.0.6.tgz#01fe225dc13b2822370b6c61f9a6913b3a26f989"
|
resolved "https://registry.yarnpkg.com/angular2-grid/-/angular2-grid-2.0.6.tgz#01fe225dc13b2822370b6c61f9a6913b3a26f989"
|
||||||
|
|
||||||
"angular2-slickgrid@git://github.com/Microsoft/angular2-slickgrid.git#1.3.10":
|
"angular2-slickgrid@git://github.com/Microsoft/angular2-slickgrid.git#1.3.9":
|
||||||
version "1.3.10"
|
version "1.3.9"
|
||||||
resolved "git://github.com/Microsoft/angular2-slickgrid.git#195298abaf18e729833ee832006512829d302955"
|
resolved "git://github.com/Microsoft/angular2-slickgrid.git#d9fd6149781942c16db3faa2c912b601c4ed2aaa"
|
||||||
|
|
||||||
ansi-colors@^1.0.1:
|
ansi-colors@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user