-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 💄 * table: intro * 💄 * more table progress * table: layout * table widget: fix overflow behavior * table: fix initial cell sizing * table: css * simplify ITunnelViewModel * further TunnelViewModel simplification * splitview: getSashOrthogonalSize * table: use getSashOrthogonalSize * table: styles, domFocus * tunnel view: start to adopt table * Improve tunnel label and process description * table: rename * workbench table * adopt WorkbenchTable in tunnel view * Rendering for local address and label * More actions on cells * cleanup workbench lists * reenable more tunnel view functionality * reenable tunnel view list options * tunnel view: enable context menu clicking * update comment * remove unused imports * privacy and source columns * Use container in renderTemplate * Hide privacy column * Some clean up in naming * Show detected ports and add input box * Source -> Origin and added a menu * table: fix weights * table: column header tooltip * table: column size constraints * Add tooltips to port cells and some cleanup * Add port header tooltips * Use column weight in ports table * More clean up and fix icons * table: optional tooltip * table hover feedback * Fix hygiene issue in breakpoints view * Add padding-right to port cell icon * Add tooltip to icon in ports view * Add icon column Co-authored-by: João Moreno <joao.moreno@microsoft.com>
- Loading branch information
Showing
20 changed files
with
1,146 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
.monaco-table { | ||
display: flex; | ||
flex-direction: column; | ||
position: relative; | ||
height: 100%; | ||
width: 100%; | ||
white-space: nowrap; | ||
} | ||
|
||
.monaco-table > .monaco-split-view2 { | ||
border-bottom: 1px solid transparent; | ||
} | ||
|
||
.monaco-table > .monaco-list { | ||
flex: 1; | ||
} | ||
|
||
.monaco-table-tr { | ||
display: flex; | ||
} | ||
|
||
.monaco-table-th { | ||
width: 100%; | ||
height: 100%; | ||
font-weight: bold; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.monaco-table-th, | ||
.monaco-table-td { | ||
box-sizing: border-box; | ||
padding-left: 10px; | ||
flex-shrink: 0; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.monaco-table-th[data-col-index="0"], | ||
.monaco-table-td[data-col-index="0"] { | ||
padding-left: 20px; | ||
} | ||
|
||
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before { | ||
content: ""; | ||
position: absolute; | ||
left: calc(var(--sash-size) / 2); | ||
width: 0; | ||
border-left: 1px solid transparent; | ||
} | ||
|
||
.monaco-table > .monaco-split-view2, | ||
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before { | ||
transition: border-color 0.2s ease-out; | ||
} | ||
/* | ||
.monaco-table:hover > .monaco-split-view2, | ||
.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { | ||
border-color: rgba(204, 204, 204, 0.2); | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { IListContextMenuEvent, IListEvent, IListGestureEvent, IListMouseEvent, IListRenderer, IListTouchEvent } from 'vs/base/browser/ui/list/list'; | ||
import { Event } from 'vs/base/common/event'; | ||
|
||
export interface ITableColumn<TRow, TCell> { | ||
readonly label: string; | ||
readonly tooltip?: string; | ||
readonly weight: number; | ||
readonly templateId: string; | ||
|
||
readonly minimumWidth?: number; | ||
readonly maximumWidth?: number; | ||
readonly onDidChangeWidthConstraints?: Event<void>; | ||
|
||
project(row: TRow): TCell; | ||
} | ||
|
||
export interface ITableVirtualDelegate<TRow> { | ||
readonly headerRowHeight: number; | ||
getHeight(row: TRow): number; | ||
} | ||
|
||
export interface ITableRenderer<TCell, TTemplateData> extends IListRenderer<TCell, TTemplateData> { } | ||
|
||
export interface ITableEvent<TRow> extends IListEvent<TRow> { } | ||
export interface ITableMouseEvent<TRow> extends IListMouseEvent<TRow> { } | ||
export interface ITableTouchEvent<TRow> extends IListTouchEvent<TRow> { } | ||
export interface ITableGestureEvent<TRow> extends IListGestureEvent<TRow> { } | ||
export interface ITableContextMenuEvent<TRow> extends IListContextMenuEvent<TRow> { } | ||
|
||
export class TableError extends Error { | ||
|
||
constructor(user: string, message: string) { | ||
super(`TableError [${user}] ${message}`); | ||
} | ||
} |
Oops, something went wrong.