@hpcc-js/codemirror 3.7.4 → 3.7.5
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 +66 -66
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/CSSEditor.ts +22 -22
- package/src/DOTEditor.ts +20 -20
- package/src/ECLEditor.css +49 -49
- package/src/ECLEditor.ts +24 -24
- package/src/Editor.css +29 -29
- 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/src/codemirror-shim.ts +33 -33
- package/src/mode/dot/dot.ts +94 -94
- package/src/mode/markdown/markdown.ts +879 -879
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/codemirror",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.5",
|
|
4
4
|
"description": "hpcc-js - Viz Code Mirror",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"update-major": "npx --yes npm-check-updates -u"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/common": "^3.7.
|
|
40
|
+
"@hpcc-js/common": "^3.7.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@hpcc-js/esbuild-plugins": "^1.8.7",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "6f134126379fe058a052986758b792d7b4ddb84b"
|
|
58
58
|
}
|
package/src/CSSEditor.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Editor } from "./Editor.ts";
|
|
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.ts";
|
|
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.ts";
|
|
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_DOTEditor";
|
|
1
|
+
import { Editor } from "./Editor.ts";
|
|
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_DOTEditor";
|
package/src/ECLEditor.css
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
.codemirror_ECLEditor .cm-s-default span.cm-comment {
|
|
2
|
-
color: #008000;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.codemirror_ECLEditor .cm-s-default span.cm-keyword {
|
|
6
|
-
color: #0000ff;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable {
|
|
10
|
-
font-weight: bold;
|
|
11
|
-
color: #000080;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable-2 {
|
|
15
|
-
color: #800000;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.codemirror_ECLEditor .cm-s-default span.cm-variable-3 {
|
|
19
|
-
color: #800000;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.codemirror_ECLEditor .cm-s-default span.cm-builtin {
|
|
23
|
-
color: #800080;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.codemirror_ECLEditor .cm-s-default span.cm-string {
|
|
27
|
-
color: #808080;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.codemirror_ECLEditor .cm-s-default span.cm-number,
|
|
31
|
-
.cm-s-default span.cm-atom {
|
|
32
|
-
color: #000000;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.codemirror_ECLEditor .cm-s-default span.cm-meta {
|
|
36
|
-
color: #004080;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.codemirror_ECLEditor .ErrorLine {
|
|
40
|
-
background: #cc0000 !important;
|
|
41
|
-
color: white !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.codemirror_ECLEditor .WarningLine {
|
|
45
|
-
background: #ffff99 !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.codemirror_ECLEditor .highlightline {
|
|
49
|
-
background: #e8f2ff !important;
|
|
1
|
+
.codemirror_ECLEditor .cm-s-default span.cm-comment {
|
|
2
|
+
color: #008000;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.codemirror_ECLEditor .cm-s-default span.cm-keyword {
|
|
6
|
+
color: #0000ff;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable {
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
color: #000080;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable-2 {
|
|
15
|
+
color: #800000;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.codemirror_ECLEditor .cm-s-default span.cm-variable-3 {
|
|
19
|
+
color: #800000;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.codemirror_ECLEditor .cm-s-default span.cm-builtin {
|
|
23
|
+
color: #800080;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.codemirror_ECLEditor .cm-s-default span.cm-string {
|
|
27
|
+
color: #808080;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.codemirror_ECLEditor .cm-s-default span.cm-number,
|
|
31
|
+
.cm-s-default span.cm-atom {
|
|
32
|
+
color: #000000;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.codemirror_ECLEditor .cm-s-default span.cm-meta {
|
|
36
|
+
color: #004080;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.codemirror_ECLEditor .ErrorLine {
|
|
40
|
+
background: #cc0000 !important;
|
|
41
|
+
color: white !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.codemirror_ECLEditor .WarningLine {
|
|
45
|
+
background: #ffff99 !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.codemirror_ECLEditor .highlightline {
|
|
49
|
+
background: #e8f2ff !important;
|
|
50
50
|
}
|
package/src/ECLEditor.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Editor } from "./Editor.ts";
|
|
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.ts";
|
|
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,30 +1,30 @@
|
|
|
1
|
-
.codemirror_Editor {
|
|
2
|
-
border-style: solid;
|
|
3
|
-
border-width: 1px;
|
|
4
|
-
border-color: lightgray;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.codemirror_Editor .cm-marked-text {
|
|
8
|
-
background-color: yellow;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.codemirror_Editor .cm-marked-info,
|
|
12
|
-
.codemirror_Editor .cm-marked-error,
|
|
13
|
-
.codemirror_Editor .cm-marked-warning {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
position: relative;
|
|
16
|
-
background-position: left bottom;
|
|
17
|
-
background-repeat: repeat-x;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.codemirror_Editor .cm-marked-info {
|
|
21
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.codemirror_Editor .cm-marked-error {
|
|
25
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=");
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.codemirror_Editor .cm-marked-warning {
|
|
29
|
-
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
|
+
|
|
7
|
+
.codemirror_Editor .cm-marked-text {
|
|
8
|
+
background-color: yellow;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.codemirror_Editor .cm-marked-info,
|
|
12
|
+
.codemirror_Editor .cm-marked-error,
|
|
13
|
+
.codemirror_Editor .cm-marked-warning {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
position: relative;
|
|
16
|
+
background-position: left bottom;
|
|
17
|
+
background-repeat: repeat-x;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.codemirror_Editor .cm-marked-info {
|
|
21
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.codemirror_Editor .cm-marked-error {
|
|
25
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.codemirror_Editor .cm-marked-warning {
|
|
29
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=");
|
|
30
30
|
}
|