@dcrackel/hematournamentui 1.0.271 → 1.0.274

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.
@@ -11175,6 +11175,9 @@ const Dw = /* @__PURE__ */ ie(yw, [["render", xw]]), kw = {
11175
11175
  };
11176
11176
  },
11177
11177
  methods: {
11178
+ addNewAddress(n) {
11179
+ console.log("-------------------"), console.log(n), this.$emit("add-new-address", n);
11180
+ },
11178
11181
  getAddressData(n) {
11179
11182
  const e = `${n.street_number} ${n.route}`, t = n.locality, r = n.administrative_area_level_1;
11180
11183
  this.address = `${e}, ${t}, ${r}`, this.coordinates = `${n.latitude},${n.longitude}`;
@@ -11195,8 +11198,9 @@ function Sw(n, e, t, r, i, o) {
11195
11198
  modelValue: i.address,
11196
11199
  "onUpdate:modelValue": e[0] || (e[0] = (s) => i.address = s),
11197
11200
  placeholder: "Venue Address",
11201
+ "onUpdate:AddNewAddress": o.addNewAddress,
11198
11202
  onPlacechanged: o.getAddressData
11199
- }, null, 8, ["class", "modelValue", "onPlacechanged"]);
11203
+ }, null, 8, ["class", "modelValue", "onUpdate:AddNewAddress", "onPlacechanged"]);
11200
11204
  }
11201
11205
  const hs = /* @__PURE__ */ ie(kw, [["render", Sw]]), Mw = {
11202
11206
  name: "TournamentCard",
@@ -13350,11 +13354,11 @@ const mu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
13350
13354
  },
13351
13355
  uploadServer: {
13352
13356
  type: String,
13353
- default: "http://localhost/api/upload/"
13357
+ default: "http://localhost:3000/api/upload/"
13354
13358
  },
13355
13359
  imageServer: {
13356
13360
  type: String,
13357
- default: "http://localhost/uploads/"
13361
+ default: "http://localhost:3000/uploads/"
13358
13362
  }
13359
13363
  },
13360
13364
  components: {
@@ -29419,11 +29423,11 @@ const QT = /* @__PURE__ */ ie(pT, [["render", BT]]), vT = {
29419
29423
  handleLocationName(n) {
29420
29424
  this.formData.locationName = n;
29421
29425
  },
29422
- handleAddressUpdate(n) {
29426
+ handleNewAddress(n) {
29423
29427
  this.formData.address = n.address, this.formData.coordinates = n.coordinates;
29424
29428
  },
29425
29429
  handleSubmit() {
29426
- this.$emit("update-location", this.formData), this.showNewLocation = !1;
29430
+ this.$emit("submit:location", this.formData), this.showNewLocation = !1;
29427
29431
  }
29428
29432
  }
29429
29433
  }, wT = {
@@ -29487,7 +29491,7 @@ function DT(n, e, t, r, i, o) {
29487
29491
  "onUpdate:modelValue": e[2] || (e[2] = (c) => i.formData.address = c),
29488
29492
  invalid: i.validAddress,
29489
29493
  class: "text-lg",
29490
- "onUpdate:address": o.handleAddressUpdate
29494
+ "onUpdate:address": o.handleNewAddress
29491
29495
  }, null, 8, ["modelValue", "invalid", "onUpdate:address"])
29492
29496
  ]),
29493
29497
  _: 1
@@ -29920,11 +29924,11 @@ const Qc = /* @__PURE__ */ ie(NT, [["render", qT]]), zT = {
29920
29924
  },
29921
29925
  uploadServer: {
29922
29926
  type: String,
29923
- default: "http://localhost/uploads/"
29927
+ default: "http://localhost:3000/uploads/"
29924
29928
  },
29925
29929
  imageServer: {
29926
29930
  type: String,
29927
- default: "http://localhost/uploads/"
29931
+ default: "http://localhost:3000/uploads/"
29928
29932
  }
