@finos/legend-application-studio 28.19.5 → 28.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts +3 -1
  2. package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
  3. package/lib/__lib__/LegendStudioApplicationNavigationContext.js +3 -0
  4. package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
  5. package/lib/__lib__/LegendStudioTesting.d.ts +2 -1
  6. package/lib/__lib__/LegendStudioTesting.d.ts.map +1 -1
  7. package/lib/__lib__/LegendStudioTesting.js +1 -0
  8. package/lib/__lib__/LegendStudioTesting.js.map +1 -1
  9. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.d.ts +9 -0
  10. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.d.ts.map +1 -1
  11. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js +98 -24
  12. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js.map +1 -1
  13. package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts.map +1 -1
  14. package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js +3 -0
  15. package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js.map +1 -1
  16. package/lib/index.css +2 -2
  17. package/lib/index.css.map +1 -1
  18. package/lib/package.json +1 -1
  19. package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
  20. package/lib/stores/editor/GraphEditFormModeState.js +1 -1
  21. package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
  22. package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
  23. package/lib/stores/editor/GraphEditGrammarModeState.js +3 -1
  24. package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
  25. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
  26. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +5 -3
  27. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
  28. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +8 -1
  29. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
  30. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +27 -1
  31. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
  32. package/package.json +9 -9
  33. package/src/__lib__/LegendStudioApplicationNavigationContext.ts +4 -0
  34. package/src/__lib__/LegendStudioTesting.ts +2 -0
  35. package/src/components/editor/editor-group/dataProduct/DataPoductEditor.tsx +204 -24
  36. package/src/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.tsx +6 -0
  37. package/src/stores/editor/GraphEditFormModeState.ts +1 -0
  38. package/src/stores/editor/GraphEditGrammarModeState.ts +3 -0
  39. package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +12 -3
  40. package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +51 -0
@@ -18,8 +18,12 @@ import {
18
18
  type AccessPoint,
19
19
  type AccessPointGroup,
20
20
  type DataProduct,
21
+ type Email,
21
22
  observe_AccessPoint,
22
23
  observe_AccessPointGroup,
24
+ observe_SupportInfo,
25
+ observe_Email,
26
+ SupportInfo,
23
27
  } from '@finos/legend-graph';
24
28
  import { addUniqueEntry, deleteEntry } from '@finos/legend-shared';
25
29
 
@@ -75,3 +79,50 @@ export const dataProduct_setDescription = action(
75
79
  product.description = description;
76
80
  },
77
81
  );
82
+
83
+ export const dataProduct_setSupportInfoIfAbsent = action(
84
+ (product: DataProduct) => {
85
+ if (!product.supportInfo) {
86
+ product.supportInfo = observe_SupportInfo(new SupportInfo());
87
+ }
88
+ },
89
+ );
90
+
91
+ export const supportInfo_setDocumentationUrl = action(
92
+ (supportInfo: SupportInfo, documentationUrl: string) => {
93
+ supportInfo.documentationUrl = documentationUrl;
94
+ },
95
+ );
96
+
97
+ export const supportInfo_setWebsite = action(
98
+ (supportInfo: SupportInfo, website: string) => {
99
+ supportInfo.website = website;
100
+ },
101
+ );
102
+
103
+ export const supportInfo_setFaqUrl = action(
104
+ (supportInfo: SupportInfo, faqUrl: string) => {
105
+ supportInfo.faqUrl = faqUrl;
106
+ },
107
+ );
108
+
109
+ export const supportInfo_setSupportUrl = action(
110
+ (supportInfo: SupportInfo, supportUrl: string) => {
111
+ supportInfo.supportUrl = supportUrl;
112
+ },
113
+ );
114
+
115
+ export const supportInfo_addEmail = action(
116
+ (supportInfo: SupportInfo, email: Email) => {
117
+ addUniqueEntry(supportInfo.emails, observe_Email(email));
118
+ },
119
+ );
120
+
121
+ export const supportInfo_deleteEmail = action(
122
+ (supportInfo: SupportInfo, email: Email): void => {
123
+ const index = supportInfo.emails.indexOf(email);
124
+ if (index !== -1) {
125
+ supportInfo.emails.splice(index, 1);
126
+ }
127
+ },
128
+ );