nuxeo-development-framework 3.1.4 → 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.
@@ -21217,6 +21217,7 @@
21217
21217
  this.userPermittedFilesOnly = [];
21218
21218
  this.isArabic = false;
21219
21219
  this.clipboardPermissionList = ['canCopy', 'canMove'];
21220
+ this.customEvent = new i0.EventEmitter();
21220
21221
  // getTreeNodeChildren = (parent) => {
21221
21222
  // let params = {
21222
21223
  // queryParams: parent ? parent : '',
@@ -23457,6 +23458,9 @@
23457
23458
  this.activitiesLogService = activitiesLogService;
23458
23459
  this.myConfigService = myConfigService;
23459
23460
  this.success = new i0.EventEmitter();
23461
+ this.filterForm = new i6.FormGroup({
23462
+ allevent: new i6.FormControl(true),
23463
+ });
23460
23464
  this.p = 1;
23461
23465
  this.count = 100;
23462
23466
  this.isFetching = false;
@@ -23474,69 +23478,135 @@
23474
23478
  this.activitiesLogService.getLogs(this.documentId, this.p - 1, this.count)
23475
23479
  .subscribe(function (res) {
23476
23480
  //console.log(res);
23477
- res.entries.filter(function (f) { return !_this.myConfigService.myConfiguration.logs.excludedStates.includes(f.eventId); })
23478
- .map(function (item) {
23479
- var _a, _b, _c;
23480
- if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
23481
- 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];
23482
- _this.activitylog.push(
23483
- // {
23484
- // documentLifecycle : 'registered', //'doclifecycle'
23485
- // eventName:'incoming_register', //eventId
23486
- // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23487
- // creator:{
23488
- // properties : {
23489
- // firstName: "Cts",
23490
- // lastName: "Sec"
23491
- // }
23492
- // },
23493
- // documentName:'edge incoming 4 ' // pass from outside
23494
- // }
23495
- {
23496
- documentLifecycle: item.docLifeCycle,
23497
- eventName: item.eventId,
23498
- eventDate: item.eventDate,
23499
- creator: {
23500
- properties: {
23501
- firstName: item.principalName,
23502
- lastName: ''
23503
- }
23504
- },
23505
- documentName: _this.documentTitle
23506
- });
23507
- }
23508
- else {
23509
- _this.activitylog.push(
23510
- // {
23511
- // documentLifecycle : 'registered', //'doclifecycle'
23512
- // eventName:'incoming_register', //eventId
23513
- // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23514
- // creator:{
23515
- // properties : {
23516
- // firstName: "Cts",
23517
- // lastName: "Sec"
23518
- // }
23519
- // },
23520
- // documentName:'edge incoming 4 ' // pass from outside
23521
- // }
23522
- {
23523
- documentLifecycle: item.docLifeCycle,
23524
- eventName: item.eventId,
23525
- eventDate: item.eventDate,
23526
- creator: {
23527
- properties: {
23528
- firstName: item.principalName,
23529
- lastName: ''
23530
- }
23531
- },
23532
- documentName: _this.documentTitle
23533
- });
23534
- }
23535
- });
23481
+ if (_this.filterForm.controls.allevent.value) {
23482
+ res.entries.map(function (item) {
23483
+ var _a, _b, _c;
23484
+ if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
23485
+ 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];
23486
+ _this.activitylog.push(
23487
+ // {
23488
+ // documentLifecycle : 'registered', //'doclifecycle'
23489
+ // eventName:'incoming_register', //eventId
23490
+ // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23491
+ // creator:{
23492
+ // properties : {
23493
+ // firstName: "Cts",
23494
+ // lastName: "Sec"
23495
+ // }
23496
+ // },
23497
+ // documentName:'edge incoming 4 ' // pass from outside
23498
+ // }
23499
+ {
23500
+ documentLifecycle: item.docLifeCycle,
23501
+ eventName: item.eventId,
23502
+ eventDate: item.eventDate,
23503
+ creator: {
23504
+ properties: {
23505
+ firstName: item.principalName,
23506
+ lastName: ''
23507
+ }
23508
+ },
23509
+ documentName: _this.documentTitle
23510
+ });
23511
+ }
23512
+ else {
23513
+ _this.activitylog.push(
23514
+ // {
23515
+ // documentLifecycle : 'registered', //'doclifecycle'
23516
+ // eventName:'incoming_register', //eventId
23517
+ // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23518
+ // creator:{
23519
+ // properties : {
23520
+ // firstName: "Cts",
23521
+ // lastName: "Sec"
23522
+ // }
23523
+ // },
23524
+ // documentName:'edge incoming 4 ' // pass from outside
23525
+ // }
23526
+ {
23527
+ documentLifecycle: item.docLifeCycle,
23528
+ eventName: item.eventId,
23529
+ eventDate: item.eventDate,
23530
+ creator: {
23531
+ properties: {
23532
+ firstName: item.principalName,
23533
+ lastName: ''
23534
+ }
23535
+ },
23536
+ documentName: _this.documentTitle
23537
+ });
23538
+ }
23539
+ });
23540
+ }
23541
+ else {
23542
+ res.entries.filter(function (f) { return !_this.myConfigService.myConfiguration.logs.excludedStates.includes(f.eventId); })
23543
+ .map(function (item) {
23544
+ var _a, _b, _c;
23545
+ if ((item === null || item === void 0 ? void 0 : item.eventId) == "Download") {
23546
+ 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];
23547
+ _this.activitylog.push(
23548
+ // {
23549
+ // documentLifecycle : 'registered', //'doclifecycle'
23550
+ // eventName:'incoming_register', //eventId
23551
+ // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23552
+ // creator:{
23553
+ // properties : {
23554
+ // firstName: "Cts",
23555
+ // lastName: "Sec"
23556
+ // }
23557
+ // },
23558
+ // documentName:'edge incoming 4 ' // pass from outside
23559
+ // }
23560
+ {
23561
+ documentLifecycle: item.docLifeCycle,
23562
+ eventName: item.eventId,
23563
+ eventDate: item.eventDate,
23564
+ creator: {
23565
+ properties: {
23566
+ firstName: item.principalName,
23567
+ lastName: ''
23568
+ }
23569
+ },
23570
+ documentName: _this.documentTitle
23571
+ });
23572
+ }
23573
+ else {
23574
+ _this.activitylog.push(
23575
+ // {
23576
+ // documentLifecycle : 'registered', //'doclifecycle'
23577
+ // eventName:'incoming_register', //eventId
23578
+ // eventDate: '2021-09-27T10:42:38.000Z', // eventDate
23579
+ // creator:{
23580
+ // properties : {
23581
+ // firstName: "Cts",
23582
+ // lastName: "Sec"
23583
+ // }
23584
+ // },
23585
+ // documentName:'edge incoming 4 ' // pass from outside
23586
+ // }
23587
+ {
23588
+ documentLifecycle: item.docLifeCycle,
23589
+ eventName: item.eventId,
23590
+ eventDate: item.eventDate,
23591
+ creator: {
23592
+ properties: {
23593
+ firstName: item.principalName,
23594
+ lastName: ''
23595
+ }
23596
+ },
23597
+ documentName: _this.documentTitle
23598
+ });
23599
+ }
23600
+ });
23601
+ }
23536
23602
  _this.isFetching = false;
