@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.
Files changed (32) hide show
  1. package/app/eo-client/about-state/about-state.component.d.ts.map +1 -1
  2. package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts.map +1 -1
  3. package/app/eo-framework/form-elements/datetime-range/datetime-range.component.d.ts.map +1 -1
  4. package/app/eo-framework/object-details/object-details.component.d.ts +1 -0
  5. package/app/eo-framework/object-details/object-details.component.d.ts.map +1 -1
  6. package/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.d.ts.map +1 -1
  7. package/app/eo-framework/util/services/utilities.service.d.ts +190 -0
  8. package/app/eo-framework/util/services/utilities.service.d.ts.map +1 -1
  9. package/esm2020/app/eo-client/about-state/about-state.component.mjs +3 -3
  10. package/esm2020/app/eo-framework/actions/actions/custom-actions/custom-actions.component.mjs +3 -3
  11. package/esm2020/app/eo-framework/app-shell/app-bar/app-search/app-search.component.mjs +3 -2
  12. package/esm2020/app/eo-framework/form-elements/datetime-range/datetime-range.component.mjs +7 -5
  13. package/esm2020/app/eo-framework/grid/grid.component.mjs +2 -2
  14. package/esm2020/app/eo-framework/object-details/object-details.component.mjs +14 -7
  15. package/esm2020/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.mjs +4 -4
  16. package/esm2020/app/eo-framework/object-form/object-form/object-form-script/object-form-scripting-scope.mjs +7 -7
  17. package/esm2020/app/eo-framework/object-form/object-form/object-form.component.mjs +3 -3
  18. package/esm2020/app/eo-framework/quick-search/quick-search/quick-search.component.mjs +3 -3
  19. package/esm2020/app/eo-framework/util/services/utilities.service.mjs +4 -1
  20. package/esm2020/projects/eo-sdk/core/lib/service/backend/backend.service.mjs +7 -5
  21. package/esm2020/projects/eo-sdk/core/lib/service/system/system.service.mjs +4 -4
  22. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs +9 -7
  23. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
  24. package/fesm2015/eo-sdk-client.mjs +62 -50
  25. package/fesm2015/eo-sdk-client.mjs.map +1 -1
  26. package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs +9 -7
  27. package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
  28. package/fesm2020/eo-sdk-client.mjs +62 -50
  29. package/fesm2020/eo-sdk-client.mjs.map +1 -1
  30. package/misc/scripts/prebuild-about-state.js +2 -3
  31. package/package.json +3 -3
  32. 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 * as _ from 'lodash';
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';
@@ -1750,7 +1750,7 @@ class BackendService {
1750
1750
  const item = dmsObjects[0];
1751
1751
  if (dmsObjects.length === 1) {
1752
1752
  if (item.content) {
1753
- let uri = `${this.getServiceBase()}/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
1753
+ let uri = `/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
1754
1754
  if (rendition) {
1755
1755
  uri += `&rendition=${rendition}&_intent=DOWNLOAD_${rendition}`;
1756
1756
  }
@@ -1767,7 +1767,7 @@ class BackendService {
1767
1767
  }
1768
1768
  }
1769
1769
  if (dmsObjects.length > 1) {
1770
- let uri = `${this.getServiceBase()}/dms/batch/export`;
1770
+ let uri = '/dms/batch/export';
1771
1771
  if (item.content) {
1772
1772
  const expressions = dmsObjects.map(obj => obj.content.id);
1773
1773
  const data = {
@@ -1787,13 +1787,15 @@ class BackendService {
1787
1787
  }
1788
1788
  }
1789
1789
  download(uri, version) {
1790
- this.http.get(uri, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1790
+ const baseUri = this.getContextPath();
1791
+ this.http.get(`${baseUri}${uri}`, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1791
1792
  .subscribe((res) => {
1792
1793
  FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
1793
1794
  });
1794
1795
  }
1795
1796
  downloadMulti(uri, version, _body) {
1796
- this.http.post(uri, _body, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1797
+ const baseUri = this.getContextPath();
1798
+ this.http.post(`${baseUri}${uri}`, _body, { observe: 'response', responseType: 'blob', withCredentials: this.coreConfig.withCredentials })
1797
1799
  .subscribe((res) => {
1798
1800
  FileSaver.saveAs(res.body, this.getFileNameFromHttpResponse(res, version));
1799
1801
  });
@@ -2048,7 +2050,7 @@ class SystemService {
2048
2050
  }
2049
2051
  if (cachedForm) {
2050
2052
  /** return a clone of the cached model as otherwise model changes will be added to the chached model */
2051
- return of(_.cloneDeep(cachedForm));
2053
+ return of(cloneDeep(cachedForm));
2052
2054
  }
2053
2055
  else {
2054
2056
  let uri = `/ui/form/${objectTypeName}?situation=${situation}`;
@@ -2056,7 +2058,7 @@ class SystemService {
2056
2058
  /** fetch and cache the requested form, if no cached version was found */
2057
2059
  return this.backend.getViaTempCache(uri, () => this.backend
2058
2060
  .getJson(uri)
2059
- .pipe(tap((model) => this.objectTypeForms.push(_.cloneDeep(model)))));
2061
+ .pipe(tap((model) => this.objectTypeForms.push(cloneDeep(model)))));
2060
2062
  }
2061
2063
  }
2062
2064
  /**