1 line
29 KiB
JSON
1 line
29 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 _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 _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 _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 TabMenu = /*#__PURE__*/function (_Component) {\n _inherits(TabMenu, _Component);\n\n var _super = _createSuper(TabMenu);\n\n function TabMenu(props) {\n var _this;\n\n _classCallCheck(this, TabMenu);\n\n _this = _super.call(this, props);\n\n if (!_this.props.onTabChange) {\n _this.state = {\n activeIndex: props.activeIndex\n };\n }\n\n return _this;\n }\n\n _createClass(TabMenu, [{\n key: \"itemClick\",\n value: function itemClick(event, item, index) {\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 if (this.props.onTabChange) {\n this.props.onTabChange({\n originalEvent: event,\n value: item,\n index: index\n });\n } else {\n this.setState({\n activeIndex: index\n });\n }\n }\n }, {\n key: \"getActiveIndex\",\n value: function getActiveIndex() {\n return this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex;\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(index) {\n return index === (this.getActiveIndex() || 0);\n }\n }, {\n key: \"updateInkBar\",\n value: function updateInkBar() {\n var activeIndex = this.getActiveIndex();\n var tabHeader = this[\"tab_\".concat(activeIndex)];\n this.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';\n this.inkbar.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.nav).left + 'px';\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInkBar();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.updateInkBar();\n }\n }, {\n key: \"renderMenuItem\",\n value: function renderMenuItem(item, index) {\n var _this2 = this;\n\n var active = this.isSelected(index);\n var className = classNames('p-tabmenuitem', {\n 'p-highlight': active,\n 'p-disabled': item.disabled\n }, item.className);\n var iconClassName = classNames('p-menuitem-icon', item.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: \"p-menuitem-link\",\n target: item.target,\n onClick: function onClick(event) {\n return _this2.itemClick(event, item, index);\n },\n role: \"presentation\"\n }, icon, label, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.itemClick(event, item);\n },\n className: 'p-menuitem-link',\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props,\n active: active,\n index: index\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n ref: function ref(el) {\n return _this2[\"tab_\".concat(index)] = el;\n },\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"tab\",\n \"aria-selected\": active,\n \"aria-expanded\": active,\n \"aria-disabled\": item.disabled\n }, content);\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this3 = this;\n\n return this.props.model.map(function (item, index) {\n return _this3.renderMenuItem(item, index);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n if (this.props.model) {\n var className = classNames('p-tabmenu p-component', this.props.className);\n var items = this.renderItems();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"ul\", {\n ref: function ref(el) {\n return _this4.nav = el;\n },\n className: \"p-tabmenu-nav p-reset\",\n role: \"tablist\"\n }, items, /*#__PURE__*/React.createElement(\"li\", {\n ref: function ref(el) {\n return _this4.inkbar = el;\n },\n className: \"p-tabmenu-ink-bar\"\n })));\n }\n\n return null;\n }\n }]);\n\n return TabMenu;\n}(Component);\n\n_defineProperty(TabMenu, \"defaultProps\", {\n id: null,\n model: null,\n activeIndex: 0,\n style: null,\n className: null,\n onTabChange: null\n});\n\nexport { TabMenu };","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","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","call","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","TabMenu","_Component","_super","_this","onTabChange","state","activeIndex","itemClick","event","item","index","disabled","preventDefault","url","command","originalEvent","setState","getActiveIndex","isSelected","updateInkBar","tabHeader","concat","inkbar","style","width","getWidth","left","getOffset","nav","componentDidMount","componentDidUpdate","renderMenuItem","_this2","active","className","iconClassName","icon","createElement","label","content","href","onClick","role","template","defaultContentOptions","labelClassName","element","getJSXElement","ref","el","renderItems","_this3","model","map","render","_this4","items","id"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/tabmenu/tabmenu.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 _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 _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 _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 TabMenu = /*#__PURE__*/function (_Component) {\n _inherits(TabMenu, _Component);\n\n var _super = _createSuper(TabMenu);\n\n function TabMenu(props) {\n var _this;\n\n _classCallCheck(this, TabMenu);\n\n _this = _super.call(this, props);\n\n if (!_this.props.onTabChange) {\n _this.state = {\n activeIndex: props.activeIndex\n };\n }\n\n return _this;\n }\n\n _createClass(TabMenu, [{\n key: \"itemClick\",\n value: function itemClick(event, item, index) {\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 if (this.props.onTabChange) {\n this.props.onTabChange({\n originalEvent: event,\n value: item,\n index: index\n });\n } else {\n this.setState({\n activeIndex: index\n });\n }\n }\n }, {\n key: \"getActiveIndex\",\n value: function getActiveIndex() {\n return this.props.onTabChange ? this.props.activeIndex : this.state.activeIndex;\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(index) {\n return index === (this.getActiveIndex() || 0);\n }\n }, {\n key: \"updateInkBar\",\n value: function updateInkBar() {\n var activeIndex = this.getActiveIndex();\n var tabHeader = this[\"tab_\".concat(activeIndex)];\n this.inkbar.style.width = DomHandler.getWidth(tabHeader) + 'px';\n this.inkbar.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.nav).left + 'px';\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInkBar();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.updateInkBar();\n }\n }, {\n key: \"renderMenuItem\",\n value: function renderMenuItem(item, index) {\n var _this2 = this;\n\n var active = this.isSelected(index);\n var className = classNames('p-tabmenuitem', {\n 'p-highlight': active,\n 'p-disabled': item.disabled\n }, item.className);\n var iconClassName = classNames('p-menuitem-icon', item.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: \"p-menuitem-link\",\n target: item.target,\n onClick: function onClick(event) {\n return _this2.itemClick(event, item, index);\n },\n role: \"presentation\"\n }, icon, label, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.itemClick(event, item);\n },\n className: 'p-menuitem-link',\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n element: content,\n props: this.props,\n active: active,\n index: index\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n ref: function ref(el) {\n return _this2[\"tab_\".concat(index)] = el;\n },\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"tab\",\n \"aria-selected\": active,\n \"aria-expanded\": active,\n \"aria-disabled\": item.disabled\n }, content);\n }\n }, {\n key: \"renderItems\",\n value: function renderItems() {\n var _this3 = this;\n\n return this.props.model.map(function (item, index) {\n return _this3.renderMenuItem(item, index);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this4 = this;\n\n if (this.props.model) {\n var className = classNames('p-tabmenu p-component', this.props.className);\n var items = this.renderItems();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(\"ul\", {\n ref: function ref(el) {\n return _this4.nav = el;\n },\n className: \"p-tabmenu-nav p-reset\",\n role: \"tablist\"\n }, items, /*#__PURE__*/React.createElement(\"li\", {\n ref: function ref(el) {\n return _this4.inkbar = el;\n },\n className: \"p-tabmenu-ink-bar\"\n })));\n }\n\n return null;\n }\n }]);\n\n return TabMenu;\n}(Component);\n\n_defineProperty(TabMenu, \"defaultProps\", {\n id: null,\n model: null,\n activeIndex: 0,\n style: null,\n className: null,\n onTabChange: null\n});\n\nexport { TabMenu };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,UAArB,EAAiCC,WAAjC,QAAoD,kBAApD;AACA,SAASC,MAAT,QAAuB,mBAAvB;;AAEA,S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