@finos/legend-lego 0.1.13 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/{src/code-editor/CodeEditorConfig.ts → lib/application/ActivityBar.d.ts} +7 -16
  2. package/lib/application/ActivityBar.d.ts.map +1 -0
  3. package/lib/application/ActivityBar.js +19 -0
  4. package/lib/application/ActivityBar.js.map +1 -0
  5. package/lib/application/index.d.ts +1 -0
  6. package/lib/application/index.d.ts.map +1 -1
  7. package/lib/application/index.js +1 -0
  8. package/lib/application/index.js.map +1 -1
  9. package/lib/code-editor/CodeDiffView.d.ts +1 -1
  10. package/lib/code-editor/CodeDiffView.d.ts.map +1 -1
  11. package/lib/code-editor/CodeDiffView.js +4 -11
  12. package/lib/code-editor/CodeDiffView.js.map +1 -1
  13. package/lib/code-editor/CodeEditor.d.ts +5 -2
  14. package/lib/code-editor/CodeEditor.d.ts.map +1 -1
  15. package/lib/code-editor/CodeEditor.js +15 -17
  16. package/lib/code-editor/CodeEditor.js.map +1 -1
  17. package/lib/code-editor/CodeEditorTheme.d.ts +39 -0
  18. package/lib/code-editor/CodeEditorTheme.d.ts.map +1 -0
  19. package/lib/code-editor/CodeEditorTheme.js +72 -0
  20. package/lib/code-editor/CodeEditorTheme.js.map +1 -0
  21. package/lib/code-editor/CodeEditorUtils.d.ts +11 -0
  22. package/lib/code-editor/CodeEditorUtils.d.ts.map +1 -1
  23. package/lib/code-editor/CodeEditorUtils.js +23 -0
  24. package/lib/code-editor/CodeEditorUtils.js.map +1 -1
  25. package/lib/code-editor/PureLanguage.d.ts +38 -0
  26. package/lib/code-editor/PureLanguage.d.ts.map +1 -0
  27. package/lib/code-editor/PureLanguage.js +39 -0
  28. package/lib/code-editor/PureLanguage.js.map +1 -0
  29. package/lib/code-editor/PureLanguageService.d.ts +0 -22
  30. package/lib/code-editor/PureLanguageService.d.ts.map +1 -1
  31. package/lib/code-editor/PureLanguageService.js +3 -48
  32. package/lib/code-editor/PureLanguageService.js.map +1 -1
  33. package/lib/code-editor/index.d.ts +3 -2
  34. package/lib/code-editor/index.d.ts.map +1 -1
  35. package/lib/code-editor/index.js +3 -2
  36. package/lib/code-editor/index.js.map +1 -1
  37. package/lib/code-editor/themes/Github-Theme-dark-dimmed.json +613 -0
  38. package/lib/code-editor/themes/Github-Theme-dark.json +513 -0
  39. package/lib/code-editor/themes/Material-Theme-Darker.json +816 -0
  40. package/lib/code-editor/themes/Material-Theme-Default.json +816 -0
  41. package/lib/code-editor/themes/MonacoEditorThemeUtils.d.ts +31 -0
  42. package/lib/code-editor/themes/MonacoEditorThemeUtils.d.ts.map +1 -0
  43. package/lib/code-editor/themes/MonacoEditorThemeUtils.js +88 -0
  44. package/lib/code-editor/themes/MonacoEditorThemeUtils.js.map +1 -0
  45. package/lib/code-editor/themes/OneDark-Pro-darker.json +2061 -0
  46. package/lib/code-editor/themes/OneDark-Pro.json +2090 -0
  47. package/lib/code-editor/themes/solarized-dark-color-theme.json +398 -0
  48. package/lib/data-grid/DataGrid.d.ts.map +1 -1
  49. package/lib/data-grid/DataGrid.js +13 -1
  50. package/lib/data-grid/DataGrid.js.map +1 -1
  51. package/lib/index.css +2 -2
  52. package/lib/index.css.map +1 -1
  53. package/package.json +9 -9
  54. package/{lib/code-editor/CodeEditorConfig.d.ts → src/application/ActivityBar.tsx} +16 -15
  55. package/src/application/index.ts +1 -0
  56. package/src/code-editor/CodeDiffView.tsx +4 -12
  57. package/src/code-editor/CodeEditor.tsx +25 -22
  58. package/src/code-editor/CodeEditorTheme.ts +118 -0
  59. package/src/code-editor/CodeEditorUtils.ts +55 -0
  60. package/src/code-editor/PureLanguage.ts +42 -0
  61. package/src/code-editor/PureLanguageService.ts +3 -56
  62. package/src/code-editor/index.ts +3 -5
  63. package/src/code-editor/themes/Github-Theme-dark-dimmed.json +613 -0
  64. package/src/code-editor/themes/Github-Theme-dark.json +513 -0
  65. package/src/code-editor/themes/Material-Theme-Darker.json +816 -0
  66. package/src/code-editor/themes/Material-Theme-Default.json +816 -0
  67. package/src/code-editor/themes/MonacoEditorThemeUtils.ts +128 -0
  68. package/src/code-editor/themes/OneDark-Pro-darker.json +2061 -0
  69. package/src/code-editor/themes/OneDark-Pro.json +2090 -0
  70. package/src/code-editor/themes/README.md +8 -0
  71. package/src/code-editor/themes/solarized-dark-color-theme.json +423 -0
  72. package/src/data-grid/DataGrid.tsx +12 -1
  73. package/tsconfig.json +12 -2
  74. package/lib/code-editor/CodeEditorConfig.d.ts.map +0 -1
  75. package/lib/code-editor/CodeEditorConfig.js +0 -33
  76. package/lib/code-editor/CodeEditorConfig.js.map +0 -1
