@dcrackel/hematournamentui 1.0.231 → 1.0.233

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, {
@@ -30395,7 +30395,7 @@ const kH = /* @__PURE__ */ Ae(hO, [["render", yO]]), ip = "data:image/png;base64
30395
30395
  this.$emit("button-click", n);
30396
30396
  }
30397
30397
  }
30398
- }, bO = { class: "bg-secondary min-h-screen flex flex-col justify-between" }, xO = { class: "h-28 border-b border-neutral" }, kO = { class: "flex flex-col justify-center h-28" }, DO = { class: "flex justify-center" }, SO = ["src"], TO = { class: "flex flex-col p-2 h-full" }, MO = { class: "flex flex-col justify-end p-2 flex-grow" }, OO = { class: "border-t border-neutral pt-2" };
30398
+ }, bO = { class: "bg-secondary min-h-screen flex flex-col justify-between w-[150]" }, xO = { class: "h-28 border-b border-neutral" }, kO = { class: "flex flex-col justify-center h-28" }, DO = { class: "flex justify-center" }, SO = ["src"], TO = { class: "flex flex-col p-2 h-full" }, MO = { class: "flex flex-col justify-end p-2 flex-grow" }, OO = { class: "border-t border-neutral pt-2" };
30399
30399
  function PO(n, e, t, r, i, o) {
30400
30400
  const s = T("BaseButton");
30401
30401
  return C(), B("div", bO, [
@@ -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,
@@ -34854,13 +34861,14 @@ function b3(n, e, t, r, i, o) {
34854
34861
  size: t.large ? "sm" : "xs",
34855
34862
  weight: t.large ? "bold" : "normal",
34856
34863
  color: "quaternary",
34857
- class: "text-nowrap overflow-hidden"
34864
+ class: "truncate text-nowrap overflow-hidden"
34858
34865
  }, null, 8, ["text", "size", "weight"]),
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, 28),
34870
+ size: "xs",
34871
+ class: "truncate 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
  }
@@ -35119,7 +35135,7 @@ const pp = /* @__PURE__ */ Ae(D3, [["render", S3]]), T3 = {
35119
35135
  "Table of 8": { getTopSpace: "mt-[1.3rem]", getConnectorHeight: "h-[7rem]", getTopSpaceForLine: "mt-[3.25rem]" },
35120
35136
  Quarterfinal: { getTopSpace: "mt-[4.7rem]", getConnectorHeight: "h-[14rem]", getTopSpaceForLine: "mt-[7rem]" },
35121
35137
  Semifinal: { getTopSpace: "mt-[12.7rem]", getConnectorHeight: "h-[28.3rem]", getTopSpaceForLine: "" },
35122
- Final: { getTopSpace: "h-[28rem] mt-[27rem] -ml-[309px]", getBottomLine: "h-[28rem] mt-[2.5rem] -ml-[309px]" },
35138
+ Final: { getTopSpace: "h-[30rem] mt-[25rem] -ml-[309px]", getBottomLine: "h-[30rem] mt-[2.5rem] -ml-[309px]" },
35123
35139
  "Third Place": { getTopSpace: "hidden", getConnectorHeight: "hidden", getTopSpaceForLine: "hidden" }
35124
35140
  },
35125
35141
  small: {