diff --git a/templates/visuals/default/package.json b/templates/visuals/default/package.json index ad2a4aa9..dff832ab 100644 --- a/templates/visuals/default/package.json +++ b/templates/visuals/default/package.json @@ -17,7 +17,7 @@ "@types/d3": "7.4.0", "d3": "7.8.5", "powerbi-visuals-api": "5.4.0", - "powerbi-visuals-utils-formattingmodel": "5.0.0" + "powerbi-visuals-utils-formattingmodel": "6.0.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.59.11", diff --git a/templates/visuals/default/src/settings.ts b/templates/visuals/default/src/settings.ts index 848b5cfe..637d6e15 100644 --- a/templates/visuals/default/src/settings.ts +++ b/templates/visuals/default/src/settings.ts @@ -28,7 +28,7 @@ import { formattingSettings } from "powerbi-visuals-utils-formattingmodel"; -import FormattingSettingsCard = formattingSettings.Card; +import FormattingSettingsCard = formattingSettings.SimpleCard; import FormattingSettingsSlice = formattingSettings.Slice; import FormattingSettingsModel = formattingSettings.Model; diff --git a/templates/visuals/default/src/visual.ts b/templates/visuals/default/src/visual.ts index 11b5f030..7e50893f 100644 --- a/templates/visuals/default/src/visual.ts +++ b/templates/visuals/default/src/visual.ts @@ -59,7 +59,7 @@ export class Visual implements IVisual { } public update(options: VisualUpdateOptions) { - this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews); + this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews[0]); console.log('Visual update', options); if (this.textNode) { diff --git a/templates/visuals/rhtml/package.json b/templates/visuals/rhtml/package.json index e5895e06..11c946e9 100644 --- a/templates/visuals/rhtml/package.json +++ b/templates/visuals/rhtml/package.json @@ -1,7 +1,7 @@ { "name": "visual", "dependencies": { - "powerbi-visuals-utils-formattingmodel": "5.0.0" + "powerbi-visuals-utils-formattingmodel": "6.0.0" }, "devDependencies": { "powerbi-visuals-api": "5.4.0", diff --git a/templates/visuals/rhtml/src/settings.ts b/templates/visuals/rhtml/src/settings.ts index 688c6f39..db2248e0 100644 --- a/templates/visuals/rhtml/src/settings.ts +++ b/templates/visuals/rhtml/src/settings.ts @@ -28,7 +28,7 @@ import { formattingSettings } from "powerbi-visuals-utils-formattingmodel"; -import FormattingSettingsCard = formattingSettings.Card; +import FormattingSettingsCard = formattingSettings.SimpleCard; import FormattingSettingsSlice = formattingSettings.Slice; import FormattingSettingsModel = formattingSettings.Model; diff --git a/templates/visuals/rhtml/src/visual.ts b/templates/visuals/rhtml/src/visual.ts index 6221a562..e77acfa8 100644 --- a/templates/visuals/rhtml/src/visual.ts +++ b/templates/visuals/rhtml/src/visual.ts @@ -111,7 +111,7 @@ export class Visual implements IVisual { } const dataView: DataView = options.dataViews[0]; - this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews); + this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews[0]); let payloadBase64: string = null; if (dataView.scriptResult && dataView.scriptResult.payloadBase64) { diff --git a/templates/visuals/rvisual/package.json b/templates/visuals/rvisual/package.json index 124c47d2..80317af5 100644 --- a/templates/visuals/rvisual/package.json +++ b/templates/visuals/rvisual/package.json @@ -1,7 +1,7 @@ { "name": "visual", "dependencies": { - "powerbi-visuals-utils-formattingmodel": "5.0.0" + "powerbi-visuals-utils-formattingmodel": "6.0.0" }, "devDependencies": { "powerbi-visuals-api": "5.4.0", diff --git a/templates/visuals/rvisual/src/settings.ts b/templates/visuals/rvisual/src/settings.ts index 688c6f39..db2248e0 100644 --- a/templates/visuals/rvisual/src/settings.ts +++ b/templates/visuals/rvisual/src/settings.ts @@ -28,7 +28,7 @@ import { formattingSettings } from "powerbi-visuals-utils-formattingmodel"; -import FormattingSettingsCard = formattingSettings.Card; +import FormattingSettingsCard = formattingSettings.SimpleCard; import FormattingSettingsSlice = formattingSettings.Slice; import FormattingSettingsModel = formattingSettings.Model; diff --git a/templates/visuals/rvisual/src/visual.ts b/templates/visuals/rvisual/src/visual.ts index b6802cab..671cc9ce 100644 --- a/templates/visuals/rvisual/src/visual.ts +++ b/templates/visuals/rvisual/src/visual.ts @@ -63,7 +63,7 @@ export class Visual implements IVisual { } const dataView: DataView = options.dataViews[0]; - this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews); + this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews[0]); let imageUrl: string = null; if (dataView.scriptResult && dataView.scriptResult.payloadBase64) { diff --git a/templates/visuals/slicer/package.json b/templates/visuals/slicer/package.json index 24aaff94..adc37b6c 100644 --- a/templates/visuals/slicer/package.json +++ b/templates/visuals/slicer/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "d3": "7.8.5", - "powerbi-visuals-utils-formattingmodel": "5.0.0" + "powerbi-visuals-utils-formattingmodel": "6.0.0" }, "devDependencies": { "@types/d3": "7.4.0", diff --git a/templates/visuals/slicer/src/settings.ts b/templates/visuals/slicer/src/settings.ts index 286112ee..8c7f02a6 100644 --- a/templates/visuals/slicer/src/settings.ts +++ b/templates/visuals/slicer/src/settings.ts @@ -28,7 +28,7 @@ import { formattingSettings } from "powerbi-visuals-utils-formattingmodel"; -import FormattingSettingsCard = formattingSettings.Card; +import FormattingSettingsCard = formattingSettings.SimpleCard; import FormattingSettingsSlice = formattingSettings.Slice; import FormattingSettingsModel = formattingSettings.Model; diff --git a/templates/visuals/slicer/src/visual.ts b/templates/visuals/slicer/src/visual.ts index be05cfb8..1bce47d6 100644 --- a/templates/visuals/slicer/src/visual.ts +++ b/templates/visuals/slicer/src/visual.ts @@ -59,7 +59,7 @@ export class Visual implements IVisual { } public update(options: VisualUpdateOptions) { - this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews); + this.formattingSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualFormattingSettingsModel, options.dataViews[0]); console.log("Visual update", options); if (this.textNode) { this.textNode.textContent = (this.updateCount++).toString(); diff --git a/templates/visuals/table/package.json b/templates/visuals/table/package.json index cc963bb2..0ac78c9a 100644 --- a/templates/visuals/table/package.json +++ b/templates/visuals/table/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "d3": "7.8.5", - "powerbi-visuals-utils-formattingmodel": "5.0.0" + "powerbi-visuals-utils-formattingmodel": "6.0.0" }, "devDependencies": { "powerbi-visuals-api": "5.4.0",