nuxeo-development-framework 3.9.6 → 3.9.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.
@@ -12147,7 +12147,7 @@
12147
12147
  return DataViewerComponent;
12148
12148
  }());
12149
12149
  DataViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataViewerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
12150
- DataViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DataViewerComponent, selector: "cts-data-viewer", inputs: { label: "label", value: "value", vertical: "vertical", customClass: "customClass" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer {{customClass}}\" \r\n[ngClass]=\"{'vertical' : vertical === true}\">\r\n <div class=\"my-label\" matTooltip=\"{{label | translate}}\">{{label | translate}}</div>\r\n <div class=\"my-value\"> \r\n <span class=\"direction-img\">\r\n <i class=\"bi bi-box-arrow-down incoming\"></i>\r\n <i class=\"bi bi-box-arrow-up outgoing\"></i>\r\n <i class=\"bi bi-box-arrow-right internal\"></i>\r\n </span>\r\n <span class=\"text\" matTooltip=\"{{value ? value : '-'}}\">\r\n {{value ? value : '-'}}\r\n </span>\r\n \r\n </div> \r\n</div>\r\n", styles: [""], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
12150
+ DataViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DataViewerComponent, selector: "cts-data-viewer", inputs: { label: "label", value: "value", vertical: "vertical", defultValue: "defultValue", customClass: "customClass" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer {{customClass}}\" \r\n[ngClass]=\"{'vertical' : vertical === true}\">\r\n <div class=\"my-label\" matTooltip=\"{{label | translate}}\">{{label | translate}}</div>\r\n <div class=\"my-value\"> \r\n <span class=\"direction-img\">\r\n <i class=\"bi bi-box-arrow-down incoming\"></i>\r\n <i class=\"bi bi-box-arrow-up outgoing\"></i>\r\n <i class=\"bi bi-box-arrow-right internal\"></i>\r\n </span>\r\n <span class=\"text\" matTooltip=\"{{value ? value : '-'}}\">\r\n {{value ? value : (defultValue ? (defultValue | translate) : '-')}}\r\n </span>\r\n \r\n </div> \r\n</div>\r\n", styles: [""], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
12151
12151
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataViewerComponent, decorators: [{
12152
12152
  type: i0.Component,
12153
12153
  args: [{
@@ -12162,6 +12162,8 @@
12162
12162
  type: i0.Input
12163
12163
  }], vertical: [{
12164
12164
  type: i0.Input
12165
+ }], defultValue: [{
12166
+ type: i0.Input
12165
12167
  }], customClass: [{
12166
12168
  type: i0.Input
12167
12169
  }] } });
@@ -17292,7 +17294,7 @@
17292
17294
  if (this.tenantId) {
17293
17295
  params['queryParams'] = "" + this.tenantId;
17294
17296
  }
17295
- if (this.quickFilters == 'LateAssignments') {
17297
+ if (this.asigneeDepartments) {
17296
17298
  params['assignment_department_1'] = JSON.stringify(this.asigneeDepartments);
17297
17299
  }
17298
17300
  return this.callApi
@@ -17320,39 +17322,43 @@
17320
17322
  }
17321
17323
  };
17322
17324
  DynamicChartComponent.prototype.consturctChartLabel = function (item) {
17325
+ var _this = this;
17323
17326
  var label;
17324
17327
  var groupSplit;
17325
17328
  var secrecy;
17326
17329
  var depCode;
17327
17330
  var departmentName;
17328
- var role;
17331
+ var direction;
17332
+ var restPrefix;
17329
17333
  var myPrifx = "tenant_" + this.tenantId + "_cts_";
17330
17334
  if (item.fetchedKey['entity-type'] == 'group') {
17331
- var restPrefix = item.key.replace(myPrifx, '');
17335
+ restPrefix = item.key.replace(myPrifx, '');
17332
17336
  groupSplit = restPrefix.split('_');
17333
17337
  if (restPrefix.includes('Top_Secret')) {
17334
17338
  secrecy = this.translationService.instant('vocabulary.VOC_SecrecyLevel.Top_Secret');
17335
- depCode = groupSplit[groupSplit.length - 4];
17336
- var depSecrecyPrefix = '_' + depCode + '_Top_Secret';
17337
- role = this.translationService.instant('vocabulary.VOC_Department_ExtraRoles_WithoutSecrecy.' + restPrefix.replace(depSecrecyPrefix, ''));
17338
- // this.departmentApiService.getDepartmentDetails(depCode).subscribe(res => {
17339
- // departmentName = this.isArabic
17340
- // ? res?.entries[0]?.properties['dept:arabicName']
17341
- // : res?.entries[0]?.properties['dept:englishName'];
17342
- // })
17339
+ depCode = groupSplit[groupSplit.length - 3];
17340
+ var dirExtracted = groupSplit[0];
17341
+ direction = this.translationService.instant(dirExtracted[0].toUpperCase() + dirExtracted.substr(1).toLowerCase());
17342
+ this.departmentApiService.getDepartmentDetails(depCode).subscribe(function (res) {
17343
+ var _a, _b;
17344
+ departmentName = _this.isArabic
17345
+ ? (_a = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _a === void 0 ? void 0 : _a.properties['dept:arabicName']
17346
+ : (_b = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _b === void 0 ? void 0 : _b.properties['dept:englishName'];
17347
+ });
17343
17348
  }
17344
17349
  else {
17345
17350
  secrecy = this.translationService.instant('vocabulary.VOC_SecrecyLevel.' + groupSplit[groupSplit.length - 1]);
17346
17351
  depCode = groupSplit[groupSplit.length - 2];
17347
- var depSecrecyPrefix = '_' + depCode + '_' + groupSplit[groupSplit.length - 1];
17348
- role = this.translationService.instant('vocabulary.VOC_Department_ExtraRoles_WithoutSecrecy.' + restPrefix.replace(depSecrecyPrefix, ''));
17349
- // this.departmentApiService.getDepartmentDetails(depCode).subscribe(res => {
17350
- // departmentName = this.isArabic
17351
- // ? res?.entries[0]?.properties['dept:arabicName']
17352
- // : res?.entries[0]?.properties['dept:englishName'];
17353
- // })
17354
- }
17355
- label = role + '-' + secrecy;
17352
+ var dirExtracted = groupSplit[0];
17353
+ direction = this.translationService.instant(dirExtracted[0].toUpperCase() + dirExtracted.substr(1).toLowerCase());
17354
+ this.departmentApiService.getDepartmentDetails(depCode).subscribe(function (res) {
17355
+ var _a, _b;
17356
+ departmentName = _this.isArabic
17357
+ ? (_a = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _a === void 0 ? void 0 : _a.properties['dept:arabicName']
17358
+ : (_b = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _b === void 0 ? void 0 : _b.properties['dept:englishName'];
17359
+ });
17360
+ }
17361
+ label = this.aggregations == 'assignment_department_agg' ? departmentName + '-' + secrecy : departmentName + ' ' + direction + '-' + secrecy;
17356
17362
  }
17357
17363
  else {
17358
17364
  label = item.fetchedKey.fullName;