@soton.ac.uk/cape3 3.6.0 → 3.7.0
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/cape3.es.js
CHANGED
|
@@ -13943,13 +13943,22 @@ const _L = { class: "cape-labelled-value" }, mL = {
|
|
|
13943
13943
|
}
|
|
13944
13944
|
}), TL = /* @__PURE__ */ Ze({
|
|
13945
13945
|
__name: "CapePercentageValue",
|
|
13946
|
-
props: {
|
|
13946
|
+
props: {
|
|
13947
|
+
value: {
|
|
13948
|
+
type: String,
|
|
13949
|
+
required: !0
|
|
13950
|
+
},
|
|
13951
|
+
digits: {
|
|
13952
|
+
type: Number,
|
|
13953
|
+
required: !1
|
|
13954
|
+
}
|
|
13955
|
+
},
|
|
13947
13956
|
setup(e) {
|
|
13948
13957
|
const t = e, n = ge(() => {
|
|
13949
13958
|
if (t.value === void 0)
|
|
13950
13959
|
return "";
|
|
13951
13960
|
const r = parseFloat(t.value);
|
|
13952
|
-
return isNaN(r) ? "" : r * 100 + "%";
|
|
13961
|
+
return isNaN(r) ? "" : t.digits === void 0 ? r * 100 + "%" : (r * 100).toFixed(t.digits) + "%";
|
|
13953
13962
|
});
|
|
13954
13963
|
return (r, a) => qe(n.value);
|
|
13955
13964
|
}
|
|
@@ -15309,7 +15318,7 @@ function SA(e, t) {
|
|
|
15309
15318
|
xC('<span class="block sm:hidden"><sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>', 6)
|
|
15310
15319
|
]));
|
|
15311
15320
|
}
|
|
15312
|
-
const wA = /* @__PURE__ */ Ga(gA, [["render", SA]]), TA = "3.
|
|
15321
|
+
const wA = /* @__PURE__ */ Ga(gA, [["render", SA]]), TA = "3.6.0", bA = { class: "cape-plugin-version" }, EA = /* @__PURE__ */ Ze({
|
|
15313
15322
|
__name: "CapeVersion",
|
|
15314
15323
|
setup(e) {
|
|
15315
15324
|
return (t, n) => (q(), ne("span", bA, "v" + qe(ve(TA)), 1));
|