@dcrackel/hematournamentui 1.0.571 → 1.0.572
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 +10 -8
- package/dist/HemaTournamentUI-lib.umd.js +2 -2
- package/package.json +1 -1
- package/src/mocks/locationMock.js +3213 -42
- package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +1 -1
- package/src/stories/Templates/TournamentManagement/TournamentManagement.vue +10 -7
|
@@ -29981,7 +29981,7 @@ const mO = /* @__PURE__ */ oe(cO, [["render", CO]]), pO = {
|
|
|
29981
29981
|
class: "relative"
|
|
29982
29982
|
}, BO = {
|
|
29983
29983
|
key: 0,
|
|
29984
|
-
class: "absolute z-10 w-full bg-white border rounded-md mt-1"
|
|
29984
|
+
class: "absolute z-10 w-full bg-white border rounded-md mt-1 max-h-60 overflow-y-auto"
|
|
29985
29985
|
}, EO = ["onClick"], QO = { key: 1 };
|
|
29986
29986
|
function vO(n, e, t, r, o, i) {
|
|
29987
29987
|
const A = y("BaseInput"), a = y("base-button"), l = y("AddressAutocomplete"), c = y("BaseModal");
|
|
@@ -30603,6 +30603,7 @@ const AT = {
|
|
|
30603
30603
|
BaseText: Be,
|
|
30604
30604
|
TournamentPageOne: PO
|
|
30605
30605
|
},
|
|
30606
|
+
emits: ["submit:tournament", "cancel", "add:newAddress", "update:address", "update:image", "tab:menu-click"],
|
|
30606
30607
|
props: {
|
|
30607
30608
|
tournament: {
|
|
30608
30609
|
type: Object,
|
|
@@ -30687,14 +30688,15 @@ const AT = {
|
|
|
30687
30688
|
if (n && Object.keys(n).length > 0) {
|
|
30688
30689
|
const t = new Date(n.StartDate), r = new Date(n.EndDate), o = !isNaN(t.getTime()) && !isNaN(r.getTime()) ? Math.max(1, (r - t) / (1e3 * 60 * 60 * 24) + 1) : 1;
|
|
30689
30690
|
this.localTournament = { ...n, TotalDays: o };
|
|
30690
|
-
|
|
30691
|
-
|
|
30691
|
+
return;
|
|
30692
|
+
}
|
|
30693
|
+
this.localTournament = { ...e };
|
|
30692
30694
|
},
|
|
30693
30695
|
handleAddNewAddress(n) {
|
|
30694
|
-
this.localTournament.
|
|
30696
|
+
this.localTournament.AddressId = 0, this.localTournament.Address = n, this.$emit("add:newAddress", n);
|
|
30695
30697
|
},
|
|
30696
30698
|
handleAddressUpdate(n) {
|
|
30697
|
-
n && (this.localTournament.
|
|
30699
|
+
n && (this.localTournament.AddressId = n.AddressId, this.localTournament.Address = n, this.$emit("update:address", n), this.validation.Address = Ca("Address", n)), n || (this.localTournament.AddressId = 0, this.localTournament.Address = "");
|
|
30698
30700
|
},
|
|
30699
30701
|
validateAllFields() {
|
|
30700
30702
|
return this.localTournament.TotalDays || (this.localTournament.TotalDays = 1), ["Name", "TotalDays", "Address"].forEach((e) => {
|
|
@@ -30710,7 +30712,7 @@ const AT = {
|
|
|
30710
30712
|
});
|
|
30711
30713
|
},
|
|
30712
30714
|
handleCancel() {
|
|
30713
|
-
this.$emit("cancel");
|
|
30715
|
+
this.$emit("edit:cancel");
|
|
30714
30716
|
},
|
|
30715
30717
|
handleBack() {
|
|
30716
30718
|
this.currentTab === "Hosting" && (this.currentTab = "Basic");
|
|
@@ -30719,10 +30721,10 @@ const AT = {
|
|
|
30719
30721
|
this.validateAllFields() && this.currentTab === "Basic" && (this.currentTab = "Hosting");
|
|
30720
30722
|
},
|
|
30721
30723
|
handleSubmit() {
|
|
30722
|
-
this.validateAllFields() && this.$emit("submit:tournament", this.localTournament);
|
|
30724
|
+
this.validateAllFields() && (console.log(this.localTournament), this.$emit("submit:tournament", this.localTournament));
|
|
30723
30725
|
}
|
|
30724
30726
|
}
|
|
30725
|
-
}, aT = { class: "
|
|
30727
|
+
}, aT = { class: "bg-neutral w-full" }, lT = { class: "flex flex-row justify-center h-12 mt-4" };
|
|
30726
30728
|
function cT(n, e, t, r, o, i) {
|
|
30727
30729
|
const A = y("EditEventsTopMenu"), a = y("TournamentPageOne"), l = y("TournamentPageTwo"), c = y("BaseButton");
|
|
30728
30730
|
return C(), I("div", aT, [
|