@teselagen/ove 0.3.9 → 0.3.10

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 CHANGED
@@ -3439,10 +3439,7 @@ function getAugmentedNamespace(n) {
3439
3439
  if (typeof f == "function") {
3440
3440
  var a = function a () {
3441
3441
  if (this instanceof a) {
3442
- var args = [null];
3443
- args.push.apply(args, arguments);
3444
- var Ctor = Function.bind.apply(f, args);
3445
- return new Ctor();
3442
+ return Reflect.construct(f, arguments, this.constructor);
3446
3443
  }
3447
3444
  return f.apply(this, arguments);
3448
3445
  };
@@ -5521,7 +5518,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5521
5518
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5522
5519
  PERFORMANCE OF THIS SOFTWARE.
5523
5520
  ***************************************************************************** */
5524
- /* global Reflect, Promise */
5521
+ /* global Reflect, Promise, SuppressedError, Symbol */
5525
5522
 
5526
5523
 
5527
5524
  function __awaiter$1(thisArg, _arguments, P, generator) {
@@ -5586,6 +5583,11 @@ function __spread() {
5586
5583
  return ar;
5587
5584
  }
5588
5585
 
5586
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5587
+ var e = new Error(message);
5588
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5589
+ };
5590
+
5589
5591
  var COMMON_MIME_TYPES = new Map([
5590
5592
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
5591
5593
  ['aac', 'audio/aac'],
@@ -9185,19 +9187,20 @@ var Reaction = /*#__PURE__*/function () {
9185
9187
  }
9186
9188
  }
9187
9189
  };
9188
- _proto.getDisposer_ = function getDisposer_() {
9189
- var r = this.dispose.bind(this);
9190
- r[$mobx] = this;
9191
- return r;
9190
+ _proto.getDisposer_ = function getDisposer_(abortSignal) {
9191
+ var _this2 = this;
9192
+ var dispose = function dispose() {
9193
+ _this2.dispose();
9194
+ abortSignal == null ? void 0 : abortSignal.removeEventListener == null ? void 0 : abortSignal.removeEventListener("abort", dispose);
9195
+ };
9196
+ abortSignal == null ? void 0 : abortSignal.addEventListener == null ? void 0 : abortSignal.addEventListener("abort", dispose);
9197
+ dispose[$mobx] = this;
9198
+ return dispose;
9192
9199
  };
9193
9200
  _proto.toString = function toString() {
9194
9201
  return "Reaction[" + this.name_ + "]";
9195
9202
  };
9196
9203
  _proto.trace = function trace$1(enterBreakPoint) {
9197
- if (enterBreakPoint === void 0) {
9198
- enterBreakPoint = false;
9199
- }
9200
- trace(this, enterBreakPoint);
9201
9204
  };
9202
9205
  return Reaction;
9203
9206
  }();
@@ -9329,7 +9332,7 @@ function isAction(thing) {
9329
9332
  * @returns disposer function, which can be used to stop the view from being updated in the future.
9330
9333
  */
9331
9334
  function autorun(view, opts) {
9332
- var _opts$name, _opts;
9335
+ var _opts$name, _opts, _opts2, _opts2$signal, _opts3;
9333
9336
  if (opts === void 0) {
9334
9337
  opts = EMPTY_OBJECT;
9335
9338
  }
@@ -9360,8 +9363,10 @@ function autorun(view, opts) {
9360
9363
  function reactionRunner() {
9361
9364
  view(reaction);
9362
9365
  }
9363
- reaction.schedule_();
9364
- return reaction.getDisposer_();
9366
+ if (!((_opts2 = opts) != null && (_opts2$signal = _opts2.signal) != null && _opts2$signal.aborted)) {
9367
+ reaction.schedule_();
9368
+ }
9369
+ return reaction.getDisposer_((_opts3 = opts) == null ? void 0 : _opts3.signal);
9365
9370
  }
9366
9371
  var run = function run(f) {
9367
9372
  return f();
@@ -9578,37 +9583,6 @@ function isObservable$1(value) {
9578
9583
  return _isObservable(value);
9579
9584
  }
9580
9585
 
9581
- function trace() {
9582
- {
9583
- die("trace() is not available in production builds");
9584
- }
9585
- var enterBreakPoint = false;
9586
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9587
- args[_key] = arguments[_key];
9588
- }
9589
- if (typeof args[args.length - 1] === "boolean") {
9590
- enterBreakPoint = args.pop();
9591
- }
9592
- var derivation = getAtomFromArgs(args);
9593
- if (!derivation) {
9594
- 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");
9595
- }
9596
- if (derivation.isTracing_ === TraceMode.NONE) {
9597
- console.log("[mobx.trace] '" + derivation.name_ + "' tracing enabled");
9598
- }
9599
- derivation.isTracing_ = enterBreakPoint ? TraceMode.BREAK : TraceMode.LOG;
9600
- }
9601
- function getAtomFromArgs(args) {
9602
- switch (args.length) {
9603
- case 0:
9604
- return globalState.trackingDerivation;
9605
- case 1:
9606
- return getAtom(args[0]);
9607
- case 2:
9608
- return getAtom(args[0], args[1]);
9609
- }
9610
- }
9611
-
9612
9586
  /**
9613
9587
  * During a transaction no views are updated until the end of the transaction.
9614
9588
  * The transaction will be run synchronously nonetheless.
@@ -30343,17 +30317,17 @@ var _toPrimitive$1 = function (it, S) {
30343
30317
  throw TypeError("Can't convert object to primitive value");
30344
30318
  };
30345
30319
 
30346
- var anObject$5 = _anObject;
30320
+ var anObject$3 = _anObject;
30347
30321
  var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30348
30322
  var toPrimitive$2 = _toPrimitive$1;
30349
- var dP$3 = Object.defineProperty;
30323
+ var dP$2 = Object.defineProperty;
30350
30324
 
30351
30325
  _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30352
- anObject$5(O);
30326
+ anObject$3(O);
30353
30327
  P = toPrimitive$2(P, true);
30354
- anObject$5(Attributes);
30328
+ anObject$3(Attributes);
30355
30329
  if (IE8_DOM_DEFINE$1) try {
30356
- return dP$3(O, P, Attributes);
30330
+ return dP$2(O, P, Attributes);
30357
30331
  } catch (e) { /* empty */ }
30358
30332
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30359
30333
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -30369,10 +30343,10 @@ var _propertyDesc = function (bitmap, value) {
30369
30343
  };
30370
30344
  };
30371
30345
 
30372
- var dP$2 = _objectDp;
30346
+ var dP$1 = _objectDp;
30373
30347
  var createDesc$3 = _propertyDesc;
30374
30348
  var _hide = _descriptors ? function (object, key, value) {
30375
- return dP$2.f(object, key, createDesc$3(1, value));
30349
+ return dP$1.f(object, key, createDesc$3(1, value));
30376
30350
  } : function (object, key, value) {
30377
30351
  object[key] = value;
30378
30352
  return object;
@@ -30388,7 +30362,7 @@ var core$3 = _coreExports;
30388
30362
  var ctx$1 = _ctx;
30389
30363
  var hide$3 = _hide;
30390
30364
  var has$e = _has;
30391
- var PROTOTYPE$2 = 'prototype';
30365
+ var PROTOTYPE$1 = 'prototype';
30392
30366
 
30393
30367
  var $export$8 = function (type, name, source) {
30394
30368
  var IS_FORCED = type & $export$8.F;
@@ -30398,8 +30372,8 @@ var $export$8 = function (type, name, source) {
30398
30372
  var IS_BIND = type & $export$8.B;
30399
30373
  var IS_WRAP = type & $export$8.W;
30400
30374
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
30401
- var expProto = exports[PROTOTYPE$2];
30402
- var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$2];
30375
+ var expProto = exports[PROTOTYPE$1];
30376
+ var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name] : (global$5[name] || {})[PROTOTYPE$1];
30403
30377
  var key, own, out;
30404
30378
  if (IS_GLOBAL) source = name;
30405
30379
  for (key in source) {
@@ -30423,7 +30397,7 @@ var $export$8 = function (type, name, source) {
30423
30397
  } return new C(a, b, c);
30424
30398
  } return C.apply(this, arguments);
30425
30399
  };
30426
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
30400
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
30427
30401
  return F;
30428
30402
  // make static versions for prototype methods
30429
30403
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -30452,12 +30426,20 @@ var _cof = function (it) {
30452
30426
  return toString$6.call(it).slice(8, -1);
30453
30427
  };
30454
30428
 
30455
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
30456
- var cof$2 = _cof;
30457
- // eslint-disable-next-line no-prototype-builtins
30458
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30459
- return cof$2(it) == 'String' ? it.split('') : Object(it);
30460
- };
30429
+ var _iobject;
30430
+ var hasRequired_iobject;
30431
+
30432
+ function require_iobject () {
30433
+ if (hasRequired_iobject) return _iobject;
30434
+ hasRequired_iobject = 1;
30435
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
30436
+ var cof = _cof;
30437
+ // eslint-disable-next-line no-prototype-builtins
30438
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
30439
+ return cof(it) == 'String' ? it.split('') : Object(it);
30440
+ };
30441
+ return _iobject;
30442
+ }
30461
30443
 
