@eo-sdk/client 8.13.0-rc.1 → 8.14.0-rc.1
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/app/eo-framework/form-elements/id-reference/reference-finder-entry/reference-finder-entry.component.d.ts +0 -1
- package/assets/_default/i18n/de.json +1 -0
- package/assets/_default/i18n/en.json +1 -0
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +40 -8
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +33 -27
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-client/settings/settings.component.js +7 -2
- package/esm2015/app/eo-framework/app-shell/app-bar/app-process/app-process.component.js +17 -14
- package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +2 -2
- package/esm2015/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.js +1 -1
- package/esm2015/app/eo-framework/form-elements/id-reference/id-reference.component.js +3 -3
- package/esm2015/app/eo-framework/form-elements/id-reference/reference-finder-entry/reference-finder-entry.component.js +2 -5
- package/esm2015/app/eo-framework/form-elements/id-reference/service/reference-finder.service.js +2 -2
- package/esm2015/app/eo-framework/form-elements/organization/organization.component.js +1 -1
- package/esm2015/app/eo-framework/grid/filters/organization-filter.component.js +1 -1
- package/esm2015/projects/eo-sdk/core/lib/service/bpm/bpm.service.js +32 -8
- package/esm2015/projects/eo-sdk/core/lib/service/config/config.service.js +9 -1
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +39 -7
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +32 -27
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
- package/projects/eo-sdk/core/lib/service/bpm/bpm.service.d.ts +6 -1
- package/projects/eo-sdk/core/lib/service/config/config.service.d.ts +5 -0
- package/projects/eo-sdk/core/package.json +1 -1
- package/scss/_form.scss +1 -0
- package/styles.css +6 -0
|
@@ -589,6 +589,14 @@ class Config {
|
|
|
589
589
|
getClientLocales() {
|
|
590
590
|
return this.cfg['languages'];
|
|
591
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* Getter for the supported client locales
|
|
594
|
+
* @returns supported client locales
|
|
595
|
+
*/
|
|
596
|
+
getSupportedClientLocales() {
|
|
597
|
+
return ['en', 'de', 'ar', 'es', 'pt', 'fr', 'zh', 'lv', 'ru', 'it', 'nl', 'sk', 'pl', 'uk', 'ja', 'ko', 'hi', 'bn', 'de-CH', 'zh-Hant',
|
|
598
|
+
'th', 'vi', 'en-GB', 'he'];
|
|
599
|
+
}
|
|
592
600
|
/**
|
|
593
601
|
* Get the dashboards background image
|
|
594
602
|
* @returns background image uri for the dashboards background image
|
|
@@ -2726,11 +2734,14 @@ class BpmService {
|
|
|
2726
2734
|
* Getter for the executable Processes. If types are provided, you'll get
|
|
2727
2735
|
* only the processes that are executable for all of them
|
|
2728
2736
|
* @param types List of dms object types to fetch executable processes for
|
|
2737
|
+
* @param useCached If the cached data should be returned rather than requesting again
|
|
2738
|
+
* @param additionalData If the additional form data should be also included
|
|
2739
|
+
* @param modelid The process model ID to only return the data for one process
|
|
2729
2740
|
* @returns List of executable processes
|
|
2730
2741
|
*/
|
|
2731
|
-
getExecutableProcesses(types, useCached) {
|
|
2742
|
+
getExecutableProcesses(types, useCached, additionalData, modelid) {
|
|
2732
2743
|
if (this.capabilities.hasCapability('bpm')) {
|
|
2733
|
-
return (!!this.executableProcesses && useCached) ? of(this.executableProcesses) : this.fetchExecutableProcesses(types);
|
|
2744
|
+
return (!!this.executableProcesses && useCached) ? of(this.executableProcesses) : this.fetchExecutableProcesses(types, additionalData, modelid);
|
|
2734
2745
|
}
|
|
2735
2746
|
else {
|
|
2736
2747
|
return of([]);
|
|
@@ -2747,19 +2758,40 @@ class BpmService {
|
|
|
2747
2758
|
* @returns List of executable processes
|
|
2748
2759
|
*/
|
|
2749
2760
|
getExecutableProcessesForDmsObjects(dmsObjects) {
|
|
2750
|
-
return this.getExecutableProcesses(dmsObjects.map(o => o.typeName));
|
|
2761
|
+
return this.getExecutableProcesses(dmsObjects.map(o => o.typeName), false, true);
|
|
2751
2762
|
}
|
|
2752
2763
|
/**
|
|
2753
2764
|
* Fetches executable Processes from the backend.
|
|
2754
2765
|
* @param types List of dms object types to fetch executable processes for
|
|
2766
|
+
* @param additionalData If the additional form data should be also included
|
|
2767
|
+
* @param modelid The process model ID to only return the data for one process
|
|
2755
2768
|
* @returns List of executable processes
|
|
2756
2769
|
*/
|
|
2757
|
-
fetchExecutableProcesses(types) {
|
|
2758
|
-
let uri = '/bpm/process/executable
|
|
2770
|
+
fetchExecutableProcesses(types, additionalData, modelid) {
|
|
2771
|
+
let uri = '/bpm/process/executable';
|
|
2772
|
+
if (additionalData) {
|
|
2773
|
+
uri += '?form=true&fields=true';
|
|
2774
|
+
}
|
|
2759
2775
|
if (types) {
|
|
2760
|
-
uri +=
|
|
2776
|
+
uri += (additionalData ? '&' : '?') + `type=${types.join(',')}`;
|
|
2761
2777
|
}
|
|
2762
|
-
|
|
2778
|
+
if (modelid) {
|
|
2779
|
+
uri += (additionalData || types ? '&' : '?') + `modelid=${modelid}`;
|
|
2780
|
+
}
|
|
2781
|
+
return this.backend.get(uri).pipe(map(res => res), tap(res => {
|
|
2782
|
+
// Extend existing processes with additional data, instead of overwriting all processes
|
|
2783
|
+
if (additionalData) {
|
|
2784
|
+
res.forEach(proc => {
|
|
2785
|
+
var existingProcIndex = this.executableProcesses.findIndex(item => item.id == proc.id);
|
|
2786
|
+
if (existingProcIndex == -1)
|
|
2787
|
+
this.executableProcesses.push(proc);
|
|
2788
|
+
else
|
|
2789
|
+
this.executableProcesses[existingProcIndex] = proc;
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2792
|
+
else
|
|
2793
|
+
this.executableProcesses = res;
|
|
2794
|
+
}));
|
|
2763
2795
|
}
|
|
2764
2796
|
/**
|
|
2765
2797
|
* Getter for a processes file. The file of a process contains
|