ng2-vizabi
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -444,3 +444,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
try { | ||
if (!this.viz) { | ||
if (!this.viz || !_reloadTime) { | ||
return; | ||
@@ -447,0 +447,0 @@ } |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common"],t):"object"==typeof exports?exports["ng2-vizabi.umd.min"]=t(require("@angular/core"),require("@angular/common")):e["ng2-vizabi.umd.min"]=t(e["@angular/core"],e["@angular/common"])}(this,function(e,t){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,i){t.exports=e},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var r=i(0),n=(i.n(r),i(3)),o=(i.n(n),this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}),a=function(){function e(){}return e.prototype.modelToString=function(e){return void 0===e&&(e={}),n.stringify(e)},e.prototype.stringToModel=function(e){if(void 0===e&&(e="_"),"_"!==e)try{return n.parse(e)}catch(e){console.error("Urlon Exception:",e)}return{}},e=o([Object(r.Injectable)()],e)}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"VizabiModule",function(){return c});var r=i(0),n=(i.n(r),i(1)),o=i(4);i.d(t,"VizabiService",function(){return n.a}),i.d(t,"VizabiDirective",function(){return o.a});var a=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},c=function(){function e(){}return e=a([Object(r.NgModule)({declarations:[o.a],exports:[o.a],providers:[n.a]})],e)}()},function(e,t,i){"use strict";function r(e,t){return encodeURI(e.replace(t,"/$1"))}function n(e){return"string"==typeof e?e.replace(/;+$/g,""):e}function o(e,t){if(!t)return n(o(e,!0));if("number"==typeof e||!0===e||!1===e||null===e)return":"+e;var i=[];if(e instanceof Array){for(var a=0;a<e.length;++a)void 0===e[a]?i.push(":null"):i.push(o(e[a],!0));return"@"+i.join("&")+";"}if("object"==typeof e){for(var l in e){var s=o(e[l],!0);s&&i.push(r(l,c)+s)}return"$"+i.join("&")+";"}if(void 0!==e)return"="+r(e.toString(),d)}function a(e){function t(t){for(var i="";r!==e.length;++r){if("/"===e.charAt(r)){if((r+=1)===e.length){i+=";";break}}else if(e.charAt(r).match(t))break;i+=e.charAt(r)}return i}function i(){var n=e.charAt(r++);if("="===n)return t(s);if(":"===n){var o=t(s);return"true"===o||"false"!==o&&(o=parseFloat(o),isNaN(o)?null:o)}var a;if("@"===n){a=[];e:if(!(r>=e.length||";"===e.charAt(r)))for(;;){if(a.push(i()),r>=e.length||";"===e.charAt(r))break e;r+=1}return r+=1,a}if("$"===n){a={};e:if(!(r>=e.length||";"===e.charAt(r)))for(;;){var c=t(l);if(a[c]=i(),r>=e.length||";"===e.charAt(r))break e;r+=1}return r+=1,a}throw new Error("Unexpected char "+n)}var r=0;return e=decodeURI(e),i()}var c=/([=:@$\/])/g,d=/([&;\/])/g,l=/[=:@$]/,s=/[&;]/;e.exports={stringify:o,parse:a}},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var r=i(0),n=(i.n(r),i(1)),o=i(5),a=(i.n(o),this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}),c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d={},l=function(){function e(e,t,i){var n=this;this.element=e,this.vService=t,this.location=i,this.onClick=new r.EventEmitter,this.onCreated=new r.EventEmitter,this.onChanged=new r.EventEmitter,this.onReadyOnce=new r.EventEmitter,this.onError=new r.EventEmitter,this._active=!1,this._additionalItems=[],this.poppedState=null,this.createPlaceholder(),i.onPopState(function(e){e.state?(n.poppedState=e.state.model,n.viz.setModel(Vizabi.utils.deepExtend({},n.poppedState,!0),!1,!1)):n.poppedState=null})}return t=e,e.removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.ngOnChanges=function(e){e.model&&e.model.isFirstChange()&&this.createChart(e)},Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(e){this._active=e,this._active||this.deactivate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(e){e&&(this._language=e,this.viz&&this.viz.model&&this.viz.model.locale&&this.viz.model.locale.set("id",e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"additionalItems",{get:function(){return this._additionalItems},set:function(e){try{if(this._additionalItems=e,!this.viz||this._additionalItems.length<=0)return;this.viz.clear(),t.removeElement(this.placeholder),this.createPlaceholder(),this.createChart({modelHash:{currentValue:this.modelHash},model:{currentValue:this.model}})}catch(e){this.emitError(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadTime",{get:function(){return this._reloadTime},set:function(e){try{if(!this.viz)return;this._reloadTime=e;var i=Object.assign({},this.viz.getPersistentModel());this.viz.clear(),t.removeElement(this.placeholder),this.createPlaceholder(),this.createChart({modelHash:{currentValue:this.modelHash},model:{currentValue:this.model}},i)}catch(e){this.emitError(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){try{Object.keys(Vizabi._instances).forEach(function(e){Vizabi._instances[e]=null}),this.viz.clear(),t.removeElement(this.placeholder)}catch(e){this.emitError(e)}},e.prototype.createChart=function(e,t){var i=this;void 0===t&&(t=null),setTimeout(function(){i.vizabiModel={};var r={};if(e.modelHash&&e.modelHash.currentValue){var n=encodeURI(decodeURIComponent(e.modelHash.currentValue));r=i.vService.stringToModel(n)}i.vizabiModel.bind={ready:function(){i.onPersistentChange(),t&&i.restoreStateAfterReload&&i.viz.setModel(t)},persistentChange:function(){i.onPersistentChange()},readyOnce:function(){i.onReadyOnce.emit({order:i.order,type:i.chartType,minInitialModel:i.model,component:i.viz})}},i.readerProcessing(),i.vizabiModel=Vizabi.utils.deepExtend({},e.model.currentValue,i.getAdditionalData(),i.vizabiModel),i.vizabiPageModel=Vizabi.utils.deepExtend({},i.vizabiModel),delete i.vizabiPageModel.bind;var o=Vizabi.utils.deepExtend({},i.vizabiModel,r,!0);i.viz=Vizabi(i.chartType,i.placeholder,o),i.onCreated.emit({order:i.order,type:i.chartType,model:i.vizabiPageModel,component:i.viz})})},e.prototype.getAdditionalData=function(){var e={};if(this.additionalItems&&this.additionalItems.length>0)for(var t=0,i=this.additionalItems;t<i.length;t++){var r=i[t],n=r.path.split(/[\\\/]/),o=n[n.length-1],a="data_"+o;e[a]||(e[a]=r)}return e},e.prototype.emitError=function(e){this.onError.emit({message:e.message,stack:e.stack})},e.prototype.readerProcessing=function(){if(this.readerModuleObject&&this.readerGetMethod&&this.readerName&&this.readerPlugins&&this.readerModuleObject[this.readerGetMethod]&&!d[this.readerName]){var e=this.readerModuleObject[this.readerGetMethod].apply(this,this.readerPlugins);Vizabi.Reader.extend(this.readerName,e),d[this.readerName]=!0}},e.prototype.onPersistentChange=function(){if(!this.poppedState||!Vizabi.utils.comparePlainObjects(this.viz.getModel(),this.poppedState)){var e=this.viz.getPersistentMinimalModel(this.vizabiPageModel);delete e.bind;var t=JSON.stringify(e);if(t===this.prevStateStr)return!1;if(!this.stopUrlRedirect&&window&&window.location){var i=Vizabi.utils.deepExtend({},{tool:this.chartType,model:this.viz.getModel()},!0);this.location.pushState(i,"Title","#"+this.vService.modelToString(e))}this.prevStateStr=t,this.onChanged.emit({order:this.order,type:this.chartType,modelDiff:e,minInitialModel:this.model})}},e.prototype.deactivate=function(){this.viz&&this.viz.components&&this.viz.components.find(function(e){return"gapminder-dialogs"===e.name}).closeAllDialogs(!0)},e.prototype.createPlaceholder=function(){this.placeholder=document.createElement("div"),this.placeholder.style.width="100%",this.placeholder.style.height="100%",this.element.nativeElement.appendChild(this.placeholder)},a([Object(r.Input)(),c("design:type",Number)],e.prototype,"order",void 0),a([Object(r.Input)(),c("design:type",Object)],e.prototype,"readerModuleObject",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"readerGetMethod",void 0),a([Object(r.Input)(),c("design:type",Array)],e.prototype,"readerPlugins",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"readerName",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"chartType",void 0),a([Object(r.Input)(),c("design:type",Boolean)],e.prototype,"stopUrlRedirect",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"modelHash",void 0),a([Object(r.Input)(),c("design:type",Object)],e.prototype,"model",void 0),a([Object(r.Input)(),c("design:type",Boolean)],e.prototype,"restoreStateAfterReload",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(i=void 0!==r.EventEmitter&&r.EventEmitter)&&i||Object)],e.prototype,"onClick",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(l=void 0!==r.EventEmitter&&r.EventEmitter)&&l||Object)],e.prototype,"onCreated",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(s=void 0!==r.EventEmitter&&r.EventEmitter)&&s||Object)],e.prototype,"onChanged",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(p=void 0!==r.EventEmitter&&r.EventEmitter)&&p||Object)],e.prototype,"onReadyOnce",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(u=void 0!==r.EventEmitter&&r.EventEmitter)&&u||Object)],e.prototype,"onError",void 0),a([Object(r.Input)("active"),c("design:type",Boolean),c("design:paramtypes",[Boolean])],e.prototype,"active",null),a([Object(r.Input)("language"),c("design:type",String),c("design:paramtypes",[String])],e.prototype,"language",null),a([Object(r.Input)("additionalItems"),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"additionalItems",null),a([Object(r.Input)("reloadTime"),c("design:type",Object),c("design:paramtypes",[Number])],e.prototype,"reloadTime",null),e=t=a([Object(r.Directive)({selector:"vizabi"}),c("design:paramtypes",["function"==typeof(h=void 0!==r.ElementRef&&r.ElementRef)&&h||Object,"function"==typeof(f=void 0!==n.a&&n.a)&&f||Object,"function"==typeof(v=void 0!==o.PlatformLocation&&o.PlatformLocation)&&v||Object])],e);var t,i,l,s,p,u,h,f,v}()},function(e,i){e.exports=t}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common"],t):"object"==typeof exports?exports["ng2-vizabi.umd.min"]=t(require("@angular/core"),require("@angular/common")):e["ng2-vizabi.umd.min"]=t(e["@angular/core"],e["@angular/common"])}(this,function(e,t){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=2)}([function(t,i){t.exports=e},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var r=i(0),n=(i.n(r),i(3)),o=(i.n(n),this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}),a=function(){function e(){}return e.prototype.modelToString=function(e){return void 0===e&&(e={}),n.stringify(e)},e.prototype.stringToModel=function(e){if(void 0===e&&(e="_"),"_"!==e)try{return n.parse(e)}catch(e){console.error("Urlon Exception:",e)}return{}},e=o([Object(r.Injectable)()],e)}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"VizabiModule",function(){return c});var r=i(0),n=(i.n(r),i(1)),o=i(4);i.d(t,"VizabiService",function(){return n.a}),i.d(t,"VizabiDirective",function(){return o.a});var a=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a},c=function(){function e(){}return e=a([Object(r.NgModule)({declarations:[o.a],exports:[o.a],providers:[n.a]})],e)}()},function(e,t,i){"use strict";function r(e,t){return encodeURI(e.replace(t,"/$1"))}function n(e){return"string"==typeof e?e.replace(/;+$/g,""):e}function o(e,t){if(!t)return n(o(e,!0));if("number"==typeof e||!0===e||!1===e||null===e)return":"+e;var i=[];if(e instanceof Array){for(var a=0;a<e.length;++a)void 0===e[a]?i.push(":null"):i.push(o(e[a],!0));return"@"+i.join("&")+";"}if("object"==typeof e){for(var l in e){var s=o(e[l],!0);s&&i.push(r(l,c)+s)}return"$"+i.join("&")+";"}if(void 0!==e)return"="+r(e.toString(),d)}function a(e){function t(t){for(var i="";r!==e.length;++r){if("/"===e.charAt(r)){if((r+=1)===e.length){i+=";";break}}else if(e.charAt(r).match(t))break;i+=e.charAt(r)}return i}function i(){var n=e.charAt(r++);if("="===n)return t(s);if(":"===n){var o=t(s);return"true"===o||"false"!==o&&(o=parseFloat(o),isNaN(o)?null:o)}var a;if("@"===n){a=[];e:if(!(r>=e.length||";"===e.charAt(r)))for(;;){if(a.push(i()),r>=e.length||";"===e.charAt(r))break e;r+=1}return r+=1,a}if("$"===n){a={};e:if(!(r>=e.length||";"===e.charAt(r)))for(;;){var c=t(l);if(a[c]=i(),r>=e.length||";"===e.charAt(r))break e;r+=1}return r+=1,a}throw new Error("Unexpected char "+n)}var r=0;return e=decodeURI(e),i()}var c=/([=:@$\/])/g,d=/([&;\/])/g,l=/[=:@$]/,s=/[&;]/;e.exports={stringify:o,parse:a}},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var r=i(0),n=(i.n(r),i(1)),o=i(5),a=(i.n(o),this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}),c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d={},l=function(){function e(e,t,i){var n=this;this.element=e,this.vService=t,this.location=i,this.onClick=new r.EventEmitter,this.onCreated=new r.EventEmitter,this.onChanged=new r.EventEmitter,this.onReadyOnce=new r.EventEmitter,this.onError=new r.EventEmitter,this._active=!1,this._additionalItems=[],this.poppedState=null,this.createPlaceholder(),i.onPopState(function(e){e.state?(n.poppedState=e.state.model,n.viz.setModel(Vizabi.utils.deepExtend({},n.poppedState,!0),!1,!1)):n.poppedState=null})}return t=e,e.removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.prototype.ngOnChanges=function(e){e.model&&e.model.isFirstChange()&&this.createChart(e)},Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(e){this._active=e,this._active||this.deactivate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(e){e&&(this._language=e,this.viz&&this.viz.model&&this.viz.model.locale&&this.viz.model.locale.set("id",e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"additionalItems",{get:function(){return this._additionalItems},set:function(e){try{if(this._additionalItems=e,!this.viz||this._additionalItems.length<=0)return;this.viz.clear(),t.removeElement(this.placeholder),this.createPlaceholder(),this.createChart({modelHash:{currentValue:this.modelHash},model:{currentValue:this.model}})}catch(e){this.emitError(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadTime",{get:function(){return this._reloadTime},set:function(e){try{if(!this.viz||!e)return;this._reloadTime=e;var i=Object.assign({},this.viz.getPersistentModel());this.viz.clear(),t.removeElement(this.placeholder),this.createPlaceholder(),this.createChart({modelHash:{currentValue:this.modelHash},model:{currentValue:this.model}},i)}catch(e){this.emitError(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){try{Object.keys(Vizabi._instances).forEach(function(e){Vizabi._instances[e]=null}),this.viz.clear(),t.removeElement(this.placeholder)}catch(e){this.emitError(e)}},e.prototype.createChart=function(e,t){var i=this;void 0===t&&(t=null),setTimeout(function(){i.vizabiModel={};var r={};if(e.modelHash&&e.modelHash.currentValue){var n=encodeURI(decodeURIComponent(e.modelHash.currentValue));r=i.vService.stringToModel(n)}i.vizabiModel.bind={ready:function(){i.onPersistentChange(),t&&i.restoreStateAfterReload&&i.viz.setModel(t)},persistentChange:function(){i.onPersistentChange()},readyOnce:function(){i.onReadyOnce.emit({order:i.order,type:i.chartType,minInitialModel:i.model,component:i.viz})}},i.readerProcessing(),i.vizabiModel=Vizabi.utils.deepExtend({},e.model.currentValue,i.getAdditionalData(),i.vizabiModel),i.vizabiPageModel=Vizabi.utils.deepExtend({},i.vizabiModel),delete i.vizabiPageModel.bind;var o=Vizabi.utils.deepExtend({},i.vizabiModel,r,!0);i.viz=Vizabi(i.chartType,i.placeholder,o),i.onCreated.emit({order:i.order,type:i.chartType,model:i.vizabiPageModel,component:i.viz})})},e.prototype.getAdditionalData=function(){var e={};if(this.additionalItems&&this.additionalItems.length>0)for(var t=0,i=this.additionalItems;t<i.length;t++){var r=i[t],n=r.path.split(/[\\\/]/),o=n[n.length-1],a="data_"+o;e[a]||(e[a]=r)}return e},e.prototype.emitError=function(e){this.onError.emit({message:e.message,stack:e.stack})},e.prototype.readerProcessing=function(){if(this.readerModuleObject&&this.readerGetMethod&&this.readerName&&this.readerPlugins&&this.readerModuleObject[this.readerGetMethod]&&!d[this.readerName]){var e=this.readerModuleObject[this.readerGetMethod].apply(this,this.readerPlugins);Vizabi.Reader.extend(this.readerName,e),d[this.readerName]=!0}},e.prototype.onPersistentChange=function(){if(!this.poppedState||!Vizabi.utils.comparePlainObjects(this.viz.getModel(),this.poppedState)){var e=this.viz.getPersistentMinimalModel(this.vizabiPageModel);delete e.bind;var t=JSON.stringify(e);if(t===this.prevStateStr)return!1;if(!this.stopUrlRedirect&&window&&window.location){var i=Vizabi.utils.deepExtend({},{tool:this.chartType,model:this.viz.getModel()},!0);this.location.pushState(i,"Title","#"+this.vService.modelToString(e))}this.prevStateStr=t,this.onChanged.emit({order:this.order,type:this.chartType,modelDiff:e,minInitialModel:this.model})}},e.prototype.deactivate=function(){this.viz&&this.viz.components&&this.viz.components.find(function(e){return"gapminder-dialogs"===e.name}).closeAllDialogs(!0)},e.prototype.createPlaceholder=function(){this.placeholder=document.createElement("div"),this.placeholder.style.width="100%",this.placeholder.style.height="100%",this.element.nativeElement.appendChild(this.placeholder)},a([Object(r.Input)(),c("design:type",Number)],e.prototype,"order",void 0),a([Object(r.Input)(),c("design:type",Object)],e.prototype,"readerModuleObject",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"readerGetMethod",void 0),a([Object(r.Input)(),c("design:type",Array)],e.prototype,"readerPlugins",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"readerName",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"chartType",void 0),a([Object(r.Input)(),c("design:type",Boolean)],e.prototype,"stopUrlRedirect",void 0),a([Object(r.Input)(),c("design:type",String)],e.prototype,"modelHash",void 0),a([Object(r.Input)(),c("design:type",Object)],e.prototype,"model",void 0),a([Object(r.Input)(),c("design:type",Boolean)],e.prototype,"restoreStateAfterReload",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(i=void 0!==r.EventEmitter&&r.EventEmitter)&&i||Object)],e.prototype,"onClick",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(l=void 0!==r.EventEmitter&&r.EventEmitter)&&l||Object)],e.prototype,"onCreated",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(s=void 0!==r.EventEmitter&&r.EventEmitter)&&s||Object)],e.prototype,"onChanged",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(p=void 0!==r.EventEmitter&&r.EventEmitter)&&p||Object)],e.prototype,"onReadyOnce",void 0),a([Object(r.Output)(),c("design:type","function"==typeof(u=void 0!==r.EventEmitter&&r.EventEmitter)&&u||Object)],e.prototype,"onError",void 0),a([Object(r.Input)("active"),c("design:type",Boolean),c("design:paramtypes",[Boolean])],e.prototype,"active",null),a([Object(r.Input)("language"),c("design:type",String),c("design:paramtypes",[String])],e.prototype,"language",null),a([Object(r.Input)("additionalItems"),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"additionalItems",null),a([Object(r.Input)("reloadTime"),c("design:type",Object),c("design:paramtypes",[Number])],e.prototype,"reloadTime",null),e=t=a([Object(r.Directive)({selector:"vizabi"}),c("design:paramtypes",["function"==typeof(h=void 0!==r.ElementRef&&r.ElementRef)&&h||Object,"function"==typeof(f=void 0!==n.a&&n.a)&&f||Object,"function"==typeof(v=void 0!==o.PlatformLocation&&o.PlatformLocation)&&v||Object])],e);var t,i,l,s,p,u,h,f,v}()},function(e,i){e.exports=t}])}); |
{ | ||
"main": "bundles/ng2-vizabi.umd.js", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "angular2 vizabi component", | ||
@@ -34,3 +34,3 @@ "module": "index.js", | ||
}, | ||
"_id": "ng2-vizabi@4.0.0" | ||
"_id": "ng2-vizabi@4.0.1" | ||
} |
@@ -101,3 +101,3 @@ import { EventEmitter, Input, Output, Directive, ElementRef } from '@angular/core'; | ||
try { | ||
if (!this.viz) { | ||
if (!this.viz || !_reloadTime) { | ||
return; | ||
@@ -104,0 +104,0 @@ } |
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
148813