@finos/legend-application-studio 28.18.69 → 28.18.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/LegendStudioDocumentation.d.ts +0 -1
- package/lib/__lib__/LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioDocumentation.js +0 -2
- package/lib/__lib__/LegendStudioDocumentation.js.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.js +2 -5
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +4 -4
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +5 -5
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +6 -6
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.js +3 -3
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.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 +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +2 -2
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +2 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.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 +14 -7
- 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 +10 -5
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.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 +6 -4
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js +12 -8
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.js +6 -5
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.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 +4 -4
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js +12 -8
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js +17 -11
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.js +5 -3
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js +17 -11
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.js +5 -3
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.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 +1 -2
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.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.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +0 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +3 -3
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +10 -10
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +6 -6
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js +3 -3
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +4 -2
- 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 +2 -4
- 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 +4 -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 -8
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +1 -4
- package/lib/components/editor/side-bar/WorkspaceReview.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 -8
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js +3 -8
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -4
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.js.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewSideBar.d.ts.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewSideBar.js +1 -4
- package/lib/components/project-reviewer/ProjectReviewSideBar.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +12 -12
- package/lib/stores/editor/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GraphGenerationState.js +1 -2
- package/lib/stores/editor/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +3 -6
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +1 -3
- package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js +1 -3
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/editor/utils/FileSystemTreeUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/FileSystemTreeUtils.js +1 -2
- package/lib/stores/editor/utils/FileSystemTreeUtils.js.map +1 -1
- package/package.json +24 -24
- package/src/__lib__/LegendStudioDocumentation.ts +0 -3
- package/src/components/editor/editor-group/EditorGroup.tsx +4 -5
- package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +4 -4
- package/src/components/editor/editor-group/GrammarTextEditor.tsx +5 -5
- package/src/components/editor/editor-group/RuntimeEditor.tsx +6 -6
- package/src/components/editor/editor-group/data-editor/DataElementEditor.tsx +4 -4
- package/src/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.tsx +2 -1
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +2 -2
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +2 -2
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +16 -7
- package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +12 -5
- package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +6 -4
- package/src/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.tsx +21 -11
- package/src/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.tsx +6 -5
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.tsx +2 -2
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +7 -4
- package/src/components/editor/editor-group/mapping-editor/MappingExplorer.tsx +14 -8
- package/src/components/editor/editor-group/mapping-editor/MappingTestsExplorer.tsx +2 -2
- package/src/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.tsx +2 -2
- package/src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx +23 -15
- package/src/components/editor/editor-group/mapping-editor/TypeTree.tsx +6 -3
- package/src/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.tsx +2 -2
- package/src/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +21 -14
- package/src/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.tsx +6 -3
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +1 -2
- package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +2 -2
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +0 -1
- package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +4 -4
- package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +10 -10
- package/src/components/editor/editor-group/uml-editor/EnumerationEditor.tsx +8 -8
- package/src/components/editor/editor-group/uml-editor/PropertyEditor.tsx +4 -4
- package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +7 -8
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +2 -4
- package/src/components/editor/side-bar/Explorer.tsx +5 -2
- package/src/components/editor/side-bar/LocalChanges.tsx +10 -15
- package/src/components/editor/side-bar/WorkspaceReview.tsx +8 -11
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +10 -15
- package/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx +10 -15
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -4
- package/src/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.tsx +1 -1
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +1 -1
- package/src/components/project-reviewer/ProjectReviewSideBar.tsx +8 -11
- package/src/stores/editor/editor-state/GraphGenerationState.ts +1 -2
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +5 -6
- package/src/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +3 -3
- package/src/stores/editor/sidebar-state/WorkflowManagerState.ts +3 -5
- package/src/stores/editor/utils/FileSystemTreeUtils.ts +1 -2
package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx
CHANGED
@@ -821,8 +821,7 @@ const ProjectVersionDependencyEditor = observer(
|
|
821
821
|
// version
|
822
822
|
const version = projectDependency.versionId;
|
823
823
|
const versionOptions = versions
|
824
|
-
.
|
825
|
-
.sort((v1, v2) => compareSemVerVersions(v2, v1))
|
824
|
+
.toSorted((v1, v2) => compareSemVerVersions(v2, v1))
|
826
825
|
.map((v) => {
|
827
826
|
if (v === MASTER_SNAPSHOT_ALIAS) {
|
828
827
|
return { value: v, label: SNAPSHOT_VERSION_ALIAS };
|
@@ -236,7 +236,7 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
236
236
|
},
|
237
237
|
[isReadOnly, mapping, executionContextState, pureExecutionState],
|
238
238
|
);
|
239
|
-
const [{ isMappingOrRuntimeDragOver },
|
239
|
+
const [{ isMappingOrRuntimeDragOver }, dropConnector] = useDrop<
|
240
240
|
ElementDragSource,
|
241
241
|
void,
|
242
242
|
{ isMappingOrRuntimeDragOver: boolean }
|
@@ -262,7 +262,7 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
262
262
|
return (
|
263
263
|
<PanelContent>
|
264
264
|
<PanelDropZone
|
265
|
-
dropTargetConnector={
|
265
|
+
dropTargetConnector={dropConnector}
|
266
266
|
isDragOver={isMappingOrRuntimeDragOver && !isReadOnly}
|
267
267
|
>
|
268
268
|
<div className="service-execution-editor__configuration__items">
|
@@ -451,7 +451,7 @@ export const AssociationEditor = observer(
|
|
451
451
|
},
|
452
452
|
[association, isReadOnly],
|
453
453
|
);
|
454
|
-
const [{ isTaggedValueDragOver },
|
454
|
+
const [{ isTaggedValueDragOver }, taggedValueDropConnector] = useDrop<
|
455
455
|
ElementDragSource,
|
456
456
|
void,
|
457
457
|
{ isTaggedValueDragOver: boolean }
|
@@ -478,7 +478,7 @@ export const AssociationEditor = observer(
|
|
478
478
|
},
|
479
479
|
[association, isReadOnly],
|
480
480
|
);
|
481
|
-
const [{ isStereotypeDragOver },
|
481
|
+
const [{ isStereotypeDragOver }, stereotypeDropConnector] = useDrop<
|
482
482
|
ElementDragSource,
|
483
483
|
void,
|
484
484
|
{ isStereotypeDragOver: boolean }
|
@@ -585,7 +585,7 @@ export const AssociationEditor = observer(
|
|
585
585
|
{selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
|
586
586
|
<PanelDropZone
|
587
587
|
isDragOver={isTaggedValueDragOver && !isReadOnly}
|
588
|
-
dropTargetConnector={
|
588
|
+
dropTargetConnector={taggedValueDropConnector}
|
589
589
|
>
|
590
590
|
<PanelContentLists>
|
591
591
|
<TaggedValueDragPreviewLayer />
|
@@ -604,7 +604,7 @@ export const AssociationEditor = observer(
|
|
604
604
|
{selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
|
605
605
|
<PanelDropZone
|
606
606
|
isDragOver={isStereotypeDragOver && !isReadOnly}
|
607
|
-
dropTargetConnector={
|
607
|
+
dropTargetConnector={stereotypeDropConnector}
|
608
608
|
>
|
609
609
|
<PanelContentLists>
|
610
610
|
<StereotypeDragPreviewLayer />
|
@@ -1195,7 +1195,7 @@ const PropertiesEditor = observer(
|
|
1195
1195
|
},
|
1196
1196
|
[_class, isReadOnly],
|
1197
1197
|
);
|
1198
|
-
const [{ isPropertyDragOver },
|
1198
|
+
const [{ isPropertyDragOver }, dropConnector] = useDrop<
|
1199
1199
|
ElementDragSource,
|
1200
1200
|
void,
|
1201
1201
|
{ isPropertyDragOver: boolean }
|
@@ -1220,7 +1220,7 @@ const PropertiesEditor = observer(
|
|
1220
1220
|
return (
|
1221
1221
|
<PanelDropZone
|
1222
1222
|
isDragOver={isPropertyDragOver && !isReadOnly}
|
1223
|
-
dropTargetConnector={
|
1223
|
+
dropTargetConnector={dropConnector}
|
1224
1224
|
>
|
1225
1225
|
<PanelContentLists>
|
1226
1226
|
<DragPreviewLayer
|
@@ -1278,7 +1278,7 @@ const DerviedPropertiesEditor = observer(
|
|
1278
1278
|
},
|
1279
1279
|
[_class, classState, isReadOnly],
|
1280
1280
|
);
|
1281
|
-
const [{ isDerivedPropertyDragOver },
|
1281
|
+
const [{ isDerivedPropertyDragOver }, dropConnector] = useDrop<
|
1282
1282
|
ElementDragSource,
|
1283
1283
|
void,
|
1284
1284
|
{ isDerivedPropertyDragOver: boolean }
|
@@ -1303,7 +1303,7 @@ const DerviedPropertiesEditor = observer(
|
|
1303
1303
|
return (
|
1304
1304
|
<PanelDropZone
|
1305
1305
|
isDragOver={isDerivedPropertyDragOver && !isReadOnly}
|
1306
|
-
dropTargetConnector={
|
1306
|
+
dropTargetConnector={dropConnector}
|
1307
1307
|
>
|
1308
1308
|
<PanelContentLists>
|
1309
1309
|
<DragPreviewLayer
|
@@ -1420,7 +1420,7 @@ const SupertypesEditor = observer(
|
|
1420
1420
|
},
|
1421
1421
|
[_class, isReadOnly],
|
1422
1422
|
);
|
1423
|
-
const [{ isSuperTypeDragOver },
|
1423
|
+
const [{ isSuperTypeDragOver }, dropConnector] = useDrop<
|
1424
1424
|
ElementDragSource,
|
1425
1425
|
void,
|
1426
1426
|
{ isSuperTypeDragOver: boolean }
|
@@ -1445,7 +1445,7 @@ const SupertypesEditor = observer(
|
|
1445
1445
|
return (
|
1446
1446
|
<PanelDropZone
|
1447
1447
|
isDragOver={isSuperTypeDragOver && !isReadOnly}
|
1448
|
-
dropTargetConnector={
|
1448
|
+
dropTargetConnector={dropConnector}
|
1449
1449
|
>
|
1450
1450
|
<PanelContentLists>
|
1451
1451
|
<DragPreviewLayer
|
@@ -1490,7 +1490,7 @@ const TaggedValuesEditor = observer(
|
|
1490
1490
|
},
|
1491
1491
|
[_class, isReadOnly],
|
1492
1492
|
);
|
1493
|
-
const [{ isTaggedValueDragOver },
|
1493
|
+
const [{ isTaggedValueDragOver }, dropConnector] = useDrop<
|
1494
1494
|
ElementDragSource,
|
1495
1495
|
void,
|
1496
1496
|
{ isTaggedValueDragOver: boolean }
|
@@ -1508,7 +1508,7 @@ const TaggedValuesEditor = observer(
|
|
1508
1508
|
return (
|
1509
1509
|
<PanelDropZone
|
1510
1510
|
isDragOver={isTaggedValueDragOver && !isReadOnly}
|
1511
|
-
dropTargetConnector={
|
1511
|
+
dropTargetConnector={dropConnector}
|
1512
1512
|
>
|
1513
1513
|
<PanelContentLists>
|
1514
1514
|
<TaggedValueDragPreviewLayer />
|
@@ -1550,7 +1550,7 @@ const StereotypesEditor = observer(
|
|
1550
1550
|
},
|
1551
1551
|
[_class, isReadOnly],
|
1552
1552
|
);
|
1553
|
-
const [{ isStereotypeDragOver },
|
1553
|
+
const [{ isStereotypeDragOver }, dropConnector] = useDrop<
|
1554
1554
|
ElementDragSource,
|
1555
1555
|
void,
|
1556
1556
|
{ isStereotypeDragOver: boolean }
|
@@ -1568,7 +1568,7 @@ const StereotypesEditor = observer(
|
|
1568
1568
|
return (
|
1569
1569
|
<PanelDropZone
|
1570
1570
|
isDragOver={isStereotypeDragOver && !isReadOnly}
|
1571
|
-
dropTargetConnector={
|
1571
|
+
dropTargetConnector={dropConnector}
|
1572
1572
|
>
|
1573
1573
|
<PanelContentLists>
|
1574
1574
|
<StereotypeDragPreviewLayer />
|
@@ -266,7 +266,7 @@ const EnumEditor = observer(
|
|
266
266
|
},
|
267
267
|
[_enum, isReadOnly],
|
268
268
|
);
|
269
|
-
const [{ isTaggedValueDragOver },
|
269
|
+
const [{ isTaggedValueDragOver }, taggedValueDropConnector] = useDrop<
|
270
270
|
ElementDragSource,
|
271
271
|
void,
|
272
272
|
{ isTaggedValueDragOver: boolean }
|
@@ -293,7 +293,7 @@ const EnumEditor = observer(
|
|
293
293
|
},
|
294
294
|
[_enum, isReadOnly],
|
295
295
|
);
|
296
|
-
const [{ isStereotypeDragOver },
|
296
|
+
const [{ isStereotypeDragOver }, stereotypeDropConnector] = useDrop<
|
297
297
|
ElementDragSource,
|
298
298
|
void,
|
299
299
|
{ isStereotypeDragOver: boolean }
|
@@ -358,7 +358,7 @@ const EnumEditor = observer(
|
|
358
358
|
{selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
|
359
359
|
<PanelDropZone
|
360
360
|
isDragOver={isTaggedValueDragOver && !isReadOnly}
|
361
|
-
dropTargetConnector={
|
361
|
+
dropTargetConnector={taggedValueDropConnector}
|
362
362
|
>
|
363
363
|
<PanelContentLists>
|
364
364
|
<TaggedValueDragPreviewLayer />
|
@@ -377,7 +377,7 @@ const EnumEditor = observer(
|
|
377
377
|
{selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
|
378
378
|
<PanelDropZone
|
379
379
|
isDragOver={isStereotypeDragOver && !isReadOnly}
|
380
|
-
dropTargetConnector={
|
380
|
+
dropTargetConnector={stereotypeDropConnector}
|
381
381
|
>
|
382
382
|
<PanelContentLists>
|
383
383
|
<StereotypeDragPreviewLayer />
|
@@ -487,7 +487,7 @@ export const EnumerationEditor = observer(
|
|
487
487
|
},
|
488
488
|
[enumeration, isReadOnly],
|
489
489
|
);
|
490
|
-
const [{ isTaggedValueDragOver },
|
490
|
+
const [{ isTaggedValueDragOver }, taggedValueDropConnector] = useDrop<
|
491
491
|
ElementDragSource,
|
492
492
|
void,
|
493
493
|
{ isTaggedValueDragOver: boolean }
|
@@ -514,7 +514,7 @@ export const EnumerationEditor = observer(
|
|
514
514
|
},
|
515
515
|
[enumeration, isReadOnly],
|
516
516
|
);
|
517
|
-
const [{ isStereotypeDragOver },
|
517
|
+
const [{ isStereotypeDragOver }, stereotypeDropConnector] = useDrop<
|
518
518
|
ElementDragSource,
|
519
519
|
void,
|
520
520
|
{ isStereotypeDragOver: boolean }
|
@@ -651,7 +651,7 @@ export const EnumerationEditor = observer(
|
|
651
651
|
{selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
|
652
652
|
<PanelDropZone
|
653
653
|
isDragOver={isTaggedValueDragOver && !isReadOnly}
|
654
|
-
dropTargetConnector={
|
654
|
+
dropTargetConnector={taggedValueDropConnector}
|
655
655
|
>
|
656
656
|
<PanelContentLists>
|
657
657
|
<TaggedValueDragPreviewLayer />
|
@@ -670,7 +670,7 @@ export const EnumerationEditor = observer(
|
|
670
670
|
{selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
|
671
671
|
<PanelDropZone
|
672
672
|
isDragOver={isStereotypeDragOver && !isReadOnly}
|
673
|
-
dropTargetConnector={
|
673
|
+
dropTargetConnector={stereotypeDropConnector}
|
674
674
|
>
|
675
675
|
<PanelContentLists>
|
676
676
|
<StereotypeDragPreviewLayer />
|
@@ -148,7 +148,7 @@ export const PropertyEditor = observer(
|
|
148
148
|
},
|
149
149
|
[isReadOnly, property],
|
150
150
|
);
|
151
|
-
const [{ isTaggedValueDragOver },
|
151
|
+
const [{ isTaggedValueDragOver }, taggedValueDropConnector] = useDrop<
|
152
152
|
ElementDragSource,
|
153
153
|
void,
|
154
154
|
{ isTaggedValueDragOver: boolean }
|
@@ -175,7 +175,7 @@ export const PropertyEditor = observer(
|
|
175
175
|
},
|
176
176
|
[isReadOnly, property],
|
177
177
|
);
|
178
|
-
const [{ isStereotypeDragOver },
|
178
|
+
const [{ isStereotypeDragOver }, stereotypeDropConnector] = useDrop<
|
179
179
|
ElementDragSource,
|
180
180
|
void,
|
181
181
|
{ isStereotypeDragOver: boolean }
|
@@ -279,7 +279,7 @@ export const PropertyEditor = observer(
|
|
279
279
|
{selectedTab === UML_EDITOR_TAB.TAGGED_VALUES && (
|
280
280
|
<PanelDropZone
|
281
281
|
isDragOver={isTaggedValueDragOver && !isReadOnly}
|
282
|
-
dropTargetConnector={
|
282
|
+
dropTargetConnector={taggedValueDropConnector}
|
283
283
|
>
|
284
284
|
<PanelContentLists>
|
285
285
|
<TaggedValueDragPreviewLayer />
|
@@ -298,7 +298,7 @@ export const PropertyEditor = observer(
|
|
298
298
|
{selectedTab === UML_EDITOR_TAB.STEREOTYPES && (
|
299
299
|
<PanelDropZone
|
300
300
|
isDragOver={isStereotypeDragOver && !isReadOnly}
|
301
|
-
dropTargetConnector={
|
301
|
+
dropTargetConnector={stereotypeDropConnector}
|
302
302
|
>
|
303
303
|
<PanelContentLists>
|
304
304
|
<StereotypeDragPreviewLayer />
|
@@ -70,6 +70,7 @@ import {
|
|
70
70
|
DataGrid,
|
71
71
|
type DataGridCellRendererParams,
|
72
72
|
type DataGridColumnDefinition,
|
73
|
+
type DataGridDefaultMenuItem,
|
73
74
|
type DataGridGetContextMenuItemsParams,
|
74
75
|
type DataGridMenuItemDef,
|
75
76
|
} from '@finos/legend-lego/data-grid';
|
@@ -102,8 +103,9 @@ type DatabaseNodeDragType = { text: string };
|
|
102
103
|
const SQLPlaygroundDatabaseSchemaExplorerTreeNodeContainer = observer(
|
103
104
|
(props: DatabaseSchemaExplorerTreeNodeContainerProps) => {
|
104
105
|
const { node } = props;
|
106
|
+
const ref = useRef(null);
|
105
107
|
|
106
|
-
const [,
|
108
|
+
const [, dragConnector] = useDrag<DatabaseNodeDragType>(
|
107
109
|
() => ({
|
108
110
|
type: DATABASE_NODE_DND_TYPE,
|
109
111
|
item: {
|
@@ -115,10 +117,9 @@ const SQLPlaygroundDatabaseSchemaExplorerTreeNodeContainer = observer(
|
|
115
117
|
}),
|
116
118
|
[node],
|
117
119
|
);
|
120
|
+
dragConnector(ref);
|
118
121
|
|
119
|
-
return
|
120
|
-
<DatabaseSchemaExplorerTreeNodeContainer {...props} ref={nodeDragRef} />
|
121
|
-
);
|
122
|
+
return <DatabaseSchemaExplorerTreeNodeContainer {...props} ref={ref} />;
|
122
123
|
},
|
123
124
|
);
|
124
125
|
|
@@ -490,7 +491,7 @@ const PlayGroundSQLExecutionResultGrid = observer(
|
|
490
491
|
params: DataGridGetContextMenuItemsParams<{
|
491
492
|
[key: string]: string;
|
492
493
|
}>,
|
493
|
-
): (
|
494
|
+
): (DataGridDefaultMenuItem | DataGridMenuItemDef)[] => [
|
494
495
|
'copy',
|
495
496
|
'copyWithHeaders',
|
496
497
|
{
|
@@ -528,9 +529,7 @@ const PlayGroundSQLExecutionResultGrid = observer(
|
|
528
529
|
suppressClipboardPaste={false}
|
529
530
|
suppressContextMenu={false}
|
530
531
|
columnDefs={colDefs}
|
531
|
-
getContextMenuItems={(params)
|
532
|
-
getContextMenuItems(params)
|
533
|
-
}
|
532
|
+
getContextMenuItems={(params) => getContextMenuItems(params)}
|
534
533
|
/>
|
535
534
|
</div>
|
536
535
|
);
|
@@ -218,8 +218,7 @@ const NewPureModelConnectionDriverEditor = observer(
|
|
218
218
|
const _class = newConnectionValueDriver.class;
|
219
219
|
const classOptions = editorStore.graphManagerState.usableClasses
|
220
220
|
.map(buildElementOption)
|
221
|
-
.
|
222
|
-
.sort(compareLabelFn);
|
221
|
+
.toSorted(compareLabelFn);
|
223
222
|
const selectedClassOption = _class
|
224
223
|
? { label: _class.path, value: _class }
|
225
224
|
: null;
|
@@ -324,8 +323,7 @@ const NewConnectionDriverEditor = observer(() => {
|
|
324
323
|
storeOptions = storeOptions.concat(
|
325
324
|
editorStore.graphManagerState.usableStores
|
326
325
|
.map(buildElementOption)
|
327
|
-
.
|
328
|
-
.sort(compareLabelFn),
|
326
|
+
.toSorted(compareLabelFn),
|
329
327
|
);
|
330
328
|
const selectedStoreOption = {
|
331
329
|
label: store.path,
|
@@ -957,13 +957,16 @@ const PackageTreeNodeContainer = observer(
|
|
957
957
|
const [isSelectedFromContextMenu, setIsSelectedFromContextMenu] =
|
958
958
|
useState(false);
|
959
959
|
const { disableContextMenu, isContextImmutable } = innerProps;
|
960
|
-
const [,
|
960
|
+
const [, dragConnector] = useDrag(
|
961
961
|
() => ({
|
962
962
|
type: node.dndType,
|
963
963
|
item: new ElementDragSource(node),
|
964
964
|
}),
|
965
965
|
[node],
|
966
966
|
);
|
967
|
+
const ref = useRef<HTMLDivElement>(null);
|
968
|
+
dragConnector(ref);
|
969
|
+
|
967
970
|
const isPackage = node.packageableElement instanceof Package;
|
968
971
|
const expandIcon = !isPackage ? (
|
969
972
|
<div />
|
@@ -1023,7 +1026,7 @@ const PackageTreeNodeContainer = observer(
|
|
1023
1026
|
node.isSelected,
|
1024
1027
|
},
|
1025
1028
|
)}
|
1026
|
-
ref={
|
1029
|
+
ref={ref}
|
1027
1030
|
onClick={selectNode}
|
1028
1031
|
style={{
|
1029
1032
|
paddingLeft: `${level * (stepPaddingInRem ?? 1)}rem`,
|
@@ -328,17 +328,14 @@ export const LocalChanges = observer(() => {
|
|
328
328
|
</div>
|
329
329
|
</div>
|
330
330
|
<PanelContent>
|
331
|
-
{changes
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
openDiff={openChange(diff)}
|
340
|
-
/>
|
341
|
-
))}
|
331
|
+
{changes.toSorted(entityDiffSorter).map((diff) => (
|
332
|
+
<EntityDiffSideBarItem
|
333
|
+
key={diff.key}
|
334
|
+
diff={diff}
|
335
|
+
isSelected={isSelectedDiff(diff)}
|
336
|
+
openDiff={openChange(diff)}
|
337
|
+
/>
|
338
|
+
))}
|
342
339
|
</PanelContent>
|
343
340
|
</div>
|
344
341
|
</ResizablePanel>
|
@@ -411,8 +408,7 @@ export const LocalChanges = observer(() => {
|
|
411
408
|
</div>
|
412
409
|
<PanelContent>
|
413
410
|
{conflicts
|
414
|
-
.
|
415
|
-
.sort((a, b) => a.entityName.localeCompare(b.entityName))
|
411
|
+
.toSorted((a, b) => a.entityName.localeCompare(b.entityName))
|
416
412
|
.map((conflict) => (
|
417
413
|
<EntityChangeConflictSideBarItem
|
418
414
|
key={`conflict-${conflict.entityPath}`}
|
@@ -426,8 +422,7 @@ export const LocalChanges = observer(() => {
|
|
426
422
|
<div className="diff-panel__item-section-separator" />
|
427
423
|
)}
|
428
424
|
{changesWithoutConflicts
|
429
|
-
.
|
430
|
-
.sort(entityDiffSorter)
|
425
|
+
.toSorted(entityDiffSorter)
|
431
426
|
.map((diff) => (
|
432
427
|
<EntityDiffSideBarItem
|
433
428
|
key={diff.key}
|
@@ -79,17 +79,14 @@ export const WorkspaceReviewDiffs = observer(() => {
|
|
79
79
|
</div>
|
80
80
|
</div>
|
81
81
|
<PanelContent>
|
82
|
-
{changes
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
openDiff={openChange(diff)}
|
91
|
-
/>
|
92
|
-
))}
|
82
|
+
{changes.toSorted(entityDiffSorter).map((diff) => (
|
83
|
+
<EntityDiffSideBarItem
|
84
|
+
key={diff.key}
|
85
|
+
diff={diff}
|
86
|
+
isSelected={isSelectedDiff(diff)}
|
87
|
+
openDiff={openChange(diff)}
|
88
|
+
/>
|
89
|
+
))}
|
93
90
|
</PanelContent>
|
94
91
|
</div>
|
95
92
|
);
|
@@ -150,8 +150,7 @@ export const WorkspaceSyncConflictResolver = observer(() => {
|
|
150
150
|
{!hadResolvedAllConflicts && (
|
151
151
|
<>
|
152
152
|
{conflicts
|
153
|
-
.
|
154
|
-
.sort((a, b) =>
|
153
|
+
.toSorted((a, b) =>
|
155
154
|
a.entityName.localeCompare(b.entityName),
|
156
155
|
)
|
157
156
|
.map((conflict) => (
|
@@ -166,23 +165,19 @@ export const WorkspaceSyncConflictResolver = observer(() => {
|
|
166
165
|
Boolean(changes.length) && (
|
167
166
|
<div className="diff-panel__item-section-separator" />
|
168
167
|
)}
|
169
|
-
{changes
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
openDiff={openChange(diff)}
|
178
|
-
/>
|
179
|
-
))}
|
168
|
+
{changes.toSorted(entityDiffSorter).map((diff) => (
|
169
|
+
<EntityDiffSideBarItem
|
170
|
+
key={diff.key}
|
171
|
+
diff={diff}
|
172
|
+
isSelected={isSelectedDiff(diff)}
|
173
|
+
openDiff={openChange(diff)}
|
174
|
+
/>
|
175
|
+
))}
|
180
176
|
</>
|
181
177
|
)}
|
182
178
|
{hadResolvedAllConflicts &&
|
183
179
|
changes
|
184
|
-
.
|
185
|
-
.sort(entityDiffSorter)
|
180
|
+
.toSorted(entityDiffSorter)
|
186
181
|
.map((diff) => (
|
187
182
|
<EntityDiffSideBarItem
|
188
183
|
key={diff.key}
|
@@ -161,8 +161,7 @@ export const WorkspaceUpdateConflictResolver = observer(() => {
|
|
161
161
|
{!conflictResolutionState.hasResolvedAllConflicts && (
|
162
162
|
<>
|
163
163
|
{conflicts
|
164
|
-
.
|
165
|
-
.sort((a, b) => a.entityName.localeCompare(b.entityName))
|
164
|
+
.toSorted((a, b) => a.entityName.localeCompare(b.entityName))
|
166
165
|
.map((conflict) => (
|
167
166
|
<EntityChangeConflictSideBarItem
|
168
167
|
key={`conflict-${conflict.entityPath}`}
|
@@ -174,23 +173,19 @@ export const WorkspaceUpdateConflictResolver = observer(() => {
|
|
174
173
|
{Boolean(conflicts.length) && Boolean(changes.length) && (
|
175
174
|
<div className="diff-panel__item-section-separator" />
|
176
175
|
)}
|
177
|
-
{changes
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
openDiff={openChange(diff)}
|
186
|
-
/>
|
187
|
-
))}
|
176
|
+
{changes.toSorted(entityDiffSorter).map((diff) => (
|
177
|
+
<EntityDiffSideBarItem
|
178
|
+
key={diff.key}
|
179
|
+
diff={diff}
|
180
|
+
isSelected={isSelectedDiff(diff)}
|
181
|
+
openDiff={openChange(diff)}
|
182
|
+
/>
|
183
|
+
))}
|
188
184
|
</>
|
189
185
|
)}
|
190
186
|
{conflictResolutionState.hasResolvedAllConflicts &&
|
191
187
|
changes
|
192
|
-
.
|
193
|
-
.sort(entityDiffSorter)
|
188
|
+
.toSorted(entityDiffSorter)
|
194
189
|
.map((diff) => (
|
195
190
|
<EntityDiffSideBarItem
|
196
191
|
key={diff.key}
|
@@ -165,8 +165,7 @@ export const WorkspaceUpdater = observer(() => {
|
|
165
165
|
</div>
|
166
166
|
<PanelContent>
|
167
167
|
{conflicts
|
168
|
-
.
|
169
|
-
.sort((a, b) => a.entityName.localeCompare(b.entityName))
|
168
|
+
.toSorted((a, b) => a.entityName.localeCompare(b.entityName))
|
170
169
|
.map((conflict) => (
|
171
170
|
<EntityChangeConflictSideBarItem
|
172
171
|
key={`conflict-${conflict.entityPath}`}
|
@@ -180,8 +179,7 @@ export const WorkspaceUpdater = observer(() => {
|
|
180
179
|
<div className="diff-panel__item-section-separator" />
|
181
180
|
)}
|
182
181
|
{changesWithoutConflicts
|
183
|
-
.
|
184
|
-
.sort(entityDiffSorter)
|
182
|
+
.toSorted(entityDiffSorter)
|
185
183
|
.map((diff) => (
|
186
184
|
<EntityDiffSideBarItem
|
187
185
|
key={diff.key}
|
@@ -49,7 +49,7 @@ export const EndToEndWorkflow = observer(
|
|
49
49
|
const { globalEndToEndWorkflowState } = props;
|
50
50
|
|
51
51
|
const openWorkflow = (
|
52
|
-
event: React.MouseEvent<HTMLDivElement
|
52
|
+
event: React.MouseEvent<HTMLDivElement>,
|
53
53
|
flow: string,
|
54
54
|
): void => {
|
55
55
|
event.stopPropagation();
|
@@ -669,7 +669,7 @@ export const GlobalTestRunner = observer(
|
|
669
669
|
.flatMap(
|
670
670
|
(plugin) => plugin.getExtraTestRunnerViewConfigurations?.() ?? [],
|
671
671
|
)
|
672
|
-
.filter((configuration) => configuration.renderer(editorStore));
|
672
|
+
.filter((configuration) => Boolean(configuration.renderer(editorStore)));
|
673
673
|
|
674
674
|
const testRunnerTabs = (Object.values(TEST_RUNNER_TABS) as string[])
|
675
675
|
.map((e) => ({
|
@@ -277,17 +277,14 @@ export const ProjectReviewerSideBar = observer(() => {
|
|
277
277
|
</div>
|
278
278
|
</div>
|
279
279
|
<PanelContent>
|
280
|
-
{changes
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
openDiff={openChange(diff)}
|
289
|
-
/>
|
290
|
-
))}
|
280
|
+
{changes.toSorted(entityDiffSorter).map((diff) => (
|
281
|
+
<EntityDiffSideBarItem
|
282
|
+
key={diff.key}
|
283
|
+
diff={diff}
|
284
|
+
isSelected={isSelectedDiff(diff)}
|
285
|
+
openDiff={openChange(diff)}
|
286
|
+
/>
|
287
|
+
))}
|
291
288
|
|
292
289
|
{Boolean(reviewStore.reviewReport?.fromToProjectConfig) && (
|
293
290
|
<button
|
@@ -103,8 +103,7 @@ export class DEPREACTED_GlobalFileGenerationState {
|
|
103
103
|
|
104
104
|
get fileGenerationConfigurationOptions(): GenerationTypeOption[] {
|
105
105
|
return this.fileGenerationConfigurations
|
106
|
-
.
|
107
|
-
.sort((a, b): number => a.label.localeCompare(b.label))
|
106
|
+
.toSorted((a, b): number => a.label.localeCompare(b.label))
|
108
107
|
.map((config) => ({
|
109
108
|
label: config.label,
|
110
109
|
value: config.key,
|
package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts
CHANGED
@@ -463,8 +463,9 @@ export class DatabaseSchemaExplorerState {
|
|
463
463
|
const rootIds: string[] = [];
|
464
464
|
const nodes = new Map<string, DatabaseSchemaExplorerTreeNodeData>();
|
465
465
|
database.schemas
|
466
|
-
.
|
467
|
-
|
466
|
+
.toSorted((schemaA, schemaB) =>
|
467
|
+
schemaA.name.localeCompare(schemaB.name),
|
468
|
+
)
|
468
469
|
.forEach((schema) => {
|
469
470
|
const schemaId = schema.name;
|
470
471
|
rootIds.push(schemaId);
|
@@ -523,8 +524,7 @@ export class DatabaseSchemaExplorerState {
|
|
523
524
|
const childrenIds = schemaNode.childrenIds ?? [];
|
524
525
|
schema.tables = tables;
|
525
526
|
tables
|
526
|
-
.
|
527
|
-
.sort((tableA, tableB) => tableA.name.localeCompare(tableB.name))
|
527
|
+
.toSorted((tableA, tableB) => tableA.name.localeCompare(tableB.name))
|
528
528
|
.forEach((table) => {
|
529
529
|
table.schema = schema;
|
530
530
|
const tableId = `${schema.name}.${table.name}`;
|
@@ -598,8 +598,7 @@ export class DatabaseSchemaExplorerState {
|
|
598
598
|
const childrenIds: string[] = [];
|
599
599
|
const tableId = tableNode.id;
|
600
600
|
columns
|
601
|
-
.
|
602
|
-
.sort((colA, colB) => colA.name.localeCompare(colB.name))
|
601
|
+
.toSorted((colA, colB) => colA.name.localeCompare(colB.name))
|
603
602
|
.forEach((column) => {
|
604
603
|
const columnId = `${tableId}.${column.name}`;
|
605
604
|
const columnNode = new DatabaseSchemaExplorerTreeColumnNodeData(
|
package/src/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts
CHANGED
@@ -286,9 +286,9 @@ export class EntityChangeConflictEditorState extends EntityDiffViewerState {
|
|
286
286
|
}
|
287
287
|
|
288
288
|
private get sortedMergedConflicts(): MergeConflict[] {
|
289
|
-
return this.mergeConflicts
|
290
|
-
|
291
|
-
|
289
|
+
return this.mergeConflicts.toSorted(
|
290
|
+
(a, b) => a.startHeader - b.startHeader,
|
291
|
+
);
|
292
292
|
}
|
293
293
|
|
294
294
|
get canUseTheirs(): boolean {
|