@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.203",
4
+ "version": "1.0.205",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -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="pt-6" hover="alarm" @click="handlerRemoveFencer" />
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});
@@ -47,6 +47,7 @@ import emptyDesertIcon from '../../../../assets/empty_desert_icon.png';
47
47
  import BaseText from "../../../Atoms/Text/BaseText.vue";
48
48
 
49
49
  export default {
50
+ name: 'PoolManagement',
50
51
  components: {
51
52
  BaseText,
52
53
  BaseButton,