@acorex-platform/module-document-management-client 0.0.28 → 0.0.32
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-LQjccofO.mjs → acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs} +167 -54
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-CEC9HdMa.mjs → acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-CEC9HdMa.mjs.map → acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-CBpWl_FH.mjs → acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-CBpWl_FH.mjs.map → acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs +5 -4
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-Deduhl99.mjs → acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-Deduhl99.mjs.map → acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-wZG913_E.mjs → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-wZG913_E.mjs.map → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Bv5JFRtL.mjs → acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view.component-Bv5JFRtL.mjs.map → acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-DTEIhPcT.mjs → acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-tiles-view.component-DTEIhPcT.mjs.map → acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-C3-7rgTu.mjs → acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-C3-7rgTu.mjs.map → acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-_r7VP4i8.mjs → acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view.component-_r7VP4i8.mjs.map → acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-BbMZf6zo.mjs → acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-BbMZf6zo.mjs.map → acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-Dskk_B96.mjs → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-Dskk_B96.mjs.map → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-RMDX74O9.mjs → acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view.component-RMDX74O9.mjs.map → acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-DQW2VZJH.mjs → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-DQW2VZJH.mjs.map → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-BT6fRWVH.mjs → acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view.component-BT6fRWVH.mjs.map → acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-CFFOw4gM.mjs → acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-CFFOw4gM.mjs.map → acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client.mjs +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-document-management-client-contracts.d.ts +5 -4
- package/types/acorex-platform-module-document-management-client.d.ts +59 -7
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-LQjccofO.mjs.map +0 -1
|
@@ -41,7 +41,7 @@ import { RouterModule, ActivatedRoute, ROUTES } from '@angular/router';
|
|
|
41
41
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
42
42
|
import { AXPopupService } from '@acorex/components/popup';
|
|
43
43
|
import { AXPLayoutBuilderService } from '@acorex-platform/framework-client/layout/builder';
|
|
44
|
-
import { unset,
|
|
44
|
+
import { unset, castArray, isArray, defaultTo, isEmpty as isEmpty$1, set, get as get$1, isString as isString$1 } from 'lodash';
|
|
45
45
|
import { toDocumentExpirationDate, AXM_DOCUMENT_EXPIRATION_NEAR_DAYS, getDocumentExpirationRemainingDays, AXMDocumentManagementQueryKeys } from '@acorex-platform/module-document-management-client/contracts';
|
|
46
46
|
import { AXToastService } from '@acorex/components/toast';
|
|
47
47
|
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase, AXPPageLayoutComponent } from '@acorex-platform/framework-client/layout/views';
|
|
@@ -2681,7 +2681,7 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
2681
2681
|
* Opens the drive picker popup with consistent layout (large dialog, optional embedded header).
|
|
2682
2682
|
*/
|
|
2683
2683
|
async openDriveFolderPicker(options) {
|
|
2684
|
-
const comp = (await import('./acorex-platform-module-document-management-client-drive-choose.component-
|
|
2684
|
+
const comp = (await import('./acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs')).AXMDocumentDriveChooseComponent;
|
|
2685
2685
|
const popup = await this.popupService.open(comp, {
|
|
2686
2686
|
title: await this.translate.translateAsync(options.titleKey),
|
|
2687
2687
|
size: 'lg',
|
|
@@ -2978,49 +2978,139 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
2978
2978
|
return runtimeCommandPayloadData(result)?.unlocked === true;
|
|
2979
2979
|
}
|
|
2980
2980
|
/**
|
|
2981
|
-
*
|
|
2982
|
-
*
|
|
2981
|
+
* Builds the picker rows for the folder dialogs. Rows keep every backend field and add two
|
|
2982
|
+
* UI-only ones that are stripped again before saving:
|
|
2983
|
+
* - `pickerKey`: the select `valueField`. `name` alone is not reliable because backends may only
|
|
2984
|
+
* project `id` on a folder's assigned document types.
|
|
2985
|
+
* - `displayTitle`: the resolved select `textField` label.
|
|
2983
2986
|
*/
|
|
2984
|
-
initialFolderDialogDocumentTypes(items, existing) {
|
|
2985
|
-
if (Array.isArray(existing) && existing.length > 0) {
|
|
2986
|
-
return existing.map((entry) => {
|
|
2987
|
-
const name = typeof entry === 'object' && entry != null && 'name' in entry ? entry.name : String(entry);
|
|
2988
|
-
return items.find((it) => it?.name === name) ?? entry;
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
const anyType = items.find((it) => it?.name === 'any');
|
|
2992
|
-
return anyType ? [anyType] : [];
|
|
2993
|
-
}
|
|
2994
2987
|
mapDocumentTypesForPicker(items) {
|
|
2995
|
-
return items.map((it) => (
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
})
|
|
2988
|
+
return castArray(items ?? []).map((it) => this.toDocumentTypePickerRow(it));
|
|
2989
|
+
}
|
|
2990
|
+
toDocumentTypePickerRow(item) {
|
|
2991
|
+
const row = (item != null && typeof item === 'object' ? item : { name: item, id: item });
|
|
2992
|
+
return {
|
|
2993
|
+
...row,
|
|
2994
|
+
pickerKey: this.resolveDocumentTypeKey(row),
|
|
2995
|
+
displayTitle: this.resolveDocumentTypeLabel(row),
|
|
2996
|
+
};
|
|
2999
2997
|
}
|
|
2998
|
+
/** Stable identity of a document type, preferring the programmatic name over the backend id. */
|
|
2999
|
+
resolveDocumentTypeKey(item) {
|
|
3000
|
+
const name = item['name'];
|
|
3001
|
+
if (typeof name === 'string' && name !== '') {
|
|
3002
|
+
return name;
|
|
3003
|
+
}
|
|
3004
|
+
const id = item['id'] ?? item['documentTypeId'];
|
|
3005
|
+
return id == null ? '' : String(id);
|
|
3006
|
+
}
|
|
3007
|
+
/** Falls through title -> name -> id so a chip never renders blank when a title resolves empty. */
|
|
3000
3008
|
resolveDocumentTypeLabel(item) {
|
|
3001
|
-
const
|
|
3002
|
-
|
|
3003
|
-
|
|
3009
|
+
for (const candidate of [item['title'], item['name'], item['id']]) {
|
|
3010
|
+
if (candidate == null || candidate === '') {
|
|
3011
|
+
continue;
|
|
3012
|
+
}
|
|
3013
|
+
const resolved = typeof candidate === 'object'
|
|
3014
|
+
? this.translate.resolve(candidate)
|
|
3015
|
+
: this.translate.resolve(String(candidate));
|
|
3016
|
+
if (resolved != null && resolved !== '') {
|
|
3017
|
+
return resolved;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
return '';
|
|
3021
|
+
}
|
|
3022
|
+
/**
|
|
3023
|
+
* Resolves a folder's assigned document types against the picker catalog.
|
|
3024
|
+
*
|
|
3025
|
+
* Assignments are matched on key, then loosely on id, because a folder response and the document
|
|
3026
|
+
* type list are different backend projections (ids may be numeric in one and strings in the
|
|
3027
|
+
* other, and a folder's entry may carry no programmatic name at all). Assignments missing from
|
|
3028
|
+
* the catalog are appended to the data source so the select still shows them as selected instead
|
|
3029
|
+
* of silently dropping them.
|
|
3030
|
+
*
|
|
3031
|
+
* With no assignment (create dialog) the catalog entry named `any` is preselected when present.
|
|
3032
|
+
*/
|
|
3033
|
+
resolveFolderDialogDocumentTypes(catalog, assigned) {
|
|
3034
|
+
if (!isArray(assigned) || assigned.length === 0) {
|
|
3035
|
+
const anyType = catalog.find((it) => it['name'] === 'any');
|
|
3036
|
+
return { selected: anyType ? [anyType] : [], dataSource: catalog };
|
|
3037
|
+
}
|
|
3038
|
+
const dataSource = [...catalog];
|
|
3039
|
+
const selected = assigned.map((entry) => {
|
|
3040
|
+
const row = this.toDocumentTypePickerRow(entry);
|
|
3041
|
+
const id = row['id'] ?? row['documentTypeId'];
|
|
3042
|
+
const match = dataSource.find((it) => (row.pickerKey !== '' && it.pickerKey === row.pickerKey) ||
|
|
3043
|
+
(id != null && it['id'] != null && String(it['id']) === String(id)));
|
|
3044
|
+
if (match) {
|
|
3045
|
+
return match;
|
|
3046
|
+
}
|
|
3047
|
+
dataSource.push(row);
|
|
3048
|
+
return row;
|
|
3049
|
+
});
|
|
3050
|
+
return { selected, dataSource };
|
|
3051
|
+
}
|
|
3052
|
+
/** Removes the picker-only fields so only backend-owned properties are persisted. */
|
|
3053
|
+
toDocumentTypePayload(value) {
|
|
3054
|
+
if (value == null || typeof value !== 'object') {
|
|
3055
|
+
return value;
|
|
3004
3056
|
}
|
|
3005
|
-
|
|
3057
|
+
const row = { ...value };
|
|
3058
|
+
delete row['pickerKey'];
|
|
3059
|
+
delete row['displayTitle'];
|
|
3060
|
+
return row;
|
|
3061
|
+
}
|
|
3062
|
+
/** Maps a select value (row object, or `pickerKey` when the app stores primitives) to its row. */
|
|
3063
|
+
resolveSelectedDocumentType(value, dataSource) {
|
|
3064
|
+
if (value != null && typeof value === 'object') {
|
|
3065
|
+
return this.toDocumentTypePayload(value);
|
|
3066
|
+
}
|
|
3067
|
+
const match = dataSource.find((it) => it.pickerKey === String(value));
|
|
3068
|
+
return this.toDocumentTypePayload(match ?? { name: value, title: value, id: value });
|
|
3069
|
+
}
|
|
3070
|
+
/**
|
|
3071
|
+
* Loads persisted folder metadata for edit dialogs.
|
|
3072
|
+
* Explorer child nodes from a parent's embedded `folders[]` are often shallow and omit
|
|
3073
|
+
* `inherit` / `documentTypes`; `byKey` returns the full stored row.
|
|
3074
|
+
*/
|
|
3075
|
+
async resolveFolderNodeForEdit(node) {
|
|
3076
|
+
try {
|
|
3077
|
+
const folder = await this.folderData.byKey(node.id);
|
|
3078
|
+
if (folder) {
|
|
3079
|
+
return this.mapFolderDtoToFolderNode(folder);
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
catch {
|
|
3083
|
+
// Fall back to the explorer node when storage is unavailable.
|
|
3084
|
+
}
|
|
3085
|
+
return node;
|
|
3086
|
+
}
|
|
3087
|
+
/** Coerces backend/explorer inherit values to a supported selection-list option. */
|
|
3088
|
+
normalizeFolderInherit(inherit) {
|
|
3089
|
+
if (inherit === 'None' || inherit === 'Inherited' || inherit === 'Extends') {
|
|
3090
|
+
return inherit;
|
|
3091
|
+
}
|
|
3092
|
+
return 'None';
|
|
3006
3093
|
}
|
|
3007
3094
|
/**
|
|
3008
3095
|
* Shows folder edit dialog
|
|
3009
3096
|
*/
|
|
3010
3097
|
async showFolderEditDialog(node) {
|
|
3098
|
+
const source = await this.resolveFolderNodeForEdit(node);
|
|
3011
3099
|
// Load document types for selection
|
|
3012
3100
|
const res = await this.documentTypeService.query({ skip: 0, take: 1000 });
|
|
3013
|
-
const
|
|
3101
|
+
const catalog = this.mapDocumentTypesForPicker(res?.items ?? []);
|
|
3102
|
+
const { selected: initialDocumentTypes, dataSource: items } = this.resolveFolderDialogDocumentTypes(catalog, source.documentTypes);
|
|
3014
3103
|
const result = await this.layoutBuilder
|
|
3015
3104
|
.create()
|
|
3016
3105
|
.dialog((dialog) => {
|
|
3017
3106
|
dialog
|
|
3018
3107
|
.setTitle('@document-management:actions.update-folder')
|
|
3019
3108
|
.setContext({
|
|
3020
|
-
name:
|
|
3021
|
-
description:
|
|
3022
|
-
|
|
3023
|
-
|
|
3109
|
+
name: source.name,
|
|
3110
|
+
description: source.description ?? '',
|
|
3111
|
+
inherit: this.normalizeFolderInherit(source.inherit),
|
|
3112
|
+
documentTypes: initialDocumentTypes,
|
|
3113
|
+
color: resolveFolderColor(source.color),
|
|
3024
3114
|
})
|
|
3025
3115
|
.content((flex) => {
|
|
3026
3116
|
flex
|
|
@@ -3032,11 +3122,23 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3032
3122
|
.formField('@general:terms.common.description', (field) => {
|
|
3033
3123
|
field.path('description');
|
|
3034
3124
|
field.largeTextBox({});
|
|
3125
|
+
})
|
|
3126
|
+
.formField('@document-management:terms.common.inherited', (field) => {
|
|
3127
|
+
field.path('inherit');
|
|
3128
|
+
field.selectionList({
|
|
3129
|
+
valueField: 'value',
|
|
3130
|
+
textField: 'text',
|
|
3131
|
+
dataSource: [
|
|
3132
|
+
{ value: 'None', text: 'None' },
|
|
3133
|
+
{ value: 'Inherited', text: 'Inherited' },
|
|
3134
|
+
{ value: 'Extends', text: 'Extends' },
|
|
3135
|
+
],
|
|
3136
|
+
});
|
|
3035
3137
|
})
|
|
3036
3138
|
.formField('@document-management:entities.document-types.title-plural', (field) => {
|
|
3037
3139
|
field.path('documentTypes');
|
|
3038
3140
|
field.selectBox({
|
|
3039
|
-
valueField: '
|
|
3141
|
+
valueField: 'pickerKey',
|
|
3040
3142
|
textField: 'displayTitle',
|
|
3041
3143
|
dataSource: items,
|
|
3042
3144
|
multiple: true,
|
|
@@ -3063,12 +3165,11 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3063
3165
|
if (selected.length === 0) {
|
|
3064
3166
|
return false;
|
|
3065
3167
|
}
|
|
3066
|
-
const selectedTypes = selected.map((v) =>
|
|
3168
|
+
const selectedTypes = selected.map((v) => this.resolveSelectedDocumentType(v, items));
|
|
3067
3169
|
await this.updateFolder(node.id, {
|
|
3068
3170
|
title: form.title ?? form.name,
|
|
3069
3171
|
description: form.description,
|
|
3070
|
-
|
|
3071
|
-
inherit: 'None',
|
|
3172
|
+
inherit: form.inherit,
|
|
3072
3173
|
documentTypes: selectedTypes,
|
|
3073
3174
|
color: resolveFolderColor(form.color),
|
|
3074
3175
|
});
|
|
@@ -3093,10 +3194,10 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3093
3194
|
}
|
|
3094
3195
|
else {
|
|
3095
3196
|
const set = new Set(allowedNames);
|
|
3096
|
-
items = items.filter((it) => it
|
|
3197
|
+
items = items.filter((it) => it.pickerKey !== '' && set.has(it.pickerKey));
|
|
3097
3198
|
}
|
|
3098
3199
|
}
|
|
3099
|
-
const defaultDocumentTypes = this.
|
|
3200
|
+
const { selected: defaultDocumentTypes } = this.resolveFolderDialogDocumentTypes(items, []);
|
|
3100
3201
|
const result = await this.layoutBuilder
|
|
3101
3202
|
.create()
|
|
3102
3203
|
.dialog((dialog) => {
|
|
@@ -3105,6 +3206,7 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3105
3206
|
.setContext({
|
|
3106
3207
|
title: '',
|
|
3107
3208
|
description: '',
|
|
3209
|
+
inherit: 'None',
|
|
3108
3210
|
documentTypes: defaultDocumentTypes,
|
|
3109
3211
|
color: AXM_DEFAULT_FOLDER_COLOR,
|
|
3110
3212
|
})
|
|
@@ -3118,11 +3220,23 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3118
3220
|
.formField('@general:terms.common.description', (field) => {
|
|
3119
3221
|
field.path('description');
|
|
3120
3222
|
field.largeTextBox({});
|
|
3223
|
+
})
|
|
3224
|
+
.formField('@document-management:terms.common.inherited', (field) => {
|
|
3225
|
+
field.path('inherit');
|
|
3226
|
+
field.selectionList({
|
|
3227
|
+
valueField: 'value',
|
|
3228
|
+
textField: 'text',
|
|
3229
|
+
dataSource: [
|
|
3230
|
+
{ value: 'None', text: 'None' },
|
|
3231
|
+
{ value: 'Inherited', text: 'Inherited' },
|
|
3232
|
+
{ value: 'Extends', text: 'Extends' },
|
|
3233
|
+
],
|
|
3234
|
+
});
|
|
3121
3235
|
})
|
|
3122
3236
|
.formField('@document-management:entities.document-types.title-plural', (field) => {
|
|
3123
3237
|
field.path('documentTypes');
|
|
3124
3238
|
field.selectBox({
|
|
3125
|
-
valueField: '
|
|
3239
|
+
valueField: 'pickerKey',
|
|
3126
3240
|
textField: 'displayTitle',
|
|
3127
3241
|
dataSource: items,
|
|
3128
3242
|
multiple: true,
|
|
@@ -3149,7 +3263,7 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3149
3263
|
if (selectedTypesRaw.length === 0) {
|
|
3150
3264
|
return null;
|
|
3151
3265
|
}
|
|
3152
|
-
const selectedTypes = selectedTypesRaw.map((v) =>
|
|
3266
|
+
const selectedTypes = selectedTypesRaw.map((v) => this.resolveSelectedDocumentType(v, items));
|
|
3153
3267
|
try {
|
|
3154
3268
|
const folder = await this.createFolder({
|
|
3155
3269
|
title: form.title,
|
|
@@ -3158,8 +3272,7 @@ class AXMDocumentManagerServiceImpl extends AXMDocumentManagerService {
|
|
|
3158
3272
|
description: form.description,
|
|
3159
3273
|
documentTypes: selectedTypes,
|
|
3160
3274
|
size: 0,
|
|
3161
|
-
|
|
3162
|
-
inherit: 'None',
|
|
3275
|
+
inherit: form.inherit,
|
|
3163
3276
|
});
|
|
3164
3277
|
return folder;
|
|
3165
3278
|
}
|
|
@@ -3579,7 +3692,7 @@ const AXM_DRIVE_FILE_CHOOSER_PROVIDER = {
|
|
|
3579
3692
|
const scope = defaultTo(context.options['scope'], AXPPlatformScope.Tenant);
|
|
3580
3693
|
const multiple = Boolean(context.options['multiple']);
|
|
3581
3694
|
const browseMode = defaultTo(context.options['browseMode'], 'file');
|
|
3582
|
-
const component = (await import('./acorex-platform-module-document-management-client-drive-choose.component-
|
|
3695
|
+
const component = (await import('./acorex-platform-module-document-management-client-drive-choose.component-C5k9lfTZ.mjs')).AXMDocumentDriveChooseComponent;
|
|
3583
3696
|
const popup = await popupService.open(component, {
|
|
3584
3697
|
title: await translate.translateAsync('@document-management:actions.choose-from-drive'),
|
|
3585
3698
|
size: 'lg',
|
|
@@ -5714,28 +5827,28 @@ class AXMDocumentExplorerComponent {
|
|
|
5714
5827
|
/** Drops stale async open results when the user right-clicks again before items resolve. */
|
|
5715
5828
|
this.contextMenuOpenToken = 0;
|
|
5716
5829
|
this.viewMap = {
|
|
5717
|
-
list: async () => (await import('./acorex-platform-module-document-management-client-list-view.component-
|
|
5718
|
-
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view.component-
|
|
5719
|
-
'large-tiles': async () => (await import('./acorex-platform-module-document-management-client-large-tiles-view.component-
|
|
5830
|
+
list: async () => (await import('./acorex-platform-module-document-management-client-list-view.component-Dhb8hXxU.mjs')).AXMDocumentExplorerListViewComponent,
|
|
5831
|
+
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view.component-CriaQUl9.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
|
|
5832
|
+
'large-tiles': async () => (await import('./acorex-platform-module-document-management-client-large-tiles-view.component-Cfb1yjRX.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
|
|
5720
5833
|
// details: async () =>
|
|
5721
5834
|
// (await import('./views/details/details-view.component')).AXMDocumentExplorerDetailsViewComponent,
|
|
5722
|
-
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view.component-
|
|
5723
|
-
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view.component-
|
|
5724
|
-
'attachment': async () => (await import('./acorex-platform-module-document-management-client-attachment-widget.component-
|
|
5835
|
+
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view.component-Ca-TQvpA.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
|
|
5836
|
+
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view.component-lXNM0X4L.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
|
|
5837
|
+
'attachment': async () => (await import('./acorex-platform-module-document-management-client-attachment-widget.component-B6vM6wyL.mjs')).AXMDocumentExplorerAttachmentComponent,
|
|
5725
5838
|
};
|
|
5726
5839
|
this.skeletonViewMap = {
|
|
5727
|
-
list: async () => (await import('./acorex-platform-module-document-management-client-list-view-skeleton.component-
|
|
5728
|
-
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-
|
|
5840
|
+
list: async () => (await import('./acorex-platform-module-document-management-client-list-view-skeleton.component-BLSnss8G.mjs')).AXMDocumentExplorerListViewSkeletonComponent,
|
|
5841
|
+
'small-tiles': async () => (await import('./acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-C6bUuOPN.mjs'))
|
|
5729
5842
|
.AXMDocumentExplorerSmallTilesViewSkeletonComponent,
|
|
5730
5843
|
'large-tiles': async () => (await Promise.resolve().then(function () { return largeTilesViewSkeleton_component; }))
|
|
5731
5844
|
.AXMDocumentExplorerLargeTilesViewSkeletonComponent,
|
|
5732
5845
|
// details: async () =>
|
|
5733
5846
|
// (await import('./views/details/details-view-skeleton.component')).AXMDocumentExplorerDetailsViewSkeletonComponent,
|
|
5734
|
-
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view-skeleton.component-
|
|
5847
|
+
'large-icons': async () => (await import('./acorex-platform-module-document-management-client-large-icons-view-skeleton.component-50qY585J.mjs'))
|
|
5735
5848
|
.AXMDocumentExplorerLargeIconsViewSkeletonComponent,
|
|
5736
|
-
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view-skeleton.component-
|
|
5849
|
+
'small-icons': async () => (await import('./acorex-platform-module-document-management-client-small-icons-view-skeleton.component-cQZCJ4u4.mjs'))
|
|
5737
5850
|
.AXMDocumentExplorerSmallIconsViewSkeletonComponent,
|
|
5738
|
-
attachment: async () => (await import('./acorex-platform-module-document-management-client-attachment-view-skeleton.component-
|
|
5851
|
+
attachment: async () => (await import('./acorex-platform-module-document-management-client-attachment-view-skeleton.component-BWlNCsBd.mjs'))
|
|
5739
5852
|
.AXMDocumentExplorerAttachmentViewSkeletonComponent,
|
|
5740
5853
|
};
|
|
5741
5854
|
this.#effect2 = effect(() => {
|
|
@@ -6955,11 +7068,11 @@ class AXMDocumentManagementModule {
|
|
|
6955
7068
|
provideCommandSetups([
|
|
6956
7069
|
{
|
|
6957
7070
|
key: 'DocumentManagement.Document:Upload',
|
|
6958
|
-
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-
|
|
7071
|
+
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs').then((c) => c.AXMUploadDocumentCommand),
|
|
6959
7072
|
},
|
|
6960
7073
|
{
|
|
6961
7074
|
key: 'DocumentManagement.Document:Open',
|
|
6962
|
-
command: () => import('./acorex-platform-module-document-management-client-open-document.command-
|
|
7075
|
+
command: () => import('./acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs').then((c) => c.AXMOpenDocumentCommand),
|
|
6963
7076
|
},
|
|
6964
7077
|
]),
|
|
6965
7078
|
], imports: [AXMDriveChooseModule,
|
|
@@ -7052,11 +7165,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
7052
7165
|
provideCommandSetups([
|
|
7053
7166
|
{
|
|
7054
7167
|
key: 'DocumentManagement.Document:Upload',
|
|
7055
|
-
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-
|
|
7168
|
+
command: () => import('./acorex-platform-module-document-management-client-upload-document.command-BvcccSTh.mjs').then((c) => c.AXMUploadDocumentCommand),
|
|
7056
7169
|
},
|
|
7057
7170
|
{
|
|
7058
7171
|
key: 'DocumentManagement.Document:Open',
|
|
7059
|
-
command: () => import('./acorex-platform-module-document-management-client-open-document.command-
|
|
7172
|
+
command: () => import('./acorex-platform-module-document-management-client-open-document.command-s2r33nBp.mjs').then((c) => c.AXMOpenDocumentCommand),
|
|
7060
7173
|
},
|
|
7061
7174
|
]),
|
|
7062
7175
|
],
|
|
@@ -7846,4 +7959,4 @@ var drive_component = /*#__PURE__*/Object.freeze({
|
|
|
7846
7959
|
*/
|
|
7847
7960
|
|
|
7848
7961
|
export { AXPDocumentExplorerViewModel as A, AXM_DOCUMENT_EXPIRATION_STATUS_DEFINITION_KEY as B, AXPDocumentManagementService as C, AXPDocumentManagementSettingProvider as D, AXmFileTypeExtensionWidget as E, DM_AUDIO_EXTENSION_ICONS as F, DM_DOCUMENT_EXTENSION_ICONS as G, DM_FILE_EXTENSION_ICONS as H, DM_FILE_TYPE_ICONS as I, DM_VIDEO_EXTENSION_ICONS as J, DOCUMENT_DRIVE_PAGE_COMPONENT_KEY as K, buildDocumentManagementFileTypeCatalog as L, documentPlugin as M, resolveDocumentExpirationBadge as N, resolveFolderExpirationCountBadges as O, ScopedDriveService as S, AXMDocumentExpirationBadgeComponent as a, AXMFolderExpirationBadgesComponent as b, AXMDocumentManagerService as c, AXMDocumentDialogService as d, buildFileChooserOptionsFromDocumentType as e, AXMDocumentExplorerComponent as f, AXMFolderPathBreadcrumbsComponent as g, AXMDocumentDriveComponent as h, AXMDocumentDrivePageComponent as i, AXMDocumentDrivePageComponentProvider as j, AXMDocumentExpirationStatusProvider as k, AXMDocumentManagementApiService as l, AXMDocumentManagementFileTypeProvider as m, AXMDocumentManagementModule as n, AXMDocumentManagerServiceImpl as o, AXMFileTypeExtensionWidgetColumnComponent as p, AXMFileTypeExtensionWidgetDesignerComponent as q, AXMFileTypeExtensionWidgetEditComponent as r, AXMFileTypeExtensionWidgetViewComponent as s, AXMFileTypeModule as t, AXMMenuProvider as u, AXMSearchCommandProvider as v, AXM_DOCUMENT_ATTACHMENT_DIALOG_ON_ACTION_HOOK_KEY as w, AXM_DOCUMENT_DIALOG_SURFACE_ATTACHMENT as x, AXM_DOCUMENT_DIALOG_SURFACE_ATTACHMENT_NO_SAVE as y, AXM_DOCUMENT_EXPIRATION_STATUS as z };
|
|
7849
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-
|
|
7962
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-EXw7ezd3.mjs.map
|