@teselagen/ove 0.5.3 → 0.5.5
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 +163 -143
- package/index.es.js +163 -143
- package/index.umd.js +179 -107
- package/package.json +3 -3
- package/src/GlobalDialog.js +10 -3
- package/src/GlobalDialogUtils.js +19 -4
package/index.cjs.js
CHANGED
|
@@ -5545,10 +5545,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
5545
5545
|
/* istanbul ignore next */
|
|
5546
5546
|
Object.getOwnPropertyNames
|
|
5547
5547
|
);
|
|
5548
|
-
function toPrimitive$
|
|
5548
|
+
function toPrimitive$3(value) {
|
|
5549
5549
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5550
5550
|
}
|
|
5551
|
-
__name(toPrimitive$
|
|
5551
|
+
__name(toPrimitive$3, "toPrimitive$3");
|
|
5552
5552
|
function hasProp(target, prop2) {
|
|
5553
5553
|
return objectPrototype$1.hasOwnProperty.call(target, prop2);
|
|
5554
5554
|
}
|
|
@@ -6567,7 +6567,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
6567
6567
|
return this.name_ + "[" + this.value_ + "]";
|
|
6568
6568
|
}, "toString2");
|
|
6569
6569
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6570
|
-
return toPrimitive$
|
|
6570
|
+
return toPrimitive$3(this.get());
|
|
6571
6571
|
}, "valueOf");
|
|
6572
6572
|
_proto[_Symbol$toPrimitive] = function() {
|
|
6573
6573
|
return this.valueOf();
|
|
@@ -6752,7 +6752,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
6752
6752
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
6753
6753
|
}, "toString2");
|
|
6754
6754
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6755
|
-
return toPrimitive$
|
|
6755
|
+
return toPrimitive$3(this.get());
|
|
6756
6756
|
}, "valueOf");
|
|
6757
6757
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
6758
6758
|
return this.valueOf();
|
|
@@ -11378,7 +11378,7 @@ lodash.exports;
|
|
|
11378
11378
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11379
11379
|
);
|
|
11380
11380
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
11381
|
-
var
|
|
11381
|
+
var defineProperty6 = function() {
|
|
11382
11382
|
try {
|
|
11383
11383
|
var func = getNative2(Object2, "defineProperty");
|
|
11384
11384
|
func({}, "", {});
|
|
@@ -11818,8 +11818,8 @@ lodash.exports;
|
|
|
11818
11818
|
}
|
|
11819
11819
|
__name(baseAssignIn2, "baseAssignIn");
|
|
11820
11820
|
function baseAssignValue2(object3, key, value) {
|
|
11821
|
-
if (key == "__proto__" &&
|
|
11822
|
-
|
|
11821
|
+
if (key == "__proto__" && defineProperty6) {
|
|
11822
|
+
defineProperty6(object3, key, {
|
|
11823
11823
|
"configurable": true,
|
|
11824
11824
|
"enumerable": true,
|
|
11825
11825
|
"value": value,
|
|
@@ -12552,8 +12552,8 @@ lodash.exports;
|
|
|
12552
12552
|
metaMap.set(func, data);
|
|
12553
12553
|
return func;
|
|
12554
12554
|
};
|
|
12555
|
-
var baseSetToString2 = !
|
|
12556
|
-
return
|
|
12555
|
+
var baseSetToString2 = !defineProperty6 ? identity4 : function(func, string2) {
|
|
12556
|
+
return defineProperty6(func, "toString", {
|
|
12557
12557
|
"configurable": true,
|
|
12558
12558
|
"enumerable": false,
|
|
12559
12559
|
"value": constant2(string2),
|
|
@@ -17077,20 +17077,11 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
17077
17077
|
return true;
|
|
17078
17078
|
}
|
|
17079
17079
|
}, "_fails");
|
|
17080
|
-
var _descriptors
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
hasRequired_descriptors = 1;
|
|
17086
|
-
_descriptors = !_fails(function() {
|
|
17087
|
-
return Object.defineProperty({}, "a", { get: function() {
|
|
17088
|
-
return 7;
|
|
17089
|
-
} }).a != 7;
|
|
17090
|
-
});
|
|
17091
|
-
return _descriptors;
|
|
17092
|
-
}
|
|
17093
|
-
__name(require_descriptors, "require_descriptors");
|
|
17080
|
+
var _descriptors = !_fails(function() {
|
|
17081
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
17082
|
+
return 7;
|
|
17083
|
+
} }).a != 7;
|
|
17084
|
+
});
|
|
17094
17085
|
var _domCreate;
|
|
17095
17086
|
var hasRequired_domCreate;
|
|
17096
17087
|
function require_domCreate() {
|
|
@@ -17106,20 +17097,11 @@ function require_domCreate() {
|
|
|
17106
17097
|
return _domCreate;
|
|
17107
17098
|
}
|
|
17108
17099
|
__name(require_domCreate, "require_domCreate");
|
|
17109
|
-
var _ie8DomDefine
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
hasRequired_ie8DomDefine = 1;
|
|
17115
|
-
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
17116
|
-
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
17117
|
-
return 7;
|
|
17118
|
-
} }).a != 7;
|
|
17119
|
-
});
|
|
17120
|
-
return _ie8DomDefine;
|
|
17121
|
-
}
|
|
17122
|
-
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
17100
|
+
var _ie8DomDefine = !_descriptors && !_fails(function() {
|
|
17101
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
17102
|
+
return 7;
|
|
17103
|
+
} }).a != 7;
|
|
17104
|
+
});
|
|
17123
17105
|
var isObject$d = _isObject;
|
|
17124
17106
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
17125
17107
|
if (!isObject$d(it))
|
|
@@ -17133,33 +17115,25 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
17133
17115
|
return val2;
|
|
17134
17116
|
throw TypeError("Can't convert object to primitive value");
|
|
17135
17117
|
}, "_toPrimitive$1");
|
|
17136
|
-
var
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
17145
|
-
|
|
17146
|
-
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17155
|
-
throw TypeError("Accessors not supported!");
|
|
17156
|
-
if ("value" in Attributes)
|
|
17157
|
-
O2[P2] = Attributes.value;
|
|
17158
|
-
return O2;
|
|
17159
|
-
}, "defineProperty");
|
|
17160
|
-
return _objectDp;
|
|
17161
|
-
}
|
|
17162
|
-
__name(require_objectDp, "require_objectDp");
|
|
17118
|
+
var anObject$5 = _anObject;
|
|
17119
|
+
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
17120
|
+
var toPrimitive$2 = _toPrimitive$1;
|
|
17121
|
+
var dP$3 = Object.defineProperty;
|
|
17122
|
+
_objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty(O2, P2, Attributes) {
|
|
17123
|
+
anObject$5(O2);
|
|
17124
|
+
P2 = toPrimitive$2(P2, true);
|
|
17125
|
+
anObject$5(Attributes);
|
|
17126
|
+
if (IE8_DOM_DEFINE$1)
|
|
17127
|
+
try {
|
|
17128
|
+
return dP$3(O2, P2, Attributes);
|
|
17129
|
+
} catch (e2) {
|
|
17130
|
+
}
|
|
17131
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
17132
|
+
throw TypeError("Accessors not supported!");
|
|
17133
|
+
if ("value" in Attributes)
|
|
17134
|
+
O2[P2] = Attributes.value;
|
|
17135
|
+
return O2;
|
|
17136
|
+
}, "defineProperty");
|
|
17163
17137
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
17164
17138
|
return {
|
|
17165
17139
|
enumerable: !(bitmap & 1),
|
|
@@ -17168,9 +17142,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
17168
17142
|
value
|
|
17169
17143
|
};
|
|
17170
17144
|
}, "_propertyDesc");
|
|
17171
|
-
var dP$2 =
|
|
17145
|
+
var dP$2 = _objectDp;
|
|
17172
17146
|
var createDesc$3 = _propertyDesc;
|
|
17173
|
-
var _hide =
|
|
17147
|
+
var _hide = _descriptors ? function(object3, key, value) {
|
|
17174
17148
|
return dP$2.f(object3, key, createDesc$3(1, value));
|
|
17175
17149
|
} : function(object3, key, value) {
|
|
17176
17150
|
object3[key] = value;
|
|
@@ -17376,7 +17350,7 @@ function require_objectAssign() {
|
|
|
17376
17350
|
if (hasRequired_objectAssign)
|
|
17377
17351
|
return _objectAssign;
|
|
17378
17352
|
hasRequired_objectAssign = 1;
|
|
17379
|
-
var DESCRIPTORS2 =
|
|
17353
|
+
var DESCRIPTORS2 = _descriptors;
|
|
17380
17354
|
var getKeys2 = _objectKeys;
|
|
17381
17355
|
var gOPS2 = _objectGops;
|
|
17382
17356
|
var pIE2 = require_objectPie();
|
|
@@ -17442,10 +17416,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
17442
17416
|
}, "_iterStep");
|
|
17443
17417
|
var _iterators = {};
|
|
17444
17418
|
var _redefine = _hide;
|
|
17445
|
-
var dP$1 =
|
|
17419
|
+
var dP$1 = _objectDp;
|
|
17446
17420
|
var anObject$4 = _anObject;
|
|
17447
17421
|
var getKeys$1 = _objectKeys;
|
|
17448
|
-
var _objectDps =
|
|
17422
|
+
var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
|
|
17449
17423
|
anObject$4(O2);
|
|
17450
17424
|
var keys5 = getKeys$1(Properties2);
|
|
17451
17425
|
var length = keys5.length;
|
|
@@ -17512,7 +17486,7 @@ var $exports = _wks.exports = function(name2) {
|
|
|
17512
17486
|
};
|
|
17513
17487
|
$exports.store = store$2;
|
|
17514
17488
|
var _wksExports = _wks.exports;
|
|
17515
|
-
var def =
|
|
17489
|
+
var def = _objectDp.f;
|
|
17516
17490
|
var has$c = _has;
|
|
17517
17491
|
var TAG$1 = _wksExports("toStringTag");
|
|
17518
17492
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -17785,7 +17759,7 @@ var ArrayProto = Array.prototype;
|
|
|
17785
17759
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17786
17760
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17787
17761
|
}, "_isArrayIter");
|
|
17788
|
-
var $defineProperty$4 =
|
|
17762
|
+
var $defineProperty$4 = _objectDp;
|
|
17789
17763
|
var createDesc$2 = _propertyDesc;
|
|
17790
17764
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
17791
17765
|
if (index2 in object3)
|
|
@@ -17914,9 +17888,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17914
17888
|
}
|
|
17915
17889
|
}, "_default$8");
|
|
17916
17890
|
var $export$3 = _export;
|
|
17917
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17891
|
+
$export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
|
|
17918
17892
|
var $Object$3 = _coreExports.Object;
|
|
17919
|
-
var defineProperty$b = /* @__PURE__ */ __name(function
|
|
17893
|
+
var defineProperty$b = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
|
|
17920
17894
|
return $Object$3.defineProperty(it, key, desc);
|
|
17921
17895
|
}, "defineProperty");
|
|
17922
17896
|
var defineProperty$a = { "default": defineProperty$b, __esModule: true };
|
|
@@ -17955,7 +17929,7 @@ var _meta = { exports: {} };
|
|
|
17955
17929
|
var META$1 = _uid("meta");
|
|
17956
17930
|
var isObject$c = _isObject;
|
|
17957
17931
|
var has$a = _has;
|
|
17958
|
-
var setDesc =
|
|
17932
|
+
var setDesc = _objectDp.f;
|
|
17959
17933
|
var id$1 = 0;
|
|
17960
17934
|
var isExtensible = Object.isExtensible || function() {
|
|
17961
17935
|
return true;
|
|
@@ -18008,7 +17982,7 @@ var meta = _meta.exports = {
|
|
|
18008
17982
|
var _metaExports = _meta.exports;
|
|
18009
17983
|
var core = _coreExports;
|
|
18010
17984
|
var wksExt$1 = _wksExt;
|
|
18011
|
-
var defineProperty$9 =
|
|
17985
|
+
var defineProperty$9 = _objectDp.f;
|
|
18012
17986
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
18013
17987
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
18014
17988
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -18062,9 +18036,9 @@ var createDesc$1 = _propertyDesc;
|
|
|
18062
18036
|
var toIObject$1 = _toIobject;
|
|
18063
18037
|
var toPrimitive$1 = _toPrimitive$1;
|
|
18064
18038
|
var has$9 = _has;
|
|
18065
|
-
var IE8_DOM_DEFINE =
|
|
18039
|
+
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
18066
18040
|
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
18067
|
-
_objectGopd.f =
|
|
18041
|
+
_objectGopd.f = _descriptors ? gOPD$6 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
18068
18042
|
O2 = toIObject$1(O2);
|
|
18069
18043
|
P2 = toPrimitive$1(P2, true);
|
|
18070
18044
|
if (IE8_DOM_DEFINE)
|
|
@@ -18077,7 +18051,7 @@ _objectGopd.f = require_descriptors() ? gOPD$6 : /* @__PURE__ */ __name(function
|
|
|
18077
18051
|
}, "getOwnPropertyDescriptor");
|
|
18078
18052
|
var global$2 = _globalExports;
|
|
18079
18053
|
var has$8 = _has;
|
|
18080
|
-
var DESCRIPTORS =
|
|
18054
|
+
var DESCRIPTORS = _descriptors;
|
|
18081
18055
|
var $export$2 = _export;
|
|
18082
18056
|
var redefine = _redefine;
|
|
18083
18057
|
var META = _metaExports.KEY;
|
|
@@ -18100,7 +18074,7 @@ var _create$1 = _objectCreate;
|
|
|
18100
18074
|
var gOPNExt = _objectGopnExt;
|
|
18101
18075
|
var $GOPD = _objectGopd;
|
|
18102
18076
|
var $GOPS = _objectGops;
|
|
18103
|
-
var $DP =
|
|
18077
|
+
var $DP = _objectDp;
|
|
18104
18078
|
var $keys$1 = _objectKeys;
|
|
18105
18079
|
var gOPD$5 = $GOPD.f;
|
|
18106
18080
|
var dP = $DP.f;
|
|
@@ -18143,7 +18117,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
18143
18117
|
} : function(it) {
|
|
18144
18118
|
return it instanceof $Symbol;
|
|
18145
18119
|
};
|
|
18146
|
-
var $defineProperty$3 = /* @__PURE__ */ __name(function
|
|
18120
|
+
var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
|
|
18147
18121
|
if (it === ObjectProto)
|
|
18148
18122
|
$defineProperty$3(OPSymbols, key, D2);
|
|
18149
18123
|
anObject(it);
|
|
@@ -52982,31 +52956,36 @@ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_e) => {
|
|
|
52982
52956
|
const optionsToUse = getOptions$1(options);
|
|
52983
52957
|
if (options.some((opt) => {
|
|
52984
52958
|
if (opt.value === "true") {
|
|
52985
|
-
|
|
52959
|
+
return true;
|
|
52986
52960
|
}
|
|
52987
|
-
|
|
52988
|
-
|
|
52989
|
-
|
|
52990
|
-
|
|
52991
|
-
selectedValue: input.value,
|
|
52992
|
-
label: void 0,
|
|
52993
|
-
onChange: function(e2) {
|
|
52994
|
-
let val2 = e2.target.value;
|
|
52995
|
-
if (val2 === "true") {
|
|
52996
|
-
val2 = true;
|
|
52997
|
-
}
|
|
52998
|
-
if (val2 === "false") {
|
|
52999
|
-
val2 = false;
|
|
53000
|
-
}
|
|
53001
|
-
if (val2 === "") {
|
|
53002
|
-
val2 = false;
|
|
53003
|
-
}
|
|
53004
|
-
input.onChange(val2);
|
|
53005
|
-
onFieldSubmit(val2);
|
|
53006
|
-
},
|
|
53007
|
-
options: optionsToUse
|
|
53008
|
-
})
|
|
52961
|
+
return false;
|
|
52962
|
+
})) {
|
|
52963
|
+
throw new Error(
|
|
52964
|
+
'RadioGroup values cannot be strings of "true" or "false", they must be actual booleans'
|
|
53009
52965
|
);
|
|
52966
|
+
}
|
|
52967
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
52968
|
+
core$5.RadioGroup,
|
|
52969
|
+
__spreadProps(__spreadValues(__spreadValues({}, input), removeUnwantedProps(rest)), {
|
|
52970
|
+
selectedValue: input.value,
|
|
52971
|
+
label: void 0,
|
|
52972
|
+
onChange: function(e2) {
|
|
52973
|
+
let val2 = e2.target.value;
|
|
52974
|
+
if (val2 === "true") {
|
|
52975
|
+
val2 = true;
|
|
52976
|
+
}
|
|
52977
|
+
if (val2 === "false") {
|
|
52978
|
+
val2 = false;
|
|
52979
|
+
}
|
|
52980
|
+
if (val2 === "") {
|
|
52981
|
+
val2 = false;
|
|
52982
|
+
}
|
|
52983
|
+
input.onChange(val2);
|
|
52984
|
+
onFieldSubmit(val2);
|
|
52985
|
+
},
|
|
52986
|
+
options: optionsToUse
|
|
52987
|
+
})
|
|
52988
|
+
);
|
|
53010
52989
|
}, "renderBlueprintRadioGroup");
|
|
53011
52990
|
const _RenderReactColorPicker = class _RenderReactColorPicker extends React$2.Component {
|
|
53012
52991
|
constructor() {
|
|
@@ -93528,19 +93507,38 @@ function flattenSequenceArray(parsingResultArray, opts2) {
|
|
|
93528
93507
|
return parsingResultArray;
|
|
93529
93508
|
}
|
|
93530
93509
|
__name(flattenSequenceArray, "flattenSequenceArray");
|
|
93510
|
+
function wrapOriginSpanningFeatures(locArrayInput, sequenceLength, inclusive1BasedStart, inclusive1BasedEnd) {
|
|
93511
|
+
const locArrayOutput = locArrayInput.map((loc) => __spreadValues({}, loc));
|
|
93512
|
+
for (let i = 0; i < locArrayOutput.length - 1; i++) {
|
|
93513
|
+
const firstFeature = locArrayOutput[i];
|
|
93514
|
+
const secondFeature = locArrayOutput[i + 1];
|
|
93515
|
+
if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
|
|
93516
|
+
locArrayOutput[i] = {
|
|
93517
|
+
start: firstFeature.start,
|
|
93518
|
+
end: secondFeature.end
|
|
93519
|
+
};
|
|
93520
|
+
locArrayOutput.splice(i + 1, 1);
|
|
93521
|
+
}
|
|
93522
|
+
}
|
|
93523
|
+
return locArrayOutput;
|
|
93524
|
+
}
|
|
93525
|
+
__name(wrapOriginSpanningFeatures, "wrapOriginSpanningFeatures");
|
|
93531
93526
|
function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd, isCircular, sequenceLength) {
|
|
93532
93527
|
locStr = locStr.trim();
|
|
93533
|
-
const
|
|
93534
|
-
locStr.
|
|
93535
|
-
|
|
93528
|
+
const positionsArray = [];
|
|
93529
|
+
const locationParts = locStr.split(",");
|
|
93530
|
+
locationParts.forEach((locPart) => {
|
|
93531
|
+
const extractedPositions = locPart.match(/(\d+)/g);
|
|
93532
|
+
if (extractedPositions === null) {
|
|
93533
|
+
return;
|
|
93534
|
+
}
|
|
93535
|
+
positionsArray.push(extractedPositions[0]);
|
|
93536
|
+
positionsArray.push(extractedPositions[1] || extractedPositions[0]);
|
|
93536
93537
|
});
|
|
93537
93538
|
const locArray = [];
|
|
93538
|
-
for (let i = 0; i <
|
|
93539
|
-
const start2 = parseInt(
|
|
93540
|
-
|
|
93541
|
-
if (isNaN(end2)) {
|
|
93542
|
-
end2 = start2;
|
|
93543
|
-
}
|
|
93539
|
+
for (let i = 0; i < positionsArray.length; i += 2) {
|
|
93540
|
+
const start2 = parseInt(positionsArray[i], 10) - (inclusive1BasedStart ? 0 : 1);
|
|
93541
|
+
const end2 = parseInt(positionsArray[i + 1], 10) - (inclusive1BasedEnd ? 0 : 1);
|
|
93544
93542
|
const location2 = {
|
|
93545
93543
|
start: start2,
|
|
93546
93544
|
end: end2
|
|
@@ -93549,20 +93547,16 @@ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusiv
|
|
|
93549
93547
|
isProtein2 ? convertAACaretPositionOrRangeToDna(location2) : location2
|
|
93550
93548
|
);
|
|
93551
93549
|
}
|
|
93552
|
-
if (isCircular) {
|
|
93553
|
-
|
|
93554
|
-
|
|
93555
|
-
|
|
93556
|
-
|
|
93557
|
-
|
|
93558
|
-
|
|
93559
|
-
|
|
93560
|
-
|
|
93561
|
-
locArray.splice(i + 1, 1);
|
|
93562
|
-
}
|
|
93563
|
-
}
|
|
93550
|
+
if (isCircular && sequenceLength) {
|
|
93551
|
+
return wrapOriginSpanningFeatures(
|
|
93552
|
+
locArray,
|
|
93553
|
+
sequenceLength,
|
|
93554
|
+
inclusive1BasedStart,
|
|
93555
|
+
inclusive1BasedEnd
|
|
93556
|
+
);
|
|
93557
|
+
} else {
|
|
93558
|
+
return locArray;
|
|
93564
93559
|
}
|
|
93565
|
-
return locArray;
|
|
93566
93560
|
}
|
|
93567
93561
|
__name(parseFeatureLocation, "parseFeatureLocation");
|
|
93568
93562
|
function genbankToJson(string2, options = {}) {
|
|
@@ -93659,7 +93653,7 @@ function genbankToJson(string2, options = {}) {
|
|
|
93659
93653
|
parseOrigin(line, key);
|
|
93660
93654
|
break;
|
|
93661
93655
|
case genbankAnnotationKey.END_SEQUENCE_TAG:
|
|
93662
|
-
endSeq();
|
|
93656
|
+
endSeq(options);
|
|
93663
93657
|
break;
|
|
93664
93658
|
case genbankAnnotationKey.DEFINITION_TAG:
|
|
93665
93659
|
line = line.replace(/DEFINITION/, "");
|
|
@@ -93764,9 +93758,9 @@ function genbankToJson(string2, options = {}) {
|
|
|
93764
93758
|
}
|
|
93765
93759
|
});
|
|
93766
93760
|
return results;
|
|
93767
|
-
function endSeq() {
|
|
93761
|
+
function endSeq(options2) {
|
|
93768
93762
|
hasFoundLocus = false;
|
|
93769
|
-
postProcessCurSeq();
|
|
93763
|
+
postProcessCurSeq(options2);
|
|
93770
93764
|
resultsArray.push(result || { success: false });
|
|
93771
93765
|
}
|
|
93772
93766
|
__name(endSeq, "endSeq");
|
|
@@ -93780,11 +93774,13 @@ function genbankToJson(string2, options = {}) {
|
|
|
93780
93774
|
}
|
|
93781
93775
|
}
|
|
93782
93776
|
__name(addMessage, "addMessage");
|
|
93783
|
-
function postProcessCurSeq() {
|
|
93777
|
+
function postProcessCurSeq(options2) {
|
|
93784
93778
|
if (result && result.parsedSequence && result.parsedSequence.features) {
|
|
93785
93779
|
for (let i = 0; i < result.parsedSequence.features.length; i++) {
|
|
93786
93780
|
result.parsedSequence.features[i] = postProcessGenbankFeature(
|
|
93787
|
-
result.parsedSequence.features[i]
|
|
93781
|
+
result.parsedSequence.features[i],
|
|
93782
|
+
result.parsedSequence,
|
|
93783
|
+
options2
|
|
93788
93784
|
);
|
|
93789
93785
|
}
|
|
93790
93786
|
}
|
|
@@ -94030,7 +94026,7 @@ function genbankToJson(string2, options = {}) {
|
|
|
94030
94026
|
return runon;
|
|
94031
94027
|
}
|
|
94032
94028
|
__name(isKeywordRunon, "isKeywordRunon");
|
|
94033
|
-
function postProcessGenbankFeature(feat) {
|
|
94029
|
+
function postProcessGenbankFeature(feat, parsedSequence, options2) {
|
|
94034
94030
|
if (feat.notes.label) {
|
|
94035
94031
|
feat.name = feat.notes.label[0];
|
|
94036
94032
|
} else if (feat.notes.gene) {
|
|
@@ -94063,6 +94059,15 @@ function genbankToJson(string2, options = {}) {
|
|
|
94063
94059
|
feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
|
|
94064
94060
|
delete feat.notes.direction;
|
|
94065
94061
|
}
|
|
94062
|
+
if (parsedSequence.circular) {
|
|
94063
|
+
const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
|
|
94064
|
+
feat.locations = wrapOriginSpanningFeatures(
|
|
94065
|
+
feat.locations,
|
|
94066
|
+
parsedSequence.sequence.length,
|
|
94067
|
+
inclusive1BasedStart2,
|
|
94068
|
+
inclusive1BasedEnd2
|
|
94069
|
+
);
|
|
94070
|
+
}
|
|
94066
94071
|
return feat;
|
|
94067
94072
|
}
|
|
94068
94073
|
__name(postProcessGenbankFeature, "postProcessGenbankFeature");
|
|
@@ -109974,14 +109979,26 @@ function showDialog({
|
|
|
109974
109979
|
props,
|
|
109975
109980
|
overrideName
|
|
109976
109981
|
}) {
|
|
109982
|
+
var _a2;
|
|
109977
109983
|
dialogHolder.dialogType = dialogType;
|
|
109978
109984
|
if (!dialogHolder.dialogType && ModalComponent) {
|
|
109979
109985
|
dialogHolder.dialogType = "TGCustomModal";
|
|
109980
109986
|
}
|
|
109987
|
+
if (document.activeElement && document.activeElement.closest(".veEditor")) {
|
|
109988
|
+
let editorName;
|
|
109989
|
+
(_a2 = document.activeElement.closest(".veEditor")) == null ? void 0 : _a2.className.split(" ").forEach((c2) => {
|
|
109990
|
+
if (!c2.trim())
|
|
109991
|
+
return;
|
|
109992
|
+
if (!c2.trim().includes("veEditor")) {
|
|
109993
|
+
editorName = c2;
|
|
109994
|
+
}
|
|
109995
|
+
});
|
|
109996
|
+
dialogHolder.editorName = editorName;
|
|
109997
|
+
}
|
|
109981
109998
|
dialogHolder.CustomModalComponent = ModalComponent;
|
|
109982
109999
|
dialogHolder.props = props;
|
|
109983
110000
|
dialogHolder.overrideName = overrideName;
|
|
109984
|
-
dialogHolder.
|
|
110001
|
+
dialogHolder.setUniqKeyToForceRerender(uuid());
|
|
109985
110002
|
}
|
|
109986
110003
|
__name(showDialog, "showDialog");
|
|
109987
110004
|
function hideDialog() {
|
|
@@ -109989,7 +110006,7 @@ function hideDialog() {
|
|
|
109989
110006
|
delete dialogHolder.CustomModalComponent;
|
|
109990
110007
|
delete dialogHolder.props;
|
|
109991
110008
|
delete dialogHolder.overrideName;
|
|
109992
|
-
dialogHolder.
|
|
110009
|
+
dialogHolder.setUniqKeyToForceRerender();
|
|
109993
110010
|
}
|
|
109994
110011
|
__name(hideDialog, "hideDialog");
|
|
109995
110012
|
const typeToDialogType = {
|
|
@@ -125363,7 +125380,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
125363
125380
|
}
|
|
125364
125381
|
__name(showFileDialog, "showFileDialog");
|
|
125365
125382
|
const name = "@teselagen/ove";
|
|
125366
|
-
const version = "0.5.
|
|
125383
|
+
const version = "0.5.4";
|
|
125367
125384
|
const main = "./src/index.js";
|
|
125368
125385
|
const exports$1 = {
|
|
125369
125386
|
".": {
|
|
@@ -127699,7 +127716,7 @@ var createClass = /* @__PURE__ */ function() {
|
|
|
127699
127716
|
return Constructor;
|
|
127700
127717
|
};
|
|
127701
127718
|
}();
|
|
127702
|
-
var
|
|
127719
|
+
var defineProperty5 = /* @__PURE__ */ __name(function(obj, key, value) {
|
|
127703
127720
|
if (key in obj) {
|
|
127704
127721
|
Object.defineProperty(obj, key, {
|
|
127705
127722
|
value,
|
|
@@ -128310,7 +128327,7 @@ function arrow(data, options) {
|
|
|
128310
128327
|
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
128311
128328
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
128312
128329
|
data.arrowElement = arrowElement;
|
|
128313
|
-
data.offsets.arrow = (_data$offsets$arrow = {},
|
|
128330
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty5(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty5(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
128314
128331
|
return data;
|
|
128315
128332
|
}
|
|
128316
128333
|
__name(arrow, "arrow");
|
|
@@ -128541,7 +128558,7 @@ function preventOverflow(data, options) {
|
|
|
128541
128558
|
if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
|
|
128542
128559
|
value = Math.max(popper2[placement], boundaries[placement]);
|
|
128543
128560
|
}
|
|
128544
|
-
return
|
|
128561
|
+
return defineProperty5({}, placement, value);
|
|
128545
128562
|
}, "primary"),
|
|
128546
128563
|
secondary: /* @__PURE__ */ __name(function secondary(placement) {
|
|
128547
128564
|
var mainSide = placement === "right" ? "left" : "top";
|
|
@@ -128549,7 +128566,7 @@ function preventOverflow(data, options) {
|
|
|
128549
128566
|
if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
|
|
128550
128567
|
value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
|
|
128551
128568
|
}
|
|
128552
|
-
return
|
|
128569
|
+
return defineProperty5({}, mainSide, value);
|
|
128553
128570
|
}, "secondary")
|
|
128554
128571
|
};
|
|
128555
128572
|
order2.forEach(function(placement) {
|
|
@@ -128570,8 +128587,8 @@ function shift3(data) {
|
|
|
128570
128587
|
var side = isVertical ? "left" : "top";
|
|
128571
128588
|
var measurement = isVertical ? "width" : "height";
|
|
128572
128589
|
var shiftOffsets = {
|
|
128573
|
-
start:
|
|
128574
|
-
end:
|
|
128590
|
+
start: defineProperty5({}, side, reference2[side]),
|
|
128591
|
+
end: defineProperty5({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
128575
128592
|
};
|
|
128576
128593
|
data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
128577
128594
|
}
|
|
@@ -141927,14 +141944,17 @@ const Dialogs = {
|
|
|
141927
141944
|
AddOrEditPrimerDialog
|
|
141928
141945
|
};
|
|
141929
141946
|
function GlobalDialog(props) {
|
|
141930
|
-
const { dialogOverrides = {} } = props;
|
|
141931
|
-
const [uniqKey,
|
|
141947
|
+
const { dialogOverrides = {}, editorName } = props;
|
|
141948
|
+
const [uniqKey, setUniqKeyToForceRerender] = React$2.useState();
|
|
141932
141949
|
React$2.useEffect(() => {
|
|
141933
141950
|
return () => {
|
|
141934
141951
|
hideDialog();
|
|
141935
141952
|
};
|
|
141936
141953
|
}, []);
|
|
141937
|
-
dialogHolder.
|
|
141954
|
+
if (dialogHolder.editorName && editorName && dialogHolder.editorName !== editorName) {
|
|
141955
|
+
return null;
|
|
141956
|
+
}
|
|
141957
|
+
dialogHolder.setUniqKeyToForceRerender = setUniqKeyToForceRerender;
|
|
141938
141958
|
const Comp = dialogHolder.CustomModalComponent || dialogOverrides[dialogHolder.overrideName] || Dialogs[dialogHolder.dialogType];
|
|
141939
141959
|
if (!Comp)
|
|
141940
141960
|
return null;
|