You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-powerbi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-powerbi - npm Package Compare versions

Comparing version

to
1.0.0-beta.7

2

dist/angular-powerbi.d.ts

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
import reportDirective from './components/powerbi-report/component';

@@ -3,0 +3,0 @@ import componentDirective from './components/powerbi-component/component';

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular")):"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof exports?exports["angular-powerbi"]=t(require("angular")):e["angular-powerbi"]=t(e.angular)}(this,function(e){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";var i=o(1),n=o(2),r=o(3);t.service=r["default"];var s=o(4);t.components={report:i["default"],component:n["default"]},s.module("powerbi.global",[]).value("PowerBiGlobal",window.powerbi),s.module("powerbi.service",["powerbi.global"]).service("PowerBiService",r["default"]),s.module("powerbi.components.powerbiReport",["powerbi.service"]).directive("powerbiReport",function(){return new i["default"]}),s.module("powerbi.components.powerbiComponent",["powerbi.service"]).directive("powerbiComponent",function(){return new n["default"]}),s.module("powerbi.components",["powerbi.components.powerbiReport","powerbi.components.powerbiComponent"]),s.module("powerbi",["powerbi.service","powerbi.components"])},function(e,t){"use strict";var o=function(){function e(e,t,o){this.$scope=e,this.$timeout=t,this.powerBiService=o}return e.prototype.init=function(e){var t=this;this.validateRequiredAttributes()&&this.embed(e);var o=this.debounce(function(){t.validateRequiredAttributes()?t.embed(e):t.component&&t.reset(e)},100);this.$scope.$watch(function(){return t.embedUrl},function(t,i){t!==i&&o(e)}),this.$scope.$watch(function(){return t.accessToken},function(t,i){t!==i&&o(e)})},e.prototype.embed=function(e){var t={type:"report",embedUrl:this.embedUrl,accessToken:this.accessToken,id:this.reportId,uniqueId:this.name};angular.extend(t,this.options),this.component=this.powerBiService.embed(e,t),this.onEmbedded({$embed:this.component})},e.prototype.reset=function(e){this.powerBiService.reset(e),this.component=null},e.prototype.debounce=function(e,t){var o,i=this;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];o&&i.$timeout.cancel(o),o=i.$timeout(function(){return e.apply(void 0,n)},t)}},e.prototype.validateRequiredAttributes=function(){return"string"==typeof this.embedUrl&&this.embedUrl.length>0&&"string"==typeof this.accessToken&&this.accessToken.length>0},e.$inject=["$scope","$timeout","PowerBiService"],e}();t.Controller=o;var i=function(){function e(){this.restrict="E",this.replace=!0,this.template='<div class="powerbi-frame"></div>',this.scope={accessToken:"=",embedUrl:"=",reportId:"=?",name:"=?",options:"=?",onEmbedded:"&"},this.controller=o,this.bindToController=!0,this.controllerAs="vm"}return e.prototype.link=function(e,t,o,i,n){i.init(t[0]),e.$on("$destroy",function(){i.reset(t[0])})},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t){"use strict";var o=function(){function e(e,t){this.$scope=e,this.powerBiService=t,this.validationMap={report:this.validateReportOptions}}return e.prototype.init=function(e){var t=this;this.validateOptions(this.options)&&this.embed(e,this.options),this.$scope.$watch(function(){return t.options},function(o,i){o!==i&&(t.validateOptions(t.options)?t.embed(e,t.options):t.component&&t.reset(e))},!0)},e.prototype.embed=function(e,t){this.component=this.powerBiService.embed(e,t),this.onEmbedded({$embed:this.component})},e.prototype.reset=function(e){this.powerBiService.reset(e),this.component=null},e.prototype.validateOptions=function(e){return this.options&&"string"==typeof e.embedUrl&&e.embedUrl.length>0&&"string"==typeof e.accessToken&&e.accessToken.length>0&&this.validationMap.hasOwnProperty(e.type)&&"function"==typeof this.validationMap[e.type]?this.validationMap[e.type](e):!1},e.prototype.validateReportOptions=function(e){return!0},e.$inject=["$scope","PowerBiService"],e}();t.Controller=o;var i=function(){function e(){this.restrict="E",this.replace=!0,this.template='<div class="powerbi-frame"></div>',this.scope={accessToken:"=",embedUrl:"=",options:"=?",onEmbedded:"&"},this.controller=o,this.bindToController=!0,this.controllerAs="vm"}return e.prototype.link=function(e,t,o,i,n){i.init(t[0]),e.$on("$destroy",function(){i.reset(t[0])})},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t){"use strict";var o=function(){function e(e){this.powerBiCoreService=e}return e.prototype.embed=function(e,t){return this.powerBiCoreService.embed(e,t)},e.prototype.get=function(e){return this.powerBiCoreService.get(e)},e.prototype.find=function(e){return this.powerBiCoreService.find(e)},e.prototype.reset=function(e){this.powerBiCoreService.reset(e)},e.$inject=["PowerBiGlobal"],e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o},function(t,o){t.exports=e}])});

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
import * as pbi from 'powerbi-client';

@@ -3,0 +3,0 @@ import PowerBiService from '../../services/powerbi';

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
import * as pbi from 'powerbi-client';

@@ -3,0 +3,0 @@ import * as models from 'powerbi-models';

@@ -1,2 +0,2 @@

/*! angular-powerbi v1.0.0-beta.6 | (c) 2016 Microsoft Corporation MIT */
/*! angular-powerbi v1.0.0-beta.7 | (c) 2016 Microsoft Corporation MIT */
import * as pbi from 'powerbi-client';

@@ -3,0 +3,0 @@ export default class PowerBiService {

{
"name": "angular-powerbi",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "Angular library which contains components to embed PowerBi visuals.",

@@ -12,2 +12,3 @@ "main": "dist/angular-powerbi.js",

"prepublish": "gulp build",
"version": "gulp build && git add .",
"test": "gulp test --chrome"

@@ -26,3 +27,3 @@ },

"angular": "^1.5.3",
"powerbi-client": "2.0.0-beta.8"
"powerbi-client": "^2.0.0-beta.12"
},

@@ -29,0 +30,0 @@ "devDependencies": {

# angular-powerbi
[![Build Status](https://img.shields.io/travis/Microsoft/PowerBI-Angular.svg?branch=dev)](https://travis-ci.org/Microsoft/PowerBI-Angular)
[![npm version](https://img.shields.io/npm/v/angular-powerbi.svg)](https://www.npmjs.com/package/angular-powerbi)
[![downloads total](https://img.shields.io/npm/dt/powerbi-angular.svg)](https://www.npmjs.com/package/angular-powerbi)
[![downloads monthly](https://img.shields.io/npm/dm/powerbi-angular.svg)](https://www.npmjs.com/package/angular-powerbi)
[![GitHub tag](https://img.shields.io/github/tag/Microsoft/PowerBI-Angular.svg)](https://github.com/Microsoft/powerbi-angular/tags)

@@ -3,0 +8,0 @@ Angular module which wraps PowerBI-JavaScript as service and adds a collection of components for each embedded type (Currently only Report is supported) which you can use to easily embed Power BI visuals within your Angular applications.

Sorry, the diff of this file is not supported yet