@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.
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_NewDataProductEditor.d.ts","sourceRoot":"","sources":["../../src/components/DSL_NewDataProductEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,eAAO,MAAM,0BAA0B;;CAmCrC,CAAC"}
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 = (value) => {
25
- dataProductDriver.setTitle(value);
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,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACtD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,iBAAiB,GACrB,WAAW,CAAC,eAAe,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IAExE,MAAM,iBAAiB,GAAG,CAAC,K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AAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,uBAAuB,GAA+C,CAC1E,KAAK,EACL,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1D,OAAO,CACL,8BACE,cAAK,SAAS,EAAC,8CAA8C,sBAAY,EACzE,cAAK,SAAS,EAAC,qCAAqC,YAClD,gBACE,SAAS,EAAC,qDAAqD,EAC/D,UAAU,EAAE,KAAK,EACjB,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAC9B,QAAQ,EAAE,iBAAiB,EAC3B,WAAW,EAAE,8DAA8D,GAC3E,GACE,EACN,cAAK,SAAS,EAAC,8CAA8C,4BAEvD,EACN,cAAK,SAAS,EAAC,qCAAqC,YAClD,gBACE,SAAS,EAAC,qDAAqD,EAC/D,UAAU,EAAE,KAAK,EACjB,KAAK,EAAE,iBAAiB,CAAC,WAAW,EACpC,QAAQ,EAAE,uBAAuB,EACjC,WAAW,EAAE,wDAAwD,GACrE,GACE,IACL,CACJ,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.187
1
+ /** @license @finos/legend-extension-dsl-data-space-studio v0.1.189
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
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.187",
3
+ "version": "0.1.189",
4
4
  "description": "Legend extension for Data Space DSL - Studio",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space-studio",
3
- "version": "0.1.187",
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.146",
46
+ "@finos/legend-application-studio": "28.18.148",
47
47
  "@finos/legend-art": "7.1.103",
48
- "@finos/legend-code-editor": "2.0.83",
49
- "@finos/legend-extension-dsl-data-space": "10.4.99",
50
- "@finos/legend-graph": "32.1.41",
51
- "@finos/legend-query-builder": "4.16.52",
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 = (value: string | undefined): void => {
29
- dataProductDriver.setTitle(value);
30
- };
31
-
32
- const handleDescriptionChange = (value: string | undefined): void => {
33
- dataProductDriver.setDescription(value);
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
- <div>
38
- <PanelFormTextField
39
- name="Title"
40
- value={dataProductDriver.title ?? ''}
41
- prompt="Provide a title for this Data Product."
42
- update={handleTitleChange}
43
- placeholder="Enter title"
44
- className="explorer__new-element-modal__driver__dropdown"
45
- />
46
-
47
- <PanelFormTextField
48
- name="Description"
49
- value={dataProductDriver.description ?? ''}
50
- prompt="Provide a description for this Data Product."
51
- update={handleDescriptionChange}
52
- placeholder="Enter description"
53
- className="explorer__new-element-modal__driver__dropdown"
54
- />
55
- </div>
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
  });