tsv2-library 1.1.7 → 1.1.8
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
CHANGED
|
@@ -26303,6 +26303,10 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
26303
26303
|
}
|
|
26304
26304
|
return dataValue;
|
|
26305
26305
|
});
|
|
26306
|
+
const fileName = computed(() => {
|
|
26307
|
+
const dataValue = isValidJSONString(props.rawValue) ? JSON.parse(props.rawValue) : props.rawValue;
|
|
26308
|
+
return dataValue == null ? void 0 : dataValue.fileName;
|
|
26309
|
+
});
|
|
26306
26310
|
const isDocumentHasValue = (document2) => {
|
|
26307
26311
|
var _a, _b;
|
|
26308
26312
|
if (!document2)
|
|
@@ -26327,13 +26331,12 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
26327
26331
|
return (_ctx, _cache) => {
|
|
26328
26332
|
var _a, _b;
|
|
26329
26333
|
return _ctx.dataType === "Document" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
26330
|
-
isDocumentHasValue(_ctx.rawValue) ? (openBlock(), createElementBlock("
|
|
26334
|
+
isDocumentHasValue(_ctx.rawValue) ? (openBlock(), createElementBlock("span", {
|
|
26331
26335
|
key: 0,
|
|
26332
26336
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => openDocument(value.value), ["stop"])),
|
|
26333
|
-
class: "text-primary
|
|
26334
|
-
"data-ts-section": "field-value"
|
|
26335
|
-
|
|
26336
|
-
}, " View Document ")) : (openBlock(), createElementBlock("span", _hoisted_1$2g, "-"))
|
|
26337
|
+
class: "text-primary cursor-pointer font-medium tracking-[0.24px]",
|
|
26338
|
+
"data-ts-section": "field-value"
|
|
26339
|
+
}, toDisplayString$1(fileName.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_1$2g, "-"))
|
|
26337
26340
|
], 64)) : value.value === "-" ? (openBlock(), createElementBlock("span", _hoisted_2$1N, toDisplayString$1(value.value), 1)) : (openBlock(), createElementBlock("a", {
|
|
26338
26341
|
key: 2,
|
|
26339
26342
|
href: _ctx.dataType === "URL" ? ((_a = value.value) == null ? void 0 : _a.startsWith("http")) ? value.value : `http://${value.value}` : `mailto:${value.value}`,
|