@acorex/modules 20.6.0 → 20.6.1
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-modules-document-management-acorex-modules-document-management-CVTT8ctu.mjs → acorex-modules-document-management-acorex-modules-document-management-Cd7_tQ9I.mjs} +33 -20
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CVTT8ctu.mjs.map → acorex-modules-document-management-acorex-modules-document-management-Cd7_tQ9I.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-hRx5kgIG.mjs → acorex-modules-document-management-attachment-widget.component-OOvQKX6g.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-hRx5kgIG.mjs.map → acorex-modules-document-management-attachment-widget.component-OOvQKX6g.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-B0d8igsi.mjs → acorex-modules-document-management-details-view.component-BhqjkUbV.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-B0d8igsi.mjs.map → acorex-modules-document-management-details-view.component-BhqjkUbV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-D9-55hkH.mjs → acorex-modules-document-management-document-signature-popup.component-DGWY6fSe.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-D9-55hkH.mjs.map → acorex-modules-document-management-document-signature-popup.component-DGWY6fSe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-qwmn-Nan.mjs → acorex-modules-document-management-drive-choose.component-WxmS0fOY.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-qwmn-Nan.mjs.map → acorex-modules-document-management-drive-choose.component-WxmS0fOY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-00fK0Exr.mjs → acorex-modules-document-management-drive.component-D8VzFK-5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-00fK0Exr.mjs.map → acorex-modules-document-management-drive.component-D8VzFK-5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BKhBKRMc.mjs → acorex-modules-document-management-large-icons-view.component-cYzLaOAQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BKhBKRMc.mjs.map → acorex-modules-document-management-large-icons-view.component-cYzLaOAQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CYwO8gZY.mjs → acorex-modules-document-management-large-tiles-view.component-BkcKvoe6.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CYwO8gZY.mjs.map → acorex-modules-document-management-large-tiles-view.component-BkcKvoe6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-BpkDnz7i.mjs → acorex-modules-document-management-list-view.component-CvPkInJy.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-BpkDnz7i.mjs.map → acorex-modules-document-management-list-view.component-CvPkInJy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-TJIPH8xE.mjs → acorex-modules-document-management-permission-definition.provider-CODjZ6lP.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-TJIPH8xE.mjs.map → acorex-modules-document-management-permission-definition.provider-CODjZ6lP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BiSKothg.mjs → acorex-modules-document-management-small-icons-view.component-C30ghzKp.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BiSKothg.mjs.map → acorex-modules-document-management-small-icons-view.component-C30ghzKp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BMdnlNuG.mjs → acorex-modules-document-management-small-tiles-view.component-DyLRmcJH.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BMdnlNuG.mjs.map → acorex-modules-document-management-small-tiles-view.component-DyLRmcJH.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/package.json +6 -6
|
@@ -5936,8 +5936,14 @@ class AXMDocumentManagerService {
|
|
|
5936
5936
|
* Creates a new file
|
|
5937
5937
|
*/
|
|
5938
5938
|
async createFile(data) {
|
|
5939
|
-
const fileId = await this.documentService.insertOne(data);
|
|
5940
|
-
|
|
5939
|
+
const fileId = (await this.documentService.insertOne(data));
|
|
5940
|
+
let file;
|
|
5941
|
+
if (typeof fileId === 'object' && fileId !== null && 'result' in fileId) {
|
|
5942
|
+
file = await this.documentService.getOne(fileId.result);
|
|
5943
|
+
}
|
|
5944
|
+
else {
|
|
5945
|
+
file = await this.documentService.getOne(fileId);
|
|
5946
|
+
}
|
|
5941
5947
|
return this.mapFileToNode(file);
|
|
5942
5948
|
}
|
|
5943
5949
|
/**
|
|
@@ -6055,7 +6061,7 @@ class AXMDocumentManagerService {
|
|
|
6055
6061
|
* Moves a node to another location
|
|
6056
6062
|
*/
|
|
6057
6063
|
async moveTo(options) {
|
|
6058
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6064
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-WxmS0fOY.mjs')).AXMDocumentDriveChooseComponent;
|
|
6059
6065
|
const popup = await this.popupService.open(comp, {
|
|
6060
6066
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
|
6061
6067
|
data: {
|
|
@@ -6088,7 +6094,7 @@ class AXMDocumentManagerService {
|
|
|
6088
6094
|
* Copies a node to another location
|
|
6089
6095
|
*/
|
|
6090
6096
|
async copyTo(options) {
|
|
6091
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6097
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-WxmS0fOY.mjs')).AXMDocumentDriveChooseComponent;
|
|
6092
6098
|
const popup = await this.popupService.open(comp, {
|
|
6093
6099
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
|
6094
6100
|
data: {
|
|
@@ -6541,7 +6547,7 @@ class AXMDocumentManagerService {
|
|
|
6541
6547
|
* Shows choose file dialog
|
|
6542
6548
|
*/
|
|
6543
6549
|
async showChooseFileDialog(scope) {
|
|
6544
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6550
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-WxmS0fOY.mjs')).AXMDocumentDriveChooseComponent;
|
|
6545
6551
|
const result = await this.popupService.open(comp, {
|
|
6546
6552
|
title: await this.translate.translateAsync('@document-management:actions.choose-from-drive'),
|
|
6547
6553
|
data: {
|
|
@@ -7749,13 +7755,13 @@ class AXMDocumentExplorerComponent {
|
|
|
7749
7755
|
this.showContextMenu = input(true, ...(ngDevMode ? [{ debugName: "showContextMenu" }] : []));
|
|
7750
7756
|
this.view = signal(null, ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
7751
7757
|
this.viewMap = {
|
|
7752
|
-
list: async () => (await import('./acorex-modules-document-management-list-view.component-
|
|
7753
|
-
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-
|
|
7754
|
-
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-
|
|
7755
|
-
details: async () => (await import('./acorex-modules-document-management-details-view.component-
|
|
7756
|
-
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-
|
|
7757
|
-
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-
|
|
7758
|
-
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-
|
|
7758
|
+
list: async () => (await import('./acorex-modules-document-management-list-view.component-CvPkInJy.mjs')).AXMDocumentExplorerListViewComponent,
|
|
7759
|
+
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-DyLRmcJH.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
|
7760
|
+
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-BkcKvoe6.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
|
7761
|
+
details: async () => (await import('./acorex-modules-document-management-details-view.component-BhqjkUbV.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
|
7762
|
+
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-cYzLaOAQ.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
|
7763
|
+
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-C30ghzKp.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
|
7764
|
+
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-OOvQKX6g.mjs')).AXMDocumentExplorerAttachmentComponent,
|
|
7759
7765
|
};
|
|
7760
7766
|
this.#effect = effect(() => {
|
|
7761
7767
|
if (this.vm.loadingFolderId() == null) {
|
|
@@ -7885,9 +7891,16 @@ const UploadFromDriveHookProvider = {
|
|
|
7885
7891
|
]);
|
|
7886
7892
|
// Process files based on attachment type
|
|
7887
7893
|
for await (const item of result) {
|
|
7888
|
-
if (
|
|
7894
|
+
if (item.type === 'folder') {
|
|
7889
7895
|
continue;
|
|
7890
7896
|
}
|
|
7897
|
+
if (typeof item.fileId === 'string') {
|
|
7898
|
+
item.fileId = {
|
|
7899
|
+
id: item.fileId,
|
|
7900
|
+
name: '',
|
|
7901
|
+
status: 'uploading',
|
|
7902
|
+
};
|
|
7903
|
+
}
|
|
7891
7904
|
const currentFiles = host.getValue();
|
|
7892
7905
|
const fileIndex = currentFiles.findIndex((f) => f.id === (item.fileId?.id ?? ''));
|
|
7893
7906
|
if (fileIndex === -1) {
|
|
@@ -7912,7 +7925,7 @@ const UploadFromDriveHookProvider = {
|
|
|
7912
7925
|
else {
|
|
7913
7926
|
// Clone: get file info and create blob
|
|
7914
7927
|
try {
|
|
7915
|
-
const storageInfo = await fileStorageService.getInfo(item.fileId
|
|
7928
|
+
const storageInfo = await fileStorageService.getInfo(item.fileId?.id ?? '');
|
|
7916
7929
|
if (!storageInfo) {
|
|
7917
7930
|
const currentFiles = host.getValue();
|
|
7918
7931
|
host.setValue(currentFiles.filter((f) => f.id !== (item.fileId?.id ?? '')));
|
|
@@ -8341,7 +8354,7 @@ class AXMDocumentSignaturePopupAction extends AXPWorkflowAction {
|
|
|
8341
8354
|
const documentId = context.getVariable('options.id');
|
|
8342
8355
|
const documentTitle = context.getVariable('options.title');
|
|
8343
8356
|
const fileId = context.getVariable('options.fileId');
|
|
8344
|
-
const comp = await import('./acorex-modules-document-management-document-signature-popup.component-
|
|
8357
|
+
const comp = await import('./acorex-modules-document-management-document-signature-popup.component-DGWY6fSe.mjs')
|
|
8345
8358
|
.then(x => x.AXMDocumentSignaturePopupComponent);
|
|
8346
8359
|
console.log(fileId);
|
|
8347
8360
|
const result = await this.popupService.open(comp, {
|
|
@@ -8911,11 +8924,11 @@ function routesFacory() {
|
|
|
8911
8924
|
children: [
|
|
8912
8925
|
{
|
|
8913
8926
|
path: '',
|
|
8914
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
|
8927
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-D8VzFK-5.mjs').then((c) => c.AXMDocumentDriveComponent),
|
|
8915
8928
|
},
|
|
8916
8929
|
{
|
|
8917
8930
|
path: ':id',
|
|
8918
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
|
8931
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-D8VzFK-5.mjs').then((c) => c.AXMDocumentDriveComponent),
|
|
8919
8932
|
},
|
|
8920
8933
|
],
|
|
8921
8934
|
},
|
|
@@ -8960,7 +8973,7 @@ class AXMDocumentManagementModule {
|
|
|
8960
8973
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
8961
8974
|
useFactory: async () => {
|
|
8962
8975
|
const injector = inject(Injector);
|
|
8963
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
|
8976
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-CODjZ6lP.mjs')).AXMPermissionDefinitionProvider;
|
|
8964
8977
|
return new provider(injector);
|
|
8965
8978
|
},
|
|
8966
8979
|
multi: true,
|
|
@@ -9087,7 +9100,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
9087
9100
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
9088
9101
|
useFactory: async () => {
|
|
9089
9102
|
const injector = inject(Injector);
|
|
9090
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
|
9103
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-CODjZ6lP.mjs')).AXMPermissionDefinitionProvider;
|
|
9091
9104
|
return new provider(injector);
|
|
9092
9105
|
},
|
|
9093
9106
|
multi: true,
|
|
@@ -9117,4 +9130,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
9117
9130
|
*/
|
|
9118
9131
|
|
|
9119
9132
|
export { AXPDocumentExplorerViewModel as A, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as B, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as C, documentRelatedFactory as D, folderFactory as E, AXMFolderService as F, AXMFolderServiceImpl as G, AXMFolderEntityModule as H, reviewFactory as I, AXMReviewService as J, AXMReviewServiceImpl as K, AXMReviewEntityModule as L, distributionFactory as M, AXMDistributionService as N, AXMDistributionServiceImpl as O, AXMDistributionEntityModule as P, distributionInteractionFactory as Q, RootConfig as R, AXMDistributionInteractionServiceImpl as S, AXMDistributionInteractionEntityModule as T, AXMDocumentReletedEntityModule as U, AXMEntityProvider as V, AXMMenuProvider as W, AXMSearchCommandProvider as X, AXMSettingProvider as Y, AXMDocumentManagerService as a, AXMDocumentExplorerComponent as b, AXMPermissionsKeys as c, AXMDistributionInteractionService as d, AXMFolderPathBreadcrumbsComponent as e, AXMDocumentManagementModule as f, documentFactory as g, AXMDocumentManagementDocumentEntityModule as h, AXMDocumentService as i, AXMDocumentServiceImpl as j, getNextStatus as k, canTransition as l, documentTypeFactory as m, AXMDocumentManagementDocumentTypeEntityModule as n, AXMDocumentTypeService as o, AXMDocumentTypeServiceImpl as p, documentTypeMetaDefinitionfactory as q, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as r, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as s, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as t, documentTypeMetaValueFactory as u, AXMDocumentManagementDocumentTypeMetaValueEntityModule as v, AXMDocumentManagementDocumentTypeMetaValueEntityService as w, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as x, documentTypeStatusDefinitionFactory as y, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as z };
|
|
9120
|
-
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-
|
|
9133
|
+
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-Cd7_tQ9I.mjs.map
|