@omnia/fx-models 8.0.31-dev → 8.0.32-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/Layout.d.ts +4 -0
- package/package.json +1 -1
- package/ux/LayoutCanvasApi.d.ts +22 -7
- package/ux/index.d.ts +1 -1
package/Layout.d.ts
CHANGED
|
@@ -543,3 +543,7 @@ export interface ILayoutFileContext {
|
|
|
543
543
|
default: FilePickerStorageProviderContext;
|
|
544
544
|
getContextByType: (type: new () => LayoutContextType) => FilePickerStorageProviderContext;
|
|
545
545
|
}
|
|
546
|
+
export interface LayoutPlaceHolderRegistration {
|
|
547
|
+
id: GuidValue;
|
|
548
|
+
title: string;
|
|
549
|
+
}
|
package/package.json
CHANGED
package/ux/LayoutCanvasApi.d.ts
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
1
|
import { ApiPath } from "../Extends";
|
|
2
|
-
import { LayoutTemplateRegistration } from "../Layout";
|
|
2
|
+
import { LayoutPlaceHolderRegistration, LayoutTemplateRegistration } from "../Layout";
|
|
3
3
|
import { IMessageBusTopicSubscription } from "../Messaging";
|
|
4
|
-
export interface
|
|
4
|
+
export interface IInternalLayoutTemplateRegistration extends ILayoutTemplateRegistration {
|
|
5
5
|
getAllLayoutTemplates: () => LayoutTemplateRegistration[];
|
|
6
6
|
onLayoutTemplateRegistrationChange: () => IMessageBusTopicSubscription<LayoutTemplateRegistration[]>;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface ILayoutTemplateRegistration {
|
|
9
9
|
registerLayoutTemplates: (items: LayoutTemplateRegistration | LayoutTemplateRegistration[]) => void;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
11
|
+
export interface IInternalPlaceHolderLayoutRegistration extends IPlaceHolderLayoutRegistration {
|
|
12
|
+
getRegistrations: () => LayoutPlaceHolderRegistration[];
|
|
13
|
+
}
|
|
14
|
+
export interface IPlaceHolderLayoutRegistration {
|
|
15
|
+
register: (placeHolder: LayoutPlaceHolderRegistration) => void;
|
|
13
16
|
}
|
|
14
17
|
declare module "./UxApi" {
|
|
15
18
|
interface IOmniaUxApi {
|
|
16
|
-
layoutCanvas:
|
|
19
|
+
layoutCanvas: {
|
|
20
|
+
placeHolders: {
|
|
21
|
+
registrations: Promise<IPlaceHolderLayoutRegistration>;
|
|
22
|
+
};
|
|
23
|
+
templates: {
|
|
24
|
+
registrations: Promise<ILayoutTemplateRegistration>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
17
27
|
}
|
|
18
28
|
interface IOmniaUxExtendApiManifest {
|
|
19
29
|
layoutCanvas: {
|
|
20
|
-
|
|
30
|
+
placeHolders: {
|
|
31
|
+
registrations: ApiPath;
|
|
32
|
+
};
|
|
33
|
+
templates: {
|
|
34
|
+
registrations: ApiPath;
|
|
35
|
+
};
|
|
21
36
|
};
|
|
22
37
|
}
|
|
23
38
|
}
|
package/ux/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from "./LayoutEditorCanvas";
|
|
|
3
3
|
export * from "./UxApi";
|
|
4
4
|
export * from "./AdminApi";
|
|
5
5
|
export * from "./MediaPickerApi";
|
|
6
|
-
export type { IRegistrationLayoutTemplate } from "./LayoutCanvasApi";
|
|
6
|
+
export type { ILayoutTemplateRegistration as IRegistrationLayoutTemplate } from "./LayoutCanvasApi";
|
|
7
7
|
export * from "./EnterprisePropertyDataTypeProviderApi";
|
|
8
8
|
export * from "./LikeActionApi";
|
|
9
9
|
export * from "./AppApi";
|