@hpcc-js/codemirror 3.6.6 → 3.6.9
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 +4 -4
- 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 +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.6.
|
|
3
|
+
"version": "3.6.9",
|
|
4
4
|
"description": "hpcc-js - Viz Code Mirror",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"update-major": "npx --yes npm-check-updates -u"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hpcc-js/common": "^3.6.
|
|
40
|
+
"@hpcc-js/common": "^3.6.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@hpcc-js/esbuild-plugins": "^1.8.
|
|
43
|
+
"@hpcc-js/esbuild-plugins": "^1.8.3",
|
|
44
44
|
"codemirror": "5.65.20"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
@@ -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": "34c404f172efc43a9caf59e8e463d1f07d469578"
|
|
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,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.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
|
}
|