@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.es.js
CHANGED
|
@@ -59,14 +59,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
var _q, _r, _s, _t, _u, _x, _A, _H;
|
|
60
60
|
import { Icon, Classes, Button, Intent, Keys, MenuItem, Tag, useHotkeys, Popover, Tooltip, Toaster, Position, Menu, MenuDivider, NumericInput, InputGroup, Spinner, FormGroup, TextArea, Checkbox, Switch, EditableText, RadioGroup, Callout, ContextMenu, Dialog, Card, Tabs, Tab, Colors, KeyCombo, AnchorButton, Slider as Slider$1, ButtonGroup, HTMLSelect, Label, ResizeSensor, FocusStyleManager } from "@blueprintjs/core";
|
|
61
61
|
import * as React$2 from "react";
|
|
62
|
-
import React__default$1, { forwardRef, useImperativeHandle, Fragment, useMemo as useMemo$1, useRef, useReducer,
|
|
62
|
+
import React__default$1, { useState, useEffect, forwardRef, useImperativeHandle, Fragment, useMemo as useMemo$1, useRef, useReducer, useCallback as useCallback$1, memo, Component, PureComponent, createElement, isValidElement, useContext, useLayoutEffect as useLayoutEffect$1 } from "react";
|
|
63
63
|
import ReactDOM$1, { unstable_batchedUpdates, findDOMNode as findDOMNode$1, flushSync, unmountComponentAtNode, render as render$2 } from "react-dom";
|
|
64
64
|
import { FormName, formValueSelector, change, Field, reduxForm, SubmissionError, destroy as destroy$1, initialize, reducer as reducer$3, getFormValues, FieldArray } from "redux-form";
|
|
65
65
|
import { connect, useStore, Provider } from "react-redux";
|
|
66
66
|
import { getCreateNewItem, MultiSelect, Suggest } from "@blueprintjs/select";
|
|
67
|
+
import { compose as compose$1, combineReducers, createStore as createStore$2, applyMiddleware, bindActionCreators } from "redux";
|
|
67
68
|
import { DateRangeInput, DateInput } from "@blueprintjs/datetime";
|
|
68
|
-
import { combineReducers, compose as compose$1, createStore as createStore$2, applyMiddleware, bindActionCreators } from "redux";
|
|
69
|
-
const index$3 = "";
|
|
70
69
|
const blueprint = "";
|
|
71
70
|
const blueprintDatetime = "";
|
|
72
71
|
const blueprintIcons = "";
|
|
@@ -2822,7 +2821,7 @@ var followCursor = {
|
|
|
2822
2821
|
}
|
|
2823
2822
|
}
|
|
2824
2823
|
__name(onMouseMove, "onMouseMove");
|
|
2825
|
-
function
|
|
2824
|
+
function create5() {
|
|
2826
2825
|
if (instance.props.followCursor) {
|
|
2827
2826
|
activeInstances.push({
|
|
2828
2827
|
instance,
|
|
@@ -2831,7 +2830,7 @@ var followCursor = {
|
|
|
2831
2830
|
addMouseCoordsListener(doc);
|
|
2832
2831
|
}
|
|
2833
2832
|
}
|
|
2834
|
-
__name(
|
|
2833
|
+
__name(create5, "create");
|
|
2835
2834
|
function destroy2() {
|
|
2836
2835
|
activeInstances = activeInstances.filter(function(data) {
|
|
2837
2836
|
return data.instance !== instance;
|
|
@@ -2844,7 +2843,7 @@ var followCursor = {
|
|
|
2844
2843
|
}
|
|
2845
2844
|
__name(destroy2, "destroy");
|
|
2846
2845
|
return {
|
|
2847
|
-
onCreate:
|
|
2846
|
+
onCreate: create5,
|
|
2848
2847
|
onDestroy: destroy2,
|
|
2849
2848
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2850
2849
|
prevProps = instance.props;
|
|
@@ -2857,7 +2856,7 @@ var followCursor = {
|
|
|
2857
2856
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2858
2857
|
destroy2();
|
|
2859
2858
|
if (followCursor2) {
|
|
2860
|
-
|
|
2859
|
+
create5();
|
|
2861
2860
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2862
2861
|
addListener();
|
|
2863
2862
|
}
|
|
@@ -3024,7 +3023,7 @@ let clearMe;
|
|
|
3024
3023
|
inner2(dataTip, el, opts2);
|
|
3025
3024
|
break;
|
|
3026
3025
|
} else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
3027
|
-
!el.classList.contains("no-data-tip") && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3026
|
+
!el.classList.contains("no-data-tip") && !parentIncludesNoChildDataTip(el, 0) && !document.body.classList.contains("drag-active") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
3028
3027
|
inner2(el.textContent, el, opts2);
|
|
3029
3028
|
break;
|
|
3030
3029
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
@@ -3037,6 +3036,28 @@ let clearMe;
|
|
|
3037
3036
|
}
|
|
3038
3037
|
});
|
|
3039
3038
|
})();
|
|
3039
|
+
function parentIncludesNoChildDataTip(el, count2) {
|
|
3040
|
+
if (count2 > 4)
|
|
3041
|
+
return false;
|
|
3042
|
+
if (!el)
|
|
3043
|
+
return false;
|
|
3044
|
+
if (el.getAttribute("data-no-child-data-tip"))
|
|
3045
|
+
return true;
|
|
3046
|
+
return parentIncludesNoChildDataTip(el.parentElement, count2 + 1);
|
|
3047
|
+
}
|
|
3048
|
+
__name(parentIncludesNoChildDataTip, "parentIncludesNoChildDataTip");
|
|
3049
|
+
const LoadingDots = /* @__PURE__ */ __name(() => {
|
|
3050
|
+
const [dots, setDots] = useState("");
|
|
3051
|
+
useEffect(() => {
|
|
3052
|
+
const interval = setInterval(() => {
|
|
3053
|
+
setDots((dots2) => {
|
|
3054
|
+
return dots2.length === 3 ? "" : dots2 + ".";
|
|
3055
|
+
});
|
|
3056
|
+
}, 500);
|
|
3057
|
+
return () => clearInterval(interval);
|
|
3058
|
+
}, []);
|
|
3059
|
+
return /* @__PURE__ */ React__default$1.createElement("span", null, dots);
|
|
3060
|
+
}, "LoadingDots");
|
|
3040
3061
|
const AssignDefaultsModeContext = React__default$1.createContext({
|
|
3041
3062
|
inAssignDefaultsMode: false,
|
|
3042
3063
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -15126,11 +15147,11 @@ lodash.exports;
|
|
|
15126
15147
|
copyObject2(source, keys5(source), object3, customizer);
|
|
15127
15148
|
});
|
|
15128
15149
|
var at = flatRest2(baseAt);
|
|
15129
|
-
function
|
|
15150
|
+
function create5(prototype, properties) {
|
|
15130
15151
|
var result2 = baseCreate2(prototype);
|
|
15131
15152
|
return properties == null ? result2 : baseAssign2(result2, properties);
|
|
15132
15153
|
}
|
|
15133
|
-
__name(
|
|
15154
|
+
__name(create5, "create");
|
|
15134
15155
|
var defaults2 = baseRest2(function(object3, sources) {
|
|
15135
15156
|
object3 = Object2(object3);
|
|
15136
15157
|
var index2 = -1;
|
|
@@ -15955,7 +15976,7 @@ lodash.exports;
|
|
|
15955
15976
|
lodash2.conforms = conforms;
|
|
15956
15977
|
lodash2.constant = constant2;
|
|
15957
15978
|
lodash2.countBy = countBy;
|
|
15958
|
-
lodash2.create =
|
|
15979
|
+
lodash2.create = create5;
|
|
15959
15980
|
lodash2.curry = curry;
|
|
15960
15981
|
lodash2.curryRight = curryRight;
|
|
15961
15982
|
lodash2.debounce = debounce2;
|
|
@@ -16916,11 +16937,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
16916
16937
|
return true;
|
|
16917
16938
|
}
|
|
16918
16939
|
}, "_fails");
|
|
16919
|
-
var _descriptors
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16940
|
+
var _descriptors;
|
|
16941
|
+
var hasRequired_descriptors;
|
|
16942
|
+
function require_descriptors() {
|
|
16943
|
+
if (hasRequired_descriptors)
|
|
16944
|
+
return _descriptors;
|
|
16945
|
+
hasRequired_descriptors = 1;
|
|
16946
|
+
_descriptors = !_fails(function() {
|
|
16947
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
16948
|
+
return 7;
|
|
16949
|
+
} }).a != 7;
|
|
16950
|
+
});
|
|
16951
|
+
return _descriptors;
|
|
16952
|
+
}
|
|
16953
|
+
__name(require_descriptors, "require_descriptors");
|
|
16924
16954
|
var _domCreate;
|
|
16925
16955
|
var hasRequired_domCreate;
|
|
16926
16956
|
function require_domCreate() {
|
|
@@ -16936,7 +16966,7 @@ function require_domCreate() {
|
|
|
16936
16966
|
return _domCreate;
|
|
16937
16967
|
}
|
|
16938
16968
|
__name(require_domCreate, "require_domCreate");
|
|
16939
|
-
var _ie8DomDefine = !
|
|
16969
|
+
var _ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
16940
16970
|
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
16941
16971
|
return 7;
|
|
16942
16972
|
} }).a != 7;
|
|
@@ -16954,17 +16984,17 @@ var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
|
16954
16984
|
return val2;
|
|
16955
16985
|
throw TypeError("Can't convert object to primitive value");
|
|
16956
16986
|
}, "_toPrimitive$1");
|
|
16957
|
-
var anObject$
|
|
16987
|
+
var anObject$3 = _anObject;
|
|
16958
16988
|
var IE8_DOM_DEFINE$1 = _ie8DomDefine;
|
|
16959
16989
|
var toPrimitive$2 = _toPrimitive$1;
|
|
16960
|
-
var dP$
|
|
16961
|
-
_objectDp.f =
|
|
16962
|
-
anObject$
|
|
16990
|
+
var dP$2 = Object.defineProperty;
|
|
16991
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
|
|
16992
|
+
anObject$3(O2);
|
|
16963
16993
|
P2 = toPrimitive$2(P2, true);
|
|
16964
|
-
anObject$
|
|
16994
|
+
anObject$3(Attributes);
|
|
16965
16995
|
if (IE8_DOM_DEFINE$1)
|
|
16966
16996
|
try {
|
|
16967
|
-
return dP$
|
|
16997
|
+
return dP$2(O2, P2, Attributes);
|
|
16968
16998
|
} catch (e2) {
|
|
16969
16999
|
}
|
|
16970
17000
|
if ("get" in Attributes || "set" in Attributes)
|
|
@@ -16981,10 +17011,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
16981
17011
|
value
|
|
16982
17012
|
};
|
|
16983
17013
|
}, "_propertyDesc");
|
|
16984
|
-
var dP$
|
|
17014
|
+
var dP$1 = _objectDp;
|
|
16985
17015
|
var createDesc$3 = _propertyDesc;
|
|
16986
|
-
var _hide =
|
|
16987
|
-
return dP$
|
|
17016
|
+
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
17017
|
+
return dP$1.f(object3, key, createDesc$3(1, value));
|
|
16988
17018
|
} : function(object3, key, value) {
|
|
16989
17019
|
object3[key] = value;
|
|
16990
17020
|
return object3;
|
|
@@ -16998,7 +17028,7 @@ var core$3 = _coreExports;
|
|
|
16998
17028
|
var ctx$1 = _ctx;
|
|
16999
17029
|
var hide$3 = _hide;
|
|
17000
17030
|
var has$e = _has;
|
|
17001
|
-
var PROTOTYPE$
|
|
17031
|
+
var PROTOTYPE$1 = "prototype";
|
|
17002
17032
|
var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
17003
17033
|
var IS_FORCED = type & $export$8.F;
|
|
17004
17034
|
var IS_GLOBAL = type & $export$8.G;
|
|
@@ -17007,8 +17037,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17007
17037
|
var IS_BIND = type & $export$8.B;
|
|
17008
17038
|
var IS_WRAP = type & $export$8.W;
|
|
17009
17039
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
17010
|
-
var expProto = exports2[PROTOTYPE$
|
|
17011
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
17040
|
+
var expProto = exports2[PROTOTYPE$1];
|
|
17041
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
|
|
17012
17042
|
var key, own2, out;
|
|
17013
17043
|
if (IS_GLOBAL)
|
|
17014
17044
|
source = name2;
|
|
@@ -17032,7 +17062,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type, name2, source) {
|
|
|
17032
17062
|
}
|
|
17033
17063
|
return C.apply(this, arguments);
|
|
17034
17064
|
}, "F");
|
|
17035
|
-
F[PROTOTYPE$
|
|
17065
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
17036
17066
|
return F;
|
|
17037
17067
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
17038
17068
|
if (IS_PROTO) {
|
|
@@ -17055,16 +17085,25 @@ var toString$6 = {}.toString;
|
|
|
17055
17085
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
17056
17086
|
return toString$6.call(it).slice(8, -1);
|
|
17057
17087
|
}, "_cof");
|
|
17058
|
-
var
|
|
17059
|
-
var
|
|
17060
|
-
|
|
17061
|
-
|
|
17088
|
+
var _iobject;
|
|
17089
|
+
var hasRequired_iobject;
|
|
17090
|
+
function require_iobject() {
|
|
17091
|
+
if (hasRequired_iobject)
|
|
17092
|
+
return _iobject;
|
|
17093
|
+
hasRequired_iobject = 1;
|
|
17094
|
+
var cof2 = _cof;
|
|
17095
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17096
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17097
|
+
};
|
|
17098
|
+
return _iobject;
|
|
17099
|
+
}
|
|
17100
|
+
__name(require_iobject, "require_iobject");
|
|
17062
17101
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
17063
17102
|
if (it == void 0)
|
|
17064
17103
|
throw TypeError("Can't call method on " + it);
|
|
17065
17104
|
return it;
|
|
17066
17105
|
}, "_defined");
|
|
17067
|
-
var IObject =
|
|
17106
|
+
var IObject = require_iobject();
|
|
17068
17107
|
var defined$2 = _defined;
|
|
17069
17108
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
17070
17109
|
return IObject(defined$2(it));
|
|
@@ -17137,14 +17176,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
17137
17176
|
var has$d = _has;
|
|
17138
17177
|
var toIObject$4 = _toIobject;
|
|
17139
17178
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
17140
|
-
var IE_PROTO$
|
|
17179
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
17141
17180
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
17142
17181
|
var O2 = toIObject$4(object3);
|
|
17143
17182
|
var i = 0;
|
|
17144
17183
|
var result = [];
|
|
17145
17184
|
var key;
|
|
17146
17185
|
for (key in O2)
|
|
17147
|
-
if (key != IE_PROTO$
|
|
17186
|
+
if (key != IE_PROTO$1)
|
|
17148
17187
|
has$d(O2, key) && result.push(key);
|
|
17149
17188
|
while (names2.length > i)
|
|
17150
17189
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -17154,9 +17193,9 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
17154
17193
|
}, "_objectKeysInternal");
|
|
17155
17194
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
17156
17195
|
var $keys$3 = _objectKeysInternal;
|
|
17157
|
-
var enumBugKeys
|
|
17196
|
+
var enumBugKeys = _enumBugKeys;
|
|
17158
17197
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
17159
|
-
return $keys$3(O2, enumBugKeys
|
|
17198
|
+
return $keys$3(O2, enumBugKeys);
|
|
17160
17199
|
}, "keys");
|
|
17161
17200
|
var _objectGops = {};
|
|
17162
17201
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -17180,12 +17219,12 @@ function require_objectAssign() {
|
|
|
17180
17219
|
if (hasRequired_objectAssign)
|
|
17181
17220
|
return _objectAssign;
|
|
17182
17221
|
hasRequired_objectAssign = 1;
|
|
17183
|
-
var DESCRIPTORS2 =
|
|
17222
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17184
17223
|
var getKeys2 = _objectKeys;
|
|
17185
17224
|
var gOPS2 = _objectGops;
|
|
17186
17225
|
var pIE2 = require_objectPie();
|
|
17187
17226
|
var toObject2 = _toObject;
|
|
17188
|
-
var IObject2 =
|
|
17227
|
+
var IObject2 = require_iobject();
|
|
17189
17228
|
var $assign = Object.assign;
|
|
17190
17229
|
_objectAssign = !$assign || _fails(function() {
|
|
17191
17230
|
var A2 = {};
|
|
@@ -17246,19 +17285,28 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
17246
17285
|
}, "_iterStep");
|
|
17247
17286
|
var _iterators = {};
|
|
17248
17287
|
var _redefine = _hide;
|
|
17249
|
-
var
|
|
17250
|
-
var
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
var
|
|
17256
|
-
var
|
|
17257
|
-
var
|
|
17258
|
-
|
|
17259
|
-
|
|
17260
|
-
|
|
17261
|
-
|
|
17288
|
+
var _objectDps;
|
|
17289
|
+
var hasRequired_objectDps;
|
|
17290
|
+
function require_objectDps() {
|
|
17291
|
+
if (hasRequired_objectDps)
|
|
17292
|
+
return _objectDps;
|
|
17293
|
+
hasRequired_objectDps = 1;
|
|
17294
|
+
var dP2 = _objectDp;
|
|
17295
|
+
var anObject2 = _anObject;
|
|
17296
|
+
var getKeys2 = _objectKeys;
|
|
17297
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties3(O2, Properties2) {
|
|
17298
|
+
anObject2(O2);
|
|
17299
|
+
var keys5 = getKeys2(Properties2);
|
|
17300
|
+
var length = keys5.length;
|
|
17301
|
+
var i = 0;
|
|
17302
|
+
var P2;
|
|
17303
|
+
while (length > i)
|
|
17304
|
+
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
17305
|
+
return O2;
|
|
17306
|
+
}, "defineProperties");
|
|
17307
|
+
return _objectDps;
|
|
17308
|
+
}
|
|
17309
|
+
__name(require_objectDps, "require_objectDps");
|
|
17262
17310
|
var _html;
|
|
17263
17311
|
var hasRequired_html;
|
|
17264
17312
|
function require_html() {
|
|
@@ -17270,42 +17318,51 @@ function require_html() {
|
|
|
17270
17318
|
return _html;
|
|
17271
17319
|
}
|
|
17272
17320
|
__name(require_html, "require_html");
|
|
17273
|
-
var
|
|
17274
|
-
var
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
var
|
|
17280
|
-
var
|
|
17281
|
-
var
|
|
17282
|
-
var
|
|
17283
|
-
var
|
|
17284
|
-
|
|
17285
|
-
var
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17321
|
+
var _objectCreate;
|
|
17322
|
+
var hasRequired_objectCreate;
|
|
17323
|
+
function require_objectCreate() {
|
|
17324
|
+
if (hasRequired_objectCreate)
|
|
17325
|
+
return _objectCreate;
|
|
17326
|
+
hasRequired_objectCreate = 1;
|
|
17327
|
+
var anObject2 = _anObject;
|
|
17328
|
+
var dPs = require_objectDps();
|
|
17329
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
17330
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
17331
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
17332
|
+
}, "Empty");
|
|
17333
|
+
var PROTOTYPE2 = "prototype";
|
|
17334
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
17335
|
+
var iframe = require_domCreate()("iframe");
|
|
17336
|
+
var i = enumBugKeys2.length;
|
|
17337
|
+
var lt = "<";
|
|
17338
|
+
var gt = ">";
|
|
17339
|
+
var iframeDocument;
|
|
17340
|
+
iframe.style.display = "none";
|
|
17341
|
+
require_html().appendChild(iframe);
|
|
17342
|
+
iframe.src = "javascript:";
|
|
17343
|
+
iframeDocument = iframe.contentWindow.document;
|
|
17344
|
+
iframeDocument.open();
|
|
17345
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
17346
|
+
iframeDocument.close();
|
|
17347
|
+
createDict = iframeDocument.F;
|
|
17348
|
+
while (i--)
|
|
17349
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i]];
|
|
17350
|
+
return createDict();
|
|
17351
|
+
}, "createDict");
|
|
17352
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create5(O2, Properties2) {
|
|
17353
|
+
var result;
|
|
17354
|
+
if (O2 !== null) {
|
|
17355
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
17356
|
+
result = new Empty();
|
|
17357
|
+
Empty[PROTOTYPE2] = null;
|
|
17358
|
+
result[IE_PROTO2] = O2;
|
|
17359
|
+
} else
|
|
17360
|
+
result = createDict();
|
|
17361
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
17362
|
+
}, "create");
|
|
17363
|
+
return _objectCreate;
|
|
17364
|
+
}
|
|
17365
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
17309
17366
|
var _wks = { exports: {} };
|
|
17310
17367
|
var store$2 = _sharedExports("wks");
|
|
17311
17368
|
var uid$1 = _uid;
|
|
@@ -17323,7 +17380,7 @@ var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
|
17323
17380
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
17324
17381
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
17325
17382
|
}, "_setToStringTag");
|
|
17326
|
-
var create$4 =
|
|
17383
|
+
var create$4 = require_objectCreate();
|
|
17327
17384
|
var descriptor = _propertyDesc;
|
|
17328
17385
|
var setToStringTag$2 = _setToStringTag;
|
|
17329
17386
|
var IteratorPrototype = {};
|
|
@@ -17718,7 +17775,7 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17718
17775
|
}
|
|
17719
17776
|
}, "_default$8");
|
|
17720
17777
|
var $export$3 = _export;
|
|
17721
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17778
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
|
|
17722
17779
|
var $Object$2 = _coreExports.Object;
|
|
17723
17780
|
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
|
|
17724
17781
|
return $Object$2.defineProperty(it, key, desc);
|
|
@@ -17731,7 +17788,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
17731
17788
|
}
|
|
17732
17789
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
17733
17790
|
var _default$7 = function() {
|
|
17734
|
-
function
|
|
17791
|
+
function defineProperties3(target, props) {
|
|
17735
17792
|
for (var i = 0; i < props.length; i++) {
|
|
17736
17793
|
var descriptor2 = props[i];
|
|
17737
17794
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -17741,12 +17798,12 @@ var _default$7 = function() {
|
|
|
17741
17798
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
17742
17799
|
}
|
|
17743
17800
|
}
|
|
17744
|
-
__name(
|
|
17801
|
+
__name(defineProperties3, "defineProperties");
|
|
17745
17802
|
return function(Constructor, protoProps, staticProps) {
|
|
17746
17803
|
if (protoProps)
|
|
17747
|
-
|
|
17804
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
17748
17805
|
if (staticProps)
|
|
17749
|
-
|
|
17806
|
+
defineProperties3(Constructor, staticProps);
|
|
17750
17807
|
return Constructor;
|
|
17751
17808
|
};
|
|
17752
17809
|
}();
|
|
@@ -17775,23 +17832,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
17775
17832
|
// weak collections IDs
|
|
17776
17833
|
} });
|
|
17777
17834
|
}, "setMeta");
|
|
17778
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
17835
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create5) {
|
|
17779
17836
|
if (!isObject$c(it))
|
|
17780
17837
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
17781
17838
|
if (!has$a(it, META$1)) {
|
|
17782
17839
|
if (!isExtensible(it))
|
|
17783
17840
|
return "F";
|
|
17784
|
-
if (!
|
|
17841
|
+
if (!create5)
|
|
17785
17842
|
return "E";
|
|
17786
17843
|
setMeta(it);
|
|
17787
17844
|
}
|
|
17788
17845
|
return it[META$1].i;
|
|
17789
17846
|
}, "fastKey");
|
|
17790
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
17847
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create5) {
|
|
17791
17848
|
if (!has$a(it, META$1)) {
|
|
17792
17849
|
if (!isExtensible(it))
|
|
17793
17850
|
return true;
|
|
17794
|
-
if (!
|
|
17851
|
+
if (!create5)
|
|
17795
17852
|
return false;
|
|
17796
17853
|
setMeta(it);
|
|
17797
17854
|
}
|
|
@@ -17868,7 +17925,7 @@ var toPrimitive$1 = _toPrimitive$1;
|
|
|
17868
17925
|
var has$9 = _has;
|
|
17869
17926
|
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
17870
17927
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
17871
|
-
_objectGopd.f =
|
|
17928
|
+
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17872
17929
|
O2 = toIObject$1(O2);
|
|
17873
17930
|
P2 = toPrimitive$1(P2, true);
|
|
17874
17931
|
if (IE8_DOM_DEFINE)
|
|
@@ -17881,7 +17938,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17881
17938
|
}, "getOwnPropertyDescriptor");
|
|
17882
17939
|
var global$2 = _globalExports;
|
|
17883
17940
|
var has$8 = _has;
|
|
17884
|
-
var DESCRIPTORS =
|
|
17941
|
+
var DESCRIPTORS = require_descriptors();
|
|
17885
17942
|
var $export$2 = _export;
|
|
17886
17943
|
var redefine = _redefine;
|
|
17887
17944
|
var META = _metaExports.KEY;
|
|
@@ -17900,7 +17957,7 @@ var toObject$1 = _toObject;
|
|
|
17900
17957
|
var toIObject = _toIobject;
|
|
17901
17958
|
var toPrimitive = _toPrimitive$1;
|
|
17902
17959
|
var createDesc = _propertyDesc;
|
|
17903
|
-
var _create$1 =
|
|
17960
|
+
var _create$1 = require_objectCreate();
|
|
17904
17961
|
var gOPNExt = _objectGopnExt;
|
|
17905
17962
|
var $GOPD = _objectGopd;
|
|
17906
17963
|
var $GOPS = _objectGops;
|
|
@@ -17967,7 +18024,7 @@ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key,
|
|
|
17967
18024
|
}
|
|
17968
18025
|
return dP(it, key, D2);
|
|
17969
18026
|
}, "defineProperty");
|
|
17970
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
18027
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2) {
|
|
17971
18028
|
anObject(it);
|
|
17972
18029
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
17973
18030
|
var i = 0;
|
|
@@ -17977,7 +18034,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
17977
18034
|
$defineProperty$1(it, key = keys5[i++], P2[key]);
|
|
17978
18035
|
return it;
|
|
17979
18036
|
}, "defineProperties");
|
|
17980
|
-
var $create = /* @__PURE__ */ __name(function
|
|
18037
|
+
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
17981
18038
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
17982
18039
|
}, "create");
|
|
17983
18040
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -18207,9 +18264,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
18207
18264
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
18208
18265
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
18209
18266
|
var $export = _export;
|
|
18210
|
-
$export($export.S, "Object", { create:
|
|
18267
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
18211
18268
|
var $Object$1 = _coreExports.Object;
|
|
18212
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
18269
|
+
var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
|
|
18213
18270
|
return $Object$1.create(P2, D2);
|
|
18214
18271
|
}, "create");
|
|
18215
18272
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -22296,7 +22353,7 @@ function normalizeComponent(Comp) {
|
|
|
22296
22353
|
}
|
|
22297
22354
|
__name(normalizeComponent, "normalizeComponent");
|
|
22298
22355
|
var _createClass$d = function() {
|
|
22299
|
-
function
|
|
22356
|
+
function defineProperties3(target, props) {
|
|
22300
22357
|
for (var i = 0; i < props.length; i++) {
|
|
22301
22358
|
var descriptor2 = props[i];
|
|
22302
22359
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22306,12 +22363,12 @@ var _createClass$d = function() {
|
|
|
22306
22363
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22307
22364
|
}
|
|
22308
22365
|
}
|
|
22309
|
-
__name(
|
|
22366
|
+
__name(defineProperties3, "defineProperties");
|
|
22310
22367
|
return function(Constructor, protoProps, staticProps) {
|
|
22311
22368
|
if (protoProps)
|
|
22312
|
-
|
|
22369
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
22313
22370
|
if (staticProps)
|
|
22314
|
-
|
|
22371
|
+
defineProperties3(Constructor, staticProps);
|
|
22315
22372
|
return Constructor;
|
|
22316
22373
|
};
|
|
22317
22374
|
}();
|
|
@@ -22472,7 +22529,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
22472
22529
|
return target;
|
|
22473
22530
|
};
|
|
22474
22531
|
var _createClass$c = function() {
|
|
22475
|
-
function
|
|
22532
|
+
function defineProperties3(target, props) {
|
|
22476
22533
|
for (var i = 0; i < props.length; i++) {
|
|
22477
22534
|
var descriptor2 = props[i];
|
|
22478
22535
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -22482,12 +22539,12 @@ var _createClass$c = function() {
|
|
|
22482
22539
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
22483
22540
|
}
|
|
22484
22541
|
}
|
|
22485
|
-
__name(
|
|
22542
|
+
__name(defineProperties3, "defineProperties");
|
|
22486
22543
|
return function(Constructor, protoProps, staticProps) {
|
|
22487
22544
|
if (protoProps)
|
|
22488
|
-
|
|
22545
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
22489
22546
|
if (staticProps)
|
|
22490
|
-
|
|
22547
|
+
defineProperties3(Constructor, staticProps);
|
|
22491
22548
|
return Constructor;
|
|
22492
22549
|
};
|
|
22493
22550
|
}();
|
|
@@ -23078,7 +23135,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
23078
23135
|
}(Base);
|
|
23079
23136
|
}, "Methods");
|
|
23080
23137
|
var _createClass$b = function() {
|
|
23081
|
-
function
|
|
23138
|
+
function defineProperties3(target, props) {
|
|
23082
23139
|
for (var i = 0; i < props.length; i++) {
|
|
23083
23140
|
var descriptor2 = props[i];
|
|
23084
23141
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23088,12 +23145,12 @@ var _createClass$b = function() {
|
|
|
23088
23145
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23089
23146
|
}
|
|
23090
23147
|
}
|
|
23091
|
-
__name(
|
|
23148
|
+
__name(defineProperties3, "defineProperties");
|
|
23092
23149
|
return function(Constructor, protoProps, staticProps) {
|
|
23093
23150
|
if (protoProps)
|
|
23094
|
-
|
|
23151
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
23095
23152
|
if (staticProps)
|
|
23096
|
-
|
|
23153
|
+
defineProperties3(Constructor, staticProps);
|
|
23097
23154
|
return Constructor;
|
|
23098
23155
|
};
|
|
23099
23156
|
}();
|
|
@@ -23865,7 +23922,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
23865
23922
|
return target;
|
|
23866
23923
|
};
|
|
23867
23924
|
var _createClass$a = function() {
|
|
23868
|
-
function
|
|
23925
|
+
function defineProperties3(target, props) {
|
|
23869
23926
|
for (var i = 0; i < props.length; i++) {
|
|
23870
23927
|
var descriptor2 = props[i];
|
|
23871
23928
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -23875,12 +23932,12 @@ var _createClass$a = function() {
|
|
|
23875
23932
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
23876
23933
|
}
|
|
23877
23934
|
}
|
|
23878
|
-
__name(
|
|
23935
|
+
__name(defineProperties3, "defineProperties");
|
|
23879
23936
|
return function(Constructor, protoProps, staticProps) {
|
|
23880
23937
|
if (protoProps)
|
|
23881
|
-
|
|
23938
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
23882
23939
|
if (staticProps)
|
|
23883
|
-
|
|
23940
|
+
defineProperties3(Constructor, staticProps);
|
|
23884
23941
|
return Constructor;
|
|
23885
23942
|
};
|
|
23886
23943
|
}();
|
|
@@ -30204,21 +30261,21 @@ function parse$7(options) {
|
|
|
30204
30261
|
defined: [],
|
|
30205
30262
|
lazy: {},
|
|
30206
30263
|
constructs: constructs2,
|
|
30207
|
-
content:
|
|
30208
|
-
document:
|
|
30209
|
-
flow:
|
|
30210
|
-
string:
|
|
30211
|
-
text:
|
|
30264
|
+
content: create5(content$1),
|
|
30265
|
+
document: create5(document$2),
|
|
30266
|
+
flow: create5(flow$1),
|
|
30267
|
+
string: create5(string$1),
|
|
30268
|
+
text: create5(text$3)
|
|
30212
30269
|
};
|
|
30213
30270
|
return parser;
|
|
30214
|
-
function
|
|
30271
|
+
function create5(initial) {
|
|
30215
30272
|
return creator;
|
|
30216
30273
|
function creator(from3) {
|
|
30217
30274
|
return createTokenizer(parser, initial, from3);
|
|
30218
30275
|
}
|
|
30219
30276
|
__name(creator, "creator");
|
|
30220
30277
|
}
|
|
30221
|
-
__name(
|
|
30278
|
+
__name(create5, "create");
|
|
30222
30279
|
}
|
|
30223
30280
|
__name(parse$7, "parse$7");
|
|
30224
30281
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -30629,10 +30686,10 @@ function compiler(options) {
|
|
|
30629
30686
|
return data[key];
|
|
30630
30687
|
}
|
|
30631
30688
|
__name(getData, "getData");
|
|
30632
|
-
function opener(
|
|
30689
|
+
function opener(create5, and) {
|
|
30633
30690
|
return open2;
|
|
30634
30691
|
function open2(token) {
|
|
30635
|
-
enter2.call(this,
|
|
30692
|
+
enter2.call(this, create5(token), token);
|
|
30636
30693
|
if (and)
|
|
30637
30694
|
and.call(this, token);
|
|
30638
30695
|
}
|
|
@@ -38983,27 +39040,51 @@ __publicField(_TgSelect, "defaultProps", {
|
|
|
38983
39040
|
value: void 0
|
|
38984
39041
|
});
|
|
38985
39042
|
let TgSelect = _TgSelect;
|
|
38986
|
-
const
|
|
38987
|
-
const
|
|
38988
|
-
|
|
38989
|
-
|
|
38990
|
-
|
|
38991
|
-
|
|
38992
|
-
|
|
38993
|
-
|
|
38994
|
-
|
|
38995
|
-
|
|
38996
|
-
return matching;
|
|
39043
|
+
const withAsyncOptions = /* @__PURE__ */ __name((Component2) => (props) => {
|
|
39044
|
+
const _a2 = props, { loadOptions, options } = _a2, rest = __objRest(_a2, ["loadOptions", "options"]);
|
|
39045
|
+
const [asyncOptions, setAsyncOptions] = useState([]);
|
|
39046
|
+
const [isLoading, setLoading] = useState(false);
|
|
39047
|
+
useEffect(() => {
|
|
39048
|
+
if (loadOptions) {
|
|
39049
|
+
setLoading(true);
|
|
39050
|
+
loadOptions().then((options2) => {
|
|
39051
|
+
setAsyncOptions(options2);
|
|
39052
|
+
setLoading(false);
|
|
38997
39053
|
});
|
|
38998
|
-
|
|
38999
|
-
|
|
39000
|
-
|
|
39001
|
-
|
|
39002
|
-
|
|
39003
|
-
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
|
|
39054
|
+
}
|
|
39055
|
+
}, [loadOptions]);
|
|
39056
|
+
return /* @__PURE__ */ React__default$1.createElement(
|
|
39057
|
+
Component2,
|
|
39058
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
39059
|
+
isLoading: isLoading || rest.isLoading,
|
|
39060
|
+
options: loadOptions ? asyncOptions : options
|
|
39061
|
+
})
|
|
39062
|
+
);
|
|
39063
|
+
}, "withAsyncOptions");
|
|
39064
|
+
const TgSelect$1 = compose$1(
|
|
39065
|
+
withAsyncOptions,
|
|
39066
|
+
withProps((props) => {
|
|
39067
|
+
const { multi, value, options = [] } = props;
|
|
39068
|
+
let optionsToRet = options;
|
|
39069
|
+
if (multi && value) {
|
|
39070
|
+
const valArray = getValueArray(value);
|
|
39071
|
+
optionsToRet = options.filter((op) => {
|
|
39072
|
+
const isOptionSelected = valArray.some((val2) => {
|
|
39073
|
+
if (!val2)
|
|
39074
|
+
return false;
|
|
39075
|
+
const matching = lodashExports.isEqual(val2.value, op.value);
|
|
39076
|
+
return matching;
|
|
39077
|
+
});
|
|
39078
|
+
return !isOptionSelected;
|
|
39079
|
+
});
|
|
39080
|
+
}
|
|
39081
|
+
return {
|
|
39082
|
+
// unfilteredOptions is needed for finding selected items
|
|
39083
|
+
unfilteredOptions: options,
|
|
39084
|
+
options: optionsToRet
|
|
39085
|
+
};
|
|
39086
|
+
})
|
|
39087
|
+
)(TgSelect);
|
|
39007
39088
|
const itemDisabled = /* @__PURE__ */ __name((i) => i.disabled, "itemDisabled");
|
|
39008
39089
|
const noResultsDefault = /* @__PURE__ */ React__default$1.createElement("div", null, "No Results...");
|
|
39009
39090
|
const renderCreateNewOption$1 = /* @__PURE__ */ __name((query, active3, handleClick) => /* @__PURE__ */ React__default$1.createElement(
|
|
@@ -39541,11 +39622,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
39541
39622
|
}
|
|
39542
39623
|
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
39543
39624
|
if (target.prototype) {
|
|
39544
|
-
var
|
|
39625
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
39545
39626
|
}, "Empty");
|
|
39546
|
-
|
|
39547
|
-
bound.prototype = new
|
|
39548
|
-
|
|
39627
|
+
Empty.prototype = target.prototype;
|
|
39628
|
+
bound.prototype = new Empty();
|
|
39629
|
+
Empty.prototype = null;
|
|
39549
39630
|
}
|
|
39550
39631
|
return bound;
|
|
39551
39632
|
}, "bind");
|
|
@@ -42353,19 +42434,59 @@ const generateToast = /* @__PURE__ */ __name((intent) => (message, options) => {
|
|
|
42353
42434
|
if (intent === Intent.DANGER) {
|
|
42354
42435
|
console.error("Toastr error message: ", message);
|
|
42355
42436
|
}
|
|
42437
|
+
const maybeAddClearAll = /* @__PURE__ */ __name(() => {
|
|
42438
|
+
const existingClearAllButtons = document.querySelectorAll(`.tg-clear-all-toasts`);
|
|
42439
|
+
existingClearAllButtons.forEach((button) => {
|
|
42440
|
+
button.remove();
|
|
42441
|
+
});
|
|
42442
|
+
const activeToasts = document.querySelectorAll(
|
|
42443
|
+
`.bp3-toast:not(.bp3-toast-exit)`
|
|
42444
|
+
);
|
|
42445
|
+
if (activeToasts.length > 1) {
|
|
42446
|
+
const topToaster = document.querySelector(`.bp3-toast`);
|
|
42447
|
+
if (!topToaster)
|
|
42448
|
+
return;
|
|
42449
|
+
const closeButton = document.createElement("div");
|
|
42450
|
+
closeButton.classList.add(
|
|
42451
|
+
Classes.BUTTON,
|
|
42452
|
+
Classes.LARGE,
|
|
42453
|
+
Classes.INTENT_PRIMARY,
|
|
42454
|
+
"tg-clear-all-toasts"
|
|
42455
|
+
);
|
|
42456
|
+
closeButton.innerText = "Clear all";
|
|
42457
|
+
closeButton.onclick = window.__tgClearAllToasts;
|
|
42458
|
+
closeButton.style.position = "absolute";
|
|
42459
|
+
closeButton.style.right = "-100px";
|
|
42460
|
+
topToaster.appendChild(closeButton);
|
|
42461
|
+
}
|
|
42462
|
+
}, "maybeAddClearAll");
|
|
42356
42463
|
const uniqKey = toastToUse.show(
|
|
42357
42464
|
{
|
|
42358
42465
|
intent,
|
|
42359
42466
|
message,
|
|
42360
|
-
|
|
42467
|
+
onDismiss: () => {
|
|
42468
|
+
if (options.onDismiss) {
|
|
42469
|
+
options.onDismiss();
|
|
42470
|
+
}
|
|
42471
|
+
setTimeout(() => {
|
|
42472
|
+
maybeAddClearAll();
|
|
42473
|
+
}, 0);
|
|
42474
|
+
},
|
|
42475
|
+
timeout: options.timeout || updatedTimeout || (!window.Cypress && intent === Intent.DANGER ? 6e4 : void 0),
|
|
42361
42476
|
action: options.action,
|
|
42362
42477
|
icon: options.icon,
|
|
42363
42478
|
className: classNames("preserve-newline", options.className)
|
|
42364
42479
|
},
|
|
42365
42480
|
options.key
|
|
42366
42481
|
);
|
|
42482
|
+
setTimeout(() => {
|
|
42483
|
+
maybeAddClearAll();
|
|
42484
|
+
}, 0);
|
|
42367
42485
|
function clear3() {
|
|
42368
42486
|
toastToUse.dismiss(uniqKey);
|
|
42487
|
+
setTimeout(() => {
|
|
42488
|
+
maybeAddClearAll();
|
|
42489
|
+
}, 0);
|
|
42369
42490
|
}
|
|
42370
42491
|
__name(clear3, "clear");
|
|
42371
42492
|
clear3.key = uniqKey;
|
|
@@ -42535,6 +42656,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React__default$1.Com
|
|
|
42535
42656
|
intent: Intent.SUCCESS,
|
|
42536
42657
|
text: "Filter",
|
|
42537
42658
|
secondaryText: "Clear",
|
|
42659
|
+
secondaryIntent: Intent.DANGER,
|
|
42538
42660
|
secondaryAction: () => {
|
|
42539
42661
|
currentFilter && removeSingleFilter(currentFilter.filterOn);
|
|
42540
42662
|
}
|
|
@@ -43680,7 +43802,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
43680
43802
|
return target;
|
|
43681
43803
|
};
|
|
43682
43804
|
var _createClass$9 = function() {
|
|
43683
|
-
function
|
|
43805
|
+
function defineProperties3(target, props) {
|
|
43684
43806
|
for (var i = 0; i < props.length; i++) {
|
|
43685
43807
|
var descriptor2 = props[i];
|
|
43686
43808
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43690,12 +43812,12 @@ var _createClass$9 = function() {
|
|
|
43690
43812
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43691
43813
|
}
|
|
43692
43814
|
}
|
|
43693
|
-
__name(
|
|
43815
|
+
__name(defineProperties3, "defineProperties");
|
|
43694
43816
|
return function(Constructor, protoProps, staticProps) {
|
|
43695
43817
|
if (protoProps)
|
|
43696
|
-
|
|
43818
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43697
43819
|
if (staticProps)
|
|
43698
|
-
|
|
43820
|
+
defineProperties3(Constructor, staticProps);
|
|
43699
43821
|
return Constructor;
|
|
43700
43822
|
};
|
|
43701
43823
|
}();
|
|
@@ -43837,7 +43959,7 @@ var Alpha = function(_ref) {
|
|
|
43837
43959
|
return Alpha2;
|
|
43838
43960
|
}(PureComponent || Component);
|
|
43839
43961
|
var _createClass$8 = function() {
|
|
43840
|
-
function
|
|
43962
|
+
function defineProperties3(target, props) {
|
|
43841
43963
|
for (var i = 0; i < props.length; i++) {
|
|
43842
43964
|
var descriptor2 = props[i];
|
|
43843
43965
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43847,12 +43969,12 @@ var _createClass$8 = function() {
|
|
|
43847
43969
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43848
43970
|
}
|
|
43849
43971
|
}
|
|
43850
|
-
__name(
|
|
43972
|
+
__name(defineProperties3, "defineProperties");
|
|
43851
43973
|
return function(Constructor, protoProps, staticProps) {
|
|
43852
43974
|
if (protoProps)
|
|
43853
|
-
|
|
43975
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43854
43976
|
if (staticProps)
|
|
43855
|
-
|
|
43977
|
+
defineProperties3(Constructor, staticProps);
|
|
43856
43978
|
return Constructor;
|
|
43857
43979
|
};
|
|
43858
43980
|
}();
|
|
@@ -44085,7 +44207,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
44085
44207
|
return null;
|
|
44086
44208
|
}, "calculateChange");
|
|
44087
44209
|
var _createClass$7 = function() {
|
|
44088
|
-
function
|
|
44210
|
+
function defineProperties3(target, props) {
|
|
44089
44211
|
for (var i = 0; i < props.length; i++) {
|
|
44090
44212
|
var descriptor2 = props[i];
|
|
44091
44213
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -44095,12 +44217,12 @@ var _createClass$7 = function() {
|
|
|
44095
44217
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
44096
44218
|
}
|
|
44097
44219
|
}
|
|
44098
|
-
__name(
|
|
44220
|
+
__name(defineProperties3, "defineProperties");
|
|
44099
44221
|
return function(Constructor, protoProps, staticProps) {
|
|
44100
44222
|
if (protoProps)
|
|
44101
|
-
|
|
44223
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
44102
44224
|
if (staticProps)
|
|
44103
|
-
|
|
44225
|
+
defineProperties3(Constructor, staticProps);
|
|
44104
44226
|
return Constructor;
|
|
44105
44227
|
};
|
|
44106
44228
|
}();
|
|
@@ -45311,7 +45433,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
45311
45433
|
};
|
|
45312
45434
|
}, "calculateChange");
|
|
45313
45435
|
var _createClass$6 = function() {
|
|
45314
|
-
function
|
|
45436
|
+
function defineProperties3(target, props) {
|
|
45315
45437
|
for (var i = 0; i < props.length; i++) {
|
|
45316
45438
|
var descriptor2 = props[i];
|
|
45317
45439
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45321,12 +45443,12 @@ var _createClass$6 = function() {
|
|
|
45321
45443
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45322
45444
|
}
|
|
45323
45445
|
}
|
|
45324
|
-
__name(
|
|
45446
|
+
__name(defineProperties3, "defineProperties");
|
|
45325
45447
|
return function(Constructor, protoProps, staticProps) {
|
|
45326
45448
|
if (protoProps)
|
|
45327
|
-
|
|
45449
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
45328
45450
|
if (staticProps)
|
|
45329
|
-
|
|
45451
|
+
defineProperties3(Constructor, staticProps);
|
|
45330
45452
|
return Constructor;
|
|
45331
45453
|
};
|
|
45332
45454
|
}();
|
|
@@ -46628,7 +46750,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
46628
46750
|
return target;
|
|
46629
46751
|
};
|
|
46630
46752
|
var _createClass$5 = function() {
|
|
46631
|
-
function
|
|
46753
|
+
function defineProperties3(target, props) {
|
|
46632
46754
|
for (var i = 0; i < props.length; i++) {
|
|
46633
46755
|
var descriptor2 = props[i];
|
|
46634
46756
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46638,12 +46760,12 @@ var _createClass$5 = function() {
|
|
|
46638
46760
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46639
46761
|
}
|
|
46640
46762
|
}
|
|
46641
|
-
__name(
|
|
46763
|
+
__name(defineProperties3, "defineProperties");
|
|
46642
46764
|
return function(Constructor, protoProps, staticProps) {
|
|
46643
46765
|
if (protoProps)
|
|
46644
|
-
|
|
46766
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
46645
46767
|
if (staticProps)
|
|
46646
|
-
|
|
46768
|
+
defineProperties3(Constructor, staticProps);
|
|
46647
46769
|
return Constructor;
|
|
46648
46770
|
};
|
|
46649
46771
|
}();
|
|
@@ -46740,7 +46862,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
46740
46862
|
return target;
|
|
46741
46863
|
};
|
|
46742
46864
|
var _createClass$4 = function() {
|
|
46743
|
-
function
|
|
46865
|
+
function defineProperties3(target, props) {
|
|
46744
46866
|
for (var i = 0; i < props.length; i++) {
|
|
46745
46867
|
var descriptor2 = props[i];
|
|
46746
46868
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -46750,12 +46872,12 @@ var _createClass$4 = function() {
|
|
|
46750
46872
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
46751
46873
|
}
|
|
46752
46874
|
}
|
|
46753
|
-
__name(
|
|
46875
|
+
__name(defineProperties3, "defineProperties");
|
|
46754
46876
|
return function(Constructor, protoProps, staticProps) {
|
|
46755
46877
|
if (protoProps)
|
|
46756
|
-
|
|
46878
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
46757
46879
|
if (staticProps)
|
|
46758
|
-
|
|
46880
|
+
defineProperties3(Constructor, staticProps);
|
|
46759
46881
|
return Constructor;
|
|
46760
46882
|
};
|
|
46761
46883
|
}();
|
|
@@ -47813,7 +47935,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
47813
47935
|
);
|
|
47814
47936
|
};
|
|
47815
47937
|
var _createClass$3 = function() {
|
|
47816
|
-
function
|
|
47938
|
+
function defineProperties3(target, props) {
|
|
47817
47939
|
for (var i = 0; i < props.length; i++) {
|
|
47818
47940
|
var descriptor2 = props[i];
|
|
47819
47941
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -47823,12 +47945,12 @@ var _createClass$3 = function() {
|
|
|
47823
47945
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
47824
47946
|
}
|
|
47825
47947
|
}
|
|
47826
|
-
__name(
|
|
47948
|
+
__name(defineProperties3, "defineProperties");
|
|
47827
47949
|
return function(Constructor, protoProps, staticProps) {
|
|
47828
47950
|
if (protoProps)
|
|
47829
|
-
|
|
47951
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
47830
47952
|
if (staticProps)
|
|
47831
|
-
|
|
47953
|
+
defineProperties3(Constructor, staticProps);
|
|
47832
47954
|
return Constructor;
|
|
47833
47955
|
};
|
|
47834
47956
|
}();
|
|
@@ -49238,7 +49360,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
49238
49360
|
);
|
|
49239
49361
|
}, "PhotoshopPreviews");
|
|
49240
49362
|
var _createClass$2 = function() {
|
|
49241
|
-
function
|
|
49363
|
+
function defineProperties3(target, props) {
|
|
49242
49364
|
for (var i = 0; i < props.length; i++) {
|
|
49243
49365
|
var descriptor2 = props[i];
|
|
49244
49366
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -49248,12 +49370,12 @@ var _createClass$2 = function() {
|
|
|
49248
49370
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
49249
49371
|
}
|
|
49250
49372
|
}
|
|
49251
|
-
__name(
|
|
49373
|
+
__name(defineProperties3, "defineProperties");
|
|
49252
49374
|
return function(Constructor, protoProps, staticProps) {
|
|
49253
49375
|
if (protoProps)
|
|
49254
|
-
|
|
49376
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
49255
49377
|
if (staticProps)
|
|
49256
|
-
|
|
49378
|
+
defineProperties3(Constructor, staticProps);
|
|
49257
49379
|
return Constructor;
|
|
49258
49380
|
};
|
|
49259
49381
|
}();
|
|
@@ -55424,17 +55546,20 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55424
55546
|
});
|
|
55425
55547
|
}
|
|
55426
55548
|
}, "handleSelectAllRows"));
|
|
55549
|
+
__publicField(this, "updateValidationHelper", /* @__PURE__ */ __name(() => {
|
|
55550
|
+
const { entities, reduxFormCellValidation } = computePresets(this.props);
|
|
55551
|
+
this.updateValidation(entities, reduxFormCellValidation);
|
|
55552
|
+
}, "updateValidationHelper"));
|
|
55427
55553
|
__publicField(this, "updateValidation", /* @__PURE__ */ __name((entities, newCellValidate) => {
|
|
55428
55554
|
const { change: change2, schema: schema2 } = computePresets(this.props);
|
|
55429
|
-
|
|
55430
|
-
|
|
55431
|
-
|
|
55432
|
-
|
|
55433
|
-
|
|
55434
|
-
|
|
55435
|
-
|
|
55436
|
-
|
|
55437
|
-
);
|
|
55555
|
+
const tableWideErr = validateTableWideErrors({
|
|
55556
|
+
entities,
|
|
55557
|
+
schema: schema2,
|
|
55558
|
+
newCellValidate,
|
|
55559
|
+
props: this.props
|
|
55560
|
+
});
|
|
55561
|
+
change2("reduxFormCellValidation", tableWideErr);
|
|
55562
|
+
this.forceUpdate();
|
|
55438
55563
|
}, "updateValidation"));
|
|
55439
55564
|
__publicField(this, "handleDeleteCell", /* @__PURE__ */ __name(() => {
|
|
55440
55565
|
const {
|
|
@@ -55500,7 +55625,7 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55500
55625
|
onFinishMsg: "Column Copied"
|
|
55501
55626
|
});
|
|
55502
55627
|
}, "handleCopyColumn"));
|
|
55503
|
-
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg } = {}) => {
|
|
55628
|
+
__publicField(this, "handleCopyRows", /* @__PURE__ */ __name((rowElsToCopy, { specificColumn, onFinishMsg, isDownload } = {}) => {
|
|
55504
55629
|
let textToCopy = [];
|
|
55505
55630
|
const jsonToCopy = [];
|
|
55506
55631
|
lodashExports.forEach(rowElsToCopy, (rowEl) => {
|
|
@@ -55511,7 +55636,15 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55511
55636
|
textToCopy = textToCopy.filter((text2) => text2).join("\n");
|
|
55512
55637
|
if (!textToCopy)
|
|
55513
55638
|
return window.toastr.warning("No text to copy");
|
|
55514
|
-
|
|
55639
|
+
if (isDownload) {
|
|
55640
|
+
downloadjs(textToCopy.replaceAll(" ", ","), "tableData.csv", "text/csv");
|
|
55641
|
+
} else {
|
|
55642
|
+
this.handleCopyHelper(
|
|
55643
|
+
textToCopy,
|
|
55644
|
+
jsonToCopy,
|
|
55645
|
+
onFinishMsg || "Row Copied"
|
|
55646
|
+
);
|
|
55647
|
+
}
|
|
55515
55648
|
}, "handleCopyRows"));
|
|
55516
55649
|
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
55517
55650
|
const { change: change2, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
@@ -55564,14 +55697,14 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55564
55697
|
window.toastr.success(message);
|
|
55565
55698
|
}
|
|
55566
55699
|
}, "handleCopyHelper"));
|
|
55567
|
-
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2) => {
|
|
55700
|
+
__publicField(this, "handleCopyTable", /* @__PURE__ */ __name((e2, opts2) => {
|
|
55568
55701
|
try {
|
|
55569
55702
|
const allRowEls = getAllRows(e2);
|
|
55570
55703
|
if (!allRowEls)
|
|
55571
55704
|
return;
|
|
55572
|
-
this.handleCopyRows(allRowEls, {
|
|
55705
|
+
this.handleCopyRows(allRowEls, __spreadProps(__spreadValues({}, opts2), {
|
|
55573
55706
|
onFinishMsg: "Table Copied"
|
|
55574
|
-
});
|
|
55707
|
+
}));
|
|
55575
55708
|
} catch (error) {
|
|
55576
55709
|
console.error(`error:`, error);
|
|
55577
55710
|
window.toastr.error("Error copying rows.");
|
|
@@ -55819,7 +55952,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55819
55952
|
getRowClassName && getRowClassName(rowInfo, state2, this.props),
|
|
55820
55953
|
{
|
|
55821
55954
|
disabled: rowDisabled,
|
|
55822
|
-
selected: rowSelected && !withCheckboxes
|
|
55955
|
+
selected: rowSelected && !withCheckboxes,
|
|
55956
|
+
"rt-tr-last-row": rowInfo.index === entities.length - 1
|
|
55823
55957
|
}
|
|
55824
55958
|
),
|
|
55825
55959
|
"data-test-id": dataId === void 0 ? rowInfo.index : dataId,
|
|
@@ -55916,7 +56050,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
55916
56050
|
this.startCellEdit(cellId);
|
|
55917
56051
|
}
|
|
55918
56052
|
}, err2 && {
|
|
55919
|
-
"data-tip": (err2 == null ? void 0 : err2.message) || err2
|
|
56053
|
+
"data-tip": (err2 == null ? void 0 : err2.message) || err2,
|
|
56054
|
+
"data-no-child-data-tip": true
|
|
55920
56055
|
}), {
|
|
55921
56056
|
onContextMenu: (e2) => {
|
|
55922
56057
|
if (!isPrimarySelected) {
|
|
@@ -57222,6 +57357,7 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57222
57357
|
);
|
|
57223
57358
|
}, "renderColumnHeader"));
|
|
57224
57359
|
if (this.props.helperProp) {
|
|
57360
|
+
this.props.helperProp.updateValidationHelper = this.updateValidationHelper;
|
|
57225
57361
|
this.props.helperProp.addEditableTableEntities = this.addEditableTableEntities;
|
|
57226
57362
|
this.props.helperProp.getEditableTableInfoAndThrowFormError = this.getEditableTableInfoAndThrowFormError;
|
|
57227
57363
|
}
|
|
@@ -57821,27 +57957,6 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57821
57957
|
if (n2)
|
|
57822
57958
|
this.table = n2;
|
|
57823
57959
|
},
|
|
57824
|
-
additionalBodyEl: isCellEditable && !onlyShowRowsWErrors && /* @__PURE__ */ React__default$1.createElement(
|
|
57825
|
-
"div",
|
|
57826
|
-
{
|
|
57827
|
-
style: {
|
|
57828
|
-
width: "100%",
|
|
57829
|
-
display: "flex",
|
|
57830
|
-
justifyContent: "center"
|
|
57831
|
-
}
|
|
57832
|
-
},
|
|
57833
|
-
/* @__PURE__ */ React__default$1.createElement(
|
|
57834
|
-
Button,
|
|
57835
|
-
{
|
|
57836
|
-
icon: "add",
|
|
57837
|
-
onClick: () => {
|
|
57838
|
-
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
57839
|
-
},
|
|
57840
|
-
minimal: true
|
|
57841
|
-
},
|
|
57842
|
-
"Add 10 Rows"
|
|
57843
|
-
)
|
|
57844
|
-
),
|
|
57845
57960
|
className: classNames({
|
|
57846
57961
|
isCellEditable,
|
|
57847
57962
|
"tg-table-loading": isLoading,
|
|
@@ -57883,6 +57998,37 @@ const _DataTable = class _DataTable extends React__default$1.Component {
|
|
|
57883
57998
|
SubComponent: SubComponentToUse
|
|
57884
57999
|
}, ReactTableProps)
|
|
57885
58000
|
),
|
|
58001
|
+
isCellEditable && /* @__PURE__ */ React__default$1.createElement("div", { style: { display: "flex" } }, /* @__PURE__ */ React__default$1.createElement(
|
|
58002
|
+
"div",
|
|
58003
|
+
{
|
|
58004
|
+
style: {
|
|
58005
|
+
width: "100%",
|
|
58006
|
+
display: "flex",
|
|
58007
|
+
justifyContent: "center"
|
|
58008
|
+
}
|
|
58009
|
+
},
|
|
58010
|
+
!onlyShowRowsWErrors && /* @__PURE__ */ React__default$1.createElement(
|
|
58011
|
+
Button,
|
|
58012
|
+
{
|
|
58013
|
+
icon: "add",
|
|
58014
|
+
onClick: () => {
|
|
58015
|
+
this.insertRows({ numRows: 10, appendToBottom: true });
|
|
58016
|
+
},
|
|
58017
|
+
minimal: true
|
|
58018
|
+
},
|
|
58019
|
+
"Add 10 Rows"
|
|
58020
|
+
)
|
|
58021
|
+
), /* @__PURE__ */ React__default$1.createElement(
|
|
58022
|
+
Button,
|
|
58023
|
+
{
|
|
58024
|
+
onClick: (e2) => {
|
|
58025
|
+
this.handleCopyTable(e2, { isDownload: true });
|
|
58026
|
+
},
|
|
58027
|
+
"data-tip": "Download Table as CSV",
|
|
58028
|
+
minimal: true,
|
|
58029
|
+
icon: "download"
|
|
58030
|
+
}
|
|
58031
|
+
)),
|
|
57886
58032
|
!noFooter && /* @__PURE__ */ React__default$1.createElement(
|
|
57887
58033
|
"div",
|
|
57888
58034
|
{
|
|
@@ -58490,6 +58636,7 @@ function MatchHeaders({
|
|
|
58490
58636
|
onMultiFileUploadSubmit,
|
|
58491
58637
|
doAllFilesHaveSameHeaders,
|
|
58492
58638
|
csvValidationIssue,
|
|
58639
|
+
ignoredHeadersMsg,
|
|
58493
58640
|
searchResults,
|
|
58494
58641
|
matchedHeaders,
|
|
58495
58642
|
userSchema,
|
|
@@ -58507,7 +58654,7 @@ function MatchHeaders({
|
|
|
58507
58654
|
if (v2)
|
|
58508
58655
|
flippedMatchedHeaders[v2] = k2;
|
|
58509
58656
|
});
|
|
58510
|
-
return /* @__PURE__ */ React__default$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React__default$1.createElement("br", null), /* @__PURE__ */ React__default$1.createElement(
|
|
58657
|
+
return /* @__PURE__ */ React__default$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React__default$1.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React__default$1.createElement("br", null), /* @__PURE__ */ React__default$1.createElement(
|
|
58511
58658
|
"tr",
|
|
58512
58659
|
{
|
|
58513
58660
|
style: {
|
|
@@ -58896,7 +59043,7 @@ const AdvancedOptions$1 = {
|
|
|
58896
59043
|
};
|
|
58897
59044
|
var Config = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, BasicOptions), MatchOptions), FuzzyOptions), AdvancedOptions$1);
|
|
58898
59045
|
const SPACE = /[^ ]+/g;
|
|
58899
|
-
function norm(weight = 1, mantissa = 3) {
|
|
59046
|
+
function norm$1(weight = 1, mantissa = 3) {
|
|
58900
59047
|
const cache2 = /* @__PURE__ */ new Map();
|
|
58901
59048
|
const m2 = Math.pow(10, mantissa);
|
|
58902
59049
|
return {
|
|
@@ -58915,13 +59062,13 @@ function norm(weight = 1, mantissa = 3) {
|
|
|
58915
59062
|
}
|
|
58916
59063
|
};
|
|
58917
59064
|
}
|
|
58918
|
-
__name(norm, "norm");
|
|
59065
|
+
__name(norm$1, "norm$1");
|
|
58919
59066
|
const _FuseIndex = class _FuseIndex {
|
|
58920
59067
|
constructor({
|
|
58921
59068
|
getFn = Config.getFn,
|
|
58922
59069
|
fieldNormWeight = Config.fieldNormWeight
|
|
58923
59070
|
} = {}) {
|
|
58924
|
-
this.norm = norm(fieldNormWeight, 3);
|
|
59071
|
+
this.norm = norm$1(fieldNormWeight, 3);
|
|
58925
59072
|
this.getFn = getFn;
|
|
58926
59073
|
this.isCreated = false;
|
|
58927
59074
|
this.setIndexRecords();
|
|
@@ -60070,7 +60217,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60070
60217
|
}) {
|
|
60071
60218
|
yield resolveValidateAgainstSchema();
|
|
60072
60219
|
const userSchema = getSchema(incomingData);
|
|
60073
|
-
const { searchResults, csvValidationIssue } = yield matchSchemas({
|
|
60220
|
+
const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
|
|
60074
60221
|
userSchema,
|
|
60075
60222
|
officialSchema: validateAgainstSchema
|
|
60076
60223
|
});
|
|
@@ -60106,6 +60253,7 @@ function tryToMatchSchemas(_0) {
|
|
|
60106
60253
|
}
|
|
60107
60254
|
});
|
|
60108
60255
|
return {
|
|
60256
|
+
ignoredHeadersMsg,
|
|
60109
60257
|
csvValidationIssue,
|
|
60110
60258
|
matchedHeaders,
|
|
60111
60259
|
userSchema,
|
|
@@ -60122,15 +60270,31 @@ function matchSchemas(_0) {
|
|
|
60122
60270
|
};
|
|
60123
60271
|
let csvValidationIssue = false;
|
|
60124
60272
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60273
|
+
const matchedAltPaths = [];
|
|
60125
60274
|
officialSchema.fields.forEach((h2) => {
|
|
60126
60275
|
let hasMatch = false;
|
|
60127
60276
|
let result = fuse.search(h2.path) || [];
|
|
60277
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60278
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60279
|
+
);
|
|
60128
60280
|
userSchema.fields.forEach((uh, i) => {
|
|
60129
|
-
const pathMatch = uh.path
|
|
60130
|
-
const displayNameMatch = h2.displayName && uh.path
|
|
60131
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch.
|
|
60132
|
-
|
|
60133
|
-
|
|
60281
|
+
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60282
|
+
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60283
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60284
|
+
let altPath = alternatePathMatch;
|
|
60285
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60286
|
+
altPath = alternatePathMatch.path;
|
|
60287
|
+
}
|
|
60288
|
+
return norm(uh.path) === norm(altPath);
|
|
60289
|
+
});
|
|
60290
|
+
if (hasAlternatePathMatch) {
|
|
60291
|
+
matchedAltPaths.push(
|
|
60292
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60293
|
+
);
|
|
60294
|
+
if (hasAlternatePathMatch.format) {
|
|
60295
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60296
|
+
}
|
|
60297
|
+
}
|
|
60134
60298
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60135
60299
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60136
60300
|
result.unshift({
|
|
@@ -60150,6 +60314,16 @@ function matchSchemas(_0) {
|
|
|
60150
60314
|
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.";
|
|
60151
60315
|
}
|
|
60152
60316
|
});
|
|
60317
|
+
const ignoredUserSchemaFields = [];
|
|
60318
|
+
userSchema.fields.forEach((uh) => {
|
|
60319
|
+
if (!officialSchema.fields.find(
|
|
60320
|
+
(h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
|
|
60321
|
+
)) {
|
|
60322
|
+
if (userSchema.userData.some((e2) => e2[uh.path])) {
|
|
60323
|
+
ignoredUserSchemaFields.push(uh);
|
|
60324
|
+
}
|
|
60325
|
+
}
|
|
60326
|
+
});
|
|
60153
60327
|
if (officialSchema.coerceUserSchema) {
|
|
60154
60328
|
officialSchema.coerceUserSchema({ userSchema, officialSchema });
|
|
60155
60329
|
}
|
|
@@ -60207,9 +60381,14 @@ function matchSchemas(_0) {
|
|
|
60207
60381
|
};
|
|
60208
60382
|
}
|
|
60209
60383
|
}
|
|
60384
|
+
let ignoredHeadersMsg;
|
|
60385
|
+
if (ignoredUserSchemaFields.length) {
|
|
60386
|
+
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(", ")}`;
|
|
60387
|
+
}
|
|
60210
60388
|
return {
|
|
60211
60389
|
searchResults: officialSchema.fields,
|
|
60212
|
-
csvValidationIssue
|
|
60390
|
+
csvValidationIssue,
|
|
60391
|
+
ignoredHeadersMsg
|
|
60213
60392
|
};
|
|
60214
60393
|
});
|
|
60215
60394
|
}
|
|
@@ -60228,6 +60407,10 @@ function resolveValidateAgainstSchema() {
|
|
|
60228
60407
|
});
|
|
60229
60408
|
}
|
|
60230
60409
|
__name(resolveValidateAgainstSchema, "resolveValidateAgainstSchema");
|
|
60410
|
+
function norm(h2) {
|
|
60411
|
+
return lodashExports.snakeCase(h2).toLowerCase().replace(/ /g, "");
|
|
60412
|
+
}
|
|
60413
|
+
__name(norm, "norm");
|
|
60231
60414
|
const getInitialSteps = /* @__PURE__ */ __name((csvValidationIssue) => [
|
|
60232
60415
|
{ text: "Review Headers", active: csvValidationIssue },
|
|
60233
60416
|
{ text: "Review Data", active: !csvValidationIssue }
|
|
@@ -60275,6 +60458,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60275
60458
|
doAllFilesHaveSameHeaders,
|
|
60276
60459
|
destroyForms,
|
|
60277
60460
|
csvValidationIssue,
|
|
60461
|
+
ignoredHeadersMsg,
|
|
60278
60462
|
searchResults,
|
|
60279
60463
|
matchedHeaders,
|
|
60280
60464
|
userSchema,
|
|
@@ -60386,6 +60570,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60386
60570
|
destroyForms,
|
|
60387
60571
|
setFilesWIssues,
|
|
60388
60572
|
csvValidationIssue,
|
|
60573
|
+
ignoredHeadersMsg,
|
|
60389
60574
|
searchResults,
|
|
60390
60575
|
matchedHeaders,
|
|
60391
60576
|
userSchema,
|
|
@@ -60421,6 +60606,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60421
60606
|
reduxFormEntitiesArray,
|
|
60422
60607
|
// onMultiFileUploadSubmit,
|
|
60423
60608
|
csvValidationIssue,
|
|
60609
|
+
ignoredHeadersMsg,
|
|
60424
60610
|
searchResults,
|
|
60425
60611
|
matchedHeaders,
|
|
60426
60612
|
userSchema,
|
|
@@ -60463,6 +60649,7 @@ const UploadCsvWizardDialog = compose(
|
|
|
60463
60649
|
searchResults,
|
|
60464
60650
|
onUploadWizardFinish,
|
|
60465
60651
|
csvValidationIssue,
|
|
60652
|
+
ignoredHeadersMsg,
|
|
60466
60653
|
matchedHeaders,
|
|
60467
60654
|
//fromRedux:
|
|
60468
60655
|
changeForm,
|
|
@@ -60492,6 +60679,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60492
60679
|
searchResults,
|
|
60493
60680
|
onUploadWizardFinish,
|
|
60494
60681
|
csvValidationIssue,
|
|
60682
|
+
ignoredHeadersMsg,
|
|
60495
60683
|
matchedHeaders,
|
|
60496
60684
|
//fromRedux:
|
|
60497
60685
|
handleSubmit,
|
|
@@ -60529,6 +60717,7 @@ const UploadCsvWizardDialogInner = compose(
|
|
|
60529
60717
|
__spreadValues({}, {
|
|
60530
60718
|
onMultiFileUploadSubmit,
|
|
60531
60719
|
csvValidationIssue,
|
|
60720
|
+
ignoredHeadersMsg,
|
|
60532
60721
|
searchResults,
|
|
60533
60722
|
matchedHeaders,
|
|
60534
60723
|
userSchema,
|
|
@@ -68701,7 +68890,7 @@ const isZipFile = /* @__PURE__ */ __name((file) => {
|
|
|
68701
68890
|
}, "isZipFile");
|
|
68702
68891
|
const getExt = /* @__PURE__ */ __name((file) => {
|
|
68703
68892
|
var _a2;
|
|
68704
|
-
return (_a2 = file == null ? void 0 : file.name) == null ? void 0 : _a2.split(".").pop();
|
|
68893
|
+
return (_a2 = (file == null ? void 0 : file.name) || (file == null ? void 0 : file.originalname)) == null ? void 0 : _a2.split(".").pop();
|
|
68705
68894
|
}, "getExt");
|
|
68706
68895
|
const isExcelFile = /* @__PURE__ */ __name((file) => getExt(file) === "xlsx", "isExcelFile");
|
|
68707
68896
|
const isCsvFile = /* @__PURE__ */ __name((file) => getExt(file) === "csv", "isCsvFile");
|
|
@@ -68789,7 +68978,9 @@ const parseCsvFile = /* @__PURE__ */ __name((csvFile, parserOptions = {}) => {
|
|
|
68789
68978
|
const opts2 = __spreadProps(__spreadValues(__spreadValues({}, defaultCsvParserOptions), setupCsvParserOptions(parserOptions)), {
|
|
68790
68979
|
complete: (results) => {
|
|
68791
68980
|
var _a2;
|
|
68792
|
-
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter`
|
|
68981
|
+
if (results && ((_a2 = results.data) == null ? void 0 : _a2.length) && results.errors && (results.errors.length === 1 && results.errors[0].code === `UndetectableDelimiter` || results.errors.every(
|
|
68982
|
+
(e2) => e2.code === `TooFewFields` || e2.code === `TooManyFields`
|
|
68983
|
+
))) {
|
|
68793
68984
|
return resolve(results);
|
|
68794
68985
|
} else if (results && results.errors && results.errors.length) {
|
|
68795
68986
|
return reject("Error in csv: " + JSON.stringify(results.errors));
|
|
@@ -70339,7 +70530,7 @@ __name(_ValidateAgainstSchema, "ValidateAgainstSchema");
|
|
|
70339
70530
|
let ValidateAgainstSchema = _ValidateAgainstSchema;
|
|
70340
70531
|
const emptyPromise = Promise.resolve.bind(Promise);
|
|
70341
70532
|
function UploaderInner({
|
|
70342
|
-
accept:
|
|
70533
|
+
accept: __accept,
|
|
70343
70534
|
contentOverride: maybeContentOverride,
|
|
70344
70535
|
innerIcon,
|
|
70345
70536
|
innerText,
|
|
@@ -70369,20 +70560,37 @@ function UploaderInner({
|
|
|
70369
70560
|
dropzoneProps = {},
|
|
70370
70561
|
overflowList,
|
|
70371
70562
|
autoUnzip,
|
|
70372
|
-
disabled,
|
|
70563
|
+
disabled: _disabled,
|
|
70373
70564
|
noBuildCsvOption,
|
|
70374
70565
|
initializeForm,
|
|
70375
70566
|
showFilesCount,
|
|
70376
70567
|
threeDotMenuItems,
|
|
70377
70568
|
onPreviewClick
|
|
70378
70569
|
}) {
|
|
70379
|
-
var _a2, _b2, _c, _d
|
|
70570
|
+
var _a2, _b2, _c, _d;
|
|
70571
|
+
let dropzoneDisabled = _disabled;
|
|
70572
|
+
let _accept = __accept;
|
|
70380
70573
|
const validateAgainstSchemaStore = useRef(new ValidateAgainstSchema());
|
|
70381
|
-
const
|
|
70382
|
-
|
|
70383
|
-
|
|
70384
|
-
|
|
70385
|
-
)) == null ? void 0 :
|
|
70574
|
+
const [resolvedAccept, setResolvedAccept] = useState();
|
|
70575
|
+
if (resolvedAccept) {
|
|
70576
|
+
_accept = resolvedAccept;
|
|
70577
|
+
}
|
|
70578
|
+
const isAcceptPromise = (__accept == null ? void 0 : __accept.then) || (Array.isArray(__accept) ? __accept.some((a2) => a2 == null ? void 0 : a2.then) : false);
|
|
70579
|
+
const acceptLoading = !resolvedAccept && isAcceptPromise && `Accept Loading...`;
|
|
70580
|
+
if (isAcceptPromise && !resolvedAccept) {
|
|
70581
|
+
Promise.allSettled(Array.isArray(__accept) ? __accept : [__accept]).then(
|
|
70582
|
+
(results) => {
|
|
70583
|
+
const resolved = lodashExports.flatMap(results, (r2) => r2.value);
|
|
70584
|
+
setResolvedAccept(resolved);
|
|
70585
|
+
}
|
|
70586
|
+
);
|
|
70587
|
+
_accept = [];
|
|
70588
|
+
}
|
|
70589
|
+
if (acceptLoading)
|
|
70590
|
+
dropzoneDisabled = true;
|
|
70591
|
+
const accept = !_accept ? void 0 : isAcceptPromise && !resolvedAccept ? [] : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70592
|
+
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);
|
|
70593
|
+
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);
|
|
70386
70594
|
useEffect(() => {
|
|
70387
70595
|
validateAgainstSchemaStore.current.setValidateAgainstSchema(
|
|
70388
70596
|
validateAgainstSchemaToUse
|
|
@@ -70392,7 +70600,6 @@ function UploaderInner({
|
|
|
70392
70600
|
if (validateAgainstSchemaToUse) {
|
|
70393
70601
|
validateAgainstSchema = validateAgainstSchemaStore.current;
|
|
70394
70602
|
}
|
|
70395
|
-
const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
|
|
70396
70603
|
if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
|
|
70397
70604
|
accept == null ? void 0 : accept.unshift({
|
|
70398
70605
|
type: "zip",
|
|
@@ -70657,14 +70864,14 @@ function UploaderInner({
|
|
|
70657
70864
|
className: "tg-uploader-inner",
|
|
70658
70865
|
style: { width: "100%", height: "fit-content", minWidth: 0 }
|
|
70659
70866
|
},
|
|
70660
|
-
simpleAccept && /* @__PURE__ */ React__default$1.createElement(
|
|
70867
|
+
(simpleAccept || acceptLoading) && /* @__PURE__ */ React__default$1.createElement(
|
|
70661
70868
|
"div",
|
|
70662
70869
|
{
|
|
70663
70870
|
className: Classes.TEXT_MUTED,
|
|
70664
70871
|
style: { fontSize: 11, marginBottom: 5 }
|
|
70665
70872
|
},
|
|
70666
70873
|
advancedAccept ? /* @__PURE__ */ React__default$1.createElement("div", { style: {} }, "Accepts ", /* @__PURE__ */ React__default$1.createElement("span", { style: {} }, advancedAccept.map((a2, i) => {
|
|
70667
|
-
const
|
|
70874
|
+
const disabled = !(a2.description || a2.exampleFile || a2.exampleFiles);
|
|
70668
70875
|
const PopOrTooltip = a2.exampleFiles ? Popover : Tooltip;
|
|
70669
70876
|
const hasDownload = a2.exampleFile || a2.exampleFiles;
|
|
70670
70877
|
const CustomTag = !hasDownload ? "span" : "a";
|
|
@@ -70673,7 +70880,7 @@ function UploaderInner({
|
|
|
70673
70880
|
{
|
|
70674
70881
|
key: i,
|
|
70675
70882
|
interactionKind: "hover",
|
|
70676
|
-
disabled
|
|
70883
|
+
disabled,
|
|
70677
70884
|
modifiers: popoverOverflowModifiers,
|
|
70678
70885
|
content: a2.exampleFiles ? /* @__PURE__ */ React__default$1.createElement(Menu, null, a2.exampleFiles.map(
|
|
70679
70886
|
({ description: description2, subtext, exampleFile, icon }, i2) => {
|
|
@@ -70751,12 +70958,15 @@ function UploaderInner({
|
|
|
70751
70958
|
)
|
|
70752
70959
|
)
|
|
70753
70960
|
);
|
|
70754
|
-
}))) :
|
|
70961
|
+
}))) : acceptLoading ? (
|
|
70962
|
+
// make the dots below "load"
|
|
70963
|
+
/* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, "Accept Loading", /* @__PURE__ */ React__default$1.createElement(LoadingDots, null))
|
|
70964
|
+
) : /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, "Accepts ", simpleAccept)
|
|
70755
70965
|
),
|
|
70756
70966
|
/* @__PURE__ */ React__default$1.createElement(
|
|
70757
70967
|
Dropzone$1,
|
|
70758
70968
|
__spreadValues(__spreadValues({
|
|
70759
|
-
disabled,
|
|
70969
|
+
disabled: dropzoneDisabled,
|
|
70760
70970
|
onClick: (evt) => evt.preventDefault(),
|
|
70761
70971
|
multiple: fileLimit !== 1,
|
|
70762
70972
|
accept: simpleAccept ? simpleAccept.split(", ").map((a2) => a2.startsWith(".") ? a2 : "." + a2).join(", ") : void 0
|
|
@@ -70839,7 +71049,13 @@ function UploaderInner({
|
|
|
70839
71049
|
if (isCsvOrExcelFile(file)) {
|
|
70840
71050
|
let parsedF;
|
|
70841
71051
|
try {
|
|
70842
|
-
parsedF = yield parseCsvOrExcelFile(file
|
|
71052
|
+
parsedF = yield parseCsvOrExcelFile(file, {
|
|
71053
|
+
csvParserOptions: lodashExports.isFunction(
|
|
71054
|
+
validateAgainstSchema.csvParserOptions
|
|
71055
|
+
) ? validateAgainstSchema.csvParserOptions({
|
|
71056
|
+
validateAgainstSchema
|
|
71057
|
+
}) : validateAgainstSchema.csvParserOptions
|
|
71058
|
+
});
|
|
70843
71059
|
} catch (error) {
|
|
70844
71060
|
console.error("error:", error);
|
|
70845
71061
|
window.toastr && window.toastr.error(
|
|
@@ -70851,7 +71067,8 @@ function UploaderInner({
|
|
|
70851
71067
|
csvValidationIssue: _csvValidationIssue,
|
|
70852
71068
|
matchedHeaders,
|
|
70853
71069
|
userSchema,
|
|
70854
|
-
searchResults
|
|
71070
|
+
searchResults,
|
|
71071
|
+
ignoredHeadersMsg
|
|
70855
71072
|
} = yield tryToMatchSchemas({
|
|
70856
71073
|
incomingData: parsedF.data,
|
|
70857
71074
|
validateAgainstSchema
|
|
@@ -70894,6 +71111,7 @@ function UploaderInner({
|
|
|
70894
71111
|
filesWIssues.push({
|
|
70895
71112
|
file,
|
|
70896
71113
|
csvValidationIssue,
|
|
71114
|
+
ignoredHeadersMsg,
|
|
70897
71115
|
matchedHeaders,
|
|
70898
71116
|
userSchema,
|
|
70899
71117
|
searchResults
|
|
@@ -70902,6 +71120,7 @@ function UploaderInner({
|
|
|
70902
71120
|
filesWOIssues.push({
|
|
70903
71121
|
file,
|
|
70904
71122
|
csvValidationIssue,
|
|
71123
|
+
ignoredHeadersMsg,
|
|
70905
71124
|
matchedHeaders,
|
|
70906
71125
|
userSchema,
|
|
70907
71126
|
searchResults
|
|
@@ -71001,7 +71220,8 @@ function UploaderInner({
|
|
|
71001
71220
|
"tg-dropzone-reject": isDragReject,
|
|
71002
71221
|
// 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
|
|
71003
71222
|
"tg-dropzone-accept": isDragAccept,
|
|
71004
|
-
"tg-dropzone-disabled":
|
|
71223
|
+
"tg-dropzone-disabled": dropzoneDisabled,
|
|
71224
|
+
"bp3-disabled": dropzoneDisabled
|
|
71005
71225
|
})
|
|
71006
71226
|
}),
|
|
71007
71227
|
/* @__PURE__ */ React__default$1.createElement("input", __spreadValues({}, getInputProps())),
|
|
@@ -73365,7 +73585,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
73365
73585
|
this.cache[key] = value;
|
|
73366
73586
|
};
|
|
73367
73587
|
var cacheDefault = {
|
|
73368
|
-
create: /* @__PURE__ */ __name(function
|
|
73588
|
+
create: /* @__PURE__ */ __name(function create3() {
|
|
73369
73589
|
return new ObjectWithoutPrototypeCache();
|
|
73370
73590
|
}, "create")
|
|
73371
73591
|
};
|
|
@@ -78473,7 +78693,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78473
78693
|
}
|
|
78474
78694
|
}, "classCallCheck");
|
|
78475
78695
|
var createClass2 = function() {
|
|
78476
|
-
function
|
|
78696
|
+
function defineProperties3(target, props) {
|
|
78477
78697
|
for (var i = 0; i < props.length; i++) {
|
|
78478
78698
|
var descriptor2 = props[i];
|
|
78479
78699
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -78483,12 +78703,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78483
78703
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
78484
78704
|
}
|
|
78485
78705
|
}
|
|
78486
|
-
__name(
|
|
78706
|
+
__name(defineProperties3, "defineProperties");
|
|
78487
78707
|
return function(Constructor, protoProps, staticProps) {
|
|
78488
78708
|
if (protoProps)
|
|
78489
|
-
|
|
78709
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
78490
78710
|
if (staticProps)
|
|
78491
|
-
|
|
78711
|
+
defineProperties3(Constructor, staticProps);
|
|
78492
78712
|
return Constructor;
|
|
78493
78713
|
};
|
|
78494
78714
|
}();
|
|
@@ -82303,10 +82523,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82303
82523
|
return value;
|
|
82304
82524
|
}
|
|
82305
82525
|
__name(dateReviver, "dateReviver");
|
|
82306
|
-
function
|
|
82526
|
+
function create5(options) {
|
|
82307
82527
|
return new DiffPatcher(options);
|
|
82308
82528
|
}
|
|
82309
|
-
__name(
|
|
82529
|
+
__name(create5, "create");
|
|
82310
82530
|
var defaultInstance$4 = void 0;
|
|
82311
82531
|
function diff() {
|
|
82312
82532
|
if (!defaultInstance$4) {
|
|
@@ -82346,7 +82566,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82346
82566
|
exports3.DiffPatcher = DiffPatcher;
|
|
82347
82567
|
exports3.formatters = index2;
|
|
82348
82568
|
exports3.console = console$1;
|
|
82349
|
-
exports3.create =
|
|
82569
|
+
exports3.create = create5;
|
|
82350
82570
|
exports3.dateReviver = dateReviver;
|
|
82351
82571
|
exports3.diff = diff;
|
|
82352
82572
|
exports3.patch = patch2;
|
|
@@ -82875,7 +83095,7 @@ const modifiableTypes = [
|
|
|
82875
83095
|
let allWarnings = [];
|
|
82876
83096
|
let makeToast = /* @__PURE__ */ __name(() => {
|
|
82877
83097
|
if (typeof window !== "undefined" && window.toastr && allWarnings.length) {
|
|
82878
|
-
window.toastr.warning(allWarnings.join("\n"));
|
|
83098
|
+
window.toastr.warning(lodashExports.uniq(allWarnings).join("\n"));
|
|
82879
83099
|
}
|
|
82880
83100
|
allWarnings = [];
|
|
82881
83101
|
}, "makeToast");
|
|
@@ -91776,6 +91996,8 @@ function convertAmbiguousStringToRegex(string2, isProtein2) {
|
|
|
91776
91996
|
}
|
|
91777
91997
|
__name(convertAmbiguousStringToRegex, "convertAmbiguousStringToRegex");
|
|
91778
91998
|
function getComplementSequenceString(sequence2, isRna2) {
|
|
91999
|
+
if (typeof sequence2 !== "string")
|
|
92000
|
+
return "";
|
|
91779
92001
|
let complementSeqString = "";
|
|
91780
92002
|
const complementMap = lodashExports.merge(
|
|
91781
92003
|
DNAComplementMap,
|
|
@@ -106762,7 +106984,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
106762
106984
|
object3[name2] = value;
|
|
106763
106985
|
}
|
|
106764
106986
|
}, "defineProperty$2");
|
|
106765
|
-
var
|
|
106987
|
+
var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
106766
106988
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
106767
106989
|
var props = keys$1(map3);
|
|
106768
106990
|
if (hasSymbols2) {
|
|
@@ -106772,8 +106994,8 @@ var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
106772
106994
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
106773
106995
|
}
|
|
106774
106996
|
}, "defineProperties");
|
|
106775
|
-
|
|
106776
|
-
var defineProperties_1 =
|
|
106997
|
+
defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
|
|
106998
|
+
var defineProperties_1 = defineProperties2;
|
|
106777
106999
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
106778
107000
|
return value !== value;
|
|
106779
107001
|
}, "numberIsNaN");
|
|
@@ -115500,7 +115722,7 @@ function usePrevious(current) {
|
|
|
115500
115722
|
return ref;
|
|
115501
115723
|
}
|
|
115502
115724
|
__name(usePrevious, "usePrevious");
|
|
115503
|
-
function
|
|
115725
|
+
function create4() {
|
|
115504
115726
|
let lock = null;
|
|
115505
115727
|
function isClaimed() {
|
|
115506
115728
|
return Boolean(lock);
|
|
@@ -115539,7 +115761,7 @@ function create5() {
|
|
|
115539
115761
|
tryAbandon
|
|
115540
115762
|
};
|
|
115541
115763
|
}
|
|
115542
|
-
__name(
|
|
115764
|
+
__name(create4, "create");
|
|
115543
115765
|
function isDragging(state2) {
|
|
115544
115766
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
115545
115767
|
return false;
|
|
@@ -116582,7 +116804,7 @@ function useSensorMarshal(_ref4) {
|
|
|
116582
116804
|
enableDefaultSensors
|
|
116583
116805
|
} = _ref4;
|
|
116584
116806
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
116585
|
-
const lockAPI = useState(() =>
|
|
116807
|
+
const lockAPI = useState(() => create4())[0];
|
|
116586
116808
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
116587
116809
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
116588
116810
|
lockAPI.tryAbandon();
|
|
@@ -120613,6 +120835,7 @@ const Axis$1 = /* @__PURE__ */ __name(function(props) {
|
|
|
120613
120835
|
{
|
|
120614
120836
|
className: "veRowViewAxis veAxis",
|
|
120615
120837
|
height: annotationHeight,
|
|
120838
|
+
width,
|
|
120616
120839
|
style: __spreadValues({ marginTop, overflow: "visible", display: "block" }, style2)
|
|
120617
120840
|
},
|
|
120618
120841
|
tickMarkSVG,
|
|
@@ -121670,7 +121893,7 @@ function PointedAnnotation(props) {
|
|
|
121670
121893
|
annotation.labelClassName
|
|
121671
121894
|
),
|
|
121672
121895
|
style: {
|
|
121673
|
-
fontSize: ".
|
|
121896
|
+
// fontSize: ".8em",
|
|
121674
121897
|
fill: _textColor
|
|
121675
121898
|
},
|
|
121676
121899
|
transform: `translate(${textOffset},${height2 - 2})`
|
|
@@ -123658,10 +123881,10 @@ function RowItem(props) {
|
|
|
123658
123881
|
height: height2
|
|
123659
123882
|
} = annotationVisibility2;
|
|
123660
123883
|
const { sequence: sequence2 = "", cutsites = [] } = row;
|
|
123661
|
-
const reverseSequence = getComplementSequenceString(
|
|
123884
|
+
const reverseSequence = showReverseSequence ? getComplementSequenceString(
|
|
123662
123885
|
alignmentData && alignmentData.sequence || sequence2,
|
|
123663
123886
|
isRna2
|
|
123664
|
-
);
|
|
123887
|
+
) : "";
|
|
123665
123888
|
const getGaps2 = useMemo$1(() => {
|
|
123666
123889
|
if (alignmentData) {
|
|
123667
123890
|
const gapMap = getGapMap$1(alignmentData.sequence);
|
|
@@ -124755,7 +124978,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
124755
124978
|
}
|
|
124756
124979
|
__name(showFileDialog, "showFileDialog");
|
|
124757
124980
|
const name = "@teselagen/ove";
|
|
124758
|
-
const version = "0.
|
|
124981
|
+
const version = "0.4.1";
|
|
124759
124982
|
const main = "./src/index.js";
|
|
124760
124983
|
const exports$1 = {
|
|
124761
124984
|
".": {
|
|
@@ -125757,8 +125980,10 @@ Object.keys(defaultCopyOptions).forEach((type) => {
|
|
|
125757
125980
|
const readOnlyDisabledTooltip = "Sorry this function is not allowed in Read-Only Mode";
|
|
125758
125981
|
const bpEditingDisabledTooltip = "Sequence Editing Disabled";
|
|
125759
125982
|
const noSelection = /* @__PURE__ */ __name(({ selectionLayer: selectionLayer2 = {} }) => !(selectionLayer2.start > -1 && selectionLayer2.end > -1) && "Selection Required", "noSelection");
|
|
125760
|
-
const triggerClipboardCommand = /* @__PURE__ */ __name((type) => {
|
|
125761
|
-
const wrapper2 = document.querySelector(
|
|
125983
|
+
const triggerClipboardCommand = /* @__PURE__ */ __name((type, props) => {
|
|
125984
|
+
const wrapper2 = document.querySelector(
|
|
125985
|
+
`#${props.editorName} .veVectorInteractionWrapper`
|
|
125986
|
+
);
|
|
125762
125987
|
if (!wrapper2) {
|
|
125763
125988
|
return window.toastr.info(`Cannot trigger a ${type} in the current view`);
|
|
125764
125989
|
}
|
|
@@ -125789,8 +126014,8 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125789
126014
|
cut: {
|
|
125790
126015
|
isDisabled: (props) => props.disableBpEditing && bpEditingDisabledTooltip || props.readOnly && readOnlyDisabledTooltip || props.sequenceLength === 0,
|
|
125791
126016
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125792
|
-
handler: () => {
|
|
125793
|
-
triggerClipboardCommand("cut");
|
|
126017
|
+
handler: (props) => {
|
|
126018
|
+
triggerClipboardCommand("cut", props);
|
|
125794
126019
|
},
|
|
125795
126020
|
hotkey: "mod+x"
|
|
125796
126021
|
},
|
|
@@ -125808,13 +126033,13 @@ const editCommandDefs = __spreadValues(__spreadProps(__spreadValues({
|
|
|
125808
126033
|
},
|
|
125809
126034
|
copy: {
|
|
125810
126035
|
isDisabled: (props) => props.sequenceLength === 0,
|
|
125811
|
-
handler: () => triggerClipboardCommand("copy"),
|
|
126036
|
+
handler: (props) => triggerClipboardCommand("copy", props),
|
|
125812
126037
|
hotkey: "mod+c"
|
|
125813
126038
|
},
|
|
125814
126039
|
paste: {
|
|
125815
126040
|
isDisabled: (props) => props.readOnly && readOnlyDisabledTooltip,
|
|
125816
126041
|
isHidden: (props) => props.readOnly || props.disableBpEditing,
|
|
125817
|
-
handler: () => triggerClipboardCommand("paste"),
|
|
126042
|
+
handler: (props) => triggerClipboardCommand("paste", props),
|
|
125818
126043
|
hotkey: "mod+v"
|
|
125819
126044
|
},
|
|
125820
126045
|
undo: {
|
|
@@ -127063,7 +127288,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
127063
127288
|
}
|
|
127064
127289
|
}, "classCallCheck");
|
|
127065
127290
|
var createClass = function() {
|
|
127066
|
-
function
|
|
127291
|
+
function defineProperties3(target, props) {
|
|
127067
127292
|
for (var i = 0; i < props.length; i++) {
|
|
127068
127293
|
var descriptor2 = props[i];
|
|
127069
127294
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -127073,12 +127298,12 @@ var createClass = function() {
|
|
|
127073
127298
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
127074
127299
|
}
|
|
127075
127300
|
}
|
|
127076
|
-
__name(
|
|
127301
|
+
__name(defineProperties3, "defineProperties");
|
|
127077
127302
|
return function(Constructor, protoProps, staticProps) {
|
|
127078
127303
|
if (protoProps)
|
|
127079
|
-
|
|
127304
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
127080
127305
|
if (staticProps)
|
|
127081
|
-
|
|
127306
|
+
defineProperties3(Constructor, staticProps);
|
|
127082
127307
|
return Constructor;
|
|
127083
127308
|
};
|
|
127084
127309
|
}();
|
|
@@ -130052,7 +130277,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
130052
130277
|
...getEditDeleteHandlers("Feature", annotation),
|
|
130053
130278
|
...this.getSelectionMenuOptions(annotation),
|
|
130054
130279
|
...readOnly2 ? [] : [
|
|
130055
|
-
...parts2
|
|
130280
|
+
...parts2 ? [
|
|
130056
130281
|
"--",
|
|
130057
130282
|
{
|
|
130058
130283
|
text: "Make a Part from Feature",
|
|
@@ -130081,7 +130306,7 @@ function VectorInteractionHOC(Component2) {
|
|
|
130081
130306
|
});
|
|
130082
130307
|
})
|
|
130083
130308
|
}
|
|
130084
|
-
],
|
|
130309
|
+
] : [],
|
|
130085
130310
|
{
|
|
130086
130311
|
text: "Merge With Another Feature",
|
|
130087
130312
|
onClick: () => {
|
|
@@ -132263,6 +132488,11 @@ const __LinearView = class __LinearView extends React__default$1.Component {
|
|
|
132263
132488
|
updateLabelsForInViewFeatures();
|
|
132264
132489
|
}
|
|
132265
132490
|
};
|
|
132491
|
+
const tickSpacingToUse = tickSpacing || (isLinViewZoomed ? massageTickSpacing(Math.ceil(120 / this.charWidth)) : massageTickSpacing(
|
|
132492
|
+
Math.floor(
|
|
132493
|
+
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10) * Math.max(1, Math.log10(1 / this.charWidth))
|
|
132494
|
+
)
|
|
132495
|
+
));
|
|
132266
132496
|
return /* @__PURE__ */ React__default$1.createElement(
|
|
132267
132497
|
ReactDraggable,
|
|
132268
132498
|
{
|
|
@@ -132364,9 +132594,7 @@ const __LinearView = class __LinearView extends React__default$1.Component {
|
|
|
132364
132594
|
bpsPerRow,
|
|
132365
132595
|
fullSequence: sequenceData2.sequence,
|
|
132366
132596
|
emptyText: getEmptyText({ sequenceData: sequenceData2, caretPosition: caretPosition2 }),
|
|
132367
|
-
tickSpacing:
|
|
132368
|
-
this.getMaxLength() / (sequenceData2.isProtein ? 9 : 10)
|
|
132369
|
-
)),
|
|
132597
|
+
tickSpacing: tickSpacingToUse,
|
|
132370
132598
|
annotationVisibility: __spreadValues(__spreadValues(__spreadValues({}, rest.annotationVisibility), (!isLinViewZoomed || this.charWidth < 5) && {
|
|
132371
132599
|
translations: false,
|
|
132372
132600
|
primaryProteinSequence: false,
|
|
@@ -132651,7 +132879,6 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132651
132879
|
display: "flex",
|
|
132652
132880
|
flexDirection: "column",
|
|
132653
132881
|
overflowX: "visible"
|
|
132654
|
-
// overflowY: "hidden"
|
|
132655
132882
|
},
|
|
132656
132883
|
onClick: this.handleMinimapClick
|
|
132657
132884
|
},
|
|
@@ -132665,9 +132892,7 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132665
132892
|
}
|
|
132666
132893
|
},
|
|
132667
132894
|
style: {
|
|
132668
|
-
// maxHeight: 350,
|
|
132669
132895
|
overflowY: minimapTracksPartialHeight > 190 ? "auto" : "hidden",
|
|
132670
|
-
// overflowY: "auto",
|
|
132671
132896
|
overflowX: "hidden",
|
|
132672
132897
|
position: "relative"
|
|
132673
132898
|
},
|
|
@@ -132698,7 +132923,6 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132698
132923
|
{
|
|
132699
132924
|
style: {
|
|
132700
132925
|
marginTop: -3
|
|
132701
|
-
// paddingLeft: nameDivWidth
|
|
132702
132926
|
},
|
|
132703
132927
|
ref
|
|
132704
132928
|
},
|
|
@@ -132714,15 +132938,15 @@ const _Minimap = class _Minimap extends React__default$1.Component {
|
|
|
132714
132938
|
/* @__PURE__ */ React__default$1.createElement(
|
|
132715
132939
|
Axis$2,
|
|
132716
132940
|
__spreadValues({}, {
|
|
132717
|
-
row: { start: 0, end: seqLength },
|
|
132941
|
+
row: { start: 0, end: seqLength - 1 },
|
|
132718
132942
|
tickSpacing: massageTickSpacing(Math.floor(seqLength / 10)),
|
|
132719
132943
|
bpsPerRow: seqLength,
|
|
132720
132944
|
charWidth: charWidth2,
|
|
132721
132945
|
annotationHeight: 15,
|
|
132722
132946
|
sequenceLength: seqLength,
|
|
132723
132947
|
style: {
|
|
132724
|
-
|
|
132725
|
-
|
|
132948
|
+
height: 17,
|
|
132949
|
+
width: "100%"
|
|
132726
132950
|
}
|
|
132727
132951
|
})
|
|
132728
132952
|
)
|