@teselagen/ove 0.8.20 → 0.8.22
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/index.cjs.js +167 -38
- package/index.es.js +167 -38
- package/index.umd.js +167 -38
- package/ove.css +46 -0
- package/package.json +2 -2
- package/redux/temporaryAnnotations.d.ts +6 -0
- package/selectors/featuresSelector.d.ts +1 -1
- package/selectors/partsSelector.d.ts +1 -1
- package/selectors/primersSelector.d.ts +1 -1
- package/selectors/searchLayersSelector.d.ts +1 -1
- package/selectors/temporaryAnnotationsSelector.d.ts +2 -0
- package/src/redux/index.js +3 -1
- package/src/redux/temporaryAnnotations.js +23 -0
- package/src/selectors/featuresSelector.js +8 -3
- package/src/selectors/partsSelector.js +9 -3
- package/src/selectors/primersSelector.js +9 -3
- package/src/selectors/searchLayersSelector.js +14 -8
- package/src/selectors/temporaryAnnotationsSelector.js +1 -0
- package/src/updateEditor.js +5 -1
package/index.es.js
CHANGED
|
@@ -17271,7 +17271,8 @@ function rowClick(e, rowInfo, entities, {
|
|
|
17271
17271
|
onMultiRowSelect,
|
|
17272
17272
|
noDeselectAll,
|
|
17273
17273
|
onRowSelect,
|
|
17274
|
-
change: change2
|
|
17274
|
+
change: change2,
|
|
17275
|
+
getCheckboxGroupId
|
|
17275
17276
|
}) {
|
|
17276
17277
|
const entity = rowInfo.original;
|
|
17277
17278
|
onRowClick(e, entity, rowInfo);
|
|
@@ -17343,6 +17344,38 @@ function rowClick(e, rowInfo, entities, {
|
|
|
17343
17344
|
}
|
|
17344
17345
|
}
|
|
17345
17346
|
}
|
|
17347
|
+
if (getCheckboxGroupId) {
|
|
17348
|
+
const clickedRowId = rowId;
|
|
17349
|
+
const clickedEntity = entity;
|
|
17350
|
+
const clickedGroupId = getCheckboxGroupId(clickedEntity, rowInfo.index);
|
|
17351
|
+
if (!newIdMap[clickedRowId] && clickedGroupId) {
|
|
17352
|
+
entities.forEach((e2, i) => {
|
|
17353
|
+
if (getCheckboxGroupId(e2, i) === clickedGroupId) {
|
|
17354
|
+
const id2 = getIdOrCodeOrIndex(e2, i);
|
|
17355
|
+
delete newIdMap[id2];
|
|
17356
|
+
}
|
|
17357
|
+
});
|
|
17358
|
+
}
|
|
17359
|
+
const selectedGroupIds = /* @__PURE__ */ new Set();
|
|
17360
|
+
entities.forEach((e2, i) => {
|
|
17361
|
+
const id2 = getIdOrCodeOrIndex(e2, i);
|
|
17362
|
+
if (newIdMap[id2]) {
|
|
17363
|
+
const gid = getCheckboxGroupId(e2, i);
|
|
17364
|
+
if (gid) selectedGroupIds.add(gid);
|
|
17365
|
+
}
|
|
17366
|
+
});
|
|
17367
|
+
if (selectedGroupIds.size > 0) {
|
|
17368
|
+
entities.forEach((e2, i) => {
|
|
17369
|
+
const gid = getCheckboxGroupId(e2, i);
|
|
17370
|
+
if (gid && selectedGroupIds.has(gid)) {
|
|
17371
|
+
const id2 = getIdOrCodeOrIndex(e2, i);
|
|
17372
|
+
if (!newIdMap[id2]) {
|
|
17373
|
+
newIdMap[id2] = { entity: e2, time: Date.now() };
|
|
17374
|
+
}
|
|
17375
|
+
}
|
|
17376
|
+
});
|
|
17377
|
+
}
|
|
17378
|
+
}
|
|
17346
17379
|
finalizeSelection({
|
|
17347
17380
|
idMap: newIdMap,
|
|
17348
17381
|
entities,
|
|
@@ -51838,6 +51871,7 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
51838
51871
|
resetDefaultVisibility,
|
|
51839
51872
|
currentParams,
|
|
51840
51873
|
compact,
|
|
51874
|
+
hideExpandSubCompColumn,
|
|
51841
51875
|
editingCell,
|
|
51842
51876
|
editingCellSelectAll,
|
|
51843
51877
|
entities,
|
|
@@ -51885,7 +51919,8 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
51885
51919
|
withSort = true,
|
|
51886
51920
|
recordIdToIsVisibleMap,
|
|
51887
51921
|
setRecordIdToIsVisibleMap,
|
|
51888
|
-
withDisplayOptions
|
|
51922
|
+
withDisplayOptions,
|
|
51923
|
+
getCheckboxGroupId
|
|
51889
51924
|
}) => {
|
|
51890
51925
|
const dispatch = useDispatch();
|
|
51891
51926
|
const change$1 = useCallback$1(
|
|
@@ -52133,6 +52168,14 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
52133
52168
|
return /* @__PURE__ */ React__default.createElement("div", null);
|
|
52134
52169
|
}
|
|
52135
52170
|
const entity = entities[rowIndex];
|
|
52171
|
+
if (getCheckboxGroupId) {
|
|
52172
|
+
const currentGroupId = getCheckboxGroupId(entity, rowIndex);
|
|
52173
|
+
const previousEntity = entities[rowIndex - 1];
|
|
52174
|
+
const previousGroupId = previousEntity ? getCheckboxGroupId(previousEntity, rowIndex - 1) : void 0;
|
|
52175
|
+
if (currentGroupId && currentGroupId === previousGroupId) {
|
|
52176
|
+
return /* @__PURE__ */ React__default.createElement("div", null);
|
|
52177
|
+
}
|
|
52178
|
+
}
|
|
52136
52179
|
return /* @__PURE__ */ React__default.createElement(
|
|
52137
52180
|
Checkbox,
|
|
52138
52181
|
{
|
|
@@ -52151,7 +52194,8 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
52151
52194
|
onMultiRowSelect,
|
|
52152
52195
|
noDeselectAll,
|
|
52153
52196
|
onRowSelect,
|
|
52154
|
-
change: change$1
|
|
52197
|
+
change: change$1,
|
|
52198
|
+
getCheckboxGroupId
|
|
52155
52199
|
});
|
|
52156
52200
|
}, "onClick"),
|
|
52157
52201
|
checked: isSelected
|
|
@@ -52172,7 +52216,8 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
52172
52216
|
onRowSelect,
|
|
52173
52217
|
onSingleRowSelect,
|
|
52174
52218
|
reduxFormSelectedEntityIdMap,
|
|
52175
|
-
withCheckboxes
|
|
52219
|
+
withCheckboxes,
|
|
52220
|
+
getCheckboxGroupId
|
|
52176
52221
|
]
|
|
52177
52222
|
);
|
|
52178
52223
|
const finishCellEdit = useCallback$1(
|
|
@@ -52247,13 +52292,14 @@ const useColumns = /* @__PURE__ */ __name(({
|
|
|
52247
52292
|
);
|
|
52248
52293
|
}, "Header")
|
|
52249
52294
|
}), {
|
|
52295
|
+
show: !hideExpandSubCompColumn,
|
|
52250
52296
|
expander: true,
|
|
52251
52297
|
Expander: /* @__PURE__ */ __name(({ isExpanded, original: record }) => {
|
|
52252
52298
|
let shouldShow = true;
|
|
52253
52299
|
if (shouldShowSubComponent) {
|
|
52254
52300
|
shouldShow = shouldShowSubComponent(record);
|
|
52255
52301
|
}
|
|
52256
|
-
if (!shouldShow) return null;
|
|
52302
|
+
if (!shouldShow || hideExpandSubCompColumn) return null;
|
|
52257
52303
|
return /* @__PURE__ */ React__default.createElement(
|
|
52258
52304
|
Button,
|
|
52259
52305
|
{
|
|
@@ -56795,6 +56841,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
56795
56841
|
minimalStyle,
|
|
56796
56842
|
mustClickCheckboxToSelect,
|
|
56797
56843
|
noDeselectAll,
|
|
56844
|
+
hideExpandSubCompColumn,
|
|
56798
56845
|
noFooter = isSimple ? !withPaging : false,
|
|
56799
56846
|
noFullscreenButton = isSimple,
|
|
56800
56847
|
noHeader = false,
|
|
@@ -56842,7 +56889,8 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
56842
56889
|
withSort,
|
|
56843
56890
|
withTitle = !isSimple,
|
|
56844
56891
|
noExcessiveCheck,
|
|
56845
|
-
isEntityCountLoading
|
|
56892
|
+
isEntityCountLoading,
|
|
56893
|
+
getCheckboxGroupId
|
|
56846
56894
|
} = props;
|
|
56847
56895
|
const _entities = useMemo$1(
|
|
56848
56896
|
() => ((reduxFormEntities == null ? void 0 : reduxFormEntities.length) ? reduxFormEntities : _origEntities) || [],
|
|
@@ -58379,6 +58427,15 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58379
58427
|
const isExpanded = expandedEntityIdMap[rowId];
|
|
58380
58428
|
const rowDisabled = isEntityDisabled(entity);
|
|
58381
58429
|
const dataId = entity.id || entity.code;
|
|
58430
|
+
let noGroupBorder = false;
|
|
58431
|
+
if (getCheckboxGroupId) {
|
|
58432
|
+
const currentGroupId = getCheckboxGroupId(entity, rowInfo.index);
|
|
58433
|
+
const nextEntity = entities[rowInfo.index + 1];
|
|
58434
|
+
const nextGroupId = nextEntity ? getCheckboxGroupId(nextEntity, rowInfo.index + 1) : void 0;
|
|
58435
|
+
if (currentGroupId && currentGroupId === nextGroupId) {
|
|
58436
|
+
noGroupBorder = true;
|
|
58437
|
+
}
|
|
58438
|
+
}
|
|
58382
58439
|
return {
|
|
58383
58440
|
onClick: /* @__PURE__ */ __name((e) => {
|
|
58384
58441
|
if (isCellEditable) return;
|
|
@@ -58405,7 +58462,8 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58405
58462
|
onMultiRowSelect,
|
|
58406
58463
|
noDeselectAll,
|
|
58407
58464
|
onRowSelect,
|
|
58408
|
-
change: change$1
|
|
58465
|
+
change: change$1,
|
|
58466
|
+
getCheckboxGroupId
|
|
58409
58467
|
});
|
|
58410
58468
|
}, "onClick"),
|
|
58411
58469
|
//row right click
|
|
@@ -58447,9 +58505,11 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58447
58505
|
{
|
|
58448
58506
|
disabled: rowDisabled,
|
|
58449
58507
|
selected: rowSelected && !withCheckboxes,
|
|
58450
|
-
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
58508
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1,
|
|
58509
|
+
"no-group-border": noGroupBorder
|
|
58451
58510
|
}
|
|
58452
58511
|
),
|
|
58512
|
+
"data-test-selected": !!rowSelected,
|
|
58453
58513
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
58454
58514
|
"data-index": rowInfo.index,
|
|
58455
58515
|
"data-tip": typeof rowDisabled === "string" ? rowDisabled : void 0,
|
|
@@ -58480,7 +58540,8 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58480
58540
|
reduxFormSelectedEntityIdMap,
|
|
58481
58541
|
selectedCells,
|
|
58482
58542
|
showContextMenu2,
|
|
58483
|
-
withCheckboxes
|
|
58543
|
+
withCheckboxes,
|
|
58544
|
+
getCheckboxGroupId
|
|
58484
58545
|
]
|
|
58485
58546
|
);
|
|
58486
58547
|
const getTableCellProps = useCallback$1(
|
|
@@ -58793,6 +58854,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58793
58854
|
isSingleSelect,
|
|
58794
58855
|
isSelectionARectangle,
|
|
58795
58856
|
noDeselectAll,
|
|
58857
|
+
hideExpandSubCompColumn,
|
|
58796
58858
|
noSelect,
|
|
58797
58859
|
noUserSelect,
|
|
58798
58860
|
onDeselect,
|
|
@@ -58824,6 +58886,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
|
|
|
58824
58886
|
withFilter,
|
|
58825
58887
|
withSort,
|
|
58826
58888
|
recordIdToIsVisibleMap,
|
|
58889
|
+
getCheckboxGroupId,
|
|
58827
58890
|
setRecordIdToIsVisibleMap
|
|
58828
58891
|
});
|
|
58829
58892
|
const scrollToTop = useCallback$1(
|
|
@@ -66948,9 +67011,19 @@ function AdvancedOptions({
|
|
|
66948
67011
|
content: content2,
|
|
66949
67012
|
label,
|
|
66950
67013
|
style: style2,
|
|
66951
|
-
isOpenByDefault
|
|
67014
|
+
isOpenByDefault,
|
|
67015
|
+
localStorageKey
|
|
66952
67016
|
}) {
|
|
66953
|
-
const [isOpen, setOpen] = useState(
|
|
67017
|
+
const [isOpen, setOpen] = useState(() => {
|
|
67018
|
+
if (localStorageKey) {
|
|
67019
|
+
if (window.localStorage.getItem(localStorageKey) === "true") {
|
|
67020
|
+
return true;
|
|
67021
|
+
} else if (window.localStorage.getItem(localStorageKey) === "false") {
|
|
67022
|
+
return false;
|
|
67023
|
+
}
|
|
67024
|
+
}
|
|
67025
|
+
return isOpenByDefault;
|
|
67026
|
+
});
|
|
66954
67027
|
if (!(content2 || children)) {
|
|
66955
67028
|
return null;
|
|
66956
67029
|
}
|
|
@@ -66958,20 +67031,28 @@ function AdvancedOptions({
|
|
|
66958
67031
|
"div",
|
|
66959
67032
|
{
|
|
66960
67033
|
onClick: /* @__PURE__ */ __name(() => {
|
|
66961
|
-
|
|
67034
|
+
const newIsOpen = !isOpen;
|
|
67035
|
+
setOpen(newIsOpen);
|
|
67036
|
+
if (localStorageKey) {
|
|
67037
|
+
window.localStorage.setItem(localStorageKey, newIsOpen);
|
|
67038
|
+
}
|
|
66962
67039
|
}, "onClick"),
|
|
66963
|
-
style: {
|
|
66964
|
-
|
|
67040
|
+
style: {
|
|
67041
|
+
cursor: "pointer",
|
|
67042
|
+
display: "flex",
|
|
67043
|
+
alignItems: "center",
|
|
67044
|
+
userSelect: "none"
|
|
67045
|
+
},
|
|
67046
|
+
className: `tg-toggle-advanced-options`
|
|
66965
67047
|
},
|
|
66966
|
-
label || "Advanced",
|
|
66967
|
-
" ",
|
|
66968
67048
|
/* @__PURE__ */ React__default.createElement(
|
|
66969
67049
|
Icon,
|
|
66970
67050
|
{
|
|
66971
67051
|
icon: isOpen ? "caret-down" : "caret-right",
|
|
66972
|
-
style: {
|
|
67052
|
+
style: { marginRight: 5 }
|
|
66973
67053
|
}
|
|
66974
|
-
)
|
|
67054
|
+
),
|
|
67055
|
+
/* @__PURE__ */ React__default.createElement("strong", null, label || "Advanced")
|
|
66975
67056
|
), isOpen && /* @__PURE__ */ React__default.createElement("div", { style: { marginTop: 10 } }, content2 || children));
|
|
66976
67057
|
}
|
|
66977
67058
|
__name(AdvancedOptions, "AdvancedOptions");
|
|
@@ -70265,6 +70346,7 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React_
|
|
|
70265
70346
|
topLeft: true,
|
|
70266
70347
|
topRight: true
|
|
70267
70348
|
},
|
|
70349
|
+
resizeHandleWrapperClass: "tg-dialog-resize-handle",
|
|
70268
70350
|
maxHeight: windowHeight,
|
|
70269
70351
|
maxWidth: windowWidth,
|
|
70270
70352
|
bounds: "window",
|
|
@@ -97174,6 +97256,30 @@ const selectedPartTags$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
97174
97256
|
default: selectedPartTags,
|
|
97175
97257
|
updateSelectedPartTags
|
|
97176
97258
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
97259
|
+
const updateTemporaryAnnotations = createMetaAction(
|
|
97260
|
+
"TEMPORARY_ANNOTATIONS_UPDATE"
|
|
97261
|
+
);
|
|
97262
|
+
const temporaryAnnotations = createMergedDefaultStateReducer(
|
|
97263
|
+
{
|
|
97264
|
+
TEMPORARY_ANNOTATIONS_UPDATE: /* @__PURE__ */ __name((state2, payload) => {
|
|
97265
|
+
return __spreadValues(__spreadValues({}, state2), payload);
|
|
97266
|
+
}, "TEMPORARY_ANNOTATIONS_UPDATE"),
|
|
97267
|
+
VECTOR_EDITOR_UPDATE: /* @__PURE__ */ __name((state2, payload) => {
|
|
97268
|
+
return __spreadValues(__spreadValues({}, state2), payload.temporaryAnnotations);
|
|
97269
|
+
}, "VECTOR_EDITOR_UPDATE")
|
|
97270
|
+
},
|
|
97271
|
+
{
|
|
97272
|
+
features: {},
|
|
97273
|
+
primers: {},
|
|
97274
|
+
parts: {},
|
|
97275
|
+
searchLayers: []
|
|
97276
|
+
}
|
|
97277
|
+
);
|
|
97278
|
+
const temporaryAnnotations$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97279
|
+
__proto__: null,
|
|
97280
|
+
default: temporaryAnnotations,
|
|
97281
|
+
updateTemporaryAnnotations
|
|
97282
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
97177
97283
|
const vectorEditorMiddleware = /* @__PURE__ */ __name((store2) => (next) => (action2) => {
|
|
97178
97284
|
if (action2.meta && action2.meta.disregardUndo) {
|
|
97179
97285
|
return next(action2);
|
|
@@ -97289,7 +97395,8 @@ const subReducers = {
|
|
|
97289
97395
|
partLengthsToHide: partLengthsToHide$1,
|
|
97290
97396
|
primerLengthsToHide: primerLengthsToHide$1,
|
|
97291
97397
|
featureLengthsToHide: featureLengthsToHide$1,
|
|
97292
|
-
selectedPartTags: selectedPartTags$1
|
|
97398
|
+
selectedPartTags: selectedPartTags$1,
|
|
97399
|
+
temporaryAnnotations: temporaryAnnotations$1
|
|
97293
97400
|
};
|
|
97294
97401
|
const vectorEditorInitialize = createMetaAction("VECTOR_EDITOR_UPDATE");
|
|
97295
97402
|
const vectorEditorClear = createMetaAction("VECTOR_EDITOR_CLEAR");
|
|
@@ -97968,9 +98075,10 @@ function translationsRawSelector(sequenceData2) {
|
|
|
97968
98075
|
}
|
|
97969
98076
|
__name(translationsRawSelector, "translationsRawSelector");
|
|
97970
98077
|
const translationsRawSelector$1 = createSelector(sequenceDataSelector, translationsRawSelector);
|
|
97971
|
-
function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambiguousOrLiteral, dnaOrAA, isProtein2, proteinSequence, mismatchesAllowed) {
|
|
98078
|
+
function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambiguousOrLiteral, dnaOrAA, isProtein2, proteinSequence, mismatchesAllowed, tempSearchLayers = []) {
|
|
98079
|
+
const toReturn = [...tempSearchLayers];
|
|
97972
98080
|
if (!searchString || !isOpen) {
|
|
97973
|
-
return
|
|
98081
|
+
return toReturn;
|
|
97974
98082
|
}
|
|
97975
98083
|
if (isProtein2) {
|
|
97976
98084
|
const searchingDna = dnaOrAA === "DNA";
|
|
@@ -97987,7 +98095,7 @@ function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambig
|
|
|
97987
98095
|
).sort(({ start: start2 }, { start: start22 }) => {
|
|
97988
98096
|
return start2 - start22;
|
|
97989
98097
|
});
|
|
97990
|
-
|
|
98098
|
+
const r2 = searchingDna ? matches2 : matches2.map((_a2) => {
|
|
97991
98099
|
var _b2 = _a2, { start: start2, end: end2 } = _b2, rest = __objRest(_b2, ["start", "end"]);
|
|
97992
98100
|
return __spreadProps(__spreadValues({}, rest), {
|
|
97993
98101
|
isSearchLayer: true,
|
|
@@ -97995,6 +98103,10 @@ function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambig
|
|
|
97995
98103
|
end: end2 * 3 + 2
|
|
97996
98104
|
});
|
|
97997
98105
|
});
|
|
98106
|
+
return [
|
|
98107
|
+
...toReturn,
|
|
98108
|
+
...r2
|
|
98109
|
+
];
|
|
97998
98110
|
}
|
|
97999
98111
|
if (dnaOrAA === "DNA" && ambiguousOrLiteral === "LITERAL" && mismatchesAllowed > 0) {
|
|
98000
98112
|
const approxMatches = findApproxMatches(
|
|
@@ -98012,9 +98124,9 @@ function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambig
|
|
|
98012
98124
|
isSearchLayer: true,
|
|
98013
98125
|
forward: true
|
|
98014
98126
|
})).sort((a2, b3) => a2.start - b3.start);
|
|
98015
|
-
return matches2.map((match) => __spreadProps(__spreadValues({}, match), {
|
|
98127
|
+
return [...toReturn, ...matches2.map((match) => __spreadProps(__spreadValues({}, match), {
|
|
98016
98128
|
className: "veSearchLayer"
|
|
98017
|
-
}));
|
|
98129
|
+
}))];
|
|
98018
98130
|
}
|
|
98019
98131
|
const matches = findSequenceMatches(sequence2, searchString, {
|
|
98020
98132
|
isCircular,
|
|
@@ -98024,11 +98136,11 @@ function searchLayersSelector(sequence2, isCircular, isOpen, searchString, ambig
|
|
|
98024
98136
|
}).sort(({ start: start2 }, { start: start22 }) => {
|
|
98025
98137
|
return start2 - start22;
|
|
98026
98138
|
});
|
|
98027
|
-
return matches.map((match) => __spreadProps(__spreadValues({}, match), {
|
|
98139
|
+
return [...toReturn, ...matches.map((match) => __spreadProps(__spreadValues({}, match), {
|
|
98028
98140
|
forward: !match.bottomStrand,
|
|
98029
98141
|
className: "veSearchLayer " + (match.bottomStrand ? " veSearchLayerBottomStrand" : ""),
|
|
98030
98142
|
isSearchLayer: true
|
|
98031
|
-
}));
|
|
98143
|
+
}))];
|
|
98032
98144
|
}
|
|
98033
98145
|
__name(searchLayersSelector, "searchLayersSelector");
|
|
98034
98146
|
const searchLayersSelector$1 = createSelector(
|
|
@@ -98041,6 +98153,7 @@ const searchLayersSelector$1 = createSelector(
|
|
|
98041
98153
|
(state2) => state2.sequenceData.isProtein,
|
|
98042
98154
|
(state2) => state2.sequenceData.proteinSequence,
|
|
98043
98155
|
(state2) => state2.findTool && state2.findTool.mismatchesAllowed,
|
|
98156
|
+
(state2) => state2.temporaryAnnotations.searchLayers,
|
|
98044
98157
|
searchLayersSelector
|
|
98045
98158
|
);
|
|
98046
98159
|
const translationSearchMatchesSelector = createSelector(
|
|
@@ -98054,11 +98167,16 @@ const translationSearchMatchesSelector = createSelector(
|
|
|
98054
98167
|
return searchLayers;
|
|
98055
98168
|
}
|
|
98056
98169
|
);
|
|
98057
|
-
|
|
98058
|
-
|
|
98170
|
+
const temporaryAnnotationsSelector = /* @__PURE__ */ __name((editor) => editor.temporaryAnnotations, "temporaryAnnotationsSelector");
|
|
98171
|
+
function featuresRawSelector(sequenceData2, temporaryAnnotations2) {
|
|
98172
|
+
return __spreadValues(__spreadValues({}, sequenceData2.features), temporaryAnnotations2 == null ? void 0 : temporaryAnnotations2.features);
|
|
98059
98173
|
}
|
|
98060
98174
|
__name(featuresRawSelector, "featuresRawSelector");
|
|
98061
|
-
const featuresSelector = createSelector(
|
|
98175
|
+
const featuresSelector = createSelector(
|
|
98176
|
+
sequenceDataSelector,
|
|
98177
|
+
temporaryAnnotationsSelector,
|
|
98178
|
+
featuresRawSelector
|
|
98179
|
+
);
|
|
98062
98180
|
function cdsFeaturesRawSelector(features2) {
|
|
98063
98181
|
return filter(features2, ({ type: type2 }) => type2 && type2.toUpperCase() === "CDS");
|
|
98064
98182
|
}
|
|
@@ -98338,11 +98456,15 @@ const filteredFeaturesSelector$1 = createSelector(
|
|
|
98338
98456
|
(state2) => state2.featureLengthsToHide,
|
|
98339
98457
|
filteredFeaturesSelector
|
|
98340
98458
|
);
|
|
98341
|
-
function primersRawSelector(sequenceData2) {
|
|
98342
|
-
return sequenceData2.primers;
|
|
98459
|
+
function primersRawSelector(sequenceData2, temporaryAnnotations2) {
|
|
98460
|
+
return __spreadValues(__spreadValues({}, sequenceData2.primers), temporaryAnnotations2 == null ? void 0 : temporaryAnnotations2.primers);
|
|
98343
98461
|
}
|
|
98344
98462
|
__name(primersRawSelector, "primersRawSelector");
|
|
98345
|
-
const primersSelector = createSelector(
|
|
98463
|
+
const primersSelector = createSelector(
|
|
98464
|
+
sequenceDataSelector,
|
|
98465
|
+
temporaryAnnotationsSelector,
|
|
98466
|
+
primersRawSelector
|
|
98467
|
+
);
|
|
98346
98468
|
function filteredPrimersSelector(primers2, seqLen, primerIndividualToHide, lengthsToHide) {
|
|
98347
98469
|
return omitBy(primers2, (ann) => {
|
|
98348
98470
|
const hideIndividually = primerIndividualToHide[ann.id];
|
|
@@ -98357,11 +98479,15 @@ const filteredPrimersSelector$1 = createSelector(
|
|
|
98357
98479
|
(state2) => state2.primerLengthsToHide,
|
|
98358
98480
|
filteredPrimersSelector
|
|
98359
98481
|
);
|
|
98360
|
-
function partsRawSelector(sequenceData2) {
|
|
98361
|
-
return sequenceData2.parts;
|
|
98482
|
+
function partsRawSelector(sequenceData2, temporaryAnnotations2) {
|
|
98483
|
+
return __spreadValues(__spreadValues({}, sequenceData2.parts), temporaryAnnotations2 == null ? void 0 : temporaryAnnotations2.parts);
|
|
98362
98484
|
}
|
|
98363
98485
|
__name(partsRawSelector, "partsRawSelector");
|
|
98364
|
-
const partsSelector = createSelector(
|
|
98486
|
+
const partsSelector = createSelector(
|
|
98487
|
+
sequenceDataSelector,
|
|
98488
|
+
temporaryAnnotationsSelector,
|
|
98489
|
+
partsRawSelector
|
|
98490
|
+
);
|
|
98365
98491
|
const tagsToBoldSelector = /* @__PURE__ */ __name((state2) => state2.selectedPartTags.parts, "tagsToBoldSelector");
|
|
98366
98492
|
function addWrappedAddons(anns, seqLen) {
|
|
98367
98493
|
return flatMap(anns, (ann) => {
|
|
@@ -99188,7 +99314,8 @@ function updateEditor(store2, editorName, initialValues2 = {}, extraMeta = {}, {
|
|
|
99188
99314
|
annotationVisibility: annotationVisibility2,
|
|
99189
99315
|
annotationsToSupport: annotationsToSupport2,
|
|
99190
99316
|
findTool: findTool2,
|
|
99191
|
-
justPassingPartialSeqData
|
|
99317
|
+
justPassingPartialSeqData,
|
|
99318
|
+
temporaryAnnotations: temporaryAnnotations2
|
|
99192
99319
|
} = initialValues2;
|
|
99193
99320
|
const currentEditor = store2.getState().VectorEditor[editorName] || {};
|
|
99194
99321
|
const isAlreadyProteinEditor = currentEditor.sequenceData && currentEditor.sequenceData.isProtein;
|
|
@@ -99310,12 +99437,14 @@ function updateEditor(store2, editorName, initialValues2 = {}, extraMeta = {}, {
|
|
|
99310
99437
|
};
|
|
99311
99438
|
}
|
|
99312
99439
|
}
|
|
99313
|
-
payload = __spreadValues(__spreadValues(__spreadValues({}, initialValues2), toSpread), sequenceData2 && {
|
|
99440
|
+
payload = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, initialValues2), toSpread), sequenceData2 && {
|
|
99314
99441
|
sequenceData: tidyUpSequenceData(sequenceData2, {
|
|
99315
99442
|
convertAnnotationsFromAAIndices,
|
|
99316
99443
|
//if we have sequence data coming in make sure to tidy it up for the user :)
|
|
99317
99444
|
annotationsAsObjects: true
|
|
99318
99445
|
})
|
|
99446
|
+
}), temporaryAnnotations2 && {
|
|
99447
|
+
temporaryAnnotations: temporaryAnnotations2
|
|
99319
99448
|
});
|
|
99320
99449
|
}
|
|
99321
99450
|
annotationTypes.forEach((t2) => {
|
|
@@ -116790,7 +116919,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
116790
116919
|
input.click();
|
|
116791
116920
|
}
|
|
116792
116921
|
__name(showFileDialog, "showFileDialog");
|
|
116793
|
-
const version = "0.8.
|
|
116922
|
+
const version = "0.8.21";
|
|
116794
116923
|
const packageJson = {
|
|
116795
116924
|
version
|
|
116796
116925
|
};
|