angular2-cookie-law
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@angular/platform-browser"],t):"object"==typeof exports?exports["angular2-cookie-law"]=t(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):e["angular2-cookie-law"]=t(e.ng.core,e.ng.common,e.ng["platform-browser"])}(this,function(e,t,o){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,o){t.exports=e},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(9)),r=(o.n(i),o(7)),a=o(5);o.d(t,"a",function(){return c});var s=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.domSanitizer=e,this.isSeen=new n.EventEmitter,this.transition="bottomIn",this._position="bottom",this.cookieLawClass=!0}return Object.defineProperty(e.prototype,"learnMore",{get:function(){return this._learnMore},set:function(e){this._learnMore=null!==e&&""+e!="false"?e:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(e){this._target=null===e||""+e=="false"||""+e!="_blank"&&""+e!="_self"?"_blank":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=null===e||""+e=="false"||""+e!="top"&&""+e!="bottom"?"bottom":e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.noopener="_blank"===this._target,this.transition="bottom"===this.position?"bottomIn":"topIn",this.closeSvg=this.domSanitizer.bypassSecurityTrustHtml(r.a),this.currentStyles={top:"top"===this.position?"0":null,bottom:"top"===this.position?"initial":null}},e.prototype.afterDismissAnimation=function(e){"topOut"!==e.toState&&"bottomOut"!==e.toState||this.isSeen.emit(!0)},e.prototype.dismiss=function(e){e&&e.preventDefault(),this.transition="top"===this.position?"topOut":"bottomOut"},e}();s([o.i(n.HostBinding)("class.cookie-law"),p("design:type",Boolean)],c.prototype,"cookieLawClass",void 0),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"learnMore",null),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"target",null),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"position",null),s([o.i(n.Output)(),p("design:type",Object)],c.prototype,"isSeen",void 0),c=s([o.i(n.Component)({selector:"cookie-law-el",animations:[a.a],styles:[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],template:'<div class="cookie-law-wrapper" [ngStyle]="currentStyles" [@transition]="transition" (@transition.done)="afterDismissAnimation($event)"><div class="copy"><span #ref><ng-content></ng-content></span><span *ngIf="ref.childNodes.length == 0">By continuing to browse the site, you\'re agreeing to our use of cookies. <span *ngIf="learnMore">Learn more in our <a [href]="learnMore" [target]="target" [rel]="noopener ? \'noopener noreferrer\' : null">privacy policy</a>. </span></span><a href="#" role="button" class="dismiss" [innerHTML]="closeSvg" (click)="dismiss($event)"></a></div></div>',encapsulation:n.ViewEncapsulation.None}),p("design:paramtypes",[i.DomSanitizer])],c)},function(e,t,o){"use strict";var n=o(0);o.n(n);o.d(t,"a",function(){return r});var i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=function(){function e(){}return e.prototype.seen=function(e){return void 0===e&&(e="cookieLawSeen"),this.cookieExisits(e)},e.prototype.storeCookie=function(e,t){return this.setCookie(e,t)},e.prototype.cookieExisits=function(e){for(var t,o=document.cookie.split(";"),n=o.length,i=e+"=",r=0;r<n;r+=1)if(t=o[r].replace(/^\s\+/g,""),t.indexOf(i)!==-1)return!0;return!1},e.prototype.setCookie=function(e,t){var o,n=new Date;n.setTime(n.getTime()+864e5*t),o="; expires="+n.toUTCString(),document.cookie=encodeURIComponent(e)+"=true; path=/"+o},e}();r=i([o.i(n.Injectable)()],r)},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(8)),r=(o.n(i),o(6)),a=o(1),s=o(2);o.d(t,"b",function(){return r.a}),o.d(t,"c",function(){return a.a}),o.d(t,"d",function(){return s.a}),o.d(t,"a",function(){return c});var p=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},c=function(){function e(){}return e}();c=p([o.i(n.NgModule)({imports:[i.CommonModule],declarations:[r.a,a.a],providers:[s.a],exports:[r.a]})],c)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);o.d(t,"CookieLawModule",function(){return n.a}),o.d(t,"CookieLawComponent",function(){return n.b}),o.d(t,"CookieLawElementComponent",function(){return n.c}),o.d(t,"CookieLawService",function(){return n.d})},function(e,t,o){"use strict";var n=o(0);o.n(n);o.d(t,"a",function(){return i});var i=o.i(n.trigger)("transition",[o.i(n.state)("*",o.i(n.style)({transform:"translateY(0)"})),o.i(n.state)("void",o.i(n.style)({transform:"translateY(0)"})),o.i(n.state)("bottomOut",o.i(n.style)({transform:"translateY(100%)"})),o.i(n.state)("topOut",o.i(n.style)({transform:"translateY(-100%)"})),o.i(n.transition)("void => topIn",[o.i(n.style)({transform:"translateY(-100%)"}),o.i(n.animate)("1000ms ease-in-out")]),o.i(n.transition)("void => bottomIn",[o.i(n.style)({transform:"translateY(100%)"}),o.i(n.animate)("1000ms ease-in-out")]),o.i(n.transition)("* => *",o.i(n.animate)("1000ms ease-out"))])},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(2)),r=o(1);o.d(t,"a",function(){return p});var a=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e){this._service=e,this.seen=!0,this.isSeen=new n.EventEmitter,this.name="cookieLawSeen"}return Object.defineProperty(e.prototype,"cookieLawSeen",{get:function(){return this._service.seen(this.name)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.seen=this._service.seen(this.name)},e.prototype.hasBeenDismissed=function(){this._service.storeCookie(this.name,this.expiration),this.seen=!0,this.isSeen.emit(!0)},e.prototype.dismiss=function(){this.cookieLawComponent.dismiss()},e}();a([o.i(n.HostBinding)("attr.seen"),s("design:type",Boolean)],p.prototype,"seen",void 0),a([o.i(n.ViewChild)(r.a),s("design:type",r.a)],p.prototype,"cookieLawComponent",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"name",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"learnMore",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"target",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"position",void 0),a([o.i(n.Input)(),s("design:type",Number)],p.prototype,"expiration",void 0),a([o.i(n.Output)(),s("design:type",Object)],p.prototype,"isSeen",void 0),p=a([o.i(n.Component)({selector:"cookie-law",template:'\n <cookie-law-el *ngIf="!seen"\n [learnMore]="learnMore"\n [target]="target"\n [position]="position"\n (isSeen)="hasBeenDismissed()"><ng-content></ng-content></cookie-law-el>\n '}),s("design:paramtypes",[i.a])],p)},function(e,t,o){"use strict";o.d(t,"a",function(){return n});var n='\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>'},function(e,o){e.exports=t},function(e,t){e.exports=o}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@angular/platform-browser"],t):"object"==typeof exports?exports["angular2-cookie-law"]=t(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):e["angular2-cookie-law"]=t(e.ng.core,e.ng.common,e.ng["platform-browser"])}(this,function(e,t,o){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,o){t.exports=e},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(9)),r=(o.n(i),o(7)),a=o(5);o.d(t,"a",function(){return c});var s=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.domSanitizer=e,this.isSeen=new n.EventEmitter,this.transition="bottomIn",this._position="bottom",this.cookieLawClass=!0}return Object.defineProperty(e.prototype,"learnMore",{get:function(){return this._learnMore},set:function(e){this._learnMore=null!==e&&""+e!="false"?e:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"awsomeCloseIcon",{get:function(){return this._awsomeCloseIcon},set:function(e){this._awsomeCloseIcon=null!==e&&""+e!="false"?e:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(e){this._target=null===e||""+e=="false"||""+e!="_blank"&&""+e!="_self"?"_blank":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=null===e||""+e=="false"||""+e!="top"&&""+e!="bottom"?"bottom":e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.noopener="_blank"===this._target,this.transition="bottom"===this.position?"bottomIn":"topIn",this._awsomeCloseIcon?this.closeSvg=this.domSanitizer.bypassSecurityTrustHtml("<i class='fab "+this._awsomeCloseIcon+"'></i>"):this.closeSvg=this.domSanitizer.bypassSecurityTrustHtml(r.a),this.currentStyles={top:"top"===this.position?"0":null,bottom:"top"===this.position?"initial":null}},e.prototype.afterDismissAnimation=function(e){"topOut"!==e.toState&&"bottomOut"!==e.toState||this.isSeen.emit(!0)},e.prototype.dismiss=function(e){e&&e.preventDefault(),this.transition="top"===this.position?"topOut":"bottomOut"},e}();s([o.i(n.HostBinding)("class.cookie-law"),p("design:type",Boolean)],c.prototype,"cookieLawClass",void 0),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"learnMore",null),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"awsomeCloseIcon",null),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"target",null),s([o.i(n.Input)(),p("design:type",Object),p("design:paramtypes",[String])],c.prototype,"position",null),s([o.i(n.Output)(),p("design:type",Object)],c.prototype,"isSeen",void 0),c=s([o.i(n.Component)({selector:"cookie-law-el",animations:[a.a],styles:[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],template:'<div class="cookie-law-wrapper" [ngStyle]="currentStyles" [@transition]="transition" (@transition.done)="afterDismissAnimation($event)"><div class="copy"><span #ref><ng-content></ng-content></span><span *ngIf="ref.childNodes.length == 0">By continuing to browse the site, you\'re agreeing to our use of cookies. <span *ngIf="learnMore">Learn more in our <a [href]="learnMore" [target]="target" [rel]="noopener ? \'noopener noreferrer\' : null">privacy policy</a>. </span></span><a href="#" role="button" class="dismiss" [innerHTML]="closeSvg" (click)="dismiss($event)"></a></div></div>',encapsulation:n.ViewEncapsulation.None}),p("design:paramtypes",[i.DomSanitizer])],c)},function(e,t,o){"use strict";var n=o(0);o.n(n);o.d(t,"a",function(){return r});var i=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},r=function(){function e(){}return e.prototype.seen=function(e){return void 0===e&&(e="cookieLawSeen"),this.cookieExisits(e)},e.prototype.storeCookie=function(e,t){return this.setCookie(e,t)},e.prototype.cookieExisits=function(e){for(var t,o=document.cookie.split(";"),n=o.length,i=e+"=",r=0;r<n;r+=1)if(t=o[r].replace(/^\s\+/g,""),t.indexOf(i)!==-1)return!0;return!1},e.prototype.setCookie=function(e,t){var o,n=new Date;n.setTime(n.getTime()+864e5*t),o="; expires="+n.toUTCString(),document.cookie=encodeURIComponent(e)+"=true; path=/"+o},e}();r=i([o.i(n.Injectable)()],r)},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(8)),r=(o.n(i),o(6)),a=o(1),s=o(2);o.d(t,"b",function(){return r.a}),o.d(t,"c",function(){return a.a}),o.d(t,"d",function(){return s.a}),o.d(t,"a",function(){return c});var p=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},c=function(){function e(){}return e}();c=p([o.i(n.NgModule)({imports:[i.CommonModule],declarations:[r.a,a.a],providers:[s.a],exports:[r.a]})],c)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);o.d(t,"CookieLawModule",function(){return n.a}),o.d(t,"CookieLawComponent",function(){return n.b}),o.d(t,"CookieLawElementComponent",function(){return n.c}),o.d(t,"CookieLawService",function(){return n.d})},function(e,t,o){"use strict";var n=o(0);o.n(n);o.d(t,"a",function(){return i});var i=o.i(n.trigger)("transition",[o.i(n.state)("*",o.i(n.style)({transform:"translateY(0)"})),o.i(n.state)("void",o.i(n.style)({transform:"translateY(0)"})),o.i(n.state)("bottomOut",o.i(n.style)({transform:"translateY(100%)"})),o.i(n.state)("topOut",o.i(n.style)({transform:"translateY(-100%)"})),o.i(n.transition)("void => topIn",[o.i(n.style)({transform:"translateY(-100%)"}),o.i(n.animate)("1000ms ease-in-out")]),o.i(n.transition)("void => bottomIn",[o.i(n.style)({transform:"translateY(100%)"}),o.i(n.animate)("1000ms ease-in-out")]),o.i(n.transition)("* => *",o.i(n.animate)("1000ms ease-out"))])},function(e,t,o){"use strict";var n=o(0),i=(o.n(n),o(2)),r=o(1);o.d(t,"a",function(){return p});var a=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e){this._service=e,this.seen=!0,this.isSeen=new n.EventEmitter,this.name="cookieLawSeen"}return Object.defineProperty(e.prototype,"cookieLawSeen",{get:function(){return this._service.seen(this.name)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.seen=this._service.seen(this.name)},e.prototype.hasBeenDismissed=function(){this._service.storeCookie(this.name,this.expiration),this.seen=!0,this.isSeen.emit(!0)},e.prototype.dismiss=function(){this.cookieLawComponent.dismiss()},e}();a([o.i(n.HostBinding)("attr.seen"),s("design:type",Boolean)],p.prototype,"seen",void 0),a([o.i(n.ViewChild)(r.a),s("design:type",r.a)],p.prototype,"cookieLawComponent",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"name",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"learnMore",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"target",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"position",void 0),a([o.i(n.Input)(),s("design:type",Number)],p.prototype,"expiration",void 0),a([o.i(n.Input)(),s("design:type",String)],p.prototype,"awsomeCloseIcon",void 0),a([o.i(n.Output)(),s("design:type",Object)],p.prototype,"isSeen",void 0),p=a([o.i(n.Component)({selector:"cookie-law",template:'\n <cookie-law-el *ngIf="!seen"\n [awsomeCloseIcon]="awsomeCloseIcon"\n [learnMore]="learnMore"\n [target]="target"\n [position]="position"\n (isSeen)="hasBeenDismissed()"><ng-content></ng-content></cookie-law-el>\n '}),s("design:paramtypes",[i.a])],p)},function(e,t,o){"use strict";o.d(t,"a",function(){return n});var n='\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>'},function(e,o){e.exports=t},function(e,t){e.exports=o}])}); | ||
//# sourceMappingURL=angular2-cookie-law.umd.js.map |
@@ -11,2 +11,3 @@ import { OnInit, EventEmitter, AnimationTransitionEvent } from '@angular/core'; | ||
learnMore: string; | ||
awsomeCloseIcon: string; | ||
target: CookieLawTarget; | ||
@@ -17,2 +18,3 @@ position: CookieLawPosition; | ||
private _learnMore; | ||
private _awsomeCloseIcon; | ||
private _target; | ||
@@ -19,0 +21,0 @@ private _position; |
@@ -30,2 +30,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}); | ||
Object.defineProperty(CookieLawElementComponent.prototype, "awsomeCloseIcon", { | ||
get: function () { return this._awsomeCloseIcon; }, | ||
set: function (value) { | ||
this._awsomeCloseIcon = (value !== null && "" + value !== 'false') ? value : null; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(CookieLawElementComponent.prototype, "target", { | ||
@@ -52,3 +60,8 @@ get: function () { return this._target; }, | ||
this.transition = this.position === 'bottom' ? 'bottomIn' : 'topIn'; | ||
this.closeSvg = this.domSanitizer.bypassSecurityTrustHtml(closeIcon); | ||
if (this._awsomeCloseIcon) { | ||
this.closeSvg = this.domSanitizer.bypassSecurityTrustHtml("<i class='fab " + this._awsomeCloseIcon + "'></i>"); | ||
} | ||
else { | ||
this.closeSvg = this.domSanitizer.bypassSecurityTrustHtml(closeIcon); | ||
} | ||
this.currentStyles = { | ||
@@ -86,2 +99,7 @@ 'top': this.position === 'top' ? '0' : null, | ||
__metadata("design:paramtypes", [String]) | ||
], CookieLawElementComponent.prototype, "awsomeCloseIcon", null); | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", [String]) | ||
], CookieLawElementComponent.prototype, "target", null); | ||
@@ -88,0 +106,0 @@ __decorate([ |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"CookieLawElementComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law-el","animations":[{"__symbolic":"reference","module":"./animations","name":"translateInOut"}],"styles":[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],"template":"<div class=\"cookie-law-wrapper\" [ngStyle]=\"currentStyles\" [@transition]=\"transition\" (@transition.done)=\"afterDismissAnimation($event)\"><div class=\"copy\"><span #ref><ng-content></ng-content></span><span *ngIf=\"ref.childNodes.length == 0\">By continuing to browse the site, you're agreeing to our use of cookies. <span *ngIf=\"learnMore\">Learn more in our <a [href]=\"learnMore\" [target]=\"target\" [rel]=\"noopener ? 'noopener noreferrer' : null\">privacy policy</a>. </span></span><a href=\"#\" role=\"button\" class=\"dismiss\" [innerHTML]=\"closeSvg\" (click)=\"dismiss($event)\"></a></div></div>","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"cookieLawClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.cookie-law"]}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"afterDismissAnimation":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CookieLawElementComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law-el","animations":[{"__symbolic":"reference","module":"./animations","name":"translateInOut"}],"styles":[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],"template":"<div class=\"cookie-law-wrapper\" [ngStyle]=\"currentStyles\" [@transition]=\"transition\" (@transition.done)=\"afterDismissAnimation($event)\"><div class=\"copy\"><span #ref><ng-content></ng-content></span><span *ngIf=\"ref.childNodes.length == 0\">By continuing to browse the site, you're agreeing to our use of cookies. <span *ngIf=\"learnMore\">Learn more in our <a [href]=\"learnMore\" [target]=\"target\" [rel]=\"noopener ? 'noopener noreferrer' : null\">privacy policy</a>. </span></span><a href=\"#\" role=\"button\" class=\"dismiss\" [innerHTML]=\"closeSvg\" (click)=\"dismiss($event)\"></a></div></div>","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"cookieLawClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.cookie-law"]}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"afterDismissAnimation":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"CookieLawElementComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law-el","animations":[{"__symbolic":"reference","module":"./animations","name":"translateInOut"}],"styles":[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],"template":"<div class=\"cookie-law-wrapper\" [ngStyle]=\"currentStyles\" [@transition]=\"transition\" (@transition.done)=\"afterDismissAnimation($event)\"><div class=\"copy\"><span #ref><ng-content></ng-content></span><span *ngIf=\"ref.childNodes.length == 0\">By continuing to browse the site, you're agreeing to our use of cookies. <span *ngIf=\"learnMore\">Learn more in our <a [href]=\"learnMore\" [target]=\"target\" [rel]=\"noopener ? 'noopener noreferrer' : null\">privacy policy</a>. </span></span><a href=\"#\" role=\"button\" class=\"dismiss\" [innerHTML]=\"closeSvg\" (click)=\"dismiss($event)\"></a></div></div>","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"cookieLawClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.cookie-law"]}]}],"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"awsomeCloseIcon":[{"__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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"afterDismissAnimation":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"CookieLawElementComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"cookie-law-el","animations":[{"__symbolic":"reference","module":"./animations","name":"translateInOut"}],"styles":[".cookie-law .cookie-law-wrapper { background: #333; color: #bbb; display: block; font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 15px; font-weight: 200; line-height: 20px; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999999999; font-smooth: always; -webkit-font-smoothing: antialiased;}.cookie-law .cookie-law-wrapper a { color: #bbb; -webkit-transition: color .2s; transition: color .2s;}.cookie-law .cookie-law-wrapper a:hover { color: #fff;}.cookie-law .cookie-law-wrapper a:hover svg { fill: #fff;}.cookie-law .cookie-law-wrapper .dismiss { display: block; box-sizing: border-box; padding: 10px; position: absolute; top: 0; right: 10px; text-decoration: none; line-height: 20px;}.cookie-law .cookie-law-wrapper .dismiss svg { display: block; fill: #bbb; width: 20px; height: 20px; -webkit-transition: fill .2s; transition: fill .2s;}.cookie-law .cookie-law-wrapper .copy { box-sizing: border-box; padding: 10px 60px 10px 10px;}.cookie-law .cookie-law-wrapper .copy span { color: #fff; font-weight: 400;}.cookie-law .cookie-law-wrapper .copy a { text-decoration: underline;}.cookie-law .cookie-law-wrapper .copy a:active, .copy a:hover { outline: 0;}@media (min-width: 600px) { /* For bigger devices: */ .cookie-law .cookie-law-wrapper .copy { padding: 20px 60px 20px 20px; font-size: 18px; line-height: 24px; } .cookie-law .cookie-law-wrapper .dismiss { top: 10px; right: 15px; } .cookie-law .cookie-law-wrapper .dismiss svg { width: 24px; height: 24px; }}"],"template":"<div class=\"cookie-law-wrapper\" [ngStyle]=\"currentStyles\" [@transition]=\"transition\" (@transition.done)=\"afterDismissAnimation($event)\"><div class=\"copy\"><span #ref><ng-content></ng-content></span><span *ngIf=\"ref.childNodes.length == 0\">By continuing to browse the site, you're agreeing to our use of cookies. <span *ngIf=\"learnMore\">Learn more in our <a [href]=\"learnMore\" [target]=\"target\" [rel]=\"noopener ? 'noopener noreferrer' : null\">privacy policy</a>. </span></span><a href=\"#\" role=\"button\" class=\"dismiss\" [innerHTML]=\"closeSvg\" (click)=\"dismiss($event)\"></a></div></div>","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"cookieLawClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.cookie-law"]}]}],"learnMore":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"awsomeCloseIcon":[{"__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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer"}]}],"ngOnInit":[{"__symbolic":"method"}],"afterDismissAnimation":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}}] |
@@ -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}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law-el","inputs":{"learnMore":"learnMore","target":"target","position":"position"},"outputs":{"isSeen":"isSeen"},"hostListeners":{},"hostProperties":{"class.cookie-law":"cookieLawClass"},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":["transition"],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"CookieLawElementComponent","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law-element.component.d.ts"},{"__symbol":1,"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}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law-el","inputs":{"learnMore":"learnMore","awsomeCloseIcon":"awsomeCloseIcon","target":"target","position":"position"},"outputs":{"isSeen":"isSeen"},"hostListeners":{},"hostProperties":{"class.cookie-law":"cookieLawClass"},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":["transition"],"ngContentSelectors":["*"],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"CookieLawElementComponent","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/lib/cookie-law-element.component.d.ts"},{"__symbol":1,"name":"DomSanitizer","filePath":"/home/travis/build/andreasonny83/angular2-cookie-law/node_modules/@angular/platform-browser/src/security/dom_sanitization_service.d.ts"}]} |
@@ -14,2 +14,3 @@ import { OnInit, EventEmitter } from '@angular/core'; | ||
expiration: number; | ||
awsomeCloseIcon: string; | ||
isSeen: EventEmitter<boolean>; | ||
@@ -16,0 +17,0 @@ readonly cookieLawSeen: boolean; |
@@ -69,2 +69,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
__decorate([ | ||
Input(), | ||
__metadata("design:type", String) | ||
], CookieLawComponent.prototype, "awsomeCloseIcon", void 0); | ||
__decorate([ | ||
Output(), | ||
@@ -76,3 +80,3 @@ __metadata("design:type", Object) | ||
selector: 'cookie-law', | ||
template: "\n <cookie-law-el *ngIf=\"!seen\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n ", | ||
template: "\n <cookie-law-el *ngIf=\"!seen\"\n [awsomeCloseIcon]=\"awsomeCloseIcon\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n ", | ||
}), | ||
@@ -79,0 +83,0 @@ __metadata("design:paramtypes", [CookieLawService]) |
@@ -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","template":"\n <cookie-law-el *ngIf=\"!seen\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n "}]}],"members":{"seen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.seen"]}]}],"cookieLawComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","module":"./cookie-law-element.component","name":"CookieLawElementComponent"}]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"expiration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"}]}],"ngOnInit":[{"__symbolic":"method"}],"hasBeenDismissed":[{"__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","template":"\n <cookie-law-el *ngIf=\"!seen\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n "}]}],"members":{"seen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.seen"]}]}],"cookieLawComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","module":"./cookie-law-element.component","name":"CookieLawElementComponent"}]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"expiration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"}]}],"ngOnInit":[{"__symbolic":"method"}],"hasBeenDismissed":[{"__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","template":"\n <cookie-law-el *ngIf=\"!seen\"\n [awsomeCloseIcon]=\"awsomeCloseIcon\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n "}]}],"members":{"seen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.seen"]}]}],"cookieLawComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","module":"./cookie-law-element.component","name":"CookieLawElementComponent"}]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"expiration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"awsomeCloseIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"}]}],"ngOnInit":[{"__symbolic":"method"}],"hasBeenDismissed":[{"__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","template":"\n <cookie-law-el *ngIf=\"!seen\"\n [awsomeCloseIcon]=\"awsomeCloseIcon\"\n [learnMore]=\"learnMore\"\n [target]=\"target\"\n [position]=\"position\"\n (isSeen)=\"hasBeenDismissed()\"><ng-content></ng-content></cookie-law-el>\n "}]}],"members":{"seen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.seen"]}]}],"cookieLawComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","module":"./cookie-law-element.component","name":"CookieLawElementComponent"}]}]}],"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"expiration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"awsomeCloseIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSeen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./cookie-law.service","name":"CookieLawService"}]}],"ngOnInit":[{"__symbolic":"method"}],"hasBeenDismissed":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}]}}}}] |
@@ -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}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law","inputs":{"name":"name","learnMore":"learnMore","target":"target","position":"position","expiration":"expiration"},"outputs":{"isSeen":"isSeen"},"hostListeners":{},"hostProperties":{"attr.seen":"seen"},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"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"}]} | ||
{"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}}}}],"lifecycleHooks":[0]},"isComponent":true,"selector":"cookie-law","inputs":{"name":"name","learnMore":"learnMore","target":"target","position":"position","expiration":"expiration","awsomeCloseIcon":"awsomeCloseIcon"},"outputs":{"isSeen":"isSeen"},"hostListeners":{},"hostProperties":{"attr.seen":"seen"},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"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"}]} |
{ | ||
"name": "angular2-cookie-law", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Angular2+ component that provides a banner to inform users about cookie law", | ||
@@ -5,0 +5,0 @@ "scripts": { |
[![Build Status](https://travis-ci.org/andreasonny83/angular2-cookie-law.svg?branch=master)](https://travis-ci.org/andreasonny83/angular2-cookie-law) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/gy65rk7l0nln23nj?svg=true)](https://ci.appveyor.com/project/andreasonny83/angular2-cookie-law) | ||
[![npm version](https://badge.fury.io/js/angular2-cookie-law.svg)](https://badge.fury.io/js/angular2-cookie-law) | ||
@@ -174,2 +173,25 @@ [![npm](https://img.shields.io/npm/dt/angular2-cookie-law.svg)](https://www.npmjs.com/package/angular2-cookie-law) | ||
### awsomeCloseIcon | ||
Font Awsome is required in your header for this feature to work. | ||
```html | ||
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> | ||
``` | ||
| Type | Default value | | ||
| --- | --- | | ||
| string | null | | ||
If set to a Font awsome Icon e.g. "fa-window-close" it will replace the standard SVG with the Font awsome Icon. | ||
###### Example | ||
```html | ||
<cookie-law awsomeCloseIcon="fa-window-close"></cookie-law> | ||
``` | ||
### target | ||
@@ -324,3 +346,3 @@ | ||
This website contains cookie. | ||
<a =href="#/cookie-policy">Read more</a> | ||
<a href="#/cookie-policy">Read more</a> | ||
</cookie-law> | ||
@@ -327,0 +349,0 @@ ``` |
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
144904
490
399