23537
23603
  _this.success.emit(true);
23538
23604
  });
23539
23605
  };
23606
+ ActivitiesLogComponent.prototype.getToggleFilters = function () {
23607
+ this.activitylog = [];
23608
+ this.getActivities();
23609
+ };
23540
23610
  ActivitiesLogComponent.prototype.onScroll = function () {
23541
23611
  this.p++;
23542
23612
  this.getActivities();
@@ -23544,7 +23614,7 @@
23544
23614
  return ActivitiesLogComponent;
23545
23615
  }());
23546
23616
  ActivitiesLogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogComponent, deps: [{ token: ActivitiesLogService }, { token: AppConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
23547
- ActivitiesLogComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
23617
+ ActivitiesLogComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
23548
23618
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogComponent, decorators: [{
23549
23619
  type: i0.Component,
23550
23620
  args: [{
@@ -26133,7 +26203,7 @@
26133
26203
  return CreateModalComponent;
26134
26204
  }());
26135
26205
  CreateModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CreateModalComponent, deps: [{ token: i1$6.MAT_DIALOG_DATA }, { token: i1__namespace$6.MatDialogRef }, { token: UploadManagmentService }, { token: DialogMangmentService }, { token: FileManagerService }, { token: CustomToastrService }, { token: i6__namespace.FormBuilder }, { token: AdapterService }, { token: FileManagerService }, { token: AppConfigService }, { token: DateHelperService }, { token: TranslationService$1 }, { token: UserService }, { token: NuxeoService$1 }, { token: 'environment' }, { token: DynamicFormService }], target: i0__namespace.ɵɵFactoryTarget.Component });
26136
- CreateModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CreateModalComponent, selector: "app-create-modal", ngImport: i0__namespace, 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__namespace$5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.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__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
26206
+ CreateModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CreateModalComponent, selector: "app-create-modal", ngImport: i0__namespace, 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__namespace$5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SetRtlDirective, selector: "[SetRtl]" }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.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__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
26137
26207
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CreateModalComponent, decorators: [{
26138
26208
  type: i0.Component,
26139
26209
  args: [{
@@ -26262,7 +26332,7 @@
26262
26332
  return FolderModalComponent;
26263
26333
  }());
26264
26334
  FolderModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: FolderModalComponent, deps: [{ token: i1$6.MAT_DIALOG_DATA }, { token: i1__namespace$6.MatDialogRef }, { token: FileManagerService }, { token: DynamicFormService }, { token: TranslationService$1 }, { token: CustomToastrService }, { token: i6__namespace.FormBuilder }], target: i0__namespace.ɵɵFactoryTarget.Component });
26265
- FolderModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: FolderModalComponent, selector: "app-folder-modal", ngImport: i0__namespace, 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\r\n class=\"field-style\"\r\n [ngClass]=\"{'border-red-500' : staticForm.title === '..'}\"\r\n required\r\n [(ngModel)]=\"staticForm.title\"\r\n id=\"folderTitle\"\r\n name=\"folderTitle\"\r\n />\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\r\n class=\"field-style\"\r\n [(ngModel)]=\"staticForm.description\"\r\n id=\"folderDescription\"\r\n name=\"folderDescription\"\r\n />\r\n </div>\r\n </form>\r\n \r\n <div class=\"dynamic-part -mx-4\" *ngIf=\"dynamicForm && showRenderer\">\r\n <app-dynamic-form\r\n [form]=\"dynamicForm\"\r\n [data]=\"temporaryDyanmicData\"\r\n (change)=\"ondynamicFormChange($event)\"\r\n ></app-dynamic-form>\r\n </div>\r\n </div>\r\n <!-- actions and buttons -->\r\n <div\r\n class=\"\r\n w-full\r\n d-flex\r\n justify-between\r\n absolute\r\n bottom-0\r\n \"\r\n >\r\n <div class=\"flex\">\r\n <button\r\n class=\"cancelation-button\"\r\n (click)=\"closeDialog()\"\r\n >\r\n {{ \"BUTTONS.CANCEL\" | translate }}\r\n </button>\r\n </div>\r\n\r\n <!-- -->\r\n <div class=\"d-flex\">\r\n <button\r\n (click)=\"createDocument()\"\r\n [disabled]=\"\r\n !dynamicData.valid ||\r\n folderForm.invalid ||\r\n staticForm.title === '..'\r\n \"\r\n [ngClass]=\"{\r\n 'opacity-30 cursor-not-allowed':\r\n !dynamicData.valid ||\r\n folderForm.invalid ||\r\n staticForm.title === '..'\r\n }\"\r\n class=\"submission-button \"\r\n >\r\n {{ \"BUTTONS.CREATE\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".folder-wrapper{height:calc(100% - 50px);overflow-y:auto;overflow-x:hidden;padding:0 10px;width:100%}\n"], components: [{ type: DynamicFormComponent, selector: "app-dynamic-form", inputs: ["form", "data", "readOnly"], outputs: ["change"] }], directives: [{ type: SetRtlDirective, selector: "[SetRtl]" }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.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__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
26335
+ FolderModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: FolderModalComponent, selector: "app-folder-modal", ngImport: i0__namespace, 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__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6__namespace.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__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
26266
26336
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: FolderModalComponent, decorators: [{
26267
26337
  type: i0.Component,
26268
26338
  args: [{
@@ -27047,11 +27117,17 @@
27047
27117
  ActivitiesLogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
27048
27118
  ActivitiesLogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogModule, declarations: [ActivitiesLogComponent], imports: [i3.CommonModule,
27049
27119
  i4$2.MatProgressBarModule,
27050
- LatestActivityModule], exports: [ActivitiesLogComponent] });
27120
+ LatestActivityModule,
27121
+ i6.FormsModule,
27122
+ i6.ReactiveFormsModule,
27123
+ DynamicFormModule], exports: [ActivitiesLogComponent] });
27051
27124
  ActivitiesLogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogModule, imports: [[
27052
27125
  i3.CommonModule,
27053
27126
  i4$2.MatProgressBarModule,
27054
- LatestActivityModule
27127
+ LatestActivityModule,
27128
+ i6.FormsModule,
27129
+ i6.ReactiveFormsModule,
27130
+ DynamicFormModule
27055
27131
  ]] });
