@teselagen/ove 0.5.12 → 0.5.14

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.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 _q, _r, _s, _t, _u, _x, _A, _H;
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 _iobject;
14359
- var hasRequired_iobject;
14360
- function require_iobject() {
14361
- if (hasRequired_iobject)
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 = require_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));
@@ -14462,10 +14453,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
14462
14453
  return result;
14463
14454
  }, "_objectKeysInternal");
14464
14455
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
14465
- var $keys$3 = _objectKeysInternal;
14456
+ var $keys$2 = _objectKeysInternal;
14466
14457
  var enumBugKeys$1 = _enumBugKeys;
14467
14458
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
14468
- return $keys$3(O2, enumBugKeys$1);
14459
+ return $keys$2(O2, enumBugKeys$1);
14469
14460
  }, "keys");
14470
14461
  var _objectGops = {};
14471
14462
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -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 = require_iobject();
14488
+ var IObject2 = _iobject;
14498
14489
  var $assign = Object.assign;
14499
14490
  _objectAssign = !$assign || _fails(function() {
14500
14491
  var A2 = {};
@@ -14898,11 +14889,11 @@ var ArrayProto = Array.prototype;
14898
14889
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
14899
14890
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
14900
14891
  }, "_isArrayIter");
14901
- var $defineProperty$4 = require_objectDp();
14892
+ var $defineProperty$3 = require_objectDp();
14902
14893
  var createDesc$2 = _propertyDesc;
14903
14894
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
14904
14895
  if (index2 in object3)
14905
- $defineProperty$4.f(object3, index2, createDesc$2(0, value));
14896
+ $defineProperty$3.f(object3, index2, createDesc$2(0, value));
14906
14897
  else
14907
14898
  object3[index2] = value;
14908
14899
  }, "_createProperty");
@@ -15150,13 +15141,21 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
15150
15141
  }, "isArray");
15151
15142
  var _objectGopnExt = {};
15152
15143
  var _objectGopn = {};
15153
- var $keys$2 = _objectKeysInternal;
15154
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
15155
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
15156
- return $keys$2(O2, hiddenKeys);
15157
- }, "getOwnPropertyNames");
15144
+ var hasRequired_objectGopn;
15145
+ function require_objectGopn() {
15146
+ if (hasRequired_objectGopn)
15147
+ return _objectGopn;
15148
+ hasRequired_objectGopn = 1;
15149
+ var $keys2 = _objectKeysInternal;
15150
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
15151
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
15152
+ return $keys2(O2, hiddenKeys);
15153
+ }, "getOwnPropertyNames");
15154
+ return _objectGopn;
15155
+ }
15156
+ __name(require_objectGopn, "require_objectGopn");
15158
15157
  var toIObject$2 = _toIobject;
15159
- var gOPN$1 = _objectGopn.f;
15158
+ var gOPN$1 = require_objectGopn().f;
15160
15159
  var toString$4 = {}.toString;
15161
15160
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
15162
15161
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -15166,7 +15165,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
15166
15165
  return windowNames.slice();
15167
15166
  }
15168
15167
  }, "getWindowNames");
15169
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
15168
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
15170
15169
  return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
15171
15170
  }, "getOwnPropertyNames");
15172
15171
  var _objectGopd = {};
@@ -15256,9 +15255,9 @@ var isSymbol$7 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
15256
15255
  } : function(it) {
15257
15256
  return it instanceof $Symbol;
15258
15257
  };
15259
- var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
15258
+ var $defineProperty$2 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
15260
15259
  if (it === ObjectProto)
15261
- $defineProperty$3(OPSymbols, key, D2);
15260
+ $defineProperty$2(OPSymbols, key, D2);
15262
15261
  anObject(it);
15263
15262
  key = toPrimitive(key, true);
15264
15263
  anObject(D2);
@@ -15283,7 +15282,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
15283
15282
  var l2 = keys5.length;
15284
15283
  var key;
15285
15284
  while (l2 > i)
15286
- $defineProperty$3(it, key = keys5[i++], P2[key]);
15285
+ $defineProperty$2(it, key = keys5[i++], P2[key]);
15287
15286
  return it;
15288
15287
  }, "defineProperties");
15289
15288
  var $create = /* @__PURE__ */ __name(function create2(it, P2) {
@@ -15305,7 +15304,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
15305
15304
  D2.enumerable = true;
15306
15305
  return D2;
15307
15306
  }, "getOwnPropertyDescriptor");
15308
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
15307
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
15309
15308
  var names2 = gOPN(toIObject(it));
15310
15309
  var result = [];
15311
15310
  var i = 0;
@@ -15348,8 +15347,8 @@ if (!USE_NATIVE) {
15348
15347
  return this._k;
15349
15348
  }, "toString"));
15350
15349
  $GOPD.f = $getOwnPropertyDescriptor;
15351
- $DP.f = $defineProperty$3;
15352
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
15350
+ $DP.f = $defineProperty$2;
15351
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
15353
15352
  require_objectPie().f = $propertyIsEnumerable;
15354
15353
  $GOPS.f = $getOwnPropertySymbols;
