angular2-cookie-law
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -10,7 +10,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Component, ViewEncapsulation, Input, animate, state, trigger, style, transition } from '@angular/core'; | ||
import { Component, Input, animate, state, trigger, style, transition } from '@angular/core'; | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
import { CookieLawService } from './cookie-law.service'; | ||
import { closeIcon } from './icons'; | ||
export let CookieLawComponent = class CookieLawComponent { | ||
let CookieLawComponent = class CookieLawComponent { | ||
constructor(_service, domSanitizer) { | ||
@@ -34,8 +34,8 @@ this._service = _service; | ||
__decorate([ | ||
Input(), | ||
__metadata('design:type', String) | ||
Input(), | ||
__metadata("design:type", String) | ||
], CookieLawComponent.prototype, "learnMore", void 0); | ||
__decorate([ | ||
Input(), | ||
__metadata('design:type', String) | ||
Input(), | ||
__metadata("design:type", String) | ||
], CookieLawComponent.prototype, "target", void 0); | ||
@@ -45,3 +45,2 @@ CookieLawComponent = __decorate([ | ||
selector: 'cookie-law', | ||
encapsulation: ViewEncapsulation.None, | ||
animations: [ | ||
@@ -152,6 +151,8 @@ trigger('state', [ | ||
</div> | ||
`, | ||
}), | ||
__metadata('design:paramtypes', [CookieLawService, DomSanitizer]) | ||
` | ||
}), | ||
__metadata("design:paramtypes", [CookieLawService, | ||
DomSanitizer]) | ||
], CookieLawComponent); | ||
export { CookieLawComponent }; | ||
//# sourceMappingURL=cookie-law.component.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"CookieLawComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => *",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":["1000ms ease-in-out"]}]}]]}],"styles":["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "],"template":"\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n"}]}],"members":{"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CookieLawComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => *",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":["1000ms ease-in-out"]}]}]]}],"styles":["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "],"template":"\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n"}]}],"members":{"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"CookieLawComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => *",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":["1000ms ease-in-out"]}]}]]}],"styles":["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "],"template":"\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n "}]}],"members":{"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CookieLawComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => *",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":["1000ms ease-in-out"]}]}]]}],"styles":["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "],"template":"\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n "}]}],"members":{"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}}] |
@@ -26,6 +26,6 @@ /** | ||
import * as import17 from '@angular/core/src/linker/view_container'; | ||
import * as import18 from '../node_modules/@angular/common/src/directives/ng_if.ngfactory'; | ||
import * as import19 from '@angular/core/src/linker/template_ref'; | ||
import * as import20 from '@angular/common/src/directives/ng_if'; | ||
import * as import21 from '@angular/core/src/security'; | ||
import * as import18 from '@angular/core/src/security'; | ||
import * as import19 from '../node_modules/@angular/common/src/directives/ng_if.ngfactory'; | ||
import * as import20 from '@angular/core/src/linker/template_ref'; | ||
import * as import21 from '@angular/common/src/directives/ng_if'; | ||
export class Wrapper_CookieLawComponent { | ||
@@ -112,3 +112,3 @@ /*private*/ _eventHandler:Function; | ||
export const CookieLawComponentNgFactory:import8.ComponentFactory<import0.CookieLawComponent> = new import8.ComponentFactory<import0.CookieLawComponent>('cookie-law',View_CookieLawComponent_Host0,import0.CookieLawComponent); | ||
const styles_CookieLawComponent:any[] = ['\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n \n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n ']; | ||
const styles_CookieLawComponent:any[] = ['a[_ngcontent-%COMP%] {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a[_ngcontent-%COMP%]:hover {\n color: #fff;\n }\n a[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] {\n fill: #fff;\n }\n .cookie-law-wrapper[_ngcontent-%COMP%] {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss[_ngcontent-%COMP%] {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy[_ngcontent-%COMP%] {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: #fff;\n font-weight: 400;\n }\n .copy[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n text-decoration: underline;\n }\n .copy[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .copy[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n \n .copy[_ngcontent-%COMP%] {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss[_ngcontent-%COMP%] {\n top: 10px;\n right: 15px;\n }\n .dismiss[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n }\n }']; | ||
var CookieLawComponent_state_states:any = { | ||
@@ -148,22 +148,27 @@ 'in': {'transform': 'translateY(0)'}, | ||
} | ||
var renderType_CookieLawComponent:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.None,styles_CookieLawComponent,{state: CookieLawComponent_state_factory}); | ||
export class View_CookieLawComponent0 extends import2.AppView<import0.CookieLawComponent> { | ||
_text_0:any; | ||
_anchor_1:any; | ||
/*private*/ _vc_1:import17.ViewContainer; | ||
_TemplateRef_1_5:any; | ||
_NgIf_1_6:import18.Wrapper_NgIf; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { | ||
super(View_CookieLawComponent0,renderType_CookieLawComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways); | ||
class View_CookieLawComponent3 extends import2.AppView<any> { | ||
_el_0:any; | ||
_text_1:any; | ||
_el_2:any; | ||
_text_3:any; | ||
_text_4:any; | ||
/*private*/ _expr_5:any; | ||
/*private*/ _expr_6:any; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any,declaredViewContainer:import17.ViewContainer) { | ||
super(View_CookieLawComponent3,renderType_CookieLawComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer); | ||
this._expr_5 = import1.UNINITIALIZED; | ||
this._expr_6 = import1.UNINITIALIZED; | ||
} | ||
createInternal(rootSelector:string):import8.ComponentRef<any> { | ||
const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); | ||
this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); | ||
this._anchor_1 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any)); | ||
this._vc_1 = new import17.ViewContainer(1,(null as any),this,this._anchor_1); | ||
this._TemplateRef_1_5 = new import19.TemplateRef_(this,1,this._anchor_1); | ||
this._NgIf_1_6 = new import18.Wrapper_NgIf(this._vc_1.vcRef,this._TemplateRef_1_5); | ||
this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [ | ||
this._text_0, | ||
this._anchor_1 | ||
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'span',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_1 = this.renderer.createText(this._el_0,'\n Learn more in our ',(null as any)); | ||
this._el_2 = import3.createRenderElement(this.renderer,this._el_0,'a',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_3 = this.renderer.createText(this._el_2,'privacy policy',(null as any)); | ||
this._text_4 = this.renderer.createText(this._el_0,'.\n ',(null as any)); | ||
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [ | ||
this._el_0, | ||
this._text_1, | ||
this._el_2, | ||
this._text_3, | ||
this._text_4 | ||
] | ||
@@ -173,18 +178,65 @@ ),(null as any)); | ||
} | ||
detectChangesInternal(throwOnChange:boolean):void { | ||
const currVal_5:any = this.parentView.parentView.parentView.context.learnMore; | ||
if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) { | ||
this.renderer.setElementProperty(this._el_2,'href',this.viewUtils.sanitizer.sanitize(import18.SecurityContext.URL,currVal_5)); | ||
this._expr_5 = currVal_5; | ||
} | ||
const currVal_6:any = this.parentView.parentView.parentView.context.target; | ||
if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) { | ||
this.renderer.setElementProperty(this._el_2,'target',currVal_6); | ||
this._expr_6 = currVal_6; | ||
} | ||
} | ||
visitRootNodesInternal(cb:any,ctx:any):void { | ||
cb(this._el_0,ctx); | ||
} | ||
} | ||
class View_CookieLawComponent2 extends import2.AppView<any> { | ||
_el_0:any; | ||
_text_1:any; | ||
_anchor_2:any; | ||
/*private*/ _vc_2:import17.ViewContainer; | ||
_TemplateRef_2_5:any; | ||
_NgIf_2_6:import19.Wrapper_NgIf; | ||
_text_3:any; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any,declaredViewContainer:import17.ViewContainer) { | ||
super(View_CookieLawComponent2,renderType_CookieLawComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer); | ||
} | ||
createInternal(rootSelector:string):import8.ComponentRef<any> { | ||
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'span',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_1 = this.renderer.createText(this._el_0,'\n By continuing to browse the site, you\'re agreeing to our use of cookies.\n ',(null as any)); | ||
this._anchor_2 = this.renderer.createTemplateAnchor(this._el_0,(null as any)); | ||
this._vc_2 = new import17.ViewContainer(2,0,this,this._anchor_2); | ||
this._TemplateRef_2_5 = new import20.TemplateRef_(this,2,this._anchor_2); | ||
this._NgIf_2_6 = new import19.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5); | ||
this._text_3 = this.renderer.createText(this._el_0,'\n ',(null as any)); | ||
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [ | ||
this._el_0, | ||
this._text_1, | ||
this._anchor_2, | ||
this._text_3 | ||
] | ||
),(null as any)); | ||
return (null as any); | ||
} | ||
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { | ||
if (((token === import19.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; } | ||
if (((token === import20.NgIf) && (1 === requestNodeIndex))) { return this._NgIf_1_6.context; } | ||
if (((token === import20.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; } | ||
if (((token === import21.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; } | ||
return notFoundResult; | ||
} | ||
detectChangesInternal(throwOnChange:boolean):void { | ||
const currVal_1_0_0:boolean = !this.context.cookieLawSeen; | ||
this._NgIf_1_6.check_ngIf(currVal_1_0_0,throwOnChange,false); | ||
this._NgIf_1_6.ngDoCheck(this,this._anchor_1,throwOnChange); | ||
this._vc_1.detectChangesInNestedViews(throwOnChange); | ||
const currVal_2_0_0:any = this.parentView.parentView.context.learnMore; | ||
this._NgIf_2_6.check_ngIf(currVal_2_0_0,throwOnChange,false); | ||
this._NgIf_2_6.ngDoCheck(this,this._anchor_2,throwOnChange); | ||
this._vc_2.detectChangesInNestedViews(throwOnChange); | ||
} | ||
destroyInternal():void { | ||
this._vc_1.destroyNestedViews(); | ||
this._vc_2.destroyNestedViews(); | ||
} | ||
visitRootNodesInternal(cb:any,ctx:any):void { | ||
cb(this._el_0,ctx); | ||
} | ||
createEmbeddedViewInternal(nodeIndex:number):import2.AppView<any> { | ||
if ((nodeIndex == 1)) { return new View_CookieLawComponent1(this.viewUtils,this,1,this._anchor_1,this._vc_1); } | ||
if ((nodeIndex == 2)) { return new View_CookieLawComponent3(this.viewUtils,this,2,this._anchor_2,this._vc_2); } | ||
return (null as any); | ||
@@ -203,3 +255,3 @@ } | ||
_TemplateRef_6_5:any; | ||
_NgIf_6_6:import18.Wrapper_NgIf; | ||
_NgIf_6_6:import19.Wrapper_NgIf; | ||
_text_7:any; | ||
@@ -226,8 +278,8 @@ _el_8:any; | ||
this._vc_6 = new import17.ViewContainer(6,2,this,this._anchor_6); | ||
this._TemplateRef_6_5 = new import19.TemplateRef_(this,6,this._anchor_6); | ||
this._NgIf_6_6 = new import18.Wrapper_NgIf(this._vc_6.vcRef,this._TemplateRef_6_5); | ||
this._TemplateRef_6_5 = new import20.TemplateRef_(this,6,this._anchor_6); | ||
this._NgIf_6_6 = new import19.Wrapper_NgIf(this._vc_6.vcRef,this._TemplateRef_6_5); | ||
this._text_7 = this.renderer.createText(this._el_2,'\n\n ',(null as any)); | ||
this._el_8 = import3.createRenderElement(this.renderer,this._el_2,'a',new import3.InlineArray8(6,'class','dismiss','href','#','role','button'),(null as any)); | ||
this._text_9 = this.renderer.createText(this._el_2,'\n ',(null as any)); | ||
this._text_10 = this.renderer.createText(this._el_0,'\n',(null as any)); | ||
this._text_10 = this.renderer.createText(this._el_0,'\n ',(null as any)); | ||
var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_8,new import3.InlineArray2(2,'click',(null as any)),this.eventHandler(this.handleEvent_8)); | ||
@@ -251,4 +303,4 @@ this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [ | ||
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { | ||
if (((token === import19.TemplateRef) && (6 === requestNodeIndex))) { return this._TemplateRef_6_5; } | ||
if (((token === import20.NgIf) && (6 === requestNodeIndex))) { return this._NgIf_6_6.context; } | ||
if (((token === import20.TemplateRef) && (6 === requestNodeIndex))) { return this._TemplateRef_6_5; } | ||
if (((token === import21.NgIf) && (6 === requestNodeIndex))) { return this._NgIf_6_6.context; } | ||
return notFoundResult; | ||
@@ -268,3 +320,3 @@ } | ||
if (import3.checkBinding(throwOnChange,this._expr_15,currVal_15)) { | ||
this.renderer.setElementProperty(this._el_8,'innerHTML',this.viewUtils.sanitizer.sanitize(import21.SecurityContext.HTML,currVal_15)); | ||
this.renderer.setElementProperty(this._el_8,'innerHTML',this.viewUtils.sanitizer.sanitize(import18.SecurityContext.HTML,currVal_15)); | ||
this._expr_15 = currVal_15; | ||
@@ -296,26 +348,22 @@ } | ||
} | ||
class View_CookieLawComponent2 extends import2.AppView<any> { | ||
_el_0:any; | ||
_text_1:any; | ||
_anchor_2:any; | ||
/*private*/ _vc_2:import17.ViewContainer; | ||
_TemplateRef_2_5:any; | ||
_NgIf_2_6:import18.Wrapper_NgIf; | ||
_text_3:any; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any,declaredViewContainer:import17.ViewContainer) { | ||
super(View_CookieLawComponent2,renderType_CookieLawComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer); | ||
var renderType_CookieLawComponent:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.Emulated,styles_CookieLawComponent,{'state': CookieLawComponent_state_factory}); | ||
export class View_CookieLawComponent0 extends import2.AppView<import0.CookieLawComponent> { | ||
_text_0:any; | ||
_anchor_1:any; | ||
/*private*/ _vc_1:import17.ViewContainer; | ||
_TemplateRef_1_5:any; | ||
_NgIf_1_6:import19.Wrapper_NgIf; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { | ||
super(View_CookieLawComponent0,renderType_CookieLawComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways); | ||
} | ||
createInternal(rootSelector:string):import8.ComponentRef<any> { | ||
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'span',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_1 = this.renderer.createText(this._el_0,'\n By continuing to browse the site, you\'re agreeing to our use of cookies.\n ',(null as any)); | ||
this._anchor_2 = this.renderer.createTemplateAnchor(this._el_0,(null as any)); | ||
this._vc_2 = new import17.ViewContainer(2,0,this,this._anchor_2); | ||
this._TemplateRef_2_5 = new import19.TemplateRef_(this,2,this._anchor_2); | ||
this._NgIf_2_6 = new import18.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5); | ||
this._text_3 = this.renderer.createText(this._el_0,'\n ',(null as any)); | ||
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [ | ||
this._el_0, | ||
this._text_1, | ||
this._anchor_2, | ||
this._text_3 | ||
const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); | ||
this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); | ||
this._anchor_1 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any)); | ||
this._vc_1 = new import17.ViewContainer(1,(null as any),this,this._anchor_1); | ||
this._TemplateRef_1_5 = new import20.TemplateRef_(this,1,this._anchor_1); | ||
this._NgIf_1_6 = new import19.Wrapper_NgIf(this._vc_1.vcRef,this._TemplateRef_1_5); | ||
this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [ | ||
this._text_0, | ||
this._anchor_1 | ||
] | ||
@@ -326,67 +374,19 @@ ),(null as any)); | ||
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { | ||
if (((token === import19.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; } | ||
if (((token === import20.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; } | ||
if (((token === import20.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; } | ||
if (((token === import21.NgIf) && (1 === requestNodeIndex))) { return this._NgIf_1_6.context; } | ||
return notFoundResult; | ||
} | ||
detectChangesInternal(throwOnChange:boolean):void { | ||
const currVal_2_0_0:any = this.parentView.parentView.context.learnMore; | ||
this._NgIf_2_6.check_ngIf(currVal_2_0_0,throwOnChange,false); | ||
this._NgIf_2_6.ngDoCheck(this,this._anchor_2,throwOnChange); | ||
this._vc_2.detectChangesInNestedViews(throwOnChange); | ||
const currVal_1_0_0:boolean = !this.context.cookieLawSeen; | ||
this._NgIf_1_6.check_ngIf(currVal_1_0_0,throwOnChange,false); | ||
this._NgIf_1_6.ngDoCheck(this,this._anchor_1,throwOnChange); | ||
this._vc_1.detectChangesInNestedViews(throwOnChange); | ||
} | ||
destroyInternal():void { | ||
this._vc_2.destroyNestedViews(); | ||
this._vc_1.destroyNestedViews(); | ||
} | ||
visitRootNodesInternal(cb:any,ctx:any):void { | ||
cb(this._el_0,ctx); | ||
} | ||
createEmbeddedViewInternal(nodeIndex:number):import2.AppView<any> { | ||
if ((nodeIndex == 2)) { return new View_CookieLawComponent3(this.viewUtils,this,2,this._anchor_2,this._vc_2); } | ||
if ((nodeIndex == 1)) { return new View_CookieLawComponent1(this.viewUtils,this,1,this._anchor_1,this._vc_1); } | ||
return (null as any); | ||
} | ||
} | ||
class View_CookieLawComponent3 extends import2.AppView<any> { | ||
_el_0:any; | ||
_text_1:any; | ||
_el_2:any; | ||
_text_3:any; | ||
_text_4:any; | ||
/*private*/ _expr_5:any; | ||
/*private*/ _expr_6:any; | ||
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any,declaredViewContainer:import17.ViewContainer) { | ||
super(View_CookieLawComponent3,renderType_CookieLawComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer); | ||
this._expr_5 = import1.UNINITIALIZED; | ||
this._expr_6 = import1.UNINITIALIZED; | ||
} | ||
createInternal(rootSelector:string):import8.ComponentRef<any> { | ||
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'span',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_1 = this.renderer.createText(this._el_0,'\n Learn more in our ',(null as any)); | ||
this._el_2 = import3.createRenderElement(this.renderer,this._el_0,'a',import3.EMPTY_INLINE_ARRAY,(null as any)); | ||
this._text_3 = this.renderer.createText(this._el_2,'privacy policy',(null as any)); | ||
this._text_4 = this.renderer.createText(this._el_0,'.\n ',(null as any)); | ||
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [ | ||
this._el_0, | ||
this._text_1, | ||
this._el_2, | ||
this._text_3, | ||
this._text_4 | ||
] | ||
),(null as any)); | ||
return (null as any); | ||
} | ||
detectChangesInternal(throwOnChange:boolean):void { | ||
const currVal_5:any = this.parentView.parentView.parentView.context.learnMore; | ||
if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) { | ||
this.renderer.setElementProperty(this._el_2,'href',this.viewUtils.sanitizer.sanitize(import21.SecurityContext.URL,currVal_5)); | ||
this._expr_5 = currVal_5; | ||
} | ||
const currVal_6:any = this.parentView.parentView.parentView.context.target; | ||
if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) { | ||
this.renderer.setElementProperty(this._el_2,'target',currVal_6); | ||
this._expr_6 = currVal_6; | ||
} | ||
} | ||
visitRootNodesInternal(cb:any,ctx:any):void { | ||
cb(this._el_0,ctx); | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law","inputs":{"learnMore":"learnMore","target":"target"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":["state"],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"CookieLawComponent","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law.component.d.ts"},{"__symbol":1,"name":"CookieLawService","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law.service.d.ts"},{"__symbol":2,"name":"DomSanitizer","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/node_modules/@angular/platform-browser/src/security/dom_sanitization_service.d.ts"}]} | ||
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law","inputs":{"learnMore":"learnMore","target":"target"},"outputs":{},"hostListeners":{},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":["state"],"ngContentSelectors":["*"],"encapsulation":0}}}],"symbols":[{"__symbol":0,"name":"CookieLawComponent","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law.component.d.ts"},{"__symbol":1,"name":"CookieLawService","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law.service.d.ts"},{"__symbol":2,"name":"DomSanitizer","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/node_modules/@angular/platform-browser/src/security/dom_sanitization_service.d.ts"}]} |
@@ -26,3 +26,2 @@ /** | ||
selector: 'cookie-law', | ||
encapsulation: ViewEncapsulation.None, | ||
animations: [ | ||
@@ -133,3 +132,3 @@ trigger('state', [ | ||
</div> | ||
`, | ||
` | ||
}) | ||
@@ -136,0 +135,0 @@ export class CookieLawComponent implements OnInit { |
@@ -7,5 +7,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
import { NgModule } from '@angular/core'; | ||
@@ -15,3 +12,3 @@ import { CommonModule } from '@angular/common'; | ||
import { CookieLawService } from './cookie-law.service'; | ||
export let CookieLawModule = class CookieLawModule { | ||
let CookieLawModule = class CookieLawModule { | ||
}; | ||
@@ -24,6 +21,6 @@ CookieLawModule = __decorate([ | ||
exports: [CookieLawComponent] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
}) | ||
], CookieLawModule); | ||
export { CookieLawModule }; | ||
export { CookieLawComponent, CookieLawService }; | ||
//# sourceMappingURL=cookie-law.module.js.map |
@@ -23,3 +23,3 @@ /** | ||
var CookieLawService = (function () { | ||
exports.CookieLawService = (function () { | ||
function CookieLawService() { | ||
@@ -49,12 +49,11 @@ } | ||
}; | ||
CookieLawService = __decorate([ | ||
_angular_core.Injectable(), | ||
__metadata('design:paramtypes', []) | ||
], CookieLawService); | ||
return CookieLawService; | ||
}()); | ||
exports.CookieLawService = __decorate([ | ||
_angular_core.Injectable() | ||
], exports.CookieLawService); | ||
var closeIcon = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path d=\"M377.047 184.198q0 8.26-6.037 14.297L313.505 256l57.505 57.505q6.037 6.037 6.037 14.297 0 8.578-6.037 14.615l-28.593 28.593q-6.037 6.037-14.615 6.037-8.26 0-14.297-6.037L256 313.505l-57.505 57.505q-6.037 6.037-14.297 6.037-8.578 0-14.615-6.037l-28.593-28.593q-6.037-6.037-6.037-14.615 0-8.26 6.037-14.297L198.495 256l-57.505-57.505q-6.037-6.037-6.037-14.297 0-8.578 6.037-14.615l28.593-28.593q6.037-6.037 14.615-6.037 8.26 0 14.297 6.037L256 198.495l57.505-57.505q6.037-6.037 14.297-6.037 8.578 0 14.615 6.037l28.593 28.593q6.037 6.037 6.037 14.615zM500 256q0-66.401-32.724-122.477-32.724-56.075-88.799-88.799Q322.401 12 256 12q-66.401 0-122.477 32.724-56.075 32.724-88.799 88.799Q12 189.599 12 256q0 66.401 32.724 122.477 32.724 56.075 88.799 88.799Q189.599 500 256 500q66.401 0 122.477-32.724 56.075-32.724 88.799-88.799Q500 322.401 500 256z\"></path>\n </svg>\n"; | ||
var CookieLawComponent = (function () { | ||
exports.CookieLawComponent = (function () { | ||
function CookieLawComponent(_service, domSanitizer) { | ||
@@ -76,49 +75,44 @@ this._service = _service; | ||
}; | ||
__decorate([ | ||
_angular_core.Input(), | ||
__metadata('design:type', String) | ||
], CookieLawComponent.prototype, "learnMore", void 0); | ||
__decorate([ | ||
_angular_core.Input(), | ||
__metadata('design:type', String) | ||
], CookieLawComponent.prototype, "target", void 0); | ||
CookieLawComponent = __decorate([ | ||
_angular_core.Component({ | ||
selector: 'cookie-law', | ||
encapsulation: _angular_core.ViewEncapsulation.None, | ||
animations: [ | ||
_angular_core.trigger('state', [ | ||
_angular_core.state('in', _angular_core.style({ transform: 'translateY(0)' })), | ||
_angular_core.state('void', _angular_core.style({ transform: 'translateY(100%)' })), | ||
_angular_core.transition('* => *', _angular_core.animate('1000ms ease-in-out')) | ||
]) | ||
], | ||
styles: ["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "], | ||
template: "\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n", | ||
}), | ||
__metadata('design:paramtypes', [(typeof (_a = typeof CookieLawService !== 'undefined' && CookieLawService) === 'function' && _a) || Object, (typeof (_b = typeof _angular_platformBrowser.DomSanitizer !== 'undefined' && _angular_platformBrowser.DomSanitizer) === 'function' && _b) || Object]) | ||
], CookieLawComponent); | ||
return CookieLawComponent; | ||
var _a, _b; | ||
}()); | ||
__decorate([ | ||
_angular_core.Input(), | ||
__metadata("design:type", String) | ||
], exports.CookieLawComponent.prototype, "learnMore", void 0); | ||
__decorate([ | ||
_angular_core.Input(), | ||
__metadata("design:type", String) | ||
], exports.CookieLawComponent.prototype, "target", void 0); | ||
exports.CookieLawComponent = __decorate([ | ||
_angular_core.Component({ | ||
selector: 'cookie-law', | ||
animations: [ | ||
_angular_core.trigger('state', [ | ||
_angular_core.state('in', _angular_core.style({ transform: 'translateY(0)' })), | ||
_angular_core.state('void', _angular_core.style({ transform: 'translateY(100%)' })), | ||
_angular_core.transition('* => *', _angular_core.animate('1000ms ease-in-out')) | ||
]) | ||
], | ||
styles: ["\n a {\n color: #bbb;\n -webkit-transition: color .2s;\n transition: color .2s;\n }\n a:hover {\n color: #fff;\n }\n a:hover svg {\n fill: #fff;\n }\n .cookie-law-wrapper {\n background: #333;\n color: #bbb;\n display: block;\n font-family: Helvetica Neue,Helvetica,Arial,sans-serif;\n font-size: 15px;\n font-weight: 200;\n line-height: 20px;\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n z-index: 999999999;\n font-smooth: always;\n -webkit-font-smoothing: antialiased;\n }\n .dismiss {\n display: block;\n box-sizing: border-box;\n padding: 10px;\n position: absolute;\n top: 0;\n right: 10px;\n text-decoration: none;\n line-height: 20px;\n }\n .dismiss svg {\n display: block;\n fill: #bbb;\n width: 20px;\n height: 20px;\n -webkit-transition: fill .2s;\n transition: fill .2s;\n }\n .copy {\n box-sizing: border-box;\n padding: 10px 60px 10px 10px;\n }\n .copy span {\n color: #fff;\n font-weight: 400;\n }\n .copy a {\n text-decoration: underline;\n }\n .copy a:active, .copy a:hover {\n outline: 0;\n }\n\n @media (min-width: 600px) {\n /* For bigger devices: */\n .copy {\n padding: 20px 60px 20px 20px;\n font-size: 18px;\n line-height: 24px;\n }\n .dismiss {\n top: 10px;\n right: 15px;\n }\n .dismiss svg {\n width: 24px;\n height: 24px;\n }\n }\n "], | ||
template: "\n <div class=\"cookie-law-wrapper\"\n *ngIf=\"!cookieLawSeen\"\n [@state]=\"cookieLawSeen\">\n\n <div class=\"copy\">\n <span #ref><ng-content></ng-content></span>\n\n <span *ngIf=\"ref.childNodes.length == 0\">\n By continuing to browse the site, you're agreeing to our use of cookies.\n <span *ngIf=\"learnMore\">\n Learn more in our <a [href]=\"learnMore\" [target]=\"target\">privacy policy</a>.\n </span>\n </span>\n\n <a href=\"#\" role=\"button\"\n class=\"dismiss\"\n [innerHTML]=\"closeSvg\"\n (click)=\"dismiss($event)\"></a>\n </div>\n " | ||
}), | ||
__metadata("design:paramtypes", [typeof (_a = typeof exports.CookieLawService !== "undefined" && exports.CookieLawService) === "function" && _a || Object, typeof (_b = typeof _angular_platformBrowser.DomSanitizer !== "undefined" && _angular_platformBrowser.DomSanitizer) === "function" && _b || Object]) | ||
], exports.CookieLawComponent); | ||
var _a; | ||
var _b; | ||
var CookieLawModule = (function () { | ||
exports.CookieLawModule = (function () { | ||
function CookieLawModule() { | ||
} | ||
CookieLawModule = __decorate([ | ||
_angular_core.NgModule({ | ||
imports: [_angular_common.CommonModule], | ||
declarations: [CookieLawComponent], | ||
providers: [CookieLawService], | ||
exports: [CookieLawComponent] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], CookieLawModule); | ||
return CookieLawModule; | ||
}()); | ||
exports.CookieLawModule = __decorate([ | ||
_angular_core.NgModule({ | ||
imports: [_angular_common.CommonModule], | ||
declarations: [exports.CookieLawComponent], | ||
providers: [exports.CookieLawService], | ||
exports: [exports.CookieLawComponent] | ||
}) | ||
], exports.CookieLawModule); | ||
exports.CookieLawComponent = CookieLawComponent; | ||
exports.CookieLawService = CookieLawService; | ||
exports.CookieLawModule = CookieLawModule; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -125,0 +119,0 @@ |
@@ -7,7 +7,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
import { Injectable } from '@angular/core'; | ||
export let CookieLawService = class CookieLawService { | ||
let CookieLawService = class CookieLawService { | ||
seen() { | ||
@@ -37,5 +34,5 @@ return this.cookieExisits('cookieLawSeen'); | ||
CookieLawService = __decorate([ | ||
Injectable(), | ||
__metadata('design:paramtypes', []) | ||
Injectable() | ||
], CookieLawService); | ||
export { CookieLawService }; | ||
//# sourceMappingURL=cookie-law.service.js.map |
{ | ||
"name": "angular2-cookie-law", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Angular2 component that provides a banner to inform users about cookie law", | ||
@@ -40,20 +40,20 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@angular/common": "2.4.1", | ||
"@angular/compiler": "2.4.1", | ||
"@angular/compiler-cli": "2.4.1", | ||
"@angular/core": "2.4.1", | ||
"@angular/platform-browser": "2.4.1", | ||
"@angular/platform-browser-dynamic": "2.4.1", | ||
"@types/jasmine": "2.2.34", | ||
"@types/node": "6.0.38", | ||
"@types/selenium-webdriver": "2.53.33", | ||
"@types/source-map": "0.1.27", | ||
"@types/webpack": "1.12.34", | ||
"@angular/common": "2.4.7", | ||
"@angular/compiler": "2.4.7", | ||
"@angular/compiler-cli": "2.4.7", | ||
"@angular/core": "2.4.7", | ||
"@angular/platform-browser": "2.4.7", | ||
"@angular/platform-browser-dynamic": "2.4.7", | ||
"@types/jasmine": "2.5.35", | ||
"@types/node": "7.0.5", | ||
"@types/selenium-webdriver": "2.53.39", | ||
"@types/source-map": "0.5.0", | ||
"@types/webpack": "2.2.5", | ||
"angular2-inline-template-style": "1.0.0", | ||
"angular2-template-loader": "0.6.0", | ||
"awesome-typescript-loader": "2.2.4", | ||
"angular2-template-loader": "0.6.2", | ||
"awesome-typescript-loader": "3.0.4-rc.2", | ||
"codelyzer": "2.0.0", | ||
"commitizen": "2.9.5", | ||
"core-js": "2.4.1", | ||
"coveralls": "2.11.15", | ||
"coveralls": "2.11.16", | ||
"cz-conventional-changelog": "1.2.0", | ||
@@ -79,8 +79,8 @@ "husky": "0.13.1", | ||
"semantic-release": "6.3.2", | ||
"source-map-loader": "0.1.5", | ||
"source-map-loader": "0.1.6", | ||
"ts-helpers": "1.1.2", | ||
"tslint": "4.0.0", | ||
"typescript": "2.0.6", | ||
"webpack": "2.2.0", | ||
"zone.js": "0.7.2" | ||
"tslint": "4.4.2", | ||
"typescript": "2.1.6", | ||
"webpack": "2.2.1", | ||
"zone.js": "0.7.6" | ||
}, | ||
@@ -87,0 +87,0 @@ "config": { |
@@ -10,3 +10,3 @@ { | ||
"experimentalDecorators": true, | ||
"lib": ["dom", "es6"], | ||
"lib": ["es6", "dom"], | ||
"sourceMap": true, | ||
@@ -20,5 +20,2 @@ "pretty": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"typeRoots": [ | ||
"node_modules/@types" | ||
], | ||
"types": [ | ||
@@ -35,3 +32,4 @@ "jasmine", | ||
"node_modules", | ||
"demo" | ||
"demo", | ||
"lib" | ||
], | ||
@@ -38,0 +36,0 @@ "awesomeTypescriptLoaderOptions": { |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
252814
1269