@teselagen/ui 0.3.64 → 0.3.65

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$2(value) {
5526
+ function toPrimitive$3(value) {
5527
5527
  return value === null ? null : typeof value === "object" ? "" + value : value;
5528
5528
  }
5529
- __name(toPrimitive$2, "toPrimitive$2");
5529
+ __name(toPrimitive$3, "toPrimitive$3");
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$2(this.get());
6426
+ return toPrimitive$3(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$2(this.get());
6611
+ return toPrimitive$3(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 defineProperty5 = function() {
11245
+ var defineProperty6 = 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__" && defineProperty5) {
11686
- defineProperty5(object2, key, {
11685
+ if (key == "__proto__" && defineProperty6) {
11686
+ defineProperty6(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 = !defineProperty5 ? identity3 : function(func, string2) {
12420
- return defineProperty5(func, "toString", {
12419
+ var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12420
+ return defineProperty6(func, "toString", {
12421
12421
  "configurable": true,
12422
12422
  "enumerable": false,
12423
12423
  "value": constant2(string2),
@@ -16966,20 +16966,11 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
16966
16966
  return true;
16967
16967
  }
16968
16968
  }, "_fails");
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");
16969
+ var _descriptors = !_fails(function() {
16970
+ return Object.defineProperty({}, "a", { get: function() {
16971
+ return 7;
16972
+ } }).a != 7;
16973
+ });
16983
16974
  var _domCreate;
16984
16975
  var hasRequired_domCreate;
16985
16976
  function require_domCreate() {
@@ -16995,20 +16986,11 @@ function require_domCreate() {
16995
16986
  return _domCreate;
16996
16987
  }
16997
16988
  __name(require_domCreate, "require_domCreate");
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");
16989
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
16990
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16991
+ return 7;
16992
+ } }).a != 7;
16993
+ });
17012
16994
  var isObject$d = _isObject;
17013
16995
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17014
16996
  if (!isObject$d(it))
@@ -17022,33 +17004,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17022
17004
  return val;
17023
17005
  throw TypeError("Can't convert object to primitive value");
17024
17006
  }, "_toPrimitive");
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");
17007
+ var anObject$3 = _anObject;
17008
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
17009
+ var toPrimitive$2 = _toPrimitive;
17010
+ var dP$2 = Object.defineProperty;
17011
+ _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
17012
+ anObject$3(O2);
17013
+ P2 = toPrimitive$2(P2, true);
17014
+ anObject$3(Attributes);
17015
+ if (IE8_DOM_DEFINE$1)
17016
+ try {
17017
+ return dP$2(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");
17052
17026
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17053
17027
  return {
17054
17028
  enumerable: !(bitmap & 1),
@@ -17057,9 +17031,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17057
17031
  value
17058
17032
  };
17059
17033
  }, "_propertyDesc");
17060
- var dP$1 = require_objectDp();
17034
+ var dP$1 = _objectDp;
17061
17035
  var createDesc$3 = _propertyDesc;
17062
- var _hide = require_descriptors() ? function(object2, key, value) {
17036
+ var _hide = _descriptors ? function(object2, key, value) {
17063
17037
  return dP$1.f(object2, key, createDesc$3(1, value));
17064
17038
  } : function(object2, key, value) {
17065
17039
  object2[key] = value;
@@ -17265,7 +17239,7 @@ function require_objectAssign() {
17265
17239
  if (hasRequired_objectAssign)
17266
17240
  return _objectAssign;
17267
17241
  hasRequired_objectAssign = 1;
17268
- var DESCRIPTORS2 = require_descriptors();
17242
+ var DESCRIPTORS2 = _descriptors;
17269
17243
  var getKeys2 = _objectKeys;
17270
17244
  var gOPS2 = _objectGops;
17271
17245
  var pIE2 = require_objectPie();
@@ -17337,10 +17311,10 @@ function require_objectDps() {
17337
17311
  if (hasRequired_objectDps)
17338
17312
  return _objectDps;
17339
17313
  hasRequired_objectDps = 1;
17340
- var dP2 = require_objectDp();
17314
+ var dP2 = _objectDp;
17341
17315
  var anObject2 = _anObject;
17342
17316
  var getKeys2 = _objectKeys;
17343
- _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
17317
+ _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
17344
17318
  anObject2(O2);
17345
17319
  var keys3 = getKeys2(Properties);
17346
17320
  var length = keys3.length;
@@ -17419,7 +17393,7 @@ var $exports = _wks.exports = function(name) {
17419
17393
  };
17420
17394
  $exports.store = store;
17421
17395
  var _wksExports = _wks.exports;
17422
- var def = require_objectDp().f;
17396
+ var def = _objectDp.f;
17423
17397
  var has$9 = _has;
17424
17398
  var TAG$1 = _wksExports("toStringTag");
17425
17399
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17692,7 +17666,7 @@ var ArrayProto = Array.prototype;
17692
17666
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17693
17667
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17694
17668
  }, "_isArrayIter");
17695
- var $defineProperty$1 = require_objectDp();
17669
+ var $defineProperty$1 = _objectDp;
17696
17670
  var createDesc$2 = _propertyDesc;
17697
17671
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17698
17672
  if (index2 in object2)
@@ -17821,9 +17795,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17821
17795
  }
17822
17796
  }, "_default$8");
17823
17797
  var $export$3 = _export;
17824
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17798
+ $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
17825
17799
  var $Object$2 = _coreExports.Object;
17826
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17800
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17827
17801
  return $Object$2.defineProperty(it, key, desc);
17828
17802
  }, "defineProperty");
17829
17803
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17862,7 +17836,7 @@ var _meta = { exports: {} };
17862
17836
  var META$1 = _uid("meta");
17863
17837
  var isObject$c = _isObject;
17864
17838
  var has$7 = _has;
17865
- var setDesc = require_objectDp().f;
17839
+ var setDesc = _objectDp.f;
17866
17840
  var id = 0;
17867
17841
  var isExtensible = Object.isExtensible || function() {
17868
17842
  return true;
@@ -17915,7 +17889,7 @@ var meta = _meta.exports = {
17915
17889
  var _metaExports = _meta.exports;
17916
17890
  var core = _coreExports;
17917
17891
  var wksExt$1 = _wksExt;
17918
- var defineProperty$7 = require_objectDp().f;
17892
+ var defineProperty$7 = _objectDp.f;
17919
17893
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17920
17894
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17921
17895
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17969,9 +17943,9 @@ var createDesc$1 = _propertyDesc;
17969
17943
  var toIObject$1 = _toIobject;
17970
17944
  var toPrimitive$1 = _toPrimitive;
17971
17945
  var has$6 = _has;
17972
- var IE8_DOM_DEFINE = require_ie8DomDefine();
17946
+ var IE8_DOM_DEFINE = _ie8DomDefine;
17973
17947
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17974
- _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17948
+ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17975
17949
  O2 = toIObject$1(O2);
17976
17950
  P2 = toPrimitive$1(P2, true);
17977
17951
  if (IE8_DOM_DEFINE)
@@ -17984,7 +17958,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function
17984
17958
  }, "getOwnPropertyDescriptor");
17985
17959
  var global$1 = _globalExports;
17986
17960
  var has$5 = _has;
17987
- var DESCRIPTORS = require_descriptors();
17961
+ var DESCRIPTORS = _descriptors;
17988
17962
  var $export$2 = _export;
17989
17963
  var redefine = _redefine;
17990
17964
  var META = _metaExports.KEY;
@@ -18007,7 +17981,7 @@ var _create$1 = require_objectCreate();
18007
17981
  var gOPNExt = _objectGopnExt;
18008
17982
  var $GOPD = _objectGopd;
18009
17983
  var $GOPS = _objectGops;
18010
- var $DP = require_objectDp();
17984
+ var $DP = _objectDp;
18011
17985
  var $keys$1 = _objectKeys;
18012
17986
  var gOPD$1 = $GOPD.f;
18013
17987
  var dP = $DP.f;
@@ -18050,7 +18024,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
18050
18024
  } : function(it) {
18051
18025
  return it instanceof $Symbol;
18052
18026
  };
