@yuuvis/app-drive 3.4.4 → 3.4.6
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.
|
@@ -143,6 +143,7 @@ const APP_TYPES = {
|
|
|
143
143
|
sots: [FS_SOTS.object]
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
+
const EMAIL_MIME_TYPES = new Set(['message/rfc822', 'application/vnd.ms-outlook']);
|
|
146
147
|
const APP_FLAVORS = [
|
|
147
148
|
{
|
|
148
149
|
id: 'io.yuuvis.app.drive.flavor.email',
|
|
@@ -154,7 +155,8 @@ const APP_FLAVORS = [
|
|
|
154
155
|
mimeTypes: ['message/rfc822', 'application/vnd.ms-outlook'],
|
|
155
156
|
documents: true
|
|
156
157
|
},
|
|
157
|
-
preventApply: true
|
|
158
|
+
preventApply: true,
|
|
159
|
+
preventRemove: true
|
|
158
160
|
}
|
|
159
161
|
];
|
|
160
162
|
const APP_ACTIONS = {
|
|
@@ -1037,7 +1039,8 @@ class UpdateContentAction extends AbstractContextAction {
|
|
|
1037
1039
|
isExecutable(selection) {
|
|
1038
1040
|
const selected = selection[0];
|
|
1039
1041
|
const canWrite = !!selected?.permissions?.writeContent;
|
|
1040
|
-
|
|
1042
|
+
const isEmail = selected.sots.includes('appSystemmail:email');
|
|
1043
|
+
return of(canWrite && selection.length === 1 && !selected.isFolder && !this.#retention.getRetentionState(selected).underRetention && !isEmail);
|
|
1041
1044
|
}
|
|
1042
1045
|
run(selection) {
|
|
1043
1046
|
if (!selection[0].isFolder) {
|
|
@@ -2883,7 +2886,8 @@ class ObjectPageComponent {
|
|
|
2883
2886
|
#dmsObjectEffect = effect(() => this.#setHeaderData());
|
|
2884
2887
|
fileDropReplaceDisabled = computed(() => {
|
|
2885
2888
|
const e = this.dmsObject();
|
|
2886
|
-
|
|
2889
|
+
const isEmail = e?.sots.includes('appSystemmail:email');
|
|
2890
|
+
return !e || !e.permissions?.writeContent || this.#retention.getRetentionState(e).underRetention || !!isEmail;
|
|
2887
2891
|
});
|
|
2888
2892
|
flavors = computed(() => {
|
|
2889
2893
|
const o = this.dmsObject();
|
|
@@ -3064,5 +3068,5 @@ const YuuvisDriveRoutes = [
|
|
|
3064
3068
|
* Generated bundle index. Do not edit.
|
|
3065
3069
|
*/
|
|
3066
3070
|
|
|
3067
|
-
export { ACTION_CONTEXT, APP_ACTIONS, APP_FLAVORS, APP_ID, APP_PREFIX, APP_TYPES, FS_PROPERTIES, FS_SOTS, SearchFilterComponent, YuuvisDriveRoutes, provideDrive };
|
|
3071
|
+
export { ACTION_CONTEXT, APP_ACTIONS, APP_FLAVORS, APP_ID, APP_PREFIX, APP_TYPES, EMAIL_MIME_TYPES, FS_PROPERTIES, FS_SOTS, SearchFilterComponent, YuuvisDriveRoutes, provideDrive };
|
|
3068
3072
|
//# sourceMappingURL=yuuvis-app-drive.mjs.map
|