@dcrackel/hematournamentui 1.0.68 → 1.0.70
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/dist/HemaTouranmentUI-lib.es.js +12 -8
- package/dist/HemaTouranmentUI-lib.umd.js +2 -2
- package/package.json +1 -1
- package/src/stories/Organisms/ComplexInputs/DropDown/DropDownMenu.vue +1 -1
- package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.vue +2 -2
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +8 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<i class="fa-solid fa-chevron-down text-xs" />
|
|
7
7
|
</div>
|
|
8
8
|
<transition name="fade-in-down">
|
|
9
|
-
<div v-if="isDropDownOpen" class="flex flex-col shadow-lg mt-9 z-
|
|
9
|
+
<div v-if="isDropDownOpen" class="flex flex-col shadow-lg mt-9 z-20 rounded-b-xl absolute bg-neutral border border-dropdownSelect" :class="dropDownWidth">
|
|
10
10
|
<a v-for="item in items" :key="item.id" @click="handleClick(item)" class="hover:bg-dropdownSelect py-1 px-2 border-b border-l border-r border-dropdownSelect">
|
|
11
11
|
<BaseText :text="item.text" color="primary" size="sm" weight="normal" class="py-0.5" />
|
|
12
12
|
</a>
|
|
@@ -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"
|
|
@@ -120,11 +120,18 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
methods: {
|
|
122
122
|
handleSelectedItem(selectedItem) {
|
|
123
|
+
console.log(`selectedItem: ${selectedItem}`)
|
|
123
124
|
this.localSelectedItem = selectedItem;
|
|
124
125
|
},
|
|
125
126
|
handleStatus(person) {
|
|
127
|
+
console.log(`handleStatus: ${person}`)
|
|
126
128
|
person.Status = person.Status === 'Absent' ? 'Present' : 'Absent';
|
|
127
129
|
this.$emit('update:person', person);
|
|
130
|
+
},
|
|
131
|
+
handleNewPerson(value)
|
|
132
|
+
{
|
|
133
|
+
console.log(`handleNewPerson: ${value}`)
|
|
134
|
+
this.$emit('add:person', value);
|
|
128
135
|
}
|
|
129
136
|
}
|
|
130
137
|
}
|