@kumori/aurora-wui-components 0.0.340 → 0.0.341-dev4716
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/card.models.d.ts +1 -0
- package/dist/components/cards/card.models.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-stat-item.d.ts +2 -0
- package/dist/components/cards/parts/axebow-card-stat-item.d.ts.map +1 -1
- package/dist/components/cards/parts/axebow-card-stats-row.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.models.d.ts","sourceRoot":"","sources":["../../../src/components/cards/card.models.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExE,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC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B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB"}
|
|
@@ -10,7 +10,9 @@ export declare class AxebowCardStatItem extends LitElement {
|
|
|
10
10
|
ctaIconColor: string;
|
|
11
11
|
ctaTextColor: string;
|
|
12
12
|
tall: boolean;
|
|
13
|
+
disabledTooltip: string;
|
|
13
14
|
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
private _renderLabel;
|
|
14
16
|
private _onClick;
|
|
15
17
|
private _onCtaClick;
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-stat-item.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-stat-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-card-stat-item.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-stat-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,wCAAwC,CAAC;AAEhD,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAGX;IAE0B,KAAK,EAAE,MAAM,CAAK;IAClB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,MAAM,UAAQ;IACf,QAAQ,SAAK;IACb,WAAW,SAAU;IACrB,YAAY,SAAyB;IACrC,YAAY,SAAyB;IACpC,IAAI,UAAS;IACd,eAAe,SAAM;IAEjD,MAAM;IA4BN,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,WAAW;CAGpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-stats-row.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-stats-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,4BAA4B,CAAC;AAEpC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAGX;IAEyB,KAAK,EAAE,aAAa,EAAE,CAAM;IAC3B,QAAQ,EAAE,QAAQ,CAAa;IAE3D,MAAM;
|
|
1
|
+
{"version":3,"file":"axebow-card-stats-row.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-stats-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,4BAA4B,CAAC;AAEpC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAGX;IAEyB,KAAK,EAAE,aAAa,EAAE,CAAM;IAC3B,QAAQ,EAAE,QAAQ,CAAa;IAE3D,MAAM;IAoCN,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;CAKxB"}
|
package/dist/index.js
CHANGED
|
@@ -6688,6 +6688,7 @@ var AxebowCardStatItem = class AxebowCardStatItem extends LitElement {
|
|
|
6688
6688
|
this.ctaIconColor = "var(--axebow-error)";
|
|
6689
6689
|
this.ctaTextColor = "var(--axebow-black)";
|
|
6690
6690
|
this.tall = false;
|
|
6691
|
+
this.disabledTooltip = "";
|
|
6691
6692
|
}
|
|
6692
6693
|
static {
|
|
6693
6694
|
this.styles = [unsafeCSS(tailwind_default), css`:host { display: block; }`];
|
|
@@ -6712,16 +6713,20 @@ var AxebowCardStatItem = class AxebowCardStatItem extends LitElement {
|
|
|
6712
6713
|
</div>
|
|
6713
6714
|
<p class="mt-2 text-base leading-none m-0 whitespace-nowrap">${this.title}</p>
|
|
6714
6715
|
<div class="mt-1.75 h-3.5 leading-none">
|
|
6715
|
-
${this.label ?
|
|
6716
|
-
<span
|
|
6717
|
-
class="text-(--axebow-gray) font-semibold text-base whitespace-nowrap ${this.active ? "cursor-pointer opacity-100" : "cursor-not-allowed opacity-50"}"
|
|
6718
|
-
@click=${this._onClick}
|
|
6719
|
-
>${this.label}</span>
|
|
6720
|
-
` : ""}
|
|
6716
|
+
${this.label ? this._renderLabel() : ""}
|
|
6721
6717
|
</div>
|
|
6722
6718
|
</div>
|
|
6723
6719
|
`;
|
|
6724
6720
|
}
|
|
6721
|
+
_renderLabel() {
|
|
6722
|
+
const label = html`
|
|
6723
|
+
<span
|
|
6724
|
+
class="text-(--axebow-gray) font-semibold text-base whitespace-nowrap ${this.active ? "cursor-pointer opacity-100" : "cursor-not-allowed opacity-50"}"
|
|
6725
|
+
@click=${this._onClick}
|
|
6726
|
+
>${this.label}</span>
|
|
6727
|
+
`;
|
|
6728
|
+
return !this.active && this.disabledTooltip ? html`<axebow-tooltip content=${this.disabledTooltip} placement="top">${label}</axebow-tooltip>` : label;
|
|
6729
|
+
}
|
|
6725
6730
|
_onClick() {
|
|
6726
6731
|
if (this.active) this.dispatchEvent(new CustomEvent("label-click", {
|
|
6727
6732
|
bubbles: true,
|
|
@@ -6744,6 +6749,7 @@ __decorate([property({ type: String })], AxebowCardStatItem.prototype, "ctaIconN
|
|
|
6744
6749
|
__decorate([property({ type: String })], AxebowCardStatItem.prototype, "ctaIconColor", void 0);
|
|
6745
6750
|
__decorate([property({ type: String })], AxebowCardStatItem.prototype, "ctaTextColor", void 0);
|
|
6746
6751
|
__decorate([property({ type: Boolean })], AxebowCardStatItem.prototype, "tall", void 0);
|
|
6752
|
+
__decorate([property({ type: String })], AxebowCardStatItem.prototype, "disabledTooltip", void 0);
|
|
6747
6753
|
AxebowCardStatItem = __decorate([customElement("axebow-card-stat-item")], AxebowCardStatItem);
|
|
6748
6754
|
//#endregion
|
|
6749
6755
|
//#region src/components/cards/parts/axebow-card-stats-row.ts
|
|
@@ -6775,6 +6781,7 @@ var AxebowCardStatsRow = class AxebowCardStatsRow extends LitElement {
|
|
|
6775
6781
|
.ctaIconName=${stat.ctaIconName ?? "info"}
|
|
6776
6782
|
.ctaIconColor=${stat.ctaIconColor ?? "var(--axebow-error)"}
|
|
6777
6783
|
.ctaTextColor=${stat.ctaTextColor ?? "var(--axebow-black)"}
|
|
6784
|
+
.disabledTooltip=${stat.disabledTooltip ?? ""}
|
|
6778
6785
|
@label-click=${() => this._handleLabelClick(index)}
|
|
6779
6786
|
@cta-click=${() => this._handleCtaClick(index)}
|
|
6780
6787
|
></axebow-card-stat-item>
|