UNPKG

@finos/legend-extension-dsl-data-space-studio

Version:
27 lines 2.22 kB
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; /** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { useEditorStore } from '@finos/legend-application-studio'; import { observer } from 'mobx-react-lite'; import { NewDataProductDriver } from './DSL_DataProduct_ElementDriver.js'; export const NewDataProductDriverEditor = observer(() => { const editorStore = useEditorStore(); const dataProductDriver = editorStore.newElementState.getNewElementDriver(NewDataProductDriver); const handleTitleChange = (event) => dataProductDriver.setTitle(event.target.value); const handleDescriptionChange = (event) => dataProductDriver.setDescription(event.target.value); 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` }) })] })); }); //# sourceMappingURL=DSL_NewDataProductEditor.js.map