@teselagen/ui 0.3.69 → 0.3.70

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
@@ -5523,10 +5523,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
5523
5523
  /* istanbul ignore next */
5524
5524
  Object.getOwnPropertyNames
5525
5525
  );
5526
- function toPrimitive$3(value) {
5526
+ function toPrimitive$2(value) {
5527
5527
  return value === null ? null : typeof value === "object" ? "" + value : value;
5528
5528
  }
5529
- __name(toPrimitive$3, "toPrimitive$3");
5529
+ __name(toPrimitive$2, "toPrimitive$2");
5530
5530
  function hasProp(target, prop) {
5531
5531
  return objectPrototype$1.hasOwnProperty.call(target, prop);
5532
5532
  }
@@ -6423,7 +6423,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
6423
6423
  return this.name_ + "[" + this.value_ + "]";
6424
6424
  }, "toString");
6425
6425
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6426
- return toPrimitive$3(this.get());
6426
+ return toPrimitive$2(this.get());
6427
6427
  }, "valueOf");
6428
6428
  _proto[_Symbol$toPrimitive] = function() {
6429
6429
  return this.valueOf();
@@ -6608,7 +6608,7 @@ var ComputedValue = /* @__PURE__ */ function() {
6608
6608
  return this.name_ + "[" + this.derivation.toString() + "]";
6609
6609
  }, "toString");
6610
6610
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6611
- return toPrimitive$3(this.get());
6611
+ return toPrimitive$2(this.get());
6612
6612
  }, "valueOf");
6613
6613
  _proto[_Symbol$toPrimitive$1] = function() {
6614
6614
  return this.valueOf();
@@ -11242,7 +11242,7 @@ lodash.exports;
11242
11242
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11243
11243
  );
11244
11244
  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;
11245
- var defineProperty6 = function() {
11245
+ var defineProperty5 = function() {
11246
11246
  try {
11247
11247
  var func = getNative2(Object2, "defineProperty");
11248
11248
  func({}, "", {});
@@ -11682,8 +11682,8 @@ lodash.exports;
11682
11682
  }
11683
11683
  __name(baseAssignIn2, "baseAssignIn");
11684
11684
  function baseAssignValue2(object2, key, value) {
11685
- if (key == "__proto__" && defineProperty6) {
11686
- defineProperty6(object2, key, {
11685
+ if (key == "__proto__" && defineProperty5) {
11686
+ defineProperty5(object2, key, {
11687
11687
  "configurable": true,
11688
11688
  "enumerable": true,
11689
11689
  "value": value,
@@ -12416,8 +12416,8 @@ lodash.exports;
12416
12416
  metaMap.set(func, data);
12417
12417
  return func;
12418
12418
  };
12419
- var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12420
- return defineProperty6(func, "toString", {
12419
+ var baseSetToString2 = !defineProperty5 ? identity3 : function(func, string2) {
12420
+ return defineProperty5(func, "toString", {
12421
12421
  "configurable": true,
12422
12422
  "enumerable": false,
12423
12423
  "value": constant2(string2),
@@ -16966,11 +16966,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
16966
16966
  return true;
16967
16967
  }
16968
16968
  }, "_fails");
16969
- var _descriptors = !_fails(function() {
16970
- return Object.defineProperty({}, "a", { get: function() {
16971
- return 7;
16972
- } }).a != 7;
16973
- });
16969
+ var _descriptors;
16970
+ var hasRequired_descriptors;
16971
+ function require_descriptors() {
16972
+ if (hasRequired_descriptors)
16973
+ return _descriptors;
16974
+ hasRequired_descriptors = 1;
16975
+ _descriptors = !_fails(function() {
16976
+ return Object.defineProperty({}, "a", { get: function() {
16977
+ return 7;
16978
+ } }).a != 7;
16979
+ });
16980
+ return _descriptors;
16981
+ }
16982
+ __name(require_descriptors, "require_descriptors");
16974
16983
  var _domCreate;
16975
16984
  var hasRequired_domCreate;
16976
16985
  function require_domCreate() {
@@ -16986,11 +16995,20 @@ function require_domCreate() {
16986
16995
  return _domCreate;
16987
16996
  }
16988
16997
  __name(require_domCreate, "require_domCreate");
16989
- var _ie8DomDefine = !_descriptors && !_fails(function() {
16990
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16991
- return 7;
16992
- } }).a != 7;
16993
- });
16998
+ var _ie8DomDefine;
16999
+ var hasRequired_ie8DomDefine;
17000
+ function require_ie8DomDefine() {
17001
+ if (hasRequired_ie8DomDefine)
17002
+ return _ie8DomDefine;
17003
+ hasRequired_ie8DomDefine = 1;
17004
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
17005
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
17006
+ return 7;
17007
+ } }).a != 7;
17008
+ });
17009
+ return _ie8DomDefine;
17010
+ }
17011
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
16994
17012
  var isObject$d = _isObject;
16995
17013
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16996
17014
  if (!isObject$d(it))
@@ -17004,25 +17022,33 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17004
17022
  return val;
17005
17023
  throw TypeError("Can't convert object to primitive value");
17006
17024
  }, "_toPrimitive");
17007
- var anObject$5 = _anObject;
17008
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
17009
- var toPrimitive$2 = _toPrimitive;
17010
- var dP$3 = Object.defineProperty;
17011
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
17012
- anObject$5(O2);
17013
- P2 = toPrimitive$2(P2, true);
17014
- anObject$5(Attributes);
17015
- if (IE8_DOM_DEFINE$1)
17016
- try {
17017
- return dP$3(O2, P2, Attributes);
17018
- } catch (e2) {
17019
- }
17020
- if ("get" in Attributes || "set" in Attributes)
17021
- throw TypeError("Accessors not supported!");
17022
- if ("value" in Attributes)
17023
- O2[P2] = Attributes.value;
17024
- return O2;
17025
- }, "defineProperty");
17025
+ var hasRequired_objectDp;
17026
+ function require_objectDp() {
17027
+ if (hasRequired_objectDp)
17028
+ return _objectDp;
17029
+ hasRequired_objectDp = 1;
17030
+ var anObject2 = _anObject;
17031
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
17032
+ var toPrimitive2 = _toPrimitive;
17033
+ var dP2 = Object.defineProperty;
17034
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
17035
+ anObject2(O2);
17036
+ P2 = toPrimitive2(P2, true);
17037
+ anObject2(Attributes);
17038
+ if (IE8_DOM_DEFINE2)
17039
+ try {
17040
+ return dP2(O2, P2, Attributes);
17041
+ } catch (e2) {
17042
+ }
17043
+ if ("get" in Attributes || "set" in Attributes)
17044
+ throw TypeError("Accessors not supported!");
17045
+ if ("value" in Attributes)
17046
+ O2[P2] = Attributes.value;
17047
+ return O2;
17048
+ }, "defineProperty");
17049
+ return _objectDp;
17050
+ }
17051
+ __name(require_objectDp, "require_objectDp");
17026
17052
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17027
17053
  return {
17028
17054
  enumerable: !(bitmap & 1),
@@ -17031,9 +17057,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17031
17057
  value
17032
17058
  };
