@eo-sdk/client 9.4.0 → 9.6.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 (81) hide show
  1. package/app/eo-client/recyclebin-state/recyclebin-state.component.d.ts +44 -0
  2. package/app/eo-framework/actions/action.module.d.ts +3 -1
  3. package/app/eo-framework/actions/actions/cancel-signing-action/cancel-signing/cancel-signing.component.d.ts +30 -0
  4. package/app/eo-framework/actions/actions/cancel-signing-action/cancel-signing-action.d.ts +22 -0
  5. package/app/eo-framework/actions/actions/signature-action/signature/signature.component.d.ts +4 -2
  6. package/app/eo-framework/app-shell/app-bar/app-process/app-process.component.d.ts +1 -0
  7. package/app/eo-framework/object-details/object-details.component.d.ts +2 -0
  8. package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts +17 -11
  9. package/app/eo-framework/recyclebin-details/recyclebin-details.component.d.ts +75 -0
  10. package/app/eo-framework/split/split/split.component.d.ts +1 -1
  11. package/app/eo-framework/split/split-area/split-area.component.d.ts +1 -0
  12. package/app/eo-framework/ui/eo-dialog/eo-dialog.component.d.ts +1 -0
  13. package/assets/_default/config/main.json +1 -1
  14. package/assets/_default/i18n/de.json +50 -12
  15. package/assets/_default/i18n/en.json +42 -4
  16. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +81 -14
  17. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
  18. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
  19. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
  20. package/bundles/eo-sdk-client.umd.js +705 -84
  21. package/bundles/eo-sdk-client.umd.js.map +1 -1
  22. package/bundles/eo-sdk-client.umd.min.js +1 -1
  23. package/bundles/eo-sdk-client.umd.min.js.map +1 -1
  24. package/eo-sdk-client.d.ts +14 -10
  25. package/eo-sdk-client.metadata.json +1 -1
  26. package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
  27. package/esm2015/app/eo-client/eo-client-routing.module.js +3 -1
  28. package/esm2015/app/eo-client/eo-client.module.js +4 -2
  29. package/esm2015/app/eo-client/favorite-state/favorite-state.component.js +3 -3
  30. package/esm2015/app/eo-client/inbox-state/inbox-state/inbox-state.component.js +7 -5
  31. package/esm2015/app/eo-client/notifications-state/notifications-state.component.js +3 -3
  32. package/esm2015/app/eo-client/object-state/object-state-service/object-state.service.js +2 -2
  33. package/esm2015/app/eo-client/prepare-state/prepare-state/prepare-state.component.js +3 -3
  34. package/esm2015/app/eo-client/recyclebin-state/recyclebin-state.component.js +141 -0
  35. package/esm2015/app/eo-framework/actions/action.module.js +9 -3
  36. package/esm2015/app/eo-framework/actions/actions/cancel-signing-action/cancel-signing/cancel-signing.component.js +80 -0
  37. package/esm2015/app/eo-framework/actions/actions/cancel-signing-action/cancel-signing-action.js +42 -0
  38. package/esm2015/app/eo-framework/actions/actions/delete-action/delete/delete.component.js +5 -2
  39. package/esm2015/app/eo-framework/actions/actions/signature-action/signature/signature.component.js +19 -10
  40. package/esm2015/app/eo-framework/actions/actions/signature-action/signature-action.component.js +10 -4
  41. package/esm2015/app/eo-framework/actions/actions/workflow-action/workflow/workflow.component.js +6 -4
  42. package/esm2015/app/eo-framework/app-shell/app-bar/app-process/app-process.component.js +8 -2
  43. package/esm2015/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.js +2 -2
  44. package/esm2015/app/eo-framework/form-elements/id-reference/id-reference.component.js +3 -3
  45. package/esm2015/app/eo-framework/frame/frame.component.js +9 -1
  46. package/esm2015/app/eo-framework/grid/extensions/filter/text/text-filter.component.js +3 -3
  47. package/esm2015/app/eo-framework/media/media.component.js +3 -3
  48. package/esm2015/app/eo-framework/object-details/object-details.component.js +14 -5
  49. package/esm2015/app/eo-framework/object-details/object-details.module.js +4 -2
  50. package/esm2015/app/eo-framework/object-details/object-history/object-history.component.js +3 -3
  51. package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +41 -23
  52. package/esm2015/app/eo-framework/prepare-details/prepare-details.component.js +11 -2
  53. package/esm2015/app/eo-framework/recyclebin-details/recyclebin-details.component.js +260 -0
  54. package/esm2015/app/eo-framework/split/split/split.component.js +6 -6
  55. package/esm2015/app/eo-framework/split/split-area/split-area.component.js +5 -1
  56. package/esm2015/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.js +2 -2
  57. package/esm2015/app/eo-framework/ui/eo-dialog/eo-dialog.component.js +4 -2
  58. package/esm2015/app/eo-framework/ui/indexdata-summary/indexdata-summary.component.js +2 -2
  59. package/esm2015/app/eo-framework/ui/signature-tab/signature-tab.component.js +3 -3
  60. package/esm2015/eo-sdk-client.js +15 -11
  61. package/esm2015/projects/eo-sdk/core/lib/config/translate-json-loader.js +23 -2
  62. package/esm2015/projects/eo-sdk/core/lib/model/dms-object-history.model.js +2 -1
  63. package/esm2015/projects/eo-sdk/core/lib/service/backend/backend.service.js +3 -3
  64. package/esm2015/projects/eo-sdk/core/lib/service/config/config.service.js +2 -2
  65. package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +20 -6
  66. package/esm2015/projects/eo-sdk/core/lib/service/events/events.js +2 -1
  67. package/esm2015/projects/eo-sdk/core/lib/service/signing/signing.service.js +15 -2
  68. package/esm2015/projects/eo-sdk/core/lib/service/user/user.service.js +17 -1
  69. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +76 -10
  70. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
  71. package/fesm2015/eo-sdk-client.js +647 -75
  72. package/fesm2015/eo-sdk-client.js.map +1 -1
  73. package/package.json +2 -2
  74. package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
  75. package/projects/eo-sdk/core/lib/model/dms-object-history.model.d.ts +4 -0
  76. package/projects/eo-sdk/core/lib/service/backend/backend.service.d.ts +1 -1
  77. package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts +13 -3
  78. package/projects/eo-sdk/core/lib/service/events/events.d.ts +1 -0
  79. package/projects/eo-sdk/core/lib/service/signing/signing.service.d.ts +8 -0
  80. package/projects/eo-sdk/core/lib/service/user/user.service.d.ts +11 -0
  81. package/projects/eo-sdk/core/package.json +1 -1
