@acorex/modules 19.4.9 → 19.4.10
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-BATdoqJi.mjs → acorex-modules-document-management-acorex-modules-document-management-lAGMGi3Y.mjs} +84 -41
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-lAGMGi3Y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs → acorex-modules-document-management-attachment-widget.component-DieghltT.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs.map → acorex-modules-document-management-attachment-widget.component-DieghltT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs → acorex-modules-document-management-create-folder-dialog.component-Ddzknhp0.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs.map → acorex-modules-document-management-create-folder-dialog.component-Ddzknhp0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-CvHIETNf.mjs → acorex-modules-document-management-details-view.component-irEPa71J.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-CvHIETNf.mjs.map → acorex-modules-document-management-details-view.component-irEPa71J.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs → acorex-modules-document-management-drive-choose.component-eAqk3eca.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs.map → acorex-modules-document-management-drive-choose.component-eAqk3eca.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-Crh10Z5J.mjs → acorex-modules-document-management-drive.component-TNwvgpB_.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-Crh10Z5J.mjs.map → acorex-modules-document-management-drive.component-TNwvgpB_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs → acorex-modules-document-management-large-icons-view.component-iBkydbXJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs.map → acorex-modules-document-management-large-icons-view.component-iBkydbXJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs → acorex-modules-document-management-large-tiles-view.component-BUnwhB1D.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs.map → acorex-modules-document-management-large-tiles-view.component-BUnwhB1D.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-BHEwRA3m.mjs → acorex-modules-document-management-list-view.component-Bu6EA_LC.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-BHEwRA3m.mjs.map → acorex-modules-document-management-list-view.component-Bu6EA_LC.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs → acorex-modules-document-management-permission-definition.provider-D0O5DPux.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs.map → acorex-modules-document-management-permission-definition.provider-D0O5DPux.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs → acorex-modules-document-management-rename-node-dialog.component-CSnz9s0C.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs.map → acorex-modules-document-management-rename-node-dialog.component-CSnz9s0C.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs → acorex-modules-document-management-small-icons-view.component-BvgWgPdU.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs.map → acorex-modules-document-management-small-icons-view.component-BvgWgPdU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs → acorex-modules-document-management-small-tiles-view.component-CGAmXmDZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs.map → acorex-modules-document-management-small-tiles-view.component-CGAmXmDZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs → acorex-modules-platform-management-acorex-modules-platform-management-l00277iI.mjs} +177 -178
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-l00277iI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs → acorex-modules-platform-management-list-version.component-CbjbxadS.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs.map → acorex-modules-platform-management-list-version.component-CbjbxadS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs → acorex-modules-platform-management-settings.provider-DKwQuq9_.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs.map → acorex-modules-platform-management-settings.provider-DKwQuq9_.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/package.json +1 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BATdoqJi.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs.map +0 -1
@@ -3519,7 +3519,7 @@ class AXMDocumentManagerService {
|
|
3519
3519
|
* Moves a node to another location
|
3520
3520
|
*/
|
3521
3521
|
async moveTo(options) {
|
3522
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3522
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-eAqk3eca.mjs')).AXMDocumentDriveChooseComponent;
|
3523
3523
|
const popup = await this.popupService.open(comp, {
|
3524
3524
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
3525
3525
|
data: {
|
@@ -3552,7 +3552,7 @@ class AXMDocumentManagerService {
|
|
3552
3552
|
* Copies a node to another location
|
3553
3553
|
*/
|
3554
3554
|
async copyTo(options) {
|
3555
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3555
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-eAqk3eca.mjs')).AXMDocumentDriveChooseComponent;
|
3556
3556
|
const popup = await this.popupService.open(comp, {
|
3557
3557
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
3558
3558
|
data: {
|
@@ -3662,23 +3662,30 @@ class AXMDocumentManagerService {
|
|
3662
3662
|
});
|
3663
3663
|
if (result.data != null) {
|
3664
3664
|
const { uploads, ...metaContext } = result.data.context;
|
3665
|
-
for (const
|
3666
|
-
|
3665
|
+
for (const listItem of uploads) { // listItem is AXPFileListItem
|
3666
|
+
let actualFile;
|
3667
|
+
if (listItem.source?.kind === 'blob' && listItem.source.value instanceof Blob) {
|
3668
|
+
actualFile = listItem.source.value;
|
3669
|
+
}
|
3670
|
+
if (!actualFile) {
|
3671
|
+
console.warn(`Skipping item without a valid blob source in uploadFileByType: ${listItem.name}`);
|
3672
|
+
continue;
|
3673
|
+
}
|
3667
3674
|
const f = await this.fileService.save({
|
3668
3675
|
category: 'document',
|
3669
|
-
file:
|
3676
|
+
file: actualFile,
|
3670
3677
|
refId: folderId,
|
3671
3678
|
refType: `${RootConfig.module.name}.${RootConfig.entities.folder.name}`,
|
3672
|
-
name:
|
3679
|
+
name: listItem.name,
|
3673
3680
|
});
|
3674
3681
|
await this.fileService.commit(f.fileId);
|
3675
|
-
|
3682
|
+
await this.documentService.insertOne({
|
3676
3683
|
fileId: f.fileId,
|
3677
3684
|
meta: metaContext,
|
3678
3685
|
parentId: folderId,
|
3679
|
-
size:
|
3680
|
-
name:
|
3681
|
-
title:
|
3686
|
+
size: listItem.size ?? 0,
|
3687
|
+
name: listItem.name,
|
3688
|
+
title: listItem.name,
|
3682
3689
|
});
|
3683
3690
|
}
|
3684
3691
|
return true;
|
@@ -3703,26 +3710,37 @@ class AXMDocumentManagerService {
|
|
3703
3710
|
const resultData = [];
|
3704
3711
|
if (result.data != null) {
|
3705
3712
|
const { uploads, ...metaContext } = result.data.context;
|
3706
|
-
for (const
|
3707
|
-
|
3708
|
-
|
3709
|
-
|
3710
|
-
|
3713
|
+
for (const listItem of uploads) { // listItem is AXPFileListItem
|
3714
|
+
let storageFileId;
|
3715
|
+
if (listItem.source?.kind === 'fileId' && typeof listItem.source.value === 'string') {
|
3716
|
+
storageFileId = listItem.source.value;
|
3717
|
+
}
|
3718
|
+
else if (listItem.id) {
|
3719
|
+
storageFileId = listItem.id;
|
3720
|
+
console.warn(`Using listItem.id as storageFileId for virtual upload: ${listItem.name}. Verify this is the intended fallback.`);
|
3721
|
+
}
|
3722
|
+
if (!storageFileId) {
|
3723
|
+
console.error(`Cannot determine storageFileId for virtual upload: ${listItem.name}`);
|
3724
|
+
continue;
|
3725
|
+
}
|
3726
|
+
await this.fileService.commit(storageFileId);
|
3727
|
+
const documentEntityId = await this.documentService.insertOne({
|
3728
|
+
fileId: storageFileId,
|
3711
3729
|
meta: metaContext,
|
3712
3730
|
parentId: 'virtual',
|
3713
|
-
size:
|
3714
|
-
name:
|
3715
|
-
title:
|
3731
|
+
size: listItem.size ?? 0,
|
3732
|
+
name: listItem.name,
|
3733
|
+
title: listItem.name,
|
3716
3734
|
});
|
3717
3735
|
resultData.push({
|
3718
|
-
id:
|
3719
|
-
name:
|
3736
|
+
id: documentEntityId,
|
3737
|
+
name: listItem.name,
|
3720
3738
|
parentId: 'virtual',
|
3721
3739
|
type: 'file',
|
3722
3740
|
storageType: 'virtual',
|
3723
|
-
size:
|
3741
|
+
size: listItem.size ?? 0,
|
3724
3742
|
meta: metaContext,
|
3725
|
-
fileId:
|
3743
|
+
fileId: storageFileId
|
3726
3744
|
});
|
3727
3745
|
}
|
3728
3746
|
return resultData;
|
@@ -3813,7 +3831,7 @@ class AXMDocumentManagerService {
|
|
3813
3831
|
* Shows folder edit dialog
|
3814
3832
|
*/
|
3815
3833
|
async showFolderEditDialog(node) {
|
3816
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
3834
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-Ddzknhp0.mjs'))
|
3817
3835
|
.AXMCreateFolderDialog;
|
3818
3836
|
const popup = await this.popupService.open(comp, {
|
3819
3837
|
title: await this.translate.translateAsync('@document-management:actions.update-folder'),
|
@@ -3827,7 +3845,7 @@ class AXMDocumentManagerService {
|
|
3827
3845
|
* Shows create folder dialog
|
3828
3846
|
*/
|
3829
3847
|
async showCreateFolderDialog(parentId) {
|
3830
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
3848
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-Ddzknhp0.mjs'))
|
3831
3849
|
.AXMCreateFolderDialog;
|
3832
3850
|
const popup = await this.popupService.open(comp, {
|
3833
3851
|
title: await this.translate.translateAsync('@document-management:actions.create-folder'),
|
@@ -3841,7 +3859,7 @@ class AXMDocumentManagerService {
|
|
3841
3859
|
* Shows rename popup for a node
|
3842
3860
|
*/
|
3843
3861
|
async showRenamePopup(node) {
|
3844
|
-
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-
|
3862
|
+
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-CSnz9s0C.mjs'))
|
3845
3863
|
.AXMRenameNodeDialog;
|
3846
3864
|
const popup = await this.popupService.open(comp, {
|
3847
3865
|
title: 't("actions.rename")',
|
@@ -3867,7 +3885,7 @@ class AXMDocumentManagerService {
|
|
3867
3885
|
* Shows choose file dialog
|
3868
3886
|
*/
|
3869
3887
|
async showChooseFileDialog(scope) {
|
3870
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3888
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-eAqk3eca.mjs')).AXMDocumentDriveChooseComponent;
|
3871
3889
|
const result = await this.popupService.open(comp, {
|
3872
3890
|
title: await this.translate.translateAsync('@document-management:actions.choose-from-drive'),
|
3873
3891
|
data: {
|
@@ -5029,13 +5047,13 @@ class AXMDocumentExplorerComponent {
|
|
5029
5047
|
this.showContextMenu = input(true);
|
5030
5048
|
this.view = signal(null);
|
5031
5049
|
this.viewMap = {
|
5032
|
-
list: async () => (await import('./acorex-modules-document-management-list-view.component-
|
5033
|
-
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-
|
5034
|
-
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-
|
5035
|
-
details: async () => (await import('./acorex-modules-document-management-details-view.component-
|
5036
|
-
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-
|
5037
|
-
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-
|
5038
|
-
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-
|
5050
|
+
list: async () => (await import('./acorex-modules-document-management-list-view.component-Bu6EA_LC.mjs')).AXMDocumentExplorerListViewComponent,
|
5051
|
+
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-CGAmXmDZ.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
5052
|
+
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-BUnwhB1D.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
5053
|
+
details: async () => (await import('./acorex-modules-document-management-details-view.component-irEPa71J.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
5054
|
+
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-iBkydbXJ.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
5055
|
+
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-BvgWgPdU.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
5056
|
+
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-DieghltT.mjs')).AXMDocumentExplorerAttachmentComponent,
|
5039
5057
|
};
|
5040
5058
|
this.#effect = effect(() => {
|
5041
5059
|
if (this.vm.loadingFolderId() == null) {
|
@@ -5144,9 +5162,34 @@ class AXPFileUploaderWidgetExtensionComponent {
|
|
5144
5162
|
}
|
5145
5163
|
async chooseFromDrive(scope) {
|
5146
5164
|
const result = await this.driveService.showChooseFileDialog(scope);
|
5147
|
-
const files = await Promise.all(result.map(async (item) =>
|
5148
|
-
|
5149
|
-
|
5165
|
+
const files = (await Promise.all(result.map(async (item) => {
|
5166
|
+
if (!item.fileId || item.isFolder) {
|
5167
|
+
return null;
|
5168
|
+
}
|
5169
|
+
try {
|
5170
|
+
const storageInfo = await this.fileStorageService.getInfo(item.fileId);
|
5171
|
+
if (!storageInfo) {
|
5172
|
+
console.warn(`Could not retrieve storage info for fileId: ${item.fileId}`);
|
5173
|
+
return null;
|
5174
|
+
}
|
5175
|
+
return {
|
5176
|
+
id: storageInfo.fileId,
|
5177
|
+
name: storageInfo.name || item.name || 'Unnamed File',
|
5178
|
+
size: storageInfo.size,
|
5179
|
+
type: storageInfo.mimeType,
|
5180
|
+
status: 'uploaded', // Files from drive are considered uploaded
|
5181
|
+
source: {
|
5182
|
+
kind: 'blob',
|
5183
|
+
value: new Blob([storageInfo.binary], { type: storageInfo.mimeType })
|
5184
|
+
}
|
5185
|
+
};
|
5186
|
+
}
|
5187
|
+
catch (error) {
|
5188
|
+
console.error(`Error processing fileId ${item.fileId}:`, error);
|
5189
|
+
return null;
|
5190
|
+
}
|
5191
|
+
}))).filter(Boolean);
|
5192
|
+
this.host.setValue([...this.host.getValue(), ...files]);
|
5150
5193
|
}
|
5151
5194
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXPFileUploaderWidgetExtensionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
5152
5195
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: AXPFileUploaderWidgetExtensionComponent, isStandalone: true, selector: "axp-file-uploader-widget-extension", providers: [], ngImport: i0, template: `
|
@@ -5239,11 +5282,11 @@ function routesFacory() {
|
|
5239
5282
|
children: [
|
5240
5283
|
{
|
5241
5284
|
path: '',
|
5242
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
5285
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-TNwvgpB_.mjs').then((c) => c.AXMDocumentDriveComponent),
|
5243
5286
|
},
|
5244
5287
|
{
|
5245
5288
|
path: ':id',
|
5246
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
5289
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-TNwvgpB_.mjs').then((c) => c.AXMDocumentDriveComponent),
|
5247
5290
|
},
|
5248
5291
|
],
|
5249
5292
|
},
|
@@ -5288,7 +5331,7 @@ class AXMDocumentManagementModule {
|
|
5288
5331
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5289
5332
|
useFactory: async () => {
|
5290
5333
|
const injector = inject(Injector);
|
5291
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5334
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-D0O5DPux.mjs')).AXMPermissionDefinitionProvider;
|
5292
5335
|
return new provider(injector);
|
5293
5336
|
},
|
5294
5337
|
multi: true,
|
@@ -5388,7 +5431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5388
5431
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5389
5432
|
useFactory: async () => {
|
5390
5433
|
const injector = inject(Injector);
|
5391
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5434
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-D0O5DPux.mjs')).AXMPermissionDefinitionProvider;
|
5392
5435
|
return new provider(injector);
|
5393
5436
|
},
|
5394
5437
|
multi: true,
|
@@ -5417,4 +5460,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5417
5460
|
*/
|
5418
5461
|
|
5419
5462
|
export { AXPDocumentExplorerViewModel as A, AXMFolderService as B, AXMFolderServiceImpl as C, AXMEntityProvider as D, AXMMenuProvider as E, AXMSearchCommandProvider as F, AXMSettingProvider as G, RootConfig as R, AXMDocumentManagerService as a, AXMDocumentExplorerComponent as b, AXMFolderPathBreadcrumbsComponent as c, AXMPermissionsKeys as d, AXMDocumentTypeService as e, AXMDocumentManagementModule as f, documentFactory as g, AXMDocumentManagementDocumentEntityModule as h, AXMDocumentService as i, AXMDocumentServiceImpl as j, documentTypeFactory as k, AXMDocumentManagementDocumentTypeEntityModule as l, AXMDocumentTypeServiceImpl as m, documentTypeMetaDefinitionfactory as n, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as o, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as p, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as q, documentTypeMetaValueFactory as r, AXMDocumentManagementDocumentTypeMetaValueEntityModule as s, AXMDocumentManagementDocumentTypeMetaValueEntityService as t, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as u, documentTypeStatusDefinitionFactory as v, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as w, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as x, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as y, folderFactory as z };
|
5420
|
-
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-
|
5463
|
+
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-lAGMGi3Y.mjs.map
|