@luminati-io/uikit 3.7.8 → 3.7.10-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -38477,7 +38477,7 @@ var MenuItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(fu
38477
38477
  tooltip: tooltip,
38478
38478
  noWrap: true
38479
38479
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemComp, _extends({}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'icon', 'iconPlacement'), {
38480
- "aria-disabled": disabled ? '' : undefined,
38480
+ "aria-disabled": disabled ? true : undefined,
38481
38481
  size: size,
38482
38482
  role: "button",
38483
38483
  subItems: subItems
@@ -39922,7 +39922,7 @@ __webpack_require__.r(__webpack_exports__);
39922
39922
  /*jslint react:true*/
39923
39923
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
39924
39924
 
39925
- var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection"];
39925
+ var _excluded = ["columns", "data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "columnSort", "onColumnSortChanged", "isCellEditable", "onStartEdit", "draggableRows", "onRowDragStart", "onRowDragEnd", "hoverActions", "hoverActionsDirection", "virtualized"];
39926
39926
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
39927
39927
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
39928
39928
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -40013,6 +40013,7 @@ var Provider = function Provider(props) {
40013
40013
  onRowDragEnd = props.onRowDragEnd,
40014
40014
  hoverActions = props.hoverActions,
40015
40015
  hoverActionsDirection = props.hoverActionsDirection,
40016
+ virtualized = props.virtualized,
40016
40017
  rest = _objectWithoutProperties(props, _excluded);
40017
40018
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
40018
40019
  _useState2 = _slicedToArray(_useState, 2),
@@ -40090,7 +40091,8 @@ var Provider = function Provider(props) {
40090
40091
  onRowDragStart: onRowDragStart,
40091
40092
  onRowDragEnd: onRowDragEnd,
40092
40093
  hoverActions: hoverActions,
40093
- hoverActionsDirection: hoverActionsDirection
40094
+ hoverActionsDirection: hoverActionsDirection,
40095
+ virtualized: virtualized
40094
40096
  });
40095
40097
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableContext.Provider, {
40096
40098
  value: value
@@ -40120,7 +40122,8 @@ Provider.defaultProps = {
40120
40122
  return column.canEdit;
40121
40123
  },
40122
40124
  draggableRows: false,
40123
- hoverActionsDirection: 'row'
40125
+ hoverActionsDirection: 'row',
40126
+ virtualized: false
40124
40127
  };
40125
40128
  Provider.propTypes = {
40126
40129
  columns: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
@@ -40184,7 +40187,8 @@ Provider.propTypes = {
40184
40187
  onRowDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40185
40188
  onRowDragEnd: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
40186
40189
  hoverActions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
40187
- hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['row', 'column'])
40190
+ hoverActionsDirection: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['row', 'column']),
40191
+ virtualized: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
40188
40192
  };
40189
40193
  var calcPageCount = function calcPageCount(totalCount, pageSize) {
40190
40194
  return Math.ceil(totalCount / pageSize);
@@ -40529,6 +40533,101 @@ var searchColumn = function searchColumn(search) {
40529
40533
 
40530
40534
  /***/ }),
40531
40535
 
40536
+ /***/ "./src/table/dnd.js":
40537
+ /*!**************************!*\
40538
+ !*** ./src/table/dnd.js ***!
40539
+ \**************************/
40540
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
40541
+
40542
+ "use strict";
40543
+ __webpack_require__.r(__webpack_exports__);
40544
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
40545
+ /* harmony export */ DraggableWrapper: () => (/* binding */ DraggableWrapper),
40546
+ /* harmony export */ DroppableBody: () => (/* binding */ DroppableBody)
40547
+ /* harmony export */ });
40548
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
40549
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
40550
+ /* harmony import */ var react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-beautiful-dnd */ "./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js");
40551
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
40552
+ /* harmony import */ var _row_hover_actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./row_hover_actions */ "./src/table/row_hover_actions.js");
40553
+ // LICENSE_CODE ZON
40554
+
40555
+
40556
+ /*jslint react:true*/
40557
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
40558
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
40559
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
40560
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
40561
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
40562
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
40563
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
40564
+
40565
+
40566
+
40567
+
40568
+ var useDraggableRowProps = function useDraggableRowProps(row, dndIndex) {
40569
+ var _rowProps$draggable;
40570
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_1__.useTableContext)(),
40571
+ getRowProps = _useTableContext.getRowProps,
40572
+ draggableRows = _useTableContext.draggableRows,
40573
+ prepareRow = _useTableContext.prepareRow;
40574
+ prepareRow(row);
40575
+ var rowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row));
40576
+ var draggable = (_rowProps$draggable = rowProps === null || rowProps === void 0 ? void 0 : rowProps.draggable) !== null && _rowProps$draggable !== void 0 ? _rowProps$draggable : true;
40577
+ return {
40578
+ key: row.id,
40579
+ draggableId: row.id,
40580
+ index: dndIndex,
40581
+ isDragDisabled: !draggableRows || !draggable
40582
+ };
40583
+ };
40584
+ var DraggableWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(function (props) {
40585
+ var render = props.render,
40586
+ row = props.row,
40587
+ index = props.index;
40588
+ var draggableProps = useDraggableRowProps(row, index);
40589
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_3__.Draggable, draggableProps, function (provided) {
40590
+ return render(_objectSpread(_objectSpread({}, provided.draggableProps), {}, {
40591
+ provided: provided,
40592
+ ref: provided.innerRef
40593
+ }), provided.dragHandleProps);
40594
+ });
40595
+ });
40596
+ DraggableWrapper.displayName = 'DraggableWrapper';
40597
+ var DroppableBody = function DroppableBody(props) {
40598
+ var _props$rows = props.rows,
40599
+ rows = _props$rows === void 0 ? [] : _props$rows,
40600
+ droppableProps = props.droppableProps,
40601
+ renderRow = props.renderRow;
40602
+ var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_2__.useRowHoverActions)(),
40603
+ renderHoverActions = _useRowHoverActions.renderHoverActions,
40604
+ rowHoverEvents = _useRowHoverActions.rowHoverEvents;
40605
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_3__.Droppable, droppableProps, function (provided) {
40606
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
40607
+ ref: provided.innerRef
40608
+ }, provided.droppableProps), rows.map(function (row, index) {
40609
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(DraggableWrapper, {
40610
+ key: row.id,
40611
+ row: row,
40612
+ index: index,
40613
+ render: function render(wrapperProps, dragHandleProps) {
40614
+ return renderRow({
40615
+ row: row,
40616
+ index: index,
40617
+ wrapperProps: _objectSpread(_objectSpread(_objectSpread({}, wrapperProps), rowHoverEvents), {}, {
40618
+ onPointerEnter: function onPointerEnter(e) {
40619
+ return rowHoverEvents.onPointerEnter(e, row, dragHandleProps);
40620
+ }
40621
+ })
40622
+ });
40623
+ }
40624
+ });
40625
+ }), provided.placeholder), renderHoverActions());
40626
+ });
40627
+ };
40628
+
40629
+ /***/ }),
40630
+
40532
40631
  /***/ "./src/table/editable_columns.js":
