@dcrackel/meyersquaredui 1.0.129 → 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.
@@ -2839,7 +2839,7 @@ const js = /* @__PURE__ */ S(_s, [["render", Ls]]), Ns = {
2839
2839
  this.selectedTab = r, this.$emit("tab-clicked", r);
2840
2840
  }
2841
2841
  }
2842
- }, Os = { class: "w-full rounded-lg" }, Ds = { class: "max-w-[1200px] md:w-full flex mx-2 md:mx-auto pl-4 bg-white rounded-tr-lg rounded-tl-lg" };
2842
+ }, Os = { class: "w-full rounded-t-lg" }, Ds = { class: "max-w-[1200px] md:w-full flex mx-2 md:mx-auto pl-4 bg-white rounded-tr-lg rounded-tl-lg" };
2843
2843
  function Rs(r, e, t, a, o, s) {
2844
2844
  const n = x("BaseText");
2845
2845
  return h(), f("div", Os, [
@@ -3564,7 +3564,8 @@ function Vr(r, e, t, a, o, s) {
3564
3564
  key: 0,
3565
3565
  src: t.imageSrc,
3566
3566
  alt: "Hero Image",
3567
- class: "w-full h-full object-cover object-top max-h-96"
3567
+ class: "w-full h-full object-cover object-top max-h-96",
3568
+ loading: "lazy"
3568
3569
  }, null, 8, Mr)),
3569
3570
  i("section", Lr, [
3570
3571
  i("div", jr, [
@@ -3787,7 +3788,8 @@ function Xr(r, e, t, a, o, s) {
3787
3788
  key: 0,
3788
3789
  src: t.imageSrc,
3789
3790
  alt: "Hero Image",
3790
- class: "w-full h-full object-cover object-top max-h-96"
3791
+ class: "w-full h-full object-cover object-top max-h-96",
3792
+ loading: "lazy"
3791
3793
  }, null, 8, Kr)),
3792
3794
  i("section", Yr, [
3793
3795
  i("div", Zr, [
@@ -4629,6 +4631,11 @@ const zd = /* @__PURE__ */ S(To, [["render", jo]]), No = {
4629
4631
  beforeDestroy() {
4630
4632
  this.stopTimer();
4631
4633
  },
4634
+ watch: {
4635
+ timerStatus(r) {
4636
+ r === "running" ? this.startTimer() : this.stopTimer();
4637
+ }
4638
+ },
4632
4639
  computed: {
4633
4640
  status() {
4634
4641
  return this.isWaiting ? "waiting" : this.bout.Status;
@@ -4672,21 +4679,32 @@ const zd = /* @__PURE__ */ S(To, [["render", jo]]), No = {
4672
4679
  this.interval && clearInterval(this.interval), this.interval = null;
4673
4680
  }
4674
4681
  }
4675
- }, Oo = { class: "flex items-center justify-between rounded-lg w-full" }, Do = { class: "flex space-x-4 items-center" }, Ro = ["src"], Fo = {
4676
- key: 0,
4677
- class: "w-2/12 h-16 pt-3 text-center bg-primary"
4678
- }, Wo = { class: "flex justify-between space-x-4 ml-4 w-full" }, Go = { class: "flex" }, Uo = { class: "pt-1" }, Vo = { class: "pl-2" }, Ho = ["src"], qo = {
4682
+ }, Oo = {
4679
4683
  key: 0,
4680
4684
  class: "text-left"
4681
- };
4685
+ }, Do = { class: "flex items-center justify-between rounded-lg w-full" }, Ro = { class: "flex space-x-4 items-center" }, Fo = ["src"], Wo = {
4686
+ key: 0,
4687
+ class: "w-2/12 h-16 pt-3 text-center bg-primary"
4688
+ }, Go = { class: "flex justify-between space-x-4 ml-4 w-full" }, Uo = { class: "flex" }, Vo = { class: "pt-1" }, Ho = { class: "pl-2" }, qo = ["src"];
4682
4689
  function Ko(r, e, t, a, o, s) {
4683
4690
  const n = x("BaseText");
4684
4691
  return h(), f("section", null, [
4685
- i("div", Oo, [
4692
+ t.bout.customStatus && s.status !== "Active" ? (h(), f("div", Oo, [
4693
+ d(n, {
4694
+ size: "sm",
4695
+ color: "primary"
4696
+ }, {
4697
+ default: m(() => [
4698
+ u(p(t.bout.customStatus), 1)
4699
+ ]),
4700
+ _: 1
4701
+ })
4702
+ ])) : v("", !0),
4703
+ i("div", Do, [
4686
4704
  i("div", {
4687
4705
  class: B(["w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl", [s.status !== "Active" ? "border-r" : ""]])
4688
4706
  }, [
4689
- i("div", Do, [
4707
+ i("div", Ro, [
4690
4708
  i("div", null, [
4691
4709
  i("div", {
4692
4710
  class: B(`w-4 h-4 rounded-full bg-${t.hostingClubColors.Color1} absolute mt-8 ml-9`)
@@ -4695,7 +4713,7 @@ function Ko(r, e, t, a, o, s) {
4695
4713
  src: s.fencer1Portrait,
4696
4714
  alt: "Portrait",
4697
4715
  class: "w-12 h-12 rounded-full"
4698
- }, null, 8, Ro)
4716
+ }, null, 8, Fo)
4699
4717
  ]),
4700
4718
  i("div", null, [
4701
4719
  d(n, {
@@ -4730,11 +4748,12 @@ function Ko(r, e, t, a, o, s) {
4730
4748
  _: 1
4731
4749
  })
4732
4750
  ], 2),
4733
- t.bout.Status === "Active" ? (h(), f("div", Fo, [
4751
+ t.bout.Status === "Active" ? (h(), f("div", Wo, [
4734
4752
  d(n, {
4735
4753
  size: "2xl",
4736
4754
  color: "white",
4737
- weight: "bold"
4755
+ weight: "bold",
4756
+ class: "font-sourceCodePro"
4738
4757
  }, {
4739
4758
  default: m(() => [
4740
4759
  u(p(s.displayTime), 1)
@@ -4745,7 +4764,7 @@ function Ko(r, e, t, a, o, s) {
4745
4764
  i("div", {
4746
4765
  class: B(["w-5/12 flex justify-between border-r border-t border-b p-2 bg-poolBox rounded-r-xl", [s.status !== "Active" ? "border-l" : ""]])
4747
4766
  }, [
4748
- i("div", Wo, [
4767
+ i("div", Go, [
4749
4768
  d(n, {
4750
4769
  size: "3xl",
4751
4770
  weight: "bold",
@@ -4756,8 +4775,8 @@ function Ko(r, e, t, a, o, s) {
4756
4775
  ]),
4757
4776
  _: 1
4758
4777
  }),
4759
- i("div", Go, [
4760
- i("div", Uo, [
4778
+ i("div", Uo, [
4779
+ i("div", Vo, [
4761
4780
  d(n, {
4762
4781
  size: "md",
4763
4782
  color: "primary",
@@ -4780,7 +4799,7 @@ function Ko(r, e, t, a, o, s) {
4780
4799
  _: 1
4781
4800
  })
4782
4801
  ]),
4783
- i("div", Vo, [
4802
+ i("div", Ho, [
4784
4803
  i("div", {
4785
4804
  class: B(`w-4 h-4 rounded-full bg-${t.hostingClubColors.Color2} absolute mt-8 mr-14`)
4786
4805
  }, null, 2),
@@ -4788,23 +4807,12 @@ function Ko(r, e, t, a, o, s) {
4788
4807
  src: s.fencer2Portrait,
4789
4808
  alt: "Portrait",
4790
4809
  class: "w-12 h-12 rounded-full"
4791
- }, null, 8, Ho)
4810
+ }, null, 8, qo)
4792
4811
  ])
4793
4812
  ])
4794
4813
  ])
4795
4814
  ], 2)
4796
- ]),
4797
- t.bout.customStatus && s.status !== "Active" ? (h(), f("div", qo, [
4798
- d(n, {
4799
- size: "sm",
4800
- color: "primary"
4801
- }, {
4802
- default: m(() => [
4803
- u(p(t.bout.customStatus), 1)
4804
- ]),
4805
- _: 1
4806
- })
4807
- ])) : v("", !0)
4815
+ ])
4808
4816
  ]);
4809
4817
  }
4810
4818
  const Yo = /* @__PURE__ */ S(No, [["render", Ko]]), Zo = {
@@ -4843,6 +4851,11 @@ const Yo = /* @__PURE__ */ S(No, [["render", Ko]]), Zo = {
4843
4851
  beforeDestroy() {
4844
4852
  this.stopTimer();
4845
4853
  },
4854
+ watch: {
4855
+ timerStatus(r) {
4856
+ r === "running" ? this.startTimer() : this.stopTimer();
4857
+ }
4858
+ },
4846
4859
  computed: {
4847
4860
  status() {
4848
4861
  return this.isWaiting ? "waiting" : this.bout.Status;
@@ -4958,7 +4971,8 @@ function un(r, e, t, a, o, s) {
4958
4971
  d(n, {
4959
4972
  size: "sm",
4960
4973
  color: "white",
4961
- weight: "bold"
4974
+ weight: "bold",
4975
+ class: "font-sourceCodePro"
4962
4976
  }, {
4963
4977
  default: m(() => [
4964
4978
  u(p(s.displayTime), 1)
@@ -5110,13 +5124,15 @@ function Cn(r, e, t, a, o, s) {
5110
5124
  o.isMobile ? v("", !0) : (h(), W(n, {
5111
5125
  key: 0,
5112
5126
  bout: g,
5113
- hostingClubColors: t.hostingClubColors
5114
- }, null, 8, ["bout", "hostingClubColors"])),
5127
+ hostingClubColors: t.hostingClubColors,
5128
+ timerStatus: g.TimerStatus
5129
+ }, null, 8, ["bout", "hostingClubColors", "timerStatus"])),
5115
5130
  o.isMobile ? (h(), W(c, {
5116
5131
  key: 1,
5117
5132
  bout: g,
5118
- hostingClubColors: t.hostingClubColors
5119
- }, null, 8, ["bout", "hostingClubColors"])) : v("", !0)
5133
+ hostingClubColors: t.hostingClubColors,
5134
+ timerStatus: g.TimerStatus
5135
+ }, null, 8, ["bout", "hostingClubColors", "timerStatus"])) : v("", !0)
5120
5136
  ]))), 128))
5121
5137
  ])
5122
5138
  ])) : v("", !0),
@@ -5253,8 +5269,8 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5253
5269
  this.showStats = window.matchMedia("(min-width: 768px)").matches;
5254
5270
  },
5255
5271
  getFencerShortName(r) {
5256
- const [e, t] = r.split(" "), a = t ? t.charAt(0) : "";
5257
- return `${e} ${a}.`;
5272
+ const [e, t] = r.split(" ");
5273
+ return `${e ? e.charAt(0) : ""}. ${t}`;
5258
5274
  },
5259
5275
  getScore(r, e) {
5260
5276
  const t = this.bouts.find(
@@ -5268,20 +5284,22 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5268
5284
  return "";
5269
5285
  },
5270
5286
  getBoutClass(r, e) {
5271
- 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
+ );
5272
5290
  if (t) {
5273
5291
  if (t.Status === "Completed") {
5274
5292
  if (t.Score1 > t.Score2)
5275
- 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" };
5276
5294
  if (t.Score2 > t.Score1)
5277
- 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" };
5278
5296
  if (t.Score2 === t.Score1)
5279
- return e === t.Person2Id, "bg-primary";
5297
+ return { bg: "bg-primary", text: "text-white" };
5280
5298
  }
5281
5299
  if (t.Status === "Active")
5282
- return "bg-blue";
5300
+ return { bg: "bg-blue", text: "text-white" };
5283
5301
  }
5284
- return "";
5302
+ return { bg: "", text: "" };
5285
5303
  },
5286
5304
  getStats(r) {
5287
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;
@@ -5313,7 +5331,7 @@ const Bd = /* @__PURE__ */ S(hn, [["render", Cn]]), Sn = {
5313
5331
  }, Ln = {
5314
5332
  key: 5,
5315
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"
5316
- }, 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 = {
5317
5335
  key: 1,
5318
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"
5319
5337
  }, Rn = {
@@ -5349,7 +5367,7 @@ function Un(r, e, t, a, o, s) {
5349
5367
  })
5350
5368
  ]),
5351
5369
  e[7] || (e[7] = i("th", { class: "w-1" }, null, -1)),
5352
- 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)),
5353
5371
  (h(!0), f(P, null, L(s.participants, (l, g) => (h(), f("th", {
5354
5372
  key: l.PersonId,
5355
5373
  class: "bg-primary rounded-md md:rounded-lg text-center align-middle"
@@ -5443,7 +5461,7 @@ function Un(r, e, t, a, o, s) {
5443
5461
  d(n, {
5444
5462
  size: "",
5445
5463
  color: "primary",
5446
- class: "hidden md:block text-xs md:text-sm"
5464
+ class: "hidden md:block text-xs md:text-sm min-w-48"
5447
5465
  }, {
5448
5466
  default: m(() => [
5449
5467
  u(p(l.DisplayName), 1)
@@ -5477,22 +5495,21 @@ function Un(r, e, t, a, o, s) {
5477
5495
  ]),
5478
5496
  (h(!0), f(P, null, L(s.participants, (b) => (h(), f("td", {
5479
5497
  key: b.PersonId,
5480
- 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"])
5481
5499
  }, [
5482
5500
  l.PersonId !== b.PersonId ? (h(), f("div", {
5483
5501
  key: 0,
5484
- 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"])
5485
5503
  }, [
5486
5504
  d(n, {
5487
- size: "",
5488
- color: "white",
5489
- class: "text-xs md:text-sm"
5505
+ class: B([s.getBoutClass(l.PersonId, b.PersonId).text, "text-xs md:text-sm"]),
5506
+ size: ""
5490
5507
  }, {
5491
5508
  default: m(() => [
5492
5509
  u(p(s.getScore(l.PersonId, b.PersonId)), 1)
5493
5510
  ]),
5494
5511
  _: 2
5495
- }, 1024)
5512
+ }, 1032, ["class"])
5496
5513
  ], 2)) : v("", !0)
5497
5514
  ], 2))), 128)),
5498
5515
  g === 0 ? (h(), f("td", {
@@ -7005,7 +7022,8 @@ function al(r, e, t, a, o, s) {
7005
7022
  key: 0,
7006
7023
  src: t.imageSrc,
7007
7024
  alt: "Hero Image",
7008
- class: "w-full h-full object-cover"
7025
+ class: "w-full h-full object-cover",
7026
+ loading: "lazy"
7009
7027
  }, null, 8, tl)),
7010
7028
  i("section", sl, [
7011
7029
  i("div", rl, [