oip-common 0.0.14 → 0.0.16

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
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { OnInit, OnDestroy, WritableSignal, EventEmitter, Renderer2, PipeTransform } from '@angular/core';
3
3
  import { MessageService, ToastMessageOptions, MenuItem, SelectItem, ConfirmationService } from 'primeng/api';
4
4
  import { ActivatedRoute, QueryParamsHandling, IsActiveMatchOptions, Params, Router, UrlTree } from '@angular/router';
5
- import { TranslateService } from '@ngx-translate/core';
5
+ import { TranslateService, InterpolationParameters, Translation, TranslationObject } from '@ngx-translate/core';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Subject, Observable, Subscription } from 'rxjs';
8
8
  import { LoginResponse, AuthOptions, OidcSecurityService, LogoutAuthOptions, AbstractSecurityStorage, StsConfigHttpLoader } from 'angular-auth-oidc-client';
@@ -431,12 +431,11 @@ declare class UserService {
431
431
  }
432
432
 
433
433
  declare class AppTopbar {
434
- layoutService: LayoutService;
435
434
  items: MenuItem[];
436
435
  securityService: SecurityService;
437
436
  topBarService: TopBarService;
438
437
  userService: UserService;
439
- constructor(layoutService: LayoutService);
438
+ layoutService: LayoutService;
440
439
  toggleDarkMode(): void;
441
440
  logoutKeyDown($event: KeyboardEvent): void;
442
441
  static ɵfac: i0.ɵɵFactoryDeclaration<AppTopbar, never>;
@@ -444,7 +443,6 @@ declare class AppTopbar {
444
443
  }
445
444
 
446
445
  declare class FooterComponent {
447
- constructor();
448
446
  static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
449
447
  static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "app-footer", never, {}, {}, never, never, true, never>;
450
448
  }
@@ -813,7 +811,43 @@ declare class LogoComponent {
813
811
  static ɵcmp: i0.ɵɵComponentDeclaration<LogoComponent, "logo", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
814
812
  }
815
813
 
814
+ /**
815
+ * Service for managing translation loading in the application
816
+ */
817
+ declare class L10nService {
818
+ private loadedTranslations;
819
+ private httpClient;
820
+ private translateService;
821
+ private readonly primeNg;
822
+ private readonly layoutService;
823
+ /**
824
+ * Loads translations for a specific component
825
+ * @param component - Name of the component to load translations for
826
+ */
827
+ loadComponentTranslations(component: string): void;
828
+ /**
829
+ * Gets the translated value of a key (or an array of keys)
830
+ * @returns the translated key, or an object of translated keys
831
+ */
832
+ get(key: string): rxjs.Observable<any>;
833
+ /**
834
+ * Internal method to load translations from JSON files
835
+ * @param component - Component or translation namespace
836
+ * @param lang - Language code to load translations for
837
+ */
838
+ private loadTranslations;
839
+ /**
840
+ * Changes the lang currently used
841
+ */
842
+ use(selectedLanguage: string, key?: string): void;
843
+ init(langs: string[]): void;
844
+ instant(key: string | string[], interpolateParams?: InterpolationParameters): Translation | TranslationObject;
845
+ static ɵfac: i0.ɵɵFactoryDeclaration<L10nService, never>;
846
+ static ɵprov: i0.ɵɵInjectableDeclaration<L10nService>;
847
+ }
848
+
816
849
  declare class NotfoundComponent {
850
+ constructor(l10nService: L10nService);
817
851
  static ɵfac: i0.ɵɵFactoryDeclaration<NotfoundComponent, never>;
818
852
  static ɵcmp: i0.ɵɵComponentDeclaration<NotfoundComponent, "app-notfound", never, {}, {}, never, never, true, never>;
819
853
  }
@@ -884,6 +918,8 @@ interface MigrationDto {
884
918
  }
885
919
  declare class DbMigrationComponent extends BaseModuleComponent<NoSettingsDto, NoSettingsDto> implements OnInit, OnDestroy {
886
920
  data: MigrationDto[];
921
+ l10nService: L10nService;
922
+ constructor();
887
923
  ngOnInit(): Promise<void>;
888
924
  refreshAction(): Promise<void>;
889
925
  getData(): Promise<MigrationDto[]>;
@@ -892,37 +928,6 @@ declare class DbMigrationComponent extends BaseModuleComponent<NoSettingsDto, No
892
928
  static ɵcmp: i0.ɵɵComponentDeclaration<DbMigrationComponent, "db-migration", never, {}, {}, never, never, true, never>;
893
929
  }
894
930
 
895
- /**
896
- * Service for managing translation loading in the application
897
- */
898
- declare class L10nService {
899
- private loadedTranslations;
900
- private httpClient;
901
- private translateService;
902
- /**
903
- * Loads translations for a specific component
904
- * @param component - Name of the component to load translations for
905
- */
906
- loadComponentTranslations(component: string): Promise<void>;
907
- /**
908
- * Gets the translated value of a key (or an array of keys)
909
- * @returns the translated key, or an object of translated keys
910
- */
911
- get(key: string): Promise<rxjs.Observable<any>>;
912
- /**
913
- * Internal method to load translations from JSON files
914
- * @param component - Component or translation namespace
915
- * @param lang - Language code to load translations for
916
- */
917
- private loadTranslations;
918
- /**
919
- * Changes the lang currently used
920
- */
921
- use(selectedLanguage: string): void;
922
- static ɵfac: i0.ɵɵFactoryDeclaration<L10nService, never>;
923
- static ɵprov: i0.ɵɵInjectableDeclaration<L10nService>;
924
- }
925
-
926
931
  interface L10n {
927
932
  confirm: {
928
933
  header: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [