@finos/legend-extension-dsl-data-space-studio 0.1.45 → 0.1.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts +4 -1
  2. package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
  3. package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js +25 -2
  4. package/lib/components/DSL_DataSpace_LegendStudioApplicationPlugin.js.map +1 -1
  5. package/lib/components/DataSpaceEditor.d.ts +19 -0
  6. package/lib/components/DataSpaceEditor.d.ts.map +1 -0
  7. package/lib/components/DataSpaceEditor.js +34 -0
  8. package/lib/components/DataSpaceEditor.js.map +1 -0
  9. package/lib/editor/dataSpace/data-space-editor.css +1 -0
  10. package/lib/editor/dataSpace/data-space-editor.css.map +1 -0
  11. package/lib/index.css +2 -2
  12. package/lib/index.css.map +1 -1
  13. package/lib/package.json +1 -1
  14. package/lib/stores/DataSpaceEditorState.d.ts +24 -0
  15. package/lib/stores/DataSpaceEditorState.d.ts.map +1 -0
  16. package/lib/stores/DataSpaceEditorState.js +36 -0
  17. package/lib/stores/DataSpaceEditorState.js.map +1 -0
  18. package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts +19 -0
  19. package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.d.ts.map +1 -0
  20. package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js +23 -0
  21. package/lib/stores/studio/DSL_DataSpace_GraphModifierHelper.js.map +1 -0
  22. package/package.json +9 -9
  23. package/src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx +31 -1
  24. package/src/components/DataSpaceEditor.tsx +67 -0
  25. package/src/stores/DataSpaceEditorState.ts +51 -0
  26. package/src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts +30 -0
  27. package/tsconfig.json +3 -0
@@ -13,7 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type NewElementFromStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorStateCreator, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter, LegendStudioApplicationPlugin, type ExplorerContextMenuItemRendererConfiguration, type EditorExtensionStateBuilder, type EditorExtensionComponentRendererConfiguration } from '@finos/legend-application-studio';
16
+ import { type NewElementFromStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorStateCreator, type ElementEditorState, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter, LegendStudioApplicationPlugin, type ExplorerContextMenuItemRendererConfiguration, type EditorExtensionStateBuilder, type EditorExtensionComponentRendererConfiguration } from '@finos/legend-application-studio';
17
+ import { type ElementObserver } from '@finos/legend-graph';
17
18
  import type { ApplicationPageEntry } from '@finos/legend-application';
18
19
  export declare class DSL_DataSpace_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
19
20
  constructor();
@@ -28,7 +29,9 @@ export declare class DSL_DataSpace_LegendStudioApplicationPlugin extends LegendS
28
29
  getExtraElementClassifiers(): ElementClassifier[];
29
30
  getExtraElementIconGetters(): ElementIconGetter[];
30
31
  getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
32
+ getExtraElementEditorRenderers(): ((editorState: ElementEditorState) => React.ReactNode)[];
31
33
  getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
34
+ getExtraElementObservers(): ElementObserver[];
32
35
  getExtraDragElementClassifiers(): DragElementClassifier[];
33
36
  getExtraPureGrammarTextEditorDragElementTypes(): string[];
