@rhc-shared-components/form-select-component 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +103 -147
- package/dist/index.modern.js +82 -108
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,52 +24,30 @@ function _interopNamespace(e) {
|
|
|
24
24
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
25
25
|
|
|
26
26
|
function _extends() {
|
|
27
|
-
_extends = Object.assign
|
|
28
|
-
for (var
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
for (var key in source) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
33
|
-
target[key] = source[key];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
27
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
28
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
29
|
+
var t = arguments[e];
|
|
30
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
36
31
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return _extends.apply(this, arguments);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function _inheritsLoose(subClass, superClass) {
|
|
45
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
46
|
-
subClass.prototype.constructor = subClass;
|
|
47
|
-
|
|
48
|
-
_setPrototypeOf(subClass, superClass);
|
|
32
|
+
return n;
|
|
33
|
+
}, _extends.apply(null, arguments);
|
|
49
34
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
-
o.__proto__ = p;
|
|
54
|
-
return o;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return _setPrototypeOf(o, p);
|
|
35
|
+
function _inheritsLoose(t, o) {
|
|
36
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
58
37
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
67
|
-
key = sourceKeys[i];
|
|
68
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
69
|
-
target[key] = source[key];
|
|
38
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
39
|
+
if (null == r) return {};
|
|
40
|
+
var t = {};
|
|
41
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
42
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
43
|
+
t[n] = r[n];
|
|
70
44
|
}
|
|
71
|
-
|
|
72
|
-
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
function _setPrototypeOf(t, e) {
|
|
48
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
49
|
+
return t.__proto__ = e, t;
|
|
50
|
+
}, _setPrototypeOf(t, e);
|
|
73
51
|
}
|
|
74
52
|
|
|
75
53
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -101,7 +79,7 @@ var lodash=createCommonjsModule(function(module,exports){(function(){/** Used as
|
|
|
101
79
|
'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',// Latin Extended-A block.
|
|
102
80
|
"\u0100":'A',"\u0102":'A',"\u0104":'A',"\u0101":'a',"\u0103":'a',"\u0105":'a',"\u0106":'C',"\u0108":'C',"\u010A":'C',"\u010C":'C',"\u0107":'c',"\u0109":'c',"\u010B":'c',"\u010D":'c',"\u010E":'D',"\u0110":'D',"\u010F":'d',"\u0111":'d',"\u0112":'E',"\u0114":'E',"\u0116":'E',"\u0118":'E',"\u011A":'E',"\u0113":'e',"\u0115":'e',"\u0117":'e',"\u0119":'e',"\u011B":'e',"\u011C":'G',"\u011E":'G',"\u0120":'G',"\u0122":'G',"\u011D":'g',"\u011F":'g',"\u0121":'g',"\u0123":'g',"\u0124":'H',"\u0126":'H',"\u0125":'h',"\u0127":'h',"\u0128":'I',"\u012A":'I',"\u012C":'I',"\u012E":'I',"\u0130":'I',"\u0129":'i',"\u012B":'i',"\u012D":'i',"\u012F":'i',"\u0131":'i',"\u0134":'J',"\u0135":'j',"\u0136":'K',"\u0137":'k',"\u0138":'k',"\u0139":'L',"\u013B":'L',"\u013D":'L',"\u013F":'L',"\u0141":'L',"\u013A":'l',"\u013C":'l',"\u013E":'l',"\u0140":'l',"\u0142":'l',"\u0143":'N',"\u0145":'N',"\u0147":'N',"\u014A":'N',"\u0144":'n',"\u0146":'n',"\u0148":'n',"\u014B":'n',"\u014C":'O',"\u014E":'O',"\u0150":'O',"\u014D":'o',"\u014F":'o',"\u0151":'o',"\u0154":'R',"\u0156":'R',"\u0158":'R',"\u0155":'r',"\u0157":'r',"\u0159":'r',"\u015A":'S',"\u015C":'S',"\u015E":'S',"\u0160":'S',"\u015B":'s',"\u015D":'s',"\u015F":'s',"\u0161":'s',"\u0162":'T',"\u0164":'T',"\u0166":'T',"\u0163":'t',"\u0165":'t',"\u0167":'t',"\u0168":'U',"\u016A":'U',"\u016C":'U',"\u016E":'U',"\u0170":'U',"\u0172":'U',"\u0169":'u',"\u016B":'u',"\u016D":'u',"\u016F":'u',"\u0171":'u',"\u0173":'u',"\u0174":'W',"\u0175":'w',"\u0176":'Y',"\u0177":'y',"\u0178":'Y',"\u0179":'Z',"\u017B":'Z',"\u017D":'Z',"\u017A":'z',"\u017C":'z',"\u017E":'z',"\u0132":'IJ',"\u0133":'ij',"\u0152":'Oe',"\u0153":'oe',"\u0149":"'n","\u017F":'s'};/** Used to map characters to HTML entities. */var htmlEscapes={'&':'&','<':'<','>':'>','"':'"',"'":'''};/** Used to map HTML entities to characters. */var htmlUnescapes={'&':'&','<':'<','>':'>','"':'"',''':"'"};/** Used to escape characters for inclusion in compiled string literals. */var stringEscapes={'\\':'\\',"'":"'",'\n':'n','\r':'r',"\u2028":'u2028',"\u2029":'u2029'};/** Built-in method references without a dependency on `root`. */var freeParseFloat=parseFloat,freeParseInt=parseInt;/** Detect free variable `global` from Node.js. */var freeGlobal=typeof commonjsGlobal=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=typeof self=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
|
|
103
81
|
var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
|
|
104
|
-
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray
|
|
82
|
+
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/*--------------------------------------------------------------------------*//**
|
|
105
83
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
106
84
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
107
85
|
*
|
|
@@ -529,7 +507,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
529
507
|
* @private
|
|
530
508
|
* @param {string} The string to inspect.
|
|
531
509
|
* @returns {Array} Returns the words of `string`.
|
|
532
|
-
*/function unicodeWords(string){return string.match(reUnicodeWord)||[];}
|
|
510
|
+
*/function unicodeWords(string){return string.match(reUnicodeWord)||[];}/*--------------------------------------------------------------------------*//**
|
|
533
511
|
* Create a new pristine `lodash` function using the `context` object.
|
|
534
512
|
*
|
|
535
513
|
* @static
|
|
@@ -561,7 +539,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
561
539
|
* Used to resolve the
|
|
562
540
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
563
541
|
* of values.
|
|
564
|
-
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1
|
|
542
|
+
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1;/*------------------------------------------------------------------------*//**
|
|
565
543
|
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
566
544
|
* chain sequences. Methods that operate on and return arrays, collections,
|
|
567
545
|
* and functions can be chained together. Methods that retrieve a single value
|
|
@@ -734,7 +712,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
734
712
|
* @memberOf _.templateSettings.imports
|
|
735
713
|
* @type {Function}
|
|
736
714
|
*/'_':lodash}};// Ensure wrappers are instances of `baseLodash`.
|
|
737
|
-
lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper
|
|
715
|
+
lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;/*------------------------------------------------------------------------*//**
|
|
738
716
|
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
|
|
739
717
|
*
|
|
740
718
|
* @private
|
|
@@ -762,7 +740,7 @@ lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;Lodash
|
|
|
762
740
|
* @memberOf LazyWrapper
|
|
763
741
|
* @returns {*} Returns the unwrapped value.
|
|
764
742
|
*/function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else {break outer;}}}result[resIndex++]=value;}return result;}// Ensure `LazyWrapper` is an instance of `baseLodash`.
|
|
765
|
-
LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper
|
|
743
|
+
LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;/*------------------------------------------------------------------------*//**
|
|
766
744
|
* Creates a hash object.
|
|
767
745
|
*
|
|
768
746
|
* @private
|
|
@@ -809,7 +787,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con
|
|
|
809
787
|
* @param {*} value The value to set.
|
|
810
788
|
* @returns {Object} Returns the hash instance.
|
|
811
789
|
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined$1?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
812
|
-
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet
|
|
790
|
+
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/*------------------------------------------------------------------------*//**
|
|
813
791
|
* Creates an list cache object.
|
|
814
792
|
*
|
|
815
793
|
* @private
|
|
@@ -855,7 +833,7 @@ Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototyp
|
|
|
855
833
|
* @param {*} value The value to set.
|
|
856
834
|
* @returns {Object} Returns the list cache instance.
|
|
857
835
|
*/function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else {data[index][1]=value;}return this;}// Add methods to `ListCache`.
|
|
858
|
-
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet
|
|
836
|
+
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/*------------------------------------------------------------------------*//**
|
|
859
837
|
* Creates a map cache object to store key-value pairs.
|
|
860
838
|
*
|
|
861
839
|
* @private
|
|
@@ -901,7 +879,7 @@ ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCache
|
|
|
901
879
|
* @param {*} value The value to set.
|
|
902
880
|
* @returns {Object} Returns the map cache instance.
|
|
903
881
|
*/function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}// Add methods to `MapCache`.
|
|
904
|
-
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet
|
|
882
|
+
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/*------------------------------------------------------------------------*//**
|
|
905
883
|
*
|
|
906
884
|
* Creates an array cache object to store unique values.
|
|
907
885
|
*
|
|
@@ -926,7 +904,7 @@ MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDele
|
|
|
926
904
|
* @param {*} value The value to search for.
|
|
927
905
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
928
906
|
*/function setCacheHas(value){return this.__data__.has(value);}// Add methods to `SetCache`.
|
|
929
|
-
SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas
|
|
907
|
+
SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/*------------------------------------------------------------------------*//**
|
|
930
908
|
* Creates a stack cache object to store key-value pairs.
|
|
931
909
|
*
|
|
932
910
|
* @private
|
|
@@ -972,7 +950,7 @@ SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.ha
|
|
|
972
950
|
* @param {*} value The value to set.
|
|
973
951
|
* @returns {Object} Returns the stack cache instance.
|
|
974
952
|
*/function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}// Add methods to `Stack`.
|
|
975
|
-
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet
|
|
953
|
+
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/*------------------------------------------------------------------------*//**
|
|
976
954
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
977
955
|
*
|
|
978
956
|
* @private
|
|
@@ -2545,7 +2523,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
2545
2523
|
* @private
|
|
2546
2524
|
* @param {Object} wrapper The wrapper to clone.
|
|
2547
2525
|
* @returns {Object} Returns the cloned wrapper.
|
|
2548
|
-
*/function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper){return wrapper.clone();}var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result;}
|
|
2526
|
+
*/function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper){return wrapper.clone();}var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result;}/*------------------------------------------------------------------------*//**
|
|
2549
2527
|
* Creates an array of elements split into groups the length of `size`.
|
|
2550
2528
|
* If `array` can't be split evenly, the final chunk will be the remaining
|
|
2551
2529
|
* elements.
|
|
@@ -3850,7 +3828,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
3850
3828
|
* return a + b + c;
|
|
3851
3829
|
* });
|
|
3852
3830
|
* // => [111, 222]
|
|
3853
|
-
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);})
|
|
3831
|
+
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*//**
|
|
3854
3832
|
* Creates a `lodash` wrapper instance that wraps `value` with explicit method
|
|
3855
3833
|
* chain sequences enabled. The result of such sequences must be unwrapped
|
|
3856
3834
|
* with `_#value`.
|
|
@@ -4081,7 +4059,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4081
4059
|
*
|
|
4082
4060
|
* _([1, 2, 3]).value();
|
|
4083
4061
|
* // => [1, 2, 3]
|
|
4084
|
-
*/function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}
|
|
4062
|
+
*/function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}/*------------------------------------------------------------------------*//**
|
|
4085
4063
|
* Creates an object composed of keys generated from the results of running
|
|
4086
4064
|
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
4087
4065
|
* each key is the number of times the key was returned by `iteratee`. The
|
|
@@ -4765,7 +4743,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4765
4743
|
*
|
|
4766
4744
|
* _.sortBy(users, ['user', 'age']);
|
|
4767
4745
|
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
4768
|
-
*/var sortBy=baseRest(function(collection,iteratees){if(collection==null){return [];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);})
|
|
4746
|
+
*/var sortBy=baseRest(function(collection,iteratees){if(collection==null){return [];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});/*------------------------------------------------------------------------*//**
|
|
4769
4747
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
4770
4748
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
4771
4749
|
*
|
|
@@ -4780,7 +4758,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4780
4758
|
* console.log(_.now() - stamp);
|
|
4781
4759
|
* }, _.now());
|
|
4782
4760
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
4783
|
-
*/var now=ctxNow||function(){return root.Date.now();}
|
|
4761
|
+
*/var now=ctxNow||function(){return root.Date.now();};/*------------------------------------------------------------------------*//**
|
|
4784
4762
|
* The opposite of `_.before`; this method creates a function that invokes
|
|
4785
4763
|
* `func` once it's called `n` or more times.
|
|
4786
4764
|
*
|
|
@@ -5148,7 +5126,7 @@ clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(la
|
|
|
5148
5126
|
*
|
|
5149
5127
|
* // Replace `_.memoize.Cache`.
|
|
5150
5128
|
* _.memoize.Cache = WeakMap;
|
|
5151
|
-
*/function memoize(func,resolver){if(typeof func!='function'||resolver!=null&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var
|
|
5129
|
+
*/function memoize(func,resolver){if(typeof func!='function'||resolver!=null&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);_memoized.cache=cache.set(key,result)||cache;return result;};_memoized.cache=new(memoize.Cache||MapCache)();return _memoized;}// Expose `MapCache`.
|
|
5152
5130
|
memoize.Cache=MapCache;/**
|
|
5153
5131
|
* Creates a function that negates the result of the predicate `func`. The
|
|
5154
5132
|
* `func` predicate is invoked with the `this` binding and arguments of the
|
|
@@ -5434,7 +5412,7 @@ memoize.Cache=MapCache;/**
|
|
|
5434
5412
|
*
|
|
5435
5413
|
* p('fred, barney, & pebbles');
|
|
5436
5414
|
* // => '<p>fred, barney, & pebbles</p>'
|
|
5437
|
-
*/function wrap(value,wrapper){return partial(castFunction(wrapper),value);}
|
|
5415
|
+
*/function wrap(value,wrapper){return partial(castFunction(wrapper),value);}/*------------------------------------------------------------------------*//**
|
|
5438
5416
|
* Casts `value` as an array if it's not one.
|
|
5439
5417
|
*
|
|
5440
5418
|
* @static
|
|
@@ -6674,7 +6652,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
6674
6652
|
*
|
|
6675
6653
|
* _.toString([1, 2, 3]);
|
|
6676
6654
|
* // => '1,2,3'
|
|
6677
|
-
*/function toString(value){return value==null?'':baseToString(value);}
|
|
6655
|
+
*/function toString(value){return value==null?'':baseToString(value);}/*------------------------------------------------------------------------*//**
|
|
6678
6656
|
* Assigns own enumerable string keyed properties of source objects to the
|
|
6679
6657
|
* destination object. Source objects are applied from left to right.
|
|
6680
6658
|
* Subsequent sources overwrite property assignments of previous sources.
|
|
@@ -7731,7 +7709,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
|
|
|
7731
7709
|
*
|
|
7732
7710
|
* _.valuesIn(new Foo);
|
|
7733
7711
|
* // => [1, 2, 3] (iteration order is not guaranteed)
|
|
7734
|
-
*/function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}
|
|
7712
|
+
*/function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}/*------------------------------------------------------------------------*//**
|
|
7735
7713
|
* Clamps `number` within the inclusive `lower` and `upper` bounds.
|
|
7736
7714
|
*
|
|
7737
7715
|
* @static
|
|
@@ -7816,7 +7794,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
|
|
|
7816
7794
|
*
|
|
7817
7795
|
* _.random(1.2, 5.2);
|
|
7818
7796
|
* // => a floating-point number between 1.2 and 5.2
|
|
7819
|
-
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}
|
|
7797
|
+
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*//**
|
|
7820
7798
|
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
7821
7799
|
*
|
|
7822
7800
|
* @static
|
|
@@ -8519,7 +8497,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
8519
8497
|
*
|
|
8520
8498
|
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
8521
8499
|
* // => ['fred', 'barney', '&', 'pebbles']
|
|
8522
|
-
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}
|
|
8500
|
+
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}/*------------------------------------------------------------------------*//**
|
|
8523
8501
|
* Attempts to invoke `func`, returning either the result or the caught error
|
|
8524
8502
|
* object. Any additional arguments are provided to `func` when it's invoked.
|
|
8525
8503
|
*
|
|
@@ -9249,7 +9227,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
9249
9227
|
*
|
|
9250
9228
|
* _.uniqueId();
|
|
9251
9229
|
* // => '105'
|
|
9252
|
-
*/function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id;}
|
|
9230
|
+
*/function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id;}/*------------------------------------------------------------------------*//**
|
|
9253
9231
|
* Adds two numbers.
|
|
9254
9232
|
*
|
|
9255
9233
|
* @static
|
|
@@ -9513,12 +9491,12 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
9513
9491
|
* // The `_.property` iteratee shorthand.
|
|
9514
9492
|
* _.sumBy(objects, 'n');
|
|
9515
9493
|
* // => 20
|
|
9516
|
-
*/function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0;}
|
|
9494
|
+
*/function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0;}/*------------------------------------------------------------------------*/// Add methods that return wrapped values in chain sequences.
|
|
9517
9495
|
lodash.after=after;lodash.ary=ary;lodash.assign=assign;lodash.assignIn=assignIn;lodash.assignInWith=assignInWith;lodash.assignWith=assignWith;lodash.at=at;lodash.before=before;lodash.bind=bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.castArray=castArray;lodash.chain=chain;lodash.chunk=chunk;lodash.compact=compact;lodash.concat=concat;lodash.cond=cond;lodash.conforms=conforms;lodash.constant=constant;lodash.countBy=countBy;lodash.create=create;lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defaultsDeep=defaultsDeep;lodash.defer=defer;lodash.delay=delay;lodash.difference=difference;lodash.differenceBy=differenceBy;lodash.differenceWith=differenceWith;lodash.drop=drop;lodash.dropRight=dropRight;lodash.dropRightWhile=dropRightWhile;lodash.dropWhile=dropWhile;lodash.fill=fill;lodash.filter=filter;lodash.flatMap=flatMap;lodash.flatMapDeep=flatMapDeep;lodash.flatMapDepth=flatMapDepth;lodash.flatten=flatten;lodash.flattenDeep=flattenDeep;lodash.flattenDepth=flattenDepth;lodash.flip=flip;lodash.flow=flow;lodash.flowRight=flowRight;lodash.fromPairs=fromPairs;lodash.functions=functions;lodash.functionsIn=functionsIn;lodash.groupBy=groupBy;lodash.initial=initial;lodash.intersection=intersection;lodash.intersectionBy=intersectionBy;lodash.intersectionWith=intersectionWith;lodash.invert=invert;lodash.invertBy=invertBy;lodash.invokeMap=invokeMap;lodash.iteratee=iteratee;lodash.keyBy=keyBy;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map;lodash.mapKeys=mapKeys;lodash.mapValues=mapValues;lodash.matches=matches;lodash.matchesProperty=matchesProperty;lodash.memoize=memoize;lodash.merge=merge;lodash.mergeWith=mergeWith;lodash.method=method;lodash.methodOf=methodOf;lodash.mixin=mixin;lodash.negate=negate;lodash.nthArg=nthArg;lodash.omit=omit;lodash.omitBy=omitBy;lodash.once=once;lodash.orderBy=orderBy;lodash.over=over;lodash.overArgs=overArgs;lodash.overEvery=overEvery;lodash.overSome=overSome;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pickBy=pickBy;lodash.property=property;lodash.propertyOf=propertyOf;lodash.pull=pull;lodash.pullAll=pullAll;lodash.pullAllBy=pullAllBy;lodash.pullAllWith=pullAllWith;lodash.pullAt=pullAt;lodash.range=range;lodash.rangeRight=rangeRight;lodash.rearg=rearg;lodash.reject=reject;lodash.remove=remove;lodash.rest=rest;lodash.reverse=reverse;lodash.sampleSize=sampleSize;lodash.set=set;lodash.setWith=setWith;lodash.shuffle=shuffle;lodash.slice=slice;lodash.sortBy=sortBy;lodash.sortedUniq=sortedUniq;lodash.sortedUniqBy=sortedUniqBy;lodash.split=split;lodash.spread=spread;lodash.tail=tail;lodash.take=take;lodash.takeRight=takeRight;lodash.takeRightWhile=takeRightWhile;lodash.takeWhile=takeWhile;lodash.tap=tap;lodash.throttle=throttle;lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=toPairs;lodash.toPairsIn=toPairsIn;lodash.toPath=toPath;lodash.toPlainObject=toPlainObject;lodash.transform=transform;lodash.unary=unary;lodash.union=union;lodash.unionBy=unionBy;lodash.unionWith=unionWith;lodash.uniq=uniq;lodash.uniqBy=uniqBy;lodash.uniqWith=uniqWith;lodash.unset=unset;lodash.unzip=unzip;lodash.unzipWith=unzipWith;lodash.update=update;lodash.updateWith=updateWith;lodash.values=values;lodash.valuesIn=valuesIn;lodash.without=without;lodash.words=words;lodash.wrap=wrap;lodash.xor=xor;lodash.xorBy=xorBy;lodash.xorWith=xorWith;lodash.zip=zip;lodash.zipObject=zipObject;lodash.zipObjectDeep=zipObjectDeep;lodash.zipWith=zipWith;// Add aliases.
|
|
9518
9496
|
lodash.entries=toPairs;lodash.entriesIn=toPairsIn;lodash.extend=assignIn;lodash.extendWith=assignInWith;// Add methods to `lodash.prototype`.
|
|
9519
|
-
mixin(lodash,lodash)
|
|
9497
|
+
mixin(lodash,lodash);/*------------------------------------------------------------------------*/// Add methods that return unwrapped values in chain sequences.
|
|
9520
9498
|
lodash.add=add;lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.ceil=ceil;lodash.clamp=clamp;lodash.clone=clone;lodash.cloneDeep=cloneDeep;lodash.cloneDeepWith=cloneDeepWith;lodash.cloneWith=cloneWith;lodash.conformsTo=conformsTo;lodash.deburr=deburr;lodash.defaultTo=defaultTo;lodash.divide=divide;lodash.endsWith=endsWith;lodash.eq=eq;lodash.escape=escape;lodash.escapeRegExp=escapeRegExp;lodash.every=every;lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=findKey;lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=findLastKey;lodash.floor=floor;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=forIn;lodash.forInRight=forInRight;lodash.forOwn=forOwn;lodash.forOwnRight=forOwnRight;lodash.get=get;lodash.gt=gt;lodash.gte=gte;lodash.has=has;lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=includes;lodash.indexOf=indexOf;lodash.inRange=inRange;lodash.invoke=invoke;lodash.isArguments=isArguments;lodash.isArray=isArray;lodash.isArrayBuffer=isArrayBuffer;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=isBoolean;lodash.isBuffer=isBuffer;lodash.isDate=isDate;lodash.isElement=isElement;lodash.isEmpty=isEmpty;lodash.isEqual=isEqual;lodash.isEqualWith=isEqualWith;lodash.isError=isError;lodash.isFinite=isFinite;lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=isMap;lodash.isMatch=isMatch;lodash.isMatchWith=isMatchWith;lodash.isNaN=isNaN;lodash.isNative=isNative;lodash.isNil=isNil;lodash.isNull=isNull;lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isSafeInteger=isSafeInteger;lodash.isSet=isSet;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=isTypedArray;lodash.isUndefined=isUndefined;lodash.isWeakMap=isWeakMap;lodash.isWeakSet=isWeakSet;lodash.join=join;lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=lastIndexOf;lodash.lowerCase=lowerCase;lodash.lowerFirst=lowerFirst;lodash.lt=lt;lodash.lte=lte;lodash.max=max;lodash.maxBy=maxBy;lodash.mean=mean;lodash.meanBy=meanBy;lodash.min=min;lodash.minBy=minBy;lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=stubObject;lodash.stubString=stubString;lodash.stubTrue=stubTrue;lodash.multiply=multiply;lodash.nth=nth;lodash.noConflict=noConflict;lodash.noop=noop;lodash.now=now;lodash.pad=pad;lodash.padEnd=padEnd;lodash.padStart=padStart;lodash.parseInt=parseInt;lodash.random=random;lodash.reduce=reduce;lodash.reduceRight=reduceRight;lodash.repeat=repeat;lodash.replace=replace;lodash.result=result;lodash.round=round;lodash.runInContext=runInContext;lodash.sample=sample;lodash.size=size;lodash.snakeCase=snakeCase;lodash.some=some;lodash.sortedIndex=sortedIndex;lodash.sortedIndexBy=sortedIndexBy;lodash.sortedIndexOf=sortedIndexOf;lodash.sortedLastIndex=sortedLastIndex;lodash.sortedLastIndexBy=sortedLastIndexBy;lodash.sortedLastIndexOf=sortedLastIndexOf;lodash.startCase=startCase;lodash.startsWith=startsWith;lodash.subtract=subtract;lodash.sum=sum;lodash.sumBy=sumBy;lodash.template=template;lodash.times=times;lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=toLower;lodash.toNumber=toNumber;lodash.toSafeInteger=toSafeInteger;lodash.toString=toString;lodash.toUpper=toUpper;lodash.trim=trim;lodash.trimEnd=trimEnd;lodash.trimStart=trimStart;lodash.truncate=truncate;lodash.unescape=unescape;lodash.uniqueId=uniqueId;lodash.upperCase=upperCase;lodash.upperFirst=upperFirst;// Add aliases.
|
|
9521
|
-
lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!hasOwnProperty.call(lodash.prototype,methodName)){source[methodName]=func;}});return source;}(),{'chain':false})
|
|
9499
|
+
lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!hasOwnProperty.call(lodash.prototype,methodName)){source[methodName]=func;}});return source;}(),{'chain':false});/*------------------------------------------------------------------------*//**
|
|
9522
9500
|
* The semantic version number.
|
|
9523
9501
|
*
|
|
9524
9502
|
* @static
|
|
@@ -9536,76 +9514,68 @@ arrayEach(['pop','push','shift','sort','splice','unshift'],function(methodName){
|
|
|
9536
9514
|
baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+'';if(!hasOwnProperty.call(realNames,key)){realNames[key]=[];}realNames[key].push({'name':methodName,'func':lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{'name':'wrapper','func':undefined$1}];// Add methods to `LazyWrapper`.
|
|
9537
9515
|
LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;// Add chain sequence methods to the `lodash` wrapper.
|
|
9538
9516
|
lodash.prototype.at=wrapperAt;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;// Add lazy aliases.
|
|
9539
|
-
lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;}
|
|
9517
|
+
lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;};/*--------------------------------------------------------------------------*/// Export lodash.
|
|
9540
9518
|
var _=runInContext();// Some AMD build optimizers, like r.js, check for condition patterns like:
|
|
9541
9519
|
if(freeModule){// Export for Node.js.
|
|
9542
9520
|
(freeModule.exports=_)._=_;// Export for CommonJS support.
|
|
9543
9521
|
freeExports._=_;}else {// Export to the global object.
|
|
9544
9522
|
root._=_;}}).call(commonjsGlobal);});
|
|
9545
9523
|
|
|
9546
|
-
|
|
9547
|
-
Copyright (c) Microsoft Corporation.
|
|
9548
|
-
|
|
9549
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
9550
|
-
purpose with or without fee is hereby granted.
|
|
9551
|
-
|
|
9552
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9553
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9554
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9555
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
9556
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
9557
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
9558
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
9524
|
+
/******************************************************************************
|
|
9525
|
+
Copyright (c) Microsoft Corporation.
|
|
9526
|
+
|
|
9527
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9528
|
+
purpose with or without fee is hereby granted.
|
|
9529
|
+
|
|
9530
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9531
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9532
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9533
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
9534
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
9535
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
9536
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
9559
9537
|
***************************************************************************** */
|
|
9560
9538
|
function __rest(s, e) {
|
|
9561
9539
|
var t = {};
|
|
9562
|
-
|
|
9563
|
-
for (var p in s) {
|
|
9564
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9565
|
-
}
|
|
9566
|
-
|
|
9540
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9567
9541
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9568
9542
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9569
9543
|
}
|
|
9570
9544
|
return t;
|
|
9571
9545
|
}
|
|
9546
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
9547
|
+
var e = new Error(message);
|
|
9548
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
9549
|
+
};
|
|
9572
9550
|
|
|
9573
9551
|
var currentId = 0;
|
|
9574
9552
|
/**
|
|
9575
9553
|
* Factory to create Icon class components for consumers
|
|
9576
9554
|
*/
|
|
9577
|
-
|
|
9578
9555
|
function createIcon(_ref) {
|
|
9579
9556
|
var name = _ref.name,
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9557
|
+
_ref$xOffset = _ref.xOffset,
|
|
9558
|
+
xOffset = _ref$xOffset === void 0 ? 0 : _ref$xOffset,
|
|
9559
|
+
_ref$yOffset = _ref.yOffset,
|
|
9560
|
+
yOffset = _ref$yOffset === void 0 ? 0 : _ref$yOffset,
|
|
9561
|
+
width = _ref.width,
|
|
9562
|
+
height = _ref.height,
|
|
9563
|
+
svgPath = _ref.svgPath;
|
|
9588
9564
|
var _a;
|
|
9589
|
-
|
|
9590
9565
|
return _a = /*#__PURE__*/function (_React$Component) {
|
|
9591
|
-
_inheritsLoose(SVGIcon, _React$Component);
|
|
9592
|
-
|
|
9593
9566
|
function SVGIcon() {
|
|
9594
9567
|
var _this;
|
|
9595
|
-
|
|
9596
9568
|
_this = _React$Component.apply(this, arguments) || this;
|
|
9597
9569
|
_this.id = "icon-title-" + currentId++;
|
|
9598
9570
|
return _this;
|
|
9599
9571
|
}
|
|
9600
|
-
|
|
9572
|
+
_inheritsLoose(SVGIcon, _React$Component);
|
|
9601
9573
|
var _proto = SVGIcon.prototype;
|
|
9602
|
-
|
|
9603
9574
|
_proto.render = function render() {
|
|
9604
|
-
var
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9575
|
+
var _b = this.props,
|
|
9576
|
+
title = _b.title,
|
|
9577
|
+
className = _b.className,
|
|
9578
|
+
props = __rest(_b, ["title", "className"]);
|
|
9609
9579
|
var classes = className ? "pf-v5-svg " + className : 'pf-v5-svg';
|
|
9610
9580
|
var hasTitle = Boolean(title);
|
|
9611
9581
|
var viewBox = [xOffset, yOffset, width, height].join(' ');
|
|
@@ -9624,7 +9594,6 @@ function createIcon(_ref) {
|
|
|
9624
9594
|
d: svgPath
|
|
9625
9595
|
}));
|
|
9626
9596
|
};
|
|
9627
|
-
|
|
9628
9597
|
return SVGIcon;
|
|
9629
9598
|
}(React__namespace.Component), _a.displayName = name, _a;
|
|
9630
9599
|
}
|
|
@@ -9640,57 +9609,43 @@ var InfoCircleIconConfig = {
|
|
|
9640
9609
|
var InfoCircleIcon = createIcon(InfoCircleIconConfig);
|
|
9641
9610
|
|
|
9642
9611
|
var _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight", "isDisabled"];
|
|
9643
|
-
|
|
9644
9612
|
var FormSelect = function FormSelect(_ref) {
|
|
9645
9613
|
var label = _ref.label,
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9614
|
+
isRequired = _ref.isRequired,
|
|
9615
|
+
selectOptions = _ref.selectOptions,
|
|
9616
|
+
_ref$ariaLabel = _ref.ariaLabel,
|
|
9617
|
+
ariaLabel = _ref$ariaLabel === void 0 ? 'Select Input' : _ref$ariaLabel,
|
|
9618
|
+
_ref$placeholder = _ref.placeholder,
|
|
9619
|
+
placeholder = _ref$placeholder === void 0 ? 'Select a value' : _ref$placeholder,
|
|
9620
|
+
helperText = _ref.helperText,
|
|
9621
|
+
subLabel = _ref.subLabel,
|
|
9622
|
+
subInfo = _ref.subInfo,
|
|
9623
|
+
onChange = _ref.onChange,
|
|
9624
|
+
extraProps = _ref.extraProps,
|
|
9625
|
+
selectOptionExtraProps = _ref.selectOptionExtraProps,
|
|
9626
|
+
isFullWidth = _ref.isFullWidth,
|
|
9627
|
+
isFullHeight = _ref.isFullHeight,
|
|
9628
|
+
isDisabled = _ref.isDisabled,
|
|
9629
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
9663
9630
|
var _useField = formik.useField(rest),
|
|
9664
|
-
|
|
9665
|
-
|
|
9631
|
+
meta = _useField[1];
|
|
9666
9632
|
var value = meta.value;
|
|
9667
|
-
|
|
9668
9633
|
var _useFormikContext = formik.useFormikContext(),
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9634
|
+
isSubmitting = _useFormikContext.isSubmitting,
|
|
9635
|
+
setFieldValue = _useFormikContext.setFieldValue,
|
|
9636
|
+
validateField = _useFormikContext.validateField;
|
|
9673
9637
|
var _React$useState = React__namespace.useState(false),
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
var selectRef = React__namespace.useRef(null);
|
|
9678
|
-
|
|
9638
|
+
isOpen = _React$useState[0],
|
|
9639
|
+
setIsOpen = _React$useState[1];
|
|
9679
9640
|
var onToggle = function onToggle() {
|
|
9680
9641
|
setIsOpen(!isOpen);
|
|
9681
9642
|
};
|
|
9682
|
-
|
|
9683
9643
|
var onSelect = function onSelect(_event, selection) {
|
|
9684
|
-
var _selectRef$current, _selectRef$current$pa, _selectRef$current$pa2;
|
|
9685
|
-
|
|
9686
9644
|
if (onChange) onChange(_event, selection);
|
|
9687
9645
|
setFieldValue(rest.name, selection);
|
|
9688
9646
|
validateField(rest.name);
|
|
9689
|
-
onToggle();
|
|
9690
|
-
|
|
9691
|
-
selectRef == null ? void 0 : (_selectRef$current = selectRef.current) == null ? void 0 : (_selectRef$current$pa = _selectRef$current.parentNode) == null ? void 0 : (_selectRef$current$pa2 = _selectRef$current$pa.querySelector('button')) == null ? void 0 : _selectRef$current$pa2.focus();
|
|
9647
|
+
onToggle();
|
|
9692
9648
|
};
|
|
9693
|
-
|
|
9694
9649
|
var toggle = function toggle(toggleRef) {
|
|
9695
9650
|
return React__namespace.createElement(reactCore.MenuToggle, {
|
|
9696
9651
|
ref: toggleRef,
|
|
@@ -9698,10 +9653,11 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
9698
9653
|
isExpanded: isOpen,
|
|
9699
9654
|
isFullWidth: isFullWidth,
|
|
9700
9655
|
isFullHeight: isFullHeight,
|
|
9701
|
-
isDisabled: isSubmitting || isDisabled
|
|
9656
|
+
isDisabled: isSubmitting || isDisabled,
|
|
9657
|
+
"aria-required": isRequired,
|
|
9658
|
+
"aria-label": isRequired ? label + ", required" : label
|
|
9702
9659
|
}, value || placeholder);
|
|
9703
9660
|
};
|
|
9704
|
-
|
|
9705
9661
|
return React__namespace.createElement(formGroupContainer.FormGroupContainer, {
|
|
9706
9662
|
validated: meta.touched && meta.error ? reactCore.ValidatedOptions.error : reactCore.ValidatedOptions["default"],
|
|
9707
9663
|
helperTextInvalid: meta.error,
|
|
@@ -9731,7 +9687,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
9731
9687
|
onOpenChange: function onOpenChange() {
|
|
9732
9688
|
return setIsOpen(!isOpen);
|
|
9733
9689
|
},
|
|
9734
|
-
|
|
9690
|
+
shouldFocusToggleOnSelect: true
|
|
9735
9691
|
}, extraProps && _extends({}, extraProps), rest), React__namespace.createElement(reactCore.SelectList, null, lodash.map(selectOptions, function (option, index) {
|
|
9736
9692
|
return React__namespace.createElement(reactCore.SelectOption, _extends({
|
|
9737
9693
|
key: index,
|
package/dist/index.modern.js
CHANGED
|
@@ -4,36 +4,22 @@ import { ValidatedOptions, Split, SplitItem, Select, SelectList, SelectOption, M
|
|
|
4
4
|
import { FormGroupContainer } from '@rhc-shared-components/form-group-container';
|
|
5
5
|
|
|
6
6
|
function _extends() {
|
|
7
|
-
_extends = Object.assign
|
|
8
|
-
for (var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
for (var key in source) {
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
7
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
8
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
9
|
+
var t = arguments[e];
|
|
10
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
16
11
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
12
|
+
return n;
|
|
13
|
+
}, _extends.apply(null, arguments);
|
|
22
14
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
31
|
-
key = sourceKeys[i];
|
|
32
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
33
|
-
target[key] = source[key];
|
|
15
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
16
|
+
if (null == r) return {};
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
19
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
20
|
+
t[n] = r[n];
|
|
34
21
|
}
|
|
35
|
-
|
|
36
|
-
return target;
|
|
22
|
+
return t;
|
|
37
23
|
}
|
|
38
24
|
|
|
39
25
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -65,7 +51,7 @@ var lodash=createCommonjsModule(function(module,exports){(function(){/** Used as
|
|
|
65
51
|
'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',// Latin Extended-A block.
|
|
66
52
|
'\u0100':'A','\u0102':'A','\u0104':'A','\u0101':'a','\u0103':'a','\u0105':'a','\u0106':'C','\u0108':'C','\u010a':'C','\u010c':'C','\u0107':'c','\u0109':'c','\u010b':'c','\u010d':'c','\u010e':'D','\u0110':'D','\u010f':'d','\u0111':'d','\u0112':'E','\u0114':'E','\u0116':'E','\u0118':'E','\u011a':'E','\u0113':'e','\u0115':'e','\u0117':'e','\u0119':'e','\u011b':'e','\u011c':'G','\u011e':'G','\u0120':'G','\u0122':'G','\u011d':'g','\u011f':'g','\u0121':'g','\u0123':'g','\u0124':'H','\u0126':'H','\u0125':'h','\u0127':'h','\u0128':'I','\u012a':'I','\u012c':'I','\u012e':'I','\u0130':'I','\u0129':'i','\u012b':'i','\u012d':'i','\u012f':'i','\u0131':'i','\u0134':'J','\u0135':'j','\u0136':'K','\u0137':'k','\u0138':'k','\u0139':'L','\u013b':'L','\u013d':'L','\u013f':'L','\u0141':'L','\u013a':'l','\u013c':'l','\u013e':'l','\u0140':'l','\u0142':'l','\u0143':'N','\u0145':'N','\u0147':'N','\u014a':'N','\u0144':'n','\u0146':'n','\u0148':'n','\u014b':'n','\u014c':'O','\u014e':'O','\u0150':'O','\u014d':'o','\u014f':'o','\u0151':'o','\u0154':'R','\u0156':'R','\u0158':'R','\u0155':'r','\u0157':'r','\u0159':'r','\u015a':'S','\u015c':'S','\u015e':'S','\u0160':'S','\u015b':'s','\u015d':'s','\u015f':'s','\u0161':'s','\u0162':'T','\u0164':'T','\u0166':'T','\u0163':'t','\u0165':'t','\u0167':'t','\u0168':'U','\u016a':'U','\u016c':'U','\u016e':'U','\u0170':'U','\u0172':'U','\u0169':'u','\u016b':'u','\u016d':'u','\u016f':'u','\u0171':'u','\u0173':'u','\u0174':'W','\u0175':'w','\u0176':'Y','\u0177':'y','\u0178':'Y','\u0179':'Z','\u017b':'Z','\u017d':'Z','\u017a':'z','\u017c':'z','\u017e':'z','\u0132':'IJ','\u0133':'ij','\u0152':'Oe','\u0153':'oe','\u0149':"'n",'\u017f':'s'};/** Used to map characters to HTML entities. */var htmlEscapes={'&':'&','<':'<','>':'>','"':'"',"'":'''};/** Used to map HTML entities to characters. */var htmlUnescapes={'&':'&','<':'<','>':'>','"':'"',''':"'"};/** Used to escape characters for inclusion in compiled string literals. */var stringEscapes={'\\':'\\',"'":"'",'\n':'n','\r':'r','\u2028':'u2028','\u2029':'u2029'};/** Built-in method references without a dependency on `root`. */var freeParseFloat=parseFloat,freeParseInt=parseInt;/** Detect free variable `global` from Node.js. */var freeGlobal=typeof commonjsGlobal=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=typeof self=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
|
|
67
53
|
var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
|
|
68
|
-
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray
|
|
54
|
+
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/*--------------------------------------------------------------------------*//**
|
|
69
55
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
70
56
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
71
57
|
*
|
|
@@ -493,7 +479,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
493
479
|
* @private
|
|
494
480
|
* @param {string} The string to inspect.
|
|
495
481
|
* @returns {Array} Returns the words of `string`.
|
|
496
|
-
*/function unicodeWords(string){return string.match(reUnicodeWord)||[];}
|
|
482
|
+
*/function unicodeWords(string){return string.match(reUnicodeWord)||[];}/*--------------------------------------------------------------------------*//**
|
|
497
483
|
* Create a new pristine `lodash` function using the `context` object.
|
|
498
484
|
*
|
|
499
485
|
* @static
|
|
@@ -525,7 +511,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
525
511
|
* Used to resolve the
|
|
526
512
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
527
513
|
* of values.
|
|
528
|
-
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1
|
|
514
|
+
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1;/*------------------------------------------------------------------------*//**
|
|
529
515
|
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
530
516
|
* chain sequences. Methods that operate on and return arrays, collections,
|
|
531
517
|
* and functions can be chained together. Methods that retrieve a single value
|
|
@@ -698,7 +684,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
698
684
|
* @memberOf _.templateSettings.imports
|
|
699
685
|
* @type {Function}
|
|
700
686
|
*/'_':lodash}};// Ensure wrappers are instances of `baseLodash`.
|
|
701
|
-
lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper
|
|
687
|
+
lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;/*------------------------------------------------------------------------*//**
|
|
702
688
|
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
|
|
703
689
|
*
|
|
704
690
|
* @private
|
|
@@ -726,7 +712,7 @@ lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;Lodash
|
|
|
726
712
|
* @memberOf LazyWrapper
|
|
727
713
|
* @returns {*} Returns the unwrapped value.
|
|
728
714
|
*/function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else {break outer;}}}result[resIndex++]=value;}return result;}// Ensure `LazyWrapper` is an instance of `baseLodash`.
|
|
729
|
-
LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper
|
|
715
|
+
LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;/*------------------------------------------------------------------------*//**
|
|
730
716
|
* Creates a hash object.
|
|
731
717
|
*
|
|
732
718
|
* @private
|
|
@@ -773,7 +759,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con
|
|
|
773
759
|
* @param {*} value The value to set.
|
|
774
760
|
* @returns {Object} Returns the hash instance.
|
|
775
761
|
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined$1?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
776
|
-
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet
|
|
762
|
+
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/*------------------------------------------------------------------------*//**
|
|
777
763
|
* Creates an list cache object.
|
|
778
764
|
*
|
|
779
765
|
* @private
|
|
@@ -819,7 +805,7 @@ Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototyp
|
|
|
819
805
|
* @param {*} value The value to set.
|
|
820
806
|
* @returns {Object} Returns the list cache instance.
|
|
821
807
|
*/function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else {data[index][1]=value;}return this;}// Add methods to `ListCache`.
|
|
822
|
-
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet
|
|
808
|
+
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/*------------------------------------------------------------------------*//**
|
|
823
809
|
* Creates a map cache object to store key-value pairs.
|
|
824
810
|
*
|
|
825
811
|
* @private
|
|
@@ -865,7 +851,7 @@ ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCache
|
|
|
865
851
|
* @param {*} value The value to set.
|
|
866
852
|
* @returns {Object} Returns the map cache instance.
|
|
867
853
|
*/function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}// Add methods to `MapCache`.
|
|
868
|
-
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet
|
|
854
|
+
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/*------------------------------------------------------------------------*//**
|
|
869
855
|
*
|
|
870
856
|
* Creates an array cache object to store unique values.
|
|
871
857
|
*
|
|
@@ -890,7 +876,7 @@ MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDele
|
|
|
890
876
|
* @param {*} value The value to search for.
|
|
891
877
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
892
878
|
*/function setCacheHas(value){return this.__data__.has(value);}// Add methods to `SetCache`.
|
|
893
|
-
SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas
|
|
879
|
+
SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/*------------------------------------------------------------------------*//**
|
|
894
880
|
* Creates a stack cache object to store key-value pairs.
|
|
895
881
|
*
|
|
896
882
|
* @private
|
|
@@ -936,7 +922,7 @@ SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.ha
|
|
|
936
922
|
* @param {*} value The value to set.
|
|
937
923
|
* @returns {Object} Returns the stack cache instance.
|
|
938
924
|
*/function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}// Add methods to `Stack`.
|
|
939
|
-
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet
|
|
925
|
+
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/*------------------------------------------------------------------------*//**
|
|
940
926
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
941
927
|
*
|
|
942
928
|
* @private
|
|
@@ -2509,7 +2495,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
2509
2495
|
* @private
|
|
2510
2496
|
* @param {Object} wrapper The wrapper to clone.
|
|
2511
2497
|
* @returns {Object} Returns the cloned wrapper.
|
|
2512
|
-
*/function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper){return wrapper.clone();}var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result;}
|
|
2498
|
+
*/function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper){return wrapper.clone();}var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result;}/*------------------------------------------------------------------------*//**
|
|
2513
2499
|
* Creates an array of elements split into groups the length of `size`.
|
|
2514
2500
|
* If `array` can't be split evenly, the final chunk will be the remaining
|
|
2515
2501
|
* elements.
|
|
@@ -3814,7 +3800,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
3814
3800
|
* return a + b + c;
|
|
3815
3801
|
* });
|
|
3816
3802
|
* // => [111, 222]
|
|
3817
|
-
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);})
|
|
3803
|
+
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*//**
|
|
3818
3804
|
* Creates a `lodash` wrapper instance that wraps `value` with explicit method
|
|
3819
3805
|
* chain sequences enabled. The result of such sequences must be unwrapped
|
|
3820
3806
|
* with `_#value`.
|
|
@@ -4045,7 +4031,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4045
4031
|
*
|
|
4046
4032
|
* _([1, 2, 3]).value();
|
|
4047
4033
|
* // => [1, 2, 3]
|
|
4048
|
-
*/function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}
|
|
4034
|
+
*/function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}/*------------------------------------------------------------------------*//**
|
|
4049
4035
|
* Creates an object composed of keys generated from the results of running
|
|
4050
4036
|
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
4051
4037
|
* each key is the number of times the key was returned by `iteratee`. The
|
|
@@ -4729,7 +4715,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4729
4715
|
*
|
|
4730
4716
|
* _.sortBy(users, ['user', 'age']);
|
|
4731
4717
|
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
4732
|
-
*/var sortBy=baseRest(function(collection,iteratees){if(collection==null){return [];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);})
|
|
4718
|
+
*/var sortBy=baseRest(function(collection,iteratees){if(collection==null){return [];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});/*------------------------------------------------------------------------*//**
|
|
4733
4719
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
4734
4720
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
4735
4721
|
*
|
|
@@ -4744,7 +4730,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
4744
4730
|
* console.log(_.now() - stamp);
|
|
4745
4731
|
* }, _.now());
|
|
4746
4732
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
4747
|
-
*/var now=ctxNow||function(){return root.Date.now();}
|
|
4733
|
+
*/var now=ctxNow||function(){return root.Date.now();};/*------------------------------------------------------------------------*//**
|
|
4748
4734
|
* The opposite of `_.before`; this method creates a function that invokes
|
|
4749
4735
|
* `func` once it's called `n` or more times.
|
|
4750
4736
|
*
|
|
@@ -5398,7 +5384,7 @@ memoize.Cache=MapCache;/**
|
|
|
5398
5384
|
*
|
|
5399
5385
|
* p('fred, barney, & pebbles');
|
|
5400
5386
|
* // => '<p>fred, barney, & pebbles</p>'
|
|
5401
|
-
*/function wrap(value,wrapper){return partial(castFunction(wrapper),value);}
|
|
5387
|
+
*/function wrap(value,wrapper){return partial(castFunction(wrapper),value);}/*------------------------------------------------------------------------*//**
|
|
5402
5388
|
* Casts `value` as an array if it's not one.
|
|
5403
5389
|
*
|
|
5404
5390
|
* @static
|
|
@@ -6638,7 +6624,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
6638
6624
|
*
|
|
6639
6625
|
* _.toString([1, 2, 3]);
|
|
6640
6626
|
* // => '1,2,3'
|
|
6641
|
-
*/function toString(value){return value==null?'':baseToString(value);}
|
|
6627
|
+
*/function toString(value){return value==null?'':baseToString(value);}/*------------------------------------------------------------------------*//**
|
|
6642
6628
|
* Assigns own enumerable string keyed properties of source objects to the
|
|
6643
6629
|
* destination object. Source objects are applied from left to right.
|
|
6644
6630
|
* Subsequent sources overwrite property assignments of previous sources.
|
|
@@ -7695,7 +7681,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
|
|
|
7695
7681
|
*
|
|
7696
7682
|
* _.valuesIn(new Foo);
|
|
7697
7683
|
* // => [1, 2, 3] (iteration order is not guaranteed)
|
|
7698
|
-
*/function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}
|
|
7684
|
+
*/function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}/*------------------------------------------------------------------------*//**
|
|
7699
7685
|
* Clamps `number` within the inclusive `lower` and `upper` bounds.
|
|
7700
7686
|
*
|
|
7701
7687
|
* @static
|
|
@@ -7780,7 +7766,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
|
|
|
7780
7766
|
*
|
|
7781
7767
|
* _.random(1.2, 5.2);
|
|
7782
7768
|
* // => a floating-point number between 1.2 and 5.2
|
|
7783
|
-
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}
|
|
7769
|
+
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*//**
|
|
7784
7770
|
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
7785
7771
|
*
|
|
7786
7772
|
* @static
|
|
@@ -8483,7 +8469,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
8483
8469
|
*
|
|
8484
8470
|
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
8485
8471
|
* // => ['fred', 'barney', '&', 'pebbles']
|
|
8486
|
-
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}
|
|
8472
|
+
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}/*------------------------------------------------------------------------*//**
|
|
8487
8473
|
* Attempts to invoke `func`, returning either the result or the caught error
|
|
8488
8474
|
* object. Any additional arguments are provided to `func` when it's invoked.
|
|
8489
8475
|
*
|
|
@@ -9213,7 +9199,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
9213
9199
|
*
|
|
9214
9200
|
* _.uniqueId();
|
|
9215
9201
|
* // => '105'
|
|
9216
|
-
*/function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id;}
|
|
9202
|
+
*/function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id;}/*------------------------------------------------------------------------*//**
|
|
9217
9203
|
* Adds two numbers.
|
|
9218
9204
|
*
|
|
9219
9205
|
* @static
|
|
@@ -9477,12 +9463,12 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
9477
9463
|
* // The `_.property` iteratee shorthand.
|
|
9478
9464
|
* _.sumBy(objects, 'n');
|
|
9479
9465
|
* // => 20
|
|
9480
|
-
*/function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0;}
|
|
9466
|
+
*/function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0;}/*------------------------------------------------------------------------*/// Add methods that return wrapped values in chain sequences.
|
|
9481
9467
|
lodash.after=after;lodash.ary=ary;lodash.assign=assign;lodash.assignIn=assignIn;lodash.assignInWith=assignInWith;lodash.assignWith=assignWith;lodash.at=at;lodash.before=before;lodash.bind=bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.castArray=castArray;lodash.chain=chain;lodash.chunk=chunk;lodash.compact=compact;lodash.concat=concat;lodash.cond=cond;lodash.conforms=conforms;lodash.constant=constant;lodash.countBy=countBy;lodash.create=create;lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defaultsDeep=defaultsDeep;lodash.defer=defer;lodash.delay=delay;lodash.difference=difference;lodash.differenceBy=differenceBy;lodash.differenceWith=differenceWith;lodash.drop=drop;lodash.dropRight=dropRight;lodash.dropRightWhile=dropRightWhile;lodash.dropWhile=dropWhile;lodash.fill=fill;lodash.filter=filter;lodash.flatMap=flatMap;lodash.flatMapDeep=flatMapDeep;lodash.flatMapDepth=flatMapDepth;lodash.flatten=flatten;lodash.flattenDeep=flattenDeep;lodash.flattenDepth=flattenDepth;lodash.flip=flip;lodash.flow=flow;lodash.flowRight=flowRight;lodash.fromPairs=fromPairs;lodash.functions=functions;lodash.functionsIn=functionsIn;lodash.groupBy=groupBy;lodash.initial=initial;lodash.intersection=intersection;lodash.intersectionBy=intersectionBy;lodash.intersectionWith=intersectionWith;lodash.invert=invert;lodash.invertBy=invertBy;lodash.invokeMap=invokeMap;lodash.iteratee=iteratee;lodash.keyBy=keyBy;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map;lodash.mapKeys=mapKeys;lodash.mapValues=mapValues;lodash.matches=matches;lodash.matchesProperty=matchesProperty;lodash.memoize=memoize;lodash.merge=merge;lodash.mergeWith=mergeWith;lodash.method=method;lodash.methodOf=methodOf;lodash.mixin=mixin;lodash.negate=negate;lodash.nthArg=nthArg;lodash.omit=omit;lodash.omitBy=omitBy;lodash.once=once;lodash.orderBy=orderBy;lodash.over=over;lodash.overArgs=overArgs;lodash.overEvery=overEvery;lodash.overSome=overSome;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pickBy=pickBy;lodash.property=property;lodash.propertyOf=propertyOf;lodash.pull=pull;lodash.pullAll=pullAll;lodash.pullAllBy=pullAllBy;lodash.pullAllWith=pullAllWith;lodash.pullAt=pullAt;lodash.range=range;lodash.rangeRight=rangeRight;lodash.rearg=rearg;lodash.reject=reject;lodash.remove=remove;lodash.rest=rest;lodash.reverse=reverse;lodash.sampleSize=sampleSize;lodash.set=set;lodash.setWith=setWith;lodash.shuffle=shuffle;lodash.slice=slice;lodash.sortBy=sortBy;lodash.sortedUniq=sortedUniq;lodash.sortedUniqBy=sortedUniqBy;lodash.split=split;lodash.spread=spread;lodash.tail=tail;lodash.take=take;lodash.takeRight=takeRight;lodash.takeRightWhile=takeRightWhile;lodash.takeWhile=takeWhile;lodash.tap=tap;lodash.throttle=throttle;lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=toPairs;lodash.toPairsIn=toPairsIn;lodash.toPath=toPath;lodash.toPlainObject=toPlainObject;lodash.transform=transform;lodash.unary=unary;lodash.union=union;lodash.unionBy=unionBy;lodash.unionWith=unionWith;lodash.uniq=uniq;lodash.uniqBy=uniqBy;lodash.uniqWith=uniqWith;lodash.unset=unset;lodash.unzip=unzip;lodash.unzipWith=unzipWith;lodash.update=update;lodash.updateWith=updateWith;lodash.values=values;lodash.valuesIn=valuesIn;lodash.without=without;lodash.words=words;lodash.wrap=wrap;lodash.xor=xor;lodash.xorBy=xorBy;lodash.xorWith=xorWith;lodash.zip=zip;lodash.zipObject=zipObject;lodash.zipObjectDeep=zipObjectDeep;lodash.zipWith=zipWith;// Add aliases.
|
|
9482
9468
|
lodash.entries=toPairs;lodash.entriesIn=toPairsIn;lodash.extend=assignIn;lodash.extendWith=assignInWith;// Add methods to `lodash.prototype`.
|
|
9483
|
-
mixin(lodash,lodash)
|
|
9469
|
+
mixin(lodash,lodash);/*------------------------------------------------------------------------*/// Add methods that return unwrapped values in chain sequences.
|
|
9484
9470
|
lodash.add=add;lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.ceil=ceil;lodash.clamp=clamp;lodash.clone=clone;lodash.cloneDeep=cloneDeep;lodash.cloneDeepWith=cloneDeepWith;lodash.cloneWith=cloneWith;lodash.conformsTo=conformsTo;lodash.deburr=deburr;lodash.defaultTo=defaultTo;lodash.divide=divide;lodash.endsWith=endsWith;lodash.eq=eq;lodash.escape=escape;lodash.escapeRegExp=escapeRegExp;lodash.every=every;lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=findKey;lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=findLastKey;lodash.floor=floor;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=forIn;lodash.forInRight=forInRight;lodash.forOwn=forOwn;lodash.forOwnRight=forOwnRight;lodash.get=get;lodash.gt=gt;lodash.gte=gte;lodash.has=has;lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=includes;lodash.indexOf=indexOf;lodash.inRange=inRange;lodash.invoke=invoke;lodash.isArguments=isArguments;lodash.isArray=isArray;lodash.isArrayBuffer=isArrayBuffer;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=isBoolean;lodash.isBuffer=isBuffer;lodash.isDate=isDate;lodash.isElement=isElement;lodash.isEmpty=isEmpty;lodash.isEqual=isEqual;lodash.isEqualWith=isEqualWith;lodash.isError=isError;lodash.isFinite=isFinite;lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=isMap;lodash.isMatch=isMatch;lodash.isMatchWith=isMatchWith;lodash.isNaN=isNaN;lodash.isNative=isNative;lodash.isNil=isNil;lodash.isNull=isNull;lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isSafeInteger=isSafeInteger;lodash.isSet=isSet;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=isTypedArray;lodash.isUndefined=isUndefined;lodash.isWeakMap=isWeakMap;lodash.isWeakSet=isWeakSet;lodash.join=join;lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=lastIndexOf;lodash.lowerCase=lowerCase;lodash.lowerFirst=lowerFirst;lodash.lt=lt;lodash.lte=lte;lodash.max=max;lodash.maxBy=maxBy;lodash.mean=mean;lodash.meanBy=meanBy;lodash.min=min;lodash.minBy=minBy;lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=stubObject;lodash.stubString=stubString;lodash.stubTrue=stubTrue;lodash.multiply=multiply;lodash.nth=nth;lodash.noConflict=noConflict;lodash.noop=noop;lodash.now=now;lodash.pad=pad;lodash.padEnd=padEnd;lodash.padStart=padStart;lodash.parseInt=parseInt;lodash.random=random;lodash.reduce=reduce;lodash.reduceRight=reduceRight;lodash.repeat=repeat;lodash.replace=replace;lodash.result=result;lodash.round=round;lodash.runInContext=runInContext;lodash.sample=sample;lodash.size=size;lodash.snakeCase=snakeCase;lodash.some=some;lodash.sortedIndex=sortedIndex;lodash.sortedIndexBy=sortedIndexBy;lodash.sortedIndexOf=sortedIndexOf;lodash.sortedLastIndex=sortedLastIndex;lodash.sortedLastIndexBy=sortedLastIndexBy;lodash.sortedLastIndexOf=sortedLastIndexOf;lodash.startCase=startCase;lodash.startsWith=startsWith;lodash.subtract=subtract;lodash.sum=sum;lodash.sumBy=sumBy;lodash.template=template;lodash.times=times;lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=toLower;lodash.toNumber=toNumber;lodash.toSafeInteger=toSafeInteger;lodash.toString=toString;lodash.toUpper=toUpper;lodash.trim=trim;lodash.trimEnd=trimEnd;lodash.trimStart=trimStart;lodash.truncate=truncate;lodash.unescape=unescape;lodash.uniqueId=uniqueId;lodash.upperCase=upperCase;lodash.upperFirst=upperFirst;// Add aliases.
|
|
9485
|
-
lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!hasOwnProperty.call(lodash.prototype,methodName)){source[methodName]=func;}});return source;}(),{'chain':false})
|
|
9471
|
+
lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!hasOwnProperty.call(lodash.prototype,methodName)){source[methodName]=func;}});return source;}(),{'chain':false});/*------------------------------------------------------------------------*//**
|
|
9486
9472
|
* The semantic version number.
|
|
9487
9473
|
*
|
|
9488
9474
|
* @static
|
|
@@ -9500,43 +9486,44 @@ arrayEach(['pop','push','shift','sort','splice','unshift'],function(methodName){
|
|
|
9500
9486
|
baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+'';if(!hasOwnProperty.call(realNames,key)){realNames[key]=[];}realNames[key].push({'name':methodName,'func':lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{'name':'wrapper','func':undefined$1}];// Add methods to `LazyWrapper`.
|
|
9501
9487
|
LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;// Add chain sequence methods to the `lodash` wrapper.
|
|
9502
9488
|
lodash.prototype.at=wrapperAt;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;// Add lazy aliases.
|
|
9503
|
-
lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;}
|
|
9489
|
+
lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;};/*--------------------------------------------------------------------------*/// Export lodash.
|
|
9504
9490
|
var _=runInContext();// Some AMD build optimizers, like r.js, check for condition patterns like:
|
|
9505
9491
|
if(freeModule){// Export for Node.js.
|
|
9506
9492
|
(freeModule.exports=_)._=_;// Export for CommonJS support.
|
|
9507
9493
|
freeExports._=_;}else {// Export to the global object.
|
|
9508
9494
|
root._=_;}}).call(commonjsGlobal);});
|
|
9509
9495
|
|
|
9510
|
-
|
|
9511
|
-
Copyright (c) Microsoft Corporation.
|
|
9512
|
-
|
|
9513
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
9514
|
-
purpose with or without fee is hereby granted.
|
|
9515
|
-
|
|
9516
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9517
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9518
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9519
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
9520
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
9521
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
9522
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
9496
|
+
/******************************************************************************
|
|
9497
|
+
Copyright (c) Microsoft Corporation.
|
|
9498
|
+
|
|
9499
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9500
|
+
purpose with or without fee is hereby granted.
|
|
9501
|
+
|
|
9502
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9503
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9504
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9505
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
9506
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
9507
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
9508
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
9523
9509
|
***************************************************************************** */
|
|
9524
9510
|
function __rest(s, e) {
|
|
9525
9511
|
var t = {};
|
|
9526
|
-
|
|
9527
9512
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9528
|
-
|
|
9529
9513
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9530
9514
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9531
9515
|
}
|
|
9532
9516
|
return t;
|
|
9533
9517
|
}
|
|
9518
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
9519
|
+
var e = new Error(message);
|
|
9520
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
9521
|
+
};
|
|
9534
9522
|
|
|
9535
9523
|
let currentId = 0;
|
|
9536
9524
|
/**
|
|
9537
9525
|
* Factory to create Icon class components for consumers
|
|
9538
9526
|
*/
|
|
9539
|
-
|
|
9540
9527
|
function createIcon({
|
|
9541
9528
|
name,
|
|
9542
9529
|
xOffset = 0,
|
|
@@ -9546,21 +9533,18 @@ function createIcon({
|
|
|
9546
9533
|
svgPath
|
|
9547
9534
|
}) {
|
|
9548
9535
|
var _a;
|
|
9549
|
-
|
|
9550
9536
|
return _a = class SVGIcon extends React.Component {
|
|
9551
9537
|
constructor() {
|
|
9552
9538
|
super(...arguments);
|
|
9553
9539
|
this.id = `icon-title-${currentId++}`;
|
|
9554
9540
|
}
|
|
9555
|
-
|
|
9556
9541
|
render() {
|
|
9557
|
-
const
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9542
|
+
const _b = this.props,
|
|
9543
|
+
{
|
|
9544
|
+
title,
|
|
9545
|
+
className
|
|
9546
|
+
} = _b,
|
|
9547
|
+
props = __rest(_b, ["title", "className"]);
|
|
9564
9548
|
const classes = className ? `pf-v5-svg ${className}` : 'pf-v5-svg';
|
|
9565
9549
|
const hasTitle = Boolean(title);
|
|
9566
9550
|
const viewBox = [xOffset, yOffset, width, height].join(' ');
|
|
@@ -9579,7 +9563,6 @@ function createIcon({
|
|
|
9579
9563
|
d: svgPath
|
|
9580
9564
|
}));
|
|
9581
9565
|
}
|
|
9582
|
-
|
|
9583
9566
|
}, _a.displayName = name, _a;
|
|
9584
9567
|
}
|
|
9585
9568
|
|
|
@@ -9594,26 +9577,24 @@ const InfoCircleIconConfig = {
|
|
|
9594
9577
|
const InfoCircleIcon = createIcon(InfoCircleIconConfig);
|
|
9595
9578
|
|
|
9596
9579
|
const _excluded = ["label", "isRequired", "children", "selectOptions", "ariaLabel", "placeholder", "helperText", "subLabel", "subInfo", "onChange", "extraProps", "selectOptionExtraProps", "isFullWidth", "isFullHeight", "isDisabled"];
|
|
9597
|
-
|
|
9598
9580
|
const FormSelect = _ref => {
|
|
9599
9581
|
let {
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9582
|
+
label,
|
|
9583
|
+
isRequired,
|
|
9584
|
+
selectOptions,
|
|
9585
|
+
ariaLabel = 'Select Input',
|
|
9586
|
+
placeholder = 'Select a value',
|
|
9587
|
+
helperText,
|
|
9588
|
+
subLabel,
|
|
9589
|
+
subInfo,
|
|
9590
|
+
onChange,
|
|
9591
|
+
extraProps,
|
|
9592
|
+
selectOptionExtraProps,
|
|
9593
|
+
isFullWidth,
|
|
9594
|
+
isFullHeight,
|
|
9595
|
+
isDisabled
|
|
9596
|
+
} = _ref,
|
|
9597
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
9617
9598
|
const [, meta] = useField(rest);
|
|
9618
9599
|
const {
|
|
9619
9600
|
value
|
|
@@ -9624,32 +9605,25 @@ const FormSelect = _ref => {
|
|
|
9624
9605
|
validateField
|
|
9625
9606
|
} = useFormikContext();
|
|
9626
9607
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
9627
|
-
const selectRef = React.useRef(null);
|
|
9628
|
-
|
|
9629
9608
|
const onToggle = () => {
|
|
9630
9609
|
setIsOpen(!isOpen);
|
|
9631
9610
|
};
|
|
9632
|
-
|
|
9633
9611
|
const onSelect = (_event, selection) => {
|
|
9634
|
-
var _selectRef$current, _selectRef$current$pa, _selectRef$current$pa2;
|
|
9635
|
-
|
|
9636
9612
|
if (onChange) onChange(_event, selection);
|
|
9637
9613
|
setFieldValue(rest.name, selection);
|
|
9638
9614
|
validateField(rest.name);
|
|
9639
|
-
onToggle();
|
|
9640
|
-
|
|
9641
|
-
selectRef == null ? void 0 : (_selectRef$current = selectRef.current) == null ? void 0 : (_selectRef$current$pa = _selectRef$current.parentNode) == null ? void 0 : (_selectRef$current$pa2 = _selectRef$current$pa.querySelector('button')) == null ? void 0 : _selectRef$current$pa2.focus();
|
|
9615
|
+
onToggle();
|
|
9642
9616
|
};
|
|
9643
|
-
|
|
9644
9617
|
const toggle = toggleRef => React.createElement(MenuToggle, {
|
|
9645
9618
|
ref: toggleRef,
|
|
9646
9619
|
onClick: onToggle,
|
|
9647
9620
|
isExpanded: isOpen,
|
|
9648
9621
|
isFullWidth: isFullWidth,
|
|
9649
9622
|
isFullHeight: isFullHeight,
|
|
9650
|
-
isDisabled: isSubmitting || isDisabled
|
|
9623
|
+
isDisabled: isSubmitting || isDisabled,
|
|
9624
|
+
"aria-required": isRequired,
|
|
9625
|
+
"aria-label": isRequired ? `${label}, required` : label
|
|
9651
9626
|
}, value || placeholder);
|
|
9652
|
-
|
|
9653
9627
|
return React.createElement(FormGroupContainer, {
|
|
9654
9628
|
validated: meta.touched && meta.error ? ValidatedOptions.error : ValidatedOptions.default,
|
|
9655
9629
|
helperTextInvalid: meta.error,
|
|
@@ -9677,7 +9651,7 @@ const FormSelect = _ref => {
|
|
|
9677
9651
|
},
|
|
9678
9652
|
"aria-label": ariaLabel,
|
|
9679
9653
|
onOpenChange: () => setIsOpen(!isOpen),
|
|
9680
|
-
|
|
9654
|
+
shouldFocusToggleOnSelect: true
|
|
9681
9655
|
}, extraProps && _extends({}, extraProps), rest), React.createElement(SelectList, null, lodash.map(selectOptions, (option, index) => React.createElement(SelectOption, _extends({
|
|
9682
9656
|
key: index,
|
|
9683
9657
|
value: option.value,
|