Merged PR 74948: Release version 2.11.0
The npm will use the latest models (1.3.3) but the nuget will not because it uses the compiled JS.
This commit is contained in:
Родитель
766ab54c2c
Коммит
8c438c7bdd
|
@ -1,4 +1,4 @@
|
|||
/*! powerbi-client v2.10.4 | (c) 2016 Microsoft Corporation MIT */
|
||||
/*! powerbi-client v2.11.0 | (c) 2016 Microsoft Corporation MIT */
|
||||
declare module "util" {
|
||||
import { HttpPostMessage } from 'http-post-message';
|
||||
/**
|
||||
|
@ -95,6 +95,9 @@ declare module "util" {
|
|||
export function getRandomValue(): number;
|
||||
}
|
||||
declare module "config" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
const config: {
|
||||
version: string;
|
||||
type: string;
|
||||
|
@ -102,7 +105,9 @@ declare module "config" {
|
|||
export default config;
|
||||
}
|
||||
declare module "defaults" {
|
||||
/** @hidden */
|
||||
import * as models from 'powerbi-models';
|
||||
/** @hidden */
|
||||
export abstract class Defaults {
|
||||
static defaultSettings: models.ISettings;
|
||||
static defaultQnaSettings: models.IQnaSettings;
|
||||
|
@ -197,6 +202,7 @@ declare module "embed" {
|
|||
}
|
||||
export interface IQnaSettings extends models.IQnaSettings, ISettings {
|
||||
}
|
||||
/** @hidden */
|
||||
export interface IInternalEventHandler<T> {
|
||||
test(event: service.IEvent<T>): boolean;
|
||||
handle(event: service.ICustomEvent<T>): void;
|
||||
|
@ -206,74 +212,95 @@ declare module "embed" {
|
|||
*
|
||||
* @export
|
||||
* @abstract
|
||||
* @hidden
|
||||
* @class Embed
|
||||
*/
|
||||
export abstract class Embed {
|
||||
/** @hidden */
|
||||
static allowedEvents: string[];
|
||||
/** @hidden */
|
||||
static accessTokenAttribute: string;
|
||||
/** @hidden */
|
||||
static embedUrlAttribute: string;
|
||||
/** @hidden */
|
||||
static nameAttribute: string;
|
||||
/** @hidden */
|
||||
static typeAttribute: string;
|
||||
/** @hidden */
|
||||
static defaultEmbedHostName: string;
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
/** @hidden */
|
||||
static maxFrontLoadTimes: number;
|
||||
/** @hidden */
|
||||
allowedEvents: any[];
|
||||
/**
|
||||
* Gets or sets the event handler registered for this embed component.
|
||||
*
|
||||
* @type {IInternalEventHandler<any>[]}
|
||||
* @hidden
|
||||
*/
|
||||
eventHandlers: IInternalEventHandler<any>[];
|
||||
/**
|
||||
* Gets or sets the Power BI embed service.
|
||||
*
|
||||
* @type {service.Service}
|
||||
* @hidden
|
||||
*/
|
||||
service: service.Service;
|
||||
/**
|
||||
* Gets or sets the HTML element that contains the Power BI embed component.
|
||||
*
|
||||
* @type {HTMLElement}
|
||||
* @hidden
|
||||
*/
|
||||
element: HTMLElement;
|
||||
/**
|
||||
* Gets or sets the HTML iframe element that renders the Power BI embed component.
|
||||
*
|
||||
* @type {HTMLIFrameElement}
|
||||
* @hidden
|
||||
*/
|
||||
iframe: HTMLIFrameElement;
|
||||
/**
|
||||
* Gets or sets the configuration settings for the Power BI embed component.
|
||||
*
|
||||
* @type {IEmbedConfigurationBase}
|
||||
* @hidden
|
||||
*/
|
||||
config: IEmbedConfigurationBase;
|
||||
/**
|
||||
* Gets or sets the bootstrap configuration for the Power BI embed component received by powerbi.bootstrap().
|
||||
*
|
||||
* @type {IBootstrapEmbedConfiguration}
|
||||
* @hidden
|
||||
*/
|
||||
bootstrapConfig: IBootstrapEmbedConfiguration;
|
||||
/**
|
||||
* Gets or sets the configuration settings for creating report.
|
||||
*
|
||||
* @type {models.IReportCreateConfiguration}
|
||||
* @hidden
|
||||
*/
|
||||
createConfig: models.IReportCreateConfiguration;
|
||||
/**
|
||||
* Url used in the load request.
|
||||
* @hidden
|
||||
*/
|
||||
loadPath: string;
|
||||
/**
|
||||
* Url used in the load request.
|
||||
* @hidden
|
||||
*/
|
||||
phasedLoadPath: string;
|
||||
/**
|
||||
* Type of embed
|
||||
* @hidden
|
||||
*/
|
||||
embeType: string;
|
||||
embedtype: string;
|
||||
/**
|
||||
* Handler function for the 'ready' event
|
||||
* @hidden
|
||||
*/
|
||||
frontLoadHandler: () => any;
|
||||
/**
|
||||
|
@ -285,6 +312,7 @@ declare module "embed" {
|
|||
* @param {service.Service} service
|
||||
* @param {HTMLElement} element
|
||||
* @param {IEmbedConfigurationBase} config
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, element: HTMLElement, config: IEmbedConfigurationBase, iframe?: HTMLIFrameElement, phasedRender?: boolean, isBootstrap?: boolean);
|
||||
/**
|
||||
|
@ -395,11 +423,13 @@ declare module "embed" {
|
|||
* @private
|
||||
* @param {string} globalAccessToken
|
||||
* @returns {string}
|
||||
* @hidden
|
||||
*/
|
||||
private getAccessToken(globalAccessToken);
|
||||
/**
|
||||
* Populate config for create and load
|
||||
*
|
||||
* @hidden
|
||||
* @param {IEmbedConfiguration}
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -409,6 +439,7 @@ declare module "embed" {
|
|||
*
|
||||
* @private
|
||||
* @param {IEmbedConfiguration} config
|
||||
* @hidden
|
||||
*/
|
||||
private addLocaleToEmbedUrl(config);
|
||||
/**
|
||||
|
@ -416,8 +447,12 @@ declare module "embed" {
|
|||
*
|
||||
* @private
|
||||
* @returns {string}
|
||||
* @hidden
|
||||
*/
|
||||
private getEmbedUrl(isBootstrap);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private getDefaultEmbedUrl(hostname);
|
||||
/**
|
||||
* Gets a unique ID from the first available location: options, attribute.
|
||||
|
@ -425,6 +460,7 @@ declare module "embed" {
|
|||
*
|
||||
* @private
|
||||
* @returns {string}
|
||||
* @hidden
|
||||
*/
|
||||
private getUniqueId();
|
||||
/**
|
||||
|
@ -432,6 +468,7 @@ declare module "embed" {
|
|||
*
|
||||
* @private
|
||||
* @returns {string}
|
||||
* @hidden
|
||||
*/
|
||||
private getGroupId();
|
||||
/**
|
||||
|
@ -444,6 +481,7 @@ declare module "embed" {
|
|||
/**
|
||||
* Raise a config changed event.
|
||||
*
|
||||
* @hidden
|
||||
* @returns {void}
|
||||
*/
|
||||
abstract configChanged(isBootstrap: boolean): void;
|
||||
|
@ -452,6 +490,7 @@ declare module "embed" {
|
|||
* For example: report embed endpoint is reportEmbed.
|
||||
* This will help creating a default embed URL such as: https://app.powerbi.com/reportEmbed
|
||||
*
|
||||
* @hidden
|
||||
* @returns {string} endpoint.
|
||||
*/
|
||||
abstract getDefaultEmbedUrlEndpoint(): string;
|
||||
|
@ -470,6 +509,7 @@ declare module "embed" {
|
|||
* @private
|
||||
* @param {HTMLIFrameElement} iframe
|
||||
* @returns {boolean}
|
||||
* @hidden
|
||||
*/
|
||||
private isFullscreen(iframe);
|
||||
/**
|
||||
|
@ -478,10 +518,11 @@ declare module "embed" {
|
|||
abstract validate(config: IEmbedConfigurationBase): models.IError[];
|
||||
/**
|
||||
* Sets Iframe for embed
|
||||
* @hidden
|
||||
*/
|
||||
private setIframe(isLoad, phasedRender?, isBootstrap?);
|
||||
/**
|
||||
* Sets Iframe's title
|
||||
* Set the component title for accessibility. In case of iframes, this method will change the iframe title.
|
||||
*/
|
||||
setComponentTitle(title: string): void;
|
||||
/**
|
||||
|
@ -496,6 +537,7 @@ declare module "embed" {
|
|||
* Adds the ability to get groupId from url.
|
||||
* By extracting the ID we can ensure that the ID is always explicitly provided as part of the load configuration.
|
||||
*
|
||||
* @hidden
|
||||
* @static
|
||||
* @param {string} url
|
||||
* @returns {string}
|
||||
|
@ -503,11 +545,15 @@ declare module "embed" {
|
|||
static findGroupIdFromEmbedUrl(url: string): string;
|
||||
/**
|
||||
* Sends the config for front load calls, after 'ready' message is received from the iframe
|
||||
* @hidden
|
||||
*/
|
||||
private frontLoadSendConfig(config);
|
||||
}
|
||||
}
|
||||
declare module "ifilterable" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as models from 'powerbi-models';
|
||||
/**
|
||||
* Decorates embed components that support filters
|
||||
|
@ -539,6 +585,9 @@ declare module "ifilterable" {
|
|||
}
|
||||
}
|
||||
declare module "visualDescriptor" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as models from 'powerbi-models';
|
||||
import { IFilterable } from "ifilterable";
|
||||
import { IPageNode } from "page";
|
||||
|
@ -593,6 +642,9 @@ declare module "visualDescriptor" {
|
|||
* @type {IPageNode}
|
||||
*/
|
||||
page: IPageNode;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(page: IPageNode, name: string, title: string, type: string, layout: models.IVisualLayout);
|
||||
/**
|
||||
* Gets all visual level filters of the current visual.
|
||||
|
@ -682,6 +734,9 @@ declare module "visualDescriptor" {
|
|||
}
|
||||
}
|
||||
declare module "page" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import { IFilterable } from "ifilterable";
|
||||
import { IReportNode } from "report";
|
||||
import { VisualDescriptor } from "visualDescriptor";
|
||||
|
@ -755,6 +810,7 @@ declare module "page" {
|
|||
* @param {string} [displayName]
|
||||
* @param {boolean} [isActivePage]
|
||||
* @param {models.SectionVisibility} [visibility]
|
||||
* @hidden
|
||||
*/
|
||||
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: models.SectionVisibility, defaultSize?: models.ICustomPageSize, defaultDisplayOption?: models.DisplayOption);
|
||||
/**
|
||||
|
@ -825,6 +881,9 @@ declare module "page" {
|
|||
}
|
||||
}
|
||||
declare module "report" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as embed from "embed";
|
||||
import * as models from 'powerbi-models';
|
||||
|
@ -853,11 +912,17 @@ declare module "report" {
|
|||
* @implements {IFilterable}
|
||||
*/
|
||||
export class Report extends embed.Embed implements IReportNode, IFilterable {
|
||||
/** @hidden */
|
||||
static allowedEvents: string[];
|
||||
/** @hidden */
|
||||
static reportIdAttribute: string;
|
||||
/** @hidden */
|
||||
static filterPaneEnabledAttribute: string;
|
||||
/** @hidden */
|
||||
static navContentPaneEnabledAttribute: string;
|
||||
/** @hidden */
|
||||
static typeAttribute: string;
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
bookmarksManager: BookmarksManager;
|
||||
/**
|
||||
|
@ -866,6 +931,7 @@ declare module "report" {
|
|||
* @param {service.Service} service
|
||||
* @param {HTMLElement} element
|
||||
* @param {embed.IEmbedConfiguration} config
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, element: HTMLElement, baseConfig: embed.IEmbedConfigurationBase, phasedRender?: boolean, isBootstrap?: boolean, iframe?: HTMLIFrameElement);
|
||||
/**
|
||||
|
@ -877,6 +943,7 @@ declare module "report" {
|
|||
* @static
|
||||
* @param {string} url
|
||||
* @returns {string}
|
||||
* @hidden
|
||||
*/
|
||||
static findIdFromEmbedUrl(url: string): string;
|
||||
/**
|
||||
|
@ -1019,6 +1086,10 @@ declare module "report" {
|
|||
* @returns {void}
|
||||
*/
|
||||
configChanged(isBootstrap: boolean): void;
|
||||
/**
|
||||
* @hidden
|
||||
* @returns {string}
|
||||
*/
|
||||
getDefaultEmbedUrlEndpoint(): string;
|
||||
/**
|
||||
* Switch Report view mode.
|
||||
|
@ -1060,15 +1131,34 @@ declare module "report" {
|
|||
* ```
|
||||
*/
|
||||
resetTheme(): Promise<void>;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private applyThemeInternal(theme);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private viewModeToString(viewMode);
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private isMobileSettings(settings);
|
||||
}
|
||||
}
|
||||
declare module "create" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as models from 'powerbi-models';
|
||||
import * as embed from "embed";
|
||||
/**
|
||||
* A Power BI Report creator component
|
||||
*
|
||||
* @export
|
||||
* @class Create
|
||||
* @extends {embed.Embed}
|
||||
*/
|
||||
export class Create extends embed.Embed {
|
||||
constructor(service: service.Service, element: HTMLElement, config: embed.IEmbedConfiguration, phasedRender?: boolean, isBootstrap?: boolean);
|
||||
/**
|
||||
|
@ -1087,6 +1177,10 @@ declare module "create" {
|
|||
* @returns {void}
|
||||
*/
|
||||
configChanged(isBootstrap: boolean): void;
|
||||
/**
|
||||
* @hidden
|
||||
* @returns {string}
|
||||
*/
|
||||
getDefaultEmbedUrlEndpoint(): string;
|
||||
/**
|
||||
* checks if the report is saved.
|
||||
|
@ -1112,6 +1206,9 @@ declare module "create" {
|
|||
}
|
||||
}
|
||||
declare module "dashboard" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as embed from "embed";
|
||||
import * as models from 'powerbi-models';
|
||||
|
@ -1136,14 +1233,19 @@ declare module "dashboard" {
|
|||
* @implements {IFilterable}
|
||||
*/
|
||||
export class Dashboard extends embed.Embed implements IDashboardNode {
|
||||
/** @hidden */
|
||||
static allowedEvents: string[];
|
||||
/** @hidden */
|
||||
static dashboardIdAttribute: string;
|
||||
/** @hidden */
|
||||
static typeAttribute: string;
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
/**
|
||||
* 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);
|
||||
|
@ -1170,18 +1272,26 @@ declare module "dashboard" {
|
|||
validate(baseConfig: embed.IEmbedConfigurationBase): models.IError[];
|
||||
/**
|
||||
* Handle config changes.
|
||||
*
|
||||
* @hidden
|
||||
* @returns {void}
|
||||
*/
|
||||
configChanged(isBootstrap: boolean): void;
|
||||
/**
|
||||
* @hidden
|
||||
* @returns {string}
|
||||
*/
|
||||
getDefaultEmbedUrlEndpoint(): string;
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
declare module "tile" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as models from 'powerbi-models';
|
||||
import * as embed from "embed";
|
||||
|
@ -1193,8 +1303,13 @@ declare module "tile" {
|
|||
* @extends {Embed}
|
||||
*/
|
||||
export class Tile extends embed.Embed {
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
/** @hidden */
|
||||
static allowedEvents: string[];
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, element: HTMLElement, baseConfig: embed.IEmbedConfigurationBase, phasedRender?: boolean, isBootstrap?: boolean);
|
||||
/**
|
||||
* The ID of the tile
|
||||
|
@ -1212,6 +1327,10 @@ declare module "tile" {
|
|||
* @returns {void}
|
||||
*/
|
||||
configChanged(isBootstrap: boolean): void;
|
||||
/**
|
||||
* @hidden
|
||||
* @returns {string}
|
||||
*/
|
||||
getDefaultEmbedUrlEndpoint(): string;
|
||||
/**
|
||||
* Adds the ability to get tileId from url.
|
||||
|
@ -1225,6 +1344,9 @@ declare module "tile" {
|
|||
}
|
||||
}
|
||||
declare module "qna" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as models from 'powerbi-models';
|
||||
import * as embed from "embed";
|
||||
|
@ -1236,8 +1358,13 @@ declare module "qna" {
|
|||
* @extends {Embed}
|
||||
*/
|
||||
export class Qna extends embed.Embed {
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
/** @hidden */
|
||||
static allowedEvents: string[];
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, element: HTMLElement, config: embed.IEmbedConfigurationBase, phasedRender?: boolean, isBootstrap?: boolean);
|
||||
/**
|
||||
* The ID of the Qna embed component
|
||||
|
@ -1258,6 +1385,10 @@ declare module "qna" {
|
|||
* @returns {void}
|
||||
*/
|
||||
configChanged(isBootstrap: boolean): void;
|
||||
/**
|
||||
* @hidden
|
||||
* @returns {string}
|
||||
*/
|
||||
getDefaultEmbedUrlEndpoint(): string;
|
||||
/**
|
||||
* Validate load configuration.
|
||||
|
@ -1266,6 +1397,9 @@ declare module "qna" {
|
|||
}
|
||||
}
|
||||
declare module "visual" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as embed from "embed";
|
||||
import * as models from 'powerbi-models';
|
||||
|
@ -1278,8 +1412,11 @@ declare module "visual" {
|
|||
* @class Visual
|
||||
*/
|
||||
export class Visual extends Report {
|
||||
/** @hidden */
|
||||
static type: string;
|
||||
/** @hidden */
|
||||
static GetPagesNotSupportedError: string;
|
||||
/** @hidden */
|
||||
static SetPageNotSupportedError: string;
|
||||
/**
|
||||
* Creates an instance of a Power BI Single Visual.
|
||||
|
@ -1287,6 +1424,7 @@ declare module "visual" {
|
|||
* @param {service.Service} service
|
||||
* @param {HTMLElement} element
|
||||
* @param {embed.IEmbedConfiguration} config
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, element: HTMLElement, baseConfig: embed.IEmbedConfigurationBase, phasedRender?: boolean, isBootstrap?: boolean, iframe?: HTMLIFrameElement);
|
||||
load(baseConfig: embed.IEmbedConfigurationBase, phasedRender?: boolean): Promise<void>;
|
||||
|
@ -1347,10 +1485,16 @@ declare module "visual" {
|
|||
* @returns {Promise<void>}
|
||||
*/
|
||||
removeFilters(filtersLevel?: models.FiltersLevel): Promise<void>;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
private getFiltersLevelUrl(filtersLevel);
|
||||
}
|
||||
}
|
||||
declare module "service" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as embed from "embed";
|
||||
import * as wpmp from 'window-post-message-proxy';
|
||||
import * as hpm from 'http-post-message';
|
||||
|
@ -1361,18 +1505,33 @@ declare module "service" {
|
|||
name: string;
|
||||
value: T;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface ICustomEvent<T> extends CustomEvent {
|
||||
detail: T;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface IEventHandler<T> {
|
||||
(event: ICustomEvent<T>): any;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface IHpmFactory {
|
||||
(wpmp: wpmp.WindowPostMessageProxy, targetWindow?: Window, version?: string, type?: string, origin?: string): hpm.HttpPostMessage;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface IWpmpFactory {
|
||||
(name?: string, logMessages?: boolean, eventSourceOverrideWindow?: Window): wpmp.WindowPostMessageProxy;
|
||||
}
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export interface IRouterFactory {
|
||||
(wpmp: wpmp.WindowPostMessageProxy): router.Router;
|
||||
}
|
||||
|
@ -1412,15 +1571,20 @@ declare module "service" {
|
|||
* Gets or sets the access token as the global fallback token to use when a local token is not provided for a report or tile.
|
||||
*
|
||||
* @type {string}
|
||||
* @hidden
|
||||
*/
|
||||
accessToken: string;
|
||||
/**The Configuration object for the service*/
|
||||
private config;
|
||||
/** A list of Dashboard, Report and Tile components that have been embedded using this service instance. */
|
||||
private embeds;
|
||||
/** TODO: Look for way to make hpm private without sacraficing ease of maitenance. This should be private but in embed needs to call methods. */
|
||||
/** TODO: Look for way to make hpm private without sacraficing ease of maitenance. This should be private but in embed needs to call methods.
|
||||
* @hidden
|
||||
*/
|
||||
hpm: hpm.HttpPostMessage;
|
||||
/** TODO: Look for way to make wpmp private. This is only public to allow stopping the wpmp in tests */
|
||||
/** TODO: Look for way to make wpmp private. This is only public to allow stopping the wpmp in tests
|
||||
* @hidden
|
||||
*/
|
||||
wpmp: wpmp.WindowPostMessageProxy;
|
||||
private router;
|
||||
private uniqueSessionId;
|
||||
|
@ -1431,6 +1595,7 @@ declare module "service" {
|
|||
* @param {IWpmpFactory} wpmpFactory The window post message factory used in the postMessage communication layer
|
||||
* @param {IRouterFactory} routerFactory The router factory used in the postMessage communication layer
|
||||
* @param {IServiceConfiguration} [config={}]
|
||||
* @hidden
|
||||
*/
|
||||
constructor(hpmFactory: IHpmFactory, wpmpFactory: IWpmpFactory, routerFactory: IRouterFactory, config?: IServiceConfiguration);
|
||||
/**
|
||||
|
@ -1486,6 +1651,7 @@ declare module "service" {
|
|||
* @param {IPowerBiElement} element
|
||||
* @param {embed.IEmbedConfigurationBase} config
|
||||
* @returns {embed.Embed}
|
||||
* @hidden
|
||||
*/
|
||||
private embedNew(element, config, phasedRender?, isBootstrap?);
|
||||
/**
|
||||
|
@ -1495,6 +1661,7 @@ declare module "service" {
|
|||
* @param {IPowerBiElement} element
|
||||
* @param {embed.IEmbedConfigurationBase} config
|
||||
* @returns {embed.Embed}
|
||||
* @hidden
|
||||
*/
|
||||
private embedExisting(element, config, phasedRender?);
|
||||
/**
|
||||
|
@ -1538,6 +1705,7 @@ declare module "service" {
|
|||
*
|
||||
* @private
|
||||
* @param {IEvent<any>} event
|
||||
* @hidden
|
||||
*/
|
||||
private handleEvent(event);
|
||||
/**
|
||||
|
@ -1552,6 +1720,9 @@ declare module "service" {
|
|||
}
|
||||
}
|
||||
declare module "bookmarksManager" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as embed from "embed";
|
||||
import * as models from 'powerbi-models';
|
||||
|
@ -1579,6 +1750,9 @@ declare module "bookmarksManager" {
|
|||
private service;
|
||||
private config;
|
||||
private iframe;
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
constructor(service: service.Service, config: embed.IEmbedConfigurationBase, iframe?: HTMLIFrameElement);
|
||||
/**
|
||||
* Gets bookmarks that are defined in the report.
|
||||
|
@ -1595,7 +1769,7 @@ declare module "bookmarksManager" {
|
|||
*/
|
||||
getBookmarks(): Promise<models.IReportBookmark[]>;
|
||||
/**
|
||||
* Apply bookmark By name.
|
||||
* Apply bookmark by name.
|
||||
*
|
||||
* ```javascript
|
||||
* bookmarksManager.apply(bookmarkName)
|
||||
|
@ -1629,7 +1803,7 @@ declare module "bookmarksManager" {
|
|||
* Apply bookmark state.
|
||||
*
|
||||
* ```javascript
|
||||
* bookmarksManager.applyState(bookmarkName)
|
||||
* bookmarksManager.applyState(bookmarkState)
|
||||
* ```
|
||||
*
|
||||
* @returns {Promise<void>}
|
||||
|
@ -1640,6 +1814,7 @@ declare module "bookmarksManager" {
|
|||
declare module "factories" {
|
||||
/**
|
||||
* TODO: Need to find better place for these factory functions or refactor how we handle dependency injection
|
||||
* @hidden
|
||||
*/
|
||||
import { IHpmFactory, IWpmpFactory, IRouterFactory } from "service";
|
||||
export { IHpmFactory, IWpmpFactory, IRouterFactory };
|
||||
|
@ -1648,6 +1823,9 @@ declare module "factories" {
|
|||
export const routerFactory: IRouterFactory;
|
||||
}
|
||||
declare module "powerbi-client" {
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
import * as service from "service";
|
||||
import * as factories from "factories";
|
||||
import * as models from 'powerbi-models';
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -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",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @hidden
|
||||
*/
|
||||
const config = {
|
||||
version: '2.10.4',
|
||||
version: '2.11.0',
|
||||
type: 'js'
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче