@finos/legend-application 13.0.11 → 14.0.0

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.
Files changed (103) hide show
  1. package/lib/application/LegendApplication.d.ts +0 -2
  2. package/lib/application/LegendApplication.d.ts.map +1 -1
  3. package/lib/application/LegendApplication.js +3 -38
  4. package/lib/application/LegendApplication.js.map +1 -1
  5. package/lib/application/LegendApplicationDocumentation.d.ts +1 -9
  6. package/lib/application/LegendApplicationDocumentation.d.ts.map +1 -1
  7. package/lib/application/LegendApplicationDocumentation.js +0 -8
  8. package/lib/application/LegendApplicationDocumentation.js.map +1 -1
  9. package/lib/components/ApplicationStoreProvider.d.ts +1 -1
  10. package/lib/components/ApplicationStoreProvider.d.ts.map +1 -1
  11. package/lib/components/ApplicationStoreProvider.js +19 -5
  12. package/lib/components/ApplicationStoreProvider.js.map +1 -1
  13. package/lib/components/VirtualAssistant.d.ts.map +1 -1
  14. package/lib/components/VirtualAssistant.js +6 -8
  15. package/lib/components/VirtualAssistant.js.map +1 -1
  16. package/lib/components/shared/DocumentationLink.js +1 -1
  17. package/lib/components/shared/DocumentationLink.js.map +1 -1
  18. package/lib/components/shared/{TextSearchAdvancedConfigMenu.d.ts → FuzzySearchAdvancedConfigMenu.d.ts} +4 -4
  19. package/lib/components/shared/FuzzySearchAdvancedConfigMenu.d.ts.map +1 -0
  20. package/lib/components/shared/{TextSearchAdvancedConfigMenu.js → FuzzySearchAdvancedConfigMenu.js} +8 -8
  21. package/lib/components/shared/FuzzySearchAdvancedConfigMenu.js.map +1 -0
  22. package/lib/{components/execution-plan-viewer/ExecutionPlanViewer.d.ts → components.d.ts} +6 -13
  23. package/lib/components.d.ts.map +1 -0
  24. package/lib/{components/shared/TextInputEditor.d.ts → components.js} +6 -13
  25. package/lib/components.js.map +1 -0
  26. package/lib/const.d.ts +3 -3
  27. package/lib/const.d.ts.map +1 -1
  28. package/lib/const.js +19 -17
  29. package/lib/const.js.map +1 -1
  30. package/lib/index.css +2 -2
  31. package/lib/index.css.map +1 -1
  32. package/lib/index.d.ts +2 -15
  33. package/lib/index.d.ts.map +1 -1
  34. package/lib/index.js +4 -16
  35. package/lib/index.js.map +1 -1
  36. package/lib/package.json +7 -12
  37. package/lib/stores/ApplicationStore.d.ts +3 -1
  38. package/lib/stores/ApplicationStore.d.ts.map +1 -1
  39. package/lib/stores/ApplicationStore.js +22 -1
  40. package/lib/stores/ApplicationStore.js.map +1 -1
  41. package/lib/stores/AssistantService.d.ts +3 -3
  42. package/lib/stores/AssistantService.d.ts.map +1 -1
  43. package/lib/stores/AssistantService.js +3 -4
  44. package/lib/stores/AssistantService.js.map +1 -1
  45. package/lib/stores/Core_LegendApplicationPlugin.d.ts +2 -1
  46. package/lib/stores/Core_LegendApplicationPlugin.d.ts.map +1 -1
  47. package/lib/stores/Core_LegendApplicationPlugin.js +69 -1
  48. package/lib/stores/Core_LegendApplicationPlugin.js.map +1 -1
  49. package/lib/stores/LegendApplicationPlugin.d.ts +12 -1
  50. package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
  51. package/lib/stores/LegendApplicationPlugin.js.map +1 -1
  52. package/lib/stores/pure-language/{PureLanguageTextEditorSupport.d.ts → PureLanguageCodeEditorSupport.d.ts} +1 -1
  53. package/lib/stores/pure-language/{PureLanguageTextEditorSupport.d.ts.map → PureLanguageCodeEditorSupport.d.ts.map} +1 -1
  54. package/lib/stores/pure-language/{PureLanguageTextEditorSupport.js → PureLanguageCodeEditorSupport.js} +1 -1
  55. package/lib/stores/pure-language/{PureLanguageTextEditorSupport.js.map → PureLanguageCodeEditorSupport.js.map} +1 -1
  56. package/lib/stores/pure-language/PureLanguageSupport.d.ts +1 -2
  57. package/lib/stores/pure-language/PureLanguageSupport.d.ts.map +1 -1
  58. package/lib/stores/pure-language/PureLanguageSupport.js +7 -71
  59. package/lib/stores/pure-language/PureLanguageSupport.js.map +1 -1
  60. package/lib/stores/shared/{TextSearchAdvancedConfigState.d.ts → FuzzySearchAdvancedConfigState.d.ts} +5 -5
  61. package/lib/stores/shared/FuzzySearchAdvancedConfigState.d.ts.map +1 -0
  62. package/lib/stores/shared/{TextSearchAdvancedConfigState.js → FuzzySearchAdvancedConfigState.js} +14 -14
  63. package/lib/stores/shared/FuzzySearchAdvancedConfigState.js.map +1 -0
  64. package/package.json +11 -16
  65. package/src/application/{LegendApplication.tsx → LegendApplication.ts} +4 -60
  66. package/src/application/LegendApplicationDocumentation.ts +0 -8
  67. package/src/components/ApplicationStoreProvider.tsx +31 -12
  68. package/src/components/VirtualAssistant.tsx +9 -13
  69. package/src/components/shared/DocumentationLink.tsx +1 -1
  70. package/src/components/shared/{TextSearchAdvancedConfigMenu.tsx → FuzzySearchAdvancedConfigMenu.tsx} +14 -14
  71. package/src/components.ts +23 -0
  72. package/src/const.ts +5 -3
  73. package/src/index.ts +7 -19
  74. package/src/stores/ApplicationStore.ts +31 -0
  75. package/src/stores/AssistantService.ts +5 -5
  76. package/src/stores/Core_LegendApplicationPlugin.ts +100 -1
  77. package/src/stores/LegendApplicationPlugin.ts +16 -1
  78. package/src/stores/pure-language/PureLanguageSupport.ts +8 -77
  79. package/src/stores/shared/{TextSearchAdvancedConfigState.ts → FuzzySearchAdvancedConfigState.ts} +8 -8
  80. package/tsconfig.json +6 -9
  81. package/lib/components/execution-plan-viewer/ExecutionPlanViewer.d.ts.map +0 -1
  82. package/lib/components/execution-plan-viewer/ExecutionPlanViewer.js +0 -182
  83. package/lib/components/execution-plan-viewer/ExecutionPlanViewer.js.map +0 -1
  84. package/lib/components/execution-plan-viewer/SQLExecutionNodeViewer.d.ts +0 -31
  85. package/lib/components/execution-plan-viewer/SQLExecutionNodeViewer.d.ts.map +0 -1
  86. package/lib/components/execution-plan-viewer/SQLExecutionNodeViewer.js +0 -32
  87. package/lib/components/execution-plan-viewer/SQLExecutionNodeViewer.js.map +0 -1
  88. package/lib/components/shared/TextInputEditor.d.ts.map +0 -1
  89. package/lib/components/shared/TextInputEditor.js +0 -109
  90. package/lib/components/shared/TextInputEditor.js.map +0 -1
  91. package/lib/components/shared/TextSearchAdvancedConfigMenu.d.ts.map +0 -1
  92. package/lib/components/shared/TextSearchAdvancedConfigMenu.js.map +0 -1
  93. package/lib/stores/ExecutionPlanState.d.ts +0 -61
  94. package/lib/stores/ExecutionPlanState.d.ts.map +0 -1
  95. package/lib/stores/ExecutionPlanState.js +0 -118
  96. package/lib/stores/ExecutionPlanState.js.map +0 -1
  97. package/lib/stores/shared/TextSearchAdvancedConfigState.d.ts.map +0 -1
  98. package/lib/stores/shared/TextSearchAdvancedConfigState.js.map +0 -1
  99. package/src/components/execution-plan-viewer/ExecutionPlanViewer.tsx +0 -543
  100. package/src/components/execution-plan-viewer/SQLExecutionNodeViewer.tsx +0 -46
  101. package/src/components/shared/TextInputEditor.tsx +0 -153
  102. package/src/stores/ExecutionPlanState.ts +0 -153
  103. /package/src/stores/pure-language/{PureLanguageTextEditorSupport.ts → PureLanguageCodeEditorSupport.ts} +0 -0
