nuxeo-development-framework 3.4.7 → 3.4.8

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.
@@ -13738,13 +13738,22 @@
13738
13738
  "rejectionCode": "VOC_NCARejectionCode",
13739
13739
  "outCorrespondenceStatus": "VOC_OutCorrespondenceStatus"
13740
13740
  };
13741
+ this.voc_name = '';
13741
13742
  }
13742
13743
  DropdownViewerComponent.prototype.ngOnInit = function () {
13744
+ if (this.dropdownId) {
13745
+ if (this.vocabularyIds[this.dropdownId]) {
13746
+ this.voc_name = this.vocabularyIds[this.dropdownId];
13747
+ }
13748
+ else {
13749
+ this.voc_name = this.dropdownId;
13750
+ }
13751
+ }
13743
13752
  };
13744
13753
  return DropdownViewerComponent;
13745
13754
  }());
13746
13755
  DropdownViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DropdownViewerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
13747
- DropdownViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DropdownViewerComponent, selector: "cts-dropdown-viewer", inputs: { label: "label", value: "value", dropdownId: "dropdownId", vertical: "vertical", withOutLabel: "withOutLabel" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer\" [ngClass]=\"{'vertical' : vertical === true , 'with-out-label': withOutLabel}\">\r\n <div class=\"my-label\" *ngIf=\"!withOutLabel\">{{label | translate}}</div>\r\n <div class=\"my-value\"> {{value ? (\"vocabulary.\" + vocabularyIds[dropdownId] + \".\" + value| translate ): '-'}}</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i3__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
13756
+ DropdownViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DropdownViewerComponent, selector: "cts-dropdown-viewer", inputs: { label: "label", value: "value", dropdownId: "dropdownId", vertical: "vertical", withOutLabel: "withOutLabel" }, ngImport: i0__namespace, template: "<div class=\"my-dynamic-viewer\" [ngClass]=\"{'vertical' : vertical === true , 'with-out-label': withOutLabel}\">\r\n <div class=\"my-label\" *ngIf=\"!withOutLabel\">{{label | translate}}</div>\r\n <div class=\"my-value\"> {{value ? (\"vocabulary.\" + voc_name + \".\" + value| translate ): '-'}}</div>\r\n</div>\r\n", styles: [""], directives: [{ type: i3__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
13748
13757
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DropdownViewerComponent, decorators: [{
13749
13758
  type: i0.Component,
13750
13759
  args: [{
@@ -21094,6 +21103,11 @@
21094
21103
  });
21095
21104
  });
21096
21105
  }
21106
+ else {
21107
+ this.webViewerInstance.disableElements([
21108
+ 'printModal',
21109
+ ]);
21110
+ }
21097
21111
  };
21098
21112
  PdftronComponent.prototype.addWatermark = function () {
21099
21113
  var userinfo = this.nuxeo.nuxeoClient.user.properties;