@@ -51,6 +51,20 @@ import localeEnGb from '@angular/common/locales/en-GB';
51
51
  import localeExtraEnGb from '@angular/common/locales/extra/en-GB';
52
52
  import localeHe from '@angular/common/locales/he';
53
53
  import localeExtraHe from '@angular/common/locales/extra/he';
54
+ import localeFi from '@angular/common/locales/fi';
55
+ import localeExtraFi from '@angular/common/locales/extra/fi';
56
+ import localeDa from '@angular/common/locales/da';
57
+ import localeExtraDa from '@angular/common/locales/extra/da';
58
+ import localeSe from '@angular/common/locales/se';
59
+ import localeExtraSe from '@angular/common/locales/extra/se';
60
+ import localeNb from '@angular/common/locales/nb';
61
+ import localeExtraNb from '@angular/common/locales/extra/nb';
62
+ import localeNn from '@angular/common/locales/nn';
63
+ import localeExtraNn from '@angular/common/locales/extra/nn';
64
+ import localeId from '@angular/common/locales/id';
65
+ import localeExtraId from '@angular/common/locales/extra/id';
66
+ import localeMs from '@angular/common/locales/ms';
67
+ import localeExtraMs from '@angular/common/locales/extra/ms';
54
68
  import * as momentImported from 'moment';
55
69
  import { LocalStorage, StorageMap } from '@ngx-pwa/local-storage';
56
70
  import { saveAs } from 'file-saver';
@@ -139,7 +153,14 @@ class EoxTranslateJsonLoader {
139
153
  registerLocaleData(localeTh, 'th', localeExtraTh); // Thai
140
154
  registerLocaleData(localeVi, 'vi', localeExtraVi); // Vietnamese
141
155
  registerLocaleData(localeEnGb, 'en-GB', localeExtraEnGb); // English (Great-Britain)
142
- registerLocaleData(localeHe, 'he', localeExtraHe);
156
+ registerLocaleData(localeHe, 'he', localeExtraHe); // Hebrew
157
+ registerLocaleData(localeFi, 'fi', localeExtraFi); // Finish
158
+ registerLocaleData(localeDa, 'da', localeExtraDa); // Danish
159
+ registerLocaleData(localeSe, 'se', localeExtraSe); // Swedish
160
+ registerLocaleData(localeNb, 'nb', localeExtraNb); // Norwegian Bokmål
161
+ registerLocaleData(localeNn, 'nn', localeExtraNn); // Norwegian Nynorsk
162
+ registerLocaleData(localeId, 'id', localeExtraId); // Indonesian
163
+ registerLocaleData(localeMs, 'ms', localeExtraMs); // Malay
143
164
  }
