@fuentis/phoenix-ui 0.0.9-alpha.52 → 0.0.9-alpha.53
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/fesm2022/fuentis-phoenix-ui.mjs +19 -94
- package/fesm2022/fuentis-phoenix-ui.mjs.map +1 -1
- package/lib/components/data-table/utils/dataTable.interface.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/lib/services/library-config.token.d.ts +0 -19
- package/lib/services/library-translate.service.d.ts +0 -21
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export * from './lib/components/shell/shell.component';
|
|
|
8
8
|
export * from './lib/components/data-table/phoenix-data-table/phoenix-data-table.component';
|
|
9
9
|
export * from './lib/models/shell-config.model';
|
|
10
10
|
export * from './lib/components/data-table/utils/dataTable.enum';
|
|
11
|
-
export * from './lib/services/library-translate.service';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/** Struktura prevoda za više jezika */
|
|
3
|
-
export interface LibraryTranslations {
|
|
4
|
-
[lang: string]: {
|
|
5
|
-
managementModules?: string;
|
|
6
|
-
supportModules?: string;
|
|
7
|
-
guide?: string;
|
|
8
|
-
website?: string;
|
|
9
|
-
editSettings?: string;
|
|
10
|
-
logout?: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/** Konfiguracija koju korisnik može da prosledi u biblioteci */
|
|
14
|
-
export interface LibraryConfig {
|
|
15
|
-
defaultLanguage?: string;
|
|
16
|
-
translations?: LibraryTranslations;
|
|
17
|
-
}
|
|
18
|
-
/** InjectionToken koji omogućava korisnicima da preglase podrazumevane prevode */
|
|
19
|
-
export declare const LIBRARY_CONFIG: InjectionToken<LibraryConfig>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { LibraryConfig } from './library-config.token';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LibraryTranslationService {
|
|
5
|
-
private translateService?;
|
|
6
|
-
private config?;
|
|
7
|
-
private translations;
|
|
8
|
-
private activeLanguage;
|
|
9
|
-
private labels$;
|
|
10
|
-
constructor(translateService?: TranslateService | undefined, config?: LibraryConfig | undefined);
|
|
11
|
-
/** Promena jezika */
|
|
12
|
-
setTranslation(lang: string): void;
|
|
13
|
-
/** Dohvatanje prevoda kao Observable */
|
|
14
|
-
getTranslations(): import("rxjs").Observable<{
|
|
15
|
-
[key: string]: string;
|
|
16
|
-
}>;
|
|
17
|
-
/** Dohvata specifičan ključ iz prevoda */
|
|
18
|
-
translate(key: string): string;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LibraryTranslationService, [{ optional: true; }, { optional: true; }]>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LibraryTranslationService>;
|
|
21
|
-
}
|