17033
17059
  }, "_propertyDesc");
17034
- var dP$2 = _objectDp;
17060
+ var dP$2 = require_objectDp();
17035
17061
  var createDesc$3 = _propertyDesc;
17036
- var _hide = _descriptors ? function(object2, key, value) {
17062
+ var _hide = require_descriptors() ? function(object2, key, value) {
17037
17063
  return dP$2.f(object2, key, createDesc$3(1, value));
17038
17064
  } : function(object2, key, value) {
17039
17065
  object2[key] = value;
@@ -17105,16 +17131,25 @@ var toString$6 = {}.toString;
17105
17131
  var _cof = /* @__PURE__ */ __name(function(it) {
17106
17132
  return toString$6.call(it).slice(8, -1);
17107
17133
  }, "_cof");
17108
- var cof$2 = _cof;
17109
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17110
- return cof$2(it) == "String" ? it.split("") : Object(it);
17111
- };
17134
+ var _iobject;
17135
+ var hasRequired_iobject;
17136
+ function require_iobject() {
17137
+ if (hasRequired_iobject)
17138
+ return _iobject;
17139
+ hasRequired_iobject = 1;
17140
+ var cof2 = _cof;
17141
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17142
+ return cof2(it) == "String" ? it.split("") : Object(it);
17143
+ };
17144
+ return _iobject;
17145
+ }
17146
+ __name(require_iobject, "require_iobject");
17112
17147
  var _defined = /* @__PURE__ */ __name(function(it) {
17113
17148
  if (it == void 0)
17114
17149
  throw TypeError("Can't call method on " + it);
17115
17150
  return it;
17116
17151
  }, "_defined");
17117
- var IObject = _iobject;
17152
+ var IObject = require_iobject();
17118
17153
  var defined$2 = _defined;
17119
17154
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17120
17155
  return IObject(defined$2(it));
@@ -17230,12 +17265,12 @@ function require_objectAssign() {
17230
17265
  if (hasRequired_objectAssign)
17231
17266
  return _objectAssign;
17232
17267
  hasRequired_objectAssign = 1;
17233
- var DESCRIPTORS2 = _descriptors;
17268
+ var DESCRIPTORS2 = require_descriptors();
17234
17269
  var getKeys2 = _objectKeys;
17235
17270
  var gOPS2 = _objectGops;
17236
17271
  var pIE2 = require_objectPie();
17237
17272
  var toObject2 = _toObject;
17238
- var IObject2 = _iobject;
17273
+ var IObject2 = require_iobject();
17239
17274
  var $assign = Object.assign;
17240
17275
  _objectAssign = !$assign || _fails(function() {
17241
17276
  var A2 = {};
@@ -17296,10 +17331,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
17296
17331
  }, "_iterStep");
17297
17332
  var _iterators = {};
17298
17333
  var _redefine = _hide;
17299
- var dP$1 = _objectDp;
17334
+ var dP$1 = require_objectDp();
17300
17335
  var anObject$4 = _anObject;
17301
17336
  var getKeys$1 = _objectKeys;
17302
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
17337
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
17303
17338
  anObject$4(O2);
17304
17339
  var keys3 = getKeys$1(Properties);
17305
17340
  var length = keys3.length;
@@ -17366,7 +17401,7 @@ var $exports = _wks.exports = function(name) {
17366
17401
  };
17367
17402
  $exports.store = store;
17368
17403
  var _wksExports = _wks.exports;
17369
- var def = _objectDp.f;
17404
+ var def = require_objectDp().f;
17370
17405
  var has$9 = _has;
17371
17406
  var TAG$1 = _wksExports("toStringTag");
17372
17407
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17639,7 +17674,7 @@ var ArrayProto = Array.prototype;
17639
17674
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17640
17675
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17641
17676
  }, "_isArrayIter");
17642
- var $defineProperty$1 = _objectDp;
17677
+ var $defineProperty$1 = require_objectDp();
17643
17678
  var createDesc$2 = _propertyDesc;
17644
17679
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17645
17680
  if (index2 in object2)
@@ -17768,9 +17803,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17768
17803
  }
17769
17804
  }, "_default$8");
17770
17805
  var $export$3 = _export;
17771
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
17806
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17772
17807
  var $Object$2 = _coreExports.Object;
17773
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17808
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17774
17809
  return $Object$2.defineProperty(it, key, desc);
17775
17810
  }, "defineProperty");
17776
17811
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17809,7 +17844,7 @@ var _meta = { exports: {} };
17809
17844
  var META$1 = _uid("meta");
17810
17845
  var isObject$c = _isObject;
17811
17846
  var has$7 = _has;
17812
- var setDesc = _objectDp.f;
17847
+ var setDesc = require_objectDp().f;
17813
17848
  var id = 0;
17814
17849
  var isExtensible = Object.isExtensible || function() {
17815
17850
  return true;
@@ -17862,7 +17897,7 @@ var meta = _meta.exports = {
17862
17897
  var _metaExports = _meta.exports;
17863
17898
  var core = _coreExports;
17864
17899
  var wksExt$1 = _wksExt;
17865
- var defineProperty$7 = _objectDp.f;
17900
+ var defineProperty$7 = require_objectDp().f;
17866
17901
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17867
17902
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17868
17903
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17916,9 +17951,9 @@ var createDesc$1 = _propertyDesc;
17916
17951
  var toIObject$1 = _toIobject;
17917
17952
  var toPrimitive$1 = _toPrimitive;
17918
17953
  var has$6 = _has;
17919
- var IE8_DOM_DEFINE = _ie8DomDefine;
17954
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
17920
17955
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17921
- _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17956
+ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17922
17957
  O2 = toIObject$1(O2);
17923
17958
  P2 = toPrimitive$1(P2, true);
17924
17959
  if (IE8_DOM_DEFINE)
@@ -17931,7 +17966,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPr
17931
17966
  }, "getOwnPropertyDescriptor");
