@igo2/sdg-core 1.0.0-next.91 → 1.0.0-next.93
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/igo2-sdg-core.mjs +2 -98
- package/fesm2022/igo2-sdg-core.mjs.map +1 -1
- package/package.json +1 -2
- package/public-api.d.ts +0 -2
- package/src/layout/bootstrap-layout.scss +637 -5062
- package/translation/index.d.ts +0 -5
- package/translation/translation-mock.provider.d.ts +0 -12
- package/translation/translation.interface.d.ts +0 -1
- package/translation/translation.provider.d.ts +0 -26
- package/translation/translation.service.d.ts +0 -13
- package/translation/translation.utils.d.ts +0 -7
- package/utils/coercion.d.ts +0 -2
- package/utils/index.d.ts +0 -1
package/translation/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Language } from './translation.interface';
|
|
4
|
-
import { TranslationFeature, TranslationFeatureKind } from './translation.provider';
|
|
5
|
-
import { TranslationService } from './translation.service';
|
|
6
|
-
export declare function withIgo2TranslationMock(): TranslationFeature<TranslationFeatureKind.Translation>;
|
|
7
|
-
export declare class TranslationServiceMock implements TranslationService {
|
|
8
|
-
lang: WritableSignal<Language>;
|
|
9
|
-
get(key: string | string[]): string;
|
|
10
|
-
getAsync(key: string | string[]): Observable<string>;
|
|
11
|
-
setLanguage(): void;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Language = 'fr' | 'en';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, InjectionToken, Provider, Type } from '@angular/core';
|
|
2
|
-
import { LanguageOptions } from '@igo2/core/language';
|
|
3
|
-
import { TitleResolver } from '../router';
|
|
4
|
-
import { TranslationService } from './translation.service';
|
|
5
|
-
export interface TranslationFeature<KindT extends TranslationFeatureKind> {
|
|
6
|
-
kind: KindT;
|
|
7
|
-
providers: (Provider | EnvironmentProviders)[];
|
|
8
|
-
}
|
|
9
|
-
export declare enum TranslationFeatureKind {
|
|
10
|
-
Translation = 0,
|
|
11
|
-
RouterTitleResolver = 1
|
|
12
|
-
}
|
|
13
|
-
export declare function provideTranslatedLabels(token: InjectionToken<unknown>, key: string): {
|
|
14
|
-
provide: InjectionToken<unknown>;
|
|
15
|
-
useFactory: (translationService: TranslationService) => any;
|
|
16
|
-
deps: (typeof TranslationService)[];
|
|
17
|
-
};
|
|
18
|
-
export declare function provideTranslation(...features: TranslationFeature<TranslationFeatureKind>[]): EnvironmentProviders;
|
|
19
|
-
/** Base on the @ngx-translate library with the IgoLanguageModule */
|
|
20
|
-
export declare function withIgo2Translation(options: LanguageOptions, service: Type<TranslationService>, defaultLanguage?: string): TranslationFeature<TranslationFeatureKind.Translation>;
|
|
21
|
-
/**
|
|
22
|
-
* Provide a translater for the Route title.
|
|
23
|
-
* Some components is base on the title of the route and
|
|
24
|
-
* this Resolver will allow to automatically resolve the translation
|
|
25
|
-
**/
|
|
26
|
-
export declare function withRouterTitleResolver<T>(resolver: Type<TitleResolver<T>>): TranslationFeature<TranslationFeatureKind.RouterTitleResolver>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Language } from './translation.interface';
|
|
4
|
-
export type Translation = string | Translation[] | TranslationObject | any;
|
|
5
|
-
export interface TranslationObject {
|
|
6
|
-
[key: string]: Translation;
|
|
7
|
-
}
|
|
8
|
-
export declare abstract class TranslationService {
|
|
9
|
-
abstract lang: WritableSignal<Language>;
|
|
10
|
-
abstract get(key: string | string[], interpolateParams?: Record<string, unknown>): Translation | TranslationObject;
|
|
11
|
-
abstract getAsync(key: string | string[], interpolateParams?: Record<string, unknown>): Observable<Translation | TranslationObject>;
|
|
12
|
-
abstract setLanguage(lang: Language): void;
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param routerUrl
|
|
4
|
-
* @param lang
|
|
5
|
-
* @param strategy default to 'segment' set the first segment of the path (e.g., '/en/alerts' => 'en')
|
|
6
|
-
*/
|
|
7
|
-
export declare function parseUrlWithLanguage(routerUrl: string, lang: string): [url: string, params: string | undefined];
|
package/utils/coercion.d.ts
DELETED
package/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './coercion';
|