@teselagen/ove 0.7.14 → 0.7.16
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/StatusBar/index.d.ts +8 -0
- package/index.cjs.js +89 -218
- package/index.es.js +90 -219
- package/index.umd.js +91 -220
- package/package.json +2 -2
- package/src/CircularView/RotateCircularViewSlider.js +5 -3
- package/src/FindBar/index.js +3 -4
- package/src/SimpleCircularOrLinearView.js +3 -2
- package/src/StatusBar/index.js +14 -10
- package/src/helperComponents/PropertiesDialog/GeneralProperties.js +20 -40
package/StatusBar/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from '../../../../node_modules/react';
|
|
1
2
|
export function StatusBar({ disableSetReadOnly, disableBpEditing, onSave, editorName, showCircularity, showMoleculeType, showReadOnly, showAvailability, showGCContentByDefault, onSelectionOrCaretChanged, GCDecimalDigits, isProtein, beforeReadOnlyChange }: {
|
|
2
3
|
disableSetReadOnly: any;
|
|
3
4
|
disableBpEditing: any;
|
|
@@ -13,4 +14,11 @@ export function StatusBar({ disableSetReadOnly, disableBpEditing, onSave, editor
|
|
|
13
14
|
isProtein: any;
|
|
14
15
|
beforeReadOnlyChange: any;
|
|
15
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export const EditReadOnlyItem: import('../../../../node_modules/react-redux').ConnectedComponent<React.ComponentType<import('../../../../node_modules/react-redux').Matching<any, unknown>>, {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}>;
|
|
20
|
+
export const EditCircularityItem: any;
|
|
21
|
+
export const EditAvailabilityItem: import('../../../../node_modules/react-redux').ConnectedComponent<React.ComponentType<import('../../../../node_modules/react-redux').Matching<any, unknown>>, {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>;
|
|
16
24
|
export default StatusBar;
|
package/index.cjs.js
CHANGED
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var
|
|
59
|
+
var _C, _D, _E, _F, _G, _J, _M, _T;
|
|
60
60
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
61
61
|
const core = require("@blueprintjs/core");
|
|
62
62
|
const React$2 = require("react");
|
|
@@ -31762,37 +31762,7 @@ __name(AsyncValidateFieldSpinner, "AsyncValidateFieldSpinner");
|
|
|
31762
31762
|
* See the License for the specific language governing permissions and
|
|
31763
31763
|
* limitations under the License.
|
|
31764
31764
|
*/
|
|
31765
|
-
|
|
31766
|
-
if (Array.isArray(o2)) {
|
|
31767
|
-
return o2.map(sortKeys);
|
|
31768
|
-
} else if (o2 instanceof Object) {
|
|
31769
|
-
let numeric = [];
|
|
31770
|
-
let nonNumeric = [];
|
|
31771
|
-
Object.keys(o2).forEach((key) => {
|
|
31772
|
-
if (/^(0|[1-9][0-9]*)$/.test(key)) {
|
|
31773
|
-
numeric.push(+key);
|
|
31774
|
-
} else {
|
|
31775
|
-
nonNumeric.push(key);
|
|
31776
|
-
}
|
|
31777
|
-
});
|
|
31778
|
-
return numeric.sort(function(a2, b3) {
|
|
31779
|
-
return a2 - b3;
|
|
31780
|
-
}).concat(nonNumeric.sort()).reduce((result, key) => {
|
|
31781
|
-
result[key] = sortKeys(o2[key]);
|
|
31782
|
-
return result;
|
|
31783
|
-
}, {});
|
|
31784
|
-
}
|
|
31785
|
-
return o2;
|
|
31786
|
-
}, "sortKeys");
|
|
31787
|
-
const jsonStringify = JSON.stringify.bind(JSON);
|
|
31788
|
-
const sortify = /* @__PURE__ */ __name((value, replacer, space2) => {
|
|
31789
|
-
let nativeJson = jsonStringify(value, replacer, 0);
|
|
31790
|
-
if (!nativeJson || nativeJson[0] !== "{" && nativeJson[0] !== "[") {
|
|
31791
|
-
return nativeJson;
|
|
31792
|
-
}
|
|
31793
|
-
let cleanObj = JSON.parse(nativeJson);
|
|
31794
|
-
return jsonStringify(sortKeys(cleanObj), null, space2);
|
|
31795
|
-
}, "sortify");
|
|
31765
|
+
JSON.stringify.bind(JSON);
|
|
31796
31766
|
const REQUIRED_ERROR = "This field is required.";
|
|
31797
31767
|
const fieldRequired = /* @__PURE__ */ __name((value) => !value || Array.isArray(value) && !value.length ? REQUIRED_ERROR : void 0, "fieldRequired");
|
|
31798
31768
|
const useStableReference = /* @__PURE__ */ __name((value) => {
|
|
@@ -32399,98 +32369,15 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
|
|
|
32399
32369
|
});
|
|
32400
32370
|
return /* @__PURE__ */ React$2.createElement(TgSelect$1, __spreadValues({}, propsToUse));
|
|
32401
32371
|
}, "renderReactSelect");
|
|
32402
|
-
const
|
|
32403
|
-
var _r = _q, {
|
|
32404
|
-
return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
|
|
32405
|
-
}, "BPSelect");
|
|
32406
|
-
const renderSelect = /* @__PURE__ */ __name((_s) => {
|
|
32407
|
-
var _t = _s, {
|
|
32408
|
-
input: { value, onChange },
|
|
32409
|
-
hideValue,
|
|
32410
|
-
className,
|
|
32411
|
-
placeholder,
|
|
32412
|
-
onFieldSubmit,
|
|
32413
|
-
options,
|
|
32414
|
-
hidePlaceHolder,
|
|
32415
|
-
minimal,
|
|
32416
|
-
disabled
|
|
32417
|
-
} = _t, rest = __objRest(_t, [
|
|
32418
|
-
"input",
|
|
32419
|
-
"hideValue",
|
|
32420
|
-
"className",
|
|
32421
|
-
"placeholder",
|
|
32422
|
-
"onFieldSubmit",
|
|
32423
|
-
"options",
|
|
32424
|
-
"hidePlaceHolder",
|
|
32425
|
-
"minimal",
|
|
32426
|
-
"disabled"
|
|
32427
|
-
]);
|
|
32428
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
32429
|
-
"div",
|
|
32430
|
-
{
|
|
32431
|
-
className: `${minimal && core.Classes.MINIMAL} ` + classNames(core.Classes.SELECT, core.Classes.FILL, className)
|
|
32432
|
-
},
|
|
32433
|
-
/* @__PURE__ */ React$2.createElement(
|
|
32434
|
-
"select",
|
|
32435
|
-
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, removeUnwantedProps(rest)), {
|
|
32436
|
-
className: `${disabled && core.Classes.DISABLED} `,
|
|
32437
|
-
value: placeholder && value === "" ? "__placeholder__" : typeof value !== "string" ? sortify(value) : value,
|
|
32438
|
-
disabled
|
|
32439
|
-
}), hideValue ? { value: "" } : {}), {
|
|
32440
|
-
onChange: function(e) {
|
|
32441
|
-
let val2 = e.target.value;
|
|
32442
|
-
try {
|
|
32443
|
-
const maybeNewValue = JSON.parse(e.target.value);
|
|
32444
|
-
const hasMatchInOriginalOptions = options.find(
|
|
32445
|
-
(opt) => opt === maybeNewValue || opt.value === maybeNewValue
|
|
32446
|
-
);
|
|
32447
|
-
if (hasMatchInOriginalOptions || isPlainObject$5(maybeNewValue)) {
|
|
32448
|
-
val2 = maybeNewValue;
|
|
32449
|
-
}
|
|
32450
|
-
} catch (e2) {
|
|
32451
|
-
}
|
|
32452
|
-
onChange(val2);
|
|
32453
|
-
onFieldSubmit && onFieldSubmit(val2);
|
|
32454
|
-
}
|
|
32455
|
-
}),
|
|
32456
|
-
placeholder && /* @__PURE__ */ React$2.createElement("option", { value: "__placeholder__", disabled: true, hidden: hidePlaceHolder }, placeholder),
|
|
32457
|
-
options.map(function(opt, index2) {
|
|
32458
|
-
let label, value2;
|
|
32459
|
-
if (typeof opt === "string") {
|
|
32460
|
-
label = opt;
|
|
32461
|
-
value2 = opt;
|
|
32462
|
-
} else if (isNumber$6(opt)) {
|
|
32463
|
-
label = opt.toString();
|
|
32464
|
-
value2 = opt;
|
|
32465
|
-
} else if (Array.isArray(opt)) {
|
|
32466
|
-
throw new Error(
|
|
32467
|
-
"the option coming in should be an object, not an array!"
|
|
32468
|
-
);
|
|
32469
|
-
} else {
|
|
32470
|
-
label = opt.label;
|
|
32471
|
-
value2 = opt.value;
|
|
32472
|
-
}
|
|
32473
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
32474
|
-
"option",
|
|
32475
|
-
{
|
|
32476
|
-
key: index2,
|
|
32477
|
-
value: typeof value2 !== "string" ? sortify(value2) : value2
|
|
32478
|
-
},
|
|
32479
|
-
label
|
|
32480
|
-
);
|
|
32481
|
-
})
|
|
32482
|
-
)
|
|
32483
|
-
);
|
|
32484
|
-
}, "renderSelect");
|
|
32485
|
-
const renderBlueprintNumericInput = /* @__PURE__ */ __name((_u) => {
|
|
32486
|
-
var _v = _u, {
|
|
32372
|
+
const renderBlueprintNumericInput = /* @__PURE__ */ __name((_q) => {
|
|
32373
|
+
var _r = _q, {
|
|
32487
32374
|
input,
|
|
32488
32375
|
hideValue,
|
|
32489
32376
|
intent,
|
|
32490
32377
|
inputClassName,
|
|
32491
32378
|
onFieldSubmit,
|
|
32492
32379
|
onAnyNumberChange
|
|
32493
|
-
} =
|
|
32380
|
+
} = _r, rest = __objRest(_r, [
|
|
32494
32381
|
"input",
|
|
32495
32382
|
"hideValue",
|
|
32496
32383
|
"intent",
|
|
@@ -32535,12 +32422,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_u) => {
|
|
|
32535
32422
|
})
|
|
32536
32423
|
);
|
|
32537
32424
|
}, "renderBlueprintNumericInput");
|
|
32538
|
-
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((
|
|
32539
|
-
var
|
|
32425
|
+
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_s) => {
|
|
32426
|
+
var _t = _s, {
|
|
32540
32427
|
input,
|
|
32541
32428
|
options,
|
|
32542
32429
|
onFieldSubmit
|
|
32543
|
-
} =
|
|
32430
|
+
} = _t, rest = __objRest(_t, [
|
|
32544
32431
|
"input",
|
|
32545
32432
|
"options",
|
|
32546
32433
|
"onFieldSubmit"
|
|
@@ -53408,8 +53295,8 @@ const itemSizeEstimators = {
|
|
|
53408
53295
|
normal: () => 33.34,
|
|
53409
53296
|
comfortable: () => 41.34
|
|
53410
53297
|
};
|
|
53411
|
-
const DataTable = /* @__PURE__ */ __name((
|
|
53412
|
-
var
|
|
53298
|
+
const DataTable = /* @__PURE__ */ __name((_u) => {
|
|
53299
|
+
var _v = _u, {
|
|
53413
53300
|
controlled_pageSize,
|
|
53414
53301
|
formName = "tgDataTable",
|
|
53415
53302
|
history,
|
|
@@ -53423,7 +53310,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
|
|
|
53423
53310
|
tableParams: _tableParams,
|
|
53424
53311
|
anyTouched,
|
|
53425
53312
|
blur
|
|
53426
|
-
} =
|
|
53313
|
+
} = _v, ownProps = __objRest(_v, [
|
|
53427
53314
|
"controlled_pageSize",
|
|
53428
53315
|
"formName",
|
|
53429
53316
|
"history",
|
|
@@ -69398,14 +69285,22 @@ function AdvancedOptions({
|
|
|
69398
69285
|
), isOpen && /* @__PURE__ */ React$2.createElement("div", { style: { marginTop: 10 } }, content2 || children));
|
|
69399
69286
|
}
|
|
69400
69287
|
__name(AdvancedOptions, "AdvancedOptions");
|
|
69401
|
-
|
|
69402
|
-
var
|
|
69288
|
+
const TgHTMLSelect = /* @__PURE__ */ __name((_w) => {
|
|
69289
|
+
var _x = _w, { disabled } = _x, rest = __objRest(_x, ["disabled"]);
|
|
69290
|
+
if (disabled) {
|
|
69291
|
+
const opt = rest.options.find((o2) => o2.value === rest.value);
|
|
69292
|
+
return /* @__PURE__ */ React$2.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames("bp3-html-select", rest.className) }), opt.label);
|
|
69293
|
+
}
|
|
69294
|
+
return /* @__PURE__ */ React$2.createElement(core.HTMLSelect, __spreadValues({}, rest));
|
|
69295
|
+
}, "TgHTMLSelect");
|
|
69296
|
+
function DropdownButton(_y) {
|
|
69297
|
+
var _z = _y, {
|
|
69403
69298
|
disabled,
|
|
69404
69299
|
menu,
|
|
69405
69300
|
noRightIcon,
|
|
69406
69301
|
popoverProps,
|
|
69407
69302
|
className
|
|
69408
|
-
} =
|
|
69303
|
+
} = _z, rest = __objRest(_z, [
|
|
69409
69304
|
"disabled",
|
|
69410
69305
|
"menu",
|
|
69411
69306
|
"noRightIcon",
|
|
@@ -72783,14 +72678,14 @@ const EnhancedMenuItem = compose(
|
|
|
72783
72678
|
}
|
|
72784
72679
|
}),
|
|
72785
72680
|
branch(({ navTo }) => navTo, withRouter)
|
|
72786
|
-
)(function(
|
|
72787
|
-
var
|
|
72681
|
+
)(function(_A) {
|
|
72682
|
+
var _B = _A, {
|
|
72788
72683
|
navTo,
|
|
72789
72684
|
context,
|
|
72790
72685
|
staticContext,
|
|
72791
72686
|
didMount,
|
|
72792
72687
|
willUnmount
|
|
72793
|
-
} =
|
|
72688
|
+
} = _B, props = __objRest(_B, [
|
|
72794
72689
|
"navTo",
|
|
72795
72690
|
"context",
|
|
72796
72691
|
"staticContext",
|
|
@@ -73065,7 +72960,7 @@ const symbols = {
|
|
|
73065
72960
|
down: "↓"
|
|
73066
72961
|
};
|
|
73067
72962
|
symbols.mod = symbols[isMac ? "meta" : "ctrl"];
|
|
73068
|
-
let MenuBar$1 = (
|
|
72963
|
+
let MenuBar$1 = (_C = class extends React$2.Component {
|
|
73069
72964
|
constructor(props) {
|
|
73070
72965
|
super(props);
|
|
73071
72966
|
__publicField(this, "state", {
|
|
@@ -73310,10 +73205,10 @@ let MenuBar$1 = (_E = class extends React$2.Component {
|
|
|
73310
73205
|
);
|
|
73311
73206
|
}), extraContent);
|
|
73312
73207
|
}
|
|
73313
|
-
}, __name(
|
|
73208
|
+
}, __name(_C, "MenuBar"), __publicField(_C, "defaultProps", {
|
|
73314
73209
|
className: "",
|
|
73315
73210
|
style: {}
|
|
73316
|
-
}),
|
|
73211
|
+
}), _C);
|
|
73317
73212
|
const isDivider = /* @__PURE__ */ __name((item) => item.divider !== void 0, "isDivider");
|
|
73318
73213
|
function getAllMenuTextsAndHandlers(menu, enhancers, context, path2 = []) {
|
|
73319
73214
|
if (!menu)
|
|
@@ -73461,7 +73356,7 @@ function HotkeysDialog(props) {
|
|
|
73461
73356
|
);
|
|
73462
73357
|
}
|
|
73463
73358
|
__name(HotkeysDialog, "HotkeysDialog");
|
|
73464
|
-
let FillWindow$1 = (
|
|
73359
|
+
let FillWindow$1 = (_D = class extends React$2.Component {
|
|
73465
73360
|
constructor(props) {
|
|
73466
73361
|
super(props);
|
|
73467
73362
|
rerenderOnWindowResize(this);
|
|
@@ -73509,7 +73404,7 @@ let FillWindow$1 = (_F = class extends React$2.Component {
|
|
|
73509
73404
|
return ReactDOM$1.createPortal(inner2, window.document.body);
|
|
73510
73405
|
return inner2;
|
|
73511
73406
|
}
|
|
73512
|
-
}, __name(
|
|
73407
|
+
}, __name(_D, "FillWindow"), _D);
|
|
73513
73408
|
var relativeTime$1 = { exports: {} };
|
|
73514
73409
|
(function(module2, exports2) {
|
|
73515
73410
|
!function(r2, e) {
|
|
@@ -92568,7 +92463,7 @@ const util$1 = util$4;
|
|
|
92568
92463
|
const xmlNode = xmlNode$1;
|
|
92569
92464
|
const readDocType = DocTypeReader;
|
|
92570
92465
|
const toNumber = strnum;
|
|
92571
|
-
let OrderedObjParser$1 = (
|
|
92466
|
+
let OrderedObjParser$1 = (_E = class {
|
|
92572
92467
|
constructor(options) {
|
|
92573
92468
|
this.options = options;
|
|
92574
92469
|
this.currentNode = null;
|
|
@@ -92607,7 +92502,7 @@ let OrderedObjParser$1 = (_G = class {
|
|
|
92607
92502
|
this.saveTextToParentTag = saveTextToParentTag;
|
|
92608
92503
|
this.addChild = addChild;
|
|
92609
92504
|
}
|
|
92610
|
-
}, __name(
|
|
92505
|
+
}, __name(_E, "OrderedObjParser"), _E);
|
|
92611
92506
|
function addExternalEntities(externalEntities) {
|
|
92612
92507
|
const entKeys = Object.keys(externalEntities);
|
|
92613
92508
|
for (let i = 0; i < entKeys.length; i++) {
|
|
@@ -93163,7 +93058,7 @@ const { buildOptions } = OptionsBuilder;
|
|
|
93163
93058
|
const OrderedObjParser = OrderedObjParser_1;
|
|
93164
93059
|
const { prettify } = node2json;
|
|
93165
93060
|
const validator$1 = validator$2;
|
|
93166
|
-
let XMLParser$1 = (
|
|
93061
|
+
let XMLParser$1 = (_F = class {
|
|
93167
93062
|
constructor(options) {
|
|
93168
93063
|
this.externalEntities = {};
|
|
93169
93064
|
this.options = buildOptions(options);
|
|
@@ -93213,7 +93108,7 @@ let XMLParser$1 = (_H = class {
|
|
|
93213
93108
|
this.externalEntities[key] = value;
|
|
93214
93109
|
}
|
|
93215
93110
|
}
|
|
93216
|
-
}, __name(
|
|
93111
|
+
}, __name(_F, "XMLParser"), _F);
|
|
93217
93112
|
var XMLParser_1 = XMLParser$1;
|
|
93218
93113
|
const EOL = "\n";
|
|
93219
93114
|
function toXml(jArray, options) {
|
|
@@ -120379,7 +120274,7 @@ const Labels$2 = onlyUpdateForKeys([
|
|
|
120379
120274
|
"editorName"
|
|
120380
120275
|
])(Labels$1);
|
|
120381
120276
|
const DrawLabel = withHover(
|
|
120382
|
-
(
|
|
120277
|
+
(_G = class extends React$2.Component {
|
|
120383
120278
|
render() {
|
|
120384
120279
|
const {
|
|
120385
120280
|
hovered,
|
|
@@ -120483,7 +120378,7 @@ const DrawLabel = withHover(
|
|
|
120483
120378
|
}
|
|
120484
120379
|
));
|
|
120485
120380
|
}
|
|
120486
|
-
}, __name(
|
|
120381
|
+
}, __name(_G, "DrawLabelInner"), _G)
|
|
120487
120382
|
);
|
|
120488
120383
|
const labelClassNames = {
|
|
120489
120384
|
cutsites: "veCutsiteLabel",
|
|
@@ -122393,7 +122288,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
122393
122288
|
}
|
|
122394
122289
|
__name(showFileDialog, "showFileDialog");
|
|
122395
122290
|
const name = "@teselagen/ove";
|
|
122396
|
-
const version = "0.7.
|
|
122291
|
+
const version = "0.7.15";
|
|
122397
122292
|
const main = "./src/index.js";
|
|
122398
122293
|
const type = "module";
|
|
122399
122294
|
const exports$1 = {
|
|
@@ -122473,8 +122368,8 @@ const useAnnotationLimits = /* @__PURE__ */ __name(() => useLocalStorageState("a
|
|
|
122473
122368
|
cutsites: 100
|
|
122474
122369
|
}
|
|
122475
122370
|
}), "useAnnotationLimits");
|
|
122476
|
-
function LimitAnnotations(
|
|
122477
|
-
var
|
|
122371
|
+
function LimitAnnotations(_H) {
|
|
122372
|
+
var _I = _H, { type: type2 } = _I, rest = __objRest(_I, ["type"]);
|
|
122478
122373
|
const [limits = {}, setLimits] = useAnnotationLimits();
|
|
122479
122374
|
return /* @__PURE__ */ React$2.createElement(core.MenuItem, __spreadValues({ icon: "blank", shouldDismissPopover: false }, rest), [50, 100, 200, 400].map((n2) => /* @__PURE__ */ React$2.createElement(
|
|
122480
122375
|
core.MenuItem,
|
|
@@ -130382,7 +130277,7 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
130382
130277
|
__name(_Minimap, "Minimap");
|
|
130383
130278
|
let Minimap = _Minimap;
|
|
130384
130279
|
const YellowScrollHandle = view(
|
|
130385
|
-
(
|
|
130280
|
+
(_J = class extends React$2.Component {
|
|
130386
130281
|
render() {
|
|
130387
130282
|
const {
|
|
130388
130283
|
scrollHandleWidth,
|
|
@@ -130537,7 +130432,7 @@ const YellowScrollHandle = view(
|
|
|
130537
130432
|
)
|
|
130538
130433
|
);
|
|
130539
130434
|
}
|
|
130540
|
-
}, __name(
|
|
130435
|
+
}, __name(_J, "YellowScrollHandleInner"), _J)
|
|
130541
130436
|
);
|
|
130542
130437
|
function getTrimmedRangesToDisplay({ trimmedRange, seqLen }) {
|
|
130543
130438
|
if (!trimmedRange)
|
|
@@ -130910,14 +130805,14 @@ function getRangeAnglesSpecial() {
|
|
|
130910
130805
|
}, rest);
|
|
130911
130806
|
}
|
|
130912
130807
|
__name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
|
|
130913
|
-
function PositionAnnotationOnCircle(
|
|
130914
|
-
var
|
|
130808
|
+
function PositionAnnotationOnCircle(_K) {
|
|
130809
|
+
var _L = _K, {
|
|
130915
130810
|
children,
|
|
130916
130811
|
height: height2 = 0,
|
|
130917
130812
|
sAngle = 0,
|
|
130918
130813
|
eAngle = 0,
|
|
130919
130814
|
forward = true
|
|
130920
|
-
} =
|
|
130815
|
+
} = _L, rest = __objRest(_L, [
|
|
130921
130816
|
"children",
|
|
130922
130817
|
"height",
|
|
130923
130818
|
"sAngle",
|
|
@@ -133222,13 +133117,14 @@ function RotateCircularViewSlider({
|
|
|
133222
133117
|
smallSlider,
|
|
133223
133118
|
editorName
|
|
133224
133119
|
}) {
|
|
133120
|
+
const mainSelector = editorName ? `.veEditor.${editorName}` : ".veEditor";
|
|
133225
133121
|
const target = React$2.useRef();
|
|
133226
133122
|
const svgEleRef = React$2.useRef();
|
|
133227
133123
|
React$2.useEffect(() => {
|
|
133228
133124
|
var _a2;
|
|
133229
|
-
const svgEle = (_a2 = document.querySelector(
|
|
133125
|
+
const svgEle = (_a2 = document.querySelector(mainSelector)) == null ? void 0 : _a2.querySelector(".veCircularView .circularViewSvg");
|
|
133230
133126
|
svgEleRef.current = svgEle;
|
|
133231
|
-
}, [editorName]);
|
|
133127
|
+
}, [editorName, mainSelector]);
|
|
133232
133128
|
const showLabelsDebounced = c(
|
|
133233
133129
|
(el) => {
|
|
133234
133130
|
try {
|
|
@@ -133265,9 +133161,11 @@ function RotateCircularViewSlider({
|
|
|
133265
133161
|
var _a2;
|
|
133266
133162
|
const val2 = 360 - _val;
|
|
133267
133163
|
if (!svgEleRef.current) {
|
|
133268
|
-
svgEleRef.current = (_a2 = document.querySelector(
|
|
133164
|
+
svgEleRef.current = (_a2 = document.querySelector(mainSelector)) == null ? void 0 : _a2.querySelector(".veCircularView .circularViewSvg");
|
|
133269
133165
|
}
|
|
133270
133166
|
const el = svgEleRef.current;
|
|
133167
|
+
if (!el)
|
|
133168
|
+
return;
|
|
133271
133169
|
const innerEl = el == null ? void 0 : el.querySelector("g");
|
|
133272
133170
|
innerEl.style.transform = `rotate(${val2}deg)`;
|
|
133273
133171
|
setRotationRadians(val2 * Math.PI / 180);
|
|
@@ -141126,7 +141024,8 @@ const SimpleCircularOrLinearView = /* @__PURE__ */ __name((props) => {
|
|
|
141126
141024
|
withFullscreen,
|
|
141127
141025
|
selectionLayer: selectionLayer2,
|
|
141128
141026
|
selectionLayerUpdate: selectionLayerUpdate2,
|
|
141129
|
-
caretPositionUpdate: caretPositionUpdate2
|
|
141027
|
+
caretPositionUpdate: caretPositionUpdate2,
|
|
141028
|
+
editorName = "tg-simple-dna-view"
|
|
141130
141029
|
} = props;
|
|
141131
141030
|
const [previewType, setPreviewType] = React$2.useState(
|
|
141132
141031
|
_sequenceData.circular ? "circular" : "linear"
|
|
@@ -141259,7 +141158,7 @@ const SimpleCircularOrLinearView = /* @__PURE__ */ __name((props) => {
|
|
|
141259
141158
|
Component,
|
|
141260
141159
|
__spreadValues({}, __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
141261
141160
|
showCicularViewInternalLabels: true,
|
|
141262
|
-
className:
|
|
141161
|
+
className: `${editorName} veEditor tg-simple-dna-view`,
|
|
141263
141162
|
width: 300,
|
|
141264
141163
|
height: 300,
|
|
141265
141164
|
noWarnings,
|
|
@@ -141498,7 +141397,7 @@ const SelectDialog = redux.compose(
|
|
|
141498
141397
|
}),
|
|
141499
141398
|
tgFormValues("from", "to")
|
|
141500
141399
|
)(
|
|
141501
|
-
(
|
|
141400
|
+
(_M = class extends React$2.Component {
|
|
141502
141401
|
constructor() {
|
|
141503
141402
|
super(...arguments);
|
|
141504
141403
|
__publicField(this, "updateTempHighlight", /* @__PURE__ */ __name(({ isStart, isEnd } = {}) => (val2) => {
|
|
@@ -141609,7 +141508,7 @@ const SelectDialog = redux.compose(
|
|
|
141609
141508
|
))
|
|
141610
141509
|
);
|
|
141611
141510
|
}
|
|
141612
|
-
}, __name(
|
|
141511
|
+
}, __name(_M, "SelectDialog"), _M)
|
|
141613
141512
|
);
|
|
141614
141513
|
const normalizeToInt = /* @__PURE__ */ __name((val2) => {
|
|
141615
141514
|
const int2 = Math.round(val2);
|
|
@@ -145084,8 +144983,8 @@ function getTrackFromEvent(event, allTracks) {
|
|
|
145084
144983
|
return track;
|
|
145085
144984
|
}
|
|
145086
144985
|
__name(getTrackFromEvent, "getTrackFromEvent");
|
|
145087
|
-
const PerformantSelectionLayer = view((
|
|
145088
|
-
var
|
|
144986
|
+
const PerformantSelectionLayer = view((_N) => {
|
|
144987
|
+
var _O = _N, { easyStore: easyStore2 } = _O, rest = __objRest(_O, ["easyStore"]);
|
|
145089
144988
|
const seqLen = rest.sequenceLength - 1;
|
|
145090
144989
|
return /* @__PURE__ */ React$2.createElement(
|
|
145091
144990
|
SelectionLayer$3,
|
|
@@ -146911,8 +146810,8 @@ const AlignmentView$1 = compose(
|
|
|
146911
146810
|
})
|
|
146912
146811
|
)
|
|
146913
146812
|
)(AlignmentView);
|
|
146914
|
-
const PerformantCaret = view((
|
|
146915
|
-
var
|
|
146813
|
+
const PerformantCaret = view((_P) => {
|
|
146814
|
+
var _Q = _P, { easyStore: easyStore2 } = _Q, rest = __objRest(_Q, ["easyStore"]);
|
|
146916
146815
|
return /* @__PURE__ */ React$2.createElement(Caret$2, __spreadValues({ caretPosition: easyStore2.caretPosition }, rest));
|
|
146917
146816
|
});
|
|
146918
146817
|
function cleanTracks(alignmentTracks) {
|
|
@@ -149175,14 +149074,14 @@ const cutsiteTool = connectToEditor(
|
|
|
149175
149074
|
}, toolbarItemProps))
|
|
149176
149075
|
);
|
|
149177
149076
|
});
|
|
149178
|
-
function CutsiteToolDropDown(
|
|
149179
|
-
var
|
|
149077
|
+
function CutsiteToolDropDown(_R) {
|
|
149078
|
+
var _S = _R, {
|
|
149180
149079
|
editorName,
|
|
149181
149080
|
toggleDropdown,
|
|
149182
149081
|
annotationVisibilityShow: annotationVisibilityShow2,
|
|
149183
149082
|
withDigestTool,
|
|
149184
149083
|
createNewDigest: createNewDigest2
|
|
149185
|
-
} =
|
|
149084
|
+
} = _S, rest = __objRest(_S, [
|
|
149186
149085
|
"editorName",
|
|
149187
149086
|
"toggleDropdown",
|
|
149188
149087
|
"annotationVisibilityShow",
|
|
@@ -149310,7 +149209,7 @@ const orfTool = connectToEditor(
|
|
|
149310
149209
|
);
|
|
149311
149210
|
});
|
|
149312
149211
|
const OrfToolDropdown = withEditorProps(
|
|
149313
|
-
(
|
|
149212
|
+
(_T = class extends React$2.Component {
|
|
149314
149213
|
constructor(props) {
|
|
149315
149214
|
super(props);
|
|
149316
149215
|
this.commands = getCommands(this);
|
|
@@ -149336,7 +149235,7 @@ const OrfToolDropdown = withEditorProps(
|
|
|
149336
149235
|
}
|
|
149337
149236
|
));
|
|
149338
149237
|
}
|
|
149339
|
-
}, __name(
|
|
149238
|
+
}, __name(_T, "OrfDropdown"), _T)
|
|
149340
149239
|
);
|
|
149341
149240
|
const opts = [
|
|
149342
149241
|
{ label: "DNA", value: "DNA" },
|
|
@@ -149396,7 +149295,7 @@ const _FindBar = class _FindBar extends React$2.Component {
|
|
|
149396
149295
|
}, "updateMatchNumber");
|
|
149397
149296
|
const findOptionsEls = [
|
|
149398
149297
|
/* @__PURE__ */ React$2.createElement(
|
|
149399
|
-
|
|
149298
|
+
TgHTMLSelect,
|
|
149400
149299
|
{
|
|
149401
149300
|
key: "dnaoraa",
|
|
149402
149301
|
options: opts,
|
|
@@ -149408,7 +149307,7 @@ const _FindBar = class _FindBar extends React$2.Component {
|
|
|
149408
149307
|
}
|
|
149409
149308
|
),
|
|
149410
149309
|
/* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" }, key: "ambiguousorliteral" }, /* @__PURE__ */ React$2.createElement(
|
|
149411
|
-
|
|
149310
|
+
TgHTMLSelect,
|
|
149412
149311
|
{
|
|
149413
149312
|
name: "ambiguousOrLiteral",
|
|
149414
149313
|
options: [
|
|
@@ -149951,10 +149850,11 @@ const EditReadOnlyItem = connectToEditor(({ readOnly: readOnly2 }) => ({
|
|
|
149951
149850
|
disableSetReadOnly,
|
|
149952
149851
|
disableBpEditing
|
|
149953
149852
|
} = props;
|
|
149853
|
+
const disabled = disableSetReadOnly || !onSave;
|
|
149954
149854
|
return showReadOnly ? /* @__PURE__ */ React$2.createElement(StatusBarItem, { dataTest: "veStatusBar-readOnly" }, onSave ? /* @__PURE__ */ React$2.createElement(
|
|
149955
|
-
|
|
149855
|
+
TgHTMLSelect,
|
|
149956
149856
|
{
|
|
149957
|
-
"data-tip": !readOnly2 && disableBpEditing ? disableBpEditing : void 0,
|
|
149857
|
+
"data-tip": !readOnly2 && typeof disableBpEditing === "string" ? disableBpEditing : void 0,
|
|
149958
149858
|
options: [
|
|
149959
149859
|
{
|
|
149960
149860
|
label: "Read Only",
|
|
@@ -149965,8 +149865,8 @@ const EditReadOnlyItem = connectToEditor(({ readOnly: readOnly2 }) => ({
|
|
|
149965
149865
|
value: "editable"
|
|
149966
149866
|
}
|
|
149967
149867
|
],
|
|
149968
|
-
disabled
|
|
149969
|
-
className: core.Classes.MINIMAL,
|
|
149868
|
+
disabled,
|
|
149869
|
+
className: core.Classes.MINIMAL + " veReadOnlySelect",
|
|
149970
149870
|
value: readOnly2 ? "readOnly" : "editable",
|
|
149971
149871
|
onChange: ({ target: { value } }) => handleReadOnlyChange(value === "readOnly", props)
|
|
149972
149872
|
}
|
|
@@ -150070,7 +149970,7 @@ const EditCircularityItem = compose(
|
|
|
150070
149970
|
withHandlers({ updateCircular })
|
|
150071
149971
|
)(({ readOnly: readOnly2, showCircularity, circular: circular2, updateCircular: updateCircular2 }) => {
|
|
150072
149972
|
return showCircularity ? /* @__PURE__ */ React$2.createElement(StatusBarItem, { dataTest: "veStatusBar-circularity" }, readOnly2 ? circular2 ? "Circular" : "Linear" : /* @__PURE__ */ React$2.createElement(
|
|
150073
|
-
|
|
149973
|
+
TgHTMLSelect,
|
|
150074
149974
|
{
|
|
150075
149975
|
onChange: ({ target: { value } }) => {
|
|
150076
149976
|
updateCircular2(value === "circular");
|
|
@@ -150091,7 +149991,7 @@ const EditAvailabilityItem = connectToEditor(
|
|
|
150091
149991
|
})
|
|
150092
149992
|
)(({ readOnly: readOnly2, showAvailability, materiallyAvailable: materiallyAvailable2, updateAvailability: updateAvailability2 }) => {
|
|
150093
149993
|
return showAvailability ? /* @__PURE__ */ React$2.createElement(StatusBarItem, null, readOnly2 ? materiallyAvailable2 ? "Available" : "Unavailable" : /* @__PURE__ */ React$2.createElement(
|
|
150094
|
-
|
|
149994
|
+
TgHTMLSelect,
|
|
150095
149995
|
{
|
|
150096
149996
|
onChange: ({ target: { value } }) => {
|
|
150097
149997
|
updateAvailability2(value === "available");
|
|
@@ -150561,13 +150461,14 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
|
|
|
150561
150461
|
const {
|
|
150562
150462
|
readOnly: readOnly2,
|
|
150563
150463
|
showReadOnly = true,
|
|
150564
|
-
updateCircular: updateCircular2,
|
|
150565
150464
|
isProtein: isProtein2,
|
|
150566
150465
|
disableSetReadOnly,
|
|
150567
|
-
updateAvailability: updateAvailability2,
|
|
150568
150466
|
sequenceData: sequenceData2,
|
|
150569
150467
|
onSave,
|
|
150570
150468
|
showAvailability,
|
|
150469
|
+
beforeReadOnlyChange,
|
|
150470
|
+
editorName,
|
|
150471
|
+
disableBpEditing,
|
|
150571
150472
|
sequenceNameUpdate: sequenceNameUpdate2
|
|
150572
150473
|
} = this.props;
|
|
150573
150474
|
const {
|
|
@@ -150576,9 +150477,7 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
|
|
|
150576
150477
|
isOligo: isOligo2,
|
|
150577
150478
|
isRna: isRna2,
|
|
150578
150479
|
sequence: sequence2 = "",
|
|
150579
|
-
proteinSequence = ""
|
|
150580
|
-
circular: circular2,
|
|
150581
|
-
materiallyAvailable: materiallyAvailable2
|
|
150480
|
+
proteinSequence = ""
|
|
150582
150481
|
} = sequenceData2 || {};
|
|
150583
150482
|
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Name"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, /* @__PURE__ */ React$2.createElement(
|
|
150584
150483
|
InputField,
|
|
@@ -150591,43 +150490,15 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
|
|
|
150591
150490
|
enableReinitialize: true,
|
|
150592
150491
|
defaultValue: name2
|
|
150593
150492
|
}
|
|
150594
|
-
), " ")), !isProtein2 && !isOligo2 && !isRna2 && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row circularLinearSelect" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Circular/Linear"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
|
|
150595
|
-
|
|
150596
|
-
{
|
|
150597
|
-
disabled: readOnly2,
|
|
150598
|
-
onChange: (val2) => {
|
|
150599
|
-
updateCircular2(val2 === "circular");
|
|
150600
|
-
},
|
|
150601
|
-
value: circular2 ? "circular" : "linear",
|
|
150602
|
-
options: [
|
|
150603
|
-
{ label: "Circular", value: "circular" },
|
|
150604
|
-
{ label: "Linear", value: "linear" }
|
|
150605
|
-
]
|
|
150606
|
-
}
|
|
150607
|
-
))), showAvailability && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Material Availability"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
|
|
150608
|
-
BPSelect,
|
|
150493
|
+
), " ")), !isProtein2 && !isOligo2 && !isRna2 && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row circularLinearSelect" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Circular/Linear"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(EditCircularityItem, { editorName, showCircularity: true }))), showAvailability && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Material Availability"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(EditAvailabilityItem, { editorName, showAvailability: true }))), /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Length"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", isProtein2 ? proteinSequence.length : sequence2.length)), showReadOnly && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Is Editable"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
|
|
150494
|
+
EditReadOnlyItem,
|
|
150609
150495
|
{
|
|
150610
|
-
|
|
150611
|
-
|
|
150612
|
-
|
|
150613
|
-
|
|
150614
|
-
|
|
150615
|
-
|
|
150616
|
-
{ label: "Available", value: "available" },
|
|
150617
|
-
{ label: "Unavailable", value: "unavailable" }
|
|
150618
|
-
]
|
|
150619
|
-
}
|
|
150620
|
-
))), /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Length"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", isProtein2 ? proteinSequence.length : sequence2.length)), showReadOnly && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Is Editable"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
|
|
150621
|
-
BPSelect,
|
|
150622
|
-
{
|
|
150623
|
-
className: "veReadOnlySelect",
|
|
150624
|
-
disabled: !onSave || disableSetReadOnly,
|
|
150625
|
-
onChange: (val2) => handleReadOnlyChange(val2 === "readOnly", this.props),
|
|
150626
|
-
value: readOnly2 ? "readOnly" : "editable",
|
|
150627
|
-
options: [
|
|
150628
|
-
{ label: "Read Only", value: "readOnly" },
|
|
150629
|
-
{ label: "Editable", value: "editable" }
|
|
150630
|
-
]
|
|
150496
|
+
beforeReadOnlyChange,
|
|
150497
|
+
editorName,
|
|
150498
|
+
onSave,
|
|
150499
|
+
disableBpEditing,
|
|
150500
|
+
disableSetReadOnly,
|
|
150501
|
+
showReadOnly
|
|
150631
150502
|
}
|
|
150632
150503
|
))), /* @__PURE__ */ React$2.createElement("div", null, "Description"), /* @__PURE__ */ React$2.createElement(
|
|
150633
150504
|
TextareaField,
|
|
@@ -154753,8 +154624,8 @@ function StandaloneVersionHistoryView(props) {
|
|
|
154753
154624
|
return /* @__PURE__ */ React$2.createElement(reactRedux.Provider, { store }, /* @__PURE__ */ React$2.createElement(VersionHistoryView$1, __spreadValues({}, __spreadValues({}, props))));
|
|
154754
154625
|
}
|
|
154755
154626
|
__name(StandaloneVersionHistoryView, "StandaloneVersionHistoryView");
|
|
154756
|
-
function createVectorEditor(_node,
|
|
154757
|
-
var
|
|
154627
|
+
function createVectorEditor(_node, _U = {}) {
|
|
154628
|
+
var _V = _U, { editorName = "StandaloneEditor" } = _V, rest = __objRest(_V, ["editorName"]);
|
|
154758
154629
|
if (!store) {
|
|
154759
154630
|
store = makeStore();
|
|
154760
154631
|
}
|
|
@@ -154787,8 +154658,8 @@ function createVectorEditor(_node, _W = {}) {
|
|
|
154787
154658
|
return editor;
|
|
154788
154659
|
}
|
|
154789
154660
|
__name(createVectorEditor, "createVectorEditor");
|
|
154790
|
-
function createVersionHistoryView(node2,
|
|
154791
|
-
var
|
|
154661
|
+
function createVersionHistoryView(node2, _W = {}) {
|
|
154662
|
+
var _X = _W, { editorName = "StandaloneVersionHistoryView" } = _X, rest = __objRest(_X, ["editorName"]);
|
|
154792
154663
|
if (!store) {
|
|
154793
154664
|
store = makeStore();
|
|
154794
154665
|
}
|