@dcrackel/hematournamentui 1.0.68 → 1.0.69
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
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
<template #modal-content>
|
|
7
7
|
<div v-if="isSearchMode">
|
|
8
8
|
<BaseInput
|
|
9
|
-
:addBorder="
|
|
9
|
+
:addBorder="true"
|
|
10
10
|
:value="inputValue"
|
|
11
11
|
@input="updateInput"
|
|
12
12
|
placeholder="Type to search person..."
|
|
13
13
|
/>
|
|
14
14
|
<div v-if="showDropdown" class="absolute z-10 w-11/12 bg-eventBoxBlue rounded-md" :class="[filteredPersons.length > 0 ? 'border border-dropdownSelect mt-2 p-2' : 'mt-4']">
|
|
15
15
|
<ul>
|
|
16
|
-
<li v-for="(person, index) in filteredPersons" :key="index" @click="selectPerson(person)" class="p-2 my
|
|
16
|
+
<li v-for="(person, index) in filteredPersons" :key="index" @click="selectPerson(person)" class="p-2 my-2 hover:bg-dropdownSelect rounded-lg cursor-pointer">
|
|
17
17
|
<p class="grid grid-cols-2 w-full">
|
|
18
18
|
<BaseText :text="person.DisplayName" size="md" />
|
|
19
19
|
<BaseText :text="person.Club.ShortName" size="md" class="ml-4" />
|
|
@@ -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" />
|
|
12
|
+
<FindOrAddPerson :clubs="clubs" :persons="personsAll" @new-person-submitted="handleNewPerson" />
|
|
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"
|
|
@@ -125,6 +125,10 @@ export default {
|
|
|
125
125
|
handleStatus(person) {
|
|
126
126
|
person.Status = person.Status === 'Absent' ? 'Present' : 'Absent';
|
|
127
127
|
this.$emit('update:person', person);
|
|
128
|
+
},
|
|
129
|
+
handleNewPerson(value)
|
|
130
|
+
{
|
|
131
|
+
this.$emit('add:person', value);
|
|
128
132
|
}
|
|
129
133
|
}
|
|
130
134
|
}
|