@imtf/dms-core 1.1.0-beta.5 → 1.1.0-beta.6

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.
@@ -3,11 +3,11 @@ import { Entity } from "../../../providers/MdmGraph/types";
3
3
  import { FileType } from "../types";
4
4
  type DocumentListProps = {
5
5
  label?: string;
6
- type: FileType;
6
+ typeName: string;
7
7
  disabled?: boolean;
8
8
  entity?: Entity;
9
9
  errors?: string[];
10
- isTypeAssignable: boolean;
10
+ type: FileType;
11
11
  isRequired: boolean;
12
12
  documents: Inode<"dms-core.File">[];
13
13
  canDrop?: (item: Inode<"dms-core.File">[] | File[], typeName?: string) => boolean;
@@ -15,5 +15,5 @@ type DocumentListProps = {
15
15
  onDragStart?: (document: any) => void;
16
16
  onDragEnd?: (document: any) => void;
17
17
  };
18
- declare const _default: import("react").MemoExoticComponent<({ label, type, disabled, isTypeAssignable, entity, errors, isRequired, documents, canDrop: canDropOnDocuments, onDrop, onDragStart, onDragEnd, }: DocumentListProps) => import("react/jsx-runtime").JSX.Element>;
18
+ declare const _default: import("react").MemoExoticComponent<({ label, typeName, disabled, type, entity, errors, isRequired, documents, canDrop: canDropOnDocuments, onDrop, onDragStart, onDragEnd, }: DocumentListProps) => import("react/jsx-runtime").JSX.Element>;
19
19
  export default _default;
@@ -1,7 +1,9 @@
1
+ import { FileType } from "../types";
1
2
  export type DocumentsTypeProps = {
2
3
  label: string;
3
4
  disabled: boolean;
5
+ type: FileType;
4
6
  isRequired: boolean;
5
7
  };
6
- declare const DocumentListTitle: ({ disabled, label, isRequired, }: DocumentsTypeProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const DocumentListTitle: ({ disabled, type, label, isRequired, }: DocumentsTypeProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export default DocumentListTitle;
@@ -1,10 +1,10 @@
1
- import { Task } from "../../Tasks/types";
2
- import { Case } from "../types";
1
+ import { ImmutableTask } from "../../Tasks/types";
2
+ import { ImmutableCase } from "../types";
3
3
  export type CaseDocumentType = {
4
4
  canAddFile: boolean;
5
5
  canAddFileWithoutBinary: boolean;
6
6
  kind: "acm.DocumentType";
7
7
  type: string;
8
8
  };
9
- declare const useCaseDocumentTypes: (item: Case | Task | string | undefined) => import("swr").SWRResponse<CaseDocumentType[], any, any>;
9
+ declare const useCaseDocumentTypes: (item: ImmutableCase | ImmutableTask | string | undefined) => import("swr").SWRResponse<CaseDocumentType[], any, any>;
10
10
  export default useCaseDocumentTypes;
@@ -3,6 +3,7 @@ import { FormDefinition, MdmEditorDefinition } from "../../Definitions/types";
3
3
  import { Inode } from "../../Inodes/types";
4
4
  import { Entity } from "../../MdmGraph/types";
5
5
  import type { EntityDocumentsComponentProps as EntityDocumentsComponentCoreProps } from "../../../../core/containers/EntityDocuments/EntityDocumentsComponent";
6
+ import { FileType } from "../../../../core/containers/EntityDocuments/types";
6
7
  export type ComponentPluginProps<P> = P & {
7
8
  defaultRender: (props?: Partial<P>) => JSX.Element;
8
9
  };
@@ -33,15 +34,6 @@ export type EntityDocumentsDocumentProps = ComponentPluginProps<{
33
34
  caseOid?: string;
34
35
  entityOid?: string;
35
36
  }>;
36
- export type EntityDocumentsDocumentLabelProps = ComponentPluginProps<{
37
- document: Inode<"dms-core.File">;
38
- canDrag: boolean;
39
- disabled: boolean;
40
- identifier?: string;
41
- taskOid?: string;
42
- caseOid?: string;
43
- entityOid?: string;
44
- }>;
45
37
  export type CategoryFilterProps = ComponentPluginProps<{
46
38
  documents: {
47
39
  [entityOid: string]: Inode<"dms-core.File">[];
@@ -54,13 +46,22 @@ export type EntityDocumentsTypeLabelProps = ComponentPluginProps<{
54
46
  label: string;
55
47
  disabled: boolean;
56
48
  isRequired: boolean;
57
- canAddFile: boolean;
58
- canAddFileWithoutBinary: boolean;
59
49
  identifier?: string;
60
50
  taskOid?: string;
61
51
  caseOid?: string;
62
52
  entityOid?: string;
63
- type: string;
53
+ type: FileType;
54
+ documents: Inode<"dms-core.File">[];
55
+ }>;
56
+ export type EntityDocumentsDocumentLabelProps = ComponentPluginProps<{
57
+ document: Inode<"dms-core.File">;
58
+ canDrag: boolean;
59
+ disabled: boolean;
60
+ identifier?: string;
61
+ taskOid?: string;
62
+ caseOid?: string;
63
+ entityOid?: string;
64
+ type: FileType;
64
65
  documents: Inode<"dms-core.File">[];
65
66
  }>;
66
67
  export type EntitiesWrapperProps = ComponentPluginProps<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtf/dms-core",
3
- "version": "1.1.0-beta.5",
3
+ "version": "1.1.0-beta.6",
4
4
  "description": "Typings for dms-core plugin system",
5
5
  "nonNpm": true
6
6
  }