@teselagen/ui 0.3.52 → 0.3.56

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 CHANGED
@@ -5513,10 +5513,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
5513
5513
  /* istanbul ignore next */
5514
5514
  Object.getOwnPropertyNames
5515
5515
  );
5516
- function toPrimitive$2(value) {
5516
+ function toPrimitive$3(value) {
5517
5517
  return value === null ? null : typeof value === "object" ? "" + value : value;
5518
5518
  }
5519
- __name(toPrimitive$2, "toPrimitive$2");
5519
+ __name(toPrimitive$3, "toPrimitive$3");
5520
5520
  function hasProp(target, prop) {
5521
5521
  return objectPrototype$1.hasOwnProperty.call(target, prop);
5522
5522
  }
@@ -6413,7 +6413,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
6413
6413
  return this.name_ + "[" + this.value_ + "]";
6414
6414
  }, "toString");
6415
6415
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6416
- return toPrimitive$2(this.get());
6416
+ return toPrimitive$3(this.get());
6417
6417
  }, "valueOf");
6418
6418
  _proto[_Symbol$toPrimitive] = function() {
6419
6419
  return this.valueOf();
@@ -6598,7 +6598,7 @@ var ComputedValue = /* @__PURE__ */ function() {
6598
6598
  return this.name_ + "[" + this.derivation.toString() + "]";
6599
6599
  }, "toString");
6600
6600
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6601
- return toPrimitive$2(this.get());
6601
+ return toPrimitive$3(this.get());
6602
6602
  }, "valueOf");
6603
6603
  _proto[_Symbol$toPrimitive$1] = function() {
6604
6604
  return this.valueOf();
@@ -11232,7 +11232,7 @@ lodash.exports;
11232
11232
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11233
11233
  );
11234
11234
  var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
11235
- var defineProperty5 = function() {
11235
+ var defineProperty6 = function() {
11236
11236
  try {
11237
11237
  var func = getNative2(Object2, "defineProperty");
11238
11238
  func({}, "", {});
@@ -11672,8 +11672,8 @@ lodash.exports;
11672
11672
  }
11673
11673
  __name(baseAssignIn2, "baseAssignIn");
11674
11674
  function baseAssignValue2(object2, key, value) {
11675
- if (key == "__proto__" && defineProperty5) {
11676
- defineProperty5(object2, key, {
11675
+ if (key == "__proto__" && defineProperty6) {
11676
+ defineProperty6(object2, key, {
11677
11677
  "configurable": true,
11678
11678
  "enumerable": true,
11679
11679
  "value": value,
@@ -12406,8 +12406,8 @@ lodash.exports;
12406
12406
  metaMap.set(func, data);
12407
12407
  return func;
12408
12408
  };
12409
- var baseSetToString2 = !defineProperty5 ? identity3 : function(func, string2) {
12410
- return defineProperty5(func, "toString", {
12409
+ var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12410
+ return defineProperty6(func, "toString", {
12411
12411
  "configurable": true,
12412
12412
  "enumerable": false,
12413
12413
  "value": constant2(string2),
@@ -16985,20 +16985,11 @@ function require_domCreate() {
16985
16985
  return _domCreate;
16986
16986
  }
16987
16987
  __name(require_domCreate, "require_domCreate");
16988
- var _ie8DomDefine;
16989
- var hasRequired_ie8DomDefine;
16990
- function require_ie8DomDefine() {
16991
- if (hasRequired_ie8DomDefine)
16992
- return _ie8DomDefine;
16993
- hasRequired_ie8DomDefine = 1;
16994
- _ie8DomDefine = !require_descriptors() && !_fails(function() {
16995
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16996
- return 7;
16997
- } }).a != 7;
16998
- });
16999
- return _ie8DomDefine;
17000
- }
17001
- __name(require_ie8DomDefine, "require_ie8DomDefine");
16988
+ var _ie8DomDefine = !require_descriptors() && !_fails(function() {
16989
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16990
+ return 7;
16991
+ } }).a != 7;
16992
+ });
17002
16993
  var isObject$d = _isObject;
17003
16994
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17004
16995
  if (!isObject$d(it))
@@ -17012,33 +17003,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17012
17003
  return val;
17013
17004
  throw TypeError("Can't convert object to primitive value");
17014
17005
  }, "_toPrimitive");
17015
- var hasRequired_objectDp;
17016
- function require_objectDp() {
17017
- if (hasRequired_objectDp)
17018
- return _objectDp;
17019
- hasRequired_objectDp = 1;
17020
- var anObject2 = _anObject;
17021
- var IE8_DOM_DEFINE2 = require_ie8DomDefine();
17022
- var toPrimitive2 = _toPrimitive;
17023
- var dP2 = Object.defineProperty;
17024
- _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
17025
- anObject2(O2);
17026
- P2 = toPrimitive2(P2, true);
17027
- anObject2(Attributes);
17028
- if (IE8_DOM_DEFINE2)
17029
- try {
17030
- return dP2(O2, P2, Attributes);
17031
- } catch (e2) {
17032
- }
17033
- if ("get" in Attributes || "set" in Attributes)
17034
- throw TypeError("Accessors not supported!");
17035
- if ("value" in Attributes)
17036
- O2[P2] = Attributes.value;
17037
- return O2;
17038
- }, "defineProperty");
17039
- return _objectDp;
17040
- }
17041
- __name(require_objectDp, "require_objectDp");
17006
+ var anObject$5 = _anObject;
17007
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
17008
+ var toPrimitive$2 = _toPrimitive;
17009
+ var dP$3 = Object.defineProperty;
17010
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
17011
+ anObject$5(O2);
17012
+ P2 = toPrimitive$2(P2, true);
17013
+ anObject$5(Attributes);
17014
+ if (IE8_DOM_DEFINE$1)
17015
+ try {
17016
+ return dP$3(O2, P2, Attributes);
17017
+ } catch (e2) {
17018
+ }
17019
+ if ("get" in Attributes || "set" in Attributes)
17020
+ throw TypeError("Accessors not supported!");
17021
+ if ("value" in Attributes)
17022
+ O2[P2] = Attributes.value;
17023
+ return O2;
17024
+ }, "defineProperty");
17042
17025
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17043
17026
  return {
17044
17027
  enumerable: !(bitmap & 1),
@@ -17047,7 +17030,7 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17047
17030
  value
17048
17031
  };
17049
17032
  }, "_propertyDesc");
