@jenkinsci/jenkins-io-components 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/jio-navbar.cjs.js
CHANGED
|
@@ -2,5 +2,5 @@ System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/function b(e){return a(_objectSpread(_objectSpread({},e),{},{state:!0}));}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;i=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){n=_litElement003CjsJs.i;o=_litElement003CjsJs.s;t=_litElement003CjsJs.x;l=_litElement003CjsJs.A;},function(_property004CjsJs){a=_property004CjsJs.e;},function(_global006CjsJs){r=_global006CjsJs.s;s=_global006CjsJs.l;},function(_litLocalize001CjsJs){d=_litLocalize001CjsJs.m;},function(_jioLocaleCjsJs){},function(_jioCdfLogoCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioSearchboxCjsJs){},function(_localizedDecorator005CjsJs){c=_localizedDecorator005CjsJs.l;}],execute:function(){p=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["a:focus-visible{outline:2px solid #000b19}.navbar-toggler{background-color:transparent;border:1px solid transparent;border-color:rgba(255,255,255,.1);border-radius:.25rem;color:rgba(255,255,255,.5);display:none;font-size:1.25rem;line-height:1;margin-left:auto}.nav{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}.navbar{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#212529;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:.875rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 0;padding:.5rem 1rem;position:relative}.navbar-brand ::slotted(a),.navbar-brand a{color:#fff;display:inline-block;font-family:Georgia,Times,\"Times New Roman\",serif;font-size:1.25rem;font-size:20px;font-weight:600;line-height:inherit;margin-right:1rem;padding:2px 0;padding-bottom:.3125rem;padding-top:.3125rem;text-decoration:none;white-space:nowrap}.collapse{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.5;text-align:center}.nav-item{cursor:pointer}.dropdown{position:relative}.navbar-nav{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;list-style:none;margin-bottom:0;margin-top:0;padding-left:0}.nav-link.dropdown-toggle{background-color:transparent;border:0;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 auto}button.nav-link{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;-webkit-box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%);box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%)}.nav-link{color:rgba(255,255,255,.55);display:block;padding:.5em 0;padding-left:.5rem;padding-right:.5rem;text-decoration:none;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.dropdown-toggle{white-space:nowrap}.dropdown-menu{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.175);border-radius:.375em;color:#212529;display:none;list-style:none;margin:0;min-width:10rem;padding:.5em 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.navbar.dropdown-menu{font-size:.875rem;max-height:80vh;overflow-y:auto}.download-btn{font-size:.875rem;margin-left:8px}.download-btn a{background-color:transparent;border:1px solid #6c757d;border-radius:.375px;cursor:pointer;line-height:1.5em;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.dropdown-toggle::after{border-bottom:0;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:.3em solid;content:'';display:inline-block;margin-left:.255em;vertical-align:.255em}@media (min-width:992px){.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}}@media (max-width:991px){.navbar-toggler{display:block;margin-left:0;-webkit-box-ordinal-group:5;-webkit-order:4;-ms-flex-order:4;order:4}jio-searchbox{margin-left:auto;margin-right:10px;-webkit-box-ordinal-group:4;-webkit-order:3;-ms-flex-order:3;order:3}.navbar-menu{-webkit-box-ordinal-group:6;-webkit-order:5;-ms-flex-order:5;order:5}.navbar{-webkit-box-align:normal;-webkit-align-items:normal;-ms-flex-align:normal;align-items:normal}.navbar-nav{width:100%}.collapse{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;list-style:none;margin-bottom:0;padding-left:0}.collapse:not(.show){display:none}.collapse .navbar-nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.navbar-nav .dropdown-menu{position:absolute}}.divider{border-left:1px solid #fff}"])));m=/*#__PURE__*/function(_o){_inherits(m,_o);var _super=_createSuper(m);function m(){var _this;_classCallCheck(this,m);_this=_super.call(this),_this.property="https://www.jenkins.io",_this.showSearchBox=!1,_this.locationPathname=location.pathname,_this.visibleMenu=-1,_this.menuToggled=!1,_this.handleDocumentClick=_this.handleDocumentClick.bind(_assertThisInitialized(_this));return _this;}_createClass(m,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(m.prototype),"connectedCallback",this).call(this),document.addEventListener("click",this.handleDocumentClick);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(m.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("click",this.handleDocumentClick);}},{key:"handleDocumentClick",value:function handleDocumentClick(){this.visibleMenu=-1;}},{key:"render",value:function render(){var _this2=this;var e=[{label:d("What is CDF?"),link:"https://cd.foundation/"},{label:d("Jenkins X"),link:"https://jenkins-x.io/"},{label:d("Tekton"),link:"https://tekton.dev/"},{label:d("Spinnaker"),link:"https://www.spinnaker.io/"}],i=[{label:d("Blog"),link:"/node"},{label:d("Success Stories"),link:"https://stories.jenkins.io/"},{label:d("Documentation"),link:[{label:d("User Guide"),link:"/doc/book",header:!0},{label:"- "+d("Installing Jenkins"),link:"/doc/book/installing/"},{label:"- "+d("Jenkins Pipeline"),link:"/doc/book/pipeline/"},{label:"- "+d("Managing Jenkins"),link:"/doc/book/managing/"},{label:"- "+d("Securing Jenkins"),link:"/doc/book/security/"},{label:"- "+d("System Administration"),link:"/doc/book/system-administration/"},{label:"- "+d("Troubleshooting Jenkins"),link:"/doc/book/troubleshooting/"},{label:"- "+d("Terms and Definitions"),link:"/doc/book/glossary/"},{label:d("Solution Pages"),link:"/solutions",header:!0},{label:d("Tutorials"),link:"/doc/tutorials",header:!0},{label:d("Developer Guide"),link:"/doc/developer",header:!0},{label:d("Contributor Guide"),link:"/participate",header:!0},{label:d("Books"),link:"/books",header:!0}]},{label:d("Plugins"),link:"https://plugins.jenkins.io/"},{label:d("Community"),link:[{label:d("Overview"),link:"/participate/"},{label:d("Chat"),link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:d("Meet"),link:"/projects/jam/"},{label:d("Events"),link:"/events/"},{label:d("Forum"),link:"https://community.jenkins.io/"},{label:d("Issue Tracker"),link:"https://issues.jenkins.io/"},{label:d("Mailing Lists"),link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Account Management"),link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:d("Special Interest Groups"),link:"/sigs/",header:!0},{label:"- "+d("Advocacy and Outreach"),link:"/sigs/advocacy-and-outreach/"},{label:"- "+d("Documentation"),link:"/sigs/docs/"},{label:"- "+d("Google Summer of Code"),link:"/sigs/gsoc/"},{label:"- "+d("Platform"),link:"/sigs/platform/"},{label:"- "+d("User Experience"),link:"/sigs/ux/"}]},{label:d("Subprojects"),link:[{label:d("Overview"),link:"/projects/"},{label:d("Google Summer of Code in Jenkins"),link:"/projects/gsoc/"},{label:d("Infrastructure"),link:"/projects/infrastructure/"},{label:d("CI/CD and Jenkins Area Meetups"),link:"/projects/jam/"},{label:d("Jenkins Configuration as Code"),link:"/projects/jcasc/"},{label:d("Jenkins Operator"),link:"/projects/jenkins-operator/"},{label:d("Jenkins Remoting"),link:"/projects/remoting/"},{label:d("Document Jenkins on Kubernetes"),link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:d("Security"),link:[{label:d("Overview"),link:"/security/"},{label:d("Security Advisories"),link:"/security/advisories/"},{label:d("Reporting Vulnerabilities"),link:"/security/reporting/"}]},{label:d("About"),link:[{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Press"),link:"/press/"},{label:d("Awards"),link:"/awards/"},{label:d("Conduct"),link:"/project/conduct/"},{label:d("Artwork"),link:"/artwork/"}]}].map(function(e,i){var n;return n=e.link&&Array.isArray(e.link)?_this2.renderNavItemDropdown(e,i,_this2.visibleMenu===i):t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<li class=\"nav-item\">","</li>"])),_this2.renderNavItemLink(e)),n;}),n=this.showSearchBox?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<jio-searchbox @click=\"","\"></jio-searchbox>"])),this._handleSearchboxClick):l;return t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nav class=\"navbar\"><span class=\"navbar-brand\"><slot name=\"brand\"><a href=\"/\">Jenkins</a></slot></span><button class=\"navbar-toggler collapsed btn\" type=\"button\" @click=\"","\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"","\" aria-label=\"Toggle navigation\"><ion-icon name=\"menu-outline\" title=\"Toggle Menu Visible\"></ion-icon></button><div class=\"navbar-menu collapse ","\"><ul class=\"nav navbar-nav mr-auto\">","</ul><ul class=\"nav navbar-nav ml-auto\">","<li class=\"nav-item download-btn\">","</li><slot name=\"rightMenuItems\" @slotchange=\"","\"></slot></ul></div>","</nav>"])),this._clickCollapseButton,this.menuToggled,this.menuToggled?"show":"",this.renderNavItemDropdown({label:t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<jio-cdf-logo></jio-cdf-logo>"]))),link:e},99,99===this.visibleMenu),i,this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"]),this.handleSlotchange,n);}},{key:"handleSlotchange",value:function handleSlotchange(e){var i=e.target,n=i.assignedElements(),o=i.parentNode;var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _e=_step.value;var _iterator2=_createForOfIteratorHelper(_e.querySelectorAll("jio-navbar-link")),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i=_step2.value;var _e2=document.createElement("li");_e2.className="nav-item",_e2.appendChild(_i),o.appendChild(_e2);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},{key:"renderNavItemDropdown",value:function renderNavItemDropdown(e,i,n){var _this3=this;if(!Array.isArray(e.link))return this.renderNavItemLink(e);var o=e.link.map(function(e){return _this3.renderNavItemLink(e,["dropdown-item feature"]);});return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<li class=\"nav-item dropdown\"><button @click=\"","\" data-idx=\"","\" aria-expanded=\"","\" aria-haspopup=\"true\" class=\"nav-link dropdown-toggle ","\">","</button><div class=\"dropdown-menu ","\">","</div></li>"])),this._toggleDropdown,i,n?"true":"false",n?"show":"",e.label,n?"show":"",o);}},{key:"renderNavItemLink",value:function renderNavItemLink(e){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<jio-navbar-link .class=\"","\" .locationPathname=\"","\" .property=\"","\" ?header=\"","\" href=\"","\" title=\"","\">","</jio-navbar-link>"])),s(i.join(" ")),s(this.locationPathname),this.property,e.header,e.link,s(e.title),e.header?t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<strong>","</strong>"])),e.label):e.label);}},{key:"_clickCollapseButton",value:function _clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled;}},{key:"_handleSearchboxClick",value:function _handleSearchboxClick(){this.menuToggled&&(this.menuToggled=!1);}},{key:"_toggleDropdown",value:function _toggleDropdown(e){e.preventDefault(),e.stopPropagation();var i=e.currentTarget.dataset;this.visibleMenu===parseInt(i.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(i.idx||"-1",10);}}]);return m;}(o);m.styles=[r,p],e([a()],m.prototype,"property",void 0),e([a({type:Boolean})],m.prototype,"showSearchBox",void 0),e([a()],m.prototype,"locationPathname",void 0),e([b()],m.prototype,"visibleMenu",void 0),e([b()],m.prototype,"menuToggled",void 0),m=e([c(),i("jio-navbar")],m);}};});
|
|
5
|
+
*/function b(e){return a(_objectSpread(_objectSpread({},e),{},{state:!0}));}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;i=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){n=_litElement003CjsJs.i;o=_litElement003CjsJs.s;t=_litElement003CjsJs.x;l=_litElement003CjsJs.A;},function(_property004CjsJs){a=_property004CjsJs.e;},function(_global006CjsJs){r=_global006CjsJs.s;s=_global006CjsJs.l;},function(_litLocalize001CjsJs){d=_litLocalize001CjsJs.m;},function(_jioLocaleCjsJs){},function(_jioCdfLogoCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioSearchboxCjsJs){},function(_localizedDecorator005CjsJs){c=_localizedDecorator005CjsJs.l;}],execute:function(){p=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["a:focus-visible{outline:2px solid #000b19}.navbar-toggler{background-color:transparent;border:1px solid transparent;border-color:rgba(255,255,255,.1);border-radius:.25rem;color:rgba(255,255,255,.5);display:none;font-size:1.25rem;line-height:1;margin-left:auto}.nav{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}.navbar{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#212529;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:.875rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 0;padding:.5rem 1rem;position:relative}.navbar-brand ::slotted(a),.navbar-brand a{color:#fff;display:inline-block;font-family:Georgia,Times,\"Times New Roman\",serif;font-size:1.25rem;font-size:20px;font-weight:600;line-height:inherit;margin-right:1rem;padding:2px 0;padding-bottom:.3125rem;padding-top:.3125rem;text-decoration:none;white-space:nowrap}.collapse{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.5;text-align:center}.nav-item{cursor:pointer}.dropdown{position:relative}.navbar-nav{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;list-style:none;margin-bottom:0;margin-top:0;padding-left:0}.nav-link.dropdown-toggle{background-color:transparent;border:0;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 auto}button.nav-link{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;-webkit-box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%);box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%)}.nav-link{color:rgba(255,255,255,.55);display:block;padding:.5em 0;padding-left:.5rem;padding-right:.5rem;text-decoration:none;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.dropdown-toggle{white-space:nowrap}.dropdown-menu{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.175);border-radius:.375em;color:#212529;display:none;list-style:none;margin:0;min-width:10rem;padding:.5em 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.navbar.dropdown-menu{font-size:.875rem;max-height:80vh;overflow-y:auto}.download-btn{font-size:.875rem;margin-left:8px}.download-btn a{background-color:transparent;border:1px solid #6c757d;border-radius:.375px;cursor:pointer;line-height:1.5em;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.dropdown-toggle::after{border-bottom:0;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:.3em solid;content:'';display:inline-block;margin-left:.255em;vertical-align:.255em}@media (min-width:992px){.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}}@media (max-width:991px){.navbar-toggler{display:block;margin-left:0;-webkit-box-ordinal-group:5;-webkit-order:4;-ms-flex-order:4;order:4}jio-searchbox{margin-left:auto;margin-right:10px;-webkit-box-ordinal-group:4;-webkit-order:3;-ms-flex-order:3;order:3}.navbar-menu{-webkit-box-ordinal-group:6;-webkit-order:5;-ms-flex-order:5;order:5}.navbar{-webkit-box-align:normal;-webkit-align-items:normal;-ms-flex-align:normal;align-items:normal}.navbar-nav{width:100%}.collapse{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;list-style:none;margin-bottom:0;padding-left:0}.collapse:not(.show){display:none}.collapse .navbar-nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.navbar-nav .dropdown-menu{position:absolute}}.divider{border-left:1px solid #fff}"])));m=/*#__PURE__*/function(_o){_inherits(m,_o);var _super=_createSuper(m);function m(){var _this;_classCallCheck(this,m);_this=_super.call(this),_this.property="https://www.jenkins.io",_this.showSearchBox=!1,_this.locationPathname=location.pathname,_this.visibleMenu=-1,_this.menuToggled=!1,_this.handleDocumentClick=_this.handleDocumentClick.bind(_assertThisInitialized(_this));return _this;}_createClass(m,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(m.prototype),"connectedCallback",this).call(this),document.addEventListener("click",this.handleDocumentClick);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(m.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("click",this.handleDocumentClick);}},{key:"handleDocumentClick",value:function handleDocumentClick(){this.visibleMenu=-1;}},{key:"render",value:function render(){var _this2=this;var e=[{label:d("What is CDF?"),link:"https://cd.foundation/"},{label:d("Jenkins X"),link:"https://jenkins-x.io/"},{label:d("Tekton"),link:"https://tekton.dev/"},{label:d("Spinnaker"),link:"https://www.spinnaker.io/"}],i=[{label:d("Blog"),link:"/node"},{label:d("Success Stories"),link:"https://stories.jenkins.io/"},{label:d("Contributor Spotlight"),link:"https://contributors.jenkins.io/"},{label:d("Documentation"),link:[{label:d("User Guide"),link:"/doc/book",header:!0},{label:"- "+d("Installing Jenkins"),link:"/doc/book/installing/"},{label:"- "+d("Jenkins Pipeline"),link:"/doc/book/pipeline/"},{label:"- "+d("Managing Jenkins"),link:"/doc/book/managing/"},{label:"- "+d("Securing Jenkins"),link:"/doc/book/security/"},{label:"- "+d("System Administration"),link:"/doc/book/system-administration/"},{label:"- "+d("Troubleshooting Jenkins"),link:"/doc/book/troubleshooting/"},{label:"- "+d("Terms and Definitions"),link:"/doc/book/glossary/"},{label:d("Solution Pages"),link:"/solutions",header:!0},{label:d("Tutorials"),link:"/doc/tutorials",header:!0},{label:d("Developer Guide"),link:"/doc/developer",header:!0},{label:d("Contributor Guide"),link:"/participate",header:!0},{label:d("Books"),link:"/books",header:!0}]},{label:d("Plugins"),link:"https://plugins.jenkins.io/"},{label:d("Community"),link:[{label:d("Overview"),link:"/participate/"},{label:d("Chat"),link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:d("Meet"),link:"/projects/jam/"},{label:d("Events"),link:"/events/"},{label:d("Forum"),link:"https://community.jenkins.io/"},{label:d("Issue Tracker"),link:"https://issues.jenkins.io/"},{label:d("Mailing Lists"),link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Account Management"),link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:d("Special Interest Groups"),link:"/sigs/",header:!0},{label:"- "+d("Advocacy and Outreach"),link:"/sigs/advocacy-and-outreach/"},{label:"- "+d("Documentation"),link:"/sigs/docs/"},{label:"- "+d("Google Summer of Code"),link:"/sigs/gsoc/"},{label:"- "+d("Platform"),link:"/sigs/platform/"},{label:"- "+d("User Experience"),link:"/sigs/ux/"}]},{label:d("Subprojects"),link:[{label:d("Overview"),link:"/projects/"},{label:d("Google Summer of Code in Jenkins"),link:"/projects/gsoc/"},{label:d("Infrastructure"),link:"/projects/infrastructure/"},{label:d("CI/CD and Jenkins Area Meetups"),link:"/projects/jam/"},{label:d("Jenkins Configuration as Code"),link:"/projects/jcasc/"},{label:d("Jenkins Operator"),link:"/projects/jenkins-operator/"},{label:d("Jenkins Remoting"),link:"/projects/remoting/"},{label:d("Document Jenkins on Kubernetes"),link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:d("Security"),link:[{label:d("Overview"),link:"/security/"},{label:d("Security Advisories"),link:"/security/advisories/"},{label:d("Reporting Vulnerabilities"),link:"/security/reporting/"}]},{label:d("About"),link:[{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Press"),link:"/press/"},{label:d("Awards"),link:"/awards/"},{label:d("Conduct"),link:"/project/conduct/"},{label:d("Artwork"),link:"/artwork/"}]}].map(function(e,i){var n;return n=e.link&&Array.isArray(e.link)?_this2.renderNavItemDropdown(e,i,_this2.visibleMenu===i):t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<li class=\"nav-item\">","</li>"])),_this2.renderNavItemLink(e)),n;}),n=this.showSearchBox?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<jio-searchbox @click=\"","\"></jio-searchbox>"])),this._handleSearchboxClick):l;return t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nav class=\"navbar\"><span class=\"navbar-brand\"><slot name=\"brand\"><a href=\"/\">Jenkins</a></slot></span><button class=\"navbar-toggler collapsed btn\" type=\"button\" @click=\"","\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"","\" aria-label=\"Toggle navigation\"><ion-icon name=\"menu-outline\" title=\"Toggle Menu Visible\"></ion-icon></button><div class=\"navbar-menu collapse ","\"><ul class=\"nav navbar-nav mr-auto\">","</ul><ul class=\"nav navbar-nav ml-auto\">","<li class=\"nav-item download-btn\">","</li><slot name=\"rightMenuItems\" @slotchange=\"","\"></slot></ul></div>","</nav>"])),this._clickCollapseButton,this.menuToggled,this.menuToggled?"show":"",this.renderNavItemDropdown({label:t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<jio-cdf-logo></jio-cdf-logo>"]))),link:e},99,99===this.visibleMenu),i,this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"]),this.handleSlotchange,n);}},{key:"handleSlotchange",value:function handleSlotchange(e){var i=e.target,n=i.assignedElements(),o=i.parentNode;var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _e=_step.value;var _iterator2=_createForOfIteratorHelper(_e.querySelectorAll("jio-navbar-link")),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _i=_step2.value;var _e2=document.createElement("li");_e2.className="nav-item",_e2.appendChild(_i),o.appendChild(_e2);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},{key:"renderNavItemDropdown",value:function renderNavItemDropdown(e,i,n){var _this3=this;if(!Array.isArray(e.link))return this.renderNavItemLink(e);var o=e.link.map(function(e){return _this3.renderNavItemLink(e,["dropdown-item feature"]);});return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<li class=\"nav-item dropdown\"><button @click=\"","\" data-idx=\"","\" aria-expanded=\"","\" aria-haspopup=\"true\" class=\"nav-link dropdown-toggle ","\">","</button><div class=\"dropdown-menu ","\">","</div></li>"])),this._toggleDropdown,i,n?"true":"false",n?"show":"",e.label,n?"show":"",o);}},{key:"renderNavItemLink",value:function renderNavItemLink(e){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<jio-navbar-link .class=\"","\" .locationPathname=\"","\" .property=\"","\" ?header=\"","\" href=\"","\" title=\"","\">","</jio-navbar-link>"])),s(i.join(" ")),s(this.locationPathname),this.property,e.header,e.link,s(e.title),e.header?t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<strong>","</strong>"])),e.label):e.label);}},{key:"_clickCollapseButton",value:function _clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled;}},{key:"_handleSearchboxClick",value:function _handleSearchboxClick(){this.menuToggled&&(this.menuToggled=!1);}},{key:"_toggleDropdown",value:function _toggleDropdown(e){e.preventDefault(),e.stopPropagation();var i=e.currentTarget.dataset;this.visibleMenu===parseInt(i.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(i.idx||"-1",10);}}]);return m;}(o);m.styles=[r,p],e([a()],m.prototype,"property",void 0),e([a({type:Boolean})],m.prototype,"showSearchBox",void 0),e([a()],m.prototype,"locationPathname",void 0),e([b()],m.prototype,"visibleMenu",void 0),e([b()],m.prototype,"menuToggled",void 0),m=e([c(),i("jio-navbar")],m);}};});
|
|
6
6
|
//# sourceMappingURL=jio-navbar.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jio-navbar.cjs.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js","../src/jio-navbar.ts"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n",null],"names":["t","r","state","Navbar","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","visibleMenu","handleDocumentClick","bind","_this","connectedCallback","document","addEventListener","disconnectedCallback","removeEventListener","cdfMenuItems","label","msg","link"],"mappings":";;;;AAKG,GAAA,QAASA,CAAAA,EAAEA,CAAG,CAAA,CAAA,MAAOC,CAAAA,iCAAMD,CAAAA,MAAEE,OAAM,CAAI,GAAA,k8KCiB7BC,
|
|
1
|
+
{"version":3,"file":"jio-navbar.cjs.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js","../src/jio-navbar.ts"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n",null],"names":["t","r","state","Navbar","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","visibleMenu","handleDocumentClick","bind","_this","connectedCallback","document","addEventListener","disconnectedCallback","removeEventListener","_this2","cdfMenuItems","label","msg","link"],"mappings":";;;;AAKG,GAAA,QAASA,CAAAA,EAAEA,CAAG,CAAA,CAAA,MAAOC,CAAAA,iCAAMD,CAAAA,MAAEE,OAAM,CAAI,GAAA,k8KCiB7BC,CAAAA,uBAAAA,EAAAA,EAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,MAAAA,MAAAA,CAAAA,YAAAA,CAAAA,CAAAA,EACXC,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EAEAC,KAAAA,CAAAA,MAAAA,CAAAA,IAAAA,OAMAC,KAAAA,CAAAC,QAAAA,CAAA,wBAQgBD,CAAAA,KAAAA,CAAAE,eAA6B,CAE7CF,CAAAA,KAAAA,CAAAG,iBAAAC,QAAAC,CAAAA,QAAAA,CASAL,KAAAA,CAAAM,WAAA,CAAA,CAAA,CAAA,sBAc0BN,KAAAA,CAAAO,mBAAAP,CAAAA,KAAAA,CAAAO,oBAAAC,IAAAR,CAAAA,sBAAAA,CAAAA,KAAAA,EAKG,QAAAS,KAAA,EAK7BC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,qBAAAA,KAAAA,UAAAA,kBAAAA,CAIeX,CAAAA,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,4BAAAA,IAAAA,OAgJCY,QAAAA,CAAAC,iBAAS,OAAAZ,CAAAA,IAAAA,CAAAO,oBAmBJ,EAqBrBM,GAAAA,GAAAA,wBAAAA,KAAAA,UAAAA,qBAAAA,CAAAA,CAgBAd,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,+BAAAA,IAAAA,OAKAY,QAAAA,CAA6BG,oBAAA,OAAAd,CAAAA,IAAAA,CAAAO,oBAM7B,EAUDA,GAAAA,GAAAA,uBAAAA,KAAAA,UAAAA,oBAAAA,CAAAA,CAEOP,gBAAO,CAAA,CAAA,CACb,yCAEC,KAAAe,MAAA,MAAA,GAAAC,CAAAA,CAAA,CAAA,CACF,CAAAC,KAAAC,CAAAA,CAAAA,CAAA,gBAAAC,IAAA,CAAA,wBAAA,CAAA,02NA1RCrB","x_google_ignoreList":[0]}
|
package/build/jio-navbar.esm.js
CHANGED
|
@@ -3,5 +3,5 @@ import{_ as e,e as i}from"./query-assigned-elements-f06332ea.esm.js";import{i as
|
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/function c(e){return a({...e,state:!0})}const p=n`a:focus-visible{outline:2px solid #000b19}.navbar-toggler{background-color:transparent;border:1px solid transparent;border-color:rgba(255,255,255,.1);border-radius:.25rem;color:rgba(255,255,255,.5);display:none;font-size:1.25rem;line-height:1;margin-left:auto}.nav{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}.navbar{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#212529;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:.875rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 0;padding:.5rem 1rem;position:relative}.navbar-brand ::slotted(a),.navbar-brand a{color:#fff;display:inline-block;font-family:Georgia,Times,"Times New Roman",serif;font-size:1.25rem;font-size:20px;font-weight:600;line-height:inherit;margin-right:1rem;padding:2px 0;padding-bottom:.3125rem;padding-top:.3125rem;text-decoration:none;white-space:nowrap}.collapse{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.5;text-align:center}.nav-item{cursor:pointer}.dropdown{position:relative}.navbar-nav{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;list-style:none;margin-bottom:0;margin-top:0;padding-left:0}.nav-link.dropdown-toggle{background-color:transparent;border:0;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 auto}button.nav-link{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;-webkit-box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%);box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%)}.nav-link{color:rgba(255,255,255,.55);display:block;padding:.5em 0;padding-left:.5rem;padding-right:.5rem;text-decoration:none;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.dropdown-toggle{white-space:nowrap}.dropdown-menu{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.175);border-radius:.375em;color:#212529;display:none;list-style:none;margin:0;min-width:10rem;padding:.5em 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.navbar.dropdown-menu{font-size:.875rem;max-height:80vh;overflow-y:auto}.download-btn{font-size:.875rem;margin-left:8px}.download-btn a{background-color:transparent;border:1px solid #6c757d;border-radius:.375px;cursor:pointer;line-height:1.5em;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.dropdown-toggle::after{border-bottom:0;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:.3em solid;content:'';display:inline-block;margin-left:.255em;vertical-align:.255em}@media (min-width:992px){.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}}@media (max-width:991px){.navbar-toggler{display:block;margin-left:0;-webkit-box-ordinal-group:5;-webkit-order:4;-ms-flex-order:4;order:4}jio-searchbox{margin-left:auto;margin-right:10px;-webkit-box-ordinal-group:4;-webkit-order:3;-ms-flex-order:3;order:3}.navbar-menu{-webkit-box-ordinal-group:6;-webkit-order:5;-ms-flex-order:5;order:5}.navbar{-webkit-box-align:normal;-webkit-align-items:normal;-ms-flex-align:normal;align-items:normal}.navbar-nav{width:100%}.collapse{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;list-style:none;margin-bottom:0;padding-left:0}.collapse:not(.show){display:none}.collapse .navbar-nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.navbar-nav .dropdown-menu{position:absolute}}.divider{border-left:1px solid #fff}`;let m=class extends o{constructor(){super(),this.property="https://www.jenkins.io",this.showSearchBox=!1,this.locationPathname=location.pathname,this.visibleMenu=-1,this.menuToggled=!1,this.handleDocumentClick=this.handleDocumentClick.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick)}handleDocumentClick(){this.visibleMenu=-1}render(){const e=[{label:d("What is CDF?"),link:"https://cd.foundation/"},{label:d("Jenkins X"),link:"https://jenkins-x.io/"},{label:d("Tekton"),link:"https://tekton.dev/"},{label:d("Spinnaker"),link:"https://www.spinnaker.io/"}],i=[{label:d("Blog"),link:"/node"},{label:d("Success Stories"),link:"https://stories.jenkins.io/"},{label:d("Documentation"),link:[{label:d("User Guide"),link:"/doc/book",header:!0},{label:"- "+d("Installing Jenkins"),link:"/doc/book/installing/"},{label:"- "+d("Jenkins Pipeline"),link:"/doc/book/pipeline/"},{label:"- "+d("Managing Jenkins"),link:"/doc/book/managing/"},{label:"- "+d("Securing Jenkins"),link:"/doc/book/security/"},{label:"- "+d("System Administration"),link:"/doc/book/system-administration/"},{label:"- "+d("Troubleshooting Jenkins"),link:"/doc/book/troubleshooting/"},{label:"- "+d("Terms and Definitions"),link:"/doc/book/glossary/"},{label:d("Solution Pages"),link:"/solutions",header:!0},{label:d("Tutorials"),link:"/doc/tutorials",header:!0},{label:d("Developer Guide"),link:"/doc/developer",header:!0},{label:d("Contributor Guide"),link:"/participate",header:!0},{label:d("Books"),link:"/books",header:!0}]},{label:d("Plugins"),link:"https://plugins.jenkins.io/"},{label:d("Community"),link:[{label:d("Overview"),link:"/participate/"},{label:d("Chat"),link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:d("Meet"),link:"/projects/jam/"},{label:d("Events"),link:"/events/"},{label:d("Forum"),link:"https://community.jenkins.io/"},{label:d("Issue Tracker"),link:"https://issues.jenkins.io/"},{label:d("Mailing Lists"),link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Account Management"),link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:d("Special Interest Groups"),link:"/sigs/",header:!0},{label:"- "+d("Advocacy and Outreach"),link:"/sigs/advocacy-and-outreach/"},{label:"- "+d("Documentation"),link:"/sigs/docs/"},{label:"- "+d("Google Summer of Code"),link:"/sigs/gsoc/"},{label:"- "+d("Platform"),link:"/sigs/platform/"},{label:"- "+d("User Experience"),link:"/sigs/ux/"}]},{label:d("Subprojects"),link:[{label:d("Overview"),link:"/projects/"},{label:d("Google Summer of Code in Jenkins"),link:"/projects/gsoc/"},{label:d("Infrastructure"),link:"/projects/infrastructure/"},{label:d("CI/CD and Jenkins Area Meetups"),link:"/projects/jam/"},{label:d("Jenkins Configuration as Code"),link:"/projects/jcasc/"},{label:d("Jenkins Operator"),link:"/projects/jenkins-operator/"},{label:d("Jenkins Remoting"),link:"/projects/remoting/"},{label:d("Document Jenkins on Kubernetes"),link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:d("Security"),link:[{label:d("Overview"),link:"/security/"},{label:d("Security Advisories"),link:"/security/advisories/"},{label:d("Reporting Vulnerabilities"),link:"/security/reporting/"}]},{label:d("About"),link:[{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Press"),link:"/press/"},{label:d("Awards"),link:"/awards/"},{label:d("Conduct"),link:"/project/conduct/"},{label:d("Artwork"),link:"/artwork/"}]}].map(((e,i)=>{let n;return n=e.link&&Array.isArray(e.link)?this.renderNavItemDropdown(e,i,this.visibleMenu===i):t`<li class="nav-item">${this.renderNavItemLink(e)}</li>`,n})),n=this.showSearchBox?t`<jio-searchbox @click="${this._handleSearchboxClick}"></jio-searchbox>`:l;return t`<nav class="navbar"><span class="navbar-brand"><slot name="brand"><a href="/">Jenkins</a></slot></span><button class="navbar-toggler collapsed btn" type="button" @click="${this._clickCollapseButton}" aria-controls="navbarSupportedContent" aria-expanded="${this.menuToggled}" aria-label="Toggle navigation"><ion-icon name="menu-outline" title="Toggle Menu Visible"></ion-icon></button><div class="navbar-menu collapse ${this.menuToggled?"show":""}"><ul class="nav navbar-nav mr-auto">${this.renderNavItemDropdown({label:t`<jio-cdf-logo></jio-cdf-logo>`,link:e},99,99===this.visibleMenu)}</ul><ul class="nav navbar-nav ml-auto">${i}<li class="nav-item download-btn">${this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"])}</li><slot name="rightMenuItems" @slotchange="${this.handleSlotchange}"></slot></ul></div>${n}</nav>`}handleSlotchange(e){const i=e.target,n=i.assignedElements(),o=i.parentNode;for(const e of n)for(const i of e.querySelectorAll("jio-navbar-link")){const e=document.createElement("li");e.className="nav-item",e.appendChild(i),o.appendChild(e)}}renderNavItemDropdown(e,i,n){if(!Array.isArray(e.link))return this.renderNavItemLink(e);const o=e.link.map((e=>this.renderNavItemLink(e,["dropdown-item feature"])));return t`<li class="nav-item dropdown"><button @click="${this._toggleDropdown}" data-idx="${i}" aria-expanded="${n?"true":"false"}" aria-haspopup="true" class="nav-link dropdown-toggle ${n?"show":""}">${e.label}</button><div class="dropdown-menu ${n?"show":""}">${o}</div></li>`}renderNavItemLink(e,i=[]){if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return t`<jio-navbar-link .class="${s(i.join(" "))}" .locationPathname="${s(this.locationPathname)}" .property="${this.property}" ?header="${e.header}" href="${e.link}" title="${s(e.title)}">${e.header?t`<strong>${e.label}</strong>`:e.label}</jio-navbar-link>`}_clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled}_handleSearchboxClick(){this.menuToggled&&(this.menuToggled=!1)}_toggleDropdown(e){e.preventDefault(),e.stopPropagation();const i=e.currentTarget.dataset;this.visibleMenu===parseInt(i.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(i.idx||"-1",10)}};m.styles=[r,p],e([a()],m.prototype,"property",void 0),e([a({type:Boolean})],m.prototype,"showSearchBox",void 0),e([a()],m.prototype,"locationPathname",void 0),e([c()],m.prototype,"visibleMenu",void 0),e([c()],m.prototype,"menuToggled",void 0),m=e([b(),i("jio-navbar")],m);
|
|
6
|
+
*/function c(e){return a({...e,state:!0})}const p=n`a:focus-visible{outline:2px solid #000b19}.navbar-toggler{background-color:transparent;border:1px solid transparent;border-color:rgba(255,255,255,.1);border-radius:.25rem;color:rgba(255,255,255,.5);display:none;font-size:1.25rem;line-height:1;margin-left:auto}.nav{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}.navbar{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#212529;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:.875rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.5rem 0;padding:.5rem 1rem;position:relative}.navbar-brand ::slotted(a),.navbar-brand a{color:#fff;display:inline-block;font-family:Georgia,Times,"Times New Roman",serif;font-size:1.25rem;font-size:20px;font-weight:600;line-height:inherit;margin-right:1rem;padding:2px 0;padding-bottom:.3125rem;padding-top:.3125rem;text-decoration:none;white-space:nowrap}.collapse{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-basis:auto;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1.5;text-align:center}.nav-item{cursor:pointer}.dropdown{position:relative}.navbar-nav{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;list-style:none;margin-bottom:0;margin-top:0;padding-left:0}.nav-link.dropdown-toggle{background-color:transparent;border:0;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 auto}button.nav-link{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;-webkit-box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%);box-shadow:0 2px 4px -3px rgb(0 0 0 / 25%)}.nav-link{color:rgba(255,255,255,.55);display:block;padding:.5em 0;padding-left:.5rem;padding-right:.5rem;text-decoration:none;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.dropdown-toggle{white-space:nowrap}.dropdown-menu{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0,0,0,.175);border-radius:.375em;color:#212529;display:none;list-style:none;margin:0;min-width:10rem;padding:.5em 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.navbar.dropdown-menu{font-size:.875rem;max-height:80vh;overflow-y:auto}.download-btn{font-size:.875rem;margin-left:8px}.download-btn a{background-color:transparent;border:1px solid #6c757d;border-radius:.375px;cursor:pointer;line-height:1.5em;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.dropdown-toggle::after{border-bottom:0;border-left:.3em solid transparent;border-right:.3em solid transparent;border-top:.3em solid;content:'';display:inline-block;margin-left:.255em;vertical-align:.255em}@media (min-width:992px){.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}}@media (max-width:991px){.navbar-toggler{display:block;margin-left:0;-webkit-box-ordinal-group:5;-webkit-order:4;-ms-flex-order:4;order:4}jio-searchbox{margin-left:auto;margin-right:10px;-webkit-box-ordinal-group:4;-webkit-order:3;-ms-flex-order:3;order:3}.navbar-menu{-webkit-box-ordinal-group:6;-webkit-order:5;-ms-flex-order:5;order:5}.navbar{-webkit-box-align:normal;-webkit-align-items:normal;-ms-flex-align:normal;align-items:normal}.navbar-nav{width:100%}.collapse{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;list-style:none;margin-bottom:0;padding-left:0}.collapse:not(.show){display:none}.collapse .navbar-nav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.navbar-nav .dropdown-menu{position:absolute}}.divider{border-left:1px solid #fff}`;let m=class extends o{constructor(){super(),this.property="https://www.jenkins.io",this.showSearchBox=!1,this.locationPathname=location.pathname,this.visibleMenu=-1,this.menuToggled=!1,this.handleDocumentClick=this.handleDocumentClick.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick)}handleDocumentClick(){this.visibleMenu=-1}render(){const e=[{label:d("What is CDF?"),link:"https://cd.foundation/"},{label:d("Jenkins X"),link:"https://jenkins-x.io/"},{label:d("Tekton"),link:"https://tekton.dev/"},{label:d("Spinnaker"),link:"https://www.spinnaker.io/"}],i=[{label:d("Blog"),link:"/node"},{label:d("Success Stories"),link:"https://stories.jenkins.io/"},{label:d("Contributor Spotlight"),link:"https://contributors.jenkins.io/"},{label:d("Documentation"),link:[{label:d("User Guide"),link:"/doc/book",header:!0},{label:"- "+d("Installing Jenkins"),link:"/doc/book/installing/"},{label:"- "+d("Jenkins Pipeline"),link:"/doc/book/pipeline/"},{label:"- "+d("Managing Jenkins"),link:"/doc/book/managing/"},{label:"- "+d("Securing Jenkins"),link:"/doc/book/security/"},{label:"- "+d("System Administration"),link:"/doc/book/system-administration/"},{label:"- "+d("Troubleshooting Jenkins"),link:"/doc/book/troubleshooting/"},{label:"- "+d("Terms and Definitions"),link:"/doc/book/glossary/"},{label:d("Solution Pages"),link:"/solutions",header:!0},{label:d("Tutorials"),link:"/doc/tutorials",header:!0},{label:d("Developer Guide"),link:"/doc/developer",header:!0},{label:d("Contributor Guide"),link:"/participate",header:!0},{label:d("Books"),link:"/books",header:!0}]},{label:d("Plugins"),link:"https://plugins.jenkins.io/"},{label:d("Community"),link:[{label:d("Overview"),link:"/participate/"},{label:d("Chat"),link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:d("Meet"),link:"/projects/jam/"},{label:d("Events"),link:"/events/"},{label:d("Forum"),link:"https://community.jenkins.io/"},{label:d("Issue Tracker"),link:"https://issues.jenkins.io/"},{label:d("Mailing Lists"),link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Account Management"),link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:d("Special Interest Groups"),link:"/sigs/",header:!0},{label:"- "+d("Advocacy and Outreach"),link:"/sigs/advocacy-and-outreach/"},{label:"- "+d("Documentation"),link:"/sigs/docs/"},{label:"- "+d("Google Summer of Code"),link:"/sigs/gsoc/"},{label:"- "+d("Platform"),link:"/sigs/platform/"},{label:"- "+d("User Experience"),link:"/sigs/ux/"}]},{label:d("Subprojects"),link:[{label:d("Overview"),link:"/projects/"},{label:d("Google Summer of Code in Jenkins"),link:"/projects/gsoc/"},{label:d("Infrastructure"),link:"/projects/infrastructure/"},{label:d("CI/CD and Jenkins Area Meetups"),link:"/projects/jam/"},{label:d("Jenkins Configuration as Code"),link:"/projects/jcasc/"},{label:d("Jenkins Operator"),link:"/projects/jenkins-operator/"},{label:d("Jenkins Remoting"),link:"/projects/remoting/"},{label:d("Document Jenkins on Kubernetes"),link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:d("Security"),link:[{label:d("Overview"),link:"/security/"},{label:d("Security Advisories"),link:"/security/advisories/"},{label:d("Reporting Vulnerabilities"),link:"/security/reporting/"}]},{label:d("About"),link:[{label:d("Roadmap"),link:"/project/roadmap/"},{label:d("Press"),link:"/press/"},{label:d("Awards"),link:"/awards/"},{label:d("Conduct"),link:"/project/conduct/"},{label:d("Artwork"),link:"/artwork/"}]}].map(((e,i)=>{let n;return n=e.link&&Array.isArray(e.link)?this.renderNavItemDropdown(e,i,this.visibleMenu===i):t`<li class="nav-item">${this.renderNavItemLink(e)}</li>`,n})),n=this.showSearchBox?t`<jio-searchbox @click="${this._handleSearchboxClick}"></jio-searchbox>`:l;return t`<nav class="navbar"><span class="navbar-brand"><slot name="brand"><a href="/">Jenkins</a></slot></span><button class="navbar-toggler collapsed btn" type="button" @click="${this._clickCollapseButton}" aria-controls="navbarSupportedContent" aria-expanded="${this.menuToggled}" aria-label="Toggle navigation"><ion-icon name="menu-outline" title="Toggle Menu Visible"></ion-icon></button><div class="navbar-menu collapse ${this.menuToggled?"show":""}"><ul class="nav navbar-nav mr-auto">${this.renderNavItemDropdown({label:t`<jio-cdf-logo></jio-cdf-logo>`,link:e},99,99===this.visibleMenu)}</ul><ul class="nav navbar-nav ml-auto">${i}<li class="nav-item download-btn">${this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"])}</li><slot name="rightMenuItems" @slotchange="${this.handleSlotchange}"></slot></ul></div>${n}</nav>`}handleSlotchange(e){const i=e.target,n=i.assignedElements(),o=i.parentNode;for(const e of n)for(const i of e.querySelectorAll("jio-navbar-link")){const e=document.createElement("li");e.className="nav-item",e.appendChild(i),o.appendChild(e)}}renderNavItemDropdown(e,i,n){if(!Array.isArray(e.link))return this.renderNavItemLink(e);const o=e.link.map((e=>this.renderNavItemLink(e,["dropdown-item feature"])));return t`<li class="nav-item dropdown"><button @click="${this._toggleDropdown}" data-idx="${i}" aria-expanded="${n?"true":"false"}" aria-haspopup="true" class="nav-link dropdown-toggle ${n?"show":""}">${e.label}</button><div class="dropdown-menu ${n?"show":""}">${o}</div></li>`}renderNavItemLink(e,i=[]){if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return t`<jio-navbar-link .class="${s(i.join(" "))}" .locationPathname="${s(this.locationPathname)}" .property="${this.property}" ?header="${e.header}" href="${e.link}" title="${s(e.title)}">${e.header?t`<strong>${e.label}</strong>`:e.label}</jio-navbar-link>`}_clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled}_handleSearchboxClick(){this.menuToggled&&(this.menuToggled=!1)}_toggleDropdown(e){e.preventDefault(),e.stopPropagation();const i=e.currentTarget.dataset;this.visibleMenu===parseInt(i.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(i.idx||"-1",10)}};m.styles=[r,p],e([a()],m.prototype,"property",void 0),e([a({type:Boolean})],m.prototype,"showSearchBox",void 0),e([a()],m.prototype,"locationPathname",void 0),e([c()],m.prototype,"visibleMenu",void 0),e([c()],m.prototype,"menuToggled",void 0),m=e([b(),i("jio-navbar")],m);
|
|
7
7
|
//# sourceMappingURL=jio-navbar.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jio-navbar.esm.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js","../src/jio-navbar.ts"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n",null],"names":["t","r","state","Navbar","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","visibleMenu","handleDocumentClick","bind","connectedCallback","document","addEventListener","disconnectedCallback","removeEventListener","cdfMenuItems","label","msg","link"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI,+vJCe1C,IAEaC,EAAA,gBACXC,cAEAC,QAMAC,KAAAC,SAAA,yBAQgBD,KAAAE,eAA6B,EAE7CF,KAAAG,iBAAAC,SAAAC,SASAL,KAAAM,aAAA,sBAc0BN,KAAAO,oBAAAP,KAAAO,oBAAAC,KAAAR,KAKG,CAK7BS,oBAIeV,MAAAU,
|
|
1
|
+
{"version":3,"file":"jio-navbar.esm.js","sources":["../node_modules/@lit/reactive-element/decorators/state.js","../src/jio-navbar.ts"],"sourcesContent":["import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n",null],"names":["t","r","state","Navbar","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","visibleMenu","handleDocumentClick","bind","connectedCallback","document","addEventListener","disconnectedCallback","removeEventListener","cdfMenuItems","label","msg","link"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI,+vJCe1C,IAEaC,EAAA,gBACXC,cAEAC,QAMAC,KAAAC,SAAA,yBAQgBD,KAAAE,eAA6B,EAE7CF,KAAAG,iBAAAC,SAAAC,SASAL,KAAAM,aAAA,sBAc0BN,KAAAO,oBAAAP,KAAAO,oBAAAC,KAAAR,KAKG,CAK7BS,oBAIeV,MAAAU,oBAgJCC,SAAAC,iBAAS,QAAAX,KAAAO,oBAmBJ,CAqBrBK,uBAgBAb,MAA4Ba,uBAK5BF,SAA6BG,oBAAA,QAAAb,KAAAO,oBAM7B,CAUDA,sBAEOP,kBAAO,CACb,UAEC,MAAAc,EAAA,CACF,CAAAC,MAAAC,EAAA,gBAAAC,KAAA","x_google_ignoreList":[0]}
|