1 line
99 KiB
JSON
1 line
99 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { FilterService } from 'primereact/api';\nimport { DomHandler, classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { InputText } from 'primereact/inputtext';\nimport { tip } from 'primereact/tooltip';\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 _arrayLikeToArray$1(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 _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray$1(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 _unsupportedIterableToArray$1(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$1(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$1(o, minLen);\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$1(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 _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 ListBoxItem = /*#__PURE__*/function (_Component) {\n _inherits(ListBoxItem, _Component);\n\n var _super = _createSuper$2(ListBoxItem);\n\n function ListBoxItem(props) {\n var _this;\n\n _classCallCheck(this, ListBoxItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBoxItem, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n option: this.props.option\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n if (this.props.onTouchEnd) {\n this.props.onTouchEnd({\n originalEvent: event,\n option: this.props.option\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n var item = event.currentTarget;\n\n switch (event.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(item);\n\n if (nextItem) {\n nextItem.focus();\n }\n\n event.preventDefault();\n break;\n //up\n\n case 38:\n var prevItem = this.findPrevItem(item);\n\n if (prevItem) {\n prevItem.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n this.onClick(event);\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem, 'p-disabled') || DomHandler.hasClass(nextItem, 'p-listbox-item-group') ? this.findNextItem(nextItem) : nextItem;else return null;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem, 'p-disabled') || DomHandler.hasClass(prevItem, 'p-listbox-item-group') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-listbox-item', {\n 'p-highlight': this.props.selected,\n 'p-disabled': this.props.disabled\n }, this.props.option.className);\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props.option) : this.props.label;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n onClick: this.onClick,\n onTouchEnd: this.onTouchEnd,\n onKeyDown: this.onKeyDown,\n tabIndex: this.props.tabIndex,\n \"aria-label\": this.props.label,\n key: this.props.label,\n role: \"option\",\n \"aria-selected\": this.props.selected\n }, content, /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return ListBoxItem;\n}(Component);\n\n_defineProperty(ListBoxItem, \"defaultProps\", {\n option: null,\n label: null,\n selected: false,\n disabled: false,\n tabIndex: null,\n onClick: null,\n onTouchEnd: null,\n template: null\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 ListBoxHeader = /*#__PURE__*/function (_Component) {\n _inherits(ListBoxHeader, _Component);\n\n var _super = _createSuper$1(ListBoxHeader);\n\n function ListBoxHeader(props) {\n var _this;\n\n _classCallCheck(this, ListBoxHeader);\n\n _this = _super.call(this, props);\n _this.onFilter = _this.onFilter.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBoxHeader, [{\n key: \"onFilter\",\n value: function onFilter(event) {\n if (this.props.onFilter) {\n this.props.onFilter({\n originalEvent: event,\n value: event.target.value\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-listbox-header\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-listbox-filter-container\"\n }, /*#__PURE__*/React.createElement(InputText, {\n type: \"text\",\n value: this.props.filter,\n onChange: this.onFilter,\n className: \"p-listbox-filter\",\n disabled: this.props.disabled,\n placeholder: this.props.filterPlaceholder\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-listbox-filter-icon pi pi-search\"\n })));\n }\n }]);\n\n return ListBoxHeader;\n}(Component);\n\n_defineProperty(ListBoxHeader, \"defaultProps\", {\n filter: null,\n filterPlaceholder: null,\n disabled: false,\n onFilter: null\n});\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\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 _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 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 ListBox = /*#__PURE__*/function (_Component) {\n _inherits(ListBox, _Component);\n\n var _super = _createSuper(ListBox);\n\n function ListBox(props) {\n var _this;\n\n _classCallCheck(this, ListBox);\n\n _this = _super.call(this, props);\n _this.state = {};\n\n if (!_this.props.onFilterValueChange) {\n _this.state.filterValue = '';\n }\n\n _this.onFilter = _this.onFilter.bind(_assertThisInitialized(_this));\n _this.onOptionSelect = _this.onOptionSelect.bind(_assertThisInitialized(_this));\n _this.onOptionTouchEnd = _this.onOptionTouchEnd.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.element,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"getFilterValue\",\n value: function getFilterValue() {\n return (this.props.onFilterValueChange ? this.props.filterValue : this.state.filterValue) || '';\n }\n }, {\n key: \"onOptionSelect\",\n value: function onOptionSelect(event) {\n var option = event.option;\n\n if (this.props.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n if (this.props.multiple) this.onOptionSelectMultiple(event.originalEvent, option);else this.onOptionSelectSingle(event.originalEvent, option);\n this.optionTouched = false;\n }\n }, {\n key: \"onOptionTouchEnd\",\n value: function onOptionTouchEnd() {\n if (this.props.disabled) {\n return;\n }\n\n this.optionTouched = true;\n }\n }, {\n key: \"onOptionSelectSingle\",\n value: function onOptionSelectSingle(event, option) {\n var selected = this.isSelected(option);\n var valueChanged = false;\n var value = null;\n var metaSelection = this.optionTouched ? false : this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = event.metaKey || event.ctrlKey;\n\n if (selected) {\n if (metaKey) {\n value = null;\n valueChanged = true;\n }\n } else {\n value = this.getOptionValue(option);\n valueChanged = true;\n }\n } else {\n value = selected ? null : this.getOptionValue(option);\n valueChanged = true;\n }\n\n if (valueChanged) {\n this.updateModel(event, value);\n }\n }\n }, {\n key: \"onOptionSelectMultiple\",\n value: function onOptionSelectMultiple(event, option) {\n var selected = this.isSelected(option);\n var valueChanged = false;\n var value = null;\n var metaSelection = this.optionTouched ? false : this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = event.metaKey || event.ctrlKey;\n\n if (selected) {\n if (metaKey) value = this.removeOption(option);else value = [this.getOptionValue(option)];\n valueChanged = true;\n } else {\n value = metaKey ? this.props.value || [] : [];\n value = [].concat(_toConsumableArray(value), [this.getOptionValue(option)]);\n valueChanged = true;\n }\n } else {\n if (selected) value = this.removeOption(option);else value = [].concat(_toConsumableArray(this.props.value || []), [this.getOptionValue(option)]);\n valueChanged = true;\n }\n\n if (valueChanged) {\n this.props.onChange({\n originalEvent: event,\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"onFilter\",\n value: function onFilter(event) {\n var originalEvent = event.originalEvent,\n value = event.value;\n\n if (this.props.onFilterValueChange) {\n this.props.onFilterValueChange({\n originalEvent: originalEvent,\n value: value\n });\n } else {\n this.setState({\n filterValue: value\n });\n }\n }\n }, {\n key: \"updateModel\",\n value: function updateModel(event, value) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"removeOption\",\n value: function removeOption(option) {\n var _this2 = this;\n\n return this.props.value.filter(function (val) {\n return !ObjectUtils.equals(val, _this2.getOptionValue(option), _this2.props.dataKey);\n });\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(option) {\n var selected = false;\n var optionValue = this.getOptionValue(option);\n\n if (this.props.multiple) {\n if (this.props.value) {\n var _iterator = _createForOfIteratorHelper(this.props.value),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var val = _step.value;\n\n if (ObjectUtils.equals(val, optionValue, this.props.dataKey)) {\n selected = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n selected = ObjectUtils.equals(this.props.value, optionValue, this.props.dataKey);\n }\n\n return selected;\n }\n }, {\n key: \"filter\",\n value: function filter(option) {\n var filterValue = this.getFilterValue().trim().toLocaleLowerCase(this.props.filterLocale);\n var optionLabel = this.getOptionLabel(option).toLocaleLowerCase(this.props.filterLocale);\n return optionLabel.indexOf(filterValue) > -1;\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n var filter = this.getFilterValue();\n return filter && filter.trim().length > 0;\n }\n }, {\n key: \"getOptionLabel\",\n value: function getOptionLabel(option) {\n return this.props.optionLabel ? ObjectUtils.resolveFieldData(option, this.props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;\n }\n }, {\n key: \"getOptionValue\",\n value: function getOptionValue(option) {\n return this.props.optionValue ? ObjectUtils.resolveFieldData(option, this.props.optionValue) : option && option['value'] !== undefined ? option['value'] : option;\n }\n }, {\n key: \"getOptionRenderKey\",\n value: function getOptionRenderKey(option) {\n return this.props.dataKey ? ObjectUtils.resolveFieldData(option, this.props.dataKey) : this.getOptionLabel(option);\n }\n }, {\n key: \"isOptionDisabled\",\n value: function isOptionDisabled(option) {\n if (this.props.optionDisabled) {\n return ObjectUtils.isFunction(this.props.optionDisabled) ? this.props.optionDisabled(option) : ObjectUtils.resolveFieldData(option, this.props.optionDisabled);\n }\n\n return option && option['disabled'] !== undefined ? option['disabled'] : false;\n }\n }, {\n key: \"getOptionGroupRenderKey\",\n value: function getOptionGroupRenderKey(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);\n }\n }, {\n key: \"getOptionGroupLabel\",\n value: function getOptionGroupLabel(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);\n }\n }, {\n key: \"getOptionGroupChildren\",\n value: function getOptionGroupChildren(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupChildren);\n }\n }, {\n key: \"getVisibleOptions\",\n value: function getVisibleOptions() {\n if (this.hasFilter()) {\n var filterValue = this.getFilterValue().trim().toLocaleLowerCase(this.props.filterLocale);\n var searchFields = this.props.filterBy ? this.props.filterBy.split(',') : [this.props.optionLabel || 'label'];\n\n if (this.props.optionGroupLabel) {\n var filteredGroups = [];\n\n var _iterator2 = _createForOfIteratorHelper(this.props.options),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var optgroup = _step2.value;\n var filteredSubOptions = FilterService.filter(this.getOptionGroupChildren(optgroup), searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);\n\n if (filteredSubOptions && filteredSubOptions.length) {\n filteredGroups.push(_objectSpread(_objectSpread({}, optgroup), {\n items: filteredSubOptions\n }));\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return filteredGroups;\n } else {\n return FilterService.filter(this.props.options, searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);\n }\n } else {\n return this.props.options;\n }\n }\n }, {\n key: \"renderGroupChildren\",\n value: function renderGroupChildren(optionGroup) {\n var _this3 = this;\n\n var groupChildren = this.getOptionGroupChildren(optionGroup);\n return groupChildren.map(function (option, j) {\n var optionLabel = _this3.getOptionLabel(option);\n\n var optionKey = j + '_' + _this3.getOptionRenderKey(option);\n\n var disabled = _this3.isOptionDisabled(option);\n\n var tabIndex = disabled ? null : _this3.props.tabIndex || 0;\n return /*#__PURE__*/React.createElement(ListBoxItem, {\n key: optionKey,\n label: optionLabel,\n option: option,\n template: _this3.props.itemTemplate,\n selected: _this3.isSelected(option),\n onClick: _this3.onOptionSelect,\n onTouchEnd: _this3.onOptionTouchEnd,\n tabIndex: tabIndex,\n disabled: disabled\n });\n });\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(option, index) {\n if (this.props.optionGroupLabel) {\n var groupContent = this.props.optionGroupTemplate ? ObjectUtils.getJSXElement(this.props.optionGroupTemplate, option, index) : this.getOptionGroupLabel(option);\n var groupChildrenContent = this.renderGroupChildren(option);\n var key = index + '_' + this.getOptionGroupRenderKey(option);\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-listbox-item-group\"\n }, groupContent), groupChildrenContent);\n } else {\n var optionLabel = this.getOptionLabel(option);\n var optionKey = index + '_' + this.getOptionRenderKey(option);\n var disabled = this.isOptionDisabled(option);\n var tabIndex = disabled ? null : this.props.tabIndex || 0;\n return /*#__PURE__*/React.createElement(ListBoxItem, {\n key: optionKey,\n label: optionLabel,\n option: option,\n template: this.props.itemTemplate,\n selected: this.isSelected(option),\n onClick: this.onOptionSelect,\n onTouchEnd: this.onOptionTouchEnd,\n tabIndex: tabIndex,\n disabled: disabled\n });\n }\n }\n }, {\n key: \"renderItems\",\n value: function renderItems(visibleOptions) {\n var _this4 = this;\n\n if (visibleOptions && visibleOptions.length) {\n return visibleOptions.map(function (option, index) {\n return _this4.renderItem(option, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderList\",\n value: function renderList(visibleOptions) {\n var _this5 = this;\n\n if (this.props.virtualScrollerOptions) {\n var virtualScrollerProps = _objectSpread(_objectSpread({}, this.props.virtualScrollerOptions), {\n items: visibleOptions,\n onLazyLoad: function onLazyLoad(event) {\n return _this5.props.virtualScrollerOptions.onLazyLoad(_objectSpread(_objectSpread({}, event), {\n filter: _this5.getFilterValue()\n }));\n },\n itemTemplate: function itemTemplate(item, options) {\n return item && _this5.renderItem(item, options.index);\n },\n contentTemplate: function contentTemplate(options) {\n var className = classNames('p-listbox-list', options.className);\n return /*#__PURE__*/React.createElement(\"ul\", {\n ref: options.contentRef,\n className: className,\n role: \"listbox\",\n \"aria-multiselectable\": _this5.props.multiple\n }, options.children);\n }\n });\n\n return /*#__PURE__*/React.createElement(VirtualScroller, _extends({\n ref: function ref(el) {\n return _this5.virtualScrollerRef = el;\n }\n }, virtualScrollerProps));\n } else {\n var items = this.renderItems(visibleOptions);\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-listbox-list\",\n role: \"listbox\",\n \"aria-multiselectable\": this.props.multiple\n }, items);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames('p-listbox p-component', {\n 'p-disabled': this.props.disabled\n }, this.props.className);\n var listClassName = classNames('p-listbox-list-wrapper', this.props.listClassName);\n var visibleOptions = this.getVisibleOptions();\n var list = this.renderList(visibleOptions);\n var header;\n\n if (this.props.filter) {\n header = /*#__PURE__*/React.createElement(ListBoxHeader, {\n filter: this.getFilterValue(),\n onFilter: this.onFilter,\n disabled: this.props.disabled,\n filterPlaceholder: this.props.filterPlaceholder\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, header, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.wrapper = el;\n },\n className: listClassName,\n style: this.props.listStyle\n }, list));\n }\n }]);\n\n return ListBox;\n}(Component);\n\n_defineProperty(ListBox, \"defaultProps\", {\n id: null,\n value: null,\n options: null,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n optionGroupLabel: null,\n optionGroupChildren: null,\n optionGroupTemplate: null,\n itemTemplate: null,\n style: null,\n listStyle: null,\n listClassName: null,\n className: null,\n virtualScrollerOptions: null,\n disabled: null,\n dataKey: null,\n multiple: false,\n metaKeySelection: false,\n filter: false,\n filterBy: null,\n filterValue: null,\n filterMatchMode: 'contains',\n filterPlaceholder: null,\n filterLocale: undefined,\n tabIndex: 0,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n onChange: null,\n onFilterValueChange: null\n});\n\nexport { ListBox };","map":{"version":3,"names":["React","Component","FilterService","DomHandler","classNames","ObjectUtils","Ripple","InputText","tip","VirtualScroller","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_arrayLikeToArray$1","arr","len","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray$1","o","minLen","n","toString","slice","constructor","name","test","_nonIterableSpread","TypeError","_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","value","_typeof","obj","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper$2","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$2","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","ListBoxItem","_Component","_super","_this","onClick","bind","onTouchEnd","onKeyDown","event","originalEvent","option","preventDefault","item","currentTarget","which","nextItem","findNextItem","focus","prevItem","findPrevItem","nextElementSibling","hasClass","previousElementSibling","render","className","selected","disabled","content","template","getJSXElement","label","createElement","tabIndex","role","_createSuper$1","_isNativeReflectConstruct$1","ListBoxHeader","onFilter","type","filter","onChange","placeholder","filterPlaceholder","_createForOfIteratorHelper","allowArrayLike","it","_unsupportedIterableToArray","F","s","done","_e","f","normalCompletion","didErr","err","step","next","_e2","_arrayLikeToArray","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","_isNativeReflectConstruct","ListBox","state","onFilterValueChange","filterValue","onOptionSelect","onOptionTouchEnd","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","componentWillUnmount","destroy","element","options","getFilterValue","isOptionDisabled","multiple","onOptionSelectMultiple","onOptionSelectSingle","optionTouched","isSelected","valueChanged","metaSelection","metaKeySelection","metaKey","ctrlKey","getOptionValue","updateModel","removeOption","concat","stopPropagation","id","setState","_this2","val","equals","dataKey","optionValue","_iterator","_step","trim","toLocaleLowerCase","filterLocale","optionLabel","getOptionLabel","indexOf","hasFilter","resolveFieldData","undefined","getOptionRenderKey","optionDisabled","isFunction","getOptionGroupRenderKey","optionGroup","optionGroupLabel","getOptionGroupLabel","getOptionGroupChildren","optionGroupChildren","getVisibleOptions","searchFields","filterBy","split","filteredGroups","_iterator2","_step2","optgroup","filteredSubOptions","filterMatchMode","items","renderGroupChildren","_this3","groupChildren","map","j","optionKey","itemTemplate","renderItem","index","groupContent","optionGroupTemplate","groupChildrenContent","Fragment","renderItems","visibleOptions","_this4","renderList","_this5","virtualScrollerOptions","virtualScrollerProps","onLazyLoad","contentTemplate","ref","contentRef","children","el","virtualScrollerRef","_this6","listClassName","list","header","style","wrapper","listStyle","ariaLabelledBy"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/listbox/listbox.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { FilterService } from 'primereact/api';\nimport { DomHandler, classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { InputText } from 'primereact/inputtext';\nimport { tip } from 'primereact/tooltip';\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 _arrayLikeToArray$1(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 _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray$1(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 _unsupportedIterableToArray$1(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$1(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$1(o, minLen);\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$1(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 _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 ListBoxItem = /*#__PURE__*/function (_Component) {\n _inherits(ListBoxItem, _Component);\n\n var _super = _createSuper$2(ListBoxItem);\n\n function ListBoxItem(props) {\n var _this;\n\n _classCallCheck(this, ListBoxItem);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onTouchEnd = _this.onTouchEnd.bind(_assertThisInitialized(_this));\n _this.onKeyDown = _this.onKeyDown.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBoxItem, [{\n key: \"onClick\",\n value: function onClick(event) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n option: this.props.option\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onTouchEnd\",\n value: function onTouchEnd(event) {\n if (this.props.onTouchEnd) {\n this.props.onTouchEnd({\n originalEvent: event,\n option: this.props.option\n });\n }\n }\n }, {\n key: \"onKeyDown\",\n value: function onKeyDown(event) {\n var item = event.currentTarget;\n\n switch (event.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(item);\n\n if (nextItem) {\n nextItem.focus();\n }\n\n event.preventDefault();\n break;\n //up\n\n case 38:\n var prevItem = this.findPrevItem(item);\n\n if (prevItem) {\n prevItem.focus();\n }\n\n event.preventDefault();\n break;\n //enter\n\n case 13:\n this.onClick(event);\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem, 'p-disabled') || DomHandler.hasClass(nextItem, 'p-listbox-item-group') ? this.findNextItem(nextItem) : nextItem;else return null;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem, 'p-disabled') || DomHandler.hasClass(prevItem, 'p-listbox-item-group') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-listbox-item', {\n 'p-highlight': this.props.selected,\n 'p-disabled': this.props.disabled\n }, this.props.option.className);\n var content = this.props.template ? ObjectUtils.getJSXElement(this.props.template, this.props.option) : this.props.label;\n return /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n onClick: this.onClick,\n onTouchEnd: this.onTouchEnd,\n onKeyDown: this.onKeyDown,\n tabIndex: this.props.tabIndex,\n \"aria-label\": this.props.label,\n key: this.props.label,\n role: \"option\",\n \"aria-selected\": this.props.selected\n }, content, /*#__PURE__*/React.createElement(Ripple, null));\n }\n }]);\n\n return ListBoxItem;\n}(Component);\n\n_defineProperty(ListBoxItem, \"defaultProps\", {\n option: null,\n label: null,\n selected: false,\n disabled: false,\n tabIndex: null,\n onClick: null,\n onTouchEnd: null,\n template: null\n});\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 ListBoxHeader = /*#__PURE__*/function (_Component) {\n _inherits(ListBoxHeader, _Component);\n\n var _super = _createSuper$1(ListBoxHeader);\n\n function ListBoxHeader(props) {\n var _this;\n\n _classCallCheck(this, ListBoxHeader);\n\n _this = _super.call(this, props);\n _this.onFilter = _this.onFilter.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBoxHeader, [{\n key: \"onFilter\",\n value: function onFilter(event) {\n if (this.props.onFilter) {\n this.props.onFilter({\n originalEvent: event,\n value: event.target.value\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-listbox-header\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-listbox-filter-container\"\n }, /*#__PURE__*/React.createElement(InputText, {\n type: \"text\",\n value: this.props.filter,\n onChange: this.onFilter,\n className: \"p-listbox-filter\",\n disabled: this.props.disabled,\n placeholder: this.props.filterPlaceholder\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-listbox-filter-icon pi pi-search\"\n })));\n }\n }]);\n\n return ListBoxHeader;\n}(Component);\n\n_defineProperty(ListBoxHeader, \"defaultProps\", {\n filter: null,\n filterPlaceholder: null,\n disabled: false,\n onFilter: null\n});\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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 ListBox = /*#__PURE__*/function (_Component) {\n _inherits(ListBox, _Component);\n\n var _super = _createSuper(ListBox);\n\n function ListBox(props) {\n var _this;\n\n _classCallCheck(this, ListBox);\n\n _this = _super.call(this, props);\n _this.state = {};\n\n if (!_this.props.onFilterValueChange) {\n _this.state.filterValue = '';\n }\n\n _this.onFilter = _this.onFilter.bind(_assertThisInitialized(_this));\n _this.onOptionSelect = _this.onOptionSelect.bind(_assertThisInitialized(_this));\n _this.onOptionTouchEnd = _this.onOptionTouchEnd.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(ListBox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.element,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"getFilterValue\",\n value: function getFilterValue() {\n return (this.props.onFilterValueChange ? this.props.filterValue : this.state.filterValue) || '';\n }\n }, {\n key: \"onOptionSelect\",\n value: function onOptionSelect(event) {\n var option = event.option;\n\n if (this.props.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n if (this.props.multiple) this.onOptionSelectMultiple(event.originalEvent, option);else this.onOptionSelectSingle(event.originalEvent, option);\n this.optionTouched = false;\n }\n }, {\n key: \"onOptionTouchEnd\",\n value: function onOptionTouchEnd() {\n if (this.props.disabled) {\n return;\n }\n\n this.optionTouched = true;\n }\n }, {\n key: \"onOptionSelectSingle\",\n value: function onOptionSelectSingle(event, option) {\n var selected = this.isSelected(option);\n var valueChanged = false;\n var value = null;\n var metaSelection = this.optionTouched ? false : this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = event.metaKey || event.ctrlKey;\n\n if (selected) {\n if (metaKey) {\n value = null;\n valueChanged = true;\n }\n } else {\n value = this.getOptionValue(option);\n valueChanged = true;\n }\n } else {\n value = selected ? null : this.getOptionValue(option);\n valueChanged = true;\n }\n\n if (valueChanged) {\n this.updateModel(event, value);\n }\n }\n }, {\n key: \"onOptionSelectMultiple\",\n value: function onOptionSelectMultiple(event, option) {\n var selected = this.isSelected(option);\n var valueChanged = false;\n var value = null;\n var metaSelection = this.optionTouched ? false : this.props.metaKeySelection;\n\n if (metaSelection) {\n var metaKey = event.metaKey || event.ctrlKey;\n\n if (selected) {\n if (metaKey) value = this.removeOption(option);else value = [this.getOptionValue(option)];\n valueChanged = true;\n } else {\n value = metaKey ? this.props.value || [] : [];\n value = [].concat(_toConsumableArray(value), [this.getOptionValue(option)]);\n valueChanged = true;\n }\n } else {\n if (selected) value = this.removeOption(option);else value = [].concat(_toConsumableArray(this.props.value || []), [this.getOptionValue(option)]);\n valueChanged = true;\n }\n\n if (valueChanged) {\n this.props.onChange({\n originalEvent: event,\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"onFilter\",\n value: function onFilter(event) {\n var originalEvent = event.originalEvent,\n value = event.value;\n\n if (this.props.onFilterValueChange) {\n this.props.onFilterValueChange({\n originalEvent: originalEvent,\n value: value\n });\n } else {\n this.setState({\n filterValue: value\n });\n }\n }\n }, {\n key: \"updateModel\",\n value: function updateModel(event, value) {\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: value,\n stopPropagation: function stopPropagation() {},\n preventDefault: function preventDefault() {},\n target: {\n name: this.props.name,\n id: this.props.id,\n value: value\n }\n });\n }\n }\n }, {\n key: \"removeOption\",\n value: function removeOption(option) {\n var _this2 = this;\n\n return this.props.value.filter(function (val) {\n return !ObjectUtils.equals(val, _this2.getOptionValue(option), _this2.props.dataKey);\n });\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(option) {\n var selected = false;\n var optionValue = this.getOptionValue(option);\n\n if (this.props.multiple) {\n if (this.props.value) {\n var _iterator = _createForOfIteratorHelper(this.props.value),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var val = _step.value;\n\n if (ObjectUtils.equals(val, optionValue, this.props.dataKey)) {\n selected = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n selected = ObjectUtils.equals(this.props.value, optionValue, this.props.dataKey);\n }\n\n return selected;\n }\n }, {\n key: \"filter\",\n value: function filter(option) {\n var filterValue = this.getFilterValue().trim().toLocaleLowerCase(this.props.filterLocale);\n var optionLabel = this.getOptionLabel(option).toLocaleLowerCase(this.props.filterLocale);\n return optionLabel.indexOf(filterValue) > -1;\n }\n }, {\n key: \"hasFilter\",\n value: function hasFilter() {\n var filter = this.getFilterValue();\n return filter && filter.trim().length > 0;\n }\n }, {\n key: \"getOptionLabel\",\n value: function getOptionLabel(option) {\n return this.props.optionLabel ? ObjectUtils.resolveFieldData(option, this.props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;\n }\n }, {\n key: \"getOptionValue\",\n value: function getOptionValue(option) {\n return this.props.optionValue ? ObjectUtils.resolveFieldData(option, this.props.optionValue) : option && option['value'] !== undefined ? option['value'] : option;\n }\n }, {\n key: \"getOptionRenderKey\",\n value: function getOptionRenderKey(option) {\n return this.props.dataKey ? ObjectUtils.resolveFieldData(option, this.props.dataKey) : this.getOptionLabel(option);\n }\n }, {\n key: \"isOptionDisabled\",\n value: function isOptionDisabled(option) {\n if (this.props.optionDisabled) {\n return ObjectUtils.isFunction(this.props.optionDisabled) ? this.props.optionDisabled(option) : ObjectUtils.resolveFieldData(option, this.props.optionDisabled);\n }\n\n return option && option['disabled'] !== undefined ? option['disabled'] : false;\n }\n }, {\n key: \"getOptionGroupRenderKey\",\n value: function getOptionGroupRenderKey(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);\n }\n }, {\n key: \"getOptionGroupLabel\",\n value: function getOptionGroupLabel(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);\n }\n }, {\n key: \"getOptionGroupChildren\",\n value: function getOptionGroupChildren(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupChildren);\n }\n }, {\n key: \"getVisibleOptions\",\n value: function getVisibleOptions() {\n if (this.hasFilter()) {\n var filterValue = this.getFilterValue().trim().toLocaleLowerCase(this.props.filterLocale);\n var searchFields = this.props.filterBy ? this.props.filterBy.split(',') : [this.props.optionLabel || 'label'];\n\n if (this.props.optionGroupLabel) {\n var filteredGroups = [];\n\n var _iterator2 = _createForOfIteratorHelper(this.props.options),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var optgroup = _step2.value;\n var filteredSubOptions = FilterService.filter(this.getOptionGroupChildren(optgroup), searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);\n\n if (filteredSubOptions && filteredSubOptions.length) {\n filteredGroups.push(_objectSpread(_objectSpread({}, optgroup), {\n items: filteredSubOptions\n }));\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return filteredGroups;\n } else {\n return FilterService.filter(this.props.options, searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);\n }\n } else {\n return this.props.options;\n }\n }\n }, {\n key: \"renderGroupChildren\",\n value: function renderGroupChildren(optionGroup) {\n var _this3 = this;\n\n var groupChildren = this.getOptionGroupChildren(optionGroup);\n return groupChildren.map(function (option, j) {\n var optionLabel = _this3.getOptionLabel(option);\n\n var optionKey = j + '_' + _this3.getOptionRenderKey(option);\n\n var disabled = _this3.isOptionDisabled(option);\n\n var tabIndex = disabled ? null : _this3.props.tabIndex || 0;\n return /*#__PURE__*/React.createElement(ListBoxItem, {\n key: optionKey,\n label: optionLabel,\n option: option,\n template: _this3.props.itemTemplate,\n selected: _this3.isSelected(option),\n onClick: _this3.onOptionSelect,\n onTouchEnd: _this3.onOptionTouchEnd,\n tabIndex: tabIndex,\n disabled: disabled\n });\n });\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(option, index) {\n if (this.props.optionGroupLabel) {\n var groupContent = this.props.optionGroupTemplate ? ObjectUtils.getJSXElement(this.props.optionGroupTemplate, option, index) : this.getOptionGroupLabel(option);\n var groupChildrenContent = this.renderGroupChildren(option);\n var key = index + '_' + this.getOptionGroupRenderKey(option);\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: \"p-listbox-item-group\"\n }, groupContent), groupChildrenContent);\n } else {\n var optionLabel = this.getOptionLabel(option);\n var optionKey = index + '_' + this.getOptionRenderKey(option);\n var disabled = this.isOptionDisabled(option);\n var tabIndex = disabled ? null : this.props.tabIndex || 0;\n return /*#__PURE__*/React.createElement(ListBoxItem, {\n key: optionKey,\n label: optionLabel,\n option: option,\n template: this.props.itemTemplate,\n selected: this.isSelected(option),\n onClick: this.onOptionSelect,\n onTouchEnd: this.onOptionTouchEnd,\n tabIndex: tabIndex,\n disabled: disabled\n });\n }\n }\n }, {\n key: \"renderItems\",\n value: function renderItems(visibleOptions) {\n var _this4 = this;\n\n if (visibleOptions && visibleOptions.length) {\n return visibleOptions.map(function (option, index) {\n return _this4.renderItem(option, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderList\",\n value: function renderList(visibleOptions) {\n var _this5 = this;\n\n if (this.props.virtualScrollerOptions) {\n var virtualScrollerProps = _objectSpread(_objectSpread({}, this.props.virtualScrollerOptions), {\n items: visibleOptions,\n onLazyLoad: function onLazyLoad(event) {\n return _this5.props.virtualScrollerOptions.onLazyLoad(_objectSpread(_objectSpread({}, event), {\n filter: _this5.getFilterValue()\n }));\n },\n itemTemplate: function itemTemplate(item, options) {\n return item && _this5.renderItem(item, options.index);\n },\n contentTemplate: function contentTemplate(options) {\n var className = classNames('p-listbox-list', options.className);\n return /*#__PURE__*/React.createElement(\"ul\", {\n ref: options.contentRef,\n className: className,\n role: \"listbox\",\n \"aria-multiselectable\": _this5.props.multiple\n }, options.children);\n }\n });\n\n return /*#__PURE__*/React.createElement(VirtualScroller, _extends({\n ref: function ref(el) {\n return _this5.virtualScrollerRef = el;\n }\n }, virtualScrollerProps));\n } else {\n var items = this.renderItems(visibleOptions);\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-listbox-list\",\n role: \"listbox\",\n \"aria-multiselectable\": this.props.multiple\n }, items);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this6 = this;\n\n var className = classNames('p-listbox p-component', {\n 'p-disabled': this.props.disabled\n }, this.props.className);\n var listClassName = classNames('p-listbox-list-wrapper', this.props.listClassName);\n var visibleOptions = this.getVisibleOptions();\n var list = this.renderList(visibleOptions);\n var header;\n\n if (this.props.filter) {\n header = /*#__PURE__*/React.createElement(ListBoxHeader, {\n filter: this.getFilterValue(),\n onFilter: this.onFilter,\n disabled: this.props.disabled,\n filterPlaceholder: this.props.filterPlaceholder\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, header, /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this6.wrapper = el;\n },\n className: listClassName,\n style: this.props.listStyle\n }, list));\n }\n }]);\n\n return ListBox;\n}(Component);\n\n_defineProperty(ListBox, \"defaultProps\", {\n id: null,\n value: null,\n options: null,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n optionGroupLabel: null,\n optionGroupChildren: null,\n optionGroupTemplate: null,\n itemTemplate: null,\n style: null,\n listStyle: null,\n listClassName: null,\n className: null,\n virtualScrollerOptions: null,\n disabled: null,\n dataKey: null,\n multiple: false,\n metaKeySelection: false,\n filter: false,\n filterBy: null,\n filterValue: null,\n filterMatchMode: 'contains',\n filterPlaceholder: null,\n filterLocale: undefined,\n tabIndex: 0,\n tooltip: null,\n tooltipOptions: null,\n ariaLabelledBy: null,\n onChange: null,\n onFilterValueChange: null\n});\n\nexport { ListBox };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,aAAT,QAA8B,gBAA9B;AACA,SAASC,UAAT,EAAqBC,UAArB,EAAiCC,WAAjC,QAAoD,kBAApD;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,SAAT,QAA0B,sBAA1B;AACA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,eAAT,QAAgC,4BAAhC;;AAEA,SAASC,QAAT,GAAoB;EAClB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