@eo-sdk/client 10.6.9 → 10.6.11
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-client/about-state/about-state.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts.map +1 -1
- package/app/eo-framework/form-elements/datetime-range/datetime-range.component.d.ts.map +1 -1
- package/app/eo-framework/object-details/object-details.component.d.ts +1 -0
- package/app/eo-framework/object-details/object-details.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.d.ts.map +1 -1
- package/app/eo-framework/util/services/utilities.service.d.ts +190 -0
- package/app/eo-framework/util/services/utilities.service.d.ts.map +1 -1
- package/esm2020/app/eo-client/about-state/about-state.component.mjs +3 -3
- package/esm2020/app/eo-framework/actions/actions/custom-actions/custom-actions.component.mjs +3 -3
- package/esm2020/app/eo-framework/app-shell/app-bar/app-search/app-search.component.mjs +3 -2
- package/esm2020/app/eo-framework/form-elements/datetime-range/datetime-range.component.mjs +7 -5
- package/esm2020/app/eo-framework/grid/grid.component.mjs +2 -2
- package/esm2020/app/eo-framework/object-details/object-details.component.mjs +14 -7
- package/esm2020/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.mjs +4 -4
- package/esm2020/app/eo-framework/object-form/object-form/object-form-script/object-form-scripting-scope.mjs +7 -7
- package/esm2020/app/eo-framework/object-form/object-form/object-form.component.mjs +3 -3
- package/esm2020/app/eo-framework/quick-search/quick-search/quick-search.component.mjs +3 -3
- package/esm2020/app/eo-framework/util/services/utilities.service.mjs +4 -1
- package/esm2020/projects/eo-sdk/core/lib/service/backend/backend.service.mjs +7 -5
- package/esm2020/projects/eo-sdk/core/lib/service/system/system.service.mjs +4 -4
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs +9 -7
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2015/eo-sdk-client.mjs +62 -50
- package/fesm2015/eo-sdk-client.mjs.map +1 -1
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs +9 -7
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2020/eo-sdk-client.mjs +62 -50
- package/fesm2020/eo-sdk-client.mjs.map +1 -1
- package/misc/scripts/prebuild-about-state.js +2 -3
- package/package.json +3 -3
- package/projects/eo-sdk/core/lib/service/backend/backend.service.d.ts.map +1 -1
|
@@ -12,7 +12,7 @@ import { EMPTY, throwError, Subject, of, forkJoin, Observable, ReplaySubject, Be
|
|
|
12
12
|
import { filter, map, tap, finalize, shareReplay, debounceTime, switchMap, first, catchError, expand, skipWhile, mergeMap, takeUntil } from 'rxjs/operators';
|
|
13
13
|
import { DatePipe, registerLocaleData } from '@angular/common';
|
|
14
14
|
import moment from 'moment';
|
|
15
|
-
import
|
|
15
|
+
import { cloneDeep } from 'lodash-es';
|
|
16
16
|
import * as FileSaver from 'file-saver';
|
|
17
17
|
import * as i1$2 from '@ngx-pwa/local-storage';
|
|
18
18
|
import localeDeCh from '@angular/common/locales/de-CH';
|
|
@@ -1742,7 +1742,7 @@ class BackendService {
|
|
|
1742
1742
|
const item = dmsObjects[0];
|
|
1743
1743
|
if (dmsObjects.length === 1) {
|
|
1744
1744
|
if (item.content) {
|
|
1745
|
-
let uri =
|
|
1745
|
+
let uri = `/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
|
|
1746
1746
|
if (rendition) {
|
|
1747
1747
|
uri += `&rendition=${rendition}&_intent=DOWNLOAD_${rendition}`;
|
|
1748
1748
|
}
|
|
@@ -1759,7 +1759,7 @@ class BackendService {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
1761
|
if (dmsObjects.length > 1) {
|
|
1762
|
-
let uri =
|
|
1762
|
+
let uri = '/dms/batch/export';
|
|
1763
1763
|
if (item.content) {
|
|
1764
1764
|
const expressions = dmsObjects.map(obj => obj.content.id);
|
|
1765
1765
|
const data = {
|
|
@@ -1779,13 +1779,15 @@ class BackendService {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
1781
|
download(uri, version) {
|
|
1782
|
-
|
|
1782
|
+
const baseUri = this.getContextPath();
|
|
1783
|
+
this.http.get(`${baseUri}${uri}`, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
|
|
1783
1784
|
.subscribe((res) => {
|
|
1784
1785
|
FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
|
|
1785
1786
|
});
|
|
1786
1787
|
}
|
|
1787
1788
|
downloadMulti(uri, version, _body) {
|
|
1788
|
-
|
|
1789
|
+
const baseUri = this.getContextPath();
|
|
1790
|
+
this.http.post(`${baseUri}${uri}`, _body, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
|
|
1789
1791
|
.subscribe((res) => {
|
|
1790
1792
|
FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
|
|
1791
1793
|
});
|
|
@@ -2042,7 +2044,7 @@ class SystemService {
|
|
|
2042
2044
|
}
|
|
2043
2045
|
if (cachedForm) {
|
|
2044
2046
|
/** return a clone of the cached model as otherwise model changes will be added to the chached model */
|
|
2045
|
-
return of(
|
|
2047
|
+
return of(cloneDeep(cachedForm));
|
|
2046
2048
|
}
|
|
2047
2049
|
else {
|
|
2048
2050
|
let uri = `/ui/form/${objectTypeName}?situation=${situation}`;
|
|
@@ -2050,7 +2052,7 @@ class SystemService {
|
|
|
2050
2052
|
/** fetch and cache the requested form, if no cached version was found */
|
|
2051
2053
|
return this.backend.getViaTempCache(uri, () => this.backend
|
|
2052
2054
|
.getJson(uri)
|
|
2053
|
-
.pipe(tap((model) => this.objectTypeForms.push(
|
|
2055
|
+
.pipe(tap((model) => this.objectTypeForms.push(cloneDeep(model)))));
|
|
2054
2056
|
}
|
|
2055
2057
|
}
|
|
2056
2058
|
/**
|