@acorex/modules 20.3.0-next.2 → 20.3.0-next.3
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-common.mjs +0 -21
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +4 -44
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +5 -0
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-Dgy-OSBs.mjs → acorex-modules-document-management-acorex-modules-document-management-DDriJFmP.mjs} +88 -67
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-DDriJFmP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Df-ToSSS.mjs → acorex-modules-document-management-attachment-widget.component-OYJu4IJz.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Df-ToSSS.mjs.map → acorex-modules-document-management-attachment-widget.component-OYJu4IJz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-rD3uIvAi.mjs → acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-rD3uIvAi.mjs.map → acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-B46W2yNV.mjs → acorex-modules-document-management-details-view.component-VdV7xGPS.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-B46W2yNV.mjs.map → acorex-modules-document-management-details-view.component-VdV7xGPS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-DVNJGVCs.mjs → acorex-modules-document-management-document-signature-popup.component-Gi0_m0oe.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-DVNJGVCs.mjs.map → acorex-modules-document-management-document-signature-popup.component-Gi0_m0oe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BX7CGKrz.mjs → acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BX7CGKrz.mjs.map → acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-Cq2jq81B.mjs → acorex-modules-document-management-drive.component-BRCGsnuI.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-Cq2jq81B.mjs.map → acorex-modules-document-management-drive.component-BRCGsnuI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-YFCNhzDy.mjs → acorex-modules-document-management-large-icons-view.component-CnsPx3K3.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-YFCNhzDy.mjs.map → acorex-modules-document-management-large-icons-view.component-CnsPx3K3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component--qzP70x7.mjs → acorex-modules-document-management-large-tiles-view.component-D4OUme1W.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component--qzP70x7.mjs.map → acorex-modules-document-management-large-tiles-view.component-D4OUme1W.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-BX-LW6ZY.mjs → acorex-modules-document-management-list-view.component-C7i4jI9h.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-BX-LW6ZY.mjs.map → acorex-modules-document-management-list-view.component-C7i4jI9h.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-CzKeJee7.mjs → acorex-modules-document-management-permission-definition.provider-ZQbJAb7x.mjs} +42 -2
- package/fesm2022/acorex-modules-document-management-permission-definition.provider-ZQbJAb7x.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DdNiN_KY.mjs → acorex-modules-document-management-rename-node-dialog.component-DHVn7RIv.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DdNiN_KY.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DHVn7RIv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BHt1AmMl.mjs → acorex-modules-document-management-small-icons-view.component-By36moe5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BHt1AmMl.mjs.map → acorex-modules-document-management-small-icons-view.component-By36moe5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-FB8Wld2S.mjs → acorex-modules-document-management-small-tiles-view.component-CO6MfsEU.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-FB8Wld2S.mjs.map → acorex-modules-document-management-small-tiles-view.component-CO6MfsEU.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-Bf-tLXnX.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-WkDn4mpE.mjs} +10 -10
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-Bf-tLXnX.mjs.map → acorex-modules-human-capital-management-acorex-modules-human-capital-management-WkDn4mpE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-Bf59aJXl.mjs → acorex-modules-human-capital-management-employee-skill.entity-DsUYujPr.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee-skill.entity-Bf59aJXl.mjs.map → acorex-modules-human-capital-management-employee-skill.entity-DsUYujPr.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-CkCvNdte.mjs → acorex-modules-human-capital-management-employee.entity-CC-LIIki.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-CkCvNdte.mjs.map → acorex-modules-human-capital-management-employee.entity-CC-LIIki.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-CDsdURsN.mjs → acorex-modules-human-capital-management-employment-type.entity-Mgkdm2vo.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-CDsdURsN.mjs.map → acorex-modules-human-capital-management-employment-type.entity-Mgkdm2vo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-D5iNotoP.mjs → acorex-modules-human-capital-management-leave-request.entity-BJyciZGL.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-D5iNotoP.mjs.map → acorex-modules-human-capital-management-leave-request.entity-BJyciZGL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DuLh4EF_.mjs → acorex-modules-human-capital-management-leave-type.entity-IewYlMLV.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DuLh4EF_.mjs.map → acorex-modules-human-capital-management-leave-type.entity-IewYlMLV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DdsBZyVA.mjs → acorex-modules-human-capital-management-position-assignment.entity-BlKFRnO0.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-DdsBZyVA.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-BlKFRnO0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-BVFXdOYw.mjs → acorex-modules-human-capital-management-skill-level.entity-De1qKpcU.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill-level.entity-BVFXdOYw.mjs.map → acorex-modules-human-capital-management-skill-level.entity-De1qKpcU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Civ9PhC3.mjs → acorex-modules-human-capital-management-skill.entity-RrnBU0M5.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-skill.entity-Civ9PhC3.mjs.map → acorex-modules-human-capital-management-skill.entity-RrnBU0M5.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs +5 -0
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +4 -2
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +46 -2
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-FDZgH0ir.mjs → acorex-modules-task-management-task-board.page-DThbrMLC.mjs} +3 -3
- package/fesm2022/{acorex-modules-task-management-task-board.page-FDZgH0ir.mjs.map → acorex-modules-task-management-task-board.page-DThbrMLC.mjs.map} +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +35 -34
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/package.json +1 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dgy-OSBs.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-permission-definition.provider-CzKeJee7.mjs.map +0 -1
|
@@ -50,6 +50,7 @@ import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
|
50
50
|
import { AXFormatModule } from '@acorex/core/format';
|
|
51
51
|
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
52
52
|
import { signalStore, withState, withComputed, withMethods, patchState } from '@ngrx/signals';
|
|
53
|
+
import { AXPWidgetsList } from '@acorex/modules/common';
|
|
53
54
|
|
|
54
55
|
const config = {
|
|
55
56
|
i18n: 'document-management',
|
|
@@ -165,47 +166,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
165
166
|
type: Injectable
|
|
166
167
|
}] });
|
|
167
168
|
|
|
168
|
-
const AXMPermissionsKeys = {
|
|
169
|
-
DocumentManagement: {
|
|
170
|
-
Management: 'document-management:manage',
|
|
171
|
-
DocumentType: {
|
|
172
|
-
Management: 'document-management:document-type:manage',
|
|
173
|
-
View: 'document-management:document-type:view',
|
|
174
|
-
Edit: 'document-management:document-type:edit',
|
|
175
|
-
Delete: 'document-management:document-type:delete',
|
|
176
|
-
Create: 'document-management:document-type:create',
|
|
177
|
-
},
|
|
178
|
-
Driver: {
|
|
179
|
-
Management: 'document-management:driver:manage',
|
|
180
|
-
View: 'document-management:driver:view',
|
|
181
|
-
Edit: 'document-management:driver:edit',
|
|
182
|
-
Delete: 'document-management:driver:delete',
|
|
183
|
-
Create: 'document-management:driver:create',
|
|
184
|
-
},
|
|
185
|
-
Review: {
|
|
186
|
-
Management: 'document-management:review:manage',
|
|
187
|
-
View: 'document-management:review:view',
|
|
188
|
-
Edit: 'document-management:review:edit',
|
|
189
|
-
Delete: 'document-management:review:delete',
|
|
190
|
-
Create: 'document-management:document-type:create',
|
|
191
|
-
},
|
|
192
|
-
Distribution: {
|
|
193
|
-
Management: 'document-management:distribution:manage',
|
|
194
|
-
View: 'document-management:distribution:view',
|
|
195
|
-
Edit: 'document-management:distribution:edit',
|
|
196
|
-
Delete: 'document-management:distribution:delete',
|
|
197
|
-
Create: 'document-management:distribution:create',
|
|
198
|
-
},
|
|
199
|
-
DistributionInteraction: {
|
|
200
|
-
Management: 'document-management:distribution-interaction:manage',
|
|
201
|
-
View: 'document-management:distribution-interaction:view',
|
|
202
|
-
Edit: 'document-management:distribution-interaction:edit',
|
|
203
|
-
Delete: 'document-management:distribution-interaction:delete',
|
|
204
|
-
Create: 'document-management:distribution-interaction:create',
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
};
|
|
208
|
-
|
|
209
169
|
class AXMMenuProvider {
|
|
210
170
|
constructor() {
|
|
211
171
|
this.entityService = inject(AXPEntityService);
|
|
@@ -223,7 +183,7 @@ class AXMMenuProvider {
|
|
|
223
183
|
text: RootConfig.module.title,
|
|
224
184
|
icon: RootConfig.module.icon,
|
|
225
185
|
data: {
|
|
226
|
-
requiredPermission: [
|
|
186
|
+
requiredPermission: ['admin']
|
|
227
187
|
},
|
|
228
188
|
children: [
|
|
229
189
|
{
|
|
@@ -231,7 +191,7 @@ class AXMMenuProvider {
|
|
|
231
191
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.documentType.name),
|
|
232
192
|
icon: RootConfig.entities.documentType.icon,
|
|
233
193
|
data: {
|
|
234
|
-
requiredPermission: [
|
|
194
|
+
requiredPermission: ['admin']
|
|
235
195
|
},
|
|
236
196
|
badgeKey: 'badge-1',
|
|
237
197
|
priority: 2,
|
|
@@ -241,7 +201,7 @@ class AXMMenuProvider {
|
|
|
241
201
|
path: `${this.sessionService.application?.name}/drive/tenant`,
|
|
242
202
|
icon: RootConfig.entities.document.icon,
|
|
243
203
|
data: {
|
|
244
|
-
requiredPermission: [
|
|
204
|
+
requiredPermission: ['admin'],
|
|
245
205
|
scope: 'tenant',
|
|
246
206
|
},
|
|
247
207
|
badgeKey: 'badge-2',
|
|
@@ -252,7 +212,7 @@ class AXMMenuProvider {
|
|
|
252
212
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.document.name),
|
|
253
213
|
icon: RootConfig.entities.review.icon,
|
|
254
214
|
data: {
|
|
255
|
-
|
|
215
|
+
requiredPermission: ['admin'],
|
|
256
216
|
},
|
|
257
217
|
badgeKey: 'review-badge',
|
|
258
218
|
priority: 4,
|
|
@@ -262,7 +222,7 @@ class AXMMenuProvider {
|
|
|
262
222
|
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.distribution.name),
|
|
263
223
|
icon: RootConfig.entities.review.icon,
|
|
264
224
|
data: {
|
|
265
|
-
|
|
225
|
+
requiredPermission: ['admin'],
|
|
266
226
|
},
|
|
267
227
|
priority: 4,
|
|
268
228
|
},
|
|
@@ -278,7 +238,6 @@ class AXMMenuProvider {
|
|
|
278
238
|
path: `${this.sessionService.application?.name}/drive/user`,
|
|
279
239
|
data: {
|
|
280
240
|
scope: 'user',
|
|
281
|
-
requiredPermission: [AXMPermissionsKeys.DocumentManagement.Driver.Management]
|
|
282
241
|
},
|
|
283
242
|
},
|
|
284
243
|
]);
|
|
@@ -5761,7 +5720,7 @@ class AXMDocumentSignaturePopupAction extends AXPWorkflowAction {
|
|
|
5761
5720
|
const documentId = context.getVariable('options.id');
|
|
5762
5721
|
const documentTitle = context.getVariable('options.title');
|
|
5763
5722
|
const fileId = context.getVariable('options.fileId');
|
|
5764
|
-
const comp = await import('./acorex-modules-document-management-document-signature-popup.component-
|
|
5723
|
+
const comp = await import('./acorex-modules-document-management-document-signature-popup.component-Gi0_m0oe.mjs')
|
|
5765
5724
|
.then(x => x.AXMDocumentSignaturePopupComponent);
|
|
5766
5725
|
console.log(fileId);
|
|
5767
5726
|
const result = await this.popupService.open(comp, {
|
|
@@ -6475,7 +6434,7 @@ class AXMDocumentManagerService {
|
|
|
6475
6434
|
* Moves a node to another location
|
|
6476
6435
|
*/
|
|
6477
6436
|
async moveTo(options) {
|
|
6478
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6437
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs')).AXMDocumentDriveChooseComponent;
|
|
6479
6438
|
const popup = await this.popupService.open(comp, {
|
|
6480
6439
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
|
6481
6440
|
data: {
|
|
@@ -6508,7 +6467,7 @@ class AXMDocumentManagerService {
|
|
|
6508
6467
|
* Copies a node to another location
|
|
6509
6468
|
*/
|
|
6510
6469
|
async copyTo(options) {
|
|
6511
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6470
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs')).AXMDocumentDriveChooseComponent;
|
|
6512
6471
|
const popup = await this.popupService.open(comp, {
|
|
6513
6472
|
title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
|
|
6514
6473
|
data: {
|
|
@@ -6785,7 +6744,7 @@ class AXMDocumentManagerService {
|
|
|
6785
6744
|
* Shows folder edit dialog
|
|
6786
6745
|
*/
|
|
6787
6746
|
async showFolderEditDialog(node) {
|
|
6788
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
|
6747
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs'))
|
|
6789
6748
|
.AXMCreateFolderDialog;
|
|
6790
6749
|
const popup = await this.popupService.open(comp, {
|
|
6791
6750
|
title: await this.translate.translateAsync('@document-management:actions.update-folder'),
|
|
@@ -6799,7 +6758,7 @@ class AXMDocumentManagerService {
|
|
|
6799
6758
|
* Shows create folder dialog
|
|
6800
6759
|
*/
|
|
6801
6760
|
async showCreateFolderDialog(parentId) {
|
|
6802
|
-
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-
|
|
6761
|
+
const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-CZzlGMcu.mjs'))
|
|
6803
6762
|
.AXMCreateFolderDialog;
|
|
6804
6763
|
const popup = await this.popupService.open(comp, {
|
|
6805
6764
|
title: await this.translate.translateAsync('@document-management:actions.create-folder'),
|
|
@@ -6813,7 +6772,7 @@ class AXMDocumentManagerService {
|
|
|
6813
6772
|
* Shows rename popup for a node
|
|
6814
6773
|
*/
|
|
6815
6774
|
async showRenamePopup(node) {
|
|
6816
|
-
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-
|
|
6775
|
+
const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-DHVn7RIv.mjs'))
|
|
6817
6776
|
.AXMRenameNodeDialog;
|
|
6818
6777
|
const popup = await this.popupService.open(comp, {
|
|
6819
6778
|
title: 't("actions.rename")',
|
|
@@ -6839,7 +6798,7 @@ class AXMDocumentManagerService {
|
|
|
6839
6798
|
* Shows choose file dialog
|
|
6840
6799
|
*/
|
|
6841
6800
|
async showChooseFileDialog(scope) {
|
|
6842
|
-
const comp = (await import('./acorex-modules-document-management-drive-choose.component-
|
|
6801
|
+
const comp = (await import('./acorex-modules-document-management-drive-choose.component-BgRZ_nhs.mjs')).AXMDocumentDriveChooseComponent;
|
|
6843
6802
|
const result = await this.popupService.open(comp, {
|
|
6844
6803
|
title: await this.translate.translateAsync('@document-management:actions.choose-from-drive'),
|
|
6845
6804
|
data: {
|
|
@@ -8173,13 +8132,13 @@ class AXMDocumentExplorerComponent {
|
|
|
8173
8132
|
this.showContextMenu = input(true, ...(ngDevMode ? [{ debugName: "showContextMenu" }] : []));
|
|
8174
8133
|
this.view = signal(null, ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
8175
8134
|
this.viewMap = {
|
|
8176
|
-
list: async () => (await import('./acorex-modules-document-management-list-view.component-
|
|
8177
|
-
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-
|
|
8178
|
-
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component
|
|
8179
|
-
details: async () => (await import('./acorex-modules-document-management-details-view.component-
|
|
8180
|
-
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-
|
|
8181
|
-
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-
|
|
8182
|
-
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-
|
|
8135
|
+
list: async () => (await import('./acorex-modules-document-management-list-view.component-C7i4jI9h.mjs')).AXMDocumentExplorerListViewComponent,
|
|
8136
|
+
'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-CO6MfsEU.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
|
8137
|
+
'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-D4OUme1W.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
|
8138
|
+
details: async () => (await import('./acorex-modules-document-management-details-view.component-VdV7xGPS.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
|
8139
|
+
'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-CnsPx3K3.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
|
8140
|
+
'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-By36moe5.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
|
8141
|
+
'attachment': async () => (await import('./acorex-modules-document-management-attachment-widget.component-OYJu4IJz.mjs')).AXMDocumentExplorerAttachmentComponent,
|
|
8183
8142
|
};
|
|
8184
8143
|
this.#effect = effect(() => {
|
|
8185
8144
|
if (this.vm.loadingFolderId() == null) {
|
|
@@ -9693,11 +9652,73 @@ const DocumentFileUploaderFileItemActionsProvider = {
|
|
|
9693
9652
|
return payload;
|
|
9694
9653
|
},
|
|
9695
9654
|
};
|
|
9655
|
+
// --------------- Edit Dialog: inject metadata group after 'form' ---------------
|
|
9656
|
+
const DocumentFileUploaderEditDialogAfterFormProvider = {
|
|
9657
|
+
key: 'file-uploader.edit-dialog.groups.after-form',
|
|
9658
|
+
priority: 0,
|
|
9659
|
+
async execute(payload) {
|
|
9660
|
+
const isEnabled = Array.isArray(payload.plugins) && payload.plugins.some(p => p.name === 'document');
|
|
9661
|
+
const isExcluded = Array.isArray(payload.excludePlugins) && payload.excludePlugins.includes('document');
|
|
9662
|
+
if (!isEnabled || isExcluded)
|
|
9663
|
+
return payload;
|
|
9664
|
+
const metaObj = payload.file?.meta;
|
|
9665
|
+
// Load document type (similar to document-type-choose-file) when available via plugin options
|
|
9666
|
+
const opts = (payload.plugins.find(p => p.name === 'document')?.options ?? {});
|
|
9667
|
+
const injector = inject(Injector);
|
|
9668
|
+
const documentTypeService = injector.get(AXMDocumentTypeService);
|
|
9669
|
+
const docType = opts.docTypeName ? await documentTypeService.getByName(opts.docTypeName) : undefined;
|
|
9670
|
+
console.log('[DocumentPlugin][AfterForm] docType resolved', {
|
|
9671
|
+
docTypeName: opts.docTypeName,
|
|
9672
|
+
hasDocType: !!docType,
|
|
9673
|
+
metaCount: docType?.meta?.length ?? 0,
|
|
9674
|
+
hasFileMeta: !!metaObj && Object.keys(metaObj).length,
|
|
9675
|
+
});
|
|
9676
|
+
if (!docType && (!metaObj || Object.keys(metaObj).length === 0))
|
|
9677
|
+
return payload;
|
|
9678
|
+
const fields = docType?.meta?.length
|
|
9679
|
+
? await Promise.all(docType.meta.map(async (meta) => {
|
|
9680
|
+
let node = typeof meta.interface === 'function'
|
|
9681
|
+
? await meta.interface()
|
|
9682
|
+
: JSON.parse(meta.interface)['children'][0]['children'][0];
|
|
9683
|
+
node = {
|
|
9684
|
+
...node,
|
|
9685
|
+
path: `meta.${meta.name}.value`,
|
|
9686
|
+
defaultValue: metaObj?.[meta.name]?.value,
|
|
9687
|
+
};
|
|
9688
|
+
return {
|
|
9689
|
+
path: `meta.${meta.name}.value`,
|
|
9690
|
+
title: meta.title,
|
|
9691
|
+
widget: node,
|
|
9692
|
+
};
|
|
9693
|
+
}))
|
|
9694
|
+
: Object.values(metaObj ?? {}).map((m) => ({
|
|
9695
|
+
path: `meta.${m.name}.value`,
|
|
9696
|
+
title: m.title ?? m.name,
|
|
9697
|
+
widget: {
|
|
9698
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
9699
|
+
path: `meta.${m.name}.value`,
|
|
9700
|
+
options: { maxLength: 1024 },
|
|
9701
|
+
},
|
|
9702
|
+
}));
|
|
9703
|
+
const group = {
|
|
9704
|
+
name: 'metadata',
|
|
9705
|
+
title: docType?.title ?? 'Metadata',
|
|
9706
|
+
parameters: fields,
|
|
9707
|
+
};
|
|
9708
|
+
payload.groups = [...(payload.groups ?? []), group];
|
|
9709
|
+
console.log('[DocumentPlugin][AfterForm] metadata group appended', {
|
|
9710
|
+
parameterCount: group.parameters?.length ?? 0,
|
|
9711
|
+
title: group.title,
|
|
9712
|
+
});
|
|
9713
|
+
return payload;
|
|
9714
|
+
},
|
|
9715
|
+
};
|
|
9696
9716
|
// Convenience export to register all providers at once in a module
|
|
9697
9717
|
const DocumentFileUploaderWidgetPluginProviders = [
|
|
9698
9718
|
DocumentFileUploaderConfigureProvider,
|
|
9699
9719
|
DocumentFileUploaderBeforeFilesAddedProvider,
|
|
9700
9720
|
DocumentFileUploaderFileItemActionsProvider,
|
|
9721
|
+
DocumentFileUploaderEditDialogAfterFormProvider,
|
|
9701
9722
|
];
|
|
9702
9723
|
|
|
9703
9724
|
function routesFacory() {
|
|
@@ -9713,11 +9734,11 @@ function routesFacory() {
|
|
|
9713
9734
|
children: [
|
|
9714
9735
|
{
|
|
9715
9736
|
path: '',
|
|
9716
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
|
9737
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-BRCGsnuI.mjs').then((c) => c.AXMDocumentDriveComponent),
|
|
9717
9738
|
},
|
|
9718
9739
|
{
|
|
9719
9740
|
path: ':id',
|
|
9720
|
-
loadComponent: () => import('./acorex-modules-document-management-drive.component-
|
|
9741
|
+
loadComponent: () => import('./acorex-modules-document-management-drive.component-BRCGsnuI.mjs').then((c) => c.AXMDocumentDriveComponent),
|
|
9721
9742
|
},
|
|
9722
9743
|
],
|
|
9723
9744
|
},
|
|
@@ -9762,7 +9783,7 @@ class AXMDocumentManagementModule {
|
|
|
9762
9783
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
9763
9784
|
useFactory: async () => {
|
|
9764
9785
|
const injector = inject(Injector);
|
|
9765
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
|
9786
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-ZQbJAb7x.mjs')).AXMPermissionDefinitionProvider;
|
|
9766
9787
|
return new provider(injector);
|
|
9767
9788
|
},
|
|
9768
9789
|
multi: true,
|
|
@@ -9898,7 +9919,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
9898
9919
|
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
9899
9920
|
useFactory: async () => {
|
|
9900
9921
|
const injector = inject(Injector);
|
|
9901
|
-
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-
|
|
9922
|
+
const provider = (await import('./acorex-modules-document-management-permission-definition.provider-ZQbJAb7x.mjs')).AXMPermissionDefinitionProvider;
|
|
9902
9923
|
return new provider(injector);
|
|
9903
9924
|
},
|
|
9904
9925
|
multi: true,
|
|
@@ -9936,5 +9957,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
9936
9957
|
* Generated bundle index. Do not edit.
|
|
9937
9958
|
*/
|
|
9938
9959
|
|
|
9939
|
-
export {
|
|
9940
|
-
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-
|
|
9960
|
+
export { AXPDocumentUploaderWidgetViewComponent as $, AXPDocumentExplorerViewModel as A, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as B, documentRelatedFactory as C, folderFactory as D, AXMFolderService as E, AXMFolderServiceImpl as F, AXMFolderEntityModule as G, reviewFactory as H, AXMReviewService as I, AXMReviewServiceImpl as J, AXMReviewEntityModule as K, distributionFactory as L, AXMDistributionService as M, AXMDistributionServiceImpl as N, AXMDistributionEntityModule as O, distributionInteractionFactory as P, AXMDistributionInteractionServiceImpl as Q, RootConfig as R, AXMDistributionInteractionEntityModule as S, AXMDocumentReletedEntityModule as T, AXMEntityProvider as U, AXMMenuProvider as V, AXMSearchCommandProvider as W, AXMSettingProvider as X, AXPDocumentUploaderWidget as Y, AXPDocumentUploaderWidgetDesignerComponent as Z, AXPDocumentUploaderWidgetEditComponent as _, AXMDocumentManagerService as a, AXPDocumentUploaderWidgetFilterComponent as a0, AXPDocumentUploaderWidgetColumnComponent as a1, AXPDocumentUploaderWidgetPrintComponent as a2, AXMDocumentExplorerComponent as b, AXMDistributionInteractionService as c, AXMFolderPathBreadcrumbsComponent as d, AXMDocumentTypeService 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, AXMDocumentTypeServiceImpl as o, documentTypeMetaDefinitionfactory as p, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as q, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as r, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as s, documentTypeMetaValueFactory as t, AXMDocumentManagementDocumentTypeMetaValueEntityModule as u, AXMDocumentManagementDocumentTypeMetaValueEntityService as v, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as w, documentTypeStatusDefinitionFactory as x, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as y, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as z };
|
|
9961
|
+
//# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-DDriJFmP.mjs.map
|