@yuuvis/client-core 2.0.4 → 2.0.5
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/fesm2022/yuuvis-client-core.mjs +19 -3
- package/fesm2022/yuuvis-client-core.mjs.map +1 -1
- package/lib/service/audit/audit.service.d.ts +2 -0
- package/lib/service/auth/auth.service.d.ts +5 -0
- package/lib/service/backend/backend.service.d.ts +5 -1
- package/lib/service/connection/connection.service.d.ts +7 -1
- package/package.json +1 -1
|
@@ -894,7 +894,11 @@ class Logger {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
/**
|
|
897
|
-
* Service for
|
|
897
|
+
* Service for http communication with the yuuvis Momentum backend. Apps
|
|
898
|
+
* should use this service to communicate with the backend instead of default
|
|
899
|
+
* httpClient because required headers are managed and apps do not have
|
|
900
|
+
* to care about preqrequisits.
|
|
901
|
+
*
|
|
898
902
|
*/
|
|
899
903
|
class BackendService {
|
|
900
904
|
constructor() {
|
|
@@ -2314,6 +2318,8 @@ class AuditService {
|
|
|
2314
2318
|
#userService;
|
|
2315
2319
|
/**
|
|
2316
2320
|
* Get audit entries of a dms object
|
|
2321
|
+
* @param id The id of the object to get the audit entries for
|
|
2322
|
+
* @param options Options
|
|
2317
2323
|
*/
|
|
2318
2324
|
getAuditEntries(id, options = {}) {
|
|
2319
2325
|
const auditActions = this.getAuditActions(!!options.allActions, options?.skipActions);
|
|
@@ -2727,7 +2733,11 @@ class AuthService {
|
|
|
2727
2733
|
this.#authSource.next(this.#authenticated);
|
|
2728
2734
|
this.#eventService.trigger(YuvEventType.LOGOUT);
|
|
2729
2735
|
}
|
|
2730
|
-
|
|
2736
|
+
/**
|
|
2737
|
+
* Persists the initial request URI. This is nessesary to be able to
|
|
2738
|
+
* redirect the user to the requested page after authentication.
|
|
2739
|
+
* This is done on app initialization (core-init).
|
|
2740
|
+
*/
|
|
2731
2741
|
setInitialRequestUri() {
|
|
2732
2742
|
const ignore = ['/', '/index.html'];
|
|
2733
2743
|
let uri = `${location.pathname}${location.search}`.replace(Utils.getBaseHref(), '');
|
|
@@ -2939,7 +2949,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
|
|
|
2939
2949
|
}] });
|
|
2940
2950
|
|
|
2941
2951
|
/**
|
|
2942
|
-
*
|
|
2952
|
+
* Service to monitor the online/offline state of the application.
|
|
2953
|
+
* It listens to the browser's online and offline events and provides an observable
|
|
2954
|
+
* to track the current connection state.
|
|
2955
|
+
*
|
|
2956
|
+
* An observable `connection$` is provided which emits the current connection state
|
|
2957
|
+
* whenever the online or offline state changes. The initial state is determined by
|
|
2958
|
+
* the `window.navigator.onLine` property.
|
|
2943
2959
|
*/
|
|
2944
2960
|
class ConnectionService {
|
|
2945
2961
|
/**
|