17932
17967
  var global$1 = _globalExports;
17933
17968
  var has$5 = _has;
17934
- var DESCRIPTORS = _descriptors;
17969
+ var DESCRIPTORS = require_descriptors();
17935
17970
  var $export$2 = _export;
17936
17971
  var redefine = _redefine;
17937
17972
  var META = _metaExports.KEY;
@@ -17954,7 +17989,7 @@ var _create$1 = _objectCreate;
17954
17989
  var gOPNExt = _objectGopnExt;
17955
17990
  var $GOPD = _objectGopd;
17956
17991
  var $GOPS = _objectGops;
17957
- var $DP = _objectDp;
17992
+ var $DP = require_objectDp();
17958
17993
  var $keys$1 = _objectKeys;
17959
17994
  var gOPD$1 = $GOPD.f;
17960
17995
  var dP = $DP.f;
@@ -17997,7 +18032,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
17997
18032
  } : function(it) {
17998
18033
  return it instanceof $Symbol;
17999
18034
  };
18000
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18035
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
18001
18036
  if (it === ObjectProto)
18002
18037
  $defineProperty(OPSymbols, key, D2);
18003
18038
  anObject(it);
@@ -54086,7 +54121,7 @@ var KNOWN_STATICS = {
54086
54121
  arguments: true,
54087
54122
  arity: true
54088
54123
  };
54089
- var defineProperty5 = Object.defineProperty;
54124
+ var defineProperty4 = Object.defineProperty;
54090
54125
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54091
54126
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54092
54127
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54109,7 +54144,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54109
54144
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54110
54145
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54111
54146
  try {
54112
- defineProperty5(targetComponent, key, descriptor2);
54147
+ defineProperty4(targetComponent, key, descriptor2);
54113
54148
  } catch (e2) {
54114
54149
  }
54115
54150
  }
