@teselagen/ove 0.5.31-beta.2 → 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 +168 -157
- package/index.es.js +168 -157
- package/index.umd.js +188 -168
- package/package.json +2 -2
- 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.umd.js
CHANGED
|
@@ -9854,16 +9854,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9854
9854
|
return value;
|
|
9855
9855
|
}, "GetIntrinsic");
|
|
9856
9856
|
var callBind$3 = { exports: {} };
|
|
9857
|
-
var
|
|
9858
|
-
var
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9857
|
+
var esDefineProperty;
|
|
9858
|
+
var hasRequiredEsDefineProperty;
|
|
9859
|
+
function requireEsDefineProperty() {
|
|
9860
|
+
if (hasRequiredEsDefineProperty)
|
|
9861
|
+
return esDefineProperty;
|
|
9862
|
+
hasRequiredEsDefineProperty = 1;
|
|
9863
|
+
var GetIntrinsic2 = getIntrinsic;
|
|
9864
|
+
var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true) || false;
|
|
9865
|
+
if ($defineProperty2) {
|
|
9866
|
+
try {
|
|
9867
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
9868
|
+
} catch (e2) {
|
|
9869
|
+
$defineProperty2 = false;
|
|
9870
|
+
}
|
|
9864
9871
|
}
|
|
9872
|
+
esDefineProperty = $defineProperty2;
|
|
9873
|
+
return esDefineProperty;
|
|
9865
9874
|
}
|
|
9866
|
-
|
|
9875
|
+
__name(requireEsDefineProperty, "requireEsDefineProperty");
|
|
9867
9876
|
var GetIntrinsic$3 = getIntrinsic;
|
|
9868
9877
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
9869
9878
|
if ($gOPD$1) {
|
|
@@ -9874,7 +9883,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9874
9883
|
}
|
|
9875
9884
|
}
|
|
9876
9885
|
var gopd$1 = $gOPD$1;
|
|
9877
|
-
var $defineProperty$1 =
|
|
9886
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
9878
9887
|
var $SyntaxError = syntax;
|
|
9879
9888
|
var $TypeError$4 = type$1;
|
|
9880
9889
|
var gopd = gopd$1;
|
|
@@ -9915,7 +9924,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9915
9924
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9916
9925
|
}
|
|
9917
9926
|
}, "defineDataProperty");
|
|
9918
|
-
var $defineProperty =
|
|
9927
|
+
var $defineProperty = requireEsDefineProperty();
|
|
9919
9928
|
var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
|
|
9920
9929
|
return !!$defineProperty;
|
|
9921
9930
|
}, "hasPropertyDescriptors");
|
|
@@ -9984,7 +9993,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9984
9993
|
var $apply = GetIntrinsic2("%Function.prototype.apply%");
|
|
9985
9994
|
var $call = GetIntrinsic2("%Function.prototype.call%");
|
|
9986
9995
|
var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
9987
|
-
var $defineProperty2 =
|
|
9996
|
+
var $defineProperty2 = requireEsDefineProperty();
|
|
9988
9997
|
var $max = GetIntrinsic2("%Math.max%");
|
|
9989
9998
|
module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
|
|
9990
9999
|
if (typeof originalFunction !== "function") {
|
|
@@ -63537,18 +63546,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
63537
63546
|
return /* @__PURE__ */ React$2.createElement(Icon, { className: "dt-eyeIcon", icon: "eye-open" });
|
|
63538
63547
|
}
|
|
63539
63548
|
};
|
|
63540
|
-
const openColumn = __spreadProps(__spreadValues({}, viewColumn), {
|
|
63541
|
-
render: (val2, record, rowInfo
|
|
63549
|
+
const openColumn = /* @__PURE__ */ __name(({ onDoubleClick, history }) => __spreadProps(__spreadValues({}, viewColumn), {
|
|
63550
|
+
render: (val2, record, rowInfo) => {
|
|
63542
63551
|
return /* @__PURE__ */ React$2.createElement(Tooltip, { content: "Open" }, /* @__PURE__ */ React$2.createElement(
|
|
63543
63552
|
Button,
|
|
63544
63553
|
{
|
|
63545
63554
|
onClick: (e2) => {
|
|
63546
63555
|
e2.stopPropagation();
|
|
63547
|
-
|
|
63548
|
-
rowInfo.original,
|
|
63549
|
-
rowInfo.index,
|
|
63550
|
-
props.history
|
|
63551
|
-
);
|
|
63556
|
+
onDoubleClick && onDoubleClick(rowInfo.original, rowInfo.index, history);
|
|
63552
63557
|
},
|
|
63553
63558
|
minimal: true,
|
|
63554
63559
|
small: true,
|
|
@@ -63557,7 +63562,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
63557
63562
|
}
|
|
63558
63563
|
));
|
|
63559
63564
|
}
|
|
63560
|
-
});
|
|
63565
|
+
}), "openColumn");
|
|
63561
63566
|
function convertSchema(schema2) {
|
|
63562
63567
|
let schemaToUse = schema2;
|
|
63563
63568
|
if (!schemaToUse.fields && Array.isArray(schema2)) {
|
|
@@ -75990,9 +75995,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
75990
75995
|
Popover,
|
|
75991
75996
|
{
|
|
75992
75997
|
position: "bottom",
|
|
75993
|
-
onClose: () =>
|
|
75994
|
-
setColumnFilterMenuOpen(false);
|
|
75995
|
-
},
|
|
75998
|
+
onClose: () => setColumnFilterMenuOpen(false),
|
|
75996
75999
|
isOpen: columnFilterMenuOpen,
|
|
75997
76000
|
modifiers: {
|
|
75998
76001
|
preventOverflow: { enabled: true },
|
|
@@ -76659,61 +76662,60 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
76659
76662
|
}
|
|
76660
76663
|
));
|
|
76661
76664
|
}, "RenderCell");
|
|
76662
|
-
const RenderColumns = /* @__PURE__ */ __name((
|
|
76663
|
-
|
|
76664
|
-
|
|
76665
|
-
|
|
76666
|
-
|
|
76667
|
-
|
|
76668
|
-
|
|
76669
|
-
|
|
76670
|
-
|
|
76671
|
-
|
|
76672
|
-
|
|
76673
|
-
|
|
76674
|
-
|
|
76675
|
-
|
|
76676
|
-
|
|
76677
|
-
|
|
76678
|
-
|
|
76679
|
-
|
|
76680
|
-
|
|
76681
|
-
|
|
76682
|
-
|
|
76683
|
-
|
|
76684
|
-
|
|
76685
|
-
|
|
76686
|
-
|
|
76687
|
-
|
|
76688
|
-
|
|
76689
|
-
|
|
76690
|
-
|
|
76691
|
-
|
|
76692
|
-
|
|
76693
|
-
|
|
76694
|
-
|
|
76695
|
-
|
|
76696
|
-
|
|
76697
|
-
|
|
76698
|
-
|
|
76699
|
-
|
|
76700
|
-
|
|
76701
|
-
|
|
76702
|
-
|
|
76703
|
-
|
|
76704
|
-
|
|
76705
|
-
|
|
76706
|
-
|
|
76707
|
-
|
|
76708
|
-
|
|
76709
|
-
|
|
76710
|
-
|
|
76711
|
-
|
|
76712
|
-
|
|
76713
|
-
|
|
76714
|
-
|
|
76715
|
-
|
|
76716
|
-
} = props;
|
|
76665
|
+
const RenderColumns = /* @__PURE__ */ __name(({
|
|
76666
|
+
addFilters,
|
|
76667
|
+
cellRenderer,
|
|
76668
|
+
change: change2,
|
|
76669
|
+
columns,
|
|
76670
|
+
currentParams,
|
|
76671
|
+
compact: compact2,
|
|
76672
|
+
editableCellValue,
|
|
76673
|
+
editingCell,
|
|
76674
|
+
editingCellSelectAll,
|
|
76675
|
+
entities,
|
|
76676
|
+
expandedEntityIdMap,
|
|
76677
|
+
extraCompact,
|
|
76678
|
+
filters,
|
|
76679
|
+
getCellHoverText,
|
|
76680
|
+
isCellEditable,
|
|
76681
|
+
isEntityDisabled,
|
|
76682
|
+
isLocalCall,
|
|
76683
|
+
isSimple,
|
|
76684
|
+
isSingleSelect,
|
|
76685
|
+
isSelectionARectangle,
|
|
76686
|
+
noDeselectAll,
|
|
76687
|
+
noSelect,
|
|
76688
|
+
noUserSelect,
|
|
76689
|
+
onDeselect,
|
|
76690
|
+
onMultiRowSelect,
|
|
76691
|
+
onRowClick,
|
|
76692
|
+
onRowSelect,
|
|
76693
|
+
onSingleRowSelect,
|
|
76694
|
+
order: order2,
|
|
76695
|
+
primarySelectedCellId,
|
|
76696
|
+
reduxFormCellValidation,
|
|
76697
|
+
reduxFormSelectedEntityIdMap,
|
|
76698
|
+
refocusTable,
|
|
76699
|
+
removeSingleFilter = noop$6,
|
|
76700
|
+
schema: schema2,
|
|
76701
|
+
selectedCells,
|
|
76702
|
+
setEditableCellValue,
|
|
76703
|
+
setEditingCell,
|
|
76704
|
+
setExpandedEntityIdMap,
|
|
76705
|
+
setNewParams,
|
|
76706
|
+
setOrder = noop$6,
|
|
76707
|
+
setSelectedCells,
|
|
76708
|
+
shouldShowSubComponent,
|
|
76709
|
+
startCellEdit,
|
|
76710
|
+
SubComponent,
|
|
76711
|
+
tableRef,
|
|
76712
|
+
updateEntitiesHelper,
|
|
76713
|
+
updateValidation,
|
|
76714
|
+
withCheckboxes,
|
|
76715
|
+
withExpandAndCollapseAllButton,
|
|
76716
|
+
withFilter: _withFilter,
|
|
76717
|
+
withSort = true
|
|
76718
|
+
}) => {
|
|
76717
76719
|
const withFilter = _withFilter === void 0 ? !isSimple : _withFilter;
|
|
76718
76720
|
const onDragEnd2 = /* @__PURE__ */ __name((cellsToSelect) => {
|
|
76719
76721
|
const [primaryRowId, primaryCellPath] = primarySelectedCellId.split(":");
|
|
@@ -76885,13 +76887,19 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
76885
76887
|
let text2 = typeof val2 !== "string" ? row.value : val2;
|
|
76886
76888
|
const record = row.original;
|
|
76887
76889
|
if (column.getClipboardData) {
|
|
76888
|
-
text2 = column.getClipboardData(row.value, record, row
|
|
76890
|
+
text2 = column.getClipboardData(row.value, record, row);
|
|
76889
76891
|
} else if (column.getValueToFilterOn) {
|
|
76890
|
-
text2 = column.getValueToFilterOn(record
|
|
76892
|
+
text2 = column.getValueToFilterOn(record);
|
|
76891
76893
|
} else if (column.render) {
|
|
76892
|
-
text2 = column.render(row.value, record, row,
|
|
76894
|
+
text2 = column.render(row.value, record, row, {
|
|
76895
|
+
currentParams,
|
|
76896
|
+
setNewParams
|
|
76897
|
+
});
|
|
76893
76898
|
} else if (cellRenderer && cellRenderer[column.path]) {
|
|
76894
|
-
text2 = cellRenderer[column.path](row.value, row.original, row,
|
|
76899
|
+
text2 = cellRenderer[column.path](row.value, row.original, row, {
|
|
76900
|
+
currentParams,
|
|
76901
|
+
setNewParams
|
|
76902
|
+
});
|
|
76895
76903
|
} else if (text2) {
|
|
76896
76904
|
text2 = reactExports.isValidElement(text2) ? text2 : String(text2);
|
|
76897
76905
|
}
|
|
@@ -77109,17 +77117,18 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77109
77117
|
}
|
|
77110
77118
|
if (cellRenderer && cellRenderer[column.path]) {
|
|
77111
77119
|
tableColumn.Cell = (row) => {
|
|
77112
|
-
const val2 = cellRenderer[column.path](
|
|
77113
|
-
|
|
77114
|
-
|
|
77115
|
-
|
|
77116
|
-
props
|
|
77117
|
-
);
|
|
77120
|
+
const val2 = cellRenderer[column.path](row.value, row.original, row, {
|
|
77121
|
+
currentParams,
|
|
77122
|
+
setNewParams
|
|
77123
|
+
});
|
|
77118
77124
|
return val2;
|
|
77119
77125
|
};
|
|
77120
77126
|
} else if (column.render) {
|
|
77121
77127
|
tableColumn.Cell = (row) => {
|
|
77122
|
-
const val2 = column.render(row.value, row.original, row,
|
|
77128
|
+
const val2 = column.render(row.value, row.original, row, {
|
|
77129
|
+
currentParams,
|
|
77130
|
+
setNewParams
|
|
77131
|
+
});
|
|
77123
77132
|
return val2;
|
|
77124
77133
|
};
|
|
77125
77134
|
} else if (column.type === "timestamp") {
|
|
@@ -77307,12 +77316,13 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77307
77316
|
// }
|
|
77308
77317
|
]
|
|
77309
77318
|
}, props.defaults || {}));
|
|
77310
|
-
|
|
77311
|
-
|
|
77312
|
-
|
|
77313
|
-
|
|
77314
|
-
|
|
77315
|
-
|
|
77319
|
+
const _schema = reactExports.useMemo(() => {
|
|
77320
|
+
if (isFunction$1(__schema))
|
|
77321
|
+
return __schema(props);
|
|
77322
|
+
else
|
|
77323
|
+
return __schema;
|
|
77324
|
+
}, [__schema, props]);
|
|
77325
|
+
const convertedSchema = reactExports.useMemo(() => convertSchema(_schema), [_schema]);
|
|
77316
77326
|
if (isLocalCall) {
|
|
77317
77327
|
if (!noForm && (!formName || formName === "tgDataTable")) {
|
|
77318
77328
|
throw new Error(
|
|
@@ -77420,6 +77430,9 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77420
77430
|
}
|
|
77421
77431
|
return {};
|
|
77422
77432
|
}, [
|
|
77433
|
+
props.entities,
|
|
77434
|
+
props.noOrderError,
|
|
77435
|
+
props.isCodeModel,
|
|
77423
77436
|
convertedSchema,
|
|
77424
77437
|
currentParams,
|
|
77425
77438
|
doNotCoercePageSize,
|
|
@@ -77454,7 +77467,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77454
77467
|
doNotShowEmptyRows,
|
|
77455
77468
|
doNotValidateUntouchedRows,
|
|
77456
77469
|
editingCellSelectAll,
|
|
77457
|
-
entities:
|
|
77470
|
+
entities: _origEntities = [],
|
|
77458
77471
|
entitiesAcrossPages: _entitiesAcrossPages,
|
|
77459
77472
|
entityCount,
|
|
77460
77473
|
errorParsingUrlString,
|
|
@@ -77535,10 +77548,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77535
77548
|
withSort,
|
|
77536
77549
|
withTitle = !isSimple
|
|
77537
77550
|
} = props;
|
|
77538
|
-
const
|
|
77539
|
-
|
|
77540
|
-
|
|
77551
|
+
const _entities = reactExports.useMemo(
|
|
77552
|
+
() => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
|
|
77553
|
+
[_origEntities, reduxFormEntities]
|
|
77541
77554
|
);
|
|
77555
|
+
const entities = useDeepEqualMemo(_entities);
|
|
77542
77556
|
const entitiesAcrossPages = useDeepEqualMemo(_entitiesAcrossPages);
|
|
77543
77557
|
reactExports.useEffect(() => {
|
|
77544
77558
|
if (change2) {
|
|
@@ -77575,12 +77589,15 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77575
77589
|
withDisplayOptions
|
|
77576
77590
|
]);
|
|
77577
77591
|
const schema2 = reactExports.useMemo(() => {
|
|
77578
|
-
const schema22 =
|
|
77592
|
+
const schema22 = convertedSchema;
|
|
77579
77593
|
if (isViewable) {
|
|
77580
77594
|
schema22.fields = [viewColumn, ...schema22.fields];
|
|
77581
77595
|
}
|
|
77582
77596
|
if (isOpenable) {
|
|
77583
|
-
schema22.fields = [
|
|
77597
|
+
schema22.fields = [
|
|
77598
|
+
openColumn({ onDoubleClick, history }),
|
|
77599
|
+
...schema22.fields
|
|
77600
|
+
];
|
|
77584
77601
|
}
|
|
77585
77602
|
schema22.fields = schema22.fields.map((field) => {
|
|
77586
77603
|
if (field.placementPath) {
|
|
@@ -77642,13 +77659,15 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
77642
77659
|
}
|
|
77643
77660
|
return schema22;
|
|
77644
77661
|
}, [
|
|
77645
|
-
_schema,
|
|
77646
77662
|
cellRenderer,
|
|
77663
|
+
convertedSchema,
|
|
77647
77664
|
entities,
|
|
77665
|
+
history,
|
|
77648
77666
|
isInfinite,
|
|
77649
77667
|
isOpenable,
|
|
77650
77668
|
isSimple,
|
|
77651
77669
|
isViewable,
|
|
77670
|
+
onDoubleClick,
|
|
77652
77671
|
showForcedHiddenColumns,
|
|
77653
77672
|
tableConfig.columnOrderings,
|
|
77654
77673
|
tableConfig.fieldOptions,
|
|
@@ -79473,7 +79492,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
79473
79492
|
return entities;
|
|
79474
79493
|
}, [entities, onlyShowRowsWErrors, reduxFormCellValidation]);
|
|
79475
79494
|
const renderColumns = reactExports.useMemo(
|
|
79476
|
-
() => RenderColumns(
|
|
79495
|
+
() => RenderColumns({
|
|
79477
79496
|
addFilters,
|
|
79478
79497
|
cellRenderer,
|
|
79479
79498
|
change: change2,
|
|
@@ -79526,7 +79545,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
79526
79545
|
withExpandAndCollapseAllButton,
|
|
79527
79546
|
withFilter,
|
|
79528
79547
|
withSort
|
|
79529
|
-
})
|
|
79548
|
+
}),
|
|
79530
79549
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
79531
79550
|
[
|
|
79532
79551
|
SubComponent,
|
|
@@ -146276,7 +146295,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
146276
146295
|
}
|
|
146277
146296
|
__name(showFileDialog, "showFileDialog");
|
|
146278
146297
|
const name = "@teselagen/ove";
|
|
146279
|
-
const version = "0.5.31-beta.
|
|
146298
|
+
const version = "0.5.31-beta.2";
|
|
146280
146299
|
const main = "./src/index.js";
|
|
146281
146300
|
const type = "module";
|
|
146282
146301
|
const exports$1 = {
|
|
@@ -156806,42 +156825,19 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
156806
156825
|
};
|
|
156807
156826
|
__name(_ComponentToPrint, "ComponentToPrint");
|
|
156808
156827
|
let ComponentToPrint = _ComponentToPrint;
|
|
156809
|
-
const sizeSchema = {
|
|
156828
|
+
const sizeSchema = /* @__PURE__ */ __name((isProtein2) => ({
|
|
156810
156829
|
path: "size",
|
|
156811
156830
|
type: "number",
|
|
156812
|
-
render: (val2, _record
|
|
156813
|
-
const record =
|
|
156831
|
+
render: (val2, _record) => {
|
|
156832
|
+
const record = isProtein2 ? convertDnaCaretPositionOrRangeToAA(_record) : _record;
|
|
156814
156833
|
const base1Range = convertRangeTo1Based(record);
|
|
156815
156834
|
const hasJoinedLocations = record.locations && record.locations.length > 1;
|
|
156816
|
-
return /* @__PURE__ */ React$2.createElement("span", null,
|
|
156835
|
+
return /* @__PURE__ */ React$2.createElement("span", null, isProtein2 ? Math.floor(val2 / 3) : val2, " ", /* @__PURE__ */ React$2.createElement("span", { style: { fontSize: 10 } }, hasJoinedLocations ? record.locations.map((loc, i2) => {
|
|
156817
156836
|
const base1Range2 = convertRangeTo1Based(loc);
|
|
156818
|
-
return /* @__PURE__ */ React$2.createElement("span", { key:
|
|
156837
|
+
return /* @__PURE__ */ React$2.createElement("span", { key: i2 }, "(", base1Range2.start, "-", base1Range2.end, ")");
|
|
156819
156838
|
}) : /* @__PURE__ */ React$2.createElement("span", null, "(", base1Range.start, "-", base1Range.end, ")")));
|
|
156820
156839
|
}
|
|
156821
|
-
};
|
|
156822
|
-
const schema$2 = {
|
|
156823
|
-
fields: [
|
|
156824
|
-
// ...(noColor
|
|
156825
|
-
// ? []
|
|
156826
|
-
// : [
|
|
156827
|
-
// {
|
|
156828
|
-
// path: "color",
|
|
156829
|
-
// type: "string",
|
|
156830
|
-
// render: color => {
|
|
156831
|
-
// return (
|
|
156832
|
-
// <ColorPickerPopover>
|
|
156833
|
-
// <div style={{ height: 20, width: 20, background: color }} />
|
|
156834
|
-
// </ColorPickerPopover>
|
|
156835
|
-
// );
|
|
156836
|
-
// }
|
|
156837
|
-
// }
|
|
156838
|
-
// ]),
|
|
156839
|
-
{ path: "name", type: "string" },
|
|
156840
|
-
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
156841
|
-
sizeSchema,
|
|
156842
|
-
{ path: "strand", type: "string" }
|
|
156843
|
-
]
|
|
156844
|
-
};
|
|
156840
|
+
}), "sizeSchema");
|
|
156845
156841
|
const _RemoveDuplicatesDialog = class _RemoveDuplicatesDialog extends React$2.Component {
|
|
156846
156842
|
constructor() {
|
|
156847
156843
|
super(...arguments);
|
|
@@ -156887,6 +156883,29 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
156887
156883
|
render() {
|
|
156888
156884
|
const { duplicatesToRemoveSelectedEntities, hideModal, type: type2 } = this.props;
|
|
156889
156885
|
const selectedIds = this.state.dups.map((d2) => d2.id);
|
|
156886
|
+
const schema2 = {
|
|
156887
|
+
fields: [
|
|
156888
|
+
// ...(noColor
|
|
156889
|
+
// ? []
|
|
156890
|
+
// : [
|
|
156891
|
+
// {
|
|
156892
|
+
// path: "color",
|
|
156893
|
+
// type: "string",
|
|
156894
|
+
// render: color => {
|
|
156895
|
+
// return (
|
|
156896
|
+
// <ColorPickerPopover>
|
|
156897
|
+
// <div style={{ height: 20, width: 20, background: color }} />
|
|
156898
|
+
// </ColorPickerPopover>
|
|
156899
|
+
// );
|
|
156900
|
+
// }
|
|
156901
|
+
// }
|
|
156902
|
+
// ]),
|
|
156903
|
+
{ path: "name", type: "string" },
|
|
156904
|
+
// ...(noType ? [] : [{ path: "type", type: "string" }]),
|
|
156905
|
+
sizeSchema(this.props.isProtein),
|
|
156906
|
+
{ path: "strand", type: "string" }
|
|
156907
|
+
]
|
|
156908
|
+
};
|
|
156890
156909
|
return /* @__PURE__ */ React$2.createElement("div", { className: classNames$1(DIALOG_BODY, "tg-min-width-dialog") }, /* @__PURE__ */ React$2.createElement(
|
|
156891
156910
|
WrappedDT,
|
|
156892
156911
|
{
|
|
@@ -156904,7 +156923,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
156904
156923
|
withSearch: false,
|
|
156905
156924
|
hideSelectedCount: true,
|
|
156906
156925
|
isInfinite: true,
|
|
156907
|
-
schema:
|
|
156926
|
+
schema: schema2,
|
|
156908
156927
|
entities: this.state.dups
|
|
156909
156928
|
}
|
|
156910
156929
|
), /* @__PURE__ */ React$2.createElement(
|
|
@@ -166122,13 +166141,38 @@ ${seqDataToCopy}\r
|
|
|
166122
166141
|
});
|
|
166123
166142
|
}, "onRowSelect"));
|
|
166124
166143
|
this.commands = getCommands(this);
|
|
166144
|
+
}
|
|
166145
|
+
render() {
|
|
166146
|
+
var _a2;
|
|
166147
|
+
const {
|
|
166148
|
+
readOnly: readOnly2,
|
|
166149
|
+
annotations = {},
|
|
166150
|
+
annotationVisibility: annotationVisibility2,
|
|
166151
|
+
sequenceLength,
|
|
166152
|
+
selectionLayer: selectionLayer2,
|
|
166153
|
+
sequence: sequence2,
|
|
166154
|
+
isProtein: isProtein2,
|
|
166155
|
+
allPartTags,
|
|
166156
|
+
annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
|
|
166157
|
+
selectedAnnotationId
|
|
166158
|
+
} = this.props;
|
|
166159
|
+
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
166160
|
+
const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
|
|
166161
|
+
const annotationsToUse = map$3(annotations, (annotation) => {
|
|
166162
|
+
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
166163
|
+
strand: annotation.forward ? 1 : -1
|
|
166164
|
+
}), {
|
|
166165
|
+
size: getRangeLength(annotation, sequenceLength)
|
|
166166
|
+
});
|
|
166167
|
+
});
|
|
166168
|
+
const keyedPartTags = (_a2 = getKeyedTagsAndTagOptions(allPartTags)) != null ? _a2 : {};
|
|
166125
166169
|
this.schema = {
|
|
166126
166170
|
fields: [
|
|
166127
166171
|
{
|
|
166128
166172
|
path: "name",
|
|
166129
166173
|
type: "string",
|
|
166130
|
-
render: (name2, ann
|
|
166131
|
-
const checked = !
|
|
166174
|
+
render: (name2, ann) => {
|
|
166175
|
+
const checked = !this.props.annotationVisibility[`${annotationType}IndividualToHide`][ann.id];
|
|
166132
166176
|
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(
|
|
166133
166177
|
Icon,
|
|
166134
166178
|
{
|
|
@@ -166137,9 +166181,9 @@ ${seqDataToCopy}\r
|
|
|
166137
166181
|
e2.stopPropagation();
|
|
166138
166182
|
const upperType = startCase(annotationType);
|
|
166139
166183
|
if (checked) {
|
|
166140
|
-
|
|
166184
|
+
this.props[`hide${upperType}Individual`]([ann.id]);
|
|
166141
166185
|
} else {
|
|
166142
|
-
|
|
166186
|
+
this.props[`show${upperType}Individual`]([ann.id]);
|
|
166143
166187
|
}
|
|
166144
166188
|
},
|
|
166145
166189
|
style: {
|
|
@@ -166157,10 +166201,10 @@ ${seqDataToCopy}\r
|
|
|
166157
166201
|
{
|
|
166158
166202
|
path: "bases",
|
|
166159
166203
|
type: "string",
|
|
166160
|
-
render: (bases, primer
|
|
166204
|
+
render: (bases, primer) => {
|
|
166161
166205
|
let bps = bases;
|
|
166162
166206
|
if (!bases) {
|
|
166163
|
-
bps = getSequenceWithinRange(primer,
|
|
166207
|
+
bps = getSequenceWithinRange(primer, this.props.sequence);
|
|
166164
166208
|
if (!primer.forward) {
|
|
166165
166209
|
bps = getReverseComplementSequenceString(bps);
|
|
166166
166210
|
}
|
|
@@ -166185,12 +166229,12 @@ ${seqDataToCopy}\r
|
|
|
166185
166229
|
}
|
|
166186
166230
|
}
|
|
166187
166231
|
],
|
|
166188
|
-
sizeSchema,
|
|
166232
|
+
sizeSchema(this.props.isProtein),
|
|
166189
166233
|
...withTags && this.props.allPartTags ? [
|
|
166190
166234
|
{
|
|
166191
166235
|
path: "tags",
|
|
166192
166236
|
type: "string",
|
|
166193
|
-
getValueToFilterOn: (o2
|
|
166237
|
+
getValueToFilterOn: (o2) => {
|
|
166194
166238
|
const toRet = (o2.tags || []).map((tagId) => {
|
|
166195
166239
|
const tag = keyedPartTags[tagId];
|
|
166196
166240
|
if (!tag)
|
|
@@ -166199,7 +166243,7 @@ ${seqDataToCopy}\r
|
|
|
166199
166243
|
}).join(" ");
|
|
166200
166244
|
return toRet;
|
|
166201
166245
|
},
|
|
166202
|
-
render: (tags
|
|
166246
|
+
render: (tags) => {
|
|
166203
166247
|
return /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, (tags || []).map((tagId, i2) => {
|
|
166204
166248
|
const tag = keyedPartTags[tagId];
|
|
166205
166249
|
if (!tag)
|
|
@@ -166212,29 +166256,6 @@ ${seqDataToCopy}\r
|
|
|
166212
166256
|
{ path: "strand", type: "number" }
|
|
166213
166257
|
]
|
|
166214
166258
|
};
|
|
166215
|
-
}
|
|
166216
|
-
render() {
|
|
166217
|
-
const {
|
|
166218
|
-
readOnly: readOnly2,
|
|
166219
|
-
annotations = {},
|
|
166220
|
-
annotationVisibility: annotationVisibility2,
|
|
166221
|
-
sequenceLength,
|
|
166222
|
-
selectionLayer: selectionLayer2,
|
|
166223
|
-
sequence: sequence2,
|
|
166224
|
-
isProtein: isProtein2,
|
|
166225
|
-
allPartTags,
|
|
166226
|
-
annotationPropertiesSelectedEntities: _annotationPropertiesSelectedEntities,
|
|
166227
|
-
selectedAnnotationId
|
|
166228
|
-
} = this.props;
|
|
166229
|
-
const annotationPropertiesSelectedEntities = _annotationPropertiesSelectedEntities.filter((a2) => annotations[a2.id]);
|
|
166230
|
-
const deleteAnnotation = this.props[`delete${annotationTypeUpper}`];
|
|
166231
|
-
const annotationsToUse = map$3(annotations, (annotation) => {
|
|
166232
|
-
return __spreadProps(__spreadValues(__spreadValues({}, annotation), annotation.strand === void 0 && {
|
|
166233
|
-
strand: annotation.forward ? 1 : -1
|
|
166234
|
-
}), {
|
|
166235
|
-
size: getRangeLength(annotation, sequenceLength)
|
|
166236
|
-
});
|
|
166237
|
-
});
|
|
166238
166259
|
return /* @__PURE__ */ React$2.createElement(
|
|
166239
166260
|
WrappedDT,
|
|
166240
166261
|
{
|
|
@@ -166355,7 +166376,6 @@ ${seqDataToCopy}\r
|
|
|
166355
166376
|
formName: "annotationProperties",
|
|
166356
166377
|
noRouter: true,
|
|
166357
166378
|
isProtein: isProtein2,
|
|
166358
|
-
keyedPartTags: getKeyedTagsAndTagOptions(allPartTags),
|
|
166359
166379
|
compact: true,
|
|
166360
166380
|
isInfinite: true,
|
|
166361
166381
|
schema: this.schema,
|
|
@@ -166718,7 +166738,7 @@ ${seqDataToCopy}\r
|
|
|
166718
166738
|
displayName: "Size (aa)",
|
|
166719
166739
|
type: "number"
|
|
166720
166740
|
},
|
|
166721
|
-
sizeSchema,
|
|
166741
|
+
sizeSchema(this.props.isProtein),
|
|
166722
166742
|
{ path: "frame", type: "number" },
|
|
166723
166743
|
{ path: "strand", type: "number" }
|
|
166724
166744
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.5.31-beta.
|
|
3
|
+
"version": "0.5.31-beta.3",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@teselagen/sequence-utils": "0.3.27",
|
|
14
14
|
"@teselagen/range-utils": "0.3.7",
|
|
15
|
-
"@teselagen/ui": "0.5.23-beta.
|
|
15
|
+
"@teselagen/ui": "0.5.23-beta.12",
|
|
16
16
|
"@teselagen/file-utils": "0.3.16",
|
|
17
17
|
"@teselagen/bounce-loader": "0.3.11",
|
|
18
18
|
"@teselagen/bio-parsers": "0.4.22",
|