@finos/legend-extension-dsl-data-space-studio 0.1.187 → 0.1.189
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_NewDataProductEditor.d.ts.map +1 -1
- package/lib/components/DSL_NewDataProductEditor.js +4 -9
- package/lib/components/DSL_NewDataProductEditor.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +6 -6
- package/src/components/DSL_NewDataProductEditor.tsx +30 -27
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_NewDataProductEditor.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataProductEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DSL_NewDataProductEditor.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataProductEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,eAAO,MAAM,0BAA0B;;CAuCrC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
4
|
*
|
@@ -15,18 +15,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { useEditorStore } from '@finos/legend-application-studio';
|
18
|
-
import { PanelFormTextField } from '@finos/legend-art';
|
19
18
|
import { observer } from 'mobx-react-lite';
|
20
19
|
import { NewDataProductDriver } from './DSL_DataProduct_ElementDriver.js';
|
21
20
|
export const NewDataProductDriverEditor = observer(() => {
|
22
21
|
const editorStore = useEditorStore();
|
23
22
|
const dataProductDriver = editorStore.newElementState.getNewElementDriver(NewDataProductDriver);
|
24
|
-
const handleTitleChange = (
|
25
|
-
|
26
|
-
};
|
27
|
-
const handleDescriptionChange = (value) => {
|
28
|
-
dataProductDriver.setDescription(value);
|
29
|
-
};
|
30
|
-
return (_jsxs("div", { children: [_jsx(PanelFormTextField, { name: "Title", value: dataProductDriver.title ?? '', prompt: "Provide a title for this Data Product.", update: handleTitleChange, placeholder: "Enter title", className: "explorer__new-element-modal__driver__dropdown" }), _jsx(PanelFormTextField, { name: "Description", value: dataProductDriver.description ?? '', prompt: "Provide a description for this Data Product.", update: handleDescriptionChange, placeholder: "Enter description", className: "explorer__new-element-modal__driver__dropdown" })] }));
|
23
|
+
const handleTitleChange = (event) => dataProductDriver.setTitle(event.target.value);
|
24
|
+
const handleDescriptionChange = (event) => dataProductDriver.setDescription(event.target.value);
|
25
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Title" }), _jsx("div", { className: "explorer__new-element-modal__driver", children: _jsx("input", { className: "input--dark explorer__new-element-modal__name-input", spellCheck: false, value: dataProductDriver.title, onChange: handleTitleChange, placeholder: `Choose a title for this Data Product to display to consumers` }) }), _jsx("div", { className: "panel__content__form__section__header__label", children: "Description" }), _jsx("div", { className: "explorer__new-element-modal__driver", children: _jsx("input", { className: "input--dark explorer__new-element-modal__name-input", spellCheck: false, value: dataProductDriver.description, onChange: handleDescriptionChange, placeholder: `Provide a meaningful description for this Data Product` }) })] }));
|
31
26
|
});
|
32
27
|
//# sourceMappingURL=DSL_NewDataProductEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_NewDataProductEditor.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataProductEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DSL_NewDataProductEditor.js","sourceRoot":"","sources":["../../src/components/DSL_NewDataProductEdit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ED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space-studio",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.189",
|
4
4
|
"description": "Legend extension for Data Space DSL - Studio",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,12 +43,12 @@
|
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
45
|
"@finos/legend-application": "16.0.49",
|
46
|
-
"@finos/legend-application-studio": "28.18.
|
46
|
+
"@finos/legend-application-studio": "28.18.148",
|
47
47
|
"@finos/legend-art": "7.1.103",
|
48
|
-
"@finos/legend-code-editor": "2.0.
|
49
|
-
"@finos/legend-extension-dsl-data-space": "10.4.
|
50
|
-
"@finos/legend-graph": "32.1.
|
51
|
-
"@finos/legend-query-builder": "4.16.
|
48
|
+
"@finos/legend-code-editor": "2.0.84",
|
49
|
+
"@finos/legend-extension-dsl-data-space": "10.4.101",
|
50
|
+
"@finos/legend-graph": "32.1.42",
|
51
|
+
"@finos/legend-query-builder": "4.16.54",
|
52
52
|
"@finos/legend-server-depot": "6.0.92",
|
53
53
|
"@finos/legend-server-sdlc": "5.3.58",
|
54
54
|
"@finos/legend-shared": "11.0.13",
|
@@ -15,7 +15,6 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { useEditorStore } from '@finos/legend-application-studio';
|
18
|
-
import { PanelFormTextField } from '@finos/legend-art';
|
19
18
|
import { observer } from 'mobx-react-lite';
|
20
19
|
import { NewDataProductDriver } from './DSL_DataProduct_ElementDriver.js';
|
21
20
|
|
@@ -25,33 +24,37 @@ export const NewDataProductDriverEditor = observer(() => {
|
|
25
24
|
const dataProductDriver =
|
26
25
|
editorStore.newElementState.getNewElementDriver(NewDataProductDriver);
|
27
26
|
|
28
|
-
const handleTitleChange = (
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
};
|
27
|
+
const handleTitleChange: React.ChangeEventHandler<HTMLInputElement> = (
|
28
|
+
event,
|
29
|
+
) => dataProductDriver.setTitle(event.target.value);
|
30
|
+
const handleDescriptionChange: React.ChangeEventHandler<HTMLInputElement> = (
|
31
|
+
event,
|
32
|
+
) => dataProductDriver.setDescription(event.target.value);
|
35
33
|
|
36
34
|
return (
|
37
|
-
|
38
|
-
<
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
35
|
+
<>
|
36
|
+
<div className="panel__content__form__section__header__label">Title</div>
|
37
|
+
<div className="explorer__new-element-modal__driver">
|
38
|
+
<input
|
39
|
+
className="input--dark explorer__new-element-modal__name-input"
|
40
|
+
spellCheck={false}
|
41
|
+
value={dataProductDriver.title}
|
42
|
+
onChange={handleTitleChange}
|
43
|
+
placeholder={`Choose a title for this Data Product to display to consumers`}
|
44
|
+
/>
|
45
|
+
</div>
|
46
|
+
<div className="panel__content__form__section__header__label">
|
47
|
+
Description
|
48
|
+
</div>
|
49
|
+
<div className="explorer__new-element-modal__driver">
|
50
|
+
<input
|
51
|
+
className="input--dark explorer__new-element-modal__name-input"
|
52
|
+
spellCheck={false}
|
53
|
+
value={dataProductDriver.description}
|
54
|
+
onChange={handleDescriptionChange}
|
55
|
+
placeholder={`Provide a meaningful description for this Data Product`}
|
56
|
+
/>
|
57
|
+
</div>
|
58
|
+
</>
|
56
59
|
);
|
57
60
|
});
|