@acorex/modules 20.0.22 → 20.0.25
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/document-management/index.d.ts +3 -0
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CJYBHKUf.mjs → acorex-modules-document-management-acorex-modules-document-management-Bte3VGKC.mjs} +243 -51
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Bte3VGKC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cc-hsCCX.mjs → acorex-modules-document-management-attachment-widget.component-Cc0anIMV.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cc-hsCCX.mjs.map → acorex-modules-document-management-attachment-widget.component-Cc0anIMV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CMhwz1-0.mjs → acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-CMhwz1-0.mjs.map → acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-CqK0rCnR.mjs → acorex-modules-document-management-details-view.component-BeN0NPcy.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-CqK0rCnR.mjs.map → acorex-modules-document-management-details-view.component-BeN0NPcy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-r8KKbY1d.mjs → acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-r8KKbY1d.mjs.map → acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-0wxNHSJr.mjs → acorex-modules-document-management-drive.component-CUej0GjY.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-0wxNHSJr.mjs.map → acorex-modules-document-management-drive.component-CUej0GjY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-z-EQb_uG.mjs → acorex-modules-document-management-large-icons-view.component-BuwrkLhe.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-z-EQb_uG.mjs.map → acorex-modules-document-management-large-icons-view.component-BuwrkLhe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Ce9h5m2O.mjs → acorex-modules-document-management-large-tiles-view.component-Cs-mjiQX.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Ce9h5m2O.mjs.map → acorex-modules-document-management-large-tiles-view.component-Cs-mjiQX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-DZKdXqAA.mjs → acorex-modules-document-management-list-view.component-1M2rIOGv.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-DZKdXqAA.mjs.map → acorex-modules-document-management-list-view.component-1M2rIOGv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-C31fYGZT.mjs → acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-C31fYGZT.mjs.map → acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-CMmT_vVe.mjs → acorex-modules-document-management-rename-node-dialog.component-DWzD41AV.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-CMmT_vVe.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DWzD41AV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DI7c4jHZ.mjs → acorex-modules-document-management-small-icons-view.component-Dh5Di_2Y.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DI7c4jHZ.mjs.map → acorex-modules-document-management-small-icons-view.component-Dh5Di_2Y.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BYJfNu6O.mjs → acorex-modules-document-management-small-tiles-view.component-mOjQbw-f.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BYJfNu6O.mjs.map → acorex-modules-document-management-small-tiles-view.component-mOjQbw-f.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-workflow-management-task-board.page-Dp7SJ3NA.mjs → acorex-modules-workflow-management-task-board.page-zaSchG-u.mjs} +207 -86
- package/fesm2022/acorex-modules-workflow-management-task-board.page-zaSchG-u.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +2 -2
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/package.json +1 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CJYBHKUf.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-task-board.page-Dp7SJ3NA.mjs.map +0 -1
@@ -128,6 +128,7 @@ interface AXMDocumentManagementDocumentTypeEntityModel extends AXPEntityModel<st
|
|
128
128
|
maxSize: number;
|
129
129
|
isEncrypted: boolean;
|
130
130
|
isMultiple: boolean;
|
131
|
+
enableVersioning: boolean;
|
131
132
|
meta: AXPMetaDataDefinition[];
|
132
133
|
type: DocumentTypeFileOutput;
|
133
134
|
}
|
@@ -143,12 +144,14 @@ declare class AXMDocumentTypeServiceImpl extends AXMDocumentTypeService {
|
|
143
144
|
interface AXMDocumentManagementDocumentEntityModel extends AXPEntityModel<string> {
|
144
145
|
name: string;
|
145
146
|
title: string;
|
147
|
+
type?: string;
|
146
148
|
parentId: string;
|
147
149
|
fileId: string;
|
148
150
|
refRecordId?: string;
|
149
151
|
refEntity?: string;
|
150
152
|
description?: string;
|
151
153
|
size: number;
|
154
|
+
version?: number;
|
152
155
|
meta?: {
|
153
156
|
[key: string]: {
|
154
157
|
name: string;
|
@@ -381,6 +381,20 @@ async function documentFactory(injector) {
|
|
381
381
|
},
|
382
382
|
],
|
383
383
|
},
|
384
|
+
{
|
385
|
+
name: 'version',
|
386
|
+
title: `t("version", { scope: "${i18n}" })`,
|
387
|
+
groupId: 'section',
|
388
|
+
schema: {
|
389
|
+
dataType: 'number',
|
390
|
+
interface: {
|
391
|
+
type: AXPWidgetsCatalog.number,
|
392
|
+
options: {
|
393
|
+
readOnly: true,
|
394
|
+
},
|
395
|
+
},
|
396
|
+
},
|
397
|
+
},
|
384
398
|
],
|
385
399
|
columns: [{ name: 'name' }, { name: 'title' }],
|
386
400
|
commands: {
|
@@ -786,7 +800,40 @@ async function documentTypeFactory(injector) {
|
|
786
800
|
schema: {
|
787
801
|
dataType: 'boolean',
|
788
802
|
interface: {
|
789
|
-
type: AXPWidgetsCatalog.
|
803
|
+
type: AXPWidgetsCatalog.toggle,
|
804
|
+
},
|
805
|
+
},
|
806
|
+
},
|
807
|
+
{
|
808
|
+
name: 'needReview',
|
809
|
+
title: `t("needReview", { scope: "${i18n}" })`,
|
810
|
+
groupId: 'section',
|
811
|
+
schema: {
|
812
|
+
dataType: 'boolean',
|
813
|
+
interface: {
|
814
|
+
type: AXPWidgetsCatalog.toggle,
|
815
|
+
},
|
816
|
+
},
|
817
|
+
},
|
818
|
+
{
|
819
|
+
name: 'allowDistribute',
|
820
|
+
title: `t("allowDistribute", { scope: "${i18n}" })`,
|
821
|
+
groupId: 'section',
|
822
|
+
schema: {
|
823
|
+
dataType: 'boolean',
|
824
|
+
interface: {
|
825
|
+
type: AXPWidgetsCatalog.toggle,
|
826
|
+
},
|
827
|
+
},
|
828
|
+
},
|
829
|
+
{
|
830
|
+
name: 'enableVersioning',
|
831
|
+
title: `t("enableVersioning", { scope: "${i18n}" })`,
|
832
|
+
groupId: 'section',
|
833
|
+
schema: {
|
834
|
+
dataType: 'boolean',
|
835
|
+
interface: {
|
836
|
+
type: AXPWidgetsCatalog.toggle,
|
790
837
|
},
|
791
838
|
},
|
792
839
|
},
|
@@ -896,6 +943,36 @@ async function documentTypeFactory(injector) {
|
|
896
943
|
},
|
897
944
|
},
|
898
945
|
},
|
946
|
+
{
|
947
|
+
name: 'needReview',
|
948
|
+
layout: {
|
949
|
+
positions: {
|
950
|
+
lg: {
|
951
|
+
colSpan: 6,
|
952
|
+
},
|
953
|
+
},
|
954
|
+
},
|
955
|
+
},
|
956
|
+
{
|
957
|
+
name: 'allowDistribute',
|
958
|
+
layout: {
|
959
|
+
positions: {
|
960
|
+
lg: {
|
961
|
+
colSpan: 6,
|
962
|
+
},
|
963
|
+
},
|
964
|
+
},
|
965
|
+
},
|
966
|
+
{
|
967
|
+
name: 'enableVersioning',
|
968
|
+
layout: {
|
969
|
+
positions: {
|
970
|
+
lg: {
|
971
|
+
colSpan: 6,
|
972
|
+
},
|
973
|
+
},
|
974
|
+
},
|
975
|
+
},
|
899
976
|
{
|
900
977
|
name: 'meta',
|
901
978
|
layout: {
|
@@ -965,6 +1042,36 @@ async function documentTypeFactory(injector) {
|
|
965
1042
|
},
|
966
1043
|
},
|
967
1044
|
},
|
1045
|
+
{
|
1046
|
+
name: 'needReview',
|
1047
|
+
layout: {
|
1048
|
+
positions: {
|
1049
|
+
lg: {
|
1050
|
+
colSpan: 6,
|
1051
|
+
},
|
1052
|
+
},
|
1053
|
+
},
|
1054
|
+
},
|
1055
|
+
{
|
1056
|
+
name: 'allowDistribute',
|
1057
|
+
layout: {
|
1058
|
+
positions: {
|
1059
|
+
lg: {
|
1060
|
+
colSpan: 6,
|
1061
|
+
},
|
1062
|
+
},
|
1063
|
+
},
|
1064
|
+
},
|
1065
|
+
{
|
1066
|
+
name: 'enableVersioning',
|
1067
|
+
layout: {
|
1068
|
+
positions: {
|
1069
|
+
lg: {
|
1070
|
+
colSpan: 6,
|
1071
|
+
},
|
1072
|
+
},
|
1073
|
+
},
|
1074
|
+
},
|
968
1075
|
{
|
969
1076
|
name: 'meta',
|
970
1077
|
layout: {
|
@@ -1042,6 +1149,36 @@ async function documentTypeFactory(injector) {
|
|
1042
1149
|
},
|
1043
1150
|
},
|
1044
1151
|
},
|
1152
|
+
{
|
1153
|
+
name: 'needReview',
|
1154
|
+
layout: {
|
1155
|
+
positions: {
|
1156
|
+
lg: {
|
1157
|
+
colSpan: 6,
|
1158
|
+
},
|
1159
|
+
},
|
1160
|
+
},
|
1161
|
+
},
|
1162
|
+
{
|
1163
|
+
name: 'allowDistribute',
|
1164
|
+
layout: {
|
1165
|
+
positions: {
|
1166
|
+
lg: {
|
1167
|
+
colSpan: 6,
|
1168
|
+
},
|
1169
|
+
},
|
1170
|
+
},
|
1171
|
+
},
|
1172
|
+
{
|
1173
|
+
name: 'enableVersioning',
|
1174
|
+
layout: {
|
1175
|
+
positions: {
|
1176
|
+
lg: {
|
1177
|
+
colSpan: 6,
|
1178
|
+
},
|
1179
|
+
},
|
1180
|
+
},
|
1181
|
+
},
|
1045
1182
|
{
|
1046
1183
|
name: 'meta',
|
1047
1184
|
layout: {
|
@@ -3497,7 +3634,7 @@ class AXMDocumentManagerService {
|
|
3497
3634
|
* Moves a node to another location
|
3498
3635
|
*/
|
3499
3636
|
async moveTo(options) {
|
3500
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3637
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs')).AXMDocumentDriveChooseComponent;
|
3501
3638
|
const popup = await this.popupService.open(comp, {
|
3502
3639
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
3503
3640
|
data: {
|
@@ -3530,7 +3667,7 @@ class AXMDocumentManagerService {
|
|
3530
3667
|
* Copies a node to another location
|
3531
3668
|
*/
|
3532
3669
|
async copyTo(options) {
|
3533
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
3670
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs')).AXMDocumentDriveChooseComponent;
|
3534
3671
|
const popup = await this.popupService.open(comp, {
|
3535
3672
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
3536
3673
|
data: {
|
@@ -3657,6 +3794,31 @@ class AXMDocumentManagerService {
|
|
3657
3794
|
name: listItem.name,
|
3658
3795
|
});
|
3659
3796
|
await this.fileService.commit(f.fileId);
|
3797
|
+
let version = 1;
|
3798
|
+
if (docType.enableVersioning) {
|
3799
|
+
try {
|
3800
|
+
const existingDocs = await this.documentService.query({
|
3801
|
+
skip: 0,
|
3802
|
+
take: 100,
|
3803
|
+
filter: {
|
3804
|
+
operator: null,
|
3805
|
+
logic: 'and',
|
3806
|
+
filters: [
|
3807
|
+
{ field: 'parentId', operator: { type: 'equal' }, value: folderId },
|
3808
|
+
{ field: 'type', operator: { type: 'equal' }, value: docType.id },
|
3809
|
+
{ field: 'name', operator: { type: 'equal' }, value: listItem.name },
|
3810
|
+
],
|
3811
|
+
},
|
3812
|
+
});
|
3813
|
+
if (existingDocs.items.length > 0) {
|
3814
|
+
const maxVer = Math.max(...existingDocs.items.map((d) => (d.version ?? 0)));
|
3815
|
+
version = maxVer + 1;
|
3816
|
+
}
|
3817
|
+
}
|
3818
|
+
catch (err) {
|
3819
|
+
console.warn('Version query failed', err);
|
3820
|
+
}
|
3821
|
+
}
|
3660
3822
|
await this.documentService.insertOne({
|
3661
3823
|
fileId: f.fileId,
|
3662
3824
|
meta: metaContext,
|
@@ -3664,6 +3826,8 @@ class AXMDocumentManagerService {
|
|
3664
3826
|
size: listItem.size ?? 0,
|
3665
3827
|
name: listItem.name,
|
3666
3828
|
title: listItem.name,
|
3829
|
+
type: docType.id,
|
3830
|
+
version,
|
3667
3831
|
});
|
3668
3832
|
}
|
3669
3833
|
return true;
|
@@ -3675,57 +3839,78 @@ class AXMDocumentManagerService {
|
|
3675
3839
|
return false;
|
3676
3840
|
}
|
3677
3841
|
/**
|
3678
|
-
* Uploads
|
3842
|
+
* Uploads file by document type to a specific folder
|
3679
3843
|
*/
|
3680
|
-
async
|
3844
|
+
async updateUploadFileByType(node) {
|
3681
3845
|
const comp = (await Promise.resolve().then(function () { return index; })).AXMDocumentTypeChooseFileComponent;
|
3846
|
+
console.log(node);
|
3682
3847
|
const result = await this.popupService.open(comp, {
|
3683
|
-
title: `
|
3848
|
+
title: `Edit ${node.documentTypes?.[0]?.title}`,
|
3684
3849
|
data: {
|
3685
|
-
documentType:
|
3850
|
+
documentType: node.documentTypes?.[0],
|
3686
3851
|
},
|
3687
3852
|
});
|
3688
|
-
const resultData = [];
|
3689
3853
|
if (result.data != null) {
|
3690
3854
|
const { uploads, result: metaContext } = result.data;
|
3691
3855
|
for (const listItem of uploads) { // listItem is AXPFileListItem
|
3692
|
-
let
|
3693
|
-
if (listItem.source?.kind === '
|
3694
|
-
|
3695
|
-
}
|
3696
|
-
else if (listItem.id) {
|
3697
|
-
storageFileId = listItem.id;
|
3698
|
-
console.warn(`Using listItem.id as storageFileId for virtual upload: ${listItem.name}. Verify this is the intended fallback.`);
|
3856
|
+
let actualFile;
|
3857
|
+
if (listItem.source?.kind === 'blob' && listItem.source.value instanceof Blob) {
|
3858
|
+
actualFile = listItem.source.value;
|
3699
3859
|
}
|
3700
|
-
if (!
|
3701
|
-
console.
|
3860
|
+
if (!actualFile) {
|
3861
|
+
console.warn(`Skipping item without a valid blob source in uploadFileByType: ${listItem.name}`);
|
3702
3862
|
continue;
|
3703
3863
|
}
|
3704
|
-
await this.fileService.
|
3705
|
-
|
3706
|
-
|
3864
|
+
const f = await this.fileService.save({
|
3865
|
+
category: 'document',
|
3866
|
+
file: actualFile,
|
3867
|
+
//refId: folderId,
|
3868
|
+
refId: node.parentId ?? '',
|
3869
|
+
refType: `${RootConfig.module.name}.${RootConfig.entities.folder.name}`,
|
3870
|
+
name: listItem.name,
|
3871
|
+
});
|
3872
|
+
await this.fileService.commit(f.fileId);
|
3873
|
+
let version = 1;
|
3874
|
+
if (node.documentTypes?.[0]?.enableVersioning) {
|
3875
|
+
try {
|
3876
|
+
const existingDocs = await this.documentService.query({
|
3877
|
+
skip: 0,
|
3878
|
+
take: 100,
|
3879
|
+
filter: {
|
3880
|
+
operator: null,
|
3881
|
+
logic: 'and',
|
3882
|
+
filters: [
|
3883
|
+
{ field: 'parentId', operator: { type: 'equal' }, value: node.parentId },
|
3884
|
+
{ field: 'type', operator: { type: 'equal' }, value: node.documentTypes?.[0]?.id },
|
3885
|
+
{ field: 'name', operator: { type: 'equal' }, value: listItem.name },
|
3886
|
+
],
|
3887
|
+
},
|
3888
|
+
});
|
3889
|
+
if (existingDocs.items.length > 0) {
|
3890
|
+
const maxVer = Math.max(...existingDocs.items.map((d) => (d.version ?? 0)));
|
3891
|
+
version = maxVer + 1;
|
3892
|
+
}
|
3893
|
+
}
|
3894
|
+
catch (err) {
|
3895
|
+
console.warn('Version query failed', err);
|
3896
|
+
}
|
3897
|
+
}
|
3898
|
+
await this.documentService.updateOne(node.id, {
|
3899
|
+
fileId: f.fileId,
|
3707
3900
|
meta: metaContext,
|
3708
|
-
parentId:
|
3901
|
+
parentId: node.parentId ?? undefined,
|
3709
3902
|
size: listItem.size ?? 0,
|
3710
3903
|
name: listItem.name,
|
3711
3904
|
title: listItem.name,
|
3712
|
-
|
3713
|
-
resultData.push({
|
3714
|
-
id: documentEntityId,
|
3715
|
-
name: listItem.name,
|
3716
|
-
parentId: 'virtual',
|
3717
|
-
type: 'file',
|
3718
|
-
storageType: 'virtual',
|
3719
|
-
size: listItem.size ?? 0,
|
3720
|
-
meta: metaContext,
|
3721
|
-
fileId: storageFileId
|
3905
|
+
version,
|
3722
3906
|
});
|
3723
3907
|
}
|
3724
|
-
return
|
3908
|
+
return true;
|
3725
3909
|
}
|
3726
3910
|
else {
|
3727
|
-
return
|
3911
|
+
return false;
|
3728
3912
|
}
|
3913
|
+
return false;
|
3729
3914
|
}
|
3730
3915
|
//#endregion
|
3731
3916
|
//#region ---- Dialog Operations ----
|
@@ -3801,7 +3986,7 @@ class AXMDocumentManagerService {
|
|
3801
3986
|
* Shows folder edit dialog
|
3802
3987
|
*/
|
3803
3988
|
async showFolderEditDialog(node) {
|
3804
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
3989
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs'))
|
3805
3990
|
.AXMCreateFolderDialog;
|
3806
3991
|
const popup = await this.popupService.open(comp, {
|
3807
3992
|
title: await this.translate.translateAsync('@document-management:actions.update-folder'),
|
@@ -3815,7 +4000,7 @@ class AXMDocumentManagerService {
|
|
3815
4000
|
* Shows create folder dialog
|
3816
4001
|
*/
|
3817
4002
|
async showCreateFolderDialog(parentId) {
|
3818
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
4003
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs'))
|
3819
4004
|
.AXMCreateFolderDialog;
|
3820
4005
|
const popup = await this.popupService.open(comp, {
|
3821
4006
|
title: await this.translate.translateAsync('@document-management:actions.create-folder'),
|
@@ -3829,7 +4014,7 @@ class AXMDocumentManagerService {
|
|
3829
4014
|
* Shows rename popup for a node
|
3830
4015
|
*/
|
3831
4016
|
async showRenamePopup(node) {
|
3832
|
-
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-
|
4017
|
+
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-DWzD41AV.mjs'))
|
3833
4018
|
.AXMRenameNodeDialog;
|
3834
4019
|
const popup = await this.popupService.open(comp, {
|
3835
4020
|
title: 't("actions.rename")',
|
@@ -3855,7 +4040,7 @@ class AXMDocumentManagerService {
|
|
3855
4040
|
* Shows choose file dialog
|
3856
4041
|
*/
|
3857
4042
|
async showChooseFileDialog(scope) {
|
3858
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
4043
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs')).AXMDocumentDriveChooseComponent;
|
3859
4044
|
const result = await this.popupService.open(comp, {
|
3860
4045
|
title: await this.translate.translateAsync('@document-management:actions.choose-from-drive'),
|
3861
4046
|
data: {
|
@@ -4968,8 +5153,15 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
|
|
4968
5153
|
* Shows properties for a folder
|
4969
5154
|
*/
|
4970
5155
|
async showFolderProperty(node) {
|
4971
|
-
if (
|
4972
|
-
await
|
5156
|
+
if (node.type == 'folder') {
|
5157
|
+
if (await driveService.showFolderEditDialog(node)) {
|
5158
|
+
await this.refresh();
|
5159
|
+
}
|
5160
|
+
}
|
5161
|
+
else {
|
5162
|
+
if (await driveService.updateUploadFileByType(node)) {
|
5163
|
+
await this.refresh();
|
5164
|
+
}
|
4973
5165
|
}
|
4974
5166
|
},
|
4975
5167
|
/**
|
@@ -5100,13 +5292,13 @@ class AXMDocumentExplorerComponent {
|
|
5100
5292
|
this.showContextMenu = input(true);
|
5101
5293
|
this.view = signal(null);
|
5102
5294
|
this.viewMap = {
|
5103
|
-
list: async () => (await import('./acorex-modules-document-management-list-view.component-
|
5104
|
-
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-
|
5105
|
-
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-
|
5106
|
-
details: async () => (await import('./acorex-modules-document-management-details-view.component-
|
5107
|
-
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-
|
5108
|
-
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-
|
5109
|
-
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-
|
5295
|
+
list: async () => (await import('./acorex-modules-document-management-list-view.component-1M2rIOGv.mjs')).AXMDocumentExplorerListViewComponent,
|
5296
|
+
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-mOjQbw-f.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
5297
|
+
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-Cs-mjiQX.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
5298
|
+
details: async () => (await import('./acorex-modules-document-management-details-view.component-BeN0NPcy.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
5299
|
+
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-BuwrkLhe.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
5300
|
+
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-Dh5Di_2Y.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
5301
|
+
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-Cc0anIMV.mjs')).AXMDocumentExplorerAttachmentComponent,
|
5110
5302
|
};
|
5111
5303
|
this.#effect = effect(() => {
|
5112
5304
|
if (this.vm.loadingFolderId() == null) {
|
@@ -5433,11 +5625,11 @@ function routesFacory() {
|
|
5433
5625
|
children: [
|
5434
5626
|
{
|
5435
5627
|
path: '',
|
5436
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
5628
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-CUej0GjY.mjs').then((c) => c.AXMDocumentDriveComponent),
|
5437
5629
|
},
|
5438
5630
|
{
|
5439
5631
|
path: ':id',
|
5440
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
5632
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-CUej0GjY.mjs').then((c) => c.AXMDocumentDriveComponent),
|
5441
5633
|
},
|
5442
5634
|
],
|
5443
5635
|
},
|
@@ -5482,7 +5674,7 @@ class AXMDocumentManagementModule {
|
|
5482
5674
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5483
5675
|
useFactory: async () => {
|
5484
5676
|
const injector = inject(Injector);
|
5485
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5677
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs')).AXMPermissionDefinitionProvider;
|
5486
5678
|
return new provider(injector);
|
5487
5679
|
},
|
5488
5680
|
multi: true,
|
@@ -5582,7 +5774,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
5582
5774
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
5583
5775
|
useFactory: async () => {
|
5584
5776
|
const injector = inject(Injector);
|
5585
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
5777
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs')).AXMPermissionDefinitionProvider;
|
5586
5778
|
return new provider(injector);
|
5587
5779
|
},
|
5588
5780
|
multi: true,
|
@@ -5611,4 +5803,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
5611
5803
|
*/
|
5612
5804
|
|
5613
5805
|
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 };
|
5614
|
-
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-
|
5806
|
+
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-Bte3VGKC.mjs.map
|