@dcrackel/hematournamentui 1.0.346 → 1.0.348

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.
@@ -1,3 +1,3 @@
1
1
  <!--<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">-->
2
2
  <link href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css?token=F0476B93-4907-4573-807B-E10E4A0A78FA" rel="stylesheet">
3
- <!--<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC5kuJeMLopgjHDqsQPjRZ6Fkg3PFydw9Q&libraries=places&callback=initMap" async defer></script>-->
3
+ <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC5kuJeMLopgjHDqsQPjRZ6Fkg3PFydw9Q&libraries=places&callback=initMap" async defer></script>
@@ -29197,13 +29197,13 @@ const zM = /* @__PURE__ */ ie(kM, [["render", LM]]), NM = {
29197
29197
  filteredLocations: this.locations,
29198
29198
  inputValue: this.placeholder,
29199
29199
  showDropdown: !1,
29200
- showAddNew: !1,
29200
+ showAddNew: !0,
29201
29201
  debouncedTimeout: null
29202
29202
  };
29203
29203
  },
29204
29204
  watch: {
29205
29205
  inputValue(n) {
29206
- this.showDropdown = n.length > 0, this.showAddNew = n.length > 0 && this.filteredLocations.length === 0, this.debounceSearch();
29206
+ this.showDropdown = n.length > 0, this.debounceSearch();
29207
29207
  }
29208
29208
  },
29209
29209
  methods: {
@@ -29227,13 +29227,13 @@ const zM = /* @__PURE__ */ ie(kM, [["render", LM]]), NM = {
29227
29227
  }, 500);
29228
29228
  },
29229
29229
  handleLocationName(n) {
29230
- this.formData.locationName = n;
29230
+ this.formData.locationName = n, this.locationName = n;
29231
29231
  },
29232
29232
  handleNewAddress(n) {
29233
- this.formData.address = n.address, this.formData.coordinates = n.coordinates;
29233
+ this.formData.locationName = this.locationName, this.formData.address = n.address, this.formData.coordinates = n.coordinates, this.inputValue = this.locationName, this.$emit("submit:addNewAddress", this.formData);
29234
29234
  },
29235
29235
  handleSubmit() {
29236
- this.$emit("submit:location", this.formData), this.showNewLocation = !1;
29236
+ this.$emit("submit:location", this.formData), this.showNewLocation = !1, this.showDropdown = !1, this.showAddNew = !1;
29237
29237
  }
29238
29238
  }
29239
29239
  }, HM = {
@@ -29253,7 +29253,7 @@ function jM(n, e, t, r, i, o) {
29253
29253
  placeholder: "Enter Location Name",
29254
29254
  onInput: o.updateInput
29255
29255
  }, null, 8, ["addBorder", "value", "onInput"]),
29256
- i.showDropdown ? (I(), m("div", qM, [
29256
+ i.showDropdown && i.showAddNew ? (I(), m("div", qM, [
29257
29257
  h("ul", null, [
29258
29258
  (I(!0), m(Ce, null, we(i.filteredLocations, (c, u) => (I(), m("li", {
29259
29259
  key: u,
@@ -29782,7 +29782,7 @@ const Ts = /* @__PURE__ */ ie(ZM, [["render", nO]]), rO = {
29782
29782
  });
29783
29783
  },
29784
29784
  handleAddNewAddress(n) {
29785
- this.tournament.AddressId = 0, this.tournament.Address = n;
29785
+ this.tournament.AddressId = 0, this.tournament.Address = n, this.$emit("update:startDate", n);
29786
29786
  },
29787
29787
  handleAddressUpdate(n) {
29788
29788
  this.tournament.addressId = n.AddressId;
@@ -29864,9 +29864,9 @@ function CO(n, e, t, r, i, o) {
29864
29864
  addBorder: !0,
29865
29865
  locations: t.locations,
29866
29866
  addNewText: "Add New",
29867
- "onUpdate:addNewAddress": o.handleAddNewAddress,
29868
- "onUpdate:location": o.handleAddressUpdate
29869
- }, null, 8, ["locations", "onUpdate:addNewAddress", "onUpdate:location"])
29867
+ "onSubmit:addNewAddress": o.handleAddNewAddress,
29868
+ "onSubmit:location": o.handleAddressUpdate
29869
+ }, null, 8, ["locations", "onSubmit:addNewAddress", "onSubmit:location"])
29870
29870
  ]),
29871
29871
  h("div", dO, [
29872
29872
  h("div", gO, [