@kumori/aurora-wui-components 0.0.156 → 0.0.158
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/dist/components/cards/axebow-base-card.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-action-banner.d.ts +0 -2
- package/dist/components/cards/parts/axebow-card-action-banner.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-attention-banner.d.ts +0 -2
- package/dist/components/cards/parts/axebow-card-attention-banner.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-filter.d.ts +1 -2
- package/dist/components/cards/parts/axebow-card-filter.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-resource-table.d.ts +1 -2
- package/dist/components/cards/parts/axebow-card-resource-table.d.ts.map +1 -1
- package/dist/index.js +9 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-base-card.d.ts","sourceRoot":"","sources":["../../../src/components/cards/axebow-base-card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EACL,cAAc,EACd,SAAS,EACT,cAAc,EACd,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,iDAAiD,CAAC;AACzD,OAAO,+BAA+B,CAAC;AACvC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,+BAA+B,CAAC;AACvC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yCAAyC,CAAC;AACjD,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+BAA+B,CAAC;AAEvC,qBACa,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAC,MAAM,4BAYX;IAEiE,QAAQ,EAAE,QAAQ,CAAa;IACtE,IAAI,SAAM;IACV,OAAO,E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,EAAE,iBAAiB,EAAE,CAAM;IACrC,iBAAiB,SAAM;IACvB,QAAQ,SAA2B;IAEnC,WAAW,SAAM;IACjB,UAAU,SAAM;IAChB,aAAa,SAAM;IACnB,kBAAkB,SAAoB;IAErC,gBAAgB,UAAS;IACzB,iBAAiB,UAAS;IAC3B,WAAW,SAAY;IACvB,aAAa,SAAoB;IACjC,iBAAiB,SAA0B;IAC3C,iBAAiB,SAAoB;IACrC,QAAQ,SAAS;IACjB,iBAAiB,SAAM;IACvB,eAAe,SAAM;IAEpB,eAAe,UAAS;IAC1B,kBAAkB,EAAE,cAAc,EAAE,CAAM;IACxC,UAAU,UAAS;IACpB,UAAU,SAAW;IACrB,gBAAgB,SAAU;IAE1B,aAAa,SAAe;IAC5B,aAAa,SAAyB;IACtC,YAAY,SAAgD;IAC5D,OAAO,SAAsB;IAC7B,OAAO,SAA+B;IAEtC,IAAI,SAAM;IACV,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAM;IACtD,gBAAgB,SAA2B;IAEvE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAKlC;IAEF,OAAO,CAAC,aAAa;IAKrB,MAAM;CAsJP"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { CardType } from '../card.models.js';
|
|
3
2
|
export declare class AxebowCardActionBanner extends LitElement {
|
|
4
3
|
static styles: import('lit').CSSResult[];
|
|
5
4
|
label: string;
|
|
6
5
|
isPlainRole: boolean;
|
|
7
6
|
notAllowedLabel: string;
|
|
8
|
-
cardType: CardType;
|
|
9
7
|
render(): import('lit-html').TemplateResult<1>;
|
|
10
8
|
private _onClick;
|
|
11
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-action-banner.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-action-banner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-card-action-banner.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-action-banner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAE1C,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,4BAWX;IAE0B,KAAK,SAAkB;IACtB,WAAW,UAAS;IACrB,eAAe,SAAM;IAEjD,MAAM;IAkBN,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { CardType } from '../card.models.js';
|
|
3
2
|
export declare class AxebowCardAttentionBanner extends LitElement {
|
|
4
3
|
static styles: import('lit').CSSResult[];
|
|
5
4
|
isPlainRole: boolean;
|
|
6
5
|
label: string;
|
|
7
6
|
askOwnerLabel: string;
|
|
8
|
-
cardType: CardType;
|
|
9
7
|
render(): import('lit-html').TemplateResult<1>;
|
|
10
8
|
private _onClick;
|
|
11
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-attention-banner.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-attention-banner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-card-attention-banner.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-attention-banner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAE1C,qBACa,yBAA0B,SAAQ,UAAU;IACvD,MAAM,CAAC,MAAM,4BAWX;IAE2B,WAAW,UAAS;IACrB,KAAK,SAAkB;IACvB,aAAa,SAAiD;IAE1F,MAAM;IAkBN,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { CardFilterItem
|
|
2
|
+
import { CardFilterItem } from '../card.models.js';
|
|
3
3
|
export declare class AxebowCardFilter extends LitElement {
|
|
4
4
|
static styles: import('lit').CSSResult[];
|
|
5
5
|
items: CardFilterItem[];
|
|
@@ -11,7 +11,6 @@ export declare class AxebowCardFilter extends LitElement {
|
|
|
11
11
|
opened: boolean;
|
|
12
12
|
isPlainRole: boolean;
|
|
13
13
|
isDisabled: boolean;
|
|
14
|
-
cardType: CardType;
|
|
15
14
|
render(): import('lit-html').TemplateResult<1>;
|
|
16
15
|
private _onToggle;
|
|
17
16
|
private _onSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"axebow-card-filter.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,8BAA8B,CAAC;AAEtC,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,4BAGX;IAEyB,KAAK,EAAE,cAAc,EAAE,CAAM;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC/B,UAAU,SAAM;IAChB,gBAAgB,SAAM;IACtB,cAAc,SAAsB;IACnC,aAAa,UAAS;IACtB,MAAM,UAAS;IACf,WAAW,UAAS;IACpB,UAAU,UAAS;IAEhD,MAAM;IAiDN,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,cAAc;CAGvB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { TableStatsType } from '../card.models.js';
|
|
3
3
|
export declare class AxebowCardResourceTable extends LitElement {
|
|
4
4
|
static styles: import('lit').CSSResult[];
|
|
5
5
|
rows: TableStatsType[];
|
|
6
6
|
attentionThreshold: number;
|
|
7
|
-
cardType: CardType;
|
|
8
7
|
render(): import('lit-html').TemplateResult<1>;
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=axebow-card-resource-table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-resource-table.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-resource-table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"axebow-card-resource-table.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-resource-table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,uBAAwB,SAAQ,UAAU;IACrD,MAAM,CAAC,MAAM,4BAGX;IAEyB,IAAI,EAAE,cAAc,EAAE,CAAM;IAC3B,kBAAkB,SAAM;IAEpD,MAAM;CAoBP"}
|
package/dist/index.js
CHANGED
|
@@ -2767,17 +2767,15 @@ var AxebowCardFilter = class AxebowCardFilter extends LitElement {
|
|
|
2767
2767
|
this.opened = false;
|
|
2768
2768
|
this.isPlainRole = false;
|
|
2769
2769
|
this.isDisabled = false;
|
|
2770
|
-
this.cardType = "account";
|
|
2771
2770
|
}
|
|
2772
2771
|
static {
|
|
2773
2772
|
this.styles = [unsafeCSS(tailwind_default), css`:host { display: block; }`];
|
|
2774
2773
|
}
|
|
2775
2774
|
render() {
|
|
2776
|
-
const showEmpty = !this.selected && this.items.length === 0;
|
|
2777
2775
|
return html`
|
|
2778
2776
|
<div class="relative">
|
|
2779
|
-
<div class="flex justify-between items-center border-b border-(--axebow-light-gray)
|
|
2780
|
-
${
|
|
2777
|
+
<div class="flex justify-between items-center border-b border-(--axebow-light-gray) w-full h-8 box-border px-2 cursor-pointer">
|
|
2778
|
+
${!this.selected && this.items.length === 0 ? html`
|
|
2781
2779
|
<p
|
|
2782
2780
|
class="m-0 ${this.isPlainRole || this.isDisabled ? "text-(--axebow-gray) cursor-default opacity-50" : "text-(--axebow-tertiary) cursor-pointer"}"
|
|
2783
2781
|
@click=${this.isPlainRole || this.isDisabled ? void 0 : this._onEmptyAction}
|
|
@@ -2840,7 +2838,6 @@ __decorate([property({ type: Boolean })], AxebowCardFilter.prototype, "showAtten
|
|
|
2840
2838
|
__decorate([property({ type: Boolean })], AxebowCardFilter.prototype, "opened", void 0);
|
|
2841
2839
|
__decorate([property({ type: Boolean })], AxebowCardFilter.prototype, "isPlainRole", void 0);
|
|
2842
2840
|
__decorate([property({ type: Boolean })], AxebowCardFilter.prototype, "isDisabled", void 0);
|
|
2843
|
-
__decorate([property({ type: String })], AxebowCardFilter.prototype, "cardType", void 0);
|
|
2844
2841
|
AxebowCardFilter = __decorate([customElement("axebow-card-filter")], AxebowCardFilter);
|
|
2845
2842
|
//#endregion
|
|
2846
2843
|
//#region src/components/cards/parts/axebow-card-table-header.ts
|
|
@@ -2861,7 +2858,7 @@ var AxebowCardTableHeader = class AxebowCardTableHeader extends LitElement {
|
|
|
2861
2858
|
return html`
|
|
2862
2859
|
<div class="relative">
|
|
2863
2860
|
<div
|
|
2864
|
-
class="flex justify-between items-center border-b border-(--axebow-light-gray) w-
|
|
2861
|
+
class="flex justify-between items-center border-b border-(--axebow-light-gray) w-full h-8 box-border px-2 cursor-pointer"
|
|
2865
2862
|
@click=${this._onToggle}
|
|
2866
2863
|
>
|
|
2867
2864
|
<span class="text-(--axebow-tertiary)">${this.filterDisplayText || this.allLabel}</span>
|
|
@@ -2989,7 +2986,6 @@ var AxebowCardResourceTable = class AxebowCardResourceTable extends LitElement {
|
|
|
2989
2986
|
super(..._args);
|
|
2990
2987
|
this.rows = [];
|
|
2991
2988
|
this.attentionThreshold = 90;
|
|
2992
|
-
this.cardType = "account";
|
|
2993
2989
|
}
|
|
2994
2990
|
static {
|
|
2995
2991
|
this.styles = [unsafeCSS(tailwind_default), css`:host { display: block; }`];
|
|
@@ -2999,7 +2995,7 @@ var AxebowCardResourceTable = class AxebowCardResourceTable extends LitElement {
|
|
|
2999
2995
|
const lastVisible = visibleRows[visibleRows.length - 1];
|
|
3000
2996
|
const allEmpty = visibleRows.every((r) => Number(r.maxValue ?? 0) === 0);
|
|
3001
2997
|
return html`
|
|
3002
|
-
<div class="grid grid-cols-[auto_auto_1fr_auto] gap-x-2 gap-y-1
|
|
2998
|
+
<div class="grid grid-cols-[auto_auto_1fr_auto] gap-x-2 gap-y-1 w-full px-2 pt-px box-border">
|
|
3003
2999
|
${this.rows.map((stat) => html`
|
|
3004
3000
|
<axebow-card-resource-row
|
|
3005
3001
|
.stat=${stat}
|
|
@@ -3014,7 +3010,6 @@ var AxebowCardResourceTable = class AxebowCardResourceTable extends LitElement {
|
|
|
3014
3010
|
};
|
|
3015
3011
|
__decorate([property({ type: Array })], AxebowCardResourceTable.prototype, "rows", void 0);
|
|
3016
3012
|
__decorate([property({ type: Number })], AxebowCardResourceTable.prototype, "attentionThreshold", void 0);
|
|
3017
|
-
__decorate([property({ type: String })], AxebowCardResourceTable.prototype, "cardType", void 0);
|
|
3018
3013
|
AxebowCardResourceTable = __decorate([customElement("axebow-card-resource-table")], AxebowCardResourceTable);
|
|
3019
3014
|
//#endregion
|
|
3020
3015
|
//#region src/components/cards/parts/axebow-card-attention-banner.ts
|
|
@@ -3024,7 +3019,6 @@ var AxebowCardAttentionBanner = class AxebowCardAttentionBanner extends LitEleme
|
|
|
3024
3019
|
this.isPlainRole = false;
|
|
3025
3020
|
this.label = "View details";
|
|
3026
3021
|
this.askOwnerLabel = "Ask an owner or admin to solve this problem";
|
|
3027
|
-
this.cardType = "account";
|
|
3028
3022
|
}
|
|
3029
3023
|
static {
|
|
3030
3024
|
this.styles = [unsafeCSS(tailwind_default), css`
|
|
@@ -3038,10 +3032,9 @@ var AxebowCardAttentionBanner = class AxebowCardAttentionBanner extends LitEleme
|
|
|
3038
3032
|
`];
|
|
3039
3033
|
}
|
|
3040
3034
|
render() {
|
|
3041
|
-
const widthClass = this.cardType !== "tenant" ? "w-91" : "w-87";
|
|
3042
3035
|
return html`
|
|
3043
3036
|
<div
|
|
3044
|
-
class="${this.isPlainRole ? "" : "error-bg clickable"} flex items-center justify-center gap-1
|
|
3037
|
+
class="${this.isPlainRole ? "" : "error-bg clickable"} flex items-center justify-center gap-1 w-full h-8.75 box-border px-3 text-sm text-center overflow-hidden"
|
|
3045
3038
|
@click=${this.isPlainRole ? void 0 : this._onClick}
|
|
3046
3039
|
>
|
|
3047
3040
|
${this.isPlainRole ? html`<span class="text-(--axebow-error)">${this.askOwnerLabel}</span>` : html`
|
|
@@ -3063,7 +3056,6 @@ var AxebowCardAttentionBanner = class AxebowCardAttentionBanner extends LitEleme
|
|
|
3063
3056
|
__decorate([property({ type: Boolean })], AxebowCardAttentionBanner.prototype, "isPlainRole", void 0);
|
|
3064
3057
|
__decorate([property({ type: String })], AxebowCardAttentionBanner.prototype, "label", void 0);
|
|
3065
3058
|
__decorate([property({ type: String })], AxebowCardAttentionBanner.prototype, "askOwnerLabel", void 0);
|
|
3066
|
-
__decorate([property({ type: String })], AxebowCardAttentionBanner.prototype, "cardType", void 0);
|
|
3067
3059
|
AxebowCardAttentionBanner = __decorate([customElement("axebow-card-attention-banner")], AxebowCardAttentionBanner);
|
|
3068
3060
|
//#endregion
|
|
3069
3061
|
//#region src/components/cards/parts/axebow-card-action-banner.ts
|
|
@@ -3073,7 +3065,6 @@ var AxebowCardActionBanner = class AxebowCardActionBanner extends LitElement {
|
|
|
3073
3065
|
this.label = "View details";
|
|
3074
3066
|
this.isPlainRole = false;
|
|
3075
3067
|
this.notAllowedLabel = "";
|
|
3076
|
-
this.cardType = "account";
|
|
3077
3068
|
}
|
|
3078
3069
|
static {
|
|
3079
3070
|
this.styles = [unsafeCSS(tailwind_default), css`
|
|
@@ -3087,10 +3078,9 @@ var AxebowCardActionBanner = class AxebowCardActionBanner extends LitElement {
|
|
|
3087
3078
|
`];
|
|
3088
3079
|
}
|
|
3089
3080
|
render() {
|
|
3090
|
-
const widthClass = this.cardType !== "tenant" ? "w-91" : "w-87";
|
|
3091
3081
|
return html`
|
|
3092
3082
|
<div
|
|
3093
|
-
class="${this.isPlainRole ? "" : "tertiary-bg clickable"} flex items-center justify-center gap-1
|
|
3083
|
+
class="${this.isPlainRole ? "" : "tertiary-bg clickable"} flex items-center justify-center gap-1 w-full h-8.75 box-border px-3 text-sm text-center overflow-hidden"
|
|
3094
3084
|
@click=${this.isPlainRole ? void 0 : this._onClick}
|
|
3095
3085
|
>
|
|
3096
3086
|
${this.isPlainRole ? html`<span class="text-(--axebow-gray)">${this.notAllowedLabel}</span>` : html`
|
|
@@ -3112,7 +3102,6 @@ var AxebowCardActionBanner = class AxebowCardActionBanner extends LitElement {
|
|
|
3112
3102
|
__decorate([property({ type: String })], AxebowCardActionBanner.prototype, "label", void 0);
|
|
3113
3103
|
__decorate([property({ type: Boolean })], AxebowCardActionBanner.prototype, "isPlainRole", void 0);
|
|
3114
3104
|
__decorate([property({ type: String })], AxebowCardActionBanner.prototype, "notAllowedLabel", void 0);
|
|
3115
|
-
__decorate([property({ type: String })], AxebowCardActionBanner.prototype, "cardType", void 0);
|
|
3116
3105
|
AxebowCardActionBanner = __decorate([customElement("axebow-card-action-banner")], AxebowCardActionBanner);
|
|
3117
3106
|
//#endregion
|
|
3118
3107
|
//#region src/components/cards/parts/axebow-card-status.ts
|
|
@@ -3375,7 +3364,7 @@ var AxebowBaseCard = class AxebowBaseCard extends LitElement {
|
|
|
3375
3364
|
`}
|
|
3376
3365
|
|
|
3377
3366
|
<div class="flex flex-col w-full h-full">
|
|
3378
|
-
<div class="
|
|
3367
|
+
<div class="w-91 px-2 border border-(--axebow-light-gray) box-border ${showBanner ? "rounded-t-md" : "rounded-md"}">
|
|
3379
3368
|
${isRuntime ? html`
|
|
3380
3369
|
<axebow-card-table-header
|
|
3381
3370
|
.opened=${this.filterOpened}
|
|
@@ -3396,7 +3385,6 @@ var AxebowBaseCard = class AxebowBaseCard extends LitElement {
|
|
|
3396
3385
|
></axebow-card-table-header>
|
|
3397
3386
|
` : html`
|
|
3398
3387
|
<axebow-card-filter
|
|
3399
|
-
.cardType=${this.cardType}
|
|
3400
3388
|
.items=${this.filterItems}
|
|
3401
3389
|
.selected=${this.selected}
|
|
3402
3390
|
.emptyLabel=${this.emptyLabel}
|
|
@@ -3423,15 +3411,13 @@ var AxebowBaseCard = class AxebowBaseCard extends LitElement {
|
|
|
3423
3411
|
`}
|
|
3424
3412
|
|
|
3425
3413
|
<axebow-card-resource-table
|
|
3426
|
-
.cardType=${this.cardType}
|
|
3427
3414
|
.rows=${this.tableStats}
|
|
3428
3415
|
.attentionThreshold=${this.attentionThreshold}
|
|
3429
3416
|
></axebow-card-resource-table>
|
|
3430
3417
|
</div>
|
|
3431
3418
|
|
|
3432
|
-
<div class="h-8.75 box-border ${showBanner ? "border-x border-b border-(--axebow-light-gray) rounded-b-md overflow-hidden" : ""}">
|
|
3419
|
+
<div class="w-91 px-2 h-8.75 box-border ${showBanner ? "border-x border-b border-(--axebow-light-gray) rounded-b-md overflow-hidden" : ""}">
|
|
3433
3420
|
${showErrorBanner ? html`<axebow-card-attention-banner
|
|
3434
|
-
.cardType=${this.cardType}
|
|
3435
3421
|
.isPlainRole=${this.isPlainRole}
|
|
3436
3422
|
.label=${this.actionBannerLabel}
|
|
3437
3423
|
.askOwnerLabel=${this.askOwnerLabel}
|
|
@@ -3440,7 +3426,6 @@ var AxebowBaseCard = class AxebowBaseCard extends LitElement {
|
|
|
3440
3426
|
composed: true
|
|
3441
3427
|
}))}
|
|
3442
3428
|
></axebow-card-attention-banner>` : showNormalBanner ? html`<axebow-card-action-banner
|
|
3443
|
-
.cardType=${this.cardType}
|
|
3444
3429
|
.label=${this.actionBannerLabel}
|
|
3445
3430
|
.isPlainRole=${this.isPlainRole}
|
|
3446
3431
|
.notAllowedLabel=${this.notAllowedLabel}
|
|
@@ -3457,7 +3442,7 @@ var AxebowBaseCard = class AxebowBaseCard extends LitElement {
|
|
|
3457
3442
|
</div>
|
|
3458
3443
|
|
|
3459
3444
|
<axebow-card-footer
|
|
3460
|
-
class="px-2"
|
|
3445
|
+
class="px-2 ${isRuntime ? "pb-4" : ""}"
|
|
3461
3446
|
.isFreeIaaS=${this.isFreeIaaS}
|
|
3462
3447
|
.isPlainRole=${this.isPlainRole}
|
|
3463
3448
|
.statusCode=${isRuntime ? this.statusCode : ""}
|