40533
40632
  /*!***************************************!*\
40534
40633
  !*** ./src/table/editable_columns.js ***!
@@ -41976,25 +42075,28 @@ __webpack_require__.r(__webpack_exports__);
41976
42075
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
41977
42076
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
41978
42077
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
41979
- /* harmony import */ var react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-beautiful-dnd */ "./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js");
41980
42078
  /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
41981
42079
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
41982
42080
  /* harmony import */ var _table_cell__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table_cell */ "./src/table/table_cell.js");
41983
- /* harmony import */ var _row_hover_actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./row_hover_actions */ "./src/table/row_hover_actions.js");
41984
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
41985
42081
  // LICENSE_CODE ZON
41986
42082
 
41987
42083
 
41988
42084
  /*jslint react:true*/
42085
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
42086
+ var _excluded = ["provided", "style"];
42087
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42088
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42089
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
42090
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
42091
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
42092
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
42093
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
41989
42094
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
41990
42095
 
41991
42096
 
41992
42097
 
41993
42098
 
41994
42099
 
41995
-
41996
-
41997
-
41998
42100
  var preventOnClickClass = 'tableCell--preventOnClick';
41999
42101
  var renderRow = function renderRow(opt) {
42000
42102
  var className = opt.className,
@@ -42004,7 +42106,7 @@ var renderRow = function renderRow(opt) {
42004
42106
  rowDensity = opt.rowDensity,
42005
42107
  isLast = opt.isLast,
42006
42108
  renderRowSubComponent = opt.renderRowSubComponent,
42007
- dndIndex = opt.dndIndex;
42109
+ wrapperProps = opt.wrapperProps;
42008
42110
  var isExpanded = row.isExpanded,
42009
42111
  isPinned = row.isPinned,
42010
42112
  original = row.original;
@@ -42034,15 +42136,13 @@ var renderRow = function renderRow(opt) {
42034
42136
  var wrapperKey = "".concat(rowProps.key || row.id, "_wrapper");
42035
42137
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowWrapper, {
42036
42138
  key: wrapperKey,
42037
- dndIndex: dndIndex,
42038
- row: row
42139
+ wrapperProps: wrapperProps
42039
42140
  }, tableRow);
42040
42141
  }
42041
42142
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
42042
42143
  key: "".concat(rowProps.key, "_fragment")
42043
42144
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowWrapper, {
42044
- dndIndex: dndIndex,
42045
- row: row
42145
+ wrapperProps: wrapperProps
42046
42146
  }, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableRow, _extends({}, rowProps, {
42047
42147
  key: "".concat(rowProps.key, "_subcomponent"),
42048
42148
  className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
@@ -42066,43 +42166,26 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.with
42066
42166
  white_spaced: '72'
42067
42167
  }[props.$rowDensity] || '32';
42068
42168
  }, _table_cell__WEBPACK_IMPORTED_MODULE_4__.TableCellContent, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2);
