1 line
55 KiB
JSON
1 line
55 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { DomHandler, classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\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(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 MegaMenu = /*#__PURE__*/function (_Component) {\n _inherits(MegaMenu, _Component);\n\n var _super = _createSuper(MegaMenu);\n\n function MegaMenu(props) {\n var _this;\n\n _classCallCheck(this, MegaMenu);\n\n _this = _super.call(this, props);\n _this.state = {\n activeItem: null\n };\n _this.onLeafClick = _this.onLeafClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(MegaMenu, [{\n key: \"onLeafClick\",\n value: function onLeafClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.setState({\n activeItem: null\n });\n }\n }, {\n key: \"onCategoryMouseEnter\",\n value: function onCategoryMouseEnter(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (this.state.activeItem) {\n this.setState({\n activeItem: item\n });\n }\n }\n }, {\n key: \"onCategoryClick\",\n value: function onCategoryClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: this.props.item\n });\n }\n\n if (item.items) {\n if (this.state.activeItem && this.state.activeItem === item) {\n this.setState({\n activeItem: null\n });\n } else {\n this.setState({\n activeItem: item\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onCategoryKeyDown\",\n value: function onCategoryKeyDown(event, item) {\n var listItem = event.currentTarget.parentElement;\n\n switch (event.which) {\n //down\n case 40:\n if (this.isHorizontal()) this.expandMenu(item);else this.navigateToNextItem(listItem);\n event.preventDefault();\n break;\n //up\n\n case 38:\n if (this.isVertical()) this.navigateToPrevItem(listItem);else if (item.items && item === this.state.activeItem) this.collapseMenu();\n event.preventDefault();\n break;\n //right\n\n case 39:\n if (this.isHorizontal()) this.navigateToNextItem(listItem);else this.expandMenu(item);\n event.preventDefault();\n break;\n //left\n\n case 37:\n if (this.isHorizontal()) this.navigateToPrevItem(listItem);else if (item.items && item === this.state.activeItem) this.collapseMenu();\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"expandMenu\",\n value: function expandMenu(item) {\n if (item.items) {\n this.setState({\n activeItem: item\n });\n }\n }\n }, {\n key: \"collapseMenu\",\n value: function collapseMenu(item) {\n this.setState({\n activeItem: null\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-menuitem') ? 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-menuitem') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"navigateToNextItem\",\n value: function navigateToNextItem(listItem) {\n var nextItem = this.findNextItem(listItem);\n\n if (nextItem) {\n nextItem.children[0].focus();\n }\n }\n }, {\n key: \"navigateToPrevItem\",\n value: function navigateToPrevItem(listItem) {\n var prevItem = this.findPrevItem(listItem);\n\n if (prevItem) {\n prevItem.children[0].focus();\n }\n }\n }, {\n key: \"isHorizontal\",\n value: function isHorizontal() {\n return this.props.orientation === 'horizontal';\n }\n }, {\n key: \"isVertical\",\n value: function isVertical() {\n return this.props.orientation === 'vertical';\n }\n }, {\n key: \"getColumnClassName\",\n value: function getColumnClassName(category) {\n var length = category.items ? category.items.length : 0;\n var columnClass;\n\n switch (length) {\n case 2:\n columnClass = 'p-megamenu-col-6';\n break;\n\n case 3:\n columnClass = 'p-megamenu-col-4';\n break;\n\n case 4:\n columnClass = 'p-megamenu-col-3';\n break;\n\n case 6:\n columnClass = 'p-megamenu-col-2';\n break;\n\n default:\n columnClass = 'p-megamenu-col-12';\n break;\n }\n\n return columnClass;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.container && !_this2.container.contains(event.target)) {\n _this2.setState({\n activeItem: null\n });\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator(index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: 'separator_' + index,\n className: \"p-menu-separator\",\n role: \"separator\"\n });\n }\n }, {\n key: \"renderSubmenuIcon\",\n value: function renderSubmenuIcon(item) {\n if (item.items) {\n var className = classNames('p-submenu-icon pi', {\n 'pi-angle-down': this.isHorizontal(),\n 'pi-angle-right': this.isVertical()\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderSubmenuItem\",\n value: function renderSubmenuItem(item, index) {\n var _this3 = this;\n\n if (item.separator) {\n return this.renderSeparator(index);\n } else {\n var className = classNames('p-menuitem', item.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': item.disabled\n });\n var iconClassName = classNames(item.icon, 'p-menuitem-icon');\n var icon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: linkClassName,\n target: item.target,\n onClick: function onClick(event) {\n return _this3.onLeafClick(event, item);\n },\n role: \"menuitem\",\n \"aria-disabled\": item.disabled\n }, icon, label, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this3.onLeafClick(event, item);\n },\n className: linkClassName,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"none\"\n }, content);\n }\n }\n }, {\n key: \"renderSubmenu\",\n value: function renderSubmenu(submenu) {\n var _this4 = this;\n\n var className = classNames('p-megamenu-submenu-header', {\n 'p-disabled': submenu.disabled\n }, submenu.className);\n var items = submenu.items.map(function (item, index) {\n return _this4.renderSubmenuItem(item, index);\n });\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: submenu.label\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n style: submenu.style,\n role: \"presentation\",\n \"aria-disabled\": submenu.disabled\n }, submenu.label), items);\n }\n }, {\n key: \"renderSubmenus\",\n value: function renderSubmenus(column) {\n var _this5 = this;\n\n return column.map(function (submenu, index) {\n return _this5.renderSubmenu(submenu, index);\n });\n }\n }, {\n key: \"renderColumn\",\n value: function renderColumn(category, column, index, columnClassName) {\n var submenus = this.renderSubmenus(column);\n return /*#__PURE__*/React.createElement(\"div\", {\n key: category.label + '_column_' + index,\n className: columnClassName\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-megamenu-submenu\",\n role: \"menu\"\n }, submenus));\n }\n }, {\n key: \"renderColumns\",\n value: function renderColumns(category) {\n var _this6 = this;\n\n if (category.items) {\n var columnClassName = this.getColumnClassName(category);\n return category.items.map(function (column, index) {\n return _this6.renderColumn(category, column, index, columnClassName);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderCategoryPanel\",\n value: function renderCategoryPanel(category) {\n if (category.items) {\n var columns = this.renderColumns(category);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-panel\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-grid\"\n }, columns));\n }\n\n return null;\n }\n }, {\n key: \"renderCategory\",\n value: function renderCategory(category, index) {\n var _this7 = this;\n\n var className = classNames('p-menuitem', {\n 'p-menuitem-active': category === this.state.activeItem\n }, category.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': category.disabled\n });\n var iconClassName = classNames('p-menuitem-icon', category.icon);\n var icon = category.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = category.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, category.label);\n var itemContent = category.template ? ObjectUtils.getJSXElement(category.template, category) : null;\n var submenuIcon = this.renderSubmenuIcon(category);\n var panel = this.renderCategoryPanel(category);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: category.label + '_' + index,\n className: className,\n style: category.style,\n onMouseEnter: function onMouseEnter(e) {\n return _this7.onCategoryMouseEnter(e, category);\n },\n role: \"none\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: category.url || '#',\n className: linkClassName,\n target: category.target,\n onClick: function onClick(e) {\n return _this7.onCategoryClick(e, category);\n },\n onKeyDown: function onKeyDown(e) {\n return _this7.onCategoryKeyDown(e, category);\n },\n role: \"menuitem\",\n \"aria-haspopup\": category.items != null\n }, icon, label, itemContent, submenuIcon, /*#__PURE__*/React.createElement(Ripple, null)), panel);\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this8 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this8.renderCategory(item, index, true);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderCustomContent\",\n value: function renderCustomContent() {\n if (this.props.children) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-custom\"\n }, this.props.children);\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this9 = this;\n\n var className = classNames('p-megamenu p-component', {\n 'p-megamenu-horizontal': this.props.orientation === 'horizontal',\n 'p-megamenu-vertical': this.props.orientation === 'vertical'\n }, this.props.className);\n var menu = this.renderMenu();\n var customContent = this.renderCustomContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this9.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-megamenu-root-list\",\n role: \"menubar\"\n }, menu), customContent);\n }\n }]);\n\n return MegaMenu;\n}(Component);\n\n_defineProperty(MegaMenu, \"defaultProps\", {\n id: null,\n model: null,\n style: null,\n className: null,\n orientation: 'horizontal'\n});\n\nexport { MegaMenu };","map":{"version":3,"names":["React","Component","DomHandler","classNames","ObjectUtils","Ripple","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","MegaMenu","_Component","_super","_this","state","activeItem","onLeafClick","bind","event","item","disabled","preventDefault","url","command","originalEvent","setState","onCategoryMouseEnter","onCategoryClick","items","onCategoryKeyDown","listItem","currentTarget","parentElement","which","isHorizontal","expandMenu","navigateToNextItem","isVertical","navigateToPrevItem","collapseMenu","findNextItem","nextItem","nextElementSibling","hasClass","findPrevItem","prevItem","previousElementSibling","children","focus","orientation","getColumnClassName","category","columnClass","componentDidMount","_this2","documentClickListener","container","contains","document","addEventListener","componentWillUnmount","removeEventListener","renderSeparator","index","createElement","className","role","renderSubmenuIcon","renderSubmenuItem","_this3","separator","linkClassName","iconClassName","icon","label","content","href","onClick","template","defaultContentOptions","labelClassName","element","getJSXElement","style","renderSubmenu","submenu","_this4","map","Fragment","renderSubmenus","column","_this5","renderColumn","columnClassName","submenus","renderColumns","_this6","renderCategoryPanel","columns","renderCategory","_this7","itemContent","submenuIcon","panel","onMouseEnter","onKeyDown","renderMenu","_this8","model","renderCustomContent","render","_this9","menu","customContent","ref","el","id"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/megamenu/megamenu.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { DomHandler, classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\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(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 MegaMenu = /*#__PURE__*/function (_Component) {\n _inherits(MegaMenu, _Component);\n\n var _super = _createSuper(MegaMenu);\n\n function MegaMenu(props) {\n var _this;\n\n _classCallCheck(this, MegaMenu);\n\n _this = _super.call(this, props);\n _this.state = {\n activeItem: null\n };\n _this.onLeafClick = _this.onLeafClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(MegaMenu, [{\n key: \"onLeafClick\",\n value: function onLeafClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.setState({\n activeItem: null\n });\n }\n }, {\n key: \"onCategoryMouseEnter\",\n value: function onCategoryMouseEnter(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (this.state.activeItem) {\n this.setState({\n activeItem: item\n });\n }\n }\n }, {\n key: \"onCategoryClick\",\n value: function onCategoryClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: this.props.item\n });\n }\n\n if (item.items) {\n if (this.state.activeItem && this.state.activeItem === item) {\n this.setState({\n activeItem: null\n });\n } else {\n this.setState({\n activeItem: item\n });\n }\n }\n\n event.preventDefault();\n }\n }, {\n key: \"onCategoryKeyDown\",\n value: function onCategoryKeyDown(event, item) {\n var listItem = event.currentTarget.parentElement;\n\n switch (event.which) {\n //down\n case 40:\n if (this.isHorizontal()) this.expandMenu(item);else this.navigateToNextItem(listItem);\n event.preventDefault();\n break;\n //up\n\n case 38:\n if (this.isVertical()) this.navigateToPrevItem(listItem);else if (item.items && item === this.state.activeItem) this.collapseMenu();\n event.preventDefault();\n break;\n //right\n\n case 39:\n if (this.isHorizontal()) this.navigateToNextItem(listItem);else this.expandMenu(item);\n event.preventDefault();\n break;\n //left\n\n case 37:\n if (this.isHorizontal()) this.navigateToPrevItem(listItem);else if (item.items && item === this.state.activeItem) this.collapseMenu();\n event.preventDefault();\n break;\n }\n }\n }, {\n key: \"expandMenu\",\n value: function expandMenu(item) {\n if (item.items) {\n this.setState({\n activeItem: item\n });\n }\n }\n }, {\n key: \"collapseMenu\",\n value: function collapseMenu(item) {\n this.setState({\n activeItem: null\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-menuitem') ? 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-menuitem') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"navigateToNextItem\",\n value: function navigateToNextItem(listItem) {\n var nextItem = this.findNextItem(listItem);\n\n if (nextItem) {\n nextItem.children[0].focus();\n }\n }\n }, {\n key: \"navigateToPrevItem\",\n value: function navigateToPrevItem(listItem) {\n var prevItem = this.findPrevItem(listItem);\n\n if (prevItem) {\n prevItem.children[0].focus();\n }\n }\n }, {\n key: \"isHorizontal\",\n value: function isHorizontal() {\n return this.props.orientation === 'horizontal';\n }\n }, {\n key: \"isVertical\",\n value: function isVertical() {\n return this.props.orientation === 'vertical';\n }\n }, {\n key: \"getColumnClassName\",\n value: function getColumnClassName(category) {\n var length = category.items ? category.items.length : 0;\n var columnClass;\n\n switch (length) {\n case 2:\n columnClass = 'p-megamenu-col-6';\n break;\n\n case 3:\n columnClass = 'p-megamenu-col-4';\n break;\n\n case 4:\n columnClass = 'p-megamenu-col-3';\n break;\n\n case 6:\n columnClass = 'p-megamenu-col-2';\n break;\n\n default:\n columnClass = 'p-megamenu-col-12';\n break;\n }\n\n return columnClass;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.documentClickListener) {\n this.documentClickListener = function (event) {\n if (_this2.container && !_this2.container.contains(event.target)) {\n _this2.setState({\n activeItem: null\n });\n }\n };\n\n document.addEventListener('click', this.documentClickListener);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.documentClickListener) {\n document.removeEventListener('click', this.documentClickListener);\n this.documentClickListener = null;\n }\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator(index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: 'separator_' + index,\n className: \"p-menu-separator\",\n role: \"separator\"\n });\n }\n }, {\n key: \"renderSubmenuIcon\",\n value: function renderSubmenuIcon(item) {\n if (item.items) {\n var className = classNames('p-submenu-icon pi', {\n 'pi-angle-down': this.isHorizontal(),\n 'pi-angle-right': this.isVertical()\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n });\n }\n\n return null;\n }\n }, {\n key: \"renderSubmenuItem\",\n value: function renderSubmenuItem(item, index) {\n var _this3 = this;\n\n if (item.separator) {\n return this.renderSeparator(index);\n } else {\n var className = classNames('p-menuitem', item.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': item.disabled\n });\n var iconClassName = classNames(item.icon, 'p-menuitem-icon');\n var icon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: linkClassName,\n target: item.target,\n onClick: function onClick(event) {\n return _this3.onLeafClick(event, item);\n },\n role: \"menuitem\",\n \"aria-disabled\": item.disabled\n }, icon, label, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this3.onLeafClick(event, item);\n },\n className: linkClassName,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"none\"\n }, content);\n }\n }\n }, {\n key: \"renderSubmenu\",\n value: function renderSubmenu(submenu) {\n var _this4 = this;\n\n var className = classNames('p-megamenu-submenu-header', {\n 'p-disabled': submenu.disabled\n }, submenu.className);\n var items = submenu.items.map(function (item, index) {\n return _this4.renderSubmenuItem(item, index);\n });\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: submenu.label\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: className,\n style: submenu.style,\n role: \"presentation\",\n \"aria-disabled\": submenu.disabled\n }, submenu.label), items);\n }\n }, {\n key: \"renderSubmenus\",\n value: function renderSubmenus(column) {\n var _this5 = this;\n\n return column.map(function (submenu, index) {\n return _this5.renderSubmenu(submenu, index);\n });\n }\n }, {\n key: \"renderColumn\",\n value: function renderColumn(category, column, index, columnClassName) {\n var submenus = this.renderSubmenus(column);\n return /*#__PURE__*/React.createElement(\"div\", {\n key: category.label + '_column_' + index,\n className: columnClassName\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-megamenu-submenu\",\n role: \"menu\"\n }, submenus));\n }\n }, {\n key: \"renderColumns\",\n value: function renderColumns(category) {\n var _this6 = this;\n\n if (category.items) {\n var columnClassName = this.getColumnClassName(category);\n return category.items.map(function (column, index) {\n return _this6.renderColumn(category, column, index, columnClassName);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderCategoryPanel\",\n value: function renderCategoryPanel(category) {\n if (category.items) {\n var columns = this.renderColumns(category);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-panel\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-grid\"\n }, columns));\n }\n\n return null;\n }\n }, {\n key: \"renderCategory\",\n value: function renderCategory(category, index) {\n var _this7 = this;\n\n var className = classNames('p-menuitem', {\n 'p-menuitem-active': category === this.state.activeItem\n }, category.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': category.disabled\n });\n var iconClassName = classNames('p-menuitem-icon', category.icon);\n var icon = category.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = category.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, category.label);\n var itemContent = category.template ? ObjectUtils.getJSXElement(category.template, category) : null;\n var submenuIcon = this.renderSubmenuIcon(category);\n var panel = this.renderCategoryPanel(category);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: category.label + '_' + index,\n className: className,\n style: category.style,\n onMouseEnter: function onMouseEnter(e) {\n return _this7.onCategoryMouseEnter(e, category);\n },\n role: \"none\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: category.url || '#',\n className: linkClassName,\n target: category.target,\n onClick: function onClick(e) {\n return _this7.onCategoryClick(e, category);\n },\n onKeyDown: function onKeyDown(e) {\n return _this7.onCategoryKeyDown(e, category);\n },\n role: \"menuitem\",\n \"aria-haspopup\": category.items != null\n }, icon, label, itemContent, submenuIcon, /*#__PURE__*/React.createElement(Ripple, null)), panel);\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this8 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this8.renderCategory(item, index, true);\n });\n }\n\n return null;\n }\n }, {\n key: \"renderCustomContent\",\n value: function renderCustomContent() {\n if (this.props.children) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-megamenu-custom\"\n }, this.props.children);\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this9 = this;\n\n var className = classNames('p-megamenu p-component', {\n 'p-megamenu-horizontal': this.props.orientation === 'horizontal',\n 'p-megamenu-vertical': this.props.orientation === 'vertical'\n }, this.props.className);\n var menu = this.renderMenu();\n var customContent = this.renderCustomContent();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this9.container = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"p-megamenu-root-list\",\n role: \"menubar\"\n }, menu), customContent);\n }\n }]);\n\n return MegaMenu;\n}(Component);\n\n_defineProperty(MegaMenu, \"defaultProps\", {\n id: null,\n model: null,\n style: null,\n className: null,\n orientation: 'horizontal'\n});\n\nexport { MegaMenu };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,UAArB,EAAiCC,WAAjC,QAAoD,kBAApD;AACA,SAASC,MAAT,QAAuB,mBAAvB;;AAEA,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,WAAnC,EAAgD;EAC9C,IAAI,EAAED,QAAQ,YAAYC,WAAtB,CAAJ,EAAwC;IACtC,MAAM,IAAIC,SAAJ,CAAc,mCAAd,CAAN;EACD;AACF;;AAED,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,KAAnC,EAA0C;EACxC,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGD,KAAK,CAACE,MAA1B,EAAkCD,CAAC,EAAnC,EAAuC;IACrC,IAA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