@teselagen/ove 0.3.9 → 0.3.11
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.js +165 -163
- package/index.mjs +165 -163
- package/index.umd.js +276 -267
- package/package.json +4 -4
- package/src/LinearView/index.js +1 -3
- package/src/withEditorProps/index.js +1 -1
package/index.mjs
CHANGED
|
@@ -3418,10 +3418,7 @@ function getAugmentedNamespace(n) {
|
|
|
3418
3418
|
if (typeof f == "function") {
|
|
3419
3419
|
var a = function a () {
|
|
3420
3420
|
if (this instanceof a) {
|
|
3421
|
-
|
|
3422
|
-
args.push.apply(args, arguments);
|
|
3423
|
-
var Ctor = Function.bind.apply(f, args);
|
|
3424
|
-
return new Ctor();
|
|
3421
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
3425
3422
|
}
|
|
3426
3423
|
return f.apply(this, arguments);
|
|
3427
3424
|
};
|
|
@@ -5500,7 +5497,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
5500
5497
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
5501
5498
|
PERFORMANCE OF THIS SOFTWARE.
|
|
5502
5499
|
***************************************************************************** */
|
|
5503
|
-
/* global Reflect, Promise */
|
|
5500
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
5504
5501
|
|
|
5505
5502
|
|
|
5506
5503
|
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
@@ -5565,6 +5562,11 @@ function __spread() {
|
|
|
5565
5562
|
return ar;
|
|
5566
5563
|
}
|
|
5567
5564
|
|
|
5565
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
5566
|
+
var e = new Error(message);
|
|
5567
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
5568
|
+
};
|
|
5569
|
+
|
|
5568
5570
|
var COMMON_MIME_TYPES = new Map([
|
|
5569
5571
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
5570
5572
|
['aac', 'audio/aac'],
|
|
@@ -9164,19 +9166,20 @@ var Reaction = /*#__PURE__*/function () {
|
|
|
9164
9166
|
}
|
|
9165
9167
|
}
|
|
9166
9168
|
};
|
|
9167
|
-
_proto.getDisposer_ = function getDisposer_() {
|
|
9168
|
-
var
|
|
9169
|
-
|
|
9170
|
-
|
|
9169
|
+
_proto.getDisposer_ = function getDisposer_(abortSignal) {
|
|
9170
|
+
var _this2 = this;
|
|
9171
|
+
var dispose = function dispose() {
|
|
9172
|
+
_this2.dispose();
|
|
9173
|
+
abortSignal == null ? void 0 : abortSignal.removeEventListener == null ? void 0 : abortSignal.removeEventListener("abort", dispose);
|
|
9174
|
+
};
|
|
9175
|
+
abortSignal == null ? void 0 : abortSignal.addEventListener == null ? void 0 : abortSignal.addEventListener("abort", dispose);
|
|
9176
|
+
dispose[$mobx] = this;
|
|
9177
|
+
return dispose;
|
|
9171
9178
|
};
|
|
9172
9179
|
_proto.toString = function toString() {
|
|
9173
9180
|
return "Reaction[" + this.name_ + "]";
|
|
9174
9181
|
};
|
|
9175
9182
|
_proto.trace = function trace$1(enterBreakPoint) {
|
|
9176
|
-
if (enterBreakPoint === void 0) {
|
|
9177
|
-
enterBreakPoint = false;
|
|
9178
|
-
}
|
|
9179
|
-
trace(this, enterBreakPoint);
|
|
9180
9183
|
};
|
|
9181
9184
|
return Reaction;
|
|
9182
9185
|
}();
|
|
@@ -9308,7 +9311,7 @@ function isAction(thing) {
|
|
|
9308
9311
|
* @returns disposer function, which can be used to stop the view from being updated in the future.
|
|
9309
9312
|
*/
|
|
9310
9313
|
function autorun(view, opts) {
|
|
9311
|
-
var _opts$name, _opts;
|
|
9314
|
+
var _opts$name, _opts, _opts2, _opts2$signal, _opts3;
|
|
9312
9315
|
if (opts === void 0) {
|
|
9313
9316
|
opts = EMPTY_OBJECT;
|
|
9314
9317
|
}
|
|
@@ -9339,8 +9342,10 @@ function autorun(view, opts) {
|
|
|
9339
9342
|
function reactionRunner() {
|
|
9340
9343
|
view(reaction);
|
|
9341
9344
|
}
|
|
9342
|
-
|
|
9343
|
-
|
|
9345
|
+
if (!((_opts2 = opts) != null && (_opts2$signal = _opts2.signal) != null && _opts2$signal.aborted)) {
|
|
9346
|
+
reaction.schedule_();
|
|
9347
|
+
}
|
|
9348
|
+
return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);
|
|
9344
9349
|
}
|
|
9345
9350
|
var run = function run(f) {
|
|
9346
9351
|
return f();
|
|
@@ -9557,37 +9562,6 @@ function isObservable$1(value) {
|
|
|
9557
9562
|
return _isObservable(value);
|
|
9558
9563
|
}
|
|
9559
9564
|
|
|
9560
|
-
function trace() {
|
|
9561
|
-
{
|
|
9562
|
-
die("trace() is not available in production builds");
|
|
9563
|
-
}
|
|
9564
|
-
var enterBreakPoint = false;
|
|
9565
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9566
|
-
args[_key] = arguments[_key];
|
|
9567
|
-
}
|
|
9568
|
-
if (typeof args[args.length - 1] === "boolean") {
|
|
9569
|
-
enterBreakPoint = args.pop();
|
|
9570
|
-
}
|
|
9571
|
-
var derivation = getAtomFromArgs(args);
|
|
9572
|
-
if (!derivation) {
|
|
9573
|
-
return die("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
9574
|
-
}
|
|
9575
|
-
if (derivation.isTracing_ === TraceMode.NONE) {
|
|
9576
|
-
console.log("[mobx.trace] '" + derivation.name_ + "' tracing enabled");
|
|
9577
|
-
}
|
|
9578
|
-
derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG;
|
|
9579
|
-
}
|
|
9580
|
-
function getAtomFromArgs(args) {
|
|
9581
|
-
switch (args.length) {
|
|
9582
|
-
case 0:
|
|
9583
|
-
return globalState.trackingDerivation;
|
|
9584
|
-
case 1:
|
|
9585
|
-
return getAtom(args[0]);
|
|
9586
|
-
case 2:
|
|
9587
|
-
return getAtom(args[0], args[1]);
|
|
9588
|
-
}
|
|
9589
|
-
}
|
|
9590
|
-
|
|
9591
9565
|
/**
|
|
9592
9566
|
* During a transaction no views are updated until the end of the transaction.
|
|
9593
9567
|
* The transaction will be run synchronously nonetheless.
|
|
@@ -30431,12 +30405,20 @@ var _cof = function (it) {
|
|
|
30431
30405
|
return toString$6.call(it).slice(8, -1);
|
|
30432
30406
|
};
|
|
30433
30407
|
|
|
30434
|
-
|
|
30435
|
-
var
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
|
|
30439
|
-
|
|
30408
|
+
var _iobject;
|
|
30409
|
+
var hasRequired_iobject;
|
|
30410
|
+
|
|
30411
|
+
function require_iobject () {
|
|
30412
|
+
if (hasRequired_iobject) return _iobject;
|
|
30413
|
+
hasRequired_iobject = 1;
|
|
30414
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
30415
|
+
var cof = _cof;
|
|
30416
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
30417
|
+
_iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
30418
|
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
30419
|
+
};
|
|
30420
|
+
return _iobject;
|
|
30421
|
+
}
|
|
30440
30422
|
|
|
30441
30423
|
// 7.2.1 RequireObjectCoercible(argument)
|
|
30442
30424
|
var _defined = function (it) {
|
|
@@ -30445,7 +30427,7 @@ var _defined = function (it) {
|
|
|
30445
30427
|
};
|
|
30446
30428
|
|
|
30447
30429
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
30448
|
-
var IObject =
|
|
30430
|
+
var IObject = require_iobject();
|
|
30449
30431
|
var defined$2 = _defined;
|
|
30450
30432
|
var _toIobject = function (it) {
|
|
30451
30433
|
return IObject(defined$2(it));
|
|
@@ -30565,7 +30547,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
|
|
|
30565
30547
|
|
|
30566
30548
|
var _objectPie = {};
|
|
30567
30549
|
|
|
30568
|
-
|
|
30550
|
+
var hasRequired_objectPie;
|
|
30551
|
+
|
|
30552
|
+
function require_objectPie () {
|
|
30553
|
+
if (hasRequired_objectPie) return _objectPie;
|
|
30554
|
+
hasRequired_objectPie = 1;
|
|
30555
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
30556
|
+
return _objectPie;
|
|
30557
|
+
}
|
|
30569
30558
|
|
|
30570
30559
|
// 7.1.13 ToObject(argument)
|
|
30571
30560
|
var defined$1 = _defined;
|
|
@@ -30583,9 +30572,9 @@ function require_objectAssign () {
|
|
|
30583
30572
|
var DESCRIPTORS = _descriptors;
|
|
30584
30573
|
var getKeys = _objectKeys;
|
|
30585
30574
|
var gOPS = _objectGops;
|
|
30586
|
-
var pIE =
|
|
30575
|
+
var pIE = require_objectPie();
|
|
30587
30576
|
var toObject = _toObject;
|
|
30588
|
-
var IObject =
|
|
30577
|
+
var IObject = require_iobject();
|
|
30589
30578
|
var $assign = Object.assign;
|
|
30590
30579
|
|
|
30591
30580
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
@@ -31298,7 +31287,7 @@ var _wksDefine = function (name) {
|
|
|
31298
31287
|
// all enumerable object keys, includes symbols
|
|
31299
31288
|
var getKeys = _objectKeys;
|
|
31300
31289
|
var gOPS$1 = _objectGops;
|
|
31301
|
-
var pIE$1 =
|
|
31290
|
+
var pIE$1 = require_objectPie();
|
|
31302
31291
|
var _enumKeys = function (it) {
|
|
31303
31292
|
var result = getKeys(it);
|
|
31304
31293
|
var getSymbols = gOPS$1.f;
|
|
@@ -31351,7 +31340,7 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
|
|
|
31351
31340
|
|
|
31352
31341
|
var _objectGopd = {};
|
|
31353
31342
|
|
|
31354
|
-
var pIE =
|
|
31343
|
+
var pIE = require_objectPie();
|
|
31355
31344
|
var createDesc$1 = _propertyDesc;
|
|
31356
31345
|
var toIObject$1 = _toIobject;
|
|
31357
31346
|
var toPrimitive$1 = _toPrimitive$1;
|
|
@@ -31519,7 +31508,7 @@ if (!USE_NATIVE) {
|
|
|
31519
31508
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
31520
31509
|
$DP.f = $defineProperty$1;
|
|
31521
31510
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
31522
|
-
|
|
31511
|
+
require_objectPie().f = $propertyIsEnumerable;
|
|
31523
31512
|
$GOPS.f = $getOwnPropertySymbols;
|
|
31524
31513
|
|
|
31525
31514
|
if (DESCRIPTORS && !_library) {
|
|
@@ -41252,7 +41241,7 @@ ReactTable.defaultProps = defaultProps$2;
|
|
|
41252
41241
|
var dayjs_min = {exports: {}};
|
|
41253
41242
|
|
|
41254
41243
|
(function (module, exports) {
|
|
41255
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",
|
|
41244
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof b},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,f=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=O.p(f),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return O.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=O.p(d),m=w(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return O.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:O.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),_=b.prototype;return w.prototype=_,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
41256
41245
|
} (dayjs_min));
|
|
41257
41246
|
|
|
41258
41247
|
var dayjs_minExports = dayjs_min.exports;
|
|
@@ -97696,7 +97685,9 @@ const extractZipFiles = async (allFiles) => {
|
|
|
97696
97685
|
const zipFilesArray = Array.isArray(zipFiles) ? zipFiles : [zipFiles];
|
|
97697
97686
|
const parsedZips = await Promise$1.map(
|
|
97698
97687
|
zipFilesArray,
|
|
97699
|
-
(file) => jszip_minExports.loadAsync(
|
|
97688
|
+
(file) => jszip_minExports.loadAsync(
|
|
97689
|
+
file instanceof (typeof Blob !== "undefined" ? Blob : require("buffer").Blob) ? file : file.originFileObj
|
|
97690
|
+
)
|
|
97700
97691
|
);
|
|
97701
97692
|
const zippedFiles = lodashExports.flatMap(
|
|
97702
97693
|
parsedZips,
|
|
@@ -99553,10 +99544,7 @@ function UploaderInner({
|
|
|
99553
99544
|
const { showDialogPromise: showUploadCsvWizardDialog, comp } = useDialog({
|
|
99554
99545
|
ModalComponent: UploadCsvWizardDialog
|
|
99555
99546
|
});
|
|
99556
|
-
const {
|
|
99557
|
-
showDialogPromise: showSimpleInsertDataDialog,
|
|
99558
|
-
comp: comp2
|
|
99559
|
-
} = useDialog({
|
|
99547
|
+
const { showDialogPromise: showSimpleInsertDataDialog, comp: comp2 } = useDialog({
|
|
99560
99548
|
ModalComponent: SimpleInsertDataDialog
|
|
99561
99549
|
});
|
|
99562
99550
|
function cleanupFiles() {
|
|
@@ -99632,17 +99620,16 @@ function UploaderInner({
|
|
|
99632
99620
|
const handleDownloadXlsxFile = async () => {
|
|
99633
99621
|
const dataDictionarySchema = [
|
|
99634
99622
|
{ value: (f) => f.displayName || f.path, column: `Column Name` },
|
|
99623
|
+
// {
|
|
99624
|
+
// value: f => f.isUnique ? "Unique" : "",
|
|
99625
|
+
// column: `Unique?`
|
|
99626
|
+
// },
|
|
99635
99627
|
{
|
|
99636
|
-
value: (f) => f.
|
|
99637
|
-
column: `
|
|
99628
|
+
value: (f) => f.isRequired ? "Required" : "Optional",
|
|
99629
|
+
column: `Required?`
|
|
99638
99630
|
},
|
|
99639
99631
|
{
|
|
99640
|
-
value: (f) => f.
|
|
99641
|
-
column: `Required`,
|
|
99642
|
-
type: Boolean
|
|
99643
|
-
},
|
|
99644
|
-
{
|
|
99645
|
-
value: (f) => f.type || "text",
|
|
99632
|
+
value: (f) => f.type === "dropdown" ? "text" : f.type || "text",
|
|
99646
99633
|
column: `Data Type`
|
|
99647
99634
|
},
|
|
99648
99635
|
{
|
|
@@ -99978,10 +99965,7 @@ function UploaderInner({
|
|
|
99978
99965
|
...file.parsedString ? { parsedString: file.parsedString } : {}
|
|
99979
99966
|
};
|
|
99980
99967
|
});
|
|
99981
|
-
const
|
|
99982
|
-
...cleanedAccepted,
|
|
99983
|
-
...fileListToUse
|
|
99984
|
-
].slice(0, fileLimit ? fileLimit : void 0);
|
|
99968
|
+
const toKeep = [];
|
|
99985
99969
|
if (validateAgainstSchema) {
|
|
99986
99970
|
const filesWIssues = [];
|
|
99987
99971
|
const filesWOIssues = [];
|
|
@@ -100012,65 +99996,65 @@ function UploaderInner({
|
|
|
100012
99996
|
userSchema,
|
|
100013
99997
|
parsedF.data
|
|
100014
99998
|
);
|
|
100015
|
-
|
|
100016
|
-
|
|
100017
|
-
|
|
100018
|
-
|
|
100019
|
-
|
|
100020
|
-
|
|
100021
|
-
|
|
100022
|
-
|
|
100023
|
-
|
|
100024
|
-
|
|
100025
|
-
|
|
100026
|
-
|
|
100027
|
-
|
|
100028
|
-
|
|
100029
|
-
|
|
100030
|
-
keepValues: true,
|
|
100031
|
-
updateUnregisteredFields: true
|
|
100032
|
-
}
|
|
100033
|
-
);
|
|
100034
|
-
const err = Object.values(csvValidationIssue)[0];
|
|
100035
|
-
const errMsg = err && err.message ? err.message : err;
|
|
100036
|
-
if (lodashExports.isPlainObject(errMsg)) {
|
|
100037
|
-
throw new Error(
|
|
100038
|
-
`errMsg is an object ${JSON.stringify(
|
|
100039
|
-
errMsg,
|
|
100040
|
-
null,
|
|
100041
|
-
4
|
|
100042
|
-
)}`
|
|
99999
|
+
} else {
|
|
100000
|
+
toKeep.push(file);
|
|
100001
|
+
let csvValidationIssue = _csvValidationIssue;
|
|
100002
|
+
if (csvValidationIssue) {
|
|
100003
|
+
if (lodashExports.isObject(csvValidationIssue)) {
|
|
100004
|
+
initializeForm(
|
|
100005
|
+
`editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
|
|
100006
|
+
{
|
|
100007
|
+
reduxFormCellValidation: csvValidationIssue
|
|
100008
|
+
},
|
|
100009
|
+
{
|
|
100010
|
+
keepDirty: true,
|
|
100011
|
+
keepValues: true,
|
|
100012
|
+
updateUnregisteredFields: true
|
|
100013
|
+
}
|
|
100043
100014
|
);
|
|
100015
|
+
const err = Object.values(csvValidationIssue)[0];
|
|
100016
|
+
const errMsg = err && err.message ? err.message : err;
|
|
100017
|
+
if (lodashExports.isPlainObject(errMsg)) {
|
|
100018
|
+
throw new Error(
|
|
100019
|
+
`errMsg is an object ${JSON.stringify(
|
|
100020
|
+
errMsg,
|
|
100021
|
+
null,
|
|
100022
|
+
4
|
|
100023
|
+
)}`
|
|
100024
|
+
);
|
|
100025
|
+
}
|
|
100026
|
+
csvValidationIssue = /* @__PURE__ */ React__default$1.createElement("div", null, /* @__PURE__ */ React__default$1.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React__default$1.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React__default$1.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
|
|
100044
100027
|
}
|
|
100045
|
-
|
|
100028
|
+
filesWIssues.push({
|
|
100029
|
+
file,
|
|
100030
|
+
csvValidationIssue,
|
|
100031
|
+
matchedHeaders,
|
|
100032
|
+
userSchema,
|
|
100033
|
+
searchResults
|
|
100034
|
+
});
|
|
100035
|
+
} else {
|
|
100036
|
+
filesWOIssues.push({
|
|
100037
|
+
file,
|
|
100038
|
+
csvValidationIssue,
|
|
100039
|
+
matchedHeaders,
|
|
100040
|
+
userSchema,
|
|
100041
|
+
searchResults
|
|
100042
|
+
});
|
|
100043
|
+
const newFileName = removeExt(file.name) + `.csv`;
|
|
100044
|
+
const { newFile, cleanedEntities } = getNewCsvFile(
|
|
100045
|
+
userSchema.userData,
|
|
100046
|
+
newFileName
|
|
100047
|
+
);
|
|
100048
|
+
file.meta = parsedF.meta;
|
|
100049
|
+
file.hasEditClick = true;
|
|
100050
|
+
file.parsedData = cleanedEntities;
|
|
100051
|
+
file.name = newFileName;
|
|
100052
|
+
file.originFileObj = newFile;
|
|
100053
|
+
file.originalFileObj = newFile;
|
|
100046
100054
|
}
|
|
100047
|
-
filesWIssues.push({
|
|
100048
|
-
file,
|
|
100049
|
-
csvValidationIssue,
|
|
100050
|
-
matchedHeaders,
|
|
100051
|
-
userSchema,
|
|
100052
|
-
searchResults
|
|
100053
|
-
});
|
|
100054
|
-
} else {
|
|
100055
|
-
filesWOIssues.push({
|
|
100056
|
-
file,
|
|
100057
|
-
csvValidationIssue,
|
|
100058
|
-
matchedHeaders,
|
|
100059
|
-
userSchema,
|
|
100060
|
-
searchResults
|
|
100061
|
-
});
|
|
100062
|
-
const newFileName = removeExt(file.name) + `.csv`;
|
|
100063
|
-
const { newFile, cleanedEntities } = getNewCsvFile(
|
|
100064
|
-
userSchema.userData,
|
|
100065
|
-
newFileName
|
|
100066
|
-
);
|
|
100067
|
-
file.meta = parsedF.meta;
|
|
100068
|
-
file.hasEditClick = true;
|
|
100069
|
-
file.parsedData = cleanedEntities;
|
|
100070
|
-
file.name = newFileName;
|
|
100071
|
-
file.originFileObj = newFile;
|
|
100072
|
-
file.originalFileObj = newFile;
|
|
100073
100055
|
}
|
|
100056
|
+
} else {
|
|
100057
|
+
toKeep.push(file);
|
|
100074
100058
|
}
|
|
100075
100059
|
}
|
|
100076
100060
|
if (filesWIssues.length) {
|
|
@@ -100118,7 +100102,18 @@ function UploaderInner({
|
|
|
100118
100102
|
}, 200);
|
|
100119
100103
|
}
|
|
100120
100104
|
}
|
|
100105
|
+
} else {
|
|
100106
|
+
toKeep.push(...cleanedAccepted);
|
|
100107
|
+
}
|
|
100108
|
+
if (toKeep.length === 0) {
|
|
100109
|
+
window.toastr && window.toastr.error(
|
|
100110
|
+
`It looks like there wasn't any data in your file. Please add some data and try again`
|
|
100111
|
+
);
|
|
100121
100112
|
}
|
|
100113
|
+
const cleanedFileList = [...toKeep, ...fileListToUse].slice(
|
|
100114
|
+
0,
|
|
100115
|
+
fileLimit ? fileLimit : void 0
|
|
100116
|
+
);
|
|
100122
100117
|
handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
|
|
100123
100118
|
}
|
|
100124
100119
|
},
|
|
@@ -100253,9 +100248,7 @@ function UploaderInner({
|
|
|
100253
100248
|
incomingData: file.parsedData,
|
|
100254
100249
|
validateAgainstSchema
|
|
100255
100250
|
});
|
|
100256
|
-
const {
|
|
100257
|
-
newEntities
|
|
100258
|
-
} = await showSimpleInsertDataDialog(
|
|
100251
|
+
const { newEntities } = await showSimpleInsertDataDialog(
|
|
100259
100252
|
"onSimpleInsertDialogFinish",
|
|
100260
100253
|
{
|
|
100261
100254
|
dialogProps: {
|
|
@@ -100271,10 +100264,7 @@ function UploaderInner({
|
|
|
100271
100264
|
if (!newEntities) {
|
|
100272
100265
|
return;
|
|
100273
100266
|
} else {
|
|
100274
|
-
const {
|
|
100275
|
-
newFile,
|
|
100276
|
-
cleanedEntities
|
|
100277
|
-
} = getNewCsvFile(newEntities, file.name);
|
|
100267
|
+
const { newFile, cleanedEntities } = getNewCsvFile(newEntities, file.name);
|
|
100278
100268
|
Object.assign(file, {
|
|
100279
100269
|
...newFile,
|
|
100280
100270
|
originFileObj: newFile,
|
|
@@ -122973,6 +122963,19 @@ function createInitialSequence(options) {
|
|
|
122973
122963
|
};
|
|
122974
122964
|
}
|
|
122975
122965
|
|
|
122966
|
+
function extractFileExtension(name) {
|
|
122967
|
+
if (typeof name === "string") {
|
|
122968
|
+
let ext = "";
|
|
122969
|
+
const match = name.match(/\.(\w+)$/);
|
|
122970
|
+
if (match && match[1]) {
|
|
122971
|
+
ext = match[1];
|
|
122972
|
+
}
|
|
122973
|
+
return ext;
|
|
122974
|
+
} else {
|
|
122975
|
+
return "";
|
|
122976
|
+
}
|
|
122977
|
+
}
|
|
122978
|
+
|
|
122976
122979
|
function splitStringIntoLines(string) {
|
|
122977
122980
|
let lines = [];
|
|
122978
122981
|
if (string === "") {
|
|
@@ -123546,7 +123549,11 @@ function validateSequenceArray(parsingResultArray, options) {
|
|
|
123546
123549
|
return parsingResultArray;
|
|
123547
123550
|
}
|
|
123548
123551
|
|
|
123549
|
-
function fastaToJson(fileString, options) {
|
|
123552
|
+
function fastaToJson(fileString, options = {}) {
|
|
123553
|
+
const ext = extractFileExtension(options.fileName);
|
|
123554
|
+
if (/^(faa)$/.test(ext)) {
|
|
123555
|
+
options.isProtein = true;
|
|
123556
|
+
}
|
|
123550
123557
|
let resultArray = [];
|
|
123551
123558
|
let result = null;
|
|
123552
123559
|
try {
|
|
@@ -125190,6 +125197,7 @@ const parseXml = function(xmlData) {
|
|
|
125190
125197
|
if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
|
|
125191
125198
|
if (tagName[tagName.length - 1] === "/") {
|
|
125192
125199
|
tagName = tagName.substr(0, tagName.length - 1);
|
|
125200
|
+
jPath = jPath.substr(0, jPath.length - 1);
|
|
125193
125201
|
tagExp = tagName;
|
|
125194
125202
|
} else {
|
|
125195
125203
|
tagExp = tagExp.substr(0, tagExp.length - 1);
|
|
@@ -125746,11 +125754,18 @@ Builder.prototype.j2x = function(jObj, level) {
|
|
|
125746
125754
|
let attrStr = "";
|
|
125747
125755
|
let val = "";
|
|
125748
125756
|
for (let key in jObj) {
|
|
125749
|
-
if (typeof jObj[key] === "undefined")
|
|
125750
|
-
if (key
|
|
125757
|
+
if (typeof jObj[key] === "undefined") {
|
|
125758
|
+
if (this.isAttribute(key)) {
|
|
125759
|
+
val += "";
|
|
125760
|
+
}
|
|
125761
|
+
} else if (jObj[key] === null) {
|
|
125762
|
+
if (this.isAttribute(key)) {
|
|
125763
|
+
val += "";
|
|
125764
|
+
} else if (key[0] === "?") {
|
|
125751
125765
|
val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
|
|
125752
|
-
else
|
|
125766
|
+
} else {
|
|
125753
125767
|
val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
|
|
125768
|
+
}
|
|
125754
125769
|
} else if (jObj[key] instanceof Date) {
|
|
125755
125770
|
val += this.buildTextValNode(jObj[key], key, "", level);
|
|
125756
125771
|
} else if (typeof jObj[key] !== "object") {
|
|
@@ -125833,7 +125848,7 @@ Builder.prototype.buildObjectNode = function(val, key, attrStr, level) {
|
|
|
125833
125848
|
piClosingChar = "?";
|
|
125834
125849
|
tagEndExp = "";
|
|
125835
125850
|
}
|
|
125836
|
-
if (attrStr && val.indexOf("<") === -1) {
|
|
125851
|
+
if ((attrStr || attrStr === "") && val.indexOf("<") === -1) {
|
|
125837
125852
|
return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
|
|
125838
125853
|
} else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
|
|
125839
125854
|
return this.indentate(level) + `<!--${val}-->` + this.newLine;
|
|
@@ -125884,7 +125899,7 @@ function indentate(level) {
|
|
|
125884
125899
|
return this.options.indentBy.repeat(level);
|
|
125885
125900
|
}
|
|
125886
125901
|
function isAttribute(name) {
|
|
125887
|
-
if (name.startsWith(this.options.attributeNamePrefix)) {
|
|
125902
|
+
if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
|
|
125888
125903
|
return name.substr(this.attrPrefixLen);
|
|
125889
125904
|
} else {
|
|
125890
125905
|
return false;
|
|
@@ -126010,19 +126025,6 @@ function parseSbolJson(sbolJson, options) {
|
|
|
126010
126025
|
};
|
|
126011
126026
|
}
|
|
126012
126027
|
|
|
126013
|
-
function extractFileExtension(name) {
|
|
126014
|
-
if (typeof name === "string") {
|
|
126015
|
-
let ext = "";
|
|
126016
|
-
const match = name.match(/\.(\w+)$/);
|
|
126017
|
-
if (match && match[1]) {
|
|
126018
|
-
ext = match[1];
|
|
126019
|
-
}
|
|
126020
|
-
return ext;
|
|
126021
|
-
} else {
|
|
126022
|
-
return "";
|
|
126023
|
-
}
|
|
126024
|
-
}
|
|
126025
|
-
|
|
126026
126028
|
/*!
|
|
126027
126029
|
* Copyright 2008 Fair Oaks Labs, Inc.
|
|
126028
126030
|
* All rights reserved.
|
|
@@ -135739,7 +135741,7 @@ async function anyToJson(fileContentStringOrFileObj, options) {
|
|
|
135739
135741
|
);
|
|
135740
135742
|
}
|
|
135741
135743
|
}
|
|
135742
|
-
if (/^(fasta|fas|fa|fna|ffn)$/.test(ext)) {
|
|
135744
|
+
if (/^(fasta|fas|fa|fna|ffn|faa)$/.test(ext)) {
|
|
135743
135745
|
return fastaToJson(fileContentString, options);
|
|
135744
135746
|
} else if (/^(gb|gbk)$/.test(ext)) {
|
|
135745
135747
|
return genbankToJson(fileContentString, options);
|
|
@@ -142523,7 +142525,7 @@ const importSequenceFromFile = (props) => async (file, opts = {}) => {
|
|
|
142523
142525
|
}
|
|
142524
142526
|
async function finishDisplayingSeq(seqData) {
|
|
142525
142527
|
if (onImport) {
|
|
142526
|
-
seqData = await onImport(seqData);
|
|
142528
|
+
seqData = await onImport(seqData, file, props);
|
|
142527
142529
|
}
|
|
142528
142530
|
if (seqData) {
|
|
142529
142531
|
seqData.stateTrackingId = uuid();
|
|
@@ -161029,7 +161031,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
161029
161031
|
}
|
|
161030
161032
|
|
|
161031
161033
|
const name = "@teselagen/ove";
|
|
161032
|
-
const version = "0.3.
|
|
161034
|
+
const version = "0.3.10";
|
|
161033
161035
|
const main = "./src/index.js";
|
|
161034
161036
|
const exports$1 = {
|
|
161035
161037
|
".": {
|
|
@@ -169280,7 +169282,7 @@ class _LinearView extends React__default$1.Component {
|
|
|
169280
169282
|
updateLabelsForInViewFeatures();
|
|
169281
169283
|
},
|
|
169282
169284
|
rowContainerStyle: {
|
|
169283
|
-
height: height - 36,
|
|
169285
|
+
height: isNaN(height - 36) ? "auto" : height - 36,
|
|
169284
169286
|
width: innerWidth + 26,
|
|
169285
169287
|
paddingRight: marginWidth / 2,
|
|
169286
169288
|
...isLinViewZoomed && !isInAlignment && { paddingBottom: 15 }
|