@omnia/fx-models 8.0.390-dev → 8.0.392-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { guid, ThemeTargetMapping } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { types } from "typestyle";
3
- import { LanguageSettings, LegacyTheming, ThemeSelection, VersionedLayoutId } from ".";
3
+ import { ActionDefinition, LanguageSettings, LegacyTheming, ThemeSelection, VersionedLayoutId } from ".";
4
4
  import { LegacyThemeType } from "./Enums";
5
5
  import { MultilingualString } from "./MultilingualString";
6
6
  import { IOmniaPropertyBag, OmniaNamedModel } from "./NamedProperty";
@@ -108,7 +108,7 @@ export interface IBusinessProfileCreation {
108
108
  onNavigateBusinessProfile?: (businessProfile: BusinessProfile) => Promise<void>;
109
109
  elementToRender?: () => JSX.Element;
110
110
  bladeToRender?: () => JSX.Element;
111
- actionButtonToRender?: (onClickEvent: (bladeId?: guid) => void) => JSX.Element;
111
+ actionButtonToRender?: (onClickEvent: (bladeId?: guid) => void) => ActionDefinition;
112
112
  }
113
113
  export interface IBusinessProfileRegistrationApi {
114
114
  register(handler: IBusinessProfileCreation): void;
@@ -6,6 +6,12 @@ export interface ActionDefinition {
6
6
  disabled?: boolean;
7
7
  loading?: boolean;
8
8
  icon: IIcon;
9
+ type?: "default" | "switch";
9
10
  onClick?: () => void;
10
11
  colorSchemaType?: ColorSchemaTypes | ColorSchemaType;
11
12
  }
13
+ export interface ActionSwitchDefinition extends ActionDefinition {
14
+ type: "switch";
15
+ value?: any;
16
+ onValueChanged?: (value: any) => void;
17
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.390-dev",
4
+ "version": "8.0.392-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"