17050
- var dP$2 = require_objectDp();
17033
+ var dP$2 = _objectDp;
17051
17034
  var createDesc$3 = _propertyDesc;
17052
17035
  var _hide = require_descriptors() ? function(object2, key, value) {
17053
17036
  return dP$2.f(object2, key, createDesc$3(1, value));
@@ -17121,16 +17104,25 @@ var toString$6 = {}.toString;
17121
17104
  var _cof = /* @__PURE__ */ __name(function(it) {
17122
17105
  return toString$6.call(it).slice(8, -1);
17123
17106
  }, "_cof");
17124
- var cof$2 = _cof;
17125
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17126
- return cof$2(it) == "String" ? it.split("") : Object(it);
17127
- };
17107
+ var _iobject;
17108
+ var hasRequired_iobject;
17109
+ function require_iobject() {
17110
+ if (hasRequired_iobject)
17111
+ return _iobject;
17112
+ hasRequired_iobject = 1;
17113
+ var cof2 = _cof;
17114
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17115
+ return cof2(it) == "String" ? it.split("") : Object(it);
17116
+ };
17117
+ return _iobject;
17118
+ }
17119
+ __name(require_iobject, "require_iobject");
17128
17120
  var _defined = /* @__PURE__ */ __name(function(it) {
17129
17121
  if (it == void 0)
17130
17122
  throw TypeError("Can't call method on " + it);
17131
17123
  return it;
17132
17124
  }, "_defined");
17133
- var IObject = _iobject;
17125
+ var IObject = require_iobject();
17134
17126
  var defined$2 = _defined;
17135
17127
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17136
17128
  return IObject(defined$2(it));
@@ -17227,7 +17219,15 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
17227
17219
  var _objectGops = {};
17228
17220
  _objectGops.f = Object.getOwnPropertySymbols;
17229
17221
  var _objectPie = {};
17230
- _objectPie.f = {}.propertyIsEnumerable;
17222
+ var hasRequired_objectPie;
17223
+ function require_objectPie() {
17224
+ if (hasRequired_objectPie)
17225
+ return _objectPie;
17226
+ hasRequired_objectPie = 1;
17227
+ _objectPie.f = {}.propertyIsEnumerable;
17228
+ return _objectPie;
17229
+ }
17230
+ __name(require_objectPie, "require_objectPie");
17231
17231
  var defined$1 = _defined;
