@quadrel-enterprise-ui/framework 21.18.4 → 21.19.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "21.18.4",
3
+ "version": "21.19.0",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {
@@ -18367,6 +18367,7 @@ interface QdShellServiceNavigationConfig {
18367
18367
  * @description Determines if the logout should be handled in the service-navigation or not.
18368
18368
  * If set to false, then the application must perform the logout itself.
18369
18369
  * To perform the logout by yourself, a logoutHandler can be configured that will be called with the logoutUrl.
18370
+ * Is set to false automatically if useQdAuthLogout is active.
18370
18371
  *
18371
18372
  * * web component: 'handle-logout'
18372
18373
  *
@@ -18376,10 +18377,25 @@ interface QdShellServiceNavigationConfig {
18376
18377
  /**
18377
18378
  * @description Will be called when the logout is triggered if handleLogout is set to false. Then you can perform
18378
18379
  * the logout by yourself in the handler. The logoutUrl will be passed to the logoutHandler.
18380
+ * If a logoutHandler is configured, it takes precedence over useQdAuthLogout.
18381
+ *
18382
+ * * Note: In earlier versions the handler received the `CustomEvent` of the web component instead of the
18383
+ * logoutUrl. Handlers that read `event.detail` must use the passed logoutUrl directly.
18379
18384
  *
18380
18385
  * * web component: 'logoutTriggered' output
18381
18386
  */
18382
18387
  logoutHandler?: (logoutUrl: string) => void;
18388
+ /**
18389
+ * @description Ends both the Keycloak session and the PAMS session when the user logs out in the service navigation.
18390
+ * The logout is first performed via QD Auth (Keycloak) and then continued with the PAMS logout of the service navigation.
18391
+ * handleLogout is set to false automatically.
18392
+ *
18393
+ * Requires QD Auth with support for `logoutAndContinueTo`. Without it, the logout is handled by the service navigation only.
18394
+ * Ignored if a logoutHandler is configured.
18395
+ *
18396
+ * * @default: false
18397
+ */
18398
+ useQdAuthLogout?: boolean;
18383
18399
  /**
18384
18400
  * @description Links displayed in the profile menu. You can also add a badge for each input, and they also handle different languages.
18385
18401
  *
@@ -19247,6 +19263,7 @@ declare class QdShellServiceNavigationComponent implements OnInit, AfterViewInit
19247
19263
  private _config;
19248
19264
  private readonly _destroyRef;
19249
19265
  private _attributesHaveBeenSet$;
19266
+ private _qdAuthLogoutUnavailableWarningLogged;
19250
19267
  private readonly localeService;
19251
19268
  ngOnInit(): void;
19252
19269
  private setPamsEnvironment;
@@ -19256,8 +19273,10 @@ declare class QdShellServiceNavigationComponent implements OnInit, AfterViewInit
19256
19273
  ngOnChanges(changes: SimpleChanges): void;
19257
19274
  handleLanguageChange($event: any): void;
19258
19275
  handleLoginStatusChange($event: any): void;
19259
- handleLogoutTriggered($event: any): void;
19276
+ handleLogoutTriggered($event: Event | string): void;
19260
19277
  private passConfig;
19278
+ private shouldUseQdAuthLogout;
19279
+ private logQdAuthLogoutUnavailableWarning;
19261
19280
  private setAttributesForServiceNavigation;
19262
19281
  private useLanguage;
19263
19282
  static ɵfac: i0.ɵɵFactoryDeclaration<QdShellServiceNavigationComponent, never>;