Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit ae2f11e

Browse files
author
Shahak Yosef
committed
Merged PR 101370: Remove default report settings
Remove default report settings
1 parent e1886ff commit ae2f11e

File tree

8 files changed

+44
-71
lines changed

8 files changed

+44
-71
lines changed

dist/powerbi-client.d.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! powerbi-client v2.13.3 | (c) 2016 Microsoft Corporation MIT */
1+
/*! powerbi-client v2.14.0 | (c) 2016 Microsoft Corporation MIT */
22
declare module "util" {
33
import { HttpPostMessage } from 'http-post-message';
44
/**
@@ -102,14 +102,6 @@ declare module "config" {
102102
};
103103
export default config;
104104
}
105-
declare module "defaults" {
106-
import * as models from 'powerbi-models';
107-
/** @hidden */
108-
export abstract class Defaults {
109-
static defaultSettings: models.ISettings;
110-
static defaultQnaSettings: models.IQnaSettings;
111-
}
112-
}
113105
declare module "errors" {
114106
export let APINotSupportedForRDLError: string;
115107
export let EmbedUrlNotSupported: string;
@@ -1216,6 +1208,13 @@ declare module "report" {
12161208
private isMobileSettings(settings);
12171209
}
12181210
}
1211+
declare module "defaults" {
1212+
import * as models from 'powerbi-models';
1213+
/** @hidden */
1214+
export abstract class Defaults {
1215+
static defaultQnaSettings: models.IQnaSettings;
1216+
}
1217+
}
12191218
declare module "create" {
12201219
import * as service from "service";
12211220
import * as models from 'powerbi-models';

dist/powerbi.js

+27-47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/powerbi.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-client",
3-
"version": "2.13.3",
3+
"version": "2.14.0",
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
"typings": "dist/powerbi-client.d.ts",

src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @ignore *//** */
22
const config = {
3-
version: '2.13.3',
3+
version: '2.14.0',
44
type: 'js'
55
};
66

src/defaults.ts

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ import * as models from 'powerbi-models';
22

33
/** @hidden */
44
export abstract class Defaults {
5-
public static defaultSettings: models.ISettings = {
6-
filterPaneEnabled: true
7-
};
8-
95
public static defaultQnaSettings: models.IQnaSettings = {
106
filterPaneEnabled: false
117
};

src/embed.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as utils from './util';
22
import * as service from './service';
33
import * as sdkConfig from './config';
44
import * as models from 'powerbi-models';
5-
import { Defaults } from './defaults';
65
import { EmbedUrlNotSupported } from './errors';
76

87
declare global {

src/report.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as utils from './util';
55
import * as errors from './errors';
66
import { IFilterable } from './ifilterable';
77
import { Page } from './page';
8-
import { Defaults } from './defaults';
98
import { IReportLoadConfiguration } from 'powerbi-models';
109
import { BookmarksManager } from './bookmarksManager';
1110

@@ -391,8 +390,8 @@ export class Report extends embed.Embed implements IReportNode, IFilterable {
391390
let navContentPaneEnabledAttribute = this.element.getAttribute(Report.navContentPaneEnabledAttribute);
392391

393392
let elementAttrSettings: embed.IEmbedSettings = {
394-
filterPaneEnabled: (filterPaneEnabledAttribute == null) ? Defaults.defaultSettings.filterPaneEnabled : (filterPaneEnabledAttribute !== "false"),
395-
navContentPaneEnabled: (navContentPaneEnabledAttribute == null) ? Defaults.defaultSettings.navContentPaneEnabled : (navContentPaneEnabledAttribute !== "false")
393+
filterPaneEnabled: (filterPaneEnabledAttribute == null) ? undefined : (filterPaneEnabledAttribute !== "false"),
394+
navContentPaneEnabled: (navContentPaneEnabledAttribute == null) ? undefined : (navContentPaneEnabledAttribute !== "false")
396395
};
397396

398397
// Set the settings back into the config.

0 commit comments

Comments
 (0)