17232
17232
  var _toObject = /* @__PURE__ */ __name(function(it) {
17233
17233
  return Object(defined$1(it));
@@ -17241,9 +17241,9 @@ function require_objectAssign() {
17241
17241
  var DESCRIPTORS2 = require_descriptors();
17242
17242
  var getKeys2 = _objectKeys;
17243
17243
  var gOPS2 = _objectGops;
17244
- var pIE2 = _objectPie;
17244
+ var pIE2 = require_objectPie();
17245
17245
  var toObject2 = _toObject;
17246
- var IObject2 = _iobject;
17246
+ var IObject2 = require_iobject();
17247
17247
  var $assign = Object.assign;
17248
17248
  _objectAssign = !$assign || _fails(function() {
17249
17249
  var A2 = {};
@@ -17304,7 +17304,7 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
17304
17304
  }, "_iterStep");
17305
17305
  var _iterators = {};
17306
17306
  var _redefine = _hide;
17307
- var dP$1 = require_objectDp();
17307
+ var dP$1 = _objectDp;
17308
17308
  var anObject$4 = _anObject;
17309
17309
  var getKeys$1 = _objectKeys;
17310
17310
  var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
@@ -17374,7 +17374,7 @@ var $exports = _wks.exports = function(name) {
17374
17374
  };
17375
17375
  $exports.store = store;
17376
17376
  var _wksExports = _wks.exports;
17377
- var def = require_objectDp().f;
17377
+ var def = _objectDp.f;
17378
17378
  var has$9 = _has;
17379
17379
  var TAG$1 = _wksExports("toStringTag");
17380
17380
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17647,7 +17647,7 @@ var ArrayProto = Array.prototype;
17647
17647
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17648
17648
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17649
17649
  }, "_isArrayIter");
17650
- var $defineProperty$1 = require_objectDp();
17650
+ var $defineProperty$1 = _objectDp;
17651
17651
  var createDesc$2 = _propertyDesc;
17652
17652
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17653
17653
  if (index2 in object2)
@@ -17776,9 +17776,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17776
17776
  }
17777
17777
  }, "_default$8");
17778
17778
  var $export$3 = _export;
17779
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17779
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
17780
17780
  var $Object$2 = _coreExports.Object;
17781
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17781
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17782
17782
  return $Object$2.defineProperty(it, key, desc);
17783
17783
  }, "defineProperty");
17784
17784
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17817,7 +17817,7 @@ var _meta = { exports: {} };
17817
17817
  var META$1 = _uid("meta");
17818
17818
  var isObject$c = _isObject;
17819
17819
  var has$7 = _has;
17820
- var setDesc = require_objectDp().f;
17820
+ var setDesc = _objectDp.f;
17821
17821
  var id = 0;
17822
17822
  var isExtensible = Object.isExtensible || function() {
17823
17823
  return true;
@@ -17870,7 +17870,7 @@ var meta = _meta.exports = {
17870
17870
  var _metaExports = _meta.exports;
17871
17871
  var core = _coreExports;
17872
17872
  var wksExt$1 = _wksExt;
17873
- var defineProperty$7 = require_objectDp().f;
17873
+ var defineProperty$7 = _objectDp.f;
17874
17874
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17875
17875
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17876
17876
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17878,7 +17878,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
17878
17878
  }, "_wksDefine");
17879
17879
  var getKeys = _objectKeys;
17880
17880
  var gOPS$1 = _objectGops;
17881
- var pIE$1 = _objectPie;
17881
+ var pIE$1 = require_objectPie();
17882
17882
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
17883
17883
  var result = getKeys(it);
17884
17884
  var getSymbols2 = gOPS$1.f;
@@ -17919,12 +17919,12 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
17919
17919
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
17920
17920
  }, "getOwnPropertyNames");
17921
17921
  var _objectGopd = {};
17922
- var pIE = _objectPie;
17922
+ var pIE = require_objectPie();
17923
17923
  var createDesc$1 = _propertyDesc;
17924
17924
  var toIObject$1 = _toIobject;
17925
17925
  var toPrimitive$1 = _toPrimitive;
17926
17926
  var has$6 = _has;
17927
- var IE8_DOM_DEFINE = require_ie8DomDefine();
17927
+ var IE8_DOM_DEFINE = _ie8DomDefine;
17928
17928
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17929
17929
  _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17930
17930
  O2 = toIObject$1(O2);
@@ -17962,7 +17962,7 @@ var _create$1 = _objectCreate;
17962
17962
  var gOPNExt = _objectGopnExt;
17963
17963
  var $GOPD = _objectGopd;
17964
17964
  var $GOPS = _objectGops;
17965
- var $DP = require_objectDp();
17965
+ var $DP = _objectDp;
17966
17966
  var $keys$1 = _objectKeys;