42069
- var useDraggableRowProps = function useDraggableRowProps(row, dndIndex) {
42070
- var _rowProps$draggable;
42071
- var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
42072
- getRowProps = _useTableContext.getRowProps,
42073
- draggableRows = _useTableContext.draggableRows;
42074
- var rowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row));
42075
- var draggable = (_rowProps$draggable = rowProps === null || rowProps === void 0 ? void 0 : rowProps.draggable) !== null && _rowProps$draggable !== void 0 ? _rowProps$draggable : true;
42076
- return {
42077
- key: row.id,
42078
- draggableId: row.id,
42079
- index: dndIndex,
42080
- isDragDisabled: !draggableRows || !draggable
42081
- };
42082
- };
42083
- var RowWrapper = function RowWrapper(props) {
42169
+ var RowWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(function (props) {
42170
+ var _provided$draggablePr;
42084
42171
  var children = props.children,
42085
- dndIndex = props.dndIndex,
42086
- row = props.row;
42087
- var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_5__.useRowHoverActions)(row),
42088
- renderHoverActions = _useRowHoverActions.renderHoverActions,
42089
- setRowRef = _useRowHoverActions.setRowRef,
42090
- hoverProps = _useRowHoverActions.hoverProps;
42091
- var handleWrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (rowElment, cb) {
42092
- setRowRef(rowElment);
42093
- cb(rowElment);
42094
- }, []);
42095
- var draggableProps = useDraggableRowProps(row, dndIndex);
42096
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__.Draggable, draggableProps, function (provided) {
42097
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({}, provided.draggableProps, hoverProps, {
42098
- ref: function ref(element) {
42099
- return handleWrapperRef(element, provided.innerRef);
42100
- }
42101
- }), children, renderHoverActions({
42102
- dragHandleProps: provided.dragHandleProps
42103
- }));
42172
+ _props$wrapperProps = props.wrapperProps,
42173
+ wrapperProps = _props$wrapperProps === void 0 ? {} : _props$wrapperProps;
42174
+ var _wrapperProps$provide = wrapperProps.provided,
42175
+ provided = _wrapperProps$provide === void 0 ? {} : _wrapperProps$provide,
42176
+ _wrapperProps$style = wrapperProps.style,
42177
+ style = _wrapperProps$style === void 0 ? {} : _wrapperProps$style,
42178
+ rest = _objectWithoutProperties(wrapperProps, _excluded);
42179
+ var _wrapperProps = _objectSpread(_objectSpread(_objectSpread({}, rest), provided.draggableProps), {}, {
42180
+ style: _objectSpread(_objectSpread({}, style), (_provided$draggablePr = provided.draggableProps) === null || _provided$draggablePr === void 0 ? void 0 : _provided$draggablePr.style)
42104
42181
  });
42105
- };
42182
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _wrapperProps, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
42183
+ style: {
42184
+ visibility: 'hidden'
42185
+ }
42186
+ }, provided.dragHandleProps)));
42187
+ });
42188
+ RowWrapper.displayName = 'RowWrapper';
42106
42189
 
42107
42190
  /***/ }),
42108
42191
 
@@ -42129,7 +42212,13 @@ __webpack_require__.r(__webpack_exports__);
42129
42212
 
42130
42213
 
42131
42214
  /*jslint react:true*/
42215
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
42132
42216
  var _excluded = ["visible", "dragHandleProps", "row"];
42217
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42218
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42219
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
42220
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
42221
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
42133
42222
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
42134
42223
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
42135
42224
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -42155,7 +42244,9 @@ var RowHoverActions = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
42155
42244
  getRowProps = _useTableContext.getRowProps,
42156
42245
  draggableRows = _useTableContext.draggableRows,
42157
42246
  contextHoverActions = _useTableContext.hoverActions,
42158
- hoverActionsDirection = _useTableContext.hoverActionsDirection;
42247
+ hoverActionsDirection = _useTableContext.hoverActionsDirection,
42248
+ prepareRow = _useTableContext.prepareRow;
42249
+ prepareRow(row);
42159
42250
  var _row$getRowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row)),
42160
42251
  draggable = _row$getRowProps.draggable;
42161
42252
  var hoverActions = typeof contextHoverActions == 'function' ? contextHoverActions(row) : contextHoverActions;
@@ -42185,13 +42276,13 @@ var HoverActionsList = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
42185
42276
  }, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing['02'], function (props) {
42186
42277
  return props.$visible ? 'visible' : 'hidden';
42187
42278
  });
