@dcrackel/hematournamentui 1.0.203 → 1.0.205
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/HemaTournamentUI-lib.es.js +136 -121
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/stories/Organisms/Cards/FencerCard/FencerCard.vue +9 -2
- package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +2 -2
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +1 -0
package/package.json
CHANGED
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
@update:selected="handleAttendance"
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
|
-
<div class="ml-4 border-l border-dropdownSelect h-20 w-10 items-center text-center hover:bg-eventBoxRed rounded-tr-lg rounded-br-lg">
|
|
34
|
-
<BaseIcon icon-name="fa-circle-xmark" size="2xl" color="quinary" class="
|
|
33
|
+
<div class="ml-4 border-l border-dropdownSelect h-20 w-10 items-center text-center hover:bg-eventBoxRed rounded-tr-lg rounded-br-lg pt-6">
|
|
34
|
+
<BaseIcon v-if="!showSpinner" icon-name="fa-circle-xmark" size="2xl" color="quinary" class="" hover="alarm" @click="handlerRemoveFencer" />
|
|
35
|
+
<BaseIcon v-if="showSpinner" icon-name="fa-spinner-third" size="2xl" color="alarm" class="animate-spin" hover="alarm" />
|
|
35
36
|
</div>
|
|
36
37
|
</div>
|
|
37
38
|
</template>
|
|
@@ -81,12 +82,18 @@ export default {
|
|
|
81
82
|
return this.person.Status === 'Absent' ? 'Absent' : 'Present';
|
|
82
83
|
}
|
|
83
84
|
},
|
|
85
|
+
data(){
|
|
86
|
+
return {
|
|
87
|
+
showSpinner: false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
84
90
|
methods: {
|
|
85
91
|
handleAttendance(selected) {
|
|
86
92
|
const person = { ...this.person, Status: selected };
|
|
87
93
|
this.$emit('update:status', person);
|
|
88
94
|
},
|
|
89
95
|
handlerRemoveFencer(){
|
|
96
|
+
this.showSpinner = true;
|
|
90
97
|
this.$emit('remove:fencer', this.person);
|
|
91
98
|
}
|
|
92
99
|
}
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
},
|
|
50
50
|
methods: {
|
|
51
51
|
onDragStart(event) {
|
|
52
|
-
if (mode === 'preparation' || mode === 'planning') {
|
|
52
|
+
if (this.mode === 'preparation' || this.mode === 'planning') {
|
|
53
53
|
event.dataTransfer.setData('text/plain', JSON.stringify({
|
|
54
54
|
fromPosition: this.poolPosition,
|
|
55
55
|
name: this.name,
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
onDrop(event) {
|
|
62
|
-
if (mode === 'preparation' || mode === 'planning') {
|
|
62
|
+
if (this.mode === 'preparation' || this.mode === 'planning') {
|
|
63
63
|
const droppedData = JSON.parse(event.dataTransfer.getData('text/plain'));
|
|
64
64
|
droppedData.toPosition = this.poolPosition;
|
|
65
65
|
this.$emit('swap-fencers', {droppedData});
|