powerbi-client-angular
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,3 +7,3 @@ (function (global, factory) { | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -170,3 +170,7 @@ | ||
k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function () { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function (o, m, k, k2) { | ||
@@ -326,2 +330,7 @@ if (k2 === undefined) | ||
} | ||
function __classPrivateFieldIn(state, receiver) { | ||
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) | ||
throw new TypeError("Cannot use 'in' operator on non-object"); | ||
return typeof state === "function" ? receiver === state : state.has(receiver); | ||
} | ||
@@ -349,2 +358,5 @@ // Copyright (c) Microsoft Corporation. | ||
}; | ||
// SDK information to be used with service instance | ||
var sdkType = 'powerbi-client-angular'; | ||
var sdkWrapperVersion = '2.0.1'; | ||
@@ -368,2 +380,3 @@ // Copyright (c) Microsoft Corporation. | ||
} | ||
this.powerbi.setSdkInfo(sdkType, sdkWrapperVersion); | ||
}; | ||
@@ -370,0 +383,0 @@ /** |
@@ -1,16 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("powerbi-client")):"function"==typeof define&&define.amd?define("powerbi-client-angular",["exports","@angular/core","powerbi-client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["powerbi-client-angular"]={},e.ng.core,e["powerbi-client"])}(this,(function(e,t,n){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var r=function(){function e(){this.prevEventHandlerMapString=""}return e.prototype.ngOnInit=function(){this.service?this.powerbi=this.service:this.powerbi=new n.service.Service(n.factories.hpmFactory,n.factories.wpmpFactory,n.factories.routerFactory)},e.prototype.setEventHandlers=function(e,t){var n=function(e){if(!e)return"";var t=Array.from(e);return JSON.stringify(t.map((function(e){return[e[0],e[1]?e[1].toString():""]})))}(t);this.prevEventHandlerMapString!==n&&(this.prevEventHandlerMapString=n,t.forEach((function(t,n){e.off(n),t&&e.on(n,(function(n){t(n,e)}))})))},e}();r.decorators=[{type:t.Component,args:[{selector:"powerbi-embed",template:""}]}],r.propDecorators={cssClassName:[{type:t.Input}],service:[{type:t.Input}]};var s=function(e){function t(){var t=e.call(this)||this;return t.phasedEmbedding=!1,t}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getReport=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateReport(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedReport():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedReport=function(){this.containerRef.nativeElement&&(this.phasedEmbedding?this.embed=this.powerbi.load(this.containerRef.nativeElement,this.embedConfig):this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateReport=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedReport()},t}(r);s.decorators=[{type:t.Component,args:[{selector:"powerbi-report[embedConfig]",template:"<div class={{cssClassName}} #reportContainer></div>"}]}],s.ctorParameters=function(){return[]},s.propDecorators={embedConfig:[{type:t.Input}],phasedEmbedding:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["reportContainer"]}]};var a=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getDashboard=function(){return this.embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateDashboard(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedDashboard():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedDashboard=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateDashboard=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedDashboard()},t}(r);a.decorators=[{type:t.Component,args:[{selector:"powerbi-dashboard[embedConfig]",template:"<div class={{cssClassName}} #dashboardContainer></div>"}]}],a.ctorParameters=function(){return[]},a.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["dashboardContainer"]}]};var d=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getTile=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateTile(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedTile():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedTile=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateTile=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedTile()},t}(r);d.decorators=[{type:t.Component,args:[{selector:"powerbi-tile[embedConfig]",template:"<div class={{cssClassName}} #tileContainer></div>"}]}],d.ctorParameters=function(){return[]},d.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["tileContainer"]}]};var p=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){if(e.embedConfig){var t=e.embedConfig.previousValue;if(!t)return;this.embedOrUpdatedPaginatedReport(t)}},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&this.embedPaginatedReport()},t.prototype.embedPaginatedReport=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdatedPaginatedReport=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedPaginatedReport()},t}(r);p.decorators=[{type:t.Component,args:[{selector:"powerbi-paginated-report[embedConfig]",template:"<div class={{cssClassName}} #paginatedReportContainer></div>"}]}],p.ctorParameters=function(){return[]},p.propDecorators={embedConfig:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["paginatedReportContainer"]}]};var m=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getVisual=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateVisual(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedVisual():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedVisual=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateVisual=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedVisual()},t}(r);m.decorators=[{type:t.Component,args:[{selector:"powerbi-visual[embedConfig]",template:"<div class={{cssClassName}} #visualContainer></div>"}]}],m.ctorParameters=function(){return[]},m.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["visualContainer"]}]};var b=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getQna=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateQna(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedQnaVisual():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedQnaVisual=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateQna=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedQnaVisual()},t}(r);b.decorators=[{type:t.Component,args:[{selector:"powerbi-qna[embedConfig]",template:"<div class={{cssClassName}} #qnaContainer></div>"}]}],b.ctorParameters=function(){return[]},b.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["qnaContainer"]}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{declarations:[r,a,p,b,s,d,m],imports:[],exports:[a,p,b,s,d,m]}]}],e.PowerBIDashboardEmbedComponent=a,e.PowerBIEmbedModule=c,e.PowerBIPaginatedReportEmbedComponent=p,e.PowerBIQnaEmbedComponent=b,e.PowerBIReportEmbedComponent=s,e.PowerBITileEmbedComponent=d,e.PowerBIVisualEmbedComponent=m,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("powerbi-client")):"function"==typeof define&&define.amd?define("powerbi-client-angular",["exports","@angular/core","powerbi-client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["powerbi-client-angular"]={},e.ng.core,e["powerbi-client"])}(this,(function(e,t,n){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var r=function(){function e(){this.prevEventHandlerMapString=""}return e.prototype.ngOnInit=function(){this.service?this.powerbi=this.service:this.powerbi=new n.service.Service(n.factories.hpmFactory,n.factories.wpmpFactory,n.factories.routerFactory),this.powerbi.setSdkInfo("powerbi-client-angular","2.0.1")},e.prototype.setEventHandlers=function(e,t){var n=function(e){if(!e)return"";var t=Array.from(e);return JSON.stringify(t.map((function(e){return[e[0],e[1]?e[1].toString():""]})))}(t);this.prevEventHandlerMapString!==n&&(this.prevEventHandlerMapString=n,t.forEach((function(t,n){e.off(n),t&&e.on(n,(function(n){t(n,e)}))})))},e}();r.decorators=[{type:t.Component,args:[{selector:"powerbi-embed",template:""}]}],r.propDecorators={cssClassName:[{type:t.Input}],service:[{type:t.Input}]};var s=function(e){function t(){var t=e.call(this)||this;return t.phasedEmbedding=!1,t}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getReport=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateReport(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedReport():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedReport=function(){this.containerRef.nativeElement&&(this.phasedEmbedding?this.embed=this.powerbi.load(this.containerRef.nativeElement,this.embedConfig):this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateReport=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedReport()},t}(r);s.decorators=[{type:t.Component,args:[{selector:"powerbi-report[embedConfig]",template:"<div class={{cssClassName}} #reportContainer></div>"}]}],s.ctorParameters=function(){return[]},s.propDecorators={embedConfig:[{type:t.Input}],phasedEmbedding:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["reportContainer"]}]};var a=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getDashboard=function(){return this.embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateDashboard(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedDashboard():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedDashboard=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateDashboard=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedDashboard()},t}(r);a.decorators=[{type:t.Component,args:[{selector:"powerbi-dashboard[embedConfig]",template:"<div class={{cssClassName}} #dashboardContainer></div>"}]}],a.ctorParameters=function(){return[]},a.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["dashboardContainer"]}]};var d=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getTile=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateTile(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedTile():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedTile=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateTile=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedTile()},t}(r);d.decorators=[{type:t.Component,args:[{selector:"powerbi-tile[embedConfig]",template:"<div class={{cssClassName}} #tileContainer></div>"}]}],d.ctorParameters=function(){return[]},d.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["tileContainer"]}]};var p=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){if(e.embedConfig){var t=e.embedConfig.previousValue;if(!t)return;this.embedOrUpdatedPaginatedReport(t)}},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&this.embedPaginatedReport()},t.prototype.embedPaginatedReport=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdatedPaginatedReport=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedPaginatedReport()},t}(r);p.decorators=[{type:t.Component,args:[{selector:"powerbi-paginated-report[embedConfig]",template:"<div class={{cssClassName}} #paginatedReportContainer></div>"}]}],p.ctorParameters=function(){return[]},p.propDecorators={embedConfig:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["paginatedReportContainer"]}]};var m=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getVisual=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateVisual(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedVisual():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedVisual=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateVisual=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedVisual()},t}(r);m.decorators=[{type:t.Component,args:[{selector:"powerbi-visual[embedConfig]",template:"<div class={{cssClassName}} #visualContainer></div>"}]}],m.ctorParameters=function(){return[]},m.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["visualContainer"]}]};var b=function(e){function t(){return e.call(this)||this}return o(t,e),Object.defineProperty(t.prototype,"embed",{get:function(){return this._embed},set:function(e){this._embed=e},enumerable:!1,configurable:!0}),t.prototype.getQna=function(){return this._embed},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(t){if(t.embedConfig){var n=t.embedConfig.previousValue;if(!n)return;this.embedOrUpdateQna(n)}this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.ngAfterViewInit=function(){this.containerRef.nativeElement&&(this.embedConfig.accessToken&&this.embedConfig.embedUrl?this.embedQnaVisual():this.embed=this.powerbi.bootstrap(this.containerRef.nativeElement,this.embedConfig)),this.eventHandlers&&this.embed&&e.prototype.setEventHandlers.call(this,this.embed,this.eventHandlers)},t.prototype.embedQnaVisual=function(){this.containerRef.nativeElement&&(this.embed=this.powerbi.embed(this.containerRef.nativeElement,this.embedConfig))},t.prototype.embedOrUpdateQna=function(e){this.embedConfig.accessToken&&this.embedConfig.embedUrl&&this.containerRef.nativeElement&&this.embedConfig.embedUrl!==e.embedUrl&&this.embedQnaVisual()},t}(r);b.decorators=[{type:t.Component,args:[{selector:"powerbi-qna[embedConfig]",template:"<div class={{cssClassName}} #qnaContainer></div>"}]}],b.ctorParameters=function(){return[]},b.propDecorators={embedConfig:[{type:t.Input}],eventHandlers:[{type:t.Input}],containerRef:[{type:t.ViewChild,args:["qnaContainer"]}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{declarations:[r,a,p,b,s,d,m],imports:[],exports:[a,p,b,s,d,m]}]}],e.PowerBIDashboardEmbedComponent=a,e.PowerBIEmbedModule=c,e.PowerBIPaginatedReportEmbedComponent=p,e.PowerBIQnaEmbedComponent=b,e.PowerBIReportEmbedComponent=s,e.PowerBITileEmbedComponent=d,e.PowerBIVisualEmbedComponent=m,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=powerbi-client-angular.umd.min.js.map |
@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation. | ||
import { factories, service } from 'powerbi-client'; | ||
import { stringifyMap } from '../../utils/utils'; | ||
import { stringifyMap, sdkType, sdkWrapperVersion } from '../../utils/utils'; | ||
/** | ||
@@ -23,2 +23,3 @@ * Base component to hold common properties for all the Power BI entities | ||
} | ||
this.powerbi.setSdkInfo(sdkType, sdkWrapperVersion); | ||
} | ||
@@ -65,2 +66,2 @@ /** | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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mVseSByZW1vdmVkIGZvciB0aGlzIGV2ZW50IHdoZW4gZXZlbnRIYW5kbGVyTWV0aG9kIGlzIG51bGxcclxuICAgICAgaWYgKGV2ZW50SGFuZGxlck1ldGhvZCkge1xyXG4gICAgICAgIC8vIFNldCBzaW5nbGUgZXZlbnQgaGFuZGxlclxyXG4gICAgICAgIGVtYmVkLm9uKGV2ZW50TmFtZSwgKGV2ZW50OiBzZXJ2aWNlLklDdXN0b21FdmVudDxhbnk+KTogdm9pZCA9PiB7XHJcbiAgICAgICAgICBldmVudEhhbmRsZXJNZXRob2QoZXZlbnQsIGVtYmVkKTtcclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -21,2 +21,5 @@ // Copyright (c) Microsoft Corporation. | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wb3dlcmJpLWNsaWVudC1hbmd1bGFyL3NyYy91dGlscy91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1Q0FBdUM7QUFDdkMsa0NBQWtDO0FBSWxDOzs7OztHQUtHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLENBQUMsR0FBaUQsRUFBVSxFQUFFO0lBQ3hGLHlDQUF5QztJQUN6QyxJQUFJLENBQUMsR0FBRyxFQUFFO1FBQ1IsT0FBTyxFQUFFLENBQUM7S0FDWDtJQUVELDhCQUE4QjtJQUM5QixNQUFNLFVBQVUsR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBRW5DLHFCQUFxQjtJQUNyQixPQUFPLElBQUksQ0FBQyxTQUFTLENBQ25CLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxRQUFRLEVBQUUsRU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c3RyaW5nXHJcbiAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KFxyXG4gICAgbWFwRW50cmllcy5tYXAoKG1hcEVudHJ5KSA9PlxyXG4gICAgICAvLyBDb252ZXJ0IGV2ZW50IGhhbmRsZXIgbWV0aG9kIHRvIGEgc3RyaW5nIGNvbnRhaW5pbmcgaXRzIHNvdXJjZSBjb2RlIGZvciBjb21wYXJpc29uXHJcbiAgICAgIFttYXBFbnRyeVswXSwgbWFwRW50cnlbMV0gPyBtYXBFbnRyeVsxXS50b1N0cmluZygpIDogJyddXHJcbiAgICApXHJcbiAgKTtcclxufTtcclxuIl19 | ||
// SDK information to be used with service instance | ||
export const sdkType = 'powerbi-client-angular'; | ||
export const sdkWrapperVersion = '2.0.1'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wb3dlcmJpLWNsaWVudC1hbmd1bGFyL3NyYy91dGlscy91dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1Q0FBdUM7QUFDdkMsa0NBQWtDO0FBSWxDOzs7OztHQUtHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sWUFBWSxHQUFHLENBQUMsR0FBaUQsRUFBVSxFQUFFO0lBQ3hGLHlDQUF5QztJQUN6QyxJQUFJLENBQUMsR0FBRyxFQUFFO1FBQ1IsT0FBTyxFQUFFLENBQUM7S0FDWDtJQUVELDhCQUE4QjtJQUM5QixNQUFNLFVBQVUsR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBRW5DLHFCQUFxQjtJQUNyQixPQUFPLElBQUksQ0FBQyxTQUFTLENBQ25CLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxRQUFRLEVBQUUsRUFBRTtJQUMxQixxRkFBcUY7SUFDckYsQ0FBQyxRQ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MgYXJyYXlcclxuICBjb25zdCBtYXBFbnRyaWVzID0gQXJyYXkuZnJvbShtYXApO1xyXG5cclxuICAvLyBSZXR1cm4gSlNPTiBzdHJpbmdcclxuICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoXHJcbiAgICBtYXBFbnRyaWVzLm1hcCgobWFwRW50cnkpID0+XHJcbiAgICAgIC8vIENvbnZlcnQgZXZlbnQgaGFuZGxlciBtZXRob2QgdG8gYSBzdHJpbmcgY29udGFpbmluZyBpdHMgc291cmNlIGNvZGUgZm9yIGNvbXBhcmlzb25cclxuICAgICAgW21hcEVudHJ5WzBdLCBtYXBFbnRyeVsxXSA/IG1hcEVudHJ5WzFdLnRvU3RyaW5nKCkgOiAnJ11cclxuICAgIClcclxuICApO1xyXG59O1xyXG5cclxuLy8gU0RLIGluZm9ybWF0aW9uIHRvIGJlIHVzZWQgd2l0aCBzZXJ2aWNlIGluc3RhbmNlXHJcbmV4cG9ydCBjb25zdCBzZGtUeXBlID0gJ3Bvd2VyYmktY2xpZW50LWFuZ3VsYXInO1xyXG5leHBvcnQgY29uc3Qgc2RrV3JhcHBlclZlcnNpb24gPSAnMi4wLjEnO1xyXG4iXX0= |
@@ -24,2 +24,5 @@ import { Component, Input, ViewChild, NgModule } from '@angular/core'; | ||
}; | ||
// SDK information to be used with service instance | ||
const sdkType = 'powerbi-client-angular'; | ||
const sdkWrapperVersion = '2.0.1'; | ||
@@ -43,2 +46,3 @@ // Copyright (c) Microsoft Corporation. | ||
} | ||
this.powerbi.setSdkInfo(sdkType, sdkWrapperVersion); | ||
} | ||
@@ -45,0 +49,0 @@ /** |
{ | ||
"name": "powerbi-client-angular", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Angular wrapper for powerbi-client library", | ||
@@ -22,3 +22,3 @@ "main": "bundles/powerbi-client-angular.umd.js", | ||
"dependencies": { | ||
"powerbi-client": "^2.18.0", | ||
"powerbi-client": "^2.21.1", | ||
"tslib": "^2.1.0" | ||
@@ -25,0 +25,0 @@ }, |
@@ -9,1 +9,3 @@ import { EventHandler } from '../components/powerbi-embed/powerbi-embed.component'; | ||
export declare const stringifyMap: (map: Map<string, EventHandler | null> | undefined) => string; | ||
export declare const sdkType = "powerbi-client-angular"; | ||
export declare const sdkWrapperVersion = "2.0.1"; |
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
380880
2786
Updatedpowerbi-client@^2.21.1