42188
- var useRowHoverActions = function useRowHoverActions(row) {
42279
+ var useRowHoverActions = function useRowHoverActions() {
42189
42280
  var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
42190
42281
  isDraggingRow = _useTableContext2.isDraggingRow;
42191
42282
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
42192
42283
  _useState2 = _slicedToArray(_useState, 2),
42193
- rowRef = _useState2[0],
42194
- setRowRef = _useState2[1];
42284
+ hoveredRow = _useState2[0],
42285
+ setHoveredRow = _useState2[1];
42195
42286
  var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
42196
42287
  _useState4 = _slicedToArray(_useState3, 2),
42197
42288
  hoverActionsRef = _useState4[0],
@@ -42200,7 +42291,7 @@ var useRowHoverActions = function useRowHoverActions(row) {
42200
42291
  _useState6 = _slicedToArray(_useState5, 2),
42201
42292
  visibleHoverActions = _useState6[0],
42202
42293
  setVisibleHoverActions = _useState6[1];
42203
- var _usePopper = (0,react_popper__WEBPACK_IMPORTED_MODULE_5__.usePopper)(rowRef, hoverActionsRef, {
42294
+ var _usePopper = (0,react_popper__WEBPACK_IMPORTED_MODULE_5__.usePopper)(hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.ref, hoverActionsRef, {
42204
42295
  modifiers: [{
42205
42296
  name: 'flip',
42206
42297
  enabled: true,
@@ -42213,31 +42304,47 @@ var useRowHoverActions = function useRowHoverActions(row) {
42213
42304
  styles = _usePopper.styles,
42214
42305
  attributes = _usePopper.attributes,
42215
42306
  update = _usePopper.update;
42216
- var onPointerEnter = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42307
+ var _onPointerEnter = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42217
42308
  if (typeof update == 'function') update();
42218
42309
  !isDraggingRow && setVisibleHoverActions(true);
42219
42310
  }, [isDraggingRow, update]);
42220
42311
  var onPointerLeave = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42221
42312
  return setVisibleHoverActions(false);
42222
42313
  }, []);
42223
- var hoverProps = {
42224
- onPointerEnter: onPointerEnter,
42225
- onPointerLeave: onPointerLeave
42226
- };
42227
- var renderHoverActions = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42228
- var extraProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
42229
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowHoverActions, _extends({
42314
+ var rowHoverEvents = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
42315
+ return {
42316
+ onPointerEnter: function onPointerEnter(e, row, dragHandleProps) {
42317
+ setHoveredRow({
42318
+ row: row,
42319
+ ref: e.currentTarget,
42320
+ dragHandleProps: dragHandleProps
42321
+ });
42322
+ _onPointerEnter();
42323
+ },
42324
+ onPointerLeave: onPointerLeave
42325
+ };
42326
+ }, [_onPointerEnter, onPointerLeave]);
42327
+ var popperProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
42328
+ return _objectSpread(_objectSpread({
42329
+ onPointerEnter: _onPointerEnter,
42330
+ onPointerLeave: onPointerLeave
42331
+ }, attributes.popper), {}, {
42332
+ style: _objectSpread(_objectSpread({}, styles.popper), {}, {
42333
+ zIndex: 9999
42334
+ }),
42230
42335
  visible: visibleHoverActions,
42231
- row: row,
42232
- ref: setHoverActionsRef
42233
- }, hoverProps, {
42234
- style: styles.popper
42235
- }, attributes.popper, extraProps));
42236
- }, [row, visibleHoverActions, styles, attributes, hoverProps]);
42336
+ row: hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.row,
42337
+ ref: setHoverActionsRef,
42338
+ dragHandleProps: hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.dragHandleProps
42339
+ });
42340
+ }, [_onPointerEnter, onPointerLeave, attributes, styles, isDraggingRow, visibleHoverActions, setHoverActionsRef, hoveredRow]);
42341
+ var renderHoverActions = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
42342
+ if (!(hoveredRow !== null && hoveredRow !== void 0 && hoveredRow.row) || !(hoveredRow !== null && hoveredRow !== void 0 && hoveredRow.ref)) return null;
42343
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowHoverActions, popperProps);
42344
+ }, [hoveredRow === null || hoveredRow === void 0 ? void 0 : hoveredRow.row, popperProps]);
42237
42345
  return {
42238
42346
  renderHoverActions: renderHoverActions,
42239
- setRowRef: setRowRef,
42240
- hoverProps: hoverProps
42347
+ rowHoverEvents: rowHoverEvents
42241
42348
  };
42242
42349
  };
42243
42350
 
@@ -42344,6 +42451,7 @@ var PopoverMenu = function PopoverMenu(props) {
42344
42451
  keepPopover = _ref2.keepPopover,
42345
42452
  item = _objectWithoutProperties(_ref2, _excluded);
42346
42453
  var onItemClick = function onItemClick(evt) {
42454
+ if (item.disabled) return;
42347
42455
  if (!keepPopover) togglePopover();
42348
42456
  onClick === null || onClick === void 0 || onClick(row, evt);
42349
42457
  };
@@ -42871,14 +42979,18 @@ __webpack_require__.r(__webpack_exports__);
42871
42979
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
42872
42980
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
42873
42981
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
42874
- /* harmony import */ var react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-beautiful-dnd */ "./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js");
42875
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
42876
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
42877
- /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
42878
- /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
42879
- /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
42880
- /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
42881
- /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
42982
+ /* harmony import */ var react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-beautiful-dnd */ "./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js");
42983
+ /* harmony import */ var react_virtualized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-virtualized */ "react-virtualized");
42984
+ /* harmony import */ var react_virtualized__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_virtualized__WEBPACK_IMPORTED_MODULE_4__);
42985
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
42986
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
42987
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
42988
+ /* harmony import */ var _footer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./footer */ "./src/table/footer.js");
42989
+ /* harmony import */ var _header__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./header */ "./src/table/header.js");
42990
+ /* harmony import */ var _render_row__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./render_row */ "./src/table/render_row.js");
42991
+ /* harmony import */ var _sticky_header__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./sticky_header */ "./src/table/sticky_header.js");
42992
+ /* harmony import */ var _virtualized_body__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./virtualized_body */ "./src/table/virtualized_body.js");
42993
+ /* harmony import */ var _dnd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dnd */ "./src/table/dnd.js");
42882
42994
  // LICENSE_CODE ZON
42883
42995
 
42884
42996
 
