@teselagen/ove 0.5.31-beta.1 → 0.5.31-beta.3
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/helperComponents/PropertiesDialog/utils.d.ts +5 -5
- package/index.cjs.js +173 -172
- package/index.es.js +173 -172
- package/index.umd.js +193 -183
- package/package.json +2 -2
- package/src/helperComponents/AddOrEditAnnotationDialog/index.js +1 -1
- package/src/helperComponents/AddOrEditPrimerDialog/index.js +1 -3
- package/src/helperComponents/EnzymesDialog/index.js +0 -1
- package/src/helperComponents/PropertiesDialog/GenericAnnotationProperties.js +52 -50
- package/src/helperComponents/PropertiesDialog/OrfProperties.js +1 -1
- package/src/helperComponents/PropertiesDialog/utils.js +5 -5
- package/src/helperComponents/RemoveDuplicates/index.js +24 -24
package/index.es.js
CHANGED
|
@@ -34279,18 +34279,14 @@ const viewColumn = {
|
|
|
34279
34279
|
return /* @__PURE__ */ React__default$1.createElement(Icon, { className: "dt-eyeIcon", icon: "eye-open" });
|
|
34280
34280
|
}
|
|
34281
34281
|
};
|
|
34282
|
-
const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
|
|
34283
|
-
render: (val2, record, rowInfo
|
|
34282
|
+
const openColumn = /* @__PURE__ */ __name(({ onDoubleClick, history }) => __spreadProps(__spreadValues({}, viewColumn), {
|
|
34283
|
+
render: (val2, record, rowInfo) => {
|
|
34284
34284
|
return /* @__PURE__ */ React__default$1.createElement(Tooltip, { content: "Open" }, /* @__PURE__ */ React__default$1.createElement(
|
|
34285
34285
|
Button,
|
|
34286
34286
|
{
|
|
34287
34287
|
onClick: (e2) => {
|
|
34288
34288
|
e2.stopPropagation();
|
|
34289
|
-
|
|
34290
|
-
rowInfo.original,
|
|
34291
|
-
rowInfo.index,
|
|
34292
|
-
props.history
|
|
34293
|
-
);
|
|
34289
|
+
onDoubleClick && onDoubleClick(rowInfo.original, rowInfo.index, history);
|
|
34294
34290
|
},
|
|
34295
34291
|
minimal: true,
|
|
34296
34292
|
small: true,
|
|
@@ -34299,7 +34295,7 @@ const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
|
|
|
34299
34295
|
}
|
|
34300
34296
|
));
|
|
34301
34297
|
}
|
|
34302
|
-
});
|
|
34298
|
+
}), "openColumn");
|
|
34303
34299
|
function convertSchema(schema2) {
|
|
34304
34300
|
let schemaToUse = schema2;
|
|
34305
34301
|
if (!schemaToUse.fields && Array.isArray(schema2)) {
|
|
@@ -46732,9 +46728,7 @@ const ColumnFilterMenu = /* @__PURE__ */ __name(({
|
|
|
46732
46728
|
Popover,
|
|
46733
46729
|
{
|
|
46734
46730
|
position: "bottom",
|
|
46735
|
-
onClose: () =>
|
|
46736
|
-
setColumnFilterMenuOpen(false);
|
|
46737
|
-
},
|
|
46731
|
+
onClose: () => setColumnFilterMenuOpen(false),
|
|
46738
46732
|
isOpen: columnFilterMenuOpen,
|
|
46739
46733
|
modifiers: {
|
|
46740
46734
|
preventOverflow: { enabled: true },
|
|
@@ -47401,61 +47395,60 @@ const RenderCell = /* @__PURE__ */ __name(({
|
|
|
47401
47395
|
}
|
|
47402
47396
|
));
|
|
47403
47397
|
}, "RenderCell");
|
|
47404
|
-
const RenderColumns = /* @__PURE__ */ __name((
|
|
47405
|
-
|
|
47406
|
-
|
|
47407
|
-
|
|
47408
|
-
|
|
47409
|
-
|
|
47410
|
-
|
|
47411
|
-
|
|
47412
|
-
|
|
47413
|
-
|
|
47414
|
-
|
|
47415
|
-
|
|
47416
|
-
|
|
47417
|
-
|
|
47418
|
-
|
|
47419
|
-
|
|
47420
|
-
|
|
47421
|
-
|
|
47422
|
-
|
|
47423
|
-
|
|
47424
|
-
|
|
47425
|
-
|
|
47426
|
-
|
|
47427
|
-
|
|
47428
|
-
|
|
47429
|
-
|
|
47430
|
-
|
|
47431
|
-
|
|
47432
|
-
|
|
47433
|
-
|
|
47434
|
-
|
|
47435
|
-
|
|
47436
|
-
|
|
47437
|
-
|
|
47438
|
-
|
|
47439
|
-
|
|
47440
|
-
|
|
47441
|
-
|
|
47442
|
-
|
|
47443
|
-
|
|
47444
|
-
|
|
47445
|
-
|
|
47446
|
-
|
|
47447
|
-
|
|
47448
|
-
|
|
47449
|
-
|
|
47450
|
-
|
|
47451
|
-
|
|
47452
|
-
|
|
47453
|
-
|
|
47454
|
-
|
|
47455
|
-
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
} = props;
|
|
47398
|
+
const RenderColumns = /* @__PURE__ */ __name(({
|
|
47399
|
+
addFilters,
|
|
47400
|
+
cellRenderer,
|
|
47401
|
+
change: change2,
|
|
47402
|
+
columns,
|
|
47403
|
+
currentParams,
|
|
47404
|
+
compact: compact3,
|
|
47405
|
+
editableCellValue,
|
|
47406
|
+
editingCell,
|
|
47407
|
+
editingCellSelectAll,
|
|
47408
|
+
entities,
|
|
47409
|
+
expandedEntityIdMap,
|
|
47410
|
+
extraCompact,
|
|
47411
|
+
filters,
|
|
47412
|
+
getCellHoverText,
|
|
47413
|
+
isCellEditable,
|
|
47414
|
+
isEntityDisabled,
|
|
47415
|
+
isLocalCall,
|
|
47416
|
+
isSimple,
|
|
47417
|
+
isSingleSelect,
|
|
47418
|
+
isSelectionARectangle,
|
|
47419
|
+
noDeselectAll,
|
|
47420
|
+
noSelect,
|
|
47421
|
+
noUserSelect,
|
|
47422
|
+
onDeselect,
|
|
47423
|
+
onMultiRowSelect,
|
|
47424
|
+
onRowClick,
|
|
47425
|
+
onRowSelect,
|
|
47426
|
+
onSingleRowSelect,
|
|
47427
|
+
order: order2,
|
|
47428
|
+
primarySelectedCellId,
|
|
47429
|
+
reduxFormCellValidation,
|
|
47430
|
+
reduxFormSelectedEntityIdMap,
|
|
47431
|
+
refocusTable,
|
|
47432
|
+
removeSingleFilter = noop$6,
|
|
47433
|
+
schema: schema2,
|
|
47434
|
+
selectedCells,
|
|
47435
|
+
setEditableCellValue,
|
|
47436
|
+
setEditingCell,
|
|
47437
|
+
setExpandedEntityIdMap,
|
|
47438
|
+
setNewParams,
|
|
47439
|
+
setOrder = noop$6,
|
|
47440
|
+
setSelectedCells,
|
|
47441
|
+
shouldShowSubComponent,
|
|
47442
|
+
startCellEdit,
|
|
47443
|
+
SubComponent,
|
|
47444
|
+
tableRef,
|
|
47445
|
+
updateEntitiesHelper,
|
|
47446
|
+
updateValidation,
|
|
47447
|
+
withCheckboxes,
|
|
47448
|
+
withExpandAndCollapseAllButton,
|
|
47449
|
+
withFilter: _withFilter,
|
|
47450
|
+
withSort = true
|
|
47451
|
+
}) => {
|
|
47459
47452
|
const withFilter = _withFilter === void 0 ? !isSimple : _withFilter;
|
|
47460
47453
|
const onDragEnd2 = /* @__PURE__ */ __name((cellsToSelect) => {
|
|
47461
47454
|
const [primaryRowId, primaryCellPath] = primarySelectedCellId.split(":");
|
|
@@ -47627,13 +47620,19 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
|
|
|
47627
47620
|
let text2 = typeof val2 !== "string" ? row.value : val2;
|
|
47628
47621
|
const record = row.original;
|
|
47629
47622
|
if (column.getClipboardData) {
|
|
47630
|
-
text2 = column.getClipboardData(row.value, record, row
|
|
47623
|
+
text2 = column.getClipboardData(row.value, record, row);
|
|
47631
47624
|
} else if (column.getValueToFilterOn) {
|
|
47632
|
-
text2 = column.getValueToFilterOn(record
|
|
47625
|
+
text2 = column.getValueToFilterOn(record);
|
|
47633
47626
|
} else if (column.render) {
|
|
47634
|
-
text2 = column.render(row.value, record, row,
|
|
47627
|
+
text2 = column.render(row.value, record, row, {
|
|
47628
|
+
currentParams,
|
|
47629
|
+
setNewParams
|
|
47630
|
+
});
|
|
47635
47631
|
} else if (cellRenderer && cellRenderer[column.path]) {
|
|
47636
|
-
text2 = cellRenderer[column.path](row.value, row.original, row,
|
|
47632
|
+
text2 = cellRenderer[column.path](row.value, row.original, row, {
|
|
47633
|
+
currentParams,
|
|
47634
|
+
setNewParams
|
|
47635
|
+
});
|
|
47637
47636
|
} else if (text2) {
|
|
47638
47637
|
text2 = isValidElement(text2) ? text2 : String(text2);
|
|
47639
47638
|
}
|
|
@@ -47851,17 +47850,18 @@ const RenderColumns = /* @__PURE__ */ __name((props) => {
|
|
|
47851
47850
|
}
|
|
47852
47851
|
if (cellRenderer && cellRenderer[column.path]) {
|
|
47853
47852
|
tableColumn.Cell = (row) => {
|
|
47854
|
-
const val2 = cellRenderer[column.path](
|
|
47855
|
-
|
|
47856
|
-
|
|
47857
|
-
|
|
47858
|
-
props
|
|
47859
|
-
);
|
|
47853
|
+
const val2 = cellRenderer[column.path](row.value, row.original, row, {
|
|
47854
|
+
currentParams,
|
|
47855
|
+
setNewParams
|
|
47856
|
+
});
|
|
47860
47857
|
return val2;
|
|
47861
47858
|
};
|
|
47862
47859
|
} else if (column.render) {
|
|
47863
47860
|
tableColumn.Cell = (row) => {
|
|
47864
|
-
const val2 = column.render(row.value, row.original, row,
|
|
47861
|
+
const val2 = column.render(row.value, row.original, row, {
|
|
47862
|
+
currentParams,
|
|
47863
|
+
setNewParams
|
|
47864
|
+
});
|
|
47865
47865
|
return val2;
|
|
47866
47866
|
};
|
|
47867
47867
|
} else if (column.type === "timestamp") {
|
|
@@ -48049,12 +48049,13 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48049
48049
|
// }
|
|
48050
48050
|
]
|
|
48051
48051
|
}, props.defaults || {}));
|
|
48052
|
-
|
|
48053
|
-
|
|
48054
|
-
|
|
48055
|
-
|
|
48056
|
-
|
|
48057
|
-
|
|
48052
|
+
const _schema = useMemo$1(() => {
|
|
48053
|
+
if (isFunction$6(__schema))
|
|
48054
|
+
return __schema(props);
|
|
48055
|
+
else
|
|
48056
|
+
return __schema;
|
|
48057
|
+
}, [__schema, props]);
|
|
48058
|
+
const convertedSchema = useMemo$1(() => convertSchema(_schema), [_schema]);
|
|
48058
48059
|
if (isLocalCall) {
|
|
48059
48060
|
if (!noForm && (!formName || formName === "tgDataTable")) {
|
|
48060
48061
|
throw new Error(
|
|
@@ -48091,20 +48092,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48091
48092
|
props = __spreadValues(__spreadValues({}, props), withSelectedEntities2 && typeof withSelectedEntities2 === "string" && {
|
|
48092
48093
|
[withSelectedEntities2]: selectedEntities
|
|
48093
48094
|
});
|
|
48094
|
-
console.log("history.location", history);
|
|
48095
48095
|
const currentParams = useMemo$1(() => {
|
|
48096
|
-
const tmp = (urlConnected ? getCurrentParamsFromUrl(
|
|
48097
|
-
history ? history.location : ownProps.location
|
|
48098
|
-
) : reduxFormQueryParams) || {};
|
|
48096
|
+
const tmp = (urlConnected ? getCurrentParamsFromUrl(history.location) : reduxFormQueryParams) || {};
|
|
48099
48097
|
tmp.searchTerm = reduxFormSearchInput;
|
|
48100
48098
|
return tmp;
|
|
48101
|
-
}, [
|
|
48102
|
-
history,
|
|
48103
|
-
ownProps.location,
|
|
48104
|
-
reduxFormQueryParams,
|
|
48105
|
-
reduxFormSearchInput,
|
|
48106
|
-
urlConnected
|
|
48107
|
-
]);
|
|
48099
|
+
}, [history, reduxFormQueryParams, reduxFormSearchInput, urlConnected]);
|
|
48108
48100
|
const tableParams = useMemo$1(() => {
|
|
48109
48101
|
if (!isTableParamsConnected) {
|
|
48110
48102
|
const updateSearch = /* @__PURE__ */ __name((val2) => {
|
|
@@ -48141,7 +48133,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48141
48133
|
_tableParams,
|
|
48142
48134
|
change2,
|
|
48143
48135
|
currentParams,
|
|
48144
|
-
history
|
|
48136
|
+
history,
|
|
48145
48137
|
isTableParamsConnected,
|
|
48146
48138
|
props,
|
|
48147
48139
|
selectedEntities,
|
|
@@ -48171,6 +48163,9 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48171
48163
|
}
|
|
48172
48164
|
return {};
|
|
48173
48165
|
}, [
|
|
48166
|
+
props.entities,
|
|
48167
|
+
props.noOrderError,
|
|
48168
|
+
props.isCodeModel,
|
|
48174
48169
|
convertedSchema,
|
|
48175
48170
|
currentParams,
|
|
48176
48171
|
doNotCoercePageSize,
|
|
@@ -48205,7 +48200,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48205
48200
|
doNotShowEmptyRows,
|
|
48206
48201
|
doNotValidateUntouchedRows,
|
|
48207
48202
|
editingCellSelectAll,
|
|
48208
|
-
entities:
|
|
48203
|
+
entities: _origEntities = [],
|
|
48209
48204
|
entitiesAcrossPages: _entitiesAcrossPages,
|
|
48210
48205
|
entityCount,
|
|
48211
48206
|
errorParsingUrlString,
|
|
@@ -48286,10 +48281,11 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48286
48281
|
withSort,
|
|
48287
48282
|
withTitle = !isSimple
|
|
48288
48283
|
} = props;
|
|
48289
|
-
const
|
|
48290
|
-
|
|
48291
|
-
|
|
48284
|
+
const _entities = useMemo$1(
|
|
48285
|
+
() => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
|
|
48286
|
+
[_origEntities, reduxFormEntities]
|
|
48292
48287
|
);
|
|
48288
|
+
const entities = useDeepEqualMemo(_entities);
|
|
48293
48289
|
const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
|
|
48294
48290
|
useEffect(() => {
|
|
48295
48291
|
if (change2) {
|
|
@@ -48326,12 +48322,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48326
48322
|
withDisplayOptions
|
|
48327
48323
|
]);
|
|
48328
48324
|
const schema2 = useMemo$1(() => {
|
|
48329
|
-
const schema22 =
|
|
48325
|
+
const schema22 = convertedSchema;
|
|
48330
48326
|
if (isViewable) {
|
|
48331
48327
|
schema22.fields = [viewColumn, ...schema22.fields];
|
|
48332
48328
|
}
|
|
48333
48329
|
if (isOpenable) {
|
|
48334
|
-
schema22.fields = [
|
|
48330
|
+
schema22.fields = [
|
|
48331
|
+
openColumn({ onDoubleClick, history }),
|
|
48332
|
+
...schema22.fields
|
|
48333
|
+
];
|
|
48335
48334
|
}
|
|
48336
48335
|
schema22.fields = schema22.fields.map((field) => {
|
|
48337
48336
|
if (field.placementPath) {
|
|
@@ -48393,13 +48392,15 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
48393
48392
|
}
|
|
48394
48393
|
return schema22;
|
|
48395
48394
|
}, [
|
|
48396
|
-
_schema,
|
|
48397
48395
|
cellRenderer,
|
|
48396
|
+
convertedSchema,
|
|
48398
48397
|
entities,
|
|
48398
|
+
history,
|
|
48399
48399
|
isInfinite,
|
|
48400
48400
|
isOpenable,
|
|
48401
48401
|
isSimple,
|
|
48402
48402
|
isViewable,
|
|
48403
|
+
onDoubleClick,
|
|
48403
48404
|
showForcedHiddenColumns,
|
|
48404
48405
|
tableConfig.columnOrderings,
|
|
48405
48406
|
tableConfig.fieldOptions,
|
|
@@ -50224,7 +50225,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
50224
50225
|
return entities;
|
|
50225
50226
|
}, [entities, onlyShowRowsWErrors, reduxFormCellValidation]);
|
|
50226
50227
|
const renderColumns = useMemo$1(
|
|
50227
|
-
() => RenderColumns(
|
|
50228
|
+
() => RenderColumns({
|
|
50228
50229
|
addFilters,
|
|
50229
50230
|
cellRenderer,
|
|
50230
50231
|
change: change2,
|
|
@@ -50277,7 +50278,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
50277
50278
|
withExpandAndCollapseAllButton,
|
|
50278
50279
|
withFilter,
|
|
50279
50280
|
withSort
|
|
50280
|
-
})
|
|
50281
|
+
}),
|
|
50281
50282
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
50282
50283
|
[
|
|
50283
50284
|
SubComponent,
|
|
@@ -117736,7 +117737,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
117736
117737
|
}
|
|
117737
117738
|
__name(showFileDialog, "showFileDialog");
|
|
117738
117739
|
const name = "@teselagen/ove";
|
|
117739
|
-
const version = "0.5.
|
|
117740
|
+
const version = "0.5.31-beta.2";
|
|
117740
117741
|
const main = "./src/index.js";
|
|
117741
117742
|
const type = "module";
|
|
117742
117743
|
const exports$1 = {
|
|
@@ -129871,42 +129872,19 @@ const _ComponentToPrint = class _ComponentToPrint extends React__default$1.Compo
|
|
|
129871
129872
|
};
|
|
129872
129873
|
__name(_ComponentToPrint, "ComponentToPrint");
|
|
129873
129874
|
let ComponentToPrint = _ComponentToPrint;
|
|
129874
|
-
const sizeSchema = {
|
|
129875
|
+
const sizeSchema = /* @__PURE__ */ __name((isProtein2) => ({
|
|
129875
129876
|
path: "size",
|
|
129876
129877
|
type: "number",
|
|
129877
|
-
render: (val2, _record
|
|
129878
|
-
const record =
|
|
129878
|
+
render: (val2, _record) => {
|
|
129879
|
+
const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
|
|
129879
129880
|
const base1Range = convertRangeTo1Based(record);
|
|
129880
129881
|
const hasJoinedLocations = record.locations && record.locations.length > 1;
|
|
129881
|
-
return /* @__PURE__ */ React__default$1.createElement("span", null,
|
|
129882
|
+
return /* @__PURE__ */ React__default$1.createElement("span", null, isProtein2 ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React__default$1.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i) => {
|
|
129882
129883
|
const base1Range2 = convertRangeTo1Based(loc);
|
|
129883
|
-
return /* @__PURE__ */ React__default$1.createElement("span", { key:
|
|
129884
|
+
return /* @__PURE__ */ React__default$1.createElement("span", { key: i }, "(", base1Range2.start, "-", base1Range2.end, ")");
|
|
129884
129885
|
}) : /* @__PURE__ */ React__default$1.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
|
|
129885
129886
|
}
|
|
129886
|
-
};
|
|
129887
|
-
const schema$2 = {
|
|
129888
|
-
fields: [
|
|
129889
|
-
// ...(noColor
|
|
129890
|
-
// ? []
|
|
129891
|
-
// : [
|
|
129892
|
-
// {
|
|
129893
|
-
// path: "color",
|
|
129894
|
-
// type: "string",
|
|
129895
|
-
// render: color => {
|
|
129896
|
-
// return (
|
|
129897
|
-
// <ColorPickerPopover>
|
|
129898
|
-
// <div style={{ height: 20, width: 20, background: color }} />
|
|
129899
|
-
// </ColorPickerPopover>
|
|
129900
|
-
// );
|
|
129901
|
-
// }
|
|
129902
|
-
// }
|
|
129903
|
-
// ]),
|
|
129904
|
-
{ path: "name", type: "string" },
|
|
129905
|
-
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
129906
|
-
sizeSchema,
|
|
129907
|
-
{ path: "strand", type: "string" }
|
|
129908
|
-
]
|
|
129909
|
-
};
|
|
129887
|
+
}), "sizeSchema");
|
|
129910
129888
|
const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__default$1.Component {
|
|
129911
129889
|
constructor() {
|
|
129912
129890
|
super(...arguments);
|
|
@@ -129952,6 +129930,29 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__def
|
|
|
129952
129930
|
render() {
|
|
129953
129931
|
const { duplicatesToRemoveSelectedEntities, hideModal, type: type2 } = this.props;
|
|
129954
129932
|
const selectedIds = this.state.dups.map((d2) => d2.id);
|
|
129933
|
+
const schema2 = {
|
|
129934
|
+
fields: [
|
|
129935
|
+
// ...(noColor
|
|
129936
|
+
// ? []
|
|
129937
|
+
// : [
|
|
129938
|
+
// {
|
|
129939
|
+
// path: "color",
|
|
129940
|
+
// type: "string",
|
|
129941
|
+
// render: color => {
|
|
129942
|
+
// return (
|
|
129943
|
+
// <ColorPickerPopover>
|
|
129944
|
+
// <div style={{ height: 20, width: 20, background: color }} />
|
|
129945
|
+
// </ColorPickerPopover>
|
|
129946
|
+
// );
|
|
129947
|
+
// }
|
|
129948
|
+
// }
|
|
129949
|
+
// ]),
|
|
129950
|
+
{ path: "name", type: "string" },
|
|
129951
|
+
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
129952
|
+
sizeSchema(this.props.isProtein),
|
|
129953
|
+
{ path: "strand", type: "string" }
|
|
129954
|
+
]
|
|
129955
|
+
};
|
|
129955
129956
|
return /* @__PURE__ */ React__default$1.createElement("div", { className: classNames(Classes.DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React__default$1.createElement(
|
|
129956
129957
|
WrappedDT,
|
|
129957
129958
|
{
|
|
@@ -129969,7 +129970,7 @@ const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React__def
|
|
|
129969
129970
|
withSearch: false,
|
|
129970
129971
|
hideSelectedCount: true,
|
|
129971
129972
|
isInfinite: true,
|
|
129972
|
-
schema:
|
|
129973
|
+
schema: schema2,
|
|
129973
129974
|
entities: this.state.dups
|
|
129974
129975
|
}
|
|
129975
129976
|
), /* @__PURE__ */ React__default$1.createElement(
|
|
@@ -133593,7 +133594,7 @@ const _AddOrEditAnnotationDialog = class _AddOrEditAnnotationDialog extends Reac
|
|
|
133593
133594
|
RenderBases2,
|
|
133594
133595
|
__spreadValues({}, {
|
|
133595
133596
|
// ...this.props,
|
|
133596
|
-
|
|
133597
|
+
bases,
|
|
133597
133598
|
defaultLinkedOligoMessage,
|
|
133598
133599
|
getLinkedOligoLink,
|
|
133599
133600
|
readOnly: this.props.readOnly,
|
|
@@ -134182,9 +134183,9 @@ const CustomContentEditable = generateField(/* @__PURE__ */ __name(function Cust
|
|
|
134182
134183
|
start: start2,
|
|
134183
134184
|
end: end2,
|
|
134184
134185
|
primerBindsOn,
|
|
134185
|
-
bases,
|
|
134186
134186
|
forward
|
|
134187
134187
|
}) {
|
|
134188
|
+
const bases = input.value;
|
|
134188
134189
|
const [hasTempError, setTempError] = useState(false);
|
|
134189
134190
|
const inputRef = useRef(null);
|
|
134190
134191
|
const [caretPosition2, setCaretPosition] = useState({ start: 0, end: 0 });
|
|
@@ -134313,7 +134314,6 @@ const RenderBases = /* @__PURE__ */ __name((props) => {
|
|
|
134313
134314
|
normalizedSelection,
|
|
134314
134315
|
sequenceData2.sequence
|
|
134315
134316
|
);
|
|
134316
|
-
console.log("bps", bps);
|
|
134317
134317
|
if (!forward) {
|
|
134318
134318
|
bps = getReverseComplementSequenceString(bps);
|
|
134319
134319
|
}
|
|
@@ -139700,13 +139700,38 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139700
139700
|
});
|
|
139701
139701
|
}, "onRowSelect"));
|
|
139702
139702
|
this.commands = getCommands(this);
|
|
139703
|
+
}
|
|
139704
|
+
render() {
|
|
139705
|
+
var _a2;
|
|
139706
|
+
const {
|
|
139707
|
+
readOnly: readOnly2,
|
|
139708
|
+
annotations = {},
|
|
139709
|
+
annotationVisibility: annotationVisibility2,
|
|
139710
|
+
sequenceLength,
|
|
139711
|
+
selectionLayer: selectionLayer2,
|
|
139712
|
+
sequence: sequence2,
|
|
139713
|
+
isProtein: isProtein2,
|
|
139714
|
+
allPartTags,
|
|
139715
|
+
annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
|
|
139716
|
+
selectedAnnotationId
|
|
139717
|
+
} = this.props;
|
|
139718
|
+
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
139719
|
+
const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
|
|
139720
|
+
const annotationsToUse = map$3(annotations, (annotation) => {
|
|
139721
|
+
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
139722
|
+
strand: annotation.forward ? 1 : -1
|
|
139723
|
+
}), {
|
|
139724
|
+
size: getRangeLength(annotation, sequenceLength)
|
|
139725
|
+
});
|
|
139726
|
+
});
|
|
139727
|
+
const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
|
|
139703
139728
|
this.schema = {
|
|
139704
139729
|
fields: [
|
|
139705
139730
|
{
|
|
139706
139731
|
path: "name",
|
|
139707
139732
|
type: "string",
|
|
139708
|
-
render: (name2, ann
|
|
139709
|
-
const checked = !
|
|
139733
|
+
render: (name2, ann) => {
|
|
139734
|
+
const checked = !this.props.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
|
|
139710
139735
|
return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, /* @__PURE__ */ React__default$1.createElement(
|
|
139711
139736
|
Icon,
|
|
139712
139737
|
{
|
|
@@ -139715,9 +139740,9 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139715
139740
|
e2.stopPropagation();
|
|
139716
139741
|
const upperType = startCase(annotationType);
|
|
139717
139742
|
if (checked) {
|
|
139718
|
-
|
|
139743
|
+
this.props[`hide${upperType}Individual`]([ann.id]);
|
|
139719
139744
|
} else {
|
|
139720
|
-
|
|
139745
|
+
this.props[`show${upperType}Individual`]([ann.id]);
|
|
139721
139746
|
}
|
|
139722
139747
|
},
|
|
139723
139748
|
style: {
|
|
@@ -139735,10 +139760,10 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139735
139760
|
{
|
|
139736
139761
|
path: "bases",
|
|
139737
139762
|
type: "string",
|
|
139738
|
-
render: (bases, primer
|
|
139763
|
+
render: (bases, primer) => {
|
|
139739
139764
|
let bps = bases;
|
|
139740
139765
|
if (!bases) {
|
|
139741
|
-
bps = getSequenceWithinRange(primer,
|
|
139766
|
+
bps = getSequenceWithinRange(primer, this.props.sequence);
|
|
139742
139767
|
if (!primer.forward) {
|
|
139743
139768
|
bps = getReverseComplementSequenceString(bps);
|
|
139744
139769
|
}
|
|
@@ -139763,12 +139788,12 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139763
139788
|
}
|
|
139764
139789
|
}
|
|
139765
139790
|
],
|
|
139766
|
-
sizeSchema,
|
|
139791
|
+
sizeSchema(this.props.isProtein),
|
|
139767
139792
|
...withTags && this.props.allPartTags ? [
|
|
139768
139793
|
{
|
|
139769
139794
|
path: "tags",
|
|
139770
139795
|
type: "string",
|
|
139771
|
-
getValueToFilterOn: (o2
|
|
139796
|
+
getValueToFilterOn: (o2) => {
|
|
139772
139797
|
const toRet = (o2.tags || []).map((tagId) => {
|
|
139773
139798
|
const tag = keyedPartTags[tagId];
|
|
139774
139799
|
if (!tag)
|
|
@@ -139777,7 +139802,7 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139777
139802
|
}).join(" ");
|
|
139778
139803
|
return toRet;
|
|
139779
139804
|
},
|
|
139780
|
-
render: (tags
|
|
139805
|
+
render: (tags) => {
|
|
139781
139806
|
return /* @__PURE__ */ React__default$1.createElement("div", { style: { display: "flex" } }, (tags || []).map((tagId, i) => {
|
|
139782
139807
|
const tag = keyedPartTags[tagId];
|
|
139783
139808
|
if (!tag)
|
|
@@ -139790,29 +139815,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139790
139815
|
{ path: "strand", type: "number" }
|
|
139791
139816
|
]
|
|
139792
139817
|
};
|
|
139793
|
-
}
|
|
139794
|
-
render() {
|
|
139795
|
-
const {
|
|
139796
|
-
readOnly: readOnly2,
|
|
139797
|
-
annotations = {},
|
|
139798
|
-
annotationVisibility: annotationVisibility2,
|
|
139799
|
-
sequenceLength,
|
|
139800
|
-
selectionLayer: selectionLayer2,
|
|
139801
|
-
sequence: sequence2,
|
|
139802
|
-
isProtein: isProtein2,
|
|
139803
|
-
allPartTags,
|
|
139804
|
-
annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
|
|
139805
|
-
selectedAnnotationId
|
|
139806
|
-
} = this.props;
|
|
139807
|
-
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
139808
|
-
const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
|
|
139809
|
-
const annotationsToUse = map$3(annotations, (annotation) => {
|
|
139810
|
-
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
139811
|
-
strand: annotation.forward ? 1 : -1
|
|
139812
|
-
}), {
|
|
139813
|
-
size: getRangeLength(annotation, sequenceLength)
|
|
139814
|
-
});
|
|
139815
|
-
});
|
|
139816
139818
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
139817
139819
|
WrappedDT,
|
|
139818
139820
|
{
|
|
@@ -139933,7 +139935,6 @@ const genericAnnotationProperties = /* @__PURE__ */ __name(({
|
|
|
139933
139935
|
formName: "annotationProperties",
|
|
139934
139936
|
noRouter: true,
|
|
139935
139937
|
isProtein: isProtein2,
|
|
139936
|
-
keyedPartTags: getKeyedTagsAndTagOptions(allPartTags),
|
|
139937
139938
|
compact: true,
|
|
139938
139939
|
isInfinite: true,
|
|
139939
139940
|
schema: this.schema,
|
|
@@ -140296,7 +140297,7 @@ const _OrfProperties = class _OrfProperties extends React__default$1.Component {
|
|
|
140296
140297
|
displayName: "Size (aa)",
|
|
140297
140298
|
type: "number"
|
|
140298
140299
|
},
|
|
140299
|
-
sizeSchema,
|
|
140300
|
+
sizeSchema(this.props.isProtein),
|
|
140300
140301
|
{ path: "frame", type: "number" },
|
|
140301
140302
|
{ path: "strand", type: "number" }
|
|
140302
140303
|
]
|