@finos/legend-application-studio 28.19.69 → 28.19.71

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 (44) hide show
  1. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts +5 -0
  2. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
  3. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +38 -5
  4. package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
  5. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
  6. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +338 -26
  7. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  8. package/lib/components/editor/side-bar/DevMetadataPanel.d.ts.map +1 -1
  9. package/lib/components/editor/side-bar/DevMetadataPanel.js +150 -32
  10. package/lib/components/editor/side-bar/DevMetadataPanel.js.map +1 -1
  11. package/lib/index.css +2 -2
  12. package/lib/index.css.map +1 -1
  13. package/lib/package.json +2 -1
  14. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  15. package/lib/stores/editor/EditorGraphState.js +7 -1
  16. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  17. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +11 -1
  18. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
  19. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +25 -2
  20. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
  21. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +2 -0
  22. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  23. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +19 -0
  24. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
  25. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.d.ts +16 -1
  26. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.d.ts.map +1 -1
  27. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js +112 -1
  28. package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
  29. package/lib/stores/editor/sidebar-state/dev-metadata/DevMetadataState.d.ts +8 -5
  30. package/lib/stores/editor/sidebar-state/dev-metadata/DevMetadataState.d.ts.map +1 -1
  31. package/lib/stores/editor/sidebar-state/dev-metadata/DevMetadataState.js +18 -28
  32. package/lib/stores/editor/sidebar-state/dev-metadata/DevMetadataState.js.map +1 -1
  33. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +1 -1
  34. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
  35. package/package.json +11 -10
  36. package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +131 -4
  37. package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +599 -53
  38. package/src/components/editor/side-bar/DevMetadataPanel.tsx +613 -73
  39. package/src/stores/editor/EditorGraphState.ts +11 -4
  40. package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +35 -0
  41. package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +26 -0
  42. package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.ts +178 -1
  43. package/src/stores/editor/sidebar-state/dev-metadata/DevMetadataState.ts +28 -39
  44. package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +1 -1
@@ -13,37 +13,35 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ActionState, assertErrorThrown, assertNonEmptyString, assertNonNullable, assertTrue, filterByType, } from '@finos/legend-shared';
16
+ import { ActionState, assertErrorThrown, assertNonNullable, assertTrue, } from '@finos/legend-shared';
17
17
  import { action, flow, makeObservable, observable } from 'mobx';