@@ -42892,6 +43004,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
42892
43004
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
42893
43005
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
42894
43006
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
43007
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
43008
+ 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."); }
43009
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
43010
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
43011
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
43012
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
42895
43013
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
42896
43014
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
42897
43015
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
@@ -42905,27 +43023,31 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
42905
43023
 
42906
43024
 
42907
43025
 
43026
+
43027
+
43028
+
42908
43029
  var Table = function Table(props) {
42909
- var context = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)();
43030
+ var context = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)();
42910
43031
  // not under context
42911
- if (context === _context__WEBPACK_IMPORTED_MODULE_6__.defaultContextValue) {
42912
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_6__["default"], props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
43032
+ if (context === _context__WEBPACK_IMPORTED_MODULE_7__.defaultContextValue) {
43033
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_context__WEBPACK_IMPORTED_MODULE_7__["default"], props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props));
42913
43034
  }
42914
43035
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InnerTable, props);
42915
43036
  };
42916
43037
  Table.displayName = 'Table';
42917
- Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes);
43038
+ Table.propTypes = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(_context__WEBPACK_IMPORTED_MODULE_7__["default"].propTypes);
42918
43039
  var InnerTable = function InnerTable(props) {
42919
- var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
43040
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
42920
43041
  getTableProps = _useTableContext.getTableProps,
42921
43042
  context = _objectWithoutProperties(_useTableContext, _excluded);
42922
- var className = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.className, context.className);
42923
- var rowDensity = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.rowDensity, context.rowDensity);
42924
- var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.onRowClick, context.onRowClick);
42925
- var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.stickyHeader, context.stickyHeader);
42926
- var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollTarget, context.scrollTarget);
42927
- var scrollable = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollable, context.scrollable);
42928
- var scrollHeight = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(props.scrollHeight, context.scrollHeight);
43043
+ var className = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.className, context.className);
43044
+ var rowDensity = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.rowDensity, context.rowDensity);
43045
+ var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.onRowClick, context.onRowClick);
43046
+ var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.stickyHeader, context.stickyHeader);
43047
+ var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.scrollTarget, context.scrollTarget);
43048
+ var scrollable = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.scrollable, context.scrollable);
43049
+ var virtualized = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.virtualized, context.virtualized);
43050
+ var scrollHeight = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(props.scrollHeight, context.scrollHeight);
42929
43051
  var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
42930
43052
  var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
42931
43053
  var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
@@ -42938,23 +43060,29 @@ var InnerTable = function InnerTable(props) {
42938
43060
  var headStyle = scrollable ? {
42939
43061
  overflow: 'hidden'
42940
43062
  } : undefined;
42941
- var bodyStyle = scrollable ? {
42942
- overflow: 'auto',
42943
- maxHeight: scrollHeight
42944
- } : undefined;
43063
+ var bodyStyle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
43064
+ if (virtualized) return {
43065
+ maxHeight: scrollHeight
43066
+ };
43067
+ if (scrollable) return {
43068
+ overflow: 'auto',
43069
+ maxHeight: scrollHeight
43070
+ };
43071
+ }, [virtualized, scrollable]);
42945
43072
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, _extends({
42946
43073
  ref: wrapperRef
42947
- }, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(props), {
42948
- className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
43074
+ }, (0,_util__WEBPACK_IMPORTED_MODULE_6__.getCommonProps)(props), {
43075
+ $virtualized: virtualized,
43076
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(className, {
42949
43077
  container: true
42950
43078
  }, className)
42951
43079
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
42952
43080
  ref: tableRef
42953
43081
  }, getTableProps(), {
42954
- className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
43082
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(className, {
42955
43083
  table: true
42956
43084
  })
42957
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
43085
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_9__.TableHeader, {
42958
43086
  ref: headerRef,
42959
43087
  className: className,
42960
43088
  style: headStyle
@@ -42964,12 +43092,12 @@ var InnerTable = function InnerTable(props) {
42964
43092
  onRowClick: onRowClick,
42965
43093
  style: bodyStyle,
42966
43094
  onScroll: onScroll
42967
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_7__.TableFooter, {
43095
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__.TableFooter, {
42968
43096
  ref: footerRef,
42969
43097
  rowDensity: rowDensity,
42970
43098
  className: className,
42971
43099
  style: headStyle
42972
- }), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_10__.StickyHeader, {
43100
+ }), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__.StickyHeader, {
42973
43101
  offsetTop: offsetTop,
42974
43102
  onRowClick: onRowClick,
42975
43103
  rowDensity: rowDensity,
@@ -42983,7 +43111,9 @@ InnerTable.displayName = 'InnerTable';
42983
43111
  var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42984
43112
  displayName: "TableWrapper",
42985
43113
  componentId: "sc-ebeoik-0"
42986
- })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].scrollbars.thin);
43114
+ })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, function (props) {
43115
+ return props.$virtualized ? 'unset' : 'auto';
43116
+ }, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].scrollbars.thin);
42987
43117
  var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
42988
43118
  displayName: "StyledTable",
42989
43119
  componentId: "sc-ebeoik-1"
