@teselagen/ui 0.3.65 → 0.3.66
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 +111 -86
- package/index.es.js +111 -86
- package/package.json +1 -1
- package/src/FormComponents/tryToMatchSchemas.js +20 -3
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$
|
|
5526
|
+
function toPrimitive$2(value) {
|
|
5527
5527
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5528
5528
|
}
|
|
5529
|
-
__name(toPrimitive$
|
|
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$
|
|
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$
|
|
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
|
|
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__" &&
|
|
11686
|
-
|
|
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 = !
|
|
12420
|
-
return
|
|
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
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
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
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
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
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
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$1 =
|
|
17060
|
+
var dP$1 = require_objectDp();
|
|
17035
17061
|
var createDesc$3 = _propertyDesc;
|
|
17036
|
-
var _hide =
|
|
17062
|
+
var _hide = require_descriptors() ? function(object2, key, value) {
|
|
17037
17063
|
return dP$1.f(object2, key, createDesc$3(1, value));
|
|
17038
17064
|
} : function(object2, key, value) {
|
|
17039
17065
|
object2[key] = value;
|
|
@@ -17105,25 +17131,16 @@ 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
|
|
17109
|
-
var
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
return _iobject;
|
|
17113
|
-
hasRequired_iobject = 1;
|
|
17114
|
-
var cof2 = _cof;
|
|
17115
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17116
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17117
|
-
};
|
|
17118
|
-
return _iobject;
|
|
17119
|
-
}
|
|
17120
|
-
__name(require_iobject, "require_iobject");
|
|
17134
|
+
var cof$2 = _cof;
|
|
17135
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17136
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
17137
|
+
};
|
|
17121
17138
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
17122
17139
|
if (it == void 0)
|
|
17123
17140
|
throw TypeError("Can't call method on " + it);
|
|
17124
17141
|
return it;
|
|
17125
17142
|
}, "_defined");
|
|
17126
|
-
var IObject =
|
|
17143
|
+
var IObject = _iobject;
|
|
17127
17144
|
var defined$2 = _defined;
|
|
17128
17145
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
17129
17146
|
return IObject(defined$2(it));
|
|
@@ -17220,15 +17237,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
|
17220
17237
|
var _objectGops = {};
|
|
17221
17238
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
17222
17239
|
var _objectPie = {};
|
|
17223
|
-
|
|
17224
|
-
function require_objectPie() {
|
|
17225
|
-
if (hasRequired_objectPie)
|
|
17226
|
-
return _objectPie;
|
|
17227
|
-
hasRequired_objectPie = 1;
|
|
17228
|
-
_objectPie.f = {}.propertyIsEnumerable;
|
|
17229
|
-
return _objectPie;
|
|
17230
|
-
}
|
|
17231
|
-
__name(require_objectPie, "require_objectPie");
|
|
17240
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
17232
17241
|
var defined$1 = _defined;
|
|
17233
17242
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
17234
17243
|
return Object(defined$1(it));
|
|
@@ -17239,12 +17248,12 @@ function require_objectAssign() {
|
|
|
17239
17248
|
if (hasRequired_objectAssign)
|
|
17240
17249
|
return _objectAssign;
|
|
17241
17250
|
hasRequired_objectAssign = 1;
|
|
17242
|
-
var DESCRIPTORS2 =
|
|
17251
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17243
17252
|
var getKeys2 = _objectKeys;
|
|
17244
17253
|
var gOPS2 = _objectGops;
|
|
17245
|
-
var pIE2 =
|
|
17254
|
+
var pIE2 = _objectPie;
|
|
17246
17255
|
var toObject2 = _toObject;
|
|
17247
|
-
var IObject2 =
|
|
17256
|
+
var IObject2 = _iobject;
|
|
17248
17257
|
var $assign = Object.assign;
|
|
17249
17258
|
_objectAssign = !$assign || _fails(function() {
|
|
17250
17259
|
var A2 = {};
|
|
@@ -17311,10 +17320,10 @@ function require_objectDps() {
|
|
|
17311
17320
|
if (hasRequired_objectDps)
|
|
17312
17321
|
return _objectDps;
|
|
17313
17322
|
hasRequired_objectDps = 1;
|
|
17314
|
-
var dP2 =
|
|
17323
|
+
var dP2 = require_objectDp();
|
|
17315
17324
|
var anObject2 = _anObject;
|
|
17316
17325
|
var getKeys2 = _objectKeys;
|
|
17317
|
-
_objectDps =
|
|
17326
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
|
|
17318
17327
|
anObject2(O2);
|
|
17319
17328
|
var keys3 = getKeys2(Properties);
|
|
17320
17329
|
var length = keys3.length;
|
|
@@ -17393,7 +17402,7 @@ var $exports = _wks.exports = function(name) {
|
|
|
17393
17402
|
};
|
|
17394
17403
|
$exports.store = store;
|
|
17395
17404
|
var _wksExports = _wks.exports;
|
|
17396
|
-
var def =
|
|
17405
|
+
var def = require_objectDp().f;
|
|
17397
17406
|
var has$9 = _has;
|
|
17398
17407
|
var TAG$1 = _wksExports("toStringTag");
|
|
17399
17408
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -17666,7 +17675,7 @@ var ArrayProto = Array.prototype;
|
|
|
17666
17675
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17667
17676
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17668
17677
|
}, "_isArrayIter");
|
|
17669
|
-
var $defineProperty$1 =
|
|
17678
|
+
var $defineProperty$1 = require_objectDp();
|
|
17670
17679
|
var createDesc$2 = _propertyDesc;
|
|
17671
17680
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
17672
17681
|
if (index2 in object2)
|
|
@@ -17795,9 +17804,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17795
17804
|
}
|
|
17796
17805
|
}, "_default$8");
|
|
17797
17806
|
var $export$3 = _export;
|
|
17798
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17807
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
17799
17808
|
var $Object$2 = _coreExports.Object;
|
|
17800
|
-
var defineProperty$9 = /* @__PURE__ */ __name(function
|
|
17809
|
+
var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
17801
17810
|
return $Object$2.defineProperty(it, key, desc);
|
|
17802
17811
|
}, "defineProperty");
|
|
17803
17812
|
var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
|
|
@@ -17836,7 +17845,7 @@ var _meta = { exports: {} };
|
|
|
17836
17845
|
var META$1 = _uid("meta");
|
|
17837
17846
|
var isObject$c = _isObject;
|
|
17838
17847
|
var has$7 = _has;
|
|
17839
|
-
var setDesc =
|
|
17848
|
+
var setDesc = require_objectDp().f;
|
|
17840
17849
|
var id = 0;
|
|
17841
17850
|
var isExtensible = Object.isExtensible || function() {
|
|
17842
17851
|
return true;
|
|
@@ -17889,7 +17898,7 @@ var meta = _meta.exports = {
|
|
|
17889
17898
|
var _metaExports = _meta.exports;
|
|
17890
17899
|
var core = _coreExports;
|
|
17891
17900
|
var wksExt$1 = _wksExt;
|
|
17892
|
-
var defineProperty$7 =
|
|
17901
|
+
var defineProperty$7 = require_objectDp().f;
|
|
17893
17902
|
var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
17894
17903
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
17895
17904
|
if (name.charAt(0) != "_" && !(name in $Symbol2))
|
|
@@ -17897,7 +17906,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
|
17897
17906
|
}, "_wksDefine");
|
|
17898
17907
|
var getKeys = _objectKeys;
|
|
17899
17908
|
var gOPS$1 = _objectGops;
|
|
17900
|
-
var pIE$1 =
|
|
17909
|
+
var pIE$1 = _objectPie;
|
|
17901
17910
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
17902
17911
|
var result = getKeys(it);
|
|
17903
17912
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -17938,14 +17947,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
17938
17947
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
17939
17948
|
}, "getOwnPropertyNames");
|
|
17940
17949
|
var _objectGopd = {};
|
|
17941
|
-
var pIE =
|
|
17950
|
+
var pIE = _objectPie;
|
|
17942
17951
|
var createDesc$1 = _propertyDesc;
|
|
17943
17952
|
var toIObject$1 = _toIobject;
|
|
17944
17953
|
var toPrimitive$1 = _toPrimitive;
|
|
17945
17954
|
var has$6 = _has;
|
|
17946
|
-
var IE8_DOM_DEFINE =
|
|
17955
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
17947
17956
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
17948
|
-
_objectGopd.f =
|
|
17957
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17949
17958
|
O2 = toIObject$1(O2);
|
|
17950
17959
|
P2 = toPrimitive$1(P2, true);
|
|
17951
17960
|
if (IE8_DOM_DEFINE)
|
|
@@ -17958,7 +17967,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17958
17967
|
}, "getOwnPropertyDescriptor");
|
|
17959
17968
|
var global$1 = _globalExports;
|
|
17960
17969
|
var has$5 = _has;
|
|
17961
|
-
var DESCRIPTORS =
|
|
17970
|
+
var DESCRIPTORS = require_descriptors();
|
|
17962
17971
|
var $export$2 = _export;
|
|
17963
17972
|
var redefine = _redefine;
|
|
17964
17973
|
var META = _metaExports.KEY;
|
|
@@ -17981,7 +17990,7 @@ var _create$1 = require_objectCreate();
|
|
|
17981
17990
|
var gOPNExt = _objectGopnExt;
|
|
17982
17991
|
var $GOPD = _objectGopd;
|
|
17983
17992
|
var $GOPS = _objectGops;
|
|
17984
|
-
var $DP =
|
|
17993
|
+
var $DP = require_objectDp();
|
|
17985
17994
|
var $keys$1 = _objectKeys;
|
|
17986
17995
|
var gOPD$1 = $GOPD.f;
|
|
17987
17996
|
var dP = $DP.f;
|
|
@@ -18024,7 +18033,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
18024
18033
|
} : function(it) {
|
|
18025
18034
|
return it instanceof $Symbol;
|
|
18026
18035
|
};
|
|
18027
|
-
var $defineProperty = /* @__PURE__ */ __name(function
|
|
18036
|
+
var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
18028
18037
|
if (it === ObjectProto)
|
|
18029
18038
|
$defineProperty(OPSymbols, key, D2);
|
|
18030
18039
|
anObject(it);
|
|
@@ -18118,7 +18127,7 @@ if (!USE_NATIVE) {
|
|
|
18118
18127
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
18119
18128
|
$DP.f = $defineProperty;
|
|
18120
18129
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
18121
|
-
|
|
18130
|
+
_objectPie.f = $propertyIsEnumerable;
|
|
18122
18131
|
$GOPS.f = $getOwnPropertySymbols;
|
|
18123
18132
|
if (DESCRIPTORS && !_library) {
|
|
18124
18133
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -54113,7 +54122,7 @@ var KNOWN_STATICS = {
|
|
|
54113
54122
|
arguments: true,
|
|
54114
54123
|
arity: true
|
|
54115
54124
|
};
|
|
54116
|
-
var
|
|
54125
|
+
var defineProperty4 = Object.defineProperty;
|
|
54117
54126
|
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
54118
54127
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
54119
54128
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
@@ -54136,7 +54145,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
54136
54145
|
if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
|
|
54137
54146
|
var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
|
|
54138
54147
|
try {
|
|
54139
|
-
|
|
54148
|
+
defineProperty4(targetComponent, key, descriptor2);
|
|
54140
54149
|
} catch (e2) {
|
|
54141
54150
|
}
|
|
54142
54151
|
}
|
|
@@ -60427,15 +60436,31 @@ function matchSchemas(_0) {
|
|
|
60427
60436
|
};
|
|
60428
60437
|
let csvValidationIssue = false;
|
|
60429
60438
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60439
|
+
const matchedAltPaths = [];
|
|
60430
60440
|
officialSchema.fields.forEach((h2) => {
|
|
60431
60441
|
let hasMatch = false;
|
|
60432
60442
|
let result = fuse.search(h2.path) || [];
|
|
60443
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60444
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60445
|
+
);
|
|
60433
60446
|
userSchema.fields.forEach((uh, i) => {
|
|
60434
60447
|
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60435
60448
|
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60436
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).
|
|
60437
|
-
|
|
60449
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60450
|
+
let altPath = alternatePathMatch;
|
|
60451
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60452
|
+
altPath = alternatePathMatch.path;
|
|
60453
|
+
}
|
|
60454
|
+
return norm(uh.path) === norm(altPath);
|
|
60438
60455
|
});
|
|
60456
|
+
if (hasAlternatePathMatch) {
|
|
60457
|
+
matchedAltPaths.push(
|
|
60458
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60459
|
+
);
|
|
60460
|
+
if (hasAlternatePathMatch.format) {
|
|
60461
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60462
|
+
}
|
|
60463
|
+
}
|
|
60439
60464
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60440
60465
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60441
60466
|
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$
|
|
5508
|
+
function toPrimitive$2(value) {
|
|
5509
5509
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
5510
5510
|
}
|
|
5511
|
-
__name(toPrimitive$
|
|
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$
|
|
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$
|
|
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
|
|
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__" &&
|
|
11668
|
-
|
|
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 = !
|
|
12402
|
-
return
|
|
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
|
|
16952
|
-
|
|
16953
|
-
|
|
16954
|
-
|
|
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
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
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
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17006
|
-
|
|
17007
|
-
|
|
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$1 =
|
|
17042
|
+
var dP$1 = require_objectDp();
|
|
17017
17043
|
var createDesc$3 = _propertyDesc;
|
|
17018
|
-
var _hide =
|
|
17044
|
+
var _hide = require_descriptors() ? function(object2, key, value) {
|
|
17019
17045
|
return dP$1.f(object2, key, createDesc$3(1, value));
|
|
17020
17046
|
} : function(object2, key, value) {
|
|
17021
17047
|
object2[key] = value;
|
|
@@ -17087,25 +17113,16 @@ 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
|
|
17091
|
-
var
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
return _iobject;
|
|
17095
|
-
hasRequired_iobject = 1;
|
|
17096
|
-
var cof2 = _cof;
|
|
17097
|
-
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17098
|
-
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
17099
|
-
};
|
|
17100
|
-
return _iobject;
|
|
17101
|
-
}
|
|
17102
|
-
__name(require_iobject, "require_iobject");
|
|
17116
|
+
var cof$2 = _cof;
|
|
17117
|
+
var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
17118
|
+
return cof$2(it) == "String" ? it.split("") : Object(it);
|
|
17119
|
+
};
|
|
17103
17120
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
17104
17121
|
if (it == void 0)
|
|
17105
17122
|
throw TypeError("Can't call method on " + it);
|
|
17106
17123
|
return it;
|
|
17107
17124
|
}, "_defined");
|
|
17108
|
-
var IObject =
|
|
17125
|
+
var IObject = _iobject;
|
|
17109
17126
|
var defined$2 = _defined;
|
|
17110
17127
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
17111
17128
|
return IObject(defined$2(it));
|
|
@@ -17202,15 +17219,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
|
17202
17219
|
var _objectGops = {};
|
|
17203
17220
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
17204
17221
|
var _objectPie = {};
|
|
17205
|
-
|
|
17206
|
-
function require_objectPie() {
|
|
17207
|
-
if (hasRequired_objectPie)
|
|
17208
|
-
return _objectPie;
|
|
17209
|
-
hasRequired_objectPie = 1;
|
|
17210
|
-
_objectPie.f = {}.propertyIsEnumerable;
|
|
17211
|
-
return _objectPie;
|
|
17212
|
-
}
|
|
17213
|
-
__name(require_objectPie, "require_objectPie");
|
|
17222
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
17214
17223
|
var defined$1 = _defined;
|
|
17215
17224
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
17216
17225
|
return Object(defined$1(it));
|
|
@@ -17221,12 +17230,12 @@ function require_objectAssign() {
|
|
|
17221
17230
|
if (hasRequired_objectAssign)
|
|
17222
17231
|
return _objectAssign;
|
|
17223
17232
|
hasRequired_objectAssign = 1;
|
|
17224
|
-
var DESCRIPTORS2 =
|
|
17233
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
17225
17234
|
var getKeys2 = _objectKeys;
|
|
17226
17235
|
var gOPS2 = _objectGops;
|
|
17227
|
-
var pIE2 =
|
|
17236
|
+
var pIE2 = _objectPie;
|
|
17228
17237
|
var toObject2 = _toObject;
|
|
17229
|
-
var IObject2 =
|
|
17238
|
+
var IObject2 = _iobject;
|
|
17230
17239
|
var $assign = Object.assign;
|
|
17231
17240
|
_objectAssign = !$assign || _fails(function() {
|
|
17232
17241
|
var A2 = {};
|
|
@@ -17293,10 +17302,10 @@ function require_objectDps() {
|
|
|
17293
17302
|
if (hasRequired_objectDps)
|
|
17294
17303
|
return _objectDps;
|
|
17295
17304
|
hasRequired_objectDps = 1;
|
|
17296
|
-
var dP2 =
|
|
17305
|
+
var dP2 = require_objectDp();
|
|
17297
17306
|
var anObject2 = _anObject;
|
|
17298
17307
|
var getKeys2 = _objectKeys;
|
|
17299
|
-
_objectDps =
|
|
17308
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
|
|
17300
17309
|
anObject2(O2);
|
|
17301
17310
|
var keys3 = getKeys2(Properties);
|
|
17302
17311
|
var length = keys3.length;
|
|
@@ -17375,7 +17384,7 @@ var $exports = _wks.exports = function(name) {
|
|
|
17375
17384
|
};
|
|
17376
17385
|
$exports.store = store;
|
|
17377
17386
|
var _wksExports = _wks.exports;
|
|
17378
|
-
var def =
|
|
17387
|
+
var def = require_objectDp().f;
|
|
17379
17388
|
var has$9 = _has;
|
|
17380
17389
|
var TAG$1 = _wksExports("toStringTag");
|
|
17381
17390
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -17648,7 +17657,7 @@ var ArrayProto = Array.prototype;
|
|
|
17648
17657
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
17649
17658
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
17650
17659
|
}, "_isArrayIter");
|
|
17651
|
-
var $defineProperty$1 =
|
|
17660
|
+
var $defineProperty$1 = require_objectDp();
|
|
17652
17661
|
var createDesc$2 = _propertyDesc;
|
|
17653
17662
|
var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
|
|
17654
17663
|
if (index2 in object2)
|
|
@@ -17777,9 +17786,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
17777
17786
|
}
|
|
17778
17787
|
}, "_default$8");
|
|
17779
17788
|
var $export$3 = _export;
|
|
17780
|
-
$export$3($export$3.S + $export$3.F * !
|
|
17789
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
17781
17790
|
var $Object$2 = _coreExports.Object;
|
|
17782
|
-
var defineProperty$9 = /* @__PURE__ */ __name(function
|
|
17791
|
+
var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
17783
17792
|
return $Object$2.defineProperty(it, key, desc);
|
|
17784
17793
|
}, "defineProperty");
|
|
17785
17794
|
var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
|
|
@@ -17818,7 +17827,7 @@ var _meta = { exports: {} };
|
|
|
17818
17827
|
var META$1 = _uid("meta");
|
|
17819
17828
|
var isObject$c = _isObject;
|
|
17820
17829
|
var has$7 = _has;
|
|
17821
|
-
var setDesc =
|
|
17830
|
+
var setDesc = require_objectDp().f;
|
|
17822
17831
|
var id = 0;
|
|
17823
17832
|
var isExtensible = Object.isExtensible || function() {
|
|
17824
17833
|
return true;
|
|
@@ -17871,7 +17880,7 @@ var meta = _meta.exports = {
|
|
|
17871
17880
|
var _metaExports = _meta.exports;
|
|
17872
17881
|
var core = _coreExports;
|
|
17873
17882
|
var wksExt$1 = _wksExt;
|
|
17874
|
-
var defineProperty$7 =
|
|
17883
|
+
var defineProperty$7 = require_objectDp().f;
|
|
17875
17884
|
var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
17876
17885
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
17877
17886
|
if (name.charAt(0) != "_" && !(name in $Symbol2))
|
|
@@ -17879,7 +17888,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
|
|
|
17879
17888
|
}, "_wksDefine");
|
|
17880
17889
|
var getKeys = _objectKeys;
|
|
17881
17890
|
var gOPS$1 = _objectGops;
|
|
17882
|
-
var pIE$1 =
|
|
17891
|
+
var pIE$1 = _objectPie;
|
|
17883
17892
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
17884
17893
|
var result = getKeys(it);
|
|
17885
17894
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -17920,14 +17929,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
17920
17929
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
17921
17930
|
}, "getOwnPropertyNames");
|
|
17922
17931
|
var _objectGopd = {};
|
|
17923
|
-
var pIE =
|
|
17932
|
+
var pIE = _objectPie;
|
|
17924
17933
|
var createDesc$1 = _propertyDesc;
|
|
17925
17934
|
var toIObject$1 = _toIobject;
|
|
17926
17935
|
var toPrimitive$1 = _toPrimitive;
|
|
17927
17936
|
var has$6 = _has;
|
|
17928
|
-
var IE8_DOM_DEFINE =
|
|
17937
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
17929
17938
|
var gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
17930
|
-
_objectGopd.f =
|
|
17939
|
+
_objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
17931
17940
|
O2 = toIObject$1(O2);
|
|
17932
17941
|
P2 = toPrimitive$1(P2, true);
|
|
17933
17942
|
if (IE8_DOM_DEFINE)
|
|
@@ -17940,7 +17949,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
17940
17949
|
}, "getOwnPropertyDescriptor");
|
|
17941
17950
|
var global$1 = _globalExports;
|
|
17942
17951
|
var has$5 = _has;
|
|
17943
|
-
var DESCRIPTORS =
|
|
17952
|
+
var DESCRIPTORS = require_descriptors();
|
|
17944
17953
|
var $export$2 = _export;
|
|
17945
17954
|
var redefine = _redefine;
|
|
17946
17955
|
var META = _metaExports.KEY;
|
|
@@ -17963,7 +17972,7 @@ var _create$1 = require_objectCreate();
|
|
|
17963
17972
|
var gOPNExt = _objectGopnExt;
|
|
17964
17973
|
var $GOPD = _objectGopd;
|
|
17965
17974
|
var $GOPS = _objectGops;
|
|
17966
|
-
var $DP =
|
|
17975
|
+
var $DP = require_objectDp();
|
|
17967
17976
|
var $keys$1 = _objectKeys;
|
|
17968
17977
|
var gOPD$1 = $GOPD.f;
|
|
17969
17978
|
var dP = $DP.f;
|
|
@@ -18006,7 +18015,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
18006
18015
|
} : function(it) {
|
|
18007
18016
|
return it instanceof $Symbol;
|
|
18008
18017
|
};
|
|
18009
|
-
var $defineProperty = /* @__PURE__ */ __name(function
|
|
18018
|
+
var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
18010
18019
|
if (it === ObjectProto)
|
|
18011
18020
|
$defineProperty(OPSymbols, key, D2);
|
|
18012
18021
|
anObject(it);
|
|
@@ -18100,7 +18109,7 @@ if (!USE_NATIVE) {
|
|
|
18100
18109
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
18101
18110
|
$DP.f = $defineProperty;
|
|
18102
18111
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
18103
|
-
|
|
18112
|
+
_objectPie.f = $propertyIsEnumerable;
|
|
18104
18113
|
$GOPS.f = $getOwnPropertySymbols;
|
|
18105
18114
|
if (DESCRIPTORS && !_library) {
|
|
18106
18115
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -54095,7 +54104,7 @@ var KNOWN_STATICS = {
|
|
|
54095
54104
|
arguments: true,
|
|
54096
54105
|
arity: true
|
|
54097
54106
|
};
|
|
54098
|
-
var
|
|
54107
|
+
var defineProperty4 = Object.defineProperty;
|
|
54099
54108
|
var getOwnPropertyNames4 = Object.getOwnPropertyNames;
|
|
54100
54109
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
54101
54110
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
@@ -54118,7 +54127,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
54118
54127
|
if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
|
|
54119
54128
|
var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
|
|
54120
54129
|
try {
|
|
54121
|
-
|
|
54130
|
+
defineProperty4(targetComponent, key, descriptor2);
|
|
54122
54131
|
} catch (e2) {
|
|
54123
54132
|
}
|
|
54124
54133
|
}
|
|
@@ -60409,15 +60418,31 @@ function matchSchemas(_0) {
|
|
|
60409
60418
|
};
|
|
60410
60419
|
let csvValidationIssue = false;
|
|
60411
60420
|
const fuse = new Fuse(userSchema.fields, options);
|
|
60421
|
+
const matchedAltPaths = [];
|
|
60412
60422
|
officialSchema.fields.forEach((h2) => {
|
|
60413
60423
|
let hasMatch = false;
|
|
60414
60424
|
let result = fuse.search(h2.path) || [];
|
|
60425
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
60426
|
+
(uh) => norm(uh.path) === norm(h2.path)
|
|
60427
|
+
);
|
|
60415
60428
|
userSchema.fields.forEach((uh, i) => {
|
|
60416
60429
|
const pathMatch = norm(uh.path) === norm(h2.path);
|
|
60417
60430
|
const displayNameMatch = h2.displayName && norm(uh.path) === norm(getTextFromEl(h2.displayName));
|
|
60418
|
-
const hasAlternatePathMatch = h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).
|
|
60419
|
-
|
|
60431
|
+
const hasAlternatePathMatch = !hadNormalPathMatch && h2.alternatePathMatch && (lodashExports.isArray(h2.alternatePathMatch) ? h2.alternatePathMatch : [h2.alternatePathMatch]).find((alternatePathMatch) => {
|
|
60432
|
+
let altPath = alternatePathMatch;
|
|
60433
|
+
if (lodashExports.isPlainObject(alternatePathMatch)) {
|
|
60434
|
+
altPath = alternatePathMatch.path;
|
|
60435
|
+
}
|
|
60436
|
+
return norm(uh.path) === norm(altPath);
|
|
60420
60437
|
});
|
|
60438
|
+
if (hasAlternatePathMatch) {
|
|
60439
|
+
matchedAltPaths.push(
|
|
60440
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
60441
|
+
);
|
|
60442
|
+
if (hasAlternatePathMatch.format) {
|
|
60443
|
+
h2.format = hasAlternatePathMatch.format;
|
|
60444
|
+
}
|
|
60445
|
+
}
|
|
60421
60446
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
60422
60447
|
result = result.filter(({ path: path2 }) => path2 === uh.path);
|
|
60423
60448
|
result.unshift({
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { forEach, isArray, map, snakeCase } from "lodash";
|
|
1
|
+
import { forEach, isArray, isPlainObject, 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,25 +82,42 @@ async function matchSchemas({ userSchema, officialSchema }) {
|
|
|
82
82
|
let csvValidationIssue = false;
|
|
83
83
|
const fuse = new Fuse(userSchema.fields, options);
|
|
84
84
|
|
|
85
|
+
const matchedAltPaths = [];
|
|
85
86
|
officialSchema.fields.forEach(h => {
|
|
86
87
|
let hasMatch = false;
|
|
87
88
|
//run fuse search for results
|
|
88
89
|
let result = fuse.search(h.path) || [];
|
|
89
90
|
|
|
91
|
+
const hadNormalPathMatch = userSchema.fields.some(
|
|
92
|
+
uh => norm(uh.path) === norm(h.path)
|
|
93
|
+
);
|
|
90
94
|
//if there are any exact matches, push them onto the results array
|
|
91
95
|
userSchema.fields.forEach((uh, i) => {
|
|
92
96
|
const pathMatch = norm(uh.path) === norm(h.path);
|
|
93
97
|
const displayNameMatch =
|
|
94
98
|
h.displayName && norm(uh.path) === norm(getTextFromEl(h.displayName));
|
|
95
99
|
const hasAlternatePathMatch =
|
|
100
|
+
!hadNormalPathMatch &&
|
|
96
101
|
h.alternatePathMatch &&
|
|
97
102
|
(isArray(h.alternatePathMatch)
|
|
98
103
|
? h.alternatePathMatch
|
|
99
104
|
: [h.alternatePathMatch]
|
|
100
|
-
).
|
|
101
|
-
|
|
105
|
+
).find(alternatePathMatch => {
|
|
106
|
+
let altPath = alternatePathMatch;
|
|
107
|
+
if (isPlainObject(alternatePathMatch)) {
|
|
108
|
+
altPath = alternatePathMatch.path;
|
|
109
|
+
}
|
|
110
|
+
return norm(uh.path) === norm(altPath);
|
|
102
111
|
});
|
|
103
112
|
|
|
113
|
+
if (hasAlternatePathMatch) {
|
|
114
|
+
matchedAltPaths.push(
|
|
115
|
+
hasAlternatePathMatch.path || hasAlternatePathMatch
|
|
116
|
+
);
|
|
117
|
+
if (hasAlternatePathMatch.format) {
|
|
118
|
+
h.format = hasAlternatePathMatch.format;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
104
121
|
if (pathMatch || displayNameMatch || hasAlternatePathMatch) {
|
|
105
122
|
result = result.filter(({ path }) => path === uh.path);
|
|
106
123
|
//add a fake perfect match result to make sure we get the match
|