@@ -0,0 +1,398 @@
1
+ {
2
+ "name": "Solarized (dark)",
3
+ "tokenColors": [
4
+ {
5
+ "settings": {
6
+ "foreground": "#839496"
7
+ }
8
+ },
9
+ {
10
+ "scope": [
11
+ "meta.embedded",
12
+ "source.groovy.embedded",
13
+ "string meta.image.inline.markdown"
14
+ ],
15
+ "settings": {
16
+ "foreground": "#839496"
17
+ }
18
+ },
19
+ {
20
+ "name": "Comment",
21
+ "scope": "comment",
22
+ "settings": {
23
+ "fontStyle": "italic",
24
+ "foreground": "#586E75"
25
+ }
26
+ },
27
+ {
28
+ "name": "String",
29
+ "scope": "string",
30
+ "settings": {
31
+ "foreground": "#2AA198"
32
+ }
33
+ },
34
+ {
35
+ "name": "Regexp",
36
+ "scope": "string.regexp",
37
+ "settings": {
38
+ "foreground": "#DC322F"
39
+ }
40
+ },
41
+ {
42
+ "name": "Number",
43
+ "scope": "constant.numeric",
44
+ "settings": {
45
+ "foreground": "#D33682"
46
+ }
47
+ },
48
+ {
49
+ "name": "Variable",
50
+ "scope": ["variable.language", "variable.other"],
51
+ "settings": {
52
+ "foreground": "#268BD2"
53
+ }
54
+ },
55
+ {
56
+ "name": "Keyword",
57
+ "scope": "keyword",
58
+ "settings": {
59
+ "foreground": "#859900"
60
+ }
61
+ },
62
+ {
63
+ "name": "Storage",
64
+ "scope": "storage",
65
+ "settings": {
66
+ "fontStyle": "bold",
67
+ "foreground": "#93A1A1"
68
+ }
69
+ },
70
+ {
71
+ "name": "Class name",
72
+ "scope": [
73
+ "entity.name.class",
74
+ "entity.name.type",
75
+ "entity.name.namespace",
76
+ "entity.name.scope-resolution"
77
+ ],
78
+ "settings": {
79
+ "fontStyle": "",
80
+ "foreground": "#CB4B16"
81
+ }
82
+ },
83
+ {
84
+ "name": "Function name",
85
+ "scope": "entity.name.function",
86
+ "settings": {
87
+ "foreground": "#268BD2"
88
+ }
89
+ },
90
+ {
91
+ "name": "Variable start",
92
+ "scope": "punctuation.definition.variable",
93
+ "settings": {
94
+ "foreground": "#859900"
95
+ }
96
+ },
97
+ {
98
+ "name": "Embedded code markers",
99
+ "scope": [
100
+ "punctuation.section.embedded.begin",
101
+ "punctuation.section.embedded.end"
102
+ ],
103
+ "settings": {
104
+ "foreground": "#DC322F"
105
+ }
106
+ },
107
+ {
108
+ "name": "Built-in constant",
109
+ "scope": ["constant.language", "meta.preprocessor"],
110
+ "settings": {
111
+ "foreground": "#B58900"
112
+ }
113
+ },
114
+ {
115
+ "name": "Support.construct",
116
+ "scope": ["support.function.construct", "keyword.other.new"],
117
+ "settings": {
118
+ "foreground": "#CB4B16"
119
+ }
120
+ },
121
+ {
122
+ "name": "User-defined constant",
123
+ "scope": ["constant.character", "constant.other"],
124
+ "settings": {
125
+ "foreground": "#CB4B16"
126
+ }
127
+ },
128
+ {
129
+ "name": "Inherited class",
130
+ "scope": "entity.other.inherited-class",
131
+ "settings": {
132
+ "foreground": "#6C71C4"
133
+ }
134
+ },
135
+ {
136
+ "name": "Function argument",
137
+ "scope": "variable.parameter",
138
+ "settings": {}
139
+ },
140
+ {
141
+ "name": "Tag name",
142
+ "scope": "entity.name.tag",
143
+ "settings": {
144
+ "foreground": "#268BD2"
145
+ }
146
+ },
147
+ {
148
+ "name": "Tag start/end",
149
+ "scope": "punctuation.definition.tag",
150
+ "settings": {
151
+ "foreground": "#586E75"
152
+ }
153
+ },
154
+ {
155
+ "name": "Tag attribute",
156
+ "scope": "entity.other.attribute-name",
157
+ "settings": {
158
+ "foreground": "#93A1A1"
159
+ }
160
+ },
161
+ {
162
+ "name": "Library function",
163
+ "scope": "support.function",
164
+ "settings": {
165
+ "foreground": "#268BD2"
166
+ }
167
+ },
168
+ {
169
+ "name": "Continuation",
170
+ "scope": "punctuation.separator.continuation",
171
+ "settings": {
172
+ "foreground": "#DC322F"
173
+ }
174
+ },
175
+ {
176
+ "name": "Library constant",
177
+ "scope": ["support.constant", "support.variable"],
178
+ "settings": {}
179
+ },
180
+ {
181
+ "name": "Library class/type",
182
+ "scope": ["support.type", "support.class"],
183
+ "settings": {
184
+ "foreground": "#859900"
185
+ }
186
+ },
187
+ {
188
+ "name": "Library Exception",
189
+ "scope": "support.type.exception",
190
+ "settings": {
191
+ "foreground": "#CB4B16"
192
+ }
193
+ },
194
+ {
195
+ "name": "Library variable",
196
+ "scope": "support.other.variable",
197
+ "settings": {}
198
+ },
199
+ {
200
+ "name": "Invalid",
201
+ "scope": "invalid",
202
+ "settings": {
203
+ "foreground": "#DC322F"
204
+ }
205
+ },
206
+ {
207
+ "name": "diff: header",
208
+ "scope": ["meta.diff", "meta.diff.header"],
209
+ "settings": {
210
+ "fontStyle": "italic",
211
+ "foreground": "#268BD2"
212
+ }
213
+ },
214
+ {
215
+ "name": "diff: deleted",
216
+ "scope": "markup.deleted",
217
+ "settings": {
218
+ "fontStyle": "",
219
+ "foreground": "#DC322F"
220
+ }
221
+ },
222
+ {
223
+ "name": "diff: changed",
224
+ "scope": "markup.changed",
225
+ "settings": {
226
+ "fontStyle": "",
227
+ "foreground": "#CB4B16"
228
+ }
229
+ },
230
+ {
231
+ "name": "diff: inserted",
232
+ "scope": "markup.inserted",
233
+ "settings": {
234
+ "foreground": "#859900"
235
+ }
236
+ },
237
+ {
238
+ "name": "Markup Quote",
239
+ "scope": "markup.quote",
240
+ "settings": {
241
+ "foreground": "#859900"
242
+ }
243
+ },
244
+ {
245
+ "name": "Markup Lists",
246
+ "scope": "markup.list",
247
+ "settings": {
248
+ "foreground": "#B58900"
249
+ }
250
+ },
251
+ {
252
+ "name": "Markup Styling",
253
+ "scope": ["markup.bold", "markup.italic"],
254
+ "settings": {
255
+ "foreground": "#D33682"
256
+ }
257
+ },
258
+ {
259
+ "name": "Markup: Strong",
260
+ "scope": "markup.bold",
261
+ "settings": {
262
+ "fontStyle": "bold"
263
+ }
264
+ },
265
+ {
266
+ "name": "Markup: Emphasis",
267
+ "scope": "markup.italic",
268
+ "settings": {
269
+ "fontStyle": "italic"
270
+ }
271
+ },
272
+ {
273
+ "scope": "markup.strikethrough",
274
+ "settings": {
275
+ "fontStyle": "strikethrough"
276
+ }
277
+ },
278
+ {
279
+ "name": "Markup Inline",
280
+ "scope": "markup.inline.raw",
281
+ "settings": {
282
+ "fontStyle": "",
283
+ "foreground": "#2AA198"
284
+ }
285
+ },
286
+ {
287
+ "name": "Markup Headings",
288
+ "scope": "markup.heading",
289
+ "settings": {
290
+ "fontStyle": "bold",
291
+ "foreground": "#268BD2"
292
+ }
293
+ },
294
+ {
295
+ "name": "Markup Setext Header",
296
+ "scope": "markup.heading.setext",
297
+ "settings": {
298
+ "fontStyle": "",
299
+ "foreground": "#268BD2"
300
+ }
301
+ }
302
+ ],
303
+ "colors": {
304
+ "focusBorder": "#2AA19899",
305
+ "selection.background": "#2AA19899",
306
+ "input.background": "#003847",
307
+ "input.foreground": "#93A1A1",
308
+ "input.placeholderForeground": "#93A1A1AA",
309
+ "inputOption.activeBorder": "#2AA19899",
310
+ "inputValidation.infoBorder": "#363b5f",
311
+ "inputValidation.infoBackground": "#052730",
312
+ "inputValidation.warningBackground": "#5d5938",
313
+ "inputValidation.warningBorder": "#9d8a5e",
314
+ "inputValidation.errorBackground": "#571b26",
315
+ "inputValidation.errorBorder": "#a92049",
316
+ "errorForeground": "#ffeaea",
317
+ "badge.background": "#047aa6",
318
+ "progressBar.background": "#047aa6",
319
+ "dropdown.background": "#00212B",
320
+ "dropdown.border": "#2AA19899",
321
+ "button.background": "#2AA19899",
322
+ "list.activeSelectionBackground": "#005A6F",
323
+ "quickInputList.focusBackground": "#005A6F",
324
+ "list.hoverBackground": "#004454AA",
325
+ "list.inactiveSelectionBackground": "#00445488",
326
+ "list.dropBackground": "#00445488",
327
+ "list.highlightForeground": "#1ebcc5",
328
+ "editor.background": "#002B36",
329
+ "editor.foreground": "#839496",
330
+ "editorWidget.background": "#00212B",
331
+ "editorCursor.foreground": "#D30102",
332
+ "editorWhitespace.foreground": "#93A1A180",
333
+ "editor.lineHighlightBackground": "#073642",
334
+ "editorLineNumber.activeForeground": "#949494",
335
+ "editor.selectionBackground": "#274642",
336
+ "minimap.selectionHighlight": "#274642",
337
+ "editorIndentGuide.background": "#93A1A180",
338
+ "editorIndentGuide.activeBackground": "#C3E1E180",
339
+ "editorHoverWidget.background": "#004052",
340
+ "editorMarkerNavigationError.background": "#AB395B",
341
+ "editorMarkerNavigationWarning.background": "#5B7E7A",
342
+ "editor.selectionHighlightBackground": "#005A6FAA",
343
+ "editor.wordHighlightBackground": "#004454AA",
344
+ "editor.wordHighlightStrongBackground": "#005A6FAA",
345
+ "editorBracketHighlight.foreground1": "#cdcdcdff",
346
+ "editorBracketHighlight.foreground2": "#b58900ff",
347
+ "editorBracketHighlight.foreground3": "#d33682ff",
348
+ "peekViewResult.background": "#00212B",
349
+ "peekViewEditor.background": "#10192c",
350
+ "peekViewTitle.background": "#00212B",
351
+ "peekView.border": "#2b2b4a",
352
+ "peekViewEditor.matchHighlightBackground": "#7744AA40",
353
+ "titleBar.activeBackground": "#002C39",
354
+ "editorGroup.border": "#00212B",
355
+ "editorGroup.dropBackground": "#2AA19844",
356
+ "editorGroupHeader.tabsBackground": "#004052",
357
+ "tab.activeForeground": "#d6dbdb",
358
+ "tab.activeBackground": "#002B37",
359
+ "tab.inactiveForeground": "#93A1A1",
360
+ "tab.inactiveBackground": "#004052",
361
+ "tab.border": "#003847",
362
+ "tab.lastPinnedBorder": "#2AA19844",
363
+ "activityBar.background": "#003847",
364
+ "panel.border": "#2b2b4a",
365
+ "sideBar.background": "#00212B",
366
+ "sideBarTitle.foreground": "#93A1A1",
367
+ "statusBar.foreground": "#93A1A1",
368
+ "statusBar.background": "#00212B",
369
+ "statusBar.debuggingBackground": "#00212B",
370
+ "statusBar.noFolderBackground": "#00212B",
371
+ "statusBarItem.remoteBackground": "#2AA19899",
372
+ "ports.iconRunningProcessForeground": "#369432",
373
+ "statusBarItem.prominentBackground": "#003847",
374
+ "statusBarItem.prominentHoverBackground": "#003847",
375
+ "debugToolBar.background": "#00212B",
376
+ "debugExceptionWidget.background": "#00212B",
377
+ "debugExceptionWidget.border": "#AB395B",
378
+ "pickerGroup.foreground": "#2AA19899",
379
+ "pickerGroup.border": "#2AA19899",
380
+ "terminal.ansiBlack": "#073642",
381
+ "terminal.ansiRed": "#dc322f",
382
+ "terminal.ansiGreen": "#859900",
383
+ "terminal.ansiYellow": "#b58900",
384
+ "terminal.ansiBlue": "#268bd2",
385
+ "terminal.ansiMagenta": "#d33682",
386
+ "terminal.ansiCyan": "#2aa198",
387
+ "terminal.ansiWhite": "#eee8d5",
388
+ "terminal.ansiBrightBlack": "#002b36",
389
+ "terminal.ansiBrightRed": "#cb4b16",
390
+ "terminal.ansiBrightGreen": "#586e75",
391
+ "terminal.ansiBrightYellow": "#657b83",
392
+ "terminal.ansiBrightBlue": "#839496",
393
+ "terminal.ansiBrightMagenta": "#6c71c4",
394
+ "terminal.ansiBrightCyan": "#93a1a1",
395
+ "terminal.ansiBrightWhite": "#fdf6e3"
396
+ },
397
+ "semanticHighlighting": true
398
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CAAC,KAAK,GAAG,OAAO,EACtC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GACrD,GAAG,CAAC,OAAO,CAEb;AAED,eAAO,MAAM,0BAA0B,QAAO,IAE7C,CAAC;AAEF,YAAY,EACV,kBAAkB,IAAI,0BAA0B,EAChD,mBAAmB,IAAI,0BAA0B,GAClD,CAAC"}
1
+ {"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CAAC,KAAK,GAAG,OAAO,EACtC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GACrD,GAAG,CAAC,OAAO,CAab;AAED,eAAO,MAAM,0BAA0B,QAAO,IAE7C,CAAC;AAEF,YAAY,EACV,kBAAkB,IAAI,0BAA0B,EAChD,mBAAmB,IAAI,0BAA0B,GAClD,CAAC"}
@@ -18,7 +18,19 @@ import { AgGridReact, } from '@ag-grid-community/react';
18
18
  import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
19
19
  import { ModuleRegistry, } from '@ag-grid-community/core';
20
20
  export function DataGrid(props) {
21
- return _jsx(AgGridReact, { ...props, modules: [ClientSideRowModelModule] });
21
+ return (_jsx(AgGridReact
22
+ // Temporarily disable usage the browser's ResizeObserver as sometimes, this causes the error
23
+ // `ResizeObserver loop limit exceeded` when we zoom in too much, in our cases, the problem
24
+ // seem to arise when the scrollbar visibility changes as row data is being supplied
25
+ // one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
26
+ // See https://github.com/ag-grid/ag-grid/issues/2588
27
+ , {
28
+ // Temporarily disable usage the browser's ResizeObserver as sometimes, this causes the error
29
+ // `ResizeObserver loop limit exceeded` when we zoom in too much, in our cases, the problem
30
+ // seem to arise when the scrollbar visibility changes as row data is being supplied
31
+ // one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
32
+ // See https://github.com/ag-grid/ag-grid/issues/2588
33
+ suppressBrowserResizeObserver: true, ...props, modules: [ClientSideRowModelModule] }));
22
34
  }
23
35
  export const configureDataGridComponent = () => {
24
36
  ModuleRegistry.registerModules([ClientSideRowModelModule]);
@@ -1 +1 @@
1
- {"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,GAGZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAGL,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,QAAQ,CACtB,KAAsD;IAEtD,OAAO,KAAC,WAAW,OAAK,KAAK,EAAE,OAAO,EAAE,CAAC,wBAAwB,CAAC,GAAI,CAAC;AACzE,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAS,EAAE;IACnD,cAAc,CAAC,eAAe,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
1
+ {"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,GAGZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAGL,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,QAAQ,CACtB,KAAsD;IAEtD,OAAO,CACL,KAAC,WAAW;IACV,6FAA6F;IAC7F,2FAA2F;IAC3F,oFAAoF;IACpF,8EAA8E;IAC9E,qDAAqD;;QAJrD,6FAA6F;QAC7F,2FAA2F;QAC3F,oFAAoF;QACpF,8EAA8E;QAC9E,qDAAqD;QACrD,6BAA6B,EAAE,IAAI,KAC/B,KAAK,EACT,OAAO,EAAE,CAAC,wBAAwB,CAAC,GACnC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAS,EAAE;IACnD,cAAc,CAAC,eAAe,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v0.1.13
1
+ /** @license @finos/legend-lego v1.0.1
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- @import"@ag-grid-community/styles/ag-grid.css";@import"@ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{visibility:hidden;display:flex;align-items:center}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem;margin-right:1rem}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background-color:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor--small-font *{font-size:1.2rem}.code-editor__container{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
17
+ @import"@ag-grid-community/styles/ag-grid.css";@import"@ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{visibility:hidden;display:flex;align-items:center}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem;margin-right:1rem}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.activity-bar__item .activity-bar__item__experimental-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:.6rem;right:.6rem;height:1.6rem;width:1.6rem;border-radius:50%;background:var(--color-mauve-50);border:.1rem solid var(--color-dark-grey-280)}.activity-bar__item .activity-bar__item__experimental-badge svg{font-size:1.2rem;color:var(--color-dark-grey-280)}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor--small-font *{font-size:1.2rem}.code-editor__container{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.code-editor__container--padding{border-radius:.2rem}.code-editor__container--padding .code-editor__body{border-radius:.2rem}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,+CACA,uDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BACE,kBDlCJ,aACA,mBCqCI,iCACE,kCACA,iBACA,kBAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,4CAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BD1EF,aACA,mBACA,uBA2BA,YACA,cCgDI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCDrGF,aACA,mBACA,uBA2BA,YACA,cC2EI,cACA,kBACA,mBAEA,wCACE,aACA,cCrHR,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BFPA,aACA,uBESE,eACA,WC9BJ,iBACE,iBAGF,6BACE,iBCJA,wBACE,YACA,WACA,kBACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA,OACA,gBCZJ,kCLYE,aACA,mBKVA,uCLSA,aACA,mBKPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCLLA,aACA,mBKOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCL/BE,aACA,mBKiCA,aAEA,6CLpCA,aACA,mBKsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CLjDA,aACA,mBKmDE","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_activity-bar.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,+CACA,uDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BACE,kBDlCJ,aACA,mBCqCI,iCACE,kCACA,iBACA,kBAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,sCAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BD1EF,aACA,mBACA,uBA2BA,YACA,cCgDI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCDrGF,aACA,mBACA,uBA2BA,YACA,cC2EI,cACA,kBACA,mBAEA,wCACE,aACA,cCpHN,4DFKA,aACA,mBACA,uBEJE,kBACA,UACA,YACA,cACA,aACA,kBACA,iCACA,8CAEA,gEACE,iBACA,iCCfN,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BHPA,aACA,uBGSE,eACA,WC9BJ,iBACE,iBAGF,6BACE,iBCJA,wBACE,YACA,WACA,kBACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA,OACA,gBAGF,iCACE,oBAGF,oDACE,oBCpBJ,kCNYE,aACA,mBMVA,uCNSA,aACA,mBMPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCNLA,aACA,mBMOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCN/BE,aACA,mBMiCA,aAEA,6CNpCA,aACA,mBMsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CNjDA,aACA,mBMmDE","file":"index.css"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "0.1.13",
3
+ "version": "1.0.1",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -51,22 +51,22 @@
51
51
  "@ag-grid-community/core": "29.3.3",
52
52
  "@ag-grid-community/react": "29.3.3",
53
53
  "@ag-grid-community/styles": "29.3.3",
54
- "@finos/legend-application": "15.0.7",
55
- "@finos/legend-art": "7.0.8",
56
- "@finos/legend-graph": "28.1.4",
57
- "@finos/legend-shared": "10.0.3",
54
+ "@finos/legend-application": "15.0.9",
55
+ "@finos/legend-art": "7.0.10",
56
+ "@finos/legend-graph": "28.1.5",
57
+ "@finos/legend-shared": "10.0.4",
58
58
  "@types/css-font-loading-module": "0.0.8",
59
- "@types/react": "18.2.0",
60
- "@types/react-dom": "18.2.1",
59
+ "@types/react": "18.2.1",
60
+ "@types/react-dom": "18.2.2",
61
61
  "mobx": "6.9.0",
62
62
  "mobx-react-lite": "3.4.3",
63
- "monaco-editor": "0.37.1",
63
+ "monaco-editor": "0.38.0",
64
64
  "react": "18.2.0",
65
65
  "react-dnd": "16.0.1",
66
66
  "react-dom": "18.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.57",
69
+ "@finos/legend-dev-utils": "2.0.59",
70
70
  "@jest/globals": "29.5.0",
71
71
  "cross-env": "7.0.3",
72
72
  "eslint": "8.39.0",
@@ -13,19 +13,20 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare enum CODE_EDITOR_THEME {
17
- LEGEND = "legend",
18
- TEMPORARY__VSCODE_LIGHT = "vs"
16
+
17
+ import { SparkleIcon } from '@finos/legend-art';
18
+
19
+ export interface ActivityBarItemConfig {
20
+ mode: string;
21
+ title: string;
22
+ icon: React.ReactElement;
19
23
  }
20
- export declare enum CODE_EDITOR_LANGUAGE {
21
- TEXT = "plaintext",
22
- PURE = "pure",
23
- JSON = "json",
24
- JAVA = "java",
25
- MARKDOWN = "markdown",
26
- SQL = "sql",
27
- XML = "xml",
28
- YAML = "yaml",
29
- GRAPHQL = "graphql"
30
- }
31
- //# sourceMappingURL=CodeEditorConfig.d.ts.map
24
+
25
+ export const ActivityBarItemExperimentalBadge: React.FC = () => (
26
+ <div
27
+ className="activity-bar__item__experimental-badge"
28
+ title="This is an experimental feature"
29
+ >
30
+ <SparkleIcon />
31
+ </div>
32
+ );
@@ -16,6 +16,7 @@
16
16
 
17
17
  export * from './DocumentationLink.js';
18
18
 
19
+ export * from './ActivityBar.js';
19
20
  export * from './TabManager.js';
20
21
  export * from './TabManagerState.js';
21
22
 
@@ -21,7 +21,6 @@ import {
21
21
  DEFAULT_TAB_SIZE,
22
22
  useApplicationStore,
23
23
  } from '@finos/legend-application';
24
- import { useResizeDetector } from '@finos/legend-art';
25
24
  import {
26
25
  isString,
27
26
  stringifyLosslessJSON,
@@ -29,10 +28,11 @@ import {
29
28
  tryToFormatLosslessJSONString,
30
29
  } from '@finos/legend-shared';
31
30
  import {
31
+ CODE_EDITOR_LANGUAGE,
32
32
  disposeDiffCodeEditor,
33
33
  getBaseCodeEditorOptions,
34
34
  } from './CodeEditorUtils.js';
35
- import { CODE_EDITOR_LANGUAGE, CODE_EDITOR_THEME } from './CodeEditorConfig.js';
35
+ import { CODE_EDITOR_THEME } from './CodeEditorTheme.js';
36
36
 
37
37
  export const CodeDiffView = observer(
38
38
  (props: {
@@ -48,20 +48,12 @@ export const CodeDiffView = observer(
48
48
  const originalText = from ?? '';
49
49
  const modifiedText = to ?? '';
50
50
 
51
- const { ref, width, height } = useResizeDetector<HTMLDivElement>();
52
-
53
- useEffect(() => {
54
- if (width !== undefined && height !== undefined) {
55
- editor?.layout({ width, height });
56
- }
57
- }, [editor, width, height]);
58
-
59
51
  useEffect(() => {
60
52
  if (!editor && editorRef.current) {
61
53
  const element = editorRef.current;
62
54
  const _editor = monacoEditorAPI.createDiffEditor(element, {
63
55
  ...getBaseCodeEditorOptions(),
64
- theme: CODE_EDITOR_THEME.LEGEND,
56
+ theme: CODE_EDITOR_THEME.DEFAULT_DARK,
65
57
  readOnly: true,
66
58
  });
67
59
  setEditor(_editor);
@@ -88,7 +80,7 @@ export const CodeDiffView = observer(
88
80
  );
89
81
 
90
82
  return (
91
- <div ref={ref} className="code-editor__container">
83
+ <div className="code-editor__container">
92
84
  <div className="code-editor__body" ref={editorRef} />
93
85
  </div>
94
86
  );