@alauda/ui 7.3.3-beta.38 → 7.3.3-beta.39
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/esm2022/i18n/i18n.pipe.mjs +1 -1
- package/esm2022/i18n/i18n.service.mjs +1 -1
- package/esm2022/index.mjs +2 -1
- package/esm2022/types.mjs +1 -1
- package/fesm2022/alauda-ui.mjs +1 -1
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/i18n/i18n.pipe.d.ts +1 -2
- package/i18n/i18n.service.d.ts +1 -2
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +0 -1
package/i18n/i18n.pipe.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
2
|
import { I18nService } from './i18n.service';
|
|
3
|
-
import { StringMap } from 'src/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class I18nPipe implements PipeTransform, OnDestroy {
|
|
6
5
|
private readonly i18n;
|
|
7
6
|
private readonly cdr;
|
|
8
7
|
private readonly destroy$$;
|
|
9
8
|
constructor(i18n: I18nService, cdr: ChangeDetectorRef);
|
|
10
|
-
transform(value: any, data?:
|
|
9
|
+
transform(value: any, data?: Record<string, string>): string;
|
|
11
10
|
ngOnDestroy(): void;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
|
|
13
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "auiI18n", true>;
|
package/i18n/i18n.service.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { I18NInterface } from './i18n.type';
|
|
3
|
-
import { StringMap } from 'src/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class I18nService {
|
|
6
5
|
private _i18n;
|
|
@@ -9,7 +8,7 @@ export declare class I18nService {
|
|
|
9
8
|
constructor(_i18n: I18NInterface);
|
|
10
9
|
setI18n(i18n: I18NInterface): void;
|
|
11
10
|
get i18n(): I18NInterface;
|
|
12
|
-
translate(key: string, data?:
|
|
11
|
+
translate(key: string, data?: Record<string, string>, ignoreNonExist?: boolean): string;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
|
|
14
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
|
|
15
14
|
}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED