@kumori/aurora-wui-components 0.0.337-dev4696.4 → 0.0.337-dev4696.5
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 } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } 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 {
|
|
@@ -24,7 +24,14 @@ export declare class AxebowCallToActionRow extends LitElement {
|
|
|
24
24
|
timeText: string;
|
|
25
25
|
buttons: CallToActionButton[];
|
|
26
26
|
lowNoteText: string;
|
|
27
|
+
private _titleTruncated;
|
|
28
|
+
private _title?;
|
|
29
|
+
private _resizeObserver?;
|
|
27
30
|
static styles: import('lit').CSSResult[];
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
protected firstUpdated(): void;
|
|
33
|
+
protected updated(changed: PropertyValues): void;
|
|
34
|
+
private _syncTitleTruncation;
|
|
28
35
|
render(): import('lit-html').TemplateResult<1>;
|
|
29
36
|
private _renderDescription;
|
|
30
37
|
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;
|
|
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,cAAc,EAAE,MAAM,KAAK,CAAC;AAEvE,OAAO,+BAA+B,CAAC;AACvC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO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;IAWtB,OAAO,CAAC,cAAc;CAyBvB"}
|
package/dist/index.js
CHANGED
|
@@ -9901,6 +9901,7 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9901
9901
|
this.timeText = "";
|
|
9902
9902
|
this.buttons = [];
|
|
9903
9903
|
this.lowNoteText = "";
|
|
9904
|
+
this._titleTruncated = false;
|
|
9904
9905
|
}
|
|
9905
9906
|
static {
|
|
9906
9907
|
this.styles = [
|
|
@@ -9914,20 +9915,44 @@ var AxebowCallToActionRow = class AxebowCallToActionRow extends LitElement {
|
|
|
9914
9915
|
`
|
|
9915
9916
|
];
|
|
9916
9917
|
}
|
|
9918
|
+
disconnectedCallback() {
|
|
9919
|
+
super.disconnectedCallback();
|
|
9920
|
+
this._resizeObserver?.disconnect();
|
|
9921
|
+
this._resizeObserver = void 0;
|
|
9922
|
+
}
|
|
9923
|
+
firstUpdated() {
|
|
9924
|
+
if (!this._title) return;
|
|
9925
|
+
this._resizeObserver = new ResizeObserver(() => this._syncTitleTruncation());
|
|
9926
|
+
this._resizeObserver.observe(this._title);
|
|
9927
|
+
this._syncTitleTruncation();
|
|
9928
|
+
}
|
|
9929
|
+
updated(changed) {
|
|
9930
|
+
if (changed.has("heading")) this._syncTitleTruncation();
|
|
9931
|
+
}
|
|
9932
|
+
_syncTitleTruncation() {
|
|
9933
|
+
const title = this._title;
|
|
9934
|
+
if (!title) return;
|
|
9935
|
+
const truncated = title.scrollHeight > title.clientHeight + 1;
|
|
9936
|
+
if (truncated !== this._titleTruncated) this._titleTruncated = truncated;
|
|
9937
|
+
}
|
|
9917
9938
|
render() {
|
|
9918
9939
|
const { bg, color, iconName } = CRITICALITY_STYLES[this.criticality] ?? CRITICALITY_STYLES.low;
|
|
9919
9940
|
return html`
|
|
9920
9941
|
<div class="w-full box-border border-t border-solid border-(--axebow-table-header-border) bg-white hover:bg-(--axebow-row-hover-bg) p-4 flex flex-row items-center gap-4">
|
|
9921
|
-
<div class="w-10 h-10 rounded-md shrink-0 flex items-center justify-center" style="background-color: ${bg};">
|
|
9942
|
+
<div class="w-10 h-10 rounded-md shrink-0 self-start flex items-center justify-center" style="background-color: ${bg};">
|
|
9922
9943
|
<div class="w-6 h-6 flex items-center justify-center">
|
|
9923
9944
|
<axebow-icon iconName=${iconName} iconColor=${color} size="2xl"></axebow-icon>
|
|
9924
9945
|
</div>
|
|
9925
9946
|
</div>
|
|
9926
9947
|
|
|
9927
9948
|
<div class="flex-1 min-w-0 flex flex-col gap-1">
|
|
9928
|
-
<div class="w-full flex flex-row items-
|
|
9929
|
-
<
|
|
9930
|
-
|
|
9949
|
+
<div class="w-full flex flex-row items-start gap-2">
|
|
9950
|
+
<axebow-tooltip class="min-w-0" content=${this.heading} ?disabled=${!this._titleTruncated}>
|
|
9951
|
+
<span data-cta-title class="block min-w-0 text-base font-semibold line-clamp-2">${this.heading}</span>
|
|
9952
|
+
</axebow-tooltip>
|
|
9953
|
+
${this.badgeLabel ? html`<div class="h-5 shrink-0 flex items-center">
|
|
9954
|
+
<axebow-badge class="uppercase" bgColor=${bg} textColor=${color}>${this.badgeLabel}</axebow-badge>
|
|
9955
|
+
</div>` : ""}
|
|
9931
9956
|
</div>
|
|
9932
9957
|
${this._renderDescription()}
|
|
9933
9958
|
</div>
|
|
@@ -9984,6 +10009,8 @@ __decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "breadc
|
|
|
9984
10009
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "timeText", void 0);
|
|
9985
10010
|
__decorate([property({ type: Array })], AxebowCallToActionRow.prototype, "buttons", void 0);
|
|
9986
10011
|
__decorate([property({ type: String })], AxebowCallToActionRow.prototype, "lowNoteText", void 0);
|
|
10012
|
+
__decorate([state()], AxebowCallToActionRow.prototype, "_titleTruncated", void 0);
|
|
10013
|
+
__decorate([query("[data-cta-title]")], AxebowCallToActionRow.prototype, "_title", void 0);
|
|
9987
10014
|
AxebowCallToActionRow = __decorate([customElement("axebow-call-to-action-row")], AxebowCallToActionRow);
|
|
9988
10015
|
//#endregion
|
|
9989
10016
|
//#region src/components/axebow-tenant-card/axebow-tenant-card.ts
|