@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.cjs.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
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
61
61
  const core$5 = require("@blueprintjs/core");
62
62
  const React$2 = require("react");
@@ -14373,25 +14373,16 @@ var toString$5 = {}.toString;
14373
14373
  var _cof = /* @__PURE__ */ __name(function(it) {
14374
14374
  return toString$5.call(it).slice(8, -1);
14375
14375
  }, "_cof");
14376
- var _iobject;
14377
- var hasRequired_iobject;
14378
- function require_iobject() {
14379
- if (hasRequired_iobject)
14380
- return _iobject;
14381
- hasRequired_iobject = 1;
14382
- var cof2 = _cof;
14383
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
14384
- return cof2(it) == "String" ? it.split("") : Object(it);
14385
- };
14386
- return _iobject;
14387
- }
14388
- __name(require_iobject, "require_iobject");
14376
+ var cof$2 = _cof;
14377
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
14378
+ return cof$2(it) == "String" ? it.split("") : Object(it);
14379
+ };
14389
14380
  var _defined = /* @__PURE__ */ __name(function(it) {
14390
14381
  if (it == void 0)
14391
14382
  throw TypeError("Can't call method on " + it);
14392
14383
  return it;
14393
14384
  }, "_defined");
14394
- var IObject = require_iobject();
14385
+ var IObject = _iobject;
14395
14386
  var defined$2 = _defined;
14396
14387
  var _toIobject = /* @__PURE__ */ __name(function(it) {
14397
14388
  return IObject(defined$2(it));
@@ -14480,10 +14471,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
14480
14471
  return result;
14481
14472
  }, "_objectKeysInternal");
14482
14473
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
14483
- var $keys$3 = _objectKeysInternal;
14474
+ var $keys$2 = _objectKeysInternal;
14484
14475
  var enumBugKeys$1 = _enumBugKeys;
14485
14476
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
14486
- return $keys$3(O2, enumBugKeys$1);
14477
+ return $keys$2(O2, enumBugKeys$1);
14487
14478
  }, "keys");
14488
14479
  var _objectGops = {};
14489
14480
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -14512,7 +14503,7 @@ function require_objectAssign() {
14512
14503
  var gOPS2 = _objectGops;
14513
14504
  var pIE2 = require_objectPie();
14514
14505
  var toObject2 = _toObject;
14515
- var IObject2 = require_iobject();
14506
+ var IObject2 = _iobject;
14516
14507
  var $assign = Object.assign;
14517
14508
  _objectAssign = !$assign || _fails(function() {
14518
14509
  var A2 = {};
@@ -14916,11 +14907,11 @@ var ArrayProto = Array.prototype;
14916
14907
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
14917
14908
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
14918
14909
  }, "_isArrayIter");
14919
- var $defineProperty$4 = require_objectDp();
14910
+ var $defineProperty$3 = require_objectDp();
14920
14911
  var createDesc$2 = _propertyDesc;
14921
14912
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
14922
14913
  if (index2 in object3)
14923
- $defineProperty$4.f(object3, index2, createDesc$2(0, value));
14914
+ $defineProperty$3.f(object3, index2, createDesc$2(0, value));
14924
14915
  else
14925
14916
  object3[index2] = value;
14926
14917
  }, "_createProperty");
@@ -15168,13 +15159,21 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
15168
15159
  }, "isArray");
15169
15160
  var _objectGopnExt = {};
15170
15161
  var _objectGopn = {};
15171
- var $keys$2 = _objectKeysInternal;
15172
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
15173
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
15174
- return $keys$2(O2, hiddenKeys);
15175
- }, "getOwnPropertyNames");
15162
+ var hasRequired_objectGopn;
15163
+ function require_objectGopn() {
15164
+ if (hasRequired_objectGopn)
15165
+ return _objectGopn;
15166
+ hasRequired_objectGopn = 1;
15167
+ var $keys2 = _objectKeysInternal;
15168
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
15169
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
15170
+ return $keys2(O2, hiddenKeys);
15171
+ }, "getOwnPropertyNames");
15172
+ return _objectGopn;
15173
+ }
15174
+ __name(require_objectGopn, "require_objectGopn");
15176
15175
  var toIObject$2 = _toIobject;
15177
- var gOPN$1 = _objectGopn.f;
15176
+ var gOPN$1 = require_objectGopn().f;
15178
15177
  var toString$4 = {}.toString;
15179
15178
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
15180
15179
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -15184,7 +15183,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
15184
15183
  return windowNames.slice();
15185
15184
  }
15186
15185
  }, "getWindowNames");
15187
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
15186
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
15188
15187
  return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
15189
15188
  }, "getOwnPropertyNames");
15190
15189
  var _objectGopd = {};
@@ -15274,9 +15273,9 @@ var isSymbol$7 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
15274
15273
  } : function(it) {
15275
15274
  return it instanceof $Symbol;
15276
15275
  };
15277
- var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
15276
+ var $defineProperty$2 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
15278
15277
  if (it === ObjectProto)
15279
- $defineProperty$3(OPSymbols, key, D2);
15278
+ $defineProperty$2(OPSymbols, key, D2);
15280
15279
  anObject(it);
15281
15280
  key = toPrimitive(key, true);
15282
15281
  anObject(D2);
@@ -15301,7 +15300,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
15301
15300
  var l2 = keys5.length;
15302
15301
  var key;
15303
15302
  while (l2 > i)
15304
- $defineProperty$3(it, key = keys5[i++], P2[key]);
15303
+ $defineProperty$2(it, key = keys5[i++], P2[key]);
15305
15304
  return it;
15306
15305
  }, "defineProperties");
15307
15306
  var $create = /* @__PURE__ */ __name(function create2(it, P2) {
@@ -15323,7 +15322,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
15323
15322
  D2.enumerable = true;
15324
15323
  return D2;
15325
15324
  }, "getOwnPropertyDescriptor");
15326
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
15325
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
15327
15326
  var names2 = gOPN(toIObject(it));
15328
15327
  var result = [];
15329
15328
  var i = 0;
@@ -15366,8 +15365,8 @@ if (!USE_NATIVE) {
15366
15365
  return this._k;
15367
15366
  }, "toString"));
15368
15367
  $GOPD.f = $getOwnPropertyDescriptor;
15369
- $DP.f = $defineProperty$3;
15370
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
15368
+ $DP.f = $defineProperty$2;
15369
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
15371
15370
  require_objectPie().f = $propertyIsEnumerable;
15372
15371
  $GOPS.f = $getOwnPropertySymbols;
