@alauda-fe/common 1.3.1 → 1.4.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 (99) hide show
  1. package/api/auth-api.service.d.ts +14 -0
  2. package/api/platform-ui.service.d.ts +1 -0
  3. package/api/public-api.d.ts +1 -0
  4. package/array-form-table/form/component.d.ts +6 -2
  5. package/assets/icons/icon-refresh-drag.svg +1 -0
  6. package/authorization/interceptor.service.d.ts +2 -1
  7. package/authorization/public-api.d.ts +1 -0
  8. package/authorization/session-manage.service.d.ts +2 -4
  9. package/authorization/state.service.d.ts +19 -18
  10. package/authorization/storage-token.d.ts +4 -10
  11. package/core/constants/patterns.d.ts +4 -0
  12. package/core/directives/feature-gate.directive.d.ts +2 -1
  13. package/core/module.d.ts +21 -21
  14. package/core/pipes/minimum-format.pipe.d.ts +1 -1
  15. package/core/pipes/time.pipe.d.ts +1 -1
  16. package/core/services/context.service.d.ts +3 -4
  17. package/core/services/feature-gate.service.d.ts +1 -0
  18. package/core/services/workspace-helper.service.d.ts +3 -1
  19. package/core/types/commons.d.ts +2 -0
  20. package/core/types/k8s/crd.d.ts +64 -0
  21. package/core/types/resource-definitions.d.ts +3 -3
  22. package/core/utils/cache-store.d.ts +15 -13
  23. package/core/utils/common.d.ts +1 -2
  24. package/core/utils/public-api.d.ts +1 -0
  25. package/core/utils/router.d.ts +3 -0
  26. package/editable/editable.component.d.ts +23 -0
  27. package/editable/editable.directive.d.ts +9 -0
  28. package/editable/editable.type.d.ts +5 -0
  29. package/editable/public-api.d.ts +2 -0
  30. package/effect-directive/event.directive.d.ts +36 -0
  31. package/esm2022/api/auth-api.service.mjs +34 -0
  32. package/esm2022/api/platform-ui.service.mjs +2 -1
  33. package/esm2022/api/public-api.mjs +2 -1
  34. package/esm2022/array-form-table/form/component.mjs +30 -15
  35. package/esm2022/authorization/guard.service.mjs +2 -2
  36. package/esm2022/authorization/interceptor.service.mjs +31 -24
  37. package/esm2022/authorization/public-api.mjs +2 -1
  38. package/esm2022/authorization/session-manage.service.mjs +11 -24
  39. package/esm2022/authorization/state.service.mjs +94 -100
  40. package/esm2022/authorization/storage-token.mjs +12 -88
  41. package/esm2022/core/constants/patterns.mjs +6 -4
  42. package/esm2022/core/directives/feature-gate.directive.mjs +7 -4
  43. package/esm2022/core/guards/feature.guard.mjs +3 -2
  44. package/esm2022/core/module.mjs +7 -12
  45. package/esm2022/core/pipes/minimum-format.pipe.mjs +4 -3
  46. package/esm2022/core/pipes/time.pipe.mjs +3 -3
  47. package/esm2022/core/services/context.service.mjs +9 -12
  48. package/esm2022/core/services/feature-gate.service.mjs +4 -3
  49. package/esm2022/core/services/workspace-helper.service.mjs +7 -1
  50. package/esm2022/core/types/commons.mjs +1 -1
  51. package/esm2022/core/types/k8s/crd.mjs +8 -1
  52. package/esm2022/core/types/resource-definitions.mjs +2 -2
  53. package/esm2022/core/utils/cache-store.mjs +51 -29
  54. package/esm2022/core/utils/common.mjs +8 -10
  55. package/esm2022/core/utils/public-api.mjs +2 -1
  56. package/esm2022/core/utils/router.mjs +20 -0
  57. package/esm2022/editable/editable.component.mjs +136 -0
  58. package/esm2022/editable/editable.directive.mjs +25 -0
  59. package/esm2022/editable/editable.type.mjs +6 -0
  60. package/esm2022/editable/public-api.mjs +3 -0
  61. package/esm2022/effect-directive/event.directive.mjs +79 -4
  62. package/esm2022/exec/terminal/component.mjs +12 -19
  63. package/esm2022/k8s-resource-list/footer/component.mjs +63 -25
  64. package/esm2022/k8s-resource-list/k8s-resource-list.module.mjs +18 -6
  65. package/esm2022/k8s-resource-list/utils.mjs +7 -3
  66. package/esm2022/multi-search/multi-search-tags/component.mjs +2 -2
  67. package/esm2022/multi-search/types.mjs +1 -1
  68. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +55 -53
  69. package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +4 -4
  70. package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +3 -8
  71. package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +6 -10
  72. package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +6 -6
  73. package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +51 -40
  74. package/esm2022/pie-derivative-chart/units.mjs +14 -0
  75. package/esm2022/pod-status/component.mjs +34 -55
  76. package/esm2022/public-api.mjs +2 -1
  77. package/esm2022/searchable-selector/component.mjs +2 -2
  78. package/esm2022/table/component.mjs +47 -30
  79. package/esm2022/table/module.mjs +1 -1
  80. package/esm2022/view-chart/view-chart.component.mjs +5 -8
  81. package/esm2022/widget/public-api.mjs +2 -1
  82. package/esm2022/widget/resource-label/component.mjs +131 -0
  83. package/esm2022/widget/zero-state/zero-state.component.mjs +36 -21
  84. package/exec/terminal/component.d.ts +1 -3
  85. package/k8s-resource-list/footer/component.d.ts +8 -1
  86. package/k8s-resource-list/k8s-resource-list.module.d.ts +1 -1
  87. package/multi-search/types.d.ts +1 -0
  88. package/package.json +1 -1
  89. package/page-scaffold/page-header/common-layout/product-select/component.d.ts +1 -3
  90. package/pie-derivative-chart/radial-bar/radial-bar-chart.component.d.ts +4 -0
  91. package/pie-derivative-chart/units.d.ts +2 -0
  92. package/pod-status/component.d.ts +1 -3
  93. package/public-api.d.ts +1 -0
  94. package/styles/global.scss +1 -0
  95. package/styles/tailwind-preset.scss +1 -1
  96. package/table/component.d.ts +4 -3
  97. package/widget/public-api.d.ts +1 -0
  98. package/widget/resource-label/component.d.ts +25 -0
  99. package/widget/zero-state/zero-state.component.d.ts +4 -1
