@finos/legend-lego 0.1.12 → 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
@@ -0,0 +1,8 @@
|
|
1
|
+
# Visual Studio Code Theme
|
2
|
+
|
3
|
+
Since `monaco-editor` and `vscode` [use different theme systems](https://stackoverflow.com/questions/65959169/how-to-use-a-vsc-theme-in-monaco-editor), we need to convert themes from the latter. Here, we create a little utilities to convert themes downloaded from [marketplace](https://marketplace.visualstudio.com/). Following is the detailed version tracking of these themes:
|
4
|
+
|
5
|
+
1. [Material Theme](https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme): Version [33.8.0](https://marketplace.visualstudio.com/_apis/public/gallery/publishers/Equinusocio/vsextensions/vsc-material-theme/33.8.0/vspackage) - 3/24/2023
|
6
|
+
2. [GitHub Theme](https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme): Version [6.3.4](https://marketplace.visualstudio.com/_apis/public/gallery/publishers/GitHub/vsextensions/github-vscode-theme/6.3.4/vspackage) - 3/28/2023
|
7
|
+
3. [One Dark Pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme): Version [3.15.8](https://marketplace.visualstudio.com/_apis/public/gallery/publishers/zhuangtongfa/vsextensions/Material-theme/3.15.8/vspackage) - 3/9/2023
|
8
|
+
4. [Solarized Dark](https://github.com/microsoft/vscode/blob/main/extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json): Commit [cf43717e18bbf1be6bd49a26e2cdadd61435fb8a](https://github.com/microsoft/vscode/commit/cf43717e18bbf1be6bd49a26e2cdadd61435fb8a) - 8/1/2022
|
@@ -0,0 +1,423 @@
|
|
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
|
+
|
306
|
+
"selection.background": "#2AA19899",
|
307
|
+
|
308
|
+
"input.background": "#003847",
|
309
|
+
"input.foreground": "#93A1A1",
|
310
|
+
"input.placeholderForeground": "#93A1A1AA",
|
311
|
+
|
312
|
+
"inputOption.activeBorder": "#2AA19899",
|
313
|
+
"inputValidation.infoBorder": "#363b5f",
|
314
|
+
"inputValidation.infoBackground": "#052730",
|
315
|
+
"inputValidation.warningBackground": "#5d5938",
|
316
|
+
"inputValidation.warningBorder": "#9d8a5e",
|
317
|
+
"inputValidation.errorBackground": "#571b26",
|
318
|
+
"inputValidation.errorBorder": "#a92049",
|
319
|
+
|
320
|
+
"errorForeground": "#ffeaea",
|
321
|
+
|
322
|
+
"badge.background": "#047aa6",
|
323
|
+
"progressBar.background": "#047aa6",
|
324
|
+
|
325
|
+
"dropdown.background": "#00212B",
|
326
|
+
"dropdown.border": "#2AA19899",
|
327
|
+
|
328
|
+
"button.background": "#2AA19899",
|
329
|
+
|
330
|
+
"list.activeSelectionBackground": "#005A6F",
|
331
|
+
|
332
|
+
"quickInputList.focusBackground": "#005A6F",
|
333
|
+
"list.hoverBackground": "#004454AA",
|
334
|
+
"list.inactiveSelectionBackground": "#00445488",
|
335
|
+
"list.dropBackground": "#00445488",
|
336
|
+
"list.highlightForeground": "#1ebcc5",
|
337
|
+
|
338
|
+
"editor.background": "#002B36",
|
339
|
+
"editor.foreground": "#839496",
|
340
|
+
"editorWidget.background": "#00212B",
|
341
|
+
"editorCursor.foreground": "#D30102",
|
342
|
+
"editorWhitespace.foreground": "#93A1A180",
|
343
|
+
"editor.lineHighlightBackground": "#073642",
|
344
|
+
"editorLineNumber.activeForeground": "#949494",
|
345
|
+
"editor.selectionBackground": "#274642",
|
346
|
+
"minimap.selectionHighlight": "#274642",
|
347
|
+
"editorIndentGuide.background": "#93A1A180",
|
348
|
+
"editorIndentGuide.activeBackground": "#C3E1E180",
|
349
|
+
"editorHoverWidget.background": "#004052",
|
350
|
+
|
351
|
+
"editorMarkerNavigationError.background": "#AB395B",
|
352
|
+
"editorMarkerNavigationWarning.background": "#5B7E7A",
|
353
|
+
|
354
|
+
"editor.selectionHighlightBackground": "#005A6FAA",
|
355
|
+
"editor.wordHighlightBackground": "#004454AA",
|
356
|
+
"editor.wordHighlightStrongBackground": "#005A6FAA",
|
357
|
+
|
358
|
+
"editorBracketHighlight.foreground1": "#cdcdcdff",
|
359
|
+
"editorBracketHighlight.foreground2": "#b58900ff",
|
360
|
+
"editorBracketHighlight.foreground3": "#d33682ff",
|
361
|
+
|
362
|
+
"peekViewResult.background": "#00212B",
|
363
|
+
|
364
|
+
"peekViewEditor.background": "#10192c",
|
365
|
+
"peekViewTitle.background": "#00212B",
|
366
|
+
"peekView.border": "#2b2b4a",
|
367
|
+
"peekViewEditor.matchHighlightBackground": "#7744AA40",
|
368
|
+
|
369
|
+
"titleBar.activeBackground": "#002C39",
|
370
|
+
|
371
|
+
"editorGroup.border": "#00212B",
|
372
|
+
"editorGroup.dropBackground": "#2AA19844",
|
373
|
+
"editorGroupHeader.tabsBackground": "#004052",
|
374
|
+
|
375
|
+
"tab.activeForeground": "#d6dbdb",
|
376
|
+
"tab.activeBackground": "#002B37",
|
377
|
+
"tab.inactiveForeground": "#93A1A1",
|
378
|
+
"tab.inactiveBackground": "#004052",
|
379
|
+
"tab.border": "#003847",
|
380
|
+
"tab.lastPinnedBorder": "#2AA19844",
|
381
|
+
|
382
|
+
"activityBar.background": "#003847",
|
383
|
+
|
384
|
+
"panel.border": "#2b2b4a",
|
385
|
+
|
386
|
+
"sideBar.background": "#00212B",
|
387
|
+
"sideBarTitle.foreground": "#93A1A1",
|
388
|
+
|
389
|
+
"statusBar.foreground": "#93A1A1",
|
390
|
+
"statusBar.background": "#00212B",
|
391
|
+
"statusBar.debuggingBackground": "#00212B",
|
392
|
+
"statusBar.noFolderBackground": "#00212B",
|
393
|
+
"statusBarItem.remoteBackground": "#2AA19899",
|
394
|
+
"ports.iconRunningProcessForeground": "#369432",
|
395
|
+
"statusBarItem.prominentBackground": "#003847",
|
396
|
+
"statusBarItem.prominentHoverBackground": "#003847",
|
397
|
+
|
398
|
+
"debugToolBar.background": "#00212B",
|
399
|
+
"debugExceptionWidget.background": "#00212B",
|
400
|
+
"debugExceptionWidget.border": "#AB395B",
|
401
|
+
|
402
|
+
"pickerGroup.foreground": "#2AA19899",
|
403
|
+
"pickerGroup.border": "#2AA19899",
|
404
|
+
|
405
|
+
"terminal.ansiBlack": "#073642",
|
406
|
+
"terminal.ansiRed": "#dc322f",
|
407
|
+
"terminal.ansiGreen": "#859900",
|
408
|
+
"terminal.ansiYellow": "#b58900",
|
409
|
+
"terminal.ansiBlue": "#268bd2",
|
410
|
+
"terminal.ansiMagenta": "#d33682",
|
411
|
+
"terminal.ansiCyan": "#2aa198",
|
412
|
+
"terminal.ansiWhite": "#eee8d5",
|
413
|
+
"terminal.ansiBrightBlack": "#002b36",
|
414
|
+
"terminal.ansiBrightRed": "#cb4b16",
|
415
|
+
"terminal.ansiBrightGreen": "#586e75",
|
416
|
+
"terminal.ansiBrightYellow": "#657b83",
|
417
|
+
"terminal.ansiBrightBlue": "#839496",
|
418
|
+
"terminal.ansiBrightMagenta": "#6c71c4",
|
419
|
+
"terminal.ansiBrightCyan": "#93a1a1",
|
420
|
+
"terminal.ansiBrightWhite": "#fdf6e3"
|
421
|
+
},
|
422
|
+
"semanticHighlighting": true
|
423
|
+
}
|
@@ -29,7 +29,18 @@ import {
|
|
29
29
|
export function DataGrid<TData = unknown>(
|
30
30
|
props: AgGridReactProps<TData> | AgReactUiProps<TData>,
|
31
31
|
): JSX.Element {
|
32
|
-
return
|
32
|
+
return (
|
33
|
+
<AgGridReact
|
34
|
+
// Temporarily disable usage the browser's ResizeObserver as sometimes, this causes the error
|
35
|
+
// `ResizeObserver loop limit exceeded` when we zoom in too much, in our cases, the problem
|
36
|
+
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
37
|
+
// one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
|
38
|
+
// See https://github.com/ag-grid/ag-grid/issues/2588
|
39
|
+
suppressBrowserResizeObserver={true}
|
40
|
+
{...props}
|
41
|
+
modules={[ClientSideRowModelModule]}
|
42
|
+
/>
|
43
|
+
);
|
33
44
|
}
|
34
45
|
|
35
46
|
export const configureDataGridComponent = (): void => {
|
package/tsconfig.json
CHANGED
@@ -29,15 +29,18 @@
|
|
29
29
|
"files": [
|
30
30
|
"./src/application/TabManagerState.ts",
|
31
31
|
"./src/application/index.ts",
|
32
|
-
"./src/code-editor/
|
32
|
+
"./src/code-editor/CodeEditorTheme.ts",
|
33
33
|
"./src/code-editor/CodeEditorUtils.ts",
|
34
|
+
"./src/code-editor/PureLanguage.ts",
|
34
35
|
"./src/code-editor/PureLanguageCodeEditorSupport.ts",
|
35
36
|
"./src/code-editor/PureLanguageService.ts",
|
36
37
|
"./src/code-editor/__test__.ts",
|
37
38
|
"./src/code-editor/index.ts",
|
38
39
|
"./src/code-editor/__test-utils__/MockedMonacoEditor.ts",
|
40
|
+
"./src/code-editor/themes/MonacoEditorThemeUtils.ts",
|
39
41
|
"./src/data-grid/index.ts",
|
40
42
|
"./src/graph-editor/index.ts",
|
43
|
+
"./src/application/ActivityBar.tsx",
|
41
44
|
"./src/application/DocumentationLink.tsx",
|
42
45
|
"./src/application/FuzzySearchAdvancedConfigMenu.tsx",
|
43
46
|
"./src/application/TabManager.tsx",
|
@@ -46,7 +49,14 @@
|
|
46
49
|
"./src/code-editor/__test-utils__/MonacoEditorMockUtils.tsx",
|
47
50
|
"./src/data-grid/DataGrid.tsx",
|
48
51
|
"./src/graph-editor/ElementIconUtils.tsx",
|
49
|
-
"./src/graph-editor/PackageableElementOption.tsx"
|
52
|
+
"./src/graph-editor/PackageableElementOption.tsx",
|
53
|
+
"./src/code-editor/themes/Github-Theme-dark-dimmed.json",
|
54
|
+
"./src/code-editor/themes/Github-Theme-dark.json",
|
55
|
+
"./src/code-editor/themes/Material-Theme-Darker.json",
|
56
|
+
"./src/code-editor/themes/Material-Theme-Default.json",
|
57
|
+
"./src/code-editor/themes/OneDark-Pro-darker.json",
|
58
|
+
"./src/code-editor/themes/OneDark-Pro.json",
|
59
|
+
"./src/code-editor/themes/solarized-dark-color-theme.json"
|
50
60
|
],
|
51
61
|
"include": [
|
52
62
|
"src/**/*.ts",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeEditorConfig.d.ts","sourceRoot":"","sources":["../../src/code-editor/CodeEditorConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,uBAAuB,OAAO;CAC/B;AAED,oBAAY,oBAAoB;IAC9B,IAAI,cAAc;IAClB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;CACpB"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
export var CODE_EDITOR_THEME;
|
17
|
-
(function (CODE_EDITOR_THEME) {
|
18
|
-
CODE_EDITOR_THEME["LEGEND"] = "legend";
|
19
|
-
CODE_EDITOR_THEME["TEMPORARY__VSCODE_LIGHT"] = "vs";
|
20
|
-
})(CODE_EDITOR_THEME = CODE_EDITOR_THEME || (CODE_EDITOR_THEME = {}));
|
21
|
-
export var CODE_EDITOR_LANGUAGE;
|
22
|
-
(function (CODE_EDITOR_LANGUAGE) {
|
23
|
-
CODE_EDITOR_LANGUAGE["TEXT"] = "plaintext";
|
24
|
-
CODE_EDITOR_LANGUAGE["PURE"] = "pure";
|
25
|
-
CODE_EDITOR_LANGUAGE["JSON"] = "json";
|
26
|
-
CODE_EDITOR_LANGUAGE["JAVA"] = "java";
|
27
|
-
CODE_EDITOR_LANGUAGE["MARKDOWN"] = "markdown";
|
28
|
-
CODE_EDITOR_LANGUAGE["SQL"] = "sql";
|
29
|
-
CODE_EDITOR_LANGUAGE["XML"] = "xml";
|
30
|
-
CODE_EDITOR_LANGUAGE["YAML"] = "yaml";
|
31
|
-
CODE_EDITOR_LANGUAGE["GRAPHQL"] = "graphql";
|
32
|
-
})(CODE_EDITOR_LANGUAGE = CODE_EDITOR_LANGUAGE || (CODE_EDITOR_LANGUAGE = {}));
|
33
|
-
//# sourceMappingURL=CodeEditorConfig.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeEditorConfig.js","sourceRoot":"","sources":["../../src/code-editor/CodeEditorConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,mDAA8B,CAAA;AAChC,CAAC,EAHW,iBAAiB,GAAjB,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,oBAUX;AAVD,WAAY,oBAAoB;IAC9B,0CAAkB,CAAA;IAClB,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,qCAAa,CAAA;IACb,2CAAmB,CAAA;AACrB,CAAC,EAVW,oBAAoB,GAApB,oBAAoB,KAApB,oBAAoB,QAU/B"}
|