@finos/legend-lego 0.1.13 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/{src/code-editor/CodeEditorConfig.ts → lib/application/ActivityBar.d.ts} +7 -16
- package/lib/application/ActivityBar.d.ts.map +1 -0
- package/lib/application/ActivityBar.js +19 -0
- package/lib/application/ActivityBar.js.map +1 -0
- package/lib/application/index.d.ts +1 -0
- package/lib/application/index.d.ts.map +1 -1
- package/lib/application/index.js +1 -0
- package/lib/application/index.js.map +1 -1
- package/lib/code-editor/CodeDiffView.d.ts +1 -1
- package/lib/code-editor/CodeDiffView.d.ts.map +1 -1
- package/lib/code-editor/CodeDiffView.js +4 -11
- package/lib/code-editor/CodeDiffView.js.map +1 -1
- package/lib/code-editor/CodeEditor.d.ts +5 -2
- package/lib/code-editor/CodeEditor.d.ts.map +1 -1
- package/lib/code-editor/CodeEditor.js +15 -17
- package/lib/code-editor/CodeEditor.js.map +1 -1
- package/lib/code-editor/CodeEditorTheme.d.ts +39 -0
- package/lib/code-editor/CodeEditorTheme.d.ts.map +1 -0
- package/lib/code-editor/CodeEditorTheme.js +72 -0
- package/lib/code-editor/CodeEditorTheme.js.map +1 -0
- package/lib/code-editor/CodeEditorUtils.d.ts +11 -0
- package/lib/code-editor/CodeEditorUtils.d.ts.map +1 -1
- package/lib/code-editor/CodeEditorUtils.js +23 -0
- package/lib/code-editor/CodeEditorUtils.js.map +1 -1
- package/lib/code-editor/PureLanguage.d.ts +38 -0
- package/lib/code-editor/PureLanguage.d.ts.map +1 -0
- package/lib/code-editor/PureLanguage.js +39 -0
- package/lib/code-editor/PureLanguage.js.map +1 -0
- package/lib/code-editor/PureLanguageService.d.ts +0 -22
- package/lib/code-editor/PureLanguageService.d.ts.map +1 -1
- package/lib/code-editor/PureLanguageService.js +3 -48
- package/lib/code-editor/PureLanguageService.js.map +1 -1
- package/lib/code-editor/index.d.ts +3 -2
- package/lib/code-editor/index.d.ts.map +1 -1
- package/lib/code-editor/index.js +3 -2
- package/lib/code-editor/index.js.map +1 -1
- package/lib/code-editor/themes/Github-Theme-dark-dimmed.json +613 -0
- package/lib/code-editor/themes/Github-Theme-dark.json +513 -0
- package/lib/code-editor/themes/Material-Theme-Darker.json +816 -0
- package/lib/code-editor/themes/Material-Theme-Default.json +816 -0
- package/lib/code-editor/themes/MonacoEditorThemeUtils.d.ts +31 -0
- package/lib/code-editor/themes/MonacoEditorThemeUtils.d.ts.map +1 -0
- package/lib/code-editor/themes/MonacoEditorThemeUtils.js +88 -0
- package/lib/code-editor/themes/MonacoEditorThemeUtils.js.map +1 -0
- package/lib/code-editor/themes/OneDark-Pro-darker.json +2061 -0
- package/lib/code-editor/themes/OneDark-Pro.json +2090 -0
- package/lib/code-editor/themes/solarized-dark-color-theme.json +398 -0
- package/lib/data-grid/DataGrid.d.ts.map +1 -1
- package/lib/data-grid/DataGrid.js +13 -1
- package/lib/data-grid/DataGrid.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/package.json +7 -7
- package/{lib/code-editor/CodeEditorConfig.d.ts → src/application/ActivityBar.tsx} +16 -15
- package/src/application/index.ts +1 -0
- package/src/code-editor/CodeDiffView.tsx +4 -12
- package/src/code-editor/CodeEditor.tsx +25 -22
- package/src/code-editor/CodeEditorTheme.ts +118 -0
- package/src/code-editor/CodeEditorUtils.ts +55 -0
- package/src/code-editor/PureLanguage.ts +42 -0
- package/src/code-editor/PureLanguageService.ts +3 -56
- package/src/code-editor/index.ts +3 -5
- package/src/code-editor/themes/Github-Theme-dark-dimmed.json +613 -0
- package/src/code-editor/themes/Github-Theme-dark.json +513 -0
- package/src/code-editor/themes/Material-Theme-Darker.json +816 -0
- package/src/code-editor/themes/Material-Theme-Default.json +816 -0
- package/src/code-editor/themes/MonacoEditorThemeUtils.ts +128 -0
- package/src/code-editor/themes/OneDark-Pro-darker.json +2061 -0
- package/src/code-editor/themes/OneDark-Pro.json +2090 -0
- package/src/code-editor/themes/README.md +8 -0
- package/src/code-editor/themes/solarized-dark-color-theme.json +423 -0
- package/src/data-grid/DataGrid.tsx +12 -1
- package/tsconfig.json +12 -2
- package/lib/code-editor/CodeEditorConfig.d.ts.map +0 -1
- package/lib/code-editor/CodeEditorConfig.js +0 -33
- package/lib/code-editor/CodeEditorConfig.js.map +0 -1
@@ -13,28 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
export declare enum PURE_GRAMMAR_TOKEN {
|
17
|
-
WHITESPACE = "",
|
18
|
-
KEYWORD = "keyword",
|
19
|
-
IDENTIFIER = "identifier",
|
20
|
-
OPERATOR = "operator",
|
21
|
-
DELIMITER = "delimiter",
|
22
|
-
PARSER = "parser",
|
23
|
-
NUMBER = "number",
|
24
|
-
DATE = "date",
|
25
|
-
COLOR = "color",
|
26
|
-
PACKAGE = "package",
|
27
|
-
STRING = "string",
|
28
|
-
COMMENT = "comment",
|
29
|
-
LANGUAGE_STRUCT = "language-struct",
|
30
|
-
MULTIPLICITY = "multiplicity",
|
31
|
-
GENERICS = "generics",
|
32
|
-
PROPERTY = "property",
|
33
|
-
PARAMETER = "property",
|
34
|
-
VARIABLE = "variable",
|
35
|
-
TYPE = "type",
|
36
|
-
INVALID = "invalid"
|
37
|
-
}
|
38
16
|
export declare function setupPureLanguageService(options?: {
|
39
17
|
extraKeywords?: string[] | undefined;
|
40
18
|
extraParserKeywords?: string[] | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PureLanguageService.d.ts","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"PureLanguageService.d.ts","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiaH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE;IACjD,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC5C,GAAG,IAAI,CAaP"}
|
@@ -15,57 +15,13 @@
|
|
15
15
|
*/
|
16
16
|
/* eslint-disable prefer-named-capture-group */
|
17
17
|
import { PARSER_SECTION_MARKER, PURE_ELEMENT_NAME, PURE_CONNECTION_NAME, PURE_PARSER, } from '@finos/legend-graph';
|
18
|
-
import {
|
19
|
-
import {
|
18
|
+
import { languages as monacoLanguagesAPI } from 'monaco-editor';
|
19
|
+
import { PURE_GRAMMAR_TOKEN } from './PureLanguage.js';
|
20
|
+
import { CODE_EDITOR_LANGUAGE } from './CodeEditorUtils.js';
|
20
21
|
/**
|
21
22
|
* The postfix to be added to all token types, i.e. identifier.pure, number.pure, etc.
|
22
23
|
*/
|
23
24
|
const PURE_GRAMMAR_TOKEN_POSTFIX = '.pure';
|
24
|
-
export var PURE_GRAMMAR_TOKEN;
|
25
|
-
(function (PURE_GRAMMAR_TOKEN) {
|
26
|
-
PURE_GRAMMAR_TOKEN["WHITESPACE"] = "";
|
27
|
-
PURE_GRAMMAR_TOKEN["KEYWORD"] = "keyword";
|
28
|
-
PURE_GRAMMAR_TOKEN["IDENTIFIER"] = "identifier";
|
29
|
-
PURE_GRAMMAR_TOKEN["OPERATOR"] = "operator";
|
30
|
-
PURE_GRAMMAR_TOKEN["DELIMITER"] = "delimiter";
|
31
|
-
PURE_GRAMMAR_TOKEN["PARSER"] = "parser";
|
32
|
-
PURE_GRAMMAR_TOKEN["NUMBER"] = "number";
|
33
|
-
PURE_GRAMMAR_TOKEN["DATE"] = "date";
|
34
|
-
PURE_GRAMMAR_TOKEN["COLOR"] = "color";
|
35
|
-
PURE_GRAMMAR_TOKEN["PACKAGE"] = "package";
|
36
|
-
PURE_GRAMMAR_TOKEN["STRING"] = "string";
|
37
|
-
PURE_GRAMMAR_TOKEN["COMMENT"] = "comment";
|
38
|
-
PURE_GRAMMAR_TOKEN["LANGUAGE_STRUCT"] = "language-struct";
|
39
|
-
PURE_GRAMMAR_TOKEN["MULTIPLICITY"] = "multiplicity";
|
40
|
-
PURE_GRAMMAR_TOKEN["GENERICS"] = "generics";
|
41
|
-
PURE_GRAMMAR_TOKEN["PROPERTY"] = "property";
|
42
|
-
PURE_GRAMMAR_TOKEN["PARAMETER"] = "property";
|
43
|
-
PURE_GRAMMAR_TOKEN["VARIABLE"] = "variable";
|
44
|
-
PURE_GRAMMAR_TOKEN["TYPE"] = "type";
|
45
|
-
PURE_GRAMMAR_TOKEN["INVALID"] = "invalid";
|
46
|
-
})(PURE_GRAMMAR_TOKEN = PURE_GRAMMAR_TOKEN || (PURE_GRAMMAR_TOKEN = {}));
|
47
|
-
const theme = {
|
48
|
-
base: 'vs-dark',
|
49
|
-
inherit: true,
|
50
|
-
colors: {},
|
51
|
-
rules: [
|
52
|
-
// NOTE: unfortunately, `monaco-editor` only accepts HEX values, not CSS variables
|
53
|
-
{ token: PURE_GRAMMAR_TOKEN.IDENTIFIER, foreground: 'dcdcaa' },
|
54
|
-
{ token: PURE_GRAMMAR_TOKEN.NUMBER, foreground: 'b5cea8' },
|
55
|
-
{ token: PURE_GRAMMAR_TOKEN.DATE, foreground: 'b5cea8' },
|
56
|
-
{ token: PURE_GRAMMAR_TOKEN.COLOR, foreground: 'b5cea8' },
|
57
|
-
{ token: PURE_GRAMMAR_TOKEN.PACKAGE, foreground: '808080' },
|
58
|
-
{ token: PURE_GRAMMAR_TOKEN.PARSER, foreground: 'c586c0' },
|
59
|
-
{ token: PURE_GRAMMAR_TOKEN.LANGUAGE_STRUCT, foreground: 'c586c0' },
|
60
|
-
{ token: PURE_GRAMMAR_TOKEN.MULTIPLICITY, foreground: '2d796b' },
|
61
|
-
{ token: PURE_GRAMMAR_TOKEN.GENERICS, foreground: '2d796b' },
|
62
|
-
{ token: PURE_GRAMMAR_TOKEN.PROPERTY, foreground: '9cdcfe' },
|
63
|
-
{ token: PURE_GRAMMAR_TOKEN.PARAMETER, foreground: '9cdcfe' },
|
64
|
-
{ token: PURE_GRAMMAR_TOKEN.VARIABLE, foreground: '4fc1ff' },
|
65
|
-
{ token: PURE_GRAMMAR_TOKEN.TYPE, foreground: '3dc9b0' },
|
66
|
-
{ token: `${PURE_GRAMMAR_TOKEN.STRING}.escape`, foreground: 'd7ba7d' },
|
67
|
-
],
|
68
|
-
};
|
69
25
|
// Taken from `monaco-languages` configuration for Java in order to do propert brace matching
|
70
26
|
// See https://github.com/microsoft/monaco-languages/blob/master/src/java/java.ts
|
71
27
|
const configuration = {
|
@@ -429,7 +385,6 @@ const generateLanguageMonarch = (extraKeywords, extraParsers) =>
|
|
429
385
|
},
|
430
386
|
});
|
431
387
|
export function setupPureLanguageService(options) {
|
432
|
-
monacoEditorAPI.defineTheme(CODE_EDITOR_THEME.LEGEND, theme);
|
433
388
|
monacoLanguagesAPI.register({ id: CODE_EDITOR_LANGUAGE.PURE });
|
434
389
|
monacoLanguagesAPI.setLanguageConfiguration(CODE_EDITOR_LANGUAGE.PURE, configuration);
|
435
390
|
monacoLanguagesAPI.setMonarchTokensProvider(CODE_EDITOR_LANGUAGE.PURE, generateLanguageMonarch(options?.extraKeywords ?? [], options?.extraParserKeywords ?? []));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PureLanguageService.js","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+CAA+C;AAC/C,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,
|
1
|
+
{"version":3,"file":"PureLanguageService.js","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+CAA+C;AAC/C,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO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C,CAAC;IAC/D,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,aAAa,CACd,CAAC;IACF,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,uBAAuB,CACrB,OAAO,EAAE,aAAa,IAAI,EAAE,EAC5B,OAAO,EAAE,mBAAmB,IAAI,EAAE,CACnC,CACF,CAAC;AACJ,CAAC"}
|
@@ -13,10 +13,11 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
export {
|
16
|
+
export { setupPureLanguageService } from './PureLanguageService.js';
|
17
|
+
export { PURE_GRAMMAR_TOKEN } from './PureLanguage.js';
|
17
18
|
export * from './PureLanguageCodeEditorSupport.js';
|
18
|
-
export * from './CodeEditorConfig.js';
|
19
19
|
export * from './CodeEditor.js';
|
20
20
|
export * from './CodeEditorUtils.js';
|
21
|
+
export * from './CodeEditorTheme.js';
|
21
22
|
export * from './CodeDiffView.js';
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/code-editor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/code-editor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
package/lib/code-editor/index.js
CHANGED
@@ -13,10 +13,11 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
export {
|
16
|
+
export { setupPureLanguageService } from './PureLanguageService.js';
|
17
|
+
export { PURE_GRAMMAR_TOKEN } from './PureLanguage.js';
|
17
18
|
export * from './PureLanguageCodeEditorSupport.js';
|
18
|
-
export * from './CodeEditorConfig.js';
|
19
19
|
export * from './CodeEditor.js';
|
20
20
|
export * from './CodeEditorUtils.js';
|
21
|
+
export * from './CodeEditorTheme.js';
|
21
22
|
export * from './CodeDiffView.js';
|
22
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/code-editor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/code-editor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|