courthive-components 7.1.0 → 7.1.2

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.
@@ -3814,15 +3814,17 @@ function Ja({ initialRoundNumber: e = 1, selectedMatchUpId: t, eventHandlers: n,
3814
3814
  }
3815
3815
  v.classList.add("tmx-str"), v.setAttribute("id", a || ""), Di(v, i?.colors);
3816
3816
  let { scheduleInfo: y, matchUpFooter: b, rounded: x, density: S, connectorWidth: w } = i?.configuration || {};
3817
- y && v.classList.add("chc-structure--schedule-info"), b && v.classList.add("chc-structure--matchup-footer"), x && v.classList.add("chc-rounded"), S === "compact" && v.classList.add("chc-density--compact"), w && v.style.setProperty("--chc-round-gap", `${w}px`);
3818
- let T = f.length ? Math.max.apply(null, f) : 0;
3817
+ y && v.classList.add("chc-structure--schedule-info");
3818
+ let T = i?.configuration?.renderers?.matchUpFooter;
3819
+ (b || T) && v.classList.add("chc-structure--matchup-footer"), x && v.classList.add("chc-rounded"), S === "compact" && v.classList.add("chc-density--compact"), w && v.style.setProperty("--chc-round-gap", `${w}px`);
3820
+ let E = f.length ? Math.max.apply(null, f) : 0;
3819
3821
  for (let a of f) {
3820
3822
  if (a < e) continue;
3821
3823
  let o = qa({
3822
3824
  initialRoundNumber: e,
3823
3825
  selectedMatchUpId: t,
3824
3826
  eventHandlers: n,
3825
- isFinalRound: a === T,
3827
+ isFinalRound: a === E,
3826
3828
  isRoundRobin: g,
3827
3829
  searchActive: r,
3828
3830
  composition: i,
@@ -3836,27 +3838,27 @@ function Ja({ initialRoundNumber: e = 1, selectedMatchUpId: t, eventHandlers: n,
3836
3838
  v.appendChild(o);
3837
3839
  }
3838
3840
  Ya(v, s);
3839
- let E = i?.configuration?.pathHighlight && Pi({
3841
+ let D = i?.configuration?.pathHighlight && Pi({
3840
3842
  matchUps: l,
3841
3843
  roundProfile: p,
3842
3844
  projectable: !g && !_ && !h
3843
- }), D = (e, t) => {
3844
- let n = E ? E(e) : void 0;
3845
+ }), O = (e, t) => {
3846
+ let n = D ? D(e) : void 0;
3845
3847
  if (!n) return;
3846
3848
  let r = (e, n) => {
3847
3849
  for (let r of e) v.querySelector(`.tmx-m[id="${CSS.escape(r)}"]`)?.classList.toggle(n, t);
3848
3850
  };
3849
3851
  r(n.played, "chc-path"), r(n.won, "chc-path--won"), r(n.projected, "chc-path--projected");
3850
- }, O = null, k = (e, t) => {
3852
+ }, k = null, A = (e, t) => {
3851
3853
  v.querySelectorAll(`.tmx-i[id="${CSS.escape(e)}"]`).forEach((e) => {
3852
3854
  e.closest(".tmx-p")?.classList.toggle("chc-participant-hover", t);
3853
- }), D(e, t);
3855
+ }), O(e, t);
3854
3856
  };
3855
3857
  if (v.addEventListener("mouseover", (e) => {
3856
3858
  let t = e.target.closest(".tmx-i")?.id;
3857
- t && t !== "undefined" && t !== O ? (O && k(O, !1), O = t, k(t, !0)) : (!t || t === "undefined") && O && (k(O, !1), O = null);
3859
+ t && t !== "undefined" && t !== k ? (k && A(k, !1), k = t, A(t, !0)) : (!t || t === "undefined") && k && (A(k, !1), k = null);
3858
3860
  }), v.addEventListener("mouseleave", () => {
3859
- O &&= (k(O, !1), null);
3861
+ k &&= (A(k, !1), null);
3860
3862
  }), o && typeof o != "boolean") {
3861
3863
  let e = document.createElement("div");
3862
3864
  e.className = ki();
@@ -16156,7 +16158,7 @@ function XD(e) {
16156
16158
  var ZD = {
16157
16159
  name: "courthive-components",
16158
16160
  packageManager: "pnpm@12.15.0",
16159
- version: "7.1.0",
16161
+ version: "7.1.2",
16160
16162
  engines: { node: ">=24" },
16161
16163
  description: "Components for competitions projects",
16162
16164
  files: ["dist"],