@alauda-fe/common 1.0.3 → 1.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.
Files changed (185) hide show
  1. package/a-chart/base-chart.d.ts +2 -2
  2. package/a-chart/chart.component.d.ts +3 -2
  3. package/a-chart/types.d.ts +5 -0
  4. package/a-metric-chart/a-metric-chart.component.d.ts +45 -2
  5. package/a-metric-chart/a-metric-chart.module.d.ts +2 -2
  6. package/a-metric-chart/utils/util.d.ts +1 -1
  7. package/api/acp-common-api.service.d.ts +26 -0
  8. package/api/cluster-version.service.d.ts +0 -3
  9. package/api/project-api.service.d.ts +5 -0
  10. package/api/public-api.d.ts +1 -0
  11. package/assets/icons/prod-icons.js +1 -1
  12. package/core/constants/patterns.d.ts +5 -0
  13. package/core/constants/status-icons.d.ts +1 -0
  14. package/core/directives/aui-code-editor.directive.d.ts +13 -0
  15. package/core/directives/feature-gate.directive.d.ts +1 -1
  16. package/core/directives/public-api.d.ts +2 -0
  17. package/core/guards/feature.guard.d.ts +1 -1
  18. package/core/module.d.ts +10 -10
  19. package/core/pipes/k8s-util.pipe.d.ts +13 -13
  20. package/core/pipes/k8s-util.pipe.module.d.ts +6 -1
  21. package/core/pipes/public-api.d.ts +3 -0
  22. package/{scm/pure-pipe/module.d.ts → core/pipes/pure.pipe.module.d.ts} +3 -0
  23. package/core/services/context.service.d.ts +1 -1
  24. package/core/utils/unit.d.ts +1 -0
  25. package/disabled-container/disabled-container.component.d.ts +1 -1
  26. package/disabled-container/disabled-container.module.d.ts +4 -4
  27. package/effect-directive/module.d.ts +1 -1
  28. package/esm2022/a-chart/a-chart.module.mjs +1 -1
  29. package/esm2022/a-chart/base-chart.mjs +7 -7
  30. package/esm2022/a-chart/chart.component.mjs +11 -3
  31. package/esm2022/a-chart/types.mjs +7 -2
  32. package/esm2022/a-metric-chart/a-metric-chart.component.mjs +38 -13
  33. package/esm2022/a-metric-chart/a-metric-chart.module.mjs +6 -8
  34. package/esm2022/a-metric-chart/bar-gauge/bar-gauge.component.mjs +6 -5
  35. package/esm2022/a-metric-chart/stat-chart/stat-chart.component.mjs +26 -12
  36. package/esm2022/a-metric-chart/table-chart/table-chart.component.mjs +3 -3
  37. package/esm2022/a-metric-chart/utils/util.mjs +6 -5
  38. package/esm2022/api/acp-common-api.service.mjs +34 -0
  39. package/esm2022/api/cluster-version.service.mjs +1 -7
  40. package/esm2022/api/project-api.service.mjs +17 -4
  41. package/esm2022/api/public-api.mjs +2 -1
  42. package/esm2022/array-form-table/form/component.mjs +2 -2
  43. package/esm2022/array-form-table/key-value-table/component.mjs +2 -2
  44. package/esm2022/business/resource-select/module.mjs +2 -2
  45. package/esm2022/chart/chart.module.mjs +1 -1
  46. package/esm2022/core/constants/patterns.mjs +6 -1
  47. package/esm2022/core/constants/status-icons.mjs +2 -1
  48. package/esm2022/core/directives/aui-code-editor.directive.mjs +30 -0
  49. package/esm2022/core/directives/declare.directive.mjs +27 -0
  50. package/esm2022/core/directives/feature-gate.directive.mjs +3 -3
  51. package/esm2022/core/directives/public-api.mjs +3 -1
  52. package/esm2022/core/guards/feature.guard.mjs +3 -5
  53. package/esm2022/core/module.mjs +19 -17
  54. package/esm2022/core/pipes/calc.pipe.mjs +21 -0
  55. package/esm2022/core/pipes/k8s-util.pipe.mjs +27 -27
  56. package/esm2022/core/pipes/k8s-util.pipe.module.mjs +8 -5
  57. package/esm2022/core/pipes/public-api.mjs +4 -1
  58. package/esm2022/core/pipes/pure.pipe.mjs +26 -0
  59. package/esm2022/core/pipes/pure.pipe.module.mjs +21 -0
  60. package/esm2022/core/services/context.service.mjs +5 -3
  61. package/esm2022/core/utils/common.mjs +3 -3
  62. package/esm2022/core/utils/unit.mjs +5 -1
  63. package/esm2022/disabled-container/disabled-container.component.mjs +7 -5
  64. package/esm2022/disabled-container/disabled-container.module.mjs +7 -11
  65. package/esm2022/effect-directive/module.mjs +4 -5
  66. package/esm2022/exec/module.mjs +3 -4
  67. package/esm2022/form/errors-mapper/errors-mapper.module.mjs +13 -4
  68. package/esm2022/form/labels-editor/component.mjs +8 -8
  69. package/esm2022/form/taints-editor/component.mjs +4 -6
  70. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +9 -10
  71. package/esm2022/form/validators/utils.mjs +47 -2
  72. package/esm2022/graphql/graphql.module.mjs +62 -0
  73. package/esm2022/graphql/graphql.service.mjs +45 -0
  74. package/esm2022/graphql/public-api.mjs +4 -0
  75. package/esm2022/graphql/queries.mjs +29 -0
  76. package/esm2022/graphql/types.mjs +6 -0
  77. package/esm2022/grid-layout/utils/grid.utils.mjs +2 -20
  78. package/esm2022/help-document/directive.mjs +3 -2
  79. package/esm2022/help-document/module.mjs +6 -4
  80. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +3 -2
  81. package/esm2022/license/license-error/module.mjs +1 -1
  82. package/esm2022/multi-search/action-input/component.mjs +6 -7
  83. package/esm2022/multi-search/form/component.mjs +3 -4
  84. package/esm2022/multi-search/multi-search-tags/component.mjs +9 -9
  85. package/esm2022/overview-banner/overview-banner.component.mjs +5 -5
  86. package/esm2022/overview-banner/overview-banner.module.mjs +7 -7
  87. package/esm2022/page-guard/module.mjs +7 -4
  88. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.mjs +3 -2
  89. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +23 -5
  90. package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +16 -31
  91. package/esm2022/page-scaffold/navigation/lottie-icons/lottie-icon.directive.mjs +3 -2
  92. package/esm2022/page-scaffold/navigation/lottie-icons/module.mjs +6 -3
  93. package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.module.mjs +4 -4
  94. package/esm2022/page-scaffold/page-header/common-layout/common-layout.module.mjs +5 -7
  95. package/esm2022/page-scaffold/page-header/header-notify/header-notify.module.mjs +4 -4
  96. package/esm2022/page-scaffold/page-header/help-menu/module.mjs +13 -14
  97. package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +2 -2
  98. package/esm2022/public-api.mjs +2 -2
  99. package/esm2022/searchable-selector/module.mjs +1 -1
  100. package/esm2022/skeleton/module.mjs +1 -1
  101. package/esm2022/table/module.mjs +5 -5
  102. package/esm2022/translate/en.json +44 -1
  103. package/esm2022/translate/translate.directive.mjs +7 -7
  104. package/esm2022/translate/translate.module.mjs +18 -17
  105. package/esm2022/translate/translate.pipe.mjs +4 -3
  106. package/esm2022/translate/zh.json +42 -1
  107. package/esm2022/widget/card-section/card-section.component.mjs +23 -6
  108. package/esm2022/widget/current-time/component.mjs +6 -4
  109. package/esm2022/widget/date-range-picker/component.mjs +12 -9
  110. package/esm2022/widget/foldable-item-in-table/component.mjs +28 -6
  111. package/esm2022/widget/password-input/component.mjs +283 -0
  112. package/esm2022/widget/public-api.mjs +8 -1
  113. package/esm2022/widget/resource-multi-select/component.mjs +211 -0
  114. package/esm2022/widget/resource-multi-select/util.mjs +24 -0
  115. package/esm2022/{scm → widget}/search-panel/component.mjs +1 -1
  116. package/esm2022/{scm → widget}/search-panel/helper.directive.mjs +1 -1
  117. package/esm2022/{scm → widget}/search-panel/search-item/component.mjs +1 -1
  118. package/esm2022/widget/status-icon/status-icon.component.mjs +2 -2
  119. package/esm2022/widget/tags-label/component.mjs +2 -3
  120. package/esm2022/widget/terminating-tag/component.mjs +7 -4
  121. package/esm2022/{scm → widget}/text-ellipsis/component.mjs +1 -1
  122. package/esm2022/widget/text-with-url/component.mjs +6 -4
  123. package/esm2022/widget/widget.module.mjs +54 -86
  124. package/esm2022/widget/zero-state/zero-state.component.mjs +6 -6
  125. package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +102 -65
  126. package/exec/module.d.ts +1 -1
  127. package/form/errors-mapper/errors-mapper.module.d.ts +6 -0
  128. package/form/validators/strong-password/strong-password-validator.directive.d.ts +3 -3
  129. package/form/validators/utils.d.ts +3 -0
  130. package/graphql/graphql.module.d.ts +12 -0
  131. package/graphql/graphql.service.d.ts +14 -0
  132. package/graphql/public-api.d.ts +3 -0
  133. package/graphql/queries.d.ts +5 -0
  134. package/graphql/types.d.ts +46 -0
  135. package/help-document/directive.d.ts +1 -1
  136. package/help-document/module.d.ts +7 -7
  137. package/overview-banner/overview-banner.component.d.ts +1 -1
  138. package/overview-banner/overview-banner.module.d.ts +4 -3
  139. package/package.json +1 -1
  140. package/page-guard/module.d.ts +4 -1
  141. package/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.d.ts +1 -1
  142. package/page-scaffold/navigation/breadcrumb/breadcrumb.component.d.ts +1 -1
  143. package/page-scaffold/navigation/breadcrumb/module.d.ts +8 -6
  144. package/page-scaffold/navigation/lottie-icons/lottie-icon.directive.d.ts +1 -1
  145. package/page-scaffold/navigation/lottie-icons/module.d.ts +4 -1
  146. package/page-scaffold/page-header/common-layout/common-layout.module.d.ts +2 -2
  147. package/page-scaffold/page-header/help-menu/module.d.ts +6 -5
  148. package/public-api.d.ts +1 -1
  149. package/styles/tailwind-preset.scss +1 -1
  150. package/translate/translate.directive.d.ts +3 -3
  151. package/translate/translate.module.d.ts +97 -4
  152. package/translate/translate.pipe.d.ts +1 -1
  153. package/widget/card-section/card-section.component.d.ts +4 -2
  154. package/widget/current-time/component.d.ts +1 -1
  155. package/widget/foldable-item-in-table/component.d.ts +1 -1
  156. package/{scm → widget}/password-input/component.d.ts +1 -1
  157. package/widget/public-api.d.ts +7 -0
  158. package/widget/terminating-tag/component.d.ts +1 -1
  159. package/widget/text-with-url/component.d.ts +1 -1
  160. package/widget/widget.module.d.ts +37 -21
  161. package/xterm/xterm-terminal/xterm-terminal.component.d.ts +14 -1
  162. package/esm2022/scm/declare.directive.mjs +0 -27
  163. package/esm2022/scm/password-input/component.mjs +0 -261
  164. package/esm2022/scm/password-input/module.mjs +0 -67
  165. package/esm2022/scm/password-input/public-api.mjs +0 -3
  166. package/esm2022/scm/public-api.mjs +0 -10
  167. package/esm2022/scm/pure-pipe/calc.pipe.mjs +0 -21
  168. package/esm2022/scm/pure-pipe/module.mjs +0 -18
  169. package/esm2022/scm/pure-pipe/public-api.mjs +0 -4
  170. package/esm2022/scm/pure-pipe/pure.pipe.mjs +0 -26
  171. package/esm2022/scm/resource-multi-select/component.mjs +0 -212
  172. package/esm2022/scm/resource-multi-select/util.mjs +0 -24
  173. package/scm/password-input/module.d.ts +0 -14
  174. package/scm/password-input/public-api.d.ts +0 -2
  175. package/scm/public-api.d.ts +0 -9
  176. package/scm/pure-pipe/public-api.d.ts +0 -3
  177. /package/{scm → core/directives}/declare.directive.d.ts +0 -0
  178. /package/{scm/pure-pipe → core/pipes}/calc.pipe.d.ts +0 -0
  179. /package/{scm/pure-pipe → core/pipes}/pure.pipe.d.ts +0 -0
  180. /package/{scm → widget}/resource-multi-select/component.d.ts +0 -0
  181. /package/{scm → widget}/resource-multi-select/util.d.ts +0 -0
  182. /package/{scm → widget}/search-panel/component.d.ts +0 -0
  183. /package/{scm → widget}/search-panel/helper.directive.d.ts +0 -0
  184. /package/{scm → widget}/search-panel/search-item/component.d.ts +0 -0
  185. /package/{scm → widget}/text-ellipsis/component.d.ts +0 -0
