nuxeo-development-framework 3.1.3 → 3.1.5
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 +153 -69
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/activities-log/activities-log/activities-log.component.js +136 -63
- package/esm2015/lib/components/activities-log/activities-log.module.js +15 -4
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +7 -7
- package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +2 -2
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +9 -4
- package/esm2015/lib/shared-services/file-manager.service.js +3 -2
- package/fesm2015/nuxeo-development-framework.js +153 -69
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/activities-log/activities-log/activities-log.component.d.ts +3 -0
- package/lib/components/activities-log/activities-log.module.d.ts +3 -1
- package/lib/shared-services/file-manager.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -19779,12 +19779,13 @@ class FileManagerService {
|
|
|
19779
19779
|
this.onRefreshingFileManger = new Subject();
|
|
19780
19780
|
this.onRefreshClipboard = new EventEmitter();
|
|
19781
19781
|
this.permissionsList = ['canDelete', 'canCreate', 'canDownload', 'canUpdate', 'canPublish', 'canPublishFolders', 'canGet', 'canCopy', 'canCopyFile', 'canDeleteFromSourceParent',
|
|
19782
|
-
'canRenameToSourceParent', 'setSynchronize', 'setUnSynchronize', 'canAddToQuickAccess', 'canShare', 'canRename', 'canMove', 'canMoveFile', 'lockOwnerIfLocked', 'notSecretFile', 'isUserSubscriberToFile', 'canSubscribe'];
|
|
19782
|
+
'canRenameToSourceParent', 'setSynchronize', 'setUnSynchronize', 'canAddToQuickAccess', 'canShare', 'canRename', 'canMove', 'canMoveFile', 'lockOwnerIfLocked', 'notSecretFile', 'isUserSubscriberToFile', 'canSubscribe', 'isWorkSpaceRootFile', 'isDepartmentRootFile'];
|
|
19783
19783
|
this.userPermittedTypes = [];
|
|
19784
19784
|
this.userPermittedTypesTotalSize = -1;
|
|
19785
19785
|
this.userPermittedFilesOnly = [];
|
|
19786
19786
|
this.isArabic = false;
|
|
19787
19787
|
this.clipboardPermissionList = ['canCopy', 'canMove'];
|
|
19788
|
+
this.customEvent = new EventEmitter();
|
|
19788
19789
|
// getTreeNodeChildren = (parent) => {
|
|
19789
19790
|
// let params = {
|
|
19790
19791
|
// queryParams: parent ? parent : '',
|
|
@@ -21964,6 +21965,9 @@ class ActivitiesLogComponent {
|
|
|
21964
21965
|
this.activitiesLogService = activitiesLogService;
|
|
21965
21966
|
this.myConfigService = myConfigService;
|
|
21966
21967
|
this.success = new EventEmitter();
|
|
21968
|
+
this.filterForm = new FormGroup({
|
|
21969
|
+
allevent: new FormControl(true),
|
|
21970
|
+
});
|
|
21967
21971
|
this.p = 1;
|
|
21968
21972
|
this.count = 100;
|
|
21969
21973
|
this.isFetching = false;
|
|
@@ -21980,76 +21984,142 @@ class ActivitiesLogComponent {
|
|
|
21980
21984
|
this.activitiesLogService.getLogs(this.documentId, this.p - 1, this.count)
|
|
21981
21985
|
.subscribe((res) => {
|
|
21982
21986
|
//console.log(res);
|
|
21983
|
-
|
|
21984
|
-
.map(item => {
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
|
|
22016
|
-
|
|
22017
|
-
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
21987
|
+
if (this.filterForm.controls.allevent.value) {
|
|
21988
|
+
res.entries.map(item => {
|
|
21989
|
+
var _a, _b, _c;
|
|
21990
|
+
if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
|
|
21991
|
+
item.principalName = (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.comment) === null || _a === void 0 ? void 0 : _a.split(",")[1]) === null || _b === void 0 ? void 0 : _b.split(":")[1]) === null || _c === void 0 ? void 0 : _c.split("'")[0];
|
|
21992
|
+
this.activitylog.push(
|
|
21993
|
+
// {
|
|
21994
|
+
// documentLifecycle : 'registered', //'doclifecycle'
|
|
21995
|
+
// eventName:'incoming_register', //eventId
|
|
21996
|
+
// eventDate: '2021-09-27T10:42:38.000Z', // eventDate
|
|
21997
|
+
// creator:{
|
|
21998
|
+
// properties : {
|
|
21999
|
+
// firstName: "Cts",
|
|
22000
|
+
// lastName: "Sec"
|
|
22001
|
+
// }
|
|
22002
|
+
// },
|
|
22003
|
+
// documentName:'edge incoming 4 ' // pass from outside
|
|
22004
|
+
// }
|
|
22005
|
+
{
|
|
22006
|
+
documentLifecycle: item.docLifeCycle,
|
|
22007
|
+
eventName: item.eventId,
|
|
22008
|
+
eventDate: item.eventDate,
|
|
22009
|
+
creator: {
|
|
22010
|
+
properties: {
|
|
22011
|
+
firstName: item.principalName,
|
|
22012
|
+
lastName: ''
|
|
22013
|
+
}
|
|
22014
|
+
},
|
|
22015
|
+
documentName: this.documentTitle
|
|
22016
|
+
});
|
|
22017
|
+
}
|
|
22018
|
+
else {
|
|
22019
|
+
this.activitylog.push(
|
|
22020
|
+
// {
|
|
22021
|
+
// documentLifecycle : 'registered', //'doclifecycle'
|
|
22022
|
+
// eventName:'incoming_register', //eventId
|
|
22023
|
+
// eventDate: '2021-09-27T10:42:38.000Z', // eventDate
|
|
22024
|
+
// creator:{
|
|
22025
|
+
// properties : {
|
|
22026
|
+
// firstName: "Cts",
|
|
22027
|
+
// lastName: "Sec"
|
|
22028
|
+
// }
|
|
22029
|
+
// },
|
|
22030
|
+
// documentName:'edge incoming 4 ' // pass from outside
|
|
22031
|
+
// }
|
|
22032
|
+
{
|
|
22033
|
+
documentLifecycle: item.docLifeCycle,
|
|
22034
|
+
eventName: item.eventId,
|
|
22035
|
+
eventDate: item.eventDate,
|
|
22036
|
+
creator: {
|
|
22037
|
+
properties: {
|
|
22038
|
+
firstName: item.principalName,
|
|
22039
|
+
lastName: ''
|
|
22040
|
+
}
|
|
22041
|
+
},
|
|
22042
|
+
documentName: this.documentTitle
|
|
22043
|
+
});
|
|
22044
|
+
}
|
|
22045
|
+
});
|
|
22046
|
+
}
|
|
22047
|
+
else {
|
|
22048
|
+
res.entries.filter(f => !this.myConfigService.myConfiguration.logs.excludedStates.includes(f.eventId))
|
|
22049
|
+
.map(item => {
|
|
22050
|
+
var _a, _b, _c;
|
|
22051
|
+
if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
|
|
22052
|
+
item.principalName = (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.comment) === null || _a === void 0 ? void 0 : _a.split(",")[1]) === null || _b === void 0 ? void 0 : _b.split(":")[1]) === null || _c === void 0 ? void 0 : _c.split("'")[0];
|
|
22053
|
+
this.activitylog.push(
|
|
22054
|
+
// {
|
|
22055
|
+
// documentLifecycle : 'registered', //'doclifecycle'
|
|
22056
|
+
// eventName:'incoming_register', //eventId
|
|
22057
|
+
// eventDate: '2021-09-27T10:42:38.000Z', // eventDate
|
|
22058
|
+
// creator:{
|
|
22059
|
+
// properties : {
|
|
22060
|
+
// firstName: "Cts",
|
|
22061
|
+
// lastName: "Sec"
|
|
22062
|
+
// }
|
|
22063
|
+
// },
|
|
22064
|
+
// documentName:'edge incoming 4 ' // pass from outside
|
|
22065
|
+
// }
|
|
22066
|
+
{
|
|
22067
|
+
documentLifecycle: item.docLifeCycle,
|
|
22068
|
+
eventName: item.eventId,
|
|
22069
|
+
eventDate: item.eventDate,
|
|
22070
|
+
creator: {
|
|
22071
|
+
properties: {
|
|
22072
|
+
firstName: item.principalName,
|
|
22073
|
+
lastName: ''
|
|
22074
|
+
}
|
|
22075
|
+
},
|
|
22076
|
+
documentName: this.documentTitle
|
|
22077
|
+
});
|
|
22078
|
+
}
|
|
22079
|
+
else {
|
|
22080
|
+
this.activitylog.push(
|
|
22081
|
+
// {
|
|
22082
|
+
// documentLifecycle : 'registered', //'doclifecycle'
|
|
22083
|
+
// eventName:'incoming_register', //eventId
|
|
22084
|
+
// eventDate: '2021-09-27T10:42:38.000Z', // eventDate
|
|
22085
|
+
// creator:{
|
|
22086
|
+
// properties : {
|
|
22087
|
+
// firstName: "Cts",
|
|
22088
|
+
// lastName: "Sec"
|
|
22089
|
+
// }
|
|
22090
|
+
// },
|
|
22091
|
+
// documentName:'edge incoming 4 ' // pass from outside
|
|
22092
|
+
// }
|
|
22093
|
+
{
|
|
22094
|
+
documentLifecycle: item.docLifeCycle,
|
|
22095
|
+
eventName: item.eventId,
|
|
22096
|
+
eventDate: item.eventDate,
|
|
22097
|
+
creator: {
|
|
22098
|
+
properties: {
|
|
22099
|
+
firstName: item.principalName,
|
|
22100
|
+
lastName: ''
|
|
22101
|
+
}
|
|
22102
|
+
},
|
|
22103
|
+
documentName: this.documentTitle
|
|
22104
|
+
});
|
|
22105
|
+
}
|
|
22106
|
+
});
|
|
22107
|
+
}
|
|
22042
22108
|
this.isFetching = false;
|
|
22043
22109
|
this.success.emit(true);
|
|
22044
22110
|
});
|
|
22045
22111
|
}
|
|
22112
|
+
getToggleFilters() {
|
|
22113
|
+
this.activitylog = [];
|
|
22114
|
+
this.getActivities();
|
|
22115
|
+
}
|
|
22046
22116
|
onScroll() {
|
|
22047
22117
|
this.p++;
|
|
22048
22118
|
this.getActivities();
|
|
22049
22119
|
}
|
|
22050
22120
|
}
|
|
22051
22121
|
ActivitiesLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogComponent, deps: [{ token: ActivitiesLogService }, { token: AppConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
22052
|
-
ActivitiesLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: ActivitiesLogComponent, selector: "app-activities-log", inputs: { documentId: "documentId", file: "file", documentTitle: "documentTitle" }, outputs: { success: "success" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"viewer-loader pb-2\">\r\n <mat-progress-bar *ngIf=\"isFetching\" mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n<div class=\"activity-body\">\r\n <div class=\"activity-area\">\r\n <div *ngFor=\"let item of activitylog; let i = index\">\r\n <cts-single-activity [item]=\"item\" [documentTitle]=\"documentTitle\">\r\n </cts-single-activity>\r\n </div>\r\n </div>\r\n</div>", styles: [".activity-body{padding:14px 10px;overflow:auto;height:100%;overflow-x:hidden}.activity-body .activity-area{padding-inline-start:20px;padding-inline-end:12px;border-inline-start:2px solid #d9dce2}\n"], components: [{ type: i4$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: SingleActivityComponent, selector: "cts-single-activity", inputs: ["item", "documentTitle"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
22122
|
+
ActivitiesLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: ActivitiesLogComponent, selector: "app-activities-log", inputs: { documentId: "documentId", file: "file", documentTitle: "documentTitle" }, outputs: { success: "success" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"viewer-loader pb-2\">\r\n <mat-progress-bar *ngIf=\"isFetching\" mode=\"indeterminate\"></mat-progress-bar>\r\n</div>\r\n<div class=\"flex flex-row justify-end items-center\">\r\n <form [formGroup]=\"filterForm\">\r\n <div class=\"w-full flex flex-row justify-end\">\r\n <cts-dynamic-form-slide-toggleitem class=\"text-base text-primary-500 font-bold mb-0\"\r\n formControlName=\"allevent\" [label]=\"'ACTIVITY_LOG.AllEvent'| translate\" (onToggle)=\"getToggleFilters()\">\r\n </cts-dynamic-form-slide-toggleitem>\r\n </div>\r\n </form>\r\n</div>\r\n<div class=\"activity-body\">\r\n <div class=\"activity-area\">\r\n <div *ngFor=\"let item of activitylog; let i = index\">\r\n <cts-single-activity [item]=\"item\" [documentTitle]=\"documentTitle\">\r\n </cts-single-activity>\r\n </div>\r\n </div>\r\n</div>", styles: [".activity-body{padding:14px 10px;overflow:auto;height:100%;overflow-x:hidden}.activity-body .activity-area{padding-inline-start:20px;padding-inline-end:12px;border-inline-start:2px solid #d9dce2}\n"], components: [{ type: i4$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: DynamicFormSlideToggleitemComponent, selector: "cts-dynamic-form-slide-toggleitem", inputs: ["label", "disabled", "checked", "theme"], outputs: ["onToggle"] }, { type: SingleActivityComponent, selector: "cts-single-activity", inputs: ["item", "documentTitle"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
22053
22123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogComponent, decorators: [{
|
|
22054
22124
|
type: Component,
|
|
22055
22125
|
args: [{
|
|
@@ -24500,7 +24570,7 @@ class CreateModalComponent {
|
|
|
24500
24570
|
}
|
|
24501
24571
|
}
|
|
24502
24572
|
CreateModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CreateModalComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$6.MatDialogRef }, { token: UploadManagmentService }, { token: DialogMangmentService }, { token: FileManagerService }, { token: CustomToastrService }, { token: i6.FormBuilder }, { token: AdapterService }, { token: FileManagerService }, { token: AppConfigService }, { token: DateHelperService }, { token: TranslationService$1 }, { token: UserService }, { token: NuxeoService$1 }, { token: 'environment' }, { token: DynamicFormService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24503
|
-
CreateModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CreateModalComponent, selector: "app-create-modal", ngImport: i0, template: "<div class=\"relative w-full h-full\" SetRtl>\r\n <div class=\"iner-wrapper\" [ngClass]=\"{ 'd-flex': addingProperties }\">\r\n <div class=\"attachment-tab-body overflow-hidden\" [ngClass]=\"{ 'attachment-iner-small-body': addingProperties }\">\r\n <app-attachments [multiple]=\"true\" (onSelectingItem)=\"selectFile($event)\"></app-attachments>\r\n </div>\r\n <div *ngIf=\"addingProperties\" class=\"properties-section p-3 overflow-x-hidden overflow-y-auto\">\r\n <div class=\"\" *ngIf=\"selectedFile && source === 'fileManger' && showStaticForm\">\r\n <div class=\"mb-5\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.FILE_TYPE\" | translate }}\r\n </div>\r\n <div class=\"text-base text-gray-900\">{{ isArabic ? fileType.arabicText : fileType.englishText }}\r\n </div>\r\n </div>\r\n <div class=\"file-fields mt-3\" SetRtl>\r\n <form [formGroup]=\"fileForm\">\r\n <!-- -----------------old static form ---------------------- -->\r\n <div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.TITLE\" | translate\r\n }}<span class=\"text-red-500\">*</span>\r\n </div>\r\n <input class=\"\r\n field-style\r\n \" formControlName=\"title\" placeholder=\" {{ 'CREATE.TITLE' | translate}}\" />\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DESCRIPTION\" | translate }}\r\n </div>\r\n <input class=\"field-style\" formControlName=\"description\"\r\n placeholder=\" {{ 'CREATE.DESCRIPTION' | translate}}\" />\r\n </div>\r\n </div>\r\n <!-- ---------------------------------- -->\r\n\r\n <!------------------ new statis form ---------------------------->\r\n <div *ngIf=\"usingExtraFields\">\r\n <app-dynamic-fields-renderer [form]=\"fileForm\" [agencyNameFilter]=\"agencyNameFilter\" [countryNameFilter]=\"countryNameFilter\"></app-dynamic-fields-renderer>\r\n <!-- <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DOCUMENT_SUBJECT\" | translate\r\n }}<span class=\"text-red-500\">*</span>\r\n </div>\r\n <input class=\"field-style\" formControlName=\"subject\" \r\n placeholder=\" {{ 'CREATE.DOCUMENT_SUBJECT' | translate}}\"/>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DOCUMENT_NUMBER\" | translate }}\r\n </div>\r\n <input class=\"field-style\" \r\n formControlName=\"documentNumber\" \r\n placeholder=\" {{ 'CREATE.DOCUMENT_NUMBER' | translate}}\"/>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n \r\n <cts-dynamic-form-hijri-dateitem\r\n formControlName=\"gdocumentDate\"\r\n label=\"CREATE.DOCUMENT_DATE\"\r\n >\r\n </cts-dynamic-form-hijri-dateitem>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <app-dynamic-form-vocabulary-item [label]=\"'CREATE.SCRECY_LEVEL'\" [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"false\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_SecrecyLevel'\" \r\n formControlName=\"secrecyLevel\">\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <app-dynamic-form-vocabulary-item [label]=\"'CREATE.IMPORTANCE_LEVEL'\" [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"false\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_Importance'\" \r\n formControlName=\"importanceLevel\">\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DEPARTMENT_CODE\" | translate }}\r\n </div>\r\n <app-dynamic-form-department\r\n formControlName=\"departmentCode\"\r\n [placeholder]=\"'please select department'\"\r\n [pp_departmentNestedTree]=\"'PP_OS_Departments'\"\r\n [pp_departmentTree]=\"'PP_OS_Departments'\"\r\n [customPrefix]=\"'osdept'\"\r\n [customParentProperty]=\"'osdepartment_parentDepartmentCode'\"\r\n [useCustomAddEditAction]=\"true\"\r\n >\r\n </app-dynamic-form-department>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.AGENCY_CATEGORY_CODE'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\" \r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"agencyCategoryCode\"\r\n [vocbularyId]=\"'VOC_AgencyCategory'\" [useFilter]=\"false\" >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.AGENCY_NAME'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"agencyName\"\r\n [vocbularyId]=\"'VOC_Agency'\" [filter]=\"agencyNameFilter\" [useFilter]=\"true\">\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.COUNTRY_CATEGORY_CODE'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"countryCategoryCode\"\r\n [vocbularyId]=\"'VOC_CountryCategory'\" [useFilter]=\"false\" >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.COUNTRY_NAME'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"countryName\"\r\n [vocbularyId]=\"'VOC_Country'\" [filter]=\"countryNameFilter\" [useFilter]=\"true\">\r\n </app-translated-vocabulary-select>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.REMARKS\" | translate}}\r\n </div>\r\n <input class=\"field-style\" formControlName=\"remarks\" \r\n placeholder=\" {{ 'CREATE.REMARKS' | translate}}\"/>\r\n </div> -->\r\n\r\n </div>\r\n\r\n <!-- ----------------------------------------------------------- -->\r\n </form>\r\n\r\n <div class=\"dynamic-part\" *ngIf=\"showRenderer\">\r\n <app-dynamic-form [form]=\"selectedFile.dynamicForm\" [data]=\"temporaryDyanmicData\"\r\n (change)=\"ondynamicFormChange($event)\"></app-dynamic-form>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"\r\n w-full\r\n h-full\r\n p-3\r\n flex\r\n justify-center\r\n items-center\r\n text-lg text-gray-900\r\n \" *ngIf=\"!selectedFile\">\r\n {{ \"CREATE.SELECT_TOSTART_ADDING\" | translate }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"w-full text-red-500 text-base text-start px-3\" *ngIf=\"!uploadMangmentService.GeneralFormValidation\">\r\n\r\n {{ \"CREATE.FILL_REQUIRED_FIELD\" | translate }}\r\n </div>\r\n <div class=\"actions-iner-wrapper w-full flex justify-between items-center absolute bottom-0\">\r\n <div class=\"flex\">\r\n <button class=\"cancelation-button\" (click)=\"closeDialog()\">\r\n {{ \"BUTTONS.CANCEL\" | translate }}\r\n </button>\r\n <button class=\"cancelation-button mx-2\" (click)=\"minimizDialog()\" *ngIf=\"\r\n uploadMangmentService.uploadedFilesStatus\r\n .uploadInProgress ||\r\n uploadMangmentService.uploadedFilesStatus\r\n .numberOfUploadedFiles !== 0 ||\r\n addingProperties\r\n \">\r\n {{ \"BUTTONS.MINIMIZED\" | translate }}\r\n </button>\r\n </div>\r\n\r\n <div class=\"flex\">\r\n <button *ngIf=\"\r\n (uploadMangmentService.uploadedFilesStatus\r\n .uploadInProgress ||\r\n uploadMangmentService.uploadedFilesStatus.uploadedFiles\r\n .length > 0) &&\r\n !addingProperties\r\n \" (click)=\"startAddingProperties()\" class=\"submission-button\">\r\n {{ \"BUTTONS.ADD_PROPERTIES\" | translate }}\r\n </button>\r\n <button *ngIf=\"\r\n addingProperties &&\r\n uploadMangmentService.uploadedFilesStatus.uploadedFiles\r\n .length +\r\n uploadMangmentService.uploadedFilesStatus.allfiles\r\n .length >\r\n 1\r\n \" (click)=\"ApplyChangesToAll()\" [disabled]=\"!selectedFile || !selectedFile.staticFormValid\"\r\n [ngClass]=\"{\r\n 'opacity-30 cursor-not-allowed':\r\n !selectedFile || !selectedFile.staticFormValid,\r\n 'cursor-pointer hover:text-white hover:bg-gray-900': !(\r\n !selectedFile || !selectedFile.staticFormValid\r\n )\r\n }\" class=\"submission-button mx-2\">\r\n {{ \"BUTTONS.APPLY_TO_ALL\" | translate }}\r\n </button>\r\n\r\n <div *ngIf=\"\r\n addingProperties &&\r\n !uploadMangmentService.uploadedFilesStatus.uploadInProgress &&\r\n uploadMangmentService.failedFiles.length === 0\r\n \">\r\n <ng-container *ngIf=\"!creating\">\r\n <button (click)=\"createDocument()\" class=\"submission-button relative\">\r\n {{ \"BUTTONS.CREATE\" | translate }}\r\n </button>\r\n </ng-container>\r\n <span class=\"submission-button\" *ngIf=\"creating\">\r\n <mat-spinner [value]=\"90\" [strokeWidth]=\"3\" overlay=\"true\" [diameter]=\"25\" color=\"warn\">\r\n </mat-spinner>\r\n </span>\r\n </div>\r\n\r\n <button *ngIf=\"\r\n addingProperties &&\r\n !uploadMangmentService.uploadedFilesStatus.uploadInProgress &&\r\n uploadMangmentService.failedFiles.length > 0\r\n \" (click)=\"tryAgainCreateDocument()\" class=\"submission-button\">\r\n {{ \"BUTTONS.TRY_AGAIN\" | translate }}\r\n </button>\r\n\r\n <button\r\n [disabled]=\"!fileForm?.valid || disableCreateWhenFinishBtn\"\r\n *ngIf=\"\r\n addingProperties &&\r\n uploadMangmentService.uploadedFilesStatus.uploadInProgress\r\n \" (click)=\"createWhenFinish()\" class=\"submission-button w-44\"> \r\n {{ \"BUTTONS.CREATE_WHEN_FINSH\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>", styles: [".dynamic-part{margin-left:-15px;margin-right:-15px}.iner-wrapper{height:calc(100% - 70px)}.iner-wrapper .properties-section{width:calc(100% - 270px);height:calc(100% - 15px)}.iner-wrapper .attachment-tab-body{height:calc(100% - -20px);overflow-y:auto;overflow-x:hidden}.iner-wrapper .attachment-iner-small-body{width:350px}\n"], components: [{ type: AttachmentsComponent, selector: "app-attachments", inputs: ["allowedTypes", "params", "path", "maxSize", "docParams", "multiple", "createDocument", "allowedMaxNumberOfFiles", "source"], outputs: ["uploadSuccess", "uploadError", "onSelectingItem", "itemRemoved"] }, { type: DynamicFieldsRendererComponent, selector: "app-dynamic-fields-renderer", inputs: ["form", "agencyNameFilter", "countryNameFilter", "fields"] }, { type: DynamicFormComponent, selector: "app-dynamic-form", inputs: ["form", "data", "readOnly"], outputs: ["change"] }, { type: i1$5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.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: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
24573
|
+
CreateModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CreateModalComponent, selector: "app-create-modal", ngImport: i0, template: "<div class=\"relative w-full h-full\">\r\n <div class=\"iner-wrapper\" [ngClass]=\"{ 'd-flex': addingProperties }\">\r\n <div *ngIf=\"addingProperties\" class=\"properties-section p-3 overflow-x-hidden overflow-y-auto\">\r\n <div class=\"\" *ngIf=\"selectedFile && source === 'fileManger' && showStaticForm\">\r\n <div class=\"mb-5\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.FILE_TYPE\" | translate }}\r\n </div>\r\n <div class=\"text-base text-gray-900\">{{ isArabic ? fileType.arabicText : fileType.englishText }}\r\n </div>\r\n </div>\r\n <div class=\"file-fields mt-3\" SetRtl>\r\n <form [formGroup]=\"fileForm\">\r\n <!-- -----------------old static form ---------------------- -->\r\n <div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.TITLE\" | translate\r\n }}<span class=\"text-red-500\">*</span>\r\n </div>\r\n <input class=\"\r\n field-style\r\n \" formControlName=\"title\" placeholder=\" {{ 'CREATE.TITLE' | translate}}\" />\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DESCRIPTION\" | translate }}\r\n </div>\r\n <input class=\"field-style\" formControlName=\"description\"\r\n placeholder=\" {{ 'CREATE.DESCRIPTION' | translate}}\" />\r\n </div>\r\n </div>\r\n <!-- ---------------------------------- -->\r\n\r\n <!------------------ new statis form ---------------------------->\r\n <div *ngIf=\"usingExtraFields\">\r\n <app-dynamic-fields-renderer [form]=\"fileForm\" [agencyNameFilter]=\"agencyNameFilter\"\r\n [countryNameFilter]=\"countryNameFilter\"></app-dynamic-fields-renderer>\r\n <!-- <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DOCUMENT_SUBJECT\" | translate\r\n }}<span class=\"text-red-500\">*</span>\r\n </div>\r\n <input class=\"field-style\" formControlName=\"subject\" \r\n placeholder=\" {{ 'CREATE.DOCUMENT_SUBJECT' | translate}}\"/>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DOCUMENT_NUMBER\" | translate }}\r\n </div>\r\n <input class=\"field-style\" \r\n formControlName=\"documentNumber\" \r\n placeholder=\" {{ 'CREATE.DOCUMENT_NUMBER' | translate}}\"/>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n \r\n <cts-dynamic-form-hijri-dateitem\r\n formControlName=\"gdocumentDate\"\r\n label=\"CREATE.DOCUMENT_DATE\"\r\n >\r\n </cts-dynamic-form-hijri-dateitem>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <app-dynamic-form-vocabulary-item [label]=\"'CREATE.SCRECY_LEVEL'\" [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"false\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_SecrecyLevel'\" \r\n formControlName=\"secrecyLevel\">\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n <div class=\"single-field mb-3\">\r\n <app-dynamic-form-vocabulary-item [label]=\"'CREATE.IMPORTANCE_LEVEL'\" [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"false\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_Importance'\" \r\n formControlName=\"importanceLevel\">\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.DEPARTMENT_CODE\" | translate }}\r\n </div>\r\n <app-dynamic-form-department\r\n formControlName=\"departmentCode\"\r\n [placeholder]=\"'please select department'\"\r\n [pp_departmentNestedTree]=\"'PP_OS_Departments'\"\r\n [pp_departmentTree]=\"'PP_OS_Departments'\"\r\n [customPrefix]=\"'osdept'\"\r\n [customParentProperty]=\"'osdepartment_parentDepartmentCode'\"\r\n [useCustomAddEditAction]=\"true\"\r\n >\r\n </app-dynamic-form-department>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.AGENCY_CATEGORY_CODE'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\" \r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"agencyCategoryCode\"\r\n [vocbularyId]=\"'VOC_AgencyCategory'\" [useFilter]=\"false\" >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.AGENCY_NAME'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"agencyName\"\r\n [vocbularyId]=\"'VOC_Agency'\" [filter]=\"agencyNameFilter\" [useFilter]=\"true\">\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.COUNTRY_CATEGORY_CODE'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"countryCategoryCode\"\r\n [vocbularyId]=\"'VOC_CountryCategory'\" [useFilter]=\"false\" >\r\n </app-translated-vocabulary-select>\r\n </div>\r\n \r\n <div class=\"single-field mb-3\">\r\n <app-translated-vocabulary-select [label]=\"'CREATE.COUNTRY_NAME'\" [arbBindLabel]=\"'label_ar'\" [engBindLabel]=\"'label_en'\"\r\n [bindValue]=\"'id'\" placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\" [multiple]=\"false\"\r\n [searchable]=\"true\" [closeOnSelect]=\"true\" [hideSelectedItems]=\"false\" formControlName=\"countryName\"\r\n [vocbularyId]=\"'VOC_Country'\" [filter]=\"countryNameFilter\" [useFilter]=\"true\">\r\n </app-translated-vocabulary-select>\r\n </div>\r\n\r\n <div class=\"single-field mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"CREATE.REMARKS\" | translate}}\r\n </div>\r\n <input class=\"field-style\" formControlName=\"remarks\" \r\n placeholder=\" {{ 'CREATE.REMARKS' | translate}}\"/>\r\n </div> -->\r\n\r\n </div>\r\n\r\n <!-- ----------------------------------------------------------- -->\r\n </form>\r\n\r\n <div class=\"dynamic-part\" *ngIf=\"showRenderer\">\r\n <app-dynamic-form [form]=\"selectedFile.dynamicForm\" [data]=\"temporaryDyanmicData\"\r\n (change)=\"ondynamicFormChange($event)\"></app-dynamic-form>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"\r\n w-full\r\n h-full\r\n p-3\r\n flex\r\n justify-center\r\n items-center\r\n text-lg text-gray-900\r\n \" *ngIf=\"!selectedFile\">\r\n {{ \"CREATE.SELECT_TOSTART_ADDING\" | translate }}\r\n </div>\r\n </div>\r\n <div class=\"attachment-tab-body overflow-hidden\" [ngClass]=\"{ 'attachment-iner-small-body': addingProperties }\">\r\n <app-attachments [multiple]=\"true\" (onSelectingItem)=\"selectFile($event)\"></app-attachments>\r\n </div>\r\n </div>\r\n <div class=\"w-full text-red-500 text-base text-start px-3\" *ngIf=\"!uploadMangmentService.GeneralFormValidation\">\r\n\r\n {{ \"CREATE.FILL_REQUIRED_FIELD\" | translate }}\r\n </div>\r\n <div class=\"actions-iner-wrapper w-full flex justify-between items-center absolute bottom-0\">\r\n <div class=\"flex\">\r\n <button *ngIf=\"\r\n (uploadMangmentService.uploadedFilesStatus\r\n .uploadInProgress ||\r\n uploadMangmentService.uploadedFilesStatus.uploadedFiles\r\n .length > 0) &&\r\n !addingProperties\r\n \" (click)=\"startAddingProperties()\" class=\"submission-button\">\r\n {{ \"BUTTONS.ADD_PROPERTIES\" | translate }}\r\n </button>\r\n <button *ngIf=\"\r\n addingProperties &&\r\n uploadMangmentService.uploadedFilesStatus.uploadedFiles\r\n .length +\r\n uploadMangmentService.uploadedFilesStatus.allfiles\r\n .length >\r\n 1\r\n \" (click)=\"ApplyChangesToAll()\" [disabled]=\"!selectedFile || !selectedFile.staticFormValid\" [ngClass]=\"{\r\n 'opacity-30 cursor-not-allowed':\r\n !selectedFile || !selectedFile.staticFormValid,\r\n 'cursor-pointer hover:text-white hover:bg-gray-900': !(\r\n !selectedFile || !selectedFile.staticFormValid\r\n )\r\n }\" class=\"submission-button mx-2\">\r\n {{ \"BUTTONS.APPLY_TO_ALL\" | translate }}\r\n </button>\r\n\r\n <div *ngIf=\"\r\n addingProperties &&\r\n !uploadMangmentService.uploadedFilesStatus.uploadInProgress &&\r\n uploadMangmentService.failedFiles.length === 0\r\n \">\r\n <ng-container *ngIf=\"!creating\">\r\n <button (click)=\"createDocument()\" class=\"submission-button relative\">\r\n {{ \"BUTTONS.CREATE\" | translate }}\r\n </button>\r\n </ng-container>\r\n <span class=\"submission-button\" *ngIf=\"creating\">\r\n <mat-spinner [value]=\"90\" [strokeWidth]=\"3\" overlay=\"true\" [diameter]=\"25\" color=\"warn\">\r\n </mat-spinner>\r\n </span>\r\n </div>\r\n\r\n <button *ngIf=\"\r\n addingProperties &&\r\n !uploadMangmentService.uploadedFilesStatus.uploadInProgress &&\r\n uploadMangmentService.failedFiles.length > 0\r\n \" (click)=\"tryAgainCreateDocument()\" class=\"submission-button\">\r\n {{ \"BUTTONS.TRY_AGAIN\" | translate }}\r\n </button>\r\n\r\n <button [disabled]=\"!fileForm?.valid || disableCreateWhenFinishBtn\" *ngIf=\"\r\n addingProperties &&\r\n uploadMangmentService.uploadedFilesStatus.uploadInProgress\r\n \" (click)=\"createWhenFinish()\" class=\"submission-button w-44\">\r\n {{ \"BUTTONS.CREATE_WHEN_FINSH\" | translate }}\r\n </button>\r\n </div>\r\n <div class=\"flex\">\r\n <button class=\"cancelation-button mx-2\" (click)=\"minimizDialog()\" *ngIf=\"\r\n uploadMangmentService.uploadedFilesStatus\r\n .uploadInProgress ||\r\n uploadMangmentService.uploadedFilesStatus\r\n .numberOfUploadedFiles !== 0 ||\r\n addingProperties\r\n \">\r\n {{ \"BUTTONS.MINIMIZED\" | translate }}\r\n </button>\r\n <button class=\"cancelation-button\" (click)=\"closeDialog()\">\r\n {{ \"BUTTONS.CANCEL\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>", styles: [".dynamic-part{margin-left:-15px;margin-right:-15px}.iner-wrapper{height:calc(100% - 70px)}.iner-wrapper .properties-section{width:calc(100% - 270px);height:calc(100% - 15px)}.iner-wrapper .attachment-tab-body{height:calc(100% - -20px);overflow-y:auto;overflow-x:hidden}.iner-wrapper .attachment-iner-small-body{width:350px}.rtl .actions-iner-wrapper{direction:ltr}.actions-iner-wrapper{direction:rtl}\n"], components: [{ type: DynamicFieldsRendererComponent, selector: "app-dynamic-fields-renderer", inputs: ["form", "agencyNameFilter", "countryNameFilter", "fields"] }, { type: DynamicFormComponent, selector: "app-dynamic-form", inputs: ["form", "data", "readOnly"], outputs: ["change"] }, { type: AttachmentsComponent, selector: "app-attachments", inputs: ["allowedTypes", "params", "path", "maxSize", "docParams", "multiple", "createDocument", "allowedMaxNumberOfFiles", "source"], outputs: ["uploadSuccess", "uploadError", "onSelectingItem", "itemRemoved"] }, { type: i1$5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SetRtlDirective, selector: "[SetRtl]" }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.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: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
24504
24574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: CreateModalComponent, decorators: [{
|
|
24505
24575
|
type: Component,
|
|
24506
24576
|
args: [{
|
|
@@ -24623,7 +24693,7 @@ class FolderModalComponent {
|
|
|
24623
24693
|
}
|
|
24624
24694
|
}
|
|
24625
24695
|
FolderModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FolderModalComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$6.MatDialogRef }, { token: FileManagerService }, { token: DynamicFormService }, { token: TranslationService$1 }, { token: CustomToastrService }, { token: i6.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
24626
|
-
FolderModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: FolderModalComponent, selector: "app-folder-modal", ngImport: i0, template: "<div class=\"create-folder-modal d-flex justify-center w-full relative h-full\">\r\n <div class=\"folder-wrapper\" SetRtl>\r\n <div class=\"mb-5\">\r\n <div class=\"label-style\">\r\n {{ \"FOLDERS.TYPE\" | translate }}\r\n </div>\r\n <div class=\"text-base text-gray-900\">{{ isArabic ?
|
|
24696
|
+
FolderModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: FolderModalComponent, selector: "app-folder-modal", ngImport: i0, template: "<div class=\"create-folder-modal d-flex justify-center w-full relative h-full\">\r\n <div class=\"folder-wrapper\" SetRtl>\r\n <div class=\"mb-5\">\r\n <div class=\"label-style\">\r\n {{ \"FOLDERS.TYPE\" | translate }}\r\n </div>\r\n <div class=\"text-base text-gray-900\">{{ isArabic ? folderType.arabicText : folderType.englishText }}</div>\r\n\r\n </div>\r\n <form #folderForm=\"ngForm\">\r\n <div class=\"mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"FOLDERS.TITLE\" | translate }}\r\n </div>\r\n <input class=\"field-style\" [ngClass]=\"{'border-red-500' : staticForm.title === '..'}\" required\r\n [(ngModel)]=\"staticForm.title\" id=\"folderTitle\" name=\"folderTitle\" />\r\n <div class=\"text-red-500 text-base\" *ngIf=\"staticForm.title === '..'\">\r\n Invalid Folder Title\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <div class=\"label-style\">\r\n {{ \"FOLDERS.DESCRIPTION\" | translate }}\r\n </div>\r\n <input class=\"field-style\" [(ngModel)]=\"staticForm.description\" id=\"folderDescription\"\r\n name=\"folderDescription\" />\r\n </div>\r\n </form>\r\n\r\n <div class=\"dynamic-part -mx-4\" *ngIf=\"dynamicForm && showRenderer\">\r\n <app-dynamic-form [form]=\"dynamicForm\" [data]=\"temporaryDyanmicData\"\r\n (change)=\"ondynamicFormChange($event)\"></app-dynamic-form>\r\n </div>\r\n </div>\r\n <!-- -->\r\n <!-- actions and buttons -->\r\n <div class=\"\r\n w-full\r\n d-flex\r\n justify-between\r\n absolute\r\n bottom-0\r\n actionsBtnWrapper\r\n\">\r\n\r\n <button (click)=\"createDocument()\" [disabled]=\"\r\n !dynamicData.valid ||\r\n folderForm.invalid ||\r\n staticForm.title === '..'\r\n \" [ngClass]=\"{\r\n 'opacity-30 cursor-not-allowed':\r\n !dynamicData.valid ||\r\n folderForm.invalid ||\r\n staticForm.title === '..'\r\n }\" class=\"submission-button \">\r\n {{ \"BUTTONS.CREATE\" | translate }}\r\n </button>\r\n\r\n\r\n <button class=\"cancelation-button\" (click)=\"closeDialog()\">\r\n {{ \"BUTTONS.CANCEL\" | translate }}\r\n </button>\r\n\r\n </div>\r\n</div>", styles: [".folder-wrapper{height:calc(100% - 50px);overflow-y:auto;overflow-x:hidden;padding:0 10px;width:100%}.rtl .actionsBtnWrapper{direction:ltr}.actionsBtnWrapper{direction:rtl}\n"], components: [{ type: DynamicFormComponent, selector: "app-dynamic-form", inputs: ["form", "data", "readOnly"], outputs: ["change"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.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: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe } });
|
|
24627
24697
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FolderModalComponent, decorators: [{
|
|
24628
24698
|
type: Component,
|
|
24629
24699
|
args: [{
|
|
@@ -25377,11 +25447,17 @@ class ActivitiesLogModule {
|
|
|
25377
25447
|
ActivitiesLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25378
25448
|
ActivitiesLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogModule, declarations: [ActivitiesLogComponent], imports: [CommonModule,
|
|
25379
25449
|
MatProgressBarModule,
|
|
25380
|
-
LatestActivityModule
|
|
25450
|
+
LatestActivityModule,
|
|
25451
|
+
FormsModule,
|
|
25452
|
+
ReactiveFormsModule,
|
|
25453
|
+
DynamicFormModule], exports: [ActivitiesLogComponent] });
|
|
25381
25454
|
ActivitiesLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogModule, imports: [[
|
|
25382
25455
|
CommonModule,
|
|
25383
25456
|
MatProgressBarModule,
|
|
25384
|
-
LatestActivityModule
|
|
25457
|
+
LatestActivityModule,
|
|
25458
|
+
FormsModule,
|
|
25459
|
+
ReactiveFormsModule,
|
|
25460
|
+
DynamicFormModule
|
|
25385
25461
|
]] });
|
|
25386
25462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: ActivitiesLogModule, decorators: [{
|
|
25387
25463
|
type: NgModule,
|
|
@@ -25390,7 +25466,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImpor
|
|
|
25390
25466
|
imports: [
|
|
25391
25467
|
CommonModule,
|
|
25392
25468
|
MatProgressBarModule,
|
|
25393
|
-
LatestActivityModule
|
|
25469
|
+
LatestActivityModule,
|
|
25470
|
+
FormsModule,
|
|
25471
|
+
ReactiveFormsModule,
|
|
25472
|
+
DynamicFormModule
|
|
25394
25473
|
],
|
|
25395
25474
|
exports: [ActivitiesLogComponent]
|
|
25396
25475
|
}]
|
|
@@ -26212,7 +26291,12 @@ class FileManagerAbstract {
|
|
|
26212
26291
|
}
|
|
26213
26292
|
};
|
|
26214
26293
|
this.refresh = () => {
|
|
26215
|
-
|
|
26294
|
+
if (this.myPageConfiguration.fileMangerObjectName === "externalshareFileMangerObj") {
|
|
26295
|
+
this.fileManagerService.customEvent.emit('refresh');
|
|
26296
|
+
}
|
|
26297
|
+
else {
|
|
26298
|
+
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26299
|
+
}
|
|
26216
26300
|
};
|
|
26217
26301
|
this.addToQuickAccess = () => {
|
|
26218
26302
|
this.fileManagerService
|
|
@@ -26626,7 +26710,7 @@ class FileManagerAbstract {
|
|
|
26626
26710
|
showNoDataImage(data) {
|
|
26627
26711
|
var _a, _b;
|
|
26628
26712
|
if (this.itemListView) {
|
|
26629
|
-
if (data.length === 0) {
|
|
26713
|
+
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
26630
26714
|
(_a = document
|
|
26631
26715
|
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
|
|
26632
26716
|
}
|
|
@@ -26636,7 +26720,7 @@ class FileManagerAbstract {
|
|
|
26636
26720
|
}
|
|
26637
26721
|
}
|
|
26638
26722
|
else {
|
|
26639
|
-
if (data.length === 0) {
|
|
26723
|
+
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
26640
26724
|
let dataGridElement = document.getElementsByClassName('dx-datagrid-nodata')[0];
|
|
26641
26725
|
if (dataGridElement)
|
|
26642
26726
|
dataGridElement.classList.remove('empty');
|