@finos/legend-application 4.0.3 → 5.1.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.
- package/lib/application/LegendApplication.d.ts +9 -1
- package/lib/application/LegendApplication.d.ts.map +1 -1
- package/lib/application/LegendApplication.js +54 -1
- package/lib/application/LegendApplication.js.map +1 -1
- package/lib/components/VirtualAssistant.d.ts.map +1 -1
- package/lib/components/VirtualAssistant.js +91 -11
- package/lib/components/VirtualAssistant.js.map +1 -1
- package/lib/components/{BasicValueSpecificationEditor.d.ts → shared/BasicValueSpecificationEditor.d.ts} +2 -2
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -0
- package/lib/components/{BasicValueSpecificationEditor.js → shared/BasicValueSpecificationEditor.js} +29 -20
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -0
- package/lib/components/{CustomDatePicker.d.ts → shared/CustomDatePicker.d.ts} +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -0
- package/lib/components/{CustomDatePicker.js → shared/CustomDatePicker.js} +20 -20
- package/lib/components/shared/CustomDatePicker.js.map +1 -0
- package/lib/components/{DocumentationLink.d.ts → shared/DocumentationLink.d.ts} +0 -0
- package/lib/components/shared/DocumentationLink.d.ts.map +1 -0
- package/lib/components/{DocumentationLink.js → shared/DocumentationLink.js} +1 -1
- package/lib/components/shared/DocumentationLink.js.map +1 -0
- package/lib/components/{LambdaEditor.d.ts → shared/LambdaEditor.d.ts} +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -0
- package/lib/components/{LambdaEditor.js → shared/LambdaEditor.js} +3 -3
- package/lib/components/shared/LambdaEditor.js.map +1 -0
- package/lib/components/{LambdaParameterValuesEditor.d.ts → shared/LambdaParameterValuesEditor.d.ts} +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -0
- package/lib/components/{LambdaParameterValuesEditor.js → shared/LambdaParameterValuesEditor.js} +2 -2
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -0
- package/lib/components/shared/PackageableElementOptionRenderer.d.ts +21 -0
- package/lib/components/shared/PackageableElementOptionRenderer.d.ts.map +1 -0
- package/lib/components/shared/PackageableElementOptionRenderer.js +8 -0
- package/lib/components/shared/PackageableElementOptionRenderer.js.map +1 -0
- package/lib/components/{TextInputEditor.d.ts → shared/TextInputEditor.d.ts} +1 -1
- package/lib/components/shared/TextInputEditor.d.ts.map +1 -0
- package/lib/components/{TextInputEditor.js → shared/TextInputEditor.js} +2 -2
- package/lib/components/shared/TextInputEditor.js.map +1 -0
- package/lib/components/shared/execution-plan-viewer/ExecutionPlanViewer.d.ts +28 -0
- package/lib/components/shared/execution-plan-viewer/ExecutionPlanViewer.d.ts.map +1 -0
- package/lib/components/shared/execution-plan-viewer/ExecutionPlanViewer.js +182 -0
- package/lib/components/shared/execution-plan-viewer/ExecutionPlanViewer.js.map +1 -0
- package/lib/components/shared/execution-plan-viewer/SQLExecutionNodeViewer.d.ts +31 -0
- package/lib/components/shared/execution-plan-viewer/SQLExecutionNodeViewer.d.ts.map +1 -0
- package/lib/components/shared/execution-plan-viewer/SQLExecutionNodeViewer.js +32 -0
- package/lib/components/shared/execution-plan-viewer/SQLExecutionNodeViewer.js.map +1 -0
- package/lib/const.d.ts +0 -3
- package/lib/const.d.ts.map +1 -1
- package/lib/const.js +0 -3
- package/lib/const.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +12 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -9
- package/lib/index.js.map +1 -1
- package/lib/stores/ApplicationEvent.d.ts +4 -2
- package/lib/stores/ApplicationEvent.d.ts.map +1 -1
- package/lib/stores/ApplicationEvent.js +4 -2
- package/lib/stores/ApplicationEvent.js.map +1 -1
- package/lib/stores/ApplicationStore.d.ts.map +1 -1
- package/lib/stores/ApplicationStore.js +2 -1
- package/lib/stores/ApplicationStore.js.map +1 -1
- package/lib/stores/LegendApplicationAssistantService.d.ts +7 -2
- package/lib/stores/LegendApplicationAssistantService.d.ts.map +1 -1
- package/lib/stores/LegendApplicationAssistantService.js +22 -10
- package/lib/stores/LegendApplicationAssistantService.js.map +1 -1
- package/lib/stores/LegendApplicationConfig.d.ts +8 -5
- package/lib/stores/LegendApplicationConfig.d.ts.map +1 -1
- package/lib/stores/LegendApplicationConfig.js +15 -13
- package/lib/stores/LegendApplicationConfig.js.map +1 -1
- package/lib/stores/LegendApplicationDocumentationService.d.ts +34 -24
- package/lib/stores/LegendApplicationDocumentationService.d.ts.map +1 -1
- package/lib/stores/LegendApplicationDocumentationService.js +64 -60
- package/lib/stores/LegendApplicationDocumentationService.js.map +1 -1
- package/lib/stores/LegendApplicationPlugin.d.ts +14 -3
- package/lib/stores/LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendApplicationPlugin.js.map +1 -1
- package/lib/stores/PureLanguageSupport.d.ts.map +1 -1
- package/lib/stores/PureLanguageSupport.js +8 -3
- package/lib/stores/PureLanguageSupport.js.map +1 -1
- package/lib/stores/shared/ExecutionPlanState.d.ts +62 -0
- package/lib/stores/shared/ExecutionPlanState.d.ts.map +1 -0
- package/lib/stores/shared/ExecutionPlanState.js +118 -0
- package/lib/stores/shared/ExecutionPlanState.js.map +1 -0
- package/lib/stores/{LambdaEditorState.d.ts → shared/LambdaEditorState.d.ts} +0 -0
- package/lib/stores/shared/LambdaEditorState.d.ts.map +1 -0
- package/lib/stores/{LambdaEditorState.js → shared/LambdaEditorState.js} +0 -0
- package/lib/stores/shared/LambdaEditorState.js.map +1 -0
- package/lib/stores/{LambdaParameterState.d.ts → shared/LambdaParameterState.d.ts} +1 -3
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -0
- package/lib/stores/{LambdaParameterState.js → shared/LambdaParameterState.js} +3 -52
- package/lib/stores/shared/LambdaParameterState.js.map +1 -0
- package/lib/stores/{PackageableElementOption.d.ts → shared/PackageableElementOption.d.ts} +0 -0
- package/lib/stores/shared/PackageableElementOption.d.ts.map +1 -0
- package/lib/stores/{PackageableElementOption.js → shared/PackageableElementOption.js} +0 -0
- package/lib/stores/shared/PackageableElementOption.js.map +1 -0
- package/lib/stores/{ValueSpecificationModifierHelper.d.ts → shared/ValueSpecificationModifierHelper.d.ts} +0 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.d.ts.map +1 -0
- package/lib/stores/{ValueSpecificationModifierHelper.js → shared/ValueSpecificationModifierHelper.js} +0 -0
- package/lib/stores/shared/ValueSpecificationModifierHelper.js.map +1 -0
- package/package.json +13 -12
- package/src/application/LegendApplication.tsx +100 -4
- package/src/components/VirtualAssistant.tsx +106 -16
- package/src/components/{BasicValueSpecificationEditor.tsx → shared/BasicValueSpecificationEditor.tsx} +50 -19
- package/src/components/{CustomDatePicker.tsx → shared/CustomDatePicker.tsx} +44 -27
- package/src/components/{DocumentationLink.tsx → shared/DocumentationLink.tsx} +1 -1
- package/src/components/{LambdaEditor.tsx → shared/LambdaEditor.tsx} +4 -4
- package/src/components/{LambdaParameterValuesEditor.tsx → shared/LambdaParameterValuesEditor.tsx} +5 -3
- package/src/components/shared/PackageableElementOptionRenderer.tsx +40 -0
- package/src/components/{TextInputEditor.tsx → shared/TextInputEditor.tsx} +2 -2
- package/src/components/shared/execution-plan-viewer/ExecutionPlanViewer.tsx +550 -0
- package/src/components/shared/execution-plan-viewer/SQLExecutionNodeViewer.tsx +46 -0
- package/src/const.ts +0 -5
- package/src/index.ts +16 -13
- package/src/stores/ApplicationEvent.ts +4 -2
- package/src/stores/ApplicationStore.ts +3 -1
- package/src/stores/LegendApplicationAssistantService.ts +30 -16
- package/src/stores/LegendApplicationConfig.ts +28 -27
- package/src/stores/LegendApplicationDocumentationService.ts +128 -124
- package/src/stores/LegendApplicationPlugin.ts +17 -3
- package/src/stores/PureLanguageSupport.ts +8 -3
- package/src/stores/shared/ExecutionPlanState.ts +154 -0
- package/src/stores/{LambdaEditorState.ts → shared/LambdaEditorState.ts} +0 -0
- package/src/stores/{LambdaParameterState.ts → shared/LambdaParameterState.ts} +2 -100
- package/src/stores/{PackageableElementOption.ts → shared/PackageableElementOption.ts} +0 -0
- package/src/stores/{ValueSpecificationModifierHelper.ts → shared/ValueSpecificationModifierHelper.ts} +0 -0
- package/tsconfig.json +14 -10
- package/lib/components/BasicValueSpecificationEditor.d.ts.map +0 -1
- package/lib/components/BasicValueSpecificationEditor.js.map +0 -1
- package/lib/components/CustomDatePicker.d.ts.map +0 -1
- package/lib/components/CustomDatePicker.js.map +0 -1
- package/lib/components/DocumentationLink.d.ts.map +0 -1
- package/lib/components/DocumentationLink.js.map +0 -1
- package/lib/components/LambdaEditor.d.ts.map +0 -1
- package/lib/components/LambdaEditor.js.map +0 -1
- package/lib/components/LambdaParameterValuesEditor.d.ts.map +0 -1
- package/lib/components/LambdaParameterValuesEditor.js.map +0 -1
- package/lib/components/TextInputEditor.d.ts.map +0 -1
- package/lib/components/TextInputEditor.js.map +0 -1
- package/lib/stores/LambdaEditorState.d.ts.map +0 -1
- package/lib/stores/LambdaEditorState.js.map +0 -1
- package/lib/stores/LambdaParameterState.d.ts.map +0 -1
- package/lib/stores/LambdaParameterState.js.map +0 -1
- package/lib/stores/PackageableElementOption.d.ts.map +0 -1
- package/lib/stores/PackageableElementOption.js.map +0 -1
- package/lib/stores/ValueSpecificationModifierHelper.d.ts.map +0 -1
- package/lib/stores/ValueSpecificationModifierHelper.js.map +0 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { SerializationFactory, LogEvent, uniq,
|
|
16
|
+
import { SerializationFactory, LogEvent, uniq, } from '@finos/legend-shared';
|
|
17
17
|
import { createModelSchema, custom, list, optional, primitive, } from 'serializr';
|
|
18
18
|
import { APPLICATION_EVENT } from './ApplicationEvent.js';
|
|
19
19
|
export class LegendApplicationDocumentationEntry {
|
|
@@ -22,8 +22,10 @@ export class LegendApplicationDocumentationEntry {
|
|
|
22
22
|
title;
|
|
23
23
|
text;
|
|
24
24
|
url;
|
|
25
|
+
related;
|
|
25
26
|
static serialization = new SerializationFactory(createModelSchema(LegendApplicationDocumentationEntry, {
|
|
26
27
|
markdownText: custom((val) => val, (val) => (val.value ? val : undefined)),
|
|
28
|
+
related: optional(list(primitive())),
|
|
27
29
|
title: optional(primitive()),
|
|
28
30
|
text: optional(primitive()),
|
|
29
31
|
url: optional(primitive()),
|
|
@@ -35,47 +37,40 @@ export class LegendApplicationDocumentationEntry {
|
|
|
35
37
|
return entry;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
export class LegendApplicationContextualDocumentationEntry {
|
|
39
|
-
_context;
|
|
40
|
-
markdownText;
|
|
41
|
-
title;
|
|
42
|
-
text;
|
|
43
|
-
url;
|
|
44
|
-
related = [];
|
|
45
|
-
static serialization = new SerializationFactory(createModelSchema(LegendApplicationContextualDocumentationEntry, {
|
|
46
|
-
markdownText: custom((val) => val, (val) => (val.value ? val : undefined)),
|
|
47
|
-
title: optional(primitive()),
|
|
48
|
-
text: optional(primitive()),
|
|
49
|
-
url: optional(primitive()),
|
|
50
|
-
related: list(primitive()),
|
|
51
|
-
}));
|
|
52
|
-
static create(json, context) {
|
|
53
|
-
const entry = LegendApplicationContextualDocumentationEntry.serialization.fromJson(json);
|
|
54
|
-
entry._context = context;
|
|
55
|
-
return entry;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export const collectKeyedContextualDocumentationEntriesFromConfig = (rawEntries) => Object.entries(rawEntries).map((entry) => ({
|
|
59
|
-
key: entry[0],
|
|
60
|
-
content: LegendApplicationContextualDocumentationEntry.create(entry[1], entry[0]),
|
|
61
|
-
}));
|
|
62
40
|
export const collectKeyedDocumnetationEntriesFromConfig = (rawEntries) => Object.entries(rawEntries).map((entry) => ({
|
|
63
41
|
key: entry[0],
|
|
64
42
|
content: LegendApplicationDocumentationEntry.create(entry[1], entry[0]),
|
|
65
43
|
}));
|
|
44
|
+
export const collectContextualDocumnetationEntry = (contextualDocMap) => Object.entries(contextualDocMap).map((entry) => ({
|
|
45
|
+
context: entry[0],
|
|
46
|
+
documentationKey: entry[1],
|
|
47
|
+
}));
|
|
66
48
|
export class LegendApplicationDocumentationService {
|
|
67
49
|
url;
|
|
68
50
|
docRegistry = new Map();
|
|
69
|
-
|
|
51
|
+
contextualDocMap = new Map();
|
|
70
52
|
constructor(applicationStore) {
|
|
53
|
+
// set the main documenation site url
|
|
54
|
+
this.url = applicationStore.config.documentationUrl;
|
|
55
|
+
/**
|
|
56
|
+
* NOTE: the order of documentation entry overidding is (the later override the former):
|
|
57
|
+
* 1. Natively specified: specified in the codebase (no overriding allowed within this group of documentation entries):
|
|
58
|
+
* since we have extension mechanism, the order of plugins matter,
|
|
59
|
+
* we do not allow overriding, i.e. so the first specification for a documentation key wins
|
|
60
|
+
* 2. Fetched from documentation registries (no overriding allowed within this group of documentation entries):
|
|
61
|
+
* since we have extension mechanism and allow specifying multiple registry URLS,
|
|
62
|
+
* we do not allow overriding, i.e. so the first specification for a documentation key wins
|
|
63
|
+
* 3. Configured in application config (overiding allowed within this group)
|
|
64
|
+
*/
|
|
65
|
+
// build doc registry
|
|
71
66
|
applicationStore.pluginManager
|
|
72
67
|
.getApplicationPlugins()
|
|
73
68
|
.flatMap((plugin) => plugin.getExtraKeyedDocumentationEntries?.() ?? [])
|
|
74
69
|
.forEach((entry) => {
|
|
75
|
-
// Entries specified natively will not override each other. This is to prevent entries from extensions
|
|
76
|
-
//
|
|
70
|
+
// NOTE: Entries specified natively will not override each other. This is to prevent entries from extensions
|
|
71
|
+
// accidentally overide entries from core.
|
|
77
72
|
if (this.hasDocEntry(entry.key)) {
|
|
78
|
-
applicationStore.log.warn(LogEvent.create(APPLICATION_EVENT.
|
|
73
|
+
applicationStore.log.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_DOCUMENTATION_LOAD_SKIPPED), entry.key);
|
|
79
74
|
}
|
|
80
75
|
else {
|
|
81
76
|
this.docRegistry.set(entry.key, entry.content);
|
|
@@ -83,39 +78,49 @@ export class LegendApplicationDocumentationService {
|
|
|
83
78
|
});
|
|
84
79
|
// entries from config will override entries specified natively
|
|
85
80
|
applicationStore.config.keyedDocumentationEntries.forEach((entry) => this.docRegistry.set(entry.key, entry.content));
|
|
86
|
-
|
|
87
|
-
applicationStore.pluginManager
|
|
81
|
+
const contextualDocEntries = applicationStore.pluginManager
|
|
88
82
|
.getApplicationPlugins()
|
|
89
|
-
.flatMap((plugin) => plugin.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
.flatMap((plugin) => plugin.getExtraContextualDocumentationEntries?.() ?? []);
|
|
84
|
+
// verify that required documentations are available
|
|
85
|
+
const missingDocumentationEntries = [];
|
|
86
|
+
uniq(applicationStore.pluginManager
|
|
87
|
+
.getApplicationPlugins()
|
|
88
|
+
.flatMap((plugin) => plugin.getExtraRequiredDocumentationKeys?.() ?? [])
|
|
89
|
+
.concat(contextualDocEntries.map((entry) => entry.documentationKey))).forEach((key) => {
|
|
90
|
+
if (!this.docRegistry.has(key)) {
|
|
91
|
+
missingDocumentationEntries.push(key);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
if (missingDocumentationEntries.length) {
|
|
95
|
+
applicationStore.log.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_DOCUMENTATION_REQUIREMENT_CHECK_FAILURE), `Can't find corresponding documentation entry for keys:\n${missingDocumentationEntries
|
|
96
|
+
.map((key) => `- ${key}`)
|
|
97
|
+
.join('\n')}`);
|
|
98
|
+
}
|
|
99
|
+
// Contextual Documentation
|
|
100
|
+
contextualDocEntries.forEach((entry) => {
|
|
101
|
+
// NOTE: Entries specified natively will not override each other. This is to prevent entries from extensions
|
|
102
|
+
// overriding entries from core.
|
|
103
|
+
//
|
|
104
|
+
// However, it might be useful to allow extending the list of related doc entries.
|
|
105
|
+
// This allows extensions to broaden related doc entries for contextual docs
|
|
106
|
+
// If we need to support this behavior, we could create a dedicated extension method
|
|
107
|
+
if (this.hasContextualDocEntry(entry.context)) {
|
|
108
|
+
applicationStore.log.warn(LogEvent.create(APPLICATION_EVENT.APPLICATION_CONTEXTUAL_DOCUMENTATION_LOAD_SKIPPED), entry.context);
|
|
101
109
|
}
|
|
102
110
|
else {
|
|
103
|
-
this.
|
|
111
|
+
const existingDocEntry = this.getDocEntry(entry.documentationKey);
|
|
112
|
+
if (existingDocEntry) {
|
|
113
|
+
this.contextualDocMap.set(entry.context, existingDocEntry);
|
|
114
|
+
}
|
|
104
115
|
}
|
|
105
116
|
});
|
|
106
117
|
// entries from config will override entries specified natively
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
entry.content.related = uniq([
|
|
112
|
-
...existingEntry.related,
|
|
113
|
-
...entry.content.related,
|
|
114
|
-
]);
|
|
118
|
+
applicationStore.config.contextualDocEntries.forEach((entry) => {
|
|
119
|
+
const existingDocEntry = this.getDocEntry(entry.documentationKey);
|
|
120
|
+
if (existingDocEntry) {
|
|
121
|
+
this.contextualDocMap.set(entry.context, existingDocEntry);
|
|
115
122
|
}
|
|
116
|
-
this.contextualDocRegistry.set(entry.key, entry.content);
|
|
117
123
|
});
|
|
118
|
-
this.url = applicationStore.config.documentationUrl;
|
|
119
124
|
}
|
|
120
125
|
getDocEntry(key) {
|
|
121
126
|
return this.docRegistry.get(key);
|
|
@@ -124,10 +129,10 @@ export class LegendApplicationDocumentationService {
|
|
|
124
129
|
return this.docRegistry.has(key);
|
|
125
130
|
}
|
|
126
131
|
getContextualDocEntry(key) {
|
|
127
|
-
return this.
|
|
132
|
+
return this.contextualDocMap.get(key);
|
|
128
133
|
}
|
|
129
134
|
hasContextualDocEntry(key) {
|
|
130
|
-
return this.
|
|
135
|
+
return this.contextualDocMap.has(key);
|
|
131
136
|
}
|
|
132
137
|
getAllDocEntries() {
|
|
133
138
|
return Array.from(this.docRegistry.values());
|
|
@@ -140,11 +145,10 @@ export class LegendApplicationDocumentationService {
|
|
|
140
145
|
});
|
|
141
146
|
return result;
|
|
142
147
|
}
|
|
143
|
-
|
|
148
|
+
publishContextualDocMap() {
|
|
144
149
|
const result = {};
|
|
145
|
-
this.
|
|
146
|
-
result[key] =
|
|
147
|
-
LegendApplicationContextualDocumentationEntry.serialization.toJson(value);
|
|
150
|
+
this.contextualDocMap.forEach((value, key) => {
|
|
151
|
+
result[key] = value._documentationKey;
|
|
148
152
|
});
|
|
149
153
|
return result;
|
|
150
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationDocumentationService.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationDocumentationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,QAAQ,EACR,IAAI,
|
|
1
|
+
{"version":3,"file":"LegendApplicationDocumentationService.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationDocumentationService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAkC1D,MAAM,OAAO,mCAAmC;IACrC,iBAAiB,CAAU;IAEpC,YAAY,CAA4B;IACxC,KAAK,CAAsB;IAC3B,IAAI,CAAsB;IAC1B,GAAG,CAAsB;IACzB,OAAO,CAAwB;IAE/B,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,mCAAmC,EAAE;QACrD,YAAY,EAAE,MAAM,CA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;QACpE,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,uBAAuB;QACrB,MAAM,MAAM,GAAsD,EAAE,CAAC;QACrE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC3C,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACxC,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -14,15 +14,26 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { AbstractPlugin } from '@finos/legend-shared';
|
|
17
|
-
import type {
|
|
17
|
+
import type { LegendApplicationContextualDocumentationEntry, LegendApplicationDocumentationRegistryEntry, LegendApplicationKeyedDocumentationEntry } from './LegendApplicationDocumentationService.js';
|
|
18
18
|
export declare abstract class LegendApplicationPlugin extends AbstractPlugin {
|
|
19
|
+
/**
|
|
20
|
+
* Get the list of documentation registry entries from which the application can fetch
|
|
21
|
+
* documentation config data and load the documentation registry
|
|
22
|
+
*/
|
|
23
|
+
getExtraDocumentationRegistryEntries?(): LegendApplicationDocumentationRegistryEntry[];
|
|
19
24
|
/**
|
|
20
25
|
* Get the list of keyed documentation entries to be registered with documentation service.
|
|
21
26
|
*/
|
|
22
27
|
getExtraKeyedDocumentationEntries?(): LegendApplicationKeyedDocumentationEntry[];
|
|
23
28
|
/**
|
|
24
|
-
* Get the list of
|
|
29
|
+
* Get the list of documentation keys whose corresponding documentation entry is required
|
|
30
|
+
* in the application. The documentation registry will be scanned for the presence of these,
|
|
31
|
+
* if they are not available, warnings will be issued.
|
|
32
|
+
*/
|
|
33
|
+
getExtraRequiredDocumentationKeys?(): string[];
|
|
34
|
+
/**
|
|
35
|
+
* Get the list of contextual documentation entries to be registered with documentation service.
|
|
25
36
|
*/
|
|
26
|
-
|
|
37
|
+
getExtraContextualDocumentationEntries?(): LegendApplicationContextualDocumentationEntry[];
|
|
27
38
|
}
|
|
28
39
|
//# sourceMappingURL=LegendApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"LegendApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EACV,6CAA6C,EAC7C,2CAA2C,EAC3C,wCAAwC,EACzC,MAAM,4CAA4C,CAAC;AAEpD,8BAAsB,uBAAwB,SAAQ,cAAc;IAClE;;;OAGG;IACH,oCAAoC,CAAC,IAAI,2CAA2C,EAAE;IAEtF;;OAEG;IACH,iCAAiC,CAAC,IAAI,wCAAwC,EAAE;IAEhF;;;;OAIG;IACH,iCAAiC,CAAC,IAAI,MAAM,EAAE;IAE9C;;OAEG;IACH,sCAAsC,CAAC,IAAI,6CAA6C,EAAE;CAC3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAOtD,MAAM,OAAgB,uBAAwB,SAAQ,cAAc;CAuBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PureLanguageSupport.d.ts","sourceRoot":"","sources":["../../src/stores/PureLanguageSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PureLanguageSupport.d.ts","sourceRoot":"","sources":["../../src/stores/PureLanguageSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;AA2U7B,eAAO,MAAM,wBAAwB,kBACpB,kBAAkB,KAChC,IAmBF,CAAC"}
|
|
@@ -120,15 +120,20 @@ const generateLanguageMonarch = (extraKeywords, extraParsers) =>
|
|
|
120
120
|
PURE_CONNECTION_NAME.JSON_MODEL_CONNECTION,
|
|
121
121
|
PURE_CONNECTION_NAME.MODEL_CHAIN_CONNECTION,
|
|
122
122
|
PURE_CONNECTION_NAME.XML_MODEL_CONNECTION,
|
|
123
|
-
PURE_CONNECTION_NAME.FLAT_DATA_CONNECTION,
|
|
124
|
-
PURE_CONNECTION_NAME.RELATIONAL_DATABASE_CONNECTION,
|
|
125
123
|
// mapping
|
|
124
|
+
'include',
|
|
126
125
|
'EnumerationMapping',
|
|
127
126
|
'Pure',
|
|
128
|
-
'Relational',
|
|
129
127
|
'AssociationMapping',
|
|
130
128
|
'XStore',
|
|
131
129
|
'AggregationAware',
|
|
130
|
+
/**
|
|
131
|
+
* @modularize
|
|
132
|
+
* See https://github.com/finos/legend-studio/issues/65
|
|
133
|
+
*/
|
|
134
|
+
PURE_CONNECTION_NAME.FLAT_DATA_CONNECTION,
|
|
135
|
+
PURE_CONNECTION_NAME.RELATIONAL_DATABASE_CONNECTION,
|
|
136
|
+
'Relational',
|
|
132
137
|
],
|
|
133
138
|
operators: [
|
|
134
139
|
'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
|
+
/**
|
|
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
|
+
import { type RawExecutionPlan, type GraphManagerState, ExecutionPlan, ExecutionNode } from '@finos/legend-graph';
|
|
17
|
+
import type { ApplicationStore } from '../ApplicationStore.js';
|
|
18
|
+
import type { LegendApplicationConfig } from '../LegendApplicationConfig.js';
|
|
19
|
+
import type { TreeNodeData } from '@finos/legend-art';
|
|
20
|
+
export declare class ExecutionPlanViewTreeNodeData implements TreeNodeData {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
isSelected?: boolean;
|
|
24
|
+
isOpen?: boolean;
|
|
25
|
+
childrenIds?: string[];
|
|
26
|
+
executionPlan: ExecutionPlan;
|
|
27
|
+
constructor(id: string, label: string, executionPlan: ExecutionPlan);
|
|
28
|
+
}
|
|
29
|
+
export declare class ExecutionNodeTreeNodeData implements TreeNodeData {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
isSelected?: boolean;
|
|
33
|
+
isOpen?: boolean;
|
|
34
|
+
childrenIds?: string[];
|
|
35
|
+
executionNode: ExecutionNode;
|
|
36
|
+
constructor(id: string, label: string, executionNode: ExecutionNode);
|
|
37
|
+
}
|
|
38
|
+
export declare enum EXECUTION_PLAN_VIEW_MODE {
|
|
39
|
+
FORM = "Form",
|
|
40
|
+
JSON = "JSON"
|
|
41
|
+
}
|
|
42
|
+
export declare class ExecutionPlanState {
|
|
43
|
+
applicationStore: ApplicationStore<LegendApplicationConfig>;
|
|
44
|
+
graphManagerState: GraphManagerState;
|
|
45
|
+
displayDataJson: object;
|
|
46
|
+
displayData: string;
|
|
47
|
+
selectedNode: ExecutionNodeTreeNodeData | ExecutionPlanViewTreeNodeData | undefined;
|
|
48
|
+
viewMode: EXECUTION_PLAN_VIEW_MODE;
|
|
49
|
+
rawPlan?: RawExecutionPlan | undefined;
|
|
50
|
+
plan?: ExecutionPlan | undefined;
|
|
51
|
+
debugText?: string | undefined;
|
|
52
|
+
constructor(applicationStore: ApplicationStore<LegendApplicationConfig>, graphManagerState: GraphManagerState);
|
|
53
|
+
setViewMode(val: EXECUTION_PLAN_VIEW_MODE): void;
|
|
54
|
+
setRawPlan: (val: RawExecutionPlan | undefined) => void;
|
|
55
|
+
setPlan: (val: ExecutionPlan | undefined) => void;
|
|
56
|
+
setDebugText(val: string | undefined): void;
|
|
57
|
+
setSelectedNode(node: ExecutionNodeTreeNodeData | ExecutionPlanViewTreeNodeData | undefined): void;
|
|
58
|
+
setExecutionPlanDisplayData(val: string): void;
|
|
59
|
+
setExecutionPlanDisplayDataJson(val: object): void;
|
|
60
|
+
transformMetadataToProtocolJson(metaModel: ExecutionPlan | ExecutionNode): void;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=ExecutionPlanState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutionPlanState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/ExecutionPlanState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,aAAa,EACb,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,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AAuB,CAAC,EAC3D,iBAAiB,EAAE,iBAAiB;IAsBtC,WAAW,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI;IAIhD,UAAU,QAAS,gBAAgB,GAAG,SAAS,KAAG,IAAI,CAEpD;IAEF,OAAO,QAAS,aAAa,GAAG,SAAS,KAAG,IAAI,CAE9C;IAEF,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI3C,eAAe,CACb,IAAI,EAAE,yBAAyB,GAAG,6BAA6B,GAAG,SAAS,GAC1E,IAAI;IAUP,2BAA2B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI9C,+BAA+B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAQlD,+BAA+B,CAC7B,SAAS,EAAE,aAAa,GAAG,aAAa,GACvC,IAAI;CAWR"}
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
import { observable, action, makeObservable } from 'mobx';
|
|
17
|
+
import { ExecutionPlan, ExecutionNode, } from '@finos/legend-graph';
|
|
18
|
+
export class ExecutionPlanViewTreeNodeData {
|
|
19
|
+
id;
|
|
20
|
+
label;
|
|
21
|
+
isSelected;
|
|
22
|
+
isOpen;
|
|
23
|
+
childrenIds;
|
|
24
|
+
executionPlan;
|
|
25
|
+
constructor(id, label, executionPlan) {
|
|
26
|
+
this.id = id;
|
|
27
|
+
this.label = label;
|
|
28
|
+
this.executionPlan = executionPlan;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class ExecutionNodeTreeNodeData {
|
|
32
|
+
id;
|
|
33
|
+
label;
|
|
34
|
+
isSelected;
|
|
35
|
+
isOpen;
|
|
36
|
+
childrenIds;
|
|
37
|
+
executionNode;
|
|
38
|
+
constructor(id, label, executionNode) {
|
|
39
|
+
this.id = id;
|
|
40
|
+
this.label = label;
|
|
41
|
+
this.executionNode = executionNode;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export var EXECUTION_PLAN_VIEW_MODE;
|
|
45
|
+
(function (EXECUTION_PLAN_VIEW_MODE) {
|
|
46
|
+
EXECUTION_PLAN_VIEW_MODE["FORM"] = "Form";
|
|
47
|
+
EXECUTION_PLAN_VIEW_MODE["JSON"] = "JSON";
|
|
48
|
+
})(EXECUTION_PLAN_VIEW_MODE = EXECUTION_PLAN_VIEW_MODE || (EXECUTION_PLAN_VIEW_MODE = {}));
|
|
49
|
+
export class ExecutionPlanState {
|
|
50
|
+
applicationStore;
|
|
51
|
+
graphManagerState;
|
|
52
|
+
displayDataJson = {};
|
|
53
|
+
displayData = '';
|
|
54
|
+
selectedNode = undefined;
|
|
55
|
+
viewMode = EXECUTION_PLAN_VIEW_MODE.FORM;
|
|
56
|
+
rawPlan;
|
|
57
|
+
plan;
|
|
58
|
+
debugText;
|
|
59
|
+
constructor(applicationStore, graphManagerState) {
|
|
60
|
+
makeObservable(this, {
|
|
61
|
+
displayData: observable,
|
|
62
|
+
displayDataJson: observable,
|
|
63
|
+
viewMode: observable,
|
|
64
|
+
rawPlan: observable,
|
|
65
|
+
plan: observable,
|
|
66
|
+
debugText: observable,
|
|
67
|
+
setExecutionPlanDisplayData: action,
|
|
68
|
+
setExecutionPlanDisplayDataJson: action,
|
|
69
|
+
transformMetadataToProtocolJson: action,
|
|
70
|
+
setSelectedNode: action,
|
|
71
|
+
setRawPlan: action,
|
|
72
|
+
setPlan: action,
|
|
73
|
+
setViewMode: action,
|
|
74
|
+
setDebugText: action,
|
|
75
|
+
});
|
|
76
|
+
this.applicationStore = applicationStore;
|
|
77
|
+
this.graphManagerState = graphManagerState;
|
|
78
|
+
}
|
|
79
|
+
setViewMode(val) {
|
|
80
|
+
this.viewMode = val;
|
|
81
|
+
}
|
|
82
|
+
setRawPlan = (val) => {
|
|
83
|
+
this.rawPlan = val;
|
|
84
|
+
};
|
|
85
|
+
setPlan = (val) => {
|
|
86
|
+
this.plan = val;
|
|
87
|
+
};
|
|
88
|
+
setDebugText(val) {
|
|
89
|
+
this.debugText = val;
|
|
90
|
+
}
|
|
91
|
+
setSelectedNode(node) {
|
|
92
|
+
if (this.selectedNode) {
|
|
93
|
+
this.selectedNode.isSelected = false;
|
|
94
|
+
}
|
|
95
|
+
if (node) {
|
|
96
|
+
node.isSelected = true;
|
|
97
|
+
}
|
|
98
|
+
this.selectedNode = node;
|
|
99
|
+
}
|
|
100
|
+
setExecutionPlanDisplayData(val) {
|
|
101
|
+
this.displayData = val;
|
|
102
|
+
}
|
|
103
|
+
setExecutionPlanDisplayDataJson(val) {
|
|
104
|
+
this.displayDataJson = val;
|
|
105
|
+
this.setExecutionPlanDisplayData(JSON.stringify(this.displayDataJson, undefined, 2));
|
|
106
|
+
}
|
|
107
|
+
transformMetadataToProtocolJson(metaModel) {
|
|
108
|
+
if (metaModel instanceof ExecutionPlan) {
|
|
109
|
+
const protocolJson = this.graphManagerState.graphManager.serializeExecutionPlan(metaModel);
|
|
110
|
+
this.setExecutionPlanDisplayDataJson(protocolJson);
|
|
111
|
+
}
|
|
112
|
+
else if (metaModel instanceof ExecutionNode) {
|
|
113
|
+
const protocolJson = this.graphManagerState.graphManager.serializeExecutionNode(metaModel);
|
|
114
|
+
this.setExecutionPlanDisplayDataJson(protocolJson);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=ExecutionPlanState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutionPlanState.js","sourceRoot":"","sources":["../../../src/stores/shared/ExecutionPlanState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAGL,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAC;AAK7B,MAAM,OAAO,6BAA6B;IACxC,EAAE,CAAS;IACX,KAAK,CAAS;IACd,UAAU,CAAW;IACrB,MAAM,CAAW;IACjB,WAAW,CAAY;IACvB,aAAa,CAAiB;IAE9B,YAAY,EAAU,EAAE,KAAa,EAAE,aAA4B;QACjE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED,MAAM,OAAO,yBAAyB;IACpC,EAAE,CAAS;IACX,KAAK,CAAS;IACd,UAAU,CAAW;IACrB,MAAM,CAAW;IACjB,WAAW,CAAY;IACvB,aAAa,CAAgB;IAE7B,YAAY,EAAU,EAAE,KAAa,EAAE,aAA4B;QACjE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,yCAAa,CAAA;AACf,CAAC,EAHW,wBAAwB,GAAxB,wBAAwB,KAAxB,wBAAwB,QAGnC;AAED,MAAM,OAAO,kBAAkB;IAC7B,gBAAgB,CAA4C;IAC5D,iBAAiB,CAAoB;IACrC,eAAe,GAAW,EAAE,CAAC;IAC7B,W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G,IAAI,CAAC;SACxB;QACD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,2BAA2B,CAAC,GAAW;QACrC,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,+BAA+B,CAAC,GAAW;QACzC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;QAE3B,IAAI,CAAC,2BAA2B,CAC9B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,EAAE,CAAC,CAAC,CACnD,CAAC;IACJ,CAAC;IAED,+BAA+B,CAC7B,SAAwC;QAExC,IAAI,SAAS,YAAY,aAAa,EAAE;YACtC,MAAM,YAAY,GAChB,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;YACxE,IAAI,CAAC,+BAA+B,CAAC,YAAY,CAAC,CAAC;SACpD;aAAM,IAAI,SAAS,YAAY,aAAa,EAAE;YAC7C,MAAM,YAAY,GAChB,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;YACxE,IAAI,CAAC,+BAA+B,CAAC,YAAY,CAAC,CAAC;SACpD;IACH,CAAC;CACF"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LambdaEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,WAAW,EAAQ,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,8BAAsB,iBAAiB;IACrC,QAAQ,CAAC,IAAI,SAAU;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,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,CAAC;IAED,wBAAwB,CACtB,iBAAoC;QAEpC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,GAC5D,iBAAiB,CAAC;QACpB,MAAM,UAAU,GAAG,CAAC,CAAC;QACrB,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;QAC9C,OAAO,IAAI,iBAAiB,CAC1B,QAAQ,EACR,SAAS,GAAG,UAAU,EACtB,WAAW,GAAG,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAClD,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/C,CAAC;IACJ,CAAC;IAED,mBAAmB,CAAC,gBAAwB;QAC1C,OAAO,gBAAgB,CAAC,SAAS,CAC/B,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EACtE,gBAAgB,CAAC,MAAM,CACxB,CAAC;IACJ,CAAC;CAMF"}
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type ObserverContext, type Type, type ValueSpecification, type PureModel,
|
|
16
|
+
import { type ObserverContext, type Type, type ValueSpecification, type PureModel, VariableExpression, LambdaFunction } from '@finos/legend-graph';
|
|
17
17
|
export declare enum PARAMETER_SUBMIT_ACTION {
|
|
18
18
|
EXECUTE = "EXECUTE",
|
|
19
19
|
EXPORT = "EXPORT"
|
|
20
20
|
}
|
|
21
|
-
export declare const createMockEnumerationProperty: (enumeration: Enumeration) => string;
|
|
22
21
|
export declare const buildParametersLetLambdaFunc: (graph: PureModel, lambdaParametersStates: LambdaParameterState[]) => LambdaFunction;
|
|
23
22
|
export declare class LambdaParameterState {
|
|
24
23
|
readonly uuid: string;
|
|
@@ -27,7 +26,6 @@ export declare class LambdaParameterState {
|
|
|
27
26
|
value: ValueSpecification | undefined;
|
|
28
27
|
constructor(variableExpression: VariableExpression, observableContext: ObserverContext);
|
|
29
28
|
mockParameterValue(): void;
|
|
30
|
-
private generateMockValues;
|
|
31
29
|
setValue(value: ValueSpecification | undefined): void;
|
|
32
30
|
changeVariableType(type: Type): void;
|
|
33
31
|
changeMultiplicity(lowerBound: number, uppderBound: number | undefined): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAOd,kBAAkB,EAClB,cAAc,EAQf,MAAM,qBAAqB,CAAC;AAe7B,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,4BAA4B,UAChC,SAAS,0BACQ,oBAAoB,EAAE,KAC7C,cA6BF,CAAC;AACF,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,iBAAiB,EAAE,eAAe,CAAC;IACnC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;gBAGpC,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,eAAe;IAWpC,kBAAkB,IAAI,IAAI;IAI1B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAWrD,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAUpC,kBAAkB,CAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,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