@kumori/aurora-wui-components 0.0.289-dev4287.2 → 0.0.289-dev4287.3
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-card-resource-row.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-resource-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,4BAGX;IAE0B,IAAI,EAAG,cAAc,CAAC;IACtB,kBAAkB,SAAM;IACvB,MAAM,UAAS;IACf,QAAQ,UAAS;IAE9C,OAAO,CAAC,YAAY;IAMpB,MAAM;
|
|
1
|
+
{"version":3,"file":"axebow-card-resource-row.d.ts","sourceRoot":"","sources":["../../../../src/components/cards/parts/axebow-card-resource-row.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,4BAGX;IAE0B,IAAI,EAAG,cAAc,CAAC;IACtB,kBAAkB,SAAM;IACvB,MAAM,UAAS;IACf,QAAQ,UAAS;IAE9C,OAAO,CAAC,YAAY;IAMpB,MAAM;CAmDP"}
|
package/dist/index.js
CHANGED
|
@@ -6366,11 +6366,11 @@ var AxebowCardResourceRow = class AxebowCardResourceRow extends LitElement {
|
|
|
6366
6366
|
render() {
|
|
6367
6367
|
const stat = this.stat;
|
|
6368
6368
|
const showDivider = !stat.hidden && !this.isLast;
|
|
6369
|
-
const textClass = stat.isSecondary ? "text-sm font-normal" : "text-base
|
|
6369
|
+
const textClass = stat.isSecondary ? "text-sm font-normal" : "text-base";
|
|
6370
6370
|
const barHeightClass = stat.isSecondary ? "h-2.25" : "h-2.75";
|
|
6371
6371
|
const cellClass = `w-full ${stat.isSecondary ? "h-5.25" : "h-7"} box-border ${showDivider ? "border-b border-dashed border-(--axebow-light-gray)" : ""}`;
|
|
6372
|
-
const
|
|
6373
|
-
const
|
|
6372
|
+
const numberTextClass = stat.isSecondary ? "text-sm font-normal" : "text-base font-normal";
|
|
6373
|
+
const numberSizeClass = stat.isSecondary ? "max-w-10.25 max-h-3.5 min-h-0 overflow-hidden" : "max-w-13.25 max-h-4.25 min-h-0 overflow-hidden";
|
|
6374
6374
|
if (stat.hidden) return html`
|
|
6375
6375
|
<div class="flex items-center ${cellClass}"></div>
|
|
6376
6376
|
<div class="flex items-center justify-end ${cellClass}"></div>
|
|
@@ -6381,12 +6381,12 @@ var AxebowCardResourceRow = class AxebowCardResourceRow extends LitElement {
|
|
|
6381
6381
|
<div class="flex items-center ${cellClass}">
|
|
6382
6382
|
<div class="flex items-center gap-1">
|
|
6383
6383
|
<axebow-icon iconName=${stat.icon} size="md" rotate=${stat.iconRotation ?? 0}></axebow-icon>
|
|
6384
|
-
<span class="${textClass} whitespace-nowrap">${stat.title}</span>
|
|
6384
|
+
<span class="${textClass} whitespace-nowrap font-semibold">${stat.title}</span>
|
|
6385
6385
|
</div>
|
|
6386
6386
|
</div>
|
|
6387
6387
|
|
|
6388
6388
|
<div class="flex items-center justify-end ${cellClass}">
|
|
6389
|
-
<p class="${
|
|
6389
|
+
<p class="${numberTextClass} m-0 ${numberSizeClass}">${this.formatNumber(stat.value)}</p>
|
|
6390
6390
|
</div>
|
|
6391
6391
|
|
|
6392
6392
|
<div class="flex items-center justify-end ${cellClass}">
|
|
@@ -6399,7 +6399,7 @@ var AxebowCardResourceRow = class AxebowCardResourceRow extends LitElement {
|
|
|
6399
6399
|
</div>
|
|
6400
6400
|
|
|
6401
6401
|
<div class="flex items-center justify-end ${cellClass}">
|
|
6402
|
-
<p class="${
|
|
6402
|
+
<p class="${numberTextClass} m-0 ${numberSizeClass}">
|
|
6403
6403
|
${this.allEmpty ? "-.-" : html`${this.formatNumber(stat.maxValue)}<span class="font-normal">${stat.title === "vCPU" ? "" : stat.tagValue ?? ""}</span>`}
|
|
6404
6404
|
</p>
|
|
6405
6405
|
</div>
|