@@ -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
  }
@@ -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;
@@ -1,13 +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
6
  import { TranslateService, Translation } from '../translate/public-api';
7
7
  import { MetricChartRefreshService } from './metric-chart-refresh.service';
8
8
  import { IndicatorParams, AMatchUnitParams, MetricParams, SeriesParams, FetchParams, AMetricChartOptions, Orientation } from './types';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare const POLAR_COORDINATE_TYPES: Set<string>;
11
+ export declare const SPECIAL_TYPES: Set<string>;
11
12
  export declare const METRIC_INPUT_KEY: string[];
12
13
  export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
13
14
  private readonly refreshService;
@@ -42,6 +43,7 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
42
43
  notAutoFillUnit: boolean;
43
44
  enableZoom: boolean;
44
45
  enableZoom$: Observable<boolean>;
46
+ nullPointMode: NULL_POINT_MODE;
45
47
  contextCallback: EventEmitter<Chart>;
46
48
  refresh: EventEmitter<void>;
47
49
  markClick: EventEmitter<MarkContext>;
@@ -95,6 +97,47 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
95
97
  setPromQlResource(res: MonitorMetric[]): void;
96
98
  getPromQlResource(): MonitorDataItem;
97
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
+ textStyle?: {
110
+ color?: string;
111
+ };
112
+ };
113
+ innerRadius?: number;
114
+ outerRadius?: number;
115
+ max?: number;
116
+ colors?: [number, string][];
117
+ text?: {
118
+ show?: boolean;
119
+ size?: number;
120
+ color?: string | ((value: number) => string);
121
+ };
122
+ };
123
+ area?: import("zz-chart").AreaShapeOption;
124
+ legend?: import("zz-chart").LegendOption;
125
+ title?: import("zz-chart").TitleOption;
126
+ line?: import("zz-chart").LineShapeOption;
127
+ annotation?: import("zz-chart").AnnotationOption;
128
+ tooltip?: import("zz-chart").TooltipOption;
129
+ scale?: {
130
+ x?: import("zz-chart").ScaleOption;
131
+ y?: import("zz-chart").ScaleOption;
132
+ };
133
+ axis?: {
134
+ x?: import("zz-chart").AxisOption;
135
+ y?: import("zz-chart").AxisOption;
136
+ };
137
+ coordinate?: import("zz-chart").CoordinateOption;
138
+ bar?: import("zz-chart").BarShapeOption;
139
+ point?: import("zz-chart").PointShapeOption;
140
+ };
98
141
  private changeChartOptions;
