Output view changes (#3146)

* 1133: Notebook file registration changes

* File registration stuff

* Yarn files

* Outputview Changes

* Misc changes

* Changes to code component name space

* Output view changes

* notebook output view changes

* Latest changes

* Output view changes

* Code review changes on output view

* CSS file and misc changes
This commit is contained in:
Raj
2018-11-07 14:19:33 -08:00
committed by GitHub
parent ecd40de7ec
commit 71c14a0837
38 changed files with 4913 additions and 21 deletions

View File

@@ -11,8 +11,11 @@
/// <reference path="modules/@angular/platform-browser-dynamic/index.d.ts" />
/// <reference path="modules/@angular/platform-browser/index.d.ts" />
/// <reference path="modules/@angular/router/index.d.ts" />
/// <reference path="modules/@types/htmlparser2/index.d.ts" />
/// <reference path="modules/@types/sanitize-html/index.d.ts" />
/// <reference path="modules/angular2-grid/index.d.ts" />
/// <reference path="modules/angular2-slickgrid/index.d.ts" />
/// <reference path="modules/ansi_up/index.d.ts" />
/// <reference path="modules/html-query-plan/index.d.ts" />
/// <reference path="modules/ng2-charts/index.d.ts" />
/// <reference path="modules/rxjs/index.d.ts" />

View File

@@ -0,0 +1,106 @@
// Generated by typings
// Source: node_modules/@types/htmlparser2/index.d.ts
declare module 'htmlparser2' {
// Type definitions for htmlparser2 v3.7.x
// Project: https://github.com/fb55/htmlparser2/
// Definitions by: James Roland Cabresos <https://github.com/staticfunction>
// Linus Unnebäck <https://github.com/LinusU>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="node"/>
import { Writable } from 'stream'
export interface Handler {
onopentag?: (name: string, attribs: { [type: string]: string }) => void;
onopentagname?: (name: string) => void;
onattribute?: (name: string, value: string) => void;
ontext?: (text: string) => void;
onclosetag?: (text: string) => void;
onprocessinginstruction?: (name: string, data: string) => void;
oncomment?: (data: string) => void;
oncommentend?: () => void;
oncdatastart?: () => void;
oncdataend?: () => void;
onerror?: (error: Error) => void;
onreset?: () => void;
onend?: () => void;
}
export interface Options {
/***
* Indicates whether special tags (<script> and <style>) should get special treatment
* and if "empty" tags (eg. <br>) can have children. If false, the content of special tags
* will be text only. For feeds and other XML content (documents that don't consist of HTML),
* set this to true. Default: false.
*/
xmlMode?: boolean;
/***
* If set to true, entities within the document will be decoded. Defaults to false.
*/
decodeEntities?: boolean;
/***
* If set to true, all tags will be lowercased. If xmlMode is disabled, this defaults to true.
*/
lowerCaseTags?: boolean;
/***
* If set to true, all attribute names will be lowercased. This has noticeable impact on speed, so it defaults to false.
*/
lowerCaseAttributeNames?: boolean;
/***
* If set to true, CDATA sections will be recognized as text even if the xmlMode option is not enabled.
* NOTE: If xmlMode is set to true then CDATA sections will always be recognized as text.
*/
recognizeCDATA?: boolean;
/***
* If set to true, self-closing tags will trigger the onclosetag event even if xmlMode is not set to true.
* NOTE: If xmlMode is set to true then self-closing tags will always be recognized.
*/
recognizeSelfClosing?: boolean;
}
export class WritableStream extends Writable {
constructor(handler: Handler, options?: Options);
}
export class Parser {
constructor(handler: Handler, options?: Options);
/***
* Parses a chunk of data and calls the corresponding callbacks.
* @param input
*/
write(input: string): void;
/***
* alias for backwards compat
*/
parseChunk(input: string): void;
/***
* Parses the end of the buffer and clears the stack, calls onend.
*/
end(): void;
/***
* alias for backwards compat
*/
done(): void;
/***
* Resets the parser, parses the data & calls end.
* @param input
*/
parseComplete(input: string): void;
/***
* Resets buffer & stack, calls onreset.
*/
reset(): void;
}
}

View File

@@ -0,0 +1,19 @@
{
"resolution": "main",
"tree": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\@types\\htmlparser2\\package.json",
"raw": "npm:@types/htmlparser2",
"main": "index",
"version": "3.7.31",
"dependencies": {
"@types/node": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\@types\\node\\package.json",
"raw": "npm:@types/node",
"main": "",
"version": "4.2.22",
"name": "@types/node"
}
},
"name": "@types/htmlparser2"
}
}

