@teselagen/ove 0.5.7 → 0.5.9
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 +11 -4
- package/index.es.js +11 -4
- package/index.umd.js +26 -10
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -36063,6 +36063,7 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36063
36063
|
};
|
|
36064
36064
|
}
|
|
36065
36065
|
render() {
|
|
36066
|
+
var _b2;
|
|
36066
36067
|
const _a2 = this.props, {
|
|
36067
36068
|
multi,
|
|
36068
36069
|
options,
|
|
@@ -36073,6 +36074,7 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36073
36074
|
tagInputProps: tagInputProps,
|
|
36074
36075
|
autoFocus,
|
|
36075
36076
|
autoOpen,
|
|
36077
|
+
mustHaveQueryToOpen,
|
|
36076
36078
|
noResultsText,
|
|
36077
36079
|
noResults: _noResults,
|
|
36078
36080
|
inputProps,
|
|
@@ -36096,6 +36098,7 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36096
36098
|
"tagInputProps",
|
|
36097
36099
|
"autoFocus",
|
|
36098
36100
|
"autoOpen",
|
|
36101
|
+
"mustHaveQueryToOpen",
|
|
36099
36102
|
"noResultsText",
|
|
36100
36103
|
"noResults",
|
|
36101
36104
|
"inputProps",
|
|
@@ -36112,6 +36115,7 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36112
36115
|
let noResults = _noResults;
|
|
36113
36116
|
if (noResults === void 0)
|
|
36114
36117
|
noResults = noResultsDefault;
|
|
36118
|
+
const hasQuery = ((_b2 = this.state.query) == null ? void 0 : _b2.length) > 0;
|
|
36115
36119
|
const hasValue = Array.isArray(value) ? value.length > 0 : !!value || value === 0;
|
|
36116
36120
|
const rightElement = isLoading ? /* @__PURE__ */ React$2.createElement(core$5.Button, { loading: true, minimal: true }) : /* @__PURE__ */ React$2.createElement("span", null, additionalRightEl, hasValue && !disallowClear && !disabled && /* @__PURE__ */ React$2.createElement(
|
|
36117
36121
|
core$5.Button,
|
|
@@ -36164,7 +36168,7 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36164
36168
|
wrapperTagName: "div",
|
|
36165
36169
|
canEscapeKeyClose: true,
|
|
36166
36170
|
onInteraction: this.onInteraction,
|
|
36167
|
-
isOpen: this.state.isOpen,
|
|
36171
|
+
isOpen: mustHaveQueryToOpen ? hasQuery && this.state.isOpen : this.state.isOpen,
|
|
36168
36172
|
modifiers: popoverOverflowModifiers
|
|
36169
36173
|
}, popoverProps),
|
|
36170
36174
|
onItemSelect: this.handleItemSelect,
|
|
@@ -70720,11 +70724,13 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React$
|
|
|
70720
70724
|
};
|
|
70721
70725
|
__name(_ResizableDraggableDialog, "ResizableDraggableDialog");
|
|
70722
70726
|
let ResizableDraggableDialog = _ResizableDraggableDialog;
|
|
70723
|
-
function MenuItemLink({ text: text2, onClick, icon, navTo }) {
|
|
70727
|
+
function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
70724
70728
|
const handleLinkClick = /* @__PURE__ */ __name((e2) => {
|
|
70725
70729
|
e2.target.closest(`.${core$5.Classes.POPOVER_DISMISS}`).click();
|
|
70726
70730
|
}, "handleLinkClick");
|
|
70727
|
-
return /* @__PURE__ */ React$2.createElement("li", { className: core$5.Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className:
|
|
70731
|
+
return /* @__PURE__ */ React$2.createElement("li", { className: core$5.Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className: classNames(core$5.Classes.MENU_ITEM, {
|
|
70732
|
+
[core$5.Classes.ACTIVE]: active3
|
|
70733
|
+
}) }, icon && /* @__PURE__ */ React$2.createElement(core$5.Icon, { icon }), /* @__PURE__ */ React$2.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)));
|
|
70728
70734
|
}
|
|
70729
70735
|
__name(MenuItemLink, "MenuItemLink");
|
|
70730
70736
|
const EnhancedMenuItem = compose(
|
|
@@ -89362,6 +89368,7 @@ function genbankToJson(string2, options = {}) {
|
|
|
89362
89368
|
const feat = getCurrentFeature();
|
|
89363
89369
|
feat.type = key;
|
|
89364
89370
|
feat.strand = strand;
|
|
89371
|
+
feat.forward = strand === 1;
|
|
89365
89372
|
feat.locations = feat.locations.concat(
|
|
89366
89373
|
parseFeatureLocation(
|
|
89367
89374
|
val2,
|
|
@@ -120805,7 +120812,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
120805
120812
|
}
|
|
120806
120813
|
__name(showFileDialog, "showFileDialog");
|
|
120807
120814
|
const name = "@teselagen/ove";
|
|
120808
|
-
const version = "0.5.
|
|
120815
|
+
const version = "0.5.8";
|
|
120809
120816
|
const main = "./src/index.js";
|
|
120810
120817
|
const type = "module";
|
|
120811
120818
|
const exports$1 = {
|
package/index.es.js
CHANGED
|
@@ -36045,6 +36045,7 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36045
36045
|
};
|
|
36046
36046
|
}
|
|
36047
36047
|
render() {
|
|
36048
|
+
var _b2;
|
|
36048
36049
|
const _a2 = this.props, {
|
|
36049
36050
|
multi,
|
|
36050
36051
|
options,
|
|
@@ -36055,6 +36056,7 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36055
36056
|
tagInputProps: tagInputProps,
|
|
36056
36057
|
autoFocus,
|
|
36057
36058
|
autoOpen,
|
|
36059
|
+
mustHaveQueryToOpen,
|
|
36058
36060
|
noResultsText,
|
|
36059
36061
|
noResults: _noResults,
|
|
36060
36062
|
inputProps,
|
|
@@ -36078,6 +36080,7 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36078
36080
|
"tagInputProps",
|
|
36079
36081
|
"autoFocus",
|
|
36080
36082
|
"autoOpen",
|
|
36083
|
+
"mustHaveQueryToOpen",
|
|
36081
36084
|
"noResultsText",
|
|
36082
36085
|
"noResults",
|
|
36083
36086
|
"inputProps",
|
|
@@ -36094,6 +36097,7 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36094
36097
|
let noResults = _noResults;
|
|
36095
36098
|
if (noResults === void 0)
|
|
36096
36099
|
noResults = noResultsDefault;
|
|
36100
|
+
const hasQuery = ((_b2 = this.state.query) == null ? void 0 : _b2.length) > 0;
|
|
36097
36101
|
const hasValue = Array.isArray(value) ? value.length > 0 : !!value || value === 0;
|
|
36098
36102
|
const rightElement = isLoading ? /* @__PURE__ */ React__default$1.createElement(Button, { loading: true, minimal: true }) : /* @__PURE__ */ React__default$1.createElement("span", null, additionalRightEl, hasValue && !disallowClear && !disabled && /* @__PURE__ */ React__default$1.createElement(
|
|
36099
36103
|
Button,
|
|
@@ -36146,7 +36150,7 @@ const _TgSelect = class _TgSelect extends React__default$1.Component {
|
|
|
36146
36150
|
wrapperTagName: "div",
|
|
36147
36151
|
canEscapeKeyClose: true,
|
|
36148
36152
|
onInteraction: this.onInteraction,
|
|
36149
|
-
isOpen: this.state.isOpen,
|
|
36153
|
+
isOpen: mustHaveQueryToOpen ? hasQuery && this.state.isOpen : this.state.isOpen,
|
|
36150
36154
|
modifiers: popoverOverflowModifiers
|
|
36151
36155
|
}, popoverProps),
|
|
36152
36156
|
onItemSelect: this.handleItemSelect,
|
|
@@ -70702,11 +70706,13 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React_
|
|
|
70702
70706
|
};
|
|
70703
70707
|
__name(_ResizableDraggableDialog, "ResizableDraggableDialog");
|
|
70704
70708
|
let ResizableDraggableDialog = _ResizableDraggableDialog;
|
|
70705
|
-
function MenuItemLink({ text: text2, onClick, icon, navTo }) {
|
|
70709
|
+
function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3 }) {
|
|
70706
70710
|
const handleLinkClick = /* @__PURE__ */ __name((e2) => {
|
|
70707
70711
|
e2.target.closest(`.${Classes.POPOVER_DISMISS}`).click();
|
|
70708
70712
|
}, "handleLinkClick");
|
|
70709
|
-
return /* @__PURE__ */ React__default$1.createElement("li", { className: Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React__default$1.createElement(Link, { onClick: handleLinkClick, to: navTo, className:
|
|
70713
|
+
return /* @__PURE__ */ React__default$1.createElement("li", { className: Classes.POPOVER_DISMISS, onClick }, /* @__PURE__ */ React__default$1.createElement(Link, { onClick: handleLinkClick, to: navTo, className: classNames(Classes.MENU_ITEM, {
|
|
70714
|
+
[Classes.ACTIVE]: active3
|
|
70715
|
+
}) }, icon && /* @__PURE__ */ React__default$1.createElement(Icon, { icon }), /* @__PURE__ */ React__default$1.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)));
|
|
70710
70716
|
}
|
|
70711
70717
|
__name(MenuItemLink, "MenuItemLink");
|
|
70712
70718
|
const EnhancedMenuItem = compose(
|
|
@@ -89344,6 +89350,7 @@ function genbankToJson(string2, options = {}) {
|
|
|
89344
89350
|
const feat = getCurrentFeature();
|
|
89345
89351
|
feat.type = key;
|
|
89346
89352
|
feat.strand = strand;
|
|
89353
|
+
feat.forward = strand === 1;
|
|
89347
89354
|
feat.locations = feat.locations.concat(
|
|
89348
89355
|
parseFeatureLocation(
|
|
89349
89356
|
val2,
|
|
@@ -120787,7 +120794,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
120787
120794
|
}
|
|
120788
120795
|
__name(showFileDialog, "showFileDialog");
|
|
120789
120796
|
const name = "@teselagen/ove";
|
|
120790
|
-
const version = "0.5.
|
|
120797
|
+
const version = "0.5.8";
|
|
120791
120798
|
const main = "./src/index.js";
|
|
120792
120799
|
const type = "module";
|
|
120793
120800
|
const exports$1 = {
|
package/index.umd.js
CHANGED
|
@@ -40158,16 +40158,25 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40158
40158
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
40159
40159
|
return toString$3.call(it).slice(8, -1);
|
|
40160
40160
|
}, "_cof");
|
|
40161
|
-
var
|
|
40162
|
-
var
|
|
40163
|
-
|
|
40164
|
-
|
|
40161
|
+
var _iobject;
|
|
40162
|
+
var hasRequired_iobject;
|
|
40163
|
+
function require_iobject() {
|
|
40164
|
+
if (hasRequired_iobject)
|
|
40165
|
+
return _iobject;
|
|
40166
|
+
hasRequired_iobject = 1;
|
|
40167
|
+
var cof2 = _cof;
|
|
40168
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
40169
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
40170
|
+
};
|
|
40171
|
+
return _iobject;
|
|
40172
|
+
}
|
|
40173
|
+
__name(require_iobject, "require_iobject");
|
|
40165
40174
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
40166
40175
|
if (it == void 0)
|
|
40167
40176
|
throw TypeError("Can't call method on " + it);
|
|
40168
40177
|
return it;
|
|
40169
40178
|
}, "_defined");
|
|
40170
|
-
var IObject =
|
|
40179
|
+
var IObject = require_iobject();
|
|
40171
40180
|
var defined$2 = _defined;
|
|
40172
40181
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
40173
40182
|
return IObject(defined$2(it));
|
|
@@ -40288,7 +40297,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
40288
40297
|
var gOPS2 = _objectGops;
|
|
40289
40298
|
var pIE2 = require_objectPie();
|
|
40290
40299
|
var toObject2 = _toObject;
|
|
40291
|
-
var IObject2 =
|
|
40300
|
+
var IObject2 = require_iobject();
|
|
40292
40301
|
var $assign = Object.assign;
|
|
40293
40302
|
_objectAssign = !$assign || _fails(function() {
|
|
40294
40303
|
var A2 = {};
|
|
@@ -61385,6 +61394,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
61385
61394
|
};
|
|
61386
61395
|
}
|
|
61387
61396
|
render() {
|
|
61397
|
+
var _b2;
|
|
61388
61398
|
const _a2 = this.props, {
|
|
61389
61399
|
multi,
|
|
61390
61400
|
options,
|
|
@@ -61395,6 +61405,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
61395
61405
|
tagInputProps: tagInputProps,
|
|
61396
61406
|
autoFocus,
|
|
61397
61407
|
autoOpen,
|
|
61408
|
+
mustHaveQueryToOpen,
|
|
61398
61409
|
noResultsText,
|
|
61399
61410
|
noResults: _noResults,
|
|
61400
61411
|
inputProps,
|
|
@@ -61418,6 +61429,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
61418
61429
|
"tagInputProps",
|
|
61419
61430
|
"autoFocus",
|
|
61420
61431
|
"autoOpen",
|
|
61432
|
+
"mustHaveQueryToOpen",
|
|
61421
61433
|
"noResultsText",
|
|
61422
61434
|
"noResults",
|
|
61423
61435
|
"inputProps",
|
|
@@ -61434,6 +61446,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
61434
61446
|
let noResults = _noResults;
|
|
61435
61447
|
if (noResults === void 0)
|
|
61436
61448
|
noResults = noResultsDefault;
|
|
61449
|
+
const hasQuery = ((_b2 = this.state.query) == null ? void 0 : _b2.length) > 0;
|
|
61437
61450
|
const hasValue = Array.isArray(value) ? value.length > 0 : !!value || value === 0;
|
|
61438
61451
|
const rightElement = isLoading ? /* @__PURE__ */ React$2.createElement(Button, { loading: true, minimal: true }) : /* @__PURE__ */ React$2.createElement("span", null, additionalRightEl, hasValue && !disallowClear && !disabled && /* @__PURE__ */ React$2.createElement(
|
|
61439
61452
|
Button,
|
|
@@ -61486,7 +61499,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
61486
61499
|
wrapperTagName: "div",
|
|
61487
61500
|
canEscapeKeyClose: true,
|
|
61488
61501
|
onInteraction: this.onInteraction,
|
|
61489
|
-
isOpen: this.state.isOpen,
|
|
61502
|
+
isOpen: mustHaveQueryToOpen ? hasQuery && this.state.isOpen : this.state.isOpen,
|
|
61490
61503
|
modifiers: popoverOverflowModifiers
|
|
61491
61504
|
}, popoverProps),
|
|
61492
61505
|
onItemSelect: this.handleItemSelect,
|
|
@@ -99785,11 +99798,13 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
99785
99798
|
};
|
|
99786
99799
|
__name(_ResizableDraggableDialog, "ResizableDraggableDialog");
|
|
99787
99800
|
let ResizableDraggableDialog = _ResizableDraggableDialog;
|
|
99788
|
-
function MenuItemLink({ text: text2, onClick, icon, navTo }) {
|
|
99801
|
+
function MenuItemLink({ text: text2, onClick, icon, navTo, active: active2 }) {
|
|
99789
99802
|
const handleLinkClick = /* @__PURE__ */ __name((e2) => {
|
|
99790
99803
|
e2.target.closest(`.${POPOVER_DISMISS}`).click();
|
|
99791
99804
|
}, "handleLinkClick");
|
|
99792
|
-
return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className:
|
|
99805
|
+
return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS, onClick }, /* @__PURE__ */ React$2.createElement(Link, { onClick: handleLinkClick, to: navTo, className: classNames$1(MENU_ITEM, {
|
|
99806
|
+
[ACTIVE]: active2
|
|
99807
|
+
}) }, icon && /* @__PURE__ */ React$2.createElement(Icon, { icon }), /* @__PURE__ */ React$2.createElement("div", { className: "bp3-text-overflow-ellipsis bp3-fill" }, text2)));
|
|
99793
99808
|
}
|
|
99794
99809
|
__name(MenuItemLink, "MenuItemLink");
|
|
99795
99810
|
const EnhancedMenuItem = compose(
|
|
@@ -118427,6 +118442,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
118427
118442
|
const feat = getCurrentFeature();
|
|
118428
118443
|
feat.type = key2;
|
|
118429
118444
|
feat.strand = strand;
|
|
118445
|
+
feat.forward = strand === 1;
|
|
118430
118446
|
feat.locations = feat.locations.concat(
|
|
118431
118447
|
parseFeatureLocation(
|
|
118432
118448
|
val2,
|
|
@@ -149260,7 +149276,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
149260
149276
|
}
|
|
149261
149277
|
__name(showFileDialog, "showFileDialog");
|
|
149262
149278
|
const name = "@teselagen/ove";
|
|
149263
|
-
const version = "0.5.
|
|
149279
|
+
const version = "0.5.8";
|
|
149264
149280
|
const main = "./src/index.js";
|
|
149265
149281
|
const type = "module";
|
|
149266
149282
|
const exports$1 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@teselagen/sequence-utils": "0.3.24",
|
|
14
14
|
"@teselagen/range-utils": "0.3.7",
|
|
15
|
-
"@teselagen/ui": "0.4.
|
|
15
|
+
"@teselagen/ui": "0.4.6",
|
|
16
16
|
"@teselagen/file-utils": "0.3.16",
|
|
17
17
|
"@teselagen/bounce-loader": "0.3.11",
|
|
18
|
-
"@teselagen/bio-parsers": "0.4.
|
|
18
|
+
"@teselagen/bio-parsers": "0.4.18",
|
|
19
19
|
"@blueprintjs/core": "3.52.0",
|
|
20
20
|
"@blueprintjs/datetime": "3.23.19",
|
|
21
21
|
"@blueprintjs/icons": "3.33.0",
|