@luminati-io/uikit 3.1.11 → 3.2.0
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.
@@ -35101,6 +35101,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
35101
35101
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! styled-components */ "styled-components");
|
35102
35102
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_19__);
|
35103
35103
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
35104
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
35104
35105
|
// LICENSE_CODE ZON
|
35105
35106
|
|
35106
35107
|
|
@@ -35124,6 +35125,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
35124
35125
|
|
35125
35126
|
|
35126
35127
|
|
35128
|
+
|
35127
35129
|
|
35128
35130
|
|
35129
35131
|
(prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_1___default().manual) = true;
|
@@ -35131,7 +35133,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
35131
35133
|
// import 'prismjs/plugins/line-numbers/prism-line-numbers';
|
35132
35134
|
|
35133
35135
|
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
35134
|
-
var
|
35136
|
+
var className = props.className,
|
35137
|
+
text = props.text,
|
35135
35138
|
lang = props.lang,
|
35136
35139
|
themeProp = props.theme,
|
35137
35140
|
lineNumbers = props.lineNumbers;
|
@@ -35141,7 +35144,7 @@ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
|
|
35141
35144
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeWrapper, {
|
35142
35145
|
ref: ref,
|
35143
35146
|
$theme: themeProp,
|
35144
|
-
className: "".concat(lineNumbers ? '' : 'no-', "line-numbers")
|
35147
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_21__.classNames)(null, null, className, "".concat(lineNumbers ? '' : 'no-', "line-numbers"))
|
35145
35148
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", {
|
35146
35149
|
className: "language-".concat(lang, " content")
|
35147
35150
|
}, text));
|
@@ -41131,8 +41134,8 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
|
|
41131
41134
|
"use strict";
|
41132
41135
|
__webpack_require__.r(__webpack_exports__);
|
41133
41136
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41134
|
-
/* harmony export */
|
41135
|
-
/* harmony export */
|
41137
|
+
/* harmony export */ Cell: () => (/* binding */ Cell),
|
41138
|
+
/* harmony export */ StyledCell: () => (/* binding */ StyledCell)
|
41136
41139
|
/* harmony export */ });
|
41137
41140
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
41138
41141
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -41148,7 +41151,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
41148
41151
|
|
41149
41152
|
/*jslint react:true*/
|
41150
41153
|
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); }
|
41151
|
-
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); }
|
41152
41154
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
41153
41155
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
41154
41156
|
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; }
|
@@ -41162,7 +41164,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
41162
41164
|
|
41163
41165
|
|
41164
41166
|
var Cell = function Cell(props) {
|
41165
|
-
var
|
41167
|
+
var className = props.className,
|
41166
41168
|
rowDensity = props.rowDensity,
|
41167
41169
|
isLastRow = props.isLastRow,
|
41168
41170
|
cell = props.cell;
|
@@ -41174,12 +41176,6 @@ var Cell = function Cell(props) {
|
|
41174
41176
|
_column$type = column.type,
|
41175
41177
|
type = _column$type === void 0 ? 'string' : _column$type,
|
41176
41178
|
canEdit = column.canEdit;
|
41177
|
-
var columnClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.classNamePrefix, {
|
41178
|
-
cell: true
|
41179
|
-
});
|
41180
|
-
var cellClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
41181
|
-
tableCell: true
|
41182
|
-
});
|
41183
41179
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
41184
41180
|
columnStartEditing = _useTableContext.columnStartEditing,
|
41185
41181
|
columnDoneEditing = _useTableContext.columnDoneEditing,
|
@@ -41198,16 +41194,18 @@ var Cell = function Cell(props) {
|
|
41198
41194
|
$isEditing: isEditing,
|
41199
41195
|
$isLastRow: isLastRow
|
41200
41196
|
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]));
|
41197
|
+
cellProps.className = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
41198
|
+
cell: true
|
41199
|
+
}), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
41200
|
+
tableCell: true
|
41201
|
+
}), cellProps.className);
|
41201
41202
|
if (canEdit) {
|
41202
41203
|
cellProps.onClick = function (e) {
|
41203
41204
|
e.stopPropagation();
|
41204
41205
|
startEditing();
|
41205
41206
|
};
|
41206
41207
|
}
|
41207
|
-
|
41208
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, _extends({}, cellProps, {
|
41209
|
-
className: className
|
41210
|
-
}), cell.render('Cell', {
|
41208
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, cellProps, cell.render('Cell', {
|
41211
41209
|
row: row,
|
41212
41210
|
isEditing: isEditing,
|
41213
41211
|
startEditing: startEditing,
|
@@ -41220,7 +41218,7 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
|
|
41220
41218
|
componentId: "sc-b034il-0"
|
41221
41219
|
})(["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) {
|
41222
41220
|
return props.$type == 'number' ? 'text-align: right;' : null;
|
41223
|
-
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_6__
|
41221
|
+
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _table_row__WEBPACK_IMPORTED_MODULE_6__.TableRow, _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) {
|
41224
41222
|
if (props.$isFooter) return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
41225
41223
|
if (props.$isLastRow) return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
41226
41224
|
}, function (props) {
|
@@ -41244,7 +41242,6 @@ var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.wi
|
|
41244
41242
|
}
|
41245
41243
|
});
|
41246
41244
|
StyledCell.displayName = 'StyledCell';
|
41247
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Cell);
|
41248
41245
|
|
41249
41246
|
/***/ }),
|
41250
41247
|
|
@@ -41459,8 +41456,8 @@ Provider.propTypes = {
|
|
41459
41456
|
maxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
41460
41457
|
disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41461
41458
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41462
|
-
|
41463
|
-
|
41459
|
+
canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41460
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
41464
41461
|
})),
|
41465
41462
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
41466
41463
|
columnsSort: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
@@ -41477,7 +41474,7 @@ Provider.propTypes = {
|
|
41477
41474
|
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41478
41475
|
disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41479
41476
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41480
|
-
|
41477
|
+
canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41481
41478
|
hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41482
41479
|
hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
41483
41480
|
getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
@@ -41492,7 +41489,7 @@ Provider.propTypes = {
|
|
41492
41489
|
onRowClick: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
41493
41490
|
stickyHeader: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
41494
41491
|
scrollTarget: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
41495
|
-
|
41492
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
41496
41493
|
};
|
41497
41494
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
41498
41495
|
return Math.ceil(totalCount / pageSize);
|
@@ -41839,9 +41836,9 @@ var useEditableInstance = function useEditableInstance(instance) {
|
|
41839
41836
|
};
|
41840
41837
|
var useEditableInstanceBeforeDimensions = function useEditableInstanceBeforeDimensions(instance) {
|
41841
41838
|
var flatHeaders = instance.flatHeaders,
|
41842
|
-
|
41839
|
+
canEdit = instance.canEdit;
|
41843
41840
|
flatHeaders.forEach(function (header) {
|
41844
|
-
header.canEdit = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(header.
|
41841
|
+
header.canEdit = (0,_util__WEBPACK_IMPORTED_MODULE_2__.firstDefined)(header.canEdit, canEdit, false);
|
41845
41842
|
});
|
41846
41843
|
};
|
41847
41844
|
var useEditableColumns = function useEditableColumns(hooks) {
|
@@ -41921,7 +41918,7 @@ useExpandHandle.pluginName = 'useExpandHandle';
|
|
41921
41918
|
"use strict";
|
41922
41919
|
__webpack_require__.r(__webpack_exports__);
|
41923
41920
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
41924
|
-
/* harmony export */
|
41921
|
+
/* harmony export */ TableFooter: () => (/* binding */ TableFooter)
|
41925
41922
|
/* harmony export */ });
|
41926
41923
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
41927
41924
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -41947,7 +41944,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
41947
41944
|
|
41948
41945
|
|
41949
41946
|
var TableFooter = function TableFooter(props) {
|
41950
|
-
var
|
41947
|
+
var className = props.className,
|
41951
41948
|
rowDensity = props.rowDensity;
|
41952
41949
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
41953
41950
|
footerGroups = _useTableContext.footerGroups,
|
@@ -41960,7 +41957,7 @@ var TableFooter = function TableFooter(props) {
|
|
41960
41957
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
41961
41958
|
role: "rowgroup",
|
41962
41959
|
"data-rowgroup-type": "footer",
|
41963
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(
|
41960
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
41964
41961
|
tableFooter: true
|
41965
41962
|
})
|
41966
41963
|
}, footerGroups.map(function (group) {
|
@@ -41971,7 +41968,7 @@ var TableFooter = function TableFooter(props) {
|
|
41971
41968
|
key: key,
|
41972
41969
|
role: "row"
|
41973
41970
|
}, rest, {
|
41974
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(
|
41971
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
41975
41972
|
footerRow: true
|
41976
41973
|
})
|
41977
41974
|
}), group.headers.map(function (column) {
|
@@ -41979,7 +41976,7 @@ var TableFooter = function TableFooter(props) {
|
|
41979
41976
|
column: column,
|
41980
41977
|
key: column.getFooterProps().key,
|
41981
41978
|
rowDensity: rowDensity,
|
41982
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(
|
41979
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
41983
41980
|
footerCell: true
|
41984
41981
|
})
|
41985
41982
|
});
|
@@ -41988,12 +41985,11 @@ var TableFooter = function TableFooter(props) {
|
|
41988
41985
|
};
|
41989
41986
|
TableFooter.displayName = 'TableFooter';
|
41990
41987
|
var FooterCell = function FooterCell(props) {
|
41991
|
-
var
|
41988
|
+
var className = props.className,
|
41992
41989
|
column = props.column,
|
41993
41990
|
rowDensity = props.rowDensity;
|
41994
41991
|
var _column$type = column.type,
|
41995
|
-
type = _column$type === void 0 ? 'string' : _column$type
|
41996
|
-
classNamePrefix = column.classNamePrefix;
|
41992
|
+
type = _column$type === void 0 ? 'string' : _column$type;
|
41997
41993
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
|
41998
41994
|
getColumnProps = _useTableContext2.getColumnProps,
|
41999
41995
|
getFooterProps = _useTableContext2.getFooterProps;
|
@@ -42002,17 +41998,14 @@ var FooterCell = function FooterCell(props) {
|
|
42002
41998
|
$rowDensity: rowDensity,
|
42003
41999
|
$isFooter: true
|
42004
42000
|
}, column.getFooterProps([getColumnProps(column), getFooterProps(column)]));
|
42005
|
-
|
42001
|
+
footerProps.className = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(column.className, {
|
42006
42002
|
footer: true
|
42007
|
-
},
|
42003
|
+
}, className, footerProps.className);
|
42008
42004
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.StyledCell, _extends({
|
42009
42005
|
role: "cell"
|
42010
|
-
}, footerProps,
|
42011
|
-
className: className
|
42012
|
-
}), column.render('Footer'));
|
42006
|
+
}, footerProps), column.render('Footer'));
|
42013
42007
|
};
|
42014
42008
|
FooterCell.displayName = 'FooterCell';
|
42015
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableFooter);
|
42016
42009
|
|
42017
42010
|
/***/ }),
|
42018
42011
|
|
@@ -42025,7 +42018,7 @@ FooterCell.displayName = 'FooterCell';
|
|
42025
42018
|
"use strict";
|
42026
42019
|
__webpack_require__.r(__webpack_exports__);
|
42027
42020
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42028
|
-
/* harmony export */
|
42021
|
+
/* harmony export */ TableHeader: () => (/* binding */ TableHeader)
|
42029
42022
|
/* harmony export */ });
|
42030
42023
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
42031
42024
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -42064,7 +42057,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
42064
42057
|
|
42065
42058
|
|
42066
42059
|
var TableHeader = function TableHeader(props) {
|
42067
|
-
var
|
42060
|
+
var className = props.className,
|
42068
42061
|
compact = props.compact,
|
42069
42062
|
left = props.left;
|
42070
42063
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
@@ -42079,7 +42072,7 @@ var TableHeader = function TableHeader(props) {
|
|
42079
42072
|
role: "rowgroup",
|
42080
42073
|
style: style
|
42081
42074
|
}, dataAttributes, {
|
42082
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(
|
42075
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42083
42076
|
tableHeader: true,
|
42084
42077
|
'tableHeader--is-compact': compact
|
42085
42078
|
})
|
@@ -42090,7 +42083,7 @@ var TableHeader = function TableHeader(props) {
|
|
42090
42083
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({
|
42091
42084
|
key: key
|
42092
42085
|
}, rest, {
|
42093
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(
|
42086
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42094
42087
|
headerRow: true
|
42095
42088
|
})
|
42096
42089
|
}), group.headers.map(function (header, i, arr) {
|
@@ -42100,7 +42093,7 @@ var TableHeader = function TableHeader(props) {
|
|
42100
42093
|
isLast: isLast,
|
42101
42094
|
key: header.getHeaderProps().key,
|
42102
42095
|
header: header,
|
42103
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(
|
42096
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(className, {
|
42104
42097
|
headerCell: true,
|
42105
42098
|
'headerCell--is-compact': compact,
|
42106
42099
|
'headerCell--is-last': isLast
|
@@ -42119,8 +42112,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42119
42112
|
name = header.name,
|
42120
42113
|
on_sort = header.on_sort,
|
42121
42114
|
isResizing = header.isResizing,
|
42122
|
-
getResizerProps = header.getResizerProps
|
42123
|
-
classNamePrefix = header.classNamePrefix;
|
42115
|
+
getResizerProps = header.getResizerProps;
|
42124
42116
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_6__.useTableContext)(),
|
42125
42117
|
getColumnProps = _useTableContext2.getColumnProps,
|
42126
42118
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
@@ -42145,7 +42137,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
42145
42137
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
42146
42138
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
42147
42139
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
42148
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(
|
42140
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_4__.classNames)(header.className, {
|
42149
42141
|
header: true
|
42150
42142
|
}, className, headerCellProps.className),
|
42151
42143
|
onMouseOver: function onMouseOver() {
|
@@ -42202,7 +42194,6 @@ var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
|
42202
42194
|
}
|
42203
42195
|
});
|
42204
42196
|
HeaderCellResizer.displayName = 'HeaderCellResizer';
|
42205
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableHeader);
|
42206
42197
|
|
42207
42198
|
/***/ }),
|
42208
42199
|
|
@@ -42941,7 +42932,7 @@ var plugins = {};
|
|
42941
42932
|
"use strict";
|
42942
42933
|
__webpack_require__.r(__webpack_exports__);
|
42943
42934
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
42944
|
-
/* harmony export */
|
42935
|
+
/* harmony export */ renderRow: () => (/* binding */ renderRow)
|
42945
42936
|
/* harmony export */ });
|
42946
42937
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
42947
42938
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -42952,48 +42943,53 @@ __webpack_require__.r(__webpack_exports__);
|
|
42952
42943
|
|
42953
42944
|
|
42954
42945
|
/*jslint react:true*/
|
42955
|
-
var _excluded = ["key"];
|
42956
42946
|
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); }
|
42957
|
-
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; }
|
42958
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
42959
42947
|
|
42960
42948
|
|
42961
42949
|
|
42962
42950
|
|
42963
42951
|
var renderRow = function renderRow(opt) {
|
42964
|
-
var
|
42952
|
+
var className = opt.className,
|
42965
42953
|
row = opt.row,
|
42966
42954
|
onRowClick = opt.onRowClick,
|
42967
42955
|
getRowProps = opt.getRowProps,
|
42968
42956
|
rowDensity = opt.rowDensity,
|
42969
|
-
isLastRow = opt.isLastRow
|
42970
|
-
|
42971
|
-
|
42972
|
-
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
42957
|
+
isLastRow = opt.isLastRow,
|
42958
|
+
renderRowSubComponent = opt.renderRowSubComponent;
|
42959
|
+
var rowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row));
|
42973
42960
|
var onClick = onRowClick ? function (evt) {
|
42974
42961
|
return onRowClick(row.original, evt);
|
42975
42962
|
} : undefined;
|
42976
42963
|
var cursor = onRowClick ? 'pointer' : undefined;
|
42977
|
-
|
42978
|
-
key: key
|
42979
|
-
}, rowProps, {
|
42964
|
+
var tableRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
42980
42965
|
onClick: onClick,
|
42981
|
-
|
42982
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(classNamePrefix, {
|
42966
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42983
42967
|
tableRow: true,
|
42984
42968
|
'tableRow--is-pinned': row.isPinned
|
42985
|
-
}, rowProps.className)
|
42969
|
+
}, rowProps.className),
|
42970
|
+
$cursor: cursor
|
42986
42971
|
}), row.cells.map(function (cell) {
|
42987
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__
|
42972
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_cell__WEBPACK_IMPORTED_MODULE_2__.Cell, {
|
42988
42973
|
key: cell.getCellProps().key,
|
42989
42974
|
cell: cell,
|
42990
|
-
|
42975
|
+
className: className,
|
42991
42976
|
rowDensity: rowDensity,
|
42992
42977
|
isLastRow: isLastRow
|
42993
42978
|
});
|
42994
42979
|
}));
|
42980
|
+
if (!row.isExpanded || !renderRowSubComponent) return tableRow;
|
42981
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
42982
|
+
key: "".concat(rowProps.key, "_fragment")
|
42983
|
+
}, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_row__WEBPACK_IMPORTED_MODULE_3__.TableRow, _extends({}, rowProps, {
|
42984
|
+
key: "".concat(rowProps.key, "_subcomponent"),
|
42985
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.classNames)(className, {
|
42986
|
+
rowSubComponent: true
|
42987
|
+
}, rowProps.className)
|
42988
|
+
}), renderRowSubComponent({
|
42989
|
+
row: row,
|
42990
|
+
rowProps: rowProps
|
42991
|
+
})));
|
42995
42992
|
};
|
42996
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderRow);
|
42997
42993
|
|
42998
42994
|
/***/ }),
|
42999
42995
|
|
@@ -43043,7 +43039,7 @@ SortIcon.defaultProps = {
|
|
43043
43039
|
"use strict";
|
43044
43040
|
__webpack_require__.r(__webpack_exports__);
|
43045
43041
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
43046
|
-
/* harmony export */
|
43042
|
+
/* harmony export */ StickyHeader: () => (/* binding */ StickyHeader)
|
43047
43043
|
/* harmony export */ });
|
43048
43044
|
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
|
43049
43045
|
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -43077,7 +43073,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43077
43073
|
|
43078
43074
|
|
43079
43075
|
var StickyHeader = function StickyHeader(props) {
|
43080
|
-
var
|
43076
|
+
var className = props.className,
|
43081
43077
|
offsetTop = props.offsetTop,
|
43082
43078
|
onRowClick = props.onRowClick,
|
43083
43079
|
rowDensity = props.rowDensity,
|
@@ -43125,22 +43121,22 @@ var StickyHeader = function StickyHeader(props) {
|
|
43125
43121
|
if (!showSticky) return null;
|
43126
43122
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StickyHeaderWrapper, {
|
43127
43123
|
style: style,
|
43128
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(
|
43124
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
43129
43125
|
stickyHeader: true
|
43130
43126
|
})
|
43131
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_7__
|
43127
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_7__.TableHeader, {
|
43132
43128
|
left: left,
|
43133
|
-
|
43129
|
+
className: className,
|
43134
43130
|
compact: true
|
43135
43131
|
}), pinnedRows.map(function (row) {
|
43136
43132
|
prepareRow(row);
|
43137
|
-
return (0,_render_row__WEBPACK_IMPORTED_MODULE_8__
|
43133
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_8__.renderRow)({
|
43138
43134
|
row: row,
|
43139
43135
|
columnStartEditing: columnStartEditing,
|
43140
43136
|
columnDoneEditing: columnDoneEditing,
|
43141
43137
|
rowDensity: rowDensity,
|
43142
43138
|
onRowClick: onRowClick,
|
43143
|
-
|
43139
|
+
className: className
|
43144
43140
|
});
|
43145
43141
|
}));
|
43146
43142
|
};
|
@@ -43150,7 +43146,6 @@ var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
43150
43146
|
componentId: "sc-hh47bp-0"
|
43151
43147
|
})(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"], _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.stickyHeader);
|
43152
43148
|
StickyHeaderWrapper.displayName = 'StickyHeaderWrapper';
|
43153
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StickyHeader);
|
43154
43149
|
|
43155
43150
|
/***/ }),
|
43156
43151
|
|
@@ -43331,7 +43326,7 @@ var rowMenuColumn = {
|
|
43331
43326
|
disableHiding: true,
|
43332
43327
|
disableResizing: true,
|
43333
43328
|
disablePinning: true,
|
43334
|
-
|
43329
|
+
canEdit: false,
|
43335
43330
|
width: 48,
|
43336
43331
|
minWidth: 48,
|
43337
43332
|
maxWidth: 48
|
@@ -43418,38 +43413,34 @@ var InnerTable = function InnerTable(props) {
|
|
43418
43413
|
var onRowClick = (0,_util__WEBPACK_IMPORTED_MODULE_12__.firstDefined)(props.onRowClick, context.onRowClick);
|
43419
43414
|
var stickyHeader = (0,_util__WEBPACK_IMPORTED_MODULE_12__.firstDefined)(props.stickyHeader, context.stickyHeader);
|
43420
43415
|
var scrollTarget = (0,_util__WEBPACK_IMPORTED_MODULE_12__.firstDefined)(props.scrollTarget, context.scrollTarget);
|
43421
|
-
var classNamePrefix = (0,_util__WEBPACK_IMPORTED_MODULE_12__.firstDefined)(props.classNamePrefix, context.classNamePrefix);
|
43422
43416
|
var offsetTop = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(stickyHeader) && stickyHeader.offsetTop || 0;
|
43423
43417
|
var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43424
43418
|
var tableRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();
|
43425
43419
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableWrapper, {
|
43426
43420
|
ref: wrapperRef,
|
43427
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(
|
43421
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43428
43422
|
container: true
|
43429
43423
|
}, className)
|
43430
43424
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(StyledTable, _extends({
|
43431
43425
|
ref: tableRef
|
43432
43426
|
}, getTableProps(), {
|
43433
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(
|
43427
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43434
43428
|
table: true
|
43435
43429
|
})
|
43436
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_9__
|
43437
|
-
|
43430
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_header__WEBPACK_IMPORTED_MODULE_9__.TableHeader, {
|
43431
|
+
className: className
|
43438
43432
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(TableBody, {
|
43439
|
-
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
43440
|
-
tableBody: true
|
43441
|
-
}),
|
43442
43433
|
rowDensity: rowDensity,
|
43443
|
-
|
43444
|
-
|
43445
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__
|
43434
|
+
className: className,
|
43435
|
+
onRowClick: onRowClick
|
43436
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_footer__WEBPACK_IMPORTED_MODULE_8__.TableFooter, {
|
43446
43437
|
rowDensity: rowDensity,
|
43447
|
-
|
43448
|
-
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__
|
43438
|
+
className: className
|
43439
|
+
}), !!stickyHeader && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_sticky_header__WEBPACK_IMPORTED_MODULE_11__.StickyHeader, {
|
43449
43440
|
offsetTop: offsetTop,
|
43450
43441
|
onRowClick: onRowClick,
|
43451
43442
|
rowDensity: rowDensity,
|
43452
|
-
|
43443
|
+
className: className,
|
43453
43444
|
tableRef: tableRef,
|
43454
43445
|
scrollTarget: scrollTarget,
|
43455
43446
|
wrapperRef: wrapperRef
|
@@ -43469,8 +43460,7 @@ StyledTable.displayName = 'StyledTable';
|
|
43469
43460
|
var TableBody = function TableBody(props) {
|
43470
43461
|
var className = props.className,
|
43471
43462
|
rowDensity = props.rowDensity,
|
43472
|
-
onRowClick = props.onRowClick
|
43473
|
-
classNamePrefix = props.classNamePrefix;
|
43463
|
+
onRowClick = props.onRowClick;
|
43474
43464
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_7__.useTableContext)(),
|
43475
43465
|
getTableBodyProps = _useTableContext2.getTableBodyProps,
|
43476
43466
|
prepareRow = _useTableContext2.prepareRow,
|
@@ -43480,35 +43470,40 @@ var TableBody = function TableBody(props) {
|
|
43480
43470
|
NoDataComp = _useTableContext2.NoDataComp,
|
43481
43471
|
LoadingComp = _useTableContext2.LoadingComp,
|
43482
43472
|
isLoading = _useTableContext2.isLoading,
|
43483
|
-
getRowProps = _useTableContext2.getRowProps
|
43473
|
+
getRowProps = _useTableContext2.getRowProps,
|
43474
|
+
renderRowSubComponent = _useTableContext2.renderRowSubComponent;
|
43484
43475
|
var body = function () {
|
43485
43476
|
if (isLoading) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(LoadingComp);
|
43486
43477
|
if (!page.length) return (0,_util_flex_renderer__WEBPACK_IMPORTED_MODULE_6__.flexRender)(NoDataComp);
|
43487
43478
|
return page.map(function (row, i, arr) {
|
43488
43479
|
prepareRow(row);
|
43489
43480
|
if (row.isPinned) return null;
|
43490
|
-
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__
|
43481
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__.renderRow)({
|
43491
43482
|
row: row,
|
43492
43483
|
rowDensity: rowDensity,
|
43493
43484
|
onRowClick: onRowClick,
|
43494
43485
|
isLastRow: i == arr.length - 1,
|
43495
|
-
|
43496
|
-
getRowProps: getRowProps
|
43486
|
+
className: className,
|
43487
|
+
getRowProps: getRowProps,
|
43488
|
+
renderRowSubComponent: renderRowSubComponent
|
43497
43489
|
});
|
43498
43490
|
});
|
43499
43491
|
}();
|
43500
43492
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
|
43501
43493
|
"data-rowgroup-type": "body"
|
43502
43494
|
}, getTableBodyProps(), {
|
43503
|
-
className: className
|
43495
|
+
className: (0,_utils__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
43496
|
+
tableBody: true
|
43497
|
+
})
|
43504
43498
|
}), pinnedRows.map(function (row) {
|
43505
43499
|
prepareRow(row);
|
43506
|
-
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__
|
43500
|
+
return (0,_render_row__WEBPACK_IMPORTED_MODULE_10__.renderRow)({
|
43507
43501
|
row: row,
|
43508
43502
|
rowDensity: rowDensity,
|
43509
43503
|
onRowClick: onRowClick,
|
43510
|
-
|
43511
|
-
getRowProps: getRowProps
|
43504
|
+
className: className,
|
43505
|
+
getRowProps: getRowProps,
|
43506
|
+
renderRowSubComponent: renderRowSubComponent
|
43512
43507
|
});
|
43513
43508
|
}), body);
|
43514
43509
|
};
|
@@ -43525,7 +43520,7 @@ var TableBody = function TableBody(props) {
|
|
43525
43520
|
"use strict";
|
43526
43521
|
__webpack_require__.r(__webpack_exports__);
|
43527
43522
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
43528
|
-
/* harmony export */
|
43523
|
+
/* harmony export */ TableRow: () => (/* binding */ TableRow)
|
43529
43524
|
/* harmony export */ });
|
43530
43525
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
|
43531
43526
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -43538,9 +43533,8 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.with
|
|
43538
43533
|
displayName: "TableRow",
|
43539
43534
|
componentId: "sc-es7xjx-0"
|
43540
43535
|
})(["cursor:", ";"], function (props) {
|
43541
|
-
return props
|
43536
|
+
return props.$cursor;
|
43542
43537
|
});
|
43543
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TableRow);
|
43544
43538
|
|
43545
43539
|
/***/ }),
|
43546
43540
|
|