@omnia/fx-models 8.0.510-dev → 8.0.511-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.
package/Contexts.d.ts CHANGED
@@ -79,6 +79,7 @@ export interface JourneyBladeRoute {
79
79
  }
80
80
  export interface JourneyBladeRouter<T extends JourneyBladeRoute = {}> {
81
81
  id: guid;
82
+ type: "blade" | "place-holder";
82
83
  route: T;
83
84
  }
84
85
  export interface AdminRoute extends TokenBasedRoute {
package/Enums.d.ts CHANGED
@@ -414,7 +414,8 @@ export declare enum LayoutEditorModes {
414
414
  designPreview = 1,
415
415
  devicePreview = 2
416
416
  }
417
- export type LayoutCanvasMode = "design" | "write" | "preview";
417
+ export type LayoutCanvasEditorMode = "design" | "design-preview" | "preview";
418
+ export type LayoutCanvasMode = "edit" | "read-only";
418
419
  export declare enum LayoutItemActions {
419
420
  move = 0,
420
421
  copy = 1,
@@ -1,5 +1,18 @@
1
1
  import { VNodeChild } from "vue";
2
2
  import { guid, IIcon } from "@omnia/fx-models";
3
+ import { ConfirmDialogOptions } from "@omnia/fx/ux";
4
+ export interface EditorChromePanel {
5
+ title?: string;
6
+ icon?: IIcon;
7
+ renderer?: () => Array<JSX.Element> | JSX.Element;
8
+ actions?: Array<ChromeActionItem>;
9
+ footerToolbar?: {
10
+ actionsLeft?: Array<ChromeActionItem>;
11
+ actionsCenter?: Array<ChromeActionItem>;
12
+ actionsRight?: Array<ChromeActionItem>;
13
+ ExtendActionsRight?: Array<ChromeActionItem>;
14
+ };
15
+ }
3
16
  export interface EditorChromeNavigationConfiguration {
4
17
  title?: string;
5
18
  renderer?: () => Array<JSX.Element> | JSX.Element;
@@ -15,6 +28,7 @@ export interface EditorChromeConfiguration {
15
28
  hidden?: boolean;
16
29
  icon?: IIcon;
17
30
  journey?: boolean;
31
+ onActivated?: () => void;
18
32
  focused?: boolean;
19
33
  settings?: {
20
34
  displayResizable?: boolean;
@@ -47,8 +61,11 @@ export interface ChromeActionItem {
47
61
  showText?: boolean;
48
62
  hide?: boolean;
49
63
  };
64
+ confirmation?: ConfirmDialogOptions;
50
65
  requiredRoles?: guid[];
51
- title?: string;
66
+ excludedRoles?: guid[];
67
+ title?: string | (() => string);
68
+ toolTip?: string | (() => string);
52
69
  description?: string;
53
70
  loading?: boolean | (() => boolean);
54
71
  icon?: IIcon;
@@ -1,4 +1,4 @@
1
- import { guid, Id } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
1
+ import { guid, Id, IIcon } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
2
2
  import { LegacyIconPickerModel } from "../shared-mobile/Icon";
3
3
  export type LinkProviderId = Id<guid, "LinkProviderId">;
4
4
  export declare function LinkProviderId(id: guid): LinkProviderId;
@@ -10,3 +10,11 @@ export interface LinkItem {
10
10
  icon: LegacyIconPickerModel;
11
11
  openInNewWindow: boolean;
12
12
  }
13
+ export interface LinkItemV2 {
14
+ providerId: LinkProviderId;
15
+ title: string;
16
+ url: string;
17
+ icon?: IIcon;
18
+ openInNewWindow?: boolean;
19
+ customRendererManifestId?: guid;
20
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.510-dev",
4
+ "version": "8.0.511-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,6 +19,10 @@ class FontAwesomeIcon {
19
19
  if (!force && this.faClass.indexOf(" ") === -1) {
20
20
  return;
21
21
  }
22
+ /**Brand icons cannot have different styles */
23
+ if (this.faClass.indexOf("fa-brands") > -1) {
24
+ return;
25
+ }
22
26
  if (style === "solid") {
23
27
  this.setIconStyle("fas");
24
28
  }