@teselagen/ove 0.3.65 → 0.4.2
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 +520 -296
- package/index.es.js +521 -297
- package/index.umd.js +470 -248
- 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/Menlo.ttf +0 -0
- package/src/Monaco.ttf +0 -0
- package/src/RowItem/Axis.js +1 -3
- package/src/RowItem/StackedAnnotations/PointedAnnotation.js +1 -1
- package/src/RowItem/index.js +6 -6
- package/src/commands/index.js +8 -6
- package/src/index.js +0 -1
- package/src/style.css +16 -3
- package/src/withEditorInteractions/index.js +49 -47
- package/style.css +41 -63
package/index.cjs.js
CHANGED
|
@@ -64,8 +64,8 @@ const ReactDOM$1 = require("react-dom");
|
|
|
64
64
|
const reduxForm = require("redux-form");
|
|
65
65
|
const reactRedux = require("react-redux");
|
|
66
66
|
const select = require("@blueprintjs/select");
|
|
67
|
-
const datetime = require("@blueprintjs/datetime");
|
|
68
67
|
const redux = require("redux");
|
|
68
|
+
const datetime = require("@blueprintjs/datetime");
|
|
69
69
|
function _interopNamespaceDefault(e2) {
|
|
70
70
|
const n2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
71
71
|
if (e2) {
|
|
@@ -84,7 +84,6 @@ function _interopNamespaceDefault(e2) {
|
|
|
84
84
|
}
|
|
85
85
|
__name(_interopNamespaceDefault, "_interopNamespaceDefault");
|
|
86
86
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React$2);
|
|
87
|
-
const index$3 = "";
|
|
88
87
|
const blueprint = "";
|
|
89
88
|
const blueprintDatetime = "";
|
|
90
89
|
const blueprintIcons = "";
|
|
@@ -2840,7 +2839,7 @@ var followCursor = {
|
|
|
2840
2839
|
}
|
|
2841
2840
|
}
|
|
2842
2841
|
__name(onMouseMove, "onMouseMove");
|
|
2843
|
-
function
|
|
2842
|
+
function create5() {
|
|
2844
2843
|
if (instance.props.followCursor) {
|
|
2845
2844
|
activeInstances.push({
|
|
2846
2845
|
instance,
|
|
@@ -2849,7 +2848,7 @@ var followCursor = {
|
|
|
2849
2848
|
addMouseCoordsListener(doc);
|
|
2850
2849
|
}
|
|
2851
2850
|
}
|
|
2852
|
-
__name(
|
|
2851
|
+
__name(create5, "create");
|
|
2853
2852
|
function destroy2() {
|
|
2854
2853
|
activeInstances = activeInstances.filter(function(data) {
|
|
2855
2854
|
return data.instance !== instance;
|
|
@@ -2862,7 +2861,7 @@ var followCursor = {
|
|
|
2862
2861
|
}
|
|
2863
2862
|
__name(destroy2, "destroy");
|
|
2864
2863
|
return {
|
|
2865
|
-
onCreate:
|
|
2864
|
+
onCreate: create5,
|
|
2866
2865
|
onDestroy: destroy2,
|
|
2867
2866
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2868
2867
|
prevProps = instance.props;
|
|
@@ -2875,7 +2874,7 @@ var followCursor = {
|
|
|
2875
2874
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2876
2875
|
destroy2();
|
|
2877
2876
|
if (followCursor2) {
|
|
2878
|
-
|
|
2877
|
+
create5();
|
|
2879
2878
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2880
2879
|
addListener();
|
|
2881
2880
|
}
|
|
@@ -3042,7 +3041,7 @@ let clearMe;
|
|
|
3042
3041
|
inner2(dataTip, el, opts2);
|
|
3043
3042
|
break;
|
|
3044
3043
|
} 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
|
|
3045
|
-
!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) {
|
|
3044
|
+
!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) {
|
|
3046
3045
|
inner2(el.textContent, el, opts2);
|
|
3047
3046
|
break;
|
|
3048
3047
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
@@ -3055,6 +3054,28 @@ let clearMe;
|
|
|
3055
3054
|
}
|
|
3056
3055
|
});
|
|
3057
3056
|
})();
|
|
3057
|
+
function parentIncludesNoChildDataTip(el, count2) {
|
|
3058
|
+
if (count2 > 4)
|
|
3059
|
+
return false;
|
|
3060
|
+
if (!el)
|
|
3061
|
+
return false;
|
|
3062
|
+
if (el.getAttribute("data-no-child-data-tip"))
|
|
3063
|
+
return true;
|
|
3064
|
+
return parentIncludesNoChildDataTip(el.parentElement, count2 + 1);
|
|
3065
|
+
}
|
|
3066
|
+
__name(parentIncludesNoChildDataTip, "parentIncludesNoChildDataTip");
|
|
3067
|
+
const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
3068
|
+
const [dots, setDots] = React$2.useState("");
|
|
3069
|
+
React$2.useEffect(() => {
|
|
3070
|
+
const interval = setInterval(() => {
|
|
3071
|
+
setDots((dots2) => {
|
|
3072
|
+
return dots2.length === 3 ? "" : dots2 + ".";
|
|
3073
|
+
});
|
|
3074
|
+
}, 500);
|
|
3075
|
+
return () => clearInterval(interval);
|
|
3076
|
+
}, []);
|
|
3077
|
+
return /* @__PURE__ */ React$2.createElement("span", null, dots);
|
|
3078
|
+
}, "LoadingDots");
|
|
3058
3079
|
const AssignDefaultsModeContext = React$2.createContext({
|
|
3059
3080
|
inAssignDefaultsMode: false,
|
|
3060
3081
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -15144,11 +15165,11 @@ lodash.exports;
|
|
|
15144
15165
|
copyObject2(source, keys5(source), object3, customizer);
|
|
15145
15166
|
});
|
|
15146
15167
|
var at = flatRest2(baseAt);
|
|
15147
|
-
function
|
|
15168
|
+
function create5(prototype, properties) {
|
|
15148
15169
|
var result2 = baseCreate2(prototype);
|
|
15149
15170
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
15150
15171
|
}
|
|
15151
|
-
__name(
|
|
15172
|
+
__name(create5, "create");
|
|
15152
15173
|
var defaults2 = baseRest2(function(object3, sources) {
|
|
15153
15174
|
object3 = Object2(object3);
|
|
15154
15175
|
var index2 = -1;
|
|
@@ -15973,7 +15994,7 @@ lodash.exports;
|
|
|
15973
15994
|
lodash2.conforms = conforms;
|
|
15974
15995
|
lodash2.constant = constant2;
|
|
15975
15996
|
lodash2.countBy = countBy;
|
|
15976
|
-
lodash2.create =
|
|
15997
|
+
lodash2.create = create5;
|
|
15977
15998
|
lodash2.curry = curry;
|
|
15978
15999
|
lodash2.curryRight = curryRight;
|
|
15979
16000
|
lodash2.debounce = debounce2;
|
|
@@ -16934,11 +16955,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
16934
16955
|
return true;
|
|
16935
16956
|
}
|
|
16936
16957
|
}, "_fails");
|
|
16937
|
-
var _descriptors
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
|
|
16958
|
+
var _descriptors;
|
|
16959
|
+
var hasRequired_descriptors;
|
|
16960
|
+
function require_descriptors() {
|
|
16961
|
+
if (hasRequired_descriptors)
|
|
16962
|
+
return _descriptors;
|
|
16963
|
+
hasRequired_descriptors = 1;
|
|
16964
|
+
_descriptors = !_fails(function() {
|
|
16965
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
16966
|
+
return 7;
|
|
16967
|
+
} }).a != 7;
|
|
16968
|
+
});
|
|
16969
|
+
return _descriptors;
|
|
16970
|
+
}
|
|
16971
|
+
__name(require_descriptors, "require_descriptors");
|
|
16942
16972
|
var _domCreate;
|
|
16943
16973
|
var hasRequired_domCreate;
|
|
16944
16974
|
function require_domCreate() {
|
|
@@ -16954,7 +16984,7 @@ function require_domCreate() {
|
|
|
16954
16984
|
return _domCreate;
|
|
16955
16985
|
}
|
|
16956
16986
|
__name(require_domCreate, "require_domCreate");
|
|
16957
|
-
var _ie8DomDefine = !
|
|
16987
|
+
var _ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
16958
16988
|
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16959
16989
|
return 7;
|
|
16960
16990
|
} }).a != 7;
|
|
@@ -16972,17 +17002,17 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
16972
17002
|
return val2;
|
|
16973
17003
|
throw TypeError("Can't convert object to primitive value");
|
|
16974
17004
|
}, "_toPrimitive$1");
|
|
16975
|
-
var anObject$
|
|
17005
|
+
var anObject$3 = _anObject;
|
|
16976
17006
|
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
16977
17007
|
var toPrimitive$2 = _toPrimitive$1;
|
|
16978
|
-
var dP$
|
|
16979
|
-
_objectDp.f =
|
|
16980
|
-
anObject$
|
|
17008
|
+
var dP$2 = Object.defineProperty;
|
|
17009
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
17010
|
+
anObject$3(O2);
|
|
16981
17011
|
P2 = toPrimitive$2(P2, true);
|
|
16982
|
-
anObject$
|
|
17012
|
+
anObject$3(Attributes);
|
|
16983
17013
|
if (IE8_DOM_DEFINE$1)
|
|
16984
17014
|
try {
|
|
16985
|
-
return dP$
|
|
17015
|
+
return dP$2(O2, P2, Attributes);
|
|
16986
17016
|
} catch (e2) {
|
|
16987
17017
|
}
|
|
16988
17018
|
if ("get" in Attributes || "set" in Attributes)
|
|
@@ -16999,10 +17029,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
16999
17029
|
value
|
|
17000
17030
|
};
|
|
17001
17031
|
}, "_propertyDesc");
|
|
17002
|
-
var dP$
|
|
17032
|
+
var dP$1 = _objectDp;
|
|
17003
17033
|
var createDesc$3 = _propertyDesc;
|
|
17004
|
-
var _hide =
|
|
17005
|
-
return dP$
|
|
17034
|
+
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
17035
|
+
return dP$1.f(object3, key, createDesc$3(1, value));
|
|
17006
17036
|
} : function(object3, key, value) {
|
|
17007
17037
|
object3[key] = value;
|
|
17008
17038
|
return object3;
|
|
@@ -17016,7 +17046,7 @@ var core$3 = _coreExports;
|
|
|
17016
17046
|
var ctx$1 = _ctx;
|
|
17017
17047
|
var hide$3 = _hide;
|
|
17018
17048
|
var has$e = _has;
|
|
17019
|
-
var PROTOTYPE$
|
|
17049
|
+
var PROTOTYPE$1 = "prototype";
|
|
17020
17050
|
var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
17021
17051
|
var IS_FORCED = type & $export$8.F;
|
|
17022
17052
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -17025,8 +17055,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17025
17055
|
var IS_BIND = type & $export$8.B;
|
|
17026
17056
|
var IS_WRAP = type & $export$8.W;
|
|
17027
17057
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
17028
|
-
var expProto = exports2[PROTOTYPE$
|
|
17029
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
17058
|
+
var expProto = exports2[PROTOTYPE$1];
|
|
17059
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
|
|
17030
17060
|
var key, own2, out;
|
|
17031
17061
|
if (IS_GLOBAL)
|
|
17032
17062
|
source = name2;
|
|
@@ -17050,7 +17080,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17050
17080
|
}
|
|
17051
17081
|
return C.apply(this, arguments);
|
|
17052
17082
|
}, "F");
|
|
17053
|
-
F[PROTOTYPE$
|
|
17083
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
17054
17084
|
return F;
|
|
17055
17085
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
17056
17086
|
if (IS_PROTO) {
|
|
@@ -17073,16 +17103,25 @@ var toString$6 = {}.toString;
|
|
|
17073
17103
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
17074
17104
|
return toString$6.call(it).slice(8, -1);
|
|
17075
17105
|
}, "_cof");
|
|
17076
|
-
var
|
|
17077
|
-
var
|
|
17078
|
-
|
|
17079
|
-
|
|
17106
|
+
var _iobject;
|
|
17107
|
+
var hasRequired_iobject;
|
|
17108
|
+
function require_iobject() {
|
|
17109
|
+
if (hasRequired_iobject)
|
|
17110
|
+
return _iobject;
|
|
17111
|
+
hasRequired_iobject = 1;
|
|
17112
|
+
var cof2 = _cof;
|
|
17113
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17114
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17115
|
+
};
|
|
17116
|
+
return _iobject;
|
|
17117
|
+
}
|
|
17118
|
+
__name(require_iobject, "require_iobject");
|
|
17080
17119
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
17081
17120
|
if (it == void 0)
|
|
17082
17121
|
throw TypeError("Can't call method on " + it);
|
|
17083
17122
|
return it;
|
|
17084
17123
|
}, "_defined");
|
|
17085
|
-
var IObject =
|
|
17124
|
+
var IObject = require_iobject();
|
|
17086
17125
|
var defined$2 = _defined;
|
|
17087
17126
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
17088
17127
|
return IObject(defined$2(it));
|
|
@@ -17155,14 +17194,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
17155
17194
|
var has$d = _has;
|
|
17156
17195
|
var toIObject$4 = _toIobject;
|
|
17157
17196
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
17158
|
-
var IE_PROTO$
|
|
17197
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
17159
17198
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
17160
17199
|
var O2 = toIObject$4(object3);
|
|
17161
17200
|
var i = 0;
|
|
17162
17201
|
var result = [];
|
|
17163
17202
|
var key;
|
|
17164
17203
|
for (key in O2)
|
|
17165
|
-
if (key != IE_PROTO$
|
|
17204
|
+
if (key != IE_PROTO$1)
|
|
17166
17205
|
has$d(O2, key) && result.push(key);
|
|
17167
17206
|
while (names2.length > i)
|
|
17168
17207
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -17172,9 +17211,9 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
17172
17211
|
}, "_objectKeysInternal");
|
|
17173
17212
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
17174
17213
|
var $keys$3 = _objectKeysInternal;
|
|
17175
|
-
var enumBugKeys
|
|
17214
|
+
var enumBugKeys = _enumBugKeys;
|
|
17176
17215
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
17177
|
-
return $keys$3(O2, enumBugKeys
|
|
17216
|
+
return $keys$3(O2, enumBugKeys);
|
|
17178
17217
|
}, "keys");
|
|
17179
17218
|
var _objectGops = {};
|
|
17180
17219
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -17198,12 +17237,12 @@ function require_objectAssign() {
|
|
|
17198
17237
|
if (hasRequired_objectAssign)
|
|
17199
17238
|
return _objectAssign;
|
|
17200
17239
|
hasRequired_objectAssign = 1;
|
|
17201
|
-
var DESCRIPTORS2 =
|
|
17240
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17202
17241
|
var getKeys2 = _objectKeys;
|
|
17203
17242
|
var gOPS2 = _objectGops;
|
|
17204
17243
|
var pIE2 = require_objectPie();
|
|
17205
17244
|
var toObject2 = _toObject;
|
|
17206
|
-
var IObject2 =
|
|
17245
|
+
var IObject2 = require_iobject();
|
|
17207
17246
|
var $assign = Object.assign;
|
|
17208
17247
|
_objectAssign = !$assign || _fails(function() {
|
|
17209
17248
|
var A2 = {};
|
|
@@ -17264,19 +17303,28 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
17264
17303
|
}, "_iterStep");
|
|
17265
17304
|
var _iterators = {};
|
|
17266
17305
|
var _redefine = _hide;
|
|
17267
|
-
var
|
|
17268
|
-
var
|
|
17269
|
-
|
|
17270
|
-
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
var
|
|
17274
|
-
var
|
|
17275
|
-
var
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17306
|
+
var _objectDps;
|
|
17307
|
+
var hasRequired_objectDps;
|
|
17308
|
+
function require_objectDps() {
|
|
17309
|
+
if (hasRequired_objectDps)
|
|
17310
|
+
return _objectDps;
|
|
17311
|
+
hasRequired_objectDps = 1;
|
|
17312
|
+
var dP2 = _objectDp;
|
|
17313
|
+
var anObject2 = _anObject;
|
|
17314
|
+
var getKeys2 = _objectKeys;
|
|
17315
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties3(O2, Properties2) {
|
|
17316
|
+
anObject2(O2);
|
|
17317
|
+
var keys5 = getKeys2(Properties2);
|
|
17318
|
+
var length = keys5.length;
|
|
17319
|
+
var i = 0;
|
|
17320
|
+
var P2;
|
|
17321
|
+
while (length > i)
|
|
17322
|
+
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17323
|
+
return O2;
|
|
17324
|
+
}, "defineProperties");
|
|
17325
|
+
return _objectDps;
|
|
17326
|
+
}
|
|
17327
|
+
__name(require_objectDps, "require_objectDps");
|
|
17280
17328
|
var _html;
|
|
17281
17329
|
var hasRequired_html;
|
|
17282
17330
|
function require_html() {
|
|
@@ -17288,42 +17336,51 @@ function require_html() {
|
|
|
17288
17336
|
return _html;
|
|
17289
17337
|
}
|
|
17290
17338
|
__name(require_html, "require_html");
|
|
17291
|
-
var
|
|
17292
|
-
var
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
|
|
17297
|
-
var
|
|
17298
|
-
var
|
|
17299
|
-
var
|
|
17300
|
-
var
|
|
17301
|
-
var
|
|
17302
|
-
|
|
17303
|
-
var
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17339
|
+
var _objectCreate;
|
|
17340
|
+
var hasRequired_objectCreate;
|
|
17341
|
+
function require_objectCreate() {
|
|
17342
|
+
if (hasRequired_objectCreate)
|
|
17343
|
+
return _objectCreate;
|
|
17344
|
+
hasRequired_objectCreate = 1;
|
|
17345
|
+
var anObject2 = _anObject;
|
|
17346
|
+
var dPs = require_objectDps();
|
|
17347
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
17348
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
17349
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
17350
|
+
}, "Empty");
|
|
17351
|
+
var PROTOTYPE2 = "prototype";
|
|
17352
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
17353
|
+
var iframe = require_domCreate()("iframe");
|
|
17354
|
+
var i = enumBugKeys2.length;
|
|
17355
|
+
var lt = "<";
|
|
17356
|
+
var gt = ">";
|
|
17357
|
+
var iframeDocument;
|
|
17358
|
+
iframe.style.display = "none";
|
|
17359
|
+
require_html().appendChild(iframe);
|
|
17360
|
+
iframe.src = "javascript:";
|
|
17361
|
+
iframeDocument = iframe.contentWindow.document;
|
|
17362
|
+
iframeDocument.open();
|
|
17363
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
17364
|
+
iframeDocument.close();
|
|
17365
|
+
createDict = iframeDocument.F;
|
|
17366
|
+
while (i--)
|
|
17367
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i]];
|
|
17368
|
+
return createDict();
|
|
17369
|
+
}, "createDict");
|
|
17370
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create5(O2, Properties2) {
|
|
17371
|
+
var result;
|
|
17372
|
+
if (O2 !== null) {
|
|
17373
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
17374
|
+
result = new Empty();
|
|
17375
|
+
Empty[PROTOTYPE2] = null;
|
|
17376
|
+
result[IE_PROTO2] = O2;
|
|
17377
|
+
} else
|
|
17378
|
+
result = createDict();
|
|
17379
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17380
|
+
}, "create");
|
|
17381
|
+
return _objectCreate;
|
|
17382
|
+
}
|
|
17383
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
17327
17384
|
var _wks = { exports: {} };
|
|
17328
17385
|
var store$2 = _sharedExports("wks");
|
|
17329
17386
|
var uid$1 = _uid;
|
|
@@ -17341,7 +17398,7 @@ var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
|
17341
17398
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
17342
17399
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
17343
17400
|
}, "_setToStringTag");
|
|
17344
|
-
var create$4 =
|
|
17401
|
+
var create$4 = require_objectCreate();
|
|
17345
17402
|
var descriptor = _propertyDesc;
|
|
17346
17403
|
var setToStringTag$2 = _setToStringTag;
|
|
17347
17404
|
var IteratorPrototype = {};
|
|
@@ -17736,7 +17793,7 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17736
17793
|
}
|
|
17737
17794
|
}, "_default$8");
|
|
17738
17795
|
var $export$3 = _export;
|
|
17739
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17796
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
|
|
17740
17797
|
var $Object$2 = _coreExports.Object;
|
|
17741
17798
|
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
|
|
17742
17799
|
return $Object$2.defineProperty(it, key, desc);
|
|
@@ -17749,7 +17806,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
17749
17806
|
}
|
|
17750
17807
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
17751
17808
|
var _default$7 = function() {
|
|
17752
|
-
function
|
|
17809
|
+
function defineProperties3(target, props) {
|
|
17753
17810
|
for (var i = 0; i < props.length; i++) {
|
|
17754
17811
|
var descriptor2 = props[i];
|
|
17755
17812
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -17759,12 +17816,12 @@ var _default$7 = function() {
|
|
|
17759
17816
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
17760
17817
|
}
|
|
17761
17818
|
}
|
|
17762
|
-
__name(
|
|
17819
|
+
__name(defineProperties3, "defineProperties");
|
|
17763
17820
|
return function(Constructor, protoProps, staticProps) {
|
|
17764
17821
|
if (protoProps)
|
|
17765
|
-
|
|
17822
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
17766
17823
|
if (staticProps)
|
|
17767
|
-
|
|
17824
|
+
defineProperties3(Constructor, staticProps);
|
|
17768
17825
|
return Constructor;
|
|
17769
17826
|
};
|
|
17770
17827
|
}();
|
|
@@ -17793,23 +17850,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
17793
17850
|
// weak collections IDs
|
|
17794
17851
|
} });
|
|
17795
17852
|
}, "setMeta");
|
|
17796
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
17853
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create5) {
|
|
17797
17854
|
if (!isObject$c(it))
|
|
17798
17855
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
17799
17856
|
if (!has$a(it, META$1)) {
|
|
17800
17857
|
if (!isExtensible(it))
|
|
17801
17858
|
return "F";
|
|
17802
|
-
if (!
|
|
17859
|
+
if (!create5)
|
|
17803
17860
|
return "E";
|
|
17804
17861
|
setMeta(it);
|
|
17805
17862
|
}
|
|
17806
17863
|
return it[META$1].i;
|
|
17807
17864
|
}, "fastKey");
|
|
17808
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
17865
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create5) {
|
|
17809
17866
|
if (!has$a(it, META$1)) {
|
|
17810
17867
|
if (!isExtensible(it))
|
|
17811
17868
|
return true;
|
|
17812
|
-
if (!
|
|
17869
|
+
if (!create5)
|
|
17813
17870
|
return false;
|
|
17814
17871
|
setMeta(it);
|
|
17815
17872
|
}
|
|
@@ -17886,7 +17943,7 @@ var toPrimitive$1 = _toPrimitive$1;
|
|
|
17886
17943
|
var has$9 = _has;
|
|
17887
17944
|
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
17888
17945
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
17889
|
-
_objectGopd.f =
|
|
17946
|
+
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17890
17947
|
O2 = toIObject$1(O2);
|
|
17891
17948
|
P2 = toPrimitive$1(P2, true);
|
|
17892
17949
|
if (IE8_DOM_DEFINE)
|
|
@@ -17899,7 +17956,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17899
17956
|
}, "getOwnPropertyDescriptor");
|
|
17900
17957
|
var global$2 = _globalExports;
|
|
17901
17958
|
var has$8 = _has;
|
|
17902
|
-
var DESCRIPTORS =
|
|
17959
|
+
var DESCRIPTORS = require_descriptors();
|
|
17903
17960
|
var $export$2 = _export;
|
|
17904
17961
|
var redefine = _redefine;
|
|
17905
17962
|
var META = _metaExports.KEY;
|
|
@@ -17918,7 +17975,7 @@ var toObject$1 = _toObject;
|
|
|
17918
17975
|
var toIObject = _toIobject;
|
|
17919
17976
|
var toPrimitive = _toPrimitive$1;
|
|
17920
17977
|
var createDesc = _propertyDesc;
|
|
17921
|
-
var _create$1 =
|
|
17978
|
+
var _create$1 = require_objectCreate();
|
|
17922
17979
|
var gOPNExt = _objectGopnExt;
|
|
17923
17980
|
var $GOPD = _objectGopd;
|
|
17924
17981
|
var $GOPS = _objectGops;
|
|
@@ -17985,7 +18042,7 @@ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key,
|
|
|
17985
18042
|
}
|
|
17986
18043
|
return dP(it, key, D2);
|
|
17987
18044
|
}, "defineProperty");
|
|
17988
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
18045
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2) {
|
|
17989
18046
|
anObject(it);
|
|
17990
18047
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
17991
18048
|
var i = 0;
|
|
@@ -17995,7 +18052,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
17995
18052
|
$defineProperty$1(it, key = keys5[i++], P2[key]);
|
|
17996
18053
|
return it;
|
|
17997
18054
|
}, "defineProperties");
|
|
17998
|
-
var $create = /* @__PURE__ */ __name(function
|
|
18055
|
+
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
17999
18056
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
18000
18057
|
}, "create");
|
|
18001
18058
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -18225,9 +18282,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
18225
18282
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
18226
18283
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
18227
18284
|
var $export = _export;
|
|
18228
|
-
$export($export.S, "Object", { create:
|
|
18285
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
18229
18286
|
var $Object$1 = _coreExports.Object;
|
|
18230
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
18287
|
+
var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
|
|
18231
18288
|
return $Object$1.create(P2, D2);
|
|
18232
18289
|
}, "create");
|
|
18233
18290
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -22314,7 +22371,7 @@ function normalizeComponent(Comp) {
|
|
|
22314
22371
|
}
|
|
22315
22372
|
__name(normalizeComponent, "normalizeComponent");
|
|
22316
22373
|
var _createClass$d = function() {
|
|
22317
|
-
function
|
|
22374
|
+
function defineProperties3(target, props) {
|
|
22318
22375
|
for (var i = 0; i < props.length; i++) {
|
|
22319
22376
|
var descriptor2 = props[i];
|
|
22320
22377
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22324,12 +22381,12 @@ var _createClass$d = function() {
|
|
|
22324
22381
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22325
22382
|
}
|
|
22326
22383
|
}
|
|
22327
|
-
__name(
|
|
22384
|
+
__name(defineProperties3, "defineProperties");
|
|
22328
22385
|
return function(Constructor, protoProps, staticProps) {
|
|
22329
22386
|
if (protoProps)
|
|
22330
|
-
|
|
22387
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
22331
22388
|
if (staticProps)
|
|
22332
|
-
|
|
22389
|
+
defineProperties3(Constructor, staticProps);
|
|
22333
22390
|
return Constructor;
|
|
22334
22391
|
};
|
|
22335
22392
|
}();
|
|
@@ -22490,7 +22547,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
22490
22547
|
return target;
|
|
22491
22548
|
};
|
|
22492
22549
|
var _createClass$c = function() {
|
|
22493
|
-
function
|
|
22550
|
+
function defineProperties3(target, props) {
|
|
22494
22551
|
for (var i = 0; i < props.length; i++) {
|
|
22495
22552
|
var descriptor2 = props[i];
|
|
22496
22553
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22500,12 +22557,12 @@ var _createClass$c = function() {
|
|
|
22500
22557
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22501
22558
|
}
|
|
22502
22559
|
}
|
|
22503
|
-
__name(
|
|
22560
|
+
__name(defineProperties3, "defineProperties");
|
|
22504
22561
|
return function(Constructor, protoProps, staticProps) {
|
|
22505
22562
|
if (protoProps)
|
|
22506
|
-
|
|
22563
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
22507
22564
|
if (staticProps)
|
|
22508
|
-
|
|
22565
|
+
defineProperties3(Constructor, staticProps);
|
|
22509
22566
|
return Constructor;
|
|
22510
22567
|
};
|
|
22511
22568
|
}();
|
|
@@ -23096,7 +23153,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
23096
23153
|
}(Base);
|
|
23097
23154
|
}, "Methods");
|
|
23098
23155
|
var _createClass$b = function() {
|
|
23099
|
-
function
|
|
23156
|
+
function defineProperties3(target, props) {
|
|
23100
23157
|
for (var i = 0; i < props.length; i++) {
|
|
23101
23158
|
var descriptor2 = props[i];
|
|
23102
23159
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23106,12 +23163,12 @@ var _createClass$b = function() {
|
|
|
23106
23163
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23107
23164
|
}
|
|
23108
23165
|
}
|
|
23109
|
-
__name(
|
|
23166
|
+
__name(defineProperties3, "defineProperties");
|
|
23110
23167
|
return function(Constructor, protoProps, staticProps) {
|
|
23111
23168
|
if (protoProps)
|
|
23112
|
-
|
|
23169
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
23113
23170
|
if (staticProps)
|
|
23114
|
-
|
|
23171
|
+
defineProperties3(Constructor, staticProps);
|
|
23115
23172
|
return Constructor;
|
|
23116
23173
|
};
|
|
23117
23174
|
}();
|
|
@@ -23883,7 +23940,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
23883
23940
|
return target;
|
|
23884
23941
|
};
|
|
23885
23942
|
var _createClass$a = function() {
|
|
23886
|
-
function
|
|
23943
|
+
function defineProperties3(target, props) {
|
|
23887
23944
|
for (var i = 0; i < props.length; i++) {
|
|
23888
23945
|
var descriptor2 = props[i];
|
|
23889
23946
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23893,12 +23950,12 @@ var _createClass$a = function() {
|
|
|
23893
23950
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23894
23951
|
}
|
|
23895
23952
|
}
|
|
23896
|
-
__name(
|
|
23953
|
+
__name(defineProperties3, "defineProperties");
|
|
23897
23954
|
return function(Constructor, protoProps, staticProps) {
|
|
23898
23955
|
if (protoProps)
|
|
23899
|
-
|
|
23956
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
23900
23957
|
if (staticProps)
|
|
23901
|
-
|
|
23958
|
+
defineProperties3(Constructor, staticProps);
|
|
23902
23959
|
return Constructor;
|
|
23903
23960
|
};
|
|
23904
23961
|
}();
|
|
@@ -30222,21 +30279,21 @@ function parse$7(options) {
|
|
|
30222
30279
|
defined: [],
|
|
30223
30280
|
lazy: {},
|
|
30224
30281
|
constructs: constructs2,
|
|
30225
|
-
content:
|
|
30226
|
-
document:
|
|
30227
|
-
flow:
|
|
30228
|
-
string:
|
|
30229
|
-
text:
|
|
30282
|
+
content: create5(content$1),
|
|
30283
|
+
document: create5(document$2),
|
|
30284
|
+
flow: create5(flow$1),
|
|
30285
|
+
string: create5(string$1),
|
|
30286
|
+
text: create5(text$3)
|
|
30230
30287
|
};
|
|
30231
30288
|
return parser;
|
|
30232
|
-
function
|
|
30289
|
+
function create5(initial) {
|
|
30233
30290
|
return creator;
|
|
30234
30291
|
function creator(from3) {
|
|
30235
30292
|
return createTokenizer(parser, initial, from3);
|
|
30236
30293
|
}
|
|
30237
30294
|
__name(creator, "creator");
|
|
30238
30295
|
}
|
|
30239
|
-
__name(
|
|
30296
|
+
__name(create5, "create");
|
|
30240
30297
|
}
|
|
30241
30298
|
__name(parse$7, "parse$7");
|
|
30242
30299
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -30647,10 +30704,10 @@ function compiler(options) {
|
|
|
30647
30704
|
return data[key];
|
|
30648
30705
|
}
|
|
30649
30706
|
__name(getData, "getData");
|
|
30650
|
-
function opener(
|
|
30707
|
+
function opener(create5, and) {
|
|
30651
30708
|
return open2;
|
|
30652
30709
|
function open2(token) {
|
|
30653
|
-
enter2.call(this,
|
|
30710
|
+
enter2.call(this, create5(token), token);
|
|
30654
30711
|
if (and)
|
|
30655
30712
|
and.call(this, token);
|
|
30656
30713
|
}
|
|
@@ -39001,27 +39058,51 @@ __publicField(_TgSelect, "defaultProps", {
|
|
|
39001
39058
|
value: void 0
|
|
39002
39059
|
});
|
|
39003
39060
|
let TgSelect = _TgSelect;
|
|
39004
|
-
const
|
|
39005
|
-
const
|
|
39006
|
-
|
|
39007
|
-
|
|
39008
|
-
|
|
39009
|
-
|
|
39010
|
-
|
|
39011
|
-
|
|
39012
|
-
|
|
39013
|
-
|
|
39014
|
-
return matching;
|
|
39061
|
+
const withAsyncOptions = /* @__PURE__ */ __name((Component) => (props) => {
|
|
39062
|
+
const _a2 = props, { loadOptions, options } = _a2, rest = __objRest(_a2, ["loadOptions", "options"]);
|
|
39063
|
+
const [asyncOptions, setAsyncOptions] = React$2.useState([]);
|
|
39064
|
+
const [isLoading, setLoading] = React$2.useState(false);
|
|
39065
|
+
React$2.useEffect(() => {
|
|
39066
|
+
if (loadOptions) {
|
|
39067
|
+
setLoading(true);
|
|
39068
|
+
loadOptions().then((options2) => {
|
|
39069
|
+
setAsyncOptions(options2);
|
|
39070
|
+
setLoading(false);
|
|
39015
39071
|
});
|
|
39016
|
-
|
|
39017
|
-
|
|
39018
|
-
|
|
39019
|
-
|
|
39020
|
-
|
|
39021
|
-
|
|
39022
|
-
|
|
39023
|
-
|
|
39024
|
-
|
|
39072
|
+
}
|
|
39073
|
+
}, [loadOptions]);
|
|
39074
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
39075
|
+
Component,
|
|
39076
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
39077
|
+
isLoading: isLoading || rest.isLoading,
|
|
39078
|
+
options: loadOptions ? asyncOptions : options
|
|
39079
|
+
})
|
|
39080
|
+
);
|
|
39081
|
+
}, "withAsyncOptions");
|
|
39082
|
+
const TgSelect$1 = redux.compose(
|
|
39083
|
+
withAsyncOptions,
|
|
39084
|
+
withProps((props) => {
|
|
39085
|
+
const { multi, value, options = [] } = props;
|
|
39086
|
+
let optionsToRet = options;
|
|
39087
|
+
if (multi && value) {
|
|
39088
|
+
const valArray = getValueArray(value);
|
|
39089
|
+
optionsToRet = options.filter((op) => {
|
|
39090
|
+
const isOptionSelected = valArray.some((val2) => {
|
|
39091
|
+
if (!val2)
|
|
39092
|
+
return false;
|
|
39093
|
+
const matching = lodashExports.isEqual(val2.value, op.value);
|
|
39094
|
+
return matching;
|
|
39095
|
+
});
|
|
39096
|
+
return !isOptionSelected;
|
|
39097
|
+
});
|
|
39098
|
+
}
|
|
39099
|
+
return {
|
|
39100
|
+
// unfilteredOptions is needed for finding selected items
|
|
39101
|
+
unfilteredOptions: options,
|
|
39102
|
+
options: optionsToRet
|
|
39103
|
+
};
|
|
39104
|
+
})
|
|
39105
|
+
)(TgSelect);
|
|
39025
39106
|
const itemDisabled = /* @__PURE__ */ __name((i) => i.disabled, "itemDisabled");
|
|
39026
39107
|
const noResultsDefault = /* @__PURE__ */ React$2.createElement("div", null, "No Results...");
|
|
39027
39108
|
const renderCreateNewOption$1 = /* @__PURE__ */ __name((query, active3, handleClick) => /* @__PURE__ */ React$2.createElement(
|
|
@@ -39559,11 +39640,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
39559
39640
|
}
|
|
39560
39641
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
39561
39642
|
if (target.prototype) {
|
|
39562
|
-
var
|
|
39643
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
39563
39644
|
}, "Empty");
|
|
39564
|
-
|
|
39565
|
-
bound.prototype = new
|
|
39566
|
-
|
|
39645
|
+
Empty.prototype = target.prototype;
|
|
39646
|
+
bound.prototype = new Empty();
|
|
39647
|
+
Empty.prototype = null;
|
|
39567
39648
|
}
|
|
39568
39649
|
return bound;
|
|
39569
39650
|
}, "bind");
|
|
@@ -42371,19 +42452,59 @@ const generateToast = /* @__PURE__ */ __name((intent) => (message, options) => {
|
|
|
42371
42452
|
if (intent === core$5.Intent.DANGER) {
|
|
42372
42453
|
console.error("Toastr error message: ", message);
|
|
42373
42454
|
}
|
|
42455
|
+
const maybeAddClearAll = /* @__PURE__ */ __name(() => {
|
|
42456
|
+
const existingClearAllButtons = document.querySelectorAll(`.tg-clear-all-toasts`);
|
|
42457
|
+
existingClearAllButtons.forEach((button) => {
|
|
42458
|
+
button.remove();
|
|
42459
|
+
});
|
|
42460
|
+
const activeToasts = document.querySelectorAll(
|
|
42461
|
+
`.bp3-toast:not(.bp3-toast-exit)`
|
|
42462
|
+
);
|
|
42463
|
+
if (activeToasts.length > 1) {
|
|
42464
|
+
const topToaster = document.querySelector(`.bp3-toast`);
|
|
42465
|
+
if (!topToaster)
|
|
42466
|
+
return;
|
|
42467
|
+
const closeButton = document.createElement("div");
|
|
42468
|
+
closeButton.classList.add(
|
|
42469
|
+
core$5.Classes.BUTTON,
|
|
42470
|
+
core$5.Classes.LARGE,
|
|
42471
|
+
core$5.Classes.INTENT_PRIMARY,
|
|
42472
|
+
"tg-clear-all-toasts"
|
|
42473
|
+
);
|
|
42474
|
+
closeButton.innerText = "Clear all";
|
|
42475
|
+
closeButton.onclick = window.__tgClearAllToasts;
|
|
42476
|
+
closeButton.style.position = "absolute";
|
|
42477
|
+
closeButton.style.right = "-100px";
|
|
42478
|
+
topToaster.appendChild(closeButton);
|
|
42479
|
+
}
|
|
42480
|
+
}, "maybeAddClearAll");
|
|
42374
42481
|
const uniqKey = toastToUse.show(
|
|
42375
42482
|
{
|
|
42376
42483
|
intent,
|
|
42377
42484
|
message,
|
|
42378
|
-
|
|
42485
|
+
onDismiss: () => {
|
|
42486
|
+
if (options.onDismiss) {
|
|
42487
|
+
options.onDismiss();
|
|
42488
|
+
}
|
|
42489
|
+
setTimeout(() => {
|
|
42490
|
+
maybeAddClearAll();
|
|
42491
|
+
}, 0);
|
|
42492
|
+
},
|
|
42493
|
+
timeout: options.timeout || updatedTimeout || (!window.Cypress && intent === core$5.Intent.DANGER ? 6e4 : void 0),
|
|
42379
42494
|
action: options.action,
|
|
42380
42495
|
icon: options.icon,
|
|
42381
42496
|
className: classNames("preserve-newline", options.className)
|
|
42382
42497
|
},
|
|
42383
42498
|
options.key
|
|
42384
42499
|
);
|
|
42500
|
+
setTimeout(() => {
|
|
42501
|
+
maybeAddClearAll();
|
|
42502
|
+
}, 0);
|
|
42385
42503
|
function clear3() {
|
|
42386
42504
|
toastToUse.dismiss(uniqKey);
|
|
42505
|
+
setTimeout(() => {
|
|
42506
|
+
maybeAddClearAll();
|
|
42507
|
+
}, 0);
|
|
42387
42508
|
}
|
|
42388
42509
|
__name(clear3, "clear");
|
|
42389
42510
|
clear3.key = uniqKey;
|
|
@@ -42553,6 +42674,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React$2.Component {
|
|
|
42553
42674
|
intent: core$5.Intent.SUCCESS,
|
|
42554
42675
|
text: "Filter",
|
|
42555
42676
|
secondaryText: "Clear",
|
|
42677
|
+
secondaryIntent: core$5.Intent.DANGER,
|
|
42556
42678
|
secondaryAction: () => {
|
|
42557
42679
|
currentFilter && removeSingleFilter(currentFilter.filterOn);
|
|
42558
42680
|
}
|
|
@@ -43698,7 +43820,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
43698
43820
|
return target;
|
|
43699
43821
|
};
|
|
43700
43822
|
var _createClass$9 = function() {
|
|
43701
|
-
function
|
|
43823
|
+
function defineProperties3(target, props) {
|
|
43702
43824
|
for (var i = 0; i < props.length; i++) {
|
|
43703
43825
|
var descriptor2 = props[i];
|
|
43704
43826
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43708,12 +43830,12 @@ var _createClass$9 = function() {
|
|
|
43708
43830
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43709
43831
|
}
|
|
43710
43832
|
}
|
|
43711
|
-
__name(
|
|
43833
|
+
__name(defineProperties3, "defineProperties");
|
|
43712
43834
|
return function(Constructor, protoProps, staticProps) {
|
|
43713
43835
|
if (protoProps)
|
|
43714
|
-
|
|
43836
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43715
43837
|
if (staticProps)
|
|
43716
|
-
|
|
43838
|
+
defineProperties3(Constructor, staticProps);
|
|
43717
43839
|
return Constructor;
|
|
43718
43840
|
};
|
|
43719
43841
|
}();
|
|
@@ -43855,7 +43977,7 @@ var Alpha = function(_ref) {
|
|
|
43855
43977
|
return Alpha2;
|
|
43856
43978
|
}(React$2.PureComponent || React$2.Component);
|
|
43857
43979
|
var _createClass$8 = function() {
|
|
43858
|
-
function
|
|
43980
|
+
function defineProperties3(target, props) {
|
|
43859
43981
|
for (var i = 0; i < props.length; i++) {
|
|
43860
43982
|
var descriptor2 = props[i];
|
|
43861
43983
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43865,12 +43987,12 @@ var _createClass$8 = function() {
|
|
|
43865
43987
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43866
43988
|
}
|
|
43867
43989
|
}
|
|
43868
|
-
__name(
|
|
43990
|
+
__name(defineProperties3, "defineProperties");
|
|
43869
43991
|
return function(Constructor, protoProps, staticProps) {
|
|
43870
43992
|
if (protoProps)
|
|
43871
|
-
|
|
43993
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43872
43994
|
if (staticProps)
|
|
43873
|
-
|
|
43995
|
+
defineProperties3(Constructor, staticProps);
|
|
43874
43996
|
return Constructor;
|
|
43875
43997
|
};
|
|
43876
43998
|
}();
|
|
@@ -44103,7 +44225,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
44103
44225
|
return null;
|
|
44104
44226
|
}, "calculateChange");
|
|
44105
44227
|
var _createClass$7 = function() {
|
|
44106
|
-
function
|
|
44228
|
+
function defineProperties3(target, props) {
|
|
44107
44229
|
for (var i = 0; i < props.length; i++) {
|
|
44108
44230
|
var descriptor2 = props[i];
|
|
44109
44231
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -44113,12 +44235,12 @@ var _createClass$7 = function() {
|
|
|
44113
44235
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
44114
44236
|
}
|
|
44115
44237
|
}
|
|
44116
|
-
__name(
|
|
44238
|
+
__name(defineProperties3, "defineProperties");
|
|
44117
44239
|
return function(Constructor, protoProps, staticProps) {
|
|
44118
44240
|
if (protoProps)
|
|
44119
|
-
|
|
44241
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
44120
44242
|
if (staticProps)
|
|
44121
|
-
|
|
44243
|
+
defineProperties3(Constructor, staticProps);
|
|
44122
44244
|
return Constructor;
|
|
44123
44245
|
};
|
|
44124
44246
|
}();
|
|
@@ -45329,7 +45451,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
45329
45451
|
};
|
|
45330
45452
|
}, "calculateChange");
|
|
45331
45453
|
var _createClass$6 = function() {
|
|
45332
|
-
function
|
|
45454
|
+
function defineProperties3(target, props) {
|
|
45333
45455
|
for (var i = 0; i < props.length; i++) {
|
|
45334
45456
|
var descriptor2 = props[i];
|
|
45335
45457
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45339,12 +45461,12 @@ var _createClass$6 = function() {
|
|
|
45339
45461
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45340
45462
|
}
|
|
45341
45463
|
}
|
|
45342
|
-
__name(
|
|
45464
|
+
__name(defineProperties3, "defineProperties");
|
|
45343
45465
|
return function(Constructor, protoProps, staticProps) {
|
|
45344
45466
|
if (protoProps)
|
|
45345
|
-
|
|
45467
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
45346
45468
|
if (staticProps)
|
|
45347
|
-
|
|
45469
|
+
defineProperties3(Constructor, staticProps);
|
|
45348
45470
|
return Constructor;
|
|
45349
45471
|
};
|
|
45350
45472
|
}();
|
|
@@ -46646,7 +46768,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
46646
46768
|
return target;
|
|
46647
46769
|
};
|
|
46648
46770
|
var _createClass$5 = function() {
|
|
46649
|
-
function
|
|
46771
|
+
function defineProperties3(target, props) {
|
|
46650
46772
|
for (var i = 0; i < props.length; i++) {
|
|
46651
46773
|
var descriptor2 = props[i];
|
|
46652
46774
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46656,12 +46778,12 @@ var _createClass$5 = function() {
|
|
|
46656
46778
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46657
46779
|
}
|
|
46658
46780
|
}
|
|
46659
|
-
__name(
|
|
46781
|
+
__name(defineProperties3, "defineProperties");
|
|
46660
46782
|
return function(Constructor, protoProps, staticProps) {
|
|
46661
46783
|
if (protoProps)
|
|
46662
|
-
|
|
46784
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
46663
46785
|
if (staticProps)
|
|
46664
|
-
|
|
46786
|
+
defineProperties3(Constructor, staticProps);
|
|
46665
46787
|
return Constructor;
|
|
46666
46788
|
};
|
|
46667
46789
|
}();
|
|
@@ -46758,7 +46880,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
46758
46880
|
return target;
|
|
46759
46881
|
};
|
|
46760
46882
|
var _createClass$4 = function() {
|
|
46761
|
-
function
|
|
46883
|
+
function defineProperties3(target, props) {
|
|
46762
46884
|
for (var i = 0; i < props.length; i++) {
|
|
46763
46885
|
var descriptor2 = props[i];
|
|
46764
46886
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46768,12 +46890,12 @@ var _createClass$4 = function() {
|
|
|
46768
46890
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46769
46891
|
}
|
|
46770
46892
|
}
|
|
46771
|
-
__name(
|
|
46893
|
+
__name(defineProperties3, "defineProperties");
|
|
46772
46894
|
return function(Constructor, protoProps, staticProps) {
|
|
46773
46895
|
if (protoProps)
|
|
46774
|
-
|
|
46896
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
46775
46897
|
if (staticProps)
|
|
46776
|
-
|
|
46898
|
+
defineProperties3(Constructor, staticProps);
|
|
46777
46899
|
return Constructor;
|
|
46778
46900
|
};
|
|
46779
46901
|
}();
|
|
@@ -47831,7 +47953,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
47831
47953
|
);
|
|
47832
47954
|
};
|
|
47833
47955
|
var _createClass$3 = function() {
|
|
47834
|
-
function
|
|
47956
|
+
function defineProperties3(target, props) {
|
|
47835
47957
|
for (var i = 0; i < props.length; i++) {
|
|
47836
47958
|
var descriptor2 = props[i];
|
|
47837
47959
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -47841,12 +47963,12 @@ var _createClass$3 = function() {
|
|
|
47841
47963
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
47842
47964
|
}
|
|
47843
47965
|
}
|
|
47844
|
-
__name(
|
|
47966
|
+
__name(defineProperties3, "defineProperties");
|
|
47845
47967
|
return function(Constructor, protoProps, staticProps) {
|
|
47846
47968
|
if (protoProps)
|
|
47847
|
-
|
|
47969
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
47848
47970
|
if (staticProps)
|
|
47849
|
-
|
|
47971
|
+
defineProperties3(Constructor, staticProps);
|
|
47850
47972
|
return Constructor;
|
|
47851
47973
|
};
|
|
47852
47974
|
}();
|
|
@@ -49256,7 +49378,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
49256
49378
|
);
|
|
49257
49379
|
}, "PhotoshopPreviews");
|
|
49258
49380
|
var _createClass$2 = function() {
|
|
49259
|
-
function
|
|
49381
|
+
function defineProperties3(target, props) {
|
|
49260
49382
|
for (var i = 0; i < props.length; i++) {
|
|
49261
49383
|
var descriptor2 = props[i];
|
|
49262
49384
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -49266,12 +49388,12 @@ var _createClass$2 = function() {
|
|
|
49266
49388
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
49267
49389
|
}
|
|
49268
49390
|
}
|
|
49269
|
-
__name(
|
|
49391
|
+
__name(defineProperties3, "defineProperties");
|
|
49270
49392
|
return function(Constructor, protoProps, staticProps) {
|
|
49271
49393
|
if (protoProps)
|
|
49272
|
-
|
|
49394
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
49273
49395
|
if (staticProps)
|
|
49274
|
-
|
|
49396
|
+
defineProperties3(Constructor, staticProps);
|
|
49275
49397
|
return Constructor;
|
|
49276
49398
|
};
|
|
49277
49399
|
}();
|
|
@@ -55442,17 +55564,20 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55442
55564
|
});
|
|
55443
55565
|
}
|
|
55444
55566
|
}, "handleSelectAllRows"));
|
|
55567
|
+
__publicField(this, "updateValidationHelper", /* @__PURE__ */ __name(() => {
|
|
55568
|
+
const { entities, reduxFormCellValidation } = computePresets(this.props);
|
|
55569
|
+
this.updateValidation(entities, reduxFormCellValidation);
|
|
55570
|
+
}, "updateValidationHelper"));
|
|
55445
55571
|
__publicField(this, "updateValidation", /* @__PURE__ */ __name((entities, newCellValidate) => {
|
|
55446
55572
|
const { change, schema: schema2 } = computePresets(this.props);
|
|
55447
|
-
|
|
55448
|
-
|
|
55449
|
-
|
|
55450
|
-
|
|
55451
|
-
|
|
55452
|
-
|
|
55453
|
-
|
|
55454
|
-
|
|
55455
|
-
);
|
|
55573
|
+
const tableWideErr = validateTableWideErrors({
|
|
55574
|
+
entities,
|
|
55575
|
+
schema: schema2,
|
|
55576
|
+
newCellValidate,
|
|
55577
|
+
props: this.props
|
|
55578
|
+
});
|
|
55579
|
+
change("reduxFormCellValidation", tableWideErr);
|
|
55580
|
+
this.forceUpdate();
|
|
55456
55581
|
}, "updateValidation"));
|
|
55457
55582
|
__publicField(this, "handleDeleteCell", /* @__PURE__ */ __name(() => {
|
|
55458
55583
|
const {
|
|
@@ -55518,7 +55643,7 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55518
55643
|
onFinishMsg: "Column Copied"
|
|
55519
55644
|
});
|
|
55520
55645
|
}, "handleCopyColumn"));
|
|
55521
|
-
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
55646
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg, isDownload } = {}) => {
|
|
55522
55647
|
let textToCopy = [];
|
|
55523
55648
|
const jsonToCopy = [];
|
|
55524
55649
|
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
@@ -55529,7 +55654,15 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55529
55654
|
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
55530
55655
|
if (!textToCopy)
|
|
55531
55656
|
return window.toastr.warning("No text to copy");
|
|
55532
|
-
|
|
55657
|
+
if (isDownload) {
|
|
55658
|
+
downloadjs(textToCopy.replaceAll(" ", ","), "tableData.csv", "text/csv");
|
|
55659
|
+
} else {
|
|
55660
|
+
this.handleCopyHelper(
|
|
55661
|
+
textToCopy,
|
|
55662
|
+
jsonToCopy,
|
|
55663
|
+
onFinishMsg || "Row Copied"
|
|
55664
|
+
);
|
|
55665
|
+
}
|
|
55533
55666
|
}, "handleCopyRows"));
|
|
55534
55667
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
55535
55668
|
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
@@ -55582,14 +55715,14 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55582
55715
|
window.toastr.success(message);
|
|
55583
55716
|
}
|
|
55584
55717
|
}, "handleCopyHelper"));
|
|
55585
|
-
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
55718
|
+
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2, opts2) => {
|
|
55586
55719
|
try {
|
|
55587
55720
|
const allRowEls = getAllRows(e2);
|
|
55588
55721
|
if (!allRowEls)
|
|
55589
55722
|
return;
|
|
55590
|
-
this.handleCopyRows(allRowEls, {
|
|
55723
|
+
this.handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts2), {
|
|
55591
55724
|
onFinishMsg: "Table Copied"
|
|
55592
|
-
});
|
|
55725
|
+
}));
|
|
55593
55726
|
} catch (error) {
|
|
55594
55727
|
console.error(`error:`, error);
|
|
55595
55728
|
window.toastr.error("Error copying rows.");
|
|
@@ -55837,7 +55970,8 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55837
55970
|
getRowClassName && getRowClassName(rowInfo, state2, this.props),
|
|
55838
55971
|
{
|
|
55839
55972
|
disabled: rowDisabled,
|
|
55840
|
-
selected: rowSelected && !withCheckboxes
|
|
55973
|
+
selected: rowSelected && !withCheckboxes,
|
|
55974
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
55841
55975
|
}
|
|
55842
55976
|
),
|
|
55843
55977
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
@@ -55934,7 +56068,8 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
55934
56068
|
this.startCellEdit(cellId);
|
|
55935
56069
|
}
|
|
55936
56070
|
}, err2 && {
|
|
55937
|
-
"data-tip": (err2 == null ? void 0 : err2.message) || err2
|
|
56071
|
+
"data-tip": (err2 == null ? void 0 : err2.message) || err2,
|
|
56072
|
+
"data-no-child-data-tip": true
|
|
55938
56073
|
}), {
|
|
55939
56074
|
onContextMenu: (e2) => {
|
|
55940
56075
|
if (!isPrimarySelected) {
|
|
@@ -57240,6 +57375,7 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57240
57375
|
);
|
|
57241
57376
|
}, "renderColumnHeader"));
|
|
57242
57377
|
if (this.props.helperProp) {
|
|
57378
|
+
this.props.helperProp.updateValidationHelper = this.updateValidationHelper;
|
|
57243
57379
|
this.props.helperProp.addEditableTableEntities = this.addEditableTableEntities;
|
|
57244
57380
|
this.props.helperProp.getEditableTableInfoAndThrowFormError = this.getEditableTableInfoAndThrowFormError;
|
|
57245
57381
|
}
|
|
@@ -57839,27 +57975,6 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57839
57975
|
if (n2)
|
|
57840
57976
|
this.table = n2;
|
|
57841
57977
|
},
|
|
57842
|
-
additionalBodyEl: isCellEditable && !onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
57843
|
-
"div",
|
|
57844
|
-
{
|
|
57845
|
-
style: {
|
|
57846
|
-
width: "100%",
|
|
57847
|
-
display: "flex",
|
|
57848
|
-
justifyContent: "center"
|
|
57849
|
-
}
|
|
57850
|
-
},
|
|
57851
|
-
/* @__PURE__ */ React$2.createElement(
|
|
57852
|
-
core$5.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
57978
|
className: classNames({
|
|
57864
57979
|
isCellEditable,
|
|
57865
57980
|
"tg-table-loading": isLoading,
|
|
@@ -57901,6 +58016,37 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
57901
58016
|
SubComponent: SubComponentToUse
|
|
57902
58017
|
}, ReactTableProps)
|
|
57903
58018
|
),
|
|
58019
|
+
isCellEditable && /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React$2.createElement(
|
|
58020
|
+
"div",
|
|
58021
|
+
{
|
|
58022
|
+
style: {
|
|
58023
|
+
width: "100%",
|
|
58024
|
+
display: "flex",
|
|
58025
|
+
justifyContent: "center"
|
|
58026
|
+
}
|
|
58027
|
+
},
|
|
58028
|
+
!onlyShowRowsWErrors && /* @__PURE__ */ React$2.createElement(
|
|
58029
|
+
core$5.Button,
|
|
58030
|
+
{
|
|
58031
|
+
icon: "add",
|
|
58032
|
+
onClick: () => {
|
|
58033
|
+
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
58034
|
+
},
|
|
58035
|
+
minimal: true
|
|
58036
|
+
},
|
|
58037
|
+
"Add 10 Rows"
|
|
58038
|
+
)
|
|
58039
|
+
), /* @__PURE__ */ React$2.createElement(
|
|
58040
|
+
core$5.Button,
|
|
58041
|
+
{
|
|
58042
|
+
onClick: (e2) => {
|
|
58043
|
+
this.handleCopyTable(e2, { isDownload: true });
|
|
58044
|
+
},
|
|
58045
|
+
"data-tip": "Download Table as CSV",
|
|
58046
|
+
minimal: true,
|
|
58047
|
+
icon: "download"
|
|
58048
|
+
}
|
|
58049
|
+
)),
|
|
57904
58050
|
!noFooter && /* @__PURE__ */ React$2.createElement(
|
|
57905
58051
|
"div",
|
|
57906
58052
|
{
|
|
@@ -58508,6 +58654,7 @@ function MatchHeaders({
|
|
|
58508
58654
|
onMultiFileUploadSubmit,
|
|
58509
58655
|
doAllFilesHaveSameHeaders,
|
|
58510
58656
|
csvValidationIssue,
|
|
58657
|
+
ignoredHeadersMsg,
|
|
58511
58658
|
searchResults,
|
|
58512
58659
|
matchedHeaders,
|
|
58513
58660
|
userSchema,
|
|
@@ -58525,7 +58672,7 @@ function MatchHeaders({
|
|
|
58525
58672
|
if (v2)
|
|
58526
58673
|
flippedMatchedHeaders[v2] = k2;
|
|
58527
58674
|
});
|
|
58528
|
-
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
58675
|
+
return /* @__PURE__ */ React$2.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React$2.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React$2.createElement("br", null), /* @__PURE__ */ React$2.createElement(
|
|
58529
58676
|
"tr",
|
|
58530
58677
|
{
|
|
58531
58678
|
style: {
|
|
@@ -58914,7 +59061,7 @@ const AdvancedOptions$1 = {
|
|
|
58914
59061
|
};
|
|
58915
59062
|
var Config = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, BasicOptions), MatchOptions), FuzzyOptions), AdvancedOptions$1);
|
|
58916
59063
|
const SPACE = /[^ ]+/g;
|
|
58917
|
-
function norm(weight = 1, mantissa = 3) {
|
|
59064
|
+
function norm$1(weight = 1, mantissa = 3) {
|
|
58918
59065
|
const cache2 = /* @__PURE__ */ new Map();
|
|
58919
59066
|
const m2 = Math.pow(10, mantissa);
|
|
58920
59067
|
return {
|
|
@@ -58933,13 +59080,13 @@ function norm(weight = 1, mantissa = 3) {
|
|
|
58933
59080
|
}
|
|
58934
59081
|
};
|
|
58935
59082
|
}
|
|
58936
|
-
__name(norm, "norm");
|
|
59083
|
+
__name(norm$1, "norm$1");
|
|
58937
59084
|
const _FuseIndex = class _FuseIndex {
|
|
58938
59085
|
constructor({
|
|
58939
59086
|
getFn = Config.getFn,
|
|
58940
59087
|
fieldNormWeight = Config.fieldNormWeight
|
|
58941
59088
|
} = {}) {
|
|
58942
|
-
this.norm = norm(fieldNormWeight, 3);
|
|
59089
|
+
this.norm = norm$1(fieldNormWeight, 3);
|
|
58943
59090
|
this.getFn = getFn;
|
|
58944
59091
|
this.isCreated = false;
|
|
58945
59092
|
this.setIndexRecords();
|
|
@@ -60088,7 +60235,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60088
60235
|
}) {
|
|
60089
60236
|
yield resolveValidateAgainstSchema();
|
|
60090
60237
|
const userSchema = getSchema(incomingData);
|
|
60091
|
-
const { searchResults, csvValidationIssue } = yield matchSchemas({
|
|
60238
|
+
const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
|
|
60092
60239
|
userSchema,
|
|
60093
60240
|
officialSchema: validateAgainstSchema
|
|
60094
60241
|
});
|
|
@@ -60124,6 +60271,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60124
60271
|
}
|
|
60125
60272
|
});
|
|
60126
60273
|
return {
|
|
60274
|
+
ignoredHeadersMsg,
|
|
60127
60275
|
csvValidationIssue,
|
|
60128
60276
|
matchedHeaders,
|
|
60129
60277
|
userSchema,
|
|
@@ -60140,15 +60288,31 @@ function matchSchemas(_0) {
|
|
|
60140
60288
|
};
|
|
60141
60289
|
let csvValidationIssue = false;
|
|
60142
60290
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60291
|
+
const matchedAltPaths = [];
|
|
60143
60292
|
officialSchema.fields.forEach((h2) => {
|
|
60144
60293
|
let hasMatch = false;
|
|
60145
60294
|
let result = fuse.search(h2.path) || [];
|
|
60295
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60296
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60297
|
+
);
|
|
60146
60298
|
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
|
-
|
|
60299
|
+
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60300
|
+
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60301
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60302
|
+
let altPath = alternatePathMatch;
|
|
60303
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60304
|
+
altPath = alternatePathMatch.path;
|
|
60305
|
+
}
|
|
60306
|
+
return norm(uh.path) === norm(altPath);
|
|
60307
|
+
});
|
|
60308
|
+
if (hasAlternatePathMatch) {
|
|
60309
|
+
matchedAltPaths.push(
|
|
60310
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60311
|
+
);
|
|
60312
|
+
if (hasAlternatePathMatch.format) {
|
|
60313
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60314
|
+
}
|
|
60315
|
+
}
|
|
60152
60316
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60153
60317
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60154
60318
|
result.unshift({
|
|
@@ -60168,6 +60332,16 @@ function matchSchemas(_0) {
|
|
|
60168
60332
|
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
60333
|
}
|
|
60170
60334
|
});
|
|
60335
|
+
const ignoredUserSchemaFields = [];
|
|
60336
|
+
userSchema.fields.forEach((uh) => {
|
|
60337
|
+
if (!officialSchema.fields.find(
|
|
60338
|
+
(h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
|
|
60339
|
+
)) {
|
|
60340
|
+
if (userSchema.userData.some((e2) => e2[uh.path])) {
|
|
60341
|
+
ignoredUserSchemaFields.push(uh);
|
|
60342
|
+
}
|
|
60343
|
+
}
|
|
60344
|
+
});
|
|
60171
60345
|
if (officialSchema.coerceUserSchema) {
|
|
60172
60346
|
officialSchema.coerceUserSchema({ userSchema, officialSchema });
|
|
60173
60347
|
}
|
|
@@ -60225,9 +60399,14 @@ function matchSchemas(_0) {
|
|
|
60225
60399
|
};
|
|
60226
60400
|
}
|
|
60227
60401
|
}
|
|
60402
|
+
let ignoredHeadersMsg;
|
|
60403
|
+
if (ignoredUserSchemaFields.length) {
|
|
60404
|
+
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(", ")}`;
|
|
60405
|
+
}
|
|
60228
60406
|
return {
|
|
60229
60407
|
searchResults: officialSchema.fields,
|
|
60230
|
-
csvValidationIssue
|
|
60408
|
+
csvValidationIssue,
|
|
60409
|
+
ignoredHeadersMsg
|
|
60231
60410
|
};
|
|
60232
60411
|
});
|
|
60233
60412
|
}
|
|
@@ -60246,6 +60425,10 @@ function resolveValidateAgainstSchema() {
|
|
|
60246
60425
|
});
|
|
60247
60426
|
}
|
|
60248
60427
|
__name(resolveValidateAgainstSchema, "resolveValidateAgainstSchema");
|
|
60428
|
+
function norm(h2) {
|
|
60429
|
+
return lodashExports.snakeCase(h2).toLowerCase().replace(/ /g, "");
|
|
60430
|
+
}
|
|
60431
|
+
__name(norm, "norm");
|
|
60249
60432
|
const getInitialSteps = /* @__PURE__ */ __name((csvValidationIssue) => [
|
|
60250
60433
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
60251
60434
|
{ text: "Review Data", active: !csvValidationIssue }
|
|
@@ -60293,6 +60476,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60293
60476
|
doAllFilesHaveSameHeaders,
|
|
60294
60477
|
destroyForms,
|
|
60295
60478
|
csvValidationIssue,
|
|
60479
|
+
ignoredHeadersMsg,
|
|
60296
60480
|
searchResults,
|
|
60297
60481
|
matchedHeaders,
|
|
60298
60482
|
userSchema,
|
|
@@ -60404,6 +60588,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60404
60588
|
destroyForms,
|
|
60405
60589
|
setFilesWIssues,
|
|
60406
60590
|
csvValidationIssue,
|
|
60591
|
+
ignoredHeadersMsg,
|
|
60407
60592
|
searchResults,
|
|
60408
60593
|
matchedHeaders,
|
|
60409
60594
|
userSchema,
|
|
@@ -60439,6 +60624,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60439
60624
|
reduxFormEntitiesArray,
|
|
60440
60625
|
// onMultiFileUploadSubmit,
|
|
60441
60626
|
csvValidationIssue,
|
|
60627
|
+
ignoredHeadersMsg,
|
|
60442
60628
|
searchResults,
|
|
60443
60629
|
matchedHeaders,
|
|
60444
60630
|
userSchema,
|
|
@@ -60481,6 +60667,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60481
60667
|
searchResults,
|
|
60482
60668
|
onUploadWizardFinish,
|
|
60483
60669
|
csvValidationIssue,
|
|
60670
|
+
ignoredHeadersMsg,
|
|
60484
60671
|
matchedHeaders,
|
|
60485
60672
|
//fromRedux:
|
|
60486
60673
|
changeForm,
|
|
@@ -60510,6 +60697,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60510
60697
|
searchResults,
|
|
60511
60698
|
onUploadWizardFinish,
|
|
60512
60699
|
csvValidationIssue,
|
|
60700
|
+
ignoredHeadersMsg,
|
|
60513
60701
|
matchedHeaders,
|
|
60514
60702
|
//fromRedux:
|
|
60515
60703
|
handleSubmit,
|
|
@@ -60547,6 +60735,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60547
60735
|
__spreadValues({}, {
|
|
60548
60736
|
onMultiFileUploadSubmit,
|
|
60549
60737
|
csvValidationIssue,
|
|
60738
|
+
ignoredHeadersMsg,
|
|
60550
60739
|
searchResults,
|
|
60551
60740
|
matchedHeaders,
|
|
60552
60741
|
userSchema,
|
|
@@ -68719,7 +68908,7 @@ const isZipFile = /* @__PURE__ */ __name((file) => {
|
|
|
68719
68908
|
}, "isZipFile");
|
|
68720
68909
|
const getExt = /* @__PURE__ */ __name((file) => {
|
|
68721
68910
|
var _a2;
|
|
68722
|
-
return (_a2 = file == null ? void 0 : file.name) == null ? void 0 : _a2.split(".").pop();
|
|
68911
|
+
return (_a2 = (file == null ? void 0 : file.name) || (file == null ? void 0 : file.originalname)) == null ? void 0 : _a2.split(".").pop();
|
|
68723
68912
|
}, "getExt");
|
|
68724
68913
|
const isExcelFile = /* @__PURE__ */ __name((file) => getExt(file) === "xlsx", "isExcelFile");
|
|
68725
68914
|
const isCsvFile = /* @__PURE__ */ __name((file) => getExt(file) === "csv", "isCsvFile");
|
|
@@ -68807,7 +68996,9 @@ const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
|
|
|
68807
68996
|
const opts2 = __spreadProps(__spreadValues(__spreadValues({}, defaultCsvParserOptions), setupCsvParserOptions(parserOptions)), {
|
|
68808
68997
|
complete: (results) => {
|
|
68809
68998
|
var _a2;
|
|
68810
|
-
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter`
|
|
68999
|
+
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && (results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter` || results.errors.every(
|
|
69000
|
+
(e2) => e2.code === `TooFewFields` || e2.code === `TooManyFields`
|
|
69001
|
+
))) {
|
|
68811
69002
|
return resolve(results);
|
|
68812
69003
|
} else if (results && results.errors && results.errors.length) {
|
|
68813
69004
|
return reject("Error in csv: " + JSON.stringify(results.errors));
|
|
@@ -70357,7 +70548,7 @@ __name(_ValidateAgainstSchema, "ValidateAgainstSchema");
|
|
|
70357
70548
|
let ValidateAgainstSchema = _ValidateAgainstSchema;
|
|
70358
70549
|
const emptyPromise = Promise.resolve.bind(Promise);
|
|
70359
70550
|
function UploaderInner({
|
|
70360
|
-
accept:
|
|
70551
|
+
accept: __accept,
|
|
70361
70552
|
contentOverride: maybeContentOverride,
|
|
70362
70553
|
innerIcon,
|
|
70363
70554
|
innerText,
|
|
@@ -70387,20 +70578,37 @@ function UploaderInner({
|
|
|
70387
70578
|
dropzoneProps = {},
|
|
70388
70579
|
overflowList,
|
|
70389
70580
|
autoUnzip,
|
|
70390
|
-
disabled,
|
|
70581
|
+
disabled: _disabled,
|
|
70391
70582
|
noBuildCsvOption,
|
|
70392
70583
|
initializeForm,
|
|
70393
70584
|
showFilesCount,
|
|
70394
70585
|
threeDotMenuItems,
|
|
70395
70586
|
onPreviewClick
|
|
70396
70587
|
}) {
|
|
70397
|
-
var _a2, _b2, _c, _d
|
|
70588
|
+
var _a2, _b2, _c, _d;
|
|
70589
|
+
let dropzoneDisabled = _disabled;
|
|
70590
|
+
let _accept = __accept;
|
|
70398
70591
|
const validateAgainstSchemaStore = React$2.useRef(new ValidateAgainstSchema());
|
|
70399
|
-
const
|
|
70400
|
-
|
|
70401
|
-
|
|
70402
|
-
|
|
70403
|
-
)) == null ? void 0 :
|
|
70592
|
+
const [resolvedAccept, setResolvedAccept] = React$2.useState();
|
|
70593
|
+
if (resolvedAccept) {
|
|
70594
|
+
_accept = resolvedAccept;
|
|
70595
|
+
}
|
|
70596
|
+
const isAcceptPromise = (__accept == null ? void 0 : __accept.then) || (Array.isArray(__accept) ? __accept.some((a2) => a2 == null ? void 0 : a2.then) : false);
|
|
70597
|
+
const acceptLoading = !resolvedAccept && isAcceptPromise && `Accept Loading...`;
|
|
70598
|
+
if (isAcceptPromise && !resolvedAccept) {
|
|
70599
|
+
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
|
|
70600
|
+
(results) => {
|
|
70601
|
+
const resolved = lodashExports.flatMap(results, (r2) => r2.value);
|
|
70602
|
+
setResolvedAccept(resolved);
|
|
70603
|
+
}
|
|
70604
|
+
);
|
|
70605
|
+
_accept = [];
|
|
70606
|
+
}
|
|
70607
|
+
if (acceptLoading)
|
|
70608
|
+
dropzoneDisabled = true;
|
|
70609
|
+
const accept = !_accept ? void 0 : isAcceptPromise && !resolvedAccept ? [] : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70610
|
+
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);
|
|
70611
|
+
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
70612
|
React$2.useEffect(() => {
|
|
70405
70613
|
validateAgainstSchemaStore.current.setValidateAgainstSchema(
|
|
70406
70614
|
validateAgainstSchemaToUse
|
|
@@ -70410,7 +70618,6 @@ function UploaderInner({
|
|
|
70410
70618
|
if (validateAgainstSchemaToUse) {
|
|
70411
70619
|
validateAgainstSchema = validateAgainstSchemaStore.current;
|
|
70412
70620
|
}
|
|
70413
|
-
const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70414
70621
|
if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
|
|
70415
70622
|
accept == null ? void 0 : accept.unshift({
|
|
70416
70623
|
type: "zip",
|
|
@@ -70675,14 +70882,14 @@ function UploaderInner({
|
|
|
70675
70882
|
className: "tg-uploader-inner",
|
|
70676
70883
|
style: { width: "100%", height: "fit-content", minWidth: 0 }
|
|
70677
70884
|
},
|
|
70678
|
-
simpleAccept && /* @__PURE__ */ React$2.createElement(
|
|
70885
|
+
(simpleAccept || acceptLoading) && /* @__PURE__ */ React$2.createElement(
|
|
70679
70886
|
"div",
|
|
70680
70887
|
{
|
|
70681
70888
|
className: core$5.Classes.TEXT_MUTED,
|
|
70682
70889
|
style: { fontSize: 11, marginBottom: 5 }
|
|
70683
70890
|
},
|
|
70684
70891
|
advancedAccept ? /* @__PURE__ */ React$2.createElement("div", { style: {} }, "Accepts ", /* @__PURE__ */ React$2.createElement("span", { style: {} }, advancedAccept.map((a2, i) => {
|
|
70685
|
-
const
|
|
70892
|
+
const disabled = !(a2.description || a2.exampleFile || a2.exampleFiles);
|
|
70686
70893
|
const PopOrTooltip = a2.exampleFiles ? core$5.Popover : core$5.Tooltip;
|
|
70687
70894
|
const hasDownload = a2.exampleFile || a2.exampleFiles;
|
|
70688
70895
|
const CustomTag = !hasDownload ? "span" : "a";
|
|
@@ -70691,7 +70898,7 @@ function UploaderInner({
|
|
|
70691
70898
|
{
|
|
70692
70899
|
key: i,
|
|
70693
70900
|
interactionKind: "hover",
|
|
70694
|
-
disabled
|
|
70901
|
+
disabled,
|
|
70695
70902
|
modifiers: popoverOverflowModifiers,
|
|
70696
70903
|
content: a2.exampleFiles ? /* @__PURE__ */ React$2.createElement(core$5.Menu, null, a2.exampleFiles.map(
|
|
70697
70904
|
({ description: description2, subtext, exampleFile, icon }, i2) => {
|
|
@@ -70769,12 +70976,15 @@ function UploaderInner({
|
|
|
70769
70976
|
)
|
|
70770
70977
|
)
|
|
70771
70978
|
);
|
|
70772
|
-
}))) :
|
|
70979
|
+
}))) : acceptLoading ? (
|
|
70980
|
+
// make the dots below "load"
|
|
70981
|
+
/* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accept Loading", /* @__PURE__ */ React$2.createElement(LoadingDots, null))
|
|
70982
|
+
) : /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, "Accepts ", simpleAccept)
|
|
70773
70983
|
),
|
|
70774
70984
|
/* @__PURE__ */ React$2.createElement(
|
|
70775
70985
|
Dropzone$1,
|
|
70776
70986
|
__spreadValues(__spreadValues({
|
|
70777
|
-
disabled,
|
|
70987
|
+
disabled: dropzoneDisabled,
|
|
70778
70988
|
onClick: (evt) => evt.preventDefault(),
|
|
70779
70989
|
multiple: fileLimit !== 1,
|
|
70780
70990
|
accept: simpleAccept ? simpleAccept.split(", ").map((a2) => a2.startsWith(".") ? a2 : "." + a2).join(", ") : void 0
|
|
@@ -70857,7 +71067,13 @@ function UploaderInner({
|
|
|
70857
71067
|
if (isCsvOrExcelFile(file)) {
|
|
70858
71068
|
let parsedF;
|
|
70859
71069
|
try {
|
|
70860
|
-
parsedF = yield parseCsvOrExcelFile(file
|
|
71070
|
+
parsedF = yield parseCsvOrExcelFile(file, {
|
|
71071
|
+
csvParserOptions: lodashExports.isFunction(
|
|
71072
|
+
validateAgainstSchema.csvParserOptions
|
|
71073
|
+
) ? validateAgainstSchema.csvParserOptions({
|
|
71074
|
+
validateAgainstSchema
|
|
71075
|
+
}) : validateAgainstSchema.csvParserOptions
|
|
71076
|
+
});
|
|
70861
71077
|
} catch (error) {
|
|
70862
71078
|
console.error("error:", error);
|
|
70863
71079
|
window.toastr && window.toastr.error(
|
|
@@ -70869,7 +71085,8 @@ function UploaderInner({
|
|
|
70869
71085
|
csvValidationIssue: _csvValidationIssue,
|
|
70870
71086
|
matchedHeaders,
|
|
70871
71087
|
userSchema,
|
|
70872
|
-
searchResults
|
|
71088
|
+
searchResults,
|
|
71089
|
+
ignoredHeadersMsg
|
|
70873
71090
|
} = yield tryToMatchSchemas({
|
|
70874
71091
|
incomingData: parsedF.data,
|
|
70875
71092
|
validateAgainstSchema
|
|
@@ -70912,6 +71129,7 @@ function UploaderInner({
|
|
|
70912
71129
|
filesWIssues.push({
|
|
70913
71130
|
file,
|
|
70914
71131
|
csvValidationIssue,
|
|
71132
|
+
ignoredHeadersMsg,
|
|
70915
71133
|
matchedHeaders,
|
|
70916
71134
|
userSchema,
|
|
70917
71135
|
searchResults
|
|
@@ -70920,6 +71138,7 @@ function UploaderInner({
|
|
|
70920
71138
|
filesWOIssues.push({
|
|
70921
71139
|
file,
|
|
70922
71140
|
csvValidationIssue,
|
|
71141
|
+
ignoredHeadersMsg,
|
|
70923
71142
|
matchedHeaders,
|
|
70924
71143
|
userSchema,
|
|
70925
71144
|
searchResults
|
|
@@ -71019,7 +71238,8 @@ function UploaderInner({
|
|
|
71019
71238
|
"tg-dropzone-reject": isDragReject,
|
|
71020
71239
|
// 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
71240
|
"tg-dropzone-accept": isDragAccept,
|
|
71022
|
-
"tg-dropzone-disabled":
|
|
71241
|
+
"tg-dropzone-disabled": dropzoneDisabled,
|
|
71242
|
+
"bp3-disabled": dropzoneDisabled
|
|
71023
71243
|
})
|
|
71024
71244
|
}),
|
|
71025
71245
|
/* @__PURE__ */ React$2.createElement("input", __spreadValues({}, getInputProps())),
|
|
@@ -73383,7 +73603,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
73383
73603
|
this.cache[key] = value;
|
|
73384
73604
|
};
|
|
73385
73605
|
var cacheDefault = {
|
|
73386
|
-
create: /* @__PURE__ */ __name(function
|
|
73606
|
+
create: /* @__PURE__ */ __name(function create3() {
|
|
73387
73607
|
return new ObjectWithoutPrototypeCache();
|
|
73388
73608
|
}, "create")
|
|
73389
73609
|
};
|
|
@@ -78491,7 +78711,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78491
78711
|
}
|
|
78492
78712
|
}, "classCallCheck");
|
|
78493
78713
|
var createClass2 = function() {
|
|
78494
|
-
function
|
|
78714
|
+
function defineProperties3(target, props) {
|
|
78495
78715
|
for (var i = 0; i < props.length; i++) {
|
|
78496
78716
|
var descriptor2 = props[i];
|
|
78497
78717
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -78501,12 +78721,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78501
78721
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
78502
78722
|
}
|
|
78503
78723
|
}
|
|
78504
|
-
__name(
|
|
78724
|
+
__name(defineProperties3, "defineProperties");
|
|
78505
78725
|
return function(Constructor, protoProps, staticProps) {
|
|
78506
78726
|
if (protoProps)
|
|
78507
|
-
|
|
78727
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
78508
78728
|
if (staticProps)
|
|
78509
|
-
|
|
78729
|
+
defineProperties3(Constructor, staticProps);
|
|
78510
78730
|
return Constructor;
|
|
78511
78731
|
};
|
|
78512
78732
|
}();
|
|
@@ -82321,10 +82541,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82321
82541
|
return value;
|
|
82322
82542
|
}
|
|
82323
82543
|
__name(dateReviver, "dateReviver");
|
|
82324
|
-
function
|
|
82544
|
+
function create5(options) {
|
|
82325
82545
|
return new DiffPatcher(options);
|
|
82326
82546
|
}
|
|
82327
|
-
__name(
|
|
82547
|
+
__name(create5, "create");
|
|
82328
82548
|
var defaultInstance$4 = void 0;
|
|
82329
82549
|
function diff() {
|
|
82330
82550
|
if (!defaultInstance$4) {
|
|
@@ -82364,7 +82584,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82364
82584
|
exports3.DiffPatcher = DiffPatcher;
|
|
82365
82585
|
exports3.formatters = index2;
|
|
82366
82586
|
exports3.console = console$1;
|
|
82367
|
-
exports3.create =
|
|
82587
|
+
exports3.create = create5;
|
|
82368
82588
|
exports3.dateReviver = dateReviver;
|
|
82369
82589
|
exports3.diff = diff;
|
|
82370
82590
|
exports3.patch = patch2;
|
|
@@ -82893,7 +83113,7 @@ const modifiableTypes = [
|
|
|
82893
83113
|
let allWarnings = [];
|
|
82894
83114
|
let makeToast = /* @__PURE__ */ __name(() => {
|
|
82895
83115
|
if (typeof window !== "undefined" && window.toastr && allWarnings.length) {
|
|
82896
|
-
window.toastr.warning(allWarnings.join("\n"));
|
|
83116
|
+
window.toastr.warning(lodashExports.uniq(allWarnings).join("\n"));
|
|
82897
83117
|
}
|
|
82898
83118
|
allWarnings = [];
|
|
82899
83119
|
}, "makeToast");
|
|
@@ -91794,6 +92014,8 @@ function convertAmbiguousStringToRegex(string2, isProtein2) {
|
|
|
91794
92014
|
}
|
|
91795
92015
|
__name(convertAmbiguousStringToRegex, "convertAmbiguousStringToRegex");
|
|
91796
92016
|
function getComplementSequenceString(sequence2, isRna2) {
|
|
92017
|
+
if (typeof sequence2 !== "string")
|
|
92018
|
+
return "";
|
|
91797
92019
|
let complementSeqString = "";
|
|
91798
92020
|
const complementMap = lodashExports.merge(
|
|
91799
92021
|
DNAComplementMap,
|
|
@@ -106780,7 +107002,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
106780
107002
|
object3[name2] = value;
|
|
106781
107003
|
}
|
|
106782
107004
|
}, "defineProperty$2");
|
|
106783
|
-
var
|
|
107005
|
+
var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
106784
107006
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
106785
107007
|
var props = keys$1(map3);
|
|
106786
107008
|
if (hasSymbols2) {
|
|
@@ -106790,8 +107012,8 @@ var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
106790
107012
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
106791
107013
|
}
|
|
106792
107014
|
}, "defineProperties");
|
|
106793
|
-
|
|
106794
|
-
var defineProperties_1 =
|
|
107015
|
+
defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
|
|
107016
|
+
var defineProperties_1 = defineProperties2;
|
|
106795
107017
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
106796
107018
|
return value !== value;
|
|
106797
107019
|
}, "numberIsNaN");
|
|
@@ -115518,7 +115740,7 @@ function usePrevious(current) {
|
|
|
115518
115740
|
return ref;
|
|
115519
115741
|
}
|
|
115520
115742
|
__name(usePrevious, "usePrevious");
|
|
115521
|
-
function
|
|
115743
|
+
function create4() {
|
|
115522
115744
|
let lock = null;
|
|
115523
115745
|
function isClaimed() {
|
|
115524
115746
|
return Boolean(lock);
|
|
@@ -115557,7 +115779,7 @@ function create5() {
|
|
|
115557
115779
|
tryAbandon
|
|
115558
115780
|
};
|
|
115559
115781
|
}
|
|
115560
|
-
__name(
|
|
115782
|
+
__name(create4, "create");
|
|
115561
115783
|
function isDragging(state2) {
|
|
115562
115784
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
115563
115785
|
return false;
|
|
@@ -116600,7 +116822,7 @@ function useSensorMarshal(_ref4) {
|
|
|
116600
116822
|
enableDefaultSensors
|
|
116601
116823
|
} = _ref4;
|
|
116602
116824
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
116603
|
-
const lockAPI = React$2.useState(() =>
|
|
116825
|
+
const lockAPI = React$2.useState(() => create4())[0];
|
|
116604
116826
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
116605
116827
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
116606
116828
|
lockAPI.tryAbandon();
|
|
@@ -120631,6 +120853,7 @@ const Axis$1 = /* @__PURE__ */ __name(function(props) {
|
|
|
120631
120853
|
{
|
|
120632
120854
|
className: "veRowViewAxis veAxis",
|
|
120633
120855
|
height: annotationHeight,
|
|
120856
|
+
width,
|
|
120634
120857
|
style: __spreadValues({ marginTop, overflow: "visible", display: "block" }, style2)
|
|
120635
120858
|
},
|
|
120636
120859
|
tickMarkSVG,
|
|
@@ -121688,7 +121911,7 @@ function PointedAnnotation(props) {
|
|
|
121688
121911
|
annotation.labelClassName
|
|
121689
121912
|
),
|
|
121690
121913
|
style: {
|
|
121691
|
-
fontSize: ".
|
|
121914
|
+
// fontSize: ".8em",
|
|
121692
121915
|
fill: _textColor
|
|
121693
121916
|
},
|
|
121694
121917
|
transform: `translate(${textOffset},${height2 - 2})`
|
|
@@ -123676,10 +123899,10 @@ function RowItem(props) {
|
|
|
123676
123899
|
height: height2
|
|
123677
123900
|
} = annotationVisibility2;
|
|
123678
123901
|
const { sequence: sequence2 = "", cutsites = [] } = row;
|
|
123679
|
-
const reverseSequence = getComplementSequenceString(
|
|
123902
|
+
const reverseSequence = showReverseSequence ? getComplementSequenceString(
|
|
123680
123903
|
alignmentData && alignmentData.sequence || sequence2,
|
|
123681
123904
|
isRna2
|
|
123682
|
-
);
|
|
123905
|
+
) : "";
|
|
123683
123906
|
const getGaps = React$2.useMemo(() => {
|
|
123684
123907
|
if (alignmentData) {
|
|
123685
123908
|
const gapMap = getGapMap$1(alignmentData.sequence);
|
|
@@ -124773,7 +124996,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
124773
124996
|
}
|
|
124774
124997
|
__name(showFileDialog, "showFileDialog");
|
|
124775
124998
|
const name = "@teselagen/ove";
|
|
124776
|
-
const version = "0.
|
|
124999
|
+
const version = "0.4.1";
|
|
124777
125000
|
const main = "./src/index.js";
|
|
124778
125001
|
const exports$1 = {
|
|
124779
125002
|
".": {
|
|
@@ -125775,8 +125998,10 @@ Object.keys(defaultCopyOptions).forEach((type) => {
|
|
|
125775
125998
|
const readOnlyDisabledTooltip = "Sorry this function is not allowed in Read-Only Mode";
|
|
125776
125999
|
const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
125777
126000
|
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(
|
|
126001
|
+
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
126002
|
+
const wrapper2 = document.querySelector(
|
|
126003
|
+
`#${props.editorName} .veVectorInteractionWrapper`
|
|
126004
|
+
);
|
|
125780
126005
|
if (!wrapper2) {
|
|
125781
126006
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
125782
126007
|
}
|
|
@@ -125807,8 +126032,8 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125807
126032
|
cut: {
|
|
125808
126033
|
isDisabled: (props) => props.disableBpEditing && bpEditingDisabledTooltip || props.readOnly && readOnlyDisabledTooltip || props.sequenceLength === 0,
|
|
125809
126034
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125810
|
-
handler: () => {
|
|
125811
|
-
triggerClipboardCommand("cut");
|
|
126035
|
+
handler: (props) => {
|
|
126036
|
+
triggerClipboardCommand("cut", props);
|
|
125812
126037
|
},
|
|
125813
126038
|
hotkey: "mod+x"
|
|
125814
126039
|
},
|
|
@@ -125826,13 +126051,13 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125826
126051
|
},
|
|
125827
126052
|
copy: {
|
|
125828
126053
|
isDisabled: (props) => props.sequenceLength === 0,
|
|
125829
|
-
handler: () => triggerClipboardCommand("copy"),
|
|
126054
|
+
handler: (props) => triggerClipboardCommand("copy", props),
|
|
125830
126055
|
hotkey: "mod+c"
|
|
125831
126056
|
},
|
|
125832
126057
|
paste: {
|
|
125833
126058
|
isDisabled: (props) => props.readOnly && readOnlyDisabledTooltip,
|
|
125834
126059
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125835
|
-
handler: () => triggerClipboardCommand("paste"),
|
|
126060
|
+
handler: (props) => triggerClipboardCommand("paste", props),
|
|
125836
126061
|
hotkey: "mod+v"
|
|
125837
126062
|
},
|
|
125838
126063
|
undo: {
|
|
@@ -127081,7 +127306,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
127081
127306
|
}
|
|
127082
127307
|
}, "classCallCheck");
|
|
127083
127308
|
var createClass = function() {
|
|
127084
|
-
function
|
|
127309
|
+
function defineProperties3(target, props) {
|
|
127085
127310
|
for (var i = 0; i < props.length; i++) {
|
|
127086
127311
|
var descriptor2 = props[i];
|
|
127087
127312
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -127091,12 +127316,12 @@ var createClass = function() {
|
|
|
127091
127316
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
127092
127317
|
}
|
|
127093
127318
|
}
|
|
127094
|
-
__name(
|
|
127319
|
+
__name(defineProperties3, "defineProperties");
|
|
127095
127320
|
return function(Constructor, protoProps, staticProps) {
|
|
127096
127321
|
if (protoProps)
|
|
127097
|
-
|
|
127322
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
127098
127323
|
if (staticProps)
|
|
127099
|
-
|
|
127324
|
+
defineProperties3(Constructor, staticProps);
|
|
127100
127325
|
return Constructor;
|
|
127101
127326
|
};
|
|
127102
127327
|
}();
|
|
@@ -130070,7 +130295,7 @@ function VectorInteractionHOC(Component) {
|
|
|
130070
130295
|
...getEditDeleteHandlers("Feature", annotation),
|
|
130071
130296
|
...this.getSelectionMenuOptions(annotation),
|
|
130072
130297
|
...readOnly2 ? [] : [
|
|
130073
|
-
...parts2
|
|
130298
|
+
...parts2 ? [
|
|
130074
130299
|
"--",
|
|
130075
130300
|
{
|
|
130076
130301
|
text: "Make a Part from Feature",
|
|
@@ -130099,7 +130324,7 @@ function VectorInteractionHOC(Component) {
|
|
|
130099
130324
|
});
|
|
130100
130325
|
})
|
|
130101
130326
|
}
|
|
130102
|
-
],
|
|
130327
|
+
] : [],
|
|
130103
130328
|
{
|
|
130104
130329
|
text: "Merge With Another Feature",
|
|
130105
130330
|
onClick: () => {
|
|
@@ -132281,6 +132506,11 @@ const __LinearView = class __LinearView extends React$2.Component {
|
|
|
132281
132506
|
updateLabelsForInViewFeatures();
|
|
132282
132507
|
}
|
|
132283
132508
|
};
|
|
132509
|
+
const tickSpacingToUse = tickSpacing || (isLinViewZoomed ? massageTickSpacing(Math.ceil(120 / this.charWidth)) : massageTickSpacing(
|
|
132510
|
+
Math.floor(
|
|
132511
|
+
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10) * Math.max(1, Math.log10(1 / this.charWidth))
|
|
132512
|
+
)
|
|
132513
|
+
));
|
|
132284
132514
|
return /* @__PURE__ */ React$2.createElement(
|
|
132285
132515
|
ReactDraggable,
|
|
132286
132516
|
{
|
|
@@ -132382,9 +132612,7 @@ const __LinearView = class __LinearView extends React$2.Component {
|
|
|
132382
132612
|
bpsPerRow,
|
|
132383
132613
|
fullSequence: sequenceData2.sequence,
|
|
132384
132614
|
emptyText: getEmptyText({ sequenceData: sequenceData2, caretPosition: caretPosition2 }),
|
|
132385
|
-
tickSpacing:
|
|
132386
|
-
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10)
|
|
132387
|
-
)),
|
|
132615
|
+
tickSpacing: tickSpacingToUse,
|
|
132388
132616
|
annotationVisibility: __spreadValues(__spreadValues(__spreadValues({}, rest.annotationVisibility), (!isLinViewZoomed || this.charWidth < 5) && {
|
|
132389
132617
|
translations: false,
|
|
132390
132618
|
primaryProteinSequence: false,
|
|
@@ -132669,7 +132897,6 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132669
132897
|
display: "flex",
|
|
132670
132898
|
flexDirection: "column",
|
|
132671
132899
|
overflowX: "visible"
|
|
132672
|
-
// overflowY: "hidden"
|
|
132673
132900
|
},
|
|
132674
132901
|
onClick: this.handleMinimapClick
|
|
132675
132902
|
},
|
|
@@ -132683,9 +132910,7 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132683
132910
|
}
|
|
132684
132911
|
},
|
|
132685
132912
|
style: {
|
|
132686
|
-
// maxHeight: 350,
|
|
132687
132913
|
overflowY: minimapTracksPartialHeight > 190 ? "auto" : "hidden",
|
|
132688
|
-
// overflowY: "auto",
|
|
132689
132914
|
overflowX: "hidden",
|
|
132690
132915
|
position: "relative"
|
|
132691
132916
|
},
|
|
@@ -132716,7 +132941,6 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132716
132941
|
{
|
|
132717
132942
|
style: {
|
|
132718
132943
|
marginTop: -3
|
|
132719
|
-
// paddingLeft: nameDivWidth
|
|
132720
132944
|
},
|
|
132721
132945
|
ref
|
|
132722
132946
|
},
|
|
@@ -132732,15 +132956,15 @@ const _Minimap = class _Minimap extends React$2.Component {
|
|
|
132732
132956
|
/* @__PURE__ */ React$2.createElement(
|
|
132733
132957
|
Axis$2,
|
|
132734
132958
|
__spreadValues({}, {
|
|
132735
|
-
row: { start: 0, end: seqLength },
|
|
132959
|
+
row: { start: 0, end: seqLength - 1 },
|
|
132736
132960
|
tickSpacing: massageTickSpacing(Math.floor(seqLength / 10)),
|
|
132737
132961
|
bpsPerRow: seqLength,
|
|
132738
132962
|
charWidth: charWidth2,
|
|
132739
132963
|
annotationHeight: 15,
|
|
132740
132964
|
sequenceLength: seqLength,
|
|
132741
132965
|
style: {
|
|
132742
|
-
|
|
132743
|
-
|
|
132966
|
+
height: 17,
|
|
132967
|
+
width: "100%"
|
|
132744
132968
|
}
|
|
132745
132969
|
})
|
|
132746
132970
|
)
|