15355
15354
  if (DESCRIPTORS && !_library) {
@@ -15391,7 +15390,7 @@ $export$2($export$2.S + $export$2.F * !USE_NATIVE, "Object", {
15391
15390
  // 19.1.2.2 Object.create(O [, Properties])
15392
15391
  create: $create,
15393
15392
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
15394
- defineProperty: $defineProperty$3,
15393
+ defineProperty: $defineProperty$2,
15395
15394
  // 19.1.2.3 Object.defineProperties(O, Properties)
15396
15395
  defineProperties: $defineProperties,
15397
15396
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
@@ -36529,84 +36528,80 @@ const symbols = {
36529
36528
  down: "↓"
36530
36529
  };
36531
36530
  symbols.mod = symbols[isMac ? "meta" : "ctrl"];
36532
- const _InfoHelper = class _InfoHelper extends Component {
36533
- render() {
36534
- const _a2 = this.props, {
36535
- className,
36536
- content: content2,
36537
- children,
36538
- icon = "info-sign",
36539
- isPopover,
36540
- isButton,
36541
- size,
36542
- isInline,
36543
- clickable,
36544
- color: color2,
36545
- noMarginTop,
36546
- popoverProps = {},
36547
- disabled,
36548
- displayToSide,
36549
- style: style2
36550
- } = _a2, rest = __objRest(_a2, [
36551
- "className",
36552
- "content",
36553
- "children",
36554
- "icon",
36555
- "isPopover",
36556
- "isButton",
36557
- "size",
36558
- "isInline",
36559
- "clickable",
36560
- "color",
36561
- "noMarginTop",
36562
- "popoverProps",
36563
- "disabled",
36564
- "displayToSide",
36565
- "style"
36566
- ]);
36567
- const IconToUse = isButton ? Button : Icon;
36568
- const iconProps = {
36569
- icon,
36570
- color: color2,
36571
- disabled
36572
- };
36573
- if (!isButton)
36574
- iconProps.iconSize = size;
36575
- const IconInner = /* @__PURE__ */ React__default$1.createElement(IconToUse, __spreadValues(__spreadValues({}, iconProps), rest));
36576
- let toReturn;
36577
- const toolTipOrPopoverProps = __spreadValues({
36578
- disabled: disabled || !isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips,
36579
- popoverClassName: "tg-info-helper-popover bp3-tooltip",
36580
- content: content2 || children,
36581
- modifiers: popoverOverflowModifiers
36582
- }, popoverProps);
36583
- if (displayToSide) {
36584
- 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));
36585
- } else if (isPopover) {
36586
- toReturn = /* @__PURE__ */ React__default$1.createElement(Popover, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36587
- } else {
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
- );
36531
+ const InfoHelper = /* @__PURE__ */ __name((_c) => {
36532
+ var _d = _c, {
36533
+ className,
36534
+ content: content2,
36535
+ children,
36536
+ icon = "info-sign",
36537
+ isPopover,
36538
+ isButton,
36539
+ size,
36540
+ isInline,
36541
+ clickable,
36542
+ color: color2,
36543
+ noMarginTop,
36544
+ popoverProps = {},
36545
+ disabled,
36546
+ displayToSide,
36547
+ style: style2
36548
+ } = _d, rest = __objRest(_d, [
36549
+ "className",
36550
+ "content",
36551
+ "children",
36552
+ "icon",
36553
+ "isPopover",
36554
+ "isButton",
36555
+ "size",
36556
+ "isInline",
36557
+ "clickable",
36558
+ "color",
36559
+ "noMarginTop",
36560
+ "popoverProps",
36561
+ "disabled",
36562
+ "displayToSide",
36563
+ "style"
36564
+ ]);
36565
+ const IconToUse = isButton ? Button : Icon;
36566
+ const iconProps = {
36567
+ icon,
36568
+ color: color2,
36569
+ disabled
36570
+ };
36571
+ if (!isButton)
36572
+ iconProps.iconSize = size;
36573
+ const IconInner = /* @__PURE__ */ React__default$1.createElement(IconToUse, __spreadValues(__spreadValues({}, iconProps), rest));
36574
+ let toReturn;
36575
+ const toolTipOrPopoverProps = __spreadValues({
36576
+ disabled: disabled || !isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips,
36577
+ popoverClassName: "tg-info-helper-popover bp3-tooltip",
36578
+ content: content2 || children,
36579
+ modifiers: popoverOverflowModifiers
36580
+ }, popoverProps);
36581
+ if (displayToSide) {
36582
+ 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));
36583
+ } else if (isPopover) {
36584
+ toReturn = /* @__PURE__ */ React__default$1.createElement(Popover, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36585
+ } else {
36586
+ toReturn = /* @__PURE__ */ React__default$1.createElement(Tooltip, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36606
36587
  }
36607
- };
36608
- __name(_InfoHelper, "InfoHelper");
36609
- let InfoHelper = _InfoHelper;
36588
+ const El = isInline ? "span" : "div";
36589
+ return /* @__PURE__ */ React__default$1.createElement(
36590
+ El,
36591
+ {
36592
+ style: __spreadValues(__spreadValues(__spreadValues({}, clickable ? { cursor: "pointer" } : {}), isInline ? {} : { display: "flex" }), style2),
36593
+ className: classNames(
36594
+ "info-helper-wrapper",
36595
+ {
36596
+ "info-helper-wrapper-noMarginTop": noMarginTop,
36597
+ "info-helper-clickable": isPopover
36598
+ },
36599
+ className
36600
+ )
36601
+ },
36602
+ toReturn
36603
+ );
36604
+ }, "InfoHelper");
36610
36605
  const getIdOrCodeOrIndex = /* @__PURE__ */ __name((record, rowIndex) => {
36611
36606
  if (record.id || record.id === 0) {
36612
36607
  return record.id;
@@ -37280,16 +37275,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
37280
37275
  return value;
37281
37276
  }, "GetIntrinsic");
37282
37277
  var callBind$3 = { exports: {} };
37283
- var GetIntrinsic$4 = getIntrinsic;
37284
- var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
37285
- if ($defineProperty$2) {
37286
- try {
37287
- $defineProperty$2({}, "a", { value: 1 });
37288
- } catch (e2) {
37289
- $defineProperty$2 = false;
37278
+ var esDefineProperty;
37279
+ var hasRequiredEsDefineProperty;
37280
+ function requireEsDefineProperty() {
37281
+ if (hasRequiredEsDefineProperty)
37282
+ return esDefineProperty;
37283
+ hasRequiredEsDefineProperty = 1;
37284
+ var GetIntrinsic3 = getIntrinsic;
37285
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
37286
+ if ($defineProperty2) {
37287
+ try {
37288
+ $defineProperty2({}, "a", { value: 1 });
37289
+ } catch (e2) {
37290
+ $defineProperty2 = false;
37291
+ }
37290
37292
  }
37293
+ esDefineProperty = $defineProperty2;
37294
+ return esDefineProperty;
37291
37295
  }
37292
- var esDefineProperty = $defineProperty$2;
37296
+ __name(requireEsDefineProperty, "requireEsDefineProperty");
37293
37297
  var GetIntrinsic$3 = getIntrinsic;
37294
37298
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
37295
37299
  if ($gOPD$1) {
@@ -37300,7 +37304,7 @@ if ($gOPD$1) {
37300
37304
  }
37301
37305
  }
37302
37306
  var gopd$1 = $gOPD$1;
37303
- var $defineProperty$1 = esDefineProperty;
37307
+ var $defineProperty$1 = requireEsDefineProperty();
37304
37308
  var $SyntaxError = syntax;
37305
37309
  var $TypeError$4 = type$1;
37306
37310
  var gopd = gopd$1;
@@ -37341,7 +37345,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
37341
37345
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
37342
37346
  }
37343
37347
  }, "defineDataProperty");
37344
- var $defineProperty = esDefineProperty;
37348
+ var $defineProperty = requireEsDefineProperty();
37345
37349
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
37346
37350
  return !!$defineProperty;
37347
37351
  }, "hasPropertyDescriptors");
@@ -37410,7 +37414,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
37410
37414
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
37411
37415
  var $call = GetIntrinsic3("%Function.prototype.call%");
37412
37416
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
37413
- var $defineProperty2 = esDefineProperty;
37417
+ var $defineProperty2 = requireEsDefineProperty();
37414
37418
  var $max = GetIntrinsic3("%Math.max%");
37415
37419
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
37416
37420
  if (typeof originalFunction !== "function") {
@@ -48396,8 +48400,8 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
48396
48400
  });