30462
30444
  // 7.2.1 RequireObjectCoercible(argument)
30463
30445
  var _defined = function (it) {
@@ -30466,7 +30448,7 @@ var _defined = function (it) {
30466
30448
  };
30467
30449
 
30468
30450
  // to indexed object, toObject with fallback for non-array-like ES3 strings
30469
- var IObject = _iobject;
30451
+ var IObject = require_iobject();
30470
30452
  var defined$2 = _defined;
30471
30453
  var _toIobject = function (it) {
30472
30454
  return IObject(defined$2(it));
@@ -30552,14 +30534,14 @@ var _sharedKey = function (key) {
30552
30534
  var has$d = _has;
30553
30535
  var toIObject$4 = _toIobject;
30554
30536
  var arrayIndexOf = _arrayIncludes$1(false);
30555
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
30537
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
30556
30538
 
30557
30539
  var _objectKeysInternal = function (object, names) {
30558
30540
  var O = toIObject$4(object);
30559
30541
  var i = 0;
30560
30542
  var result = [];
30561
30543
  var key;
30562
- for (key in O) if (key != IE_PROTO$2) has$d(O, key) && result.push(key);
30544
+ for (key in O) if (key != IE_PROTO$1) has$d(O, key) && result.push(key);
30563
30545
  // Don't enum bug & hidden keys
30564
30546
  while (names.length > i) if (has$d(O, key = names[i++])) {
30565
30547
  ~arrayIndexOf(result, key) || result.push(key);
@@ -30573,11 +30555,11 @@ var _enumBugKeys = (
30573
30555
  ).split(',');
30574
30556
 
30575
30557
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30576
- var $keys$3 = _objectKeysInternal;
30577
- var enumBugKeys$1 = _enumBugKeys;
30558
+ var $keys$2 = _objectKeysInternal;
30559
+ var enumBugKeys = _enumBugKeys;
30578
30560
 
30579
30561
  var _objectKeys = Object.keys || function keys(O) {
30580
- return $keys$3(O, enumBugKeys$1);
30562
+ return $keys$2(O, enumBugKeys);
30581
30563
  };
30582
30564
 
30583
30565
  var _objectGops = {};
@@ -30586,7 +30568,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
30586
30568
 
30587
30569
  var _objectPie = {};
30588
30570
 
30589
- _objectPie.f = {}.propertyIsEnumerable;
30571
+ var hasRequired_objectPie;
30572
+
30573
+ function require_objectPie () {
30574
+ if (hasRequired_objectPie) return _objectPie;
30575
+ hasRequired_objectPie = 1;
30576
+ _objectPie.f = {}.propertyIsEnumerable;
30577
+ return _objectPie;
30578
+ }
30590
30579
 
30591
30580
  // 7.1.13 ToObject(argument)
30592
30581
  var defined$1 = _defined;
@@ -30604,9 +30593,9 @@ function require_objectAssign () {
30604
30593
  var DESCRIPTORS = _descriptors;
30605
30594
  var getKeys = _objectKeys;
30606
30595
  var gOPS = _objectGops;
30607
- var pIE = _objectPie;
30596
+ var pIE = require_objectPie();
30608
30597
  var toObject = _toObject;
30609
- var IObject = _iobject;
30598
+ var IObject = require_iobject();
30610
30599
  var $assign = Object.assign;
30611
30600
 
30612
30601
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -30677,19 +30666,27 @@ var _iterators = {};
30677
30666
 
30678
30667
  var _redefine = _hide;
30679
30668
 
30680
- var dP$1 = _objectDp;
30681
- var anObject$4 = _anObject;
30682
- var getKeys$1 = _objectKeys;
30669
+ var _objectDps;
30670
+ var hasRequired_objectDps;
30683
30671
 
30684
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30685
- anObject$4(O);
30686
- var keys = getKeys$1(Properties);
30687
- var length = keys.length;
30688
- var i = 0;
30689
- var P;
30690
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
30691
- return O;
30692
- };
30672
+ function require_objectDps () {
30673
+ if (hasRequired_objectDps) return _objectDps;
30674
+ hasRequired_objectDps = 1;
30675
+ var dP = _objectDp;
30676
+ var anObject = _anObject;
30677
+ var getKeys = _objectKeys;
30678
+
30679
+ _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30680
+ anObject(O);
30681
+ var keys = getKeys(Properties);
30682
+ var length = keys.length;
30683
+ var i = 0;
30684
+ var P;
30685
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
30686
+ return O;
30687
+ };
30688
+ return _objectDps;
30689
+ }
30693
30690
 
30694
30691
  var _html;
30695
30692
  var hasRequired_html;
@@ -30702,47 +30699,55 @@ function require_html () {
30702
30699
  return _html;
30703
30700
  }
30704
30701
 
30705
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30706
- var anObject$3 = _anObject;
30707
- var dPs = _objectDps;
30708
- var enumBugKeys = _enumBugKeys;
30709
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
30710
- var Empty = function () { /* empty */ };
30711
- var PROTOTYPE$1 = 'prototype';
30702
+ var _objectCreate;
30703
+ var hasRequired_objectCreate;
30712
30704
 
30713
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
30714
- var createDict = function () {
30715
- // Thrash, waste and sodomy: IE GC bug
30716
- var iframe = require_domCreate()('iframe');
30717
- var i = enumBugKeys.length;
30718
- var lt = '<';
30719
- var gt = '>';
30720
- var iframeDocument;
30721
- iframe.style.display = 'none';
30722
- require_html().appendChild(iframe);
30723
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30724
- // createDict = iframe.contentWindow.Object;
30725
- // html.removeChild(iframe);
30726
- iframeDocument = iframe.contentWindow.document;
30727
- iframeDocument.open();
30728
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30729
- iframeDocument.close();
30730
- createDict = iframeDocument.F;
30731
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
30732
- return createDict();
30733
- };
30734
-
30735
- var _objectCreate = Object.create || function create(O, Properties) {
30736
- var result;
30737
- if (O !== null) {
30738
- Empty[PROTOTYPE$1] = anObject$3(O);
30739
- result = new Empty();
30740
- Empty[PROTOTYPE$1] = null;
30741
- // add "__proto__" for Object.getPrototypeOf polyfill
30742
- result[IE_PROTO$1] = O;
30743
- } else result = createDict();
30744
- return Properties === undefined ? result : dPs(result, Properties);
30745
- };
30705
+ function require_objectCreate () {
30706
+ if (hasRequired_objectCreate) return _objectCreate;
30707
+ hasRequired_objectCreate = 1;
30708
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30709
+ var anObject = _anObject;
30710
+ var dPs = require_objectDps();
30711
+ var enumBugKeys = _enumBugKeys;
30712
+ var IE_PROTO = _sharedKey('IE_PROTO');
30713
+ var Empty = function () { /* empty */ };
30714
+ var PROTOTYPE = 'prototype';
30715
+
30716
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
30717
+ var createDict = function () {
30718
+ // Thrash, waste and sodomy: IE GC bug
30719
+ var iframe = require_domCreate()('iframe');
30720
+ var i = enumBugKeys.length;
30721
+ var lt = '<';
30722
+ var gt = '>';
30723
+ var iframeDocument;
30724
+ iframe.style.display = 'none';
30725
+ require_html().appendChild(iframe);
30726
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30727
+ // createDict = iframe.contentWindow.Object;
30728
+ // html.removeChild(iframe);
30729
+ iframeDocument = iframe.contentWindow.document;
30730
+ iframeDocument.open();
30731
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30732
+ iframeDocument.close();
30733
+ createDict = iframeDocument.F;
30734
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
30735
+ return createDict();
30736
+ };
30737
+
30738
+ _objectCreate = Object.create || function create(O, Properties) {
30739
+ var result;
30740
+ if (O !== null) {
30741
+ Empty[PROTOTYPE] = anObject(O);
30742
+ result = new Empty();
30743
+ Empty[PROTOTYPE] = null;
30744
+ // add "__proto__" for Object.getPrototypeOf polyfill
30745
+ result[IE_PROTO] = O;
30746
+ } else result = createDict();
30747
+ return Properties === undefined ? result : dPs(result, Properties);
30748
+ };
30749
+ return _objectCreate;
30750
+ }
30746
30751
 
30747
30752
  var _wks = {exports: {}};
30748
30753
 
@@ -30768,7 +30773,7 @@ var _setToStringTag = function (it, tag, stat) {
30768
30773
  if (it && !has$c(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
30769
30774
  };
30770
30775
 
30771
- var create$4 = _objectCreate;
30776
+ var create$4 = require_objectCreate();
30772
30777
  var descriptor = _propertyDesc;
30773
30778
  var setToStringTag$2 = _setToStringTag;
30774
30779
  var IteratorPrototype = {};
@@ -31319,7 +31324,7 @@ var _wksDefine = function (name) {
31319
31324
  // all enumerable object keys, includes symbols
31320
31325
  var getKeys = _objectKeys;
31321
31326
  var gOPS$1 = _objectGops;
31322
- var pIE$1 = _objectPie;
31327
+ var pIE$1 = require_objectPie();
31323
31328
  var _enumKeys = function (it) {
31324
31329
  var result = getKeys(it);
31325
31330
  var getSymbols = gOPS$1.f;
@@ -31342,17 +31347,24 @@ var _objectGopnExt = {};
31342
31347
 
31343
31348
  var _objectGopn = {};
31344
31349
 
31345
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31346
- var $keys$2 = _objectKeysInternal;
31347
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31350
+ var hasRequired_objectGopn;
31348
31351
 
31349
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31350
- return $keys$2(O, hiddenKeys);
31351
- };
31352
+ function require_objectGopn () {
31353
+ if (hasRequired_objectGopn) return _objectGopn;
31354
+ hasRequired_objectGopn = 1;
31355
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31356
+ var $keys = _objectKeysInternal;
31357
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31358
+
31359
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31360
+ return $keys(O, hiddenKeys);
31361
+ };
31362
+ return _objectGopn;
31363
+ }
31352
31364
 
31353
31365
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31354
31366
  var toIObject$2 = _toIobject;
31355
- var gOPN$1 = _objectGopn.f;
31367
+ var gOPN$1 = require_objectGopn().f;
31356
31368
  var toString$5 = {}.toString;
31357
31369
 
31358
31370
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31372,7 +31384,7 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
31372
31384
 
31373
31385
  var _objectGopd = {};
31374
31386
 
31375
- var pIE = _objectPie;
31387
+ var pIE = require_objectPie();
31376
31388
  var createDesc$1 = _propertyDesc;
31377
31389
  var toIObject$1 = _toIobject;
31378
31390
  var toPrimitive$1 = _toPrimitive$1;
@@ -31411,7 +31423,7 @@ var toObject$1 = _toObject;
31411
31423
  var toIObject = _toIobject;
31412
31424
  var toPrimitive = _toPrimitive$1;
31413
31425
  var createDesc = _propertyDesc;
31414
- var _create$1 = _objectCreate;
31426
+ var _create$1 = require_objectCreate();
31415
31427
  var gOPNExt = _objectGopnExt;
31416
31428
  var $GOPD = _objectGopd;
31417
31429
  var $GOPS = _objectGops;
@@ -31539,8 +31551,8 @@ if (!USE_NATIVE) {
31539
31551
 
31540
31552
  $GOPD.f = $getOwnPropertyDescriptor;
31541
31553
  $DP.f = $defineProperty$1;
31542
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31543
- _objectPie.f = $propertyIsEnumerable;
31554
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31555
+ require_objectPie().f = $propertyIsEnumerable;
31544
31556
  $GOPS.f = $getOwnPropertySymbols;
31545
31557
 
31546
31558
  if (DESCRIPTORS && !_library) {
@@ -31721,7 +31733,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
31721
31733
 
31722
31734
  var $export = _export;
31723
31735
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
31724
- $export($export.S, 'Object', { create: _objectCreate });
31736
+ $export($export.S, 'Object', { create: require_objectCreate() });
31725
31737
 
31726
31738
  var $Object$1 = _coreExports.Object;
31727
31739
  var create$3 = function create(P, D) {
@@ -41273,7 +41285,7 @@ ReactTable.defaultProps = defaultProps$2;
41273
41285
  var dayjs_min = {exports: {}};
41274
41286
 
41275
41287
  (function (module, exports) {
41276
- !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",f="month",h="quarter",c="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,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);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:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[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 _},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 _(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 _=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,h=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(h){case c:return r?l(1,0):l(31,11);case f: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),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){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,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,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,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$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}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,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}));
41288
+ !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}));
41277
41289
  } (dayjs_min));
41278
41290
 
41279
41291
  var dayjs_minExports = dayjs_min.exports;
@@ -97717,7 +97729,9 @@ const extractZipFiles = async (allFiles) => {
97717
97729
  const zipFilesArray = Array.isArray(zipFiles) ? zipFiles : [zipFiles];
97718
97730
  const parsedZips = await Promise$1.map(
97719
97731
  zipFilesArray,
97720
- (file) => jszip_minExports.loadAsync(file instanceof Blob ? file : file.originFileObj)
97732
+ (file) => jszip_minExports.loadAsync(
97733
+ file instanceof (typeof Blob !== "undefined" ? Blob : require("buffer").Blob) ? file : file.originFileObj
97734
+ )
97721
97735
  );
97722
97736
  const zippedFiles = lodashExports.flatMap(
97723
97737
  parsedZips,
@@ -99574,10 +99588,7 @@ function UploaderInner({
99574
99588
  const { showDialogPromise: showUploadCsvWizardDialog, comp } = useDialog({
99575
99589
  ModalComponent: UploadCsvWizardDialog
99576
99590
  });
99577
- const {
99578
- showDialogPromise: showSimpleInsertDataDialog,
99579
- comp: comp2
99580
- } = useDialog({
99591
+ const { showDialogPromise: showSimpleInsertDataDialog, comp: comp2 } = useDialog({
99581
99592
  ModalComponent: SimpleInsertDataDialog
99582
99593
  });
99583
99594
  function cleanupFiles() {
@@ -99653,17 +99664,16 @@ function UploaderInner({
99653
99664
  const handleDownloadXlsxFile = async () => {
99654
99665
  const dataDictionarySchema = [
99655
99666
  { value: (f) => f.displayName || f.path, column: `Column Name` },
99667
+ // {
99668
+ // value: f => f.isUnique ? "Unique" : "",
99669
+ // column: `Unique?`
99670
+ // },
99656
99671
  {
99657
- value: (f) => f.isUnique,
99658
- column: `Unique`
99672
+ value: (f) => f.isRequired ? "Required" : "Optional",
99673
+ column: `Required?`
99659
99674
  },
99660
99675
  {
99661
- value: (f) => f.isRequired,
99662
- column: `Required`,
99663
- type: Boolean
99664
- },
99665
- {
99666
- value: (f) => f.type || "text",
99676
+ value: (f) => f.type === "dropdown" ? "text" : f.type || "text",
99667
99677
  column: `Data Type`
99668
99678
  },
99669
99679
  {
@@ -99999,10 +100009,7 @@ function UploaderInner({
99999
100009
  ...file.parsedString ? { parsedString: file.parsedString } : {}
100000
100010
  };
100001
100011
  });
100002
- const cleanedFileList = [
100003
- ...cleanedAccepted,
100004
- ...fileListToUse
100005
- ].slice(0, fileLimit ? fileLimit : void 0);
100012
+ const toKeep = [];
100006
100013
  if (validateAgainstSchema) {
100007
100014
  const filesWIssues = [];
100008
100015
  const filesWOIssues = [];
@@ -100033,65 +100040,65 @@ function UploaderInner({
100033
100040
  userSchema,
100034
100041
  parsedF.data
100035
100042
  );
100036
- window.toastr && window.toastr.error(
100037
- `It looks like there wasn't any data in your file. Please add some data and try again`
100038
- );
100039
- return;
100040
- }
100041
- let csvValidationIssue = _csvValidationIssue;
100042
- if (csvValidationIssue) {
100043
- if (lodashExports.isObject(csvValidationIssue)) {
100044
- initializeForm(
100045
- `editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
100046
- {
100047
- reduxFormCellValidation: csvValidationIssue
100048
- },
100049
- {
100050
- keepDirty: true,
100051
- keepValues: true,
100052
- updateUnregisteredFields: true
100053
- }
100054
- );
100055
- const err = Object.values(csvValidationIssue)[0];
100056
- const errMsg = err && err.message ? err.message : err;
100057
- if (lodashExports.isPlainObject(errMsg)) {
100058
- throw new Error(
100059
- `errMsg is an object ${JSON.stringify(
100060
- errMsg,
100061
- null,
100062
- 4
100063
- )}`
100043
+ } else {
100044
+ toKeep.push(file);
100045
+ let csvValidationIssue = _csvValidationIssue;
100046
+ if (csvValidationIssue) {
100047
+ if (lodashExports.isObject(csvValidationIssue)) {
100048
+ initializeForm(
100049
+ `editableCellTable${cleanedAccepted.length > 1 ? `-${i}` : ""}`,
100050
+ {
100051
+ reduxFormCellValidation: csvValidationIssue
100052
+ },
100053
+ {
100054
+ keepDirty: true,
100055
+ keepValues: true,
100056
+ updateUnregisteredFields: true
100057
+ }
100064
100058
  );
100059
+ const err = Object.values(csvValidationIssue)[0];
100060
+ const errMsg = err && err.message ? err.message : err;
100061
+ if (lodashExports.isPlainObject(errMsg)) {
100062
+ throw new Error(
100063
+ `errMsg is an object ${JSON.stringify(
100064
+ errMsg,
100065
+ null,
100066
+ 4
100067
+ )}`
100068
+ );
100069
+ }
100070
+ csvValidationIssue = /* @__PURE__ */ React$3.createElement("div", null, /* @__PURE__ */ React$3.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React$3.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React$3.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
100065
100071
  }
100066
- csvValidationIssue = /* @__PURE__ */ React$3.createElement("div", null, /* @__PURE__ */ React$3.createElement("div", null, "It looks like there was an error with your data (Correct on the Review Data page):"), /* @__PURE__ */ React$3.createElement("div", { style: { color: "red" } }, errMsg), /* @__PURE__ */ React$3.createElement("div", null, "Please review your headers and then correct any errors on the next page."));
100072
+ filesWIssues.push({
100073
+ file,
100074
+ csvValidationIssue,
100075
+ matchedHeaders,
100076
+ userSchema,
100077
+ searchResults
100078
+ });
100079
+ } else {
100080
+ filesWOIssues.push({
100081
+ file,
100082
+ csvValidationIssue,
100083
+ matchedHeaders,
100084
+ userSchema,
100085
+ searchResults
100086
+ });
100087
+ const newFileName = removeExt(file.name) + `.csv`;
100088
+ const { newFile, cleanedEntities } = getNewCsvFile(
100089
+ userSchema.userData,
100090
+ newFileName
100091
+ );
100092
+ file.meta = parsedF.meta;
100093
+ file.hasEditClick = true;
100094
+ file.parsedData = cleanedEntities;
100095
+ file.name = newFileName;
100096
+ file.originFileObj = newFile;
100097
+ file.originalFileObj = newFile;
100067
100098
  }
100068
- filesWIssues.push({
100069
- file,
100070
- csvValidationIssue,
100071
- matchedHeaders,
100072
- userSchema,
100073
- searchResults
100074
- });
100075
- } else {
100076
- filesWOIssues.push({
100077
- file,
100078
- csvValidationIssue,
100079
- matchedHeaders,
100080
- userSchema,
100081
- searchResults
100082
- });
100083
- const newFileName = removeExt(file.name) + `.csv`;
100084
- const { newFile, cleanedEntities } = getNewCsvFile(
100085
- userSchema.userData,
100086
- newFileName
100087
- );
100088
- file.meta = parsedF.meta;
100089
- file.hasEditClick = true;
100090
- file.parsedData = cleanedEntities;
100091
- file.name = newFileName;
100092
- file.originFileObj = newFile;
100093
- file.originalFileObj = newFile;
100094
100099
  }
100100
+ } else {
100101
+ toKeep.push(file);
100095
100102
  }
100096
100103
  }
100097
100104
  if (filesWIssues.length) {
@@ -100139,7 +100146,18 @@ function UploaderInner({
100139
100146
  }, 200);
100140
100147
  }
100141
100148
  }
100149
+ } else {
100150
+ toKeep.push(...cleanedAccepted);
100142
100151
  }
100152
+ if (toKeep.length === 0) {
100153
+ window.toastr && window.toastr.error(
100154
+ `It looks like there wasn't any data in your file. Please add some data and try again`
100155
+ );
100156
+ }
100157
+ const cleanedFileList = [...toKeep, ...fileListToUse].slice(
100158
+ 0,
100159
+ fileLimit ? fileLimit : void 0
100160
+ );
100143
100161
  handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
100144
100162
  }
100145
100163
  },
@@ -100274,9 +100292,7 @@ function UploaderInner({
100274
100292
  incomingData: file.parsedData,
100275
100293
  validateAgainstSchema
100276
100294
  });
100277
- const {
100278
- newEntities
100279
- } = await showSimpleInsertDataDialog(
100295
+ const { newEntities } = await showSimpleInsertDataDialog(
100280
100296
  "onSimpleInsertDialogFinish",
100281
100297
  {
100282
100298
  dialogProps: {
@@ -100292,10 +100308,7 @@ function UploaderInner({
100292
100308
  if (!newEntities) {
100293
100309
  return;
100294
100310
  } else {
100295
- const {
100296
- newFile,
100297
- cleanedEntities
100298
- } = getNewCsvFile(newEntities, file.name);
100311
+ const { newFile, cleanedEntities } = getNewCsvFile(newEntities, file.name);
100299
100312
  Object.assign(file, {
100300
100313
  ...newFile,
100301
100314
  originFileObj: newFile,
@@ -125211,6 +125224,7 @@ const parseXml = function(xmlData) {
125211
125224
  if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) {
125212
125225
  if (tagName[tagName.length - 1] === "/") {
125213
125226
  tagName = tagName.substr(0, tagName.length - 1);
125227
+ jPath = jPath.substr(0, jPath.length - 1);
125214
125228
  tagExp = tagName;
125215
125229
  } else {
125216
125230
  tagExp = tagExp.substr(0, tagExp.length - 1);
@@ -125767,11 +125781,18 @@ Builder.prototype.j2x = function(jObj, level) {
125767
125781
  let attrStr = "";
125768
125782
  let val = "";
125769
125783
  for (let key in jObj) {
125770
- if (typeof jObj[key] === "undefined") ; else if (jObj[key] === null) {
125771
- if (key[0] === "?")
125784
+ if (typeof jObj[key] === "undefined") {
125785
+ if (this.isAttribute(key)) {
125786
+ val += "";
125787
+ }
125788
+ } else if (jObj[key] === null) {
125789
+ if (this.isAttribute(key)) {
125790
+ val += "";
125791
+ } else if (key[0] === "?") {
125772
125792
  val += this.indentate(level) + "<" + key + "?" + this.tagEndChar;
125773
- else
125793
+ } else {
125774
125794
  val += this.indentate(level) + "<" + key + "/" + this.tagEndChar;
125795
+ }
125775
125796
  } else if (jObj[key] instanceof Date) {
125776
125797
  val += this.buildTextValNode(jObj[key], key, "", level);
125777
125798
  } else if (typeof jObj[key] !== "object") {
@@ -125854,7 +125875,7 @@ Builder.prototype.buildObjectNode = function(val, key, attrStr, level) {
125854
125875
  piClosingChar = "?";
125855
125876
  tagEndExp = "";
125856
125877
  }
125857
- if (attrStr && val.indexOf("<") === -1) {
125878
+ if ((attrStr || attrStr === "") && val.indexOf("<") === -1) {
125858
125879
  return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp;
125859
125880
  } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {
125860
125881
  return this.indentate(level) + `<!--${val}-->` + this.newLine;
@@ -125905,7 +125926,7 @@ function indentate(level) {
125905
125926
  return this.options.indentBy.repeat(level);
125906
125927
  }
125907
125928
  function isAttribute(name) {
125908
- if (name.startsWith(this.options.attributeNamePrefix)) {
125929
+ if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {
125909
125930
  return name.substr(this.attrPrefixLen);
125910
125931
  } else {
125911
125932
  return false;
@@ -142544,7 +142565,7 @@ const importSequenceFromFile = (props) => async (file, opts = {}) => {
142544
142565
  }
142545
142566
  async function finishDisplayingSeq(seqData) {
142546
142567
  if (onImport) {
142547
- seqData = await onImport(seqData);
142568
+ seqData = await onImport(seqData, file, props);
142548
142569
  }
142549
142570
  if (seqData) {
142550
142571
  seqData.stateTrackingId = uuid();
@@ -161050,7 +161071,7 @@ function showFileDialog({ multiple = false, onSelect }) {
161050
161071
  }
161051
161072
 
161052
161073
  const name = "@teselagen/ove";
161053
- const version = "0.3.8";
161074
+ const version = "0.3.9";
161054
161075
  const main = "./src/index.js";
161055
161076
  const exports$1 = {
161056
161077
  ".": {
@@ -169301,7 +169322,7 @@ class _LinearView extends React$3.Component {
169301
169322
  updateLabelsForInViewFeatures();
169302
169323
  },
169303
169324
  rowContainerStyle: {
169304
- height: height - 36,
169325
+ height: isNaN(height - 36) ? "auto" : height - 36,
169305
169326
  width: innerWidth + 26,
169306
169327
  paddingRight: marginWidth / 2,
169307
169328
  ...isLinViewZoomed && !isInAlignment && { paddingBottom: 15 }