nuxeo-development-framework 3.7.7 → 3.7.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.
@@ -18712,7 +18712,7 @@
18712
18712
  return NotificationsButtonComponent;
18713
18713
  }());
18714
18714
  NotificationsButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: NotificationsButtonComponent, deps: [{ token: NotificationsService }, { token: i1__namespace$1.TranslateService }, { token: i1__namespace$3.ToastrService }, { token: TimeAgoPipe }, { token: i2__namespace$2.Router }, { token: i0__namespace.ChangeDetectorRef }, { token: TranslationService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
18715
- NotificationsButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: NotificationsButtonComponent, selector: "app-notifications-button", inputs: { customNotificationIcon: "customNotificationIcon", showFilters: "showFilters" }, outputs: { toastrClick: "toastrClick", listItemClick: "listItemClick" }, ngImport: i0__namespace, template: "<div [matMenuTriggerFor]=\"langMenu\" class=\"notification\" (click)=\"getNotifications()\" class=\"search-wrapper\">\r\n <span *ngIf=\"!customNotificationIcon;else customIcon\" matBadgeSize=\"small\" matBadge=\"{{ notificationsCount }}\"\r\n matBadgeColor=\"warn\" matbadgeposition=\"before\" class=\"bi bi-bell bell\"></span>\r\n</div>\r\n<mat-menu class=\"mat-menu-panel myMenu notification-list\" #langMenu=\"matMenu\">\r\n <app-notifications-list [showFilters]=\"showFilters\" (listItemClick)=\"onListItemClick($event)\"></app-notifications-list>\r\n</mat-menu>\r\n\r\n<ng-template #customIcon>\r\n <ng-container *ngTemplateOutlet=\"customNotificationIcon\"></ng-container>\r\n</ng-template>", styles: [".notifications-count{background-color:#eee;border-radius:5px;color:#333;font-size:11px;padding:0 6px;box-sizing:border-box}.notification-list{max-width:450px!important;width:450px;height:66vh}.notification-list .mat-menu-content{padding:0!important;position:relative;height:calc(100% - 29px)}.notification-list .mat-menu-content .mat-toolbar{margin:0 0 -10px}.mat-menu-panel.myMenu{border-radius:5px!important;overflow:hidden}.notification .mat-icon{margin-right:0!important;vertical-align:middle}.toast-container{right:12px!important;bottom:12px!important;pointer-events:all}.toast-container .ngx-toastr{padding:25px!important;background-position:263px center;border-radius:5px!important;box-shadow:none!important}.toast-container .toast-title{font-weight:normal}.wrap{white-space:normal!important;font-size:14px!important;margin-bottom:8px!important}.mat-menu-content:not(:empty){padding-top:0;padding-bottom:0}[dir=rtl] .toast-container{left:12px!important;right:auto!important;direction:rtl;text-align:right}[dir=rtl] .toast-container .ngx-toastr{background-position:10px center}[dir=rtl] .toast-container .toast-close-button{float:left}.mat-badge-content{right:-4px!important;top:-1px!important}.rtl .mat-badge-content{font-weight:600;right:-6px!important;top:-5px!important}\n"], components: [{ type: i4__namespace$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: NotificationsListComponent, selector: "app-notifications-list", inputs: ["showFilters"], outputs: ["listItemClick"] }], directives: [{ type: i4__namespace$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
18715
+ NotificationsButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: NotificationsButtonComponent, selector: "app-notifications-button", inputs: { customNotificationIcon: "customNotificationIcon", showFilters: "showFilters" }, outputs: { toastrClick: "toastrClick", listItemClick: "listItemClick" }, ngImport: i0__namespace, template: "<div [matMenuTriggerFor]=\"langMenu\" class=\"notification\" (click)=\"getNotifications()\" class=\"search-wrapper\">\r\n <ng-container *ngIf=\"notificationsCount > 0\">\r\n <span *ngIf=\"!customNotificationIcon;else customIcon\" matBadgeSize=\"small\" matBadge=\"{{ notificationsCount }}\"\r\n matBadgeColor=\"warn\" matbadgeposition=\"before\" class=\"bi bi-bell bell\"></span>\r\n </ng-container>\r\n <ng-container *ngIf=\"notificationsCount === 0\">\r\n <span *ngIf=\"!customNotificationIcon;else customIcon\" class=\"bi bi-bell bell\"></span>\r\n </ng-container>\r\n</div>\r\n<mat-menu class=\"mat-menu-panel myMenu notification-list\" #langMenu=\"matMenu\">\r\n <app-notifications-list [showFilters]=\"showFilters\" (listItemClick)=\"onListItemClick($event)\"></app-notifications-list>\r\n</mat-menu>\r\n\r\n<ng-template #customIcon>\r\n <ng-container *ngTemplateOutlet=\"customNotificationIcon\"></ng-container>\r\n</ng-template>", styles: [".notifications-count{background-color:#eee;border-radius:5px;color:#333;font-size:11px;padding:0 6px;box-sizing:border-box}.notification-list{max-width:450px!important;width:450px;height:66vh}.notification-list .mat-menu-content{padding:0!important;position:relative;height:calc(100% - 29px)}.notification-list .mat-menu-content .mat-toolbar{margin:0 0 -10px}.mat-menu-panel.myMenu{border-radius:5px!important;overflow:hidden}.notification .mat-icon{margin-right:0!important;vertical-align:middle}.toast-container{right:12px!important;bottom:12px!important;pointer-events:all}.toast-container .ngx-toastr{padding:25px!important;background-position:263px center;border-radius:5px!important;box-shadow:none!important}.toast-container .toast-title{font-weight:normal}.wrap{white-space:normal!important;font-size:14px!important;margin-bottom:8px!important}.mat-menu-content:not(:empty){padding-top:0;padding-bottom:0}[dir=rtl] .toast-container{left:12px!important;right:auto!important;direction:rtl;text-align:right}[dir=rtl] .toast-container .ngx-toastr{background-position:10px center}[dir=rtl] .toast-container .toast-close-button{float:left}.mat-badge-content{right:-4px!important;top:-1px!important}.rtl .mat-badge-content{font-weight:600;right:-6px!important;top:-5px!important}\n"], components: [{ type: i4__namespace$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: NotificationsListComponent, selector: "app-notifications-list", inputs: ["showFilters"], outputs: ["listItemClick"] }], directives: [{ type: i4__namespace$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["matMenuTriggerRestoreFocus", "mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgePosition", "matBadgeSize", "matBadgeColor", "matBadgeOverlap", "matBadgeDescription", "matBadgeHidden", "matBadge"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
18716
18716
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: NotificationsButtonComponent, decorators: [{
18717
18717
  type: i0.Component,
18718
18718
  args: [{
@@ -18847,19 +18847,28 @@
18847
18847
  this.onFiltering = new i0.EventEmitter();
18848
18848
  }
18849
18849
  FilterComponent.prototype.ngOnInit = function () {
18850
+ var _this = this;
18850
18851
  this.initiateForm();
18851
18852
  var data = JSON.parse(sessionStorage.getItem('dataSource'));
18852
- this.filterForm.patchValue({
18853
- subject: (data && data.Correspondence_subject) ? data.Correspondence_subject : '',
18854
- externalNumber: (data && data.Correspondence_externalCorrespondenceNumber) ? data.Correspondence_externalCorrespondenceNumber : '',
18855
- from: (data && data.Correspondence_from) ? data.Correspondence_from : '',
18856
- refrenceNumber: (data && data.Correspondence_referenceNumber) ? data.Correspondence_referenceNumber : '',
18857
- secrecyLevel: (data && data.Correspondence_secrecyLevel) ? data.Correspondence_secrecyLevel : '',
18858
- to: (data && data.Correspondence_to) ? data.Correspondence_to : null,
18859
- toDate: (data && data.dublincore_created_max) ? data.dublincore_created_max : null,
18860
- fromDate: (data && data.dublincore_created_min) ? data.dublincore_created_min : null,
18861
- state: (data && data.system_currentLifeCycleState) ? data.system_currentLifeCycleState : ''
18862
- });
18853
+ // updated to let setting the form values be dynamic as creation of the form it self
18854
+ if (data) {
18855
+ this.fields.map(function (field) {
18856
+ if (data[field.queryParamName]) {
18857
+ _this.filterForm.get(field.formControlName).setValue(data[field.queryParamName]);
18858
+ }
18859
+ });
18860
+ }
18861
+ // this.filterForm.patchValue({
18862
+ // subject: (data && data.Correspondence_subject) ? data.Correspondence_subject : '',
18863
+ // externalNumber: (data && data.Correspondence_externalCorrespondenceNumber) ? data.Correspondence_externalCorrespondenceNumber : '',
18864
+ // from: (data && data.Correspondence_from) ? data.Correspondence_from : '',
18865
+ // refrenceNumber: (data && data.Correspondence_referenceNumber) ? data.Correspondence_referenceNumber : '',
18866
+ // secrecyLevel: (data && data.Correspondence_secrecyLevel) ? data.Correspondence_secrecyLevel : '',
18867
+ // to: (data && data.Correspondence_to) ? data.Correspondence_to : null,
18868
+ // toDate: (data && data.dublincore_created_max) ? data.dublincore_created_max: null,
18869
+ // fromDate: (data && data.dublincore_created_min) ? data.dublincore_created_min: null,
18870
+ // state: (data && data.system_currentLifeCycleState) ? data.system_currentLifeCycleState : ''
18871
+ // });
18863
18872
  };
18864
18873
  FilterComponent.prototype.initiateForm = function () {
18865
18874
  var _this = this;
@@ -21065,6 +21074,7 @@
21065
21074
  this.useOutsideAnotations = false; // flage to indicat if using out side anotations or not
21066
21075
  this.allowDownloadSecretFile = true; // allow or prevent download screct files
21067
21076
  this.allowPrintSecretFile = true; // allow or prevent print screct files
21077
+ this.negelectAddingWaterMark = false; // don't add watermark here whatever eas the conditions (we may add it from outside or not add it at all)
21068
21078
  this.onAddingAnotation = new i0.EventEmitter(); // used to export all anotations to outside
21069
21079
  this.events = new i0.EventEmitter();
21070
21080
  this.SignatureEvent = new i0.EventEmitter(); // used to export signature to outside
@@ -21409,17 +21419,20 @@
21409
21419
  });
21410
21420
  }
21411
21421
  this.isFetching = false;
21412
- if (this.correspondance !== undefined) {
21413
- // if we need to check on secrecy level for adding water mark or not
21414
- if (this.environment.enableViewerWaterMark && this.secrecyProperty) {
21415
- // check for secrecy level befor adding watermark
21416
- if (this.correspondance.properties[this.secrecyProperty] && this.correspondance.properties[this.secrecyProperty] !== 'Normal') {
21422
+ // if not negelcting adding water mark then check conditions for adding it
21423
+ if (!this.negelectAddingWaterMark) {
21424
+ if (this.correspondance !== undefined) {
21425
+ // if we need to check on secrecy level for adding water mark or not
21426
+ if (this.environment.enableViewerWaterMark && this.secrecyProperty) {
21427
+ // check for secrecy level befor adding watermark
21428
+ if (this.correspondance.properties[this.secrecyProperty] && this.correspondance.properties[this.secrecyProperty] !== 'Normal') {
21429
+ this.addWatermark();
21430
+ }
21431
+ }
21432
+ else if (this.environment.enableViewerWaterMark && !this.secrecyProperty) {
21417
21433
  this.addWatermark();
21418
21434
  }
21419
21435
  }
21420
- else if (this.environment.enableViewerWaterMark && !this.secrecyProperty) {
21421
- this.addWatermark();
21422
- }
21423
21436
  }
21424
21437
  this.cdr.detectChanges();
21425
21438
  };
@@ -21746,7 +21759,7 @@
21746
21759
  return PdftronComponent;
21747
21760
  }());
21748
21761
  PdftronComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: PdftronComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: PdftronService }, { token: NuxeoService$1 }, { token: i4.APP_BASE_HREF }, { token: SecurePipe }, { token: TranslationService$1 }, { token: CustomToastrService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Component });
21749
- PdftronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", 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" }, outputs: { onSignatureTracking: "onSignatureTracking", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] });
21762
+ PdftronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", 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" }, outputs: { onSignatureTracking: "onSignatureTracking", onAddingAnotation: "onAddingAnotation", events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] });
21750
21763
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: PdftronComponent, decorators: [{
21751
21764
  type: i0.Component,
21752
21765
  args: [{
@@ -21806,6 +21819,8 @@
21806
21819
  type: i0.Input
21807
21820
  }], allowPrintSecretFile: [{
21808
21821
  type: i0.Input
21822
+ }], negelectAddingWaterMark: [{
21823
+ type: i0.Input
21809
21824
  }], onAddingAnotation: [{
21810
21825
  type: i0.Output
21811
21826
  }], events: [{