@mgremy/core 0.17.0 → 0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"mgremy-core.mjs","sources":["../../../../libs/core/src/lib/app-config.service.ts","../../../../libs/core/src/lib/environment.service.ts","../../../../libs/core/src/lib/storage.service.ts","../../../../libs/core/src/lib/theme.service.ts","../../../../libs/core/src/lib/translation.service.ts","../../../../libs/core/src/mgremy-core.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const APP_CONFIG_SERVICE = new InjectionToken<IAppConfigService>('APP_CONFIG_SERVICE');\n\nexport interface IAppConfigService {\n get appUrl(): string;\n get appBaseHref(): string;\n get apiUrl(): string;\n get defaultLanguage(): string;\n get authUrl(): string;\n get authRealm(): string;\n get authClientId(): string;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_ENVIRONMENT_SERVICE = new InjectionToken<Environment>('APP_ENVIRONMENT_SERVICE');\n\nexport interface Environment {\n production: boolean;\n appUrl: string;\n appBaseHref: string;\n apiUrl: string;\n defaultLanguage: string;\n authUrl: string;\n authRealm: string;\n authClientId: string;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_STORAGE_SERVICE = new InjectionToken<IStorageService>('APP_STORAGE_SERVICE');\n\nexport interface IStorageService {\n getItem(key: string): string | undefined;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n clear(): void;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_THEME_SERVICE = new InjectionToken<IAppThemeService>('APP_THEME_SERVICE');\n\nexport type AppTheme = 'light' | 'dark';\n\nexport interface IAppThemeService {\n getTheme(): AppTheme;\n setTheme(value: AppTheme): void;\n}\n","import { InjectionToken, Signal } from '@angular/core';\n\nexport const APP_TRANSLATION_SERVICE = new InjectionToken<ITranslationService>(\n 'APP_TRANSLATION_SERVICE'\n);\n\nexport interface ITranslationService {\n currentLanguage: Signal<string>;\n\n init(): void;\n setLanguage(code: string): void;\n\n instant(key: string): string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAEa,kBAAkB,GAAG,IAAI,cAAc,CAAoB,oBAAoB;;MCA/E,uBAAuB,GAAG,IAAI,cAAc,CAAc,yBAAyB;;MCAnF,mBAAmB,GAAG,IAAI,cAAc,CAAkB,qBAAqB;;MCA/E,iBAAiB,GAAG,IAAI,cAAc,CAAmB,mBAAmB;;MCA5E,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB;;ACH3B;;AAEG;;;;"}
1
+ {"version":3,"file":"mgremy-core.mjs","sources":["../../../../libs/core/src/lib/app-config.ts","../../../../libs/core/src/lib/environment.ts","../../../../libs/core/src/lib/storage.ts","../../../../libs/core/src/lib/theme.ts","../../../../libs/core/src/lib/translation.ts","../../../../libs/core/src/mgremy-core.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const APP_CONFIG_SERVICE = new InjectionToken<IAppConfigService>('APP_CONFIG_SERVICE');\n\nexport interface IAppConfigService {\n get appUrl(): string;\n get appBaseHref(): string;\n get apiUrl(): string;\n get defaultLanguage(): string;\n get authUrl(): string;\n get authRealm(): string;\n get authClientId(): string;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_ENVIRONMENT_SERVICE = new InjectionToken<Environment>('APP_ENVIRONMENT_SERVICE');\n\nexport interface Environment {\n production: boolean;\n appUrl: string;\n appBaseHref: string;\n apiUrl: string;\n defaultLanguage: string;\n authUrl: string;\n authRealm: string;\n authClientId: string;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_STORAGE_SERVICE = new InjectionToken<IStorageService>('APP_STORAGE_SERVICE');\n\nexport interface IStorageService {\n getItem(key: string): string | undefined;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n clear(): void;\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const APP_THEME_SERVICE = new InjectionToken<IAppThemeService>('APP_THEME_SERVICE');\n\nexport type AppTheme = 'light' | 'dark';\n\nexport interface IAppThemeService {\n getTheme(): AppTheme;\n setTheme(value: AppTheme): void;\n}\n","import { InjectionToken, Signal } from '@angular/core';\n\nexport const APP_TRANSLATION_SERVICE = new InjectionToken<ITranslationService>(\n 'APP_TRANSLATION_SERVICE'\n);\n\nexport interface ITranslationService {\n currentLanguage: Signal<string>;\n\n init(): void;\n setLanguage(code: string): void;\n\n instant(key: string, params?: Record<string, string>): string;\n instant(key: string[], params?: Record<string, string>): string[];\n instant(key: string | string[], params?: Record<string, string>): string | string[];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAEa,kBAAkB,GAAG,IAAI,cAAc,CAAoB,oBAAoB;;MCA/E,uBAAuB,GAAG,IAAI,cAAc,CAAc,yBAAyB;;MCAnF,mBAAmB,GAAG,IAAI,cAAc,CAAkB,qBAAqB;;MCA/E,iBAAiB,GAAG,IAAI,cAAc,CAAmB,mBAAmB;;MCA5E,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB;;ACH3B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgremy/core",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,7 +43,9 @@ interface ITranslationService {
43
43
  currentLanguage: Signal<string>;
44
44
  init(): void;
45
45
  setLanguage(code: string): void;
46
- instant(key: string): string;
46
+ instant(key: string, params?: Record<string, string>): string;
47
+ instant(key: string[], params?: Record<string, string>): string[];
48
+ instant(key: string | string[], params?: Record<string, string>): string | string[];
47
49
  }
48
50
 
49
51
  export { APP_CONFIG_SERVICE, APP_ENVIRONMENT_SERVICE, APP_STORAGE_SERVICE, APP_THEME_SERVICE, APP_TRANSLATION_SERVICE };