@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.umd.js
CHANGED
|
@@ -10335,11 +10335,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10335
10335
|
}
|
|
10336
10336
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
10337
10337
|
if (target.prototype) {
|
|
10338
|
-
var
|
|
10338
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
10339
10339
|
}, "Empty");
|
|
10340
|
-
|
|
10341
|
-
bound.prototype = new
|
|
10342
|
-
|
|
10340
|
+
Empty.prototype = target.prototype;
|
|
10341
|
+
bound.prototype = new Empty();
|
|
10342
|
+
Empty.prototype = null;
|
|
10343
10343
|
}
|
|
10344
10344
|
return bound;
|
|
10345
10345
|
}, "bind");
|
|
@@ -23485,7 +23485,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23485
23485
|
inner2(dataTip, el2, opts2);
|
|
23486
23486
|
break;
|
|
23487
23487
|
} else if (isEllipsized && el2.offsetWidth < el2.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
23488
|
-
!el2.classList.contains("no-data-tip") && !document.body.classList.contains("drag-active") && el2.textContent && ((_b2 = (_a2 = el2.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
23488
|
+
!el2.classList.contains("no-data-tip") && !parentIncludesNoChildDataTip(el2, 0) && !document.body.classList.contains("drag-active") && el2.textContent && ((_b2 = (_a2 = el2.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
23489
23489
|
inner2(el2.textContent, el2, opts2);
|
|
23490
23490
|
break;
|
|
23491
23491
|
} else if (isEllipsized && el2.offsetWidth >= el2.scrollWidth)
|
|
@@ -23498,6 +23498,28 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23498
23498
|
}
|
|
23499
23499
|
});
|
|
23500
23500
|
})();
|
|
23501
|
+
function parentIncludesNoChildDataTip(el2, count2) {
|
|
23502
|
+
if (count2 > 4)
|
|
23503
|
+
return false;
|
|
23504
|
+
if (!el2)
|
|
23505
|
+
return false;
|
|
23506
|
+
if (el2.getAttribute("data-no-child-data-tip"))
|
|
23507
|
+
return true;
|
|
23508
|
+
return parentIncludesNoChildDataTip(el2.parentElement, count2 + 1);
|
|
23509
|
+
}
|
|
23510
|
+
__name(parentIncludesNoChildDataTip, "parentIncludesNoChildDataTip");
|
|
23511
|
+
const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
23512
|
+
const [dots, setDots] = reactExports.useState("");
|
|
23513
|
+
reactExports.useEffect(() => {
|
|
23514
|
+
const interval = setInterval(() => {
|
|
23515
|
+
setDots((dots2) => {
|
|
23516
|
+
return dots2.length === 3 ? "" : dots2 + ".";
|
|
23517
|
+
});
|
|
23518
|
+
}, 500);
|
|
23519
|
+
return () => clearInterval(interval);
|
|
23520
|
+
}, []);
|
|
23521
|
+
return /* @__PURE__ */ React$2.createElement("span", null, dots);
|
|
23522
|
+
}, "LoadingDots");
|
|
23501
23523
|
const AssignDefaultsModeContext = React$2.createContext({
|
|
23502
23524
|
inAssignDefaultsMode: false,
|
|
23503
23525
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -25818,10 +25840,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25818
25840
|
/* istanbul ignore next */
|
|
25819
25841
|
Object.getOwnPropertyNames
|
|
25820
25842
|
);
|
|
25821
|
-
function toPrimitive$
|
|
25843
|
+
function toPrimitive$2(value) {
|
|
25822
25844
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
25823
25845
|
}
|
|
25824
|
-
__name(toPrimitive$
|
|
25846
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
25825
25847
|
function hasProp(target, prop2) {
|
|
25826
25848
|
return objectPrototype$2.hasOwnProperty.call(target, prop2);
|
|
25827
25849
|
}
|
|
@@ -26718,7 +26740,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26718
26740
|
return this.name_ + "[" + this.value_ + "]";
|
|
26719
26741
|
}, "toString");
|
|
26720
26742
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
26721
|
-
return toPrimitive$
|
|
26743
|
+
return toPrimitive$2(this.get());
|
|
26722
26744
|
}, "valueOf");
|
|
26723
26745
|
_proto[_Symbol$toPrimitive] = function() {
|
|
26724
26746
|
return this.valueOf();
|
|
@@ -26903,7 +26925,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26903
26925
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
26904
26926
|
}, "toString");
|
|
26905
26927
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
26906
|
-
return toPrimitive$
|
|
26928
|
+
return toPrimitive$2(this.get());
|
|
26907
26929
|
}, "valueOf");
|
|
26908
26930
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
26909
26931
|
return this.valueOf();
|
|
@@ -43573,11 +43595,20 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43573
43595
|
return true;
|
|
43574
43596
|
}
|
|
43575
43597
|
}, "_fails");
|
|
43576
|
-
var _descriptors
|
|
43577
|
-
|
|
43578
|
-
|
|
43579
|
-
|
|
43580
|
-
|
|
43598
|
+
var _descriptors;
|
|
43599
|
+
var hasRequired_descriptors;
|
|
43600
|
+
function require_descriptors() {
|
|
43601
|
+
if (hasRequired_descriptors)
|
|
43602
|
+
return _descriptors;
|
|
43603
|
+
hasRequired_descriptors = 1;
|
|
43604
|
+
_descriptors = !_fails(function() {
|
|
43605
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
43606
|
+
return 7;
|
|
43607
|
+
} }).a != 7;
|
|
43608
|
+
});
|
|
43609
|
+
return _descriptors;
|
|
43610
|
+
}
|
|
43611
|
+
__name(require_descriptors, "require_descriptors");
|
|
43581
43612
|
var _domCreate;
|
|
43582
43613
|
var hasRequired_domCreate;
|
|
43583
43614
|
function require_domCreate() {
|
|
@@ -43593,7 +43624,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43593
43624
|
return _domCreate;
|
|
43594
43625
|
}
|
|
43595
43626
|
__name(require_domCreate, "require_domCreate");
|
|
43596
|
-
var _ie8DomDefine = !
|
|
43627
|
+
var _ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
43597
43628
|
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
43598
43629
|
return 7;
|
|
43599
43630
|
} }).a != 7;
|
|
@@ -43611,25 +43642,33 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43611
43642
|
return val2;
|
|
43612
43643
|
throw TypeError("Can't convert object to primitive value");
|
|
43613
43644
|
}, "_toPrimitive$1");
|
|
43614
|
-
var
|
|
43615
|
-
|
|
43616
|
-
|
|
43617
|
-
|
|
43618
|
-
|
|
43619
|
-
|
|
43620
|
-
|
|
43621
|
-
|
|
43622
|
-
|
|
43623
|
-
|
|
43624
|
-
|
|
43625
|
-
|
|
43626
|
-
|
|
43627
|
-
|
|
43628
|
-
|
|
43629
|
-
|
|
43630
|
-
|
|
43631
|
-
|
|
43632
|
-
|
|
43645
|
+
var hasRequired_objectDp;
|
|
43646
|
+
function require_objectDp() {
|
|
43647
|
+
if (hasRequired_objectDp)
|
|
43648
|
+
return _objectDp;
|
|
43649
|
+
hasRequired_objectDp = 1;
|
|
43650
|
+
var anObject2 = _anObject;
|
|
43651
|
+
var IE8_DOM_DEFINE2 = _ie8DomDefine;
|
|
43652
|
+
var toPrimitive2 = _toPrimitive$1;
|
|
43653
|
+
var dP2 = Object.defineProperty;
|
|
43654
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
43655
|
+
anObject2(O2);
|
|
43656
|
+
P2 = toPrimitive2(P2, true);
|
|
43657
|
+
anObject2(Attributes);
|
|
43658
|
+
if (IE8_DOM_DEFINE2)
|
|
43659
|
+
try {
|
|
43660
|
+
return dP2(O2, P2, Attributes);
|
|
43661
|
+
} catch (e2) {
|
|
43662
|
+
}
|
|
43663
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
43664
|
+
throw TypeError("Accessors not supported!");
|
|
43665
|
+
if ("value" in Attributes)
|
|
43666
|
+
O2[P2] = Attributes.value;
|
|
43667
|
+
return O2;
|
|
43668
|
+
}, "defineProperty");
|
|
43669
|
+
return _objectDp;
|
|
43670
|
+
}
|
|
43671
|
+
__name(require_objectDp, "require_objectDp");
|
|
43633
43672
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
43634
43673
|
return {
|
|
43635
43674
|
enumerable: !(bitmap & 1),
|
|
@@ -43638,10 +43677,10 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43638
43677
|
value
|
|
43639
43678
|
};
|
|
43640
43679
|
}, "_propertyDesc");
|
|
43641
|
-
var dP$
|
|
43680
|
+
var dP$1 = require_objectDp();
|
|
43642
43681
|
var createDesc$3 = _propertyDesc;
|
|
43643
|
-
var _hide =
|
|
43644
|
-
return dP$
|
|
43682
|
+
var _hide = require_descriptors() ? function(object2, key2, value) {
|
|
43683
|
+
return dP$1.f(object2, key2, createDesc$3(1, value));
|
|
43645
43684
|
} : function(object2, key2, value) {
|
|
43646
43685
|
object2[key2] = value;
|
|
43647
43686
|
return object2;
|
|
@@ -43655,7 +43694,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43655
43694
|
var ctx$1 = _ctx;
|
|
43656
43695
|
var hide$2 = _hide;
|
|
43657
43696
|
var has$d = _has;
|
|
43658
|
-
var PROTOTYPE$
|
|
43697
|
+
var PROTOTYPE$1 = "prototype";
|
|
43659
43698
|
var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
43660
43699
|
var IS_FORCED = type & $export$8.F;
|
|
43661
43700
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -43664,8 +43703,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43664
43703
|
var IS_BIND = type & $export$8.B;
|
|
43665
43704
|
var IS_WRAP = type & $export$8.W;
|
|
43666
43705
|
var exports3 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
43667
|
-
var expProto = exports3[PROTOTYPE$
|
|
43668
|
-
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name2] : (global$4[name2] || {})[PROTOTYPE$
|
|
43706
|
+
var expProto = exports3[PROTOTYPE$1];
|
|
43707
|
+
var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name2] : (global$4[name2] || {})[PROTOTYPE$1];
|
|
43669
43708
|
var key2, own2, out;
|
|
43670
43709
|
if (IS_GLOBAL)
|
|
43671
43710
|
source = name2;
|
|
@@ -43689,7 +43728,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43689
43728
|
}
|
|
43690
43729
|
return C2.apply(this, arguments);
|
|
43691
43730
|
}, "F");
|
|
43692
|
-
F2[PROTOTYPE$
|
|
43731
|
+
F2[PROTOTYPE$1] = C2[PROTOTYPE$1];
|
|
43693
43732
|
return F2;
|
|
43694
43733
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
43695
43734
|
if (IS_PROTO) {
|
|
@@ -43712,16 +43751,25 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43712
43751
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
43713
43752
|
return toString$4.call(it).slice(8, -1);
|
|
43714
43753
|
}, "_cof");
|
|
43715
|
-
var
|
|
43716
|
-
var
|
|
43717
|
-
|
|
43718
|
-
|
|
43754
|
+
var _iobject;
|
|
43755
|
+
var hasRequired_iobject;
|
|
43756
|
+
function require_iobject() {
|
|
43757
|
+
if (hasRequired_iobject)
|
|
43758
|
+
return _iobject;
|
|
43759
|
+
hasRequired_iobject = 1;
|
|
43760
|
+
var cof2 = _cof;
|
|
43761
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
43762
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
43763
|
+
};
|
|
43764
|
+
return _iobject;
|
|
43765
|
+
}
|
|
43766
|
+
__name(require_iobject, "require_iobject");
|
|
43719
43767
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
43720
43768
|
if (it == void 0)
|
|
43721
43769
|
throw TypeError("Can't call method on " + it);
|
|
43722
43770
|
return it;
|
|
43723
43771
|
}, "_defined");
|
|
43724
|
-
var IObject =
|
|
43772
|
+
var IObject = require_iobject();
|
|
43725
43773
|
var defined$2 = _defined;
|
|
43726
43774
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
43727
43775
|
return IObject(defined$2(it));
|
|
@@ -43794,14 +43842,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43794
43842
|
var has$c = _has;
|
|
43795
43843
|
var toIObject$4 = _toIobject;
|
|
43796
43844
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
43797
|
-
var IE_PROTO$
|
|
43845
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
43798
43846
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object2, names2) {
|
|
43799
43847
|
var O2 = toIObject$4(object2);
|
|
43800
43848
|
var i2 = 0;
|
|
43801
43849
|
var result = [];
|
|
43802
43850
|
var key2;
|
|
43803
43851
|
for (key2 in O2)
|
|
43804
|
-
if (key2 != IE_PROTO$
|
|
43852
|
+
if (key2 != IE_PROTO$1)
|
|
43805
43853
|
has$c(O2, key2) && result.push(key2);
|
|
43806
43854
|
while (names2.length > i2)
|
|
43807
43855
|
if (has$c(O2, key2 = names2[i2++])) {
|
|
@@ -43811,9 +43859,9 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43811
43859
|
}, "_objectKeysInternal");
|
|
43812
43860
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
43813
43861
|
var $keys$3 = _objectKeysInternal;
|
|
43814
|
-
var enumBugKeys
|
|
43862
|
+
var enumBugKeys = _enumBugKeys;
|
|
43815
43863
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys2(O2) {
|
|
43816
|
-
return $keys$3(O2, enumBugKeys
|
|
43864
|
+
return $keys$3(O2, enumBugKeys);
|
|
43817
43865
|
}, "keys");
|
|
43818
43866
|
var _objectGops = {};
|
|
43819
43867
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -43837,12 +43885,12 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43837
43885
|
if (hasRequired_objectAssign)
|
|
43838
43886
|
return _objectAssign;
|
|
43839
43887
|
hasRequired_objectAssign = 1;
|
|
43840
|
-
var DESCRIPTORS2 =
|
|
43888
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
43841
43889
|
var getKeys2 = _objectKeys;
|
|
43842
43890
|
var gOPS2 = _objectGops;
|
|
43843
43891
|
var pIE2 = require_objectPie();
|
|
43844
43892
|
var toObject2 = _toObject;
|
|
43845
|
-
var IObject2 =
|
|
43893
|
+
var IObject2 = require_iobject();
|
|
43846
43894
|
var $assign = Object.assign;
|
|
43847
43895
|
_objectAssign = !$assign || _fails(function() {
|
|
43848
43896
|
var A2 = {};
|
|
@@ -43903,19 +43951,28 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43903
43951
|
}, "_iterStep");
|
|
43904
43952
|
var _iterators = {};
|
|
43905
43953
|
var _redefine = _hide;
|
|
43906
|
-
var
|
|
43907
|
-
var
|
|
43908
|
-
|
|
43909
|
-
|
|
43910
|
-
|
|
43911
|
-
|
|
43912
|
-
var
|
|
43913
|
-
var
|
|
43914
|
-
var
|
|
43915
|
-
|
|
43916
|
-
|
|
43917
|
-
|
|
43918
|
-
|
|
43954
|
+
var _objectDps;
|
|
43955
|
+
var hasRequired_objectDps;
|
|
43956
|
+
function require_objectDps() {
|
|
43957
|
+
if (hasRequired_objectDps)
|
|
43958
|
+
return _objectDps;
|
|
43959
|
+
hasRequired_objectDps = 1;
|
|
43960
|
+
var dP2 = require_objectDp();
|
|
43961
|
+
var anObject2 = _anObject;
|
|
43962
|
+
var getKeys2 = _objectKeys;
|
|
43963
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
|
|
43964
|
+
anObject2(O2);
|
|
43965
|
+
var keys2 = getKeys2(Properties2);
|
|
43966
|
+
var length = keys2.length;
|
|
43967
|
+
var i2 = 0;
|
|
43968
|
+
var P2;
|
|
43969
|
+
while (length > i2)
|
|
43970
|
+
dP2.f(O2, P2 = keys2[i2++], Properties2[P2]);
|
|
43971
|
+
return O2;
|
|
43972
|
+
}, "defineProperties");
|
|
43973
|
+
return _objectDps;
|
|
43974
|
+
}
|
|
43975
|
+
__name(require_objectDps, "require_objectDps");
|
|
43919
43976
|
var _html;
|
|
43920
43977
|
var hasRequired_html;
|
|
43921
43978
|
function require_html() {
|
|
@@ -43927,42 +43984,51 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43927
43984
|
return _html;
|
|
43928
43985
|
}
|
|
43929
43986
|
__name(require_html, "require_html");
|
|
43930
|
-
var
|
|
43931
|
-
var
|
|
43932
|
-
|
|
43933
|
-
|
|
43934
|
-
|
|
43935
|
-
|
|
43936
|
-
|
|
43937
|
-
|
|
43938
|
-
var
|
|
43939
|
-
var
|
|
43940
|
-
var
|
|
43941
|
-
|
|
43942
|
-
var
|
|
43943
|
-
|
|
43944
|
-
|
|
43945
|
-
|
|
43946
|
-
|
|
43947
|
-
|
|
43948
|
-
|
|
43949
|
-
|
|
43950
|
-
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
|
|
43965
|
-
|
|
43987
|
+
var _objectCreate;
|
|
43988
|
+
var hasRequired_objectCreate;
|
|
43989
|
+
function require_objectCreate() {
|
|
43990
|
+
if (hasRequired_objectCreate)
|
|
43991
|
+
return _objectCreate;
|
|
43992
|
+
hasRequired_objectCreate = 1;
|
|
43993
|
+
var anObject2 = _anObject;
|
|
43994
|
+
var dPs = require_objectDps();
|
|
43995
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
43996
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
43997
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
43998
|
+
}, "Empty");
|
|
43999
|
+
var PROTOTYPE2 = "prototype";
|
|
44000
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
44001
|
+
var iframe = require_domCreate()("iframe");
|
|
44002
|
+
var i2 = enumBugKeys2.length;
|
|
44003
|
+
var lt = "<";
|
|
44004
|
+
var gt = ">";
|
|
44005
|
+
var iframeDocument;
|
|
44006
|
+
iframe.style.display = "none";
|
|
44007
|
+
require_html().appendChild(iframe);
|
|
44008
|
+
iframe.src = "javascript:";
|
|
44009
|
+
iframeDocument = iframe.contentWindow.document;
|
|
44010
|
+
iframeDocument.open();
|
|
44011
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
44012
|
+
iframeDocument.close();
|
|
44013
|
+
createDict = iframeDocument.F;
|
|
44014
|
+
while (i2--)
|
|
44015
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i2]];
|
|
44016
|
+
return createDict();
|
|
44017
|
+
}, "createDict");
|
|
44018
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create2(O2, Properties2) {
|
|
44019
|
+
var result;
|
|
44020
|
+
if (O2 !== null) {
|
|
44021
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
44022
|
+
result = new Empty();
|
|
44023
|
+
Empty[PROTOTYPE2] = null;
|
|
44024
|
+
result[IE_PROTO2] = O2;
|
|
44025
|
+
} else
|
|
44026
|
+
result = createDict();
|
|
44027
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
44028
|
+
}, "create");
|
|
44029
|
+
return _objectCreate;
|
|
44030
|
+
}
|
|
44031
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
43966
44032
|
var _wks = { exports: {} };
|
|
43967
44033
|
var store$2 = _sharedExports("wks");
|
|
43968
44034
|
var uid$1 = _uid;
|
|
@@ -43973,14 +44039,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
43973
44039
|
};
|
|
43974
44040
|
$exports.store = store$2;
|
|
43975
44041
|
var _wksExports = _wks.exports;
|
|
43976
|
-
var def =
|
|
44042
|
+
var def = require_objectDp().f;
|
|
43977
44043
|
var has$b = _has;
|
|
43978
44044
|
var TAG$1 = _wksExports("toStringTag");
|
|
43979
44045
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
43980
44046
|
if (it && !has$b(it = stat ? it : it.prototype, TAG$1))
|
|
43981
44047
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
43982
44048
|
}, "_setToStringTag");
|
|
43983
|
-
var create$4 =
|
|
44049
|
+
var create$4 = require_objectCreate();
|
|
43984
44050
|
var descriptor = _propertyDesc;
|
|
43985
44051
|
var setToStringTag$2 = _setToStringTag;
|
|
43986
44052
|
var IteratorPrototype = {};
|
|
@@ -44246,7 +44312,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44246
44312
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
44247
44313
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
44248
44314
|
}, "_isArrayIter");
|
|
44249
|
-
var $defineProperty$1 =
|
|
44315
|
+
var $defineProperty$1 = require_objectDp();
|
|
44250
44316
|
var createDesc$2 = _propertyDesc;
|
|
44251
44317
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
44252
44318
|
if (index2 in object2)
|
|
@@ -44375,7 +44441,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44375
44441
|
}
|
|
44376
44442
|
}, "_default$8");
|
|
44377
44443
|
var $export$3 = _export;
|
|
44378
|
-
$export$3($export$3.S + $export$3.F * !
|
|
44444
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
44379
44445
|
var $Object$1 = _coreExports.Object;
|
|
44380
44446
|
var defineProperty$6 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
|
|
44381
44447
|
return $Object$1.defineProperty(it, key2, desc);
|
|
@@ -44416,7 +44482,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44416
44482
|
var META$1 = _uid("meta");
|
|
44417
44483
|
var isObject$5 = _isObject;
|
|
44418
44484
|
var has$9 = _has;
|
|
44419
|
-
var setDesc =
|
|
44485
|
+
var setDesc = require_objectDp().f;
|
|
44420
44486
|
var id$1 = 0;
|
|
44421
44487
|
var isExtensible = Object.isExtensible || function() {
|
|
44422
44488
|
return true;
|
|
@@ -44469,7 +44535,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44469
44535
|
var _metaExports = _meta.exports;
|
|
44470
44536
|
var core = _coreExports;
|
|
44471
44537
|
var wksExt$1 = _wksExt;
|
|
44472
|
-
var defineProperty$4 =
|
|
44538
|
+
var defineProperty$4 = require_objectDp().f;
|
|
44473
44539
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
44474
44540
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
44475
44541
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -44525,7 +44591,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44525
44591
|
var has$8 = _has;
|
|
44526
44592
|
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
44527
44593
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
44528
|
-
_objectGopd.f =
|
|
44594
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
|
|
44529
44595
|
O2 = toIObject$1(O2);
|
|
44530
44596
|
P2 = toPrimitive$1(P2, true);
|
|
44531
44597
|
if (IE8_DOM_DEFINE)
|
|
@@ -44538,7 +44604,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44538
44604
|
}, "getOwnPropertyDescriptor");
|
|
44539
44605
|
var global$1 = _globalExports;
|
|
44540
44606
|
var has$7 = _has;
|
|
44541
|
-
var DESCRIPTORS =
|
|
44607
|
+
var DESCRIPTORS = require_descriptors();
|
|
44542
44608
|
var $export$2 = _export;
|
|
44543
44609
|
var redefine = _redefine;
|
|
44544
44610
|
var META = _metaExports.KEY;
|
|
@@ -44557,11 +44623,11 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44557
44623
|
var toIObject = _toIobject;
|
|
44558
44624
|
var toPrimitive = _toPrimitive$1;
|
|
44559
44625
|
var createDesc = _propertyDesc;
|
|
44560
|
-
var _create$1 =
|
|
44626
|
+
var _create$1 = require_objectCreate();
|
|
44561
44627
|
var gOPNExt = _objectGopnExt;
|
|
44562
44628
|
var $GOPD = _objectGopd;
|
|
44563
44629
|
var $GOPS = _objectGops;
|
|
44564
|
-
var $DP =
|
|
44630
|
+
var $DP = require_objectDp();
|
|
44565
44631
|
var $keys$1 = _objectKeys;
|
|
44566
44632
|
var gOPD$1 = $GOPD.f;
|
|
44567
44633
|
var dP = $DP.f;
|
|
@@ -44864,7 +44930,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
44864
44930
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
44865
44931
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
44866
44932
|
var $export = _export;
|
|
44867
|
-
$export($export.S, "Object", { create:
|
|
44933
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
44868
44934
|
var $Object = _coreExports.Object;
|
|
44869
44935
|
var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
|
|
44870
44936
|
return $Object.create(P2, D2);
|
|
@@ -64987,27 +65053,51 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
64987
65053
|
value: void 0
|
|
64988
65054
|
});
|
|
64989
65055
|
let TgSelect = _TgSelect;
|
|
64990
|
-
const
|
|
64991
|
-
const
|
|
64992
|
-
|
|
64993
|
-
|
|
64994
|
-
|
|
64995
|
-
|
|
64996
|
-
|
|
64997
|
-
|
|
64998
|
-
|
|
64999
|
-
|
|
65000
|
-
return matching;
|
|
65056
|
+
const withAsyncOptions = /* @__PURE__ */ __name((Component) => (props) => {
|
|
65057
|
+
const _a2 = props, { loadOptions, options } = _a2, rest = __objRest(_a2, ["loadOptions", "options"]);
|
|
65058
|
+
const [asyncOptions, setAsyncOptions] = reactExports.useState([]);
|
|
65059
|
+
const [isLoading, setLoading] = reactExports.useState(false);
|
|
65060
|
+
reactExports.useEffect(() => {
|
|
65061
|
+
if (loadOptions) {
|
|
65062
|
+
setLoading(true);
|
|
65063
|
+
loadOptions().then((options2) => {
|
|
65064
|
+
setAsyncOptions(options2);
|
|
65065
|
+
setLoading(false);
|
|
65001
65066
|
});
|
|
65002
|
-
|
|
65003
|
-
|
|
65004
|
-
|
|
65005
|
-
|
|
65006
|
-
|
|
65007
|
-
|
|
65008
|
-
|
|
65009
|
-
|
|
65010
|
-
|
|
65067
|
+
}
|
|
65068
|
+
}, [loadOptions]);
|
|
65069
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
65070
|
+
Component,
|
|
65071
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
65072
|
+
isLoading: isLoading || rest.isLoading,
|
|
65073
|
+
options: loadOptions ? asyncOptions : options
|
|
65074
|
+
})
|
|
65075
|
+
);
|
|
65076
|
+
}, "withAsyncOptions");
|
|
65077
|
+
const TgSelect$1 = compose$1(
|
|
65078
|
+
withAsyncOptions,
|
|
65079
|
+
withProps((props) => {
|
|
65080
|
+
const { multi, value, options = [] } = props;
|
|
65081
|
+
let optionsToRet = options;
|
|
65082
|
+
if (multi && value) {
|
|
65083
|
+
const valArray = getValueArray(value);
|
|
65084
|
+
optionsToRet = options.filter((op) => {
|
|
65085
|
+
const isOptionSelected = valArray.some((val2) => {
|
|
65086
|
+
if (!val2)
|
|
65087
|
+
return false;
|
|
65088
|
+
const matching = lodashExports.isEqual(val2.value, op.value);
|
|
65089
|
+
return matching;
|
|
65090
|
+
});
|
|
65091
|
+
return !isOptionSelected;
|
|
65092
|
+
});
|
|
65093
|
+
}
|
|
65094
|
+
return {
|
|
65095
|
+
// unfilteredOptions is needed for finding selected items
|
|
65096
|
+
unfilteredOptions: options,
|
|
65097
|
+
options: optionsToRet
|
|
65098
|
+
};
|
|
65099
|
+
})
|
|
65100
|
+
)(TgSelect);
|
|
65011
65101
|
const itemDisabled = /* @__PURE__ */ __name((i2) => i2.disabled, "itemDisabled");
|
|
65012
65102
|
const noResultsDefault = /* @__PURE__ */ React$2.createElement("div", null, "No Results...");
|
|
65013
65103
|
const renderCreateNewOption$1 = /* @__PURE__ */ __name((query, active2, handleClick) => /* @__PURE__ */ React$2.createElement(
|
|
@@ -72440,19 +72530,59 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
72440
72530
|
if (intent === Intent.DANGER) {
|
|
72441
72531
|
console.error("Toastr error message: ", message);
|
|
72442
72532
|
}
|
|
72533
|
+
const maybeAddClearAll = /* @__PURE__ */ __name(() => {
|
|
72534
|
+
const existingClearAllButtons = document.querySelectorAll(`.tg-clear-all-toasts`);
|
|
72535
|
+
existingClearAllButtons.forEach((button) => {
|
|
72536
|
+
button.remove();
|
|
72537
|
+
});
|
|
72538
|
+
const activeToasts = document.querySelectorAll(
|
|
72539
|
+
`.bp3-toast:not(.bp3-toast-exit)`
|
|
72540
|
+
);
|
|
72541
|
+
if (activeToasts.length > 1) {
|
|
72542
|
+
const topToaster = document.querySelector(`.bp3-toast`);
|
|
72543
|
+
if (!topToaster)
|
|
72544
|
+
return;
|
|
72545
|
+
const closeButton = document.createElement("div");
|
|
72546
|
+
closeButton.classList.add(
|
|
72547
|
+
BUTTON,
|
|
72548
|
+
LARGE,
|
|
72549
|
+
INTENT_PRIMARY,
|
|
72550
|
+
"tg-clear-all-toasts"
|
|
72551
|
+
);
|
|
72552
|
+
closeButton.innerText = "Clear all";
|
|
72553
|
+
closeButton.onclick = window.__tgClearAllToasts;
|
|
72554
|
+
closeButton.style.position = "absolute";
|
|
72555
|
+
closeButton.style.right = "-100px";
|
|
72556
|
+
topToaster.appendChild(closeButton);
|
|
72557
|
+
}
|
|
72558
|
+
}, "maybeAddClearAll");
|
|
72443
72559
|
const uniqKey = toastToUse.show(
|
|
72444
72560
|
{
|
|
72445
72561
|
intent,
|
|
72446
72562
|
message,
|
|
72447
|
-
|
|
72563
|
+
onDismiss: () => {
|
|
72564
|
+
if (options.onDismiss) {
|
|
72565
|
+
options.onDismiss();
|
|
72566
|
+
}
|
|
72567
|
+
setTimeout(() => {
|
|
72568
|
+
maybeAddClearAll();
|
|
72569
|
+
}, 0);
|
|
72570
|
+
},
|
|
72571
|
+
timeout: options.timeout || updatedTimeout || (!window.Cypress && intent === Intent.DANGER ? 6e4 : void 0),
|
|
72448
72572
|
action: options.action,
|
|
72449
72573
|
icon: options.icon,
|
|
72450
72574
|
className: classNames$1("preserve-newline", options.className)
|
|
72451
72575
|
},
|
|
72452
72576
|
options.key
|
|
72453
72577
|
);
|
|
72578
|
+
setTimeout(() => {
|
|
72579
|
+
maybeAddClearAll();
|
|
72580
|
+
}, 0);
|
|
72454
72581
|
function clear() {
|
|
72455
72582
|
toastToUse.dismiss(uniqKey);
|
|
72583
|
+
setTimeout(() => {
|
|
72584
|
+
maybeAddClearAll();
|
|
72585
|
+
}, 0);
|
|
72456
72586
|
}
|
|
72457
72587
|
__name(clear, "clear");
|
|
72458
72588
|
clear.key = uniqKey;
|
|
@@ -72622,6 +72752,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
72622
72752
|
intent: Intent.SUCCESS,
|
|
72623
72753
|
text: "Filter",
|
|
72624
72754
|
secondaryText: "Clear",
|
|
72755
|
+
secondaryIntent: Intent.DANGER,
|
|
72625
72756
|
secondaryAction: () => {
|
|
72626
72757
|
currentFilter && removeSingleFilter(currentFilter.filterOn);
|
|
72627
72758
|
}
|
|
@@ -85333,17 +85464,20 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85333
85464
|
});
|
|
85334
85465
|
}
|
|
85335
85466
|
}, "handleSelectAllRows"));
|
|
85467
|
+
__publicField(this, "updateValidationHelper", /* @__PURE__ */ __name(() => {
|
|
85468
|
+
const { entities, reduxFormCellValidation } = computePresets(this.props);
|
|
85469
|
+
this.updateValidation(entities, reduxFormCellValidation);
|
|
85470
|
+
}, "updateValidationHelper"));
|
|
85336
85471
|
__publicField(this, "updateValidation", /* @__PURE__ */ __name((entities, newCellValidate) => {
|
|
85337
85472
|
const { change: change2, schema: schema2 } = computePresets(this.props);
|
|
85338
|
-
|
|
85339
|
-
|
|
85340
|
-
|
|
85341
|
-
|
|
85342
|
-
|
|
85343
|
-
|
|
85344
|
-
|
|
85345
|
-
|
|
85346
|
-
);
|
|
85473
|
+
const tableWideErr = validateTableWideErrors({
|
|
85474
|
+
entities,
|
|
85475
|
+
schema: schema2,
|
|
85476
|
+
newCellValidate,
|
|
85477
|
+
props: this.props
|
|
85478
|
+
});
|
|
85479
|
+
change2("reduxFormCellValidation", tableWideErr);
|
|
85480
|
+
this.forceUpdate();
|
|
85347
85481
|
}, "updateValidation"));
|
|
85348
85482
|
__publicField(this, "handleDeleteCell", /* @__PURE__ */ __name(() => {
|
|
85349
85483
|
const {
|
|
@@ -85409,7 +85543,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85409
85543
|
onFinishMsg: "Column Copied"
|
|
85410
85544
|
});
|
|
85411
85545
|
}, "handleCopyColumn"));
|
|
85412
|
-
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
85546
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg, isDownload } = {}) => {
|
|
85413
85547
|
let textToCopy = [];
|
|
85414
85548
|
const jsonToCopy = [];
|
|
85415
85549
|
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
@@ -85420,7 +85554,15 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85420
85554
|
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
85421
85555
|
if (!textToCopy)
|
|
85422
85556
|
return window.toastr.warning("No text to copy");
|
|
85423
|
-
|
|
85557
|
+
if (isDownload) {
|
|
85558
|
+
downloadjs(textToCopy.replaceAll(" ", ","), "tableData.csv", "text/csv");
|
|
85559
|
+
} else {
|
|
85560
|
+
this.handleCopyHelper(
|
|
85561
|
+
textToCopy,
|
|
85562
|
+
jsonToCopy,
|
|
85563
|
+
onFinishMsg || "Row Copied"
|
|
85564
|
+
);
|
|
85565
|
+
}
|
|
85424
85566
|
}, "handleCopyRows"));
|
|
85425
85567
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn2) => {
|
|
85426
85568
|
const { change: change2, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
@@ -85473,14 +85615,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85473
85615
|
window.toastr.success(message);
|
|
85474
85616
|
}
|
|
85475
85617
|
}, "handleCopyHelper"));
|
|
85476
|
-
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
85618
|
+
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2, opts2) => {
|
|
85477
85619
|
try {
|
|
85478
85620
|
const allRowEls = getAllRows(e2);
|
|
85479
85621
|
if (!allRowEls)
|
|
85480
85622
|
return;
|
|
85481
|
-
this.handleCopyRows(allRowEls, {
|
|
85623
|
+
this.handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts2), {
|
|
85482
85624
|
onFinishMsg: "Table Copied"
|
|
85483
|
-
});
|
|
85625
|
+
}));
|
|
85484
85626
|
} catch (error) {
|
|
85485
85627
|
console.error(`error:`, error);
|
|
85486
85628
|
window.toastr.error("Error copying rows.");
|
|
@@ -85728,7 +85870,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85728
85870
|
getRowClassName && getRowClassName(rowInfo, state2, this.props),
|
|
85729
85871
|
{
|
|
85730
85872
|
disabled: rowDisabled,
|
|
85731
|
-
selected: rowSelected && !withCheckboxes
|
|
85873
|
+
selected: rowSelected && !withCheckboxes,
|
|
85874
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
85732
85875
|
}
|
|
85733
85876
|
),
|
|
85734
85877
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
@@ -85825,7 +85968,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
85825
85968
|
this.startCellEdit(cellId);
|
|
85826
85969
|
}
|
|
85827
85970
|
}, err2 && {
|
|
85828
|
-
"data-tip": (err2 == null ? void 0 : err2.message) || err2
|
|
85971
|
+
"data-tip": (err2 == null ? void 0 : err2.message) || err2,
|
|
85972
|
+
"data-no-child-data-tip": true
|
|
85829
85973
|
}), {
|
|
85830
85974
|
onContextMenu: (e2) => {
|
|
85831
85975
|
if (!isPrimarySelected) {
|
|
@@ -87131,6 +87275,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
87131
87275
|
);
|
|
87132
87276
|
}, "renderColumnHeader"));
|
|
87133
87277
|
if (this.props.helperProp) {
|
|
87278
|
+
this.props.helperProp.updateValidationHelper = this.updateValidationHelper;
|
|
87134
87279
|
this.props.helperProp.addEditableTableEntities = this.addEditableTableEntities;
|
|
87135
87280
|
this.props.helperProp.getEditableTableInfoAndThrowFormError = this.getEditableTableInfoAndThrowFormError;
|
|
87136
87281
|
}
|
|
@@ -87730,27 +87875,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
87730
87875
|
if (n2)
|
|
87731
87876
|
this.table = n2;
|
|
87732
87877
|
},
|
|
87733
|
-
additionalBodyEl: isCellEditable && !onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
87734
|
-
"div",
|
|
87735
|
-
{
|
|
87736
|
-
style: {
|
|
87737
|
-
width: "100%",
|
|
87738
|
-
display: "flex",
|
|
87739
|
-
justifyContent: "center"
|
|
87740
|
-
}
|
|
87741
|
-
},
|
|
87742
|
-
/* @__PURE__ */ React$2.createElement(
|
|
87743
|
-
Button,
|
|
87744
|
-
{
|
|
87745
|
-
icon: "add",
|
|
87746
|
-
onClick: () => {
|
|
87747
|
-
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
87748
|
-
},
|
|
87749
|
-
minimal: true
|
|
87750
|
-
},
|
|
87751
|
-
"Add 10 Rows"
|
|
87752
|
-
)
|
|
87753
|
-
),
|
|
87754
87878
|
className: classNames$1({
|
|
87755
87879
|
isCellEditable,
|
|
87756
87880
|
"tg-table-loading": isLoading,
|
|
@@ -87792,6 +87916,37 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
87792
87916
|
SubComponent: SubComponentToUse
|
|
87793
87917
|
}, ReactTableProps)
|
|
87794
87918
|
),
|
|
87919
|
+
isCellEditable && /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React$2.createElement(
|
|
87920
|
+
"div",
|
|
87921
|
+
{
|
|
87922
|
+
style: {
|
|
87923
|
+
width: "100%",
|
|
87924
|
+
display: "flex",
|
|
87925
|
+
justifyContent: "center"
|
|
87926
|
+
}
|
|
87927
|
+
},
|
|
87928
|
+
!onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
87929
|
+
Button,
|
|
87930
|
+
{
|
|
87931
|
+
icon: "add",
|
|
87932
|
+
onClick: () => {
|
|
87933
|
+
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
87934
|
+
},
|
|
87935
|
+
minimal: true
|
|
87936
|
+
},
|
|
87937
|
+
"Add 10 Rows"
|
|
87938
|
+
)
|
|
87939
|
+
), /* @__PURE__ */ React$2.createElement(
|
|
87940
|
+
Button,
|
|
87941
|
+
{
|
|
87942
|
+
onClick: (e2) => {
|
|
87943
|
+
this.handleCopyTable(e2, { isDownload: true });
|
|
87944
|
+
},
|
|
87945
|
+
"data-tip": "Download Table as CSV",
|
|
87946
|
+
minimal: true,
|
|
87947
|
+
icon: "download"
|
|
87948
|
+
}
|
|
87949
|
+
)),
|
|
87795
87950
|
!noFooter && /* @__PURE__ */ React$2.createElement(
|
|
87796
87951
|
"div",
|
|
87797
87952
|
{
|
|
@@ -88399,6 +88554,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
88399
88554
|
onMultiFileUploadSubmit,
|
|
88400
88555
|
doAllFilesHaveSameHeaders,
|
|
88401
88556
|
csvValidationIssue,
|
|
88557
|
+
ignoredHeadersMsg,
|
|
88402
88558
|
searchResults,
|
|
88403
88559
|
matchedHeaders,
|
|
88404
88560
|
userSchema,
|
|
@@ -88416,7 +88572,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
88416
88572
|
if (v2)
|
|
88417
88573
|
flippedMatchedHeaders[v2] = k2;
|
|
88418
88574
|
});
|
|
88419
|
-
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
88575
|
+
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React$2.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
88420
88576
|
"tr",
|
|
88421
88577
|
{
|
|
88422
88578
|
style: {
|
|
@@ -88805,7 +88961,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
88805
88961
|
};
|
|
88806
88962
|
var Config = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, BasicOptions), MatchOptions), FuzzyOptions), AdvancedOptions$1);
|
|
88807
88963
|
const SPACE$2 = /[^ ]+/g;
|
|
88808
|
-
function norm(weight = 1, mantissa = 3) {
|
|
88964
|
+
function norm$1(weight = 1, mantissa = 3) {
|
|
88809
88965
|
const cache2 = /* @__PURE__ */ new Map();
|
|
88810
88966
|
const m2 = Math.pow(10, mantissa);
|
|
88811
88967
|
return {
|
|
@@ -88824,13 +88980,13 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
88824
88980
|
}
|
|
88825
88981
|
};
|
|
88826
88982
|
}
|
|
88827
|
-
__name(norm, "norm");
|
|
88983
|
+
__name(norm$1, "norm$1");
|
|
88828
88984
|
const _FuseIndex = class _FuseIndex {
|
|
88829
88985
|
constructor({
|
|
88830
88986
|
getFn = Config.getFn,
|
|
88831
88987
|
fieldNormWeight = Config.fieldNormWeight
|
|
88832
88988
|
} = {}) {
|
|
88833
|
-
this.norm = norm(fieldNormWeight, 3);
|
|
88989
|
+
this.norm = norm$1(fieldNormWeight, 3);
|
|
88834
88990
|
this.getFn = getFn;
|
|
88835
88991
|
this.isCreated = false;
|
|
88836
88992
|
this.setIndexRecords();
|
|
@@ -89979,7 +90135,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
89979
90135
|
}) {
|
|
89980
90136
|
yield resolveValidateAgainstSchema();
|
|
89981
90137
|
const userSchema = getSchema(incomingData);
|
|
89982
|
-
const { searchResults, csvValidationIssue } = yield matchSchemas({
|
|
90138
|
+
const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
|
|
89983
90139
|
userSchema,
|
|
89984
90140
|
officialSchema: validateAgainstSchema
|
|
89985
90141
|
});
|
|
@@ -90015,6 +90171,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90015
90171
|
}
|
|
90016
90172
|
});
|
|
90017
90173
|
return {
|
|
90174
|
+
ignoredHeadersMsg,
|
|
90018
90175
|
csvValidationIssue,
|
|
90019
90176
|
matchedHeaders,
|
|
90020
90177
|
userSchema,
|
|
@@ -90031,15 +90188,31 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90031
90188
|
};
|
|
90032
90189
|
let csvValidationIssue = false;
|
|
90033
90190
|
const fuse = new Fuse(userSchema.fields, options);
|
|
90191
|
+
const matchedAltPaths = [];
|
|
90034
90192
|
officialSchema.fields.forEach((h2) => {
|
|
90035
90193
|
let hasMatch = false;
|
|
90036
90194
|
let result = fuse.search(h2.path) || [];
|
|
90195
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
90196
|
+
(uh2) => norm(uh2.path) === norm(h2.path)
|
|
90197
|
+
);
|
|
90037
90198
|
userSchema.fields.forEach((uh2, i2) => {
|
|
90038
|
-
const pathMatch = uh2.path
|
|
90039
|
-
const displayNameMatch = h2.displayName && uh2.path
|
|
90040
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch.
|
|
90041
|
-
|
|
90042
|
-
|
|
90199
|
+
const pathMatch = norm(uh2.path) === norm(h2.path);
|
|
90200
|
+
const displayNameMatch = h2.displayName && norm(uh2.path) === norm(getTextFromEl(h2.displayName));
|
|
90201
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
90202
|
+
let altPath = alternatePathMatch;
|
|
90203
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
90204
|
+
altPath = alternatePathMatch.path;
|
|
90205
|
+
}
|
|
90206
|
+
return norm(uh2.path) === norm(altPath);
|
|
90207
|
+
});
|
|
90208
|
+
if (hasAlternatePathMatch) {
|
|
90209
|
+
matchedAltPaths.push(
|
|
90210
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
90211
|
+
);
|
|
90212
|
+
if (hasAlternatePathMatch.format) {
|
|
90213
|
+
h2.format = hasAlternatePathMatch.format;
|
|
90214
|
+
}
|
|
90215
|
+
}
|
|
90043
90216
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
90044
90217
|
result = result.filter(({ path: path2 }) => path2 === uh2.path);
|
|
90045
90218
|
result.unshift({
|
|
@@ -90059,6 +90232,16 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90059
90232
|
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.";
|
|
90060
90233
|
}
|
|
90061
90234
|
});
|
|
90235
|
+
const ignoredUserSchemaFields = [];
|
|
90236
|
+
userSchema.fields.forEach((uh2) => {
|
|
90237
|
+
if (!officialSchema.fields.find(
|
|
90238
|
+
(h2) => norm(h2.path) === norm(uh2.path) || norm(h2.displayName) === norm(uh2.path) || matchedAltPaths.includes(uh2.path)
|
|
90239
|
+
)) {
|
|
90240
|
+
if (userSchema.userData.some((e2) => e2[uh2.path])) {
|
|
90241
|
+
ignoredUserSchemaFields.push(uh2);
|
|
90242
|
+
}
|
|
90243
|
+
}
|
|
90244
|
+
});
|
|
90062
90245
|
if (officialSchema.coerceUserSchema) {
|
|
90063
90246
|
officialSchema.coerceUserSchema({ userSchema, officialSchema });
|
|
90064
90247
|
}
|
|
@@ -90116,9 +90299,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90116
90299
|
};
|
|
90117
90300
|
}
|
|
90118
90301
|
}
|
|
90302
|
+
let ignoredHeadersMsg;
|
|
90303
|
+
if (ignoredUserSchemaFields.length) {
|
|
90304
|
+
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(", ")}`;
|
|
90305
|
+
}
|
|
90119
90306
|
return {
|
|
90120
90307
|
searchResults: officialSchema.fields,
|
|
90121
|
-
csvValidationIssue
|
|
90308
|
+
csvValidationIssue,
|
|
90309
|
+
ignoredHeadersMsg
|
|
90122
90310
|
};
|
|
90123
90311
|
});
|
|
90124
90312
|
}
|
|
@@ -90137,6 +90325,10 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90137
90325
|
});
|
|
90138
90326
|
}
|
|
90139
90327
|
__name(resolveValidateAgainstSchema, "resolveValidateAgainstSchema");
|
|
90328
|
+
function norm(h2) {
|
|
90329
|
+
return lodashExports.snakeCase(h2).toLowerCase().replace(/ /g, "");
|
|
90330
|
+
}
|
|
90331
|
+
__name(norm, "norm");
|
|
90140
90332
|
const getInitialSteps = /* @__PURE__ */ __name((csvValidationIssue) => [
|
|
90141
90333
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
90142
90334
|
{ text: "Review Data", active: !csvValidationIssue }
|
|
@@ -90184,6 +90376,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90184
90376
|
doAllFilesHaveSameHeaders,
|
|
90185
90377
|
destroyForms,
|
|
90186
90378
|
csvValidationIssue,
|
|
90379
|
+
ignoredHeadersMsg,
|
|
90187
90380
|
searchResults,
|
|
90188
90381
|
matchedHeaders,
|
|
90189
90382
|
userSchema,
|
|
@@ -90295,6 +90488,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90295
90488
|
destroyForms,
|
|
90296
90489
|
setFilesWIssues,
|
|
90297
90490
|
csvValidationIssue,
|
|
90491
|
+
ignoredHeadersMsg,
|
|
90298
90492
|
searchResults,
|
|
90299
90493
|
matchedHeaders,
|
|
90300
90494
|
userSchema,
|
|
@@ -90330,6 +90524,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90330
90524
|
reduxFormEntitiesArray,
|
|
90331
90525
|
// onMultiFileUploadSubmit,
|
|
90332
90526
|
csvValidationIssue,
|
|
90527
|
+
ignoredHeadersMsg,
|
|
90333
90528
|
searchResults,
|
|
90334
90529
|
matchedHeaders,
|
|
90335
90530
|
userSchema,
|
|
@@ -90372,6 +90567,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90372
90567
|
searchResults,
|
|
90373
90568
|
onUploadWizardFinish,
|
|
90374
90569
|
csvValidationIssue,
|
|
90570
|
+
ignoredHeadersMsg,
|
|
90375
90571
|
matchedHeaders,
|
|
90376
90572
|
//fromRedux:
|
|
90377
90573
|
changeForm,
|
|
@@ -90401,6 +90597,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90401
90597
|
searchResults,
|
|
90402
90598
|
onUploadWizardFinish,
|
|
90403
90599
|
csvValidationIssue,
|
|
90600
|
+
ignoredHeadersMsg,
|
|
90404
90601
|
matchedHeaders,
|
|
90405
90602
|
//fromRedux:
|
|
90406
90603
|
handleSubmit: handleSubmit2,
|
|
@@ -90438,6 +90635,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
90438
90635
|
__spreadValues({}, {
|
|
90439
90636
|
onMultiFileUploadSubmit,
|
|
90440
90637
|
csvValidationIssue,
|
|
90638
|
+
ignoredHeadersMsg,
|
|
90441
90639
|
searchResults,
|
|
90442
90640
|
matchedHeaders,
|
|
90443
90641
|
userSchema,
|
|
@@ -98606,7 +98804,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
98606
98804
|
}, "isZipFile");
|
|
98607
98805
|
const getExt = /* @__PURE__ */ __name((file) => {
|
|
98608
98806
|
var _a2;
|
|
98609
|
-
return (_a2 = file == null ? void 0 : file.name) == null ? void 0 : _a2.split(".").pop();
|
|
98807
|
+
return (_a2 = (file == null ? void 0 : file.name) || (file == null ? void 0 : file.originalname)) == null ? void 0 : _a2.split(".").pop();
|
|
98610
98808
|
}, "getExt");
|
|
98611
98809
|
const isExcelFile = /* @__PURE__ */ __name((file) => getExt(file) === "xlsx", "isExcelFile");
|
|
98612
98810
|
const isCsvFile = /* @__PURE__ */ __name((file) => getExt(file) === "csv", "isCsvFile");
|
|
@@ -98694,7 +98892,9 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
98694
98892
|
const opts2 = __spreadProps(__spreadValues(__spreadValues({}, defaultCsvParserOptions), setupCsvParserOptions(parserOptions)), {
|
|
98695
98893
|
complete: (results) => {
|
|
98696
98894
|
var _a2;
|
|
98697
|
-
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter`
|
|
98895
|
+
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && (results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter` || results.errors.every(
|
|
98896
|
+
(e2) => e2.code === `TooFewFields` || e2.code === `TooManyFields`
|
|
98897
|
+
))) {
|
|
98698
98898
|
return resolve(results);
|
|
98699
98899
|
} else if (results && results.errors && results.errors.length) {
|
|
98700
98900
|
return reject("Error in csv: " + JSON.stringify(results.errors));
|
|
@@ -100244,7 +100444,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100244
100444
|
let ValidateAgainstSchema = _ValidateAgainstSchema;
|
|
100245
100445
|
const emptyPromise = Promise.resolve.bind(Promise);
|
|
100246
100446
|
function UploaderInner({
|
|
100247
|
-
accept:
|
|
100447
|
+
accept: __accept,
|
|
100248
100448
|
contentOverride: maybeContentOverride,
|
|
100249
100449
|
innerIcon,
|
|
100250
100450
|
innerText,
|
|
@@ -100274,20 +100474,37 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100274
100474
|
dropzoneProps = {},
|
|
100275
100475
|
overflowList,
|
|
100276
100476
|
autoUnzip,
|
|
100277
|
-
disabled,
|
|
100477
|
+
disabled: _disabled,
|
|
100278
100478
|
noBuildCsvOption,
|
|
100279
100479
|
initializeForm,
|
|
100280
100480
|
showFilesCount,
|
|
100281
100481
|
threeDotMenuItems,
|
|
100282
100482
|
onPreviewClick
|
|
100283
100483
|
}) {
|
|
100284
|
-
var _a2, _b2, _c2, _d2
|
|
100484
|
+
var _a2, _b2, _c2, _d2;
|
|
100485
|
+
let dropzoneDisabled = _disabled;
|
|
100486
|
+
let _accept = __accept;
|
|
100285
100487
|
const validateAgainstSchemaStore = reactExports.useRef(new ValidateAgainstSchema());
|
|
100286
|
-
const
|
|
100287
|
-
|
|
100288
|
-
|
|
100289
|
-
|
|
100290
|
-
)) == null ? void 0 :
|
|
100488
|
+
const [resolvedAccept, setResolvedAccept] = reactExports.useState();
|
|
100489
|
+
if (resolvedAccept) {
|
|
100490
|
+
_accept = resolvedAccept;
|
|
100491
|
+
}
|
|
100492
|
+
const isAcceptPromise = (__accept == null ? void 0 : __accept.then) || (Array.isArray(__accept) ? __accept.some((a2) => a2 == null ? void 0 : a2.then) : false);
|
|
100493
|
+
const acceptLoading = !resolvedAccept && isAcceptPromise && `Accept Loading...`;
|
|
100494
|
+
if (isAcceptPromise && !resolvedAccept) {
|
|
100495
|
+
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
|
|
100496
|
+
(results) => {
|
|
100497
|
+
const resolved = lodashExports.flatMap(results, (r2) => r2.value);
|
|
100498
|
+
setResolvedAccept(resolved);
|
|
100499
|
+
}
|
|
100500
|
+
);
|
|
100501
|
+
_accept = [];
|
|
100502
|
+
}
|
|
100503
|
+
if (acceptLoading)
|
|
100504
|
+
dropzoneDisabled = true;
|
|
100505
|
+
const accept = !_accept ? void 0 : isAcceptPromise && !resolvedAccept ? [] : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
100506
|
+
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);
|
|
100507
|
+
const validateAgainstSchemaToUse = _validateAgainstSchema || ((_d2 = (_c2 = accept == null ? void 0 : accept.find) == null ? void 0 : _c2.call(accept, (a2) => a2 == null ? void 0 : a2.validateAgainstSchema)) == null ? void 0 : _d2.validateAgainstSchema);
|
|
100291
100508
|
reactExports.useEffect(() => {
|
|
100292
100509
|
validateAgainstSchemaStore.current.setValidateAgainstSchema(
|
|
100293
100510
|
validateAgainstSchemaToUse
|
|
@@ -100297,7 +100514,6 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100297
100514
|
if (validateAgainstSchemaToUse) {
|
|
100298
100515
|
validateAgainstSchema = validateAgainstSchemaStore.current;
|
|
100299
100516
|
}
|
|
100300
|
-
const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
100301
100517
|
if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
|
|
100302
100518
|
accept == null ? void 0 : accept.unshift({
|
|
100303
100519
|
type: "zip",
|
|
@@ -100562,14 +100778,14 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100562
100778
|
className: "tg-uploader-inner",
|
|
100563
100779
|
style: { width: "100%", height: "fit-content", minWidth: 0 }
|
|
100564
100780
|
},
|
|
100565
|
-
simpleAccept && /* @__PURE__ */ React$2.createElement(
|
|
100781
|
+
(simpleAccept || acceptLoading) && /* @__PURE__ */ React$2.createElement(
|
|
100566
100782
|
"div",
|
|
100567
100783
|
{
|
|
100568
100784
|
className: TEXT_MUTED,
|
|
100569
100785
|
style: { fontSize: 11, marginBottom: 5 }
|
|
100570
100786
|
},
|
|
100571
100787
|
advancedAccept ? /* @__PURE__ */ React$2.createElement("div", { style: {} }, "Accepts ", /* @__PURE__ */ React$2.createElement("span", { style: {} }, advancedAccept.map((a2, i2) => {
|
|
100572
|
-
const
|
|
100788
|
+
const disabled = !(a2.description || a2.exampleFile || a2.exampleFiles);
|
|
100573
100789
|
const PopOrTooltip = a2.exampleFiles ? Popover : Tooltip;
|
|
100574
100790
|
const hasDownload = a2.exampleFile || a2.exampleFiles;
|
|
100575
100791
|
const CustomTag = !hasDownload ? "span" : "a";
|
|
@@ -100578,7 +100794,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100578
100794
|
{
|
|
100579
100795
|
key: i2,
|
|
100580
100796
|
interactionKind: "hover",
|
|
100581
|
-
disabled
|
|
100797
|
+
disabled,
|
|
100582
100798
|
modifiers: popoverOverflowModifiers,
|
|
100583
100799
|
content: a2.exampleFiles ? /* @__PURE__ */ React$2.createElement(Menu, null, a2.exampleFiles.map(
|
|
100584
100800
|
({ description: description2, subtext, exampleFile, icon }, i22) => {
|
|
@@ -100656,12 +100872,15 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100656
100872
|
)
|
|
100657
100873
|
)
|
|
100658
100874
|
);
|
|
100659
|
-
}))) :
|
|
100875
|
+
}))) : acceptLoading ? (
|
|
100876
|
+
// make the dots below "load"
|
|
100877
|
+
/* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accept Loading", /* @__PURE__ */ React$2.createElement(LoadingDots, null))
|
|
100878
|
+
) : /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accepts ", simpleAccept)
|
|
100660
100879
|
),
|
|
100661
100880
|
/* @__PURE__ */ React$2.createElement(
|
|
100662
100881
|
Dropzone$1,
|
|
100663
100882
|
__spreadValues(__spreadValues({
|
|
100664
|
-
disabled,
|
|
100883
|
+
disabled: dropzoneDisabled,
|
|
100665
100884
|
onClick: (evt) => evt.preventDefault(),
|
|
100666
100885
|
multiple: fileLimit !== 1,
|
|
100667
100886
|
accept: simpleAccept ? simpleAccept.split(", ").map((a2) => a2.startsWith(".") ? a2 : "." + a2).join(", ") : void 0
|
|
@@ -100744,7 +100963,13 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100744
100963
|
if (isCsvOrExcelFile(file)) {
|
|
100745
100964
|
let parsedF;
|
|
100746
100965
|
try {
|
|
100747
|
-
parsedF = yield parseCsvOrExcelFile(file
|
|
100966
|
+
parsedF = yield parseCsvOrExcelFile(file, {
|
|
100967
|
+
csvParserOptions: lodashExports.isFunction(
|
|
100968
|
+
validateAgainstSchema.csvParserOptions
|
|
100969
|
+
) ? validateAgainstSchema.csvParserOptions({
|
|
100970
|
+
validateAgainstSchema
|
|
100971
|
+
}) : validateAgainstSchema.csvParserOptions
|
|
100972
|
+
});
|
|
100748
100973
|
} catch (error) {
|
|
100749
100974
|
console.error("error:", error);
|
|
100750
100975
|
window.toastr && window.toastr.error(
|
|
@@ -100756,7 +100981,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100756
100981
|
csvValidationIssue: _csvValidationIssue,
|
|
100757
100982
|
matchedHeaders,
|
|
100758
100983
|
userSchema,
|
|
100759
|
-
searchResults
|
|
100984
|
+
searchResults,
|
|
100985
|
+
ignoredHeadersMsg
|
|
100760
100986
|
} = yield tryToMatchSchemas({
|
|
100761
100987
|
incomingData: parsedF.data,
|
|
100762
100988
|
validateAgainstSchema
|
|
@@ -100799,6 +101025,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100799
101025
|
filesWIssues.push({
|
|
100800
101026
|
file,
|
|
100801
101027
|
csvValidationIssue,
|
|
101028
|
+
ignoredHeadersMsg,
|
|
100802
101029
|
matchedHeaders,
|
|
100803
101030
|
userSchema,
|
|
100804
101031
|
searchResults
|
|
@@ -100807,6 +101034,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100807
101034
|
filesWOIssues.push({
|
|
100808
101035
|
file,
|
|
100809
101036
|
csvValidationIssue,
|
|
101037
|
+
ignoredHeadersMsg,
|
|
100810
101038
|
matchedHeaders,
|
|
100811
101039
|
userSchema,
|
|
100812
101040
|
searchResults
|
|
@@ -100906,7 +101134,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
100906
101134
|
"tg-dropzone-reject": isDragReject,
|
|
100907
101135
|
// 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
|
|
100908
101136
|
"tg-dropzone-accept": isDragAccept,
|
|
100909
|
-
"tg-dropzone-disabled":
|
|
101137
|
+
"tg-dropzone-disabled": dropzoneDisabled,
|
|
101138
|
+
"bp3-disabled": dropzoneDisabled
|
|
100910
101139
|
})
|
|
100911
101140
|
}),
|
|
100912
101141
|
/* @__PURE__ */ React$2.createElement("input", __spreadValues({}, getInputProps())),
|
|
@@ -112774,7 +113003,7 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
112774
113003
|
let allWarnings = [];
|
|
112775
113004
|
let makeToast = /* @__PURE__ */ __name(() => {
|
|
112776
113005
|
if (typeof window !== "undefined" && window.toastr && allWarnings.length) {
|
|
112777
|
-
window.toastr.warning(allWarnings.join("\n"));
|
|
113006
|
+
window.toastr.warning(lodashExports.uniq(allWarnings).join("\n"));
|
|
112778
113007
|
}
|
|
112779
113008
|
allWarnings = [];
|
|
112780
113009
|
}, "makeToast");
|
|
@@ -121675,6 +121904,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
121675
121904
|
}
|
|
121676
121905
|
__name(convertAmbiguousStringToRegex, "convertAmbiguousStringToRegex");
|
|
121677
121906
|
function getComplementSequenceString(sequence2, isRna2) {
|
|
121907
|
+
if (typeof sequence2 !== "string")
|
|
121908
|
+
return "";
|
|
121678
121909
|
let complementSeqString = "";
|
|
121679
121910
|
const complementMap = lodashExports.merge(
|
|
121680
121911
|
DNAComplementMap,
|
|
@@ -149916,6 +150147,7 @@ ${seq.sequence}
|
|
|
149916
150147
|
{
|
|
149917
150148
|
className: "veRowViewAxis veAxis",
|
|
149918
150149
|
height: annotationHeight,
|
|
150150
|
+
width,
|
|
149919
150151
|
style: __spreadValues({ marginTop: marginTop2, overflow: "visible", display: "block" }, style2)
|
|
149920
150152
|
},
|
|
149921
150153
|
tickMarkSVG,
|
|
@@ -152940,10 +153172,10 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
152940
153172
|
height: height2
|
|
152941
153173
|
} = annotationVisibility2;
|
|
152942
153174
|
const { sequence: sequence2 = "", cutsites = [] } = row;
|
|
152943
|
-
const reverseSequence = getComplementSequenceString(
|
|
153175
|
+
const reverseSequence = showReverseSequence ? getComplementSequenceString(
|
|
152944
153176
|
alignmentData && alignmentData.sequence || sequence2,
|
|
152945
153177
|
isRna2
|
|
152946
|
-
);
|
|
153178
|
+
) : "";
|
|
152947
153179
|
const getGaps = reactExports.useMemo(() => {
|
|
152948
153180
|
if (alignmentData) {
|
|
152949
153181
|
const gapMap = getGapMap$1(alignmentData.sequence);
|
|
@@ -154037,7 +154269,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
154037
154269
|
}
|
|
154038
154270
|
__name(showFileDialog, "showFileDialog");
|
|
154039
154271
|
const name = "@teselagen/ove";
|
|
154040
|
-
const version = "0.4.
|
|
154272
|
+
const version = "0.4.2";
|
|
154041
154273
|
const main = "./src/index.js";
|
|
154042
154274
|
const exports$1 = {
|
|
154043
154275
|
".": {
|
|
@@ -155039,8 +155271,10 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
155039
155271
|
const readOnlyDisabledTooltip = "Sorry this function is not allowed in Read-Only Mode";
|
|
155040
155272
|
const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
155041
155273
|
const noSelection = /* @__PURE__ */ __name(({ selectionLayer: selectionLayer2 = {} }) => !(selectionLayer2.start > -1 && selectionLayer2.end > -1) && "Selection Required", "noSelection");
|
|
155042
|
-
const triggerClipboardCommand = /* @__PURE__ */ __name((type) => {
|
|
155043
|
-
const wrapper2 = document.querySelector(
|
|
155274
|
+
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
155275
|
+
const wrapper2 = document.querySelector(
|
|
155276
|
+
`.${props.editorName} .veVectorInteractionWrapper`
|
|
155277
|
+
);
|
|
155044
155278
|
if (!wrapper2) {
|
|
155045
155279
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
155046
155280
|
}
|
|
@@ -155071,8 +155305,8 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
155071
155305
|
cut: {
|
|
155072
155306
|
isDisabled: (props) => props.disableBpEditing && bpEditingDisabledTooltip || props.readOnly && readOnlyDisabledTooltip || props.sequenceLength === 0,
|
|
155073
155307
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
155074
|
-
handler: () => {
|
|
155075
|
-
triggerClipboardCommand("cut");
|
|
155308
|
+
handler: (props) => {
|
|
155309
|
+
triggerClipboardCommand("cut", props);
|
|
155076
155310
|
},
|
|
155077
155311
|
hotkey: "mod+x"
|
|
155078
155312
|
},
|
|
@@ -155090,13 +155324,13 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
155090
155324
|
},
|
|
155091
155325
|
copy: {
|
|
155092
155326
|
isDisabled: (props) => props.sequenceLength === 0,
|
|
155093
|
-
handler: () => triggerClipboardCommand("copy"),
|
|
155327
|
+
handler: (props) => triggerClipboardCommand("copy", props),
|
|
155094
155328
|
hotkey: "mod+c"
|
|
155095
155329
|
},
|
|
155096
155330
|
paste: {
|
|
155097
155331
|
isDisabled: (props) => props.readOnly && readOnlyDisabledTooltip,
|
|
155098
155332
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
155099
|
-
handler: () => triggerClipboardCommand("paste"),
|
|
155333
|
+
handler: (props) => triggerClipboardCommand("paste", props),
|
|
155100
155334
|
hotkey: "mod+v"
|
|
155101
155335
|
},
|
|
155102
155336
|
undo: {
|
|
@@ -157728,7 +157962,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
157728
157962
|
...getEditDeleteHandlers("Feature", annotation),
|
|
157729
157963
|
...this.getSelectionMenuOptions(annotation),
|
|
157730
157964
|
...readOnly2 ? [] : [
|
|
157731
|
-
...parts2
|
|
157965
|
+
...parts2 ? [
|
|
157732
157966
|
"--",
|
|
157733
157967
|
{
|
|
157734
157968
|
text: "Make a Part from Feature",
|
|
@@ -157757,7 +157991,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
157757
157991
|
});
|
|
157758
157992
|
})
|
|
157759
157993
|
}
|
|
157760
|
-
],
|
|
157994
|
+
] : [],
|
|
157761
157995
|
{
|
|
157762
157996
|
text: "Merge With Another Feature",
|
|
157763
157997
|
onClick: () => {
|
|
@@ -159939,6 +160173,11 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
159939
160173
|
updateLabelsForInViewFeatures();
|
|
159940
160174
|
}
|
|
159941
160175
|
};
|
|
160176
|
+
const tickSpacingToUse = tickSpacing || (isLinViewZoomed ? massageTickSpacing(Math.ceil(120 / this.charWidth)) : massageTickSpacing(
|
|
160177
|
+
Math.floor(
|
|
160178
|
+
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10) * Math.max(1, Math.log10(1 / this.charWidth))
|
|
160179
|
+
)
|
|
160180
|
+
));
|
|
159942
160181
|
return /* @__PURE__ */ React$2.createElement(
|
|
159943
160182
|
ReactDraggable,
|
|
159944
160183
|
{
|
|
@@ -160040,9 +160279,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160040
160279
|
bpsPerRow,
|
|
160041
160280
|
fullSequence: sequenceData2.sequence,
|
|
160042
160281
|
emptyText: getEmptyText({ sequenceData: sequenceData2, caretPosition: caretPosition2 }),
|
|
160043
|
-
tickSpacing:
|
|
160044
|
-
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10)
|
|
160045
|
-
)),
|
|
160282
|
+
tickSpacing: tickSpacingToUse,
|
|
160046
160283
|
annotationVisibility: __spreadValues(__spreadValues(__spreadValues({}, rest.annotationVisibility), (!isLinViewZoomed || this.charWidth < 5) && {
|
|
160047
160284
|
translations: false,
|
|
160048
160285
|
primaryProteinSequence: false,
|
|
@@ -160327,7 +160564,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160327
160564
|
display: "flex",
|
|
160328
160565
|
flexDirection: "column",
|
|
160329
160566
|
overflowX: "visible"
|
|
160330
|
-
// overflowY: "hidden"
|
|
160331
160567
|
},
|
|
160332
160568
|
onClick: this.handleMinimapClick
|
|
160333
160569
|
},
|
|
@@ -160341,9 +160577,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160341
160577
|
}
|
|
160342
160578
|
},
|
|
160343
160579
|
style: {
|
|
160344
|
-
// maxHeight: 350,
|
|
160345
160580
|
overflowY: minimapTracksPartialHeight > 190 ? "auto" : "hidden",
|
|
160346
|
-
// overflowY: "auto",
|
|
160347
160581
|
overflowX: "hidden",
|
|
160348
160582
|
position: "relative"
|
|
160349
160583
|
},
|
|
@@ -160374,7 +160608,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160374
160608
|
{
|
|
160375
160609
|
style: {
|
|
160376
160610
|
marginTop: -3
|
|
160377
|
-
// paddingLeft: nameDivWidth
|
|
160378
160611
|
},
|
|
160379
160612
|
ref
|
|
160380
160613
|
},
|
|
@@ -160390,15 +160623,15 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
160390
160623
|
/* @__PURE__ */ React$2.createElement(
|
|
160391
160624
|
Axis$2,
|
|
160392
160625
|
__spreadValues({}, {
|
|
160393
|
-
row: { start: 0, end: seqLength },
|
|
160626
|
+
row: { start: 0, end: seqLength - 1 },
|
|
160394
160627
|
tickSpacing: massageTickSpacing(Math.floor(seqLength / 10)),
|
|
160395
160628
|
bpsPerRow: seqLength,
|
|
160396
160629
|
charWidth: charWidth2,
|
|
160397
160630
|
annotationHeight: 15,
|
|
160398
160631
|
sequenceLength: seqLength,
|
|
160399
160632
|
style: {
|
|
160400
|
-
|
|
160401
|
-
|
|
160633
|
+
height: 17,
|
|
160634
|
+
width: "100%"
|
|
160402
160635
|
}
|
|
160403
160636
|
})
|
|
160404
160637
|
)
|