@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/helm",
3
3
  "friendlyName": "Helm",
4
- "version": "2.7.3",
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.49.0",
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: Open Helm Web Editor
106
+ //name: Edit Helm...
107
107
  //description: Adds editor
108
- //meta.action: Open Helm Web Editor
109
- //input: string mol { semType: Macromolecule }
110
- export function openEditor(mol: string): void {
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
- const convert = colSh.getConverter(NOTATION.HELM);
121
- const helmMol = convert(mol);
122
- checkMonomersAndOpenWebEditor(gCell, helmMol, col.meta.units!);
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