@dcrackel/hematournamentui 1.0.70 → 1.0.71

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.70",
4
+ "version": "1.0.71",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTouranmentUI-lib.umd.js",
7
7
  "module": "dist/HemaTouranmentUI-lib.es.js",
@@ -9,7 +9,7 @@
9
9
  <div class="w-full flex flex-col justify-center items-center" style="text-align: center">
10
10
  <section class="grid grid-cols-2 w-full mb-3">
11
11
  <div class="col-start-1 col-end-2 flex justify-start">
12
- <FindOrAddPerson :clubs="clubs" :persons="personsAll" @new-person-submitted="handleNewPerson" />
12
+ <FindOrAddPerson :clubs="clubs" :persons="personsAll" @new-person-submitted="handleNewPerson" @person-selected="handleAddExistingPerson" />
13
13
  </div>
14
14
  <div class="col-start-2 col-end-3 flex justify-end">
15
15
  <DropDownMenu :label="label" :items="items" :selectedItem="localSelectedItem"
@@ -132,6 +132,10 @@ export default {
132
132
  {
133
133
  console.log(`handleNewPerson: ${value}`)
134
134
  this.$emit('add:person', value);
135
+ },
136
+ handleAddExistingPerson(value){
137
+ console.log(`handleAddExistingPerson: ${value}`)
138
+ this.$emit('add:existing-person', value);
135
139
  }
136
140
  }
137
141
  }