@alauda-fe/common 1.0.2 → 1.0.4
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/a-chart/base-chart.d.ts +2 -2
- package/a-chart/chart.component.d.ts +3 -2
- package/a-chart/components/legend/base-legend.component.d.ts +3 -4
- package/a-chart/constant.d.ts +3 -0
- package/a-chart/types.d.ts +7 -2
- package/a-chart/utils.d.ts +1 -1
- package/a-metric-chart/a-metric-chart.component.d.ts +43 -4
- package/a-metric-chart/a-metric-chart.module.d.ts +2 -2
- package/a-metric-chart/bar-gauge/bar-gauge.component.d.ts +1 -1
- package/a-metric-chart/base-chart.component.d.ts +1 -1
- package/a-metric-chart/types.d.ts +1 -1
- package/a-metric-chart/utils/unit.d.ts +1 -1
- package/a-metric-chart/utils/util.d.ts +2 -2
- package/api/cluster-version.service.d.ts +0 -3
- package/core/directives/feature-gate.directive.d.ts +1 -1
- package/core/directives/public-api.d.ts +1 -0
- package/core/guards/feature.guard.d.ts +1 -1
- package/core/module.d.ts +10 -10
- package/core/pipes/k8s-util.pipe.d.ts +13 -13
- package/core/pipes/k8s-util.pipe.module.d.ts +6 -1
- package/core/pipes/public-api.d.ts +3 -0
- package/{scm/pure-pipe/module.d.ts → core/pipes/pure.pipe.module.d.ts} +3 -0
- package/core/services/context.service.d.ts +1 -1
- package/core/utils/unit.d.ts +1 -0
- package/disabled-container/disabled-container.component.d.ts +1 -1
- package/disabled-container/disabled-container.module.d.ts +4 -4
- package/esm2022/a-chart/a-chart.module.mjs +1 -1
- package/esm2022/a-chart/base-chart.mjs +8 -8
- package/esm2022/a-chart/chart-status.component.mjs +2 -2
- package/esm2022/a-chart/chart.component.mjs +24 -5
- package/esm2022/a-chart/components/legend/base-legend.component.mjs +15 -14
- package/esm2022/a-chart/constant.mjs +3 -1
- package/esm2022/a-chart/types.mjs +7 -2
- package/esm2022/a-chart/utils.mjs +1 -1
- package/esm2022/a-metric-chart/a-metric-chart.component.mjs +40 -15
- package/esm2022/a-metric-chart/a-metric-chart.module.mjs +8 -10
- package/esm2022/a-metric-chart/bar-gauge/bar-gauge.component.mjs +6 -5
- package/esm2022/a-metric-chart/base-chart.component.mjs +1 -1
- package/esm2022/a-metric-chart/stat-chart/stat-chart.component.mjs +26 -12
- package/esm2022/a-metric-chart/table-chart/table-chart.component.mjs +3 -3
- package/esm2022/a-metric-chart/types.mjs +1 -1
- package/esm2022/a-metric-chart/utils/unit.mjs +2 -2
- package/esm2022/a-metric-chart/utils/util.mjs +7 -6
- package/esm2022/api/cluster-version.service.mjs +1 -7
- package/esm2022/array-form-table/form/component.mjs +2 -2
- package/esm2022/array-form-table/key-value-table/component.mjs +2 -2
- package/esm2022/business/resource-select/module.mjs +2 -2
- package/esm2022/chart/chart.module.mjs +1 -1
- package/esm2022/core/directives/declare.directive.mjs +27 -0
- package/esm2022/core/directives/feature-gate.directive.mjs +3 -3
- package/esm2022/core/directives/public-api.mjs +2 -1
- package/esm2022/core/guards/feature.guard.mjs +3 -5
- package/esm2022/core/module.mjs +19 -17
- package/esm2022/core/pipes/calc.pipe.mjs +21 -0
- package/esm2022/core/pipes/k8s-util.pipe.mjs +27 -27
- package/esm2022/core/pipes/k8s-util.pipe.module.mjs +7 -3
- package/esm2022/core/pipes/public-api.mjs +4 -1
- package/esm2022/core/pipes/pure.pipe.mjs +26 -0
- package/esm2022/core/pipes/pure.pipe.module.mjs +21 -0
- package/esm2022/core/services/context.service.mjs +5 -3
- package/esm2022/core/utils/common.mjs +3 -3
- package/esm2022/core/utils/unit.mjs +5 -1
- package/esm2022/disabled-container/disabled-container.component.mjs +7 -5
- package/esm2022/disabled-container/disabled-container.module.mjs +7 -11
- package/esm2022/exec/module.mjs +3 -4
- package/esm2022/form/errors-mapper/errors-mapper.module.mjs +13 -4
- package/esm2022/form/labels-editor/component.mjs +8 -8
- package/esm2022/form/taints-editor/component.mjs +4 -6
- package/esm2022/grid-layout/utils/grid.utils.mjs +2 -20
- package/esm2022/license/license-error/module.mjs +1 -1
- package/esm2022/multi-search/action-input/component.mjs +2 -3
- package/esm2022/multi-search/form/component.mjs +3 -4
- package/esm2022/multi-search/multi-search-tags/component.mjs +7 -7
- package/esm2022/page-guard/module.mjs +7 -4
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.mjs +3 -2
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +23 -5
- package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +17 -31
- package/esm2022/page-scaffold/navigation/lottie-icons/lottie-icon.directive.mjs +3 -2
- package/esm2022/page-scaffold/navigation/lottie-icons/module.mjs +6 -3
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.module.mjs +4 -4
- package/esm2022/page-scaffold/page-header/common-layout/common-layout.module.mjs +5 -7
- package/esm2022/page-scaffold/page-header/header-notify/header-notify.module.mjs +4 -4
- package/esm2022/page-scaffold/page-header/help-menu/module.mjs +13 -14
- package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +2 -2
- package/esm2022/public-api.mjs +1 -2
- package/esm2022/searchable-selector/module.mjs +1 -1
- package/esm2022/skeleton/module.mjs +1 -1
- package/esm2022/table/module.mjs +5 -5
- package/esm2022/translate/en.json +2 -1
- package/esm2022/translate/translate.directive.mjs +7 -7
- package/esm2022/translate/translate.module.mjs +18 -17
- package/esm2022/translate/translate.pipe.mjs +4 -3
- package/esm2022/translate/zh.json +2 -1
- package/esm2022/widget/card-section/card-section.component.mjs +23 -6
- package/esm2022/widget/current-time/component.mjs +6 -4
- package/esm2022/widget/date-range-picker/component.mjs +12 -9
- package/esm2022/widget/foldable-item-in-table/component.mjs +28 -6
- package/esm2022/widget/password-input/component.mjs +283 -0
- package/esm2022/widget/public-api.mjs +8 -1
- package/esm2022/widget/resource-multi-select/component.mjs +211 -0
- package/esm2022/widget/resource-multi-select/util.mjs +24 -0
- package/esm2022/{scm → widget}/search-panel/component.mjs +1 -1
- package/esm2022/{scm → widget}/search-panel/helper.directive.mjs +1 -1
- package/esm2022/{scm → widget}/search-panel/search-item/component.mjs +1 -1
- package/esm2022/widget/status-icon/status-icon.component.mjs +2 -2
- package/esm2022/widget/tags-label/component.mjs +2 -3
- package/esm2022/widget/terminating-tag/component.mjs +7 -4
- package/esm2022/{scm → widget}/text-ellipsis/component.mjs +1 -1
- package/esm2022/widget/text-with-url/component.mjs +6 -4
- package/esm2022/widget/widget.module.mjs +47 -86
- package/esm2022/widget/zero-state/zero-state.component.mjs +6 -6
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +2 -2
- package/exec/module.d.ts +1 -1
- package/form/errors-mapper/errors-mapper.module.d.ts +6 -0
- package/package.json +5 -5
- package/page-guard/module.d.ts +4 -1
- package/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.d.ts +1 -1
- package/page-scaffold/navigation/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/page-scaffold/navigation/breadcrumb/module.d.ts +8 -6
- package/page-scaffold/navigation/lottie-icons/lottie-icon.directive.d.ts +1 -1
- package/page-scaffold/navigation/lottie-icons/module.d.ts +4 -1
- package/page-scaffold/page-header/common-layout/common-layout.module.d.ts +2 -2
- package/page-scaffold/page-header/help-menu/module.d.ts +6 -5
- package/public-api.d.ts +0 -1
- package/styles/tailwind-preset.scss +1 -1
- package/translate/translate.directive.d.ts +3 -3
- package/translate/translate.module.d.ts +15 -4
- package/translate/translate.pipe.d.ts +1 -1
- package/widget/card-section/card-section.component.d.ts +4 -2
- package/widget/current-time/component.d.ts +1 -1
- package/widget/foldable-item-in-table/component.d.ts +1 -1
- package/{scm → widget}/password-input/component.d.ts +1 -1
- package/widget/public-api.d.ts +7 -0
- package/widget/terminating-tag/component.d.ts +1 -1
- package/widget/text-with-url/component.d.ts +1 -1
- package/widget/widget.module.d.ts +38 -21
- package/esm2022/scm/declare.directive.mjs +0 -27
- package/esm2022/scm/password-input/component.mjs +0 -261
- package/esm2022/scm/password-input/module.mjs +0 -67
- package/esm2022/scm/password-input/public-api.mjs +0 -3
- package/esm2022/scm/public-api.mjs +0 -10
- package/esm2022/scm/pure-pipe/calc.pipe.mjs +0 -21
- package/esm2022/scm/pure-pipe/module.mjs +0 -18
- package/esm2022/scm/pure-pipe/public-api.mjs +0 -4
- package/esm2022/scm/pure-pipe/pure.pipe.mjs +0 -26
- package/esm2022/scm/resource-multi-select/component.mjs +0 -212
- package/esm2022/scm/resource-multi-select/util.mjs +0 -24
- package/scm/password-input/module.d.ts +0 -14
- package/scm/password-input/public-api.d.ts +0 -2
- package/scm/public-api.d.ts +0 -9
- package/scm/pure-pipe/public-api.d.ts +0 -3
- /package/{scm → core/directives}/declare.directive.d.ts +0 -0
- /package/{scm/pure-pipe → core/pipes}/calc.pipe.d.ts +0 -0
- /package/{scm/pure-pipe → core/pipes}/pure.pipe.d.ts +0 -0
- /package/{scm → widget}/resource-multi-select/component.d.ts +0 -0
- /package/{scm → widget}/resource-multi-select/util.d.ts +0 -0
- /package/{scm → widget}/search-panel/component.d.ts +0 -0
- /package/{scm → widget}/search-panel/helper.directive.d.ts +0 -0
- /package/{scm → widget}/search-panel/search-item/component.d.ts +0 -0
- /package/{scm → widget}/text-ellipsis/component.d.ts +0 -0
package/a-chart/base-chart.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
-
import { Chart, ChartOption } from 'zz-chart';
|
|
2
|
+
import { Chart, ChartOption, ShapeOption } from 'zz-chart';
|
|
3
3
|
import { AChartStatus, AType } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class BaseChart {
|
|
@@ -16,7 +16,7 @@ export declare class BaseChart {
|
|
|
16
16
|
init(config: ChartOption): Chart;
|
|
17
17
|
render(): void;
|
|
18
18
|
changeStatus(status: AChartStatus): void;
|
|
19
|
-
handleChartType(type: AType): void;
|
|
19
|
+
handleChartType(type: AType, options: ShapeOption): void;
|
|
20
20
|
destroy(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseChart, never>;
|
|
22
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChart, never, never, {}, {}, never, never, false, never>;
|
|
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { Chart, DataItem, Options, Padding, Theme, BrushContext } from 'zz-chart';
|
|
5
5
|
import { BaseChart } from './base-chart';
|
|
6
6
|
import { LegendComponent, LegendDropdownComponent, TitleComponent } from './components/public-api';
|
|
7
|
-
import { AChartData, AChartStatus, AOptions, AType, MarkContext } from './types';
|
|
7
|
+
import { AChartData, AChartStatus, AOptions, AType, MarkContext, NULL_POINT_MODE } from './types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ChartComponent extends BaseChart implements AfterViewInit, OnDestroy {
|
|
10
10
|
private readonly themeService;
|
|
@@ -19,6 +19,7 @@ export declare class ChartComponent extends BaseChart implements AfterViewInit,
|
|
|
19
19
|
height: number;
|
|
20
20
|
padding: Padding;
|
|
21
21
|
theme: Theme;
|
|
22
|
+
nullPointMode: NULL_POINT_MODE;
|
|
22
23
|
options: AOptions;
|
|
23
24
|
options$: Observable<AOptions>;
|
|
24
25
|
type: AType;
|
|
@@ -51,5 +52,5 @@ export declare class ChartComponent extends BaseChart implements AfterViewInit,
|
|
|
51
52
|
getHeight(height: number, chartOption: Options): string;
|
|
52
53
|
ngOnDestroy(): void;
|
|
53
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "a-chart", ["aChart"], { "status": { "alias": "status"; "required": false; }; "data": { "alias": "data"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "autoFit": { "alias": "autoFit"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "options": { "alias": "options"; "required": false; }; "type": { "alias": "type"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "xAccessor": { "alias": "xAccessor"; "required": false; }; "yAccessor": { "alias": "yAccessor"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; }, { "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; "contextCallback": "contextCallback"; }, ["titleRef", "legendRef", "legendDropdownRef"], ["a-title", "a-legend", "a-legend-dropdown", "acl-chart-zoom-button", "*"], false, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "a-chart", ["aChart"], { "status": { "alias": "status"; "required": false; }; "data": { "alias": "data"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "autoFit": { "alias": "autoFit"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "nullPointMode": { "alias": "nullPointMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "type": { "alias": "type"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "xAccessor": { "alias": "xAccessor"; "required": false; }; "yAccessor": { "alias": "yAccessor"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; }, { "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; "contextCallback": "contextCallback"; }, ["titleRef", "legendRef", "legendDropdownRef"], ["a-title", "a-legend", "a-legend-dropdown", "acl-chart-zoom-button", "*"], false, never>;
|
|
55
56
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter,
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
3
|
import { Legend, LegendItem as ALegendItem, DataItem } from 'zz-chart';
|
|
4
4
|
import { ChartComponent } from '../../chart.component';
|
|
@@ -10,8 +10,8 @@ export interface LegendItem extends ALegendItem {
|
|
|
10
10
|
unit?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare class BaseLegendComponent implements OnInit, OnChanges {
|
|
13
|
-
readonly
|
|
14
|
-
|
|
13
|
+
private readonly chartRefFromInjection;
|
|
14
|
+
protected cdr: ChangeDetectorRef;
|
|
15
15
|
chartRef: ChartComponent;
|
|
16
16
|
changeLegend: EventEmitter<LegendItem[]>;
|
|
17
17
|
get noData(): boolean;
|
|
@@ -19,7 +19,6 @@ export declare class BaseLegendComponent implements OnInit, OnChanges {
|
|
|
19
19
|
get legendCtr(): Legend;
|
|
20
20
|
legendItems$$: BehaviorSubject<LegendItem[]>;
|
|
21
21
|
legendChange$$: Subject<LegendItem[]>;
|
|
22
|
-
constructor(cdr: ChangeDetectorRef, injector: Injector);
|
|
23
22
|
ngOnChanges({ chartRef }: SimpleChanges): void;
|
|
24
23
|
ngOnInit(): void;
|
|
25
24
|
setChartRef(chartRef: ChartComponent): void;
|
package/a-chart/constant.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
import { ChartOption } from 'zz-chart';
|
|
3
|
+
import { ChartComponent } from './chart.component';
|
|
2
4
|
export declare const CHART_TIME_FORMAT = "HH:mm";
|
|
3
5
|
export declare const DEFAULT_CONFIG: ChartOption;
|
|
6
|
+
export declare const CHART_COMPONENT_TOKEN: InjectionToken<ChartComponent>;
|
package/a-chart/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataItem, Options, TooltipValue } from 'zz-chart';
|
|
2
|
-
import { IndicatorType } from '../api/
|
|
3
|
-
import { Translation } from '../translate/
|
|
2
|
+
import { IndicatorType } from '../api/public-api';
|
|
3
|
+
import { Translation } from '../translate/public-api';
|
|
4
4
|
export type AOptions = Omit<Options, 'data' | 'padding' | 'container'>;
|
|
5
5
|
export type AType = 'line' | 'area' | 'bar' | 'point' | 'pie' | 'gauge' | 'stat' | 'table' | 'bar-gauge';
|
|
6
6
|
export interface AChartStatus {
|
|
@@ -9,6 +9,11 @@ export interface AChartStatus {
|
|
|
9
9
|
failed?: boolean;
|
|
10
10
|
noLegend?: boolean;
|
|
11
11
|
}
|
|
12
|
+
export declare enum NULL_POINT_MODE {
|
|
13
|
+
Connected = "true",
|
|
14
|
+
Null = "null",
|
|
15
|
+
Null_Zero = "null\u2013zero"
|
|
16
|
+
}
|
|
12
17
|
export interface AChartData extends DataItem {
|
|
13
18
|
max?: number;
|
|
14
19
|
unit?: string | Translation;
|
package/a-chart/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigType } from 'dayjs';
|
|
2
2
|
import { TooltipValue } from 'zz-chart';
|
|
3
|
-
import { ContextItem } from '../view-chart/
|
|
3
|
+
import { ContextItem } from '../view-chart/public-api';
|
|
4
4
|
export declare function transformMaximum(value: number | string): string;
|
|
5
5
|
export declare function limitMaxContext(context: TooltipValue[], limit?: number): TooltipValue[];
|
|
6
6
|
export declare function pointFormat(value: number): string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit, TemplateRef, ChangeDetectorRef, EventEmitter, AfterViewChecked, ElementRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
3
|
import { Chart, DataItem, Options, BrushContext } from 'zz-chart';
|
|
4
|
-
import { AChartData, AChartStatus, AType, ChartComponent, LegendComponent, MarkContext, MonitorDataItem, TitleComponent } from '../a-chart/public-api';
|
|
4
|
+
import { AChartData, AChartStatus, AOptions, AType, ChartComponent, LegendComponent, MarkContext, MonitorDataItem, NULL_POINT_MODE, TitleComponent } from '../a-chart/public-api';
|
|
5
5
|
import { IndicatorType, MonitorApiService, MonitorMetric } from '../api/public-api';
|
|
6
|
-
import { TranslateService } from '../translate/
|
|
7
|
-
import { Translation } from '../translate/types';
|
|
6
|
+
import { TranslateService, Translation } from '../translate/public-api';
|
|
8
7
|
import { MetricChartRefreshService } from './metric-chart-refresh.service';
|
|
9
8
|
import { IndicatorParams, AMatchUnitParams, MetricParams, SeriesParams, FetchParams, AMetricChartOptions, Orientation } from './types';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
export declare const POLAR_COORDINATE_TYPES: Set<string>;
|
|
11
|
+
export declare const SPECIAL_TYPES: Set<string>;
|
|
12
12
|
export declare const METRIC_INPUT_KEY: string[];
|
|
13
13
|
export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
|
|
14
14
|
private readonly refreshService;
|
|
@@ -43,6 +43,7 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
|
|
|
43
43
|
notAutoFillUnit: boolean;
|
|
44
44
|
enableZoom: boolean;
|
|
45
45
|
enableZoom$: Observable<boolean>;
|
|
46
|
+
nullPointMode: NULL_POINT_MODE;
|
|
46
47
|
contextCallback: EventEmitter<Chart>;
|
|
47
48
|
refresh: EventEmitter<void>;
|
|
48
49
|
markClick: EventEmitter<MarkContext>;
|
|
@@ -96,6 +97,44 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
|
|
|
96
97
|
setPromQlResource(res: MonitorMetric[]): void;
|
|
97
98
|
getPromQlResource(): MonitorDataItem;
|
|
98
99
|
getTitleText: typeof getTitleText;
|
|
100
|
+
handleGaugeOptions(options: AOptions, showName: boolean): {
|
|
101
|
+
gauge: {
|
|
102
|
+
label: {
|
|
103
|
+
description: string | ((data: import("zz-chart").Data) => string);
|
|
104
|
+
text?: string | ((data: import("zz-chart").Data, total?: number) => string);
|
|
105
|
+
position?: {
|
|
106
|
+
x?: number;
|
|
107
|
+
y?: number;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
innerRadius?: number;
|
|
111
|
+
outerRadius?: number;
|
|
112
|
+
max?: number;
|
|
113
|
+
colors?: [number, string][];
|
|
114
|
+
text?: {
|
|
115
|
+
show?: boolean;
|
|
116
|
+
size?: number;
|
|
117
|
+
color?: string | ((value: number) => string);
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
area?: import("zz-chart").AreaShapeOption;
|
|
121
|
+
legend?: import("zz-chart").LegendOption;
|
|
122
|
+
title?: import("zz-chart").TitleOption;
|
|
123
|
+
line?: import("zz-chart").LineShapeOption;
|
|
124
|
+
annotation?: import("zz-chart").AnnotationOption;
|
|
125
|
+
tooltip?: import("zz-chart").TooltipOption;
|
|
126
|
+
scale?: {
|
|
127
|
+
x?: import("zz-chart").ScaleOption;
|
|
128
|
+
y?: import("zz-chart").ScaleOption;
|
|
129
|
+
};
|
|
130
|
+
axis?: {
|
|
131
|
+
x?: import("zz-chart").AxisOption;
|
|
132
|
+
y?: import("zz-chart").AxisOption;
|
|
133
|
+
};
|
|
134
|
+
coordinate?: import("zz-chart").CoordinateOption;
|
|
135
|
+
bar?: import("zz-chart").BarShapeOption;
|
|
136
|
+
point?: import("zz-chart").PointShapeOption;
|
|
137
|
+
};
|
|
99
138
|
private changeChartOptions;
|
|
100
139
|
private handleDataStatus;
|
|
101
140
|
private handleUnit;
|
|
@@ -103,6 +142,6 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
|
|
|
103
142
|
private readonly mergePointContext;
|
|
104
143
|
private changeStatus;
|
|
105
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<AMetricChartComponent, [{ optional: true; }, null, null, null]>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AMetricChartComponent, "a-metric-chart", never, { "type": { "alias": "type"; "required": false; }; "status": { "alias": "status"; "required": false; }; "chartOptions": { "alias": "chartOptions"; "required": false; }; "seriesParams": { "alias": "seriesParams"; "required": false; }; "metricParams": { "alias": "metricParams"; "required": false; }; "adaptUnit": { "alias": "adaptUnit"; "required": false; }; "autoAdaptUnit": { "alias": "autoAdaptUnit"; "required": false; }; "autoArea": { "alias": "autoArea"; "required": false; }; "isRich": { "alias": "isRich"; "required": false; }; "dataFormat": { "alias": "dataFormat"; "required": false; }; "tableDataFormat": { "alias": "tableDataFormat"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "legendTranslation": { "alias": "legendTranslation"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "notAutoFillUnit": { "alias": "notAutoFillUnit"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "promQlTitle": { "alias": "promQlTitle"; "required": false; }; "promQlId": { "alias": "promQlId"; "required": false; }; "customSeries": { "alias": "customSeries"; "required": false; }; }, { "contextCallback": "contextCallback"; "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; }, ["titleRef", "legendRef", "template"], ["acl-promql-button", "a-legend-dropdown", "acl-chart-zoom-button", "a-title"], false, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AMetricChartComponent, "a-metric-chart", never, { "type": { "alias": "type"; "required": false; }; "status": { "alias": "status"; "required": false; }; "chartOptions": { "alias": "chartOptions"; "required": false; }; "seriesParams": { "alias": "seriesParams"; "required": false; }; "metricParams": { "alias": "metricParams"; "required": false; }; "adaptUnit": { "alias": "adaptUnit"; "required": false; }; "autoAdaptUnit": { "alias": "autoAdaptUnit"; "required": false; }; "autoArea": { "alias": "autoArea"; "required": false; }; "isRich": { "alias": "isRich"; "required": false; }; "dataFormat": { "alias": "dataFormat"; "required": false; }; "tableDataFormat": { "alias": "tableDataFormat"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "legendTranslation": { "alias": "legendTranslation"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "notAutoFillUnit": { "alias": "notAutoFillUnit"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "nullPointMode": { "alias": "nullPointMode"; "required": false; }; "promQlTitle": { "alias": "promQlTitle"; "required": false; }; "promQlId": { "alias": "promQlId"; "required": false; }; "customSeries": { "alias": "customSeries"; "required": false; }; }, { "contextCallback": "contextCallback"; "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; }, ["titleRef", "legendRef", "template"], ["acl-promql-button", "a-legend-dropdown", "acl-chart-zoom-button", "a-title"], false, never>;
|
|
107
146
|
}
|
|
108
147
|
export declare function getTitleText(text: string | TemplateRef<unknown>, unit: string): string | TemplateRef<unknown>;
|
|
@@ -7,10 +7,10 @@ import * as i5 from "@angular/common";
|
|
|
7
7
|
import * as i6 from "../a-chart/a-chart.module";
|
|
8
8
|
import * as i7 from "../core/module";
|
|
9
9
|
import * as i8 from "@alauda/ui";
|
|
10
|
-
import * as i9 from "../
|
|
10
|
+
import * as i9 from "../core/pipes/pure.pipe";
|
|
11
11
|
import * as i10 from "../translate/translate.module";
|
|
12
12
|
export declare class AMetricChartModule {
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AMetricChartModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AMetricChartModule, [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent], [typeof i5.CommonModule, typeof i6.AChartModule, typeof i7.CoreModule, typeof i8.TableModule, typeof i8.PaginatorModule, typeof i9.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AMetricChartModule, [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent], [typeof i5.CommonModule, typeof i6.AChartModule, typeof i7.CoreModule, typeof i8.TableModule, typeof i8.PaginatorModule, typeof i9.PurePipe, typeof i10.TranslateModule], [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent]>;
|
|
15
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<AMetricChartModule>;
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AChartData, AChartStatus } from '../a-chart/
|
|
3
|
+
import { AChartData, AChartStatus } from '../a-chart/public-api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class BaseComponentChart {
|
|
6
6
|
status: AChartStatus;
|
|
@@ -3,7 +3,7 @@ import { XOR } from 'ts-essentials';
|
|
|
3
3
|
import { LegendOpt, Options, TooltipOption, TooltipValue } from 'zz-chart';
|
|
4
4
|
import { MonitorMetricResult } from '../api/public-api';
|
|
5
5
|
import { StringMap, WorkspaceParams } from '../core/public-api';
|
|
6
|
-
import { Translation } from '../translate/
|
|
6
|
+
import { Translation } from '../translate/public-api';
|
|
7
7
|
export declare enum MetricScope {
|
|
8
8
|
'CLUSTER' = "cluster",
|
|
9
9
|
'PROJECT' = "project",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AChartData } from '../../a-chart/
|
|
1
|
+
import { AChartData } from '../../a-chart/public-api';
|
|
2
2
|
import { AMatchUnitParams, IndicatorUnit } from '../types';
|
|
3
3
|
export declare const MATCH_UNIT_DEFAULT_BASE = 1024;
|
|
4
4
|
export declare function adaptChartUnit(data: Array<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataItem, TooltipValue } from 'zz-chart';
|
|
2
|
-
import { AChartData } from '../../a-chart/
|
|
2
|
+
import { AChartData } from '../../a-chart/public-api';
|
|
3
3
|
import { MonitorMetric, MonitorMetricResult } from '../../api/public-api';
|
|
4
4
|
import { Dictionary, StringMap } from '../../core/public-api';
|
|
5
5
|
import { FetchParams, IndicatorParams, MetricParams } from '../types';
|
|
@@ -28,7 +28,7 @@ export declare const LEGEND_TEMPLATE_OPTIONS: Readonly<{
|
|
|
28
28
|
interpolate: RegExp;
|
|
29
29
|
}>;
|
|
30
30
|
export declare function getLegendName(metricKey: string, metric: StringMap): string;
|
|
31
|
-
export declare function fillNullData({ start, end, step }: MetricParams, res?: DataItem['values'], stepLine?: boolean): any[];
|
|
31
|
+
export declare function fillNullData({ start, end, step }: MetricParams, res?: DataItem['values'], isZero?: boolean, stepLine?: boolean): any[];
|
|
32
32
|
export declare function handleDateAxisLabelFormats(params: MetricParams, isRich?: boolean): string;
|
|
33
33
|
export declare function limitMaxTooltipItem(context: TooltipValue[], limit?: number): TooltipValue[];
|
|
34
34
|
export declare const VARIABLE_KEY_CLUSTER = "$cluster";
|
|
@@ -4,7 +4,6 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class ClusterVersionService {
|
|
5
5
|
private readonly k8sApi;
|
|
6
6
|
private store;
|
|
7
|
-
private version;
|
|
8
7
|
private readonly platformVersion$;
|
|
9
8
|
constructor(k8sApi: K8sApiService);
|
|
10
9
|
/**
|
|
@@ -15,8 +14,6 @@ export declare class ClusterVersionService {
|
|
|
15
14
|
clusterOldThan(cluster: string, version: string): Observable<boolean>;
|
|
16
15
|
platformVersion(): Observable<string>;
|
|
17
16
|
getClusterVersion(cluster: string): Observable<string>;
|
|
18
|
-
set clusterVersion(version: string);
|
|
19
|
-
get clusterVersion(): string;
|
|
20
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClusterVersionService, never>;
|
|
21
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClusterVersionService>;
|
|
22
19
|
}
|
|
@@ -26,5 +26,5 @@ export declare class FeatureGateDirective implements OnInit, OnDestroy {
|
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
ngOnDestroy(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureGateDirective, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureGateDirective, "[aclFeatureGate]", never, { "featureName": { "alias": "aclFeatureGate"; "required": false; }; "cluster": { "alias": "aclFeatureGateCluster"; "required": false; }; "then": { "alias": "aclFeatureGateThen"; "required": false; }; "else": { "alias": "aclFeatureGateElse"; "required": false; }; }, {}, never, never,
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureGateDirective, "[aclFeatureGate]", never, { "featureName": { "alias": "aclFeatureGate"; "required": false; }; "cluster": { "alias": "aclFeatureGateCluster"; "required": false; }; "then": { "alias": "aclFeatureGateThen"; "required": false; }; "else": { "alias": "aclFeatureGateElse"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
@@ -12,7 +12,7 @@ export declare const GET_CURRENT_CLUSTER: InjectionToken<GetCurrentCluster>;
|
|
|
12
12
|
* data: {
|
|
13
13
|
* path: 'home',
|
|
14
14
|
* canActivate: [ FeatureGuard ],
|
|
15
|
-
* data: { featureName: 'ace3', guard_url: 'xxx'
|
|
15
|
+
* data: { featureName: 'ace3', guard_url: 'xxx' }
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
package/core/module.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import * as i3 from "./pipes/marked.pipe";
|
|
|
5
5
|
import * as i4 from "./pipes/page-env.pipe";
|
|
6
6
|
import * as i5 from "./pipes/timezone-display.pipe";
|
|
7
7
|
import * as i6 from "./pipes/cron-human-readable.pipe";
|
|
8
|
-
import * as i7 from "./directives/
|
|
9
|
-
import * as i8 from "./directives/
|
|
10
|
-
import * as i9 from "./directives/
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../
|
|
8
|
+
import * as i7 from "./directives/scroll-to-first-invalid.directive";
|
|
9
|
+
import * as i8 from "./directives/last-form-item.directive";
|
|
10
|
+
import * as i9 from "./directives/readonly-field.directive";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "./pipes/k8s-util.pipe.module";
|
|
14
|
+
import * as i13 from "../effect-directive/module";
|
|
15
15
|
import * as i14 from "./pipes/parse-json-translate.pipe";
|
|
16
16
|
import * as i15 from "./pipes/field-not-available.pipe";
|
|
17
17
|
import * as i16 from "./pipes/img-header.pipe";
|
|
@@ -24,10 +24,10 @@ import * as i22 from "./directives/disabled.directive";
|
|
|
24
24
|
import * as i23 from "./directives/click-outside.directive";
|
|
25
25
|
import * as i24 from "./directives/scroll-border-observer.directive";
|
|
26
26
|
import * as i25 from "./directives/resize.directive";
|
|
27
|
-
import * as i26 from "./
|
|
28
|
-
import * as i27 from "
|
|
27
|
+
import * as i26 from "./directives/feature-gate.directive";
|
|
28
|
+
import * as i27 from "./pipes/pure.pipe";
|
|
29
29
|
export declare class CoreModule {
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.StandardDatePipe, typeof i2.CrontabNextPipe, typeof i3.MarkedPipe, typeof i4.LocaleTransformPipe, typeof i4.ThemeTransformPipe, typeof i5.TimezoneDisplayPipe, typeof i6.CronHumanReadablePipe, typeof i7.
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.StandardDatePipe, typeof i2.CrontabNextPipe, typeof i3.MarkedPipe, typeof i4.LocaleTransformPipe, typeof i4.ThemeTransformPipe, typeof i5.TimezoneDisplayPipe, typeof i6.CronHumanReadablePipe, typeof i7.ScrollToFirstInvalidMarkerDirective, typeof i8.FormItemMarginEffectDirective, typeof i9.SpanComponent], [typeof i10.CommonModule, typeof i11.ReactiveFormsModule, typeof i12.K8sUtilPipeModule, typeof i13.EffectDirectiveModule, typeof i9.ReadonlyFieldDirective, typeof i14.ParseJsonTranslatePipe, typeof i15.FieldNotAvailablePipe, typeof i16.ImgHeaderPipe, typeof i17.ImgThemePipe, typeof i18.SafePipe, typeof i19.SanitizePipe, typeof i1.RelativeTimePipe, typeof i20.PageHeaderContentDirective, typeof i1.StandardTimePipe, typeof i7.ScrollToFirstInvalidDirective, typeof i21.InterceptDeactivateDirective, typeof i22.DisabledDirective, typeof i23.ClickOutsideDirective, typeof i24.ScrollBorderObserverDirective, typeof i25.ResizeDirective, typeof i26.FeatureGateDirective, typeof i27.PurePipe], [typeof i1.StandardDatePipe, typeof i2.CrontabNextPipe, typeof i3.MarkedPipe, typeof i4.LocaleTransformPipe, typeof i4.ThemeTransformPipe, typeof i5.TimezoneDisplayPipe, typeof i6.CronHumanReadablePipe, typeof i7.ScrollToFirstInvalidMarkerDirective, typeof i8.FormItemMarginEffectDirective, typeof i9.ReadonlyFieldDirective, typeof i14.ParseJsonTranslatePipe, typeof i15.FieldNotAvailablePipe, typeof i16.ImgHeaderPipe, typeof i17.ImgThemePipe, typeof i18.SafePipe, typeof i19.SanitizePipe, typeof i1.RelativeTimePipe, typeof i20.PageHeaderContentDirective, typeof i1.StandardTimePipe, typeof i7.ScrollToFirstInvalidDirective, typeof i21.InterceptDeactivateDirective, typeof i22.DisabledDirective, typeof i23.ClickOutsideDirective, typeof i24.ScrollBorderObserverDirective, typeof i25.ResizeDirective, typeof i26.FeatureGateDirective, typeof i27.PurePipe, typeof i12.K8sUtilPipeModule, typeof i13.EffectDirectiveModule]>;
|
|
32
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
33
33
|
}
|
|
@@ -12,87 +12,87 @@ export declare class K8sAnnotationPipe implements PipeTransform {
|
|
|
12
12
|
constructor(k8sUtil: K8sUtilService);
|
|
13
13
|
transform(resource: KubernetesResource, type: string | BaseNormalizeTypeParams, prefix?: string): string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sAnnotationPipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sAnnotationPipe, "aclAnnotation",
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sAnnotationPipe, "aclAnnotation", true>;
|
|
16
16
|
}
|
|
17
17
|
export declare class K8sNamespacePipe implements PipeTransform {
|
|
18
18
|
private readonly k8sUtil;
|
|
19
19
|
constructor(k8sUtil: K8sUtilService);
|
|
20
20
|
transform(resource: KubernetesResource): string;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sNamespacePipe, never>;
|
|
22
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sNamespacePipe, "aclNamespace",
|
|
22
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sNamespacePipe, "aclNamespace", true>;
|
|
23
23
|
}
|
|
24
24
|
export declare class K8sNamePipe implements PipeTransform {
|
|
25
25
|
private readonly k8sUtil;
|
|
26
26
|
constructor(k8sUtil: K8sUtilService);
|
|
27
27
|
transform(resource: KubernetesResource): string;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sNamePipe, never>;
|
|
29
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sNamePipe, "aclName",
|
|
29
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sNamePipe, "aclName", true>;
|
|
30
30
|
}
|
|
31
31
|
export declare class K8sCreationTimestampPipe implements PipeTransform {
|
|
32
32
|
private readonly k8sUtil;
|
|
33
33
|
constructor(k8sUtil: K8sUtilService);
|
|
34
34
|
transform(resource: KubernetesResource): string;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sCreationTimestampPipe, never>;
|
|
36
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sCreationTimestampPipe, "aclCreationTimestamp",
|
|
36
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sCreationTimestampPipe, "aclCreationTimestamp", true>;
|
|
37
37
|
}
|
|
38
38
|
export declare class K8sDisplayNamePipe implements PipeTransform {
|
|
39
39
|
private readonly k8sUtil;
|
|
40
40
|
constructor(k8sUtil: K8sUtilService);
|
|
41
41
|
transform(resource: KubernetesResource, prefix?: string): string;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sDisplayNamePipe, never>;
|
|
43
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sDisplayNamePipe, "aclDisplayName",
|
|
43
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sDisplayNamePipe, "aclDisplayName", true>;
|
|
44
44
|
}
|
|
45
45
|
export declare class K8sUnionDisplayNamePipe implements PipeTransform {
|
|
46
46
|
private readonly k8sUtil;
|
|
47
47
|
constructor(k8sUtil: K8sUtilService);
|
|
48
48
|
transform(resource: KubernetesResource, namePrefix?: string | false, displayNamePrefix?: string): string;
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sUnionDisplayNamePipe, never>;
|
|
50
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sUnionDisplayNamePipe, "aclUnionDisplayName",
|
|
50
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sUnionDisplayNamePipe, "aclUnionDisplayName", true>;
|
|
51
51
|
}
|
|
52
52
|
export declare class K8sDescriptionPipe implements PipeTransform {
|
|
53
53
|
private readonly k8sUtil;
|
|
54
54
|
constructor(k8sUtil: K8sUtilService);
|
|
55
55
|
transform(resource: KubernetesResource, prefix?: string): string;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sDescriptionPipe, never>;
|
|
57
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sDescriptionPipe, "aclDescription",
|
|
57
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sDescriptionPipe, "aclDescription", true>;
|
|
58
58
|
}
|
|
59
59
|
export declare class K8sCreatorPipe implements PipeTransform {
|
|
60
60
|
private readonly k8sUtil;
|
|
61
61
|
constructor(k8sUtil: K8sUtilService);
|
|
62
62
|
transform(resource: KubernetesResource, prefix?: string): string;
|
|
63
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sCreatorPipe, never>;
|
|
64
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sCreatorPipe, "aclCreator",
|
|
64
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sCreatorPipe, "aclCreator", true>;
|
|
65
65
|
}
|
|
66
66
|
export declare class K8sUpdatedAtPipe implements PipeTransform {
|
|
67
67
|
private readonly k8sUtil;
|
|
68
68
|
constructor(k8sUtil: K8sUtilService);
|
|
69
69
|
transform(resource: KubernetesResource, prefix?: string): string;
|
|
70
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sUpdatedAtPipe, never>;
|
|
71
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sUpdatedAtPipe, "aclUpdatedAt",
|
|
71
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sUpdatedAtPipe, "aclUpdatedAt", true>;
|
|
72
72
|
}
|
|
73
73
|
export declare class K8sLabelPipe implements PipeTransform {
|
|
74
74
|
private readonly k8sUtil;
|
|
75
75
|
constructor(k8sUtil: K8sUtilService);
|
|
76
76
|
transform(resource: KubernetesResource, type: string | BaseNormalizeTypeParams, prefix?: string): string;
|
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sLabelPipe, never>;
|
|
78
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sLabelPipe, "aclLabel",
|
|
78
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sLabelPipe, "aclLabel", true>;
|
|
79
79
|
}
|
|
80
80
|
export declare class K8sProjectPipe implements PipeTransform {
|
|
81
81
|
private readonly k8sUtil;
|
|
82
82
|
constructor(k8sUtil: K8sUtilService);
|
|
83
83
|
transform(resource: KubernetesResource): string;
|
|
84
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sProjectPipe, never>;
|
|
85
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sProjectPipe, "aclProject",
|
|
85
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sProjectPipe, "aclProject", true>;
|
|
86
86
|
}
|
|
87
87
|
export declare class K8sIsDeletingPipe implements PipeTransform {
|
|
88
88
|
transform(resource: KubernetesResource): boolean;
|
|
89
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sIsDeletingPipe, never>;
|
|
90
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sIsDeletingPipe, "aclIsDeleting",
|
|
90
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sIsDeletingPipe, "aclIsDeleting", true>;
|
|
91
91
|
}
|
|
92
92
|
export declare class K8sTranslatePipe<T extends string> extends TranslatePipe<T> implements PipeTransform {
|
|
93
93
|
private readonly k8sUtil;
|
|
94
94
|
constructor(injector: Injector, k8sUtil: K8sUtilService);
|
|
95
95
|
transform<T extends KubernetesResource>(resource: T, type: string, data?: unknown): string;
|
|
96
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sTranslatePipe<any>, never>;
|
|
97
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<K8sTranslatePipe<any>, "$translate",
|
|
97
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<K8sTranslatePipe<any>, "$translate", true>;
|
|
98
98
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { K8sAnnotationPipe, K8sCreationTimestampPipe, K8sCreatorPipe, K8sDescriptionPipe, K8sDisplayNamePipe, K8sIsDeletingPipe, K8sLabelPipe, K8sNamePipe, K8sNamespacePipe, K8sProjectPipe, K8sTranslatePipe, K8sUnionDisplayNamePipe, K8sUpdatedAtPipe } from './k8s-util.pipe';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import * as i1 from "./k8s-util.pipe";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use `K8S_UTIL_PIPES_MODULE`
|
|
6
|
+
*/
|
|
3
7
|
export declare class K8sUtilPipeModule {
|
|
4
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<K8sUtilPipeModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<K8sUtilPipeModule, [typeof i1.K8sAnnotationPipe, typeof i1.K8sCreationTimestampPipe, typeof i1.K8sCreatorPipe, typeof i1.K8sDescriptionPipe, typeof i1.K8sDisplayNamePipe, typeof i1.K8sIsDeletingPipe, typeof i1.K8sLabelPipe, typeof i1.K8sNamePipe, typeof i1.K8sNamespacePipe, typeof i1.K8sProjectPipe, typeof i1.K8sTranslatePipe, typeof i1.K8sUnionDisplayNamePipe, typeof i1.K8sUpdatedAtPipe],
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<K8sUtilPipeModule, never, [typeof i1.K8sAnnotationPipe, typeof i1.K8sCreationTimestampPipe, typeof i1.K8sCreatorPipe, typeof i1.K8sDescriptionPipe, typeof i1.K8sDisplayNamePipe, typeof i1.K8sIsDeletingPipe, typeof i1.K8sLabelPipe, typeof i1.K8sNamePipe, typeof i1.K8sNamespacePipe, typeof i1.K8sProjectPipe, typeof i1.K8sTranslatePipe, typeof i1.K8sUnionDisplayNamePipe, typeof i1.K8sUpdatedAtPipe], [typeof i1.K8sAnnotationPipe, typeof i1.K8sCreationTimestampPipe, typeof i1.K8sCreatorPipe, typeof i1.K8sDescriptionPipe, typeof i1.K8sDisplayNamePipe, typeof i1.K8sIsDeletingPipe, typeof i1.K8sLabelPipe, typeof i1.K8sNamePipe, typeof i1.K8sNamespacePipe, typeof i1.K8sProjectPipe, typeof i1.K8sTranslatePipe, typeof i1.K8sUnionDisplayNamePipe, typeof i1.K8sUpdatedAtPipe]>;
|
|
6
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<K8sUtilPipeModule>;
|
|
7
11
|
}
|
|
12
|
+
export declare const K8S_UTIL_PIPES_MODULE: readonly (typeof K8sAnnotationPipe | typeof K8sNamespacePipe | typeof K8sNamePipe | typeof K8sCreationTimestampPipe | typeof K8sDisplayNamePipe | typeof K8sUnionDisplayNamePipe | typeof K8sDescriptionPipe | typeof K8sCreatorPipe | typeof K8sUpdatedAtPipe | typeof K8sLabelPipe | typeof K8sProjectPipe | typeof K8sIsDeletingPipe | typeof K8sTranslatePipe)[];
|
|
@@ -16,3 +16,6 @@ export * from './k8s-util.pipe.module';
|
|
|
16
16
|
export { ParseJsonPipe } from './parse-json.pipe';
|
|
17
17
|
export { MinimumFormatPipe } from './minimum-format.pipe';
|
|
18
18
|
export * from './duration.pipe';
|
|
19
|
+
export * from './pure.pipe';
|
|
20
|
+
export * from './calc.pipe';
|
|
21
|
+
export * from './pure.pipe.module';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./pure.pipe";
|
|
3
3
|
import * as i2 from "./calc.pipe";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use `PurePipe` standalone
|
|
6
|
+
*/
|
|
4
7
|
export declare class PurePipeModule {
|
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PurePipeModule, never>;
|
|
6
9
|
static ɵmod: i0.ɵɵNgModuleDeclaration<PurePipeModule, never, [typeof i1.PurePipe, typeof i2.CalcPipe], [typeof i1.PurePipe, typeof i2.CalcPipe]>;
|
|
@@ -28,6 +28,6 @@ export declare class ContextService<T> {
|
|
|
28
28
|
set(value?: T): void;
|
|
29
29
|
get(): T;
|
|
30
30
|
reset(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextService<any>,
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextService<any>, [{ optional: true; }]>;
|
|
32
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<ContextService<any>>;
|
|
33
33
|
}
|
package/core/utils/unit.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function getAppropriateMemory(base: number): {
|
|
|
14
14
|
value: number;
|
|
15
15
|
unit: string;
|
|
16
16
|
};
|
|
17
|
+
export declare const parseValueAndUnit: (str: string) => string[];
|
|
17
18
|
export declare function formatMemory(mem: string): number;
|
|
18
19
|
export declare function getMemory(base: number, unit: string): number;
|
|
19
20
|
export declare function getCpu(base: number, unit: string): number;
|
|
@@ -17,5 +17,5 @@ export declare class DisabledContainerComponent implements AfterViewInit, OnDest
|
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
private setButtonStatus;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledContainerComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DisabledContainerComponent, "acl-disabled-container", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; "isAllowed": { "alias": "isAllowed"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, ["*"],
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DisabledContainerComponent, "acl-disabled-container", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; "isAllowed": { "alias": "isAllowed"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
21
21
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./disabled-container.component";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use `DisabledContainerComponent` standalone
|
|
5
|
+
*/
|
|
6
6
|
export declare class DisabledContainerModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledContainerModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DisabledContainerModule, [typeof i1.DisabledContainerComponent], [typeof
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DisabledContainerModule, never, [typeof i1.DisabledContainerComponent], [typeof i1.DisabledContainerComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DisabledContainerModule>;
|
|
10
10
|
}
|
|
@@ -9,7 +9,7 @@ import { ChartComponent } from './chart.component';
|
|
|
9
9
|
import { LegendComponent, TitleComponent, LegendDropdownComponent, } from './components/public-api';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
import * as i1 from "@angular/common";
|
|
12
|
-
import * as i2 from "../
|
|
12
|
+
import * as i2 from "../core/pipes/pure.pipe";
|
|
13
13
|
import * as i3 from "../effect-directive/e2e-attribute-binding.directive";
|
|
14
14
|
import * as i4 from "@angular/forms";
|
|
15
15
|
import * as i5 from "@alauda/ui";
|