@dcrackel/meyersquaredui 1.0.130 → 1.0.132

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.
@@ -4752,7 +4752,8 @@ function Ko(r, e, t, a, o, s) {
4752
4752
  d(n, {
4753
4753
  size: "2xl",
4754
4754
  color: "white",
4755
- weight: "bold"
4755
+ weight: "bold",
4756
+ class: "font-sourceCodePro"
4756
4757
  }, {
4757
4758
  default: m(() => [
4758
4759
  u(p(s.displayTime), 1)
@@ -4970,7 +4971,8 @@ function un(r, e, t, a, o, s) {
4970
4971
  d(n, {
4971
4972
  size: "sm",
4972
4973
  color: "white",
4973
- weight: "bold"
4974
+ weight: "bold",
4975
+ class: "font-sourceCodePro"
4974
4976
  }, {
4975
4977
  default: m(() => [
4976
4978
  u(p(s.displayTime), 1)
@@ -5267,8 +5269,8 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5267
5269
  this.showStats = window.matchMedia("(min-width: 768px)").matches;
5268
5270
  },
5269
5271
  getFencerShortName(r) {
5270
- const [e, t] = r.split(" "), a = t ? t.charAt(0) : "";
5271
- return `${e} ${a}.`;
5272
+ const [e, t] = r.split(" ");
5273
+ return `${e ? e.charAt(0) : ""}. ${t}`;
5272
5274
  },
5273
5275
  getScore(r, e) {
5274
5276
  const t = this.bouts.find(
@@ -5282,20 +5284,22 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5282
5284
  return "";
5283
5285
  },
5284
5286
  getBoutClass(r, e) {
5285
- const t = this.bouts.find((a) => a.Person1Id === r && a.Person2Id === e || a.Person1Id === e && a.Person2Id === r);
5287
+ const t = this.bouts.find(
5288
+ (a) => a.Person1Id === r && a.Person2Id === e || a.Person1Id === e && a.Person2Id === r
5289
+ );
5286
5290
  if (t) {
5287
5291
  if (t.Status === "Completed") {
5288
5292
  if (t.Score1 > t.Score2)
5289
- return r === t.Person1Id ? "bg-accent" : "bg-gray-400";
5293
+ return r === t.Person1Id ? { bg: "bg-accent", text: "text-white" } : { bg: "border-accent border bg-white", text: "text-primary" };
5290
5294
  if (t.Score2 > t.Score1)
5291
- return e === t.Person2Id ? "bg-gray-400" : "bg-accent";
5295
+ return e === t.Person2Id ? { bg: "border-accent border bg-white", text: "text-primary" } : { bg: "bg-accent", text: "text-white" };
5292
5296
  if (t.Score2 === t.Score1)
5293
- return e === t.Person2Id, "bg-primary";
5297
+ return { bg: "bg-primary", text: "text-white" };
5294
5298
  }
5295
5299
  if (t.Status === "Active")
5296
- return "bg-blue";
5300
+ return { bg: "bg-blue", text: "text-white" };
5297
5301
  }
5298
- return "";
5302
+ return { bg: "", text: "" };
5299
5303
  },
5300
5304
  getStats(r) {
5301
5305
  const e = this.bouts.filter((l) => (l.Person1Id === r.PersonId || l.Person2Id === r.PersonId) && l.Status === "Completed"), t = e.filter((l) => l.Person1Id === r.PersonId && l.Score1 > l.Score2 || l.Person2Id === r.PersonId && l.Score2 > l.Score1).length, a = e.filter((l) => l.Person1Id === r.PersonId && l.Score1 < l.Score2 || l.Person2Id === r.PersonId && l.Score2 < l.Score1).length, o = e.reduce((l, g) => l + (g.Person1Id === r.PersonId ? g.Score1 : g.Score2), 0), s = e.reduce((l, g) => l + (g.Person1Id === r.PersonId ? g.Score2 : g.Score1), 0), n = o - s;
@@ -5327,7 +5331,7 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5327
5331
  }, Ln = {
5328
5332
  key: 5,
5329
5333
  class: "bg-primary rounded-md md:rounded-lg able-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"
5330
- }, jn = { class: "border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4" }, Nn = { class: "bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10" }, On = ["rowspan"], Dn = {
5334
+ }, jn = { class: "border border-primary rounded-md md:rounded-lg text-right align-middle px-1 md:px-4 w-auto" }, Nn = { class: "bg-primary rounded-md md:rounded-lg text-center align-middle h-6 w-6 md:h-10 md:w-10" }, On = ["rowspan"], Dn = {
5331
5335
  key: 1,
5332
5336
  class: "border border-primary rounded-md md:rounded-lg table-cell text-center align-middle h-6 w-6 md:h-10 md:w-10"
5333
5337
  }, Rn = {
@@ -5363,7 +5367,7 @@ function Un(r, e, t, a, o, s) {
5363
5367
  })
5364
5368
  ]),
5365
5369
  e[7] || (e[7] = i("th", { class: "w-1" }, null, -1)),
5366
- e[8] || (e[8] = i("th", { class: "bg-gray-800 rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2" }, null, -1)),
5370
+ e[8] || (e[8] = i("th", { class: "bg-primary rounded-md md:rounded-lg px-1 py-1 md:px-4 md:py-2" }, null, -1)),
5367
5371
  (h(!0), f(P, null, L(s.participants, (l, g) => (h(), f("th", {
5368
5372
  key: l.PersonId,
5369
5373
  class: "bg-primary rounded-md md:rounded-lg text-center align-middle"
@@ -5457,7 +5461,7 @@ function Un(r, e, t, a, o, s) {
5457
5461
  d(n, {
5458
5462
  size: "",
5459
5463
  color: "primary",
5460
- class: "hidden md:block text-xs md:text-sm"
5464
+ class: "hidden md:block text-xs md:text-sm min-w-48"
5461
5465
  }, {
5462
5466
  default: m(() => [
5463
5467
  u(p(l.DisplayName), 1)
@@ -5491,22 +5495,21 @@ function Un(r, e, t, a, o, s) {
5491
5495
  ]),
5492
5496
  (h(!0), f(P, null, L(s.participants, (b) => (h(), f("td", {
5493
5497
  key: b.PersonId,
5494
- class: B([{ "bg-gray-800 rounded-md md:rounded-lg ": l.PersonId === b.PersonId, "bg-secondary rounded-lg": l.PersonId !== b.PersonId }, "rounded-md md:rounded-lg h-6 w-6 md:h-10 md:w-10"])
5498
+ class: B([{ "bg-primary rounded-md md:rounded-lg ": l.PersonId === b.PersonId, "bg-secondary rounded-lg": l.PersonId !== b.PersonId }, "rounded-md md:rounded-lg h-6 w-6 md:h-10 md:w-10"])
5495
5499
  }, [
5496
5500
  l.PersonId !== b.PersonId ? (h(), f("div", {
5497
5501
  key: 0,
5498
- class: B([s.getBoutClass(l.PersonId, b.PersonId), "rounded-md md:rounded-lg text-center pt-1 md:pt-2.5 h-6 w-6 md:h-10 md:w-10"])
5502
+ class: B([[s.getBoutClass(l.PersonId, b.PersonId).bg], "rounded-md md:rounded-lg text-center pt-1 md:pt-2.5 h-6 w-6 md:h-10 md:w-10"])
5499
5503
  }, [
5500
5504
  d(n, {
5501
- size: "",
5502
- color: "white",
5503
- class: "text-xs md:text-sm"
5505
+ class: B([s.getBoutClass(l.PersonId, b.PersonId).text, "text-xs md:text-sm"]),
5506
+ size: ""
5504
5507
  }, {
5505
5508
  default: m(() => [
5506
5509
  u(p(s.getScore(l.PersonId, b.PersonId)), 1)
5507
5510
  ]),
5508
5511
  _: 2
5509
- }, 1024)
5512
+ }, 1032, ["class"])
5510
5513
  ], 2)) : v("", !0)
5511
5514
  ], 2))), 128)),
5512
5515
  g === 0 ? (h(), f("td", {