@@ -58768,6 +58803,7 @@ function MatchHeaders({
58768
58803
  onMultiFileUploadSubmit,
58769
58804
  doAllFilesHaveSameHeaders,
58770
58805
  csvValidationIssue,
58806
+ ignoredHeadersMsg,
58771
58807
  searchResults,
58772
58808
  matchedHeaders,
58773
58809
  userSchema,
@@ -58785,7 +58821,7 @@ function MatchHeaders({
58785
58821
  if (v2)
58786
58822
  flippedMatchedHeaders[v2] = k2;
58787
58823
  });
58788
- return /* @__PURE__ */ React$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$1.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React$1.createElement("br", null), /* @__PURE__ */ React$1.createElement(
58824
+ return /* @__PURE__ */ React$1.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React$1.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React$1.createElement(core$5.Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React$1.createElement("br", null), /* @__PURE__ */ React$1.createElement(
58789
58825
  "tr",
58790
58826
  {
58791
58827
  style: {
@@ -60348,7 +60384,7 @@ function tryToMatchSchemas(_0) {
60348
60384
  }) {
60349
60385
  yield resolveValidateAgainstSchema();
60350
60386
  const userSchema = getSchema(incomingData);
60351
- const { searchResults, csvValidationIssue } = yield matchSchemas({
60387
+ const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
60352
60388
  userSchema,
60353
60389
  officialSchema: validateAgainstSchema
60354
60390
  });
@@ -60384,6 +60420,7 @@ function tryToMatchSchemas(_0) {
60384
60420
  }
60385
60421
  });
60386
60422
  return {
60423
+ ignoredHeadersMsg,
60387
60424
  csvValidationIssue,
60388
60425
  matchedHeaders,
60389
60426
  userSchema,
@@ -60449,7 +60486,9 @@ function matchSchemas(_0) {
60449
60486
  if (!officialSchema.fields.find(
60450
60487
  (h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
60451
60488
  )) {
60452
- ignoredUserSchemaFields.push(uh);
60489
+ if (userSchema.userData.some((e2) => e2[uh.path])) {
60490
+ ignoredUserSchemaFields.push(uh);
60491
+ }
60453
60492
  }
60454
60493
  });
60455
60494
  if (officialSchema.coerceUserSchema) {
@@ -60509,12 +60548,14 @@ function matchSchemas(_0) {
60509
60548
  };
60510
60549
  }
60511
60550
  }
60512
- if (!csvValidationIssue && ignoredUserSchemaFields.length) {
60513
- csvValidationIssue = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
60551
+ let ignoredHeadersMsg;
60552
+ if (ignoredUserSchemaFields.length) {
60553
+ ignoredHeadersMsg = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
60514
60554
  }
60515
60555
  return {
60516
60556
  searchResults: officialSchema.fields,
60517
- csvValidationIssue
60557
+ csvValidationIssue,
60558
+ ignoredHeadersMsg
60518
60559
  };
60519
60560
  });
60520
60561
  }
@@ -60584,6 +60625,7 @@ const UploadCsvWizardDialog = compose(
60584
60625
  doAllFilesHaveSameHeaders,
60585
60626
  destroyForms,
60586
60627
  csvValidationIssue,
60628
+ ignoredHeadersMsg,
60587
60629
  searchResults,
60588
60630
  matchedHeaders,
60589
60631
  userSchema,
@@ -60695,6 +60737,7 @@ const UploadCsvWizardDialog = compose(
60695
60737
  destroyForms,
60696
60738
  setFilesWIssues,
60697
60739
  csvValidationIssue,
60740
+ ignoredHeadersMsg,
60698
60741
  searchResults,
60699
60742
  matchedHeaders,
60700
60743
  userSchema,
@@ -60730,6 +60773,7 @@ const UploadCsvWizardDialog = compose(
60730
60773
  reduxFormEntitiesArray,
60731
60774
  // onMultiFileUploadSubmit,
60732
60775
  csvValidationIssue,
60776
+ ignoredHeadersMsg,
60733
60777
  searchResults,
60734
60778
  matchedHeaders,
60735
60779
  userSchema,
@@ -60772,6 +60816,7 @@ const UploadCsvWizardDialog = compose(
60772
60816
  searchResults,
60773
60817
  onUploadWizardFinish,
60774
60818
  csvValidationIssue,
60819
+ ignoredHeadersMsg,
60775
60820
  matchedHeaders,
60776
60821
  //fromRedux:
60777
60822
  changeForm,
@@ -60801,6 +60846,7 @@ const UploadCsvWizardDialogInner = compose(
60801
60846
  searchResults,
60802
60847
  onUploadWizardFinish,
60803
60848
  csvValidationIssue,
60849
+ ignoredHeadersMsg,
60804
60850
  matchedHeaders,
60805
60851
  //fromRedux:
60806
60852
  handleSubmit,
@@ -60838,6 +60884,7 @@ const UploadCsvWizardDialogInner = compose(
60838
60884
  __spreadValues({}, {
60839
60885
  onMultiFileUploadSubmit,
60840
60886
  csvValidationIssue,
60887
+ ignoredHeadersMsg,
60841
60888
  searchResults,
60842
60889
  matchedHeaders,
60843
60890
  userSchema,
@@ -71168,7 +71215,8 @@ function UploaderInner({
71168
71215
  csvValidationIssue: _csvValidationIssue,
71169
71216
  matchedHeaders,
71170
71217
  userSchema,
71171
- searchResults
71218
+ searchResults,
71219
+ ignoredHeadersMsg
71172
71220
  } = yield tryToMatchSchemas({
71173
71221
  incomingData: parsedF.data,
71174
71222
  validateAgainstSchema
@@ -71211,6 +71259,7 @@ function UploaderInner({
71211
71259
  filesWIssues.push({
71212
71260
  file,
71213
71261
  csvValidationIssue,
71262
+ ignoredHeadersMsg,
71214
71263
  matchedHeaders,
71215
71264
  userSchema,
71216
71265
  searchResults
@@ -71219,6 +71268,7 @@ function UploaderInner({
71219
71268
  filesWOIssues.push({
71220
71269
  file,
71221
71270
  csvValidationIssue,
71271
+ ignoredHeadersMsg,
71222
71272
  matchedHeaders,
71223
71273
  userSchema,
71224
71274
  searchResults
package/index.es.js CHANGED
@@ -5505,10 +5505,10 @@ var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
5505
5505
  /* istanbul ignore next */
5506
5506
  Object.getOwnPropertyNames
5507
5507
  );
5508
- function toPrimitive$3(value) {
5508
+ function toPrimitive$2(value) {
5509
5509
  return value === null ? null : typeof value === "object" ? "" + value : value;
5510
5510
  }
5511
- __name(toPrimitive$3, "toPrimitive$3");
5511
+ __name(toPrimitive$2, "toPrimitive$2");
5512
5512
  function hasProp(target, prop) {
5513
5513
  return objectPrototype$1.hasOwnProperty.call(target, prop);
5514
5514
  }
@@ -6405,7 +6405,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
6405
6405
  return this.name_ + "[" + this.value_ + "]";
6406
6406
  }, "toString");
6407
6407
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6408
- return toPrimitive$3(this.get());
6408
+ return toPrimitive$2(this.get());
6409
6409
  }, "valueOf");
6410
6410
  _proto[_Symbol$toPrimitive] = function() {
6411
6411
  return this.valueOf();
@@ -6590,7 +6590,7 @@ var ComputedValue = /* @__PURE__ */ function() {
6590
6590
  return this.name_ + "[" + this.derivation.toString() + "]";
6591
6591
  }, "toString");
6592
6592
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
6593
- return toPrimitive$3(this.get());
6593
+ return toPrimitive$2(this.get());
6594
6594
  }, "valueOf");
6595
6595
  _proto[_Symbol$toPrimitive$1] = function() {
6596
6596
  return this.valueOf();
@@ -11224,7 +11224,7 @@ lodash.exports;
11224
11224
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11225
11225
  );
11226
11226
  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;
11227
- var defineProperty6 = function() {
11227
+ var defineProperty5 = function() {
11228
11228
  try {
11229
11229
  var func = getNative2(Object2, "defineProperty");
11230
11230
  func({}, "", {});
@@ -11664,8 +11664,8 @@ lodash.exports;
11664
11664
  }
11665
11665
  __name(baseAssignIn2, "baseAssignIn");
11666
11666
  function baseAssignValue2(object2, key, value) {
11667
- if (key == "__proto__" && defineProperty6) {
11668
- defineProperty6(object2, key, {
11667
+ if (key == "__proto__" && defineProperty5) {
11668
+ defineProperty5(object2, key, {
11669
11669
  "configurable": true,
11670
11670
  "enumerable": true,
11671
11671
  "value": value,
@@ -12398,8 +12398,8 @@ lodash.exports;
12398
12398
  metaMap.set(func, data);
12399
12399
  return func;
12400
12400
  };
12401
- var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12402
- return defineProperty6(func, "toString", {
12401
+ var baseSetToString2 = !defineProperty5 ? identity3 : function(func, string2) {
12402
+ return defineProperty5(func, "toString", {
12403
12403
  "configurable": true,
12404
12404
  "enumerable": false,
12405
12405
  "value": constant2(string2),
@@ -16948,11 +16948,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
16948
16948
  return true;
16949
16949
  }
16950
16950
  }, "_fails");
16951
- var _descriptors = !_fails(function() {
16952
- return Object.defineProperty({}, "a", { get: function() {
16953
- return 7;
16954
- } }).a != 7;
16955
- });
16951
+ var _descriptors;
16952
+ var hasRequired_descriptors;
16953
+ function require_descriptors() {
16954
+ if (hasRequired_descriptors)
16955
+ return _descriptors;
16956
+ hasRequired_descriptors = 1;
16957
+ _descriptors = !_fails(function() {
16958
+ return Object.defineProperty({}, "a", { get: function() {
16959
+ return 7;
16960
+ } }).a != 7;
16961
+ });
16962
+ return _descriptors;
16963
+ }
16964
+ __name(require_descriptors, "require_descriptors");
16956
16965
  var _domCreate;
16957
16966
  var hasRequired_domCreate;
16958
16967
  function require_domCreate() {
@@ -16968,11 +16977,20 @@ function require_domCreate() {
16968
16977
  return _domCreate;
16969
16978
  }
16970
16979
  __name(require_domCreate, "require_domCreate");
16971
- var _ie8DomDefine = !_descriptors && !_fails(function() {
16972
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16973
- return 7;
16974
- } }).a != 7;
16975
- });
16980
+ var _ie8DomDefine;
16981
+ var hasRequired_ie8DomDefine;
16982
+ function require_ie8DomDefine() {
16983
+ if (hasRequired_ie8DomDefine)
16984
+ return _ie8DomDefine;
16985
+ hasRequired_ie8DomDefine = 1;
16986
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
16987
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16988
+ return 7;
16989
+ } }).a != 7;
16990
+ });
16991
+ return _ie8DomDefine;
16992
+ }
16993
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
16976
16994
  var isObject$d = _isObject;
16977
16995
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16978
16996
  if (!isObject$d(it))
@@ -16986,25 +17004,33 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16986
17004
  return val;
16987
17005
  throw TypeError("Can't convert object to primitive value");
16988
17006
  }, "_toPrimitive");
16989
- var anObject$5 = _anObject;
16990
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
16991
- var toPrimitive$2 = _toPrimitive;
16992
- var dP$3 = Object.defineProperty;
16993
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
16994
- anObject$5(O2);
16995
- P2 = toPrimitive$2(P2, true);
16996
- anObject$5(Attributes);
16997
- if (IE8_DOM_DEFINE$1)
16998
- try {
16999
- return dP$3(O2, P2, Attributes);
17000
- } catch (e2) {
17001
- }
17002
- if ("get" in Attributes || "set" in Attributes)
17003
- throw TypeError("Accessors not supported!");
17004
- if ("value" in Attributes)
17005
- O2[P2] = Attributes.value;
17006
- return O2;
17007
- }, "defineProperty");
17007
+ var hasRequired_objectDp;
17008
+ function require_objectDp() {
17009
+ if (hasRequired_objectDp)
17010
+ return _objectDp;
17011
+ hasRequired_objectDp = 1;
17012
+ var anObject2 = _anObject;
17013
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
17014
+ var toPrimitive2 = _toPrimitive;
17015
+ var dP2 = Object.defineProperty;
17016
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
17017
+ anObject2(O2);
17018
+ P2 = toPrimitive2(P2, true);
17019
+ anObject2(Attributes);
17020
+ if (IE8_DOM_DEFINE2)
17021
+ try {
17022
+ return dP2(O2, P2, Attributes);
17023
+ } catch (e2) {
17024
+ }
17025
+ if ("get" in Attributes || "set" in Attributes)
17026
+ throw TypeError("Accessors not supported!");
17027
+ if ("value" in Attributes)
17028
+ O2[P2] = Attributes.value;
17029
+ return O2;
17030
+ }, "defineProperty");
17031
+ return _objectDp;
17032
+ }
17033
+ __name(require_objectDp, "require_objectDp");
17008
17034
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17009
17035
  return {
17010
17036
  enumerable: !(bitmap & 1),
@@ -17013,9 +17039,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17013
17039
  value
17014
17040
  };
17015
17041
  }, "_propertyDesc");
17016
- var dP$2 = _objectDp;
17042
+ var dP$2 = require_objectDp();
17017
17043
  var createDesc$3 = _propertyDesc;
17018
- var _hide = _descriptors ? function(object2, key, value) {
17044
+ var _hide = require_descriptors() ? function(object2, key, value) {
17019
17045
  return dP$2.f(object2, key, createDesc$3(1, value));
17020
17046
  } : function(object2, key, value) {
17021
17047
  object2[key] = value;
@@ -17087,16 +17113,25 @@ var toString$6 = {}.toString;
17087
17113
  var _cof = /* @__PURE__ */ __name(function(it) {
17088
17114
  return toString$6.call(it).slice(8, -1);
17089
17115
  }, "_cof");
17090
- var cof$2 = _cof;
17091
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17092
- return cof$2(it) == "String" ? it.split("") : Object(it);
17093
- };
17116
+ var _iobject;
17117
+ var hasRequired_iobject;
17118
+ function require_iobject() {
17119
+ if (hasRequired_iobject)
17120
+ return _iobject;
17121
+ hasRequired_iobject = 1;
17122
+ var cof2 = _cof;
17123
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17124
+ return cof2(it) == "String" ? it.split("") : Object(it);
17125
+ };
17126
+ return _iobject;
17127
+ }
17128
+ __name(require_iobject, "require_iobject");
17094
17129
  var _defined = /* @__PURE__ */ __name(function(it) {
17095
17130
  if (it == void 0)
17096
17131
  throw TypeError("Can't call method on " + it);
17097
17132
  return it;
17098
17133
  }, "_defined");
17099
- var IObject = _iobject;
17134
+ var IObject = require_iobject();
17100
17135
  var defined$2 = _defined;
17101
17136
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17102
17137
  return IObject(defined$2(it));
@@ -17212,12 +17247,12 @@ function require_objectAssign() {
17212
17247
  if (hasRequired_objectAssign)
17213
17248
  return _objectAssign;
17214
17249
  hasRequired_objectAssign = 1;
17215
- var DESCRIPTORS2 = _descriptors;
17250
+ var DESCRIPTORS2 = require_descriptors();
17216
17251
  var getKeys2 = _objectKeys;
17217
17252
  var gOPS2 = _objectGops;
17218
17253
  var pIE2 = require_objectPie();
17219
17254
  var toObject2 = _toObject;
17220
- var IObject2 = _iobject;
17255
+ var IObject2 = require_iobject();
17221
17256
  var $assign = Object.assign;
17222
17257
  _objectAssign = !$assign || _fails(function() {
17223
17258
  var A2 = {};
@@ -17278,10 +17313,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
17278
17313
  }, "_iterStep");
17279
17314
  var _iterators = {};
17280
17315
  var _redefine = _hide;
17281
- var dP$1 = _objectDp;
17316
+ var dP$1 = require_objectDp();
17282
17317
  var anObject$4 = _anObject;
17283
17318
  var getKeys$1 = _objectKeys;
17284
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
17319
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
17285
17320
  anObject$4(O2);
17286
17321
  var keys3 = getKeys$1(Properties);
17287
17322
  var length = keys3.length;
@@ -17348,7 +17383,7 @@ var $exports = _wks.exports = function(name) {
17348
17383
  };
17349
17384
  $exports.store = store;
17350
17385
  var _wksExports = _wks.exports;
17351
- var def = _objectDp.f;
17386
+ var def = require_objectDp().f;
17352
17387
  var has$9 = _has;
17353
17388
  var TAG$1 = _wksExports("toStringTag");
17354
17389
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17621,7 +17656,7 @@ var ArrayProto = Array.prototype;
17621
17656
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17622
17657
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17623
17658
  }, "_isArrayIter");
17624
- var $defineProperty$1 = _objectDp;
17659
+ var $defineProperty$1 = require_objectDp();
17625
17660
  var createDesc$2 = _propertyDesc;
17626
17661
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17627
17662
  if (index2 in object2)
@@ -17750,9 +17785,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17750
17785
  }
17751
17786
  }, "_default$8");
17752
17787
  var $export$3 = _export;
17753
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
17788
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17754
17789
  var $Object$2 = _coreExports.Object;
17755
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17790
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17756
17791
  return $Object$2.defineProperty(it, key, desc);
17757
17792
  }, "defineProperty");
17758
17793
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17791,7 +17826,7 @@ var _meta = { exports: {} };
17791
17826
  var META$1 = _uid("meta");
17792
17827
  var isObject$c = _isObject;
17793
17828
  var has$7 = _has;
17794
- var setDesc = _objectDp.f;
17829
+ var setDesc = require_objectDp().f;
17795
17830
  var id = 0;
17796
17831
  var isExtensible = Object.isExtensible || function() {
17797
17832
  return true;
@@ -17844,7 +17879,7 @@ var meta = _meta.exports = {
17844
17879
  var _metaExports = _meta.exports;
17845
17880
  var core = _coreExports;
17846
17881
  var wksExt$1 = _wksExt;
17847
- var defineProperty$7 = _objectDp.f;
17882
+ var defineProperty$7 = require_objectDp().f;
17848
17883
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17849
17884
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17850
17885
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17898,9 +17933,9 @@ var createDesc$1 = _propertyDesc;
17898
17933
  var toIObject$1 = _toIobject;
17899
17934
  var toPrimitive$1 = _toPrimitive;
17900
17935
  var has$6 = _has;
17901
- var IE8_DOM_DEFINE = _ie8DomDefine;
17936
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
17902
17937
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17903
- _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17938
+ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17904
17939
  O2 = toIObject$1(O2);
17905
17940
  P2 = toPrimitive$1(P2, true);
17906
17941
  if (IE8_DOM_DEFINE)
@@ -17913,7 +17948,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPr
17913
17948
  }, "getOwnPropertyDescriptor");
17914
17949
  var global$1 = _globalExports;
17915
17950
  var has$5 = _has;
17916
- var DESCRIPTORS = _descriptors;
17951
+ var DESCRIPTORS = require_descriptors();
17917
17952
  var $export$2 = _export;
17918
17953
  var redefine = _redefine;
17919
17954
  var META = _metaExports.KEY;
@@ -17936,7 +17971,7 @@ var _create$1 = _objectCreate;
17936
17971
  var gOPNExt = _objectGopnExt;
17937
17972
  var $GOPD = _objectGopd;
17938
17973
  var $GOPS = _objectGops;
17939
- var $DP = _objectDp;
17974
+ var $DP = require_objectDp();
17940
17975
  var $keys$1 = _objectKeys;
17941
17976
  var gOPD$1 = $GOPD.f;
17942
17977
  var dP = $DP.f;
@@ -17979,7 +18014,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
17979
18014
  } : function(it) {
17980
18015
  return it instanceof $Symbol;
17981
18016
  };
17982
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18017
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
17983
18018
  if (it === ObjectProto)
17984
18019
  $defineProperty(OPSymbols, key, D2);
17985
18020
  anObject(it);
@@ -54068,7 +54103,7 @@ var KNOWN_STATICS = {
54068
54103
  arguments: true,
54069
54104
  arity: true
54070
54105
  };
54071
- var defineProperty5 = Object.defineProperty;
54106
+ var defineProperty4 = Object.defineProperty;
54072
54107
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54073
54108
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54074
54109
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54091,7 +54126,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54091
54126
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54092
54127
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54093
54128
  try {
54094
- defineProperty5(targetComponent, key, descriptor2);
54129
+ defineProperty4(targetComponent, key, descriptor2);
54095
54130
  } catch (e2) {
54096
54131
  }
54097
54132
  }
@@ -58750,6 +58785,7 @@ function MatchHeaders({
58750
58785
  onMultiFileUploadSubmit,
58751
58786
  doAllFilesHaveSameHeaders,
58752
58787
  csvValidationIssue,
58788
+ ignoredHeadersMsg,
58753
58789
  searchResults,
58754
58790
  matchedHeaders,
58755
58791
  userSchema,
@@ -58767,7 +58803,7 @@ function MatchHeaders({
58767
58803
  if (v2)
58768
58804
  flippedMatchedHeaders[v2] = k2;
58769
58805
  });
58770
- return /* @__PURE__ */ React__default.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement(
58806
+ return /* @__PURE__ */ React__default.createElement("div", { style: { maxWidth: 500 } }, !onMultiFileUploadSubmit && /* @__PURE__ */ React__default.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, csvValidationIssue), !onMultiFileUploadSubmit && ignoredHeadersMsg && /* @__PURE__ */ React__default.createElement(Callout, { style: { width: "fit-content" }, intent: "warning" }, ignoredHeadersMsg), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement(
58771
58807
  "tr",
58772
58808
  {
58773
58809
  style: {
@@ -60330,7 +60366,7 @@ function tryToMatchSchemas(_0) {
60330
60366
  }) {
60331
60367
  yield resolveValidateAgainstSchema();
60332
60368
  const userSchema = getSchema(incomingData);
60333
- const { searchResults, csvValidationIssue } = yield matchSchemas({
60369
+ const { searchResults, csvValidationIssue, ignoredHeadersMsg } = yield matchSchemas({
60334
60370
  userSchema,
60335
60371
  officialSchema: validateAgainstSchema
60336
60372
  });
@@ -60366,6 +60402,7 @@ function tryToMatchSchemas(_0) {
60366
60402
  }
60367
60403
  });
60368
60404
  return {
60405
+ ignoredHeadersMsg,
60369
60406
  csvValidationIssue,
60370
60407
  matchedHeaders,
60371
60408
  userSchema,
@@ -60431,7 +60468,9 @@ function matchSchemas(_0) {
60431
60468
  if (!officialSchema.fields.find(
60432
60469
  (h2) => norm(h2.path) === norm(uh.path) || norm(h2.displayName) === norm(uh.path) || matchedAltPaths.includes(uh.path)
60433
60470
  )) {
60434
- ignoredUserSchemaFields.push(uh);
60471
+ if (userSchema.userData.some((e2) => e2[uh.path])) {
60472
+ ignoredUserSchemaFields.push(uh);
60473
+ }
60435
60474
  }
60436
60475
  });
60437
60476
  if (officialSchema.coerceUserSchema) {
@@ -60491,12 +60530,14 @@ function matchSchemas(_0) {
60491
60530
  };
60492
60531
  }
60493
60532
  }
60494
- if (!csvValidationIssue && ignoredUserSchemaFields.length) {
60495
- csvValidationIssue = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
60533
+ let ignoredHeadersMsg;
60534
+ if (ignoredUserSchemaFields.length) {
60535
+ ignoredHeadersMsg = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields.map((f2) => f2.displayName || f2.path).join(", ")}`;
60496
60536
  }
60497
60537
  return {
60498
60538
  searchResults: officialSchema.fields,
60499
- csvValidationIssue
60539
+ csvValidationIssue,
60540
+ ignoredHeadersMsg
60500
60541
  };
60501
60542
  });
60502
60543
  }
@@ -60566,6 +60607,7 @@ const UploadCsvWizardDialog = compose(
60566
60607
  doAllFilesHaveSameHeaders,
60567
60608
  destroyForms,
60568
60609
  csvValidationIssue,
60610
+ ignoredHeadersMsg,
60569
60611
  searchResults,
60570
60612
  matchedHeaders,
60571
60613
  userSchema,
@@ -60677,6 +60719,7 @@ const UploadCsvWizardDialog = compose(
60677
60719
  destroyForms,
60678
60720
  setFilesWIssues,
60679
60721
  csvValidationIssue,
60722
+ ignoredHeadersMsg,
60680
60723
  searchResults,
60681
60724
  matchedHeaders,
60682
60725
  userSchema,
@@ -60712,6 +60755,7 @@ const UploadCsvWizardDialog = compose(
60712
60755
  reduxFormEntitiesArray,
60713
60756
  // onMultiFileUploadSubmit,
60714
60757
  csvValidationIssue,
60758
+ ignoredHeadersMsg,
60715
60759
  searchResults,
60716
60760
  matchedHeaders,
60717
60761
  userSchema,
@@ -60754,6 +60798,7 @@ const UploadCsvWizardDialog = compose(
60754
60798
  searchResults,
60755
60799
  onUploadWizardFinish,
60756
60800
  csvValidationIssue,
60801
+ ignoredHeadersMsg,
60757
60802
  matchedHeaders,
60758
60803
  //fromRedux:
60759
60804
  changeForm,
@@ -60783,6 +60828,7 @@ const UploadCsvWizardDialogInner = compose(
60783
60828
  searchResults,
60784
60829
  onUploadWizardFinish,
60785
60830
  csvValidationIssue,
60831
+ ignoredHeadersMsg,
60786
60832
  matchedHeaders,
60787
60833
  //fromRedux:
60788
60834
  handleSubmit,
@@ -60820,6 +60866,7 @@ const UploadCsvWizardDialogInner = compose(
60820
60866
  __spreadValues({}, {
60821
60867
  onMultiFileUploadSubmit,
60822
60868
  csvValidationIssue,
60869
+ ignoredHeadersMsg,
60823
60870
  searchResults,
60824
60871
  matchedHeaders,
60825
60872
  userSchema,
@@ -71150,7 +71197,8 @@ function UploaderInner({
71150
71197
  csvValidationIssue: _csvValidationIssue,
71151
71198
  matchedHeaders,
71152
71199
  userSchema,
71153
- searchResults
71200
+ searchResults,
71201
+ ignoredHeadersMsg
71154
71202
  } = yield tryToMatchSchemas({
71155
71203
  incomingData: parsedF.data,
71156
71204
  validateAgainstSchema
@@ -71193,6 +71241,7 @@ function UploaderInner({
71193
71241
  filesWIssues.push({
71194
71242
  file,
71195
71243
  csvValidationIssue,
71244
+ ignoredHeadersMsg,
71196
71245
  matchedHeaders,
71197
71246
  userSchema,
71198
71247
  searchResults
@@ -71201,6 +71250,7 @@ function UploaderInner({
71201
71250
  filesWOIssues.push({
71202
71251
  file,
71203
71252
  csvValidationIssue,
71253
+ ignoredHeadersMsg,
71204
71254
  matchedHeaders,
71205
71255
  userSchema,
71206
71256
  searchResults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.69",
3
+ "version": "0.3.70",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -729,7 +729,8 @@ function UploaderInner({
729
729
  csvValidationIssue: _csvValidationIssue,
730
730
  matchedHeaders,
731
731
  userSchema,
732
- searchResults
732
+ searchResults,
733
+ ignoredHeadersMsg
733
734
  } = await tryToMatchSchemas({
734
735
  incomingData: parsedF.data,
735
736
  validateAgainstSchema
@@ -790,6 +791,7 @@ function UploaderInner({
790
791
  filesWIssues.push({
791
792
  file,
792
793
  csvValidationIssue,
794
+ ignoredHeadersMsg,
793
795
  matchedHeaders,
794
796
  userSchema,
795
797
  searchResults
@@ -798,6 +800,7 @@ function UploaderInner({
798
800
  filesWOIssues.push({
799
801
  file,
800
802
  csvValidationIssue,
803
+ ignoredHeadersMsg,
801
804
  matchedHeaders,
802
805
  userSchema,
803
806
  searchResults
@@ -28,10 +28,11 @@ export default async function tryToMatchSchemas({
28
28
  await resolveValidateAgainstSchema(validateAgainstSchema);
29
29
  const userSchema = getSchema(incomingData);
30
30
 
31
- const { searchResults, csvValidationIssue } = await matchSchemas({
32
- userSchema,
33
- officialSchema: validateAgainstSchema
34
- });
31
+ const { searchResults, csvValidationIssue, ignoredHeadersMsg } =
32
+ await matchSchemas({
33
+ userSchema,
34
+ officialSchema: validateAgainstSchema
35
+ });
35
36
 
36
37
  const incomingHeadersToScores = {};
37
38
 
@@ -67,6 +68,7 @@ export default async function tryToMatchSchemas({
67
68
  });
68
69
 
69
70
  return {
71
+ ignoredHeadersMsg,
70
72
  csvValidationIssue,
71
73
  matchedHeaders,
72
74
  userSchema,
@@ -150,7 +152,10 @@ async function matchSchemas({ userSchema, officialSchema }) {
150
152
  matchedAltPaths.includes(uh.path)
151
153
  )
152
154
  ) {
153
- ignoredUserSchemaFields.push(uh);
155
+ // check that the column does contain data (if it doesn't, it's probably a blank column)
156
+ if (userSchema.userData.some(e => e[uh.path])) {
157
+ ignoredUserSchemaFields.push(uh);
158
+ }
154
159
  }
155
160
  });
156
161
 
@@ -224,18 +229,16 @@ async function matchSchemas({ userSchema, officialSchema }) {
224
229
  }
225
230
  // csvValidationIssue = `Some of the data doesn't look quite right. Do these header mappings look correct?`;
226
231
  }
227
- // if (!csvValidationIssue) {
228
- // //all the headers match up as does the actual data
229
- // return { csvValidationIssue };
230
- // }
231
- if (!csvValidationIssue && ignoredUserSchemaFields.length) {
232
- csvValidationIssue = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields
232
+ let ignoredHeadersMsg;
233
+ if (ignoredUserSchemaFields.length) {
234
+ ignoredHeadersMsg = `It looks like the following headers in your file didn't map to any of the accepted headers: ${ignoredUserSchemaFields
233
235
  .map(f => f.displayName || f.path)
234
236
  .join(", ")}`;
235
237
  }
236
238
  return {
237
239
  searchResults: officialSchema.fields,
238
- csvValidationIssue
240
+ csvValidationIssue,
241
+ ignoredHeadersMsg
239
242
  };
240
243
  }
241
244
 
@@ -13,6 +13,7 @@ export function MatchHeaders({
13
13
  onMultiFileUploadSubmit,
14
14
  doAllFilesHaveSameHeaders,
15
15
  csvValidationIssue,
16
+ ignoredHeadersMsg,
16
17
  searchResults,
17
18
  matchedHeaders,
18
19
  userSchema,
@@ -37,6 +38,11 @@ export function MatchHeaders({
37
38
  {csvValidationIssue}
38
39
  </Callout>
39
40
  )}
41
+ {!onMultiFileUploadSubmit && ignoredHeadersMsg && (
42
+ <Callout style={{ width: "fit-content" }} intent="warning">
43
+ {ignoredHeadersMsg}
44
+ </Callout>
45
+ )}
40
46
  <br></br>
41
47
  <tr
42
48
  style={{
@@ -76,6 +76,7 @@ const UploadCsvWizardDialog = compose(
76
76
  doAllFilesHaveSameHeaders,
77
77
  destroyForms,
78
78
  csvValidationIssue,
79
+ ignoredHeadersMsg,
79
80
  searchResults,
80
81
  matchedHeaders,
81
82
  userSchema,
@@ -222,6 +223,7 @@ const UploadCsvWizardDialog = compose(
222
223
  destroyForms,
223
224
  setFilesWIssues,
224
225
  csvValidationIssue,
226
+ ignoredHeadersMsg,
225
227
  searchResults,
226
228
  matchedHeaders,
227
229
  userSchema,
@@ -266,6 +268,7 @@ const UploadCsvWizardDialog = compose(
266
268
  reduxFormEntitiesArray,
267
269
  // onMultiFileUploadSubmit,
268
270
  csvValidationIssue,
271
+ ignoredHeadersMsg,
269
272
  searchResults,
270
273
  matchedHeaders,
271
274
  userSchema,
@@ -312,6 +315,7 @@ const UploadCsvWizardDialog = compose(
312
315
  searchResults,
313
316
  onUploadWizardFinish,
314
317
  csvValidationIssue,
318
+ ignoredHeadersMsg,
315
319
  matchedHeaders,
316
320
  //fromRedux:
317
321
  changeForm,
@@ -344,6 +348,7 @@ const UploadCsvWizardDialogInner = compose(
344
348
  searchResults,
345
349
  onUploadWizardFinish,
346
350
  csvValidationIssue,
351
+ ignoredHeadersMsg,
347
352
  matchedHeaders,
348
353
  //fromRedux:
349
354
  handleSubmit,
@@ -383,6 +388,7 @@ const UploadCsvWizardDialogInner = compose(
383
388
  {...{
384
389
  onMultiFileUploadSubmit,
385
390
  csvValidationIssue,
391
+ ignoredHeadersMsg,
386
392
  searchResults,
387
393
  matchedHeaders,
388
394
  userSchema,
package/src/style.css CHANGED
@@ -245,4 +245,4 @@ button:not(:disabled):active {
245
245
 
246
246
  .bp3-dialog-header .bp3-heading {
247
247
  width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
248
- }
248
+ }
package/style.css CHANGED
@@ -9063,7 +9063,8 @@ button:not(:disabled):active {
9063
9063
 
9064
9064
  .bp3-dialog-header .bp3-heading {
9065
9065
  width: 10px; /* tnw: this is a hack to prevent the dialog title from causing the dialog width to expand larger than the dialog content*/
9066
- }.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
9066
+ }
9067
+ .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.rg-celleditor-input,
9067
9068
  .rg-celleditor input {
9068
9069
  border: none;
9069
9070
  }