@teselagen/ove 0.5.12 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AlignmentTool/index.d.ts +4 -6
- package/index.cjs.js +183 -219
- package/index.es.js +183 -219
- package/index.umd.js +284 -268
- package/package.json +2 -2
- package/src/AlignmentTool/index.js +7 -11
package/index.es.js
CHANGED
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
step2((generator = generator.apply(__this, __arguments)).next());
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var
|
|
59
|
+
var _s, _t, _u, _v, _w, _z, _C, _J;
|
|
60
60
|
import { Icon, Classes, Button, Intent, Keys, MenuItem, Tag, useHotkeys, Popover, Tooltip, Toaster, Position, Menu, MenuDivider, NumericInput, InputGroup, Spinner, FormGroup, TextArea, Checkbox, Switch, EditableText, RadioGroup, Callout, ContextMenu, Dialog, Card, Tabs, Tab, Colors, KeyCombo, AnchorButton, Slider as Slider$1, ButtonGroup, HTMLSelect, Label, ResizeSensor, FocusStyleManager } from "@blueprintjs/core";
|
|
61
61
|
import * as React$2 from "react";
|
|
62
62
|
import React__default$1, { useState, useEffect, forwardRef, useImperativeHandle, Fragment, useMemo as useMemo$1, useRef, useReducer, useCallback as useCallback$1, memo, Component, PureComponent, createElement, isValidElement, useContext, useLayoutEffect as useLayoutEffect$1 } from "react";
|
|
@@ -14355,25 +14355,16 @@ var toString$5 = {}.toString;
|
|
|
14355
14355
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
14356
14356
|
return toString$5.call(it).slice(8, -1);
|
|
14357
14357
|
}, "_cof");
|
|
14358
|
-
var
|
|
14359
|
-
var
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
return _iobject;
|
|
14363
|
-
hasRequired_iobject = 1;
|
|
14364
|
-
var cof2 = _cof;
|
|
14365
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14366
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
14367
|
-
};
|
|
14368
|
-
return _iobject;
|
|
14369
|
-
}
|
|
14370
|
-
__name(require_iobject, "require_iobject");
|
|
14358
|
+
var cof$2 = _cof;
|
|
14359
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14360
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
14361
|
+
};
|
|
14371
14362
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
14372
14363
|
if (it == void 0)
|
|
14373
14364
|
throw TypeError("Can't call method on " + it);
|
|
14374
14365
|
return it;
|
|
14375
14366
|
}, "_defined");
|
|
14376
|
-
var IObject =
|
|
14367
|
+
var IObject = _iobject;
|
|
14377
14368
|
var defined$2 = _defined;
|
|
14378
14369
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
14379
14370
|
return IObject(defined$2(it));
|
|
@@ -14494,7 +14485,7 @@ function require_objectAssign() {
|
|
|
14494
14485
|
var gOPS2 = _objectGops;
|
|
14495
14486
|
var pIE2 = require_objectPie();
|
|
14496
14487
|
var toObject2 = _toObject;
|
|
14497
|
-
var IObject2 =
|
|
14488
|
+
var IObject2 = _iobject;
|
|
14498
14489
|
var $assign = Object.assign;
|
|
14499
14490
|
_objectAssign = !$assign || _fails(function() {
|
|
14500
14491
|
var A2 = {};
|
|
@@ -36529,84 +36520,80 @@ const symbols = {
|
|
|
36529
36520
|
down: "↓"
|
|
36530
36521
|
};
|
|
36531
36522
|
symbols.mod = symbols[isMac ? "meta" : "ctrl"];
|
|
36532
|
-
const
|
|
36533
|
-
|
|
36534
|
-
|
|
36535
|
-
|
|
36536
|
-
|
|
36537
|
-
|
|
36538
|
-
|
|
36539
|
-
|
|
36540
|
-
|
|
36541
|
-
|
|
36542
|
-
|
|
36543
|
-
|
|
36544
|
-
|
|
36545
|
-
|
|
36546
|
-
|
|
36547
|
-
|
|
36548
|
-
|
|
36549
|
-
|
|
36550
|
-
|
|
36551
|
-
|
|
36552
|
-
|
|
36553
|
-
|
|
36554
|
-
|
|
36555
|
-
|
|
36556
|
-
|
|
36557
|
-
|
|
36558
|
-
|
|
36559
|
-
|
|
36560
|
-
|
|
36561
|
-
|
|
36562
|
-
|
|
36563
|
-
|
|
36564
|
-
|
|
36565
|
-
|
|
36566
|
-
|
|
36567
|
-
|
|
36568
|
-
|
|
36569
|
-
|
|
36570
|
-
|
|
36571
|
-
|
|
36572
|
-
|
|
36573
|
-
|
|
36574
|
-
|
|
36575
|
-
|
|
36576
|
-
|
|
36577
|
-
|
|
36578
|
-
|
|
36579
|
-
|
|
36580
|
-
|
|
36581
|
-
|
|
36582
|
-
|
|
36583
|
-
|
|
36584
|
-
|
|
36585
|
-
|
|
36586
|
-
|
|
36587
|
-
}
|
|
36588
|
-
toReturn = /* @__PURE__ */ React__default$1.createElement(Tooltip, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
|
|
36589
|
-
}
|
|
36590
|
-
const El = isInline ? "span" : "div";
|
|
36591
|
-
return /* @__PURE__ */ React__default$1.createElement(
|
|
36592
|
-
El,
|
|
36593
|
-
{
|
|
36594
|
-
style: __spreadValues(__spreadValues(__spreadValues({}, clickable ? { cursor: "pointer" } : {}), isInline ? {} : { display: "flex" }), style2),
|
|
36595
|
-
className: classNames(
|
|
36596
|
-
"info-helper-wrapper",
|
|
36597
|
-
{
|
|
36598
|
-
"info-helper-wrapper-noMarginTop": noMarginTop,
|
|
36599
|
-
"info-helper-clickable": isPopover
|
|
36600
|
-
},
|
|
36601
|
-
className
|
|
36602
|
-
)
|
|
36603
|
-
},
|
|
36604
|
-
toReturn
|
|
36605
|
-
);
|
|
36523
|
+
const InfoHelper = /* @__PURE__ */ __name((_c) => {
|
|
36524
|
+
var _d = _c, {
|
|
36525
|
+
className,
|
|
36526
|
+
content: content2,
|
|
36527
|
+
children,
|
|
36528
|
+
icon = "info-sign",
|
|
36529
|
+
isPopover,
|
|
36530
|
+
isButton,
|
|
36531
|
+
size,
|
|
36532
|
+
isInline,
|
|
36533
|
+
clickable,
|
|
36534
|
+
color: color2,
|
|
36535
|
+
noMarginTop,
|
|
36536
|
+
popoverProps = {},
|
|
36537
|
+
disabled,
|
|
36538
|
+
displayToSide,
|
|
36539
|
+
style: style2
|
|
36540
|
+
} = _d, rest = __objRest(_d, [
|
|
36541
|
+
"className",
|
|
36542
|
+
"content",
|
|
36543
|
+
"children",
|
|
36544
|
+
"icon",
|
|
36545
|
+
"isPopover",
|
|
36546
|
+
"isButton",
|
|
36547
|
+
"size",
|
|
36548
|
+
"isInline",
|
|
36549
|
+
"clickable",
|
|
36550
|
+
"color",
|
|
36551
|
+
"noMarginTop",
|
|
36552
|
+
"popoverProps",
|
|
36553
|
+
"disabled",
|
|
36554
|
+
"displayToSide",
|
|
36555
|
+
"style"
|
|
36556
|
+
]);
|
|
36557
|
+
const IconToUse = isButton ? Button : Icon;
|
|
36558
|
+
const iconProps = {
|
|
36559
|
+
icon,
|
|
36560
|
+
color: color2,
|
|
36561
|
+
disabled
|
|
36562
|
+
};
|
|
36563
|
+
if (!isButton)
|
|
36564
|
+
iconProps.iconSize = size;
|
|
36565
|
+
const IconInner = /* @__PURE__ */ React__default$1.createElement(IconToUse, __spreadValues(__spreadValues({}, iconProps), rest));
|
|
36566
|
+
let toReturn;
|
|
36567
|
+
const toolTipOrPopoverProps = __spreadValues({
|
|
36568
|
+
disabled: disabled || !isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips,
|
|
36569
|
+
popoverClassName: "tg-info-helper-popover bp3-tooltip",
|
|
36570
|
+
content: content2 || children,
|
|
36571
|
+
modifiers: popoverOverflowModifiers
|
|
36572
|
+
}, popoverProps);
|
|
36573
|
+
if (displayToSide) {
|
|
36574
|
+
toReturn = /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, IconInner, /* @__PURE__ */ React__default$1.createElement("span", { style: { paddingLeft: 5, fontStyle: "italic" } }, content2 || children));
|
|
36575
|
+
} else if (isPopover) {
|
|
36576
|
+
toReturn = /* @__PURE__ */ React__default$1.createElement(Popover, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
|
|
36577
|
+
} else {
|
|
36578
|
+
toReturn = /* @__PURE__ */ React__default$1.createElement(Tooltip, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
|
|
36606
36579
|
}
|
|
36607
|
-
|
|
36608
|
-
|
|
36609
|
-
|
|
36580
|
+
const El = isInline ? "span" : "div";
|
|
36581
|
+
return /* @__PURE__ */ React__default$1.createElement(
|
|
36582
|
+
El,
|
|
36583
|
+
{
|
|
36584
|
+
style: __spreadValues(__spreadValues(__spreadValues({}, clickable ? { cursor: "pointer" } : {}), isInline ? {} : { display: "flex" }), style2),
|
|
36585
|
+
className: classNames(
|
|
36586
|
+
"info-helper-wrapper",
|
|
36587
|
+
{
|
|
36588
|
+
"info-helper-wrapper-noMarginTop": noMarginTop,
|
|
36589
|
+
"info-helper-clickable": isPopover
|
|
36590
|
+
},
|
|
36591
|
+
className
|
|
36592
|
+
)
|
|
36593
|
+
},
|
|
36594
|
+
toReturn
|
|
36595
|
+
);
|
|
36596
|
+
}, "InfoHelper");
|
|
36610
36597
|
const getIdOrCodeOrIndex = /* @__PURE__ */ __name((record, rowIndex) => {
|
|
36611
36598
|
if (record.id || record.id === 0) {
|
|
36612
36599
|
return record.id;
|
|
@@ -48396,8 +48383,8 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
|
|
|
48396
48383
|
});
|
|
48397
48384
|
return /* @__PURE__ */ React__default$1.createElement(TgSelect$1, __spreadValues({}, propsToUse));
|
|
48398
48385
|
}, "renderReactSelect");
|
|
48399
|
-
const BPSelect = /* @__PURE__ */ __name((
|
|
48400
|
-
var
|
|
48386
|
+
const BPSelect = /* @__PURE__ */ __name((_e) => {
|
|
48387
|
+
var _f = _e, { value, onChange } = _f, rest = __objRest(_f, ["value", "onChange"]);
|
|
48401
48388
|
return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
|
|
48402
48389
|
}, "BPSelect");
|
|
48403
48390
|
const renderSelect = /* @__PURE__ */ __name((props) => {
|
|
@@ -48532,12 +48519,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((props) => {
|
|
|
48532
48519
|
})
|
|
48533
48520
|
);
|
|
48534
48521
|
}, "renderBlueprintNumericInput");
|
|
48535
|
-
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((
|
|
48536
|
-
var
|
|
48522
|
+
const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_g) => {
|
|
48523
|
+
var _h = _g, {
|
|
48537
48524
|
input,
|
|
48538
48525
|
options,
|
|
48539
48526
|
onFieldSubmit
|
|
48540
|
-
} =
|
|
48527
|
+
} = _h, rest = __objRest(_h, [
|
|
48541
48528
|
"input",
|
|
48542
48529
|
"options",
|
|
48543
48530
|
"onFieldSubmit"
|
|
@@ -51781,8 +51768,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
51781
51768
|
};
|
|
51782
51769
|
}),
|
|
51783
51770
|
branch(({ immovable }) => "true" !== immovable, sortableElement)
|
|
51784
|
-
)((
|
|
51785
|
-
var
|
|
51771
|
+
)((_i) => {
|
|
51772
|
+
var _j = _i, { toggleSort, className, children } = _j, rest = __objRest(_j, ["toggleSort", "className", "children"]);
|
|
51786
51773
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
51787
51774
|
"div",
|
|
51788
51775
|
__spreadValues({
|
|
@@ -54041,13 +54028,13 @@ function getCellInfo({
|
|
|
54041
54028
|
};
|
|
54042
54029
|
}
|
|
54043
54030
|
__name(getCellInfo, "getCellInfo");
|
|
54044
|
-
function ColumnFilterMenu(
|
|
54045
|
-
var
|
|
54031
|
+
function ColumnFilterMenu(_k) {
|
|
54032
|
+
var _l = _k, {
|
|
54046
54033
|
FilterMenu,
|
|
54047
54034
|
filterActiveForColumn,
|
|
54048
54035
|
compact: compact3,
|
|
54049
54036
|
extraCompact
|
|
54050
|
-
} =
|
|
54037
|
+
} = _l, rest = __objRest(_l, [
|
|
54051
54038
|
"FilterMenu",
|
|
54052
54039
|
"filterActiveForColumn",
|
|
54053
54040
|
"compact",
|
|
@@ -56904,8 +56891,8 @@ function maybeStripIdFromEntities(ents, validateAgainstSchema) {
|
|
|
56904
56891
|
return toRet == null ? void 0 : toRet.map((e2) => omit$3(e2, ["_isClean"]));
|
|
56905
56892
|
}
|
|
56906
56893
|
__name(maybeStripIdFromEntities, "maybeStripIdFromEntities");
|
|
56907
|
-
const useDialog = /* @__PURE__ */ __name((
|
|
56908
|
-
var
|
|
56894
|
+
const useDialog = /* @__PURE__ */ __name((_m) => {
|
|
56895
|
+
var _n = _m, { ModalComponent } = _n, rest = __objRest(_n, ["ModalComponent"]);
|
|
56909
56896
|
const [isOpen, setOpen] = useState(false);
|
|
56910
56897
|
const [additionalProps, setAdditionalProps] = useState(false);
|
|
56911
56898
|
const comp = /* @__PURE__ */ React__default$1.createElement(
|
|
@@ -67434,68 +67421,55 @@ function BounceLoader({ style: style2, className }) {
|
|
|
67434
67421
|
);
|
|
67435
67422
|
}
|
|
67436
67423
|
__name(BounceLoader, "BounceLoader");
|
|
67437
|
-
const
|
|
67438
|
-
|
|
67439
|
-
|
|
67440
|
-
|
|
67441
|
-
|
|
67442
|
-
|
|
67443
|
-
|
|
67444
|
-
|
|
67445
|
-
|
|
67446
|
-
|
|
67447
|
-
|
|
67448
|
-
|
|
67424
|
+
const Loading = /* @__PURE__ */ __name(({
|
|
67425
|
+
loading,
|
|
67426
|
+
style: userStyle,
|
|
67427
|
+
className,
|
|
67428
|
+
containerStyle = {},
|
|
67429
|
+
children,
|
|
67430
|
+
displayInstantly = false,
|
|
67431
|
+
bounce = false,
|
|
67432
|
+
withTimeout,
|
|
67433
|
+
inDialog,
|
|
67434
|
+
centeredInPage
|
|
67435
|
+
}) => {
|
|
67436
|
+
const [longerThan200MS, setLongerThan200MS] = useState(false);
|
|
67437
|
+
useEffect(() => {
|
|
67438
|
+
const timeoutId = setTimeout(() => {
|
|
67439
|
+
setLongerThan200MS(true);
|
|
67449
67440
|
}, 200);
|
|
67450
|
-
|
|
67451
|
-
|
|
67452
|
-
|
|
67453
|
-
}
|
|
67454
|
-
|
|
67455
|
-
|
|
67456
|
-
|
|
67457
|
-
|
|
67458
|
-
|
|
67459
|
-
containerStyle = {},
|
|
67460
|
-
children,
|
|
67461
|
-
displayInstantly = false,
|
|
67462
|
-
bounce = false,
|
|
67463
|
-
withTimeout,
|
|
67464
|
-
inDialog,
|
|
67465
|
-
centeredInPage
|
|
67466
|
-
} = this.props;
|
|
67467
|
-
const { longerThan200MS } = this.state;
|
|
67468
|
-
const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
|
|
67469
|
-
const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
|
|
67470
|
-
if (loading || !children) {
|
|
67471
|
-
if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
|
|
67472
|
-
return /* @__PURE__ */ React__default$1.createElement("div", null);
|
|
67473
|
-
}
|
|
67474
|
-
return /* @__PURE__ */ React__default$1.createElement(
|
|
67475
|
-
"div",
|
|
67476
|
-
{
|
|
67477
|
-
className: "tg-loader-container tg-flex justify-center align-center",
|
|
67478
|
-
style: __spreadValues(__spreadValues({
|
|
67479
|
-
width: "100%"
|
|
67480
|
-
}, containerStyle), centeredInPage && {
|
|
67481
|
-
width: void 0,
|
|
67482
|
-
zIndex: 20,
|
|
67483
|
-
height: 10,
|
|
67484
|
-
position: "fixed",
|
|
67485
|
-
top: "50%",
|
|
67486
|
-
left: "50%",
|
|
67487
|
-
transform: "translate(-50%, 0)"
|
|
67488
|
-
})
|
|
67489
|
-
},
|
|
67490
|
-
/* @__PURE__ */ React__default$1.createElement(LoaderComp, { style: style2, className })
|
|
67491
|
-
);
|
|
67492
|
-
} else {
|
|
67493
|
-
return children || null;
|
|
67441
|
+
return () => {
|
|
67442
|
+
clearTimeout(timeoutId);
|
|
67443
|
+
};
|
|
67444
|
+
}, []);
|
|
67445
|
+
const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
|
|
67446
|
+
const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
|
|
67447
|
+
if (loading || !children) {
|
|
67448
|
+
if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
|
|
67449
|
+
return /* @__PURE__ */ React__default$1.createElement("div", null);
|
|
67494
67450
|
}
|
|
67451
|
+
return /* @__PURE__ */ React__default$1.createElement(
|
|
67452
|
+
"div",
|
|
67453
|
+
{
|
|
67454
|
+
className: "tg-loader-container tg-flex justify-center align-center",
|
|
67455
|
+
style: __spreadValues(__spreadValues({
|
|
67456
|
+
width: "100%"
|
|
67457
|
+
}, containerStyle), centeredInPage && {
|
|
67458
|
+
width: void 0,
|
|
67459
|
+
zIndex: 20,
|
|
67460
|
+
height: 10,
|
|
67461
|
+
position: "fixed",
|
|
67462
|
+
top: "50%",
|
|
67463
|
+
left: "50%",
|
|
67464
|
+
transform: "translate(-50%, 0)"
|
|
67465
|
+
})
|
|
67466
|
+
},
|
|
67467
|
+
/* @__PURE__ */ React__default$1.createElement(LoaderComp, { style: style2, className })
|
|
67468
|
+
);
|
|
67469
|
+
} else {
|
|
67470
|
+
return children || null;
|
|
67495
67471
|
}
|
|
67496
|
-
};
|
|
67497
|
-
__name(_Loading, "Loading");
|
|
67498
|
-
let Loading = _Loading;
|
|
67472
|
+
}, "Loading");
|
|
67499
67473
|
function AdvancedOptions({
|
|
67500
67474
|
children,
|
|
67501
67475
|
content: content2,
|
|
@@ -67528,14 +67502,14 @@ function AdvancedOptions({
|
|
|
67528
67502
|
), isOpen && /* @__PURE__ */ React__default$1.createElement("div", { style: { marginTop: 10 } }, content2 || children));
|
|
67529
67503
|
}
|
|
67530
67504
|
__name(AdvancedOptions, "AdvancedOptions");
|
|
67531
|
-
function DropdownButton(
|
|
67532
|
-
var
|
|
67505
|
+
function DropdownButton(_o) {
|
|
67506
|
+
var _p = _o, {
|
|
67533
67507
|
disabled,
|
|
67534
67508
|
menu,
|
|
67535
67509
|
noRightIcon,
|
|
67536
67510
|
popoverProps,
|
|
67537
67511
|
className
|
|
67538
|
-
} =
|
|
67512
|
+
} = _p, rest = __objRest(_p, [
|
|
67539
67513
|
"disabled",
|
|
67540
67514
|
"menu",
|
|
67541
67515
|
"noRightIcon",
|
|
@@ -70894,14 +70868,14 @@ const EnhancedMenuItem = compose(
|
|
|
70894
70868
|
}
|
|
70895
70869
|
}),
|
|
70896
70870
|
branch(({ navTo }) => navTo, withRouter$1)
|
|
70897
|
-
)(function(
|
|
70898
|
-
var
|
|
70871
|
+
)(function(_q) {
|
|
70872
|
+
var _r = _q, {
|
|
70899
70873
|
navTo,
|
|
70900
70874
|
context,
|
|
70901
70875
|
staticContext,
|
|
70902
70876
|
didMount,
|
|
70903
70877
|
willUnmount
|
|
70904
|
-
} =
|
|
70878
|
+
} = _r, props = __objRest(_r, [
|
|
70905
70879
|
"navTo",
|
|
70906
70880
|
"context",
|
|
70907
70881
|
"staticContext",
|
|
@@ -71095,7 +71069,7 @@ function doesSearchValMatchText(searchVal, justText) {
|
|
|
71095
71069
|
);
|
|
71096
71070
|
}
|
|
71097
71071
|
__name(doesSearchValMatchText, "doesSearchValMatchText");
|
|
71098
|
-
let MenuBar$1 = (
|
|
71072
|
+
let MenuBar$1 = (_s = class extends React__default$1.Component {
|
|
71099
71073
|
constructor(props) {
|
|
71100
71074
|
super(props);
|
|
71101
71075
|
__publicField(this, "state", {
|
|
@@ -71340,10 +71314,10 @@ let MenuBar$1 = (_q = class extends React__default$1.Component {
|
|
|
71340
71314
|
);
|
|
71341
71315
|
}), extraContent);
|
|
71342
71316
|
}
|
|
71343
|
-
}, __name(
|
|
71317
|
+
}, __name(_s, "MenuBar"), __publicField(_s, "defaultProps", {
|
|
71344
71318
|
className: "",
|
|
71345
71319
|
style: {}
|
|
71346
|
-
}),
|
|
71320
|
+
}), _s);
|
|
71347
71321
|
const isDivider = /* @__PURE__ */ __name((item) => item.divider !== void 0, "isDivider");
|
|
71348
71322
|
function getAllMenuTextsAndHandlers(menu, enhancers, context, path2 = []) {
|
|
71349
71323
|
if (!menu)
|
|
@@ -71491,7 +71465,7 @@ function HotkeysDialog(props) {
|
|
|
71491
71465
|
);
|
|
71492
71466
|
}
|
|
71493
71467
|
__name(HotkeysDialog, "HotkeysDialog");
|
|
71494
|
-
let FillWindow$1 = (
|
|
71468
|
+
let FillWindow$1 = (_t = class extends React__default$1.Component {
|
|
71495
71469
|
constructor(props) {
|
|
71496
71470
|
super(props);
|
|
71497
71471
|
rerenderOnWindowResize(this);
|
|
@@ -71539,7 +71513,7 @@ let FillWindow$1 = (_r = class extends React__default$1.Component {
|
|
|
71539
71513
|
return ReactDOM$1.createPortal(inner2, window.document.body);
|
|
71540
71514
|
return inner2;
|
|
71541
71515
|
}
|
|
71542
|
-
}, __name(
|
|
71516
|
+
}, __name(_t, "FillWindow"), _t);
|
|
71543
71517
|
var relativeTime$1 = { exports: {} };
|
|
71544
71518
|
(function(module2, exports2) {
|
|
71545
71519
|
!function(r2, e2) {
|
|
@@ -71587,16 +71561,6 @@ var relativeTime$1 = { exports: {} };
|
|
|
71587
71561
|
var relativeTimeExports = relativeTime$1.exports;
|
|
71588
71562
|
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
71589
71563
|
dayjs.extend(relativeTime);
|
|
71590
|
-
const _Timeline = class _Timeline extends Component {
|
|
71591
|
-
render() {
|
|
71592
|
-
return /* @__PURE__ */ React__default$1.createElement("div", { className: "tg-timeline" }, this.props.children.length > 1 && /* @__PURE__ */ React__default$1.createElement("div", { className: "tg-timeline-line" }), this.props.children);
|
|
71593
|
-
}
|
|
71594
|
-
};
|
|
71595
|
-
__name(_Timeline, "Timeline");
|
|
71596
|
-
__publicField(_Timeline, "propTypes", {
|
|
71597
|
-
children: PropTypes.arrayOf(PropTypes.element)
|
|
71598
|
-
});
|
|
71599
|
-
let Timeline = _Timeline;
|
|
71600
71564
|
const ptIconWrapper = /* @__PURE__ */ __name((path2, viewboxDefault = 24, rest) => {
|
|
71601
71565
|
return /* @__PURE__ */ React__default$1.createElement("span", { className: "bp3-icon" }, /* @__PURE__ */ React__default$1.createElement(
|
|
71602
71566
|
"svg",
|
|
@@ -90426,7 +90390,7 @@ const util$1 = util$4;
|
|
|
90426
90390
|
const xmlNode = xmlNode$1;
|
|
90427
90391
|
const readDocType = DocTypeReader;
|
|
90428
90392
|
const toNumber = strnum;
|
|
90429
|
-
let OrderedObjParser$1 = (
|
|
90393
|
+
let OrderedObjParser$1 = (_u = class {
|
|
90430
90394
|
constructor(options) {
|
|
90431
90395
|
this.options = options;
|
|
90432
90396
|
this.currentNode = null;
|
|
@@ -90465,7 +90429,7 @@ let OrderedObjParser$1 = (_s = class {
|
|
|
90465
90429
|
this.saveTextToParentTag = saveTextToParentTag;
|
|
90466
90430
|
this.addChild = addChild;
|
|
90467
90431
|
}
|
|
90468
|
-
}, __name(
|
|
90432
|
+
}, __name(_u, "OrderedObjParser"), _u);
|
|
90469
90433
|
function addExternalEntities(externalEntities) {
|
|
90470
90434
|
const entKeys = Object.keys(externalEntities);
|
|
90471
90435
|
for (let i = 0; i < entKeys.length; i++) {
|
|
@@ -91021,7 +90985,7 @@ const { buildOptions } = OptionsBuilder;
|
|
|
91021
90985
|
const OrderedObjParser = OrderedObjParser_1;
|
|
91022
90986
|
const { prettify } = node2json;
|
|
91023
90987
|
const validator$1 = validator$2;
|
|
91024
|
-
let XMLParser$1 = (
|
|
90988
|
+
let XMLParser$1 = (_v = class {
|
|
91025
90989
|
constructor(options) {
|
|
91026
90990
|
this.externalEntities = {};
|
|
91027
90991
|
this.options = buildOptions(options);
|
|
@@ -91071,7 +91035,7 @@ let XMLParser$1 = (_t = class {
|
|
|
91071
91035
|
this.externalEntities[key] = value;
|
|
91072
91036
|
}
|
|
91073
91037
|
}
|
|
91074
|
-
}, __name(
|
|
91038
|
+
}, __name(_v, "XMLParser"), _v);
|
|
91075
91039
|
var XMLParser_1 = XMLParser$1;
|
|
91076
91040
|
const EOL = "\n";
|
|
91077
91041
|
function toXml(jArray, options) {
|
|
@@ -118979,7 +118943,7 @@ const Labels$2 = onlyUpdateForKeys([
|
|
|
118979
118943
|
"editorName"
|
|
118980
118944
|
])(Labels$1);
|
|
118981
118945
|
const DrawLabel = withHover(
|
|
118982
|
-
(
|
|
118946
|
+
(_w = class extends React__default$1.Component {
|
|
118983
118947
|
render() {
|
|
118984
118948
|
const {
|
|
118985
118949
|
hovered,
|
|
@@ -119083,7 +119047,7 @@ const DrawLabel = withHover(
|
|
|
119083
119047
|
}
|
|
119084
119048
|
));
|
|
119085
119049
|
}
|
|
119086
|
-
}, __name(
|
|
119050
|
+
}, __name(_w, "DrawLabelInner"), _w)
|
|
119087
119051
|
);
|
|
119088
119052
|
const labelClassNames = {
|
|
119089
119053
|
cutsites: "veCutsiteLabel",
|
|
@@ -120981,7 +120945,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
120981
120945
|
}
|
|
120982
120946
|
__name(showFileDialog, "showFileDialog");
|
|
120983
120947
|
const name = "@teselagen/ove";
|
|
120984
|
-
const version = "0.5.
|
|
120948
|
+
const version = "0.5.12";
|
|
120985
120949
|
const main = "./src/index.js";
|
|
120986
120950
|
const type = "module";
|
|
120987
120951
|
const exports$1 = {
|
|
@@ -121061,8 +121025,8 @@ const useAnnotationLimits = /* @__PURE__ */ __name(() => useLocalStorageState("a
|
|
|
121061
121025
|
cutsites: 100
|
|
121062
121026
|
}
|
|
121063
121027
|
}), "useAnnotationLimits");
|
|
121064
|
-
function LimitAnnotations(
|
|
121065
|
-
var
|
|
121028
|
+
function LimitAnnotations(_x) {
|
|
121029
|
+
var _y = _x, { type: type2 } = _y, rest = __objRest(_y, ["type"]);
|
|
121066
121030
|
const [limits = {}, setLimits] = useAnnotationLimits();
|
|
121067
121031
|
return /* @__PURE__ */ React__default$1.createElement(MenuItem, __spreadValues({ icon: "blank", shouldDismissPopover: false }, rest), [50, 100, 200, 400].map((n2) => /* @__PURE__ */ React__default$1.createElement(
|
|
121068
121032
|
MenuItem,
|
|
@@ -127221,7 +127185,7 @@ const commonConfigResolver = {
|
|
|
127221
127185
|
};
|
|
127222
127186
|
const DEFAULT_AXIS_THRESHOLD = 0;
|
|
127223
127187
|
const coordinatesConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
|
|
127224
|
-
axis(
|
|
127188
|
+
axis(_v2, _k, {
|
|
127225
127189
|
axis
|
|
127226
127190
|
}) {
|
|
127227
127191
|
this.lockDirection = axis === "lock";
|
|
@@ -127295,7 +127259,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
|
|
|
127295
127259
|
pen: 8
|
|
127296
127260
|
};
|
|
127297
127261
|
_objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
|
|
127298
|
-
device(
|
|
127262
|
+
device(_v2, _k, {
|
|
127299
127263
|
pointer: {
|
|
127300
127264
|
touch = false,
|
|
127301
127265
|
lock = false,
|
|
@@ -127321,7 +127285,7 @@ _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
|
|
|
127321
127285
|
return void 0;
|
|
127322
127286
|
return value ? value : preventScroll !== void 0 ? "y" : void 0;
|
|
127323
127287
|
},
|
|
127324
|
-
pointerCapture(
|
|
127288
|
+
pointerCapture(_v2, _k, {
|
|
127325
127289
|
pointer: {
|
|
127326
127290
|
capture = true,
|
|
127327
127291
|
buttons = 1,
|
|
@@ -127652,7 +127616,7 @@ const _PinchEngine = class _PinchEngine extends Engine {
|
|
|
127652
127616
|
__name(_PinchEngine, "PinchEngine");
|
|
127653
127617
|
let PinchEngine = _PinchEngine;
|
|
127654
127618
|
const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
|
|
127655
|
-
device(
|
|
127619
|
+
device(_v2, _k, {
|
|
127656
127620
|
shared: shared2,
|
|
127657
127621
|
pointer: {
|
|
127658
127622
|
touch = false
|
|
@@ -127670,7 +127634,7 @@ const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigRe
|
|
|
127670
127634
|
return "touch";
|
|
127671
127635
|
}
|
|
127672
127636
|
},
|
|
127673
|
-
bounds(
|
|
127637
|
+
bounds(_v2, _k, {
|
|
127674
127638
|
scaleBounds = {},
|
|
127675
127639
|
angleBounds = {}
|
|
127676
127640
|
}) {
|
|
@@ -128969,7 +128933,7 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
128969
128933
|
__name(_Minimap, "Minimap");
|
|
128970
128934
|
let Minimap = _Minimap;
|
|
128971
128935
|
const YellowScrollHandle = view(
|
|
128972
|
-
(
|
|
128936
|
+
(_z = class extends React__default$1.Component {
|
|
128973
128937
|
render() {
|
|
128974
128938
|
const {
|
|
128975
128939
|
scrollHandleWidth,
|
|
@@ -129124,7 +129088,7 @@ const YellowScrollHandle = view(
|
|
|
129124
129088
|
)
|
|
129125
129089
|
);
|
|
129126
129090
|
}
|
|
129127
|
-
}, __name(
|
|
129091
|
+
}, __name(_z, "YellowScrollHandleInner"), _z)
|
|
129128
129092
|
);
|
|
129129
129093
|
function getTrimmedRangesToDisplay({ trimmedRange, seqLen }) {
|
|
129130
129094
|
if (!trimmedRange)
|
|
@@ -129497,14 +129461,14 @@ function getRangeAnglesSpecial() {
|
|
|
129497
129461
|
}, rest);
|
|
129498
129462
|
}
|
|
129499
129463
|
__name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
|
|
129500
|
-
function PositionAnnotationOnCircle(
|
|
129501
|
-
var
|
|
129464
|
+
function PositionAnnotationOnCircle(_A) {
|
|
129465
|
+
var _B = _A, {
|
|
129502
129466
|
children,
|
|
129503
129467
|
height: height2 = 0,
|
|
129504
129468
|
sAngle = 0,
|
|
129505
129469
|
eAngle = 0,
|
|
129506
129470
|
forward = true
|
|
129507
|
-
} =
|
|
129471
|
+
} = _B, rest = __objRest(_B, [
|
|
129508
129472
|
"children",
|
|
129509
129473
|
"height",
|
|
129510
129474
|
"sAngle",
|
|
@@ -134023,7 +133987,7 @@ const SelectDialog = compose$1(
|
|
|
134023
133987
|
}),
|
|
134024
133988
|
tgFormValues("from", "to")
|
|
134025
133989
|
)(
|
|
134026
|
-
(
|
|
133990
|
+
(_C = class extends React__default$1.Component {
|
|
134027
133991
|
constructor() {
|
|
134028
133992
|
super(...arguments);
|
|
134029
133993
|
__publicField(this, "updateTempHighlight", /* @__PURE__ */ __name(({ isStart, isEnd } = {}) => (val2) => {
|
|
@@ -134134,7 +134098,7 @@ const SelectDialog = compose$1(
|
|
|
134134
134098
|
))
|
|
134135
134099
|
);
|
|
134136
134100
|
}
|
|
134137
|
-
}, __name(
|
|
134101
|
+
}, __name(_C, "SelectDialog"), _C)
|
|
134138
134102
|
);
|
|
134139
134103
|
const normalizeToInt = /* @__PURE__ */ __name((val2) => {
|
|
134140
134104
|
const int2 = Math.round(val2);
|
|
@@ -137589,8 +137553,8 @@ function getTrackFromEvent(event, allTracks) {
|
|
|
137589
137553
|
return track2;
|
|
137590
137554
|
}
|
|
137591
137555
|
__name(getTrackFromEvent, "getTrackFromEvent");
|
|
137592
|
-
const PerformantSelectionLayer = view((
|
|
137593
|
-
var
|
|
137556
|
+
const PerformantSelectionLayer = view((_D) => {
|
|
137557
|
+
var _E = _D, { easyStore: easyStore2 } = _E, rest = __objRest(_E, ["easyStore"]);
|
|
137594
137558
|
const seqLen = rest.sequenceLength - 1;
|
|
137595
137559
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
137596
137560
|
SelectionLayer$3,
|
|
@@ -139430,8 +139394,8 @@ const AlignmentView$1 = compose(
|
|
|
139430
139394
|
})
|
|
139431
139395
|
)
|
|
139432
139396
|
)(AlignmentView);
|
|
139433
|
-
const PerformantCaret = view((
|
|
139434
|
-
var
|
|
139397
|
+
const PerformantCaret = view((_F) => {
|
|
139398
|
+
var _G = _F, { easyStore: easyStore2 } = _G, rest = __objRest(_G, ["easyStore"]);
|
|
139435
139399
|
return /* @__PURE__ */ React__default$1.createElement(Caret$2, __spreadValues({ caretPosition: easyStore2.caretPosition }, rest));
|
|
139436
139400
|
});
|
|
139437
139401
|
function cleanTracks(alignmentTracks) {
|
|
@@ -141696,14 +141660,14 @@ const cutsiteTool = connectToEditor(
|
|
|
141696
141660
|
}, toolbarItemProps))
|
|
141697
141661
|
);
|
|
141698
141662
|
});
|
|
141699
|
-
function CutsiteToolDropDown(
|
|
141700
|
-
var
|
|
141663
|
+
function CutsiteToolDropDown(_H) {
|
|
141664
|
+
var _I = _H, {
|
|
141701
141665
|
editorName,
|
|
141702
141666
|
toggleDropdown,
|
|
141703
141667
|
annotationVisibilityShow: annotationVisibilityShow2,
|
|
141704
141668
|
withDigestTool,
|
|
141705
141669
|
createNewDigest: createNewDigest2
|
|
141706
|
-
} =
|
|
141670
|
+
} = _I, rest = __objRest(_I, [
|
|
141707
141671
|
"editorName",
|
|
141708
141672
|
"toggleDropdown",
|
|
141709
141673
|
"annotationVisibilityShow",
|
|
@@ -141831,7 +141795,7 @@ const orfTool = connectToEditor(
|
|
|
141831
141795
|
);
|
|
141832
141796
|
});
|
|
141833
141797
|
const OrfToolDropdown = withEditorProps(
|
|
141834
|
-
(
|
|
141798
|
+
(_J = class extends React__default$1.Component {
|
|
141835
141799
|
constructor(props) {
|
|
141836
141800
|
super(props);
|
|
141837
141801
|
this.commands = getCommands(this);
|
|
@@ -141857,7 +141821,7 @@ const OrfToolDropdown = withEditorProps(
|
|
|
141857
141821
|
}
|
|
141858
141822
|
));
|
|
141859
141823
|
}
|
|
141860
|
-
}, __name(
|
|
141824
|
+
}, __name(_J, "OrfDropdown"), _J)
|
|
141861
141825
|
);
|
|
141862
141826
|
const opts = [
|
|
141863
141827
|
{ label: "DNA", value: "DNA" },
|
|
@@ -147256,8 +147220,8 @@ function StandaloneVersionHistoryView(props) {
|
|
|
147256
147220
|
return /* @__PURE__ */ React__default$1.createElement(Provider, { store }, /* @__PURE__ */ React__default$1.createElement(VersionHistoryView$1, __spreadValues({}, __spreadValues({}, props))));
|
|
147257
147221
|
}
|
|
147258
147222
|
__name(StandaloneVersionHistoryView, "StandaloneVersionHistoryView");
|
|
147259
|
-
function createVectorEditor(_node,
|
|
147260
|
-
var
|
|
147223
|
+
function createVectorEditor(_node, _K = {}) {
|
|
147224
|
+
var _L = _K, { editorName = "StandaloneEditor" } = _L, rest = __objRest(_L, ["editorName"]);
|
|
147261
147225
|
if (!store) {
|
|
147262
147226
|
store = makeStore();
|
|
147263
147227
|
}
|
|
@@ -147290,8 +147254,8 @@ function createVectorEditor(_node, _I = {}) {
|
|
|
147290
147254
|
return editor;
|
|
147291
147255
|
}
|
|
147292
147256
|
__name(createVectorEditor, "createVectorEditor");
|
|
147293
|
-
function createVersionHistoryView(node2,
|
|
147294
|
-
var
|
|
147257
|
+
function createVersionHistoryView(node2, _M = {}) {
|
|
147258
|
+
var _N = _M, { editorName = "StandaloneVersionHistoryView" } = _N, rest = __objRest(_N, ["editorName"]);
|
|
147295
147259
|
if (!store) {
|
|
147296
147260
|
store = makeStore();
|
|
147297
147261
|
}
|