nuxeo-development-framework 0.0.24-bos → 0.0.25-bos

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.
@@ -28776,6 +28776,7 @@ class PdftronComponent {
28776
28776
  this.allowDownloadSecretFile = true; // allow or prevent download screct files
28777
28777
  this.allowPrintSecretFile = true; // allow or prevent print screct files
28778
28778
  this.negelectAddingWaterMark = false; // don't add watermark here whatever eas the conditions (we may add it from outside or not add it at all)
28779
+ this.flattenAnotation = false; // used to flatten anotation into the document to avoid editing on them after saving
28779
28780
  this.isSignedDocument = false; // flage to indicate if this document is signed with outside platform to enable diffrent way of downloading it
28780
28781
  this.onDownloadingSignedDocument = new EventEmitter(); // used to tell outside we need download signed document to download it with proper way diffrent from export of pdftron
28781
28782
  this.onAddingAnotation = new EventEmitter(); // used to export all anotations to outside
@@ -28885,6 +28886,7 @@ class PdftronComponent {
28885
28886
  path: this.baseHref + 'assets/pdftrons',
28886
28887
  forceClientSideInit: true,
28887
28888
  streaming: true,
28889
+ fullAPI: this.importFullApi(),
28888
28890
  licenseKey: LicenceKeys.pdftronLicenceKey,
28889
28891
  css: this.isArabic
28890
28892
  ? this.baseHref + 'assets/styles/ar-mypdftron.css'
@@ -28896,6 +28898,14 @@ class PdftronComponent {
28896
28898
  });
28897
28899
  }
28898
28900
  }
28901
+ importFullApi() {
28902
+ let useFullApi = false;
28903
+ let lockModeExist = this.pdftronService.mode === 'addQrcode';
28904
+ if (this.flattenAnotation && lockModeExist) {
28905
+ useFullApi = true;
28906
+ }
28907
+ return useFullApi;
28908
+ }
28899
28909
  #updateSilentPdfTron() {
28900
28910
  const rect = this.viewerRef.nativeElement.getBoundingClientRect();
28901
28911
  Object.assign(this.silentPdfTron.style, {
@@ -29516,7 +29526,7 @@ class PdftronComponent {
29516
29526
  // maybe will need to reset signature & annotations
29517
29527
  }
29518
29528
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PdftronComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PdftronService }, { token: NuxeoService }, { token: APP_BASE_HREF }, { token: TranslationService }, { token: SilentPdfTronService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Component }); }
29519
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: PdftronComponent, isStandalone: false, 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", isSignedDocument: "isSignedDocument", allowPrintAndDownloadNormalFileByDefault: "allowPrintAndDownloadNormalFileByDefault" }, outputs: { onSignatureTracking: "onSignatureTracking", onDownloadingSignedDocument: "onDownloadingSignedDocument", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] }); }
29529
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: PdftronComponent, isStandalone: false, 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", flattenAnotation: "flattenAnotation", recognizedJson: "recognizedJson", isSignedDocument: "isSignedDocument", allowPrintAndDownloadNormalFileByDefault: "allowPrintAndDownloadNormalFileByDefault" }, outputs: { onSignatureTracking: "onSignatureTracking", onDownloadingSignedDocument: "onDownloadingSignedDocument", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] }); }
29520
29530
  }
29521
29531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PdftronComponent, decorators: [{
29522
29532
  type: Component,
@@ -29572,6 +29582,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
29572
29582
  type: Input
29573
29583
  }], negelectAddingWaterMark: [{
29574
29584
  type: Input
29585
+ }], flattenAnotation: [{
29586
+ type: Input
29575
29587
  }], recognizedJson: [{
29576
29588
  type: Input
29577
29589
  }], isSignedDocument: [{