ngx-quicklink
Advanced tools
Comparing version 0.1.5 to 0.2.0
@@ -82,9 +82,11 @@ (function (global, factory) { | ||
return false; | ||
if (!containee.hasChildren()) | ||
return true; | ||
for (var c in containee.children) { | ||
if (!container.children[c]) | ||
return false; | ||
if (!containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return false; | ||
break; | ||
if (containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -297,10 +299,18 @@ else { | ||
} | ||
var segments = []; | ||
var path = ''; | ||
var current = route; | ||
while (current) { | ||
segments.unshift(current.path); | ||
if (isPrimaryRoute(current)) { | ||
path = "/" + current.path + path; | ||
} | ||
else { | ||
path = "/(" + current.outlet + ":" + current.path + path + ")"; | ||
} | ||
current = parent.get(current); | ||
} | ||
return '/' + segments.join('/'); | ||
return path; | ||
}; | ||
function isPrimaryRoute(route) { | ||
return route.outlet === router.PRIMARY_OUTLET || !route.outlet; | ||
} | ||
@@ -307,0 +317,0 @@ var QuicklinkModule = /** @class */ (function () { |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-quicklink",["exports","@angular/core","@angular/router","rxjs"],t):t((e=e||self)["ngx-quicklink"]={},e.ng.core,e.ng.router,e.rxjs)}(this,function(e,t,n,r){"use strict";function i(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function o(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var s=[],a=function(){function e(e){this.router=e,this.trees=s}return e.prototype.add=function(e){this.trees.push(e)},e.prototype.remove=function(e){this.trees.splice(this.trees.indexOf(e),1)},e.prototype.shouldPrefetch=function(e){var t=this.router.parseUrl(e);return this.trees.some(function(e,t){return function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(t.queryParams,e.queryParams)&&function e(t,r,i){if(t.segments.length>i.length){var o=t.segments.slice(0,i.length);return!!l(o,i)&&!r.hasChildren()}if(t.segments.length===i.length){if(!l(t.segments,i))return!1;for(var u in r.children){if(!t.children[u])return!1;if(!e(t.children[u],r.children[u],r.children[u].segments))return!1}return!0}var o=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!l(t.segments,o)&&(!!t.children[n.PRIMARY_OUTLET]&&e(t.children[n.PRIMARY_OUTLET],r,s))}(t.root,e.root,e.root.segments)}.bind(null,t))},e=i([t.Injectable(),u("design:paramtypes",[n.Router])],e)}();function l(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path||e.path.startsWith(":")||t[n].path.startsWith(":")})}var c="undefined"!=typeof window?window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)}:function(){},f=function(){return"undefined"!=typeof window&&!!window.IntersectionObserver},d=new t.InjectionToken("LinkHandler"),h=function(){function e(e,t){var n=this;this.loader=e,this.queue=t,this.elementLink=new Map,this.observer=f()?new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,r=n.elementLink.get(t);n.queue.add(r.urlTree),n.observer.unobserve(t),c(function(){n.loader.preload().subscribe(function(){}),n.queue.remove(r.urlTree)})}})}):null}return e.prototype.register=function(e){this.elementLink.set(e.element,e),this.observer.observe(e.element)},e.prototype.unregister=function(e){this.elementLink.has(e.element)&&(this.observer.unobserve(e.element),this.elementLink.delete(e.element))},e.prototype.supported=function(){return f()},e=i([t.Injectable(),u("design:paramtypes",[n.RouterPreloader,a])],e)}(),p=function(){function e(e,t){this.loader=e,this.queue=t}return e.prototype.register=function(e){var t=this;this.queue.add(e.urlTree),c(function(){return t.loader.preload().subscribe(function(){})})},e.prototype.unregister=function(e){},e.prototype.supported=function(){return!0},e=i([t.Injectable(),u("design:paramtypes",[n.RouterPreloader,a])],e)}(),g=function(){function e(e,t,n,r){this.linkHandlers=e,this.el=t,this.linkHandler=this.linkHandlers.filter(function(e){return e.supported()}).shift(),this.rl=n||r}return e.prototype.ngOnChanges=function(e){e.routerLink&&(this.linkHandler.unregister(this),this.linkHandler.register(this))},e.prototype.ngOnDestroy=function(){this.linkHandler.unregister(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.rl.urlTree},enumerable:!0,configurable:!0}),i([t.Input(),u("design:type",String)],e.prototype,"routerLink",void 0),e=i([t.Directive({selector:"[routerLink]"}),o(0,t.Inject(d)),o(2,t.Optional()),o(3,t.Optional()),u("design:paramtypes",[Array,t.ElementRef,n.RouterLink,n.RouterLinkWithHref])],e)}(),y=function(){function e(e,t){this.queue=e,this.router=t,this.loading=new Set}return e.prototype.preload=function(e,t){if(this.loading.has(e))return r.EMPTY;var n="undefined"!=typeof window?navigator.connection:void 0;if(n&&((n.effectiveType||"").includes("2g")||n.saveData))return r.EMPTY;if(e.data&&!1===e.data.preload)return r.EMPTY;var i=m(this.router.config,e);return this.queue.shouldPrefetch(i)?(this.loading.add(e),t()):r.EMPTY},e=i([t.Injectable(),u("design:paramtypes",[a,n.Router])],e)}(),m=function(e,t){e=e.slice();for(var n=new Map,r=new Set,i=function(){var i=e.shift();if(r.add(i),i===t)return"break";var o=i.children||[],u=i._loadedConfig;u&&u.routes&&(o=o.concat(u.routes)),o.forEach(function(t){r.has(t)||(n.set(t,i),e.push(t))})};e.length;){if("break"===i())break}for(var o=[],u=t;u;)o.unshift(u.path),u=n.get(u);return"/"+o.join("/")},v=function(){function e(){}return e=i([t.NgModule({declarations:[g],providers:[{provide:d,useClass:h,multi:!0},{provide:d,useClass:p,multi:!0},a,y],exports:[g]})],e)}();e.QuicklinkModule=v,e.QuicklinkStrategy=y,e.ɵa=d,e.ɵb=h,e.ɵc=p,e.ɵe=a,e.ɵɵLinkDirective=g,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-quicklink",["exports","@angular/core","@angular/router","rxjs"],t):t((e=e||self)["ngx-quicklink"]={},e.ng.core,e.ng.router,e.rxjs)}(this,function(e,t,n,r){"use strict";function i(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function o(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var s=[],a=function(){function e(e){this.router=e,this.trees=s}return e.prototype.add=function(e){this.trees.push(e)},e.prototype.remove=function(e){this.trees.splice(this.trees.indexOf(e),1)},e.prototype.shouldPrefetch=function(e){var t=this.router.parseUrl(e);return this.trees.some(function(e,t){return function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(t.queryParams,e.queryParams)&&function e(t,r,i){if(t.segments.length>i.length){var o=t.segments.slice(0,i.length);return!!l(o,i)&&!r.hasChildren()}if(t.segments.length===i.length){if(!l(t.segments,i))return!1;if(!r.hasChildren())return!0;for(var u in r.children){if(!t.children[u])break;if(e(t.children[u],r.children[u],r.children[u].segments))return!0}return!1}var o=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!l(t.segments,o)&&(!!t.children[n.PRIMARY_OUTLET]&&e(t.children[n.PRIMARY_OUTLET],r,s))}(t.root,e.root,e.root.segments)}.bind(null,t))},e=i([t.Injectable(),u("design:paramtypes",[n.Router])],e)}();function l(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path||e.path.startsWith(":")||t[n].path.startsWith(":")})}var c="undefined"!=typeof window?window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)}:function(){},f=function(){return"undefined"!=typeof window&&!!window.IntersectionObserver},d=new t.InjectionToken("LinkHandler"),h=function(){function e(e,t){var n=this;this.loader=e,this.queue=t,this.elementLink=new Map,this.observer=f()?new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,r=n.elementLink.get(t);n.queue.add(r.urlTree),n.observer.unobserve(t),c(function(){n.loader.preload().subscribe(function(){}),n.queue.remove(r.urlTree)})}})}):null}return e.prototype.register=function(e){this.elementLink.set(e.element,e),this.observer.observe(e.element)},e.prototype.unregister=function(e){this.elementLink.has(e.element)&&(this.observer.unobserve(e.element),this.elementLink.delete(e.element))},e.prototype.supported=function(){return f()},e=i([t.Injectable(),u("design:paramtypes",[n.RouterPreloader,a])],e)}(),p=function(){function e(e,t){this.loader=e,this.queue=t}return e.prototype.register=function(e){var t=this;this.queue.add(e.urlTree),c(function(){return t.loader.preload().subscribe(function(){})})},e.prototype.unregister=function(e){},e.prototype.supported=function(){return!0},e=i([t.Injectable(),u("design:paramtypes",[n.RouterPreloader,a])],e)}(),g=function(){function e(e,t,n,r){this.linkHandlers=e,this.el=t,this.linkHandler=this.linkHandlers.filter(function(e){return e.supported()}).shift(),this.rl=n||r}return e.prototype.ngOnChanges=function(e){e.routerLink&&(this.linkHandler.unregister(this),this.linkHandler.register(this))},e.prototype.ngOnDestroy=function(){this.linkHandler.unregister(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.rl.urlTree},enumerable:!0,configurable:!0}),i([t.Input(),u("design:type",String)],e.prototype,"routerLink",void 0),e=i([t.Directive({selector:"[routerLink]"}),o(0,t.Inject(d)),o(2,t.Optional()),o(3,t.Optional()),u("design:paramtypes",[Array,t.ElementRef,n.RouterLink,n.RouterLinkWithHref])],e)}(),y=function(){function e(e,t){this.queue=e,this.router=t,this.loading=new Set}return e.prototype.preload=function(e,t){if(this.loading.has(e))return r.EMPTY;var n="undefined"!=typeof window?navigator.connection:void 0;if(n&&((n.effectiveType||"").includes("2g")||n.saveData))return r.EMPTY;if(e.data&&!1===e.data.preload)return r.EMPTY;var i=m(this.router.config,e);return this.queue.shouldPrefetch(i)?(this.loading.add(e),t()):r.EMPTY},e=i([t.Injectable(),u("design:paramtypes",[a,n.Router])],e)}(),m=function(e,t){e=e.slice();for(var n=new Map,r=new Set,i=function(){var i=e.shift();if(r.add(i),i===t)return"break";var o=i.children||[],u=i._loadedConfig;u&&u.routes&&(o=o.concat(u.routes)),o.forEach(function(t){r.has(t)||(n.set(t,i),e.push(t))})};e.length;){if("break"===i())break}for(var o="",u=t;u;)o=v(u)?"/"+u.path+o:"/("+u.outlet+":"+u.path+o+")",u=n.get(u);return o};function v(e){return e.outlet===n.PRIMARY_OUTLET||!e.outlet}var b=function(){function e(){}return e=i([t.NgModule({declarations:[g],providers:[{provide:d,useClass:h,multi:!0},{provide:d,useClass:p,multi:!0},a,y],exports:[g]})],e)}();e.QuicklinkModule=b,e.QuicklinkStrategy=y,e.ɵa=d,e.ɵb=h,e.ɵc=p,e.ɵe=a,e.ɵɵLinkDirective=g,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-quicklink.umd.min.js.map |
@@ -49,9 +49,11 @@ import * as tslib_1 from "tslib"; | ||
return false; | ||
if (!containee.hasChildren()) | ||
return true; | ||
for (const c in containee.children) { | ||
if (!container.children[c]) | ||
return false; | ||
if (!containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return false; | ||
break; | ||
if (containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -73,2 +75,2 @@ else { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlZmV0Y2gtcmVnaXN0cnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1xdWlja2xpbmsvIiwic291cmNlcyI6WyJzcmMvcHJlZmV0Y2gtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLE1BQU0sRUFLTixjQUFjLEVBQ2YsTUFBTSxpQkFBaUIsQ0FBQztBQUN6QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLHlFQUF5RTtBQUN6RSxpRkFBaUY7QUFDakYsTUFBTSxjQUFjLEdBQWMsRUFBRSxDQUFDO0FBR3JDLElBQWEsZ0JBQWdCLEdBQTdCLE1BQWEsZ0JBQWdCO0lBRTNCLFlBQW9CLE1BQWM7UUFBZCxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBRDFCLFVBQUssR0FBYyxjQUFjLENBQUM7SUFDTCxDQUFDO0lBRXRDLEdBQUcsQ0FBQyxJQUFhO1FBQ2YsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDeEIsQ0FBQztJQUVELE1BQU0sQ0FBQyxJQUFhO1FBQ2xCLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ2pELENB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ICAgfVxuICAgIHJldHVybiBmYWxzZTtcbiAgfSBlbHNlIHtcbiAgICBjb25zdCBjdXJyZW50ID0gY29udGFpbmVlUGF0aHMuc2xpY2UoMCwgY29udGFpbmVyLnNlZ21lbnRzLmxlbmd0aCk7XG4gICAgY29uc3QgbmV4dCA9IGNvbnRhaW5lZVBhdGhzLnNsaWNlKGNvbnRhaW5lci5zZWdtZW50cy5sZW5ndGgpO1xuICAgIGlmICghZXF1YWxQYXRoKGNvbnRhaW5lci5zZWdtZW50cywgY3VycmVudCkpIHJldHVybiBmYWxzZTtcbiAgICBpZiAoIWNvbnRhaW5lci5jaGlsZHJlbltQUklNQVJZX09VVExFVF0pIHJldHVybiBmYWxzZTtcbiAgICByZXR1cm4gY29udGFpbnNTZWdtZW50R3JvdXAoY29udGFpbmVyLmNoaWxkcmVuW1BSSU1BUllfT1VUTEVUXSwgY29udGFpbmVlLCBuZXh0KTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZXF1YWxQYXRoKGFzOiBVcmxTZWdtZW50W10sIGJzOiBVcmxTZWdtZW50W10pOiBib29sZWFuIHtcbiAgaWYgKGFzLmxlbmd0aCAhPT0gYnMubGVuZ3RoKSByZXR1cm4gZmFsc2U7XG4gIHJldHVybiBhcy5ldmVyeShcbiAgICAoYSwgaSkgPT4gYS5wYXRoID09PSBic1tpXS5wYXRoIHx8IGEucGF0aC5zdGFydHNXaXRoKCc6JykgfHwgYnNbaV0ucGF0aC5zdGFydHNXaXRoKCc6JylcbiAgKTtcbn1cbiJdfQ== |
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { Router, PRIMARY_OUTLET } from '@angular/router'; | ||
import { PrefetchRegistry } from './prefetch-registry.service'; | ||
@@ -61,12 +61,20 @@ import { EMPTY } from 'rxjs'; | ||
} | ||
const segments = []; | ||
let path = ''; | ||
let current = route; | ||
while (current) { | ||
segments.unshift(current.path); | ||
if (isPrimaryRoute(current)) { | ||
path = `/${current.path}${path}`; | ||
} | ||
else { | ||
path = `/(${current.outlet}:${current.path}${path})`; | ||
} | ||
current = parent.get(current); | ||
} | ||
return '/' + segments.join('/'); | ||
return path; | ||
}; | ||
const ɵ0 = findPath; | ||
function isPrimaryRoute(route) { | ||
return route.outlet === PRIMARY_OUTLET || !route.outlet; | ||
} | ||
export { ɵ0 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVpY2tsaW5rLXN0cmF0ZWd5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtcXVpY2tsaW5rLyIsInNvdXJjZXMiOlsic3JjL3F1aWNrbGluay1zdHJhdGVneS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBc0IsTUFBTSxFQUFTLE1BQU0saUJBQWlCLENBQUM7QUFDcEUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDL0QsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUc3QixJQUFhLGlCQUFpQixHQUE5QixNQUFhLGlCQUFpQjtJQUc1QixZQUFvQixLQUF1QixFQUFVLE1BQWM7UUFBL0MsVUFBSyxHQUFMLEtBQUssQ0FBa0I7UUFBVSxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBRm5FLFlBQU8sR0FBRyxJQUFJLEdBQUcsRUFBUyxDQUFDO0lBRTJDLENBQUM7SUFFdkUsT0FBTyxDQUFDLEtBQVksRUFBRSxJQUFjO1FBQ2xDLElBQUksSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDM0IscUNBQXFDO1lBQ3JDLE9BQU8sS0FBSyxDQUFDO1NBQ2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Y29uZmlnLnB1c2gocik7XG4gICAgfSk7XG4gIH1cbiAgbGV0IHBhdGggPSAnJztcbiAgbGV0IGN1cnJlbnQgPSByb3V0ZTtcblxuICB3aGlsZSAoY3VycmVudCkge1xuICAgIGlmIChpc1ByaW1hcnlSb3V0ZShjdXJyZW50KSkge1xuICAgICAgcGF0aCA9IGAvJHtjdXJyZW50LnBhdGh9JHtwYXRofWA7XG4gICAgfSBlbHNlIHtcbiAgICAgIHBhdGggPSBgLygke2N1cnJlbnQub3V0bGV0fToke2N1cnJlbnQucGF0aH0ke3BhdGh9KWA7XG4gICAgfVxuICAgIGN1cnJlbnQgPSBwYXJlbnQuZ2V0KGN1cnJlbnQpO1xuICB9XG5cbiAgcmV0dXJuIHBhdGg7XG59O1xuXG5mdW5jdGlvbiBpc1ByaW1hcnlSb3V0ZShyb3V0ZTogUm91dGUpIHtcbiAgcmV0dXJuIHJvdXRlLm91dGxldCA9PT0gUFJJTUFSWV9PVVRMRVQgfHwgIXJvdXRlLm91dGxldDtcbn1cbiJdfQ== |
@@ -50,9 +50,11 @@ import * as tslib_1 from "tslib"; | ||
return false; | ||
if (!containee.hasChildren()) | ||
return true; | ||
for (var c in containee.children) { | ||
if (!container.children[c]) | ||
return false; | ||
if (!containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return false; | ||
break; | ||
if (containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -74,2 +76,2 @@ else { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlZmV0Y2gtcmVnaXN0cnkuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1xdWlja2xpbmsvIiwic291cmNlcyI6WyJzcmMvcHJlZmV0Y2gtcmVnaXN0cnkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyx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gICByZXR1cm4gY29udGFpbnNTZWdtZW50R3JvdXAoY29udGFpbmVyLmNoaWxkcmVuW1BSSU1BUllfT1VUTEVUXSwgY29udGFpbmVlLCBuZXh0KTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZXF1YWxQYXRoKGFzOiBVcmxTZWdtZW50W10sIGJzOiBVcmxTZWdtZW50W10pOiBib29sZWFuIHtcbiAgaWYgKGFzLmxlbmd0aCAhPT0gYnMubGVuZ3RoKSByZXR1cm4gZmFsc2U7XG4gIHJldHVybiBhcy5ldmVyeShcbiAgICAoYSwgaSkgPT4gYS5wYXRoID09PSBic1tpXS5wYXRoIHx8IGEucGF0aC5zdGFydHNXaXRoKCc6JykgfHwgYnNbaV0ucGF0aC5zdGFydHNXaXRoKCc6JylcbiAgKTtcbn1cbiJdfQ== |
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { Router, PRIMARY_OUTLET } from '@angular/router'; | ||
import { PrefetchRegistry } from './prefetch-registry.service'; | ||
@@ -67,12 +67,20 @@ import { EMPTY } from 'rxjs'; | ||
} | ||
var segments = []; | ||
var path = ''; | ||
var current = route; | ||
while (current) { | ||
segments.unshift(current.path); | ||
if (isPrimaryRoute(current)) { | ||
path = "/" + current.path + path; | ||
} | ||
else { | ||
path = "/(" + current.outlet + ":" + current.path + path + ")"; | ||
} | ||
current = parent.get(current); | ||
} | ||
return '/' + segments.join('/'); | ||
return path; | ||
}; | ||
var ɵ0 = findPath; | ||
function isPrimaryRoute(route) { | ||
return route.outlet === PRIMARY_OUTLET || !route.outlet; | ||
} | ||
export { ɵ0 }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVpY2tsaW5rLXN0cmF0ZWd5LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtcXVpY2tsaW5rLyIsInNvdXJjZXMiOlsic3JjL3F1aWNrbGluay1z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JvdXRlKSB7XG4gIHJldHVybiByb3V0ZS5vdXRsZXQgPT09IFBSSU1BUllfT1VUTEVUIHx8ICFyb3V0ZS5vdXRsZXQ7XG59XG4iXX0= |
@@ -50,9 +50,11 @@ import { __decorate, __metadata, __param } from 'tslib'; | ||
return false; | ||
if (!containee.hasChildren()) | ||
return true; | ||
for (const c in containee.children) { | ||
if (!container.children[c]) | ||
return false; | ||
if (!containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return false; | ||
break; | ||
if (containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -244,10 +246,18 @@ else { | ||
} | ||
const segments = []; | ||
let path = ''; | ||
let current = route; | ||
while (current) { | ||
segments.unshift(current.path); | ||
if (isPrimaryRoute(current)) { | ||
path = `/${current.path}${path}`; | ||
} | ||
else { | ||
path = `/(${current.outlet}:${current.path}${path})`; | ||
} | ||
current = parent.get(current); | ||
} | ||
return '/' + segments.join('/'); | ||
return path; | ||
}; | ||
function isPrimaryRoute(route) { | ||
return route.outlet === PRIMARY_OUTLET || !route.outlet; | ||
} | ||
@@ -254,0 +264,0 @@ let QuicklinkModule = class QuicklinkModule { |
@@ -51,9 +51,11 @@ import { __decorate, __metadata, __param } from 'tslib'; | ||
return false; | ||
if (!containee.hasChildren()) | ||
return true; | ||
for (var c in containee.children) { | ||
if (!container.children[c]) | ||
return false; | ||
if (!containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return false; | ||
break; | ||
if (containsSegmentGroup(container.children[c], containee.children[c], containee.children[c].segments)) | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
} | ||
@@ -266,10 +268,18 @@ else { | ||
} | ||
var segments = []; | ||
var path = ''; | ||
var current = route; | ||
while (current) { | ||
segments.unshift(current.path); | ||
if (isPrimaryRoute(current)) { | ||
path = "/" + current.path + path; | ||
} | ||
else { | ||
path = "/(" + current.outlet + ":" + current.path + path + ")"; | ||
} | ||
current = parent.get(current); | ||
} | ||
return '/' + segments.join('/'); | ||
return path; | ||
}; | ||
function isPrimaryRoute(route) { | ||
return route.outlet === PRIMARY_OUTLET || !route.outlet; | ||
} | ||
@@ -276,0 +286,0 @@ var QuicklinkModule = /** @class */ (function () { |
{ | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"name": "ngx-quicklink", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "Quicklink for Angular", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -97,5 +97,5 @@ <p align="center"> | ||
[<img alt="mgechev" src="https://avatars1.githubusercontent.com/u/455023?v=4&s=117" width="117">](https://github.com/mgechev) |[<img alt="wKoza" src="https://avatars2.githubusercontent.com/u/11403260?v=4&s=117" width="117">](https://github.com/wKoza) |[<img alt="rolaveric" src="https://avatars1.githubusercontent.com/u/960670?v=4&s=117" width="117">](https://github.com/rolaveric) |[<img alt="thekiba" src="https://avatars0.githubusercontent.com/u/1910515?v=4&s=117" width="117">](https://github.com/thekiba) |[<img alt="maktarsis" src="https://avatars1.githubusercontent.com/u/21989873?v=4&s=117" width="117">](https://github.com/maktarsis) | | ||
:---: |:---: |:---: |:---: |:---: | | ||
[mgechev](https://github.com/mgechev) |[wKoza](https://github.com/wKoza) |[rolaveric](https://github.com/rolaveric) |[thekiba](https://github.com/thekiba) |[maktarsis](https://github.com/maktarsis) | | ||
[<img alt="mgechev" src="https://avatars1.githubusercontent.com/u/455023?v=4&s=117" width="117">](https://github.com/mgechev) |[<img alt="wKoza" src="https://avatars2.githubusercontent.com/u/11403260?v=4&s=117" width="117">](https://github.com/wKoza) |[<img alt="rolaveric" src="https://avatars1.githubusercontent.com/u/960670?v=4&s=117" width="117">](https://github.com/rolaveric) |[<img alt="thekiba" src="https://avatars0.githubusercontent.com/u/1910515?v=4&s=117" width="117">](https://github.com/thekiba) |[<img alt="maktarsis" src="https://avatars1.githubusercontent.com/u/21989873?v=4&s=117" width="117">](https://github.com/maktarsis) |[<img alt="mehmet-erim" src="https://avatars0.githubusercontent.com/u/34455572?v=4&s=117" width="117">](https://github.com/mehmet-erim) | | ||
:---: |:---: |:---: |:---: |:---: |:---: | | ||
[mgechev](https://github.com/mgechev) |[wKoza](https://github.com/wKoza) |[rolaveric](https://github.com/rolaveric) |[thekiba](https://github.com/thekiba) |[maktarsis](https://github.com/maktarsis) |[mehmet-erim](https://github.com/mehmet-erim) | | ||
@@ -105,1 +105,2 @@ ## License | ||
MIT | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235859
1694
105