@@ -1,5 +1,5 @@
1
- import { handlePixel } from '@alauda/ui';
2
- import { NgClass, NgIf, NgStyle } from '@angular/common';
1
+ import { handlePixel, isTemplateRef } from '@alauda/ui';
2
+ import { NgClass, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';
3
3
  import { ChangeDetectionStrategy, Component, HostBinding, Input, } from '@angular/core';
4
4
  import { EffectDirectiveModule } from '../../effect-directive/module';
5
5
  import { PurePipe } from '../../public-api';
@@ -9,16 +9,27 @@ import * as i0 from "@angular/core";
9
9
  import * as i1 from "../../translate/translate.pipe";
10
10
  const _c0 = a0 => ({ minHeight: a0 });
11
11
  const _c1 = a0 => ({ name: a0 });
12
- function ZeroStateComponent_div_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
13
- i0.ɵɵelementContainerStart(0);
14
- i0.ɵɵtext(1);
15
- i0.ɵɵpipe(2, "translate");
16
- i0.ɵɵelementContainerEnd();
12
+ function ZeroStateComponent_div_0_Conditional_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵtext(0);
14
+ } if (rf & 2) {
15
+ const ctx_r0 = i0.ɵɵnextContext(3);
16
+ i0.ɵɵtextInterpolate(ctx_r0.customPlaceholder);
17
+ } }
18
+ function ZeroStateComponent_div_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
19
+ i0.ɵɵelementContainer(0, 4);
20
+ i0.ɵɵtemplate(1, ZeroStateComponent_div_0_Conditional_2_ng_template_1_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21
+ } if (rf & 2) {
22
+ const literal_r2 = i0.ɵɵreference(2);
23
+ const ctx_r0 = i0.ɵɵnextContext(2);
24
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.isTemplateRef(ctx_r0.customPlaceholder) ? ctx_r0.customPlaceholder : literal_r2);
25
+ } }
26
+ function ZeroStateComponent_div_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵtext(0);
28
+ i0.ɵɵpipe(1, "translate");
17
29
  } if (rf & 2) {
18
- i0.ɵɵadvance();
19
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "no_data"));
30
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, "no_data"), " ");
20
31
  } }
