Skip to content

Releases: microsoft/powerbi-visuals-utils-formattingmodel

v6.2.2

23 Sep 07:32
0b7ec92

Choose a tag to compare

Added missing disabled property to FontPicker

v6.2.1

15 Jul 12:57
60f8787

Choose a tag to compare

  • Improved type definitions and JSDoc documentation for ItemFlagsSelection and AutoFlagsSelection components
  • Added clarification that both flag selection components require bitwise values (powers of 2) for proper flag functionality

v6.2.0

11 Jul 14:25
3c96484

Choose a tag to compare

  • All Slices, Groups and Cards now can be disabled and provided with disabledReason or disabledReasonKey for localized version.
  • Container card can have Groups inside
  • Bug with delaySaveSlices was fixed for Containers
  • Localization support for AutoDropdown and ItemFlagsSelection

v6.1.1

29 Apr 10:44
395b20d

Choose a tag to compare

Fixed nullable values (#28)

v6.1.0

24 Apr 11:51
69c2755

Choose a tag to compare

  • ItemDropdown now supports new interface ILocalizedItemMember for localization of dropdown items.
  • ItemDropdown got new method setValue(value: powerbi.EnumMemberValue, localizationManager?: powerbi.extensibility.ILocalizationManager) to set value by unique enum member value.
  • Fixed empty groups exception

Full Changelog: 6.0.4...6.1.0

v6.0.4

27 Aug 08:16
ff8843c

Choose a tag to compare

What's changed

  • Fix AutoDropdown issue when accessing empty array by @shafeeqz in #26

Full changelod 6.0.3...6.0.4

v6.0.3

21 Aug 08:51
0037d1c

Choose a tag to compare

What's Changed

Full Changelog: 6.0.2...6.0.3

v6.0.2

03 Apr 09:18
7cf5ff0

Choose a tag to compare

  • powerbi-visuals-api update to 5.9.0

v6.0.1

03 Jan 13:36
9d14b10

Choose a tag to compare

  • Updated dependencies

v6.0.0

09 Oct 12:52
a78f75a

Choose a tag to compare

  1. Added support for creating custom Formatting groups
  2. Replaced topLevelToggle with topLevelSlice attribute to card and group interfaces.
  3. Added extra (optional) visible slice/card/group attribute for easier show/hide in a dynamic way
  4. Interface Card is removed. Use CompositeCard or SimpleCard instead.
    Composite card is designed to handle multiple Groups inside.
  5. Added extra (optional) visible slice/card/group attribute for easier show/hide in a dynamic way

Example:

class GroupSettings extends formattingSettings.Group { // Formatting Group
    fontSize = new formattingSettings.NumUpDown({
        name: "fontSize",
        displayName: "Text Size",
        value: 10
    });
    name: string = "font";
    displayName: string = "Font Group";
    slices: formattingSettings.Slice[] = [this.fontSize];
    visible: boolean = true // `true` by default. Group will be hidden if `visible == false`
}

class FormattingCard extends formattingSettings.SimpleCard { // Simple card example
     show = new formattingSettings.ToggleSwitch({
         name: "show",
         displayNameKey: "Visual_Show",
         value: true,
         visible: true // `true` by default. Slice will be hidden if `visible == false`
         // topLevelToggle: true - Old version of topLevelSlice
     });

    topLevelSlice: formattingSettings.SimpleSlice = this.show // New version of topLevelToggle
    name: string = "formatting";
    displayName: string = "Formatting Settings";
    groupsSettings = new GroupSettings(Object());
    groups: formattingSettings.Group[] = [this.groupsSettings];
    visible: boolean = true // `true` by default. Card will be hidden if `visible == false`
}
  1. populateFormattingSettingsModel now should receive only one dataView as second argument.
   formattingSettingsService.populateFormattingSettingsModel(Settings, options.dataViews[0])