@dcrackel/hematournamentui 1.0.495 → 1.0.497
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 -8
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/mocks/getDEBouts-DoubleElim.js +3287 -292
- package/src/stories/Molecules/Modals/PenaltyModal/PenaltyModal.vue +2 -2
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +14 -2
- package/src/stories/Organisms/Cards/PenaltyCard/PenaltyCard.vue +1 -1
- package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +11 -1
|
@@ -35032,14 +35032,15 @@ function iL(t, e, n, r, o, i) {
|
|
|
35032
35032
|
])
|
|
35033
35033
|
]),
|
|
35034
35034
|
h("div", null, [
|
|
35035
|
-
|
|
35035
|
+
i.pastCards.length ? (C(), ne(A, {
|
|
35036
|
+
key: 0,
|
|
35036
35037
|
text: "Past Notes",
|
|
35037
35038
|
type: "h3",
|
|
35038
35039
|
size: "lg",
|
|
35039
35040
|
color: "primary",
|
|
35040
35041
|
weight: "bold",
|
|
35041
35042
|
class: "mb-2"
|
|
35042
|
-
}),
|
|
35043
|
+
})) : b("", !0),
|
|
35043
35044
|
(C(!0), m(ue, null, Ee(i.pastCards, (c) => (C(), m("div", {
|
|
35044
35045
|
key: c.PenaltyId,
|
|
35045
35046
|
class: "flex items-center justify-between bg-neutral mb-2 border shadow-md p-2 rounded-lg"
|
|
@@ -35091,10 +35092,10 @@ const sL = /* @__PURE__ */ se(Jz, [["render", iL]]), AL = {
|
|
|
35091
35092
|
this.$emit("update:closeModal", this.bout);
|
|
35092
35093
|
},
|
|
35093
35094
|
handleUpdatePenalty(t) {
|
|
35094
|
-
this.$emit("penalty:update", t);
|
|
35095
|
+
this.$emit("penalty:update", { penalty: t, fencer1: this.fencer1 });
|
|
35095
35096
|
},
|
|
35096
35097
|
handleAddPenalty(t) {
|
|
35097
|
-
this.$emit("penalty:add", t);
|
|
35098
|
+
this.$emit("penalty:add", { penalty: t, fencer1: this.fencer1 });
|
|
35098
35099
|
}
|
|
35099
35100
|
}
|
|
35100
35101
|
}, aL = { class: "flex w-full justify-end mt-1" };
|
|
@@ -35250,10 +35251,12 @@ const Vp = /* @__PURE__ */ se(AL, [["render", lL]]), cL = {
|
|
|
35250
35251
|
this.fencer1ForModal = t, this.showPenaltyModal = !0;
|
|
35251
35252
|
},
|
|
35252
35253
|
handleUpdatePenalty(t) {
|
|
35253
|
-
|
|
35254
|
+
const e = t.penalty;
|
|
35255
|
+
t.fencer1 ? this.bout.Person1.EventPersons[0].LastNote = e.Notes : this.bout.Person2.EventPersons[0].LastNote = e.Notes, this.$emit("penalty:update", e);
|
|
35254
35256
|
},
|
|
35255
35257
|
handleAddPenalty(t) {
|
|
35256
|
-
|
|
35258
|
+
const e = t.penalty;
|
|
35259
|
+
t.fencer1 ? this.bout.Person1.EventPersons[0].LastNote = e.Notes : this.bout.Person2.EventPersons[0].LastNote = e.Notes, this.$emit("penalty:add", e);
|
|
35257
35260
|
}
|
|
35258
35261
|
}
|
|
35259
35262
|
}, uL = { class: "w-11/12 mt-5 mx-6" };
|
|
@@ -38141,6 +38144,12 @@ const tH = /* @__PURE__ */ se(WN, [["render", eH], ["__scopeId", "data-v-8f60aeb
|
|
|
38141
38144
|
},
|
|
38142
38145
|
updateViewBasedOnScreenSize() {
|
|
38143
38146
|
this.isListView = window.innerWidth <= 768;
|
|
38147
|
+
},
|
|
38148
|
+
handleUpdatePenalty(t) {
|
|
38149
|
+
this.$emit("penalty:update", t);
|
|
38150
|
+
},
|
|
38151
|
+
handleAddPenalty(t) {
|
|
38152
|
+
this.$emit("penalty:add", t);
|
|
38144
38153
|
}
|
|
38145
38154
|
}
|
|
38146
38155
|
}, rH = {
|
|
@@ -38173,9 +38182,11 @@ function sH(t, e, n, r, o, i) {
|
|
|
38173
38182
|
bracketSize: i.bracketSize,
|
|
38174
38183
|
largeCards: o.largeCards,
|
|
38175
38184
|
listView: o.isListView,
|
|
38185
|
+
"onPenalty:add": i.handleUpdatePenalty,
|
|
38186
|
+
"onPenalty:update": i.handleAddPenalty,
|
|
38176
38187
|
"onAction:editBout": i.editBout,
|
|
38177
38188
|
"onAction:directingBout": i.directBout
|
|
38178
|
-
}, null, 8, ["bouts", "hostingClubColors", "bracketSize", "largeCards", "listView", "onAction:editBout", "onAction:directingBout"]),
|
|
38189
|
+
}, null, 8, ["bouts", "hostingClubColors", "bracketSize", "largeCards", "listView", "onPenalty:add", "onPenalty:update", "onAction:editBout", "onAction:directingBout"]),
|
|
38179
38190
|
n.bouts.length < 1 ? (C(), m("div", rH, [
|
|
38180
38191
|
h("div", oH, [
|
|
38181
38192
|
h("img", {
|
|
@@ -38210,10 +38221,12 @@ function sH(t, e, n, r, o, i) {
|
|
|
38210
38221
|
hostingClubColors: n.hostingClubColors,
|
|
38211
38222
|
show: o.showDirectorModal,
|
|
38212
38223
|
ringName: "RingName",
|
|
38224
|
+
"onPenalty:add": i.handleUpdatePenalty,
|
|
38225
|
+
"onPenalty:update": i.handleAddPenalty,
|
|
38213
38226
|
"onUpdate:closeModal": i.handleCloseModal,
|
|
38214
38227
|
"onUpdate:bout": i.handleUpdateBout,
|
|
38215
38228
|
"onSubmit:bout": i.handleSubmitBout
|
|
38216
|
-
}, null, 8, ["bout", "eventRules", "hostingClubColors", "show", "onUpdate:closeModal", "onUpdate:bout", "onSubmit:bout"]),
|
|
38229
|
+
}, null, 8, ["bout", "eventRules", "hostingClubColors", "show", "onPenalty:add", "onPenalty:update", "onUpdate:closeModal", "onUpdate:bout", "onSubmit:bout"]),
|
|
38217
38230
|
p(d, {
|
|
38218
38231
|
bout: o.selectedBout,
|
|
38219
38232
|
eventRules: n.eventRules,
|