Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 186 additions & 8 deletions dist/powerbi-client.d.ts

Large diffs are not rendered by default.

6,539 changes: 3,381 additions & 3,158 deletions dist/powerbi.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/powerbi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-client",
"version": "2.10.4",
"version": "2.11.0",
"description": "JavaScript library for embedding Power BI into your apps. Provides service which makes it easy to embed different types of components and an object model which allows easy interaction with these components such as changing pages, applying filters, and responding to data selection.",
"main": "dist/powerbi.js",
"typings": "dist/powerbi-client.d.ts",
Expand Down
11 changes: 8 additions & 3 deletions src/bookmarksManager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @hidden
*/
import * as service from './service';
import * as embed from './embed';
import * as models from 'powerbi-models';
Expand Down Expand Up @@ -32,7 +35,9 @@ export interface IBookmarksManager {
* @implements {IBookmarksManager}
*/
export class BookmarksManager implements IBookmarksManager {

/**
* @hidden
*/
constructor(private service: service.Service, private config: embed.IEmbedConfigurationBase, private iframe?: HTMLIFrameElement) {
}

Expand Down Expand Up @@ -62,7 +67,7 @@ export class BookmarksManager implements IBookmarksManager {
}

/**
* Apply bookmark By name.
* Apply bookmark by name.
*
* ```javascript
* bookmarksManager.apply(bookmarkName)
Expand Down Expand Up @@ -135,7 +140,7 @@ export class BookmarksManager implements IBookmarksManager {
* Apply bookmark state.
*
* ```javascript
* bookmarksManager.applyState(bookmarkName)
* bookmarksManager.applyState(bookmarkState)
* ```
*
* @returns {Promise<void>}
Expand Down
5 changes: 4 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/**
* @hidden
*/
const config = {
version: '2.10.4',
version: '2.11.0',
type: 'js'
};

Expand Down
18 changes: 17 additions & 1 deletion src/create.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
/**
* @hidden
*/
import * as service from './service';
import * as models from 'powerbi-models';
import * as embed from './embed';
import * as utils from './util';
import { Defaults } from './defaults';

/**
* A Power BI Report creator component
*
* @export
* @class Create
* @extends {embed.Embed}
*/
export class Create extends embed.Embed {

/*
* @hidden
*/
constructor(service: service.Service, element: HTMLElement, config: embed.IEmbedConfiguration, phasedRender?: boolean, isBootstrap?: boolean) {
super(service, element, config, /* iframe */ undefined, phasedRender, isBootstrap);
}
Expand Down Expand Up @@ -54,6 +66,10 @@ export class Create extends embed.Embed {
}
}

/**
* @hidden
* @returns {string}
*/
getDefaultEmbedUrlEndpoint(): string {
return "reportEmbed";
}
Expand Down
15 changes: 14 additions & 1 deletion src/dashboard.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @hidden
*/
import * as service from './service';
import * as embed from './embed';
import * as models from 'powerbi-models';
Expand Down Expand Up @@ -28,15 +31,20 @@ export interface IDashboardNode {
* @implements {IFilterable}
*/
export class Dashboard extends embed.Embed implements IDashboardNode {
/** @hidden */
static allowedEvents = ["tileClicked", "error"];
/** @hidden */
static dashboardIdAttribute = 'powerbi-dashboard-id';
/** @hidden */
static typeAttribute = 'powerbi-type';
/** @hidden */
static type = "Dashboard";

/**
* Creates an instance of a Power BI Dashboard.
*
* @param {service.Service} service
* @hidden
* @param {HTMLElement} element
*/
constructor(service: service.Service, element: HTMLElement, config: embed.IEmbedConfigurationBase, phasedRender?: boolean, isBootstrap?: boolean) {
Expand Down Expand Up @@ -96,7 +104,7 @@ export class Dashboard extends embed.Embed implements IDashboardNode {

/**
* Handle config changes.
*
* @hidden
* @returns {void}
*/
configChanged(isBootstrap: boolean): void {
Expand All @@ -108,12 +116,17 @@ export class Dashboard extends embed.Embed implements IDashboardNode {
(<embed.IEmbedConfiguration>this.config).id = this.getId();
}

/**
* @hidden
* @returns {string}
*/
getDefaultEmbedUrlEndpoint(): string {
return "dashboardEmbed";
}

/**
* Validate that pageView has a legal value: if page view is defined it must have one of the values defined in models.PageView
* @hidden
*/
private ValidatePageView(pageView: models.PageView): models.IError[] {
if (pageView && pageView !== "fitToWidth" && pageView !== "oneColumn" && pageView !== "actualSize") {
Expand Down
2 changes: 2 additions & 0 deletions src/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @hidden */
import * as models from 'powerbi-models';

/** @hidden */
export abstract class Defaults {
public static defaultSettings: models.ISettings = {
filterPaneEnabled: true
Expand Down
Loading