@alauda-fe/common 1.4.9 → 1.4.11
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/core/pipes/parse-json-translate.pipe.d.ts +1 -1
- package/core/services/plugin-util.service.d.ts +31 -0
- package/core/services/public-api.d.ts +1 -0
- package/core/types/k8s/crd.d.ts +3 -2
- package/core/types/resource-definitions.d.ts +21 -1
- package/esm2022/api/project-api.service.mjs +7 -2
- package/esm2022/chart/common/axis/x-axis-ticks.component.mjs +8 -13
- package/esm2022/chart/common/legend/legend.component.mjs +5 -6
- package/esm2022/chart/common/tooltip/tooltip.component.mjs +6 -7
- package/esm2022/code/code-display-dialog/component.mjs +3 -3
- package/esm2022/core/pipes/parse-json-translate.pipe.mjs +3 -4
- package/esm2022/core/services/plugin-util.service.mjs +60 -0
- package/esm2022/core/services/public-api.mjs +2 -1
- package/esm2022/core/types/k8s/crd.mjs +1 -1
- package/esm2022/core/types/resource-definitions.mjs +11 -1
- package/esm2022/core/utils/resources.mjs +2 -2
- package/esm2022/editable/editable.component.mjs +5 -17
- package/esm2022/k8s-resource-list/footer/component.mjs +2 -2
- package/esm2022/multi-search/action-input/component.mjs +83 -51
- package/esm2022/multi-search/form/component.mjs +33 -16
- package/esm2022/multi-search/multi-search-tags/component.mjs +7 -5
- package/esm2022/page-scaffold/navigation/lottie-icons/animation-data.mjs +3 -1
- package/esm2022/page-scaffold/navigation/lottie-icons/animations/observe.json +1 -0
- package/esm2022/page-scaffold/page-header/common-layout/context.service.mjs +6 -11
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +12 -13
- package/esm2022/table/component.mjs +6 -6
- package/esm2022/translate/i18n-assets-loader.mjs +4 -4
- package/esm2022/translate/i18n-config.mjs +4 -1
- package/esm2022/translate/translate.pipe.mjs +17 -23
- package/esm2022/translate/translate.service.mjs +14 -24
- package/esm2022/view-chart/legend/legend.component.mjs +5 -6
- package/esm2022/view-chart/view-chart.component.mjs +7 -9
- package/esm2022/view-zchart/legend/legend.component.mjs +5 -6
- package/esm2022/view-zchart/view-zchart.component.mjs +8 -15
- package/esm2022/widget/field-set/item/component.mjs +2 -2
- package/multi-search/action-input/component.d.ts +4 -1
- package/multi-search/form/component.d.ts +4 -1
- package/multi-search/multi-search-tags/component.d.ts +2 -1
- package/package.json +1 -1
- package/page-scaffold/page-header/common-layout/context.service.d.ts +1 -2
- package/styles/markdown-body.scss +4 -2
- package/translate/i18n-config.d.ts +1 -0
- package/translate/translate.pipe.d.ts +1 -2
- package/translate/translate.service.d.ts +8 -10
|
@@ -4,19 +4,17 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
6
|
import { OnDestroy } from '@angular/core';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
7
|
+
import { Observable, Subject } from 'rxjs';
|
|
8
8
|
import { TranslateKey, TranslateOptions, Translation, Translations } from './types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class TranslateService implements OnDestroy {
|
|
11
11
|
private readonly http;
|
|
12
12
|
private readonly baseHref;
|
|
13
|
-
|
|
14
|
-
get remoteLoaded(): boolean;
|
|
15
|
-
readonly remoteLoaded$: Observable<boolean | undefined>;
|
|
13
|
+
readonly translationsAdded$: Subject<void>;
|
|
16
14
|
private readonly destroy$$;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
readonly translationsList: Array<Readonly<Translations>>;
|
|
16
|
+
readonly remoteTranslationsList: Array<Readonly<Translations>>;
|
|
17
|
+
readonly options: TranslateOptions;
|
|
20
18
|
locale: string;
|
|
21
19
|
readonly locale$: Observable<string>;
|
|
22
20
|
get locales(): string[];
|
|
@@ -28,13 +26,13 @@ export declare class TranslateService implements OnDestroy {
|
|
|
28
26
|
* @param data - 根据翻译上下文数据获取翻译内容,翻译项不存在直接返回 key 文本
|
|
29
27
|
* @param ignoreNonExist - 开发环境是否忽视不存在的翻译项
|
|
30
28
|
*/
|
|
31
|
-
get(key: TranslateKey, data?: unknown
|
|
29
|
+
get(key: TranslateKey, data?: unknown): string;
|
|
32
30
|
/**
|
|
33
31
|
* 直接返回翻译文本模板
|
|
34
32
|
* @param key - 翻译key
|
|
35
33
|
* @param ignoreNonExist - 开发环境是否忽视不存在的翻译项
|
|
36
34
|
*/
|
|
37
|
-
getRaw(key: TranslateKey
|
|
35
|
+
getRaw(key: TranslateKey): string;
|
|
38
36
|
/**
|
|
39
37
|
* 根据 `locales` 循环切换当前区域设置
|
|
40
38
|
*/
|
|
@@ -57,7 +55,7 @@ export declare class TranslateService implements OnDestroy {
|
|
|
57
55
|
private _getValue;
|
|
58
56
|
private _getWithFallback;
|
|
59
57
|
private _getBase;
|
|
60
|
-
|
|
58
|
+
protected _get(key: string, locale?: string): string;
|
|
61
59
|
private _compareKeys;
|
|
62
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateService, [null, null, { optional: true; }, { optional: true; }]>;
|
|
63
61
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateService>;
|