@finos/legend-application-studio 28.19.50 → 28.19.52

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.
Files changed (42) hide show
  1. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  2. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +5 -1
  3. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
  4. package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.d.ts +23 -0
  5. package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.d.ts.map +1 -0
  6. package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.js +197 -0
  7. package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.js.map +1 -0
  8. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
  9. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +53 -10
  10. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
  11. package/lib/index.css +2 -2
  12. package/lib/index.css.map +1 -1
  13. package/lib/package.json +1 -1
  14. package/lib/stores/editor/editor-state/ExternalFormatState.d.ts +2 -1
  15. package/lib/stores/editor/editor-state/ExternalFormatState.d.ts.map +1 -1
  16. package/lib/stores/editor/editor-state/ExternalFormatState.js +1 -0
  17. package/lib/stores/editor/editor-state/ExternalFormatState.js.map +1 -1
  18. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +30 -1
  19. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
  20. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +195 -1
  21. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
  22. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +1 -0
  23. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
  24. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +6 -2
  25. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
  26. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.d.ts.map +1 -1
  27. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +13 -5
  28. package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -1
  29. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +6 -1
  30. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
  31. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +31 -1
  32. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
  33. package/package.json +10 -10
  34. package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +9 -0
  35. package/src/components/editor/editor-group/data-editor/RelationElementsDataEditor.tsx +567 -0
  36. package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +188 -26
  37. package/src/stores/editor/editor-state/ExternalFormatState.ts +1 -0
  38. package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +233 -0
  39. package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +7 -0
  40. package/src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts +24 -5
  41. package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +41 -0
  42. package/tsconfig.json +1 -0
@@ -34,6 +34,8 @@ import {
34
34
  type DataProductDiagram,
35
35
  type DataProductElementScope,
36
36
  observe_APG,
37
+ observe_Expertise,
38
+ type Expertise,
37
39
  } from '@finos/legend-graph';
38
40
  import { addUniqueEntry, deleteEntry, swapEntry } from '@finos/legend-shared';
39
41
  import { action } from 'mobx';
@@ -178,6 +180,45 @@ export const dataProduct_deleteAccessPointGroup = action(
178
180
  },
179
181
  );
180
182
 
183
+ export const dataProduct_addExpertise = action(
184
+ (product: DataProduct, expertise: Expertise) => {
185
+ const observedExpertise = observe_Expertise(expertise);
186
+ if (!product.expertise) {
187
+ product.expertise = [observedExpertise];
188
+ } else {
189
+ addUniqueEntry(product.expertise, observedExpertise);
190
+ }
191
+ },
192
+ );
193
+
194
+ export const dataProduct_deleteExpertise = action(
195
+ (product: DataProduct, expertise: Expertise) => {
196
+ if (product.expertise) {
197
+ deleteEntry(product.expertise, expertise);
198
+ }
199
+ },
200
+ );
201
+
202
+ export const expertise_setDescription = action(
203
+ (expertise: Expertise, desc: string) => {
204
+ expertise.description = desc;
205
+ },
206
+ );
207
+
208
+ export const expertise_addId = action((expertise: Expertise, id: string) => {
209
+ if (expertise.expertIds) {
210
+ addUniqueEntry(expertise.expertIds, id);
211
+ } else {
212
+ expertise.expertIds = [id];
213
+ }
214
+ });
215
+
216
+ export const expertise_deleteId = action((expertise: Expertise, id: string) => {
217
+ if (expertise.expertIds) {
218
+ deleteEntry(expertise.expertIds, id);
219
+ }
220
+ });
221
+
181
222
  export const dataProduct_swapAccessPointGroups = action(
182
223
  (
183
224
  product: DataProduct,
package/tsconfig.json CHANGED
@@ -252,6 +252,7 @@
252
252
  "./src/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx",
253
253
  "./src/components/editor/editor-group/data-editor/DataElementEditor.tsx",
254
254
  "./src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx",
255
+ "./src/components/editor/editor-group/data-editor/RelationElementsDataEditor.tsx",
255
256
  "./src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx",
256
257
  "./src/components/editor/editor-group/dataProduct/DataProductEditor.tsx",
257
258
  "./src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx",