@kumori/aurora-wui-components 0.0.338 → 0.0.339-dev4710.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.
|
@@ -24,16 +24,7 @@ export declare class AxebowCallToActionRow extends LitElement {
|
|
|
24
24
|
timeText: string;
|
|
25
25
|
buttons: CallToActionButton[];
|
|
26
26
|
lowNoteText: string;
|
|
27
|
-
private _titleTruncated;
|
|
28
|
-
private _metaTruncated;
|
|
29
|
-
private _title?;
|
|
30
|
-
private _meta?;
|
|
31
|
-
private _resizeObserver?;
|
|
32
27
|
static styles: import('lit').CSSResult[];
|
|
33
|
-
disconnectedCallback(): void;
|
|
34
|
-
protected updated(): void;
|
|
35
|
-
private _syncTruncation;
|
|
36
|
-
private get _metaText();
|
|
37
28
|
render(): import('lit-html').TemplateResult<1>;
|
|
38
29
|
private _renderDescription;
|
|
39
30
|
private _renderLowNote;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-call-to-action-row.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/axebow-call-to-action-row.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"axebow-call-to-action-row.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-call-to-action-row/axebow-call-to-action-row.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACrG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,uBAAuB,EAAE,gBAAgB,CAIhF,CAAC;AAEF,qBACa,qBAAsB,SAAQ,UAAU;IACvB,WAAW,EAAE,uBAAuB,CAAS;IAC7C,OAAO,SAAM;IACb,UAAU,SAAM;IAChB,WAAW,SAAM;IAClB,UAAU,EAAE,0BAA0B,EAAE,CAAM;IAC7C,QAAQ,SAAM;IACf,OAAO,EAAE,kBAAkB,EAAE,CAAM;IAClC,WAAW,SAAM;IAE7C,MAAM,CAAC,MAAM,4BASX;IAEF,MAAM;IA4BN,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
|
package/dist/index.js
CHANGED
|
@@ -9904,8 +9904,6 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9904
9904
|
this.timeText = "";
|
|
9905
9905
|
this.buttons = [];
|
|
9906
9906
|
this.lowNoteText = "";
|
|
9907
|
-
this._titleTruncated = false;
|
|
9908
|
-
this._metaTruncated = false;
|
|
9909
9907
|
}
|
|
9910
9908
|
static {
|
|
9911
9909
|
this.styles = [
|
|
@@ -9919,30 +9917,6 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9919
9917
|
`
|
|
9920
9918
|
];
|
|
9921
9919
|
}
|
|
9922
|
-
disconnectedCallback() {
|
|
9923
|
-
super.disconnectedCallback();
|
|
9924
|
-
this._resizeObserver?.disconnect();
|
|
9925
|
-
this._resizeObserver = void 0;
|
|
9926
|
-
}
|
|
9927
|
-
updated() {
|
|
9928
|
-
this._resizeObserver ??= new ResizeObserver(() => this._syncTruncation());
|
|
9929
|
-
this._resizeObserver.disconnect();
|
|
9930
|
-
[this._title, this._meta].forEach((element) => {
|
|
9931
|
-
if (element) this._resizeObserver?.observe(element);
|
|
9932
|
-
});
|
|
9933
|
-
this._syncTruncation();
|
|
9934
|
-
}
|
|
9935
|
-
_syncTruncation() {
|
|
9936
|
-
const title = this._title;
|
|
9937
|
-
const meta = this._meta;
|
|
9938
|
-
const titleTruncated = !!title && title.scrollHeight > title.clientHeight + 1;
|
|
9939
|
-
const metaTruncated = !!meta && meta.scrollWidth > meta.clientWidth + 1;
|
|
9940
|
-
if (titleTruncated !== this._titleTruncated) this._titleTruncated = titleTruncated;
|
|
9941
|
-
if (metaTruncated !== this._metaTruncated) this._metaTruncated = metaTruncated;
|
|
9942
|
-
}
|
|
9943
|
-
get _metaText() {
|
|
9944
|
-
return [this.breadcrumb.map((item) => `${item.label}: ${item.name}`).join(" > "), this.timeText].filter(Boolean).join(" / ");
|
|
9945
|
-
}
|
|
9946
9920
|
render() {
|
|
9947
9921
|
const { bg, color, iconName } = CRITICALITY_STYLES[this.criticality] ?? CRITICALITY_STYLES.low;
|
|
9948
9922
|
return html`
|
|
@@ -9955,9 +9929,7 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9955
9929
|
|
|
9956
9930
|
<div class="flex-1 min-w-0 flex flex-col gap-1">
|
|
9957
9931
|
<div class="w-full flex flex-row items-start gap-2">
|
|
9958
|
-
<
|
|
9959
|
-
<span data-cta-title class="block min-w-0 text-base font-semibold line-clamp-2">${this.heading}</span>
|
|
9960
|
-
</axebow-tooltip>
|
|
9932
|
+
<span class="block min-w-0 text-base font-semibold wrap-break-word">${this.heading}</span>
|
|
9961
9933
|
${this.badgeLabel ? html`<div class="h-5 shrink-0 flex items-center">
|
|
9962
9934
|
<axebow-badge class="uppercase" bgColor=${bg} textColor=${color}>${this.badgeLabel}</axebow-badge>
|
|
9963
9935
|
</div>` : ""}
|
|
@@ -9970,19 +9942,17 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9970
9942
|
`;
|
|
9971
9943
|
}
|
|
9972
9944
|
_renderDescription() {
|
|
9973
|
-
if (!this.breadcrumb.length && !this.timeText) return html`<div class="w-full text-(--axebow-secondary)">${this.description}</div>`;
|
|
9945
|
+
if (!this.breadcrumb.length && !this.timeText) return html`<div class="w-full text-(--axebow-secondary) wrap-break-word">${this.description}</div>`;
|
|
9974
9946
|
return html`
|
|
9975
|
-
<
|
|
9976
|
-
<
|
|
9977
|
-
|
|
9978
|
-
</div>
|
|
9979
|
-
</axebow-tooltip>
|
|
9947
|
+
<div class="w-full text-(--axebow-secondary) wrap-break-word">
|
|
9948
|
+
${this.breadcrumb.map((item, index) => html`${index > 0 ? " > " : ""}${item.label}: <span class="font-semibold">${item.name}</span>`)}${this.timeText ? `${this.breadcrumb.length ? " / " : ""}${this.timeText}` : ""}
|
|
9949
|
+
</div>
|
|
9980
9950
|
`;
|
|
9981
9951
|
}
|
|
9982
9952
|
_renderLowNote() {
|
|
9983
9953
|
return html`
|
|
9984
9954
|
<div
|
|
9985
|
-
class="w-91 h-11 shrink-0 box-border rounded-md py-1 px-3 flex items-center text-(--axebow-gray)"
|
|
9955
|
+
class="w-91 h-11 shrink-0 self-start box-border rounded-md py-1 px-3 flex items-center text-(--axebow-gray)"
|
|
9986
9956
|
style="background-color: var(--axebow-base);"
|
|
9987
9957
|
>
|
|
9988
9958
|
${this.lowNoteText}
|
|
@@ -9992,7 +9962,7 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9992
9962
|
_renderButtons() {
|
|
9993
9963
|
if (!this.buttons.length) return "";
|
|
9994
9964
|
return html`
|
|
9995
|
-
<div class="flex flex-row items-center gap-4 shrink-0">
|
|
9965
|
+
<div class="flex flex-row items-center gap-4 shrink-0 self-start">
|
|
9996
9966
|
${[...this.buttons].reverse().map((button) => html`
|
|
9997
9967
|
<axebow-button
|
|
9998
9968
|
variant=${button.variant ?? "primary"}
|
|
@@ -10019,10 +9989,6 @@ __decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "breadc
|
|
|
10019
9989
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "timeText", void 0);
|
|
10020
9990
|
__decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "buttons", void 0);
|
|
10021
9991
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "lowNoteText", void 0);
|
|
10022
|
-
__decorate([state()], AxebowCallToActionRow.prototype, "_titleTruncated", void 0);
|
|
10023
|
-
__decorate([state()], AxebowCallToActionRow.prototype, "_metaTruncated", void 0);
|
|
10024
|
-
__decorate([query("[data-cta-title]")], AxebowCallToActionRow.prototype, "_title", void 0);
|
|
10025
|
-
__decorate([query("[data-cta-meta]")], AxebowCallToActionRow.prototype, "_meta", void 0);
|
|
10026
9992
|
AxebowCallToActionRow = __decorate([customElement("axebow-call-to-action-row")], AxebowCallToActionRow);
|
|
10027
9993
|
//#endregion
|
|
10028
9994
|
//#region src/components/axebow-tenant-card/axebow-tenant-card.ts
|
|
@@ -11884,7 +11850,7 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
11884
11850
|
.percentage=${limits.cpu.percentage}
|
|
11885
11851
|
iconSize="base"
|
|
11886
11852
|
iconBoxSize="0.875rem"
|
|
11887
|
-
fixedWidth="
|
|
11853
|
+
fixedWidth="100%"
|
|
11888
11854
|
fixedHeight="1.75rem"
|
|
11889
11855
|
valuesWidth="14.1875rem"
|
|
11890
11856
|
valuesHeight="1rem"
|
|
@@ -11901,7 +11867,7 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
11901
11867
|
unit="${limits.memory.unit ?? ""}"
|
|
11902
11868
|
iconSize="base"
|
|
11903
11869
|
iconBoxSize="0.875rem"
|
|
11904
|
-
fixedWidth="
|
|
11870
|
+
fixedWidth="100%"
|
|
11905
11871
|
fixedHeight="1.75rem"
|
|
11906
11872
|
valuesWidth="14.1875rem"
|
|
11907
11873
|
valuesHeight="1rem"
|
|
@@ -12603,8 +12569,8 @@ var AxebowSummaryCard = class AxebowSummaryCard extends LitElement {
|
|
|
12603
12569
|
const capped = this._cappedClass;
|
|
12604
12570
|
const isCapped = !!this.maxHeight;
|
|
12605
12571
|
const wrapperClass = isCapped ? "flex-1 min-h-0" : "h-full";
|
|
12606
|
-
const headerClass = isCapped ? "px-
|
|
12607
|
-
const contentClass = isCapped ? "summary-scroll min-h-0 overflow-x-hidden overflow-y-auto px-
|
|
12572
|
+
const headerClass = isCapped ? "px-4 pt-4 shrink-0" : "contents";
|
|
12573
|
+
const contentClass = isCapped ? "summary-scroll min-h-0 overflow-x-hidden overflow-y-auto px-4 pt-4 pb-4" : "mt-4";
|
|
12608
12574
|
const dividerMargin = isCapped ? "0.5rem 0 0 0" : "0.5rem 0";
|
|
12609
12575
|
return html`
|
|
12610
12576
|
<div
|