View File

@@ -0,0 +1,70 @@
// Generated by typings
// Source: node_modules/@types/sanitize-html/index.d.ts
declare module 'sanitize-html' {
// Type definitions for sanitize-html 1.18.2
// Project: https://github.com/punkave/sanitize-html
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Afshin Darian <https://github.com/afshin>
// BehindTheMath <https://github.com/BehindTheMath>
// Rinze de Laat <https://github.com/biermeester>
// Will Gibson <https://github.com/WillGibson>
// A penguin <https://github.com/sirMerr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {Options} from 'htmlparser2';
export = sanitize;
function sanitize(dirty: string, options?: sanitize.IOptions): string;
namespace sanitize {
type Attributes = { [attr: string]: string };
type Tag = { tagName: string; attribs: Attributes; text?: string; };
type Transformer = (tagName: string, attribs: Attributes) => Tag;
interface IDefaults {
allowedAttributes: { [index: string]: string[] };
allowedSchemes: string[];
allowedSchemesByTag: { [index: string]: string[] };
allowedTags: string[];
selfClosing: string[];
}
interface IFrame {
tag: string;
attribs: { [index: string]: string };
text: string;
tagPosition: number;
}
interface IOptions {
allowedAttributes?: { [index: string]: string[] } | boolean;
allowedStyles?: { [index: string]: { [index: string]: RegExp[] } };
allowedClasses?: { [index: string]: string[] } | boolean;
allowedIframeHostnames?: string[];
allowedSchemes?: string[] | boolean;
allowedSchemesByTag?: { [index: string]: string[] } | boolean;
allowedSchemesAppliedToAttributes?: string[];
allowProtocolRelative?: boolean;
allowedTags?: string[] | boolean;
exclusiveFilter?: (frame: IFrame) => boolean;
nonTextTags?: string[];
selfClosing?: string[];
transformTags?: { [tagName: string]: string | Transformer };
parser?: Options;
}
var defaults: IDefaults;
function simpleTransform(tagName: string, attribs: Attributes, merge?: boolean): Transformer;
}
}

View File

@@ -0,0 +1,28 @@
{
"resolution": "main",
"tree": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\@types\\sanitize-html\\package.json",
"raw": "npm:@types/sanitize-html",
"main": "index",
"version": "1.18.2",
"dependencies": {
"@types/htmlparser2": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\@types\\htmlparser2\\package.json",
"raw": "npm:@types/htmlparser2",
"main": "",
"version": "3.7.31",
"dependencies": {
"@types/node": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\@types\\node\\package.json",
"raw": "npm:@types/node",
"main": "",
"version": "4.2.22",
"name": "@types/node"
}
},
"name": "@types/htmlparser2"
}
},
"name": "@types/sanitize-html"
}
}

50
src/typings/modules/ansi_up/index.d.ts vendored Normal file
View File

@@ -0,0 +1,50 @@
// Generated by typings
// Source: node_modules/ansi_up/dist/ansi_up.d.ts
declare module 'ansi_up' {
export interface AU_Color {
rgb: number[];
class_name: string;
}
export interface TextWithAttr {
fg: AU_Color;
bg: AU_Color;
bold: boolean;
text: string;
}
export interface Formatter {
transform(fragment: TextWithAttr, instance: AnsiUp): any;
compose(segments: any[], instance: AnsiUp): any;
}
function rgx(tmplObj: any, ...subst: any[]): RegExp;
export default class AnsiUp {
VERSION: string;
ansi_colors: {
rgb: number[];
class_name: string;
}[][];
htmlFormatter: Formatter;
textFormatter: Formatter;
private palette_256;
private fg;
private bg;
private bold;
private _use_classes;
private _escape_for_html;
private _sgr_regex;
private _buffer;
constructor();
use_classes: boolean;
escape_for_html: boolean;
private setup_256_palette();
private old_escape_for_html(txt);
private old_linkify(txt);
private detect_incomplete_ansi(txt);
private detect_incomplete_link(txt);
ansi_to(txt: string, formatter: Formatter): any;
ansi_to_html(txt: string): string;
ansi_to_text(txt: string): string;
private with_state(text);
private handle_incomplete_sequences(chunks);
private process_ansi(block);
}
}

View File

@@ -0,0 +1,8 @@
{
"resolution": "main",
"tree": {
"src": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\ansi_up\\dist\\ansi_up.d.ts",
"raw": "npm:ansi_up/dist/ansi_up.d.ts",
"typings": "C:\\Raj\\CodeBase\\Branch\\azuredatastudio\\node_modules\\ansi_up\\dist\\ansi_up.d.ts"
}
}