@@ -42993,7 +43123,7 @@ var TableBody = function TableBody(props) {
42993
43123
  rowDensity = props.rowDensity,
42994
43124
  onRowClick = props.onRowClick,
42995
43125
  onScroll = props.onScroll;
42996
- var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
43126
+ var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
42997
43127
  getTableBodyProps = _useTableContext2.getTableBodyProps,
42998
43128
  prepareRow = _useTableContext2.prepareRow,
42999
43129
  page = _useTableContext2.page,
@@ -43008,23 +43138,39 @@ var TableBody = function TableBody(props) {
43008
43138
  onRowDragStart = _useTableContext2.onRowDragStart,
43009
43139
  onRowDragEnd = _useTableContext2.onRowDragEnd,
43010
43140
  rowsById = _useTableContext2.rowsById;
43141
+ var rows = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
43142
+ return [].concat(_toConsumableArray(pinnedRows), _toConsumableArray(page.filter(function (row) {
43143
+ return !row.isPinned;
43144
+ })));
43145
+ }, [pinnedRows, page]);
43146
+ var _renderRow = function _renderRow(_ref) {
43147
+ var row = _ref.row,
43148
+ index = _ref.index,
43149
+ wrapperProps = _ref.wrapperProps;
43150
+ prepareRow(row);
43151
+ return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__.renderRow)({
43152
+ row: row,
43153
+ rowDensity: rowDensity,
43154
+ onRowClick: onRowClick,
43155
+ isLast: !row.isPinned && index == rows.length - 1,
43156
+ showExpand: !row.isPinned && row.canExpand,
43157
+ className: className,
43158
+ getRowProps: getRowProps,
43159
+ renderRowSubComponent: renderRowSubComponent,
43160
+ wrapperProps: wrapperProps
43161
+ });
43162
+ };
43163
+ var cache = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(new react_virtualized__WEBPACK_IMPORTED_MODULE_4__.CellMeasurerCache({
43164
+ fixedWidth: true,
43165
+ defaultHeight: 30
43166
+ }));
43011
43167
  var body = function () {
43012
- if (isLoading) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(LoadingComp);
43013
- if (!page.length) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(NoDataComp);
43014
- return page.map(function (row, i) {
43015
- prepareRow(row);
43016
- if (row.isPinned) return null;
43017
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
43018
- row: row,
43019
- rowDensity: rowDensity,
43020
- onRowClick: onRowClick,
43021
- isLast: i == page.length - 1,
43022
- showExpand: row.canExpand,
43023
- className: className,
43024
- getRowProps: getRowProps,
43025
- renderRowSubComponent: renderRowSubComponent,
43026
- dndIndex: i
43027
- });
43168
+ if (isLoading) return (0,_util__WEBPACK_IMPORTED_MODULE_6__.flexRender)(LoadingComp);
43169
+ if (!rows.length) return (0,_util__WEBPACK_IMPORTED_MODULE_6__.flexRender)(NoDataComp);
43170
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(Body, {
43171
+ rows: rows,
43172
+ renderRow: _renderRow,
43173
+ measurerCache: cache
43028
43174
  });
43029
43175
  }();
43030
43176
  var bodyProps = getTableBodyProps();
@@ -43032,66 +43178,57 @@ var TableBody = function TableBody(props) {
43032
43178
  var onDragStart = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
43033
43179
  setIsDraggingRow(true);
43034
43180
  var context = {
43035
- page: page
43181
+ page: rows
43036
43182
  };
43037
43183
  onRowDragStart === null || onRowDragStart === void 0 || onRowDragStart(e, rowsById[e.draggableId], context);
43038
- }, [page]);
43184
+ }, [rows]);
43039
43185
  var onDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
43040
- var _page$e$destination$i, _e$destination;
43186
+ var _rows$e$destination$i, _e$destination, _rowsById$destRowId;
43041
43187
  setIsDraggingRow(false);
43042
- var destRowId = (_page$e$destination$i = page[(_e$destination = e.destination) === null || _e$destination === void 0 ? void 0 : _e$destination.index]) === null || _page$e$destination$i === void 0 ? void 0 : _page$e$destination$i.id;
43188
+ var destRowId = (_rows$e$destination$i = rows[(_e$destination = e.destination) === null || _e$destination === void 0 ? void 0 : _e$destination.index]) === null || _rows$e$destination$i === void 0 ? void 0 : _rows$e$destination$i.id;
43043
43189
  var context = {
43044
- previousPage: page
43190
+ previousPage: rows
43045
43191
  };
