@acorex-platform/module-document-management-client 0.0.32 → 0.0.37
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/fesm2022/{acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs → acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs} +74 -63
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs → acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs.map → acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs → acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs.map → acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs +154 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs +321 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs +244 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs +236 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs +86 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs +90 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs +257 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs +180 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs +172 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs → acorex-platform-module-document-management-client-drive-choose.component-ByxmDInD.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs.map → acorex-platform-module-document-management-client-drive-choose.component-ByxmDInD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B64PFFtO.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs.map → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B64PFFtO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs → acorex-platform-module-document-management-client-large-icons-view.component-CBk1WOVb.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs.map → acorex-platform-module-document-management-client-large-icons-view.component-CBk1WOVb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs → acorex-platform-module-document-management-client-large-tiles-view.component-m-UkV_QT.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs.map → acorex-platform-module-document-management-client-large-tiles-view.component-m-UkV_QT.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-CUFgI0_q.mjs +77 -0
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-CUFgI0_q.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs → acorex-platform-module-document-management-client-list-view-skeleton.component-K22Zof-0.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs.map → acorex-platform-module-document-management-client-list-view-skeleton.component-K22Zof-0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs → acorex-platform-module-document-management-client-list-view.component-CVF0Lkii.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs.map → acorex-platform-module-document-management-client-list-view.component-CVF0Lkii.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs +32 -0
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs → acorex-platform-module-document-management-client-open-document.command-Deqs3cEg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs.map → acorex-platform-module-document-management-client-open-document.command-Deqs3cEg.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-share-dialog.component-D0D75M7u.mjs → acorex-platform-module-document-management-client-share-dialog.component-CyO_2Ppm.mjs} +33 -28
- package/fesm2022/acorex-platform-module-document-management-client-share-dialog.component-CyO_2Ppm.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-6B0KXT1Z.mjs +58 -0
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-6B0KXT1Z.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BFuFFUax.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs.map → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BFuFFUax.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs → acorex-platform-module-document-management-client-small-icons-view.component-5XaGmpoN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs.map → acorex-platform-module-document-management-client-small-icons-view.component-5XaGmpoN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-6EgbuXTv.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs.map → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-6EgbuXTv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs → acorex-platform-module-document-management-client-small-tiles-view.component-07tFnkqV.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs.map → acorex-platform-module-document-management-client-small-tiles-view.component-07tFnkqV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs → acorex-platform-module-document-management-client-upload-document.command-D6J57Ha5.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs.map → acorex-platform-module-document-management-client-upload-document.command-D6J57Ha5.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client.mjs +1 -1
- package/package.json +26 -2
- package/types/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.d.ts +8 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-document-type.d.ts +5 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-document.d.ts +9 -0
- package/types/acorex-platform-module-document-management-client-contracts-entities-folder.d.ts +9 -0
- package/types/acorex-platform-module-document-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-document-management-client-local-entities.d.ts +12 -0
- package/types/acorex-platform-module-document-management-client.d.ts +6 -3
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-DXwE55QU.mjs +0 -68
- package/fesm2022/acorex-platform-module-document-management-client-link-dialog.component-DXwE55QU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-share-dialog.component-D0D75M7u.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-CTP-r-4w.mjs +0 -54
- package/fesm2022/acorex-platform-module-document-management-client-share-email-dialog.component-CTP-r-4w.mjs.map +0 -1
|
@@ -6,7 +6,7 @@ import * as i1$1 from '@angular/common';
|
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
9
|
-
import { A as AXPDocumentExplorerViewModel } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
9
|
+
import { A as AXPDocumentExplorerViewModel } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs';
|
|
10
10
|
|
|
11
11
|
class AXMDocumentExplorerAttachmentViewSkeletonComponent {
|
|
12
12
|
constructor() {
|
|
@@ -24,4 +24,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
24
24
|
}] });
|
|
25
25
|
|
|
26
26
|
export { AXMDocumentExplorerAttachmentViewSkeletonComponent };
|
|
27
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-attachment-view-skeleton.component-
|
|
27
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-document-management-client-attachment-view-skeleton.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs","sources":["../../../../libs/modules/document-management/client/src/lib/features/document-explorer/views/attachement-widget/attachment-view-skeleton.component.ts","../../../../libs/modules/document-management/client/src/lib/features/document-explorer/views/attachement-widget/attachment-view-skeleton.component.html"],"sourcesContent":["import { AXSkeletonModule } from '@acorex/components/skeleton';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { AXPDocumentExplorerViewModel } from '../../document-explorer.viewmodel';\n\n@Component({\n selector: 'axm-document-explorer-attachment-view-skeleton',\n templateUrl: './attachment-view-skeleton.component.html',\n styleUrl: './attachment-view-skeleton.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXSkeletonModule, AXTranslationModule],\n})\nexport class AXMDocumentExplorerAttachmentViewSkeletonComponent {\n protected readonly vm = inject(AXPDocumentExplorerViewModel);\n\n protected readonly folderPlaceholders = [0, 1, 2];\n protected readonly filePlaceholders = [0, 1];\n protected readonly flatPlaceholders = [0, 1, 2, 3, 4];\n}\n","@if (vm.groupByType()) {\n <div class=\"__section\">\n <div class=\"__header\">\n <h3 class=\"__title\">{{ '@document-management:terms.common.folders' | translate | async }}</h3>\n </div>\n <div class=\"__content\">\n @for (item of folderPlaceholders; track item) {\n <div class=\"__item\">\n <ax-skeleton [animated]=\"true\" class=\"__icon\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__name\"></ax-skeleton>\n </div>\n }\n </div>\n </div>\n <div class=\"__section\">\n <div class=\"__header\">\n <h3 class=\"__title\">{{ '@document-management:terms.common.files' | translate | async }}</h3>\n </div>\n <div class=\"__content\">\n @for (item of filePlaceholders; track item) {\n <div class=\"__item\">\n <ax-skeleton [animated]=\"true\" class=\"__icon\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__name\"></ax-skeleton>\n </div>\n }\n </div>\n </div>\n} @else {\n <div class=\"__content\">\n @for (item of flatPlaceholders; track item) {\n <div class=\"__item\">\n <ax-skeleton [animated]=\"true\" class=\"__icon\"></ax-skeleton>\n <ax-skeleton [animated]=\"true\" class=\"__name\"></ax-skeleton>\n </div>\n }\n </div>\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;MAaa,kDAAkD,CAAA;AAP/D,IAAA,WAAA,GAAA;AAQqB,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,4BAA4B,CAAC;QAEzC,IAAA,CAAA,kBAAkB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9B,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AACzB,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACtD,IAAA;8GANY,kDAAkD,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlD,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kDAAkD,0GCb/D,+xCAqCA,EAAA,MAAA,EAAA,CAAA,6uCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED1BY,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,gBAAgB,kIAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAElD,kDAAkD,EAAA,UAAA,EAAA,CAAA;kBAP9D,SAAS;+BACE,gDAAgD,EAAA,eAAA,EAGzC,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,EAAA,QAAA,EAAA,+xCAAA,EAAA,MAAA,EAAA,CAAA,6uCAAA,CAAA,EAAA;;;"}
|
|
@@ -8,7 +8,7 @@ import * as i0 from '@angular/core';
|
|
|
8
8
|
import { inject, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
9
9
|
import * as i1 from '@angular/common';
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import { A as AXPDocumentExplorerViewModel, c as AXMDocumentManagerService, a as AXMDocumentExpirationBadgeComponent, b as AXMFolderExpirationBadgesComponent } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
11
|
+
import { A as AXPDocumentExplorerViewModel, c as AXMDocumentManagerService, a as AXMDocumentExpirationBadgeComponent, b as AXMFolderExpirationBadgesComponent } from './acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs';
|
|
12
12
|
|
|
13
13
|
class AXMDocumentExplorerAttachmentComponent {
|
|
14
14
|
constructor() {
|
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
33
33
|
}] });
|
|
34
34
|
|
|
35
35
|
export { AXMDocumentExplorerAttachmentComponent };
|
|
36
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-attachment-widget.component-
|
|
36
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-document-management-client-attachment-widget.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs","sources":["../../../../libs/modules/document-management/client/src/lib/features/document-explorer/views/attachement-widget/attachment-widget.component.ts","../../../../libs/modules/document-management/client/src/lib/features/document-explorer/views/attachement-widget/attachment-widget.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPElementDataDirective } from '@acorex-platform/framework-client/core';\n\nimport { Component, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AXMDocumentManagerService } from '../../../shared';\nimport { AXMDocumentExpirationBadgeComponent } from '../../../shared/components/document-expiration-badge/document-expiration-badge.component';\nimport { AXMFolderExpirationBadgesComponent } from '../../../shared/components/folder-expiration-badges/folder-expiration-badges.component';\nimport { AXPDocumentExplorerViewModel } from '../../document-explorer.viewmodel';\n\n@Component({\n selector: 'axm-document-explorer-attachment-widget',\n templateUrl: './attachment-widget.component.html',\n styleUrls: ['./attachment-widget.component.css'],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [\n CommonModule,\n AXDecoratorModule,\n AXFormatModule,\n AXButtonModule,\n AXTranslationModule,\n AXPElementDataDirective,\n AXMDocumentExpirationBadgeComponent,\n AXMFolderExpirationBadgesComponent,\n],\n})\nexport class AXMDocumentExplorerAttachmentComponent {\n protected vm = inject(AXPDocumentExplorerViewModel);\n protected readonly driveService = inject(AXMDocumentManagerService);\n}\n","@if (vm.groupByType()) {\n @if (vm.filteredFolders().length > 0) {\n <div class=\"__section\">\n <div class=\"__header\">\n <h3 class=\"__title\">{{ '@document-management:terms.common.folders' | translate | async }}</h3>\n </div>\n <div class=\"__content fa-xl\">\n @for (folder of vm.filteredFolders(); track folder.id) {\n <div\n class=\"__explorer-item\"\n [class.--selected]=\"vm.isItemSelected(folder)\"\n [axp-data]=\"folder\"\n (click)=\"vm.toggleSelect(folder)\"\n (onDblClick)=\"vm.navigateToFolder(folder.id)\"\n >\n <div class=\"__icon\" [style.color]=\"vm.getFolderColor(folder)\">\n @if (vm.isLoadingFolder(folder.id)) {\n <i class=\"fa-light fa-spinner fa-spin-pulse\"></i>\n } @else {\n <i class=\"fas fa-folder-closed\"></i>\n }\n </div>\n <div class=\"flex min-w-0 items-center gap-1.5\">\n <div class=\"__name\">{{ folder.name }}</div>\n <!-- ----- Expiration counts after folder name ----- -->\n <axm-folder-expiration-badges [node]=\"folder\" />\n </div>\n </div>\n }\n </div>\n </div>\n }\n\n @if (vm.filteredFiles().length > 0) {\n <div class=\"__section\">\n <div class=\"__header\">\n <h3 class=\"__title\">{{ '@document-management:terms.common.files' | translate | async }}</h3>\n </div>\n <div class=\"__content fa-xl\">\n @for (file of vm.filteredFiles(); track file.id) {\n @let fileInfo = vm.getFileInfo(file.name);\n <div\n [class.--selected]=\"vm.isItemSelected(file)\"\n class=\"__explorer-item group\"\n [axp-data]=\"file\"\n (click)=\"vm.toggleSelect(file)\"\n (onDblClick)=\"vm.openFile(file)\"\n >\n <div class=\"name-bar\">\n <div class=\"__icon\">\n <i class=\"fa-fw {{ fileInfo.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 items-center gap-1.5\">\n <div class=\"__name\">{{ file.name }}</div>\n <axm-document-expiration-badge [node]=\"file\" />\n </div>\n </div>\n <div class=\"action-bar group-hover:visible invisible\">\n <div>\n <i class=\"fa-regular fa-trash\" (click)=\"vm.deleteNodes([file])\"></i>\n </div>\n <div>\n <i class=\"fa-regular fa-download\" (click)=\"driveService.downloadFile(file)\"></i>\n </div>\n <div>\n <i class=\"fa-regular fa-info\" (click)=\"vm.openFile(file)\"></i>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n} @else {\n <div class=\"__content fa-xl\">\n @for (folder of vm.filteredFolders(); track folder.id) {\n <div\n class=\"__explorer-item\"\n [class.--selected]=\"vm.isItemSelected(folder)\"\n [axp-data]=\"folder\"\n (click)=\"vm.toggleSelect(folder)\"\n (onDblClick)=\"vm.navigateToFolder(folder.id)\"\n >\n <div class=\"__icon\" [style.color]=\"vm.getFolderColor(folder)\">\n @if (vm.isLoadingFolder(folder.id)) {\n <i class=\"fa-light fa-spinner fa-spin-pulse\"></i>\n } @else {\n <i class=\"fas fa-folder-closed\"></i>\n }\n </div>\n <div class=\"flex min-w-0 items-center gap-1.5\">\n <div class=\"__name\">{{ folder.name }}</div>\n <!-- ----- Expiration counts after folder name ----- -->\n <axm-folder-expiration-badges [node]=\"folder\" />\n </div>\n </div>\n }\n @for (file of vm.filteredFiles(); track file.id) {\n @let fileInfo = vm.getFileInfo(file.name);\n <div\n [class.--selected]=\"vm.isItemSelected(file)\"\n class=\"__explorer-item group\"\n [axp-data]=\"file\"\n (click)=\"vm.toggleSelect(file)\"\n (onDblClick)=\"vm.openFile(file)\"\n >\n <div class=\"name-bar\">\n <div class=\"__icon\">\n <i class=\"fa-fw {{ fileInfo.icon }}\"></i>\n </div>\n <div class=\"flex min-w-0 items-center gap-1.5\">\n <div class=\"__name\">{{ file.name }}</div>\n <axm-document-expiration-badge [node]=\"file\" />\n </div>\n </div>\n <div class=\"action-bar group-hover:visible invisible\">\n <div>\n <i class=\"fa-regular fa-trash\" (click)=\"vm.deleteNodes([file])\"></i>\n </div>\n <div>\n <i class=\"fa-regular fa-download\" (click)=\"driveService.downloadFile(file)\"></i>\n </div>\n <div>\n <i class=\"fa-regular fa-info\" (click)=\"vm.openFile(file)\"></i>\n </div>\n </div>\n </div>\n }\n </div>\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;MA8Ba,sCAAsC,CAAA;AAjBnD,IAAA,WAAA,GAAA;AAkBY,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,4BAA4B,CAAC;AAChC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACpE,IAAA;8GAHY,sCAAsC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sCAAsC,mGC9BnD,q4JAkIA,EAAA,MAAA,EAAA,CAAA,giEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED9GI,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACjB,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,cAAc,8BACd,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,uBAAuB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,mCAAmC,4FACnC,kCAAkC,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAGzB,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBAjBlD,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yCAAyC,cAGvC,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,KAAK,EAAA,OAAA,EACrC;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,cAAc;wBACd,mBAAmB;wBACnB,uBAAuB;wBACvB,mCAAmC;wBACnC,kCAAkC;AACrC,qBAAA,EAAA,QAAA,EAAA,q4JAAA,EAAA,MAAA,EAAA,CAAA,giEAAA,CAAA,EAAA;;;"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
i18n: 'document-management',
|
|
5
|
+
module: 'DocumentManagement',
|
|
6
|
+
};
|
|
7
|
+
const RootConfig = {
|
|
8
|
+
config,
|
|
9
|
+
module: {
|
|
10
|
+
module: config.module,
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-light fa-books',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
folder: {
|
|
17
|
+
name: 'Folder',
|
|
18
|
+
title: `@${config.i18n}:entities.folder.title`,
|
|
19
|
+
titlePlural: `@${config.i18n}:entities.folder.title-plural`,
|
|
20
|
+
icon: 'fa-light fa-folder',
|
|
21
|
+
},
|
|
22
|
+
document: {
|
|
23
|
+
name: 'Document',
|
|
24
|
+
title: `@${config.i18n}:entities.document.title`,
|
|
25
|
+
titlePlural: `@${config.i18n}:entities.document.title-plural`,
|
|
26
|
+
icon: 'fa-light fa-file',
|
|
27
|
+
},
|
|
28
|
+
documentType: {
|
|
29
|
+
name: 'DocumentType',
|
|
30
|
+
title: `@${config.i18n}:entities.document-type.title`,
|
|
31
|
+
titlePlural: `@${config.i18n}:entities.document-type.title-plural`,
|
|
32
|
+
icon: 'fa-light fa-books',
|
|
33
|
+
},
|
|
34
|
+
documentShortcut: {
|
|
35
|
+
name: 'DocumentShortcut',
|
|
36
|
+
title: `@${config.i18n}:entities.document-shortcut.title`,
|
|
37
|
+
titlePlural: `@${config.i18n}:entities.document-shortcut.title-plural`,
|
|
38
|
+
icon: 'fa-light fa-up-right-from-square',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
queries: {
|
|
42
|
+
dashboard: {
|
|
43
|
+
documentsKpi: `${config.module}:Dashboard:DocumentsKpi`,
|
|
44
|
+
},
|
|
45
|
+
reports: {
|
|
46
|
+
getDocumentsByType: `${config.module}:Reports:GetDocumentsByType`,
|
|
47
|
+
getDocumentExpiration: `${config.module}:Reports:GetDocumentExpiration`,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Daily document expiration digest (BackgroundJobSchedule → NotifyRun).
|
|
52
|
+
* One combined email/in-app per recipient per scoped ref (employee / tenant / project),
|
|
53
|
+
* listing every currently expired or near-expiry document in that scope.
|
|
54
|
+
* Template id aligns with AXM_TEXT_TEMPLATE_IDS.documentExpired.
|
|
55
|
+
*/
|
|
56
|
+
documentExpirationNotify: {
|
|
57
|
+
providerKey: 'document-management',
|
|
58
|
+
defaultCron: '0 0 * * *',
|
|
59
|
+
templateId: 'c7100009-0001-4111-b111-090909090909',
|
|
60
|
+
tenantRoleNames: ['admin', 'safety-manager'],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Entity definition for DocumentShortcut so Postgres/JQL persist shortcut fields.
|
|
66
|
+
*/
|
|
67
|
+
async function documentShortcutEntityFactory() {
|
|
68
|
+
const i18n = RootConfig.config.i18n;
|
|
69
|
+
const entityDef = {
|
|
70
|
+
module: RootConfig.module.name,
|
|
71
|
+
name: RootConfig.entities.documentShortcut.name,
|
|
72
|
+
title: RootConfig.entities.documentShortcut.title,
|
|
73
|
+
parentKey: 'folderId',
|
|
74
|
+
plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],
|
|
75
|
+
formats: {
|
|
76
|
+
individual: RootConfig.entities.documentShortcut.title,
|
|
77
|
+
plural: RootConfig.entities.documentShortcut.titlePlural,
|
|
78
|
+
searchResult: {
|
|
79
|
+
title: '{{ name }}',
|
|
80
|
+
description: RootConfig.module.title,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
relatedEntities: [],
|
|
84
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
85
|
+
properties: [
|
|
86
|
+
{
|
|
87
|
+
name: 'folderId',
|
|
88
|
+
title: `@${i18n}:entities.document-shortcut.fields.folder.title`,
|
|
89
|
+
groupId: 'basic-info',
|
|
90
|
+
options: {
|
|
91
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
92
|
+
},
|
|
93
|
+
schema: {
|
|
94
|
+
dataType: 'string',
|
|
95
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
96
|
+
},
|
|
97
|
+
validations: [{ rule: 'required' }],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'targetDocumentId',
|
|
101
|
+
title: `@${i18n}:entities.document-shortcut.fields.target-document.title`,
|
|
102
|
+
groupId: 'basic-info',
|
|
103
|
+
options: {
|
|
104
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
105
|
+
},
|
|
106
|
+
schema: {
|
|
107
|
+
dataType: 'string',
|
|
108
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'targetFolderId',
|
|
113
|
+
title: `@${i18n}:entities.document-shortcut.fields.target-folder.title`,
|
|
114
|
+
groupId: 'basic-info',
|
|
115
|
+
options: {
|
|
116
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
117
|
+
},
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'string',
|
|
120
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'name',
|
|
125
|
+
title: '@general:terms.common.name',
|
|
126
|
+
groupId: 'basic-info',
|
|
127
|
+
schema: {
|
|
128
|
+
dataType: 'string',
|
|
129
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'description',
|
|
134
|
+
title: '@general:terms.common.description',
|
|
135
|
+
groupId: 'basic-info',
|
|
136
|
+
schema: {
|
|
137
|
+
dataType: 'string',
|
|
138
|
+
interface: {
|
|
139
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
140
|
+
options: { multiLanguage: false },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
};
|
|
146
|
+
return entityDef;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Generated bundle index. Do not edit.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
export { documentShortcutEntityFactory };
|
|
154
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs","sources":["../../../../libs/modules/document-management/contracts/src/root-config.ts","../../../../libs/modules/document-management/contracts/src/entities/document-shortcut/document-shortcut.entity.ts","../../../../libs/modules/document-management/contracts/src/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.ts"],"sourcesContent":["const config = {\n i18n: 'document-management',\n module: 'DocumentManagement',\n};\nexport const RootConfig = {\n config,\n module: {\n module: config.module,\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-books',\n },\n entities: {\n folder: {\n name: 'Folder',\n title: `@${config.i18n}:entities.folder.title`,\n titlePlural: `@${config.i18n}:entities.folder.title-plural`,\n icon: 'fa-light fa-folder',\n },\n document: {\n name: 'Document',\n title: `@${config.i18n}:entities.document.title`,\n titlePlural: `@${config.i18n}:entities.document.title-plural`,\n icon: 'fa-light fa-file',\n },\n documentType: {\n name: 'DocumentType',\n title: `@${config.i18n}:entities.document-type.title`,\n titlePlural: `@${config.i18n}:entities.document-type.title-plural`,\n icon: 'fa-light fa-books',\n },\n documentShortcut: {\n name: 'DocumentShortcut',\n title: `@${config.i18n}:entities.document-shortcut.title`,\n titlePlural: `@${config.i18n}:entities.document-shortcut.title-plural`,\n icon: 'fa-light fa-up-right-from-square',\n },\n },\n queries: {\n dashboard: {\n documentsKpi: `${config.module}:Dashboard:DocumentsKpi`,\n },\n reports: {\n getDocumentsByType: `${config.module}:Reports:GetDocumentsByType`,\n getDocumentExpiration: `${config.module}:Reports:GetDocumentExpiration`,\n },\n },\n /**\n * Daily document expiration digest (BackgroundJobSchedule → NotifyRun).\n * One combined email/in-app per recipient per scoped ref (employee / tenant / project),\n * listing every currently expired or near-expiry document in that scope.\n * Template id aligns with AXM_TEXT_TEMPLATE_IDS.documentExpired.\n */\n documentExpirationNotify: {\n providerKey: 'document-management',\n defaultCron: '0 0 * * *',\n templateId: 'c7100009-0001-4111-b111-090909090909',\n tenantRoleNames: ['admin', 'safety-manager'] as const,\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Entity definition for DocumentShortcut so Postgres/JQL persist shortcut fields.\n */\nexport async function documentShortcutEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.documentShortcut.name,\n title: RootConfig.entities.documentShortcut.title,\n parentKey: 'folderId',\n plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],\n formats: {\n individual: RootConfig.entities.documentShortcut.title,\n plural: RootConfig.entities.documentShortcut.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'folderId',\n title: `@${i18n}:entities.document-shortcut.fields.folder.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'targetDocumentId',\n title: `@${i18n}:entities.document-shortcut.fields.target-document.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'targetFolderId',\n title: `@${i18n}:entities.document-shortcut.fields.target-folder.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n ],\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.document-shortcut';\n"],"names":[],"mappings":";;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC7B;AACM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,sBAAA,CAAwB;AAC9C,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,6BAAA,CAA+B;AAC3D,YAAA,IAAI,EAAE,oBAAoB;AAC3B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,wBAAA,CAA0B;AAChD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+BAAA,CA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OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,KAAK,EAAE,mCAAmC;AAC1C,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,SAAS,EAAE;AACT,wBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY;AACzC,wBAAA,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;AAClC,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;ACzFA;;AAEG;;"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'document-management',
|
|
6
|
+
module: 'DocumentManagement',
|
|
7
|
+
};
|
|
8
|
+
const RootConfig = {
|
|
9
|
+
config,
|
|
10
|
+
module: {
|
|
11
|
+
module: config.module,
|
|
12
|
+
name: config.module,
|
|
13
|
+
title: `@${config.i18n}:module.title`,
|
|
14
|
+
icon: 'fa-light fa-books',
|
|
15
|
+
},
|
|
16
|
+
entities: {
|
|
17
|
+
folder: {
|
|
18
|
+
name: 'Folder',
|
|
19
|
+
title: `@${config.i18n}:entities.folder.title`,
|
|
20
|
+
titlePlural: `@${config.i18n}:entities.folder.title-plural`,
|
|
21
|
+
icon: 'fa-light fa-folder',
|
|
22
|
+
},
|
|
23
|
+
document: {
|
|
24
|
+
name: 'Document',
|
|
25
|
+
title: `@${config.i18n}:entities.document.title`,
|
|
26
|
+
titlePlural: `@${config.i18n}:entities.document.title-plural`,
|
|
27
|
+
icon: 'fa-light fa-file',
|
|
28
|
+
},
|
|
29
|
+
documentType: {
|
|
30
|
+
name: 'DocumentType',
|
|
31
|
+
title: `@${config.i18n}:entities.document-type.title`,
|
|
32
|
+
titlePlural: `@${config.i18n}:entities.document-type.title-plural`,
|
|
33
|
+
icon: 'fa-light fa-books',
|
|
34
|
+
},
|
|
35
|
+
documentShortcut: {
|
|
36
|
+
name: 'DocumentShortcut',
|
|
37
|
+
title: `@${config.i18n}:entities.document-shortcut.title`,
|
|
38
|
+
titlePlural: `@${config.i18n}:entities.document-shortcut.title-plural`,
|
|
39
|
+
icon: 'fa-light fa-up-right-from-square',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
queries: {
|
|
43
|
+
dashboard: {
|
|
44
|
+
documentsKpi: `${config.module}:Dashboard:DocumentsKpi`,
|
|
45
|
+
},
|
|
46
|
+
reports: {
|
|
47
|
+
getDocumentsByType: `${config.module}:Reports:GetDocumentsByType`,
|
|
48
|
+
getDocumentExpiration: `${config.module}:Reports:GetDocumentExpiration`,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Daily document expiration digest (BackgroundJobSchedule → NotifyRun).
|
|
53
|
+
* One combined email/in-app per recipient per scoped ref (employee / tenant / project),
|
|
54
|
+
* listing every currently expired or near-expiry document in that scope.
|
|
55
|
+
* Template id aligns with AXM_TEXT_TEMPLATE_IDS.documentExpired.
|
|
56
|
+
*/
|
|
57
|
+
documentExpirationNotify: {
|
|
58
|
+
providerKey: 'document-management',
|
|
59
|
+
defaultCron: '0 0 * * *',
|
|
60
|
+
templateId: 'c7100009-0001-4111-b111-090909090909',
|
|
61
|
+
tenantRoleNames: ['admin', 'safety-manager'],
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
async function documentTypeFactory() {
|
|
66
|
+
const i18n = RootConfig.config.i18n;
|
|
67
|
+
const entityDef = {
|
|
68
|
+
module: RootConfig.module.name,
|
|
69
|
+
name: RootConfig.entities.documentType.name,
|
|
70
|
+
title: RootConfig.entities.documentType.title,
|
|
71
|
+
formats: {
|
|
72
|
+
individual: RootConfig.entities.documentType.title,
|
|
73
|
+
plural: RootConfig.entities.documentType.titlePlural,
|
|
74
|
+
searchResult: {
|
|
75
|
+
title: '{{ title }}',
|
|
76
|
+
description: '{{ description }}',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
plugins: [
|
|
80
|
+
{ name: 'history' },
|
|
81
|
+
{ name: 'cache', options: { ttlMs: 600_000 } },
|
|
82
|
+
{
|
|
83
|
+
name: 'unique-fields',
|
|
84
|
+
options: {
|
|
85
|
+
fields: 'name',
|
|
86
|
+
scope: 'global',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'meta-data-builder',
|
|
91
|
+
options: {
|
|
92
|
+
display: 'page',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{ name: 'reports' },
|
|
96
|
+
],
|
|
97
|
+
relatedEntities: [],
|
|
98
|
+
groups: [
|
|
99
|
+
{
|
|
100
|
+
id: 'basic-info',
|
|
101
|
+
title: '@general:terms.interface.basic-info',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'management',
|
|
105
|
+
title: `@${i18n}:terms.common.management`,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
properties: [
|
|
109
|
+
{
|
|
110
|
+
name: 'name',
|
|
111
|
+
title: '@general:terms.common.name',
|
|
112
|
+
groupId: 'basic-info',
|
|
113
|
+
options: {
|
|
114
|
+
sort: {
|
|
115
|
+
enabled: true,
|
|
116
|
+
},
|
|
117
|
+
filter: {
|
|
118
|
+
advance: { enabled: true },
|
|
119
|
+
inline: { enabled: true },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'string',
|
|
124
|
+
readonly: '{{ !!context.eval("id") }}',
|
|
125
|
+
interface: {
|
|
126
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
127
|
+
options: {
|
|
128
|
+
disabled: '{{ !!context.eval("id") }}',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
validations: [
|
|
133
|
+
{
|
|
134
|
+
rule: 'required',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
rule: 'variable-name',
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'title',
|
|
143
|
+
title: '@general:terms.common.title',
|
|
144
|
+
groupId: 'basic-info',
|
|
145
|
+
options: {
|
|
146
|
+
sort: { enabled: true },
|
|
147
|
+
filter: {
|
|
148
|
+
advance: { enabled: true },
|
|
149
|
+
inline: { enabled: true },
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
schema: {
|
|
153
|
+
dataType: 'string',
|
|
154
|
+
interface: {
|
|
155
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
validations: [
|
|
159
|
+
{
|
|
160
|
+
rule: 'required',
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'description',
|
|
166
|
+
title: '@general:terms.common.description',
|
|
167
|
+
groupId: 'basic-info',
|
|
168
|
+
options: {
|
|
169
|
+
sort: { enabled: false },
|
|
170
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
171
|
+
},
|
|
172
|
+
schema: {
|
|
173
|
+
dataType: 'string',
|
|
174
|
+
interface: {
|
|
175
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
176
|
+
options: {
|
|
177
|
+
rows: 3,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'type',
|
|
184
|
+
title: `@${i18n}:terms.common.type`,
|
|
185
|
+
groupId: 'management',
|
|
186
|
+
options: {
|
|
187
|
+
sort: { enabled: false },
|
|
188
|
+
},
|
|
189
|
+
schema: {
|
|
190
|
+
dataType: 'object',
|
|
191
|
+
interface: {
|
|
192
|
+
type: AXPWidgetsList.Editors.FileTypeExtension,
|
|
193
|
+
options: {},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'enableExpiration',
|
|
199
|
+
title: `@${i18n}:terms.document.enable-expiration`,
|
|
200
|
+
groupId: 'management',
|
|
201
|
+
schema: {
|
|
202
|
+
dataType: 'boolean',
|
|
203
|
+
interface: {
|
|
204
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'requiresReview',
|
|
210
|
+
title: `@${i18n}:terms.document.requires-review`,
|
|
211
|
+
groupId: 'management',
|
|
212
|
+
schema: {
|
|
213
|
+
dataType: 'boolean',
|
|
214
|
+
interface: {
|
|
215
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'enableVersioning',
|
|
221
|
+
title: `@${i18n}:terms.document.enable-versioning`,
|
|
222
|
+
groupId: 'management',
|
|
223
|
+
schema: {
|
|
224
|
+
dataType: 'boolean',
|
|
225
|
+
interface: {
|
|
226
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
227
|
+
options: {
|
|
228
|
+
disabled: '{{ !!context.eval("requiresReview") }}',
|
|
229
|
+
},
|
|
230
|
+
triggers: [
|
|
231
|
+
{
|
|
232
|
+
event: "{{ events.context('requiresReview') }}",
|
|
233
|
+
action: "{{ context.set('enableVersioning', true) }}",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'isEncrypted',
|
|
241
|
+
title: `@${i18n}:terms.document.is-encrypted`,
|
|
242
|
+
groupId: 'management',
|
|
243
|
+
schema: {
|
|
244
|
+
dataType: 'boolean',
|
|
245
|
+
interface: {
|
|
246
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
columns: [{ name: 'name' }, { name: 'title' }, { name: 'description' }],
|
|
252
|
+
interfaces: {
|
|
253
|
+
master: {
|
|
254
|
+
create: {
|
|
255
|
+
sections: [{ id: 'basic-info' }, { id: 'management' }],
|
|
256
|
+
properties: [
|
|
257
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
258
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
259
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
260
|
+
{ name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
261
|
+
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
262
|
+
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
263
|
+
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
264
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
update: {
|
|
268
|
+
sections: [{ id: 'basic-info' }, { id: 'management' }],
|
|
269
|
+
properties: [
|
|
270
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
271
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
272
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
273
|
+
{ name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
274
|
+
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
275
|
+
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
276
|
+
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
277
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
278
|
+
],
|
|
279
|
+
},
|
|
280
|
+
single: {
|
|
281
|
+
title: '{{title}}',
|
|
282
|
+
sections: [
|
|
283
|
+
{
|
|
284
|
+
id: 'basic-info',
|
|
285
|
+
order: 1,
|
|
286
|
+
layout: { positions: { lg: { colSpan: 12 } } },
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: 'management',
|
|
290
|
+
order: 2,
|
|
291
|
+
layout: { positions: { lg: { colSpan: 12 } } },
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
properties: [
|
|
295
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
296
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
297
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
298
|
+
{ name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
299
|
+
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
300
|
+
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
301
|
+
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
302
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
303
|
+
],
|
|
304
|
+
actions: [...entityMasterRecordActions()],
|
|
305
|
+
},
|
|
306
|
+
list: {
|
|
307
|
+
actions: [...entityMasterCrudActions({ edit: true })],
|
|
308
|
+
views: [createAllQueryView()],
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
return entityDef;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Generated bundle index. Do not edit.
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
export { documentTypeFactory };
|
|
321
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entities-document-type.mjs.map
|