nuxeo-development-framework 3.5.6 → 3.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +59 -31
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +22 -12
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +32 -17
- package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +2 -2
- package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +6 -6
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +7 -7
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.js +2 -2
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +5 -2
- package/fesm2015/nuxeo-development-framework.js +58 -31
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.d.ts +3 -1
- package/lib/components/correspondence-relation/services/correspondence-realation.service.d.ts +1 -1
- package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4564,7 +4564,7 @@
|
|
|
4564
4564
|
if (query === void 0) { query = ''; }
|
|
4565
4565
|
var params = Object.assign({ pageProvider: type == 'relationFile' ? 'PP_Correspondence_RelationSeach' : 'PP_Correspondences_Elastic', currentPageIndex: 0, offset: 0, pageSize: 20, system_fulltext: val + '*' }, query);
|
|
4566
4566
|
if (this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
4567
|
-
params['queryParams'] = "
|
|
4567
|
+
params['queryParams'] = "" + this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
4568
4568
|
}
|
|
4569
4569
|
return this.callApi
|
|
4570
4570
|
.query(params, {
|
|
@@ -6844,10 +6844,10 @@
|
|
|
6844
6844
|
var obj = customParams ? customParams : {};
|
|
6845
6845
|
var params = Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40, quickFilters: 'Parent Dept' }, obj);
|
|
6846
6846
|
if (this.globalAdminService.isGlobalAdmin) {
|
|
6847
|
-
params['queryParams'] =
|
|
6847
|
+
params['queryParams'] = this.globalAdminService.activeTenant;
|
|
6848
6848
|
}
|
|
6849
6849
|
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6850
|
-
params['queryParams'] =
|
|
6850
|
+
params['queryParams'] = this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6851
6851
|
}
|
|
6852
6852
|
return this.CallApiService.query(Object.assign({}, params), {
|
|
6853
6853
|
headers: {
|
|
@@ -6866,10 +6866,10 @@
|
|
|
6866
6866
|
dublincore_title: code,
|
|
6867
6867
|
};
|
|
6868
6868
|
if (this.globalAdminService.isGlobalAdmin) {
|
|
6869
|
-
params['queryParams'] =
|
|
6869
|
+
params['queryParams'] = this.globalAdminService.activeTenant;
|
|
6870
6870
|
}
|
|
6871
6871
|
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6872
|
-
params['queryParams'] =
|
|
6872
|
+
params['queryParams'] = this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6873
6873
|
}
|
|
6874
6874
|
return this.CallApiService.query(Object.assign({}, params), {
|
|
6875
6875
|
headers: {
|
|
@@ -6883,10 +6883,10 @@
|
|
|
6883
6883
|
var params = {};
|
|
6884
6884
|
customParentCodeProperty ? (params[customParentCodeProperty] = code) : (params = { 'department_parentDepartmentCode': code });
|
|
6885
6885
|
if (this.globalAdminService.isGlobalAdmin) {
|
|
6886
|
-
params['queryParams'] =
|
|
6886
|
+
params['queryParams'] = this.globalAdminService.activeTenant;
|
|
6887
6887
|
}
|
|
6888
6888
|
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
6889
|
-
params['queryParams'] =
|
|
6889
|
+
params['queryParams'] = this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
6890
6890
|
}
|
|
6891
6891
|
return this.CallApiService.query(Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40 }, params), {
|
|
6892
6892
|
headers: {
|
|
@@ -7414,7 +7414,7 @@
|
|
|
7414
7414
|
var params = Object.assign({ currentPageIndex: 0, offset: 0, pageSize: 40, pageProvider: this.autoComplete_pageProvider }, this.outsideParams);
|
|
7415
7415
|
// if i was sending tenant id from outside then i am in case of multi tenant then add tenant id to params
|
|
7416
7416
|
if (this.tenantId) {
|
|
7417
|
-
params['queryParams'] = "
|
|
7417
|
+
params['queryParams'] = "" + this.tenantId;
|
|
7418
7418
|
}
|
|
7419
7419
|
// params[this.autoComplete_propertyName] = (val) ? `%${val}%` : '';
|
|
7420
7420
|
if (this.autoCompleteType == "caseSensitive" && val_1) {
|
|
@@ -10815,6 +10815,7 @@
|
|
|
10815
10815
|
this.translation = translation;
|
|
10816
10816
|
this.form = {};
|
|
10817
10817
|
this.data = null;
|
|
10818
|
+
this.classType = null;
|
|
10818
10819
|
this.list = [];
|
|
10819
10820
|
this.isArabic = false;
|
|
10820
10821
|
}
|
|
@@ -10838,7 +10839,7 @@
|
|
|
10838
10839
|
return DynamicFormViewerComponent;
|
|
10839
10840
|
}());
|
|
10840
10841
|
DynamicFormViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DynamicFormViewerComponent, deps: [{ token: i1__namespace$1.TranslateService }, { token: TranslationService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10841
|
-
DynamicFormViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DynamicFormViewerComponent, selector: "cts-dynamic-form-viewer", inputs: { form: "form", data: "data" }, ngImport: i0__namespace, template: "<div class=\"dynamic-fields-values\">\r\n <div class=\"fields-title\">\r\n {{ \"CREATE.CORRESP_FORM_VIEWER\" | translate }}\r\n </div>\r\n <div class=\"values-wrapper\">\r\n <div class=\"single-field-value\" *ngFor=\"let item of list\">\r\n <div class=\"title\" *ngIf=\"!isArabic\">{{ item.labelEn }}</div>\r\n <div class=\"title\" *ngIf=\"isArabic\">{{ item.labelAr }}</div>\r\n <ng-container [ngSwitch]=\"item?.type\">\r\n <ng-container *ngSwitchCase=\"'vocabulary'\">\r\n <div class=\"value\">{{ 'vocabulary.' + item.customOptions.vocId + '.' + item.value | translate}}</div> \r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'toggle'\">\r\n <div class=\"value\">{{ '' + item.value | translate}}</div> \r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"value\">{{ item.value}}</div> \r\n </ng-container>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dynamic-fields-values .fields-title{font-size:14px;font-weight:bold}.dynamic-fields-values .values-wrapper{border:1px solid #d9dce2;padding:5px 10px}.dynamic-fields-values .values-wrapper .single-field-value{padding:10px 0;display:flex;border-bottom:1px solid #e2e6ec}.dynamic-fields-values .values-wrapper .single-field-value .title{font-size:12px;font-weight:500;width:140px;word-break:break-word}.dynamic-fields-values .values-wrapper .single-field-value .value{font-size:12px;width:calc(100% - 140px);word-break:break-word}.dynamic-fields-values .values-wrapper .single-field-value:last-child{border-bottom:none}\n"], directives: [{ type: i3__namespace$1.
|
|
10842
|
+
DynamicFormViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DynamicFormViewerComponent, selector: "cts-dynamic-form-viewer", inputs: { form: "form", data: "data", classType: "classType" }, ngImport: i0__namespace, template: "<div class=\"dynamic-fields-values\">\r\n <div class=\"fields-title\">\r\n {{ \"CREATE.CORRESP_FORM_VIEWER\" | translate }}\r\n </div>\r\n <div class=\"values-wrapper\">\r\n <div class=\"mx-1 mb-2 class-type-title\" *ngIf=\"classType\">{{\"vocabulary.VOC_CorrespondenceClass.\" + classType |\r\n translate}}</div>\r\n <div class=\"single-field-value\" *ngFor=\"let item of list\">\r\n <div class=\"title\" *ngIf=\"!isArabic\">{{ item.labelEn }}</div>\r\n <div class=\"title\" *ngIf=\"isArabic\">{{ item.labelAr }}</div>\r\n <ng-container [ngSwitch]=\"item?.type\">\r\n <ng-container *ngSwitchCase=\"'vocabulary'\">\r\n <div class=\"value\">{{ 'vocabulary.' + item.customOptions.vocId + '.' + item.value | translate}}</div> \r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'toggle'\">\r\n <div class=\"value\">{{ '' + item.value | translate}}</div> \r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"value\">{{ item.value}}</div> \r\n </ng-container>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".dynamic-fields-values .fields-title{font-size:14px;font-weight:bold}.dynamic-fields-values .values-wrapper{border:1px solid #d9dce2;padding:5px 10px}.dynamic-fields-values .values-wrapper .class-type-title{font-size:14px}.dynamic-fields-values .values-wrapper .single-field-value{padding:10px 0;display:flex;border-bottom:1px solid #e2e6ec}.dynamic-fields-values .values-wrapper .single-field-value .title{font-size:12px;font-weight:500;width:140px;word-break:break-word}.dynamic-fields-values .values-wrapper .single-field-value .value{font-size:12px;width:calc(100% - 140px);word-break:break-word}.dynamic-fields-values .values-wrapper .single-field-value:last-child{border-bottom:none}\n"], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3__namespace$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], pipes: { "translate": i1__namespace$1.TranslatePipe } });
|
|
10842
10843
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: DynamicFormViewerComponent, decorators: [{
|
|
10843
10844
|
type: i0.Component,
|
|
10844
10845
|
args: [{
|
|
@@ -10850,6 +10851,8 @@
|
|
|
10850
10851
|
type: i0.Input
|
|
10851
10852
|
}], data: [{
|
|
10852
10853
|
type: i0.Input
|
|
10854
|
+
}], classType: [{
|
|
10855
|
+
type: i0.Input
|
|
10853
10856
|
}] } });
|
|
10854
10857
|
|
|
10855
10858
|
var UserSelectorWrapperComponent = /** @class */ (function () {
|
|
@@ -16945,7 +16948,7 @@
|
|
|
16945
16948
|
};
|
|
16946
16949
|
// if there tenant id sent from outside then add it to the params
|
|
16947
16950
|
if (this.tenantId) {
|
|
16948
|
-
params['queryParams'] = "
|
|
16951
|
+
params['queryParams'] = "" + this.tenantId;
|
|
16949
16952
|
}
|
|
16950
16953
|
return this.callApi
|
|
16951
16954
|
.query(params, {
|
|
@@ -16983,7 +16986,7 @@
|
|
|
16983
16986
|
};
|
|
16984
16987
|
// if there tenant id sent from outside then add it to the params
|
|
16985
16988
|
if (this.tenantId) {
|
|
16986
|
-
outgoingParams['queryParams'] = "
|
|
16989
|
+
outgoingParams['queryParams'] = "" + this.tenantId;
|
|
16987
16990
|
}
|
|
16988
16991
|
var getOutgoing$ = this.callApi
|
|
16989
16992
|
.query(outgoingParams, {
|
|
@@ -17019,7 +17022,7 @@
|
|
|
17019
17022
|
};
|
|
17020
17023
|
// if there tenant id sent from outside then add it to the params
|
|
17021
17024
|
if (this.tenantId) {
|
|
17022
|
-
incomingParams['queryParams'] = "
|
|
17025
|
+
incomingParams['queryParams'] = "" + this.tenantId;
|
|
17023
17026
|
}
|
|
17024
17027
|
var getIncoming$ = this.callApi
|
|
17025
17028
|
.query(incomingParams, {
|
|
@@ -17055,7 +17058,7 @@
|
|
|
17055
17058
|
};
|
|
17056
17059
|
// if there tenant id sent from outside then add it to the params
|
|
17057
17060
|
if (this.tenantId) {
|
|
17058
|
-
internalParams['queryParams'] = "
|
|
17061
|
+
internalParams['queryParams'] = "" + this.tenantId;
|
|
17059
17062
|
}
|
|
17060
17063
|
var getInternal$ = this.callApi
|
|
17061
17064
|
.query(internalParams, {
|
|
@@ -17129,7 +17132,7 @@
|
|
|
17129
17132
|
}
|
|
17130
17133
|
// if there tenant id sent from outside then add it to the params
|
|
17131
17134
|
if (this.tenantId) {
|
|
17132
|
-
queryParams['queryParams'] = "
|
|
17135
|
+
queryParams['queryParams'] = "" + this.tenantId;
|
|
17133
17136
|
}
|
|
17134
17137
|
this.router.navigate(['report', 'chart-details'], {
|
|
17135
17138
|
queryParams: queryParams,
|
|
@@ -20006,9 +20009,10 @@
|
|
|
20006
20009
|
}] } });
|
|
20007
20010
|
|
|
20008
20011
|
var CorrespondenceRelationCreateFormComponent = /** @class */ (function () {
|
|
20009
|
-
function CorrespondenceRelationCreateFormComponent(_formBuilder, corressvc, dialogRef, data) {
|
|
20012
|
+
function CorrespondenceRelationCreateFormComponent(_formBuilder, corressvc, toastr, dialogRef, data) {
|
|
20010
20013
|
this._formBuilder = _formBuilder;
|
|
20011
20014
|
this.corressvc = corressvc;
|
|
20015
|
+
this.toastr = toastr;
|
|
20012
20016
|
this.dialogRef = dialogRef;
|
|
20013
20017
|
this.data = data;
|
|
20014
20018
|
this.visible = true;
|
|
@@ -20025,10 +20029,24 @@
|
|
|
20025
20029
|
}
|
|
20026
20030
|
/**dialog actions */
|
|
20027
20031
|
CorrespondenceRelationCreateFormComponent.prototype.onSaveClick = function () {
|
|
20028
|
-
this
|
|
20029
|
-
|
|
20030
|
-
|
|
20032
|
+
var _this = this;
|
|
20033
|
+
this.corressvc
|
|
20034
|
+
.create_Named_Relation(this.data.corr_id, this.createform.value.relationname, this.related_corr.map(function (corre) { return corre.id; }))
|
|
20035
|
+
.subscribe(function (data) {
|
|
20036
|
+
if (data) {
|
|
20037
|
+
_this.corressvc.getUpdatedRelation.next();
|
|
20038
|
+
_this.toastr.show('success', 'success', 'Realation Successfuly added');
|
|
20039
|
+
_this.dialogRef.close(true);
|
|
20040
|
+
}
|
|
20041
|
+
}, function (err) {
|
|
20042
|
+
_this.toastr.show('error', 'error', err.ret.message ?
|
|
20043
|
+
"errors." + err.ret.code
|
|
20044
|
+
: 'genericError');
|
|
20031
20045
|
});
|
|
20046
|
+
// this.dialogRef.close({
|
|
20047
|
+
// docs: this.related_corr.map((corre) => corre.id),
|
|
20048
|
+
// relationname: this.createform.value.relationname,
|
|
20049
|
+
// });
|
|
20032
20050
|
};
|
|
20033
20051
|
CorrespondenceRelationCreateFormComponent.prototype.onCloseoClick = function () {
|
|
20034
20052
|
this.dialogRef.close();
|
|
@@ -20108,7 +20126,7 @@
|
|
|
20108
20126
|
};
|
|
20109
20127
|
return CorrespondenceRelationCreateFormComponent;
|
|
20110
20128
|
}());
|
|
20111
|
-
CorrespondenceRelationCreateFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CorrespondenceRelationCreateFormComponent, deps: [{ token: i6__namespace.FormBuilder }, { token: CorrespondenceRelationService }, { token: i1__namespace$5.MatDialogRef }, { token: i1$5.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
20129
|
+
CorrespondenceRelationCreateFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CorrespondenceRelationCreateFormComponent, deps: [{ token: i6__namespace.FormBuilder }, { token: CorrespondenceRelationService }, { token: CustomToastrService }, { token: i1__namespace$5.MatDialogRef }, { token: i1$5.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
20112
20130
|
CorrespondenceRelationCreateFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CorrespondenceRelationCreateFormComponent, selector: "cts-correspondence-relation-create-form", viewQueries: [{ propertyName: "auto", first: true, predicate: ["auto"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"correspondence-relation-container\" SetDirRtl style=\"height: 80%; width: 100%\">\r\n <div class=\"correspondence-relation-title\">\r\n {{ \"correspondence-relation.add\" | translate }}\r\n </div>\r\n <!-- <mat-divider></mat-divider> -->\r\n <div mat-dialog-content [formGroup]=\"createform\">\r\n <div class=\"vocabulary-list\">\r\n <app-dynamic-form-vocabulary-item\r\n [label]=\"'correspondence-relation.relation-type'\"\r\n [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\"\r\n placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\"\r\n [multiple]=\"false\"\r\n [searchable]=\"false\"\r\n [closeOnSelect]=\"true\"\r\n [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_CorrespondenceRelationsNames'\"\r\n formControlName=\"relationname\"\r\n (onSelecting)=\"reset()\"\r\n >\r\n </app-dynamic-form-vocabulary-item>\r\n </div>\r\n\r\n <div class=\"search-container\" *ngIf=\"createform.value.relationname\">\r\n <ng-autocomplete\r\n #auto\r\n [data]=\"documentList\"\r\n [searchKeyword]=\"'filter'\"\r\n (selected)=\"selectItem($event)\"\r\n (inputChanged)=\"onSearchInputChange($event)\"\r\n [customFilter]=\"disableFilter\"\r\n (closed)=\"keep_Autocomplete_Results_Open()\"\r\n [itemTemplate]=\"itemTemplate\"\r\n [notFoundTemplate]=\"notFoundTemplate\"\r\n [placeholder]=\"'correspondence-relation.searchby' | translate\"\r\n [debounceTime]=\"1000\"\r\n [isLoading]=\"isLoading\"\r\n (inputCleared)=\"inputCleared()\"\r\n >\r\n </ng-autocomplete>\r\n\r\n <ng-template #itemTemplate let-item>\r\n <div class=\"item\">\r\n <span>{{ item.title }}</span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #notFoundTemplate>\r\n <div>{{ \"correspondence-relation.notfound\" | translate }}</div>\r\n </ng-template>\r\n\r\n <div class=\"chip-list\" *ngIf=\"related_corr.length > 0\">\r\n <mat-chip-list #chipList aria-label=\"corr selection\">\r\n <mat-chip\r\n *ngFor=\"let corr of related_corr\"\r\n [selectable]=\"selectable\"\r\n [removable]=\"removable\"\r\n (removed)=\"on_remove_relation_Chip(corr)\"\r\n >\r\n {{ corr.title }}\r\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n </div>\r\n <div class=\"exist-relation\">\r\n <span *ngIf=\"exist\">\r\n {{ \"correspondence-relation.exist\" | translate }}</span\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"button-group d-flex flex-row-reverse\">\r\n <cts-button\r\n [theme]=\"'danger'\"\r\n size=\"'regular'\"\r\n class=\"voc-form-close\"\r\n mat-dialog-close\r\n >\r\n {{ \"BUTTONS.CLOSE\" | translate }}\r\n </cts-button>\r\n <cts-button\r\n (onClick)=\"onSaveClick()\"\r\n [theme]=\"'primary'\"\r\n size=\"'regular'\"\r\n [disabled]=\"\r\n !this.createform.controls.relationname.valid || related_corr.length == 0\r\n \"\r\n >\r\n {{ \"correspondence-relation.save\" | translate }}\r\n </cts-button>\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}.correspondence-relation-container{padding:20px}.correspondence-relation-container .correspondence-relation-title{margin-bottom:8px;font-size:20px;color:#465573}.correspondence-relation-container .mat-dialog-content{height:100%;width:100%}.correspondence-relation-container .button-group{margin-top:12px;grid-column-gap:6px!important;column-gap:6px!important}.correspondence-relation-container .button-group cts-button{width:16%}@media (max-width: 992px){.correspondence-relation-container .button-group cts-button{width:20%}}@media only screen and (max-width: 768px){.correspondence-relation-container .button-group cts-button{width:28%}}.correspondence-relation-container .item{margin:1px;padding:8px 10px;font-size:.75rem}.correspondence-relation-container .dialog-actions button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:70px;border-radius:3px}.correspondence-relation-container .dialog-actions button:disabled{opacity:.4;cursor:not-allowed}.correspondence-relation-container .dialog-actions button:hover{opacity:.7}.correspondence-relation-container .autocomplete-container .suggestions-container ul{max-height:150px!important}.correspondence-relation-container .autocomplete-container .suggestions-container{height:150px!important;margin-top:10px;max-height:150px!important;border:1px lightgray solid!important;box-shadow:none!important}.correspondence-relation-container .search-container{position:relative}.correspondence-relation-container .chip-list{max-height:150px;border:1px lightgray solid;overflow:scroll;padding:10px;margin-bottom:10px;top:215px;position:absolute;width:100%}.correspondence-relation-container .chip-list .mat-standard-chip{border-radius:5px!important}.correspondence-relation-container .chip-list .mat-chip.mat-standard-chip{background-color:#8f98aa1a!important;height:auto}.correspondence-relation-container .autocomplete-container{box-shadow:none!important}.correspondence-relation-container .autocomplete-container .input-container input{background-color:#8f98aa1a!important;padding:10px!important}.correspondence-relation-container .exist-relation{background-color:#f8d7da!important;color:#842029!important;border-color:#f5c2c7!important;position:absolute;width:100%;top:300px}.correspondence-relation-container .autocomplete-container .suggestions-container .complete-selected,.correspondence-relation-container .autocomplete-container .suggestions-container ul li:hover{background-color:#8f98aa1a!important}.correspondence-relation-container .vocabulary-list{margin-bottom:10px}.correspondence-relation-container .vocabulary-list .mat-error{display:none!important}.correspondence-relation-container .mat-dialog-content{margin:3px 0 0!important;padding:0!important}[dir=rtl] .input-container input{direction:rtl}[dir=rtl] .x{left:10px;right:auto!important}\n"], components: [{ type: DynamicFormVocabularyItemComponent, selector: "app-dynamic-form-vocabulary-item", inputs: ["bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "vocabularyType", "label", "cacheable", "shwoAllValues"], outputs: ["onSelecting"] }, { type: i3__namespace$2.AutocompleteComponent, selector: "ng-autocomplete", inputs: ["data", "placeholder", "heading", "historyHeading", "historyListMaxNumber", "notFoundText", "minQueryLength", "focusFirst", "disabled", "searchKeyword", "initialValue", "historyIdentifier", "isLoading", "debounceTime", "customFilter", "itemTemplate", "notFoundTemplate"], outputs: ["selected", "inputChanged", "inputFocused", "inputCleared", "opened", "closed", "scrolledToEnd"] }, { type: i7__namespace$3.MatChipList, selector: "mat-chip-list", inputs: ["aria-orientation", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "selectable", "tabIndex", "errorStateMatcher"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { type: i2__namespace$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: ButtonComponent, selector: "cts-button", inputs: ["disabled", "loading", "size", "theme", "spinnerTheming"], outputs: ["onClick"] }], directives: [{ type: SetDirRtlDirective, selector: "[SetDirRtl]" }, { type: i1__namespace$5.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace$3.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { type: i7__namespace$3.MatChipRemove, selector: "[matChipRemove]" }, { type: i1__namespace$5.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "translate": i1__namespace$1.TranslatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
20113
20131
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CorrespondenceRelationCreateFormComponent, decorators: [{
|
|
20114
20132
|
type: i0.Component,
|
|
@@ -20119,7 +20137,7 @@
|
|
|
20119
20137
|
encapsulation: i0.ViewEncapsulation.None,
|
|
20120
20138
|
}]
|
|
20121
20139
|
}], ctorParameters: function () {
|
|
20122
|
-
return [{ type: i6__namespace.FormBuilder }, { type: CorrespondenceRelationService }, { type: i1__namespace$5.MatDialogRef }, { type: undefined, decorators: [{
|
|
20140
|
+
return [{ type: i6__namespace.FormBuilder }, { type: CorrespondenceRelationService }, { type: CustomToastrService }, { type: i1__namespace$5.MatDialogRef }, { type: undefined, decorators: [{
|
|
20123
20141
|
type: i0.Inject,
|
|
20124
20142
|
args: [i1$5.MAT_DIALOG_DATA]
|
|
20125
20143
|
}] }];
|
|
@@ -20218,6 +20236,7 @@
|
|
|
20218
20236
|
data = {
|
|
20219
20237
|
exist_relations_list: this.relations_list.value,
|
|
20220
20238
|
correspondance: this.correspondance,
|
|
20239
|
+
corr_id: this.corr_id,
|
|
20221
20240
|
};
|
|
20222
20241
|
else
|
|
20223
20242
|
data = { exist_relations_list: [] };
|
|
@@ -20231,17 +20250,26 @@
|
|
|
20231
20250
|
var dialogRef = this.dialog.open(CorrespondenceRelationCreateFormComponent, dialogConfig);
|
|
20232
20251
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
20233
20252
|
if (result) {
|
|
20234
|
-
_this.
|
|
20235
|
-
|
|
20236
|
-
|
|
20237
|
-
|
|
20238
|
-
|
|
20239
|
-
|
|
20240
|
-
|
|
20241
|
-
|
|
20242
|
-
|
|
20243
|
-
|
|
20244
|
-
|
|
20253
|
+
_this.reload = true;
|
|
20254
|
+
// this.corrrelationsvc
|
|
20255
|
+
// .create_Named_Relation(this.corr_id, result.relationname, result.docs)
|
|
20256
|
+
// .subscribe(
|
|
20257
|
+
// (data) => {
|
|
20258
|
+
// this.reload = true;
|
|
20259
|
+
// this.corrrelationsvc.getUpdatedRelation.next();
|
|
20260
|
+
// this.toastr.show(
|
|
20261
|
+
// 'success',
|
|
20262
|
+
// 'success',
|
|
20263
|
+
// 'Realation Successfuly added'
|
|
20264
|
+
// );
|
|
20265
|
+
// },
|
|
20266
|
+
// (err) => {
|
|
20267
|
+
// this.toastr.show('error', 'error',
|
|
20268
|
+
// err.ret.message ?
|
|
20269
|
+
// `errors.${err.ret.code}`
|
|
20270
|
+
// : 'genericError');
|
|
20271
|
+
// }
|
|
20272
|
+
// );
|
|
20245
20273
|
}
|
|
20246
20274
|
});
|
|
20247
20275
|
};
|