@datagrok/helm 2.7.3 → 2.8.0
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/CHANGELOG.md +8 -0
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +2 -2
- package/src/package.ts +9 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/helm",
|
|
3
3
|
"friendlyName": "Helm",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Maria Dolotova",
|
|
7
7
|
"email": "mdolotova@datagrok.ai"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"css/helm.css"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@datagrok-libraries/bio": "^5.
|
|
19
|
+
"@datagrok-libraries/bio": "^5.50.0",
|
|
20
20
|
"@datagrok-libraries/chem-meta": "^1.2.7",
|
|
21
21
|
"cash-dom": "^8.1.1",
|
|
22
22
|
"@datagrok-libraries/utils": "^4.4.0",
|
package/src/package.ts
CHANGED
|
@@ -103,11 +103,11 @@ export function editMoleculeCell(cell: DG.GridCell): void {
|
|
|
103
103
|
checkMonomersAndOpenWebEditor(cell, undefined, undefined);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
//name:
|
|
106
|
+
//name: Edit Helm...
|
|
107
107
|
//description: Adds editor
|
|
108
|
-
//meta.action:
|
|
109
|
-
//input:
|
|
110
|
-
export function openEditor(mol:
|
|
108
|
+
//meta.action: Edit Helm...
|
|
109
|
+
//input: semantic_value mol { semType: Macromolecule }
|
|
110
|
+
export function openEditor(mol: DG.SemanticValue): void {
|
|
111
111
|
const df = grok.shell.tv.grid.dataFrame;
|
|
112
112
|
const col = df.columns.bySemType('Macromolecule')! as DG.Column<string>;
|
|
113
113
|
const colSh = _package.seqHelper.getSeqHandler(col);
|
|
@@ -117,9 +117,11 @@ export function openEditor(mol: string): void {
|
|
|
117
117
|
const gCell = DG.GridCell.fromColumnRow(grok.shell.tv.grid, col.name, df.currentRowIdx);
|
|
118
118
|
if (colUnits === NOTATION.HELM)
|
|
119
119
|
checkMonomersAndOpenWebEditor(gCell, undefined, undefined);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
else {
|
|
121
|
+
const convert = colSh.getConverter(NOTATION.HELM);
|
|
122
|
+
const helmMol = convert(mol.value);
|
|
123
|
+
checkMonomersAndOpenWebEditor(gCell, helmMol, col.meta.units!);
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
//name: Properties
|