@jenkinsci/jenkins-io-components 1.15.2 → 1.15.4
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 +2 -2
- package/build/jio-navbar.cjs.js.map +1 -1
- package/build/jio-navbar.esm.js +1 -1
- package/build/jio-navbar.esm.js.map +1 -1
- package/build/jio-searchbox.cjs.js +1 -1
- package/build/jio-searchbox.cjs.js.map +1 -1
- package/build/jio-searchbox.d.ts +1 -1
- package/build/jio-searchbox.esm.js +1 -1
- package/build/jio-searchbox.esm.js.map +1 -1
- package/custom-elements.json +12 -0
- package/package.json +1 -2
- package/build/index-0a1b5dcb.cjs.js +0 -2
- package/build/index-0a1b5dcb.cjs.js.map +0 -1
- package/build/index-b9b675fc.esm.js +0 -3
- package/build/index-b9b675fc.esm.js.map +0 -1
package/build/jio-navbar.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
System.register(["./query-assigned-elements-58321e7c.cjs.js","./lit-element-e70ed82a.cjs.js","./property-2f78c0fb.cjs.js","./jio-navbar-link.cjs.js","./jio-cdf-logo.cjs.js","./jio-searchbox.cjs.js","./global-28ace85d.cjs.js"],(function(e,n){var t,o,i,r,a,l,s,c,u,
|
|
1
|
+
System.register(["./query-assigned-elements-58321e7c.cjs.js","./lit-element-e70ed82a.cjs.js","./property-2f78c0fb.cjs.js","./jio-navbar-link.cjs.js","./jio-cdf-logo.cjs.js","./jio-searchbox.cjs.js","./global-28ace85d.cjs.js"],(function(e,n){var t,o,i,r,a,l,s,c,d,u,b,p,f,k,m,g,h,w;function y(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,r=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw r}}}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(){return j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var o=O(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:t):i.value}},j.apply(this,arguments)}function O(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=A(e)););return e}function C(e,n){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},C(e,n)}function P(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=A(e);if(n){var i=A(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return D(this,t)}}function D(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function T(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){M(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function M(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/function J(e){return l(M(M({},e),{},{state:!0}))}return{setters:[function(e){t=e._,o=e.e},function(e){i=e.i,r=e.s,a=e.y},function(e){l=e.e},function(e){s=e.l},function(e){},function(e){},function(e){c=e.s}],execute:function(){w=i(u||(u=I(["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-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap: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:.375;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}.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}"]))),y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&P(e,n)}(r,e);var n,t,o,i=D(r);function r(){var e;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),(e=i.call(this)).property="https://www.jenkins.io",e.showSearchBox=!1,e.locationPathname=location.pathname,e.visibleMenu=-1,e.menuToggled=!1,e.handleDocumentClick=e.handleDocumentClick.bind(A(e)),e}return n=r,t=[{key:"connectedCallback",value:function(){O(T(r.prototype),"connectedCallback",this).call(this),document.addEventListener("click",this.handleDocumentClick)}},{key:"disconnectedCallback",value:function(){O(T(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleDocumentClick",value:function(){this.visibleMenu=-1}},{key:"render",value:function(){var e=this,n=[{label:"Blog",link:"/node"},{label:"Documentation",link:[{label:"User Guide",link:"/doc/book",header:!0},{label:"- Installing Jenkins",link:"/doc/book/installing/"},{label:"- Jenkins Pipeline",link:"/doc/book/pipeline/"},{label:"- Managing Jenkins",link:"/doc/book/managing/"},{label:"- Securing Jenkins",link:"/doc/book/security/"},{label:"- System Administration",link:"/doc/book/system-administration/"},{label:"- Troubleshooting Jenkins",link:"/doc/book/troubleshooting/"},{label:"- Terms and Definitions",link:"/doc/book/glossary/"},{label:"Solution Pages",link:"/solutions",header:!0},{label:"Tutorials",link:"/doc/tutorials",header:!0},{label:"- Guided Tour",link:"/doc/pipeline/tour/getting-started/"},{label:"- More Tutorials",link:"/doc/tutorials/"},{label:"Developer Guide",link:"/doc/developer",header:!0},{label:"Contributor Guide",link:"/participate",header:!0}]},{label:"Plugins",link:"https://plugins.jenkins.io/"},{label:"Community",link:[{label:"Overview",link:"/participate/"},{label:"Chat",link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:"Meet",link:"/projects/jam/"},{label:"Events",link:"/events/"},{label:"Forum",link:"https://community.jenkins.io/"},{label:"Issue Tracker",link:"https://issues.jenkins.io/"},{label:"Mailing Lists",link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:"Roadmap",link:"/project/roadmap/"},{label:"Account Management",link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:"Special Interest Groups",link:"/sigs/",header:!0},{label:"- Advocacy and Outreach",link:"/sigs/advocacy-and-outreach/"},{label:"- Chinese Localization",link:"/sigs/chinese-localization/"},{label:"- Cloud Native",link:"/sigs/cloud-native/"},{label:"- Documentation",link:"/sigs/docs/"},{label:"- Google Summer of Code",link:"/sigs/gsoc/"},{label:"- Hardware and EDA",link:"/sigs/hw-and-eda/"},{label:"- Pipeline Authoring",link:"/sigs/pipeline-authoring/"},{label:"- Platform",link:"/sigs/platform/"},{label:"- User Experience",link:"/sigs/ux/"}]},{label:"Subprojects",link:[{label:"Overview",link:"/projects/"},{label:"Google Summer of Code in Jenkins",link:"/projects/gsoc/"},{label:"Infrastructure",link:"/projects/infrastructure/"},{label:"CI/CD and Jenkins Area Meetups",link:"/projects/jam/"},{label:"Jenkins Configuration as Code",link:"/projects/jcasc/"},{label:"Jenkins Operator",link:"/projects/jenkins-operator/"},{label:"Jenkins Remoting",link:"/projects/remoting/"},{label:"Document Jenkins on Kubernetes",link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:"About",link:[{label:"Roadmap",link:"/project/roadmap/"},{label:"Security",link:"/security/"},{label:"Press",link:"/press/"},{label:"Awards",link:"/awards/"},{label:"Conduct",link:"/project/conduct/"},{label:"Artwork",link:"/artwork/"}]},{label:"English",link:[{label:"中文 Chinese",link:"/zh/"}]}].map((function(n,t){return n.link&&Array.isArray(n.link)?e.renderNavItemDropdown(n,t,e.visibleMenu===t):a(d||(d=I(['<li class="nav-item">',"</li>"])),e.renderNavItemLink(n))})),t=a(b||(b=I([""])));return this.showSearchBox&&(t=a(p||(p=I(["<jio-searchbox></jio-searchbox>"])))),a(f||(f=I(['<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="false" aria-label="Toggle navigation"><ion-icon name="menu-outline" title="Toggle Menu Visible"></ion-icon></button><div class="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?"show":"",this.renderNavItemDropdown({label:a(k||(k=I(["<jio-cdf-logo></jio-cdf-logo>"]))),link:[{label:"What is CDF?",link:"https://cd.foundation/"},{label:"Jenkins X",link:"https://jenkins-x.io/"},{label:"Tekton",link:"https://cloud.google.com/tekton/"},{label:"Spinnaker",link:"https://www.spinnaker.io/"}]},99,99===this.visibleMenu),n,this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"]),this.handleSlotchange,t)}},{key:"handleSlotchange",value:function(e){var n,t=e.target,o=t.assignedElements(),i=t.parentNode,r=v(o);try{for(r.s();!(n=r.n()).done;){var a,l=v(n.value.querySelectorAll("jio-navbar-link"));try{for(l.s();!(a=l.n()).done;){var s=a.value,c=document.createElement("li");c.className="nav-item",c.appendChild(s),i.appendChild(c)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"renderNavItemDropdown",value:function(e,n,t){var o=this;if(!Array.isArray(e.link))return this.renderNavItemLink(e);var i=e.link.map((function(e){return o.renderNavItemLink(e,["dropdown-item feature"])}));return a(m||(m=I(['<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,n,t?"true":"false",t?"show":"",e.label,t?"show":"",i)}},{key:"renderNavItemLink",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return a(g||(g=I(['<jio-navbar-link .class="','" .locationPathname="','" .property="','" ?header="','" href="','" title="','">',"</jio-navbar-link>"])),s(n.join(" ")),s(this.locationPathname),this.property,e.header,e.link,s(e.title),e.header?a(h||(h=I(["<strong>","</strong>"])),e.label):e.label)}},{key:"_clickCollapseButton",value:function(e){e.preventDefault(),this.menuToggled=!this.menuToggled}},{key:"_toggleDropdown",value:function(e){e.preventDefault(),e.stopPropagation();var n=e.currentTarget.dataset;this.visibleMenu===parseInt(n.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(n.idx||"-1",10)}}],t&&j(n.prototype,t),o&&j(n,o),Object.defineProperty(n,"prototype",{writable:!1}),r}(r),y.styles=[c,w],t([l()],y.prototype,"property",void 0),t([l({type:Boolean})],y.prototype,"showSearchBox",void 0),t([l()],y.prototype,"locationPathname",void 0),t([J()],y.prototype,"visibleMenu",void 0),t([J()],y.prototype,"menuToggled",void 0),y=t([o("jio-navbar")],y)}}}));
|
|
6
|
+
*/function E(e){return l(z(z({},e),{},{state:!0}))}return{setters:[function(e){t=e._,o=e.e},function(e){i=e.i,r=e.s,a=e.y},function(e){l=e.e},function(e){s=e.l},function(e){},function(e){},function(e){c=e.s}],execute:function(){h=i(d||(d=T(["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-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap: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:.375;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}"]))),w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&C(e,n)}(r,e);var n,t,o,i=P(r);function r(){var e;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),(e=i.call(this)).property="https://www.jenkins.io",e.showSearchBox=!1,e.locationPathname=location.pathname,e.visibleMenu=-1,e.menuToggled=!1,e.handleDocumentClick=e.handleDocumentClick.bind(S(e)),e}return n=r,t=[{key:"connectedCallback",value:function(){j(A(r.prototype),"connectedCallback",this).call(this),document.addEventListener("click",this.handleDocumentClick)}},{key:"disconnectedCallback",value:function(){j(A(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleDocumentClick",value:function(){this.visibleMenu=-1}},{key:"render",value:function(){var e=this,n=[{label:"Blog",link:"/node"},{label:"Documentation",link:[{label:"User Guide",link:"/doc/book",header:!0},{label:"- Installing Jenkins",link:"/doc/book/installing/"},{label:"- Jenkins Pipeline",link:"/doc/book/pipeline/"},{label:"- Managing Jenkins",link:"/doc/book/managing/"},{label:"- Securing Jenkins",link:"/doc/book/security/"},{label:"- System Administration",link:"/doc/book/system-administration/"},{label:"- Troubleshooting Jenkins",link:"/doc/book/troubleshooting/"},{label:"- Terms and Definitions",link:"/doc/book/glossary/"},{label:"Solution Pages",link:"/solutions",header:!0},{label:"Tutorials",link:"/doc/tutorials",header:!0},{label:"- Guided Tour",link:"/doc/pipeline/tour/getting-started/"},{label:"- More Tutorials",link:"/doc/tutorials/"},{label:"Developer Guide",link:"/doc/developer",header:!0},{label:"Contributor Guide",link:"/participate",header:!0}]},{label:"Plugins",link:"https://plugins.jenkins.io/"},{label:"Community",link:[{label:"Overview",link:"/participate/"},{label:"Chat",link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:"Meet",link:"/projects/jam/"},{label:"Events",link:"/events/"},{label:"Forum",link:"https://community.jenkins.io/"},{label:"Issue Tracker",link:"https://issues.jenkins.io/"},{label:"Mailing Lists",link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:"Roadmap",link:"/project/roadmap/"},{label:"Account Management",link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:"Special Interest Groups",link:"/sigs/",header:!0},{label:"- Advocacy and Outreach",link:"/sigs/advocacy-and-outreach/"},{label:"- Chinese Localization",link:"/sigs/chinese-localization/"},{label:"- Cloud Native",link:"/sigs/cloud-native/"},{label:"- Documentation",link:"/sigs/docs/"},{label:"- Google Summer of Code",link:"/sigs/gsoc/"},{label:"- Hardware and EDA",link:"/sigs/hw-and-eda/"},{label:"- Pipeline Authoring",link:"/sigs/pipeline-authoring/"},{label:"- Platform",link:"/sigs/platform/"},{label:"- User Experience",link:"/sigs/ux/"}]},{label:"Subprojects",link:[{label:"Overview",link:"/projects/"},{label:"Google Summer of Code in Jenkins",link:"/projects/gsoc/"},{label:"Infrastructure",link:"/projects/infrastructure/"},{label:"CI/CD and Jenkins Area Meetups",link:"/projects/jam/"},{label:"Jenkins Configuration as Code",link:"/projects/jcasc/"},{label:"Jenkins Operator",link:"/projects/jenkins-operator/"},{label:"Jenkins Remoting",link:"/projects/remoting/"},{label:"Document Jenkins on Kubernetes",link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:"About",link:[{label:"Roadmap",link:"/project/roadmap/"},{label:"Security",link:"/security/"},{label:"Press",link:"/press/"},{label:"Awards",link:"/awards/"},{label:"Conduct",link:"/project/conduct/"},{label:"Artwork",link:"/artwork/"}]},{label:"English",link:[{label:"中文 Chinese",link:"/zh/"}]}].map((function(n,t){return n.link&&Array.isArray(n.link)?e.renderNavItemDropdown(n,t,e.visibleMenu===t):a(u||(u=T(['<li class="nav-item">',"</li>"])),e.renderNavItemLink(n))})),t=null;return this.showSearchBox&&(t=a(b||(b=T(["<jio-searchbox></jio-searchbox>"])))),a(p||(p=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="','" 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:a(f||(f=T(["<jio-cdf-logo></jio-cdf-logo>"]))),link:[{label:"What is CDF?",link:"https://cd.foundation/"},{label:"Jenkins X",link:"https://jenkins-x.io/"},{label:"Tekton",link:"https://tekton.dev/"},{label:"Spinnaker",link:"https://www.spinnaker.io/"}]},99,99===this.visibleMenu),n,this.renderNavItemLink({link:"/download/",label:"Download"},["btn btn-outline-secondary"]),this.handleSlotchange,t)}},{key:"handleSlotchange",value:function(e){var n,t=e.target,o=t.assignedElements(),i=t.parentNode,r=y(o);try{for(r.s();!(n=r.n()).done;){var a,l=y(n.value.querySelectorAll("jio-navbar-link"));try{for(l.s();!(a=l.n()).done;){var s=a.value,c=document.createElement("li");c.className="nav-item",c.appendChild(s),i.appendChild(c)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){r.e(e)}finally{r.f()}}},{key:"renderNavItemDropdown",value:function(e,n,t){var o=this;if(!Array.isArray(e.link))return this.renderNavItemLink(e);var i=e.link.map((function(e){return o.renderNavItemLink(e,["dropdown-item feature"])}));return a(k||(k=T(['<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,n,t?"true":"false",t?"show":"",e.label,t?"show":"",i)}},{key:"renderNavItemLink",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Array.isArray(e.link))throw new Error("dropdown passed into render item");return a(m||(m=T(['<jio-navbar-link .class="','" .locationPathname="','" .property="','" ?header="','" href="','" title="','">',"</jio-navbar-link>"])),s(n.join(" ")),s(this.locationPathname),this.property,e.header,e.link,s(e.title),e.header?a(g||(g=T(["<strong>","</strong>"])),e.label):e.label)}},{key:"_clickCollapseButton",value:function(e){e.preventDefault(),this.menuToggled=!this.menuToggled}},{key:"_toggleDropdown",value:function(e){e.preventDefault(),e.stopPropagation();var n=e.currentTarget.dataset;this.visibleMenu===parseInt(n.idx||"-2",10)?this.visibleMenu=-1:this.visibleMenu=parseInt(n.idx||"-1",10)}}],t&&x(n.prototype,t),o&&x(n,o),Object.defineProperty(n,"prototype",{writable:!1}),r}(r),w.styles=[c,h],t([l()],w.prototype,"property",void 0),t([l({type:Boolean})],w.prototype,"showSearchBox",void 0),t([l()],w.prototype,"locationPathname",void 0),t([E()],w.prototype,"visibleMenu",void 0),t([E()],w.prototype,"menuToggled",void 0),w=t([o("jio-navbar")],w)}}}));
|
|
7
7
|
//# 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":["System","register","_export","_context","__decorate","e$1","i","s","y","e","l","styles$1","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","
|
|
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":["System","register","_export","_context","__decorate","e$1","i","s","y","e","l","styles$1","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","styles","Navbar","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","from","test","_unsupportedIterableToArray","length","F","done","value","f","TypeError","err","normalCompletion","didErr","step","next","return","arr","len","arr2","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_get","Reflect","get","bind","property","receiver","base","_superPropBase","desc","getOwnPropertyDescriptor","arguments","apply","this","object","hasOwnProperty","_getPrototypeOf","_setPrototypeOf","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","construct","sham","Proxy","Boolean","valueOf","_isNativeReflectConstruct","result","Super","NewTarget","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","getPrototypeOf","_taggedTemplateLiteral","strings","raw","freeze","defineProperties","ownKeys","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","push","_objectSpread","source","forEach","_defineProperty","getOwnPropertyDescriptors","obj","t","state","subClass","superClass","create","Constructor","protoProps","staticProps","_this","instance","_classCallCheck","_super","showSearchBox","locationPathname","location","pathname","LitElement","document","addEventListener","handleDocumentClick","removeEventListener","label","link"],"mappings":"AACAA,OAAAC,SAAA,CAAA,4CAAA,gCAAA,6BAAA,2BAAA,wBAAA,yBAAA,6BAAA,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAC,EAAA,oBAAAC,QAAAH,EAAAG,OAAAC,WAAAJ,EAAA,cAAA,IAAAE,EAAA,CAAA,GAAAG,MAAAC,QAAAN,KAAAE,EAAA,SAAAF,EAAAO,GAAA,IAAAP,EAAA,OAAA,GAAA,iBAAAA,EAAA,OAAAQ,EAAAR,EAAAO,GAAA,IAAAE,E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,yDAOFA,CAAA,CA7C1BQ,ODfFX,ECiEW3G,EDjEX4G,ECiEW,CAAA,CAAA/D,IAAA,oBAAApB,MAAA,WAKUqB,EAIJyE,EAAAA,EAAAA,WAAAA,oBAAAA,MAAAA,KAAAA,MAAAA,SAAAC,iBAAA,QAAA9D,KAAA+D,oBAmJC,GAmBhB,CAAA5E,IAAA,uBAAApB,MAAA,WAqBiBqB,EAgBjByE,EAAAA,EAAAA,WAAAA,uBAAAA,MAAAA,KAAAA,MAAAA,SAA4BG,oBAAA,QAAAhE,KAAA+D,oBAK5B,GAUD,CAAA5E,IAAA,sBAAApB,MAAA,WAEOiC,kBAAO,CACb,67HAEC,CACF,CAAAiE,MAAA,eAAAC,KAAA,2+DD1SDhB,GAAAvE,EAAAsE,EAAA9F,UAAA+F,GAAAC,GAAAxE,EAAAsE,EAAAE,GAAAjG,OAAAgC,eAAA+D,EAAA,YAAA,CAAAhE,UAAA,ICeE2E,CAAAA,EAAAA"}
|
package/build/jio-navbar.esm.js
CHANGED
|
@@ -3,5 +3,5 @@ import{_ as e,e as i}from"./query-assigned-elements-c33552f3.esm.js";import{i as
|
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/function s(e){return l({...e,state:!0})}const d=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-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap: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:.375;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}.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 c=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:"Blog",link:"/node"},{label:"Documentation",link:[{label:"User Guide",link:"/doc/book",header:!0},{label:"- Installing Jenkins",link:"/doc/book/installing/"},{label:"- Jenkins Pipeline",link:"/doc/book/pipeline/"},{label:"- Managing Jenkins",link:"/doc/book/managing/"},{label:"- Securing Jenkins",link:"/doc/book/security/"},{label:"- System Administration",link:"/doc/book/system-administration/"},{label:"- Troubleshooting Jenkins",link:"/doc/book/troubleshooting/"},{label:"- Terms and Definitions",link:"/doc/book/glossary/"},{label:"Solution Pages",link:"/solutions",header:!0},{label:"Tutorials",link:"/doc/tutorials",header:!0},{label:"- Guided Tour",link:"/doc/pipeline/tour/getting-started/"},{label:"- More Tutorials",link:"/doc/tutorials/"},{label:"Developer Guide",link:"/doc/developer",header:!0},{label:"Contributor Guide",link:"/participate",header:!0}]},{label:"Plugins",link:"https://plugins.jenkins.io/"},{label:"Community",link:[{label:"Overview",link:"/participate/"},{label:"Chat",link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:"Meet",link:"/projects/jam/"},{label:"Events",link:"/events/"},{label:"Forum",link:"https://community.jenkins.io/"},{label:"Issue Tracker",link:"https://issues.jenkins.io/"},{label:"Mailing Lists",link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:"Roadmap",link:"/project/roadmap/"},{label:"Account Management",link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:"Special Interest Groups",link:"/sigs/",header:!0},{label:"- Advocacy and Outreach",link:"/sigs/advocacy-and-outreach/"},{label:"- Chinese Localization",link:"/sigs/chinese-localization/"},{label:"- Cloud Native",link:"/sigs/cloud-native/"},{label:"- Documentation",link:"/sigs/docs/"},{label:"- Google Summer of Code",link:"/sigs/gsoc/"},{label:"- Hardware and EDA",link:"/sigs/hw-and-eda/"},{label:"- Pipeline Authoring",link:"/sigs/pipeline-authoring/"},{label:"- Platform",link:"/sigs/platform/"},{label:"- User Experience",link:"/sigs/ux/"}]},{label:"Subprojects",link:[{label:"Overview",link:"/projects/"},{label:"Google Summer of Code in Jenkins",link:"/projects/gsoc/"},{label:"Infrastructure",link:"/projects/infrastructure/"},{label:"CI/CD and Jenkins Area Meetups",link:"/projects/jam/"},{label:"Jenkins Configuration as Code",link:"/projects/jcasc/"},{label:"Jenkins Operator",link:"/projects/jenkins-operator/"},{label:"Jenkins Remoting",link:"/projects/remoting/"},{label:"Document Jenkins on Kubernetes",link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:"About",link:[{label:"Roadmap",link:"/project/roadmap/"},{label:"Security",link:"/security/"},{label:"Press",link:"/press/"},{label:"Awards",link:"/awards/"},{label:"Conduct",link:"/project/conduct/"},{label:"Artwork",link:"/artwork/"}]},{label:"English",link:[{label:"中文 Chinese",link:"/zh/"}]}].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}));let i=t``;return this.showSearchBox&&(i=t`<jio-searchbox></jio-searchbox>`),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="false" aria-label="Toggle navigation"><ion-icon name="menu-outline" title="Toggle Menu Visible"></ion-icon></button><div class="collapse ${this.menuToggled?"show":""}"><ul class="nav navbar-nav mr-auto">${this.renderNavItemDropdown({label:t`<jio-cdf-logo></jio-cdf-logo>`,link:[{label:"What is CDF?",link:"https://cd.foundation/"},{label:"Jenkins X",link:"https://jenkins-x.io/"},{label:"Tekton",link:"https://cloud.google.com/tekton/"},{label:"Spinnaker",link:"https://www.spinnaker.io/"}]},99,99===this.visibleMenu)}</ul><ul class="nav navbar-nav ml-auto">${e}<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>${i}</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="${a(i.join(" "))}" .locationPathname="${a(this.locationPathname)}" .property="${this.property}" ?header="${e.header}" href="${e.link}" title="${a(e.title)}">${e.header?t`<strong>${e.label}</strong>`:e.label}</jio-navbar-link>`}_clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled}_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)}};c.styles=[r,d],e([l()],c.prototype,"property",void 0),e([l({type:Boolean})],c.prototype,"showSearchBox",void 0),e([l()],c.prototype,"locationPathname",void 0),e([s()],c.prototype,"visibleMenu",void 0),e([s()],c.prototype,"menuToggled",void 0),c=e([i("jio-navbar")],c);
|
|
6
|
+
*/function s(e){return l({...e,state:!0})}const d=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-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap: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:.375;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 b=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:"Blog",link:"/node"},{label:"Documentation",link:[{label:"User Guide",link:"/doc/book",header:!0},{label:"- Installing Jenkins",link:"/doc/book/installing/"},{label:"- Jenkins Pipeline",link:"/doc/book/pipeline/"},{label:"- Managing Jenkins",link:"/doc/book/managing/"},{label:"- Securing Jenkins",link:"/doc/book/security/"},{label:"- System Administration",link:"/doc/book/system-administration/"},{label:"- Troubleshooting Jenkins",link:"/doc/book/troubleshooting/"},{label:"- Terms and Definitions",link:"/doc/book/glossary/"},{label:"Solution Pages",link:"/solutions",header:!0},{label:"Tutorials",link:"/doc/tutorials",header:!0},{label:"- Guided Tour",link:"/doc/pipeline/tour/getting-started/"},{label:"- More Tutorials",link:"/doc/tutorials/"},{label:"Developer Guide",link:"/doc/developer",header:!0},{label:"Contributor Guide",link:"/participate",header:!0}]},{label:"Plugins",link:"https://plugins.jenkins.io/"},{label:"Community",link:[{label:"Overview",link:"/participate/"},{label:"Chat",link:"/chat/",title:"Chat with the rest of the Jenkins community on IRC"},{label:"Meet",link:"/projects/jam/"},{label:"Events",link:"/events/"},{label:"Forum",link:"https://community.jenkins.io/"},{label:"Issue Tracker",link:"https://issues.jenkins.io/"},{label:"Mailing Lists",link:"/mailing-lists/",title:"Browse Jenkins mailing list archives and/ or subscribe to lists"},{label:"Roadmap",link:"/project/roadmap/"},{label:"Account Management",link:"https://accounts.jenkins.io/",title:"Create/manage your account for accessing wiki, issue tracker, etc"},{label:"Special Interest Groups",link:"/sigs/",header:!0},{label:"- Advocacy and Outreach",link:"/sigs/advocacy-and-outreach/"},{label:"- Chinese Localization",link:"/sigs/chinese-localization/"},{label:"- Cloud Native",link:"/sigs/cloud-native/"},{label:"- Documentation",link:"/sigs/docs/"},{label:"- Google Summer of Code",link:"/sigs/gsoc/"},{label:"- Hardware and EDA",link:"/sigs/hw-and-eda/"},{label:"- Pipeline Authoring",link:"/sigs/pipeline-authoring/"},{label:"- Platform",link:"/sigs/platform/"},{label:"- User Experience",link:"/sigs/ux/"}]},{label:"Subprojects",link:[{label:"Overview",link:"/projects/"},{label:"Google Summer of Code in Jenkins",link:"/projects/gsoc/"},{label:"Infrastructure",link:"/projects/infrastructure/"},{label:"CI/CD and Jenkins Area Meetups",link:"/projects/jam/"},{label:"Jenkins Configuration as Code",link:"/projects/jcasc/"},{label:"Jenkins Operator",link:"/projects/jenkins-operator/"},{label:"Jenkins Remoting",link:"/projects/remoting/"},{label:"Document Jenkins on Kubernetes",link:"/sigs/docs/gsod/2020/projects/document-jenkins-on-kubernetes/"}]},{label:"About",link:[{label:"Roadmap",link:"/project/roadmap/"},{label:"Security",link:"/security/"},{label:"Press",link:"/press/"},{label:"Awards",link:"/awards/"},{label:"Conduct",link:"/project/conduct/"},{label:"Artwork",link:"/artwork/"}]},{label:"English",link:[{label:"中文 Chinese",link:"/zh/"}]}].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}));let i=null;return this.showSearchBox&&(i=t`<jio-searchbox></jio-searchbox>`),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:[{label:"What is CDF?",link:"https://cd.foundation/"},{label:"Jenkins X",link:"https://jenkins-x.io/"},{label:"Tekton",link:"https://tekton.dev/"},{label:"Spinnaker",link:"https://www.spinnaker.io/"}]},99,99===this.visibleMenu)}</ul><ul class="nav navbar-nav ml-auto">${e}<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>${i}</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="${a(i.join(" "))}" .locationPathname="${a(this.locationPathname)}" .property="${this.property}" ?header="${e.header}" href="${e.link}" title="${a(e.title)}">${e.header?t`<strong>${e.label}</strong>`:e.label}</jio-navbar-link>`}_clickCollapseButton(e){e.preventDefault(),this.menuToggled=!this.menuToggled}_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)}};b.styles=[r,d],e([l()],b.prototype,"property",void 0),e([l({type:Boolean})],b.prototype,"showSearchBox",void 0),e([l()],b.prototype,"locationPathname",void 0),e([s()],b.prototype,"visibleMenu",void 0),e([s()],b.prototype,"menuToggled",void 0),b=e([i("jio-navbar")],b);
|
|
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","LitElement","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","connectedCallback","document","addEventListener","handleDocumentClick","disconnectedCallback","removeEventListener","label","link"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI,
|
|
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","LitElement","constructor","super","this","property","showSearchBox","locationPathname","location","pathname","connectedCallback","document","addEventListener","handleDocumentClick","disconnectedCallback","removeEventListener","label","link"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI,wzJCWxCC,EAAA,cAAAC,EAGWC,cACXC,QAMAC,KAAoCC,SAAA,yBAOvBD,KAAAE,eAAkB,EAGfF,KAAAG,iBAA6BC,SAAAC,SAStCL,kBAAkB,EASlBA,kBAAqB,8DAOF,CAKjBM,oBAKUP,MAAAO,oBAIJC,SAAAC,iBAAA,QAAAR,KAAAS,oBAmJC,CAmBhBC,uBAqBiBX,MAAAW,uBAgBjBH,SAA4BI,oBAAA,QAAAX,KAAAS,oBAK5B,CAUDA,sBAEOT,kBAAO,CACb,UAEC,2sHAAA,CACF,CAAAY,MAAA,eAAAC,KAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./query-assigned-elements-58321e7c.cjs.js","./lit-element-e70ed82a.cjs.js"],(function(e,t){var r,
|
|
1
|
+
System.register(["./query-assigned-elements-58321e7c.cjs.js","./lit-element-e70ed82a.cjs.js"],(function(e,t){var n,r,o,c;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},a.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}return{setters:[function(e){n=e._,r=e.e},function(e){o=e.s}],execute:function(){c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(c,e);var t,n,r,o=l(c);function c(){var e;return i(this,c),(e=o.apply(this,arguments))._isReady=!1,e}return t=c,(n=[{key:"isReady",get:function(){return this._isReady}},{key:"addCss",value:function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href","https://cdn.jsdelivr.net/npm/@docsearch/css@3"),t.setAttribute("media","all"),e.appendChild(t)}},{key:"connectedCallback",value:function(){var e=this;a(p(c.prototype),"connectedCallback",this).call(this),[document.head,this.renderRoot].forEach((function(t){return e.addCss(t)}));var t=document.createElement("script");t.setAttribute("defer",""),t.setAttribute("src","https://cdn.jsdelivr.net/npm/@docsearch/js@3"),document.head.appendChild(t),t.addEventListener("load",(function(){var t=document.createElement("div");e.renderRoot.appendChild(t),window.docsearch({container:t,indexName:"jenkins",appId:"M6L7Q4Z8HS",apiKey:"52f8dfbff76ffd9106f1c68fee16154b",searchParameters:{facetFilters:["lang:en"]}}),e._isReady=!0}))}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o),c=n([r("jio-searchbox")],c)}}}));
|
|
2
2
|
//# sourceMappingURL=jio-searchbox.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jio-searchbox.cjs.js","sources":["../src/jio-searchbox.ts"],"sourcesContent":[null],"names":["_this","_classCallCheck","this","
|
|
1
|
+
{"version":3,"file":"jio-searchbox.cjs.js","sources":["../src/jio-searchbox.ts"],"sourcesContent":[null],"names":["Searchbox","_this","_classCallCheck","this","arguments","_isReady","LitElement","root","linkFileEl","document","createElement","setAttribute"],"mappings":"2iEAOG,SAAAA,IAAA,IAAAC,EAAA,OAAAC,EAAAC,KAAAH,IACFC,eAAAG,YAGYC,UAAA,EACXJ,CAAA,CANiBK,kCAUjB,WAEA,OAAWH,KAAEE,QASa,uBA4B3B,SAAAE,GAGC,IAA+BC,EAAAC,SAAAC,cAAA,QAC7BF,EAAeG,mBAAY,cAC5BH,EAAAG,aAAA,OAAA,YACFH,EAAAG,aAAA,0yBAvDkBL,CAAAA,EAAAA"}
|
package/build/jio-searchbox.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ declare global {
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
export declare class Searchbox extends LitElement {
|
|
8
|
-
static styles: import("lit").CSSResult;
|
|
9
8
|
get isReady(): boolean;
|
|
10
9
|
private _isReady;
|
|
10
|
+
addCss(root: HTMLElement | ShadowRoot): void;
|
|
11
11
|
connectedCallback(): void;
|
|
12
12
|
}
|
|
13
13
|
declare global {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,e as t}from"./query-assigned-elements-c33552f3.esm.js";import{
|
|
1
|
+
import{_ as e,e as t}from"./query-assigned-elements-c33552f3.esm.js";import{s}from"./lit-element-213f99b9.esm.js";let d=class extends s{constructor(){super(...arguments),this._isReady=!1}get isReady(){return this._isReady}addCss(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href","https://cdn.jsdelivr.net/npm/@docsearch/css@3"),t.setAttribute("media","all"),e.appendChild(t)}connectedCallback(){super.connectedCallback(),[document.head,this.renderRoot].forEach((e=>this.addCss(e)));const e=document.createElement("script");e.setAttribute("defer",""),e.setAttribute("src","https://cdn.jsdelivr.net/npm/@docsearch/js@3"),document.head.appendChild(e),e.addEventListener("load",(()=>{const e=document.createElement("div");this.renderRoot.appendChild(e),window.docsearch({container:e,indexName:"jenkins",appId:"M6L7Q4Z8HS",apiKey:"52f8dfbff76ffd9106f1c68fee16154b",searchParameters:{facetFilters:["lang:en"]}}),this._isReady=!0}))}};d=e([t("jio-searchbox")],d);
|
|
2
2
|
//# sourceMappingURL=jio-searchbox.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jio-searchbox.esm.js","sources":["../src/jio-searchbox.ts"],"sourcesContent":[null],"names":["LitElement","constructor","super","arguments","this","_isReady","isReady","
|
|
1
|
+
{"version":3,"file":"jio-searchbox.esm.js","sources":["../src/jio-searchbox.ts"],"sourcesContent":[null],"names":["LitElement","constructor","super","arguments","this","_isReady","isReady","addCss","root","linkFileEl","document","createElement","setAttribute"],"mappings":"wHAMa,cAAMA,EAChBC,cACFC,SAAAC,WAGYC,KAAAC,UAAA,CACX,CAIOC,cAEP,OAAWF,KAAEC,QASa,CA4B3BE,OAAAC,GAGC,MAAUC,EAAqBC,SAAAC,cAAA,QAC7BF,EAAeG,mBAAY,cAC5BH,EAAAG,aAAA,OAAA,YACFH,EAAAG,aAAA,OAAA"}
|
package/custom-elements.json
CHANGED
|
@@ -1288,6 +1288,18 @@
|
|
|
1288
1288
|
},
|
|
1289
1289
|
"privacy": "private",
|
|
1290
1290
|
"default": "false"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"kind": "method",
|
|
1294
|
+
"name": "addCss",
|
|
1295
|
+
"parameters": [
|
|
1296
|
+
{
|
|
1297
|
+
"name": "root",
|
|
1298
|
+
"type": {
|
|
1299
|
+
"text": "HTMLElement | ShadowRoot"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1291
1303
|
}
|
|
1292
1304
|
],
|
|
1293
1305
|
"superclass": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jenkinsci/jenkins-io-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "Random parts shared between jenkins.io",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"author": "Gavin Mogan <npm@gavinmogan.com> (https://www.gavinmogan.com/)",
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@docsearch/js": "^3.3.0",
|
|
56
55
|
"lit": "^2.4.0",
|
|
57
56
|
"outdent": "^0.8.0"
|
|
58
57
|
},
|