nuxeo-development-framework 3.3.1 → 3.3.2
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 +73 -40
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +2 -22
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +50 -18
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +2 -2
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +2 -2
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
- package/esm2015/lib/shared-services/global-admin.service.js +24 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +72 -41
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +0 -11
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +3 -1
- package/lib/shared-services/global-admin.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -6385,29 +6385,58 @@
|
|
|
6385
6385
|
manager: 'dept:manager',
|
|
6386
6386
|
};
|
|
6387
6387
|
|
|
6388
|
+
var GlobalAdminService = /** @class */ (function () {
|
|
6389
|
+
function GlobalAdminService(nuxeo, evaluatorService) {
|
|
6390
|
+
this.nuxeo = nuxeo;
|
|
6391
|
+
this.evaluatorService = evaluatorService;
|
|
6392
|
+
this.isGlobalAdmin = false;
|
|
6393
|
+
this.activeTenant = null;
|
|
6394
|
+
}
|
|
6395
|
+
GlobalAdminService.prototype.checkIfGlobalAdmin = function () {
|
|
6396
|
+
return this.evaluatorService.evaluateRule('isGlobalAdmin');
|
|
6397
|
+
};
|
|
6398
|
+
return GlobalAdminService;
|
|
6399
|
+
}());
|
|
6400
|
+
GlobalAdminService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: GlobalAdminService, deps: [{ token: NuxeoService$1 }, { token: EvaluatorsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
6401
|
+
GlobalAdminService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: GlobalAdminService, providedIn: 'root' });
|
|
6402
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: GlobalAdminService, decorators: [{
|
|
6403
|
+
type: i0.Injectable,
|
|
6404
|
+
args: [{
|
|
6405
|
+
providedIn: 'root'
|
|
6406
|
+
}]
|
|
6407
|
+
}], ctorParameters: function () { return [{ type: NuxeoService$1 }, { type: EvaluatorsService }]; } });
|
|
6408
|
+
|
|
6388
6409
|
var departmentCacheBuster$ = new rxjs.Subject();
|
|
6389
6410
|
var minute$1 = 60000;
|
|
6390
6411
|
/** @ignore */
|
|
6391
6412
|
var DepartmentApiService = /** @class */ (function () {
|
|
6392
|
-
function DepartmentApiService(CallApiService, translation, nuxeoService, adapter, environment) {
|
|
6413
|
+
function DepartmentApiService(CallApiService, translation, nuxeoService, adapter, globalAdminService, environment) {
|
|
6393
6414
|
var _this = this;
|
|
6394
6415
|
this.CallApiService = CallApiService;
|
|
6395
6416
|
this.translation = translation;
|
|
6396
6417
|
this.nuxeoService = nuxeoService;
|
|
6397
6418
|
this.adapter = adapter;
|
|
6419
|
+
this.globalAdminService = globalAdminService;
|
|
6398
6420
|
this.environment = environment;
|
|
6399
6421
|
this.translation.isArabic.subscribe(function (res) {
|
|
6400
6422
|
_this.arabic = res;
|
|
6401
6423
|
});
|
|
6402
6424
|
}
|
|
6403
6425
|
DepartmentApiService.prototype.getDepartmentTree = function (customPageProvider) {
|
|
6404
|
-
|
|
6426
|
+
var params = {
|
|
6405
6427
|
pageProvider: customPageProvider ? customPageProvider : 'PP_Department',
|
|
6406
6428
|
currentPageIndex: 0,
|
|
6407
6429
|
offset: 0,
|
|
6408
6430
|
pageSize: 40,
|
|
6409
|
-
quickFilters: 'Parent Dept'
|
|
6410
|
-
}
|
|
6431
|
+
quickFilters: 'Parent Dept'
|
|
6432
|
+
};
|
|
6433
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6434
|
+
params['queryParams'] = '/' + this.globalAdminService.activeTenant;
|
|
6435
|
+
}
|
|
6436
|
+
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6437
|
+
params['queryParams'] = '/' + this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6438
|
+
}
|
|
6439
|
+
return this.CallApiService.query(Object.assign({}, params), {
|
|
6411
6440
|
headers: {
|
|
6412
6441
|
'X-NXproperties': '*',
|
|
6413
6442
|
'enrichers-document': 'children',
|
|
@@ -6416,13 +6445,20 @@
|
|
|
6416
6445
|
});
|
|
6417
6446
|
};
|
|
6418
6447
|
DepartmentApiService.prototype.getDepartmentDetails = function (code, customPageProvider) {
|
|
6419
|
-
|
|
6448
|
+
var params = {
|
|
6420
6449
|
pageProvider: customPageProvider ? customPageProvider : 'PP_Department_With_ElasticSearch',
|
|
6421
6450
|
currentPageIndex: 0,
|
|
6422
6451
|
offset: 0,
|
|
6423
6452
|
pageSize: 40,
|
|
6424
6453
|
dublincore_title: code,
|
|
6425
|
-
}
|
|
6454
|
+
};
|
|
6455
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6456
|
+
params['queryParams'] = '/' + this.globalAdminService.activeTenant;
|
|
6457
|
+
}
|
|
6458
|
+
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6459
|
+
params['queryParams'] = '/' + this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6460
|
+
}
|
|
6461
|
+
return this.CallApiService.query(Object.assign({}, params), {
|
|
6426
6462
|
headers: {
|
|
6427
6463
|
'X-NXproperties': '*',
|
|
6428
6464
|
'enrichers-document': 'children',
|
|
@@ -6433,6 +6469,12 @@
|
|
|
6433
6469
|
DepartmentApiService.prototype.getDepartmentNestedTree = function (code, customPageProvider, customParentCodeProperty) {
|
|
6434
6470
|
var params = {};
|
|
6435
6471
|
customParentCodeProperty ? (params[customParentCodeProperty] = code) : (params = { 'department_parentDepartmentCode': code });
|
|
6472
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6473
|
+
params['queryParams'] = '/' + this.globalAdminService.activeTenant;
|
|
6474
|
+
}
|
|
6475
|
+
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6476
|
+
params['queryParams'] = '/' + this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6477
|
+
}
|
|
6436
6478
|
return this.CallApiService.query(Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40 }, params), {
|
|
6437
6479
|
headers: {
|
|
6438
6480
|
'X-NXproperties': '*',
|
|
@@ -6456,41 +6498,51 @@
|
|
|
6456
6498
|
};
|
|
6457
6499
|
// testing
|
|
6458
6500
|
DepartmentApiService.prototype.createDepartment = function (Department, parentId, customOperation, fields) {
|
|
6501
|
+
var context = { department: this.adapter.adaptOut(Department, fields ? fields : DepartmentConstants.fields) };
|
|
6502
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6503
|
+
context['tenantId'] = this.globalAdminService.activeTenant;
|
|
6504
|
+
}
|
|
6459
6505
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
6460
6506
|
.operation(customOperation ? customOperation : 'AC_UA_Depatrment_Create', {
|
|
6461
6507
|
url: "" + this.environment.nuxeo + this.environment.customAutomation,
|
|
6462
6508
|
})
|
|
6463
6509
|
.input(parentId)
|
|
6464
|
-
.context({
|
|
6465
|
-
department: this.adapter.adaptOut(Department, fields ? fields : DepartmentConstants.fields),
|
|
6466
|
-
})
|
|
6510
|
+
.context(Object.assign({}, context))
|
|
6467
6511
|
.execute()).pipe(operators.catchError(function (err) {
|
|
6468
6512
|
console.log(err);
|
|
6469
6513
|
throw err;
|
|
6470
6514
|
}));
|
|
6471
6515
|
};
|
|
6472
6516
|
DepartmentApiService.prototype.createDepartmentInRoot = function (Department, customOperation) {
|
|
6517
|
+
var context = {
|
|
6518
|
+
department: this.adapter.adaptOut(Department, DepartmentConstants.fields)
|
|
6519
|
+
};
|
|
6520
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6521
|
+
context['tenantId'] = this.globalAdminService.activeTenant;
|
|
6522
|
+
}
|
|
6473
6523
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
6474
6524
|
.operation(customOperation ? customOperation : 'AC_UA_Depatrment_Create_InRoot', {
|
|
6475
6525
|
url: "" + this.environment.nuxeo + this.environment.customAutomation,
|
|
6476
6526
|
})
|
|
6477
|
-
.context({
|
|
6478
|
-
department: this.adapter.adaptOut(Department, DepartmentConstants.fields),
|
|
6479
|
-
})
|
|
6527
|
+
.context(Object.assign({}, context))
|
|
6480
6528
|
.execute()).pipe(operators.catchError(function (err) {
|
|
6481
6529
|
console.log(err);
|
|
6482
6530
|
throw err;
|
|
6483
6531
|
}));
|
|
6484
6532
|
};
|
|
6485
6533
|
DepartmentApiService.prototype.updateDepartment = function (Department, departmentId, customOperation, fields) {
|
|
6534
|
+
var context = {
|
|
6535
|
+
department: this.adapter.adaptOut(Department, fields ? fields : DepartmentConstants.fields)
|
|
6536
|
+
};
|
|
6537
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
6538
|
+
context['tenantId'] = this.globalAdminService.activeTenant;
|
|
6539
|
+
}
|
|
6486
6540
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
6487
6541
|
.operation(customOperation ? customOperation : 'AC_UA_Department_Update', {
|
|
6488
6542
|
url: "" + this.environment.nuxeo + this.environment.customAutomation,
|
|
6489
6543
|
})
|
|
6490
6544
|
.input(departmentId)
|
|
6491
|
-
.context({
|
|
6492
|
-
department: this.adapter.adaptOut(Department, fields ? fields : DepartmentConstants.fields),
|
|
6493
|
-
})
|
|
6545
|
+
.context(Object.assign({}, context))
|
|
6494
6546
|
.execute()).pipe(operators.catchError(function (err) {
|
|
6495
6547
|
console.log(err);
|
|
6496
6548
|
throw err;
|
|
@@ -6533,7 +6585,7 @@
|
|
|
6533
6585
|
};
|
|
6534
6586
|
return DepartmentApiService;
|
|
6535
6587
|
}());
|
|
6536
|
-
DepartmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DepartmentApiService, deps: [{ token: CallApiService }, { token: TranslationService$1 }, { token: NuxeoService$1 }, { token: AdapterService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
6588
|
+
DepartmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DepartmentApiService, deps: [{ token: CallApiService }, { token: TranslationService$1 }, { token: NuxeoService$1 }, { token: AdapterService }, { token: GlobalAdminService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
6537
6589
|
DepartmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DepartmentApiService, providedIn: 'root' });
|
|
6538
6590
|
__decorate([
|
|
6539
6591
|
tsCacheable.Cacheable({
|
|
@@ -6579,7 +6631,7 @@
|
|
|
6579
6631
|
providedIn: 'root',
|
|
6580
6632
|
}]
|
|
6581
6633
|
}], ctorParameters: function () {
|
|
6582
|
-
return [{ type: CallApiService }, { type: TranslationService$1 }, { type: NuxeoService$1 }, { type: AdapterService }, { type: undefined, decorators: [{
|
|
6634
|
+
return [{ type: CallApiService }, { type: TranslationService$1 }, { type: NuxeoService$1 }, { type: AdapterService }, { type: GlobalAdminService }, { type: undefined, decorators: [{
|
|
6583
6635
|
type: i0.Inject,
|
|
6584
6636
|
args: ['environment']
|
|
6585
6637
|
}] }];
|
|
@@ -6686,30 +6738,10 @@
|
|
|
6686
6738
|
});
|
|
6687
6739
|
}
|
|
6688
6740
|
};
|
|
6689
|
-
CustomToastrComponent.prototype.setbBackgroundColor = function () {
|
|
6690
|
-
this.toastrService.clear();
|
|
6691
|
-
var classes = {
|
|
6692
|
-
success: this.type === 'success',
|
|
6693
|
-
error: this.type === 'error',
|
|
6694
|
-
notification: this.type === 'notification',
|
|
6695
|
-
};
|
|
6696
|
-
return classes;
|
|
6697
|
-
};
|
|
6698
|
-
CustomToastrComponent.prototype.setTextColor = function () {
|
|
6699
|
-
var classes = {
|
|
6700
|
-
'msg-success': this.type === 'success',
|
|
6701
|
-
'msg-error': this.type === 'error',
|
|
6702
|
-
'msg-notification': this.type === 'notification',
|
|
6703
|
-
};
|
|
6704
|
-
return classes;
|
|
6705
|
-
};
|
|
6706
|
-
CustomToastrComponent.prototype.remove = function () {
|
|
6707
|
-
this.toastrService.clear();
|
|
6708
|
-
};
|
|
6709
6741
|
return CustomToastrComponent;
|
|
6710
6742
|
}(i1$3.Toast));
|
|
6711
6743
|
CustomToastrComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CustomToastrComponent, deps: [{ token: i1__namespace$3.ToastrService }, { token: i1__namespace$3.ToastPackage }, { token: i1__namespace$1.TranslateService }, { token: UserPreferencesService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6712
|
-
CustomToastrComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomToastrComponent, selector: "cts-custom-toastr", usesInheritance: true, ngImport: i0__namespace, template: "<div\r\n class=\"toast-container\"\r\n [style.display]=\"state.value === 'inactive' ? 'none' : ''\"\r\n [dir]=\"lang\"\r\n [@simpleFadeAnimation]=\"'in'\"\r\n>\r\n <div class=\"icon-container rounded-s-md\" [ngClass]=\"setbBackgroundColor()\">\r\n <ng-container [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'success'\">\r\n <span class=\"bi bi-check2 toast-icon\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'error'\">\r\n <span class=\"bi bi-x toast-icon\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'notification'\">\r\n <span class=\"bi bi-bell-fill notification-icon\"></span>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"toast-content-container\">\r\n <div\r\n *ngIf=\"title\"\r\n [class]=\"options.titleClass\"\r\n [attr.aria-label]=\"title\"\r\n class=\"toast-content\"\r\n >\r\n {{ title | translate }}\r\n </div>\r\n <div\r\n *ngIf=\"message\"\r\n role=\"alert\"\r\n aria-live=\"polite\"\r\n [class]=\"options.messageClass\"\r\n [attr.aria-label]=\"message\"\r\n class=\"message\"\r\n [ngClass]=\"setTextColor()\"\r\n >\r\n {{ message | translate : { value:value } }}\r\n </div>\r\n </div>\r\n <div *ngIf=\"options.closeButton\" (click)=\"remove()\" class=\"remove\">\r\n <span style=\"font-size: 26px; color: gray\" aria-hidden=\"true\">×</span>\r\n </div>\r\n</div>\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.toast-container{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-left:16px;margin-right:16px;position:relative;width:400px;height:80px;box-shadow:0 0 4px #0000003b;background-color:#fff;border-radius:5px}.toast-container .error{background-color:#ff375e}.toast-container .success{background-color:#0dbab5}.toast-container .notification{background-color:#1a96c6}.toast-container .toast-icon{font-size:40px;color:#fff;-webkit-text-stroke:3px white}.toast-container .notification-icon{font-size:30px;color:#fff}.toast-container .msg-error{color:#ff375e}.toast-container .msg-success{color:#0dbab5}.toast-container .msg-notification{color:#1a96c6}.toast-container .icon-container{grid-column:span 1/span 1;display:flex;align-items:center;justify-content:center}.toast-container .toast-content-container{grid-column:span 3/span 3;display:flex;flex-direction:column;padding-top:4px;padding-bottom:4px;padding-inline-start:8px;overflow:hidden}.toast-container .toast-content-container .toast-content{font-size:18px;color:#8f98aa}.toast-container .toast-content-container .message{font-size:14px;line-height:20px}.toast-container .remove{grid-column:span 1/span 1;cursor:pointer;display:flex;justify-content:flex-end;padding-inline-end:8px}.toast-container .remove mat-icon{color:#8f98aa;font-size:20px;line-height:28px}.rounded-s-md{border-start-start-radius:6px;border-end-start-radius:6px}\n"], directives: [{ type: i3__namespace$3.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, animations: [
|
|
6744
|
+
CustomToastrComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomToastrComponent, selector: "cts-custom-toastr", usesInheritance: true, ngImport: i0__namespace, template: "<div\r\n class=\"toast-container\"\r\n [style.display]=\"state.value === 'inactive' ? 'none' : ''\"\r\n [dir]=\"lang\"\r\n [@simpleFadeAnimation]=\"'in'\"\r\n>\r\n <div class=\"icon-container rounded-s-md\" [ngClass]=\"{'success' : type === 'success' , 'error' : type === 'error' ,'notification' : type === 'notification'}\">\r\n <ng-container [ngSwitch]=\"type\">\r\n <ng-container *ngSwitchCase=\"'success'\">\r\n <span class=\"bi bi-check2 toast-icon\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'error'\">\r\n <span class=\"bi bi-x toast-icon\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'notification'\">\r\n <span class=\"bi bi-bell-fill notification-icon\"></span>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n <div class=\"toast-content-container\">\r\n <div\r\n *ngIf=\"title\"\r\n [attr.aria-label]=\"title\"\r\n class=\"toast-content\"\r\n >\r\n {{ title | translate }}\r\n </div>\r\n <div\r\n *ngIf=\"message\"\r\n role=\"alert\"\r\n aria-live=\"polite\"\r\n [attr.aria-label]=\"message\"\r\n class=\"message\"\r\n [ngClass]=\"{'msg-success' : type === 'success' , 'msg-error' : type === 'error' ,'msg-notification' : type === 'notification'}\"\r\n >\r\n {{ message | translate : { value:value } }}\r\n </div>\r\n </div>\r\n <div (click)=\"remove()\" class=\"remove\">\r\n <span style=\"font-size: 26px; color: gray\" aria-hidden=\"true\">×</span>\r\n </div>\r\n</div>\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.toast-container{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-left:16px;margin-right:16px;position:relative;width:400px;height:80px;box-shadow:0 0 4px #0000003b;background-color:#fff;border-radius:5px}.toast-container .error{background-color:#ff375e}.toast-container .success{background-color:#0dbab5}.toast-container .notification{background-color:#1a96c6}.toast-container .toast-icon{font-size:40px;color:#fff;-webkit-text-stroke:3px white}.toast-container .notification-icon{font-size:30px;color:#fff}.toast-container .msg-error{color:#ff375e}.toast-container .msg-success{color:#0dbab5}.toast-container .msg-notification{color:#1a96c6}.toast-container .icon-container{grid-column:span 1/span 1;display:flex;align-items:center;justify-content:center}.toast-container .toast-content-container{grid-column:span 3/span 3;display:flex;flex-direction:column;padding-top:4px;padding-bottom:4px;padding-inline-start:8px;overflow:hidden}.toast-container .toast-content-container .toast-content{font-size:18px;color:#8f98aa}.toast-container .toast-content-container .message{font-size:14px;line-height:20px}.toast-container .remove{grid-column:span 1/span 1;cursor:pointer;display:flex;justify-content:flex-end;padding-inline-end:8px}.toast-container .remove mat-icon{color:#8f98aa;font-size:20px;line-height:28px}.rounded-s-md{border-start-start-radius:6px;border-end-start-radius:6px}\n"], directives: [{ type: i3__namespace$3.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, animations: [
|
|
6713
6745
|
// the fade-in/fade-out animation.
|
|
6714
6746
|
animations.trigger('simpleFadeAnimation', [
|
|
6715
6747
|
// the "in" style determines the "resting" state of the element when it is visible.
|
|
@@ -7868,7 +7900,7 @@
|
|
|
7868
7900
|
};
|
|
7869
7901
|
TreeviewSelectComponent.prototype.setPreSeletedItem = function (item, compareWithValue) {
|
|
7870
7902
|
var _this = this;
|
|
7871
|
-
if (item.value === compareWithValue) {
|
|
7903
|
+
if ((item.value === compareWithValue) || (item.value.title === compareWithValue)) {
|
|
7872
7904
|
this.select(item);
|
|
7873
7905
|
return;
|
|
7874
7906
|
}
|
|
@@ -10402,7 +10434,7 @@
|
|
|
10402
10434
|
return UserSelectorWrapperComponent;
|
|
10403
10435
|
}());
|
|
10404
10436
|
UserSelectorWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: UserSelectorWrapperComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10405
|
-
UserSelectorWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: UserSelectorWrapperComponent, selector: "lib-user-selector-wrapper", inputs: { value: "value", multipleMode: "multipleMode", customOptions: "customOptions" }, outputs: { valueChange: "valueChange" }, ngImport: i0__namespace, template: "<cts-dynamic-form-select-users placeholder=\"{{ 'CREATE.PLACE_HOLDER' | translate }} {{'CREATE.USER' | translate}}\"\
|
|
10437
|
+
UserSelectorWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: UserSelectorWrapperComponent, selector: "lib-user-selector-wrapper", inputs: { value: "value", multipleMode: "multipleMode", customOptions: "customOptions" }, outputs: { valueChange: "valueChange" }, ngImport: i0__namespace, template: "<cts-dynamic-form-select-users placeholder=\"{{ 'CREATE.PLACE_HOLDER' | translate }} {{'CREATE.USER' | translate}}\"\n [multiple]=\"multipleMode\"\n [searchable]=\"true\"\n [bindLabel]=\"'fullName'\"\n [closeOnSelect]=\"!multipleMode\"\n [searchable]=\"true\"\n [deptTitle]=\"'all'\"\n [preSelectedValues]=\"[]\"\n [usePreSelectedValue]=\"true\"\n (onSelectItems)=\"executeFunction($event)\"\n (ngModelChange)=\"checkChange($event)\"\n [(ngModel)]=\"bindedValue\" >\n</cts-dynamic-form-select-users>\n <!-- -->\n\n<!-- <div>{{customOptions | json}}</div>\n<div>{{multipleMode}}</div> -->", styles: [""], components: [{ type: DynamicFormSelectUsersComponent, selector: "cts-dynamic-form-select-users", inputs: ["deptTitle", "label", "bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "preSelectedValues", "usePreSelectedValue", "disabled", "filter"], outputs: ["onSelectItems"] }], directives: [{ type: 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"] }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
|
|
10406
10438
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: UserSelectorWrapperComponent, decorators: [{
|
|
10407
10439
|
type: i0.Component,
|
|
10408
10440
|
args: [{
|
|
@@ -29524,6 +29556,7 @@
|
|
|
29524
29556
|
exports.FilterModule = FilterModule;
|
|
29525
29557
|
exports.FolderModalComponent = FolderModalComponent;
|
|
29526
29558
|
exports.FormBuilderService = FormBuilderService;
|
|
29559
|
+
exports.GlobalAdminService = GlobalAdminService;
|
|
29527
29560
|
exports.GlobalPdfTron = GlobalPdfTron;
|
|
29528
29561
|
exports.GregorianDatepickerComponent = GregorianDatepickerComponent;
|
|
29529
29562
|
exports.HijriDatePipe = HijriDatePipe;
|