@alauda-fe/common 1.4.9 → 1.4.11-prod-4.0.1-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.
- package/assets/icons/OpenCost.svg +1 -0
- package/core/constants/tokens.d.ts +3 -0
- 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/abnormal-page/abnormal-page.component.mjs +1 -1
- package/esm2022/api/project-api.service.mjs +7 -2
- package/esm2022/array-form-table/form/component.mjs +1 -1
- package/esm2022/array-form-table/key-value-form/component.mjs +1 -1
- package/esm2022/array-form-table/key-value-table/component.mjs +1 -1
- package/esm2022/array-form-table/string-array-form/component.mjs +1 -1
- package/esm2022/async-data/error-page/component.mjs +1 -1
- package/esm2022/async-data/page-state/component.mjs +1 -1
- package/esm2022/business/notification-disabled-container/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/cluster-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/cluster-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/icon/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/mesh-group-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-page/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-list/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-page/component.mjs +1 -1
- package/esm2022/business/resource-select/exports/project-selector/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/data-grid/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/meshgroup-list/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/no-data/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/resource-dashboard/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/selector-popup/component.mjs +1 -1
- package/esm2022/chart/common/axis/axis-label.component.mjs +1 -1
- package/esm2022/chart/common/axis/x-axis-ticks.component.mjs +8 -13
- package/esm2022/chart/common/axis/x-axis.component.mjs +1 -1
- package/esm2022/chart/common/axis/x-plot-lines.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-axis-ticks.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-axis.component.mjs +1 -1
- package/esm2022/chart/common/axis/y-plot-lines.component.mjs +1 -1
- package/esm2022/chart/common/chart/chart.component.mjs +1 -1
- package/esm2022/chart/common/legend/legend.component.mjs +6 -7
- package/esm2022/chart/common/range-area/range-area.component.mjs +1 -1
- package/esm2022/chart/common/reference-area/reference-area.component.mjs +1 -1
- package/esm2022/chart/common/series/area-series.component.mjs +1 -1
- package/esm2022/chart/common/series/bar-path.component.mjs +1 -1
- package/esm2022/chart/common/series/bar-series.component.mjs +1 -1
- package/esm2022/chart/common/series/line-series.component.mjs +1 -1
- package/esm2022/chart/common/tooltip/tooltip.component.mjs +7 -8
- package/esm2022/chart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/code/code-display-dialog/component.mjs +4 -4
- package/esm2022/code/k8s-yaml-display-dialog/component.mjs +1 -1
- package/esm2022/code/resource-yaml-display/component.mjs +1 -1
- package/esm2022/core/components/tree/node/component.mjs +1 -1
- package/esm2022/core/components/tree/tree/component.mjs +1 -1
- package/esm2022/core/constants/tokens.mjs +4 -1
- package/esm2022/core/directives/readonly-field.directive.mjs +1 -1
- package/esm2022/core/guards/intercept-deactivate.guard.mjs +2 -1
- 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/custom-columns-setting/component.mjs +1 -1
- package/esm2022/disabled-container/disabled-container.component.mjs +1 -1
- package/esm2022/editable/editable.component.mjs +5 -17
- package/esm2022/editable-text/component.mjs +1 -1
- package/esm2022/exec/placeholder/component.mjs +1 -1
- package/esm2022/exec/terminal/component.mjs +1 -1
- package/esm2022/exec/terminal-group/component.mjs +1 -1
- package/esm2022/feature-gate-forbidden/component/component.mjs +1 -1
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +1 -1
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +1 -1
- package/esm2022/form/labels-editor/component.mjs +1 -1
- package/esm2022/form/taints-editor/component.mjs +1 -1
- package/esm2022/form/upload-file/component.mjs +1 -1
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-actions.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-canvas.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-link.component.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-links.component.mjs +1 -1
- package/esm2022/grid-layout/components/grid/component.mjs +1 -1
- package/esm2022/grid-layout/components/grid-items/component.mjs +1 -1
- package/esm2022/help-document/component.mjs +1 -1
- package/esm2022/help-document/directive.mjs +75 -2
- package/esm2022/k8s-resource-list/footer/component.mjs +3 -3
- package/esm2022/k8s-shared/resource-mark/k8s-resource-mark.component.mjs +1 -1
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +1 -1
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +1 -1
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +1 -1
- package/esm2022/lazy-component/lazy-load-component.mjs +1 -1
- package/esm2022/license/license-error/component.mjs +1 -1
- package/esm2022/list-display/component.mjs +1 -1
- package/esm2022/metric-chart/metric-chart.component.mjs +1 -1
- package/esm2022/metric-chart/metric-time-pick.mjs +1 -1
- package/esm2022/multi-search/action-input/component.mjs +83 -51
- package/esm2022/multi-search/form/component.mjs +34 -17
- package/esm2022/multi-search/multi-search-tags/component.mjs +8 -6
- package/esm2022/mutable/mosaic/mosaic.component.mjs +1 -1
- package/esm2022/notification/feedback-notification/component.mjs +1 -1
- package/esm2022/overview-banner/overview-banner.component.mjs +1 -1
- package/esm2022/page-guard/component/component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/lottie-icons/animation-data.mjs +3 -1
- package/esm2022/page-scaffold/navigation/lottie-icons/animations/advance.json +1 -0
- package/esm2022/page-scaffold/navigation/lottie-icons/animations/inference_service.json +1 -0
- package/esm2022/page-scaffold/navigation/lottie-icons/animations/observe.json +1 -0
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-ul/nav-item-ul.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +1 -1
- package/esm2022/page-scaffold/page/notices/maintenance.component.mjs +1 -1
- package/esm2022/page-scaffold/page/notices/notice.component.mjs +1 -1
- package/esm2022/page-scaffold/page/page.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/common-layout/context.service.mjs +6 -11
- package/esm2022/page-scaffold/page-header/common-layout/namespace-select/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +15 -16
- package/esm2022/page-scaffold/page-header/component.mjs +7 -8
- package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/header-notify/component/header-notify.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/header-notify/component/notification-list/notification-list.component.mjs +1 -1
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +7 -13
- package/esm2022/page-scaffold/page-header/help-menu/module.mjs +6 -3
- package/esm2022/pie-derivative-chart/donut-status/component.mjs +1 -1
- package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +1 -1
- package/esm2022/pod-status/component.mjs +1 -1
- package/esm2022/searchable-selector/component.mjs +1 -1
- package/esm2022/skeleton/item/component.mjs +1 -1
- package/esm2022/skeleton/nav-skeleton/component.mjs +1 -1
- package/esm2022/table/component.mjs +7 -7
- package/esm2022/translate/i18n-assets-loader.mjs +4 -4
- package/esm2022/translate/i18n-config.mjs +4 -1
- package/esm2022/translate/translate.pipe.mjs +17 -21
- package/esm2022/translate/translate.service.mjs +14 -24
- package/esm2022/view-chart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-chart/legend/legend.component.mjs +6 -7
- package/esm2022/view-chart/view-chart.component.mjs +8 -10
- package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-zchart/legend/legend.component.mjs +6 -7
- package/esm2022/view-zchart/view-zchart.component.mjs +9 -16
- package/esm2022/widget/card-section/card-section.component.mjs +1 -1
- package/esm2022/widget/confirm-delete/confirm-delete.component.mjs +1 -1
- package/esm2022/widget/current-time/component.mjs +1 -1
- package/esm2022/widget/date-range-picker/component.mjs +1 -1
- package/esm2022/widget/field-set/column/component.mjs +2 -2
- package/esm2022/widget/field-set/group/component.mjs +1 -1
- package/esm2022/widget/field-set/item/component.mjs +3 -3
- package/esm2022/widget/foldable-block/component.mjs +1 -1
- package/esm2022/widget/foldable-item-in-table/component.mjs +1 -1
- package/esm2022/widget/loading-mask/loading-mask.component.mjs +1 -1
- package/esm2022/widget/password-input/component.mjs +1 -1
- package/esm2022/widget/relative-time/component.mjs +1 -1
- package/esm2022/widget/resource-label/component.mjs +1 -1
- package/esm2022/widget/resource-multi-select/component.mjs +1 -1
- package/esm2022/widget/search-panel/component.mjs +1 -1
- package/esm2022/widget/search-panel/search-item/component.mjs +1 -1
- package/esm2022/widget/status-icon/status-icon.component.mjs +1 -1
- package/esm2022/widget/tags-label/component.mjs +1 -1
- package/esm2022/widget/terminating-tag/component.mjs +1 -1
- package/esm2022/widget/text-ellipsis/component.mjs +1 -1
- package/esm2022/widget/text-with-url/component.mjs +1 -1
- package/esm2022/widget/zero-state/zero-state.component.mjs +1 -1
- package/esm2022/workload-status-icon/component.mjs +1 -1
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +1 -1
- package/esm2022/xterm/xterm.component.mjs +1 -1
- package/help-document/directive.d.ts +28 -1
- 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/page-scaffold/page-header/component.d.ts +2 -3
- package/page-scaffold/page-header/help-menu/component/component.d.ts +3 -4
- package/page-scaffold/page-header/help-menu/module.d.ts +4 -3
- package/styles/markdown-body.scss +4 -2
- package/styles/tailwind-preset.scss +1 -1
- package/translate/i18n-config.d.ts +1 -0
- package/translate/translate.pipe.d.ts +1 -2
- package/translate/translate.service.d.ts +8 -10
|
@@ -14,7 +14,9 @@ export declare class MultiSearchActionInputComponent extends BaseResourceFormCom
|
|
|
14
14
|
isEditing: boolean;
|
|
15
15
|
hidden: boolean;
|
|
16
16
|
hidden$: Observable<boolean>;
|
|
17
|
+
autoScroll: boolean;
|
|
17
18
|
conditionConfig: SearchConditionConfig[];
|
|
19
|
+
showFootAction: boolean;
|
|
18
20
|
conditionConfig$: Observable<SearchConditionConfig[]>;
|
|
19
21
|
existingConditions: SearchConditionModel[];
|
|
20
22
|
existingConditions$: Observable<SearchConditionModel[]>;
|
|
@@ -90,6 +92,7 @@ export declare class MultiSearchActionInputComponent extends BaseResourceFormCom
|
|
|
90
92
|
private changeToEditing;
|
|
91
93
|
inputFocus(): void;
|
|
92
94
|
inputKeydown(e: KeyboardEvent): void;
|
|
95
|
+
confirmSelection(): void;
|
|
93
96
|
private changeToEditingIfNeed;
|
|
94
97
|
private resolveTabEvent;
|
|
95
98
|
private resolveArrowEvent;
|
|
@@ -115,5 +118,5 @@ export declare class MultiSearchActionInputComponent extends BaseResourceFormCom
|
|
|
115
118
|
isConditionSelected(current: string, conditionsModel: string): boolean;
|
|
116
119
|
isValueSelected: (current: string, conditionsModel: string, condition: SearchConditionModel) => boolean;
|
|
117
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSearchActionInputComponent, never>;
|
|
118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchActionInputComponent, "acl-multi-search-action-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "isEditing": { "alias": "isEditing"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; "existingConditions": { "alias": "existingConditions"; "required": false; }; }, { "completed": "completed"; "editing": "editing"; "delete": "delete"; "search": "search"; }, never, never, true, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchActionInputComponent, "acl-multi-search-action-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "isEditing": { "alias": "isEditing"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "autoScroll": { "alias": "autoScroll"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; "showFootAction": { "alias": "showFootAction"; "required": false; }; "existingConditions": { "alias": "existingConditions"; "required": false; }; }, { "completed": "completed"; "editing": "editing"; "delete": "delete"; "search": "search"; }, never, never, true, never>;
|
|
119
122
|
}
|
|
@@ -13,7 +13,10 @@ export declare class MultiSearchComponent implements OnDestroy {
|
|
|
13
13
|
conditions$: Observable<SearchCondition[]>;
|
|
14
14
|
conditionConfig: SearchConditionConfig[];
|
|
15
15
|
conditionConfig$: Observable<SearchConditionConfig[]>;
|
|
16
|
+
autoScroll: boolean;
|
|
17
|
+
searchSuffix: boolean;
|
|
16
18
|
search: EventEmitter<SearchCondition[]>;
|
|
19
|
+
showFootAction: boolean;
|
|
17
20
|
conditionsChange: EventEmitter<SearchCondition[]>;
|
|
18
21
|
normalInputComponent: MultiSearchActionInputComponent;
|
|
19
22
|
tagsComponent: MultiSearchTagsComponent;
|
|
@@ -59,5 +62,5 @@ export declare class MultiSearchComponent implements OnDestroy {
|
|
|
59
62
|
conditionInAction(condition: SearchConditionModel): boolean;
|
|
60
63
|
ngOnDestroy(): void;
|
|
61
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSearchComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchComponent, "acl-multi-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; }, { "search": "search"; "conditionsChange": "conditionsChange"; }, never, never, true, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchComponent, "acl-multi-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; "autoScroll": { "alias": "autoScroll"; "required": false; }; "searchSuffix": { "alias": "searchSuffix"; "required": false; }; "showFootAction": { "alias": "showFootAction"; "required": false; }; }, { "search": "search"; "conditionsChange": "conditionsChange"; }, never, never, true, never>;
|
|
63
66
|
}
|
|
@@ -7,6 +7,7 @@ export declare class MultiSearchTagsComponent {
|
|
|
7
7
|
conditionCreatable: boolean;
|
|
8
8
|
conditionConfig: SearchConditionConfig[];
|
|
9
9
|
existingConditions: SearchConditionModel[];
|
|
10
|
+
showFootAction: boolean;
|
|
10
11
|
removeCondition: EventEmitter<SearchConditionModel>;
|
|
11
12
|
setConditionEditing: EventEmitter<SearchConditionModel>;
|
|
12
13
|
setConditionDeleting: EventEmitter<number>;
|
|
@@ -22,5 +23,5 @@ export declare class MultiSearchTagsComponent {
|
|
|
22
23
|
getConditionLabel(condition: SearchConditionModel): string;
|
|
23
24
|
getValueContent(condition: SearchConditionModel): string;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSearchTagsComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchTagsComponent, "acl-multi-search-tags", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; "existingConditions": { "alias": "existingConditions"; "required": false; }; }, { "removeCondition": "removeCondition"; "setConditionEditing": "setConditionEditing"; "setConditionDeleting": "setConditionDeleting"; "search": "search"; "completed": "completed"; }, never, ["*"], true, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSearchTagsComponent, "acl-multi-search-tags", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "conditionCreatable": { "alias": "conditionCreatable"; "required": false; }; "conditionConfig": { "alias": "conditionConfig"; "required": false; }; "existingConditions": { "alias": "existingConditions"; "required": false; }; "showFootAction": { "alias": "showFootAction"; "required": false; }; }, { "removeCondition": "removeCondition"; "setConditionEditing": "setConditionEditing"; "setConditionDeleting": "setConditionDeleting"; "search": "search"; "completed": "completed"; }, never, ["*"], true, never>;
|
|
26
27
|
}
|
package/package.json
CHANGED
|
@@ -38,9 +38,8 @@ export type ProductEntryName = ValueOf<typeof ProductEntryName>;
|
|
|
38
38
|
export declare class CommonLayoutContextService {
|
|
39
39
|
private readonly k8sApi;
|
|
40
40
|
private readonly httpClient;
|
|
41
|
-
private readonly globalNamespace;
|
|
42
41
|
private readonly projectService;
|
|
43
|
-
constructor(k8sApi: K8sApiService, httpClient: HttpClient,
|
|
42
|
+
constructor(k8sApi: K8sApiService, httpClient: HttpClient, projectService: ProjectService);
|
|
44
43
|
getProjects(): Observable<Project[]>;
|
|
45
44
|
getProducts(): Observable<ProductEntry[]>;
|
|
46
45
|
getProduct(name: string): Observable<ProductEntry>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DocsOption } from '../../help-document/directive';
|
|
2
1
|
import { TranslateService } from '../../translate/public-api';
|
|
3
2
|
import { ProductEntryName } from './common-layout/public-api';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
@@ -9,10 +8,10 @@ export declare class PageHeaderComponent {
|
|
|
9
8
|
locale$: import("rxjs").Observable<string>;
|
|
10
9
|
title: string;
|
|
11
10
|
currentProduct: ProductEntryName;
|
|
12
|
-
|
|
11
|
+
helpDocPath: string;
|
|
13
12
|
menuActions: boolean;
|
|
14
13
|
menuSeparator: boolean;
|
|
15
14
|
constructor(logoUrl: string, translate: TranslateService);
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "acl-page-header", never, { "title": { "alias": "title"; "required": false; }; "currentProduct": { "alias": "currentProduct"; "required": false; }; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "acl-page-header", never, { "title": { "alias": "title"; "required": false; }; "currentProduct": { "alias": "currentProduct"; "required": false; }; "helpDocPath": { "alias": "helpDocPath"; "required": false; }; "menuActions": { "alias": "menuActions"; "required": false; }; "menuSeparator": { "alias": "menuSeparator"; "required": false; }; }, {}, never, ["*", "[customActions]", "[aclHelpMenuContent]", "[aclAccountMenuContent]"], false, never>;
|
|
18
17
|
}
|
|
@@ -6,7 +6,7 @@ import { DialogRef, DialogService } from '@alauda/ui';
|
|
|
6
6
|
import { TemplateRef } from '@angular/core';
|
|
7
7
|
import { K8sApiService } from '../../../../api/public-api';
|
|
8
8
|
import { K8sUtilService } from '../../../../core/public-api';
|
|
9
|
-
import { TranslateKey
|
|
9
|
+
import { TranslateKey } from '../../../../public-api';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
interface ComponentVersion {
|
|
12
12
|
index: number;
|
|
@@ -22,7 +22,7 @@ export declare class HelpMenuComponent {
|
|
|
22
22
|
private readonly dialogService;
|
|
23
23
|
private readonly k8sApi;
|
|
24
24
|
private readonly k8sUtil;
|
|
25
|
-
|
|
25
|
+
helpDocPath: string;
|
|
26
26
|
dialogRef: DialogRef;
|
|
27
27
|
componentVersionList: ComponentVersion[];
|
|
28
28
|
platformVersion: PlatformVersion;
|
|
@@ -30,7 +30,6 @@ export declare class HelpMenuComponent {
|
|
|
30
30
|
platformName: TranslateKey;
|
|
31
31
|
loading: boolean;
|
|
32
32
|
isRuntime: boolean;
|
|
33
|
-
get docsOptions(): DocsOption;
|
|
34
33
|
constructor(baseHref: string, dialogService: DialogService, k8sApi: K8sApiService, k8sUtil: K8sUtilService);
|
|
35
34
|
openHealthCheckLink(): void;
|
|
36
35
|
viewPlatformInfo(templateRef: TemplateRef<any>): void;
|
|
@@ -40,6 +39,6 @@ export declare class HelpMenuComponent {
|
|
|
40
39
|
all: string;
|
|
41
40
|
};
|
|
42
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelpMenuComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HelpMenuComponent, "acl-help-menu", never, { "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelpMenuComponent, "acl-help-menu", never, { "helpDocPath": { "alias": "helpDocPath"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
44
43
|
}
|
|
45
44
|
export {};
|
|
@@ -5,10 +5,11 @@ import * as i3 from "@alauda/ui";
|
|
|
5
5
|
import * as i4 from "../../../widget/widget.module";
|
|
6
6
|
import * as i5 from "../../../core/module";
|
|
7
7
|
import * as i6 from "../../../help-document/module";
|
|
8
|
-
import * as i7 from "../../../
|
|
9
|
-
import * as i8 from "../../../translate/translate.
|
|
8
|
+
import * as i7 from "../../../help-document/directive";
|
|
9
|
+
import * as i8 from "../../../translate/translate.pipe";
|
|
10
|
+
import * as i9 from "../../../translate/translate.directive";
|
|
10
11
|
export declare class HelpMenuModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelpMenuModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HelpMenuModule, [typeof i1.HelpMenuComponent], [typeof i2.CommonModule, typeof i3.IconModule, typeof i3.DropdownModule, typeof i3.DialogModule, typeof i3.ButtonModule, typeof i4.WidgetModule, typeof i5.CoreModule, typeof i3.TooltipModule, typeof i6.HelpDocumentModule, typeof i7.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HelpMenuModule, [typeof i1.HelpMenuComponent], [typeof i2.CommonModule, typeof i3.IconModule, typeof i3.DropdownModule, typeof i3.DialogModule, typeof i3.ButtonModule, typeof i4.WidgetModule, typeof i5.CoreModule, typeof i3.TooltipModule, typeof i6.HelpDocumentModule, typeof i7.HelpDocDirective, typeof i8.TranslatePipe, typeof i9.TranslateDirective, typeof i9.TranslateMatchDirective, typeof i9.TranslateTextDirective], [typeof i1.HelpMenuComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<HelpMenuModule>;
|
|
14
15
|
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--color-fg-default: #c9d1d9;
|
|
35
35
|
--color-fg-muted: #8b949e;
|
|
36
36
|
--color-fg-subtle: #484f58;
|
|
37
|
-
--color-canvas-default:
|
|
37
|
+
--color-canvas-default: transparent;
|
|
38
38
|
--color-canvas-subtle: #161b22;
|
|
39
39
|
--color-border-default: #30363d;
|
|
40
40
|
--color-border-muted: #21262d;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
--color-fg-default: #24292f;
|
|
82
82
|
--color-fg-muted: #57606a;
|
|
83
83
|
--color-fg-subtle: #6e7781;
|
|
84
|
-
--color-canvas-default:
|
|
84
|
+
--color-canvas-default: transparent;
|
|
85
85
|
--color-canvas-subtle: #f6f8fa;
|
|
86
86
|
--color-border-default: #d0d7de;
|
|
87
87
|
--color-border-muted: hsl(210deg 18% 87% / 100%);
|
|
@@ -94,12 +94,14 @@
|
|
|
94
94
|
|
|
95
95
|
@include theme-light {
|
|
96
96
|
.markdown-body {
|
|
97
|
+
padding: 0;
|
|
97
98
|
@include markdown-theme-light;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
@include theme-dark {
|
|
102
103
|
.markdown-body {
|
|
104
|
+
padding: 0;
|
|
103
105
|
@include markdown-theme-dark;
|
|
104
106
|
}
|
|
105
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v3.4.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\!tw-visible{visibility:visible!important}.tw-invisible{visibility:hidden}.tw-fixed{position:fixed}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-left-0{left:0}.tw-right-\[12px\]{right:12px}.tw-right-\[16px\]{right:16px}.tw-top-0{top:0}.tw-top-\[12px\]{top:12px}.tw-z-10{z-index:10}.tw-mx-8{margin-left:8px;margin-right:8px}.tw-my-16{margin-bottom:16px;margin-top:16px}.\!tw-ml-0{margin-left:0!important}.\!tw-mr-8{margin-right:8px!important}.\!tw-mt-16{margin-top:16px!important}.tw-mb-12{margin-bottom:12px}.tw-mb-16{margin-bottom:16px}.tw-mb-20{margin-bottom:20px}.tw-mb-4{margin-bottom:4px}.tw-mb-8{margin-bottom:8px}.tw-ml-12{margin-left:12px}.tw-ml-16{margin-left:16px}.tw-ml-20{margin-left:20px}.tw-ml-24{margin-left:24px}.tw-ml-32{margin-left:32px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-ml-\[4px\]{margin-left:4px}.tw-mr-0{margin-right:0}.tw-mr-16{margin-right:16px}.tw-mr-4{margin-right:4px}.tw-mr-6{margin-right:6px}.tw-mr-8{margin-right:8px}.tw-mr-\[4px\]{margin-right:4px}.tw-mt-0{margin-top:0}.tw-mt-16{margin-top:16px}.tw-mt-20{margin-top:20px}.tw-mt-8{margin-top:8px}.tw-line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.tw-block{display:block}.\!tw-flex{display:flex!important}.tw-flex{display:flex}.tw-inline-flex{display:inline-flex}.tw-hidden{display:none}.\!tw-h-\[20px\]{height:20px!important}.tw-h-0{height:0}.tw-h-1\/2{height:50%}.tw-h-\[100\%\]{height:100%}.tw-h-\[100vh\]{height:100vh}.tw-h-\[200px\]{height:200px}.tw-h-\[22px\]{height:22px}.tw-h-\[600px\]{height:600px}.tw-h-\[8px\]{height:8px}.tw-h-full{height:100%}.tw-min-h-0{min-height:0}.tw-min-h-\[360px\]{min-height:360px}.tw-min-h-screen{min-height:100vh}.\!tw-w-\[20px\]{width:20px!important}.tw-w-\[100\%\]{width:100%}.tw-w-\[135px\]{width:135px}.tw-w-\[160px\]{width:160px}.tw-w-\[200px\]{width:200px}.tw-w-\[260px\]{width:260px}.tw-w-\[950px\]{width:950px}.tw-w-full{width:100%}.tw-min-w-0{min-width:0}.tw-min-w-\[100px\]{min-width:100px}.tw-min-w-\[135px\]{min-width:135px}.tw-min-w-\[160px\]{min-width:160px}.tw-min-w-\[220px\]{min-width:220px}.tw-min-w-\[260px\]{min-width:260px}.tw-min-w-\[50px\]{min-width:50px}.tw-max-w-\[400px\]{max-width:400px}.tw-max-w-\[45\%\]{max-width:45%}.tw-flex-1{flex:1 1 0%}.tw-flex-\[1\]{flex:1}.tw-flex-\[2\]{flex:2}.tw-flex-shrink-0{flex-shrink:0}.\!tw-cursor-move{cursor:move!important}.tw-cursor-move{cursor:move}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-list-disc{list-style-type:disc}.tw-flex-row{flex-direction:row}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-items-start{align-items:flex-start}.tw-items-center{align-items:center}.tw-justify-start{justify-content:flex-start}.tw-justify-end{justify-content:flex-end}.tw-justify-center{justify-content:center}.tw-justify-between{justify-content:space-between}.tw-space-y-\[8px\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.tw-overflow-auto{overflow:auto}.tw-overflow-hidden{overflow:hidden}.tw-overflow-y-auto{overflow-y:auto}.tw-overflow-x-hidden{overflow-x:hidden}.tw-overflow-ellipsis,.tw-text-ellipsis{text-overflow:ellipsis}.tw-whitespace-nowrap{white-space:nowrap}.tw-break-words{overflow-wrap:break-word}.tw-break-all{word-break:break-all}.tw-rounded-l{border-radius:var(--aui-border-radius-l);border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.tw-bg-n-10{background-color:rgb(var(--aui-color-n-10))}.tw-bg-n-8{background-color:rgb(var(--aui-color-n-8))}.tw-bg-n-9{background-color:rgb(var(--aui-color-n-9))}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-p-12{padding:12px}.tw-p-16{padding:16px}.tw-p-20{padding:20px}.tw-p-\[12px_16px\]{padding:12px 16px}.tw-px-12{padding-left:12px;padding-right:12px}.tw-px-16{padding-left:16px;padding-right:16px}.tw-px-4{padding-left:4px;padding-right:4px}.tw-py-8{padding-bottom:8px;padding-top:8px}.tw-pl-8{padding-left:8px}.tw-pr-16{padding-right:16px}.tw-pr-20{padding-right:20px}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-\[12px\]{font-size:12px}.tw-text-l{font-size:var(--aui-font-size-l)}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-s{font-size:var(--aui-font-size-s)}.tw-font-bold{font-weight:var(--aui-font-weight-bold)}.tw-font-bolder{font-weight:var(--aui-font-weight-bolder)}.tw-leading-m{line-height:var(--aui-line-height-m)}.\!tw-text-n-2{color:rgb(var(--aui-color-n-2))!important}.tw-text-help-text{color:rgb(var(--aui-color-help-text))}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-n-4{color:rgb(var(--aui-color-n-4))}.tw-text-p-2{color:rgb(var(--aui-color-p-2))}.tw-text-primary{color:rgb(var(--aui-color-primary))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-icon-l{font-size:var(--aui-icon-size-l)}.tw-icon-m{font-size:var(--aui-icon-size-m)}.tw-leading-text-xl{font-size:var(--aui-font-size-xl);line-height:var(--aui-line-height-xl)}.tw-question{color:rgb(var(--aui-color-n-4));cursor:pointer}.tw-question:hover{color:rgb(var(--aui-color-primary))}.tw-required-mark:before{--tw-content:"*";color:rgb(var(--aui-color-red));content:var(--tw-content);margin-right:var(--aui-spacing-s)}.tw-text-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hover\:\!tw-text-primary:hover{color:rgb(var(--aui-color-primary))!important}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}html:not([lang|=zh]) .lang-not-zh\:\!tw-w-\[230px\]{width:230px!important}@media (min-width:1280px){.vw1280\:tw-ml-\[40px\]{margin-left:40px}.vw1280\:tw-mr-20{margin-right:20px}}
|
|
1
|
+
/*! tailwindcss v3.4.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\!tw-visible{visibility:visible!important}.tw-invisible{visibility:hidden}.tw-fixed{position:fixed}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-left-0{left:0}.tw-right-\[12px\]{right:12px}.tw-right-\[16px\]{right:16px}.tw-top-0{top:0}.tw-top-\[12px\]{top:12px}.tw-z-10{z-index:10}.tw-mx-8{margin-left:8px;margin-right:8px}.tw-my-16{margin-bottom:16px;margin-top:16px}.\!tw-ml-0{margin-left:0!important}.\!tw-mr-8{margin-right:8px!important}.\!tw-mt-16{margin-top:16px!important}.tw-mb-12{margin-bottom:12px}.tw-mb-16{margin-bottom:16px}.tw-mb-20{margin-bottom:20px}.tw-mb-4{margin-bottom:4px}.tw-mb-8{margin-bottom:8px}.tw-ml-12{margin-left:12px}.tw-ml-16{margin-left:16px}.tw-ml-20{margin-left:20px}.tw-ml-24{margin-left:24px}.tw-ml-32{margin-left:32px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-ml-\[4px\]{margin-left:4px}.tw-mr-0{margin-right:0}.tw-mr-16{margin-right:16px}.tw-mr-4{margin-right:4px}.tw-mr-6{margin-right:6px}.tw-mr-8{margin-right:8px}.tw-mr-\[4px\]{margin-right:4px}.tw-mt-0{margin-top:0}.tw-mt-16{margin-top:16px}.tw-mt-20{margin-top:20px}.tw-mt-8{margin-top:8px}.tw-block{display:block}.\!tw-flex{display:flex!important}.tw-flex{display:flex}.tw-inline-flex{display:inline-flex}.tw-hidden{display:none}.\!tw-h-\[20px\]{height:20px!important}.tw-h-0{height:0}.tw-h-1\/2{height:50%}.tw-h-\[100\%\]{height:100%}.tw-h-\[100vh\]{height:100vh}.tw-h-\[200px\]{height:200px}.tw-h-\[22px\]{height:22px}.tw-h-\[600px\]{height:600px}.tw-h-\[8px\]{height:8px}.tw-h-full{height:100%}.tw-min-h-0{min-height:0}.tw-min-h-\[360px\]{min-height:360px}.tw-min-h-screen{min-height:100vh}.\!tw-w-\[20px\]{width:20px!important}.tw-w-\[100\%\]{width:100%}.tw-w-\[135px\]{width:135px}.tw-w-\[160px\]{width:160px}.tw-w-\[200px\]{width:200px}.tw-w-\[260px\]{width:260px}.tw-w-\[950px\]{width:950px}.tw-w-full{width:100%}.tw-min-w-0{min-width:0}.tw-min-w-\[100px\]{min-width:100px}.tw-min-w-\[135px\]{min-width:135px}.tw-min-w-\[160px\]{min-width:160px}.tw-min-w-\[220px\]{min-width:220px}.tw-min-w-\[260px\]{min-width:260px}.tw-min-w-\[50px\]{min-width:50px}.tw-max-w-\[400px\]{max-width:400px}.tw-max-w-\[45\%\]{max-width:45%}.tw-max-w-full{max-width:100%}.tw-flex-1{flex:1 1 0%}.tw-flex-\[1\]{flex:1}.tw-flex-\[2\]{flex:2}.tw-flex-shrink-0{flex-shrink:0}.\!tw-cursor-move{cursor:move!important}.tw-cursor-move{cursor:move}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-list-disc{list-style-type:disc}.tw-flex-row{flex-direction:row}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-items-start{align-items:flex-start}.tw-items-center{align-items:center}.tw-justify-end{justify-content:flex-end}.tw-justify-center{justify-content:center}.tw-justify-between{justify-content:space-between}.tw-space-y-\[8px\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.tw-overflow-auto{overflow:auto}.tw-overflow-hidden{overflow:hidden}.tw-overflow-y-auto{overflow-y:auto}.tw-overflow-x-hidden{overflow-x:hidden}.tw-overflow-ellipsis,.tw-text-ellipsis{text-overflow:ellipsis}.tw-whitespace-nowrap{white-space:nowrap}.tw-break-words{overflow-wrap:break-word}.tw-break-all{word-break:break-all}.tw-rounded-l{border-radius:var(--aui-border-radius-l);border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.tw-bg-n-10{background-color:rgb(var(--aui-color-n-10))}.tw-bg-n-8{background-color:rgb(var(--aui-color-n-8))}.tw-bg-n-9{background-color:rgb(var(--aui-color-n-9))}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-p-12{padding:12px}.tw-p-16{padding:16px}.tw-p-20{padding:20px}.tw-p-\[12px_16px\]{padding:12px 16px}.tw-px-12{padding-left:12px;padding-right:12px}.tw-px-16{padding-left:16px;padding-right:16px}.tw-px-4{padding-left:4px;padding-right:4px}.tw-py-8{padding-bottom:8px;padding-top:8px}.tw-pl-8{padding-left:8px}.tw-pr-16{padding-right:16px}.tw-pr-20{padding-right:20px}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-\[12px\]{font-size:12px}.tw-text-l{font-size:var(--aui-font-size-l)}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-s{font-size:var(--aui-font-size-s)}.tw-font-bold{font-weight:var(--aui-font-weight-bold)}.tw-font-bolder{font-weight:var(--aui-font-weight-bolder)}.tw-leading-m{line-height:var(--aui-line-height-m)}.\!tw-text-n-2{color:rgb(var(--aui-color-n-2))!important}.tw-text-help-text{color:rgb(var(--aui-color-help-text))}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-n-4{color:rgb(var(--aui-color-n-4))}.tw-text-p-2{color:rgb(var(--aui-color-p-2))}.tw-text-primary{color:rgb(var(--aui-color-primary))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-icon-l{font-size:var(--aui-icon-size-l)}.tw-icon-m{font-size:var(--aui-icon-size-m)}.tw-leading-text-xl{font-size:var(--aui-font-size-xl);line-height:var(--aui-line-height-xl)}.tw-question{color:rgb(var(--aui-color-n-4));cursor:pointer}.tw-question:hover{color:rgb(var(--aui-color-primary))}.tw-required-mark:before{--tw-content:"*";color:rgb(var(--aui-color-red));content:var(--tw-content);margin-right:var(--aui-spacing-s)}.tw-text-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hover\:\!tw-text-primary:hover{color:rgb(var(--aui-color-primary))!important}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}html:not([lang|=zh]) .lang-not-zh\:\!tw-w-\[230px\]{width:230px!important}@media (min-width:1280px){.vw1280\:tw-ml-\[40px\]{margin-left:40px}.vw1280\:tw-mr-20{margin-right:20px}}
|
|
@@ -9,4 +9,5 @@ export declare function loadAvailableLanguages(): Promise<Array<{
|
|
|
9
9
|
}>>;
|
|
10
10
|
export declare function getAvailableLanguages(): DeepReadonly<typeof __availableLanguages>;
|
|
11
11
|
export declare function getUserLanguage(availableLanguages?: string[]): string;
|
|
12
|
+
export declare function isBuiltInLanguage(language: string): boolean;
|
|
12
13
|
export {};
|
|
@@ -12,11 +12,10 @@ export declare class TranslatePipe implements PipeTransform, OnDestroy {
|
|
|
12
12
|
private value;
|
|
13
13
|
private lastKey?;
|
|
14
14
|
private lastData?;
|
|
15
|
-
private lastRemoteLoaded?;
|
|
16
15
|
private onChange;
|
|
17
16
|
private readonly destroy$$;
|
|
18
17
|
constructor(injector: Injector);
|
|
19
|
-
transform(key: TranslateKey | any, data?: unknown
|
|
18
|
+
transform(key: TranslateKey | any, data?: unknown): string;
|
|
20
19
|
private updateValue;
|
|
21
20
|
private dispose;
|
|
22
21
|
ngOnDestroy(): void;
|
|
@@ -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>;
|