@tsi-developpement/tsi-shared-ui 1.8.45 → 1.8.46

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.
@@ -3,4 +3,4 @@ import { FormStateService } from "../services/form/form-state.service";
3
3
  import { PresentationDesignerBaseService } from "../services/presentation-setting/presentation-designer-base.service";
4
4
  import { GenericValidationStateService } from "../services/validation/generic-validation-state.service";
5
5
  import { InputRegistryService } from "../services/validation/input-registry.service";
6
- export declare const appProviders: (typeof GenericValidationStateService | typeof PresentationDesignerBaseService | typeof InputRegistryService | typeof FormStateService | typeof DynamicFormService)[];
6
+ export declare const appProviders: (typeof GenericValidationStateService | typeof InputRegistryService | typeof PresentationDesignerBaseService | typeof DynamicFormService | typeof FormStateService)[];
@@ -38,3 +38,6 @@ export declare const defaultCardHeader: {
38
38
  export declare const requestHeaderNames: {
39
39
  duplicate: string;
40
40
  };
41
+ export declare const menuPreferences: {
42
+ favoritesOnly: string;
43
+ };
@@ -19,12 +19,14 @@ export declare const AuthorizationSegments: {
19
19
  getMyTenants: string;
20
20
  deleteUnconfirmedUsers: string;
21
21
  refreshToken: string;
22
+ toggleMenuFavorite: string;
22
23
  };
23
24
  export declare const AuthorizationEndpoints: {
24
25
  register: () => string;
25
26
  refreshToken: () => string;
26
27
  logoutWithToken: () => string;
27
- getMenuItems: () => string;
28
+ getMenuItems: (favoritesOnly?: boolean) => string;
29
+ toggleMenuFavorite: (menuItemId: string) => string;
28
30
  checkPermission: (permission: string) => string;
29
31
  getAvailableConnectionStrings: () => string;
30
32
  getConnectedUsers: () => string;
@@ -2,7 +2,7 @@ import { DynamicDialogConfig, DynamicDialogRef } from "primeng/dynamicdialog";
2
2
  import { TabView } from "primeng/tabview";
3
3
  import { JwtHelperService } from "@auth0/angular-jwt";
4
4
  import { ConfirmationService, MessageService } from "primeng/api";
5
- export declare const SharedUiTsiProviders: (typeof TabView | typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof MessageService | typeof ConfirmationService | {
5
+ export declare const SharedUiTsiProviders: (typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof TabView | typeof MessageService | typeof ConfirmationService | {
6
6
  provide: import("@angular/core").InjectionToken<unknown>;
7
7
  useValue: import("@angular/core").InjectionToken<unknown>;
8
8
  })[];
@@ -1,11 +1,11 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { EnvironmentInjector } from '@angular/core';
3
3
  import { Observable, Subject } from 'rxjs';
4
- import { IdentityManagerService } from './identity-manager.service';
4
+ import { logoutReasonEnum } from '../../enums/logout-reason-enum';
5
5
  import { LayoutService } from '../application/app.layout.service';
6
- import { IdentityPlatformAuthenticationService } from '../UserIdentity/identity-platform-authentication.service';
7
6
  import { ModuleCodeService } from '../module-code/module-code.service';
8
- import { logoutReasonEnum } from '../../enums/logout-reason-enum';
7
+ import { IdentityPlatformAuthenticationService } from '../UserIdentity/identity-platform-authentication.service';
8
+ import { IdentityManagerService } from './identity-manager.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class AuthorizationService {
11
11
  private httpClient;
@@ -27,15 +27,12 @@ export declare class AuthorizationService {
27
27
  */
28
28
  runLogoutInterval(): void;
29
29
  logout(reason: logoutReasonEnum): Promise<void>;
30
- getMenuItems(): Observable<any>;
30
+ getMenuItems(favoritesOnly?: boolean): Observable<any>;
31
+ toggleMenuFavorite(menuItemId: string): Observable<any>;
31
32
  startRefreshTokenTimer(jwt?: string | undefined): void;
32
33
  stopRefreshTokenTimer(): void;
33
34
  isAuthenticated(): boolean;
34
- /**permissions */
35
35
  checkPermission(permission: string): Promise<boolean>;
36
- /**
37
- * observables
38
- */
39
36
  getIpAddress(): Observable<{
40
37
  ip: string;
41
38
  }>;
@@ -18,6 +18,8 @@ export declare class IdentityManagerService {
18
18
  private isAuthTokenValid;
19
19
  parseAuthToken(token: string | null | undefined): AuthorizationToken | undefined;
20
20
  parseMyAuthToken(): AuthorizationToken;
21
+ saveFavoritesOnly(value: boolean): void;
22
+ getFavoritesOnly(): boolean;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<IdentityManagerService, never>;
22
24
  static ɵprov: i0.ɵɵInjectableDeclaration<IdentityManagerService>;
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsi-developpement/tsi-shared-ui",
3
- "version": "1.8.45",
3
+ "version": "1.8.46",
4
4
  "author": "TSI",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {