@maltjoy/core-vue 5.8.2 → 5.8.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/core-vue.js CHANGED
@@ -408,7 +408,7 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
408
408
  },
409
409
  emits: ["click"],
410
410
  setup(e, { expose: t, emit: l }) {
411
- const o = l, n = e, i = be("VJoyAvatarsList"), a = T(() => n.size === "large" || n.size === "xlarge" ? "medium" : n.size === "medium" ? "small" : n.size === "small" ? "xsmall" : "xxsmall"), r = T(() => n.link ? {
411
+ const o = l, n = e, i = be("VJoyAvatarsList", { compress: !1 }), a = T(() => n.size === "large" || n.size === "xlarge" ? "medium" : n.size === "medium" ? "small" : n.size === "small" ? "xsmall" : "xxsmall"), r = T(() => n.link ? {
412
412
  type: "button"
413
413
  } : null), s = T(() => ({
414
414
  "joy-avatar": !0,
@@ -431,66 +431,63 @@ const Go = { class: "joy-admin-banner" }, Yo = { class: "joy-admin-banner__label
431
431
  return t({
432
432
  isAnonymous: u,
433
433
  initials: p
434
- }), (f, m) => {
435
- var y;
436
- return c(), v("div", {
437
- ref: "avatarEl",
438
- class: I(["joy-avatar__wrapper", {
439
- [`joy-avatar__wrapper--${f.size}`]: !0,
440
- "joy-avatar__wrapper--anonymous": u.value,
441
- "joy-avatar__wrapper--compressed": (y = D(i)) == null ? void 0 : y.compress,
442
- "joy-avatar__wrapper--empty": f.isEmpty
443
- }])
444
- }, [
445
- (c(), L(Z(f.link ? "button" : "div"), W(r.value, {
446
- title: f.fullName,
447
- class: [s.value],
448
- onClick: d
449
- }), {
450
- default: z(() => [
451
- u.value ? (c(), L(q, {
434
+ }), (f, m) => (c(), v("div", {
435
+ ref: "avatarEl",
436
+ class: I(["joy-avatar__wrapper", {
437
+ [`joy-avatar__wrapper--${f.size}`]: !0,
438
+ "joy-avatar__wrapper--anonymous": u.value,
439
+ "joy-avatar__wrapper--compressed": D(i).compress,
440
+ "joy-avatar__wrapper--empty": f.isEmpty
441
+ }])
442
+ }, [
443
+ (c(), L(Z(f.link ? "button" : "div"), W(r.value, {
444
+ title: f.fullName,
445
+ class: [s.value],
446
+ onClick: d
447
+ }), {
448
+ default: z(() => [
449
+ u.value ? (c(), L(q, {
450
+ key: 0,
451
+ name: f.placeholder,
452
+ color: "neutral-50",
453
+ size: a.value
454
+ }, null, 8, ["name", "size"])) : w("", !0),
455
+ _(f.$slots, "default", {}, () => [
456
+ f.photoUrl ? (c(), v("img", {
452
457
  key: 0,
453
- name: f.placeholder,
454
- color: "neutral-50",
455
- size: a.value
456
- }, null, 8, ["name", "size"])) : w("", !0),
457
- _(f.$slots, "default", {}, () => [
458
- f.photoUrl ? (c(), v("img", {
459
- key: 0,
460
- class: "joy-avatar__img",
461
- src: f.photoUrl,
462
- title: f.fullName,
463
- alt: f.fullName || "",
464
- loading: f.loading
465
- }, null, 8, Qo)) : w("", !0)
466
- ], !0),
467
- f.fullName && f.showLetters ? (c(), v(H, { key: 1 }, [
468
- R(J(p.value), 1)
469
- ], 64)) : w("", !0),
470
- f.totalNumber ? (c(), v(H, { key: 2 }, [
471
- R(J("+" + f.totalNumber), 1)
472
- ], 64)) : w("", !0)
473
- ]),
474
- _: 3
475
- }, 16, ["title", "class"])),
476
- f.profile === "strategy" ? (c(), v("span", en, [
477
- (c(), v("svg", {
478
- width: "12",
479
- height: f.size === "small" ? "10" : "16",
480
- viewBox: "0 0 12 16",
481
- fill: "none",
482
- xmlns: "http://www.w3.org/2000/svg"
483
- }, m[0] || (m[0] = [
484
- h("path", {
485
- d: "M6.40531 15.88C5.29156 15.88 4.31531 15.6737 3.47656 15.2612C2.63781 14.8487 1.98469 14.2644 1.51719 13.5081C1.04969 12.7519 0.809061 11.8719 0.795311 10.8681L4.01281 10.3525C4.01281 11.2188 4.25344 11.9131 4.73469 12.4356C5.21594 12.9581 5.82781 13.2194 6.57031 13.2194C7.16156 13.2194 7.63594 13.0612 7.99344 12.745C8.36469 12.4288 8.55031 12.0231 8.55031 11.5281C8.55031 11.1156 8.40594 10.7719 8.11719 10.4969C7.84219 10.2081 7.38844 9.95375 6.75594 9.73375L4.96156 9.15625C3.65531 8.7575 2.70656 8.21438 2.11531 7.52687C1.53781 6.83937 1.24906 5.93187 1.24906 4.80437C1.24906 3.47062 1.68219 2.39812 2.54844 1.58687C3.41469 0.775624 4.63156 0.369999 6.19906 0.369999C7.65656 0.369999 8.83219 0.768749 9.72594 1.56625C10.6197 2.35 11.0803 3.41562 11.1078 4.76312L7.97281 5.36125C7.98656 4.64625 7.82156 4.07562 7.47781 3.64937C7.13406 3.20937 6.68719 2.98937 6.13719 2.98937C5.65594 2.98937 5.26406 3.14062 4.96156 3.44313C4.65906 3.73187 4.50781 4.10312 4.50781 4.55687C4.50781 4.99687 4.64531 5.36125 4.92031 5.65C5.20906 5.925 5.67656 6.15875 6.32281 6.35125L8.03469 6.92875C9.36844 7.3275 10.3309 7.87063 10.9222 8.55812C11.5272 9.23188 11.8297 10.1325 11.8297 11.26C11.8297 12.1538 11.6166 12.9513 11.1903 13.6525C10.7641 14.3538 10.1453 14.9038 9.33406 15.3025C8.52281 15.6875 7.54656 15.88 6.40531 15.88Z",
486
- fill: "#F7F7F5"
487
- }, null, -1)
488
- ]), 8, tn))
489
- ])) : w("", !0)
490
- ], 2);
491
- };
458
+ class: "joy-avatar__img",
459
+ src: f.photoUrl,
460
+ title: f.fullName,
461
+ alt: f.fullName || "",
462
+ loading: f.loading
463
+ }, null, 8, Qo)) : w("", !0)
464
+ ], !0),
465
+ f.fullName && f.showLetters ? (c(), v(H, { key: 1 }, [
466
+ R(J(p.value), 1)
467
+ ], 64)) : w("", !0),
468
+ f.totalNumber ? (c(), v(H, { key: 2 }, [
469
+ R(J("+" + f.totalNumber), 1)
470
+ ], 64)) : w("", !0)
471
+ ]),
472
+ _: 3
473
+ }, 16, ["title", "class"])),
474
+ f.profile === "strategy" ? (c(), v("span", en, [
475
+ (c(), v("svg", {
476
+ width: "12",
477
+ height: f.size === "small" ? "10" : "16",
478
+ viewBox: "0 0 12 16",
479
+ fill: "none",
480
+ xmlns: "http://www.w3.org/2000/svg"
481
+ }, m[0] || (m[0] = [
482
+ h("path", {
483
+ d: "M6.40531 15.88C5.29156 15.88 4.31531 15.6737 3.47656 15.2612C2.63781 14.8487 1.98469 14.2644 1.51719 13.5081C1.04969 12.7519 0.809061 11.8719 0.795311 10.8681L4.01281 10.3525C4.01281 11.2188 4.25344 11.9131 4.73469 12.4356C5.21594 12.9581 5.82781 13.2194 6.57031 13.2194C7.16156 13.2194 7.63594 13.0612 7.99344 12.745C8.36469 12.4288 8.55031 12.0231 8.55031 11.5281C8.55031 11.1156 8.40594 10.7719 8.11719 10.4969C7.84219 10.2081 7.38844 9.95375 6.75594 9.73375L4.96156 9.15625C3.65531 8.7575 2.70656 8.21438 2.11531 7.52687C1.53781 6.83937 1.24906 5.93187 1.24906 4.80437C1.24906 3.47062 1.68219 2.39812 2.54844 1.58687C3.41469 0.775624 4.63156 0.369999 6.19906 0.369999C7.65656 0.369999 8.83219 0.768749 9.72594 1.56625C10.6197 2.35 11.0803 3.41562 11.1078 4.76312L7.97281 5.36125C7.98656 4.64625 7.82156 4.07562 7.47781 3.64937C7.13406 3.20937 6.68719 2.98937 6.13719 2.98937C5.65594 2.98937 5.26406 3.14062 4.96156 3.44313C4.65906 3.73187 4.50781 4.10312 4.50781 4.55687C4.50781 4.99687 4.64531 5.36125 4.92031 5.65C5.20906 5.925 5.67656 6.15875 6.32281 6.35125L8.03469 6.92875C9.36844 7.3275 10.3309 7.87063 10.9222 8.55812C11.5272 9.23188 11.8297 10.1325 11.8297 11.26C11.8297 12.1538 11.6166 12.9513 11.1903 13.6525C10.7641 14.3538 10.1453 14.9038 9.33406 15.3025C8.52281 15.6875 7.54656 15.88 6.40531 15.88Z",
484
+ fill: "#F7F7F5"
485
+ }, null, -1)
486
+ ]), 8, tn))
487
+ ])) : w("", !0)
488
+ ], 2));
492
489
  }
493
- }), nn = /* @__PURE__ */ x(on, [["__scopeId", "data-v-07787660"]]), ln = /* @__PURE__ */ B({
490
+ }), nn = /* @__PURE__ */ x(on, [["__scopeId", "data-v-11bcdf50"]]), ln = /* @__PURE__ */ B({
494
491
  __name: "VJoyAvatarsList",
495
492
  props: {
496
493
  /** Renders a compact list of avatars */