@dcrackel/hematournamentui 1.0.469 → 1.0.471
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.
- package/dist/HemaTournamentUI-lib.es.js +24 -12
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/mocks/getPoolResults.js +804 -115
- package/src/stories/Organisms/Containers/Tableau/Tableau.vue +36 -13
- package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +3 -0
- package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +5 -0
- package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +3 -3
|
@@ -30584,7 +30584,7 @@ const WO = /* @__PURE__ */ Ae(GO, [["render", VO]]), XO = {
|
|
|
30584
30584
|
handleButtonClick(n) {
|
|
30585
30585
|
console.log(n);
|
|
30586
30586
|
const e = this.tabs.find((t) => t.id === n);
|
|
30587
|
-
if (e && e.children) {
|
|
30587
|
+
if (e && e.children && this.isMobile) {
|
|
30588
30588
|
this.activeDropdown = this.activeDropdown === n ? null : n, this.selectedDropdownItem = this.activeDropdown ? e.children : [], console.log(this.selectedDropdownItem);
|
|
30589
30589
|
return;
|
|
30590
30590
|
}
|
|
@@ -30599,7 +30599,7 @@ const WO = /* @__PURE__ */ Ae(GO, [["render", VO]]), XO = {
|
|
|
30599
30599
|
}
|
|
30600
30600
|
}, ZO = { class: "flex" }, _O = { class: "w-full flex md:flex-nowrap flex-wrap justify-between md:justify-start" }, $O = {
|
|
30601
30601
|
key: 0,
|
|
30602
|
-
class: "bg-eventBoxBlue rounded
|
|
30602
|
+
class: "bg-eventBoxBlue rounded w-full -mt-4 grid grid-cols-3 gap-4 pt-3 pb-1"
|
|
30603
30603
|
}, eT = { class: "flex flex-col items-center justify-center mb-2 mr-2" };
|
|
30604
30604
|
function tT(n, e, t, r, o, i) {
|
|
30605
30605
|
const A = y("BaseButton"), a = y("TabBar"), l = y("BaseIcon"), c = y("BaseText");
|
|
@@ -30628,10 +30628,10 @@ function tT(n, e, t, r, o, i) {
|
|
|
30628
30628
|
o.activeDropdown ? (f(), m("section", $O, [
|
|
30629
30629
|
(f(!0), m(Ce, null, ye(o.selectedDropdownItem, (u) => (f(), m("div", eT, [
|
|
30630
30630
|
p(l, {
|
|
30631
|
-
size: "
|
|
30631
|
+
size: "md",
|
|
30632
30632
|
iconName: u.icon,
|
|
30633
30633
|
color: u.color,
|
|
30634
|
-
class: "w-6 mb-1"
|
|
30634
|
+
class: "w-6 mb-1 text-center"
|
|
30635
30635
|
}, null, 8, ["iconName", "color"]),
|
|
30636
30636
|
p(c, {
|
|
30637
30637
|
size: "xs",
|
|
@@ -36224,13 +36224,13 @@ const _L = /* @__PURE__ */ Ae(YL, [["render", ZL]]), $L = {
|
|
|
36224
36224
|
};
|
|
36225
36225
|
},
|
|
36226
36226
|
mounted() {
|
|
36227
|
-
this.localPromoted = this.getInitialPromoted(), this.calculateInitialCutoffIndex(this.getNumericValue(this.localPromoted));
|
|
36227
|
+
this.localPromoted = this.getInitialPromoted(), this.calculateInitialCutoffIndex(this.getNumericValue(this.localPromoted)), console.log("Pool Results Mounted"), console.log(this.localPoolResults);
|
|
36228
36228
|
},
|
|
36229
36229
|
watch: {
|
|
36230
36230
|
poolResults: {
|
|
36231
36231
|
deep: !0,
|
|
36232
36232
|
handler(n) {
|
|
36233
|
-
this.localPoolResults = n;
|
|
36233
|
+
this.localPoolResults = n, console.log("watch poolResults"), console.log(n), console.log(this.localPoolResults);
|
|
36234
36234
|
}
|
|
36235
36235
|
}
|
|
36236
36236
|
},
|
|
@@ -37129,13 +37129,24 @@ const tC = /* @__PURE__ */ Ae(QN, [["render", vN]]), wN = {
|
|
|
37129
37129
|
return Object.keys(n).sort().reduce((e, t) => (e[t] = n[t], e), {});
|
|
37130
37130
|
},
|
|
37131
37131
|
filteredBouts() {
|
|
37132
|
-
return Object.keys(this.combinedBouts).
|
|
37132
|
+
return Object.keys(this.combinedBouts).sort((n, e) => {
|
|
37133
|
+
var a, l;
|
|
37134
|
+
const t = {
|
|
37135
|
+
Final: 1,
|
|
37136
|
+
"Third Place Match": 2,
|
|
37137
|
+
Semifinal: 3
|
|
37138
|
+
}, r = t[n] || 0, o = t[e] || 0;
|
|
37139
|
+
if (r || o)
|
|
37140
|
+
return r - o;
|
|
37141
|
+
const i = parseInt(((a = n.match(/\d+/)) == null ? void 0 : a[0]) || 0, 10);
|
|
37142
|
+
return parseInt(((l = e.match(/\d+/)) == null ? void 0 : l[0]) || 0, 10) - i;
|
|
37143
|
+
}).reduce((n, e) => {
|
|
37133
37144
|
const t = this.combinedBouts[e].filter(
|
|
37134
37145
|
(r) => {
|
|
37135
37146
|
var o, i;
|
|
37136
37147
|
return ((o = r.Person1) == null ? void 0 : o.DisplayName) !== "BYE" && ((i = r.Person2) == null ? void 0 : i.DisplayName) !== "BYE" && r.Status !== "Completed";
|
|
37137
37148
|
}
|
|
37138
|
-
);
|
|
37149
|
+
).sort((r, o) => r.DEBoutId - o.DEBoutId);
|
|
37139
37150
|
return t.length && (n[e] = t), n;
|
|
37140
37151
|
}, {});
|
|
37141
37152
|
}
|
|
@@ -37217,7 +37228,7 @@ function SN(n, e, t, r, o, i) {
|
|
|
37217
37228
|
]))
|
|
37218
37229
|
], 64);
|
|
37219
37230
|
}
|
|
37220
|
-
const kN = /* @__PURE__ */ Ae(wN, [["render", SN], ["__scopeId", "data-v-
|
|
37231
|
+
const kN = /* @__PURE__ */ Ae(wN, [["render", SN], ["__scopeId", "data-v-e3741ee3"]]), MN = {
|
|
37221
37232
|
components: {
|
|
37222
37233
|
ServerConnected: lc,
|
|
37223
37234
|
TableauColumn: tC,
|
|
@@ -37301,7 +37312,7 @@ const kN = /* @__PURE__ */ Ae(wN, [["render", SN], ["__scopeId", "data-v-00c786d
|
|
|
37301
37312
|
this.$emit("tab:menu-click", n);
|
|
37302
37313
|
},
|
|
37303
37314
|
handleViewChange(n) {
|
|
37304
|
-
if (n === "List View") {
|
|
37315
|
+
if (this.viewName = n, n === "List View") {
|
|
37305
37316
|
this.isListView = !0;
|
|
37306
37317
|
return;
|
|
37307
37318
|
}
|
|
@@ -37343,8 +37354,9 @@ function zN(n, e, t, r, o, i) {
|
|
|
37343
37354
|
tabs: o.tabs,
|
|
37344
37355
|
onTabMenuClick: i.handleTabMenuClick
|
|
37345
37356
|
}, null, 8, ["tabs", "onTabMenuClick"]),
|
|
37346
|
-
|
|
37357
|
+
(f(), ie(a, {
|
|
37347
37358
|
currentSelection: o.viewName,
|
|
37359
|
+
key: o.viewName,
|
|
37348
37360
|
firstButtonLabel: "List View",
|
|
37349
37361
|
secondButtonLabel: "Tableau",
|
|
37350
37362
|
showConnected: !0,
|
|
@@ -37353,7 +37365,7 @@ function zN(n, e, t, r, o, i) {
|
|
|
37353
37365
|
connectedToServer: t.connectedToServer,
|
|
37354
37366
|
"onUpdate:selection": i.handleViewChange,
|
|
37355
37367
|
"onUpdate:cardSize": i.handleCardSizeToggle
|
|
37356
|
-
}, null, 8, ["currentSelection", "largeCards", "connectedToServer", "onUpdate:selection", "onUpdate:cardSize"]),
|
|
37368
|
+
}, null, 8, ["currentSelection", "largeCards", "connectedToServer", "onUpdate:selection", "onUpdate:cardSize"])),
|
|
37357
37369
|
p(l, {
|
|
37358
37370
|
bouts: i.sortedBouts,
|
|
37359
37371
|
hostingClubColors: t.hostingClubColors,
|