21
- function ZeroStateComponent_div_0_ng_template_3_Template(rf, ctx) { if (rf & 1) {
32
+ function ZeroStateComponent_div_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
22
33
  i0.ɵɵtext(0);
23
34
  i0.ɵɵpipe(1, "translate");
24
35
  i0.ɵɵpipe(2, "translate");
@@ -29,14 +40,13 @@ function ZeroStateComponent_div_0_ng_template_3_Template(rf, ctx) { if (rf & 1)
29
40
  function ZeroStateComponent_div_0_Template(rf, ctx) { if (rf & 1) {
30
41
  i0.ɵɵelementStart(0, "div", 3);
31
42
  i0.ɵɵpipe(1, "pure");
32
- i0.ɵɵtemplate(2, ZeroStateComponent_div_0_ng_container_2_Template, 3, 3, "ng-container", 4)(3, ZeroStateComponent_div_0_ng_template_3_Template, 3, 8, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
43
+ i0.ɵɵtemplate(2, ZeroStateComponent_div_0_Conditional_2_Template, 3, 1)(3, ZeroStateComponent_div_0_Conditional_3_Template, 2, 3)(4, ZeroStateComponent_div_0_Conditional_4_Template, 3, 8);
33
44
  i0.ɵɵelementEnd();
34
45
  } if (rf & 2) {
35
- const hint_r2 = i0.ɵɵreference(4);
36
46
  const ctx_r0 = i0.ɵɵnextContext();
37
- i0.ɵɵproperty("ngClass", ctx_r0.context)("ngStyle", i0.ɵɵpureFunction1(7, _c0, i0.ɵɵpipeBind2(1, 4, ctx_r0.minHeight, ctx_r0.handlePixel)));
47
+ i0.ɵɵproperty("ngClass", ctx_r0.context)("ngStyle", i0.ɵɵpureFunction1(6, _c0, i0.ɵɵpipeBind2(1, 3, ctx_r0.minHeight, ctx_r0.handlePixel)));
38
48
  i0.ɵɵadvance(2);
39
- i0.ɵɵproperty("ngIf", !(ctx_r0.resourceName || ctx_r0.resourceNameTranslated))("ngIfElse", hint_r2);
49
+ i0.ɵɵconditional(ctx_r0.customPlaceholder ? 2 : !(ctx_r0.resourceName || ctx_r0.resourceNameTranslated) ? 3 : 4);
40
50
  } }
41
51
  export class ZeroStateComponent {
42
52
  constructor() {
@@ -44,6 +54,7 @@ export class ZeroStateComponent {
44
54
  this.fetching = false;
45
55
  this.context = 'form';
46
56
  this.handlePixel = handlePixel;
57
+ this.isTemplateRef = isTemplateRef;
47
58
  }
48
59
  get hiddenState() {
49
60
  return !this.zeroState && !this.fetching;
@@ -51,35 +62,39 @@ export class ZeroStateComponent {
51
62
  static { this.ɵfac = function ZeroStateComponent_Factory(t) { return new (t || ZeroStateComponent)(); }; }
52
63
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ZeroStateComponent, selectors: [["acl-zero-state"]], hostVars: 1, hostBindings: function ZeroStateComponent_HostBindings(rf, ctx) { if (rf & 2) {
53
64
  i0.ɵɵhostProperty("hidden", ctx.hiddenState);
54
- } }, inputs: { resourceName: "resourceName", resourceNameTranslated: "resourceNameTranslated", zeroState: "zeroState", fetching: "fetching", context: "context", minHeight: "minHeight" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 2, consts: [["hint", ""], ["class", "zero-placeholder", 3, "ngClass", "ngStyle", 4, "ngIf"], [1, "zero-placeholder", 3, "loading"], [1, "zero-placeholder", 3, "ngClass", "ngStyle"], [4, "ngIf", "ngIfElse"]], template: function ZeroStateComponent_Template(rf, ctx) { if (rf & 1) {
55
- i0.ɵɵtemplate(0, ZeroStateComponent_div_0_Template, 5, 9, "div", 1);
65
+ } }, inputs: { resourceName: "resourceName", resourceNameTranslated: "resourceNameTranslated", customPlaceholder: "customPlaceholder", zeroState: "zeroState", fetching: "fetching", context: "context", minHeight: "minHeight" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 2, consts: [["literal", ""], ["class", "zero-placeholder", 3, "ngClass", "ngStyle", 4, "ngIf"], [1, "zero-placeholder", 3, "loading"], [1, "zero-placeholder", 3, "ngClass", "ngStyle"], [3, "ngTemplateOutlet"]], template: function ZeroStateComponent_Template(rf, ctx) { if (rf & 1) {
66
+ i0.ɵɵtemplate(0, ZeroStateComponent_div_0_Template, 5, 8, "div", 1);
56
67
  i0.ɵɵelement(1, "acl-loading-mask", 2);
57
68
  } if (rf & 2) {
58
69
  i0.ɵɵproperty("ngIf", ctx.zeroState && !ctx.fetching);
59
70
  i0.ɵɵadvance();
60
71
  i0.ɵɵproperty("loading", ctx.fetching);
61
72
  } }, dependencies: [NgClass,
62
- NgIf,
63
73
  NgStyle,
64
74
  PurePipe,
65
75
  TranslateModule, i1.TranslatePipe, LoadingMaskComponent,
66
- EffectDirectiveModule], styles: ["[_nghost-%COMP%] .zero-placeholder{box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:15px 10px;min-height:60px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-placeholder-text));background-color:rgb(var(--aui-color-n-10));border:solid 1px rgb(var(--aui-color-n-8));border-radius:var(--aui-border-radius-l);position:sticky;left:0}[_nghost-%COMP%] .zero-placeholder>aui-icon:first-child{margin-right:var(--aui-spacing-m)}[_nghost-%COMP%] .aui-table .aui-table__row+.zero-placeholder{border-top-left-radius:0;border-top-right-radius:0}.zero-placeholder.form[_ngcontent-%COMP%]{border:none;padding:14px 0}"], changeDetection: 0 }); }
76
+ EffectDirectiveModule,
77
+ NgTemplateOutlet,
78
+ NgIf], styles: ["[_nghost-%COMP%] .zero-placeholder{box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:15px 10px;min-height:60px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-placeholder-text));background-color:rgb(var(--aui-color-n-10));border:solid 1px rgb(var(--aui-color-n-8));border-radius:var(--aui-border-radius-l);position:sticky;left:0}[_nghost-%COMP%] .zero-placeholder>aui-icon:first-child{margin-right:var(--aui-spacing-m)}[_nghost-%COMP%] .aui-table .aui-table__row+.zero-placeholder{border-top-left-radius:0;border-top-right-radius:0}.zero-placeholder.form[_ngcontent-%COMP%]{border:none;padding:14px 0}"], changeDetection: 0 }); }
67
79
  }
68
80
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ZeroStateComponent, [{
69
81
  type: Component,
70
82
  args: [{ selector: 'acl-zero-state', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
71
83
  NgClass,
72
- NgIf,
73
84
  NgStyle,
74
85
  PurePipe,
75
86
  TranslateModule,
76
87
  LoadingMaskComponent,
77
88
  EffectDirectiveModule,
78
- ], standalone: true, template: "<div\n *ngIf=\"zeroState && !fetching\"\n class=\"zero-placeholder\"\n [ngClass]=\"context\"\n [ngStyle]=\"{\n minHeight: (minHeight | pure: handlePixel)\n }\"\n>\n <ng-container *ngIf=\"!(resourceName || resourceNameTranslated); else hint\">{{\n 'no_data' | translate\n }}</ng-container>\n <ng-template #hint>\n {{\n 'no_named_data_hint'\n | translate\n : {\n name: resourceNameTranslated || (resourceName | translate)\n }\n }}\n </ng-template>\n</div>\n<acl-loading-mask\n class=\"zero-placeholder\"\n [loading]=\"fetching\"\n></acl-loading-mask>\n", styles: [":host::ng-deep .zero-placeholder{box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:15px 10px;min-height:60px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-placeholder-text));background-color:rgb(var(--aui-color-n-10));border:solid 1px rgb(var(--aui-color-n-8));border-radius:var(--aui-border-radius-l);position:sticky;left:0}:host::ng-deep .zero-placeholder>aui-icon:first-child{margin-right:var(--aui-spacing-m)}:host::ng-deep .aui-table .aui-table__row+.zero-placeholder{border-top-left-radius:0;border-top-right-radius:0}.zero-placeholder.form{border:none;padding:14px 0}\n"] }]
89
+ NgTemplateOutlet,
90
+ NgIf,
91
+ ], standalone: true, template: "<div\n *ngIf=\"zeroState && !fetching\"\n class=\"zero-placeholder\"\n [ngClass]=\"context\"\n [ngStyle]=\"{\n minHeight: (minHeight | pure: handlePixel),\n }\"\n>\n @if (customPlaceholder) {\n <ng-container\n [ngTemplateOutlet]=\"\n isTemplateRef(customPlaceholder) ? customPlaceholder : literal\n \"\n ></ng-container>\n <ng-template #literal>{{ customPlaceholder }}</ng-template>\n } @else if (!(resourceName || resourceNameTranslated)) {\n {{ 'no_data' | translate }}\n } @else {\n {{\n 'no_named_data_hint'\n | translate\n : {\n name: resourceNameTranslated || (resourceName | translate),\n }\n }}\n }\n</div>\n<acl-loading-mask\n class=\"zero-placeholder\"\n [loading]=\"fetching\"\n></acl-loading-mask>\n", styles: [":host::ng-deep .zero-placeholder{box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:15px 10px;min-height:60px;font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-placeholder-text));background-color:rgb(var(--aui-color-n-10));border:solid 1px rgb(var(--aui-color-n-8));border-radius:var(--aui-border-radius-l);position:sticky;left:0}:host::ng-deep .zero-placeholder>aui-icon:first-child{margin-right:var(--aui-spacing-m)}:host::ng-deep .aui-table .aui-table__row+.zero-placeholder{border-top-left-radius:0;border-top-right-radius:0}.zero-placeholder.form{border:none;padding:14px 0}\n"] }]
79
92
  }], null, { resourceName: [{
80
93
  type: Input
81
94
  }], resourceNameTranslated: [{
82
95
  type: Input
96
+ }], customPlaceholder: [{
97
+ type: Input
83
98
  }], zeroState: [{
84
99
  type: Input
85
100
  }], fetching: [{
@@ -93,4 +108,4 @@ export class ZeroStateComponent {
93
108
  args: ['hidden']
94
109
  }] }); })();
