@nettyapps/ntybase 0.1.5 → 0.1.7

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit, OnChanges, SimpleChanges, DoCheck, OnDestroy, ElementRef } from '@angular/core';
2
+ import { OnInit, OnChanges, SimpleChanges, DoCheck, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { Observable, Subject } from 'rxjs';
5
5
  import { Theme as Theme$1, GridApi, GridOptions, StatusPanelDef, GridReadyEvent } from 'ag-grid-community';
@@ -122,6 +122,7 @@ declare class CommonService {
122
122
  private datePipe;
123
123
  private decimalPipe;
124
124
  private alertService;
125
+ private translate;
125
126
  protected dialog: MatDialog;
126
127
  rightSidenavOpen: _angular_core.WritableSignal<boolean>;
127
128
  toggleRightSidenav(open: boolean): void;
@@ -219,6 +220,7 @@ declare class CommonService {
219
220
  /** User is not allowed to access the page
220
221
  *
221
222
  */
223
+ translateService: TranslateService;
222
224
  userNotAllowedToRead(title?: string, message?: string): Promise<void>;
223
225
  userNotAllowedToAdd(title?: string, message?: string): Promise<void>;
224
226
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonService, never>;
@@ -779,12 +781,17 @@ declare class HttpError404 {
779
781
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<HttpError404, "ntybase-http-error404", never, {}, {}, never, never, true, never>;
780
782
  }
781
783
 
782
- declare class LeftSidenav implements OnInit {
784
+ declare class LeftSidenav implements OnInit, AfterViewInit {
783
785
  private authService;
784
786
  private router;
785
787
  private menuService;
786
788
  private commonService;
787
789
  private environmentProxy;
790
+ private credentialsService;
791
+ private imageService;
792
+ private elementRef;
793
+ username: _angular_core.WritableSignal<string>;
794
+ profileImage: _angular_core.WritableSignal<string>;
788
795
  version: string | null;
789
796
  isMinimized: _angular_core.InputSignal<boolean>;
790
797
  toggleMinimize: _angular_core.OutputEmitterRef<void>;
@@ -795,6 +802,11 @@ declare class LeftSidenav implements OnInit {
795
802
  originalMenuItems: _angular_core.WritableSignal<any[]>;
796
803
  constructor();
797
804
  ngOnInit(): void;
805
+ ngAfterViewInit(): void;
806
+ loadUserInfo(): void;
807
+ generateProfileImage(username: string): void;
808
+ private getCssVariableValue;
809
+ private getInitials;
798
810
  processMenuItems(apiResponse: any): any[];
799
811
  filteredMenuItems: _angular_core.Signal<any[]>;
800
812
  private filterMenuItems;
@@ -809,12 +821,15 @@ interface AppTheme {
809
821
  icon: string;
810
822
  }
811
823
  declare class Theme {
824
+ private readonly THEME_STORAGE_KEY;
812
825
  private appTheme;
813
826
  private themes;
814
827
  selectedTheme: _angular_core.Signal<AppTheme | undefined>;
828
+ constructor();
815
829
  getThemes(): AppTheme[];
816
830
  setTheme(theme: 'light' | 'dark'): void;
817
- constructor();
831
+ private getSavedTheme;
832
+ private saveTheme;
818
833
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Theme, never>;
819
834
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<Theme>;
820
835
  }
@@ -826,11 +841,14 @@ interface ColorTheme {
826
841
  displayName: string;
827
842
  }
828
843
  declare class ColorPalette {
844
+ private readonly THEME_STORAGE_KEY;
829
845
  private themes;
830
846
  currentTheme: _angular_core.WritableSignal<ColorTheme | null>;
831
847
  setThemes(customThemes: ColorTheme[]): void;
832
848
  getThemes(): ColorTheme[];
833
849
  setTheme(themeId: string): void;
850
+ private getSavedTheme;
851
+ private saveTheme;
834
852
  updateThemeClass: _angular_core.EffectRef;
835
853
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPalette, never>;
836
854
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColorPalette>;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nettyapps/ntybase",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "peerDependencies": {
5
- "@angular/common": "^20.1.7",
6
- "@angular/core": "^20.1.7"
5
+ "@angular/common": "^20.3.11",
6
+ "@angular/core": "^20.3.11"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
@@ -69,6 +69,9 @@
69
69
  "@unsavedChangesConfirm" : "You have unsaved changes. Are you sure you want to leave?",
70
70
  "@updateFailed" : "Update failed",
71
71
  "@username" : "User name",
72
+ "@accessLimitation" : "Access accessLimitation",
73
+ "@userCannotAccessThisScreen":"User cannot access this screen",
74
+ "@userCannotAddNewRecord":"User cannot add new record",
72
75
  "mfaCode" : "Code",
73
76
  "mfaCode is required" : "MFA Code is required",
74
77
  "password is required" : "Password is required",
@@ -69,6 +69,9 @@
69
69
  "@unsavedChangesConfirm" : "Kaydedilmemiş değişiklikler var. Ayrılmak istediğinize emin misiniz?",
70
70
  "@updateFailed" : "Güncelleme başarısız oldu",
71
71
  "@username" : "Kullanıcı adı",
72
+ "@accessLimitation" : "Erişim limiti",
73
+ "@userCannotAccessThisScreen":"Kullanıcı bu ekrana erişemez",
74
+ "@userCannotAddNewRecord":"Kullanıcı yeni kayıt ekleyemez",
72
75
  "mfaCode" : "Güvenlik kodu",
73
76
  "mfaCode is required" : "Güvenlik kodu zorunludur",
74
77
  "password is required" : "Şifre zorunludur",