@dcrackel/hematournamentui 1.0.70 → 1.0.72
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,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section>
|
|
3
|
-
|
|
4
3
|
<EditEventsTopMenu :currentTab="'Checkin'" :tabs="tabs"/>
|
|
5
4
|
<PoolSummary :event="event"/>
|
|
6
5
|
|
|
@@ -9,11 +8,18 @@
|
|
|
9
8
|
<div class="w-full flex flex-col justify-center items-center" style="text-align: center">
|
|
10
9
|
<section class="grid grid-cols-2 w-full mb-3">
|
|
11
10
|
<div class="col-start-1 col-end-2 flex justify-start">
|
|
12
|
-
<FindOrAddPerson
|
|
11
|
+
<FindOrAddPerson
|
|
12
|
+
:clubs="clubs"
|
|
13
|
+
:persons="personsAll"
|
|
14
|
+
@new-person-submitted="handleNewPerson"
|
|
15
|
+
@person-selected="handleAddExistingPerson" />
|
|
13
16
|
</div>
|
|
14
17
|
<div class="col-start-2 col-end-3 flex justify-end">
|
|
15
|
-
<DropDownMenu
|
|
16
|
-
|
|
18
|
+
<DropDownMenu
|
|
19
|
+
:label="label"
|
|
20
|
+
:items="items"
|
|
21
|
+
:selectedItem="localSelectedItem"
|
|
22
|
+
@update:selectedItem="handleSelectedItem"/>
|
|
17
23
|
</div>
|
|
18
24
|
</section>
|
|
19
25
|
|
|
@@ -29,7 +35,6 @@
|
|
|
29
35
|
<FencerCard :person="person" class="mb-4" @update:status="handleStatus"/>
|
|
30
36
|
</section>
|
|
31
37
|
</div>
|
|
32
|
-
|
|
33
38
|
</section>
|
|
34
39
|
</div>
|
|
35
40
|
</section>
|
|
@@ -120,19 +125,22 @@ export default {
|
|
|
120
125
|
},
|
|
121
126
|
methods: {
|
|
122
127
|
handleSelectedItem(selectedItem) {
|
|
123
|
-
console.log(
|
|
128
|
+
console.log(`----- selectedItem: ${selectedItem}`);
|
|
124
129
|
this.localSelectedItem = selectedItem;
|
|
125
130
|
},
|
|
126
131
|
handleStatus(person) {
|
|
127
|
-
console.log(
|
|
132
|
+
console.log(`----- handleStatus: ${person}`);
|
|
128
133
|
person.Status = person.Status === 'Absent' ? 'Present' : 'Absent';
|
|
129
134
|
this.$emit('update:person', person);
|
|
130
135
|
},
|
|
131
|
-
handleNewPerson(value)
|
|
132
|
-
|
|
133
|
-
console.log(`handleNewPerson: ${value}`)
|
|
136
|
+
handleNewPerson(value) {
|
|
137
|
+
console.log(`----- handleNewPerson: ${value}`);
|
|
134
138
|
this.$emit('add:person', value);
|
|
139
|
+
},
|
|
140
|
+
handleAddExistingPerson(value) {
|
|
141
|
+
console.log(`----- handleAddExistingPerson: ${value}`);
|
|
142
|
+
this.$emit('add:existing-person', value);
|
|
135
143
|
}
|
|
136
144
|
}
|
|
137
145
|
}
|
|
138
|
-
</script>
|
|
146
|
+
</script>
|