17967
17967
  var gOPD$1 = $GOPD.f;
17968
17968
  var dP = $DP.f;
@@ -18005,7 +18005,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
18005
18005
  } : function(it) {
18006
18006
  return it instanceof $Symbol;
18007
18007
  };
18008
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
18008
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18009
18009
  if (it === ObjectProto)
18010
18010
  $defineProperty(OPSymbols, key, D2);
18011
18011
  anObject(it);
@@ -18099,7 +18099,7 @@ if (!USE_NATIVE) {
18099
18099
  $GOPD.f = $getOwnPropertyDescriptor;
18100
18100
  $DP.f = $defineProperty;
18101
18101
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
18102
- _objectPie.f = $propertyIsEnumerable;
18102
+ require_objectPie().f = $propertyIsEnumerable;
18103
18103
  $GOPS.f = $getOwnPropertySymbols;
18104
18104
  if (DESCRIPTORS && !_library) {
18105
18105
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -54053,7 +54053,7 @@ var KNOWN_STATICS = {
54053
54053
  arguments: true,
54054
54054
  arity: true
54055
54055
  };
54056
- var defineProperty4 = Object.defineProperty;
54056
+ var defineProperty5 = Object.defineProperty;
54057
54057
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54058
54058
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54059
54059
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54076,7 +54076,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54076
54076
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54077
54077
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54078
54078
  try {
54079
- defineProperty4(targetComponent, key, descriptor2);
54079
+ defineProperty5(targetComponent, key, descriptor2);
54080
54080
  } catch (e2) {
54081
54081
  }
54082
54082
  }
@@ -70713,6 +70713,7 @@ function UploaderInner({
70713
70713
  )
70714
70714
  ) || "Example";
70715
70715
  const handleDownloadXlsxFile = /* @__PURE__ */ __name(() => __async(this, null, function* () {
70716
+ var _a3;
70716
70717
  const dataDictionarySchema = [
70717
70718
  { value: (f2) => f2.displayName || f2.path, column: `Column Name` },
70718
70719
  // {
@@ -70739,7 +70740,7 @@ function UploaderInner({
70739
70740
  const mainExampleData = {};
70740
70741
  const fieldsToUse = [
70741
70742
  ...validateAgainstSchema.fields,
70742
- ...a2.exampleDownloadFields
70743
+ ...(_a3 = validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70743
70744
  ];
70744
70745
  const mainSchema = fieldsToUse.map((f2) => {
70745
70746
  mainExampleData[f2.displayName || f2.path] = f2.example || f2.defaultValue;
@@ -70768,11 +70769,11 @@ function UploaderInner({
70768
70769
  {
70769
70770
  description: "Download Example CSV File",
70770
70771
  exampleFile: () => {
70771
- var _a3;
70772
+ var _a3, _b2;
70772
70773
  const rows = [];
70773
70774
  const schemaToUse = [
70774
70775
  ...a2.validateAgainstSchema.fields,
70775
- ...a2.validateAgainstSchema.exampleDownloadFields
70776
+ ...(_a3 = a2.validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70776
70777
  ];
70777
70778
  rows.push(
70778
70779
  schemaToUse.map((f2) => {
@@ -70785,7 +70786,7 @@ function UploaderInner({
70785
70786
  })
70786
70787
  );
70787
70788
  const csv = papaparse_minExports.unparse(rows);
70788
- const downloadFn = ((_a3 = window.Cypress) == null ? void 0 : _a3.downloadTest) || downloadjs;
70789
+ const downloadFn = ((_b2 = window.Cypress) == null ? void 0 : _b2.downloadTest) || downloadjs;
70789
70790
  downloadFn(csv, `${nameToUse}.csv`, "csv");
70790
70791
  }
70791
70792
  },
package/index.es.js CHANGED
@@ -5495,10 +5495,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
5495
5495
  /* istanbul ignore next */
5496
5496
  Object.getOwnPropertyNames
5497
5497
  );
5498
- function toPrimitive$2(value) {
5498
+ function toPrimitive$3(value) {
5499
5499
  return value === null ? null : typeof value === "object" ? "" + value : value;
5500
5500
  }
5501
- __name(toPrimitive$2, "toPrimitive$2");
5501
+ __name(toPrimitive$3, "toPrimitive$3");
5502
5502
  function hasProp(target, prop) {
5503
5503
  return objectPrototype$1.hasOwnProperty.call(target, prop);
5504
5504
  }
@@ -6395,7 +6395,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
6395
6395
  return this.name_ + "[" + this.value_ + "]";
6396
6396
  }, "toString");
6397
6397
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6398
- return toPrimitive$2(this.get());
6398
+ return toPrimitive$3(this.get());
6399
6399
  }, "valueOf");
6400
6400
  _proto[_Symbol$toPrimitive] = function() {
6401
6401
  return this.valueOf();
@@ -6580,7 +6580,7 @@ var ComputedValue = /* @__PURE__ */ function() {
6580
6580
  return this.name_ + "[" + this.derivation.toString() + "]";
6581
6581
  }, "toString");
6582
6582
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6583
- return toPrimitive$2(this.get());
6583
+ return toPrimitive$3(this.get());
6584
6584
  }, "valueOf");
6585
6585
  _proto[_Symbol$toPrimitive$1] = function() {
6586
6586
  return this.valueOf();
@@ -11214,7 +11214,7 @@ lodash.exports;
11214
11214
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11215
11215
  );
11216
11216
  var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
11217
- var defineProperty5 = function() {
11217
+ var defineProperty6 = function() {
11218
11218
  try {
11219
11219
  var func = getNative2(Object2, "defineProperty");
11220
11220
  func({}, "", {});
@@ -11654,8 +11654,8 @@ lodash.exports;
11654
11654
  }
11655
11655
  __name(baseAssignIn2, "baseAssignIn");
11656
11656
  function baseAssignValue2(object2, key, value) {
11657
- if (key == "__proto__" && defineProperty5) {
11658
- defineProperty5(object2, key, {
11657
+ if (key == "__proto__" && defineProperty6) {
11658
+ defineProperty6(object2, key, {
11659
11659
  "configurable": true,
11660
11660
  "enumerable": true,
11661
11661
  "value": value,
@@ -12388,8 +12388,8 @@ lodash.exports;
12388
12388
  metaMap.set(func, data);
12389
12389
  return func;
12390
12390
  };
12391
- var baseSetToString2 = !defineProperty5 ? identity3 : function(func, string2) {
12392
- return defineProperty5(func, "toString", {
12391
+ var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12392
+ return defineProperty6(func, "toString", {
12393
12393
  "configurable": true,
12394
12394
  "enumerable": false,
12395
12395
  "value": constant2(string2),
@@ -16967,20 +16967,11 @@ function require_domCreate() {
16967
16967
  return _domCreate;
16968
16968
  }
16969
16969
  __name(require_domCreate, "require_domCreate");
16970
- var _ie8DomDefine;
16971
- var hasRequired_ie8DomDefine;
16972
- function require_ie8DomDefine() {
16973
- if (hasRequired_ie8DomDefine)
16974
- return _ie8DomDefine;
16975
- hasRequired_ie8DomDefine = 1;
16976
- _ie8DomDefine = !require_descriptors() && !_fails(function() {
16977
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16978
- return 7;
16979
- } }).a != 7;
16980
- });
16981
- return _ie8DomDefine;
16982
- }
16983
- __name(require_ie8DomDefine, "require_ie8DomDefine");
16970
+ var _ie8DomDefine = !require_descriptors() && !_fails(function() {
16971
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16972
+ return 7;
16973
+ } }).a != 7;
16974
+ });
16984
16975
  var isObject$d = _isObject;
16985
16976
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16986
16977
  if (!isObject$d(it))
@@ -16994,33 +16985,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16994
16985
  return val;
16995
16986
  throw TypeError("Can't convert object to primitive value");
16996
16987
  }, "_toPrimitive");
16997
- var hasRequired_objectDp;
16998
- function require_objectDp() {
16999
- if (hasRequired_objectDp)
17000
- return _objectDp;
17001
- hasRequired_objectDp = 1;
17002
- var anObject2 = _anObject;
17003
- var IE8_DOM_DEFINE2 = require_ie8DomDefine();
17004
- var toPrimitive2 = _toPrimitive;
17005
- var dP2 = Object.defineProperty;
17006
- _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
17007
- anObject2(O2);
17008
- P2 = toPrimitive2(P2, true);
17009
- anObject2(Attributes);
17010
- if (IE8_DOM_DEFINE2)
17011
- try {
17012
- return dP2(O2, P2, Attributes);
17013
- } catch (e2) {
17014
- }
17015
- if ("get" in Attributes || "set" in Attributes)
17016
- throw TypeError("Accessors not supported!");
17017
- if ("value" in Attributes)
17018
- O2[P2] = Attributes.value;
17019
- return O2;
17020
- }, "defineProperty");
17021
- return _objectDp;
17022
- }
17023
- __name(require_objectDp, "require_objectDp");
16988
+ var anObject$5 = _anObject;
16989
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
16990
+ var toPrimitive$2 = _toPrimitive;
16991
+ var dP$3 = Object.defineProperty;
16992
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
16993
+ anObject$5(O2);
16994
+ P2 = toPrimitive$2(P2, true);
16995
+ anObject$5(Attributes);
16996
+ if (IE8_DOM_DEFINE$1)
16997
+ try {
16998
+ return dP$3(O2, P2, Attributes);
16999
+ } catch (e2) {
17000
+ }
17001
+ if ("get" in Attributes || "set" in Attributes)
17002
+ throw TypeError("Accessors not supported!");
17003
+ if ("value" in Attributes)
17004
+ O2[P2] = Attributes.value;
17005
+ return O2;
17006
+ }, "defineProperty");
17024
17007
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17025
17008
  return {
17026
17009
  enumerable: !(bitmap & 1),
@@ -17029,7 +17012,7 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17029
17012
  value
17030
17013
  };
17031
17014
  }, "_propertyDesc");
17032
- var dP$2 = require_objectDp();
17015
+ var dP$2 = _objectDp;
17033
17016
  var createDesc$3 = _propertyDesc;
17034
17017
  var _hide = require_descriptors() ? function(object2, key, value) {
17035
17018
  return dP$2.f(object2, key, createDesc$3(1, value));
@@ -17103,16 +17086,25 @@ var toString$6 = {}.toString;
17103
17086
  var _cof = /* @__PURE__ */ __name(function(it) {
17104
17087
  return toString$6.call(it).slice(8, -1);
17105
17088
  }, "_cof");
17106
- var cof$2 = _cof;
17107
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17108
- return cof$2(it) == "String" ? it.split("") : Object(it);
17109
- };
17089
+ var _iobject;
17090
+ var hasRequired_iobject;
17091
+ function require_iobject() {
17092
+ if (hasRequired_iobject)
17093
+ return _iobject;
17094
+ hasRequired_iobject = 1;
17095
+ var cof2 = _cof;
17096
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17097
+ return cof2(it) == "String" ? it.split("") : Object(it);
17098
+ };
17099
+ return _iobject;
17100
+ }
17101
+ __name(require_iobject, "require_iobject");
17110
17102
  var _defined = /* @__PURE__ */ __name(function(it) {
17111
17103
  if (it == void 0)
17112
17104
  throw TypeError("Can't call method on " + it);
17113
17105
  return it;
17114
17106
  }, "_defined");
17115
- var IObject = _iobject;
17107
+ var IObject = require_iobject();
17116
17108
  var defined$2 = _defined;
17117
17109
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17118
17110
  return IObject(defined$2(it));
@@ -17209,7 +17201,15 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
17209
17201
  var _objectGops = {};
17210
17202
  _objectGops.f = Object.getOwnPropertySymbols;
17211
17203
  var _objectPie = {};
17212
- _objectPie.f = {}.propertyIsEnumerable;
17204
+ var hasRequired_objectPie;
17205
+ function require_objectPie() {
17206
+ if (hasRequired_objectPie)
17207
+ return _objectPie;
17208
+ hasRequired_objectPie = 1;
17209
+ _objectPie.f = {}.propertyIsEnumerable;
17210
+ return _objectPie;
17211
+ }
17212
+ __name(require_objectPie, "require_objectPie");
17213
17213
  var defined$1 = _defined;
17214
17214
  var _toObject = /* @__PURE__ */ __name(function(it) {
17215
17215
  return Object(defined$1(it));
@@ -17223,9 +17223,9 @@ function require_objectAssign() {
17223
17223
  var DESCRIPTORS2 = require_descriptors();
17224
17224
  var getKeys2 = _objectKeys;
17225
17225
  var gOPS2 = _objectGops;
17226
- var pIE2 = _objectPie;
17226
+ var pIE2 = require_objectPie();
17227
17227
  var toObject2 = _toObject;
17228
- var IObject2 = _iobject;
17228
+ var IObject2 = require_iobject();
17229
17229
  var $assign = Object.assign;
17230
17230
  _objectAssign = !$assign || _fails(function() {
17231
17231
  var A2 = {};
@@ -17286,7 +17286,7 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
17286
17286
  }, "_iterStep");
17287
17287
  var _iterators = {};
17288
17288
  var _redefine = _hide;
17289
- var dP$1 = require_objectDp();
17289
+ var dP$1 = _objectDp;
17290
17290
  var anObject$4 = _anObject;
17291
17291
  var getKeys$1 = _objectKeys;
17292
17292
  var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
@@ -17356,7 +17356,7 @@ var $exports = _wks.exports = function(name) {
17356
17356
  };
17357
17357
  $exports.store = store;
17358
17358
  var _wksExports = _wks.exports;
17359
- var def = require_objectDp().f;
17359
+ var def = _objectDp.f;
17360
17360
  var has$9 = _has;
17361
17361
  var TAG$1 = _wksExports("toStringTag");
17362
17362
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17629,7 +17629,7 @@ var ArrayProto = Array.prototype;
17629
17629
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17630
17630
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17631
17631
  }, "_isArrayIter");
17632
- var $defineProperty$1 = require_objectDp();
17632
+ var $defineProperty$1 = _objectDp;
17633
17633
  var createDesc$2 = _propertyDesc;
17634
17634
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17635
17635
  if (index2 in object2)
@@ -17758,9 +17758,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17758
17758
  }
17759
17759
  }, "_default$8");
17760
17760
  var $export$3 = _export;
17761
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17761
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: _objectDp.f });
17762
17762
  var $Object$2 = _coreExports.Object;
17763
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17763
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17764
17764
  return $Object$2.defineProperty(it, key, desc);
17765
17765
  }, "defineProperty");
17766
17766
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17799,7 +17799,7 @@ var _meta = { exports: {} };
17799
17799
  var META$1 = _uid("meta");
17800
17800
  var isObject$c = _isObject;
17801
17801
  var has$7 = _has;
17802
- var setDesc = require_objectDp().f;
17802
+ var setDesc = _objectDp.f;
17803
17803
  var id = 0;
17804
17804
  var isExtensible = Object.isExtensible || function() {
17805
17805
  return true;
@@ -17852,7 +17852,7 @@ var meta = _meta.exports = {
17852
17852
  var _metaExports = _meta.exports;
17853
17853
  var core = _coreExports;
17854
17854
  var wksExt$1 = _wksExt;
17855
- var defineProperty$7 = require_objectDp().f;
17855
+ var defineProperty$7 = _objectDp.f;
17856
17856
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17857
17857
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17858
17858
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17860,7 +17860,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
17860
17860
  }, "_wksDefine");
17861
17861
  var getKeys = _objectKeys;
17862
17862
  var gOPS$1 = _objectGops;
17863
- var pIE$1 = _objectPie;
17863
+ var pIE$1 = require_objectPie();
17864
17864
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
17865
17865
  var result = getKeys(it);
17866
17866
  var getSymbols2 = gOPS$1.f;
@@ -17901,12 +17901,12 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
17901
17901
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
17902
17902
  }, "getOwnPropertyNames");
