@luminati-io/uikit 1.7.26-beta.0 → 1.7.26-beta.1
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/uikit.umd.js +29 -582
- package/dist/uikit.umd.js.map +1 -1
- package/dist/uikit.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/uikit.umd.js
CHANGED
|
@@ -24323,19 +24323,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24323
24323
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24324
24324
|
/* harmony export */ "usePinnedColumns": () => (/* binding */ usePinnedColumns)
|
|
24325
24325
|
/* harmony export */ });
|
|
24326
|
-
/* harmony import */ var
|
|
24327
|
-
/* harmony import */ var
|
|
24328
|
-
/* harmony import */ var
|
|
24329
|
-
/* harmony import */ var
|
|
24330
|
-
/* harmony import */ var
|
|
24331
|
-
/* harmony import */ var
|
|
24332
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
24333
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
|
24326
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
24327
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
24328
|
+
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-table */ "react-table");
|
|
24329
|
+
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
|
|
24330
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
|
24331
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
|
|
24334
24332
|
// LICENSE_CODE ZON
|
|
24335
24333
|
|
|
24336
24334
|
|
|
24337
24335
|
/*jslint react:true*/
|
|
24338
|
-
|
|
24339
24336
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
24340
24337
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
24341
24338
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -24353,7 +24350,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
24353
24350
|
|
|
24354
24351
|
|
|
24355
24352
|
var assign = Object.assign;
|
|
24356
|
-
|
|
24353
|
+
react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn = 'togglePinColumn';
|
|
24357
24354
|
var checkPinnedErrors = function checkPinnedErrors(columns) {
|
|
24358
24355
|
var hasGroups = columns.some(function (col) {
|
|
24359
24356
|
return col.parent;
|
|
@@ -24411,7 +24408,7 @@ var getPinnedProps = function getPinnedProps(header, instance) {
|
|
|
24411
24408
|
dataAttrs['data-pinned'] = true;
|
|
24412
24409
|
var headers = findHeadersSameLevel(header, instance.flatHeaders);
|
|
24413
24410
|
style = _objectSpread(_objectSpread({}, style), {}, {
|
|
24414
|
-
left: (0,
|
|
24411
|
+
left: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(header.totalLeft)
|
|
24415
24412
|
});
|
|
24416
24413
|
if (columnIsLastPinned(header.id, headers)) dataAttrs['data-pinned-last'] = true;
|
|
24417
24414
|
}
|
|
@@ -24420,10 +24417,10 @@ var getPinnedProps = function getPinnedProps(header, instance) {
|
|
|
24420
24417
|
}, dataAttrs);
|
|
24421
24418
|
};
|
|
24422
24419
|
var usePinnedReducer = function usePinnedReducer(state, action) {
|
|
24423
|
-
if (action.type ==
|
|
24420
|
+
if (action.type == react_table__WEBPACK_IMPORTED_MODULE_1__.actions.init) return _objectSpread({
|
|
24424
24421
|
pinnedColumns: []
|
|
24425
24422
|
}, state);
|
|
24426
|
-
if (action.type ==
|
|
24423
|
+
if (action.type == react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn) {
|
|
24427
24424
|
var should = typeof action.value != 'undefined' ? action.value : !state.pinnedColumns.includes(action.columnId);
|
|
24428
24425
|
var pinnedColumns = should ? [].concat(_toConsumableArray(state.pinnedColumns), [action.columnId]) : state.pinnedColumns.filter(function (d) {
|
|
24429
24426
|
return d != action.columnId;
|
|
@@ -24433,20 +24430,33 @@ var usePinnedReducer = function usePinnedReducer(state, action) {
|
|
|
24433
24430
|
});
|
|
24434
24431
|
}
|
|
24435
24432
|
};
|
|
24433
|
+
var orderByPinned = function orderByPinned(columns, columnId, isPinned) {
|
|
24434
|
+
var length = columns.length;
|
|
24435
|
+
var result = new Array(length);
|
|
24436
|
+
while (length--) {
|
|
24437
|
+
var column = columns[length];
|
|
24438
|
+
if (column.id == columnId) column = _objectSpread(_objectSpread({}, column), {}, {
|
|
24439
|
+
isPinned: isPinned
|
|
24440
|
+
});
|
|
24441
|
+
result[length] = column;
|
|
24442
|
+
}
|
|
24443
|
+
result.sort(function (a, b) {
|
|
24444
|
+
return +b.isPinned - +a.isPinned;
|
|
24445
|
+
});
|
|
24446
|
+
return result;
|
|
24447
|
+
};
|
|
24436
24448
|
var usePinnedInstance = function usePinnedInstance(instance) {
|
|
24437
24449
|
var flatHeaders = instance.flatHeaders,
|
|
24438
24450
|
dispatch = instance.dispatch,
|
|
24439
24451
|
columns = instance.columns,
|
|
24440
24452
|
setColumnOrder = instance.setColumnOrder;
|
|
24441
|
-
var togglePinColumn = (0,
|
|
24453
|
+
var togglePinColumn = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (columnId, value) {
|
|
24442
24454
|
dispatch({
|
|
24443
|
-
type:
|
|
24455
|
+
type: react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn,
|
|
24444
24456
|
columnId: columnId,
|
|
24445
24457
|
value: value
|
|
24446
24458
|
});
|
|
24447
|
-
setColumnOrder(
|
|
24448
|
-
return !(col.id == columnId ? value : col.isPinned);
|
|
24449
|
-
}).map(function (col) {
|
|
24459
|
+
setColumnOrder(orderByPinned(columns, columnId, value).map(function (col) {
|
|
24450
24460
|
return col.id;
|
|
24451
24461
|
}));
|
|
24452
24462
|
}, [dispatch, columns, setColumnOrder]);
|
|
@@ -24464,7 +24474,7 @@ var usePinnedInstanceBeforeDimensions = function usePinnedInstanceBeforeDimensio
|
|
|
24464
24474
|
flatHeaders = instance.flatHeaders,
|
|
24465
24475
|
pinnedColumns = instance.state.pinnedColumns;
|
|
24466
24476
|
flatHeaders.forEach(function (header) {
|
|
24467
|
-
header.canPin = (0,
|
|
24477
|
+
header.canPin = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(header.disablePinning === true ? false : undefined, disablePinning === true ? false : undefined, header.parent ? false : undefined, true);
|
|
24468
24478
|
header.isPinned = pinnedColumns.includes(header.id);
|
|
24469
24479
|
});
|
|
24470
24480
|
};
|
|
@@ -41665,37 +41675,6 @@ ListCache.prototype.set = listCacheSet;
|
|
|
41665
41675
|
module.exports = ListCache;
|
|
41666
41676
|
|
|
41667
41677
|
|
|
41668
|
-
/***/ }),
|
|
41669
|
-
|
|
41670
|
-
/***/ "./node_modules/lodash/_apply.js":
|
|
41671
|
-
/*!***************************************!*\
|
|
41672
|
-
!*** ./node_modules/lodash/_apply.js ***!
|
|
41673
|
-
\***************************************/
|
|
41674
|
-
/***/ ((module) => {
|
|
41675
|
-
|
|
41676
|
-
/**
|
|
41677
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
41678
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
41679
|
-
*
|
|
41680
|
-
* @private
|
|
41681
|
-
* @param {Function} func The function to invoke.
|
|
41682
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
41683
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
41684
|
-
* @returns {*} Returns the result of `func`.
|
|
41685
|
-
*/
|
|
41686
|
-
function apply(func, thisArg, args) {
|
|
41687
|
-
switch (args.length) {
|
|
41688
|
-
case 0: return func.call(thisArg);
|
|
41689
|
-
case 1: return func.call(thisArg, args[0]);
|
|
41690
|
-
case 2: return func.call(thisArg, args[0], args[1]);
|
|
41691
|
-
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
41692
|
-
}
|
|
41693
|
-
return func.apply(thisArg, args);
|
|
41694
|
-
}
|
|
41695
|
-
|
|
41696
|
-
module.exports = apply;
|
|
41697
|
-
|
|
41698
|
-
|
|
41699
41678
|
/***/ }),
|
|
41700
41679
|
|
|
41701
41680
|
/***/ "./node_modules/lodash/_arrayMap.js":
|
|
@@ -41863,39 +41842,6 @@ function baseClamp(number, lower, upper) {
|
|
|
41863
41842
|
module.exports = baseClamp;
|
|
41864
41843
|
|
|
41865
41844
|
|
|
41866
|
-
/***/ }),
|
|
41867
|
-
|
|
41868
|
-
/***/ "./node_modules/lodash/_baseFlatten.js":
|
|
41869
|
-
/*!*********************************************!*\
|
|
41870
|
-
!*** ./node_modules/lodash/_baseFlatten.js ***!
|
|
41871
|
-
\*********************************************/
|
|
41872
|
-
/***/ ((module) => {
|
|
41873
|
-
|
|
41874
|
-
/**
|
|
41875
|
-
* Gets the first element of `array`.
|
|
41876
|
-
*
|
|
41877
|
-
* @static
|
|
41878
|
-
* @memberOf _
|
|
41879
|
-
* @since 0.1.0
|
|
41880
|
-
* @alias first
|
|
41881
|
-
* @category Array
|
|
41882
|
-
* @param {Array} array The array to query.
|
|
41883
|
-
* @returns {*} Returns the first element of `array`.
|
|
41884
|
-
* @example
|
|
41885
|
-
*
|
|
41886
|
-
* _.head([1, 2, 3]);
|
|
41887
|
-
* // => 1
|
|
41888
|
-
*
|
|
41889
|
-
* _.head([]);
|
|
41890
|
-
* // => undefined
|
|
41891
|
-
*/
|
|
41892
|
-
function head(array) {
|
|
41893
|
-
return (array && array.length) ? array[0] : undefined;
|
|
41894
|
-
}
|
|
41895
|
-
|
|
41896
|
-
module.exports = head;
|
|
41897
|
-
|
|
41898
|
-
|
|
41899
41845
|
/***/ }),
|
|
41900
41846
|
|
|
41901
41847
|
/***/ "./node_modules/lodash/_baseGet.js":
|
|
@@ -41982,96 +41928,6 @@ function identity(value) {
|
|
|
41982
41928
|
module.exports = identity;
|
|
41983
41929
|
|
|
41984
41930
|
|
|
41985
|
-
/***/ }),
|
|
41986
|
-
|
|
41987
|
-
/***/ "./node_modules/lodash/_baseMap.js":
|
|
41988
|
-
/*!*****************************************!*\
|
|
41989
|
-
!*** ./node_modules/lodash/_baseMap.js ***!
|
|
41990
|
-
\*****************************************/
|
|
41991
|
-
/***/ ((module) => {
|
|
41992
|
-
|
|
41993
|
-
/**
|
|
41994
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
41995
|
-
* shorthands.
|
|
41996
|
-
*
|
|
41997
|
-
* @private
|
|
41998
|
-
* @param {Array} [array] The array to iterate over.
|
|
41999
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
42000
|
-
* @returns {Array} Returns the new mapped array.
|
|
42001
|
-
*/
|
|
42002
|
-
function arrayMap(array, iteratee) {
|
|
42003
|
-
var index = -1,
|
|
42004
|
-
length = array == null ? 0 : array.length,
|
|
42005
|
-
result = Array(length);
|
|
42006
|
-
|
|
42007
|
-
while (++index < length) {
|
|
42008
|
-
result[index] = iteratee(array[index], index, array);
|
|
42009
|
-
}
|
|
42010
|
-
return result;
|
|
42011
|
-
}
|
|
42012
|
-
|
|
42013
|
-
module.exports = arrayMap;
|
|
42014
|
-
|
|
42015
|
-
|
|
42016
|
-
/***/ }),
|
|
42017
|
-
|
|
42018
|
-
/***/ "./node_modules/lodash/_baseOrderBy.js":
|
|
42019
|
-
/*!*********************************************!*\
|
|
42020
|
-
!*** ./node_modules/lodash/_baseOrderBy.js ***!
|
|
42021
|
-
\*********************************************/
|
|
42022
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42023
|
-
|
|
42024
|
-
var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
|
|
42025
|
-
baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
|
|
42026
|
-
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
|
|
42027
|
-
baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
|
|
42028
|
-
baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"),
|
|
42029
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
|
|
42030
|
-
compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"),
|
|
42031
|
-
identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
|
|
42032
|
-
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
|
|
42033
|
-
|
|
42034
|
-
/**
|
|
42035
|
-
* The base implementation of `_.orderBy` without param guards.
|
|
42036
|
-
*
|
|
42037
|
-
* @private
|
|
42038
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
42039
|
-
* @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
|
|
42040
|
-
* @param {string[]} orders The sort orders of `iteratees`.
|
|
42041
|
-
* @returns {Array} Returns the new sorted array.
|
|
42042
|
-
*/
|
|
42043
|
-
function baseOrderBy(collection, iteratees, orders) {
|
|
42044
|
-
if (iteratees.length) {
|
|
42045
|
-
iteratees = arrayMap(iteratees, function(iteratee) {
|
|
42046
|
-
if (isArray(iteratee)) {
|
|
42047
|
-
return function(value) {
|
|
42048
|
-
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
42049
|
-
}
|
|
42050
|
-
}
|
|
42051
|
-
return iteratee;
|
|
42052
|
-
});
|
|
42053
|
-
} else {
|
|
42054
|
-
iteratees = [identity];
|
|
42055
|
-
}
|
|
42056
|
-
|
|
42057
|
-
var index = -1;
|
|
42058
|
-
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
|
|
42059
|
-
|
|
42060
|
-
var result = baseMap(collection, function(value, key, collection) {
|
|
42061
|
-
var criteria = arrayMap(iteratees, function(iteratee) {
|
|
42062
|
-
return iteratee(value);
|
|
42063
|
-
});
|
|
42064
|
-
return { 'criteria': criteria, 'index': ++index, 'value': value };
|
|
42065
|
-
});
|
|
42066
|
-
|
|
42067
|
-
return baseSortBy(result, function(object, other) {
|
|
42068
|
-
return compareMultiple(object, other, orders);
|
|
42069
|
-
});
|
|
42070
|
-
}
|
|
42071
|
-
|
|
42072
|
-
module.exports = baseOrderBy;
|
|
42073
|
-
|
|
42074
|
-
|
|
42075
41931
|
/***/ }),
|
|
42076
41932
|
|
|
42077
41933
|
/***/ "./node_modules/lodash/_basePickBy.js":
|
|
@@ -42112,33 +41968,6 @@ function basePickBy(object, paths, predicate) {
|
|
|
42112
41968
|
module.exports = basePickBy;
|
|
42113
41969
|
|
|
42114
41970
|
|
|
42115
|
-
/***/ }),
|
|
42116
|
-
|
|
42117
|
-
/***/ "./node_modules/lodash/_baseRest.js":
|
|
42118
|
-
/*!******************************************!*\
|
|
42119
|
-
!*** ./node_modules/lodash/_baseRest.js ***!
|
|
42120
|
-
\******************************************/
|
|
42121
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42122
|
-
|
|
42123
|
-
var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
|
|
42124
|
-
overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
|
|
42125
|
-
setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
|
|
42126
|
-
|
|
42127
|
-
/**
|
|
42128
|
-
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
42129
|
-
*
|
|
42130
|
-
* @private
|
|
42131
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
42132
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
42133
|
-
* @returns {Function} Returns the new function.
|
|
42134
|
-
*/
|
|
42135
|
-
function baseRest(func, start) {
|
|
42136
|
-
return setToString(overRest(func, start, identity), func + '');
|
|
42137
|
-
}
|
|
42138
|
-
|
|
42139
|
-
module.exports = baseRest;
|
|
42140
|
-
|
|
42141
|
-
|
|
42142
41971
|
/***/ }),
|
|
42143
41972
|
|
|
42144
41973
|
/***/ "./node_modules/lodash/_baseSet.js":
|
|
@@ -42200,61 +42029,6 @@ function baseSet(object, path, value, customizer) {
|
|
|
42200
42029
|
module.exports = baseSet;
|
|
42201
42030
|
|
|
42202
42031
|
|
|
42203
|
-
/***/ }),
|
|
42204
|
-
|
|
42205
|
-
/***/ "./node_modules/lodash/_baseSortBy.js":
|
|
42206
|
-
/*!********************************************!*\
|
|
42207
|
-
!*** ./node_modules/lodash/_baseSortBy.js ***!
|
|
42208
|
-
\********************************************/
|
|
42209
|
-
/***/ ((module) => {
|
|
42210
|
-
|
|
42211
|
-
/**
|
|
42212
|
-
* The base implementation of `_.sortBy` which uses `comparer` to define the
|
|
42213
|
-
* sort order of `array` and replaces criteria objects with their corresponding
|
|
42214
|
-
* values.
|
|
42215
|
-
*
|
|
42216
|
-
* @private
|
|
42217
|
-
* @param {Array} array The array to sort.
|
|
42218
|
-
* @param {Function} comparer The function to define sort order.
|
|
42219
|
-
* @returns {Array} Returns `array`.
|
|
42220
|
-
*/
|
|
42221
|
-
function baseSortBy(array, comparer) {
|
|
42222
|
-
var length = array.length;
|
|
42223
|
-
|
|
42224
|
-
array.sort(comparer);
|
|
42225
|
-
while (length--) {
|
|
42226
|
-
array[length] = array[length].value;
|
|
42227
|
-
}
|
|
42228
|
-
return array;
|
|
42229
|
-
}
|
|
42230
|
-
|
|
42231
|
-
module.exports = baseSortBy;
|
|
42232
|
-
|
|
42233
|
-
|
|
42234
|
-
/***/ }),
|
|
42235
|
-
|
|
42236
|
-
/***/ "./node_modules/lodash/_baseUnary.js":
|
|
42237
|
-
/*!*******************************************!*\
|
|
42238
|
-
!*** ./node_modules/lodash/_baseUnary.js ***!
|
|
42239
|
-
\*******************************************/
|
|
42240
|
-
/***/ ((module) => {
|
|
42241
|
-
|
|
42242
|
-
/**
|
|
42243
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
42244
|
-
*
|
|
42245
|
-
* @private
|
|
42246
|
-
* @param {Function} func The function to cap arguments for.
|
|
42247
|
-
* @returns {Function} Returns the new capped function.
|
|
42248
|
-
*/
|
|
42249
|
-
function baseUnary(func) {
|
|
42250
|
-
return function(value) {
|
|
42251
|
-
return func(value);
|
|
42252
|
-
};
|
|
42253
|
-
}
|
|
42254
|
-
|
|
42255
|
-
module.exports = baseUnary;
|
|
42256
|
-
|
|
42257
|
-
|
|
42258
42032
|
/***/ }),
|
|
42259
42033
|
|
|
42260
42034
|
/***/ "./node_modules/lodash/_castPath.js":
|
|
@@ -42309,111 +42083,6 @@ function castArray() {
|
|
|
42309
42083
|
module.exports = castArray;
|
|
42310
42084
|
|
|
42311
42085
|
|
|
42312
|
-
/***/ }),
|
|
42313
|
-
|
|
42314
|
-
/***/ "./node_modules/lodash/_compareAscending.js":
|
|
42315
|
-
/*!**************************************************!*\
|
|
42316
|
-
!*** ./node_modules/lodash/_compareAscending.js ***!
|
|
42317
|
-
\**************************************************/
|
|
42318
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42319
|
-
|
|
42320
|
-
var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
|
|
42321
|
-
|
|
42322
|
-
/**
|
|
42323
|
-
* Compares values to sort them in ascending order.
|
|
42324
|
-
*
|
|
42325
|
-
* @private
|
|
42326
|
-
* @param {*} value The value to compare.
|
|
42327
|
-
* @param {*} other The other value to compare.
|
|
42328
|
-
* @returns {number} Returns the sort order indicator for `value`.
|
|
42329
|
-
*/
|
|
42330
|
-
function compareAscending(value, other) {
|
|
42331
|
-
if (value !== other) {
|
|
42332
|
-
var valIsDefined = value !== undefined,
|
|
42333
|
-
valIsNull = value === null,
|
|
42334
|
-
valIsReflexive = value === value,
|
|
42335
|
-
valIsSymbol = isSymbol(value);
|
|
42336
|
-
|
|
42337
|
-
var othIsDefined = other !== undefined,
|
|
42338
|
-
othIsNull = other === null,
|
|
42339
|
-
othIsReflexive = other === other,
|
|
42340
|
-
othIsSymbol = isSymbol(other);
|
|
42341
|
-
|
|
42342
|
-
if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
|
|
42343
|
-
(valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
|
|
42344
|
-
(valIsNull && othIsDefined && othIsReflexive) ||
|
|
42345
|
-
(!valIsDefined && othIsReflexive) ||
|
|
42346
|
-
!valIsReflexive) {
|
|
42347
|
-
return 1;
|
|
42348
|
-
}
|
|
42349
|
-
if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
|
|
42350
|
-
(othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
|
|
42351
|
-
(othIsNull && valIsDefined && valIsReflexive) ||
|
|
42352
|
-
(!othIsDefined && valIsReflexive) ||
|
|
42353
|
-
!othIsReflexive) {
|
|
42354
|
-
return -1;
|
|
42355
|
-
}
|
|
42356
|
-
}
|
|
42357
|
-
return 0;
|
|
42358
|
-
}
|
|
42359
|
-
|
|
42360
|
-
module.exports = compareAscending;
|
|
42361
|
-
|
|
42362
|
-
|
|
42363
|
-
/***/ }),
|
|
42364
|
-
|
|
42365
|
-
/***/ "./node_modules/lodash/_compareMultiple.js":
|
|
42366
|
-
/*!*************************************************!*\
|
|
42367
|
-
!*** ./node_modules/lodash/_compareMultiple.js ***!
|
|
42368
|
-
\*************************************************/
|
|
42369
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42370
|
-
|
|
42371
|
-
var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js");
|
|
42372
|
-
|
|
42373
|
-
/**
|
|
42374
|
-
* Used by `_.orderBy` to compare multiple properties of a value to another
|
|
42375
|
-
* and stable sort them.
|
|
42376
|
-
*
|
|
42377
|
-
* If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
|
|
42378
|
-
* specify an order of "desc" for descending or "asc" for ascending sort order
|
|
42379
|
-
* of corresponding values.
|
|
42380
|
-
*
|
|
42381
|
-
* @private
|
|
42382
|
-
* @param {Object} object The object to compare.
|
|
42383
|
-
* @param {Object} other The other object to compare.
|
|
42384
|
-
* @param {boolean[]|string[]} orders The order to sort by for each property.
|
|
42385
|
-
* @returns {number} Returns the sort order indicator for `object`.
|
|
42386
|
-
*/
|
|
42387
|
-
function compareMultiple(object, other, orders) {
|
|
42388
|
-
var index = -1,
|
|
42389
|
-
objCriteria = object.criteria,
|
|
42390
|
-
othCriteria = other.criteria,
|
|
42391
|
-
length = objCriteria.length,
|
|
42392
|
-
ordersLength = orders.length;
|
|
42393
|
-
|
|
42394
|
-
while (++index < length) {
|
|
42395
|
-
var result = compareAscending(objCriteria[index], othCriteria[index]);
|
|
42396
|
-
if (result) {
|
|
42397
|
-
if (index >= ordersLength) {
|
|
42398
|
-
return result;
|
|
42399
|
-
}
|
|
42400
|
-
var order = orders[index];
|
|
42401
|
-
return result * (order == 'desc' ? -1 : 1);
|
|
42402
|
-
}
|
|
42403
|
-
}
|
|
42404
|
-
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
|
|
42405
|
-
// that causes it, under certain circumstances, to provide the same value for
|
|
42406
|
-
// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
|
|
42407
|
-
// for more details.
|
|
42408
|
-
//
|
|
42409
|
-
// This also ensures a stable sort in V8 and other engines.
|
|
42410
|
-
// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
|
|
42411
|
-
return object.index - other.index;
|
|
42412
|
-
}
|
|
42413
|
-
|
|
42414
|
-
module.exports = compareMultiple;
|
|
42415
|
-
|
|
42416
|
-
|
|
42417
42086
|
/***/ }),
|
|
42418
42087
|
|
|
42419
42088
|
/***/ "./node_modules/lodash/_defineProperty.js":
|
|
@@ -42537,34 +42206,6 @@ function isIndex(value, length) {
|
|
|
42537
42206
|
module.exports = isIndex;
|
|
42538
42207
|
|
|
42539
42208
|
|
|
42540
|
-
/***/ }),
|
|
42541
|
-
|
|
42542
|
-
/***/ "./node_modules/lodash/_isIterateeCall.js":
|
|
42543
|
-
/*!************************************************!*\
|
|
42544
|
-
!*** ./node_modules/lodash/_isIterateeCall.js ***!
|
|
42545
|
-
\************************************************/
|
|
42546
|
-
/***/ ((module) => {
|
|
42547
|
-
|
|
42548
|
-
/**
|
|
42549
|
-
* This method returns `false`.
|
|
42550
|
-
*
|
|
42551
|
-
* @static
|
|
42552
|
-
* @memberOf _
|
|
42553
|
-
* @since 4.13.0
|
|
42554
|
-
* @category Util
|
|
42555
|
-
* @returns {boolean} Returns `false`.
|
|
42556
|
-
* @example
|
|
42557
|
-
*
|
|
42558
|
-
* _.times(2, _.stubFalse);
|
|
42559
|
-
* // => [false, false]
|
|
42560
|
-
*/
|
|
42561
|
-
function stubFalse() {
|
|
42562
|
-
return false;
|
|
42563
|
-
}
|
|
42564
|
-
|
|
42565
|
-
module.exports = stubFalse;
|
|
42566
|
-
|
|
42567
|
-
|
|
42568
42209
|
/***/ }),
|
|
42569
42210
|
|
|
42570
42211
|
/***/ "./node_modules/lodash/_listCacheClear.js":
|
|
@@ -42724,52 +42365,6 @@ function listCacheSet(key, value) {
|
|
|
42724
42365
|
module.exports = listCacheSet;
|
|
42725
42366
|
|
|
42726
42367
|
|
|
42727
|
-
/***/ }),
|
|
42728
|
-
|
|
42729
|
-
/***/ "./node_modules/lodash/_overRest.js":
|
|
42730
|
-
/*!******************************************!*\
|
|
42731
|
-
!*** ./node_modules/lodash/_overRest.js ***!
|
|
42732
|
-
\******************************************/
|
|
42733
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
42734
|
-
|
|
42735
|
-
var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
|
|
42736
|
-
|
|
42737
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
42738
|
-
var nativeMax = Math.max;
|
|
42739
|
-
|
|
42740
|
-
/**
|
|
42741
|
-
* A specialized version of `baseRest` which transforms the rest array.
|
|
42742
|
-
*
|
|
42743
|
-
* @private
|
|
42744
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
42745
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
42746
|
-
* @param {Function} transform The rest array transform.
|
|
42747
|
-
* @returns {Function} Returns the new function.
|
|
42748
|
-
*/
|
|
42749
|
-
function overRest(func, start, transform) {
|
|
42750
|
-
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
42751
|
-
return function() {
|
|
42752
|
-
var args = arguments,
|
|
42753
|
-
index = -1,
|
|
42754
|
-
length = nativeMax(args.length - start, 0),
|
|
42755
|
-
array = Array(length);
|
|
42756
|
-
|
|
42757
|
-
while (++index < length) {
|
|
42758
|
-
array[index] = args[start + index];
|
|
42759
|
-
}
|
|
42760
|
-
index = -1;
|
|
42761
|
-
var otherArgs = Array(start + 1);
|
|
42762
|
-
while (++index < start) {
|
|
42763
|
-
otherArgs[index] = args[index];
|
|
42764
|
-
}
|
|
42765
|
-
otherArgs[start] = transform(array);
|
|
42766
|
-
return apply(func, this, otherArgs);
|
|
42767
|
-
};
|
|
42768
|
-
}
|
|
42769
|
-
|
|
42770
|
-
module.exports = overRest;
|
|
42771
|
-
|
|
42772
|
-
|
|
42773
42368
|
/***/ }),
|
|
42774
42369
|
|
|
42775
42370
|
/***/ "./node_modules/lodash/_root.js":
|
|
@@ -42789,37 +42384,6 @@ var root = freeGlobal || freeSelf || Function('return this')();
|
|
|
42789
42384
|
module.exports = root;
|
|
42790
42385
|
|
|
42791
42386
|
|
|
42792
|
-
/***/ }),
|
|
42793
|
-
|
|
42794
|
-
/***/ "./node_modules/lodash/_setToString.js":
|
|
42795
|
-
/*!*********************************************!*\
|
|
42796
|
-
!*** ./node_modules/lodash/_setToString.js ***!
|
|
42797
|
-
\*********************************************/
|
|
42798
|
-
/***/ ((module) => {
|
|
42799
|
-
|
|
42800
|
-
/**
|
|
42801
|
-
* This method returns the first argument it receives.
|
|
42802
|
-
*
|
|
42803
|
-
* @static
|
|
42804
|
-
* @since 0.1.0
|
|
42805
|
-
* @memberOf _
|
|
42806
|
-
* @category Util
|
|
42807
|
-
* @param {*} value Any value.
|
|
42808
|
-
* @returns {*} Returns `value`.
|
|
42809
|
-
* @example
|
|
42810
|
-
*
|
|
42811
|
-
* var object = { 'a': 1 };
|
|
42812
|
-
*
|
|
42813
|
-
* console.log(_.identity(object) === object);
|
|
42814
|
-
* // => true
|
|
42815
|
-
*/
|
|
42816
|
-
function identity(value) {
|
|
42817
|
-
return value;
|
|
42818
|
-
}
|
|
42819
|
-
|
|
42820
|
-
module.exports = identity;
|
|
42821
|
-
|
|
42822
|
-
|
|
42823
42387
|
/***/ }),
|
|
42824
42388
|
|
|
42825
42389
|
/***/ "./node_modules/lodash/_toKey.js":
|
|
@@ -43148,37 +42712,6 @@ function eq(value, other) {
|
|
|
43148
42712
|
module.exports = eq;
|
|
43149
42713
|
|
|
43150
42714
|
|
|
43151
|
-
/***/ }),
|
|
43152
|
-
|
|
43153
|
-
/***/ "./node_modules/lodash/identity.js":
|
|
43154
|
-
/*!*****************************************!*\
|
|
43155
|
-
!*** ./node_modules/lodash/identity.js ***!
|
|
43156
|
-
\*****************************************/
|
|
43157
|
-
/***/ ((module) => {
|
|
43158
|
-
|
|
43159
|
-
/**
|
|
43160
|
-
* This method returns the first argument it receives.
|
|
43161
|
-
*
|
|
43162
|
-
* @static
|
|
43163
|
-
* @since 0.1.0
|
|
43164
|
-
* @memberOf _
|
|
43165
|
-
* @category Util
|
|
43166
|
-
* @param {*} value Any value.
|
|
43167
|
-
* @returns {*} Returns `value`.
|
|
43168
|
-
* @example
|
|
43169
|
-
*
|
|
43170
|
-
* var object = { 'a': 1 };
|
|
43171
|
-
*
|
|
43172
|
-
* console.log(_.identity(object) === object);
|
|
43173
|
-
* // => true
|
|
43174
|
-
*/
|
|
43175
|
-
function identity(value) {
|
|
43176
|
-
return value;
|
|
43177
|
-
}
|
|
43178
|
-
|
|
43179
|
-
module.exports = identity;
|
|
43180
|
-
|
|
43181
|
-
|
|
43182
42715
|
/***/ }),
|
|
43183
42716
|
|
|
43184
42717
|
/***/ "./node_modules/lodash/isArray.js":
|
|
@@ -43335,34 +42868,6 @@ function isString(value) {
|
|
|
43335
42868
|
module.exports = isString;
|
|
43336
42869
|
|
|
43337
42870
|
|
|
43338
|
-
/***/ }),
|
|
43339
|
-
|
|
43340
|
-
/***/ "./node_modules/lodash/isSymbol.js":
|
|
43341
|
-
/*!*****************************************!*\
|
|
43342
|
-
!*** ./node_modules/lodash/isSymbol.js ***!
|
|
43343
|
-
\*****************************************/
|
|
43344
|
-
/***/ ((module) => {
|
|
43345
|
-
|
|
43346
|
-
/**
|
|
43347
|
-
* This method returns `false`.
|
|
43348
|
-
*
|
|
43349
|
-
* @static
|
|
43350
|
-
* @memberOf _
|
|
43351
|
-
* @since 4.13.0
|
|
43352
|
-
* @category Util
|
|
43353
|
-
* @returns {boolean} Returns `false`.
|
|
43354
|
-
* @example
|
|
43355
|
-
*
|
|
43356
|
-
* _.times(2, _.stubFalse);
|
|
43357
|
-
* // => [false, false]
|
|
43358
|
-
*/
|
|
43359
|
-
function stubFalse() {
|
|
43360
|
-
return false;
|
|
43361
|
-
}
|
|
43362
|
-
|
|
43363
|
-
module.exports = stubFalse;
|
|
43364
|
-
|
|
43365
|
-
|
|
43366
42871
|
/***/ }),
|
|
43367
42872
|
|
|
43368
42873
|
/***/ "./node_modules/lodash/memoize.js":
|
|
@@ -43526,64 +43031,6 @@ function pickBy(object, predicate) {
|
|
|
43526
43031
|
module.exports = pickBy;
|
|
43527
43032
|
|
|
43528
43033
|
|
|
43529
|
-
/***/ }),
|
|
43530
|
-
|
|
43531
|
-
/***/ "./node_modules/lodash/sortBy.js":
|
|
43532
|
-
/*!***************************************!*\
|
|
43533
|
-
!*** ./node_modules/lodash/sortBy.js ***!
|
|
43534
|
-
\***************************************/
|
|
43535
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
43536
|
-
|
|
43537
|
-
var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
|
|
43538
|
-
baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"),
|
|
43539
|
-
baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
|
|
43540
|
-
isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
|
|
43541
|
-
|
|
43542
|
-
/**
|
|
43543
|
-
* Creates an array of elements, sorted in ascending order by the results of
|
|
43544
|
-
* running each element in a collection thru each iteratee. This method
|
|
43545
|
-
* performs a stable sort, that is, it preserves the original sort order of
|
|
43546
|
-
* equal elements. The iteratees are invoked with one argument: (value).
|
|
43547
|
-
*
|
|
43548
|
-
* @static
|
|
43549
|
-
* @memberOf _
|
|
43550
|
-
* @since 0.1.0
|
|
43551
|
-
* @category Collection
|
|
43552
|
-
* @param {Array|Object} collection The collection to iterate over.
|
|
43553
|
-
* @param {...(Function|Function[])} [iteratees=[_.identity]]
|
|
43554
|
-
* The iteratees to sort by.
|
|
43555
|
-
* @returns {Array} Returns the new sorted array.
|
|
43556
|
-
* @example
|
|
43557
|
-
*
|
|
43558
|
-
* var users = [
|
|
43559
|
-
* { 'user': 'fred', 'age': 48 },
|
|
43560
|
-
* { 'user': 'barney', 'age': 36 },
|
|
43561
|
-
* { 'user': 'fred', 'age': 30 },
|
|
43562
|
-
* { 'user': 'barney', 'age': 34 }
|
|
43563
|
-
* ];
|
|
43564
|
-
*
|
|
43565
|
-
* _.sortBy(users, [function(o) { return o.user; }]);
|
|
43566
|
-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
|
|
43567
|
-
*
|
|
43568
|
-
* _.sortBy(users, ['user', 'age']);
|
|
43569
|
-
* // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
|
|
43570
|
-
*/
|
|
43571
|
-
var sortBy = baseRest(function(collection, iteratees) {
|
|
43572
|
-
if (collection == null) {
|
|
43573
|
-
return [];
|
|
43574
|
-
}
|
|
43575
|
-
var length = iteratees.length;
|
|
43576
|
-
if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
|
|
43577
|
-
iteratees = [];
|
|
43578
|
-
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
|
|
43579
|
-
iteratees = [iteratees[0]];
|
|
43580
|
-
}
|
|
43581
|
-
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
43582
|
-
});
|
|
43583
|
-
|
|
43584
|
-
module.exports = sortBy;
|
|
43585
|
-
|
|
43586
|
-
|
|
43587
43034
|
/***/ }),
|
|
43588
43035
|
|
|
43589
43036
|
/***/ "./node_modules/lodash/toNumber.js":
|