@luminati-io/uikit 3.5.0 → 3.5.1-beta.2
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.
@@ -1,13 +1,13 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(require("
|
3
|
+
module.exports = factory(require("react"), require("prop-types"), require("react-virtualized"), require("styled-components"), require("react-dom"), require("react-table"));
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
|
-
define(["prop-types", "react", "styled-components", "react-
|
5
|
+
define(["react", "prop-types", "react-virtualized", "styled-components", "react-dom", "react-table"], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["uikit"] = factory(require("
|
7
|
+
exports["uikit"] = factory(require("react"), require("prop-types"), require("react-virtualized"), require("styled-components"), require("react-dom"), require("react-table"));
|
8
8
|
else
|
9
|
-
root["uikit"] = factory(root["
|
10
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE_prop_types__,
|
9
|
+
root["uikit"] = factory(root["react"], root["prop-types"], root["react-virtualized"], root["styled-components"], root["react-dom"], root["react-table"]);
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_prop_types__, __WEBPACK_EXTERNAL_MODULE_react_virtualized__, __WEBPACK_EXTERNAL_MODULE_styled_components__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_table__) => {
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
@@ -28141,7 +28141,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
28141
28141
|
"use strict";
|
28142
28142
|
__webpack_require__.r(__webpack_exports__);
|
28143
28143
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
28144
|
-
/* harmony export */
|
28144
|
+
/* harmony export */ Badge: () => (/* binding */ Badge)
|
28145
28145
|
/* harmony export */ });
|
28146
28146
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
28147
28147
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -28230,7 +28230,6 @@ var BadgeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_lay
|
|
28230
28230
|
}, function (props) {
|
28231
28231
|
return props.$color;
|
28232
28232
|
});
|
28233
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Badge);
|
28234
28233
|
|
28235
28234
|
/***/ }),
|
28236
28235
|
|
@@ -30961,7 +30960,7 @@ var ComboButtonMenu = function ComboButtonMenu(props) {
|
|
30961
30960
|
var size = props.size,
|
30962
30961
|
items = props.items,
|
30963
30962
|
popover = props.popover;
|
30964
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_5__
|
30963
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_5__.Menu, {
|
30965
30964
|
size: size,
|
30966
30965
|
items: items,
|
30967
30966
|
onClick: popover.hide
|
@@ -31079,53 +31078,53 @@ var Z_INDEX = {
|
|
31079
31078
|
"use strict";
|
31080
31079
|
__webpack_require__.r(__webpack_exports__);
|
31081
31080
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
31082
|
-
/* harmony export */ Badge: () => (/* reexport safe */
|
31083
|
-
/* harmony export */ Button: () => (/* reexport safe */
|
31084
|
-
/* harmony export */ Chart: () => (/* reexport safe */
|
31081
|
+
/* harmony export */ Badge: () => (/* reexport safe */ _badge__WEBPACK_IMPORTED_MODULE_11__.Badge),
|
31082
|
+
/* harmony export */ Button: () => (/* reexport safe */ _button__WEBPACK_IMPORTED_MODULE_12__.Button),
|
31083
|
+
/* harmony export */ Chart: () => (/* reexport safe */ _chart__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
31085
31084
|
/* harmony export */ ClickableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.ClickableTag),
|
31086
|
-
/* harmony export */ Code: () => (/* reexport safe */
|
31087
|
-
/* harmony export */ CodeBlock: () => (/* reexport safe */
|
31088
|
-
/* harmony export */ CodeSnippet: () => (/* reexport safe */
|
31089
|
-
/* harmony export */ ComboButton: () => (/* reexport safe */
|
31085
|
+
/* harmony export */ Code: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.Code),
|
31086
|
+
/* harmony export */ CodeBlock: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeBlock),
|
31087
|
+
/* harmony export */ CodeSnippet: () => (/* reexport safe */ _code__WEBPACK_IMPORTED_MODULE_13__.CodeSnippet),
|
31088
|
+
/* harmony export */ ComboButton: () => (/* reexport safe */ _combo_button__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
31090
31089
|
/* harmony export */ Icon: () => (/* reexport safe */ _icon__WEBPACK_IMPORTED_MODULE_20__.Icon),
|
31091
31090
|
/* harmony export */ IconButton: () => (/* reexport safe */ _icon_button__WEBPACK_IMPORTED_MODULE_21__.IconButton),
|
31092
|
-
/* harmony export */ InfoChip: () => (/* reexport safe */
|
31093
|
-
/* harmony export */ Input: () => (/* reexport module object */
|
31094
|
-
/* harmony export */ Layout: () => (/* reexport module object */
|
31095
|
-
/* harmony export */ Link: () => (/* reexport safe */
|
31096
|
-
/* harmony export */ Menu: () => (/* reexport safe */
|
31097
|
-
/* harmony export */ Modal: () => (/* reexport module object */
|
31091
|
+
/* harmony export */ InfoChip: () => (/* reexport safe */ _infochip__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
31092
|
+
/* harmony export */ Input: () => (/* reexport module object */ _input__WEBPACK_IMPORTED_MODULE_3__),
|
31093
|
+
/* harmony export */ Layout: () => (/* reexport module object */ _layout__WEBPACK_IMPORTED_MODULE_4__),
|
31094
|
+
/* harmony export */ Link: () => (/* reexport safe */ _link__WEBPACK_IMPORTED_MODULE_15__.Link),
|
31095
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_16__.Menu),
|
31096
|
+
/* harmony export */ Modal: () => (/* reexport module object */ _modal__WEBPACK_IMPORTED_MODULE_5__),
|
31098
31097
|
/* harmony export */ Progress: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.Progress),
|
31099
31098
|
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress__WEBPACK_IMPORTED_MODULE_17__.ProgressBar),
|
31100
31099
|
/* harmony export */ RemovableTag: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.RemovableTag),
|
31101
31100
|
/* harmony export */ Snackbar: () => (/* reexport safe */ _snackbar__WEBPACK_IMPORTED_MODULE_18__.Snackbar),
|
31102
|
-
/* harmony export */ Tab: () => (/* reexport safe */
|
31103
|
-
/* harmony export */ Table: () => (/* reexport safe */
|
31101
|
+
/* harmony export */ Tab: () => (/* reexport safe */ _tab__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
31102
|
+
/* harmony export */ Table: () => (/* reexport safe */ _table__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
31104
31103
|
/* harmony export */ TagGroup: () => (/* reexport safe */ _tag__WEBPACK_IMPORTED_MODULE_19__.TagGroup),
|
31105
31104
|
/* harmony export */ Tooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_22__.Tooltip),
|
31106
|
-
/* harmony export */ Typography: () => (/* reexport module object */
|
31107
|
-
/* harmony export */ theme: () => (/* reexport safe */
|
31108
|
-
/* harmony export */ translation: () => (/* reexport safe */
|
31109
|
-
/* harmony export */ withPopover: () => (/* reexport safe */
|
31105
|
+
/* harmony export */ Typography: () => (/* reexport module object */ _typography__WEBPACK_IMPORTED_MODULE_10__),
|
31106
|
+
/* harmony export */ theme: () => (/* reexport safe */ _theme__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
31107
|
+
/* harmony export */ translation: () => (/* reexport safe */ _translation__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
31108
|
+
/* harmony export */ withPopover: () => (/* reexport safe */ _hoc__WEBPACK_IMPORTED_MODULE_14__.withPopover),
|
31110
31109
|
/* harmony export */ withTooltip: () => (/* reexport safe */ _tooltip__WEBPACK_IMPORTED_MODULE_22__.withTooltip)
|
31111
31110
|
/* harmony export */ });
|
31112
|
-
/* harmony import */ var
|
31113
|
-
/* harmony import */ var
|
31114
|
-
/* harmony import */ var
|
31115
|
-
/* harmony import */ var
|
31116
|
-
/* harmony import */ var
|
31117
|
-
/* harmony import */ var
|
31118
|
-
/* harmony import */ var
|
31119
|
-
/* harmony import */ var
|
31120
|
-
/* harmony import */ var
|
31121
|
-
/* harmony import */ var
|
31122
|
-
/* harmony import */ var
|
31123
|
-
/* harmony import */ var
|
31124
|
-
/* harmony import */ var
|
31125
|
-
/* harmony import */ var
|
31126
|
-
/* harmony import */ var
|
31127
|
-
/* harmony import */ var
|
31128
|
-
/* harmony import */ var
|
31111
|
+
/* harmony import */ var _chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chart */ "./src/chart/index.js");
|
31112
|
+
/* harmony import */ var _combo_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./combo_button */ "./src/combo_button/index.js");
|
31113
|
+
/* harmony import */ var _infochip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./infochip */ "./src/infochip.js");
|
31114
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./input */ "./src/input/index.js");
|
31115
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout */ "./src/layout/index.js");
|
31116
|
+
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modal */ "./src/modal/index.js");
|
31117
|
+
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table */ "./src/table/index.js");
|
31118
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
|
31119
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./translation */ "./src/translation.js");
|
31120
|
+
/* harmony import */ var _tab__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tab */ "./src/tab/index.js");
|
31121
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./typography */ "./src/typography/index.js");
|
31122
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./badge */ "./src/badge.js");
|
31123
|
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./button */ "./src/button/index.js");
|
31124
|
+
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./code */ "./src/code/index.js");
|
31125
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./hoc */ "./src/hoc/index.js");
|
31126
|
+
/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./link */ "./src/link/index.js");
|
31127
|
+
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./menu */ "./src/menu/index.js");
|
31129
31128
|
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./progress */ "./src/progress/index.js");
|
31130
31129
|
/* harmony import */ var _snackbar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./snackbar */ "./src/snackbar/index.js");
|
31131
31130
|
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./tag */ "./src/tag/index.js");
|
@@ -32702,7 +32701,7 @@ var CompareToMenuList = function CompareToMenuList(props) {
|
|
32702
32701
|
setValue(value, opt);
|
32703
32702
|
setIsCustom(false);
|
32704
32703
|
};
|
32705
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !isCustom && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown_menu_list__WEBPACK_IMPORTED_MODULE_11__.MenuList, props, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__
|
32704
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), null, !isCustom && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_dropdown_menu_list__WEBPACK_IMPORTED_MODULE_11__.MenuList, props, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_6__.Menu.Item, {
|
32706
32705
|
type: "item",
|
32707
32706
|
className: cx({
|
32708
32707
|
option: true
|
@@ -33899,7 +33898,7 @@ var Option = function Option(props) {
|
|
33899
33898
|
tag: tag
|
33900
33899
|
}));
|
33901
33900
|
};
|
33902
|
-
var StyledItem = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_menu__WEBPACK_IMPORTED_MODULE_3__
|
33901
|
+
var StyledItem = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_menu__WEBPACK_IMPORTED_MODULE_3__.Menu.Item).withConfig({
|
33903
33902
|
displayName: "StyledItem",
|
33904
33903
|
componentId: "sc-10s9fdi-0"
|
33905
33904
|
})(["background-color:", ";"], function (props) {
|
@@ -36142,7 +36141,7 @@ StyledLink.displayName = 'StyledLink';
|
|
36142
36141
|
"use strict";
|
36143
36142
|
__webpack_require__.r(__webpack_exports__);
|
36144
36143
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36145
|
-
/* harmony export */
|
36144
|
+
/* harmony export */ Menu: () => (/* reexport safe */ _menu__WEBPACK_IMPORTED_MODULE_0__.Menu)
|
36146
36145
|
/* harmony export */ });
|
36147
36146
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./menu */ "./src/menu/menu.js");
|
36148
36147
|
/* harmony import */ var _menu_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./menu_item */ "./src/menu/menu_item.js");
|
@@ -36153,7 +36152,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
36153
36152
|
|
36154
36153
|
|
36155
36154
|
_menu__WEBPACK_IMPORTED_MODULE_0__.Menu.Item = _menu_item__WEBPACK_IMPORTED_MODULE_1__.MenuItem;
|
36156
|
-
|
36155
|
+
|
36157
36156
|
|
36158
36157
|
/***/ }),
|
36159
36158
|
|
@@ -37720,126 +37719,6 @@ var Text = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography_
|
|
37720
37719
|
|
37721
37720
|
/***/ }),
|
37722
37721
|
|
37723
|
-
/***/ "./src/table/cell.js":
|
37724
|
-
/*!***************************!*\
|
37725
|
-
!*** ./src/table/cell.js ***!
|
37726
|
-
\***************************/
|
37727
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
37728
|
-
|
37729
|
-
"use strict";
|
37730
|
-
__webpack_require__.r(__webpack_exports__);
|
37731
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
37732
|
-
/* harmony export */ Cell: () => (/* binding */ Cell),
|
37733
|
-
/* harmony export */ StyledCell: () => (/* binding */ StyledCell)
|
37734
|
-
/* harmony export */ });
|
37735
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
37736
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
37737
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
37738
|
-
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
37739
|
-
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
37740
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
37741
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
37742
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
37743
|
-
/* harmony import */ var _table_row__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./table_row */ "./src/table/table_row.js");
|
37744
|
-
// LICENSE_CODE ZON
|
37745
|
-
|
37746
|
-
|
37747
|
-
/*jslint react:true*/
|
37748
|
-
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); }
|
37749
|
-
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; }
|
37750
|
-
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; }
|
37751
|
-
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; }
|
37752
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
37753
|
-
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); }
|
37754
|
-
|
37755
|
-
|
37756
|
-
|
37757
|
-
|
37758
|
-
|
37759
|
-
|
37760
|
-
|
37761
|
-
var Cell = function Cell(props) {
|
37762
|
-
var className = props.className,
|
37763
|
-
rowDensity = props.rowDensity,
|
37764
|
-
isLastRow = props.isLastRow,
|
37765
|
-
cell = props.cell;
|
37766
|
-
var row = cell.row,
|
37767
|
-
column = cell.column,
|
37768
|
-
isEditing = cell.isEditing;
|
37769
|
-
var rowId = row.id;
|
37770
|
-
var columnId = column.id,
|
37771
|
-
_column$type = column.type,
|
37772
|
-
type = _column$type === void 0 ? 'string' : _column$type,
|
37773
|
-
canEdit = column.canEdit;
|
37774
|
-
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_5__.useTableContext)(),
|
37775
|
-
columnStartEditing = _useTableContext.columnStartEditing,
|
37776
|
-
columnDoneEditing = _useTableContext.columnDoneEditing,
|
37777
|
-
getColumnProps = _useTableContext.getColumnProps,
|
37778
|
-
getCellProps = _useTableContext.getCellProps;
|
37779
|
-
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
37780
|
-
columnStartEditing(columnId, rowId);
|
37781
|
-
}, [columnStartEditing, columnId, rowId]);
|
37782
|
-
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
37783
|
-
columnDoneEditing(columnId, rowId);
|
37784
|
-
}, [columnDoneEditing, columnId, rowId]);
|
37785
|
-
var cellProps = _objectSpread({
|
37786
|
-
$type: type,
|
37787
|
-
$rowDensity: rowDensity,
|
37788
|
-
$canEdit: canEdit,
|
37789
|
-
$isEditing: isEditing,
|
37790
|
-
$isLastRow: isLastRow
|
37791
|
-
}, cell.getCellProps([getColumnProps(column), getCellProps(cell)]));
|
37792
|
-
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
37793
|
-
cell: true
|
37794
|
-
}), (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
37795
|
-
tableCell: true
|
37796
|
-
}), cellProps.className);
|
37797
|
-
if (canEdit) {
|
37798
|
-
cellProps.onClick = function (e) {
|
37799
|
-
e.stopPropagation();
|
37800
|
-
startEditing();
|
37801
|
-
};
|
37802
|
-
}
|
37803
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledCell, cellProps, cell.render('Cell', {
|
37804
|
-
row: row,
|
37805
|
-
isEditing: isEditing,
|
37806
|
-
startEditing: startEditing,
|
37807
|
-
doneEditing: doneEditing
|
37808
|
-
}));
|
37809
|
-
};
|
37810
|
-
Cell.displayName = 'Cell';
|
37811
|
-
var StyledCell = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
37812
|
-
displayName: "StyledCell",
|
37813
|
-
componentId: "sc-b034il-0"
|
37814
|
-
})(["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) {
|
37815
|
-
return props.$type == 'number' ? 'text-align: right;' : null;
|
37816
|
-
}, _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) {
|
37817
|
-
if (props.$isFooter) return "border-top-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
37818
|
-
if (props.$isLastRow) return "border-bottom-color: ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3, ";");
|
37819
|
-
}, function (props) {
|
37820
|
-
if (props.$rowDensity == 'diamond_hand') {
|
37821
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:11px;padding-bottom:11px;"]);
|
37822
|
-
}
|
37823
|
-
if (props.$rowDensity == 'white_spaced') {
|
37824
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:25px;padding-bottom:25px;"]);
|
37825
|
-
}
|
37826
|
-
}, function (props) {
|
37827
|
-
if (props.$canEdit && props.$isEditing) {
|
37828
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08),inset 0px 0px 0px 3px rgba(0,106,220,0.4);"]);
|
37829
|
-
}
|
37830
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["box-shadow:2px 0px 4px -2px rgba(24,39,75,0.12),4px 0px 4px -2px rgba(24,39,75,0.08);"]);
|
37831
|
-
}, function (props) {
|
37832
|
-
if (props.$canEdit) {
|
37833
|
-
if (props.$isEditing) {
|
37834
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);z-index:", ";"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11, _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.editingCell);
|
37835
|
-
}
|
37836
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["&:hover{border-color:", " !important;}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9);
|
37837
|
-
}
|
37838
|
-
});
|
37839
|
-
StyledCell.displayName = 'StyledCell';
|
37840
|
-
|
37841
|
-
/***/ }),
|
37842
|
-
|
37843
37722
|
/***/ "./src/table/context.js":
|
37844
37723
|
/*!******************************!*\
|
37845
37724
|
!*** ./src/table/context.js ***!
|
@@ -37877,7 +37756,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
37877
37756
|
/*jslint react:true*/
|
37878
37757
|
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); }
|
37879
37758
|
|
37880
|
-
var _excluded = ["data", "pageSize", "pageSizes", "children", "stateManager", "hooks", "NoDataComp", "LoadingComp", "ExpandHandleComp", "noDataText", "loadingText", "isLoading", "onPageChange", "manualPagination", "totalCount", "paginateExpandedRows", "getHeaderProps", "getColumnProps", "getRowProps", "getCellProps", "getFooterProps", "selectedRowIds", "canOrderColumns", "rowActions", "onColumnSortChanged"];
|
37759
|
+
var _excluded = ["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"];
|
37881
37760
|
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; }
|
37882
37761
|
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; }
|
37883
37762
|
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; }
|
@@ -37957,7 +37836,10 @@ var Provider = function Provider(props) {
|
|
37957
37836
|
selectedRowIds = props.selectedRowIds,
|
37958
37837
|
canOrderColumns = props.canOrderColumns,
|
37959
37838
|
rowActions = props.rowActions,
|
37839
|
+
columnSort = props.columnSort,
|
37960
37840
|
onColumnSortChanged = props.onColumnSortChanged,
|
37841
|
+
isCellEditable = props.isCellEditable,
|
37842
|
+
onStartEdit = props.onStartEdit,
|
37961
37843
|
rest = _objectWithoutProperties(props, _excluded);
|
37962
37844
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(0),
|
37963
37845
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -37977,7 +37859,6 @@ var Provider = function Provider(props) {
|
|
37977
37859
|
}, selectedRowIds && {
|
37978
37860
|
selectedRowIds: selectedRowIds
|
37979
37861
|
});
|
37980
|
-
var columnSort = (0,_util__WEBPACK_IMPORTED_MODULE_7__.firstDefined)(props.columnSort, props.columnsSort);
|
37981
37862
|
var table = react_table__WEBPACK_IMPORTED_MODULE_3__.useTable.apply(void 0, [_objectSpread({
|
37982
37863
|
data: data,
|
37983
37864
|
defaultColumn: defaultColumn,
|
@@ -37994,7 +37875,7 @@ var Provider = function Provider(props) {
|
|
37994
37875
|
getCellProps: getCellProps,
|
37995
37876
|
getFooterProps: getFooterProps,
|
37996
37877
|
ExpandHandleComp: ExpandHandleComp
|
37997
|
-
}, lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'initialState', 'hiddenColumns', 'pinnedColumns', 'columnOrder'
|
37878
|
+
}, 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)));
|
37998
37879
|
var _table$state = table.state,
|
37999
37880
|
pageIndex = _table$state.pageIndex,
|
38000
37881
|
_pageSize = _table$state.pageSize;
|
@@ -38014,7 +37895,9 @@ var Provider = function Provider(props) {
|
|
38014
37895
|
var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_13__.useOrderLogic)(table);
|
38015
37896
|
var value = _objectSpread(_objectSpread({
|
38016
37897
|
columnSort: columnSort,
|
38017
|
-
onColumnSortChanged: onColumnSortChanged
|
37898
|
+
onColumnSortChanged: onColumnSortChanged,
|
37899
|
+
isCellEditable: isCellEditable,
|
37900
|
+
onStartEdit: onStartEdit
|
38018
37901
|
}, table), {}, {
|
38019
37902
|
canOrderColumns: canOrderColumns,
|
38020
37903
|
orderLogic: orderLogic,
|
@@ -38044,7 +37927,11 @@ Provider.defaultProps = {
|
|
38044
37927
|
getCellProps: defaultPropGetter,
|
38045
37928
|
getFooterProps: defaultPropGetter,
|
38046
37929
|
rowDensity: 'busy_bee',
|
38047
|
-
canOrderColumns: false
|
37930
|
+
canOrderColumns: false,
|
37931
|
+
isCellEditable: function isCellEditable(_ref) {
|
37932
|
+
var column = _ref.column;
|
37933
|
+
return column.canEdit;
|
37934
|
+
}
|
38048
37935
|
};
|
38049
37936
|
Provider.propTypes = {
|
38050
37937
|
columns: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
@@ -38054,8 +37941,6 @@ Provider.propTypes = {
|
|
38054
37941
|
Header: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
38055
37942
|
Cell: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
38056
37943
|
Footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().node), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
38057
|
-
// can_sort: PT.oneOfType([PT.bool, PT.number]),
|
38058
|
-
// on_sort: PT.func,
|
38059
37944
|
canSort: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38060
37945
|
disableHiding: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38061
37946
|
width: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
@@ -38067,7 +37952,6 @@ Provider.propTypes = {
|
|
38067
37952
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
38068
37953
|
})),
|
38069
37954
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
38070
|
-
// columnsSort: PT.object,
|
38071
37955
|
columnSort: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
|
38072
37956
|
onColumnSortChanged: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
38073
37957
|
pageSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
@@ -38084,6 +37968,8 @@ Provider.propTypes = {
|
|
38084
37968
|
disableResizing: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38085
37969
|
disablePinning: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38086
37970
|
canEdit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
37971
|
+
isCellEditable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
37972
|
+
onStartEdit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
38087
37973
|
hideHeader: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38088
37974
|
hideFooter: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
38089
37975
|
getHeaderProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
@@ -38131,8 +38017,8 @@ var useComp = function useComp(text, Comp) {
|
|
38131
38017
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(EmptyBody, null, text);
|
38132
38018
|
}, [text, Comp]);
|
38133
38019
|
};
|
38134
|
-
var EmptyBody = function EmptyBody(
|
38135
|
-
var children =
|
38020
|
+
var EmptyBody = function EmptyBody(_ref2) {
|
38021
|
+
var children = _ref2.children;
|
38136
38022
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
38137
38023
|
align_items: "center",
|
38138
38024
|
width: "100%",
|
@@ -38623,9 +38509,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
38623
38509
|
/* harmony export */ });
|
38624
38510
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
38625
38511
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
38626
|
-
/* harmony import */ var
|
38627
|
-
/* harmony import */ var
|
38628
|
-
/* harmony import */ var
|
38512
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
38513
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
38514
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
38515
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
38516
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
38629
38517
|
// LICENSE_CODE ZON
|
38630
38518
|
|
38631
38519
|
|
@@ -38644,11 +38532,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
38644
38532
|
|
38645
38533
|
|
38646
38534
|
|
38535
|
+
|
38647
38536
|
var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
38648
38537
|
var className = props.className,
|
38649
38538
|
style = props.style,
|
38650
38539
|
rowDensity = props.rowDensity;
|
38651
|
-
var _useTableContext = (0,
|
38540
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
|
38652
38541
|
footerGroups = _useTableContext.footerGroups,
|
38653
38542
|
allColumns = _useTableContext.allColumns,
|
38654
38543
|
hideFooter = _useTableContext.hideFooter;
|
@@ -38660,7 +38549,7 @@ var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
38660
38549
|
ref: ref,
|
38661
38550
|
role: "rowgroup",
|
38662
38551
|
"data-rowgroup-type": "footer",
|
38663
|
-
className: (0,
|
38552
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
38664
38553
|
tableFooter: true
|
38665
38554
|
}),
|
38666
38555
|
style: style
|
@@ -38668,11 +38557,11 @@ var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
38668
38557
|
var _group$getFooterGroup = group.getFooterGroupProps(),
|
38669
38558
|
key = _group$getFooterGroup.key,
|
38670
38559
|
rest = _objectWithoutProperties(_group$getFooterGroup, _excluded);
|
38671
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
38560
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableFooterRow, _extends({
|
38672
38561
|
key: key,
|
38673
38562
|
role: "row"
|
38674
38563
|
}, rest, {
|
38675
|
-
className: (0,
|
38564
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
38676
38565
|
footerRow: true
|
38677
38566
|
})
|
38678
38567
|
}), group.headers.map(function (column) {
|
@@ -38680,7 +38569,7 @@ var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
38680
38569
|
column: column,
|
38681
38570
|
key: column.getFooterProps().key,
|
38682
38571
|
rowDensity: rowDensity,
|
38683
|
-
className: (0,
|
38572
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
38684
38573
|
footerCell: true
|
38685
38574
|
})
|
38686
38575
|
});
|
@@ -38688,28 +38577,47 @@ var TableFooter = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
38688
38577
|
}));
|
38689
38578
|
});
|
38690
38579
|
TableFooter.displayName = 'TableFooter';
|
38580
|
+
var TableFooterRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
38581
|
+
displayName: "TableFooterRow",
|
38582
|
+
componentId: "sc-12b7s5j-0"
|
38583
|
+
})(["border-top:1px solid ", ";"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3);
|
38691
38584
|
var FooterCell = function FooterCell(props) {
|
38692
38585
|
var className = props.className,
|
38693
38586
|
column = props.column,
|
38694
38587
|
rowDensity = props.rowDensity;
|
38695
38588
|
var _column$type = column.type,
|
38696
|
-
type = _column$type === void 0 ? 'string' : _column$type
|
38697
|
-
|
38589
|
+
type = _column$type === void 0 ? 'string' : _column$type,
|
38590
|
+
isLastPinned = column.isLastPinned;
|
38591
|
+
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
|
38698
38592
|
getColumnProps = _useTableContext2.getColumnProps,
|
38699
38593
|
getFooterProps = _useTableContext2.getFooterProps;
|
38700
38594
|
var footerProps = _objectSpread({
|
38701
38595
|
$type: type,
|
38702
|
-
$rowDensity: rowDensity
|
38703
|
-
$isFooter: true
|
38596
|
+
$rowDensity: rowDensity
|
38704
38597
|
}, column.getFooterProps([getColumnProps(column), getFooterProps(column)]));
|
38705
|
-
footerProps.className = (0,
|
38598
|
+
footerProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
38706
38599
|
footer: true
|
38707
38600
|
}, className, footerProps.className);
|
38708
|
-
|
38601
|
+
footerProps.$isLastPinned = isLastPinned;
|
38602
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FooterCellContent, _extends({
|
38709
38603
|
role: "cell"
|
38710
38604
|
}, footerProps), column.render('Footer'));
|
38711
38605
|
};
|
38712
|
-
|
38606
|
+
var FooterCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
38607
|
+
displayName: "FooterCellContent",
|
38608
|
+
componentId: "sc-12b7s5j-1"
|
38609
|
+
})(["padding:5px 15px;overflow-x:clip;", " background-color:", ";", " border-right:", ";"], function (props) {
|
38610
|
+
return props.$type == 'number' ? 'text-align: right;' : null;
|
38611
|
+
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, function (props) {
|
38612
|
+
if (props.$rowDensity == 'diamond_hand') {
|
38613
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:11px;padding-bottom:11px;"]);
|
38614
|
+
}
|
38615
|
+
if (props.$rowDensity == 'white_spaced') {
|
38616
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:25px;padding-bottom:25px;"]);
|
38617
|
+
}
|
38618
|
+
}, function (props) {
|
38619
|
+
return props.$isLastPinned ? "2px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3) : 'none';
|
38620
|
+
});
|
38713
38621
|
|
38714
38622
|
/***/ }),
|
38715
38623
|
|
@@ -38743,7 +38651,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
38743
38651
|
|
38744
38652
|
/*jslint react:true*/
|
38745
38653
|
|
38746
|
-
var _excluded = ["key"];
|
38747
38654
|
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); }
|
38748
38655
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
38749
38656
|
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."); }
|
@@ -38752,8 +38659,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
38752
38659
|
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; } }
|
38753
38660
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
38754
38661
|
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); }
|
38755
|
-
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; }
|
38756
|
-
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; }
|
38757
38662
|
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; }
|
38758
38663
|
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; }
|
38759
38664
|
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; }
|
@@ -38772,7 +38677,8 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
38772
38677
|
var TableHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
38773
38678
|
var className = props.className,
|
38774
38679
|
compact = props.compact,
|
38775
|
-
left = props.left
|
38680
|
+
left = props.left,
|
38681
|
+
hideLastRowBorder = props.hideLastRowBorder;
|
38776
38682
|
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38777
38683
|
headerGroups = _useTableContext.headerGroups,
|
38778
38684
|
hideHeader = _useTableContext.hideHeader;
|
@@ -38790,18 +38696,16 @@ var TableHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
38790
38696
|
tableHeader: true,
|
38791
38697
|
'tableHeader--is-compact': compact
|
38792
38698
|
})
|
38793
|
-
}), headerGroups.map(function (group) {
|
38794
|
-
|
38795
|
-
key
|
38796
|
-
|
38797
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", _extends({
|
38798
|
-
key: key
|
38799
|
-
}, rest, {
|
38699
|
+
}), headerGroups.map(function (group, n) {
|
38700
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableHeaderRow, _extends({
|
38701
|
+
key: group.getHeaderGroupProps().key
|
38702
|
+
}, group.getHeaderGroupProps(), {
|
38800
38703
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(className, {
|
38801
38704
|
headerRow: true
|
38802
|
-
})
|
38803
|
-
|
38804
|
-
|
38705
|
+
}),
|
38706
|
+
$isLast: hideLastRowBorder && n == headerGroups.length - 1
|
38707
|
+
}), group.headers.map(function (header, i) {
|
38708
|
+
var isLast = i == group.length - 1;
|
38805
38709
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCell, {
|
38806
38710
|
compact: compact,
|
38807
38711
|
isLast: isLast,
|
@@ -38825,7 +38729,9 @@ var HeaderCell = function HeaderCell(props) {
|
|
38825
38729
|
var id = header.id,
|
38826
38730
|
name = header.name,
|
38827
38731
|
isResizing = header.isResizing,
|
38828
|
-
getResizerProps = header.getResizerProps
|
38732
|
+
getResizerProps = header.getResizerProps,
|
38733
|
+
isPinned = header.isPinned,
|
38734
|
+
isLastPinned = header.isLastPinned;
|
38829
38735
|
var _useTableContext2 = (0,_context__WEBPACK_IMPORTED_MODULE_8__.useTableContext)(),
|
38830
38736
|
getColumnProps = _useTableContext2.getColumnProps,
|
38831
38737
|
getHeaderProps = _useTableContext2.getHeaderProps,
|
@@ -38836,14 +38742,14 @@ var HeaderCell = function HeaderCell(props) {
|
|
38836
38742
|
onColumnSortChanged = _useTableContext2.onColumnSortChanged;
|
38837
38743
|
var sort = columnSort[id];
|
38838
38744
|
var onSortChanged = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(onColumnSortChanged, header.on_sort);
|
38839
|
-
var canSort = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(header.canSort, header.can_sort) && !!
|
38745
|
+
var canSort = (0,_util__WEBPACK_IMPORTED_MODULE_5__.firstDefined)(header.canSort, header.can_sort) && !!onSortChanged;
|
38840
38746
|
var onSort = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
38841
38747
|
onSortChanged === null || onSortChanged === void 0 || onSortChanged(id, {
|
38842
38748
|
asc: 'desc',
|
38843
38749
|
desc: undefined,
|
38844
38750
|
none: 'asc'
|
38845
38751
|
}[sort || 'none']);
|
38846
|
-
}, [id, sort,
|
38752
|
+
}, [id, sort, onSortChanged]);
|
38847
38753
|
var canResize = header.canResize && !(fullWidth && isLast) && !compact;
|
38848
38754
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
38849
38755
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -38851,6 +38757,12 @@ var HeaderCell = function HeaderCell(props) {
|
|
38851
38757
|
setHovered = _useState2[1];
|
38852
38758
|
var iconVisible = canSort && (['asc', 'desc'].includes(sort) || hovered);
|
38853
38759
|
var headerCellProps = header.getHeaderProps([getColumnProps(header), getHeaderProps(header)]);
|
38760
|
+
if (isPinned) {
|
38761
|
+
headerCellProps.style = _objectSpread(_objectSpread({}, headerCellProps.style), {}, {
|
38762
|
+
zIndex: _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.pinnedColumnHeader
|
38763
|
+
});
|
38764
|
+
}
|
38765
|
+
headerCellProps.$isLastPinned = isLastPinned;
|
38854
38766
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellContent, _extends({}, headerCellProps, {
|
38855
38767
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(header.className, {
|
38856
38768
|
header: true
|
@@ -38884,28 +38796,36 @@ var HeaderCell = function HeaderCell(props) {
|
|
38884
38796
|
},
|
38885
38797
|
orderLogic: canOrderColumns && orderLogic,
|
38886
38798
|
onSortChanged: onSortChanged
|
38887
|
-
}), canResize && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellResizer, _extends({}, getResizerProps(), {
|
38799
|
+
})), canResize && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderCellResizer, _extends({}, getResizerProps(), {
|
38888
38800
|
$isResizing: isResizing
|
38889
|
-
})))
|
38801
|
+
})));
|
38890
38802
|
};
|
38803
|
+
var TableHeaderRow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38804
|
+
displayName: "TableHeaderRow",
|
38805
|
+
componentId: "sc-8zg5t0-0"
|
38806
|
+
})(["border-bottom:", ";"], function (props) {
|
38807
|
+
return props.$isLast ? 'none' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_3);
|
38808
|
+
});
|
38891
38809
|
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38892
38810
|
displayName: "HeaderCellContent",
|
38893
|
-
componentId: "sc-8zg5t0-
|
38894
|
-
})(["background-color:", ";&:hover{background-color:", ";}border-
|
38811
|
+
componentId: "sc-8zg5t0-1"
|
38812
|
+
})(["background-color:", ";&:hover{background-color:", ";}border-right:", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_2, function (props) {
|
38813
|
+
return props.$isLastPinned ? "2px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_3) : 'none';
|
38814
|
+
});
|
38895
38815
|
var HeaderCellWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38896
38816
|
displayName: "HeaderCellWrapper",
|
38897
|
-
componentId: "sc-8zg5t0-
|
38817
|
+
componentId: "sc-8zg5t0-2"
|
38898
38818
|
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:8px 8px 8px 16px;"]);
|
38899
38819
|
var HeaderCellLeft = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38900
38820
|
displayName: "HeaderCellLeft",
|
38901
|
-
componentId: "sc-8zg5t0-
|
38821
|
+
componentId: "sc-8zg5t0-3"
|
38902
38822
|
})(["display:flex;flex-direction:row;align-items:center;padding:0px;gap:4px;min-height:16px;overflow-x:clip;"]);
|
38903
38823
|
var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
38904
38824
|
displayName: "HeaderCellResizer",
|
38905
|
-
componentId: "sc-8zg5t0-
|
38825
|
+
componentId: "sc-8zg5t0-4"
|
38906
38826
|
})(["display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:", ";touch-action:none;", ""], _constants__WEBPACK_IMPORTED_MODULE_7__.Z_INDEX.cellResizer, function (props) {
|
38907
38827
|
if (props.$isResizing) {
|
38908
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["&:after{content:\" \";display:block;width:2px;height:
|
38828
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["&:after{content:\" \";display:block;width:2px;height:100%;background:", ";position:absolute;bottom:0;left:4px;}"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.blue_10);
|
38909
38829
|
}
|
38910
38830
|
});
|
38911
38831
|
var renderCellContent = function renderCellContent(column, type, props) {
|
@@ -39699,20 +39619,13 @@ var cellStylesPinned = {
|
|
39699
39619
|
};
|
39700
39620
|
var getPinnedProps = function getPinnedProps(header, instance) {
|
39701
39621
|
var style = {};
|
39702
|
-
var dataAttrs = {};
|
39703
39622
|
checkPinnedErrors(instance.columns);
|
39704
|
-
if (getPinnedValue(header)) {
|
39705
|
-
|
39706
|
-
|
39707
|
-
|
39708
|
-
style = _objectSpread(_objectSpread({}, style), {}, {
|
39709
|
-
left: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(header.totalLeft)
|
39710
|
-
});
|
39711
|
-
if (columnIsLastPinned(header.id, headers)) dataAttrs['data-pinned-last'] = true;
|
39712
|
-
}
|
39713
|
-
return _objectSpread({
|
39623
|
+
if (getPinnedValue(header)) style = assign({}, cellStylesPinned, {
|
39624
|
+
left: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(header.totalLeft)
|
39625
|
+
});
|
39626
|
+
return {
|
39714
39627
|
style: style
|
39715
|
-
}
|
39628
|
+
};
|
39716
39629
|
};
|
39717
39630
|
var usePinnedReducer = function usePinnedReducer(state, action) {
|
39718
39631
|
if (action.type == react_table__WEBPACK_IMPORTED_MODULE_1__.actions.init) return _objectSpread({
|
@@ -39758,10 +39671,12 @@ var usePinnedInstance = function usePinnedInstance(instance) {
|
|
39758
39671
|
return col.id;
|
39759
39672
|
}));
|
39760
39673
|
}, [dispatch, columns, setColumnOrder]);
|
39761
|
-
flatHeaders.forEach(function (
|
39762
|
-
|
39763
|
-
return togglePinColumn(
|
39674
|
+
flatHeaders.forEach(function (header) {
|
39675
|
+
header.togglePinned = function (value) {
|
39676
|
+
return togglePinColumn(header.id, value);
|
39764
39677
|
};
|
39678
|
+
var headers = findHeadersSameLevel(header, flatHeaders);
|
39679
|
+
header.isLastPinned = columnIsLastPinned(header.id, headers);
|
39765
39680
|
});
|
39766
39681
|
assign(instance, {
|
39767
39682
|
togglePinColumn: togglePinColumn
|
@@ -39867,9 +39782,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
39867
39782
|
/* harmony export */ });
|
39868
39783
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
39869
39784
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
39870
|
-
/* harmony import */ var
|
39871
|
-
/* harmony import */ var
|
39872
|
-
/* harmony import */ var
|
39785
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
39786
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
39787
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
39788
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39789
|
+
/* harmony import */ var _table_cell__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table_cell */ "./src/table/table_cell.js");
|
39873
39790
|
// LICENSE_CODE ZON
|
39874
39791
|
|
39875
39792
|
|
@@ -39879,6 +39796,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
39879
39796
|
|
39880
39797
|
|
39881
39798
|
|
39799
|
+
|
39882
39800
|
var preventOnClickClass = 'tableCell--preventOnClick';
|
39883
39801
|
var renderRow = function renderRow(opt) {
|
39884
39802
|
var className = opt.className,
|
@@ -39886,35 +39804,36 @@ var renderRow = function renderRow(opt) {
|
|
39886
39804
|
onRowClick = opt.onRowClick,
|
39887
39805
|
getRowProps = opt.getRowProps,
|
39888
39806
|
rowDensity = opt.rowDensity,
|
39889
|
-
|
39807
|
+
isLast = opt.isLast,
|
39890
39808
|
renderRowSubComponent = opt.renderRowSubComponent;
|
39891
39809
|
var rowProps = row.getRowProps(getRowProps === null || getRowProps === void 0 ? void 0 : getRowProps(row));
|
39892
39810
|
var onClick = onRowClick ? function (evt) {
|
39893
39811
|
if (!evt.target.matches(".".concat(preventOnClickClass, " *"))) onRowClick(row.original, evt);
|
39894
39812
|
} : undefined;
|
39895
39813
|
var cursor = onRowClick ? 'pointer' : undefined;
|
39896
|
-
var tableRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
39814
|
+
var tableRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableRow, _extends({}, rowProps, {
|
39897
39815
|
onClick: onClick,
|
39898
|
-
className: (0,
|
39816
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
39899
39817
|
tableRow: true,
|
39900
|
-
'tableRow--is-pinned': row.isPinned
|
39818
|
+
'tableRow--is-pinned': row.isPinned,
|
39819
|
+
'tableRow--is-last': isLast
|
39901
39820
|
}, rowProps.className),
|
39902
|
-
$cursor: cursor
|
39821
|
+
$cursor: cursor,
|
39822
|
+
$isLast: isLast,
|
39823
|
+
$rowDensity: rowDensity
|
39903
39824
|
}), row.cells.map(function (cell) {
|
39904
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
39825
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_table_cell__WEBPACK_IMPORTED_MODULE_4__.TableCell, {
|
39905
39826
|
key: cell.getCellProps().key,
|
39906
39827
|
cell: cell,
|
39907
|
-
className: className
|
39908
|
-
rowDensity: rowDensity,
|
39909
|
-
isLastRow: isLastRow
|
39828
|
+
className: className
|
39910
39829
|
});
|
39911
39830
|
}));
|
39912
39831
|
if (!row.isExpanded || !renderRowSubComponent) return tableRow;
|
39913
39832
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
39914
39833
|
key: "".concat(rowProps.key, "_fragment")
|
39915
|
-
}, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
39834
|
+
}, tableRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableRow, _extends({}, rowProps, {
|
39916
39835
|
key: "".concat(rowProps.key, "_subcomponent"),
|
39917
|
-
className: (0,
|
39836
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
39918
39837
|
rowSubComponent: true
|
39919
39838
|
}, rowProps.className)
|
39920
39839
|
}), renderRowSubComponent({
|
@@ -39922,6 +39841,19 @@ var renderRow = function renderRow(opt) {
|
|
39922
39841
|
rowProps: rowProps
|
39923
39842
|
})));
|
39924
39843
|
};
|
39844
|
+
var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39845
|
+
displayName: "TableRow",
|
39846
|
+
componentId: "sc-vrm5bg-0"
|
39847
|
+
})(["cursor:", ";border-bottom:", ";& ", "{height:", "px;}&:hover ", "{background-color:", ";}"], function (props) {
|
39848
|
+
return props.$cursor;
|
39849
|
+
}, function (props) {
|
39850
|
+
return props.$isLast ? 'none' : "1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3);
|
39851
|
+
}, _table_cell__WEBPACK_IMPORTED_MODULE_4__.CellContent, function (props) {
|
39852
|
+
return {
|
39853
|
+
diamond_hand: '44',
|
39854
|
+
white_spaced: '72'
|
39855
|
+
}[props.$rowDensity] || '32';
|
39856
|
+
}, _table_cell__WEBPACK_IMPORTED_MODULE_4__.TableCellContent, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_2);
|
39925
39857
|
|
39926
39858
|
/***/ }),
|
39927
39859
|
|
@@ -40024,7 +39956,7 @@ var PopoverMenu = function PopoverMenu(props) {
|
|
40024
39956
|
});
|
40025
39957
|
});
|
40026
39958
|
}, [allActions]);
|
40027
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_4__
|
39959
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_menu__WEBPACK_IMPORTED_MODULE_4__.Menu, {
|
40028
39960
|
className: _render_row__WEBPACK_IMPORTED_MODULE_7__.preventOnClickClass,
|
40029
39961
|
items: items,
|
40030
39962
|
size: "sm"
|
@@ -40358,11 +40290,13 @@ var StickyHeader = function StickyHeader(props) {
|
|
40358
40290
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_header__WEBPACK_IMPORTED_MODULE_8__.TableHeader, {
|
40359
40291
|
left: left,
|
40360
40292
|
className: className,
|
40361
|
-
compact: true
|
40362
|
-
|
40293
|
+
compact: true,
|
40294
|
+
hideLastRowBorder: pinnedRows.length == 0
|
40295
|
+
}), pinnedRows.map(function (row, i) {
|
40363
40296
|
prepareRow(row);
|
40364
40297
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
40365
40298
|
row: row,
|
40299
|
+
isLast: i == pinnedRows.length - 1,
|
40366
40300
|
columnStartEditing: columnStartEditing,
|
40367
40301
|
columnDoneEditing: columnDoneEditing,
|
40368
40302
|
rowDensity: rowDensity,
|
@@ -40371,12 +40305,10 @@ var StickyHeader = function StickyHeader(props) {
|
|
40371
40305
|
});
|
40372
40306
|
}));
|
40373
40307
|
};
|
40374
|
-
StickyHeader.displayName = 'StickyHeader';
|
40375
40308
|
var StickyHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
40376
40309
|
displayName: "StickyHeaderWrapper",
|
40377
40310
|
componentId: "sc-hh47bp-0"
|
40378
40311
|
})(["position:fixed;z-index:", ";overflow-x:hidden;box-shadow:0px 2px 4px -2px rgba(24,39,75,0.12);"], _constants__WEBPACK_IMPORTED_MODULE_5__.Z_INDEX.stickyHeader);
|
40379
|
-
StickyHeaderWrapper.displayName = 'StickyHeaderWrapper';
|
40380
40312
|
|
40381
40313
|
/***/ }),
|
40382
40314
|
|
@@ -40630,12 +40562,10 @@ var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.
|
|
40630
40562
|
displayName: "TableWrapper",
|
40631
40563
|
componentId: "sc-ebeoik-0"
|
40632
40564
|
})(["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);
|
40633
|
-
TableWrapper.displayName = 'TableWrapper';
|
40634
40565
|
var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
40635
40566
|
displayName: "StyledTable",
|
40636
40567
|
componentId: "sc-ebeoik-1"
|
40637
40568
|
})(["min-width:100%;border-spacing:0;border-collapse:separate;"]);
|
40638
|
-
StyledTable.displayName = 'StyledTable';
|
40639
40569
|
var TableBody = function TableBody(props) {
|
40640
40570
|
var className = props.className,
|
40641
40571
|
rowDensity = props.rowDensity,
|
@@ -40655,14 +40585,14 @@ var TableBody = function TableBody(props) {
|
|
40655
40585
|
var body = function () {
|
40656
40586
|
if (isLoading) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(LoadingComp);
|
40657
40587
|
if (!page.length) return (0,_util__WEBPACK_IMPORTED_MODULE_5__.flexRender)(NoDataComp);
|
40658
|
-
return page.map(function (row, i
|
40588
|
+
return page.map(function (row, i) {
|
40659
40589
|
prepareRow(row);
|
40660
40590
|
if (row.isPinned) return null;
|
40661
40591
|
return (0,_render_row__WEBPACK_IMPORTED_MODULE_9__.renderRow)({
|
40662
40592
|
row: row,
|
40663
40593
|
rowDensity: rowDensity,
|
40664
40594
|
onRowClick: onRowClick,
|
40665
|
-
|
40595
|
+
isLast: i == page.length - 1,
|
40666
40596
|
className: className,
|
40667
40597
|
getRowProps: getRowProps,
|
40668
40598
|
renderRowSubComponent: renderRowSubComponent
|
@@ -40698,29 +40628,111 @@ var TableBodyRowGroup = styled_components__WEBPACK_IMPORTED_MODULE_3___default()
|
|
40698
40628
|
|
40699
40629
|
/***/ }),
|
40700
40630
|
|
40701
|
-
/***/ "./src/table/
|
40702
|
-
|
40703
|
-
!*** ./src/table/
|
40704
|
-
|
40631
|
+
/***/ "./src/table/table_cell.js":
|
40632
|
+
/*!*********************************!*\
|
40633
|
+
!*** ./src/table/table_cell.js ***!
|
40634
|
+
\*********************************/
|
40705
40635
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
40706
40636
|
|
40707
40637
|
"use strict";
|
40708
40638
|
__webpack_require__.r(__webpack_exports__);
|
40709
40639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
40710
|
-
/* harmony export */
|
40640
|
+
/* harmony export */ CellContent: () => (/* binding */ CellContent),
|
40641
|
+
/* harmony export */ EditableCellContent: () => (/* binding */ EditableCellContent),
|
40642
|
+
/* harmony export */ TableCell: () => (/* binding */ TableCell),
|
40643
|
+
/* harmony export */ TableCellContent: () => (/* binding */ TableCellContent)
|
40711
40644
|
/* harmony export */ });
|
40712
|
-
/* harmony import */ var
|
40713
|
-
/* harmony import */ var
|
40645
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
40646
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
40647
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40648
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
40649
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
40650
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40651
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
40714
40652
|
// LICENSE_CODE ZON
|
40715
40653
|
|
40716
40654
|
|
40717
40655
|
/*jslint react:true*/
|
40656
|
+
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); }
|
40718
40657
|
|
40719
|
-
|
40720
|
-
|
40721
|
-
|
40722
|
-
|
40723
|
-
|
40658
|
+
|
40659
|
+
|
40660
|
+
|
40661
|
+
|
40662
|
+
var TableCell = function TableCell(props) {
|
40663
|
+
var className = props.className,
|
40664
|
+
cell = props.cell;
|
40665
|
+
var row = cell.row,
|
40666
|
+
column = cell.column,
|
40667
|
+
isEditing = cell.isEditing;
|
40668
|
+
var rowId = row.id;
|
40669
|
+
var columnId = column.id,
|
40670
|
+
_column$type = column.type,
|
40671
|
+
type = _column$type === void 0 ? 'string' : _column$type,
|
40672
|
+
canEdit = column.canEdit,
|
40673
|
+
isLastPinned = column.isLastPinned;
|
40674
|
+
var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_4__.useTableContext)(),
|
40675
|
+
columnStartEditing = _useTableContext.columnStartEditing,
|
40676
|
+
columnDoneEditing = _useTableContext.columnDoneEditing,
|
40677
|
+
getColumnProps = _useTableContext.getColumnProps,
|
40678
|
+
getCellProps = _useTableContext.getCellProps,
|
40679
|
+
isCellEditable = _useTableContext.isCellEditable,
|
40680
|
+
onStartEdit = _useTableContext.onStartEdit;
|
40681
|
+
var cellEditable = canEdit && isCellEditable(cell);
|
40682
|
+
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
40683
|
+
columnStartEditing(columnId, rowId);
|
40684
|
+
}, [columnStartEditing, columnId, rowId]);
|
40685
|
+
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
40686
|
+
columnDoneEditing(columnId, rowId);
|
40687
|
+
}, [columnDoneEditing, columnId, rowId]);
|
40688
|
+
var onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
40689
|
+
if (cellEditable) {
|
40690
|
+
evt.stopPropagation();
|
40691
|
+
onStartEdit === null || onStartEdit === void 0 || onStartEdit(cell, {
|
40692
|
+
startEditing: startEditing,
|
40693
|
+
doneEditing: doneEditing
|
40694
|
+
});
|
40695
|
+
}
|
40696
|
+
}, [cellEditable, onStartEdit, startEditing, doneEditing]);
|
40697
|
+
var cellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]);
|
40698
|
+
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(column.className, {
|
40699
|
+
cell: true
|
40700
|
+
}), (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
40701
|
+
tableCell: true
|
40702
|
+
}), (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(className, {
|
40703
|
+
'tableCell--is-editable': cellEditable
|
40704
|
+
}), cellProps.className);
|
40705
|
+
var Comp = cellEditable ? EditableCellContent : CellContent;
|
40706
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(TableCellContent, _extends({
|
40707
|
+
$isLastPinned: isLastPinned
|
40708
|
+
}, cellProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, {
|
40709
|
+
$type: type,
|
40710
|
+
$isEditing: isEditing,
|
40711
|
+
onClick: onClick
|
40712
|
+
}, cell.render('Cell', {
|
40713
|
+
row: row,
|
40714
|
+
isEditing: isEditing,
|
40715
|
+
startEditing: startEditing,
|
40716
|
+
doneEditing: doneEditing
|
40717
|
+
})));
|
40718
|
+
};
|
40719
|
+
var TableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
40720
|
+
displayName: "TableCellContent",
|
40721
|
+
componentId: "sc-1gdt4qg-0"
|
40722
|
+
})(["background-color:", ";border-right:", ";"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, function (props) {
|
40723
|
+
return props.$isLastPinned ? "2px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3) : 'none';
|
40724
|
+
});
|
40725
|
+
var CellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
40726
|
+
displayName: "CellContent",
|
40727
|
+
componentId: "sc-1gdt4qg-1"
|
40728
|
+
})(["box-sizing:border-box;display:flex;align-items:center;padding:0 15px;overflow:clip;", ""], function (props) {
|
40729
|
+
return props.$type == 'number' ? 'text-align: right;' : null;
|
40730
|
+
});
|
40731
|
+
var EditableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(CellContent).withConfig({
|
40732
|
+
displayName: "EditableCellContent",
|
40733
|
+
componentId: "sc-1gdt4qg-2"
|
40734
|
+
})(["padding:0 14px;border:1px solid transparent;&:hover{background-color:", ";border-color:", ";}", ""], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9, function (props) {
|
40735
|
+
return props.$isEditing ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11) : undefined;
|
40724
40736
|
});
|
40725
40737
|
|
40726
40738
|
/***/ }),
|
@@ -40783,7 +40795,7 @@ var BadgeIcon = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_icon__
|
|
40783
40795
|
componentId: "sc-1j3m7xm-0"
|
40784
40796
|
})(["min-width:14px;width:14px;min-height:14px;height:14px;color:", ";"], _theme__WEBPACK_IMPORTED_MODULE_6__["default"].color.gray_9);
|
40785
40797
|
var TagBadge = function TagBadge(props) {
|
40786
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_badge__WEBPACK_IMPORTED_MODULE_3__
|
40798
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_badge__WEBPACK_IMPORTED_MODULE_3__.Badge, {
|
40787
40799
|
shape: "rounded"
|
40788
40800
|
}, props.children);
|
40789
40801
|
};
|