tsv2-library 1.0.61-alpha.32 → 1.0.61-alpha.34
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/tsv2-library.es.js +24 -9
- package/dist/tsv2-library.umd.js +1 -1
- package/package.json +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -27970,11 +27970,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
27970
27970
|
};
|
|
27971
27971
|
});
|
|
27972
27972
|
const aliasCode = computed(() => {
|
|
27973
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
27973
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
27974
27974
|
if (props.transactionDetail) {
|
|
27975
|
-
|
|
27975
|
+
const alias = ((_a = props.transactionDetail) == null ? void 0 : _a.aliasCode) ?? ((_c = (_b = asset.value) == null ? void 0 : _b.assetName) == null ? void 0 : _c.aliasCode);
|
|
27976
|
+
return (alias == null ? void 0 : alias.length) ? `(${alias})` : "";
|
|
27976
27977
|
}
|
|
27977
|
-
return ((
|
|
27978
|
+
return ((_f = (_e = (_d = asset.value) == null ? void 0 : _d.name) == null ? void 0 : _e.aliasCode) == null ? void 0 : _f.length) ? `(${(_h = (_g = asset.value) == null ? void 0 : _g.name) == null ? void 0 : _h.aliasCode})` : "";
|
|
27978
27979
|
});
|
|
27979
27980
|
const assetTagType = computed(() => {
|
|
27980
27981
|
var _a, _b, _c;
|
|
@@ -55370,23 +55371,37 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
55370
55371
|
const timeOutId = shallowRef();
|
|
55371
55372
|
const errorLoadImage = shallowRef(false);
|
|
55372
55373
|
const resolvedGallerySrcs = ref([]);
|
|
55374
|
+
const thumbnailString = computed(() => {
|
|
55375
|
+
var _a;
|
|
55376
|
+
if (typeof props.thumbnail === "string") {
|
|
55377
|
+
return ((_a = props.thumbnail) == null ? void 0 : _a.length) ? props.thumbnail : void 0;
|
|
55378
|
+
}
|
|
55379
|
+
return props.thumbnail;
|
|
55380
|
+
});
|
|
55381
|
+
const previewString = computed(() => {
|
|
55382
|
+
var _a;
|
|
55383
|
+
if (typeof props.preview === "string") {
|
|
55384
|
+
return ((_a = props.preview) == null ? void 0 : _a.length) ? props.preview : void 0;
|
|
55385
|
+
}
|
|
55386
|
+
return props.preview;
|
|
55387
|
+
});
|
|
55373
55388
|
const usePreview = computed(() => {
|
|
55374
55389
|
var _a, _b;
|
|
55375
|
-
return !errorLoadImage.value && (!!
|
|
55390
|
+
return !errorLoadImage.value && (!!previewString.value || !((_a = imageThumbnail.value) == null ? void 0 : _a.toString().includes("data:image/svg+xml"))) && !((_b = imageThumbnail.value) == null ? void 0 : _b.toString().toLowerCase().includes("placeholder"));
|
|
55376
55391
|
});
|
|
55377
55392
|
const imageThumbnail = computedAsync(
|
|
55378
55393
|
async () => {
|
|
55379
|
-
if (!
|
|
55394
|
+
if (!thumbnailString.value || errorLoadImage.value) {
|
|
55380
55395
|
return Placeholder;
|
|
55381
55396
|
}
|
|
55382
|
-
if (typeof
|
|
55383
|
-
return
|
|
55397
|
+
if (typeof thumbnailString.value === "string") {
|
|
55398
|
+
return thumbnailString.value.includes("http") || thumbnailString.value.includes("data:image/svg+xml") ? thumbnailString.value : await getImageURL(thumbnailString.value);
|
|
55384
55399
|
}
|
|
55385
|
-
return
|
|
55400
|
+
return thumbnailString.value;
|
|
55386
55401
|
}
|
|
55387
55402
|
);
|
|
55388
55403
|
const imagePreview = computedAsync(async () => {
|
|
55389
|
-
const preview =
|
|
55404
|
+
const preview = previewString.value || imageThumbnail.value;
|
|
55390
55405
|
if (typeof preview === "string") {
|
|
55391
55406
|
return preview.includes("http") || preview.includes("data:image/svg+xml") ? preview : await getImageURL(preview);
|
|
55392
55407
|
}
|