From 771a0ba2e5761023b5fdc887d9a78df23ed4c65f Mon Sep 17 00:00:00 2001 From: Manikandan Venkatesan Date: Wed, 19 Apr 2023 16:20:23 +0530 Subject: [PATCH] API 5.4.0 (#66) * feat(filter): added isDataFilterApplied in DataViewMetadata * chore(version): updated package version * Update CHANGELOG.md --------- Co-authored-by: Asaf Mozes <37801424+AsafMozes@users.noreply.github.com> --- CHANGELOG.md | 3 +++ package-lock.json | 2 +- package.json | 2 +- src/visuals-api.d.ts | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75bc41d..ebd4282 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log - Power BI Custom Visuals API +## 5.4.0 +* Adds `isDataFilterApplied` into DataViewMetadata, to provide a boolean value of whether any applied filter affects the visual. + ## 5.3.0 * SelectionId's update-fix for matrix dataView. *Note: the selectionId's core data might change therefore a persisted selectionIds/identityIndex using an older API version might not be relevant in matrix dataView.* diff --git a/package-lock.json b/package-lock.json index e133de7..af8dc07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "powerbi-visuals-api", - "version": "5.3.0", + "version": "5.4.0", "lockfileVersion": 1, "requires": true, "packages": { diff --git a/package.json b/package.json index 7747405..09d7ab8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "powerbi-visuals-api", - "version": "5.3.0", + "version": "5.4.0", "description": "Power BI Custom Visuals API type definitions for typescript", "types": "index", "main": "index.js", diff --git a/src/visuals-api.d.ts b/src/visuals-api.d.ts index 0eeae66..e11940e 100644 --- a/src/visuals-api.d.ts +++ b/src/visuals-api.d.ts @@ -409,6 +409,9 @@ declare module powerbi { /** Contains metadata about the dataRoles */ dataRoles?: DataRolesInfo; + + /** Specifies if any filter applied affects the visual */ + isDataFilterApplied?: boolean; } export interface DataRolesInfo {