UNPKG

162 kBJavaScriptView Raw
1/**
2 * Bundle of @devexpress/dx-react-grid-material-ui
3 * Generated: 2023-07-03
4 * Version: 4.0.5
5 * License: https://js.devexpress.com/Licensing
6 */
7
8import { createElement, PureComponent, memo, useState, Fragment, forwardRef, useRef, useCallback, useEffect, createRef, cloneElement } from 'react';
9import PropTypes from 'prop-types';
10import { Grid as Grid$1, ColumnChooser as ColumnChooser$1, DragDropProvider as DragDropProvider$1, withKeyboardNavigation, PagingPanel as PagingPanel$1, GroupingPanel as GroupingPanel$1, TableRowDetail as TableRowDetail$1, TableGroupRow as TableGroupRow$1, InlineSummaryItem, TableSelection as TableSelection$1, TableLayout as TableLayout$1, StaticTableLayout, Table as Table$3, VirtualTableLayout as VirtualTableLayout$1, makeVirtualTable, TableFilterRow as TableFilterRow$1, TableHeaderRow as TableHeaderRow$1, TableBandHeader as TableBandHeader$1, TableEditRow as TableEditRow$1, TableEditColumn as TableEditColumn$1, TableColumnVisibility as TableColumnVisibility$1, TableColumnReordering as TableColumnReordering$1, TableColumnResizing as TableColumnResizing$1, Toolbar as Toolbar$3, TableTreeColumn as TableTreeColumn$1, SearchPanel as SearchPanel$1, TableFixedColumns as TableFixedColumns$1, TableSummaryRow as TableSummaryRow$1, TableInlineCellEditing as TableInlineCellEditing$1, ExportPanel as ExportPanel$1, TableKeyboardNavigation as TableKeyboardNavigation$1 } from '@devexpress/dx-react-grid';
11import classNames from 'clsx';
12import { styled, Popover, List, Tooltip, IconButton, ListItem, Checkbox, ListItemText, Chip, Select, Input, MenuItem as MenuItem$1, Button, TableSortLabel, TableCell as TableCell$1, TableRow as TableRow$1, lighten, alpha, darken, TableHead, TableFooter, TableBody, Table as Table$2, Menu as Menu$1, ListItemIcon, SvgIcon, Toolbar as Toolbar$2, InputAdornment } from '@mui/material';
13import { withComponents, Draggable, DragSource, Sizer } from '@devexpress/dx-react-core';
14import VisibilityOff from '@mui/icons-material/esm/VisibilityOff.js';
15import ChevronLeft from '@mui/icons-material/esm/ChevronLeft.js';
16import ChevronRight from '@mui/icons-material/esm/ChevronRight.js';
17import { firstRowOnPage, lastRowOnPage, calculateStartPage, getCellGeometries } from '@devexpress/dx-grid-core';
18import ExpandMore from '@mui/icons-material/esm/ExpandMore.js';
19import ExpandLess from '@mui/icons-material/esm/ExpandLess.js';
20import SearchIcon from '@mui/icons-material/esm/Search.js';
21import List$1 from '@mui/icons-material/esm/List.js';
22import Save from '@mui/icons-material/esm/Save.js';
23
24function ownKeys(object, enumerableOnly) {
25 var keys = Object.keys(object);
26
27 if (Object.getOwnPropertySymbols) {
28 var symbols = Object.getOwnPropertySymbols(object);
29
30 if (enumerableOnly) {
31 symbols = symbols.filter(function (sym) {
32 return Object.getOwnPropertyDescriptor(object, sym).enumerable;
33 });
34 }
35
36 keys.push.apply(keys, symbols);
37 }
38
39 return keys;
40}
41
42function _objectSpread2(target) {
43 for (var i = 1; i < arguments.length; i++) {
44 var source = arguments[i] != null ? arguments[i] : {};
45
46 if (i % 2) {
47 ownKeys(Object(source), true).forEach(function (key) {
48 _defineProperty(target, key, source[key]);
49 });
50 } else if (Object.getOwnPropertyDescriptors) {
51 Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
52 } else {
53 ownKeys(Object(source)).forEach(function (key) {
54 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
55 });
56 }
57 }
58
59 return target;
60}
61
62function _classCallCheck(instance, Constructor) {
63 if (!(instance instanceof Constructor)) {
64 throw new TypeError("Cannot call a class as a function");
65 }
66}
67
68function _defineProperties(target, props) {
69 for (var i = 0; i < props.length; i++) {
70 var descriptor = props[i];
71 descriptor.enumerable = descriptor.enumerable || false;
72 descriptor.configurable = true;
73 if ("value" in descriptor) descriptor.writable = true;
74 Object.defineProperty(target, descriptor.key, descriptor);
75 }
76}
77
78function _createClass(Constructor, protoProps, staticProps) {
79 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
80 if (staticProps) _defineProperties(Constructor, staticProps);
81 return Constructor;
82}
83
84function _defineProperty(obj, key, value) {
85 if (key in obj) {
86 Object.defineProperty(obj, key, {
87 value: value,
88 enumerable: true,
89 configurable: true,
90 writable: true
91 });
92 } else {
93 obj[key] = value;
94 }
95
96 return obj;
97}
98
99function _extends() {
100 _extends = Object.assign || function (target) {
101 for (var i = 1; i < arguments.length; i++) {
102 var source = arguments[i];
103
104 for (var key in source) {
105 if (Object.prototype.hasOwnProperty.call(source, key)) {
106 target[key] = source[key];
107 }
108 }
109 }
110
111 return target;
112 };
113
114 return _extends.apply(this, arguments);
115}
116
117function _inherits(subClass, superClass) {
118 if (typeof superClass !== "function" && superClass !== null) {
119 throw new TypeError("Super expression must either be null or a function");
120 }
121
122 subClass.prototype = Object.create(superClass && superClass.prototype, {
123 constructor: {
124 value: subClass,
125 writable: true,
126 configurable: true
127 }
128 });
129 if (superClass) _setPrototypeOf(subClass, superClass);
130}
131
132function _getPrototypeOf(o) {
133 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
134 return o.__proto__ || Object.getPrototypeOf(o);
135 };
136 return _getPrototypeOf(o);
137}
138
139function _setPrototypeOf(o, p) {
140 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
141 o.__proto__ = p;
142 return o;
143 };
144
145 return _setPrototypeOf(o, p);
146}
147
148function _isNativeReflectConstruct() {
149 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
150 if (Reflect.construct.sham) return false;
151 if (typeof Proxy === "function") return true;
152
153 try {
154 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
155 return true;
156 } catch (e) {
157 return false;
158 }
159}
160
161function _objectWithoutPropertiesLoose(source, excluded) {
162 if (source == null) return {};
163 var target = {};
164 var sourceKeys = Object.keys(source);
165 var key, i;
166
167 for (i = 0; i < sourceKeys.length; i++) {
168 key = sourceKeys[i];
169 if (excluded.indexOf(key) >= 0) continue;
170 target[key] = source[key];
171 }
172
173 return target;
174}
175
176function _objectWithoutProperties(source, excluded) {
177 if (source == null) return {};
178
179 var target = _objectWithoutPropertiesLoose(source, excluded);
180
181 var key, i;
182
183 if (Object.getOwnPropertySymbols) {
184 var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
185
186 for (i = 0; i < sourceSymbolKeys.length; i++) {
187 key = sourceSymbolKeys[i];
188 if (excluded.indexOf(key) >= 0) continue;
189 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
190 target[key] = source[key];
191 }
192 }
193
194 return target;
195}
196
197function _assertThisInitialized(self) {
198 if (self === void 0) {
199 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
200 }
201
202 return self;
203}
204
205function _possibleConstructorReturn(self, call) {
206 if (call && (typeof call === "object" || typeof call === "function")) {
207 return call;
208 }
209
210 return _assertThisInitialized(self);
211}
212
213function _createSuper(Derived) {
214 var hasNativeReflectConstruct = _isNativeReflectConstruct();
215
216 return function _createSuperInternal() {
217 var Super = _getPrototypeOf(Derived),
218 result;
219
220 if (hasNativeReflectConstruct) {
221 var NewTarget = _getPrototypeOf(this).constructor;
222
223 result = Reflect.construct(Super, arguments, NewTarget);
224 } else {
225 result = Super.apply(this, arguments);
226 }
227
228 return _possibleConstructorReturn(this, result);
229 };
230}
231
232function _slicedToArray(arr, i) {
233 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
234}
235
236function _arrayWithHoles(arr) {
237 if (Array.isArray(arr)) return arr;
238}
239
240function _iterableToArrayLimit(arr, i) {
241 var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
242
243 if (_i == null) return;
244 var _arr = [];
245 var _n = true;
246 var _d = false;
247
248 var _s, _e;
249
250 try {
251 for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
252 _arr.push(_s.value);
253
254 if (i && _arr.length === i) break;
255 }
256 } catch (err) {
257 _d = true;
258 _e = err;
259 } finally {
260 try {
261 if (!_n && _i["return"] != null) _i["return"]();
262 } finally {
263 if (_d) throw _e;
264 }
265 }
266
267 return _arr;
268}
269
270function _unsupportedIterableToArray(o, minLen) {
271 if (!o) return;
272 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
273 var n = Object.prototype.toString.call(o).slice(8, -1);
274 if (n === "Object" && o.constructor) n = o.constructor.name;
275 if (n === "Map" || n === "Set") return Array.from(o);
276 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
277}
278
279function _arrayLikeToArray(arr, len) {
280 if (len == null || len > arr.length) len = arr.length;
281
282 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
283
284 return arr2;
285}
286
287function _nonIterableRest() {
288 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
289}
290
291var _excluded = ["children", "className", "rootRef"];
292var PREFIX = 'Layout';
293var classes = {
294 root: "".concat(PREFIX, "-root")
295};
296var StyledDiv = styled('div')(function () {
297 return _defineProperty({}, "&.".concat(classes.root), {
298 display: 'flex',
299 flexDirection: 'column'
300 });
301});
302var Root = function Root(_ref2) {
303 var children = _ref2.children,
304 className = _ref2.className,
305 rootRef = _ref2.rootRef,
306 restProps = _objectWithoutProperties(_ref2, _excluded);
307
308 return /*#__PURE__*/createElement(StyledDiv, _extends({
309 className: classNames(classes.root, className),
310 ref: rootRef
311 }, restProps), children);
312};
313process.env.NODE_ENV !== "production" ? Root.propTypes = {
314 children: PropTypes.node.isRequired,
315 className: PropTypes.string,
316 rootRef: PropTypes.object
317} : void 0;
318Root.defaultProps = {
319 className: undefined,
320 rootRef: undefined
321};
322
323var _excluded$1 = ["children"];
324var Grid = function Grid(_ref) {
325 var children = _ref.children,
326 props = _objectWithoutProperties(_ref, _excluded$1);
327
328 return /*#__PURE__*/createElement(Grid$1, _extends({
329 rootComponent: Root
330 }, props), children);
331};
332Grid.Root = Root;
333process.env.NODE_ENV !== "production" ? Grid.propTypes = {
334 children: PropTypes.node.isRequired
335} : void 0;
336
337var _excluded$2 = ["visible", "onHide", "children", "target"];
338var Overlay = function Overlay(_ref) {
339 var visible = _ref.visible,
340 onHide = _ref.onHide,
341 children = _ref.children,
342 target = _ref.target,
343 restProps = _objectWithoutProperties(_ref, _excluded$2);
344
345 return /*#__PURE__*/createElement(Popover, _extends({
346 open: visible,
347 anchorEl: target,
348 onClose: onHide,
349 anchorOrigin: {
350 vertical: 'top',
351 horizontal: 'right'
352 },
353 transformOrigin: {
354 vertical: 'top',
355 horizontal: 'right'
356 }
357 }, restProps), children);
358};
359process.env.NODE_ENV !== "production" ? Overlay.propTypes = {
360 onHide: PropTypes.func.isRequired,
361 children: PropTypes.node.isRequired,
362 visible: PropTypes.bool,
363 target: PropTypes.oneOfType([PropTypes.object, PropTypes.func])
364} : void 0;
365Overlay.defaultProps = {
366 visible: false,
367 target: null
368};
369
370var _excluded$3 = ["children"];
371var Container = function Container(_ref) {
372 var children = _ref.children,
373 restProps = _objectWithoutProperties(_ref, _excluded$3);
374
375 return /*#__PURE__*/createElement(List, _extends({
376 dense: true
377 }, restProps), children);
378};
379process.env.NODE_ENV !== "production" ? Container.propTypes = {
380 children: PropTypes.node.isRequired
381} : void 0;
382
383var _excluded$4 = ["onToggle", "getMessage", "buttonRef", "active"];
384var ToggleButton = function ToggleButton(_ref) {
385 var onToggle = _ref.onToggle,
386 getMessage = _ref.getMessage,
387 buttonRef = _ref.buttonRef,
388 active = _ref.active,
389 restProps = _objectWithoutProperties(_ref, _excluded$4);
390
391 return /*#__PURE__*/createElement(Tooltip, {
392 title: getMessage('showColumnChooser'),
393 placement: "bottom",
394 enterDelay: 300
395 }, /*#__PURE__*/createElement(IconButton, _extends({
396 onClick: onToggle,
397 ref: buttonRef
398 }, restProps, {
399 size: "large"
400 }), /*#__PURE__*/createElement(VisibilityOff, null)));
401};
402process.env.NODE_ENV !== "production" ? ToggleButton.propTypes = {
403 onToggle: PropTypes.func.isRequired,
404 getMessage: PropTypes.func.isRequired,
405 buttonRef: PropTypes.func.isRequired,
406 active: PropTypes.bool
407} : void 0;
408ToggleButton.defaultProps = {
409 active: false
410};
411
412var _excluded$5 = ["item", "disabled", "onToggle"];
413var PREFIX$1 = 'Item';
414var classes$1 = {
415 checkbox: "".concat(PREFIX$1, "-checkbox"),
416 itemText: "".concat(PREFIX$1, "-itemText")
417};
418var StyledListItem = styled(ListItem)(function (_ref) {
419 var _ref2;
420
421 var theme = _ref.theme;
422 return _ref2 = {}, _defineProperty(_ref2, "& .".concat(classes$1.itemText), {
423 paddingLeft: theme.spacing(1)
424 }), _defineProperty(_ref2, "& .".concat(classes$1.checkbox), {
425 padding: 0
426 }), _ref2;
427});
428var Item = function Item(_ref3) {
429 var _ref3$item = _ref3.item,
430 column = _ref3$item.column,
431 hidden = _ref3$item.hidden,
432 disabled = _ref3.disabled,
433 onToggle = _ref3.onToggle,
434 restProps = _objectWithoutProperties(_ref3, _excluded$5);
435
436 return /*#__PURE__*/createElement(StyledListItem, _extends({
437 key: column.name,
438 button: !disabled,
439 component: "li",
440 disabled: disabled,
441 onClick: !disabled ? onToggle : null
442 }, restProps), /*#__PURE__*/createElement(Checkbox, {
443 checked: !hidden,
444 tabIndex: -1,
445 disableRipple: true,
446 disabled: disabled,
447 className: classes$1.checkbox
448 }), /*#__PURE__*/createElement(ListItemText, {
449 className: classes$1.itemText,
450 primary: column.title || column.name
451 }));
452};
453process.env.NODE_ENV !== "production" ? Item.propTypes = {
454 item: PropTypes.shape({
455 column: PropTypes.shape({
456 name: PropTypes.string,
457 title: PropTypes.string
458 }),
459 hidden: PropTypes.bool
460 }).isRequired,
461 disabled: PropTypes.bool,
462 onToggle: PropTypes.func
463} : void 0;
464Item.defaultProps = {
465 onToggle: function onToggle() {},
466 disabled: false
467};
468
469var withPatchedProps = function withPatchedProps(patchProps) {
470 return function (Target) {
471 var Patched = /*#__PURE__*/function (_React$PureComponent) {
472 _inherits(Patched, _React$PureComponent);
473
474 var _super = _createSuper(Patched);
475
476 function Patched() {
477 _classCallCheck(this, Patched);
478
479 return _super.apply(this, arguments);
480 }
481
482 _createClass(Patched, [{
483 key: "render",
484 value: function render() {
485 return /*#__PURE__*/createElement(Target, patchProps(this.props));
486 }
487 }]);
488
489 return Patched;
490 }(PureComponent);
491
492 return Patched;
493 };
494};
495
496var _excluded$6 = ["messages"];
497var defaultMessages = {
498 showColumnChooser: 'Show Column Chooser'
499};
500var ColumnChooserWithMessages = withPatchedProps(function (_ref) {
501 var messages = _ref.messages,
502 restProps = _objectWithoutProperties(_ref, _excluded$6);
503
504 return _objectSpread2({
505 messages: _objectSpread2(_objectSpread2({}, defaultMessages), messages)
506 }, restProps);
507})(ColumnChooser$1);
508ColumnChooserWithMessages.propTypes = {
509 messages: PropTypes.shape({
510 hiddenColumnNames: PropTypes.string
511 })
512};
513ColumnChooserWithMessages.defaultProps = {
514 messages: {}
515};
516ColumnChooserWithMessages.components = ColumnChooser$1.components;
517var ColumnChooser = withComponents({
518 Container: Container,
519 Item: Item,
520 Overlay: Overlay,
521 ToggleButton: ToggleButton
522})(ColumnChooserWithMessages);
523
524var _excluded$7 = ["clientOffset", "style", "className", "children"],
525 _excluded2 = ["column", "className"];
526var PREFIX$2 = 'DragDrop';
527var classes$2 = {
528 container: "".concat(PREFIX$2, "-container"),
529 column: "".concat(PREFIX$2, "-column")
530};
531var StyledDiv$1 = styled('div')(function () {
532 return _defineProperty({}, "&.".concat(classes$2.container), {
533 position: 'fixed',
534 zIndex: 1000,
535 left: 0,
536 top: 0,
537 display: 'inline-block'
538 });
539});
540var Container$1 = function Container(_ref2) {
541 var clientOffset = _ref2.clientOffset,
542 style = _ref2.style,
543 className = _ref2.className,
544 children = _ref2.children,
545 restProps = _objectWithoutProperties(_ref2, _excluded$7);
546
547 return /*#__PURE__*/createElement(StyledDiv$1, _extends({
548 className: classNames(classes$2.container, className),
549 style: _objectSpread2({
550 transform: "translate(calc(".concat(clientOffset.x, "px - 50%), calc(").concat(clientOffset.y, "px - 50%))"),
551 msTransform: "translateX(".concat(clientOffset.x, "px) translateX(-50%) translateY(").concat(clientOffset.y, "px) translateY(-50%)")
552 }, style)
553 }, restProps), children);
554};
555process.env.NODE_ENV !== "production" ? Container$1.propTypes = {
556 clientOffset: PropTypes.shape({
557 x: PropTypes.number.isRequired,
558 y: PropTypes.number.isRequired
559 }).isRequired,
560 children: PropTypes.node,
561 style: PropTypes.object,
562 className: PropTypes.string
563} : void 0;
564Container$1.defaultProps = {
565 style: null,
566 className: undefined,
567 children: undefined
568};
569var StyledChip = styled(Chip)(function (_ref3) {
570 var theme = _ref3.theme;
571 return _defineProperty({}, "&.".concat(classes$2.column), {
572 paddingLeft: theme.spacing(2),
573 paddingRight: theme.spacing(2),
574 float: 'right',
575 cursor: 'move'
576 });
577});
578var Column = /*#__PURE__*/memo(function (_ref5) {
579 var column = _ref5.column,
580 className = _ref5.className,
581 restProps = _objectWithoutProperties(_ref5, _excluded2);
582
583 return /*#__PURE__*/createElement(StyledChip, _extends({
584 className: classNames(classes$2.column, className),
585 label: column.title
586 }, restProps));
587});
588Column.propTypes = {
589 column: PropTypes.object.isRequired,
590 className: PropTypes.string
591};
592Column.defaultProps = {
593 className: undefined
594};
595
596var DragDropProvider = withComponents({
597 Container: Container$1,
598 Column: Column
599})(DragDropProvider$1);
600
601var IS_LEGACY_EDGE_MEDIA_QUERY = '@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)';
602
603var PREFIX$3 = 'PageSizeSelector';
604var classes$3 = {
605 pageSizeSelector: "".concat(PREFIX$3, "-pageSizeSelector"),
606 label: "".concat(PREFIX$3, "-label"),
607 selectIcon: "".concat(PREFIX$3, "-selectIcon"),
608 selectMenu: "".concat(PREFIX$3, "-selectMenu"),
609 inputRoot: "".concat(PREFIX$3, "-inputRoot")
610};
611var StyledDiv$2 = styled('div')(function (_ref) {
612 var _mediaMaxWidth, _ref2;
613
614 var theme = _ref.theme;
615 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$3.pageSizeSelector), _objectSpread2(_objectSpread2({}, theme.typography.caption), {}, {
616 paddingRight: theme.spacing(5),
617 // NOTE: fixes vertical alignment in FF
618 display: 'flex',
619 alignItems: 'center'
620 })), _defineProperty(_ref2, "& .".concat(classes$3.label), {
621 paddingRight: theme.spacing(3)
622 }), _defineProperty(_ref2, "& .".concat(classes$3.selectIcon), {
623 top: 2
624 }), _defineProperty(_ref2, "& .".concat(classes$3.selectMenu), _defineProperty({}, "".concat(IS_LEGACY_EDGE_MEDIA_QUERY), {
625 position: 'absolute !important'
626 })), _defineProperty(_ref2, "& .".concat(classes$3.inputRoot), {
627 fontSize: theme.spacing(1.75),
628 textAlign: 'right'
629 }), _defineProperty(_ref2, '@media (max-width: 768px)', (_mediaMaxWidth = {}, _defineProperty(_mediaMaxWidth, "&.".concat(classes$3.pageSizeSelector), {
630 paddingRight: theme.spacing(2)
631 }), _defineProperty(_mediaMaxWidth, "& .".concat(classes$3.label), {
632 display: 'none'
633 }), _mediaMaxWidth)), _ref2;
634});
635var PageSizeSelector = function PageSizeSelector(_ref3) {
636 var pageSize = _ref3.pageSize,
637 onPageSizeChange = _ref3.onPageSizeChange,
638 pageSizes = _ref3.pageSizes,
639 getMessage = _ref3.getMessage;
640 var showAll = getMessage('showAll');
641 return /*#__PURE__*/createElement(StyledDiv$2, {
642 className: classes$3.pageSizeSelector
643 }, /*#__PURE__*/createElement("span", {
644 className: classes$3.label
645 }, getMessage('rowsPerPage')), /*#__PURE__*/createElement(Select, {
646 value: pageSize,
647 onChange: function onChange(event) {
648 return onPageSizeChange(event.target.value);
649 },
650 classes: {
651 icon: classes$3.selectIcon
652 },
653 MenuProps: {
654 className: classes$3.selectMenu
655 },
656 input: /*#__PURE__*/createElement(Input, {
657 disableUnderline: true,
658 classes: {
659 root: classes$3.inputRoot
660 }
661 })
662 }, pageSizes.map(function (item) {
663 return /*#__PURE__*/createElement(MenuItem$1, {
664 key: item,
665 value: item
666 }, item !== 0 ? item : showAll);
667 })));
668};
669process.env.NODE_ENV !== "production" ? PageSizeSelector.propTypes = {
670 pageSize: PropTypes.number.isRequired,
671 onPageSizeChange: PropTypes.func.isRequired,
672 pageSizes: PropTypes.arrayOf(PropTypes.number).isRequired,
673 getMessage: PropTypes.func.isRequired
674} : void 0;
675
676var PREFIX$4 = 'Pagination';
677var classes$4 = {
678 button: "".concat(PREFIX$4, "-button"),
679 activeButton: "".concat(PREFIX$4, "-activeButton"),
680 text: "".concat(PREFIX$4, "-text"),
681 pagination: "".concat(PREFIX$4, "-pagination"),
682 rowsLabel: "".concat(PREFIX$4, "-rowsLabel")
683};
684var StyledButton = styled(Button)(function (_ref) {
685 var _ref2;
686
687 var theme = _ref.theme;
688 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$4.button), {
689 minWidth: theme.spacing(2)
690 }), _defineProperty(_ref2, "&.".concat(classes$4.activeButton), {
691 fontWeight: 'bold',
692 cursor: 'default'
693 }), _defineProperty(_ref2, "&.".concat(classes$4.text), {
694 color: 'rgba(0, 0, 0, 0.87)'
695 }), _defineProperty(_ref2, '@media(max-width: 768px)', _defineProperty({}, "&.".concat(classes$4.button), {
696 display: 'none'
697 })), _ref2;
698});
699var StyledDiv$3 = styled('div')(function (_ref3) {
700 var _mediaMaxWidth2, _ref4;
701
702 var theme = _ref3.theme;
703 return _ref4 = {}, _defineProperty(_ref4, "&.".concat(classes$4.pagination), {
704 margin: 0
705 }), _defineProperty(_ref4, "& .".concat(classes$4.rowsLabel), _objectSpread2(_objectSpread2({}, theme.typography.caption), {}, {
706 paddingRight: theme.spacing(5)
707 })), _defineProperty(_ref4, "& .".concat(classes$4.arrowButton), {
708 display: 'inline-block',
709 transform: theme.direction === 'rtl' ? 'rotate(180deg)' : null,
710 msTransform: theme.direction === 'rtl' ? 'rotate(180deg)' : null
711 }), _defineProperty(_ref4, "& .".concat(classes$4.prev), {
712 marginRight: 0
713 }), _defineProperty(_ref4, "& .".concat(classes$4.next), {
714 marginLeft: 0
715 }), _defineProperty(_ref4, '@media(max-width: 768px)', (_mediaMaxWidth2 = {}, _defineProperty(_mediaMaxWidth2, "& .".concat(classes$4.rowsLabel), {
716 paddingRight: theme.spacing(2)
717 }), _defineProperty(_mediaMaxWidth2, "& .".concat(classes$4.prev), {
718 marginRight: theme.spacing(1)
719 }), _defineProperty(_mediaMaxWidth2, "& .".concat(classes$4.next), {
720 marginLeft: theme.spacing(1)
721 }), _mediaMaxWidth2)), _ref4;
722});
723
724var PageButton = function PageButton(_ref5) {
725 var _classNames;
726
727 var text = _ref5.text,
728 isActive = _ref5.isActive,
729 isDisabled = _ref5.isDisabled,
730 onClick = _ref5.onClick;
731 var buttonClasses = classNames((_classNames = {}, _defineProperty(_classNames, classes$4.button, true), _defineProperty(_classNames, classes$4.activeButton, isActive), _defineProperty(_classNames, classes$4.text, true), _classNames));
732 return /*#__PURE__*/createElement(StyledButton, _extends({
733 className: buttonClasses,
734 disabled: isDisabled,
735 onClick: onClick
736 }, isActive ? {
737 tabIndex: -1
738 } : null), text);
739};
740
741process.env.NODE_ENV !== "production" ? PageButton.propTypes = {
742 text: PropTypes.string.isRequired,
743 isActive: PropTypes.bool,
744 isDisabled: PropTypes.bool,
745 onClick: PropTypes.func
746} : void 0;
747PageButton.defaultProps = {
748 onClick: function onClick() {},
749 isDisabled: false,
750 isActive: false
751};
752var ellipsisSymbol = "\u2026";
753
754var RenderPageButtons = function RenderPageButtons(currentPage, totalPageCount, onCurrentPageChange) {
755 var pageButtons = [];
756 var maxButtonCount = 3;
757 var startPage = 1;
758 var endPage = totalPageCount || 1; // NOTE: take into account last button and ellipsis (T1004797)
759
760 if (maxButtonCount < totalPageCount - 2) {
761 startPage = calculateStartPage(currentPage + 1, maxButtonCount, totalPageCount);
762 endPage = startPage + maxButtonCount - 1;
763 }
764
765 if (startPage > 1) {
766 pageButtons.push( /*#__PURE__*/createElement(PageButton, {
767 key: 1,
768 text: String(1),
769 onClick: function onClick() {
770 return onCurrentPageChange(0);
771 }
772 }));
773
774 if (startPage > 2) {
775 pageButtons.push( /*#__PURE__*/createElement(PageButton, {
776 key: "ellipsisStart",
777 text: ellipsisSymbol,
778 isDisabled: true
779 }));
780 }
781 }
782
783 var _loop = function _loop(page) {
784 pageButtons.push( /*#__PURE__*/createElement(PageButton, {
785 key: page,
786 text: String(page),
787 isActive: page === currentPage + 1,
788 classes: classes$4,
789 onClick: function onClick() {
790 return onCurrentPageChange(page - 1);
791 },
792 isDisabled: startPage === endPage
793 }));
794 };
795
796 for (var page = startPage; page <= endPage; page += 1) {
797 _loop(page);
798 }
799
800 if (endPage < totalPageCount) {
801 if (endPage < totalPageCount - 1) {
802 pageButtons.push( /*#__PURE__*/createElement(PageButton, {
803 key: "ellipsisEnd",
804 text: ellipsisSymbol,
805 classes: classes$4,
806 isDisabled: true
807 }));
808 }
809
810 pageButtons.push( /*#__PURE__*/createElement(PageButton, {
811 key: totalPageCount,
812 text: String(totalPageCount),
813 classes: classes$4,
814 onClick: function onClick() {
815 return onCurrentPageChange(totalPageCount - 1);
816 }
817 }));
818 }
819
820 return pageButtons;
821};
822
823var Pagination = function Pagination(_ref6) {
824 var totalPages = _ref6.totalPages,
825 totalCount = _ref6.totalCount,
826 pageSize = _ref6.pageSize,
827 currentPage = _ref6.currentPage,
828 onCurrentPageChange = _ref6.onCurrentPageChange,
829 getMessage = _ref6.getMessage;
830 var from = firstRowOnPage(currentPage, pageSize, totalCount);
831 var to = lastRowOnPage(currentPage, pageSize, totalCount);
832 return /*#__PURE__*/createElement(StyledDiv$3, {
833 className: classes$4.pagination
834 }, /*#__PURE__*/createElement("span", {
835 className: classes$4.rowsLabel
836 }, getMessage('info', {
837 from: from,
838 to: to,
839 count: totalCount
840 })), /*#__PURE__*/createElement(IconButton, {
841 className: classNames(classes$4.arrowButton, classes$4.prev),
842 disabled: currentPage === 0,
843 onClick: function onClick() {
844 return currentPage > 0 && onCurrentPageChange(currentPage - 1);
845 },
846 "aria-label": "Previous",
847 size: "large"
848 }, /*#__PURE__*/createElement(ChevronLeft, null)), RenderPageButtons(currentPage, totalPages, onCurrentPageChange), /*#__PURE__*/createElement(IconButton, {
849 className: classNames(classes$4.arrowButton, classes$4.next),
850 disabled: currentPage === totalPages - 1 || totalCount === 0,
851 onClick: function onClick() {
852 return currentPage < totalPages - 1 && onCurrentPageChange(currentPage + 1);
853 },
854 "aria-label": "Next",
855 size: "large"
856 }, /*#__PURE__*/createElement(ChevronRight, null)));
857};
858process.env.NODE_ENV !== "production" ? Pagination.propTypes = {
859 totalPages: PropTypes.number.isRequired,
860 currentPage: PropTypes.number.isRequired,
861 onCurrentPageChange: PropTypes.func.isRequired,
862 totalCount: PropTypes.number.isRequired,
863 pageSize: PropTypes.number.isRequired,
864 getMessage: PropTypes.func.isRequired
865} : void 0;
866
867var _excluded$8 = ["currentPage", "pageSizes", "totalPages", "pageSize", "onCurrentPageChange", "onPageSizeChange", "totalCount", "getMessage", "className", "forwardedRef"];
868var PREFIX$5 = 'Pager';
869var classes$5 = {
870 pager: "".concat(PREFIX$5, "-pager")
871};
872var StyledDiv$4 = styled('div')(function (_ref) {
873 var theme = _ref.theme;
874 return _defineProperty({}, "&.".concat(classes$5.pager), {
875 overflow: 'hidden',
876 padding: theme.spacing(1.5),
877 display: 'flex',
878 flex: 'none',
879 alignItems: 'center',
880 justifyContent: 'flex-end'
881 });
882});
883
884var PagerBase = function PagerBase(_ref3) {
885 var currentPage = _ref3.currentPage,
886 pageSizes = _ref3.pageSizes,
887 totalPages = _ref3.totalPages,
888 pageSize = _ref3.pageSize,
889 _onCurrentPageChange = _ref3.onCurrentPageChange,
890 onPageSizeChange = _ref3.onPageSizeChange,
891 totalCount = _ref3.totalCount,
892 getMessage = _ref3.getMessage,
893 className = _ref3.className,
894 forwardedRef = _ref3.forwardedRef,
895 restProps = _objectWithoutProperties(_ref3, _excluded$8);
896
897 return /*#__PURE__*/createElement(StyledDiv$4, _extends({
898 className: classNames(classes$5.pager, className),
899 ref: forwardedRef
900 }, restProps), !!pageSizes.length && /*#__PURE__*/createElement(PageSizeSelector, {
901 pageSize: pageSize,
902 onPageSizeChange: onPageSizeChange,
903 pageSizes: pageSizes,
904 getMessage: getMessage
905 }), /*#__PURE__*/createElement(Pagination, {
906 totalPages: totalPages,
907 totalCount: totalCount,
908 currentPage: currentPage,
909 onCurrentPageChange: function onCurrentPageChange(page) {
910 return _onCurrentPageChange(page);
911 },
912 pageSize: pageSize,
913 getMessage: getMessage
914 }));
915};
916
917process.env.NODE_ENV !== "production" ? PagerBase.propTypes = {
918 currentPage: PropTypes.number.isRequired,
919 totalPages: PropTypes.number.isRequired,
920 pageSizes: PropTypes.arrayOf(PropTypes.number).isRequired,
921 pageSize: PropTypes.number.isRequired,
922 onCurrentPageChange: PropTypes.func.isRequired,
923 onPageSizeChange: PropTypes.func.isRequired,
924 totalCount: PropTypes.number.isRequired,
925 getMessage: PropTypes.func.isRequired,
926 className: PropTypes.string,
927 forwardedRef: PropTypes.func
928} : void 0;
929PagerBase.defaultProps = {
930 className: undefined,
931 forwardedRef: undefined
932};
933var Pager = withKeyboardNavigation('paging', 'none')(PagerBase);
934
935var _excluded$9 = ["messages"];
936var defaultMessages$1 = {
937 rowsPerPage: 'Rows per page:'
938};
939var PagingPanelWithMessages = withPatchedProps(function (_ref) {
940 var messages = _ref.messages,
941 restProps = _objectWithoutProperties(_ref, _excluded$9);
942
943 return _objectSpread2({
944 messages: _objectSpread2(_objectSpread2({}, defaultMessages$1), messages)
945 }, restProps);
946})(PagingPanel$1);
947PagingPanelWithMessages.propTypes = {
948 messages: PropTypes.shape({
949 showAll: PropTypes.string,
950 rowsPerPage: PropTypes.string,
951 info: PropTypes.oneOfType([PropTypes.string, PropTypes.func])
952 })
953};
954PagingPanelWithMessages.defaultProps = {
955 messages: {}
956};
957PagingPanelWithMessages.components = PagingPanel$1.components;
958var PagingPanel = withComponents({
959 Container: Pager
960})(PagingPanelWithMessages);
961
962var _excluded$a = ["children", "className", "forwardedRef"];
963var PREFIX$6 = 'GroupPanelContainer';
964var classes$6 = {
965 panel: "".concat(PREFIX$6, "-panel")
966};
967var StyledDiv$5 = styled('div')(function (_ref) {
968 var theme = _ref.theme;
969 return _defineProperty({}, "&.".concat(classes$6.panel), {
970 display: 'flex',
971 flexWrap: 'wrap',
972 width: '100%',
973 marginTop: theme.spacing(1.5)
974 });
975});
976var GroupPanelContainer = function GroupPanelContainer(_ref3) {
977 var children = _ref3.children,
978 className = _ref3.className,
979 forwardedRef = _ref3.forwardedRef,
980 restProps = _objectWithoutProperties(_ref3, _excluded$a);
981
982 return /*#__PURE__*/createElement(StyledDiv$5, _extends({
983 ref: forwardedRef,
984 className: classNames(classes$6.panel, className)
985 }, restProps), children);
986};
987process.env.NODE_ENV !== "production" ? GroupPanelContainer.propTypes = {
988 children: PropTypes.node,
989 className: PropTypes.string,
990 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
991} : void 0;
992GroupPanelContainer.defaultProps = {
993 children: undefined,
994 className: undefined,
995 forwardedRef: undefined
996};
997
998var _excluded$b = ["item", "onGroup", "showGroupingControls", "showSortingControls", "sortingDirection", "onSort", "sortingEnabled", "groupingEnabled", "className", "forwardedRef"];
999var PREFIX$7 = 'GroupPanelItem';
1000var classes$7 = {
1001 button: "".concat(PREFIX$7, "-button"),
1002 withoutIcon: "".concat(PREFIX$7, "-withoutIcon"),
1003 draftCell: "".concat(PREFIX$7, "-draftCell")
1004};
1005var StyledChip$1 = styled(Chip)(function (_ref) {
1006 var _ref2;
1007
1008 var theme = _ref.theme;
1009 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$7.button), {
1010 marginRight: theme.spacing(1),
1011 marginBottom: theme.spacing(1.5)
1012 }), _defineProperty(_ref2, "&.".concat(classes$7.withoutIcon), {
1013 paddingRight: '13px',
1014 paddingLeft: '13px'
1015 }), _defineProperty(_ref2, "&.".concat(classes$7.draftCell), {
1016 opacity: 0.3
1017 }), _ref2;
1018});
1019var ENTER_KEY_CODE = 13;
1020var SPACE_KEY_CODE = 32;
1021
1022var label = function label(showSortingControls, sortingEnabled, sortingDirection, column, hovered) {
1023 var title = column.title || column.name;
1024 return showSortingControls ? /*#__PURE__*/createElement(TableSortLabel, {
1025 active: !!sortingDirection,
1026 direction: sortingDirection === null ? undefined : sortingDirection,
1027 disabled: !sortingEnabled,
1028 hideSortIcon: !hovered,
1029 tabIndex: -1
1030 }, title) : title;
1031};
1032
1033var GroupPanelItem = function GroupPanelItem(_ref3) {
1034 var _classNames;
1035
1036 var _ref3$item = _ref3.item,
1037 column = _ref3$item.column,
1038 draft = _ref3$item.draft,
1039 onGroup = _ref3.onGroup,
1040 showGroupingControls = _ref3.showGroupingControls,
1041 showSortingControls = _ref3.showSortingControls,
1042 sortingDirection = _ref3.sortingDirection,
1043 onSort = _ref3.onSort,
1044 sortingEnabled = _ref3.sortingEnabled,
1045 groupingEnabled = _ref3.groupingEnabled,
1046 className = _ref3.className,
1047 forwardedRef = _ref3.forwardedRef,
1048 restProps = _objectWithoutProperties(_ref3, _excluded$b);
1049
1050 var _React$useState = useState(false),
1051 _React$useState2 = _slicedToArray(_React$useState, 2),
1052 hovered = _React$useState2[0],
1053 setHovered = _React$useState2[1];
1054
1055 var chipClassNames = classNames((_classNames = {}, _defineProperty(_classNames, classes$7.button, true), _defineProperty(_classNames, classes$7.withoutIcon, !showSortingControls || !hovered && sortingDirection === null), _defineProperty(_classNames, classes$7.draftCell, draft), _classNames), className);
1056
1057 var onClick = function onClick(e) {
1058 var isActionKeyDown = e.keyCode === ENTER_KEY_CODE || e.keyCode === SPACE_KEY_CODE;
1059 var isMouseClick = e.keyCode === undefined;
1060 var cancelSortingRelatedKey = e.metaKey || e.ctrlKey;
1061 var direction = (isMouseClick || isActionKeyDown) && cancelSortingRelatedKey ? null : undefined;
1062 onSort({
1063 direction: direction,
1064 keepOther: cancelSortingRelatedKey
1065 });
1066 };
1067
1068 return /*#__PURE__*/createElement(StyledChip$1, _extends({
1069 ref: forwardedRef,
1070 label: label(showSortingControls, sortingEnabled, sortingDirection, column, hovered),
1071 className: chipClassNames
1072 }, showGroupingControls ? {
1073 onDelete: groupingEnabled ? onGroup : null
1074 } : null, showSortingControls ? {
1075 onClick: sortingEnabled ? onClick : null,
1076 onMouseEnter: function onMouseEnter() {
1077 return setHovered(true);
1078 },
1079 onMouseLeave: function onMouseLeave() {
1080 return setHovered(false);
1081 }
1082 } : null, restProps));
1083};
1084process.env.NODE_ENV !== "production" ? GroupPanelItem.propTypes = {
1085 item: PropTypes.shape({
1086 column: PropTypes.shape({
1087 title: PropTypes.string,
1088 name: PropTypes.string
1089 }).isRequired,
1090 draft: PropTypes.bool
1091 }).isRequired,
1092 showSortingControls: PropTypes.bool,
1093 sortingDirection: PropTypes.oneOf(['asc', 'desc', null]),
1094 onSort: PropTypes.func,
1095 onGroup: PropTypes.func,
1096 showGroupingControls: PropTypes.bool,
1097 className: PropTypes.string,
1098 sortingEnabled: PropTypes.bool,
1099 groupingEnabled: PropTypes.bool,
1100 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
1101} : void 0;
1102GroupPanelItem.defaultProps = {
1103 showSortingControls: false,
1104 sortingEnabled: false,
1105 sortingDirection: undefined,
1106 onSort: undefined,
1107 onGroup: undefined,
1108 showGroupingControls: false,
1109 groupingEnabled: false,
1110 className: undefined,
1111 forwardedRef: undefined
1112};
1113
1114var _excluded$c = ["getMessage", "className", "forwardedRef"];
1115var PREFIX$8 = 'GroupPanelEmptyMessage';
1116var classes$8 = {
1117 groupInfo: "".concat(PREFIX$8, "-groupInfo")
1118};
1119var StyledDiv$6 = styled('div')(function (_ref) {
1120 var theme = _ref.theme;
1121 return _defineProperty({}, "&.".concat(classes$8.groupInfo), {
1122 color: theme.typography.caption.color,
1123 fontFamily: theme.typography.fontFamily,
1124 fontSize: theme.typography.fontSize
1125 });
1126});
1127var GroupPanelEmptyMessage = function GroupPanelEmptyMessage(_ref3) {
1128 var getMessage = _ref3.getMessage,
1129 className = _ref3.className,
1130 forwardedRef = _ref3.forwardedRef,
1131 restProps = _objectWithoutProperties(_ref3, _excluded$c);
1132
1133 return /*#__PURE__*/createElement(StyledDiv$6, _extends({
1134 ref: forwardedRef,
1135 className: classNames(classes$8.groupInfo, className)
1136 }, restProps), getMessage('groupByColumn'));
1137};
1138process.env.NODE_ENV !== "production" ? GroupPanelEmptyMessage.propTypes = {
1139 getMessage: PropTypes.func.isRequired,
1140 className: PropTypes.string,
1141 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
1142} : void 0;
1143GroupPanelEmptyMessage.defaultProps = {
1144 className: undefined,
1145 forwardedRef: undefined
1146};
1147
1148var GroupingPanel = withComponents({
1149 Container: GroupPanelContainer,
1150 Item: GroupPanelItem,
1151 EmptyMessage: GroupPanelEmptyMessage
1152})(GroupingPanel$1);
1153
1154var _excluded$d = ["style", "expanded", "onToggle", "tableColumn", "tableRow", "row", "className", "forwardedRef"];
1155var PREFIX$9 = 'TableDetailToggleCell';
1156var classes$9 = {
1157 toggleCell: "".concat(PREFIX$9, "-toggleCell"),
1158 toggleCellButton: "".concat(PREFIX$9, "-toggleCellButton")
1159};
1160var StyledTableCell = styled(TableCell$1)(function (_ref) {
1161 var theme = _ref.theme;
1162 return _defineProperty({}, "&.".concat(classes$9.toggleCell), {
1163 textAlign: 'center',
1164 textOverflow: 'initial',
1165 paddingTop: 0,
1166 paddingBottom: 0,
1167 paddingLeft: theme.spacing(1)
1168 });
1169});
1170var TableDetailToggleCell = function TableDetailToggleCell(_ref3) {
1171 var style = _ref3.style,
1172 expanded = _ref3.expanded,
1173 onToggle = _ref3.onToggle,
1174 tableColumn = _ref3.tableColumn,
1175 tableRow = _ref3.tableRow,
1176 row = _ref3.row,
1177 className = _ref3.className,
1178 forwardedRef = _ref3.forwardedRef,
1179 restProps = _objectWithoutProperties(_ref3, _excluded$d);
1180
1181 var handleClick = function handleClick(e) {
1182 e.stopPropagation();
1183 onToggle();
1184 };
1185
1186 return /*#__PURE__*/createElement(StyledTableCell, _extends({
1187 className: classNames(classes$9.toggleCell, className),
1188 style: style,
1189 ref: forwardedRef
1190 }, restProps), /*#__PURE__*/createElement(IconButton, {
1191 onClick: handleClick
1192 }, expanded ? /*#__PURE__*/createElement(ExpandLess, null) : /*#__PURE__*/createElement(ExpandMore, null)));
1193};
1194process.env.NODE_ENV !== "production" ? TableDetailToggleCell.propTypes = {
1195 style: PropTypes.object,
1196 expanded: PropTypes.bool,
1197 onToggle: PropTypes.func,
1198 className: PropTypes.string,
1199 tableColumn: PropTypes.object,
1200 tableRow: PropTypes.object,
1201 row: PropTypes.any,
1202 forwardedRef: PropTypes.func
1203} : void 0;
1204TableDetailToggleCell.defaultProps = {
1205 style: null,
1206 expanded: false,
1207 onToggle: function onToggle() {},
1208 className: undefined,
1209 tableColumn: undefined,
1210 tableRow: undefined,
1211 row: undefined,
1212 forwardedRef: undefined
1213};
1214
1215var _excluded$e = ["colSpan", "style", "children", "className", "forwardedRef", "tableColumn", "tableRow", "row"];
1216var PREFIX$a = 'TableDetailCell';
1217var classes$a = {
1218 active: "".concat(PREFIX$a, "-active")
1219};
1220var StyledTableCell$1 = styled(TableCell$1)(function (_ref) {
1221 var theme = _ref.theme;
1222 return _defineProperty({}, "&.".concat(classes$a.active), {
1223 backgroundColor: theme.palette.background.default
1224 });
1225});
1226var TableDetailCell = function TableDetailCell(_ref3) {
1227 var colSpan = _ref3.colSpan,
1228 style = _ref3.style,
1229 children = _ref3.children,
1230 className = _ref3.className,
1231 forwardedRef = _ref3.forwardedRef,
1232 tableColumn = _ref3.tableColumn,
1233 tableRow = _ref3.tableRow,
1234 row = _ref3.row,
1235 restProps = _objectWithoutProperties(_ref3, _excluded$e);
1236
1237 return /*#__PURE__*/createElement(StyledTableCell$1, _extends({
1238 style: style,
1239 colSpan: colSpan,
1240 ref: forwardedRef,
1241 className: classNames(classes$a.active, className)
1242 }, restProps), children);
1243};
1244process.env.NODE_ENV !== "production" ? TableDetailCell.propTypes = {
1245 style: PropTypes.object,
1246 colSpan: PropTypes.number,
1247 children: PropTypes.node,
1248 className: PropTypes.string,
1249 tableColumn: PropTypes.object,
1250 tableRow: PropTypes.object,
1251 row: PropTypes.any,
1252 forwardedRef: PropTypes.func
1253} : void 0;
1254TableDetailCell.defaultProps = {
1255 style: null,
1256 colSpan: 1,
1257 className: undefined,
1258 tableColumn: undefined,
1259 tableRow: undefined,
1260 row: undefined,
1261 children: undefined,
1262 forwardedRef: undefined
1263};
1264
1265var _excluded$f = ["children", "row", "tableRow", "forwardedRef"];
1266var TableRow = function TableRow(_ref) {
1267 var children = _ref.children,
1268 row = _ref.row,
1269 tableRow = _ref.tableRow,
1270 forwardedRef = _ref.forwardedRef,
1271 restProps = _objectWithoutProperties(_ref, _excluded$f);
1272
1273 return /*#__PURE__*/createElement(TableRow$1, _extends({
1274 ref: forwardedRef
1275 }, restProps), children);
1276};
1277process.env.NODE_ENV !== "production" ? TableRow.propTypes = {
1278 children: PropTypes.node,
1279 row: PropTypes.any,
1280 tableRow: PropTypes.object,
1281 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
1282} : void 0;
1283TableRow.defaultProps = {
1284 children: undefined,
1285 row: undefined,
1286 tableRow: undefined,
1287 forwardedRef: undefined
1288};
1289
1290var TableRowDetailWithWidth = function TableRowDetailWithWidth(props) {
1291 return /*#__PURE__*/createElement(TableRowDetail$1, _extends({
1292 toggleColumnWidth: 48
1293 }, props));
1294};
1295
1296TableRowDetailWithWidth.components = TableRowDetail$1.components;
1297var TableRowDetail = withComponents({
1298 Row: TableRow,
1299 Cell: TableDetailCell,
1300 ToggleCell: TableDetailToggleCell
1301})(TableRowDetailWithWidth);
1302TableRowDetail.COLUMN_TYPE = TableRowDetail$1.COLUMN_TYPE;
1303TableRowDetail.ROW_TYPE = TableRowDetail$1.ROW_TYPE;
1304
1305var _excluded$g = ["contentComponent", "iconComponent", "containerComponent", "inlineSummaryComponent", "inlineSummaryItemComponent", "inlineSummaries", "getMessage", "style", "colSpan", "row", "column", "expanded", "onToggle", "children", "className", "tableRow", "forwardedRef", "tableColumn", "side", "position"];
1306var PREFIX$b = 'TableGroupCell';
1307var classes$b = {
1308 cell: "".concat(PREFIX$b, "-cell"),
1309 cellNoWrap: "".concat(PREFIX$b, "-cellNoWrap")
1310};
1311var StyledTableCell$2 = styled(TableCell$1)(function (_ref) {
1312 var _ref2;
1313
1314 var theme = _ref.theme;
1315 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$b.cell), {
1316 cursor: 'pointer',
1317 paddingLeft: theme.spacing(1),
1318 paddingRight: theme.spacing(1),
1319 paddingTop: theme.spacing(0.5),
1320 paddingBottom: theme.spacing(0.5)
1321 }), _defineProperty(_ref2, "&.".concat(classes$b.cellNoWrap), {
1322 whiteSpace: 'nowrap'
1323 }), _ref2;
1324});
1325var Cell = function Cell(_ref3) {
1326 var _classNames;
1327
1328 var Content = _ref3.contentComponent,
1329 Icon = _ref3.iconComponent,
1330 Container = _ref3.containerComponent,
1331 InlineSummary = _ref3.inlineSummaryComponent,
1332 InlineSummaryItem = _ref3.inlineSummaryItemComponent,
1333 inlineSummaries = _ref3.inlineSummaries,
1334 getMessage = _ref3.getMessage,
1335 style = _ref3.style,
1336 colSpan = _ref3.colSpan,
1337 row = _ref3.row,
1338 column = _ref3.column,
1339 expanded = _ref3.expanded,
1340 onToggle = _ref3.onToggle,
1341 children = _ref3.children,
1342 className = _ref3.className,
1343 tableRow = _ref3.tableRow,
1344 forwardedRef = _ref3.forwardedRef,
1345 tableColumn = _ref3.tableColumn,
1346 side = _ref3.side,
1347 position = _ref3.position,
1348 restProps = _objectWithoutProperties(_ref3, _excluded$g);
1349
1350 var handleClick = function handleClick() {
1351 return onToggle();
1352 };
1353
1354 return /*#__PURE__*/createElement(StyledTableCell$2, _extends({
1355 colSpan: colSpan,
1356 style: style,
1357 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$b.cell, true), _defineProperty(_classNames, classes$b.cellNoWrap, !(tableColumn && tableColumn.wordWrapEnabled)), _classNames), className),
1358 ref: forwardedRef,
1359 onClick: handleClick
1360 }, restProps), /*#__PURE__*/createElement(Container, {
1361 side: side,
1362 position: position
1363 }, /*#__PURE__*/createElement(Icon, {
1364 expanded: expanded
1365 }), /*#__PURE__*/createElement(Content, {
1366 column: column,
1367 row: row
1368 }, children), inlineSummaries.length ? /*#__PURE__*/createElement(InlineSummary, {
1369 inlineSummaries: inlineSummaries,
1370 getMessage: getMessage,
1371 inlineSummaryItemComponent: InlineSummaryItem
1372 }) : null));
1373};
1374process.env.NODE_ENV !== "production" ? Cell.propTypes = {
1375 // oneOfType is a workaround because withStyles returns react object
1376 contentComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
1377 iconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
1378 containerComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
1379 inlineSummaryComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
1380 inlineSummaryItemComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
1381 style: PropTypes.object,
1382 colSpan: PropTypes.number,
1383 row: PropTypes.any,
1384 column: PropTypes.object,
1385 expanded: PropTypes.bool,
1386 onToggle: PropTypes.func,
1387 getMessage: PropTypes.func.isRequired,
1388 children: PropTypes.node,
1389 className: PropTypes.string,
1390 tableRow: PropTypes.object,
1391 tableColumn: PropTypes.object,
1392 inlineSummaries: PropTypes.array,
1393 side: PropTypes.string,
1394 position: PropTypes.string,
1395 forwardedRef: PropTypes.func
1396} : void 0;
1397Cell.defaultProps = {
1398 style: null,
1399 colSpan: 1,
1400 row: {},
1401 column: {},
1402 expanded: false,
1403 inlineSummaries: [],
1404 onToggle: function onToggle() {},
1405 children: undefined,
1406 className: undefined,
1407 tableRow: undefined,
1408 tableColumn: undefined,
1409 side: 'left',
1410 position: '',
1411 forwardedRef: undefined
1412};
1413
1414var _excluded$h = ["column", "row", "className", "children"];
1415var PREFIX$c = 'Content';
1416var classes$c = {
1417 columnTitle: "".concat(PREFIX$c, "-columnTitle")
1418};
1419var StyledSpan = styled('span')(function () {
1420 return _defineProperty({}, "&.".concat(classes$c.columnTitle), {
1421 verticalAlign: 'middle'
1422 });
1423});
1424var Content = function Content(_ref2) {
1425 var column = _ref2.column,
1426 row = _ref2.row,
1427 className = _ref2.className,
1428 children = _ref2.children,
1429 restProps = _objectWithoutProperties(_ref2, _excluded$h);
1430
1431 return /*#__PURE__*/createElement(StyledSpan, _extends({
1432 className: classNames(classes$c.columnTitle, className)
1433 }, restProps), /*#__PURE__*/createElement("strong", null, column.title || column.name, ":", ' '), children || String(row.value));
1434};
1435process.env.NODE_ENV !== "production" ? Content.propTypes = {
1436 row: PropTypes.any,
1437 column: PropTypes.object,
1438 children: PropTypes.node,
1439 className: PropTypes.string
1440} : void 0;
1441Content.defaultProps = {
1442 row: {},
1443 column: {},
1444 children: undefined,
1445 className: undefined
1446};
1447
1448var getBorder = function getBorder(theme) {
1449 return "1px solid ".concat(theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68));
1450};
1451var getStickyStyles = function getStickyStyles(theme) {
1452 var zIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
1453 return {
1454 position: 'sticky',
1455 background: theme.palette.background.paper,
1456 zIndex: zIndex
1457 };
1458};
1459var getStickyCellStyle = function getStickyCellStyle(theme) {
1460 return _objectSpread2(_objectSpread2({}, getStickyStyles(theme)), {}, {
1461 backgroundClip: 'padding-box'
1462 });
1463};
1464
1465var _excluded$i = ["children", "style", "className", "side", "position"];
1466var PREFIX$d = 'Container';
1467var classes$d = {
1468 wrapper: "".concat(PREFIX$d, "-wrapper")
1469};
1470var StyledDiv$7 = styled('div')(function (_ref) {
1471 var theme = _ref.theme;
1472 return _defineProperty({}, "&.".concat(classes$d.wrapper), _objectSpread2(_objectSpread2({}, getStickyCellStyle(theme)), {}, {
1473 float: 'left',
1474 maxWidth: '100%',
1475 overflowX: 'hidden',
1476 textOverflow: 'ellipsis'
1477 }));
1478});
1479var Container$2 = function Container(_ref3) {
1480 var children = _ref3.children,
1481 style = _ref3.style,
1482 className = _ref3.className,
1483 side = _ref3.side,
1484 position = _ref3.position,
1485 restProps = _objectWithoutProperties(_ref3, _excluded$i);
1486
1487 return /*#__PURE__*/createElement(StyledDiv$7, _extends({
1488 className: classNames(classes$d.wrapper, className),
1489 style: _objectSpread2(_objectSpread2({}, style), {}, _defineProperty({}, side, position))
1490 }, restProps), children);
1491};
1492process.env.NODE_ENV !== "production" ? Container$2.propTypes = {
1493 children: PropTypes.node,
1494 className: PropTypes.string,
1495 style: PropTypes.object,
1496 side: PropTypes.string,
1497 position: PropTypes.string
1498} : void 0;
1499Container$2.defaultProps = {
1500 children: undefined,
1501 className: undefined,
1502 style: null,
1503 side: 'left',
1504 position: ''
1505};
1506
1507var _excluded$j = ["tableRow", "tableColumn", "row", "column", "style", "className", "position", "side", "forwardedRef"];
1508var PREFIX$e = 'IndentCell';
1509var classes$e = {
1510 indentCell: "".concat(PREFIX$e, "-indentCell")
1511};
1512var StyledTableCell$3 = styled(TableCell$1)(function (_ref) {
1513 var theme = _ref.theme;
1514 return _defineProperty({}, "&.".concat(classes$e.indentCell), _objectSpread2(_objectSpread2({}, getStickyCellStyle(theme)), {}, {
1515 borderBottom: getBorder(theme)
1516 }));
1517});
1518var IndentCell = function IndentCell(_ref3) {
1519 var tableRow = _ref3.tableRow,
1520 tableColumn = _ref3.tableColumn,
1521 row = _ref3.row,
1522 column = _ref3.column,
1523 style = _ref3.style,
1524 className = _ref3.className,
1525 position = _ref3.position,
1526 side = _ref3.side,
1527 forwardedRef = _ref3.forwardedRef,
1528 restProps = _objectWithoutProperties(_ref3, _excluded$j);
1529
1530 return /*#__PURE__*/createElement(StyledTableCell$3, _extends({
1531 className: classNames(classes$e.indentCell, className),
1532 ref: forwardedRef,
1533 style: _objectSpread2(_objectSpread2({}, style), {}, _defineProperty({}, side, position))
1534 }, restProps));
1535};
1536process.env.NODE_ENV !== "production" ? IndentCell.propTypes = {
1537 tableRow: PropTypes.object,
1538 tableColumn: PropTypes.object,
1539 row: PropTypes.any,
1540 column: PropTypes.object,
1541 style: PropTypes.object,
1542 className: PropTypes.string,
1543 side: PropTypes.string,
1544 position: PropTypes.number,
1545 forwardedRef: PropTypes.func
1546} : void 0;
1547IndentCell.defaultProps = {
1548 tableRow: undefined,
1549 tableColumn: undefined,
1550 row: {},
1551 column: {},
1552 style: null,
1553 className: undefined,
1554 side: 'left',
1555 position: undefined,
1556 forwardedRef: undefined
1557};
1558
1559var _excluded$k = ["expanded", "className"];
1560var Icon = /*#__PURE__*/memo(function (_ref) {
1561 var expanded = _ref.expanded,
1562 className = _ref.className,
1563 restProps = _objectWithoutProperties(_ref, _excluded$k);
1564
1565 return /*#__PURE__*/createElement(IconButton, _extends({
1566 className: className
1567 }, restProps), expanded ? /*#__PURE__*/createElement(ExpandMore, null) : /*#__PURE__*/createElement(ChevronRight, null));
1568});
1569Icon.propTypes = {
1570 expanded: PropTypes.bool.isRequired,
1571 className: PropTypes.string
1572};
1573Icon.defaultProps = {
1574 className: undefined
1575};
1576
1577var _excluded$l = ["children", "className"];
1578var PREFIX$f = 'Row';
1579var classes$f = {
1580 row: "".concat(PREFIX$f, "-row")
1581};
1582var StyledTableRow = styled(TableRow)(function () {
1583 return _defineProperty({}, "&.".concat(classes$f.row), {
1584 cursor: 'pointer'
1585 });
1586});
1587var Row = function Row(_ref2) {
1588 var children = _ref2.children,
1589 className = _ref2.className,
1590 restProps = _objectWithoutProperties(_ref2, _excluded$l);
1591
1592 return /*#__PURE__*/createElement(StyledTableRow, _extends({}, restProps, {
1593 className: classNames(classes$f.row, className)
1594 }), children);
1595};
1596process.env.NODE_ENV !== "production" ? Row.propTypes = {
1597 children: PropTypes.node,
1598 className: PropTypes.string
1599} : void 0;
1600Row.defaultProps = {
1601 children: null,
1602 className: undefined
1603};
1604
1605var _excluded$m = ["inlineSummaries", "getMessage", "inlineSummaryItemComponent", "className"];
1606var PREFIX$g = 'InlineSummary';
1607var classes$g = {
1608 inlineSummary: "".concat(PREFIX$g, "-inlineSummary")
1609};
1610var StyledSpan$1 = styled('span')(function (_ref) {
1611 var theme = _ref.theme;
1612 return _defineProperty({}, "&.".concat(classes$g.inlineSummary), {
1613 marginLeft: theme.spacing(1),
1614 verticalAlign: 'middle'
1615 });
1616});
1617var InlineSummary = function InlineSummary(_ref3) {
1618 var inlineSummaries = _ref3.inlineSummaries,
1619 getMessage = _ref3.getMessage,
1620 InlineSummaryItem = _ref3.inlineSummaryItemComponent,
1621 className = _ref3.className,
1622 restProps = _objectWithoutProperties(_ref3, _excluded$m);
1623
1624 return /*#__PURE__*/createElement(StyledSpan$1, _extends({
1625 className: classNames(classes$g.inlineSummary, className)
1626 }, restProps), '(', inlineSummaries.map(function (s) {
1627 return /*#__PURE__*/createElement(InlineSummaryItem, {
1628 key: s.type,
1629 summary: s,
1630 getMessage: getMessage
1631 });
1632 }).reduce(function (acc, summary) {
1633 return acc.concat(summary, ', ');
1634 }, []).slice(0, -1), ')');
1635};
1636process.env.NODE_ENV !== "production" ? InlineSummary.propTypes = {
1637 className: PropTypes.string,
1638 getMessage: PropTypes.func.isRequired,
1639 inlineSummaries: PropTypes.array,
1640 inlineSummaryItemComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
1641} : void 0;
1642InlineSummary.defaultProps = {
1643 className: undefined,
1644 inlineSummaries: []
1645};
1646
1647var _excluded$n = ["column", "value", "children", "tableRow", "tableColumn", "row", "className", "forwardedRef"];
1648var PREFIX$h = 'TableCell';
1649var classes$h = {
1650 cell: "".concat(PREFIX$h, "-cell"),
1651 footer: "".concat(PREFIX$h, "-footer"),
1652 cellRightAlign: "".concat(PREFIX$h, "-cellRightAlign"),
1653 cellCenterAlign: "".concat(PREFIX$h, "-cellCenterAlign"),
1654 cellNoWrap: "".concat(PREFIX$h, "-cellNoWrap")
1655};
1656var StyledTableCellMUI = styled(TableCell$1)(function (_ref) {
1657 var _ref2;
1658
1659 var theme = _ref.theme;
1660 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$h.cell), {
1661 paddingRight: theme.spacing(1),
1662 paddingLeft: theme.spacing(1),
1663 '&:first-of-type': {
1664 paddingLeft: theme.spacing(3)
1665 },
1666 overflow: 'hidden',
1667 textOverflow: 'ellipsis'
1668 }), _defineProperty(_ref2, "&.".concat(classes$h.footer), {
1669 borderTop: getBorder(theme)
1670 }), _defineProperty(_ref2, "&.".concat(classes$h.cellRightAlign), {
1671 textAlign: 'right'
1672 }), _defineProperty(_ref2, "&.".concat(classes$h.cellCenterAlign), {
1673 textAlign: 'center'
1674 }), _defineProperty(_ref2, "&.".concat(classes$h.cellNoWrap), {
1675 whiteSpace: 'nowrap'
1676 }), _ref2;
1677});
1678var TableCell = function TableCell(_ref3) {
1679 var _classNames;
1680
1681 var column = _ref3.column,
1682 value = _ref3.value,
1683 children = _ref3.children,
1684 tableRow = _ref3.tableRow,
1685 tableColumn = _ref3.tableColumn,
1686 row = _ref3.row,
1687 className = _ref3.className,
1688 forwardedRef = _ref3.forwardedRef,
1689 restProps = _objectWithoutProperties(_ref3, _excluded$n);
1690
1691 return /*#__PURE__*/createElement(StyledTableCellMUI, _extends({
1692 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$h.cell, true), _defineProperty(_classNames, classes$h.cellRightAlign, tableColumn && tableColumn.align === 'right'), _defineProperty(_classNames, classes$h.cellCenterAlign, tableColumn && tableColumn.align === 'center'), _defineProperty(_classNames, classes$h.cellNoWrap, !(tableColumn && tableColumn.wordWrapEnabled)), _classNames), className),
1693 classes: {
1694 footer: classes$h.footer
1695 },
1696 ref: forwardedRef
1697 }, restProps), children || value);
1698};
1699process.env.NODE_ENV !== "production" ? TableCell.propTypes = {
1700 value: PropTypes.any,
1701 column: PropTypes.object,
1702 row: PropTypes.any,
1703 children: PropTypes.node,
1704 tableRow: PropTypes.object,
1705 tableColumn: PropTypes.object,
1706 className: PropTypes.string,
1707 forwardedRef: PropTypes.func
1708} : void 0;
1709TableCell.defaultProps = {
1710 value: undefined,
1711 column: undefined,
1712 row: undefined,
1713 children: undefined,
1714 tableRow: undefined,
1715 tableColumn: undefined,
1716 className: undefined,
1717 forwardedRef: undefined
1718};
1719
1720var _excluded$o = ["onToggle"];
1721var SummaryCell = function SummaryCell(_ref) {
1722 var onToggle = _ref.onToggle,
1723 restProps = _objectWithoutProperties(_ref, _excluded$o);
1724
1725 return /*#__PURE__*/createElement(TableCell, _extends({}, restProps, {
1726 onClick: onToggle
1727 }));
1728};
1729process.env.NODE_ENV !== "production" ? SummaryCell.propTypes = {
1730 onToggle: PropTypes.func
1731} : void 0;
1732SummaryCell.defaultProps = {
1733 onToggle: function onToggle() {}
1734};
1735
1736var _excluded$p = ["children", "type", "value", "getMessage", "className"];
1737var PREFIX$i = 'TableSummaryItem';
1738var classes$i = {
1739 item: "".concat(PREFIX$i, "-item")
1740};
1741var StyledDiv$8 = styled('div')(function (_ref) {
1742 var theme = _ref.theme;
1743 return _defineProperty({}, "&.".concat(classes$i.item), {
1744 fontWeight: theme.typography.fontWeightBold,
1745 color: theme.palette.text.primary,
1746 fontSize: theme.typography.pxToRem(13)
1747 });
1748});
1749var TableSummaryItem = function TableSummaryItem(_ref3) {
1750 var children = _ref3.children,
1751 type = _ref3.type,
1752 value = _ref3.value,
1753 getMessage = _ref3.getMessage,
1754 className = _ref3.className,
1755 restProps = _objectWithoutProperties(_ref3, _excluded$p);
1756
1757 return /*#__PURE__*/createElement(StyledDiv$8, _extends({
1758 className: classNames([classes$i.item], className)
1759 }, restProps), /*#__PURE__*/createElement(Fragment, null, getMessage(type), ":\xA0\xA0", children));
1760};
1761process.env.NODE_ENV !== "production" ? TableSummaryItem.propTypes = {
1762 value: PropTypes.number,
1763 type: PropTypes.string.isRequired,
1764 getMessage: PropTypes.func.isRequired,
1765 children: PropTypes.node,
1766 className: PropTypes.string
1767} : void 0;
1768TableSummaryItem.defaultProps = {
1769 value: null,
1770 children: undefined,
1771 className: undefined
1772};
1773
1774var TableGroupRowWithIndent = function TableGroupRowWithIndent(props) {
1775 return /*#__PURE__*/createElement(TableGroupRow$1, _extends({
1776 contentCellPadding: "8px",
1777 indentColumnWidth: 48
1778 }, props));
1779};
1780
1781TableGroupRowWithIndent.components = TableGroupRow$1.components;
1782var StubCell = SummaryCell;
1783var TableGroupRow = withComponents({
1784 Row: Row,
1785 Cell: Cell,
1786 IndentCell: IndentCell,
1787 Container: Container$2,
1788 Content: Content,
1789 Icon: Icon,
1790 InlineSummary: InlineSummary,
1791 InlineSummaryItem: InlineSummaryItem,
1792 SummaryCell: SummaryCell,
1793 SummaryItem: TableSummaryItem,
1794 StubCell: StubCell
1795})(TableGroupRowWithIndent);
1796TableGroupRow.COLUMN_TYPE = TableGroupRow$1.COLUMN_TYPE;
1797TableGroupRow.ROW_TYPE = TableGroupRow$1.ROW_TYPE;
1798
1799var _excluded$q = ["allSelected", "someSelected", "disabled", "onToggle", "className", "tableRow", "tableColumn", "rowSpan", "forwardedRef"];
1800var PREFIX$j = 'TableSelectAllCell';
1801var classes$j = {
1802 cell: "".concat(PREFIX$j, "-cell"),
1803 checkbox: "".concat(PREFIX$j, "-checkbox"),
1804 alignWithRowSpan: "".concat(PREFIX$j, "-alignWithRowSpan"),
1805 pointer: "".concat(PREFIX$j, "-pointer")
1806};
1807var StyledTableCell$4 = styled(TableCell$1)(function (_ref) {
1808 var _ref2;
1809
1810 var theme = _ref.theme;
1811 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$j.cell), {
1812 overflow: 'visible',
1813 paddingRight: 0,
1814 paddingLeft: theme.spacing(1),
1815 textAlign: 'center'
1816 }), _defineProperty(_ref2, "&.".concat(classes$j.pointer), {
1817 cursor: 'pointer'
1818 }), _defineProperty(_ref2, "&.".concat(classes$j.alignWithRowSpan), {
1819 verticalAlign: 'bottom',
1820 paddingBottom: theme.spacing(0.5)
1821 }), _defineProperty(_ref2, "& .".concat(classes$j.checkbox), {
1822 padding: theme.spacing(1)
1823 }), _ref2;
1824});
1825var TableSelectAllCell = function TableSelectAllCell(_ref3) {
1826 var _classNames;
1827
1828 var allSelected = _ref3.allSelected,
1829 someSelected = _ref3.someSelected,
1830 disabled = _ref3.disabled,
1831 onToggle = _ref3.onToggle,
1832 className = _ref3.className,
1833 tableRow = _ref3.tableRow,
1834 tableColumn = _ref3.tableColumn,
1835 rowSpan = _ref3.rowSpan,
1836 forwardedRef = _ref3.forwardedRef,
1837 restProps = _objectWithoutProperties(_ref3, _excluded$q);
1838
1839 var cellClasses = classNames((_classNames = {}, _defineProperty(_classNames, classes$j.cell, true), _defineProperty(_classNames, classes$j.pointer, !disabled), _defineProperty(_classNames, classes$j.alignWithRowSpan, rowSpan > 1), _classNames), className);
1840 return /*#__PURE__*/createElement(StyledTableCell$4, _extends({
1841 padding: "checkbox",
1842 className: cellClasses,
1843 rowSpan: rowSpan,
1844 ref: forwardedRef
1845 }, restProps), /*#__PURE__*/createElement(Checkbox, {
1846 checked: allSelected,
1847 className: classes$j.checkbox,
1848 indeterminate: someSelected,
1849 disabled: disabled,
1850 onClick: function onClick(e) {
1851 if (disabled) return;
1852 e.stopPropagation();
1853 onToggle();
1854 }
1855 }));
1856};
1857process.env.NODE_ENV !== "production" ? TableSelectAllCell.propTypes = {
1858 allSelected: PropTypes.bool,
1859 someSelected: PropTypes.bool,
1860 disabled: PropTypes.bool,
1861 onToggle: PropTypes.func,
1862 className: PropTypes.string,
1863 tableRow: PropTypes.object,
1864 tableColumn: PropTypes.object,
1865 rowSpan: PropTypes.number,
1866 forwardedRef: PropTypes.func
1867} : void 0;
1868TableSelectAllCell.defaultProps = {
1869 allSelected: false,
1870 someSelected: false,
1871 disabled: false,
1872 onToggle: function onToggle() {},
1873 className: undefined,
1874 tableRow: undefined,
1875 tableColumn: undefined,
1876 rowSpan: undefined,
1877 forwardedRef: undefined
1878};
1879
1880var _excluded$r = ["style", "selected", "onToggle", "className", "row", "tableRow", "tableColumn", "forwardedRef"];
1881var PREFIX$k = 'TableSelectCell';
1882var classes$k = {
1883 cell: "".concat(PREFIX$k, "-cell"),
1884 checkbox: "".concat(PREFIX$k, "-checkbox")
1885};
1886var StyledTableCell$5 = styled(TableCell$1)(function (_ref) {
1887 var _ref2;
1888
1889 var theme = _ref.theme;
1890 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$k.cell), {
1891 overflow: 'visible',
1892 paddingRight: 0,
1893 paddingLeft: theme.spacing(1),
1894 textAlign: 'center'
1895 }), _defineProperty(_ref2, "& .".concat(classes$k.checkbox), {
1896 marginTop: '-1px',
1897 marginBottom: '-1px',
1898 padding: theme.spacing(1)
1899 }), _ref2;
1900});
1901var TableSelectCell = function TableSelectCell(_ref3) {
1902 var style = _ref3.style,
1903 selected = _ref3.selected,
1904 onToggle = _ref3.onToggle,
1905 className = _ref3.className,
1906 row = _ref3.row,
1907 tableRow = _ref3.tableRow,
1908 tableColumn = _ref3.tableColumn,
1909 forwardedRef = _ref3.forwardedRef,
1910 restProps = _objectWithoutProperties(_ref3, _excluded$r);
1911
1912 return /*#__PURE__*/createElement(StyledTableCell$5, _extends({
1913 padding: "checkbox",
1914 style: style,
1915 ref: forwardedRef,
1916 className: classNames(classes$k.cell, className)
1917 }, restProps), /*#__PURE__*/createElement(Checkbox, {
1918 className: classes$k.checkbox,
1919 checked: selected,
1920 onClick: function onClick(e) {
1921 e.stopPropagation();
1922 onToggle();
1923 }
1924 }));
1925};
1926process.env.NODE_ENV !== "production" ? TableSelectCell.propTypes = {
1927 style: PropTypes.object,
1928 selected: PropTypes.bool,
1929 onToggle: PropTypes.func,
1930 row: PropTypes.any,
1931 tableRow: PropTypes.object,
1932 tableColumn: PropTypes.object,
1933 className: PropTypes.string,
1934 forwardedRef: PropTypes.func
1935} : void 0;
1936TableSelectCell.defaultProps = {
1937 style: null,
1938 selected: false,
1939 onToggle: function onToggle() {},
1940 row: undefined,
1941 tableRow: undefined,
1942 tableColumn: undefined,
1943 className: undefined,
1944 forwardedRef: undefined
1945};
1946
1947var getSelectionColor = (function (theme) {
1948 return theme.palette.mode === 'light' ? lighten(alpha(theme.palette.action.selected, 1), 0.96) : darken(alpha(theme.palette.action.selected, 1), 0.68);
1949});
1950
1951var _excluded$s = ["children", "className", "onToggle", "row", "selectByRowClick", "highlighted", "tableColumn", "tableRow", "forwardedRef"];
1952var PREFIX$l = 'TableSelectRow';
1953var classes$l = {
1954 selected: "".concat(PREFIX$l, "-selected")
1955};
1956var StyledTableRow$1 = styled(TableRow$1)(function (_ref) {
1957 var theme = _ref.theme;
1958 return _defineProperty({}, "&.".concat(classes$l.selected), {
1959 backgroundColor: getSelectionColor(theme)
1960 });
1961});
1962var TableSelectRow = function TableSelectRow(_ref3) {
1963 var children = _ref3.children,
1964 className = _ref3.className,
1965 onToggle = _ref3.onToggle,
1966 row = _ref3.row,
1967 selectByRowClick = _ref3.selectByRowClick,
1968 highlighted = _ref3.highlighted,
1969 tableColumn = _ref3.tableColumn,
1970 tableRow = _ref3.tableRow,
1971 forwardedRef = _ref3.forwardedRef,
1972 restProps = _objectWithoutProperties(_ref3, _excluded$s);
1973
1974 return /*#__PURE__*/createElement(StyledTableRow$1, _extends({
1975 ref: forwardedRef,
1976 className: classNames(_defineProperty({}, classes$l.selected, highlighted), className),
1977 onClick: function onClick(e) {
1978 if (!selectByRowClick) return;
1979 e.stopPropagation();
1980 onToggle();
1981 }
1982 }, restProps), children);
1983};
1984process.env.NODE_ENV !== "production" ? TableSelectRow.propTypes = {
1985 children: PropTypes.node,
1986 className: PropTypes.string,
1987 onToggle: PropTypes.func,
1988 row: PropTypes.any,
1989 selectByRowClick: PropTypes.bool,
1990 highlighted: PropTypes.bool,
1991 tableColumn: PropTypes.object,
1992 tableRow: PropTypes.object,
1993 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
1994} : void 0;
1995TableSelectRow.defaultProps = {
1996 children: undefined,
1997 className: undefined,
1998 onToggle: function onToggle() {},
1999 row: undefined,
2000 selectByRowClick: false,
2001 highlighted: false,
2002 tableColumn: undefined,
2003 tableRow: undefined,
2004 forwardedRef: undefined
2005};
2006
2007var TableSelectionWithWidth = function TableSelectionWithWidth(props) {
2008 return /*#__PURE__*/createElement(TableSelection$1, _extends({
2009 selectionColumnWidth: 58
2010 }, props));
2011};
2012
2013TableSelectionWithWidth.components = TableSelection$1.components;
2014var TableSelection = withComponents({
2015 Row: TableSelectRow,
2016 Cell: TableSelectCell,
2017 HeaderCell: TableSelectAllCell
2018})(TableSelectionWithWidth);
2019TableSelection.COLUMN_TYPE = TableSelection$1.COLUMN_TYPE;
2020
2021var _excluded$t = ["isFixed", "className"],
2022 _excluded2$1 = ["isFixed"],
2023 _excluded3 = ["isFixed"];
2024var PREFIX$m = 'TableParts';
2025var classes$m = {
2026 fixedHeader: "".concat(PREFIX$m, "-fixedHeader"),
2027 fixedFooter: "".concat(PREFIX$m, "-fixedFooter")
2028};
2029var StyledHead = styled(TableHead)(function (_ref) {
2030 var theme = _ref.theme;
2031 return _defineProperty({}, "&.".concat(classes$m.fixedHeader), _objectSpread2(_objectSpread2({}, getStickyStyles(theme, 500)), {}, {
2032 top: 0
2033 }));
2034});
2035var StyledFooter = styled(TableFooter)(function (_ref3) {
2036 var theme = _ref3.theme;
2037 return _defineProperty({}, "&.".concat(classes$m.fixedFooter), _objectSpread2(_objectSpread2({}, getStickyStyles(theme)), {}, {
2038 bottom: 0
2039 }));
2040});
2041var Head = function Head(_ref5) {
2042 var isFixed = _ref5.isFixed,
2043 className = _ref5.className,
2044 restProps = _objectWithoutProperties(_ref5, _excluded$t);
2045
2046 return /*#__PURE__*/createElement(StyledHead, _extends({
2047 className: classNames(_defineProperty({}, classes$m.fixedHeader, isFixed), className)
2048 }, restProps));
2049};
2050process.env.NODE_ENV !== "production" ? Head.propTypes = {
2051 className: PropTypes.string,
2052 isFixed: PropTypes.bool
2053} : void 0;
2054Head.defaultProps = {
2055 isFixed: undefined,
2056 className: undefined
2057};
2058var Body = function Body(_ref6) {
2059 var isFixed = _ref6.isFixed,
2060 props = _objectWithoutProperties(_ref6, _excluded2$1);
2061
2062 return /*#__PURE__*/createElement(TableBody, props);
2063};
2064process.env.NODE_ENV !== "production" ? Body.propTypes = {
2065 isFixed: PropTypes.bool
2066} : void 0;
2067Body.defaultProps = {
2068 isFixed: undefined
2069};
2070var Footer = function Footer(_ref7) {
2071 var isFixed = _ref7.isFixed,
2072 props = _objectWithoutProperties(_ref7, _excluded3);
2073
2074 return /*#__PURE__*/createElement(StyledFooter, _extends({
2075 className: classNames(_defineProperty({}, classes$m.fixedFooter, isFixed))
2076 }, props));
2077};
2078process.env.NODE_ENV !== "production" ? Footer.propTypes = {
2079 isFixed: PropTypes.bool
2080} : void 0;
2081Footer.defaultProps = {
2082 isFixed: undefined
2083};
2084
2085var _excluded$u = ["children", "className", "use", "forwardedRef"];
2086var PREFIX$n = 'Table';
2087var classes$n = {
2088 table: "".concat(PREFIX$n, "-table"),
2089 stickyTable: "".concat(PREFIX$n, "-stickyTable"),
2090 headTable: "".concat(PREFIX$n, "-headTable"),
2091 footTable: "".concat(PREFIX$n, "-footTable")
2092};
2093var StyledTableMUI = styled(Table$2)(function (_ref) {
2094 var _ref2;
2095
2096 var theme = _ref.theme;
2097 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$n.table), {
2098 tableLayout: 'fixed',
2099 borderCollapse: 'separate'
2100 }), _defineProperty(_ref2, "&.".concat(classes$n.stickyTable), _objectSpread2(_objectSpread2({}, getStickyStyles(theme)), {}, {
2101 overflow: 'visible',
2102 fallbacks: {
2103 position: '-webkit-sticky'
2104 }
2105 })), _defineProperty(_ref2, "&.".concat(classes$n.headTable), {
2106 top: 0
2107 }), _defineProperty(_ref2, "&.".concat(classes$n.footTable), {
2108 borderTop: getBorder(theme),
2109 bottom: 0
2110 }), _ref2;
2111});
2112var Table = function Table(_ref3) {
2113 var _classNames;
2114
2115 var children = _ref3.children,
2116 className = _ref3.className,
2117 use = _ref3.use,
2118 forwardedRef = _ref3.forwardedRef,
2119 restProps = _objectWithoutProperties(_ref3, _excluded$u);
2120
2121 return /*#__PURE__*/createElement(StyledTableMUI, _extends({
2122 ref: forwardedRef,
2123 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$n.table, true), _defineProperty(_classNames, classes$n.stickyTable, !!use), _defineProperty(_classNames, classes$n.headTable, use === 'head'), _defineProperty(_classNames, classes$n.footTable, use === 'foot'), _classNames), className)
2124 }, restProps), children);
2125};
2126process.env.NODE_ENV !== "production" ? Table.propTypes = {
2127 use: PropTypes.oneOf(['head', 'foot']),
2128 children: PropTypes.node.isRequired,
2129 className: PropTypes.string,
2130 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
2131} : void 0;
2132Table.defaultProps = {
2133 use: undefined,
2134 className: undefined,
2135 forwardedRef: undefined
2136};
2137
2138var MINIMAL_COLUMN_WIDTH = 120;
2139var TableLayout = function TableLayout(props) {
2140 return /*#__PURE__*/createElement(TableLayout$1, _extends({
2141 layoutComponent: StaticTableLayout,
2142 minColumnWidth: MINIMAL_COLUMN_WIDTH
2143 }, props));
2144};
2145
2146var _excluded$v = ["className", "tableRow", "tableColumn", "forwardedRef"];
2147var PREFIX$o = 'TableStubCell';
2148var classes$o = {
2149 cell: "".concat(PREFIX$o, "-cell"),
2150 footer: "".concat(PREFIX$o, "-footer")
2151};
2152var StyledTableCell$6 = styled(TableCell$1)(function (_ref) {
2153 var _ref2;
2154
2155 var theme = _ref.theme;
2156 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$o.cell), {
2157 padding: 0
2158 }), _defineProperty(_ref2, "&.".concat(classes$o.footer), {
2159 borderTop: getBorder(theme)
2160 }), _ref2;
2161});
2162var TableStubCell = function TableStubCell(_ref3) {
2163 var className = _ref3.className,
2164 tableRow = _ref3.tableRow,
2165 tableColumn = _ref3.tableColumn,
2166 forwardedRef = _ref3.forwardedRef,
2167 restProps = _objectWithoutProperties(_ref3, _excluded$v);
2168
2169 return /*#__PURE__*/createElement(StyledTableCell$6, _extends({
2170 ref: forwardedRef,
2171 className: classNames(classes$o.cell, className),
2172 classes: {
2173 footer: classes$o.footer
2174 }
2175 }, restProps));
2176};
2177process.env.NODE_ENV !== "production" ? TableStubCell.propTypes = {
2178 className: PropTypes.string,
2179 tableRow: PropTypes.object,
2180 tableColumn: PropTypes.object,
2181 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
2182} : void 0;
2183TableStubCell.defaultProps = {
2184 className: undefined,
2185 tableRow: undefined,
2186 tableColumn: undefined,
2187 forwardedRef: undefined
2188};
2189
2190var _excluded$w = ["style", "colSpan", "getMessage", "className", "tableRow", "tableColumn"];
2191var PREFIX$p = 'TableNoDataCell';
2192var classes$p = {
2193 cell: "".concat(PREFIX$p, "-cell"),
2194 textContainer: "".concat(PREFIX$p, "-textContainer"),
2195 text: "".concat(PREFIX$p, "-text")
2196};
2197var StyledTableCell$7 = styled(TableCell$1)(function (_ref) {
2198 var _ref2;
2199
2200 var theme = _ref.theme;
2201 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$p.cell), {
2202 padding: theme.spacing(6, 0),
2203 position: 'static !important'
2204 }), _defineProperty(_ref2, "& .".concat(classes$p.text), {
2205 transform: 'translateX(-50%)',
2206 msTransform: 'translateX(-50%)',
2207 display: 'inline-block'
2208 }), _defineProperty(_ref2, "& .".concat(classes$p.textContainer), {
2209 display: 'inline-block',
2210 position: 'sticky',
2211 left: '50%'
2212 }), _ref2;
2213});
2214var TableNoDataCell = function TableNoDataCell(_ref3) {
2215 var style = _ref3.style,
2216 colSpan = _ref3.colSpan,
2217 getMessage = _ref3.getMessage,
2218 className = _ref3.className,
2219 tableRow = _ref3.tableRow,
2220 tableColumn = _ref3.tableColumn,
2221 restProps = _objectWithoutProperties(_ref3, _excluded$w);
2222
2223 return /*#__PURE__*/createElement(StyledTableCell$7, _extends({
2224 style: style,
2225 className: classNames(classes$p.cell, className),
2226 colSpan: colSpan
2227 }, restProps), /*#__PURE__*/createElement("div", {
2228 className: classes$p.textContainer
2229 }, /*#__PURE__*/createElement("big", {
2230 className: classes$p.text
2231 }, getMessage('noData'))));
2232};
2233process.env.NODE_ENV !== "production" ? TableNoDataCell.propTypes = {
2234 style: PropTypes.object,
2235 colSpan: PropTypes.number,
2236 getMessage: PropTypes.func.isRequired,
2237 className: PropTypes.string,
2238 tableRow: PropTypes.object,
2239 tableColumn: PropTypes.object
2240} : void 0;
2241TableNoDataCell.defaultProps = {
2242 style: null,
2243 colSpan: 1,
2244 className: undefined,
2245 tableRow: undefined,
2246 tableColumn: undefined
2247};
2248
2249var _excluded$x = ["children", "className", "forwardedRef"];
2250var PREFIX$q = 'TableContainer';
2251var classes$q = {
2252 root: "".concat(PREFIX$q, "-root")
2253};
2254var StyledDiv$9 = styled('div')(function () {
2255 return _defineProperty({}, "&.".concat(classes$q.root), {
2256 flexGrow: 1,
2257 overflow: 'auto',
2258 WebkitOverflowScrolling: 'touch',
2259 // NOTE: fix sticky positioning in Safari
2260 width: '100%'
2261 });
2262});
2263var TableContainer = function TableContainer(_ref2) {
2264 var children = _ref2.children,
2265 className = _ref2.className,
2266 forwardedRef = _ref2.forwardedRef,
2267 restProps = _objectWithoutProperties(_ref2, _excluded$x);
2268
2269 return /*#__PURE__*/createElement(StyledDiv$9, _extends({
2270 ref: forwardedRef,
2271 className: classNames(classes$q.root, className)
2272 }, restProps), /*#__PURE__*/createElement("div", null, children));
2273};
2274process.env.NODE_ENV !== "production" ? TableContainer.propTypes = {
2275 children: PropTypes.node.isRequired,
2276 className: PropTypes.string,
2277 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
2278} : void 0;
2279TableContainer.defaultProps = {
2280 className: undefined,
2281 forwardedRef: undefined
2282};
2283
2284var _excluded$y = ["children", "tableRow", "forwardedRef"];
2285var TableStubRow = function TableStubRow(_ref) {
2286 var children = _ref.children,
2287 tableRow = _ref.tableRow,
2288 forwardedRef = _ref.forwardedRef,
2289 restProps = _objectWithoutProperties(_ref, _excluded$y);
2290
2291 return /*#__PURE__*/createElement(TableRow$1, _extends({
2292 ref: forwardedRef
2293 }, restProps), children);
2294};
2295process.env.NODE_ENV !== "production" ? TableStubRow.propTypes = {
2296 children: PropTypes.node,
2297 tableRow: PropTypes.object,
2298 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
2299} : void 0;
2300TableStubRow.defaultProps = {
2301 children: undefined,
2302 tableRow: undefined,
2303 forwardedRef: undefined
2304};
2305
2306var Table$1 = withComponents({
2307 Table: Table,
2308 TableHead: Head,
2309 TableBody: Body,
2310 TableFooter: Footer,
2311 Container: TableContainer,
2312 Layout: TableLayout,
2313 Row: TableRow,
2314 Cell: TableCell,
2315 NoDataRow: TableRow,
2316 NoDataCell: TableNoDataCell,
2317 StubRow: TableStubRow,
2318 StubCell: TableStubCell,
2319 StubHeaderCell: TableStubCell
2320})(Table$3);
2321Table$1.components = Table$3.components;
2322Table$1.COLUMN_TYPE = Table$3.COLUMN_TYPE;
2323Table$1.ROW_TYPE = Table$3.ROW_TYPE;
2324Table$1.NODATA_ROW_TYPE = Table$3.NODATA_ROW_TYPE;
2325
2326var _excluded$z = ["className", "tableRow", "tableColumn"];
2327var PREFIX$r = 'TableSceletonCell';
2328var classes$r = {
2329 cell: "".concat(PREFIX$r, "-cell")
2330};
2331var StyledTableCell$8 = styled(TableCell$1)(function (_ref) {
2332 var theme = _ref.theme;
2333 return _defineProperty({}, "&.".concat(classes$r.cell), {
2334 padding: theme.spacing(1),
2335 backgroundImage: 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACqCAYAAABbAOqQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjYWQ2ODE5MS00ZDMxLWRjNGYtOTU0NC1jNjJkMTIxMjY2M2IiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjY1RUVFQzAzRDYzMTFFODlFNThCOUJBQjU4Q0EzRDgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjY1RUVFQkYzRDYzMTFFODlFNThCOUJBQjU4Q0EzRDgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjVlMjM1Y2U0LTc5ZWUtNGI0NC05ZjlkLTk2NTZmZGFjNjhhNCIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk1OTQ2MjBiLTUyMTQtYTM0Yy04Nzc5LTEwMmEyMTY4MTlhOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvLbJKYAAADrSURBVHja7N3BDYBACABBsQn7L48q0BoMD5SZxAZuc74gF1V1MMfpCARBEEEQRBAEEQRBdovnuxxDq3RD/LIQRBAEQRBBEEQQBBEEQQQBAAAAAAAAABhi8gZVbgxi6kQQBBEEQQRBEEEQRBAEQRBBAAAAAAAAAAAabX2Daux2lqkTQRBEEAQRBEEEQRBBEARBBAEAAAAAAAAAaLR1g2osUyeCIIggCCIIggiCIIIgCIIIAgAAAAAAAADQ6KsbVPnXIKZOBEEQQRBEEAQRBEEEQRAEEYRXoqqcghuCIIIgiCAIIgiCCMIUtwADALYCCr92l++TAAAAAElFTkSuQmCC)',
2336 backgroundRepeat: 'no-repeat repeat',
2337 backgroundOrigin: 'content-box'
2338 });
2339});
2340var TableSkeletonCell = function TableSkeletonCell(_ref3) {
2341 var className = _ref3.className,
2342 tableRow = _ref3.tableRow,
2343 tableColumn = _ref3.tableColumn,
2344 restProps = _objectWithoutProperties(_ref3, _excluded$z);
2345
2346 return /*#__PURE__*/createElement(StyledTableCell$8, _extends({
2347 className: classNames(classes$r.cell, className)
2348 }, restProps));
2349};
2350process.env.NODE_ENV !== "production" ? TableSkeletonCell.propTypes = {
2351 className: PropTypes.string,
2352 tableRow: PropTypes.object,
2353 tableColumn: PropTypes.object
2354} : void 0;
2355TableSkeletonCell.defaultProps = {
2356 className: undefined,
2357 tableRow: undefined,
2358 tableColumn: undefined
2359};
2360
2361var MINIMAL_COLUMN_WIDTH$1 = 120;
2362var VirtualTableLayout = function VirtualTableLayout(props) {
2363 return /*#__PURE__*/createElement(TableLayout$1, _extends({
2364 layoutComponent: VirtualTableLayout$1,
2365 minColumnWidth: MINIMAL_COLUMN_WIDTH$1
2366 }, props));
2367};
2368
2369var FixedHeader = /*#__PURE__*/forwardRef(function (props, ref) {
2370 return /*#__PURE__*/createElement(Table, _extends({
2371 use: "head",
2372 ref: ref
2373 }, props));
2374});
2375var FixedFooter = /*#__PURE__*/forwardRef(function (props, ref) {
2376 return /*#__PURE__*/createElement(Table, _extends({
2377 use: "foot",
2378 ref: ref
2379 }, props));
2380});
2381var VirtualTable = makeVirtualTable(Table$1, {
2382 VirtualLayout: VirtualTableLayout,
2383 FixedHeader: FixedHeader,
2384 FixedFooter: FixedFooter,
2385 SkeletonCell: TableSkeletonCell,
2386 defaultEstimatedRowHeight: 53,
2387 defaultHeight: 530
2388});
2389VirtualTable.COLUMN_TYPE = Table$1.COLUMN_TYPE;
2390VirtualTable.ROW_TYPE = Table$1.ROW_TYPE;
2391VirtualTable.NODATA_ROW_TYPE = Table$1.NODATA_ROW_TYPE;
2392
2393var _excluded$A = ["filter", "getMessage", "onFilter", "children", "className", "tableRow", "tableColumn", "column", "filteringEnabled", "forwardedRef"];
2394var PREFIX$s = 'TableFilterCell';
2395var classes$s = {
2396 cell: "".concat(PREFIX$s, "-cell"),
2397 flexContainer: "".concat(PREFIX$s, "-flexContainer")
2398};
2399var StyledTableCell$9 = styled(TableCell$1)(function (_ref) {
2400 var _ref2;
2401
2402 var theme = _ref.theme;
2403 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$s.cell), {
2404 padding: 0,
2405 '&:first-of-type': {
2406 paddingLeft: theme.spacing(3)
2407 }
2408 }), _defineProperty(_ref2, "& .".concat(classes$s.flexContainer), {
2409 width: '100%',
2410 display: 'flex',
2411 alignItems: 'center'
2412 }), _ref2;
2413});
2414var TableFilterCell = function TableFilterCell(_ref3) {
2415 var filter = _ref3.filter,
2416 getMessage = _ref3.getMessage,
2417 onFilter = _ref3.onFilter,
2418 children = _ref3.children,
2419 className = _ref3.className,
2420 tableRow = _ref3.tableRow,
2421 tableColumn = _ref3.tableColumn,
2422 column = _ref3.column,
2423 filteringEnabled = _ref3.filteringEnabled,
2424 forwardedRef = _ref3.forwardedRef,
2425 restProps = _objectWithoutProperties(_ref3, _excluded$A);
2426
2427 return /*#__PURE__*/createElement(StyledTableCell$9, _extends({
2428 className: classNames(classes$s.cell, className),
2429 ref: forwardedRef
2430 }, restProps), /*#__PURE__*/createElement("div", {
2431 className: classes$s.flexContainer
2432 }, children));
2433};
2434process.env.NODE_ENV !== "production" ? TableFilterCell.propTypes = {
2435 filter: PropTypes.object,
2436 onFilter: PropTypes.func,
2437 children: PropTypes.node,
2438 getMessage: PropTypes.func.isRequired,
2439 className: PropTypes.string,
2440 tableRow: PropTypes.object,
2441 tableColumn: PropTypes.object,
2442 column: PropTypes.object,
2443 filteringEnabled: PropTypes.bool,
2444 forwardedRef: PropTypes.func
2445} : void 0;
2446TableFilterCell.defaultProps = {
2447 filter: null,
2448 onFilter: function onFilter() {},
2449 children: undefined,
2450 className: undefined,
2451 tableRow: undefined,
2452 tableColumn: undefined,
2453 column: undefined,
2454 filteringEnabled: true,
2455 forwardedRef: undefined
2456};
2457
2458var _excluded$B = ["value", "disabled", "getMessage", "onChange"];
2459var PREFIX$t = 'Editor';
2460var classes$t = {
2461 input: "".concat(PREFIX$t, "-input"),
2462 root: "".concat(PREFIX$t, "-root")
2463};
2464var StyledInput = styled(Input)(function (_ref) {
2465 var _ref2;
2466
2467 var theme = _ref.theme;
2468 return _ref2 = {}, _defineProperty(_ref2, "& .".concat(classes$t.input), {
2469 width: '100%',
2470 fontSize: '14px'
2471 }), _defineProperty(_ref2, "&.".concat(classes$t.root), {
2472 margin: theme.spacing(1)
2473 }), _ref2;
2474});
2475var Editor = function Editor(_ref3) {
2476 var value = _ref3.value,
2477 disabled = _ref3.disabled,
2478 getMessage = _ref3.getMessage,
2479 _onChange = _ref3.onChange,
2480 restProps = _objectWithoutProperties(_ref3, _excluded$B);
2481
2482 return /*#__PURE__*/createElement(StyledInput, _extends({
2483 classes: {
2484 input: classes$t.input,
2485 root: classes$t.root
2486 },
2487 fullWidth: true,
2488 disabled: disabled,
2489 value: value,
2490 onChange: function onChange(event) {
2491 return _onChange(event.target.value);
2492 },
2493 placeholder: getMessage('filterPlaceholder')
2494 }, restProps));
2495};
2496process.env.NODE_ENV !== "production" ? Editor.propTypes = {
2497 value: PropTypes.any,
2498 disabled: PropTypes.bool,
2499 onChange: PropTypes.func,
2500 getMessage: PropTypes.func.isRequired
2501} : void 0;
2502Editor.defaultProps = {
2503 value: '',
2504 disabled: false,
2505 onChange: function onChange() {}
2506};
2507
2508var PREFIX$u = 'FilterSelector';
2509var classes$u = {
2510 icon: "".concat(PREFIX$u, "-icon"),
2511 iconItem: "".concat(PREFIX$u, "-iconItem"),
2512 selectMenu: "".concat(PREFIX$u, "-selectMenu")
2513};
2514var StyledMenu = styled(Menu$1)(function (_ref) {
2515 var _ref2;
2516
2517 var theme = _ref.theme;
2518 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$u.selectMenu), {
2519 position: 'absolute !important'
2520 }), _defineProperty(_ref2, "& .".concat(classes$u.iconItem), {
2521 minWidth: theme.spacing(2)
2522 }), _ref2;
2523});
2524var FilterSelector = /*#__PURE__*/function (_React$PureComponent) {
2525 _inherits(FilterSelector, _React$PureComponent);
2526
2527 var _super = _createSuper(FilterSelector);
2528
2529 function FilterSelector(props) {
2530 var _this;
2531
2532 _classCallCheck(this, FilterSelector);
2533
2534 _this = _super.call(this, props);
2535 _this.state = {
2536 opened: false
2537 };
2538
2539 _this.setButtonRef = function (buttonRef) {
2540 _this.buttonRef = buttonRef;
2541 };
2542
2543 _this.handleButtonClick = function () {
2544 _this.setState(function (prevState) {
2545 return {
2546 opened: !prevState.opened
2547 };
2548 });
2549 };
2550
2551 _this.handleMenuClose = function () {
2552 _this.setState({
2553 opened: false
2554 });
2555 };
2556
2557 _this.handleMenuItemClick = function (nextValue) {
2558 var onChange = _this.props.onChange;
2559
2560 _this.setState({
2561 opened: false
2562 });
2563
2564 onChange(nextValue);
2565 };
2566
2567 return _this;
2568 }
2569
2570 _createClass(FilterSelector, [{
2571 key: "render",
2572 value: function render() {
2573 var _this2 = this;
2574
2575 var _this$props = this.props,
2576 value = _this$props.value,
2577 availableValues = _this$props.availableValues,
2578 disabled = _this$props.disabled,
2579 getMessage = _this$props.getMessage,
2580 Icon = _this$props.iconComponent,
2581 ToggleButton = _this$props.toggleButtonComponent;
2582 var opened = this.state.opened;
2583 var StyledIcon = styled(Icon)(function (_ref3) {
2584 var theme = _ref3.theme;
2585 return _defineProperty({}, "&.".concat(classes$u.icon), {
2586 marginRight: theme.spacing(1)
2587 });
2588 });
2589 return availableValues.length ? /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(ToggleButton, {
2590 buttonRef: this.setButtonRef,
2591 onToggle: this.handleButtonClick,
2592 disabled: disabled || availableValues.length === 1
2593 }, /*#__PURE__*/createElement(Icon, {
2594 type: value
2595 })), /*#__PURE__*/createElement(StyledMenu, {
2596 anchorEl: this.buttonRef,
2597 open: opened,
2598 onClose: this.handleMenuClose,
2599 MenuListProps: {
2600 dense: true
2601 },
2602 className: classes$u.selectMenu
2603 }, availableValues.map(function (valueItem) {
2604 return /*#__PURE__*/createElement(MenuItem$1, {
2605 key: valueItem,
2606 selected: valueItem === value,
2607 onClick: function onClick() {
2608 return _this2.handleMenuItemClick(valueItem);
2609 }
2610 }, /*#__PURE__*/createElement(ListItemIcon, {
2611 className: classes$u.iconItem
2612 }, /*#__PURE__*/createElement(StyledIcon, {
2613 type: valueItem,
2614 className: classes$u.icon,
2615 fontSize: "small"
2616 })), /*#__PURE__*/createElement(ListItemText, null, getMessage(valueItem)));
2617 }))) : null;
2618 }
2619 }]);
2620
2621 return FilterSelector;
2622}(PureComponent);
2623process.env.NODE_ENV !== "production" ? FilterSelector.propTypes = {
2624 value: PropTypes.string,
2625 availableValues: PropTypes.arrayOf(PropTypes.string),
2626 onChange: PropTypes.func,
2627 disabled: PropTypes.bool,
2628 // oneOfType is a workaround because React.memo returns react object
2629 iconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
2630 // oneOfType is a workaround because withStyles returns react object
2631 toggleButtonComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
2632 getMessage: PropTypes.func.isRequired
2633} : void 0;
2634FilterSelector.defaultProps = {
2635 value: undefined,
2636 availableValues: [],
2637 onChange: function onChange() {},
2638 disabled: false
2639};
2640
2641var _excluded$C = ["buttonRef", "onToggle", "disabled", "children"];
2642var ToggleButton$1 = function ToggleButton(_ref) {
2643 var buttonRef = _ref.buttonRef,
2644 onToggle = _ref.onToggle,
2645 disabled = _ref.disabled,
2646 children = _ref.children,
2647 restProps = _objectWithoutProperties(_ref, _excluded$C);
2648
2649 return /*#__PURE__*/createElement(IconButton, _extends({
2650 ref: buttonRef,
2651 onClick: onToggle,
2652 disabled: disabled
2653 }, restProps, {
2654 size: "large"
2655 }), children);
2656};
2657process.env.NODE_ENV !== "production" ? ToggleButton$1.propTypes = {
2658 buttonRef: PropTypes.func.isRequired,
2659 onToggle: PropTypes.func.isRequired,
2660 children: PropTypes.node,
2661 disabled: PropTypes.bool
2662} : void 0;
2663ToggleButton$1.defaultProps = {
2664 children: undefined,
2665 disabled: false
2666};
2667
2668var _excluded$D = ["type"];
2669var AVAILABLE_PATHS = {
2670 contains: 'M6.094 19.563l-2.031 0.281c-0.646 0.094-1.13 0.266-1.453 0.516-0.302 0.24-0.453 0.646-0.453 1.219 0 0.438 0.138 0.799 0.414 1.086s0.664 0.419 1.164 0.398c0.708 0 1.281-0.24 1.719-0.719 0.427-0.49 0.641-1.125 0.641-1.906v-0.875zM8.234 24.641h-2.172v-1.641c-0.677 1.24-1.661 1.859-2.953 1.859-0.927 0-1.682-0.276-2.266-0.828-0.552-0.552-0.828-1.292-0.828-2.219 0-1.927 1.068-3.052 3.203-3.375l2.875-0.438c0-1.469-0.656-2.203-1.969-2.203-1.177 0-2.224 0.427-3.141 1.281v-2.078c1.010-0.656 2.198-0.984 3.563-0.984 2.458 0 3.687 1.302 3.687 3.906v6.719zM14.734 16.797c0.521-0.583 1.167-0.875 1.938-0.875 0.74 0 1.323 0.281 1.75 0.844 0.448 0.583 0.672 1.38 0.672 2.391 0 1.188-0.24 2.13-0.719 2.828-0.49 0.677-1.13 1.016-1.922 1.016-0.719 0-1.302-0.271-1.75-0.813-0.427-0.51-0.641-1.141-0.641-1.891v-1.266c-0.021-0.906 0.203-1.651 0.672-2.234zM16.969 24.859c1.375 0 2.443-0.521 3.203-1.562 0.781-1.042 1.172-2.427 1.172-4.156 0-1.542-0.354-2.771-1.063-3.688-0.688-0.958-1.651-1.438-2.891-1.438-1.427 0-2.531 0.693-3.313 2.078v-6.781h-2.156v15.328h2.172v-1.5c0.677 1.146 1.635 1.719 2.875 1.719zM22.266 6.125c0.135 0 0.245 0.063 0.328 0.188 0.104 0.073 0.156 0.182 0.156 0.328v22.953c0 0.125-0.052 0.24-0.156 0.344-0.083 0.115-0.193 0.172-0.328 0.172h-12.281c-0.146 0-0.266-0.057-0.359-0.172-0.115-0.115-0.172-0.229-0.172-0.344v-22.953c0-0.135 0.057-0.245 0.172-0.328 0.094-0.125 0.214-0.188 0.359-0.188h12.281zM31.531 24.141c-0.76 0.479-1.693 0.719-2.797 0.719-1.427 0-2.589-0.479-3.484-1.438-0.865-0.958-1.286-2.198-1.266-3.719 0-1.688 0.448-3.052 1.344-4.094 0.917-1.042 2.208-1.573 3.875-1.594 0.854 0 1.63 0.177 2.328 0.531v2.156c-0.677-0.531-1.391-0.792-2.141-0.781-0.938 0-1.714 0.339-2.328 1.016-0.594 0.677-0.891 1.552-0.891 2.625 0 1.042 0.297 1.88 0.891 2.516 0.521 0.615 1.25 0.922 2.188 0.922 0.813 0 1.573-0.297 2.281-0.891v2.031z',
2671 notContains: 'M5.828 20.469v0.328c0 0.385-0.057 0.667-0.172 0.844-0.052 0.083-0.117 0.177-0.195 0.281s-0.174 0.224-0.289 0.359c-0.458 0.521-1.031 0.771-1.719 0.75-0.521 0-0.927-0.141-1.219-0.422-0.292-0.292-0.438-0.661-0.438-1.109 0-0.156 0.010-0.273 0.031-0.352s0.052-0.141 0.094-0.188 0.094-0.086 0.156-0.117 0.141-0.078 0.234-0.141c0.031-0.031 0.078-0.070 0.141-0.117s0.146-0.086 0.25-0.117h3.125zM14.016 18.328c0.010-0.406 0.070-0.729 0.18-0.969s0.289-0.49 0.539-0.75c0.479-0.604 1.13-0.906 1.953-0.906 0.75 0 1.344 0.292 1.781 0.875 0.198 0.25 0.349 0.495 0.453 0.734s0.172 0.578 0.203 1.016h-5.109zM19.078 20.469c-0.063 0.427-0.146 0.708-0.25 0.844-0.052 0.073-0.109 0.159-0.172 0.258l-0.219 0.352c-0.469 0.688-1.135 1.031-2 1.031-0.708 0-1.297-0.271-1.766-0.813l-0.305-0.359c-0.089-0.104-0.159-0.198-0.211-0.281-0.104-0.167-0.156-0.448-0.156-0.844v-0.188h5.078zM33.344 18.328l-6.875 0c0.031-0.198 0.070-0.372 0.117-0.523s0.107-0.284 0.18-0.398 0.154-0.224 0.242-0.328l0.305-0.344c0.604-0.688 1.391-1.031 2.359-1.031 0.771 0 1.51 0.266 2.219 0.797v-2.234c-0.75-0.333-1.552-0.5-2.406-0.5-1.667 0-2.974 0.531-3.922 1.594-0.396 0.427-0.708 0.859-0.938 1.297s-0.385 0.995-0.469 1.672h-2.719c-0.021-0.719-0.117-1.31-0.289-1.773s-0.424-0.914-0.758-1.352c-0.729-0.938-1.719-1.417-2.969-1.438-1.479 0-2.615 0.708-3.406 2.125v-6.953h-2.266v9.391h-3.75v-0.594c0-2.646-1.25-3.969-3.75-3.969-1.365 0-2.583 0.328-3.656 0.984v2.125c0.99-0.865 2.063-1.297 3.219-1.297 1.344 0 2.016 0.75 2.016 2.25l-2.953 0.125c-0.25 0.021-0.487 0.070-0.711 0.148l-0.633 0.227h-3.328v2.141h1.828l-0.281 0.594c-0.073 0.135-0.109 0.37-0.109 0.703 0 0.938 0.276 1.682 0.828 2.234 0.542 0.573 1.313 0.859 2.313 0.859 1.281 0 2.297-0.635 3.047-1.906v1.656h2.172v-4.141h3.75v4.141h2.297v-1.516c0.677 1.188 1.661 1.776 2.953 1.766 1.385 0 2.464-0.531 3.234-1.594 0.302-0.385 0.557-0.792 0.766-1.219 0.198-0.385 0.339-0.911 0.422-1.578h2.703c0.021 0.708 0.141 1.25 0.359 1.625 0.115 0.198 0.253 0.401 0.414 0.609s0.346 0.427 0.555 0.656c0.906 1 2.099 1.5 3.578 1.5 1.104 0 2.057-0.245 2.859-0.734v-2.109c-0.75 0.604-1.526 0.917-2.328 0.938-0.979 0-1.74-0.318-2.281-0.953l-0.328-0.328c-0.094-0.094-0.177-0.195-0.25-0.305s-0.13-0.234-0.172-0.375-0.073-0.315-0.094-0.523h6.906v-2.141zM33.297 5.688c0.146 0 0.266 0.047 0.359 0.141 0.104 0.104 0.156 0.229 0.156 0.375v23.484c0 0.135-0.052 0.255-0.156 0.359-0.094 0.115-0.214 0.172-0.359 0.172h-35.078c-0.135 0-0.26-0.057-0.375-0.172-0.094-0.115-0.135-0.234-0.125-0.359v-23.484c0-0.104 0.042-0.229 0.125-0.375 0.104-0.094 0.229-0.141 0.375-0.141h35.078z',
2672 startsWith: 'M6.109 20.688c0 0.813-0.219 1.474-0.656 1.984-0.448 0.531-1.010 0.786-1.688 0.766-0.51 0-0.896-0.141-1.156-0.422-0.302-0.292-0.443-0.667-0.422-1.125 0-0.615 0.151-1.042 0.453-1.281 0.177-0.135 0.378-0.245 0.602-0.328s0.497-0.146 0.82-0.188l2.047-0.313v0.906zM8.203 18.063c0-2.688-1.219-4.031-3.656-4.031-1.333 0-2.51 0.339-3.531 1.016v2.141c0.917-0.885 1.948-1.328 3.094-1.328 1.333 0 2 0.766 2 2.297l-2.891 0.453c-2.115 0.333-3.161 1.516-3.141 3.547 0 0.958 0.266 1.724 0.797 2.297 0.542 0.573 1.292 0.859 2.25 0.859 1.292 0 2.26-0.641 2.906-1.922v1.688h2.172v-7.016zM14.703 16.906c0.479-0.604 1.109-0.906 1.891-0.906 0.76 0 1.344 0.297 1.75 0.891 0.438 0.615 0.656 1.443 0.656 2.484 0 1.219-0.229 2.198-0.688 2.938-0.469 0.719-1.109 1.078-1.922 1.078-0.719 0-1.286-0.281-1.703-0.844-0.448-0.542-0.672-1.208-0.672-2v-1.313c-0.010-0.938 0.219-1.714 0.688-2.328zM16.906 25.313c1.365 0 2.422-0.542 3.172-1.625 0.771-1.115 1.156-2.563 1.156-4.344 0-1.604-0.339-2.885-1.016-3.844-0.698-0.979-1.661-1.469-2.891-1.469-1.438 0-2.531 0.719-3.281 2.156v-7.078h-2.188v15.969h2.172v-1.563c0.667 1.198 1.625 1.797 2.875 1.797zM31.375 24.563c-0.75 0.5-1.672 0.75-2.766 0.75-1.427 0-2.583-0.505-3.469-1.516-0.885-0.969-1.318-2.26-1.297-3.875 0-1.74 0.464-3.161 1.391-4.266 0.927-1.063 2.198-1.604 3.813-1.625 0.844 0 1.62 0.172 2.328 0.516v2.25c-0.688-0.563-1.406-0.828-2.156-0.797-0.927 0-1.688 0.349-2.281 1.047-0.583 0.698-0.875 1.609-0.875 2.734 0 1.094 0.281 1.969 0.844 2.625 0.542 0.656 1.286 0.984 2.234 0.984 0.781 0 1.526-0.323 2.234-0.969v2.141zM22.172 5.844c0.115 0 0.224 0.052 0.328 0.156 0.094 0.125 0.141 0.25 0.141 0.375v23.844c0 0.156-0.047 0.286-0.141 0.391-0.115 0.094-0.224 0.141-0.328 0.141h-23.469c-0.125 0-0.24-0.047-0.344-0.141-0.094-0.104-0.141-0.234-0.141-0.391v-23.844c0-0.125 0.047-0.25 0.141-0.375 0.104-0.104 0.219-0.156 0.344-0.156h23.469z',
2673 endsWith: 'M6.234 19.344l-2.047 0.313c-0.625 0.083-1.104 0.26-1.438 0.531-0.302 0.24-0.453 0.651-0.453 1.234 0 0.469 0.141 0.852 0.422 1.148s0.672 0.435 1.172 0.414c0.677 0 1.234-0.25 1.672-0.75 0.448-0.51 0.672-1.167 0.672-1.969v-0.922zM8.359 24.578h-2.141v-1.656c-0.667 1.26-1.656 1.891-2.969 1.891-0.938 0-1.698-0.276-2.281-0.828-0.542-0.573-0.813-1.328-0.813-2.266 0-2.021 1.063-3.188 3.188-3.5l2.891-0.484c0-1.51-0.661-2.266-1.984-2.266-1.167 0-2.214 0.443-3.141 1.328v-2.125c1.042-0.677 2.224-1.016 3.547-1.016 2.469 0 3.703 1.333 3.703 4v6.922zM14.906 16.516c0.49-0.615 1.13-0.922 1.922-0.922 0.76 0 1.339 0.297 1.734 0.891 0.438 0.615 0.656 1.438 0.656 2.469 0 1.208-0.229 2.182-0.688 2.922-0.469 0.698-1.115 1.047-1.938 1.047-0.708 0-1.276-0.276-1.703-0.828-0.458-0.552-0.688-1.214-0.688-1.984v-1.281c-0.010-0.948 0.224-1.719 0.703-2.313zM17.125 24.813c1.354 0 2.417-0.531 3.188-1.594 0.781-1.073 1.172-2.505 1.172-4.297 0-1.604-0.349-2.87-1.047-3.797-0.698-0.979-1.661-1.469-2.891-1.469-1.438 0-2.542 0.714-3.313 2.141v-7h-2.203v15.781h2.188v-1.531c0.677 1.177 1.646 1.766 2.906 1.766zM31.688 21.969c-0.698 0.635-1.453 0.953-2.266 0.953-0.958 0-1.703-0.323-2.234-0.969-0.563-0.667-0.849-1.536-0.859-2.609 0-1.115 0.297-2.016 0.891-2.703 0.594-0.698 1.359-1.047 2.297-1.047 0.76 0 1.484 0.266 2.172 0.797v-2.219c-0.708-0.344-1.49-0.516-2.344-0.516-1.625 0-2.906 0.536-3.844 1.609-0.938 1.083-1.406 2.495-1.406 4.234 0 1.594 0.438 2.875 1.313 3.844 0.885 0.979 2.052 1.469 3.5 1.469 1.083 0 2.010-0.245 2.781-0.734v-2.109zM33.188 5.563c0.104 0 0.219 0.047 0.344 0.141 0.094 0.146 0.141 0.276 0.141 0.391v23.578c0 0.146-0.047 0.281-0.141 0.406-0.125 0.094-0.24 0.141-0.344 0.141h-23.625c-0.125 0-0.24-0.047-0.344-0.141-0.094-0.135-0.135-0.271-0.125-0.406v-23.578c0-0.115 0.042-0.245 0.125-0.391 0.094-0.094 0.208-0.141 0.344-0.141h23.625z',
2674 equal: 'M29.438 11.797v2.75h-26.922v-2.75h26.922zM29.438 17.406v2.75h-26.922v-2.75h26.922z',
2675 notEqual: 'M16.906 11.797l3.016-6.547 2.094 1-2.547 5.547h9.969v2.75h-11.234l-1.328 2.859h12.563v2.75h-13.828l-2.875 6.281-2.094-0.984 2.438-5.297h-10.563v-2.75h11.828l1.297-2.859h-13.125v-2.75h14.391z',
2676 greaterThan: 'M24.125 16.047l-14.906 8.625-1.375-2.375 10.781-6.25-10.781-6.234 1.375-2.375z',
2677 greaterThanOrEqual: 'M23.031 14.328l-14.906 8.625-1.375-2.375 10.797-6.25-10.797-6.234 1.375-2.375zM23.828 15.641l1.375 2.391-14.938 8.609-1.375-2.375z',
2678 lessThan: 'M22.75 7.438l1.375 2.375-10.781 6.234 10.781 6.25-1.375 2.375-14.906-8.609z',
2679 lessThanOrEqual: 'M23.828 5.719l1.375 2.375-10.813 6.234 10.813 6.25-1.375 2.375-14.922-8.609zM23.047 24.266l-1.375 2.375-14.922-8.609 1.375-2.391z'
2680};
2681var Icon$1 = /*#__PURE__*/memo(function (_ref) {
2682 var type = _ref.type,
2683 restProps = _objectWithoutProperties(_ref, _excluded$D);
2684
2685 var path = AVAILABLE_PATHS[type];
2686 return path ? /*#__PURE__*/createElement(SvgIcon, _extends({
2687 viewBox: "0 0 32 32",
2688 fontSize: "small"
2689 }, restProps), /*#__PURE__*/createElement("path", {
2690 d: path
2691 })) : /*#__PURE__*/createElement(SearchIcon, restProps);
2692});
2693process.env.NODE_ENV !== "production" ? Icon$1.propTypes = {
2694 type: PropTypes.string
2695} : void 0;
2696Icon$1.defaultProps = {
2697 type: undefined
2698};
2699
2700var TableFilterRow = withComponents({
2701 Row: TableRow,
2702 Cell: TableFilterCell,
2703 Editor: Editor,
2704 FilterSelector: FilterSelector,
2705 Icon: Icon$1,
2706 ToggleButton: ToggleButton$1
2707})(TableFilterRow$1);
2708TableFilterRow.ROW_TYPE = TableFilterRow$1.ROW_TYPE;
2709
2710var _excluded$E = ["children", "forwardedRef"];
2711var PREFIX$v = 'ResizingControl';
2712var classes$v = {
2713 resizeHandle: "".concat(PREFIX$v, "-resizeHandle"),
2714 resizeHandleLine: "".concat(PREFIX$v, "-resizeHandleLine"),
2715 resizeHandleFirstLine: "".concat(PREFIX$v, "-resizeHandleFirstLine"),
2716 resizeHandleSecondLine: "".concat(PREFIX$v, "-resizeHandleSecondLine"),
2717 resizeHandleLineActive: "".concat(PREFIX$v, "-resizeHandleLineActive")
2718};
2719var StyledDiv$a = styled('div')(function (_ref) {
2720 var _ref2;
2721
2722 var theme = _ref.theme;
2723 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$v.resizeHandle), {
2724 position: 'absolute',
2725 userSelect: 'none',
2726 MozUserSelect: 'none',
2727 WebkitUserSelect: 'none',
2728 width: theme.spacing(2),
2729 top: 0,
2730 right: theme.spacing(-1),
2731 height: '100%',
2732 cursor: 'col-resize',
2733 zIndex: 100
2734 }), _defineProperty(_ref2, "&.".concat(classes$v.resizeHandleLine), {
2735 position: 'absolute',
2736 backgroundColor: theme.palette.primary.light,
2737 height: '50%',
2738 width: '1px',
2739 top: '25%',
2740 transition: 'all linear 100ms'
2741 }), _defineProperty(_ref2, "&.".concat(classes$v.resizeHandleFirstLine), {
2742 left: "calc(".concat(theme.spacing(1), " - 1px)")
2743 }), _defineProperty(_ref2, "&.".concat(classes$v.resizeHandleSecondLine), {
2744 left: "calc(".concat(theme.spacing(1), " + 1px)")
2745 }), _defineProperty(_ref2, "&.".concat(classes$v.resizeHandleLineActive), {
2746 left: theme.spacing(1),
2747 opacity: 1,
2748 backgroundColor: theme.palette.primary.light,
2749 height: 'calc(100% - 4px)',
2750 top: '2px'
2751 }), _ref2;
2752});
2753
2754var ResizeHandle = function ResizeHandle(_ref3) {
2755 var children = _ref3.children,
2756 forwardedRef = _ref3.forwardedRef,
2757 restProps = _objectWithoutProperties(_ref3, _excluded$E);
2758
2759 return /*#__PURE__*/createElement(StyledDiv$a, _extends({
2760 ref: forwardedRef
2761 }, restProps), children);
2762};
2763
2764process.env.NODE_ENV !== "production" ? ResizeHandle.propTypes = {
2765 children: PropTypes.node,
2766 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
2767} : void 0;
2768ResizeHandle.defaultProps = {
2769 children: undefined,
2770 forwardedRef: undefined
2771};
2772var ResizingControl = /*#__PURE__*/function (_React$PureComponent) {
2773 _inherits(ResizingControl, _React$PureComponent);
2774
2775 var _super = _createSuper(ResizingControl);
2776
2777 function ResizingControl(props) {
2778 var _this;
2779
2780 _classCallCheck(this, ResizingControl);
2781
2782 _this = _super.call(this, props);
2783 _this.state = {
2784 resizing: false
2785 };
2786
2787 _this.onResizeStart = function (_ref4) {
2788 var x = _ref4.x;
2789 _this.resizeStartingX = x;
2790
2791 _this.setState({
2792 resizing: true
2793 });
2794 };
2795
2796 _this.onResizeUpdate = function (_ref5) {
2797 var x = _ref5.x;
2798 var onWidthDraft = _this.props.onWidthDraft;
2799
2800 if (x >= 0) {
2801 onWidthDraft({
2802 shift: x - _this.resizeStartingX
2803 });
2804 }
2805 };
2806
2807 _this.onResizeEnd = function (_ref6) {
2808 var x = _ref6.x;
2809 var _this$props = _this.props,
2810 onWidthChange = _this$props.onWidthChange,
2811 onWidthDraftCancel = _this$props.onWidthDraftCancel;
2812 onWidthDraftCancel();
2813 onWidthChange({
2814 shift: x - _this.resizeStartingX
2815 });
2816
2817 _this.setState({
2818 resizing: false
2819 });
2820 };
2821
2822 return _this;
2823 }
2824
2825 _createClass(ResizingControl, [{
2826 key: "render",
2827 value: function render() {
2828 var _classNames, _classNames2, _classNames3;
2829
2830 var _this$props2 = this.props,
2831 resizeHandleOpacityClass = _this$props2.resizeHandleOpacityClass,
2832 resizeLastHandleClass = _this$props2.resizeLastHandleClass;
2833 var resizing = this.state.resizing;
2834 return /*#__PURE__*/createElement(Draggable, {
2835 onStart: this.onResizeStart,
2836 onUpdate: this.onResizeUpdate,
2837 onEnd: this.onResizeEnd
2838 }, /*#__PURE__*/createElement(ResizeHandle, {
2839 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$v.resizeHandle, true), _defineProperty(_classNames, resizeLastHandleClass, true), _classNames))
2840 }, /*#__PURE__*/createElement(StyledDiv$a, {
2841 className: classNames((_classNames2 = {}, _defineProperty(_classNames2, resizeHandleOpacityClass, true), _defineProperty(_classNames2, classes$v.resizeHandleLine, true), _defineProperty(_classNames2, classes$v.resizeHandleFirstLine, true), _defineProperty(_classNames2, classes$v.resizeHandleLineActive, resizing), _classNames2))
2842 }), /*#__PURE__*/createElement(StyledDiv$a, {
2843 className: classNames((_classNames3 = {}, _defineProperty(_classNames3, resizeHandleOpacityClass, true), _defineProperty(_classNames3, classes$v.resizeHandleLine, true), _defineProperty(_classNames3, classes$v.resizeHandleSecondLine, true), _defineProperty(_classNames3, classes$v.resizeHandleLineActive, resizing), _classNames3))
2844 })));
2845 }
2846 }]);
2847
2848 return ResizingControl;
2849}(PureComponent);
2850process.env.NODE_ENV !== "production" ? ResizingControl.propTypes = {
2851 onWidthChange: PropTypes.func.isRequired,
2852 onWidthDraft: PropTypes.func.isRequired,
2853 onWidthDraftCancel: PropTypes.func.isRequired,
2854 resizeLastHandleClass: PropTypes.string.isRequired,
2855 resizeHandleOpacityClass: PropTypes.string.isRequired
2856} : void 0;
2857
2858var _excluded$F = ["style", "column", "tableColumn", "draggingEnabled", "resizingEnabled", "dragging", "onWidthChange", "onWidthDraft", "onWidthDraftCancel", "getCellWidth", "tableRow", "className", "children", "forwardedRef"];
2859var PREFIX$w = 'CellLayout';
2860var classes$w = {
2861 cell: "".concat(PREFIX$w, "-cell"),
2862 cellRight: "".concat(PREFIX$w, "-cellRight"),
2863 cellCenter: "".concat(PREFIX$w, "-cellCenter"),
2864 cellNoWrap: "".concat(PREFIX$w, "-cellNoWrap"),
2865 cellNoUserSelect: "".concat(PREFIX$w, "-cellNoUserSelect"),
2866 cellDraggable: "".concat(PREFIX$w, "-cellDraggable"),
2867 cellDimmed: "".concat(PREFIX$w, "-cellDimmed"),
2868 container: "".concat(PREFIX$w, "-container"),
2869 resizeHandle: "".concat(PREFIX$w, "-resizeHandle"),
2870 resizeHandleLine: "".concat(PREFIX$w, "-resizeHandleLine")
2871};
2872var StyledTableCell$a = styled(TableCell$1)(function (_ref) {
2873 var _mediaPointerFin, _ref2;
2874
2875 var theme = _ref.theme;
2876 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$w.cell), {
2877 outline: 'none',
2878 position: 'relative',
2879 overflow: 'visible',
2880 paddingRight: theme.spacing(1),
2881 paddingLeft: theme.spacing(1),
2882 '&:first-of-type': {
2883 paddingLeft: theme.spacing(3)
2884 },
2885 '&:hover': _defineProperty({}, "& .".concat(classes$w.resizeHandleLine), {
2886 opacity: 1
2887 }),
2888 '&:nth-last-of-type(2)': _defineProperty({}, "& .".concat(classes$w.resizeHandle), {
2889 width: theme.spacing(1),
2890 right: '1px'
2891 })
2892 }), _defineProperty(_ref2, "&.".concat(classes$w.cellRight), {
2893 paddingLeft: theme.spacing(1),
2894 paddingRight: theme.spacing(1),
2895 textAlign: 'right'
2896 }), _defineProperty(_ref2, "&.".concat(classes$w.cellCenter), {
2897 textAlign: 'center'
2898 }), _defineProperty(_ref2, "&.".concat(classes$w.cellNoWrap), {
2899 whiteSpace: 'nowrap'
2900 }), _defineProperty(_ref2, "&.".concat(classes$w.cellNoUserSelect), {
2901 userSelect: 'none',
2902 MozUserSelect: 'none',
2903 WebkitUserSelect: 'none'
2904 }), _defineProperty(_ref2, "&.".concat(classes$w.cellDraggable), {
2905 cursor: 'pointer'
2906 }), _defineProperty(_ref2, "&.".concat(classes$w.cellDimmed), {
2907 '&:after': {
2908 content: '""',
2909 position: 'absolute',
2910 top: 0,
2911 right: 0,
2912 bottom: 0,
2913 left: 0,
2914 backgroundColor: theme.palette.background.paper,
2915 opacity: 0.7,
2916 pointerEvents: 'none',
2917 zIndex: 400
2918 }
2919 }), _defineProperty(_ref2, "& .".concat(classes$w.container), {
2920 display: 'flex',
2921 flexDirection: 'row',
2922 alignItems: 'center'
2923 }), _defineProperty(_ref2, "& .".concat(classes$w.resizeHandle), {}), _defineProperty(_ref2, "& .".concat(classes$w.resizeHandleLine), {
2924 opacity: 0
2925 }), _defineProperty(_ref2, '@media (pointer: fine)', (_mediaPointerFin = {}, _defineProperty(_mediaPointerFin, "& .".concat(classes$w.resizeHandleLine), {
2926 opacity: 0
2927 }), _defineProperty(_mediaPointerFin, "& .".concat(classes$w.resizeHandle), {
2928 '&:hover': _defineProperty({}, "& .".concat(classes$w.resizeHandleLine), {
2929 opacity: 1
2930 })
2931 }), _mediaPointerFin)), _ref2;
2932});
2933var CellLayout = function CellLayout(_ref3) {
2934 var _classNames;
2935
2936 var style = _ref3.style,
2937 column = _ref3.column,
2938 tableColumn = _ref3.tableColumn,
2939 draggingEnabled = _ref3.draggingEnabled,
2940 resizingEnabled = _ref3.resizingEnabled,
2941 dragging = _ref3.dragging,
2942 onWidthChange = _ref3.onWidthChange,
2943 onWidthDraft = _ref3.onWidthDraft,
2944 onWidthDraftCancel = _ref3.onWidthDraftCancel,
2945 getCellWidth = _ref3.getCellWidth,
2946 tableRow = _ref3.tableRow,
2947 className = _ref3.className,
2948 children = _ref3.children,
2949 forwardedRef = _ref3.forwardedRef,
2950 restProps = _objectWithoutProperties(_ref3, _excluded$F);
2951
2952 var cellRef = useRef();
2953 var getWidthGetter = useCallback(function () {
2954 var node = cellRef.current;
2955 return node && getCellWidth(function () {
2956 var _node$getBoundingClie = node.getBoundingClientRect(),
2957 width = _node$getBoundingClie.width;
2958
2959 return width;
2960 });
2961 });
2962 useEffect(function () {
2963 getWidthGetter();
2964 }, []);
2965 var align = tableColumn && tableColumn.align || 'left';
2966 return /*#__PURE__*/createElement(StyledTableCell$a, _extends({
2967 style: style,
2968 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$w.cell, true), _defineProperty(_classNames, classes$w.cellRight, align === 'right'), _defineProperty(_classNames, classes$w.cellCenter, align === 'center'), _defineProperty(_classNames, classes$w.cellNoUserSelect, draggingEnabled), _defineProperty(_classNames, classes$w.cellDraggable, draggingEnabled), _defineProperty(_classNames, classes$w.cellDimmed, dragging || tableColumn && tableColumn.draft), _defineProperty(_classNames, classes$w.cellNoWrap, !(tableColumn && tableColumn.wordWrapEnabled)), _classNames), className),
2969 ref: function ref(node) {
2970 cellRef.current = node;
2971
2972 if (typeof forwardedRef === 'function') {
2973 forwardedRef(node);
2974 } else if (forwardedRef) {
2975 // eslint-disable-next-line no-param-reassign
2976 forwardedRef.current = node;
2977 }
2978 }
2979 }, restProps), /*#__PURE__*/createElement("div", {
2980 className: classes$w.container
2981 }, children), resizingEnabled && /*#__PURE__*/createElement(ResizingControl, {
2982 onWidthChange: onWidthChange,
2983 onWidthDraft: onWidthDraft,
2984 onWidthDraftCancel: onWidthDraftCancel,
2985 resizeLastHandleClass: classes$w.resizeHandle,
2986 resizeHandleOpacityClass: classes$w.resizeHandleLine
2987 }));
2988};
2989process.env.NODE_ENV !== "production" ? CellLayout.propTypes = {
2990 tableColumn: PropTypes.object,
2991 tableRow: PropTypes.object,
2992 column: PropTypes.object,
2993 style: PropTypes.object,
2994 dragging: PropTypes.bool,
2995 draggingEnabled: PropTypes.bool,
2996 resizingEnabled: PropTypes.bool,
2997 onWidthChange: PropTypes.func,
2998 onWidthDraft: PropTypes.func,
2999 onWidthDraftCancel: PropTypes.func,
3000 className: PropTypes.string,
3001 children: PropTypes.node,
3002 getCellWidth: PropTypes.func,
3003 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
3004} : void 0;
3005CellLayout.defaultProps = {
3006 column: undefined,
3007 tableColumn: undefined,
3008 tableRow: undefined,
3009 style: null,
3010 dragging: false,
3011 draggingEnabled: false,
3012 resizingEnabled: false,
3013 onWidthChange: undefined,
3014 onWidthDraft: undefined,
3015 onWidthDraftCancel: undefined,
3016 className: undefined,
3017 children: undefined,
3018 getCellWidth: function getCellWidth() {},
3019 forwardedRef: undefined
3020};
3021
3022var TableHeaderCell = /*#__PURE__*/function (_React$PureComponent) {
3023 _inherits(TableHeaderCell, _React$PureComponent);
3024
3025 var _super = _createSuper(TableHeaderCell);
3026
3027 function TableHeaderCell(props) {
3028 var _this;
3029
3030 _classCallCheck(this, TableHeaderCell);
3031
3032 _this = _super.call(this, props);
3033 _this.state = {
3034 dragging: false
3035 };
3036 _this.dragRef = /*#__PURE__*/createRef();
3037
3038 _this.onDragStart = function () {
3039 _this.setState({
3040 dragging: true
3041 });
3042 };
3043
3044 _this.onDragEnd = function () {
3045 if (_this.dragRef.current) {
3046 _this.setState({
3047 dragging: false
3048 });
3049 }
3050 };
3051
3052 return _this;
3053 }
3054
3055 _createClass(TableHeaderCell, [{
3056 key: "render",
3057 value: function render() {
3058 var _this$props = this.props,
3059 column = _this$props.column,
3060 draggingEnabled = _this$props.draggingEnabled;
3061 var dragging = this.state.dragging;
3062 return draggingEnabled ? /*#__PURE__*/createElement(DragSource, {
3063 ref: this.dragRef,
3064 payload: [{
3065 type: 'column',
3066 columnName: column.name
3067 }],
3068 onStart: this.onDragStart,
3069 onEnd: this.onDragEnd
3070 }, /*#__PURE__*/createElement(CellLayout, _extends({}, this.props, {
3071 dragging: dragging
3072 }))) : /*#__PURE__*/createElement(CellLayout, _extends({}, this.props, {
3073 dragging: dragging
3074 }));
3075 }
3076 }]);
3077
3078 return TableHeaderCell;
3079}(PureComponent);
3080process.env.NODE_ENV !== "production" ? TableHeaderCell.propTypes = {
3081 tableColumn: PropTypes.object,
3082 tableRow: PropTypes.object,
3083 column: PropTypes.object,
3084 style: PropTypes.object,
3085 draggingEnabled: PropTypes.bool,
3086 resizingEnabled: PropTypes.bool,
3087 onWidthChange: PropTypes.func,
3088 onWidthDraft: PropTypes.func,
3089 onWidthDraftCancel: PropTypes.func,
3090 className: PropTypes.string,
3091 children: PropTypes.node,
3092 getCellWidth: PropTypes.func
3093} : void 0;
3094TableHeaderCell.defaultProps = {
3095 column: undefined,
3096 tableColumn: undefined,
3097 tableRow: undefined,
3098 style: null,
3099 draggingEnabled: false,
3100 resizingEnabled: false,
3101 onWidthChange: undefined,
3102 onWidthDraft: undefined,
3103 onWidthDraftCancel: undefined,
3104 className: undefined,
3105 children: undefined,
3106 getCellWidth: function getCellWidth() {}
3107};
3108
3109var _excluded$G = ["column", "align", "direction", "children", "onSort", "getMessage", "disabled", "className"];
3110var ENTER_KEY_CODE$1 = 13;
3111var SPACE_KEY_CODE$1 = 32;
3112var PREFIX$x = 'ResizingControl';
3113var classes$x = {
3114 root: "".concat(PREFIX$x, "-root"),
3115 tooltipRoot: "".concat(PREFIX$x, "-tooltipRoot"),
3116 sortLabelRoot: "".concat(PREFIX$x, "-sortLabelRoot"),
3117 sortLabelRight: "".concat(PREFIX$x, "-sortLabelRight"),
3118 sortLabelActive: "".concat(PREFIX$x, "-sortLabelActive")
3119};
3120var StyledDiv$b = styled('div')(function () {
3121 var _ref;
3122
3123 return _ref = {}, _defineProperty(_ref, "&.".concat(classes$x.root), {
3124 width: '100%',
3125 userSelect: 'none',
3126 MozUserSelect: 'none',
3127 WebkitUserSelect: 'none'
3128 }), _defineProperty(_ref, "& .".concat(classes$x.sortLabelRoot), {
3129 maxWidth: '100%'
3130 }), _defineProperty(_ref, "& .".concat(classes$x.sortLabelRight), {
3131 flexDirection: 'row-reverse'
3132 }), _defineProperty(_ref, "& .".concat(classes$x.sortLabelActive), {
3133 color: 'inherit'
3134 }), _defineProperty(_ref, "& .".concat(classes$x.tooltipRoot), {
3135 display: 'block',
3136 whiteSpace: 'nowrap',
3137 overflow: 'hidden',
3138 textOverflow: 'ellipsis'
3139 }), _ref;
3140});
3141
3142var _onClick = function onClick(e, onSort) {
3143 var isActionKeyDown = e.keyCode === ENTER_KEY_CODE$1 || e.keyCode === SPACE_KEY_CODE$1;
3144 var isMouseClick = e.keyCode === undefined;
3145 var cancelSortingRelatedKey = e.metaKey || e.ctrlKey;
3146 var direction = (isMouseClick || isActionKeyDown) && cancelSortingRelatedKey ? null : undefined;
3147 var keepOther = e.shiftKey || cancelSortingRelatedKey;
3148 e.preventDefault();
3149 onSort({
3150 direction: direction,
3151 keepOther: keepOther
3152 });
3153};
3154
3155var SortLabel = function SortLabel(_ref2) {
3156 var _classNames;
3157
3158 var column = _ref2.column,
3159 align = _ref2.align,
3160 direction = _ref2.direction,
3161 children = _ref2.children,
3162 onSort = _ref2.onSort,
3163 getMessage = _ref2.getMessage,
3164 disabled = _ref2.disabled,
3165 className = _ref2.className,
3166 restProps = _objectWithoutProperties(_ref2, _excluded$G);
3167
3168 return /*#__PURE__*/createElement(StyledDiv$b, _extends({
3169 className: classNames(classes$x.root, className)
3170 }, restProps), /*#__PURE__*/createElement(Tooltip, {
3171 title: getMessage('sortingHint'),
3172 placement: align === 'right' ? 'bottom-end' : 'bottom-start',
3173 enterDelay: 300,
3174 classes: {
3175 tooltip: classes$x.tooltipRoot
3176 }
3177 }, /*#__PURE__*/createElement(TableSortLabel, {
3178 active: !!direction,
3179 direction: direction === null ? undefined : direction,
3180 onClick: function onClick(e) {
3181 return _onClick(e, onSort);
3182 },
3183 disabled: disabled,
3184 classes: {
3185 root: classNames((_classNames = {}, _defineProperty(_classNames, classes$x.sortLabelRoot, true), _defineProperty(_classNames, classes$x.sortLabelRight, align === 'right'), _classNames)),
3186 active: classes$x.sortLabelActive
3187 }
3188 }, children)));
3189};
3190process.env.NODE_ENV !== "production" ? SortLabel.propTypes = {
3191 column: PropTypes.object,
3192 align: PropTypes.string,
3193 direction: PropTypes.oneOf(['asc', 'desc', null]),
3194 children: PropTypes.node,
3195 onSort: PropTypes.func.isRequired,
3196 getMessage: PropTypes.func.isRequired,
3197 disabled: PropTypes.bool,
3198 className: PropTypes.string
3199} : void 0;
3200SortLabel.defaultProps = {
3201 column: undefined,
3202 direction: undefined,
3203 disabled: false,
3204 align: 'left',
3205 className: null,
3206 children: undefined
3207};
3208
3209var _excluded$H = ["disabled", "onGroup", "className"];
3210var PREFIX$y = 'GroupButton';
3211var classes$y = {
3212 root: "".concat(PREFIX$y, "-root"),
3213 disabled: "".concat(PREFIX$y, "-disabled")
3214};
3215var StyledDiv$c = styled('div')(function (_ref) {
3216 var _ref2;
3217
3218 var theme = _ref.theme;
3219 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$y.root), {
3220 paddingLeft: 0,
3221 height: theme.spacing(3),
3222 cursor: 'pointer'
3223 }), _defineProperty(_ref2, "&.".concat(classes$y.disabled), {
3224 cursor: 'default',
3225 opacity: 0.3
3226 }), _ref2;
3227});
3228var GroupButton = function GroupButton(_ref3) {
3229 var _classNames;
3230
3231 var disabled = _ref3.disabled,
3232 onGroup = _ref3.onGroup,
3233 className = _ref3.className,
3234 restProps = _objectWithoutProperties(_ref3, _excluded$H);
3235
3236 return /*#__PURE__*/createElement(StyledDiv$c, _extends({
3237 onClick: function onClick(e) {
3238 if (disabled) return;
3239 e.stopPropagation();
3240 onGroup(e);
3241 },
3242 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$y.root, true), _defineProperty(_classNames, classes$y.disabled, disabled), _classNames), className)
3243 }, restProps), /*#__PURE__*/createElement(List$1, null));
3244};
3245process.env.NODE_ENV !== "production" ? GroupButton.propTypes = {
3246 onGroup: PropTypes.func.isRequired,
3247 disabled: PropTypes.bool,
3248 className: PropTypes.string
3249} : void 0;
3250GroupButton.defaultProps = {
3251 disabled: false,
3252 className: undefined
3253};
3254
3255var _excluded$I = ["children", "className"];
3256var PREFIX$z = 'Title';
3257var classes$z = {
3258 title: "".concat(PREFIX$z, "-title")
3259};
3260var StyledSpan$2 = styled('span')(function () {
3261 return _defineProperty({}, "&.".concat(classes$z.title), {
3262 overflow: 'hidden',
3263 textOverflow: 'ellipsis'
3264 });
3265});
3266var Title = function Title(_ref2) {
3267 var children = _ref2.children,
3268 className = _ref2.className,
3269 restProps = _objectWithoutProperties(_ref2, _excluded$I);
3270
3271 return /*#__PURE__*/createElement(StyledSpan$2, _extends({
3272 className: classNames(classes$z.title, className)
3273 }, restProps), children);
3274};
3275process.env.NODE_ENV !== "production" ? Title.propTypes = {
3276 children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
3277 className: PropTypes.string
3278} : void 0;
3279Title.defaultProps = {
3280 className: null,
3281 children: undefined
3282};
3283
3284var _excluded$J = ["column", "align", "children", "className"];
3285var PREFIX$A = 'Content';
3286var classes$A = {
3287 content: "".concat(PREFIX$A, "-content"),
3288 alignCenter: "".concat(PREFIX$A, "-alignCenter"),
3289 alignRight: "".concat(PREFIX$A, "-alignRight")
3290};
3291var StyledDiv$d = styled('div')(function () {
3292 var _ref;
3293
3294 return _ref = {}, _defineProperty(_ref, "&.".concat(classes$A.content), {
3295 width: '100%',
3296 minWidth: 0,
3297 display: 'flex',
3298 flexDirection: 'row',
3299 alignItems: 'center',
3300 justifyContent: 'flex-start'
3301 }), _defineProperty(_ref, "&.".concat(classes$A.alignCenter), {
3302 justifyContent: 'center'
3303 }), _defineProperty(_ref, "&.".concat(classes$A.alignRight), {
3304 justifyContent: 'flex-end'
3305 }), _ref;
3306});
3307var Content$1 = function Content(_ref2) {
3308 var _classNames;
3309
3310 var column = _ref2.column,
3311 align = _ref2.align,
3312 children = _ref2.children,
3313 className = _ref2.className,
3314 restProps = _objectWithoutProperties(_ref2, _excluded$J);
3315
3316 return /*#__PURE__*/createElement(StyledDiv$d, _extends({
3317 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$A.content, true), _defineProperty(_classNames, classes$A.alignCenter, align === 'center'), _defineProperty(_classNames, classes$A.alignRight, align === 'right'), _classNames), className)
3318 }, restProps), children);
3319};
3320process.env.NODE_ENV !== "production" ? Content$1.propTypes = {
3321 column: PropTypes.object,
3322 align: PropTypes.string,
3323 children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
3324 className: PropTypes.string
3325} : void 0;
3326Content$1.defaultProps = {
3327 column: undefined,
3328 align: 'left',
3329 className: null,
3330 children: undefined
3331};
3332
3333var _excluded$K = ["messages"];
3334var defaultMessages$2 = {
3335 sortingHint: 'Sort'
3336};
3337var TableHeaderRowWithMessages = withPatchedProps(function (_ref) {
3338 var messages = _ref.messages,
3339 restProps = _objectWithoutProperties(_ref, _excluded$K);
3340
3341 return _objectSpread2({
3342 messages: _objectSpread2(_objectSpread2({}, defaultMessages$2), messages)
3343 }, restProps);
3344})(TableHeaderRow$1);
3345TableHeaderRowWithMessages.propTypes = {
3346 messages: PropTypes.shape({
3347 sortingHint: PropTypes.string
3348 })
3349};
3350TableHeaderRowWithMessages.defaultProps = {
3351 messages: {}
3352};
3353TableHeaderRowWithMessages.components = TableHeaderRow$1.components;
3354var TableHeaderRow = withComponents({
3355 Cell: TableHeaderCell,
3356 Row: TableRow,
3357 Content: Content$1,
3358 SortLabel: SortLabel,
3359 Title: Title,
3360 GroupButton: GroupButton
3361})(TableHeaderRowWithMessages);
3362TableHeaderRow.ROW_TYPE = TableHeaderRow$1.ROW_TYPE;
3363
3364var _excluded$L = ["column", "value", "children", "tableRow", "tableColumn", "row", "className", "beforeBorder", "forwardedRef"];
3365var PREFIX$B = 'Cell';
3366var classes$B = {
3367 cell: "".concat(PREFIX$B, "-cell"),
3368 beforeBorder: "".concat(PREFIX$B, "-beforeBorder")
3369};
3370var StyledTableCell$b = styled(TableCell$1)(function (_ref) {
3371 var _ref2;
3372
3373 var theme = _ref.theme;
3374 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$B.cell), {
3375 paddingRight: theme.spacing(1),
3376 paddingLeft: theme.spacing(1),
3377 '&:first-of-type': {
3378 paddingLeft: theme.spacing(3)
3379 },
3380 '&:last-child': {
3381 paddingRight: theme.spacing(3),
3382 borderRight: 0
3383 },
3384 overflow: 'hidden',
3385 textOverflow: 'ellipsis',
3386 whiteSpace: 'nowrap',
3387 borderBottom: getBorder(theme),
3388 borderRight: getBorder(theme)
3389 }), _defineProperty(_ref2, "&.".concat(classes$B.beforeBorder), {
3390 borderLeft: getBorder(theme)
3391 }), _ref2;
3392});
3393var Cell$1 = function Cell(_ref3) {
3394 var _classNames;
3395
3396 var column = _ref3.column,
3397 value = _ref3.value,
3398 children = _ref3.children,
3399 tableRow = _ref3.tableRow,
3400 tableColumn = _ref3.tableColumn,
3401 row = _ref3.row,
3402 className = _ref3.className,
3403 beforeBorder = _ref3.beforeBorder,
3404 forwardedRef = _ref3.forwardedRef,
3405 restProps = _objectWithoutProperties(_ref3, _excluded$L);
3406
3407 return /*#__PURE__*/createElement(StyledTableCell$b, _extends({
3408 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$B.cell, true), _defineProperty(_classNames, classes$B.beforeBorder, beforeBorder), _classNames), className)
3409 }, restProps, {
3410 ref: forwardedRef
3411 }), children);
3412};
3413process.env.NODE_ENV !== "production" ? Cell$1.propTypes = {
3414 value: PropTypes.any,
3415 column: PropTypes.object,
3416 row: PropTypes.any,
3417 children: PropTypes.node,
3418 tableRow: PropTypes.object,
3419 tableColumn: PropTypes.object,
3420 className: PropTypes.string,
3421 beforeBorder: PropTypes.bool,
3422 forwardedRef: PropTypes.func
3423} : void 0;
3424Cell$1.defaultProps = {
3425 value: undefined,
3426 column: undefined,
3427 row: undefined,
3428 children: undefined,
3429 tableRow: undefined,
3430 tableColumn: undefined,
3431 className: undefined,
3432 beforeBorder: false,
3433 forwardedRef: undefined
3434};
3435
3436var _excluded$M = ["component", "className", "beforeBorder"];
3437var PREFIX$C = 'BandedHeaderCell';
3438var classes$C = {
3439 headerCellBorder: "".concat(PREFIX$C, "-headerCellBorder"),
3440 beforeBorder: "".concat(PREFIX$C, "-beforeBorder")
3441};
3442
3443var styles = function styles(_ref) {
3444 var _ref2;
3445
3446 var theme = _ref.theme;
3447 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$C.headerCellBorder), {
3448 borderRight: getBorder(theme),
3449 borderTop: 'none',
3450 '&:last-child': {
3451 borderRight: 0
3452 },
3453 verticalAlign: 'bottom',
3454 paddingBottom: theme.spacing(2)
3455 }), _defineProperty(_ref2, "&.".concat(classes$C.beforeBorder), {
3456 borderLeft: getBorder(theme)
3457 }), _ref2;
3458};
3459
3460var BandedHeaderCellBase = function BandedHeaderCellBase(_ref3) {
3461 var _classNames;
3462
3463 var HeaderCellComponent = _ref3.component,
3464 className = _ref3.className,
3465 beforeBorder = _ref3.beforeBorder,
3466 restProps = _objectWithoutProperties(_ref3, _excluded$M);
3467
3468 return /*#__PURE__*/createElement(HeaderCellComponent, _extends({
3469 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$C.headerCellBorder, true), _defineProperty(_classNames, classes$C.beforeBorder, beforeBorder), _classNames), className)
3470 }, restProps));
3471};
3472
3473process.env.NODE_ENV !== "production" ? BandedHeaderCellBase.propTypes = {
3474 component: PropTypes.func.isRequired,
3475 className: PropTypes.string,
3476 beforeBorder: PropTypes.bool
3477} : void 0;
3478BandedHeaderCellBase.defaultProps = {
3479 className: undefined,
3480 beforeBorder: false
3481};
3482var BandedHeaderCell = styled(BandedHeaderCellBase)(styles);
3483
3484var PREFIX$D = 'InvisibleCell';
3485var classes$D = {
3486 emptyCell: "".concat(PREFIX$D, "-emptyCell")
3487};
3488var StyledTableCell$c = styled(TableCell$1)(function () {
3489 return _defineProperty({}, "&.".concat(classes$D.emptyCell), {
3490 display: 'none'
3491 });
3492});
3493var InvisibleCell = function InvisibleCell() {
3494 return /*#__PURE__*/createElement(StyledTableCell$c, {
3495 className: classes$D.emptyCell
3496 });
3497};
3498
3499var _excluded$N = ["children", "className", "row", "tableRow", "tableColumn", "forwardedRef"];
3500var PREFIX$E = 'Row';
3501var classes$E = {
3502 row: "".concat(PREFIX$E, "-row")
3503};
3504var StyledTableRow$2 = styled(TableRow$1)(function () {
3505 return _defineProperty({}, "&.".concat(classes$E.row), {
3506 height: 'auto'
3507 });
3508});
3509var Row$1 = function Row(_ref2) {
3510 var children = _ref2.children,
3511 className = _ref2.className,
3512 row = _ref2.row,
3513 tableRow = _ref2.tableRow,
3514 tableColumn = _ref2.tableColumn,
3515 forwardedRef = _ref2.forwardedRef,
3516 restProps = _objectWithoutProperties(_ref2, _excluded$N);
3517
3518 return /*#__PURE__*/createElement(StyledTableRow$2, _extends({
3519 className: classNames(classes$E.row, className)
3520 }, restProps), children);
3521};
3522process.env.NODE_ENV !== "production" ? Row$1.propTypes = {
3523 children: PropTypes.node,
3524 row: PropTypes.any,
3525 tableRow: PropTypes.object,
3526 tableColumn: PropTypes.object,
3527 className: PropTypes.string,
3528 forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
3529} : void 0;
3530Row$1.defaultProps = {
3531 children: undefined,
3532 row: undefined,
3533 tableRow: undefined,
3534 tableColumn: undefined,
3535 className: undefined,
3536 forwardedRef: undefined
3537};
3538
3539var TableBandHeader = withComponents({
3540 Cell: Cell$1,
3541 Row: Row$1,
3542 BandedHeaderCell: BandedHeaderCell,
3543 InvisibleCell: InvisibleCell
3544})(TableBandHeader$1);
3545TableBandHeader.ROW_TYPE = TableBandHeader$1.ROW_TYPE;
3546
3547var _excluded$O = ["column", "value", "onValueChange", "style", "children", "row", "tableRow", "tableColumn", "editingEnabled", "className", "autoFocus", "onBlur", "onFocus", "onKeyDown", "forwardedRef"];
3548var PREFIX$F = 'TableEditCell';
3549var classes$F = {
3550 cell: "".concat(PREFIX$F, "-cell"),
3551 inputRoot: "".concat(PREFIX$F, "-inputRoot"),
3552 disabledInput: "".concat(PREFIX$F, "-disabledInput"),
3553 inputRight: "".concat(PREFIX$F, "-inputRight"),
3554 inputCenter: "".concat(PREFIX$F, "-inputCenter")
3555};
3556var StyledTableCell$d = styled(TableCell$1)(function (_ref) {
3557 var theme = _ref.theme;
3558 return _defineProperty({}, "&.".concat(classes$F.cell), {
3559 padding: theme.spacing(1),
3560 // NOTE: without the TableEditColumn first EditCell changes size
3561 // (because first TableCell and EditCell have different paddings)
3562 '&:first-of-type': {
3563 paddingLeft: theme.spacing(3)
3564 }
3565 });
3566});
3567var StyledInput$1 = styled(Input)(function (_ref3) {
3568 var _ref4;
3569
3570 var theme = _ref3.theme;
3571 return _ref4 = {}, _defineProperty(_ref4, "&.".concat(classes$F.inputRoot), {
3572 width: '100%'
3573 }), _defineProperty(_ref4, "&.".concat(classes$F.disabledInput), {
3574 color: theme.palette.action.disabled,
3575 '&:before': {
3576 borderBottom: '1px dotted',
3577 borderBottomColor: theme.palette.action.disabled
3578 },
3579 '&&:hover:before': {
3580 borderBottom: '1px dotted',
3581 borderBottomColor: theme.palette.action.disabled
3582 },
3583 '&:after': {
3584 borderBottom: '0px'
3585 }
3586 }), _defineProperty(_ref4, "& .".concat(classes$F.inputRight), {
3587 textAlign: 'right'
3588 }), _defineProperty(_ref4, "& .".concat(classes$F.inputCenter), {
3589 textAlign: 'center'
3590 }), _ref4;
3591});
3592var EditCell = function EditCell(_ref5) {
3593 var _classNames, _classNames2;
3594
3595 var column = _ref5.column,
3596 value = _ref5.value,
3597 onValueChange = _ref5.onValueChange,
3598 style = _ref5.style,
3599 children = _ref5.children,
3600 row = _ref5.row,
3601 tableRow = _ref5.tableRow,
3602 tableColumn = _ref5.tableColumn,
3603 editingEnabled = _ref5.editingEnabled,
3604 className = _ref5.className,
3605 autoFocus = _ref5.autoFocus,
3606 onBlur = _ref5.onBlur,
3607 onFocus = _ref5.onFocus,
3608 onKeyDown = _ref5.onKeyDown,
3609 forwardedRef = _ref5.forwardedRef,
3610 restProps = _objectWithoutProperties(_ref5, _excluded$O);
3611
3612 var inputClasses = classNames((_classNames = {}, _defineProperty(_classNames, classes$F.inputRight, tableColumn && tableColumn.align === 'right'), _defineProperty(_classNames, classes$F.inputCenter, tableColumn && tableColumn.align === 'center'), _classNames));
3613 var patchedChildren = children ? /*#__PURE__*/cloneElement(children, {
3614 autoFocus: autoFocus,
3615 onBlur: onBlur,
3616 onFocus: onFocus,
3617 onKeyDown: onKeyDown
3618 }) : children;
3619 return /*#__PURE__*/createElement(StyledTableCell$d, _extends({
3620 className: classNames(classes$F.cell, className),
3621 style: style,
3622 ref: forwardedRef
3623 }, restProps), patchedChildren || /*#__PURE__*/createElement(StyledInput$1, {
3624 className: classNames((_classNames2 = {}, _defineProperty(_classNames2, classes$F.inputRoot, true), _defineProperty(_classNames2, classes$F.disabledInput, !editingEnabled), _classNames2)),
3625 classes: {
3626 input: inputClasses
3627 },
3628 value: value,
3629 readOnly: !editingEnabled,
3630 onChange: function onChange(e) {
3631 return onValueChange(e.target.value);
3632 } // eslint-disable-next-line jsx-a11y/no-autofocus
3633 ,
3634 autoFocus: autoFocus,
3635 onBlur: onBlur,
3636 onFocus: onFocus,
3637 onKeyDown: onKeyDown
3638 }));
3639};
3640process.env.NODE_ENV !== "production" ? EditCell.propTypes = {
3641 column: PropTypes.object,
3642 row: PropTypes.any,
3643 tableRow: PropTypes.object,
3644 tableColumn: PropTypes.object,
3645 value: PropTypes.any,
3646 onValueChange: PropTypes.func,
3647 style: PropTypes.object,
3648 editingEnabled: PropTypes.bool,
3649 children: PropTypes.node,
3650 className: PropTypes.string,
3651 autoFocus: PropTypes.bool,
3652 onBlur: PropTypes.func,
3653 onFocus: PropTypes.func,
3654 onKeyDown: PropTypes.func,
3655 forwardedRef: PropTypes.func
3656} : void 0;
3657EditCell.defaultProps = {
3658 column: undefined,
3659 row: undefined,
3660 tableRow: undefined,
3661 tableColumn: undefined,
3662 value: '',
3663 style: null,
3664 children: undefined,
3665 className: undefined,
3666 editingEnabled: true,
3667 autoFocus: false,
3668 onValueChange: function onValueChange() {},
3669 onBlur: function onBlur() {},
3670 onFocus: function onFocus() {},
3671 onKeyDown: function onKeyDown() {},
3672 forwardedRef: undefined
3673};
3674
3675var TableEditRow = withComponents({
3676 Row: TableRow,
3677 Cell: EditCell
3678})(TableEditRow$1);
3679TableEditRow.ADDED_ROW_TYPE = TableEditRow$1.ADDED_ROW_TYPE;
3680TableEditRow.EDIT_ROW_TYPE = TableEditRow$1.EDIT_ROW_TYPE;
3681
3682var _excluded$P = ["onExecute", "text", "className"],
3683 _excluded2$2 = ["children", "className", "tableRow", "tableColumn", "rowSpan", "forwardedRef"],
3684 _excluded3$1 = ["tableRow", "tableColumn", "row", "children", "className", "forwardedRef"];
3685var PREFIX$G = 'TableEditCommandCell';
3686var classes$G = {
3687 button: "".concat(PREFIX$G, "-button"),
3688 headingCell: "".concat(PREFIX$G, "-headingCell"),
3689 cell: "".concat(PREFIX$G, "-cell"),
3690 alignWithRowSpan: "".concat(PREFIX$G, "-alignWithRowSpan")
3691};
3692var StyledButton$1 = styled(Button)(function (_ref) {
3693 var theme = _ref.theme;
3694 return _defineProperty({}, "&.".concat(classes$G.button), {
3695 padding: theme.spacing(1),
3696 minWidth: 40
3697 });
3698});
3699var StyledTableCell$e = styled(TableCell$1)(function (_ref3) {
3700 var _ref4;
3701
3702 var theme = _ref3.theme;
3703 return _ref4 = {}, _defineProperty(_ref4, "&.".concat(classes$G.headingCell), {
3704 whiteSpace: 'nowrap',
3705 textAlign: 'center',
3706 padding: theme.spacing(0, 2, 0, 3)
3707 }), _defineProperty(_ref4, "&.".concat(classes$G.cell), {
3708 whiteSpace: 'nowrap',
3709 textAlign: 'center',
3710 padding: theme.spacing(0, 2, 0, 3)
3711 }), _defineProperty(_ref4, "&.".concat(classes$G.alignWithRowSpan), {
3712 verticalAlign: 'bottom',
3713 paddingBottom: theme.spacing(1.25)
3714 }), _ref4;
3715});
3716var CommandButton = function CommandButton(_ref5) {
3717 var onExecute = _ref5.onExecute,
3718 text = _ref5.text,
3719 className = _ref5.className,
3720 restProps = _objectWithoutProperties(_ref5, _excluded$P);
3721
3722 return /*#__PURE__*/createElement(StyledButton$1, _extends({
3723 color: "primary",
3724 className: classNames(classes$G.button, className),
3725 onClick: function onClick(e) {
3726 e.stopPropagation();
3727 onExecute();
3728 }
3729 }, restProps), text);
3730};
3731process.env.NODE_ENV !== "production" ? CommandButton.propTypes = {
3732 onExecute: PropTypes.func.isRequired,
3733 text: PropTypes.string.isRequired,
3734 className: PropTypes.string
3735} : void 0;
3736CommandButton.defaultProps = {
3737 className: undefined
3738};
3739var EditCommandHeadingCell = function EditCommandHeadingCell(_ref6) {
3740 var _classNames;
3741
3742 var children = _ref6.children,
3743 className = _ref6.className,
3744 tableRow = _ref6.tableRow,
3745 tableColumn = _ref6.tableColumn,
3746 rowSpan = _ref6.rowSpan,
3747 forwardedRef = _ref6.forwardedRef,
3748 restProps = _objectWithoutProperties(_ref6, _excluded2$2);
3749
3750 return /*#__PURE__*/createElement(StyledTableCell$e, _extends({
3751 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$G.headingCell, true), _defineProperty(_classNames, classes$G.alignWithRowSpan, rowSpan > 1), _classNames), className),
3752 rowSpan: rowSpan,
3753 ref: forwardedRef
3754 }, restProps), children);
3755};
3756process.env.NODE_ENV !== "production" ? EditCommandHeadingCell.propTypes = {
3757 children: PropTypes.node,
3758 className: PropTypes.string,
3759 tableRow: PropTypes.object,
3760 tableColumn: PropTypes.object,
3761 rowSpan: PropTypes.number,
3762 forwardedRef: PropTypes.func
3763} : void 0;
3764EditCommandHeadingCell.defaultProps = {
3765 children: undefined,
3766 className: undefined,
3767 tableRow: undefined,
3768 tableColumn: undefined,
3769 rowSpan: undefined,
3770 forwardedRef: undefined
3771};
3772var EditCommandCell = function EditCommandCell(_ref7) {
3773 var tableRow = _ref7.tableRow,
3774 tableColumn = _ref7.tableColumn,
3775 row = _ref7.row,
3776 children = _ref7.children,
3777 className = _ref7.className,
3778 forwardedRef = _ref7.forwardedRef,
3779 restProps = _objectWithoutProperties(_ref7, _excluded3$1);
3780
3781 return /*#__PURE__*/createElement(StyledTableCell$e, _extends({
3782 className: classNames(classes$G.cell, className),
3783 ref: forwardedRef
3784 }, restProps), children);
3785};
3786process.env.NODE_ENV !== "production" ? EditCommandCell.propTypes = {
3787 children: PropTypes.node,
3788 className: PropTypes.string,
3789 tableRow: PropTypes.object,
3790 tableColumn: PropTypes.object,
3791 row: PropTypes.any,
3792 forwardedRef: PropTypes.func
3793} : void 0;
3794EditCommandCell.defaultProps = {
3795 children: undefined,
3796 className: undefined,
3797 tableRow: undefined,
3798 tableColumn: undefined,
3799 row: undefined,
3800 forwardedRef: undefined
3801};
3802
3803var TableEditColumnWithWidth = withPatchedProps(function (props) {
3804 return _objectSpread2({
3805 width: 150
3806 }, props);
3807})(TableEditColumn$1);
3808TableEditColumnWithWidth.components = TableEditColumn$1.components;
3809var TableEditColumn = withComponents({
3810 Cell: EditCommandCell,
3811 HeaderCell: EditCommandHeadingCell,
3812 Command: CommandButton
3813})(TableEditColumnWithWidth);
3814TableEditColumn.COLUMN_TYPE = TableEditColumn$1.COLUMN_TYPE;
3815
3816var _excluded$Q = ["getMessage"];
3817var PREFIX$H = 'EmotyMessage';
3818var classes$H = {
3819 emptyMessage: "".concat(PREFIX$H, "-emptyMessage")
3820};
3821var StyledBig = styled('big')(function (_ref) {
3822 var theme = _ref.theme;
3823 return _defineProperty({}, "&.".concat(classes$H.emptyMessage), {
3824 margin: '0 auto',
3825 padding: theme.spacing(5, 0),
3826 fontFamily: theme.typography.fontFamily,
3827 color: theme.typography.subtitle1.color,
3828 fontSize: theme.typography.subtitle1.fontSize
3829 });
3830});
3831var EmptyMessage = function EmptyMessage(_ref3) {
3832 var getMessage = _ref3.getMessage,
3833 restProps = _objectWithoutProperties(_ref3, _excluded$Q);
3834
3835 return /*#__PURE__*/createElement(Toolbar$2, restProps, /*#__PURE__*/createElement(StyledBig, {
3836 className: classes$H.emptyMessage
3837 }, getMessage('noColumns')));
3838};
3839process.env.NODE_ENV !== "production" ? EmptyMessage.propTypes = {
3840 getMessage: PropTypes.func.isRequired
3841} : void 0;
3842
3843var TableColumnVisibility = withComponents({
3844 EmptyMessage: EmptyMessage
3845})(TableColumnVisibility$1);
3846
3847var TableReorderingCell = function TableReorderingCell(_ref) {
3848 var style = _ref.style,
3849 getCellDimensions = _ref.getCellDimensions;
3850
3851 var refHandler = function refHandler(node) {
3852 return node && getCellDimensions(function () {
3853 return getCellGeometries(node);
3854 });
3855 };
3856
3857 return /*#__PURE__*/createElement("td", {
3858 ref: refHandler,
3859 style: _objectSpread2(_objectSpread2({}, style), {}, {
3860 padding: 0
3861 })
3862 });
3863};
3864process.env.NODE_ENV !== "production" ? TableReorderingCell.propTypes = {
3865 getCellDimensions: PropTypes.func.isRequired,
3866 style: PropTypes.object
3867} : void 0;
3868TableReorderingCell.defaultProps = {
3869 style: null
3870};
3871
3872var _excluded$R = ["className"];
3873var PREFIX$I = 'TableInvisibleRow';
3874var classes$I = {
3875 row: "".concat(PREFIX$I, "-row")
3876};
3877var StyledTableRow$3 = styled(TableRow)(function () {
3878 return _defineProperty({}, "&.".concat(classes$I.row), {
3879 visibility: 'hidden'
3880 });
3881});
3882var TableInvisibleRow = function TableInvisibleRow(_ref2) {
3883 var className = _ref2.className,
3884 restParams = _objectWithoutProperties(_ref2, _excluded$R);
3885
3886 return /*#__PURE__*/createElement(StyledTableRow$3, _extends({
3887 className: classNames(classes$I.row, className)
3888 }, restParams));
3889};
3890process.env.NODE_ENV !== "production" ? TableInvisibleRow.propTypes = {
3891 className: PropTypes.string
3892} : void 0;
3893TableInvisibleRow.defaultProps = {
3894 className: undefined
3895};
3896
3897var TableColumnReordering = withComponents({
3898 Row: TableInvisibleRow,
3899 Cell: TableReorderingCell
3900})(TableColumnReordering$1);
3901
3902var _excluded$S = ["minColumnWidth", "maxColumnWidth"];
3903var TableColumnResizing = /*#__PURE__*/function (_React$PureComponent) {
3904 _inherits(TableColumnResizing, _React$PureComponent);
3905
3906 var _super = _createSuper(TableColumnResizing);
3907
3908 function TableColumnResizing() {
3909 _classCallCheck(this, TableColumnResizing);
3910
3911 return _super.apply(this, arguments);
3912 }
3913
3914 _createClass(TableColumnResizing, [{
3915 key: "render",
3916 value: function render() {
3917 var _this$props = this.props,
3918 minColumnWidth = _this$props.minColumnWidth,
3919 maxColumnWidth = _this$props.maxColumnWidth,
3920 restProps = _objectWithoutProperties(_this$props, _excluded$S);
3921
3922 return /*#__PURE__*/createElement(TableColumnResizing$1, _extends({}, restProps, {
3923 minColumnWidth: minColumnWidth,
3924 maxColumnWidth: maxColumnWidth
3925 }));
3926 }
3927 }]);
3928
3929 return TableColumnResizing;
3930}(PureComponent);
3931process.env.NODE_ENV !== "production" ? TableColumnResizing.propTypes = {
3932 minColumnWidth: PropTypes.number,
3933 maxColumnWidth: PropTypes.number
3934} : void 0;
3935TableColumnResizing.defaultProps = {
3936 minColumnWidth: 40,
3937 maxColumnWidth: Infinity
3938};
3939
3940var _excluded$T = ["children", "className", "style", "forwardedRef"];
3941var PREFIX$J = 'Toolbar';
3942var classes$J = {
3943 toolbar: "".concat(PREFIX$J, "-toolbar")
3944};
3945var StyledToolbarMUI = styled(Toolbar$2)(function (_ref) {
3946 var theme = _ref.theme;
3947 return _defineProperty({}, "&.".concat(classes$J.toolbar), {
3948 borderBottom: getBorder(theme),
3949 flex: 'none'
3950 });
3951});
3952
3953var ToolbarBase = function ToolbarBase(_ref3) {
3954 var children = _ref3.children,
3955 className = _ref3.className,
3956 style = _ref3.style,
3957 forwardedRef = _ref3.forwardedRef,
3958 restProps = _objectWithoutProperties(_ref3, _excluded$T);
3959
3960 return /*#__PURE__*/createElement(StyledToolbarMUI, _extends({
3961 style: style,
3962 className: classNames(classes$J.toolbar, className),
3963 ref: forwardedRef
3964 }, restProps), children);
3965};
3966
3967process.env.NODE_ENV !== "production" ? ToolbarBase.propTypes = {
3968 children: PropTypes.node.isRequired,
3969 className: PropTypes.string,
3970 style: PropTypes.object,
3971 forwardedRef: PropTypes.func
3972} : void 0;
3973ToolbarBase.defaultProps = {
3974 className: undefined,
3975 style: null,
3976 forwardedRef: undefined
3977};
3978var Toolbar = withKeyboardNavigation('toolbar', 'none')(ToolbarBase);
3979
3980var FlexibleSpace = function FlexibleSpace() {
3981 return /*#__PURE__*/createElement("div", {
3982 style: {
3983 flex: '0 0 0',
3984 marginLeft: 'auto'
3985 }
3986 });
3987};
3988
3989var Toolbar$1 = withComponents({
3990 Root: Toolbar,
3991 FlexibleSpace: FlexibleSpace
3992})(Toolbar$3);
3993
3994var _excluded$U = ["visible", "expanded", "onToggle", "className"];
3995var PREFIX$K = 'TableTreeExpandButton';
3996var classes$K = {
3997 button: "".concat(PREFIX$K, "-button"),
3998 hidden: "".concat(PREFIX$K, "-hidden")
3999};
4000var StyledIconButton = styled(IconButton)(function (_ref) {
4001 var _ref2;
4002
4003 var theme = _ref.theme;
4004 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$K.button), {
4005 marginTop: '-1px',
4006 marginBottom: '-1px',
4007 marginLeft: -theme.spacing(1),
4008 marginRight: theme.spacing(2),
4009 padding: theme.spacing(1)
4010 }), _defineProperty(_ref2, "&.".concat(classes$K.hidden), {
4011 cursor: 'default',
4012 opacity: 0
4013 }), _ref2;
4014});
4015var TableTreeExpandButton = function TableTreeExpandButton(_ref3) {
4016 var _classNames;
4017
4018 var visible = _ref3.visible,
4019 expanded = _ref3.expanded,
4020 onToggle = _ref3.onToggle,
4021 className = _ref3.className,
4022 restProps = _objectWithoutProperties(_ref3, _excluded$U);
4023
4024 return /*#__PURE__*/createElement(StyledIconButton, _extends({
4025 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$K.button, true), _defineProperty(_classNames, classes$K.hidden, !visible), _classNames), className),
4026 onClick: function onClick(e) {
4027 if (!visible) return;
4028 e.stopPropagation();
4029 onToggle();
4030 },
4031 tabIndex: visible ? 0 : -1
4032 }, restProps), expanded ? /*#__PURE__*/createElement(ExpandMore, null) : /*#__PURE__*/createElement(ChevronRight, null));
4033};
4034process.env.NODE_ENV !== "production" ? TableTreeExpandButton.propTypes = {
4035 visible: PropTypes.bool,
4036 expanded: PropTypes.bool,
4037 onToggle: PropTypes.func,
4038 className: PropTypes.string
4039} : void 0;
4040TableTreeExpandButton.defaultProps = {
4041 visible: false,
4042 expanded: false,
4043 onToggle: function onToggle() {},
4044 className: undefined
4045};
4046
4047var _excluded$V = ["disabled", "checked", "indeterminate", "onChange", "className"];
4048var PREFIX$L = 'TableTreeCheckbox';
4049var classes$L = {
4050 checkbox: "".concat(PREFIX$L, "-checkbox")
4051};
4052var StyledCheckboxMUI = styled(Checkbox)(function (_ref) {
4053 var theme = _ref.theme;
4054 return _defineProperty({}, "&.".concat(classes$L.checkbox), {
4055 marginTop: '-1px',
4056 marginBottom: '-1px',
4057 marginRight: theme.spacing(2),
4058 marginLeft: -theme.spacing(2),
4059 padding: theme.spacing(1)
4060 });
4061});
4062var TableTreeCheckbox = function TableTreeCheckbox(_ref3) {
4063 var disabled = _ref3.disabled,
4064 checked = _ref3.checked,
4065 indeterminate = _ref3.indeterminate,
4066 onChange = _ref3.onChange,
4067 className = _ref3.className,
4068 restProps = _objectWithoutProperties(_ref3, _excluded$V);
4069
4070 return /*#__PURE__*/createElement(StyledCheckboxMUI, _extends({
4071 className: classNames(classes$L.checkbox, className),
4072 checked: checked,
4073 indeterminate: indeterminate,
4074 disabled: disabled,
4075 onClick: function onClick(e) {
4076 if (disabled) return;
4077 e.stopPropagation();
4078 onChange();
4079 }
4080 }, restProps));
4081};
4082process.env.NODE_ENV !== "production" ? TableTreeCheckbox.propTypes = {
4083 disabled: PropTypes.bool,
4084 checked: PropTypes.bool,
4085 indeterminate: PropTypes.bool,
4086 onChange: PropTypes.func,
4087 className: PropTypes.string
4088} : void 0;
4089TableTreeCheckbox.defaultProps = {
4090 disabled: false,
4091 checked: false,
4092 indeterminate: false,
4093 onChange: function onChange() {},
4094 className: undefined
4095};
4096
4097var PREFIX$M = 'TableTreeIndent';
4098var classes$M = {
4099 indent: "".concat(PREFIX$M, "-indent")
4100};
4101var StyledSpan$3 = styled('span')(function (_ref) {
4102 var theme = _ref.theme;
4103 return _defineProperty({}, "&.".concat(classes$M.indent), {
4104 marginLeft: theme.spacing(3)
4105 });
4106});
4107var TableTreeIndent = /*#__PURE__*/memo(function (_ref3) {
4108 var level = _ref3.level;
4109 return Array.from({
4110 length: level
4111 }).map(function (value, currentLevel) {
4112 return /*#__PURE__*/createElement(StyledSpan$3 // eslint-disable-next-line react/no-array-index-key
4113 , {
4114 key: currentLevel,
4115 className: classes$M.indent
4116 });
4117 });
4118});
4119TableTreeIndent.propTypes = {
4120 level: PropTypes.number
4121};
4122TableTreeIndent.defaultProps = {
4123 level: 0
4124};
4125
4126var _excluded$W = ["children", "className"];
4127var PREFIX$N = 'TableTreeContent';
4128var classes$N = {
4129 content: "".concat(PREFIX$N, "-content")
4130};
4131var StyledDiv$e = styled('div')(function () {
4132 return _defineProperty({}, "&.".concat(classes$N.content), {
4133 width: '100%',
4134 overflow: 'hidden',
4135 textOverflow: 'ellipsis'
4136 });
4137});
4138var TableTreeContent = function TableTreeContent(_ref2) {
4139 var children = _ref2.children,
4140 className = _ref2.className,
4141 restProps = _objectWithoutProperties(_ref2, _excluded$W);
4142
4143 return /*#__PURE__*/createElement(StyledDiv$e, _extends({
4144 className: classNames([classes$N.content], className)
4145 }, restProps), children);
4146};
4147process.env.NODE_ENV !== "production" ? TableTreeContent.propTypes = {
4148 children: PropTypes.node,
4149 className: PropTypes.string
4150} : void 0;
4151TableTreeContent.defaultProps = {
4152 children: undefined,
4153 className: undefined
4154};
4155
4156var _excluded$X = ["column", "value", "children", "tableRow", "tableColumn", "row", "className", "forwardedRef"];
4157var PREFIX$O = 'TableTreeCell';
4158var classes$O = {
4159 cell: "".concat(PREFIX$O, "-cell"),
4160 container: "".concat(PREFIX$O, "-container"),
4161 cellNoWrap: "".concat(PREFIX$O, "-cellNoWrap"),
4162 cellRightAlign: "".concat(PREFIX$O, "-cellRightAlign"),
4163 cellCenterAlign: "".concat(PREFIX$O, "-cellCenterAlign")
4164};
4165var StyledTableCellMUI$1 = styled(TableCell$1)(function (_ref) {
4166 var _ref2;
4167
4168 var theme = _ref.theme;
4169 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$O.cell), {
4170 padding: theme.spacing(0.5, 1),
4171 '&:first-of-type': {
4172 paddingLeft: theme.spacing(3)
4173 }
4174 }), _defineProperty(_ref2, "&.".concat(classes$O.cellNoWrap), {
4175 whiteSpace: 'nowrap'
4176 }), _defineProperty(_ref2, "&.".concat(classes$O.cellRightAlign), {
4177 textAlign: 'right'
4178 }), _defineProperty(_ref2, "&.".concat(classes$O.cellCenterAlign), {
4179 textAlign: 'center'
4180 }), _defineProperty(_ref2, "& .".concat(classes$O.container), {
4181 display: 'flex',
4182 flexDirection: 'row',
4183 alignItems: 'center'
4184 }), _ref2;
4185});
4186var TableTreeCell = function TableTreeCell(_ref3) {
4187 var _classNames;
4188
4189 var column = _ref3.column,
4190 value = _ref3.value,
4191 children = _ref3.children,
4192 tableRow = _ref3.tableRow,
4193 tableColumn = _ref3.tableColumn,
4194 row = _ref3.row,
4195 className = _ref3.className,
4196 forwardedRef = _ref3.forwardedRef,
4197 restProps = _objectWithoutProperties(_ref3, _excluded$X);
4198
4199 return /*#__PURE__*/createElement(StyledTableCellMUI$1, _extends({
4200 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$O.cell, true), _defineProperty(_classNames, classes$O.cellNoWrap, !(tableColumn && tableColumn.wordWrapEnabled)), _defineProperty(_classNames, classes$O.cellRightAlign, tableColumn && tableColumn.align === 'right'), _defineProperty(_classNames, classes$O.cellCenterAlign, tableColumn && tableColumn.align === 'center'), _classNames), className),
4201 ref: forwardedRef
4202 }, restProps), /*#__PURE__*/createElement("div", {
4203 className: classes$O.container
4204 }, children));
4205};
4206process.env.NODE_ENV !== "production" ? TableTreeCell.propTypes = {
4207 value: PropTypes.any,
4208 column: PropTypes.object,
4209 row: PropTypes.any,
4210 children: PropTypes.node,
4211 tableRow: PropTypes.object,
4212 tableColumn: PropTypes.object,
4213 className: PropTypes.string,
4214 forwardedRef: PropTypes.func
4215} : void 0;
4216TableTreeCell.defaultProps = {
4217 value: undefined,
4218 column: undefined,
4219 row: undefined,
4220 children: undefined,
4221 tableRow: undefined,
4222 tableColumn: undefined,
4223 className: undefined,
4224 forwardedRef: undefined
4225};
4226
4227var TableTreeColumn = withComponents({
4228 Cell: TableTreeCell,
4229 Content: TableTreeContent,
4230 Indent: TableTreeIndent,
4231 ExpandButton: TableTreeExpandButton,
4232 Checkbox: TableTreeCheckbox
4233})(TableTreeColumn$1);
4234
4235var _excluded$Y = ["onValueChange", "value", "getMessage", "inputRef"];
4236var PREFIX$P = 'SearchPanelInput';
4237var classes$P = {
4238 root: "".concat(PREFIX$P, "-root")
4239};
4240var StyledInput$2 = styled(Input)(function (_ref) {
4241 var theme = _ref.theme;
4242 return _defineProperty({}, "&.".concat(classes$P.root), {
4243 display: 'flex',
4244 alignItems: 'center',
4245 color: theme.palette.action.active
4246 });
4247});
4248var SearchPanelInput = function SearchPanelInput(_ref3) {
4249 var onValueChange = _ref3.onValueChange,
4250 value = _ref3.value,
4251 getMessage = _ref3.getMessage,
4252 inputRef = _ref3.inputRef,
4253 restProps = _objectWithoutProperties(_ref3, _excluded$Y);
4254
4255 return /*#__PURE__*/createElement(StyledInput$2, _extends({
4256 className: classes$P.root,
4257 ref: inputRef,
4258 onChange: function onChange(e) {
4259 return onValueChange(e.target.value);
4260 },
4261 value: value,
4262 type: "text",
4263 placeholder: getMessage('searchPlaceholder')
4264 }, restProps, {
4265 startAdornment: /*#__PURE__*/createElement(InputAdornment, {
4266 position: "start"
4267 }, /*#__PURE__*/createElement(SearchIcon, null))
4268 }));
4269};
4270process.env.NODE_ENV !== "production" ? SearchPanelInput.propTypes = {
4271 onValueChange: PropTypes.func.isRequired,
4272 value: PropTypes.string,
4273 getMessage: PropTypes.func.isRequired,
4274 inputRef: PropTypes.object
4275} : void 0;
4276SearchPanelInput.defaultProps = {
4277 value: '',
4278 inputRef: undefined
4279};
4280
4281var SearchPanel = withComponents({
4282 Input: SearchPanelInput
4283})(SearchPanel$1);
4284
4285var _excluded$Z = ["className", "component", "position", "selected", "showLeftDivider", "showRightDivider", "side", "style"];
4286var PREFIX$Q = 'TableFixedCell';
4287var classes$Q = {
4288 dividerRight: "".concat(PREFIX$Q, "-dividerRight"),
4289 dividerLeft: "".concat(PREFIX$Q, "-dividerLeft"),
4290 fixedCell: "".concat(PREFIX$Q, "-fixedCell"),
4291 selected: "".concat(PREFIX$Q, "-selected")
4292};
4293
4294var styles$1 = function styles(_ref) {
4295 var _ref2;
4296
4297 var theme = _ref.theme;
4298 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$Q.dividerRight), {
4299 borderRight: getBorder(theme)
4300 }), _defineProperty(_ref2, "&.".concat(classes$Q.dividerLeft), {
4301 borderLeft: getBorder(theme)
4302 }), _defineProperty(_ref2, "&.".concat(classes$Q.fixedCell), getStickyCellStyle(theme)), _defineProperty(_ref2, "&.".concat(classes$Q.selected), {
4303 backgroundColor: 'inherit'
4304 }), _ref2;
4305};
4306
4307var FixedCellBase = /*#__PURE__*/function (_React$PureComponent) {
4308 _inherits(FixedCellBase, _React$PureComponent);
4309
4310 var _super = _createSuper(FixedCellBase);
4311
4312 function FixedCellBase() {
4313 _classCallCheck(this, FixedCellBase);
4314
4315 return _super.apply(this, arguments);
4316 }
4317
4318 _createClass(FixedCellBase, [{
4319 key: "render",
4320 value: function render() {
4321 var _classNames;
4322
4323 var _this$props = this.props,
4324 className = _this$props.className,
4325 CellPlaceholder = _this$props.component,
4326 position = _this$props.position,
4327 selected = _this$props.selected,
4328 showLeftDivider = _this$props.showLeftDivider,
4329 showRightDivider = _this$props.showRightDivider,
4330 side = _this$props.side,
4331 style = _this$props.style,
4332 restProps = _objectWithoutProperties(_this$props, _excluded$Z);
4333
4334 return /*#__PURE__*/createElement(CellPlaceholder, _extends({
4335 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$Q.dividerLeft, showLeftDivider), _defineProperty(_classNames, classes$Q.dividerRight, showRightDivider), _defineProperty(_classNames, classes$Q.fixedCell, true), _defineProperty(_classNames, classes$Q.selected, selected), _classNames), className),
4336 style: _objectSpread2(_objectSpread2({}, style), {}, _defineProperty({}, side, position))
4337 }, restProps));
4338 }
4339 }]);
4340
4341 return FixedCellBase;
4342}(PureComponent);
4343
4344process.env.NODE_ENV !== "production" ? FixedCellBase.propTypes = {
4345 component: PropTypes.func.isRequired,
4346 className: PropTypes.string,
4347 position: PropTypes.number,
4348 selected: PropTypes.bool,
4349 showLeftDivider: PropTypes.bool,
4350 showRightDivider: PropTypes.bool,
4351 side: PropTypes.string.isRequired,
4352 style: PropTypes.object
4353} : void 0;
4354FixedCellBase.defaultProps = {
4355 className: undefined,
4356 position: undefined,
4357 selected: false,
4358 showLeftDivider: false,
4359 showRightDivider: false,
4360 style: null
4361};
4362var FixedCell = styled(FixedCellBase)(styles$1);
4363
4364var _excluded$_ = ["className"],
4365 _excluded2$3 = ["listen", "onSizeChange"];
4366var PREFIX$R = 'TableListenerCell';
4367var classes$R = {
4368 cell: "".concat(PREFIX$R, "-cell")
4369};
4370var StyledTableStubCell = styled(TableStubCell)(function () {
4371 return _defineProperty({}, "&.".concat(classes$R.cell), {
4372 border: 0
4373 });
4374});
4375
4376var TableBorderlessStubCell = function TableBorderlessStubCell(_ref2) {
4377 var className = _ref2.className,
4378 restProps = _objectWithoutProperties(_ref2, _excluded$_);
4379
4380 return /*#__PURE__*/createElement(StyledTableStubCell, _extends({
4381 className: classNames(classes$R.cell, className)
4382 }, restProps));
4383};
4384
4385process.env.NODE_ENV !== "production" ? TableBorderlessStubCell.propTypes = {
4386 className: PropTypes.string
4387} : void 0;
4388TableBorderlessStubCell.defaultProps = {
4389 className: undefined
4390};
4391var TableListenerCell = function TableListenerCell(_ref3) {
4392 var listen = _ref3.listen,
4393 onSizeChange = _ref3.onSizeChange,
4394 restProps = _objectWithoutProperties(_ref3, _excluded2$3);
4395
4396 return listen ? /*#__PURE__*/createElement(Sizer, _extends({
4397 containerComponent: TableBorderlessStubCell,
4398 onSizeChange: onSizeChange
4399 }, restProps)) : /*#__PURE__*/createElement(TableBorderlessStubCell, restProps);
4400};
4401process.env.NODE_ENV !== "production" ? TableListenerCell.propTypes = {
4402 listen: PropTypes.bool.isRequired,
4403 onSizeChange: PropTypes.func.isRequired
4404} : void 0;
4405
4406var TableFixedColumns = withComponents({
4407 Cell: FixedCell,
4408 ListenerRow: TableInvisibleRow,
4409 ListenerCell: TableListenerCell
4410})(TableFixedColumns$1);
4411
4412var TableSummaryRow = withComponents({
4413 TotalRow: TableRow,
4414 GroupRow: TableRow,
4415 TreeRow: TableRow,
4416 TotalCell: TableCell,
4417 GroupCell: TableCell,
4418 TreeCell: TableCell,
4419 TableTreeCell: TableTreeCell,
4420 TableTreeContent: TableTreeContent,
4421 TableTreeIndent: TableTreeIndent,
4422 Item: TableSummaryItem
4423})(TableSummaryRow$1);
4424TableSummaryRow.TREE_ROW_TYPE = TableSummaryRow$1.TREE_ROW_TYPE;
4425TableSummaryRow.GROUP_ROW_TYPE = TableSummaryRow$1.GROUP_ROW_TYPE;
4426TableSummaryRow.TOTAL_ROW_TYPE = TableSummaryRow$1.TOTAL_ROW_TYPE;
4427
4428var TableInlineCellEditing = withComponents({
4429 Cell: EditCell
4430})(TableInlineCellEditing$1);
4431
4432var _excluded$$ = ["onToggle", "getMessage", "buttonRef"];
4433var ToggleButton$2 = function ToggleButton(_ref) {
4434 var onToggle = _ref.onToggle,
4435 getMessage = _ref.getMessage,
4436 buttonRef = _ref.buttonRef,
4437 restProps = _objectWithoutProperties(_ref, _excluded$$);
4438
4439 return /*#__PURE__*/createElement(Tooltip, {
4440 title: getMessage('showExportMenu'),
4441 placement: "bottom",
4442 enterDelay: 300
4443 }, /*#__PURE__*/createElement(IconButton, _extends({
4444 onClick: onToggle,
4445 ref: buttonRef
4446 }, restProps, {
4447 size: "large"
4448 }), /*#__PURE__*/createElement(Save, null)));
4449};
4450process.env.NODE_ENV !== "production" ? ToggleButton$2.propTypes = {
4451 onToggle: PropTypes.func.isRequired,
4452 getMessage: PropTypes.func.isRequired,
4453 buttonRef: PropTypes.func.isRequired
4454} : void 0;
4455
4456var _excluded$10 = ["visible", "target", "onHide", "children"];
4457var Menu = function Menu(_ref) {
4458 var visible = _ref.visible,
4459 target = _ref.target,
4460 onHide = _ref.onHide,
4461 children = _ref.children,
4462 restProps = _objectWithoutProperties(_ref, _excluded$10);
4463
4464 return /*#__PURE__*/createElement(Menu$1, _extends({
4465 keepMounted: true,
4466 open: visible,
4467 anchorEl: target,
4468 onClose: onHide
4469 }, restProps), children);
4470};
4471process.env.NODE_ENV !== "production" ? Menu.propTypes = {
4472 onHide: PropTypes.func.isRequired,
4473 children: PropTypes.node.isRequired,
4474 visible: PropTypes.bool,
4475 target: PropTypes.oneOfType([PropTypes.object, PropTypes.func])
4476} : void 0;
4477Menu.defaultProps = {
4478 visible: false,
4479 target: null
4480};
4481
4482var _excluded$11 = ["text", "onClick"];
4483var MenuItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
4484 var text = _ref.text,
4485 onClick = _ref.onClick,
4486 restProps = _objectWithoutProperties(_ref, _excluded$11);
4487
4488 return /*#__PURE__*/createElement(MenuItem$1, _extends({
4489 onClick: onClick,
4490 ref: ref
4491 }, restProps), text);
4492});
4493MenuItem.propTypes = {
4494 text: PropTypes.string.isRequired,
4495 onClick: PropTypes.func
4496};
4497MenuItem.defaultProps = {
4498 onClick: function onClick() {}
4499};
4500
4501var ExportPanel = withComponents({
4502 ToggleButton: ToggleButton$2,
4503 Menu: Menu,
4504 MenuItem: MenuItem
4505})(ExportPanel$1);
4506
4507var _excluded$12 = ["className", "focused", "component"];
4508var PREFIX$S = 'TableFocusCell';
4509var classes$S = {
4510 focusedCell: "".concat(PREFIX$S, "-focusedCell"),
4511 simpleCell: "".concat(PREFIX$S, "-simpleCell")
4512};
4513
4514var styles$2 = function styles(_ref) {
4515 var _ref2;
4516
4517 var theme = _ref.theme;
4518 return _ref2 = {}, _defineProperty(_ref2, "&.".concat(classes$S.focusedCell), {
4519 border: "1px solid ".concat(theme.palette.primary.light, "!important")
4520 }), _defineProperty(_ref2, "&.".concat(classes$S.simpleCell), {
4521 outline: 'none'
4522 }), _ref2;
4523};
4524
4525var FocusCellBase = /*#__PURE__*/function (_React$PureComponent) {
4526 _inherits(FocusCellBase, _React$PureComponent);
4527
4528 var _super = _createSuper(FocusCellBase);
4529
4530 function FocusCellBase() {
4531 _classCallCheck(this, FocusCellBase);
4532
4533 return _super.apply(this, arguments);
4534 }
4535
4536 _createClass(FocusCellBase, [{
4537 key: "render",
4538 value: function render() {
4539 var _classNames;
4540
4541 var _this$props = this.props,
4542 className = _this$props.className,
4543 focused = _this$props.focused,
4544 CellPlaceholder = _this$props.component,
4545 restProps = _objectWithoutProperties(_this$props, _excluded$12);
4546
4547 return /*#__PURE__*/createElement(CellPlaceholder, _extends({
4548 className: classNames((_classNames = {}, _defineProperty(_classNames, classes$S.focusedCell, !!focused), _defineProperty(_classNames, classes$S.simpleCell, true), _classNames), className)
4549 }, restProps));
4550 }
4551 }]);
4552
4553 return FocusCellBase;
4554}(PureComponent);
4555
4556process.env.NODE_ENV !== "production" ? FocusCellBase.propTypes = {
4557 component: PropTypes.func.isRequired,
4558 className: PropTypes.string,
4559 focused: PropTypes.bool
4560} : void 0;
4561FocusCellBase.defaultProps = {
4562 className: undefined,
4563 focused: undefined
4564};
4565var FocusCell = withKeyboardNavigation()(styled(FocusCellBase)(styles$2));
4566
4567var _excluded$13 = ["className", "component", "focused"];
4568var PREFIX$T = 'TableFocusRow';
4569var classes$T = {
4570 focusedRow: "".concat(PREFIX$T, "-focusedRow")
4571};
4572
4573var styles$3 = function styles(_ref) {
4574 var theme = _ref.theme;
4575 return _defineProperty({}, "&.".concat(classes$T.focusedRow), {
4576 backgroundColor: getSelectionColor(theme)
4577 });
4578};
4579
4580var FocusRowBase = /*#__PURE__*/function (_React$PureComponent) {
4581 _inherits(FocusRowBase, _React$PureComponent);
4582
4583 var _super = _createSuper(FocusRowBase);
4584
4585 function FocusRowBase() {
4586 _classCallCheck(this, FocusRowBase);
4587
4588 return _super.apply(this, arguments);
4589 }
4590
4591 _createClass(FocusRowBase, [{
4592 key: "render",
4593 value: function render() {
4594 var _this$props = this.props,
4595 className = _this$props.className,
4596 RowPlaceholder = _this$props.component,
4597 focused = _this$props.focused,
4598 restProps = _objectWithoutProperties(_this$props, _excluded$13);
4599
4600 return /*#__PURE__*/createElement(RowPlaceholder, _extends({
4601 className: classNames(_defineProperty({}, classes$T.focusedRow, !!focused), className)
4602 }, restProps));
4603 }
4604 }]);
4605
4606 return FocusRowBase;
4607}(PureComponent);
4608
4609process.env.NODE_ENV !== "production" ? FocusRowBase.propTypes = {
4610 component: PropTypes.func.isRequired,
4611 className: PropTypes.string,
4612 focused: PropTypes.bool
4613} : void 0;
4614FocusRowBase.defaultProps = {
4615 className: undefined,
4616 focused: undefined
4617};
4618var FocusRow = styled(FocusRowBase)(styles$3);
4619
4620var TableKeyboardNavigation = withComponents({
4621 Cell: FocusCell,
4622 Row: FocusRow
4623})(TableKeyboardNavigation$1);
4624
4625export { ColumnChooser, DragDropProvider, ExportPanel, Grid, GroupingPanel, PagingPanel, SearchPanel, Table$1 as Table, TableBandHeader, TableColumnReordering, TableColumnResizing, TableColumnVisibility, TableEditColumn, TableEditRow, TableFilterRow, TableFixedColumns, TableGroupRow, TableHeaderRow, TableInlineCellEditing, TableKeyboardNavigation, TableRowDetail, TableSelection, TableSummaryRow, TableTreeColumn, Toolbar$1 as Toolbar, VirtualTable };
4626//# sourceMappingURL=dx-react-grid-material-ui.es.js.map