48397
48401
  return /* @__PURE__ */ React__default$1.createElement(TgSelect$1, __spreadValues({}, propsToUse));
48398
48402
  }, "renderReactSelect");
48399
- const BPSelect = /* @__PURE__ */ __name((_c) => {
48400
- var _d = _c, { value, onChange } = _d, rest = __objRest(_d, ["value", "onChange"]);
48403
+ const BPSelect = /* @__PURE__ */ __name((_e) => {
48404
+ var _f = _e, { value, onChange } = _f, rest = __objRest(_f, ["value", "onChange"]);
48401
48405
  return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
48402
48406
  }, "BPSelect");
48403
48407
  const renderSelect = /* @__PURE__ */ __name((props) => {
@@ -48532,12 +48536,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((props) => {
48532
48536
  })
48533
48537
  );
48534
48538
  }, "renderBlueprintNumericInput");
48535
- const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_e) => {
48536
- var _f = _e, {
48539
+ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_g) => {
48540
+ var _h = _g, {
48537
48541
  input,
48538
48542
  options,
48539
48543
  onFieldSubmit
48540
- } = _f, rest = __objRest(_f, [
48544
+ } = _h, rest = __objRest(_h, [
48541
48545
  "input",
48542
48546
  "options",
48543
48547
  "onFieldSubmit"
@@ -49877,7 +49881,7 @@ var KNOWN_STATICS = {
49877
49881
  arity: true
49878
49882
  };
49879
49883
  var defineProperty$3 = Object.defineProperty;
49880
- var getOwnPropertyNames4 = Object.getOwnPropertyNames;
49884
+ var getOwnPropertyNames3 = Object.getOwnPropertyNames;
49881
49885
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
49882
49886
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
49883
49887
  var getPrototypeOf = Object.getPrototypeOf;
@@ -49890,7 +49894,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
49890
49894
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
49891
49895
  }
49892
49896
  }
49893
- var keys5 = getOwnPropertyNames4(sourceComponent);
49897
+ var keys5 = getOwnPropertyNames3(sourceComponent);
49894
49898
  if (getOwnPropertySymbols3) {
49895
49899
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
49896
49900
  }
@@ -51781,8 +51785,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
51781
51785
  };
51782
51786
  }),
51783
51787
  branch(({ immovable }) => "true" !== immovable, sortableElement)
