@hpcc-js/codemirror 3.7.4 → 3.7.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/codemirror",
3
- "version": "3.7.4",
3
+ "version": "3.7.6",
4
4
  "description": "hpcc-js - Viz Code Mirror",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -23,10 +23,12 @@
23
23
  "scripts": {
24
24
  "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
25
25
  "bundle": "vite build",
26
- "bundle-watch": "vite --port 5501",
26
+ "bundle-watch": "vite build --watch",
27
+ "bundle-serve": "vite --port 5501",
27
28
  "gen-types": "tsc --project tsconfig.json",
28
29
  "gen-types-watch": "npm run gen-types -- --watch",
29
30
  "build": "run-p gen-types bundle",
31
+ "watch": "run-p gen-types-watch bundle-watch",
30
32
  "lint": "eslint ./src",
31
33
  "lint-fix": "eslint --fix src/**/*.ts",
32
34
  "docs": "typedoc --options tdoptions.json .",
@@ -37,10 +39,10 @@
37
39
  "update-major": "npx --yes npm-check-updates -u"
38
40
  },
39
41
  "dependencies": {
40
- "@hpcc-js/common": "^3.7.5"
42
+ "@hpcc-js/common": "^3.7.7"
41
43
  },
42
44
  "devDependencies": {
43
- "@hpcc-js/esbuild-plugins": "^1.8.7",
45
+ "@hpcc-js/esbuild-plugins": "^1.8.8",
44
46
  "codemirror": "5.65.21"
45
47
  },
46
48
  "repository": {
@@ -54,5 +56,5 @@
54
56
  "url": "https://github.com/hpcc-systems/Visualization/issues"
55
57
  },
56
58
  "homepage": "https://github.com/hpcc-systems/Visualization",
57
- "gitHead": "f8bdd58fc6914054a2313a87bbe1257dc9720545"
59
+ "gitHead": "630e839917f1cc38f6e3324db5a9ac991234599a"
58
60
  }
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
  }