95
110
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ZeroStateComponent, { className: "ZeroStateComponent" }); })();
96
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiemVyby1zdGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvd2lkZ2V0L3plcm8tc3RhdGUvemVyby1zdGF0ZS5jb21wb25lbnQudHMi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ICAgICAgICAgICAgfVxuICAgIH19XG4gIH1cbjwvZGl2PlxuPGFjbC1sb2FkaW5nLW1hc2tcbiAgY2xhc3M9XCJ6ZXJvLXBsYWNlaG9sZGVyXCJcbiAgW2xvYWRpbmddPVwiZmV0Y2hpbmdcIlxuPjwvYWNsLWxvYWRpbmctbWFzaz5cbiJdfQ==
@@ -5,7 +5,6 @@ import { Terminal } from 'xterm';
5
5
  import { CanvasAddon } from 'xterm-addon-canvas';
6
6
  import { WebglAddon } from 'xterm-addon-webgl';
7
7
  import { ApiGatewayService } from '../../api/public-api';
8
- import { AuthorizationStateService } from '../../authorization/public-api';
9
8
  import { K8sPermissionService } from '../../permission/k8s-permission.service';
10
9
  import { TranslateService } from '../../translate/public-api';
11
10
  import { ConnectionStatus } from '../constants';
@@ -28,7 +27,6 @@ export declare function initRendererAddon(): WebglAddon | CanvasAddon;
28
27
  */
