-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,469 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
nodejs 18.17.1 | ||
yarn 1.22.10 | ||
nodejs 18.19.1 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
|
||
# Chem-Generic-UI Changelog | ||
|
||
## [1.3.0] | ||
> 2024-04-24 | ||
* Features and enhancements: | ||
* Introduce new options to restriction setting for designer | ||
* Introduce the customized field name based on certain conditions for designer | ||
* Introduce the default unit feature for designer | ||
* Introduce the element export function in docx format for user | ||
* Dynamic field columns for designer | ||
* Export and import klass and its template within the same instance or across instances for designer | ||
* Add error handling on export and import klass and its template function | ||
* Add helpers for designer | ||
|
||
* Bug fixes: | ||
* Fix missing options for drag sample | ||
* Fix dynamic column width issue | ||
* Re-label datetime range | ||
* Rename button title | ||
|
||
* Chores: | ||
* Upgrade generic-ui-core | ||
* Bump follow-redirects from 1.15.4 to 1.15.6 | ||
* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 | ||
* Upgrade node | ||
* Bump express from 4.18.2 to 4.19.2 | ||
* Upgrade yarn 1.22.19 | ||
|
||
## [1.1.2] | ||
> 2024-02-29 | ||
* Features and enhancements: | ||
* Introduced the feature to set the match option on the restriction setting. | ||
|
||
* Bug fixes: | ||
* Fixed the issue with the restriction is not functioning properly in the initial view of template. | ||
|
||
## [1.1.1] | ||
> 2024-01-30 | ||
* Features and enhancements: | ||
* Introduced read-only attribute to text field | ||
* Introduced the feature to drag an element sample to a segment | ||
|
||
* Bug fixes: | ||
* Encoding the service URL | ||
* Missing "Assign to Element" when copying a segment | ||
|
||
* Chores: | ||
* Prototype Pollution in Lodash | ||
* Updated README | ||
* Bump follow-redirects from 1.15.2 to 1.15.4 | ||
* Upgraded puma from 5.6.8 to 5.6.9 | ||
* Upgraded follow-redirects from 1.15.5 to 1.16.0 | ||
|
||
## [1.1.0] | ||
|
||
* Features and enhancements: | ||
* Introduced the feature to associate template with Ontology Term. Check the video [here](https://youtu.be/ZJlUtO4DCao?list=PLZoVOhxCsajnl5_tveYUvtD0Y57devzdn). | ||
|
||
## [1.0.12] | ||
> 2024-01-09 | ||
* Bug fixes: | ||
* Breaking page while reload the undefined template | ||
|
||
* Chores: | ||
* Bump @adobe/css-tools from 4.3.1 to 4.3.2 | ||
* Bump @babel/traverse from 7.22.5 to 7.23.2 | ||
* Bump follow-redirects from 1.15.2 to 1.15.4 | ||
|
||
## [1.0.11] | ||
> 2023-11-13 | ||
* Features and enhancements: | ||
* Drag element sample to segment | ||
|
||
* Chores: | ||
* Bump postcss from 8.4.24 to 8.4.31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
$color-green: green; | ||
$color-lightcoral: lightcoral; | ||
$color-lightgray: lightgray; | ||
$color-lightyellow: lightyellow; | ||
$color-red: red; | ||
|
||
$color-background: #eee; | ||
$color-bs-info: #5bc0de; | ||
$color-bs-primary: #337ab7; | ||
$color-bs-warning: #f0ad4e; | ||
$color-btn-success: green; | ||
$color-btn-warning: red; | ||
$color-can-drop: lightgray; | ||
$color-btn-success: $color-green; | ||
$color-btn-warning: $color-red; | ||
$color-can-drop: $color-lightgray; | ||
$color-default: #777; | ||
$color-editable: #fff; | ||
$color-invalid: lightcoral; | ||
$color-invalid: $color-lightcoral; | ||
$color-is-over: #31708f; | ||
$color-readonly: #ddd; | ||
$color-required: lightyellow; | ||
$color-required: $color-lightyellow; | ||
$color-selected-border: #0dcaf0; | ||
$color-attention-emphasis: #9a6700; | ||
$color-halloween: #fe9600; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* eslint-disable react/forbid-prop-types */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Button, OverlayTrigger, Tooltip } from 'react-bootstrap'; | ||
|
||
const BTN_EXPORT_TIP = ( | ||
<Tooltip id="_cgu_tooltip_export">click to export as docx file</Tooltip> | ||
); | ||
|
||
const ButtonExport = props => { | ||
const { generic, fnExport } = props; | ||
if (generic?.is_new) return null; | ||
|
||
const handleExport = () => { | ||
fnExport(generic); | ||
}; | ||
|
||
return ( | ||
<OverlayTrigger placement="top" overlay={BTN_EXPORT_TIP}> | ||
<Button bsSize="xsmall" bsStyle="primary" onClick={() => handleExport()}> | ||
<i className="fa fa-download" aria-hidden="true" /> Export | ||
</Button> | ||
</OverlayTrigger> | ||
); | ||
}; | ||
|
||
ButtonExport.propTypes = { | ||
generic: PropTypes.object, | ||
fnExport: PropTypes.func, | ||
}; | ||
ButtonExport.defaultProps = { | ||
generic: {}, | ||
fnExport: () => {}, | ||
}; | ||
export default ButtonExport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* eslint-disable react/forbid-prop-types */ | ||
import React, { useState } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Button, Glyphicon, OverlayTrigger, Tooltip } from 'react-bootstrap'; | ||
import Constants from '../tools/Constants'; | ||
import UploadKlassModal from '../elements/UploadKlassModal'; | ||
|
||
const AttrUploadBtn = props => { | ||
const { data, fnUpload, genericType } = props; | ||
const [show, setShow] = useState(false); | ||
|
||
if (genericType === Constants.GENERIC_TYPES.DATASET) return null; | ||
|
||
return ( | ||
<> | ||
<OverlayTrigger | ||
placement="top" | ||
overlay={ | ||
<Tooltip id="_tooltip_klass_upload">{`import a ${genericType} and its template`}</Tooltip> | ||
} | ||
> | ||
<Button bsSize="xs" onClick={() => setShow(true)}> | ||
Import <Glyphicon glyph="import" /> | ||
</Button> | ||
</OverlayTrigger> | ||
<UploadKlassModal | ||
data={data} | ||
fnUpload={fnUpload} | ||
genericType={genericType} | ||
showProps={{ show, setShow }} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
AttrUploadBtn.propTypes = { | ||
data: PropTypes.object.isRequired, | ||
genericType: PropTypes.oneOf([ | ||
Constants.GENERIC_TYPES.ELEMENT, | ||
Constants.GENERIC_TYPES.SEGMENT, | ||
Constants.GENERIC_TYPES.DATASET, | ||
]).isRequired, | ||
fnUpload: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default AttrUploadBtn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.