ngx-lottie
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -261,2 +261,3 @@ (function (global, factory) { | ||
this.height = ( /** @type {?} */(null)); | ||
this.detach = false; | ||
/** | ||
@@ -316,2 +317,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -326,2 +328,3 @@ * @param {?} platformId | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -334,3 +337,3 @@ * @param {?} platformId | ||
*/ | ||
function (zone, platformId, lottieEventsService, container, instance) { | ||
function (ref, zone, platformId, lottieEventsService, container, instance) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -349,2 +352,6 @@ var animationItem; | ||
lottieEventsService.setAnimationItemAndLottieEventListeners(animationItem, instance); | ||
// Basically make this view static and never check it in the future | ||
if (this.detach) { | ||
ref.detach(); | ||
} | ||
return [2 /*return*/]; | ||
@@ -364,2 +371,3 @@ } | ||
height: [{ type: i0.Input }], | ||
detach: [{ type: i0.Input }], | ||
animationCreated: [{ type: i0.Output }], | ||
@@ -540,4 +548,5 @@ complete: [{ type: i0.Output }], | ||
__extends(LottieDirective, _super); | ||
function LottieDirective(zone, platformId, lottieEventsService, host) { | ||
function LottieDirective(ref, zone, platformId, lottieEventsService, host) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -556,3 +565,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
}; | ||
@@ -568,2 +577,3 @@ LottieDirective.decorators = [ | ||
return [ | ||
{ type: i0.ChangeDetectorRef }, | ||
{ type: i0.NgZone }, | ||
@@ -584,4 +594,5 @@ { type: String, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }, | ||
__extends(LottieComponent, _super); | ||
function LottieComponent(zone, platformId, lottieEventsService) { | ||
function LottieComponent(ref, zone, platformId, lottieEventsService) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -600,3 +611,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
}; | ||
@@ -614,2 +625,3 @@ LottieComponent.decorators = [ | ||
return [ | ||
{ type: i0.ChangeDetectorRef }, | ||
{ type: i0.NgZone }, | ||
@@ -616,0 +628,0 @@ { type: String, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }, |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-lottie",["exports","@angular/common","@angular/core","@angular/platform-browser"],e):e(t["ngx-lottie"]={},t.ng.common,t.ng.core,t.ng.platformBrowser)}(this,function(t,l,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function a(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(e,a,s,u){return new(s||(s=Promise))(function(t,n){function r(t){try{i(u.next(t))}catch(e){n(e)}}function o(t){try{i(u["throw"](t))}catch(e){n(e)}}function i(e){e.done?t(e.value):new s(function(t){t(e.value)}).then(r,o)}i((u=u.apply(e,a||[])).next())})}function u(r,o){var i,a,s,t,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=a[2&t[0]?"return":t[0]?"throw":"next"])&&!(s=s.call(a,t[1])).done)return s;switch(a=0,s&&(t=[0,s.value]),t[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(r,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function p(n,o,i){return s(this,void 0,void 0,function(){var e;return u(this,function(t){switch(t.label){case 0:return o=function r(t,e){var n={container:e,renderer:"svg",loop:!0,autoplay:!0};return Object.assign(n,t)}(o,i),[4,import("lottie-web/build/player/lottie.js")];case 1:return e=t.sent(),[2,n.runOutsideAngular(function(){return e.loadAnimation(o)})]}})})}var o={complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",config_ready:"configReady",data_ready:"dataReady",data_failed:"dataFailed",loaded_images:"loadedImages",DOMLoaded:"domLoaded",destroy:"destroy"};function i(t,e){return t[function n(t){return o[t]}(e)]}var d=["complete","loopComplete","enterFrame","segmentStart","config_ready","data_ready","data_failed","loaded_images","DOMLoaded","destroy"],f=function(){function t(){this.options=null,this.containerClass=null,this.styles=null,this.width=null,this.height=null,this.animationCreated=new e.EventEmitter,this.complete=new e.EventEmitter,this.loopComplete=new e.EventEmitter,this.enterFrame=new e.EventEmitter,this.segmentStart=new e.EventEmitter,this.configReady=new e.EventEmitter,this.dataReady=new e.EventEmitter,this.dataFailed=new e.EventEmitter,this.loadedImages=new e.EventEmitter,this.domLoaded=new e.EventEmitter,this.destroy=new e.EventEmitter}return t.prototype.loadAnimation=function(n,r,o,i,a){return s(this,void 0,void 0,function(){var e;return u(this,function(t){switch(t.label){case 0:return l.isPlatformServer(r)?[2]:[4,p(n,this.options,i)];case 1:return e=t.sent(),o.animationCreated(e,this.animationCreated),o.setAnimationItemAndLottieEventListeners(e,a),[2]}})})},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]"}]}],t.propDecorators={options:[{type:e.Input}],containerClass:[{type:e.Input}],styles:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],animationCreated:[{type:e.Output}],complete:[{type:e.Output}],loopComplete:[{type:e.Output}],enterFrame:[{type:e.Output}],segmentStart:[{type:e.Output}],configReady:[{type:e.Output}],dataReady:[{type:e.Output}],dataFailed:[{type:e.Output}],loadedImages:[{type:e.Output}],domLoaded:[{type:e.Output}],destroy:[{type:e.Output}]},t}(),y=function(){function t(t,e){this.zone=t,this.platformId=e,this.animationItem=null,this.listeners=new Map}return t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.animationCreated=function(t,e){e.emit(t)},t.prototype.setAnimationItemAndLottieEventListeners=function(t,e){var n=this;this.animationItem=t,this.zone.runOutsideAngular(function(){return n.setupLottieEventListeners(e)})},t.prototype.setupLottieEventListeners=function(e){var n=this;d.forEach(function(t){n.setupLottieEventListener(t,e)})},t.prototype.setupLottieEventListener=function(t,e){var n=i(e,t),r=function(t){return n.emit(t)};this.animationItem.addEventListener(t,r),"destroy"!==t&&this.listeners.set(t,r)},t.prototype.dispose=function(){var t,e;if(!l.isPlatformServer(this.platformId)){try{for(var n=function s(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(this.listeners.entries()),r=n.next();!r.done;r=n.next()){var o=c(r.value,2),i=o[0],a=o[1];this.animationItem.removeEventListener(i,a)}}catch(u){t={error:u}}finally{try{r&&!r.done&&(e=n["return"])&&e.call(n)}finally{if(t)throw t.error}}this.listeners.clear(),this.animationItem.destroy(),this.animationItem=null}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t}(),m=function(i){function t(t,e,n,r){var o=i.call(this)||this;return o.zone=t,o.platformId=e,o.lottieEventsService=n,o.host=r,o}return a(t,i),t.prototype.ngOnInit=function(){i.prototype.loadAnimation.call(this,this.zone,this.platformId,this.lottieEventsService,this.host.nativeElement,this)},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]",providers:[y]}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:y,decorators:[{type:e.Self}]},{type:e.ElementRef,decorators:[{type:e.Self}]}]},t}(f),h=function(o){function t(t,e,n){var r=o.call(this)||this;return r.zone=t,r.platformId=e,r.lottieEventsService=n,r.container=null,r}return a(t,o),t.prototype.ngOnInit=function(){o.prototype.loadAnimation.call(this,this.zone,this.platformId,this.lottieEventsService,this.container.nativeElement,this)},t.decorators=[{type:e.Component,args:[{selector:"ng-lottie",template:'\n <div\n #container\n [style.width.px]="width"\n [style.height.px]="height"\n style="margin: 0 auto"\n [ngStyle]="styles"\n [ngClass]="containerClass"\n ></div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[y]}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:y,decorators:[{type:e.Self}]}]},t.propDecorators={container:[{type:e.ViewChild,args:["container"]}]},t}(f),v=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[l.CommonModule],declarations:[f,m,h],exports:[f,m,h]}]}],t}();function g(t){return"animation-"+t.split(".json")[0]}var E=function(){function t(t){this.state=t}return t.prototype.get=function(t){t=g(t);var e=n.makeStateKey(t);return this.state.get(e,null)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.TransferState}]},t.ngInjectableDef=e.defineInjectable({factory:function(){return new t(e.inject(n.TransferState))},token:t,providedIn:"root"}),t}();t.LottieModule=v,t.LottieDirective=m,t.LottieComponent=h,t.LottieTransferState=E,t.transformAnimationFilenameToKey=g,t.ɵa=f,t.ɵb=y,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-lottie",["exports","@angular/common","@angular/core","@angular/platform-browser"],e):e(t["ngx-lottie"]={},t.ng.common,t.ng.core,t.ng.platformBrowser)}(this,function(t,l,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function u(e,a,s,u){return new(s||(s=Promise))(function(t,n){function r(t){try{i(u.next(t))}catch(e){n(e)}}function o(t){try{i(u["throw"](t))}catch(e){n(e)}}function i(e){e.done?t(e.value):new s(function(t){t(e.value)}).then(r,o)}i((u=u.apply(e,a||[])).next())})}function c(r,o){var i,a,s,t,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=a[2&t[0]?"return":t[0]?"throw":"next"])&&!(s=s.call(a,t[1])).done)return s;switch(a=0,s&&(t=[0,s.value]),t[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(r,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}function d(n,o,i){return u(this,void 0,void 0,function(){var e;return c(this,function(t){switch(t.label){case 0:return o=function r(t,e){var n={container:e,renderer:"svg",loop:!0,autoplay:!0};return Object.assign(n,t)}(o,i),[4,import("lottie-web/build/player/lottie.js")];case 1:return e=t.sent(),[2,n.runOutsideAngular(function(){return e.loadAnimation(o)})]}})})}var i={complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",config_ready:"configReady",data_ready:"dataReady",data_failed:"dataFailed",loaded_images:"loadedImages",DOMLoaded:"domLoaded",destroy:"destroy"};function a(t,e){return t[function n(t){return i[t]}(e)]}var s=["complete","loopComplete","enterFrame","segmentStart","config_ready","data_ready","data_failed","loaded_images","DOMLoaded","destroy"],f=function(){function t(){this.options=null,this.containerClass=null,this.styles=null,this.width=null,this.height=null,this.detach=!1,this.animationCreated=new e.EventEmitter,this.complete=new e.EventEmitter,this.loopComplete=new e.EventEmitter,this.enterFrame=new e.EventEmitter,this.segmentStart=new e.EventEmitter,this.configReady=new e.EventEmitter,this.dataReady=new e.EventEmitter,this.dataFailed=new e.EventEmitter,this.loadedImages=new e.EventEmitter,this.domLoaded=new e.EventEmitter,this.destroy=new e.EventEmitter}return t.prototype.loadAnimation=function(n,r,o,i,a,s){return u(this,void 0,void 0,function(){var e;return c(this,function(t){switch(t.label){case 0:return l.isPlatformServer(o)?[2]:[4,d(r,this.options,a)];case 1:return e=t.sent(),i.animationCreated(e,this.animationCreated),i.setAnimationItemAndLottieEventListeners(e,s),this.detach&&n.detach(),[2]}})})},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]"}]}],t.propDecorators={options:[{type:e.Input}],containerClass:[{type:e.Input}],styles:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],detach:[{type:e.Input}],animationCreated:[{type:e.Output}],complete:[{type:e.Output}],loopComplete:[{type:e.Output}],enterFrame:[{type:e.Output}],segmentStart:[{type:e.Output}],configReady:[{type:e.Output}],dataReady:[{type:e.Output}],dataFailed:[{type:e.Output}],loadedImages:[{type:e.Output}],domLoaded:[{type:e.Output}],destroy:[{type:e.Output}]},t}(),y=function(){function t(t,e){this.zone=t,this.platformId=e,this.animationItem=null,this.listeners=new Map}return t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.animationCreated=function(t,e){e.emit(t)},t.prototype.setAnimationItemAndLottieEventListeners=function(t,e){var n=this;this.animationItem=t,this.zone.runOutsideAngular(function(){return n.setupLottieEventListeners(e)})},t.prototype.setupLottieEventListeners=function(e){var n=this;s.forEach(function(t){n.setupLottieEventListener(t,e)})},t.prototype.setupLottieEventListener=function(t,e){var n=a(e,t),r=function(t){return n.emit(t)};this.animationItem.addEventListener(t,r),"destroy"!==t&&this.listeners.set(t,r)},t.prototype.dispose=function(){var t,e;if(!l.isPlatformServer(this.platformId)){try{for(var n=function s(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}(this.listeners.entries()),r=n.next();!r.done;r=n.next()){var o=p(r.value,2),i=o[0],a=o[1];this.animationItem.removeEventListener(i,a)}}catch(u){t={error:u}}finally{try{r&&!r.done&&(e=n["return"])&&e.call(n)}finally{if(t)throw t.error}}this.listeners.clear(),this.animationItem.destroy(),this.animationItem=null}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t}(),m=function(a){function t(t,e,n,r,o){var i=a.call(this)||this;return i.ref=t,i.zone=e,i.platformId=n,i.lottieEventsService=r,i.host=o,i}return o(t,a),t.prototype.ngOnInit=function(){a.prototype.loadAnimation.call(this,this.ref,this.zone,this.platformId,this.lottieEventsService,this.host.nativeElement,this)},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]",providers:[y]}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:y,decorators:[{type:e.Self}]},{type:e.ElementRef,decorators:[{type:e.Self}]}]},t}(f),h=function(i){function t(t,e,n,r){var o=i.call(this)||this;return o.ref=t,o.zone=e,o.platformId=n,o.lottieEventsService=r,o.container=null,o}return o(t,i),t.prototype.ngOnInit=function(){i.prototype.loadAnimation.call(this,this.ref,this.zone,this.platformId,this.lottieEventsService,this.container.nativeElement,this)},t.decorators=[{type:e.Component,args:[{selector:"ng-lottie",template:'\n <div\n #container\n [style.width.px]="width"\n [style.height.px]="height"\n style="margin: 0 auto"\n [ngStyle]="styles"\n [ngClass]="containerClass"\n ></div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[y]}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:y,decorators:[{type:e.Self}]}]},t.propDecorators={container:[{type:e.ViewChild,args:["container"]}]},t}(f),v=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[l.CommonModule],declarations:[f,m,h],exports:[f,m,h]}]}],t}();function g(t){return"animation-"+t.split(".json")[0]}var E=function(){function t(t){this.state=t}return t.prototype.get=function(t){t=g(t);var e=n.makeStateKey(t);return this.state.get(e,null)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.TransferState}]},t.ngInjectableDef=e.defineInjectable({factory:function(){return new t(e.inject(n.TransferState))},token:t,providedIn:"root"}),t}();t.LottieModule=v,t.LottieDirective=m,t.LottieComponent=h,t.LottieTransferState=E,t.transformAnimationFilenameToKey=g,t.ɵa=f,t.ɵb=y,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-lottie.umd.min.js.map |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Component, ChangeDetectionStrategy, Inject, NgZone, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core'; | ||
import { Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef, NgZone, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
@@ -11,2 +11,3 @@ import { BaseDirective } from '../directives/base.directive'; | ||
/** | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -16,4 +17,5 @@ * @param {?} platformId | ||
*/ | ||
constructor(zone, platformId, lottieEventsService) { | ||
constructor(ref, zone, platformId, lottieEventsService) { | ||
super(); | ||
this.ref = ref; | ||
this.zone = zone; | ||
@@ -28,3 +30,3 @@ this.platformId = platformId; | ||
ngOnInit() { | ||
super.loadAnimation(this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
super.loadAnimation(this.ref, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
} | ||
@@ -51,2 +53,3 @@ } | ||
LottieComponent.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -66,2 +69,7 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
*/ | ||
LottieComponent.prototype.ref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LottieComponent.prototype.zone; | ||
@@ -79,2 +87,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvY29yZS9jb21wb25lbnRzL2xvdHRpZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXZCLE1BQU0sRUFDTixNQUFNLEVBQ04sVUFBVSxFQUNWLFNBQVMsRUFDVCxJQUFJLEVBQ0osV0FBVyxFQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQ3hFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQWlCN0QsTUFBTSxPQUFPLGVBQWdCLFNBQVEsYUFBYTs7Ozs7O0lBSWhELFlBQ21CLElBQVksRUFDUyxVQUFrQixFQUMvQixtQkFBd0M7UUFFakUsS0FBSyxFQUFFLENBQUM7UUFKUyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBQ1MsZUFBVSxHQUFWLFVBQVUsQ0FBUTtRQUMvQix3QkFBbUIsR0FBbkIsbUJBQW1CLENBQXFCO1FBTDVELGNBQVMsR0FBNEIsbUJBQUEsSUFBSSxFQUFDLENBQUM7SUFRbEQsQ0FBQzs7OztJQU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4gICAgICB0aGlzLnJlZixcbiAgICAgIHRoaXMuem9uZSxcbiAgICAgIHRoaXMucGxhdGZvcm1JZCxcbiAgICAgIHRoaXMubG90dGllRXZlbnRzU2VydmljZSxcbiAgICAgIHRoaXMuY29udGFpbmVyLm5hdGl2ZUVsZW1lbnQsXG4gICAgICB0aGlzXG4gICAgKTtcbiAgfVxufVxuIl19 |
@@ -16,2 +16,3 @@ /** | ||
this.height = (/** @type {?} */ (null)); | ||
this.detach = false; | ||
/** | ||
@@ -71,2 +72,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -79,3 +81,3 @@ * @param {?} platformId | ||
*/ | ||
loadAnimation(zone, platformId, lottieEventsService, container, instance) { | ||
loadAnimation(ref, zone, platformId, lottieEventsService, container, instance) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
@@ -89,2 +91,6 @@ if (isPlatformServer(platformId)) { | ||
lottieEventsService.setAnimationItemAndLottieEventListeners(animationItem, instance); | ||
// Basically make this view static and never check it in the future | ||
if (this.detach) { | ||
ref.detach(); | ||
} | ||
}); | ||
@@ -102,2 +108,3 @@ } | ||
height: [{ type: Input }], | ||
detach: [{ type: Input }], | ||
animationCreated: [{ type: Output }], | ||
@@ -126,2 +133,4 @@ complete: [{ type: Output }], | ||
BaseDirective.prototype.height; | ||
/** @type {?} */ | ||
BaseDirective.prototype.detach; | ||
/** | ||
@@ -190,2 +199,2 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbG90dGllLyIsInNvdXJjZXMiOlsic3JjL2NvcmUvZGlyZWN0aXZlcy9iYXNlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBL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m9ybUlkOiBzdHJpbmcsXG4gICAgbG90dGllRXZlbnRzU2VydmljZTogTG90dGllRXZlbnRzU2VydmljZSxcbiAgICBjb250YWluZXI6IEhUTUxFbGVtZW50IHwgSFRNTENhbnZhc0VsZW1lbnQsXG4gICAgaW5zdGFuY2U6IEJhc2VEaXJlY3RpdmVcbiAgKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgaWYgKGlzUGxhdGZvcm1TZXJ2ZXIocGxhdGZvcm1JZCkpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICBjb25zdCBhbmltYXRpb25JdGVtID0gYXdhaXQgbG9hZEFuaW1hdGlvbih6b25lLCB0aGlzLm9wdGlvbnMsIGNvbnRhaW5lcik7XG4gICAgbG90dGllRXZlbnRzU2VydmljZS5hbmltYXRpb25DcmVhdGVkKGFuaW1hdGlvbkl0ZW0sIHRoaXMuYW5pbWF0aW9uQ3JlYXRlZCk7XG4gICAgbG90dGllRXZlbnRzU2VydmljZS5zZXRBbmltYXRpb25JdGVtQW5kTG90dGllRXZlbnRMaXN0ZW5lcnMoYW5pbWF0aW9uSXRlbSwgaW5zdGFuY2UpO1xuICAgIC8vIEJhc2ljYWxseSBtYWtlIHRoaXMgdmlldyBzdGF0aWMgYW5kIG5ldmVyIGNoZWNrIGl0IGluIHRoZSBmdXR1cmVcbiAgICBpZiAodGhpcy5kZXRhY2gpIHtcbiAgICAgIHJlZi5kZXRhY2goKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
import { Directive, NgZone, Inject, Self, PLATFORM_ID, ElementRef } from '@angular/core'; | ||
import { Directive, ChangeDetectorRef, NgZone, Inject, Self, PLATFORM_ID, ElementRef } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
@@ -11,2 +11,3 @@ import { BaseDirective } from './base.directive'; | ||
/** | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -17,4 +18,5 @@ * @param {?} platformId | ||
*/ | ||
constructor(zone, platformId, lottieEventsService, host) { | ||
constructor(ref, zone, platformId, lottieEventsService, host) { | ||
super(); | ||
this.ref = ref; | ||
this.zone = zone; | ||
@@ -29,3 +31,3 @@ this.platformId = platformId; | ||
ngOnInit() { | ||
super.loadAnimation(this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
super.loadAnimation(this.ref, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
} | ||
@@ -41,2 +43,3 @@ } | ||
LottieDirective.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -52,2 +55,7 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
*/ | ||
LottieDirective.prototype.ref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LottieDirective.prototype.zone; | ||
@@ -70,2 +78,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvY29yZS9kaXJlY3RpdmVzL2xvdHRpZS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxFQUFFLE1BQU0sRUFBRSxJQUFJLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVqRyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUN4RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFNakQsTUFBTSxPQUFPLGVBQWdCLFNBQVEsYUFBYTs7Ozs7OztJQUNoRCxZQUNtQixJQUFZLEVBQ1MsVUFBa0IsRUFDL0Is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ByZWFkb25seSBob3N0OiBFbGVtZW50UmVmPEhUTUxFbGVtZW50PlxuICApIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgcHVibGljIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHN1cGVyLmxvYWRBbmltYXRpb24oXG4gICAgICB0aGlzLnJlZixcbiAgICAgIHRoaXMuem9uZSxcbiAgICAgIHRoaXMucGxhdGZvcm1JZCxcbiAgICAgIHRoaXMubG90dGllRXZlbnRzU2VydmljZSxcbiAgICAgIHRoaXMuaG9zdC5uYXRpdmVFbGVtZW50LFxuICAgICAgdGhpc1xuICAgICk7XG4gIH1cbn1cbiJdfQ== |
@@ -6,3 +6,3 @@ /** | ||
import * as tslib_1 from "tslib"; | ||
import { Component, ChangeDetectionStrategy, Inject, NgZone, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core'; | ||
import { Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef, NgZone, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
@@ -12,4 +12,5 @@ import { BaseDirective } from '../directives/base.directive'; | ||
tslib_1.__extends(LottieComponent, _super); | ||
function LottieComponent(zone, platformId, lottieEventsService) { | ||
function LottieComponent(ref, zone, platformId, lottieEventsService) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -28,3 +29,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
}; | ||
@@ -41,2 +42,3 @@ LottieComponent.decorators = [ | ||
LottieComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -59,2 +61,7 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
*/ | ||
LottieComponent.prototype.ref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LottieComponent.prototype.zone; | ||
@@ -72,2 +79,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvY29yZS9jb21wb25lbnRzL2xvdHRpZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUV2QixNQUFNLEVBQ04sTUFBTSxFQUNOLFVBQVUsRUFDVixTQUFTLEVBQ1QsSUFBSSxFQUNKLFdBQVcsRUFDWixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUN4RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFN0Q7SUFlcUMsMkNBQWE7SUFJaEQseUJBQ21CLElBQVksRUFDUyxVQUFrQixFQUMvQixtQkFBd0M7UUFIbkUsWUFLRSxpQkFBTyxTQUNSO1FBTGtCLFVBQUksR0FBSixJQUFJLENBQVE7UUFDUyxnQkFBVSxHQUFWLFVBQVUsQ0FBUTtRQUMvQix5QkFBbUIsR0FBbkIsbUJBQW1CLENBQXFCO1FBTDVELGVBQVMsR0FBNEIsbUJBQUEsSUFBSSxFQUFDLENBQUM7O0lBUWxELENBQUM7Ozs7SUFFTSxrQ0FBUTs7O0lBQWY7UUFDRSxpQkFBTSxhQUFhLFlBQ2pCLElBQUksQ0FBQyxJQUFJLEVBQ1QsSUFBSSxDQUFDLFVBQVUsRUFDZixJQUFJLENBQUMsbUJBQW1CLEVBQ3hCLElBQUksQ0FBQyxTQUFTLENBQUMsYUFBY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gIHRoaXMucGxhdGZvcm1JZCxcbiAgICAgIHRoaXMubG90dGllRXZlbnRzU2VydmljZSxcbiAgICAgIHRoaXMuY29udGFpbmVyLm5hdGl2ZUVsZW1lbnQsXG4gICAgICB0aGlzXG4gICAgKTtcbiAgfVxufVxuIl19 |
@@ -16,2 +16,3 @@ /** | ||
this.height = (/** @type {?} */ (null)); | ||
this.detach = false; | ||
/** | ||
@@ -71,2 +72,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -81,2 +83,3 @@ * @param {?} platformId | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -89,3 +92,3 @@ * @param {?} platformId | ||
*/ | ||
function (zone, platformId, lottieEventsService, container, instance) { | ||
function (ref, zone, platformId, lottieEventsService, container, instance) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
@@ -104,2 +107,6 @@ var animationItem; | ||
lottieEventsService.setAnimationItemAndLottieEventListeners(animationItem, instance); | ||
// Basically make this view static and never check it in the future | ||
if (this.detach) { | ||
ref.detach(); | ||
} | ||
return [2 /*return*/]; | ||
@@ -119,2 +126,3 @@ } | ||
height: [{ type: Input }], | ||
detach: [{ type: Input }], | ||
animationCreated: [{ type: Output }], | ||
@@ -146,2 +154,4 @@ complete: [{ type: Output }], | ||
BaseDirective.prototype.height; | ||
/** @type {?} */ | ||
BaseDirective.prototype.detach; | ||
/** | ||
@@ -210,2 +220,2 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbG90dGllLyIsInNvdXJjZXMiOlsic3JjL2NvcmUvZGlyZWN0aXZlcy9iYXNlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUF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yPEJNRGVzdHJveUV2ZW50PigpO1xuXG4gIHByb3RlY3RlZCBhc3luYyBsb2FkQW5pbWF0aW9uKFxuICAgIHJlZjogQ2hhbmdlRGV0ZWN0b3JSZWYsXG4gICAgem9uZTogTmdab25lLFxuICAgIHBsYXRmb3JtSWQ6IHN0cmluZyxcbiAgICBsb3R0aWVFdmVudHNTZXJ2aWNlOiBMb3R0aWVFdmVudHNTZXJ2aWNlLFxuICAgIGNvbnRhaW5lcjogSFRNTEVsZW1lbnQgfCBIVE1MQ2FudmFzRWxlbWVudCxcbiAgICBpbnN0YW5jZTogQmFzZURpcmVjdGl2ZVxuICApOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBpZiAoaXNQbGF0Zm9ybVNlcnZlcihwbGF0Zm9ybUlkKSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGNvbnN0IGFuaW1hdGlvbkl0ZW0gPSBhd2FpdCBsb2FkQW5pbWF0aW9uKHpvbmUsIHRoaXMub3B0aW9ucywgY29udGFpbmVyKTtcbiAgICBsb3R0aWVFdmVudHNTZXJ2aWNlLmFuaW1hdGlvbkNyZWF0ZWQoYW5pbWF0aW9uSXRlbSwgdGhpcy5hbmltYXRpb25DcmVhdGVkKTtcbiAgICBsb3R0aWVFdmVudHNTZXJ2aWNlLnNldEFuaW1hdGlvbkl0ZW1BbmRMb3R0aWVFdmVudExpc3RlbmVycyhhbmltYXRpb25JdGVtLCBpbnN0YW5jZSk7XG4gICAgLy8gQmFzaWNhbGx5IG1ha2UgdGhpcyB2aWV3IHN0YXRpYyBhbmQgbmV2ZXIgY2hlY2sgaXQgaW4gdGhlIGZ1dHVyZVxuICAgIGlmICh0aGlzLmRldGFjaCkge1xuICAgICAgcmVmLmRldGFjaCgpO1xuICAgIH1cbiAgfVxufVxuIl19 |
@@ -6,3 +6,3 @@ /** | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, NgZone, Inject, Self, PLATFORM_ID, ElementRef } from '@angular/core'; | ||
import { Directive, ChangeDetectorRef, NgZone, Inject, Self, PLATFORM_ID, ElementRef } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
@@ -12,4 +12,5 @@ import { BaseDirective } from './base.directive'; | ||
tslib_1.__extends(LottieDirective, _super); | ||
function LottieDirective(zone, platformId, lottieEventsService, host) { | ||
function LottieDirective(ref, zone, platformId, lottieEventsService, host) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -28,3 +29,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
}; | ||
@@ -39,2 +40,3 @@ LottieDirective.decorators = [ | ||
LottieDirective.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -53,2 +55,7 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
*/ | ||
LottieDirective.prototype.ref; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
LottieDirective.prototype.zone; | ||
@@ -71,2 +78,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvY29yZS9kaXJlY3RpdmVzL2xvdHRpZS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLFdBQVcsRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFakcsT0FBTyxFQUFFLG1CQUFtQixF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G4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUgcmVhZG9ubHkgcmVmOiBDaGFuZ2VEZXRlY3RvclJlZixcbiAgICBwcml2YXRlIHJlYWRvbmx5IHpvbmU6IE5nWm9uZSxcbiAgICBASW5qZWN0KFBMQVRGT1JNX0lEKSBwcml2YXRlIHJlYWRvbmx5IHBsYXRmb3JtSWQ6IHN0cmluZyxcbiAgICBAU2VsZigpIHByaXZhdGUgcmVhZG9ubHkgbG90dGllRXZlbnRzU2VydmljZTogTG90dGllRXZlbnRzU2VydmljZSxcbiAgICBAU2VsZigpIHByaXZhdGUgcmVhZG9ubHkgaG9zdDogRWxlbWVudFJlZjxIVE1MRWxlbWVudD5cbiAgKSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICBzdXBlci5sb2FkQW5pbWF0aW9uKFxuICAgICAgdGhpcy5yZWYsXG4gICAgICB0aGlzLnpvbmUsXG4gICAgICB0aGlzLnBsYXRmb3JtSWQsXG4gICAgICB0aGlzLmxvdHRpZUV2ZW50c1NlcnZpY2UsXG4gICAgICB0aGlzLmhvc3QubmF0aXZlRWxlbWVudCxcbiAgICAgIHRoaXNcbiAgICApO1xuICB9XG59XG4iXX0= |
import { __awaiter } from 'tslib'; | ||
import { isPlatformServer, CommonModule } from '@angular/common'; | ||
import { Directive, Input, Output, EventEmitter, Injectable, NgZone, Inject, PLATFORM_ID, Self, ElementRef, Component, ChangeDetectionStrategy, ViewChild, NgModule, defineInjectable, inject } from '@angular/core'; | ||
import { Directive, Input, Output, EventEmitter, Injectable, NgZone, Inject, PLATFORM_ID, ChangeDetectorRef, Self, ElementRef, Component, ChangeDetectionStrategy, ViewChild, NgModule, defineInjectable, inject } from '@angular/core'; | ||
import { TransferState, makeStateKey } from '@angular/platform-browser'; | ||
@@ -104,2 +104,3 @@ | ||
this.height = (/** @type {?} */ (null)); | ||
this.detach = false; | ||
/** | ||
@@ -159,2 +160,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -167,3 +169,3 @@ * @param {?} platformId | ||
*/ | ||
loadAnimation(zone, platformId, lottieEventsService, container, instance) { | ||
loadAnimation(ref, zone, platformId, lottieEventsService, container, instance) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -177,2 +179,6 @@ if (isPlatformServer(platformId)) { | ||
lottieEventsService.setAnimationItemAndLottieEventListeners(animationItem, instance); | ||
// Basically make this view static and never check it in the future | ||
if (this.detach) { | ||
ref.detach(); | ||
} | ||
}); | ||
@@ -190,2 +196,3 @@ } | ||
height: [{ type: Input }], | ||
detach: [{ type: Input }], | ||
animationCreated: [{ type: Output }], | ||
@@ -312,2 +319,3 @@ complete: [{ type: Output }], | ||
/** | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -318,4 +326,5 @@ * @param {?} platformId | ||
*/ | ||
constructor(zone, platformId, lottieEventsService, host) { | ||
constructor(ref, zone, platformId, lottieEventsService, host) { | ||
super(); | ||
this.ref = ref; | ||
this.zone = zone; | ||
@@ -330,3 +339,3 @@ this.platformId = platformId; | ||
ngOnInit() { | ||
super.loadAnimation(this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
super.loadAnimation(this.ref, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
} | ||
@@ -342,2 +351,3 @@ } | ||
LottieDirective.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -355,2 +365,3 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
/** | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -360,4 +371,5 @@ * @param {?} platformId | ||
*/ | ||
constructor(zone, platformId, lottieEventsService) { | ||
constructor(ref, zone, platformId, lottieEventsService) { | ||
super(); | ||
this.ref = ref; | ||
this.zone = zone; | ||
@@ -372,3 +384,3 @@ this.platformId = platformId; | ||
ngOnInit() { | ||
super.loadAnimation(this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
super.loadAnimation(this.ref, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
} | ||
@@ -395,2 +407,3 @@ } | ||
LottieComponent.ctorParameters = () => [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -397,0 +410,0 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, |
import { isPlatformServer, CommonModule } from '@angular/common'; | ||
import { __values, __read, __awaiter, __generator, __extends } from 'tslib'; | ||
import { Directive, Input, Output, EventEmitter, Injectable, NgZone, Inject, PLATFORM_ID, Self, ElementRef, Component, ChangeDetectionStrategy, ViewChild, NgModule, defineInjectable, inject } from '@angular/core'; | ||
import { __awaiter, __generator, __values, __read, __extends } from 'tslib'; | ||
import { Directive, Input, Output, EventEmitter, Injectable, NgZone, Inject, PLATFORM_ID, ChangeDetectorRef, Self, ElementRef, Component, ChangeDetectionStrategy, ViewChild, NgModule, defineInjectable, inject } from '@angular/core'; | ||
import { TransferState, makeStateKey } from '@angular/platform-browser'; | ||
@@ -111,2 +111,3 @@ | ||
this.height = (/** @type {?} */ (null)); | ||
this.detach = false; | ||
/** | ||
@@ -166,2 +167,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -176,2 +178,3 @@ * @param {?} platformId | ||
* @protected | ||
* @param {?} ref | ||
* @param {?} zone | ||
@@ -184,3 +187,3 @@ * @param {?} platformId | ||
*/ | ||
function (zone, platformId, lottieEventsService, container, instance) { | ||
function (ref, zone, platformId, lottieEventsService, container, instance) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -199,2 +202,6 @@ var animationItem; | ||
lottieEventsService.setAnimationItemAndLottieEventListeners(animationItem, instance); | ||
// Basically make this view static and never check it in the future | ||
if (this.detach) { | ||
ref.detach(); | ||
} | ||
return [2 /*return*/]; | ||
@@ -214,2 +221,3 @@ } | ||
height: [{ type: Input }], | ||
detach: [{ type: Input }], | ||
animationCreated: [{ type: Output }], | ||
@@ -382,4 +390,5 @@ complete: [{ type: Output }], | ||
__extends(LottieDirective, _super); | ||
function LottieDirective(zone, platformId, lottieEventsService, host) { | ||
function LottieDirective(ref, zone, platformId, lottieEventsService, host) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -398,3 +407,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.host.nativeElement, this); | ||
}; | ||
@@ -409,2 +418,3 @@ LottieDirective.decorators = [ | ||
LottieDirective.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -424,4 +434,5 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
__extends(LottieComponent, _super); | ||
function LottieComponent(zone, platformId, lottieEventsService) { | ||
function LottieComponent(ref, zone, platformId, lottieEventsService) { | ||
var _this = _super.call(this) || this; | ||
_this.ref = ref; | ||
_this.zone = zone; | ||
@@ -440,3 +451,3 @@ _this.platformId = platformId; | ||
function () { | ||
_super.prototype.loadAnimation.call(this, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
_super.prototype.loadAnimation.call(this, this.ref, this.zone, this.platformId, this.lottieEventsService, this.container.nativeElement, this); | ||
}; | ||
@@ -453,2 +464,3 @@ LottieComponent.decorators = [ | ||
LottieComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef }, | ||
{ type: NgZone }, | ||
@@ -455,0 +467,0 @@ { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"LottieModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}]}]}],"members":{}},"LottieDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[lottie]","providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":12,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":13,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":14,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":11,"character":27},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":14,"character":46,"context":{"typeName":"HTMLElement"},"module":"./src/core/directives/lottie.directive"}]}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"ng-lottie","template":"\n <div\n #container\n [style.width.px]=\"width\"\n [style.height.px]=\"height\"\n style=\"margin: 0 auto\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":27,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":31,"character":3},"arguments":["container"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":36,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":37,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":35,"character":27},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieTransferState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":8,"character":29}]}],"get":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"LottieOptions":{"__symbolic":"interface"},"Lottie":{"__symbolic":"interface"},"AnimationItem":{"__symbolic":"interface"},"BMEnterFrameEvent":{"__symbolic":"interface"},"BMCompleteLoopEvent":{"__symbolic":"interface"},"BMCompleteEvent":{"__symbolic":"interface"},"BMSegmentStartEvent":{"__symbolic":"interface"},"BMDestroyEvent":{"__symbolic":"interface"},"LottieEvent":{"__symbolic":"interface"},"LottieCSSStyleDeclaration":{"__symbolic":"interface"},"LottieContainerClass":{"__symbolic":"interface"},"AnimationFilename":{"__symbolic":"interface"},"transformAnimationFilenameToKey":{"__symbolic":"function","parameters":["animation"],"value":{"__symbolic":"binop","operator":"+","left":"animation-","right":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"animation"},"member":"split"},"arguments":[".json"]},"index":0}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":17,"character":1},"arguments":[{"selector":"[lottie]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"animationCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"loopComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":49,"character":3}}]}],"enterFrame":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"segmentStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":3}}]}],"configReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"dataReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":75,"character":3}}]}],"dataFailed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":83,"character":3}}]}],"loadedImages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":90,"character":3}}]}],"domLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":97,"character":3}}]}],"destroy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":104,"character":3}}]}],"loadAnimation":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":19,"character":12}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":18,"character":27},{"__symbolic":"reference","name":"string"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"animationCreated":[{"__symbolic":"method"}],"setAnimationItemAndLottieEventListeners":[{"__symbolic":"method"}],"setupLottieEventListeners":[{"__symbolic":"method"}],"setupLottieEventListener":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}]}}},"origins":{"LottieModule":"./src/lottie.module","LottieDirective":"./src/core/directives/lottie.directive","LottieComponent":"./src/core/components/lottie.component","LottieTransferState":"./src/core/services/lottie-transfer-state","LottieOptions":"./src/symbols","Lottie":"./src/symbols","AnimationItem":"./src/symbols","BMEnterFrameEvent":"./src/symbols","BMCompleteLoopEvent":"./src/symbols","BMCompleteEvent":"./src/symbols","BMSegmentStartEvent":"./src/symbols","BMDestroyEvent":"./src/symbols","LottieEvent":"./src/symbols","LottieCSSStyleDeclaration":"./src/symbols","LottieContainerClass":"./src/symbols","AnimationFilename":"./src/symbols","transformAnimationFilenameToKey":"./src/utils","ɵa":"./src/core/directives/base.directive","ɵb":"./src/core/services/lottie-events.service"},"importAs":"ngx-lottie"} | ||
{"__symbolic":"module","version":4,"metadata":{"LottieModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}]}]}],"members":{}},"LottieDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":14,"character":1},"arguments":[{"selector":"[lottie]","providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":22,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":22,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":23,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":24,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":20,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":21,"character":27},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":24,"character":46,"context":{"typeName":"HTMLElement"},"module":"./src/core/directives/lottie.directive"}]}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"ng-lottie","template":"\n <div\n #container\n [style.width.px]=\"width\"\n [style.height.px]=\"height\"\n style=\"margin: 0 auto\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":28,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":32,"character":3},"arguments":["container"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":38,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":38,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":39,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":36,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":37,"character":27},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieTransferState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":8,"character":29}]}],"get":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"LottieOptions":{"__symbolic":"interface"},"Lottie":{"__symbolic":"interface"},"AnimationItem":{"__symbolic":"interface"},"BMEnterFrameEvent":{"__symbolic":"interface"},"BMCompleteLoopEvent":{"__symbolic":"interface"},"BMCompleteEvent":{"__symbolic":"interface"},"BMSegmentStartEvent":{"__symbolic":"interface"},"BMDestroyEvent":{"__symbolic":"interface"},"LottieEvent":{"__symbolic":"interface"},"LottieCSSStyleDeclaration":{"__symbolic":"interface"},"LottieContainerClass":{"__symbolic":"interface"},"AnimationFilename":{"__symbolic":"interface"},"transformAnimationFilenameToKey":{"__symbolic":"function","parameters":["animation"],"value":{"__symbolic":"binop","operator":"+","left":"animation-","right":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"animation"},"member":"split"},"arguments":[".json"]},"index":0}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":17,"character":1},"arguments":[{"selector":"[lottie]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"detach":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"animationCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"loopComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"enterFrame":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"segmentStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":64,"character":3}}]}],"configReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":71,"character":3}}]}],"dataReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":78,"character":3}}]}],"dataFailed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":86,"character":3}}]}],"loadedImages":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":3}}]}],"domLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":100,"character":3}}]}],"destroy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":107,"character":3}}]}],"loadAnimation":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":19,"character":12}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":18,"character":27},{"__symbolic":"reference","name":"string"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"animationCreated":[{"__symbolic":"method"}],"setAnimationItemAndLottieEventListeners":[{"__symbolic":"method"}],"setupLottieEventListeners":[{"__symbolic":"method"}],"setupLottieEventListener":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}]}}},"origins":{"LottieModule":"./src/lottie.module","LottieDirective":"./src/core/directives/lottie.directive","LottieComponent":"./src/core/components/lottie.component","LottieTransferState":"./src/core/services/lottie-transfer-state","LottieOptions":"./src/symbols","Lottie":"./src/symbols","AnimationItem":"./src/symbols","BMEnterFrameEvent":"./src/symbols","BMCompleteLoopEvent":"./src/symbols","BMCompleteEvent":"./src/symbols","BMSegmentStartEvent":"./src/symbols","BMDestroyEvent":"./src/symbols","LottieEvent":"./src/symbols","LottieCSSStyleDeclaration":"./src/symbols","LottieContainerClass":"./src/symbols","AnimationFilename":"./src/symbols","transformAnimationFilenameToKey":"./src/utils","ɵa":"./src/core/directives/base.directive","ɵb":"./src/core/services/lottie-events.service"},"importAs":"ngx-lottie"} |
{ | ||
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", | ||
"name": "ngx-lottie", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -155,2 +155,3 @@ <h1 align="center"> | ||
| containerClass | `LottieContainerClass` | optional | `null` | Custom class applied to the container | ||
| detach | `boolean` | optional | `false` | Determines whether to detach view from the change-detection tree or not | ||
@@ -179,2 +180,10 @@ ### Events | ||
Also you can provide a `detach` binding: | ||
```html | ||
<ng-lottie [options]="options" [detach]="true"></ng-lottie> | ||
``` | ||
This will tell `ng-lottie` component or `lottie` directive to detach its view from the change-detection tree, so this component or directive will never be checked. | ||
## Server side rendering | ||
@@ -181,0 +190,0 @@ |
@@ -1,5 +0,6 @@ | ||
import { OnInit, NgZone, ElementRef } from '@angular/core'; | ||
import { OnInit, ChangeDetectorRef, NgZone, ElementRef } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
import { BaseDirective } from '../directives/base.directive'; | ||
export declare class LottieComponent extends BaseDirective implements OnInit { | ||
private readonly ref; | ||
private readonly zone; | ||
@@ -9,4 +10,4 @@ private readonly platformId; | ||
container: ElementRef<HTMLElement>; | ||
constructor(zone: NgZone, platformId: string, lottieEventsService: LottieEventsService); | ||
constructor(ref: ChangeDetectorRef, zone: NgZone, platformId: string, lottieEventsService: LottieEventsService); | ||
ngOnInit(): void; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { EventEmitter, NgZone } from '@angular/core'; | ||
import { EventEmitter, NgZone, ChangeDetectorRef } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
@@ -10,2 +10,3 @@ import { LottieOptions, LottieCSSStyleDeclaration, AnimationItem, BMCompleteEvent, BMCompleteLoopEvent, BMEnterFrameEvent, BMSegmentStartEvent, BMDestroyEvent, LottieContainerClass } from '../../symbols'; | ||
height: string; | ||
detach: boolean; | ||
/** | ||
@@ -62,3 +63,3 @@ * `animationCreated` is dispatched after calling `loadAnimation` | ||
readonly destroy: EventEmitter<BMDestroyEvent>; | ||
protected loadAnimation(zone: NgZone, platformId: string, lottieEventsService: LottieEventsService, container: HTMLElement | HTMLCanvasElement, instance: BaseDirective): Promise<void>; | ||
protected loadAnimation(ref: ChangeDetectorRef, zone: NgZone, platformId: string, lottieEventsService: LottieEventsService, container: HTMLElement | HTMLCanvasElement, instance: BaseDirective): Promise<void>; | ||
} |
@@ -1,5 +0,6 @@ | ||
import { OnInit, NgZone, ElementRef } from '@angular/core'; | ||
import { OnInit, ChangeDetectorRef, NgZone, ElementRef } from '@angular/core'; | ||
import { LottieEventsService } from '../services/lottie-events.service'; | ||
import { BaseDirective } from './base.directive'; | ||
export declare class LottieDirective extends BaseDirective implements OnInit { | ||
private readonly ref; | ||
private readonly zone; | ||
@@ -9,4 +10,4 @@ private readonly platformId; | ||
private readonly host; | ||
constructor(zone: NgZone, platformId: string, lottieEventsService: LottieEventsService, host: ElementRef<HTMLElement>); | ||
constructor(ref: ChangeDetectorRef, zone: NgZone, platformId: string, lottieEventsService: LottieEventsService, host: ElementRef<HTMLElement>); | ||
ngOnInit(): void; | ||
} |
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
422569
4813
277