@finos/legend-application-studio 28.16.5 → 28.16.6
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/components/LegendStudioAppInfo.d.ts.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +1 -1
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.js +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/editor/QuickInput.d.ts.map +1 -1
- package/lib/components/editor/QuickInput.js +3 -1
- package/lib/components/editor/QuickInput.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +5 -2
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +4 -2
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +6 -3
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js +6 -3
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +7 -2
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js.map +1 -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 +14 -4
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.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 +8 -3
- 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 +5 -2
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js +2 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +2 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.js +2 -2
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.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 +5 -1
- 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 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +5 -3
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +2 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +2 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +12 -8
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +3 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +2 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +3 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +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 +12 -4
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +5 -2
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js +2 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js.map +1 -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 +5 -4
- 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.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +5 -2
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -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 +2 -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.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +7 -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.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +3 -2
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -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 +5 -2
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -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/ServiceTestDataEditor.js +15 -6
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.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 +8 -3
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +10 -4
- 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 +17 -4
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +19 -9
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +5 -2
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +3 -2
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +8 -5
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.d.ts.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.js +5 -2
- package/lib/components/editor/side-bar/RegisterService.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +2 -1
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +3 -3
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +3 -2
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +2 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +3 -2
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +5 -3
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +11 -11
- package/src/components/LegendStudioAppInfo.tsx +6 -1
- package/src/components/editor/EmbeddedQueryBuilder.tsx +3 -1
- package/src/components/editor/QuickInput.tsx +11 -2
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +14 -3
- package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +8 -2
- package/src/components/editor/editor-group/RuntimeEditor.tsx +15 -3
- package/src/components/editor/editor-group/connection-editor/ConnectionEditor.tsx +12 -3
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.tsx +13 -4
- package/src/components/editor/editor-group/connection-editor/DatabaseModelBuilder.tsx +6 -1
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +36 -7
- package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +13 -3
- package/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx +12 -2
- package/src/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.tsx +4 -1
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +4 -1
- package/src/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.tsx +6 -2
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +13 -3
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +12 -6
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +16 -4
- package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +4 -1
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +4 -1
- package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +25 -10
- package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +11 -2
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +10 -2
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +5 -1
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +42 -11
- package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +9 -2
- package/src/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.tsx +4 -1
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +18 -4
- package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +12 -3
- package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +4 -1
- package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +14 -3
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +13 -6
- package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +12 -3
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +48 -18
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +14 -3
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +35 -8
- package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +29 -5
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +42 -11
- package/src/components/editor/side-bar/Explorer.tsx +8 -2
- package/src/components/editor/side-bar/LocalChanges.tsx +12 -6
- package/src/components/editor/side-bar/ProjectOverview.tsx +23 -9
- package/src/components/editor/side-bar/RegisterService.tsx +18 -3
- package/src/components/editor/side-bar/WorkflowManager.tsx +12 -2
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +17 -10
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +12 -2
- package/src/components/workspace-setup/CreateProjectModal.tsx +7 -1
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +7 -2
- package/src/components/workspace-setup/WorkspaceSetup.tsx +14 -3
@@ -135,6 +135,7 @@ const CreateTestSuiteModal = observer(
|
|
135
135
|
const mappingEditorState = mappingTestableState.mappingEditorState;
|
136
136
|
const mapping = mappingEditorState.mapping;
|
137
137
|
const editorStore = mappingEditorState.editorStore;
|
138
|
+
const applicationStore = editorStore.applicationStore;
|
138
139
|
// Class mapping selector
|
139
140
|
const compatibleClasses = getMappingCompatibleClasses(
|
140
141
|
mapping,
|
@@ -192,7 +193,11 @@ const CreateTestSuiteModal = observer(
|
|
192
193
|
classes={{ container: 'search-modal__container' }}
|
193
194
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
194
195
|
>
|
195
|
-
<Modal
|
196
|
+
<Modal
|
197
|
+
darkMode={
|
198
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
199
|
+
}
|
200
|
+
>
|
196
201
|
<ModalHeader>
|
197
202
|
<ModalTitle title="Create Mapping Test Suite" />
|
198
203
|
</ModalHeader>
|
@@ -241,7 +246,10 @@ const CreateTestSuiteModal = observer(
|
|
241
246
|
onChange={changeClassOption}
|
242
247
|
value={selectedClassOption}
|
243
248
|
formatOptionLabel={getPackageableElementOptionFormatter({})}
|
244
|
-
darkMode={
|
249
|
+
darkMode={
|
250
|
+
!applicationStore.layoutService
|
251
|
+
.TEMPORARY__isLightColorThemeEnabled
|
252
|
+
}
|
245
253
|
placeholder="Choose a class..."
|
246
254
|
isClearable={true}
|
247
255
|
/>
|
@@ -260,7 +268,7 @@ const CreateTestSuiteModal = observer(
|
|
260
268
|
onClick={create}
|
261
269
|
text="Create"
|
262
270
|
/>
|
263
|
-
<ModalFooterButton onClick={close} text="Close" />
|
271
|
+
<ModalFooterButton onClick={close} text="Close" type="secondary" />
|
264
272
|
</ModalFooter>
|
265
273
|
</Modal>
|
266
274
|
</Dialog>
|
@@ -276,6 +284,7 @@ const CreateTestModal = observer(
|
|
276
284
|
const testData = suite.tests.filter(filterByType(MappingTest))[0]
|
277
285
|
?.storeTestData[0];
|
278
286
|
const editorStore = mappingSuiteState.editorStore;
|
287
|
+
const applicationStore = editorStore.applicationStore;
|
279
288
|
// test name
|
280
289
|
const [id, setId] = useState<string | undefined>(undefined);
|
281
290
|
const isValid = id && !id.includes(' ');
|
@@ -327,7 +336,11 @@ const CreateTestModal = observer(
|
|
327
336
|
classes={{ container: 'search-modal__container' }}
|
328
337
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
329
338
|
>
|
330
|
-
<Modal
|
339
|
+
<Modal
|
340
|
+
darkMode={
|
341
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
342
|
+
}
|
343
|
+
>
|
331
344
|
<ModalHeader>
|
332
345
|
<ModalTitle title="Create Mapping Test" />
|
333
346
|
</ModalHeader>
|
@@ -352,7 +365,10 @@ const CreateTestModal = observer(
|
|
352
365
|
options={mappedClassOptions}
|
353
366
|
onChange={changeClassOption}
|
354
367
|
value={selectedClassOption}
|
355
|
-
darkMode={
|
368
|
+
darkMode={
|
369
|
+
!applicationStore.layoutService
|
370
|
+
.TEMPORARY__isLightColorThemeEnabled
|
371
|
+
}
|
356
372
|
placeholder="Choose a class..."
|
357
373
|
isClearable={true}
|
358
374
|
/>
|
@@ -365,7 +381,7 @@ const CreateTestModal = observer(
|
|
365
381
|
onClick={create}
|
366
382
|
text="Create"
|
367
383
|
/>
|
368
|
-
<ModalFooterButton onClick={close} text="Close" />
|
384
|
+
<ModalFooterButton onClick={close} text="Close" type="secondary" />
|
369
385
|
</ModalFooter>
|
370
386
|
</Modal>
|
371
387
|
</Dialog>
|
@@ -383,6 +399,7 @@ const CreateStoreTestDataModal = observer(
|
|
383
399
|
const { mappingTestState } = props;
|
384
400
|
const mappingTestableDataState = mappingTestState.dataState;
|
385
401
|
const editorStore = mappingTestableDataState.editorStore;
|
402
|
+
const applicationStore = editorStore.applicationStore;
|
386
403
|
const mapping = mappingTestableDataState.mappingTestableState.mapping;
|
387
404
|
const isReadOnly =
|
388
405
|
mappingTestableDataState.mappingTestableState.mappingEditorState
|
@@ -502,7 +519,12 @@ const CreateStoreTestDataModal = observer(
|
|
502
519
|
classes={{ container: 'search-modal__container' }}
|
503
520
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
504
521
|
>
|
505
|
-
<Modal
|
522
|
+
<Modal
|
523
|
+
darkMode={
|
524
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
525
|
+
}
|
526
|
+
className="search-modal"
|
527
|
+
>
|
506
528
|
<ModalTitle title="Create Store Test Data" />
|
507
529
|
<ModalBody>
|
508
530
|
<div className="panel__content__form__section">
|
@@ -515,7 +537,10 @@ const CreateStoreTestDataModal = observer(
|
|
515
537
|
onChange={changeStoreOption}
|
516
538
|
formatOptionLabel={getPackageableElementOptionFormatter({})}
|
517
539
|
value={selectedStoreOption}
|
518
|
-
darkMode={
|
540
|
+
darkMode={
|
541
|
+
!applicationStore.layoutService
|
542
|
+
.TEMPORARY__isLightColorThemeEnabled
|
543
|
+
}
|
519
544
|
placeholder="Choose a store..."
|
520
545
|
isClearable={true}
|
521
546
|
/>
|
@@ -535,7 +560,10 @@ const CreateStoreTestDataModal = observer(
|
|
535
560
|
onChange={onEmbeddedTypeChange}
|
536
561
|
value={embeddedDataTypeOption}
|
537
562
|
isClearable={false}
|
538
|
-
darkMode={
|
563
|
+
darkMode={
|
564
|
+
!applicationStore.layoutService
|
565
|
+
.TEMPORARY__isLightColorThemeEnabled
|
566
|
+
}
|
539
567
|
/>
|
540
568
|
</div>
|
541
569
|
</div>
|
@@ -551,7 +579,10 @@ const CreateStoreTestDataModal = observer(
|
|
551
579
|
options={dataElementOptions}
|
552
580
|
onChange={onDataElementChange}
|
553
581
|
value={selectedDataElement}
|
554
|
-
darkMode={
|
582
|
+
darkMode={
|
583
|
+
!applicationStore.layoutService
|
584
|
+
.TEMPORARY__isLightColorThemeEnabled
|
585
|
+
}
|
555
586
|
/>
|
556
587
|
</div>
|
557
588
|
</div>
|
@@ -563,7 +594,7 @@ const CreateStoreTestDataModal = observer(
|
|
563
594
|
onClick={create}
|
564
595
|
text="Create"
|
565
596
|
/>
|
566
|
-
<ModalFooterButton onClick={close} text="Close" />
|
597
|
+
<ModalFooterButton onClick={close} text="Close" type="secondary" />
|
567
598
|
</ModalFooter>
|
568
599
|
</Modal>
|
569
600
|
</Dialog>
|
@@ -59,6 +59,7 @@ interface ClassMappingSubTypeOption {
|
|
59
59
|
|
60
60
|
export const NewMappingElementModal = observer(() => {
|
61
61
|
const editorStore = useEditorStore();
|
62
|
+
const applicationStore = editorStore.applicationStore;
|
62
63
|
const mappingEditorState =
|
63
64
|
editorStore.tabManagerState.getCurrentEditorState(MappingEditorState);
|
64
65
|
const spec = mappingEditorState.newMappingElementSpec;
|
@@ -238,7 +239,10 @@ export const NewMappingElementModal = observer(() => {
|
|
238
239
|
formatOptionLabel={getPackageableElementOptionFormatter({})}
|
239
240
|
placeholder="Choose a target"
|
240
241
|
isClearable={true}
|
241
|
-
darkMode={
|
242
|
+
darkMode={
|
243
|
+
!applicationStore.layoutService
|
244
|
+
.TEMPORARY__isLightColorThemeEnabled
|
245
|
+
}
|
242
246
|
/>
|
243
247
|
)}
|
244
248
|
{showId && (
|
@@ -266,7 +270,10 @@ export const NewMappingElementModal = observer(() => {
|
|
266
270
|
options={classMappingTypeOptions}
|
267
271
|
onChange={changeClassMappingType}
|
268
272
|
value={classMappingType}
|
269
|
-
darkMode={
|
273
|
+
darkMode={
|
274
|
+
!applicationStore.layoutService
|
275
|
+
.TEMPORARY__isLightColorThemeEnabled
|
276
|
+
}
|
270
277
|
placeholder="Choose a class mapping type"
|
271
278
|
/>
|
272
279
|
</>
|
package/src/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.tsx
CHANGED
@@ -44,6 +44,7 @@ export const MappingTestMigrationTool = observer(
|
|
44
44
|
migrationState: MappingTestMigrationState;
|
45
45
|
}) => {
|
46
46
|
const { mappingEditorState, migrationState } = props;
|
47
|
+
const applicationStore = mappingEditorState.editorStore.applicationStore;
|
47
48
|
const isLoading =
|
48
49
|
migrationState.confirmationState?.calculatingDiffs.isInProgress;
|
49
50
|
const close = (): void => {
|
@@ -69,7 +70,9 @@ export const MappingTestMigrationTool = observer(
|
|
69
70
|
}}
|
70
71
|
>
|
71
72
|
<Modal
|
72
|
-
darkMode={
|
73
|
+
darkMode={
|
74
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
75
|
+
}
|
73
76
|
className={clsx('editor-modal query-builder-text-mode__modal')}
|
74
77
|
>
|
75
78
|
<ModalHeader title="Migrate Legacy Tests"></ModalHeader>
|
package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx
CHANGED
@@ -595,6 +595,7 @@ const ProjectDependencyReportModal = observer(
|
|
595
595
|
tab: DEPENDENCY_REPORT_TAB;
|
596
596
|
}) => {
|
597
597
|
const { dependencyEditorState } = props;
|
598
|
+
const applicationStore = dependencyEditorState.editorStore.applicationStore;
|
598
599
|
const reportTab = dependencyEditorState.reportTab;
|
599
600
|
const tabs = Object.values(DEPENDENCY_REPORT_TAB);
|
600
601
|
const changeTab =
|
@@ -642,7 +643,12 @@ const ProjectDependencyReportModal = observer(
|
|
642
643
|
paper: 'editor-modal__content',
|
643
644
|
}}
|
644
645
|
>
|
645
|
-
<Modal
|
646
|
+
<Modal
|
647
|
+
darkMode={
|
648
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
649
|
+
}
|
650
|
+
className="editor-modal"
|
651
|
+
>
|
646
652
|
<ModalHeader title="Dependency Explorer" />
|
647
653
|
<ModalBody>
|
648
654
|
<div className="panel project-dependency-report">
|
@@ -731,7 +737,11 @@ const ProjectDependencyReportModal = observer(
|
|
731
737
|
</div>
|
732
738
|
</ModalBody>
|
733
739
|
<ModalFooter>
|
734
|
-
<ModalFooterButton
|
740
|
+
<ModalFooterButton
|
741
|
+
onClick={closeModal}
|
742
|
+
text="Close"
|
743
|
+
type="secondary"
|
744
|
+
/>
|
735
745
|
</ModalFooter>
|
736
746
|
</Modal>
|
737
747
|
</Dialog>
|
@@ -897,7 +907,9 @@ const ProjectVersionDependencyEditor = observer(
|
|
897
907
|
value={selectedProjectOption}
|
898
908
|
isLoading={configState.fetchingProjectVersionsState.isInProgress}
|
899
909
|
formatOptionLabel={formatOptionLabel}
|
900
|
-
darkMode={
|
910
|
+
darkMode={
|
911
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
912
|
+
}
|
901
913
|
/>
|
902
914
|
<CustomSelectorInput
|
903
915
|
className="project-dependency-editor__selector"
|
@@ -918,7 +930,9 @@ const ProjectVersionDependencyEditor = observer(
|
|
918
930
|
.fetchingProjectVersionsState.isInProgress ||
|
919
931
|
fetchSelectedProjectVersionsStatus.isInProgress
|
920
932
|
}
|
921
|
-
darkMode={
|
933
|
+
darkMode={
|
934
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
935
|
+
}
|
922
936
|
/>
|
923
937
|
<DropdownMenu
|
924
938
|
className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--medium"
|
@@ -213,7 +213,10 @@ export const BulkServiceRegistrationEditor = observer(() => {
|
|
213
213
|
options={envOptions}
|
214
214
|
onChange={onServerEnvChange}
|
215
215
|
value={selectedEnvOption}
|
216
|
-
darkMode={
|
216
|
+
darkMode={
|
217
|
+
!applicationStore.layoutService
|
218
|
+
.TEMPORARY__isLightColorThemeEnabled
|
219
|
+
}
|
217
220
|
/>
|
218
221
|
</div>
|
219
222
|
<div className="panel__content__form__section">
|
@@ -228,7 +231,10 @@ export const BulkServiceRegistrationEditor = observer(() => {
|
|
228
231
|
options={serviceTypesOptions}
|
229
232
|
onChange={onServiceTypeSelectionChange}
|
230
233
|
value={selectedServiceType}
|
231
|
-
darkMode={
|
234
|
+
darkMode={
|
235
|
+
!applicationStore.layoutService
|
236
|
+
.TEMPORARY__isLightColorThemeEnabled
|
237
|
+
}
|
232
238
|
/>
|
233
239
|
</div>
|
234
240
|
{globalBulkServiceRegistrationState.serviceConfigState
|
@@ -294,7 +300,10 @@ export const BulkServiceRegistrationEditor = observer(() => {
|
|
294
300
|
}
|
295
301
|
onChange={onVersionSelectionChange}
|
296
302
|
value={selectedVersion}
|
297
|
-
darkMode={
|
303
|
+
darkMode={
|
304
|
+
!applicationStore.layoutService
|
305
|
+
.TEMPORARY__isLightColorThemeEnabled
|
306
|
+
}
|
298
307
|
disabled={
|
299
308
|
globalBulkServiceRegistrationState.serviceConfigState
|
300
309
|
.versionOptions === undefined
|
@@ -372,7 +372,10 @@ const ServiceGeneralEditor = observer(() => {
|
|
372
372
|
options={OWNERSHIP_OPTIONS}
|
373
373
|
onChange={onOwnershipChange}
|
374
374
|
value={serviceState.selectedOwnership}
|
375
|
-
darkMode={
|
375
|
+
darkMode={
|
376
|
+
!applicationStore.layoutService
|
377
|
+
.TEMPORARY__isLightColorThemeEnabled
|
378
|
+
}
|
376
379
|
/>
|
377
380
|
</div>
|
378
381
|
{ownership instanceof DeploymentOwnership && (
|
@@ -89,6 +89,7 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
89
89
|
const { executionContextState, pureExecutionState } = props;
|
90
90
|
const executionContext = executionContextState.executionContext;
|
91
91
|
const editorStore = useEditorStore();
|
92
|
+
const applicationStore = editorStore.applicationStore;
|
92
93
|
const serviceState =
|
93
94
|
editorStore.tabManagerState.getCurrentEditorState(ServiceEditorState);
|
94
95
|
const isReadOnly = serviceState.isReadOnly;
|
@@ -275,7 +276,10 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
275
276
|
options={mappingOptions}
|
276
277
|
onChange={onMappingSelectionChange}
|
277
278
|
value={selectedMappingOption}
|
278
|
-
darkMode={
|
279
|
+
darkMode={
|
280
|
+
!applicationStore.layoutService
|
281
|
+
.TEMPORARY__isLightColorThemeEnabled
|
282
|
+
}
|
279
283
|
hasError={isMappingEmpty}
|
280
284
|
/>
|
281
285
|
<button
|
@@ -297,7 +301,10 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
297
301
|
options={runtimeOptions}
|
298
302
|
onChange={onRuntimeSelectionChange}
|
299
303
|
value={selectedRuntimeOption}
|
300
|
-
darkMode={
|
304
|
+
darkMode={
|
305
|
+
!applicationStore.layoutService
|
306
|
+
.TEMPORARY__isLightColorThemeEnabled
|
307
|
+
}
|
301
308
|
/>
|
302
309
|
{!isRuntimePointer && (
|
303
310
|
<button
|
@@ -341,6 +348,7 @@ export const ChangeExecutionModal = observer(
|
|
341
348
|
isReadOnly: boolean;
|
342
349
|
}) => {
|
343
350
|
const { executionState, isReadOnly } = props;
|
351
|
+
const applicationStore = executionState.editorStore.applicationStore;
|
344
352
|
const closeModal = (): void => executionState.setShowChangeExecModal(false);
|
345
353
|
const isChangingToMulti =
|
346
354
|
executionState instanceof SingleServicePureExecutionState;
|
@@ -394,7 +402,10 @@ export const ChangeExecutionModal = observer(
|
|
394
402
|
onChange={_onChange}
|
395
403
|
value={currentOption}
|
396
404
|
escapeClearsValue={true}
|
397
|
-
darkMode={
|
405
|
+
darkMode={
|
406
|
+
!applicationStore.layoutService
|
407
|
+
.TEMPORARY__isLightColorThemeEnabled
|
408
|
+
}
|
398
409
|
disable={isReadOnly}
|
399
410
|
/>
|
400
411
|
);
|
@@ -30,6 +30,7 @@ import {
|
|
30
30
|
Modal,
|
31
31
|
ModalBody,
|
32
32
|
ModalFooter,
|
33
|
+
ModalFooterButton,
|
33
34
|
ModalHeader,
|
34
35
|
} from '@finos/legend-art';
|
35
36
|
import {
|
@@ -72,6 +73,7 @@ import { ServiceEditorState } from '../../../../stores/editor/editor-state/eleme
|
|
72
73
|
const ServiceExecutionResultViewer = observer(
|
73
74
|
(props: { executionState: ServicePureExecutionState }) => {
|
74
75
|
const { executionState } = props;
|
76
|
+
const applicationStore = executionState.editorStore.applicationStore;
|
75
77
|
// execution
|
76
78
|
const executionResultText = executionState.executionResultText;
|
77
79
|
const closeExecutionResultViewer = (): void =>
|
@@ -87,7 +89,12 @@ const ServiceExecutionResultViewer = observer(
|
|
87
89
|
paper: 'editor-modal__content',
|
88
90
|
}}
|
89
91
|
>
|
90
|
-
<Modal
|
92
|
+
<Modal
|
93
|
+
darkMode={
|
94
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
95
|
+
}
|
96
|
+
className="editor-modal"
|
97
|
+
>
|
91
98
|
<ModalHeader title="Execution Result" />
|
92
99
|
<ModalBody>
|
93
100
|
<CodeEditor
|
@@ -97,12 +104,12 @@ const ServiceExecutionResultViewer = observer(
|
|
97
104
|
/>
|
98
105
|
</ModalBody>
|
99
106
|
<ModalFooter>
|
100
|
-
<
|
101
|
-
className="
|
107
|
+
<ModalFooterButton
|
108
|
+
className="modal__footer__close-btn"
|
102
109
|
onClick={closeExecutionResultViewer}
|
103
|
-
|
104
|
-
|
105
|
-
|
110
|
+
text="Close"
|
111
|
+
type="secondary"
|
112
|
+
/>
|
106
113
|
</ModalFooter>
|
107
114
|
</Modal>
|
108
115
|
</Dialog>
|
@@ -206,7 +206,10 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
206
206
|
options={envOptions}
|
207
207
|
onChange={onServerEnvChange}
|
208
208
|
value={selectedEnvOption}
|
209
|
-
darkMode={
|
209
|
+
darkMode={
|
210
|
+
!applicationStore.layoutService
|
211
|
+
.TEMPORARY__isLightColorThemeEnabled
|
212
|
+
}
|
210
213
|
/>
|
211
214
|
</div>
|
212
215
|
<div className="panel__content__form__section">
|
@@ -221,7 +224,10 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
221
224
|
options={serviceTypesOptions}
|
222
225
|
onChange={onServiceTypeSelectionChange}
|
223
226
|
value={selectedServiceType}
|
224
|
-
darkMode={
|
227
|
+
darkMode={
|
228
|
+
!applicationStore.layoutService
|
229
|
+
.TEMPORARY__isLightColorThemeEnabled
|
230
|
+
}
|
225
231
|
/>
|
226
232
|
</div>
|
227
233
|
{registrationState.serviceExecutionMode ===
|
@@ -331,7 +337,10 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
331
337
|
options={registrationState.versionOptions ?? []}
|
332
338
|
onChange={onVersionSelectionChange}
|
333
339
|
value={selectedVersion}
|
334
|
-
darkMode={
|
340
|
+
darkMode={
|
341
|
+
!applicationStore.layoutService
|
342
|
+
.TEMPORARY__isLightColorThemeEnabled
|
343
|
+
}
|
335
344
|
disabled={registrationState.versionOptions === undefined}
|
336
345
|
placeholder={versionPlaceholder}
|
337
346
|
isLoading={
|
package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx
CHANGED
@@ -97,6 +97,7 @@ export const RowIdentifierEditor = observer(
|
|
97
97
|
rowIdentifierState: RowIdentifierState;
|
98
98
|
}) => {
|
99
99
|
const { tableRowIdentifierState, rowIdentifierState } = props;
|
100
|
+
const applicationStore = useApplicationStore();
|
100
101
|
const columnOptions = tableRowIdentifierState.table.columns
|
101
102
|
.filter(filterByType(Column))
|
102
103
|
.map((_c) => ({
|
@@ -147,7 +148,10 @@ export const RowIdentifierEditor = observer(
|
|
147
148
|
|
148
149
|
value: rowIdentifierState.column,
|
149
150
|
}}
|
150
|
-
darkMode={
|
151
|
+
darkMode={
|
152
|
+
!applicationStore.layoutService
|
153
|
+
.TEMPORARY__isLightColorThemeEnabled
|
154
|
+
}
|
151
155
|
/>
|
152
156
|
<BasicValueSpecificationEditor
|
153
157
|
valueSpecification={rowIdentifierState.value}
|
@@ -195,6 +199,7 @@ export const TableRowIdentifierEditor = observer(
|
|
195
199
|
tableRowIdentifierState: TableRowIdentifierState;
|
196
200
|
}) => {
|
197
201
|
const { connectionTestDataState, tableRowIdentifierState } = props;
|
202
|
+
const applicationStore = useApplicationStore();
|
198
203
|
const tables = connectionTestDataState.getAvailableTables();
|
199
204
|
const tableOptions = tables.map((_t) => ({
|
200
205
|
label: `${_t.schema.name}.${_t.name}`,
|
@@ -232,7 +237,10 @@ export const TableRowIdentifierEditor = observer(
|
|
232
237
|
|
233
238
|
value: tableRowIdentifierState.table,
|
234
239
|
}}
|
235
|
-
darkMode={
|
240
|
+
darkMode={
|
241
|
+
!applicationStore.layoutService
|
242
|
+
.TEMPORARY__isLightColorThemeEnabled
|
243
|
+
}
|
236
244
|
/>
|
237
245
|
</div>
|
238
246
|
<div className="panel__content__form__section">
|
@@ -298,7 +306,9 @@ export const SeedDataInputModal = observer(
|
|
298
306
|
}}
|
299
307
|
>
|
300
308
|
<Modal
|
301
|
-
darkMode={
|
309
|
+
darkMode={
|
310
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
311
|
+
}
|
302
312
|
className="editor-modal lambda-parameter-values__modal"
|
303
313
|
>
|
304
314
|
<ModalHeader title="Create Seed Data Input (BETA)" />
|
@@ -322,7 +332,11 @@ export const SeedDataInputModal = observer(
|
|
322
332
|
</button>
|
323
333
|
</ModalBody>
|
324
334
|
<ModalFooter>
|
325
|
-
<ModalFooterButton
|
335
|
+
<ModalFooterButton
|
336
|
+
onClick={closeModal}
|
337
|
+
text="Close"
|
338
|
+
type="secondary"
|
339
|
+
/>
|
326
340
|
<ModalFooterButton onClick={generateWithSeedData} text="Generate" />
|
327
341
|
</ModalFooter>
|
328
342
|
</Modal>
|
@@ -335,6 +349,7 @@ export const UseDataElementModal = observer(
|
|
335
349
|
(props: { connectionTestDataState: ConnectionTestDataState }) => {
|
336
350
|
const { connectionTestDataState } = props;
|
337
351
|
const editorStore = connectionTestDataState.editorStore;
|
352
|
+
const applicationStore = editorStore.applicationStore;
|
338
353
|
const useSharedModal = connectionTestDataState.useSharedModal;
|
339
354
|
const closeModal = (): void =>
|
340
355
|
connectionTestDataState.setUseSharedModal(false);
|
@@ -373,7 +388,12 @@ export const UseDataElementModal = observer(
|
|
373
388
|
classes={{ container: 'search-modal__container' }}
|
374
389
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
375
390
|
>
|
376
|
-
<Modal
|
391
|
+
<Modal
|
392
|
+
darkMode={
|
393
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
394
|
+
}
|
395
|
+
className="service-test-data-modal"
|
396
|
+
>
|
377
397
|
<ModalBody>
|
378
398
|
<div className="panel__content__form__section">
|
379
399
|
<div className="panel__content__form__section__header__label">
|
@@ -386,7 +406,10 @@ export const UseDataElementModal = observer(
|
|
386
406
|
options={dataElementOptions}
|
387
407
|
onChange={onDataElementChange}
|
388
408
|
value={selectedDataElement}
|
389
|
-
darkMode={
|
409
|
+
darkMode={
|
410
|
+
!applicationStore.layoutService
|
411
|
+
.TEMPORARY__isLightColorThemeEnabled
|
412
|
+
}
|
390
413
|
/>
|
391
414
|
</div>
|
392
415
|
</div>
|
@@ -689,6 +712,7 @@ export const NewConnectionDataModal = observer(
|
|
689
712
|
(props: { testDataState: ServiceTestDataState }) => {
|
690
713
|
const { testDataState } = props;
|
691
714
|
const editorStore = useEditorStore();
|
715
|
+
const applicationStore = editorStore.applicationStore;
|
692
716
|
const dataElementOptions =
|
693
717
|
editorStore.graphManagerState.usableDataElements.map(buildElementOption);
|
694
718
|
const newConnectionState = testDataState.newConnectionDataState;
|
@@ -804,7 +828,10 @@ export const NewConnectionDataModal = observer(
|
|
804
828
|
onChange={onConnectionSelectionChange}
|
805
829
|
value={selectedConnection}
|
806
830
|
isClearable={false}
|
807
|
-
darkMode={
|
831
|
+
darkMode={
|
832
|
+
!applicationStore.layoutService
|
833
|
+
.TEMPORARY__isLightColorThemeEnabled
|
834
|
+
}
|
808
835
|
/>
|
809
836
|
</div>
|
810
837
|
</div>
|
@@ -822,7 +849,10 @@ export const NewConnectionDataModal = observer(
|
|
822
849
|
onChange={onEmbeddedTypeChange}
|
823
850
|
value={selectedEmbeddedType}
|
824
851
|
isClearable={false}
|
825
|
-
darkMode={
|
852
|
+
darkMode={
|
853
|
+
!applicationStore.layoutService
|
854
|
+
.TEMPORARY__isLightColorThemeEnabled
|
855
|
+
}
|
826
856
|
/>
|
827
857
|
</div>
|
828
858
|
</div>
|
@@ -838,23 +868,23 @@ export const NewConnectionDataModal = observer(
|
|
838
868
|
options={dataElementOptions}
|
839
869
|
onChange={onDataElementChange}
|
840
870
|
value={selectedDataElement}
|
841
|
-
darkMode={
|
871
|
+
darkMode={
|
872
|
+
!applicationStore.layoutService
|
873
|
+
.TEMPORARY__isLightColorThemeEnabled
|
874
|
+
}
|
842
875
|
/>
|
843
876
|
</div>
|
844
877
|
</div>
|
845
878
|
)}
|
846
879
|
</ModalBody>
|
847
880
|
<ModalFooter>
|
848
|
-
<
|
849
|
-
type="button" // prevent this toggler being activated on form submission
|
850
|
-
className="btn btn--dark"
|
881
|
+
<ModalFooterButton
|
851
882
|
onClick={closeModal}
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
</button>
|
883
|
+
text="Cancel"
|
884
|
+
type="secondary"
|
885
|
+
preventFormSubmit={true} // prevent this toggler being activated on form submission
|
886
|
+
/>
|
887
|
+
<ModalFooterButton text="Create" disabled={isDisabled} />
|
858
888
|
</ModalFooter>
|
859
889
|
</form>
|
860
890
|
</Dialog>
|
@@ -88,6 +88,7 @@ import {
|
|
88
88
|
export const NewParameterModal = observer(
|
89
89
|
(props: { setupState: ServiceTestSetupState; isReadOnly: boolean }) => {
|
90
90
|
const { setupState, isReadOnly } = props;
|
91
|
+
const applicationStore = setupState.editorStore.applicationStore;
|
91
92
|
const currentOption = {
|
92
93
|
value: setupState.newParameterValueName,
|
93
94
|
label: setupState.newParameterValueName,
|
@@ -122,7 +123,10 @@ export const NewParameterModal = observer(
|
|
122
123
|
onChange={onChange}
|
123
124
|
value={currentOption}
|
124
125
|
escapeClearsValue={true}
|
125
|
-
darkMode={
|
126
|
+
darkMode={
|
127
|
+
!applicationStore.layoutService
|
128
|
+
.TEMPORARY__isLightColorThemeEnabled
|
129
|
+
}
|
126
130
|
disable={isReadOnly}
|
127
131
|
/>
|
128
132
|
<div className="search-modal__actions">
|
@@ -296,6 +300,7 @@ const ServiceTestSetupEditor = observer(
|
|
296
300
|
(props: { serviceTestState: ServiceTestState }) => {
|
297
301
|
const { serviceTestState } = props;
|
298
302
|
const setupState = serviceTestState.setupState;
|
303
|
+
const applicationStore = setupState.editorStore.applicationStore;
|
299
304
|
const test = serviceTestState.test;
|
300
305
|
const format = test.serializationFormat;
|
301
306
|
const selectedSerializationFormat = setupState.getSelectedFormatOption();
|
@@ -365,7 +370,10 @@ const ServiceTestSetupEditor = observer(
|
|
365
370
|
value={selectedSerializationFormat}
|
366
371
|
isClearable={true}
|
367
372
|
escapeClearsValue={true}
|
368
|
-
darkMode={
|
373
|
+
darkMode={
|
374
|
+
!applicationStore.layoutService
|
375
|
+
.TEMPORARY__isLightColorThemeEnabled
|
376
|
+
}
|
369
377
|
disable={isReadOnly}
|
370
378
|
/>
|
371
379
|
</div>
|
@@ -386,7 +394,10 @@ const ServiceTestSetupEditor = observer(
|
|
386
394
|
value={selectedKeys}
|
387
395
|
isClearable={true}
|
388
396
|
escapeClearsValue={true}
|
389
|
-
darkMode={
|
397
|
+
darkMode={
|
398
|
+
!applicationStore.layoutService
|
399
|
+
.TEMPORARY__isLightColorThemeEnabled
|
400
|
+
}
|
390
401
|
isMulti={true}
|
391
402
|
disable={isReadOnly}
|
392
403
|
placeholder="Choose keys..."
|