@dcrackel/hematournamentui 1.0.231 → 1.0.232

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.
@@ -30220,7 +30220,7 @@ function gO(n, e, t, r, i, o) {
30220
30220
  f(s, {
30221
30221
  text: t.event.EventName,
30222
30222
  size: "xl",
30223
- color: "primary",
30223
+ color: "quaternary",
30224
30224
  weight: "bold",
30225
30225
  class: "text-left"
30226
30226
  }, null, 8, ["text"]),
@@ -30234,7 +30234,7 @@ function gO(n, e, t, r, i, o) {
30234
30234
  f(s, {
30235
30235
  text: t.event.Status,
30236
30236
  size: "md",
30237
- color: "primary",
30237
+ color: "quaternary",
30238
30238
  class: "text-left"
30239
30239
  }, null, 8, ["text"]),
30240
30240
  f(s, {
@@ -34782,6 +34782,10 @@ const PH = /* @__PURE__ */ Ae(m3, [["render", C3]]), I3 = {
34782
34782
  highLight: {
34783
34783
  type: Boolean,
34784
34784
  default: !1
34785
+ },
34786
+ faded: {
34787
+ type: Boolean,
34788
+ default: !1
34785
34789
  }
34786
34790
  },
34787
34791
  computed: {
@@ -34800,6 +34804,9 @@ const PH = /* @__PURE__ */ Ae(m3, [["render", C3]]), I3 = {
34800
34804
  },
34801
34805
  highLighted() {
34802
34806
  return this.highLight ? "border-bright" : "border-poolSetup";
34807
+ },
34808
+ opacity() {
34809
+ return this.faded ? "opacity-60 shadow-md" : "shadow-xl";
34803
34810
  }
34804
34811
  },
34805
34812
  methods: {
@@ -34817,12 +34824,12 @@ const PH = /* @__PURE__ */ Ae(m3, [["render", C3]]), I3 = {
34817
34824
  function b3(n, e, t, r, i, o) {
34818
34825
  const s = T("BaseText");
34819
34826
  return C(), B("section", {
34820
- class: te(["bg-poolSetup flex shadow-lg rounded-md border", [o.width, o.highLighted]]),
34827
+ class: te(["bg-poolSetup flex rounded-md border", [o.width, o.highLighted, o.opacity]]),
34821
34828
  onMouseover: e[0] || (e[0] = (a) => o.handleHighLight(!0)),
34822
34829
  onMouseout: e[1] || (e[1] = (a) => o.handleHighLight(!1))
34823
34830
  }, [
34824
34831
  p("div", {
34825
- class: te(["text-center px-1 w-5 flex items-center justify-center rounded-l-md z-50", `bg-${t.color}`])
34832
+ class: te(["text-center px-1 w-5 flex items-center justify-center rounded-l-md z-50", [`bg-${t.color}`]])
34826
34833
  }, [
34827
34834
  f(s, {
34828
34835
  text: t.position,
@@ -34859,8 +34866,9 @@ function b3(n, e, t, r, i, o) {
34859
34866
  o.club.length > 1 && t.large ? (C(), ae(s, {
34860
34867
  key: 0,
34861
34868
  color: "quinary",
34862
- text: o.club,
34863
- size: "xs"
34869
+ text: o.club.substring(0, 36),
34870
+ size: "xs",
34871
+ class: "text-nowrap overflow-hidden"
34864
34872
  }, null, 8, ["text"])) : M("", !0)
34865
34873
  ])
34866
34874
  ])
@@ -34979,12 +34987,13 @@ const x3 = /* @__PURE__ */ Ae(I3, [["render", b3]]), k3 = {
34979
34987
  },
34980
34988
  getScoreColor(n) {
34981
34989
  if (n) {
34982
- if (this.bout.Score1 > this.bout.Score2)
34990
+ if (this.bout.Person2.DisplayName === "BYE" && !(this.bout.Person1.DisplayName === "BYE" && this.bout.Person2.DisplayName === "BYE") || this.bout.Score1 > this.bout.Score2)
34983
34991
  return "bg-winGreen";
34984
34992
  if (this.bout.Score1 < this.bout.Score2 && this.bout.Status === "Active")
34985
34993
  return "bg-lossRed";
34986
- } else {
34987
- if (this.bout.Score1 < this.bout.Score2)
34994
+ }
34995
+ if (!n) {
34996
+ if (this.bout.Person1.DisplayName === "BYE" && !(this.bout.Person1.DisplayName === "BYE" && this.bout.Person2.DisplayName === "BYE") || this.bout.Score1 < this.bout.Score2)
34988
34997
  return "bg-winGreen";
34989
34998
  if (this.bout.Score1 > this.bout.Score2 && this.bout.Status === "Active")
34990
34999
  return "bg-lossRed";
@@ -34993,6 +35002,9 @@ const x3 = /* @__PURE__ */ Ae(I3, [["render", b3]]), k3 = {
34993
35002
  },
34994
35003
  handleHighlight(n) {
34995
35004
  this.bout.Person1.DisplayName.length < 1 || this.bout.Person2.DisplayName.length < 1 || this.bout.Person1.DisplayName === "BYE" || this.bout.Person2.DisplayName === "BYE" || (this.highlight = n);
35005
+ },
35006
+ shouldFade(n, e) {
35007
+ return this.bout.Person1.DisplayName === "BYE" && this.bout.Person2.DisplayName === "BYE" ? !1 : !!(e && (n.Person1.DisplayName === "BYE" || parseInt(n.Score1) < parseInt(n.Score2)) || !e && (n.Person2.DisplayName === "BYE" || parseInt(n.Score2) < parseInt(n.Score1)));
34996
35008
  }
34997
35009
  },
34998
35010
  computed: {
@@ -35062,13 +35074,16 @@ function S3(n, e, t, r, i, o) {
35062
35074
  scoreColor: o.getScoreColor(!0),
35063
35075
  large: t.large,
35064
35076
  highLight: i.highlight,
35077
+ faded: o.shouldFade(t.bout, !0),
35065
35078
  "onAction:highLight": o.handleHighlight
35066
- }, null, 8, ["fencer", "score", "position", "color", "scoreColor", "large", "highLight", "onAction:highLight"])
35079
+ }, null, 8, ["fencer", "score", "position", "color", "scoreColor", "large", "highLight", "faded", "onAction:highLight"])
35067
35080
  ]),
35068
35081
  p("div", {
35069
35082
  class: te(o.getCardSpace)
35070
35083
  }, null, 2),
35071
- p("section", null, [
35084
+ p("section", {
35085
+ onClick: e[1] || (e[1] = (A) => o.handleBoutClick(t.bout))
35086
+ }, [
35072
35087
  f(a, {
35073
35088
  fencer: o.person2Display,
35074
35089
  score: o.score2,
@@ -35077,8 +35092,9 @@ function S3(n, e, t, r, i, o) {
35077
35092
  scoreColor: o.getScoreColor(!1),
35078
35093
  large: t.large,
35079
35094
  highLight: i.highlight,
35095
+ faded: o.shouldFade(t.bout, !1),
35080
35096
  "onAction:highLight": o.handleHighlight
35081
- }, null, 8, ["fencer", "score", "position", "color", "scoreColor", "large", "highLight", "onAction:highLight"])
35097
+ }, null, 8, ["fencer", "score", "position", "color", "scoreColor", "large", "highLight", "faded", "onAction:highLight"])
35082
35098
  ])
35083
35099
  ], 2);
35084
35100
  }