@luminati-io/uikit 3.5.2 → 3.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -37907,7 +37907,7 @@ var Provider = function Provider(props) {
|
|
37907
37907
|
getCellProps: getCellProps,
|
37908
37908
|
getFooterProps: getFooterProps,
|
37909
37909
|
ExpandHandleComp: ExpandHandleComp
|
37910
|
-
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'initialState', 'hiddenColumns', 'pinnedColumns', 'columnOrder')), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_10__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_3__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_3__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_3__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_3__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_9__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_8__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_11__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_12__.useRowMenu] : []), _toConsumableArray(hooks)));
|
37910
|
+
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'initialState', 'hiddenColumns', 'pinnedColumns', 'columnOrder', 'expandColumnId')), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_10__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_3__.usePagination, props.fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_3__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_3__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_3__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_9__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_8__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_3__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_11__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_12__.useRowMenu] : []), _toConsumableArray(hooks)));
|
37911
37911
|
var _table$state = table.state,
|
37912
37912
|
pageIndex = _table$state.pageIndex,
|
37913
37913
|
_pageSize = _table$state.pageSize;
|
@@ -37925,7 +37925,7 @@ var Provider = function Provider(props) {
|
|
37925
37925
|
var _LoadingComp = useComp(loadingText, LoadingComp);
|
37926
37926
|
var _NoDataComp = useComp(noDataText, NoDataComp);
|
37927
37927
|
var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_13__.useOrderLogic)(table);
|
37928
|
-
var expandColumnId = (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id;
|
37928
|
+
var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(props.expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
|
37929
37929
|
var value = _objectSpread(_objectSpread({
|
37930
37930
|
columnSort: columnSort,
|
37931
37931
|
onColumnSortChanged: onColumnSortChanged,
|
@@ -38023,7 +38023,8 @@ Provider.propTypes = {
|
|
38023
38023
|
canOrderColumns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38024
38024
|
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
38025
38025
|
scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38026
|
-
scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
38026
|
+
scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
38027
|
+
expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
38027
38028
|
};
|
38028
38029
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
38029
38030
|
return Math.ceil(totalCount / pageSize);
|