17903
17903
  var _objectGopd = {};
17904
- var pIE = _objectPie;
17904
+ var pIE = require_objectPie();
17905
17905
  var createDesc$1 = _propertyDesc;
17906
17906
  var toIObject$1 = _toIobject;
17907
17907
  var toPrimitive$1 = _toPrimitive;
17908
17908
  var has$6 = _has;
17909
- var IE8_DOM_DEFINE = require_ie8DomDefine();
17909
+ var IE8_DOM_DEFINE = _ie8DomDefine;
17910
17910
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17911
17911
  _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17912
17912
  O2 = toIObject$1(O2);
@@ -17944,7 +17944,7 @@ var _create$1 = _objectCreate;
17944
17944
  var gOPNExt = _objectGopnExt;
17945
17945
  var $GOPD = _objectGopd;
17946
17946
  var $GOPS = _objectGops;
17947
- var $DP = require_objectDp();
17947
+ var $DP = _objectDp;
17948
17948
  var $keys$1 = _objectKeys;
17949
17949
  var gOPD$1 = $GOPD.f;
17950
17950
  var dP = $DP.f;
@@ -17987,7 +17987,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
17987
17987
  } : function(it) {
17988
17988
  return it instanceof $Symbol;
17989
17989
  };
17990
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
17990
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
17991
17991
  if (it === ObjectProto)
