nuxeo-development-framework 3.2.5 → 3.2.7
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/bundles/nuxeo-development-framework.umd.js +10 -9
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/activities-log/activities-log/activities-log.component.js +2 -2
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +3 -3
- package/esm2015/lib/components/permissions/permissions/permissions.component.js +3 -2
- package/esm2015/lib/components/permissions/permissions-template/permissions-template.component.js +2 -2
- package/fesm2015/nuxeo-development-framework.js +6 -5
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/package.json +1 -1
|
@@ -23678,7 +23678,7 @@
|
|
|
23678
23678
|
return ActivitiesLogComponent;
|
|
23679
23679
|
}());
|
|
23680
23680
|
ActivitiesLogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogComponent, deps: [{ token: ActivitiesLogService }, { token: AppConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
23681
|
-
ActivitiesLogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: ActivitiesLogComponent, selector: "app-activities-log", inputs: { documentId: "documentId", file: "file", documentTitle: "documentTitle" }, outputs: { success: "success" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"viewer-loader pb-2\">\r\n <mat-progress-bar *ngIf=\"isFetching\" mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n<div class=\"flex flex-row justify-end items-center\">\r\n <form [formGroup]=\"filterForm\">\r\n <div class=\"w-full flex flex-row justify-end\">\r\n <cts-dynamic-form-slide-toggleitem class=\"text-base text-primary-500 font-bold mb-0\"\r\n formControlName=\"allevent\" [label]=\"'ACTIVITY_LOG.AllEvent'| translate\" (onToggle)=\"getToggleFilters()\">\r\n </cts-dynamic-form-slide-toggleitem>\r\n </div>\r\n </form>\r\n</div>\r\n<div class=\"activity-body\">\r\n <div class=\"activity-area\">\r\n <div *ngFor=\"let item of activitylog; let i = index\">\r\n <cts-single-activity [item]=\"item\" [documentTitle]=\"documentTitle\">\r\n </cts-single-activity>\r\n </div>\r\n </div>\r\n</div>", styles: [".activity-body{padding:14px 10px;overflow:auto;height:100%;overflow-x:hidden}.activity-body .activity-area{padding-inline-start:20px;padding-inline-end:12px;border-inline-start:2px solid #d9dce2}\n"], components: [{ type: i4__namespace$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: DynamicFormSlideToggleitemComponent, selector: "cts-dynamic-form-slide-toggleitem", inputs: ["label", "disabled", "checked", "theme"], outputs: ["onToggle"] }, { type: SingleActivityComponent, selector: "cts-single-activity", inputs: ["item", "documentTitle"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
|
|
23681
|
+
ActivitiesLogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: ActivitiesLogComponent, selector: "app-activities-log", inputs: { documentId: "documentId", file: "file", documentTitle: "documentTitle" }, outputs: { success: "success" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"viewer-loader pb-2\">\r\n <mat-progress-bar *ngIf=\"isFetching\" mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n<div class=\"activity-button flex flex-row justify-end items-center\">\r\n <form [formGroup]=\"filterForm\">\r\n <div class=\"w-full flex flex-row justify-end\">\r\n <cts-dynamic-form-slide-toggleitem class=\"text-base text-primary-500 font-bold mb-0\"\r\n formControlName=\"allevent\" [label]=\"'ACTIVITY_LOG.AllEvent'| translate\" (onToggle)=\"getToggleFilters()\">\r\n </cts-dynamic-form-slide-toggleitem>\r\n </div>\r\n </form>\r\n</div>\r\n<div class=\"activity-body\">\r\n <div class=\"activity-area\">\r\n <div *ngFor=\"let item of activitylog; let i = index\">\r\n <cts-single-activity [item]=\"item\" [documentTitle]=\"documentTitle\">\r\n </cts-single-activity>\r\n </div>\r\n </div>\r\n</div>", styles: [".activity-body{padding:14px 10px;overflow:auto;height:100%;overflow-x:hidden}.activity-body .activity-area{padding-inline-start:20px;padding-inline-end:12px;border-inline-start:2px solid #d9dce2}.activity-button{padding:0 25px}\n"], components: [{ type: i4__namespace$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: DynamicFormSlideToggleitemComponent, selector: "cts-dynamic-form-slide-toggleitem", inputs: ["label", "disabled", "checked", "theme"], outputs: ["onToggle"] }, { type: SingleActivityComponent, selector: "cts-single-activity", inputs: ["item", "documentTitle"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
|
|
23682
23682
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogComponent, decorators: [{
|
|
23683
23683
|
type: i0.Component,
|
|
23684
23684
|
args: [{
|
|
@@ -24134,7 +24134,7 @@
|
|
|
24134
24134
|
return PermissionsTemplateComponent;
|
|
24135
24135
|
}());
|
|
24136
24136
|
PermissionsTemplateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: PermissionsTemplateComponent, deps: [{ token: PermissionService }, { token: CustomToastrService }, { token: i1__namespace$6.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
24137
|
-
PermissionsTemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: PermissionsTemplateComponent, selector: "app-permissions-template", inputs: { allowDeleteAndEdit: "allowDeleteAndEdit", documentId: "documentId", userVisiblePermissions: "userVisiblePermissions", permissionsArray: "permissionsArray" }, outputs: { getPermissions: "getPermissions" }, ngImport: i0__namespace, template: "<div class=\"flex flex-col\">\r\n <div *ngFor=\"let p of permissionsArray\">\r\n <!-- Info -->\r\n <div class=\"flex single-permssion\" *ngIf=\"(p.granted && p.username['entity-type']== 'user') || (p.granted && (p.username['entity-type']== 'group' && (p.username.id != 'administrators' && p.username.id != 'members')))\">\r\n <mat-icon>lock</mat-icon>\r\n <div class=\"flex flex-auto justify-between ml-3\">\r\n <!-- Info -->\r\n <div>\r\n <div class=\"font-bold text-base text-gray-900 w-64\">\r\n <span *ngIf=\"p.username['entity-type'] == 'user'; else group\">\r\n {{p.username.fullName}}\r\n </span>\r\n <ng-template #group>\r\n {{p.username.grouplabel}}\r\n </ng-template>\r\n - {{p.permissionLabel}}</div>\r\n <div class=\"mt-0.5 text-secondary\">\r\n <div class=\"flex flex-row
|
|
24137
|
+
PermissionsTemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: PermissionsTemplateComponent, selector: "app-permissions-template", inputs: { allowDeleteAndEdit: "allowDeleteAndEdit", documentId: "documentId", userVisiblePermissions: "userVisiblePermissions", permissionsArray: "permissionsArray" }, outputs: { getPermissions: "getPermissions" }, ngImport: i0__namespace, template: "<div class=\"flex flex-col\">\r\n <div *ngFor=\"let p of permissionsArray\">\r\n <!-- Info -->\r\n <div class=\"flex single-permssion\" *ngIf=\"(p.granted && p.username['entity-type']== 'user') || (p.granted && (p.username['entity-type']== 'group' && (p.username.id != 'administrators' && p.username.id != 'members')))\">\r\n <mat-icon>lock</mat-icon>\r\n <div class=\"flex flex-auto justify-between ml-3\">\r\n <!-- Info -->\r\n <div>\r\n <div class=\"font-bold text-base text-gray-900 w-64\">\r\n <span *ngIf=\"p.username['entity-type'] == 'user'; else group\">\r\n {{p.username.fullName}}\r\n </span>\r\n <ng-template #group>\r\n {{p.username.grouplabel}}\r\n </ng-template>\r\n - {{p.permissionLabel}}</div>\r\n <div class=\"mt-0.5 text-secondary\">\r\n <div class=\"flex flex-row justify-between\">\r\n <div class=\"flex flex-col\">\r\n <div *ngIf=\"p.begin != null;else permanent\">\r\n {{p.begin | date:'dd/MM/yyyy'}}\r\n <span *ngIf=\"p.end != null\">- {{ p.end | date:'dd/MM/yyyy' }}</span>\r\n </div>\r\n <ng-template #permanent>\r\n <h1>{{\"permission.permanent\" | translate }}</h1>\r\n </ng-template>\r\n <div class=\"text-secondary\">\r\n <ng-container *ngIf=\"p.creator != null && p.creator != 'system'; else grantedBySystemAdmin\">\r\n {{\"permission.granted\" | translate }} {{p.creator['fullName']}}\r\n </ng-container>\r\n <ng-template #grantedBySystemAdmin>\r\n {{\"permission.grantedBySystemAdmin\" | translate }}\r\n </ng-template>\r\n </div>\r\n </div>\r\n <!-- Actions -->\r\n <div class=\"flex\" *ngIf=\"allowDeleteAndEdit && p.currentUserIsPermissionOwner \r\n && p.permission != 'Everything'\">\r\n <button mat-icon-button\r\n (click)=\"editPermission(p.id,p.username,p.permission,p.begin,p.end)\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:pencil-alt'\"></mat-icon>\r\n </button>\r\n \r\n <button mat-icon-button (click)=\"openDialog(p.id)\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:trash'\"></mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".single-permssion{box-shadow:0 0 12.5px #0000001a;border-radius:8px;padding:15px;margin:10px;font-size:12px}\n"], components: [{ type: i2__namespace$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "date": i3__namespace.DatePipe, "translate": i1__namespace$1.TranslatePipe } });
|
|
24138
24138
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: PermissionsTemplateComponent, decorators: [{
|
|
24139
24139
|
type: i0.Component,
|
|
24140
24140
|
args: [{
|
|
@@ -24218,17 +24218,18 @@
|
|
|
24218
24218
|
PermissionsComponent.prototype.getPermissions = function () {
|
|
24219
24219
|
var _this = this;
|
|
24220
24220
|
this.subscriptions$.concat([this.permissionService.getPermissionsForDocument(this.documentId).subscribe(function (res) {
|
|
24221
|
-
var e_1,
|
|
24221
|
+
var e_1, _c;
|
|
24222
24222
|
_this.permissionsType = res.contextParameters.acls;
|
|
24223
24223
|
_this.userVisiblePermissions = res.contextParameters.userVisiblePermissions;
|
|
24224
24224
|
try {
|
|
24225
|
-
for (var
|
|
24226
|
-
var p =
|
|
24225
|
+
for (var _d = __values(_this.permissionsType), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
24226
|
+
var p = _e.value;
|
|
24227
24227
|
if (p.name == 'local') {
|
|
24228
24228
|
_this.localPermissions = [];
|
|
24229
24229
|
_this.addPermissionLabel(p.aces, _this.localPermissions);
|
|
24230
24230
|
_this.localPermissions = _this.localPermissions.map(function (element) {
|
|
24231
|
-
|
|
24231
|
+
var _a, _b;
|
|
24232
|
+
if (element.creator === null || element.creator === 'system' || ((_b = (_a = element.creator) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.username) != _this.nuxeoService.nuxeoClient.user.properties.username) {
|
|
24232
24233
|
element['currentUserIsPermissionOwner'] = false;
|
|
24233
24234
|
}
|
|
24234
24235
|
else {
|
|
@@ -24258,7 +24259,7 @@
|
|
|
24258
24259
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
24259
24260
|
finally {
|
|
24260
24261
|
try {
|
|
24261
|
-
if (
|
|
24262
|
+
if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
|
|
24262
24263
|
}
|
|
24263
24264
|
finally { if (e_1) throw e_1.error; }
|
|
24264
24265
|
}
|
|
@@ -26023,13 +26024,13 @@
|
|
|
26023
26024
|
};
|
|
26024
26025
|
CreateModalComponent.prototype.createDocument = function () {
|
|
26025
26026
|
var _this = this;
|
|
26026
|
-
var _a;
|
|
26027
|
+
var _a, _b;
|
|
26027
26028
|
this.creating = true;
|
|
26028
26029
|
this.uploadMangmentService.failedFiles = [];
|
|
26029
26030
|
this.uploadMangmentService.GeneralFormValidation = this.checkValidation();
|
|
26030
26031
|
if (this.uploadMangmentService.GeneralFormValidation) {
|
|
26031
26032
|
var apiCalls_1 = [];
|
|
26032
|
-
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.path.includes('/default-domain/workspaces/DMSWorkspaces')) {
|
|
26033
|
+
if (((_a = this.data) === null || _a === void 0 ? void 0 : _a.path.includes('/default-domain/workspaces/DMSWorkspaces')) || ((_b = this.data) === null || _b === void 0 ? void 0 : _b.path.includes('/default-domain/UserWorkspaces/'))) {
|
|
26033
26034
|
this.constructPayLoadToWorkSpace(this.uploadMangmentService.uploadedFilesStatus.uploadedFiles);
|
|
26034
26035
|
this.payloadList.map(function (payload) {
|
|
26035
26036
|
apiCalls_1.push(_this.fileMangerService.createFile(payload, _this.fileManagerService.selectedFolderId, 'DMS.CreateDocumentFromBlob'));
|