@eo-sdk/client 8.16.7 → 8.16.9

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 (40) hide show
  1. package/app/eo-framework/form-elements/form-input/input-focus/input-focus.directive.d.ts +1 -0
  2. package/app/eo-framework/grid/extensions/filter/setFilters/set-filter.component.d.ts +1 -0
  3. package/app/eo-framework-core/api/grid.service.d.ts +2 -0
  4. package/assets/_default/config/main.json +1 -7
  5. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +45 -20
  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 +54 -35
  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/app-shell/app-bar/app-process/app-process.component.js +2 -2
  16. package/esm2015/app/eo-framework/form-elements/form-input/form-input.component.js +2 -2
  17. package/esm2015/app/eo-framework/form-elements/form-input/input-focus/input-focus.directive.js +7 -3
  18. package/esm2015/app/eo-framework/form-elements/string/string.component.js +2 -2
  19. package/esm2015/app/eo-framework/grid/column-configurator/column-configurator.component.js +1 -1
  20. package/esm2015/app/eo-framework/grid/extensions/filter/setFilters/set-filter.component.js +4 -2
  21. package/esm2015/app/eo-framework/grid/filters/list-filter.component.js +2 -2
  22. package/esm2015/app/eo-framework/inbox-details/inbox-details.component.js +5 -1
  23. package/esm2015/app/eo-framework/object-form/object-form/form-element/form-element.component.js +5 -2
  24. package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +3 -2
  25. package/esm2015/app/eo-framework-core/api/grid.service.js +30 -26
  26. package/esm2015/app/eo-framework-core/api/plugins.service.js +2 -1
  27. package/esm2015/projects/eo-sdk/core/lib/service/auth/auth.service.js +5 -5
  28. package/esm2015/projects/eo-sdk/core/lib/service/backend/backend.service.js +21 -14
  29. package/esm2015/projects/eo-sdk/core/lib/service/config/config.service.js +22 -4
  30. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +45 -20
  31. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
  32. package/fesm2015/eo-sdk-client.js +54 -35
  33. package/fesm2015/eo-sdk-client.js.map +1 -1
  34. package/package.json +2 -2
  35. package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
  36. package/projects/eo-sdk/core/lib/service/backend/backend.service.d.ts +2 -0
  37. package/projects/eo-sdk/core/lib/service/config/config.service.d.ts +5 -0
  38. package/projects/eo-sdk/core/package.json +1 -1
  39. package/scss/_form.scss +2 -2
  40. package/styles.css +1 -1
