@finos/legend-extension-dsl-data-space-studio 0.1.152 → 0.1.153
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/components/DSL_DataProduct_ElementDriver.d.ts +27 -0
- package/lib/components/DSL_DataProduct_ElementDriver.d.ts.map +1 -0
- package/lib/components/DSL_DataProduct_ElementDriver.js +60 -0
- package/lib/components/DSL_DataProduct_ElementDriver.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +3 -1
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js +30 -15
- package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/DSL_NewDataProductEditor.d.ts +19 -0
- package/lib/components/DSL_NewDataProductEditor.d.ts.map +1 -0
- package/lib/components/DSL_NewDataProductEditor.js +33 -0
- package/lib/components/DSL_NewDataProductEditor.js.map +1 -0
- package/lib/components/DataSpaceEditor.d.ts +1 -1
- package/lib/components/DataSpaceEditor.d.ts.map +1 -1
- package/lib/components/DataSpaceEditor.js +19 -9
- package/lib/components/DataSpaceEditor.js.map +1 -1
- package/lib/components/DataSpaceExecutionContextEditor.d.ts +37 -0
- package/lib/components/DataSpaceExecutionContextEditor.d.ts.map +1 -0
- package/lib/components/DataSpaceExecutionContextEditor.js +170 -0
- package/lib/components/DataSpaceExecutionContextEditor.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js +138 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.js +63 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.js +58 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceElementsSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js +56 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js +40 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.js.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.d.ts +19 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.d.ts.map +1 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.js +120 -0
- package/lib/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -2
- package/lib/stores/DataSpaceEditorState.d.ts +18 -2
- package/lib/stores/DataSpaceEditorState.d.ts.map +1 -1
- package/lib/stores/DataSpaceEditorState.js +55 -3
- package/lib/stores/DataSpaceEditorState.js.map +1 -1
- package/lib/stores/DataSpaceExecutionContextState.d.ts +37 -0
- package/lib/stores/DataSpaceExecutionContextState.d.ts.map +1 -0
- package/lib/stores/DataSpaceExecutionContextState.js +87 -0
- package/lib/stores/DataSpaceExecutionContextState.js.map +1 -0
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts +34 -3
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js +128 -2
- package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js.map +1 -1
- package/package.json +10 -9
- package/src/components/DSL_DataProduct_ElementDriver.tsx +82 -0
- package/src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +35 -19
- package/src/components/DSL_NewDataProductEditor.tsx +58 -0
- package/src/components/DataSpaceEditor.tsx +55 -33
- package/src/components/DataSpaceExecutionContextEditor.tsx +692 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceDefaultExecutionContextSection.tsx +393 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceDiagramsSection.tsx +147 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceElementsSection.tsx +135 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceExecutablesSection.tsx +114 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceGeneralEditor.tsx +81 -0
- package/src/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.tsx +276 -0
- package/src/stores/DataSpaceEditorState.ts +92 -4
- package/src/stores/DataSpaceExecutionContextState.ts +135 -0
- package/src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts +278 -3
- package/tsconfig.json +11 -1
@@ -0,0 +1,120 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
/**
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
import { PanelFormSection, CustomSelectorInput, PanelFormTextField, ListEditor, WarningIcon, } from '@finos/legend-art';
|
18
|
+
import { DataSpaceSupportEmail, DataSpaceSupportCombinedInfo, } from '@finos/legend-extension-dsl-data-space/graph';
|
19
|
+
import { observer } from 'mobx-react-lite';
|
20
|
+
import { dataSpace_email_setSupportInfoEmail, dataSpace_setDocumentationUrl, dataSpace_combined_setWebsite, dataSpace_combined_setFaqUrl, dataSpace_combined_addEmail, dataSpace_combined_deleteEmail, dataSpace_setSupportInfo, } from '../../stores/studio/DSL_DataSpace_GraphModifierHelper.js';
|
21
|
+
import { useEditorStore } from '@finos/legend-application-studio';
|
22
|
+
import { DataSpaceEditorState } from '../../stores/DataSpaceEditorState.js';
|
23
|
+
import { useState } from 'react';
|
24
|
+
export const DataSpaceSupportInfoSection = observer(() => {
|
25
|
+
const editorStore = useEditorStore();
|
26
|
+
const dataSpaceState = editorStore.tabManagerState.getCurrentEditorState(DataSpaceEditorState);
|
27
|
+
const dataSpace = dataSpaceState.dataSpace;
|
28
|
+
// Event handlers
|
29
|
+
const handleSupportInfoTypeChange = (option) => {
|
30
|
+
if (typeof option !== 'object' || !('value' in option)) {
|
31
|
+
return;
|
32
|
+
}
|
33
|
+
const type = option.value;
|
34
|
+
if (type === 'email' &&
|
35
|
+
!(dataSpace.supportInfo instanceof DataSpaceSupportEmail)) {
|
36
|
+
const supportInfo = new DataSpaceSupportEmail();
|
37
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) {
|
38
|
+
supportInfo.address = dataSpace.supportInfo.emails?.[0] ?? '';
|
39
|
+
supportInfo.documentationUrl = dataSpace.supportInfo.documentationUrl;
|
40
|
+
}
|
41
|
+
dataSpace_setSupportInfo(dataSpace, supportInfo);
|
42
|
+
}
|
43
|
+
else if (type === 'combined' &&
|
44
|
+
!(dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo)) {
|
45
|
+
const supportInfo = new DataSpaceSupportCombinedInfo();
|
46
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportEmail &&
|
47
|
+
dataSpace.supportInfo.address) {
|
48
|
+
supportInfo.emails = [dataSpace.supportInfo.address];
|
49
|
+
supportInfo.documentationUrl = dataSpace.supportInfo.documentationUrl;
|
50
|
+
}
|
51
|
+
dataSpace_setSupportInfo(dataSpace, supportInfo);
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
dataSpace_setSupportInfo(dataSpace, undefined);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
const handleSupportInfoEmailAdd = (email) => {
|
58
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) {
|
59
|
+
dataSpace_combined_addEmail(dataSpace.supportInfo, email);
|
60
|
+
}
|
61
|
+
};
|
62
|
+
const handleSupportInfoEmailRemove = (email) => {
|
63
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) {
|
64
|
+
dataSpace_combined_deleteEmail(dataSpace.supportInfo, email);
|
65
|
+
}
|
66
|
+
};
|
67
|
+
// ListEditor component renderers
|
68
|
+
const SupportEmailComponent = observer((props) => {
|
69
|
+
const { item } = props;
|
70
|
+
return (_jsx("div", { className: "panel__content__form__section__list__item__content", children: _jsx("div", { className: "panel__content__form__section__header__label", children: item }) }));
|
71
|
+
});
|
72
|
+
const NewSupportEmailComponent = observer((props) => {
|
73
|
+
const { onFinishEditing } = props;
|
74
|
+
const [email, setEmail] = useState('');
|
75
|
+
return (_jsxs("div", { className: "dataSpace-editor__general__support-info__new-email", children: [_jsx("div", { className: "panel__content__form__section__list__new-item__input", children: _jsx("input", { className: "input input-group__input panel__content__form__section__input input--dark", type: "email", placeholder: "Enter email", value: email, onChange: (event) => {
|
76
|
+
setEmail(event.target.value);
|
77
|
+
} }) }), _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", onClick: () => {
|
78
|
+
handleSupportInfoEmailAdd(email);
|
79
|
+
setEmail('');
|
80
|
+
onFinishEditing();
|
81
|
+
}, children: "Save" })] }));
|
82
|
+
});
|
83
|
+
return (_jsxs(PanelFormSection, { className: "dataSpace-editor__general__support-info", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Support Information" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "Configure support information for this Data Product." }), !(dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) && (_jsx(CustomSelectorInput, { options: [
|
84
|
+
{ label: 'None', value: 'none' },
|
85
|
+
{ label: 'Combined', value: 'combined' },
|
86
|
+
], onChange: (option) => handleSupportInfoTypeChange(option), value: {
|
87
|
+
label: dataSpace.supportInfo
|
88
|
+
? dataSpace.supportInfo instanceof DataSpaceSupportEmail
|
89
|
+
? 'Email'
|
90
|
+
: 'Combined'
|
91
|
+
: 'None',
|
92
|
+
value: dataSpace.supportInfo
|
93
|
+
? dataSpace.supportInfo instanceof DataSpaceSupportEmail
|
94
|
+
? 'email'
|
95
|
+
: 'combined'
|
96
|
+
: 'none',
|
97
|
+
}, darkMode: true })), dataSpace.supportInfo ? (dataSpace.supportInfo instanceof DataSpaceSupportEmail ? (_jsxs(PanelFormSection, { className: "dataSpace-editor__general__support-info__content", children: [_jsx(PanelFormTextField, { name: "Email Address", value: dataSpace.supportInfo.address, update: (value) => {
|
98
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportEmail) {
|
99
|
+
dataSpace_email_setSupportInfoEmail(dataSpace.supportInfo, value ?? '');
|
100
|
+
}
|
101
|
+
}, placeholder: "Enter email address" }), _jsx(PanelFormTextField, { name: "Documentation URL", value: dataSpace.supportInfo.documentationUrl, update: (value) => {
|
102
|
+
if (dataSpace.supportInfo) {
|
103
|
+
dataSpace_setDocumentationUrl(dataSpace.supportInfo, value ?? '');
|
104
|
+
}
|
105
|
+
}, placeholder: "Enter documentation URL" })] })) : dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo ? (_jsxs(PanelFormSection, { className: "dataSpace-editor__general__support-info__content", children: [_jsx(ListEditor, { title: "Emails", items: dataSpace.supportInfo.emails, keySelector: (element) => element, ItemComponent: SupportEmailComponent, NewItemComponent: NewSupportEmailComponent, handleRemoveItem: handleSupportInfoEmailRemove, isReadOnly: dataSpaceState.isReadOnly, emptyMessage: "No emails specified" }), (dataSpace.supportInfo.emails === undefined ||
|
106
|
+
dataSpace.supportInfo.emails.length === 0) && (_jsxs("div", { className: "service-editor__owner__validation", children: [_jsx(WarningIcon, {}), _jsx("div", { className: "service-editor__owner__validation-label", children: "At least one email is required" })] })), _jsx(PanelFormTextField, { name: "Documentation URL", value: dataSpace.supportInfo.documentationUrl, update: (value) => {
|
107
|
+
if (dataSpace.supportInfo) {
|
108
|
+
dataSpace_setDocumentationUrl(dataSpace.supportInfo, value ?? '');
|
109
|
+
}
|
110
|
+
}, placeholder: "Enter documentation URL" }), _jsx(PanelFormTextField, { name: "Website", value: dataSpace.supportInfo.website, update: (value) => {
|
111
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) {
|
112
|
+
dataSpace_combined_setWebsite(dataSpace.supportInfo, value ?? '');
|
113
|
+
}
|
114
|
+
}, placeholder: "Enter website URL" }), _jsx(PanelFormTextField, { name: "FAQ URL", value: dataSpace.supportInfo.faqUrl, update: (value) => {
|
115
|
+
if (dataSpace.supportInfo instanceof DataSpaceSupportCombinedInfo) {
|
116
|
+
dataSpace_combined_setFaqUrl(dataSpace.supportInfo, value ?? '');
|
117
|
+
}
|
118
|
+
}, placeholder: "Enter FAQ URL" })] })) : (_jsx("div", { children: "Unknown support info type" }))) : null] }));
|
119
|
+
});
|
120
|
+
//# sourceMappingURL=DataSpaceSupportInfoSection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataSpaceSupportInfoSection.js","sourceRoot":"","sources":["../../../src/components/DataSpaceGeneralEditor/DataSpaceSupportInfoSection.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,2BAA2B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACvD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAClB,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC;IAE3C,iBAAiB;IACjB,MAAM,2BAA2B,GAAG,CAAC,MAAyB,EAAQ,EAAE;QACtE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,OAAO,IAAI,MAAM,CAAC,EAAE,CAAC;YACvD,OAAO;QACT,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IACE,IAAI,KAAK,O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ACH,CAAC,EACD,WAAW,EAAC,yBAAyB,GACrC,EACF,KAAC,kBAAkB,IACjB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,EACpC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;4BAChB,IACE,SAAS,CAAC,WAAW,YAAY,4BAA4B,EAC7D,CAAC;gCACD,6BAA6B,CAC3B,SAAS,CAAC,WAAW,EACrB,KAAK,IAAI,EAAE,CACZ,CAAC;4BACJ,CAAC;wBACH,CAAC,EACD,WAAW,EAAC,mBAAmB,GAC/B,EACF,KAAC,kBAAkB,IACjB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,MAAM,EACnC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;4BAChB,IACE,SAAS,CAAC,WAAW,YAAY,4BAA4B,EAC7D,CAAC;gCACD,4BAA4B,CAC1B,SAAS,CAAC,WAAW,EACrB,KAAK,IAAI,EAAE,CACZ,CAAC;4BACJ,CAAC;wBACH,CAAC,EACD,WAAW,EAAC,eAAe,GAC3B,IACe,CACpB,CAAC,CAAC,CAAC,CACF,sDAAoC,CACrC,CACF,CAAC,CAAC,CAAC,IAAI,IACS,CACpB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/** @license @finos/legend-extension-dsl-data-space-studio v0.1.
|
1
|
+
/** @license @finos/legend-extension-dsl-data-space-studio v0.1.153
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -14,4 +14,4 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
.template-query-promotor{height:100%;position:relative;background:var(--color-dark-grey-50)}.template-query-promotor__body{height:calc(100% - 2.2rem);width:100%}.template-query-promotor__title{font-size:3.6rem;font-family:"Roboto Condensed",sans-serif;font-weight:700;color:var(--color-light-grey-200);margin-bottom:1.8rem}.template-query-promotor__title__prompt{font-family:"Roboto Mono",monospace;font-size:1.4rem;padding-bottom:1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-dark-grey-500)}.template-query-promotor__content{height:100%;width:calc(100% - 5rem)}.template-query-promotor__content__main{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:60vh;width:60vw}.template-query-promotor__actions{margin-top:.5rem;width:100%;display:flex;justify-content:flex-end}.template-query-promotor__group__header{display:flex;align-items:center;justify-content:center;height:1.8rem;width:13rem;padding:0 1rem;background:var(--color-dark-grey-400);color:var(--color-light-grey-0);font-weight:500;font-size:1.2rem;border-radius:.2rem .2rem 0 0}.template-query-promotor__group__content{padding:.5rem;border:.1rem solid var(--color-dark-grey-400);border-radius:0 .2rem .2rem}.template-query-promotor__group--workspace .template-query-promotor__group__header{background:var(--color-purple-400)}.template-query-promotor__group--workspace .template-query-promotor__group__content{border-color:var(--color-purple-400)}.template-query-promotor__group--template .template-query-promotor__group__header{background:var(--color-blue-200)}.template-query-promotor__group--template .template-query-promotor__group__content{border-color:var(--color-blue-200)}.template-query-promotor__group+.template-query-promotor__group{margin-top:1.5rem}.template-query-promotor__input{display:flex}.template-query-promotor__input__label{display:flex;align-items:center;width:11rem;background:var(--color-dark-grey-200);font-family:"Roboto Mono",monospace;font-size:1.4rem;padding:0 1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-dark-grey-500)}.template-query-promotor__input__icon{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;background:var(--color-dark-grey-200);border-radius:.2rem 0 0 .2rem}.template-query-promotor__input__icon svg{color:var(--color-dark-grey-400)}.template-query-promotor__input__icon--query,.template-query-promotor__input__icon--project,.template-query-promotor__input__icon--workspace{font-size:1.8rem}.template-query-promotor__input__input{flex:1 0}.template-query-promotor__input+.template-query-promotor__input{margin-top:.5rem}.template-query-promotor__next-btn{padding:1rem}.dataSpace-editor--dark__header{padding-left:0;background:var(--color-dark-grey-50)}.dataSpace-editor--dark__header__configs{display:flex;width:100%}.dataSpace-editor--dark__header__name{background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-300);color:var(--color-light-grey-0)}.dataSpace-editor--dark__header__name::placeholder{color:var(--color-dark-grey-300)}/*# sourceMappingURL=index.css.map */
|
17
|
+
.template-query-promotor{height:100%;position:relative;background:var(--color-dark-grey-50)}.template-query-promotor__body{height:calc(100% - 2.2rem);width:100%}.template-query-promotor__title{font-size:3.6rem;font-family:"Roboto Condensed",sans-serif;font-weight:700;color:var(--color-light-grey-200);margin-bottom:1.8rem}.template-query-promotor__title__prompt{font-family:"Roboto Mono",monospace;font-size:1.4rem;padding-bottom:1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-dark-grey-500)}.template-query-promotor__content{height:100%;width:calc(100% - 5rem)}.template-query-promotor__content__main{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:60vh;width:60vw}.template-query-promotor__actions{margin-top:.5rem;width:100%;display:flex;justify-content:flex-end}.template-query-promotor__group__header{display:flex;align-items:center;justify-content:center;height:1.8rem;width:13rem;padding:0 1rem;background:var(--color-dark-grey-400);color:var(--color-light-grey-0);font-weight:500;font-size:1.2rem;border-radius:.2rem .2rem 0 0}.template-query-promotor__group__content{padding:.5rem;border:.1rem solid var(--color-dark-grey-400);border-radius:0 .2rem .2rem}.template-query-promotor__group--workspace .template-query-promotor__group__header{background:var(--color-purple-400)}.template-query-promotor__group--workspace .template-query-promotor__group__content{border-color:var(--color-purple-400)}.template-query-promotor__group--template .template-query-promotor__group__header{background:var(--color-blue-200)}.template-query-promotor__group--template .template-query-promotor__group__content{border-color:var(--color-blue-200)}.template-query-promotor__group+.template-query-promotor__group{margin-top:1.5rem}.template-query-promotor__input{display:flex}.template-query-promotor__input__label{display:flex;align-items:center;width:11rem;background:var(--color-dark-grey-200);font-family:"Roboto Mono",monospace;font-size:1.4rem;padding:0 1rem;border-radius:.2rem 0 0 .2rem;color:var(--color-dark-grey-500)}.template-query-promotor__input__icon{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;background:var(--color-dark-grey-200);border-radius:.2rem 0 0 .2rem}.template-query-promotor__input__icon svg{color:var(--color-dark-grey-400)}.template-query-promotor__input__icon--query,.template-query-promotor__input__icon--project,.template-query-promotor__input__icon--workspace{font-size:1.8rem}.template-query-promotor__input__input{flex:1 0}.template-query-promotor__input+.template-query-promotor__input{margin-top:.5rem}.template-query-promotor__next-btn{padding:1rem}.dataSpace-editor--dark__header{padding-left:0;background:var(--color-dark-grey-50)}.dataSpace-editor--dark__header__configs{display:flex;width:100%}.dataSpace-editor--dark__header__name{background:var(--color-dark-grey-100);border:.1rem solid var(--color-dark-grey-300);color:var(--color-light-grey-0)}.dataSpace-editor--dark__header__name::placeholder{color:var(--color-dark-grey-300)}.panel__content__form__section__list__item{background-color:var(--color-dark-grey-85);margin-bottom:.5rem;padding:.5rem;border-radius:3px;width:fit-content}.panel__content__form__section__list__item__content__label{color:var(--color-light-grey-200);font-size:1.2rem}.panel__content__form__section__list__item__content__title{color:var(--color-light-grey-200);font-size:1.2rem}.panel__content__form__section__list__item__content__form{display:flex;flex-direction:column;width:100%;margin-right:1rem}.panel__content__form__section__list__item__content__form .panel__content__form__section{margin-bottom:.5rem}.panel__content__form__section__list__item__content__form .panel__content__form__section:last-child{margin-bottom:0}.panel__content__form__section__list__item__content__actions{display:flex;align-items:center;gap:.5rem}.panel__content__form__section__list__item__content__actions__label{color:var(--color-light-grey-200);font-size:1.2rem;margin-left:.5rem}.panel__content__form__section__list__item__content__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-light-grey-200)}.panel__content__form__section__list__item__content__actions__btn:hover{color:var(--color-light-grey-100)}.panel__content__form__section__list__item__form{display:flex;flex-direction:column;margin-top:.5rem}.panel__content__form__section__list__item__form .panel__content__form__section{margin-bottom:.5rem}.panel__content__form__section__list__item__form .panel__content__form__section:last-child{margin-bottom:0}.panel__content__form__section__list__new-item__input{height:fit-content;width:40rem;padding:0}.panel__content__form__section__list__add{display:flex;align-items:center;margin-top:.5rem}.panel__content__form__section__list__add__input{flex:1}.panel__content__form__section__list__add__actions{margin-left:.5rem}.panel__content__form__section__list__add__actions__btn{background:none;border:none;cursor:pointer;color:var(--color-light-grey-200)}.panel__content__form__section__list__add__actions__btn:hover{color:var(--color-light-grey-100)}.dataSpace-editor{background-color:var(--color-dark-grey-85)}.dataSpace-editor .panel__content{background-color:var(--color-dark-grey-85)}.dataSpace-editor .panel__header{background-color:var(--color-dark-grey-50)}.dataSpace-editor__general .panel__content__form__section__list__item{height:fit-content}.dataSpace-editor__general .panel__content__form__section__list__item__form{flex-direction:row}.dataSpace-editor__general .panel__content__form__section__list__item__content{display:flex;align-items:center}.dataSpace-editor__general .panel__content__form__section__list__item .panel__content__form__section{margin-top:0}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__title{width:25rem}.dataSpace-editor__general .panel__content__form__section__list__item .dataSpace-editor__general__diagrams__description{width:40rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__label{width:35rem}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude{display:flex;align-items:center}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions-exclude__btn{padding:0}.dataSpace-editor__general__elements .panel__content__form__section__list__item__content__actions__btn{margin-left:1rem}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content{flex-direction:column;align-items:start}.dataSpace-editor__general__diagrams .panel__content__form__section__list__item__content__actions__btn{margin-top:2.4rem}.dataSpace-editor__general__support-info__content{margin-top:1rem}.dataSpace-editor__general__support-info__new-email{display:flex;align-items:center;margin-right:.5rem}.dataSpace-editor__general .panel__content__form{max-width:unset}.dataSpace-editor__general .selector-input--dark{max-width:40rem}.execution-context-editor__form-section{display:flex;flex-direction:column;margin-bottom:1rem}.execution-context-editor__form-section__label{font-size:1.2rem;font-weight:500;margin-bottom:.5rem;color:var(--color-light-grey-200)}.execution-context-editor__form-section__content__input,.execution-context-editor__form-section__content__textarea{width:100%;padding:.5rem;background-color:var(--color-dark-grey-85);color:var(--color-light-grey-200);border:1px solid var(--color-dark-grey-200);border-radius:2px}.execution-context-editor__form-section__content__textarea{min-height:100px;resize:vertical}.service-execution-editor__configuration__items{background-color:var(--color-dark-grey-85);padding:1rem;border-radius:3px}.service-execution-editor__execution{background-color:var(--color-dark-grey-85)}.service-multi-execution-editor__panel{background-color:var(--color-dark-grey-85)}.panel__content{background-color:var(--color-dark-grey-85)}.service-execution-editor__configuration__item__dropdown{background-color:var(--color-dark-grey-85);color:var(--color-light-grey-200)}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_data-space-template-query-promotor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-editor.scss"],"names":[],"mappings":"AAkBA,yBACE,YACA,kBACA,qCAEA,+BACE,2BACA,WAGF,gCACE,iBACA,0CACA,gBACA,kCACA,qBAEA,wCACE,oCACA,iBACA,oBACA,8BACA,iCAIJ,kCACE,YACA,wBAGF,wCChCA,kBACA,QACA,SACA,gCDgCE,YACA,WAGF,kCACE,iBACA,WACA,aACA,yBAIA,wCCxCF,aACA,mBACA,uBDyCI,cACA,YACA,eACA,sCACA,gCACA,gBACA,iBACA,8BAGF,yCACE,cACA,8CACA,4BAGF,mFACE,mCAGF,oFACE,qCAGF,kFACE,iCAGF,mFACE,mCAGF,gEACE,kBAIJ,gCACE,aAEA,uCC7EF,aACA,mBD+EI,YACA,sCACA,oCACA,iBACA,eACA,8BACA,iCAGF,sCC/FF,aACA,mBACA,uBDgGI,cACA,aACA,sCACA,8BAEA,0CACE,iCAIJ,6IAGE,iBAGF,uCACE,SAGF,gEACE,iBAIJ,mCACE,aEjIF,gCACE,eACA,qCAEA,yCACE,aACA,WAGF,sCACE,sCACA,8CACA,gCAGF,mDACE","file":"index.css"}
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_data-space-template-query-promotor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-editor.scss","../style/components/_execution-context-editor.scss"],"names":[],"mappings":"AAkBA,yBACE,YACA,kBACA,qCAEA,+BACE,2BACA,WAGF,gCACE,iBACA,0CACA,gBACA,kCACA,qBAEA,wCACE,oCACA,iBACA,oBACA,8BACA,iCAIJ,kCACE,YACA,wBAGF,wCChCA,kBACA,QACA,SACA,gCDgCE,YACA,WAGF,kCACE,iBACA,WACA,aACA,yBAIA,wCCxCF,aACA,mBACA,uBDyCI,cACA,YACA,eACA,sCACA,gCACA,gBACA,iBACA,8BAGF,yCACE,cACA,8CACA,4BAGF,mFACE,mCAGF,oFACE,qCAGF,kFACE,iCAGF,mFACE,mCAGF,gEACE,kBAIJ,gCACE,aAEA,uCC7EF,aACA,mBD+EI,YACA,sCACA,oCACA,iBACA,eACA,8BACA,iCAGF,sCC/FF,aACA,mBACA,uBDgGI,cACA,aACA,sCACA,8BAEA,0CACE,iCAIJ,6IAGE,iBAGF,uCACE,SAGF,gEACE,iBAIJ,mCACE,aEjIF,gCACE,eACA,qCAEA,yCACE,aACA,WAGF,sCACE,sCACA,8CACA,gCAGF,mDACE,iCAMJ,2CACE,2CACA,oBACA,cACA,kBACA,kBAGE,2DACE,kCACA,iBAGF,2DACE,kCACA,iBAGF,0DACE,aACA,sBACA,WACA,kBAEA,yFACE,oBAEA,oGACE,gBAKN,6DACE,aACA,mBACA,UAEA,oEACE,kCACA,iBACA,kBAGF,kEACE,gBACA,YACA,eACA,kCAEA,wEACE,kCAMR,iDACE,aACA,sBACA,iBAEA,gFACE,oBAEA,2FACE,gBAON,sDACE,mBACA,YACA,UAIJ,0CACE,aACA,mBACA,iBAEA,iDACE,OAGF,mDACE,kBAEA,wDACE,gBACA,YACA,eACA,kCAEA,8DACE,kCAOV,kBACE,2CAEA,kCACE,2CAGF,iCACE,2CAIA,sEACE,mBAEA,4EACE,mBAGF,+EACE,aACA,mBAGF,qGACE,aAGF,kHACE,YAGF,wHACE,YAKF,gGACE,YAIA,0GACE,aACA,mBAEA,+GACE,UAIJ,uGACE,iBAMJ,yFACE,sBACA,kBAEA,uGACE,kBAMJ,kDACE,gBAGF,oDACE,aACA,mBACA,mBAIJ,iDACE,gBAGF,iDACE,gBCxNJ,wCACE,aACA,sBACA,mBAEA,+CACE,iBACA,gBACA,oBACA,kCAIA,mHAEE,WACA,cACA,2CACA,kCACA,4CACA,kBAGF,2DACE,iBACA,gBAMR,gDACE,2CACA,aACA,kBAGF,qCACE,2CAGF,uCACE,2CAIF,gBACE,2CAIA,yDACE,2CACA","file":"index.css"}
|
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space-studio",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.153",
|
4
4
|
"description": "Legend extension for Data Space DSL - Studio",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -55,7 +55,8 @@
|
|
55
55
|
"@types/react": "19.0.10",
|
56
56
|
"mobx": "6.13.6",
|
57
57
|
"mobx-react-lite": "4.1.0",
|
58
|
-
"react": "19.0.0"
|
58
|
+
"react": "19.0.0",
|
59
|
+
"react-dnd": "16.0.1"
|
59
60
|
},
|
60
61
|
"devDependencies": {
|
61
62
|
"@finos/legend-dev-utils": "workspace:*",
|
@@ -14,10 +14,26 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type EditorStore, ElementEditorState } from '@finos/legend-application-studio';
|
17
|
-
import type
|
18
|
-
import {
|
17
|
+
import { type PackageableElement } from '@finos/legend-graph';
|
18
|
+
import { Diagram } from '@finos/legend-extension-dsl-diagram/graph';
|
19
|
+
import { DataSpace, type DataSpaceElement } from '@finos/legend-extension-dsl-data-space/graph';
|
20
|
+
import { DataSpaceExecutionContextState } from './DataSpaceExecutionContextState.js';
|
19
21
|
export declare class DataSpaceEditorState extends ElementEditorState {
|
22
|
+
executionContextState: DataSpaceExecutionContextState;
|
20
23
|
constructor(editorStore: EditorStore, element: PackageableElement);
|
24
|
+
isValidDataSpaceElement(element: PackageableElement): element is DataSpaceElement;
|
25
|
+
getDataSpaceElementOptions(): {
|
26
|
+
label: string;
|
27
|
+
value: DataSpaceElement;
|
28
|
+
}[];
|
29
|
+
getDataSpaceExecutableOptions(): {
|
30
|
+
label: string;
|
31
|
+
value: PackageableElement;
|
32
|
+
}[];
|
33
|
+
getDiagramOptions(): {
|
34
|
+
label: string;
|
35
|
+
value: Diagram;
|
36
|
+
}[];
|
21
37
|
get dataSpace(): DataSpace;
|
22
38
|
reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
|
23
39
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"DataSpaceEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAChB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,kBAAkB,EAOxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EAET,KAAK,gBAAgB,EACtB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,qBAAa,oBAAqB,SAAQ,kBAAkB;IAC1D,qBAAqB,EAAE,8BAA8B,CAAC;gBAE1C,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IAgBjE,uBAAuB,CACrB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,IAAI,gBAAgB;IAS9B,0BAA0B,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,CAAA;KAAE,EAAE;IAc1E,6BAA6B,IAAI;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,kBAAkB,CAAC;KAC3B,EAAE;IAuBH,iBAAiB,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE;IAcxD,IAAI,SAAS,IAAI,SAAS,CAMzB;IAEQ,SAAS,CAChB,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
|
@@ -13,20 +13,72 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { action, computed, makeObservable } from 'mobx';
|
16
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
17
17
|
import { ElementEditorState, } from '@finos/legend-application-studio';
|
18
|
-
import {
|
18
|
+
import { Package, Class, Enumeration, Association, Service, ConcreteFunctionDefinition, } from '@finos/legend-graph';
|
19
|
+
import { Diagram } from '@finos/legend-extension-dsl-diagram/graph';
|
20
|
+
import { DataSpace, DataSpacePackageableElementExecutable, } from '@finos/legend-extension-dsl-data-space/graph';
|
19
21
|
import { guaranteeType } from '@finos/legend-shared';
|
22
|
+
import { DataSpaceExecutionContextState } from './DataSpaceExecutionContextState.js';
|
20
23
|
export class DataSpaceEditorState extends ElementEditorState {
|
24
|
+
executionContextState;
|
21
25
|
constructor(editorStore, element) {
|
22
26
|
super(editorStore, element);
|
23
27
|
makeObservable(this, {
|
28
|
+
executionContextState: observable,
|
24
29
|
dataSpace: computed,
|
25
30
|
reprocess: action,
|
31
|
+
isValidDataSpaceElement: action,
|
32
|
+
getDataSpaceElementOptions: action,
|
33
|
+
getDiagramOptions: action,
|
34
|
+
getDataSpaceExecutableOptions: action,
|
26
35
|
});
|
36
|
+
this.executionContextState = new DataSpaceExecutionContextState(this);
|
37
|
+
}
|
38
|
+
isValidDataSpaceElement(element) {
|
39
|
+
return (element instanceof Package ||
|
40
|
+
element instanceof Class ||
|
41
|
+
element instanceof Enumeration ||
|
42
|
+
element instanceof Association);
|
43
|
+
}
|
44
|
+
getDataSpaceElementOptions() {
|
45
|
+
const currentElements = this.dataSpace.elements?.map((elementPointer) => elementPointer.element.value) ?? [];
|
46
|
+
return this.editorStore.graphManagerState.graph.allOwnElements
|
47
|
+
.filter((element) => this.isValidDataSpaceElement(element))
|
48
|
+
.filter((element) => !currentElements.includes(element))
|
49
|
+
.map((element) => ({
|
50
|
+
label: element.path,
|
51
|
+
value: element,
|
52
|
+
}));
|
53
|
+
}
|
54
|
+
getDataSpaceExecutableOptions() {
|
55
|
+
const currentExecutables = this.dataSpace.executables?.map((executablePointer) => {
|
56
|
+
if (executablePointer instanceof DataSpacePackageableElementExecutable) {
|
57
|
+
return executablePointer.executable.value;
|
58
|
+
}
|
59
|
+
return undefined;
|
60
|
+
}) ?? [];
|
61
|
+
return this.editorStore.graphManagerState.graph.allOwnElements
|
62
|
+
.filter((element) => element instanceof Service ||
|
63
|
+
element instanceof ConcreteFunctionDefinition)
|
64
|
+
.filter((executable) => !currentExecutables.includes(executable))
|
65
|
+
.map((executable) => ({
|
66
|
+
label: executable.path,
|
67
|
+
value: executable,
|
68
|
+
}));
|
69
|
+
}
|
70
|
+
getDiagramOptions() {
|
71
|
+
const currentDiagrams = this.dataSpace.diagrams?.map((diagramPointer) => diagramPointer.diagram.value) ?? [];
|
72
|
+
return this.editorStore.graphManagerState.graph.allOwnElements
|
73
|
+
.filter((element) => element instanceof Diagram)
|
74
|
+
.filter((diagram) => !currentDiagrams.includes(diagram))
|
75
|
+
.map((diagram) => ({
|
76
|
+
label: diagram.path,
|
77
|
+
value: diagram,
|
78
|
+
}));
|
27
79
|
}
|
28
80
|
get dataSpace() {
|
29
|
-
return guaranteeType(this.element, DataSpace, 'Element inside
|
81
|
+
return guaranteeType(this.element, DataSpace, 'Element inside DataSpace editor state must be a DataSpace element');
|
30
82
|
}
|
31
83
|
reprocess(newElement, editorStore) {
|
32
84
|
const newState = new DataSpaceEditorState(editorStore, newElement);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceEditorState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceEditorState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAEL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,OAAO,EACP,KAAK,EACL,WAAW,EACX,WAAW,EACX,OAAO,EACP,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EACT,qCAAqC,GAEtC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,MAAM,OAAO,oBAAqB,SAAQ,kBAAkB;IAC1D,qBAAqB,CAAiC;IAEtD,YAAY,WAAwB,EAAE,OAA2B;QAC/D,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,cAAc,CAAC,IAAI,EAAE;YACnB,qBAAqB,EAAE,UAAU;YACjC,SAAS,EAAE,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nE,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
@@ -0,0 +1,37 @@
|
|
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
|
+
import type { EditorStore } from '@finos/legend-application-studio';
|
17
|
+
import type { DataSpaceEditorState } from './DataSpaceEditorState.js';
|
18
|
+
import { DataSpaceExecutionContext, type DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
|
19
|
+
import { type Mapping } from '@finos/legend-graph';
|
20
|
+
export declare class DataSpaceExecutionContextState {
|
21
|
+
readonly dataSpaceEditorState: DataSpaceEditorState;
|
22
|
+
readonly editorStore: EditorStore;
|
23
|
+
executionContexts: DataSpaceExecutionContext[];
|
24
|
+
selectedExecutionContext: DataSpaceExecutionContext | undefined;
|
25
|
+
newExecutionContextModal: boolean;
|
26
|
+
executionContextToRename: DataSpaceExecutionContext | undefined;
|
27
|
+
constructor(dataSpaceEditorState: DataSpaceEditorState);
|
28
|
+
get dataSpace(): DataSpace;
|
29
|
+
addExecutionContext(name: string): void;
|
30
|
+
removeExecutionContext(dataSpaceExecutionContext: DataSpaceExecutionContext): void;
|
31
|
+
renameExecutionContext(dataSpaceExecutionContext: DataSpaceExecutionContext, newName: string): void;
|
32
|
+
setSelectedExecutionContext(val: DataSpaceExecutionContext): void;
|
33
|
+
setExecutionContextToRename(val: DataSpaceExecutionContext | undefined): void;
|
34
|
+
setNewExecutionContextModal(val: boolean): void;
|
35
|
+
autoSelectRuntimeOnMappingChange(mapping: Mapping): void;
|
36
|
+
}
|
37
|
+
//# sourceMappingURL=DataSpaceExecutionContextState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACL,yBAAyB,EACzB,KAAK,SAAS,EACf,MAAM,8CAA8C,CAAC;AAOtD,OAAO,EAIL,KAAK,OAAO,EAEb,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,8BAA8B;IACzC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACpD,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,iBAAiB,EAAE,yBAAyB,EAAE,CAAC;IAC/C,wBAAwB,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAChE,wBAAwB,UAAS;IACjC,wBAAwB,EAAE,yBAAyB,GAAG,SAAS,CAAC;gBAEpD,oBAAoB,EAAE,oBAAoB;IAoBtD,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAsBvC,sBAAsB,CACpB,yBAAyB,EAAE,yBAAyB,GACnD,IAAI;IAIP,sBAAsB,CACpB,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,EAAE,MAAM,GACd,IAAI;IAIP,2BAA2B,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIjE,2BAA2B,CACzB,GAAG,EAAE,yBAAyB,GAAG,SAAS,GACzC,IAAI;IAIP,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI/C,gCAAgC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAgBzD"}
|
@@ -0,0 +1,87 @@
|
|
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
|
+
import { action, makeObservable, observable } from 'mobx';
|
17
|
+
import { DataSpaceExecutionContext, } from '@finos/legend-extension-dsl-data-space/graph';
|
18
|
+
import { dataSpace_addExecutionContext, dataSpace_removeExecutionContext, dataSpace_setExecutionContextDefaultRuntime, dataSpace_setExecutionContextName, } from './studio/DSL_DataSpace_GraphModifierHelper.js';
|
19
|
+
import { PackageableElementExplicitReference, stub_Mapping, stub_PackageableRuntime, } from '@finos/legend-graph';
|
20
|
+
export class DataSpaceExecutionContextState {
|
21
|
+
dataSpaceEditorState;
|
22
|
+
editorStore;
|
23
|
+
executionContexts;
|
24
|
+
selectedExecutionContext;
|
25
|
+
newExecutionContextModal = false;
|
26
|
+
executionContextToRename;
|
27
|
+
constructor(dataSpaceEditorState) {
|
28
|
+
makeObservable(this, {
|
29
|
+
executionContexts: observable,
|
30
|
+
selectedExecutionContext: observable,
|
31
|
+
executionContextToRename: observable,
|
32
|
+
newExecutionContextModal: observable,
|
33
|
+
addExecutionContext: action,
|
34
|
+
removeExecutionContext: action,
|
35
|
+
renameExecutionContext: action,
|
36
|
+
setSelectedExecutionContext: action,
|
37
|
+
setExecutionContextToRename: action,
|
38
|
+
setNewExecutionContextModal: action,
|
39
|
+
});
|
40
|
+
this.executionContexts = dataSpaceEditorState.dataSpace.executionContexts;
|
41
|
+
this.selectedExecutionContext =
|
42
|
+
dataSpaceEditorState.dataSpace.executionContexts[0];
|
43
|
+
this.dataSpaceEditorState = dataSpaceEditorState;
|
44
|
+
this.editorStore = dataSpaceEditorState.editorStore;
|
45
|
+
}
|
46
|
+
get dataSpace() {
|
47
|
+
return this.dataSpaceEditorState.dataSpace;
|
48
|
+
}
|
49
|
+
addExecutionContext(name) {
|
50
|
+
const val = new DataSpaceExecutionContext();
|
51
|
+
val.name = name;
|
52
|
+
const mapping = this.editorStore.graphManagerState.usableMappings[0];
|
53
|
+
const runtime = mapping
|
54
|
+
? this.editorStore.graphManagerState.graph.ownRuntimes.filter((_runtime) => _runtime.runtimeValue.mappings
|
55
|
+
.map((m) => m.value)
|
56
|
+
.includes(mapping))[0]
|
57
|
+
: undefined;
|
58
|
+
val.mapping = PackageableElementExplicitReference.create(mapping ?? stub_Mapping());
|
59
|
+
val.defaultRuntime = PackageableElementExplicitReference.create(runtime ?? stub_PackageableRuntime());
|
60
|
+
dataSpace_addExecutionContext(this.dataSpace, val);
|
61
|
+
this.selectedExecutionContext = val;
|
62
|
+
}
|
63
|
+
removeExecutionContext(dataSpaceExecutionContext) {
|
64
|
+
dataSpace_removeExecutionContext(this.dataSpace, dataSpaceExecutionContext);
|
65
|
+
}
|
66
|
+
renameExecutionContext(dataSpaceExecutionContext, newName) {
|
67
|
+
dataSpace_setExecutionContextName(dataSpaceExecutionContext, newName);
|
68
|
+
}
|
69
|
+
setSelectedExecutionContext(val) {
|
70
|
+
this.selectedExecutionContext = val;
|
71
|
+
}
|
72
|
+
setExecutionContextToRename(val) {
|
73
|
+
this.executionContextToRename = val;
|
74
|
+
}
|
75
|
+
setNewExecutionContextModal(val) {
|
76
|
+
this.newExecutionContextModal = val;
|
77
|
+
}
|
78
|
+
autoSelectRuntimeOnMappingChange(mapping) {
|
79
|
+
if (this.selectedExecutionContext) {
|
80
|
+
const runtimes = this.editorStore.graphManagerState.graph.ownRuntimes.filter((runtime) => runtime.runtimeValue.mappings.map((m) => m.value).includes(mapping));
|
81
|
+
if (runtimes.length) {
|
82
|
+
dataSpace_setExecutionContextDefaultRuntime(this.selectedExecutionContext, PackageableElementExplicitReference.create(runtimes[0]));
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
//# sourceMappingURL=DataSpaceExecutionContextState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataSpaceExecutionContextState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceExecutionContextState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EACL,yBAAyB,GAE1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,2CAA2C,EAC3C,iCAAiC,GAClC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,mCAAmC,EACnC,YAAY,EACZ,uBAAuB,GAGxB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,8BAA8B;IAChC,oBAAoB,CAAuB;IAC3C,WAAW,CAAc;IAClC,iBAAiB,CAA8B;IAC/C,wBAAwB,CAAwC;IAChE,wBAAwB,GAAG,KAAK,CAAC;IACjC,wBAAwB,CAAwC;IAEhE,YAAY,oBAA0C;QACpD,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,UAAU;YAC7B,wBAAwB,EAAE,UAAU;YACpC,wBAAwB,EAAE,UAAU;YACpC,wBAAwB,EAAE,UAAU;YACpC,mBAAmB,EAAE,MAAM;YAC3B,sBAAsB,EAAE,MAAM;YAC9B,sBAAsB,EAAE,MAAM;YAC9B,2BAA2B,EAAE,MAAM;YACnC,2BAA2B,EAAE,MAAM;YACnC,2BAA2B,EAAE,MA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C;IACtC,CAAC;IAED,sBAAsB,CACpB,yBAAoD;QAEpD,gCAAgC,CAAC,IAAI,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;IAC9E,CAAC;IAED,sBAAsB,CACpB,yBAAoD,EACpD,OAAe;QAEf,iCAAiC,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,2BAA2B,CAAC,GAA8B;QACxD,IAAI,CAAC,wBAAwB,GAAG,GAAG,CAAC;IACtC,CAAC;IAED,2BAA2B,CACzB,GAA0C;QAE1C,IAAI,CAAC,wBAAwB,GAAG,GAAG,CAAC;IACtC,CAAC;IAED,2BAA2B,CAAC,GAAY;QACtC,IAAI,CAAC,wBAAwB,GAAG,GAAG,CAAC;IACtC,CAAC;IAED,gCAAgC,CAAC,OAAgB;QAC/C,IAAI,IAAI,CAAC,wBAAwB,EAAE,CAAC;YAClC,MAAM,QAAQ,GACZ,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CACtE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CACpE,CAAC;YACJ,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;gBACpB,2CAA2C,CACzC,IAAI,CAAC,wBAAwB,EAC7B,mCAAmC,CAAC,MAAM,CACxC,QAAQ,CAAC,CAAC,CAAuB,CAClC,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
@@ -13,7 +13,38 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import type
|
17
|
-
|
18
|
-
export declare const
|
16
|
+
import { type DataSpace, type DataSpaceDiagram, type DataSpaceElementPointer, type DataSpaceExecutable, type DataSpaceExecutionContext, type DataSpaceSupportCombinedInfo, type DataSpaceSupportEmail, type DataSpaceSupportInfo } from '@finos/legend-extension-dsl-data-space/graph';
|
17
|
+
import type { PackageableElementReference, Mapping, PackageableRuntime, DataElementReference } from '@finos/legend-graph';
|
18
|
+
export declare const dataSpace_setTitle: (dataSpace: DataSpace, type: string | undefined) => void;
|
19
|
+
export declare const dataSpace_setDescription: (dataSpace: DataSpace, content: string | undefined) => void;
|
20
|
+
export declare const dataSpace_setExecutionContexts: (dataSpace: DataSpace, executionContexts: DataSpaceExecutionContext[]) => void;
|
21
|
+
export declare const dataSpace_setDefaultExecutionContext: (dataSpace: DataSpace, defaultExecutionContext: DataSpaceExecutionContext) => void;
|
22
|
+
export declare const dataSpace_setElements: (dataSpace: DataSpace, elements: DataSpaceElementPointer[] | undefined) => void;
|
23
|
+
export declare const dataSpace_setExecutables: (dataSpace: DataSpace, executables: DataSpaceExecutable[] | undefined) => void;
|
24
|
+
export declare const dataSpace_setDiagrams: (dataSpace: DataSpace, diagrams: DataSpaceDiagram[] | undefined) => void;
|
25
|
+
export declare const dataSpace_setSupportInfo: (dataSpace: DataSpace, supportInfo: DataSpaceSupportInfo | undefined) => void;
|
26
|
+
export declare const dataSpace_addExecutionContext: (dataSpace: DataSpace, executionContext: DataSpaceExecutionContext) => void;
|
27
|
+
export declare const dataSpace_removeExecutionContext: (dataSpace: DataSpace, dataSpaceExecutionContext: DataSpaceExecutionContext) => void;
|
28
|
+
export declare const dataSpace_addElement: (dataSpace: DataSpace, element: DataSpaceElementPointer) => void;
|
29
|
+
export declare const dataSpace_removeElement: (dataSpace: DataSpace, element: DataSpaceElementPointer) => void;
|
30
|
+
export declare const dataSpace_setElementExclude: (element: DataSpaceElementPointer, exclude: boolean) => void;
|
31
|
+
export declare const dataSpace_addExecutable: (dataSpace: DataSpace, executable: DataSpaceExecutable) => void;
|
32
|
+
export declare const dataSpace_removeExecutable: (dataSpace: DataSpace, executable: DataSpaceExecutable) => void;
|
33
|
+
export declare const dataSpace_addDiagram: (dataSpace: DataSpace, diagram: DataSpaceDiagram) => void;
|
34
|
+
export declare const dataSpace_removeDiagram: (dataSpace: DataSpace, diagram: DataSpaceDiagram) => void;
|
35
|
+
export declare const dataSpace_setDiagramTitle: (diagram: DataSpaceDiagram, title: string) => void;
|
36
|
+
export declare const dataSpace_setDiagramDescription: (diagram: DataSpaceDiagram, description: string | undefined) => void;
|
37
|
+
export declare const dataSpace_setExecutionContextName: (executionContext: DataSpaceExecutionContext, name: string) => void;
|
38
|
+
export declare const dataSpace_setExecutionContextTitle: (executionContext: DataSpaceExecutionContext, title: string | undefined) => void;
|
39
|
+
export declare const dataSpace_setExecutionContextDescription: (executionContext: DataSpaceExecutionContext, description: string | undefined) => void;
|
40
|
+
export declare const dataSpace_setExecutionContextMapping: (executionContext: DataSpaceExecutionContext, mapping: PackageableElementReference<Mapping>) => void;
|
41
|
+
export declare const dataSpace_setExecutionContextDefaultRuntime: (executionContext: DataSpaceExecutionContext, defaultRuntime: PackageableElementReference<PackageableRuntime>) => void;
|
42
|
+
export declare const dataSpace_setExecutionContextTestData: (executionContext: DataSpaceExecutionContext, testData: DataElementReference | undefined) => void;
|
43
|
+
export declare const dataSpace_setDocumentationUrl: (supportInfo: DataSpaceSupportInfo, url: string) => void;
|
44
|
+
export declare const dataSpace_email_setSupportInfoEmail: (supportInfo: DataSpaceSupportEmail, email: string) => void;
|
45
|
+
export declare const dataSpace_combined_addEmail: (supportInfo: DataSpaceSupportCombinedInfo, email: string) => void;
|
46
|
+
export declare const dataSpace_combined_deleteEmail: (supportInfo: DataSpaceSupportCombinedInfo, email: string) => void;
|
47
|
+
export declare const dataSpace_combined_setWebsite: (supportInfo: DataSpaceSupportCombinedInfo, website: string) => void;
|
48
|
+
export declare const dataSpace_combined_setFaqUrl: (supportInfo: DataSpaceSupportCombinedInfo, faqUrl: string) => void;
|
49
|
+
export declare const dataSpace_combined_setSupportUrl: (supportInfo: DataSpaceSupportCombinedInfo, supportUrl: string) => void;
|
19
50
|
//# sourceMappingURL=DSL_DataSpace_GraphModifierHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"DSL_DataSpace_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAK1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EACV,2BAA2B,EAC3B,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,kBAAkB,cACjB,SAAS,QAAQ,MAAM,GAAG,SAAS,KAAG,IAGnD,CAAC;AAEF,eAAO,MAAM,wBAAwB,cACvB,SAAS,WAAW,MAAM,GAAG,SAAS,KAAG,IAGtD,CAAC;AAGF,eAAO,MAAM,8BAA8B,cAE5B,SAAS,qBACD,yBAAyB,EAAE,KAC7C,IAGJ,CAAC;AAEF,eAAO,MAAM,oCAAoC,cAElC,SAAS,2BACK,yBAAyB,KACjD,IAGJ,CAAC;AAEF,eAAO,MAAM,qBAAqB,cAEnB,SAAS,YACV,uBAAuB,EAAE,GAAG,SAAS,KAC9C,IAGJ,CAAC;AAEF,eAAO,MAAM,wBAAwB,cAEtB,SAAS,eACP,mBAAmB,EAAE,GAAG,SAAS,KAC7C,IAGJ,CAAC;AAEF,eAAO,MA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