@alauda-fe/common 1.0.4 → 1.1.1

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 (55) hide show
  1. package/a-metric-chart/a-metric-chart.component.d.ts +3 -0
  2. package/api/acp-common-api.service.d.ts +26 -0
  3. package/api/project-api.service.d.ts +5 -0
  4. package/api/public-api.d.ts +1 -0
  5. package/assets/icons/prod-icons.js +1 -1
  6. package/core/constants/patterns.d.ts +5 -0
  7. package/core/constants/status-icons.d.ts +1 -0
  8. package/core/directives/aui-code-editor.directive.d.ts +13 -0
  9. package/core/directives/public-api.d.ts +1 -0
  10. package/core/pipes/k8s-util.pipe.module.d.ts +1 -1
  11. package/effect-directive/module.d.ts +1 -1
  12. package/esm2022/api/acp-common-api.service.mjs +34 -0
  13. package/esm2022/api/project-api.service.mjs +17 -4
  14. package/esm2022/api/public-api.mjs +2 -1
  15. package/esm2022/core/constants/patterns.mjs +6 -1
  16. package/esm2022/core/constants/status-icons.mjs +2 -1
  17. package/esm2022/core/directives/aui-code-editor.directive.mjs +30 -0
  18. package/esm2022/core/directives/public-api.mjs +2 -1
  19. package/esm2022/core/pipes/k8s-util.pipe.module.mjs +4 -5
  20. package/esm2022/effect-directive/module.mjs +4 -5
  21. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +9 -10
  22. package/esm2022/form/validators/utils.mjs +47 -2
  23. package/esm2022/graphql/graphql.module.mjs +62 -0
  24. package/esm2022/graphql/graphql.service.mjs +45 -0
  25. package/esm2022/graphql/public-api.mjs +4 -0
  26. package/esm2022/graphql/queries.mjs +29 -0
  27. package/esm2022/graphql/types.mjs +6 -0
  28. package/esm2022/help-document/directive.mjs +3 -2
  29. package/esm2022/help-document/module.mjs +6 -4
  30. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +3 -2
  31. package/esm2022/multi-search/action-input/component.mjs +5 -5
  32. package/esm2022/multi-search/multi-search-tags/component.mjs +4 -4
  33. package/esm2022/overview-banner/overview-banner.component.mjs +5 -5
  34. package/esm2022/overview-banner/overview-banner.module.mjs +7 -7
  35. package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +4 -5
  36. package/esm2022/translate/en.json +43 -1
  37. package/esm2022/translate/zh.json +41 -1
  38. package/esm2022/widget/widget.module.mjs +19 -12
  39. package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +101 -64
  40. package/form/validators/strong-password/strong-password-validator.directive.d.ts +3 -3
  41. package/form/validators/utils.d.ts +3 -0
  42. package/graphql/graphql.module.d.ts +12 -0
  43. package/graphql/graphql.service.d.ts +14 -0
  44. package/graphql/public-api.d.ts +3 -0
  45. package/graphql/queries.d.ts +5 -0
  46. package/graphql/types.d.ts +46 -0
  47. package/help-document/directive.d.ts +1 -1
  48. package/help-document/module.d.ts +7 -7
  49. package/overview-banner/overview-banner.component.d.ts +1 -1
  50. package/overview-banner/overview-banner.module.d.ts +4 -3
  51. package/package.json +1 -1
  52. package/page-scaffold/navigation/breadcrumb/module.d.ts +1 -1
  53. package/translate/translate.module.d.ts +82 -0
  54. package/widget/widget.module.d.ts +3 -4
  55. package/xterm/xterm-terminal/xterm-terminal.component.d.ts +14 -1
@@ -106,6 +106,9 @@ export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
106
106
  x?: number;
107
107
  y?: number;
108
108
  };
109
+ textStyle?: {
110
+ color?: string;
111
+ };
109
112
  };
110
113
  innerRadius?: number;
111
114
  outerRadius?: number;
@@ -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
+ }
@@ -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';