17992
17992
  $defineProperty(OPSymbols, key, D2);
17993
17993
  anObject(it);
@@ -18081,7 +18081,7 @@ if (!USE_NATIVE) {
18081
18081
  $GOPD.f = $getOwnPropertyDescriptor;
18082
18082
  $DP.f = $defineProperty;
18083
18083
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
18084
- _objectPie.f = $propertyIsEnumerable;
18084
+ require_objectPie().f = $propertyIsEnumerable;
18085
18085
  $GOPS.f = $getOwnPropertySymbols;
18086
18086
  if (DESCRIPTORS && !_library) {
18087
18087
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -54035,7 +54035,7 @@ var KNOWN_STATICS = {
54035
54035
  arguments: true,
54036
54036
  arity: true
54037
54037
  };
54038
- var defineProperty4 = Object.defineProperty;
54038
+ var defineProperty5 = Object.defineProperty;
54039
54039
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54040
54040
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54041
54041
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54058,7 +54058,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54058
54058
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54059
54059
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54060
54060
  try {
54061
- defineProperty4(targetComponent, key, descriptor2);
54061
+ defineProperty5(targetComponent, key, descriptor2);
54062
54062
  } catch (e2) {
54063
54063
  }
54064
54064
  }
@@ -70695,6 +70695,7 @@ function UploaderInner({
70695
70695
  )
70696
70696
  ) || "Example";
70697
70697
  const handleDownloadXlsxFile = /* @__PURE__ */ __name(() => __async(this, null, function* () {
70698
+ var _a3;
70698
70699
  const dataDictionarySchema = [
70699
70700
  { value: (f2) => f2.displayName || f2.path, column: `Column Name` },
70700
70701
  // {
@@ -70721,7 +70722,7 @@ function UploaderInner({
70721
70722
  const mainExampleData = {};
70722
70723
  const fieldsToUse = [
70723
70724
  ...validateAgainstSchema.fields,
70724
- ...a2.exampleDownloadFields
70725
+ ...(_a3 = validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70725
70726
  ];
70726
70727
  const mainSchema = fieldsToUse.map((f2) => {
70727
70728
  mainExampleData[f2.displayName || f2.path] = f2.example || f2.defaultValue;
@@ -70750,11 +70751,11 @@ function UploaderInner({
70750
70751
  {
70751
70752
  description: "Download Example CSV File",
70752
70753
  exampleFile: () => {
70753
- var _a3;
70754
+ var _a3, _b2;
70754
70755
  const rows = [];
70755
70756
  const schemaToUse = [
70756
70757
  ...a2.validateAgainstSchema.fields,
70757
- ...a2.validateAgainstSchema.exampleDownloadFields
70758
+ ...(_a3 = a2.validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70758
70759
  ];
70759
70760
  rows.push(
70760
70761
  schemaToUse.map((f2) => {
@@ -70767,7 +70768,7 @@ function UploaderInner({
70767
70768
  })
70768
70769
  );
70769
70770
  const csv = papaparse_minExports.unparse(rows);
70770
- const downloadFn = ((_a3 = window.Cypress) == null ? void 0 : _a3.downloadTest) || downloadjs;
70771
+ const downloadFn = ((_b2 = window.Cypress) == null ? void 0 : _b2.downloadTest) || downloadjs;
70771
70772
  downloadFn(csv, `${nameToUse}.csv`, "csv");
70772
70773
  }
70773
70774
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.52",
3
+ "version": "0.3.56",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -300,7 +300,7 @@ function UploaderInner({
300
300
  const mainExampleData = {};
301
301
  const fieldsToUse = [
302
302
  ...validateAgainstSchema.fields,
303
- ...a.exampleDownloadFields
303
+ ...(validateAgainstSchema.exampleDownloadFields ?? [])
304
304
  ];
305
305
  const mainSchema = fieldsToUse.map(f => {
306
306
  mainExampleData[f.displayName || f.path] =
@@ -334,7 +334,7 @@ function UploaderInner({
334
334
  const rows = [];
335
335
  const schemaToUse = [
336
336
  ...a.validateAgainstSchema.fields,
337
- ...a.validateAgainstSchema.exampleDownloadFields
337
+ ...(a.validateAgainstSchema.exampleDownloadFields ?? [])
338
338
  ];
339
339
  rows.push(
340
340
  schemaToUse.map(f => {
package/src/toastr.js CHANGED
@@ -35,7 +35,10 @@ const generateToast = intent => (message, options) => {
35
35
  {
36
36
  intent,
37
37
  message,
38
- timeout: options.timeout || updatedTimeout || intent === Intent.DANGER ? 60000 : undefined,
38
+ timeout:
39
+ options.timeout || updatedTimeout || intent === Intent.DANGER
40
+ ? 60000
41
+ : undefined,
39
42
  action: options.action,
40
43
  icon: options.icon,
41
44
  className: options.className