@finos/legend-application-studio 28.13.12 → 28.13.14
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__/LegendStudioEvent.d.ts +3 -0
- package/lib/__lib__/LegendStudioEvent.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioEvent.js +4 -2
- package/lib/__lib__/LegendStudioEvent.js.map +1 -1
- package/lib/__lib__/LegendStudioNavigation.d.ts +7 -0
- package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioNavigation.js +2 -0
- package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.d.ts +10 -0
- package/lib/__lib__/LegendStudioTelemetryHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioTelemetryHelper.js +10 -0
- package/lib/__lib__/LegendStudioTelemetryHelper.js.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioWebApplication.js +7 -1
- package/lib/components/LegendStudioWebApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +23 -14
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +3 -2
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +4 -3
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js +6 -13
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/{DEPRECATED__MappingTestEditor.d.ts → legacy/DEPRECATED__MappingTestEditor.d.ts} +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/mapping-editor/{DEPRECATED__MappingTestEditor.js → legacy/DEPRECATED__MappingTestEditor.js} +9 -9
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js.map +1 -0
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.d.ts +24 -0
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.d.ts.map +1 -0
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js +42 -0
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js.map +1 -0
- package/lib/components/lazy-text-editor/LazyTextEditor.d.ts +18 -0
- package/lib/components/lazy-text-editor/LazyTextEditor.d.ts.map +1 -0
- package/lib/components/lazy-text-editor/LazyTextEditor.js +170 -0
- package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -0
- package/lib/components/workspace-setup/WorkspaceSetup.js +6 -6
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/ShowcaseManagerState.d.ts +3 -1
- package/lib/stores/ShowcaseManagerState.d.ts.map +1 -1
- package/lib/stores/ShowcaseManagerState.js +29 -8
- package/lib/stores/ShowcaseManagerState.js.map +1 -1
- package/lib/stores/editor/EditorConfig.d.ts +2 -1
- package/lib/stores/editor/EditorConfig.d.ts.map +1 -1
- package/lib/stores/editor/EditorConfig.js +1 -0
- package/lib/stores/editor/EditorConfig.js.map +1 -1
- package/lib/stores/editor/EditorGraphState.d.ts +1 -0
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +17 -0
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +4 -0
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +62 -5
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts +6 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.js +6 -1
- package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
- package/lib/stores/editor/GraphEditorMode.d.ts +6 -1
- package/lib/stores/editor/GraphEditorMode.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditorMode.js +3 -0
- package/lib/stores/editor/GraphEditorMode.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +6 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +24 -5
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +9 -9
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/{DEPRECATED__MappingTestState.d.ts → legacy/DEPRECATED__MappingTestState.d.ts} +12 -12
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/DEPRECATED__MappingTestState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/{DEPRECATED__MappingTestState.js → legacy/DEPRECATED__MappingTestState.js} +9 -9
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/DEPRECATED__MappingTestState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.d.ts +72 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.js +281 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.js.map +1 -0
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts +5 -5
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -1
- package/lib/stores/lazy-text-editor/LazyTextEditorStore.d.ts +30 -0
- package/lib/stores/lazy-text-editor/LazyTextEditorStore.d.ts.map +1 -0
- package/lib/stores/lazy-text-editor/LazyTextEditorStore.js +66 -0
- package/lib/stores/lazy-text-editor/LazyTextEditorStore.js.map +1 -0
- package/lib/stores/showcase/ShowcaseViewerStore.d.ts.map +1 -1
- package/lib/stores/showcase/ShowcaseViewerStore.js +3 -0
- package/lib/stores/showcase/ShowcaseViewerStore.js.map +1 -1
- package/package.json +11 -11
- package/src/__lib__/LegendStudioEvent.ts +4 -2
- package/src/__lib__/LegendStudioNavigation.ts +8 -0
- package/src/__lib__/LegendStudioTelemetryHelper.ts +32 -0
- package/src/components/LegendStudioWebApplication.tsx +13 -1
- package/src/components/editor/ActivityBar.tsx +118 -111
- package/src/components/editor/editor-group/GrammarTextEditor.tsx +6 -3
- package/src/components/editor/editor-group/mapping-editor/MappingEditor.tsx +9 -2
- package/src/components/editor/editor-group/mapping-editor/MappingTestsExplorer.tsx +16 -26
- package/src/components/editor/editor-group/mapping-editor/{DEPRECATED__MappingTestEditor.tsx → legacy/DEPRECATED__MappingTestEditor.tsx} +9 -9
- package/src/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.tsx +156 -0
- package/src/components/lazy-text-editor/LazyTextEditor.tsx +458 -0
- package/src/components/workspace-setup/WorkspaceSetup.tsx +6 -6
- package/src/index.ts +1 -1
- package/src/stores/ShowcaseManagerState.ts +41 -11
- package/src/stores/editor/EditorConfig.ts +1 -0
- package/src/stores/editor/EditorGraphState.ts +25 -0
- package/src/stores/editor/EditorStore.ts +108 -7
- package/src/stores/editor/GraphEditGrammarModeState.ts +14 -2
- package/src/stores/editor/GraphEditorMode.ts +9 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +37 -10
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +14 -14
- package/src/stores/editor/editor-state/element-editor-state/mapping/{DEPRECATED__MappingTestState.ts → legacy/DEPRECATED__MappingTestState.ts} +23 -22
- package/src/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.ts +383 -0
- package/src/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.ts +8 -8
- package/src/stores/lazy-text-editor/LazyTextEditorStore.ts +99 -0
- package/src/stores/showcase/ShowcaseViewerStore.ts +6 -0
- package/tsconfig.json +6 -2
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map +0 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js.map +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts.map +0 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +0 -1
@@ -0,0 +1,383 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import {
|
18
|
+
type DEPRECATED__MappingTest,
|
19
|
+
type DEPRECATED__InputData,
|
20
|
+
type Mapping,
|
21
|
+
FlatDataInputData,
|
22
|
+
MappingTestSuite,
|
23
|
+
MappingTest,
|
24
|
+
EqualToJson,
|
25
|
+
StoreTestData,
|
26
|
+
DEPRECATED__ObjectInputData,
|
27
|
+
PackageableElementExplicitReference,
|
28
|
+
ModelStore,
|
29
|
+
ModelStoreData,
|
30
|
+
ModelEmbeddedData,
|
31
|
+
ExternalFormatData,
|
32
|
+
ObjectInputType,
|
33
|
+
DEPRECATED__ExpectedOutputMappingTestAssert,
|
34
|
+
RelationalInputData,
|
35
|
+
} from '@finos/legend-graph';
|
36
|
+
import type { EditorStore } from '../../../../EditorStore.js';
|
37
|
+
import type { MappingEditorState } from '../MappingEditorState.js';
|
38
|
+
import {
|
39
|
+
ContentType,
|
40
|
+
guaranteeNonNullable,
|
41
|
+
uniq,
|
42
|
+
type GeneratorFn,
|
43
|
+
guaranteeType,
|
44
|
+
ActionState,
|
45
|
+
assertErrorThrown,
|
46
|
+
} from '@finos/legend-shared';
|
47
|
+
import { action, computed, flow, makeObservable, observable } from 'mobx';
|
48
|
+
import {
|
49
|
+
mapping_addDEPRECATEDTest,
|
50
|
+
mapping_addTestSuite,
|
51
|
+
mapping_deleteTest,
|
52
|
+
mapping_deleteTestSuite,
|
53
|
+
} from '../../../../../graph-modifier/DSL_Mapping_GraphModifierHelper.js';
|
54
|
+
|
55
|
+
enum UNSUPPORTED_REASON {
|
56
|
+
FLAT_DATA = 'FLAT_DATA',
|
57
|
+
MULTI_INPUT_DATA = 'MULTI_INPUT_DATA',
|
58
|
+
RELATIONAL = 'RELATIONAL',
|
59
|
+
}
|
60
|
+
|
61
|
+
class SupportedMigrationTestState {
|
62
|
+
test: DEPRECATED__MappingTest;
|
63
|
+
inputData: DEPRECATED__InputData;
|
64
|
+
|
65
|
+
constructor(test: DEPRECATED__MappingTest, inputData: DEPRECATED__InputData) {
|
66
|
+
this.test = test;
|
67
|
+
this.inputData = inputData;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
export enum MIGRATE_PHASE {
|
71
|
+
OVERVIEW = 'OVERVIEW',
|
72
|
+
CONFIRM = 'CONFIRM',
|
73
|
+
}
|
74
|
+
export class MappingTestConfirmationState {
|
75
|
+
editorStore: EditorStore;
|
76
|
+
migrationState: MappingTestMigrationState;
|
77
|
+
before: string | undefined;
|
78
|
+
after: string | undefined;
|
79
|
+
// diffs
|
80
|
+
suitesToAdd: MappingTestSuite[];
|
81
|
+
testsToDelete: DEPRECATED__MappingTest[];
|
82
|
+
migrated = false;
|
83
|
+
calculatingDiffs = ActionState.create();
|
84
|
+
|
85
|
+
constructor(migrationState: MappingTestMigrationState) {
|
86
|
+
makeObservable(this, {
|
87
|
+
init: flow,
|
88
|
+
migrate: action,
|
89
|
+
reverse: action,
|
90
|
+
before: observable,
|
91
|
+
after: observable,
|
92
|
+
suitesToAdd: observable,
|
93
|
+
testsToDelete: observable,
|
94
|
+
});
|
95
|
+
this.migrationState = migrationState;
|
96
|
+
this.editorStore = migrationState.editorStore;
|
97
|
+
this.suitesToAdd = migrationState.migrate();
|
98
|
+
this.testsToDelete = this.migrationState.migrateableTests;
|
99
|
+
this.init();
|
100
|
+
}
|
101
|
+
|
102
|
+
*init(): GeneratorFn<void> {
|
103
|
+
try {
|
104
|
+
this.calculatingDiffs.inProgress();
|
105
|
+
// before
|
106
|
+
const beforeEntity =
|
107
|
+
this.migrationState.editorStore.graphManagerState.graphManager.elementToEntity(
|
108
|
+
this.migrationState.mapping,
|
109
|
+
);
|
110
|
+
this.migrate();
|
111
|
+
// after
|
112
|
+
const after =
|
113
|
+
this.migrationState.editorStore.graphManagerState.graphManager.elementToEntity(
|
114
|
+
this.migrationState.mapping,
|
115
|
+
);
|
116
|
+
const beforeP =
|
117
|
+
this.editorStore.graphManagerState.graphManager.entitiesToPureCode([
|
118
|
+
beforeEntity,
|
119
|
+
]);
|
120
|
+
const afterP =
|
121
|
+
this.editorStore.graphManagerState.graphManager.entitiesToPureCode([
|
122
|
+
after,
|
123
|
+
]);
|
124
|
+
const [beforeGrammar, afterGrammar] = (yield Promise.all([
|
125
|
+
beforeP,
|
126
|
+
afterP,
|
127
|
+
])) as [string, string];
|
128
|
+
|
129
|
+
// done
|
130
|
+
this.before = beforeGrammar;
|
131
|
+
this.after = afterGrammar;
|
132
|
+
this.reverse();
|
133
|
+
} catch (error) {
|
134
|
+
assertErrorThrown(error);
|
135
|
+
this.editorStore.applicationStore.notificationService.notifyError(
|
136
|
+
`Error calcuating mapping diffs: ${error.message}`,
|
137
|
+
);
|
138
|
+
} finally {
|
139
|
+
this.calculatingDiffs.complete();
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
migrate(): void {
|
144
|
+
// add
|
145
|
+
this.suitesToAdd.forEach((suite) =>
|
146
|
+
mapping_addTestSuite(
|
147
|
+
this.migrationState.mapping,
|
148
|
+
suite,
|
149
|
+
this.editorStore.changeDetectionState.observerContext,
|
150
|
+
),
|
151
|
+
);
|
152
|
+
// delete
|
153
|
+
this.testsToDelete.forEach((test) =>
|
154
|
+
mapping_deleteTest(this.migrationState.mapping, test),
|
155
|
+
);
|
156
|
+
this.migrated = true;
|
157
|
+
}
|
158
|
+
|
159
|
+
reverse(): void {
|
160
|
+
// add
|
161
|
+
this.suitesToAdd.forEach((suite) =>
|
162
|
+
mapping_deleteTestSuite(this.migrationState.mapping, suite),
|
163
|
+
);
|
164
|
+
// delete
|
165
|
+
this.testsToDelete.forEach((test) =>
|
166
|
+
mapping_addDEPRECATEDTest(
|
167
|
+
this.migrationState.mapping,
|
168
|
+
test,
|
169
|
+
this.editorStore.changeDetectionState.observerContext,
|
170
|
+
),
|
171
|
+
);
|
172
|
+
this.migrated = false;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
export class MappingTestMigrationState {
|
177
|
+
readonly editorStore: EditorStore;
|
178
|
+
readonly mappingEditorState: MappingEditorState;
|
179
|
+
unsupported: Map<UNSUPPORTED_REASON, DEPRECATED__MappingTest[]>;
|
180
|
+
queryToSuiteMap: Map<string, SupportedMigrationTestState[]>;
|
181
|
+
suitesAdded: MappingTestSuite[] | undefined;
|
182
|
+
|
183
|
+
// phases
|
184
|
+
steps: [MIGRATE_PHASE, MIGRATE_PHASE] = [
|
185
|
+
MIGRATE_PHASE.OVERVIEW,
|
186
|
+
MIGRATE_PHASE.CONFIRM,
|
187
|
+
];
|
188
|
+
currentStep: MIGRATE_PHASE = MIGRATE_PHASE.OVERVIEW;
|
189
|
+
confirmationState: MappingTestConfirmationState | undefined;
|
190
|
+
|
191
|
+
constructor(
|
192
|
+
editorStore: EditorStore,
|
193
|
+
mappingEditorState: MappingEditorState,
|
194
|
+
unsupported: Map<UNSUPPORTED_REASON, DEPRECATED__MappingTest[]>,
|
195
|
+
supported: Map<string, SupportedMigrationTestState[]>,
|
196
|
+
) {
|
197
|
+
makeObservable(this, {
|
198
|
+
suitesAdded: observable,
|
199
|
+
currentStep: observable,
|
200
|
+
confirmationState: observable,
|
201
|
+
handleNext: action,
|
202
|
+
activeStep: computed,
|
203
|
+
disableBack: computed,
|
204
|
+
disableNext: computed,
|
205
|
+
handleBack: action,
|
206
|
+
});
|
207
|
+
this.editorStore = editorStore;
|
208
|
+
this.mappingEditorState = mappingEditorState;
|
209
|
+
this.unsupported = unsupported;
|
210
|
+
this.queryToSuiteMap = supported;
|
211
|
+
}
|
212
|
+
|
213
|
+
get activeStep(): number {
|
214
|
+
return this.steps.findIndex((e) => e === this.currentStep);
|
215
|
+
}
|
216
|
+
|
217
|
+
get disableBack(): boolean {
|
218
|
+
if (this.currentStep === MIGRATE_PHASE.OVERVIEW) {
|
219
|
+
return true;
|
220
|
+
}
|
221
|
+
return false;
|
222
|
+
}
|
223
|
+
|
224
|
+
get disableNext(): boolean {
|
225
|
+
return !this.migrateableTests.length;
|
226
|
+
}
|
227
|
+
|
228
|
+
get nextText(): string {
|
229
|
+
if (this.currentStep === MIGRATE_PHASE.CONFIRM) {
|
230
|
+
return 'Confirm';
|
231
|
+
}
|
232
|
+
|
233
|
+
return 'Next';
|
234
|
+
}
|
235
|
+
|
236
|
+
handleBack(): void {
|
237
|
+
if (this.currentStep === MIGRATE_PHASE.CONFIRM) {
|
238
|
+
this.confirmationState?.reverse();
|
239
|
+
this.confirmationState = undefined;
|
240
|
+
this.currentStep = MIGRATE_PHASE.OVERVIEW;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
handleNext(): void {
|
245
|
+
if (this.currentStep === MIGRATE_PHASE.OVERVIEW) {
|
246
|
+
this.confirmationState = new MappingTestConfirmationState(this);
|
247
|
+
this.currentStep = MIGRATE_PHASE.CONFIRM;
|
248
|
+
} else {
|
249
|
+
this.confirmationState?.migrate();
|
250
|
+
this.mappingEditorState.closeMigrationTool();
|
251
|
+
this.mappingEditorState.DEPRECATED_mappingTestStates =
|
252
|
+
this.mappingEditorState.buildLegacyTestsStates();
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
static build(
|
257
|
+
editorStore: EditorStore,
|
258
|
+
mappingEditorState: MappingEditorState,
|
259
|
+
): MappingTestMigrationState {
|
260
|
+
const unsupportedTests = new Map<
|
261
|
+
UNSUPPORTED_REASON,
|
262
|
+
DEPRECATED__MappingTest[]
|
263
|
+
>();
|
264
|
+
const supported = new Map<string, SupportedMigrationTestState[]>();
|
265
|
+
mappingEditorState.mapping.test.forEach((test) => {
|
266
|
+
let testUnsupportedReason: UNSUPPORTED_REASON | undefined = undefined;
|
267
|
+
const nullableInputData = test.inputData[0];
|
268
|
+
if (test.inputData.length !== 1 || !nullableInputData) {
|
269
|
+
testUnsupportedReason = UNSUPPORTED_REASON.MULTI_INPUT_DATA;
|
270
|
+
} else if (nullableInputData instanceof FlatDataInputData) {
|
271
|
+
testUnsupportedReason = UNSUPPORTED_REASON.FLAT_DATA;
|
272
|
+
} else if (nullableInputData instanceof RelationalInputData) {
|
273
|
+
testUnsupportedReason = UNSUPPORTED_REASON.FLAT_DATA;
|
274
|
+
}
|
275
|
+
if (testUnsupportedReason) {
|
276
|
+
const unsupportedTest =
|
277
|
+
unsupportedTests.get(testUnsupportedReason) ?? [];
|
278
|
+
unsupportedTest.push(test);
|
279
|
+
unsupportedTests.set(testUnsupportedReason, unsupportedTest);
|
280
|
+
return;
|
281
|
+
}
|
282
|
+
const inputData = guaranteeNonNullable(nullableInputData);
|
283
|
+
const testQuery = test.query;
|
284
|
+
// we will use hash code to see if the same query exists
|
285
|
+
const suites = supported.get(testQuery.hashCode) ?? [];
|
286
|
+
suites.push(new SupportedMigrationTestState(test, inputData));
|
287
|
+
supported.set(testQuery.hashCode, suites);
|
288
|
+
});
|
289
|
+
|
290
|
+
return new MappingTestMigrationState(
|
291
|
+
editorStore,
|
292
|
+
mappingEditorState,
|
293
|
+
unsupportedTests,
|
294
|
+
supported,
|
295
|
+
);
|
296
|
+
}
|
297
|
+
|
298
|
+
migrate(): MappingTestSuite[] {
|
299
|
+
const suites: MappingTestSuite[] = [];
|
300
|
+
this.suiteValuesToMigrate.forEach((testsWithQuery) => {
|
301
|
+
if (!testsWithQuery.length) {
|
302
|
+
return;
|
303
|
+
}
|
304
|
+
const test = guaranteeNonNullable(testsWithQuery[0]);
|
305
|
+
const query = test.test.query;
|
306
|
+
const suite = new MappingTestSuite();
|
307
|
+
suite.func = query;
|
308
|
+
testsWithQuery.forEach((legacyTestState) => {
|
309
|
+
const legacyTest = legacyTestState.test;
|
310
|
+
const legacyAssertion = guaranteeType(
|
311
|
+
legacyTest.assert,
|
312
|
+
DEPRECATED__ExpectedOutputMappingTestAssert,
|
313
|
+
);
|
314
|
+
const mappingTest = new MappingTest();
|
315
|
+
const assertion = new EqualToJson();
|
316
|
+
mappingTest.id = legacyTest.name;
|
317
|
+
assertion.id = legacyTest.name;
|
318
|
+
mappingTest.assertions = [assertion];
|
319
|
+
assertion.parentTest = mappingTest;
|
320
|
+
assertion.expected = new ExternalFormatData();
|
321
|
+
assertion.expected.contentType = ContentType.APPLICATION_JSON;
|
322
|
+
assertion.expected.data = legacyAssertion.expectedOutput;
|
323
|
+
const inputData = legacyTestState.inputData;
|
324
|
+
const storeTestData = new StoreTestData();
|
325
|
+
if (inputData instanceof DEPRECATED__ObjectInputData) {
|
326
|
+
storeTestData.store = PackageableElementExplicitReference.create(
|
327
|
+
ModelStore.INSTANCE,
|
328
|
+
);
|
329
|
+
const modelStoreData = new ModelStoreData();
|
330
|
+
const modelEmbeddedData = new ModelEmbeddedData();
|
331
|
+
modelEmbeddedData.model = PackageableElementExplicitReference.create(
|
332
|
+
inputData.sourceClass.value,
|
333
|
+
);
|
334
|
+
const externalFormatData = new ExternalFormatData();
|
335
|
+
if (inputData.inputType === ObjectInputType.XML) {
|
336
|
+
externalFormatData.contentType = ContentType.APPLICATION_XML;
|
337
|
+
} else {
|
338
|
+
externalFormatData.contentType = ContentType.APPLICATION_JSON;
|
339
|
+
}
|
340
|
+
externalFormatData.data = inputData.data;
|
341
|
+
modelEmbeddedData.data = externalFormatData;
|
342
|
+
modelStoreData.modelData = [modelEmbeddedData];
|
343
|
+
storeTestData.data = modelStoreData;
|
344
|
+
} else if (inputData instanceof RelationalInputData) {
|
345
|
+
storeTestData.store = PackageableElementExplicitReference.create(
|
346
|
+
inputData.database.value,
|
347
|
+
);
|
348
|
+
}
|
349
|
+
mappingTest.storeTestData = [storeTestData];
|
350
|
+
mappingTest.__parent = suite;
|
351
|
+
suite.tests.push(mappingTest);
|
352
|
+
});
|
353
|
+
// calculate ID
|
354
|
+
let id = 'suite';
|
355
|
+
if (suite.tests.length === 1) {
|
356
|
+
id = `${guaranteeNonNullable(suite.tests[0]).id}_${id}`;
|
357
|
+
} else {
|
358
|
+
id = `suite_${suites.length}`;
|
359
|
+
}
|
360
|
+
suite.id = id;
|
361
|
+
suites.push(suite);
|
362
|
+
});
|
363
|
+
return suites;
|
364
|
+
}
|
365
|
+
|
366
|
+
get suiteValuesToMigrate(): SupportedMigrationTestState[][] {
|
367
|
+
return Array.from(this.queryToSuiteMap.values());
|
368
|
+
}
|
369
|
+
|
370
|
+
get unSupportedTestsToMigrate(): DEPRECATED__MappingTest[] {
|
371
|
+
return uniq(Array.from(this.unsupported.values()).flat());
|
372
|
+
}
|
373
|
+
|
374
|
+
get mapping(): Mapping {
|
375
|
+
return this.mappingEditorState.mapping;
|
376
|
+
}
|
377
|
+
|
378
|
+
get migrateableTests(): DEPRECATED__MappingTest[] {
|
379
|
+
return this.mapping.test.filter(
|
380
|
+
(t) => !this.unSupportedTestsToMigrate.includes(t),
|
381
|
+
);
|
382
|
+
}
|
383
|
+
}
|
@@ -18,15 +18,15 @@ import {
|
|
18
18
|
type Enum,
|
19
19
|
type EnumerationMapping,
|
20
20
|
type EnumValueMapping,
|
21
|
-
type
|
21
|
+
type DEPRECATED__InputData,
|
22
22
|
type InstanceSetImplementation,
|
23
23
|
type Mapping,
|
24
24
|
type DEPRECATED__MappingTest,
|
25
|
-
type
|
25
|
+
type DEPRECATED__MappingTestAssert,
|
26
26
|
type PropertyMapping,
|
27
27
|
type RawLambda,
|
28
28
|
type SetImplementation,
|
29
|
-
type
|
29
|
+
type DEPRECATED__ExpectedOutputMappingTestAssert,
|
30
30
|
type OperationSetImplementation,
|
31
31
|
type OperationType,
|
32
32
|
type SetImplementationContainer,
|
@@ -44,7 +44,7 @@ import {
|
|
44
44
|
type Class,
|
45
45
|
type PureInstanceSetImplementation,
|
46
46
|
type PurePropertyMapping,
|
47
|
-
type
|
47
|
+
type DEPRECATED__ObjectInputData,
|
48
48
|
type ObserverContext,
|
49
49
|
type Type,
|
50
50
|
PackageableElementExplicitReference,
|
@@ -331,7 +331,7 @@ export const mappingTest_setName = action(
|
|
331
331
|
export const mappingTest_setInputData = action(
|
332
332
|
(
|
333
333
|
test: DEPRECATED__MappingTest,
|
334
|
-
value:
|
334
|
+
value: DEPRECATED__InputData[],
|
335
335
|
observeContext: ObserverContext,
|
336
336
|
): void => {
|
337
337
|
test.inputData = value.map((i) => observe_InputData(i, observeContext));
|
@@ -347,14 +347,14 @@ export const DEPRECATED_mappingTest_setQuery = action(
|
|
347
347
|
export const mappingTest_setAssert = action(
|
348
348
|
(
|
349
349
|
test: DEPRECATED__MappingTest,
|
350
|
-
value:
|
350
|
+
value: DEPRECATED__MappingTestAssert,
|
351
351
|
observerContext: ObserverContext,
|
352
352
|
): void => {
|
353
353
|
test.assert = observe_MappingTestAssert(value, observerContext);
|
354
354
|
},
|
355
355
|
);
|
356
356
|
export const expectedOutputMappingTestAssert_setExpectedOutput = action(
|
357
|
-
(e:
|
357
|
+
(e: DEPRECATED__ExpectedOutputMappingTestAssert, val: string): void => {
|
358
358
|
e.expectedOutput = val;
|
359
359
|
},
|
360
360
|
);
|
@@ -471,7 +471,7 @@ export const setImpl_nominateRoot = action(
|
|
471
471
|
// --------------------------------------------- M2M -------------------------------------
|
472
472
|
|
473
473
|
export const objectInputData_setData = action(
|
474
|
-
(o:
|
474
|
+
(o: DEPRECATED__ObjectInputData, val: string): void => {
|
475
475
|
o.data = val;
|
476
476
|
},
|
477
477
|
);
|
@@ -0,0 +1,99 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { flow, flowResult, makeObservable } from 'mobx';
|
18
|
+
import type { EditorStore } from '../editor/EditorStore.js';
|
19
|
+
import { EDITOR_MODE } from '../editor/EditorConfig.js';
|
20
|
+
import type { WorkspaceType } from '@finos/legend-server-sdlc';
|
21
|
+
import type { GeneratorFn } from '@finos/legend-shared';
|
22
|
+
import {
|
23
|
+
ActionAlertActionType,
|
24
|
+
ActionAlertType,
|
25
|
+
} from '@finos/legend-application';
|
26
|
+
import { generateEditorRoute } from '../../__lib__/LegendStudioNavigation.js';
|
27
|
+
import { GraphEditGrammarModeState } from '../editor/GraphEditGrammarModeState.js';
|
28
|
+
|
29
|
+
export class LazyTextEditorStore {
|
30
|
+
readonly editorStore: EditorStore;
|
31
|
+
|
32
|
+
constructor(editorStore: EditorStore) {
|
33
|
+
this.editorStore = editorStore;
|
34
|
+
makeObservable(this, {
|
35
|
+
init: flow,
|
36
|
+
});
|
37
|
+
}
|
38
|
+
|
39
|
+
*init(
|
40
|
+
projectId: string,
|
41
|
+
patchReleaseVersionId: string | undefined,
|
42
|
+
workspaceId: string,
|
43
|
+
workspaceType: WorkspaceType,
|
44
|
+
): GeneratorFn<void> {
|
45
|
+
this.editorStore.setMode(EDITOR_MODE.LAZY_TEXT_EDITOR);
|
46
|
+
yield flowResult(
|
47
|
+
this.editorStore.initialize(
|
48
|
+
projectId,
|
49
|
+
patchReleaseVersionId,
|
50
|
+
workspaceId,
|
51
|
+
workspaceType,
|
52
|
+
),
|
53
|
+
);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
export class GraphEditLazyGrammarModeState extends GraphEditGrammarModeState {
|
58
|
+
override get disableLeaveMode(): boolean {
|
59
|
+
return true;
|
60
|
+
}
|
61
|
+
|
62
|
+
override get headerLabel(): string {
|
63
|
+
return 'Strict Text Mode (BETA)';
|
64
|
+
}
|
65
|
+
|
66
|
+
override *onLeave(): GeneratorFn<void> {
|
67
|
+
this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
|
68
|
+
this.editorStore.applicationStore.alertService.setActionAlertInfo({
|
69
|
+
message: `Form Mode Not Supported in Text Studio`,
|
70
|
+
prompt: `Text Studio only provides a light weight editor for editing studio projects to improve performance. If you want to do more actions, please open full edit mode`,
|
71
|
+
type: ActionAlertType.CAUTION,
|
72
|
+
actions: [
|
73
|
+
{
|
74
|
+
label: 'Open Studio Full Edit Mode',
|
75
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
76
|
+
default: true,
|
77
|
+
handler: () => {
|
78
|
+
this.editorStore.applicationStore.navigationService.navigator.visitAddress(
|
79
|
+
this.editorStore.applicationStore.navigationService.navigator.generateAddress(
|
80
|
+
generateEditorRoute(
|
81
|
+
this.editorStore.sdlcState.activeProject.projectId,
|
82
|
+
this.editorStore.sdlcState.activePatch?.patchReleaseVersionId
|
83
|
+
.id,
|
84
|
+
this.editorStore.sdlcState.activeWorkspace.workspaceId,
|
85
|
+
this.editorStore.sdlcState.activeWorkspace.workspaceType,
|
86
|
+
),
|
87
|
+
),
|
88
|
+
);
|
89
|
+
},
|
90
|
+
},
|
91
|
+
{
|
92
|
+
label: 'Cancel',
|
93
|
+
type: ActionAlertActionType.PROCEED,
|
94
|
+
default: true,
|
95
|
+
},
|
96
|
+
],
|
97
|
+
});
|
98
|
+
}
|
99
|
+
}
|
@@ -96,6 +96,12 @@ export class ShowcaseViewerStore {
|
|
96
96
|
this._showcase = (yield this.client.getShowcase(
|
97
97
|
showcasePath,
|
98
98
|
)) as Showcase;
|
99
|
+
LegendStudioTelemetryHelper.logEvent_ShowcaseManagerShowcaseProjectLaunch(
|
100
|
+
this.editorStore.applicationStore.telemetryService,
|
101
|
+
{
|
102
|
+
showcasePath: showcasePath,
|
103
|
+
},
|
104
|
+
);
|
99
105
|
// initialize graph manager
|
100
106
|
yield this.editorStore.graphManagerState.graphManager.initialize(
|
101
107
|
{
|
package/tsconfig.json
CHANGED
@@ -108,7 +108,6 @@
|
|
108
108
|
"./src/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.ts",
|
109
109
|
"./src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts",
|
110
110
|
"./src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts",
|
111
|
-
"./src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts",
|
112
111
|
"./src/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts",
|
113
112
|
"./src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts",
|
114
113
|
"./src/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.ts",
|
@@ -118,6 +117,8 @@
|
|
118
117
|
"./src/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.ts",
|
119
118
|
"./src/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts",
|
120
119
|
"./src/stores/editor/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts",
|
120
|
+
"./src/stores/editor/editor-state/element-editor-state/mapping/legacy/DEPRECATED__MappingTestState.ts",
|
121
|
+
"./src/stores/editor/editor-state/element-editor-state/mapping/legacy/MappingTestMigrationState.ts",
|
121
122
|
"./src/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts",
|
122
123
|
"./src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts",
|
123
124
|
"./src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestingHelper.ts",
|
@@ -173,6 +174,7 @@
|
|
173
174
|
"./src/stores/graph-modifier/STO_FlatData_GraphModifierHelper.ts",
|
174
175
|
"./src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts",
|
175
176
|
"./src/stores/graph-modifier/Testable_GraphModifierHelper.ts",
|
177
|
+
"./src/stores/lazy-text-editor/LazyTextEditorStore.ts",
|
176
178
|
"./src/stores/project-view/ProjectViewerEditorMode.ts",
|
177
179
|
"./src/stores/project-view/ProjectViewerStore.ts",
|
178
180
|
"./src/stores/showcase/ShowcaseViewerEditorMode.ts",
|
@@ -233,7 +235,6 @@
|
|
233
235
|
"./src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx",
|
234
236
|
"./src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx",
|
235
237
|
"./src/components/editor/editor-group/mapping-editor/ClassMappingEditor.tsx",
|
236
|
-
"./src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx",
|
237
238
|
"./src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx",
|
238
239
|
"./src/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.tsx",
|
239
240
|
"./src/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.tsx",
|
@@ -250,6 +251,8 @@
|
|
250
251
|
"./src/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.tsx",
|
251
252
|
"./src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx",
|
252
253
|
"./src/components/editor/editor-group/mapping-editor/TypeTree.tsx",
|
254
|
+
"./src/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.tsx",
|
255
|
+
"./src/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.tsx",
|
253
256
|
"./src/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.tsx",
|
254
257
|
"./src/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.tsx",
|
255
258
|
"./src/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.tsx",
|
@@ -294,6 +297,7 @@
|
|
294
297
|
"./src/components/editor/side-bar/testable/GlobalTestRunner.tsx",
|
295
298
|
"./src/components/extensions/Core_LegendStudioApplicationPlugin.tsx",
|
296
299
|
"./src/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx",
|
300
|
+
"./src/components/lazy-text-editor/LazyTextEditor.tsx",
|
297
301
|
"./src/components/project-view/ProjectViewer.tsx",
|
298
302
|
"./src/components/project-view/ProjectViewerStoreProvider.tsx",
|
299
303
|
"./src/components/showcase/ShowcaseViewer.tsx",
|
package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DEPRECATED__MappingTestEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EAGjE,+BAA+B,EAC/B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,EACpC,MAAM,qGAAqG,CAAC;AA+T7G,eAAO,MAAM,6CAA6C,WAChD;IACN,cAAc,EAAE,+BAA+B,CAAC;IAChD,UAAU,EAAE,OAAO,CAAC;CACrB;;CAmBF,CAAC;AAEF,eAAO,MAAM,+CAA+C,WAClD;IACN,cAAc,EAAE,iCAAiC,CAAC;IAClD,UAAU,EAAE,OAAO,CAAC;CACrB;;CAkBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iDAAiD,WACpD;IACN,cAAc,EAAE,mCAAmC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;CACrB;;CAoBF,CAAC;AA4CF,eAAO,MAAM,uCAAuC,WAC1C;IAAE,SAAS,EAAE,4BAA4B,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAqGzE,CAAC;AAEF,eAAO,MAAM,qDAAqD,WACxD;IACN,SAAS,EAAE,4BAA4B,CAAC;IACxC,cAAc,EAAE,uCAAuC,CAAC;IACxD,UAAU,EAAE,OAAO,CAAC;CACrB;;CAwEF,CAAC;AAEF,eAAO,MAAM,uCAAuC,WAC1C;IAAE,SAAS,EAAE,4BAA4B,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAezE,CAAC;AAEF,eAAO,MAAM,8BAA8B,WACjC;IAAE,SAAS,EAAE,4BAA4B,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAgDzE,CAAC;AAEF,eAAO,MAAM,6BAA6B,WAChC;IAAE,SAAS,EAAE,4BAA4B,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CA+KzE,CAAC"}
|
package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DEPRECATED__MappingTestEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,4BAA4B,EAC5B,WAAW,EACX,+BAA+B,EAC/B,iCAAiC,EACjC,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,qGAAqG,CAAC;AAC7G,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,qBAAqB,EACrB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,eAAe,EACf,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAEL,aAAa,GACd,MAAM,6CA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AS,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM,IAAI,CAC1C,4BACG,SAAS,CAAC,cAAc;oCACvB,uCAAuC,IAAI,CAC3C,cAAK,SAAS,EAAC,mCAAmC,YAChD,KAAC,YAAY,IACX,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,cAAc,EAC7C,EAAE,EAAE,SAAS,CAAC,uBAAuB,EACrC,QAAQ,EAAE,IAAI,GACd,GACE,CACP,GACA,CACJ,IACG,CACP,IACG,EACN,KAAC,mBAAmB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,IAC3D,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DEPRECATED__MappingTestState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,WAAW,EAmBjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EACL,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,eAAe,EAKpB,+BAA+B,EAC/B,eAAe,EAIf,iBAAiB,EAKjB,mBAAmB,EAanB,KAAK,uBAAuB,EAG7B,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,EACL,iBAAiB,EAGjB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,qBAAa,qBA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