@luminati-io/uikit 1.7.26-beta.0 → 1.7.26

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 CHANGED
@@ -22928,8 +22928,8 @@ __webpack_require__.r(__webpack_exports__);
22928
22928
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
22929
22929
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
22930
22930
  /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
22931
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
22932
- /* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
22931
+ /* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
22932
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
22933
22933
  // LICENSE_CODE ZON
22934
22934
 
22935
22935
 
@@ -22976,7 +22976,7 @@ var Cell = function Cell(props) {
22976
22976
  }
22977
22977
  } : undefined);
22978
22978
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({
22979
- className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
22979
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_4__.classNames)(classNamePrefix, {
22980
22980
  cell: true
22981
22981
  }, className)
22982
22982
  }, cellProps), props.render('Cell', {
@@ -22990,9 +22990,9 @@ Cell.displayName = 'Cell';
22990
22990
  var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
22991
22991
  displayName: "StyledCell",
22992
22992
  componentId: "sc-b034il-0"
22993
- })(["padding:5px 15px;overflow-x:clip;", " background-color:", ";border:1px solid ", ";", ":hover &{background-color:", ";border-left-color:", ";border-right-color:", ";}", " ", " &[data-pinned-last]{box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);}", ""], function (props) {
22993
+ })(["padding:5px 15px;overflow-x:clip;", " background-color:", ";border:1px solid ", ";", ":hover &{background-color:", ";border-left-color:", ";border-right-color:", ";}", " ", " &[data-pinned-last]{", "}", ""], function (props) {
22994
22994
  return props.type == 'number' ? 'text-align: right;' : null;
22995
- }, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_4__["default"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, function (props) {
22995
+ }, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_3__["default"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2, function (props) {
22996
22996
  if (props.border == 'top') return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
22997
22997
  if (props.border == 'bottom') return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
22998
22998
  }, function (props) {
@@ -23002,10 +23002,15 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
23002
23002
  if (props.rowDensity == 'white_spaced') {
23003
23003
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:25px;padding-bottom:25px;"]);
23004
23004
  }
23005
+ }, function (props) {
23006
+ if (props.canEdit && props.isEditing) {
23007
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08),inset 0px 0px 0px 3px rgba(0,106,220,0.4);"]);
23008
+ }
23009
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);"]);
23005
23010
  }, function (props) {
23006
23011
  if (props.canEdit) {
23007
23012
  if (props.isEditing) {
23008
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["border:1px solid ", " !important;box-shadow:0px 0px 0px 2px rgba(0,106,220,0.4);z-index:1;"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11);
23013
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);z-index:1;"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11);
23009
23014
  }
23010
23015
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["&:hover{border-color:", " !important;}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9);
23011
23016
  }
@@ -24169,7 +24174,7 @@ var PaginationControls = function PaginationControls(props) {
24169
24174
  var opts = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
24170
24175
  return pageSizes.map(function (o) {
24171
24176
  return {
24172
- label: o,
24177
+ label: String(o),
24173
24178
  value: o
24174
24179
  };
24175
24180
  });
@@ -24323,19 +24328,16 @@ __webpack_require__.r(__webpack_exports__);
24323
24328
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24324
24329
  /* harmony export */ "usePinnedColumns": () => (/* binding */ usePinnedColumns)
24325
24330
  /* harmony export */ });
24326
- /* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/sortBy */ "./node_modules/lodash/sortBy.js");
24327
- /* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_0__);
24328
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
24329
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
24330
- /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-table */ "react-table");
24331
- /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_2__);
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");
24331
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
24332
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
24333
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-table */ "react-table");
24334
+ /* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_1__);
24335
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
24336
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
24334
24337
  // LICENSE_CODE ZON
24335
24338
 
24336
24339
 
24337
24340
  /*jslint react:true*/
24338
-
24339
24341
  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
24342
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
24341
24343
  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 +24355,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
24353
24355
 
24354
24356
 
24355
24357
  var assign = Object.assign;
