nuxeo-development-framework 3.5.6 → 3.5.7
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 +17 -14
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- 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 +17 -14
- package/fesm2015/nuxeo-development-framework.js.map +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,
|