@teselagen/ove 0.4.1 → 0.4.3
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 +556 -351
- package/index.es.js +557 -352
- package/index.umd.js +455 -222
- package/package.json +4 -4
- package/src/AlignmentView/Minimap.js +3 -8
- package/src/LinearView/index.js +11 -8
- package/src/LinearView/style.css +1 -1
- package/src/RowItem/Axis.js +1 -3
- package/src/RowItem/index.js +6 -6
- package/src/commands/index.js +8 -6
- package/src/style.css +4 -4
- package/src/withEditorInteractions/index.js +49 -47
- package/style.css +28 -5
package/index.es.js
CHANGED
|
@@ -59,13 +59,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
var _q, _r, _s, _t, _u, _x, _A, _H;
|
|
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
|
-
import React__default$1, { forwardRef, useImperativeHandle, Fragment, useMemo as useMemo$1, useRef, useReducer,
|
|
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";
|
|
63
63
|
import ReactDOM$1, { unstable_batchedUpdates, findDOMNode as findDOMNode$1, flushSync, unmountComponentAtNode, render as render$2 } from "react-dom";
|
|
64
64
|
import { FormName, formValueSelector, change, Field, reduxForm, SubmissionError, destroy as destroy$1, initialize, reducer as reducer$3, getFormValues, FieldArray } from "redux-form";
|
|
65
65
|
import { connect, useStore, Provider } from "react-redux";
|
|
66
66
|
import { getCreateNewItem, MultiSelect, Suggest } from "@blueprintjs/select";
|
|
67
|
+
import { compose as compose$1, combineReducers, createStore as createStore$2, applyMiddleware, bindActionCreators } from "redux";
|
|
67
68
|
import { DateRangeInput, DateInput } from "@blueprintjs/datetime";
|
|
68
|
-
import { combineReducers, compose as compose$1, createStore as createStore$2, applyMiddleware, bindActionCreators } from "redux";
|
|
69
69
|
const blueprint = "";
|
|
70
70
|
const blueprintDatetime = "";
|
|
71
71
|
const blueprintIcons = "";
|
|
@@ -2821,7 +2821,7 @@ var followCursor = {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
2823
|
__name(onMouseMove, "onMouseMove");
|
|
2824
|
-
function
|
|
2824
|
+
function create6() {
|
|
2825
2825
|
if (instance.props.followCursor) {
|
|
2826
2826
|
activeInstances.push({
|
|
2827
2827
|
instance,
|
|
@@ -2830,7 +2830,7 @@ var followCursor = {
|
|
|
2830
2830
|
addMouseCoordsListener(doc);
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
|
-
__name(
|
|
2833
|
+
__name(create6, "create");
|
|
2834
2834
|
function destroy2() {
|
|
2835
2835
|
activeInstances = activeInstances.filter(function(data) {
|
|
2836
2836
|
return data.instance !== instance;
|
|
@@ -2843,7 +2843,7 @@ var followCursor = {
|
|
|
2843
2843
|
}
|
|
2844
2844
|
__name(destroy2, "destroy");
|
|
2845
2845
|
return {
|
|
2846
|
-
onCreate:
|
|
2846
|
+
onCreate: create6,
|
|
2847
2847
|
onDestroy: destroy2,
|
|
2848
2848
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2849
2849
|
prevProps = instance.props;
|
|
@@ -2856,7 +2856,7 @@ var followCursor = {
|
|
|
2856
2856
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2857
2857
|
destroy2();
|
|
2858
2858
|
if (followCursor2) {
|
|
2859
|
-
|
|
2859
|
+
create6();
|
|
2860
2860
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2861
2861
|
addListener();
|
|
2862
2862
|
}
|
|
@@ -3023,7 +3023,7 @@ let clearMe;
|
|
|
3023
3023
|
inner2(dataTip, el, opts2);
|
|
3024
3024
|
break;
|
|
3025
3025
|
} else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
3026
|
-
!el.classList.contains("no-data-tip") && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3026
|
+
!el.classList.contains("no-data-tip") && !parentIncludesNoChildDataTip(el, 0) && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3027
3027
|
inner2(el.textContent, el, opts2);
|
|
3028
3028
|
break;
|
|
3029
3029
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
@@ -3036,6 +3036,28 @@ let clearMe;
|
|
|
3036
3036
|
}
|
|
3037
3037
|
});
|
|
3038
3038
|
})();
|
|
3039
|
+
function parentIncludesNoChildDataTip(el, count2) {
|
|
3040
|
+
if (count2 > 4)
|
|
3041
|
+
return false;
|
|
3042
|
+
if (!el)
|
|
3043
|
+
return false;
|
|
3044
|
+
if (el.getAttribute("data-no-child-data-tip"))
|
|
3045
|
+
return true;
|
|
3046
|
+
return parentIncludesNoChildDataTip(el.parentElement, count2 + 1);
|
|
3047
|
+
}
|
|
3048
|
+
__name(parentIncludesNoChildDataTip, "parentIncludesNoChildDataTip");
|
|
3049
|
+
const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
3050
|
+
const [dots, setDots] = useState("");
|
|
3051
|
+
useEffect(() => {
|
|
3052
|
+
const interval = setInterval(() => {
|
|
3053
|
+
setDots((dots2) => {
|
|
3054
|
+
return dots2.length === 3 ? "" : dots2 + ".";
|
|
3055
|
+
});
|
|
3056
|
+
}, 500);
|
|
3057
|
+
return () => clearInterval(interval);
|
|
3058
|
+
}, []);
|
|
3059
|
+
return /* @__PURE__ */ React__default$1.createElement("span", null, dots);
|
|
3060
|
+
}, "LoadingDots");
|
|
3039
3061
|
const AssignDefaultsModeContext = React__default$1.createContext({
|
|
3040
3062
|
inAssignDefaultsMode: false,
|
|
3041
3063
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -5497,10 +5519,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
5497
5519
|
/* istanbul ignore next */
|
|
5498
5520
|
Object.getOwnPropertyNames
|
|
5499
5521
|
);
|
|
5500
|
-
function toPrimitive$
|
|
5522
|
+
function toPrimitive$2(value) {
|
|
5501
5523
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5502
5524
|
}
|
|
5503
|
-
__name(toPrimitive$
|
|
5525
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
5504
5526
|
function hasProp(target, prop2) {
|
|
5505
5527
|
return objectPrototype$1.hasOwnProperty.call(target, prop2);
|
|
5506
5528
|
}
|
|
@@ -6397,7 +6419,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
6397
6419
|
return this.name_ + "[" + this.value_ + "]";
|
|
6398
6420
|
}, "toString");
|
|
6399
6421
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6400
|
-
return toPrimitive$
|
|
6422
|
+
return toPrimitive$2(this.get());
|
|
6401
6423
|
}, "valueOf");
|
|
6402
6424
|
_proto[_Symbol$toPrimitive] = function() {
|
|
6403
6425
|
return this.valueOf();
|
|
@@ -6582,7 +6604,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
6582
6604
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
6583
6605
|
}, "toString");
|
|
6584
6606
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
6585
|
-
return toPrimitive$
|
|
6607
|
+
return toPrimitive$2(this.get());
|
|
6586
6608
|
}, "valueOf");
|
|
6587
6609
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
6588
6610
|
return this.valueOf();
|
|
@@ -11216,7 +11238,7 @@ lodash.exports;
|
|
|
11216
11238
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11217
11239
|
);
|
|
11218
11240
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
11219
|
-
var
|
|
11241
|
+
var defineProperty5 = function() {
|
|
11220
11242
|
try {
|
|
11221
11243
|
var func = getNative2(Object2, "defineProperty");
|
|
11222
11244
|
func({}, "", {});
|
|
@@ -11656,8 +11678,8 @@ lodash.exports;
|
|
|
11656
11678
|
}
|
|
11657
11679
|
__name(baseAssignIn2, "baseAssignIn");
|
|
11658
11680
|
function baseAssignValue2(object3, key, value) {
|
|
11659
|
-
if (key == "__proto__" &&
|
|
11660
|
-
|
|
11681
|
+
if (key == "__proto__" && defineProperty5) {
|
|
11682
|
+
defineProperty5(object3, key, {
|
|
11661
11683
|
"configurable": true,
|
|
11662
11684
|
"enumerable": true,
|
|
11663
11685
|
"value": value,
|
|
@@ -12390,8 +12412,8 @@ lodash.exports;
|
|
|
12390
12412
|
metaMap.set(func, data);
|
|
12391
12413
|
return func;
|
|
12392
12414
|
};
|
|
12393
|
-
var baseSetToString2 = !
|
|
12394
|
-
return
|
|
12415
|
+
var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
|
|
12416
|
+
return defineProperty5(func, "toString", {
|
|
12395
12417
|
"configurable": true,
|
|
12396
12418
|
"enumerable": false,
|
|
12397
12419
|
"value": constant2(string2),
|
|
@@ -15125,11 +15147,11 @@ lodash.exports;
|
|
|
15125
15147
|
copyObject2(source, keys5(source), object3, customizer);
|
|
15126
15148
|
});
|
|
15127
15149
|
var at = flatRest2(baseAt);
|
|
15128
|
-
function
|
|
15150
|
+
function create6(prototype, properties) {
|
|
15129
15151
|
var result2 = baseCreate2(prototype);
|
|
15130
15152
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
15131
15153
|
}
|
|
15132
|
-
__name(
|
|
15154
|
+
__name(create6, "create");
|
|
15133
15155
|
var defaults2 = baseRest2(function(object3, sources) {
|
|
15134
15156
|
object3 = Object2(object3);
|
|
15135
15157
|
var index2 = -1;
|
|
@@ -15954,7 +15976,7 @@ lodash.exports;
|
|
|
15954
15976
|
lodash2.conforms = conforms;
|
|
15955
15977
|
lodash2.constant = constant2;
|
|
15956
15978
|
lodash2.countBy = countBy;
|
|
15957
|
-
lodash2.create =
|
|
15979
|
+
lodash2.create = create6;
|
|
15958
15980
|
lodash2.curry = curry;
|
|
15959
15981
|
lodash2.curryRight = curryRight;
|
|
15960
15982
|
lodash2.debounce = debounce2;
|
|
@@ -16915,11 +16937,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
16915
16937
|
return true;
|
|
16916
16938
|
}
|
|
16917
16939
|
}, "_fails");
|
|
16918
|
-
var _descriptors
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16940
|
+
var _descriptors;
|
|
16941
|
+
var hasRequired_descriptors;
|
|
16942
|
+
function require_descriptors() {
|
|
16943
|
+
if (hasRequired_descriptors)
|
|
16944
|
+
return _descriptors;
|
|
16945
|
+
hasRequired_descriptors = 1;
|
|
16946
|
+
_descriptors = !_fails(function() {
|
|
16947
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
16948
|
+
return 7;
|
|
16949
|
+
} }).a != 7;
|
|
16950
|
+
});
|
|
16951
|
+
return _descriptors;
|
|
16952
|
+
}
|
|
16953
|
+
__name(require_descriptors, "require_descriptors");
|
|
16923
16954
|
var _domCreate;
|
|
16924
16955
|
var hasRequired_domCreate;
|
|
16925
16956
|
function require_domCreate() {
|
|
@@ -16935,11 +16966,20 @@ function require_domCreate() {
|
|
|
16935
16966
|
return _domCreate;
|
|
16936
16967
|
}
|
|
16937
16968
|
__name(require_domCreate, "require_domCreate");
|
|
16938
|
-
var _ie8DomDefine
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16969
|
+
var _ie8DomDefine;
|
|
16970
|
+
var hasRequired_ie8DomDefine;
|
|
16971
|
+
function require_ie8DomDefine() {
|
|
16972
|
+
if (hasRequired_ie8DomDefine)
|
|
16973
|
+
return _ie8DomDefine;
|
|
16974
|
+
hasRequired_ie8DomDefine = 1;
|
|
16975
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
16976
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16977
|
+
return 7;
|
|
16978
|
+
} }).a != 7;
|
|
16979
|
+
});
|
|
16980
|
+
return _ie8DomDefine;
|
|
16981
|
+
}
|
|
16982
|
+
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
16943
16983
|
var isObject$d = _isObject;
|
|
16944
16984
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
16945
16985
|
if (!isObject$d(it))
|
|
@@ -16953,25 +16993,33 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
16953
16993
|
return val2;
|
|
16954
16994
|
throw TypeError("Can't convert object to primitive value");
|
|
16955
16995
|
}, "_toPrimitive$1");
|
|
16956
|
-
var
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
16996
|
+
var hasRequired_objectDp;
|
|
16997
|
+
function require_objectDp() {
|
|
16998
|
+
if (hasRequired_objectDp)
|
|
16999
|
+
return _objectDp;
|
|
17000
|
+
hasRequired_objectDp = 1;
|
|
17001
|
+
var anObject2 = _anObject;
|
|
17002
|
+
var IE8_DOM_DEFINE2 = require_ie8DomDefine();
|
|
17003
|
+
var toPrimitive2 = _toPrimitive$1;
|
|
17004
|
+
var dP2 = Object.defineProperty;
|
|
17005
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
|
|
17006
|
+
anObject2(O2);
|
|
17007
|
+
P2 = toPrimitive2(P2, true);
|
|
17008
|
+
anObject2(Attributes);
|
|
17009
|
+
if (IE8_DOM_DEFINE2)
|
|
17010
|
+
try {
|
|
17011
|
+
return dP2(O2, P2, Attributes);
|
|
17012
|
+
} catch (e2) {
|
|
17013
|
+
}
|
|
17014
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
17015
|
+
throw TypeError("Accessors not supported!");
|
|
17016
|
+
if ("value" in Attributes)
|
|
17017
|
+
O2[P2] = Attributes.value;
|
|
17018
|
+
return O2;
|
|
17019
|
+
}, "defineProperty");
|
|
17020
|
+
return _objectDp;
|
|
17021
|
+
}
|
|
17022
|
+
__name(require_objectDp, "require_objectDp");
|
|
16975
17023
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
16976
17024
|
return {
|
|
16977
17025
|
enumerable: !(bitmap & 1),
|
|
@@ -16980,10 +17028,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
16980
17028
|
value
|
|
16981
17029
|
};
|
|
16982
17030
|
}, "_propertyDesc");
|
|
16983
|
-
var dP$
|
|
17031
|
+
var dP$2 = require_objectDp();
|
|
16984
17032
|
var createDesc$3 = _propertyDesc;
|
|
16985
|
-
var _hide =
|
|
16986
|
-
return dP$
|
|
17033
|
+
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
17034
|
+
return dP$2.f(object3, key, createDesc$3(1, value));
|
|
16987
17035
|
} : function(object3, key, value) {
|
|
16988
17036
|
object3[key] = value;
|
|
16989
17037
|
return object3;
|
|
@@ -16997,7 +17045,7 @@ var core$3 = _coreExports;
|
|
|
16997
17045
|
var ctx$1 = _ctx;
|
|
16998
17046
|
var hide$3 = _hide;
|
|
16999
17047
|
var has$e = _has;
|
|
17000
|
-
var PROTOTYPE$
|
|
17048
|
+
var PROTOTYPE$2 = "prototype";
|
|
17001
17049
|
var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
17002
17050
|
var IS_FORCED = type & $export$8.F;
|
|
17003
17051
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -17006,8 +17054,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17006
17054
|
var IS_BIND = type & $export$8.B;
|
|
17007
17055
|
var IS_WRAP = type & $export$8.W;
|
|
17008
17056
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
17009
|
-
var expProto = exports2[PROTOTYPE$
|
|
17010
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
17057
|
+
var expProto = exports2[PROTOTYPE$2];
|
|
17058
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$2];
|
|
17011
17059
|
var key, own2, out;
|
|
17012
17060
|
if (IS_GLOBAL)
|
|
17013
17061
|
source = name2;
|
|
@@ -17031,7 +17079,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17031
17079
|
}
|
|
17032
17080
|
return C.apply(this, arguments);
|
|
17033
17081
|
}, "F");
|
|
17034
|
-
F[PROTOTYPE$
|
|
17082
|
+
F[PROTOTYPE$2] = C[PROTOTYPE$2];
|
|
17035
17083
|
return F;
|
|
17036
17084
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
17037
17085
|
if (IS_PROTO) {
|
|
@@ -17145,14 +17193,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
17145
17193
|
var has$d = _has;
|
|
17146
17194
|
var toIObject$4 = _toIobject;
|
|
17147
17195
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
17148
|
-
var IE_PROTO$
|
|
17196
|
+
var IE_PROTO$2 = _sharedKey("IE_PROTO");
|
|
17149
17197
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
17150
17198
|
var O2 = toIObject$4(object3);
|
|
17151
17199
|
var i = 0;
|
|
17152
17200
|
var result = [];
|
|
17153
17201
|
var key;
|
|
17154
17202
|
for (key in O2)
|
|
17155
|
-
if (key != IE_PROTO$
|
|
17203
|
+
if (key != IE_PROTO$2)
|
|
17156
17204
|
has$d(O2, key) && result.push(key);
|
|
17157
17205
|
while (names2.length > i)
|
|
17158
17206
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -17162,14 +17210,22 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
17162
17210
|
}, "_objectKeysInternal");
|
|
17163
17211
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
17164
17212
|
var $keys$3 = _objectKeysInternal;
|
|
17165
|
-
var enumBugKeys = _enumBugKeys;
|
|
17213
|
+
var enumBugKeys$1 = _enumBugKeys;
|
|
17166
17214
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
17167
|
-
return $keys$3(O2, enumBugKeys);
|
|
17215
|
+
return $keys$3(O2, enumBugKeys$1);
|
|
17168
17216
|
}, "keys");
|
|
17169
17217
|
var _objectGops = {};
|
|
17170
17218
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
17171
17219
|
var _objectPie = {};
|
|
17172
|
-
|
|
17220
|
+
var hasRequired_objectPie;
|
|
17221
|
+
function require_objectPie() {
|
|
17222
|
+
if (hasRequired_objectPie)
|
|
17223
|
+
return _objectPie;
|
|
17224
|
+
hasRequired_objectPie = 1;
|
|
17225
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
17226
|
+
return _objectPie;
|
|
17227
|
+
}
|
|
17228
|
+
__name(require_objectPie, "require_objectPie");
|
|
17173
17229
|
var defined$1 = _defined;
|
|
17174
17230
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
17175
17231
|
return Object(defined$1(it));
|
|
@@ -17180,10 +17236,10 @@ function require_objectAssign() {
|
|
|
17180
17236
|
if (hasRequired_objectAssign)
|
|
17181
17237
|
return _objectAssign;
|
|
17182
17238
|
hasRequired_objectAssign = 1;
|
|
17183
|
-
var DESCRIPTORS2 =
|
|
17239
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17184
17240
|
var getKeys2 = _objectKeys;
|
|
17185
17241
|
var gOPS2 = _objectGops;
|
|
17186
|
-
var pIE2 =
|
|
17242
|
+
var pIE2 = require_objectPie();
|
|
17187
17243
|
var toObject2 = _toObject;
|
|
17188
17244
|
var IObject2 = require_iobject();
|
|
17189
17245
|
var $assign = Object.assign;
|
|
@@ -17246,28 +17302,19 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
17246
17302
|
}, "_iterStep");
|
|
17247
17303
|
var _iterators = {};
|
|
17248
17304
|
var _redefine = _hide;
|
|
17249
|
-
var
|
|
17250
|
-
var
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
var
|
|
17256
|
-
var
|
|
17257
|
-
var
|
|
17258
|
-
|
|
17259
|
-
|
|
17260
|
-
|
|
17261
|
-
|
|
17262
|
-
var i = 0;
|
|
17263
|
-
var P2;
|
|
17264
|
-
while (length > i)
|
|
17265
|
-
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17266
|
-
return O2;
|
|
17267
|
-
}, "defineProperties");
|
|
17268
|
-
return _objectDps;
|
|
17269
|
-
}
|
|
17270
|
-
__name(require_objectDps, "require_objectDps");
|
|
17305
|
+
var dP$1 = require_objectDp();
|
|
17306
|
+
var anObject$4 = _anObject;
|
|
17307
|
+
var getKeys$1 = _objectKeys;
|
|
17308
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
|
|
17309
|
+
anObject$4(O2);
|
|
17310
|
+
var keys5 = getKeys$1(Properties2);
|
|
17311
|
+
var length = keys5.length;
|
|
17312
|
+
var i = 0;
|
|
17313
|
+
var P2;
|
|
17314
|
+
while (length > i)
|
|
17315
|
+
dP$1.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17316
|
+
return O2;
|
|
17317
|
+
}, "defineProperties");
|
|
17271
17318
|
var _html;
|
|
17272
17319
|
var hasRequired_html;
|
|
17273
17320
|
function require_html() {
|
|
@@ -17279,51 +17326,42 @@ function require_html() {
|
|
|
17279
17326
|
return _html;
|
|
17280
17327
|
}
|
|
17281
17328
|
__name(require_html, "require_html");
|
|
17282
|
-
var
|
|
17283
|
-
var
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
var
|
|
17291
|
-
var
|
|
17292
|
-
var
|
|
17293
|
-
|
|
17294
|
-
var
|
|
17295
|
-
|
|
17296
|
-
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
Empty[PROTOTYPE2] = null;
|
|
17319
|
-
result[IE_PROTO2] = O2;
|
|
17320
|
-
} else
|
|
17321
|
-
result = createDict();
|
|
17322
|
-
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17323
|
-
}, "create");
|
|
17324
|
-
return _objectCreate;
|
|
17325
|
-
}
|
|
17326
|
-
__name(require_objectCreate, "require_objectCreate");
|
|
17329
|
+
var anObject$3 = _anObject;
|
|
17330
|
+
var dPs = _objectDps;
|
|
17331
|
+
var enumBugKeys = _enumBugKeys;
|
|
17332
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
17333
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
17334
|
+
}, "Empty");
|
|
17335
|
+
var PROTOTYPE$1 = "prototype";
|
|
17336
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
17337
|
+
var iframe = require_domCreate()("iframe");
|
|
17338
|
+
var i = enumBugKeys.length;
|
|
17339
|
+
var lt = "<";
|
|
17340
|
+
var gt = ">";
|
|
17341
|
+
var iframeDocument;
|
|
17342
|
+
iframe.style.display = "none";
|
|
17343
|
+
require_html().appendChild(iframe);
|
|
17344
|
+
iframe.src = "javascript:";
|
|
17345
|
+
iframeDocument = iframe.contentWindow.document;
|
|
17346
|
+
iframeDocument.open();
|
|
17347
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
17348
|
+
iframeDocument.close();
|
|
17349
|
+
createDict = iframeDocument.F;
|
|
17350
|
+
while (i--)
|
|
17351
|
+
delete createDict[PROTOTYPE$1][enumBugKeys[i]];
|
|
17352
|
+
return createDict();
|
|
17353
|
+
}, "createDict");
|
|
17354
|
+
var _objectCreate = Object.create || /* @__PURE__ */ __name(function create(O2, Properties2) {
|
|
17355
|
+
var result;
|
|
17356
|
+
if (O2 !== null) {
|
|
17357
|
+
Empty[PROTOTYPE$1] = anObject$3(O2);
|
|
17358
|
+
result = new Empty();
|
|
17359
|
+
Empty[PROTOTYPE$1] = null;
|
|
17360
|
+
result[IE_PROTO$1] = O2;
|
|
17361
|
+
} else
|
|
17362
|
+
result = createDict();
|
|
17363
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17364
|
+
}, "create");
|
|
17327
17365
|
var _wks = { exports: {} };
|
|
17328
17366
|
var store$2 = _sharedExports("wks");
|
|
17329
17367
|
var uid$1 = _uid;
|
|
@@ -17334,14 +17372,14 @@ var $exports = _wks.exports = function(name2) {
|
|
|
17334
17372
|
};
|
|
17335
17373
|
$exports.store = store$2;
|
|
17336
17374
|
var _wksExports = _wks.exports;
|
|
17337
|
-
var def =
|
|
17375
|
+
var def = require_objectDp().f;
|
|
17338
17376
|
var has$c = _has;
|
|
17339
17377
|
var TAG$1 = _wksExports("toStringTag");
|
|
17340
17378
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
17341
17379
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
17342
17380
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
17343
17381
|
}, "_setToStringTag");
|
|
17344
|
-
var create$4 =
|
|
17382
|
+
var create$4 = _objectCreate;
|
|
17345
17383
|
var descriptor = _propertyDesc;
|
|
17346
17384
|
var setToStringTag$2 = _setToStringTag;
|
|
17347
17385
|
var IteratorPrototype = {};
|
|
@@ -17607,7 +17645,7 @@ var ArrayProto = Array.prototype;
|
|
|
17607
17645
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17608
17646
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17609
17647
|
}, "_isArrayIter");
|
|
17610
|
-
var $defineProperty$2 =
|
|
17648
|
+
var $defineProperty$2 = require_objectDp();
|
|
17611
17649
|
var createDesc$2 = _propertyDesc;
|
|
17612
17650
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
17613
17651
|
if (index2 in object3)
|
|
@@ -17736,9 +17774,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17736
17774
|
}
|
|
17737
17775
|
}, "_default$8");
|
|
17738
17776
|
var $export$3 = _export;
|
|
17739
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17777
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
17740
17778
|
var $Object$2 = _coreExports.Object;
|
|
17741
|
-
var defineProperty$c = /* @__PURE__ */ __name(function
|
|
17779
|
+
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
17742
17780
|
return $Object$2.defineProperty(it, key, desc);
|
|
17743
17781
|
}, "defineProperty");
|
|
17744
17782
|
var defineProperty$b = { "default": defineProperty$c, __esModule: true };
|
|
@@ -17749,7 +17787,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
17749
17787
|
}
|
|
17750
17788
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
17751
17789
|
var _default$7 = function() {
|
|
17752
|
-
function
|
|
17790
|
+
function defineProperties4(target, props) {
|
|
17753
17791
|
for (var i = 0; i < props.length; i++) {
|
|
17754
17792
|
var descriptor2 = props[i];
|
|
17755
17793
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -17759,12 +17797,12 @@ var _default$7 = function() {
|
|
|
17759
17797
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
17760
17798
|
}
|
|
17761
17799
|
}
|
|
17762
|
-
__name(
|
|
17800
|
+
__name(defineProperties4, "defineProperties");
|
|
17763
17801
|
return function(Constructor, protoProps, staticProps) {
|
|
17764
17802
|
if (protoProps)
|
|
17765
|
-
|
|
17803
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
17766
17804
|
if (staticProps)
|
|
17767
|
-
|
|
17805
|
+
defineProperties4(Constructor, staticProps);
|
|
17768
17806
|
return Constructor;
|
|
17769
17807
|
};
|
|
17770
17808
|
}();
|
|
@@ -17777,7 +17815,7 @@ var _meta = { exports: {} };
|
|
|
17777
17815
|
var META$1 = _uid("meta");
|
|
17778
17816
|
var isObject$c = _isObject;
|
|
17779
17817
|
var has$a = _has;
|
|
17780
|
-
var setDesc =
|
|
17818
|
+
var setDesc = require_objectDp().f;
|
|
17781
17819
|
var id$1 = 0;
|
|
17782
17820
|
var isExtensible = Object.isExtensible || function() {
|
|
17783
17821
|
return true;
|
|
@@ -17793,23 +17831,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
17793
17831
|
// weak collections IDs
|
|
17794
17832
|
} });
|
|
17795
17833
|
}, "setMeta");
|
|
17796
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
17834
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create6) {
|
|
17797
17835
|
if (!isObject$c(it))
|
|
17798
17836
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
17799
17837
|
if (!has$a(it, META$1)) {
|
|
17800
17838
|
if (!isExtensible(it))
|
|
17801
17839
|
return "F";
|
|
17802
|
-
if (!
|
|
17840
|
+
if (!create6)
|
|
17803
17841
|
return "E";
|
|
17804
17842
|
setMeta(it);
|
|
17805
17843
|
}
|
|
17806
17844
|
return it[META$1].i;
|
|
17807
17845
|
}, "fastKey");
|
|
17808
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
17846
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create6) {
|
|
17809
17847
|
if (!has$a(it, META$1)) {
|
|
17810
17848
|
if (!isExtensible(it))
|
|
17811
17849
|
return true;
|
|
17812
|
-
if (!
|
|
17850
|
+
if (!create6)
|
|
17813
17851
|
return false;
|
|
17814
17852
|
setMeta(it);
|
|
17815
17853
|
}
|
|
@@ -17830,7 +17868,7 @@ var meta = _meta.exports = {
|
|
|
17830
17868
|
var _metaExports = _meta.exports;
|
|
17831
17869
|
var core = _coreExports;
|
|
17832
17870
|
var wksExt$1 = _wksExt;
|
|
17833
|
-
var defineProperty$a =
|
|
17871
|
+
var defineProperty$a = require_objectDp().f;
|
|
17834
17872
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
17835
17873
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
17836
17874
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -17838,7 +17876,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
|
17838
17876
|
}, "_wksDefine");
|
|
17839
17877
|
var getKeys = _objectKeys;
|
|
17840
17878
|
var gOPS$1 = _objectGops;
|
|
17841
|
-
var pIE$1 =
|
|
17879
|
+
var pIE$1 = require_objectPie();
|
|
17842
17880
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
17843
17881
|
var result = getKeys(it);
|
|
17844
17882
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -17879,14 +17917,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
17879
17917
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
17880
17918
|
}, "getOwnPropertyNames");
|
|
17881
17919
|
var _objectGopd = {};
|
|
17882
|
-
var pIE =
|
|
17920
|
+
var pIE = require_objectPie();
|
|
17883
17921
|
var createDesc$1 = _propertyDesc;
|
|
17884
17922
|
var toIObject$1 = _toIobject;
|
|
17885
17923
|
var toPrimitive$1 = _toPrimitive$1;
|
|
17886
17924
|
var has$9 = _has;
|
|
17887
|
-
var IE8_DOM_DEFINE =
|
|
17925
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
17888
17926
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
17889
|
-
_objectGopd.f =
|
|
17927
|
+
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17890
17928
|
O2 = toIObject$1(O2);
|
|
17891
17929
|
P2 = toPrimitive$1(P2, true);
|
|
17892
17930
|
if (IE8_DOM_DEFINE)
|
|
@@ -17899,7 +17937,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17899
17937
|
}, "getOwnPropertyDescriptor");
|
|
17900
17938
|
var global$2 = _globalExports;
|
|
17901
17939
|
var has$8 = _has;
|
|
17902
|
-
var DESCRIPTORS =
|
|
17940
|
+
var DESCRIPTORS = require_descriptors();
|
|
17903
17941
|
var $export$2 = _export;
|
|
17904
17942
|
var redefine = _redefine;
|
|
17905
17943
|
var META = _metaExports.KEY;
|
|
@@ -17918,11 +17956,11 @@ var toObject$1 = _toObject;
|
|
|
17918
17956
|
var toIObject = _toIobject;
|
|
17919
17957
|
var toPrimitive = _toPrimitive$1;
|
|
17920
17958
|
var createDesc = _propertyDesc;
|
|
17921
|
-
var _create$1 =
|
|
17959
|
+
var _create$1 = _objectCreate;
|
|
17922
17960
|
var gOPNExt = _objectGopnExt;
|
|
17923
17961
|
var $GOPD = _objectGopd;
|
|
17924
17962
|
var $GOPS = _objectGops;
|
|
17925
|
-
var $DP =
|
|
17963
|
+
var $DP = require_objectDp();
|
|
17926
17964
|
var $keys$1 = _objectKeys;
|
|
17927
17965
|
var gOPD$4 = $GOPD.f;
|
|
17928
17966
|
var dP = $DP.f;
|
|
@@ -17965,7 +18003,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
17965
18003
|
} : function(it) {
|
|
17966
18004
|
return it instanceof $Symbol;
|
|
17967
18005
|
};
|
|
17968
|
-
var $defineProperty$1 = /* @__PURE__ */ __name(function
|
|
18006
|
+
var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
17969
18007
|
if (it === ObjectProto)
|
|
17970
18008
|
$defineProperty$1(OPSymbols, key, D2);
|
|
17971
18009
|
anObject(it);
|
|
@@ -17985,7 +18023,7 @@ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key,
|
|
|
17985
18023
|
}
|
|
17986
18024
|
return dP(it, key, D2);
|
|
17987
18025
|
}, "defineProperty");
|
|
17988
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
18026
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2) {
|
|
17989
18027
|
anObject(it);
|
|
17990
18028
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
17991
18029
|
var i = 0;
|
|
@@ -17995,7 +18033,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2)
|
|
|
17995
18033
|
$defineProperty$1(it, key = keys5[i++], P2[key]);
|
|
17996
18034
|
return it;
|
|
17997
18035
|
}, "defineProperties");
|
|
17998
|
-
var $create = /* @__PURE__ */ __name(function
|
|
18036
|
+
var $create = /* @__PURE__ */ __name(function create2(it, P2) {
|
|
17999
18037
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
18000
18038
|
}, "create");
|
|
18001
18039
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -18059,7 +18097,7 @@ if (!USE_NATIVE) {
|
|
|
18059
18097
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
18060
18098
|
$DP.f = $defineProperty$1;
|
|
18061
18099
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
18062
|
-
|
|
18100
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
18063
18101
|
$GOPS.f = $getOwnPropertySymbols;
|
|
18064
18102
|
if (DESCRIPTORS && !_library) {
|
|
18065
18103
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -18225,9 +18263,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
18225
18263
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
18226
18264
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
18227
18265
|
var $export = _export;
|
|
18228
|
-
$export($export.S, "Object", { create:
|
|
18266
|
+
$export($export.S, "Object", { create: _objectCreate });
|
|
18229
18267
|
var $Object$1 = _coreExports.Object;
|
|
18230
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
18268
|
+
var create$3 = /* @__PURE__ */ __name(function create3(P2, D2) {
|
|
18231
18269
|
return $Object$1.create(P2, D2);
|
|
18232
18270
|
}, "create");
|
|
18233
18271
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -22314,7 +22352,7 @@ function normalizeComponent(Comp) {
|
|
|
22314
22352
|
}
|
|
22315
22353
|
__name(normalizeComponent, "normalizeComponent");
|
|
22316
22354
|
var _createClass$d = function() {
|
|
22317
|
-
function
|
|
22355
|
+
function defineProperties4(target, props) {
|
|
22318
22356
|
for (var i = 0; i < props.length; i++) {
|
|
22319
22357
|
var descriptor2 = props[i];
|
|
22320
22358
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22324,12 +22362,12 @@ var _createClass$d = function() {
|
|
|
22324
22362
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22325
22363
|
}
|
|
22326
22364
|
}
|
|
22327
|
-
__name(
|
|
22365
|
+
__name(defineProperties4, "defineProperties");
|
|
22328
22366
|
return function(Constructor, protoProps, staticProps) {
|
|
22329
22367
|
if (protoProps)
|
|
22330
|
-
|
|
22368
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
22331
22369
|
if (staticProps)
|
|
22332
|
-
|
|
22370
|
+
defineProperties4(Constructor, staticProps);
|
|
22333
22371
|
return Constructor;
|
|
22334
22372
|
};
|
|
22335
22373
|
}();
|
|
@@ -22490,7 +22528,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
22490
22528
|
return target;
|
|
22491
22529
|
};
|
|
22492
22530
|
var _createClass$c = function() {
|
|
22493
|
-
function
|
|
22531
|
+
function defineProperties4(target, props) {
|
|
22494
22532
|
for (var i = 0; i < props.length; i++) {
|
|
22495
22533
|
var descriptor2 = props[i];
|
|
22496
22534
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22500,12 +22538,12 @@ var _createClass$c = function() {
|
|
|
22500
22538
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22501
22539
|
}
|
|
22502
22540
|
}
|
|
22503
|
-
__name(
|
|
22541
|
+
__name(defineProperties4, "defineProperties");
|
|
22504
22542
|
return function(Constructor, protoProps, staticProps) {
|
|
22505
22543
|
if (protoProps)
|
|
22506
|
-
|
|
22544
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
22507
22545
|
if (staticProps)
|
|
22508
|
-
|
|
22546
|
+
defineProperties4(Constructor, staticProps);
|
|
22509
22547
|
return Constructor;
|
|
22510
22548
|
};
|
|
22511
22549
|
}();
|
|
@@ -23096,7 +23134,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
23096
23134
|
}(Base);
|
|
23097
23135
|
}, "Methods");
|
|
23098
23136
|
var _createClass$b = function() {
|
|
23099
|
-
function
|
|
23137
|
+
function defineProperties4(target, props) {
|
|
23100
23138
|
for (var i = 0; i < props.length; i++) {
|
|
23101
23139
|
var descriptor2 = props[i];
|
|
23102
23140
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23106,12 +23144,12 @@ var _createClass$b = function() {
|
|
|
23106
23144
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23107
23145
|
}
|
|
23108
23146
|
}
|
|
23109
|
-
__name(
|
|
23147
|
+
__name(defineProperties4, "defineProperties");
|
|
23110
23148
|
return function(Constructor, protoProps, staticProps) {
|
|
23111
23149
|
if (protoProps)
|
|
23112
|
-
|
|
23150
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
23113
23151
|
if (staticProps)
|
|
23114
|
-
|
|
23152
|
+
defineProperties4(Constructor, staticProps);
|
|
23115
23153
|
return Constructor;
|
|
23116
23154
|
};
|
|
23117
23155
|
}();
|
|
@@ -23883,7 +23921,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
23883
23921
|
return target;
|
|
23884
23922
|
};
|
|
23885
23923
|
var _createClass$a = function() {
|
|
23886
|
-
function
|
|
23924
|
+
function defineProperties4(target, props) {
|
|
23887
23925
|
for (var i = 0; i < props.length; i++) {
|
|
23888
23926
|
var descriptor2 = props[i];
|
|
23889
23927
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23893,12 +23931,12 @@ var _createClass$a = function() {
|
|
|
23893
23931
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23894
23932
|
}
|
|
23895
23933
|
}
|
|
23896
|
-
__name(
|
|
23934
|
+
__name(defineProperties4, "defineProperties");
|
|
23897
23935
|
return function(Constructor, protoProps, staticProps) {
|
|
23898
23936
|
if (protoProps)
|
|
23899
|
-
|
|
23937
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
23900
23938
|
if (staticProps)
|
|
23901
|
-
|
|
23939
|
+
defineProperties4(Constructor, staticProps);
|
|
23902
23940
|
return Constructor;
|
|
23903
23941
|
};
|
|
23904
23942
|
}();
|
|
@@ -30222,21 +30260,21 @@ function parse$7(options) {
|
|
|
30222
30260
|
defined: [],
|
|
30223
30261
|
lazy: {},
|
|
30224
30262
|
constructs: constructs2,
|
|
30225
|
-
content:
|
|
30226
|
-
document:
|
|
30227
|
-
flow:
|
|
30228
|
-
string:
|
|
30229
|
-
text:
|
|
30263
|
+
content: create6(content$1),
|
|
30264
|
+
document: create6(document$2),
|
|
30265
|
+
flow: create6(flow$1),
|
|
30266
|
+
string: create6(string$1),
|
|
30267
|
+
text: create6(text$3)
|
|
30230
30268
|
};
|
|
30231
30269
|
return parser;
|
|
30232
|
-
function
|
|
30270
|
+
function create6(initial) {
|
|
30233
30271
|
return creator;
|
|
30234
30272
|
function creator(from3) {
|
|
30235
30273
|
return createTokenizer(parser, initial, from3);
|
|
30236
30274
|
}
|
|
30237
30275
|
__name(creator, "creator");
|
|
30238
30276
|
}
|
|
30239
|
-
__name(
|
|
30277
|
+
__name(create6, "create");
|
|
30240
30278
|
}
|
|
30241
30279
|
__name(parse$7, "parse$7");
|
|
30242
30280
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -30647,10 +30685,10 @@ function compiler(options) {
|
|
|
30647
30685
|
return data[key];
|
|
30648
30686
|
}
|
|
30649
30687
|
__name(getData, "getData");
|
|
30650
|
-
function opener(
|
|
30688
|
+
function opener(create6, and) {
|
|
30651
30689
|
return open2;
|
|
30652
30690
|
function open2(token) {
|
|
30653
|
-
enter2.call(this,
|
|
30691
|
+
enter2.call(this, create6(token), token);
|
|
30654
30692
|
if (and)
|
|
30655
30693
|
and.call(this, token);
|
|
30656
30694
|
}
|
|
@@ -39001,27 +39039,51 @@ __publicField(_TgSelect, "defaultProps", {
|
|
|
39001
39039
|
value: void 0
|
|
39002
39040
|
});
|
|
39003
39041
|
let TgSelect = _TgSelect;
|
|
39004
|
-
const
|
|
39005
|
-
const
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
|
|
39010
|
-
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
return matching;
|
|
39042
|
+
const withAsyncOptions = /* @__PURE__ */ __name((Component2) => (props) => {
|
|
39043
|
+
const _a2 = props, { loadOptions, options } = _a2, rest = __objRest(_a2, ["loadOptions", "options"]);
|
|
39044
|
+
const [asyncOptions, setAsyncOptions] = useState([]);
|
|
39045
|
+
const [isLoading, setLoading] = useState(false);
|
|
39046
|
+
useEffect(() => {
|
|
39047
|
+
if (loadOptions) {
|
|
39048
|
+
setLoading(true);
|
|
39049
|
+
loadOptions().then((options2) => {
|
|
39050
|
+
setAsyncOptions(options2);
|
|
39051
|
+
setLoading(false);
|
|
39015
39052
|
});
|
|
39016
|
-
|
|
39017
|
-
|
|
39018
|
-
|
|
39019
|
-
|
|
39020
|
-
|
|
39021
|
-
|
|
39022
|
-
|
|
39023
|
-
|
|
39024
|
-
|
|
39053
|
+
}
|
|
39054
|
+
}, [loadOptions]);
|
|
39055
|
+
return /* @__PURE__ */ React__default$1.createElement(
|
|
39056
|
+
Component2,
|
|
39057
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
39058
|
+
isLoading: isLoading || rest.isLoading,
|
|
39059
|
+
options: loadOptions ? asyncOptions : options
|
|
39060
|
+
})
|
|
39061
|
+
);
|
|
39062
|
+
}, "withAsyncOptions");
|
|
39063
|
+
const TgSelect$1 = compose$1(
|
|
39064
|
+
withAsyncOptions,
|
|
39065
|
+
withProps((props) => {
|
|
39066
|
+
const { multi, value, options = [] } = props;
|
|
39067
|
+
let optionsToRet = options;
|
|
39068
|
+
if (multi && value) {
|
|
39069
|
+
const valArray = getValueArray(value);
|
|
39070
|
+
optionsToRet = options.filter((op) => {
|
|
39071
|
+
const isOptionSelected = valArray.some((val2) => {
|
|
39072
|
+
if (!val2)
|
|
39073
|
+
return false;
|
|
39074
|
+
const matching = lodashExports.isEqual(val2.value, op.value);
|
|
39075
|
+
return matching;
|
|
39076
|
+
});
|
|
39077
|
+
return !isOptionSelected;
|
|
39078
|
+
});
|
|
39079
|
+
}
|
|
39080
|
+
return {
|
|
39081
|
+
// unfilteredOptions is needed for finding selected items
|
|
39082
|
+
unfilteredOptions: options,
|
|
39083
|
+
options: optionsToRet
|
|
39084
|
+
};
|
|
39085
|
+
})
|
|
39086
|
+
)(TgSelect);
|
|
39025
39087
|
const itemDisabled = /* @__PURE__ */ __name((i) => i.disabled, "itemDisabled");
|
|
39026
39088
|
const noResultsDefault = /* @__PURE__ */ React__default$1.createElement("div", null, "No Results...");
|
|
39027
39089
|
const renderCreateNewOption$1 = /* @__PURE__ */ __name((query, active3, handleClick) => /* @__PURE__ */ React__default$1.createElement(
|
|
@@ -39559,11 +39621,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
39559
39621
|
}
|
|
39560
39622
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
39561
39623
|
if (target.prototype) {
|
|
39562
|
-
var
|
|
39624
|
+
var Empty2 = /* @__PURE__ */ __name(function Empty3() {
|
|
39563
39625
|
}, "Empty");
|
|
39564
|
-
|
|
39565
|
-
bound.prototype = new
|
|
39566
|
-
|
|
39626
|
+
Empty2.prototype = target.prototype;
|
|
39627
|
+
bound.prototype = new Empty2();
|
|
39628
|
+
Empty2.prototype = null;
|
|
39567
39629
|
}
|
|
39568
39630
|
return bound;
|
|
39569
39631
|
}, "bind");
|
|
@@ -42371,19 +42433,59 @@ const generateToast = /* @__PURE__ */ __name((intent) => (message, options) => {
|
|
|
42371
42433
|
if (intent === Intent.DANGER) {
|
|
42372
42434
|
console.error("Toastr error message: ", message);
|
|
42373
42435
|
}
|
|
42436
|
+
const maybeAddClearAll = /* @__PURE__ */ __name(() => {
|
|
42437
|
+
const existingClearAllButtons = document.querySelectorAll(`.tg-clear-all-toasts`);
|
|
42438
|
+
existingClearAllButtons.forEach((button) => {
|
|
42439
|
+
button.remove();
|
|
42440
|
+
});
|
|
42441
|
+
const activeToasts = document.querySelectorAll(
|
|
42442
|
+
`.bp3-toast:not(.bp3-toast-exit)`
|
|
42443
|
+
);
|
|
42444
|
+
if (activeToasts.length > 1) {
|
|
42445
|
+
const topToaster = document.querySelector(`.bp3-toast`);
|
|
42446
|
+
if (!topToaster)
|
|
42447
|
+
return;
|
|
42448
|
+
const closeButton = document.createElement("div");
|
|
42449
|
+
closeButton.classList.add(
|
|
42450
|
+
Classes.BUTTON,
|
|
42451
|
+
Classes.LARGE,
|
|
42452
|
+
Classes.INTENT_PRIMARY,
|
|
42453
|
+
"tg-clear-all-toasts"
|
|
42454
|
+
);
|
|
42455
|
+
closeButton.innerText = "Clear all";
|
|
42456
|
+
closeButton.onclick = window.__tgClearAllToasts;
|
|
42457
|
+
closeButton.style.position = "absolute";
|
|
42458
|
+
closeButton.style.right = "-100px";
|
|
42459
|
+
topToaster.appendChild(closeButton);
|
|
42460
|
+
}
|
|
42461
|
+
}, "maybeAddClearAll");
|
|
42374
42462
|
const uniqKey = toastToUse.show(
|
|
42375
42463
|
{
|
|
42376
42464
|
intent,
|
|
42377
42465
|
message,
|
|
42378
|
-
|
|
42466
|
+
onDismiss: () => {
|
|
42467
|
+
if (options.onDismiss) {
|
|
42468
|
+
options.onDismiss();
|
|
42469
|
+
}
|
|
42470
|
+
setTimeout(() => {
|
|
42471
|
+
maybeAddClearAll();
|
|
42472
|
+
}, 0);
|
|
42473
|
+
},
|
|
42474
|
+
timeout: options.timeout || updatedTimeout || (!window.Cypress && intent === Intent.DANGER ? 6e4 : void 0),
|
|
42379
42475
|
action: options.action,
|
|
42380
42476
|
icon: options.icon,
|
|
42381
42477
|
className: classNames("preserve-newline", options.className)
|
|
42382
42478
|
},
|
|
42383
42479
|
options.key
|
|
42384
42480
|
);
|
|
42481
|
+
setTimeout(() => {
|
|
42482
|
+
maybeAddClearAll();
|
|
42483
|
+
}, 0);
|
|
42385
42484
|
function clear3() {
|
|
42386
42485
|
toastToUse.dismiss(uniqKey);
|
|
42486
|
+
setTimeout(() => {
|
|
42487
|
+
maybeAddClearAll();
|
|
42488
|
+
}, 0);
|
|
42387
42489
|
}
|
|
42388
42490
|
__name(clear3, "clear");
|
|
42389
42491
|
clear3.key = uniqKey;
|
|
@@ -42553,6 +42655,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React__default$1.Com
|
|
|
42553
42655
|
intent: Intent.SUCCESS,
|
|
42554
42656
|
text: "Filter",
|
|
42555
42657
|
secondaryText: "Clear",
|
|
42658
|
+
secondaryIntent: Intent.DANGER,
|
|
42556
42659
|
secondaryAction: () => {
|
|
42557
42660
|
currentFilter && removeSingleFilter(currentFilter.filterOn);
|
|
42558
42661
|
}
|
|
@@ -43698,7 +43801,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
43698
43801
|
return target;
|
|
43699
43802
|
};
|
|
43700
43803
|
var _createClass$9 = function() {
|
|
43701
|
-
function
|
|
43804
|
+
function defineProperties4(target, props) {
|
|
43702
43805
|
for (var i = 0; i < props.length; i++) {
|
|
43703
43806
|
var descriptor2 = props[i];
|
|
43704
43807
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43708,12 +43811,12 @@ var _createClass$9 = function() {
|
|
|
43708
43811
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43709
43812
|
}
|
|
43710
43813
|
}
|
|
43711
|
-
__name(
|
|
43814
|
+
__name(defineProperties4, "defineProperties");
|
|
43712
43815
|
return function(Constructor, protoProps, staticProps) {
|
|
43713
43816
|
if (protoProps)
|
|
43714
|
-
|
|
43817
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
43715
43818
|
if (staticProps)
|
|
43716
|
-
|
|
43819
|
+
defineProperties4(Constructor, staticProps);
|
|
43717
43820
|
return Constructor;
|
|
43718
43821
|
};
|
|
43719
43822
|
}();
|
|
@@ -43855,7 +43958,7 @@ var Alpha = function(_ref) {
|
|
|
43855
43958
|
return Alpha2;
|
|
43856
43959
|
}(PureComponent || Component);
|
|
43857
43960
|
var _createClass$8 = function() {
|
|
43858
|
-
function
|
|
43961
|
+
function defineProperties4(target, props) {
|
|
43859
43962
|
for (var i = 0; i < props.length; i++) {
|
|
43860
43963
|
var descriptor2 = props[i];
|
|
43861
43964
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43865,12 +43968,12 @@ var _createClass$8 = function() {
|
|
|
43865
43968
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43866
43969
|
}
|
|
43867
43970
|
}
|
|
43868
|
-
__name(
|
|
43971
|
+
__name(defineProperties4, "defineProperties");
|
|
43869
43972
|
return function(Constructor, protoProps, staticProps) {
|
|
43870
43973
|
if (protoProps)
|
|
43871
|
-
|
|
43974
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
43872
43975
|
if (staticProps)
|
|
43873
|
-
|
|
43976
|
+
defineProperties4(Constructor, staticProps);
|
|
43874
43977
|
return Constructor;
|
|
43875
43978
|
};
|
|
43876
43979
|
}();
|
|
@@ -44103,7 +44206,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
44103
44206
|
return null;
|
|
44104
44207
|
}, "calculateChange");
|
|
44105
44208
|
var _createClass$7 = function() {
|
|
44106
|
-
function
|
|
44209
|
+
function defineProperties4(target, props) {
|
|
44107
44210
|
for (var i = 0; i < props.length; i++) {
|
|
44108
44211
|
var descriptor2 = props[i];
|
|
44109
44212
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -44113,12 +44216,12 @@ var _createClass$7 = function() {
|
|
|
44113
44216
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
44114
44217
|
}
|
|
44115
44218
|
}
|
|
44116
|
-
__name(
|
|
44219
|
+
__name(defineProperties4, "defineProperties");
|
|
44117
44220
|
return function(Constructor, protoProps, staticProps) {
|
|
44118
44221
|
if (protoProps)
|
|
44119
|
-
|
|
44222
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
44120
44223
|
if (staticProps)
|
|
44121
|
-
|
|
44224
|
+
defineProperties4(Constructor, staticProps);
|
|
44122
44225
|
return Constructor;
|
|
44123
44226
|
};
|
|
44124
44227
|
}();
|
|
@@ -45329,7 +45432,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
45329
45432
|
};
|
|
45330
45433
|
}, "calculateChange");
|
|
45331
45434
|
var _createClass$6 = function() {
|
|
45332
|
-
function
|
|
45435
|
+
function defineProperties4(target, props) {
|
|
45333
45436
|
for (var i = 0; i < props.length; i++) {
|
|
45334
45437
|
var descriptor2 = props[i];
|
|
45335
45438
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45339,12 +45442,12 @@ var _createClass$6 = function() {
|
|
|
45339
45442
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45340
45443
|
}
|
|
45341
45444
|
}
|
|
45342
|
-
__name(
|
|
45445
|
+
__name(defineProperties4, "defineProperties");
|
|
45343
45446
|
return function(Constructor, protoProps, staticProps) {
|
|
45344
45447
|
if (protoProps)
|
|
45345
|
-
|
|
45448
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
45346
45449
|
if (staticProps)
|
|
45347
|
-
|
|
45450
|
+
defineProperties4(Constructor, staticProps);
|
|
45348
45451
|
return Constructor;
|
|
45349
45452
|
};
|
|
45350
45453
|
}();
|
|
@@ -46646,7 +46749,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
46646
46749
|
return target;
|
|
46647
46750
|
};
|
|
46648
46751
|
var _createClass$5 = function() {
|
|
46649
|
-
function
|
|
46752
|
+
function defineProperties4(target, props) {
|
|
46650
46753
|
for (var i = 0; i < props.length; i++) {
|
|
46651
46754
|
var descriptor2 = props[i];
|
|
46652
46755
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46656,12 +46759,12 @@ var _createClass$5 = function() {
|
|
|
46656
46759
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46657
46760
|
}
|
|
46658
46761
|
}
|
|
46659
|
-
__name(
|
|
46762
|
+
__name(defineProperties4, "defineProperties");
|
|
46660
46763
|
return function(Constructor, protoProps, staticProps) {
|
|
46661
46764
|
if (protoProps)
|
|
46662
|
-
|
|
46765
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
46663
46766
|
if (staticProps)
|
|
46664
|
-
|
|
46767
|
+
defineProperties4(Constructor, staticProps);
|
|
46665
46768
|
return Constructor;
|
|
46666
46769
|
};
|
|
46667
46770
|
}();
|
|
@@ -46758,7 +46861,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
46758
46861
|
return target;
|
|
46759
46862
|
};
|
|
46760
46863
|
var _createClass$4 = function() {
|
|
46761
|
-
function
|
|
46864
|
+
function defineProperties4(target, props) {
|
|
46762
46865
|
for (var i = 0; i < props.length; i++) {
|
|
46763
46866
|
var descriptor2 = props[i];
|
|
46764
46867
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46768,12 +46871,12 @@ var _createClass$4 = function() {
|
|
|
46768
46871
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46769
46872
|
}
|
|
46770
46873
|
}
|
|
46771
|
-
__name(
|
|
46874
|
+
__name(defineProperties4, "defineProperties");
|
|
46772
46875
|
return function(Constructor, protoProps, staticProps) {
|
|
46773
46876
|
if (protoProps)
|
|
46774
|
-
|
|
46877
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
46775
46878
|
if (staticProps)
|
|
46776
|
-
|
|
46879
|
+
defineProperties4(Constructor, staticProps);
|
|
46777
46880
|
return Constructor;
|
|
46778
46881
|
};
|
|
46779
46882
|
}();
|
|
@@ -47831,7 +47934,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
47831
47934
|
);
|
|
47832
47935
|
};
|
|
47833
47936
|
var _createClass$3 = function() {
|
|
47834
|
-
function
|
|
47937
|
+
function defineProperties4(target, props) {
|
|
47835
47938
|
for (var i = 0; i < props.length; i++) {
|
|
47836
47939
|
var descriptor2 = props[i];
|
|
47837
47940
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -47841,12 +47944,12 @@ var _createClass$3 = function() {
|
|
|
47841
47944
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
47842
47945
|
}
|
|
47843
47946
|
}
|
|
47844
|
-
__name(
|
|
47947
|
+
__name(defineProperties4, "defineProperties");
|
|
47845
47948
|
return function(Constructor, protoProps, staticProps) {
|
|
47846
47949
|
if (protoProps)
|
|
47847
|
-
|
|
47950
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
47848
47951
|
if (staticProps)
|
|
47849
|
-
|
|
47952
|
+
defineProperties4(Constructor, staticProps);
|
|
47850
47953
|
return Constructor;
|
|
47851
47954
|
};
|
|
47852
47955
|
}();
|
|
@@ -49256,7 +49359,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
49256
49359
|
);
|
|
49257
49360
|
}, "PhotoshopPreviews");
|
|
49258
49361
|
var _createClass$2 = function() {
|
|
49259
|
-
function
|
|
49362
|
+
function defineProperties4(target, props) {
|
|
49260
49363
|
for (var i = 0; i < props.length; i++) {
|
|
49261
49364
|
var descriptor2 = props[i];
|
|
49262
49365
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -49266,12 +49369,12 @@ var _createClass$2 = function() {
|
|
|
49266
49369
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
49267
49370
|
}
|
|
49268
49371
|
}
|
|
49269
|
-
__name(
|
|
49372
|
+
__name(defineProperties4, "defineProperties");
|
|
49270
49373
|
return function(Constructor, protoProps, staticProps) {
|
|
49271
49374
|
if (protoProps)
|
|
49272
|
-
|
|
49375
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
49273
49376
|
if (staticProps)
|
|
49274
|
-
|
|
49377
|
+
defineProperties4(Constructor, staticProps);
|
|
49275
49378
|
return Constructor;
|
|
49276
49379
|
};
|
|
49277
49380
|
}();
|
|
@@ -55442,17 +55545,20 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55442
55545
|
});
|
|
55443
55546
|
}
|
|
55444
55547
|
}, "handleSelectAllRows"));
|
|
55548
|
+
__publicField(this, "updateValidationHelper", /* @__PURE__ */ __name(() => {
|
|
55549
|
+
const { entities, reduxFormCellValidation } = computePresets(this.props);
|
|
55550
|
+
this.updateValidation(entities, reduxFormCellValidation);
|
|
55551
|
+
}, "updateValidationHelper"));
|
|
55445
55552
|
__publicField(this, "updateValidation", /* @__PURE__ */ __name((entities, newCellValidate) => {
|
|
55446
55553
|
const { change: change2, schema: schema2 } = computePresets(this.props);
|
|
55447
|
-
|
|
55448
|
-
|
|
55449
|
-
|
|
55450
|
-
|
|
55451
|
-
|
|
55452
|
-
|
|
55453
|
-
|
|
55454
|
-
|
|
55455
|
-
);
|
|
55554
|
+
const tableWideErr = validateTableWideErrors({
|
|
55555
|
+
entities,
|
|
55556
|
+
schema: schema2,
|
|
55557
|
+
newCellValidate,
|
|
55558
|
+
props: this.props
|
|
55559
|
+
});
|
|
55560
|
+
change2("reduxFormCellValidation", tableWideErr);
|
|
55561
|
+
this.forceUpdate();
|
|
55456
55562
|
}, "updateValidation"));
|
|
55457
55563
|
__publicField(this, "handleDeleteCell", /* @__PURE__ */ __name(() => {
|
|
55458
55564
|
const {
|
|
@@ -55518,7 +55624,7 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55518
55624
|
onFinishMsg: "Column Copied"
|
|
55519
55625
|
});
|
|
55520
55626
|
}, "handleCopyColumn"));
|
|
55521
|
-
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
55627
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg, isDownload } = {}) => {
|
|
55522
55628
|
let textToCopy = [];
|
|
55523
55629
|
const jsonToCopy = [];
|
|
55524
55630
|
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
@@ -55529,7 +55635,15 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55529
55635
|
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
55530
55636
|
if (!textToCopy)
|
|
55531
55637
|
return window.toastr.warning("No text to copy");
|
|
55532
|
-
|
|
55638
|
+
if (isDownload) {
|
|
55639
|
+
downloadjs(textToCopy.replaceAll(" ", ","), "tableData.csv", "text/csv");
|
|
55640
|
+
} else {
|
|
55641
|
+
this.handleCopyHelper(
|
|
55642
|
+
textToCopy,
|
|
55643
|
+
jsonToCopy,
|
|
55644
|
+
onFinishMsg || "Row Copied"
|
|
55645
|
+
);
|
|
55646
|
+
}
|
|
55533
55647
|
}, "handleCopyRows"));
|
|
55534
55648
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
55535
55649
|
const { change: change2, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
@@ -55582,14 +55696,14 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55582
55696
|
window.toastr.success(message);
|
|
55583
55697
|
}
|
|
55584
55698
|
}, "handleCopyHelper"));
|
|
55585
|
-
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
55699
|
+
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2, opts2) => {
|
|
55586
55700
|
try {
|
|
55587
55701
|
const allRowEls = getAllRows(e2);
|
|
55588
55702
|
if (!allRowEls)
|
|
55589
55703
|
return;
|
|
55590
|
-
this.handleCopyRows(allRowEls, {
|
|
55704
|
+
this.handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts2), {
|
|
55591
55705
|
onFinishMsg: "Table Copied"
|
|
55592
|
-
});
|
|
55706
|
+
}));
|
|
55593
55707
|
} catch (error) {
|
|
55594
55708
|
console.error(`error:`, error);
|
|
55595
55709
|
window.toastr.error("Error copying rows.");
|
|
@@ -55837,7 +55951,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55837
55951
|
getRowClassName && getRowClassName(rowInfo, state2, this.props),
|
|
55838
55952
|
{
|
|
55839
55953
|
disabled: rowDisabled,
|
|
55840
|
-
selected: rowSelected && !withCheckboxes
|
|
55954
|
+
selected: rowSelected && !withCheckboxes,
|
|
55955
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
55841
55956
|
}
|
|
55842
55957
|
),
|
|
55843
55958
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
@@ -55934,7 +56049,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55934
56049
|
this.startCellEdit(cellId);
|
|
55935
56050
|
}
|
|
55936
56051
|
}, err2 && {
|
|
55937
|
-
"data-tip": (err2 == null ? void 0 : err2.message) || err2
|
|
56052
|
+
"data-tip": (err2 == null ? void 0 : err2.message) || err2,
|
|
56053
|
+
"data-no-child-data-tip": true
|
|
55938
56054
|
}), {
|
|
55939
56055
|
onContextMenu: (e2) => {
|
|
55940
56056
|
if (!isPrimarySelected) {
|
|
@@ -57240,6 +57356,7 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57240
57356
|
);
|
|
57241
57357
|
}, "renderColumnHeader"));
|
|
57242
57358
|
if (this.props.helperProp) {
|
|
57359
|
+
this.props.helperProp.updateValidationHelper = this.updateValidationHelper;
|
|
57243
57360
|
this.props.helperProp.addEditableTableEntities = this.addEditableTableEntities;
|
|
57244
57361
|
this.props.helperProp.getEditableTableInfoAndThrowFormError = this.getEditableTableInfoAndThrowFormError;
|
|
57245
57362
|
}
|
|
@@ -57839,27 +57956,6 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57839
57956
|
if (n2)
|
|
57840
57957
|
this.table = n2;
|
|
57841
57958
|
},
|
|
57842
|
-
additionalBodyEl: isCellEditable && !onlyShowRowsWErrors && /* @__PURE__ */ React__default$1.createElement(
|
|
57843
|
-
"div",
|
|
57844
|
-
{
|
|
57845
|
-
style: {
|
|
57846
|
-
width: "100%",
|
|
57847
|
-
display: "flex",
|
|
57848
|
-
justifyContent: "center"
|
|
57849
|
-
}
|
|
57850
|
-
},
|
|
57851
|
-
/* @__PURE__ */ React__default$1.createElement(
|
|
57852
|
-
Button,
|
|
57853
|
-
{
|
|
57854
|
-
icon: "add",
|
|
57855
|
-
onClick: () => {
|
|
57856
|
-
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
57857
|
-
},
|
|
57858
|
-
minimal: true
|
|
57859
|
-
},
|
|
57860
|
-
"Add 10 Rows"
|
|
57861
|
-
)
|
|
57862
|
-
),
|
|
57863
57959
|
className: classNames({
|
|
57864
57960
|
isCellEditable,
|
|
57865
57961
|
"tg-table-loading": isLoading,
|
|
@@ -57901,6 +57997,37 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57901
57997
|
SubComponent: SubComponentToUse
|
|
57902
57998
|
}, ReactTableProps)
|
|
57903
57999
|
),
|
|
58000
|
+
isCellEditable && /* @__PURE__ */ React__default$1.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React__default$1.createElement(
|
|
58001
|
+
"div",
|
|
58002
|
+
{
|
|
58003
|
+
style: {
|
|
58004
|
+
width: "100%",
|
|
58005
|
+
display: "flex",
|
|
58006
|
+
justifyContent: "center"
|
|
58007
|
+
}
|
|
58008
|
+
},
|
|
58009
|
+
!onlyShowRowsWErrors && /* @__PURE__ */ React__default$1.createElement(
|
|
58010
|
+
Button,
|
|
58011
|
+
{
|
|
58012
|
+
icon: "add",
|
|
58013
|
+
onClick: () => {
|
|
58014
|
+
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
58015
|
+
},
|
|
58016
|
+
minimal: true
|
|
58017
|
+
},
|
|
58018
|
+
"Add 10 Rows"
|
|
58019
|
+
)
|
|
58020
|
+
), /* @__PURE__ */ React__default$1.createElement(
|
|
58021
|
+
Button,
|
|
58022
|
+
{
|
|
58023
|
+
onClick: (e2) => {
|
|
58024
|
+
this.handleCopyTable(e2, { isDownload: true });
|
|
58025
|
+
},
|
|
58026
|
+
"data-tip": "Download Table as CSV",
|
|
58027
|
+
minimal: true,
|
|
58028
|
+
icon: "download"
|
|
58029
|
+
}
|
|
58030
|
+
)),
|
|
57904
58031
|
!noFooter && /* @__PURE__ */ React__default$1.createElement(
|
|
57905
58032
|
"div",
|
|
57906
58033
|
{
|
|
@@ -58508,6 +58635,7 @@ function MatchHeaders({
|
|
|
58508
58635
|
onMultiFileUploadSubmit,
|
|
58509
58636
|
doAllFilesHaveSameHeaders,
|
|
58510
58637
|
csvValidationIssue,
|
|
58638
|
+
ignoredHeadersMsg,
|
|
58511
58639
|
searchResults,
|
|
58512
58640
|
matchedHeaders,
|
|
58513
58641
|
userSchema,
|
|
@@ -58525,7 +58653,7 @@ function MatchHeaders({
|
|
|
58525
58653
|
if (v2)
|
|
58526
58654
|
flippedMatchedHeaders[v2] = k2;
|
|
58527
58655
|
});
|
|
58528
|
-
return /* @__PURE__ */ React__default$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React__default$1.createElement("br", null), /* @__PURE__ */ React__default$1.createElement(
|
|
58656
|
+
return /* @__PURE__ */ React__default$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React__default$1.createElement("br", null), /* @__PURE__ */ React__default$1.createElement(
|
|
58529
58657
|
"tr",
|
|
58530
58658
|
{
|
|
58531
58659
|
style: {
|
|
@@ -58914,7 +59042,7 @@ const AdvancedOptions$1 = {
|
|
|
58914
59042
|
};
|
|
58915
59043
|
var Config = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, BasicOptions), MatchOptions), FuzzyOptions), AdvancedOptions$1);
|
|
58916
59044
|
const SPACE = /[^ ]+/g;
|
|
58917
|
-
function norm(weight = 1, mantissa = 3) {
|
|
59045
|
+
function norm$1(weight = 1, mantissa = 3) {
|
|
58918
59046
|
const cache2 = /* @__PURE__ */ new Map();
|
|
58919
59047
|
const m2 = Math.pow(10, mantissa);
|
|
58920
59048
|
return {
|
|
@@ -58933,13 +59061,13 @@ function norm(weight = 1, mantissa = 3) {
|
|
|
58933
59061
|
}
|
|
58934
59062
|
};
|
|
58935
59063
|
}
|
|
58936
|
-
__name(norm, "norm");
|
|
59064
|
+
__name(norm$1, "norm$1");
|
|
58937
59065
|
const _FuseIndex = class _FuseIndex {
|
|
58938
59066
|
constructor({
|
|
58939
59067
|
getFn = Config.getFn,
|
|
58940
59068
|
fieldNormWeight = Config.fieldNormWeight
|
|
58941
59069
|
} = {}) {
|
|
58942
|
-
this.norm = norm(fieldNormWeight, 3);
|
|
59070
|
+
this.norm = norm$1(fieldNormWeight, 3);
|
|
58943
59071
|
this.getFn = getFn;
|
|
58944
59072
|
this.isCreated = false;
|
|
58945
59073
|
this.setIndexRecords();
|
|
@@ -60088,7 +60216,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60088
60216
|
}) {
|
|
60089
60217
|
yield resolveValidateAgainstSchema();
|
|
60090
60218
|
const userSchema = getSchema(incomingData);
|
|
60091
|
-
const { searchResults, csvValidationIssue } = yield matchSchemas({
|
|
60219
|
+
const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
|
|
60092
60220
|
userSchema,
|
|
60093
60221
|
officialSchema: validateAgainstSchema
|
|
60094
60222
|
});
|
|
@@ -60124,6 +60252,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60124
60252
|
}
|
|
60125
60253
|
});
|
|
60126
60254
|
return {
|
|
60255
|
+
ignoredHeadersMsg,
|
|
60127
60256
|
csvValidationIssue,
|
|
60128
60257
|
matchedHeaders,
|
|
60129
60258
|
userSchema,
|
|
@@ -60140,15 +60269,31 @@ function matchSchemas(_0) {
|
|
|
60140
60269
|
};
|
|
60141
60270
|
let csvValidationIssue = false;
|
|
60142
60271
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60272
|
+
const matchedAltPaths = [];
|
|
60143
60273
|
officialSchema.fields.forEach((h2) => {
|
|
60144
60274
|
let hasMatch = false;
|
|
60145
60275
|
let result = fuse.search(h2.path) || [];
|
|
60276
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60277
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60278
|
+
);
|
|
60146
60279
|
userSchema.fields.forEach((uh, i) => {
|
|
60147
|
-
const pathMatch = uh.path
|
|
60148
|
-
const displayNameMatch = h2.displayName && uh.path
|
|
60149
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch.
|
|
60150
|
-
|
|
60151
|
-
|
|
60280
|
+
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60281
|
+
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60282
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60283
|
+
let altPath = alternatePathMatch;
|
|
60284
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60285
|
+
altPath = alternatePathMatch.path;
|
|
60286
|
+
}
|
|
60287
|
+
return norm(uh.path) === norm(altPath);
|
|
60288
|
+
});
|
|
60289
|
+
if (hasAlternatePathMatch) {
|
|
60290
|
+
matchedAltPaths.push(
|
|
60291
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60292
|
+
);
|
|
60293
|
+
if (hasAlternatePathMatch.format) {
|
|
60294
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60295
|
+
}
|
|
60296
|
+
}
|
|
60152
60297
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60153
60298
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60154
60299
|
result.unshift({
|
|
@@ -60168,6 +60313,16 @@ function matchSchemas(_0) {
|
|
|
60168
60313
|
csvValidationIssue = "It looks like some of the headers in your uploaded file(s) do not match the expected headers. Please look over and correct any issues with the mappings below.";
|
|
60169
60314
|
}
|
|
60170
60315
|
});
|
|
60316
|
+
const ignoredUserSchemaFields = [];
|
|
60317
|
+
userSchema.fields.forEach((uh) => {
|
|
60318
|
+
if (!officialSchema.fields.find(
|
|
60319
|
+
(h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
|
|
60320
|
+
)) {
|
|
60321
|
+
if (userSchema.userData.some((e2) => e2[uh.path])) {
|
|
60322
|
+
ignoredUserSchemaFields.push(uh);
|
|
60323
|
+
}
|
|
60324
|
+
}
|
|
60325
|
+
});
|
|
60171
60326
|
if (officialSchema.coerceUserSchema) {
|
|
60172
60327
|
officialSchema.coerceUserSchema({ userSchema, officialSchema });
|
|
60173
60328
|
}
|
|
@@ -60225,9 +60380,14 @@ function matchSchemas(_0) {
|
|
|
60225
60380
|
};
|
|
60226
60381
|
}
|
|
60227
60382
|
}
|
|
60383
|
+
let ignoredHeadersMsg;
|
|
60384
|
+
if (ignoredUserSchemaFields.length) {
|
|
60385
|
+
ignoredHeadersMsg = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
|
|
60386
|
+
}
|
|
60228
60387
|
return {
|
|
60229
60388
|
searchResults: officialSchema.fields,
|
|
60230
|
-
csvValidationIssue
|
|
60389
|
+
csvValidationIssue,
|
|
60390
|
+
ignoredHeadersMsg
|
|
60231
60391
|
};
|
|
60232
60392
|
});
|
|
60233
60393
|
}
|
|
@@ -60246,6 +60406,10 @@ function resolveValidateAgainstSchema() {
|
|
|
60246
60406
|
});
|
|
60247
60407
|
}
|
|
60248
60408
|
__name(resolveValidateAgainstSchema, "resolveValidateAgainstSchema");
|
|
60409
|
+
function norm(h2) {
|
|
60410
|
+
return lodashExports.snakeCase(h2).toLowerCase().replace(/ /g, "");
|
|
60411
|
+
}
|
|
60412
|
+
__name(norm, "norm");
|
|
60249
60413
|
const getInitialSteps = /* @__PURE__ */ __name((csvValidationIssue) => [
|
|
60250
60414
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
60251
60415
|
{ text: "Review Data", active: !csvValidationIssue }
|
|
@@ -60293,6 +60457,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60293
60457
|
doAllFilesHaveSameHeaders,
|
|
60294
60458
|
destroyForms,
|
|
60295
60459
|
csvValidationIssue,
|
|
60460
|
+
ignoredHeadersMsg,
|
|
60296
60461
|
searchResults,
|
|
60297
60462
|
matchedHeaders,
|
|
60298
60463
|
userSchema,
|
|
@@ -60404,6 +60569,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60404
60569
|
destroyForms,
|
|
60405
60570
|
setFilesWIssues,
|
|
60406
60571
|
csvValidationIssue,
|
|
60572
|
+
ignoredHeadersMsg,
|
|
60407
60573
|
searchResults,
|
|
60408
60574
|
matchedHeaders,
|
|
60409
60575
|
userSchema,
|
|
@@ -60439,6 +60605,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60439
60605
|
reduxFormEntitiesArray,
|
|
60440
60606
|
// onMultiFileUploadSubmit,
|
|
60441
60607
|
csvValidationIssue,
|
|
60608
|
+
ignoredHeadersMsg,
|
|
60442
60609
|
searchResults,
|
|
60443
60610
|
matchedHeaders,
|
|
60444
60611
|
userSchema,
|
|
@@ -60481,6 +60648,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60481
60648
|
searchResults,
|
|
60482
60649
|
onUploadWizardFinish,
|
|
60483
60650
|
csvValidationIssue,
|
|
60651
|
+
ignoredHeadersMsg,
|
|
60484
60652
|
matchedHeaders,
|
|
60485
60653
|
//fromRedux:
|
|
60486
60654
|
changeForm,
|
|
@@ -60510,6 +60678,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60510
60678
|
searchResults,
|
|
60511
60679
|
onUploadWizardFinish,
|
|
60512
60680
|
csvValidationIssue,
|
|
60681
|
+
ignoredHeadersMsg,
|
|
60513
60682
|
matchedHeaders,
|
|
60514
60683
|
//fromRedux:
|
|
60515
60684
|
handleSubmit,
|
|
@@ -60547,6 +60716,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60547
60716
|
__spreadValues({}, {
|
|
60548
60717
|
onMultiFileUploadSubmit,
|
|
60549
60718
|
csvValidationIssue,
|
|
60719
|
+
ignoredHeadersMsg,
|
|
60550
60720
|
searchResults,
|
|
60551
60721
|
matchedHeaders,
|
|
60552
60722
|
userSchema,
|
|
@@ -68719,7 +68889,7 @@ const isZipFile = /* @__PURE__ */ __name((file) => {
|
|
|
68719
68889
|
}, "isZipFile");
|
|
68720
68890
|
const getExt = /* @__PURE__ */ __name((file) => {
|
|
68721
68891
|
var _a2;
|
|
68722
|
-
return (_a2 = file == null ? void 0 : file.name) == null ? void 0 : _a2.split(".").pop();
|
|
68892
|
+
return (_a2 = (file == null ? void 0 : file.name) || (file == null ? void 0 : file.originalname)) == null ? void 0 : _a2.split(".").pop();
|
|
68723
68893
|
}, "getExt");
|
|
68724
68894
|
const isExcelFile = /* @__PURE__ */ __name((file) => getExt(file) === "xlsx", "isExcelFile");
|
|
68725
68895
|
const isCsvFile = /* @__PURE__ */ __name((file) => getExt(file) === "csv", "isCsvFile");
|
|
@@ -68807,7 +68977,9 @@ const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
|
|
|
68807
68977
|
const opts2 = __spreadProps(__spreadValues(__spreadValues({}, defaultCsvParserOptions), setupCsvParserOptions(parserOptions)), {
|
|
68808
68978
|
complete: (results) => {
|
|
68809
68979
|
var _a2;
|
|
68810
|
-
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter`
|
|
68980
|
+
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && (results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter` || results.errors.every(
|
|
68981
|
+
(e2) => e2.code === `TooFewFields` || e2.code === `TooManyFields`
|
|
68982
|
+
))) {
|
|
68811
68983
|
return resolve(results);
|
|
68812
68984
|
} else if (results && results.errors && results.errors.length) {
|
|
68813
68985
|
return reject("Error in csv: " + JSON.stringify(results.errors));
|
|
@@ -70357,7 +70529,7 @@ __name(_ValidateAgainstSchema, "ValidateAgainstSchema");
|
|
|
70357
70529
|
let ValidateAgainstSchema = _ValidateAgainstSchema;
|
|
70358
70530
|
const emptyPromise = Promise.resolve.bind(Promise);
|
|
70359
70531
|
function UploaderInner({
|
|
70360
|
-
accept:
|
|
70532
|
+
accept: __accept,
|
|
70361
70533
|
contentOverride: maybeContentOverride,
|
|
70362
70534
|
innerIcon,
|
|
70363
70535
|
innerText,
|
|
@@ -70387,20 +70559,37 @@ function UploaderInner({
|
|
|
70387
70559
|
dropzoneProps = {},
|
|
70388
70560
|
overflowList,
|
|
70389
70561
|
autoUnzip,
|
|
70390
|
-
disabled,
|
|
70562
|
+
disabled: _disabled,
|
|
70391
70563
|
noBuildCsvOption,
|
|
70392
70564
|
initializeForm,
|
|
70393
70565
|
showFilesCount,
|
|
70394
70566
|
threeDotMenuItems,
|
|
70395
70567
|
onPreviewClick
|
|
70396
70568
|
}) {
|
|
70397
|
-
var _a2, _b2, _c, _d
|
|
70569
|
+
var _a2, _b2, _c, _d;
|
|
70570
|
+
let dropzoneDisabled = _disabled;
|
|
70571
|
+
let _accept = __accept;
|
|
70398
70572
|
const validateAgainstSchemaStore = useRef(new ValidateAgainstSchema());
|
|
70399
|
-
const
|
|
70400
|
-
|
|
70401
|
-
|
|
70402
|
-
|
|
70403
|
-
)) == null ? void 0 :
|
|
70573
|
+
const [resolvedAccept, setResolvedAccept] = useState();
|
|
70574
|
+
if (resolvedAccept) {
|
|
70575
|
+
_accept = resolvedAccept;
|
|
70576
|
+
}
|
|
70577
|
+
const isAcceptPromise = (__accept == null ? void 0 : __accept.then) || (Array.isArray(__accept) ? __accept.some((a2) => a2 == null ? void 0 : a2.then) : false);
|
|
70578
|
+
const acceptLoading = !resolvedAccept && isAcceptPromise && `Accept Loading...`;
|
|
70579
|
+
if (isAcceptPromise && !resolvedAccept) {
|
|
70580
|
+
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
|
|
70581
|
+
(results) => {
|
|
70582
|
+
const resolved = lodashExports.flatMap(results, (r2) => r2.value);
|
|
70583
|
+
setResolvedAccept(resolved);
|
|
70584
|
+
}
|
|
70585
|
+
);
|
|
70586
|
+
_accept = [];
|
|
70587
|
+
}
|
|
70588
|
+
if (acceptLoading)
|
|
70589
|
+
dropzoneDisabled = true;
|
|
70590
|
+
const accept = !_accept ? void 0 : isAcceptPromise && !resolvedAccept ? [] : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70591
|
+
const callout = _callout || ((_b2 = (_a2 = accept == null ? void 0 : accept.find) == null ? void 0 : _a2.call(accept, (a2) => a2 == null ? void 0 : a2.callout)) == null ? void 0 : _b2.callout);
|
|
70592
|
+
const validateAgainstSchemaToUse = _validateAgainstSchema || ((_d = (_c = accept == null ? void 0 : accept.find) == null ? void 0 : _c.call(accept, (a2) => a2 == null ? void 0 : a2.validateAgainstSchema)) == null ? void 0 : _d.validateAgainstSchema);
|
|
70404
70593
|
useEffect(() => {
|
|
70405
70594
|
validateAgainstSchemaStore.current.setValidateAgainstSchema(
|
|
70406
70595
|
validateAgainstSchemaToUse
|
|
@@ -70410,7 +70599,6 @@ function UploaderInner({
|
|
|
70410
70599
|
if (validateAgainstSchemaToUse) {
|
|
70411
70600
|
validateAgainstSchema = validateAgainstSchemaStore.current;
|
|
70412
70601
|
}
|
|
70413
|
-
const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70414
70602
|
if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
|
|
70415
70603
|
accept == null ? void 0 : accept.unshift({
|
|
70416
70604
|
type: "zip",
|
|
@@ -70675,14 +70863,14 @@ function UploaderInner({
|
|
|
70675
70863
|
className: "tg-uploader-inner",
|
|
70676
70864
|
style: { width: "100%", height: "fit-content", minWidth: 0 }
|
|
70677
70865
|
},
|
|
70678
|
-
simpleAccept && /* @__PURE__ */ React__default$1.createElement(
|
|
70866
|
+
(simpleAccept || acceptLoading) && /* @__PURE__ */ React__default$1.createElement(
|
|
70679
70867
|
"div",
|
|
70680
70868
|
{
|
|
70681
70869
|
className: Classes.TEXT_MUTED,
|
|
70682
70870
|
style: { fontSize: 11, marginBottom: 5 }
|
|
70683
70871
|
},
|
|
70684
70872
|
advancedAccept ? /* @__PURE__ */ React__default$1.createElement("div", { style: {} }, "Accepts ", /* @__PURE__ */ React__default$1.createElement("span", { style: {} }, advancedAccept.map((a2, i) => {
|
|
70685
|
-
const
|
|
70873
|
+
const disabled = !(a2.description || a2.exampleFile || a2.exampleFiles);
|
|
70686
70874
|
const PopOrTooltip = a2.exampleFiles ? Popover : Tooltip;
|
|
70687
70875
|
const hasDownload = a2.exampleFile || a2.exampleFiles;
|
|
70688
70876
|
const CustomTag = !hasDownload ? "span" : "a";
|
|
@@ -70691,7 +70879,7 @@ function UploaderInner({
|
|
|
70691
70879
|
{
|
|
70692
70880
|
key: i,
|
|
70693
70881
|
interactionKind: "hover",
|
|
70694
|
-
disabled
|
|
70882
|
+
disabled,
|
|
70695
70883
|
modifiers: popoverOverflowModifiers,
|
|
70696
70884
|
content: a2.exampleFiles ? /* @__PURE__ */ React__default$1.createElement(Menu, null, a2.exampleFiles.map(
|
|
70697
70885
|
({ description: description2, subtext, exampleFile, icon }, i2) => {
|
|
@@ -70769,12 +70957,15 @@ function UploaderInner({
|
|
|
70769
70957
|
)
|
|
70770
70958
|
)
|
|
70771
70959
|
);
|
|
70772
|
-
}))) :
|
|
70960
|
+
}))) : acceptLoading ? (
|
|
70961
|
+
// make the dots below "load"
|
|
70962
|
+
/* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, "Accept Loading", /* @__PURE__ */ React__default$1.createElement(LoadingDots, null))
|
|
70963
|
+
) : /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, "Accepts ", simpleAccept)
|
|
70773
70964
|
),
|
|
70774
70965
|
/* @__PURE__ */ React__default$1.createElement(
|
|
70775
70966
|
Dropzone$1,
|
|
70776
70967
|
__spreadValues(__spreadValues({
|
|
70777
|
-
disabled,
|
|
70968
|
+
disabled: dropzoneDisabled,
|
|
70778
70969
|
onClick: (evt) => evt.preventDefault(),
|
|
70779
70970
|
multiple: fileLimit !== 1,
|
|
70780
70971
|
accept: simpleAccept ? simpleAccept.split(", ").map((a2) => a2.startsWith(".") ? a2 : "." + a2).join(", ") : void 0
|
|
@@ -70857,7 +71048,13 @@ function UploaderInner({
|
|
|
70857
71048
|
if (isCsvOrExcelFile(file)) {
|
|
70858
71049
|
let parsedF;
|
|
70859
71050
|
try {
|
|
70860
|
-
parsedF = yield parseCsvOrExcelFile(file
|
|
71051
|
+
parsedF = yield parseCsvOrExcelFile(file, {
|
|
71052
|
+
csvParserOptions: lodashExports.isFunction(
|
|
71053
|
+
validateAgainstSchema.csvParserOptions
|
|
71054
|
+
) ? validateAgainstSchema.csvParserOptions({
|
|
71055
|
+
validateAgainstSchema
|
|
71056
|
+
}) : validateAgainstSchema.csvParserOptions
|
|
71057
|
+
});
|
|
70861
71058
|
} catch (error) {
|
|
70862
71059
|
console.error("error:", error);
|
|
70863
71060
|
window.toastr && window.toastr.error(
|
|
@@ -70869,7 +71066,8 @@ function UploaderInner({
|
|
|
70869
71066
|
csvValidationIssue: _csvValidationIssue,
|
|
70870
71067
|
matchedHeaders,
|
|
70871
71068
|
userSchema,
|
|
70872
|
-
searchResults
|
|
71069
|
+
searchResults,
|
|
71070
|
+
ignoredHeadersMsg
|
|
70873
71071
|
} = yield tryToMatchSchemas({
|
|
70874
71072
|
incomingData: parsedF.data,
|
|
70875
71073
|
validateAgainstSchema
|
|
@@ -70912,6 +71110,7 @@ function UploaderInner({
|
|
|
70912
71110
|
filesWIssues.push({
|
|
70913
71111
|
file,
|
|
70914
71112
|
csvValidationIssue,
|
|
71113
|
+
ignoredHeadersMsg,
|
|
70915
71114
|
matchedHeaders,
|
|
70916
71115
|
userSchema,
|
|
70917
71116
|
searchResults
|
|
@@ -70920,6 +71119,7 @@ function UploaderInner({
|
|
|
70920
71119
|
filesWOIssues.push({
|
|
70921
71120
|
file,
|
|
70922
71121
|
csvValidationIssue,
|
|
71122
|
+
ignoredHeadersMsg,
|
|
70923
71123
|
matchedHeaders,
|
|
70924
71124
|
userSchema,
|
|
70925
71125
|
searchResults
|
|
@@ -71019,7 +71219,8 @@ function UploaderInner({
|
|
|
71019
71219
|
"tg-dropzone-reject": isDragReject,
|
|
71020
71220
|
// tnr: the acceptClassName/rejectClassName doesn't work with file extensions (only mimetypes are supported when dragging). Thus we'll just always turn the drop area blue when dragging and let the filtering occur on drop. See https://github.com/react-dropzone/react-dropzone/issues/888#issuecomment-773938074
|
|
71021
71221
|
"tg-dropzone-accept": isDragAccept,
|
|
71022
|
-
"tg-dropzone-disabled":
|
|
71222
|
+
"tg-dropzone-disabled": dropzoneDisabled,
|
|
71223
|
+
"bp3-disabled": dropzoneDisabled
|
|
71023
71224
|
})
|
|
71024
71225
|
}),
|
|
71025
71226
|
/* @__PURE__ */ React__default$1.createElement("input", __spreadValues({}, getInputProps())),
|
|
@@ -73383,7 +73584,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
73383
73584
|
this.cache[key] = value;
|
|
73384
73585
|
};
|
|
73385
73586
|
var cacheDefault = {
|
|
73386
|
-
create: /* @__PURE__ */ __name(function
|
|
73587
|
+
create: /* @__PURE__ */ __name(function create4() {
|
|
73387
73588
|
return new ObjectWithoutPrototypeCache();
|
|
73388
73589
|
}, "create")
|
|
73389
73590
|
};
|
|
@@ -78491,7 +78692,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78491
78692
|
}
|
|
78492
78693
|
}, "classCallCheck");
|
|
78493
78694
|
var createClass2 = function() {
|
|
78494
|
-
function
|
|
78695
|
+
function defineProperties4(target, props) {
|
|
78495
78696
|
for (var i = 0; i < props.length; i++) {
|
|
78496
78697
|
var descriptor2 = props[i];
|
|
78497
78698
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -78501,12 +78702,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78501
78702
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
78502
78703
|
}
|
|
78503
78704
|
}
|
|
78504
|
-
__name(
|
|
78705
|
+
__name(defineProperties4, "defineProperties");
|
|
78505
78706
|
return function(Constructor, protoProps, staticProps) {
|
|
78506
78707
|
if (protoProps)
|
|
78507
|
-
|
|
78708
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
78508
78709
|
if (staticProps)
|
|
78509
|
-
|
|
78710
|
+
defineProperties4(Constructor, staticProps);
|
|
78510
78711
|
return Constructor;
|
|
78511
78712
|
};
|
|
78512
78713
|
}();
|
|
@@ -82321,10 +82522,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82321
82522
|
return value;
|
|
82322
82523
|
}
|
|
82323
82524
|
__name(dateReviver, "dateReviver");
|
|
82324
|
-
function
|
|
82525
|
+
function create6(options) {
|
|
82325
82526
|
return new DiffPatcher(options);
|
|
82326
82527
|
}
|
|
82327
|
-
__name(
|
|
82528
|
+
__name(create6, "create");
|
|
82328
82529
|
var defaultInstance$4 = void 0;
|
|
82329
82530
|
function diff() {
|
|
82330
82531
|
if (!defaultInstance$4) {
|
|
@@ -82364,7 +82565,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82364
82565
|
exports3.DiffPatcher = DiffPatcher;
|
|
82365
82566
|
exports3.formatters = index2;
|
|
82366
82567
|
exports3.console = console$1;
|
|
82367
|
-
exports3.create =
|
|
82568
|
+
exports3.create = create6;
|
|
82368
82569
|
exports3.dateReviver = dateReviver;
|
|
82369
82570
|
exports3.diff = diff;
|
|
82370
82571
|
exports3.patch = patch2;
|
|
@@ -82893,7 +83094,7 @@ const modifiableTypes = [
|
|
|
82893
83094
|
let allWarnings = [];
|
|
82894
83095
|
let makeToast = /* @__PURE__ */ __name(() => {
|
|
82895
83096
|
if (typeof window !== "undefined" && window.toastr && allWarnings.length) {
|
|
82896
|
-
window.toastr.warning(allWarnings.join("\n"));
|
|
83097
|
+
window.toastr.warning(lodashExports.uniq(allWarnings).join("\n"));
|
|
82897
83098
|
}
|
|
82898
83099
|
allWarnings = [];
|
|
82899
83100
|
}, "makeToast");
|
|
@@ -91794,6 +91995,8 @@ function convertAmbiguousStringToRegex(string2, isProtein2) {
|
|
|
91794
91995
|
}
|
|
91795
91996
|
__name(convertAmbiguousStringToRegex, "convertAmbiguousStringToRegex");
|
|
91796
91997
|
function getComplementSequenceString(sequence2, isRna2) {
|
|
91998
|
+
if (typeof sequence2 !== "string")
|
|
91999
|
+
return "";
|
|
91797
92000
|
let complementSeqString = "";
|
|
91798
92001
|
const complementMap = lodashExports.merge(
|
|
91799
92002
|
DNAComplementMap,
|
|
@@ -106780,7 +106983,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
106780
106983
|
object3[name2] = value;
|
|
106781
106984
|
}
|
|
106782
106985
|
}, "defineProperty$2");
|
|
106783
|
-
var
|
|
106986
|
+
var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
106784
106987
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
106785
106988
|
var props = keys$1(map3);
|
|
106786
106989
|
if (hasSymbols2) {
|
|
@@ -106790,8 +106993,8 @@ var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
106790
106993
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
106791
106994
|
}
|
|
106792
106995
|
}, "defineProperties");
|
|
106793
|
-
|
|
106794
|
-
var defineProperties_1 =
|
|
106996
|
+
defineProperties3.supportsDescriptors = !!supportsDescriptors$2;
|
|
106997
|
+
var defineProperties_1 = defineProperties3;
|
|
106795
106998
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
106796
106999
|
return value !== value;
|
|
106797
107000
|
}, "numberIsNaN");
|
|
@@ -115518,7 +115721,7 @@ function usePrevious(current) {
|
|
|
115518
115721
|
return ref;
|
|
115519
115722
|
}
|
|
115520
115723
|
__name(usePrevious, "usePrevious");
|
|
115521
|
-
function
|
|
115724
|
+
function create5() {
|
|
115522
115725
|
let lock = null;
|
|
115523
115726
|
function isClaimed() {
|
|
115524
115727
|
return Boolean(lock);
|
|
@@ -115557,7 +115760,7 @@ function create4() {
|
|
|
115557
115760
|
tryAbandon
|
|
115558
115761
|
};
|
|
115559
115762
|
}
|
|
115560
|
-
__name(
|
|
115763
|
+
__name(create5, "create");
|
|
115561
115764
|
function isDragging(state2) {
|
|
115562
115765
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
115563
115766
|
return false;
|
|
@@ -116600,7 +116803,7 @@ function useSensorMarshal(_ref4) {
|
|
|
116600
116803
|
enableDefaultSensors
|
|
116601
116804
|
} = _ref4;
|
|
116602
116805
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
116603
|
-
const lockAPI = useState(() =>
|
|
116806
|
+
const lockAPI = useState(() => create5())[0];
|
|
116604
116807
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
116605
116808
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
116606
116809
|
lockAPI.tryAbandon();
|
|
@@ -120631,6 +120834,7 @@ const Axis$1 = /* @__PURE__ */ __name(function(props) {
|
|
|
120631
120834
|
{
|
|
120632
120835
|
className: "veRowViewAxis veAxis",
|
|
120633
120836
|
height: annotationHeight,
|
|
120837
|
+
width,
|
|
120634
120838
|
style: __spreadValues({ marginTop, overflow: "visible", display: "block" }, style2)
|
|
120635
120839
|
},
|
|
120636
120840
|
tickMarkSVG,
|
|
@@ -123676,10 +123880,10 @@ function RowItem(props) {
|
|
|
123676
123880
|
height: height2
|
|
123677
123881
|
} = annotationVisibility2;
|
|
123678
123882
|
const { sequence: sequence2 = "", cutsites = [] } = row;
|
|
123679
|
-
const reverseSequence = getComplementSequenceString(
|
|
123883
|
+
const reverseSequence = showReverseSequence ? getComplementSequenceString(
|
|
123680
123884
|
alignmentData && alignmentData.sequence || sequence2,
|
|
123681
123885
|
isRna2
|
|
123682
|
-
);
|
|
123886
|
+
) : "";
|
|
123683
123887
|
const getGaps2 = useMemo$1(() => {
|
|
123684
123888
|
if (alignmentData) {
|
|
123685
123889
|
const gapMap = getGapMap$1(alignmentData.sequence);
|
|
@@ -124773,7 +124977,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
124773
124977
|
}
|
|
124774
124978
|
__name(showFileDialog, "showFileDialog");
|
|
124775
124979
|
const name = "@teselagen/ove";
|
|
124776
|
-
const version = "0.4.
|
|
124980
|
+
const version = "0.4.2";
|
|
124777
124981
|
const main = "./src/index.js";
|
|
124778
124982
|
const exports$1 = {
|
|
124779
124983
|
".": {
|
|
@@ -125775,8 +125979,10 @@ Object.keys(defaultCopyOptions).forEach((type) => {
|
|
|
125775
125979
|
const readOnlyDisabledTooltip = "Sorry this function is not allowed in Read-Only Mode";
|
|
125776
125980
|
const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
125777
125981
|
const noSelection = /* @__PURE__ */ __name(({ selectionLayer: selectionLayer2 = {} }) => !(selectionLayer2.start > -1 && selectionLayer2.end > -1) && "Selection Required", "noSelection");
|
|
125778
|
-
const triggerClipboardCommand = /* @__PURE__ */ __name((type) => {
|
|
125779
|
-
const wrapper2 = document.querySelector(
|
|
125982
|
+
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
125983
|
+
const wrapper2 = document.querySelector(
|
|
125984
|
+
`.${props.editorName} .veVectorInteractionWrapper`
|
|
125985
|
+
);
|
|
125780
125986
|
if (!wrapper2) {
|
|
125781
125987
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
125782
125988
|
}
|
|
@@ -125807,8 +126013,8 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125807
126013
|
cut: {
|
|
125808
126014
|
isDisabled: (props) => props.disableBpEditing && bpEditingDisabledTooltip || props.readOnly && readOnlyDisabledTooltip || props.sequenceLength === 0,
|
|
125809
126015
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125810
|
-
handler: () => {
|
|
125811
|
-
triggerClipboardCommand("cut");
|
|
126016
|
+
handler: (props) => {
|
|
126017
|
+
triggerClipboardCommand("cut", props);
|
|
125812
126018
|
},
|
|
125813
126019
|
hotkey: "mod+x"
|
|
125814
126020
|
},
|
|
@@ -125826,13 +126032,13 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125826
126032
|
},
|
|
125827
126033
|
copy: {
|
|
125828
126034
|
isDisabled: (props) => props.sequenceLength === 0,
|
|
125829
|
-
handler: () => triggerClipboardCommand("copy"),
|
|
126035
|
+
handler: (props) => triggerClipboardCommand("copy", props),
|
|
125830
126036
|
hotkey: "mod+c"
|
|
125831
126037
|
},
|
|
125832
126038
|
paste: {
|
|
125833
126039
|
isDisabled: (props) => props.readOnly && readOnlyDisabledTooltip,
|
|
125834
126040
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125835
|
-
handler: () => triggerClipboardCommand("paste"),
|
|
126041
|
+
handler: (props) => triggerClipboardCommand("paste", props),
|
|
125836
126042
|
hotkey: "mod+v"
|
|
125837
126043
|
},
|
|
125838
126044
|
undo: {
|
|
@@ -127081,7 +127287,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
127081
127287
|
}
|
|
127082
127288
|
}, "classCallCheck");
|
|
127083
127289
|
var createClass = function() {
|
|
127084
|
-
function
|
|
127290
|
+
function defineProperties4(target, props) {
|
|
127085
127291
|
for (var i = 0; i < props.length; i++) {
|
|
127086
127292
|
var descriptor2 = props[i];
|
|
127087
127293
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -127091,16 +127297,16 @@ var createClass = function() {
|
|
|
127091
127297
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
127092
127298
|
}
|
|
127093
127299
|
}
|
|
127094
|
-
__name(
|
|
127300
|
+
__name(defineProperties4, "defineProperties");
|
|
127095
127301
|
return function(Constructor, protoProps, staticProps) {
|
|
127096
127302
|
if (protoProps)
|
|
127097
|
-
|
|
127303
|
+
defineProperties4(Constructor.prototype, protoProps);
|
|
127098
127304
|
if (staticProps)
|
|
127099
|
-
|
|
127305
|
+
defineProperties4(Constructor, staticProps);
|
|
127100
127306
|
return Constructor;
|
|
127101
127307
|
};
|
|
127102
127308
|
}();
|
|
127103
|
-
var
|
|
127309
|
+
var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
|
|
127104
127310
|
if (key in obj) {
|
|
127105
127311
|
Object.defineProperty(obj, key, {
|
|
127106
127312
|
value,
|
|
@@ -127711,7 +127917,7 @@ function arrow(data, options) {
|
|
|
127711
127917
|
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
127712
127918
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
127713
127919
|
data.arrowElement = arrowElement;
|
|
127714
|
-
data.offsets.arrow = (_data$offsets$arrow = {},
|
|
127920
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
127715
127921
|
return data;
|
|
127716
127922
|
}
|
|
127717
127923
|
__name(arrow, "arrow");
|
|
@@ -127942,7 +128148,7 @@ function preventOverflow(data, options) {
|
|
|
127942
128148
|
if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
|
|
127943
128149
|
value = Math.max(popper2[placement], boundaries[placement]);
|
|
127944
128150
|
}
|
|
127945
|
-
return
|
|
128151
|
+
return defineProperty4({}, placement, value);
|
|
127946
128152
|
}, "primary"),
|
|
127947
128153
|
secondary: /* @__PURE__ */ __name(function secondary(placement) {
|
|
127948
128154
|
var mainSide = placement === "right" ? "left" : "top";
|
|
@@ -127950,7 +128156,7 @@ function preventOverflow(data, options) {
|
|
|
127950
128156
|
if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
|
|
127951
128157
|
value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
|
|
127952
128158
|
}
|
|
127953
|
-
return
|
|
128159
|
+
return defineProperty4({}, mainSide, value);
|
|
127954
128160
|
}, "secondary")
|
|
127955
128161
|
};
|
|
127956
128162
|
order2.forEach(function(placement) {
|
|
@@ -127971,8 +128177,8 @@ function shift3(data) {
|
|
|
127971
128177
|
var side = isVertical ? "left" : "top";
|
|
127972
128178
|
var measurement = isVertical ? "width" : "height";
|
|
127973
128179
|
var shiftOffsets = {
|
|
127974
|
-
start:
|
|
127975
|
-
end:
|
|
128180
|
+
start: defineProperty4({}, side, reference2[side]),
|
|
128181
|
+
end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
127976
128182
|
};
|
|
127977
128183
|
data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
127978
128184
|
}
|
|
@@ -130070,7 +130276,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
130070
130276
|
...getEditDeleteHandlers("Feature", annotation),
|
|
130071
130277
|
...this.getSelectionMenuOptions(annotation),
|
|
130072
130278
|
...readOnly2 ? [] : [
|
|
130073
|
-
...parts2
|
|
130279
|
+
...parts2 ? [
|
|
130074
130280
|
"--",
|
|
130075
130281
|
{
|
|
130076
130282
|
text: "Make a Part from Feature",
|
|
@@ -130099,7 +130305,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
130099
130305
|
});
|
|
130100
130306
|
})
|
|
130101
130307
|
}
|
|
130102
|
-
],
|
|
130308
|
+
] : [],
|
|
130103
130309
|
{
|
|
130104
130310
|
text: "Merge With Another Feature",
|
|
130105
130311
|
onClick: () => {
|
|
@@ -132281,6 +132487,11 @@ const __LinearView = class __LinearView extends React__default$1.Component {
|
|
|
132281
132487
|
updateLabelsForInViewFeatures();
|
|
132282
132488
|
}
|
|
132283
132489
|
};
|
|
132490
|
+
const tickSpacingToUse = tickSpacing || (isLinViewZoomed ? massageTickSpacing(Math.ceil(120 / this.charWidth)) : massageTickSpacing(
|
|
132491
|
+
Math.floor(
|
|
132492
|
+
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10) * Math.max(1, Math.log10(1 / this.charWidth))
|
|
132493
|
+
)
|
|
132494
|
+
));
|
|
132284
132495
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
132285
132496
|
ReactDraggable,
|
|
132286
132497
|
{
|
|
@@ -132382,9 +132593,7 @@ const __LinearView = class __LinearView extends React__default$1.Component {
|
|
|
132382
132593
|
bpsPerRow,
|
|
132383
132594
|
fullSequence: sequenceData2.sequence,
|
|
132384
132595
|
emptyText: getEmptyText({ sequenceData: sequenceData2, caretPosition: caretPosition2 }),
|
|
132385
|
-
tickSpacing:
|
|
132386
|
-
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10)
|
|
132387
|
-
)),
|
|
132596
|
+
tickSpacing: tickSpacingToUse,
|
|
132388
132597
|
annotationVisibility: __spreadValues(__spreadValues(__spreadValues({}, rest.annotationVisibility), (!isLinViewZoomed || this.charWidth < 5) && {
|
|
132389
132598
|
translations: false,
|
|
132390
132599
|
primaryProteinSequence: false,
|
|
@@ -132669,7 +132878,6 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132669
132878
|
display: "flex",
|
|
132670
132879
|
flexDirection: "column",
|
|
132671
132880
|
overflowX: "visible"
|
|
132672
|
-
// overflowY: "hidden"
|
|
132673
132881
|
},
|
|
132674
132882
|
onClick: this.handleMinimapClick
|
|
132675
132883
|
},
|
|
@@ -132683,9 +132891,7 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132683
132891
|
}
|
|
132684
132892
|
},
|
|
132685
132893
|
style: {
|
|
132686
|
-
// maxHeight: 350,
|
|
132687
132894
|
overflowY: minimapTracksPartialHeight > 190 ? "auto" : "hidden",
|
|
132688
|
-
// overflowY: "auto",
|
|
132689
132895
|
overflowX: "hidden",
|
|
132690
132896
|
position: "relative"
|
|
132691
132897
|
},
|
|
@@ -132716,7 +132922,6 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132716
132922
|
{
|
|
132717
132923
|
style: {
|
|
132718
132924
|
marginTop: -3
|
|
132719
|
-
// paddingLeft: nameDivWidth
|
|
132720
132925
|
},
|
|
132721
132926
|
ref
|
|
132722
132927
|
},
|
|
@@ -132732,15 +132937,15 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132732
132937
|
/* @__PURE__ */ React__default$1.createElement(
|
|
132733
132938
|
Axis$2,
|
|
132734
132939
|
__spreadValues({}, {
|
|
132735
|
-
row: { start: 0, end: seqLength },
|
|
132940
|
+
row: { start: 0, end: seqLength - 1 },
|
|
132736
132941
|
tickSpacing: massageTickSpacing(Math.floor(seqLength / 10)),
|
|
132737
132942
|
bpsPerRow: seqLength,
|
|
132738
132943
|
charWidth: charWidth2,
|
|
132739
132944
|
annotationHeight: 15,
|
|
132740
132945
|
sequenceLength: seqLength,
|
|
132741
132946
|
style: {
|
|
132742
|
-
|
|
132743
|
-
|
|
132947
|
+
height: 17,
|
|
132948
|
+
width: "100%"
|
|
132744
132949
|
}
|
|
132745
132950
|
})
|
|
132746
132951
|
)
|