@acorex-platform/module-document-management-client 0.0.61 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHVvb5hG.mjs → acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-BiosmCuZ.mjs} +134 -50
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-BiosmCuZ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-DD0Lceid.mjs → acorex-platform-module-document-management-client-attachment-view-skeleton.component-D-38wiyG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-DD0Lceid.mjs.map → acorex-platform-module-document-management-client-attachment-view-skeleton.component-D-38wiyG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-YAoJdiMV.mjs → acorex-platform-module-document-management-client-attachment-widget.component-Bd48EHwE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-YAoJdiMV.mjs.map → acorex-platform-module-document-management-client-attachment-widget.component-Bd48EHwE.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs +172 -4
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-details-view.component-DVrr-Jcx.mjs → acorex-platform-module-document-management-client-details-view.component-DRCj5sJZ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-details-view.component-DVrr-Jcx.mjs.map → acorex-platform-module-document-management-client-details-view.component-DRCj5sJZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-distribute-document.command-dTEExoVn.mjs → acorex-platform-module-document-management-client-distribute-document.command-DgUgY_A1.mjs} +233 -83
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command-DgUgY_A1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-distribute-document.command.util-Bnw0rh94.mjs → acorex-platform-module-document-management-client-distribute-document.command.util-HCkpx2Hk.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-distribute-document.command.util-Bnw0rh94.mjs.map → acorex-platform-module-document-management-client-distribute-document.command.util-HCkpx2Hk.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-B-CVJk4t.mjs → acorex-platform-module-document-management-client-drive-choose.component-DxEWAigd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-B-CVJk4t.mjs.map → acorex-platform-module-document-management-client-drive-choose.component-DxEWAigd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-DLW69Mgy.mjs → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B8-WYaZN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-DLW69Mgy.mjs.map → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B8-WYaZN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-CSgo6Q03.mjs → acorex-platform-module-document-management-client-large-icons-view.component-dfZyrfST.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-CSgo6Q03.mjs.map → acorex-platform-module-document-management-client-large-icons-view.component-dfZyrfST.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-CzlMERYd.mjs → acorex-platform-module-document-management-client-large-tiles-view.component-BxZdISS0.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-CzlMERYd.mjs.map → acorex-platform-module-document-management-client-large-tiles-view.component-BxZdISS0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-DgFCBi89.mjs → acorex-platform-module-document-management-client-list-view-skeleton.component-hOXMuPjS.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-DgFCBi89.mjs.map → acorex-platform-module-document-management-client-list-view-skeleton.component-hOXMuPjS.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-bgDPFpLU.mjs → acorex-platform-module-document-management-client-list-view.component-iH0kvdWp.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-bgDPFpLU.mjs.map → acorex-platform-module-document-management-client-list-view.component-iH0kvdWp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-CObrpooD.mjs → acorex-platform-module-document-management-client-open-document.command-IN2QSWDo.mjs} +45 -4
- package/fesm2022/acorex-platform-module-document-management-client-open-document.command-IN2QSWDo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-request-document-review.command-DNq2mYIx.mjs → acorex-platform-module-document-management-client-request-document-review.command-CK5mJYR4.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-document-management-client-request-document-review.command-DNq2mYIx.mjs.map → acorex-platform-module-document-management-client-request-document-review.command-CK5mJYR4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-sign-distributed-document.command-DpQ-Un7q.mjs → acorex-platform-module-document-management-client-sign-distributed-document.command-BqLS0leG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-sign-distributed-document.command-DpQ-Un7q.mjs.map → acorex-platform-module-document-management-client-sign-distributed-document.command-BqLS0leG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-sign-document-review.command-B08sgrRi.mjs → acorex-platform-module-document-management-client-sign-document-review.command-Ccl9iY7j.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-sign-document-review.command-B08sgrRi.mjs.map → acorex-platform-module-document-management-client-sign-document-review.command-Ccl9iY7j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-CiYITmkk.mjs → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BABsshsn.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-CiYITmkk.mjs.map → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BABsshsn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-ILdKPBoz.mjs → acorex-platform-module-document-management-client-small-icons-view.component-BBo1iXfu.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-ILdKPBoz.mjs.map → acorex-platform-module-document-management-client-small-icons-view.component-BBo1iXfu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-DKOxhUoZ.mjs → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-BsP4uJdA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-DKOxhUoZ.mjs.map → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-BsP4uJdA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-yv_uqUPM.mjs → acorex-platform-module-document-management-client-small-tiles-view.component-DrDYpNsF.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-yv_uqUPM.mjs.map → acorex-platform-module-document-management-client-small-tiles-view.component-DrDYpNsF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-CrtRTjke.mjs → acorex-platform-module-document-management-client-upload-document.command-Dycu8sci.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-CrtRTjke.mjs.map → acorex-platform-module-document-management-client-upload-document.command-Dycu8sci.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client.mjs +1 -1
- package/i18n/en-AU/document-management.json +9 -4
- package/i18n/en-US/document-management.json +9 -4
- package/i18n/fa-IR/document-management.json +9 -4
- package/package.json +2 -2
- package/types/acorex-platform-module-document-management-client-contracts.d.ts +23 -1
- package/types/acorex-platform-module-document-management-client.d.ts +2 -2
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHVvb5hG.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command-dTEExoVn.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-open-document.command-CObrpooD.mjs.map +0 -1
|
@@ -5,7 +5,7 @@ import { AXPSearchCommandProvider, createEntitySearchCommand, AXPFileTypeProvide
|
|
|
5
5
|
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { Injectable, inject, DestroyRef, signal, ChangeDetectionStrategy, Component, NgModule, viewChild, computed, Injector, PLATFORM_ID, input, effect, ViewEncapsulation, untracked, HostListener } from '@angular/core';
|
|
8
|
-
import { AXPDocumentManagementFeatureKeys, AXPContentDocumentsPermissionKeys, RootConfig, AXPDocumentManagementMenuKeys, AXPDocumentManagementSettings, documentReviewReadonlyFieldNames, documentTypeHasReviewMetadataForAppliesTo, AXMDocumentManagementCommandKeys } from '@acorex-platform/module-document-management-client/contracts';
|
|
8
|
+
import { AXPDocumentManagementFeatureKeys, AXPContentDocumentsPermissionKeys, RootConfig, AXPDocumentManagementMenuKeys, AXPDocumentManagementSettings, documentReviewReadonlyFieldNames, documentTypeHasReviewMetadataForAppliesTo, documentTypeAllowsDistributionForAppliesTo, AXMDocumentManagementCommandKeys } from '@acorex-platform/module-document-management-client/contracts';
|
|
9
9
|
import { AXPCommonPermissionGroupKeys, AXPCommonMenuKeys, AXP_VERSIONING_ERROR_I18N, AXPVersioningField, AXPVersioningStatus, AXPCommonCommandKeys, isMaintainVersioningPermissionGranted } from '@acorex-platform/module-common-client/contracts';
|
|
10
10
|
import { firstValueFrom, combineLatest } from 'rxjs';
|
|
11
11
|
import { AXPCommandEventsService, AXPCommandService, AXPQueryService, provideCommandSetups } from '@acorex-platform/framework-client/runtime';
|
|
@@ -3025,7 +3025,7 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3025
3025
|
async openDriveFolderPicker(options) {
|
|
3026
3026
|
let title = '';
|
|
3027
3027
|
const popup = await this.dialogOpener.openPopup({
|
|
3028
|
-
load: () => import('./acorex-platform-module-document-management-client-drive-choose.component-
|
|
3028
|
+
load: () => import('./acorex-platform-module-document-management-client-drive-choose.component-DxEWAigd.mjs').then((module) => module.AXMDocumentDriveChooseComponent),
|
|
3029
3029
|
data: {
|
|
3030
3030
|
titleKey: options.titleKey,
|
|
3031
3031
|
scope: options.scope,
|
|
@@ -4257,7 +4257,7 @@ const AXM_DRIVE_FILE_CHOOSER_PROVIDER = {
|
|
|
4257
4257
|
const accept = context.options['accept'];
|
|
4258
4258
|
let title = '';
|
|
4259
4259
|
const popup = await dialogOpener.openPopup({
|
|
4260
|
-
load: () => import('./acorex-platform-module-document-management-client-drive-choose.component-
|
|
4260
|
+
load: () => import('./acorex-platform-module-document-management-client-drive-choose.component-DxEWAigd.mjs').then((module) => module.AXMDocumentDriveChooseComponent),
|
|
4261
4261
|
data: { scope, multiple, browseMode, accept: accept ?? '' },
|
|
4262
4262
|
prepare: async () => {
|
|
4263
4263
|
title = await translate.translateAsync('@document-management:actions.choose-from-drive');
|
|
@@ -4904,7 +4904,7 @@ const documentPlugin = {
|
|
|
4904
4904
|
|
|
4905
4905
|
//#endregion
|
|
4906
4906
|
//#region ----- Explorer review eligibility -----
|
|
4907
|
-
function asRecord(value) {
|
|
4907
|
+
function asRecord$1(value) {
|
|
4908
4908
|
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
4909
4909
|
return null;
|
|
4910
4910
|
}
|
|
@@ -4917,7 +4917,7 @@ function rememberId(target, value) {
|
|
|
4917
4917
|
}
|
|
4918
4918
|
}
|
|
4919
4919
|
function rememberType(ids, names, type) {
|
|
4920
|
-
const row = asRecord(type);
|
|
4920
|
+
const row = asRecord$1(type);
|
|
4921
4921
|
if (!row) {
|
|
4922
4922
|
return;
|
|
4923
4923
|
}
|
|
@@ -4931,7 +4931,7 @@ function collectDocumentTypeKeys(...sources) {
|
|
|
4931
4931
|
const ids = [];
|
|
4932
4932
|
const names = [];
|
|
4933
4933
|
for (const source of sources) {
|
|
4934
|
-
const row = asRecord(source);
|
|
4934
|
+
const row = asRecord$1(source);
|
|
4935
4935
|
if (!row) {
|
|
4936
4936
|
continue;
|
|
4937
4937
|
}
|
|
@@ -4952,19 +4952,19 @@ function isReviewEnabledDocumentType(type, appliesTo) {
|
|
|
4952
4952
|
return documentTypeHasReviewMetadataForAppliesTo(type.metaDataList, appliesTo);
|
|
4953
4953
|
}
|
|
4954
4954
|
function sourceHasReviewEnabledType(source, appliesTo) {
|
|
4955
|
-
const row = asRecord(source);
|
|
4955
|
+
const row = asRecord$1(source);
|
|
4956
4956
|
if (!row) {
|
|
4957
4957
|
return false;
|
|
4958
4958
|
}
|
|
4959
4959
|
if (isReviewEnabledDocumentType(row, appliesTo)) {
|
|
4960
4960
|
return true;
|
|
4961
4961
|
}
|
|
4962
|
-
if (isReviewEnabledDocumentType(asRecord(row['documentType']), appliesTo)) {
|
|
4962
|
+
if (isReviewEnabledDocumentType(asRecord$1(row['documentType']), appliesTo)) {
|
|
4963
4963
|
return true;
|
|
4964
4964
|
}
|
|
4965
4965
|
const types = row['documentTypes'];
|
|
4966
4966
|
return (Array.isArray(types) &&
|
|
4967
|
-
types.some((type) => isReviewEnabledDocumentType(asRecord(type), appliesTo)));
|
|
4967
|
+
types.some((type) => isReviewEnabledDocumentType(asRecord$1(type), appliesTo)));
|
|
4968
4968
|
}
|
|
4969
4969
|
async function sourcesAllowDocumentReview(sources, load, appliesTo) {
|
|
4970
4970
|
if (sources.some((source) => sourceHasReviewEnabledType(source, appliesTo))) {
|
|
@@ -5001,6 +5001,73 @@ async function explorerNodeAllowsDocumentReview(node, load) {
|
|
|
5001
5001
|
}
|
|
5002
5002
|
//#endregion
|
|
5003
5003
|
|
|
5004
|
+
//#endregion
|
|
5005
|
+
//#region ----- Explorer distribution eligibility -----
|
|
5006
|
+
function asRecord(value) {
|
|
5007
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
5008
|
+
return null;
|
|
5009
|
+
}
|
|
5010
|
+
return value;
|
|
5011
|
+
}
|
|
5012
|
+
function isDistributionEnabledDocumentType(type, appliesTo) {
|
|
5013
|
+
if (!type || type.metaDataList == null) {
|
|
5014
|
+
return false;
|
|
5015
|
+
}
|
|
5016
|
+
return documentTypeAllowsDistributionForAppliesTo({
|
|
5017
|
+
enableDistributionCapability: type.enableDistributionCapability,
|
|
5018
|
+
metaDataList: type.metaDataList,
|
|
5019
|
+
}, appliesTo);
|
|
5020
|
+
}
|
|
5021
|
+
function sourceAllowsDistribution(source, appliesTo) {
|
|
5022
|
+
const row = asRecord(source);
|
|
5023
|
+
if (!row) {
|
|
5024
|
+
return false;
|
|
5025
|
+
}
|
|
5026
|
+
if (isDistributionEnabledDocumentType(row, appliesTo)) {
|
|
5027
|
+
return true;
|
|
5028
|
+
}
|
|
5029
|
+
if (isDistributionEnabledDocumentType(asRecord(row['documentType']), appliesTo)) {
|
|
5030
|
+
return true;
|
|
5031
|
+
}
|
|
5032
|
+
const types = row['documentTypes'];
|
|
5033
|
+
return (Array.isArray(types) &&
|
|
5034
|
+
types.some((type) => isDistributionEnabledDocumentType(asRecord(type), appliesTo)));
|
|
5035
|
+
}
|
|
5036
|
+
async function sourcesAllowDocumentDistribution(sources, load, appliesTo) {
|
|
5037
|
+
if (sources.some((source) => sourceAllowsDistribution(source, appliesTo))) {
|
|
5038
|
+
return true;
|
|
5039
|
+
}
|
|
5040
|
+
const keys = collectDocumentTypeKeys(...sources);
|
|
5041
|
+
if (load.byKey) {
|
|
5042
|
+
for (const id of keys.ids) {
|
|
5043
|
+
try {
|
|
5044
|
+
const type = await load.byKey(id);
|
|
5045
|
+
if (isDistributionEnabledDocumentType(type, appliesTo)) {
|
|
5046
|
+
return true;
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
5049
|
+
catch {
|
|
5050
|
+
// Keep checking remaining types when one lookup misses.
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5054
|
+
if (keys.names.length) {
|
|
5055
|
+
const types = await load.byNames(keys.names);
|
|
5056
|
+
if (types.some((type) => isDistributionEnabledDocumentType(type, appliesTo))) {
|
|
5057
|
+
return true;
|
|
5058
|
+
}
|
|
5059
|
+
}
|
|
5060
|
+
return false;
|
|
5061
|
+
}
|
|
5062
|
+
async function explorerNodeAllowsDocumentDistribution(node, load) {
|
|
5063
|
+
if (!node || node.storageType === 'shortcut' || node.isShortcut) {
|
|
5064
|
+
return false;
|
|
5065
|
+
}
|
|
5066
|
+
const appliesTo = node.type === 'folder' ? 'folder' : 'document';
|
|
5067
|
+
return sourcesAllowDocumentDistribution([node], load, appliesTo);
|
|
5068
|
+
}
|
|
5069
|
+
//#endregion
|
|
5070
|
+
|
|
5004
5071
|
//#region ----- Types -----
|
|
5005
5072
|
//#endregion
|
|
5006
5073
|
//#region ----- Public API -----
|
|
@@ -6269,12 +6336,12 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
|
|
|
6269
6336
|
});
|
|
6270
6337
|
const canShowInViewer = isFileNameShownInViewer(displayName, catalog);
|
|
6271
6338
|
const versionMenu = await this.buildFileVersioningContextMenu(node, trans);
|
|
6272
|
-
const
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6339
|
+
const distributionLoader = {
|
|
6340
|
+
byNames: (names) => driveService.getDocumentTypesByNames(names),
|
|
6341
|
+
byKey: (id) => documentTypeData.byKey(id),
|
|
6342
|
+
};
|
|
6343
|
+
const canDistribute = sessionService.authorize(AXPContentDocumentsPermissionKeys.DistributeDocuments) &&
|
|
6344
|
+
(await explorerNodeAllowsDocumentDistribution(node, distributionLoader));
|
|
6278
6345
|
const canRequestReview = sessionService.authorize(AXPContentDocumentsPermissionKeys.ManageDocumentReview) &&
|
|
6279
6346
|
(await explorerNodeAllowsDocumentReview(node, {
|
|
6280
6347
|
byNames: (names) => driveService.getDocumentTypesByNames(names),
|
|
@@ -6454,24 +6521,40 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
|
|
|
6454
6521
|
data: node,
|
|
6455
6522
|
},
|
|
6456
6523
|
];
|
|
6524
|
+
const distributionLoader = {
|
|
6525
|
+
byNames: (names) => driveService.getDocumentTypesByNames(names),
|
|
6526
|
+
byKey: (id) => documentTypeData.byKey(id),
|
|
6527
|
+
};
|
|
6528
|
+
const canDistribute = sessionService.authorize(AXPContentDocumentsPermissionKeys.DistributeDocuments) &&
|
|
6529
|
+
(await explorerNodeAllowsDocumentDistribution(node, distributionLoader));
|
|
6457
6530
|
const canRequestReview = sessionService.authorize(AXPContentDocumentsPermissionKeys.ManageDocumentReview) &&
|
|
6458
6531
|
(await explorerNodeAllowsDocumentReview(node, {
|
|
6459
6532
|
byNames: (names) => driveService.getDocumentTypesByNames(names),
|
|
6460
6533
|
byKey: (id) => documentTypeData.byKey(id),
|
|
6461
6534
|
}));
|
|
6535
|
+
const actionItems = [];
|
|
6536
|
+
if (canDistribute) {
|
|
6537
|
+
actionItems.push({
|
|
6538
|
+
name: 'distribute',
|
|
6539
|
+
text: await trans('menus.context.distribute'),
|
|
6540
|
+
icon: 'fa-light fa-paper-plane',
|
|
6541
|
+
data: node,
|
|
6542
|
+
});
|
|
6543
|
+
}
|
|
6462
6544
|
if (canRequestReview) {
|
|
6545
|
+
actionItems.push({
|
|
6546
|
+
name: 'request-review',
|
|
6547
|
+
text: await trans('menus.context.request-review'),
|
|
6548
|
+
icon: 'fa-light fa-file-check',
|
|
6549
|
+
data: node,
|
|
6550
|
+
});
|
|
6551
|
+
}
|
|
6552
|
+
if (actionItems.length) {
|
|
6463
6553
|
items.push({
|
|
6464
6554
|
name: 'actions',
|
|
6465
6555
|
text: await trans('menus.context.actions'),
|
|
6466
6556
|
icon: 'fa-light fa-bolt',
|
|
6467
|
-
items:
|
|
6468
|
-
{
|
|
6469
|
-
name: 'request-review',
|
|
6470
|
-
text: await trans('menus.context.request-review'),
|
|
6471
|
-
icon: 'fa-light fa-file-check',
|
|
6472
|
-
data: node,
|
|
6473
|
-
},
|
|
6474
|
-
],
|
|
6557
|
+
items: actionItems,
|
|
6475
6558
|
});
|
|
6476
6559
|
}
|
|
6477
6560
|
// Add upload menu only if not locked
|
|
@@ -6707,7 +6790,8 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
|
|
|
6707
6790
|
case 'distribute':
|
|
6708
6791
|
await commandService.execute(AXMDocumentManagementCommandKeys.DocumentDistribute, {
|
|
6709
6792
|
data: node,
|
|
6710
|
-
documentId: node.id,
|
|
6793
|
+
documentId: node.type === 'file' ? node.id : undefined,
|
|
6794
|
+
folderId: node.type === 'folder' ? node.id : undefined,
|
|
6711
6795
|
});
|
|
6712
6796
|
break;
|
|
6713
6797
|
case 'request-review':
|
|
@@ -6970,26 +7054,26 @@ class AXMDocumentExplorerComponent {
|
|
|
6970
7054
|
/** Drops stale async open results when the user right-clicks again before items resolve. */
|
|
6971
7055
|
this.contextMenuOpenToken = 0;
|
|
6972
7056
|
this.viewMap = {
|
|
6973
|
-
list: async () => (await import('./acorex-platform-module-document-management-client-list-view.component-
|
|
6974
|
-
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view.component-
|
|
6975
|
-
'large-tiles': async () => (await import('./acorex-platform-module-document-management-client-large-tiles-view.component-
|
|
6976
|
-
details: async () => (await import('./acorex-platform-module-document-management-client-details-view.component-
|
|
6977
|
-
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view.component-
|
|
6978
|
-
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view.component-
|
|
6979
|
-
'attachment': async () => (await import('./acorex-platform-module-document-management-client-attachment-widget.component-
|
|
7057
|
+
list: async () => (await import('./acorex-platform-module-document-management-client-list-view.component-iH0kvdWp.mjs')).AXMDocumentExplorerListViewComponent,
|
|
7058
|
+
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view.component-DrDYpNsF.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
|
7059
|
+
'large-tiles': async () => (await import('./acorex-platform-module-document-management-client-large-tiles-view.component-BxZdISS0.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
|
7060
|
+
details: async () => (await import('./acorex-platform-module-document-management-client-details-view.component-DRCj5sJZ.mjs')).AXMDocumentExplorerDetailsViewComponent,
|
|
7061
|
+
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view.component-dfZyrfST.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
|
7062
|
+
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view.component-BBo1iXfu.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
|
7063
|
+
'attachment': async () => (await import('./acorex-platform-module-document-management-client-attachment-widget.component-Bd48EHwE.mjs')).AXMDocumentExplorerAttachmentComponent,
|
|
6980
7064
|
};
|
|
6981
7065
|
this.skeletonViewMap = {
|
|
6982
|
-
list: async () => (await import('./acorex-platform-module-document-management-client-list-view-skeleton.component-
|
|
6983
|
-
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-
|
|
7066
|
+
list: async () => (await import('./acorex-platform-module-document-management-client-list-view-skeleton.component-hOXMuPjS.mjs')).AXMDocumentExplorerListViewSkeletonComponent,
|
|
7067
|
+
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-BsP4uJdA.mjs'))
|
|
6984
7068
|
.AXMDocumentExplorerSmallTilesViewSkeletonComponent,
|
|
6985
7069
|
'large-tiles': async () => (await Promise.resolve().then(function () { return largeTilesViewSkeleton_component; }))
|
|
6986
7070
|
.AXMDocumentExplorerLargeTilesViewSkeletonComponent,
|
|
6987
7071
|
details: async () => (await import('./acorex-platform-module-document-management-client-details-view-skeleton.component-BnRZrzCX.mjs')).AXMDocumentExplorerDetailsViewSkeletonComponent,
|
|
6988
|
-
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view-skeleton.component-
|
|
7072
|
+
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B8-WYaZN.mjs'))
|
|
6989
7073
|
.AXMDocumentExplorerLargeIconsViewSkeletonComponent,
|
|
6990
|
-
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view-skeleton.component-
|
|
7074
|
+
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BABsshsn.mjs'))
|
|
6991
7075
|
.AXMDocumentExplorerSmallIconsViewSkeletonComponent,
|
|
6992
|
-
attachment: async () => (await import('./acorex-platform-module-document-management-client-attachment-view-skeleton.component-
|
|
7076
|
+
attachment: async () => (await import('./acorex-platform-module-document-management-client-attachment-view-skeleton.component-D-38wiyG.mjs'))
|
|
6993
7077
|
.AXMDocumentExplorerAttachmentViewSkeletonComponent,
|
|
6994
7078
|
};
|
|
6995
7079
|
this.#effect2 = effect(() => {
|
|
@@ -8296,27 +8380,27 @@ class AXMDocumentManagementModule {
|
|
|
8296
8380
|
provideCommandSetups([
|
|
8297
8381
|
{
|
|
8298
8382
|
key: 'DocumentManagement.Document:Upload',
|
|
8299
|
-
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-
|
|
8383
|
+
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-Dycu8sci.mjs').then((c) => c.AXMUploadDocumentCommand),
|
|
8300
8384
|
},
|
|
8301
8385
|
{
|
|
8302
8386
|
key: 'DocumentManagement.Document:Open',
|
|
8303
|
-
command: () => import('./acorex-platform-module-document-management-client-open-document.command-
|
|
8387
|
+
command: () => import('./acorex-platform-module-document-management-client-open-document.command-IN2QSWDo.mjs').then((c) => c.AXMOpenDocumentCommand),
|
|
8304
8388
|
},
|
|
8305
8389
|
{
|
|
8306
8390
|
key: 'DocumentManagement.Document:Distribute',
|
|
8307
|
-
command: () => import('./acorex-platform-module-document-management-client-distribute-document.command-
|
|
8391
|
+
command: () => import('./acorex-platform-module-document-management-client-distribute-document.command-DgUgY_A1.mjs').then((c) => c.AXMDistributeDocumentCommand),
|
|
8308
8392
|
},
|
|
8309
8393
|
{
|
|
8310
8394
|
key: 'DocumentManagement.DocumentDistribution:SignOff',
|
|
8311
|
-
command: () => import('./acorex-platform-module-document-management-client-sign-distributed-document.command-
|
|
8395
|
+
command: () => import('./acorex-platform-module-document-management-client-sign-distributed-document.command-BqLS0leG.mjs').then((c) => c.AXMSignDistributedDocumentCommand),
|
|
8312
8396
|
},
|
|
8313
8397
|
{
|
|
8314
8398
|
key: 'DocumentManagement.Document:RequestReview',
|
|
8315
|
-
command: () => import('./acorex-platform-module-document-management-client-request-document-review.command-
|
|
8399
|
+
command: () => import('./acorex-platform-module-document-management-client-request-document-review.command-CK5mJYR4.mjs').then((c) => c.AXMRequestDocumentReviewCommand),
|
|
8316
8400
|
},
|
|
8317
8401
|
{
|
|
8318
8402
|
key: 'DocumentManagement.DocumentReview:SignOff',
|
|
8319
|
-
command: () => import('./acorex-platform-module-document-management-client-sign-document-review.command-
|
|
8403
|
+
command: () => import('./acorex-platform-module-document-management-client-sign-document-review.command-Ccl9iY7j.mjs').then((c) => c.AXMSignDocumentReviewCommand),
|
|
8320
8404
|
},
|
|
8321
8405
|
]),
|
|
8322
8406
|
], imports: [AXMDriveChooseModule,
|
|
@@ -8403,27 +8487,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
8403
8487
|
provideCommandSetups([
|
|
8404
8488
|
{
|
|
8405
8489
|
key: 'DocumentManagement.Document:Upload',
|
|
8406
|
-
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-
|
|
8490
|
+
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-Dycu8sci.mjs').then((c) => c.AXMUploadDocumentCommand),
|
|
8407
8491
|
},
|
|
8408
8492
|
{
|
|
8409
8493
|
key: 'DocumentManagement.Document:Open',
|
|
8410
|
-
command: () => import('./acorex-platform-module-document-management-client-open-document.command-
|
|
8494
|
+
command: () => import('./acorex-platform-module-document-management-client-open-document.command-IN2QSWDo.mjs').then((c) => c.AXMOpenDocumentCommand),
|
|
8411
8495
|
},
|
|
8412
8496
|
{
|
|
8413
8497
|
key: 'DocumentManagement.Document:Distribute',
|
|
8414
|
-
command: () => import('./acorex-platform-module-document-management-client-distribute-document.command-
|
|
8498
|
+
command: () => import('./acorex-platform-module-document-management-client-distribute-document.command-DgUgY_A1.mjs').then((c) => c.AXMDistributeDocumentCommand),
|
|
8415
8499
|
},
|
|
8416
8500
|
{
|
|
8417
8501
|
key: 'DocumentManagement.DocumentDistribution:SignOff',
|
|
8418
|
-
command: () => import('./acorex-platform-module-document-management-client-sign-distributed-document.command-
|
|
8502
|
+
command: () => import('./acorex-platform-module-document-management-client-sign-distributed-document.command-BqLS0leG.mjs').then((c) => c.AXMSignDistributedDocumentCommand),
|
|
8419
8503
|
},
|
|
8420
8504
|
{
|
|
8421
8505
|
key: 'DocumentManagement.Document:RequestReview',
|
|
8422
|
-
command: () => import('./acorex-platform-module-document-management-client-request-document-review.command-
|
|
8506
|
+
command: () => import('./acorex-platform-module-document-management-client-request-document-review.command-CK5mJYR4.mjs').then((c) => c.AXMRequestDocumentReviewCommand),
|
|
8423
8507
|
},
|
|
8424
8508
|
{
|
|
8425
8509
|
key: 'DocumentManagement.DocumentReview:SignOff',
|
|
8426
|
-
command: () => import('./acorex-platform-module-document-management-client-sign-document-review.command-
|
|
8510
|
+
command: () => import('./acorex-platform-module-document-management-client-sign-document-review.command-Ccl9iY7j.mjs').then((c) => c.AXMSignDocumentReviewCommand),
|
|
8427
8511
|
},
|
|
8428
8512
|
]),
|
|
8429
8513
|
],
|
|
@@ -9221,5 +9305,5 @@ var drive_component = /*#__PURE__*/Object.freeze({
|
|
|
9221
9305
|
* Generated bundle index. Do not edit.
|
|
9222
9306
|
*/
|
|
9223
9307
|
|
|
9224
|
-
export { AXPDocumentExplorerViewModel as A,
|
|
9225
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
9308
|
+
export { resolveFolderExpirationCountBadges as $, AXPDocumentExplorerViewModel as A, AXMDocumentManagerServiceImpl as B, AXMFileTypeExtensionWidgetColumnComponent as C, AXMFileTypeExtensionWidgetDesignerComponent as D, AXMFileTypeExtensionWidgetEditComponent as E, AXMFileTypeExtensionWidgetViewComponent as F, AXMFileTypeModule as G, AXMMenuProvider as H, AXMSearchCommandProvider as I, AXM_DOCUMENT_ATTACHMENT_DIALOG_ON_ACTION_HOOK_KEY as J, AXM_DOCUMENT_DIALOG_SURFACE_ATTACHMENT as K, AXM_DOCUMENT_DIALOG_SURFACE_ATTACHMENT_NO_SAVE as L, AXM_DOCUMENT_EXPIRATION_STATUS as M, AXM_DOCUMENT_EXPIRATION_STATUS_DEFINITION_KEY as N, AXPDocumentManagementSettingProvider as O, AXmFileTypeExtensionWidget as P, DM_AUDIO_EXTENSION_ICONS as Q, DM_DOCUMENT_EXTENSION_ICONS as R, DM_FILE_EXTENSION_ICONS as S, DM_FILE_TYPE_ICONS as T, DM_VIDEO_EXTENSION_ICONS as U, DOCUMENT_DRIVE_PAGE_COMPONENT_KEY as V, ScopedDriveService as W, buildDocumentManagementFileTypeCatalog as X, documentPlugin as Y, resolveDocumentExpirationBadge as Z, resolveDocumentVersionNumber as _, AXMDocumentExpirationBadgeComponent as a, AXMDocumentVersionBadgeComponent as b, AXMFolderExpirationBadgesComponent as c, collectFolderScopedMetaDataList as d, collectDocumentScopedMetaDataList as e, flattenMetaDataColumns as f, collectLookupKeys as g, collectDocumentTypeIds as h, collectDocumentTypeNames as i, AXMDocumentManagerService as j, AXMDocumentDialogService as k, buildFileChooserOptionsFromDocumentType as l, AXPDocumentManagementService as m, collectDocumentTypeKeys as n, sourcesAllowDocumentReview as o, AXMDocumentExplorerComponent as p, AXMFolderPathBreadcrumbsComponent as q, readNodeMetaDataValue as r, sourcesAllowDocumentDistribution as s, AXMDocumentDriveComponent as t, AXMDocumentDrivePageComponent as u, AXMDocumentDrivePageComponentProvider as v, AXMDocumentExpirationStatusProvider as w, AXMDocumentManagementApiService as x, AXMDocumentManagementFileTypeProvider as y, AXMDocumentManagementModule as z };
|
|
9309
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-BiosmCuZ.mjs.map
|