@finos/legend-application-studio 28.16.3 → 28.16.6
Sign up to get free protection for your applications and to get access to all the features.
- 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/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +11 -7
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +4 -3
- package/lib/stores/editor/utils/TestableUtils.js.map +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
- package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +15 -12
- package/src/stores/editor/utils/TestableUtils.ts +4 -1
@@ -40,6 +40,7 @@ import {
|
|
40
40
|
|
41
41
|
export const ProjectSearchCommand = observer(() => {
|
42
42
|
const editorStore = useEditorStore();
|
43
|
+
const applicationStore = editorStore.applicationStore;
|
43
44
|
const selectorRef = useRef<SelectComponent>(null);
|
44
45
|
const closeModal = (): void => editorStore.setShowSearchElementCommand(false);
|
45
46
|
const types = editorStore.getSupportedElementTypes();
|
@@ -98,7 +99,12 @@ export const ProjectSearchCommand = observer(() => {
|
|
98
99
|
classes={{ container: 'search-modal__container' }}
|
99
100
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
100
101
|
>
|
101
|
-
<Modal
|
102
|
+
<Modal
|
103
|
+
darkMode={
|
104
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
105
|
+
}
|
106
|
+
className="search-modal"
|
107
|
+
>
|
102
108
|
<div className="project-search-command">
|
103
109
|
<DropdownMenu
|
104
110
|
className="project-search-command__type"
|
@@ -144,9 +150,14 @@ export const ProjectSearchCommand = observer(() => {
|
|
144
150
|
elementType ? elementType.toLowerCase() : 'elements'
|
145
151
|
} by path`}
|
146
152
|
escapeClearsValue={true}
|
147
|
-
darkMode={
|
153
|
+
darkMode={
|
154
|
+
!applicationStore.layoutService
|
155
|
+
.TEMPORARY__isLightColorThemeEnabled
|
156
|
+
}
|
148
157
|
formatOptionLabel={getPackageableElementOptionFormatter({
|
149
|
-
darkMode:
|
158
|
+
darkMode:
|
159
|
+
!applicationStore.layoutService
|
160
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
150
161
|
})}
|
151
162
|
/>
|
152
163
|
</div>
|
@@ -89,6 +89,7 @@ const ModelGenerationItem = observer(
|
|
89
89
|
const { nodeState, specState, options } = props;
|
90
90
|
const generationTreeNode = nodeState.node;
|
91
91
|
const editorStore = useEditorStore();
|
92
|
+
const applicationStore = editorStore.applicationStore;
|
92
93
|
const modelGenerationRef = generationTreeNode.generationElement;
|
93
94
|
const modelGeneration = modelGenerationRef.value;
|
94
95
|
const value = { label: modelGeneration.name, value: modelGeneration };
|
@@ -204,7 +205,9 @@ const ModelGenerationItem = observer(
|
|
204
205
|
options={options}
|
205
206
|
onChange={onChange}
|
206
207
|
value={value}
|
207
|
-
darkMode={
|
208
|
+
darkMode={
|
209
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
210
|
+
}
|
208
211
|
/>
|
209
212
|
<button
|
210
213
|
className="btn--dark btn--sm"
|
@@ -350,6 +353,7 @@ const FileGenerationItem = observer(
|
|
350
353
|
const { fileGeneraitonRef, generationSpecificationEditorState, options } =
|
351
354
|
props;
|
352
355
|
const editorStore = useEditorStore();
|
356
|
+
const applicationStore = editorStore.applicationStore;
|
353
357
|
const fileGeneration = fileGeneraitonRef.value;
|
354
358
|
const value = { label: fileGeneration.name, value: fileGeneration };
|
355
359
|
const onChange = (
|
@@ -376,7 +380,9 @@ const FileGenerationItem = observer(
|
|
376
380
|
options={options}
|
377
381
|
onChange={onChange}
|
378
382
|
value={value}
|
379
|
-
darkMode={
|
383
|
+
darkMode={
|
384
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
385
|
+
}
|
380
386
|
/>
|
381
387
|
<button
|
382
388
|
className="btn--dark btn--sm"
|
@@ -596,7 +596,10 @@ const IdentifiedConnectionEditor = observer(
|
|
596
596
|
options={connectionOptions}
|
597
597
|
onChange={onConnectionSelectionChange}
|
598
598
|
value={selectedConnectionOption}
|
599
|
-
darkMode={
|
599
|
+
darkMode={
|
600
|
+
!applicationStore.layoutService
|
601
|
+
.TEMPORARY__isLightColorThemeEnabled
|
602
|
+
}
|
600
603
|
/>
|
601
604
|
{!isEmbeddedConnection && (
|
602
605
|
<button
|
@@ -812,6 +815,7 @@ const RuntimeMappingEditor = observer(
|
|
812
815
|
}) => {
|
813
816
|
const { runtimeEditorState, mappingRef, isReadOnly } = props;
|
814
817
|
const editorStore = useEditorStore();
|
818
|
+
const applicationStore = editorStore.applicationStore;
|
815
819
|
const runtimeValue = runtimeEditorState.runtimeValue;
|
816
820
|
const mappingOptions = editorStore.graphManagerState.graph.ownMappings
|
817
821
|
.filter((m) => !runtimeValue.mappings.map((_m) => _m.value).includes(m))
|
@@ -843,7 +847,9 @@ const RuntimeMappingEditor = observer(
|
|
843
847
|
value={selectedMappingOption}
|
844
848
|
placeholder="Choose a class"
|
845
849
|
filterOption={filterOption}
|
846
|
-
darkMode={
|
850
|
+
darkMode={
|
851
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
852
|
+
}
|
847
853
|
/>
|
848
854
|
<button
|
849
855
|
className="btn--dark btn__icon--dark"
|
@@ -1054,6 +1060,7 @@ export const EmbeddedRuntimeEditor = observer(
|
|
1054
1060
|
onClose: () => void;
|
1055
1061
|
}) => {
|
1056
1062
|
const { runtimeEditorState, onClose, isReadOnly } = props;
|
1063
|
+
const applicationStore = useApplicationStore();
|
1057
1064
|
const closeEditor = (): void => onClose();
|
1058
1065
|
if (!runtimeEditorState) {
|
1059
1066
|
return null;
|
@@ -1068,7 +1075,12 @@ export const EmbeddedRuntimeEditor = observer(
|
|
1068
1075
|
paper: 'editor-modal__content',
|
1069
1076
|
}}
|
1070
1077
|
>
|
1071
|
-
<Modal
|
1078
|
+
<Modal
|
1079
|
+
darkMode={
|
1080
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
1081
|
+
}
|
1082
|
+
className="editor-modal embedded-runtime-editor"
|
1083
|
+
>
|
1072
1084
|
<ModalHeader>
|
1073
1085
|
<ModalTitle icon={<CogIcon />} title="custom runtime" />
|
1074
1086
|
<ModalHeaderActions>
|
@@ -39,7 +39,10 @@ import {
|
|
39
39
|
modelConnection_setClass,
|
40
40
|
modelConnection_setUrl,
|
41
41
|
} from '../../../../stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js';
|
42
|
-
import {
|
42
|
+
import {
|
43
|
+
useApplicationNavigationContext,
|
44
|
+
useApplicationStore,
|
45
|
+
} from '@finos/legend-application';
|
43
46
|
import {
|
44
47
|
buildElementOption,
|
45
48
|
getPackageableElementOptionFormatter,
|
@@ -55,6 +58,7 @@ const ModelConnectionEditor = observer(
|
|
55
58
|
}) => {
|
56
59
|
const { connectionValueState, isReadOnly, disableChangingClass } = props;
|
57
60
|
const connection = connectionValueState.connection;
|
61
|
+
const applicationStore = useApplicationStore();
|
58
62
|
const editorStore = useEditorStore();
|
59
63
|
// classOptions
|
60
64
|
const classOptions =
|
@@ -89,9 +93,14 @@ const ModelConnectionEditor = observer(
|
|
89
93
|
options={classOptions}
|
90
94
|
onChange={onSourceClassChange}
|
91
95
|
value={{ label: sourceClass.name, value: sourceClass }}
|
92
|
-
darkMode={
|
96
|
+
darkMode={
|
97
|
+
!applicationStore.layoutService
|
98
|
+
.TEMPORARY__isLightColorThemeEnabled
|
99
|
+
}
|
93
100
|
formatOptionLabel={getPackageableElementOptionFormatter({
|
94
|
-
darkMode:
|
101
|
+
darkMode:
|
102
|
+
!applicationStore.layoutService
|
103
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
95
104
|
})}
|
96
105
|
/>
|
97
106
|
</div>
|
@@ -76,6 +76,9 @@ const QueryResultCellRenderer = observer(
|
|
76
76
|
const QueryBuilderGridResult = observer(
|
77
77
|
(props: { executionResult: TDSExecutionResult }) => {
|
78
78
|
const { executionResult } = props;
|
79
|
+
const applicationStore = useApplicationStore();
|
80
|
+
const darkMode =
|
81
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled;
|
79
82
|
|
80
83
|
const rowData = executionResult.result.rows.map((_row, rowIdx) => {
|
81
84
|
const row: PlainObject = {};
|
@@ -90,9 +93,10 @@ const QueryBuilderGridResult = observer(
|
|
90
93
|
return (
|
91
94
|
<div className="query-builder__result__values__table">
|
92
95
|
<div
|
93
|
-
className={clsx(
|
94
|
-
'ag-theme-balham
|
95
|
-
|
96
|
+
className={clsx('query-builder__result__tds-grid', {
|
97
|
+
'ag-theme-balham': !darkMode,
|
98
|
+
'ag-theme-balham-dark': darkMode,
|
99
|
+
})}
|
96
100
|
>
|
97
101
|
<DataGrid
|
98
102
|
rowData={rowData}
|
@@ -305,7 +309,12 @@ export const DatabaseBuilderWizard = observer(
|
|
305
309
|
},
|
306
310
|
}}
|
307
311
|
>
|
308
|
-
<Modal
|
312
|
+
<Modal
|
313
|
+
darkMode={
|
314
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
315
|
+
}
|
316
|
+
className="database-builder"
|
317
|
+
>
|
309
318
|
<ModalHeader>
|
310
319
|
<ModalTitle title="Database Builder" />
|
311
320
|
<ModalHeaderActions>
|
@@ -194,7 +194,12 @@ export const DatabaseModelBuilder = observer(
|
|
194
194
|
},
|
195
195
|
}}
|
196
196
|
>
|
197
|
-
<Modal
|
197
|
+
<Modal
|
198
|
+
darkMode={
|
199
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
200
|
+
}
|
201
|
+
className="database-builder"
|
202
|
+
>
|
198
203
|
<ModalHeader>
|
199
204
|
<ModalTitle title="Database Model Builder" />
|
200
205
|
<ModalHeaderActions>
|
package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx
CHANGED
@@ -168,6 +168,7 @@ import { MapperPostProcessorEditor } from './post-processor-editor/MapperPostPro
|
|
168
168
|
import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js';
|
169
169
|
import type { MapperPostProcessorEditorState } from '../../../../stores/editor/editor-state/element-editor-state/connection/PostProcessorEditorState.js';
|
170
170
|
import { prettyCONSTName, uniq } from '@finos/legend-shared';
|
171
|
+
import { useApplicationStore } from '@finos/legend-application';
|
171
172
|
|
172
173
|
export type RelationalDatabaseConnectionOption = {
|
173
174
|
label: React.ReactNode;
|
@@ -201,6 +202,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
|
|
201
202
|
sourceSpec: LocalH2DatasourceSpecification;
|
202
203
|
isReadOnly: boolean;
|
203
204
|
}) => {
|
205
|
+
const applicationStore = useApplicationStore();
|
204
206
|
const { sourceSpec, isReadOnly } = props;
|
205
207
|
const [showPopUp, setShowPopUp] = useState(false);
|
206
208
|
const openInPopUp = (): void => setShowPopUp(true);
|
@@ -213,7 +215,13 @@ const LocalH2DatasourceSpecificationEditor = observer(
|
|
213
215
|
{showPopUp && (
|
214
216
|
<div>
|
215
217
|
<Dialog open={showPopUp} onClose={closePopUp}>
|
216
|
-
<Modal
|
218
|
+
<Modal
|
219
|
+
darkMode={
|
220
|
+
!applicationStore.layoutService
|
221
|
+
.TEMPORARY__isLightColorThemeEnabled
|
222
|
+
}
|
223
|
+
className="editor-modal"
|
224
|
+
>
|
217
225
|
<ModalHeader title="test data setup SQL" />
|
218
226
|
<ModalBody className="modal__body__large">
|
219
227
|
<CodeEditor
|
@@ -229,7 +237,11 @@ const LocalH2DatasourceSpecificationEditor = observer(
|
|
229
237
|
/>
|
230
238
|
</ModalBody>
|
231
239
|
<ModalFooter>
|
232
|
-
<ModalFooterButton
|
240
|
+
<ModalFooterButton
|
241
|
+
onClick={closePopUp}
|
242
|
+
text="Close"
|
243
|
+
type="secondary"
|
244
|
+
/>
|
233
245
|
</ModalFooter>
|
234
246
|
</Modal>
|
235
247
|
</Dialog>
|
@@ -1105,6 +1117,7 @@ const RelationalConnectionStoreEditor = observer(
|
|
1105
1117
|
isReadOnly: boolean;
|
1106
1118
|
}) => {
|
1107
1119
|
const { connectionValueState, isReadOnly } = props;
|
1120
|
+
const applicationStore = connectionValueState.editorStore.applicationStore;
|
1108
1121
|
const connection = connectionValueState.connection;
|
1109
1122
|
// store
|
1110
1123
|
const isStoreEmpty = connectionValueState.storeValidationResult;
|
@@ -1155,7 +1168,10 @@ const RelationalConnectionStoreEditor = observer(
|
|
1155
1168
|
options={options}
|
1156
1169
|
onChange={onStoreChange}
|
1157
1170
|
value={selectedStore}
|
1158
|
-
darkMode={
|
1171
|
+
darkMode={
|
1172
|
+
!applicationStore.layoutService
|
1173
|
+
.TEMPORARY__isLightColorThemeEnabled
|
1174
|
+
}
|
1159
1175
|
disabled={isReadOnly}
|
1160
1176
|
hasError={isStoreEmpty}
|
1161
1177
|
/>
|
@@ -1605,6 +1621,7 @@ export const RelationalConnectionGeneralEditor = observer(
|
|
1605
1621
|
const { connectionValueState, isReadOnly, hideHeader } = props;
|
1606
1622
|
const connection = connectionValueState.connection;
|
1607
1623
|
const editorStore = useEditorStore();
|
1624
|
+
const applicationStore = editorStore.applicationStore;
|
1608
1625
|
const plugins = editorStore.pluginManager.getApplicationPlugins();
|
1609
1626
|
const databseTypeConfigs =
|
1610
1627
|
connectionValueState.editorStore.graphState
|
@@ -1708,7 +1725,10 @@ export const RelationalConnectionGeneralEditor = observer(
|
|
1708
1725
|
options={dbTypes}
|
1709
1726
|
onChange={onTypeChange}
|
1710
1727
|
value={selectedDbType}
|
1711
|
-
darkMode={
|
1728
|
+
darkMode={
|
1729
|
+
!applicationStore.layoutService
|
1730
|
+
.TEMPORARY__isLightColorThemeEnabled
|
1731
|
+
}
|
1712
1732
|
/>
|
1713
1733
|
</PanelFormSection>
|
1714
1734
|
</PanelContent>
|
@@ -1732,7 +1752,10 @@ export const RelationalConnectionGeneralEditor = observer(
|
|
1732
1752
|
options={dbTypes}
|
1733
1753
|
onChange={onTypeChange}
|
1734
1754
|
value={selectedDbType}
|
1735
|
-
darkMode={
|
1755
|
+
darkMode={
|
1756
|
+
!applicationStore.layoutService
|
1757
|
+
.TEMPORARY__isLightColorThemeEnabled
|
1758
|
+
}
|
1736
1759
|
/>
|
1737
1760
|
</PanelFormSection>
|
1738
1761
|
<PanelFormBooleanField
|
@@ -1770,7 +1793,10 @@ export const RelationalConnectionGeneralEditor = observer(
|
|
1770
1793
|
value={selectedSourceSpec(
|
1771
1794
|
connection.datasourceSpecification,
|
1772
1795
|
)}
|
1773
|
-
darkMode={
|
1796
|
+
darkMode={
|
1797
|
+
!applicationStore.layoutService
|
1798
|
+
.TEMPORARY__isLightColorThemeEnabled
|
1799
|
+
}
|
1774
1800
|
/>
|
1775
1801
|
</PanelFormSection>
|
1776
1802
|
<PanelDivider />
|
@@ -1804,7 +1830,10 @@ export const RelationalConnectionGeneralEditor = observer(
|
|
1804
1830
|
value={selectedAuth(
|
1805
1831
|
connection.authenticationStrategy,
|
1806
1832
|
)}
|
1807
|
-
darkMode={
|
1833
|
+
darkMode={
|
1834
|
+
!applicationStore.layoutService
|
1835
|
+
.TEMPORARY__isLightColorThemeEnabled
|
1836
|
+
}
|
1808
1837
|
/>
|
1809
1838
|
</PanelFormSection>
|
1810
1839
|
<PanelDivider />
|
@@ -174,6 +174,7 @@ export const DataElementReferenceDataEditor = observer(
|
|
174
174
|
const dataElement =
|
175
175
|
dataElementReferenceState.embeddedData.dataElement.value;
|
176
176
|
const editorStore = dataElementReferenceState.editorStore;
|
177
|
+
const applicationStore = editorStore.applicationStore;
|
177
178
|
const options =
|
178
179
|
editorStore.graphManagerState.usableDataElements.map(buildElementOption);
|
179
180
|
const selectedOption = buildElementOption(dataElement);
|
@@ -215,7 +216,10 @@ export const DataElementReferenceDataEditor = observer(
|
|
215
216
|
options={options}
|
216
217
|
onChange={onDataElementChange}
|
217
218
|
value={selectedOption}
|
218
|
-
darkMode={
|
219
|
+
darkMode={
|
220
|
+
!applicationStore.layoutService
|
221
|
+
.TEMPORARY__isLightColorThemeEnabled
|
222
|
+
}
|
219
223
|
/>
|
220
224
|
<button
|
221
225
|
className="btn--dark btn--sm data-element-reference-editor__value-btn"
|
@@ -255,6 +259,7 @@ export const ModelEmbeddedDataEditor = observer(
|
|
255
259
|
option.value.path,
|
256
260
|
});
|
257
261
|
const editorStore = modelStoreDataState.editorStore;
|
262
|
+
const applicationStore = editorStore.applicationStore;
|
258
263
|
const _class = modelData.model.value;
|
259
264
|
const classOptions = editorStore.graphManagerState.usableClasses.map(
|
260
265
|
(_cl) => ({
|
@@ -293,10 +298,15 @@ export const ModelEmbeddedDataEditor = observer(
|
|
293
298
|
options={classOptions}
|
294
299
|
onChange={changeClass}
|
295
300
|
value={selectedClassOption}
|
296
|
-
darkMode={
|
301
|
+
darkMode={
|
302
|
+
!applicationStore.layoutService
|
303
|
+
.TEMPORARY__isLightColorThemeEnabled
|
304
|
+
}
|
297
305
|
filterOption={elementFilterOption}
|
298
306
|
formatOptionLabel={getPackageableElementOptionFormatter({
|
299
|
-
darkMode:
|
307
|
+
darkMode:
|
308
|
+
!applicationStore.layoutService
|
309
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
300
310
|
})}
|
301
311
|
/>
|
302
312
|
</div>
|
@@ -64,6 +64,7 @@ export interface TableOption {
|
|
64
64
|
const RelationalTableIdentifierEditor = observer(
|
65
65
|
(props: { dataState: RelationalCSVDataState; isReadOnly: boolean }) => {
|
66
66
|
const { isReadOnly, dataState } = props;
|
67
|
+
const applicationStore = dataState.editorStore.applicationStore;
|
67
68
|
const resolvedDb = dataState.database;
|
68
69
|
const existingDataTable = dataState.tableToEdit;
|
69
70
|
|
@@ -168,7 +169,10 @@ const RelationalTableIdentifierEditor = observer(
|
|
168
169
|
onChange={onTableChange}
|
169
170
|
value={selectedTable}
|
170
171
|
isClearable={false}
|
171
|
-
darkMode={
|
172
|
+
darkMode={
|
173
|
+
!applicationStore.layoutService
|
174
|
+
.TEMPORARY__isLightColorThemeEnabled
|
175
|
+
}
|
172
176
|
/>
|
173
177
|
</div>
|
174
178
|
</div>
|
@@ -240,6 +244,7 @@ const RelationalCSVTableContextMenu = observer(
|
|
240
244
|
const ImportModal = observer(
|
241
245
|
(props: { dataState: RelationalCSVDataState; isReadOnly: boolean }) => {
|
242
246
|
const { isReadOnly, dataState } = props;
|
247
|
+
const applicationStore = dataState.editorStore.applicationStore;
|
243
248
|
const [csv, setCSV] = useState('');
|
244
249
|
const closeModal = (): void => dataState.closeCSVModal();
|
245
250
|
const importVal = (): void => {
|
@@ -259,7 +264,12 @@ const ImportModal = observer(
|
|
259
264
|
classes={{ container: 'search-modal__container' }}
|
260
265
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
261
266
|
>
|
262
|
-
<Modal
|
267
|
+
<Modal
|
268
|
+
darkMode={
|
269
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
270
|
+
}
|
271
|
+
className="relational-data-editor__import"
|
272
|
+
>
|
263
273
|
<ModalHeader title="Import CSV" />
|
264
274
|
<ModalBody>
|
265
275
|
<textarea
|
@@ -743,7 +743,10 @@ export const EntityChangeConflictEditor = observer(
|
|
743
743
|
currentMode,
|
744
744
|
conflictEditorState.getModeComparisonViewInfo(currentMode),
|
745
745
|
)}
|
746
|
-
darkMode={
|
746
|
+
darkMode={
|
747
|
+
!applicationStore.layoutService
|
748
|
+
.TEMPORARY__isLightColorThemeEnabled
|
749
|
+
}
|
747
750
|
/>
|
748
751
|
</div>
|
749
752
|
</div>
|
package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx
CHANGED
@@ -420,6 +420,7 @@ const GenerationEnumPropertyEditor = observer(
|
|
420
420
|
getConfigValue: (name: string) => unknown;
|
421
421
|
}) => {
|
422
422
|
const { property, getConfigValue, isReadOnly, update } = props;
|
423
|
+
const applicationStore = useApplicationStore();
|
423
424
|
const getEnumLabel = (_enum: string): string =>
|
424
425
|
isValidFullPath(_enum)
|
425
426
|
? resolvePackagePathAndElementName(_enum)[1]
|
@@ -451,7 +452,9 @@ const GenerationEnumPropertyEditor = observer(
|
|
451
452
|
value={{ label: getEnumLabel(value), value }}
|
452
453
|
isClearable={true}
|
453
454
|
escapeClearsValue={true}
|
454
|
-
darkMode={
|
455
|
+
darkMode={
|
456
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
457
|
+
}
|
455
458
|
disable={isReadOnly}
|
456
459
|
/>
|
457
460
|
</div>
|
@@ -134,7 +134,9 @@ export const QueryConnectionDatabaseBuilderEditor = observer(
|
|
134
134
|
</button>
|
135
135
|
</div>
|
136
136
|
<Modal
|
137
|
-
darkMode={
|
137
|
+
darkMode={
|
138
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
139
|
+
}
|
138
140
|
className="query-connection-database-builder-editor__modal"
|
139
141
|
>
|
140
142
|
<div className="query-connection-database-builder-editor__modal__content">
|
@@ -274,7 +276,9 @@ export const QueryConnectionModelsEditor = observer(
|
|
274
276
|
<PanelHeader title="Model Builder" />
|
275
277
|
</div>
|
276
278
|
<Modal
|
277
|
-
darkMode={
|
279
|
+
darkMode={
|
280
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
281
|
+
}
|
278
282
|
className="query-connection-connection-model-editor__modal"
|
279
283
|
>
|
280
284
|
<div className="query-connection-connection-model-editor__modal">
|
@@ -186,6 +186,7 @@ const BindingGeneralEditor = observer(
|
|
186
186
|
(props: { editorState: BindingEditorState; isReadOnly: boolean }) => {
|
187
187
|
const { editorState, isReadOnly } = props;
|
188
188
|
const editorStore = useEditorStore();
|
189
|
+
const applicationStore = editorStore.applicationStore;
|
189
190
|
const binding = editorState.binding;
|
190
191
|
const schemaSets = Array.from(
|
191
192
|
editorStore.graphManagerState.graph.allOwnElements,
|
@@ -246,7 +247,10 @@ const BindingGeneralEditor = observer(
|
|
246
247
|
onChange={onContentTypeChange}
|
247
248
|
value={selectedContentType}
|
248
249
|
placeholder="Choose a content type"
|
249
|
-
darkMode={
|
250
|
+
darkMode={
|
251
|
+
!applicationStore.layoutService
|
252
|
+
.TEMPORARY__isLightColorThemeEnabled
|
253
|
+
}
|
250
254
|
/>
|
251
255
|
</div>
|
252
256
|
<div className="binding-general-editor__section__header__label">
|
@@ -262,7 +266,10 @@ const BindingGeneralEditor = observer(
|
|
262
266
|
value={selectedSchemaSet}
|
263
267
|
isClearable={true}
|
264
268
|
placeholder="Choose a schema set"
|
265
|
-
darkMode={
|
269
|
+
darkMode={
|
270
|
+
!applicationStore.layoutService
|
271
|
+
.TEMPORARY__isLightColorThemeEnabled
|
272
|
+
}
|
266
273
|
/>
|
267
274
|
</div>
|
268
275
|
<div className="binding-general-editor__section__header__label">
|
@@ -278,7 +285,10 @@ const BindingGeneralEditor = observer(
|
|
278
285
|
value={selectedSchemaId}
|
279
286
|
isClearable={true}
|
280
287
|
placeholder="Choose a schema ID"
|
281
|
-
darkMode={
|
288
|
+
darkMode={
|
289
|
+
!applicationStore.layoutService
|
290
|
+
.TEMPORARY__isLightColorThemeEnabled
|
291
|
+
}
|
282
292
|
/>
|
283
293
|
</div>
|
284
294
|
</div>
|
@@ -36,6 +36,7 @@ import {
|
|
36
36
|
ModalBody,
|
37
37
|
ModalFooter,
|
38
38
|
ModalHeader,
|
39
|
+
ModalFooterButton,
|
39
40
|
} from '@finos/legend-art';
|
40
41
|
import { ExternalFormatSchema as Schema } from '@finos/legend-graph';
|
41
42
|
import { flowResult } from 'mobx';
|
@@ -67,6 +68,7 @@ const SchemaLoader = observer(
|
|
67
68
|
schemaSetEditorState: InnerSchemaSetEditorState | SchemaSetEditorState;
|
68
69
|
}) => {
|
69
70
|
const { schemaSetEditorState } = props;
|
71
|
+
const applicationStore = schemaSetEditorState.editorStore.applicationStore;
|
70
72
|
const importState = schemaSetEditorState.importSchemaContentState;
|
71
73
|
const onClose = (): void => importState.closeModal();
|
72
74
|
const onChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {
|
@@ -88,7 +90,12 @@ const SchemaLoader = observer(
|
|
88
90
|
appear: false, // disable transition
|
89
91
|
}}
|
90
92
|
>
|
91
|
-
<Modal
|
93
|
+
<Modal
|
94
|
+
darkMode={
|
95
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
96
|
+
}
|
97
|
+
className="modal--scrollable patch-loader"
|
98
|
+
>
|
92
99
|
<ModalHeader title="Schema Content Loader" />
|
93
100
|
<ModalBody>
|
94
101
|
<PanelLoadingIndicator
|
@@ -135,13 +142,12 @@ const SchemaLoader = observer(
|
|
135
142
|
)}
|
136
143
|
</ModalBody>
|
137
144
|
<ModalFooter>
|
138
|
-
<
|
139
|
-
className="
|
145
|
+
<ModalFooterButton
|
146
|
+
className="blocking-alert__action--standard"
|
147
|
+
text="Import Schemas"
|
140
148
|
onClick={importSchemas}
|
141
149
|
disabled={!importState.files?.length}
|
142
|
-
|
143
|
-
Import Schemas
|
144
|
-
</button>
|
150
|
+
/>
|
145
151
|
</ModalFooter>
|
146
152
|
</Modal>
|
147
153
|
</Dialog>
|
@@ -372,7 +372,10 @@ const ParameterBasicEditor = observer(
|
|
372
372
|
value={selectedType}
|
373
373
|
placeholder="Choose a type..."
|
374
374
|
filterOption={filterOption}
|
375
|
-
darkMode={
|
375
|
+
darkMode={
|
376
|
+
!applicationStore.layoutService
|
377
|
+
.TEMPORARY__isLightColorThemeEnabled
|
378
|
+
}
|
376
379
|
/>
|
377
380
|
)}
|
378
381
|
{!isReadOnly && !isEditingType && (
|
@@ -567,7 +570,10 @@ const ReturnTypeEditor = observer(
|
|
567
570
|
value={selectedType}
|
568
571
|
placeholder="Choose a type..."
|
569
572
|
filterOption={filterOption}
|
570
|
-
darkMode={
|
573
|
+
darkMode={
|
574
|
+
!applicationStore.layoutService
|
575
|
+
.TEMPORARY__isLightColorThemeEnabled
|
576
|
+
}
|
571
577
|
/>
|
572
578
|
)}
|
573
579
|
{!isReadOnly && !isEditingType && (
|
@@ -814,7 +820,12 @@ const FunctionPromoteEditor = observer(
|
|
814
820
|
classes={{ container: 'search-modal__container' }}
|
815
821
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
816
822
|
>
|
817
|
-
<Modal
|
823
|
+
<Modal
|
824
|
+
darkMode={
|
825
|
+
!applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
|
826
|
+
}
|
827
|
+
className="function-promote-editor"
|
828
|
+
>
|
818
829
|
<ModalBody className="function-promote-editor__content">
|
819
830
|
<div className="function-promote-editor__content__prompt">
|
820
831
|
Select any one of the following activator types to continue
|
@@ -841,11 +852,12 @@ const FunctionPromoteEditor = observer(
|
|
841
852
|
className="function-promote-editor__action-btn"
|
842
853
|
onClick={closeModal}
|
843
854
|
title="Close"
|
855
|
+
type="secondary"
|
844
856
|
>
|
845
857
|
Cancel
|
846
858
|
</ModalFooterButton>
|
847
859
|
<ModalFooterButton
|
848
|
-
className="
|
860
|
+
className="function-promote-editor__action-btn function-promote-editor__action-btn--primitive"
|
849
861
|
disabled={
|
850
862
|
!activatorPromoteState.activateType ||
|
851
863
|
!validateFunctionActivator(activatorPromoteState.activateType)
|
@@ -444,7 +444,10 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
|
|
444
444
|
options={OWNERSHIP_OPTIONS}
|
445
445
|
onChange={onOwnershipChange}
|
446
446
|
value={editorState.selectedOwnership}
|
447
|
-
darkMode={
|
447
|
+
darkMode={
|
448
|
+
!applicationStore.layoutService
|
449
|
+
.TEMPORARY__isLightColorThemeEnabled
|
450
|
+
}
|
448
451
|
/>
|
449
452
|
</div>
|
450
453
|
{ownership instanceof DeploymentOwner && (
|
@@ -223,7 +223,10 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
|
|
223
223
|
)
|
224
224
|
: undefined
|
225
225
|
}
|
226
|
-
darkMode={
|
226
|
+
darkMode={
|
227
|
+
!applicationStore.layoutService
|
228
|
+
.TEMPORARY__isLightColorThemeEnabled
|
229
|
+
}
|
227
230
|
placeholder="Choose a connection"
|
228
231
|
filterOption={connectionFilterOption}
|
229
232
|
/>
|