@yuuvis/client-core 2.0.3 → 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.
@@ -894,7 +894,11 @@ class Logger {
894
894
  }
895
895
 
896
896
  /**
897
- * Service for providing an yuuvis Backend
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
- // called on core init
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
- * This service is used for connecting and initializing in the client
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
  /**