43046
- onRowDragEnd === null || onRowDragEnd === void 0 || onRowDragEnd(e, rowsById[e.draggableId], rowsById[destRowId], context);
43047
- }, [page]);
43048
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_11__.DragDropContext, {
43192
+ var originRow = rowsById[e.draggableId];
43193
+ var destRow = ((_rowsById$destRowId = rowsById[destRowId]) === null || _rowsById$destRowId === void 0 ? void 0 : _rowsById$destRowId.isPinned) == (originRow === null || originRow === void 0 ? void 0 : originRow.isPinned) ? rowsById[destRowId] : undefined;
43194
+ var event = destRow ? e : _objectSpread(_objectSpread({}, e), {}, {
43195
+ destination: null,
43196
+ combine: null
43197
+ });
43198
+ cache.current.clearAll();
43199
+ onRowDragEnd === null || onRowDragEnd === void 0 || onRowDragEnd(event, originRow, destRow, context);
43200
+ }, [rows, cache.current]);
43201
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_14__.DragDropContext, {
43049
43202
  onDragStart: onDragStart,
43050
43203
  onDragEnd: onDragEnd
43051
43204
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBodyRowGroup, _extends({
43052
43205
  "data-rowgroup-type": "body"
43053
43206
  }, bodyProps, {
43054
43207
  style: style,
43055
- className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
43208
+ className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.classNames)(className, {
43056
43209
  tableBody: true
43057
43210
  }),
43058
43211
  onScroll: onScroll
43059
- }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(DroppableBodyRowGroup, {
43060
- id: "table-body-pinned-rows",
43061
- type: "PINNED_ROWS"
43062
- }, pinnedRows.map(function (row, i) {
43063
- prepareRow(row);
43064
- return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
43065
- row: row,
43066
- rowDensity: rowDensity,
43067
- onRowClick: onRowClick,
43068
- className: className,
43069
- getRowProps: getRowProps,
43070
- renderRowSubComponent: renderRowSubComponent,
43071
- dndIndex: i
43072
- });
43073
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(DroppableBodyRowGroup, {
43074
- id: "table-body-rows",
43075
- type: "ROWS"
43076
- }, body)));
43212
+ }), body));
43077
43213
  };
43078
- var DroppableBodyRowGroup = function DroppableBodyRowGroup(props) {
43079
- var children = props.children,
43080
- id = props.id,
43081
- type = props.type;
43082
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_11__.Droppable, {
43083
- droppableId: id,
43084
- type: type
43085
- }, function (provided) {
43086
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
43087
- ref: provided.innerRef
43088
- }, provided.droppableProps), children, provided.placeholder);
43089
- });
43214
+ var Body = function Body(props) {
43215
+ var _useTableContext3 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
43216
+ virtualized = _useTableContext3.virtualized;
43217
+ var droppableProps = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
43218
+ return {
43219
+ droppableId: 'table-body-rows',
43220
+ type: 'ROWS'
43221
+ };
43222
+ }, []);
43223
+ var BodyComp = virtualized ? _virtualized_body__WEBPACK_IMPORTED_MODULE_12__.VirtualizedBody : _dnd__WEBPACK_IMPORTED_MODULE_13__.DroppableBody;
43224
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(BodyComp, _extends({}, props, {
43225
+ droppableProps: droppableProps
43226
+ }));
43090
43227
  };
43091
43228
  var TableBodyRowGroup = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
43092
43229
  displayName: "TableBodyRowGroup",
43093
43230
  componentId: "sc-ebeoik-2"
43094
- })(["", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].scrollbars.thin);
43231
+ })(["", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].scrollbars.thin);
43095
43232
 
43096
43233
  /***/ }),
43097
43234
 
@@ -43215,6 +43352,190 @@ var EditableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default
43215
43352
 
43216
43353
  /***/ }),
43217
43354
 