144
165
  /**
145
166
  *
@@ -1089,6 +1110,7 @@ const EnaioEvent = {
1089
1110
  DMS_OBJECT_LOADED: 'eo.dms.object.loaded',
1090
1111
  DMS_OBJECT_DELETED: 'eo.dms.object.deleted',
1091
1112
  DMS_OBJECT_VERSION_RESTORED: 'eo.dms.object.version.restored',
1113
+ DMS_OBJECT_RESTORED_OR_DELETED: 'eo.dms.object.restored.deleted',
1092
1114
  DMS_OBJECT_FAVORITE_ON: 'eo.dms.object.favorite.on',
1093
1115
  DMS_OBJECT_FAVORITE_OFF: 'eo.dms.object.favorite.off',
1094
1116
  DMS_OBJECT_UPDATED: 'eo.dms.object.updated',
@@ -1184,7 +1206,7 @@ class Config {
1184
1206
  */
1185
1207
  getSupportedClientLocales() {
1186
1208
  return ['en', 'de', 'ar', 'es', 'pt', 'fr', 'zh', 'lv', 'ru', 'it', 'nl', 'sk', 'pl', 'uk', 'ja', 'ko', 'hi', 'bn', 'de-CH', 'zh-Hant',
1187
- 'th', 'vi', 'en-GB', 'he'];
1209
+ 'th', 'vi', 'en-GB', 'he', 'fi', 'se', 'da', 'nb', 'nn', 'id', 'ms'];
1188
1210
  }
1189
1211
  /**
1190
1212
  * Get the dashboards background image
@@ -1723,11 +1745,11 @@ class BackendService {
1723
1745
  * @param "PDF" | "TIFF" | "TEXT" | "JPEG" rendition The type of rendition to be downloaded. If not specified, the original content will be downloaded.
1724
1746
  * Possible renditions are `PDF`, `TIFF`, `TEXT`, `JPEG`.
1725
1747
  */
