@omnia/fx-models 8.0.283-dev → 8.0.285-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/action-btn/ActionButtonLayoutSettings.d.ts +9 -1
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +1 -0
- package/package.json +1 -1
- package/ux/AppScopedLayoutProviderApi.d.ts +16 -0
- package/ux/AppScopedLayoutProviderApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
@@ -1,8 +1,16 @@
|
|
1
1
|
import { IActionHandlerSettings } from "../ActionHandler";
|
2
|
-
import { Layout, LayoutActionOpenType } from "@omnia/fx-models";
|
2
|
+
import { Layout, LayoutActionOpenType, VersionedLayoutId } from "@omnia/fx-models";
|
3
3
|
export interface ActionButtonLayoutSettings extends IActionHandlerSettings {
|
4
|
+
/**
|
5
|
+
* only set if useAppScoped = false
|
6
|
+
*/
|
4
7
|
layout: Layout;
|
5
8
|
openType: LayoutActionOpenType;
|
9
|
+
useAppScoped?: boolean;
|
6
10
|
width?: string;
|
7
11
|
height?: string;
|
12
|
+
/**
|
13
|
+
* if useAppScoped : true , reuse version layout from app scope otherwise use layout properties
|
14
|
+
*/
|
15
|
+
versionLayoutId?: VersionedLayoutId;
|
8
16
|
}
|
package/package.json
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ApiPath } from "../Extends";
|
2
|
+
import { VersionedLayout } from "../versionedlayout";
|
3
|
+
export interface InternalAppScopedLayoutProvider extends IAppScopedLayoutProvider {
|
4
|
+
getAllLayouts: () => VersionedLayout[];
|
5
|
+
}
|
6
|
+
export interface IAppScopedLayoutProvider {
|
7
|
+
registerLayouts: (...layout: VersionedLayout[]) => void;
|
8
|
+
}
|
9
|
+
declare module "./UxApi" {
|
10
|
+
interface IOmniaUxApi {
|
11
|
+
appLayoutProvider: Promise<IAppScopedLayoutProvider>;
|
12
|
+
}
|
13
|
+
interface IOmniaUxExtendApiManifest {
|
14
|
+
appLayoutProvider: ApiPath;
|
15
|
+
}
|
16
|
+
}
|
package/ux/index.d.ts
CHANGED
@@ -26,4 +26,5 @@ export * from "./FlowEditorApi";
|
|
26
26
|
export * from "./FontApi";
|
27
27
|
export * from "./LinkPickerApi";
|
28
28
|
export * from "./LinkItemHandlerApi";
|
29
|
+
export * from "./AppScopedLayoutProviderApi";
|
29
30
|
export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
|
package/ux/index.js
CHANGED
@@ -29,3 +29,4 @@ tslib_1.__exportStar(require("./FlowEditorApi"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./FontApi"), exports);
|
30
30
|
tslib_1.__exportStar(require("./LinkPickerApi"), exports);
|
31
31
|
tslib_1.__exportStar(require("./LinkItemHandlerApi"), exports);
|
32
|
+
tslib_1.__exportStar(require("./AppScopedLayoutProviderApi"), exports);
|