@jenkinsci/jenkins-io-components 1.25.0 → 1.27.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-locale.cjs.js +1 -1
- package/build/jio-locale.esm.js +1 -1
- package/build/jio-navbar.cjs.js +2 -2
- package/build/jio-navbar.cjs.js.map +1 -1
- package/build/jio-navbar.d.ts +5 -1
- package/build/jio-navbar.esm.js +2 -2
- package/build/jio-navbar.esm.js.map +1 -1
- package/custom-elements.json +21 -2
- package/package.json +1 -1
package/build/jio-locale.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./lit-localize-92178a16.cjs.js"],function(_export,_context){"use strict";var e,o,_e,a,c;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}return{setters:[function(_litLocalize001CjsJs){e=_litLocalize001CjsJs.c;}],execute:function(){o=["en","es-ES","fr-CA"];_e=e({sourceLocale:"en",targetLocales:o,loadLocale:function loadLocale(e){return"en"===e?_context.import("./generated/locales/en.cjs.js"):"es-ES"===e?_context.import("./generated/locales/es-ES.cjs.js"):"fr-CA"===e?_context.import("./generated/locales/fr-CA.cjs.js"):Promise.reject("".concat(e," not found"));}});a=_e.getLocale;c=_e.setLocale;_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:e=new URL(window.location.href).searchParams.get("locale")||new Intl.NumberFormat().resolvedOptions().locale||"en";_context.next=3;return c(e);case 3:case"end":return _context.stop();}},_callee);}))().catch(function(e){return console.error("Error loading locale: ".concat(e.message));}),window.addEventListener("jio-locale-changed",function(e){var o=e,a=o.detail.locale;c(a);});}};});
|
|
1
|
+
System.register(["./lit-localize-92178a16.cjs.js"],function(_export,_context){"use strict";var e,o,_e,a,l;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return exports;};var exports={},Op=Object.prototype,hasOwn=Op.hasOwnProperty,defineProperty=Object.defineProperty||function(obj,key,desc){obj[key]=desc.value;},$Symbol="function"==typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";function define(obj,key,value){return Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}),obj[key];}try{define({},"");}catch(err){define=function(obj,key,value){return obj[key]=value;};}function wrap(innerFn,outerFn,self,tryLocsList){var protoGenerator=outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator,generator=Object.create(protoGenerator.prototype),context=new Context(tryLocsList||[]);return defineProperty(generator,"_invoke",{value:makeInvokeMethod(innerFn,self,context)}),generator;}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)};}catch(err){return{type:"throw",arg:err};}}exports.wrap=wrap;var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var IteratorPrototype={};define(IteratorPrototype,iteratorSymbol,function(){return this;});var getProto=Object.getPrototypeOf,NativeIteratorPrototype=getProto&&getProto(getProto(values([])));NativeIteratorPrototype&&NativeIteratorPrototype!==Op&&hasOwn.call(NativeIteratorPrototype,iteratorSymbol)&&(IteratorPrototype=NativeIteratorPrototype);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(IteratorPrototype);function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){define(prototype,method,function(arg){return this._invoke(method,arg);});});}function AsyncIterator(generator,PromiseImpl){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if("throw"!==record.type){var result=record.arg,value=result.value;return value&&"object"==typeof value&&hasOwn.call(value,"__await")?PromiseImpl.resolve(value.__await).then(function(value){invoke("next",value,resolve,reject);},function(err){invoke("throw",err,resolve,reject);}):PromiseImpl.resolve(value).then(function(unwrapped){result.value=unwrapped,resolve(result);},function(error){return invoke("throw",error,resolve,reject);});}reject(record.arg);}var previousPromise;defineProperty(this,"_invoke",{value:function(method,arg){function callInvokeWithMethodAndArg(){return new PromiseImpl(function(resolve,reject){invoke(method,arg,resolve,reject);});}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(innerFn,self,context){var state="suspendedStart";return function(method,arg){if("executing"===state)throw new Error("Generator is already running");if("completed"===state){if("throw"===method)throw arg;return doneResult();}for(context.method=method,context.arg=arg;;){var delegate=context.delegate;if(delegate){var delegateResult=maybeInvokeDelegate(delegate,context);if(delegateResult){if(delegateResult===ContinueSentinel)continue;return delegateResult;}}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if("suspendedStart"===state)throw state="completed",context.arg;context.dispatchException(context.arg);}else"return"===context.method&&context.abrupt("return",context.arg);state="executing";var record=tryCatch(innerFn,self,context);if("normal"===record.type){if(state=context.done?"completed":"suspendedYield",record.arg===ContinueSentinel)continue;return{value:record.arg,done:context.done};}"throw"===record.type&&(state="completed",context.method="throw",context.arg=record.arg);}};}function maybeInvokeDelegate(delegate,context){var methodName=context.method,method=delegate.iterator[methodName];if(undefined===method)return context.delegate=null,"throw"===methodName&&delegate.iterator.return&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method)||"return"!==methodName&&(context.method="throw",context.arg=new TypeError("The iterator does not provide a '"+methodName+"' method")),ContinueSentinel;var record=tryCatch(method,delegate.iterator,context.arg);if("throw"===record.type)return context.method="throw",context.arg=record.arg,context.delegate=null,ContinueSentinel;var info=record.arg;return info?info.done?(context[delegate.resultName]=info.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined),context.delegate=null,ContinueSentinel):info:(context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel);}function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]),2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]),this.tryEntries.push(entry);}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal",delete record.arg,entry.completion=record;}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}],tryLocsList.forEach(pushTryEntry,this),this.reset(!0);}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod)return iteratorMethod.call(iterable);if("function"==typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1,next=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;return next.value=undefined,next.done=!0,next;};return next.next=next;}}return{next:doneResult};}function doneResult(){return{value:undefined,done:!0};}return GeneratorFunction.prototype=GeneratorFunctionPrototype,defineProperty(Gp,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),defineProperty(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,toStringTagSymbol,"GeneratorFunction"),exports.isGeneratorFunction=function(genFun){var ctor="function"==typeof genFun&&genFun.constructor;return!!ctor&&(ctor===GeneratorFunction||"GeneratorFunction"===(ctor.displayName||ctor.name));},exports.mark=function(genFun){return Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,define(genFun,toStringTagSymbol,"GeneratorFunction")),genFun.prototype=Object.create(Gp),genFun;},exports.awrap=function(arg){return{__await:arg};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,asyncIteratorSymbol,function(){return this;}),exports.AsyncIterator=AsyncIterator,exports.async=function(innerFn,outerFn,self,tryLocsList,PromiseImpl){void 0===PromiseImpl&&(PromiseImpl=Promise);var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList),PromiseImpl);return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next();});},defineIteratorMethods(Gp),define(Gp,toStringTagSymbol,"Generator"),define(Gp,iteratorSymbol,function(){return this;}),define(Gp,"toString",function(){return"[object Generator]";}),exports.keys=function(val){var object=Object(val),keys=[];for(var key in object)keys.push(key);return keys.reverse(),function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next;}return next.done=!0,next;};},exports.values=values,Context.prototype={constructor:Context,reset:function(skipTempReset){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(resetTryEntry),!skipTempReset)for(var name in this)"t"===name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined);},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval;},dispatchException:function(exception){if(this.done)throw exception;var context=this;function handle(loc,caught){return record.type="throw",record.arg=exception,context.next=loc,caught&&(context.method="next",context.arg=undefined),!!caught;}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);}else{if(!hasFinally)throw new Error("try statement without catch or finally");if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc);}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break;}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);var record=finallyEntry?finallyEntry.completion:{};return record.type=type,record.arg=arg,finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):this.complete(record);},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;return"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc),ContinueSentinel;},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,entry.afterLoc),resetTryEntry(entry),ContinueSentinel;}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if("throw"===record.type){var thrown=record.arg;resetTryEntry(entry);}return thrown;}}throw new Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){return this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc},"next"===this.method&&(this.arg=undefined),ContinueSentinel;}},exports;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}return{setters:[function(_litLocalize001CjsJs){e=_litLocalize001CjsJs.c;}],execute:function(){o=["en","es-ES","fr-CA"];_e=e({sourceLocale:"en",targetLocales:o,loadLocale:function loadLocale(e){return"en"===e?_context.import("./generated/locales/en.cjs.js"):"es-ES"===e?_context.import("./generated/locales/es-ES.cjs.js"):"fr-CA"===e?_context.import("./generated/locales/fr-CA.cjs.js"):Promise.reject("".concat(e," not found"));}});a=_e.getLocale;l=_e.setLocale;_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:e=new URL(window.location.href).searchParams.get("locale")||new Intl.NumberFormat().resolvedOptions().locale||"en";_context.next=3;return l(e);case 3:case"end":return _context.stop();}},_callee);}))().catch(function(e){return console.log("Error loading locale: ".concat(e.message));}),window.addEventListener("jio-locale-changed",function(e){var o=e,a=o.detail.locale;l(a);});}};});
|
|
2
2
|
//# sourceMappingURL=jio-locale.cjs.js.map
|
package/build/jio-locale.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as e}from"./lit-localize-a395d291.esm.js";const o=["en","es-ES","fr-CA"],{getLocale:a,setLocale:l}=e({sourceLocale:"en",targetLocales:o,loadLocale:e=>"en"===e?import("./generated/locales/en.esm.js"):"es-ES"===e?import("./generated/locales/es-ES.esm.js"):"fr-CA"===e?import("./generated/locales/fr-CA.esm.js"):Promise.reject(`${e} not found`)});(async()=>{const e=new URL(window.location.href).searchParams.get("locale")||(new Intl.NumberFormat).resolvedOptions().locale||"en";await l(e)})().catch((e=>console.
|
|
1
|
+
import{c as e}from"./lit-localize-a395d291.esm.js";const o=["en","es-ES","fr-CA"],{getLocale:a,setLocale:l}=e({sourceLocale:"en",targetLocales:o,loadLocale:e=>"en"===e?import("./generated/locales/en.esm.js"):"es-ES"===e?import("./generated/locales/es-ES.esm.js"):"fr-CA"===e?import("./generated/locales/fr-CA.esm.js"):Promise.reject(`${e} not found`)});(async()=>{const e=new URL(window.location.href).searchParams.get("locale")||(new Intl.NumberFormat).resolvedOptions().locale||"en";await l(e)})().catch((e=>console.log(`Error loading locale: ${e.message}`))),window.addEventListener("jio-locale-changed",(e=>{const o=e,{locale:a}=o.detail;l(a)}));
|
|
2
2
|
//# sourceMappingURL=jio-locale.esm.js.map
|
package/build/jio-navbar.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./global-0bfaef7b.cjs.js","./lit-localize-92178a16.cjs.js","./jio-locale.cjs.js","./jio-cdf-logo.cjs.js","./jio-navbar-link.cjs.js","./jio-searchbox.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,i,n,
|
|
1
|
+
System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./global-0bfaef7b.cjs.js","./lit-localize-92178a16.cjs.js","./jio-locale.cjs.js","./jio-cdf-logo.cjs.js","./jio-navbar-link.cjs.js","./jio-searchbox.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,i,o,n,t,l,a,r,s,d,c,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,p,m;function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj;}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;},_typeof(obj);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function(){};return{s:F,n:function(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(e){throw e;},f:F};}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 normalCompletion=true,didErr=false,err;return{s:function(){it=it.call(o);},n:function(){var step=it.next();normalCompletion=step.done;return step;},e:function(e){didErr=true;err=e;},f:function(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}/**
|
|
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){o=_litElement003CjsJs.i;n=_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=o(_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}@media(prefers-color-scheme:dark){.navbar[data-theme=auto]{background-color:#000}}.navbar[data-theme=dark]{background-color:#000}.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(_n){_inherits(m,_n);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.theme="light",_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 o;return o=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)),o;}),o=this.showSearchBox?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<jio-searchbox @click=\"","\"></jio-searchbox>"])),this._handleSearchboxClick):l;return t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nav class=\"navbar\" data-theme=\"","\"><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.theme,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,o);}},{key:"handleSlotchange",value:function handleSlotchange(e){var i=e.target,o=i.assignedElements(),n=i.parentNode;var _iterator=_createForOfIteratorHelper(o),_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),n.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,o){var _this3=this;if(!Array.isArray(e.link))return this.renderNavItemLink(e);var n=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,o?"true":"false",o?"show":"",e.label,o?"show":"",n);}},{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;}(n);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([a()],m.prototype,"theme",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","
|
|
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","theme","_this","connectedCallback","document","addEventListener","handleDocumentClick","disconnectedCallback","removeEventListener","visibleMenu","render","_this2","cdfMenuItems","label","msg","link","LitElement"],"mappings":";;;;AAKG,GAAA,QAASA,CAAAA,EAAEA,CAAG,CAAA,CAAA,MAAOC,CAAAA,iCAAMD,CAAAA,MAAEE,OAAM,CAAI,GAAA,mkLCepCC,CAAAA,uBAAAA,EAAAA,EAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,MAAAA,MAAAA,CAAAA,YAAAA,CAAAA,CAAAA,EAIOC,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EACXC,KAAAA,CAAAA,MAAAA,CAAAA,IAAAA,OAMAC,KAAAA,CAAoCC,QAAAA,CAAA,wBAMvBD,CAAAA,KAAAA,CAAAE,eAAkB,CAGfF,CAAAA,KAAAA,CAAAG,iBAA6BC,QAAAC,CAAAA,QAAAA,CAO7CL,KAAAA,CAAgBM,KAAA,CAAA,OAAA,CASTN,KAAAA,YAAkB,CAAA,CAAA,CAAA,CASlBA,KAAAA,YAAqB,CAAA,CAAA,CAAA,wFAOF,QAAAO,KAAA,EAKjBC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,qBAAAA,KAAAA,UAAAA,kBAAAA,CAAAA,CAKUT,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,4BAAAA,IAAAA,OAIJU,QAAAA,CAAAC,iBAAA,OAAAV,CAAAA,IAAAA,CAAAW,oBAgJC,EAmBhBC,GAAAA,GAAAA,wBAAAA,KAAAA,UAAAA,qBAAAA,CAAAA,CAqBiBb,IAAAA,CAAAA,eAAAA,CAAAA,CAAAA,CAAAA,SAAAA,+BAAAA,IAAAA,OAgBjBU,QAAAA,CAA4BI,oBAAA,OAAAb,CAAAA,IAAAA,CAAAW,oBAK5B,EAMAA,GAAAA,GAAAA,uBAAAA,KAAAA,UAAAA,oBAAAA,CAAAA,CAUDX,KAAAc,WAAA,CAAA,CAAA,CAEM,EACLC,GAAAA,GAAAA,UAAAA,KAAAA,UAAAA,OAAAA,CACE,KAAAC,MAAA,MAAA,GAAYC,CAAAA,EAAS,CACtB,CAAAC,MAAAC,CAAA,CAAA,cAAA,CAAA,CAAAC,KAAA,wBACF,CAAA,CAAA,CAAAF,MAAAC,CAAA,CAAA,WAAA,CAAA,CAAAC,KAAA,22NArSmCC,CAIvBvB","x_google_ignoreList":[0]}
|
package/build/jio-navbar.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type NavbarItemLink = {
|
|
|
9
9
|
header?: boolean;
|
|
10
10
|
title?: string;
|
|
11
11
|
};
|
|
12
|
+
export type Theme = 'dark' | 'light' | 'auto';
|
|
12
13
|
export declare class Navbar extends LitElement {
|
|
13
14
|
static styles: any[];
|
|
14
15
|
/**
|
|
@@ -17,10 +18,13 @@ export declare class Navbar extends LitElement {
|
|
|
17
18
|
property: string;
|
|
18
19
|
/**
|
|
19
20
|
* Show search box
|
|
20
|
-
* (doesnt yet work)
|
|
21
21
|
*/
|
|
22
22
|
showSearchBox: Boolean;
|
|
23
23
|
locationPathname: string;
|
|
24
|
+
/**
|
|
25
|
+
* Header theme (light/dark/auto)
|
|
26
|
+
*/
|
|
27
|
+
theme: string;
|
|
24
28
|
/**
|
|
25
29
|
* Keeps track of what menu is opened.
|
|
26
30
|
*
|
package/build/jio-navbar.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{_ as e,e as i}from"./query-assigned-elements-f06332ea.esm.js";import{i as
|
|
1
|
+
import{_ as e,e as i}from"./query-assigned-elements-f06332ea.esm.js";import{i as o,s as n,x as t,A as l}from"./lit-element-1adb71ee.esm.js";import{e as a}from"./property-6d5dc9b4.esm.js";import{s as r,l as s}from"./global-d62b227f.esm.js";import{m as d}from"./lit-localize-a395d291.esm.js";import"./jio-locale.esm.js";import"./jio-cdf-logo.esm.js";import"./jio-navbar-link.esm.js";import"./jio-searchbox.esm.js";import{l as b}from"./localized-decorator-ec94f142.esm.js";
|
|
2
2
|
/**
|
|
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=o`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}@media(prefers-color-scheme:dark){.navbar[data-theme=auto]{background-color:#000}}.navbar[data-theme=dark]{background-color:#000}.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 n{constructor(){super(),this.property="https://www.jenkins.io",this.showSearchBox=!1,this.locationPathname=location.pathname,this.theme="light",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 o;return o=e.link&&Array.isArray(e.link)?this.renderNavItemDropdown(e,i,this.visibleMenu===i):t`<li class="nav-item">${this.renderNavItemLink(e)}</li>`,o})),o=this.showSearchBox?t`<jio-searchbox @click="${this._handleSearchboxClick}"></jio-searchbox>`:l;return t`<nav class="navbar" data-theme="${this.theme}"><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>${o}</nav>`}handleSlotchange(e){const i=e.target,o=i.assignedElements(),n=i.parentNode;for(const e of o)for(const i of e.querySelectorAll("jio-navbar-link")){const e=document.createElement("li");e.className="nav-item",e.appendChild(i),n.appendChild(e)}}renderNavItemDropdown(e,i,o){if(!Array.isArray(e.link))return this.renderNavItemLink(e);const n=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="${o?"true":"false"}" aria-haspopup="true" class="nav-link dropdown-toggle ${o?"show":""}">${e.label}</button><div class="dropdown-menu ${o?"show":""}">${n}</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([a()],m.prototype,"theme",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","
|
|
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","theme","connectedCallback","document","addEventListener","handleDocumentClick","disconnectedCallback","removeEventListener","visibleMenu","render","cdfMenuItems","label","msg","link"],"mappings":";;;;;GAKG,SAASA,EAAEA,GAAG,OAAOC,EAAE,IAAID,EAAEE,OAAM,GAAI,g4JCe1C,IAAMC,gBAA8BC,EAIvBC,cACXC,QAMAC,KAAoCC,SAAA,yBAMvBD,KAAAE,eAAkB,EAGfF,KAAAG,iBAA6BC,SAAAC,SAO7CL,KAAgBM,MAAA,QASTN,kBAAkB,EASlBA,kBAAqB,8DAOF,CAKjBO,oBAKUR,MAAAQ,oBAIJC,SAAAC,iBAAA,QAAAT,KAAAU,oBAgJC,CAmBhBC,uBAqBiBZ,MAAAY,uBAgBjBH,SAA4BI,oBAAA,QAAAZ,KAAAU,oBAK5B,CAMAA,sBAUDV,KAAAa,aAAA,CAEM,CACLC,SACE,MAAYC,EAAS,CACtB,CAAAC,MAAAC,EAAA,gBAAAC,KAAA,0BACF,CAAAF,MAAAC,EAAA,aAAAC,KAAA","x_google_ignoreList":[0]}
|
package/custom-elements.json
CHANGED
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
"text": "Boolean"
|
|
1014
1014
|
},
|
|
1015
1015
|
"default": "false",
|
|
1016
|
-
"description": "Show search box
|
|
1016
|
+
"description": "Show search box",
|
|
1017
1017
|
"attribute": "showSearchBox"
|
|
1018
1018
|
},
|
|
1019
1019
|
{
|
|
@@ -1024,6 +1024,16 @@
|
|
|
1024
1024
|
},
|
|
1025
1025
|
"attribute": "locationPathname"
|
|
1026
1026
|
},
|
|
1027
|
+
{
|
|
1028
|
+
"kind": "field",
|
|
1029
|
+
"name": "theme",
|
|
1030
|
+
"type": {
|
|
1031
|
+
"text": "string"
|
|
1032
|
+
},
|
|
1033
|
+
"default": "'light'",
|
|
1034
|
+
"description": "Header theme (light/dark/auto)",
|
|
1035
|
+
"attribute": "theme"
|
|
1036
|
+
},
|
|
1027
1037
|
{
|
|
1028
1038
|
"kind": "field",
|
|
1029
1039
|
"name": "visibleMenu",
|
|
@@ -1151,7 +1161,7 @@
|
|
|
1151
1161
|
"text": "Boolean"
|
|
1152
1162
|
},
|
|
1153
1163
|
"default": "false",
|
|
1154
|
-
"description": "Show search box
|
|
1164
|
+
"description": "Show search box",
|
|
1155
1165
|
"fieldName": "showSearchBox"
|
|
1156
1166
|
},
|
|
1157
1167
|
{
|
|
@@ -1160,6 +1170,15 @@
|
|
|
1160
1170
|
"text": "string"
|
|
1161
1171
|
},
|
|
1162
1172
|
"fieldName": "locationPathname"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "theme",
|
|
1176
|
+
"type": {
|
|
1177
|
+
"text": "string"
|
|
1178
|
+
},
|
|
1179
|
+
"default": "'light'",
|
|
1180
|
+
"description": "Header theme (light/dark/auto)",
|
|
1181
|
+
"fieldName": "theme"
|
|
1163
1182
|
}
|
|
1164
1183
|
],
|
|
1165
1184
|
"superclass": {
|