-
Notifications
You must be signed in to change notification settings - Fork 1
/
menu-wc.js
41 lines (29 loc) · 6.61 KB
/
menu-wc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
customElements.define('compodoc-menu', function (_HTMLElement) {
_inherits(_class, _HTMLElement);
function _class() {
_classCallCheck(this, _class);
var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this));
_this.isNormalMode = _this.getAttribute('mode') === 'normal';
return _this;
}
_createClass(_class, [{
key: 'connectedCallback',
value: function connectedCallback() {
this.render(this.isNormalMode);
}
}, {
key: 'render',
value: function render(isNormalMode) {
let tp = lithtml.html(
'<nav>\n <ul class="list">\n <li class="title">\n \n <a href="index.html" data-type="index-link">@mugan86/openweather-api documentation</a>\n \n </li>\n\n <li class="divider"></li>\n ' + (isNormalMode ? '<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div>' : '') + '\n <li class="chapter">\n <a data-type="chapter-link" href="index.html"><span class="icon ion-ios-home"></span>Getting started</a>\n <ul class="links">\n \n <li class="link">\n <a href="overview.html" data-type="chapter-link">\n <span class="icon ion-ios-keypad"></span>Overview\n </a>\n </li>\n <li class="link">\n <a href="index.html" data-type="chapter-link">\n <span class="icon ion-ios-paper"></span>README\n </a>\n </li>\n \n \n <li class="link">\n \n <a href="license.html"\n \n data-type="chapter-link">\n <span class="icon ion-ios-paper"></span>LICENSE\n </a>\n </li>\n \n \n <li class="link">\n <a href="dependencies.html"\n data-type="chapter-link">\n <span class="icon ion-ios-list"></span>Dependencies\n </a>\n </li>\n \n </ul>\n </li>\n \n \n \n \n \n \n <li class="chapter">\n <div class="simple menu-toggler" data-toggle="collapse"\n ' + (isNormalMode ? 'data-target="#classes-links"' : 'data-target="#xs-classes-links"') + '>\n <span class="icon ion-ios-paper"></span>\n <span>Classes</span>\n <span class="icon ion-ios-arrow-down"></span>\n </div>\n <ul class="links collapse"\n ' + (isNormalMode ? 'id="classes-links"' : 'id="xs-classes-links"') + '>\n \n <li class="link">\n <a href="classes/ApiService.html" data-type="entity-link">ApiService</a>\n </li>\n \n <li class="link">\n <a href="classes/CitiesService.html" data-type="entity-link">CitiesService</a>\n </li>\n \n <li class="link">\n <a href="classes/ConfigService.html" data-type="entity-link">ConfigService</a>\n </li>\n \n <li class="link">\n <a href="classes/CurrentService.html" data-type="entity-link">CurrentService</a>\n </li>\n \n </ul>\n </li>\n \n \n \n \n \n \n \n <li class="chapter">\n <div class="simple menu-toggler" data-toggle="collapse"\n ' + (isNormalMode ? 'data-target="#miscellaneous-links"' : 'data-target="#xs-miscellaneous-links"') + '>\n <span class="icon ion-ios-cube"></span>\n <span>Miscellaneous</span>\n <span class="icon ion-ios-arrow-down"></span>\n </div>\n <ul class="links collapse"\n ' + (isNormalMode ? 'id="miscellaneous-links"' : 'id="xs-miscellaneous-links"') + '>\n \n <li class="link">\n <a href="miscellaneous/enumerations.html" data-type="entity-link">Enums</a>\n </li>\n \n \n \n \n <li class="link">\n <a href="miscellaneous/variables.html" data-type="entity-link">Variables</a>\n </li>\n \n </ul>\n </li>\n \n \n \n \n \n <li class="chapter">\n <a data-type="chapter-link" href="coverage.html"><span class="icon ion-ios-stats"></span>Documentation coverage</a>\n </li>\n \n \n \n </ul>\n</nav>'
);
this.innerHTML = tp.strings;
}
}]);
return _class;
}(HTMLElement));