24356
- react_table__WEBPACK_IMPORTED_MODULE_2__.actions.togglePinColumn = 'togglePinColumn';
24358
+ react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn = 'togglePinColumn';
24357
24359
  var checkPinnedErrors = function checkPinnedErrors(columns) {
24358
24360
  var hasGroups = columns.some(function (col) {
24359
24361
  return col.parent;
@@ -24411,7 +24413,7 @@ var getPinnedProps = function getPinnedProps(header, instance) {
24411
24413
  dataAttrs['data-pinned'] = true;
24412
24414
  var headers = findHeadersSameLevel(header, instance.flatHeaders);
24413
24415
  style = _objectSpread(_objectSpread({}, style), {}, {
24414
- left: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(header.totalLeft)
24416
+ left: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(header.totalLeft)
24415
24417
  });
24416
24418
  if (columnIsLastPinned(header.id, headers)) dataAttrs['data-pinned-last'] = true;
24417
24419
  }
@@ -24420,10 +24422,10 @@ var getPinnedProps = function getPinnedProps(header, instance) {
24420
24422
  }, dataAttrs);
24421
24423
  };
24422
24424
  var usePinnedReducer = function usePinnedReducer(state, action) {
24423
- if (action.type == react_table__WEBPACK_IMPORTED_MODULE_2__.actions.init) return _objectSpread({
24425
+ if (action.type == react_table__WEBPACK_IMPORTED_MODULE_1__.actions.init) return _objectSpread({
24424
24426
  pinnedColumns: []
24425
24427
  }, state);
24426
- if (action.type == react_table__WEBPACK_IMPORTED_MODULE_2__.actions.togglePinColumn) {
24428
+ if (action.type == react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn) {
24427
24429
  var should = typeof action.value != 'undefined' ? action.value : !state.pinnedColumns.includes(action.columnId);
24428
24430
  var pinnedColumns = should ? [].concat(_toConsumableArray(state.pinnedColumns), [action.columnId]) : state.pinnedColumns.filter(function (d) {
24429
24431
  return d != action.columnId;
@@ -24433,20 +24435,33 @@ var usePinnedReducer = function usePinnedReducer(state, action) {
24433
24435
  });
24434
24436
  }
24435
24437
  };
24438
+ var orderByPinned = function orderByPinned(columns, columnId, isPinned) {
24439
+ var length = columns.length;
24440
+ var result = new Array(length);
24441
+ while (length--) {
24442
+ var column = columns[length];
24443
+ if (column.id == columnId) column = _objectSpread(_objectSpread({}, column), {}, {
24444
+ isPinned: isPinned
24445
+ });
24446
+ result[length] = column;
24447
+ }
24448
+ result.sort(function (a, b) {
24449
+ return +b.isPinned - +a.isPinned;
24450
+ });
24451
+ return result;
24452
+ };
24436
24453
  var usePinnedInstance = function usePinnedInstance(instance) {
24437
24454
  var flatHeaders = instance.flatHeaders,
24438
24455
  dispatch = instance.dispatch,
24439
24456
  columns = instance.columns,
24440
24457
  setColumnOrder = instance.setColumnOrder;
24441
- var togglePinColumn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (columnId, value) {
24458
+ var togglePinColumn = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (columnId, value) {
24442
24459
  dispatch({
24443
- type: react_table__WEBPACK_IMPORTED_MODULE_2__.actions.togglePinColumn,
24460
+ type: react_table__WEBPACK_IMPORTED_MODULE_1__.actions.togglePinColumn,
24444
24461
  columnId: columnId,
24445
24462
  value: value
24446
24463
  });
24447
- setColumnOrder(lodash_sortBy__WEBPACK_IMPORTED_MODULE_0___default()(columns, function (col) {
24448
- return !(col.id == columnId ? value : col.isPinned);
24449
- }).map(function (col) {
24464
+ setColumnOrder(orderByPinned(columns, columnId, value).map(function (col) {
24450
24465
  return col.id;
24451
24466
  }));
24452
24467
  }, [dispatch, columns, setColumnOrder]);
@@ -24464,7 +24479,7 @@ var usePinnedInstanceBeforeDimensions = function usePinnedInstanceBeforeDimensio
24464
24479
  flatHeaders = instance.flatHeaders,
24465
24480
  pinnedColumns = instance.state.pinnedColumns;
24466
24481
  flatHeaders.forEach(function (header) {
24467
- header.canPin = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(header.disablePinning === true ? false : undefined, disablePinning === true ? false : undefined, header.parent ? false : undefined, true);
24482
+ header.canPin = (0,_util__WEBPACK_IMPORTED_MODULE_3__.firstDefined)(header.disablePinning === true ? false : undefined, disablePinning === true ? false : undefined, header.parent ? false : undefined, true);
24468
24483
  header.isPinned = pinnedColumns.includes(header.id);
24469
24484
  });
24470
24485
  };
@@ -24950,8 +24965,8 @@ __webpack_require__.r(__webpack_exports__);
24950
24965
  /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
24951
24966
  /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
24952
24967
  /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
24953
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
24954
- /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
24968
+ /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
24969
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./src/table/util.js");
24955
24970
  // LICENSE_CODE ZON
24956
24971
 
24957
24972
 
@@ -25042,13 +25057,13 @@ var Table = function Table(props) {
25042
25057
  }();
25043
25058
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
25044
25059
  ref: wrapperRef,
25045
- className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
25060
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_11__.classNames)(classNamePrefix, {
25046
25061
  container: true
25047
25062
  }, className)
25048
25063
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
25049
25064
  ref: tableRef
25050
25065
  }, getTableProps(), {
25051
- className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
25066
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_11__.classNames)(classNamePrefix, {
25052
25067
  table: true
25053
25068
  })
25054
25069
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__["default"], {
@@ -25056,7 +25071,7 @@ var Table = function Table(props) {
25056
25071
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
25057
25072
  "data-rowgroup-type": "body"
25058
25073
  }, getTableBodyProps(), {
25059
- className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
25074
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_11__.classNames)(classNamePrefix, {
25060
25075
  tableBody: true
25061
25076
  })
25062
25077
  }), pinnedRows.map(function (row) {
@@ -25072,7 +25087,7 @@ var Table = function Table(props) {
25072
25087
  }), body), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__["default"], {
25073
25088
  rowDensity: rowDensity,
25074
25089
  classNamePrefix: classNamePrefix
25075
- }), showSticky && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__["default"], {
25090
+ }), showSticky && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__["default"], {
25076
25091
  top: offsetTop,
25077
25092
  width: width,
25078
25093
  left: left,
@@ -25095,7 +25110,7 @@ Table.propTypes = {
25095
25110
  var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
25096
25111
  displayName: "TableWrapper",
25097
25112
  componentId: "sc-ebeoik-0"
25098
- })(["width:100%;border:1px solid ", ";border-radius:4px;scrollbar-color:", " ", ";scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}"], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6);
25113
+ })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;scrollbar-color:", " ", ";scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}"], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6);
25099
25114
  TableWrapper.displayName = 'TableWrapper';
