@finos/legend-application-studio 27.0.0 → 27.1.1
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/__lib__/LegendStudioApplicationNavigationContext.d.ts +9 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js +11 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/__lib__/LegendStudioEvent.d.ts +1 -0
- package/lib/__lib__/LegendStudioEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioEvent.js +1 -0
- package/lib/__lib__/LegendStudioEvent.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts +6 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +7 -0
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/ElementIconUtils.d.ts.map +1 -1
- package/lib/components/ElementIconUtils.js +3 -1
- package/lib/components/ElementIconUtils.js.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.js +1 -0
- package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +8 -10
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +10 -4
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js +65 -12
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +3 -0
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +3 -0
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +3 -0
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +101 -137
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +1 -2
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +9 -4
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts +11 -0
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +27 -2
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +38 -6
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +3 -0
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +43 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +10 -0
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.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/EditorGraphState.js +1 -1
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +10 -2
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts +0 -1
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +43 -10
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +26 -30
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +14 -19
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +30 -65
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +4 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +5 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts +56 -78
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +285 -384
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.d.ts +23 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.js +129 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +12 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js +15 -8
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts +7 -4
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js +53 -10
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts +2 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js +20 -16
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts +9 -0
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts.map +1 -1
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js +149 -3
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.d.ts +1 -1
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js +3 -0
- package/lib/stores/editor/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/MockDataUtils.js +3 -0
- package/lib/stores/editor/utils/MockDataUtils.js.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -5
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js +2 -6
- package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts +11 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +50 -1
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts +5 -4
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js +4 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -1
- package/package.json +6 -6
- package/src/__lib__/LegendStudioApplicationNavigationContext.ts +12 -1
- package/src/__lib__/LegendStudioEvent.ts +1 -1
- package/src/application/LegendStudioApplicationConfig.ts +8 -0
- package/src/components/ElementIconUtils.tsx +3 -0
- package/src/components/editor/editor-group/ModelImporter.tsx +4 -0
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +12 -13
- package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +45 -38
- package/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx +140 -31
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +7 -0
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +6 -0
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +6 -0
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +296 -414
- package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +1 -1
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +12 -7
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +88 -3
- package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +104 -18
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +111 -1
- package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +10 -0
- package/src/stores/editor/EditorGraphState.ts +1 -1
- package/src/stores/editor/EditorStore.ts +29 -17
- package/src/stores/editor/NewElementState.ts +109 -21
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +33 -40
- package/src/stores/editor/editor-state/element-editor-state/data/DataEditorState.ts +7 -1
- package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +48 -77
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +5 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +407 -617
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.ts +243 -0
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.ts +6 -2
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +18 -1
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +20 -12
- package/src/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.ts +76 -18
- package/src/stores/editor/editor-state/element-editor-state/testable/TestableEditorState.ts +29 -24
- package/src/stores/editor/panel-group/SQLPlaygroundPanelState.ts +224 -1
- package/src/stores/editor/sidebar-state/testable/GlobalTestRunnerState.ts +4 -1
- package/src/stores/editor/utils/MockDataUtils.ts +2 -0
- package/src/stores/editor/utils/ModelClassifierUtils.ts +2 -6
- package/src/stores/editor/utils/TestableUtils.ts +73 -0
- package/src/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.ts +15 -12
- package/tsconfig.json +1 -0
@@ -13,138 +13,116 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Mapping,
|
16
|
+
import { type Mapping, MappingTestSuite, type Class, type MappingModelCoverageAnalysisResult, type RawLambda, MappingTest, type AtomicTest, type EmbeddedData, type Store, type DataElement, type TestResult, StoreTestData } from '@finos/legend-graph';
|
17
17
|
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
18
18
|
import { LambdaEditorState } from '@finos/legend-query-builder';
|
19
19
|
import { type MappingEditorState } from '../MappingEditorState.js';
|
20
20
|
import { TESTABLE_TEST_TAB, TestableTestEditorState, TestableTestSuiteEditorState } from '../../testable/TestableEditorState.js';
|
21
21
|
import { EmbeddedDataEditorState } from '../../data/DataEditorState.js';
|
22
22
|
import type { EditorStore } from '../../../../EditorStore.js';
|
23
|
-
export declare enum MAPPING_TEST_SUITE_TYPE {
|
24
|
-
DATA = "DATA",
|
25
|
-
QUERY = "QUERY"
|
26
|
-
}
|
27
|
-
export declare class MappingTestableQueryState extends LambdaEditorState {
|
28
|
-
editorStore: EditorStore;
|
29
|
-
parent: MappingQueryTestSuite | MappingQueryTest;
|
30
|
-
isInitializingLambda: boolean;
|
31
|
-
query: RawLambda;
|
32
|
-
constructor(editorStore: EditorStore, parent: MappingQueryTestSuite | MappingQueryTest, query: RawLambda);
|
33
|
-
get lambdaId(): string;
|
34
|
-
setIsInitializingLambda(val: boolean): void;
|
35
|
-
updateLamba(val: RawLambda): GeneratorFn<void>;
|
36
|
-
convertLambdaObjectToGrammarString(pretty?: boolean): GeneratorFn<void>;
|
37
|
-
convertLambdaGrammarStringToObject(): GeneratorFn<void>;
|
38
|
-
}
|
39
|
-
export declare abstract class MappingTestState extends TestableTestEditorState {
|
40
|
-
readonly mappingTestableState: MappingTestableState;
|
41
|
-
readonly uuid: string;
|
42
|
-
test: MappingTest;
|
43
|
-
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, test: MappingTest);
|
44
|
-
abstract defaultTab(): TESTABLE_TEST_TAB;
|
45
|
-
}
|
46
23
|
export declare class StoreTestDataState {
|
47
24
|
readonly editorStore: EditorStore;
|
48
|
-
readonly testDataState:
|
25
|
+
readonly testDataState: MappingTestDataState;
|
49
26
|
storeTestData: StoreTestData;
|
50
|
-
generatingTestDataSate: ActionState;
|
51
27
|
embeddedEditorState: EmbeddedDataEditorState;
|
52
|
-
|
28
|
+
dataElementModal: boolean;
|
29
|
+
constructor(editorStore: EditorStore, testDataState: MappingTestDataState, value: StoreTestData);
|
30
|
+
setDataElementModal(val: boolean): void;
|
31
|
+
changeEmbeddedData(val: EmbeddedData): void;
|
53
32
|
}
|
54
|
-
export declare class
|
33
|
+
export declare class MappingTestDataState {
|
55
34
|
readonly editorStore: EditorStore;
|
56
35
|
readonly mappingTestableState: MappingTestableState;
|
57
36
|
selectedDataState: StoreTestDataState | undefined;
|
58
|
-
dataHolder:
|
37
|
+
dataHolder: MappingTest;
|
59
38
|
showNewModal: boolean;
|
60
|
-
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, holder:
|
39
|
+
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, holder: MappingTest);
|
61
40
|
initDefaultStore(): void;
|
62
41
|
setShowModal(val: boolean): void;
|
63
42
|
openStoreTestData(val: StoreTestData): void;
|
64
43
|
deleteStoreTestData(val: StoreTestData): void;
|
65
44
|
addStoreTestData(val: Store, type: string, dataElement: DataElement | undefined): void;
|
66
45
|
}
|
67
|
-
export declare class
|
68
|
-
|
69
|
-
|
70
|
-
|
46
|
+
export declare class MappingTestState extends TestableTestEditorState {
|
47
|
+
readonly parentState: MappingTestSuiteState;
|
48
|
+
readonly mappingTestableState: MappingTestableState;
|
49
|
+
readonly uuid: string;
|
50
|
+
test: MappingTest;
|
51
|
+
dataState: MappingTestDataState;
|
52
|
+
constructor(editorStore: EditorStore, parentSuiteState: MappingTestSuiteState, test: MappingTest);
|
71
53
|
defaultTab(): TESTABLE_TEST_TAB;
|
72
|
-
buildQueryState(): MappingTestableQueryState;
|
73
54
|
}
|
74
|
-
export declare class
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
55
|
+
export declare class MappingTestSuiteQueryState extends LambdaEditorState {
|
56
|
+
editorStore: EditorStore;
|
57
|
+
parent: MappingTestSuite;
|
58
|
+
isInitializingLambda: boolean;
|
59
|
+
query: RawLambda;
|
60
|
+
constructor(editorStore: EditorStore, parent: MappingTestSuite, query: RawLambda);
|
61
|
+
get lambdaId(): string;
|
62
|
+
setIsInitializingLambda(val: boolean): void;
|
63
|
+
updateLamba(val: RawLambda): GeneratorFn<void>;
|
64
|
+
convertLambdaObjectToGrammarString(pretty?: boolean): GeneratorFn<void>;
|
65
|
+
convertLambdaGrammarStringToObject(): GeneratorFn<void>;
|
79
66
|
}
|
80
|
-
export declare
|
67
|
+
export declare class MappingTestSuiteState extends TestableTestSuiteEditorState {
|
81
68
|
readonly mappingTestableState: MappingTestableState;
|
82
69
|
suite: MappingTestSuite;
|
83
70
|
testStates: MappingTestState[];
|
84
71
|
selectTestState: MappingTestState | undefined;
|
85
72
|
showCreateModal: boolean;
|
73
|
+
queryState: MappingTestSuiteQueryState;
|
86
74
|
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, suite: MappingTestSuite);
|
87
75
|
buildTestStates(): MappingTestState[];
|
88
|
-
|
89
|
-
|
76
|
+
buildTestState(val: AtomicTest): MappingTestState | undefined;
|
77
|
+
buildQueryState(): MappingTestSuiteQueryState;
|
78
|
+
createStoreTestData(targetClass: Class | undefined): StoreTestData | undefined;
|
90
79
|
addNewTest(id: string, _class: Class | undefined): void;
|
91
|
-
abstract createNewTest(id: string, _class: Class | undefined): MappingTest;
|
92
80
|
setShowModal(val: boolean): void;
|
93
81
|
changeTest(val: MappingTest): void;
|
94
82
|
deleteTest(val: MappingTest): void;
|
95
83
|
removeTestState(val: MappingTest): void;
|
96
84
|
}
|
97
|
-
export declare class MappingDataTestSuiteState extends MappingTestSuiteState {
|
98
|
-
suite: MappingDataTestSuite;
|
99
|
-
dataState: MappingTestableDataState;
|
100
|
-
testStates: MappingQueryTestState[];
|
101
|
-
selectTestState: MappingQueryTestState | undefined;
|
102
|
-
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, suite: MappingDataTestSuite);
|
103
|
-
buildTestState(val: MappingTest): MappingTestState | undefined;
|
104
|
-
createNewTest(id: string, _class: Class | undefined): MappingTest;
|
105
|
-
getDefaultClass(): Class | undefined;
|
106
|
-
}
|
107
|
-
export declare class MappingQueryTestSuiteState extends MappingTestSuiteState {
|
108
|
-
suite: MappingQueryTestSuite;
|
109
|
-
testStates: MappingDataTestState[];
|
110
|
-
selectTestState: MappingDataTestState | undefined;
|
111
|
-
queryState: MappingTestableQueryState;
|
112
|
-
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState, suite: MappingQueryTestSuite);
|
113
|
-
buildTestState(val: MappingTest): MappingTestState | undefined;
|
114
|
-
createNewTest(id: string, _class: Class | undefined): MappingTest;
|
115
|
-
buildQueryState(): MappingTestableQueryState;
|
116
|
-
getDefaultClass(): Class | undefined;
|
117
|
-
}
|
118
85
|
export declare class CreateSuiteState {
|
119
86
|
readonly editorStore: EditorStore;
|
120
87
|
readonly mappingTestableState: MappingTestableState;
|
121
88
|
showModal: boolean;
|
122
89
|
isCreatingSuiteState: ActionState;
|
123
90
|
constructor(editorStore: EditorStore, mappingTestableState: MappingTestableState);
|
124
|
-
|
125
|
-
createAndAddTestSuite(_class: Class, type: MAPPING_TEST_SUITE_TYPE, name: string, testName: string): GeneratorFn<void>;
|
126
|
-
createDefaultQuery(_class: Class): RawLambda;
|
127
|
-
attemptToGenerateTestData(setImpl: SetImplementation, editorStore: EditorStore): StoreTestData | undefined;
|
91
|
+
createAndAddTestSuite(_class: Class, suiteName: string, testName: string): GeneratorFn<void>;
|
128
92
|
}
|
129
93
|
export declare class MappingTestableState {
|
130
94
|
readonly editorStore: EditorStore;
|
131
95
|
readonly mappingEditorState: MappingEditorState;
|
132
|
-
selectedTestSuite: MappingTestSuiteState | undefined;
|
133
|
-
testableComponentToRename: MappingTestSuite | MappingTest | TestAssertion | undefined;
|
134
|
-
createSuiteState: CreateSuiteState;
|
135
96
|
mappingModelCoverageAnalysisState: ActionState;
|
136
97
|
mappingModelCoverageAnalysisResult: MappingModelCoverageAnalysisResult | undefined;
|
98
|
+
testableComponentToRename: MappingTestSuite | MappingTest | undefined;
|
99
|
+
createSuiteState: CreateSuiteState | undefined;
|
100
|
+
isRunningTestableSuitesState: ActionState;
|
101
|
+
isRunningFailingSuitesState: ActionState;
|
102
|
+
selectedTestSuite: MappingTestSuiteState | undefined;
|
103
|
+
testableResults: TestResult[] | undefined;
|
104
|
+
runningSuite: MappingTestSuite | undefined;
|
137
105
|
constructor(editorStore: EditorStore, mappingEditorState: MappingEditorState);
|
138
106
|
get mapping(): Mapping;
|
139
|
-
|
107
|
+
get suiteCount(): number;
|
108
|
+
get passingSuites(): MappingTestSuite[];
|
109
|
+
get failingSuites(): MappingTestSuite[];
|
110
|
+
get staticSuites(): MappingTestSuite[];
|
111
|
+
resolveSuiteResults(suite: MappingTestSuite): TestResult[] | undefined;
|
112
|
+
clearTestResultsForSuite(suite: MappingTestSuite): void;
|
113
|
+
setTestableResults(val: TestResult[] | undefined): void;
|
140
114
|
init(): void;
|
115
|
+
openCreateModal(): void;
|
116
|
+
closeCreateModal(): void;
|
117
|
+
renameTestableComponent(val: string | undefined): void;
|
141
118
|
changeSuite(suite: MappingTestSuite): void;
|
142
|
-
setRenameComponent(testSuite: MappingTestSuite |
|
119
|
+
setRenameComponent(testSuite: MappingTestSuite | MappingTest | undefined): void;
|
143
120
|
deleteTestSuite(testSuite: MappingTestSuite): void;
|
144
|
-
|
145
|
-
buildTestSuiteState(val: MappingTestSuite): MappingTestSuiteState | undefined;
|
121
|
+
buildTestSuiteState(val: MappingTestSuite): MappingTestSuiteState;
|
146
122
|
analyzeMappingModelCoverage(): GeneratorFn<void>;
|
147
|
-
|
148
|
-
|
123
|
+
runSuite(suite: MappingTestSuite): GeneratorFn<void>;
|
124
|
+
runTestable(): GeneratorFn<void>;
|
125
|
+
runAllFailingSuites(): GeneratorFn<void>;
|
126
|
+
handleNewResults(results: TestResult[]): void;
|
149
127
|
}
|
150
128
|
//# sourceMappingURL=MappingTestableState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingTestableState.d.ts","sourceRoot":"","sources":["../../../../../../../src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,OAAO,EACZ,
|
1
|
+
{"version":3,"file":"MappingTestableState.d.ts","sourceRoot":"","sources":["../../../../../../../src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,OAAO,EACZ,gBAAgB,EAChB,KAAK,KAAK,EACV,KAAK,kCAAkC,EACvC,KAAK,SAAS,EACd,WAAW,EACX,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,UAAU,EAMf,aAAa,EAMd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,WAAW,EAEX,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAcnE,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAOxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAQ9D,qBAAa,kBAAkB;IAC7B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;IAC7C,aAAa,EAAE,aAAa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