29
28
  export declare class TerminalComponent implements OnChanges, OnDestroy, OnInit {
30
29
  private readonly apiGateway;
31
- private readonly authState;
32
30
  private readonly notification;
33
31
  private readonly translate;
34
32
  private readonly cdr;
@@ -63,7 +61,7 @@ export declare class TerminalComponent implements OnChanges, OnDestroy, OnInit {
63
61
  shouldFallBackOnClose: boolean;
64
62
  get themeClass(): string;
65
63
  get showLoading(): boolean;
66
- constructor(apiGateway: ApiGatewayService, authState: AuthorizationStateService, notification: NotificationService, translate: TranslateService, cdr: ChangeDetectorRef, k8sPermission: K8sPermissionService, globalNamespace: string);
64
+ constructor(apiGateway: ApiGatewayService, notification: NotificationService, translate: TranslateService, cdr: ChangeDetectorRef, k8sPermission: K8sPermissionService, globalNamespace: string);
67
65
  ngOnInit(): void;
68
66
  ngOnChanges({ option }: SimpleChanges): void;
69
67
  ngOnDestroy(): void;
@@ -14,6 +14,12 @@ export declare class K8sListFooterNoDataDirective {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<K8sListFooterNoDataDirective, never>;
15
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<K8sListFooterNoDataDirective, "[aclK8sListFooterNoData]", never, {}, {}, never, never, false, never>;
16
16
  }
17
+ export declare class K8sListFooterLoadingErrorDirective {
18
+ templateRef: TemplateRef<any>;
19
+ constructor(templateRef: TemplateRef<any>);
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<K8sListFooterLoadingErrorDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<K8sListFooterLoadingErrorDirective, "[aclK8sListFooterLoadingError]", never, {}, {}, never, never, false, never>;
22
+ }
17
23
  export declare class K8SResourceListFooterComponent extends ScrollBorderObserverDirective implements OnInit, OnDestroy {
18
24
  private readonly translate;
19
25
  list: StreamListLoader<KubernetesResourceList, KubernetesResource>;
@@ -26,6 +32,7 @@ export declare class K8SResourceListFooterComponent extends ScrollBorderObserver
26
32
  resourceName: string;
27
33
  resourceName$: Observable<string>;
28
34
  noDataTemplate: TemplateRef<any>;
35
+ loadingErrorTemplate: TemplateRef<any>;
29
36
  isEmptyList$: Observable<boolean>;
30
37
  noDataHint$: Observable<string>;
31
38
  loadingErrorCode$: Observable<number>;
@@ -34,5 +41,5 @@ export declare class K8SResourceListFooterComponent extends ScrollBorderObserver
34
41
  ngOnInit(): void;
35
42
  retry(): void;
36
43
  static ɵfac: i0.ɵɵFactoryDeclaration<K8SResourceListFooterComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<K8SResourceListFooterComponent, "acl-k8s-resource-list-footer", never, { "list": { "alias": "list"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "backTop": { "alias": "backTop"; "required": false; }; "bottomDistance": { "alias": "bottomDistance"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "firstScrollLoad": { "alias": "firstScrollLoad"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; }, {}, ["noDataTemplate"], never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<K8SResourceListFooterComponent, "acl-k8s-resource-list-footer", never, { "list": { "alias": "list"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "backTop": { "alias": "backTop"; "required": false; }; "bottomDistance": { "alias": "bottomDistance"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "firstScrollLoad": { "alias": "firstScrollLoad"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; }, {}, ["noDataTemplate", "loadingErrorTemplate"], never, false, never>;
38
45
  }
@@ -5,6 +5,6 @@ import * as i3 from "@alauda/ui";
5
5
  import * as i4 from "../translate/translate.module";
6
6
  export declare class K8SResourceListModule {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<K8SResourceListModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<K8SResourceListModule, [typeof i1.K8SResourceListFooterComponent, typeof i1.K8sListFooterNoDataDirective], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i3.IconModule, typeof i3.BackTopModule, typeof i4.TranslateModule], [typeof i1.K8SResourceListFooterComponent, typeof i1.K8sListFooterNoDataDirective]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<K8SResourceListModule, [typeof i1.K8SResourceListFooterComponent, typeof i1.K8sListFooterNoDataDirective, typeof i1.K8sListFooterLoadingErrorDirective], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i3.IconModule, typeof i3.BackTopModule, typeof i4.TranslateModule], [typeof i1.K8SResourceListFooterComponent, typeof i1.K8sListFooterNoDataDirective, typeof i1.K8sListFooterLoadingErrorDirective]>;
9
9
  static ɵinj: i0.ɵɵInjectorDeclaration<K8SResourceListModule>;
10
10
  }
@@ -27,6 +27,7 @@ export interface SearchTagConfig {
27
27
  }
28
28
  export interface MultiSearchOption {
29
29
  label?: string;
30
+ tagLabel?: string;
30
31
  value: string;
31
32
  group?: string;
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda-fe/common",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Alauda frontend team common codes.",
5
5
  "author": "Alauda Frontend",
6
6
  "license": "MIT",
@@ -1,6 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
- import { AuthorizationStateService } from '../../../../authorization/public-api';
4
3
  import { StringMap, ProductEntry } from '../../../../core/public-api';
5
4
  import { K8sPermissionService } from '../../../../permission/k8s-permission.service';
6
5
  import { ProductEntryName } from '../context.service';
@@ -13,7 +12,6 @@ export declare class ProductSelectComponent implements OnInit {
13
12
  private readonly router;
14
13
  private readonly k8sPermission;
15
14
  private readonly productSelectService;
16
- private readonly authState;
17
15
  platformPath: string;
18
16
  current?: ProductEntryName;
19
17
  title?: string;
@@ -23,7 +21,7 @@ export declare class ProductSelectComponent implements OnInit {
23
21
  portalProduct$: import("rxjs").Observable<ProductEntry>;
24
22
  disabled$: import("rxjs").Observable<boolean>;
25
23
  isPortal: boolean;
26
- constructor(store: CommonLayoutStoreService, router: Router, k8sPermission: K8sPermissionService, productSelectService: ProductSelectService, authState: AuthorizationStateService);
24
+ constructor(store: CommonLayoutStoreService, router: Router, k8sPermission: K8sPermissionService, productSelectService: ProductSelectService);
27
25
  ngOnInit(): void;
28
26
  jump(entrypoint: string, ssoEnabled: boolean, target?: string): void;
29
27
  navigateToPortal(event: MouseEvent): void;
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnChanges } from '@angular/core';
2
+ import { NumericalLimitPipe } from '../numerical-limit.pipe';
2
3
  import * as i0 from "@angular/core";
3
4
  interface NodeFractionArc {
4
5
  backgroundArcPath: any;
@@ -12,6 +13,7 @@ interface NodeFractionArc {
12
13
  hideIndicator?: boolean;
13
14
  }
14
15
  export declare class RadialBarChartComponent implements OnChanges {
16
+ private numericalLimitPipe;
15
17
  limitsFraction: number;
16
18
  requestsFraction: number;
17
19
  capacity: number;
@@ -42,6 +44,7 @@ export declare class RadialBarChartComponent implements OnChanges {
42
44
  get outerRadius(): number;
43
45
  get innerRadius(): number;
44
46
  arcTrackByFn(index: number): number;
47
+ constructor(numericalLimitPipe: NumericalLimitPipe);
45
48
  private getArcs;
46
49
  getArc: (level: number, fraction: number, label: string, opacity: number, value: string, hideIndicator?: boolean, color?: string) => NodeFractionArc;
47
50
  handelData(): NodeFractionArc[];
@@ -49,6 +52,7 @@ export declare class RadialBarChartComponent implements OnChanges {
49
52
  onRefresh(): void;
50
53
  private getFractionArcPath;
51
54
  private getTextCoord;
55
+ getLabelDx: (x: number, text: number, index: number) => number;
52
56
  static ɵfac: i0.ɵɵFactoryDeclaration<RadialBarChartComponent, never>;
53
57
  static ɵcmp: i0.ɵɵComponentDeclaration<RadialBarChartComponent, "acl-radial-bar-chart", never, { "limitsFraction": { "alias": "limitsFraction"; "required": false; }; "requestsFraction": { "alias": "requestsFraction"; "required": false; }; "capacity": { "alias": "capacity"; "required": false; }; "data": { "alias": "data"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "color": { "alias": "color"; "required": false; }; "usage": { "alias": "usage"; "required": false; }; "request": { "alias": "request"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "failed": { "alias": "failed"; "required": false; }; }, { "refresh": "refresh"; }, never, never, false, never>;
54
58
  }
@@ -0,0 +1,2 @@
1
+ export declare function getCanvasContext(): CanvasRenderingContext2D;
2
+ export declare function measureText(text: string, fontSize?: number): TextMetrics;
@@ -3,8 +3,6 @@ import { getPodAggregatedStatus, getPodStatus } from './status';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PodStatusComponent {
5
5
  pod: Pod;
6
- showNativeStatus: boolean;
7
- showNativeStatusWrap: boolean;
8
6
  disableMessageOverview: boolean;
9
7
  getReadyContainer(pod: Pod): {
10
8
  ready: number;
@@ -23,5 +21,5 @@ export declare class PodStatusComponent {
23
21
  error: import("../core/public-api").GenericStatusIcon;
24
22
  };
25
23
  static ɵfac: i0.ɵɵFactoryDeclaration<PodStatusComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<PodStatusComponent, "acl-pod-status", never, { "pod": { "alias": "pod"; "required": false; }; "showNativeStatus": { "alias": "showNativeStatus"; "required": false; }; "showNativeStatusWrap": { "alias": "showNativeStatusWrap"; "required": false; }; "disableMessageOverview": { "alias": "disableMessageOverview"; "required": false; }; }, {}, never, never, true, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<PodStatusComponent, "acl-pod-status", never, { "pod": { "alias": "pod"; "required": false; }; "disableMessageOverview": { "alias": "disableMessageOverview"; "required": false; }; }, {}, never, never, true, never>;
27
25
  }
package/public-api.d.ts CHANGED
@@ -42,3 +42,4 @@ export * from './k8s-shared/public-api';
42
42
  export * from './list-display/public-api';
43
43
  export * from './pod-status/public-api';
44
44
  export * from './workload-status-icon/public-api';
45
+ export * from './editable/public-api';
@@ -646,6 +646,7 @@ aui-form-item {
646
646
  &__name {
647
647
  display: flex;
648
648
  align-items: center;
649
+ width: fit-content;
649
650
  max-width: 100%;
650
651
 
651
652
  > {
@@ -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-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-\[150px\]{width:150px}.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-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-text-xl{font-size:var(--aui-font-size-xl)}.tw-font-bold{font-weight:var(--aui-font-weight-bold)}.tw-font-bolder{font-weight:var(--aui-font-weight-bolder)}.tw-font-normal{font-weight:var(--aui-font-weight-normal)}.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-1{color:rgb(var(--aui-color-n-1))}.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-text-opacity:1;--tw-content:"*";color:rgb(235 98 98/var(--tw-text-opacity));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-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-\[150px\]{width:150px}.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-text-opacity:1;--tw-content:"*";color:rgb(235 98 98/var(--tw-text-opacity));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,5 +1,5 @@
1
1
  import { Sort } from '@alauda/ui';
2
- import { EventEmitter, QueryList, TrackByFunction } from '@angular/core';
2
+ import { EventEmitter, QueryList, TemplateRef, TrackByFunction } from '@angular/core';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
5
5
  import { K8sResourceAction, KubernetesResourceList } from '../core/types/k8s/public-api';
@@ -31,6 +31,7 @@ export declare class TableComponent<Item extends object, Context = TableUtilServ
31
31
  filterFn$: Observable<TableFilterFn<Item, Context>>;
32
32
  trackBy: TrackByFunction<Item>;
33
33
  noDataHint: string;
34
+ loadingErrorTemplate: TemplateRef<any>;
34
35
  enablePagination: boolean;
35
36
  pageSize: number;
36
37
  pageSizeOptions: number[];
@@ -72,7 +73,7 @@ export declare class TableComponent<Item extends object, Context = TableUtilServ
72
73
  normalizeColumnDefSort(column: TableColumnDef<Item, Context>): TableColumnDef<Item, Context, object, string, string | number>;
73
74
  onSortChange($event: Sort): void;
74
75
  normalizeActionColumnDef(column: TableColumnDef<Item, Context>): NormalizedTableColumnDef<Item, Context>;
75
- getColumnTemplate(column: string): import("@angular/core").TemplateRef<{
76
+ getColumnTemplate(column: string): TemplateRef<{
76
77
  $implicit: Item;
77
78
  index: number;
78
79
  even: boolean;
@@ -83,5 +84,5 @@ export declare class TableComponent<Item extends object, Context = TableUtilServ
83
84
  onUpdate(data: Item, columnDef: TableColumnDef<Item, Context>): void;
84
85
  getValue<T, F extends (...args: unknown[]) => T>(functionOrValue: T | F, ...args: Parameters<F>): T;
85
86
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, never>;
86
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "acl-table", never, { "list": { "alias": "list"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filterParams": { "alias": "filterParams"; "required": false; }; "context": { "alias": "context"; "required": false; }; "filterFn": { "alias": "filterFn"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "noDataHint": { "alias": "noDataHint"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "paginationLayout": { "alias": "paginationLayout"; "required": false; }; "firstScrollLoad": { "alias": "firstScrollLoad"; "required": false; }; }, { "update": "update"; "delete": "delete"; "sortChange": "sortChange"; }, ["tableCellDefs"], never, false, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "acl-table", never, { "list": { "alias": "list"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "filterParams": { "alias": "filterParams"; "required": false; }; "context": { "alias": "context"; "required": false; }; "filterFn": { "alias": "filterFn"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "noDataHint": { "alias": "noDataHint"; "required": false; }; "loadingErrorTemplate": { "alias": "loadingErrorTemplate"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "paginationLayout": { "alias": "paginationLayout"; "required": false; }; "firstScrollLoad": { "alias": "firstScrollLoad"; "required": false; }; }, { "update": "update"; "delete": "delete"; "sortChange": "sortChange"; }, ["tableCellDefs"], never, false, never>;
87
88
  }
@@ -18,6 +18,7 @@ export * from './tags-label/component';
18
18
  export * from './status-icon/status-icon.component';
19
19
  export * from './text-ellipsis/component';
20
20
  export * from './password-input/component';
21
+ export { ResourceLabelComponent } from './resource-label/component';
21
22
  export { ResourceMultiSelectComponent } from './resource-multi-select/component';
22
23
  export { isSelectAll, ALL_VALUE, checkValueExit, } from './resource-multi-select/util';
23
24
  export { SearchItemComponent } from './search-panel/search-item/component';
@@ -0,0 +1,25 @@
1
+ import { TranslateService } from '../../translate/public-api';
2
+ import * as i0 from "@angular/core";
3
+ type ResourceType = 'cpu' | 'memory';
4
+ interface ResourceInfo {
5
+ icon: string;
6
+ formatter: (rawData: number | string, locale?: string) => string;
7
+ }
8
+ export declare class ResourceLabelComponent {
9
+ readonly translate: TranslateService;
10
+ rawValue: string | number;
11
+ default: string;
12
+ type: ResourceType;
13
+ noIcon: boolean;
14
+ get formattedDefault(): string;
15
+ labelIconMapper: Record<ResourceType, ResourceInfo>;
16
+ constructor(translate: TranslateService);
17
+ formatCPU(rawData: number | string): string;
18
+ formatMemory(rawData: number | string): string;
19
+ private getResourceUnit;
20
+ private formatCpuUnit;
21
+ private formatMemoryUnit;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceLabelComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResourceLabelComponent, "acl-resource-label", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "default": { "alias": "default"; "required": false; }; "type": { "alias": "type"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; }, {}, never, never, true, never>;
24
+ }
25
+ export {};
@@ -1,13 +1,16 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ZeroStateComponent {
3
4
  resourceName: string;
4
5
  resourceNameTranslated: string;
6
+ customPlaceholder: TemplateRef<unknown> | string;
5
7
  zeroState: boolean;
6
8
  fetching: boolean;
7
9
  context: 'form' | 'table';
8
10
  minHeight: string | number;
9
11
  get hiddenState(): boolean;
10
12
  handlePixel: (value: number | string) => string;
13
+ isTemplateRef: (label: any) => label is TemplateRef<unknown>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ZeroStateComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ZeroStateComponent, "acl-zero-state", never, { "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "zeroState": { "alias": "zeroState"; "required": false; }; "fetching": { "alias": "fetching"; "required": false; }; "context": { "alias": "context"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; }, {}, never, never, true, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZeroStateComponent, "acl-zero-state", never, { "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "zeroState": { "alias": "zeroState"; "required": false; }; "fetching": { "alias": "fetching"; "required": false; }; "context": { "alias": "context"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; }, {}, never, never, true, never>;
13
16
  }