@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.
Files changed (24) hide show
  1. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.d.ts.map +1 -1
  2. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +8 -6
  3. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js.map +1 -1
  4. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
  5. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +7 -7
  6. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
  7. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  8. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +3 -3
  9. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  10. package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
  11. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +1 -1
  12. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
  13. package/lib/index.css +2 -2
  14. package/lib/index.css.map +1 -1
  15. package/lib/package.json +1 -1
  16. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts.map +1 -1
  17. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +1 -1
  18. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -1
  19. package/package.json +5 -5
  20. package/src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx +56 -60
  21. package/src/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.tsx +35 -37
  22. package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -0
  23. package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +1 -0
  24. 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, PURE_MappingIcon } from '@finos/legend-art';
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
- <div className="query-builder__setup__config-group">
51
- <div className="query-builder__setup__config-group__header">
52
- <div className="query-builder__setup__config-group__header__title">
53
- execution context
54
- </div>
55
- </div>
56
- <div className="query-builder__setup__config-group__content">
57
- <div className="query-builder__setup__config-group__item">
58
- <div
59
- className="btn--sm query-builder__setup__config-group__item__label"
60
- title="mapping"
61
- >
62
- <PURE_MappingIcon />
63
- </div>
64
- <CustomSelectorInput
65
- className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
66
- disabled={true}
67
- options={[]}
68
- value={selectedMappingOption}
69
- darkMode={
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
- formatOptionLabel={getPackageableElementOptionFormatter({
74
- darkMode:
75
- !applicationStore.layoutService
76
- .TEMPORARY__isLightColorThemeEnabled,
77
- })}
78
- />
79
- </div>
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
- <QueryBuilderClassSelector
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,
@@ -290,6 +290,7 @@ const EqualToAsssertionEditor = observer(
290
290
  type,
291
291
  testAssertionEditorState.editorStore.changeDetectionState
292
292
  .observerContext,
293
+ true,
293
294
  );
294
295
  equalToAssertionState.updateValueSpec(valSpec);
295
296
  }
@@ -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(