34
37
  getExtraPureGrammarParserElementDocumentationGetters(): PureGrammarParserElementDocumentationGetter[];
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC7B,KAAK,4CAA4C,EACjD,KAAK,2BAA2B,EAChC,KAAK,6CAA6C,EAEnD,MAAM,kCAAkC,CAAC;AAO1C,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AA2BnC,qBAAa,2CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAO7C,8BAA8B,IAAI,oBAAoB,EAAE;IAYxD,qDAAqD,IAAI,4CAA4C,EAAE;IAuBvG,oCAAoC,IAAI,2BAA2B,EAAE;IAIrE,sDAAsD,IAAI,6CAA6C,EAAE;IASlH,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,yCAAyC,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASnE,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAE9B,KAAK,kBAAkB,EACvB,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gDAAgD,EACrD,6BAA6B,EAC7B,KAAK,4CAA4C,EACjD,KAAK,2BAA2B,EAChC,KAAK,6CAA6C,EAGnD,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AA+BnC,qBAAa,2CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAO7C,8BAA8B,IAAI,oBAAoB,EAAE;IAYxD,qDAAqD,IAAI,4CAA4C,EAAE;IAuBvG,oCAAoC,IAAI,2BAA2B,EAAE;IAIrE,sDAAsD,IAAI,6CAA6C,EAAE;IASlH,2BAA2B,IAAI,MAAM,EAAE;IAIvC,6BAA6B,IAAI,MAAM,EAAE;IAIzC,yCAAyC,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASnE,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,8BAA8B,IAAI,CAAC,CACjC,WAAW,EAAE,kBAAkB,KAC5B,KAAK,CAAC,SAAS,CAAC,EAAE;IAWvB,kCAAkC,IAAI,yBAAyB,EAAE;IAejE,wBAAwB,IAAI,eAAe,EAAE;IAW7C,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
@@ -15,9 +15,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import packageJson from '../../package.json' assert { type: 'json' };
18
- import { UnsupportedElementEditorState, LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, } from '@finos/legend-application-studio';
18
+ import { LegendStudioApplicationPlugin, PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY, UnsupportedElementEditorState, } from '@finos/legend-application-studio';
19
19
  import { PackageableElementExplicitReference, stub_Mapping, stub_PackageableRuntime, } from '@finos/legend-graph';
20
- import { DataSpace, DataSpaceExecutionContext, } from '@finos/legend-extension-dsl-data-space/graph';
20
+ import { DataSpace, DataSpaceExecutionContext, observe_DataSpace, } from '@finos/legend-extension-dsl-data-space/graph';
21
21
  import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../__lib__/DSL_DataSpace_LegendStudioDocumentation.js';
22
22
  import { DataSpacePreviewState } from '../stores/DataSpacePreviewState.js';
23
23
  import { SIMPLE_DATA_SPACE_SNIPPET } from '../__lib__/DSL_DataSpace_LegendStudioCodeSnippet.js';
@@ -25,6 +25,8 @@ import { DATA_SPACE_STUDIO_ROUTE_PATTERN, DataSpaceIcon, } from '@finos/legend-e
25
25
  import { DataSpaceTemplateQueryPromotionReviewer } from './DataSpaceTemplateQueryPromoteReview.js';
26
26
  import { DataSpaceQueryAction } from './DataSpaceQueryAction.js';
27
27
  import { DataSpacePreviewAction, DataSpacePreviewDialog, } from './DataSpacePreviewAction.js';
28
+ import { DataSpaceEditorState } from '../stores/DataSpaceEditorState.js';
29
+ import { DataSpaceEditor } from './DataSpaceEditor.js';
28
30
  const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
29
31
  const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DATA_SPACE';
30
32
  const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
@@ -133,11 +135,32 @@ export class DSL_DataSpace_LegendStudioApplicationPlugin extends LegendStudioApp
133
135
  },
134
136
  ];
135
137
  }