51784
- )((_g) => {
51785
- var _h = _g, { toggleSort, className, children } = _h, rest = __objRest(_h, ["toggleSort", "className", "children"]);
51788
+ )((_i) => {
51789
+ var _j = _i, { toggleSort, className, children } = _j, rest = __objRest(_j, ["toggleSort", "className", "children"]);
51786
51790
  return /* @__PURE__ */ React__default$1.createElement(
51787
51791
  "div",
51788
51792
  __spreadValues({
@@ -54041,13 +54045,13 @@ function getCellInfo({
54041
54045
  };
54042
54046
  }
54043
54047
  __name(getCellInfo, "getCellInfo");
54044
- function ColumnFilterMenu(_i) {
54045
- var _j = _i, {
54048
+ function ColumnFilterMenu(_k) {
54049
+ var _l = _k, {
54046
54050
  FilterMenu,
54047
54051
  filterActiveForColumn,
54048
54052
  compact: compact3,
54049
54053
  extraCompact
54050
- } = _j, rest = __objRest(_j, [
54054
+ } = _l, rest = __objRest(_l, [
54051
54055
  "FilterMenu",
54052
54056
  "filterActiveForColumn",
54053
54057
  "compact",
@@ -56904,8 +56908,8 @@ function maybeStripIdFromEntities(ents, validateAgainstSchema) {
56904
56908
  return toRet == null ? void 0 : toRet.map((e2) => omit$3(e2, ["_isClean"]));
56905
56909
  }
56906
56910
  __name(maybeStripIdFromEntities, "maybeStripIdFromEntities");
56907
- const useDialog = /* @__PURE__ */ __name((_k) => {
56908
- var _l = _k, { ModalComponent } = _l, rest = __objRest(_l, ["ModalComponent"]);
56911
+ const useDialog = /* @__PURE__ */ __name((_m) => {
56912
+ var _n = _m, { ModalComponent } = _n, rest = __objRest(_n, ["ModalComponent"]);
56909
56913
  const [isOpen, setOpen] = useState(false);
56910
56914
  const [additionalProps, setAdditionalProps] = useState(false);
56911
56915
  const comp = /* @__PURE__ */ React__default$1.createElement(
@@ -67434,68 +67438,55 @@ function BounceLoader({ style: style2, className }) {
67434
67438
  );
67435
67439
  }
67436
67440
  __name(BounceLoader, "BounceLoader");
67437
- const _Loading = class _Loading extends React__default$1.Component {
67438
- constructor() {
67439
- super(...arguments);
67440
- __publicField(this, "state", {
67441
- longerThan200MS: false
67442
- });
67443
- }
67444
- componentDidMount() {
67445
- this.timeoutId = setTimeout(() => {
67446
- this.setState({
67447
- longerThan200MS: true
67448
- });
67441
+ const Loading = /* @__PURE__ */ __name(({
67442
+ loading,
67443
+ style: userStyle,
67444
+ className,
67445
+ containerStyle = {},
67446
+ children,
67447
+ displayInstantly = false,
67448
+ bounce = false,
67449
+ withTimeout,
67450
+ inDialog,
67451
+ centeredInPage
67452
+ }) => {
67453
+ const [longerThan200MS, setLongerThan200MS] = useState(false);
67454
+ useEffect(() => {
67455
+ const timeoutId = setTimeout(() => {
67456
+ setLongerThan200MS(true);
67449
67457
  }, 200);
67450
- }
67451
- componentWillUnmount() {
67452
- clearTimeout(this.timeoutId);
67453
- }
67454
- render() {
67455
- const {
67456
- loading,
67457
- style: userStyle,
67458
- className,
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;
67458
+ return () => {
67459
+ clearTimeout(timeoutId);
67460
+ };
67461
+ }, []);
67462
+ const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
67463
+ const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
67464
+ if (loading || !children) {
67465
+ if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
67466
+ return /* @__PURE__ */ React__default$1.createElement("div", null);
67494
67467
  }
67468
+ return /* @__PURE__ */ React__default$1.createElement(
67469
+ "div",
67470
+ {
67471
+ className: "tg-loader-container tg-flex justify-center align-center",
67472
+ style: __spreadValues(__spreadValues({
67473
+ width: "100%"
67474
+ }, containerStyle), centeredInPage && {
67475
+ width: void 0,
67476
+ zIndex: 20,
67477
+ height: 10,
67478
+ position: "fixed",
67479
+ top: "50%",
67480
+ left: "50%",
67481
+ transform: "translate(-50%, 0)"
67482
+ })
67483
+ },
67484
+ /* @__PURE__ */ React__default$1.createElement(LoaderComp, { style: style2, className })
67485
+ );
67486
+ } else {
67487
+ return children || null;
67495
67488
  }
67496
- };
67497
- __name(_Loading, "Loading");
67498
- let Loading = _Loading;
67489
+ }, "Loading");
67499
67490
  function AdvancedOptions({
67500
67491
  children,
67501
67492
  content: content2,
@@ -67528,14 +67519,14 @@ function AdvancedOptions({
67528
67519
  ), isOpen && /* @__PURE__ */ React__default$1.createElement("div", { style: { marginTop: 10 } }, content2 || children));
67529
67520
  }
67530
67521
  __name(AdvancedOptions, "AdvancedOptions");
67531
- function DropdownButton(_m) {
67532
- var _n = _m, {
67522
+ function DropdownButton(_o) {
67523
+ var _p = _o, {
67533
67524
  disabled,
67534
67525
  menu,
67535
67526
  noRightIcon,
67536
67527
  popoverProps,
67537
67528
  className
67538
- } = _n, rest = __objRest(_n, [
67529
+ } = _p, rest = __objRest(_p, [
67539
67530
  "disabled",
67540
67531
  "menu",
67541
67532
  "noRightIcon",
@@ -70894,14 +70885,14 @@ const EnhancedMenuItem = compose(
70894
70885
  }
70895
70886
  }),
70896
70887
  branch(({ navTo }) => navTo, withRouter$1)
70897
- )(function(_o) {
70898
- var _p = _o, {
70888
+ )(function(_q) {
70889
+ var _r = _q, {
70899
70890
  navTo,
70900
70891
  context,
70901
70892
  staticContext,
70902
70893
  didMount,
70903
70894
  willUnmount
70904
- } = _p, props = __objRest(_p, [
70895
+ } = _r, props = __objRest(_r, [
70905
70896
  "navTo",
70906
70897
  "context",
70907
70898
  "staticContext",
@@ -71095,7 +71086,7 @@ function doesSearchValMatchText(searchVal, justText) {
71095
71086
  );
71096
71087
  }
71097
71088
  __name(doesSearchValMatchText, "doesSearchValMatchText");
71098
- let MenuBar$1 = (_q = class extends React__default$1.Component {
71089
+ let MenuBar$1 = (_s = class extends React__default$1.Component {
71099
71090
  constructor(props) {
71100
71091
  super(props);
71101
71092
  __publicField(this, "state", {
@@ -71340,10 +71331,10 @@ let MenuBar$1 = (_q = class extends React__default$1.Component {
71340
71331
  );
71341
71332
  }), extraContent);
71342
71333
  }
71343
- }, __name(_q, "MenuBar"), __publicField(_q, "defaultProps", {
71334
+ }, __name(_s, "MenuBar"), __publicField(_s, "defaultProps", {
71344
71335
  className: "",
71345
71336
  style: {}
71346
- }), _q);
71337
+ }), _s);
71347
71338
  const isDivider = /* @__PURE__ */ __name((item) => item.divider !== void 0, "isDivider");
71348
71339
  function getAllMenuTextsAndHandlers(menu, enhancers, context, path2 = []) {
71349
71340
  if (!menu)
@@ -71491,7 +71482,7 @@ function HotkeysDialog(props) {
71491
71482
  );
71492
71483
  }
71493
71484
  __name(HotkeysDialog, "HotkeysDialog");
71494
- let FillWindow$1 = (_r = class extends React__default$1.Component {
71485
+ let FillWindow$1 = (_t = class extends React__default$1.Component {
71495
71486
  constructor(props) {
71496
71487
  super(props);
71497
71488
  rerenderOnWindowResize(this);
@@ -71539,7 +71530,7 @@ let FillWindow$1 = (_r = class extends React__default$1.Component {
71539
71530
  return ReactDOM$1.createPortal(inner2, window.document.body);
71540
71531
  return inner2;
71541
71532
  }
71542
- }, __name(_r, "FillWindow"), _r);
71533
+ }, __name(_t, "FillWindow"), _t);
71543
71534
  var relativeTime$1 = { exports: {} };
71544
71535
  (function(module2, exports2) {
71545
71536
  !function(r2, e2) {
@@ -71587,16 +71578,6 @@ var relativeTime$1 = { exports: {} };
71587
71578
  var relativeTimeExports = relativeTime$1.exports;
71588
71579
  const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
71589
71580
  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
71581
  const ptIconWrapper = /* @__PURE__ */ __name((path2, viewboxDefault = 24, rest) => {
71601
71582
  return /* @__PURE__ */ React__default$1.createElement("span", { className: "bp3-icon" }, /* @__PURE__ */ React__default$1.createElement(
71602
71583
  "svg",
@@ -78910,123 +78891,167 @@ function getAminoAcidFromSequenceTriplet(sequenceString) {
78910
78891
  return proteinAlphabet[letter.toUpperCase()];
78911
78892
  }
78912
78893
  __name(getAminoAcidFromSequenceTriplet, "getAminoAcidFromSequenceTriplet");
78913
- function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78894
+ function getNextTriplet(index2, sequenceString, exonRange) {
78895
+ let triplet = "";
78896
+ let internalIndex;
78897
+ const codonPositions = [];
78898
+ const isBaseInExon = /* @__PURE__ */ __name((baseIndex) => exonRange.some(
78899
+ (r2) => isPositionWithinRange(baseIndex, r2, sequenceString.length, true, false)
78900
+ ), "isBaseInExon");
78901
+ for (internalIndex = index2; internalIndex < sequenceString.length; internalIndex++) {
78902
+ if (triplet.length === 3) {
78903
+ break;
78904
+ }
78905
+ if (isBaseInExon(internalIndex)) {
78906
+ triplet += sequenceString[internalIndex];
78907
+ codonPositions.push(internalIndex);
78908
+ }
78909
+ }
78910
+ return { triplet, basesRead: internalIndex - index2, codonPositions };
78911
+ }
78912
+ __name(getNextTriplet, "getNextTriplet");
78913
+ function getTranslatedSequenceProperties(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78914
78914
  const originalSequenceStringLength = isProteinSequence ? originalSequenceString.length * 3 : originalSequenceString.length;
78915
78915
  let sequenceString = originalSequenceString;
78916
- let startOffset = 0;
78916
+ const translationRange = { start: 0, end: originalSequenceStringLength - 1 };
78917
78917
  if (optionalSubrangeRange) {
78918
78918
  sequenceString = getSequenceWithinRange(
78919
78919
  optionalSubrangeRange,
78920
78920
  originalSequenceString
78921
78921
  );
78922
- startOffset = optionalSubrangeRange.start;
78922
+ translationRange.start = optionalSubrangeRange.start;
78923
+ translationRange.end = optionalSubrangeRange.end;
78923
78924
  }
78924
78925
  const sequenceStringLength = isProteinSequence ? sequenceString.length * 3 : sequenceString.length;
78925
- const aminoAcidDataForEachBaseOfDNA = [];
78926
- let codonRange;
78927
- let revCompGapLength = 0;
78928
- let aminoAcidIndex = 0;
78929
- if (!forward) {
78930
- aminoAcidIndex = Math.floor((sequenceStringLength - 1) / 3);
78931
- revCompGapLength = sequenceStringLength % 3;
78932
- codonRange = translateRange(
78933
- {
78934
- start: 0,
78935
- end: revCompGapLength - 1
78936
- },
78937
- startOffset,
78926
+ if (!isProteinSequence && !forward) {
78927
+ sequenceString = getReverseComplementSequenceString(sequenceString);
78928
+ }
78929
+ const absoluteExonRange = !isProteinSequence && optionalSubrangeRange && optionalSubrangeRange.locations ? optionalSubrangeRange.locations : [translationRange];
78930
+ const exonRange = absoluteExonRange.map((range2) => {
78931
+ let outputRange = translateRange(
78932
+ range2,
78933
+ -translationRange.start,
78938
78934
  originalSequenceStringLength
78939
78935
  );
78940
- if (revCompGapLength > 0) {
78941
- for (let i = 0; i < revCompGapLength; i++) {
78942
- aminoAcidDataForEachBaseOfDNA.push({
78943
- aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
78944
- //fake xxx triplet returns the ambiguous X amino acid
78945
- positionInCodon: revCompGapLength - i - 1,
78946
- aminoAcidIndex,
78947
- sequenceIndex: codonRange.start + i,
78948
- codonRange,
78949
- fullCodon: false
78950
- });
78951
- }
78952
- aminoAcidIndex--;
78936
+ if (!forward) {
78937
+ outputRange = flipRelativeRange(
78938
+ outputRange,
78939
+ { start: 0, end: sequenceStringLength - 1 },
78940
+ sequenceStringLength
78941
+ );
78953
78942
  }
78943
+ return outputRange;
78944
+ });
78945
+ return {
78946
+ sequenceString,
78947
+ translationRange,
78948
+ sequenceStringLength,
78949
+ originalSequenceStringLength,
78950
+ exonRange
78951
+ };
78952
+ }
78953
+ __name(getTranslatedSequenceProperties, "getTranslatedSequenceProperties");
78954
+ function positionInCdsToPositionInMainSequence(index2, forward, translationRange, mainSequenceLength) {
78955
+ let outputRange = translateRange(
78956
+ { start: index2, end: index2 },
78957
+ translationRange.start,
78958
+ mainSequenceLength
78959
+ );
78960
+ if (!forward) {
78961
+ outputRange = flipRelativeRange(
78962
+ outputRange,
78963
+ translationRange,
78964
+ mainSequenceLength
78965
+ );
78954
78966
  }
78955
- for (let index2 = 2 + revCompGapLength; index2 < sequenceStringLength; index2 += 3) {
78967
+ return outputRange.start;
78968
+ }
78969
+ __name(positionInCdsToPositionInMainSequence, "positionInCdsToPositionInMainSequence");
78970
+ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78971
+ const {
78972
+ sequenceString,
78973
+ translationRange,
78974
+ sequenceStringLength,
78975
+ originalSequenceStringLength,
78976
+ exonRange
78977
+ } = getTranslatedSequenceProperties(
78978
+ originalSequenceString,
78979
+ forward,
78980
+ optionalSubrangeRange,
78981
+ isProteinSequence
78982
+ );
78983
+ const aminoAcidDataForEachBaseOfDNA = [];
78984
+ for (let index2 = 0; index2 < sequenceStringLength; index2 += 3) {
78956
78985
  let aminoAcid;
78986
+ const aminoAcidIndex = index2 / 3;
78987
+ let codonPositionsInCDS;
78988
+ let basesRead;
78957
78989
  if (isProteinSequence) {
78958
- aminoAcid = proteinAlphabet[sequenceString[(index2 - 2) / 3].toUpperCase()];
78990
+ codonPositionsInCDS = [0, 1, 2].map((i) => index2 + i);
78991
+ basesRead = 3;
78992
+ aminoAcid = proteinAlphabet[sequenceString[index2 / 3].toUpperCase()];
78959
78993
  } else {
78960
- let triplet = sequenceString.slice(index2 - 2, index2 + 1);
78961
- if (!forward) {
78962
- triplet = getReverseComplementSequenceString(triplet);
78963
- }
78964
- aminoAcid = getAminoAcidFromSequenceTriplet(triplet);
78965
- }
78966
- codonRange = translateRange(
78967
- {
78968
- start: index2 - 2,
78969
- end: index2
78970
- },
78971
- startOffset,
78972
- originalSequenceStringLength
78994
+ const {
78995
+ triplet,
78996
+ basesRead: _basesRead,
78997
+ codonPositions
78998
+ } = getNextTriplet(index2, sequenceString, exonRange);
78999
+ basesRead = _basesRead;
79000
+ codonPositionsInCDS = codonPositions;
79001
+ aminoAcid = triplet.length === 3 ? getAminoAcidFromSequenceTriplet(triplet) : getAminoAcidFromSequenceTriplet("xxx");
79002
+ }
79003
+ const absoluteCodonPositions = codonPositionsInCDS.map(
79004
+ (i) => positionInCdsToPositionInMainSequence(
79005
+ i,
79006
+ forward,
79007
+ translationRange,
79008
+ originalSequenceStringLength
79009
+ )
78973
79010
  );
78974
- aminoAcidDataForEachBaseOfDNA.push({
78975
- aminoAcid,
78976
- //gap amino acid
78977
- positionInCodon: forward ? 0 : 2,
78978
- aminoAcidIndex,
78979
- sequenceIndex: codonRange.start,
78980
- codonRange,
78981
- fullCodon: true
78982
- });
78983
- aminoAcidDataForEachBaseOfDNA.push({
78984
- aminoAcid,
78985
- //gap amino acid
78986
- positionInCodon: 1,
78987
- aminoAcidIndex,
78988
- sequenceIndex: codonRange.start + 1,
78989
- codonRange,
78990
- fullCodon: true
78991
- });
78992
- aminoAcidDataForEachBaseOfDNA.push({
78993
- aminoAcid,
78994
- //gap amino acid
78995
- positionInCodon: forward ? 2 : 0,
78996
- aminoAcidIndex,
78997
- sequenceIndex: codonRange.start + 2,
78998
- codonRange,
78999
- fullCodon: true
79000
- });
79001
- if (forward) {
79002
- aminoAcidIndex++;
79003
- } else {
79004
- aminoAcidIndex--;
79011
+ const codonRange = forward ? {
79012
+ start: absoluteCodonPositions[0],
79013
+ end: absoluteCodonPositions[codonPositionsInCDS.length - 1]
79014
+ } : {
79015
+ start: absoluteCodonPositions[codonPositionsInCDS.length - 1],
79016
+ end: absoluteCodonPositions[0]
79017
+ };
79018
+ let positionInCodon = 0;
79019
+ for (let i = 0; i < basesRead; i++) {
79020
+ const posInCds = i + index2;
79021
+ if (codonPositionsInCDS.includes(posInCds)) {
79022
+ aminoAcidDataForEachBaseOfDNA.push({
79023
+ aminoAcid,
79024
+ positionInCodon,
79025
+ aminoAcidIndex,
79026
+ sequenceIndex: absoluteCodonPositions[i],
79027
+ codonRange,
79028
+ fullCodon: codonPositionsInCDS.length === 3
79029
+ });
79030
+ positionInCodon++;
79031
+ } else {
79032
+ aminoAcidDataForEachBaseOfDNA.push({
79033
+ aminoAcid: null,
79034
+ positionInCodon: null,
79035
+ aminoAcidIndex: null,
79036
+ sequenceIndex: positionInCdsToPositionInMainSequence(
79037
+ posInCds,
79038
+ forward,
79039
+ translationRange,
79040
+ originalSequenceStringLength
79041
+ ),
79042
+ codonRange: null,
79043
+ fullCodon: null
79044
+ });
79045
+ }
79005
79046
  }
79006
- }
79007
- const lengthOfEndBpsNotCoveredByAminoAcids = sequenceStringLength - aminoAcidDataForEachBaseOfDNA.length;
79008
- codonRange = translateRange(
79009
- {
79010
- start: sequenceStringLength - lengthOfEndBpsNotCoveredByAminoAcids,
79011
- end: sequenceStringLength - 1
79012
- },
79013
- startOffset,
79014
- originalSequenceStringLength
79015
- );
79016
- for (let j = 0; j < lengthOfEndBpsNotCoveredByAminoAcids; j++) {
79017
- aminoAcidDataForEachBaseOfDNA.push({
79018
- aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
79019
- //fake xxx triplet returns the gap amino acid
79020
- positionInCodon: j,
79021
- aminoAcidIndex,
79022
- sequenceIndex: codonRange.start + j,
79023
- fullCodon: false,
79024
- codonRange
79025
- });
79047
+ index2 += basesRead - codonPositionsInCDS.length;
79026
79048
  }
79027
79049
  if (sequenceStringLength !== aminoAcidDataForEachBaseOfDNA.length) {
79028
79050
  throw new Error("something went wrong!");
79029
79051
  }
79052
+ if (!forward) {
79053
+ aminoAcidDataForEachBaseOfDNA.reverse();
79054
+ }
79030
79055
  return aminoAcidDataForEachBaseOfDNA;
79031
79056
  }
79032
79057
  __name(getAminoAcidDataForEachBaseOfDna, "getAminoAcidDataForEachBaseOfDna");
@@ -90426,7 +90451,7 @@ const util$1 = util$4;
90426
90451
  const xmlNode = xmlNode$1;
90427
90452
  const readDocType = DocTypeReader;
90428
90453
  const toNumber = strnum;
90429
- let OrderedObjParser$1 = (_s = class {
90454
+ let OrderedObjParser$1 = (_u = class {
90430
90455
  constructor(options) {
90431
90456
  this.options = options;
90432
90457
  this.currentNode = null;
@@ -90465,7 +90490,7 @@ let OrderedObjParser$1 = (_s = class {
90465
90490
  this.saveTextToParentTag = saveTextToParentTag;
90466
90491
  this.addChild = addChild;
90467
90492
  }
90468
- }, __name(_s, "OrderedObjParser"), _s);
90493
+ }, __name(_u, "OrderedObjParser"), _u);
90469
90494
  function addExternalEntities(externalEntities) {
90470
90495
  const entKeys = Object.keys(externalEntities);
90471
90496
  for (let i = 0; i < entKeys.length; i++) {
@@ -91021,7 +91046,7 @@ const { buildOptions } = OptionsBuilder;
91021
91046
  const OrderedObjParser = OrderedObjParser_1;
91022
91047
  const { prettify } = node2json;
91023
91048
  const validator$1 = validator$2;
91024
- let XMLParser$1 = (_t = class {
91049
+ let XMLParser$1 = (_v = class {
91025
91050
  constructor(options) {
91026
91051
  this.externalEntities = {};
91027
91052
  this.options = buildOptions(options);
@@ -91071,7 +91096,7 @@ let XMLParser$1 = (_t = class {
91071
91096
  this.externalEntities[key] = value;
91072
91097
  }
91073
91098
  }
91074
- }, __name(_t, "XMLParser"), _t);
91099
+ }, __name(_v, "XMLParser"), _v);
91075
91100
  var XMLParser_1 = XMLParser$1;
91076
91101
  const EOL = "\n";
91077
91102
  function toXml(jArray, options) {
@@ -118640,7 +118665,7 @@ function AASliver(props) {
118640
118665
  fill: color2 || "gray"
118641
118666
  }
118642
118667
  )),
118643
- !isFiller && /* @__PURE__ */ React__default$1.createElement(
118668
+ (!isFiller || isTruncatedEnd && isTruncatedStart) && /* @__PURE__ */ React__default$1.createElement(
118644
118669
  "text",
118645
118670
  {
118646
118671
  fontSize: 25,
@@ -118717,18 +118742,39 @@ const _Translation = class _Translation extends React__default$1.Component {
118717
118742
  subrangeStartRelativeToAnnotationStart,
118718
118743
  aminoAcids
118719
118744
  );
118745
+ let prevAaSliver;
118746
+ let nextAaSliver = aminoAcidsForSubrange[1];
118747
+ const lastIndex = aminoAcidsForSubrange.length - 1;
118720
118748
  const translationSVG = aminoAcidsForSubrange.map(
118721
118749
  function(aminoAcidSliver, index2) {
118722
- const isEndFiller = index2 === 0 && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
118723
- let isTruncatedEnd = index2 === 0 && aminoAcidSliver.positionInCodon === 1;
118724
- let isTruncatedStart = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === 1;
118750
+ if (aminoAcidSliver.positionInCodon === null) {
118751
+ prevAaSliver = aminoAcidSliver;
118752
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118753
+ return /* @__PURE__ */ React__default$1.createElement(
118754
+ "rect",
118755
+ {
118756
+ x: index2 * charWidth2,
118757
+ y: height2 / 2 - height2 / 16,
118758
+ width: charWidth2,
118759
+ height: height2 / 8,
118760
+ fill: "grey",
118761
+ stroke: "black",
118762
+ strokeWidth: 1
118763
+ }
118764
+ );
118765
+ }
118766
+ const isEndFiller = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
118767
+ const isStartFiller = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
118768
+ let isTruncatedEnd = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
118769
+ let isTruncatedStart = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
118725
118770
  if (!annotation.forward) {
118726
118771
  const holder = isTruncatedEnd;
118727
118772
  isTruncatedEnd = isTruncatedStart;
118728
118773
  isTruncatedStart = holder;
118729
118774
  }
118730
- const isStartFiller = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
118731
118775
  if (aminoAcidSliver.positionInCodon !== 1 && !isStartFiller && !isEndFiller) {
118776
+ prevAaSliver = aminoAcidSliver;
118777
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118732
118778
  return null;
118733
118779
  }
118734
118780
  const { gapsInside, gapsBefore } = getGaps2(aminoAcidSliver.codonRange);
@@ -118745,10 +118791,12 @@ const _Translation = class _Translation extends React__default$1.Component {
118745
118791
  } else {
118746
118792
  color2 = aminoAcid.color;
118747
118793
  }
118794
+ prevAaSliver = aminoAcidSliver;
118795
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118748
118796
  return /* @__PURE__ */ React__default$1.createElement(
118749
118797
  AASliver$1,
118750
118798
  {
118751
- isFiller: isEndFiller || isStartFiller,
118799
+ isFiller: isEndFiller || isStartFiller || isTruncatedEnd && isTruncatedStart,
118752
118800
  isTruncatedEnd,
118753
118801
  isTruncatedStart,
118754
118802
  onClick: function(event) {
@@ -118979,7 +119027,7 @@ const Labels$2 = onlyUpdateForKeys([
118979
119027
  "editorName"
118980
119028
  ])(Labels$1);
118981
119029
  const DrawLabel = withHover(
118982
- (_u = class extends React__default$1.Component {
119030
+ (_w = class extends React__default$1.Component {
118983
119031
  render() {
118984
119032
  const {
118985
119033
  hovered,
@@ -119083,7 +119131,7 @@ const DrawLabel = withHover(
119083
119131
  }
119084
119132
  ));
119085
119133
  }
119086
- }, __name(_u, "DrawLabelInner"), _u)
119134
+ }, __name(_w, "DrawLabelInner"), _w)
119087
119135
  );
119088
119136
  const labelClassNames = {
119089
119137
  cutsites: "veCutsiteLabel",
@@ -120981,7 +121029,7 @@ function showFileDialog({ multiple = false, onSelect }) {
120981
121029
  }
120982
121030
  __name(showFileDialog, "showFileDialog");
120983
121031
  const name = "@teselagen/ove";
120984
- const version = "0.5.11";
121032
+ const version = "0.5.13";
120985
121033
  const main = "./src/index.js";
120986
121034
  const type = "module";
120987
121035
  const exports$1 = {
@@ -121061,8 +121109,8 @@ const useAnnotationLimits = /* @__PURE__ */ __name(() => useLocalStorageState("a
121061
121109
  cutsites: 100
121062
121110
  }
121063
121111
  }), "useAnnotationLimits");
121064
- function LimitAnnotations(_v) {
121065
- var _w = _v, { type: type2 } = _w, rest = __objRest(_w, ["type"]);
121112
+ function LimitAnnotations(_x) {
121113
+ var _y = _x, { type: type2 } = _y, rest = __objRest(_y, ["type"]);
121066
121114
  const [limits = {}, setLimits] = useAnnotationLimits();
121067
121115
  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
121116
  MenuItem,
@@ -127221,7 +127269,7 @@ const commonConfigResolver = {
127221
127269
  };
127222
127270
  const DEFAULT_AXIS_THRESHOLD = 0;
127223
127271
  const coordinatesConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
127224
- axis(_v, _k, {
127272
+ axis(_v2, _k, {
127225
127273
  axis
127226
127274
  }) {
127227
127275
  this.lockDirection = axis === "lock";
@@ -127295,7 +127343,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
127295
127343
  pen: 8
127296
127344
  };
127297
127345
  _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
127298
- device(_v, _k, {
127346
+ device(_v2, _k, {
127299
127347
  pointer: {
127300
127348
  touch = false,
127301
127349
  lock = false,
@@ -127321,7 +127369,7 @@ _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
127321
127369
  return void 0;
127322
127370
  return value ? value : preventScroll !== void 0 ? "y" : void 0;
127323
127371
  },
127324
- pointerCapture(_v, _k, {
127372
+ pointerCapture(_v2, _k, {
127325
127373
  pointer: {
127326
127374
  capture = true,
127327
127375
  buttons = 1,
@@ -127652,7 +127700,7 @@ const _PinchEngine = class _PinchEngine extends Engine {
127652
127700
  __name(_PinchEngine, "PinchEngine");
127653
127701
  let PinchEngine = _PinchEngine;
127654
127702
  const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
127655
- device(_v, _k, {
127703
+ device(_v2, _k, {
127656
127704
  shared: shared2,
127657
127705
  pointer: {
127658
127706
  touch = false
@@ -127670,7 +127718,7 @@ const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigRe
127670
127718
  return "touch";
127671
127719
  }
127672
127720
  },
127673
- bounds(_v, _k, {
127721
+ bounds(_v2, _k, {
127674
127722
  scaleBounds = {},
127675
127723
  angleBounds = {}
127676
127724
  }) {
@@ -128969,7 +129017,7 @@ const _Minimap = class _Minimap extends React__default$1.Component {
128969
129017
  __name(_Minimap, "Minimap");
128970
129018
  let Minimap = _Minimap;
128971
129019
  const YellowScrollHandle = view(
128972
- (_x = class extends React__default$1.Component {
129020
+ (_z = class extends React__default$1.Component {
128973
129021
  render() {
128974
129022
  const {
128975
129023
  scrollHandleWidth,
@@ -129124,7 +129172,7 @@ const YellowScrollHandle = view(
129124
129172
  )
129125
129173
  );
129126
129174
  }
129127
- }, __name(_x, "YellowScrollHandleInner"), _x)
129175
+ }, __name(_z, "YellowScrollHandleInner"), _z)
129128
129176
  );
129129
129177
  function getTrimmedRangesToDisplay({ trimmedRange, seqLen }) {
129130
129178
  if (!trimmedRange)
@@ -129497,14 +129545,14 @@ function getRangeAnglesSpecial() {
129497
129545
  }, rest);
129498
129546
  }
129499
129547
  __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
129500
- function PositionAnnotationOnCircle(_y) {
129501
- var _z = _y, {
129548
+ function PositionAnnotationOnCircle(_A) {
129549
+ var _B = _A, {
129502
129550
  children,
129503
129551
  height: height2 = 0,
129504
129552
  sAngle = 0,
129505
129553
  eAngle = 0,
129506
129554
  forward = true
129507
- } = _z, rest = __objRest(_z, [
129555
+ } = _B, rest = __objRest(_B, [
129508
129556
  "children",
129509
129557
  "height",
129510
129558
  "sAngle",
@@ -134023,7 +134071,7 @@ const SelectDialog = compose$1(
134023
134071
  }),
134024
134072
  tgFormValues("from", "to")
134025
134073
  )(
134026
- (_A = class extends React__default$1.Component {
134074
+ (_C = class extends React__default$1.Component {
134027
134075
  constructor() {
134028
134076
  super(...arguments);
134029
134077
  __publicField(this, "updateTempHighlight", /* @__PURE__ */ __name(({ isStart, isEnd } = {}) => (val2) => {
@@ -134134,7 +134182,7 @@ const SelectDialog = compose$1(
134134
134182
  ))
134135
134183
  );
134136
134184
  }
134137
- }, __name(_A, "SelectDialog"), _A)
134185
+ }, __name(_C, "SelectDialog"), _C)
134138
134186
  );
134139
134187
  const normalizeToInt = /* @__PURE__ */ __name((val2) => {
134140
134188
  const int2 = Math.round(val2);
@@ -137589,8 +137637,8 @@ function getTrackFromEvent(event, allTracks) {
137589
137637
  return track2;
137590
137638
  }
137591
137639
  __name(getTrackFromEvent, "getTrackFromEvent");
137592
- const PerformantSelectionLayer = view((_B) => {
137593
- var _C = _B, { easyStore: easyStore2 } = _C, rest = __objRest(_C, ["easyStore"]);
137640
+ const PerformantSelectionLayer = view((_D) => {
137641
+ var _E = _D, { easyStore: easyStore2 } = _E, rest = __objRest(_E, ["easyStore"]);
137594
137642
  const seqLen = rest.sequenceLength - 1;
137595
137643
  return /* @__PURE__ */ React__default$1.createElement(
137596
137644
  SelectionLayer$3,
@@ -139430,8 +139478,8 @@ const AlignmentView$1 = compose(
139430
139478
  })
139431
139479
  )
139432
139480
  )(AlignmentView);
139433
- const PerformantCaret = view((_D) => {
139434
- var _E = _D, { easyStore: easyStore2 } = _E, rest = __objRest(_E, ["easyStore"]);
139481
+ const PerformantCaret = view((_F) => {
139482
+ var _G = _F, { easyStore: easyStore2 } = _G, rest = __objRest(_G, ["easyStore"]);
139435
139483
  return /* @__PURE__ */ React__default$1.createElement(Caret$2, __spreadValues({ caretPosition: easyStore2.caretPosition }, rest));
139436
139484
  });
139437
139485
  function cleanTracks(alignmentTracks) {
@@ -141696,14 +141744,14 @@ const cutsiteTool = connectToEditor(
141696
141744
  }, toolbarItemProps))
141697
141745
  );
141698
141746
  });
141699
- function CutsiteToolDropDown(_F) {
141700
- var _G = _F, {
141747
+ function CutsiteToolDropDown(_H) {
141748
+ var _I = _H, {
141701
141749
  editorName,
141702
141750
  toggleDropdown,
141703
141751
  annotationVisibilityShow: annotationVisibilityShow2,
141704
141752
  withDigestTool,
141705
141753
  createNewDigest: createNewDigest2
141706
- } = _G, rest = __objRest(_G, [
141754
+ } = _I, rest = __objRest(_I, [
141707
141755
  "editorName",
141708
141756
  "toggleDropdown",
141709
141757
  "annotationVisibilityShow",
@@ -141831,7 +141879,7 @@ const orfTool = connectToEditor(
141831
141879
  );
141832
141880
  });
141833
141881
  const OrfToolDropdown = withEditorProps(
141834
- (_H = class extends React__default$1.Component {
141882
+ (_J = class extends React__default$1.Component {
141835
141883
  constructor(props) {
141836
141884
  super(props);
141837
141885
  this.commands = getCommands(this);
@@ -141857,7 +141905,7 @@ const OrfToolDropdown = withEditorProps(
141857
141905
  }
141858
141906
  ));
141859
141907
  }
141860
- }, __name(_H, "OrfDropdown"), _H)
141908
+ }, __name(_J, "OrfDropdown"), _J)
141861
141909
  );
141862
141910
  const opts = [
141863
141911
  { label: "DNA", value: "DNA" },
@@ -147256,8 +147304,8 @@ function StandaloneVersionHistoryView(props) {
147256
147304
  return /* @__PURE__ */ React__default$1.createElement(Provider, { store }, /* @__PURE__ */ React__default$1.createElement(VersionHistoryView$1, __spreadValues({}, __spreadValues({}, props))));
147257
147305
  }
147258
147306
  __name(StandaloneVersionHistoryView, "StandaloneVersionHistoryView");
147259
- function createVectorEditor(_node, _I = {}) {
147260
- var _J = _I, { editorName = "StandaloneEditor" } = _J, rest = __objRest(_J, ["editorName"]);
147307
+ function createVectorEditor(_node, _K = {}) {
147308
+ var _L = _K, { editorName = "StandaloneEditor" } = _L, rest = __objRest(_L, ["editorName"]);
147261
147309
  if (!store) {
147262
147310
  store = makeStore();
147263
147311
  }
@@ -147290,8 +147338,8 @@ function createVectorEditor(_node, _I = {}) {
147290
147338
  return editor;
147291
147339
  }
147292
147340
  __name(createVectorEditor, "createVectorEditor");
147293
- function createVersionHistoryView(node2, _K = {}) {
147294
- var _L = _K, { editorName = "StandaloneVersionHistoryView" } = _L, rest = __objRest(_L, ["editorName"]);
147341
+ function createVersionHistoryView(node2, _M = {}) {
147342
+ var _N = _M, { editorName = "StandaloneVersionHistoryView" } = _N, rest = __objRest(_N, ["editorName"]);
147295
147343
  if (!store) {
147296
147344
  store = makeStore();
147297
147345
  }