@eo-sdk/client 8.0.1 → 8.3.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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/app/eo-framework/form-elements/id-reference/id-reference.component.d.ts +10 -2
  3. package/app/eo-framework/object-details/object-history/object-history.component.d.ts +3 -2
  4. package/app/eo-framework-core/api/plugins.service.d.ts +3 -2
  5. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +26 -14
  6. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
  7. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
  8. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
  9. package/bundles/eo-sdk-client.umd.js +86 -27
  10. package/bundles/eo-sdk-client.umd.js.map +1 -1
  11. package/bundles/eo-sdk-client.umd.min.js +1 -1
  12. package/bundles/eo-sdk-client.umd.min.js.map +1 -1
  13. package/eo-sdk-client.metadata.json +1 -1
  14. package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
  15. package/esm2015/app/eo-framework/form-elements/datetime/datepicker/datepicker.component.js +2 -2
  16. package/esm2015/app/eo-framework/form-elements/datetime/datetime.component.js +2 -2
  17. package/esm2015/app/eo-framework/form-elements/id-reference/id-reference.component.js +52 -7
  18. package/esm2015/app/eo-framework/inbox-details/inbox-details.component.js +5 -6
  19. package/esm2015/app/eo-framework/object-details/object-history/object-history.component.js +14 -7
  20. package/esm2015/app/eo-framework/object-form/object-form/object-form.component.js +2 -2
  21. package/esm2015/app/eo-framework/process/details/process-details.component.js +6 -9
  22. package/esm2015/app/eo-framework/process/history/process-history.component.js +2 -2
  23. package/esm2015/app/eo-framework-core/api/plugins.service.js +10 -3
  24. package/esm2015/projects/eo-sdk/core/lib/config/translate-json-loader.js +10 -1
  25. package/esm2015/projects/eo-sdk/core/lib/model/dms-object-history.model.js +1 -1
  26. package/esm2015/projects/eo-sdk/core/lib/model/eo-user.model.js +2 -2
  27. package/esm2015/projects/eo-sdk/core/lib/service/bpm/bpm.service.js +1 -1
  28. package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +5 -3
  29. package/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +4 -4
  30. package/esm2015/projects/eo-sdk/core/lib/service/user/user.service.js +7 -6
  31. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +23 -11
  32. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
  33. package/fesm2015/eo-sdk-client.js +82 -28
  34. package/fesm2015/eo-sdk-client.js.map +1 -1
  35. package/package.json +2 -2
  36. package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
  37. package/projects/eo-sdk/core/package.json +1 -1
@@ -19,6 +19,8 @@ import localeFr from '@angular/common/locales/fr';
19
19
  import localeExtraFr from '@angular/common/locales/extra/fr';
20
20
  import localeZh from '@angular/common/locales/zh';
21
21
  import localeExtraZh from '@angular/common/locales/extra/zh';
22
+ import localeZhHant from '@angular/common/locales/zh-Hant';
23
+ import localeExtraZhHant from '@angular/common/locales/extra/zh-Hant';
22
24
  import localeLv from '@angular/common/locales/lv';
23
25
  import localeExtraLv from '@angular/common/locales/extra/lv';
24
26
  import localeRu from '@angular/common/locales/ru';
@@ -41,6 +43,10 @@ import localeHi from '@angular/common/locales/hi';
41
43
  import localeExtraHi from '@angular/common/locales/extra/hi';
42
44
  import localeBn from '@angular/common/locales/bn';
43
45
  import localeExtraBn from '@angular/common/locales/extra/bn';
46
+ import localeVi from '@angular/common/locales/vi';
47
+ import localeExtraVi from '@angular/common/locales/extra/vi';
48
+ import localeTh from '@angular/common/locales/th';
49
+ import localeExtraTh from '@angular/common/locales/extra/th';
44
50
  import * as momentImported from 'moment';
45
51
  import { LocalStorage, StorageMap } from '@ngx-pwa/local-storage';
46
52
  import { saveAs } from 'file-saver';
