@omnia/management-system 7.8.56-preview → 7.8.58-preview

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.
@@ -0,0 +1,31 @@
1
+ import { Future, GuidValue, IExtendApiManifestWithConfiguration } from "@omnia/fx/models";
2
+ import { ControlledDocument, DraftControlledDocument } from "../../data";
3
+ import { DocumentLibraryViewType } from "./DocumentLibraryCommandButtonApi";
4
+ export interface IDocumentComponent<T extends ControlledDocument = ControlledDocument> {
5
+ documentItem: T;
6
+ }
7
+ export interface CustomRenderView {
8
+ internalName: string;
9
+ manifestId: GuidValue;
10
+ viewType: string;
11
+ }
12
+ export interface IDocumentItemCustomRender extends DraftControlledDocument {
13
+ disabled?: boolean;
14
+ hidden?: boolean;
15
+ }
16
+ export interface IDocumentItemCustomRenderFieldApi {
17
+ addCustomRenderField: (viewType: DocumentLibraryViewType, internalName: string, manifestId: GuidValue) => void;
18
+ getCustomRenderFieldsByType: (viewType: DocumentLibraryViewType) => Future<Array<CustomRenderView>>;
19
+ }
20
+ declare module "../../../apis/index" {
21
+ interface IMSApi {
22
+ documentItemCustomRender: {
23
+ registration: Promise<IDocumentItemCustomRenderFieldApi>;
24
+ };
25
+ }
26
+ interface IMSExtendApiManifest {
27
+ documentItemCustomRender: {
28
+ registration: IExtendApiManifestWithConfiguration<DocumentLibraryViewType>;
29
+ };
30
+ }
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { Future, IExtendApiManifestWithConfiguration } from "@omnia/fx/models";
2
+ import { ControlledDocument } from "../../data";
3
+ import { DocumentLibraryViewType, ICommandButton } from "./DocumentLibraryCommandButtonApi";
4
+ export interface IContextMenuButton extends ICommandButton {
5
+ onSelectionChanged?: (document: ControlledDocument) => Future<void>;
6
+ }
7
+ export interface IContextMenuButtonComponent<T extends IContextMenuButton = IContextMenuButton> {
8
+ button: T;
9
+ }
10
+ export interface IDocumentLibraryContextMenuButtonApi {
11
+ addContextMenuButton: (viewType: DocumentLibraryViewType, items: IContextMenuButton) => void;
12
+ getContextMenuButtonsByType: (viewType: DocumentLibraryViewType) => Future<Array<IContextMenuButton>>;
13
+ }
14
+ declare module "../../../apis/index" {
15
+ interface IMSApi {
16
+ documentLibraryContextMenuButton: {
17
+ registration: Promise<IDocumentLibraryContextMenuButtonApi>;
18
+ };
19
+ }
20
+ interface IMSExtendApiManifest {
21
+ documentLibraryContextMenuButton: {
22
+ registration: IExtendApiManifestWithConfiguration<DocumentLibraryViewType>;
23
+ };
24
+ }
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,5 @@ export * from "./DocumentLibraryDisplaySettings";
2
2
  export * from "./DocumentLibrarySettings";
3
3
  export * from "./DocumentLibraryViewSettings";
4
4
  export * from "./DocumentLibraryCommandButtonApi";
5
+ export * from "./DocumentLibraryContextMenuButtonApi";
6
+ export * from "./DocumentItemCustomRenderFieldApi";
@@ -5,3 +5,5 @@ tslib_1.__exportStar(require("./DocumentLibraryDisplaySettings"), exports);
5
5
  tslib_1.__exportStar(require("./DocumentLibrarySettings"), exports);
6
6
  tslib_1.__exportStar(require("./DocumentLibraryViewSettings"), exports);
7
7
  tslib_1.__exportStar(require("./DocumentLibraryCommandButtonApi"), exports);
8
+ tslib_1.__exportStar(require("./DocumentLibraryContextMenuButtonApi"), exports);
9
+ tslib_1.__exportStar(require("./DocumentItemCustomRenderFieldApi"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/management-system",
3
3
  "license": "MIT",
4
- "version": "7.8.56-preview",
4
+ "version": "7.8.58-preview",
5
5
  "description": "Omnia Management System.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"