@kumori/aurora-wui-components 0.0.333-dev4680.2 → 0.0.334-dev4680.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-limits-counter.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-limits-counter/axebow-limits-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAKvD,qBACa,mBAAoB,SAAQ,UAAU;IACrB,KAAK,SAAM;IACX,OAAO,SAAM;IACb,KAAK,SAAM;IACX,IAAI,SAAM;IAEtC,MAAM,CAAC,MAAM,4BAQX;IAEF,OAAO,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"axebow-limits-counter.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-limits-counter/axebow-limits-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAKvD,qBACa,mBAAoB,SAAQ,UAAU;IACrB,KAAK,SAAM;IACX,OAAO,SAAM;IACb,KAAK,SAAM;IACX,IAAI,SAAM;IAEtC,MAAM,CAAC,MAAM,4BAQX;IAEF,OAAO,CAAC,OAAO;IAQf,MAAM;CASP"}
|
package/dist/index.js
CHANGED
|
@@ -5539,7 +5539,10 @@ var AxebowLimitsCounter = class AxebowLimitsCounter extends LitElement {
|
|
|
5539
5539
|
}
|
|
5540
5540
|
_format(value) {
|
|
5541
5541
|
const n = Number(value);
|
|
5542
|
-
|
|
5542
|
+
if (isNaN(n) || n < 0) return value;
|
|
5543
|
+
if (n === 0) return "0.0";
|
|
5544
|
+
const rounded = Math.round(Number((n * 10).toPrecision(12))) / 10;
|
|
5545
|
+
return (rounded === 0 ? .1 : rounded).toFixed(1);
|
|
5543
5546
|
}
|
|
5544
5547
|
render() {
|
|
5545
5548
|
return html`
|
|
@@ -7088,7 +7091,7 @@ var AxebowCardAttentionBanner = class AxebowCardAttentionBanner extends LitEleme
|
|
|
7088
7091
|
@click=${this.isPlainRole ? void 0 : this._onClick}
|
|
7089
7092
|
>
|
|
7090
7093
|
${this.isPlainRole ? html`<span class="text-(--axebow-error)">${this.askOwnerLabel}</span>` : html`
|
|
7091
|
-
<axebow-button variant="text"
|
|
7094
|
+
<axebow-button variant="text">
|
|
7092
7095
|
${this.label}
|
|
7093
7096
|
<axebow-icon iconName="arrow_forward" iconColor="var(--axebow-error)" size="md"></axebow-icon>
|
|
7094
7097
|
</axebow-button>
|
|
@@ -7122,7 +7125,7 @@ var AxebowCardActionBanner = class AxebowCardActionBanner extends LitElement {
|
|
|
7122
7125
|
.tertiary-bg { background-color: color-mix(in srgb, var(--axebow-tertiary) 10%, white); }
|
|
7123
7126
|
.clickable { cursor: pointer; }
|
|
7124
7127
|
.clickable:hover { background-color: var(--axebow-base); --axebow-tertiary: var(--axebow-gray); }
|
|
7125
|
-
axebow-button::part(label) { color: var(--axebow-tertiary);
|
|
7128
|
+
axebow-button::part(label) { color: var(--axebow-tertiary); display: flex; align-items: center; gap: 2px; }
|
|
7126
7129
|
axebow-button::part(base) { padding: 0; height: auto; min-height: unset; pointer-events: none; background-color: transparent; }
|
|
7127
7130
|
axebow-icon { display: inline-flex; align-items: center; line-height: 1; }
|
|
7128
7131
|
`];
|
|
@@ -7134,7 +7137,7 @@ var AxebowCardActionBanner = class AxebowCardActionBanner extends LitElement {
|
|
|
7134
7137
|
@click=${this.isPlainRole ? void 0 : this._onClick}
|
|
7135
7138
|
>
|
|
7136
7139
|
${this.isPlainRole ? html`<span class="text-(--axebow-gray)">${this.notAllowedLabel}</span>` : html`
|
|
7137
|
-
<axebow-button variant="text"
|
|
7140
|
+
<axebow-button variant="text">
|
|
7138
7141
|
${this.label}
|
|
7139
7142
|
<axebow-icon iconName="arrow_forward" iconColor="var(--axebow-tertiary)" size="md"></axebow-icon>
|
|
7140
7143
|
</axebow-button>
|