27056
27132
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: ActivitiesLogModule, decorators: [{
27057
27133
  type: i0.NgModule,
@@ -27060,7 +27136,10 @@
27060
27136
  imports: [
27061
27137
  i3.CommonModule,
27062
27138
  i4$2.MatProgressBarModule,
27063
- LatestActivityModule
27139
+ LatestActivityModule,
27140
+ i6.FormsModule,
27141
+ i6.ReactiveFormsModule,
27142
+ DynamicFormModule
27064
27143
  ],
27065
27144
  exports: [ActivitiesLogComponent]
27066
27145
  }]
@@ -27916,7 +27995,12 @@
27916
27995
  }
27917
27996
  };
27918
27997
  this.refresh = function () {
27919
- _this.reinitializeFolderTree(_this.getCurrentFolderId(_this.getCurrentDirectory()), _this.getCurrentDirectory());
27998
+ if (_this.myPageConfiguration.fileMangerObjectName === "externalshareFileMangerObj") {
27999
+ _this.fileManagerService.customEvent.emit('refresh');
28000
+ }
28001
+ else {
28002
+ _this.reinitializeFolderTree(_this.getCurrentFolderId(_this.getCurrentDirectory()), _this.getCurrentDirectory());
28003
+ }
27920
28004
  };
27921
28005
  this.addToQuickAccess = function () {
27922
28006
  _this.fileManagerService
@@ -28364,7 +28448,7 @@
28364
28448
  FileManagerAbstract.prototype.showNoDataImage = function (data) {
28365
28449
  var _a, _b;
28366
28450
  if (this.itemListView) {
28367
- if (data.length === 0) {
28451
+ if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
28368
28452
  (_a = document
28369
28453
  .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
28370
28454
  }
@@ -28374,7 +28458,7 @@
28374
28458
  }
28375
28459
  }
28376
28460
  else {
28377
- if (data.length === 0) {
28461
+ if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
28378
28462
  var dataGridElement = document.getElementsByClassName('dx-datagrid-nodata')[0];
28379
28463
  if (dataGridElement)
28380
28464
  dataGridElement.classList.remove('empty');