tsv2-library 1.1.0-dev-alpha.19 → 1.1.0-dev-alpha.21
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 +16 -13
- package/dist/tsv2-library.umd.js +2 -2
- package/package.json +1 -1
package/dist/tsv2-library.es.js
CHANGED
|
@@ -2259,7 +2259,7 @@ const formatDisplayAssetName = (asset) => {
|
|
|
2259
2259
|
const formatDisplayAssetId = (asset) => {
|
|
2260
2260
|
var _a, _b, _c, _d;
|
|
2261
2261
|
if (((_b = (_a = asset.name) == null ? void 0 : _a.aliasCode) == null ? void 0 : _b.length) && ((_c = asset.registeredAssetId) == null ? void 0 : _c.length)) {
|
|
2262
|
-
return `${
|
|
2262
|
+
return `${(_d = asset.name) == null ? void 0 : _d.aliasCode} (${asset.registeredAssetId})`;
|
|
2263
2263
|
}
|
|
2264
2264
|
return asset.assetId ?? "-";
|
|
2265
2265
|
};
|
|
@@ -31923,7 +31923,6 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
31923
31923
|
else
|
|
31924
31924
|
asset.value = props.transactionDetail;
|
|
31925
31925
|
});
|
|
31926
|
-
JSON.parse(localStorage.getItem("user") ?? "{}");
|
|
31927
31926
|
const asset = ref();
|
|
31928
31927
|
const useStatusField = computed(() => {
|
|
31929
31928
|
var _a;
|
|
@@ -31953,9 +31952,13 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
31953
31952
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
31954
31953
|
if (props.transactionDetail) {
|
|
31955
31954
|
const alias = ((_a = props.transactionDetail) == null ? void 0 : _a.aliasCode) ?? ((_c = (_b = asset.value) == null ? void 0 : _b.assetName) == null ? void 0 : _c.aliasCode);
|
|
31956
|
-
return (alias == null ? void 0 : alias.length) ?
|
|
31955
|
+
return (alias == null ? void 0 : alias.length) ? `${alias}` : "";
|
|
31957
31956
|
}
|
|
31958
|
-
return ((_f = (_e = (_d = asset.value) == null ? void 0 : _d.name) == null ? void 0 : _e.aliasCode) == null ? void 0 : _f.length) ?
|
|
31957
|
+
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}` : "";
|
|
31958
|
+
});
|
|
31959
|
+
const assetIdWithAliasCode = computed(() => {
|
|
31960
|
+
var _a;
|
|
31961
|
+
return ((_a = aliasCode.value) == null ? void 0 : _a.length) ? `${aliasCode.value} (${assetId.value})` : assetId.value;
|
|
31959
31962
|
});
|
|
31960
31963
|
const assetTagType = computed(() => {
|
|
31961
31964
|
var _a, _b, _c;
|
|
@@ -31996,8 +31999,8 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
31996
31999
|
__expose({ asset });
|
|
31997
32000
|
const nameWithSequence = computed(
|
|
31998
32001
|
() => {
|
|
31999
|
-
var _a, _b;
|
|
32000
|
-
return ((_a = assetName.value) == null ? void 0 : _a.nameWithSequence) ?? ((_b = props.transactionDetail) == null ? void 0 : _b.nameWithSequence) ?? "-";
|
|
32002
|
+
var _a, _b, _c;
|
|
32003
|
+
return ((_a = assetName.value) == null ? void 0 : _a.nameWithSequence) ?? ((_b = props.transactionDetail) == null ? void 0 : _b.nameWithSequence) ?? ((_c = props.transactionDetail) == null ? void 0 : _c.name) ?? "-";
|
|
32001
32004
|
}
|
|
32002
32005
|
);
|
|
32003
32006
|
const assetId = computed(
|
|
@@ -32008,20 +32011,20 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
32008
32011
|
);
|
|
32009
32012
|
const brand = computed(
|
|
32010
32013
|
() => {
|
|
32011
|
-
var _a, _b, _c, _d, _e;
|
|
32012
|
-
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetBrand) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.brand) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetBrand) ?? "-";
|
|
32014
|
+
var _a, _b, _c, _d, _e, _f;
|
|
32015
|
+
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetBrand) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.brand) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetBrand) ?? ((_f = props.transactionDetail) == null ? void 0 : _f.brand) ?? "-";
|
|
32013
32016
|
}
|
|
32014
32017
|
);
|
|
32015
32018
|
const model = computed(
|
|
32016
32019
|
() => {
|
|
32017
|
-
var _a, _b, _c, _d, _e;
|
|
32018
|
-
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetModel) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.model) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetModel) ?? "-";
|
|
32020
|
+
var _a, _b, _c, _d, _e, _f;
|
|
32021
|
+
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetModel) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.model) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetModel) ?? ((_f = props.transactionDetail) == null ? void 0 : _f.model) ?? "-";
|
|
32019
32022
|
}
|
|
32020
32023
|
);
|
|
32021
32024
|
const group = computed(
|
|
32022
32025
|
() => {
|
|
32023
|
-
var _a, _b, _c, _d, _e;
|
|
32024
|
-
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetGroup) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.group) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetGroup) ?? "-";
|
|
32026
|
+
var _a, _b, _c, _d, _e, _f;
|
|
32027
|
+
return ((_b = (_a = asset.value) == null ? void 0 : _a.assetGroup) == null ? void 0 : _b.name) ?? ((_d = (_c = asset.value) == null ? void 0 : _c.group) == null ? void 0 : _d.name) ?? ((_e = props.transactionDetail) == null ? void 0 : _e.assetGroup) ?? ((_f = props.transactionDetail) == null ? void 0 : _f.group) ?? "-";
|
|
32025
32028
|
}
|
|
32026
32029
|
);
|
|
32027
32030
|
const status = computed(
|
|
@@ -32049,7 +32052,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
32049
32052
|
}, " Asset Detail > ", 8, _hoisted_6$h)) : createCommentVNode("", true)
|
|
32050
32053
|
]),
|
|
32051
32054
|
createElementVNode("div", _hoisted_7$d, [
|
|
32052
|
-
createElementVNode("span", _hoisted_8$9, toDisplayString$1(
|
|
32055
|
+
createElementVNode("span", _hoisted_8$9, toDisplayString$1(assetIdWithAliasCode.value), 1),
|
|
32053
32056
|
_hoisted_9$7,
|
|
32054
32057
|
createVNode(unref(TSTagType), {
|
|
32055
32058
|
qr: (_c = assetTagType.value) == null ? void 0 : _c.includes("QR"),
|