25100
25115
  var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
25101
25116
  displayName: "StyledTable",
@@ -41665,37 +41680,6 @@ ListCache.prototype.set = listCacheSet;
41665
41680
  module.exports = ListCache;
41666
41681
 
41667
41682
 
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
41683
  /***/ }),
41700
41684
 
41701
41685
  /***/ "./node_modules/lodash/_arrayMap.js":
@@ -41863,39 +41847,6 @@ function baseClamp(number, lower, upper) {
41863
41847
  module.exports = baseClamp;
41864
41848
 
41865
41849
 
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
41850
  /***/ }),
41900
41851
 
41901
41852
  /***/ "./node_modules/lodash/_baseGet.js":
@@ -41982,96 +41933,6 @@ function identity(value) {
41982
41933
  module.exports = identity;
41983
41934
 
41984
41935
 
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
41936
  /***/ }),
42076
41937
 
42077
41938
  /***/ "./node_modules/lodash/_basePickBy.js":
@@ -42112,33 +41973,6 @@ function basePickBy(object, paths, predicate) {
42112
41973
  module.exports = basePickBy;
42113
41974
 
42114
41975
 
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
41976
  /***/ }),
42143
41977
 
42144
41978
  /***/ "./node_modules/lodash/_baseSet.js":
@@ -42200,61 +42034,6 @@ function baseSet(object, path, value, customizer) {
42200
42034
  module.exports = baseSet;
42201
42035
 
42202
42036
 
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
42037
  /***/ }),
42259
42038
 
42260
42039
  /***/ "./node_modules/lodash/_castPath.js":
@@ -42309,111 +42088,6 @@ function castArray() {
42309
42088
  module.exports = castArray;
42310
42089
 
42311
42090
 
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
42091
  /***/ }),
42418
42092
 
42419
42093
  /***/ "./node_modules/lodash/_defineProperty.js":
@@ -42537,34 +42211,6 @@ function isIndex(value, length) {
42537
42211
  module.exports = isIndex;
42538
42212
 
42539
42213
 
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
42214
  /***/ }),
42569
42215
 
42570
42216
  /***/ "./node_modules/lodash/_listCacheClear.js":
@@ -42724,52 +42370,6 @@ function listCacheSet(key, value) {
42724
42370
  module.exports = listCacheSet;
42725
42371
 
42726
42372
 
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
42373
  /***/ }),
42774
42374
 
42775
42375
  /***/ "./node_modules/lodash/_root.js":
@@ -42789,37 +42389,6 @@ var root = freeGlobal || freeSelf || Function('return this')();
42789
42389
  module.exports = root;
42790
42390
 
42791
42391
 
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
42392
  /***/ }),
42824
42393
 
42825
42394
  /***/ "./node_modules/lodash/_toKey.js":
@@ -43148,37 +42717,6 @@ function eq(value, other) {
43148
42717
  module.exports = eq;
43149
42718
 
43150
42719
 
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
42720
  /***/ }),
43183
42721
 
43184
42722
  /***/ "./node_modules/lodash/isArray.js":
@@ -43335,34 +42873,6 @@ function isString(value) {
43335
42873
  module.exports = isString;
43336
42874
 
43337
42875
 
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
42876
  /***/ }),
43367
42877
 
43368
42878
  /***/ "./node_modules/lodash/memoize.js":
@@ -43526,64 +43036,6 @@ function pickBy(object, predicate) {
43526
43036
  module.exports = pickBy;
43527
43037
 
43528
43038
 
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
43039
  /***/ }),
43588
43040
 
43589
43041
  /***/ "./node_modules/lodash/toNumber.js":