@bagelink/vue 1.15.645 → 1.15.647
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/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.mjs +17 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Avatar.vue +18 -2
- package/src/components/Icon/Icon.vue +2 -2
package/dist/index.mjs
CHANGED
|
@@ -4525,6 +4525,7 @@ var s3 = /* @__PURE__ */ zl({
|
|
|
4525
4525
|
{ "color-white keep-white": l.round && !l.soft && X.value }
|
|
4526
4526
|
]]),
|
|
4527
4527
|
style: Il(f.value),
|
|
4528
|
+
"aria-hidden": "true",
|
|
4528
4529
|
translate: "no"
|
|
4529
4530
|
}, tl(t.value), 7)) : i.value === "font-awesome" ? (L(), y("span", {
|
|
4530
4531
|
key: `font-awesome-${t.value}`,
|
|
@@ -4542,6 +4543,7 @@ var s3 = /* @__PURE__ */ zl({
|
|
|
4542
4543
|
}
|
|
4543
4544
|
]]),
|
|
4544
4545
|
style: Il(f.value),
|
|
4546
|
+
"aria-hidden": "true",
|
|
4545
4547
|
translate: "no"
|
|
4546
4548
|
}, null, 6)) : k("", !0)]),
|
|
4547
4549
|
_: 1
|
|
@@ -12814,7 +12816,7 @@ var XV = ["transform"], yV = [
|
|
|
12814
12816
|
class: "absolute-fill"
|
|
12815
12817
|
}))], 16));
|
|
12816
12818
|
}
|
|
12817
|
-
}), es = /* @__PURE__ */ Jl(uT, [["__scopeId", "data-v-5dea601d"]]), bT = ["title"], rT = /* @__PURE__ */ zl({
|
|
12819
|
+
}), es = /* @__PURE__ */ Jl(uT, [["__scopeId", "data-v-5dea601d"]]), bT = ["aria-label", "title"], rT = /* @__PURE__ */ zl({
|
|
12818
12820
|
name: "BglAvatar",
|
|
12819
12821
|
__name: "Avatar",
|
|
12820
12822
|
props: {
|
|
@@ -12832,12 +12834,17 @@ var XV = ["transform"], yV = [
|
|
|
12832
12834
|
innerClass: {}
|
|
12833
12835
|
},
|
|
12834
12836
|
setup(l) {
|
|
12835
|
-
const e = l, { isMobile: t } = Si(), a = x(() => t.value && e.mobileSize !== void 0 ? e.mobileSize : e.size), n = x(() => e.status === !0 ? "green" : e.status || null), i = x(() => Math.max(7, Math.min(14, Math.round(a.value * 0.28)))), d =
|
|
12837
|
+
const e = l, { isMobile: t } = Si(), a = x(() => t.value && e.mobileSize !== void 0 ? e.mobileSize : e.size), n = x(() => e.status === !0 ? "green" : e.status || null), i = x(() => Math.max(7, Math.min(14, Math.round(a.value * 0.28)))), d = {
|
|
12838
|
+
green: "Online",
|
|
12839
|
+
gray: "Offline",
|
|
12840
|
+
orange: "Away",
|
|
12841
|
+
red: "Busy"
|
|
12842
|
+
}, c = x(() => n.value ? e.statusTitle || d[n.value] || "Status" : ""), s = x(() => e.square ? e.square === !0 ? "var(--bgl-btn-border-radius)" : `${e.square}px` : "1000px"), o = x(() => e.color ? {
|
|
12836
12843
|
background: `color-mix(in srgb, var(--bgl-${e.color}) 14%, transparent)`,
|
|
12837
12844
|
color: `var(--bgl-${e.color})`,
|
|
12838
12845
|
border: "none"
|
|
12839
12846
|
} : {});
|
|
12840
|
-
return (
|
|
12847
|
+
return (m, Z) => (L(), y("div", {
|
|
12841
12848
|
class: "avatar-wrap",
|
|
12842
12849
|
style: Il({
|
|
12843
12850
|
width: `${a.value}px`,
|
|
@@ -12848,13 +12855,13 @@ var XV = ["transform"], yV = [
|
|
|
12848
12855
|
style: Il({
|
|
12849
12856
|
width: `${a.value}px`,
|
|
12850
12857
|
height: `${a.value}px`,
|
|
12851
|
-
borderRadius:
|
|
12852
|
-
...
|
|
12858
|
+
borderRadius: s.value,
|
|
12859
|
+
...o.value
|
|
12853
12860
|
})
|
|
12854
12861
|
}, [l.src ? (L(), sl(es, {
|
|
12855
12862
|
key: 0,
|
|
12856
12863
|
src: l.src,
|
|
12857
|
-
alt: l.alt
|
|
12864
|
+
alt: l.alt ?? l.name ?? ""
|
|
12858
12865
|
}, null, 8, ["src", "alt"])) : l.icon ? (L(), sl(N(fl), {
|
|
12859
12866
|
key: 1,
|
|
12860
12867
|
icon: l.icon,
|
|
@@ -12869,7 +12876,9 @@ var XV = ["transform"], yV = [
|
|
|
12869
12876
|
}, tl((l.fallback || N(EK)(l.name || "")).toUpperCase()), 5))], 6), n.value ? (L(), y("span", {
|
|
12870
12877
|
key: 0,
|
|
12871
12878
|
class: "avatar-status",
|
|
12872
|
-
|
|
12879
|
+
role: "img",
|
|
12880
|
+
"aria-label": c.value,
|
|
12881
|
+
title: c.value,
|
|
12873
12882
|
style: Il({
|
|
12874
12883
|
width: `${i.value}px`,
|
|
12875
12884
|
height: `${i.value}px`,
|
|
@@ -12877,7 +12886,7 @@ var XV = ["transform"], yV = [
|
|
|
12877
12886
|
})
|
|
12878
12887
|
}, null, 12, bT)) : k("", !0)], 4));
|
|
12879
12888
|
}
|
|
12880
|
-
}), hT = /* @__PURE__ */ Jl(rT, [["__scopeId", "data-v-
|
|
12889
|
+
}), hT = /* @__PURE__ */ Jl(rT, [["__scopeId", "data-v-c3f9d8bf"]]), WT = ["disabled"], pT = { class: "flex h-100 justify-content-center relative" }, GT = {
|
|
12881
12890
|
key: 0,
|
|
12882
12891
|
class: "loading absolute inset-0 mx-auto"
|
|
12883
12892
|
}, NT = {
|