EZQMS-1393: implemented folders in controlled documents (#7803)

* EZQMS-1393: implemented folders in controlled documents

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>

* formatting

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>

---------

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2025-01-28 10:02:13 +03:00
committed by GitHub
parent f8a8c94bc2
commit 40931c81ca
21 changed files with 633 additions and 83 deletions
+16 -3
View File
@@ -107,20 +107,28 @@ export const documentsPlugin = plugin(documentsId, {
DocumentMetaPresenter: '' as AnyComponent,
DocumentVersionPresenter: '' as AnyComponent,
DeleteCategoryPopup: '' as AnyComponent,
DocumentIcon: '' as AnyComponent
DocumentIcon: '' as AnyComponent,
CreateFolder: '' as AnyComponent
},
action: {
ChangeDocumentOwner: '' as Ref<Action<Doc, any>>,
CreateChildDocument: '' as Ref<Action<Document, any>>,
CreateChildTemplate: '' as Ref<Action<Document, any>>,
CreateChildFolder: '' as Ref<Action<Document, any>>,
RenameFolder: '' as Ref<Action<Document, any>>,
DeleteFolder: '' as Ref<Action<Document, any>>,
CreateDocument: '' as Ref<Action<DocumentSpace, any>>,
CreateTemplate: '' as Ref<Action<DocumentSpace, any>>,
CreateFolder: '' as Ref<Action<DocumentSpace, any>>,
DeleteDocumentCategory: '' as Ref<Action<Doc, any>>,
DeleteDocument: '' as Ref<Action>,
ArchiveDocument: '' as Ref<Action>,
EditDocSpace: '' as Ref<Action>,
TransferDocument: '' as Ref<Action>,
Print: '' as Ref<Action<Doc, { signed: boolean }>>
Print: '' as Ref<Action<Doc, { signed: boolean }>>,
PrintProjectDocument: '' as Ref<Action<Doc, { signed: boolean }>>,
OpenDocument: '' as Ref<Action<Doc, { signed: boolean }>>,
OpenDocumentInNewTab: '' as Ref<Action<Doc, { signed: boolean }>>
},
function: {
CanChangeDocumentOwner: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
@@ -131,6 +139,7 @@ export const documentsPlugin = plugin(documentsId, {
CheckmarkCircle: '' as Asset,
DocumentApplication: '' as Asset,
NewDocument: '' as Asset,
Folder: '' as Asset,
Document: '' as Asset,
Library: '' as Asset,
StateDraft: '' as Asset,
@@ -212,6 +221,8 @@ export const documentsPlugin = plugin(documentsId, {
ChangeOwnerWarning: '' as IntlString,
CreateDocument: '' as IntlString,
CreateTemplate: '' as IntlString,
CreateFolder: '' as IntlString,
RenameFolder: '' as IntlString,
DeleteCategory: '' as IntlString,
DeleteCategoryHint: '' as IntlString,
DeleteCategoryWarning: '' as IntlString,
@@ -228,6 +239,7 @@ export const documentsPlugin = plugin(documentsId, {
Path: '' as IntlString,
CreateChildDocument: '' as IntlString,
CreateChildTemplate: '' as IntlString,
CreateChildFolder: '' as IntlString,
All: '' as IntlString,
ImpactAnalysis: '' as IntlString,
ImpactedDocuments: '' as IntlString,
@@ -270,7 +282,8 @@ export const documentsPlugin = plugin(documentsId, {
},
ids: {
NoParent: '' as Ref<DocumentMeta>,
NoProject: '' as Ref<Project>
NoProject: '' as Ref<Project>,
Folder: '' as Ref<HierarchyDocument>
},
sequence: {
Templates: '' as Ref<Sequence>,