@dcrackel/hematournamentui 1.0.458 → 1.0.461
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 +37 -22
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/stories/Organisms/Headers/PoolResultsHeader/PoolResultsHeader.stories.js +23 -11
- package/src/stories/Organisms/Headers/PoolResultsHeader/PoolResultsHeader.vue +18 -10
- package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +26 -14
|
@@ -35189,8 +35189,16 @@ const Eq = /* @__PURE__ */ ie(IF, [["render", OF]]), TF = {
|
|
|
35189
35189
|
name: "PoolResultsHeader",
|
|
35190
35190
|
components: { BaseIcon: Je, BaseButton: je, BaseText: we, CounterBox: Ps, EventStatusBox: CA },
|
|
35191
35191
|
props: {
|
|
35192
|
-
|
|
35193
|
-
type:
|
|
35192
|
+
eventName: {
|
|
35193
|
+
type: String,
|
|
35194
|
+
required: !0
|
|
35195
|
+
},
|
|
35196
|
+
ruleSummary: {
|
|
35197
|
+
type: String,
|
|
35198
|
+
required: !0
|
|
35199
|
+
},
|
|
35200
|
+
status: {
|
|
35201
|
+
type: String,
|
|
35194
35202
|
required: !0
|
|
35195
35203
|
},
|
|
35196
35204
|
promotedBy: {
|
|
@@ -35209,7 +35217,7 @@ const Eq = /* @__PURE__ */ ie(IF, [["render", OF]]), TF = {
|
|
|
35209
35217
|
},
|
|
35210
35218
|
computed: {
|
|
35211
35219
|
mode() {
|
|
35212
|
-
return this.
|
|
35220
|
+
return this.status;
|
|
35213
35221
|
},
|
|
35214
35222
|
promotedLabel() {
|
|
35215
35223
|
return this.promotedBy === "Top" ? "Promoting Top in Each Pool" : "Promoted";
|
|
@@ -35223,13 +35231,13 @@ const Eq = /* @__PURE__ */ ie(IF, [["render", OF]]), TF = {
|
|
|
35223
35231
|
},
|
|
35224
35232
|
methods: {
|
|
35225
35233
|
handleIncreaseCount(n) {
|
|
35226
|
-
this.
|
|
35234
|
+
this.status === "results" && this.$emit("update:handleIncreaseCount", n);
|
|
35227
35235
|
},
|
|
35228
35236
|
handleDecreaseCount(n) {
|
|
35229
|
-
this.
|
|
35237
|
+
this.status === "results" && this.$emit("update:handleDecreaseCount", n);
|
|
35230
35238
|
},
|
|
35231
35239
|
handleChange(n) {
|
|
35232
|
-
this.
|
|
35240
|
+
this.status === "results" && this.$emit("update:handleChange", n);
|
|
35233
35241
|
}
|
|
35234
35242
|
}
|
|
35235
35243
|
}, RF = { class: "bg-poolSetup px-4 rounded-xl flex justify-between items-center shadow border border-dropdownSelect" }, PF = { class: "flex flex-col w-1/3 mt-2" }, zF = /* @__PURE__ */ h("span", { class: "h-8" }, null, -1), FF = { class: "flex rounded-xl border border-dropdownSelect my-2 px-4 pt-2 pb-4 bg-neutral w-2/3 shadow" }, LF = { class: "mt-1 w-10 mr-3" }, HF = {
|
|
@@ -35244,14 +35252,14 @@ function VF(n, e, t, r, o, i) {
|
|
|
35244
35252
|
return f(), m("div", RF, [
|
|
35245
35253
|
h("section", PF, [
|
|
35246
35254
|
p(A, {
|
|
35247
|
-
text: t.
|
|
35255
|
+
text: t.eventName,
|
|
35248
35256
|
size: "lg",
|
|
35249
35257
|
color: "quaternary",
|
|
35250
35258
|
weight: "bold",
|
|
35251
35259
|
class: "pt-4"
|
|
35252
35260
|
}, null, 8, ["text"]),
|
|
35253
35261
|
p(A, {
|
|
35254
|
-
text: t.
|
|
35262
|
+
text: t.ruleSummary,
|
|
35255
35263
|
size: "md",
|
|
35256
35264
|
color: "quinary",
|
|
35257
35265
|
weight: "normal"
|
|
@@ -35267,7 +35275,7 @@ function VF(n, e, t, r, o, i) {
|
|
|
35267
35275
|
class: ""
|
|
35268
35276
|
})
|
|
35269
35277
|
]),
|
|
35270
|
-
t.
|
|
35278
|
+
t.status === "live" || t.status === "results" || t.status === "de" || t.status === "completed" ? (f(), m("div", HF, [
|
|
35271
35279
|
p(A, {
|
|
35272
35280
|
text: "Pool Standings and Results",
|
|
35273
35281
|
size: "lg",
|
|
@@ -35348,7 +35356,7 @@ function VF(n, e, t, r, o, i) {
|
|
|
35348
35356
|
])
|
|
35349
35357
|
])
|
|
35350
35358
|
])) : x("", !0),
|
|
35351
|
-
t.
|
|
35359
|
+
t.status === "planning" || t.status === "preparation" || t.status === "live" ? (f(), m("div", GF, [
|
|
35352
35360
|
p(A, {
|
|
35353
35361
|
text: "Pool Results Pending",
|
|
35354
35362
|
size: "md",
|
|
@@ -35921,7 +35929,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35921
35929
|
};
|
|
35922
35930
|
},
|
|
35923
35931
|
mounted() {
|
|
35924
|
-
this.calculateInitialCutoffIndex(this.getNumericValue(this.localPromoted));
|
|
35932
|
+
this.localPromoted = this.getInitialPromoted(), this.calculateInitialCutoffIndex(this.getNumericValue(this.localPromoted));
|
|
35925
35933
|
},
|
|
35926
35934
|
watch: {
|
|
35927
35935
|
poolResults: {
|
|
@@ -35929,15 +35937,21 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35929
35937
|
handler(n) {
|
|
35930
35938
|
this.localPoolResults = n;
|
|
35931
35939
|
}
|
|
35932
|
-
},
|
|
35933
|
-
event: {
|
|
35934
|
-
deep: !0,
|
|
35935
|
-
handler() {
|
|
35936
|
-
this.localPromoted = this.getInitialPromoted(), this.calculateInitialCutoffIndex(this.getNumericValue(this.localPromoted));
|
|
35937
|
-
}
|
|
35938
35940
|
}
|
|
35939
35941
|
},
|
|
35940
35942
|
computed: {
|
|
35943
|
+
eventName() {
|
|
35944
|
+
var n, e;
|
|
35945
|
+
return ((n = this.event) == null ? void 0 : n.EventName) || ((e = this.event) == null ? void 0 : e.eventName) || "";
|
|
35946
|
+
},
|
|
35947
|
+
ruleSummary() {
|
|
35948
|
+
var n, e;
|
|
35949
|
+
return ((n = this.event) == null ? void 0 : n.RuleSummary) || ((e = this.event) == null ? void 0 : e.ruleSummary) || "";
|
|
35950
|
+
},
|
|
35951
|
+
eventStatus() {
|
|
35952
|
+
var n, e;
|
|
35953
|
+
return ((n = this.event) == null ? void 0 : n.Status) || ((e = this.event) == null ? void 0 : e.status) || "";
|
|
35954
|
+
},
|
|
35941
35955
|
rules() {
|
|
35942
35956
|
var n, e;
|
|
35943
35957
|
return ((n = this.event) == null ? void 0 : n.EventRules) || ((e = this.event) == null ? void 0 : e.eventRules) || [];
|
|
@@ -35962,7 +35976,6 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35962
35976
|
this.$emit("tab:menu-click", n);
|
|
35963
35977
|
},
|
|
35964
35978
|
handleIncreaseCount(n) {
|
|
35965
|
-
console.log("handleIncreaseCount", n);
|
|
35966
35979
|
let e = this.getNumericValue(n);
|
|
35967
35980
|
if (this.getPromotedByRule() === "Top") {
|
|
35968
35981
|
const t = this.rules.find((r) => r.Rules.RuleName === "DENumOfPromotion");
|
|
@@ -35973,7 +35986,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35973
35986
|
this.initialCutoffIndex = 500;
|
|
35974
35987
|
return;
|
|
35975
35988
|
}
|
|
35976
|
-
|
|
35989
|
+
e + 10 <= 100 ? this.calculateInitialCutoffIndex(e + 10) : this.calculateInitialCutoffIndex(100);
|
|
35977
35990
|
},
|
|
35978
35991
|
handleDecreaseCount(n) {
|
|
35979
35992
|
if (this.getPromotedByRule() === "Top") {
|
|
@@ -35982,7 +35995,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35982
35995
|
return;
|
|
35983
35996
|
}
|
|
35984
35997
|
let e = this.getNumericValue(n);
|
|
35985
|
-
this.calculateInitialCutoffIndex(e - 10);
|
|
35998
|
+
e - 10 >= 10 ? this.calculateInitialCutoffIndex(e - 10) : this.calculateInitialCutoffIndex(10);
|
|
35986
35999
|
},
|
|
35987
36000
|
handleChange(n) {
|
|
35988
36001
|
if (this.getPromotedByRule() === "Percent") {
|
|
@@ -36053,13 +36066,15 @@ function PL(n, e, t, r, o, i) {
|
|
|
36053
36066
|
onTabMenuClick: i.handleTabMenuClick
|
|
36054
36067
|
}, null, 8, ["tabs", "onTabMenuClick"]),
|
|
36055
36068
|
p(a, {
|
|
36056
|
-
|
|
36069
|
+
eventName: i.eventName,
|
|
36070
|
+
ruleSummary: i.ruleSummary,
|
|
36071
|
+
status: i.eventStatus,
|
|
36057
36072
|
numPromoted: o.localPromoted,
|
|
36058
36073
|
promotedBy: i.getPromotedByRule(),
|
|
36059
36074
|
"onUpdate:handleChange": i.handleChange,
|
|
36060
36075
|
"onUpdate:handleIncreaseCount": i.handleIncreaseCount,
|
|
36061
36076
|
"onUpdate:handleDecreaseCount": i.handleDecreaseCount
|
|
36062
|
-
}, null, 8, ["
|
|
36077
|
+
}, null, 8, ["eventName", "ruleSummary", "status", "numPromoted", "promotedBy", "onUpdate:handleChange", "onUpdate:handleIncreaseCount", "onUpdate:handleDecreaseCount"]),
|
|
36063
36078
|
p(l, {
|
|
36064
36079
|
poolResults: o.localPoolResults,
|
|
36065
36080
|
initialCutoffIndex: o.initialCutoffIndex,
|