18053
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
18027
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18054
18028
  if (it === ObjectProto)
18055
18029
  $defineProperty(OPSymbols, key, D2);
18056
18030
  anObject(it);
@@ -42695,6 +42669,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React$1.Component {
42695
42669
  intent: core$5.Intent.SUCCESS,
42696
42670
  text: "Filter",
42697
42671
  secondaryText: "Clear",
42672
+ secondaryIntent: core$5.Intent.DANGER,
42698
42673
  secondaryAction: () => {
42699
42674
  currentFilter && removeSingleFilter(currentFilter.filterOn);
42700
42675
  }
@@ -54138,7 +54113,7 @@ var KNOWN_STATICS = {
54138
54113
  arguments: true,
54139
54114
  arity: true
54140
54115
  };
54141
- var defineProperty4 = Object.defineProperty;
54116
+ var defineProperty5 = Object.defineProperty;
54142
54117
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54143
54118
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54144
54119
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54161,7 +54136,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54161
54136
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54162
54137
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54163
54138
  try {
54164
- defineProperty4(targetComponent, key, descriptor2);
54139
+ defineProperty5(targetComponent, key, descriptor2);
54165
54140
  } catch (e2) {
54166
54141
  }
54167
54142
  }
@@ -60452,29 +60427,15 @@ function matchSchemas(_0) {
60452
60427
  };