@@ -123,6 +129,9 @@ class EoxTranslateJsonLoader {
123
129
  registerLocaleData(localeHi, 'hi', localeExtraHi); // Hindi
124
130
  registerLocaleData(localeBn, 'bn', localeExtraBn); // Bengalese
125
131
  registerLocaleData(localeDeCh, 'de-CH', localeExtraDeCh); // German (switzerland)
132
+ registerLocaleData(localeZhHant, 'zh-Hant', localeExtraZhHant); // Chinese (traditional)
133
+ registerLocaleData(localeTh, 'th', localeExtraTh); // Thai
134
+ registerLocaleData(localeVi, 'vi', localeExtraVi); // Vietnamese
126
135
  }
127
136
  /**
128
137
  *
@@ -744,7 +753,7 @@ class EoUser {
744
753
  if (jUser.hasimage === true) {
745
754
  this.imageUri = '/organization/image/' + this.id;
746
755
  }
747
- this.userSettings = json['usersettings'];
756
+ this.userSettings = typeof json['usersettings'] === 'object' ? json['usersettings'] : {};
748
757
  this.schema = {
749
758
  version: jSchema.version,
750
759
  supportedLocales: jSchema.supportedlocales
@@ -1659,12 +1668,13 @@ class UserService {
1659
1668
  this.user.setImageBase(this.backend.getServiceBase());
1660
1669
  this.backend.setHeader('Accept-Language', this.user.getSchemaLocale());
1661
1670
  const languages = this.config.getClientLocales().map(lang => lang.iso);
1662
- const userLang = user.getClientLocale();
1663
- if (languages.indexOf(userLang) !== -1) {
1664
- this.logger.debug('Setting client locale to \'' + userLang + '\'');
1665
- this.translate.use(userLang);
1666
- this.user.uiDirection = (this.config.getClientLocales().find(l => l.iso === userLang) || {}).dir || Direction.LTR;
1671
+ let userLang = user.getClientLocale();
1672
+ if (languages.indexOf(userLang) === -1) {
1673
+ userLang = this.config.getDefaultClientLocale();
1667
1674
  }
1675
+ this.logger.debug('Setting client locale to \'' + userLang + '\'');
1676
+ this.translate.use(userLang);
1677
+ this.user.uiDirection = (this.config.getClientLocales().find(l => l.iso === userLang) || {}).dir || Direction.LTR;
1668
1678
  this.userSource.next(this.user);
1669
1679
  this.favorites = null;
1670
1680
  this.favoritesSource.next(this.favorites);
@@ -4055,13 +4065,15 @@ class DmsService {
4055
4065
  modified: dmsObject.modified,
4056
4066
  lock: !dmsObject.lock ? 'NOT_LOCKED' : dmsObject.lock.by.me ? 'LOCKED_BY_SESSION_USER' : 'LOCKED_BY_OTHER_USER',
4057
4067
  lockinfo: dmsObject.lock ? { username: dmsObject.lock.by.name, usertitle: dmsObject.lock.by.label, time: dmsObject.lock.on } : null,
4058
- rights: [{ privileges: {
4068
+ rights: [{
4069
+ privileges: {
4059
4070
  select: dmsObject.rights.select,
4060
4071
  edit: dmsObject.rights.edit,
4061
4072
  delete: dmsObject.rights.delete,
4062
4073
  finalize: dmsObject.rights.finalize,
4063
4074
  recycle: dmsObject.rights.recycle
4064
- } }],
4075
+ }
4076
+ }],
4065
4077
  contentid: dmsObject.content ? dmsObject.content.id : null,
4066
4078
  contenttype: dmsObject.content ? dmsObject.content.type : null,
4067
4079
  contentcount: dmsObject.content ? dmsObject.content.count : null,
@@ -4911,13 +4923,13 @@ class SearchService {
4911
4923
  return this.backend
4912
4924
  .post('/export', queryJson, this.backend.getSearchBase(), {
4913
4925
  observe: 'response',
4914
- responseType: 'text'
4926
+ responseType: 'blob'
4915
4927
  })
4916
4928
  .pipe(tap(res => {
4917
4929
  const blob = new Blob([res.body], {
4918
- type: 'text/plain;charset=utf-8'
4930
+ type: 'text/csv;charset=utf-8'
4919
4931
  });
4920
- saveAs(blob, this.getFileNameFromHttpResponse(res));
4932
+ saveAs(blob, this.getFileNameFromHttpResponse(res), { autoBom: true });
4921
4933
  }));
4922
4934
  }
4923
4935
  getFileNameFromHttpResponse(res) {