@porscheinformatik/clr-addons 17.3.2 → 17.4.0

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.
@@ -1,3 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const HISTORY_NOTIFICATION_URL_PROVIDER: InjectionToken<string>;
1
3
  export interface ClrHistoryModel {
2
4
  /**
3
5
  * The username
@@ -11,6 +13,9 @@ export interface ClrHistoryModel {
11
13
  * The context of the page
12
14
  */
13
15
  context: {
16
+ applicationName?: string;
17
+ tenantid: string;
18
+ context?: string;
14
19
  [key: string]: string;
15
20
  };
16
21
  /**
@@ -32,3 +37,12 @@ export interface ClrHistorySettingsModel {
32
37
  */
33
38
  username: string;
34
39
  }
40
+ export interface ClrHistoryNotificationModel {
41
+ username: string;
42
+ pageName: string;
43
+ applicationName?: string;
44
+ tenantId: string;
45
+ title: string;
46
+ url: string;
47
+ context?: string;
48
+ }
@@ -1,14 +1,17 @@
1
1
  import { ClrHistoryModel, ClrHistorySettingsModel } from './history-model.interface';
2
2
  import { BehaviorSubject } from 'rxjs';
3
+ import { HttpClient } from '@angular/common/http';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ClrHistoryService {
6
+ private historyNotificationUrl;
7
+ private httpClient;
5
8
  cookieSettings$: BehaviorSubject<ClrHistorySettingsModel[]>;
6
9
  cookieName: string;
7
10
  cookieNameSettings: string;
8
11
  private expiryDate;
9
12
  private maxSize;
10
13
  private maxUrlSize;
11
- constructor();
14
+ constructor(historyNotificationUrl: string, httpClient: HttpClient);
12
15
  /**
13
16
  * Add a new history entry
14
17
  * @param historyEntry The entry to be added
@@ -39,6 +42,7 @@ export declare class ClrHistoryService {
39
42
  private decode;
40
43
  private setCookie;
41
44
  private getDomain;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<ClrHistoryService, never>;
45
+ private notifyExternalUrl;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClrHistoryService, [{ optional: true; }, { optional: true; }]>;
43
47
  static ɵprov: i0.ɵɵInjectableDeclaration<ClrHistoryService>;
44
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porscheinformatik/clr-addons",
3
- "version": "17.3.2",
3
+ "version": "17.4.0",
4
4
  "description": "Addon components for Clarity Angular",
5
5
  "es2015": "esm2015/clr-addons.js",
6
6
  "homepage": "https://porscheinformatik.github.io/clarity-addons/",