1726
- downloadContent(dmsObjects, rendition, fileNameWithVersionNumber) {
1748
+ downloadContent(dmsObjects, rendition, fileNameWithVersionNumber, recyclebin) {
1727
1749
  const item = dmsObjects[0];
1728
1750
  if (dmsObjects.length === 1) {
1729
1751
  if (item.content) {
1730
- let uri = `${this.getServiceBase()}/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true`;
1752
+ let uri = `${this.getServiceBase()}/dms/${item.content.id}/content?type=${item.content.type}&asdownload=true&recyclebin=${!!recyclebin}`;
1731
1753
  if (rendition) {
1732
1754
  uri += `&rendition=${rendition}&_intent=DOWNLOAD_${rendition}`;
1733
1755
  }
@@ -2229,6 +2251,13 @@ class UserService {
2229
2251
  this.favorites$ = this.favoritesGridData$.pipe(this.backend.gridDataFilter);
2230
2252
  this.notifications = null;
2231
2253
  this.notificationsSource = new BehaviorSubject(this.notifications);
2254
+ /**
2255
+ * Observable emitting current users recyclebin
2256
+ */
2257
+ this.recycles = null;
2258
+ this.recyclesSource = new BehaviorSubject(this.recycles);
2259
+ this.recyclesGridData$ = this.recyclesSource.asObservable().pipe(debounceTime(100), filter(v => v));
2260
+ this.recycles$ = this.recyclesGridData$.pipe(this.backend.gridDataFilter);
2232
2261
  /**
2233
2262
  * Observable emitting current users notifications
2234
2263
  */
@@ -2455,6 +2484,15 @@ class UserService {
2455
2484
  this.updateFavorites(null, null, toRemove);
2456
2485
  }));
2457
2486
  }
2487
+ /**
2488
+ * Gets the users recyclebin
2489
+ */
2490
+ getRecycleBin() {
2491
+ return this.backend.getJson(`/user/recyclebin`).pipe(tap(response => {
2492
+ this.recycles = response;
2493
+ this.recyclesSource.next(this.recycles);
2494
+ }));
2495
+ }
2458
2496
  /**
2459
2497
  * Changes the users preferred lock mode and persists it on the server
2460
2498
  * @param lock The value to set the lock settings to
@@ -4326,6 +4364,7 @@ class DmsObjectHistoryEntry {
4326
4364
  this.time = json.time;
4327
4365
  this.title = json.title;
4328
4366
  this.description = json.description;
4367
+ this.intent = json.intent;
4329
4368
  this.comment = json.comment;
4330
4369
  this.group = json.group;
4331
4370
  this.type = json.type;
@@ -4511,16 +4550,18 @@ class DmsService {
4511
4550
  * Generates the URI for getting a DmsObjects preview (PDF rendition).
4512
4551
  *
4513
4552
  * @param id Objects id
4514
- * @param type] Objects type name, will improve load time if provided
4553
+ * @param type Objects type name, will improve load time if provided
4515
4554
  * @param version Target version
4516
4555
  * @param rendition Target rendition (PDF)
4556
+ * @param recyclebin If true, objects from recyclebin are included
4517
4557
  * @returns string
4518
4558
  */
4519
- getPreview(id, type, version, rendition) {
4559
+ getPreview(id, type, version, rendition, recyclebin) {
4520
4560
  return Utils.buildUri(this.backend.getServiceBase() + '/dms/' + id + '/content', {
4521
4561
  rendition,
4522
4562
  type,
4523
- version
4563
+ version,
4564
+ recyclebin
4524
4565
  });
4525
4566
  }
4526
4567
  /**
@@ -4542,11 +4583,12 @@ class DmsService {
4542
4583
  *
4543
4584
  * @param id ID of the dms object to fetch history for
4544
4585
  * @param type Type of the dms object to fetch history for
4586
+ * @param recyclebin If true, objects from recyclebin are included
4545
4587
  * @returns Observable<DmsObjectHistoryEntry[]> The history of the dms object
4546
4588
  */
4547
- getHistory(id, type) {
4589
+ getHistory(id, type, recyclebin) {
4548
4590
  const uri = `/dms/${id}/audit`;
4549
- return this.backend.getJson(Utils.buildUri(uri, { type: type })).pipe(map((res) => res.audit.map((auditEntry) => new DmsObjectHistoryEntry(auditEntry))));
4591
+ return this.backend.getJson(Utils.buildUri(uri, { type: type, recyclebin: recyclebin })).pipe(map((res) => res.audit.map((auditEntry) => new DmsObjectHistoryEntry(auditEntry))));
4550
4592
  }
4551
4593
  /**
4552
4594
  * Restores an earlier version of the selected DmsObject by adding the earlier version
@@ -4561,6 +4603,17 @@ class DmsService {
4561
4603
  const uri = `/dms/restoreversion/${id}/${version}`;
4562
4604
  return this.backend.post(Utils.buildUri(uri, { type: type }), null);
4563
4605
  }
4606
+ /**
4607
+ * Restores File
4608
+ * @param id DMS object id
4609
+ * @param type The dms object type
4610
+ * @param userId user id
4611
+ * @return
4612
+ */
4613
+ restore(id, userId, type) {
4614
+ const uri = `/dms/restore/${id}?userid=${userId}`;
4615
+ return this.backend.put(uri);
4616
+ }
4564
4617
  /**
4565
4618
  * if dmsObject is specified, load latest version and trigger Enaio event DMS_OBJECT_UPDATED
4566
4619
  *
@@ -5949,6 +6002,16 @@ class SigningService {
5949
6002
  const uri = `/request/${id}`;
5950
6003
  return this.backend.post(uri, signingData, '/signing');
5951
6004
  }
6005
+ /**
6006
+ * Cancels the signing process of a DMS Object
6007
+ * @param id the id of the dms object
6008
+ * @param comment the reason for cancelling
6009
+ * @returns Observable<any>
6010
+ */
6011
+ cancelSigning(id, comment) {
6012
+ const uri = `/cancel/${id}?comment=${comment}`;
6013
+ return this.backend.put(uri, null, '/signing');
6014
+ }
5952
6015
  getLocalizedSigningForm() {
5953
6016
  return {
5954
6017
  'size': 'small',
@@ -6017,9 +6080,12 @@ class SigningService {
6017
6080
  ]
6018
6081
  };
6019
6082
  }
6020
- signingInProcess(item) {
6083
+ signatureRequested(item) {
6021
6084
  return !!item.data.yuvsigstatus;
6022
6085
  }
6086
+ signingInProcess(item) {
6087
+ return item.data.yuvsigstatus === 'inprocess';
6088
+ }
6023
6089
  }
6024
6090
  SigningService.decorators = [
6025
6091
  { type: Injectable }