redmine-ui-kit 1.2.1 → 1.2.3
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/redmine-ui-kit.js +6 -5
- package/dist/redmine-ui-kit.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/redmine-ui-kit.js
CHANGED
|
@@ -10290,10 +10290,11 @@ const w0 = {
|
|
|
10290
10290
|
], 2));
|
|
10291
10291
|
}
|
|
10292
10292
|
});
|
|
10293
|
-
const $0 = { class: "
|
|
10293
|
+
const $0 = { class: "rm-avatar__overlay" }, k0 = ["src"], P0 = { class: "rm-avatar__label" }, U0 = /* @__PURE__ */ $e({
|
|
10294
10294
|
__name: "RMAvatar",
|
|
10295
10295
|
props: {
|
|
10296
10296
|
label: { default: "Anon" },
|
|
10297
|
+
staticLabel: { default: "" },
|
|
10297
10298
|
small: { type: Boolean, default: !1 },
|
|
10298
10299
|
avatar: { default: null }
|
|
10299
10300
|
},
|
|
@@ -10301,10 +10302,10 @@ const $0 = { class: "avatar-primitive__overlay" }, k0 = ["src"], P0 = { class: "
|
|
|
10301
10302
|
const t = e, n = V(() => t.label.trim().replace(/\s+/g, " ").split(" ").map((r) => r[0].toUpperCase()).join("").slice(0, 2));
|
|
10302
10303
|
return (r, a) => (m(), O("div", {
|
|
10303
10304
|
class: pe([
|
|
10304
|
-
"avatar
|
|
10305
|
+
"rm-avatar",
|
|
10305
10306
|
{
|
|
10306
10307
|
small: e.small,
|
|
10307
|
-
"avatar
|
|
10308
|
+
"rm-avatar--avatar": e.avatar
|
|
10308
10309
|
}
|
|
10309
10310
|
])
|
|
10310
10311
|
}, [
|
|
@@ -10312,11 +10313,11 @@ const $0 = { class: "avatar-primitive__overlay" }, k0 = ["src"], P0 = { class: "
|
|
|
10312
10313
|
e.avatar ? (m(), O("img", {
|
|
10313
10314
|
key: 0,
|
|
10314
10315
|
src: e.avatar,
|
|
10315
|
-
class: "
|
|
10316
|
+
class: "rm-avatar__avatar-image",
|
|
10316
10317
|
alt: ""
|
|
10317
10318
|
}, null, 8, k0)) : T("", !0)
|
|
10318
10319
|
]),
|
|
10319
|
-
E("div", P0, me(c(n)), 1)
|
|
10320
|
+
E("div", P0, me(e.staticLabel || c(n)), 1)
|
|
10320
10321
|
], 2));
|
|
10321
10322
|
}
|
|
10322
10323
|
});
|