@teselagen/ove 0.5.16 → 0.5.18
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/AlignmentTool/index.d.ts +1 -1
- package/AlignmentView/HorizontalPanelDragHandle.d.ts +1 -1
- package/AlignmentView/Minimap.d.ts +3 -3
- package/AlignmentView/Mismatches.d.ts +2 -2
- package/AlignmentView/PairwiseAlignmentView.d.ts +2 -2
- package/AlignmentView/PerformantSelectionLayer.d.ts +1 -1
- package/AlignmentView/index.d.ts +7 -7
- package/AutoAnnotate.d.ts +1 -1
- package/AutoAnnotateBpMatchingDialog.d.ts +1 -1
- package/CircularView/Axis.d.ts +1 -1
- package/CircularView/AxisNumbers.d.ts +1 -1
- package/CircularView/CircularDnaSequence.d.ts +1 -1
- package/CircularView/CircularZoomMinimap.d.ts +1 -1
- package/CircularView/Cutsite.d.ts +1 -1
- package/CircularView/Cutsites.d.ts +1 -1
- package/CircularView/DeletionLayer.d.ts +1 -1
- package/CircularView/Feature.d.ts +1 -1
- package/CircularView/Labels/index.d.ts +1 -1
- package/CircularView/Orf.d.ts +1 -1
- package/CircularView/Part.d.ts +1 -1
- package/CircularView/PositionAnnotationOnCircle.d.ts +1 -1
- package/CircularView/Primer.d.ts +1 -1
- package/CircularView/RotateCircularViewSlider.d.ts +1 -1
- package/CircularView/VeTopRightContainer.d.ts +1 -1
- package/CircularView/ZoomCircularViewSlider.d.ts +1 -1
- package/CircularView/drawAnnotations.d.ts +1 -1
- package/CircularView/getInternalLabel.d.ts +1 -1
- package/CircularView/index.d.ts +2 -1
- package/CutsiteFilter/AdditionalCutsiteInfoDialog.d.ts +4 -4
- package/CutsiteFilter/index.d.ts +1 -1
- package/DigestTool/DigestTool.d.ts +2 -2
- package/DigestTool/Ladder.d.ts +1 -1
- package/Editor/DropHandler.d.ts +2 -2
- package/Editor/FillWindow.d.ts +2 -2
- package/Editor/index.d.ts +4 -4
- package/EnzymeViewer/index.d.ts +1 -1
- package/FindBar/index.d.ts +2 -2
- package/GlobalDialog.d.ts +1 -1
- package/LinearView/SequenceName.d.ts +1 -1
- package/LinearView/ZoomLinearView.d.ts +1 -1
- package/LinearView/index.d.ts +2 -2
- package/ManageEnzymes/index.d.ts +1 -1
- package/MenuBar/defaultConfig.d.ts +3 -3
- package/MenuBar/viewSubmenu.d.ts +3 -2
- package/README.md +2 -2
- package/Reflex/ReflexContainer.d.ts +4 -4
- package/Reflex/ReflexElement.d.ts +4 -4
- package/Reflex/ReflexSplitter.d.ts +3 -3
- package/Reflex/index.d.ts +4 -3
- package/RowItem/AnnotationContainerHolder.d.ts +1 -1
- package/RowItem/AnnotationPositioner.d.ts +2 -2
- package/RowItem/Axis.d.ts +1 -1
- package/RowItem/Caret/index.d.ts +1 -1
- package/RowItem/Chromatograms/Chromatogram.d.ts +1 -1
- package/RowItem/CutsiteSelectionLayers.d.ts +1 -1
- package/RowItem/Orf.d.ts +1 -1
- package/RowItem/Orfs.d.ts +1 -1
- package/RowItem/Sequence.d.ts +2 -2
- package/RowItem/StackedAnnotations/PointedAnnotation.d.ts +1 -1
- package/RowItem/StackedAnnotations/index.d.ts +1 -1
- package/RowItem/Translations/index.d.ts +1 -1
- package/RowItem/index.d.ts +1 -1
- package/RowView/index.d.ts +2 -1
- package/SimpleCircularOrLinearView.d.ts +1 -1
- package/SimpleOligoPreview.d.ts +1 -1
- package/StatusBar/MeltingTemp.d.ts +3 -3
- package/StatusBar/index.d.ts +3 -2
- package/ToolBar/ToolbarItem.d.ts +2 -2
- package/ToolBar/alignmentTool.d.ts +1 -1
- package/ToolBar/cutsiteTool.d.ts +1 -1
- package/ToolBar/downloadTool.d.ts +1 -1
- package/ToolBar/editTool.d.ts +1 -1
- package/ToolBar/featureTool.d.ts +1 -1
- package/ToolBar/findTool.d.ts +1 -1
- package/ToolBar/index.d.ts +1 -1
- package/ToolBar/inlineFindTool.d.ts +1 -1
- package/ToolBar/oligoTool.d.ts +1 -1
- package/ToolBar/orfTool.d.ts +1 -1
- package/ToolBar/partTool.d.ts +1 -1
- package/ToolBar/printTool.d.ts +1 -1
- package/ToolBar/redoTool.d.ts +1 -1
- package/ToolBar/saveTool.d.ts +1 -1
- package/ToolBar/undoTool.d.ts +1 -1
- package/ToolBar/versionHistoryTool.d.ts +1 -1
- package/ToolBar/visibilityTool.d.ts +1 -1
- package/VersionHistoryView/index.d.ts +2 -2
- package/commands/index.d.ts +7 -7
- package/helperComponents/AddOrEditAnnotationDialog/index.d.ts +1 -1
- package/helperComponents/AddOrEditFeatureDialog/index.d.ts +1 -1
- package/helperComponents/AddOrEditPartDialog/index.d.ts +1 -1
- package/helperComponents/AddOrEditPrimerDialog/index.d.ts +1 -1
- package/helperComponents/EnzymesDialog/index.d.ts +1 -1
- package/helperComponents/GoToDialog.d.ts +1 -1
- package/helperComponents/MergeFeaturesDialog/index.d.ts +1 -1
- package/helperComponents/MultipleSeqsDetectedOnImportDialog.d.ts +1 -1
- package/helperComponents/PinchHelper/PinchHelper.d.ts +1 -1
- package/helperComponents/PrintDialog/index.d.ts +1 -1
- package/helperComponents/PropertiesDialog/ColorPicker.d.ts +2 -2
- package/helperComponents/PropertiesDialog/GenericAnnotationProperties.d.ts +1 -1
- package/helperComponents/PropertiesDialog/SingleEnzymeCutsiteInfo.d.ts +1 -1
- package/helperComponents/PropertiesDialog/index.d.ts +2 -2
- package/helperComponents/PropertiesDialog/typeField.d.ts +1 -1
- package/helperComponents/PropertiesDialog/utils.d.ts +1 -1
- package/helperComponents/RemoveDuplicates/index.d.ts +1 -1
- package/helperComponents/RenameSequenceDialog.d.ts +1 -1
- package/helperComponents/SelectDialog.d.ts +1 -1
- package/helperComponents/UncontrolledSliderWithPlusMinusBtns.d.ts +2 -2
- package/helperComponents/VeWarning/index.d.ts +1 -1
- package/helperComponents/createSimpleDialog.d.ts +1 -1
- package/helperComponents/withHover.d.ts +3 -3
- package/index.cjs.js +9161 -7662
- package/index.d.ts +25 -25
- package/index.es.js +8722 -7223
- package/index.umd.js +7751 -7126
- package/package.json +7 -2
- package/redux/alignments.d.ts +4 -4
- package/redux/annotationLabelVisibility.d.ts +3 -3
- package/redux/annotationVisibility.d.ts +15 -15
- package/redux/annotationsToSupport.d.ts +3 -3
- package/redux/caretPosition.d.ts +3 -3
- package/redux/charWidth.d.ts +2 -2
- package/redux/copyOptions.d.ts +2 -2
- package/redux/createYourOwnEnzyme.d.ts +4 -4
- package/redux/deletionLayers.d.ts +4 -4
- package/redux/digestTool.d.ts +2 -2
- package/redux/featureLengthsToHide.d.ts +2 -2
- package/redux/findTool.d.ts +7 -7
- package/redux/frameTranslations.d.ts +4 -4
- package/redux/hoveredAnnotation.d.ts +3 -3
- package/redux/index.d.ts +7 -7
- package/redux/labelLineIntensity.d.ts +2 -2
- package/redux/labelSize.d.ts +2 -2
- package/redux/lastSavedId.d.ts +2 -2
- package/redux/minimumOrfSize.d.ts +2 -2
- package/redux/panelsShown.d.ts +10 -10
- package/redux/partLengthsToHide.d.ts +2 -2
- package/redux/primerLengthsToHide.d.ts +2 -2
- package/redux/propertiesTool.d.ts +1 -1
- package/redux/readOnly.d.ts +3 -3
- package/redux/replacementLayers.d.ts +4 -4
- package/redux/restrictionEnzymes.d.ts +4 -4
- package/redux/selectedAnnotations.d.ts +5 -5
- package/redux/selectedPartTags.d.ts +2 -2
- package/redux/selectionLayer.d.ts +3 -3
- package/redux/sequenceData/circular.d.ts +2 -2
- package/redux/sequenceData/description.d.ts +2 -2
- package/redux/sequenceData/features.d.ts +3 -3
- package/redux/sequenceData/index.d.ts +9 -9
- package/redux/sequenceData/lineageLines.d.ts +1 -1
- package/redux/sequenceData/materiallyAvailable.d.ts +2 -2
- package/redux/sequenceData/name.d.ts +2 -2
- package/redux/sequenceData/parts.d.ts +3 -3
- package/redux/sequenceData/primers.d.ts +3 -3
- package/redux/sequenceData/sequence.d.ts +2 -2
- package/redux/sequenceData/translations.d.ts +3 -3
- package/redux/sequenceDataHistory.d.ts +4 -4
- package/redux/showGCContent.d.ts +2 -2
- package/redux/toolBar.d.ts +1 -1
- package/redux/uppercaseSequenceMapFont.d.ts +2 -2
- package/redux/useAdditionalOrfStartCodons.d.ts +2 -2
- package/redux/utils/createMetaAction.d.ts +1 -1
- package/redux/versionHistory.d.ts +2 -2
- package/selectors/annotationSearchSelector.d.ts +1 -1
- package/selectors/cdsFeaturesSelector.d.ts +1 -1
- package/selectors/cutsiteLabelColorSelector.d.ts +1 -1
- package/selectors/cutsitesSelector.d.ts +1 -1
- package/selectors/featuresSelector.d.ts +1 -1
- package/selectors/filteredCutsitesSelector.d.ts +1 -1
- package/selectors/filteredFeaturesSelector.d.ts +1 -1
- package/selectors/filteredPartsSelector.d.ts +1 -1
- package/selectors/filteredPrimersSelector.d.ts +1 -1
- package/selectors/getAdditionalEnzymesSelector.d.ts +1 -1
- package/selectors/index.d.ts +19 -19
- package/selectors/orfsSelector.d.ts +1 -1
- package/selectors/partsSelector.d.ts +1 -1
- package/selectors/primersSelector.d.ts +1 -1
- package/selectors/restrictionEnzymesSelector.d.ts +1 -1
- package/selectors/searchLayersSelector.d.ts +1 -1
- package/selectors/selectedCutsitesSelector.d.ts +1 -1
- package/selectors/translationSearchMatchesSelector.d.ts +1 -1
- package/selectors/translationsRawSelector.d.ts +1 -1
- package/selectors/translationsSelector.d.ts +1 -1
- package/src/StatusBar/index.js +20 -3
- package/src/helperComponents/AddOrEditAnnotationDialog/index.js +2 -0
- package/src/withEditorInteractions/index.js +35 -8
- package/utils/editorUtils.d.ts +3 -3
- package/utils/useAAColorType.d.ts +1 -1
- package/utils/useAnnotationLimits.d.ts +2 -2
- package/utils/useChromatogramPrefs.d.ts +2 -2
- package/utils/useLadders.d.ts +1 -1
- package/utils/useMeltingTemp.d.ts +1 -1
- package/utils/useTmType.d.ts +1 -1
- package/withEditorInteractions/Keyboard.d.ts +2 -2
- package/withEditorInteractions/index.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any[]) & import(
|
|
1
|
+
declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any) => any[], {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -2,7 +2,7 @@ declare const _default: ((state: any) => {
|
|
|
2
2
|
cutsitesByName: {};
|
|
3
3
|
cutsitesById: {};
|
|
4
4
|
cutsitesArray: never[];
|
|
5
|
-
}) & import(
|
|
5
|
+
}) & import('reselect').OutputSelectorFields<(...args: any) => {
|
|
6
6
|
cutsitesByName: {};
|
|
7
7
|
cutsitesById: {};
|
|
8
8
|
cutsitesArray: never[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any, ...params: any[]) => any) & import(
|
|
1
|
+
declare const _default: ((state: any, ...params: any[]) => any) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => Partial<any>) & import(
|
|
1
|
+
declare const _default: ((state: any) => Partial<any>) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => Partial<any>, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any[]) & import(
|
|
1
|
+
declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any) => any[], {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => Partial<any>) & import(
|
|
1
|
+
declare const _default: ((state: any) => Partial<any>) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => Partial<any>, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any, ...params: any[]) => {}) & import(
|
|
1
|
+
declare const _default: ((state: any, ...params: any[]) => {}) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => {}, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
package/selectors/index.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import { default as translationsSelector } from './translationsSelector';
|
|
2
|
+
import { default as getAdditionalEnzymesSelector } from './getAdditionalEnzymesSelector';
|
|
3
|
+
import { default as cutsitesSelector } from './cutsitesSelector';
|
|
4
|
+
import { default as sequenceDataSelector } from './sequenceDataSelector';
|
|
5
|
+
import { default as sequenceLengthSelector } from './sequenceLengthSelector';
|
|
6
|
+
import { default as selectedCutsitesSelector } from './selectedCutsitesSelector';
|
|
7
|
+
import { default as orfsSelector } from './orfsSelector';
|
|
8
|
+
import { default as circularSelector } from './circularSelector';
|
|
9
|
+
import { default as annotationSearchSelector } from './annotationSearchSelector';
|
|
10
|
+
import { default as searchLayersSelector } from './searchLayersSelector';
|
|
11
|
+
import { default as filteredCutsitesSelector } from './filteredCutsitesSelector';
|
|
12
|
+
import { default as filteredRestrictionEnzymesSelector } from './filteredRestrictionEnzymesSelector';
|
|
13
|
+
import { default as filteredPrimersSelector } from './filteredPrimersSelector';
|
|
14
|
+
import { default as filteredFeaturesSelector } from './filteredFeaturesSelector';
|
|
15
|
+
import { default as filteredPartsSelector } from './filteredPartsSelector';
|
|
16
|
+
import { default as isEnzymeFilterAndSelector } from './isEnzymeFilterAndSelector';
|
|
17
|
+
import { default as restrictionEnzymesSelector } from './restrictionEnzymesSelector';
|
|
18
|
+
import { default as sequenceSelector } from './sequenceSelector';
|
|
19
|
+
import { default as cutsiteLabelColorSelector } from './cutsiteLabelColorSelector';
|
|
1
20
|
declare namespace _default {
|
|
2
21
|
export { translationsSelector };
|
|
3
22
|
export { getAdditionalEnzymesSelector };
|
|
@@ -20,22 +39,3 @@ declare namespace _default {
|
|
|
20
39
|
export { cutsiteLabelColorSelector };
|
|
21
40
|
}
|
|
22
41
|
export default _default;
|
|
23
|
-
import translationsSelector from "./translationsSelector";
|
|
24
|
-
import getAdditionalEnzymesSelector from "./getAdditionalEnzymesSelector";
|
|
25
|
-
import cutsitesSelector from "./cutsitesSelector";
|
|
26
|
-
import sequenceDataSelector from "./sequenceDataSelector";
|
|
27
|
-
import sequenceLengthSelector from "./sequenceLengthSelector";
|
|
28
|
-
import selectedCutsitesSelector from "./selectedCutsitesSelector";
|
|
29
|
-
import orfsSelector from "./orfsSelector";
|
|
30
|
-
import circularSelector from "./circularSelector";
|
|
31
|
-
import annotationSearchSelector from "./annotationSearchSelector";
|
|
32
|
-
import searchLayersSelector from "./searchLayersSelector";
|
|
33
|
-
import filteredCutsitesSelector from "./filteredCutsitesSelector";
|
|
34
|
-
import filteredRestrictionEnzymesSelector from "./filteredRestrictionEnzymesSelector";
|
|
35
|
-
import filteredPrimersSelector from "./filteredPrimersSelector";
|
|
36
|
-
import filteredFeaturesSelector from "./filteredFeaturesSelector";
|
|
37
|
-
import filteredPartsSelector from "./filteredPartsSelector";
|
|
38
|
-
import isEnzymeFilterAndSelector from "./isEnzymeFilterAndSelector";
|
|
39
|
-
import restrictionEnzymesSelector from "./restrictionEnzymesSelector";
|
|
40
|
-
import sequenceSelector from "./sequenceSelector";
|
|
41
|
-
import cutsiteLabelColorSelector from "./cutsiteLabelColorSelector";
|
|
@@ -8,7 +8,7 @@ declare const _default: ((state: any) => {
|
|
|
8
8
|
annotationTypePlural: string;
|
|
9
9
|
isOrf: boolean;
|
|
10
10
|
id: any;
|
|
11
|
-
}[]) & import(
|
|
11
|
+
}[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any) => {
|
|
12
12
|
start: number;
|
|
13
13
|
end: number;
|
|
14
14
|
length: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any, ...params: any[]) => any) & import(
|
|
1
|
+
declare const _default: ((state: any, ...params: any[]) => any) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any[]) & import(
|
|
1
|
+
declare const _default: ((state: any) => any[]) & import('reselect').OutputSelectorFields<(args_0: any, args_1: any, args_2: any, args_3: any, args_4: any, args_5: any, args_6: any, args_7: any) => any[], {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any, ...params: any[]) => unknown) & import(
|
|
1
|
+
declare const _default: ((state: any, ...params: any[]) => unknown) & import('reselect').OutputSelectorFields<(...args: readonly unknown[]) => unknown, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any) => any, {
|
|
2
2
|
clearCache: () => void;
|
|
3
3
|
}> & {
|
|
4
4
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: ((state: any) => any) & import(
|
|
1
|
+
declare const _default: ((state: any) => any) & import('reselect').OutputSelectorFields<(args_0: any, args_1: unknown, args_2: any, args_3: {
|
|
2
2
|
start: number;
|
|
3
3
|
end: number;
|
|
4
4
|
length: number;
|
package/src/StatusBar/index.js
CHANGED
|
@@ -19,14 +19,29 @@ import { handleReadOnlyChange } from "../ToolBar/editTool";
|
|
|
19
19
|
const EditReadOnlyItem = connectToEditor(({ readOnly }) => ({
|
|
20
20
|
readOnly
|
|
21
21
|
}))(props => {
|
|
22
|
-
const {
|
|
22
|
+
const {
|
|
23
|
+
onSave,
|
|
24
|
+
readOnly,
|
|
25
|
+
showReadOnly,
|
|
26
|
+
disableSetReadOnly,
|
|
27
|
+
disableBpEditing
|
|
28
|
+
} = props;
|
|
23
29
|
return showReadOnly ? (
|
|
24
30
|
<StatusBarItem dataTest="veStatusBar-readOnly">
|
|
25
31
|
{onSave ? (
|
|
26
32
|
<HTMLSelect
|
|
33
|
+
data-tip={
|
|
34
|
+
!readOnly && disableBpEditing ? disableBpEditing : undefined
|
|
35
|
+
}
|
|
27
36
|
options={[
|
|
28
|
-
{
|
|
29
|
-
|
|
37
|
+
{
|
|
38
|
+
label: "Read Only",
|
|
39
|
+
value: "readOnly"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "Editable" + (disableBpEditing ? "*" : ""),
|
|
43
|
+
value: "editable"
|
|
44
|
+
}
|
|
30
45
|
]}
|
|
31
46
|
disabled={disableSetReadOnly || !onSave} //the !onSave here is redundant
|
|
32
47
|
className={Classes.MINIMAL}
|
|
@@ -209,6 +224,7 @@ const EditAvailabilityItem = connectToEditor(
|
|
|
209
224
|
|
|
210
225
|
export function StatusBar({
|
|
211
226
|
disableSetReadOnly,
|
|
227
|
+
disableBpEditing,
|
|
212
228
|
onSave,
|
|
213
229
|
editorName,
|
|
214
230
|
showCircularity = true,
|
|
@@ -230,6 +246,7 @@ export function StatusBar({
|
|
|
230
246
|
beforeReadOnlyChange={beforeReadOnlyChange}
|
|
231
247
|
editorName={editorName}
|
|
232
248
|
onSave={onSave}
|
|
249
|
+
disableBpEditing={disableBpEditing}
|
|
233
250
|
disableSetReadOnly={disableSetReadOnly}
|
|
234
251
|
showReadOnly={showReadOnly}
|
|
235
252
|
/>
|
|
@@ -254,6 +254,7 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
254
254
|
updatedData = data;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
+
const _bases = updatedData.bases || bases;
|
|
257
258
|
if (!data.useLinkedOligo) {
|
|
258
259
|
delete updatedData.bases;
|
|
259
260
|
}
|
|
@@ -291,6 +292,7 @@ class AddOrEditAnnotationDialog extends React.Component {
|
|
|
291
292
|
|
|
292
293
|
if (beforeAnnotationCreate) {
|
|
293
294
|
const shouldContinue = await beforeAnnotationCreate({
|
|
295
|
+
bases: _bases,
|
|
294
296
|
annotationTypePlural,
|
|
295
297
|
annotation: newAnnotation,
|
|
296
298
|
props: this.props,
|
|
@@ -213,10 +213,10 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
213
213
|
} = this.props;
|
|
214
214
|
|
|
215
215
|
if (disableBpEditing) {
|
|
216
|
-
return
|
|
216
|
+
return this.createDisableBpEditingMsg();
|
|
217
217
|
}
|
|
218
218
|
if (readOnly) {
|
|
219
|
-
return
|
|
219
|
+
return this.createReadOnlyMsg();
|
|
220
220
|
}
|
|
221
221
|
if (!(caretPosition > -1 || selectionLayer.start > -1)) {
|
|
222
222
|
return window.toastr.warning("Please place the cursor before pasting");
|
|
@@ -344,6 +344,33 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
344
344
|
|
|
345
345
|
handleCopy = this.handleCutOrCopy();
|
|
346
346
|
|
|
347
|
+
getDuplicateAction = () => {
|
|
348
|
+
if (!this.props.onDuplicate) {
|
|
349
|
+
return undefined;
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
action: {
|
|
353
|
+
text: "Create a Duplicate?",
|
|
354
|
+
onClick: () => {
|
|
355
|
+
window.__tgClearAllToasts();
|
|
356
|
+
this.props.onDuplicate(this.props.sequenceData, this.props);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
createDisableBpEditingMsg = () => {
|
|
362
|
+
window.toastr.warning(
|
|
363
|
+
this.props.disableBpEditing,
|
|
364
|
+
this.getDuplicateAction()
|
|
365
|
+
);
|
|
366
|
+
};
|
|
367
|
+
createReadOnlyMsg = () => {
|
|
368
|
+
window.toastr.warning(
|
|
369
|
+
"Sorry the sequence is Read-Only",
|
|
370
|
+
this.getDuplicateAction()
|
|
371
|
+
);
|
|
372
|
+
};
|
|
373
|
+
|
|
347
374
|
handleDnaInsert = async ({ useEventPositioning }) => {
|
|
348
375
|
const {
|
|
349
376
|
caretPosition = -1,
|
|
@@ -358,10 +385,10 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
358
385
|
const sequenceLength = sequenceData.sequence.length;
|
|
359
386
|
const isReplace = selectionLayer.start > -1;
|
|
360
387
|
if (disableBpEditing) {
|
|
361
|
-
return
|
|
388
|
+
return this.createDisableBpEditingMsg();
|
|
362
389
|
}
|
|
363
|
-
if (readOnly
|
|
364
|
-
|
|
390
|
+
if (readOnly) {
|
|
391
|
+
return this.createReadOnlyMsg();
|
|
365
392
|
} else {
|
|
366
393
|
createSequenceInputPopup({
|
|
367
394
|
useEventPositioning,
|
|
@@ -397,10 +424,10 @@ function VectorInteractionHOC(Component /* options */) {
|
|
|
397
424
|
} = this.props;
|
|
398
425
|
const sequenceLength = sequenceData.sequence.length;
|
|
399
426
|
if (disableBpEditing) {
|
|
400
|
-
return
|
|
427
|
+
return this.createDisableBpEditingMsg();
|
|
401
428
|
}
|
|
402
|
-
if (readOnly
|
|
403
|
-
return
|
|
429
|
+
if (readOnly) {
|
|
430
|
+
return this.createReadOnlyMsg();
|
|
404
431
|
}
|
|
405
432
|
if (sequenceLength > 0) {
|
|
406
433
|
let rangeToDelete = selectionLayer;
|
package/utils/editorUtils.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function getNodeToRefocus(caretEl: any): any;
|
|
|
16
16
|
export function getEmptyText({ sequenceData, caretPosition }: {
|
|
17
17
|
sequenceData: any;
|
|
18
18
|
caretPosition: any;
|
|
19
|
-
}): import(
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
20
|
export function tryToRefocusEditor(): void;
|
|
21
21
|
export function getCustomEnzymes(): any;
|
|
22
22
|
export function addCustomEnzyme(newEnz: any): void;
|
|
@@ -25,12 +25,12 @@ export function getParedDownWarning({ nameUpper, maxToShow, isAdjustable }: {
|
|
|
25
25
|
nameUpper: any;
|
|
26
26
|
maxToShow: any;
|
|
27
27
|
isAdjustable: any;
|
|
28
|
-
}): import(
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export function getClientX(event: any): any;
|
|
30
30
|
export function getClientY(event: any): any;
|
|
31
31
|
export function hideAnnByLengthFilter(hideOpts: any, ann: any, seqLen: any): any;
|
|
32
32
|
export function getSelFromWrappedAddon(selectionLayer: any, sequenceLength: any): any;
|
|
33
33
|
export function getStripedPattern({ color }: {
|
|
34
34
|
color: any;
|
|
35
|
-
}): import(
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export function getEnzymeAliases(enzyme: any): any[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default useAAColorType;
|
|
2
|
-
declare function useAAColorType(): import(
|
|
2
|
+
declare function useAAColorType(): import('tg-use-local-storage-state').LocalStorageState<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export function LimitAnnotations({ type, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
type: any;
|
|
4
|
-
}): import(
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export default useAnnotationLimits;
|
|
6
|
-
declare function useAnnotationLimits(): import(
|
|
6
|
+
declare function useAnnotationLimits(): import('tg-use-local-storage-state').LocalStorageState<{
|
|
7
7
|
features: number;
|
|
8
8
|
parts: number;
|
|
9
9
|
primers: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export namespace chromatogramMenu {
|
|
2
2
|
let text: string;
|
|
3
3
|
let cmd: string;
|
|
4
|
-
function component(props: any): import(
|
|
4
|
+
function component(props: any): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
let shouldDismissPopover: boolean;
|
|
6
6
|
}
|
|
7
|
-
export function useShowChromQualScores(): import(
|
|
7
|
+
export function useShowChromQualScores(): import('tg-use-local-storage-state').LocalStorageState<boolean>;
|
package/utils/useLadders.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default useLadders;
|
|
2
|
-
declare function useLadders(): import(
|
|
2
|
+
declare function useLadders(): import('tg-use-local-storage-state').LocalStorageState<never[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default useMeltingTemp;
|
|
2
|
-
declare function useMeltingTemp(): import(
|
|
2
|
+
declare function useMeltingTemp(): import('tg-use-local-storage-state').LocalStorageState<unknown>;
|
package/utils/useTmType.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default useTmType;
|
|
2
|
-
declare function useTmType(): import(
|
|
2
|
+
declare function useTmType(): import('tg-use-local-storage-state').LocalStorageState<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/react';
|
|
1
2
|
export default Clipboard;
|
|
2
3
|
declare class Clipboard extends React.Component<any, any, any> {
|
|
3
4
|
static defaultProps: {
|
|
@@ -10,7 +11,6 @@ declare class Clipboard extends React.Component<any, any, any> {
|
|
|
10
11
|
handleKeyDown: (e: any) => void;
|
|
11
12
|
origFocusedElement: Element | null | undefined;
|
|
12
13
|
handleKeyUp: () => void;
|
|
13
|
-
render(): import(
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
node: HTMLInputElement | undefined;
|
|
15
16
|
}
|
|
16
|
-
import React from '../../../../node_modules/react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default withEditorInteractions;
|
|
2
|
-
declare const withEditorInteractions: import('../../../../node_modules/redux').Func0<(props: any) => import(
|
|
2
|
+
declare const withEditorInteractions: import('../../../../node_modules/redux').Func0<(props: any) => import("react/jsx-runtime").JSX.Element>;
|