60453
60428
  let csvValidationIssue = false;
60454
60429
  const fuse = new Fuse(userSchema.fields, options);
60455
- const matchedAltPaths = [];
60456
60430
  officialSchema.fields.forEach((h2) => {
60457
60431
  let hasMatch = false;
60458
60432
  let result = fuse.search(h2.path) || [];
60459
- const hadNormalPathMatch = userSchema.fields.some((uh) => norm(uh.path) === norm(h2.path));
60460
60433
  userSchema.fields.forEach((uh, i) => {
60461
60434
  const pathMatch = norm(uh.path) === norm(h2.path);
60462
60435
  const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
60463
- const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
60464
- let altPath = alternatePathMatch;
60465
- if (lodashExports.isPlainObject(alternatePathMatch)) {
60466
- altPath = alternatePathMatch.path;
60467
- }
60468
- return norm(uh.path) === norm(altPath);
60436
+ const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).some((alternatePathMatch) => {
60437
+ return norm(uh.path) === norm(alternatePathMatch);
60469
60438
  });
60470
- if (hasAlternatePathMatch) {
60471
- matchedAltPaths.push(
60472
- hasAlternatePathMatch.path || hasAlternatePathMatch
60473
- );
60474
- if (hasAlternatePathMatch.format) {
60475
- h2.format = hasAlternatePathMatch.format;
60476
- }
60477
- }
60478
60439
  if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
60479
60440
  result = result.filter(({ path: path2 }) => path2 === uh.path);
60480
60441
  result.unshift({
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$2(value) {
5508
+ function toPrimitive$3(value) {
5509
5509
  return value === null ? null : typeof value === "object" ? "" + value : value;
5510
5510
  }
5511
- __name(toPrimitive$2, "toPrimitive$2");
5511
+ __name(toPrimitive$3, "toPrimitive$3");
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$2(this.get());
6408
+ return toPrimitive$3(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$2(this.get());
6593
+ return toPrimitive$3(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 defineProperty5 = function() {
11227
+ var defineProperty6 = 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__" && defineProperty5) {
11668
- defineProperty5(object2, key, {
11667
+ if (key == "__proto__" && defineProperty6) {
11668
+ defineProperty6(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 = !defineProperty5 ? identity3 : function(func, string2) {
12402
- return defineProperty5(func, "toString", {
12401
+ var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
12402
+ return defineProperty6(func, "toString", {
12403
12403
  "configurable": true,
12404
12404
  "enumerable": false,
12405
12405
  "value": constant2(string2),
@@ -16948,20 +16948,11 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
16948
16948
  return true;
16949
16949
  }
16950
16950
  }, "_fails");
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");
16951
+ var _descriptors = !_fails(function() {
16952
+ return Object.defineProperty({}, "a", { get: function() {
16953
+ return 7;
16954
+ } }).a != 7;
16955
+ });
16965
16956
  var _domCreate;
16966
16957
  var hasRequired_domCreate;
16967
16958
  function require_domCreate() {
@@ -16977,20 +16968,11 @@ function require_domCreate() {
16977
16968
  return _domCreate;
16978
16969
  }
16979
16970
  __name(require_domCreate, "require_domCreate");
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");
16971
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
16972
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
16973
+ return 7;
16974
+ } }).a != 7;
16975
+ });
16994
16976
  var isObject$d = _isObject;
16995
16977
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
16996
16978
  if (!isObject$d(it))
@@ -17004,33 +16986,25 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
17004
16986
  return val;
17005
16987
  throw TypeError("Can't convert object to primitive value");
17006
16988
  }, "_toPrimitive");
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");
16989
+ var anObject$3 = _anObject;
16990
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
16991
+ var toPrimitive$2 = _toPrimitive;
16992
+ var dP$2 = Object.defineProperty;
16993
+ _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
16994
+ anObject$3(O2);
16995
+ P2 = toPrimitive$2(P2, true);
16996
+ anObject$3(Attributes);
16997
+ if (IE8_DOM_DEFINE$1)
16998
+ try {
16999
+ return dP$2(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");
17034
17008
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17035
17009
  return {
17036
17010
  enumerable: !(bitmap & 1),
@@ -17039,9 +17013,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
17039
17013
  value
17040
17014
  };
17041
17015
  }, "_propertyDesc");
17042
- var dP$1 = require_objectDp();
17016
+ var dP$1 = _objectDp;
17043
17017
  var createDesc$3 = _propertyDesc;
17044
- var _hide = require_descriptors() ? function(object2, key, value) {
17018
+ var _hide = _descriptors ? function(object2, key, value) {
17045
17019
  return dP$1.f(object2, key, createDesc$3(1, value));
17046
17020
  } : function(object2, key, value) {
17047
17021
  object2[key] = value;
@@ -17247,7 +17221,7 @@ function require_objectAssign() {
17247
17221
  if (hasRequired_objectAssign)
17248
17222
  return _objectAssign;
17249
17223
  hasRequired_objectAssign = 1;
17250
- var DESCRIPTORS2 = require_descriptors();
17224
+ var DESCRIPTORS2 = _descriptors;
17251
17225
  var getKeys2 = _objectKeys;
17252
17226
  var gOPS2 = _objectGops;
17253
17227
  var pIE2 = require_objectPie();
@@ -17319,10 +17293,10 @@ function require_objectDps() {
17319
17293
  if (hasRequired_objectDps)
17320
17294
  return _objectDps;
17321
17295
  hasRequired_objectDps = 1;
17322
- var dP2 = require_objectDp();
17296
+ var dP2 = _objectDp;
17323
17297
  var anObject2 = _anObject;
17324
17298
  var getKeys2 = _objectKeys;
17325
- _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
17299
+ _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
17326
17300
  anObject2(O2);
17327
17301
  var keys3 = getKeys2(Properties);
17328
17302
  var length = keys3.length;
@@ -17401,7 +17375,7 @@ var $exports = _wks.exports = function(name) {
17401
17375
  };
17402
17376
  $exports.store = store;
17403
17377
  var _wksExports = _wks.exports;
17404
- var def = require_objectDp().f;
17378
+ var def = _objectDp.f;
17405
17379
  var has$9 = _has;
17406
17380
  var TAG$1 = _wksExports("toStringTag");
17407
17381
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -17674,7 +17648,7 @@ var ArrayProto = Array.prototype;
17674
17648
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
17675
17649
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
17676
17650
  }, "_isArrayIter");
17677
- var $defineProperty$1 = require_objectDp();
17651
+ var $defineProperty$1 = _objectDp;
17678
17652
  var createDesc$2 = _propertyDesc;
17679
17653
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
17680
17654
  if (index2 in object2)
@@ -17803,9 +17777,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
17803
17777
  }
17804
17778
  }, "_default$8");
17805
17779
  var $export$3 = _export;
17806
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
17780
+ $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
17807
17781
  var $Object$2 = _coreExports.Object;
17808
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
17782
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
17809
17783
  return $Object$2.defineProperty(it, key, desc);
17810
17784
  }, "defineProperty");
17811
17785
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -17844,7 +17818,7 @@ var _meta = { exports: {} };
17844
17818
  var META$1 = _uid("meta");
17845
17819
  var isObject$c = _isObject;
17846
17820
  var has$7 = _has;
17847
- var setDesc = require_objectDp().f;
17821
+ var setDesc = _objectDp.f;
17848
17822
  var id = 0;
17849
17823
  var isExtensible = Object.isExtensible || function() {
17850
17824
  return true;
@@ -17897,7 +17871,7 @@ var meta = _meta.exports = {
17897
17871
  var _metaExports = _meta.exports;
17898
17872
  var core = _coreExports;
17899
17873
  var wksExt$1 = _wksExt;
17900
- var defineProperty$7 = require_objectDp().f;
17874
+ var defineProperty$7 = _objectDp.f;
17901
17875
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
17902
17876
  var $Symbol2 = core.Symbol || (core.Symbol = {});
17903
17877
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -17951,9 +17925,9 @@ var createDesc$1 = _propertyDesc;
17951
17925
  var toIObject$1 = _toIobject;
17952
17926
  var toPrimitive$1 = _toPrimitive;
17953
17927
  var has$6 = _has;
17954
- var IE8_DOM_DEFINE = require_ie8DomDefine();
17928
+ var IE8_DOM_DEFINE = _ie8DomDefine;
17955
17929
  var gOPD$2 = Object.getOwnPropertyDescriptor;
17956
- _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17930
+ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
17957
17931
  O2 = toIObject$1(O2);
17958
17932
  P2 = toPrimitive$1(P2, true);
17959
17933
  if (IE8_DOM_DEFINE)
@@ -17966,7 +17940,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function
17966
17940
  }, "getOwnPropertyDescriptor");
17967
17941
  var global$1 = _globalExports;
17968
17942
  var has$5 = _has;
17969
- var DESCRIPTORS = require_descriptors();
17943
+ var DESCRIPTORS = _descriptors;
17970
17944
  var $export$2 = _export;
17971
17945
  var redefine = _redefine;
17972
17946
  var META = _metaExports.KEY;
@@ -17989,7 +17963,7 @@ var _create$1 = require_objectCreate();
17989
17963
  var gOPNExt = _objectGopnExt;
17990
17964
  var $GOPD = _objectGopd;
17991
17965
  var $GOPS = _objectGops;
17992
- var $DP = require_objectDp();
17966
+ var $DP = _objectDp;
17993
17967
  var $keys$1 = _objectKeys;
17994
17968
  var gOPD$1 = $GOPD.f;
17995
17969
  var dP = $DP.f;
@@ -18032,7 +18006,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
18032
18006
  } : function(it) {
18033
18007
  return it instanceof $Symbol;
18034
18008
  };
18035
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
18009
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
18036
18010
  if (it === ObjectProto)
18037
18011
  $defineProperty(OPSymbols, key, D2);
18038
18012
  anObject(it);
@@ -42677,6 +42651,7 @@ const _FilterAndSortMenu = class _FilterAndSortMenu extends React__default.Compo
42677
42651
  intent: Intent.SUCCESS,
42678
42652
  text: "Filter",
42679
42653
  secondaryText: "Clear",
42654
+ secondaryIntent: Intent.DANGER,
42680
42655
  secondaryAction: () => {
42681
42656
  currentFilter && removeSingleFilter(currentFilter.filterOn);
42682
42657
  }
@@ -54120,7 +54095,7 @@ var KNOWN_STATICS = {
54120
54095
  arguments: true,
54121
54096
  arity: true
54122
54097
  };
54123
- var defineProperty4 = Object.defineProperty;
54098
+ var defineProperty5 = Object.defineProperty;
54124
54099
  var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54125
54100
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54126
54101
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
@@ -54143,7 +54118,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54143
54118
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
54144
54119
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
54145
54120
  try {
54146
- defineProperty4(targetComponent, key, descriptor2);
54121
+ defineProperty5(targetComponent, key, descriptor2);
54147
54122
  } catch (e2) {
54148
54123
  }
54149
54124
  }
@@ -60434,29 +60409,15 @@ function matchSchemas(_0) {
60434
60409
  };
60435
60410
  let csvValidationIssue = false;
60436
60411
  const fuse = new Fuse(userSchema.fields, options);
60437
- const matchedAltPaths = [];
60438
60412
  officialSchema.fields.forEach((h2) => {
60439
60413
  let hasMatch = false;
60440
60414
  let result = fuse.search(h2.path) || [];
60441
- const hadNormalPathMatch = userSchema.fields.some((uh) => norm(uh.path) === norm(h2.path));
60442
60415
  userSchema.fields.forEach((uh, i) => {
60443
60416
  const pathMatch = norm(uh.path) === norm(h2.path);
60444
60417
  const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
60445
- const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
60446
- let altPath = alternatePathMatch;
60447
- if (lodashExports.isPlainObject(alternatePathMatch)) {
60448
- altPath = alternatePathMatch.path;
60449
- }
60450
- return norm(uh.path) === norm(altPath);
60418
+ const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).some((alternatePathMatch) => {
60419
+ return norm(uh.path) === norm(alternatePathMatch);
60451
60420
  });
60452
- if (hasAlternatePathMatch) {
60453
- matchedAltPaths.push(
60454
- hasAlternatePathMatch.path || hasAlternatePathMatch
60455
- );
60456
- if (hasAlternatePathMatch.format) {
60457
- h2.format = hasAlternatePathMatch.format;
60458
- }
60459
- }
60460
60421
  if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
60461
60422
  result = result.filter(({ path: path2 }) => path2 === uh.path);
60462
60423
  result.unshift({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.64",
3
+ "version": "0.3.65",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -182,6 +182,7 @@ export default class FilterAndSortMenu extends React.Component {
182
182
  intent={Intent.SUCCESS}
183
183
  text="Filter"
184
184
  secondaryText="Clear"
185
+ secondaryIntent={Intent.DANGER}
185
186
  secondaryAction={() => {
186
187
  currentFilter && removeSingleFilter(currentFilter.filterOn);
187
188
  }}
@@ -1,4 +1,4 @@
1
- import { forEach, isArray, isPlainObject, map, snakeCase } from "lodash";
1
+ import { forEach, isArray, map, snakeCase } from "lodash";
2
2
  import { nanoid } from "nanoid";
3
3
  import Fuse from "fuse.js";
4
4
  import { editCellHelper } from "../DataTable/editCellHelper";
@@ -82,40 +82,25 @@ async function matchSchemas({ userSchema, officialSchema }) {
82
82
  let csvValidationIssue = false;
83
83
  const fuse = new Fuse(userSchema.fields, options);
84
84
 
85
- const matchedAltPaths = [];
86
85
  officialSchema.fields.forEach(h => {
87
86
  let hasMatch = false;
88
87
  //run fuse search for results
89
88
  let result = fuse.search(h.path) || [];
90
89
 
91
- const hadNormalPathMatch = userSchema.fields.some(uh => norm(uh.path) === norm(h.path))
92
90
  //if there are any exact matches, push them onto the results array
93
91
  userSchema.fields.forEach((uh, i) => {
94
92
  const pathMatch = norm(uh.path) === norm(h.path);
95
93
  const displayNameMatch =
96
94
  h.displayName && norm(uh.path) === norm(getTextFromEl(h.displayName));
97
95
  const hasAlternatePathMatch =
98
- !hadNormalPathMatch &&
99
96
  h.alternatePathMatch &&
100
97
  (isArray(h.alternatePathMatch)
101
98
  ? h.alternatePathMatch
102
99
  : [h.alternatePathMatch]
103
- ).find(alternatePathMatch => {
104
- let altPath = alternatePathMatch;
105
- if (isPlainObject(alternatePathMatch)) {
106
- altPath = alternatePathMatch.path;
107
- }
108
- return norm(uh.path) === norm(altPath);
100
+ ).some(alternatePathMatch => {
101
+ return norm(uh.path) === norm(alternatePathMatch);
109
102
  });
110
103
 
111
- if (hasAlternatePathMatch) {
112
- matchedAltPaths.push(
113
- hasAlternatePathMatch.path || hasAlternatePathMatch
114
- );
115
- if (hasAlternatePathMatch.format) {
116
- h.format = hasAlternatePathMatch.format;
117
- }
118
- }
119
104
  if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
120
105
  result = result.filter(({ path }) => path === uh.path);
121
106
  //add a fake perfect match result to make sure we get the match