@alauda-fe/common 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/array-form-table/form/component.d.ts +1 -1
- package/authorization/interceptor.service.d.ts +0 -1
- package/authorization/state.service.d.ts +13 -13
- package/core/abstract/base-nested-form-control.d.ts +1 -1
- package/core/constants/patterns.d.ts +4 -0
- package/core/directives/scroll-to-first-invalid.directive.d.ts +1 -1
- package/core/module.d.ts +21 -21
- package/core/pipes/time.pipe.d.ts +1 -1
- package/core/services/context.service.d.ts +3 -4
- package/core/services/feature-gate.service.d.ts +1 -1
- package/core/services/workspace-helper.service.d.ts +3 -1
- package/core/utils/common.d.ts +0 -2
- package/core/utils/public-api.d.ts +1 -0
- package/core/utils/router.d.ts +3 -0
- package/core/utils/version.d.ts +1 -1
- package/editable/editable.component.d.ts +23 -0
- package/editable/editable.directive.d.ts +9 -0
- package/editable/editable.type.d.ts +5 -0
- package/editable/public-api.d.ts +2 -0
- package/esm2022/authorization/guard.service.mjs +2 -2
- package/esm2022/authorization/interceptor.service.mjs +7 -22
- package/esm2022/authorization/state.service.mjs +58 -92
- package/esm2022/core/constants/patterns.mjs +6 -4
- package/esm2022/core/module.mjs +7 -12
- package/esm2022/core/pipes/time.pipe.mjs +3 -3
- package/esm2022/core/services/context.service.mjs +9 -12
- package/esm2022/core/services/workspace-helper.service.mjs +7 -1
- package/esm2022/core/types/k8s/crd.mjs +1 -1
- package/esm2022/core/utils/common.mjs +1 -11
- package/esm2022/core/utils/public-api.mjs +2 -1
- package/esm2022/core/utils/router.mjs +20 -0
- package/esm2022/editable/editable.component.mjs +136 -0
- package/esm2022/editable/editable.directive.mjs +25 -0
- package/esm2022/editable/editable.type.mjs +6 -0
- package/esm2022/editable/public-api.mjs +3 -0
- package/esm2022/exec/terminal/component.mjs +12 -19
- package/esm2022/k8s-resource-list/footer/component.mjs +57 -21
- package/esm2022/k8s-resource-list/k8s-resource-list.module.mjs +18 -6
- package/esm2022/k8s-resource-list/utils.mjs +7 -3
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +55 -53
- package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +4 -4
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +6 -10
- package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +6 -6
- package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +51 -40
- package/esm2022/pie-derivative-chart/units.mjs +14 -0
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/table/component.mjs +47 -30
- package/esm2022/table/module.mjs +1 -1
- package/esm2022/view-chart/view-chart.component.mjs +5 -8
- package/esm2022/widget/public-api.mjs +2 -1
- package/esm2022/widget/resource-label/component.mjs +131 -0
- package/esm2022/widget/zero-state/zero-state.component.mjs +36 -21
- package/exec/terminal/component.d.ts +1 -3
- package/k8s-resource-list/footer/component.d.ts +8 -1
- package/k8s-resource-list/k8s-resource-list.module.d.ts +1 -1
- package/k8s-resource-list/k8s-resource-paged-list.d.ts +2 -2
- package/package.json +1 -1
- package/page-scaffold/page-header/common-layout/product-select/component.d.ts +1 -3
- package/pie-derivative-chart/radial-bar/radial-bar-chart.component.d.ts +4 -0
- package/pie-derivative-chart/units.d.ts +2 -0
- package/public-api.d.ts +1 -0
- package/styles/global.scss +1 -0
- package/styles/tailwind-preset.scss +1 -1
- package/table/component.d.ts +5 -4
- package/table/helper.d.ts +1 -1
- package/table/module.d.ts +1 -1
- package/widget/public-api.d.ts +1 -0
- package/widget/resource-label/component.d.ts +25 -0
- 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
|
|
13
|
-
i0.ɵɵ
|
|
14
|
-
|
|
15
|
-
i0.ɵɵ
|
|
16
|
-
i0.ɵɵ
|
|
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.ɵɵ
|
|
19
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "no_data"));
|
|
30
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, "no_data"), " ");
|
|
20
31
|
} }
|
|
21
|
-
function
|
|
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,
|
|
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(
|
|
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.ɵɵ
|
|
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: [["
|
|
55
|
-
i0.ɵɵtemplate(0, ZeroStateComponent_div_0_Template, 5,
|
|
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
|
|
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
|
-
|
|
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,
|
|
111
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiemVyby1zdGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvd2lkZ2V0L3plcm8tc3RhdGUvemVyby1zdGF0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvd2lkZ2V0L3plcm8tc3RhdGUvemVyby1zdGF0ZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLGFBQWEsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUN4RCxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzRSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxXQUFXLEVBQ1gsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3RFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM1QyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDN0QsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7Ozs7OztJQ0NwRCxZQUF1Qjs7O0lBQXZCLDhDQUF1Qjs7O0lBTDdDLDJCQUlnQjtJQUNoQix3SUFBc0I7Ozs7SUFKcEIseUhBRUM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CJcbiAgW2xvYWRpbmddPVwiZmV0Y2hpbmdcIlxuPjwvYWNsLWxvYWRpbmctbWFzaz5cbiJdfQ==
|
|
@@ -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,
|
|
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
|
}
|
|
@@ -14,11 +14,11 @@ export declare class K8SResourcePagedList<R extends KubernetesResource = Kuberne
|
|
|
14
14
|
loading$: Observable<boolean>;
|
|
15
15
|
items$: Observable<R[]>;
|
|
16
16
|
totalItems$: Observable<number>;
|
|
17
|
-
loadError$: Observable<
|
|
17
|
+
loadError$: Observable<HttpErrorResponse | Status>;
|
|
18
18
|
$loading: Signal<boolean>;
|
|
19
19
|
$items: Signal<R[]>;
|
|
20
20
|
$totalItems: Signal<number>;
|
|
21
|
-
$loadError: Signal<
|
|
21
|
+
$loadError: Signal<HttpErrorResponse | Status>;
|
|
22
22
|
constructor(config: PagedListConfig<R, P>);
|
|
23
23
|
reload(): void;
|
|
24
24
|
private sourceLoadState;
|
package/package.json
CHANGED
|
@@ -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
|
|
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
|
}
|
package/public-api.d.ts
CHANGED
package/styles/global.scss
CHANGED
|
@@ -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-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-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}}
|
package/table/component.d.ts
CHANGED
|
@@ -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[];
|
|
@@ -51,7 +52,7 @@ export declare class TableComponent<Item extends object, Context = TableUtilServ
|
|
|
51
52
|
finalDataSource$: Observable<Item[]>;
|
|
52
53
|
finalResourceName$: Observable<string>;
|
|
53
54
|
columnDefs$: Observable<TableColumnDefs<Item, Context>>;
|
|
54
|
-
columnNames$: Observable<import("@alauda-fe/common").LiteralUnion<"
|
|
55
|
+
columnNames$: Observable<import("@alauda-fe/common").LiteralUnion<"name" | "action", string>[]>;
|
|
55
56
|
activeSort$$: ReplaySubject<Sort>;
|
|
56
57
|
activeSort$: Observable<Sort>;
|
|
57
58
|
filteredItems$: Observable<Item[]>;
|
|
@@ -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):
|
|
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
|
}
|
package/table/helper.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function defaultFilter<T extends string | number>(value: T, filterValue: T, _item: unknown, name: string): boolean;
|
|
2
|
-
export declare function defaultSorter<T>(a: T, b: T):
|
|
2
|
+
export declare function defaultSorter<T>(a: T, b: T): 1 | 0 | -1;
|
package/table/module.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import * as i23 from "../widget/field-set/group/component";
|
|
|
27
27
|
import * as i24 from "../widget/field-set/column/component";
|
|
28
28
|
import * as i25 from "../translate/translate.pipe";
|
|
29
29
|
import * as i26 from "../translate/translate.directive";
|
|
30
|
-
export declare const COMMON_TABLE_EXPORTABLE: (typeof
|
|
30
|
+
export declare const COMMON_TABLE_EXPORTABLE: (typeof TableComponent | typeof TableCellDefDirective)[];
|
|
31
31
|
export declare class TableModule {
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
33
33
|
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.TableCellDefDirective], [typeof i3.CommonModule, typeof i4.RouterModule, typeof i5.ButtonModule, typeof i5.DropdownModule, typeof i5.IconModule, typeof i5.SortModule, typeof i5.TooltipModule, typeof i5.TableModule, typeof i6.K8SResourceListModule, typeof i7.CoreModule, typeof i8.ZeroStateComponent, typeof i9.LoadingMaskComponent, typeof i10.ConfirmDeleteComponent, typeof i11.FoldableBlockComponent, typeof i12.RelativeTimeComponent, typeof i10.ConfirmDeleteContentDirective, typeof i10.ConfirmDeleteLabelDirective, typeof i10.ConfirmDeleteTipDirective, typeof i13.DisabledContainerComponent, typeof i14.TerminatingTagComponent, typeof i15.FoldableItemInTableComponent, typeof i16.SelectPrefixLabelDirective, typeof i17.TextWithUrlComponent, typeof i18.CardSectionComponent, typeof i19.CurrentTimeComponent, typeof i20.TextEllipsisComponent, typeof i21.ResourceMultiSelectComponent, typeof i22.FieldSetItemActionDirective, typeof i22.FieldSetItemComponent, typeof i23.FieldSetGroupComponent, typeof i24.FieldSetColumnComponent, typeof i24.FieldSetColumnGroupComponent, typeof i25.TranslatePipe, typeof i26.TranslateDirective, typeof i26.TranslateMatchDirective, typeof i26.TranslateTextDirective, typeof i5.PaginatorModule, typeof i13.DisabledContainerComponent], [typeof i1.TableComponent, typeof i2.TableCellDefDirective]>;
|
package/widget/public-api.d.ts
CHANGED
|
@@ -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
|
}
|