99
142
  private handleDataStatus;
100
143
  private handleUnit;
@@ -102,6 +145,6 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
102
145
  private readonly mergePointContext;
103
146
  private changeStatus;
104
147
  static ɵfac: i0.ɵɵFactoryDeclaration<AMetricChartComponent, [{ optional: true; }, null, null, null]>;
105
- 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>;
148
+ 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>;
106
149
  }
107
150
  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 "../scm/pure-pipe/module";
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.PurePipeModule, typeof i10.TranslateModule], [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent]>;
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
  }
@@ -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";
@@ -0,0 +1,26 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { KubernetesResource, KubernetesResourceList, StringMap } from '../core/public-api';
3
+ import { K8sApiResourceService } from './k8s-api-resource.service';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * 对应后端组件 archon 的`通用`高级 API 实现
7
+ * 对应 API Gateway 前缀为 /acp/v1
8
+ *
9
+ * /acp/v1 包含多个 api 路径: /kubernetes, /alb, /oam, /metallb;
10
+ * 其中一部分是平台是通用的,在 libs/common 下实现。
11
+ */
12
+ export declare class AcpCommonApiService {
13
+ private readonly httpClient;
14
+ private readonly k8sApiResource;
15
+ constructor(httpClient: HttpClient, k8sApiResource: K8sApiResourceService);
16
+ getResourcesByProject<T extends KubernetesResource>(project: string, resourceParams: {
17
+ cluster?: string;
18
+ namespace?: string;
19
+ name?: string;
20
+ type?: string;
21
+ apiGroup?: string;
22
+ apiVersion?: string;
23
+ }, queryParams?: StringMap): import("rxjs").Observable<KubernetesResourceList<T>>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AcpCommonApiService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<AcpCommonApiService>;
26
+ }
@@ -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
  }
@@ -10,7 +10,12 @@ export declare class ProjectApiService {
10
10
  project: string;
11
11
  cluster: string;
12
12
  }): Observable<KubernetesResourceList<Namespace>>;
13
+ get(name: string): Observable<Project>;
13
14
  getClusterNamespaces(project: string, cluster: string): Observable<Namespace[]>;
15
+ getProjectNamespaces(projectName: string): Observable<Array<{
16
+ cluster: string;
17
+ namespace: string;
18
+ }>>;
14
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ProjectApiService, never>;
15
20
  static ɵprov: i0.ɵɵInjectableDeclaration<ProjectApiService>;
16
21
  }
@@ -19,3 +19,4 @@ export * from './product.service';
19
19
  export * from './project-api.service';
20
20
  export * from './platform-ui.service';
21
21
  export * from './api-compatible.interceptor';
22
+ export * from './acp-common-api.service';