@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 +1 -0
- package/Constants.js +1 -0
- package/Exposes.d.ts +1 -1
- package/Exposes.js +1 -1
- package/Icon.js +5 -3
- package/floweditor/FlowEditorPluginRegistration.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +8 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +5 -0
- package/links/LinkItem.d.ts +12 -0
- package/links/LinkItem.js +4 -0
- package/{linkstatus → links}/index.d.ts +1 -0
- package/{linkstatus → links}/index.js +1 -0
- package/package.json +1 -1
- package/properties/values/LinkPropertyValue.d.ts +3 -2
- package/ux/LinkItemHandlerApi.d.ts +3 -2
- /package/{linkstatus → links}/LinkStatus.d.ts +0 -0
- /package/{linkstatus → links}/LinkStatus.js +0 -0
package/Constants.d.ts
CHANGED
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 "./
|
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("./
|
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
|
-
|
41
|
-
|
42
|
-
|
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) =>
|
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;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -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
|
+
}
|
package/package.json
CHANGED
@@ -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:
|
4
|
-
constructor(link:
|
4
|
+
link: LinkItem;
|
5
|
+
constructor(link: LinkItem);
|
5
6
|
isEmpty(): boolean;
|
6
7
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
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:
|
15
|
+
registration: IExtendApiManifestWithConfiguration<LinkProviderId>;
|
15
16
|
};
|
16
17
|
}
|
17
18
|
}
|
File without changes
|
File without changes
|