@dcrackel/hematournamentui 1.0.148 → 1.0.149
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.
|
@@ -28508,9 +28508,6 @@ const xa = /* @__PURE__ */ de(FS, [["render", VS]]), YS = {
|
|
|
28508
28508
|
]
|
|
28509
28509
|
};
|
|
28510
28510
|
},
|
|
28511
|
-
created() {
|
|
28512
|
-
console.log(this.localTournament);
|
|
28513
|
-
},
|
|
28514
28511
|
computed: {
|
|
28515
28512
|
totalDays() {
|
|
28516
28513
|
const n = new Date(this.localTournament.StartDate), r = (new Date(this.localTournament.EndDate) - n) / (1e3 * 60 * 60 * 24);
|
|
@@ -28524,11 +28521,17 @@ const xa = /* @__PURE__ */ de(FS, [["render", VS]]), YS = {
|
|
|
28524
28521
|
}
|
|
28525
28522
|
},
|
|
28526
28523
|
methods: {
|
|
28524
|
+
handleTotalDays(n) {
|
|
28525
|
+
if (!isNaN(n)) {
|
|
28526
|
+
const e = new Date(this.localTournament.StartDate), t = new Date(e);
|
|
28527
|
+
t.setDate(e.getDate() + parseInt(n) - 1), this.localTournament.EndDate = t.toISOString().split("T")[0];
|
|
28528
|
+
}
|
|
28529
|
+
},
|
|
28527
28530
|
handleTabMenuClick(n) {
|
|
28528
28531
|
this.$emit("tab:menu-click", n);
|
|
28529
28532
|
},
|
|
28530
28533
|
handleAddressUpdate(n) {
|
|
28531
|
-
this.localTournament.
|
|
28534
|
+
this.localTournament.AddressId = n.AddressId, this.localTournament.Address = n;
|
|
28532
28535
|
},
|
|
28533
28536
|
handleDateUpdate(n) {
|
|
28534
28537
|
this.tournament.startDate = n;
|
|
@@ -28613,8 +28616,8 @@ function nM(n, e, t, r, i, o) {
|
|
|
28613
28616
|
locations: t.locations,
|
|
28614
28617
|
placeholder: o.tournamentAddress,
|
|
28615
28618
|
addBorder: !0,
|
|
28616
|
-
|
|
28617
|
-
}, null, 8, ["invalid", "locations", "placeholder", "
|
|
28619
|
+
onUpdateLocation: o.handleAddressUpdate
|
|
28620
|
+
}, null, 8, ["invalid", "locations", "placeholder", "onUpdateLocation"])
|
|
28618
28621
|
]),
|
|
28619
28622
|
p("div", ZS, [
|
|
28620
28623
|
I(a, {
|
|
@@ -28657,8 +28660,9 @@ function nM(n, e, t, r, i, o) {
|
|
|
28657
28660
|
}),
|
|
28658
28661
|
I(g, {
|
|
28659
28662
|
addBorder: !0,
|
|
28660
|
-
placeholder: o.totalDays
|
|
28661
|
-
|
|
28663
|
+
placeholder: o.totalDays,
|
|
28664
|
+
"onUpdate:value": o.handleTotalDays
|
|
28665
|
+
}, null, 8, ["placeholder", "onUpdate:value"])
|
|
28662
28666
|
])
|
|
28663
28667
|
]),
|
|
28664
28668
|
p("div", tM, [
|