138
+ getExtraElementEditorRenderers() {
139
+ return [
140
+ (editorState) => {
141
+ if (editorState instanceof DataSpaceEditorState) {
142
+ return _jsx(DataSpaceEditor, {}, editorState.uuid);
143
+ }
144
+ return undefined;
145
+ },
146
+ ];
147
+ }
136
148
  getExtraElementEditorStateCreators() {
137
149
  return [
138
150
  (editorStore, element) => {
139
151
  if (element instanceof DataSpace) {
140
152
  return new UnsupportedElementEditorState(editorStore, element);
153
+ // return new DataSpaceEditorState(editorStore, element);
154
+ }
155
+ return undefined;
156
+ },
157
+ ];
158
+ }
159
+ getExtraElementObservers() {
160
+ return [
161
+ (element) => {
162
+ if (element instanceof DataSpace) {
163
+ return observe_DataSpace(element);
141
164
  }
142
165
  return undefined;
143
166
  },
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACrE,OAAO,EAcL,6BAA6B,EAC7B,6BAA6B,EAI7B,qCAAqC,GACtC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mCAAmC,EACnC,YAAY,EACZ,uBAAuB,GAExB,MAAM,qBA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BACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSL_DataSpace_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACrE,OAAO,EAcL,6BAA6B,EAI7B,qCAAqC,EACrC,6BAA6B,GAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mCAAmC,EACnC,YAAY,EACZ,uBAAuB,GAGxB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EACL,SAAS,EACT,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,8CAA8C,EAAE,MAAM,uDAAuD,CAAC;AACvH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EACL,+BAA+B,EAC/B,aAAa,GACd,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAC7C,MAAM,4CAA4C,GAChD,6BAA6B,CAAC;AAEhC,MAAM,mCAAmC,GAAG,WAAW,CAAC;AACxD,MAAM,0CAA0C,GAAG,WAAW,CAAC;AAE/D,MAAM,OAAO,2CACX,SAAQ,6BAA6B;IAGrC;QAC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aAAa,KAAK,mCAAmC,EAAE,CAAC;oBAC1D,IAAI,cAAc,KAAK,0CAA0C,EAAE,CAAC;wBAClE,OAAO,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAClE,8CAA8C,CAAC,0BAA0B,CAC1E,CAAC;oBACJ,CAAC;gBACH,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,6CAA6C;QAC3C,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACW,EAAE;gBAClC,IAAI,aAAa,KAAK,mCAAmC,EAAE,CAAC;oBAC1D,OAAO,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAClE,8CAA8C,CAAC,cAAc,CAC9D,CAAC;gBACJ,CAAC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iDAAiD;QAC/C,OAAO;YACL,CAAC,WAAwB,EAA+B,EAAE,CAAC;gBACzD;oBACE,IAAI,EAAE,mCAAmC;oBACzC,WAAW,EAAE,OAAO;oBACpB,aAAa,EACX,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAC3D,8CAA8C,CAAC,cAAc,CAC9D;oBACH,UAAU,EAAE,mCAAmC;iBAChD;aACF;SACF,CAAC;IACJ,CAAC;IAED,yDAAyD;QACvD,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACoB,EAAE,CAC3C,aAAa,KAAK,mCAAmC;gBACnD,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,0CAA0C;wBAChD,UAAU,EAAE,yBAAyB;qBACtC;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,19 @@
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
+ export declare const DataSpaceEditor: (() => import("react/jsx-runtime").JSX.Element) & {
17
+ displayName: string;
18
+ };
19
+ //# sourceMappingURL=DataSpaceEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceEditor.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,eAAO,MAAM,eAAe;;CAyC1B,CAAC"}
@@ -0,0 +1,34 @@
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 { observer } from 'mobx-react-lite';
18
+ import { useEditorStore } from '@finos/legend-application-studio';
19
+ import { PanelFormTextField } from '@finos/legend-art';
20
+ import { DataSpaceEditorState } from '../stores/DataSpaceEditorState.js';
21
+ import { set_description, set_title, } from '../stores/studio/DSL_DataSpace_GraphModifierHelper.js';
22
+ export const DataSpaceEditor = observer(() => {
23
+ const editorStore = useEditorStore();
24
+ const formEditorState = editorStore.tabManagerState.getCurrentEditorState(DataSpaceEditorState);
25
+ const formElement = formEditorState.dataSpace;
26
+ const handleTitleChange = (value) => {
27
+ set_title(formElement, value);
28
+ };
29
+ const handleDescriptionChange = (value) => {
30
+ set_description(formElement, value);
31
+ };
32
+ return (_jsxs("div", { className: "dataSpace-editor panel dataSpace-editor--dark", children: [_jsx("div", { className: "panel__content__form", children: _jsx("div", { className: "panel__content__form__section", children: _jsx(PanelFormTextField, { name: "Data Space Title", value: formElement.title ?? '', prompt: "Data Space title is the user facing name for the Data Space. It used in downstream applications as the default identifier for this Data Space. When not provided, the DataSpace name property is used", update: handleTitleChange, placeholder: "Enter title" }) }) }), _jsx("div", { className: "panel__content__form", children: _jsx("div", { className: "panel__content__form__section", children: _jsx(PanelFormTextField, { name: "Data Space Description", value: formElement.description ?? '', update: handleDescriptionChange, placeholder: "Enter Description" }) }) })] }));
33
+ });
34
+ //# sourceMappingURL=DataSpaceEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceEditor.js","sourceRoot":"","sources":["../../src/components/DataSpaceEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,eAAe,EACf,SAAS,GACV,MAAM,uDAAuD,CAAC;AAE/D,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC3C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,eAAe,GACnB,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAE1E,MAAM,WAAW,GAAG,eAAe,CAAC,SAAS,CAAC;IAE9C,MAAM,iBAAiB,GAAG,CAAC,KAAyB,EAAQ,EAAE;QAC5D,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC;IAEF,MAAM,uBAAuB,GAAG,CAAC,KAAyB,EAAQ,EAAE;QAClE,eAAe,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,+CAA+C,aAC5D,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,kBAAkB,IACjB,IAAI,EAAC,kBAAkB,EACvB,KAAK,EAAE,WAAW,CAAC,KAAK,IAAI,EAAE,EAC9B,MAAM,EAAC,uMAAuM,EAC9M,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAC,aAAa,GACzB,GACE,GACF,EACN,cAAK,SAAS,EAAC,sBAAsB,YACnC,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,kBAAkB,IACjB,IAAI,EAAC,wBAAwB,EAC7B,KAAK,EAAE,WAAW,CAAC,WAAW,IAAI,EAAE,EACpC,MAAM,EAAE,uBAAuB,EAC/B,WAAW,EAAC,mBAAmB,GAC/B,GACE,GACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ .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=data-space-editor.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../../../style/editor/dataSpace/data-space-editor.scss"],"names":[],"mappings":"AAmBE,gCACE,eACA,qCAEA,yCACE,aACA,WAGF,sCACE,sCACA,8CACA,gCAGF,mDACE","file":"data-space-editor.css"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space-studio v0.1.45
1
+ /** @license @finos/legend-extension-dsl-data-space-studio v0.1.46
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}/*# 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)}/*# 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"],"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","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_data-space-template-query-promotor.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/editor/dataSpace/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"}
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.45",
3
+ "version": "0.1.46",
4
4
  "description": "Legend extension for Data Space DSL - Studio",
5
5
  "keywords": [
6
6
  "legend",
@@ -0,0 +1,24 @@
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, ElementEditorState } from '@finos/legend-application-studio';
17
+ import type { PackageableElement } from '@finos/legend-graph';
18
+ import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
19
+ export declare class DataSpaceEditorState extends ElementEditorState {
20
+ constructor(editorStore: EditorStore, element: PackageableElement);
21
+ get dataSpace(): DataSpace;
22
+ reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
23
+ }
24
+ //# sourceMappingURL=DataSpaceEditorState.d.ts.map
@@ -0,0 +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,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAGzE,qBAAa,oBAAqB,SAAQ,kBAAkB;gBAC9C,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IASjE,IAAI,SAAS,IAAI,SAAS,CAMzB;IAEQ,SAAS,CAChB,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
@@ -0,0 +1,36 @@
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, computed, makeObservable } from 'mobx';
17
+ import { ElementEditorState, } from '@finos/legend-application-studio';
18
+ import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
19
+ import { guaranteeType } from '@finos/legend-shared';
20
+ export class DataSpaceEditorState extends ElementEditorState {
21
+ constructor(editorStore, element) {
22
+ super(editorStore, element);
23
+ makeObservable(this, {
24
+ dataSpace: computed,
25
+ reprocess: action,
26
+ });
27
+ }
28
+ get dataSpace() {
29
+ return guaranteeType(this.element, DataSpace, 'Element inside text element editor state must be a text element');
30
+ }
31
+ reprocess(newElement, editorStore) {
32
+ const newState = new DataSpaceEditorState(editorStore, newElement);
33
+ return newState;
34
+ }
35
+ }
36
+ //# sourceMappingURL=DataSpaceEditorState.js.map
@@ -0,0 +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;AACxD,OAAO,EAEL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,oBAAqB,SAAQ,kBAAkB;IAC1D,YAAY,WAAwB,EAAE,OAA2B;QAC/D,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,MAAM;SAClB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,SAAS;QACX,OAAO,aAAa,CAClB,IAAI,CAAC,OAAO,EACZ,SAAS,EACT,iEAAiE,CAClE,CAAC;IACJ,CAAC;IAEQ,SAAS,CAChB,UAA8B,EAC9B,WAAwB;QAExB,MAAM,QAAQ,GAAG,IAAI,oBAAoB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACnE,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
@@ -0,0 +1,19 @@
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 { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
17
+ export declare const set_title: (dataSpace: DataSpace, type: string | undefined) => void;
18
+ export declare const set_description: (dataSpace: DataSpace, content: string | undefined) => void;
19
+ //# sourceMappingURL=DSL_DataSpace_GraphModifierHelper.d.ts.map
@@ -0,0 +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,8CAA8C,CAAC;AAE9E,eAAO,MAAM,SAAS,cACR,SAAS,QAAQ,MAAM,GAAG,SAAS,KAAG,IAGnD,CAAC;AAEF,eAAO,MAAM,eAAe,cACd,SAAS,WAAW,MAAM,GAAG,SAAS,KAAG,IAGtD,CAAC"}
@@ -0,0 +1,23 @@
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 } from 'mobx';
17
+ export const set_title = action((dataSpace, type) => {
18
+ dataSpace.title = type;
19
+ });
20
+ export const set_description = action((dataSpace, content) => {
21
+ dataSpace.description = content;
22
+ });
23
+ //# sourceMappingURL=DSL_DataSpace_GraphModifierHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSL_DataSpace_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG9B,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAC7B,CAAC,SAAoB,EAAE,IAAwB,EAAQ,EAAE;IACvD,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC;AACzB,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CACnC,CAAC,SAAoB,EAAE,OAA2B,EAAQ,EAAE;IAC1D,SAAS,CAAC,WAAW,GAAG,OAAO,CAAC;AAClC,CAAC,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space-studio",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Legend extension for Data Space DSL - Studio",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,14 +42,14 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.1.19",
46
- "@finos/legend-application-studio": "28.18.9",
47
- "@finos/legend-art": "7.1.47",
48
- "@finos/legend-extension-dsl-data-space": "10.3.45",
49
- "@finos/legend-query-builder": "4.14.67",
50
- "@finos/legend-server-depot": "6.0.54",
51
- "@finos/legend-server-sdlc": "5.3.25",
52
- "@finos/legend-shared": "10.0.49",
45
+ "@finos/legend-application": "15.1.20",
46
+ "@finos/legend-application-studio": "28.18.10",
47
+ "@finos/legend-art": "7.1.48",
48
+ "@finos/legend-extension-dsl-data-space": "10.3.46",
49
+ "@finos/legend-query-builder": "4.14.68",
50
+ "@finos/legend-server-depot": "6.0.55",
51
+ "@finos/legend-server-sdlc": "5.3.26",
52
+ "@finos/legend-shared": "10.0.50",
53
53
  "mobx": "6.13.1",
54
54
  "mobx-react-lite": "4.0.7"
55
55
  },
@@ -29,17 +29,18 @@ import {
29
29
  type PureGrammarParserDocumentationGetter,
30
30
  type PureGrammarParserKeywordSuggestionGetter,
31
31
  type PureGrammarParserElementSnippetSuggestionsGetter,
32
- UnsupportedElementEditorState,
33
32
  LegendStudioApplicationPlugin,
34
33
  type ExplorerContextMenuItemRendererConfiguration,
35
34
  type EditorExtensionStateBuilder,
36
35
  type EditorExtensionComponentRendererConfiguration,
37
36
  PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY,
37
+ UnsupportedElementEditorState,
38
38
  } from '@finos/legend-application-studio';
39
39
  import {
40
40
  PackageableElementExplicitReference,
41
41
  stub_Mapping,
42
42
  stub_PackageableRuntime,
43
+ type ElementObserver,
43
44
  type PackageableElement,
44
45
  } from '@finos/legend-graph';
45
46
  import type {
@@ -50,6 +51,7 @@ import type { PureGrammarTextSuggestion } from '@finos/legend-lego/code-editor';
50
51
  import {
51
52
  DataSpace,
52
53
  DataSpaceExecutionContext,
54
+ observe_DataSpace,
53
55
  } from '@finos/legend-extension-dsl-data-space/graph';
54
56
  import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../__lib__/DSL_DataSpace_LegendStudioDocumentation.js';
55
57
  import { DataSpacePreviewState } from '../stores/DataSpacePreviewState.js';
@@ -65,6 +67,9 @@ import {
65
67
  DataSpacePreviewDialog,
66
68
  } from './DataSpacePreviewAction.js';
67
69
 
70
+ import { DataSpaceEditorState } from '../stores/DataSpaceEditorState.js';
71
+ import { DataSpaceEditor } from './DataSpaceEditor.js';
72
+
68
73
  const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
69
74
  const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE =
70
75
  'PROJECT_EXPLORER_DATA_SPACE';
@@ -200,6 +205,19 @@ export class DSL_DataSpace_LegendStudioApplicationPlugin
200
205
  ];
201
206
  }
202
207
 
208
+ getExtraElementEditorRenderers(): ((
209
+ editorState: ElementEditorState,
210
+ ) => React.ReactNode)[] {
211
+ return [
212
+ (editorState: ElementEditorState): React.ReactNode | undefined => {
213
+ if (editorState instanceof DataSpaceEditorState) {
214
+ return <DataSpaceEditor key={editorState.uuid} />;
215
+ }
216
+ return undefined;
217
+ },
218
+ ];
219
+ }
220
+
203
221
  getExtraElementEditorStateCreators(): ElementEditorStateCreator[] {
204
222
  return [
205
223
  (
@@ -208,6 +226,18 @@ export class DSL_DataSpace_LegendStudioApplicationPlugin
208
226
  ): ElementEditorState | undefined => {
209
227
  if (element instanceof DataSpace) {
210
228
  return new UnsupportedElementEditorState(editorStore, element);
229
+ // return new DataSpaceEditorState(editorStore, element);
230
+ }
231
+ return undefined;
232
+ },
233
+ ];
234
+ }
235
+
236
+ getExtraElementObservers(): ElementObserver[] {
237
+ return [
238
+ (element: PackageableElement): PackageableElement | undefined => {
239
+ if (element instanceof DataSpace) {
240
+ return observe_DataSpace(element);
211
241
  }
212
242
  return undefined;
213
243
  },
@@ -0,0 +1,67 @@
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
+
17
+ import { observer } from 'mobx-react-lite';
18
+ import { useEditorStore } from '@finos/legend-application-studio';
19
+ import { PanelFormTextField } from '@finos/legend-art';
20
+ import { DataSpaceEditorState } from '../stores/DataSpaceEditorState.js';
21
+ import {
22
+ set_description,
23
+ set_title,
24
+ } from '../stores/studio/DSL_DataSpace_GraphModifierHelper.js';
25
+
26
+ export const DataSpaceEditor = observer(() => {
27
+ const editorStore = useEditorStore();
28
+
29
+ const formEditorState =
30
+ editorStore.tabManagerState.getCurrentEditorState(DataSpaceEditorState);
31
+
32
+ const formElement = formEditorState.dataSpace;
33
+
34
+ const handleTitleChange = (value: string | undefined): void => {
35
+ set_title(formElement, value);
36
+ };
37
+
38
+ const handleDescriptionChange = (value: string | undefined): void => {
39
+ set_description(formElement, value);
40
+ };
41
+
42
+ return (
43
+ <div className="dataSpace-editor panel dataSpace-editor--dark">
44
+ <div className="panel__content__form">
45
+ <div className="panel__content__form__section">
46
+ <PanelFormTextField
47
+ name="Data Space Title"
48
+ value={formElement.title ?? ''}
49
+ prompt="Data Space title is the user facing name for the Data Space. It used in downstream applications as the default identifier for this Data Space. When not provided, the DataSpace name property is used"
50
+ update={handleTitleChange}
51
+ placeholder="Enter title"
52
+ />
53
+ </div>
54
+ </div>
55
+ <div className="panel__content__form">
56
+ <div className="panel__content__form__section">
57
+ <PanelFormTextField
58
+ name="Data Space Description"
59
+ value={formElement.description ?? ''}
60
+ update={handleDescriptionChange}
61
+ placeholder="Enter Description"
62
+ />
63
+ </div>
64
+ </div>
65
+ </div>
66
+ );
67
+ });
@@ -0,0 +1,51 @@
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
+
17
+ import { action, computed, makeObservable } from 'mobx';
18
+ import {
19
+ type EditorStore,
20
+ ElementEditorState,
21
+ } from '@finos/legend-application-studio';
22
+ import type { PackageableElement } from '@finos/legend-graph';
23
+ import { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
24
+ import { guaranteeType } from '@finos/legend-shared';
25
+
26
+ export class DataSpaceEditorState extends ElementEditorState {
27
+ constructor(editorStore: EditorStore, element: PackageableElement) {
28
+ super(editorStore, element);
29
+
30
+ makeObservable(this, {
31
+ dataSpace: computed,
32
+ reprocess: action,
33
+ });
34
+ }
35
+
36
+ get dataSpace(): DataSpace {
37
+ return guaranteeType(
38
+ this.element,
39
+ DataSpace,
40
+ 'Element inside text element editor state must be a text element',
41
+ );
42
+ }
43
+
44
+ override reprocess(
45
+ newElement: PackageableElement,
46
+ editorStore: EditorStore,
47
+ ): ElementEditorState {
48
+ const newState = new DataSpaceEditorState(editorStore, newElement);
49
+ return newState;
50
+ }
51
+ }
@@ -0,0 +1,30 @@
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
+
17
+ import { action } from 'mobx';
18
+ import type { DataSpace } from '@finos/legend-extension-dsl-data-space/graph';
19
+
20
+ export const set_title = action(
21
+ (dataSpace: DataSpace, type: string | undefined): void => {
22
+ dataSpace.title = type;
23
+ },
24
+ );
25
+
26
+ export const set_description = action(
27
+ (dataSpace: DataSpace, content: string | undefined): void => {
28
+ dataSpace.description = content;
29
+ },
30
+ );
package/tsconfig.json CHANGED
@@ -51,9 +51,12 @@
51
51
  "./src/index.ts",
52
52
  "./src/__lib__/DSL_DataSpace_LegendStudioCodeSnippet.ts",
53
53
  "./src/__lib__/DSL_DataSpace_LegendStudioDocumentation.ts",
54
+ "./src/stores/DataSpaceEditorState.ts",
54
55
  "./src/stores/DataSpacePreviewState.ts",
55
56
  "./src/stores/DataSpaceTemplateQueryPromotionReviewerStore.ts",
57
+ "./src/stores/studio/DSL_DataSpace_GraphModifierHelper.ts",
56
58
  "./src/components/DSL_DataSpace_LegendStudioApplicationPlugin.tsx",
59
+ "./src/components/DataSpaceEditor.tsx",
57
60
  "./src/components/DataSpacePreviewAction.tsx",
58
61
  "./src/components/DataSpaceQueryAction.tsx",
59
62
  "./src/components/DataSpaceTemplateQueryPromoteReview.tsx"