@teselagen/ove 0.3.19 → 0.3.20
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 +39 -17
- package/index.es.js +39 -17
- package/index.umd.js +101 -56
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -30159,6 +30159,8 @@ function DialogFooter({
|
|
|
30159
30159
|
style,
|
|
30160
30160
|
onClick = lodashExports.noop,
|
|
30161
30161
|
secondaryAction,
|
|
30162
|
+
secondaryDisabled,
|
|
30163
|
+
secondaryNotMinimal,
|
|
30162
30164
|
intent = core$5.Intent.PRIMARY,
|
|
30163
30165
|
secondaryIntent,
|
|
30164
30166
|
backText = "Back",
|
|
@@ -30190,7 +30192,8 @@ function DialogFooter({
|
|
|
30190
30192
|
core$5.Button,
|
|
30191
30193
|
{
|
|
30192
30194
|
intent: secondaryIntent,
|
|
30193
|
-
|
|
30195
|
+
disabled: secondaryDisabled,
|
|
30196
|
+
className: (!secondaryNotMinimal ? core$5.Classes.MINIMAL : "") + " " + secondaryClassName,
|
|
30194
30197
|
text: secondaryText,
|
|
30195
30198
|
onClick: secondaryAction || hideModal || function() {
|
|
30196
30199
|
try {
|
|
@@ -66137,7 +66140,7 @@ class TgSelect extends React$3.Component {
|
|
|
66137
66140
|
if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
|
|
66138
66141
|
const topLevelId = item.value.split(":")[0];
|
|
66139
66142
|
valArray = valArray.filter((val) => {
|
|
66140
|
-
if (val
|
|
66143
|
+
if (val?.value && val.value.includes && val.value.includes(":")) {
|
|
66141
66144
|
const valId = val.value.split(":")[0];
|
|
66142
66145
|
if (valId === topLevelId) {
|
|
66143
66146
|
return false;
|
|
@@ -66225,7 +66228,7 @@ class TgSelect extends React$3.Component {
|
|
|
66225
66228
|
getTagProps = (label) => {
|
|
66226
66229
|
const { multi, value = [], disabled: _disabled } = this.props;
|
|
66227
66230
|
const val = Array.isArray(value) ? value : [value];
|
|
66228
|
-
const matchingVal = val.find((op) => op
|
|
66231
|
+
const matchingVal = val.find((op) => op?.label === label);
|
|
66229
66232
|
const disabled = _disabled || matchingVal && matchingVal.disabled;
|
|
66230
66233
|
const className = matchingVal && matchingVal.className;
|
|
66231
66234
|
return {
|
|
@@ -83364,7 +83367,7 @@ const renderReactSelect = (props) => {
|
|
|
83364
83367
|
}
|
|
83365
83368
|
} else if (Array.isArray(value)) {
|
|
83366
83369
|
valueToUse = value.map((val) => {
|
|
83367
|
-
if (val
|
|
83370
|
+
if (val?.userCreated) {
|
|
83368
83371
|
return {
|
|
83369
83372
|
label: val.value,
|
|
83370
83373
|
value: val
|
|
@@ -83391,10 +83394,10 @@ const renderReactSelect = (props) => {
|
|
|
83391
83394
|
let valToPass;
|
|
83392
83395
|
if (Array.isArray(valOrVals)) {
|
|
83393
83396
|
valToPass = valOrVals.map(function(val) {
|
|
83394
|
-
if (val
|
|
83397
|
+
if (val?.userCreated) {
|
|
83395
83398
|
return val;
|
|
83396
83399
|
}
|
|
83397
|
-
return val
|
|
83400
|
+
return val?.value;
|
|
83398
83401
|
});
|
|
83399
83402
|
} else if (valOrVals) {
|
|
83400
83403
|
if (valOrVals.userCreated) {
|
|
@@ -89393,16 +89396,22 @@ class AlertWrapper extends React$3.Component {
|
|
|
89393
89396
|
state = { isOpen: true };
|
|
89394
89397
|
render() {
|
|
89395
89398
|
const {
|
|
89399
|
+
title,
|
|
89396
89400
|
handleClose,
|
|
89397
89401
|
text,
|
|
89398
89402
|
resolve,
|
|
89399
89403
|
noCancelButton,
|
|
89400
89404
|
content,
|
|
89401
89405
|
className,
|
|
89406
|
+
thirdButtonNotMinimal,
|
|
89407
|
+
thirdButtonClassName,
|
|
89402
89408
|
thirdButtonText,
|
|
89403
89409
|
thirdButtonIntent,
|
|
89410
|
+
fourthButtonNotMinimal,
|
|
89411
|
+
fourthButtonClassName,
|
|
89404
89412
|
fourthButtonText,
|
|
89405
89413
|
fourthButtonIntent,
|
|
89414
|
+
handleSubmit,
|
|
89406
89415
|
canEscapeKeyCancel,
|
|
89407
89416
|
confirmButtonText = "OK",
|
|
89408
89417
|
cancelButtonText = "Cancel",
|
|
@@ -89417,19 +89426,28 @@ class AlertWrapper extends React$3.Component {
|
|
|
89417
89426
|
return /* @__PURE__ */ React$3.createElement(
|
|
89418
89427
|
core$5.Dialog,
|
|
89419
89428
|
{
|
|
89420
|
-
|
|
89429
|
+
title,
|
|
89430
|
+
className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
|
|
89421
89431
|
isOpen: this.state.isOpen,
|
|
89422
89432
|
intent,
|
|
89423
89433
|
cancelButtonText,
|
|
89424
89434
|
onCancel: cancelButtonText ? () => doClose(false) : void 0,
|
|
89425
|
-
onConfirm: () => doClose(true),
|
|
89435
|
+
onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
89426
89436
|
...rest,
|
|
89427
89437
|
...noCancelButton && {
|
|
89428
89438
|
onCancel: void 0,
|
|
89429
89439
|
cancelButtonText: void 0
|
|
89430
89440
|
}
|
|
89431
89441
|
},
|
|
89432
|
-
/* @__PURE__ */ React$3.createElement(
|
|
89442
|
+
/* @__PURE__ */ React$3.createElement(
|
|
89443
|
+
"div",
|
|
89444
|
+
{
|
|
89445
|
+
className: title ? "bp3-dialog-body" : "bp3-alert-contents",
|
|
89446
|
+
style: { padding: 5 }
|
|
89447
|
+
},
|
|
89448
|
+
content,
|
|
89449
|
+
text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)
|
|
89450
|
+
),
|
|
89433
89451
|
/* @__PURE__ */ React$3.createElement(
|
|
89434
89452
|
DialogFooter,
|
|
89435
89453
|
{
|
|
@@ -89440,23 +89458,27 @@ class AlertWrapper extends React$3.Component {
|
|
|
89440
89458
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$3.createElement(React$3.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$3.createElement(
|
|
89441
89459
|
core$5.Button,
|
|
89442
89460
|
{
|
|
89461
|
+
className: (!fourthButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + fourthButtonClassName,
|
|
89443
89462
|
intent: fourthButtonIntent,
|
|
89444
89463
|
text: fourthButtonText,
|
|
89445
|
-
onClick:
|
|
89446
|
-
doClose(
|
|
89447
|
-
|
|
89464
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89465
|
+
(v) => doClose({ ...v, fourthButtonClicked: true })
|
|
89466
|
+
) : () => doClose("fourthButtonClicked")
|
|
89448
89467
|
}
|
|
89449
89468
|
), !!thirdButtonText && /* @__PURE__ */ React$3.createElement(
|
|
89450
89469
|
core$5.Button,
|
|
89451
89470
|
{
|
|
89471
|
+
className: (!thirdButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + thirdButtonClassName,
|
|
89452
89472
|
intent: thirdButtonIntent,
|
|
89453
89473
|
text: thirdButtonText,
|
|
89454
|
-
onClick:
|
|
89474
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89475
|
+
(v) => doClose({ ...v, thirdButtonClicked: true })
|
|
89476
|
+
) : () => {
|
|
89455
89477
|
doClose("thirdButtonClicked");
|
|
89456
89478
|
}
|
|
89457
89479
|
}
|
|
89458
89480
|
)) : void 0,
|
|
89459
|
-
containerClassname: "bp3-alert-footer",
|
|
89481
|
+
containerClassname: title ? "" : "bp3-alert-footer",
|
|
89460
89482
|
backText: noCancelButton ? "" : cancelButtonText,
|
|
89461
89483
|
text: confirmButtonText,
|
|
89462
89484
|
intent
|
|
@@ -113787,13 +113809,13 @@ function coerceLocation({
|
|
|
113787
113809
|
messages.push(
|
|
113788
113810
|
"Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
|
|
113789
113811
|
);
|
|
113790
|
-
location.start = size - (isProtein ? 3 : 1);
|
|
113812
|
+
location.start = Math.max(0, size - (isProtein ? 3 : 1));
|
|
113791
113813
|
}
|
|
113792
113814
|
if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
|
|
113793
113815
|
messages.push(
|
|
113794
113816
|
"Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
|
|
113795
113817
|
);
|
|
113796
|
-
location.end = size - 1;
|
|
113818
|
+
location.end = Math.max(0, size - 1);
|
|
113797
113819
|
}
|
|
113798
113820
|
if (location.start > location.end && circular === false) {
|
|
113799
113821
|
messages.push(
|
|
@@ -161163,7 +161185,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
161163
161185
|
}
|
|
161164
161186
|
|
|
161165
161187
|
const name = "@teselagen/ove";
|
|
161166
|
-
const version = "0.3.
|
|
161188
|
+
const version = "0.3.19";
|
|
161167
161189
|
const main = "./src/index.js";
|
|
161168
161190
|
const exports$1 = {
|
|
161169
161191
|
".": {
|
package/index.es.js
CHANGED
|
@@ -30138,6 +30138,8 @@ function DialogFooter({
|
|
|
30138
30138
|
style,
|
|
30139
30139
|
onClick = lodashExports.noop,
|
|
30140
30140
|
secondaryAction,
|
|
30141
|
+
secondaryDisabled,
|
|
30142
|
+
secondaryNotMinimal,
|
|
30141
30143
|
intent = Intent.PRIMARY,
|
|
30142
30144
|
secondaryIntent,
|
|
30143
30145
|
backText = "Back",
|
|
@@ -30169,7 +30171,8 @@ function DialogFooter({
|
|
|
30169
30171
|
Button,
|
|
30170
30172
|
{
|
|
30171
30173
|
intent: secondaryIntent,
|
|
30172
|
-
|
|
30174
|
+
disabled: secondaryDisabled,
|
|
30175
|
+
className: (!secondaryNotMinimal ? Classes.MINIMAL : "") + " " + secondaryClassName,
|
|
30173
30176
|
text: secondaryText,
|
|
30174
30177
|
onClick: secondaryAction || hideModal || function() {
|
|
30175
30178
|
try {
|
|
@@ -66116,7 +66119,7 @@ class TgSelect extends React__default$1.Component {
|
|
|
66116
66119
|
if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
|
|
66117
66120
|
const topLevelId = item.value.split(":")[0];
|
|
66118
66121
|
valArray = valArray.filter((val) => {
|
|
66119
|
-
if (val
|
|
66122
|
+
if (val?.value && val.value.includes && val.value.includes(":")) {
|
|
66120
66123
|
const valId = val.value.split(":")[0];
|
|
66121
66124
|
if (valId === topLevelId) {
|
|
66122
66125
|
return false;
|
|
@@ -66204,7 +66207,7 @@ class TgSelect extends React__default$1.Component {
|
|
|
66204
66207
|
getTagProps = (label) => {
|
|
66205
66208
|
const { multi, value = [], disabled: _disabled } = this.props;
|
|
66206
66209
|
const val = Array.isArray(value) ? value : [value];
|
|
66207
|
-
const matchingVal = val.find((op) => op
|
|
66210
|
+
const matchingVal = val.find((op) => op?.label === label);
|
|
66208
66211
|
const disabled = _disabled || matchingVal && matchingVal.disabled;
|
|
66209
66212
|
const className = matchingVal && matchingVal.className;
|
|
66210
66213
|
return {
|
|
@@ -83343,7 +83346,7 @@ const renderReactSelect = (props) => {
|
|
|
83343
83346
|
}
|
|
83344
83347
|
} else if (Array.isArray(value)) {
|
|
83345
83348
|
valueToUse = value.map((val) => {
|
|
83346
|
-
if (val
|
|
83349
|
+
if (val?.userCreated) {
|
|
83347
83350
|
return {
|
|
83348
83351
|
label: val.value,
|
|
83349
83352
|
value: val
|
|
@@ -83370,10 +83373,10 @@ const renderReactSelect = (props) => {
|
|
|
83370
83373
|
let valToPass;
|
|
83371
83374
|
if (Array.isArray(valOrVals)) {
|
|
83372
83375
|
valToPass = valOrVals.map(function(val) {
|
|
83373
|
-
if (val
|
|
83376
|
+
if (val?.userCreated) {
|
|
83374
83377
|
return val;
|
|
83375
83378
|
}
|
|
83376
|
-
return val
|
|
83379
|
+
return val?.value;
|
|
83377
83380
|
});
|
|
83378
83381
|
} else if (valOrVals) {
|
|
83379
83382
|
if (valOrVals.userCreated) {
|
|
@@ -89372,16 +89375,22 @@ class AlertWrapper extends Component {
|
|
|
89372
89375
|
state = { isOpen: true };
|
|
89373
89376
|
render() {
|
|
89374
89377
|
const {
|
|
89378
|
+
title,
|
|
89375
89379
|
handleClose,
|
|
89376
89380
|
text,
|
|
89377
89381
|
resolve,
|
|
89378
89382
|
noCancelButton,
|
|
89379
89383
|
content,
|
|
89380
89384
|
className,
|
|
89385
|
+
thirdButtonNotMinimal,
|
|
89386
|
+
thirdButtonClassName,
|
|
89381
89387
|
thirdButtonText,
|
|
89382
89388
|
thirdButtonIntent,
|
|
89389
|
+
fourthButtonNotMinimal,
|
|
89390
|
+
fourthButtonClassName,
|
|
89383
89391
|
fourthButtonText,
|
|
89384
89392
|
fourthButtonIntent,
|
|
89393
|
+
handleSubmit,
|
|
89385
89394
|
canEscapeKeyCancel,
|
|
89386
89395
|
confirmButtonText = "OK",
|
|
89387
89396
|
cancelButtonText = "Cancel",
|
|
@@ -89396,19 +89405,28 @@ class AlertWrapper extends Component {
|
|
|
89396
89405
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
89397
89406
|
Dialog,
|
|
89398
89407
|
{
|
|
89399
|
-
|
|
89408
|
+
title,
|
|
89409
|
+
className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
|
|
89400
89410
|
isOpen: this.state.isOpen,
|
|
89401
89411
|
intent,
|
|
89402
89412
|
cancelButtonText,
|
|
89403
89413
|
onCancel: cancelButtonText ? () => doClose(false) : void 0,
|
|
89404
|
-
onConfirm: () => doClose(true),
|
|
89414
|
+
onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
89405
89415
|
...rest,
|
|
89406
89416
|
...noCancelButton && {
|
|
89407
89417
|
onCancel: void 0,
|
|
89408
89418
|
cancelButtonText: void 0
|
|
89409
89419
|
}
|
|
89410
89420
|
},
|
|
89411
|
-
/* @__PURE__ */ React__default$1.createElement(
|
|
89421
|
+
/* @__PURE__ */ React__default$1.createElement(
|
|
89422
|
+
"div",
|
|
89423
|
+
{
|
|
89424
|
+
className: title ? "bp3-dialog-body" : "bp3-alert-contents",
|
|
89425
|
+
style: { padding: 5 }
|
|
89426
|
+
},
|
|
89427
|
+
content,
|
|
89428
|
+
text && /* @__PURE__ */ React__default$1.createElement("div", { style: { marginBottom: 10 } }, text)
|
|
89429
|
+
),
|
|
89412
89430
|
/* @__PURE__ */ React__default$1.createElement(
|
|
89413
89431
|
DialogFooter,
|
|
89414
89432
|
{
|
|
@@ -89419,23 +89437,27 @@ class AlertWrapper extends Component {
|
|
|
89419
89437
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React__default$1.createElement(
|
|
89420
89438
|
Button,
|
|
89421
89439
|
{
|
|
89440
|
+
className: (!fourthButtonNotMinimal ? Classes.MINIMAL : "") + " " + fourthButtonClassName,
|
|
89422
89441
|
intent: fourthButtonIntent,
|
|
89423
89442
|
text: fourthButtonText,
|
|
89424
|
-
onClick:
|
|
89425
|
-
doClose(
|
|
89426
|
-
|
|
89443
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89444
|
+
(v) => doClose({ ...v, fourthButtonClicked: true })
|
|
89445
|
+
) : () => doClose("fourthButtonClicked")
|
|
89427
89446
|
}
|
|
89428
89447
|
), !!thirdButtonText && /* @__PURE__ */ React__default$1.createElement(
|
|
89429
89448
|
Button,
|
|
89430
89449
|
{
|
|
89450
|
+
className: (!thirdButtonNotMinimal ? Classes.MINIMAL : "") + " " + thirdButtonClassName,
|
|
89431
89451
|
intent: thirdButtonIntent,
|
|
89432
89452
|
text: thirdButtonText,
|
|
89433
|
-
onClick:
|
|
89453
|
+
onClick: handleSubmit ? handleSubmit(
|
|
89454
|
+
(v) => doClose({ ...v, thirdButtonClicked: true })
|
|
89455
|
+
) : () => {
|
|
89434
89456
|
doClose("thirdButtonClicked");
|
|
89435
89457
|
}
|
|
89436
89458
|
}
|
|
89437
89459
|
)) : void 0,
|
|
89438
|
-
containerClassname: "bp3-alert-footer",
|
|
89460
|
+
containerClassname: title ? "" : "bp3-alert-footer",
|
|
89439
89461
|
backText: noCancelButton ? "" : cancelButtonText,
|
|
89440
89462
|
text: confirmButtonText,
|
|
89441
89463
|
intent
|
|
@@ -113766,13 +113788,13 @@ function coerceLocation({
|
|
|
113766
113788
|
messages.push(
|
|
113767
113789
|
"Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
|
|
113768
113790
|
);
|
|
113769
|
-
location.start = size - (isProtein ? 3 : 1);
|
|
113791
|
+
location.start = Math.max(0, size - (isProtein ? 3 : 1));
|
|
113770
113792
|
}
|
|
113771
113793
|
if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
|
|
113772
113794
|
messages.push(
|
|
113773
113795
|
"Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
|
|
113774
113796
|
);
|
|
113775
|
-
location.end = size - 1;
|
|
113797
|
+
location.end = Math.max(0, size - 1);
|
|
113776
113798
|
}
|
|
113777
113799
|
if (location.start > location.end && circular === false) {
|
|
113778
113800
|
messages.push(
|
|
@@ -161142,7 +161164,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
161142
161164
|
}
|
|
161143
161165
|
|
|
161144
161166
|
const name = "@teselagen/ove";
|
|
161145
|
-
const version = "0.3.
|
|
161167
|
+
const version = "0.3.19";
|
|
161146
161168
|
const main = "./src/index.js";
|
|
161147
161169
|
const exports$1 = {
|
|
161148
161170
|
".": {
|
package/index.umd.js
CHANGED
|
@@ -23998,7 +23998,7 @@
|
|
|
23998
23998
|
var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
|
|
23999
23999
|
return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
|
|
24000
24000
|
} : /* istanbul ignore next */Object.getOwnPropertyNames;
|
|
24001
|
-
function toPrimitive$
|
|
24001
|
+
function toPrimitive$2(value) {
|
|
24002
24002
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
24003
24003
|
}
|
|
24004
24004
|
function hasProp(target, prop) {
|
|
@@ -24927,7 +24927,7 @@
|
|
|
24927
24927
|
return this.name_ + "[" + this.value_ + "]";
|
|
24928
24928
|
};
|
|
24929
24929
|
_proto.valueOf = function valueOf() {
|
|
24930
|
-
return toPrimitive$
|
|
24930
|
+
return toPrimitive$2(this.get());
|
|
24931
24931
|
};
|
|
24932
24932
|
_proto[_Symbol$toPrimitive] = function () {
|
|
24933
24933
|
return this.valueOf();
|
|
@@ -25155,7 +25155,7 @@
|
|
|
25155
25155
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
25156
25156
|
};
|
|
25157
25157
|
_proto.valueOf = function valueOf() {
|
|
25158
|
-
return toPrimitive$
|
|
25158
|
+
return toPrimitive$2(this.get());
|
|
25159
25159
|
};
|
|
25160
25160
|
_proto[_Symbol$toPrimitive$1] = function () {
|
|
25161
25161
|
return this.valueOf();
|
|
@@ -56903,6 +56903,8 @@
|
|
|
56903
56903
|
style,
|
|
56904
56904
|
onClick = lodashExports.noop,
|
|
56905
56905
|
secondaryAction,
|
|
56906
|
+
secondaryDisabled,
|
|
56907
|
+
secondaryNotMinimal,
|
|
56906
56908
|
intent = Intent.PRIMARY,
|
|
56907
56909
|
secondaryIntent,
|
|
56908
56910
|
backText = "Back",
|
|
@@ -56934,7 +56936,8 @@
|
|
|
56934
56936
|
Button,
|
|
56935
56937
|
{
|
|
56936
56938
|
intent: secondaryIntent,
|
|
56937
|
-
|
|
56939
|
+
disabled: secondaryDisabled,
|
|
56940
|
+
className: (!secondaryNotMinimal ? MINIMAL : "") + " " + secondaryClassName,
|
|
56938
56941
|
text: secondaryText,
|
|
56939
56942
|
onClick: secondaryAction || hideModal || function() {
|
|
56940
56943
|
try {
|
|
@@ -57023,10 +57026,18 @@
|
|
|
57023
57026
|
}
|
|
57024
57027
|
};
|
|
57025
57028
|
|
|
57026
|
-
|
|
57027
|
-
var
|
|
57028
|
-
|
|
57029
|
-
|
|
57029
|
+
var _descriptors;
|
|
57030
|
+
var hasRequired_descriptors;
|
|
57031
|
+
|
|
57032
|
+
function require_descriptors () {
|
|
57033
|
+
if (hasRequired_descriptors) return _descriptors;
|
|
57034
|
+
hasRequired_descriptors = 1;
|
|
57035
|
+
// Thank's IE8 for his funny defineProperty
|
|
57036
|
+
_descriptors = !_fails(function () {
|
|
57037
|
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
57038
|
+
});
|
|
57039
|
+
return _descriptors;
|
|
57040
|
+
}
|
|
57030
57041
|
|
|
57031
57042
|
var _domCreate;
|
|
57032
57043
|
var hasRequired_domCreate;
|
|
@@ -57044,9 +57055,17 @@
|
|
|
57044
57055
|
return _domCreate;
|
|
57045
57056
|
}
|
|
57046
57057
|
|
|
57047
|
-
var _ie8DomDefine
|
|
57048
|
-
|
|
57049
|
-
|
|
57058
|
+
var _ie8DomDefine;
|
|
57059
|
+
var hasRequired_ie8DomDefine;
|
|
57060
|
+
|
|
57061
|
+
function require_ie8DomDefine () {
|
|
57062
|
+
if (hasRequired_ie8DomDefine) return _ie8DomDefine;
|
|
57063
|
+
hasRequired_ie8DomDefine = 1;
|
|
57064
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function () {
|
|
57065
|
+
return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
57066
|
+
});
|
|
57067
|
+
return _ie8DomDefine;
|
|
57068
|
+
}
|
|
57050
57069
|
|
|
57051
57070
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
57052
57071
|
var isObject$6 = _isObject;
|
|
@@ -57061,22 +57080,29 @@
|
|
|
57061
57080
|
throw TypeError("Can't convert object to primitive value");
|
|
57062
57081
|
};
|
|
57063
57082
|
|
|
57064
|
-
var
|
|
57065
|
-
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
57066
|
-
var toPrimitive$2 = _toPrimitive$1;
|
|
57067
|
-
var dP$3 = Object.defineProperty;
|
|
57083
|
+
var hasRequired_objectDp;
|
|
57068
57084
|
|
|
57069
|
-
|
|
57070
|
-
|
|
57071
|
-
|
|
57072
|
-
|
|
57073
|
-
|
|
57074
|
-
|
|
57075
|
-
|
|
57076
|
-
|
|
57077
|
-
|
|
57078
|
-
|
|
57079
|
-
|
|
57085
|
+
function require_objectDp () {
|
|
57086
|
+
if (hasRequired_objectDp) return _objectDp;
|
|
57087
|
+
hasRequired_objectDp = 1;
|
|
57088
|
+
var anObject = _anObject;
|
|
57089
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
57090
|
+
var toPrimitive = _toPrimitive$1;
|
|
57091
|
+
var dP = Object.defineProperty;
|
|
57092
|
+
|
|
57093
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
57094
|
+
anObject(O);
|
|
57095
|
+
P = toPrimitive(P, true);
|
|
57096
|
+
anObject(Attributes);
|
|
57097
|
+
if (IE8_DOM_DEFINE) try {
|
|
57098
|
+
return dP(O, P, Attributes);
|
|
57099
|
+
} catch (e) { /* empty */ }
|
|
57100
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
57101
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
57102
|
+
return O;
|
|
57103
|
+
};
|
|
57104
|
+
return _objectDp;
|
|
57105
|
+
}
|
|
57080
57106
|
|
|
57081
57107
|
var _propertyDesc = function (bitmap, value) {
|
|
57082
57108
|
return {
|
|
@@ -57087,9 +57113,9 @@
|
|
|
57087
57113
|
};
|
|
57088
57114
|
};
|
|
57089
57115
|
|
|
57090
|
-
var dP$2 =
|
|
57116
|
+
var dP$2 = require_objectDp();
|
|
57091
57117
|
var createDesc$3 = _propertyDesc;
|
|
57092
|
-
var _hide =
|
|
57118
|
+
var _hide = require_descriptors() ? function (object, key, value) {
|
|
57093
57119
|
return dP$2.f(object, key, createDesc$3(1, value));
|
|
57094
57120
|
} : function (object, key, value) {
|
|
57095
57121
|
object[key] = value;
|
|
@@ -57334,7 +57360,7 @@
|
|
|
57334
57360
|
if (hasRequired_objectAssign) return _objectAssign;
|
|
57335
57361
|
hasRequired_objectAssign = 1;
|
|
57336
57362
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
57337
|
-
var DESCRIPTORS =
|
|
57363
|
+
var DESCRIPTORS = require_descriptors();
|
|
57338
57364
|
var getKeys = _objectKeys;
|
|
57339
57365
|
var gOPS = _objectGops;
|
|
57340
57366
|
var pIE = require_objectPie();
|
|
@@ -57410,11 +57436,11 @@
|
|
|
57410
57436
|
|
|
57411
57437
|
var _redefine = _hide;
|
|
57412
57438
|
|
|
57413
|
-
var dP$1 =
|
|
57439
|
+
var dP$1 = require_objectDp();
|
|
57414
57440
|
var anObject$4 = _anObject;
|
|
57415
57441
|
var getKeys$1 = _objectKeys;
|
|
57416
57442
|
|
|
57417
|
-
var _objectDps =
|
|
57443
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
57418
57444
|
anObject$4(O);
|
|
57419
57445
|
var keys = getKeys$1(Properties);
|
|
57420
57446
|
var length = keys.length;
|
|
@@ -57493,7 +57519,7 @@
|
|
|
57493
57519
|
|
|
57494
57520
|
var _wksExports = _wks.exports;
|
|
57495
57521
|
|
|
57496
|
-
var def =
|
|
57522
|
+
var def = require_objectDp().f;
|
|
57497
57523
|
var has$b = _has;
|
|
57498
57524
|
var TAG$1 = _wksExports('toStringTag');
|
|
57499
57525
|
|
|
@@ -57807,7 +57833,7 @@
|
|
|
57807
57833
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
57808
57834
|
};
|
|
57809
57835
|
|
|
57810
|
-
var $defineProperty$1 =
|
|
57836
|
+
var $defineProperty$1 = require_objectDp();
|
|
57811
57837
|
var createDesc$2 = _propertyDesc;
|
|
57812
57838
|
|
|
57813
57839
|
var _createProperty = function (object, index, value) {
|
|
@@ -57940,7 +57966,7 @@
|
|
|
57940
57966
|
|
|
57941
57967
|
var $export$3 = _export;
|
|
57942
57968
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
57943
|
-
$export$3($export$3.S + $export$3.F * !
|
|
57969
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
|
|
57944
57970
|
|
|
57945
57971
|
var $Object$1 = _coreExports.Object;
|
|
57946
57972
|
var defineProperty$6 = function defineProperty(it, key, desc) {
|
|
@@ -57988,7 +58014,7 @@
|
|
|
57988
58014
|
var META$1 = _uid('meta');
|
|
57989
58015
|
var isObject$5 = _isObject;
|
|
57990
58016
|
var has$9 = _has;
|
|
57991
|
-
var setDesc =
|
|
58017
|
+
var setDesc = require_objectDp().f;
|
|
57992
58018
|
var id$1 = 0;
|
|
57993
58019
|
var isExtensible = Object.isExtensible || function () {
|
|
57994
58020
|
return true;
|
|
@@ -58043,7 +58069,7 @@
|
|
|
58043
58069
|
|
|
58044
58070
|
var core = _coreExports;
|
|
58045
58071
|
var wksExt$1 = _wksExt;
|
|
58046
|
-
var defineProperty$4 =
|
|
58072
|
+
var defineProperty$4 = require_objectDp().f;
|
|
58047
58073
|
var _wksDefine = function (name) {
|
|
58048
58074
|
var $Symbol = core.Symbol || (core.Symbol = {} );
|
|
58049
58075
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
|
|
@@ -58110,10 +58136,10 @@
|
|
|
58110
58136
|
var toIObject$1 = _toIobject;
|
|
58111
58137
|
var toPrimitive$1 = _toPrimitive$1;
|
|
58112
58138
|
var has$8 = _has;
|
|
58113
|
-
var IE8_DOM_DEFINE =
|
|
58139
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
58114
58140
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
58115
58141
|
|
|
58116
|
-
_objectGopd.f =
|
|
58142
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
|
|
58117
58143
|
O = toIObject$1(O);
|
|
58118
58144
|
P = toPrimitive$1(P, true);
|
|
58119
58145
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -58125,7 +58151,7 @@
|
|
|
58125
58151
|
// ECMAScript 6 symbols shim
|
|
58126
58152
|
var global$1 = _globalExports;
|
|
58127
58153
|
var has$7 = _has;
|
|
58128
|
-
var DESCRIPTORS =
|
|
58154
|
+
var DESCRIPTORS = require_descriptors();
|
|
58129
58155
|
var $export$2 = _export;
|
|
58130
58156
|
var redefine = _redefine;
|
|
58131
58157
|
var META = _metaExports.KEY;
|
|
@@ -58148,7 +58174,7 @@
|
|
|
58148
58174
|
var gOPNExt = _objectGopnExt;
|
|
58149
58175
|
var $GOPD = _objectGopd;
|
|
58150
58176
|
var $GOPS = _objectGops;
|
|
58151
|
-
var $DP =
|
|
58177
|
+
var $DP = require_objectDp();
|
|
58152
58178
|
var $keys$1 = _objectKeys;
|
|
58153
58179
|
var gOPD$1 = $GOPD.f;
|
|
58154
58180
|
var dP = $DP.f;
|
|
@@ -90406,7 +90432,7 @@
|
|
|
90406
90432
|
if (isTagSelect && item.value && item.value.includes && item.value.includes(":")) {
|
|
90407
90433
|
const topLevelId = item.value.split(":")[0];
|
|
90408
90434
|
valArray = valArray.filter((val) => {
|
|
90409
|
-
if (val
|
|
90435
|
+
if (val?.value && val.value.includes && val.value.includes(":")) {
|
|
90410
90436
|
const valId = val.value.split(":")[0];
|
|
90411
90437
|
if (valId === topLevelId) {
|
|
90412
90438
|
return false;
|
|
@@ -90494,7 +90520,7 @@
|
|
|
90494
90520
|
getTagProps = (label) => {
|
|
90495
90521
|
const { multi, value = [], disabled: _disabled } = this.props;
|
|
90496
90522
|
const val = Array.isArray(value) ? value : [value];
|
|
90497
|
-
const matchingVal = val.find((op) => op
|
|
90523
|
+
const matchingVal = val.find((op) => op?.label === label);
|
|
90498
90524
|
const disabled = _disabled || matchingVal && matchingVal.disabled;
|
|
90499
90525
|
const className = matchingVal && matchingVal.className;
|
|
90500
90526
|
return {
|
|
@@ -111742,7 +111768,7 @@
|
|
|
111742
111768
|
}
|
|
111743
111769
|
} else if (Array.isArray(value)) {
|
|
111744
111770
|
valueToUse = value.map((val) => {
|
|
111745
|
-
if (val
|
|
111771
|
+
if (val?.userCreated) {
|
|
111746
111772
|
return {
|
|
111747
111773
|
label: val.value,
|
|
111748
111774
|
value: val
|
|
@@ -111769,10 +111795,10 @@
|
|
|
111769
111795
|
let valToPass;
|
|
111770
111796
|
if (Array.isArray(valOrVals)) {
|
|
111771
111797
|
valToPass = valOrVals.map(function(val) {
|
|
111772
|
-
if (val
|
|
111798
|
+
if (val?.userCreated) {
|
|
111773
111799
|
return val;
|
|
111774
111800
|
}
|
|
111775
|
-
return val
|
|
111801
|
+
return val?.value;
|
|
111776
111802
|
});
|
|
111777
111803
|
} else if (valOrVals) {
|
|
111778
111804
|
if (valOrVals.userCreated) {
|
|
@@ -117760,16 +117786,22 @@
|
|
|
117760
117786
|
state = { isOpen: true };
|
|
117761
117787
|
render() {
|
|
117762
117788
|
const {
|
|
117789
|
+
title,
|
|
117763
117790
|
handleClose,
|
|
117764
117791
|
text,
|
|
117765
117792
|
resolve,
|
|
117766
117793
|
noCancelButton,
|
|
117767
117794
|
content,
|
|
117768
117795
|
className,
|
|
117796
|
+
thirdButtonNotMinimal,
|
|
117797
|
+
thirdButtonClassName,
|
|
117769
117798
|
thirdButtonText,
|
|
117770
117799
|
thirdButtonIntent,
|
|
117800
|
+
fourthButtonNotMinimal,
|
|
117801
|
+
fourthButtonClassName,
|
|
117771
117802
|
fourthButtonText,
|
|
117772
117803
|
fourthButtonIntent,
|
|
117804
|
+
handleSubmit,
|
|
117773
117805
|
canEscapeKeyCancel,
|
|
117774
117806
|
confirmButtonText = "OK",
|
|
117775
117807
|
cancelButtonText = "Cancel",
|
|
@@ -117784,19 +117816,28 @@
|
|
|
117784
117816
|
return /* @__PURE__ */ React$3.createElement(
|
|
117785
117817
|
Dialog,
|
|
117786
117818
|
{
|
|
117787
|
-
|
|
117819
|
+
title,
|
|
117820
|
+
className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
|
|
117788
117821
|
isOpen: this.state.isOpen,
|
|
117789
117822
|
intent,
|
|
117790
117823
|
cancelButtonText,
|
|
117791
117824
|
onCancel: cancelButtonText ? () => doClose(false) : void 0,
|
|
117792
|
-
onConfirm: () => doClose(true),
|
|
117825
|
+
onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
|
|
117793
117826
|
...rest,
|
|
117794
117827
|
...noCancelButton && {
|
|
117795
117828
|
onCancel: void 0,
|
|
117796
117829
|
cancelButtonText: void 0
|
|
117797
117830
|
}
|
|
117798
117831
|
},
|
|
117799
|
-
/* @__PURE__ */ React$3.createElement(
|
|
117832
|
+
/* @__PURE__ */ React$3.createElement(
|
|
117833
|
+
"div",
|
|
117834
|
+
{
|
|
117835
|
+
className: title ? "bp3-dialog-body" : "bp3-alert-contents",
|
|
117836
|
+
style: { padding: 5 }
|
|
117837
|
+
},
|
|
117838
|
+
content,
|
|
117839
|
+
text && /* @__PURE__ */ React$3.createElement("div", { style: { marginBottom: 10 } }, text)
|
|
117840
|
+
),
|
|
117800
117841
|
/* @__PURE__ */ React$3.createElement(
|
|
117801
117842
|
DialogFooter,
|
|
117802
117843
|
{
|
|
@@ -117807,23 +117848,27 @@
|
|
|
117807
117848
|
additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$3.createElement(React$3.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$3.createElement(
|
|
117808
117849
|
Button,
|
|
117809
117850
|
{
|
|
117851
|
+
className: (!fourthButtonNotMinimal ? MINIMAL : "") + " " + fourthButtonClassName,
|
|
117810
117852
|
intent: fourthButtonIntent,
|
|
117811
117853
|
text: fourthButtonText,
|
|
117812
|
-
onClick:
|
|
117813
|
-
doClose(
|
|
117814
|
-
|
|
117854
|
+
onClick: handleSubmit ? handleSubmit(
|
|
117855
|
+
(v) => doClose({ ...v, fourthButtonClicked: true })
|
|
117856
|
+
) : () => doClose("fourthButtonClicked")
|
|
117815
117857
|
}
|
|
117816
117858
|
), !!thirdButtonText && /* @__PURE__ */ React$3.createElement(
|
|
117817
117859
|
Button,
|
|
117818
117860
|
{
|
|
117861
|
+
className: (!thirdButtonNotMinimal ? MINIMAL : "") + " " + thirdButtonClassName,
|
|
117819
117862
|
intent: thirdButtonIntent,
|
|
117820
117863
|
text: thirdButtonText,
|
|
117821
|
-
onClick:
|
|
117864
|
+
onClick: handleSubmit ? handleSubmit(
|
|
117865
|
+
(v) => doClose({ ...v, thirdButtonClicked: true })
|
|
117866
|
+
) : () => {
|
|
117822
117867
|
doClose("thirdButtonClicked");
|
|
117823
117868
|
}
|
|
117824
117869
|
}
|
|
117825
117870
|
)) : void 0,
|
|
117826
|
-
containerClassname: "bp3-alert-footer",
|
|
117871
|
+
containerClassname: title ? "" : "bp3-alert-footer",
|
|
117827
117872
|
backText: noCancelButton ? "" : cancelButtonText,
|
|
117828
117873
|
text: confirmButtonText,
|
|
117829
117874
|
intent
|
|
@@ -142143,13 +142188,13 @@
|
|
|
142143
142188
|
messages.push(
|
|
142144
142189
|
"Invalid annotation start: " + location.start + " detected for " + location.name + " and set to size: " + size
|
|
142145
142190
|
);
|
|
142146
|
-
location.start = size - (isProtein ? 3 : 1);
|
|
142191
|
+
location.start = Math.max(0, size - (isProtein ? 3 : 1));
|
|
142147
142192
|
}
|
|
142148
142193
|
if (location.end < 0 || !(location.end <= size - 1) || location.end > size - 1) {
|
|
142149
142194
|
messages.push(
|
|
142150
142195
|
"Invalid annotation end: " + location.end + " detected for " + location.name + " and set to seq size: " + size
|
|
142151
142196
|
);
|
|
142152
|
-
location.end = size - 1;
|
|
142197
|
+
location.end = Math.max(0, size - 1);
|
|
142153
142198
|
}
|
|
142154
142199
|
if (location.start > location.end && circular === false) {
|
|
142155
142200
|
messages.push(
|
|
@@ -188747,7 +188792,7 @@ double click --> edit`}`;
|
|
|
188747
188792
|
}
|
|
188748
188793
|
|
|
188749
188794
|
const name = "@teselagen/ove";
|
|
188750
|
-
const version = "0.3.
|
|
188795
|
+
const version = "0.3.19";
|
|
188751
188796
|
const main = "./src/index.js";
|
|
188752
188797
|
const exports$1 = {
|
|
188753
188798
|
".": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@teselagen/sequence-utils": "0.3.7",
|
|
17
17
|
"@teselagen/range-utils": "0.3.7",
|
|
18
|
-
"@teselagen/ui": "0.3.
|
|
18
|
+
"@teselagen/ui": "0.3.19",
|
|
19
19
|
"@teselagen/file-utils": "0.3.9",
|
|
20
20
|
"@teselagen/bounce-loader": "0.3.11",
|
|
21
21
|
"@teselagen/bio-parsers": "0.3.8",
|