@finos/legend-application-studio 28.21.31 → 28.21.33
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__/LegendStudioApplicationNavigationContext.d.ts +2 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -0
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/components/ElementIconUtils.d.ts.map +1 -1
- package/lib/components/ElementIconUtils.js +2 -0
- package/lib/components/ElementIconUtils.js.map +1 -1
- package/lib/components/editor/availability-editor.css +1 -0
- package/lib/components/editor/availability-editor.css.map +1 -0
- package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.js +5 -0
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/availability/AvailabilityEditor.d.ts +19 -0
- package/lib/components/editor/editor-group/availability/AvailabilityEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/availability/AvailabilityEditor.js +50 -0
- package/lib/components/editor/editor-group/availability/AvailabilityEditor.js.map +1 -0
- package/lib/components/editor/editor-group/availability/testable/AvailabilityTestableEditor.d.ts +22 -0
- package/lib/components/editor/editor-group/availability/testable/AvailabilityTestableEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/availability/testable/AvailabilityTestableEditor.js +205 -0
- package/lib/components/editor/editor-group/availability/testable/AvailabilityTestableEditor.js.map +1 -0
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts +1 -12
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +3 -86
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts +5 -0
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.js +27 -24
- package/lib/components/editor/panel-group/DevToolPanel.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +1 -0
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +4 -1
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +5 -1
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.d.ts +32 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.js +46 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.d.ts +111 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.js +425 -0
- package/lib/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +3 -0
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +8 -2
- package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +1 -22
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +3 -109
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js +1 -0
- package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +1 -8
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +0 -21
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
- package/package.json +12 -12
- package/src/__lib__/LegendStudioApplicationNavigationContext.ts +1 -0
- package/src/components/ElementIconUtils.tsx +2 -0
- package/src/components/editor/editor-group/EditorGroup.tsx +4 -0
- package/src/components/editor/editor-group/availability/AvailabilityEditor.tsx +114 -0
- package/src/components/editor/editor-group/availability/testable/AvailabilityTestableEditor.tsx +829 -0
- package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +0 -282
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +1 -1
- package/src/components/editor/panel-group/DevToolPanel.tsx +61 -60
- package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +1 -0
- package/src/stores/editor/EditorGraphState.ts +3 -0
- package/src/stores/editor/EditorTabManagerState.ts +4 -0
- package/src/stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.ts +56 -0
- package/src/stores/editor/editor-state/element-editor-state/availability/testable/AvailabilityTestableState.ts +631 -0
- package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +13 -3
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +1 -162
- package/src/stores/editor/utils/ModelClassifierUtils.ts +1 -0
- package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +0 -44
- package/tsconfig.json +4 -0
|
@@ -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 DataProductRuntimeInfo, type PackageableElementReference, type Mapping, type ModelAccessPointGroup, type
|
|
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 DataProductType, type ExternalDataProductType, type Expertise, DataProductOperationalMetadata, type DataProduct_DeliveryFrequency, type DataProduct_Region, type DataProductOwner, type AppDirOwner, type AppDirNode } 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;
|
|
@@ -24,13 +24,6 @@ export declare const accessPointGroup_setDescription: (group: AccessPointGroup,
|
|
|
24
24
|
export declare const accessPointGroup_setName: (group: AccessPointGroup, name: string) => void;
|
|
25
25
|
export declare const accessPointGroup_setTitle: (group: AccessPointGroup, title: string | undefined) => void;
|
|
26
26
|
export declare const modelAccessPointGroup_setMapping: (group: ModelAccessPointGroup, mapping: PackageableElementReference<Mapping>) => void;
|
|
27
|
-
export declare const modelAccessPointGroup_addElement: (group: ModelAccessPointGroup, element: DataProductElementScope) => void;
|
|
28
|
-
export declare const modelAccessPointGroup_removeElement: (group: ModelAccessPointGroup, element: DataProductElementScope) => void;
|
|
29
|
-
export declare const modelAccessPointGroup_setElementExclude: (element: DataProductElementScope, exclude: boolean) => void;
|
|
30
|
-
export declare const modelAccessPointGroup_addDiagram: (group: ModelAccessPointGroup, diagram: DataProductDiagram) => void;
|
|
31
|
-
export declare const modelAccessPointGroup_removeDiagram: (group: ModelAccessPointGroup, diagram: DataProductDiagram) => void;
|
|
32
|
-
export declare const dataProductDiagram_setTitle: (diagram: DataProductDiagram, title: string) => void;
|
|
33
|
-
export declare const dataProductDiagram_setDescription: (diagram: DataProductDiagram, desc: string | undefined) => void;
|
|
34
27
|
export declare const runtimeInfo_setId: (runtimeInfo: DataProductRuntimeInfo, id: string) => void;
|
|
35
28
|
export declare const runtimeInfo_setDescription: (runtimeInfo: DataProductRuntimeInfo, desc: string | undefined) => void;
|
|
36
29
|
export declare const accessPointGroup_swapAccessPoints: (group: AccessPointGroup, sourceAp: AccessPoint, targetAp: AccessPoint) => void;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"DSL_DataPro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C,CAAC"}
|
|
@@ -46,27 +46,6 @@ export const accessPointGroup_setTitle = action((group, title) => {
|
|
|
46
46
|
export const modelAccessPointGroup_setMapping = action((group, mapping) => {
|
|
47
47
|
group.mapping = mapping;
|
|
48
48
|
});
|
|
49
|
-
export const modelAccessPointGroup_addElement = action((group, element) => {
|
|
50
|
-
addUniqueEntry(group.featuredElements, element);
|
|
51
|
-
});
|
|
52
|
-
export const modelAccessPointGroup_removeElement = action((group, element) => {
|
|
53
|
-
deleteEntry(group.featuredElements, element);
|
|
54
|
-
});
|
|
55
|
-
export const modelAccessPointGroup_setElementExclude = action((element, exclude) => {
|
|
56
|
-
element.exclude = exclude;
|
|
57
|
-
});
|
|
58
|
-
export const modelAccessPointGroup_addDiagram = action((group, diagram) => {
|
|
59
|
-
addUniqueEntry(group.diagrams, diagram);
|
|
60
|
-
});
|
|
61
|
-
export const modelAccessPointGroup_removeDiagram = action((group, diagram) => {
|
|
62
|
-
deleteEntry(group.diagrams, diagram);
|
|
63
|
-
});
|
|
64
|
-
export const dataProductDiagram_setTitle = action((diagram, title) => {
|
|
65
|
-
diagram.title = title;
|
|
66
|
-
});
|
|
67
|
-
export const dataProductDiagram_setDescription = action((diagram, desc) => {
|
|
68
|
-
diagram.description = desc;
|
|
69
|
-
});
|
|
70
49
|
export const runtimeInfo_setId = action((runtimeInfo, id) => {
|
|
71
50
|
runtimeInfo.id = id;
|
|
72
51
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataProduct_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAQL,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,WAAW,
|
|
1
|
+
{"version":3,"file":"DSL_DataProduct_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/graph-modifier/D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,eAAe,EAAE,CAAC;QACzC,mBAAmB,CAAC,eAAe,GAAG,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,cAAc,CAAC,mBAAmB,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,MAAM,CAC5D,CACE,mBAAmD,EACnD,MAA0B,EAC1B,EAAE;IACF,IAAI,mBAAmB,CAAC,eAAe,EAAE,CAAC;QACxC,WAAW,CAAC,mBAAmB,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CACxC,CAAC,OAAoB,EAAE,KAAmC,EAAE,EAAE;IAC5D,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAC7C,CAAC,KAAkB,EAAE,UAAkC,EAAE,EAAE;IACzD,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAC/C,CAAC,KAAkB,EAAE,UAAkC,EAAE,EAAE;IACzD,KAAK,CAAC,YAAY,GAAG,UAAU,CAAC;AAClC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAC1C,CAAC,IAAgB,EAAE,QAAgB,EAAE,EAAE;IACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-studio",
|
|
3
|
-
"version": "28.21.
|
|
3
|
+
"version": "28.21.33",
|
|
4
4
|
"description": "Legend Studio application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@dagrejs/dagre": "1.1.4",
|
|
50
|
-
"@finos/legend-application": "16.0.
|
|
51
|
-
"@finos/legend-art": "7.1.
|
|
52
|
-
"@finos/legend-code-editor": "2.0.
|
|
53
|
-
"@finos/legend-data-cube": "0.3.
|
|
54
|
-
"@finos/legend-extension-dsl-data-product": "0.0.
|
|
55
|
-
"@finos/legend-extension-dsl-diagram": "8.1.
|
|
56
|
-
"@finos/legend-graph": "32.6.
|
|
57
|
-
"@finos/legend-lego": "2.0.
|
|
58
|
-
"@finos/legend-query-builder": "4.19.
|
|
59
|
-
"@finos/legend-server-depot": "6.1.
|
|
60
|
-
"@finos/legend-server-lakehouse": "0.3.
|
|
50
|
+
"@finos/legend-application": "16.0.120",
|
|
51
|
+
"@finos/legend-art": "7.1.160",
|
|
52
|
+
"@finos/legend-code-editor": "2.0.196",
|
|
53
|
+
"@finos/legend-data-cube": "0.3.113",
|
|
54
|
+
"@finos/legend-extension-dsl-data-product": "0.0.107",
|
|
55
|
+
"@finos/legend-extension-dsl-diagram": "8.1.260",
|
|
56
|
+
"@finos/legend-graph": "32.6.27",
|
|
57
|
+
"@finos/legend-lego": "2.0.216",
|
|
58
|
+
"@finos/legend-query-builder": "4.19.3",
|
|
59
|
+
"@finos/legend-server-depot": "6.1.18",
|
|
60
|
+
"@finos/legend-server-lakehouse": "0.3.76",
|
|
61
61
|
"@finos/legend-server-sdlc": "5.4.7",
|
|
62
62
|
"@finos/legend-server-showcase": "0.2.68",
|
|
63
63
|
"@finos/legend-shared": "11.0.27",
|
|
@@ -76,4 +76,5 @@ export enum LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY {
|
|
|
76
76
|
// Lakehouse
|
|
77
77
|
INGEST_DEFINITION_EDITOR = 'studio.editor.ingest-definition-editor',
|
|
78
78
|
DATA_PRODUCT_EDITOR = 'studio.editor.data-product-editor',
|
|
79
|
+
AVAILABILITY_EDITOR = 'studio.editor.availability-editor',
|
|
79
80
|
}
|
|
@@ -112,6 +112,8 @@ export const getElementTypeIcon = (
|
|
|
112
112
|
return <PURE_SnowflakeM2MUdfIcon />;
|
|
113
113
|
case PACKAGEABLE_ELEMENT_TYPE.INGEST_DEFINITION:
|
|
114
114
|
return <PURE_IngestIcon />;
|
|
115
|
+
case PACKAGEABLE_ELEMENT_TYPE.AVAILABILITY:
|
|
116
|
+
return <PURE_IngestIcon />;
|
|
115
117
|
case PACKAGEABLE_ELEMENT_TYPE.MEM_SQL_FUNCTION:
|
|
116
118
|
return <PURE_MemSQLFunctionIcon />;
|
|
117
119
|
default: {
|
|
@@ -96,6 +96,8 @@ import { DataProductEditorState } from '../../../stores/editor/editor-state/elem
|
|
|
96
96
|
import { DataProductEditor } from './dataProduct/DataProductEditor.js';
|
|
97
97
|
import { IngestDefinitionEditorState } from '../../../stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js';
|
|
98
98
|
import { IngestDefinitionEditor } from './ingest-editor/IngestDefinitionEditor.js';
|
|
99
|
+
import { AvailabilityEditorState } from '../../../stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.js';
|
|
100
|
+
import { AvailabilityEditor } from './availability/AvailabilityEditor.js';
|
|
99
101
|
import {
|
|
100
102
|
MemSQLFunctionActivatorEditor,
|
|
101
103
|
MemSQLFunctionActivatorEdtiorState,
|
|
@@ -291,6 +293,8 @@ export const EditorGroup = observer(() => {
|
|
|
291
293
|
return <ServiceEditor key={currentTabState.uuid} />;
|
|
292
294
|
} else if (currentTabState instanceof DataProductEditorState) {
|
|
293
295
|
return <DataProductEditor key={currentTabState.uuid} />;
|
|
296
|
+
} else if (currentTabState instanceof AvailabilityEditorState) {
|
|
297
|
+
return <AvailabilityEditor key={currentTabState.uuid} />;
|
|
294
298
|
} else if (currentTabState instanceof PackageableRuntimeEditorState) {
|
|
295
299
|
return <PackageableRuntimeEditor key={currentTabState.uuid} />;
|
|
296
300
|
} else if (
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026-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
|
+
clsx,
|
|
19
|
+
EyeIcon,
|
|
20
|
+
FlaskIcon,
|
|
21
|
+
PanelContent,
|
|
22
|
+
PanelHeader,
|
|
23
|
+
} from '@finos/legend-art';
|
|
24
|
+
import { CODE_EDITOR_LANGUAGE } from '@finos/legend-code-editor';
|
|
25
|
+
import { CodeEditor } from '@finos/legend-lego/code-editor';
|
|
26
|
+
import { useEffect } from 'react';
|
|
27
|
+
import { observer } from 'mobx-react-lite';
|
|
28
|
+
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
29
|
+
import {
|
|
30
|
+
AVAILABILITY_TAB,
|
|
31
|
+
AvailabilityEditorState,
|
|
32
|
+
} from '../../../../stores/editor/editor-state/element-editor-state/availability/AvailabilityEditorState.js';
|
|
33
|
+
import { AvailabilityTestableEditor } from './testable/AvailabilityTestableEditor.js';
|
|
34
|
+
import { useApplicationNavigationContext } from '@finos/legend-application';
|
|
35
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../__lib__/LegendStudioApplicationNavigationContext.js';
|
|
36
|
+
|
|
37
|
+
export const AvailabilityEditor = observer(() => {
|
|
38
|
+
const editorStore = useEditorStore();
|
|
39
|
+
const availabilityEditorState =
|
|
40
|
+
editorStore.tabManagerState.getCurrentEditorState(AvailabilityEditorState);
|
|
41
|
+
const availability = availabilityEditorState.availability;
|
|
42
|
+
const activeTab = availabilityEditorState.activeTab;
|
|
43
|
+
|
|
44
|
+
const sidebarTabs = [
|
|
45
|
+
{
|
|
46
|
+
label: AVAILABILITY_TAB.DEFINITION,
|
|
47
|
+
icon: <EyeIcon />,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: AVAILABILITY_TAB.TESTING,
|
|
51
|
+
icon: <FlaskIcon />,
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
availabilityEditorState.generateElementGrammar();
|
|
57
|
+
}, [availabilityEditorState]);
|
|
58
|
+
|
|
59
|
+
useApplicationNavigationContext(
|
|
60
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.AVAILABILITY_EDITOR,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div className="availability-editor">
|
|
65
|
+
<div className="panel">
|
|
66
|
+
<PanelHeader
|
|
67
|
+
title="Availability"
|
|
68
|
+
titleContent={availability.name}
|
|
69
|
+
darkMode={true}
|
|
70
|
+
isReadOnly={true}
|
|
71
|
+
/>
|
|
72
|
+
<div className="panel availability-editor__content-panel">
|
|
73
|
+
<div className="availability-editor__activity-bar">
|
|
74
|
+
<div className="availability-editor__activity-bar__items">
|
|
75
|
+
{sidebarTabs.map((tab) => (
|
|
76
|
+
<button
|
|
77
|
+
key={tab.label}
|
|
78
|
+
className={clsx('availability-editor__activity-bar__item', {
|
|
79
|
+
'availability-editor__activity-bar__item--active':
|
|
80
|
+
activeTab === tab.label,
|
|
81
|
+
})}
|
|
82
|
+
onClick={() =>
|
|
83
|
+
availabilityEditorState.setActiveTab(tab.label)
|
|
84
|
+
}
|
|
85
|
+
tabIndex={-1}
|
|
86
|
+
title={tab.label}
|
|
87
|
+
>
|
|
88
|
+
{tab.icon}
|
|
89
|
+
{tab.label}
|
|
90
|
+
</button>
|
|
91
|
+
))}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<div className="panel availability-editor__main-panel">
|
|
95
|
+
{activeTab === AVAILABILITY_TAB.DEFINITION && (
|
|
96
|
+
<PanelContent>
|
|
97
|
+
<CodeEditor
|
|
98
|
+
language={CODE_EDITOR_LANGUAGE.PURE}
|
|
99
|
+
inputValue={availabilityEditorState.textContent}
|
|
100
|
+
isReadOnly={true}
|
|
101
|
+
/>
|
|
102
|
+
</PanelContent>
|
|
103
|
+
)}
|
|
104
|
+
{activeTab === AVAILABILITY_TAB.TESTING && (
|
|
105
|
+
<AvailabilityTestableEditor
|
|
106
|
+
testableState={availabilityEditorState.testableState}
|
|
107
|
+
/>
|
|
108
|
+
)}
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
);
|
|
114
|
+
});
|