15373
15372
  if (DESCRIPTORS && !_library) {
@@ -15409,7 +15408,7 @@ $export$2($export$2.S + $export$2.F * !USE_NATIVE, "Object", {
15409
15408
  // 19.1.2.2 Object.create(O [, Properties])
15410
15409
  create: $create,
15411
15410
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
15412
- defineProperty: $defineProperty$3,
15411
+ defineProperty: $defineProperty$2,
15413
15412
  // 19.1.2.3 Object.defineProperties(O, Properties)
15414
15413
  defineProperties: $defineProperties,
15415
15414
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
@@ -36547,84 +36546,80 @@ const symbols = {
36547
36546
  down: "↓"
36548
36547
  };
36549
36548
  symbols.mod = symbols[isMac ? "meta" : "ctrl"];
36550
- const _InfoHelper = class _InfoHelper extends React$2.Component {
36551
- render() {
36552
- const _a2 = this.props, {
36553
- className,
36554
- content: content2,
36555
- children,
36556
- icon = "info-sign",
36557
- isPopover,
36558
- isButton,
36559
- size,
36560
- isInline,
36561
- clickable,
36562
- color: color2,
36563
- noMarginTop,
36564
- popoverProps = {},
36565
- disabled,
36566
- displayToSide,
36567
- style: style2
36568
- } = _a2, rest = __objRest(_a2, [
36569
- "className",
36570
- "content",
36571
- "children",
36572
- "icon",
36573
- "isPopover",
36574
- "isButton",
36575
- "size",
36576
- "isInline",
36577
- "clickable",
36578
- "color",
36579
- "noMarginTop",
36580
- "popoverProps",
36581
- "disabled",
36582
- "displayToSide",
36583
- "style"
36584
- ]);
36585
- const IconToUse = isButton ? core$5.Button : core$5.Icon;
36586
- const iconProps = {
36587
- icon,
36588
- color: color2,
36589
- disabled
36590
- };
36591
- if (!isButton)
36592
- iconProps.iconSize = size;
36593
- const IconInner = /* @__PURE__ */ React$2.createElement(IconToUse, __spreadValues(__spreadValues({}, iconProps), rest));
36594
- let toReturn;
36595
- const toolTipOrPopoverProps = __spreadValues({
36596
- disabled: disabled || !isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips,
36597
- popoverClassName: "tg-info-helper-popover bp3-tooltip",
36598
- content: content2 || children,
36599
- modifiers: popoverOverflowModifiers
36600
- }, popoverProps);
36601
- if (displayToSide) {
36602
- toReturn = /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, IconInner, /* @__PURE__ */ React$2.createElement("span", { style: { paddingLeft: 5, fontStyle: "italic" } }, content2 || children));
36603
- } else if (isPopover) {
36604
- toReturn = /* @__PURE__ */ React$2.createElement(core$5.Popover, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36605
- } else {
36606
- toReturn = /* @__PURE__ */ React$2.createElement(core$5.Tooltip, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36607
- }
36608
- const El = isInline ? "span" : "div";
36609
- return /* @__PURE__ */ React$2.createElement(
36610
- El,
36611
- {
36612
- style: __spreadValues(__spreadValues(__spreadValues({}, clickable ? { cursor: "pointer" } : {}), isInline ? {} : { display: "flex" }), style2),
36613
- className: classNames(
36614
- "info-helper-wrapper",
36615
- {
36616
- "info-helper-wrapper-noMarginTop": noMarginTop,
36617
- "info-helper-clickable": isPopover
36618
- },
36619
- className
36620
- )
36621
- },
36622
- toReturn
36623
- );
36549
+ const InfoHelper = /* @__PURE__ */ __name((_c) => {
36550
+ var _d = _c, {
36551
+ className,
36552
+ content: content2,
36553
+ children,
36554
+ icon = "info-sign",
36555
+ isPopover,
36556
+ isButton,
36557
+ size,
36558
+ isInline,
36559
+ clickable,
36560
+ color: color2,
36561
+ noMarginTop,
36562
+ popoverProps = {},
36563
+ disabled,
36564
+ displayToSide,
36565
+ style: style2
36566
+ } = _d, rest = __objRest(_d, [
36567
+ "className",
36568
+ "content",
36569
+ "children",
36570
+ "icon",
36571
+ "isPopover",
36572
+ "isButton",
36573
+ "size",
36574
+ "isInline",
36575
+ "clickable",
36576
+ "color",
36577
+ "noMarginTop",
36578
+ "popoverProps",
36579
+ "disabled",
36580
+ "displayToSide",
36581
+ "style"
36582
+ ]);
36583
+ const IconToUse = isButton ? core$5.Button : core$5.Icon;
36584
+ const iconProps = {
36585
+ icon,
36586
+ color: color2,
36587
+ disabled
36588
+ };
36589
+ if (!isButton)
36590
+ iconProps.iconSize = size;
36591
+ const IconInner = /* @__PURE__ */ React$2.createElement(IconToUse, __spreadValues(__spreadValues({}, iconProps), rest));
36592
+ let toReturn;
36593
+ const toolTipOrPopoverProps = __spreadValues({
36594
+ disabled: disabled || !isPopover && window.Cypress && !window.Cypress.allowInfoHelperTooltips,
36595
+ popoverClassName: "tg-info-helper-popover bp3-tooltip",
36596
+ content: content2 || children,
36597
+ modifiers: popoverOverflowModifiers
36598
+ }, popoverProps);
36599
+ if (displayToSide) {
36600
+ toReturn = /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, IconInner, /* @__PURE__ */ React$2.createElement("span", { style: { paddingLeft: 5, fontStyle: "italic" } }, content2 || children));
36601
+ } else if (isPopover) {
36602
+ toReturn = /* @__PURE__ */ React$2.createElement(core$5.Popover, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36603
+ } else {
36604
+ toReturn = /* @__PURE__ */ React$2.createElement(core$5.Tooltip, __spreadProps(__spreadValues({}, toolTipOrPopoverProps), { target: IconInner }));
36624
36605
  }
36625
- };
36626
- __name(_InfoHelper, "InfoHelper");
36627
- let InfoHelper = _InfoHelper;
36606
+ const El = isInline ? "span" : "div";
36607
+ return /* @__PURE__ */ React$2.createElement(
36608
+ El,
36609
+ {
36610
+ style: __spreadValues(__spreadValues(__spreadValues({}, clickable ? { cursor: "pointer" } : {}), isInline ? {} : { display: "flex" }), style2),
36611
+ className: classNames(
36612
+ "info-helper-wrapper",
36613
+ {
36614
+ "info-helper-wrapper-noMarginTop": noMarginTop,
36615
+ "info-helper-clickable": isPopover
36616
+ },
36617
+ className
36618
+ )
36619
+ },
36620
+ toReturn
36621
+ );
36622
+ }, "InfoHelper");
36628
36623
  const getIdOrCodeOrIndex = /* @__PURE__ */ __name((record, rowIndex) => {
36629
36624
  if (record.id || record.id === 0) {
36630
36625
  return record.id;
@@ -37298,16 +37293,25 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
37298
37293
  return value;
37299
37294
  }, "GetIntrinsic");
37300
37295
  var callBind$3 = { exports: {} };
37301
- var GetIntrinsic$4 = getIntrinsic;
37302
- var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
37303
- if ($defineProperty$2) {
37304
- try {
37305
- $defineProperty$2({}, "a", { value: 1 });
37306
- } catch (e2) {
37307
- $defineProperty$2 = false;
37296
+ var esDefineProperty;
37297
+ var hasRequiredEsDefineProperty;
37298
+ function requireEsDefineProperty() {
37299
+ if (hasRequiredEsDefineProperty)
37300
+ return esDefineProperty;
37301
+ hasRequiredEsDefineProperty = 1;
37302
+ var GetIntrinsic3 = getIntrinsic;
37303
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
37304
+ if ($defineProperty2) {
37305
+ try {
37306
+ $defineProperty2({}, "a", { value: 1 });
37307
+ } catch (e2) {
37308
+ $defineProperty2 = false;
37309
+ }
37308
37310
  }
37311
+ esDefineProperty = $defineProperty2;
37312
+ return esDefineProperty;
37309
37313
  }
37310
- var esDefineProperty = $defineProperty$2;
37314
+ __name(requireEsDefineProperty, "requireEsDefineProperty");
37311
37315
  var GetIntrinsic$3 = getIntrinsic;
37312
37316
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
37313
37317
  if ($gOPD$1) {
@@ -37318,7 +37322,7 @@ if ($gOPD$1) {
37318
37322
  }
37319
37323
  }
37320
37324
  var gopd$1 = $gOPD$1;
37321
- var $defineProperty$1 = esDefineProperty;
37325
+ var $defineProperty$1 = requireEsDefineProperty();
37322
37326
  var $SyntaxError = syntax;
37323
37327
  var $TypeError$4 = type$1;
37324
37328
  var gopd = gopd$1;
@@ -37359,7 +37363,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
37359
37363
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
37360
37364
  }
37361
37365
  }, "defineDataProperty");
37362
- var $defineProperty = esDefineProperty;
37366
+ var $defineProperty = requireEsDefineProperty();
37363
37367
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
37364
37368
  return !!$defineProperty;
37365
37369
  }, "hasPropertyDescriptors");
@@ -37428,7 +37432,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
37428
37432
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
37429
37433
  var $call = GetIntrinsic3("%Function.prototype.call%");
37430
37434
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
37431
- var $defineProperty2 = esDefineProperty;
37435
+ var $defineProperty2 = requireEsDefineProperty();
37432
37436
  var $max = GetIntrinsic3("%Math.max%");
37433
37437
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
37434
37438
  if (typeof originalFunction !== "function") {
@@ -48414,8 +48418,8 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
48414
48418
  });
48415
48419
  return /* @__PURE__ */ React$2.createElement(TgSelect$1, __spreadValues({}, propsToUse));
48416
48420
  }, "renderReactSelect");
