@dcrackel/hematournamentui 1.0.451 → 1.0.454
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 +21 -15
- package/dist/HemaTournamentUI-lib.umd.js +2 -2
- package/package.json +1 -1
- package/src/mocks/eventpersonGetEventById.js +864 -209
- package/src/mocks/getDEBouts-42Fencers.js +3743 -0
- package/src/mocks/getPoolResults.js +803 -172
- package/src/mocks/singleEventMock.js +44 -29
- package/src/stories/Organisms/Cards/EditBout/EditBout.vue +0 -2
- package/src/stories/Organisms/Cards/FencerCard/FencerCard.vue +5 -5
- package/src/stories/Organisms/Cards/FencerPoolResultsCard/FencerPoolResultsCard.vue +1 -1
- package/src/stories/Organisms/Headers/PoolResultsHeader/PoolResultsHeader.vue +15 -1
- package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.vue +0 -2
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +5 -0
- package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +11 -0
- package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +0 -3
- package/src/stories/Templates/EventManagement/PoolResults/PoolResults.stories.js +0 -3
- package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +4 -10
|
@@ -10108,7 +10108,7 @@ const ov = /* @__PURE__ */ ie(FQ, [["render", rv]]), iv = {
|
|
|
10108
10108
|
DEPromotionTypes() {
|
|
10109
10109
|
var t;
|
|
10110
10110
|
const n = (t = this.eventConfig) == null ? void 0 : t.DEPromoteBy;
|
|
10111
|
-
return
|
|
10111
|
+
return (Array.isArray(n) ? n : (n == null ? void 0 : n.split(",")) || []).map((r) => ({
|
|
10112
10112
|
text: r.trim(),
|
|
10113
10113
|
link: r.trim()
|
|
10114
10114
|
}));
|
|
@@ -10400,7 +10400,7 @@ const mv = /* @__PURE__ */ ie(iv, [["render", fv]]), Bv = {
|
|
|
10400
10400
|
},
|
|
10401
10401
|
handleValueChange(n) {
|
|
10402
10402
|
const [e, t] = Object.entries(n)[0];
|
|
10403
|
-
this.localEvent[e] = t;
|
|
10403
|
+
e in this.eventConfig && (this.eventConfig[e] = t), this.localEvent[e] = t;
|
|
10404
10404
|
},
|
|
10405
10405
|
handleDEPromotionType(n) {
|
|
10406
10406
|
n.text === "Top Percent" && (this.eventConfig.DEPromoteBy = "Percent"), n.text === "Top Count" && (this.eventConfig.DEPromoteBy = "Count"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromoteBy = "Top");
|
|
@@ -31704,7 +31704,7 @@ function q4(n, e, t, r, o, i) {
|
|
|
31704
31704
|
h("span", R4, [
|
|
31705
31705
|
p(a, {
|
|
31706
31706
|
text: t.person.Person.DisplayName,
|
|
31707
|
-
size: "",
|
|
31707
|
+
size: "md",
|
|
31708
31708
|
color: "quaternary",
|
|
31709
31709
|
weight: "bold",
|
|
31710
31710
|
class: "text-sm md:text-xl"
|
|
@@ -31730,14 +31730,14 @@ function q4(n, e, t, r, o, i) {
|
|
|
31730
31730
|
h("div", F4, [
|
|
31731
31731
|
p(a, {
|
|
31732
31732
|
text: "M²: ",
|
|
31733
|
-
size: "",
|
|
31733
|
+
size: "md",
|
|
31734
31734
|
color: "quaternary",
|
|
31735
31735
|
weight: "normal",
|
|
31736
31736
|
class: "text-xs md:text-sm mr-1"
|
|
31737
31737
|
}),
|
|
31738
31738
|
p(a, {
|
|
31739
31739
|
text: i.M2Rating,
|
|
31740
|
-
size: "",
|
|
31740
|
+
size: "md",
|
|
31741
31741
|
color: "quinary",
|
|
31742
31742
|
weight: "bold",
|
|
31743
31743
|
class: "text-xs md:text-sm"
|
|
@@ -31746,14 +31746,14 @@ function q4(n, e, t, r, o, i) {
|
|
|
31746
31746
|
h("div", L4, [
|
|
31747
31747
|
p(a, {
|
|
31748
31748
|
text: "HR: ",
|
|
31749
|
-
size: "",
|
|
31749
|
+
size: "md",
|
|
31750
31750
|
color: "quaternary",
|
|
31751
31751
|
weight: "normal",
|
|
31752
31752
|
class: "text-xs md:text-sm r-1"
|
|
31753
31753
|
}),
|
|
31754
31754
|
p(a, {
|
|
31755
31755
|
text: i.HEMARating,
|
|
31756
|
-
size: "",
|
|
31756
|
+
size: "md",
|
|
31757
31757
|
color: "quinary",
|
|
31758
31758
|
weight: "bold",
|
|
31759
31759
|
class: "text-xs md:text-sm"
|
|
@@ -34467,7 +34467,7 @@ const Vp = /* @__PURE__ */ ie(yz, [["render", xz]]), Dz = {
|
|
|
34467
34467
|
return n ? ((e = this.hostingClubColors.Color1) == null ? void 0 : e.toLowerCase()) || "red" : ((t = this.hostingClubColors.Color2) == null ? void 0 : t.toLowerCase()) || "blue";
|
|
34468
34468
|
},
|
|
34469
34469
|
submitBout() {
|
|
34470
|
-
|
|
34470
|
+
this.makeActive && (this.localBout.Status = "Active"), this.$emit("submit:bout", this.localBout);
|
|
34471
34471
|
}
|
|
34472
34472
|
}
|
|
34473
34473
|
}, Sz = { class: "-m-6 mb-4 ml-4" }, kz = { class: "flex items-center justify-between rounded-lg m-4" }, Mz = { class: "flex justify-between shadow-lg drop-shadow p-2 rounded-xl bg-poolBox w-1/2 mr-4" }, Oz = { class: "flex space-x-4 items-center" }, Tz = ["src"], Rz = { class: "flex w-1/4 justify-between" }, Pz = { class: "flex justify-between shadow-lg drop-shadow p-2 rounded-xl bg-poolBox w-1/2 ml-4" }, zz = { class: "flex space-x-4 justify-between w-full" }, Fz = { class: "flex w-1/4 justify-between" }, Lz = { class: "flex space-x-4 items-center" }, Hz = ["src"], Nz = { class: "w-full flex justify-center mt-5" }, Yz = { class: "w-1/2" };
|
|
@@ -35186,6 +35186,11 @@ const Eq = /* @__PURE__ */ ie(IF, [["render", OF]]), TF = {
|
|
|
35186
35186
|
required: !0
|
|
35187
35187
|
}
|
|
35188
35188
|
},
|
|
35189
|
+
data() {
|
|
35190
|
+
return {
|
|
35191
|
+
isPercent: !0
|
|
35192
|
+
};
|
|
35193
|
+
},
|
|
35189
35194
|
computed: {
|
|
35190
35195
|
mode() {
|
|
35191
35196
|
return this.event.Status;
|
|
@@ -35195,9 +35200,9 @@ const Eq = /* @__PURE__ */ ie(IF, [["render", OF]]), TF = {
|
|
|
35195
35200
|
},
|
|
35196
35201
|
promoted() {
|
|
35197
35202
|
if (this.promotedBy === "Percent")
|
|
35198
|
-
return parseInt(String(this.numPromoted).replace("%", ""), 10);
|
|
35203
|
+
return this.isPercent = !0, parseInt(String(this.numPromoted).replace("%", ""), 10);
|
|
35199
35204
|
if (this.promotedBy === "Count" || this.promotedBy === "Top")
|
|
35200
|
-
return parseInt(this.numPromoted, 10);
|
|
35205
|
+
return this.isPercent = !1, parseInt(this.numPromoted, 10);
|
|
35201
35206
|
}
|
|
35202
35207
|
},
|
|
35203
35208
|
methods: {
|
|
@@ -35343,9 +35348,10 @@ function VF(n, e, t, r, o, i) {
|
|
|
35343
35348
|
centerInput: !0,
|
|
35344
35349
|
directInput: !0,
|
|
35345
35350
|
disable: i.mode !== "results",
|
|
35351
|
+
isPercent: o.isPercent,
|
|
35346
35352
|
"onUpdate:increaseCount": i.handleIncreaseCount,
|
|
35347
35353
|
"onUpdate:decreaseCount": i.handleDecreaseCount
|
|
35348
|
-
}, null, 8, ["count", "label", "disable", "onUpdate:increaseCount", "onUpdate:decreaseCount"])
|
|
35354
|
+
}, null, 8, ["count", "label", "disable", "isPercent", "onUpdate:increaseCount", "onUpdate:decreaseCount"])
|
|
35349
35355
|
])
|
|
35350
35356
|
]);
|
|
35351
35357
|
}
|
|
@@ -35379,7 +35385,7 @@ const WF = /* @__PURE__ */ ie(TF, [["render", VF]]), XF = {
|
|
|
35379
35385
|
return this.person.Image ? this.person.Image : "";
|
|
35380
35386
|
},
|
|
35381
35387
|
fencingMovable() {
|
|
35382
|
-
return this.status === "results" && this.promotedBy
|
|
35388
|
+
return this.status === "results" && this.promotedBy === "Top";
|
|
35383
35389
|
}
|
|
35384
35390
|
},
|
|
35385
35391
|
methods: {
|
|
@@ -35937,7 +35943,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35937
35943
|
let e = this.getNumericValue(n);
|
|
35938
35944
|
if (this.promotedByRule === "Top") {
|
|
35939
35945
|
const t = this.rules.find((r) => r.Rules.RuleName === "DENumOfPromotion");
|
|
35940
|
-
t && (t.RuleValue--,
|
|
35946
|
+
t && (t.RuleValue--, this.updatePromotions());
|
|
35941
35947
|
return;
|
|
35942
35948
|
}
|
|
35943
35949
|
this.poolResults.filter((t) => t.Promoted).length < 5 || this.calculateInitialCutoffIndex(e - 10);
|
|
@@ -35959,7 +35965,7 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
|
|
|
35959
35965
|
const e = this.groupFencersByPool(this.poolResults);
|
|
35960
35966
|
Object.entries(e).forEach(([t, r]) => {
|
|
35961
35967
|
this.sortFencersByCriteria(r), this.markTopFencers(r, n);
|
|
35962
|
-
})
|
|
35968
|
+
});
|
|
35963
35969
|
},
|
|
35964
35970
|
groupFencersByPool(n) {
|
|
35965
35971
|
return n.reduce((e, t) => {
|
|
@@ -36901,7 +36907,7 @@ const cH = /* @__PURE__ */ ie(iH, [["render", lH], ["__scopeId", "data-v-755be0f
|
|
|
36901
36907
|
handleSubmitBout(n) {
|
|
36902
36908
|
this.showEditBoutModal = !1, this.showDirectorModal = !1;
|
|
36903
36909
|
let e = this.activeBouts.find((t) => t.BoutId === n.BoutId) || { ...n, score1: n.score1 ?? 0, score2: n.score2 ?? 0 };
|
|
36904
|
-
e.score1 = n.score1 ?? e.score1, e.score2 = n.score2 ?? e.score2, Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(),
|
|
36910
|
+
e.score1 = n.score1 ?? e.score1, e.score2 = n.score2 ?? e.score2, Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), this.$emit("submit:bout", e);
|
|
36905
36911
|
},
|
|
36906
36912
|
directBout(n) {
|
|
36907
36913
|
n.Person1.PersonId === 0 || n.Person2.PersonId === 0 || (n.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n, this.$emit("update:directing-bout", n));
|