nuxeo-development-framework 6.2.11 → 6.2.12
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 +40 -4
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +23 -1
- package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +19 -5
- package/esm2015/lib/components/reports/ndf-reports/directives/empty-content-template.directive.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/directives/header-panel-template.directive.js +1 -1
- package/esm2015/lib/components/tables/shared/index.js +1 -1
- package/fesm2015/nuxeo-development-framework.js +40 -4
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9843,6 +9843,28 @@
|
|
|
9843
9843
|
},
|
|
9844
9844
|
});
|
|
9845
9845
|
};
|
|
9846
|
+
DepartmentApiService.prototype.getObsoletDepartmentDetails = function (code, customPageProvider) {
|
|
9847
|
+
var params = {
|
|
9848
|
+
pageProvider: 'PP_Department_WithObsolete_ElasticSearch',
|
|
9849
|
+
currentPageIndex: 0,
|
|
9850
|
+
offset: 0,
|
|
9851
|
+
pageSize: 40,
|
|
9852
|
+
dublincore_title: code,
|
|
9853
|
+
};
|
|
9854
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
9855
|
+
params['queryParams'] = this.globalAdminService.activeTenant;
|
|
9856
|
+
}
|
|
9857
|
+
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
9858
|
+
params['queryParams'] = this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
9859
|
+
}
|
|
9860
|
+
return this.CallApiService.query(Object.assign({}, params), {
|
|
9861
|
+
headers: {
|
|
9862
|
+
'X-NXproperties': '*',
|
|
9863
|
+
'enrichers-document': 'children',
|
|
9864
|
+
depth: 'max',
|
|
9865
|
+
},
|
|
9866
|
+
});
|
|
9867
|
+
};
|
|
9846
9868
|
DepartmentApiService.prototype.getDepartmentNestedTree = function (code, customPageProvider, customParentCodeProperty) {
|
|
9847
9869
|
var params = {};
|
|
9848
9870
|
customParentCodeProperty ? (params[customParentCodeProperty] = code) : (params = { 'department_parentDepartmentCode': code });
|
|
@@ -14100,10 +14122,24 @@
|
|
|
14100
14122
|
});
|
|
14101
14123
|
}
|
|
14102
14124
|
else {
|
|
14103
|
-
_this.
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14125
|
+
_this.DepartmentApiService.getObsoletDepartmentDetails(_this.value).subscribe(function (res) {
|
|
14126
|
+
var _a, _b, _c, _d;
|
|
14127
|
+
if (res.entries.length > 0) {
|
|
14128
|
+
_this.departmentName = _this.isArabic
|
|
14129
|
+
? (_a = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _a === void 0 ? void 0 : _a.properties['dept:arabicName']
|
|
14130
|
+
: (_b = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _b === void 0 ? void 0 : _b.properties['dept:englishName'];
|
|
14131
|
+
_this.dynamicViewService.setDataToStorag(_this.value, {
|
|
14132
|
+
arabicName: (_c = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _c === void 0 ? void 0 : _c.properties['dept:arabicName'],
|
|
14133
|
+
englishName: (_d = res === null || res === void 0 ? void 0 : res.entries[0]) === null || _d === void 0 ? void 0 : _d.properties['dept:englishName']
|
|
14134
|
+
});
|
|
14135
|
+
}
|
|
14136
|
+
else {
|
|
14137
|
+
_this.departmentName = _this.value;
|
|
14138
|
+
_this.dynamicViewService.setDataToStorag(_this.value, {
|
|
14139
|
+
arabicName: _this.departmentName,
|
|
14140
|
+
englishName: _this.departmentName
|
|
14141
|
+
});
|
|
14142
|
+
}
|
|
14107
14143
|
});
|
|
14108
14144
|
}
|
|
14109
14145
|
}, function (err) {
|