nuxeo-development-framework 5.4.0 → 5.4.2

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.
@@ -22323,10 +22323,11 @@
22323
22323
  var headers = columns.map(function (col) { return (_this.tableConfig.prefix || '') + col.name; });
22324
22324
  var criteria = this._customCriteriaSub.getValue();
22325
22325
  request.params = Object.assign({}, criteria.params, this._sortValue || {}, ((_b = this.tableConfig) === null || _b === void 0 ? void 0 : _b.quickFilters) ? { quickFilters: this.tableConfig.quickFilters } : {}, request.params);
22326
+ var blobNameKey = (_c = this.exportTableConfig) === null || _c === void 0 ? void 0 : _c.blobName;
22326
22327
  var payload = {
22327
22328
  predicateList: criteria.payload.predicateList || [],
22328
22329
  reportMetaData: {
22329
- blobName: ((_c = this.exportTableConfig) === null || _c === void 0 ? void 0 : _c.blobName) || this.tableConfig.pageProvider,
22330
+ blobName: '',
22330
22331
  docTypeName: this.exportTableConfig.docTypeName,
22331
22332
  fileType: type,
22332
22333
  locale: ((_d = this.exportTableConfig) === null || _d === void 0 ? void 0 : _d.locale) || this._translateService.currentLang,
@@ -22334,10 +22335,15 @@
22334
22335
  headers: []
22335
22336
  }
22336
22337
  };
22337
- this._translateService
22338
- .get(headers)
22338
+ rxjs.forkJoin({
22339
+ ar: this._translateService.getTranslation('ar'),
22340
+ en: this._translateService.getTranslation('en')
22341
+ })
22339
22342
  .pipe(operators.switchMap(function (translations) {
22340
- payload.reportMetaData.headers = headers.map(function (col) { return translations[col]; });
22343
+ var currentTranslations = translations[_this._translateService.currentLang];
22344
+ payload.reportMetaData.headers = headers.map(function (col) { return ___default["default"].get(currentTranslations, col); });
22345
+ payload.reportMetaData.blobName = ___default["default"].get(translations['ar'], blobNameKey);
22346
+ payload.reportMetaData.blobNameEn = ___default["default"].get(translations['en'], blobNameKey);
22341
22347
  return _this._ngTableService.exportTable(request, payload);
22342
22348
  }), operators.catchError(function (_) {
22343
22349
  _this._toastrService.error('TABLE.EXPORT.RequestError');
@@ -38014,7 +38020,7 @@
38014
38020
  this.pdftronService.instance = this.webViewerInstance = instance;
38015
38021
  if (this.correspondance.facets.indexOf('ctocr') > -1 && ((_b = (_a = this.correspondance) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['ctocr:recognizedJson'])) {
38016
38022
  this.fileWithOcr = true;
38017
- this.pages = this.ctocrFulltext ? JSON.stringify(this.ctocrFulltext) : JSON.parse(this.correspondance.properties['ctocr:recognizedJson']);
38023
+ this.pages = this.recognizedJson ? JSON.parse(this.recognizedJson) : JSON.parse(this.correspondance.properties['ctocr:recognizedJson']);
38018
38024
  // override search funtion to use our search in ocr not defult search
38019
38025
  instance.overrideSearchExecution(this.searchFn);
38020
38026
  }
@@ -38058,7 +38064,7 @@
38058
38064
  // maybe will need to reset signature & annotations
38059
38065
  };
38060
38066
  PdftronComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PdftronComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: PdftronService }, { token: NuxeoService }, { token: i4.APP_BASE_HREF }, { token: TranslationService }, { token: SilentPdfTronService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Component });
38061
- PdftronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PdftronComponent, selector: "app-pdftron", inputs: { editMode: "editMode", actionClicked: "actionClicked", fileTitle: "fileTitle", docId: "docId", DOCUMENT_TYPE: "DOCUMENT_TYPE", fileData: "fileData", fitMode: "fitMode", authHeader: "authHeader", fileURL: "fileURL", correspondance: "correspondance", secrecyProperty: "secrecyProperty", editingType: "editingType", userSignatures: "userSignatures", searchString: "searchString", trackSignature: "trackSignature", useOutsideAnotations: "useOutsideAnotations", importedAnotations: "importedAnotations", allowDownloadSecretFile: "allowDownloadSecretFile", allowPrintSecretFile: "allowPrintSecretFile", negelectAddingWaterMark: "negelectAddingWaterMark", ctocrFulltext: "ctocrFulltext" }, outputs: { onSignatureTracking: "onSignatureTracking", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] });
38067
+ PdftronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PdftronComponent, selector: "app-pdftron", inputs: { editMode: "editMode", actionClicked: "actionClicked", fileTitle: "fileTitle", docId: "docId", DOCUMENT_TYPE: "DOCUMENT_TYPE", fileData: "fileData", fitMode: "fitMode", authHeader: "authHeader", fileURL: "fileURL", correspondance: "correspondance", secrecyProperty: "secrecyProperty", editingType: "editingType", userSignatures: "userSignatures", searchString: "searchString", trackSignature: "trackSignature", useOutsideAnotations: "useOutsideAnotations", importedAnotations: "importedAnotations", allowDownloadSecretFile: "allowDownloadSecretFile", allowPrintSecretFile: "allowPrintSecretFile", negelectAddingWaterMark: "negelectAddingWaterMark", recognizedJson: "recognizedJson" }, outputs: { onSignatureTracking: "onSignatureTracking", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] });
38062
38068
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PdftronComponent, decorators: [{
38063
38069
  type: i0.Component,
38064
38070
  args: [{
@@ -38120,7 +38126,7 @@
38120
38126
  type: i0.Input
38121
38127
  }], negelectAddingWaterMark: [{
38122
38128
  type: i0.Input
38123
- }], ctocrFulltext: [{
38129
+ }], recognizedJson: [{
38124
38130
  type: i0.Input
38125
38131
  }], onAddingAnotation: [{
38126
38132
  type: i0.Output