@@ -3,6 +3,7 @@ export declare class InputFocusDirective {
3
3
  private renderer;
4
4
  private element;
5
5
  formInput: ElementRef;
6
+ disabled: boolean;
6
7
  constructor(renderer: Renderer2, element: ElementRef);
7
8
  onFocusIn(evt: any): void;
8
9
  onFocusOut(evt: any): void;
@@ -7,6 +7,7 @@ export declare class SetFilterComponent extends AbstractFilterComponent {
7
7
  title: string;
8
8
  searchLimit: number;
9
9
  operator: string;
10
+ selectedAllFilters: boolean;
10
11
  set options(opts: any[]);
11
12
  get options(): any[];
12
13
  constructor(settingsService: ListSettingsService);
@@ -67,6 +67,7 @@ export declare class GridService {
67
67
  };
68
68
  }
69
69
  export declare class CellRenderer {
70
+ static situation: string;
70
71
  static windowURI(uri: any): any;
71
72
  static render(type: string, param: any, newParam?: any): any;
72
73
  static filesizeCellRenderer(param: any): any;
@@ -83,4 +84,5 @@ export declare class CellRenderer {
83
84
  static multiSelectCellRenderer(param: any): string;
84
85
  static linkCellRenderer(param: any): string;
85
86
  static referenceCellRenderer(param: any): any;
87
+ static noValueRenderer(param: any): string;
86
88
  }
@@ -1,13 +1,7 @@
1
1
  {
2
2
  "uri": {
3
3
  "serviceBase": "/rest-ws/service",
4
- "searchBase": "/search",
5
- "contextBase": "/structure",
6
- "inboxBase": "/inboxservice",
7
- "bpmBase": "/bpm",
8
- "agentBase": "/agent",
9
- "statusBase": "/status",
10
- "loginBase": "/"
4
+ "contextPath": "/"
11
5
  },
12
6
  "search": {
13
7
  "searchMode": "idxs",
@@ -1194,6 +1194,7 @@
1194
1194
  this.translate = translate;
1195
1195
  this.event = event;
1196
1196
  this.cfg = null;
1197
+ this.fixServiceUris = null;
1197
1198
  }
1198
1199
  /**
1199
1200
  * @ignore
@@ -1207,14 +1208,31 @@
1207
1208
  */
1208
1209
  Config.prototype.set = function (cfg) {
1209
1210
  this.cfg = cfg;
1211
+ this.fixServiceUris = new Map([
1212
+ ['serviceBase', '/rest-ws/service'],
1213
+ ['searchBase', '/search'],
1214
+ ['contextBase', '/structure'],
1215
+ ['inboxBase', '/inboxservice'],
1216
+ ['bpmBase', '/bpm'],
1217
+ ['agentBase', '/agent'],
1218
+ ['statusBase', '/status']
1219
+ ]);
1210
1220
  var languages = this.getClientLocales().map(function (lang) { return lang.iso; });
1211
1221
  this.translate.addLangs(languages);
1212
1222
  this.translate.setDefaultLang(this.getDefaultClientLocale());
1213
1223
  this.initializeGrid();
1214
1224
  };
1225
+ /**
1226
+ * @Deprecated replaced by getContextPath
1227
+ */
1215
1228
  Config.prototype.getLoginBase = function () {
1216
- var lb = this.getUri('loginBase');
1217
- return (lb && lb !== '/') ? lb : '';
1229
+ return this.getContextPath();
1230
+ };
1231
+ Config.prototype.getContextPath = function () {
1232
+ var cp = this.getUri('contextPath')
1233
+ // TODO: remove when not supported anymore
1234
+ || this.getUri('loginBase');
1235
+ return (cp && cp !== '/') ? cp : '';
1218
1236
  };
1219
1237
  /**
1220
1238
  * Returns nested property of config | complete config by default
@@ -1229,7 +1247,7 @@
1229
1247
  * @returns value of the property from the URI-Section of the config
1230
1248
  */
1231
1249
  Config.prototype.getUri = function (property) {
1232
- return this.cfg['uri'][property];
1250
+ return (this.cfg['uri'] && this.cfg['uri'][property]) || this.fixServiceUris.get(property);
1233
1251
  };
1234
1252
  /**
1235
1253
  * Getter for the available client locales
@@ -1569,6 +1587,7 @@
1569
1587
  { type: i0.Injectable }
1570
1588
  ];
1571
1589
 
1590
+ // @ts-ignore
1572
1591
  /**
1573
1592
  * `BackendService` encapsulates the communication with the yuuvis<sup>&reg;</sup> RAD REST endpoints.
1574
1593
  *
@@ -1637,49 +1656,49 @@
1637
1656
  * @returns Base URI
1638
1657
  */
1639
1658
  BackendService.prototype.getServiceBase = function () {
1640
- return this.getHost() + this.config.getUri('serviceBase');
1659
+ return this.getHostWithContext() + this.config.getUri('serviceBase');
1641
1660
  };
1642
1661
  /**
1643
1662
  * Gets the base URI for the Search-Service endpoint
1644
1663
  * @returns Base URI
1645
1664
  */
1646
1665
  BackendService.prototype.getSearchBase = function () {
1647
- return this.getHost() + this.config.getUri('searchBase');
1666
+ return this.getHostWithContext() + this.config.getUri('searchBase');
1648
1667
  };
1649
1668
  /**
1650
1669
  * Gets the base URI for the Context-Service endpoint
1651
1670
  * @returns Base URI
1652
1671
  */
1653
1672
  BackendService.prototype.getContextBase = function () {
1654
- return this.getHost() + this.config.getUri('contextBase');
1673
+ return this.getHostWithContext() + this.config.getUri('contextBase');
1655
1674
  };
1656
1675
  /**
1657
1676
  * Gets the base URI for the Inbox-Service endpoint
1658
1677
  * @returns Base URI
1659
1678
  */
1660
1679
  BackendService.prototype.getInboxBase = function () {
1661
- return this.getHost() + this.config.getUri('inboxBase');
1680
+ return this.getHostWithContext() + this.config.getUri('inboxBase');
1662
1681
  };
1663
1682
  /**
1664
1683
  * Gets the base URI for the BPM-Service endpoint
1665
1684
  * @returns Base URI
1666
1685
  */
1667
1686
  BackendService.prototype.getBpmBase = function () {
1668
- return this.getHost() + this.config.getUri('bpmBase');
1687
+ return this.getHostWithContext() + this.config.getUri('bpmBase');
1669
1688
  };
1670
1689
  /**
1671
1690
  * Gets the base URI for the Agent-Service endpoint
1672
1691
  * @returns Base URI
1673
1692
  */
1674
1693
  BackendService.prototype.getAgentBase = function () {
1675
- return this.getHost() + this.config.getUri('agentBase');
1694
+ return this.getHostWithContext() + this.config.getUri('agentBase');
1676
1695
  };
1677
1696
  /**
1678
1697
  * Gets the base URI for the Status-Service endpoint
1679
1698
  * @returns Base URI
1680
1699
  */
1681
1700
  BackendService.prototype.getStatusBase = function () {
1682
- return this.getHost() + this.config.getUri('statusBase');
1701
+ return this.getHostWithContext() + this.config.getUri('statusBase');
1683
1702
  };
1684
1703
  /**
1685
1704
  * @ignore
@@ -1694,6 +1713,12 @@
1694
1713
  BackendService.prototype.getHost = function () {
1695
1714
  return this.authProfile.host || '';
1696
1715
  };
1716
+ BackendService.prototype.getHostWithContext = function () {
1717
+ return (this.authProfile.host || '') + this.config.getContextPath();
1718
+ };
1719
+ BackendService.prototype.getBaseWithContext = function (base) {
1720
+ return (base === null || base === void 0 ? void 0 : base.startsWith('/')) ? this.config.getContextPath() + base : base;
1721
+ };
1697
1722
  /**
1698
1723
  * Wrapped HTTP GET method
1699
1724
  * @param uri The REST URI to be queried
@@ -1702,7 +1727,7 @@
1702
1727
  * @returns The data retrieved from the given endpoint
1703
1728
  */
1704
1729
  BackendService.prototype.get = function (uri, base, requestOptions) {
1705
- return this.http.get((base || this.getServiceBase()) + uri, this.getHttpOptions(requestOptions));
1730
+ return this.http.get((this.getBaseWithContext(base) || this.getServiceBase()) + uri, this.getHttpOptions(requestOptions));
1706
1731
  };
1707
1732
  /**
1708
1733
  * Wrapped HTTP PUT method
@@ -1713,13 +1738,13 @@
1713
1738
  * @returns The return value of the target PUT endpoint
1714
1739
  */
1715
1740
  BackendService.prototype.put = function (uri, data, base, requestOptions) {
1716
- return this.http.put((base || this.getServiceBase()) + uri, data, this.getHttpOptions(requestOptions));
1741
+ return this.http.put((this.getBaseWithContext(base) || this.getServiceBase()) + uri, data, this.getHttpOptions(requestOptions));
1717
1742
  };
1718
1743
  /**
1719
1744
  * @ignore
1720
1745
  */
1721
1746
  BackendService.prototype.getJson = function (uri, base) {
1722
- return this.get(uri, base || this.getServiceBase(), { responseType: 'json' });
1747
+ return this.http.get((this.getBaseWithContext(base) || this.getServiceBase()) + uri, this.getHttpOptions({ responseType: 'json' }));
1723
1748
  };
1724
1749
  /**
1725
1750
  * Wrapped HTTP POST method
@@ -1730,7 +1755,7 @@
1730
1755
  * @returns The return value of the target POST endpoint
1731
1756
  */
1732
1757
  BackendService.prototype.post = function (uri, data, base, requestOptions) {
1733
- var baseUri = base || this.getServiceBase();
1758
+ var baseUri = this.getBaseWithContext(base) || this.getServiceBase();
1734
1759
  var payload = data ? JSON.stringify(data) : '';
1735
1760
  return this.http.post("" + baseUri + uri, payload, this.getHttpOptions(requestOptions));
1736
1761
  };
@@ -1743,7 +1768,7 @@
1743
1768
  * @returns The return value of the target POST endpoint
1744
1769
  */
1745
1770
  BackendService.prototype.postMultiPart = function (uri, formData, base, requestOptions) {
1746
- var baseUri = base || this.getServiceBase();
1771
+ var baseUri = this.getBaseWithContext(base) || this.getServiceBase();
1747
1772
  var headers = this.getHeaders();
1748
1773
  headers.delete('Content-Type');
1749
1774
  var reqOptions = Object.assign({ headers: headers, withCredentials: this.coreConfig.withCredentials }, requestOptions);
@@ -1757,7 +1782,7 @@
1757
1782
  * @returns The return value of the target DELETE endpoint
1758
1783
  */
1759
1784
  BackendService.prototype.del = function (uri, base, requestOptions) {
1760
- return this.http.delete((base || this.getServiceBase()) + uri, this.getHttpOptions(requestOptions));
1785
+ return this.http.delete((this.getBaseWithContext(base) || this.getServiceBase()) + uri, this.getHttpOptions(requestOptions));
1761
1786
  };
1762
1787
  /**
1763
1788
  * @ignore
@@ -4277,7 +4302,7 @@
4277
4302
  var loginHeader = new http.HttpHeaders({
4278
4303
  'Content-Type': 'application/x-www-form-urlencoded'
4279
4304
  });
4280
- return this.http.post(host + this.config.getLoginBase() + '/login', "username=" + encodeURIComponent(username) + "&password=" + encodeURIComponent(password), {
4305
+ return this.http.post(host + this.config.getContextPath() + '/login', "username=" + encodeURIComponent(username) + "&password=" + encodeURIComponent(password), {
4281
4306
  headers: loginHeader,
4282
4307
  responseType: 'text',
4283
4308
  withCredentials: this.coreConfig.withCredentials
@@ -4414,7 +4439,7 @@
4414
4439
  'Content-Type': 'application/json'
4415
4440
  });
4416
4441
  return this.http
4417
- .get("" + (host || '') + this.config.getLoginBase() + "/auth/info", { headers: headers, withCredentials: this.coreConfig.withCredentials })
4442
+ .get("" + (host || '') + this.config.getContextPath() + "/auth/info", { headers: headers, withCredentials: this.coreConfig.withCredentials })
4418
4443
  .pipe(operators.switchMap(function (info) {
4419
4444
  _this.gatewayInfo = info;
4420
4445
  _this.envService.cloudEnvironment = (_this.gatewayInfo && _this.gatewayInfo.oauth2);
@@ -4477,14 +4502,14 @@
4477
4502
  // remove stored access data
4478
4503
  this.storage.removeItem(this.TOKEN_STORAGE_KEY).subscribe();
4479
4504
  if (this.coreConfig.environment.production && EnvironmentEnaio.isWebEnvironment()) {
4480
- window.location.href = this.config.getLoginBase() + '/logout';
4505
+ window.location.href = this.config.getContextPath() + '/logout';
4481
4506
  return;
4482
4507
  }
4483
4508
  }
4484
4509
  if (gatewayLogout) {
4485
4510
  // by default we are just resetting internal state to 'logged out' and in
4486
4511
  // some cases call gateways logout endpoint to do logout stuff there silently
4487
- this.http.get("" + (this.profile.host || '') + this.config.getLoginBase() + "/logout", { withCredentials: this.coreConfig.withCredentials }).subscribe();
4512
+ this.http.get("" + (this.profile.host || '') + this.config.getContextPath() + "/logout", { withCredentials: this.coreConfig.withCredentials }).subscribe();
4488
4513
  }
4489
4514
  this.backend.setAuthProfile(this.profile);
4490
4515
  this.eventService.trigger(EnaioEvent.LOGOUT);