@dcrackel/hematournamentui 1.0.201 → 1.0.203
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 +5 -3
- package/dist/HemaTournamentUI-lib.umd.js +2 -2
- package/package.json +13 -13
- package/src/mocks/tournamentMock.js +2 -2
- package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.vue +8 -0
- package/src/stories/Organisms/Grids/GridContainer.vue +1 -2
|
@@ -10829,11 +10829,10 @@ const Hv = /* @__PURE__ */ ae(Rv, [["render", Lv]]), zv = {
|
|
|
10829
10829
|
break;
|
|
10830
10830
|
case "Past":
|
|
10831
10831
|
n = n.filter((t) => new Date(t.date) < e);
|
|
10832
|
-
break;
|
|
10833
10832
|
}
|
|
10834
10833
|
switch (this.sortCriteria) {
|
|
10835
10834
|
case "Date":
|
|
10836
|
-
n = [...n].sort((t, r) => new Date(
|
|
10835
|
+
n = [...n].sort((t, r) => new Date(r.StartDate) - new Date(t.StartDate));
|
|
10837
10836
|
break;
|
|
10838
10837
|
case "Name":
|
|
10839
10838
|
n = [...n].sort((t, r) => t.Name.localeCompare(r.Name));
|
|
@@ -30700,6 +30699,9 @@ const GO = /* @__PURE__ */ ae(LO, [["render", KO]]), ZO = {
|
|
|
30700
30699
|
closeModal(n) {
|
|
30701
30700
|
this.showModal = n, this.inputValue = "";
|
|
30702
30701
|
},
|
|
30702
|
+
clearFields() {
|
|
30703
|
+
this.personName = "", this.personLegalName = "", this.personEmail = "", this.selectedPronouns = { text: "", link: "" }, this.selectedClub = { text: "", link: "" };
|
|
30704
|
+
},
|
|
30703
30705
|
handleSubmit() {
|
|
30704
30706
|
const n = {
|
|
30705
30707
|
personName: this.personName,
|
|
@@ -30708,7 +30710,7 @@ const GO = /* @__PURE__ */ ae(LO, [["render", KO]]), ZO = {
|
|
|
30708
30710
|
personPronouns: this.selectedPronouns.text,
|
|
30709
30711
|
clubId: this.selectedClub.link
|
|
30710
30712
|
};
|
|
30711
|
-
this.$emit("new-person-submitted", n), this.showModal = !1;
|
|
30713
|
+
this.$emit("new-person-submitted", n), this.showModal = !1, this.clearFields();
|
|
30712
30714
|
},
|
|
30713
30715
|
handleSelectedClub(n) {
|
|
30714
30716
|
this.selectedClub = n;
|