@lukso/transaction-view-core 0.5.0-dev.5916302 → 0.5.0-dev.a98e9bc
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/.turbo/turbo-build.log +15 -15
- package/dist/index.cjs +54 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +54 -85
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +1 -5
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +4 -4
- package/dist/shared/index.d.ts +4 -4
- package/dist/shared/index.js +1 -5
- package/dist/shared/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/asset-card.ts +58 -61
- package/src/shared/image-list.ts +1 -0
- package/src/shared/value-view.ts +19 -5
- package/src/utils.test.ts +0 -47
- package/src/utils.ts +0 -82
package/dist/shared/index.cjs
CHANGED
|
@@ -2037,8 +2037,6 @@ var import_transaction_view_headless6 = require("@lukso/transaction-view-headles
|
|
|
2037
2037
|
var import_lit12 = require("lit");
|
|
2038
2038
|
var import_decorators11 = require("lit/decorators.js");
|
|
2039
2039
|
var import_when = require("lit/directives/when.js");
|
|
2040
|
-
|
|
2041
|
-
// src/utils.ts
|
|
2042
2040
|
function formatUnits(value, decimals = 18) {
|
|
2043
2041
|
const divisor = 10n ** BigInt(decimals);
|
|
2044
2042
|
const quotient = value / divisor;
|
|
@@ -2050,8 +2048,6 @@ function formatUnits(value, decimals = 18) {
|
|
|
2050
2048
|
const trimmed = remainderStr.replace(/0+$/, "");
|
|
2051
2049
|
return `${quotient}.${trimmed}`;
|
|
2052
2050
|
}
|
|
2053
|
-
|
|
2054
|
-
// src/shared/value-view.ts
|
|
2055
2051
|
var ValueView = class extends CoreLitElement {
|
|
2056
2052
|
constructor() {
|
|
2057
2053
|
super(...arguments);
|
|
@@ -2284,7 +2280,7 @@ var ValueView = class extends CoreLitElement {
|
|
|
2284
2280
|
`;
|
|
2285
2281
|
if (effectiveType === "currency") {
|
|
2286
2282
|
const { numeric, symbol } = this.getCurrencyParts();
|
|
2287
|
-
if (this.label) {
|
|
2283
|
+
if (this.label && this.label.trim() !== "") {
|
|
2288
2284
|
headerText = this.label;
|
|
2289
2285
|
contentTemplate = import_lit12.html`
|
|
2290
2286
|
<span class="inline-block overflow-hidden text-ellipsis whitespace-nowrap min-w-0 ${this.getNumericClass()}">${numeric}</span>
|