nuxeo-development-framework 0.8.5 → 0.8.9
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.
- package/bundles/nuxeo-development-framework.umd.js +29 -22
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +7 -6
- package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +4 -6
- package/esm2015/lib/components/comments/services/comment-api.service.js +5 -5
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +1 -1
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +2 -2
- package/esm2015/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.js +2 -2
- package/esm2015/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.js +2 -2
- package/esm2015/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.js +2 -2
- package/esm2015/lib/components/dynamic-view/dynamic-viewe.service.js +1 -1
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +15 -7
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +25 -20
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/comments/services/comment-api.service.d.ts +2 -2
- package/lib/components/pdf-tron/pdftron/pdftron.component.d.ts +6 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -9191,7 +9191,7 @@ class UserSelectorWrapperComponent {
|
|
|
9191
9191
|
}
|
|
9192
9192
|
}
|
|
9193
9193
|
UserSelectorWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: UserSelectorWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9194
|
-
UserSelectorWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: UserSelectorWrapperComponent, selector: "lib-user-selector-wrapper", inputs: { value: "value", multipleMode: "multipleMode", customOptions: "customOptions" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<cts-dynamic-form-select-users placeholder=\"{{ 'CREATE.PLACE_HOLDER' | translate }} {{'CREATE.USER' | translate}}\"\
|
|
9194
|
+
UserSelectorWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: UserSelectorWrapperComponent, selector: "lib-user-selector-wrapper", inputs: { value: "value", multipleMode: "multipleMode", customOptions: "customOptions" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<cts-dynamic-form-select-users placeholder=\"{{ 'CREATE.PLACE_HOLDER' | translate }} {{'CREATE.USER' | translate}}\"\n [multiple]=\"multipleMode\"\n [searchable]=\"true\"\n [bindLabel]=\"'fullName'\"\n [closeOnSelect]=\"!multipleMode\"\n [searchable]=\"true\"\n [deptTitle]=\"'all'\"\n [preSelectedValues]=\"[]\"\n [usePreSelectedValue]=\"true\"\n (onSelectItems)=\"executeFunction($event)\"\n (ngModelChange)=\"checkChange($event)\"\n [(ngModel)]=\"bindedValue\" >\n</cts-dynamic-form-select-users>\n <!-- -->\n\n<!-- <div>{{customOptions | json}}</div>\n<div>{{multipleMode}}</div> -->", styles: [""], components: [{ type: DynamicFormSelectUsersComponent, selector: "cts-dynamic-form-select-users", inputs: ["deptTitle", "label", "bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "preSelectedValues", "usePreSelectedValue", "disabled", "filter"], outputs: ["onSelectItems"] }], directives: [{ type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
9195
9195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: UserSelectorWrapperComponent, decorators: [{
|
|
9196
9196
|
type: Component,
|
|
9197
9197
|
args: [{
|
|
@@ -12207,7 +12207,7 @@ class CutomeVocViewerComponent {
|
|
|
12207
12207
|
}
|
|
12208
12208
|
}
|
|
12209
12209
|
CutomeVocViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CutomeVocViewerComponent, deps: [{ token: TranslationService$1 }], target: i0.ɵɵFactoryTarget.Component });
|
|
12210
|
-
CutomeVocViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CutomeVocViewerComponent, selector: "lib-cutome-voc-viewer", inputs: { type: "type", group: "group" }, ngImport: i0, template: "<span *ngIf=\"group\">\
|
|
12210
|
+
CutomeVocViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CutomeVocViewerComponent, selector: "lib-cutome-voc-viewer", inputs: { type: "type", group: "group" }, ngImport: i0, template: "<span *ngIf=\"group\">\n <span *ngIf=\"type === 'vocabulary'\">\n {{\n \"vocabulary.\" + group.fetchedKey.directoryName + \".\" + group.key | translate\n }}\n </span>\n <span *ngIf=\"type === 'custom-voc'\">\n {{\n isArabic\n ? group.fetchedKey.properties.label_ar\n : group.fetchedKey.properties.label_en\n }}\n </span>\n</span>\n", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
12211
12211
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CutomeVocViewerComponent, decorators: [{
|
|
12212
12212
|
type: Component,
|
|
12213
12213
|
args: [{
|
|
@@ -12260,7 +12260,7 @@ class CustomPpViewerComponent {
|
|
|
12260
12260
|
}
|
|
12261
12261
|
}
|
|
12262
12262
|
CustomPpViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CustomPpViewerComponent, deps: [{ token: DynamicVieweService }, { token: CallApiService }, { token: TranslationService$1 }], target: i0.ɵɵFactoryTarget.Component });
|
|
12263
|
-
CustomPpViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomPpViewerComponent, selector: "lib-custom-pp-viewer", inputs: { pageProvider: "pageProvider", group: "group" }, ngImport: i0, template: "<span *ngIf=\"data\">\
|
|
12263
|
+
CustomPpViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomPpViewerComponent, selector: "lib-custom-pp-viewer", inputs: { pageProvider: "pageProvider", group: "group" }, ngImport: i0, template: "<span *ngIf=\"data\">\n {{isArabic ? data['category:arabicTitle'] : data['dc:title']}}\n</span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12264
12264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CustomPpViewerComponent, decorators: [{
|
|
12265
12265
|
type: Component,
|
|
12266
12266
|
args: [{
|
|
@@ -12313,7 +12313,7 @@ class CustomDocumentViewerComponent {
|
|
|
12313
12313
|
}
|
|
12314
12314
|
}
|
|
12315
12315
|
CustomDocumentViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CustomDocumentViewerComponent, deps: [{ token: CallApiService }, { token: DynamicVieweService }, { token: TranslationService$1 }], target: i0.ɵɵFactoryTarget.Component });
|
|
12316
|
-
CustomDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomDocumentViewerComponent, selector: "lib-custom-document-viewer", inputs: { pageProvider: "pageProvider", group: "group" }, ngImport: i0, template: "<span *ngIf=\"data\">\
|
|
12316
|
+
CustomDocumentViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomDocumentViewerComponent, selector: "lib-custom-document-viewer", inputs: { pageProvider: "pageProvider", group: "group" }, ngImport: i0, template: "<span *ngIf=\"data\">\n {{isArabic ? data['documenttypee:arabicTitle'] : data['dc:title']}}\n</span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12317
12317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CustomDocumentViewerComponent, decorators: [{
|
|
12318
12318
|
type: Component,
|
|
12319
12319
|
args: [{
|
|
@@ -16179,9 +16179,9 @@ class CommentApiService {
|
|
|
16179
16179
|
throw err;
|
|
16180
16180
|
}));
|
|
16181
16181
|
}
|
|
16182
|
-
deleteComment(
|
|
16182
|
+
deleteComment(prentId, commentId) {
|
|
16183
16183
|
return from(this.nuxeoService.nuxeoClient
|
|
16184
|
-
.request(`id/${
|
|
16184
|
+
.request(`id/${prentId}/@comment/${commentId}`)
|
|
16185
16185
|
.headers({
|
|
16186
16186
|
"properties": "*",
|
|
16187
16187
|
})
|
|
@@ -16189,9 +16189,9 @@ class CommentApiService {
|
|
|
16189
16189
|
throw err;
|
|
16190
16190
|
}));
|
|
16191
16191
|
}
|
|
16192
|
-
updateDocument(comment,
|
|
16192
|
+
updateDocument(comment, prentId, commentId) {
|
|
16193
16193
|
return from(this.nuxeoService.nuxeoClient
|
|
16194
|
-
.request(`id/${
|
|
16194
|
+
.request(`id/${prentId}/@comment/${commentId}`)
|
|
16195
16195
|
.headers({
|
|
16196
16196
|
"properties": "*",
|
|
16197
16197
|
})
|
|
@@ -16227,12 +16227,11 @@ class EditDeleteModalComponent {
|
|
|
16227
16227
|
ngOnInit() {
|
|
16228
16228
|
}
|
|
16229
16229
|
delete() {
|
|
16230
|
-
this.commentApi.deleteComment(this.comment.parentId).subscribe(res => {
|
|
16230
|
+
this.commentApi.deleteComment(this.comment.parentId, this.comment.id).subscribe(res => {
|
|
16231
16231
|
if (res) {
|
|
16232
16232
|
this.dialogRef.close(true);
|
|
16233
16233
|
}
|
|
16234
16234
|
});
|
|
16235
|
-
this.dialogRef.close(true);
|
|
16236
16235
|
}
|
|
16237
16236
|
cancel() {
|
|
16238
16237
|
this.dialogRef.close(false);
|
|
@@ -16246,17 +16245,16 @@ class EditDeleteModalComponent {
|
|
|
16246
16245
|
"entity-type": "comment",
|
|
16247
16246
|
"parentId": this.comment.parentId,
|
|
16248
16247
|
};
|
|
16249
|
-
this.commentApi.updateDocument(data, this.comment.parentId).subscribe(res => {
|
|
16248
|
+
this.commentApi.updateDocument(data, this.comment.parentId, this.comment.id).subscribe(res => {
|
|
16250
16249
|
if (res) {
|
|
16251
16250
|
this.dialogRef.close(true);
|
|
16252
16251
|
}
|
|
16253
16252
|
});
|
|
16254
|
-
this.dialogRef.close(true);
|
|
16255
16253
|
}
|
|
16256
16254
|
}
|
|
16257
16255
|
}
|
|
16258
16256
|
EditDeleteModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: EditDeleteModalComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.ToastrService }, { token: CommentApiService }, { token: NuxeoService$1 }, { token: i1$7.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
16259
|
-
EditDeleteModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: EditDeleteModalComponent, selector: "lib-edit-delete-modal", ngImport: i0, template: "<div class=\"comment-control\">\
|
|
16257
|
+
EditDeleteModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: EditDeleteModalComponent, selector: "lib-edit-delete-modal", ngImport: i0, template: "<div class=\"comment-control\">\n <div class=\"delete-modal\" *ngIf=\"operationType === 'delete'\">\n <div class=\"delete-message\">{{ \"comment.are-you-sure\" | translate }}</div>\n <div class=\"delete-buttons\">\n <button class=\"submission-button\" (click)=\"delete()\">{{ \"BUTTONS.Delete\" | translate }}</button>\n <button class=\"cancelation-button\"(click)=\"cancel()\">{{ \"BUTTONS.Cancel\" | translate }}</button>\n </div>\n </div>\n\n <div class=\"update-modal\" *ngIf=\"operationType === 'edit'\">\n <div class=\"text-update\">\n <textarea placeholder=\"Comment ...\" [(ngModel)]=\"comment.text\" rows=\"3\"></textarea>\n <div class=\"error\" *ngIf=\"(comment.text.trim()).length === 0\">\n {{ \"comment.comment-required\" | translate }}\n </div>\n </div>\n <div class=\"delete-buttons\">\n <button class=\"submission-button -mx-1\" [disabled]=\"(comment.text.trim()).length === 0\" (click)=\"update()\">{{ \"BUTTONS.UPDATE\" | translate }}</button>\n <button class=\"cancelation-button\" (click)=\"cancel()\">{{ \"BUTTONS.Cancel\" | translate }}</button>\n </div>\n </div>\n</div>", styles: [".comment-control{height:100%}.comment-control .delete-modal{display:flex;height:100%;flex-direction:column;justify-content:center;align-items:center}.comment-control .delete-modal .delete-message{text-align:center;font-size:16px;color:#000;margin-bottom:20px}.comment-control .delete-modal .delete-buttons{display:flex;align-items:center;justify-content:center}.comment-control .update-modal{height:100%;display:flex;justify-content:space-between;flex-direction:column}.comment-control .update-modal .text-update .error{font-size:14px;color:red}.comment-control .update-modal textarea{margin-bottom:0;border-radius:5px;padding:8px;width:100%;color:#465573;outline:none;border:1px solid #d9dce2;background-color:#8f98aa1a;resize:none}.comment-control .update-modal .delete-buttons{display:flex;justify-content:space-between}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
16260
16258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: EditDeleteModalComponent, decorators: [{
|
|
16261
16259
|
type: Component,
|
|
16262
16260
|
args: [{
|
|
@@ -16319,7 +16317,7 @@ class CommentItemComponent {
|
|
|
16319
16317
|
}
|
|
16320
16318
|
}
|
|
16321
16319
|
CommentItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CommentItemComponent, deps: [{ token: TranslationService$1 }, { token: i1$7.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
16322
|
-
CommentItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CommentItemComponent, selector: "app-comment-item", inputs: { comment: "comment", loaderType: "loaderType" }, outputs: { refreshCommentList: "refreshCommentList" }, ngImport: i0, template: "<div class=\"comment-item\" SetRtl>\r\n\r\n <div class=\"comment-controls\" >\r\n <span class=\"bi bi-pencil contril-icon\"\r\n matTooltip=\"{{ 'BUTTONS.EDIT' | translate }}\"\r\n (click)=\"executeFunction('edit')\"\r\n ></span>\r\n
|
|
16320
|
+
CommentItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CommentItemComponent, selector: "app-comment-item", inputs: { comment: "comment", loaderType: "loaderType" }, outputs: { refreshCommentList: "refreshCommentList" }, ngImport: i0, template: "<div class=\"comment-item\" SetRtl>\r\n\r\n <div class=\"comment-controls\" >\r\n <span class=\"bi bi-pencil contril-icon\" \r\n *permission=\"{name: 'updateComment', entity: comment}\"\r\n matTooltip=\"{{ 'BUTTONS.EDIT' | translate }}\"\r\n (click)=\"executeFunction('edit')\"\r\n ></span>\r\n\r\n <span class=\"bi bi-trash contril-icon\" \r\n *permission=\"{name: 'deleteComment', entity: comment}\"\r\n matTooltip=\"{{ 'BUTTONS.Delete' | translate }}\"\r\n (click)=\"executeFunction('delete')\"\r\n ></span>\r\n </div>\r\n\r\n <app-user-card [user]=\"comment.Commenter\" [diameter]=\"12\">\r\n <div class=\"lineOne\">\r\n {{ comment.Commenter.properties.firstName }}\r\n {{ comment.Commenter.properties.lastName }}\r\n </div>\r\n <div class=\"lineOnePart2\">\r\n <span class=\"date\" matTooltip='{{ comment?.creationDate | localizedDate:\r\n \"fullDate\"}}' matTooltipClass=\"tdf-tooltip\" TooltipPosition='below'>\r\n <span class=\"date-sperator px-1\">|</span>{{ comment?.creationDate | timeAgo : lang }}</span>\r\n </div>\r\n <div class=\"lineTwo\">\r\n <app-read-more class=\"comment-text\" [text]=\"comment?.text\" [wordCount]=\"loaderType === 'scroll' ? 20 : 60\">\r\n </app-read-more>\r\n </div>\r\n </app-user-card>\r\n</div>\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.comment-item{border:1px solid #d9dce2;padding:8px 4px;display:flex;position:relative}.comment-item:hover{background:#f5f6f8}.comment-item .comment-controls{position:absolute;right:5px}.comment-item .comment-controls .contril-icon{padding:0 5px;cursor:pointer}.date{color:#3c3cf0}.comment-text{color:#8f98aa}.comment-avatar{align-items:top;padding:0 4px;display:flex}.comment-avatar .avatar{width:40px;height:40px;display:block}.rtl .comment-controls{left:5px;right:auto}\n"], components: [{ type: UserCardComponent, selector: "app-user-card", inputs: ["user", "diameter"] }, { type: ReadMoreComponent, selector: "app-read-more", inputs: ["text", "charCount", "wordCount", "lineBreaks"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: PermissionsDirective, selector: "[permission]", inputs: ["permission"] }, { type: i9.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "translate": i1$1.TranslatePipe, "localizedDate": LocalizedDatePipe, "timeAgo": TimeAgoPipe } });
|
|
16323
16321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CommentItemComponent, decorators: [{
|
|
16324
16322
|
type: Component,
|
|
16325
16323
|
args: [{
|
|
@@ -17865,12 +17863,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImpor
|
|
|
17865
17863
|
* </app-pdftron>
|
|
17866
17864
|
*/
|
|
17867
17865
|
class PdftronComponent {
|
|
17868
|
-
constructor(cdr, pdftronService, nuxeo, baseHref, securePipe, environment) {
|
|
17866
|
+
constructor(cdr, pdftronService, nuxeo, baseHref, securePipe, translationService, environment) {
|
|
17869
17867
|
this.cdr = cdr;
|
|
17870
17868
|
this.pdftronService = pdftronService;
|
|
17871
17869
|
this.nuxeo = nuxeo;
|
|
17872
17870
|
this.baseHref = baseHref;
|
|
17873
17871
|
this.securePipe = securePipe;
|
|
17872
|
+
this.translationService = translationService;
|
|
17874
17873
|
this.environment = environment;
|
|
17875
17874
|
this.actionClicked = false; // used to know if there is action clicked outside to start edit mode or not
|
|
17876
17875
|
this.DOCUMENT_TYPE = 'application/pdf';
|
|
@@ -17882,7 +17881,11 @@ class PdftronComponent {
|
|
|
17882
17881
|
this.newSignCreation = false; // flage to indicate signature creation is created or choosed from stored ones
|
|
17883
17882
|
}
|
|
17884
17883
|
ngOnInit() {
|
|
17885
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17884
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17885
|
+
this.transelationSubscrition = this.translationService.isArabic.subscribe(res => {
|
|
17886
|
+
this.isArabic = res;
|
|
17887
|
+
});
|
|
17888
|
+
});
|
|
17886
17889
|
}
|
|
17887
17890
|
ngAfterViewInit() {
|
|
17888
17891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -17907,6 +17910,7 @@ class PdftronComponent {
|
|
|
17907
17910
|
licenseKey: this.environment.pdftronLicenceKey,
|
|
17908
17911
|
disabledElements: ['downloadButton', 'printButton'],
|
|
17909
17912
|
}, this.viewerRef.nativeElement).then((instance) => __awaiter(this, void 0, void 0, function* () {
|
|
17913
|
+
this.isArabic ? instance.setLanguage('ar') : instance.setLanguage('en');
|
|
17910
17914
|
this.pdftronService.instance = this.webViewerInstance = instance;
|
|
17911
17915
|
this.addPrintButton();
|
|
17912
17916
|
this.addDownloadButton();
|
|
@@ -18005,7 +18009,7 @@ class PdftronComponent {
|
|
|
18005
18009
|
header.push({
|
|
18006
18010
|
type: 'actionButton',
|
|
18007
18011
|
img: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-file-earmark-arrow-down" viewBox="0 0 16 16"> <path d="M8.5 6.5a.5.5 0 0 0-1 0v3.793L6.354 9.146a.5.5 0 1 0-.708.708l2 2a.5.5 0 0 0 .708 0l2-2a.5.5 0 0 0-.708-.708L8.5 10.293V6.5z"/> <path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"/></svg>',
|
|
18008
|
-
title: 'Download',
|
|
18012
|
+
title: this.isArabic ? 'تنزيل' : 'Download',
|
|
18009
18013
|
onClick: () => __awaiter(this, void 0, void 0, function* () {
|
|
18010
18014
|
const { DocumentViewer, AnnotationManager, SaveOptions } = this.webViewerInstance.CoreControls;
|
|
18011
18015
|
// const xfdfString = await AnnotationManager.exportAnnotations();
|
|
@@ -18042,7 +18046,7 @@ class PdftronComponent {
|
|
|
18042
18046
|
header.push({
|
|
18043
18047
|
type: 'actionButton',
|
|
18044
18048
|
img: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#abb0c4;}</style></defs><title>icon - header - print - line</title><path class="cls-1" d="M20,6H18V2H6V6H4A2,2,0,0,0,2,8v9a2,2,0,0,0,2,2H6v3H18V19h2a2,2,0,0,0,2-2V8A2,2,0,0,0,20,6ZM8,4h8V6H8Zm8,16H8V16h8Zm4-3H18V14H6v3H4V8H20Zm-4-7h2v2H16Zm-3,0h2v2H13Z"></path></svg>',
|
|
18045
|
-
title: 'Print',
|
|
18049
|
+
title: this.isArabic ? "طباعة" : 'Print',
|
|
18046
18050
|
onClick: () => {
|
|
18047
18051
|
this.pdftronService.instance.print();
|
|
18048
18052
|
this.events.next('print');
|
|
@@ -18189,9 +18193,10 @@ class PdftronComponent {
|
|
|
18189
18193
|
});
|
|
18190
18194
|
this.pdftronService.instance = this.webViewerInstance = null;
|
|
18191
18195
|
}
|
|
18196
|
+
this.transelationSubscrition ? this.transelationSubscrition.unsubscribe() : null;
|
|
18192
18197
|
}
|
|
18193
18198
|
}
|
|
18194
|
-
PdftronComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PdftronComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PdftronService }, { token: NuxeoService$1 }, { token: APP_BASE_HREF }, { token: SecurePipe }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Component });
|
|
18199
|
+
PdftronComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PdftronComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PdftronService }, { token: NuxeoService$1 }, { token: APP_BASE_HREF }, { token: SecurePipe }, { token: TranslationService$1 }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Component });
|
|
18195
18200
|
PdftronComponent.ɵcmp = i0.ɵɵ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" }, outputs: { events: "events", SignatureEvent: "SignatureEvent" }, providers: [SecurePipe], viewQueries: [{ propertyName: "viewerRef", first: true, predicate: ["fileViewer"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #fileViewer style=\"width: 100%; height: 100%;\"></div>\r\n", styles: [""] });
|
|
18196
18201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PdftronComponent, decorators: [{
|
|
18197
18202
|
type: Component,
|
|
@@ -18204,7 +18209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImpor
|
|
|
18204
18209
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: PdftronService }, { type: NuxeoService$1 }, { type: undefined, decorators: [{
|
|
18205
18210
|
type: Inject,
|
|
18206
18211
|
args: [APP_BASE_HREF]
|
|
18207
|
-
}] }, { type: SecurePipe }, { type: undefined, decorators: [{
|
|
18212
|
+
}] }, { type: SecurePipe }, { type: TranslationService$1 }, { type: undefined, decorators: [{
|
|
18208
18213
|
type: Inject,
|
|
18209
18214
|
args: ['environment']
|
|
18210
18215
|
}] }]; }, propDecorators: { viewerRef: [{
|