18
- import { IngestDefinition } from '@finos/legend-graph';
19
- import { generateGAVCoordinates } from '@finos/legend-storage';
18
+ import { MetadataRequestOptions, } from '@finos/legend-graph';
20
19
  export class DevMetadataState {
21
20
  editorStore;
22
21
  result;
22
+ options = new MetadataRequestOptions();
23
23
  pushState = ActionState.create();
24
- did = '';
25
24
  constructor(editorStore) {
26
25
  this.editorStore = editorStore;
27
26
  makeObservable(this, {
28
27
  pushState: observable,
29
- did: observable,
30
- setDid: action,
31
28
  push: flow,
32
- init: action,
29
+ options: observable,
30
+ setOptions: action,
33
31
  });
34
32
  }
35
- setDid(did) {
36
- this.did = did;
33
+ setOptions(options) {
34
+ this.options = options;
37
35
  }
38
- init() {
39
- if (!this.did) {
40
- const ingestDID = this.editorStore.graphManagerState.graph.allElements
41
- .filter(filterByType(IngestDefinition))[0]
42
- ?.appDirDeployment?.appDirId?.toString();
43
- if (ingestDID) {
44
- this.setDid(ingestDID);
45
- }
36
+ get projectGAV() {
37
+ const currentProjectConfiguration = this.editorStore.projectConfigurationEditorState.projectConfiguration;
38
+ if (currentProjectConfiguration) {
39
+ return {
40
+ groupId: currentProjectConfiguration.groupId,
41
+ artifactId: currentProjectConfiguration.artifactId,
42
+ };
46
43
  }
44
+ return undefined;
47
45
  }
48
46
  *push() {
49
47
  try {
@@ -54,24 +52,16 @@ export class DevMetadataState {
54
52
  const currentProjectConfiguration = this.editorStore.projectConfigurationEditorState
55
53
  .currentProjectConfiguration;
56
54
  assertNonNullable(currentProjectConfiguration, 'Project Name required to push to dev mode');
57
- const projectId = generateGAVCoordinates(currentProjectConfiguration.groupId, currentProjectConfiguration.artifactId, undefined);
58
- assertNonEmptyString(this.did, 'DID required to push to dev mode');
59
55
  this.pushState.inProgress();
60
- this.editorStore.applicationStore.alertService.setBlockingAlert({
61
- message: 'Pushing to Dev Mode',
62
- showLoading: true,
63
- });
64
- const result = (yield this.editorStore.graphManagerState.graphManager.pushToDevMetadata(this.did, projectId, this.editorStore.graphManagerState.graph));
56
+ const result = (yield this.editorStore.graphManagerState.graphManager.pushToDevMetadata(currentProjectConfiguration.groupId, currentProjectConfiguration.artifactId, undefined, this.options, this.editorStore.graphManagerState.graph));
65
57
  this.result = result;
66
- this.editorStore.applicationStore.notificationService.notifySuccess(`Pushed to dev mode`);
58
+ this.pushState.complete();
67
59
  }
68
60
  catch (error) {
69
61
  assertErrorThrown(error);
62
+ this.editorStore.applicationStore.notificationService.notifyError(`Error pushing to dev metadata: ${error.message}`);
70
63
  this.pushState.fail();
71
64
  }
72
- finally {
73
- this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
74
- }
75
65
  }
76
66
  }
77
67
  //# sourceMappingURL=DevMetadataState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DevMetadataState.js","sourceRoot":"","sources":["../../../../../src/stores/editor/sidebar-state/dev-metadata/DevMetadataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,YAAY,GAEb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAA0B,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,OAAO,gBAAgB;IAClB,WAAW,CAAc;IAClC,MAAM,CAAgC;IACtC,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACjC,GAAG,GAAG,EAAE,CAAC;IAET,YAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,GAAG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SAAS,CAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC;gBAC9D,OAAO,EAAE,qBAAqB;gBAC9B,WAAW,EAAE,IAAI;aAClB,CAAC,CAAC;YACH,MAAM,MAAM,GACV,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,iBAAiB,CACtE,IAAI,CAAC,GAAG,EACR,SAAS,EACT,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CACzC,CAAsB,CAAC;YAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACjE,oBAAoB,CACrB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAC7D,SAAS,CACV,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"DevMetadataState.js","sourceRoot":"","sources":["../../../../../src/stores/editor/sidebar-state/dev-metadata/DevMetadataState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,gBAAgB;IAClB,WAAW,CAAc;IAClC,MAAM,CAAoC;IAC1C,OAAO,GAA2B,IAAI,sBA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,EACtC,SAAS,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CACzC,CAA0B,CAAC;YAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC5B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC/D,kCAAkC,KAAK,CAAC,OAAO,EAAE,CAClD,CAAC;YACF,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;CACF"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type AccessPoint, type AccessPointGroup, type DataProduct, type DataProductIcon, type Email, type LakehouseAccessPoint, type RelationElementsData, DataProductLink, SupportInfo, type ModelAccessPointGroup, type DataProductRuntimeInfo, type PackageableElementReference, type Mapping, type DataProductDiagram, type DataProductElementScope, type DataProductType, type ExternalDataProductType, type Expertise } from '@finos/legend-graph';
16
+ import { type AccessPoint, type AccessPointGroup, type DataProduct, type DataProductIcon, type Email, type LakehouseAccessPoint, type RelationElementsData, DataProductLink, SupportInfo, type DataProductRuntimeInfo, type PackageableElementReference, type Mapping, type ModelAccessPointGroup, type DataProductDiagram, type DataProductElementScope, type DataProductType, type ExternalDataProductType, type Expertise } from '@finos/legend-graph';
17
17
  export declare const dataProduct_deleteAccessPoint: (group: AccessPointGroup, accessPoint: AccessPoint) => void;
18
18
  export declare const dataProduct_addAccessPoint: (group: AccessPointGroup, accessPoint: AccessPoint) => void;
19
19
  export declare const accessPoint_setClassification: (accessPoint: LakehouseAccessPoint, classification: string | undefined) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataProduct_GraphModifierHelper.d.ts","sourceRoot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AGxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gBACpB,WAAW,SAAS,KAAK,KAAG,IAM3C,CAAC"}
1
+ {"version":3,"file":"DSL_DataProduct_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,eAAe,EAKf,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAE5B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAE5B,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,6BAA6B,UAChC,gBAAgB,eAAe,WAAW,SAGnD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAC7B,gBAAgB,eAAe,WAAW,SAGnD,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC1B,oBAAoB,kBAAkB,MAAM,GAAG,SAAS,SAGvE,CAAC;AAEF,eAAO,MAAM,2BAA2B,gBACxB,oBAAoB,gBAAgB,OAAO,GAAG,SAAS,SAGtE,CAAC;AAEF,eAAO,MAAM,0BAA0B,gBACvB,WAAW,eAAe,MAAM,GAAG,SAAS,SAG3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBACjB,WAAW,SAAS,MAAM,GAAG,SAAS,SAGrD,CAAC;AAEF,eAAO,MAAM,+BAA+B,UAClC,gBAAgB,eAAe,MAAM,SAG9C,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAC3B,gBAAgB,QAAQ,MAAM,SAGvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAC5B,g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U,MAAM,SAS1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACtB,WAAW,cAAc,MAAM,SAS9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBACjB,WAAW,SAAS,KAAK,SAGxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gBACpB,WAAW,SAAS,KAAK,KAAG,IAM3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "28.19.69",
3
+ "version": "28.19.71",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -47,15 +47,16 @@
47
47
  "dependencies": {
48
48
  "@finos/legend-application": "16.0.82",
49
49
  "@finos/legend-art": "7.1.132",
50
- "@finos/legend-code-editor": "2.0.136",
51
- "@finos/legend-data-cube": "0.3.48",
52
- "@finos/legend-extension-dsl-data-product": "0.0.27",
53
- "@finos/legend-graph": "32.3.17",
54
- "@finos/legend-lego": "2.0.149",
55
- "@finos/legend-query-builder": "4.17.63",
56
- "@finos/legend-server-depot": "6.1.3",
57
- "@finos/legend-server-lakehouse": "0.3.17",
58
- "@finos/legend-server-sdlc": "5.3.66",
50
+ "@finos/legend-code-editor": "2.0.137",
51
+ "@finos/legend-data-cube": "0.3.49",
52
+ "@finos/legend-extension-dsl-data-product": "0.0.29",
53
+ "@finos/legend-extension-dsl-diagram": "8.1.196",
54
+ "@finos/legend-graph": "32.3.18",
55
+ "@finos/legend-lego": "2.0.150",
56
+ "@finos/legend-query-builder": "4.17.65",
57
+ "@finos/legend-server-depot": "6.1.4",
58
+ "@finos/legend-server-lakehouse": "0.3.18",
59
+ "@finos/legend-server-sdlc": "5.3.67",
59
60
  "@finos/legend-server-showcase": "0.2.62",
60
61
  "@finos/legend-shared": "11.0.21",
61
62
  "@finos/legend-storage": "3.0.140",
@@ -99,7 +99,6 @@ import { useAuth } from 'react-oidc-context';
99
99
  import { CODE_EDITOR_LANGUAGE } from '@finos/legend-code-editor';
100
100
  import { CodeEditor } from '@finos/legend-lego/code-editor';
101
101
  import {
102
- type DataProduct,
103
102
  type DataProductElement,
104
103
  type DataProductElementScope,
105
104
  type DataProductRuntimeInfo,
@@ -109,6 +108,8 @@ import {
109
108
  type Mapping,
110
109
  type PackageableElement,
111
110
  type PackageableRuntime,
111
+ type DataProduct,
112
+ type DataProductDiagram,
112
113
  DataProductEmbeddedImageIcon,
113
114
  DataProductLibraryIcon,
114
115
  Email,
@@ -152,6 +153,8 @@ import {
152
153
  accessPointGroup_setTitle,
153
154
  accessPoint_setDescription,
154
155
  accessPoint_setTitle,
156
+ dataProductDiagram_setTitle,
157
+ dataProductDiagram_setDescription,
155
158
  } from '../../../../stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js';
156
159
  import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
157
160
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../__lib__/LegendStudioApplicationNavigationContext.js';
@@ -1368,7 +1371,10 @@ export const CompatibleRuntimesEditor = observer(
1368
1371
  handleAddRuntime(event);
1369
1372
  }}
1370
1373
  placeholder="Select a runtime to add..."
1371
- darkMode={true}
1374
+ darkMode={
1375
+ !groupState.state.editorStore.applicationStore.layoutService
1376
+ .TEMPORARY__isLightColorThemeEnabled
1377
+ }
1372
1378
  />
1373
1379
  </div>
1374
1380
  );
@@ -1394,6 +1400,119 @@ export const CompatibleRuntimesEditor = observer(
1394
1400
  },
1395
1401
  );
1396
1402
 
1403
+ export const CompatibleDiagramsEditor = observer(
1404
+ (props: { groupState: ModelAccessPointGroupState }) => {
1405
+ const { groupState } = props;
1406
+ const group = groupState.value;
1407
+
1408
+ const handleDiagramTitleChange = (
1409
+ diagram: DataProductDiagram,
1410
+ value: string | undefined,
1411
+ ): void => {
1412
+ dataProductDiagram_setTitle(diagram, value ?? '');
1413
+ };
1414
+
1415
+ const handleDiagramDescriptionChange = (
1416
+ diagram: DataProductDiagram,
1417
+ value: string | undefined,
1418
+ ): void => {
1419
+ dataProductDiagram_setDescription(diagram, value);
1420
+ };
1421
+
1422
+ const handleAddDiagram = (option: {
1423
+ label: string;
1424
+ value: PackageableElement;
1425
+ }): void => {
1426
+ groupState.addDiagram(option);
1427
+ };
1428
+
1429
+ const handleRemoveDiagram = (diagram: DataProductDiagram): void => {
1430
+ groupState.handleRemoveDiagram(diagram);
1431
+ };
1432
+
1433
+ // ListEditor component renderers
1434
+ const DiagramComponent = observer(
1435
+ (diagramComponentProps: {
1436
+ item: DataProductDiagram;
1437
+ }): React.ReactElement => {
1438
+ const { item } = diagramComponentProps;
1439
+
1440
+ return (
1441
+ <>
1442
+ <div className="panel__content__form__section__list__item__content">
1443
+ <div className="panel__content__form__section__header__label">
1444
+ Diagram
1445
+ </div>
1446
+ <div className="panel__content__form__section__list__item__content__title">
1447
+ {item.title}
1448
+ </div>
1449
+ </div>
1450
+ <div className="panel__content__form__section__list__item__form">
1451
+ <PanelFormTextField
1452
+ name="Title"
1453
+ value={item.title}
1454
+ update={(value) => handleDiagramTitleChange(item, value)}
1455
+ placeholder="Enter title"
1456
+ className="dataSpace-editor__general__diagrams__title"
1457
+ />
1458
+ <PanelFormTextField
1459
+ name="Description"
1460
+ value={item.description ?? ''}
1461
+ update={(value) => handleDiagramDescriptionChange(item, value)}
1462
+ placeholder="Enter description"
1463
+ className="dataSpace-editor__general__diagrams__description"
1464
+ />
1465
+ </div>
1466
+ </>
1467
+ );
1468
+ },
1469
+ );
1470
+
1471
+ const NewDiagramComponent = observer(
1472
+ (newDiagramProps: {
1473
+ onFinishEditing: () => void;
1474
+ }): React.ReactElement => {
1475
+ const { onFinishEditing } = newDiagramProps;
1476
+
1477
+ return (
1478
+ <div className="panel__content__form__section__list__new-item__input">
1479
+ <CustomSelectorInput
1480
+ options={groupState.getCompatibleDiagramOptions()}
1481
+ onChange={(event: {
1482
+ label: string;
1483
+ value: PackageableElement;
1484
+ }) => {
1485
+ onFinishEditing();
1486
+ handleAddDiagram(event);
1487
+ }}
1488
+ placeholder="Select a diagram to add..."
1489
+ darkMode={
1490
+ !groupState.state.editorStore.applicationStore.layoutService
1491
+ .TEMPORARY__isLightColorThemeEnabled
1492
+ }
1493
+ />
1494
+ </div>
1495
+ );
1496
+ },
1497
+ );
1498
+
1499
+ return (
1500
+ <ListEditor
1501
+ title="Diagrams"
1502
+ prompt="Add diagrams to include in this Data Product. Set a title and description for each diagram."
1503
+ items={group.diagrams}
1504
+ keySelector={(element: DataProductDiagram) => element.hashCode}
1505
+ ItemComponent={DiagramComponent}
1506
+ NewItemComponent={NewDiagramComponent}
1507
+ handleRemoveItem={handleRemoveDiagram}
1508
+ isReadOnly={groupState.state.isReadOnly}
1509
+ emptyMessage="No Diagrams specified"
1510
+ emptyClassName="data-product-editor__empty-diagram"
1511
+ />
1512
+ );
1513
+ },
1514
+ );
1515
+
1397
1516
  export const FeaturedElementsEditor = observer(
1398
1517
  (props: { groupState: ModelAccessPointGroupState; isReadOnly: boolean }) => {
1399
1518
  const { groupState, isReadOnly } = props;
@@ -1467,7 +1586,10 @@ export const FeaturedElementsEditor = observer(
1467
1586
  handleAddElement(event);
1468
1587
  }}
1469
1588
  placeholder="Select an element to add..."
1470
- darkMode={true}
1589
+ darkMode={
1590
+ !groupState.state.editorStore.applicationStore.layoutService
1591
+ .TEMPORARY__isLightColorThemeEnabled
1592
+ }
1471
1593
  />
1472
1594
  </div>
1473
1595
  );
@@ -1557,6 +1679,7 @@ const ModelAccessPointGroupEditor = observer(
1557
1679
  </button>
1558
1680
  </div>
1559
1681
  <CompatibleRuntimesEditor groupState={groupState} />
1682
+ <CompatibleDiagramsEditor groupState={groupState} />
1560
1683
  <FeaturedElementsEditor
1561
1684
  groupState={groupState}
1562
1685
  isReadOnly={isReadOnly}
@@ -2286,6 +2409,7 @@ const HomeTab = observer(
2286
2409
  { label: DATA_PRODUCT_TYPE.INTERNAL, value: DATA_PRODUCT_TYPE.INTERNAL },
2287
2410
  { label: DATA_PRODUCT_TYPE.EXTERNAL, value: DATA_PRODUCT_TYPE.EXTERNAL },
2288
2411
  ];
2412
+
2289
2413
  const handleDataProductTypeChange = action(
2290
2414
  (val: { label: string; value: string } | null): void => {
2291
2415
  if (val?.value === DATA_PRODUCT_TYPE.INTERNAL) {
@@ -2398,7 +2522,10 @@ const HomeTab = observer(
2398
2522
  )
2399
2523
  : null
2400
2524
  }
2401
- darkMode={true}
2525
+ darkMode={
2526
+ !dataProductEditorState.editorStore.applicationStore
2527
+ .layoutService.TEMPORARY__isLightColorThemeEnabled
2528
+ }
2402
2529
  />
2403
2530
  </div>
2404
2531
  {product.type instanceof ExternalDataProductType && (