@@ -16,7 +16,6 @@
16
16
 
17
17
  /* eslint-disable prefer-named-capture-group */
18
18
  import {
19
- type GraphManagerPluginManager,
20
19
  PARSER_SECTION_MARKER,
21
20
  PURE_ELEMENT_NAME,
22
21
  PURE_CONNECTION_NAME,
@@ -24,11 +23,9 @@ import {
24
23
  } from '@finos/legend-graph';
25
24
  import {
26
25
  editor as monacoEditorAPI,
27
- KeyCode,
28
- KeyMod,
29
26
  languages as monacoLanguagesAPI,
30
27
  } from 'monaco-editor';
31
- import { EDITOR_LANGUAGE, EDITOR_THEME } from '../../const.js';
28
+ import { CODE_EDITOR_LANGUAGE, CODE_EDITOR_THEME } from '../../const.js';
32
29
 
33
30
  /**
34
31
  * The postfix to be added to all token types, i.e. identifier.pure, number.pure, etc.
@@ -485,83 +482,17 @@ const generateLanguageMonarch = (
485
482
  } as monacoLanguagesAPI.IMonarchLanguage);
486
483
 
487
484
  export const setupPureLanguageService = (
488
- pluginManager: GraphManagerPluginManager,
485
+ extraKeywords: string[],
486
+ extraParserKeywords: string[],
489
487
  ): void => {
490
- // register Pure language in `monaco-editor`
491
- monacoEditorAPI.defineTheme(EDITOR_THEME.LEGEND, theme);
492
- // Override `monaco-editor` native hotkeys
493
- // See https://github.com/microsoft/monaco-editor/issues/102#issuecomment-1282897640
494
- monacoEditorAPI.addKeybindingRules([
495
- {
496
- // disable showing go-to-line command
497
- keybinding: KeyMod.WinCtrl | KeyCode.KeyG,
498
- command: null,
499
- },
500
- {
501
- // disable cursor move (core command)
502
- keybinding: KeyMod.WinCtrl | KeyCode.KeyB,
503
- command: null,
504
- },
505
- {
506
- // disable cursor move (core command)
507
- keybinding: KeyMod.WinCtrl | KeyCode.KeyO,
508
- command: null,
509
- },
510
- {
511
- // disable cursor move (core command)
512
- keybinding: KeyMod.WinCtrl | KeyCode.KeyD,
513
- command: null,
514
- },
515
- {
516
- // disable cursor move (core command)
517
- keybinding: KeyMod.WinCtrl | KeyCode.KeyP,
518
- command: null,
519
- },
520
- {
521
- // disable show command center
522
- keybinding: KeyCode.F1,
523
- command: null,
524
- },
525
- {
526
- // disable show error command
527
- keybinding: KeyCode.F8,
528
- command: null,
529
- },
530
- {
531
- // disable toggle debugger breakpoint
532
- keybinding: KeyCode.F9,
533
- command: null,
534
- },
535
- {
536
- // disable change all instances
537
- keybinding: KeyMod.CtrlCmd | KeyCode.F2,
538
- command: null,
539
- },
540
- {
541
- // disable toggle debugger breakpoint
542
- keybinding: KeyMod.Shift | KeyCode.F10,
543
- command: null,
544
- },
545
- {
546
- // disable go-to definition
547
- keybinding: KeyMod.CtrlCmd | KeyCode.F12,
548
- command: null,
549
- },
550
- ]);
551
- monacoLanguagesAPI.register({ id: EDITOR_LANGUAGE.PURE });
488
+ monacoEditorAPI.defineTheme(CODE_EDITOR_THEME.LEGEND, theme);
489
+ monacoLanguagesAPI.register({ id: CODE_EDITOR_LANGUAGE.PURE });
552
490
  monacoLanguagesAPI.setLanguageConfiguration(
553
- EDITOR_LANGUAGE.PURE,
491
+ CODE_EDITOR_LANGUAGE.PURE,
554
492
  configuration,
555
493
  );
556
494
  monacoLanguagesAPI.setMonarchTokensProvider(
557
- EDITOR_LANGUAGE.PURE,
558
- generateLanguageMonarch(
559
- pluginManager
560
- .getPureGraphManagerPlugins()
561
- .flatMap((plugin) => plugin.getExtraPureGrammarKeywords?.() ?? []),
562
- pluginManager
563
- .getPureGraphManagerPlugins()
564
- .flatMap((plugin) => plugin.getExtraPureGrammarParserNames?.() ?? []),
565
- ),
495
+ CODE_EDITOR_LANGUAGE.PURE,
496
+ generateLanguageMonarch(extraKeywords, extraParserKeywords),
566
497
  );
567
498
  };
@@ -16,15 +16,15 @@
16
16
 
17
17
  import { action, computed, makeObservable, observable } from 'mobx';
18
18
 
19
- export enum ADVANCED_TEXT_SEARCH_MODE {
19
+ export enum ADVANCED_FUZZY_SEARCH_MODE {
20
20
  STANDARD = 'standard',
21
21
  INCLUDE = 'include match',
22
22
  EXACT = 'exact match',
23
23
  INVERSE = 'excludes exact match',
24
24
  }
25
25
 
26
- export class TextSearchAdvancedConfigState {
27
- currentMode = ADVANCED_TEXT_SEARCH_MODE.STANDARD;
26
+ export class FuzzySearchAdvancedConfigState {
27
+ currentMode = ADVANCED_FUZZY_SEARCH_MODE.STANDARD;
28
28
  onSearchModeChange: () => void;
29
29
 
30
30
  constructor(onSearchModeChange: () => void) {
@@ -38,18 +38,18 @@ export class TextSearchAdvancedConfigState {
38
38
  }
39
39
 
40
40
  get isAdvancedSearchActive(): boolean {
41
- return this.currentMode !== ADVANCED_TEXT_SEARCH_MODE.STANDARD;
41
+ return this.currentMode !== ADVANCED_FUZZY_SEARCH_MODE.STANDARD;
42
42
  }
43
43
 
44
44
  generateSearchText(val: string): string {
45
45
  switch (this.currentMode) {
46
- case ADVANCED_TEXT_SEARCH_MODE.INCLUDE: {
46
+ case ADVANCED_FUZZY_SEARCH_MODE.INCLUDE: {
47
47
  return `'"${val}"`;
48
48
  }
49
- case ADVANCED_TEXT_SEARCH_MODE.EXACT: {
49
+ case ADVANCED_FUZZY_SEARCH_MODE.EXACT: {
50
50
  return `="${val}"`;
51
51
  }
52
- case ADVANCED_TEXT_SEARCH_MODE.INVERSE: {
52
+ case ADVANCED_FUZZY_SEARCH_MODE.INVERSE: {
53
53
  return `!"${val}"`;
54
54
  }
55
55
  default: {
@@ -58,7 +58,7 @@ export class TextSearchAdvancedConfigState {
58
58
  }
59
59
  }
60
60
 
61
- setCurrentMode(val: ADVANCED_TEXT_SEARCH_MODE): void {
61
+ setCurrentMode(val: ADVANCED_FUZZY_SEARCH_MODE): void {
62
62
  this.currentMode = val;
63
63
  this.onSearchModeChange();
64
64
  }
package/tsconfig.json CHANGED
@@ -32,8 +32,10 @@
32
32
  }
33
33
  ],
34
34
  "files": [
35
+ "./src/components.ts",
35
36
  "./src/const.ts",
36
37
  "./src/index.ts",
38
+ "./src/application/LegendApplication.ts",
37
39
  "./src/application/LegendApplicationConfig.ts",
38
40
  "./src/application/LegendApplicationDocumentation.ts",
39
41
  "./src/application/LegendApplicationEvent.ts",
@@ -50,7 +52,6 @@
50
52
  "./src/stores/CommandService.ts",
51
53
  "./src/stores/Core_LegendApplicationPlugin.ts",
52
54
  "./src/stores/DocumentationService.ts",
53
- "./src/stores/ExecutionPlanState.ts",
54
55
  "./src/stores/IdentityService.ts",
55
56
  "./src/stores/KeyboardShortcutsService.ts",
56
57
  "./src/stores/LayoutService.ts",
@@ -65,16 +66,15 @@
65
66
  "./src/stores/navigation/NavigationService.ts",
66
67
  "./src/stores/navigation/WebApplicationNavigator.ts",
67
68
  "./src/stores/navigation/WebApplicationRouter.ts",
69
+ "./src/stores/pure-language/PureLanguageCodeEditorSupport.ts",
68
70
  "./src/stores/pure-language/PureLanguageSupport.ts",
69
- "./src/stores/pure-language/PureLanguageTextEditorSupport.ts",
71
+ "./src/stores/shared/FuzzySearchAdvancedConfigState.ts",
70
72
  "./src/stores/shared/PackageableElementOption.ts",
71
73
  "./src/stores/shared/TabManagerState.ts",
72
- "./src/stores/shared/TextSearchAdvancedConfigState.ts",
73
74
  "./src/stores/storage/ApplicationStorage.ts",
74
75
  "./src/stores/storage/StorageService.ts",
75
76
  "./src/stores/terminal/Terminal.ts",
76
77
  "./src/stores/terminal/XTerm.ts",
77
- "./src/application/LegendApplication.tsx",
78
78
  "./src/components/ActionAlert.tsx",
79
79
  "./src/components/ApplicationStoreProvider.tsx",
80
80
  "./src/components/ApplicationStoreProviderTestUtils.tsx",
@@ -86,13 +86,10 @@
86
86
  "./src/components/WebApplicationNavigatorProviderTestUtils.tsx",
87
87
  "./src/components/useApplicationNavigationContext.tsx",
88
88
  "./src/components/useCommands.tsx",
89
- "./src/components/execution-plan-viewer/ExecutionPlanViewer.tsx",
90
- "./src/components/execution-plan-viewer/SQLExecutionNodeViewer.tsx",
91
89
  "./src/components/shared/DocumentationLink.tsx",
90
+ "./src/components/shared/FuzzySearchAdvancedConfigMenu.tsx",
92
91
  "./src/components/shared/PackageableElementOptionLabel.tsx",
93
- "./src/components/shared/TabManager.tsx",
94
- "./src/components/shared/TextInputEditor.tsx",
95
- "./src/components/shared/TextSearchAdvancedConfigMenu.tsx"
92
+ "./src/components/shared/TabManager.tsx"
96
93
  ],
97
94
  "include": [
98
95
  "src/**/*.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecutionPlanViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan-viewer/ExecutionPlanViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAgCH,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,aAAa,EAKd,MAAM,qBAAqB,CAAC;AAyI7B,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,aAAa,EAAE,aAAa,CAAC;CAC9B,CA0EA,CAAC;AAoMF,eAAO,MAAM,mBAAmB,WACtB;IAAE,kBAAkB,EAAE,kBAAkB,CAAA;CAAE;;CAwEnD,CAAC"}
@@ -1,182 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useState } from 'react';
18
- import { Dialog, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanel, ResizablePanelSplitterLine, clsx, TreeView, ChevronDownIcon, ChevronRightIcon, MenuContentItem, MenuContent, DropdownMenu, BlankPanelContent, PanelContent, ModalHeader, Modal, ModalBody, ModalFooter, PanelSideBarHeader, ModalFooterButton, } from '@finos/legend-art';
19
- import { addUniqueEntry, filterByType, isNonNullable, } from '@finos/legend-shared';
20
- import { ExecutionNodeTreeNodeData, ExecutionPlanViewTreeNodeData, EXECUTION_PLAN_VIEW_MODE, } from '../../stores/ExecutionPlanState.js';
21
- import { observer } from 'mobx-react-lite';
22
- import { ExecutionPlan, ExecutionNode, SQLExecutionNode, RelationalTDSInstantiationExecutionNode, } from '@finos/legend-graph';
23
- import { EDITOR_LANGUAGE, TAB_SIZE } from '../../const.js';
24
- import { TextInputEditor } from '../shared/TextInputEditor.js';
25
- import { SQLExecutionNodeViewer } from './SQLExecutionNodeViewer.js';
26
- /**
27
- * @modularize
28
- * See https://github.com/finos/legend-studio/issues/65
29
- */
30
- const generateExecutionNodeLabel = (type) => {
31
- if (type instanceof SQLExecutionNode) {
32
- return `SQL Execution Node`;
33
- }
34
- else if (type instanceof RelationalTDSInstantiationExecutionNode) {
35
- return `Relational TDS Instantiation Execution Node`;
36
- }
37
- else {
38
- return 'Other';
39
- }
40
- };
41
- const generateExecutionNodeTreeNodeData = (executionNode, label, parentNode) => {
42
- const executionNodeTreeNode = new ExecutionNodeTreeNodeData(executionNode._UUID, label, executionNode);
43
- const childrenIds = [];
44
- executionNode.executionNodes
45
- .slice()
46
- .filter(filterByType(ExecutionNode))
47
- .forEach((childExecutionNode) => {
48
- addUniqueEntry(childrenIds, childExecutionNode._UUID);
49
- });
50
- executionNodeTreeNode.childrenIds = childrenIds;
51
- return executionNodeTreeNode;
52
- };
53
- const generateExecutionPlanTreeNodeData = (executionPlan) => {
54
- const executionPlanNode = new ExecutionPlanViewTreeNodeData(`Execution Plan`, `Execution Plan`, executionPlan);
55
- const childrenIds = [];
56
- const rootNodeId = executionPlan.rootExecutionNode._UUID;
57
- addUniqueEntry(childrenIds, rootNodeId);
58
- executionPlanNode.childrenIds = childrenIds;
59
- return executionPlanNode;
60
- };
61
- const getExecutionPlanTreeData = (executionPlan) => {
62
- const rootIds = [];
63
- const nodes = new Map();
64
- const executionPlanTreeNode = generateExecutionPlanTreeNodeData(executionPlan);
65
- addUniqueEntry(rootIds, executionPlanTreeNode.id);
66
- nodes.set(executionPlanTreeNode.id, executionPlanTreeNode);
67
- return { rootIds, nodes };
68
- };
69
- const ExecutionNodeElementTreeNodeContainer = (props) => {
70
- const { node, level, stepPaddingInRem, onNodeSelect, innerProps } = props;
71
- const { onNodeExpand } = innerProps;
72
- const isExpandable = Boolean(node.childrenIds?.length);
73
- const selectNode = () => onNodeSelect?.(node);
74
- const expandNode = () => onNodeExpand(node);
75
- const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
76
- return (_jsxs("div", { className: clsx('tree-view__node__container execution-plan-viewer__explorer-tree__node__container', {
77
- 'menu__trigger--on-menu-open': !node.isSelected,
78
- }, {
79
- 'execution-plan-viewer__explorer-tree__node__container--selected': node.isSelected,
80
- }), style: {
81
- paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1)}rem`,
82
- }, onClick: selectNode, children: [_jsx("div", { className: "tree-view__node__icon", children: _jsx("div", { className: "tree-view__node__expand-icon", onClick: expandNode, children: nodeExpandIcon }) }), _jsx("button", { className: "tree-view__node__label execution-plan-viewer__explorer-tree__node__label", tabIndex: -1, title: node.id, children: node.label })] }));
83
- };
84
- export const ExecutionPlanTree = (props) => {
85
- const { executionPlanState, executionPlan } = props;
86
- // NOTE: We only need to compute this once so we use lazy initial state syntax
87
- // See https://reactjs.org/docs/hooks-reference.html#lazy-initial-state
88
- const [treeData, setTreeData] = useState(() => getExecutionPlanTreeData(executionPlan));
89
- const onNodeSelect = (node) => {
90
- if (node instanceof ExecutionPlanViewTreeNodeData) {
91
- executionPlanState.transformMetadataToProtocolJson(node.executionPlan);
92
- }
93
- else if (node instanceof ExecutionNodeTreeNodeData) {
94
- executionPlanState.transformMetadataToProtocolJson(node.executionNode);
95
- }
96
- executionPlanState.setSelectedNode(node);
97
- };
98
- const onNodeExpand = (node) => {
99
- if (node.childrenIds?.length) {
100
- node.isOpen = !node.isOpen;
101
- if (node instanceof ExecutionPlanViewTreeNodeData) {
102
- const rootNode = node.executionPlan.rootExecutionNode;
103
- const rootNodeTreeNode = generateExecutionNodeTreeNodeData(rootNode, generateExecutionNodeLabel(rootNode), node);
104
- treeData.nodes.set(rootNodeTreeNode.id, rootNodeTreeNode);
105
- }
106
- else if (node instanceof ExecutionNodeTreeNodeData) {
107
- if (node.executionNode.executionNodes.length > 0) {
108
- node.executionNode.executionNodes.forEach((exen) => {
109
- const executionNodeTreeNode = generateExecutionNodeTreeNodeData(exen, generateExecutionNodeLabel(exen), node);
110
- treeData.nodes.set(executionNodeTreeNode.id, executionNodeTreeNode);
111
- });
112
- }
113
- }
114
- }
115
- setTreeData({ ...treeData });
116
- };
117
- const getChildNodes = (node) => {
118
- if (!node.childrenIds || node.childrenIds.length === 0) {
119
- return [];
120
- }
121
- const childrenNodes = node.childrenIds
122
- .map((id) => treeData.nodes.get(id))
123
- .filter(isNonNullable);
124
- return childrenNodes;
125
- };
126
- return (_jsx(TreeView, { components: {
127
- TreeNodeContainer: ExecutionNodeElementTreeNodeContainer,
128
- }, treeData: treeData, getChildNodes: getChildNodes, onNodeSelect: onNodeSelect, innerProps: {
129
- onNodeExpand,
130
- } }));
131
- };
132
- const ExecutionNodeViewer = observer((props) => {
133
- const { executionNode, executionPlanState } = props;
134
- if (executionNode instanceof SQLExecutionNode) {
135
- return (_jsx(SQLExecutionNodeViewer, { query: executionNode.sqlQuery, resultColumns: executionNode.resultColumns, executionPlanState: executionPlanState }));
136
- }
137
- return (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "execution-node-viewer__unsupported-view", children: [_jsx("div", { className: "execution-node-viewer__unsupported-view__summary", children: `Can't display execution node` }), _jsx("button", { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), children: "View JSON" })] }) }));
138
- });
139
- const ExecutionPlanViewPanel = observer((props) => {
140
- const { displayData, executionPlanState } = props;
141
- let currentElement;
142
- if (executionPlanState.selectedNode !== undefined) {
143
- if (executionPlanState.selectedNode instanceof ExecutionPlanViewTreeNodeData) {
144
- currentElement = executionPlanState.selectedNode.executionPlan;
145
- }
146
- else if (executionPlanState.selectedNode instanceof ExecutionNodeTreeNodeData) {
147
- currentElement = executionPlanState.selectedNode.executionNode;
148
- }
149
- }
150
- const nativeViewModes = Object.values(EXECUTION_PLAN_VIEW_MODE);
151
- return (_jsx("div", { className: "execution-plan-viewer__panel", children: executionPlanState.selectedNode !== undefined && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "panel__header execution-plan-viewer__panel__header", children: [_jsx("div", { className: "execution-plan-viewer__panel__header__tabs", children: _jsx("button", { className: "execution-plan-viewer__panel__header__tab execution-plan-viewer__panel__header__tab--active", children: executionPlanState.selectedNode.label }) }), _jsx(DropdownMenu, { className: "execution-plan-viewer__panel__view-mode__type", title: "View as...", content: _jsx(MenuContent, { className: "execution-plan-viewer__panel__view-mode__options execution-plan-viewer__panel__view-mode__options--with-group", children: _jsxs("div", { className: "execution-plan-viewer__panel__view-mode__option__group execution-plan-viewer__panel__view-mode__option__group--native", children: [_jsx("div", { className: "execution-plan-viewer__panel__view-mode__option__group__name", children: "native" }), _jsx("div", { className: "execution-plan-viewer__panel__view-mode__option__group__options", children: nativeViewModes.map((mode) => (_jsx(MenuContentItem, { className: "execution-plan-viewer__panel__view-mode__option", onClick: () => executionPlanState.setViewMode(mode), children: mode }, mode))) })] }) }), menuProps: {
152
- anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
153
- transformOrigin: { vertical: 'top', horizontal: 'right' },
154
- }, children: _jsx("div", { className: "execution-plan-viewer__panel__view-mode__type__label", children: executionPlanState.viewMode }) })] }), _jsxs("div", { className: "panel__content execution-plan-viewer__panel__content", children: [executionPlanState.viewMode === EXECUTION_PLAN_VIEW_MODE.JSON &&
155
- Boolean(displayData) && (_jsx(TextInputEditor, { inputValue: displayData, isReadOnly: true, language: EDITOR_LANGUAGE.JSON, showMiniMap: false })), executionPlanState.viewMode ===
156
- EXECUTION_PLAN_VIEW_MODE.FORM && (_jsxs(_Fragment, { children: [currentElement instanceof ExecutionNode && (_jsx(ExecutionNodeViewer, { executionNode: currentElement, executionPlanState: executionPlanState })), currentElement instanceof ExecutionPlan && (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "execution-plan-viewer__unsupported-view", children: [_jsx("div", { className: "execution-plan-viewer__unsupported-view__summary", children: `Can't display full execution plan` }), _jsx("button", { className: "btn--dark execution-plan-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), children: "View JSON" })] }) }))] }))] })] })) }));
157
- });
158
- const ExecutionPlanViewerContent = observer((props) => {
159
- const { executionPlanState, rawPlan } = props;
160
- const plan = executionPlanState.plan;
161
- return (_jsx("div", { className: "execution-plan-viewer__content", children: plan ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 300, minSize: 300, children: _jsxs("div", { className: "panel execution-plan-viewer__explorer", children: [_jsx(PanelSideBarHeader, { darkMode: true, title: "execution plan explorer" }), _jsx("div", { className: "panel__content execution-plan-viewer__explorer__content__container", children: _jsx(ExecutionPlanTree, { executionPlanState: executionPlanState, executionPlan: plan }) })] }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: _jsx(ExecutionPlanViewPanel, { displayData: executionPlanState.displayData, executionPlanState: executionPlanState }) })] })) : (_jsx(TextInputEditor, { inputValue: JSON.stringify(rawPlan, undefined, TAB_SIZE), isReadOnly: true, language: EDITOR_LANGUAGE.JSON, showMiniMap: true })) }));
162
- });
163
- export const ExecutionPlanViewer = observer((props) => {
164
- const { executionPlanState } = props;
165
- const closePlanViewer = () => {
166
- executionPlanState.setRawPlan(undefined);
167
- executionPlanState.setPlan(undefined);
168
- executionPlanState.setExecutionPlanDisplayData('');
169
- executionPlanState.setSelectedNode(undefined);
170
- executionPlanState.setDebugText(undefined);
171
- };
172
- const rawPlan = executionPlanState.rawPlan;
173
- if (!rawPlan) {
174
- return null;
175
- }
176
- return (_jsx(Dialog, { open: Boolean(executionPlanState.rawPlan), onClose: closePlanViewer, classes: {
177
- root: 'editor-modal__root-container',
178
- container: 'editor-modal__container',
179
- paper: 'editor-modal__content',
180
- }, children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Execution Plan" }), _jsx(ModalBody, { children: executionPlanState.debugText ? (_jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { minSize: 100, children: _jsx(ExecutionPlanViewerContent, { executionPlanState: executionPlanState, rawPlan: rawPlan }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { size: 200, minSize: 28, children: _jsxs("div", { className: "panel execution-plan-viewer__debug-panel", children: [_jsx("div", { className: "panel__header", children: _jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "DEBUG LOG" }) }) }), _jsx(PanelContent, { children: _jsx(TextInputEditor, { inputValue: executionPlanState.debugText, isReadOnly: true, language: EDITOR_LANGUAGE.TEXT, showMiniMap: true }) })] }) })] })) : (_jsx(ExecutionPlanViewerContent, { executionPlanState: executionPlanState, rawPlan: rawPlan })) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: closePlanViewer, text: "Close" }) })] }) }));
181
- });
182
- //# sourceMappingURL=ExecutionPlanViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecutionPlanViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan-viewer/ExecutionPlanViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAGL,MAAM,EACN,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,0BAA0B,EAC1B,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,GAEzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EA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,KAAK,EAAE,uBAAuB;SAC/B,YAED,MAAC,KAAK,IAAC,SAAS,EAAC,cAAc,EAAC,QAAQ,EAAE,IAAI,aAC5C,KAAC,WAAW,IAAC,KAAK,EAAC,gBAAgB,GAAG,EACtC,KAAC,SAAS,cACP,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,CAC9B,MAAC,mBAAmB,IAAC,WAAW,EAAC,YAAY,aAC3C,KAAC,cAAc,IAAC,OAAO,EAAE,GAAG,YAC1B,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,GAChB,GACa,EACjB,KAAC,sBAAsB,cACrB,KAAC,0BAA0B,IAAC,KAAK,EAAC,4BAA4B,GAAG,GAC1C,EACzB,KAAC,cAAc,IAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,YACpC,eAAK,SAAS,EAAC,0CAA0C,aACvD,cAAK,SAAS,EAAC,eAAe,YAC5B,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,6BAA6B,0BAEtC,GACF,GACF,EACN,KAAC,YAAY,cACX,KAAC,eAAe,IACd,UAAU,EAAE,kBAAkB,CAAC,SAAS,EACxC,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,eAAe,CAAC,IAAI,EAC9B,WAAW,EAAE,IAAI,GACjB,GACW,IACX,GACS,IACG,CACvB,CAAC,CAAC,CAAC,CACF,KAAC,0BAA0B,IACzB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,GAChB,CACH,GACS,EACZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAC,OAAO,GAAG,GAChD,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,31 +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
- /// <reference types="react" resolution-mode="require"/>
17
- import type { ExecutionPlanState } from '../../stores/ExecutionPlanState.js';
18
- import type { SQLResultColumn } from '@finos/legend-graph';
19
- /**
20
- * TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
21
- * when we modularize relational and execution plan processing, etc.
22
- *
23
- * @modularize
24
- * See https://github.com/finos/legend-studio/issues/65
25
- */
26
- export declare const SQLExecutionNodeViewer: React.FC<{
27
- query: string;
28
- resultColumns: SQLResultColumn[];
29
- executionPlanState: ExecutionPlanState;
30
- }>;
31
- //# sourceMappingURL=SQLExecutionNodeViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SQLExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan-viewer/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAWC,CAAC"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { observer } from 'mobx-react-lite';
18
- import { format } from 'sql-formatter';
19
- import { TextInputEditor } from '../shared/TextInputEditor.js';
20
- import { EDITOR_LANGUAGE } from '../../const.js';
21
- /**
22
- * TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
23
- * when we modularize relational and execution plan processing, etc.
24
- *
25
- * @modularize
26
- * See https://github.com/finos/legend-studio/issues/65
27
- */
28
- export const SQLExecutionNodeViewer = observer((props) => {
29
- const { query } = props;
30
- return (_jsx(TextInputEditor, { inputValue: format(query), isReadOnly: true, language: EDITOR_LANGUAGE.SQL, showMiniMap: false }));
31
- });
32
- //# sourceMappingURL=SQLExecutionNodeViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan-viewer/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAI9B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAExB,OAAO,CACL,KAAC,eAAe,IACd,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,EACzB,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,eAAe,CAAC,GAAG,EAC7B,WAAW,EAAE,KAAK,GAClB,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TextInputEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EAAoB,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAS5E,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,gBAAgB,CAAC;AAG9E,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kBAAkB,CAAC,EACf,CAAC,eAAe,CAAC,cAAc,GAAG,eAAe,CAAC,oBAAoB,CAAC,GACvE,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACnD,CAiHA,CAAC"}
@@ -1,109 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useState, useRef, useEffect } from 'react';
18
- import { editor as monacoEditorAPI } from 'monaco-editor';
19
- import { disposeEditor, getBaseTextEditorOptions, resetLineNumberGutterWidth, getEditorValue, normalizeLineEnding, useResizeDetector, } from '@finos/legend-art';
20
- import { EDITOR_THEME, TAB_SIZE } from '../../const.js';
21
- import { useApplicationStore } from '../ApplicationStoreProvider.js';
22
- export const TextInputEditor = (props) => {
23
- const { inputValue, updateInput, language, isReadOnly, showMiniMap, hideGutter, extraEditorOptions, } = props;
24
- const applicationStore = useApplicationStore();
25
- const [editor, setEditor] = useState();
26
- const onDidChangeModelContentEventDisposer = useRef(undefined);
27
- /**
28
- * NOTE: we want to normalize line ending here since if the original
29
- * input value includes CR '\r' character, it will get normalized, calling
30
- * the updateInput method and cause a rerender. With the way we setup
31
- * `onChange` method, React will warn about `setState` being called in
32
- * `render` method.
33
- * See https://github.com/finos/legend-studio/issues/608
34
- */
35
- const value = normalizeLineEnding(inputValue);
36
- const textInputRef = useRef(null);
37
- const { ref, width, height } = useResizeDetector();
38
- useEffect(() => {
39
- if (width !== undefined && height !== undefined) {
40
- editor?.layout({ width, height });
41
- }
42
- }, [editor, width, height]);
43
- useEffect(() => {
44
- if (!editor && textInputRef.current) {
45
- const element = textInputRef.current;
46
- const _editor = monacoEditorAPI.create(element, {
47
- ...getBaseTextEditorOptions(),
48
- theme: applicationStore.layoutService
49
- .TEMPORARY__isLightColorThemeEnabled
50
- ? EDITOR_THEME.TEMPORARY__VSCODE_LIGHT
51
- : EDITOR_THEME.LEGEND,
52
- formatOnType: true,
53
- formatOnPaste: true,
54
- });
55
- setEditor(_editor);
56
- }
57
- }, [applicationStore, editor]);
58
- useEffect(() => {
59
- if (editor) {
60
- resetLineNumberGutterWidth(editor);
61
- const model = editor.getModel();
62
- if (model) {
63
- monacoEditorAPI.setModelLanguage(model, language);
64
- }
65
- }
66
- }, [editor, language]);
67
- if (editor) {
68
- // dispose the old editor content setter in case the `updateInput` handler changes
69
- // for a more extensive note on this, see `LambdaEditor`
70
- onDidChangeModelContentEventDisposer.current?.dispose();
71
- onDidChangeModelContentEventDisposer.current =
72
- editor.onDidChangeModelContent(() => {
73
- const currentVal = getEditorValue(editor);
74
- if (currentVal !== value) {
75
- updateInput?.(currentVal);
76
- }
77
- });
78
- // Set the text value and editor options
79
- const currentValue = getEditorValue(editor);
80
- if (currentValue !== value) {
81
- editor.setValue(value);
82
- }
83
- editor.updateOptions({
84
- readOnly: Boolean(isReadOnly),
85
- minimap: { enabled: Boolean(showMiniMap) },
86
- // Hide the line number gutter
87
- // See https://github.com/microsoft/vscode/issues/30795
88
- ...(hideGutter
89
- ? {
90
- glyphMargin: false,
91
- folding: false,
92
- lineNumbers: 'off',
93
- lineDecorationsWidth: 10,
94
- lineNumbersMinChars: 0,
95
- }
96
- : {}),
97
- ...(extraEditorOptions ?? {}),
98
- });
99
- const model = editor.getModel();
100
- model?.updateOptions({ tabSize: TAB_SIZE });
101
- }
102
- useEffect(() => () => {
103
- if (editor) {
104
- disposeEditor(editor);
105
- }
106
- }, [editor]); // dispose editor
107
- return (_jsx("div", { ref: ref, className: "text-editor__container", children: _jsx("div", { className: "text-editor__body", ref: textInputRef }) }));
108
- };
109
- //# sourceMappingURL=TextInputEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInputEditor.js","sourceRoot":"","sources":["../../../src/components/shared/TextInputEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAoB,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAwB,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,E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K;oBAClB,oBAAoB,EAAE,EAAE;oBACxB,mBAAmB,EAAE,CAAC;iBACvB;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,kBAAkB,IAAI,EAAE,CAAC;SAC9B,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAChC,KAAK,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;KAC7C;IAED,SAAS,CACP,GAAG,EAAE,CAAC,GAAS,EAAE;QACf,IAAI,MAAM,EAAE;YACV,aAAa,CAAC,MAAM,CAAC,CAAC;SACvB;IACH,CAAC,EACD,CAAC,MAAM,CAAC,CACT,CAAC,CAAC,iBAAiB;IAEpB,OAAO,CACL,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAC,wBAAwB,YAC/C,cAAK,SAAS,EAAC,mBAAmB,EAAC,GAAG,EAAE,YAAY,GAAI,GACpD,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextSearchAdvancedConfigMenu.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TextSearchAdvancedConfigMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,sDAAsD,CAAC;AAG9D,eAAO,MAAM,4BAA4B,WAC/B;IAAE,WAAW,EAAE,6BAA6B,CAAA;CAAE;;CA8CvD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextSearchAdvancedConfigMenu.js","sourceRoot":"","sources":["../../../src/components/shared/TextSearchAdvancedConfigMenu.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,oCAAoC,EAA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