Skip to content

Commit 5a90d7d

Browse files
committed
1 parent c766b4a commit 5a90d7d

File tree

7 files changed

+57
-24
lines changed

7 files changed

+57
-24
lines changed

dist/powerbi-client.d.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// powerbi-client v2.18.6
1+
// powerbi-client v2.18.7
22
// Copyright (c) Microsoft Corporation.
33
// Licensed under the MIT License.
44
declare module "config" {
@@ -780,7 +780,7 @@ declare module "visualDescriptor" {
780780
}
781781
declare module "page" {
782782
import { IHttpPostMessageResponse } from 'http-post-message';
783-
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode } from 'powerbi-models';
783+
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper } from 'powerbi-models';
784784
import { IFilterable } from "ifilterable";
785785
import { IReportNode } from "report";
786786
import { VisualDescriptor } from "visualDescriptor";
@@ -853,6 +853,18 @@ declare module "page" {
853853
* @type {ICustomPageSize}
854854
*/
855855
defaultDisplayOption: DisplayOption;
856+
/**
857+
* Page background color.
858+
*
859+
* @type {IPageBackground}
860+
*/
861+
background: IPageBackground;
862+
/**
863+
* Page wallpaper color.
864+
*
865+
* @type {IPageWallpaper}
866+
*/
867+
wallpaper: IPageWallpaper;
856868
/**
857869
* Creates an instance of a Power BI report page.
858870
*
@@ -863,7 +875,7 @@ declare module "page" {
863875
* @param {SectionVisibility} [visibility]
864876
* @hidden
865877
*/
866-
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize);
878+
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize, background?: IPageBackground, wallpaper?: IPageWallpaper);
867879
/**
868880
* Gets all page level filters within the report.
869881
*

dist/powerbi.js

Lines changed: 10 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/powerbi.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-client",
3-
"version": "2.18.6",
3+
"version": "2.18.7",
44
"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.",
55
"main": "dist/powerbi.js",
66
"types": "dist/powerbi-client.d.ts",
@@ -81,7 +81,7 @@
8181
},
8282
"dependencies": {
8383
"http-post-message": "^0.2",
84-
"powerbi-models": "^1.9.5",
84+
"powerbi-models": "^1.9.7",
8585
"powerbi-router": "^0.1",
8686
"window-post-message-proxy": "^0.2"
8787
},

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/** @ignore *//** */
55
const config = {
6-
version: '2.18.6',
6+
version: '2.18.7',
77
type: 'js'
88
};
99

src/page.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import {
1515
PageLevelFilters,
1616
PageSizeType,
1717
SectionVisibility,
18-
VisualContainerDisplayMode
18+
VisualContainerDisplayMode,
19+
IPageBackground,
20+
IPageWallpaper,
1921
} from 'powerbi-models';
2022
import { IFilterable } from './ifilterable';
2123
import { IReportNode, Report } from './report';
@@ -100,6 +102,20 @@ export class Page implements IPageNode, IFilterable {
100102
*/
101103
defaultDisplayOption: DisplayOption;
102104

105+
/**
106+
* Page background color.
107+
*
108+
* @type {IPageBackground}
109+
*/
110+
background: IPageBackground;
111+
112+
/**
113+
* Page wallpaper color.
114+
*
115+
* @type {IPageWallpaper}
116+
*/
117+
wallpaper: IPageWallpaper;
118+
103119
/**
104120
* Creates an instance of a Power BI report page.
105121
*
@@ -110,7 +126,7 @@ export class Page implements IPageNode, IFilterable {
110126
* @param {SectionVisibility} [visibility]
111127
* @hidden
112128
*/
113-
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize) {
129+
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize, background?: IPageBackground, wallpaper?: IPageWallpaper) {
114130
this.report = report;
115131
this.name = name;
116132
this.displayName = displayName;
@@ -119,6 +135,8 @@ export class Page implements IPageNode, IFilterable {
119135
this.defaultSize = defaultSize;
120136
this.mobileSize = mobileSize;
121137
this.defaultDisplayOption = defaultDisplayOption;
138+
this.background = background;
139+
this.wallpaper = wallpaper;
122140
}
123141

124142
/**

src/report.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export class Report extends Embed implements IReportNode, IFilterable {
342342
try {
343343
const response = await this.service.hpm.get<IPage[]>('/report/pages', { uid: this.config.uniqueId }, this.iframe.contentWindow);
344344
return response.body
345-
.map((page) => new Page(this, page.name, page.displayName, page.isActive, page.visibility, page.defaultSize, page.defaultDisplayOption, page.mobileSize));
345+
.map((page) => new Page(this, page.name, page.displayName, page.isActive, page.visibility, page.defaultSize, page.defaultDisplayOption, page.mobileSize, page.background, page.wallpaper));
346346
} catch (response) {
347347
throw response.body;
348348
}
@@ -382,7 +382,9 @@ export class Report extends Embed implements IReportNode, IFilterable {
382382
page.visibility,
383383
page.defaultSize,
384384
page.defaultDisplayOption,
385-
page.mobileSize
385+
page.mobileSize,
386+
page.background,
387+
page.wallpaper,
386388
);
387389
} catch (response) {
388390
throw response.body;
@@ -417,7 +419,9 @@ export class Report extends Embed implements IReportNode, IFilterable {
417419
activePage.visibility,
418420
activePage.defaultSize,
419421
activePage.defaultDisplayOption,
420-
activePage.mobileSize
422+
activePage.mobileSize,
423+
activePage.background,
424+
activePage.wallpaper,
421425
);
422426
} catch (response) {
423427
throw response.body;

0 commit comments

Comments
 (0)