43355
+ /***/ "./src/table/virtualized_body.js":
43356
+ /*!***************************************!*\
43357
+ !*** ./src/table/virtualized_body.js ***!
43358
+ \***************************************/
43359
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
43360
+
43361
+ "use strict";
43362
+ __webpack_require__.r(__webpack_exports__);
43363
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43364
+ /* harmony export */ VirtualizedBody: () => (/* binding */ VirtualizedBody)
43365
+ /* harmony export */ });
43366
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
43367
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
43368
+ /* harmony import */ var react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-beautiful-dnd */ "./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js");
43369
+ /* harmony import */ var react_virtualized__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-virtualized */ "react-virtualized");
43370
+ /* harmony import */ var react_virtualized__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_virtualized__WEBPACK_IMPORTED_MODULE_1__);
43371
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
43372
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
43373
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
43374
+ /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
43375
+ /* harmony import */ var _dnd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dnd */ "./src/table/dnd.js");
43376
+ /* harmony import */ var _row_hover_actions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./row_hover_actions */ "./src/table/row_hover_actions.js");
43377
+ // LICENSE_CODE ZON
43378
+
43379
+
43380
+ /*jslint react:true*/
43381
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
43382
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
43383
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
43384
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
43385
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
43386
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
43387
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
43388
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43389
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
43390
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
43391
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43392
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
43393
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
43394
+
43395
+
43396
+
43397
+
43398
+
43399
+
43400
+
43401
+
43402
+ var RowRenderer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(function (props) {
43403
+ var row = props.row,
43404
+ cache = props.cache,
43405
+ renderRow = props.renderRow,
43406
+ index = props.index,
43407
+ style = props.style,
43408
+ parent = props.parent,
43409
+ rowHoverEvents = props.rowHoverEvents;
43410
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.CellMeasurer, {
43411
+ cache: cache.current,
43412
+ parent: parent,
43413
+ columnIndex: 0,
43414
+ rowIndex: index
43415
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_dnd__WEBPACK_IMPORTED_MODULE_5__.DraggableWrapper, {
43416
+ key: row.id,
43417
+ row: row,
43418
+ index: index,
43419
+ render: function render(wrapperProps, dragHandleProps) {
43420
+ return renderRow({
43421
+ row: row,
43422
+ index: index,
43423
+ wrapperProps: _objectSpread(_objectSpread(_objectSpread({}, wrapperProps), rowHoverEvents), {}, {
43424
+ onPointerEnter: function onPointerEnter(e) {
43425
+ return rowHoverEvents.onPointerEnter(e, row, dragHandleProps);
43426
+ },
43427
+ style: style
43428
+ })
43429
+ });
43430
+ }
43431
+ }));
43432
+ });
43433
+ RowRenderer.displayName = 'RowRenderer';
43434
+ var rowRenderer = function rowRenderer(rows, cache, renderRow, rowHoverEvents) {
43435
+ var RendererWrapper = function RendererWrapper(_ref) {
43436
+ var key = _ref.key,
43437
+ index = _ref.index,
43438
+ style = _ref.style,
43439
+ parent = _ref.parent;
43440
+ var row = rows[index];
43441
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowRenderer, {
43442
+ key: key,
43443
+ row: row,
43444
+ index: index,
43445
+ style: style,
43446
+ parent: parent,
43447
+ cache: cache,
43448
+ renderRow: renderRow,
43449
+ rowHoverEvents: rowHoverEvents
43450
+ });
43451
+ };
43452
+ return RendererWrapper;
43453
+ };
43454
+ var renderClone = function renderClone(rows, renderRow) {
43455
+ return function (provided, snapshot, rubric) {
43456
+ var row = rows[rubric.source.index];
43457
+ var wrapperProps = {
43458
+ provided: provided,
43459
+ ref: provided.innerRef
43460
+ };
43461
+ return renderRow({
43462
+ row: row,
43463
+ index: rubric.source.index,
43464
+ wrapperProps: wrapperProps
43465
+ });
43466
+ };
43467
+ };
43468
+ var listRefHandler = function listRefHandler(droppableProvided, setListRef) {
43469
+ return function (ref) {
43470
+ var _ref$Grid;
43471
+ if (!ref) return;
43472
+ var element = ref === null || ref === void 0 || (_ref$Grid = ref.Grid) === null || _ref$Grid === void 0 ? void 0 : _ref$Grid._scrollingContainer;
43473
+ if (element instanceof window.HTMLElement) {
43474
+ setListRef(element === null || element === void 0 ? void 0 : element.firstChild);
43475
+ droppableProvided.innerRef(element);
43476
+ }
43477
+ };
43478
+ };
43479
+ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
43480
+ var rows = props.rows,
43481
+ measurerCache = props.measurerCache,
43482
+ renderRow = props.renderRow,
43483
+ droppableProps = props.droppableProps;
43484
+ var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
43485
+ maxHeight = _useTableContext.scrollHeight;
43486
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),
43487
+ _useState2 = _slicedToArray(_useState, 2),
43488
+ listRef = _useState2[0],
43489
+ setListRef = _useState2[1];
43490
+ var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
43491
+ _useState4 = _slicedToArray(_useState3, 2),
43492
+ _height = _useState4[0],
43493
+ setHeight = _useState4[1];
43494
+ var _useRowHoverActions = (0,_row_hover_actions__WEBPACK_IMPORTED_MODULE_6__.useRowHoverActions)(),
43495
+ renderHoverActions = _useRowHoverActions.renderHoverActions,
43496
+ rowHoverEvents = _useRowHoverActions.rowHoverEvents;
43497
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
43498
+ if (listRef) listRef.style.overflow = 'unset';
43499
+ setHeight(rows.reduce(function (acc, row, index) {
43500
+ return acc += measurerCache.current.getHeight(index, 0);
43501
+ }, 0));
43502
+ }, [listRef, rows]);
43503
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_7__.Droppable, _extends({}, droppableProps, {
43504
+ mode: "virtual",
43505
+ renderClone: renderClone(rows, renderRow)
43506
+ }), function (provided) {
43507
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
43508
+ style: {
43509
+ height: _height,
43510
+ maxHeight: maxHeight,
43511
+ width: '100%'
43512
+ }
43513
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.AutoSizer, null, function (_ref2) {
43514
+ var width = _ref2.width,
43515
+ height = _ref2.height;
43516
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
43517
+ width: width,
43518
+ height: height,
43519
+ overscanRowCount: 7,
43520
+ estimatedRowSize: 30,
43521
+ rowHeight: measurerCache.current.rowHeight,
43522
+ rowCount: rows.length,
43523
+ deferredMeasurementCache: measurerCache.current,
43524
+ ref: listRefHandler(provided, setListRef),
43525
+ rowRenderer: rowRenderer(rows, measurerCache, renderRow, rowHoverEvents)
43526
+ });
43527
+ })), renderHoverActions());
43528
+ });
43529
+ };
43530
+ var VirtualizedBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(VirtualizedBodyComp);
43531
+ VirtualizedBody.displayName = 'VirtualizedBody';
43532
+ var StyledList = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(react_virtualized__WEBPACK_IMPORTED_MODULE_1__.List).withConfig({
43533
+ displayName: "StyledList",
43534
+ componentId: "sc-1mdy9tq-0"
43535
+ })(["", ""], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].scrollbars.thin);
43536
+
43537
+ /***/ }),
43538
+
43218
43539
  /***/ "./src/tag/base.js":
43219
43540
  /*!*************************!*\
43220
43541
  !*** ./src/tag/base.js ***!