@kumori/aurora-wui-components 0.0.337-dev4696.5 → 0.0.337-dev4696.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
import { CallToActionBreadcrumbItem } from './call-to-action-notification.js';
|
|
3
3
|
export type CallToActionCriticality = 'critical' | 'high' | 'low';
|
|
4
4
|
export interface CallToActionButton {
|
|
@@ -25,13 +25,15 @@ export declare class AxebowCallToActionRow extends LitElement {
|
|
|
25
25
|
buttons: CallToActionButton[];
|
|
26
26
|
lowNoteText: string;
|
|
27
27
|
private _titleTruncated;
|
|
28
|
+
private _metaTruncated;
|
|
28
29
|
private _title?;
|
|
30
|
+
private _meta?;
|
|
29
31
|
private _resizeObserver?;
|
|
30
32
|
static styles: import('lit').CSSResult[];
|
|
31
33
|
disconnectedCallback(): void;
|
|
32
|
-
protected
|
|
33
|
-
|
|
34
|
-
private
|
|
34
|
+
protected updated(): void;
|
|
35
|
+
private _syncTruncation;
|
|
36
|
+
private get _metaText();
|
|
35
37
|
render(): import('lit-html').TemplateResult<1>;
|
|
36
38
|
private _renderDescription;
|
|
37
39
|
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,
|
|
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,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AO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
|
package/dist/index.js
CHANGED
|
@@ -9902,6 +9902,7 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9902
9902
|
this.buttons = [];
|
|
9903
9903
|
this.lowNoteText = "";
|
|
9904
9904
|
this._titleTruncated = false;
|
|
9905
|
+
this._metaTruncated = false;
|
|
9905
9906
|
}
|
|
9906
9907
|
static {
|
|
9907
9908
|
this.styles = [
|
|
@@ -9920,20 +9921,24 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9920
9921
|
this._resizeObserver?.disconnect();
|
|
9921
9922
|
this._resizeObserver = void 0;
|
|
9922
9923
|
}
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
this._resizeObserver
|
|
9926
|
-
this.
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
if (changed.has("heading")) this._syncTitleTruncation();
|
|
9924
|
+
updated() {
|
|
9925
|
+
this._resizeObserver ??= new ResizeObserver(() => this._syncTruncation());
|
|
9926
|
+
this._resizeObserver.disconnect();
|
|
9927
|
+
[this._title, this._meta].forEach((element) => {
|
|
9928
|
+
if (element) this._resizeObserver?.observe(element);
|
|
9929
|
+
});
|
|
9930
|
+
this._syncTruncation();
|
|
9931
9931
|
}
|
|
9932
|
-
|
|
9932
|
+
_syncTruncation() {
|
|
9933
9933
|
const title = this._title;
|
|
9934
|
-
|
|
9935
|
-
const
|
|
9936
|
-
|
|
9934
|
+
const meta = this._meta;
|
|
9935
|
+
const titleTruncated = !!title && title.scrollHeight > title.clientHeight + 1;
|
|
9936
|
+
const metaTruncated = !!meta && meta.scrollWidth > meta.clientWidth + 1;
|
|
9937
|
+
if (titleTruncated !== this._titleTruncated) this._titleTruncated = titleTruncated;
|
|
9938
|
+
if (metaTruncated !== this._metaTruncated) this._metaTruncated = metaTruncated;
|
|
9939
|
+
}
|
|
9940
|
+
get _metaText() {
|
|
9941
|
+
return [this.breadcrumb.map((item) => `${item.label}: ${item.name}`).join(" > "), this.timeText].filter(Boolean).join(" / ");
|
|
9937
9942
|
}
|
|
9938
9943
|
render() {
|
|
9939
9944
|
const { bg, color, iconName } = CRITICALITY_STYLES[this.criticality] ?? CRITICALITY_STYLES.low;
|
|
@@ -9947,7 +9952,7 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9947
9952
|
|
|
9948
9953
|
<div class="flex-1 min-w-0 flex flex-col gap-1">
|
|
9949
9954
|
<div class="w-full flex flex-row items-start gap-2">
|
|
9950
|
-
<axebow-tooltip class="min-w-0" content=${this.heading} ?disabled=${!this._titleTruncated}>
|
|
9955
|
+
<axebow-tooltip class="block min-w-0" content=${this.heading} ?disabled=${!this._titleTruncated}>
|
|
9951
9956
|
<span data-cta-title class="block min-w-0 text-base font-semibold line-clamp-2">${this.heading}</span>
|
|
9952
9957
|
</axebow-tooltip>
|
|
9953
9958
|
${this.badgeLabel ? html`<div class="h-5 shrink-0 flex items-center">
|
|
@@ -9964,9 +9969,11 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9964
9969
|
_renderDescription() {
|
|
9965
9970
|
if (!this.breadcrumb.length && !this.timeText) return html`<div class="w-full text-(--axebow-secondary)">${this.description}</div>`;
|
|
9966
9971
|
return html`
|
|
9967
|
-
<
|
|
9968
|
-
|
|
9969
|
-
|
|
9972
|
+
<axebow-tooltip class="block w-full min-w-0" content=${this._metaText} ?disabled=${!this._metaTruncated}>
|
|
9973
|
+
<div data-cta-meta class="w-full truncate text-(--axebow-secondary)">
|
|
9974
|
+
${this.breadcrumb.map((item, index) => html`${index > 0 ? " > " : ""}${item.label}: <span class="font-semibold">${item.name}</span>`)}${this.timeText ? `${this.breadcrumb.length ? " / " : ""}${this.timeText}` : ""}
|
|
9975
|
+
</div>
|
|
9976
|
+
</axebow-tooltip>
|
|
9970
9977
|
`;
|
|
9971
9978
|
}
|
|
9972
9979
|
_renderLowNote() {
|
|
@@ -10010,7 +10017,9 @@ __decorate([property({ type: String })], AxebowCallToActionRow.prototype, "timeT
|
|
|
10010
10017
|
__decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "buttons", void 0);
|
|
10011
10018
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "lowNoteText", void 0);
|
|
10012
10019
|
__decorate([state()], AxebowCallToActionRow.prototype, "_titleTruncated", void 0);
|
|
10020
|
+
__decorate([state()], AxebowCallToActionRow.prototype, "_metaTruncated", void 0);
|
|
10013
10021
|
__decorate([query("[data-cta-title]")], AxebowCallToActionRow.prototype, "_title", void 0);
|
|
10022
|
+
__decorate([query("[data-cta-meta]")], AxebowCallToActionRow.prototype, "_meta", void 0);
|
|
10014
10023
|
AxebowCallToActionRow = __decorate([customElement("axebow-call-to-action-row")], AxebowCallToActionRow);
|
|
10015
10024
|
//#endregion
|
|
10016
10025
|
//#region src/components/axebow-tenant-card/axebow-tenant-card.ts
|
|
@@ -11872,7 +11881,7 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
11872
11881
|
.percentage=${limits.cpu.percentage}
|
|
11873
11882
|
iconSize="base"
|
|
11874
11883
|
iconBoxSize="0.875rem"
|
|
11875
|
-
fixedWidth="20.
|
|
11884
|
+
fixedWidth="20.375rem"
|
|
11876
11885
|
fixedHeight="1.75rem"
|
|
11877
11886
|
valuesWidth="14.1875rem"
|
|
11878
11887
|
valuesHeight="1rem"
|
|
@@ -11889,7 +11898,7 @@ var AxebowDeploySummary = class AxebowDeploySummary extends LitElement {
|
|
|
11889
11898
|
unit="${limits.memory.unit ?? ""}"
|
|
11890
11899
|
iconSize="base"
|
|
11891
11900
|
iconBoxSize="0.875rem"
|
|
11892
|
-
fixedWidth="20.
|
|
11901
|
+
fixedWidth="20.375rem"
|
|
11893
11902
|
fixedHeight="1.75rem"
|
|
11894
11903
|
valuesWidth="14.1875rem"
|
|
11895
11904
|
valuesHeight="1rem"
|