@omnia/fx-models 8.0.289-dev → 8.0.291-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/Constants.d.ts CHANGED
@@ -31,6 +31,7 @@ export declare const Constants: {
31
31
  testdata: guid;
32
32
  keyboardEvents: guid;
33
33
  editorEvents: guid;
34
+ link: guid;
34
35
  };
35
36
  };
36
37
  filterEngine: {
package/Constants.js CHANGED
@@ -36,6 +36,7 @@ exports.Constants = {
36
36
  testdata: (0, models_1.guid)("ff9021ea-9a0f-424a-8c38-ae56849013cc"),
37
37
  keyboardEvents: (0, models_1.guid)("97fd7ca7-2c64-473e-b327-5225aeabe54f"),
38
38
  editorEvents: (0, models_1.guid)("6ad1cfa0-7ca1-430e-b381-f3a9a62dad51"),
39
+ link: (0, models_1.guid)("ffd2b3fb-8590-4030-8aae-c7b78c231bd9")
39
40
  }
40
41
  },
41
42
  filterEngine: {
package/Exposes.d.ts CHANGED
@@ -128,7 +128,7 @@ export * from "./enterprise-glossary";
128
128
  export * from "./enterprise-properties";
129
129
  export * from "./filterengine";
130
130
  export * from "./identities";
131
- export * from "./linkstatus";
131
+ export * from "./links";
132
132
  export * from "./media-gallery";
133
133
  export * from "./mediaflow";
134
134
  export * from "./omniasearch";
package/Exposes.js CHANGED
@@ -140,7 +140,7 @@ tslib_1.__exportStar(require("./enterprise-glossary"), exports);
140
140
  tslib_1.__exportStar(require("./enterprise-properties"), exports);
141
141
  tslib_1.__exportStar(require("./filterengine"), exports);
142
142
  tslib_1.__exportStar(require("./identities"), exports);
143
- tslib_1.__exportStar(require("./linkstatus"), exports);
143
+ tslib_1.__exportStar(require("./links"), exports);
144
144
  tslib_1.__exportStar(require("./media-gallery"), exports);
145
145
  tslib_1.__exportStar(require("./mediaflow"), exports);
146
146
  tslib_1.__exportStar(require("./omniasearch"), exports);
package/Icon.js CHANGED
@@ -37,9 +37,11 @@ class FontAwesomeIcon {
37
37
  return this;
38
38
  }
39
39
  setDefaultIconStyle() {
40
- const split = this.faClass.split(" ");
41
- if (this.faClass.split(" ").length === 1) {
42
- this.setIconStyle("fa-duotone");
40
+ if (this.faClass) {
41
+ const split = this.faClass.split(" ");
42
+ if (split.length === 1) {
43
+ this.setIconStyle("fa-duotone");
44
+ }
43
45
  }
44
46
  }
45
47
  setIconStyle(style) {
@@ -1,3 +1,4 @@
1
+ import { FlowEditorPlugin } from "@omnia/fx/ux";
1
2
  import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
3
  export interface FlowEditorPluginRegistration {
3
4
  id: guid;
@@ -5,5 +6,5 @@ export interface FlowEditorPluginRegistration {
5
6
  altText?: string;
6
7
  hidden?: boolean;
7
8
  mandatory?: boolean;
8
- plugin: (settings: any) => any;
9
+ plugin: (settings: any) => FlowEditorPlugin;
9
10
  }
@@ -60,7 +60,7 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
60
60
  icon?: any;
61
61
  }
62
62
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
63
- export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver";
63
+ export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver" | "link-resolver";
64
64
  export type EditorLocation = "inline" | "pane" | "toolbar";
65
65
  export interface VelcronEditor<TSettings = any> {
66
66
  name?: string;
@@ -13,6 +13,7 @@ export interface BuiltInComponentRenderers {
13
13
  "velcron": unknown;
14
14
  "flex": unknown;
15
15
  "row": unknown;
16
+ "grid": unknown;
16
17
  "column": unknown;
17
18
  "card": unknown;
18
19
  "text": unknown;
@@ -180,6 +181,13 @@ export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorSt
180
181
  height?: number | string;
181
182
  minHeight?: number | string;
182
183
  }
184
+ export interface VelcronGridDefinition extends VelcronDefinition {
185
+ type: "grid";
186
+ minColumnWidth?: number | string;
187
+ columns?: number | Array<string>;
188
+ gapX?: number | string;
189
+ gapY?: number | string;
190
+ }
183
191
  export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow {
184
192
  type: "row";
185
193
  events?: VelcronOnPressEvent;
@@ -50,6 +50,8 @@ export interface VelcronPropertyMapping {
50
50
  export interface VelcronPropertyResolverEditorSettings {
51
51
  properties: Array<VelcronPropertyMapping>;
52
52
  }
53
+ export interface VelcronLinkResolverEditorSettings {
54
+ }
53
55
  export interface VelcronBlueprintEditorSettings {
54
56
  type: "container" | "icon" | "button";
55
57
  }
@@ -113,3 +115,6 @@ export interface VelcronSelectEditor extends VelcronEditor<VelcronSelectEditorSe
113
115
  export interface VelcronPropertyResolverEditor extends VelcronEditor<VelcronPropertyResolverEditorSettings> {
114
116
  type: "property-resolver";
115
117
  }
118
+ export interface VelcronLinkResolverEditor extends VelcronEditor<VelcronLinkResolverEditorSettings> {
119
+ type: "link-resolver";
120
+ }
@@ -0,0 +1,12 @@
1
+ import { guid, Id } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
2
+ import { IconPickerModel } from "../Icon";
3
+ export type LinkProviderId = Id<guid, "LinkProviderId">;
4
+ export declare function LinkProviderId(id: guid): LinkProviderId;
5
+ export interface LinkItem {
6
+ providerId?: LinkProviderId;
7
+ linkType?: string;
8
+ title: string;
9
+ url: string;
10
+ icon: IconPickerModel;
11
+ openInNewWindow: boolean;
12
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkProviderId = LinkProviderId;
4
+ function LinkProviderId(id) { return id; }
@@ -1 +1,2 @@
1
+ export * from "./LinkItem";
1
2
  export * from "./LinkStatus";
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./LinkItem"), exports);
4
5
  tslib_1.__exportStar(require("./LinkStatus"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.289-dev",
4
+ "version": "8.0.291-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,6 +1,7 @@
1
1
  import { PropertyValue } from "../PropertyValue";
2
+ import { LinkItem } from "../../links";
2
3
  export declare class LinkPropertyValue extends PropertyValue {
3
- link: string;
4
- constructor(link: string);
4
+ link: LinkItem;
5
+ constructor(link: LinkItem);
5
6
  isEmpty(): boolean;
6
7
  }
@@ -1,5 +1,6 @@
1
- import { ApiPath } from "../Extends";
1
+ import { IExtendApiManifestWithConfiguration } from "../Extends";
2
2
  import { ILinkItemHandler } from "../../ux/models/linkpicker/LinkItemHandler";
3
+ import { LinkProviderId } from "../links";
3
4
  export interface ILinkItemHandlerRegistrationApi {
4
5
  registerLinkRenderer: (linkItemHandler: ILinkItemHandler) => boolean;
5
6
  }
@@ -11,7 +12,7 @@ declare module "./UxApi" {
11
12
  }
12
13
  interface IOmniaUxExtendApiManifest {
13
14
  linkItemHandler: {
14
- registration: ApiPath;
15
+ registration: IExtendApiManifestWithConfiguration<LinkProviderId>;
15
16
  };
16
17
  }
17
18
  }
File without changes
File without changes