@hpcc-js/codemirror 2.66.2 → 2.66.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +43 -43
- package/README.md +60 -60
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -3
- package/src/CSSEditor.ts +22 -22
- package/src/DOTEditor.ts +20 -20
- package/src/ECLEditor.css +12 -12
- package/src/ECLEditor.ts +24 -24
- package/src/Editor.css +24 -24
- package/src/Editor.ts +232 -232
- package/src/HTMLEditor.ts +22 -22
- package/src/JSEditor.ts +22 -22
- package/src/JSONEditor.ts +22 -22
- package/src/SQLEditor.ts +22 -22
- package/src/XMLEditor.ts +22 -22
- package/src/YAMLEditor.ts +22 -22
- package/src/__package__.ts +3 -3
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/codemirror",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.4",
|
|
4
4
|
"description": "hpcc-js - Viz Code Mirror",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"update": "npx --yes npm-check-updates -u -t minor"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/common": "^2.73.
|
|
41
|
+
"@hpcc-js/common": "^2.73.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@hpcc-js/bundle": "^2.12.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
57
57
|
},
|
|
58
58
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e9d09185b7cd29dce187ab524d6f03ad0e6abd0e"
|
|
60
60
|
}
|
package/src/CSSEditor.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Editor } from "./Editor";
|
|
2
|
-
|
|
3
|
-
export class CSSEditor extends Editor {
|
|
4
|
-
options(): any {
|
|
5
|
-
return {
|
|
6
|
-
...super.options(),
|
|
7
|
-
mode: "text/css",
|
|
8
|
-
foldGutter: true,
|
|
9
|
-
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
css(): string;
|
|
14
|
-
css(_: string): this;
|
|
15
|
-
css(_?: string): string | this {
|
|
16
|
-
if (!arguments.length) return this.text();
|
|
17
|
-
this.text(_);
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
CSSEditor.prototype._class += " codemirror_CSSEditor";
|
|
1
|
+
import { Editor } from "./Editor";
|
|
2
|
+
|
|
3
|
+
export class CSSEditor extends Editor {
|
|
4
|
+
options(): any {
|
|
5
|
+
return {
|
|
6
|
+
...super.options(),
|
|
7
|
+
mode: "text/css",
|
|
8
|
+
foldGutter: true,
|
|
9
|
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
css(): string;
|
|
14
|
+
css(_: string): this;
|
|
15
|
+
css(_?: string): string | this {
|
|
16
|
+
if (!arguments.length) return this.text();
|
|
17
|
+
this.text(_);
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
CSSEditor.prototype._class += " codemirror_CSSEditor";
|
package/src/DOTEditor.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Editor } from "./Editor";
|
|
2
|
-
|
|
3
|
-
export class DOTEditor extends Editor {
|
|
4
|
-
options(): any {
|
|
5
|
-
return {
|
|
6
|
-
...super.options(),
|
|
7
|
-
mode: "text/x-dot"
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
dot(): string;
|
|
12
|
-
dot(_: string): this;
|
|
13
|
-
dot(_?: string): string | this {
|
|
14
|
-
if (!arguments.length) return this.text();
|
|
15
|
-
this.text(_);
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
DOTEditor.prototype._class += " codemirror_JSEditor";
|
|
1
|
+
import { Editor } from "./Editor";
|
|
2
|
+
|
|
3
|
+
export class DOTEditor extends Editor {
|
|
4
|
+
options(): any {
|
|
5
|
+
return {
|
|
6
|
+
...super.options(),
|
|
7
|
+
mode: "text/x-dot"
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dot(): string;
|
|
12
|
+
dot(_: string): this;
|
|
13
|
+
dot(_?: string): string | this {
|
|
14
|
+
if (!arguments.length) return this.text();
|
|
15
|
+
this.text(_);
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
DOTEditor.prototype._class += " codemirror_JSEditor";
|
package/src/ECLEditor.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.codemirror_ECLEditor .cm-s-default span.cm-comment { color: #008000; }
|
|
2
|
-
.codemirror_ECLEditor .cm-s-default span.cm-keyword { color: #0000ff; }
|
|
3
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable { font-weight: bold; color: #000080; }
|
|
4
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable-2 { color: #800000; }
|
|
5
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable-3 { color: #800000; }
|
|
6
|
-
.codemirror_ECLEditor .cm-s-default span.cm-builtin { color: #800080; }
|
|
7
|
-
.codemirror_ECLEditor .cm-s-default span.cm-string { color: #808080; }
|
|
8
|
-
.codemirror_ECLEditor .cm-s-default span.cm-number, .cm-s-default span.cm-atom { color: #000000; }
|
|
9
|
-
.codemirror_ECLEditor .cm-s-default span.cm-meta {color: #004080;}
|
|
10
|
-
.codemirror_ECLEditor .ErrorLine {background: #cc0000 !important;color:white!important;}
|
|
11
|
-
.codemirror_ECLEditor .WarningLine {background: #ffff99 !important;}
|
|
12
|
-
.codemirror_ECLEditor .highlightline { background: #e8f2ff !important; }
|
|
1
|
+
.codemirror_ECLEditor .cm-s-default span.cm-comment { color: #008000; }
|
|
2
|
+
.codemirror_ECLEditor .cm-s-default span.cm-keyword { color: #0000ff; }
|
|
3
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable { font-weight: bold; color: #000080; }
|
|
4
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable-2 { color: #800000; }
|
|
5
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable-3 { color: #800000; }
|
|
6
|
+
.codemirror_ECLEditor .cm-s-default span.cm-builtin { color: #800080; }
|
|
7
|
+
.codemirror_ECLEditor .cm-s-default span.cm-string { color: #808080; }
|
|
8
|
+
.codemirror_ECLEditor .cm-s-default span.cm-number, .cm-s-default span.cm-atom { color: #000000; }
|
|
9
|
+
.codemirror_ECLEditor .cm-s-default span.cm-meta {color: #004080;}
|
|
10
|
+
.codemirror_ECLEditor .ErrorLine {background: #cc0000 !important;color:white!important;}
|
|
11
|
+
.codemirror_ECLEditor .WarningLine {background: #ffff99 !important;}
|
|
12
|
+
.codemirror_ECLEditor .highlightline { background: #e8f2ff !important; }
|
package/src/ECLEditor.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Editor } from "./Editor";
|
|
2
|
-
|
|
3
|
-
import "../src/ECLEditor.css";
|
|
4
|
-
|
|
5
|
-
export class ECLEditor extends Editor {
|
|
6
|
-
options(): any {
|
|
7
|
-
return {
|
|
8
|
-
...super.options(),
|
|
9
|
-
mode: "text/x-ecl",
|
|
10
|
-
foldGutter: true,
|
|
11
|
-
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
ecl(): string;
|
|
16
|
-
ecl(_: string): this;
|
|
17
|
-
ecl(_?: string): string | this {
|
|
18
|
-
if (!arguments.length) return this.text();
|
|
19
|
-
this.text(_);
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
ECLEditor.prototype._class += " codemirror_ECLEditor";
|
|
1
|
+
import { Editor } from "./Editor";
|
|
2
|
+
|
|
3
|
+
import "../src/ECLEditor.css";
|
|
4
|
+
|
|
5
|
+
export class ECLEditor extends Editor {
|
|
6
|
+
options(): any {
|
|
7
|
+
return {
|
|
8
|
+
...super.options(),
|
|
9
|
+
mode: "text/x-ecl",
|
|
10
|
+
foldGutter: true,
|
|
11
|
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ecl(): string;
|
|
16
|
+
ecl(_: string): this;
|
|
17
|
+
ecl(_?: string): string | this {
|
|
18
|
+
if (!arguments.length) return this.text();
|
|
19
|
+
this.text(_);
|
|
20
|
+
return this;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
ECLEditor.prototype._class += " codemirror_ECLEditor";
|
package/src/Editor.css
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
.codemirror_Editor {
|
|
2
|
-
border-style: solid;
|
|
3
|
-
border-width: 1px;
|
|
4
|
-
border-color: lightgray;
|
|
5
|
-
}
|
|
6
|
-
.codemirror_Editor .cm-marked-text{
|
|
7
|
-
background-color: yellow;
|
|
8
|
-
}
|
|
9
|
-
.codemirror_Editor .cm-marked-info,
|
|
10
|
-
.codemirror_Editor .cm-marked-error,
|
|
11
|
-
.codemirror_Editor .cm-marked-warning{
|
|
12
|
-
display: inline-block;
|
|
13
|
-
position: relative;
|
|
14
|
-
background-position: left bottom;
|
|
15
|
-
background-repeat: repeat-x;
|
|
16
|
-
}
|
|
17
|
-
.codemirror_Editor .cm-marked-info {
|
|
18
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==");
|
|
19
|
-
}
|
|
20
|
-
.codemirror_Editor .cm-marked-error{
|
|
21
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=");
|
|
22
|
-
}
|
|
23
|
-
.codemirror_Editor .cm-marked-warning {
|
|
24
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=");
|
|
1
|
+
.codemirror_Editor {
|
|
2
|
+
border-style: solid;
|
|
3
|
+
border-width: 1px;
|
|
4
|
+
border-color: lightgray;
|
|
5
|
+
}
|
|
6
|
+
.codemirror_Editor .cm-marked-text{
|
|
7
|
+
background-color: yellow;
|
|
8
|
+
}
|
|
9
|
+
.codemirror_Editor .cm-marked-info,
|
|
10
|
+
.codemirror_Editor .cm-marked-error,
|
|
11
|
+
.codemirror_Editor .cm-marked-warning{
|
|
12
|
+
display: inline-block;
|
|
13
|
+
position: relative;
|
|
14
|
+
background-position: left bottom;
|
|
15
|
+
background-repeat: repeat-x;
|
|
16
|
+
}
|
|
17
|
+
.codemirror_Editor .cm-marked-info {
|
|
18
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==");
|
|
19
|
+
}
|
|
20
|
+
.codemirror_Editor .cm-marked-error{
|
|
21
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=");
|
|
22
|
+
}
|
|
23
|
+
.codemirror_Editor .cm-marked-warning {
|
|
24
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=");
|
|
25
25
|
}
|