29929
29933
  },
29930
29934
  data() {
@@ -29969,6 +29973,9 @@ const Qc = /* @__PURE__ */ ie(NT, [["render", qT]]), zT = {
29969
29973
  this.validation[e] = n;
29970
29974
  });
29971
29975
  },
29976
+ handleAddNewAddress(n) {
29977
+ this.tournament.AddressId = 0, this.tournament.Address = n;
29978
+ },
29972
29979
  handleAddressUpdate(n) {
29973
29980
  this.tournament.addressId = n.AddressId;
29974
29981
  },
@@ -30048,8 +30055,9 @@ function nO(n, e, t, r, i, o) {
30048
30055
  addBorder: !0,
30049
30056
  locations: t.locations,
30050
30057
  addNewText: "Add New",
30051
- onUpdateLocation: o.handleAddressUpdate
30052
- }, null, 8, ["locations", "onUpdateLocation"])
30058
+ "onUpdate:addNewAddress": o.handleAddNewAddress,
30059
+ "onUpdate:location": o.handleAddressUpdate
30060
+ }, null, 8, ["locations", "onUpdate:addNewAddress", "onUpdate:location"])
30053
30061
  ]),
30054
30062
  h("div", XT, [
30055
30063
  h("div", _T, [
@@ -30405,11 +30413,11 @@ const Qn = /* @__PURE__ */ ie(BO, [["render", vO]]), wO = {
30405
30413
  },
30406
30414
  uploadServer: {
30407
30415
  type: String,
30408
- default: "http://localhost/uploads/"
30416
+ default: "http://localhost:3000/uploads/"
30409
30417
  },
30410
30418
  imageServer: {
30411
30419
  type: String,
30412
- default: "http://localhost/uploads/"
30420
+ default: "http://localhost:3000/uploads/"
30413
30421
  }
30414
30422
  },
30415
30423
  emits: ["tab:menu-click", "manageEvent", "editEvent", "addEvent", "image:upload"],
@@ -30451,6 +30459,9 @@ const Qn = /* @__PURE__ */ ie(BO, [["render", vO]]), wO = {
30451
30459
  }
30452
30460
  },
30453
30461
  methods: {
30462
+ handleNewAddress(n) {
30463
+ console.log("-------------------"), console.log(n), this.$emit("add-new-address", n);
30464
+ },
30454
30465
  handleTotalDays(n) {
30455
30466
  if (!isNaN(n)) {
30456
30467
  const e = new Date(this.localTournament.StartDate), t = new Date(e);
@@ -30461,7 +30472,7 @@ const Qn = /* @__PURE__ */ ie(BO, [["render", vO]]), wO = {
30461
30472
  this.$emit("tab:menu-click", n);
30462
30473
  },
30463
30474
  handleAddressUpdate(n) {
30464
- this.localTournament.AddressId = n.AddressId, this.localTournament.Address = n;
30475
+ this.localTournament.AddressId = 0, this.localTournament.Address = n;
30465
30476
  },
30466
30477
  handleDateUpdate(n) {
30467
30478
  this.tournament.startDate = n;
@@ -30552,8 +30563,9 @@ function qO(n, e, t, r, i, o) {
30552
30563
  locations: t.locations,
30553
30564
  placeholder: o.tournamentAddress,
30554
30565
  addBorder: !0,
30555
- onUpdateLocation: o.handleAddressUpdate
30556
- }, null, 8, ["invalid", "locations", "placeholder", "onUpdateLocation"])
30566
+ "onUpdate:addNewAddress": o.handleNewAddress,
30567
+ "onSubmit:location": o.handleAddressUpdate
30568
+ }, null, 8, ["invalid", "locations", "placeholder", "onUpdate:addNewAddress", "onSubmit:location"])
30557
30569
  ]),
30558
30570
  h("div", OO, [
30559
30571
  p(s, {