@finos/legend-application-studio 28.16.23 → 28.16.25
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.d.ts.map +1 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +8 -6
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +7 -7
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +3 -3
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -1
- package/package.json +5 -5
- package/src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx +56 -60
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.tsx +35 -37
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -0
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +1 -0
- package/src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts +1 -0
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
buildElementOption,
|
21
21
|
getPackageableElementOptionFormatter,
|
22
22
|
} from '@finos/legend-lego/graph-editor';
|
23
|
-
import { CustomSelectorInput,
|
23
|
+
import { CustomSelectorInput, PanelHeader } from '@finos/legend-art';
|
24
24
|
import { getMappingCompatibleClasses } from '@finos/legend-graph';
|
25
25
|
import { QueryBuilderClassSelector } from '@finos/legend-query-builder';
|
26
26
|
import type { MappingExecutionQueryBuilderState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
@@ -46,45 +46,43 @@ const MappingExecutionQueryBuilderSetupPanelContent = observer(
|
|
46
46
|
);
|
47
47
|
|
48
48
|
return (
|
49
|
-
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
49
|
+
<div className="query-builder__setup__config-group">
|
50
|
+
<PanelHeader title="properties" />
|
51
|
+
<div className="query-builder__setup__config-group__content">
|
52
|
+
<div className="query-builder__setup__config-group__item">
|
53
|
+
<label
|
54
|
+
className="btn--sm query-builder__setup__config-group__item__label"
|
55
|
+
title="mapping"
|
56
|
+
htmlFor="query-builder__setup__mapping-selector"
|
57
|
+
>
|
58
|
+
Mapping
|
59
|
+
</label>
|
60
|
+
<CustomSelectorInput
|
61
|
+
inputId="query-builder__setup__mapping-selector"
|
62
|
+
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
63
|
+
disabled={true}
|
64
|
+
options={[]}
|
65
|
+
value={selectedMappingOption}
|
66
|
+
darkMode={
|
67
|
+
!applicationStore.layoutService
|
68
|
+
.TEMPORARY__isLightColorThemeEnabled
|
69
|
+
}
|
70
|
+
formatOptionLabel={getPackageableElementOptionFormatter({
|
71
|
+
darkMode:
|
70
72
|
!applicationStore.layoutService
|
71
|
-
.TEMPORARY__isLightColorThemeEnabled
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
73
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
74
|
+
})}
|
75
|
+
/>
|
76
|
+
</div>
|
77
|
+
<div className="query-builder__setup__config-group__item">
|
78
|
+
<QueryBuilderClassSelector
|
79
|
+
queryBuilderState={queryBuilderState}
|
80
|
+
classes={classes}
|
81
|
+
noMatchMessage="No compatible entity found for specified mapping"
|
82
|
+
/>
|
80
83
|
</div>
|
81
84
|
</div>
|
82
|
-
|
83
|
-
queryBuilderState={queryBuilderState}
|
84
|
-
classes={classes}
|
85
|
-
noMatchMessage="No compatible class found for specified mapping"
|
86
|
-
/>
|
87
|
-
</>
|
85
|
+
</div>
|
88
86
|
);
|
89
87
|
},
|
90
88
|
);
|
@@ -54,6 +54,7 @@ import {
|
|
54
54
|
QueryLoaderDialog,
|
55
55
|
ExecutionPlanViewer,
|
56
56
|
QueryBuilderAdvancedWorkflowState,
|
57
|
+
QueryBuilderActionConfig,
|
57
58
|
} from '@finos/legend-query-builder';
|
58
59
|
import { ProjectViewerEditorMode } from '../../../../stores/project-view/ProjectViewerEditorMode.js';
|
59
60
|
import { useLegendStudioApplicationStore } from '../../../LegendStudioFrameworkProvider.js';
|
@@ -145,6 +146,7 @@ export const ServiceExecutionQueryEditor = observer(
|
|
145
146
|
embeddedQueryBuilderState.editorStore.applicationStore,
|
146
147
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
147
148
|
QueryBuilderAdvancedWorkflowState.INSTANCE,
|
149
|
+
QueryBuilderActionConfig.INSTANCE,
|
148
150
|
service,
|
149
151
|
undefined,
|
150
152
|
selectedExecutionState?.executionContext instanceof
|
@@ -491,6 +493,7 @@ export const queryService = async (
|
|
491
493
|
embeddedQueryBuilderState.editorStore.applicationStore,
|
492
494
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
493
495
|
QueryBuilderAdvancedWorkflowState.INSTANCE,
|
496
|
+
QueryBuilderActionConfig.INSTANCE,
|
494
497
|
service,
|
495
498
|
undefined,
|
496
499
|
selectedExec,
|
@@ -596,6 +596,7 @@ export const createFunctionTest = (
|
|
596
596
|
editorStore.graphManagerState.graph,
|
597
597
|
type,
|
598
598
|
editorStore.changeDetectionState.observerContext,
|
599
|
+
true,
|
599
600
|
);
|
600
601
|
const expected =
|
601
602
|
editorStore.graphManagerState.graphManager.serializeValueSpecification(
|