nuxeo-development-framework 6.0.4 → 6.0.5

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.
@@ -3783,6 +3783,9 @@
3783
3783
  }
3784
3784
  });
3785
3785
  }
3786
+ if (this.bearerToken) {
3787
+ headers['Authorization'] = this.bearerToken;
3788
+ }
3786
3789
  return this.http
3787
3790
  .request(query.method, "" + this.environment.nuxeo + query.url, {
3788
3791
  body: _payload,
@@ -7166,7 +7169,8 @@
7166
7169
  filecontent: item.properties ? item.properties['file:content'] : item['file:content'],
7167
7170
  direction: item.properties ? item.properties['corr:direction'] : item['corr:direction'],
7168
7171
  iconName: 'arrow_upward',
7169
- moreclasses: "relation-file-icons"
7172
+ moreclasses: "relation-file-icons",
7173
+ referenceNumber: item.referenceNumber ? item.referenceNumber : '-'
7170
7174
  });
7171
7175
  });
7172
7176
  }
@@ -7184,7 +7188,8 @@
7184
7188
  filecontent: item.properties ? item.properties['file:content'] : item['file:content'],
7185
7189
  direction: item.properties ? item.properties['corr:direction'] : item['corr:direction'],
7186
7190
  iconName: 'arrow_downward',
7187
- moreclasses: "relation-file-icons"
7191
+ moreclasses: "relation-file-icons",
7192
+ referenceNumber: item.referenceNumber ? item.referenceNumber : '-'
7188
7193
  });
7189
7194
  });
7190
7195
  }
@@ -7193,7 +7198,7 @@
7193
7198
  return CorrespondenceRelationReplyComponent;
7194
7199
  }());
7195
7200
  CorrespondenceRelationReplyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CorrespondenceRelationReplyComponent, deps: [{ token: CorrespondenceRelationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
7196
- CorrespondenceRelationReplyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CorrespondenceRelationReplyComponent, selector: "cts-correspondence-relation-reply", inputs: { correspondence_id: "correspondence_id" }, outputs: { actionclicked: "actionclicked" }, ngImport: i0__namespace, template: "<div class=\"relations-list\" *ngIf=\"replyrelation.length > 0\">\r\n <ng-container>\r\n <mat-list>\r\n <div class=\"mat-list-items\" *ngFor=\"let item of replyrelation\">\r\n <cts-item-list\r\n [item]=\"item\"\r\n [title]=\"item.title\"\r\n [actions]=\"menu_actions\"\r\n [iconname]=\"item.iconName\"\r\n [moreclasses]=\"item.moreclasses\"\r\n (actionclicked)=\"fireAction(item, 'view')\"\r\n (itemClicked)=\"fireAction(item)\"\r\n ></cts-item-list>\r\n </div>\r\n </mat-list>\r\n </ng-container>\r\n</div>\r\n<div class=\"nocontent\" *ngIf=\"replyrelation.length === 0\">\r\n <p>{{ \"correspondence-relation.nocontentreply\" | translate }}</p>\r\n</div>\r\n", styles: [".relations-list{border:1px solid #eee}.relations-list .mat-expansion-panel{box-shadow:none!important}.relations-list .mat-expansion-panel-header{border-bottom:1px solid #d9dce2;background-color:#f5f6f8;height:50px!important}.relations-list .mat-expansion-panel-header:hover{background-color:#f5f6f8!important}.relations-list .mat-expansion-panel-header:focus{background-color:#f5f6f8!important}.relations-list .mat-expansion-panel-header-title{font-weight:500}.relations-list .mat-accordion .mat-expansion-panel{border-radius:0!important}.relations-list .mat-expansion-panel-body{padding:0!important}.nocontent{color:gray;padding:10px;font-size:14px;border:1px solid #d9dce2}.nocontent p{margin:0;text-align:center}\n"], components: [{ type: i2__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: ItemListComponent, selector: "cts-item-list", inputs: ["item", "iconname", "title", "actions", "isselected", "moreclasses"], outputs: ["itemClicked", "actionclicked"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
7201
+ CorrespondenceRelationReplyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CorrespondenceRelationReplyComponent, selector: "cts-correspondence-relation-reply", inputs: { correspondence_id: "correspondence_id" }, outputs: { actionclicked: "actionclicked" }, ngImport: i0__namespace, template: "<div class=\"relations-list\" *ngIf=\"replyrelation.length > 0\">\r\n <ng-container>\r\n <mat-list>\r\n <div class=\"mat-list-items\" *ngFor=\"let item of replyrelation\">\r\n <cts-item-list\r\n [item]=\"item\"\r\n [title]=\"item.referenceNumber ? (item.referenceNumber + ' - ' + item.title) : (item.title)\"\r\n [actions]=\"menu_actions\"\r\n [iconname]=\"item.iconName\"\r\n [moreclasses]=\"item.moreclasses\"\r\n (actionclicked)=\"fireAction(item, 'view')\"\r\n (itemClicked)=\"fireAction(item)\"\r\n ></cts-item-list>\r\n </div>\r\n </mat-list>\r\n </ng-container>\r\n</div>\r\n<div class=\"nocontent\" *ngIf=\"replyrelation.length === 0\">\r\n <p>{{ \"correspondence-relation.nocontentreply\" | translate }}</p>\r\n</div>\r\n", styles: [".relations-list{border:1px solid #eee}.relations-list .mat-expansion-panel{box-shadow:none!important}.relations-list .mat-expansion-panel-header{border-bottom:1px solid #d9dce2;background-color:#f5f6f8;height:50px!important}.relations-list .mat-expansion-panel-header:hover{background-color:#f5f6f8!important}.relations-list .mat-expansion-panel-header:focus{background-color:#f5f6f8!important}.relations-list .mat-expansion-panel-header-title{font-weight:500}.relations-list .mat-accordion .mat-expansion-panel{border-radius:0!important}.relations-list .mat-expansion-panel-body{padding:0!important}.nocontent{color:gray;padding:10px;font-size:14px;border:1px solid #d9dce2}.nocontent p{margin:0;text-align:center}\n"], components: [{ type: i2__namespace$2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: ItemListComponent, selector: "cts-item-list", inputs: ["item", "iconname", "title", "actions", "isselected", "moreclasses"], outputs: ["itemClicked", "actionclicked"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
7197
7202
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CorrespondenceRelationReplyComponent, decorators: [{
7198
7203
  type: i0.Component,
7199
7204
  args: [{
@@ -7443,9 +7448,14 @@
7443
7448
  };
7444
7449
  CorrespondenceRelationComponent.prototype.showCorrespondenceInViewer = function (corres_id) {
7445
7450
  var _this = this;
7446
- this.documentsApi.getDocument(corres_id).subscribe(function (file) {
7447
- _this.viewerFilesService.updateViewer.next(file);
7448
- });
7451
+ if (corres_id) {
7452
+ this.documentsApi.getDocument(corres_id).subscribe(function (file) {
7453
+ _this.viewerFilesService.updateViewer.next(file);
7454
+ });
7455
+ }
7456
+ else {
7457
+ this.openGeneralNotificationPopup();
7458
+ }
7449
7459
  };
7450
7460
  CorrespondenceRelationComponent.prototype.openConfirmDialog = function (functionToPerform, title, msg) {
7451
7461
  return this.dialog