katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/6cf0f78fae0dfa4113819006cfd...

1 line
774 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { Paginator } from 'primereact/paginator';\nimport { classNames, ObjectUtils, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primereact/utils';\nimport PrimeReact, { localeOption, FilterMatchMode, FilterOperator, FilterService } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Ripple } from 'primereact/ripple';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { InputText } from 'primereact/inputtext';\nimport { Dropdown } from 'primereact/dropdown';\nimport { Button } from 'primereact/button';\nimport { VirtualScroller } from 'primereact/virtualscroller';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _createSuper$c(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$c();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$c() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar RowRadioButton = /*#__PURE__*/function (_Component) {\n _inherits(RowRadioButton, _Component);\n\n var _super = _createSuper$c(RowRadioButton);\n\n function RowRadioButton(props) {\n var _this;\n\n _classCallCheck(this, RowRadioButton);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowRadioButton, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.props.onChange(event);\n this.input.focus();\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onChange\",\n value: function onChange(event) {\n this.onClick(event);\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-radiobutton p-component', {\n 'p-radiobutton-focused': this.state.focused\n });\n var boxClassName = classNames('p-radiobutton-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-focus': this.state.focused,\n 'p-disabled': this.props.disabled\n });\n var name = \"\".concat(this.props.tableSelector, \"_dt_radio\");\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-hidden-accessible\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n name: name,\n ref: function ref(el) {\n return _this2.input = el;\n },\n type: \"radio\",\n checked: this.props.checked,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onChange: this.onChange,\n onKeyDown: this.onKeyDown\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n onClick: this.onClick,\n role: \"radio\",\n \"aria-checked\": this.props.checked\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-radiobutton-icon\"\n })));\n }\n }]);\n\n return RowRadioButton;\n}(Component);\n\nfunction _createSuper$b(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$b();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$b() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar RowCheckbox = /*#__PURE__*/function (_Component) {\n _inherits(RowCheckbox, _Component);\n\n var _super = _createSuper$b(RowCheckbox);\n\n function RowCheckbox(props) {\n var _this;\n\n _classCallCheck(this, RowCheckbox);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowCheckbox, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.setState({\n focused: true\n });\n this.props.onChange(event);\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-checkbox p-component', {\n 'p-checkbox-focused': this.state.focused\n });\n var boxClassName = classNames('p-checkbox-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var iconClassName = classNames('p-checkbox-icon', {\n 'pi pi-check': this.props.checked\n });\n var tabIndex = this.props.disabled ? null : '0';\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n role: \"checkbox\",\n \"aria-checked\": this.props.checked,\n tabIndex: tabIndex,\n onKeyDown: this.onKeyDown,\n onFocus: this.onFocus,\n onBlur: this.onBlur\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n })));\n }\n }]);\n\n return RowCheckbox;\n}(Component);\n\nfunction ownKeys$7(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$7(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$a(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$a();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$a() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar BodyCell = /*#__PURE__*/function (_Component) {\n _inherits(BodyCell, _Component);\n\n var _super = _createSuper$a(BodyCell);\n\n function BodyCell(props) {\n var _this;\n\n _classCallCheck(this, BodyCell);\n\n _this = _super.call(this, props);\n _this.state = {\n editing: props.editing,\n editingRowData: props.rowData,\n styleObject: {}\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onEditorFocus = _this.onEditorFocus.bind(_assertThisInitialized(_this));\n _this.onRowToggle = _this.onRowToggle.bind(_assertThisInitialized(_this));\n _this.onRadioChange = _this.onRadioChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n _this.onRowEditSave = _this.onRowEditSave.bind(_assertThisInitialized(_this));\n _this.onRowEditCancel = _this.onRowEditCancel.bind(_assertThisInitialized(_this));\n _this.onRowEditInit = _this.onRowEditInit.bind(_assertThisInitialized(_this));\n _this.editorCallback = _this.editorCallback.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(BodyCell, [{\n key: \"field\",\n get: function get() {\n return this.getColumnProp('field') || \"field_\".concat(this.props.index);\n }\n }, {\n key: \"isEditable\",\n value: function isEditable() {\n return this.getColumnProp('editor');\n }\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.props.selection ? this.props.selection instanceof Array ? this.findIndex(this.props.selection) > -1 : this.equals(this.props.selection) : false;\n }\n }, {\n key: \"equalsData\",\n value: function equalsData(data) {\n return this.props.compareSelectionBy === 'equals' ? data === this.props.rowData : ObjectUtils.equals(data, this.props.rowData, this.props.dataKey);\n }\n }, {\n key: \"equals\",\n value: function equals(selectedCell) {\n return (selectedCell.rowIndex === this.props.rowIndex || this.equalsData(selectedCell.rowData)) && (selectedCell.field === this.field || selectedCell.cellIndex === this.props.index);\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.el && !(this.el.isSameNode(target) || this.el.contains(target));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column ? this.props.column.props[prop] : null;\n }\n }, {\n key: \"getVirtualScrollerOption\",\n value: function getVirtualScrollerOption(option) {\n return this.props.virtualScrollerOptions ? this.props.virtualScrollerOptions[option] : null;\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var bodyStyle = this.getColumnProp('bodyStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, bodyStyle, this.state.styleObject) : Object.assign({}, columnStyle, bodyStyle);\n }\n }, {\n key: \"getCellParams\",\n value: function getCellParams() {\n return {\n value: this.resolveFieldData(),\n field: this.field,\n rowData: this.props.rowData,\n rowIndex: this.props.rowIndex,\n cellIndex: this.props.index,\n selected: this.isSelected(),\n column: this.props.column,\n props: this.props\n };\n }\n }, {\n key: \"getCellCallbackParams\",\n value: function getCellCallbackParams(event) {\n var params = this.getCellParams();\n return _objectSpread$7({\n originalEvent: event\n }, params);\n }\n }, {\n key: \"resolveFieldData\",\n value: function resolveFieldData(data) {\n return ObjectUtils.resolveFieldData(data || this.props.rowData, this.field);\n }\n }, {\n key: \"getEditingRowData\",\n value: function getEditingRowData() {\n return this.props.editingMeta && this.props.editingMeta[this.props.rowIndex] ? this.props.editingMeta[this.props.rowIndex].data : this.props.rowData;\n }\n }, {\n key: \"getTabIndex\",\n value: function getTabIndex(cellSelected) {\n return this.props.allowCellSelection ? cellSelected ? 0 : this.props.rowIndex === 0 && this.props.index === 0 ? this.props.tabIndex : -1 : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection) {\n var _this2 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this2.equals(data);\n });\n }\n }, {\n key: \"closeCell\",\n value: function closeCell(event) {\n var _this3 = this;\n\n var params = this.getCellCallbackParams(event);\n var onBeforeCellEditHide = this.getColumnProp('onBeforeCellEditHide');\n\n if (onBeforeCellEditHide) {\n onBeforeCellEditHide(params);\n }\n /* When using the 'tab' key, the focus event of the next cell is not called in IE. */\n\n\n setTimeout(function () {\n _this3.setState({\n editing: false\n }, function () {\n _this3.unbindDocumentEditListener();\n\n OverlayService.off('overlay-click', _this3.overlayEventListener);\n _this3.overlayEventListener = null;\n });\n }, 1);\n }\n }, {\n key: \"switchCellToViewMode\",\n value: function switchCellToViewMode(event, submit) {\n var callbackParams = this.getCellCallbackParams(event);\n var newRowData = this.state.editingRowData;\n var newValue = this.resolveFieldData(newRowData);\n\n var params = _objectSpread$7(_objectSpread$7({}, callbackParams), {}, {\n newRowData: newRowData,\n newValue: newValue\n });\n\n var onCellEditCancel = this.getColumnProp('onCellEditCancel');\n var cellEditValidator = this.getColumnProp('cellEditValidator');\n var onCellEditComplete = this.getColumnProp('onCellEditComplete');\n\n if (!submit && onCellEditCancel) {\n onCellEditCancel(params);\n }\n\n var valid = true;\n\n if (cellEditValidator) {\n valid = cellEditValidator(params);\n }\n\n if (valid) {\n if (submit && onCellEditComplete) {\n onCellEditComplete(params);\n }\n\n this.closeCell(event);\n } else {\n event.preventDefault();\n }\n }\n }, {\n key: \"findNextSelectableCell\",\n value: function findNextSelectableCell(cell) {\n var nextCell = cell.nextElementSibling;\n return nextCell ? DomHandler.hasClass(nextCell, 'p-selectable-cell') ? nextCell : this.findNextSelectableCell(nextCell) : null;\n }\n }, {\n key: \"findPrevSelectableCell\",\n value: function findPrevSelectableCell(cell) {\n var prevCell = cell.previousElementSibling;\n return prevCell ? DomHandler.hasClass(prevCell, 'p-selectable-cell') ? prevCell : this.findPrevSelectableCell(prevCell) : null;\n }\n }, {\n key: \"findDownSelectableCell\",\n value: function findDownSelectableCell(cell) {\n var downRow = cell.parentElement.nextElementSibling;\n var downCell = downRow ? downRow.children[this.props.index] : null;\n return downRow && downCell ? DomHandler.hasClass(downRow, 'p-selectable-row') && DomHandler.hasClass(downCell, 'p-selectable-cell') ? downCell : this.findDownSelectableCell(downCell) : null;\n }\n }, {\n key: \"findUpSelectableCell\",\n value: function findUpSelectableCell(cell) {\n var upRow = cell.parentElement.previousElementSibling;\n var upCell = upRow ? upRow.children[this.props.index] : null;\n return upRow && upCell ? DomHandler.hasClass(upRow, 'p-selectable-row') && DomHandler.hasClass(upCell, 'p-selectable-cell') ? upCell : this.findUpSelectableCell(upCell) : null;\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(currentCell, nextCell) {\n if (currentCell && nextCell) {\n currentCell.tabIndex = -1;\n nextCell.tabIndex = this.props.tabIndex;\n }\n }\n }, {\n key: \"focusOnElement\",\n value: function focusOnElement() {\n var _this4 = this;\n\n clearTimeout(this.tabindexTimeout);\n this.tabindexTimeout = setTimeout(function () {\n if (_this4.state.editing) {\n var focusableEl = _this4.props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(_this4.el, ':not(.p-cell-editor-key-helper)') : DomHandler.findSingle(_this4.el, '.p-row-editor-save');\n focusableEl && focusableEl.focus();\n }\n\n _this4.keyHelper && (_this4.keyHelper.tabIndex = _this4.state.editing ? -1 : 0);\n }, 1);\n }\n }, {\n key: \"focusOnInit\",\n value: function focusOnInit() {\n var _this5 = this;\n\n clearTimeout(this.initFocusTimeout);\n this.initFocusTimeout = setTimeout(function () {\n var focusableEl = _this5.props.editMode === 'row' ? DomHandler.findSingle(_this5.el, '.p-row-editor-init') : null;\n focusableEl && focusableEl.focus();\n }, 1);\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$7({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n var isSameStyle = this.state.styleObject['left'] === styleObject['left'] && this.state.styleObject['right'] === styleObject['right'];\n !isSameStyle && this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"editorCallback\",\n value: function editorCallback(val) {\n var editingRowData = _objectSpread$7({}, this.state.editingRowData);\n\n editingRowData[this.field] = val;\n this.setState({\n editingRowData: editingRowData\n }); // update editing meta for complete methods on row mode\n\n this.props.editingMeta[this.props.rowIndex].data[this.field] = val;\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n var _this6 = this;\n\n var params = this.getCellCallbackParams(event);\n\n if (this.props.editMode !== 'row' && this.isEditable() && !this.state.editing && (this.props.selectOnEdit || !this.props.selectOnEdit && this.props.selected)) {\n this.selfClick = true;\n var onBeforeCellEditShow = this.getColumnProp('onBeforeCellEditShow');\n var onCellEditInit = this.getColumnProp('onCellEditInit');\n var cellEditValidatorEvent = this.getColumnProp('cellEditValidatorEvent');\n\n if (onBeforeCellEditShow) {\n onBeforeCellEditShow(params);\n } // If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.\n\n\n setTimeout(function () {\n _this6.setState({\n editing: true\n }, function () {\n if (onCellEditInit) {\n onCellEditInit(params);\n }\n\n if (cellEditValidatorEvent === 'click') {\n _this6.bindDocumentEditListener();\n\n _this6.overlayEventListener = function (e) {\n if (!_this6.isOutsideClicked(e.target)) {\n _this6.selfClick = true;\n }\n };\n\n OverlayService.on('overlay-click', _this6.overlayEventListener);\n }\n });\n }, 1);\n }\n\n if (this.props.allowCellSelection && this.props.onClick) {\n this.props.onClick(params);\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n var params = this.getCellCallbackParams(event);\n\n if (this.props.onMouseDown) {\n this.props.onMouseDown(params);\n }\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n var params = this.getCellCallbackParams(event);\n\n if (this.props.onMouseUp) {\n this.props.onMouseUp(params);\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.props.editMode !== 'row') {\n if (event.which === 13 || event.which === 9) {\n // tab || enter\n this.switchCellToViewMode(event, true);\n }\n\n if (event.which === 27) {\n // escape\n this.switchCellToViewMode(event, false);\n }\n }\n\n if (this.props.allowCellSelection) {\n var target = event.target,\n cell = event.currentTarget;\n\n switch (event.which) {\n //left arrow\n case 37:\n var prevCell = this.findPrevSelectableCell(cell);\n\n if (prevCell) {\n this.changeTabIndex(cell, prevCell);\n prevCell.focus();\n }\n\n event.preventDefault();\n break;\n //right arrow\n\n case 39:\n var nextCell = this.findNextSelectableCell(cell);\n\n if (nextCell) {\n this.changeTabIndex(cell, nextCell);\n nextCell.focus();\n }\n\n event.preventDefault();\n break;\n //up arrow\n\n case 38:\n var upCell = this.findUpSelectableCell(cell);\n\n if (upCell) {\n this.changeTabIndex(cell, upCell);\n upCell.focus();\n }\n\n event.preventDefault();\n break;\n //down arrow\n\n case 40:\n var downCell = this.findDownSelectableCell(cell);\n\n if (downCell) {\n this.changeTabIndex(cell, downCell);\n downCell.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n // @deprecated\n if (!DomHandler.isClickable(target)) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n //space\n\n case 32:\n if (!DomHandler.isClickable(target) && !target.readOnly) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n }\n }\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n this.selfClick = false;\n\n if (this.props.editMode !== 'row' && this.state.editing && this.getColumnProp('cellEditValidatorEvent') === 'blur') {\n this.switchCellToViewMode(event, true);\n }\n }\n }, {\n key: \"onEditorFocus\",\n value: function onEditorFocus(event) {\n this.onClick(event);\n }\n }, {\n key: \"onRadioChange\",\n value: function onRadioChange(event) {\n this.props.onRadioChange({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(event) {\n this.props.onCheckboxChange({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onRowToggle\",\n value: function onRowToggle(event) {\n this.props.onRowToggle({\n originalEvent: event,\n data: this.props.rowData\n });\n event.preventDefault();\n }\n }, {\n key: \"onRowEditInit\",\n value: function onRowEditInit(event) {\n this.props.onRowEditInit({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onRowEditSave\",\n value: function onRowEditSave(event) {\n this.props.onRowEditSave({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n this.focusOnInit();\n }\n }, {\n key: \"onRowEditCancel\",\n value: function onRowEditCancel(event) {\n this.props.onRowEditCancel({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n this.focusOnInit();\n }\n }, {\n key: \"bindDocumentEditListener\",\n value: function bindDocumentEditListener() {\n var _this7 = this;\n\n if (!this.documentEditListener) {\n this.documentEditListener = function (e) {\n if (!_this7.selfClick && _this7.isOutsideClicked(e.target)) {\n _this7.switchCellToViewMode(e, true);\n }\n\n _this7.selfClick = false;\n };\n\n document.addEventListener('click', this.documentEditListener, true);\n }\n }\n }, {\n key: \"unbindDocumentEditListener\",\n value: function unbindDocumentEditListener() {\n if (this.documentEditListener) {\n document.removeEventListener('click', this.documentEditListener, true);\n this.documentEditListener = null;\n this.selfClick = false;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n\n if (this.props.editMode === 'cell' || this.props.editMode === 'row') {\n this.focusOnElement();\n\n if (prevProps.editingMeta !== this.props.editingMeta) {\n this.setState({\n editingRowData: this.getEditingRowData()\n });\n }\n\n if (prevState.editing !== this.state.editing) {\n var callbackParams = this.getCellCallbackParams();\n\n var params = _objectSpread$7(_objectSpread$7({}, callbackParams), {}, {\n editing: this.state.editing\n });\n\n this.props.onEditingMetaChange(params);\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentEditListener();\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n }\n }, {\n key: \"renderLoading\",\n value: function renderLoading() {\n var options = this.getVirtualScrollerOption('getLoaderOptions')(this.props.rowIndex, {\n cellIndex: this.props.index,\n cellFirst: this.props.index === 0,\n cellLast: this.props.index === this.getVirtualScrollerOption('columns').length - 1,\n cellEven: this.props.index % 2 === 0,\n cellOdd: this.props.index % 2 !== 0,\n column: this.props.column,\n field: this.field\n });\n var content = ObjectUtils.getJSXElement(this.getVirtualScrollerOption('loadingTemplate'), options);\n return /*#__PURE__*/React.createElement(\"td\", null, content);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this8 = this;\n\n var content, editorKeyHelper;\n var cellSelected = this.props.allowCellSelection && this.isSelected();\n var isRowEditor = this.props.editMode === 'row';\n var tabIndex = this.getTabIndex(cellSelected);\n var selectionMode = this.getColumnProp('selectionMode');\n var rowReorder = this.getColumnProp('rowReorder');\n var expander = this.getColumnProp('expander');\n var rowEditor = this.getColumnProp('rowEditor');\n var header = this.getColumnProp('header');\n var body = this.getColumnProp('body');\n var editor = this.getColumnProp('editor');\n var frozen = this.getColumnProp('frozen');\n var align = this.getColumnProp('align');\n var value = this.resolveFieldData();\n var cellClassName = ObjectUtils.getPropValue(this.props.cellClassName, value, {\n props: this.props.tableProps,\n rowData: this.props.rowData,\n column: this.props.column\n });\n var className = classNames(this.getColumnProp('bodyClassName'), this.getColumnProp('className'), cellClassName, _defineProperty({\n 'p-selection-column': selectionMode !== null,\n 'p-editable-column': editor,\n 'p-cell-editing': editor && this.state.editing,\n 'p-frozen-column': frozen,\n 'p-selectable-cell': this.props.allowCellSelection && this.props.isSelectable({\n data: this.getCellParams(),\n index: this.props.rowIndex\n }),\n 'p-highlight': cellSelected\n }, \"p-align-\".concat(align), !!align));\n var style = this.getStyle();\n var title = this.props.responsiveLayout === 'stack' && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-title\"\n }, ObjectUtils.getJSXElement(header, {\n props: this.props.tableProps\n }));\n\n if (selectionMode) {\n var showSelection = this.props.showSelectionElement ? this.props.showSelectionElement(this.props.rowData, {\n rowIndex: this.props.rowIndex,\n props: this.props.tableProps\n }) : true;\n content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {\n checked: this.props.selected,\n onChange: this.onRadioChange,\n tabIndex: this.props.tabIndex,\n tableSelector: this.props.tableSelector\n }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {\n checked: this.props.selected,\n onChange: this.onCheckboxChange,\n tabIndex: this.props.tabIndex\n }));\n } else if (rowReorder) {\n var showReorder = this.props.showRowReorderElement ? this.props.showRowReorderElement(this.props.rowData, {\n rowIndex: this.props.rowIndex,\n props: this.props.tableProps\n }) : true;\n content = showReorder && /*#__PURE__*/React.createElement(\"i\", {\n className: classNames('p-datatable-reorderablerow-handle', this.getColumnProp('rowReorderIcon'))\n });\n } else if (expander) {\n var iconClassName = classNames('p-row-toggler-icon', this.props.expanded ? this.props.expandedRowIcon : this.props.collapsedRowIcon);\n var ariaControls = \"\".concat(this.props.tableSelector, \"_content_\").concat(this.props.rowIndex, \"_expanded\");\n var expanderProps = {\n onClick: this.onRowToggle,\n className: 'p-row-toggler p-link',\n iconClassName: iconClassName\n };\n content = /*#__PURE__*/React.createElement(\"button\", {\n className: expanderProps.className,\n onClick: expanderProps.onClick,\n type: \"button\",\n \"aria-expanded\": this.props.expanded,\n \"aria-controls\": ariaControls,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: expanderProps.iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (body) {\n expanderProps['element'] = content;\n content = ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n expander: expanderProps\n });\n }\n } else if (isRowEditor && rowEditor) {\n var rowEditorProps = {};\n\n if (this.state.editing) {\n rowEditorProps = {\n editing: true,\n onSaveClick: this.onRowEditSave,\n saveClassName: 'p-row-editor-save p-link',\n saveIconClassName: 'p-row-editor-save-icon pi pi-fw pi-check',\n onCancelClick: this.onRowEditCancel,\n cancelClassName: 'p-row-editor-cancel p-link',\n cancelIconClassName: 'p-row-editor-cancel-icon pi pi-fw pi-times'\n };\n content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onSaveClick,\n className: rowEditorProps.saveClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.saveIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onCancelClick,\n className: rowEditorProps.cancelClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.cancelIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null)));\n } else {\n rowEditorProps = {\n editing: false,\n onInitClick: this.onRowEditInit,\n initClassName: 'p-row-editor-init p-link',\n initIconClassName: 'p-row-editor-init-icon pi pi-fw pi-pencil'\n };\n content = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onInitClick,\n className: rowEditorProps.initClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.initIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n if (body) {\n rowEditorProps['element'] = content;\n content = ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n rowEditor: rowEditorProps\n });\n }\n } else if (body && !this.state.editing) {\n content = body ? ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps\n }) : value;\n } else if (editor && this.state.editing) {\n content = ObjectUtils.getJSXElement(editor, {\n rowData: this.state.editingRowData,\n value: this.resolveFieldData(this.state.editingRowData),\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n editorCallback: this.editorCallback\n });\n } else {\n content = value;\n }\n\n if (!isRowEditor && editor) {\n /* eslint-disable */\n editorKeyHelper = /*#__PURE__*/React.createElement(\"a\", {\n tabIndex: \"0\",\n ref: function ref(el) {\n return _this8.keyHelper = el;\n },\n className: \"p-cell-editor-key-helper p-hidden-accessible\",\n onFocus: this.onEditorFocus\n }, /*#__PURE__*/React.createElement(\"span\", null));\n /* eslint-enable */\n }\n\n return /*#__PURE__*/React.createElement(\"td\", {\n ref: function ref(el) {\n return _this8.el = el;\n },\n style: style,\n className: className,\n rowSpan: this.props.rowSpan,\n tabIndex: tabIndex,\n role: \"cell\",\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n onBlur: this.onBlur,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp\n }, editorKeyHelper, title, content);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.getVirtualScrollerOption('loading') ? this.renderLoading() : this.renderElement();\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.editMode === 'row' && nextProps.editing !== prevState.editing) {\n return {\n editing: nextProps.editing\n };\n }\n\n return null;\n }\n }]);\n\n return BodyCell;\n}(Component);\n\nfunction ownKeys$6(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$6(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$9(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$9();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$9() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar BodyRow = /*#__PURE__*/function (_Component) {\n _inherits(BodyRow, _Component);\n\n var _super = _createSuper$9(BodyRow);\n\n function BodyRow(props) {\n var _this;\n\n _classCallCheck(this, BodyRow);\n\n _this = _super.call(this, props);\n\n if (!_this.props.onRowEditChange) {\n _this.state = {\n editing: false\n };\n }\n\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onDoubleClick = _this.onDoubleClick.bind(_assertThisInitialized(_this));\n _this.onRightClick = _this.onRightClick.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onDragEnd = _this.onDragEnd.bind(_assertThisInitialized(_this));\n _this.onDragOver = _this.onDragOver.bind(_assertThisInitialized(_this));\n _this.onDragLeave = _this.onDragLeave.bind(_assertThisInitialized(_this));\n _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this));\n _this.onEditInit = _this.onEditInit.bind(_assertThisInitialized(_this));\n _this.onEditSave = _this.onEditSave.bind(_assertThisInitialized(_this));\n _this.onEditCancel = _this.onEditCancel.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(BodyRow, [{\n key: \"isFocusable\",\n value: function isFocusable() {\n return this.props.selectionMode && this.props.selectionModeInColumn !== 'single' && this.props.selectionModeInColumn !== 'multiple';\n }\n }, {\n key: \"isGrouped\",\n value: function isGrouped(column) {\n if (this.props.groupRowsBy && this.getColumnProp(column, 'field')) {\n if (Array.isArray(this.props.groupRowsBy)) return this.props.groupRowsBy.indexOf(column.props.field) > -1;else return this.props.groupRowsBy === column.props.field;\n }\n\n return false;\n }\n }, {\n key: \"equals\",\n value: function equals(data1, data2) {\n return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(col, prop) {\n return col ? col.props[prop] : null;\n }\n }, {\n key: \"getEditing\",\n value: function getEditing() {\n return this.props.onRowEditChange ? this.props.editing : this.state.editing;\n }\n }, {\n key: \"getTabIndex\",\n value: function getTabIndex() {\n return this.isFocusable() && !this.props.allowCellSelection ? this.props.index === 0 ? this.props.tabIndex : -1 : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection, rowData) {\n var _this2 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this2.equals(rowData, data);\n });\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(currentRow, nextRow) {\n if (currentRow && nextRow) {\n currentRow.tabIndex = -1;\n nextRow.tabIndex = this.props.tabIndex;\n }\n }\n }, {\n key: \"findNextSelectableRow\",\n value: function findNextSelectableRow(row) {\n var nextRow = row.nextElementSibling;\n return nextRow ? DomHandler.hasClass(nextRow, 'p-selectable-row') ? nextRow : this.findNextSelectableRow(nextRow) : null;\n }\n }, {\n key: \"findPrevSelectableRow\",\n value: function findPrevSelectableRow(row) {\n var prevRow = row.previousElementSibling;\n return prevRow ? DomHandler.hasClass(prevRow, 'p-selectable-row') ? prevRow : this.findPrevSelectableRow(prevRow) : null;\n }\n }, {\n key: \"shouldRenderBodyCell\",\n value: function shouldRenderBodyCell(value, column, i) {\n if (this.getColumnProp(column, 'hidden')) {\n return false;\n } else if (this.props.rowGroupMode && this.props.rowGroupMode === 'rowspan' && this.isGrouped(column)) {\n var prevRowData = value[i - 1];\n\n if (prevRowData) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(value[i], this.getColumnProp(column, 'field'));\n var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.getColumnProp(column, 'field'));\n return currentRowFieldData !== previousRowFieldData;\n }\n }\n\n return true;\n }\n }, {\n key: \"calculateRowGroupSize\",\n value: function calculateRowGroupSize(value, column, index) {\n if (this.isGrouped(column)) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(value[index], this.getColumnProp(column, 'field'));\n var nextRowFieldData = currentRowFieldData;\n var groupRowSpan = 0;\n\n while (currentRowFieldData === nextRowFieldData) {\n groupRowSpan++;\n var nextRowData = value[++index];\n\n if (nextRowData) {\n nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.getColumnProp(column, 'field'));\n } else {\n break;\n }\n }\n\n return groupRowSpan === 1 ? null : groupRowSpan;\n } else {\n return null;\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n this.props.onRowClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDoubleClick\",\n value: function onDoubleClick(event) {\n this.props.onRowDoubleClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onRightClick\",\n value: function onRightClick(event) {\n this.props.onRowRightClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n this.props.onRowTouchEnd(event);\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.isFocusable() && !this.props.allowCellSelection) {\n var target = event.target,\n row = event.currentTarget;\n\n switch (event.which) {\n //down arrow\n case 40:\n var nextRow = this.findNextSelectableRow(row);\n\n if (nextRow) {\n this.changeTabIndex(row, nextRow);\n nextRow.focus();\n }\n\n event.preventDefault();\n break;\n //up arrow\n\n case 38:\n var prevRow = this.findPrevSelectableRow(row);\n\n if (prevRow) {\n this.changeTabIndex(row, prevRow);\n prevRow.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n // @deprecated\n if (!DomHandler.isClickable(target)) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n //space\n\n case 32:\n if (!DomHandler.isClickable(target) && !target.readOnly) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n }\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n this.props.onRowMouseDown({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n this.props.onRowMouseUp({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n this.props.onRowDragStart({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragOver\",\n value: function onDragOver(event) {\n this.props.onRowDragOver({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragLeave\",\n value: function onDragLeave(event) {\n this.props.onRowDragLeave({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n this.props.onRowDragEnd({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDrop\",\n value: function onDrop(event) {\n this.props.onRowDrop({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onEditChange\",\n value: function onEditChange(e, editing) {\n if (this.props.onRowEditChange) {\n var editingRows;\n var dataKey = this.props.dataKey;\n var originalEvent = e.originalEvent,\n data = e.data,\n index = e.index;\n\n if (dataKey) {\n var dataKeyValue = String(ObjectUtils.resolveFieldData(data, dataKey));\n editingRows = this.props.editingRows ? _objectSpread$6({}, this.props.editingRows) : {};\n if (editingRows[dataKeyValue] != null) delete editingRows[dataKeyValue];else editingRows[dataKeyValue] = true;\n } else {\n var editingRowIndex = this.findIndex(this.props.editingRows, data);\n editingRows = this.props.editingRows ? _toConsumableArray(this.props.editingRows) : [];\n if (editingRowIndex !== -1) editingRows = editingRows.filter(function (val, i) {\n return i !== editingRowIndex;\n });else editingRows.push(data);\n }\n\n this.props.onRowEditChange({\n originalEvent: originalEvent,\n data: editingRows,\n index: index\n });\n } else {\n this.setState({\n editing: editing\n });\n }\n }\n }, {\n key: \"onEditInit\",\n value: function onEditInit(e) {\n var event = e.originalEvent;\n\n if (this.props.onRowEditInit) {\n this.props.onRowEditInit({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n\n this.onEditChange(e, true);\n event.preventDefault();\n }\n }, {\n key: \"onEditSave\",\n value: function onEditSave(e) {\n var event = e.originalEvent;\n var valid = this.props.rowEditValidator ? this.props.rowEditValidator(this.props.rowData, {\n props: this.props.tableProps\n }) : true;\n\n if (this.props.onRowEditSave) {\n this.props.onRowEditSave({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index,\n valid: valid\n });\n }\n\n if (valid) {\n if (this.props.onRowEditComplete) {\n this.props.onRowEditComplete(e);\n }\n\n this.onEditChange(e, false);\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onEditCancel\",\n value: function onEditCancel(e) {\n var event = e.originalEvent;\n\n if (this.props.onRowEditCancel) {\n this.props.onRowEditCancel({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n\n this.onEditChange(e, false);\n event.preventDefault();\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this3 = this;\n\n return this.props.columns.map(function (col, i) {\n if (_this3.shouldRenderBodyCell(_this3.props.value, col, _this3.props.index)) {\n var key = \"\".concat(_this3.getColumnProp(col, 'columnKey') || _this3.getColumnProp(col, 'field'), \"_\").concat(i);\n var rowSpan = _this3.props.rowGroupMode === 'rowspan' ? _this3.calculateRowGroupSize(_this3.props.value, col, _this3.props.index) : null;\n\n var editing = _this3.getEditing();\n\n return /*#__PURE__*/React.createElement(BodyCell, {\n key: key,\n value: _this3.props.value,\n tableProps: _this3.props.tableProps,\n tableSelector: _this3.props.tableSelector,\n column: col,\n rowData: _this3.props.rowData,\n rowIndex: _this3.props.index,\n index: i,\n rowSpan: rowSpan,\n dataKey: _this3.props.dataKey,\n editing: editing,\n editingMeta: _this3.props.editingMeta,\n editMode: _this3.props.editMode,\n onRowEditInit: _this3.onEditInit,\n onRowEditSave: _this3.onEditSave,\n onRowEditCancel: _this3.onEditCancel,\n onEditingMetaChange: _this3.props.onEditingMetaChange,\n onRowToggle: _this3.props.onRowToggle,\n selection: _this3.props.selection,\n allowCellSelection: _this3.props.allowCellSelection,\n compareSelectionBy: _this3.props.compareSelectionBy,\n selectOnEdit: _this3.props.selectOnEdit,\n selected: _this3.props.selected,\n onClick: _this3.props.onCellClick,\n onMouseDown: _this3.props.onCellMouseDown,\n onMouseUp: _this3.props.onCellMouseUp,\n tabIndex: _this3.props.tabIndex,\n cellClassName: _this3.props.cellClassName,\n responsiveLayout: _this3.props.responsiveLayout,\n frozenRow: _this3.props.frozenRow,\n isSelectable: _this3.props.isSelectable,\n showSelectionElement: _this3.props.showSelectionElement,\n showRowReorderElement: _this3.props.showRowReorderElement,\n onRadioChange: _this3.props.onRadioChange,\n onCheckboxChange: _this3.props.onCheckboxChange,\n expanded: _this3.props.expanded,\n expandedRowIcon: _this3.props.expandedRowIcon,\n collapsedRowIcon: _this3.props.collapsedRowIcon,\n virtualScrollerOptions: _this3.props.virtualScrollerOptions\n });\n }\n\n return null;\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var rowClassName = ObjectUtils.getPropValue(this.props.rowClassName, this.props.rowData, {\n props: this.props.tableProps\n });\n var className = classNames(rowClassName, {\n 'p-highlight': !this.props.allowCellSelection && this.props.selected,\n 'p-highlight-contextmenu': this.props.contextMenuSelected,\n 'p-selectable-row': this.props.allowRowSelection && this.props.isSelectable({\n data: this.props.rowData,\n index: this.props.index\n }),\n 'p-row-odd': this.props.index % 2 !== 0\n });\n var content = this.renderContent();\n var tabIndex = this.getTabIndex();\n return /*#__PURE__*/React.createElement(\"tr\", {\n ref: function ref(el) {\n return _this4.el = el;\n },\n role: \"row\",\n tabIndex: tabIndex,\n className: className,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n onClick: this.onClick,\n onDoubleClick: this.onDoubleClick,\n onContextMenu: this.onRightClick,\n onTouchEnd: this.onTouchEnd,\n onKeyDown: this.onKeyDown,\n onDragStart: this.onDragStart,\n onDragOver: this.onDragOver,\n onDragLeave: this.onDragLeave,\n onDragEnd: this.onDragEnd,\n onDrop: this.onDrop\n }, content);\n }\n }]);\n\n return BodyRow;\n}(Component);\n\nfunction _createSuper$8(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$8();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$8() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar RowTogglerButton = /*#__PURE__*/function (_Component) {\n _inherits(RowTogglerButton, _Component);\n\n var _super = _createSuper$8(RowTogglerButton);\n\n function RowTogglerButton(props) {\n var _this;\n\n _classCallCheck(this, RowTogglerButton);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowTogglerButton, [{\n key: \"onClick\",\n value: function onClick(event) {\n this.props.onClick({\n originalEvent: event,\n data: this.props.rowData\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var iconClassName = classNames('p-row-toggler-icon', this.props.expanded ? this.props.expandedRowIcon : this.props.collapsedRowIcon);\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.onClick,\n className: \"p-row-toggler p-link\",\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return RowTogglerButton;\n}(Component);\n\nvar _excluded = [\"originalEvent\"];\n\nfunction ownKeys$5(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$5(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$7(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$7();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$7() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar TableBody = /*#__PURE__*/function (_Component) {\n _inherits(TableBody, _Component);\n\n var _super = _createSuper$7(TableBody);\n\n function TableBody(props) {\n var _this;\n\n _classCallCheck(this, TableBody);\n\n _this = _super.call(this, props);\n _this.state = {\n rowGroupHeaderStyleObject: {}\n }; // row\n\n _this.onRowClick = _this.onRowClick.bind(_assertThisInitialized(_this));\n _this.onRowDoubleClick = _this.onRowDoubleClick.bind(_assertThisInitialized(_this));\n _this.onRowRightClick = _this.onRowRightClick.bind(_assertThisInitialized(_this));\n _this.onRowTouchEnd = _this.onRowTouchEnd.bind(_assertThisInitialized(_this));\n _this.onRowMouseDown = _this.onRowMouseDown.bind(_assertThisInitialized(_this));\n _this.onRowMouseUp = _this.onRowMouseUp.bind(_assertThisInitialized(_this));\n _this.onRowToggle = _this.onRowToggle.bind(_assertThisInitialized(_this)); // drag\n\n _this.onRowDragStart = _this.onRowDragStart.bind(_assertThisInitialized(_this));\n _this.onRowDragOver = _this.onRowDragOver.bind(_assertThisInitialized(_this));\n _this.onRowDragLeave = _this.onRowDragLeave.bind(_assertThisInitialized(_this));\n _this.onRowDragEnd = _this.onRowDragEnd.bind(_assertThisInitialized(_this));\n _this.onRowDrop = _this.onRowDrop.bind(_assertThisInitialized(_this)); // selection\n\n _this.onRadioChange = _this.onRadioChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n _this.onDragSelectionMouseMove = _this.onDragSelectionMouseMove.bind(_assertThisInitialized(_this));\n _this.onDragSelectionMouseUp = _this.onDragSelectionMouseUp.bind(_assertThisInitialized(_this));\n _this.isSelectable = _this.isSelectable.bind(_assertThisInitialized(_this)); // cell\n\n _this.onCellClick = _this.onCellClick.bind(_assertThisInitialized(_this));\n _this.onCellMouseDown = _this.onCellMouseDown.bind(_assertThisInitialized(_this));\n _this.onCellMouseUp = _this.onCellMouseUp.bind(_assertThisInitialized(_this));\n _this.ref = _this.ref.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(TableBody, [{\n key: \"ref\",\n value: function ref(el) {\n this.el = el;\n this.props.virtualScrollerContentRef && this.props.virtualScrollerContentRef(el);\n }\n }, {\n key: \"equals\",\n value: function equals(data1, data2) {\n if (this.allowCellSelection()) return (data1.rowIndex === data2.rowIndex || data1.rowData === data2.rowData) && (data1.field === data2.field || data1.cellIndex === data2.cellIndex);else return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"isSubheaderGrouping\",\n value: function isSubheaderGrouping() {\n return this.props.rowGroupMode && this.props.rowGroupMode === 'subheader';\n }\n }, {\n key: \"isSelectionEnabled\",\n value: function isSelectionEnabled() {\n return this.props.selectionMode || this.props.selectionModeInColumn !== null || this.props.columns && this.props.columns.some(function (col) {\n return col && !!col.props.selectionMode;\n });\n }\n }, {\n key: \"isRadioSelectionMode\",\n value: function isRadioSelectionMode() {\n return this.props.selectionMode === 'radiobutton';\n }\n }, {\n key: \"isCheckboxSelectionMode\",\n value: function isCheckboxSelectionMode() {\n return this.props.selectionMode === 'checkbox';\n }\n }, {\n key: \"isRadioSelectionModeInColumn\",\n value: function isRadioSelectionModeInColumn() {\n return this.props.selectionModeInColumn === 'single';\n }\n }, {\n key: \"isCheckboxSelectionModeInColumn\",\n value: function isCheckboxSelectionModeInColumn() {\n return this.props.selectionModeInColumn === 'multiple';\n }\n }, {\n key: \"isSingleSelection\",\n value: function isSingleSelection() {\n return this.props.selectionMode === 'single' && !this.isCheckboxSelectionModeInColumn() || !this.isRadioSelectionMode() && this.isRadioSelectionModeInColumn();\n }\n }, {\n key: \"isMultipleSelection\",\n value: function isMultipleSelection() {\n return this.props.selectionMode === 'multiple' && !this.isRadioSelectionModeInColumn() || this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"isRadioOnlySelection\",\n value: function isRadioOnlySelection() {\n return this.isRadioSelectionMode() && this.isRadioSelectionModeInColumn();\n }\n }, {\n key: \"isCheckboxOnlySelection\",\n value: function isCheckboxOnlySelection() {\n return this.isCheckboxSelectionMode() && this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(rowData) {\n if (rowData && this.props.selection) {\n return this.props.selection instanceof Array ? this.findIndex(this.props.selection, rowData) > -1 : this.equals(rowData, this.props.selection);\n }\n\n return false;\n }\n }, {\n key: \"isContextMenuSelected\",\n value: function isContextMenuSelected(rowData) {\n if (rowData && this.props.contextMenuSelection) {\n return this.equals(rowData, this.props.contextMenuSelection);\n }\n\n return false;\n }\n }, {\n key: \"isSelectable\",\n value: function isSelectable(options) {\n return this.props.isDataSelectable ? this.props.isDataSelectable(options) : true;\n }\n }, {\n key: \"isRowExpanded\",\n value: function isRowExpanded(rowData) {\n if (rowData && this.props.expandedRows) {\n if (this.isSubheaderGrouping() && this.props.expandableRowGroups) {\n return this.isRowGroupExpanded(rowData);\n } else {\n if (this.props.dataKey) return this.props.expandedRows ? this.props.expandedRows[ObjectUtils.resolveFieldData(rowData, this.props.dataKey)] !== undefined : false;else return this.findIndex(this.props.expandedRows, rowData) !== -1;\n }\n }\n\n return false;\n }\n }, {\n key: \"isRowGroupExpanded\",\n value: function isRowGroupExpanded(rowData) {\n var _this2 = this;\n\n if (this.props.dataKey === this.props.groupRowsBy) return Object.keys(this.props.expandedRows).some(function (data) {\n return ObjectUtils.equals(data, ObjectUtils.resolveFieldData(rowData, _this2.props.dataKey));\n });else return this.props.expandedRows.some(function (data) {\n return ObjectUtils.equals(data, rowData, _this2.props.groupRowsBy);\n });\n }\n }, {\n key: \"isRowEditing\",\n value: function isRowEditing(rowData) {\n if (this.props.editMode === 'row' && rowData && this.props.editingRows) {\n if (this.props.dataKey) return this.props.editingRows ? this.props.editingRows[ObjectUtils.resolveFieldData(rowData, this.props.dataKey)] !== undefined : false;else return this.findIndex(this.props.editingRows, rowData) !== -1;\n }\n\n return false;\n }\n }, {\n key: \"allowDrag\",\n value: function allowDrag(event) {\n return this.props.dragSelection && this.isMultipleSelection() && !event.originalEvent.shiftKey;\n }\n }, {\n key: \"allowRowDrag\",\n value: function allowRowDrag(event) {\n return !this.allowCellSelection() && this.allowDrag(event);\n }\n }, {\n key: \"allowCellDrag\",\n value: function allowCellDrag(event) {\n return this.allowCellSelection() && this.allowDrag(event);\n }\n }, {\n key: \"allowSelection\",\n value: function allowSelection(event) {\n return !DomHandler.isClickable(event.originalEvent.target);\n }\n }, {\n key: \"allowMetaKeySelection\",\n value: function allowMetaKeySelection(event) {\n return !this.rowTouched && (!this.props.metaKeySelection || this.props.metaKeySelection && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));\n }\n }, {\n key: \"allowRangeSelection\",\n value: function allowRangeSelection(event) {\n return this.isMultipleSelection() && event.originalEvent.shiftKey && this.anchorRowIndex !== null;\n }\n }, {\n key: \"allowRowSelection\",\n value: function allowRowSelection() {\n return (this.props.selectionMode || this.props.selectionModeInColumn) && !this.isRadioOnlySelection() && !this.isCheckboxOnlySelection();\n }\n }, {\n key: \"allowCellSelection\",\n value: function allowCellSelection() {\n return this.props.cellSelection && !this.isRadioSelectionModeInColumn() && !this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"getColumnsLength\",\n value: function getColumnsLength() {\n return this.props.columns ? this.props.columns.length : 0;\n }\n }, {\n key: \"getVirtualScrollerOption\",\n value: function getVirtualScrollerOption(option, options) {\n options = options || this.props.virtualScrollerOptions;\n return options ? options[option] : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection, rowData) {\n var _this3 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this3.equals(rowData, data);\n });\n }\n }, {\n key: \"rowGroupHeaderStyle\",\n value: function rowGroupHeaderStyle() {\n if (this.props.scrollable) {\n return {\n top: this.state.rowGroupHeaderStyleObject['top']\n };\n }\n\n return null;\n }\n }, {\n key: \"getRowKey\",\n value: function getRowKey(rowData, index) {\n return this.props.dataKey ? ObjectUtils.resolveFieldData(rowData, this.props.dataKey) + '_' + index : index;\n }\n }, {\n key: \"shouldRenderRowGroupHeader\",\n value: function shouldRenderRowGroupHeader(value, rowData, i) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.props.groupRowsBy);\n var prevRowData = value[i - 1];\n\n if (prevRowData) {\n var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.props.groupRowsBy);\n return currentRowFieldData !== previousRowFieldData;\n } else {\n return true;\n }\n }\n }, {\n key: \"shouldRenderRowGroupFooter\",\n value: function shouldRenderRowGroupFooter(value, rowData, i, expanded) {\n if (this.props.expandableRowGroups && !expanded) {\n return false;\n } else {\n var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.props.groupRowsBy);\n var nextRowData = value[i + 1];\n\n if (nextRowData) {\n var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.props.groupRowsBy);\n return currentRowFieldData !== nextRowFieldData;\n } else {\n return true;\n }\n }\n }\n }, {\n key: \"updateFrozenRowStickyPosition\",\n value: function updateFrozenRowStickyPosition() {\n this.el.style.top = DomHandler.getOuterHeight(this.el.previousElementSibling) + 'px';\n }\n }, {\n key: \"updateFrozenRowGroupHeaderStickyPosition\",\n value: function updateFrozenRowGroupHeaderStickyPosition() {\n var tableHeaderHeight = DomHandler.getOuterHeight(this.el.previousElementSibling);\n var top = tableHeaderHeight + 'px';\n\n if (this.state.rowGroupHeaderStyleObject && this.state.rowGroupHeaderStyleObject.top !== top) {\n this.setState({\n rowGroupHeaderStyleObject: {\n top: top\n }\n });\n }\n }\n }, {\n key: \"updateVirtualScrollerPosition\",\n value: function updateVirtualScrollerPosition() {\n var tableHeaderHeight = DomHandler.getOuterHeight(this.el.previousElementSibling);\n this.el.style.top = (this.el.style.top || 0) + tableHeaderHeight + 'px';\n }\n }, {\n key: \"onSingleSelection\",\n value: function onSingleSelection(_ref) {\n var originalEvent = _ref.originalEvent,\n data = _ref.data,\n index = _ref.index,\n toggleable = _ref.toggleable,\n type = _ref.type;\n\n if (!this.isSelectable({\n data: data,\n index: index\n })) {\n return;\n }\n\n var selected = this.isSelected(data);\n var selection = this.props.selection;\n\n if (selected) {\n if (toggleable) {\n selection = null;\n this.onUnselect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n } else {\n selection = data;\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n\n this.focusOnElement(originalEvent, true);\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: type\n });\n }\n }\n }, {\n key: \"onMultipleSelection\",\n value: function onMultipleSelection(_ref2) {\n var _this4 = this;\n\n var originalEvent = _ref2.originalEvent,\n data = _ref2.data,\n index = _ref2.index,\n toggleable = _ref2.toggleable,\n type = _ref2.type;\n\n if (!this.isSelectable({\n data: data,\n index: index\n })) {\n return;\n }\n\n var selected = this.isSelected(data);\n var selection = this.props.selection || [];\n\n if (selected) {\n if (toggleable) {\n var selectionIndex = this.findIndex(selection, data);\n selection = this.props.selection.filter(function (val, i) {\n return i !== selectionIndex;\n });\n this.onUnselect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n } else if (selection.length) {\n this.props.selection.forEach(function (d) {\n return _this4.onUnselect({\n originalEvent: originalEvent,\n data: d,\n type: type\n });\n });\n selection = [data];\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n } else {\n selection = toggleable && this.isMultipleSelection() ? [].concat(_toConsumableArray(selection), [data]) : [data];\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n\n this.focusOnElement(originalEvent, true);\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: type\n });\n }\n }\n }, {\n key: \"onRangeSelection\",\n value: function onRangeSelection(event, type) {\n DomHandler.clearSelection();\n this.rangeRowIndex = this.allowCellSelection() ? event.rowIndex : event.index;\n var selectionInRange = this.selectRange(event);\n var selection = this.isMultipleSelection() ? _toConsumableArray(new Set([].concat(_toConsumableArray(this.props.selection || []), _toConsumableArray(selectionInRange)))) : selectionInRange;\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: event.originalEvent,\n value: selection,\n type: type\n });\n }\n\n this.anchorRowIndex = this.rangeRowIndex;\n this.anchorCellIndex = event.cellIndex;\n this.focusOnElement(event.originalEvent, false);\n }\n }, {\n key: \"selectRange\",\n value: function selectRange(event) {\n var rangeStart, rangeEnd;\n var isLazyAndPaginator = this.props.lazy && this.props.paginator;\n\n if (isLazyAndPaginator) {\n this.anchorRowIndex += this.anchorRowFirst;\n this.rangeRowIndex += this.props.first;\n }\n\n if (this.rangeRowIndex > this.anchorRowIndex) {\n rangeStart = this.anchorRowIndex;\n rangeEnd = this.rangeRowIndex;\n } else if (this.rangeRowIndex < this.anchorRowIndex) {\n rangeStart = this.rangeRowIndex;\n rangeEnd = this.anchorRowIndex;\n } else {\n rangeStart = rangeEnd = this.rangeRowIndex;\n }\n\n if (isLazyAndPaginator) {\n rangeStart = Math.max(rangeStart - this.props.first, 0);\n rangeEnd -= this.props.first;\n }\n\n return this.allowCellSelection() ? this.selectRangeOnCell(event, rangeStart, rangeEnd) : this.selectRangeOnRow(event, rangeStart, rangeEnd);\n }\n }, {\n key: \"selectRangeOnRow\",\n value: function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {\n var value = this.props.value;\n var selection = [];\n\n for (var i = rowRangeStart; i <= rowRangeEnd; i++) {\n var rangeRowData = value[i];\n\n if (!this.isSelectable({\n data: rangeRowData,\n index: i\n })) {\n continue;\n }\n\n selection.push(rangeRowData);\n this.onSelect({\n originalEvent: event.originalEvent,\n data: rangeRowData,\n type: 'row'\n });\n }\n\n return selection;\n }\n }, {\n key: \"selectRangeOnCell\",\n value: function selectRangeOnCell(event, rowRangeStart, rowRangeEnd) {\n var cellRangeStart,\n cellRangeEnd,\n cellIndex = event.cellIndex;\n\n if (cellIndex > this.anchorCellIndex) {\n cellRangeStart = this.anchorCellIndex;\n cellRangeEnd = cellIndex;\n } else if (cellIndex < this.anchorCellIndex) {\n cellRangeStart = cellIndex;\n cellRangeEnd = this.anchorCellIndex;\n } else {\n cellRangeStart = cellRangeEnd = cellIndex;\n }\n\n var value = this.props.value;\n var selection = [];\n\n for (var i = rowRangeStart; i <= rowRangeEnd; i++) {\n var rowData = value[i];\n var columns = this.props.columns;\n\n for (var j = cellRangeStart; j <= cellRangeEnd; j++) {\n var field = columns[j].props.field;\n\n var _value = ObjectUtils.resolveFieldData(rowData, field);\n\n var rangeRowData = {\n value: _value,\n field: field,\n rowData: rowData,\n rowIndex: i,\n cellIndex: j,\n selected: true\n };\n\n if (!this.isSelectable({\n data: rangeRowData,\n index: i\n })) {\n continue;\n }\n\n selection.push(rangeRowData);\n this.onSelect({\n originalEvent: event.originalEvent,\n data: rangeRowData,\n type: 'cell'\n });\n }\n }\n\n return selection;\n }\n }, {\n key: \"onSelect\",\n value: function onSelect(event) {\n if (this.allowCellSelection()) this.props.onCellSelect && this.props.onCellSelect(_objectSpread$5(_objectSpread$5({\n originalEvent: event.originalEvent\n }, event.data), {}, {\n type: event.type\n }));else this.props.onRowSelect && this.props.onRowSelect(event);\n }\n }, {\n key: \"onUnselect\",\n value: function onUnselect(event) {\n if (this.allowCellSelection()) this.props.onCellUnselect && this.props.onCellUnselect(_objectSpread$5(_objectSpread$5({\n originalEvent: event.originalEvent\n }, event.data), {}, {\n type: event.type\n }));else this.props.onRowUnselect && this.props.onRowUnselect(event);\n }\n }, {\n key: \"enableDragSelection\",\n value: function enableDragSelection(event) {\n if (this.props.dragSelection && !this.dragSelectionHelper) {\n this.dragSelectionHelper = document.createElement('div');\n DomHandler.addClass(this.dragSelectionHelper, 'p-datatable-drag-selection-helper');\n this.initialDragPosition = {\n x: event.clientX,\n y: event.clientY\n };\n this.dragSelectionHelper.style.top = \"\".concat(event.pageY, \"px\");\n this.dragSelectionHelper.style.left = \"\".concat(event.pageX, \"px\");\n this.bindDragSelectionEvents();\n }\n }\n }, {\n key: \"focusOnElement\",\n value: function focusOnElement(event, isFocused) {\n var target = event.currentTarget;\n\n if (!this.allowCellSelection() && this.props.selectionAutoFocus) {\n if (this.isCheckboxSelectionModeInColumn()) {\n var checkbox = DomHandler.findSingle(target, 'td.p-selection-column .p-checkbox-box');\n checkbox && checkbox.focus();\n } else if (this.isRadioSelectionModeInColumn()) {\n var radio = DomHandler.findSingle(target, 'td.p-selection-column input[type=\"radio\"]');\n radio && radio.focus();\n }\n }\n\n !isFocused && target && target.focus();\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(event, type) {\n var target = event.currentTarget;\n var isSelectable = DomHandler.hasClass(target, type === 'cell' ? 'p-selectable-cell' : 'p-selectable-row');\n\n if (isSelectable) {\n var selector = type === 'cell' ? 'tr > td' : 'tr';\n var tabbableEl = DomHandler.findSingle(this.el, \"\".concat(selector, \"[tabindex=\\\"\").concat(this.props.tabIndex, \"\\\"]\"));\n\n if (tabbableEl && target) {\n tabbableEl.tabIndex = -1;\n target.tabIndex = this.props.tabIndex;\n }\n }\n }\n }, {\n key: \"onRowClick\",\n value: function onRowClick(event) {\n if (this.allowCellSelection() || !this.allowSelection(event)) {\n return;\n }\n\n this.props.onRowClick && this.props.onRowClick(event);\n\n if (this.allowRowSelection()) {\n if (this.allowRangeSelection(event)) {\n this.onRangeSelection(event, 'row');\n } else {\n var toggleable = this.isRadioSelectionModeInColumn() || this.isCheckboxSelectionModeInColumn() || this.allowMetaKeySelection(event);\n this.anchorRowIndex = event.index;\n this.rangeRowIndex = event.index;\n this.anchorRowFirst = this.props.first;\n\n if (this.isSingleSelection()) {\n this.onSingleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: toggleable,\n type: 'row'\n }));\n } else {\n this.onMultipleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: toggleable,\n type: 'row'\n }));\n }\n }\n\n this.changeTabIndex(event.originalEvent, 'row');\n } else {\n this.focusOnElement(event.originalEvent);\n }\n\n this.rowTouched = false;\n }\n }, {\n key: \"onRowDoubleClick\",\n value: function onRowDoubleClick(e) {\n var event = e.originalEvent;\n\n if (DomHandler.isClickable(event.target)) {\n return;\n }\n\n if (this.props.onRowDoubleClick) {\n this.props.onRowDoubleClick(e);\n }\n }\n }, {\n key: \"onRowRightClick\",\n value: function onRowRightClick(event) {\n if (this.props.onContextMenu || this.props.onContextMenuSelectionChange) {\n DomHandler.clearSelection();\n\n if (this.props.onContextMenuSelectionChange) {\n this.props.onContextMenuSelectionChange({\n originalEvent: event.originalEvent,\n value: event.data\n });\n }\n\n if (this.props.onContextMenu) {\n this.props.onContextMenu({\n originalEvent: event.originalEvent,\n data: event.data\n });\n }\n\n event.originalEvent.preventDefault();\n }\n }\n }, {\n key: \"onRowTouchEnd\",\n value: function onRowTouchEnd() {\n this.rowTouched = true;\n }\n }, {\n key: \"onRowMouseDown\",\n value: function onRowMouseDown(e) {\n DomHandler.clearSelection();\n var event = e.originalEvent;\n if (DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) event.currentTarget.draggable = true;else event.currentTarget.draggable = false;\n\n if (this.allowRowDrag(e)) {\n this.enableDragSelection(event, 'row');\n this.anchorRowIndex = e.index;\n this.rangeRowIndex = e.index;\n this.anchorRowFirst = this.props.first;\n }\n }\n }, {\n key: \"onRowMouseUp\",\n value: function onRowMouseUp(event) {\n var isSameRow = event.index === this.anchorRowIndex;\n\n if (this.allowRowDrag(event) && !isSameRow) {\n this.onRangeSelection(event, 'row');\n }\n }\n }, {\n key: \"onRowToggle\",\n value: function onRowToggle(event) {\n var expandedRows;\n var dataKey = this.props.dataKey;\n var hasDataKey = this.props.groupRowsBy ? dataKey === this.props.groupRowsBy : !!dataKey;\n\n if (hasDataKey) {\n var dataKeyValue = String(ObjectUtils.resolveFieldData(event.data, dataKey));\n expandedRows = this.props.expandedRows ? _objectSpread$5({}, this.props.expandedRows) : {};\n\n if (expandedRows[dataKeyValue] != null) {\n delete expandedRows[dataKeyValue];\n\n if (this.props.onRowCollapse) {\n this.props.onRowCollapse({\n originalEvent: event,\n data: event.data\n });\n }\n } else {\n expandedRows[dataKeyValue] = true;\n\n if (this.props.onRowExpand) {\n this.props.onRowExpand({\n originalEvent: event,\n data: event.data\n });\n }\n }\n } else {\n var expandedRowIndex = this.findIndex(this.props.expandedRows, event.data);\n expandedRows = this.props.expandedRows ? _toConsumableArray(this.props.expandedRows) : [];\n\n if (expandedRowIndex !== -1) {\n expandedRows = expandedRows.filter(function (val, i) {\n return i !== expandedRowIndex;\n });\n\n if (this.props.onRowCollapse) {\n this.props.onRowCollapse({\n originalEvent: event,\n data: event.data\n });\n }\n } else {\n expandedRows.push(event.data);\n\n if (this.props.onRowExpand) {\n this.props.onRowExpand({\n originalEvent: event,\n data: event.data\n });\n }\n }\n }\n\n if (this.props.onRowToggle) {\n this.props.onRowToggle({\n data: expandedRows\n });\n }\n }\n }, {\n key: \"onRowDragStart\",\n value: function onRowDragStart(e) {\n var event = e.originalEvent,\n index = e.index;\n this.rowDragging = true;\n this.draggedRowIndex = index;\n event.dataTransfer.setData('text', 'b'); // For firefox\n }\n }, {\n key: \"onRowDragOver\",\n value: function onRowDragOver(e) {\n var event = e.originalEvent,\n index = e.index;\n\n if (this.rowDragging && this.draggedRowIndex !== index) {\n var rowElement = event.currentTarget;\n var rowY = DomHandler.getOffset(rowElement).top + DomHandler.getWindowScrollTop();\n var pageY = event.pageY;\n var rowMidY = rowY + DomHandler.getOuterHeight(rowElement) / 2;\n var prevRowElement = rowElement.previousElementSibling;\n\n if (pageY < rowMidY) {\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n this.droppedRowIndex = index;\n if (prevRowElement) DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n } else {\n if (prevRowElement) DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n this.droppedRowIndex = index + 1;\n DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onRowDragLeave\",\n value: function onRowDragLeave(e) {\n var event = e.originalEvent;\n var rowElement = event.currentTarget;\n var prevRowElement = rowElement.previousElementSibling;\n\n if (prevRowElement) {\n DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');\n }\n\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');\n }\n }, {\n key: \"onRowDragEnd\",\n value: function onRowDragEnd(e) {\n var event = e.originalEvent;\n this.rowDragging = false;\n this.draggedRowIndex = null;\n this.droppedRowIndex = null;\n event.currentTarget.draggable = false;\n }\n }, {\n key: \"onRowDrop\",\n value: function onRowDrop(e) {\n var event = e.originalEvent;\n\n if (this.droppedRowIndex != null) {\n var dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;\n\n var val = _toConsumableArray(this.props.value);\n\n ObjectUtils.reorderArray(val, this.draggedRowIndex, dropIndex);\n\n if (this.props.onRowReorder) {\n this.props.onRowReorder({\n originalEvent: event,\n value: val,\n dragIndex: this.draggedRowIndex,\n dropIndex: this.droppedRowIndex\n });\n }\n } //cleanup\n\n\n this.onRowDragLeave(e);\n this.onRowDragEnd(e);\n event.preventDefault();\n }\n }, {\n key: \"onRadioChange\",\n value: function onRadioChange(event) {\n this.onSingleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: true,\n type: 'radio'\n }));\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(event) {\n this.onMultipleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: true,\n type: 'checkbox'\n }));\n }\n }, {\n key: \"onDragSelectionMouseMove\",\n value: function onDragSelectionMouseMove(event) {\n var _this$initialDragPosi = this.initialDragPosition,\n x = _this$initialDragPosi.x,\n y = _this$initialDragPosi.y;\n var dx = event.clientX - x;\n var dy = event.clientY - y;\n if (dy < 0) this.dragSelectionHelper.style.top = \"\".concat(event.pageY + 5, \"px\");\n if (dx < 0) this.dragSelectionHelper.style.left = \"\".concat(event.pageX + 5, \"px\");\n this.dragSelectionHelper.style.height = \"\".concat(Math.abs(dy), \"px\");\n this.dragSelectionHelper.style.width = \"\".concat(Math.abs(dx), \"px\");\n event.preventDefault();\n }\n }, {\n key: \"onDragSelectionMouseUp\",\n value: function onDragSelectionMouseUp() {\n if (this.dragSelectionHelper) {\n this.dragSelectionHelper.remove();\n this.dragSelectionHelper = null;\n }\n\n document.removeEventListener('mousemove', this.onDragSelectionMouseMove);\n document.removeEventListener('mouseup', this.onDragSelectionMouseUp);\n }\n }, {\n key: \"onCellClick\",\n value: function onCellClick(event) {\n if (!this.allowSelection(event)) {\n return;\n }\n\n this.props.onCellClick && this.props.onCellClick(event);\n\n if (this.allowCellSelection()) {\n if (this.allowRangeSelection(event)) {\n this.onRangeSelection(event, 'cell');\n } else {\n var toggleable = this.allowMetaKeySelection(event);\n\n var originalEvent = event.originalEvent,\n data = _objectWithoutProperties(event, _excluded);\n\n this.anchorRowIndex = event.rowIndex;\n this.rangeRowIndex = event.rowIndex;\n this.anchorRowFirst = this.props.first;\n this.anchorCellIndex = event.cellIndex;\n\n if (this.isSingleSelection()) {\n this.onSingleSelection({\n originalEvent: originalEvent,\n data: data,\n index: event.rowIndex,\n toggleable: toggleable,\n type: 'cell'\n });\n } else {\n this.onMultipleSelection({\n originalEvent: originalEvent,\n data: data,\n index: event.rowIndex,\n toggleable: toggleable,\n type: 'cell'\n });\n }\n }\n\n this.changeTabIndex(event.originalEvent, 'cell');\n }\n\n this.rowTouched = false;\n }\n }, {\n key: \"onCellMouseDown\",\n value: function onCellMouseDown(event) {\n if (this.allowCellDrag(event)) {\n this.enableDragSelection(event.originalEvent);\n this.anchorRowIndex = event.rowIndex;\n this.rangeRowIndex = event.rowIndex;\n this.anchorRowFirst = this.props.first;\n this.anchorCellIndex = event.cellIndex;\n }\n }\n }, {\n key: \"onCellMouseUp\",\n value: function onCellMouseUp(event) {\n var isSameCell = event.rowIndex === this.anchorRowIndex && event.cellIndex === this.anchorCellIndex;\n\n if (this.allowCellDrag(event) && !isSameCell) {\n this.onRangeSelection(event, 'cell');\n }\n }\n }, {\n key: \"bindDragSelectionEvents\",\n value: function bindDragSelectionEvents() {\n document.addEventListener('mousemove', this.onDragSelectionMouseMove);\n document.addEventListener('mouseup', this.onDragSelectionMouseUp);\n document.body.appendChild(this.dragSelectionHelper);\n }\n }, {\n key: \"unbindDragSelectionEvents\",\n value: function unbindDragSelectionEvents() {\n this.onDragSelectionMouseUp();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.frozenRow) {\n this.updateFrozenRowStickyPosition();\n }\n\n if (this.props.scrollable && this.props.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n\n if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical')) {\n this.updateVirtualScrollerPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.frozenRow) {\n this.updateFrozenRowStickyPosition();\n }\n\n if (this.props.scrollable && this.props.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n\n if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical') && this.getVirtualScrollerOption('itemSize', prevProps.virtualScrollerOptions) !== this.getVirtualScrollerOption('itemSize')) {\n this.updateVirtualScrollerPosition();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.dragSelection) {\n this.unbindDragSelectionEvents();\n }\n }\n }, {\n key: \"renderEmptyContent\",\n value: function renderEmptyContent() {\n if (!this.props.loading) {\n var colSpan = this.getColumnsLength();\n var content = ObjectUtils.getJSXElement(this.props.emptyMessage, {\n props: this.props,\n frozen: this.props.frozenRow\n }) || localeOption('emptyMessage');\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-datatable-emptymessage\",\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: colSpan,\n role: \"cell\"\n }, content));\n }\n\n return null;\n }\n }, {\n key: \"renderGroupHeader\",\n value: function renderGroupHeader(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (isSubheaderGrouping && this.shouldRenderRowGroupHeader(this.props.value, rowData, index - this.props.first)) {\n var style = this.rowGroupHeaderStyle();\n var toggler = this.props.expandableRowGroups && /*#__PURE__*/React.createElement(RowTogglerButton, {\n onClick: this.onRowToggle,\n rowData: rowData,\n expanded: expanded,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon\n });\n var content = ObjectUtils.getJSXElement(this.props.rowGroupHeaderTemplate, rowData, {\n index: index,\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-rowgroup-header\",\n style: style,\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: colSpan\n }, toggler, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-rowgroup-header-name\"\n }, content)));\n }\n\n return null;\n }\n }, {\n key: \"renderRow\",\n value: function renderRow(rowData, index, expanded) {\n if (!this.props.expandableRowGroups || expanded) {\n var selected = this.isSelectionEnabled() ? this.isSelected(rowData) : false;\n var contextMenuSelected = this.isContextMenuSelected(rowData);\n var allowRowSelection = this.allowRowSelection();\n var allowCellSelection = this.allowCellSelection();\n var editing = this.isRowEditing(rowData);\n return /*#__PURE__*/React.createElement(BodyRow, {\n tableProps: this.props.tableProps,\n tableSelector: this.props.tableSelector,\n value: this.props.value,\n columns: this.props.columns,\n rowData: rowData,\n index: index,\n selected: selected,\n contextMenuSelected: contextMenuSelected,\n onRowClick: this.onRowClick,\n onRowDoubleClick: this.onRowDoubleClick,\n onRowRightClick: this.onRowRightClick,\n tabIndex: this.props.tabIndex,\n isSelectable: this.isSelectable,\n onRowTouchEnd: this.onRowTouchEnd,\n onRowMouseDown: this.onRowMouseDown,\n onRowMouseUp: this.onRowMouseUp,\n onRowToggle: this.onRowToggle,\n onRowDragStart: this.onRowDragStart,\n onRowDragOver: this.onRowDragOver,\n onRowDragLeave: this.onRowDragLeave,\n onRowDragEnd: this.onRowDragEnd,\n onRowDrop: this.onRowDrop,\n onRadioChange: this.onRadioChange,\n onCheckboxChange: this.onCheckboxChange,\n onCellClick: this.onCellClick,\n onCellMouseDown: this.onCellMouseDown,\n onCellMouseUp: this.onCellMouseUp,\n editing: editing,\n editingRows: this.props.editingRows,\n editingMeta: this.props.editingMeta,\n editMode: this.props.editMode,\n onRowEditChange: this.props.onRowEditChange,\n onEditingMetaChange: this.props.onEditingMetaChange,\n groupRowsBy: this.props.groupRowsBy,\n compareSelectionBy: this.props.compareSelectionBy,\n dataKey: this.props.dataKey,\n rowGroupMode: this.props.rowGroupMode,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n selection: this.props.selection,\n allowRowSelection: allowRowSelection,\n allowCellSelection: allowCellSelection,\n selectOnEdit: this.props.selectOnEdit,\n selectionMode: this.props.selectionMode,\n selectionModeInColumn: this.props.selectionModeInColumn,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n frozenRow: this.props.frozenRow,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expanded: expanded,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n virtualScrollerOptions: this.props.virtualScrollerOptions\n });\n }\n }\n }, {\n key: \"renderExpansion\",\n value: function renderExpansion(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (expanded && !(isSubheaderGrouping && this.props.expandableRowGroups)) {\n var content = ObjectUtils.getJSXElement(this.props.rowExpansionTemplate, rowData, {\n index: index\n });\n var id = \"\".concat(this.props.tableSelector, \"_content_\").concat(index, \"_expanded\");\n return /*#__PURE__*/React.createElement(\"tr\", {\n id: id,\n className: \"p-datatable-row-expansion\",\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n role: \"cell\",\n colSpan: colSpan\n }, content));\n }\n\n return null;\n }\n }, {\n key: \"renderGroupFooter\",\n value: function renderGroupFooter(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (isSubheaderGrouping && this.shouldRenderRowGroupFooter(this.props.value, rowData, index - this.props.first, expanded)) {\n var content = ObjectUtils.getJSXElement(this.props.rowGroupFooterTemplate, rowData, {\n index: index,\n colSpan: colSpan,\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-rowgroup-footer\",\n role: \"row\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n return this.props.value.map(function (rowData, i) {\n var index = _this5.getVirtualScrollerOption('getItemOptions') ? _this5.getVirtualScrollerOption('getItemOptions')(i).index : _this5.props.first + i;\n\n var key = _this5.getRowKey(rowData, index);\n\n var expanded = _this5.isRowExpanded(rowData);\n\n var isSubheaderGrouping = _this5.isSubheaderGrouping();\n\n var colSpan = _this5.getColumnsLength();\n\n var groupHeader = _this5.renderGroupHeader(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n var row = _this5.renderRow(rowData, index, expanded);\n\n var expansion = _this5.renderExpansion(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n var groupFooter = _this5.renderGroupFooter(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, groupHeader, row, expansion, groupFooter);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-datatable-tbody', this.props.className);\n var content = this.props.empty ? this.renderEmptyContent() : this.renderContent();\n return /*#__PURE__*/React.createElement(\"tbody\", {\n ref: this.ref,\n className: className\n }, content);\n }\n }]);\n\n return TableBody;\n}(Component);\n\nfunction ownKeys$4(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$4(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$6(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$6();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$6() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar FooterCell = /*#__PURE__*/function (_Component) {\n _inherits(FooterCell, _Component);\n\n var _super = _createSuper$6(FooterCell);\n\n function FooterCell(props) {\n var _this;\n\n _classCallCheck(this, FooterCell);\n\n _this = _super.call(this, props);\n _this.state = {\n styleObject: {}\n };\n return _this;\n }\n\n _createClass(FooterCell, [{\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column.props[prop];\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var footerStyle = this.getColumnProp('footerStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, footerStyle, this.state.styleObject) : Object.assign({}, columnStyle, footerStyle);\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$4({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var style = this.getStyle();\n var align = this.getColumnProp('align');\n var className = classNames(this.getColumnProp('footerClassName'), this.getColumnProp('className'), _defineProperty({\n 'p-frozen-column': this.getColumnProp('frozen')\n }, \"p-align-\".concat(align), !!align));\n var colSpan = this.getColumnProp('colSpan');\n var rowSpan = this.getColumnProp('rowSpan');\n var content = ObjectUtils.getJSXElement(this.getColumnProp('footer'), {\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"td\", {\n ref: function ref(el) {\n return _this2.el = el;\n },\n style: style,\n className: className,\n role: \"cell\",\n colSpan: colSpan,\n rowSpan: rowSpan\n }, content);\n }\n }]);\n\n return FooterCell;\n}(Component);\n\nfunction _createSuper$5(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$5();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$5() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar TableFooter = /*#__PURE__*/function (_Component) {\n _inherits(TableFooter, _Component);\n\n var _super = _createSuper$5(TableFooter);\n\n function TableFooter() {\n _classCallCheck(this, TableFooter);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(TableFooter, [{\n key: \"hasFooter\",\n value: function hasFooter() {\n return this.props.footerColumnGroup ? true : this.props.columns ? this.props.columns.some(function (col) {\n return col && col.props.footer;\n }) : false;\n }\n }, {\n key: \"renderGroupFooterCells\",\n value: function renderGroupFooterCells(row) {\n var columns = React.Children.toArray(row.props.children);\n return this.renderFooterCells(columns);\n }\n }, {\n key: \"renderFooterCells\",\n value: function renderFooterCells(columns) {\n var _this = this;\n\n return React.Children.map(columns, function (col, i) {\n var isVisible = col ? !col.props.hidden : true;\n var key = col ? col.props.columnKey || col.props.field || i : i;\n return isVisible && /*#__PURE__*/React.createElement(FooterCell, {\n key: key,\n tableProps: _this.props.tableProps,\n column: col\n });\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this2 = this;\n\n if (this.props.footerColumnGroup) {\n var rows = React.Children.toArray(this.props.footerColumnGroup.props.children);\n return rows.map(function (row, i) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: i,\n role: \"row\"\n }, _this2.renderGroupFooterCells(row));\n });\n }\n\n return /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderFooterCells(this.props.columns));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.hasFooter()) {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"tfoot\", {\n className: \"p-datatable-tfoot\"\n }, content);\n }\n\n return null;\n }\n }]);\n\n return TableFooter;\n}(Component);\n\nfunction _createSuper$4(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$4();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$4() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar HeaderCheckbox = /*#__PURE__*/function (_Component) {\n _inherits(HeaderCheckbox, _Component);\n\n var _super = _createSuper$4(HeaderCheckbox);\n\n function HeaderCheckbox(props) {\n var _this;\n\n _classCallCheck(this, HeaderCheckbox);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(HeaderCheckbox, [{\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.setState({\n focused: true\n });\n this.props.onChange({\n originalEvent: event,\n checked: !this.props.checked\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var boxClassName = classNames('p-checkbox-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var iconClassName = classNames('p-checkbox-icon', {\n 'pi pi-check': this.props.checked\n });\n var tabIndex = this.props.disabled ? null : 0;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-checkbox p-component\",\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n role: \"checkbox\",\n \"aria-checked\": this.props.checked,\n tabIndex: tabIndex,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyDown: this.onKeyDown\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n })));\n }\n }]);\n\n return HeaderCheckbox;\n}(Component);\n\nfunction ownKeys$3(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$3(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$3(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$3();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$3() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar ColumnFilter = /*#__PURE__*/function (_Component) {\n _inherits(ColumnFilter, _Component);\n\n var _super = _createSuper$3(ColumnFilter);\n\n function ColumnFilter(props) {\n var _this;\n\n _classCallCheck(this, ColumnFilter);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false\n };\n _this.overlayRef = /*#__PURE__*/React.createRef();\n _this.filterCallback = _this.filterCallback.bind(_assertThisInitialized(_this));\n _this.filterApplyCallback = _this.filterApplyCallback.bind(_assertThisInitialized(_this));\n _this.onOperatorChange = _this.onOperatorChange.bind(_assertThisInitialized(_this));\n _this.addConstraint = _this.addConstraint.bind(_assertThisInitialized(_this));\n _this.clearFilter = _this.clearFilter.bind(_assertThisInitialized(_this));\n _this.applyFilter = _this.applyFilter.bind(_assertThisInitialized(_this));\n _this.onInputChange = _this.onInputChange.bind(_assertThisInitialized(_this));\n _this.toggleMenu = _this.toggleMenu.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onContentKeyDown = _this.onContentKeyDown.bind(_assertThisInitialized(_this));\n _this.onContentClick = _this.onContentClick.bind(_assertThisInitialized(_this));\n _this.onContentMouseDown = _this.onContentMouseDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ColumnFilter, [{\n key: \"field\",\n get: function get() {\n return this.getColumnProp('filterField') || this.getColumnProp('field');\n }\n }, {\n key: \"overlay\",\n get: function get() {\n return this.overlayRef ? this.overlayRef.current : null;\n }\n }, {\n key: \"filterModel\",\n get: function get() {\n return this.props.filters[this.field];\n }\n }, {\n key: \"filterStoreModel\",\n get: function get() {\n return this.props.filtersStore[this.field];\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n if (this.props.filtersStore) {\n var fieldFilter = this.props.filtersStore[this.field];\n return fieldFilter && (fieldFilter.operator ? !this.isFilterBlank(fieldFilter.constraints[0].value) : !this.isFilterBlank(fieldFilter.value));\n }\n\n return false;\n }\n }, {\n key: \"hasRowFilter\",\n value: function hasRowFilter() {\n return this.filterModel && !this.isFilterBlank(this.filterModel.value);\n }\n }, {\n key: \"isFilterBlank\",\n value: function isFilterBlank(filter) {\n return ObjectUtils.isEmpty(filter);\n }\n }, {\n key: \"isRowMatchModeSelected\",\n value: function isRowMatchModeSelected(matchMode) {\n return this.filterModel && this.filterModel.matchMode === matchMode;\n }\n }, {\n key: \"showMenuButton\",\n value: function showMenuButton() {\n return this.getColumnProp('showFilterMenu') && (this.props.display === 'row' ? this.getColumnProp('dataType') !== 'boolean' : true);\n }\n }, {\n key: \"matchModes\",\n value: function matchModes() {\n return this.getColumnProp('filterMatchModeOptions') || PrimeReact.filterMatchModeOptions[this.findDataType()].map(function (key) {\n return {\n label: localeOption(key),\n value: key\n };\n });\n }\n }, {\n key: \"isShowMatchModes\",\n value: function isShowMatchModes() {\n return this.getColumnProp('dataType') !== 'boolean' && this.getColumnProp('showFilterMatchModes') && this.matchModes() && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"isShowOperator\",\n value: function isShowOperator() {\n return this.getColumnProp('showFilterOperator') && this.filterModel && this.filterModel.operator && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"showRemoveIcon\",\n value: function showRemoveIcon() {\n return this.fieldConstraints().length > 1;\n }\n }, {\n key: \"isShowAddConstraint\",\n value: function isShowAddConstraint() {\n return this.getColumnProp('showAddButton') && this.filterModel && this.filterModel.operator && this.fieldConstraints() && this.fieldConstraints().length < this.getColumnProp('maxConstraints') && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return !this.isTargetClicked(target) && this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"isTargetClicked\",\n value: function isTargetClicked(target) {\n return this.icon && (this.icon.isSameNode(target) || this.icon.contains(target));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column.props[prop];\n }\n }, {\n key: \"getDefaultConstraint\",\n value: function getDefaultConstraint() {\n if (this.props.filtersStore && this.filterStoreModel) {\n if (this.filterStoreModel.operator) {\n return {\n matchMode: this.filterStoreModel.constraints[0].matchMode,\n operator: this.filterStoreModel.operator\n };\n } else {\n return {\n matchMode: this.filterStoreModel.matchMode\n };\n }\n }\n }\n }, {\n key: \"findDataType\",\n value: function findDataType() {\n var dataType = this.getColumnProp('dataType');\n var matchMode = this.getColumnProp('filterMatchMode');\n\n var hasMatchMode = function hasMatchMode(key) {\n return PrimeReact.filterMatchModeOptions[key].some(function (mode) {\n return mode === matchMode;\n });\n };\n\n if (matchMode === 'custom' && !hasMatchMode(dataType)) {\n PrimeReact.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);\n return dataType;\n } else if (matchMode) {\n return Object.keys(PrimeReact.filterMatchModeOptions).find(function (key) {\n return hasMatchMode(key);\n }) || dataType;\n }\n\n return dataType;\n }\n }, {\n key: \"clearFilter\",\n value: function clearFilter() {\n var field = this.field;\n var filterClearCallback = this.getColumnProp('onFilterClear');\n var defaultConstraint = this.getDefaultConstraint();\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n if (filters[field].operator) {\n filters[field].constraints.splice(1);\n filters[field].operator = defaultConstraint.operator;\n filters[field].constraints[0] = {\n value: null,\n matchMode: defaultConstraint.matchMode\n };\n } else {\n filters[field].value = null;\n filters[field].matchMode = defaultConstraint.matchMode;\n }\n\n filterClearCallback && filterClearCallback();\n this.props.onFilterChange(filters);\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"applyFilter\",\n value: function applyFilter() {\n var filterApplyClickCallback = this.getColumnProp('onFilterApplyClick');\n filterApplyClickCallback && filterApplyClickCallback({\n field: this.field,\n constraints: this.filterModel\n });\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"toggleMenu\",\n value: function toggleMenu() {\n this.setState(function (prevState) {\n return {\n overlayVisible: !prevState.overlayVisible\n };\n });\n }\n }, {\n key: \"onToggleButtonKeyDown\",\n value: function onToggleButtonKeyDown(event) {\n switch (event.key) {\n case 'Escape':\n case 'Tab':\n this.hide();\n break;\n\n case 'ArrowDown':\n if (this.state.overlayVisible) {\n var focusable = DomHandler.getFirstFocusableElement(this.overlay);\n focusable && focusable.focus();\n event.preventDefault();\n } else if (event.altKey) {\n this.setState({\n overlayVisible: true\n });\n event.preventDefault();\n }\n\n break;\n }\n }\n }, {\n key: \"onContentKeyDown\",\n value: function onContentKeyDown(event) {\n if (event.key === 'Escape') {\n this.hide();\n this.icon && this.icon.focus();\n }\n }\n }, {\n key: \"onInputChange\",\n value: function onInputChange(event, index) {\n var filters = _objectSpread$3({}, this.props.filters);\n\n var value = event.target.value;\n\n if (this.props.display === 'menu') {\n filters[this.field].constraints[index].value = value;\n } else {\n filters[this.field].value = value;\n }\n\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton') || this.props.display === 'row') {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"onRowMatchModeChange\",\n value: function onRowMatchModeChange(matchMode) {\n var filterMatchModeChangeCallback = this.getColumnProp('onFilterMatchModeChange');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].matchMode = matchMode;\n filterMatchModeChangeCallback && filterMatchModeChangeCallback({\n field: this.field,\n matchMode: matchMode\n });\n this.props.onFilterChange(filters);\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"onRowMatchModeKeyDown\",\n value: function onRowMatchModeKeyDown(event, matchMode, clear) {\n var item = event.target;\n\n switch (event.key) {\n case 'ArrowDown':\n var nextItem = this.findNextItem(item);\n\n if (nextItem) {\n item.removeAttribute('tabindex');\n nextItem.tabIndex = 0;\n nextItem.focus();\n }\n\n event.preventDefault();\n break;\n\n case 'ArrowUp':\n var prevItem = this.findPrevItem(item);\n\n if (prevItem) {\n item.removeAttribute('tabindex');\n prevItem.tabIndex = 0;\n prevItem.focus();\n }\n\n event.preventDefault();\n break;\n\n case 'Enter':\n clear ? this.clearFilter() : this.onRowMatchModeChange(matchMode.value);\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"onOperatorChange\",\n value: function onOperatorChange(e) {\n var filterOperationChangeCallback = this.getColumnProp('onFilterOperatorChange');\n var value = e.value;\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].operator = value;\n this.props.onFilterChange(filters);\n filterOperationChangeCallback && filterOperationChangeCallback({\n field: this.field,\n operator: value\n });\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"onMenuMatchModeChange\",\n value: function onMenuMatchModeChange(value, index) {\n var filterMatchModeChangeCallback = this.getColumnProp('onFilterMatchModeChange');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].constraints[index].matchMode = value;\n this.props.onFilterChange(filters);\n filterMatchModeChangeCallback && filterMatchModeChangeCallback({\n field: this.field,\n matchMode: value,\n index: index\n });\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"addConstraint\",\n value: function addConstraint() {\n var filterConstraintAddCallback = this.getColumnProp('onFilterConstraintAdd');\n var defaultConstraint = this.getDefaultConstraint();\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var newConstraint = {\n value: null,\n matchMode: defaultConstraint.matchMode\n };\n filters[this.field].constraints.push(newConstraint);\n filterConstraintAddCallback && filterConstraintAddCallback({\n field: this.field,\n constraint: newConstraint\n });\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"removeConstraint\",\n value: function removeConstraint(index) {\n var filterConstraintRemoveCallback = this.getColumnProp('onFilterConstraintRemove');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var removedConstraint = filters[this.field].constraints.splice(index, 1);\n filterConstraintRemoveCallback && filterConstraintRemoveCallback({\n field: this.field,\n constraint: removedConstraint\n });\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;else return item.parentElement.firstElementChild;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;else return item.parentElement.lastElementChild;\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onContentClick\",\n value: function onContentClick(event) {\n this.selfClick = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.overlay\n });\n }\n }, {\n key: \"onContentMouseDown\",\n value: function onContentMouseDown() {\n this.selfClick = true;\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n var _this2 = this;\n\n ZIndexUtils.set('overlay', this.overlay, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n this.overlayEventListener = function (e) {\n if (!_this2.isOutsideClicked(e.target)) {\n _this2.selfClick = true;\n }\n };\n\n OverlayService.on('overlay-click', this.overlayEventListener);\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.onOverlayHide();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlay);\n }\n }, {\n key: \"onOverlayHide\",\n value: function onOverlayHide() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n this.unbindScrollListener();\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n }, {\n key: \"bindOutsideClickListener\",\n value: function bindOutsideClickListener() {\n var _this3 = this;\n\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n if (!_this3.selfClick && _this3.isOutsideClicked(event.target)) {\n _this3.hide();\n }\n\n _this3.selfClick = false;\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n }\n }, {\n key: \"unbindOutsideClickListener\",\n value: function unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n this.selfClick = false;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this4 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.icon, function () {\n if (_this4.state.overlayVisible) {\n _this4.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this5 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this5.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this5.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"fieldConstraints\",\n value: function fieldConstraints() {\n return this.filterModel ? this.filterModel.constraints || [this.filterModel] : [];\n }\n }, {\n key: \"operator\",\n value: function operator() {\n return this.filterModel.operator;\n }\n }, {\n key: \"operatorOptions\",\n value: function operatorOptions() {\n return [{\n label: localeOption('matchAll'),\n value: FilterOperator.AND\n }, {\n label: localeOption('matchAny'),\n value: FilterOperator.OR\n }];\n }\n }, {\n key: \"noFilterLabel\",\n value: function noFilterLabel() {\n return localeOption('noFilter');\n }\n }, {\n key: \"removeRuleButtonLabel\",\n value: function removeRuleButtonLabel() {\n return localeOption('removeRule');\n }\n }, {\n key: \"addRuleButtonLabel\",\n value: function addRuleButtonLabel() {\n return localeOption('addRule');\n }\n }, {\n key: \"clearButtonLabel\",\n value: function clearButtonLabel() {\n return localeOption('clear');\n }\n }, {\n key: \"applyButtonLabel\",\n value: function applyButtonLabel() {\n return localeOption('apply');\n }\n }, {\n key: \"filterCallback\",\n value: function filterCallback(value) {\n var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var meta = filters[this.field];\n this.props.display === 'menu' && meta && meta.operator ? filters[this.field].constraints[index].value = value : filters[this.field].value = value;\n this.props.onFilterChange(filters);\n }\n }, {\n key: \"filterApplyCallback\",\n value: function filterApplyCallback() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n args && this.filterCallback(args[0], args[1]);\n this.props.onFilterApply();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.display === 'menu' && this.state.overlayVisible) {\n DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n if (this.overlay) {\n ZIndexUtils.clear(this.overlay);\n this.onOverlayHide();\n }\n }\n }, {\n key: \"renderFilterElement\",\n value: function renderFilterElement(model, index) {\n var _this6 = this;\n\n var value = model ? model.value : null;\n return this.getColumnProp('filterElement') ? ObjectUtils.getJSXElement(this.getColumnProp('filterElement'), {\n field: this.field,\n index: index,\n filterModel: model,\n value: value,\n filterApplyCallback: this.filterApplyCallback,\n filterCallback: this.filterCallback\n }) : /*#__PURE__*/React.createElement(InputText, {\n type: this.getColumnProp('filterType'),\n value: value || '',\n onChange: function onChange(e) {\n return _this6.onInputChange(e, index);\n },\n className: \"p-column-filter\",\n placeholder: this.getColumnProp('filterPlaceholder'),\n maxLength: this.getColumnProp('filterMaxLength')\n });\n }\n }, {\n key: \"renderRowFilterElement\",\n value: function renderRowFilterElement() {\n if (this.props.display === 'row') {\n var content = this.renderFilterElement(this.filterModel, 0);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-fluid p-column-filter-element\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderMenuFilterElement\",\n value: function renderMenuFilterElement(fieldConstraint, index) {\n if (this.props.display === 'menu') {\n return this.renderFilterElement(fieldConstraint, index);\n }\n\n return null;\n }\n }, {\n key: \"renderMenuButton\",\n value: function renderMenuButton() {\n var _this7 = this;\n\n if (this.showMenuButton()) {\n var className = classNames('p-column-filter-menu-button p-link', {\n 'p-column-filter-menu-button-open': this.state.overlayVisible,\n 'p-column-filter-menu-button-active': this.hasFilter()\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: function ref(el) {\n return _this7.icon = el;\n },\n type: \"button\",\n className: className,\n \"aria-haspopup\": true,\n \"aria-expanded\": this.state.overlayVisible,\n onClick: this.toggleMenu,\n onKeyDown: this.onToggleButtonKeyDown\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"pi pi-filter-icon pi-filter\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderClearButton\",\n value: function renderClearButton() {\n if (this.getColumnProp('showClearButton') && this.props.display === 'row') {\n var className = classNames('p-column-filter-clear-button p-link', {\n 'p-hidden-space': !this.hasRowFilter()\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: className,\n type: \"button\",\n onClick: this.clearFilter\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"pi pi-filter-slash\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderRowItems\",\n value: function renderRowItems() {\n var _this8 = this;\n\n if (this.isShowMatchModes()) {\n var matchModes = this.matchModes();\n var noFilterLabel = this.noFilterLabel();\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-column-filter-row-items\"\n }, matchModes.map(function (matchMode, i) {\n var value = matchMode.value,\n label = matchMode.label;\n var className = classNames('p-column-filter-row-item', {\n 'p-highlight': _this8.isRowMatchModeSelected(value)\n });\n var tabIndex = i === 0 ? 0 : null;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n key: label,\n onClick: function onClick() {\n return _this8.onRowMatchModeChange(value);\n },\n onKeyDown: function onKeyDown(e) {\n return _this8.onRowMatchModeKeyDown(e, matchMode);\n },\n tabIndex: tabIndex\n }, label);\n }), /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-column-filter-separator\"\n }), /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-column-filter-row-item\",\n onClick: this.clearFilter,\n onKeyDown: function onKeyDown(e) {\n return _this8.onRowMatchModeKeyDown(e, null, true);\n }\n }, noFilterLabel));\n }\n\n return null;\n }\n }, {\n key: \"renderOperator\",\n value: function renderOperator() {\n if (this.isShowOperator()) {\n var options = this.operatorOptions();\n var value = this.operator();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-operator\"\n }, /*#__PURE__*/React.createElement(Dropdown, {\n options: options,\n value: value,\n onChange: this.onOperatorChange,\n className: \"p-column-filter-operator-dropdown\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderMatchModeDropdown\",\n value: function renderMatchModeDropdown(constraint, index) {\n var _this9 = this;\n\n if (this.isShowMatchModes()) {\n var options = this.matchModes();\n return /*#__PURE__*/React.createElement(Dropdown, {\n options: options,\n value: constraint.matchMode,\n onChange: function onChange(e) {\n return _this9.onMenuMatchModeChange(e.value, index);\n },\n className: \"p-column-filter-matchmode-dropdown\"\n });\n }\n\n return null;\n }\n }, {\n key: \"renderRemoveButton\",\n value: function renderRemoveButton(index) {\n var _this10 = this;\n\n if (this.showRemoveIcon()) {\n var removeRuleLabel = this.removeRuleButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-trash\",\n className: \"p-column-filter-remove-button p-button-text p-button-danger p-button-sm\",\n onClick: function onClick() {\n return _this10.removeConstraint(index);\n },\n label: removeRuleLabel\n });\n }\n\n return null;\n }\n }, {\n key: \"renderConstraints\",\n value: function renderConstraints() {\n var _this11 = this;\n\n var fieldConstraints = this.fieldConstraints();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-constraints\"\n }, fieldConstraints.map(function (fieldConstraint, i) {\n var matchModeDropdown = _this11.renderMatchModeDropdown(fieldConstraint, i);\n\n var menuFilterElement = _this11.renderMenuFilterElement(fieldConstraint, i);\n\n var removeButton = _this11.renderRemoveButton(i);\n\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n className: \"p-column-filter-constraint\"\n }, matchModeDropdown, menuFilterElement, /*#__PURE__*/React.createElement(\"div\", null, removeButton));\n }));\n }\n }, {\n key: \"renderAddRule\",\n value: function renderAddRule() {\n if (this.isShowAddConstraint()) {\n var addRuleLabel = this.addRuleButtonLabel();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-add-rule\"\n }, /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n label: addRuleLabel,\n icon: \"pi pi-plus\",\n className: \"p-column-filter-add-button p-button-text p-button-sm\",\n onClick: this.addConstraint\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderFilterClearButton\",\n value: function renderFilterClearButton() {\n if (this.getColumnProp('showClearButton')) {\n if (!this.getColumnProp('filterClear')) {\n var clearLabel = this.clearButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: \"p-button-outlined p-button-sm\",\n onClick: this.clearFilter,\n label: clearLabel\n });\n }\n\n return ObjectUtils.getJSXElement(this.getColumnProp('filterClear'), {\n field: this.field,\n filterModel: this.filterModel,\n filterClearCallback: this.clearFilter\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilterApplyButton\",\n value: function renderFilterApplyButton() {\n if (this.getColumnProp('showApplyButton')) {\n if (!this.getColumnProp('filterApply')) {\n var applyLabel = this.applyButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: \"p-button-sm\",\n onClick: this.applyFilter,\n label: applyLabel\n });\n }\n\n return ObjectUtils.getJSXElement(this.getColumnProp('filterApply'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.applyFilter\n });\n }\n\n return null;\n }\n }, {\n key: \"renderButtonBar\",\n value: function renderButtonBar() {\n var clearButton = this.renderFilterClearButton();\n var applyButton = this.renderFilterApplyButton();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-buttonbar\"\n }, clearButton, applyButton);\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var operator = this.renderOperator();\n var constraints = this.renderConstraints();\n var addRule = this.renderAddRule();\n var buttonBar = this.renderButtonBar();\n return /*#__PURE__*/React.createElement(React.Fragment, null, operator, constraints, addRule, buttonBar);\n }\n }, {\n key: \"renderOverlay\",\n value: function renderOverlay() {\n var style = this.getColumnProp('filterMenuStyle');\n var className = classNames('p-column-filter-overlay p-component p-fluid', this.getColumnProp('filterMenuClassName'), {\n 'p-column-filter-overlay-menu': this.props.display === 'menu',\n 'p-input-filled': PrimeReact.inputStyle === 'filled',\n 'p-ripple-disabled': PrimeReact.ripple === false\n });\n var filterHeader = ObjectUtils.getJSXElement(this.getColumnProp('filterHeader'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.filterApplyCallback\n });\n var filterFooter = ObjectUtils.getJSXElement(this.getColumnProp('filterFooter'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.filterApplyCallback\n });\n var items = this.props.display === 'row' ? this.renderRowItems() : this.renderItems();\n return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.overlayVisible,\n timeout: {\n enter: 120,\n exit: 100\n },\n unmountOnExit: true,\n onEnter: this.onOverlayEnter,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n style: style,\n className: className,\n onKeyDown: this.onContentKeyDown,\n onClick: this.onContentClick,\n onMouseDown: this.onContentMouseDown\n }, filterHeader, items, filterFooter)));\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-column-filter p-fluid', {\n 'p-column-filter-row': this.props.display === 'row',\n 'p-column-filter-menu': this.props.display === 'menu'\n });\n var rowFilterElement = this.renderRowFilterElement();\n var menuButton = this.renderMenuButton();\n var clearButton = this.renderClearButton();\n var overlay = this.renderOverlay();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, rowFilterElement, menuButton, clearButton, overlay);\n }\n }]);\n\n return ColumnFilter;\n}(Component);\n\nfunction ownKeys$2(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$2(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$2();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$2() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar HeaderCell = /*#__PURE__*/function (_Component) {\n _inherits(HeaderCell, _Component);\n\n var _super = _createSuper$2(HeaderCell);\n\n function HeaderCell(props) {\n var _this;\n\n _classCallCheck(this, HeaderCell);\n\n _this = _super.call(this, props);\n _this.state = {\n styleObject: {}\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this)); // drag\n\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onDragOver = _this.onDragOver.bind(_assertThisInitialized(_this));\n _this.onDragLeave = _this.onDragLeave.bind(_assertThisInitialized(_this));\n _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this)); // resize\n\n _this.onResizerMouseDown = _this.onResizerMouseDown.bind(_assertThisInitialized(_this));\n _this.onResizerClick = _this.onResizerClick.bind(_assertThisInitialized(_this));\n _this.onResizerDoubleClick = _this.onResizerDoubleClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(HeaderCell, [{\n key: \"isBadgeVisible\",\n value: function isBadgeVisible() {\n return this.props.multiSortMeta && this.props.multiSortMeta.length > 1;\n }\n }, {\n key: \"isSortableDisabled\",\n value: function isSortableDisabled() {\n return !this.getColumnProp('sortable') || this.getColumnProp('sortable') && (this.props.allSortableDisabled || this.getColumnProp('sortableDisabled'));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.props.column ? typeof args[0] === 'string' ? this.props.column.props[args[0]] : (args[0] || this.props.column).props[args[1]] : null;\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var headerStyle = this.getColumnProp('headerStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, headerStyle, this.state.styleObject) : Object.assign({}, columnStyle, headerStyle);\n }\n }, {\n key: \"getMultiSortMetaIndex\",\n value: function getMultiSortMetaIndex() {\n var _this2 = this;\n\n return this.props.multiSortMeta.findIndex(function (meta) {\n return meta.field === _this2.getColumnProp('field') || meta.field === _this2.getColumnProp('sortField');\n });\n }\n }, {\n key: \"getSortMeta\",\n value: function getSortMeta() {\n var sorted = false;\n var sortOrder = 0;\n var metaIndex = -1;\n\n if (this.props.sortMode === 'single') {\n sorted = this.props.sortField && (this.props.sortField === this.getColumnProp('field') || this.props.sortField === this.getColumnProp('sortField'));\n sortOrder = sorted ? this.props.sortOrder : 0;\n } else if (this.props.sortMode === 'multiple') {\n metaIndex = this.getMultiSortMetaIndex();\n\n if (metaIndex > -1) {\n sorted = true;\n sortOrder = this.props.multiSortMeta[metaIndex].order;\n }\n }\n\n return {\n sorted: sorted,\n sortOrder: sortOrder,\n metaIndex: metaIndex\n };\n }\n }, {\n key: \"getAriaSort\",\n value: function getAriaSort(_ref) {\n var sorted = _ref.sorted,\n sortOrder = _ref.sortOrder;\n\n if (this.getColumnProp('sortable')) {\n var sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt' : 'pi-sort-alt';\n if (sortIcon === 'pi-sort-amount-down') return 'descending';else if (sortIcon === 'pi-sort-amount-up-alt') return 'ascending';else return 'none';\n }\n\n return null;\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$2({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n var filterRow = this.el.parentElement.nextElementSibling;\n\n if (filterRow) {\n var index = DomHandler.index(this.el);\n filterRow.children[index].style.left = styleObject['left'];\n filterRow.children[index].style.right = styleObject['right'];\n }\n\n var isSameStyle = this.state.styleObject['left'] === styleObject['left'] && this.state.styleObject['right'] === styleObject['right'];\n !isSameStyle && this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"updateSortableDisabled\",\n value: function updateSortableDisabled(prevColumn) {\n if (this.getColumnProp(prevColumn, 'sortableDisabled') !== this.getColumnProp('sortableDisabled') || this.getColumnProp(prevColumn, 'sortable') !== this.getColumnProp('sortable')) {\n this.props.onSortableChange();\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.isSortableDisabled()) {\n var targetNode = event.target;\n\n if (DomHandler.hasClass(targetNode, 'p-sortable-column') || DomHandler.hasClass(targetNode, 'p-column-title') || DomHandler.hasClass(targetNode, 'p-column-header-content') || DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {\n DomHandler.clearSelection();\n this.props.onSortChange({\n originalEvent: event,\n column: this.props.column,\n sortableDisabledFields: this.props.sortableDisabledFields\n });\n }\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n this.props.onColumnMouseDown({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.key === 'Enter' && event.currentTarget === this.el && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n this.props.onColumnDragStart({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDragOver\",\n value: function onDragOver(event) {\n this.props.onColumnDragOver({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDragLeave\",\n value: function onDragLeave(event) {\n this.props.onColumnDragLeave({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDrop\",\n value: function onDrop(event) {\n this.props.onColumnDrop({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onResizerMouseDown\",\n value: function onResizerMouseDown(event) {\n this.props.onColumnResizeStart({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onResizerClick\",\n value: function onResizerClick(event) {\n if (this.props.onColumnResizerClick) {\n this.props.onColumnResizerClick({\n originalEvent: event,\n element: event.currentTarget.parentElement,\n column: this.props.column\n });\n event.preventDefault();\n }\n }\n }, {\n key: \"onResizerDoubleClick\",\n value: function onResizerDoubleClick(event) {\n if (this.props.onColumnResizerDoubleClick) {\n this.props.onColumnResizerDoubleClick({\n originalEvent: event,\n element: event.currentTarget.parentElement,\n column: this.props.column\n });\n event.preventDefault();\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n\n this.updateSortableDisabled(prevProps.column);\n }\n }, {\n key: \"renderResizer\",\n value: function renderResizer() {\n if (this.props.resizableColumns && !this.getColumnProp('frozen')) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-resizer\",\n onMouseDown: this.onResizerMouseDown,\n onClick: this.onResizerClick,\n onDoubleClick: this.onResizerDoubleClick\n });\n }\n\n return null;\n }\n }, {\n key: \"renderTitle\",\n value: function renderTitle() {\n var title = ObjectUtils.getJSXElement(this.getColumnProp('header'), {\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-title\"\n }, title);\n }\n }, {\n key: \"renderSortIcon\",\n value: function renderSortIcon(_ref2) {\n var sorted = _ref2.sorted,\n sortOrder = _ref2.sortOrder;\n\n if (this.getColumnProp('sortable')) {\n var sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt' : 'pi-sort-alt';\n var className = classNames('p-sortable-column-icon pi pi-fw', sortIcon);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderBadge\",\n value: function renderBadge(_ref3) {\n var metaIndex = _ref3.metaIndex;\n\n if (metaIndex !== -1 && this.isBadgeVisible()) {\n var value = this.props.groupRowsBy && this.props.groupRowsBy === this.props.groupRowSortField ? metaIndex : metaIndex + 1;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-sortable-column-badge\"\n }, value);\n }\n\n return null;\n }\n }, {\n key: \"renderCheckbox\",\n value: function renderCheckbox() {\n if (this.props.showSelectAll && this.getColumnProp('selectionMode') === 'multiple' && this.props.filterDisplay !== 'row') {\n var allRowsSelected = this.props.allRowsSelected(this.props.value);\n return /*#__PURE__*/React.createElement(HeaderCheckbox, {\n checked: allRowsSelected,\n onChange: this.props.onColumnCheckboxChange,\n disabled: this.props.empty\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilter\",\n value: function renderFilter() {\n if (this.props.filterDisplay === 'menu' && this.getColumnProp('filter')) {\n return /*#__PURE__*/React.createElement(ColumnFilter, {\n display: \"menu\",\n column: this.props.column,\n filters: this.props.filters,\n onFilterChange: this.props.onFilterChange,\n onFilterApply: this.props.onFilterApply,\n filtersStore: this.props.filtersStore\n });\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader(sortMeta) {\n var title = this.renderTitle();\n var sortIcon = this.renderSortIcon(sortMeta);\n var badge = this.renderBadge(sortMeta);\n var checkbox = this.renderCheckbox();\n var filter = this.renderFilter();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-header-content\"\n }, title, sortIcon, badge, checkbox, filter);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var isSortableDisabled = this.isSortableDisabled();\n var sortMeta = this.getSortMeta();\n var style = this.getStyle();\n var align = this.getColumnProp('alignHeader') || this.getColumnProp('align');\n var className = classNames(this.getColumnProp('headerClassName'), this.getColumnProp('className'), _defineProperty({\n 'p-sortable-column': this.getColumnProp('sortable'),\n 'p-resizable-column': this.props.resizableColumns,\n 'p-highlight': sortMeta.sorted,\n 'p-frozen-column': this.getColumnProp('frozen'),\n 'p-selection-column': this.getColumnProp('selectionMode'),\n 'p-sortable-disabled': this.getColumnProp('sortable') && isSortableDisabled,\n 'p-reorderable-column': this.props.reorderableColumns && this.getColumnProp('reorderable')\n }, \"p-align-\".concat(align), !!align));\n var tabIndex = this.getColumnProp('sortable') && !isSortableDisabled ? this.props.tabIndex : null;\n var colSpan = this.getColumnProp('colSpan');\n var rowSpan = this.getColumnProp('rowSpan');\n var ariaSort = this.getAriaSort(sortMeta);\n var resizer = this.renderResizer();\n var header = this.renderHeader(sortMeta);\n return /*#__PURE__*/React.createElement(\"th\", {\n ref: function ref(el) {\n return _this3.el = el;\n },\n style: style,\n className: className,\n tabIndex: tabIndex,\n role: \"columnheader\",\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n onMouseDown: this.onMouseDown,\n onDragStart: this.onDragStart,\n onDragOver: this.onDragOver,\n onDragLeave: this.onDragLeave,\n onDrop: this.onDrop,\n colSpan: colSpan,\n rowSpan: rowSpan,\n \"aria-sort\": ariaSort\n }, resizer, header);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.renderElement();\n }\n }]);\n\n return HeaderCell;\n}(Component);\n\nfunction ownKeys$1(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread$1(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$1(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$1();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$1() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar TableHeader = /*#__PURE__*/function (_Component) {\n _inherits(TableHeader, _Component);\n\n var _super = _createSuper$1(TableHeader);\n\n function TableHeader(props) {\n var _this;\n\n _classCallCheck(this, TableHeader);\n\n _this = _super.call(this, props);\n _this.state = {\n sortableDisabledFields: [],\n allSortableDisabled: false,\n styleObject: {}\n };\n _this.onSortableChange = _this.onSortableChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(TableHeader, [{\n key: \"isSingleSort\",\n value: function isSingleSort() {\n return this.props.sortMode === 'single';\n }\n }, {\n key: \"isMultipleSort\",\n value: function isMultipleSort() {\n return this.props.sortMode === 'multiple';\n }\n }, {\n key: \"isAllSortableDisabled\",\n value: function isAllSortableDisabled() {\n return this.isSingleSort() && this.state.allSortableDisabled;\n }\n }, {\n key: \"isColumnSorted\",\n value: function isColumnSorted(column) {\n return this.props.sortField !== null ? column.props.field === this.props.sortField || column.props.sortField === this.props.sortField : false;\n }\n }, {\n key: \"updateSortableDisabled\",\n value: function updateSortableDisabled() {\n var _this2 = this;\n\n if (this.isSingleSort() || this.isMultipleSort() && this.props.onSortChange) {\n var sortableDisabledFields = [];\n var allSortableDisabled = false;\n this.props.columns.forEach(function (column) {\n if (column.props.sortableDisabled) {\n sortableDisabledFields.push(column.props.sortField || column.props.field);\n\n if (!allSortableDisabled && _this2.isColumnSorted(column)) {\n allSortableDisabled = true;\n }\n }\n });\n this.setState({\n sortableDisabledFields: sortableDisabledFields,\n allSortableDisabled: allSortableDisabled\n });\n }\n }\n }, {\n key: \"onSortableChange\",\n value: function onSortableChange() {\n this.updateSortableDisabled();\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(e) {\n this.props.onColumnCheckboxChange(e, this.props.value);\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateSortableDisabled();\n }\n }, {\n key: \"renderGroupHeaderCells\",\n value: function renderGroupHeaderCells(row) {\n var columns = React.Children.toArray(row.props.children);\n return this.renderHeaderCells(columns);\n }\n }, {\n key: \"renderHeaderCells\",\n value: function renderHeaderCells(columns) {\n var _this3 = this;\n\n return React.Children.map(columns, function (col, i) {\n var isVisible = col ? !col.props.hidden : true;\n var key = col ? col.props.columnKey || col.props.field || i : i;\n return isVisible && /*#__PURE__*/React.createElement(HeaderCell, {\n key: key,\n value: _this3.props.value,\n tableProps: _this3.props.tableProps,\n column: col,\n tabIndex: _this3.props.tabIndex,\n empty: _this3.props.empty,\n resizableColumns: _this3.props.resizableColumns,\n groupRowsBy: _this3.props.groupRowsBy,\n groupRowSortField: _this3.props.groupRowSortField,\n sortMode: _this3.props.sortMode,\n sortField: _this3.props.sortField,\n sortOrder: _this3.props.sortOrder,\n multiSortMeta: _this3.props.multiSortMeta,\n allSortableDisabled: _this3.isAllSortableDisabled(),\n onSortableChange: _this3.onSortableChange,\n sortableDisabledFields: _this3.state.sortableDisabledFields,\n filterDisplay: _this3.props.filterDisplay,\n filters: _this3.props.filters,\n filtersStore: _this3.props.filtersStore,\n onFilterChange: _this3.props.onFilterChange,\n onFilterApply: _this3.props.onFilterApply,\n onColumnMouseDown: _this3.props.onColumnMouseDown,\n onColumnDragStart: _this3.props.onColumnDragStart,\n onColumnDragOver: _this3.props.onColumnDragOver,\n onColumnDragLeave: _this3.props.onColumnDragLeave,\n onColumnDrop: _this3.props.onColumnDrop,\n onColumnResizeStart: _this3.props.onColumnResizeStart,\n onColumnResizerClick: _this3.props.onColumnResizerClick,\n onColumnResizerDoubleClick: _this3.props.onColumnResizerDoubleClick,\n showSelectAll: _this3.props.showSelectAll,\n allRowsSelected: _this3.props.allRowsSelected,\n onColumnCheckboxChange: _this3.onCheckboxChange,\n reorderableColumns: _this3.props.reorderableColumns,\n onSortChange: _this3.props.onSortChange\n });\n });\n }\n }, {\n key: \"renderCheckbox\",\n value: function renderCheckbox(selectionMode) {\n if (this.props.showSelectAll && selectionMode === 'multiple') {\n var allRowsSelected = this.props.allRowsSelected(this.props.value);\n return /*#__PURE__*/React.createElement(HeaderCheckbox, {\n checked: allRowsSelected,\n onChange: this.onCheckboxChange,\n disabled: this.props.empty\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilter\",\n value: function renderFilter(column, filter) {\n if (filter) {\n return /*#__PURE__*/React.createElement(ColumnFilter, {\n display: \"row\",\n column: column,\n filters: this.props.filters,\n filtersStore: this.props.filtersStore,\n onFilterChange: this.props.onFilterChange,\n onFilterApply: this.props.onFilterApply\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilterCells\",\n value: function renderFilterCells() {\n var _this4 = this;\n\n return React.Children.map(this.props.columns, function (col, i) {\n var isVisible = !col.props.hidden;\n\n if (isVisible) {\n var _col$props = col.props,\n filterHeaderStyle = _col$props.filterHeaderStyle,\n style = _col$props.style,\n filterHeaderClassName = _col$props.filterHeaderClassName,\n className = _col$props.className,\n frozen = _col$props.frozen,\n columnKey = _col$props.columnKey,\n field = _col$props.field,\n selectionMode = _col$props.selectionMode,\n filter = _col$props.filter;\n\n var colStyle = _objectSpread$1(_objectSpread$1({}, filterHeaderStyle || {}), style || {});\n\n var colClassName = classNames('p-filter-column', filterHeaderClassName, className, {\n 'p-frozen-column': frozen\n });\n var colKey = columnKey || field || i;\n\n var checkbox = _this4.renderCheckbox(selectionMode);\n\n var filterRow = _this4.renderFilter(col, filter);\n\n return /*#__PURE__*/React.createElement(\"th\", {\n key: colKey,\n style: colStyle,\n className: colClassName\n }, checkbox, filterRow);\n }\n\n return null;\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n if (this.props.headerColumnGroup) {\n var rows = React.Children.toArray(this.props.headerColumnGroup.props.children);\n return rows.map(function (row, i) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: i,\n role: \"row\"\n }, _this5.renderGroupHeaderCells(row));\n });\n } else {\n var headerRow = /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderHeaderCells(this.props.columns));\n var filterRow = this.props.filterDisplay === 'row' && /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderFilterCells());\n return /*#__PURE__*/React.createElement(React.Fragment, null, headerRow, filterRow);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"thead\", {\n className: \"p-datatable-thead\"\n }, content);\n }\n }]);\n\n return TableHeader;\n}(Component);\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar DataTable = /*#__PURE__*/function (_Component) {\n _inherits(DataTable, _Component);\n\n var _super = _createSuper(DataTable);\n\n function DataTable(props) {\n var _this;\n\n _classCallCheck(this, DataTable);\n\n _this = _super.call(this, props);\n _this.state = {\n d_rows: props.rows,\n columnOrder: [],\n groupRowsSortMeta: null,\n editingMeta: {},\n attributeSelector: null\n };\n\n if (!_this.props.onPage) {\n _this.state.first = props.first;\n _this.state.rows = props.rows;\n }\n\n if (!_this.props.onSort) {\n _this.state.sortField = props.sortField;\n _this.state.sortOrder = props.sortOrder;\n _this.state.multiSortMeta = props.multiSortMeta;\n }\n\n _this.state.d_filters = _this.cloneFilters(props.filters);\n\n if (!_this.props.onFilter) {\n _this.state.filters = props.filters;\n } // header\n\n\n _this.onSortChange = _this.onSortChange.bind(_assertThisInitialized(_this));\n _this.onFilterChange = _this.onFilterChange.bind(_assertThisInitialized(_this));\n _this.onFilterApply = _this.onFilterApply.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderMouseDown = _this.onColumnHeaderMouseDown.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragStart = _this.onColumnHeaderDragStart.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragOver = _this.onColumnHeaderDragOver.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragLeave = _this.onColumnHeaderDragLeave.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDrop = _this.onColumnHeaderDrop.bind(_assertThisInitialized(_this));\n _this.onColumnResizeStart = _this.onColumnResizeStart.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderCheckboxChange = _this.onColumnHeaderCheckboxChange.bind(_assertThisInitialized(_this));\n _this.allRowsSelected = _this.allRowsSelected.bind(_assertThisInitialized(_this)); // body\n\n _this.onEditingMetaChange = _this.onEditingMetaChange.bind(_assertThisInitialized(_this)); //paginator\n\n _this.onPageChange = _this.onPageChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(DataTable, [{\n key: \"isCustomStateStorage\",\n value: function isCustomStateStorage() {\n return this.props.stateStorage === 'custom';\n }\n }, {\n key: \"isStateful\",\n value: function isStateful() {\n return this.props.stateKey != null || this.isCustomStateStorage();\n }\n }, {\n key: \"isVirtualScrollerDisabled\",\n value: function isVirtualScrollerDisabled() {\n return ObjectUtils.isEmpty(this.props.virtualScrollerOptions) || !this.props.scrollable;\n }\n }, {\n key: \"isEquals\",\n value: function isEquals(data1, data2) {\n return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n return ObjectUtils.isNotEmpty(this.getFilters()) || this.props.globalFilter;\n }\n }, {\n key: \"getFirst\",\n value: function getFirst() {\n return this.props.onPage ? this.props.first : this.state.first;\n }\n }, {\n key: \"getRows\",\n value: function getRows() {\n return this.props.onPage ? this.props.rows : this.state.rows;\n }\n }, {\n key: \"getSortField\",\n value: function getSortField() {\n return this.props.onSort ? this.props.sortField : this.state.sortField;\n }\n }, {\n key: \"getSortOrder\",\n value: function getSortOrder() {\n return this.props.onSort ? this.props.sortOrder : this.state.sortOrder;\n }\n }, {\n key: \"getMultiSortMeta\",\n value: function getMultiSortMeta() {\n return (this.props.onSort ? this.props.multiSortMeta : this.state.multiSortMeta) || [];\n }\n }, {\n key: \"getFilters\",\n value: function getFilters() {\n return this.props.onFilter ? this.props.filters : this.state.filters;\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(col, prop) {\n return col.props[prop];\n }\n }, {\n key: \"getColumns\",\n value: function getColumns(ignoreReorderable) {\n var _this2 = this;\n\n var columns = React.Children.toArray(this.props.children);\n\n if (!columns) {\n return null;\n }\n\n if (!ignoreReorderable && this.props.reorderableColumns && this.state.columnOrder) {\n var orderedColumns = this.state.columnOrder.reduce(function (arr, columnKey) {\n var column = _this2.findColumnByKey(columns, columnKey);\n\n column && arr.push(column);\n return arr;\n }, []);\n return [].concat(_toConsumableArray(orderedColumns), _toConsumableArray(columns.filter(function (col) {\n return orderedColumns.indexOf(col) < 0;\n })));\n }\n\n return columns;\n }\n }, {\n key: \"getStorage\",\n value: function getStorage() {\n switch (this.props.stateStorage) {\n case 'local':\n return window.localStorage;\n\n case 'session':\n return window.sessionStorage;\n\n case 'custom':\n return null;\n\n default:\n throw new Error(this.props.stateStorage + ' is not a valid value for the state storage, supported values are \"local\", \"session\" and \"custom\".');\n }\n }\n }, {\n key: \"saveState\",\n value: function saveState() {\n var state = {};\n\n if (this.props.paginator) {\n state.first = this.getFirst();\n state.rows = this.getRows();\n }\n\n var sortField = this.getSortField();\n\n if (sortField) {\n state.sortField = sortField;\n state.sortOrder = this.getSortOrder();\n }\n\n var multiSortMeta = this.getMultiSortMeta();\n\n if (multiSortMeta) {\n state.multiSortMeta = multiSortMeta;\n }\n\n if (this.hasFilter()) {\n state.filters = this.getFilters();\n }\n\n if (this.props.resizableColumns) {\n this.saveColumnWidths(state);\n }\n\n if (this.props.reorderableColumns) {\n state.columnOrder = this.state.columnOrder;\n }\n\n if (this.props.expandedRows) {\n state.expandedRows = this.props.expandedRows;\n }\n\n if (this.props.selection && this.props.onSelectionChange) {\n state.selection = this.props.selection;\n }\n\n if (this.isCustomStateStorage()) {\n if (this.props.customSaveState) {\n this.props.customSaveState(state);\n }\n } else {\n var storage = this.getStorage();\n\n if (ObjectUtils.isNotEmpty(state)) {\n storage.setItem(this.props.stateKey, JSON.stringify(state));\n }\n }\n\n if (this.props.onStateSave) {\n this.props.onStateSave(state);\n }\n }\n }, {\n key: \"clearState\",\n value: function clearState() {\n var storage = this.getStorage();\n\n if (storage && this.props.stateKey) {\n storage.removeItem(this.props.stateKey);\n }\n }\n }, {\n key: \"restoreState\",\n value: function restoreState(state) {\n var restoredState = {};\n\n if (this.isCustomStateStorage()) {\n if (this.props.customRestoreState) {\n restoredState = this.props.customRestoreState();\n }\n } else {\n var storage = this.getStorage();\n var stateString = storage.getItem(this.props.stateKey);\n var dateFormat = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/;\n\n var reviver = function reviver(key, value) {\n return typeof value === \"string\" && dateFormat.test(value) ? new Date(value) : value;\n };\n\n if (stateString) {\n restoredState = JSON.parse(stateString, reviver);\n }\n }\n\n this._restoreState(restoredState, state);\n }\n }, {\n key: \"restoreTableState\",\n value: function restoreTableState(restoredState) {\n var state = this._restoreState(restoredState);\n\n if (ObjectUtils.isNotEmpty(state)) {\n this.setState(state);\n }\n }\n }, {\n key: \"_restoreState\",\n value: function _restoreState(restoredState) {\n var _this3 = this;\n\n var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (ObjectUtils.isNotEmpty(restoredState)) {\n if (this.props.paginator) {\n if (this.props.onPage) {\n var getOnPageParams = function getOnPageParams(first, rows) {\n var totalRecords = _this3.getTotalRecords(_this3.processedData());\n\n var pageCount = Math.ceil(totalRecords / rows) || 1;\n var page = Math.floor(first / rows);\n return {\n first: first,\n rows: rows,\n page: page,\n pageCount: pageCount\n };\n };\n\n this.props.onPage(this.createEvent(getOnPageParams(restoredState.first, restoredState.rows)));\n } else {\n state.first = restoredState.first;\n state.rows = restoredState.rows;\n }\n }\n\n if (restoredState.sortField) {\n if (this.props.onSort) {\n this.props.onSort(this.createEvent({\n sortField: restoredState.sortField,\n sortOrder: restoredState.sortOrder\n }));\n } else {\n state.sortField = restoredState.sortField;\n state.sortOrder = restoredState.sortOrder;\n }\n }\n\n if (restoredState.multiSortMeta) {\n if (this.props.onSort) {\n this.props.onSort(this.createEvent({\n multiSortMeta: restoredState.multiSortMeta\n }));\n } else {\n state.multiSortMeta = restoredState.multiSortMeta;\n }\n }\n\n if (restoredState.filters) {\n state.d_filters = this.cloneFilters(restoredState.filters);\n\n if (this.props.onFilter) {\n this.props.onFilter(this.createEvent({\n filters: restoredState.filters\n }));\n } else {\n state.filters = this.cloneFilters(restoredState.filters);\n }\n }\n\n if (this.props.resizableColumns) {\n this.columnWidthsState = restoredState.columnWidths;\n this.tableWidthState = restoredState.tableWidth;\n }\n\n if (this.props.reorderableColumns) {\n state.columnOrder = restoredState.columnOrder;\n }\n\n if (restoredState.expandedRows && this.props.onRowToggle) {\n this.props.onRowToggle({\n data: restoredState.expandedRows\n });\n }\n\n if (restoredState.selection && this.props.onSelectionChange) {\n this.props.onSelectionChange({\n value: restoredState.selection\n });\n }\n\n if (this.props.onStateRestore) {\n this.props.onStateRestore(restoredState);\n }\n }\n\n return state;\n }\n }, {\n key: \"saveColumnWidths\",\n value: function saveColumnWidths(state) {\n var widths = [];\n var headers = DomHandler.find(this.el, '.p-datatable-thead > tr > th');\n headers.forEach(function (header) {\n return widths.push(DomHandler.getOuterWidth(header));\n });\n state.columnWidths = widths.join(',');\n\n if (this.props.columnResizeMode === 'expand') {\n state.tableWidth = DomHandler.getOuterWidth(this.table) + 'px';\n }\n }\n }, {\n key: \"restoreColumnWidths\",\n value: function restoreColumnWidths() {\n var _this4 = this;\n\n if (this.columnWidthsState) {\n var widths = this.columnWidthsState.split(',');\n\n if (this.props.columnResizeMode === 'expand' && this.tableWidthState) {\n this.table.style.width = this.tableWidthState;\n this.table.style.minWidth = this.tableWidthState;\n this.el.style.width = this.tableWidthState;\n }\n\n if (ObjectUtils.isNotEmpty(widths)) {\n this.createStyleElement();\n var innerHTML = '';\n widths.forEach(function (width, index) {\n var style = _this4.props.scrollable ? \"flex: 1 1 \".concat(width, \"px !important\") : \"width: \".concat(width, \"px !important\");\n innerHTML += \"\\n .p-datatable[\".concat(_this4.state.attributeSelector, \"] .p-datatable-thead > tr > th:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this4.state.attributeSelector, \"] .p-datatable-tbody > tr > td:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this4.state.attributeSelector, \"] .p-datatable-tfoot > tr > td:nth-child(\").concat(index + 1, \") {\\n \").concat(style, \"\\n }\\n \");\n });\n this.styleElement.innerHTML = innerHTML;\n }\n }\n }\n }, {\n key: \"findParentHeader\",\n value: function findParentHeader(element) {\n if (element.nodeName === 'TH') {\n return element;\n } else {\n var parent = element.parentElement;\n\n while (parent.nodeName !== 'TH') {\n parent = parent.parentElement;\n if (!parent) break;\n }\n\n return parent;\n }\n }\n }, {\n key: \"getGroupRowSortField\",\n value: function getGroupRowSortField() {\n return this.props.sortMode === 'single' ? this.props.sortField : this.state.groupRowsSortMeta ? this.state.groupRowsSortMeta.field : null;\n }\n }, {\n key: \"getSelectableData\",\n value: function getSelectableData(val) {\n var _this5 = this;\n\n if (this.props.showSelectionElement || this.props.isDataSelectable) {\n return val.filter(function (data, index) {\n var isSelectable = true;\n if (_this5.props.showSelectionElement) isSelectable = _this5.props.showSelectionElement({\n rowIndex: index,\n props: _this5.props\n });\n if (_this5.props.isDataSelectable && isSelectable) isSelectable = _this5.props.isDataSelectable({\n data: data,\n index: index\n });\n return isSelectable;\n });\n }\n\n return val;\n }\n }, {\n key: \"allRowsSelected\",\n value: function allRowsSelected(processedData) {\n var _this6 = this;\n\n if (this.props.onSelectAllChange) {\n return this.props.selectAll;\n } else {\n var data = this.props.selectionPageOnly ? this.dataToRender(processedData) : processedData;\n var val = this.props.frozenValue ? [].concat(_toConsumableArray(this.props.frozenValue), _toConsumableArray(data)) : data;\n var selectableVal = this.getSelectableData(val);\n return selectableVal && this.props.selection && selectableVal.every(function (sv) {\n return _this6.props.selection.some(function (s) {\n return _this6.isEquals(s, sv);\n });\n });\n }\n }\n }, {\n key: \"getSelectionModeInColumn\",\n value: function getSelectionModeInColumn(columns) {\n if (columns) {\n var col = columns.find(function (c) {\n return !!c.props.selectionMode;\n });\n return col ? col.props.selectionMode : null;\n }\n\n return null;\n }\n }, {\n key: \"findColumnByKey\",\n value: function findColumnByKey(columns, key) {\n return ObjectUtils.isNotEmpty(columns) ? columns.find(function (col) {\n return col.props.columnKey === key || col.props.field === key;\n }) : null;\n }\n }, {\n key: \"getTotalRecords\",\n value: function getTotalRecords(data) {\n return this.props.lazy ? this.props.totalRecords : data ? data.length : 0;\n }\n }, {\n key: \"onEditingMetaChange\",\n value: function onEditingMetaChange(e) {\n var rowData = e.rowData,\n field = e.field,\n rowIndex = e.rowIndex,\n editing = e.editing;\n\n var editingMeta = _objectSpread({}, this.state.editingMeta);\n\n var meta = editingMeta[rowIndex];\n\n if (editing) {\n !meta && (meta = editingMeta[rowIndex] = {\n data: _objectSpread({}, rowData),\n fields: []\n });\n meta['fields'].push(field);\n } else if (meta) {\n var fields = meta['fields'].filter(function (f) {\n return f !== field;\n });\n !fields.length ? delete editingMeta[rowIndex] : meta['fields'] = fields;\n }\n\n this.setState({\n editingMeta: editingMeta\n });\n }\n }, {\n key: \"clearEditingMetaData\",\n value: function clearEditingMetaData() {\n if (this.props.editMode && ObjectUtils.isNotEmpty(this.state.editingMeta)) {\n this.setState({\n editingMeta: {}\n });\n }\n }\n }, {\n key: \"onColumnResizeStart\",\n value: function onColumnResizeStart(e) {\n var event = e.originalEvent,\n column = e.column;\n var containerLeft = DomHandler.getOffset(this.el).left;\n this.resizeColumn = column;\n this.resizeColumnElement = event.currentTarget.parentElement;\n this.columnResizing = true;\n this.lastResizeHelperX = event.pageX - containerLeft + this.el.scrollLeft;\n this.bindColumnResizeEvents();\n }\n }, {\n key: \"onColumnResize\",\n value: function onColumnResize(event) {\n var containerLeft = DomHandler.getOffset(this.el).left;\n DomHandler.addClass(this.el, 'p-unselectable-text');\n this.resizeHelper.style.height = this.el.offsetHeight + 'px';\n this.resizeHelper.style.top = 0 + 'px';\n this.resizeHelper.style.left = event.pageX - containerLeft + this.el.scrollLeft + 'px';\n this.resizeHelper.style.display = 'block';\n }\n }, {\n key: \"onColumnResizeEnd\",\n value: function onColumnResizeEnd() {\n var delta = this.resizeHelper.offsetLeft - this.lastResizeHelperX;\n var columnWidth = this.resizeColumnElement.offsetWidth;\n var newColumnWidth = columnWidth + delta;\n var minWidth = this.resizeColumnElement.style.minWidth || 15;\n\n if (columnWidth + delta > parseInt(minWidth, 10)) {\n if (this.props.columnResizeMode === 'fit') {\n var nextColumn = this.resizeColumnElement.nextElementSibling;\n var nextColumnWidth = nextColumn.offsetWidth - delta;\n\n if (newColumnWidth > 15 && nextColumnWidth > 15) {\n this.resizeTableCells(newColumnWidth, nextColumnWidth);\n }\n } else if (this.props.columnResizeMode === 'expand') {\n var tableWidth = this.table.offsetWidth + delta + 'px';\n this.table.style.width = tableWidth;\n this.table.style.minWidth = tableWidth;\n this.resizeTableCells(newColumnWidth);\n }\n\n if (this.props.onColumnResizeEnd) {\n this.props.onColumnResizeEnd({\n element: this.resizeColumnElement,\n column: this.resizeColumn,\n delta: delta\n });\n }\n\n if (this.isStateful()) {\n this.saveState();\n }\n }\n\n this.resizeHelper.style.display = 'none';\n this.resizeColumn = null;\n this.resizeColumnElement = null;\n DomHandler.removeClass(this.el, 'p-unselectable-text');\n this.unbindColumnResizeEvents();\n }\n }, {\n key: \"resizeTableCells\",\n value: function resizeTableCells(newColumnWidth, nextColumnWidth) {\n var _this7 = this;\n\n var widths = [];\n var colIndex = DomHandler.index(this.resizeColumnElement);\n var headers = DomHandler.find(this.table, '.p-datatable-thead > tr > th');\n headers.forEach(function (header) {\n return widths.push(DomHandler.getOuterWidth(header));\n });\n this.destroyStyleElement();\n this.createStyleElement();\n var innerHTML = '';\n widths.forEach(function (width, index) {\n var colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;\n var style = _this7.props.scrollable ? \"flex: 1 1 \".concat(colWidth, \"px !important\") : \"width: \".concat(colWidth, \"px !important\");\n innerHTML += \"\\n .p-datatable[\".concat(_this7.state.attributeSelector, \"] .p-datatable-thead > tr > th:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this7.state.attributeSelector, \"] .p-datatable-tbody > tr > td:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this7.state.attributeSelector, \"] .p-datatable-tfoot > tr > td:nth-child(\").concat(index + 1, \") {\\n \").concat(style, \"\\n }\\n \");\n });\n this.styleElement.innerHTML = innerHTML;\n }\n }, {\n key: \"bindColumnResizeEvents\",\n value: function bindColumnResizeEvents() {\n var _this8 = this;\n\n if (!this.documentColumnResizeListener) {\n this.documentColumnResizeListener = document.addEventListener('mousemove', function (event) {\n if (_this8.columnResizing) {\n _this8.onColumnResize(event);\n }\n });\n }\n\n if (!this.documentColumnResizeEndListener) {\n this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {\n if (_this8.columnResizing) {\n _this8.columnResizing = false;\n\n _this8.onColumnResizeEnd();\n }\n });\n }\n }\n }, {\n key: \"unbindColumnResizeEvents\",\n value: function unbindColumnResizeEvents() {\n if (this.documentColumnResizeListener) {\n document.removeEventListener('document', this.documentColumnResizeListener);\n this.documentColumnResizeListener = null;\n }\n\n if (this.documentColumnResizeEndListener) {\n document.removeEventListener('document', this.documentColumnResizeEndListener);\n this.documentColumnResizeEndListener = null;\n }\n }\n }, {\n key: \"onColumnHeaderMouseDown\",\n value: function onColumnHeaderMouseDown(e) {\n DomHandler.clearSelection();\n var event = e.originalEvent,\n column = e.column;\n\n if (this.props.reorderableColumns && this.getColumnProp(column, 'reorderable') !== false) {\n if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;\n }\n }\n }, {\n key: \"onColumnHeaderCheckboxChange\",\n value: function onColumnHeaderCheckboxChange(e, processedData) {\n var _this9 = this;\n\n if (this.props.onSelectAllChange) {\n this.props.onSelectAllChange(e);\n } else {\n var originalEvent = e.originalEvent,\n checked = e.checked;\n var data = this.props.selectionPageOnly ? this.dataToRender(processedData) : processedData;\n var selection = this.props.selectionPageOnly && this.props.selection ? this.props.selection.filter(function (s) {\n return !data.some(function (d) {\n return _this9.isEquals(s, d);\n });\n }) : [];\n\n if (checked) {\n selection = this.props.frozenValue ? [].concat(_toConsumableArray(selection), _toConsumableArray(this.props.frozenValue), _toConsumableArray(data)) : [].concat(_toConsumableArray(selection), _toConsumableArray(data));\n selection = this.getSelectableData(selection);\n this.props.onAllRowsSelect && this.props.onAllRowsSelect({\n originalEvent: originalEvent,\n data: selection,\n type: 'all'\n });\n } else {\n this.props.onAllRowsUnselect && this.props.onAllRowsUnselect({\n originalEvent: originalEvent,\n data: selection,\n type: 'all'\n });\n }\n\n if (this.props.onSelectionChange) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: 'all'\n });\n }\n }\n }\n }, {\n key: \"onColumnHeaderDragStart\",\n value: function onColumnHeaderDragStart(e) {\n var event = e.originalEvent,\n column = e.column;\n\n if (this.columnResizing) {\n event.preventDefault();\n return;\n }\n\n this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.reorderIndicatorUp);\n this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorUp);\n this.draggedColumn = column;\n this.draggedColumnElement = this.findParentHeader(event.currentTarget);\n event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible\n }\n }, {\n key: \"onColumnHeaderDragOver\",\n value: function onColumnHeaderDragOver(e) {\n var event = e.originalEvent;\n var dropHeader = this.findParentHeader(event.currentTarget);\n\n if (this.props.reorderableColumns && this.draggedColumnElement && dropHeader) {\n event.preventDefault();\n\n if (this.draggedColumnElement !== dropHeader) {\n var containerOffset = DomHandler.getOffset(this.el);\n var dropHeaderOffset = DomHandler.getOffset(dropHeader);\n var targetLeft = dropHeaderOffset.left - containerOffset.left;\n var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;\n this.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';\n this.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';\n\n if (event.pageX > columnCenter) {\n this.reorderIndicatorUp.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.reorderIndicatorDown.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.dropPosition = 1;\n } else {\n this.reorderIndicatorUp.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.reorderIndicatorDown.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.dropPosition = -1;\n }\n\n this.reorderIndicatorUp.style.display = 'block';\n this.reorderIndicatorDown.style.display = 'block';\n }\n }\n }\n }, {\n key: \"onColumnHeaderDragLeave\",\n value: function onColumnHeaderDragLeave(e) {\n var event = e.originalEvent;\n\n if (this.props.reorderableColumns && this.draggedColumnElement) {\n event.preventDefault();\n this.reorderIndicatorUp.style.display = 'none';\n this.reorderIndicatorDown.style.display = 'none';\n }\n }\n }, {\n key: \"onColumnHeaderDrop\",\n value: function onColumnHeaderDrop(e) {\n var _this10 = this;\n\n var event = e.originalEvent,\n column = e.column;\n event.preventDefault();\n\n if (this.draggedColumnElement) {\n var dragIndex = DomHandler.index(this.draggedColumnElement);\n var dropIndex = DomHandler.index(this.findParentHeader(event.currentTarget));\n var allowDrop = dragIndex !== dropIndex;\n\n if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dragIndex - dropIndex === 1 && this.dropPosition === 1)) {\n allowDrop = false;\n }\n\n if (allowDrop) {\n var columns = this.getColumns();\n\n var isSameColumn = function isSameColumn(col1, col2) {\n return col1.props.columnKey || col2.props.columnKey ? ObjectUtils.equals(col1.props, col2.props, 'columnKey') : ObjectUtils.equals(col1.props, col2.props, 'field');\n };\n\n var dragColIndex = columns.findIndex(function (child) {\n return isSameColumn(child, _this10.draggedColumn);\n });\n var dropColIndex = columns.findIndex(function (child) {\n return isSameColumn(child, column);\n });\n\n if (dropColIndex < dragColIndex && this.dropPosition === 1) {\n dropColIndex++;\n }\n\n if (dropColIndex > dragColIndex && this.dropPosition === -1) {\n dropColIndex--;\n }\n\n ObjectUtils.reorderArray(columns, dragColIndex, dropColIndex);\n var columnOrder = columns.reduce(function (orders, col) {\n orders.push(col.props.columnKey || col.props.field);\n return orders;\n }, []);\n this.setState({\n columnOrder: columnOrder\n });\n\n if (this.props.onColReorder) {\n this.props.onColReorder({\n originalEvent: event,\n dragIndex: dragColIndex,\n dropIndex: dropColIndex,\n columns: columns\n });\n }\n }\n\n this.reorderIndicatorUp.style.display = 'none';\n this.reorderIndicatorDown.style.display = 'none';\n this.draggedColumnElement.draggable = false;\n this.draggedColumnElement = null;\n this.draggedColumn = null;\n this.dropPosition = null;\n }\n }\n }, {\n key: \"createStyleElement\",\n value: function createStyleElement() {\n this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n }\n }, {\n key: \"createResponsiveStyle\",\n value: function createResponsiveStyle() {\n if (!this.responsiveStyleElement) {\n this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n var innerHTML = \"\\n@media screen and (max-width: \".concat(this.props.breakpoint, \") {\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-thead > tr > th,\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tfoot > tr > td {\\n display: none !important;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td {\\n display: flex;\\n width: 100% !important;\\n align-items: center;\\n justify-content: space-between;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td:not(:last-child) {\\n border: 0 none;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\\n border-top: 0;\\n border-right: 0;\\n border-left: 0;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td > .p-column-title {\\n display: block;\\n }\\n}\\n\");\n this.responsiveStyleElement.innerHTML = innerHTML;\n }\n }\n }, {\n key: \"destroyResponsiveStyle\",\n value: function destroyResponsiveStyle() {\n this.responsiveStyleElement = DomHandler.removeInlineStyle(this.responsiveStyleElement);\n }\n }, {\n key: \"destroyStyleElement\",\n value: function destroyStyleElement() {\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n }\n }, {\n key: \"onPageChange\",\n value: function onPageChange(e) {\n this.clearEditingMetaData();\n if (this.props.onPage) this.props.onPage(this.createEvent(e));else this.setState({\n first: e.first,\n rows: e.rows\n });\n\n if (this.props.onValueChange) {\n this.props.onValueChange(this.processedData());\n }\n }\n }, {\n key: \"onSortChange\",\n value: function onSortChange(e) {\n this.clearEditingMetaData();\n var event = e.originalEvent,\n column = e.column,\n sortableDisabledFields = e.sortableDisabledFields;\n var sortField = column.props.sortField || column.props.field;\n var sortOrder = this.props.defaultSortOrder;\n var multiSortMeta;\n var eventMeta;\n this.columnSortable = column.props.sortable;\n this.columnSortFunction = column.props.sortFunction;\n this.columnField = column.props.sortField;\n\n if (this.props.sortMode === 'multiple') {\n var metaKey = event.metaKey || event.ctrlKey;\n multiSortMeta = _toConsumableArray(this.getMultiSortMeta());\n var sortMeta = multiSortMeta.find(function (sortMeta) {\n return sortMeta.field === sortField;\n });\n sortOrder = sortMeta ? this.getCalculatedSortOrder(sortMeta.order) : sortOrder;\n var newMetaData = {\n field: sortField,\n order: sortOrder\n };\n\n if (sortOrder) {\n multiSortMeta = metaKey ? multiSortMeta : multiSortMeta.filter(function (meta) {\n return sortableDisabledFields.some(function (field) {\n return field === meta.field;\n });\n });\n this.addSortMeta(newMetaData, multiSortMeta);\n } else if (this.props.removableSort) {\n this.removeSortMeta(newMetaData, multiSortMeta);\n }\n\n eventMeta = {\n multiSortMeta: multiSortMeta\n };\n } else {\n sortOrder = this.getSortField() === sortField ? this.getCalculatedSortOrder(this.getSortOrder()) : sortOrder;\n\n if (this.props.removableSort) {\n sortField = sortOrder ? sortField : null;\n }\n\n eventMeta = {\n sortField: sortField,\n sortOrder: sortOrder\n };\n }\n\n if (this.props.onSort) {\n this.props.onSort(this.createEvent(eventMeta));\n } else {\n eventMeta.first = 0;\n this.setState(eventMeta);\n }\n\n if (this.props.onValueChange) {\n this.props.onValueChange(this.processedData({\n sortField: sortField,\n sortOrder: sortOrder,\n multiSortMeta: multiSortMeta\n }));\n }\n }\n }, {\n key: \"getCalculatedSortOrder\",\n value: function getCalculatedSortOrder(currentOrder) {\n return this.props.removableSort ? this.props.defaultSortOrder === currentOrder ? currentOrder * -1 : 0 : currentOrder * -1;\n }\n }, {\n key: \"compareValuesOnSort\",\n value: function compareValuesOnSort(value1, value2) {\n var result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n numeric: true\n });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return result;\n }\n }, {\n key: \"addSortMeta\",\n value: function addSortMeta(meta, multiSortMeta) {\n var index = multiSortMeta.findIndex(function (sortMeta) {\n return sortMeta.field === meta.field;\n });\n if (index >= 0) multiSortMeta[index] = meta;else multiSortMeta.push(meta);\n }\n }, {\n key: \"removeSortMeta\",\n value: function removeSortMeta(meta, multiSortMeta) {\n var index = multiSortMeta.findIndex(function (sortMeta) {\n return sortMeta.field === meta.field;\n });\n\n if (index >= 0) {\n multiSortMeta.splice(index, 1);\n }\n\n multiSortMeta = multiSortMeta.length > 0 ? multiSortMeta : null;\n }\n }, {\n key: \"sortSingle\",\n value: function sortSingle(data, field, order) {\n var _this11 = this;\n\n if (this.props.groupRowsBy && this.props.groupRowsBy === this.props.sortField) {\n var multiSortMeta = [{\n field: this.props.sortField,\n order: this.props.sortOrder || this.props.defaultSortOrder\n }];\n this.props.sortField !== field && multiSortMeta.push({\n field: field,\n order: order\n });\n return this.sortMultiple(data, multiSortMeta);\n }\n\n var value = _toConsumableArray(data);\n\n if (this.columnSortable && this.columnSortFunction) {\n value = this.columnSortFunction({\n field: field,\n order: order\n });\n } else {\n value.sort(function (data1, data2) {\n var value1 = ObjectUtils.resolveFieldData(data1, field);\n var value2 = ObjectUtils.resolveFieldData(data2, field);\n\n var result = _this11.compareValuesOnSort(value1, value2);\n\n return order * result;\n });\n }\n\n return value;\n }\n }, {\n key: \"sortMultiple\",\n value: function sortMultiple(data) {\n var _this12 = this;\n\n var multiSortMeta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n if (this.props.groupRowsBy && (this.groupRowsSortMeta || multiSortMeta.length && this.props.groupRowsBy === multiSortMeta[0].field)) {\n var firstSortMeta = multiSortMeta[0];\n !this.groupRowsSortMeta && (this.groupRowsSortMeta = firstSortMeta);\n\n if (firstSortMeta.field !== this.groupRowsSortMeta.field) {\n multiSortMeta = [this.groupRowsSortMeta].concat(_toConsumableArray(multiSortMeta));\n }\n }\n\n var value = _toConsumableArray(data);\n\n if (this.columnSortable && this.columnSortFunction) {\n var meta = multiSortMeta.find(function (meta) {\n return meta.field === _this12.columnField;\n });\n var field = this.columnField;\n var order = meta ? meta.order : this.defaultSortOrder;\n value = this.columnSortFunction({\n field: field,\n order: order\n });\n } else {\n value.sort(function (data1, data2) {\n return _this12.multisortField(data1, data2, multiSortMeta, 0);\n });\n }\n\n return value;\n }\n }, {\n key: \"multisortField\",\n value: function multisortField(data1, data2, multiSortMeta, index) {\n var value1 = ObjectUtils.resolveFieldData(data1, multiSortMeta[index].field);\n var value2 = ObjectUtils.resolveFieldData(data2, multiSortMeta[index].field);\n\n if (value1 === value2) {\n return multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, multiSortMeta, index + 1) : 0;\n }\n\n var result = this.compareValuesOnSort(value1, value2);\n return multiSortMeta[index].order * result;\n }\n }, {\n key: \"onFilterChange\",\n value: function onFilterChange(filters) {\n this.clearEditingMetaData();\n this.setState({\n d_filters: filters\n });\n }\n }, {\n key: \"onFilterApply\",\n value: function onFilterApply() {\n var _this13 = this;\n\n clearTimeout(this.filterTimeout);\n this.filterTimeout = setTimeout(function () {\n var filters = _this13.cloneFilters(_this13.state.d_filters);\n\n if (_this13.props.onFilter) {\n _this13.props.onFilter(_this13.createEvent({\n filters: filters\n }));\n } else {\n _this13.setState({\n first: 0,\n filters: filters\n });\n }\n\n if (_this13.props.onValueChange) {\n _this13.props.onValueChange(_this13.processedData({\n filters: filters\n }));\n }\n }, this.props.filterDelay);\n }\n }, {\n key: \"filterLocal\",\n value: function filterLocal(data, filters) {\n if (!data) return;\n filters = filters || {};\n var columns = this.getColumns();\n var filteredValue = [];\n var isGlobalFilter = filters['global'] || this.props.globalFilter;\n var globalFilterFieldsArray;\n\n if (isGlobalFilter) {\n globalFilterFieldsArray = this.props.globalFilterFields || columns.filter(function (col) {\n return !col.props.excludeGlobalFilter;\n }).map(function (col) {\n return col.props.filterField || col.props.field;\n });\n }\n\n for (var i = 0; i < data.length; i++) {\n var localMatch = true;\n var globalMatch = false;\n var localFiltered = false;\n\n for (var prop in filters) {\n if (Object.prototype.hasOwnProperty.call(filters, prop) && prop !== 'global') {\n localFiltered = true;\n var filterField = prop;\n var filterMeta = filters[filterField];\n\n if (filterMeta.operator) {\n for (var j = 0; j < filterMeta.constraints.length; j++) {\n var filterConstraint = filterMeta.constraints[j];\n localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint, j);\n\n if (filterMeta.operator === FilterOperator.OR && localMatch || filterMeta.operator === FilterOperator.AND && !localMatch) {\n break;\n }\n }\n } else {\n localMatch = this.executeLocalFilter(filterField, data[i], filterMeta, 0);\n }\n\n if (!localMatch) {\n break;\n }\n }\n }\n\n if (isGlobalFilter && !globalMatch && globalFilterFieldsArray) {\n for (var _j = 0; _j < globalFilterFieldsArray.length; _j++) {\n var globalFilterField = globalFilterFieldsArray[_j];\n var matchMode = filters['global'] ? filters['global'].matchMode : FilterMatchMode.CONTAINS;\n var value = filters['global'] ? filters['global'].value : this.props.globalFilter;\n globalMatch = FilterService.filters[matchMode](ObjectUtils.resolveFieldData(data[i], globalFilterField), value, this.props.filterLocale);\n\n if (globalMatch) {\n break;\n }\n }\n }\n\n var matches = void 0;\n\n if (isGlobalFilter) {\n matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;\n } else {\n matches = localFiltered && localMatch;\n }\n\n if (matches) {\n filteredValue.push(data[i]);\n }\n }\n\n if (filteredValue.length === this.props.value.length) {\n filteredValue = data;\n }\n\n return filteredValue;\n }\n }, {\n key: \"executeLocalFilter\",\n value: function executeLocalFilter(field, rowData, filterMeta, index) {\n var filterValue = filterMeta.value;\n var filterMatchMode = filterMeta.matchMode === 'custom' ? \"custom_\".concat(field) : filterMeta.matchMode || FilterMatchMode.STARTS_WITH;\n var dataFieldValue = ObjectUtils.resolveFieldData(rowData, field);\n var filterConstraint = FilterService.filters[filterMatchMode];\n return filterConstraint(dataFieldValue, filterValue, this.props.filterLocale, index);\n }\n }, {\n key: \"cloneFilters\",\n value: function cloneFilters(filters) {\n var _this14 = this;\n\n filters = filters || this.props.filters;\n var cloned = {};\n\n if (filters) {\n Object.entries(filters).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n prop = _ref2[0],\n value = _ref2[1];\n\n cloned[prop] = value.operator ? {\n operator: value.operator,\n constraints: value.constraints.map(function (constraint) {\n return _objectSpread({}, constraint);\n })\n } : _objectSpread({}, value);\n });\n } else {\n var columns = this.getColumns();\n cloned = columns.reduce(function (_filters, col) {\n var field = col.props.filterField || col.props.field;\n var filterFunction = col.props.filterFunction;\n var dataType = col.props.dataType;\n var matchMode = col.props.filterMatchMode || (PrimeReact.filterMatchModeOptions[dataType] ? PrimeReact.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);\n var constraint = {\n value: null,\n matchMode: matchMode\n };\n\n if (filterFunction) {\n FilterService.register(\"custom_\".concat(field), function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return filterFunction.apply(void 0, args.concat([{\n column: col\n }]));\n });\n }\n\n _filters[field] = _this14.props.filterDisplay === 'menu' ? {\n operator: FilterOperator.AND,\n constraints: [constraint]\n } : constraint;\n return _filters;\n }, {});\n }\n\n return cloned;\n }\n }, {\n key: \"filter\",\n value: function filter(value, field, matchMode) {\n var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n\n var filters = _objectSpread({}, this.state.d_filters);\n\n var meta = filters[field];\n var constraint = meta && meta.operator ? meta.constraints[index] : meta;\n constraint = meta ? {\n value: value,\n matchMode: matchMode || constraint.matchMode\n } : {\n value: value,\n matchMode: matchMode\n };\n this.props.filterDisplay === 'menu' && meta && meta.operator ? filters[field].constraints[index] = constraint : filters[field] = constraint;\n this.setState({\n d_filters: filters\n }, this.onFilterApply);\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var state = {\n d_rows: this.props.rows,\n d_filters: this.cloneFilters(this.props.filters),\n groupRowsSortMeta: null,\n editingMeta: {}\n };\n\n if (!this.props.onPage) {\n state.first = this.props.first;\n state.rows = this.props.rows;\n }\n\n if (!this.props.onSort) {\n state.sortField = this.props.sortField;\n state.sortOrder = this.props.sortOrder;\n state.multiSortMeta = this.props.multiSortMeta;\n }\n\n if (!this.props.onFilter) {\n state.filters = this.props.filters;\n }\n\n this.resetColumnOrder();\n this.setState(state);\n }\n }, {\n key: \"resetColumnOrder\",\n value: function resetColumnOrder() {\n var columns = this.getColumns(true);\n var columnOrder = [];\n\n if (columns) {\n columnOrder = columns.reduce(function (orders, col) {\n orders.push(col.props.columnKey || col.props.field);\n return orders;\n }, []);\n }\n\n this.setState({\n columnOrder: columnOrder\n });\n }\n }, {\n key: \"exportCSV\",\n value: function exportCSV(options) {\n var _this15 = this;\n\n var data;\n var csv = \"\\uFEFF\";\n var columns = this.getColumns();\n\n if (options && options.selectionOnly) {\n data = this.props.selection || [];\n } else {\n data = [].concat(_toConsumableArray(this.props.frozenValue || []), _toConsumableArray(this.processedData() || []));\n } //headers\n\n\n columns.forEach(function (column, i) {\n var _column$props = column.props,\n field = _column$props.field,\n header = _column$props.header,\n exportable = _column$props.exportable;\n\n if (exportable && field) {\n csv += '\"' + (header || field) + '\"';\n\n if (i < columns.length - 1) {\n csv += _this15.props.csvSeparator;\n }\n }\n }); //body\n\n data.forEach(function (record) {\n csv += '\\n';\n columns.forEach(function (column, i) {\n var _column$props2 = column.props,\n columnField = _column$props2.field,\n exportField = _column$props2.exportField,\n exportable = _column$props2.exportable;\n var field = exportField || columnField;\n\n if (exportable && field) {\n var cellData = ObjectUtils.resolveFieldData(record, field);\n\n if (cellData != null) {\n cellData = _this15.props.exportFunction ? _this15.props.exportFunction({\n data: cellData,\n field: field,\n rowData: record,\n column: column\n }) : String(cellData).replace(/\"/g, '\"\"');\n } else cellData = '';\n\n csv += '\"' + cellData + '\"';\n\n if (i < columns.length - 1) {\n csv += _this15.props.csvSeparator;\n }\n }\n });\n });\n DomHandler.exportCSV(csv, this.props.exportFilename);\n }\n }, {\n key: \"closeEditingCell\",\n value: function closeEditingCell() {\n if (this.props.editMode !== \"row\") {\n document.body.click();\n }\n }\n }, {\n key: \"createEvent\",\n value: function createEvent(event) {\n return _objectSpread({\n first: this.getFirst(),\n rows: this.getRows(),\n sortField: this.getSortField(),\n sortOrder: this.getSortOrder(),\n multiSortMeta: this.getMultiSortMeta(),\n filters: this.getFilters()\n }, event);\n }\n }, {\n key: \"processedData\",\n value: function processedData(localState) {\n var data = this.props.value || [];\n\n if (!this.props.lazy) {\n if (data && data.length) {\n var filters = localState && localState.filters || this.getFilters();\n var sortField = localState && localState.sortField || this.getSortField();\n var sortOrder = localState && localState.sortOrder || this.getSortOrder();\n var multiSortMeta = localState && localState.multiSortMeta || this.getMultiSortMeta();\n\n if (ObjectUtils.isNotEmpty(filters) || this.props.globalFilter) {\n data = this.filterLocal(data, filters);\n }\n\n if (sortField || ObjectUtils.isNotEmpty(multiSortMeta)) {\n if (this.props.sortMode === 'single') data = this.sortSingle(data, sortField, sortOrder);else if (this.props.sortMode === 'multiple') data = this.sortMultiple(data, multiSortMeta);\n }\n }\n }\n\n return data;\n }\n }, {\n key: \"dataToRender\",\n value: function dataToRender(data) {\n if (data && this.props.paginator) {\n var first = this.props.lazy ? 0 : this.getFirst();\n return data.slice(first, first + this.getRows());\n }\n\n return data;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this16 = this;\n\n this.setState({\n attributeSelector: UniqueComponentId()\n }, function () {\n _this16.el.setAttribute(_this16.state.attributeSelector, '');\n });\n\n if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {\n this.createResponsiveStyle();\n }\n\n if (this.isStateful()) {\n this.setState(this.restoreState(this.state));\n\n if (this.props.resizableColumns) {\n this.restoreColumnWidths();\n }\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.isStateful()) {\n this.saveState();\n }\n\n if (prevProps.responsiveLayout !== this.props.responsiveLayout) {\n this.destroyResponsiveStyle();\n\n if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {\n this.createResponsiveStyle();\n }\n }\n\n if (prevProps.filters !== this.props.filters) {\n this.setState({\n filters: this.cloneFilters(this.props.filters),\n d_filters: this.cloneFilters(this.props.filters)\n });\n }\n\n if (prevProps.globalFilter !== this.props.globalFilter) {\n this.filter(this.props.globalFilter, 'global', 'contains');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindColumnResizeEvents();\n this.destroyStyleElement();\n this.destroyResponsiveStyle();\n }\n }, {\n key: \"renderLoader\",\n value: function renderLoader() {\n if (this.props.loading) {\n var iconClassName = classNames('p-datatable-loading-icon pi-spin', this.props.loadingIcon);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-loading-overlay p-component-overlay\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: iconClassName\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n if (this.props.header) {\n var content = ObjectUtils.getJSXElement(this.props.header, {\n props: this.props\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-header\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderTableHeader\",\n value: function renderTableHeader(options, empty) {\n var sortField = this.getSortField();\n var sortOrder = this.getSortOrder();\n\n var multiSortMeta = _toConsumableArray(this.getMultiSortMeta());\n\n var groupRowSortField = this.getGroupRowSortField();\n var filters = this.state.d_filters;\n var filtersStore = this.getFilters();\n var processedData = options.items,\n columns = options.columns;\n return /*#__PURE__*/React.createElement(TableHeader, {\n value: processedData,\n tableProps: this.props,\n columns: columns,\n tabIndex: this.props.tabIndex,\n empty: empty,\n headerColumnGroup: this.props.headerColumnGroup,\n resizableColumns: this.props.resizableColumns,\n onColumnResizeStart: this.onColumnResizeStart,\n onColumnResizerClick: this.props.onColumnResizerClick,\n onColumnResizerDoubleClick: this.props.onColumnResizerDoubleClick,\n sortMode: this.props.sortMode,\n sortField: sortField,\n sortOrder: sortOrder,\n multiSortMeta: multiSortMeta,\n groupRowsBy: this.props.groupRowsBy,\n groupRowSortField: groupRowSortField,\n onSortChange: this.onSortChange,\n filterDisplay: this.props.filterDisplay,\n filters: filters,\n filtersStore: filtersStore,\n onFilterChange: this.onFilterChange,\n onFilterApply: this.onFilterApply,\n showSelectAll: this.props.showSelectAll,\n allRowsSelected: this.allRowsSelected,\n onColumnCheckboxChange: this.onColumnHeaderCheckboxChange,\n onColumnMouseDown: this.onColumnHeaderMouseDown,\n onColumnDragStart: this.onColumnHeaderDragStart,\n onColumnDragOver: this.onColumnHeaderDragOver,\n onColumnDragLeave: this.onColumnHeaderDragLeave,\n onColumnDrop: this.onColumnHeaderDrop,\n rowGroupMode: this.props.rowGroupMode,\n reorderableColumns: this.props.reorderableColumns\n });\n }\n }, {\n key: \"renderTableBody\",\n value: function renderTableBody(options, selectionModeInColumn, empty, isVirtualScrollerDisabled) {\n var tableSelector = this.state.attributeSelector;\n var first = this.getFirst();\n var editingMeta = this.state.editingMeta;\n var rows = options.rows,\n columns = options.columns,\n contentRef = options.contentRef,\n className = options.className;\n var frozenBody = this.props.frozenValue && /*#__PURE__*/React.createElement(TableBody, {\n value: this.props.frozenValue,\n className: \"p-datatable-frozen-tbody\",\n frozenRow: true,\n tableProps: this.props,\n tableSelector: tableSelector,\n columns: columns,\n selectionModeInColumn: selectionModeInColumn,\n first: first,\n editingMeta: editingMeta,\n onEditingMetaChange: this.onEditingMetaChange,\n tabIndex: this.props.tabIndex,\n onRowClick: this.props.onRowClick,\n onRowDoubleClick: this.props.onRowDoubleClick,\n onCellClick: this.props.onCellClick,\n selection: this.props.selection,\n onSelectionChange: this.props.onSelectionChange,\n lazy: this.props.lazy,\n paginator: this.props.paginator,\n onCellSelect: this.props.onCellSelect,\n onCellUnselect: this.props.onCellUnselect,\n onRowSelect: this.props.onRowSelect,\n onRowUnselect: this.props.onRowUnselect,\n dragSelection: this.props.dragSelection,\n onContextMenu: this.props.onContextMenu,\n onContextMenuSelectionChange: this.props.onContextMenuSelectionChange,\n metaKeySelection: this.props.metaKeySelection,\n selectionMode: this.props.selectionMode,\n cellSelection: this.props.cellSelection,\n contextMenuSelection: this.props.contextMenuSelection,\n dataKey: this.props.dataKey,\n expandedRows: this.props.expandedRows,\n onRowCollapse: this.props.onRowCollapse,\n onRowExpand: this.props.onRowExpand,\n onRowToggle: this.props.onRowToggle,\n editMode: this.props.editMode,\n editingRows: this.props.editingRows,\n onRowReorder: this.props.onRowReorder,\n scrollable: this.props.scrollable,\n rowGroupMode: this.props.rowGroupMode,\n groupRowsBy: this.props.groupRowsBy,\n expandableRowGroups: this.props.expandableRowGroups,\n loading: this.props.loading,\n emptyMessage: this.props.emptyMessage,\n rowGroupHeaderTemplate: this.props.rowGroupHeaderTemplate,\n rowExpansionTemplate: this.props.rowExpansionTemplate,\n rowGroupFooterTemplate: this.props.rowGroupFooterTemplate,\n onRowEditChange: this.props.onRowEditChange,\n compareSelectionBy: this.props.compareSelectionBy,\n selectOnEdit: this.props.selectOnEdit,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n selectionAutoFocus: this.props.selectionAutoFocus,\n isDataSelectable: this.props.isDataSelectable,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n isVirtualScrollerDisabled: true\n });\n var body = /*#__PURE__*/React.createElement(TableBody, {\n value: this.dataToRender(rows),\n className: className,\n empty: empty,\n frozenRow: false,\n tableProps: this.props,\n tableSelector: tableSelector,\n columns: columns,\n selectionModeInColumn: selectionModeInColumn,\n first: first,\n editingMeta: editingMeta,\n onEditingMetaChange: this.onEditingMetaChange,\n tabIndex: this.props.tabIndex,\n onRowClick: this.props.onRowClick,\n onRowDoubleClick: this.props.onRowDoubleClick,\n onCellClick: this.props.onCellClick,\n selection: this.props.selection,\n onSelectionChange: this.props.onSelectionChange,\n lazy: this.props.lazy,\n paginator: this.props.paginator,\n onCellSelect: this.props.onCellSelect,\n onCellUnselect: this.props.onCellUnselect,\n onRowSelect: this.props.onRowSelect,\n onRowUnselect: this.props.onRowUnselect,\n dragSelection: this.props.dragSelection,\n onContextMenu: this.props.onContextMenu,\n onContextMenuSelectionChange: this.props.onContextMenuSelectionChange,\n metaKeySelection: this.props.metaKeySelection,\n selectionMode: this.props.selectionMode,\n cellSelection: this.props.cellSelection,\n contextMenuSelection: this.props.contextMenuSelection,\n dataKey: this.props.dataKey,\n expandedRows: this.props.expandedRows,\n onRowCollapse: this.props.onRowCollapse,\n onRowExpand: this.props.onRowExpand,\n onRowToggle: this.props.onRowToggle,\n editMode: this.props.editMode,\n editingRows: this.props.editingRows,\n onRowReorder: this.props.onRowReorder,\n scrollable: this.props.scrollable,\n rowGroupMode: this.props.rowGroupMode,\n groupRowsBy: this.props.groupRowsBy,\n expandableRowGroups: this.props.expandableRowGroups,\n loading: this.props.loading,\n emptyMessage: this.props.emptyMessage,\n rowGroupHeaderTemplate: this.props.rowGroupHeaderTemplate,\n rowExpansionTemplate: this.props.rowExpansionTemplate,\n rowGroupFooterTemplate: this.props.rowGroupFooterTemplate,\n onRowEditChange: this.props.onRowEditChange,\n compareSelectionBy: this.props.compareSelectionBy,\n selectOnEdit: this.props.selectOnEdit,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n selectionAutoFocus: this.props.selectionAutoFocus,\n isDataSelectable: this.props.isDataSelectable,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n virtualScrollerContentRef: contentRef,\n virtualScrollerOptions: options,\n isVirtualScrollerDisabled: isVirtualScrollerDisabled\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body);\n }\n }, {\n key: \"renderTableFooter\",\n value: function renderTableFooter(options) {\n var columns = options.columns;\n return /*#__PURE__*/React.createElement(TableFooter, {\n tableProps: this.props,\n columns: columns,\n footerColumnGroup: this.props.footerColumnGroup\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent(processedData, columns, selectionModeInColumn, empty) {\n var _this17 = this;\n\n if (!columns) return;\n var isVirtualScrollerDisabled = this.isVirtualScrollerDisabled();\n var virtualScrollerOptions = this.props.virtualScrollerOptions || {};\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-wrapper\",\n style: {\n maxHeight: isVirtualScrollerDisabled ? this.props.scrollHeight : null\n }\n }, /*#__PURE__*/React.createElement(VirtualScroller, _extends({}, virtualScrollerOptions, {\n items: processedData,\n columns: columns,\n scrollHeight: this.props.scrollHeight,\n disabled: isVirtualScrollerDisabled,\n loaderDisabled: true,\n showSpacer: false,\n contentTemplate: function contentTemplate(options) {\n var ref = function ref(el) {\n _this17.table = el;\n options.spacerRef && options.spacerRef(el);\n };\n\n var tableClassName = classNames('p-datatable-table', _this17.props.tableClassName);\n\n var tableHeader = _this17.renderTableHeader(options, empty);\n\n var tableBody = _this17.renderTableBody(options, selectionModeInColumn, empty, isVirtualScrollerDisabled);\n\n var tableFooter = _this17.renderTableFooter(options);\n\n return /*#__PURE__*/React.createElement(\"table\", {\n ref: ref,\n style: _this17.props.tableStyle,\n className: tableClassName,\n role: \"table\"\n }, tableHeader, tableBody, tableFooter);\n }\n })));\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n if (this.props.footer) {\n var content = ObjectUtils.getJSXElement(this.props.footer, {\n props: this.props\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-footer\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderPaginator\",\n value: function renderPaginator(position, totalRecords) {\n var className = classNames('p-paginator-' + position, this.props.paginatorClassName);\n return /*#__PURE__*/React.createElement(Paginator, {\n first: this.getFirst(),\n rows: this.getRows(),\n pageLinkSize: this.props.pageLinkSize,\n className: className,\n onPageChange: this.onPageChange,\n template: this.props.paginatorTemplate,\n totalRecords: totalRecords,\n rowsPerPageOptions: this.props.rowsPerPageOptions,\n currentPageReportTemplate: this.props.currentPageReportTemplate,\n leftContent: this.props.paginatorLeft,\n rightContent: this.props.paginatorRight,\n alwaysShow: this.props.alwaysShowPaginator,\n dropdownAppendTo: this.props.paginatorDropdownAppendTo\n });\n }\n }, {\n key: \"renderPaginatorTop\",\n value: function renderPaginatorTop(totalRecords) {\n if (this.props.paginator && this.props.paginatorPosition !== 'bottom') {\n return this.renderPaginator('top', totalRecords);\n }\n\n return null;\n }\n }, {\n key: \"renderPaginatorBottom\",\n value: function renderPaginatorBottom(totalRecords) {\n if (this.props.paginator && this.props.paginatorPosition !== 'top') {\n return this.renderPaginator('bottom', totalRecords);\n }\n\n return null;\n }\n }, {\n key: \"renderResizeHelper\",\n value: function renderResizeHelper() {\n var _this18 = this;\n\n if (this.props.resizableColumns) {\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this18.resizeHelper = el;\n },\n className: \"p-column-resizer-helper\",\n style: {\n display: 'none'\n }\n });\n }\n\n return null;\n }\n }, {\n key: \"renderReorderIndicators\",\n value: function renderReorderIndicators() {\n var _this19 = this;\n\n if (this.props.reorderableColumns) {\n var style = {\n position: 'absolute',\n display: 'none'\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this19.reorderIndicatorUp = el;\n },\n className: \"pi pi-arrow-down p-datatable-reorder-indicator-up\",\n style: style\n }), /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this19.reorderIndicatorDown = el;\n },\n className: \"pi pi-arrow-up p-datatable-reorder-indicator-down\",\n style: style\n }));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this20 = this;\n\n var processedData = this.processedData();\n var columns = this.getColumns();\n var totalRecords = this.getTotalRecords(processedData);\n var empty = ObjectUtils.isEmpty(processedData);\n var selectionModeInColumn = this.getSelectionModeInColumn(columns);\n var selectable = this.props.selectionMode || selectionModeInColumn;\n var className = classNames('p-datatable p-component', {\n 'p-datatable-hoverable-rows': this.props.rowHover,\n 'p-datatable-selectable': selectable && !this.props.cellSelection,\n 'p-datatable-selectable-cell': selectable && this.props.cellSelection,\n 'p-datatable-auto-layout': this.props.autoLayout,\n 'p-datatable-resizable': this.props.resizableColumns,\n 'p-datatable-resizable-fit': this.props.resizableColumns && this.props.columnResizeMode === 'fit',\n 'p-datatable-scrollable': this.props.scrollable,\n 'p-datatable-scrollable-vertical': this.props.scrollable && this.props.scrollDirection === 'vertical',\n 'p-datatable-scrollable-horizontal': this.props.scrollable && this.props.scrollDirection === 'horizontal',\n 'p-datatable-scrollable-both': this.props.scrollable && this.props.scrollDirection === 'both',\n 'p-datatable-flex-scrollable': this.props.scrollable && this.props.scrollHeight === 'flex',\n 'p-datatable-responsive-stack': this.props.responsiveLayout === 'stack',\n 'p-datatable-responsive-scroll': this.props.responsiveLayout === 'scroll',\n 'p-datatable-striped': this.props.stripedRows,\n 'p-datatable-gridlines': this.props.showGridlines,\n 'p-datatable-grouped-header': this.props.headerColumnGroup != null,\n 'p-datatable-grouped-footer': this.props.footerColumnGroup != null,\n 'p-datatable-sm': this.props.size === 'small',\n 'p-datatable-lg': this.props.size === 'large'\n }, this.props.className);\n var loader = this.renderLoader();\n var header = this.renderHeader();\n var paginatorTop = this.renderPaginatorTop(totalRecords);\n var content = this.renderContent(processedData, columns, selectionModeInColumn, empty);\n var paginatorBottom = this.renderPaginatorBottom(totalRecords);\n var footer = this.renderFooter();\n var resizeHelper = this.renderResizeHelper();\n var reorderIndicators = this.renderReorderIndicators();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this20.el = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style,\n \"data-scrollselectors\": \".p-datatable-wrapper\"\n }, loader, header, paginatorTop, content, paginatorBottom, footer, resizeHelper, reorderIndicators);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.rows !== prevState.d_rows && !nextProps.onPage) {\n return {\n rows: nextProps.rows,\n d_rows: nextProps.rows\n };\n }\n\n return null;\n }\n }]);\n\n return DataTable;\n}(Component);\n\n_defineProperty(DataTable, \"defaultProps\", {\n id: null,\n value: null,\n header: null,\n footer: null,\n style: null,\n className: null,\n tableStyle: null,\n tableClassName: null,\n paginator: false,\n paginatorPosition: 'bottom',\n alwaysShowPaginator: true,\n paginatorClassName: null,\n paginatorTemplate: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',\n paginatorLeft: null,\n paginatorRight: null,\n paginatorDropdownAppendTo: null,\n pageLinkSize: 5,\n rowsPerPageOptions: null,\n currentPageReportTemplate: '({currentPage} of {totalPages})',\n first: 0,\n rows: null,\n totalRecords: null,\n lazy: false,\n sortField: null,\n sortOrder: null,\n multiSortMeta: null,\n sortMode: 'single',\n defaultSortOrder: 1,\n removableSort: false,\n emptyMessage: null,\n selectionMode: null,\n dragSelection: false,\n cellSelection: false,\n selection: null,\n onSelectionChange: null,\n contextMenuSelection: null,\n onContextMenuSelectionChange: null,\n compareSelectionBy: 'deepEquals',\n dataKey: null,\n metaKeySelection: true,\n selectOnEdit: true,\n selectionPageOnly: false,\n selectionAutoFocus: true,\n showSelectAll: true,\n selectAll: false,\n onSelectAllChange: null,\n headerColumnGroup: null,\n footerColumnGroup: null,\n rowExpansionTemplate: null,\n expandedRows: null,\n onRowToggle: null,\n resizableColumns: false,\n columnResizeMode: 'fit',\n reorderableColumns: false,\n filters: null,\n globalFilter: null,\n filterDelay: 300,\n filterLocale: undefined,\n scrollable: false,\n scrollHeight: null,\n scrollDirection: 'vertical',\n virtualScrollerOptions: null,\n frozenWidth: null,\n frozenValue: null,\n csvSeparator: ',',\n exportFilename: 'download',\n rowGroupMode: null,\n autoLayout: false,\n rowClassName: null,\n cellClassName: null,\n rowGroupHeaderTemplate: null,\n rowGroupFooterTemplate: null,\n loading: false,\n loadingIcon: 'pi pi-spinner',\n tabIndex: 0,\n stateKey: null,\n stateStorage: 'session',\n groupRowsBy: null,\n editMode: 'cell',\n editingRows: null,\n expandableRowGroups: false,\n rowHover: false,\n showGridlines: false,\n stripedRows: false,\n size: 'normal',\n responsiveLayout: 'stack',\n breakpoint: '960px',\n filterDisplay: 'menu',\n expandedRowIcon: 'pi pi-chevron-down',\n collapsedRowIcon: 'pi pi-chevron-right',\n onRowEditComplete: null,\n globalFilterFields: null,\n showSelectionElement: null,\n showRowReorderElement: null,\n isDataSelectable: null,\n onColumnResizeEnd: null,\n onColumnResizerClick: null,\n onColumnResizerDoubleClick: null,\n onSort: null,\n onPage: null,\n onFilter: null,\n onAllRowsSelect: null,\n onAllRowsUnselect: null,\n onRowClick: null,\n onRowDoubleClick: null,\n onRowSelect: null,\n onRowUnselect: null,\n onRowExpand: null,\n onRowCollapse: null,\n onContextMenu: null,\n onColReorder: null,\n onCellClick: null,\n onCellSelect: null,\n onCellUnselect: null,\n onRowReorder: null,\n onValueChange: null,\n rowEditValidator: null,\n onRowEditInit: null,\n onRowEditSave: null,\n onRowEditCancel: null,\n onRowEditChange: null,\n exportFunction: null,\n customSaveState: null,\n customRestoreState: null,\n onStateSave: null,\n onStateRestore: null\n});\n\nexport { DataTable };","map":{"version":3,"names":["React","Component","Paginator","classNames","ObjectUtils","DomHandler","ZIndexUtils","ConnectedOverlayScrollHandler","UniqueComponentId","PrimeReact","localeOption","FilterMatchMode","FilterOperator","FilterService","OverlayService","Ripple","CSSTransition","Portal","InputText","Dropdown","Button","VirtualScroller","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_arrayWithHoles","arr","Array","isArray","_iterableToArrayLimit","_i","Symbol","iterator","_arr","_n","_d","_s","_e","next","done","push","value","err","_arrayLikeToArray","len","arr2","_unsupportedIterableToArray","o","minLen","n","toString","slice","constructor","name","from","test","_nonIterableRest","TypeError","_slicedToArray","_arrayWithoutHoles","_iterableToArray","iter","_nonIterableSpread","_toConsumableArray","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","_typeof","obj","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_objectWithoutProperties","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_createSuper$c","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$c","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","RowRadioButton","_Component","_super","_this","state","focused","onClick","bind","onFocus","onBlur","onChange","onKeyDown","event","disabled","input","focus","setState","code","preventDefault","render","_this2","className","boxClassName","checked","concat","tableSelector","createElement","ref","el","type","role","_createSuper$b","_isNativeReflectConstruct$b","RowCheckbox","iconClassName","tabIndex","ownKeys$7","object","enumerableOnly","symbols","filter","sym","getOwnPropertyDescriptor","_objectSpread$7","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper$a","_isNativeReflectConstruct$a","BodyCell","editing","editingRowData","rowData","styleObject","onMouseDown","onMouseUp","onEditorFocus","onRowToggle","onRadioChange","onCheckboxChange","onRowEditSave","onRowEditCancel","onRowEditInit","editorCallback","get","getColumnProp","index","isEditable","isSelected","selection","findIndex","equals","equalsData","data","compareSelectionBy","dataKey","selectedCell","rowIndex","field","cellIndex","isOutsideClicked","isSameNode","contains","prop","column","getVirtualScrollerOption","option","virtualScrollerOptions","getStyle","bodyStyle","columnStyle","getCellParams","resolveFieldData","selected","getCellCallbackParams","params","originalEvent","getEditingRowData","editingMeta","getTabIndex","cellSelected","allowCellSelection","collection","closeCell","_this3","onBeforeCellEditHide","setTimeout","unbindDocumentEditListener","off","overlayEventListener","switchCellToViewMode","submit","callbackParams","newRowData","newValue","onCellEditCancel","cellEditValidator","onCellEditComplete","valid","findNextSelectableCell","cell","nextCell","nextElementSibling","hasClass","findPrevSelectableCell","prevCell","previousElementSibling","findDownSelectableCell","downRow","parentElement","downCell","children","findUpSelectableCell","upRow","upCell","changeTabIndex","currentCell","focusOnElement","_this4","clearTimeout","tabindexTimeout","focusableEl","editMode","getFirstFocusableElement","findSingle","keyHelper","focusOnInit","_this5","initFocusTimeout","updateStickyPosition","align","right","getOuterWidth","parseFloat","style","left","prev","isSameStyle","val","_this6","selectOnEdit","selfClick","onBeforeCellEditShow","onCellEditInit","cellEditValidatorEvent","bindDocumentEditListener","on","which","currentTarget","isClickable","readOnly","newData","_this7","documentEditListener","document","addEventListener","removeEventListener","componentDidMount","componentDidUpdate","prevProps","prevState","onEditingMetaChange","componentWillUnmount","renderLoading","options","cellFirst","cellLast","cellEven","cellOdd","content","getJSXElement","renderElement","_this8","editorKeyHelper","isRowEditor","selectionMode","rowReorder","expander","rowEditor","header","body","editor","frozen","cellClassName","getPropValue","tableProps","isSelectable","title","responsiveLayout","showSelection","showSelectionElement","Fragment","showReorder","showRowReorderElement","expanded","expandedRowIcon","collapsedRowIcon","ariaControls","expanderProps","frozenRow","rowEditorProps","onSaveClick","saveClassName","saveIconClassName","onCancelClick","cancelClassName","cancelIconClassName","onInitClick","initClassName","initIconClassName","rowSpan","getDerivedStateFromProps","nextProps","ownKeys$6","_objectSpread$6","_createSuper$9","_isNativeReflectConstruct$9","BodyRow","onRowEditChange","onDoubleClick","onRightClick","onTouchEnd","onDragStart","onDragEnd","onDragOver","onDragLeave","onDrop","onEditInit","onEditSave","onEditCancel","isFocusable","selectionModeInColumn","isGrouped","groupRowsBy","data1","data2","col","getEditing","currentRow","nextRow","findNextSelectableRow","row","findPrevSelectableRow","prevRow","shouldRenderBodyCell","rowGroupMode","prevRowData","currentRowFieldData","previousRowFieldData","calculateRowGroupSize","nextRowFieldData","groupRowSpan","nextRowData","onRowClick","onRowDoubleClick","onRowRightClick","onRowTouchEnd","onRowMouseDown","onRowMouseUp","onRowDragStart","onRowDragOver","onRowDragLeave","onRowDragEnd","onRowDrop","onEditChange","editingRows","dataKeyValue","String","editingRowIndex","rowEditValidator","onRowEditComplete","renderContent","columns","map","onCellClick","onCellMouseDown","onCellMouseUp","rowClassName","contextMenuSelected","allowRowSelection","onContextMenu","_createSuper$8","_isNativeReflectConstruct$8","RowTogglerButton","_excluded","ownKeys$5","_objectSpread$5","_createSuper$7","_isNativeReflectConstruct$7","TableBody","rowGroupHeaderStyleObject","onDragSelectionMouseMove","onDragSelectionMouseUp","virtualScrollerContentRef","isSubheaderGrouping","isSelectionEnabled","some","isRadioSelectionMode","isCheckboxSelectionMode","isRadioSelectionModeInColumn","isCheckboxSelectionModeInColumn","isSingleSelection","isMultipleSelection","isRadioOnlySelection","isCheckboxOnlySelection","isContextMenuSelected","contextMenuSelection","isDataSelectable","isRowExpanded","expandedRows","expandableRowGroups","isRowGroupExpanded","undefined","isRowEditing","allowDrag","dragSelection","shiftKey","allowRowDrag","allowCellDrag","allowSelection","allowMetaKeySelection","rowTouched","metaKeySelection","metaKey","ctrlKey","allowRangeSelection","anchorRowIndex","cellSelection","getColumnsLength","rowGroupHeaderStyle","scrollable","top","getRowKey","shouldRenderRowGroupHeader","shouldRenderRowGroupFooter","updateFrozenRowStickyPosition","getOuterHeight","updateFrozenRowGroupHeaderStickyPosition","tableHeaderHeight","updateVirtualScrollerPosition","onSingleSelection","_ref","toggleable","onUnselect","onSelect","onSelectionChange","onMultipleSelection","_ref2","selectionIndex","d","onRangeSelection","clearSelection","rangeRowIndex","selectionInRange","selectRange","Set","anchorCellIndex","rangeStart","rangeEnd","isLazyAndPaginator","lazy","paginator","anchorRowFirst","first","Math","max","selectRangeOnCell","selectRangeOnRow","rowRangeStart","rowRangeEnd","rangeRowData","cellRangeStart","cellRangeEnd","j","_value","onCellSelect","onRowSelect","onCellUnselect","onRowUnselect","enableDragSelection","dragSelectionHelper","addClass","initialDragPosition","x","clientX","y","clientY","pageY","pageX","bindDragSelectionEvents","isFocused","selectionAutoFocus","checkbox","radio","selector","tabbableEl","onContextMenuSelectionChange","draggable","isSameRow","hasDataKey","onRowCollapse","onRowExpand","expandedRowIndex","rowDragging","draggedRowIndex","dataTransfer","setData","rowElement","rowY","getOffset","getWindowScrollTop","rowMidY","prevRowElement","removeClass","droppedRowIndex","dropIndex","reorderArray","onRowReorder","dragIndex","_this$initialDragPosi","dx","dy","height","abs","width","remove","isSameCell","appendChild","unbindDragSelectionEvents","isVirtualScrollerDisabled","renderEmptyContent","loading","colSpan","emptyMessage","renderGroupHeader","toggler","rowGroupHeaderTemplate","renderRow","renderExpansion","rowExpansionTemplate","id","renderGroupFooter","rowGroupFooterTemplate","groupHeader","expansion","groupFooter","empty","ownKeys$4","_objectSpread$4","_createSuper$6","_isNativeReflectConstruct$6","FooterCell","footerStyle","_createSuper$5","_isNativeReflectConstruct$5","TableFooter","hasFooter","footerColumnGroup","footer","renderGroupFooterCells","Children","toArray","renderFooterCells","isVisible","hidden","columnKey","rows","_createSuper$4","_isNativeReflectConstruct$4","HeaderCheckbox","ownKeys$3","_objectSpread$3","_createSuper$3","_isNativeReflectConstruct$3","ColumnFilter","overlayVisible","overlayRef","createRef","filterCallback","filterApplyCallback","onOperatorChange","addConstraint","clearFilter","applyFilter","onInputChange","toggleMenu","onOverlayEnter","onOverlayExit","onOverlayExited","onContentKeyDown","onContentClick","onContentMouseDown","current","filters","filtersStore","hasFilter","fieldFilter","operator","isFilterBlank","constraints","hasRowFilter","filterModel","isEmpty","isRowMatchModeSelected","matchMode","showMenuButton","display","matchModes","filterMatchModeOptions","findDataType","label","isShowMatchModes","isShowOperator","showRemoveIcon","fieldConstraints","isShowAddConstraint","isTargetClicked","icon","getDefaultConstraint","filterStoreModel","dataType","hasMatchMode","mode","CUSTOM","find","filterClearCallback","defaultConstraint","splice","onFilterChange","onFilterApply","hide","filterApplyClickCallback","onToggleButtonKeyDown","focusable","overlay","altKey","onRowMatchModeChange","filterMatchModeChangeCallback","onRowMatchModeKeyDown","clear","item","nextItem","findNextItem","removeAttribute","prevItem","findPrevItem","filterOperationChangeCallback","onMenuMatchModeChange","filterConstraintAddCallback","newConstraint","constraint","removeConstraint","filterConstraintRemoveCallback","removedConstraint","firstElementChild","lastElementChild","emit","set","autoZIndex","zIndex","alignOverlay","appendTo","bindOutsideClickListener","bindScrollListener","bindResizeListener","onOverlayHide","unbindOutsideClickListener","unbindResizeListener","unbindScrollListener","outsideClickListener","scrollHandler","resizeListener","isTouchDevice","window","operatorOptions","AND","OR","noFilterLabel","removeRuleButtonLabel","addRuleButtonLabel","clearButtonLabel","applyButtonLabel","meta","_len","args","_key","renderFilterElement","model","placeholder","maxLength","renderRowFilterElement","renderMenuFilterElement","fieldConstraint","renderMenuButton","renderClearButton","renderRowItems","renderOperator","renderMatchModeDropdown","_this9","renderRemoveButton","_this10","removeRuleLabel","renderConstraints","_this11","matchModeDropdown","menuFilterElement","removeButton","renderAddRule","addRuleLabel","renderFilterClearButton","clearLabel","renderFilterApplyButton","applyLabel","renderButtonBar","clearButton","applyButton","renderItems","addRule","buttonBar","renderOverlay","inputStyle","ripple","filterHeader","filterFooter","items","nodeRef","timeout","enter","exit","unmountOnExit","onEnter","onExit","onExited","rowFilterElement","menuButton","ownKeys$2","_objectSpread$2","_createSuper$2","_isNativeReflectConstruct$2","HeaderCell","onResizerMouseDown","onResizerClick","onResizerDoubleClick","isBadgeVisible","multiSortMeta","isSortableDisabled","allSortableDisabled","headerStyle","getMultiSortMetaIndex","getSortMeta","sorted","sortOrder","metaIndex","sortMode","sortField","order","getAriaSort","sortIcon","filterRow","updateSortableDisabled","prevColumn","onSortableChange","targetNode","onSortChange","sortableDisabledFields","onColumnMouseDown","onColumnDragStart","onColumnDragOver","onColumnDragLeave","onColumnDrop","onColumnResizeStart","onColumnResizerClick","element","onColumnResizerDoubleClick","renderResizer","resizableColumns","renderTitle","renderSortIcon","renderBadge","_ref3","groupRowSortField","renderCheckbox","showSelectAll","filterDisplay","allRowsSelected","onColumnCheckboxChange","renderFilter","renderHeader","sortMeta","badge","reorderableColumns","ariaSort","resizer","ownKeys$1","_objectSpread$1","_createSuper$1","_isNativeReflectConstruct$1","TableHeader","isSingleSort","isMultipleSort","isAllSortableDisabled","isColumnSorted","sortableDisabled","renderGroupHeaderCells","renderHeaderCells","renderFilterCells","_col$props","filterHeaderStyle","filterHeaderClassName","colStyle","colClassName","colKey","headerColumnGroup","headerRow","ownKeys","_objectSpread","_createSuper","_isNativeReflectConstruct","DataTable","d_rows","columnOrder","groupRowsSortMeta","attributeSelector","onPage","onSort","d_filters","cloneFilters","onFilter","onColumnHeaderMouseDown","onColumnHeaderDragStart","onColumnHeaderDragOver","onColumnHeaderDragLeave","onColumnHeaderDrop","onColumnHeaderCheckboxChange","onPageChange","isCustomStateStorage","stateStorage","isStateful","stateKey","isEquals","isNotEmpty","getFilters","globalFilter","getFirst","getRows","getSortField","getSortOrder","getMultiSortMeta","getColumns","ignoreReorderable","orderedColumns","reduce","findColumnByKey","getStorage","localStorage","sessionStorage","Error","saveState","saveColumnWidths","customSaveState","storage","setItem","JSON","stringify","onStateSave","clearState","removeItem","restoreState","restoredState","customRestoreState","stateString","getItem","dateFormat","reviver","Date","parse","_restoreState","restoreTableState","getOnPageParams","totalRecords","getTotalRecords","processedData","pageCount","ceil","page","floor","createEvent","columnWidthsState","columnWidths","tableWidthState","tableWidth","onStateRestore","widths","headers","join","columnResizeMode","table","restoreColumnWidths","split","minWidth","createStyleElement","innerHTML","styleElement","findParentHeader","nodeName","parent","getGroupRowSortField","getSelectableData","onSelectAllChange","selectAll","selectionPageOnly","dataToRender","frozenValue","selectableVal","every","sv","s","getSelectionModeInColumn","c","fields","f","clearEditingMetaData","containerLeft","resizeColumn","resizeColumnElement","columnResizing","lastResizeHelperX","scrollLeft","bindColumnResizeEvents","onColumnResize","resizeHelper","offsetHeight","onColumnResizeEnd","delta","offsetLeft","columnWidth","offsetWidth","newColumnWidth","parseInt","nextColumn","nextColumnWidth","resizeTableCells","unbindColumnResizeEvents","colIndex","destroyStyleElement","colWidth","documentColumnResizeListener","documentColumnResizeEndListener","onAllRowsSelect","onAllRowsUnselect","colReorderIconWidth","getHiddenElementOuterWidth","reorderIndicatorUp","colReorderIconHeight","getHiddenElementOuterHeight","draggedColumn","draggedColumnElement","dropHeader","containerOffset","dropHeaderOffset","targetLeft","columnCenter","reorderIndicatorDown","dropPosition","allowDrop","isSameColumn","col1","col2","dragColIndex","child","dropColIndex","orders","onColReorder","createInlineStyle","nonce","createResponsiveStyle","responsiveStyleElement","breakpoint","destroyResponsiveStyle","removeInlineStyle","onValueChange","defaultSortOrder","eventMeta","columnSortable","sortable","columnSortFunction","sortFunction","columnField","getCalculatedSortOrder","newMetaData","addSortMeta","removableSort","removeSortMeta","currentOrder","compareValuesOnSort","value1","value2","localeCompare","numeric","sortSingle","sortMultiple","sort","_this12","firstSortMeta","multisortField","_this13","filterTimeout","filterDelay","filterLocal","filteredValue","isGlobalFilter","globalFilterFieldsArray","globalFilterFields","excludeGlobalFilter","filterField","localMatch","globalMatch","localFiltered","filterMeta","filterConstraint","executeLocalFilter","_j","globalFilterField","CONTAINS","filterLocale","matches","filterValue","filterMatchMode","STARTS_WITH","dataFieldValue","_this14","cloned","entries","_filters","filterFunction","register","reset","resetColumnOrder","exportCSV","_this15","csv","selectionOnly","_column$props","exportable","csvSeparator","record","_column$props2","exportField","cellData","exportFunction","replace","exportFilename","closeEditingCell","click","localState","_this16","setAttribute","renderLoader","loadingIcon","renderTableHeader","renderTableBody","contentRef","frozenBody","renderTableFooter","_this17","maxHeight","scrollHeight","loaderDisabled","showSpacer","contentTemplate","spacerRef","tableClassName","tableHeader","tableBody","tableFooter","tableStyle","renderFooter","renderPaginator","position","paginatorClassName","pageLinkSize","template","paginatorTemplate","rowsPerPageOptions","currentPageReportTemplate","leftContent","paginatorLeft","rightContent","paginatorRight","alwaysShow","alwaysShowPaginator","dropdownAppendTo","paginatorDropdownAppendTo","renderPaginatorTop","paginatorPosition","renderPaginatorBottom","renderResizeHelper","_this18","renderReorderIndicators","_this19","_this20","selectable","rowHover","autoLayout","scrollDirection","stripedRows","showGridlines","size","loader","paginatorTop","paginatorBottom","reorderIndicators","frozenWidth"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/datatable/datatable.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Paginator } from 'primereact/paginator';\nimport { classNames, ObjectUtils, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, UniqueComponentId } from 'primereact/utils';\nimport PrimeReact, { localeOption, FilterMatchMode, FilterOperator, FilterService } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Ripple } from 'primereact/ripple';\nimport { CSSTransition } from 'primereact/csstransition';\nimport { Portal } from 'primereact/portal';\nimport { InputText } from 'primereact/inputtext';\nimport { Dropdown } from 'primereact/dropdown';\nimport { Button } from 'primereact/button';\nimport { VirtualScroller } from 'primereact/virtualscroller';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$c() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar RowRadioButton = /*#__PURE__*/function (_Component) {\n _inherits(RowRadioButton, _Component);\n\n var _super = _createSuper$c(RowRadioButton);\n\n function RowRadioButton(props) {\n var _this;\n\n _classCallCheck(this, RowRadioButton);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowRadioButton, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.props.onChange(event);\n this.input.focus();\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onChange\",\n value: function onChange(event) {\n this.onClick(event);\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-radiobutton p-component', {\n 'p-radiobutton-focused': this.state.focused\n });\n var boxClassName = classNames('p-radiobutton-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-focus': this.state.focused,\n 'p-disabled': this.props.disabled\n });\n var name = \"\".concat(this.props.tableSelector, \"_dt_radio\");\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-hidden-accessible\"\n }, /*#__PURE__*/React.createElement(\"input\", {\n name: name,\n ref: function ref(el) {\n return _this2.input = el;\n },\n type: \"radio\",\n checked: this.props.checked,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onChange: this.onChange,\n onKeyDown: this.onKeyDown\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n onClick: this.onClick,\n role: \"radio\",\n \"aria-checked\": this.props.checked\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-radiobutton-icon\"\n })));\n }\n }]);\n\n return RowRadioButton;\n}(Component);\n\nfunction _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$b() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar RowCheckbox = /*#__PURE__*/function (_Component) {\n _inherits(RowCheckbox, _Component);\n\n var _super = _createSuper$b(RowCheckbox);\n\n function RowCheckbox(props) {\n var _this;\n\n _classCallCheck(this, RowCheckbox);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowCheckbox, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.setState({\n focused: true\n });\n this.props.onChange(event);\n }\n }\n }, {\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-checkbox p-component', {\n 'p-checkbox-focused': this.state.focused\n });\n var boxClassName = classNames('p-checkbox-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var iconClassName = classNames('p-checkbox-icon', {\n 'pi pi-check': this.props.checked\n });\n var tabIndex = this.props.disabled ? null : '0';\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n role: \"checkbox\",\n \"aria-checked\": this.props.checked,\n tabIndex: tabIndex,\n onKeyDown: this.onKeyDown,\n onFocus: this.onFocus,\n onBlur: this.onBlur\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n })));\n }\n }]);\n\n return RowCheckbox;\n}(Component);\n\nfunction ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$a() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar BodyCell = /*#__PURE__*/function (_Component) {\n _inherits(BodyCell, _Component);\n\n var _super = _createSuper$a(BodyCell);\n\n function BodyCell(props) {\n var _this;\n\n _classCallCheck(this, BodyCell);\n\n _this = _super.call(this, props);\n _this.state = {\n editing: props.editing,\n editingRowData: props.rowData,\n styleObject: {}\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onEditorFocus = _this.onEditorFocus.bind(_assertThisInitialized(_this));\n _this.onRowToggle = _this.onRowToggle.bind(_assertThisInitialized(_this));\n _this.onRadioChange = _this.onRadioChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n _this.onRowEditSave = _this.onRowEditSave.bind(_assertThisInitialized(_this));\n _this.onRowEditCancel = _this.onRowEditCancel.bind(_assertThisInitialized(_this));\n _this.onRowEditInit = _this.onRowEditInit.bind(_assertThisInitialized(_this));\n _this.editorCallback = _this.editorCallback.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(BodyCell, [{\n key: \"field\",\n get: function get() {\n return this.getColumnProp('field') || \"field_\".concat(this.props.index);\n }\n }, {\n key: \"isEditable\",\n value: function isEditable() {\n return this.getColumnProp('editor');\n }\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.props.selection ? this.props.selection instanceof Array ? this.findIndex(this.props.selection) > -1 : this.equals(this.props.selection) : false;\n }\n }, {\n key: \"equalsData\",\n value: function equalsData(data) {\n return this.props.compareSelectionBy === 'equals' ? data === this.props.rowData : ObjectUtils.equals(data, this.props.rowData, this.props.dataKey);\n }\n }, {\n key: \"equals\",\n value: function equals(selectedCell) {\n return (selectedCell.rowIndex === this.props.rowIndex || this.equalsData(selectedCell.rowData)) && (selectedCell.field === this.field || selectedCell.cellIndex === this.props.index);\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return this.el && !(this.el.isSameNode(target) || this.el.contains(target));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column ? this.props.column.props[prop] : null;\n }\n }, {\n key: \"getVirtualScrollerOption\",\n value: function getVirtualScrollerOption(option) {\n return this.props.virtualScrollerOptions ? this.props.virtualScrollerOptions[option] : null;\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var bodyStyle = this.getColumnProp('bodyStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, bodyStyle, this.state.styleObject) : Object.assign({}, columnStyle, bodyStyle);\n }\n }, {\n key: \"getCellParams\",\n value: function getCellParams() {\n return {\n value: this.resolveFieldData(),\n field: this.field,\n rowData: this.props.rowData,\n rowIndex: this.props.rowIndex,\n cellIndex: this.props.index,\n selected: this.isSelected(),\n column: this.props.column,\n props: this.props\n };\n }\n }, {\n key: \"getCellCallbackParams\",\n value: function getCellCallbackParams(event) {\n var params = this.getCellParams();\n return _objectSpread$7({\n originalEvent: event\n }, params);\n }\n }, {\n key: \"resolveFieldData\",\n value: function resolveFieldData(data) {\n return ObjectUtils.resolveFieldData(data || this.props.rowData, this.field);\n }\n }, {\n key: \"getEditingRowData\",\n value: function getEditingRowData() {\n return this.props.editingMeta && this.props.editingMeta[this.props.rowIndex] ? this.props.editingMeta[this.props.rowIndex].data : this.props.rowData;\n }\n }, {\n key: \"getTabIndex\",\n value: function getTabIndex(cellSelected) {\n return this.props.allowCellSelection ? cellSelected ? 0 : this.props.rowIndex === 0 && this.props.index === 0 ? this.props.tabIndex : -1 : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection) {\n var _this2 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this2.equals(data);\n });\n }\n }, {\n key: \"closeCell\",\n value: function closeCell(event) {\n var _this3 = this;\n\n var params = this.getCellCallbackParams(event);\n var onBeforeCellEditHide = this.getColumnProp('onBeforeCellEditHide');\n\n if (onBeforeCellEditHide) {\n onBeforeCellEditHide(params);\n }\n /* When using the 'tab' key, the focus event of the next cell is not called in IE. */\n\n\n setTimeout(function () {\n _this3.setState({\n editing: false\n }, function () {\n _this3.unbindDocumentEditListener();\n\n OverlayService.off('overlay-click', _this3.overlayEventListener);\n _this3.overlayEventListener = null;\n });\n }, 1);\n }\n }, {\n key: \"switchCellToViewMode\",\n value: function switchCellToViewMode(event, submit) {\n var callbackParams = this.getCellCallbackParams(event);\n var newRowData = this.state.editingRowData;\n var newValue = this.resolveFieldData(newRowData);\n\n var params = _objectSpread$7(_objectSpread$7({}, callbackParams), {}, {\n newRowData: newRowData,\n newValue: newValue\n });\n\n var onCellEditCancel = this.getColumnProp('onCellEditCancel');\n var cellEditValidator = this.getColumnProp('cellEditValidator');\n var onCellEditComplete = this.getColumnProp('onCellEditComplete');\n\n if (!submit && onCellEditCancel) {\n onCellEditCancel(params);\n }\n\n var valid = true;\n\n if (cellEditValidator) {\n valid = cellEditValidator(params);\n }\n\n if (valid) {\n if (submit && onCellEditComplete) {\n onCellEditComplete(params);\n }\n\n this.closeCell(event);\n } else {\n event.preventDefault();\n }\n }\n }, {\n key: \"findNextSelectableCell\",\n value: function findNextSelectableCell(cell) {\n var nextCell = cell.nextElementSibling;\n return nextCell ? DomHandler.hasClass(nextCell, 'p-selectable-cell') ? nextCell : this.findNextSelectableCell(nextCell) : null;\n }\n }, {\n key: \"findPrevSelectableCell\",\n value: function findPrevSelectableCell(cell) {\n var prevCell = cell.previousElementSibling;\n return prevCell ? DomHandler.hasClass(prevCell, 'p-selectable-cell') ? prevCell : this.findPrevSelectableCell(prevCell) : null;\n }\n }, {\n key: \"findDownSelectableCell\",\n value: function findDownSelectableCell(cell) {\n var downRow = cell.parentElement.nextElementSibling;\n var downCell = downRow ? downRow.children[this.props.index] : null;\n return downRow && downCell ? DomHandler.hasClass(downRow, 'p-selectable-row') && DomHandler.hasClass(downCell, 'p-selectable-cell') ? downCell : this.findDownSelectableCell(downCell) : null;\n }\n }, {\n key: \"findUpSelectableCell\",\n value: function findUpSelectableCell(cell) {\n var upRow = cell.parentElement.previousElementSibling;\n var upCell = upRow ? upRow.children[this.props.index] : null;\n return upRow && upCell ? DomHandler.hasClass(upRow, 'p-selectable-row') && DomHandler.hasClass(upCell, 'p-selectable-cell') ? upCell : this.findUpSelectableCell(upCell) : null;\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(currentCell, nextCell) {\n if (currentCell && nextCell) {\n currentCell.tabIndex = -1;\n nextCell.tabIndex = this.props.tabIndex;\n }\n }\n }, {\n key: \"focusOnElement\",\n value: function focusOnElement() {\n var _this4 = this;\n\n clearTimeout(this.tabindexTimeout);\n this.tabindexTimeout = setTimeout(function () {\n if (_this4.state.editing) {\n var focusableEl = _this4.props.editMode === 'cell' ? DomHandler.getFirstFocusableElement(_this4.el, ':not(.p-cell-editor-key-helper)') : DomHandler.findSingle(_this4.el, '.p-row-editor-save');\n focusableEl && focusableEl.focus();\n }\n\n _this4.keyHelper && (_this4.keyHelper.tabIndex = _this4.state.editing ? -1 : 0);\n }, 1);\n }\n }, {\n key: \"focusOnInit\",\n value: function focusOnInit() {\n var _this5 = this;\n\n clearTimeout(this.initFocusTimeout);\n this.initFocusTimeout = setTimeout(function () {\n var focusableEl = _this5.props.editMode === 'row' ? DomHandler.findSingle(_this5.el, '.p-row-editor-init') : null;\n focusableEl && focusableEl.focus();\n }, 1);\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$7({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n var isSameStyle = this.state.styleObject['left'] === styleObject['left'] && this.state.styleObject['right'] === styleObject['right'];\n !isSameStyle && this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"editorCallback\",\n value: function editorCallback(val) {\n var editingRowData = _objectSpread$7({}, this.state.editingRowData);\n\n editingRowData[this.field] = val;\n this.setState({\n editingRowData: editingRowData\n }); // update editing meta for complete methods on row mode\n\n this.props.editingMeta[this.props.rowIndex].data[this.field] = val;\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n var _this6 = this;\n\n var params = this.getCellCallbackParams(event);\n\n if (this.props.editMode !== 'row' && this.isEditable() && !this.state.editing && (this.props.selectOnEdit || !this.props.selectOnEdit && this.props.selected)) {\n this.selfClick = true;\n var onBeforeCellEditShow = this.getColumnProp('onBeforeCellEditShow');\n var onCellEditInit = this.getColumnProp('onCellEditInit');\n var cellEditValidatorEvent = this.getColumnProp('cellEditValidatorEvent');\n\n if (onBeforeCellEditShow) {\n onBeforeCellEditShow(params);\n } // If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.\n\n\n setTimeout(function () {\n _this6.setState({\n editing: true\n }, function () {\n if (onCellEditInit) {\n onCellEditInit(params);\n }\n\n if (cellEditValidatorEvent === 'click') {\n _this6.bindDocumentEditListener();\n\n _this6.overlayEventListener = function (e) {\n if (!_this6.isOutsideClicked(e.target)) {\n _this6.selfClick = true;\n }\n };\n\n OverlayService.on('overlay-click', _this6.overlayEventListener);\n }\n });\n }, 1);\n }\n\n if (this.props.allowCellSelection && this.props.onClick) {\n this.props.onClick(params);\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n var params = this.getCellCallbackParams(event);\n\n if (this.props.onMouseDown) {\n this.props.onMouseDown(params);\n }\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n var params = this.getCellCallbackParams(event);\n\n if (this.props.onMouseUp) {\n this.props.onMouseUp(params);\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.props.editMode !== 'row') {\n if (event.which === 13 || event.which === 9) {\n // tab || enter\n this.switchCellToViewMode(event, true);\n }\n\n if (event.which === 27) {\n // escape\n this.switchCellToViewMode(event, false);\n }\n }\n\n if (this.props.allowCellSelection) {\n var target = event.target,\n cell = event.currentTarget;\n\n switch (event.which) {\n //left arrow\n case 37:\n var prevCell = this.findPrevSelectableCell(cell);\n\n if (prevCell) {\n this.changeTabIndex(cell, prevCell);\n prevCell.focus();\n }\n\n event.preventDefault();\n break;\n //right arrow\n\n case 39:\n var nextCell = this.findNextSelectableCell(cell);\n\n if (nextCell) {\n this.changeTabIndex(cell, nextCell);\n nextCell.focus();\n }\n\n event.preventDefault();\n break;\n //up arrow\n\n case 38:\n var upCell = this.findUpSelectableCell(cell);\n\n if (upCell) {\n this.changeTabIndex(cell, upCell);\n upCell.focus();\n }\n\n event.preventDefault();\n break;\n //down arrow\n\n case 40:\n var downCell = this.findDownSelectableCell(cell);\n\n if (downCell) {\n this.changeTabIndex(cell, downCell);\n downCell.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n // @deprecated\n if (!DomHandler.isClickable(target)) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n //space\n\n case 32:\n if (!DomHandler.isClickable(target) && !target.readOnly) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n }\n }\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n this.selfClick = false;\n\n if (this.props.editMode !== 'row' && this.state.editing && this.getColumnProp('cellEditValidatorEvent') === 'blur') {\n this.switchCellToViewMode(event, true);\n }\n }\n }, {\n key: \"onEditorFocus\",\n value: function onEditorFocus(event) {\n this.onClick(event);\n }\n }, {\n key: \"onRadioChange\",\n value: function onRadioChange(event) {\n this.props.onRadioChange({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(event) {\n this.props.onCheckboxChange({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onRowToggle\",\n value: function onRowToggle(event) {\n this.props.onRowToggle({\n originalEvent: event,\n data: this.props.rowData\n });\n event.preventDefault();\n }\n }, {\n key: \"onRowEditInit\",\n value: function onRowEditInit(event) {\n this.props.onRowEditInit({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n }\n }, {\n key: \"onRowEditSave\",\n value: function onRowEditSave(event) {\n this.props.onRowEditSave({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n this.focusOnInit();\n }\n }, {\n key: \"onRowEditCancel\",\n value: function onRowEditCancel(event) {\n this.props.onRowEditCancel({\n originalEvent: event,\n data: this.props.rowData,\n newData: this.getEditingRowData(),\n field: this.field,\n index: this.props.rowIndex\n });\n this.focusOnInit();\n }\n }, {\n key: \"bindDocumentEditListener\",\n value: function bindDocumentEditListener() {\n var _this7 = this;\n\n if (!this.documentEditListener) {\n this.documentEditListener = function (e) {\n if (!_this7.selfClick && _this7.isOutsideClicked(e.target)) {\n _this7.switchCellToViewMode(e, true);\n }\n\n _this7.selfClick = false;\n };\n\n document.addEventListener('click', this.documentEditListener, true);\n }\n }\n }, {\n key: \"unbindDocumentEditListener\",\n value: function unbindDocumentEditListener() {\n if (this.documentEditListener) {\n document.removeEventListener('click', this.documentEditListener, true);\n this.documentEditListener = null;\n this.selfClick = false;\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n\n if (this.props.editMode === 'cell' || this.props.editMode === 'row') {\n this.focusOnElement();\n\n if (prevProps.editingMeta !== this.props.editingMeta) {\n this.setState({\n editingRowData: this.getEditingRowData()\n });\n }\n\n if (prevState.editing !== this.state.editing) {\n var callbackParams = this.getCellCallbackParams();\n\n var params = _objectSpread$7(_objectSpread$7({}, callbackParams), {}, {\n editing: this.state.editing\n });\n\n this.props.onEditingMetaChange(params);\n }\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindDocumentEditListener();\n\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n }\n }, {\n key: \"renderLoading\",\n value: function renderLoading() {\n var options = this.getVirtualScrollerOption('getLoaderOptions')(this.props.rowIndex, {\n cellIndex: this.props.index,\n cellFirst: this.props.index === 0,\n cellLast: this.props.index === this.getVirtualScrollerOption('columns').length - 1,\n cellEven: this.props.index % 2 === 0,\n cellOdd: this.props.index % 2 !== 0,\n column: this.props.column,\n field: this.field\n });\n var content = ObjectUtils.getJSXElement(this.getVirtualScrollerOption('loadingTemplate'), options);\n return /*#__PURE__*/React.createElement(\"td\", null, content);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this8 = this;\n\n var content, editorKeyHelper;\n var cellSelected = this.props.allowCellSelection && this.isSelected();\n var isRowEditor = this.props.editMode === 'row';\n var tabIndex = this.getTabIndex(cellSelected);\n var selectionMode = this.getColumnProp('selectionMode');\n var rowReorder = this.getColumnProp('rowReorder');\n var expander = this.getColumnProp('expander');\n var rowEditor = this.getColumnProp('rowEditor');\n var header = this.getColumnProp('header');\n var body = this.getColumnProp('body');\n var editor = this.getColumnProp('editor');\n var frozen = this.getColumnProp('frozen');\n var align = this.getColumnProp('align');\n var value = this.resolveFieldData();\n var cellClassName = ObjectUtils.getPropValue(this.props.cellClassName, value, {\n props: this.props.tableProps,\n rowData: this.props.rowData,\n column: this.props.column\n });\n var className = classNames(this.getColumnProp('bodyClassName'), this.getColumnProp('className'), cellClassName, _defineProperty({\n 'p-selection-column': selectionMode !== null,\n 'p-editable-column': editor,\n 'p-cell-editing': editor && this.state.editing,\n 'p-frozen-column': frozen,\n 'p-selectable-cell': this.props.allowCellSelection && this.props.isSelectable({\n data: this.getCellParams(),\n index: this.props.rowIndex\n }),\n 'p-highlight': cellSelected\n }, \"p-align-\".concat(align), !!align));\n var style = this.getStyle();\n var title = this.props.responsiveLayout === 'stack' && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-title\"\n }, ObjectUtils.getJSXElement(header, {\n props: this.props.tableProps\n }));\n\n if (selectionMode) {\n var showSelection = this.props.showSelectionElement ? this.props.showSelectionElement(this.props.rowData, {\n rowIndex: this.props.rowIndex,\n props: this.props.tableProps\n }) : true;\n content = showSelection && /*#__PURE__*/React.createElement(React.Fragment, null, selectionMode === 'single' && /*#__PURE__*/React.createElement(RowRadioButton, {\n checked: this.props.selected,\n onChange: this.onRadioChange,\n tabIndex: this.props.tabIndex,\n tableSelector: this.props.tableSelector\n }), selectionMode === 'multiple' && /*#__PURE__*/React.createElement(RowCheckbox, {\n checked: this.props.selected,\n onChange: this.onCheckboxChange,\n tabIndex: this.props.tabIndex\n }));\n } else if (rowReorder) {\n var showReorder = this.props.showRowReorderElement ? this.props.showRowReorderElement(this.props.rowData, {\n rowIndex: this.props.rowIndex,\n props: this.props.tableProps\n }) : true;\n content = showReorder && /*#__PURE__*/React.createElement(\"i\", {\n className: classNames('p-datatable-reorderablerow-handle', this.getColumnProp('rowReorderIcon'))\n });\n } else if (expander) {\n var iconClassName = classNames('p-row-toggler-icon', this.props.expanded ? this.props.expandedRowIcon : this.props.collapsedRowIcon);\n var ariaControls = \"\".concat(this.props.tableSelector, \"_content_\").concat(this.props.rowIndex, \"_expanded\");\n var expanderProps = {\n onClick: this.onRowToggle,\n className: 'p-row-toggler p-link',\n iconClassName: iconClassName\n };\n content = /*#__PURE__*/React.createElement(\"button\", {\n className: expanderProps.className,\n onClick: expanderProps.onClick,\n type: \"button\",\n \"aria-expanded\": this.props.expanded,\n \"aria-controls\": ariaControls,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: expanderProps.iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (body) {\n expanderProps['element'] = content;\n content = ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n expander: expanderProps\n });\n }\n } else if (isRowEditor && rowEditor) {\n var rowEditorProps = {};\n\n if (this.state.editing) {\n rowEditorProps = {\n editing: true,\n onSaveClick: this.onRowEditSave,\n saveClassName: 'p-row-editor-save p-link',\n saveIconClassName: 'p-row-editor-save-icon pi pi-fw pi-check',\n onCancelClick: this.onRowEditCancel,\n cancelClassName: 'p-row-editor-cancel p-link',\n cancelIconClassName: 'p-row-editor-cancel-icon pi pi-fw pi-times'\n };\n content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onSaveClick,\n className: rowEditorProps.saveClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.saveIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onCancelClick,\n className: rowEditorProps.cancelClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.cancelIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null)));\n } else {\n rowEditorProps = {\n editing: false,\n onInitClick: this.onRowEditInit,\n initClassName: 'p-row-editor-init p-link',\n initIconClassName: 'p-row-editor-init-icon pi pi-fw pi-pencil'\n };\n content = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: rowEditorProps.onInitClick,\n className: rowEditorProps.initClassName,\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: rowEditorProps.initIconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n if (body) {\n rowEditorProps['element'] = content;\n content = ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n rowEditor: rowEditorProps\n });\n }\n } else if (body && !this.state.editing) {\n content = body ? ObjectUtils.getJSXElement(body, this.props.rowData, {\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps\n }) : value;\n } else if (editor && this.state.editing) {\n content = ObjectUtils.getJSXElement(editor, {\n rowData: this.state.editingRowData,\n value: this.resolveFieldData(this.state.editingRowData),\n column: this.props.column,\n field: this.field,\n rowIndex: this.props.rowIndex,\n frozenRow: this.props.frozenRow,\n props: this.props.tableProps,\n editorCallback: this.editorCallback\n });\n } else {\n content = value;\n }\n\n if (!isRowEditor && editor) {\n /* eslint-disable */\n editorKeyHelper = /*#__PURE__*/React.createElement(\"a\", {\n tabIndex: \"0\",\n ref: function ref(el) {\n return _this8.keyHelper = el;\n },\n className: \"p-cell-editor-key-helper p-hidden-accessible\",\n onFocus: this.onEditorFocus\n }, /*#__PURE__*/React.createElement(\"span\", null));\n /* eslint-enable */\n }\n\n return /*#__PURE__*/React.createElement(\"td\", {\n ref: function ref(el) {\n return _this8.el = el;\n },\n style: style,\n className: className,\n rowSpan: this.props.rowSpan,\n tabIndex: tabIndex,\n role: \"cell\",\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n onBlur: this.onBlur,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp\n }, editorKeyHelper, title, content);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.getVirtualScrollerOption('loading') ? this.renderLoading() : this.renderElement();\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.editMode === 'row' && nextProps.editing !== prevState.editing) {\n return {\n editing: nextProps.editing\n };\n }\n\n return null;\n }\n }]);\n\n return BodyCell;\n}(Component);\n\nfunction ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$9() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar BodyRow = /*#__PURE__*/function (_Component) {\n _inherits(BodyRow, _Component);\n\n var _super = _createSuper$9(BodyRow);\n\n function BodyRow(props) {\n var _this;\n\n _classCallCheck(this, BodyRow);\n\n _this = _super.call(this, props);\n\n if (!_this.props.onRowEditChange) {\n _this.state = {\n editing: false\n };\n }\n\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onDoubleClick = _this.onDoubleClick.bind(_assertThisInitialized(_this));\n _this.onRightClick = _this.onRightClick.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_this));\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onDragEnd = _this.onDragEnd.bind(_assertThisInitialized(_this));\n _this.onDragOver = _this.onDragOver.bind(_assertThisInitialized(_this));\n _this.onDragLeave = _this.onDragLeave.bind(_assertThisInitialized(_this));\n _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this));\n _this.onEditInit = _this.onEditInit.bind(_assertThisInitialized(_this));\n _this.onEditSave = _this.onEditSave.bind(_assertThisInitialized(_this));\n _this.onEditCancel = _this.onEditCancel.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(BodyRow, [{\n key: \"isFocusable\",\n value: function isFocusable() {\n return this.props.selectionMode && this.props.selectionModeInColumn !== 'single' && this.props.selectionModeInColumn !== 'multiple';\n }\n }, {\n key: \"isGrouped\",\n value: function isGrouped(column) {\n if (this.props.groupRowsBy && this.getColumnProp(column, 'field')) {\n if (Array.isArray(this.props.groupRowsBy)) return this.props.groupRowsBy.indexOf(column.props.field) > -1;else return this.props.groupRowsBy === column.props.field;\n }\n\n return false;\n }\n }, {\n key: \"equals\",\n value: function equals(data1, data2) {\n return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(col, prop) {\n return col ? col.props[prop] : null;\n }\n }, {\n key: \"getEditing\",\n value: function getEditing() {\n return this.props.onRowEditChange ? this.props.editing : this.state.editing;\n }\n }, {\n key: \"getTabIndex\",\n value: function getTabIndex() {\n return this.isFocusable() && !this.props.allowCellSelection ? this.props.index === 0 ? this.props.tabIndex : -1 : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection, rowData) {\n var _this2 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this2.equals(rowData, data);\n });\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(currentRow, nextRow) {\n if (currentRow && nextRow) {\n currentRow.tabIndex = -1;\n nextRow.tabIndex = this.props.tabIndex;\n }\n }\n }, {\n key: \"findNextSelectableRow\",\n value: function findNextSelectableRow(row) {\n var nextRow = row.nextElementSibling;\n return nextRow ? DomHandler.hasClass(nextRow, 'p-selectable-row') ? nextRow : this.findNextSelectableRow(nextRow) : null;\n }\n }, {\n key: \"findPrevSelectableRow\",\n value: function findPrevSelectableRow(row) {\n var prevRow = row.previousElementSibling;\n return prevRow ? DomHandler.hasClass(prevRow, 'p-selectable-row') ? prevRow : this.findPrevSelectableRow(prevRow) : null;\n }\n }, {\n key: \"shouldRenderBodyCell\",\n value: function shouldRenderBodyCell(value, column, i) {\n if (this.getColumnProp(column, 'hidden')) {\n return false;\n } else if (this.props.rowGroupMode && this.props.rowGroupMode === 'rowspan' && this.isGrouped(column)) {\n var prevRowData = value[i - 1];\n\n if (prevRowData) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(value[i], this.getColumnProp(column, 'field'));\n var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.getColumnProp(column, 'field'));\n return currentRowFieldData !== previousRowFieldData;\n }\n }\n\n return true;\n }\n }, {\n key: \"calculateRowGroupSize\",\n value: function calculateRowGroupSize(value, column, index) {\n if (this.isGrouped(column)) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(value[index], this.getColumnProp(column, 'field'));\n var nextRowFieldData = currentRowFieldData;\n var groupRowSpan = 0;\n\n while (currentRowFieldData === nextRowFieldData) {\n groupRowSpan++;\n var nextRowData = value[++index];\n\n if (nextRowData) {\n nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.getColumnProp(column, 'field'));\n } else {\n break;\n }\n }\n\n return groupRowSpan === 1 ? null : groupRowSpan;\n } else {\n return null;\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n this.props.onRowClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDoubleClick\",\n value: function onDoubleClick(event) {\n this.props.onRowDoubleClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onRightClick\",\n value: function onRightClick(event) {\n this.props.onRowRightClick({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n this.props.onRowTouchEnd(event);\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (this.isFocusable() && !this.props.allowCellSelection) {\n var target = event.target,\n row = event.currentTarget;\n\n switch (event.which) {\n //down arrow\n case 40:\n var nextRow = this.findNextSelectableRow(row);\n\n if (nextRow) {\n this.changeTabIndex(row, nextRow);\n nextRow.focus();\n }\n\n event.preventDefault();\n break;\n //up arrow\n\n case 38:\n var prevRow = this.findPrevSelectableRow(row);\n\n if (prevRow) {\n this.changeTabIndex(row, prevRow);\n prevRow.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n // @deprecated\n if (!DomHandler.isClickable(target)) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n //space\n\n case 32:\n if (!DomHandler.isClickable(target) && !target.readOnly) {\n this.onClick(event);\n event.preventDefault();\n }\n\n break;\n }\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n this.props.onRowMouseDown({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onMouseUp\",\n value: function onMouseUp(event) {\n this.props.onRowMouseUp({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n this.props.onRowDragStart({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragOver\",\n value: function onDragOver(event) {\n this.props.onRowDragOver({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragLeave\",\n value: function onDragLeave(event) {\n this.props.onRowDragLeave({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n this.props.onRowDragEnd({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onDrop\",\n value: function onDrop(event) {\n this.props.onRowDrop({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n }, {\n key: \"onEditChange\",\n value: function onEditChange(e, editing) {\n if (this.props.onRowEditChange) {\n var editingRows;\n var dataKey = this.props.dataKey;\n var originalEvent = e.originalEvent,\n data = e.data,\n index = e.index;\n\n if (dataKey) {\n var dataKeyValue = String(ObjectUtils.resolveFieldData(data, dataKey));\n editingRows = this.props.editingRows ? _objectSpread$6({}, this.props.editingRows) : {};\n if (editingRows[dataKeyValue] != null) delete editingRows[dataKeyValue];else editingRows[dataKeyValue] = true;\n } else {\n var editingRowIndex = this.findIndex(this.props.editingRows, data);\n editingRows = this.props.editingRows ? _toConsumableArray(this.props.editingRows) : [];\n if (editingRowIndex !== -1) editingRows = editingRows.filter(function (val, i) {\n return i !== editingRowIndex;\n });else editingRows.push(data);\n }\n\n this.props.onRowEditChange({\n originalEvent: originalEvent,\n data: editingRows,\n index: index\n });\n } else {\n this.setState({\n editing: editing\n });\n }\n }\n }, {\n key: \"onEditInit\",\n value: function onEditInit(e) {\n var event = e.originalEvent;\n\n if (this.props.onRowEditInit) {\n this.props.onRowEditInit({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n\n this.onEditChange(e, true);\n event.preventDefault();\n }\n }, {\n key: \"onEditSave\",\n value: function onEditSave(e) {\n var event = e.originalEvent;\n var valid = this.props.rowEditValidator ? this.props.rowEditValidator(this.props.rowData, {\n props: this.props.tableProps\n }) : true;\n\n if (this.props.onRowEditSave) {\n this.props.onRowEditSave({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index,\n valid: valid\n });\n }\n\n if (valid) {\n if (this.props.onRowEditComplete) {\n this.props.onRowEditComplete(e);\n }\n\n this.onEditChange(e, false);\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onEditCancel\",\n value: function onEditCancel(e) {\n var event = e.originalEvent;\n\n if (this.props.onRowEditCancel) {\n this.props.onRowEditCancel({\n originalEvent: event,\n data: this.props.rowData,\n index: this.props.index\n });\n }\n\n this.onEditChange(e, false);\n event.preventDefault();\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this3 = this;\n\n return this.props.columns.map(function (col, i) {\n if (_this3.shouldRenderBodyCell(_this3.props.value, col, _this3.props.index)) {\n var key = \"\".concat(_this3.getColumnProp(col, 'columnKey') || _this3.getColumnProp(col, 'field'), \"_\").concat(i);\n var rowSpan = _this3.props.rowGroupMode === 'rowspan' ? _this3.calculateRowGroupSize(_this3.props.value, col, _this3.props.index) : null;\n\n var editing = _this3.getEditing();\n\n return /*#__PURE__*/React.createElement(BodyCell, {\n key: key,\n value: _this3.props.value,\n tableProps: _this3.props.tableProps,\n tableSelector: _this3.props.tableSelector,\n column: col,\n rowData: _this3.props.rowData,\n rowIndex: _this3.props.index,\n index: i,\n rowSpan: rowSpan,\n dataKey: _this3.props.dataKey,\n editing: editing,\n editingMeta: _this3.props.editingMeta,\n editMode: _this3.props.editMode,\n onRowEditInit: _this3.onEditInit,\n onRowEditSave: _this3.onEditSave,\n onRowEditCancel: _this3.onEditCancel,\n onEditingMetaChange: _this3.props.onEditingMetaChange,\n onRowToggle: _this3.props.onRowToggle,\n selection: _this3.props.selection,\n allowCellSelection: _this3.props.allowCellSelection,\n compareSelectionBy: _this3.props.compareSelectionBy,\n selectOnEdit: _this3.props.selectOnEdit,\n selected: _this3.props.selected,\n onClick: _this3.props.onCellClick,\n onMouseDown: _this3.props.onCellMouseDown,\n onMouseUp: _this3.props.onCellMouseUp,\n tabIndex: _this3.props.tabIndex,\n cellClassName: _this3.props.cellClassName,\n responsiveLayout: _this3.props.responsiveLayout,\n frozenRow: _this3.props.frozenRow,\n isSelectable: _this3.props.isSelectable,\n showSelectionElement: _this3.props.showSelectionElement,\n showRowReorderElement: _this3.props.showRowReorderElement,\n onRadioChange: _this3.props.onRadioChange,\n onCheckboxChange: _this3.props.onCheckboxChange,\n expanded: _this3.props.expanded,\n expandedRowIcon: _this3.props.expandedRowIcon,\n collapsedRowIcon: _this3.props.collapsedRowIcon,\n virtualScrollerOptions: _this3.props.virtualScrollerOptions\n });\n }\n\n return null;\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n var rowClassName = ObjectUtils.getPropValue(this.props.rowClassName, this.props.rowData, {\n props: this.props.tableProps\n });\n var className = classNames(rowClassName, {\n 'p-highlight': !this.props.allowCellSelection && this.props.selected,\n 'p-highlight-contextmenu': this.props.contextMenuSelected,\n 'p-selectable-row': this.props.allowRowSelection && this.props.isSelectable({\n data: this.props.rowData,\n index: this.props.index\n }),\n 'p-row-odd': this.props.index % 2 !== 0\n });\n var content = this.renderContent();\n var tabIndex = this.getTabIndex();\n return /*#__PURE__*/React.createElement(\"tr\", {\n ref: function ref(el) {\n return _this4.el = el;\n },\n role: \"row\",\n tabIndex: tabIndex,\n className: className,\n onMouseDown: this.onMouseDown,\n onMouseUp: this.onMouseUp,\n onClick: this.onClick,\n onDoubleClick: this.onDoubleClick,\n onContextMenu: this.onRightClick,\n onTouchEnd: this.onTouchEnd,\n onKeyDown: this.onKeyDown,\n onDragStart: this.onDragStart,\n onDragOver: this.onDragOver,\n onDragLeave: this.onDragLeave,\n onDragEnd: this.onDragEnd,\n onDrop: this.onDrop\n }, content);\n }\n }]);\n\n return BodyRow;\n}(Component);\n\nfunction _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$8() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar RowTogglerButton = /*#__PURE__*/function (_Component) {\n _inherits(RowTogglerButton, _Component);\n\n var _super = _createSuper$8(RowTogglerButton);\n\n function RowTogglerButton(props) {\n var _this;\n\n _classCallCheck(this, RowTogglerButton);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(RowTogglerButton, [{\n key: \"onClick\",\n value: function onClick(event) {\n this.props.onClick({\n originalEvent: event,\n data: this.props.rowData\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var iconClassName = classNames('p-row-toggler-icon', this.props.expanded ? this.props.expandedRowIcon : this.props.collapsedRowIcon);\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.onClick,\n className: \"p-row-toggler p-link\",\n tabIndex: this.props.tabIndex\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return RowTogglerButton;\n}(Component);\n\nvar _excluded = [\"originalEvent\"];\n\nfunction ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$7() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar TableBody = /*#__PURE__*/function (_Component) {\n _inherits(TableBody, _Component);\n\n var _super = _createSuper$7(TableBody);\n\n function TableBody(props) {\n var _this;\n\n _classCallCheck(this, TableBody);\n\n _this = _super.call(this, props);\n _this.state = {\n rowGroupHeaderStyleObject: {}\n }; // row\n\n _this.onRowClick = _this.onRowClick.bind(_assertThisInitialized(_this));\n _this.onRowDoubleClick = _this.onRowDoubleClick.bind(_assertThisInitialized(_this));\n _this.onRowRightClick = _this.onRowRightClick.bind(_assertThisInitialized(_this));\n _this.onRowTouchEnd = _this.onRowTouchEnd.bind(_assertThisInitialized(_this));\n _this.onRowMouseDown = _this.onRowMouseDown.bind(_assertThisInitialized(_this));\n _this.onRowMouseUp = _this.onRowMouseUp.bind(_assertThisInitialized(_this));\n _this.onRowToggle = _this.onRowToggle.bind(_assertThisInitialized(_this)); // drag\n\n _this.onRowDragStart = _this.onRowDragStart.bind(_assertThisInitialized(_this));\n _this.onRowDragOver = _this.onRowDragOver.bind(_assertThisInitialized(_this));\n _this.onRowDragLeave = _this.onRowDragLeave.bind(_assertThisInitialized(_this));\n _this.onRowDragEnd = _this.onRowDragEnd.bind(_assertThisInitialized(_this));\n _this.onRowDrop = _this.onRowDrop.bind(_assertThisInitialized(_this)); // selection\n\n _this.onRadioChange = _this.onRadioChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n _this.onDragSelectionMouseMove = _this.onDragSelectionMouseMove.bind(_assertThisInitialized(_this));\n _this.onDragSelectionMouseUp = _this.onDragSelectionMouseUp.bind(_assertThisInitialized(_this));\n _this.isSelectable = _this.isSelectable.bind(_assertThisInitialized(_this)); // cell\n\n _this.onCellClick = _this.onCellClick.bind(_assertThisInitialized(_this));\n _this.onCellMouseDown = _this.onCellMouseDown.bind(_assertThisInitialized(_this));\n _this.onCellMouseUp = _this.onCellMouseUp.bind(_assertThisInitialized(_this));\n _this.ref = _this.ref.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(TableBody, [{\n key: \"ref\",\n value: function ref(el) {\n this.el = el;\n this.props.virtualScrollerContentRef && this.props.virtualScrollerContentRef(el);\n }\n }, {\n key: \"equals\",\n value: function equals(data1, data2) {\n if (this.allowCellSelection()) return (data1.rowIndex === data2.rowIndex || data1.rowData === data2.rowData) && (data1.field === data2.field || data1.cellIndex === data2.cellIndex);else return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"isSubheaderGrouping\",\n value: function isSubheaderGrouping() {\n return this.props.rowGroupMode && this.props.rowGroupMode === 'subheader';\n }\n }, {\n key: \"isSelectionEnabled\",\n value: function isSelectionEnabled() {\n return this.props.selectionMode || this.props.selectionModeInColumn !== null || this.props.columns && this.props.columns.some(function (col) {\n return col && !!col.props.selectionMode;\n });\n }\n }, {\n key: \"isRadioSelectionMode\",\n value: function isRadioSelectionMode() {\n return this.props.selectionMode === 'radiobutton';\n }\n }, {\n key: \"isCheckboxSelectionMode\",\n value: function isCheckboxSelectionMode() {\n return this.props.selectionMode === 'checkbox';\n }\n }, {\n key: \"isRadioSelectionModeInColumn\",\n value: function isRadioSelectionModeInColumn() {\n return this.props.selectionModeInColumn === 'single';\n }\n }, {\n key: \"isCheckboxSelectionModeInColumn\",\n value: function isCheckboxSelectionModeInColumn() {\n return this.props.selectionModeInColumn === 'multiple';\n }\n }, {\n key: \"isSingleSelection\",\n value: function isSingleSelection() {\n return this.props.selectionMode === 'single' && !this.isCheckboxSelectionModeInColumn() || !this.isRadioSelectionMode() && this.isRadioSelectionModeInColumn();\n }\n }, {\n key: \"isMultipleSelection\",\n value: function isMultipleSelection() {\n return this.props.selectionMode === 'multiple' && !this.isRadioSelectionModeInColumn() || this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"isRadioOnlySelection\",\n value: function isRadioOnlySelection() {\n return this.isRadioSelectionMode() && this.isRadioSelectionModeInColumn();\n }\n }, {\n key: \"isCheckboxOnlySelection\",\n value: function isCheckboxOnlySelection() {\n return this.isCheckboxSelectionMode() && this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(rowData) {\n if (rowData && this.props.selection) {\n return this.props.selection instanceof Array ? this.findIndex(this.props.selection, rowData) > -1 : this.equals(rowData, this.props.selection);\n }\n\n return false;\n }\n }, {\n key: \"isContextMenuSelected\",\n value: function isContextMenuSelected(rowData) {\n if (rowData && this.props.contextMenuSelection) {\n return this.equals(rowData, this.props.contextMenuSelection);\n }\n\n return false;\n }\n }, {\n key: \"isSelectable\",\n value: function isSelectable(options) {\n return this.props.isDataSelectable ? this.props.isDataSelectable(options) : true;\n }\n }, {\n key: \"isRowExpanded\",\n value: function isRowExpanded(rowData) {\n if (rowData && this.props.expandedRows) {\n if (this.isSubheaderGrouping() && this.props.expandableRowGroups) {\n return this.isRowGroupExpanded(rowData);\n } else {\n if (this.props.dataKey) return this.props.expandedRows ? this.props.expandedRows[ObjectUtils.resolveFieldData(rowData, this.props.dataKey)] !== undefined : false;else return this.findIndex(this.props.expandedRows, rowData) !== -1;\n }\n }\n\n return false;\n }\n }, {\n key: \"isRowGroupExpanded\",\n value: function isRowGroupExpanded(rowData) {\n var _this2 = this;\n\n if (this.props.dataKey === this.props.groupRowsBy) return Object.keys(this.props.expandedRows).some(function (data) {\n return ObjectUtils.equals(data, ObjectUtils.resolveFieldData(rowData, _this2.props.dataKey));\n });else return this.props.expandedRows.some(function (data) {\n return ObjectUtils.equals(data, rowData, _this2.props.groupRowsBy);\n });\n }\n }, {\n key: \"isRowEditing\",\n value: function isRowEditing(rowData) {\n if (this.props.editMode === 'row' && rowData && this.props.editingRows) {\n if (this.props.dataKey) return this.props.editingRows ? this.props.editingRows[ObjectUtils.resolveFieldData(rowData, this.props.dataKey)] !== undefined : false;else return this.findIndex(this.props.editingRows, rowData) !== -1;\n }\n\n return false;\n }\n }, {\n key: \"allowDrag\",\n value: function allowDrag(event) {\n return this.props.dragSelection && this.isMultipleSelection() && !event.originalEvent.shiftKey;\n }\n }, {\n key: \"allowRowDrag\",\n value: function allowRowDrag(event) {\n return !this.allowCellSelection() && this.allowDrag(event);\n }\n }, {\n key: \"allowCellDrag\",\n value: function allowCellDrag(event) {\n return this.allowCellSelection() && this.allowDrag(event);\n }\n }, {\n key: \"allowSelection\",\n value: function allowSelection(event) {\n return !DomHandler.isClickable(event.originalEvent.target);\n }\n }, {\n key: \"allowMetaKeySelection\",\n value: function allowMetaKeySelection(event) {\n return !this.rowTouched && (!this.props.metaKeySelection || this.props.metaKeySelection && (event.originalEvent.metaKey || event.originalEvent.ctrlKey));\n }\n }, {\n key: \"allowRangeSelection\",\n value: function allowRangeSelection(event) {\n return this.isMultipleSelection() && event.originalEvent.shiftKey && this.anchorRowIndex !== null;\n }\n }, {\n key: \"allowRowSelection\",\n value: function allowRowSelection() {\n return (this.props.selectionMode || this.props.selectionModeInColumn) && !this.isRadioOnlySelection() && !this.isCheckboxOnlySelection();\n }\n }, {\n key: \"allowCellSelection\",\n value: function allowCellSelection() {\n return this.props.cellSelection && !this.isRadioSelectionModeInColumn() && !this.isCheckboxSelectionModeInColumn();\n }\n }, {\n key: \"getColumnsLength\",\n value: function getColumnsLength() {\n return this.props.columns ? this.props.columns.length : 0;\n }\n }, {\n key: \"getVirtualScrollerOption\",\n value: function getVirtualScrollerOption(option, options) {\n options = options || this.props.virtualScrollerOptions;\n return options ? options[option] : null;\n }\n }, {\n key: \"findIndex\",\n value: function findIndex(collection, rowData) {\n var _this3 = this;\n\n return (collection || []).findIndex(function (data) {\n return _this3.equals(rowData, data);\n });\n }\n }, {\n key: \"rowGroupHeaderStyle\",\n value: function rowGroupHeaderStyle() {\n if (this.props.scrollable) {\n return {\n top: this.state.rowGroupHeaderStyleObject['top']\n };\n }\n\n return null;\n }\n }, {\n key: \"getRowKey\",\n value: function getRowKey(rowData, index) {\n return this.props.dataKey ? ObjectUtils.resolveFieldData(rowData, this.props.dataKey) + '_' + index : index;\n }\n }, {\n key: \"shouldRenderRowGroupHeader\",\n value: function shouldRenderRowGroupHeader(value, rowData, i) {\n var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.props.groupRowsBy);\n var prevRowData = value[i - 1];\n\n if (prevRowData) {\n var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.props.groupRowsBy);\n return currentRowFieldData !== previousRowFieldData;\n } else {\n return true;\n }\n }\n }, {\n key: \"shouldRenderRowGroupFooter\",\n value: function shouldRenderRowGroupFooter(value, rowData, i, expanded) {\n if (this.props.expandableRowGroups && !expanded) {\n return false;\n } else {\n var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.props.groupRowsBy);\n var nextRowData = value[i + 1];\n\n if (nextRowData) {\n var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.props.groupRowsBy);\n return currentRowFieldData !== nextRowFieldData;\n } else {\n return true;\n }\n }\n }\n }, {\n key: \"updateFrozenRowStickyPosition\",\n value: function updateFrozenRowStickyPosition() {\n this.el.style.top = DomHandler.getOuterHeight(this.el.previousElementSibling) + 'px';\n }\n }, {\n key: \"updateFrozenRowGroupHeaderStickyPosition\",\n value: function updateFrozenRowGroupHeaderStickyPosition() {\n var tableHeaderHeight = DomHandler.getOuterHeight(this.el.previousElementSibling);\n var top = tableHeaderHeight + 'px';\n\n if (this.state.rowGroupHeaderStyleObject && this.state.rowGroupHeaderStyleObject.top !== top) {\n this.setState({\n rowGroupHeaderStyleObject: {\n top: top\n }\n });\n }\n }\n }, {\n key: \"updateVirtualScrollerPosition\",\n value: function updateVirtualScrollerPosition() {\n var tableHeaderHeight = DomHandler.getOuterHeight(this.el.previousElementSibling);\n this.el.style.top = (this.el.style.top || 0) + tableHeaderHeight + 'px';\n }\n }, {\n key: \"onSingleSelection\",\n value: function onSingleSelection(_ref) {\n var originalEvent = _ref.originalEvent,\n data = _ref.data,\n index = _ref.index,\n toggleable = _ref.toggleable,\n type = _ref.type;\n\n if (!this.isSelectable({\n data: data,\n index: index\n })) {\n return;\n }\n\n var selected = this.isSelected(data);\n var selection = this.props.selection;\n\n if (selected) {\n if (toggleable) {\n selection = null;\n this.onUnselect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n } else {\n selection = data;\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n\n this.focusOnElement(originalEvent, true);\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: type\n });\n }\n }\n }, {\n key: \"onMultipleSelection\",\n value: function onMultipleSelection(_ref2) {\n var _this4 = this;\n\n var originalEvent = _ref2.originalEvent,\n data = _ref2.data,\n index = _ref2.index,\n toggleable = _ref2.toggleable,\n type = _ref2.type;\n\n if (!this.isSelectable({\n data: data,\n index: index\n })) {\n return;\n }\n\n var selected = this.isSelected(data);\n var selection = this.props.selection || [];\n\n if (selected) {\n if (toggleable) {\n var selectionIndex = this.findIndex(selection, data);\n selection = this.props.selection.filter(function (val, i) {\n return i !== selectionIndex;\n });\n this.onUnselect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n } else if (selection.length) {\n this.props.selection.forEach(function (d) {\n return _this4.onUnselect({\n originalEvent: originalEvent,\n data: d,\n type: type\n });\n });\n selection = [data];\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n } else {\n selection = toggleable && this.isMultipleSelection() ? [].concat(_toConsumableArray(selection), [data]) : [data];\n this.onSelect({\n originalEvent: originalEvent,\n data: data,\n type: type\n });\n }\n\n this.focusOnElement(originalEvent, true);\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: type\n });\n }\n }\n }, {\n key: \"onRangeSelection\",\n value: function onRangeSelection(event, type) {\n DomHandler.clearSelection();\n this.rangeRowIndex = this.allowCellSelection() ? event.rowIndex : event.index;\n var selectionInRange = this.selectRange(event);\n var selection = this.isMultipleSelection() ? _toConsumableArray(new Set([].concat(_toConsumableArray(this.props.selection || []), _toConsumableArray(selectionInRange)))) : selectionInRange;\n\n if (this.props.onSelectionChange && selection !== this.props.selection) {\n this.props.onSelectionChange({\n originalEvent: event.originalEvent,\n value: selection,\n type: type\n });\n }\n\n this.anchorRowIndex = this.rangeRowIndex;\n this.anchorCellIndex = event.cellIndex;\n this.focusOnElement(event.originalEvent, false);\n }\n }, {\n key: \"selectRange\",\n value: function selectRange(event) {\n var rangeStart, rangeEnd;\n var isLazyAndPaginator = this.props.lazy && this.props.paginator;\n\n if (isLazyAndPaginator) {\n this.anchorRowIndex += this.anchorRowFirst;\n this.rangeRowIndex += this.props.first;\n }\n\n if (this.rangeRowIndex > this.anchorRowIndex) {\n rangeStart = this.anchorRowIndex;\n rangeEnd = this.rangeRowIndex;\n } else if (this.rangeRowIndex < this.anchorRowIndex) {\n rangeStart = this.rangeRowIndex;\n rangeEnd = this.anchorRowIndex;\n } else {\n rangeStart = rangeEnd = this.rangeRowIndex;\n }\n\n if (isLazyAndPaginator) {\n rangeStart = Math.max(rangeStart - this.props.first, 0);\n rangeEnd -= this.props.first;\n }\n\n return this.allowCellSelection() ? this.selectRangeOnCell(event, rangeStart, rangeEnd) : this.selectRangeOnRow(event, rangeStart, rangeEnd);\n }\n }, {\n key: \"selectRangeOnRow\",\n value: function selectRangeOnRow(event, rowRangeStart, rowRangeEnd) {\n var value = this.props.value;\n var selection = [];\n\n for (var i = rowRangeStart; i <= rowRangeEnd; i++) {\n var rangeRowData = value[i];\n\n if (!this.isSelectable({\n data: rangeRowData,\n index: i\n })) {\n continue;\n }\n\n selection.push(rangeRowData);\n this.onSelect({\n originalEvent: event.originalEvent,\n data: rangeRowData,\n type: 'row'\n });\n }\n\n return selection;\n }\n }, {\n key: \"selectRangeOnCell\",\n value: function selectRangeOnCell(event, rowRangeStart, rowRangeEnd) {\n var cellRangeStart,\n cellRangeEnd,\n cellIndex = event.cellIndex;\n\n if (cellIndex > this.anchorCellIndex) {\n cellRangeStart = this.anchorCellIndex;\n cellRangeEnd = cellIndex;\n } else if (cellIndex < this.anchorCellIndex) {\n cellRangeStart = cellIndex;\n cellRangeEnd = this.anchorCellIndex;\n } else {\n cellRangeStart = cellRangeEnd = cellIndex;\n }\n\n var value = this.props.value;\n var selection = [];\n\n for (var i = rowRangeStart; i <= rowRangeEnd; i++) {\n var rowData = value[i];\n var columns = this.props.columns;\n\n for (var j = cellRangeStart; j <= cellRangeEnd; j++) {\n var field = columns[j].props.field;\n\n var _value = ObjectUtils.resolveFieldData(rowData, field);\n\n var rangeRowData = {\n value: _value,\n field: field,\n rowData: rowData,\n rowIndex: i,\n cellIndex: j,\n selected: true\n };\n\n if (!this.isSelectable({\n data: rangeRowData,\n index: i\n })) {\n continue;\n }\n\n selection.push(rangeRowData);\n this.onSelect({\n originalEvent: event.originalEvent,\n data: rangeRowData,\n type: 'cell'\n });\n }\n }\n\n return selection;\n }\n }, {\n key: \"onSelect\",\n value: function onSelect(event) {\n if (this.allowCellSelection()) this.props.onCellSelect && this.props.onCellSelect(_objectSpread$5(_objectSpread$5({\n originalEvent: event.originalEvent\n }, event.data), {}, {\n type: event.type\n }));else this.props.onRowSelect && this.props.onRowSelect(event);\n }\n }, {\n key: \"onUnselect\",\n value: function onUnselect(event) {\n if (this.allowCellSelection()) this.props.onCellUnselect && this.props.onCellUnselect(_objectSpread$5(_objectSpread$5({\n originalEvent: event.originalEvent\n }, event.data), {}, {\n type: event.type\n }));else this.props.onRowUnselect && this.props.onRowUnselect(event);\n }\n }, {\n key: \"enableDragSelection\",\n value: function enableDragSelection(event) {\n if (this.props.dragSelection && !this.dragSelectionHelper) {\n this.dragSelectionHelper = document.createElement('div');\n DomHandler.addClass(this.dragSelectionHelper, 'p-datatable-drag-selection-helper');\n this.initialDragPosition = {\n x: event.clientX,\n y: event.clientY\n };\n this.dragSelectionHelper.style.top = \"\".concat(event.pageY, \"px\");\n this.dragSelectionHelper.style.left = \"\".concat(event.pageX, \"px\");\n this.bindDragSelectionEvents();\n }\n }\n }, {\n key: \"focusOnElement\",\n value: function focusOnElement(event, isFocused) {\n var target = event.currentTarget;\n\n if (!this.allowCellSelection() && this.props.selectionAutoFocus) {\n if (this.isCheckboxSelectionModeInColumn()) {\n var checkbox = DomHandler.findSingle(target, 'td.p-selection-column .p-checkbox-box');\n checkbox && checkbox.focus();\n } else if (this.isRadioSelectionModeInColumn()) {\n var radio = DomHandler.findSingle(target, 'td.p-selection-column input[type=\"radio\"]');\n radio && radio.focus();\n }\n }\n\n !isFocused && target && target.focus();\n }\n }, {\n key: \"changeTabIndex\",\n value: function changeTabIndex(event, type) {\n var target = event.currentTarget;\n var isSelectable = DomHandler.hasClass(target, type === 'cell' ? 'p-selectable-cell' : 'p-selectable-row');\n\n if (isSelectable) {\n var selector = type === 'cell' ? 'tr > td' : 'tr';\n var tabbableEl = DomHandler.findSingle(this.el, \"\".concat(selector, \"[tabindex=\\\"\").concat(this.props.tabIndex, \"\\\"]\"));\n\n if (tabbableEl && target) {\n tabbableEl.tabIndex = -1;\n target.tabIndex = this.props.tabIndex;\n }\n }\n }\n }, {\n key: \"onRowClick\",\n value: function onRowClick(event) {\n if (this.allowCellSelection() || !this.allowSelection(event)) {\n return;\n }\n\n this.props.onRowClick && this.props.onRowClick(event);\n\n if (this.allowRowSelection()) {\n if (this.allowRangeSelection(event)) {\n this.onRangeSelection(event, 'row');\n } else {\n var toggleable = this.isRadioSelectionModeInColumn() || this.isCheckboxSelectionModeInColumn() || this.allowMetaKeySelection(event);\n this.anchorRowIndex = event.index;\n this.rangeRowIndex = event.index;\n this.anchorRowFirst = this.props.first;\n\n if (this.isSingleSelection()) {\n this.onSingleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: toggleable,\n type: 'row'\n }));\n } else {\n this.onMultipleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: toggleable,\n type: 'row'\n }));\n }\n }\n\n this.changeTabIndex(event.originalEvent, 'row');\n } else {\n this.focusOnElement(event.originalEvent);\n }\n\n this.rowTouched = false;\n }\n }, {\n key: \"onRowDoubleClick\",\n value: function onRowDoubleClick(e) {\n var event = e.originalEvent;\n\n if (DomHandler.isClickable(event.target)) {\n return;\n }\n\n if (this.props.onRowDoubleClick) {\n this.props.onRowDoubleClick(e);\n }\n }\n }, {\n key: \"onRowRightClick\",\n value: function onRowRightClick(event) {\n if (this.props.onContextMenu || this.props.onContextMenuSelectionChange) {\n DomHandler.clearSelection();\n\n if (this.props.onContextMenuSelectionChange) {\n this.props.onContextMenuSelectionChange({\n originalEvent: event.originalEvent,\n value: event.data\n });\n }\n\n if (this.props.onContextMenu) {\n this.props.onContextMenu({\n originalEvent: event.originalEvent,\n data: event.data\n });\n }\n\n event.originalEvent.preventDefault();\n }\n }\n }, {\n key: \"onRowTouchEnd\",\n value: function onRowTouchEnd() {\n this.rowTouched = true;\n }\n }, {\n key: \"onRowMouseDown\",\n value: function onRowMouseDown(e) {\n DomHandler.clearSelection();\n var event = e.originalEvent;\n if (DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) event.currentTarget.draggable = true;else event.currentTarget.draggable = false;\n\n if (this.allowRowDrag(e)) {\n this.enableDragSelection(event, 'row');\n this.anchorRowIndex = e.index;\n this.rangeRowIndex = e.index;\n this.anchorRowFirst = this.props.first;\n }\n }\n }, {\n key: \"onRowMouseUp\",\n value: function onRowMouseUp(event) {\n var isSameRow = event.index === this.anchorRowIndex;\n\n if (this.allowRowDrag(event) && !isSameRow) {\n this.onRangeSelection(event, 'row');\n }\n }\n }, {\n key: \"onRowToggle\",\n value: function onRowToggle(event) {\n var expandedRows;\n var dataKey = this.props.dataKey;\n var hasDataKey = this.props.groupRowsBy ? dataKey === this.props.groupRowsBy : !!dataKey;\n\n if (hasDataKey) {\n var dataKeyValue = String(ObjectUtils.resolveFieldData(event.data, dataKey));\n expandedRows = this.props.expandedRows ? _objectSpread$5({}, this.props.expandedRows) : {};\n\n if (expandedRows[dataKeyValue] != null) {\n delete expandedRows[dataKeyValue];\n\n if (this.props.onRowCollapse) {\n this.props.onRowCollapse({\n originalEvent: event,\n data: event.data\n });\n }\n } else {\n expandedRows[dataKeyValue] = true;\n\n if (this.props.onRowExpand) {\n this.props.onRowExpand({\n originalEvent: event,\n data: event.data\n });\n }\n }\n } else {\n var expandedRowIndex = this.findIndex(this.props.expandedRows, event.data);\n expandedRows = this.props.expandedRows ? _toConsumableArray(this.props.expandedRows) : [];\n\n if (expandedRowIndex !== -1) {\n expandedRows = expandedRows.filter(function (val, i) {\n return i !== expandedRowIndex;\n });\n\n if (this.props.onRowCollapse) {\n this.props.onRowCollapse({\n originalEvent: event,\n data: event.data\n });\n }\n } else {\n expandedRows.push(event.data);\n\n if (this.props.onRowExpand) {\n this.props.onRowExpand({\n originalEvent: event,\n data: event.data\n });\n }\n }\n }\n\n if (this.props.onRowToggle) {\n this.props.onRowToggle({\n data: expandedRows\n });\n }\n }\n }, {\n key: \"onRowDragStart\",\n value: function onRowDragStart(e) {\n var event = e.originalEvent,\n index = e.index;\n this.rowDragging = true;\n this.draggedRowIndex = index;\n event.dataTransfer.setData('text', 'b'); // For firefox\n }\n }, {\n key: \"onRowDragOver\",\n value: function onRowDragOver(e) {\n var event = e.originalEvent,\n index = e.index;\n\n if (this.rowDragging && this.draggedRowIndex !== index) {\n var rowElement = event.currentTarget;\n var rowY = DomHandler.getOffset(rowElement).top + DomHandler.getWindowScrollTop();\n var pageY = event.pageY;\n var rowMidY = rowY + DomHandler.getOuterHeight(rowElement) / 2;\n var prevRowElement = rowElement.previousElementSibling;\n\n if (pageY < rowMidY) {\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n this.droppedRowIndex = index;\n if (prevRowElement) DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n } else {\n if (prevRowElement) DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n this.droppedRowIndex = index + 1;\n DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onRowDragLeave\",\n value: function onRowDragLeave(e) {\n var event = e.originalEvent;\n var rowElement = event.currentTarget;\n var prevRowElement = rowElement.previousElementSibling;\n\n if (prevRowElement) {\n DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');\n }\n\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');\n }\n }, {\n key: \"onRowDragEnd\",\n value: function onRowDragEnd(e) {\n var event = e.originalEvent;\n this.rowDragging = false;\n this.draggedRowIndex = null;\n this.droppedRowIndex = null;\n event.currentTarget.draggable = false;\n }\n }, {\n key: \"onRowDrop\",\n value: function onRowDrop(e) {\n var event = e.originalEvent;\n\n if (this.droppedRowIndex != null) {\n var dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;\n\n var val = _toConsumableArray(this.props.value);\n\n ObjectUtils.reorderArray(val, this.draggedRowIndex, dropIndex);\n\n if (this.props.onRowReorder) {\n this.props.onRowReorder({\n originalEvent: event,\n value: val,\n dragIndex: this.draggedRowIndex,\n dropIndex: this.droppedRowIndex\n });\n }\n } //cleanup\n\n\n this.onRowDragLeave(e);\n this.onRowDragEnd(e);\n event.preventDefault();\n }\n }, {\n key: \"onRadioChange\",\n value: function onRadioChange(event) {\n this.onSingleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: true,\n type: 'radio'\n }));\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(event) {\n this.onMultipleSelection(_objectSpread$5(_objectSpread$5({}, event), {}, {\n toggleable: true,\n type: 'checkbox'\n }));\n }\n }, {\n key: \"onDragSelectionMouseMove\",\n value: function onDragSelectionMouseMove(event) {\n var _this$initialDragPosi = this.initialDragPosition,\n x = _this$initialDragPosi.x,\n y = _this$initialDragPosi.y;\n var dx = event.clientX - x;\n var dy = event.clientY - y;\n if (dy < 0) this.dragSelectionHelper.style.top = \"\".concat(event.pageY + 5, \"px\");\n if (dx < 0) this.dragSelectionHelper.style.left = \"\".concat(event.pageX + 5, \"px\");\n this.dragSelectionHelper.style.height = \"\".concat(Math.abs(dy), \"px\");\n this.dragSelectionHelper.style.width = \"\".concat(Math.abs(dx), \"px\");\n event.preventDefault();\n }\n }, {\n key: \"onDragSelectionMouseUp\",\n value: function onDragSelectionMouseUp() {\n if (this.dragSelectionHelper) {\n this.dragSelectionHelper.remove();\n this.dragSelectionHelper = null;\n }\n\n document.removeEventListener('mousemove', this.onDragSelectionMouseMove);\n document.removeEventListener('mouseup', this.onDragSelectionMouseUp);\n }\n }, {\n key: \"onCellClick\",\n value: function onCellClick(event) {\n if (!this.allowSelection(event)) {\n return;\n }\n\n this.props.onCellClick && this.props.onCellClick(event);\n\n if (this.allowCellSelection()) {\n if (this.allowRangeSelection(event)) {\n this.onRangeSelection(event, 'cell');\n } else {\n var toggleable = this.allowMetaKeySelection(event);\n\n var originalEvent = event.originalEvent,\n data = _objectWithoutProperties(event, _excluded);\n\n this.anchorRowIndex = event.rowIndex;\n this.rangeRowIndex = event.rowIndex;\n this.anchorRowFirst = this.props.first;\n this.anchorCellIndex = event.cellIndex;\n\n if (this.isSingleSelection()) {\n this.onSingleSelection({\n originalEvent: originalEvent,\n data: data,\n index: event.rowIndex,\n toggleable: toggleable,\n type: 'cell'\n });\n } else {\n this.onMultipleSelection({\n originalEvent: originalEvent,\n data: data,\n index: event.rowIndex,\n toggleable: toggleable,\n type: 'cell'\n });\n }\n }\n\n this.changeTabIndex(event.originalEvent, 'cell');\n }\n\n this.rowTouched = false;\n }\n }, {\n key: \"onCellMouseDown\",\n value: function onCellMouseDown(event) {\n if (this.allowCellDrag(event)) {\n this.enableDragSelection(event.originalEvent);\n this.anchorRowIndex = event.rowIndex;\n this.rangeRowIndex = event.rowIndex;\n this.anchorRowFirst = this.props.first;\n this.anchorCellIndex = event.cellIndex;\n }\n }\n }, {\n key: \"onCellMouseUp\",\n value: function onCellMouseUp(event) {\n var isSameCell = event.rowIndex === this.anchorRowIndex && event.cellIndex === this.anchorCellIndex;\n\n if (this.allowCellDrag(event) && !isSameCell) {\n this.onRangeSelection(event, 'cell');\n }\n }\n }, {\n key: \"bindDragSelectionEvents\",\n value: function bindDragSelectionEvents() {\n document.addEventListener('mousemove', this.onDragSelectionMouseMove);\n document.addEventListener('mouseup', this.onDragSelectionMouseUp);\n document.body.appendChild(this.dragSelectionHelper);\n }\n }, {\n key: \"unbindDragSelectionEvents\",\n value: function unbindDragSelectionEvents() {\n this.onDragSelectionMouseUp();\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.frozenRow) {\n this.updateFrozenRowStickyPosition();\n }\n\n if (this.props.scrollable && this.props.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n\n if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical')) {\n this.updateVirtualScrollerPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.frozenRow) {\n this.updateFrozenRowStickyPosition();\n }\n\n if (this.props.scrollable && this.props.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n\n if (!this.props.isVirtualScrollerDisabled && this.getVirtualScrollerOption('vertical') && this.getVirtualScrollerOption('itemSize', prevProps.virtualScrollerOptions) !== this.getVirtualScrollerOption('itemSize')) {\n this.updateVirtualScrollerPosition();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.props.dragSelection) {\n this.unbindDragSelectionEvents();\n }\n }\n }, {\n key: \"renderEmptyContent\",\n value: function renderEmptyContent() {\n if (!this.props.loading) {\n var colSpan = this.getColumnsLength();\n var content = ObjectUtils.getJSXElement(this.props.emptyMessage, {\n props: this.props,\n frozen: this.props.frozenRow\n }) || localeOption('emptyMessage');\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-datatable-emptymessage\",\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: colSpan,\n role: \"cell\"\n }, content));\n }\n\n return null;\n }\n }, {\n key: \"renderGroupHeader\",\n value: function renderGroupHeader(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (isSubheaderGrouping && this.shouldRenderRowGroupHeader(this.props.value, rowData, index - this.props.first)) {\n var style = this.rowGroupHeaderStyle();\n var toggler = this.props.expandableRowGroups && /*#__PURE__*/React.createElement(RowTogglerButton, {\n onClick: this.onRowToggle,\n rowData: rowData,\n expanded: expanded,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon\n });\n var content = ObjectUtils.getJSXElement(this.props.rowGroupHeaderTemplate, rowData, {\n index: index,\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-rowgroup-header\",\n style: style,\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n colSpan: colSpan\n }, toggler, /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-rowgroup-header-name\"\n }, content)));\n }\n\n return null;\n }\n }, {\n key: \"renderRow\",\n value: function renderRow(rowData, index, expanded) {\n if (!this.props.expandableRowGroups || expanded) {\n var selected = this.isSelectionEnabled() ? this.isSelected(rowData) : false;\n var contextMenuSelected = this.isContextMenuSelected(rowData);\n var allowRowSelection = this.allowRowSelection();\n var allowCellSelection = this.allowCellSelection();\n var editing = this.isRowEditing(rowData);\n return /*#__PURE__*/React.createElement(BodyRow, {\n tableProps: this.props.tableProps,\n tableSelector: this.props.tableSelector,\n value: this.props.value,\n columns: this.props.columns,\n rowData: rowData,\n index: index,\n selected: selected,\n contextMenuSelected: contextMenuSelected,\n onRowClick: this.onRowClick,\n onRowDoubleClick: this.onRowDoubleClick,\n onRowRightClick: this.onRowRightClick,\n tabIndex: this.props.tabIndex,\n isSelectable: this.isSelectable,\n onRowTouchEnd: this.onRowTouchEnd,\n onRowMouseDown: this.onRowMouseDown,\n onRowMouseUp: this.onRowMouseUp,\n onRowToggle: this.onRowToggle,\n onRowDragStart: this.onRowDragStart,\n onRowDragOver: this.onRowDragOver,\n onRowDragLeave: this.onRowDragLeave,\n onRowDragEnd: this.onRowDragEnd,\n onRowDrop: this.onRowDrop,\n onRadioChange: this.onRadioChange,\n onCheckboxChange: this.onCheckboxChange,\n onCellClick: this.onCellClick,\n onCellMouseDown: this.onCellMouseDown,\n onCellMouseUp: this.onCellMouseUp,\n editing: editing,\n editingRows: this.props.editingRows,\n editingMeta: this.props.editingMeta,\n editMode: this.props.editMode,\n onRowEditChange: this.props.onRowEditChange,\n onEditingMetaChange: this.props.onEditingMetaChange,\n groupRowsBy: this.props.groupRowsBy,\n compareSelectionBy: this.props.compareSelectionBy,\n dataKey: this.props.dataKey,\n rowGroupMode: this.props.rowGroupMode,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n selection: this.props.selection,\n allowRowSelection: allowRowSelection,\n allowCellSelection: allowCellSelection,\n selectOnEdit: this.props.selectOnEdit,\n selectionMode: this.props.selectionMode,\n selectionModeInColumn: this.props.selectionModeInColumn,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n frozenRow: this.props.frozenRow,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expanded: expanded,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n virtualScrollerOptions: this.props.virtualScrollerOptions\n });\n }\n }\n }, {\n key: \"renderExpansion\",\n value: function renderExpansion(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (expanded && !(isSubheaderGrouping && this.props.expandableRowGroups)) {\n var content = ObjectUtils.getJSXElement(this.props.rowExpansionTemplate, rowData, {\n index: index\n });\n var id = \"\".concat(this.props.tableSelector, \"_content_\").concat(index, \"_expanded\");\n return /*#__PURE__*/React.createElement(\"tr\", {\n id: id,\n className: \"p-datatable-row-expansion\",\n role: \"row\"\n }, /*#__PURE__*/React.createElement(\"td\", {\n role: \"cell\",\n colSpan: colSpan\n }, content));\n }\n\n return null;\n }\n }, {\n key: \"renderGroupFooter\",\n value: function renderGroupFooter(rowData, index, expanded, isSubheaderGrouping, colSpan) {\n if (isSubheaderGrouping && this.shouldRenderRowGroupFooter(this.props.value, rowData, index - this.props.first, expanded)) {\n var content = ObjectUtils.getJSXElement(this.props.rowGroupFooterTemplate, rowData, {\n index: index,\n colSpan: colSpan,\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"tr\", {\n className: \"p-rowgroup-footer\",\n role: \"row\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n return this.props.value.map(function (rowData, i) {\n var index = _this5.getVirtualScrollerOption('getItemOptions') ? _this5.getVirtualScrollerOption('getItemOptions')(i).index : _this5.props.first + i;\n\n var key = _this5.getRowKey(rowData, index);\n\n var expanded = _this5.isRowExpanded(rowData);\n\n var isSubheaderGrouping = _this5.isSubheaderGrouping();\n\n var colSpan = _this5.getColumnsLength();\n\n var groupHeader = _this5.renderGroupHeader(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n var row = _this5.renderRow(rowData, index, expanded);\n\n var expansion = _this5.renderExpansion(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n var groupFooter = _this5.renderGroupFooter(rowData, index, expanded, isSubheaderGrouping, colSpan);\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, groupHeader, row, expansion, groupFooter);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-datatable-tbody', this.props.className);\n var content = this.props.empty ? this.renderEmptyContent() : this.renderContent();\n return /*#__PURE__*/React.createElement(\"tbody\", {\n ref: this.ref,\n className: className\n }, content);\n }\n }]);\n\n return TableBody;\n}(Component);\n\nfunction ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$6() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar FooterCell = /*#__PURE__*/function (_Component) {\n _inherits(FooterCell, _Component);\n\n var _super = _createSuper$6(FooterCell);\n\n function FooterCell(props) {\n var _this;\n\n _classCallCheck(this, FooterCell);\n\n _this = _super.call(this, props);\n _this.state = {\n styleObject: {}\n };\n return _this;\n }\n\n _createClass(FooterCell, [{\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column.props[prop];\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var footerStyle = this.getColumnProp('footerStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, footerStyle, this.state.styleObject) : Object.assign({}, columnStyle, footerStyle);\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$4({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var style = this.getStyle();\n var align = this.getColumnProp('align');\n var className = classNames(this.getColumnProp('footerClassName'), this.getColumnProp('className'), _defineProperty({\n 'p-frozen-column': this.getColumnProp('frozen')\n }, \"p-align-\".concat(align), !!align));\n var colSpan = this.getColumnProp('colSpan');\n var rowSpan = this.getColumnProp('rowSpan');\n var content = ObjectUtils.getJSXElement(this.getColumnProp('footer'), {\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"td\", {\n ref: function ref(el) {\n return _this2.el = el;\n },\n style: style,\n className: className,\n role: \"cell\",\n colSpan: colSpan,\n rowSpan: rowSpan\n }, content);\n }\n }]);\n\n return FooterCell;\n}(Component);\n\nfunction _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$5() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar TableFooter = /*#__PURE__*/function (_Component) {\n _inherits(TableFooter, _Component);\n\n var _super = _createSuper$5(TableFooter);\n\n function TableFooter() {\n _classCallCheck(this, TableFooter);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(TableFooter, [{\n key: \"hasFooter\",\n value: function hasFooter() {\n return this.props.footerColumnGroup ? true : this.props.columns ? this.props.columns.some(function (col) {\n return col && col.props.footer;\n }) : false;\n }\n }, {\n key: \"renderGroupFooterCells\",\n value: function renderGroupFooterCells(row) {\n var columns = React.Children.toArray(row.props.children);\n return this.renderFooterCells(columns);\n }\n }, {\n key: \"renderFooterCells\",\n value: function renderFooterCells(columns) {\n var _this = this;\n\n return React.Children.map(columns, function (col, i) {\n var isVisible = col ? !col.props.hidden : true;\n var key = col ? col.props.columnKey || col.props.field || i : i;\n return isVisible && /*#__PURE__*/React.createElement(FooterCell, {\n key: key,\n tableProps: _this.props.tableProps,\n column: col\n });\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this2 = this;\n\n if (this.props.footerColumnGroup) {\n var rows = React.Children.toArray(this.props.footerColumnGroup.props.children);\n return rows.map(function (row, i) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: i,\n role: \"row\"\n }, _this2.renderGroupFooterCells(row));\n });\n }\n\n return /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderFooterCells(this.props.columns));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.hasFooter()) {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"tfoot\", {\n className: \"p-datatable-tfoot\"\n }, content);\n }\n\n return null;\n }\n }]);\n\n return TableFooter;\n}(Component);\n\nfunction _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$4() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar HeaderCheckbox = /*#__PURE__*/function (_Component) {\n _inherits(HeaderCheckbox, _Component);\n\n var _super = _createSuper$4(HeaderCheckbox);\n\n function HeaderCheckbox(props) {\n var _this;\n\n _classCallCheck(this, HeaderCheckbox);\n\n _this = _super.call(this, props);\n _this.state = {\n focused: false\n };\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(HeaderCheckbox, [{\n key: \"onFocus\",\n value: function onFocus() {\n this.setState({\n focused: true\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur() {\n this.setState({\n focused: false\n });\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.props.disabled) {\n this.setState({\n focused: true\n });\n this.props.onChange({\n originalEvent: event,\n checked: !this.props.checked\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.code === 'Space') {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var boxClassName = classNames('p-checkbox-box p-component', {\n 'p-highlight': this.props.checked,\n 'p-disabled': this.props.disabled,\n 'p-focus': this.state.focused\n });\n var iconClassName = classNames('p-checkbox-icon', {\n 'pi pi-check': this.props.checked\n });\n var tabIndex = this.props.disabled ? null : 0;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-checkbox p-component\",\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: boxClassName,\n role: \"checkbox\",\n \"aria-checked\": this.props.checked,\n tabIndex: tabIndex,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyDown: this.onKeyDown\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n })));\n }\n }]);\n\n return HeaderCheckbox;\n}(Component);\n\nfunction ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$3() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar ColumnFilter = /*#__PURE__*/function (_Component) {\n _inherits(ColumnFilter, _Component);\n\n var _super = _createSuper$3(ColumnFilter);\n\n function ColumnFilter(props) {\n var _this;\n\n _classCallCheck(this, ColumnFilter);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false\n };\n _this.overlayRef = /*#__PURE__*/React.createRef();\n _this.filterCallback = _this.filterCallback.bind(_assertThisInitialized(_this));\n _this.filterApplyCallback = _this.filterApplyCallback.bind(_assertThisInitialized(_this));\n _this.onOperatorChange = _this.onOperatorChange.bind(_assertThisInitialized(_this));\n _this.addConstraint = _this.addConstraint.bind(_assertThisInitialized(_this));\n _this.clearFilter = _this.clearFilter.bind(_assertThisInitialized(_this));\n _this.applyFilter = _this.applyFilter.bind(_assertThisInitialized(_this));\n _this.onInputChange = _this.onInputChange.bind(_assertThisInitialized(_this));\n _this.toggleMenu = _this.toggleMenu.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onContentKeyDown = _this.onContentKeyDown.bind(_assertThisInitialized(_this));\n _this.onContentClick = _this.onContentClick.bind(_assertThisInitialized(_this));\n _this.onContentMouseDown = _this.onContentMouseDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ColumnFilter, [{\n key: \"field\",\n get: function get() {\n return this.getColumnProp('filterField') || this.getColumnProp('field');\n }\n }, {\n key: \"overlay\",\n get: function get() {\n return this.overlayRef ? this.overlayRef.current : null;\n }\n }, {\n key: \"filterModel\",\n get: function get() {\n return this.props.filters[this.field];\n }\n }, {\n key: \"filterStoreModel\",\n get: function get() {\n return this.props.filtersStore[this.field];\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n if (this.props.filtersStore) {\n var fieldFilter = this.props.filtersStore[this.field];\n return fieldFilter && (fieldFilter.operator ? !this.isFilterBlank(fieldFilter.constraints[0].value) : !this.isFilterBlank(fieldFilter.value));\n }\n\n return false;\n }\n }, {\n key: \"hasRowFilter\",\n value: function hasRowFilter() {\n return this.filterModel && !this.isFilterBlank(this.filterModel.value);\n }\n }, {\n key: \"isFilterBlank\",\n value: function isFilterBlank(filter) {\n return ObjectUtils.isEmpty(filter);\n }\n }, {\n key: \"isRowMatchModeSelected\",\n value: function isRowMatchModeSelected(matchMode) {\n return this.filterModel && this.filterModel.matchMode === matchMode;\n }\n }, {\n key: \"showMenuButton\",\n value: function showMenuButton() {\n return this.getColumnProp('showFilterMenu') && (this.props.display === 'row' ? this.getColumnProp('dataType') !== 'boolean' : true);\n }\n }, {\n key: \"matchModes\",\n value: function matchModes() {\n return this.getColumnProp('filterMatchModeOptions') || PrimeReact.filterMatchModeOptions[this.findDataType()].map(function (key) {\n return {\n label: localeOption(key),\n value: key\n };\n });\n }\n }, {\n key: \"isShowMatchModes\",\n value: function isShowMatchModes() {\n return this.getColumnProp('dataType') !== 'boolean' && this.getColumnProp('showFilterMatchModes') && this.matchModes() && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"isShowOperator\",\n value: function isShowOperator() {\n return this.getColumnProp('showFilterOperator') && this.filterModel && this.filterModel.operator && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"showRemoveIcon\",\n value: function showRemoveIcon() {\n return this.fieldConstraints().length > 1;\n }\n }, {\n key: \"isShowAddConstraint\",\n value: function isShowAddConstraint() {\n return this.getColumnProp('showAddButton') && this.filterModel && this.filterModel.operator && this.fieldConstraints() && this.fieldConstraints().length < this.getColumnProp('maxConstraints') && this.getColumnProp('showFilterMenuOptions');\n }\n }, {\n key: \"isOutsideClicked\",\n value: function isOutsideClicked(target) {\n return !this.isTargetClicked(target) && this.overlayRef && this.overlayRef.current && !(this.overlayRef.current.isSameNode(target) || this.overlayRef.current.contains(target));\n }\n }, {\n key: \"isTargetClicked\",\n value: function isTargetClicked(target) {\n return this.icon && (this.icon.isSameNode(target) || this.icon.contains(target));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(prop) {\n return this.props.column.props[prop];\n }\n }, {\n key: \"getDefaultConstraint\",\n value: function getDefaultConstraint() {\n if (this.props.filtersStore && this.filterStoreModel) {\n if (this.filterStoreModel.operator) {\n return {\n matchMode: this.filterStoreModel.constraints[0].matchMode,\n operator: this.filterStoreModel.operator\n };\n } else {\n return {\n matchMode: this.filterStoreModel.matchMode\n };\n }\n }\n }\n }, {\n key: \"findDataType\",\n value: function findDataType() {\n var dataType = this.getColumnProp('dataType');\n var matchMode = this.getColumnProp('filterMatchMode');\n\n var hasMatchMode = function hasMatchMode(key) {\n return PrimeReact.filterMatchModeOptions[key].some(function (mode) {\n return mode === matchMode;\n });\n };\n\n if (matchMode === 'custom' && !hasMatchMode(dataType)) {\n PrimeReact.filterMatchModeOptions[dataType].push(FilterMatchMode.CUSTOM);\n return dataType;\n } else if (matchMode) {\n return Object.keys(PrimeReact.filterMatchModeOptions).find(function (key) {\n return hasMatchMode(key);\n }) || dataType;\n }\n\n return dataType;\n }\n }, {\n key: \"clearFilter\",\n value: function clearFilter() {\n var field = this.field;\n var filterClearCallback = this.getColumnProp('onFilterClear');\n var defaultConstraint = this.getDefaultConstraint();\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n if (filters[field].operator) {\n filters[field].constraints.splice(1);\n filters[field].operator = defaultConstraint.operator;\n filters[field].constraints[0] = {\n value: null,\n matchMode: defaultConstraint.matchMode\n };\n } else {\n filters[field].value = null;\n filters[field].matchMode = defaultConstraint.matchMode;\n }\n\n filterClearCallback && filterClearCallback();\n this.props.onFilterChange(filters);\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"applyFilter\",\n value: function applyFilter() {\n var filterApplyClickCallback = this.getColumnProp('onFilterApplyClick');\n filterApplyClickCallback && filterApplyClickCallback({\n field: this.field,\n constraints: this.filterModel\n });\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"toggleMenu\",\n value: function toggleMenu() {\n this.setState(function (prevState) {\n return {\n overlayVisible: !prevState.overlayVisible\n };\n });\n }\n }, {\n key: \"onToggleButtonKeyDown\",\n value: function onToggleButtonKeyDown(event) {\n switch (event.key) {\n case 'Escape':\n case 'Tab':\n this.hide();\n break;\n\n case 'ArrowDown':\n if (this.state.overlayVisible) {\n var focusable = DomHandler.getFirstFocusableElement(this.overlay);\n focusable && focusable.focus();\n event.preventDefault();\n } else if (event.altKey) {\n this.setState({\n overlayVisible: true\n });\n event.preventDefault();\n }\n\n break;\n }\n }\n }, {\n key: \"onContentKeyDown\",\n value: function onContentKeyDown(event) {\n if (event.key === 'Escape') {\n this.hide();\n this.icon && this.icon.focus();\n }\n }\n }, {\n key: \"onInputChange\",\n value: function onInputChange(event, index) {\n var filters = _objectSpread$3({}, this.props.filters);\n\n var value = event.target.value;\n\n if (this.props.display === 'menu') {\n filters[this.field].constraints[index].value = value;\n } else {\n filters[this.field].value = value;\n }\n\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton') || this.props.display === 'row') {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"onRowMatchModeChange\",\n value: function onRowMatchModeChange(matchMode) {\n var filterMatchModeChangeCallback = this.getColumnProp('onFilterMatchModeChange');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].matchMode = matchMode;\n filterMatchModeChangeCallback && filterMatchModeChangeCallback({\n field: this.field,\n matchMode: matchMode\n });\n this.props.onFilterChange(filters);\n this.props.onFilterApply();\n this.hide();\n }\n }, {\n key: \"onRowMatchModeKeyDown\",\n value: function onRowMatchModeKeyDown(event, matchMode, clear) {\n var item = event.target;\n\n switch (event.key) {\n case 'ArrowDown':\n var nextItem = this.findNextItem(item);\n\n if (nextItem) {\n item.removeAttribute('tabindex');\n nextItem.tabIndex = 0;\n nextItem.focus();\n }\n\n event.preventDefault();\n break;\n\n case 'ArrowUp':\n var prevItem = this.findPrevItem(item);\n\n if (prevItem) {\n item.removeAttribute('tabindex');\n prevItem.tabIndex = 0;\n prevItem.focus();\n }\n\n event.preventDefault();\n break;\n\n case 'Enter':\n clear ? this.clearFilter() : this.onRowMatchModeChange(matchMode.value);\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"onOperatorChange\",\n value: function onOperatorChange(e) {\n var filterOperationChangeCallback = this.getColumnProp('onFilterOperatorChange');\n var value = e.value;\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].operator = value;\n this.props.onFilterChange(filters);\n filterOperationChangeCallback && filterOperationChangeCallback({\n field: this.field,\n operator: value\n });\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"onMenuMatchModeChange\",\n value: function onMenuMatchModeChange(value, index) {\n var filterMatchModeChangeCallback = this.getColumnProp('onFilterMatchModeChange');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n filters[this.field].constraints[index].matchMode = value;\n this.props.onFilterChange(filters);\n filterMatchModeChangeCallback && filterMatchModeChangeCallback({\n field: this.field,\n matchMode: value,\n index: index\n });\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"addConstraint\",\n value: function addConstraint() {\n var filterConstraintAddCallback = this.getColumnProp('onFilterConstraintAdd');\n var defaultConstraint = this.getDefaultConstraint();\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var newConstraint = {\n value: null,\n matchMode: defaultConstraint.matchMode\n };\n filters[this.field].constraints.push(newConstraint);\n filterConstraintAddCallback && filterConstraintAddCallback({\n field: this.field,\n constraint: newConstraint\n });\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"removeConstraint\",\n value: function removeConstraint(index) {\n var filterConstraintRemoveCallback = this.getColumnProp('onFilterConstraintRemove');\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var removedConstraint = filters[this.field].constraints.splice(index, 1);\n filterConstraintRemoveCallback && filterConstraintRemoveCallback({\n field: this.field,\n constraint: removedConstraint\n });\n this.props.onFilterChange(filters);\n\n if (!this.getColumnProp('showApplyButton')) {\n this.props.onFilterApply();\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;else return item.parentElement.firstElementChild;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;else return item.parentElement.lastElementChild;\n }\n }, {\n key: \"hide\",\n value: function hide() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"onContentClick\",\n value: function onContentClick(event) {\n this.selfClick = true;\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.overlay\n });\n }\n }, {\n key: \"onContentMouseDown\",\n value: function onContentMouseDown() {\n this.selfClick = true;\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n var _this2 = this;\n\n ZIndexUtils.set('overlay', this.overlay, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n\n this.overlayEventListener = function (e) {\n if (!_this2.isOutsideClicked(e.target)) {\n _this2.selfClick = true;\n }\n };\n\n OverlayService.on('overlay-click', this.overlayEventListener);\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.onOverlayHide();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlay);\n }\n }, {\n key: \"onOverlayHide\",\n value: function onOverlayHide() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n this.unbindScrollListener();\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n }, {\n key: \"bindOutsideClickListener\",\n value: function bindOutsideClickListener() {\n var _this3 = this;\n\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n if (!_this3.selfClick && _this3.isOutsideClicked(event.target)) {\n _this3.hide();\n }\n\n _this3.selfClick = false;\n };\n\n document.addEventListener('click', this.outsideClickListener);\n }\n }\n }, {\n key: \"unbindOutsideClickListener\",\n value: function unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n this.selfClick = false;\n }\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this4 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.icon, function () {\n if (_this4.state.overlayVisible) {\n _this4.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this5 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this5.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this5.hide();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"fieldConstraints\",\n value: function fieldConstraints() {\n return this.filterModel ? this.filterModel.constraints || [this.filterModel] : [];\n }\n }, {\n key: \"operator\",\n value: function operator() {\n return this.filterModel.operator;\n }\n }, {\n key: \"operatorOptions\",\n value: function operatorOptions() {\n return [{\n label: localeOption('matchAll'),\n value: FilterOperator.AND\n }, {\n label: localeOption('matchAny'),\n value: FilterOperator.OR\n }];\n }\n }, {\n key: \"noFilterLabel\",\n value: function noFilterLabel() {\n return localeOption('noFilter');\n }\n }, {\n key: \"removeRuleButtonLabel\",\n value: function removeRuleButtonLabel() {\n return localeOption('removeRule');\n }\n }, {\n key: \"addRuleButtonLabel\",\n value: function addRuleButtonLabel() {\n return localeOption('addRule');\n }\n }, {\n key: \"clearButtonLabel\",\n value: function clearButtonLabel() {\n return localeOption('clear');\n }\n }, {\n key: \"applyButtonLabel\",\n value: function applyButtonLabel() {\n return localeOption('apply');\n }\n }, {\n key: \"filterCallback\",\n value: function filterCallback(value) {\n var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var filters = _objectSpread$3({}, this.props.filters);\n\n var meta = filters[this.field];\n this.props.display === 'menu' && meta && meta.operator ? filters[this.field].constraints[index].value = value : filters[this.field].value = value;\n this.props.onFilterChange(filters);\n }\n }, {\n key: \"filterApplyCallback\",\n value: function filterApplyCallback() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n args && this.filterCallback(args[0], args[1]);\n this.props.onFilterApply();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.display === 'menu' && this.state.overlayVisible) {\n DomHandler.alignOverlay(this.overlay, this.icon, PrimeReact.appendTo, false);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.overlayEventListener) {\n OverlayService.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n\n if (this.overlay) {\n ZIndexUtils.clear(this.overlay);\n this.onOverlayHide();\n }\n }\n }, {\n key: \"renderFilterElement\",\n value: function renderFilterElement(model, index) {\n var _this6 = this;\n\n var value = model ? model.value : null;\n return this.getColumnProp('filterElement') ? ObjectUtils.getJSXElement(this.getColumnProp('filterElement'), {\n field: this.field,\n index: index,\n filterModel: model,\n value: value,\n filterApplyCallback: this.filterApplyCallback,\n filterCallback: this.filterCallback\n }) : /*#__PURE__*/React.createElement(InputText, {\n type: this.getColumnProp('filterType'),\n value: value || '',\n onChange: function onChange(e) {\n return _this6.onInputChange(e, index);\n },\n className: \"p-column-filter\",\n placeholder: this.getColumnProp('filterPlaceholder'),\n maxLength: this.getColumnProp('filterMaxLength')\n });\n }\n }, {\n key: \"renderRowFilterElement\",\n value: function renderRowFilterElement() {\n if (this.props.display === 'row') {\n var content = this.renderFilterElement(this.filterModel, 0);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-fluid p-column-filter-element\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderMenuFilterElement\",\n value: function renderMenuFilterElement(fieldConstraint, index) {\n if (this.props.display === 'menu') {\n return this.renderFilterElement(fieldConstraint, index);\n }\n\n return null;\n }\n }, {\n key: \"renderMenuButton\",\n value: function renderMenuButton() {\n var _this7 = this;\n\n if (this.showMenuButton()) {\n var className = classNames('p-column-filter-menu-button p-link', {\n 'p-column-filter-menu-button-open': this.state.overlayVisible,\n 'p-column-filter-menu-button-active': this.hasFilter()\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: function ref(el) {\n return _this7.icon = el;\n },\n type: \"button\",\n className: className,\n \"aria-haspopup\": true,\n \"aria-expanded\": this.state.overlayVisible,\n onClick: this.toggleMenu,\n onKeyDown: this.onToggleButtonKeyDown\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"pi pi-filter-icon pi-filter\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderClearButton\",\n value: function renderClearButton() {\n if (this.getColumnProp('showClearButton') && this.props.display === 'row') {\n var className = classNames('p-column-filter-clear-button p-link', {\n 'p-hidden-space': !this.hasRowFilter()\n });\n return /*#__PURE__*/React.createElement(\"button\", {\n className: className,\n type: \"button\",\n onClick: this.clearFilter\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"pi pi-filter-slash\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderRowItems\",\n value: function renderRowItems() {\n var _this8 = this;\n\n if (this.isShowMatchModes()) {\n var matchModes = this.matchModes();\n var noFilterLabel = this.noFilterLabel();\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-column-filter-row-items\"\n }, matchModes.map(function (matchMode, i) {\n var value = matchMode.value,\n label = matchMode.label;\n var className = classNames('p-column-filter-row-item', {\n 'p-highlight': _this8.isRowMatchModeSelected(value)\n });\n var tabIndex = i === 0 ? 0 : null;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n key: label,\n onClick: function onClick() {\n return _this8.onRowMatchModeChange(value);\n },\n onKeyDown: function onKeyDown(e) {\n return _this8.onRowMatchModeKeyDown(e, matchMode);\n },\n tabIndex: tabIndex\n }, label);\n }), /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-column-filter-separator\"\n }), /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-column-filter-row-item\",\n onClick: this.clearFilter,\n onKeyDown: function onKeyDown(e) {\n return _this8.onRowMatchModeKeyDown(e, null, true);\n }\n }, noFilterLabel));\n }\n\n return null;\n }\n }, {\n key: \"renderOperator\",\n value: function renderOperator() {\n if (this.isShowOperator()) {\n var options = this.operatorOptions();\n var value = this.operator();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-operator\"\n }, /*#__PURE__*/React.createElement(Dropdown, {\n options: options,\n value: value,\n onChange: this.onOperatorChange,\n className: \"p-column-filter-operator-dropdown\"\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderMatchModeDropdown\",\n value: function renderMatchModeDropdown(constraint, index) {\n var _this9 = this;\n\n if (this.isShowMatchModes()) {\n var options = this.matchModes();\n return /*#__PURE__*/React.createElement(Dropdown, {\n options: options,\n value: constraint.matchMode,\n onChange: function onChange(e) {\n return _this9.onMenuMatchModeChange(e.value, index);\n },\n className: \"p-column-filter-matchmode-dropdown\"\n });\n }\n\n return null;\n }\n }, {\n key: \"renderRemoveButton\",\n value: function renderRemoveButton(index) {\n var _this10 = this;\n\n if (this.showRemoveIcon()) {\n var removeRuleLabel = this.removeRuleButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-trash\",\n className: \"p-column-filter-remove-button p-button-text p-button-danger p-button-sm\",\n onClick: function onClick() {\n return _this10.removeConstraint(index);\n },\n label: removeRuleLabel\n });\n }\n\n return null;\n }\n }, {\n key: \"renderConstraints\",\n value: function renderConstraints() {\n var _this11 = this;\n\n var fieldConstraints = this.fieldConstraints();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-constraints\"\n }, fieldConstraints.map(function (fieldConstraint, i) {\n var matchModeDropdown = _this11.renderMatchModeDropdown(fieldConstraint, i);\n\n var menuFilterElement = _this11.renderMenuFilterElement(fieldConstraint, i);\n\n var removeButton = _this11.renderRemoveButton(i);\n\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n className: \"p-column-filter-constraint\"\n }, matchModeDropdown, menuFilterElement, /*#__PURE__*/React.createElement(\"div\", null, removeButton));\n }));\n }\n }, {\n key: \"renderAddRule\",\n value: function renderAddRule() {\n if (this.isShowAddConstraint()) {\n var addRuleLabel = this.addRuleButtonLabel();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-add-rule\"\n }, /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n label: addRuleLabel,\n icon: \"pi pi-plus\",\n className: \"p-column-filter-add-button p-button-text p-button-sm\",\n onClick: this.addConstraint\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderFilterClearButton\",\n value: function renderFilterClearButton() {\n if (this.getColumnProp('showClearButton')) {\n if (!this.getColumnProp('filterClear')) {\n var clearLabel = this.clearButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: \"p-button-outlined p-button-sm\",\n onClick: this.clearFilter,\n label: clearLabel\n });\n }\n\n return ObjectUtils.getJSXElement(this.getColumnProp('filterClear'), {\n field: this.field,\n filterModel: this.filterModel,\n filterClearCallback: this.clearFilter\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilterApplyButton\",\n value: function renderFilterApplyButton() {\n if (this.getColumnProp('showApplyButton')) {\n if (!this.getColumnProp('filterApply')) {\n var applyLabel = this.applyButtonLabel();\n return /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n className: \"p-button-sm\",\n onClick: this.applyFilter,\n label: applyLabel\n });\n }\n\n return ObjectUtils.getJSXElement(this.getColumnProp('filterApply'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.applyFilter\n });\n }\n\n return null;\n }\n }, {\n key: \"renderButtonBar\",\n value: function renderButtonBar() {\n var clearButton = this.renderFilterClearButton();\n var applyButton = this.renderFilterApplyButton();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-filter-buttonbar\"\n }, clearButton, applyButton);\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var operator = this.renderOperator();\n var constraints = this.renderConstraints();\n var addRule = this.renderAddRule();\n var buttonBar = this.renderButtonBar();\n return /*#__PURE__*/React.createElement(React.Fragment, null, operator, constraints, addRule, buttonBar);\n }\n }, {\n key: \"renderOverlay\",\n value: function renderOverlay() {\n var style = this.getColumnProp('filterMenuStyle');\n var className = classNames('p-column-filter-overlay p-component p-fluid', this.getColumnProp('filterMenuClassName'), {\n 'p-column-filter-overlay-menu': this.props.display === 'menu',\n 'p-input-filled': PrimeReact.inputStyle === 'filled',\n 'p-ripple-disabled': PrimeReact.ripple === false\n });\n var filterHeader = ObjectUtils.getJSXElement(this.getColumnProp('filterHeader'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.filterApplyCallback\n });\n var filterFooter = ObjectUtils.getJSXElement(this.getColumnProp('filterFooter'), {\n field: this.field,\n filterModel: this.filterModel,\n filterApplyCallback: this.filterApplyCallback\n });\n var items = this.props.display === 'row' ? this.renderRowItems() : this.renderItems();\n return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.overlayVisible,\n timeout: {\n enter: 120,\n exit: 100\n },\n unmountOnExit: true,\n onEnter: this.onOverlayEnter,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n style: style,\n className: className,\n onKeyDown: this.onContentKeyDown,\n onClick: this.onContentClick,\n onMouseDown: this.onContentMouseDown\n }, filterHeader, items, filterFooter)));\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-column-filter p-fluid', {\n 'p-column-filter-row': this.props.display === 'row',\n 'p-column-filter-menu': this.props.display === 'menu'\n });\n var rowFilterElement = this.renderRowFilterElement();\n var menuButton = this.renderMenuButton();\n var clearButton = this.renderClearButton();\n var overlay = this.renderOverlay();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, rowFilterElement, menuButton, clearButton, overlay);\n }\n }]);\n\n return ColumnFilter;\n}(Component);\n\nfunction ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar HeaderCell = /*#__PURE__*/function (_Component) {\n _inherits(HeaderCell, _Component);\n\n var _super = _createSuper$2(HeaderCell);\n\n function HeaderCell(props) {\n var _this;\n\n _classCallCheck(this, HeaderCell);\n\n _this = _super.call(this, props);\n _this.state = {\n styleObject: {}\n };\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this)); // drag\n\n _this.onDragStart = _this.onDragStart.bind(_assertThisInitialized(_this));\n _this.onDragOver = _this.onDragOver.bind(_assertThisInitialized(_this));\n _this.onDragLeave = _this.onDragLeave.bind(_assertThisInitialized(_this));\n _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this)); // resize\n\n _this.onResizerMouseDown = _this.onResizerMouseDown.bind(_assertThisInitialized(_this));\n _this.onResizerClick = _this.onResizerClick.bind(_assertThisInitialized(_this));\n _this.onResizerDoubleClick = _this.onResizerDoubleClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(HeaderCell, [{\n key: \"isBadgeVisible\",\n value: function isBadgeVisible() {\n return this.props.multiSortMeta && this.props.multiSortMeta.length > 1;\n }\n }, {\n key: \"isSortableDisabled\",\n value: function isSortableDisabled() {\n return !this.getColumnProp('sortable') || this.getColumnProp('sortable') && (this.props.allSortableDisabled || this.getColumnProp('sortableDisabled'));\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return this.props.column ? typeof args[0] === 'string' ? this.props.column.props[args[0]] : (args[0] || this.props.column).props[args[1]] : null;\n }\n }, {\n key: \"getStyle\",\n value: function getStyle() {\n var headerStyle = this.getColumnProp('headerStyle');\n var columnStyle = this.getColumnProp('style');\n return this.getColumnProp('frozen') ? Object.assign({}, columnStyle, headerStyle, this.state.styleObject) : Object.assign({}, columnStyle, headerStyle);\n }\n }, {\n key: \"getMultiSortMetaIndex\",\n value: function getMultiSortMetaIndex() {\n var _this2 = this;\n\n return this.props.multiSortMeta.findIndex(function (meta) {\n return meta.field === _this2.getColumnProp('field') || meta.field === _this2.getColumnProp('sortField');\n });\n }\n }, {\n key: \"getSortMeta\",\n value: function getSortMeta() {\n var sorted = false;\n var sortOrder = 0;\n var metaIndex = -1;\n\n if (this.props.sortMode === 'single') {\n sorted = this.props.sortField && (this.props.sortField === this.getColumnProp('field') || this.props.sortField === this.getColumnProp('sortField'));\n sortOrder = sorted ? this.props.sortOrder : 0;\n } else if (this.props.sortMode === 'multiple') {\n metaIndex = this.getMultiSortMetaIndex();\n\n if (metaIndex > -1) {\n sorted = true;\n sortOrder = this.props.multiSortMeta[metaIndex].order;\n }\n }\n\n return {\n sorted: sorted,\n sortOrder: sortOrder,\n metaIndex: metaIndex\n };\n }\n }, {\n key: \"getAriaSort\",\n value: function getAriaSort(_ref) {\n var sorted = _ref.sorted,\n sortOrder = _ref.sortOrder;\n\n if (this.getColumnProp('sortable')) {\n var sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt' : 'pi-sort-alt';\n if (sortIcon === 'pi-sort-amount-down') return 'descending';else if (sortIcon === 'pi-sort-amount-up-alt') return 'ascending';else return 'none';\n }\n\n return null;\n }\n }, {\n key: \"updateStickyPosition\",\n value: function updateStickyPosition() {\n if (this.getColumnProp('frozen')) {\n var styleObject = _objectSpread$2({}, this.state.styleObject);\n\n var align = this.getColumnProp('alignFrozen');\n\n if (align === 'right') {\n var right = 0;\n var next = this.el.nextElementSibling;\n\n if (next) {\n right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);\n }\n\n styleObject['right'] = right + 'px';\n } else {\n var left = 0;\n var prev = this.el.previousElementSibling;\n\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);\n }\n\n styleObject['left'] = left + 'px';\n }\n\n var filterRow = this.el.parentElement.nextElementSibling;\n\n if (filterRow) {\n var index = DomHandler.index(this.el);\n filterRow.children[index].style.left = styleObject['left'];\n filterRow.children[index].style.right = styleObject['right'];\n }\n\n var isSameStyle = this.state.styleObject['left'] === styleObject['left'] && this.state.styleObject['right'] === styleObject['right'];\n !isSameStyle && this.setState({\n styleObject: styleObject\n });\n }\n }\n }, {\n key: \"updateSortableDisabled\",\n value: function updateSortableDisabled(prevColumn) {\n if (this.getColumnProp(prevColumn, 'sortableDisabled') !== this.getColumnProp('sortableDisabled') || this.getColumnProp(prevColumn, 'sortable') !== this.getColumnProp('sortable')) {\n this.props.onSortableChange();\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick(event) {\n if (!this.isSortableDisabled()) {\n var targetNode = event.target;\n\n if (DomHandler.hasClass(targetNode, 'p-sortable-column') || DomHandler.hasClass(targetNode, 'p-column-title') || DomHandler.hasClass(targetNode, 'p-column-header-content') || DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {\n DomHandler.clearSelection();\n this.props.onSortChange({\n originalEvent: event,\n column: this.props.column,\n sortableDisabledFields: this.props.sortableDisabledFields\n });\n }\n }\n }\n }, {\n key: \"onMouseDown\",\n value: function onMouseDown(event) {\n this.props.onColumnMouseDown({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n if (event.key === 'Enter' && event.currentTarget === this.el && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {\n this.onClick(event);\n event.preventDefault();\n }\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n this.props.onColumnDragStart({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDragOver\",\n value: function onDragOver(event) {\n this.props.onColumnDragOver({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDragLeave\",\n value: function onDragLeave(event) {\n this.props.onColumnDragLeave({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onDrop\",\n value: function onDrop(event) {\n this.props.onColumnDrop({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onResizerMouseDown\",\n value: function onResizerMouseDown(event) {\n this.props.onColumnResizeStart({\n originalEvent: event,\n column: this.props.column\n });\n }\n }, {\n key: \"onResizerClick\",\n value: function onResizerClick(event) {\n if (this.props.onColumnResizerClick) {\n this.props.onColumnResizerClick({\n originalEvent: event,\n element: event.currentTarget.parentElement,\n column: this.props.column\n });\n event.preventDefault();\n }\n }\n }, {\n key: \"onResizerDoubleClick\",\n value: function onResizerDoubleClick(event) {\n if (this.props.onColumnResizerDoubleClick) {\n this.props.onColumnResizerDoubleClick({\n originalEvent: event,\n element: event.currentTarget.parentElement,\n column: this.props.column\n });\n event.preventDefault();\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.getColumnProp('frozen')) {\n this.updateStickyPosition();\n }\n\n this.updateSortableDisabled(prevProps.column);\n }\n }, {\n key: \"renderResizer\",\n value: function renderResizer() {\n if (this.props.resizableColumns && !this.getColumnProp('frozen')) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-resizer\",\n onMouseDown: this.onResizerMouseDown,\n onClick: this.onResizerClick,\n onDoubleClick: this.onResizerDoubleClick\n });\n }\n\n return null;\n }\n }, {\n key: \"renderTitle\",\n value: function renderTitle() {\n var title = ObjectUtils.getJSXElement(this.getColumnProp('header'), {\n props: this.props.tableProps\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-column-title\"\n }, title);\n }\n }, {\n key: \"renderSortIcon\",\n value: function renderSortIcon(_ref2) {\n var sorted = _ref2.sorted,\n sortOrder = _ref2.sortOrder;\n\n if (this.getColumnProp('sortable')) {\n var sortIcon = sorted ? sortOrder < 0 ? 'pi-sort-amount-down' : 'pi-sort-amount-up-alt' : 'pi-sort-alt';\n var className = classNames('p-sortable-column-icon pi pi-fw', sortIcon);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderBadge\",\n value: function renderBadge(_ref3) {\n var metaIndex = _ref3.metaIndex;\n\n if (metaIndex !== -1 && this.isBadgeVisible()) {\n var value = this.props.groupRowsBy && this.props.groupRowsBy === this.props.groupRowSortField ? metaIndex : metaIndex + 1;\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-sortable-column-badge\"\n }, value);\n }\n\n return null;\n }\n }, {\n key: \"renderCheckbox\",\n value: function renderCheckbox() {\n if (this.props.showSelectAll && this.getColumnProp('selectionMode') === 'multiple' && this.props.filterDisplay !== 'row') {\n var allRowsSelected = this.props.allRowsSelected(this.props.value);\n return /*#__PURE__*/React.createElement(HeaderCheckbox, {\n checked: allRowsSelected,\n onChange: this.props.onColumnCheckboxChange,\n disabled: this.props.empty\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilter\",\n value: function renderFilter() {\n if (this.props.filterDisplay === 'menu' && this.getColumnProp('filter')) {\n return /*#__PURE__*/React.createElement(ColumnFilter, {\n display: \"menu\",\n column: this.props.column,\n filters: this.props.filters,\n onFilterChange: this.props.onFilterChange,\n onFilterApply: this.props.onFilterApply,\n filtersStore: this.props.filtersStore\n });\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader(sortMeta) {\n var title = this.renderTitle();\n var sortIcon = this.renderSortIcon(sortMeta);\n var badge = this.renderBadge(sortMeta);\n var checkbox = this.renderCheckbox();\n var filter = this.renderFilter();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-column-header-content\"\n }, title, sortIcon, badge, checkbox, filter);\n }\n }, {\n key: \"renderElement\",\n value: function renderElement() {\n var _this3 = this;\n\n var isSortableDisabled = this.isSortableDisabled();\n var sortMeta = this.getSortMeta();\n var style = this.getStyle();\n var align = this.getColumnProp('alignHeader') || this.getColumnProp('align');\n var className = classNames(this.getColumnProp('headerClassName'), this.getColumnProp('className'), _defineProperty({\n 'p-sortable-column': this.getColumnProp('sortable'),\n 'p-resizable-column': this.props.resizableColumns,\n 'p-highlight': sortMeta.sorted,\n 'p-frozen-column': this.getColumnProp('frozen'),\n 'p-selection-column': this.getColumnProp('selectionMode'),\n 'p-sortable-disabled': this.getColumnProp('sortable') && isSortableDisabled,\n 'p-reorderable-column': this.props.reorderableColumns && this.getColumnProp('reorderable')\n }, \"p-align-\".concat(align), !!align));\n var tabIndex = this.getColumnProp('sortable') && !isSortableDisabled ? this.props.tabIndex : null;\n var colSpan = this.getColumnProp('colSpan');\n var rowSpan = this.getColumnProp('rowSpan');\n var ariaSort = this.getAriaSort(sortMeta);\n var resizer = this.renderResizer();\n var header = this.renderHeader(sortMeta);\n return /*#__PURE__*/React.createElement(\"th\", {\n ref: function ref(el) {\n return _this3.el = el;\n },\n style: style,\n className: className,\n tabIndex: tabIndex,\n role: \"columnheader\",\n onClick: this.onClick,\n onKeyDown: this.onKeyDown,\n onMouseDown: this.onMouseDown,\n onDragStart: this.onDragStart,\n onDragOver: this.onDragOver,\n onDragLeave: this.onDragLeave,\n onDrop: this.onDrop,\n colSpan: colSpan,\n rowSpan: rowSpan,\n \"aria-sort\": ariaSort\n }, resizer, header);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.renderElement();\n }\n }]);\n\n return HeaderCell;\n}(Component);\n\nfunction ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar TableHeader = /*#__PURE__*/function (_Component) {\n _inherits(TableHeader, _Component);\n\n var _super = _createSuper$1(TableHeader);\n\n function TableHeader(props) {\n var _this;\n\n _classCallCheck(this, TableHeader);\n\n _this = _super.call(this, props);\n _this.state = {\n sortableDisabledFields: [],\n allSortableDisabled: false,\n styleObject: {}\n };\n _this.onSortableChange = _this.onSortableChange.bind(_assertThisInitialized(_this));\n _this.onCheckboxChange = _this.onCheckboxChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(TableHeader, [{\n key: \"isSingleSort\",\n value: function isSingleSort() {\n return this.props.sortMode === 'single';\n }\n }, {\n key: \"isMultipleSort\",\n value: function isMultipleSort() {\n return this.props.sortMode === 'multiple';\n }\n }, {\n key: \"isAllSortableDisabled\",\n value: function isAllSortableDisabled() {\n return this.isSingleSort() && this.state.allSortableDisabled;\n }\n }, {\n key: \"isColumnSorted\",\n value: function isColumnSorted(column) {\n return this.props.sortField !== null ? column.props.field === this.props.sortField || column.props.sortField === this.props.sortField : false;\n }\n }, {\n key: \"updateSortableDisabled\",\n value: function updateSortableDisabled() {\n var _this2 = this;\n\n if (this.isSingleSort() || this.isMultipleSort() && this.props.onSortChange) {\n var sortableDisabledFields = [];\n var allSortableDisabled = false;\n this.props.columns.forEach(function (column) {\n if (column.props.sortableDisabled) {\n sortableDisabledFields.push(column.props.sortField || column.props.field);\n\n if (!allSortableDisabled && _this2.isColumnSorted(column)) {\n allSortableDisabled = true;\n }\n }\n });\n this.setState({\n sortableDisabledFields: sortableDisabledFields,\n allSortableDisabled: allSortableDisabled\n });\n }\n }\n }, {\n key: \"onSortableChange\",\n value: function onSortableChange() {\n this.updateSortableDisabled();\n }\n }, {\n key: \"onCheckboxChange\",\n value: function onCheckboxChange(e) {\n this.props.onColumnCheckboxChange(e, this.props.value);\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateSortableDisabled();\n }\n }, {\n key: \"renderGroupHeaderCells\",\n value: function renderGroupHeaderCells(row) {\n var columns = React.Children.toArray(row.props.children);\n return this.renderHeaderCells(columns);\n }\n }, {\n key: \"renderHeaderCells\",\n value: function renderHeaderCells(columns) {\n var _this3 = this;\n\n return React.Children.map(columns, function (col, i) {\n var isVisible = col ? !col.props.hidden : true;\n var key = col ? col.props.columnKey || col.props.field || i : i;\n return isVisible && /*#__PURE__*/React.createElement(HeaderCell, {\n key: key,\n value: _this3.props.value,\n tableProps: _this3.props.tableProps,\n column: col,\n tabIndex: _this3.props.tabIndex,\n empty: _this3.props.empty,\n resizableColumns: _this3.props.resizableColumns,\n groupRowsBy: _this3.props.groupRowsBy,\n groupRowSortField: _this3.props.groupRowSortField,\n sortMode: _this3.props.sortMode,\n sortField: _this3.props.sortField,\n sortOrder: _this3.props.sortOrder,\n multiSortMeta: _this3.props.multiSortMeta,\n allSortableDisabled: _this3.isAllSortableDisabled(),\n onSortableChange: _this3.onSortableChange,\n sortableDisabledFields: _this3.state.sortableDisabledFields,\n filterDisplay: _this3.props.filterDisplay,\n filters: _this3.props.filters,\n filtersStore: _this3.props.filtersStore,\n onFilterChange: _this3.props.onFilterChange,\n onFilterApply: _this3.props.onFilterApply,\n onColumnMouseDown: _this3.props.onColumnMouseDown,\n onColumnDragStart: _this3.props.onColumnDragStart,\n onColumnDragOver: _this3.props.onColumnDragOver,\n onColumnDragLeave: _this3.props.onColumnDragLeave,\n onColumnDrop: _this3.props.onColumnDrop,\n onColumnResizeStart: _this3.props.onColumnResizeStart,\n onColumnResizerClick: _this3.props.onColumnResizerClick,\n onColumnResizerDoubleClick: _this3.props.onColumnResizerDoubleClick,\n showSelectAll: _this3.props.showSelectAll,\n allRowsSelected: _this3.props.allRowsSelected,\n onColumnCheckboxChange: _this3.onCheckboxChange,\n reorderableColumns: _this3.props.reorderableColumns,\n onSortChange: _this3.props.onSortChange\n });\n });\n }\n }, {\n key: \"renderCheckbox\",\n value: function renderCheckbox(selectionMode) {\n if (this.props.showSelectAll && selectionMode === 'multiple') {\n var allRowsSelected = this.props.allRowsSelected(this.props.value);\n return /*#__PURE__*/React.createElement(HeaderCheckbox, {\n checked: allRowsSelected,\n onChange: this.onCheckboxChange,\n disabled: this.props.empty\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilter\",\n value: function renderFilter(column, filter) {\n if (filter) {\n return /*#__PURE__*/React.createElement(ColumnFilter, {\n display: \"row\",\n column: column,\n filters: this.props.filters,\n filtersStore: this.props.filtersStore,\n onFilterChange: this.props.onFilterChange,\n onFilterApply: this.props.onFilterApply\n });\n }\n\n return null;\n }\n }, {\n key: \"renderFilterCells\",\n value: function renderFilterCells() {\n var _this4 = this;\n\n return React.Children.map(this.props.columns, function (col, i) {\n var isVisible = !col.props.hidden;\n\n if (isVisible) {\n var _col$props = col.props,\n filterHeaderStyle = _col$props.filterHeaderStyle,\n style = _col$props.style,\n filterHeaderClassName = _col$props.filterHeaderClassName,\n className = _col$props.className,\n frozen = _col$props.frozen,\n columnKey = _col$props.columnKey,\n field = _col$props.field,\n selectionMode = _col$props.selectionMode,\n filter = _col$props.filter;\n\n var colStyle = _objectSpread$1(_objectSpread$1({}, filterHeaderStyle || {}), style || {});\n\n var colClassName = classNames('p-filter-column', filterHeaderClassName, className, {\n 'p-frozen-column': frozen\n });\n var colKey = columnKey || field || i;\n\n var checkbox = _this4.renderCheckbox(selectionMode);\n\n var filterRow = _this4.renderFilter(col, filter);\n\n return /*#__PURE__*/React.createElement(\"th\", {\n key: colKey,\n style: colStyle,\n className: colClassName\n }, checkbox, filterRow);\n }\n\n return null;\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent() {\n var _this5 = this;\n\n if (this.props.headerColumnGroup) {\n var rows = React.Children.toArray(this.props.headerColumnGroup.props.children);\n return rows.map(function (row, i) {\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: i,\n role: \"row\"\n }, _this5.renderGroupHeaderCells(row));\n });\n } else {\n var headerRow = /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderHeaderCells(this.props.columns));\n var filterRow = this.props.filterDisplay === 'row' && /*#__PURE__*/React.createElement(\"tr\", {\n role: \"row\"\n }, this.renderFilterCells());\n return /*#__PURE__*/React.createElement(React.Fragment, null, headerRow, filterRow);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var content = this.renderContent();\n return /*#__PURE__*/React.createElement(\"thead\", {\n className: \"p-datatable-thead\"\n }, content);\n }\n }]);\n\n return TableHeader;\n}(Component);\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar DataTable = /*#__PURE__*/function (_Component) {\n _inherits(DataTable, _Component);\n\n var _super = _createSuper(DataTable);\n\n function DataTable(props) {\n var _this;\n\n _classCallCheck(this, DataTable);\n\n _this = _super.call(this, props);\n _this.state = {\n d_rows: props.rows,\n columnOrder: [],\n groupRowsSortMeta: null,\n editingMeta: {},\n attributeSelector: null\n };\n\n if (!_this.props.onPage) {\n _this.state.first = props.first;\n _this.state.rows = props.rows;\n }\n\n if (!_this.props.onSort) {\n _this.state.sortField = props.sortField;\n _this.state.sortOrder = props.sortOrder;\n _this.state.multiSortMeta = props.multiSortMeta;\n }\n\n _this.state.d_filters = _this.cloneFilters(props.filters);\n\n if (!_this.props.onFilter) {\n _this.state.filters = props.filters;\n } // header\n\n\n _this.onSortChange = _this.onSortChange.bind(_assertThisInitialized(_this));\n _this.onFilterChange = _this.onFilterChange.bind(_assertThisInitialized(_this));\n _this.onFilterApply = _this.onFilterApply.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderMouseDown = _this.onColumnHeaderMouseDown.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragStart = _this.onColumnHeaderDragStart.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragOver = _this.onColumnHeaderDragOver.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDragLeave = _this.onColumnHeaderDragLeave.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderDrop = _this.onColumnHeaderDrop.bind(_assertThisInitialized(_this));\n _this.onColumnResizeStart = _this.onColumnResizeStart.bind(_assertThisInitialized(_this));\n _this.onColumnHeaderCheckboxChange = _this.onColumnHeaderCheckboxChange.bind(_assertThisInitialized(_this));\n _this.allRowsSelected = _this.allRowsSelected.bind(_assertThisInitialized(_this)); // body\n\n _this.onEditingMetaChange = _this.onEditingMetaChange.bind(_assertThisInitialized(_this)); //paginator\n\n _this.onPageChange = _this.onPageChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(DataTable, [{\n key: \"isCustomStateStorage\",\n value: function isCustomStateStorage() {\n return this.props.stateStorage === 'custom';\n }\n }, {\n key: \"isStateful\",\n value: function isStateful() {\n return this.props.stateKey != null || this.isCustomStateStorage();\n }\n }, {\n key: \"isVirtualScrollerDisabled\",\n value: function isVirtualScrollerDisabled() {\n return ObjectUtils.isEmpty(this.props.virtualScrollerOptions) || !this.props.scrollable;\n }\n }, {\n key: \"isEquals\",\n value: function isEquals(data1, data2) {\n return this.props.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.props.dataKey);\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n return ObjectUtils.isNotEmpty(this.getFilters()) || this.props.globalFilter;\n }\n }, {\n key: \"getFirst\",\n value: function getFirst() {\n return this.props.onPage ? this.props.first : this.state.first;\n }\n }, {\n key: \"getRows\",\n value: function getRows() {\n return this.props.onPage ? this.props.rows : this.state.rows;\n }\n }, {\n key: \"getSortField\",\n value: function getSortField() {\n return this.props.onSort ? this.props.sortField : this.state.sortField;\n }\n }, {\n key: \"getSortOrder\",\n value: function getSortOrder() {\n return this.props.onSort ? this.props.sortOrder : this.state.sortOrder;\n }\n }, {\n key: \"getMultiSortMeta\",\n value: function getMultiSortMeta() {\n return (this.props.onSort ? this.props.multiSortMeta : this.state.multiSortMeta) || [];\n }\n }, {\n key: \"getFilters\",\n value: function getFilters() {\n return this.props.onFilter ? this.props.filters : this.state.filters;\n }\n }, {\n key: \"getColumnProp\",\n value: function getColumnProp(col, prop) {\n return col.props[prop];\n }\n }, {\n key: \"getColumns\",\n value: function getColumns(ignoreReorderable) {\n var _this2 = this;\n\n var columns = React.Children.toArray(this.props.children);\n\n if (!columns) {\n return null;\n }\n\n if (!ignoreReorderable && this.props.reorderableColumns && this.state.columnOrder) {\n var orderedColumns = this.state.columnOrder.reduce(function (arr, columnKey) {\n var column = _this2.findColumnByKey(columns, columnKey);\n\n column && arr.push(column);\n return arr;\n }, []);\n return [].concat(_toConsumableArray(orderedColumns), _toConsumableArray(columns.filter(function (col) {\n return orderedColumns.indexOf(col) < 0;\n })));\n }\n\n return columns;\n }\n }, {\n key: \"getStorage\",\n value: function getStorage() {\n switch (this.props.stateStorage) {\n case 'local':\n return window.localStorage;\n\n case 'session':\n return window.sessionStorage;\n\n case 'custom':\n return null;\n\n default:\n throw new Error(this.props.stateStorage + ' is not a valid value for the state storage, supported values are \"local\", \"session\" and \"custom\".');\n }\n }\n }, {\n key: \"saveState\",\n value: function saveState() {\n var state = {};\n\n if (this.props.paginator) {\n state.first = this.getFirst();\n state.rows = this.getRows();\n }\n\n var sortField = this.getSortField();\n\n if (sortField) {\n state.sortField = sortField;\n state.sortOrder = this.getSortOrder();\n }\n\n var multiSortMeta = this.getMultiSortMeta();\n\n if (multiSortMeta) {\n state.multiSortMeta = multiSortMeta;\n }\n\n if (this.hasFilter()) {\n state.filters = this.getFilters();\n }\n\n if (this.props.resizableColumns) {\n this.saveColumnWidths(state);\n }\n\n if (this.props.reorderableColumns) {\n state.columnOrder = this.state.columnOrder;\n }\n\n if (this.props.expandedRows) {\n state.expandedRows = this.props.expandedRows;\n }\n\n if (this.props.selection && this.props.onSelectionChange) {\n state.selection = this.props.selection;\n }\n\n if (this.isCustomStateStorage()) {\n if (this.props.customSaveState) {\n this.props.customSaveState(state);\n }\n } else {\n var storage = this.getStorage();\n\n if (ObjectUtils.isNotEmpty(state)) {\n storage.setItem(this.props.stateKey, JSON.stringify(state));\n }\n }\n\n if (this.props.onStateSave) {\n this.props.onStateSave(state);\n }\n }\n }, {\n key: \"clearState\",\n value: function clearState() {\n var storage = this.getStorage();\n\n if (storage && this.props.stateKey) {\n storage.removeItem(this.props.stateKey);\n }\n }\n }, {\n key: \"restoreState\",\n value: function restoreState(state) {\n var restoredState = {};\n\n if (this.isCustomStateStorage()) {\n if (this.props.customRestoreState) {\n restoredState = this.props.customRestoreState();\n }\n } else {\n var storage = this.getStorage();\n var stateString = storage.getItem(this.props.stateKey);\n var dateFormat = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/;\n\n var reviver = function reviver(key, value) {\n return typeof value === \"string\" && dateFormat.test(value) ? new Date(value) : value;\n };\n\n if (stateString) {\n restoredState = JSON.parse(stateString, reviver);\n }\n }\n\n this._restoreState(restoredState, state);\n }\n }, {\n key: \"restoreTableState\",\n value: function restoreTableState(restoredState) {\n var state = this._restoreState(restoredState);\n\n if (ObjectUtils.isNotEmpty(state)) {\n this.setState(state);\n }\n }\n }, {\n key: \"_restoreState\",\n value: function _restoreState(restoredState) {\n var _this3 = this;\n\n var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (ObjectUtils.isNotEmpty(restoredState)) {\n if (this.props.paginator) {\n if (this.props.onPage) {\n var getOnPageParams = function getOnPageParams(first, rows) {\n var totalRecords = _this3.getTotalRecords(_this3.processedData());\n\n var pageCount = Math.ceil(totalRecords / rows) || 1;\n var page = Math.floor(first / rows);\n return {\n first: first,\n rows: rows,\n page: page,\n pageCount: pageCount\n };\n };\n\n this.props.onPage(this.createEvent(getOnPageParams(restoredState.first, restoredState.rows)));\n } else {\n state.first = restoredState.first;\n state.rows = restoredState.rows;\n }\n }\n\n if (restoredState.sortField) {\n if (this.props.onSort) {\n this.props.onSort(this.createEvent({\n sortField: restoredState.sortField,\n sortOrder: restoredState.sortOrder\n }));\n } else {\n state.sortField = restoredState.sortField;\n state.sortOrder = restoredState.sortOrder;\n }\n }\n\n if (restoredState.multiSortMeta) {\n if (this.props.onSort) {\n this.props.onSort(this.createEvent({\n multiSortMeta: restoredState.multiSortMeta\n }));\n } else {\n state.multiSortMeta = restoredState.multiSortMeta;\n }\n }\n\n if (restoredState.filters) {\n state.d_filters = this.cloneFilters(restoredState.filters);\n\n if (this.props.onFilter) {\n this.props.onFilter(this.createEvent({\n filters: restoredState.filters\n }));\n } else {\n state.filters = this.cloneFilters(restoredState.filters);\n }\n }\n\n if (this.props.resizableColumns) {\n this.columnWidthsState = restoredState.columnWidths;\n this.tableWidthState = restoredState.tableWidth;\n }\n\n if (this.props.reorderableColumns) {\n state.columnOrder = restoredState.columnOrder;\n }\n\n if (restoredState.expandedRows && this.props.onRowToggle) {\n this.props.onRowToggle({\n data: restoredState.expandedRows\n });\n }\n\n if (restoredState.selection && this.props.onSelectionChange) {\n this.props.onSelectionChange({\n value: restoredState.selection\n });\n }\n\n if (this.props.onStateRestore) {\n this.props.onStateRestore(restoredState);\n }\n }\n\n return state;\n }\n }, {\n key: \"saveColumnWidths\",\n value: function saveColumnWidths(state) {\n var widths = [];\n var headers = DomHandler.find(this.el, '.p-datatable-thead > tr > th');\n headers.forEach(function (header) {\n return widths.push(DomHandler.getOuterWidth(header));\n });\n state.columnWidths = widths.join(',');\n\n if (this.props.columnResizeMode === 'expand') {\n state.tableWidth = DomHandler.getOuterWidth(this.table) + 'px';\n }\n }\n }, {\n key: \"restoreColumnWidths\",\n value: function restoreColumnWidths() {\n var _this4 = this;\n\n if (this.columnWidthsState) {\n var widths = this.columnWidthsState.split(',');\n\n if (this.props.columnResizeMode === 'expand' && this.tableWidthState) {\n this.table.style.width = this.tableWidthState;\n this.table.style.minWidth = this.tableWidthState;\n this.el.style.width = this.tableWidthState;\n }\n\n if (ObjectUtils.isNotEmpty(widths)) {\n this.createStyleElement();\n var innerHTML = '';\n widths.forEach(function (width, index) {\n var style = _this4.props.scrollable ? \"flex: 1 1 \".concat(width, \"px !important\") : \"width: \".concat(width, \"px !important\");\n innerHTML += \"\\n .p-datatable[\".concat(_this4.state.attributeSelector, \"] .p-datatable-thead > tr > th:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this4.state.attributeSelector, \"] .p-datatable-tbody > tr > td:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this4.state.attributeSelector, \"] .p-datatable-tfoot > tr > td:nth-child(\").concat(index + 1, \") {\\n \").concat(style, \"\\n }\\n \");\n });\n this.styleElement.innerHTML = innerHTML;\n }\n }\n }\n }, {\n key: \"findParentHeader\",\n value: function findParentHeader(element) {\n if (element.nodeName === 'TH') {\n return element;\n } else {\n var parent = element.parentElement;\n\n while (parent.nodeName !== 'TH') {\n parent = parent.parentElement;\n if (!parent) break;\n }\n\n return parent;\n }\n }\n }, {\n key: \"getGroupRowSortField\",\n value: function getGroupRowSortField() {\n return this.props.sortMode === 'single' ? this.props.sortField : this.state.groupRowsSortMeta ? this.state.groupRowsSortMeta.field : null;\n }\n }, {\n key: \"getSelectableData\",\n value: function getSelectableData(val) {\n var _this5 = this;\n\n if (this.props.showSelectionElement || this.props.isDataSelectable) {\n return val.filter(function (data, index) {\n var isSelectable = true;\n if (_this5.props.showSelectionElement) isSelectable = _this5.props.showSelectionElement({\n rowIndex: index,\n props: _this5.props\n });\n if (_this5.props.isDataSelectable && isSelectable) isSelectable = _this5.props.isDataSelectable({\n data: data,\n index: index\n });\n return isSelectable;\n });\n }\n\n return val;\n }\n }, {\n key: \"allRowsSelected\",\n value: function allRowsSelected(processedData) {\n var _this6 = this;\n\n if (this.props.onSelectAllChange) {\n return this.props.selectAll;\n } else {\n var data = this.props.selectionPageOnly ? this.dataToRender(processedData) : processedData;\n var val = this.props.frozenValue ? [].concat(_toConsumableArray(this.props.frozenValue), _toConsumableArray(data)) : data;\n var selectableVal = this.getSelectableData(val);\n return selectableVal && this.props.selection && selectableVal.every(function (sv) {\n return _this6.props.selection.some(function (s) {\n return _this6.isEquals(s, sv);\n });\n });\n }\n }\n }, {\n key: \"getSelectionModeInColumn\",\n value: function getSelectionModeInColumn(columns) {\n if (columns) {\n var col = columns.find(function (c) {\n return !!c.props.selectionMode;\n });\n return col ? col.props.selectionMode : null;\n }\n\n return null;\n }\n }, {\n key: \"findColumnByKey\",\n value: function findColumnByKey(columns, key) {\n return ObjectUtils.isNotEmpty(columns) ? columns.find(function (col) {\n return col.props.columnKey === key || col.props.field === key;\n }) : null;\n }\n }, {\n key: \"getTotalRecords\",\n value: function getTotalRecords(data) {\n return this.props.lazy ? this.props.totalRecords : data ? data.length : 0;\n }\n }, {\n key: \"onEditingMetaChange\",\n value: function onEditingMetaChange(e) {\n var rowData = e.rowData,\n field = e.field,\n rowIndex = e.rowIndex,\n editing = e.editing;\n\n var editingMeta = _objectSpread({}, this.state.editingMeta);\n\n var meta = editingMeta[rowIndex];\n\n if (editing) {\n !meta && (meta = editingMeta[rowIndex] = {\n data: _objectSpread({}, rowData),\n fields: []\n });\n meta['fields'].push(field);\n } else if (meta) {\n var fields = meta['fields'].filter(function (f) {\n return f !== field;\n });\n !fields.length ? delete editingMeta[rowIndex] : meta['fields'] = fields;\n }\n\n this.setState({\n editingMeta: editingMeta\n });\n }\n }, {\n key: \"clearEditingMetaData\",\n value: function clearEditingMetaData() {\n if (this.props.editMode && ObjectUtils.isNotEmpty(this.state.editingMeta)) {\n this.setState({\n editingMeta: {}\n });\n }\n }\n }, {\n key: \"onColumnResizeStart\",\n value: function onColumnResizeStart(e) {\n var event = e.originalEvent,\n column = e.column;\n var containerLeft = DomHandler.getOffset(this.el).left;\n this.resizeColumn = column;\n this.resizeColumnElement = event.currentTarget.parentElement;\n this.columnResizing = true;\n this.lastResizeHelperX = event.pageX - containerLeft + this.el.scrollLeft;\n this.bindColumnResizeEvents();\n }\n }, {\n key: \"onColumnResize\",\n value: function onColumnResize(event) {\n var containerLeft = DomHandler.getOffset(this.el).left;\n DomHandler.addClass(this.el, 'p-unselectable-text');\n this.resizeHelper.style.height = this.el.offsetHeight + 'px';\n this.resizeHelper.style.top = 0 + 'px';\n this.resizeHelper.style.left = event.pageX - containerLeft + this.el.scrollLeft + 'px';\n this.resizeHelper.style.display = 'block';\n }\n }, {\n key: \"onColumnResizeEnd\",\n value: function onColumnResizeEnd() {\n var delta = this.resizeHelper.offsetLeft - this.lastResizeHelperX;\n var columnWidth = this.resizeColumnElement.offsetWidth;\n var newColumnWidth = columnWidth + delta;\n var minWidth = this.resizeColumnElement.style.minWidth || 15;\n\n if (columnWidth + delta > parseInt(minWidth, 10)) {\n if (this.props.columnResizeMode === 'fit') {\n var nextColumn = this.resizeColumnElement.nextElementSibling;\n var nextColumnWidth = nextColumn.offsetWidth - delta;\n\n if (newColumnWidth > 15 && nextColumnWidth > 15) {\n this.resizeTableCells(newColumnWidth, nextColumnWidth);\n }\n } else if (this.props.columnResizeMode === 'expand') {\n var tableWidth = this.table.offsetWidth + delta + 'px';\n this.table.style.width = tableWidth;\n this.table.style.minWidth = tableWidth;\n this.resizeTableCells(newColumnWidth);\n }\n\n if (this.props.onColumnResizeEnd) {\n this.props.onColumnResizeEnd({\n element: this.resizeColumnElement,\n column: this.resizeColumn,\n delta: delta\n });\n }\n\n if (this.isStateful()) {\n this.saveState();\n }\n }\n\n this.resizeHelper.style.display = 'none';\n this.resizeColumn = null;\n this.resizeColumnElement = null;\n DomHandler.removeClass(this.el, 'p-unselectable-text');\n this.unbindColumnResizeEvents();\n }\n }, {\n key: \"resizeTableCells\",\n value: function resizeTableCells(newColumnWidth, nextColumnWidth) {\n var _this7 = this;\n\n var widths = [];\n var colIndex = DomHandler.index(this.resizeColumnElement);\n var headers = DomHandler.find(this.table, '.p-datatable-thead > tr > th');\n headers.forEach(function (header) {\n return widths.push(DomHandler.getOuterWidth(header));\n });\n this.destroyStyleElement();\n this.createStyleElement();\n var innerHTML = '';\n widths.forEach(function (width, index) {\n var colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;\n var style = _this7.props.scrollable ? \"flex: 1 1 \".concat(colWidth, \"px !important\") : \"width: \".concat(colWidth, \"px !important\");\n innerHTML += \"\\n .p-datatable[\".concat(_this7.state.attributeSelector, \"] .p-datatable-thead > tr > th:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this7.state.attributeSelector, \"] .p-datatable-tbody > tr > td:nth-child(\").concat(index + 1, \"),\\n .p-datatable[\").concat(_this7.state.attributeSelector, \"] .p-datatable-tfoot > tr > td:nth-child(\").concat(index + 1, \") {\\n \").concat(style, \"\\n }\\n \");\n });\n this.styleElement.innerHTML = innerHTML;\n }\n }, {\n key: \"bindColumnResizeEvents\",\n value: function bindColumnResizeEvents() {\n var _this8 = this;\n\n if (!this.documentColumnResizeListener) {\n this.documentColumnResizeListener = document.addEventListener('mousemove', function (event) {\n if (_this8.columnResizing) {\n _this8.onColumnResize(event);\n }\n });\n }\n\n if (!this.documentColumnResizeEndListener) {\n this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {\n if (_this8.columnResizing) {\n _this8.columnResizing = false;\n\n _this8.onColumnResizeEnd();\n }\n });\n }\n }\n }, {\n key: \"unbindColumnResizeEvents\",\n value: function unbindColumnResizeEvents() {\n if (this.documentColumnResizeListener) {\n document.removeEventListener('document', this.documentColumnResizeListener);\n this.documentColumnResizeListener = null;\n }\n\n if (this.documentColumnResizeEndListener) {\n document.removeEventListener('document', this.documentColumnResizeEndListener);\n this.documentColumnResizeEndListener = null;\n }\n }\n }, {\n key: \"onColumnHeaderMouseDown\",\n value: function onColumnHeaderMouseDown(e) {\n DomHandler.clearSelection();\n var event = e.originalEvent,\n column = e.column;\n\n if (this.props.reorderableColumns && this.getColumnProp(column, 'reorderable') !== false) {\n if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;\n }\n }\n }, {\n key: \"onColumnHeaderCheckboxChange\",\n value: function onColumnHeaderCheckboxChange(e, processedData) {\n var _this9 = this;\n\n if (this.props.onSelectAllChange) {\n this.props.onSelectAllChange(e);\n } else {\n var originalEvent = e.originalEvent,\n checked = e.checked;\n var data = this.props.selectionPageOnly ? this.dataToRender(processedData) : processedData;\n var selection = this.props.selectionPageOnly && this.props.selection ? this.props.selection.filter(function (s) {\n return !data.some(function (d) {\n return _this9.isEquals(s, d);\n });\n }) : [];\n\n if (checked) {\n selection = this.props.frozenValue ? [].concat(_toConsumableArray(selection), _toConsumableArray(this.props.frozenValue), _toConsumableArray(data)) : [].concat(_toConsumableArray(selection), _toConsumableArray(data));\n selection = this.getSelectableData(selection);\n this.props.onAllRowsSelect && this.props.onAllRowsSelect({\n originalEvent: originalEvent,\n data: selection,\n type: 'all'\n });\n } else {\n this.props.onAllRowsUnselect && this.props.onAllRowsUnselect({\n originalEvent: originalEvent,\n data: selection,\n type: 'all'\n });\n }\n\n if (this.props.onSelectionChange) {\n this.props.onSelectionChange({\n originalEvent: originalEvent,\n value: selection,\n type: 'all'\n });\n }\n }\n }\n }, {\n key: \"onColumnHeaderDragStart\",\n value: function onColumnHeaderDragStart(e) {\n var event = e.originalEvent,\n column = e.column;\n\n if (this.columnResizing) {\n event.preventDefault();\n return;\n }\n\n this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.reorderIndicatorUp);\n this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorUp);\n this.draggedColumn = column;\n this.draggedColumnElement = this.findParentHeader(event.currentTarget);\n event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible\n }\n }, {\n key: \"onColumnHeaderDragOver\",\n value: function onColumnHeaderDragOver(e) {\n var event = e.originalEvent;\n var dropHeader = this.findParentHeader(event.currentTarget);\n\n if (this.props.reorderableColumns && this.draggedColumnElement && dropHeader) {\n event.preventDefault();\n\n if (this.draggedColumnElement !== dropHeader) {\n var containerOffset = DomHandler.getOffset(this.el);\n var dropHeaderOffset = DomHandler.getOffset(dropHeader);\n var targetLeft = dropHeaderOffset.left - containerOffset.left;\n var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;\n this.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';\n this.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';\n\n if (event.pageX > columnCenter) {\n this.reorderIndicatorUp.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.reorderIndicatorDown.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.dropPosition = 1;\n } else {\n this.reorderIndicatorUp.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.reorderIndicatorDown.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';\n this.dropPosition = -1;\n }\n\n this.reorderIndicatorUp.style.display = 'block';\n this.reorderIndicatorDown.style.display = 'block';\n }\n }\n }\n }, {\n key: \"onColumnHeaderDragLeave\",\n value: function onColumnHeaderDragLeave(e) {\n var event = e.originalEvent;\n\n if (this.props.reorderableColumns && this.draggedColumnElement) {\n event.preventDefault();\n this.reorderIndicatorUp.style.display = 'none';\n this.reorderIndicatorDown.style.display = 'none';\n }\n }\n }, {\n key: \"onColumnHeaderDrop\",\n value: function onColumnHeaderDrop(e) {\n var _this10 = this;\n\n var event = e.originalEvent,\n column = e.column;\n event.preventDefault();\n\n if (this.draggedColumnElement) {\n var dragIndex = DomHandler.index(this.draggedColumnElement);\n var dropIndex = DomHandler.index(this.findParentHeader(event.currentTarget));\n var allowDrop = dragIndex !== dropIndex;\n\n if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dragIndex - dropIndex === 1 && this.dropPosition === 1)) {\n allowDrop = false;\n }\n\n if (allowDrop) {\n var columns = this.getColumns();\n\n var isSameColumn = function isSameColumn(col1, col2) {\n return col1.props.columnKey || col2.props.columnKey ? ObjectUtils.equals(col1.props, col2.props, 'columnKey') : ObjectUtils.equals(col1.props, col2.props, 'field');\n };\n\n var dragColIndex = columns.findIndex(function (child) {\n return isSameColumn(child, _this10.draggedColumn);\n });\n var dropColIndex = columns.findIndex(function (child) {\n return isSameColumn(child, column);\n });\n\n if (dropColIndex < dragColIndex && this.dropPosition === 1) {\n dropColIndex++;\n }\n\n if (dropColIndex > dragColIndex && this.dropPosition === -1) {\n dropColIndex--;\n }\n\n ObjectUtils.reorderArray(columns, dragColIndex, dropColIndex);\n var columnOrder = columns.reduce(function (orders, col) {\n orders.push(col.props.columnKey || col.props.field);\n return orders;\n }, []);\n this.setState({\n columnOrder: columnOrder\n });\n\n if (this.props.onColReorder) {\n this.props.onColReorder({\n originalEvent: event,\n dragIndex: dragColIndex,\n dropIndex: dropColIndex,\n columns: columns\n });\n }\n }\n\n this.reorderIndicatorUp.style.display = 'none';\n this.reorderIndicatorDown.style.display = 'none';\n this.draggedColumnElement.draggable = false;\n this.draggedColumnElement = null;\n this.draggedColumn = null;\n this.dropPosition = null;\n }\n }\n }, {\n key: \"createStyleElement\",\n value: function createStyleElement() {\n this.styleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n }\n }, {\n key: \"createResponsiveStyle\",\n value: function createResponsiveStyle() {\n if (!this.responsiveStyleElement) {\n this.responsiveStyleElement = DomHandler.createInlineStyle(PrimeReact.nonce);\n var innerHTML = \"\\n@media screen and (max-width: \".concat(this.props.breakpoint, \") {\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-thead > tr > th,\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tfoot > tr > td {\\n display: none !important;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td {\\n display: flex;\\n width: 100% !important;\\n align-items: center;\\n justify-content: space-between;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td:not(:last-child) {\\n border: 0 none;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\\n border-top: 0;\\n border-right: 0;\\n border-left: 0;\\n }\\n\\n .p-datatable[\").concat(this.state.attributeSelector, \"] .p-datatable-tbody > tr > td > .p-column-title {\\n display: block;\\n }\\n}\\n\");\n this.responsiveStyleElement.innerHTML = innerHTML;\n }\n }\n }, {\n key: \"destroyResponsiveStyle\",\n value: function destroyResponsiveStyle() {\n this.responsiveStyleElement = DomHandler.removeInlineStyle(this.responsiveStyleElement);\n }\n }, {\n key: \"destroyStyleElement\",\n value: function destroyStyleElement() {\n this.styleElement = DomHandler.removeInlineStyle(this.styleElement);\n }\n }, {\n key: \"onPageChange\",\n value: function onPageChange(e) {\n this.clearEditingMetaData();\n if (this.props.onPage) this.props.onPage(this.createEvent(e));else this.setState({\n first: e.first,\n rows: e.rows\n });\n\n if (this.props.onValueChange) {\n this.props.onValueChange(this.processedData());\n }\n }\n }, {\n key: \"onSortChange\",\n value: function onSortChange(e) {\n this.clearEditingMetaData();\n var event = e.originalEvent,\n column = e.column,\n sortableDisabledFields = e.sortableDisabledFields;\n var sortField = column.props.sortField || column.props.field;\n var sortOrder = this.props.defaultSortOrder;\n var multiSortMeta;\n var eventMeta;\n this.columnSortable = column.props.sortable;\n this.columnSortFunction = column.props.sortFunction;\n this.columnField = column.props.sortField;\n\n if (this.props.sortMode === 'multiple') {\n var metaKey = event.metaKey || event.ctrlKey;\n multiSortMeta = _toConsumableArray(this.getMultiSortMeta());\n var sortMeta = multiSortMeta.find(function (sortMeta) {\n return sortMeta.field === sortField;\n });\n sortOrder = sortMeta ? this.getCalculatedSortOrder(sortMeta.order) : sortOrder;\n var newMetaData = {\n field: sortField,\n order: sortOrder\n };\n\n if (sortOrder) {\n multiSortMeta = metaKey ? multiSortMeta : multiSortMeta.filter(function (meta) {\n return sortableDisabledFields.some(function (field) {\n return field === meta.field;\n });\n });\n this.addSortMeta(newMetaData, multiSortMeta);\n } else if (this.props.removableSort) {\n this.removeSortMeta(newMetaData, multiSortMeta);\n }\n\n eventMeta = {\n multiSortMeta: multiSortMeta\n };\n } else {\n sortOrder = this.getSortField() === sortField ? this.getCalculatedSortOrder(this.getSortOrder()) : sortOrder;\n\n if (this.props.removableSort) {\n sortField = sortOrder ? sortField : null;\n }\n\n eventMeta = {\n sortField: sortField,\n sortOrder: sortOrder\n };\n }\n\n if (this.props.onSort) {\n this.props.onSort(this.createEvent(eventMeta));\n } else {\n eventMeta.first = 0;\n this.setState(eventMeta);\n }\n\n if (this.props.onValueChange) {\n this.props.onValueChange(this.processedData({\n sortField: sortField,\n sortOrder: sortOrder,\n multiSortMeta: multiSortMeta\n }));\n }\n }\n }, {\n key: \"getCalculatedSortOrder\",\n value: function getCalculatedSortOrder(currentOrder) {\n return this.props.removableSort ? this.props.defaultSortOrder === currentOrder ? currentOrder * -1 : 0 : currentOrder * -1;\n }\n }, {\n key: \"compareValuesOnSort\",\n value: function compareValuesOnSort(value1, value2) {\n var result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n numeric: true\n });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return result;\n }\n }, {\n key: \"addSortMeta\",\n value: function addSortMeta(meta, multiSortMeta) {\n var index = multiSortMeta.findIndex(function (sortMeta) {\n return sortMeta.field === meta.field;\n });\n if (index >= 0) multiSortMeta[index] = meta;else multiSortMeta.push(meta);\n }\n }, {\n key: \"removeSortMeta\",\n value: function removeSortMeta(meta, multiSortMeta) {\n var index = multiSortMeta.findIndex(function (sortMeta) {\n return sortMeta.field === meta.field;\n });\n\n if (index >= 0) {\n multiSortMeta.splice(index, 1);\n }\n\n multiSortMeta = multiSortMeta.length > 0 ? multiSortMeta : null;\n }\n }, {\n key: \"sortSingle\",\n value: function sortSingle(data, field, order) {\n var _this11 = this;\n\n if (this.props.groupRowsBy && this.props.groupRowsBy === this.props.sortField) {\n var multiSortMeta = [{\n field: this.props.sortField,\n order: this.props.sortOrder || this.props.defaultSortOrder\n }];\n this.props.sortField !== field && multiSortMeta.push({\n field: field,\n order: order\n });\n return this.sortMultiple(data, multiSortMeta);\n }\n\n var value = _toConsumableArray(data);\n\n if (this.columnSortable && this.columnSortFunction) {\n value = this.columnSortFunction({\n field: field,\n order: order\n });\n } else {\n value.sort(function (data1, data2) {\n var value1 = ObjectUtils.resolveFieldData(data1, field);\n var value2 = ObjectUtils.resolveFieldData(data2, field);\n\n var result = _this11.compareValuesOnSort(value1, value2);\n\n return order * result;\n });\n }\n\n return value;\n }\n }, {\n key: \"sortMultiple\",\n value: function sortMultiple(data) {\n var _this12 = this;\n\n var multiSortMeta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n if (this.props.groupRowsBy && (this.groupRowsSortMeta || multiSortMeta.length && this.props.groupRowsBy === multiSortMeta[0].field)) {\n var firstSortMeta = multiSortMeta[0];\n !this.groupRowsSortMeta && (this.groupRowsSortMeta = firstSortMeta);\n\n if (firstSortMeta.field !== this.groupRowsSortMeta.field) {\n multiSortMeta = [this.groupRowsSortMeta].concat(_toConsumableArray(multiSortMeta));\n }\n }\n\n var value = _toConsumableArray(data);\n\n if (this.columnSortable && this.columnSortFunction) {\n var meta = multiSortMeta.find(function (meta) {\n return meta.field === _this12.columnField;\n });\n var field = this.columnField;\n var order = meta ? meta.order : this.defaultSortOrder;\n value = this.columnSortFunction({\n field: field,\n order: order\n });\n } else {\n value.sort(function (data1, data2) {\n return _this12.multisortField(data1, data2, multiSortMeta, 0);\n });\n }\n\n return value;\n }\n }, {\n key: \"multisortField\",\n value: function multisortField(data1, data2, multiSortMeta, index) {\n var value1 = ObjectUtils.resolveFieldData(data1, multiSortMeta[index].field);\n var value2 = ObjectUtils.resolveFieldData(data2, multiSortMeta[index].field);\n\n if (value1 === value2) {\n return multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, multiSortMeta, index + 1) : 0;\n }\n\n var result = this.compareValuesOnSort(value1, value2);\n return multiSortMeta[index].order * result;\n }\n }, {\n key: \"onFilterChange\",\n value: function onFilterChange(filters) {\n this.clearEditingMetaData();\n this.setState({\n d_filters: filters\n });\n }\n }, {\n key: \"onFilterApply\",\n value: function onFilterApply() {\n var _this13 = this;\n\n clearTimeout(this.filterTimeout);\n this.filterTimeout = setTimeout(function () {\n var filters = _this13.cloneFilters(_this13.state.d_filters);\n\n if (_this13.props.onFilter) {\n _this13.props.onFilter(_this13.createEvent({\n filters: filters\n }));\n } else {\n _this13.setState({\n first: 0,\n filters: filters\n });\n }\n\n if (_this13.props.onValueChange) {\n _this13.props.onValueChange(_this13.processedData({\n filters: filters\n }));\n }\n }, this.props.filterDelay);\n }\n }, {\n key: \"filterLocal\",\n value: function filterLocal(data, filters) {\n if (!data) return;\n filters = filters || {};\n var columns = this.getColumns();\n var filteredValue = [];\n var isGlobalFilter = filters['global'] || this.props.globalFilter;\n var globalFilterFieldsArray;\n\n if (isGlobalFilter) {\n globalFilterFieldsArray = this.props.globalFilterFields || columns.filter(function (col) {\n return !col.props.excludeGlobalFilter;\n }).map(function (col) {\n return col.props.filterField || col.props.field;\n });\n }\n\n for (var i = 0; i < data.length; i++) {\n var localMatch = true;\n var globalMatch = false;\n var localFiltered = false;\n\n for (var prop in filters) {\n if (Object.prototype.hasOwnProperty.call(filters, prop) && prop !== 'global') {\n localFiltered = true;\n var filterField = prop;\n var filterMeta = filters[filterField];\n\n if (filterMeta.operator) {\n for (var j = 0; j < filterMeta.constraints.length; j++) {\n var filterConstraint = filterMeta.constraints[j];\n localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint, j);\n\n if (filterMeta.operator === FilterOperator.OR && localMatch || filterMeta.operator === FilterOperator.AND && !localMatch) {\n break;\n }\n }\n } else {\n localMatch = this.executeLocalFilter(filterField, data[i], filterMeta, 0);\n }\n\n if (!localMatch) {\n break;\n }\n }\n }\n\n if (isGlobalFilter && !globalMatch && globalFilterFieldsArray) {\n for (var _j = 0; _j < globalFilterFieldsArray.length; _j++) {\n var globalFilterField = globalFilterFieldsArray[_j];\n var matchMode = filters['global'] ? filters['global'].matchMode : FilterMatchMode.CONTAINS;\n var value = filters['global'] ? filters['global'].value : this.props.globalFilter;\n globalMatch = FilterService.filters[matchMode](ObjectUtils.resolveFieldData(data[i], globalFilterField), value, this.props.filterLocale);\n\n if (globalMatch) {\n break;\n }\n }\n }\n\n var matches = void 0;\n\n if (isGlobalFilter) {\n matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;\n } else {\n matches = localFiltered && localMatch;\n }\n\n if (matches) {\n filteredValue.push(data[i]);\n }\n }\n\n if (filteredValue.length === this.props.value.length) {\n filteredValue = data;\n }\n\n return filteredValue;\n }\n }, {\n key: \"executeLocalFilter\",\n value: function executeLocalFilter(field, rowData, filterMeta, index) {\n var filterValue = filterMeta.value;\n var filterMatchMode = filterMeta.matchMode === 'custom' ? \"custom_\".concat(field) : filterMeta.matchMode || FilterMatchMode.STARTS_WITH;\n var dataFieldValue = ObjectUtils.resolveFieldData(rowData, field);\n var filterConstraint = FilterService.filters[filterMatchMode];\n return filterConstraint(dataFieldValue, filterValue, this.props.filterLocale, index);\n }\n }, {\n key: \"cloneFilters\",\n value: function cloneFilters(filters) {\n var _this14 = this;\n\n filters = filters || this.props.filters;\n var cloned = {};\n\n if (filters) {\n Object.entries(filters).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n prop = _ref2[0],\n value = _ref2[1];\n\n cloned[prop] = value.operator ? {\n operator: value.operator,\n constraints: value.constraints.map(function (constraint) {\n return _objectSpread({}, constraint);\n })\n } : _objectSpread({}, value);\n });\n } else {\n var columns = this.getColumns();\n cloned = columns.reduce(function (_filters, col) {\n var field = col.props.filterField || col.props.field;\n var filterFunction = col.props.filterFunction;\n var dataType = col.props.dataType;\n var matchMode = col.props.filterMatchMode || (PrimeReact.filterMatchModeOptions[dataType] ? PrimeReact.filterMatchModeOptions[dataType][0] : FilterMatchMode.STARTS_WITH);\n var constraint = {\n value: null,\n matchMode: matchMode\n };\n\n if (filterFunction) {\n FilterService.register(\"custom_\".concat(field), function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return filterFunction.apply(void 0, args.concat([{\n column: col\n }]));\n });\n }\n\n _filters[field] = _this14.props.filterDisplay === 'menu' ? {\n operator: FilterOperator.AND,\n constraints: [constraint]\n } : constraint;\n return _filters;\n }, {});\n }\n\n return cloned;\n }\n }, {\n key: \"filter\",\n value: function filter(value, field, matchMode) {\n var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n\n var filters = _objectSpread({}, this.state.d_filters);\n\n var meta = filters[field];\n var constraint = meta && meta.operator ? meta.constraints[index] : meta;\n constraint = meta ? {\n value: value,\n matchMode: matchMode || constraint.matchMode\n } : {\n value: value,\n matchMode: matchMode\n };\n this.props.filterDisplay === 'menu' && meta && meta.operator ? filters[field].constraints[index] = constraint : filters[field] = constraint;\n this.setState({\n d_filters: filters\n }, this.onFilterApply);\n }\n }, {\n key: \"reset\",\n value: function reset() {\n var state = {\n d_rows: this.props.rows,\n d_filters: this.cloneFilters(this.props.filters),\n groupRowsSortMeta: null,\n editingMeta: {}\n };\n\n if (!this.props.onPage) {\n state.first = this.props.first;\n state.rows = this.props.rows;\n }\n\n if (!this.props.onSort) {\n state.sortField = this.props.sortField;\n state.sortOrder = this.props.sortOrder;\n state.multiSortMeta = this.props.multiSortMeta;\n }\n\n if (!this.props.onFilter) {\n state.filters = this.props.filters;\n }\n\n this.resetColumnOrder();\n this.setState(state);\n }\n }, {\n key: \"resetColumnOrder\",\n value: function resetColumnOrder() {\n var columns = this.getColumns(true);\n var columnOrder = [];\n\n if (columns) {\n columnOrder = columns.reduce(function (orders, col) {\n orders.push(col.props.columnKey || col.props.field);\n return orders;\n }, []);\n }\n\n this.setState({\n columnOrder: columnOrder\n });\n }\n }, {\n key: \"exportCSV\",\n value: function exportCSV(options) {\n var _this15 = this;\n\n var data;\n var csv = \"\\uFEFF\";\n var columns = this.getColumns();\n\n if (options && options.selectionOnly) {\n data = this.props.selection || [];\n } else {\n data = [].concat(_toConsumableArray(this.props.frozenValue || []), _toConsumableArray(this.processedData() || []));\n } //headers\n\n\n columns.forEach(function (column, i) {\n var _column$props = column.props,\n field = _column$props.field,\n header = _column$props.header,\n exportable = _column$props.exportable;\n\n if (exportable && field) {\n csv += '\"' + (header || field) + '\"';\n\n if (i < columns.length - 1) {\n csv += _this15.props.csvSeparator;\n }\n }\n }); //body\n\n data.forEach(function (record) {\n csv += '\\n';\n columns.forEach(function (column, i) {\n var _column$props2 = column.props,\n columnField = _column$props2.field,\n exportField = _column$props2.exportField,\n exportable = _column$props2.exportable;\n var field = exportField || columnField;\n\n if (exportable && field) {\n var cellData = ObjectUtils.resolveFieldData(record, field);\n\n if (cellData != null) {\n cellData = _this15.props.exportFunction ? _this15.props.exportFunction({\n data: cellData,\n field: field,\n rowData: record,\n column: column\n }) : String(cellData).replace(/\"/g, '\"\"');\n } else cellData = '';\n\n csv += '\"' + cellData + '\"';\n\n if (i < columns.length - 1) {\n csv += _this15.props.csvSeparator;\n }\n }\n });\n });\n DomHandler.exportCSV(csv, this.props.exportFilename);\n }\n }, {\n key: \"closeEditingCell\",\n value: function closeEditingCell() {\n if (this.props.editMode !== \"row\") {\n document.body.click();\n }\n }\n }, {\n key: \"createEvent\",\n value: function createEvent(event) {\n return _objectSpread({\n first: this.getFirst(),\n rows: this.getRows(),\n sortField: this.getSortField(),\n sortOrder: this.getSortOrder(),\n multiSortMeta: this.getMultiSortMeta(),\n filters: this.getFilters()\n }, event);\n }\n }, {\n key: \"processedData\",\n value: function processedData(localState) {\n var data = this.props.value || [];\n\n if (!this.props.lazy) {\n if (data && data.length) {\n var filters = localState && localState.filters || this.getFilters();\n var sortField = localState && localState.sortField || this.getSortField();\n var sortOrder = localState && localState.sortOrder || this.getSortOrder();\n var multiSortMeta = localState && localState.multiSortMeta || this.getMultiSortMeta();\n\n if (ObjectUtils.isNotEmpty(filters) || this.props.globalFilter) {\n data = this.filterLocal(data, filters);\n }\n\n if (sortField || ObjectUtils.isNotEmpty(multiSortMeta)) {\n if (this.props.sortMode === 'single') data = this.sortSingle(data, sortField, sortOrder);else if (this.props.sortMode === 'multiple') data = this.sortMultiple(data, multiSortMeta);\n }\n }\n }\n\n return data;\n }\n }, {\n key: \"dataToRender\",\n value: function dataToRender(data) {\n if (data && this.props.paginator) {\n var first = this.props.lazy ? 0 : this.getFirst();\n return data.slice(first, first + this.getRows());\n }\n\n return data;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this16 = this;\n\n this.setState({\n attributeSelector: UniqueComponentId()\n }, function () {\n _this16.el.setAttribute(_this16.state.attributeSelector, '');\n });\n\n if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {\n this.createResponsiveStyle();\n }\n\n if (this.isStateful()) {\n this.setState(this.restoreState(this.state));\n\n if (this.props.resizableColumns) {\n this.restoreColumnWidths();\n }\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.isStateful()) {\n this.saveState();\n }\n\n if (prevProps.responsiveLayout !== this.props.responsiveLayout) {\n this.destroyResponsiveStyle();\n\n if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {\n this.createResponsiveStyle();\n }\n }\n\n if (prevProps.filters !== this.props.filters) {\n this.setState({\n filters: this.cloneFilters(this.props.filters),\n d_filters: this.cloneFilters(this.props.filters)\n });\n }\n\n if (prevProps.globalFilter !== this.props.globalFilter) {\n this.filter(this.props.globalFilter, 'global', 'contains');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindColumnResizeEvents();\n this.destroyStyleElement();\n this.destroyResponsiveStyle();\n }\n }, {\n key: \"renderLoader\",\n value: function renderLoader() {\n if (this.props.loading) {\n var iconClassName = classNames('p-datatable-loading-icon pi-spin', this.props.loadingIcon);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-loading-overlay p-component-overlay\"\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: iconClassName\n }));\n }\n\n return null;\n }\n }, {\n key: \"renderHeader\",\n value: function renderHeader() {\n if (this.props.header) {\n var content = ObjectUtils.getJSXElement(this.props.header, {\n props: this.props\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-header\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderTableHeader\",\n value: function renderTableHeader(options, empty) {\n var sortField = this.getSortField();\n var sortOrder = this.getSortOrder();\n\n var multiSortMeta = _toConsumableArray(this.getMultiSortMeta());\n\n var groupRowSortField = this.getGroupRowSortField();\n var filters = this.state.d_filters;\n var filtersStore = this.getFilters();\n var processedData = options.items,\n columns = options.columns;\n return /*#__PURE__*/React.createElement(TableHeader, {\n value: processedData,\n tableProps: this.props,\n columns: columns,\n tabIndex: this.props.tabIndex,\n empty: empty,\n headerColumnGroup: this.props.headerColumnGroup,\n resizableColumns: this.props.resizableColumns,\n onColumnResizeStart: this.onColumnResizeStart,\n onColumnResizerClick: this.props.onColumnResizerClick,\n onColumnResizerDoubleClick: this.props.onColumnResizerDoubleClick,\n sortMode: this.props.sortMode,\n sortField: sortField,\n sortOrder: sortOrder,\n multiSortMeta: multiSortMeta,\n groupRowsBy: this.props.groupRowsBy,\n groupRowSortField: groupRowSortField,\n onSortChange: this.onSortChange,\n filterDisplay: this.props.filterDisplay,\n filters: filters,\n filtersStore: filtersStore,\n onFilterChange: this.onFilterChange,\n onFilterApply: this.onFilterApply,\n showSelectAll: this.props.showSelectAll,\n allRowsSelected: this.allRowsSelected,\n onColumnCheckboxChange: this.onColumnHeaderCheckboxChange,\n onColumnMouseDown: this.onColumnHeaderMouseDown,\n onColumnDragStart: this.onColumnHeaderDragStart,\n onColumnDragOver: this.onColumnHeaderDragOver,\n onColumnDragLeave: this.onColumnHeaderDragLeave,\n onColumnDrop: this.onColumnHeaderDrop,\n rowGroupMode: this.props.rowGroupMode,\n reorderableColumns: this.props.reorderableColumns\n });\n }\n }, {\n key: \"renderTableBody\",\n value: function renderTableBody(options, selectionModeInColumn, empty, isVirtualScrollerDisabled) {\n var tableSelector = this.state.attributeSelector;\n var first = this.getFirst();\n var editingMeta = this.state.editingMeta;\n var rows = options.rows,\n columns = options.columns,\n contentRef = options.contentRef,\n className = options.className;\n var frozenBody = this.props.frozenValue && /*#__PURE__*/React.createElement(TableBody, {\n value: this.props.frozenValue,\n className: \"p-datatable-frozen-tbody\",\n frozenRow: true,\n tableProps: this.props,\n tableSelector: tableSelector,\n columns: columns,\n selectionModeInColumn: selectionModeInColumn,\n first: first,\n editingMeta: editingMeta,\n onEditingMetaChange: this.onEditingMetaChange,\n tabIndex: this.props.tabIndex,\n onRowClick: this.props.onRowClick,\n onRowDoubleClick: this.props.onRowDoubleClick,\n onCellClick: this.props.onCellClick,\n selection: this.props.selection,\n onSelectionChange: this.props.onSelectionChange,\n lazy: this.props.lazy,\n paginator: this.props.paginator,\n onCellSelect: this.props.onCellSelect,\n onCellUnselect: this.props.onCellUnselect,\n onRowSelect: this.props.onRowSelect,\n onRowUnselect: this.props.onRowUnselect,\n dragSelection: this.props.dragSelection,\n onContextMenu: this.props.onContextMenu,\n onContextMenuSelectionChange: this.props.onContextMenuSelectionChange,\n metaKeySelection: this.props.metaKeySelection,\n selectionMode: this.props.selectionMode,\n cellSelection: this.props.cellSelection,\n contextMenuSelection: this.props.contextMenuSelection,\n dataKey: this.props.dataKey,\n expandedRows: this.props.expandedRows,\n onRowCollapse: this.props.onRowCollapse,\n onRowExpand: this.props.onRowExpand,\n onRowToggle: this.props.onRowToggle,\n editMode: this.props.editMode,\n editingRows: this.props.editingRows,\n onRowReorder: this.props.onRowReorder,\n scrollable: this.props.scrollable,\n rowGroupMode: this.props.rowGroupMode,\n groupRowsBy: this.props.groupRowsBy,\n expandableRowGroups: this.props.expandableRowGroups,\n loading: this.props.loading,\n emptyMessage: this.props.emptyMessage,\n rowGroupHeaderTemplate: this.props.rowGroupHeaderTemplate,\n rowExpansionTemplate: this.props.rowExpansionTemplate,\n rowGroupFooterTemplate: this.props.rowGroupFooterTemplate,\n onRowEditChange: this.props.onRowEditChange,\n compareSelectionBy: this.props.compareSelectionBy,\n selectOnEdit: this.props.selectOnEdit,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n selectionAutoFocus: this.props.selectionAutoFocus,\n isDataSelectable: this.props.isDataSelectable,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n isVirtualScrollerDisabled: true\n });\n var body = /*#__PURE__*/React.createElement(TableBody, {\n value: this.dataToRender(rows),\n className: className,\n empty: empty,\n frozenRow: false,\n tableProps: this.props,\n tableSelector: tableSelector,\n columns: columns,\n selectionModeInColumn: selectionModeInColumn,\n first: first,\n editingMeta: editingMeta,\n onEditingMetaChange: this.onEditingMetaChange,\n tabIndex: this.props.tabIndex,\n onRowClick: this.props.onRowClick,\n onRowDoubleClick: this.props.onRowDoubleClick,\n onCellClick: this.props.onCellClick,\n selection: this.props.selection,\n onSelectionChange: this.props.onSelectionChange,\n lazy: this.props.lazy,\n paginator: this.props.paginator,\n onCellSelect: this.props.onCellSelect,\n onCellUnselect: this.props.onCellUnselect,\n onRowSelect: this.props.onRowSelect,\n onRowUnselect: this.props.onRowUnselect,\n dragSelection: this.props.dragSelection,\n onContextMenu: this.props.onContextMenu,\n onContextMenuSelectionChange: this.props.onContextMenuSelectionChange,\n metaKeySelection: this.props.metaKeySelection,\n selectionMode: this.props.selectionMode,\n cellSelection: this.props.cellSelection,\n contextMenuSelection: this.props.contextMenuSelection,\n dataKey: this.props.dataKey,\n expandedRows: this.props.expandedRows,\n onRowCollapse: this.props.onRowCollapse,\n onRowExpand: this.props.onRowExpand,\n onRowToggle: this.props.onRowToggle,\n editMode: this.props.editMode,\n editingRows: this.props.editingRows,\n onRowReorder: this.props.onRowReorder,\n scrollable: this.props.scrollable,\n rowGroupMode: this.props.rowGroupMode,\n groupRowsBy: this.props.groupRowsBy,\n expandableRowGroups: this.props.expandableRowGroups,\n loading: this.props.loading,\n emptyMessage: this.props.emptyMessage,\n rowGroupHeaderTemplate: this.props.rowGroupHeaderTemplate,\n rowExpansionTemplate: this.props.rowExpansionTemplate,\n rowGroupFooterTemplate: this.props.rowGroupFooterTemplate,\n onRowEditChange: this.props.onRowEditChange,\n compareSelectionBy: this.props.compareSelectionBy,\n selectOnEdit: this.props.selectOnEdit,\n onRowEditInit: this.props.onRowEditInit,\n rowEditValidator: this.props.rowEditValidator,\n onRowEditSave: this.props.onRowEditSave,\n onRowEditComplete: this.props.onRowEditComplete,\n onRowEditCancel: this.props.onRowEditCancel,\n cellClassName: this.props.cellClassName,\n responsiveLayout: this.props.responsiveLayout,\n selectionAutoFocus: this.props.selectionAutoFocus,\n isDataSelectable: this.props.isDataSelectable,\n showSelectionElement: this.props.showSelectionElement,\n showRowReorderElement: this.props.showRowReorderElement,\n expandedRowIcon: this.props.expandedRowIcon,\n collapsedRowIcon: this.props.collapsedRowIcon,\n rowClassName: this.props.rowClassName,\n virtualScrollerContentRef: contentRef,\n virtualScrollerOptions: options,\n isVirtualScrollerDisabled: isVirtualScrollerDisabled\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, frozenBody, body);\n }\n }, {\n key: \"renderTableFooter\",\n value: function renderTableFooter(options) {\n var columns = options.columns;\n return /*#__PURE__*/React.createElement(TableFooter, {\n tableProps: this.props,\n columns: columns,\n footerColumnGroup: this.props.footerColumnGroup\n });\n }\n }, {\n key: \"renderContent\",\n value: function renderContent(processedData, columns, selectionModeInColumn, empty) {\n var _this17 = this;\n\n if (!columns) return;\n var isVirtualScrollerDisabled = this.isVirtualScrollerDisabled();\n var virtualScrollerOptions = this.props.virtualScrollerOptions || {};\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-wrapper\",\n style: {\n maxHeight: isVirtualScrollerDisabled ? this.props.scrollHeight : null\n }\n }, /*#__PURE__*/React.createElement(VirtualScroller, _extends({}, virtualScrollerOptions, {\n items: processedData,\n columns: columns,\n scrollHeight: this.props.scrollHeight,\n disabled: isVirtualScrollerDisabled,\n loaderDisabled: true,\n showSpacer: false,\n contentTemplate: function contentTemplate(options) {\n var ref = function ref(el) {\n _this17.table = el;\n options.spacerRef && options.spacerRef(el);\n };\n\n var tableClassName = classNames('p-datatable-table', _this17.props.tableClassName);\n\n var tableHeader = _this17.renderTableHeader(options, empty);\n\n var tableBody = _this17.renderTableBody(options, selectionModeInColumn, empty, isVirtualScrollerDisabled);\n\n var tableFooter = _this17.renderTableFooter(options);\n\n return /*#__PURE__*/React.createElement(\"table\", {\n ref: ref,\n style: _this17.props.tableStyle,\n className: tableClassName,\n role: \"table\"\n }, tableHeader, tableBody, tableFooter);\n }\n })));\n }\n }, {\n key: \"renderFooter\",\n value: function renderFooter() {\n if (this.props.footer) {\n var content = ObjectUtils.getJSXElement(this.props.footer, {\n props: this.props\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-datatable-footer\"\n }, content);\n }\n\n return null;\n }\n }, {\n key: \"renderPaginator\",\n value: function renderPaginator(position, totalRecords) {\n var className = classNames('p-paginator-' + position, this.props.paginatorClassName);\n return /*#__PURE__*/React.createElement(Paginator, {\n first: this.getFirst(),\n rows: this.getRows(),\n pageLinkSize: this.props.pageLinkSize,\n className: className,\n onPageChange: this.onPageChange,\n template: this.props.paginatorTemplate,\n totalRecords: totalRecords,\n rowsPerPageOptions: this.props.rowsPerPageOptions,\n currentPageReportTemplate: this.props.currentPageReportTemplate,\n leftContent: this.props.paginatorLeft,\n rightContent: this.props.paginatorRight,\n alwaysShow: this.props.alwaysShowPaginator,\n dropdownAppendTo: this.props.paginatorDropdownAppendTo\n });\n }\n }, {\n key: \"renderPaginatorTop\",\n value: function renderPaginatorTop(totalRecords) {\n if (this.props.paginator && this.props.paginatorPosition !== 'bottom') {\n return this.renderPaginator('top', totalRecords);\n }\n\n return null;\n }\n }, {\n key: \"renderPaginatorBottom\",\n value: function renderPaginatorBottom(totalRecords) {\n if (this.props.paginator && this.props.paginatorPosition !== 'top') {\n return this.renderPaginator('bottom', totalRecords);\n }\n\n return null;\n }\n }, {\n key: \"renderResizeHelper\",\n value: function renderResizeHelper() {\n var _this18 = this;\n\n if (this.props.resizableColumns) {\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this18.resizeHelper = el;\n },\n className: \"p-column-resizer-helper\",\n style: {\n display: 'none'\n }\n });\n }\n\n return null;\n }\n }, {\n key: \"renderReorderIndicators\",\n value: function renderReorderIndicators() {\n var _this19 = this;\n\n if (this.props.reorderableColumns) {\n var style = {\n position: 'absolute',\n display: 'none'\n };\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this19.reorderIndicatorUp = el;\n },\n className: \"pi pi-arrow-down p-datatable-reorder-indicator-up\",\n style: style\n }), /*#__PURE__*/React.createElement(\"span\", {\n ref: function ref(el) {\n return _this19.reorderIndicatorDown = el;\n },\n className: \"pi pi-arrow-up p-datatable-reorder-indicator-down\",\n style: style\n }));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this20 = this;\n\n var processedData = this.processedData();\n var columns = this.getColumns();\n var totalRecords = this.getTotalRecords(processedData);\n var empty = ObjectUtils.isEmpty(processedData);\n var selectionModeInColumn = this.getSelectionModeInColumn(columns);\n var selectable = this.props.selectionMode || selectionModeInColumn;\n var className = classNames('p-datatable p-component', {\n 'p-datatable-hoverable-rows': this.props.rowHover,\n 'p-datatable-selectable': selectable && !this.props.cellSelection,\n 'p-datatable-selectable-cell': selectable && this.props.cellSelection,\n 'p-datatable-auto-layout': this.props.autoLayout,\n 'p-datatable-resizable': this.props.resizableColumns,\n 'p-datatable-resizable-fit': this.props.resizableColumns && this.props.columnResizeMode === 'fit',\n 'p-datatable-scrollable': this.props.scrollable,\n 'p-datatable-scrollable-vertical': this.props.scrollable && this.props.scrollDirection === 'vertical',\n 'p-datatable-scrollable-horizontal': this.props.scrollable && this.props.scrollDirection === 'horizontal',\n 'p-datatable-scrollable-both': this.props.scrollable && this.props.scrollDirection === 'both',\n 'p-datatable-flex-scrollable': this.props.scrollable && this.props.scrollHeight === 'flex',\n 'p-datatable-responsive-stack': this.props.responsiveLayout === 'stack',\n 'p-datatable-responsive-scroll': this.props.responsiveLayout === 'scroll',\n 'p-datatable-striped': this.props.stripedRows,\n 'p-datatable-gridlines': this.props.showGridlines,\n 'p-datatable-grouped-header': this.props.headerColumnGroup != null,\n 'p-datatable-grouped-footer': this.props.footerColumnGroup != null,\n 'p-datatable-sm': this.props.size === 'small',\n 'p-datatable-lg': this.props.size === 'large'\n }, this.props.className);\n var loader = this.renderLoader();\n var header = this.renderHeader();\n var paginatorTop = this.renderPaginatorTop(totalRecords);\n var content = this.renderContent(processedData, columns, selectionModeInColumn, empty);\n var paginatorBottom = this.renderPaginatorBottom(totalRecords);\n var footer = this.renderFooter();\n var resizeHelper = this.renderResizeHelper();\n var reorderIndicators = this.renderReorderIndicators();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this20.el = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style,\n \"data-scrollselectors\": \".p-datatable-wrapper\"\n }, loader, header, paginatorTop, content, paginatorBottom, footer, resizeHelper, reorderIndicators);\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.rows !== prevState.d_rows && !nextProps.onPage) {\n return {\n rows: nextProps.rows,\n d_rows: nextProps.rows\n };\n }\n\n return null;\n }\n }]);\n\n return DataTable;\n}(Component);\n\n_defineProperty(DataTable, \"defaultProps\", {\n id: null,\n value: null,\n header: null,\n footer: null,\n style: null,\n className: null,\n tableStyle: null,\n tableClassName: null,\n paginator: false,\n paginatorPosition: 'bottom',\n alwaysShowPaginator: true,\n paginatorClassName: null,\n paginatorTemplate: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',\n paginatorLeft: null,\n paginatorRight: null,\n paginatorDropdownAppendTo: null,\n pageLinkSize: 5,\n rowsPerPageOptions: null,\n currentPageReportTemplate: '({currentPage} of {totalPages})',\n first: 0,\n rows: null,\n totalRecords: null,\n lazy: false,\n sortField: null,\n sortOrder: null,\n multiSortMeta: null,\n sortMode: 'single',\n defaultSortOrder: 1,\n removableSort: false,\n emptyMessage: null,\n selectionMode: null,\n dragSelection: false,\n cellSelection: false,\n selection: null,\n onSelectionChange: null,\n contextMenuSelection: null,\n onContextMenuSelectionChange: null,\n compareSelectionBy: 'deepEquals',\n dataKey: null,\n metaKeySelection: true,\n selectOnEdit: true,\n selectionPageOnly: false,\n selectionAutoFocus: true,\n showSelectAll: true,\n selectAll: false,\n onSelectAllChange: null,\n headerColumnGroup: null,\n footerColumnGroup: null,\n rowExpansionTemplate: null,\n expandedRows: null,\n onRowToggle: null,\n resizableColumns: false,\n columnResizeMode: 'fit',\n reorderableColumns: false,\n filters: null,\n globalFilter: null,\n filterDelay: 300,\n filterLocale: undefined,\n scrollable: false,\n scrollHeight: null,\n scrollDirection: 'vertical',\n virtualScrollerOptions: null,\n frozenWidth: null,\n frozenValue: null,\n csvSeparator: ',',\n exportFilename: 'download',\n rowGroupMode: null,\n autoLayout: false,\n rowClassName: null,\n cellClassName: null,\n rowGroupHeaderTemplate: null,\n rowGroupFooterTemplate: null,\n loading: false,\n loadingIcon: 'pi pi-spinner',\n tabIndex: 0,\n stateKey: null,\n stateStorage: 'session',\n groupRowsBy: null,\n editMode: 'cell',\n editingRows: null,\n expandableRowGroups: false,\n rowHover: false,\n showGridlines: false,\n stripedRows: false,\n size: 'normal',\n responsiveLayout: 'stack',\n breakpoint: '960px',\n filterDisplay: 'menu',\n expandedRowIcon: 'pi pi-chevron-down',\n collapsedRowIcon: 'pi pi-chevron-right',\n onRowEditComplete: null,\n globalFilterFields: null,\n showSelectionElement: null,\n showRowReorderElement: null,\n isDataSelectable: null,\n onColumnResizeEnd: null,\n onColumnResizerClick: null,\n onColumnResizerDoubleClick: null,\n onSort: null,\n onPage: null,\n onFilter: null,\n onAllRowsSelect: null,\n onAllRowsUnselect: null,\n onRowClick: null,\n onRowDoubleClick: null,\n onRowSelect: null,\n onRowUnselect: null,\n onRowExpand: null,\n onRowCollapse: null,\n onContextMenu: null,\n onColReorder: null,\n onCellClick: null,\n onCellSelect: null,\n onCellUnselect: null,\n onRowReorder: null,\n onValueChange: null,\n rowEditValidator: null,\n onRowEditInit: null,\n onRowEditSave: null,\n onRowEditCancel: null,\n onRowEditChange: null,\n exportFunction: null,\n customSaveState: null,\n customRestoreState: null,\n onStateSave: null,\n onStateRestore: null\n});\n\nexport { DataTable };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,SAAT,QAA0B,sBAA1B;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,UAAlC,EAA8CC,WAA9C,EAA2DC,6BAA3D,EAA0FC,iBAA1F,QAA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