@finos/legend-application-studio 24.1.1 → 24.1.2
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/LegendStudioApplicationConfig.d.ts +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +2 -2
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts +0 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts +0 -1
- package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +0 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.js +159 -47
- package/lib/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/FileGenerationViewer.d.ts +0 -1
- package/lib/components/editor/editor-group/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/FunctionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts +0 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +2 -2
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityDiffView.d.ts +0 -1
- package/lib/components/editor/editor-group/diff-editor/EntityDiffView.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementNativeView.d.ts +0 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementNativeView.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts +0 -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_ExternalFormatConnectionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts +0 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts +0 -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_SchemaSetModelGenerationEditor.d.ts +0 -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 +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js +6 -7
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +9 -9
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +62 -38
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +2 -2
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +6 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/TEMPORARY__SnowflakeServiceDeployer.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/TEMPORARY__SnowflakeServiceDeployer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts +0 -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 +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/{TestAssertionEditor.d.ts → TestableSharedComponents.d.ts} +2 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -0
- package/lib/components/editor/editor-group/testable/{TestAssertionEditor.js → TestableSharedComponents.js} +7 -6
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -0
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/UMLEditor.d.ts +0 -1
- package/lib/components/editor/editor-group/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/panel-group/ConsolePanel.d.ts +0 -1
- package/lib/components/editor/panel-group/ConsolePanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.d.ts +0 -1
- package/lib/components/editor/panel-group/DevToolPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/PanelGroup.d.ts +0 -1
- package/lib/components/editor/panel-group/PanelGroup.d.ts.map +1 -1
- package/lib/components/editor/panel-group/ProblemsPanel.d.ts +0 -1
- package/lib/components/editor/panel-group/ProblemsPanel.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.d.ts +3 -3
- package/lib/components/editor/side-bar/RegisterService.d.ts.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.js +72 -6
- package/lib/components/editor/side-bar/RegisterService.js.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/SideBar.js +1 -1
- package/lib/components/editor/side-bar/SideBar.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/editor/EditorStore.d.ts +2 -2
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +4 -3
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.js +3 -0
- package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +3 -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 +15 -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 +16 -23
- 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 +133 -76
- 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/service/ServiceRegistrationState.d.ts +2 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js +6 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +1 -0
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +12 -2
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.d.ts +39 -8
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js +131 -24
- package/lib/stores/editor/sidebar-state/BulkServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts +3 -0
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +14 -0
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts +1 -0
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js +3 -0
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.d.ts +3 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.js +7 -1
- package/lib/stores/graph-modifier/Testable_GraphModifierHelper.js.map +1 -1
- package/package.json +11 -11
- package/src/application/LegendStudioApplicationConfig.ts +2 -2
- package/src/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.tsx +389 -146
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +3 -3
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +1 -3
- package/src/components/editor/editor-group/mapping-editor/MappingEditor.tsx +1 -1
- package/src/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.tsx +29 -34
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +10 -9
- package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +148 -123
- package/src/components/editor/editor-group/service-editor/NewServiceModal.tsx +1 -1
- package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +0 -1
- package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +2 -2
- package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +35 -0
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.tsx +1 -1
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +1 -1
- package/src/components/editor/editor-group/testable/{TestAssertionEditor.tsx → TestableSharedComponents.tsx} +24 -13
- package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +1 -1
- package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +1 -1
- package/src/components/editor/editor-group/uml-editor/EnumerationEditor.tsx +1 -1
- package/src/components/editor/editor-group/uml-editor/ProfileEditor.tsx +2 -4
- package/src/components/editor/side-bar/RegisterService.tsx +326 -28
- package/src/components/editor/side-bar/SideBar.tsx +2 -2
- package/src/stores/editor/EditorStore.ts +4 -6
- package/src/stores/editor/GraphEditFormModeState.ts +7 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +26 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +200 -105
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.ts +7 -0
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +18 -5
- package/src/stores/editor/sidebar-state/BulkServiceRegistrationState.ts +186 -33
- package/src/stores/editor/utils/TestableUtils.ts +17 -0
- package/src/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.ts +9 -0
- package/src/stores/graph-modifier/Testable_GraphModifierHelper.ts +18 -0
- package/tsconfig.json +1 -1
- package/lib/components/editor/editor-group/testable/TestAssertionEditor.d.ts.map +0 -1
- package/lib/components/editor/editor-group/testable/TestAssertionEditor.js.map +0 -1
@@ -52,7 +52,7 @@ declare class LegendStudioApplicationCoreOptions {
|
|
52
52
|
* Indicates whether we should render the new mapping testable editor or the deprecated legacy editor.
|
53
53
|
* This flag will be removed once the editor for testable editor is agreed on.
|
54
54
|
*/
|
55
|
-
|
55
|
+
TEMPORARY__enableMappingTestableEditor: boolean;
|
56
56
|
private static readonly serialization;
|
57
57
|
static create(configData: PlainObject<LegendStudioApplicationCoreOptions>): LegendStudioApplicationCoreOptions;
|
58
58
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EAGnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,oCAAoC;IAC/C,GAAG,EAAG,MAAM,CAAC;IACb,YAAY,EAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACrB,aAAa,EAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH;AAED,cAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,UAAS;IACrC,gCAAgC,SAAwB;IAExD;;;;;;OAMG;IACH,+BAA+B,UAAS;IACxC;;;;;;;;OAQG;IACH,oCAAoC,EAAE,oCAAoC,EAAE,CACvE;IAEL;;;OAGG;IACH,
|
1
|
+
{"version":3,"file":"LegendStudioApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EAGnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,oCAAoC;IAC/C,GAAG,EAAG,MAAM,CAAC;IACb,YAAY,EAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACrB,aAAa,EAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH;AAED,cAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,UAAS;IACrC,gCAAgC,SAAwB;IAExD;;;;;;OAMG;IACH,+BAA+B,UAAS;IACxC;;;;;;;;OAQG;IACH,oCAAoC,EAAE,oCAAoC,EAAE,CACvE;IAEL;;;OAGG;IACH,sCAAsC,UAAS;IAE/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAUnC;IAEF,MAAM,CAAC,MAAM,CACX,UAAU,EAAE,WAAW,CAAC,kCAAkC,CAAC,GAC1D,kCAAkC;CAKtC;AAED,MAAM,WAAW,wCACf,SAAQ,kCAAkC;IAC1C,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,cAAc,CAAA;KAAE,CAAC;IACpD,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;;;;;WAKG;QACH,wCAAwC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC/D,CAAC;IACF,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACzB;AAED,qBAAa,6BAA8B,SAAQ,uBAAuB;IACxE,QAAQ,CAAC,OAAO,qCAA4C;IAE5D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,wCAAwC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG/C,KAAK,EAAE,mCAAmC,CAAC,wCAAwC,CAAC;IAkE7E,+BAA+B,IAAI,MAAM;CAGnD"}
|
@@ -59,12 +59,12 @@ class LegendStudioApplicationCoreOptions {
|
|
59
59
|
* Indicates whether we should render the new mapping testable editor or the deprecated legacy editor.
|
60
60
|
* This flag will be removed once the editor for testable editor is agreed on.
|
61
61
|
*/
|
62
|
-
|
62
|
+
TEMPORARY__enableMappingTestableEditor = false;
|
63
63
|
static serialization = new SerializationFactory(createModelSchema(LegendStudioApplicationCoreOptions, {
|
64
64
|
enableGraphBuilderStrictMode: optional(primitive()),
|
65
65
|
projectCreationGroupIdSuggestion: optional(primitive()),
|
66
66
|
TEMPORARY__preserveSectionIndex: optional(primitive()),
|
67
|
-
|
67
|
+
TEMPORARY__enableMappingTestableEditor: optional(primitive()),
|
68
68
|
TEMPORARY__serviceRegistrationConfig: list(object(ServiceRegistrationEnvironmentConfig)),
|
69
69
|
}));
|
70
70
|
static create(configData) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AAEnC,MAAa,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,SAAS,EAAE;QACzB,aAAa,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;KACzB,CAAC,CACH,CAAC;;SAbS,oCAAoC;AAgBjD,MAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,GAAG,KAAK,CAAC;IACrC,gCAAgC,GAAG,oBAAoB,CAAC;IAExD;;;;;;OAMG;IACH,+BAA+B,GAAG,KAAK,CAAC;IACxC;;;;;;;;OAQG;IACH,oCAAoC,GAClC,EAAE,CAAC;IAEL;;;OAGG;IACH,
|
1
|
+
{"version":3,"file":"LegendStudioApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendStudioApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AAEnC,MAAa,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,SAAS,EAAE;QACzB,aAAa,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;KACzB,CAAC,CACH,CAAC;;SAbS,oCAAoC;AAgBjD,MAAM,kCAAkC;IACtC;;;;OAIG;IACH,4BAA4B,GAAG,KAAK,CAAC;IACrC,gCAAgC,GAAG,oBAAoB,CAAC;IAExD;;;;;;OAMG;IACH,+BAA+B,GAAG,KAAK,CAAC;IACxC;;;;;;;;OAQG;IACH,oCAAoC,GAClC,EAAE,CAAC;IAEL;;;OAGG;IACH,sCAAsC,GAAG,KAAK,CAAC;IAEvC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CAC9D,iBAAiB,CAAC,kCAAkC,EAAE;QACpD,4BAA4B,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QACnD,gCAAgC,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QACvD,+BAA+B,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QACtD,sCAAsC,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC7D,oCAAoC,EAAE,IAAI,CACxC,MAAM,CAAC,oCAAoC,CAAC,CAC7C;KACF,CAAC,CACH,CAAC;IAEF,MAAM,CAAC,MAAM,CACX,UAA2D;QAE3D,OAAO,kCAAkC,CAAC,aAAa,CAAC,QAAQ,CAC9D,UAAU,CACX,CAAC;IACJ,CAAC;;AAqBH,MAAM,OAAO,6BAA8B,SAAQ,uBAAuB;IAC/D,OAAO,GAAG,IAAI,kCAAkC,EAAE,CAAC;IAEnD,eAAe,CAAS;IACxB,oBAAoB,CAAsB;IAC1C,wCAAwC,CAAsB;IAC9D,cAAc,CAAS;IACvB,aAAa,CAAS;IACtB,qBAAqB,CAA8B;IACnD,mBAAmB,CAAqB;IAEjD,YACE,KAAoF;QAEpF,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,SAAS;QACT,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,MAAM,EACvB,wDAAwD,CACzD,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,uBAAuB,CAAC,kBAAkB,CAC/D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAC3B,qEAAqE,CACtE,CACF,CAAC;QACF,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE;YACpC,IAAI,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,kBAAkB,CACpE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CACjC,CAAC;SACH;QACD,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,wCAAwC,EAAE;YACpE,IAAI,CAAC,wCAAwC;gBAC3C,uBAAuB,CAAC,kBAAkB,CACxC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,wCAAwC,CACjE,CAAC;SACL;QAED,QAAQ;QACR,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,KAAK,EACtB,uDAAuD,CACxD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,uBAAuB,CAAC,kBAAkB,CAC9D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAC1B,oEAAoE,CACrE,CACF,CAAC;QAEF,OAAO;QACP,iBAAiB,CACf,KAAK,CAAC,UAAU,CAAC,IAAI,EACrB,sDAAsD,CACvD,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,uBAAuB,CAAC,kBAAkB,CAC7D,uBAAuB,CACrB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EACzB,mEAAmE,CACpE,CACF,CAAC;QACF,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;QAE/D,QAAQ;QACR,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE;YAC/B,IAAI,CAAC,mBAAmB,GAAG,uBAAuB,CAAC,kBAAkB,CACnE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAC3B,CAAC;SACH;QAED,UAAU;QACV,IAAI,CAAC,OAAO,GAAG,kCAAkC,CAAC,MAAM,CACtD,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI;YAChC,EAAE,CAAoD,CACzD,CAAC;IACJ,CAAC;IAEQ,+BAA+B;QACtC,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
export declare const EmbeddedQueryBuilder: (() => JSX.Element | null) & {
|
18
17
|
displayName: string;
|
19
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbeddedQueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/EmbeddedQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"EmbeddedQueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/EmbeddedQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2GH,eAAO,MAAM,oBAAoB;;CAa/B,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
export declare const LegendStudioWebApplicationRouter: (() => JSX.Element) & {
|
18
17
|
displayName: string;
|
19
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendStudioWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendStudioWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"LegendStudioWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendStudioWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwFH,eAAO,MAAM,gCAAgC;;CAgG3C,CAAC;AAEH,eAAO,MAAM,0BAA0B,WAC7B;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAW5B,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
export declare const StatusBar: ((props: {
|
18
17
|
actionsDisabled: boolean;
|
19
18
|
}) => JSX.Element) & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/StatusBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/StatusBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkCH,eAAO,MAAM,SAAS,WAAoB;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE;;CA0WpE,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
export declare const ProjectSearchCommand: (() => JSX.Element) & {
|
18
17
|
displayName: string;
|
19
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProjectSearchCommand.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/command-center/ProjectSearchCommand.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"ProjectSearchCommand.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/command-center/ProjectSearchCommand.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0BH,eAAO,MAAM,oBAAoB;;CAmH/B,CAAC"}
|
@@ -13,7 +13,6 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
16
|
import { type MappingTestableState } from '../../../../../stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js';
|
18
17
|
export declare const MappingTestableEditor: ((props: {
|
19
18
|
mappingTestableState: MappingTestableState;
|
package/lib/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MappingTestableEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"MappingTestableEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/editor/edit-panel/mapping-editor/testable/MappingTestableEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6DH,OAAO,EAEL,KAAK,oBAAoB,EAU1B,MAAM,yGAAyG,CAAC;AAo6CjH,eAAO,MAAM,qBAAqB,WACxB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CA6IvD,CAAC"}
|
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
18
|
import { ModelStore, Database, getMappingCompatibleClasses, getRootSetImplementation, RelationalInstanceSetImplementation, EmbeddedRelationalInstanceSetImplementation, isStubbed_RawLambda, stub_RawLambda, } from '@finos/legend-graph';
|
19
19
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
20
|
-
import { BlankPanelPlaceholder, CaretDownIcon, clsx, compareLabelFn, CustomSelectorInput, Dialog, DropdownMenu, MenuContent, MenuContentItem, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalTitle, PanelContent, PanelFormTextField, PencilIcon, PlusIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanelSplitterLine, RunAllIcon, RunErrorsIcon, TestTubeIcon, CheckCircleIcon, TimesCircleIcon, PanelLoadingIndicator, ContextMenu, PURE_ModelStoreIcon, PURE_UnknownElementTypeIcon, PURE_DatabaseIcon,
|
20
|
+
import { BlankPanelPlaceholder, CaretDownIcon, clsx, compareLabelFn, CustomSelectorInput, Dialog, DropdownMenu, MenuContent, MenuContentItem, Modal, ModalBody, ModalFooter, ModalFooterButton, ModalTitle, PanelContent, PanelFormTextField, PencilIcon, PlusIcon, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanelSplitterLine, RunAllIcon, RunErrorsIcon, TestTubeIcon, CheckCircleIcon, TimesCircleIcon, PanelLoadingIndicator, ContextMenu, PURE_ModelStoreIcon, PURE_UnknownElementTypeIcon, PURE_DatabaseIcon, } from '@finos/legend-art';
|
21
21
|
import { assertErrorThrown, generateEnumerableNameFromToken, guaranteeNonNullable, prettyCONSTName, uniq, } from '@finos/legend-shared';
|
22
22
|
import { MAPPING_TEST_SUITE_TYPE, MappingQueryTestSuiteState, MappingDataTestState, MappingDataTestSuiteState, MappingQueryTestState, } from '../../../../../stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js';
|
23
23
|
import { useApplicationStore } from '@finos/legend-application';
|
@@ -26,11 +26,15 @@ import { QueryBuilderTextEditorMode, } from '@finos/legend-query-builder';
|
|
26
26
|
import { MappingExecutionQueryBuilderState } from '../../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
27
27
|
import { CODE_EDITOR_LANGUAGE, CodeEditor, } from '@finos/legend-lego/code-editor';
|
28
28
|
import { TESTABLE_TEST_TAB } from '../../../../../stores/editor/editor-state/element-editor-state/testable/TestableEditorState.js';
|
29
|
-
import { atomicTest_setDoc,
|
30
|
-
import { RenameModal, TestAssertionEditor, TestAssertionItem, } from '../../../editor-group/testable/
|
29
|
+
import { atomicTest_setDoc, testAssertion_setId, } from '../../../../../stores/graph-modifier/Testable_GraphModifierHelper.js';
|
30
|
+
import { RenameModal, TestAssertionEditor, TestAssertionItem, } from '../../../editor-group/testable/TestableSharedComponents.js';
|
31
31
|
import { EmbeddedDataEditor } from '../../../editor-group/data-editor/EmbeddedDataEditor.js';
|
32
32
|
import { TESTABLE_RESULT, getTestableResultFromTestResult, } from '../../../../../stores/editor/sidebar-state/testable/GlobalTestRunnerState.js';
|
33
33
|
import { getTestableResultIcon } from '../../../side-bar/testable/GlobalTestRunner.js';
|
34
|
+
import { validateTestableId } from '../../../../../stores/editor/utils/TestableUtils.js';
|
35
|
+
import { getMappingStores } from '../../../../../stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js';
|
36
|
+
import { EmbeddedDataType } from '../../../../../stores/editor/editor-state/ExternalFormatState.js';
|
37
|
+
import { buildElementOption, } from '@finos/legend-lego/graph-editor';
|
34
38
|
const CreateTestSuiteModal = observer((props) => {
|
35
39
|
const { mappingTestableState } = props;
|
36
40
|
const mappingEditorState = mappingTestableState.mappingEditorState;
|
@@ -52,6 +56,12 @@ const CreateTestSuiteModal = observer((props) => {
|
|
52
56
|
}
|
53
57
|
return MAPPING_TEST_SUITE_TYPE.QUERY;
|
54
58
|
};
|
59
|
+
const getDefaultSuiteNamePrefix = (type, _class) => {
|
60
|
+
if (type === MAPPING_TEST_SUITE_TYPE.QUERY && _class) {
|
61
|
+
return `${_class.name}_suite`;
|
62
|
+
}
|
63
|
+
return 'suite';
|
64
|
+
};
|
55
65
|
// Class mapping selector
|
56
66
|
const compatibleClasses = getMappingCompatibleClasses(mapping, editorStore.graphManagerState.usableClasses);
|
57
67
|
const mappedClassSelectorRef = useRef(null);
|
@@ -69,15 +79,15 @@ const CreateTestSuiteModal = observer((props) => {
|
|
69
79
|
}
|
70
80
|
: null;
|
71
81
|
// init states
|
72
|
-
const [suiteName, setSuiteName] = useState(generateEnumerableNameFromToken(mapping.tests.map((e) => e.id), selectedClass ? `${selectedClass.name}_suite` : 'suite'));
|
73
82
|
const [suiteType, setSuiteType] = useState(getDefaultSuite(selectedClass));
|
83
|
+
const [suiteName, setSuiteName] = useState(generateEnumerableNameFromToken(mapping.tests.map((e) => e.id), getDefaultSuiteNamePrefix(suiteType, selectedClass)));
|
74
84
|
const isValid = selectedClass && suiteName;
|
75
85
|
const handleEnterClassMappingSelectorModal = () => mappedClassSelectorRef.current?.focus();
|
76
86
|
const changeClassOption = (val) => {
|
77
87
|
if (val?.value) {
|
78
88
|
setSelectedClass(val.value);
|
79
89
|
setSuiteType(getDefaultSuite(val.value));
|
80
|
-
setSuiteName(generateEnumerableNameFromToken(mapping.tests.map((e) => e.id),
|
90
|
+
setSuiteName(generateEnumerableNameFromToken(mapping.tests.map((e) => e.id), getDefaultSuiteNamePrefix(suiteType, selectedClass)));
|
81
91
|
}
|
82
92
|
else {
|
83
93
|
setSelectedClass(undefined);
|
@@ -93,25 +103,141 @@ const CreateTestSuiteModal = observer((props) => {
|
|
93
103
|
};
|
94
104
|
return (_jsx(Dialog, { open: creatorState.showModal, onClose: close, TransitionProps: {
|
95
105
|
onEnter: handleEnterClassMappingSelectorModal,
|
96
|
-
}, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: true, className: "search-modal", children: [_jsx(ModalTitle, { title: "Create Test Suite" }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Target Class To Test" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Mapped class for which you would like to build test suite for" }), _jsx(CustomSelectorInput, { ref: mappedClassSelectorRef, options: mappedClassOptions, onChange: changeClassOption, value: selectedClassOption, darkMode: true, placeholder: "Choose a class...", isClearable: true })] }), _jsx(PanelFormTextField, { name: "Test Suite Name", prompt: "", value: suiteName, update: (value) => setSuiteName(value ?? ''), errorMessage: suiteName
|
97
|
-
? `Suite name can't contain spaces`
|
98
|
-
: !suiteName
|
99
|
-
? `Suite name is required`
|
100
|
-
: undefined })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { disabled: !isValid, onClick: create, text: "Create" }), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
|
106
|
+
}, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: true, className: "search-modal", children: [_jsx(ModalTitle, { title: "Create Test Suite" }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Target Class To Test" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Mapped class for which you would like to build test suite for" }), _jsx(CustomSelectorInput, { ref: mappedClassSelectorRef, options: mappedClassOptions, onChange: changeClassOption, value: selectedClassOption, darkMode: true, placeholder: "Choose a class...", isClearable: true })] }), _jsx(PanelFormTextField, { name: "Test Suite Name", prompt: "", value: suiteName, update: (value) => setSuiteName(value ?? ''), errorMessage: validateTestableId(suiteName, undefined) })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { disabled: !isValid, onClick: create, text: "Create" }), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
|
101
107
|
});
|
102
108
|
const CreateTestModal = observer((props) => {
|
103
109
|
const { mappingSuiteState } = props;
|
110
|
+
const mapping = mappingSuiteState.mappingTestableState.mapping;
|
111
|
+
const editorStore = mappingSuiteState.mappingTestableState.mappingEditorState.editorStore;
|
112
|
+
// Class mapping selector
|
113
|
+
const compatibleClasses = getMappingCompatibleClasses(mapping, editorStore.graphManagerState.usableClasses);
|
104
114
|
const suite = mappingSuiteState.suite;
|
105
|
-
const
|
115
|
+
const getDefaultTestName = (useClass, _class) => {
|
116
|
+
if (useClass && _class) {
|
117
|
+
return `${_class.name}_test`;
|
118
|
+
}
|
119
|
+
return 'test';
|
120
|
+
};
|
121
|
+
// class
|
122
|
+
const [selectedClass, setSelectedClass] = useState(compatibleClasses[0]);
|
123
|
+
const selectedClassOption = selectedClass
|
124
|
+
? {
|
125
|
+
value: selectedClass,
|
126
|
+
label: selectedClass.name,
|
127
|
+
}
|
128
|
+
: null;
|
129
|
+
// id
|
130
|
+
const [id, setId] = useState(generateEnumerableNameFromToken(suite.tests.map((e) => e.id), getDefaultTestName(mappingSuiteState instanceof MappingDataTestSuiteState, selectedClass)));
|
131
|
+
const changeClassOption = (val) => {
|
132
|
+
setSelectedClass(val?.value);
|
133
|
+
setId(generateEnumerableNameFromToken(suite.tests.map((e) => e.id), getDefaultTestName(mappingSuiteState instanceof MappingDataTestSuiteState, selectedClass)));
|
134
|
+
};
|
106
135
|
const isValid = id && !id.includes(' ');
|
136
|
+
const mappedClassSelectorRef = useRef(null);
|
137
|
+
const mappedClassOptions = uniq(compatibleClasses)
|
138
|
+
.map((e) => ({
|
139
|
+
label: e.name,
|
140
|
+
value: e,
|
141
|
+
}))
|
142
|
+
.sort(compareLabelFn);
|
107
143
|
// model
|
108
144
|
const close = () => mappingSuiteState.setShowModal(false);
|
109
|
-
const create = () =>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
145
|
+
const create = () => {
|
146
|
+
mappingSuiteState.addNewTest(id, selectedClass);
|
147
|
+
close();
|
148
|
+
};
|
149
|
+
return (_jsx(Dialog, { open: mappingSuiteState.showCreateModal, onClose: close, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: true, className: "search-modal", children: [_jsx(ModalTitle, { title: "Create Test" }), _jsxs(ModalBody, { children: [_jsx(PanelFormTextField, { name: "Name", prompt: "", value: id, update: (value) => setId(value ?? ''), errorMessage: id.includes(' ')
|
150
|
+
? `Suite name can't contain spaces`
|
151
|
+
: !id
|
152
|
+
? `Suite name is required`
|
153
|
+
: undefined }), mappingSuiteState instanceof MappingDataTestSuiteState && (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Target Class To Test" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Mapped class for which you would like to build test suite for" }), _jsx(CustomSelectorInput, { ref: mappedClassSelectorRef, options: mappedClassOptions, onChange: changeClassOption, value: selectedClassOption, darkMode: true, placeholder: "Choose a class...", isClearable: true })] }))] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { disabled: !isValid, onClick: create, text: "Create" }), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
|
154
|
+
});
|
155
|
+
const CreateStoreTestDataModal = observer((props) => {
|
156
|
+
const { mappingTestableDataState } = props;
|
157
|
+
const editorStore = mappingTestableDataState.editorStore;
|
158
|
+
const mapping = mappingTestableDataState.mappingTestableState.mapping;
|
159
|
+
const isReadOnly = mappingTestableDataState.mappingTestableState.mappingEditorState
|
160
|
+
.isReadOnly;
|
161
|
+
// options
|
162
|
+
const dataElementOptions = editorStore.graphManagerState.usableDataElements.map(buildElementOption);
|
163
|
+
const extraOptionTypes = editorStore.pluginManager
|
164
|
+
.getApplicationPlugins()
|
165
|
+
.flatMap((plugin) => plugin.getExtraEmbeddedDataTypeOptions?.() ?? []);
|
166
|
+
const embeddedOptions = [
|
167
|
+
...Object.values(EmbeddedDataType)
|
168
|
+
.filter((e) => e !== EmbeddedDataType.DATA_ELEMENT || dataElementOptions.length)
|
169
|
+
.map((typeOption) => ({
|
170
|
+
label: prettyCONSTName(typeOption),
|
171
|
+
value: typeOption,
|
172
|
+
})),
|
173
|
+
...extraOptionTypes,
|
174
|
+
];
|
175
|
+
const getDefaultTypeFromStore = (_store) => {
|
176
|
+
if (_store instanceof ModelStore) {
|
177
|
+
return EmbeddedDataType.EXTERNAL_FORMAT_DATA;
|
178
|
+
}
|
179
|
+
else if (_store instanceof Database) {
|
180
|
+
return EmbeddedDataType.RELATIONAL_CSV;
|
181
|
+
}
|
182
|
+
return undefined;
|
183
|
+
};
|
184
|
+
const compatibleStores = Array.from(getMappingStores(mapping, editorStore.pluginManager.getApplicationPlugins()));
|
185
|
+
// set states
|
186
|
+
const [selectedStore, setSelectedStore] = useState(compatibleStores[0]);
|
187
|
+
const [embeddedDataType, setEmbeddedDataType] = useState(getDefaultTypeFromStore(selectedStore) ?? embeddedOptions[0]?.value);
|
188
|
+
// data reference
|
189
|
+
const [dataElement, setDataElement] = useState(dataElementOptions[0]?.value);
|
190
|
+
const selectedDataElement = dataElement
|
191
|
+
? buildElementOption(dataElement)
|
192
|
+
: null;
|
193
|
+
const onDataElementChange = (val) => {
|
194
|
+
setDataElement(val?.value);
|
195
|
+
};
|
196
|
+
// data type
|
197
|
+
const onEmbeddedTypeChange = (val) => {
|
198
|
+
setEmbeddedDataType(val?.value);
|
199
|
+
};
|
200
|
+
const embeddedDataTypeOption = embeddedDataType
|
201
|
+
? {
|
202
|
+
value: embeddedDataType,
|
203
|
+
label: prettyCONSTName(embeddedDataType),
|
204
|
+
}
|
205
|
+
: undefined;
|
206
|
+
// store
|
207
|
+
const mappedStoreRef = useRef(null);
|
208
|
+
const selectedStoreOptions = compatibleStores
|
209
|
+
.map((e) => ({
|
210
|
+
label: e.name,
|
211
|
+
value: e,
|
212
|
+
}))
|
213
|
+
.sort(compareLabelFn);
|
214
|
+
const selectedStoreOption = selectedStore
|
215
|
+
? {
|
216
|
+
value: selectedStore,
|
217
|
+
label: selectedStore.name,
|
218
|
+
}
|
219
|
+
: null;
|
220
|
+
const changeStoreOption = (val) => {
|
221
|
+
setSelectedStore(val?.value);
|
222
|
+
const store = val?.value;
|
223
|
+
if (store instanceof ModelStore) {
|
224
|
+
setEmbeddedDataType(EmbeddedDataType.EXTERNAL_FORMAT_DATA);
|
225
|
+
}
|
226
|
+
else if (store instanceof Database) {
|
227
|
+
setEmbeddedDataType(EmbeddedDataType.RELATIONAL_CSV);
|
228
|
+
}
|
229
|
+
};
|
230
|
+
// validation
|
231
|
+
const isValid = (Boolean(selectedStore) && Boolean(embeddedDataType)) ||
|
232
|
+
(embeddedDataType === EmbeddedDataType.DATA_ELEMENT && dataElement);
|
233
|
+
const close = () => mappingTestableDataState.setShowModal(false);
|
234
|
+
const create = () => {
|
235
|
+
if (selectedStore && embeddedDataType) {
|
236
|
+
mappingTestableDataState.addStoreTestData(selectedStore, embeddedDataType, dataElement);
|
237
|
+
close();
|
238
|
+
}
|
239
|
+
};
|
240
|
+
return (_jsx(Dialog, { open: mappingTestableDataState.showNewModal, onClose: close, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: true, className: "search-modal", children: [_jsx(ModalTitle, { title: "Create Store Test Data" }), _jsxs(ModalBody, { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Store to add test data" }), _jsx(CustomSelectorInput, { ref: mappedStoreRef, options: selectedStoreOptions, onChange: changeStoreOption, value: selectedStoreOption, darkMode: true, placeholder: "Choose a store...", isClearable: true })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Data Type" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Test data type that will be used to mock store (defaulted based on store)" }), _jsx("div", { className: "explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "explorer__new-element-modal__driver__dropdown", options: embeddedOptions, onChange: onEmbeddedTypeChange, value: embeddedDataTypeOption, isClearable: false, darkMode: true }) })] }), embeddedDataType === EmbeddedDataType.DATA_ELEMENT && (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Data Element" }), _jsx("div", { className: "explorer__new-element-modal__driver", children: _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown data-element-reference-editor__value__dropdown", disabled: isReadOnly, options: dataElementOptions, onChange: onDataElementChange, value: selectedDataElement, darkMode: true }) })] }))] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { disabled: !isValid, onClick: create, text: "Create" }), _jsx(ModalFooterButton, { onClick: close, text: "Close" })] })] }) }));
|
115
241
|
});
|
116
242
|
const MappingTestableQueryEditor = observer((props) => {
|
117
243
|
const { testableQueryState, mappingTestableState, isReadOnly } = props;
|
@@ -174,7 +300,7 @@ const MappingTestAssertionsEditor = observer((props) => {
|
|
174
300
|
flowResult(mappingDataTestState.runTest()).catch(editorStore.applicationStore.alertUnhandledError);
|
175
301
|
};
|
176
302
|
const renameAssertion = (val) => testAssertion_setId(guaranteeNonNullable(mappingDataTestState.assertionToRename), val);
|
177
|
-
return (_jsxs("div", { className: "panel service-test-editor", children: [_jsx("div", { className: "service-test-suite-editor__header", children: _jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label service-test-suite-editor__header__title__label--assertions", children: "assertions" }) }) }), _jsx("div", { className: "service-test-editor__content", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { minSize: 100, size: 200, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsxs("div", { className: "binding-editor__header__title", children: [_jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--assertion", children: _jsx(TestTubeIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionCount })] }), _jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--passed", children: _jsx(CheckCircleIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionPassed })] }), _jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--failed", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionFailed })] })] }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runTest, title: "Run All Assertions", children: _jsx(RunAllIcon, {}) }), _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addAssertion, title: "Add Test Assertion", children: _jsx(PlusIcon, {}) })] })] }), _jsx("div", { children: mappingDataTestState.assertionEditorStates.map((assertionState) => (_jsx(TestAssertionItem, { testableTestState: mappingDataTestState, testAssertionEditorState: assertionState, isReadOnly: isReadOnly }, assertionState.assertion.id))) }), mappingDataTestState.assertionToRename && (_jsx(RenameModal, { val: mappingDataTestState.assertionToRename.id, isReadOnly: isReadOnly, showModal: true, closeModal: () => mappingDataTestState.setAssertionToRename(undefined), setValue: renameAssertion }))] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: mappingDataTestState.selectedAsertionState && (_jsx(TestAssertionEditor, { testAssertionState: mappingDataTestState.selectedAsertionState })) })] }) })] }));
|
303
|
+
return (_jsxs("div", { className: "panel service-test-editor", children: [_jsx("div", { className: "service-test-suite-editor__header", children: _jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label service-test-suite-editor__header__title__label--assertions", children: "assertions" }) }) }), _jsx("div", { className: "service-test-editor__content", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { minSize: 100, size: 200, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsxs("div", { className: "binding-editor__header__title", children: [_jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--assertion", children: _jsx(TestTubeIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionCount })] }), _jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--passed", children: _jsx(CheckCircleIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionPassed })] }), _jsxs("div", { className: "testable-test-assertion-explorer__header__summary", children: [_jsx("div", { className: "testable-test-assertion-explorer__header__summary__icon testable-test-assertion-explorer__header__summary__icon--failed", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { children: mappingDataTestState.assertionFailed })] })] }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runTest, title: "Run All Assertions", children: _jsx(RunAllIcon, {}) }), _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addAssertion, title: "Add Test Assertion", children: _jsx(PlusIcon, {}) })] })] }), _jsx("div", { children: mappingDataTestState.assertionEditorStates.map((assertionState) => (_jsx(TestAssertionItem, { testableTestState: mappingDataTestState, testAssertionEditorState: assertionState, isReadOnly: isReadOnly }, assertionState.assertion.id))) }), mappingDataTestState.assertionToRename && (_jsx(RenameModal, { val: mappingDataTestState.assertionToRename.id, isReadOnly: isReadOnly, showModal: true, closeModal: () => mappingDataTestState.setAssertionToRename(undefined), setValue: renameAssertion, errorMessageFunc: (_val) => validateTestableId(_val, undefined) }))] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: mappingDataTestState.selectedAsertionState && (_jsx(TestAssertionEditor, { testAssertionState: mappingDataTestState.selectedAsertionState })) })] }) })] }));
|
178
304
|
});
|
179
305
|
const StoreTestDataContextMenu = observer(forwardRef(function TestContainerContextMenu(props, ref) {
|
180
306
|
const { deleteStoreData } = props;
|
@@ -184,7 +310,7 @@ const StoreTestDataContextMenu = observer(forwardRef(function TestContainerConte
|
|
184
310
|
const StoreTestDataItem = observer((props) => {
|
185
311
|
const { storeTestData, mappingTestableDataState } = props;
|
186
312
|
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] = useState(false);
|
187
|
-
const store = storeTestData.store;
|
313
|
+
const store = storeTestData.store.value;
|
188
314
|
const isReadOnly = mappingTestableDataState.mappingTestableState.mappingEditorState
|
189
315
|
.isReadOnly;
|
190
316
|
const openConnectionTestData = () => mappingTestableDataState.openStoreTestData(storeTestData);
|
@@ -196,30 +322,23 @@ const StoreTestDataItem = observer((props) => {
|
|
196
322
|
const icon = store instanceof ModelStore ? (_jsx(PURE_ModelStoreIcon, {})) : store instanceof Database ? (_jsx(PURE_DatabaseIcon, {})) : (_jsx(PURE_UnknownElementTypeIcon, {}));
|
197
323
|
return (_jsx(ContextMenu, { className: clsx('testable-test-assertion-explorer__item', {
|
198
324
|
'testable-test-assertion-explorer__item--selected-from-context-menu': !isActive && isSelectedFromContextMenu,
|
199
|
-
}, { 'testable-test-assertion-explorer__item--active': isActive }), disabled: isReadOnly, content: _jsx(StoreTestDataContextMenu, { storeTestData: storeTestData, deleteStoreData: deleteStoreTestData }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("button", { className: clsx('testable-test-assertion-explorer__item__label'), onClick: openConnectionTestData, tabIndex: -1, children: [_jsx("div", { className: "testable-test-assertion-explorer__item__label__icon testable-test-assertion-explorer__test-result-indicator__container", children: icon }), _jsx("div", { className: "testable-test-assertion-explorer__item__label__text", children: store.
|
325
|
+
}, { 'testable-test-assertion-explorer__item--active': isActive }), disabled: isReadOnly, content: _jsx(StoreTestDataContextMenu, { storeTestData: storeTestData, deleteStoreData: deleteStoreTestData }), menuProps: { elevation: 7 }, onOpen: onContextMenuOpen, onClose: onContextMenuClose, children: _jsxs("button", { className: clsx('testable-test-assertion-explorer__item__label'), onClick: openConnectionTestData, tabIndex: -1, children: [_jsx("div", { className: "testable-test-assertion-explorer__item__label__icon testable-test-assertion-explorer__test-result-indicator__container", children: icon }), _jsx("div", { className: "testable-test-assertion-explorer__item__label__text", children: store.name })] }) }));
|
200
326
|
});
|
201
327
|
const StoreTestDataEditor = observer((props) => {
|
202
328
|
const { mappingTestableDataState, storeTestDataState } = props;
|
203
329
|
const isReadOnly = mappingTestableDataState.mappingTestableState.mappingEditorState
|
204
330
|
.isReadOnly;
|
205
|
-
return (_jsxs("div", { className: "service-test-data-editor", children: [_jsxs("div", { className: "service-test-suite-editor__header", children: [_jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label", children: "data" }) }),
|
206
|
-
|
207
|
-
|
208
|
-
// onClick={generateTestData}
|
209
|
-
title: "Generate test data if possible", disabled: storeTestDataState.generatingTestDataSate.isInProgress, tabIndex: -1, children: _jsxs("div", { className: "service-execution-editor__test-data__generate-btn__label", children: [_jsx(RefreshIcon, { className: "service-execution-editor__test-data__generate-btn__label__icon" }), _jsx("div", { className: "service-execution-editor__test-data__generate-btn__label__title", children: "Generate" })] }) })] })] }), _jsx(EmbeddedDataEditor, { isReadOnly: isReadOnly, embeddedDataEditorState: storeTestDataState.embeddedEditorState })] }));
|
331
|
+
return (_jsxs("div", { className: "service-test-data-editor", children: [_jsxs("div", { className: "service-test-suite-editor__header", children: [_jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label", children: "data" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx("div", { className: clsx('panel__content__form__section__toggler', {
|
332
|
+
'panel__content__form__section__toggler--disabled': isReadOnly,
|
333
|
+
}) }) })] }), _jsx(EmbeddedDataEditor, { isReadOnly: isReadOnly, embeddedDataEditorState: storeTestDataState.embeddedEditorState })] }));
|
210
334
|
});
|
211
335
|
const MappingTestableStoreDataEditor = observer((props) => {
|
212
336
|
const { mappingTestableDataState } = props;
|
213
337
|
const addStoreTestData = () => {
|
214
|
-
mappingTestableDataState.
|
338
|
+
mappingTestableDataState.setShowModal(true);
|
215
339
|
};
|
216
|
-
return (_jsxs("div", { className: "service-test-data-editor panel", children: [
|
217
|
-
|
218
|
-
title: "Generate test parameter values", tabIndex: -1, children: _jsx("div", { className: "service-execution-editor__test-data__generate-btn__label", children: _jsx("div", { className: "service-execution-editor__test-data__generate-btn__label__title", children: "Generate" }) }) }), _jsx("button", { className: "panel__header__action", tabIndex: -1,
|
219
|
-
// disabled={!setupState.newParamOptions.length}
|
220
|
-
// onClick={addParameter}
|
221
|
-
title: "Add Store Data", children: _jsx(PlusIcon, {}) })] })] }), _jsx("div", { className: "service-test-data-editor__data", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { minSize: 100, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsx("div", { className: "binding-editor__header__title", children: _jsx("div", { className: "binding-editor__header__title__label", children: "stores" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addStoreTestData, title: "Add Store Test Data", children: _jsx(PlusIcon, {}) }) })] }), _jsx("div", { children: mappingTestableDataState.dataHolder.storeTestData.map((storeTestData) => (_jsx(StoreTestDataItem, { storeTestData: storeTestData, mappingTestableDataState: mappingTestableDataState }, storeTestData.store.value.name))) })] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsxs(ResizablePanel, { minSize: 600, children: [_jsx(PanelLoadingIndicator, { isLoading: Boolean(mappingTestableDataState.selectedDataState
|
222
|
-
?.generatingTestDataSate.isInProgress) }), mappingTestableDataState.selectedDataState && (_jsx(StoreTestDataEditor, { storeTestDataState: mappingTestableDataState.selectedDataState, mappingTestableDataState: mappingTestableDataState }))] })] }) })] }));
|
340
|
+
return (_jsxs("div", { className: "service-test-data-editor panel", children: [_jsx("div", { className: "service-test-suite-editor__header", children: _jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label service-test-suite-editor__header__title__label--data", children: "Data" }) }) }), _jsxs("div", { className: "service-test-data-editor__data", children: [mappingTestableDataState.dataHolder.storeTestData.length ? (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { minSize: 100, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsx("div", { className: "binding-editor__header__title", children: _jsx("div", { className: "binding-editor__header__title__label", children: "stores" }) }), _jsx("div", { className: "panel__header__actions", children: _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addStoreTestData, title: "Add Store Test Data", children: _jsx(PlusIcon, {}) }) })] }), _jsx("div", { children: mappingTestableDataState.dataHolder.storeTestData.map((storeTestData) => (_jsx(StoreTestDataItem, { storeTestData: storeTestData, mappingTestableDataState: mappingTestableDataState }, storeTestData.store.value.name))) })] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsxs(ResizablePanel, { minSize: 600, children: [_jsx(PanelLoadingIndicator, { isLoading: Boolean(mappingTestableDataState.selectedDataState
|
341
|
+
?.generatingTestDataSate.isInProgress) }), mappingTestableDataState.selectedDataState && (_jsx(StoreTestDataEditor, { storeTestDataState: mappingTestableDataState.selectedDataState, mappingTestableDataState: mappingTestableDataState }))] })] })) : (_jsx(BlankPanelPlaceholder, { text: "Add Store Test Data", onClick: addStoreTestData, clickActionType: "add", tooltipText: "Click to add store test data" })), mappingTestableDataState.showNewModal && (_jsx(CreateStoreTestDataModal, { mappingTestableDataState: mappingTestableDataState }))] })] }));
|
223
342
|
});
|
224
343
|
const MappingDataTestSetupEditor = observer((props) => {
|
225
344
|
const { mappingDataTestState } = props;
|
@@ -279,10 +398,10 @@ const MappingTestItem = observer((props) => {
|
|
279
398
|
suiteState.setShowModal(true);
|
280
399
|
};
|
281
400
|
const _delete = () => {
|
282
|
-
suiteState.
|
401
|
+
suiteState.deleteTest(mappingTest);
|
283
402
|
};
|
284
403
|
const rename = () => {
|
285
|
-
suiteState.
|
404
|
+
suiteState.mappingTestableState.setRenameComponent(mappingTest);
|
286
405
|
};
|
287
406
|
return (_jsx(ContextMenu, { className: clsx('testable-test-explorer__item', {
|
288
407
|
'testable-test-explorer__item--selected-from-context-menu': !isActive && isSelectedFromContextMenu,
|
@@ -317,12 +436,7 @@ const MappingTestSuiteEditor = observer((props) => {
|
|
317
436
|
}
|
318
437
|
return null;
|
319
438
|
};
|
320
|
-
|
321
|
-
if (test) {
|
322
|
-
atomicTest_setId(test, val);
|
323
|
-
}
|
324
|
-
};
|
325
|
-
return (_jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { size: 300, minSize: 28, children: renderMappingTestSuiteDriver() }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { minSize: 56, children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { size: 300, minSize: 28, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsx("div", { className: "binding-editor__header__title", children: _jsx("div", { className: "panel__header__title__content", children: "Tests" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runTests, title: "Run All Tests", children: _jsx(RunAllIcon, {}) }), _jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runFailingTests, title: "Run All Failing Tests", children: _jsx(RunErrorsIcon, {}) }), _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addTest, title: "Add Mapping Suite", children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [mappingTestSuiteState.testsStates.map((test) => (_jsx(MappingTestItem, { mappingTestState: test, suiteState: mappingTestSuiteState }, test.uuid))), mappingTestSuiteState.renameTest && (_jsx(RenameModal, { val: mappingTestSuiteState.renameTest.id, isReadOnly: isReadOnly, showModal: true, closeModal: () => mappingTestSuiteState.setRenameTest(undefined), setValue: (val) => renameTest(mappingTestSuiteState.renameTest, val) })), mappingTestSuiteState.showCreateModal && (_jsx(CreateTestModal, { mappingSuiteState: mappingTestSuiteState }))] })] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { minSize: 28, children: renderMappingTestEditor() })] }) })] }));
|
439
|
+
return (_jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { size: 300, minSize: 28, children: renderMappingTestSuiteDriver() }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { minSize: 56, children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { size: 300, minSize: 28, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsx("div", { className: "binding-editor__header__title", children: _jsx("div", { className: "panel__header__title__content", children: "Tests" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runTests, title: "Run All Tests", children: _jsx(RunAllIcon, {}) }), _jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runFailingTests, title: "Run All Failing Tests", children: _jsx(RunErrorsIcon, {}) }), _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addTest, title: "Add Mapping Suite", children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [mappingTestSuiteState.testsStates.map((test) => (_jsx(MappingTestItem, { mappingTestState: test, suiteState: mappingTestSuiteState }, test.uuid))), mappingTestSuiteState.showCreateModal && (_jsx(CreateTestModal, { mappingSuiteState: mappingTestSuiteState }))] })] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { minSize: 28, children: renderMappingTestEditor() })] }) })] }));
|
326
440
|
});
|
327
441
|
const MappingTestSuiteItem = observer((props) => {
|
328
442
|
const { suite, mappingTestableState } = props;
|
@@ -346,7 +460,7 @@ const MappingTestSuiteItem = observer((props) => {
|
|
346
460
|
mappingTestableState.deleteTestSuite(suite);
|
347
461
|
};
|
348
462
|
const rename = () => {
|
349
|
-
mappingTestableState.
|
463
|
+
mappingTestableState.setRenameComponent(suite);
|
350
464
|
};
|
351
465
|
return (_jsx(ContextMenu, { className: clsx('testable-test-explorer__item', {
|
352
466
|
'testable-test-explorer__item--selected-from-context-menu': !isActive && isSelectedFromContextMenu,
|
@@ -377,11 +491,9 @@ export const MappingTestableEditor = observer((props) => {
|
|
377
491
|
}
|
378
492
|
return null;
|
379
493
|
};
|
380
|
-
const
|
381
|
-
|
382
|
-
testSuite_setId(suite, val);
|
383
|
-
}
|
494
|
+
const renameTestingComponent = (val) => {
|
495
|
+
mappingTestableState.renameTestableComponent(val);
|
384
496
|
};
|
385
|
-
return (_jsx("div", { className: "service-test-suite-editor panel", children: _jsxs("div", { className: "service-test-suite-editor", children: [_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { size:
|
497
|
+
return (_jsx("div", { className: "service-test-suite-editor panel", children: _jsxs("div", { className: "service-test-suite-editor", children: [_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsxs(ResizablePanel, { size: 200, minSize: 28, children: [_jsxs("div", { className: "binding-editor__header", children: [_jsx("div", { className: "binding-editor__header__title", children: _jsx("div", { className: "panel__header__title__content", children: "Test Suites" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runSuites, title: "Run All Suites", children: _jsx(RunAllIcon, {}) }), _jsx("button", { className: "panel__header__action testable-test-explorer__play__all__icon", tabIndex: -1, onClick: runFailingTests, title: "Run All Failing Tests", children: _jsx(RunErrorsIcon, {}) }), _jsx("button", { className: "panel__header__action", tabIndex: -1, onClick: addSuite, title: "Add Mapping Suite", children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [suites.map((suite) => (_jsx(MappingTestSuiteItem, { mappingTestableState: mappingTestableState, suite: suite }, suite.id))), !suites.length && (_jsx(BlankPanelPlaceholder, { text: "Add Test Suite", onClick: addSuite, clickActionType: "add", tooltipText: "Click to add test suite" }))] }), !suites.length && (_jsx(BlankPanelPlaceholder, { disabled: mappingEditorState.isReadOnly, onClick: addSuite, text: "Add a Test Suite", clickActionType: "add", tooltipText: "Click to add a new mapping test suite" }))] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { minSize: 56, children: _jsxs("div", { className: "panel service-test-editor", children: [_jsx("div", { className: "service-test-suite-editor__header", children: _jsx("div", { className: "service-test-suite-editor__header__title", children: _jsx("div", { className: "service-test-suite-editor__header__title__label service-test-suite-editor__header__title__label--tests-suites", children: "suite" }) }) }), _jsx("div", { className: "service-test-editor__content", children: renderSuiteState() })] }) })] }), mappingTestableState.createSuiteState.showModal && (_jsx(CreateTestSuiteModal, { mappingTestableState: mappingTestableState })), mappingTestableState.testableComponentToRename && (_jsx(RenameModal, { val: mappingTestableState.testableComponentToRename.id, isReadOnly: isReadOnly, showModal: true, closeModal: () => mappingTestableState.setRenameComponent(undefined), setValue: (val) => renameTestingComponent(val), errorMessageFunc: (_val) => validateTestableId(_val, undefined) }))] }) }));
|
386
498
|
});
|
387
499
|
//# sourceMappingURL=MappingTestableEditor.js.map
|