48417
- const BPSelect = /* @__PURE__ */ __name((_c) => {
48418
- var _d = _c, { value, onChange } = _d, rest = __objRest(_d, ["value", "onChange"]);
48421
+ const BPSelect = /* @__PURE__ */ __name((_e) => {
48422
+ var _f = _e, { value, onChange } = _f, rest = __objRest(_f, ["value", "onChange"]);
48419
48423
  return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
48420
48424
  }, "BPSelect");
48421
48425
  const renderSelect = /* @__PURE__ */ __name((props) => {
@@ -48550,12 +48554,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((props) => {
48550
48554
  })
48551
48555
  );
48552
48556
  }, "renderBlueprintNumericInput");
48553
- const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_e) => {
48554
- var _f = _e, {
48557
+ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_g) => {
48558
+ var _h = _g, {
48555
48559
  input,
48556
48560
  options,
48557
48561
  onFieldSubmit
48558
- } = _f, rest = __objRest(_f, [
48562
+ } = _h, rest = __objRest(_h, [
48559
48563
  "input",
48560
48564
  "options",
48561
48565
  "onFieldSubmit"
@@ -49895,7 +49899,7 @@ var KNOWN_STATICS = {
49895
49899
  arity: true
49896
49900
  };
49897
49901
  var defineProperty$3 = Object.defineProperty;
49898
- var getOwnPropertyNames4 = Object.getOwnPropertyNames;
49902
+ var getOwnPropertyNames3 = Object.getOwnPropertyNames;
49899
49903
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
49900
49904
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
49901
49905
  var getPrototypeOf = Object.getPrototypeOf;
@@ -49908,7 +49912,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
49908
49912
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
49909
49913
  }
49910
49914
  }
49911
- var keys5 = getOwnPropertyNames4(sourceComponent);
49915
+ var keys5 = getOwnPropertyNames3(sourceComponent);
49912
49916
  if (getOwnPropertySymbols3) {
49913
49917
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
49914
49918
  }
@@ -51799,8 +51803,8 @@ const _DataTable = class _DataTable extends React$2.Component {
51799
51803
  };
51800
51804
  }),
51801
51805
  branch(({ immovable }) => "true" !== immovable, sortableElement)
51802
- )((_g) => {
51803
- var _h = _g, { toggleSort, className, children } = _h, rest = __objRest(_h, ["toggleSort", "className", "children"]);
51806
+ )((_i) => {
51807
+ var _j = _i, { toggleSort, className, children } = _j, rest = __objRest(_j, ["toggleSort", "className", "children"]);
51804
51808
  return /* @__PURE__ */ React$2.createElement(
51805
51809
  "div",
51806
51810
  __spreadValues({
@@ -54059,13 +54063,13 @@ function getCellInfo({
54059
54063
  };
54060
54064
  }
54061
54065
  __name(getCellInfo, "getCellInfo");
54062
- function ColumnFilterMenu(_i) {
54063
- var _j = _i, {
54066
+ function ColumnFilterMenu(_k) {
54067
+ var _l = _k, {
54064
54068
  FilterMenu,
54065
54069
  filterActiveForColumn,
54066
54070
  compact: compact3,
54067
54071
  extraCompact
54068
- } = _j, rest = __objRest(_j, [
54072
+ } = _l, rest = __objRest(_l, [
54069
54073
  "FilterMenu",
54070
54074
  "filterActiveForColumn",
54071
54075
  "compact",
@@ -56922,8 +56926,8 @@ function maybeStripIdFromEntities(ents, validateAgainstSchema) {
56922
56926
  return toRet == null ? void 0 : toRet.map((e2) => omit$3(e2, ["_isClean"]));
56923
56927
  }
56924
56928
  __name(maybeStripIdFromEntities, "maybeStripIdFromEntities");
56925
- const useDialog = /* @__PURE__ */ __name((_k) => {
56926
- var _l = _k, { ModalComponent } = _l, rest = __objRest(_l, ["ModalComponent"]);
56929
+ const useDialog = /* @__PURE__ */ __name((_m) => {
56930
+ var _n = _m, { ModalComponent } = _n, rest = __objRest(_n, ["ModalComponent"]);
56927
56931
  const [isOpen, setOpen] = React$2.useState(false);
56928
56932
  const [additionalProps, setAdditionalProps] = React$2.useState(false);
56929
56933
  const comp = /* @__PURE__ */ React$2.createElement(
@@ -67452,68 +67456,55 @@ function BounceLoader({ style: style2, className }) {
67452
67456
  );
67453
67457
  }
67454
67458
  __name(BounceLoader, "BounceLoader");
67455
- const _Loading = class _Loading extends React$2.Component {
67456
- constructor() {
67457
- super(...arguments);
67458
- __publicField(this, "state", {
67459
- longerThan200MS: false
67460
- });
67461
- }
67462
- componentDidMount() {
67463
- this.timeoutId = setTimeout(() => {
67464
- this.setState({
67465
- longerThan200MS: true
67466
- });
67459
+ const Loading = /* @__PURE__ */ __name(({
67460
+ loading,
67461
+ style: userStyle,
67462
+ className,
67463
+ containerStyle = {},
67464
+ children,
67465
+ displayInstantly = false,
67466
+ bounce = false,
67467
+ withTimeout,
67468
+ inDialog,
67469
+ centeredInPage
67470
+ }) => {
67471
+ const [longerThan200MS, setLongerThan200MS] = React$2.useState(false);
67472
+ React$2.useEffect(() => {
67473
+ const timeoutId = setTimeout(() => {
67474
+ setLongerThan200MS(true);
67467
67475
  }, 200);
67468
- }
67469
- componentWillUnmount() {
67470
- clearTimeout(this.timeoutId);
67471
- }
67472
- render() {
67473
- const {
67474
- loading,
67475
- style: userStyle,
67476
- className,
67477
- containerStyle = {},
67478
- children,
67479
- displayInstantly = false,
67480
- bounce = false,
67481
- withTimeout,
67482
- inDialog,
67483
- centeredInPage
67484
- } = this.props;
67485
- const { longerThan200MS } = this.state;
67486
- const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
67487
- const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
67488
- if (loading || !children) {
67489
- if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
67490
- return /* @__PURE__ */ React$2.createElement("div", null);
67491
- }
67492
- return /* @__PURE__ */ React$2.createElement(
67493
- "div",
67494
- {
67495
- className: "tg-loader-container tg-flex justify-center align-center",
67496
- style: __spreadValues(__spreadValues({
67497
- width: "100%"
67498
- }, containerStyle), centeredInPage && {
67499
- width: void 0,
67500
- zIndex: 20,
67501
- height: 10,
67502
- position: "fixed",
67503
- top: "50%",
67504
- left: "50%",
67505
- transform: "translate(-50%, 0)"
67506
- })
67507
- },
67508
- /* @__PURE__ */ React$2.createElement(LoaderComp, { style: style2, className })
67509
- );
67510
- } else {
67511
- return children || null;
67476
+ return () => {
67477
+ clearTimeout(timeoutId);
67478
+ };
67479
+ }, []);
67480
+ const style2 = __spreadValues(__spreadValues({}, userStyle), inDialog && { minHeight: 120 });
67481
+ const LoaderComp = bounce || inDialog ? BounceLoader : DNALoader;
67482
+ if (loading || !children) {
67483
+ if (!displayInstantly && !longerThan200MS && (!bounce && !inDialog || withTimeout)) {
67484
+ return /* @__PURE__ */ React$2.createElement("div", null);
67512
67485
  }
67486
+ return /* @__PURE__ */ React$2.createElement(
67487
+ "div",
67488
+ {
67489
+ className: "tg-loader-container tg-flex justify-center align-center",
67490
+ style: __spreadValues(__spreadValues({
67491
+ width: "100%"
67492
+ }, containerStyle), centeredInPage && {
67493
+ width: void 0,
67494
+ zIndex: 20,
67495
+ height: 10,
67496
+ position: "fixed",
67497
+ top: "50%",
67498
+ left: "50%",
67499
+ transform: "translate(-50%, 0)"
67500
+ })
67501
+ },
67502
+ /* @__PURE__ */ React$2.createElement(LoaderComp, { style: style2, className })
67503
+ );
67504
+ } else {
67505
+ return children || null;
67513
67506
  }
67514
- };
67515
- __name(_Loading, "Loading");
67516
- let Loading = _Loading;
67507
+ }, "Loading");
67517
67508
  function AdvancedOptions({
67518
67509
  children,
67519
67510
  content: content2,
@@ -67546,14 +67537,14 @@ function AdvancedOptions({
67546
67537
  ), isOpen && /* @__PURE__ */ React$2.createElement("div", { style: { marginTop: 10 } }, content2 || children));
67547
67538
  }
67548
67539
  __name(AdvancedOptions, "AdvancedOptions");
67549
- function DropdownButton(_m) {
67550
- var _n = _m, {
67540
+ function DropdownButton(_o) {
67541
+ var _p = _o, {
67551
67542
  disabled,
67552
67543
  menu,
67553
67544
  noRightIcon,
67554
67545
  popoverProps,
67555
67546
  className
67556
- } = _n, rest = __objRest(_n, [
67547
+ } = _p, rest = __objRest(_p, [
67557
67548
  "disabled",
67558
67549
  "menu",
67559
67550
  "noRightIcon",
@@ -70912,14 +70903,14 @@ const EnhancedMenuItem = compose(
70912
70903
  }
70913
70904
  }),
70914
70905
  branch(({ navTo }) => navTo, withRouter$1)
70915
- )(function(_o) {
70916
- var _p = _o, {
70906
+ )(function(_q) {
70907
+ var _r = _q, {
70917
70908
  navTo,
70918
70909
  context,
70919
70910
  staticContext,
70920
70911
  didMount,
70921
70912
  willUnmount
70922
- } = _p, props = __objRest(_p, [
70913
+ } = _r, props = __objRest(_r, [
70923
70914
  "navTo",
70924
70915
  "context",
70925
70916
  "staticContext",
@@ -71113,7 +71104,7 @@ function doesSearchValMatchText(searchVal, justText) {
71113
71104
  );
71114
71105
  }
71115
71106
  __name(doesSearchValMatchText, "doesSearchValMatchText");
71116
- let MenuBar$1 = (_q = class extends React$2.Component {
71107
+ let MenuBar$1 = (_s = class extends React$2.Component {
71117
71108
  constructor(props) {
71118
71109
  super(props);
71119
71110
  __publicField(this, "state", {
@@ -71358,10 +71349,10 @@ let MenuBar$1 = (_q = class extends React$2.Component {
71358
71349
  );
71359
71350
  }), extraContent);
71360
71351
  }
71361
- }, __name(_q, "MenuBar"), __publicField(_q, "defaultProps", {
71352
+ }, __name(_s, "MenuBar"), __publicField(_s, "defaultProps", {
71362
71353
  className: "",
71363
71354
  style: {}
71364
- }), _q);
71355
+ }), _s);
71365
71356
  const isDivider = /* @__PURE__ */ __name((item) => item.divider !== void 0, "isDivider");
71366
71357
  function getAllMenuTextsAndHandlers(menu, enhancers, context, path2 = []) {
71367
71358
  if (!menu)
@@ -71509,7 +71500,7 @@ function HotkeysDialog(props) {
71509
71500
  );
71510
71501
  }
71511
71502
  __name(HotkeysDialog, "HotkeysDialog");
71512
- let FillWindow$1 = (_r = class extends React$2.Component {
71503
+ let FillWindow$1 = (_t = class extends React$2.Component {
71513
71504
  constructor(props) {
71514
71505
  super(props);
71515
71506
  rerenderOnWindowResize(this);
@@ -71557,7 +71548,7 @@ let FillWindow$1 = (_r = class extends React$2.Component {
71557
71548
  return ReactDOM$1.createPortal(inner2, window.document.body);
71558
71549
  return inner2;
71559
71550
  }
71560
- }, __name(_r, "FillWindow"), _r);
71551
+ }, __name(_t, "FillWindow"), _t);
71561
71552
  var relativeTime$1 = { exports: {} };
71562
71553
  (function(module2, exports2) {
71563
71554
  !function(r2, e2) {
@@ -71605,16 +71596,6 @@ var relativeTime$1 = { exports: {} };
71605
71596
  var relativeTimeExports = relativeTime$1.exports;
71606
71597
  const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
71607
71598
  dayjs.extend(relativeTime);
71608
- const _Timeline = class _Timeline extends React$2.Component {
71609
- render() {
71610
- return /* @__PURE__ */ React$2.createElement("div", { className: "tg-timeline" }, this.props.children.length > 1 && /* @__PURE__ */ React$2.createElement("div", { className: "tg-timeline-line" }), this.props.children);
71611
- }
71612
- };
71613
- __name(_Timeline, "Timeline");
71614
- __publicField(_Timeline, "propTypes", {
71615
- children: PropTypes.arrayOf(PropTypes.element)
71616
- });
71617
- let Timeline = _Timeline;
71618
71599
  const ptIconWrapper = /* @__PURE__ */ __name((path2, viewboxDefault = 24, rest) => {
71619
71600
  return /* @__PURE__ */ React$2.createElement("span", { className: "bp3-icon" }, /* @__PURE__ */ React$2.createElement(
71620
71601
  "svg",
@@ -78928,123 +78909,167 @@ function getAminoAcidFromSequenceTriplet(sequenceString) {
78928
78909
  return proteinAlphabet[letter.toUpperCase()];
78929
78910
  }
78930
78911
  __name(getAminoAcidFromSequenceTriplet, "getAminoAcidFromSequenceTriplet");
78931
- function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78912
+ function getNextTriplet(index2, sequenceString, exonRange) {
78913
+ let triplet = "";
78914
+ let internalIndex;
78915
+ const codonPositions = [];
78916
+ const isBaseInExon = /* @__PURE__ */ __name((baseIndex) => exonRange.some(
78917
+ (r2) => isPositionWithinRange(baseIndex, r2, sequenceString.length, true, false)
78918
+ ), "isBaseInExon");
78919
+ for (internalIndex = index2; internalIndex < sequenceString.length; internalIndex++) {
78920
+ if (triplet.length === 3) {
78921
+ break;
78922
+ }
78923
+ if (isBaseInExon(internalIndex)) {
78924
+ triplet += sequenceString[internalIndex];
78925
+ codonPositions.push(internalIndex);
78926
+ }
78927
+ }
78928
+ return { triplet, basesRead: internalIndex - index2, codonPositions };
78929
+ }
78930
+ __name(getNextTriplet, "getNextTriplet");
78931
+ function getTranslatedSequenceProperties(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78932
78932
  const originalSequenceStringLength = isProteinSequence ? originalSequenceString.length * 3 : originalSequenceString.length;
78933
78933
  let sequenceString = originalSequenceString;
78934
- let startOffset = 0;
78934
+ const translationRange = { start: 0, end: originalSequenceStringLength - 1 };
78935
78935
  if (optionalSubrangeRange) {
78936
78936
  sequenceString = getSequenceWithinRange(
78937
78937
  optionalSubrangeRange,
78938
78938
  originalSequenceString
78939
78939
  );
78940
- startOffset = optionalSubrangeRange.start;
78940
+ translationRange.start = optionalSubrangeRange.start;
78941
+ translationRange.end = optionalSubrangeRange.end;
78941
78942
  }
78942
78943
  const sequenceStringLength = isProteinSequence ? sequenceString.length * 3 : sequenceString.length;
78943
- const aminoAcidDataForEachBaseOfDNA = [];
78944
- let codonRange;
78945
- let revCompGapLength = 0;
78946
- let aminoAcidIndex = 0;
78947
- if (!forward) {
78948
- aminoAcidIndex = Math.floor((sequenceStringLength - 1) / 3);
78949
- revCompGapLength = sequenceStringLength % 3;
78950
- codonRange = translateRange(
78951
- {
78952
- start: 0,
78953
- end: revCompGapLength - 1
78954
- },
78955
- startOffset,
78944
+ if (!isProteinSequence && !forward) {
78945
+ sequenceString = getReverseComplementSequenceString(sequenceString);
78946
+ }
78947
+ const absoluteExonRange = !isProteinSequence && optionalSubrangeRange && optionalSubrangeRange.locations ? optionalSubrangeRange.locations : [translationRange];
78948
+ const exonRange = absoluteExonRange.map((range2) => {
78949
+ let outputRange = translateRange(
78950
+ range2,
78951
+ -translationRange.start,
78956
78952
  originalSequenceStringLength
78957
78953
  );
78958
- if (revCompGapLength > 0) {
78959
- for (let i = 0; i < revCompGapLength; i++) {
78960
- aminoAcidDataForEachBaseOfDNA.push({
78961
- aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
78962
- //fake xxx triplet returns the ambiguous X amino acid
78963
- positionInCodon: revCompGapLength - i - 1,
78964
- aminoAcidIndex,
78965
- sequenceIndex: codonRange.start + i,
78966
- codonRange,
78967
- fullCodon: false
78968
- });
78969
- }
78970
- aminoAcidIndex--;
78954
+ if (!forward) {
78955
+ outputRange = flipRelativeRange(
78956
+ outputRange,
78957
+ { start: 0, end: sequenceStringLength - 1 },
78958
+ sequenceStringLength
78959
+ );
78971
78960
  }
78961
+ return outputRange;
78962
+ });
78963
+ return {
78964
+ sequenceString,
78965
+ translationRange,
78966
+ sequenceStringLength,
78967
+ originalSequenceStringLength,
78968
+ exonRange
78969
+ };
78970
+ }
78971
+ __name(getTranslatedSequenceProperties, "getTranslatedSequenceProperties");
78972
+ function positionInCdsToPositionInMainSequence(index2, forward, translationRange, mainSequenceLength) {
78973
+ let outputRange = translateRange(
78974
+ { start: index2, end: index2 },
78975
+ translationRange.start,
78976
+ mainSequenceLength
78977
+ );
78978
+ if (!forward) {
78979
+ outputRange = flipRelativeRange(
78980
+ outputRange,
78981
+ translationRange,
78982
+ mainSequenceLength
78983
+ );
78972
78984
  }
78973
- for (let index2 = 2 + revCompGapLength; index2 < sequenceStringLength; index2 += 3) {
78985
+ return outputRange.start;
78986
+ }
78987
+ __name(positionInCdsToPositionInMainSequence, "positionInCdsToPositionInMainSequence");
78988
+ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
78989
+ const {
78990
+ sequenceString,
78991
+ translationRange,
78992
+ sequenceStringLength,
78993
+ originalSequenceStringLength,
78994
+ exonRange
78995
+ } = getTranslatedSequenceProperties(
78996
+ originalSequenceString,
78997
+ forward,
78998
+ optionalSubrangeRange,
78999
+ isProteinSequence
79000
+ );
79001
+ const aminoAcidDataForEachBaseOfDNA = [];
79002
+ for (let index2 = 0; index2 < sequenceStringLength; index2 += 3) {
78974
79003
  let aminoAcid;
79004
+ const aminoAcidIndex = index2 / 3;
79005
+ let codonPositionsInCDS;
79006
+ let basesRead;
78975
79007
  if (isProteinSequence) {
78976
- aminoAcid = proteinAlphabet[sequenceString[(index2 - 2) / 3].toUpperCase()];
79008
+ codonPositionsInCDS = [0, 1, 2].map((i) => index2 + i);
79009
+ basesRead = 3;
79010
+ aminoAcid = proteinAlphabet[sequenceString[index2 / 3].toUpperCase()];
78977
79011
  } else {
78978
- let triplet = sequenceString.slice(index2 - 2, index2 + 1);
78979
- if (!forward) {
78980
- triplet = getReverseComplementSequenceString(triplet);
78981
- }
78982
- aminoAcid = getAminoAcidFromSequenceTriplet(triplet);
78983
- }
78984
- codonRange = translateRange(
78985
- {
78986
- start: index2 - 2,
78987
- end: index2
78988
- },
78989
- startOffset,
78990
- originalSequenceStringLength
79012
+ const {
79013
+ triplet,
79014
+ basesRead: _basesRead,
79015
+ codonPositions
79016
+ } = getNextTriplet(index2, sequenceString, exonRange);
79017
+ basesRead = _basesRead;
79018
+ codonPositionsInCDS = codonPositions;
79019
+ aminoAcid = triplet.length === 3 ? getAminoAcidFromSequenceTriplet(triplet) : getAminoAcidFromSequenceTriplet("xxx");
79020
+ }
79021
+ const absoluteCodonPositions = codonPositionsInCDS.map(
79022
+ (i) => positionInCdsToPositionInMainSequence(
79023
+ i,
79024
+ forward,
79025
+ translationRange,
79026
+ originalSequenceStringLength
79027
+ )
78991
79028
  );
78992
- aminoAcidDataForEachBaseOfDNA.push({
78993
- aminoAcid,
78994
- //gap amino acid
78995
- positionInCodon: forward ? 0 : 2,
78996
- aminoAcidIndex,
78997
- sequenceIndex: codonRange.start,
78998
- codonRange,
78999
- fullCodon: true
79000
- });
79001
- aminoAcidDataForEachBaseOfDNA.push({
79002
- aminoAcid,
79003
- //gap amino acid
79004
- positionInCodon: 1,
79005
- aminoAcidIndex,
79006
- sequenceIndex: codonRange.start + 1,
79007
- codonRange,
79008
- fullCodon: true
79009
- });
79010
- aminoAcidDataForEachBaseOfDNA.push({
79011
- aminoAcid,
79012
- //gap amino acid
79013
- positionInCodon: forward ? 2 : 0,
79014
- aminoAcidIndex,
79015
- sequenceIndex: codonRange.start + 2,
79016
- codonRange,
79017
- fullCodon: true
79018
- });
79019
- if (forward) {
79020
- aminoAcidIndex++;
79021
- } else {
79022
- aminoAcidIndex--;
79029
+ const codonRange = forward ? {
79030
+ start: absoluteCodonPositions[0],
79031
+ end: absoluteCodonPositions[codonPositionsInCDS.length - 1]
79032
+ } : {
79033
+ start: absoluteCodonPositions[codonPositionsInCDS.length - 1],
79034
+ end: absoluteCodonPositions[0]
79035
+ };
79036
+ let positionInCodon = 0;
79037
+ for (let i = 0; i < basesRead; i++) {
79038
+ const posInCds = i + index2;
79039
+ if (codonPositionsInCDS.includes(posInCds)) {
79040
+ aminoAcidDataForEachBaseOfDNA.push({
79041
+ aminoAcid,
79042
+ positionInCodon,
79043
+ aminoAcidIndex,
79044
+ sequenceIndex: absoluteCodonPositions[i],
79045
+ codonRange,
79046
+ fullCodon: codonPositionsInCDS.length === 3
79047
+ });
79048
+ positionInCodon++;
79049
+ } else {
79050
+ aminoAcidDataForEachBaseOfDNA.push({
79051
+ aminoAcid: null,
79052
+ positionInCodon: null,
79053
+ aminoAcidIndex: null,
79054
+ sequenceIndex: positionInCdsToPositionInMainSequence(
79055
+ posInCds,
79056
+ forward,
79057
+ translationRange,
79058
+ originalSequenceStringLength
79059
+ ),
79060
+ codonRange: null,
79061
+ fullCodon: null
79062
+ });
79063
+ }
79023
79064
  }
79024
- }
79025
- const lengthOfEndBpsNotCoveredByAminoAcids = sequenceStringLength - aminoAcidDataForEachBaseOfDNA.length;
79026
- codonRange = translateRange(
79027
- {
79028
- start: sequenceStringLength - lengthOfEndBpsNotCoveredByAminoAcids,
79029
- end: sequenceStringLength - 1
79030
- },
79031
- startOffset,
79032
- originalSequenceStringLength
79033
- );
79034
- for (let j = 0; j < lengthOfEndBpsNotCoveredByAminoAcids; j++) {
79035
- aminoAcidDataForEachBaseOfDNA.push({
79036
- aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
79037
- //fake xxx triplet returns the gap amino acid
79038
- positionInCodon: j,
79039
- aminoAcidIndex,
79040
- sequenceIndex: codonRange.start + j,
79041
- fullCodon: false,
79042
- codonRange
79043
- });
79065
+ index2 += basesRead - codonPositionsInCDS.length;
79044
79066
  }
79045
79067
  if (sequenceStringLength !== aminoAcidDataForEachBaseOfDNA.length) {
79046
79068
  throw new Error("something went wrong!");
79047
79069
  }
79070
+ if (!forward) {
79071
+ aminoAcidDataForEachBaseOfDNA.reverse();
79072
+ }
79048
79073
  return aminoAcidDataForEachBaseOfDNA;
79049
79074
  }
79050
79075
  __name(getAminoAcidDataForEachBaseOfDna, "getAminoAcidDataForEachBaseOfDna");
@@ -90444,7 +90469,7 @@ const util$1 = util$4;
90444
90469
  const xmlNode = xmlNode$1;
90445
90470
  const readDocType = DocTypeReader;
90446
90471
  const toNumber = strnum;
90447
- let OrderedObjParser$1 = (_s = class {
90472
+ let OrderedObjParser$1 = (_u = class {
90448
90473
  constructor(options) {
90449
90474
  this.options = options;
90450
90475
  this.currentNode = null;
@@ -90483,7 +90508,7 @@ let OrderedObjParser$1 = (_s = class {
90483
90508
  this.saveTextToParentTag = saveTextToParentTag;
90484
90509
  this.addChild = addChild;
90485
90510
  }
90486
- }, __name(_s, "OrderedObjParser"), _s);
90511
+ }, __name(_u, "OrderedObjParser"), _u);
90487
90512
  function addExternalEntities(externalEntities) {
90488
90513
  const entKeys = Object.keys(externalEntities);
90489
90514
  for (let i = 0; i < entKeys.length; i++) {
@@ -91039,7 +91064,7 @@ const { buildOptions } = OptionsBuilder;
91039
91064
  const OrderedObjParser = OrderedObjParser_1;
91040
91065
  const { prettify } = node2json;
91041
91066
  const validator$1 = validator$2;
91042
- let XMLParser$1 = (_t = class {
91067
+ let XMLParser$1 = (_v = class {
91043
91068
  constructor(options) {
91044
91069
  this.externalEntities = {};
91045
91070
  this.options = buildOptions(options);
@@ -91089,7 +91114,7 @@ let XMLParser$1 = (_t = class {
91089
91114
  this.externalEntities[key] = value;
91090
91115
  }
91091
91116
  }
91092
- }, __name(_t, "XMLParser"), _t);
91117
+ }, __name(_v, "XMLParser"), _v);
91093
91118
  var XMLParser_1 = XMLParser$1;
91094
91119
  const EOL = "\n";
91095
91120
  function toXml(jArray, options) {
@@ -118658,7 +118683,7 @@ function AASliver(props) {
118658
118683
  fill: color2 || "gray"
118659
118684
  }
118660
118685
  )),
118661
- !isFiller && /* @__PURE__ */ React$2.createElement(
118686
+ (!isFiller || isTruncatedEnd && isTruncatedStart) && /* @__PURE__ */ React$2.createElement(
118662
118687
  "text",
118663
118688
  {
118664
118689
  fontSize: 25,
@@ -118735,18 +118760,39 @@ const _Translation = class _Translation extends React$2.Component {
118735
118760
  subrangeStartRelativeToAnnotationStart,
118736
118761
  aminoAcids
118737
118762
  );
118763
+ let prevAaSliver;
118764
+ let nextAaSliver = aminoAcidsForSubrange[1];
118765
+ const lastIndex = aminoAcidsForSubrange.length - 1;
118738
118766
  const translationSVG = aminoAcidsForSubrange.map(
118739
118767
  function(aminoAcidSliver, index2) {
118740
- const isEndFiller = index2 === 0 && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
118741
- let isTruncatedEnd = index2 === 0 && aminoAcidSliver.positionInCodon === 1;
118742
- let isTruncatedStart = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === 1;
118768
+ if (aminoAcidSliver.positionInCodon === null) {
118769
+ prevAaSliver = aminoAcidSliver;
118770
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118771
+ return /* @__PURE__ */ React$2.createElement(
118772
+ "rect",
118773
+ {
118774
+ x: index2 * charWidth2,
118775
+ y: height2 / 2 - height2 / 16,
118776
+ width: charWidth2,
118777
+ height: height2 / 8,
118778
+ fill: "grey",
118779
+ stroke: "black",
118780
+ strokeWidth: 1
118781
+ }
118782
+ );
118783
+ }
118784
+ const isEndFiller = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
118785
+ const isStartFiller = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
118786
+ let isTruncatedEnd = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
118787
+ let isTruncatedStart = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
118743
118788
  if (!annotation.forward) {
118744
118789
  const holder = isTruncatedEnd;
118745
118790
  isTruncatedEnd = isTruncatedStart;
118746
118791
  isTruncatedStart = holder;
118747
118792
  }
118748
- const isStartFiller = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
118749
118793
  if (aminoAcidSliver.positionInCodon !== 1 && !isStartFiller && !isEndFiller) {
118794
+ prevAaSliver = aminoAcidSliver;
118795
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118750
118796
  return null;
118751
118797
  }
118752
118798
  const { gapsInside, gapsBefore } = getGaps(aminoAcidSliver.codonRange);
@@ -118763,10 +118809,12 @@ const _Translation = class _Translation extends React$2.Component {
118763
118809
  } else {
118764
118810
  color2 = aminoAcid.color;
118765
118811
  }
118812
+ prevAaSliver = aminoAcidSliver;
118813
+ nextAaSliver = aminoAcidsForSubrange[index2 + 2];
118766
118814
  return /* @__PURE__ */ React$2.createElement(
118767
118815
  AASliver$1,
118768
118816
  {
118769
- isFiller: isEndFiller || isStartFiller,
118817
+ isFiller: isEndFiller || isStartFiller || isTruncatedEnd && isTruncatedStart,
118770
118818
  isTruncatedEnd,
118771
118819
  isTruncatedStart,
118772
118820
  onClick: function(event) {
@@ -118997,7 +119045,7 @@ const Labels$2 = onlyUpdateForKeys([
118997
119045
  "editorName"
118998
119046
  ])(Labels$1);
118999
119047
  const DrawLabel = withHover(
119000
- (_u = class extends React$2.Component {
119048
+ (_w = class extends React$2.Component {
119001
119049
  render() {
119002
119050
  const {
119003
119051
  hovered,
@@ -119101,7 +119149,7 @@ const DrawLabel = withHover(
119101
119149
  }
119102
119150
  ));
119103
119151
  }
119104
- }, __name(_u, "DrawLabelInner"), _u)
119152
+ }, __name(_w, "DrawLabelInner"), _w)
119105
119153
  );
119106
119154
  const labelClassNames = {
119107
119155
  cutsites: "veCutsiteLabel",
@@ -120999,7 +121047,7 @@ function showFileDialog({ multiple = false, onSelect }) {
120999
121047
  }
121000
121048
  __name(showFileDialog, "showFileDialog");
121001
121049
  const name = "@teselagen/ove";
121002
- const version = "0.5.11";
121050
+ const version = "0.5.13";
121003
121051
  const main = "./src/index.js";
121004
121052
  const type = "module";
121005
121053
  const exports$1 = {
@@ -121079,8 +121127,8 @@ const useAnnotationLimits = /* @__PURE__ */ __name(() => useLocalStorageState("a
121079
121127
  cutsites: 100
121080
121128
  }
121081
121129
  }), "useAnnotationLimits");
121082
- function LimitAnnotations(_v) {
121083
- var _w = _v, { type: type2 } = _w, rest = __objRest(_w, ["type"]);
121130
+ function LimitAnnotations(_x) {
121131
+ var _y = _x, { type: type2 } = _y, rest = __objRest(_y, ["type"]);
121084
121132
  const [limits = {}, setLimits] = useAnnotationLimits();
121085
121133
  return /* @__PURE__ */ React$2.createElement(core$5.MenuItem, __spreadValues({ icon: "blank", shouldDismissPopover: false }, rest), [50, 100, 200, 400].map((n2) => /* @__PURE__ */ React$2.createElement(
121086
121134
  core$5.MenuItem,
@@ -127239,7 +127287,7 @@ const commonConfigResolver = {
127239
127287
  };
127240
127288
  const DEFAULT_AXIS_THRESHOLD = 0;
127241
127289
  const coordinatesConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
127242
- axis(_v, _k, {
127290
+ axis(_v2, _k, {
127243
127291
  axis
127244
127292
  }) {
127245
127293
  this.lockDirection = axis === "lock";
@@ -127313,7 +127361,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
127313
127361
  pen: 8
127314
127362
  };
127315
127363
  _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
127316
- device(_v, _k, {
127364
+ device(_v2, _k, {
127317
127365
  pointer: {
127318
127366
  touch = false,
127319
127367
  lock = false,
@@ -127339,7 +127387,7 @@ _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
127339
127387
  return void 0;
127340
127388
  return value ? value : preventScroll !== void 0 ? "y" : void 0;
127341
127389
  },
127342
- pointerCapture(_v, _k, {
127390
+ pointerCapture(_v2, _k, {
127343
127391
  pointer: {
127344
127392
  capture = true,
127345
127393
  buttons = 1,
@@ -127670,7 +127718,7 @@ const _PinchEngine = class _PinchEngine extends Engine {
127670
127718
  __name(_PinchEngine, "PinchEngine");
127671
127719
  let PinchEngine = _PinchEngine;
127672
127720
  const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
127673
- device(_v, _k, {
127721
+ device(_v2, _k, {
127674
127722
  shared: shared2,
127675
127723
  pointer: {
127676
127724
  touch = false
@@ -127688,7 +127736,7 @@ const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigRe
127688
127736
  return "touch";
127689
127737
  }
127690
127738
  },
127691
- bounds(_v, _k, {
127739
+ bounds(_v2, _k, {
127692
127740
  scaleBounds = {},
127693
127741
  angleBounds = {}
127694
127742
  }) {
@@ -128987,7 +129035,7 @@ const _Minimap = class _Minimap extends React$2.Component {
128987
129035
  __name(_Minimap, "Minimap");
128988
129036
  let Minimap = _Minimap;
128989
129037
  const YellowScrollHandle = view(
128990
- (_x = class extends React$2.Component {
129038
+ (_z = class extends React$2.Component {
128991
129039
  render() {
128992
129040
  const {
128993
129041
  scrollHandleWidth,
@@ -129142,7 +129190,7 @@ const YellowScrollHandle = view(
129142
129190
  )
129143
129191
  );
129144
129192
  }
129145
- }, __name(_x, "YellowScrollHandleInner"), _x)
129193
+ }, __name(_z, "YellowScrollHandleInner"), _z)
129146
129194
  );
129147
129195
  function getTrimmedRangesToDisplay({ trimmedRange, seqLen }) {
129148
129196
  if (!trimmedRange)
@@ -129515,14 +129563,14 @@ function getRangeAnglesSpecial() {
129515
129563
  }, rest);
129516
129564
  }
129517
129565
  __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
129518
- function PositionAnnotationOnCircle(_y) {
129519
- var _z = _y, {
129566
+ function PositionAnnotationOnCircle(_A) {
129567
+ var _B = _A, {
129520
129568
  children,
129521
129569
  height: height2 = 0,
129522
129570
  sAngle = 0,
129523
129571
  eAngle = 0,
129524
129572
  forward = true
129525
- } = _z, rest = __objRest(_z, [
129573
+ } = _B, rest = __objRest(_B, [
129526
129574
  "children",
129527
129575
  "height",
129528
129576
  "sAngle",
@@ -134041,7 +134089,7 @@ const SelectDialog = redux.compose(
134041
134089
  }),
134042
134090
  tgFormValues("from", "to")
134043
134091
  )(
134044
- (_A = class extends React$2.Component {
134092
+ (_C = class extends React$2.Component {
134045
134093
  constructor() {
134046
134094
  super(...arguments);
134047
134095
  __publicField(this, "updateTempHighlight", /* @__PURE__ */ __name(({ isStart, isEnd } = {}) => (val2) => {
@@ -134152,7 +134200,7 @@ const SelectDialog = redux.compose(
134152
134200
  ))
134153
134201
  );
134154
134202
  }
134155
- }, __name(_A, "SelectDialog"), _A)
134203
+ }, __name(_C, "SelectDialog"), _C)
134156
134204
  );
134157
134205
  const normalizeToInt = /* @__PURE__ */ __name((val2) => {
134158
134206
  const int2 = Math.round(val2);
@@ -137607,8 +137655,8 @@ function getTrackFromEvent(event, allTracks) {
137607
137655
  return track2;
137608
137656
  }
137609
137657
  __name(getTrackFromEvent, "getTrackFromEvent");
137610
- const PerformantSelectionLayer = view((_B) => {
137611
- var _C = _B, { easyStore: easyStore2 } = _C, rest = __objRest(_C, ["easyStore"]);
137658
+ const PerformantSelectionLayer = view((_D) => {
137659
+ var _E = _D, { easyStore: easyStore2 } = _E, rest = __objRest(_E, ["easyStore"]);
137612
137660
  const seqLen = rest.sequenceLength - 1;
137613
137661
  return /* @__PURE__ */ React$2.createElement(
137614
137662
  SelectionLayer$3,
@@ -139448,8 +139496,8 @@ const AlignmentView$1 = compose(
139448
139496
  })
139449
139497
  )
139450
139498
  )(AlignmentView);
139451
- const PerformantCaret = view((_D) => {
139452
- var _E = _D, { easyStore: easyStore2 } = _E, rest = __objRest(_E, ["easyStore"]);
139499
+ const PerformantCaret = view((_F) => {
139500
+ var _G = _F, { easyStore: easyStore2 } = _G, rest = __objRest(_G, ["easyStore"]);
139453
139501
  return /* @__PURE__ */ React$2.createElement(Caret$2, __spreadValues({ caretPosition: easyStore2.caretPosition }, rest));
139454
139502
  });
139455
139503
  function cleanTracks(alignmentTracks) {
@@ -141714,14 +141762,14 @@ const cutsiteTool = connectToEditor(
141714
141762
  }, toolbarItemProps))
141715
141763
  );
141716
141764
  });
141717
- function CutsiteToolDropDown(_F) {
141718
- var _G = _F, {
141765
+ function CutsiteToolDropDown(_H) {
141766
+ var _I = _H, {
141719
141767
  editorName,
141720
141768
  toggleDropdown,
141721
141769
  annotationVisibilityShow: annotationVisibilityShow2,
141722
141770
  withDigestTool,
141723
141771
  createNewDigest: createNewDigest2
141724
- } = _G, rest = __objRest(_G, [
141772
+ } = _I, rest = __objRest(_I, [
141725
141773
  "editorName",
141726
141774
  "toggleDropdown",
141727
141775
  "annotationVisibilityShow",
@@ -141849,7 +141897,7 @@ const orfTool = connectToEditor(
141849
141897
  );
141850
141898
  });
141851
141899
  const OrfToolDropdown = withEditorProps(
141852
- (_H = class extends React$2.Component {
141900
+ (_J = class extends React$2.Component {
141853
141901
  constructor(props) {
141854
141902
  super(props);
141855
141903
  this.commands = getCommands(this);
@@ -141875,7 +141923,7 @@ const OrfToolDropdown = withEditorProps(
141875
141923
  }
141876
141924
  ));
141877
141925
  }
141878
- }, __name(_H, "OrfDropdown"), _H)
141926
+ }, __name(_J, "OrfDropdown"), _J)
141879
141927
  );
141880
141928
  const opts = [
141881
141929
  { label: "DNA", value: "DNA" },
@@ -147274,8 +147322,8 @@ function StandaloneVersionHistoryView(props) {
147274
147322
  return /* @__PURE__ */ React$2.createElement(reactRedux.Provider, { store }, /* @__PURE__ */ React$2.createElement(VersionHistoryView$1, __spreadValues({}, __spreadValues({}, props))));
147275
147323
  }
147276
147324
  __name(StandaloneVersionHistoryView, "StandaloneVersionHistoryView");
147277
- function createVectorEditor(_node, _I = {}) {
147278
- var _J = _I, { editorName = "StandaloneEditor" } = _J, rest = __objRest(_J, ["editorName"]);
147325
+ function createVectorEditor(_node, _K = {}) {
147326
+ var _L = _K, { editorName = "StandaloneEditor" } = _L, rest = __objRest(_L, ["editorName"]);
147279
147327
  if (!store) {
147280
147328
  store = makeStore();
147281
147329
  }
@@ -147308,8 +147356,8 @@ function createVectorEditor(_node, _I = {}) {
147308
147356
  return editor;
147309
147357
  }
147310
147358
  __name(createVectorEditor, "createVectorEditor");
147311
- function createVersionHistoryView(node2, _K = {}) {
147312
- var _L = _K, { editorName = "StandaloneVersionHistoryView" } = _L, rest = __objRest(_L, ["editorName"]);
147359
+ function createVersionHistoryView(node2, _M = {}) {
147360
+ var _N = _M, { editorName = "StandaloneVersionHistoryView" } = _N, rest = __objRest(_N, ["editorName"]);
147313
147361
  if (!store) {
147314
147362
  store = makeStore();
147315
147363
  }