nuxeo-development-framework 4.0.1 → 4.0.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 +24 -1
- 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 +25 -2
- package/fesm2015/nuxeo-development-framework.js +24 -1
- 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
|
@@ -7948,6 +7948,23 @@
|
|
|
7948
7948
|
return treeItem;
|
|
7949
7949
|
});
|
|
7950
7950
|
};
|
|
7951
|
+
DepartmentApiService.prototype.getFullDepartmentTree = function (customPageProvider, customParams) {
|
|
7952
|
+
var obj = customParams ? customParams : {};
|
|
7953
|
+
var params = Object.assign({ pageProvider: customPageProvider ? customPageProvider : 'PP_Department', currentPageIndex: 0, offset: 0, pageSize: 40, quickFilters: 'Parent Dept' }, obj);
|
|
7954
|
+
if (this.globalAdminService.isGlobalAdmin) {
|
|
7955
|
+
params['queryParams'] = this.globalAdminService.activeTenant;
|
|
7956
|
+
}
|
|
7957
|
+
else if (!this.globalAdminService.isGlobalAdmin && this.nuxeoService.nuxeoClient.user.properties.tenantId) {
|
|
7958
|
+
params['queryParams'] = this.nuxeoService.nuxeoClient.user.properties.tenantId;
|
|
7959
|
+
}
|
|
7960
|
+
return this.CallApiService.query(Object.assign({}, params), {
|
|
7961
|
+
headers: {
|
|
7962
|
+
'X-NXproperties': '*',
|
|
7963
|
+
'enrichers-document': 'children',
|
|
7964
|
+
depth: 'max',
|
|
7965
|
+
},
|
|
7966
|
+
});
|
|
7967
|
+
};
|
|
7951
7968
|
return DepartmentApiService;
|
|
7952
7969
|
}());
|
|
7953
7970
|
DepartmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DepartmentApiService, deps: [{ token: CallApiService }, { token: TranslationService }, { token: NuxeoService }, { token: AdapterService }, { token: GlobalAdminService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
@@ -7990,6 +8007,12 @@
|
|
|
7990
8007
|
cacheBusterNotifier: departmentCacheBuster$,
|
|
7991
8008
|
})
|
|
7992
8009
|
], DepartmentApiService.prototype, "updateDepartment", null);
|
|
8010
|
+
__decorate([
|
|
8011
|
+
tsCacheable.Cacheable({
|
|
8012
|
+
cacheBusterObserver: departmentCacheBuster$,
|
|
8013
|
+
storageStrategy: tsCacheable.LocalStorageStrategy
|
|
8014
|
+
})
|
|
8015
|
+
], DepartmentApiService.prototype, "getFullDepartmentTree", null);
|
|
7993
8016
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DepartmentApiService, decorators: [{
|
|
7994
8017
|
type: i0.Injectable,
|
|
7995
8018
|
args: [{
|
|
@@ -8000,7 +8023,7 @@
|
|
|
8000
8023
|
type: i0.Inject,
|
|
8001
8024
|
args: ['environment']
|
|
8002
8025
|
}] }];
|
|
8003
|
-
}, propDecorators: { getDepartmentTree: [], getDepartmentDetails: [], getDepartmentNestedTree: [], createDepartment: [], createDepartmentInRoot: [], updateDepartment: [] } });
|
|
8026
|
+
}, propDecorators: { getDepartmentTree: [], getDepartmentDetails: [], getDepartmentNestedTree: [], createDepartment: [], createDepartmentInRoot: [], updateDepartment: [], getFullDepartmentTree: [] } });
|
|
8004
8027
|
|
|
8005
8028
|
var _DropdownTreeviewSelectI18n_defaultSelection;
|
|
8006
8029
|
/** @ignore */
|