@dcrackel/hematournamentui 1.0.90 → 1.0.91

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.90",
4
+ "version": "1.0.91",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTouranmentUI-lib.umd.js",
7
7
  "module": "dist/HemaTouranmentUI-lib.es.js",
@@ -1,38 +1,101 @@
1
1
  const eventPersonGetInitialStaff =
2
- [
3
- {
4
- "Id": 2,
5
- "TournamentId": 4,
6
- "EventId": 5,
7
- "PoolId": 102,
8
- "PersonId": 23,
9
- "Role": "Director",
10
- "Person": {
11
- "DisplayName": "Robert Garcia"
2
+ [
3
+ {
4
+ "Id": 2,
5
+ "TournamentId": 4,
6
+ "EventId": 5,
7
+ "PoolId": 102,
8
+ "PersonId": 23,
9
+ "Role": "Director",
10
+ "Person": {
11
+ "DisplayName": "Lucas Garcia",
12
+ "Club": {
13
+ "ClubId": 1,
14
+ "Name": "Acme Fencing Club"
15
+ },
16
+ "Images": [
17
+ {
18
+ "URL": "https://randomuser.me/api/portraits/men/77.jpg"
19
+ }
20
+ ]
21
+ },
22
+ "Pool": {
23
+ "PoolId": 102,
24
+ "Name": "Pool 1",
25
+ "RingName": "Ring 1"
26
+ }
27
+ },
28
+ {
29
+ "Id": 3,
30
+ "TournamentId": 4,
31
+ "EventId": 5,
32
+ "PoolId": 103,
33
+ "PersonId": 24,
34
+ "Role": "Director",
35
+ "Person": {
36
+ "DisplayName": "Mia Rodriguez",
37
+ "Club": {
38
+ "ClubId": 2,
39
+ "Name": "Historical Fencing Of Anywhere"
40
+ },
41
+ "Images": [
42
+ {
43
+ "URL": "https://randomuser.me/api/portraits/women/89.jpg"
44
+ }
45
+ ]
46
+ },
47
+ "Pool": {
48
+ "PoolId": 103,
49
+ "Name": "Pool 2",
50
+ "RingName": "Ring 2"
51
+ }
52
+ },
53
+ {
54
+ "Id": 4,
55
+ "TournamentId": 4,
56
+ "EventId": 5,
57
+ "PoolId": 102,
58
+ "PersonId": 22,
59
+ "Role": "Line Judge",
60
+ "Person": {
61
+ "DisplayName": "Bob Smith",
62
+ "Club": {
63
+ "ClubId": 6,
64
+ "Name": "SwordPlay Society"
65
+ },
66
+ "Images": [
67
+ {
68
+ "URL": "https://randomuser.me/api/portraits/men/81.jpg"
69
+ }
70
+ ]
71
+ },
72
+ "Pool": {
73
+ "PoolId": 102,
74
+ "Name": "Pool 1",
75
+ "RingName": "Ring 1"
76
+ }
77
+ },
78
+ {
79
+ "Id": 5,
80
+ "TournamentId": 4,
81
+ "EventId": 5,
82
+ "PoolId": null,
83
+ "PersonId": 1,
84
+ "Role": "Director",
85
+ "Person": {
86
+ "DisplayName": "Dave Smith",
87
+ "Club": {
88
+ "ClubId": 4,
89
+ "Name": "Guardians of the Guard"
90
+ },
91
+ "Images": [
92
+ {
93
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg"
94
+ }
95
+ ]
96
+ },
97
+ "Pool": null
12
98
  }
13
- },
14
- {
15
- "Id": 3,
16
- "TournamentId": 4,
17
- "EventId": 5,
18
- "PoolId": 103,
19
- "PersonId": 24,
20
- "Role": "Director",
21
- "Person": {
22
- "DisplayName": "Mia Rodriguez"
23
- }
24
- },
25
- {
26
- "Id": 4,
27
- "TournamentId": 4,
28
- "EventId": 5,
29
- "PoolId": 102,
30
- "PersonId": 22,
31
- "Role": "Line Judge",
32
- "Person": {
33
- "DisplayName": "Bob Smith"
34
- }
35
- }
36
- ];
99
+ ]
37
100
 
38
101
  export default eventPersonGetInitialStaff;
@@ -56,7 +56,7 @@ export default {
56
56
  required: true
57
57
  },
58
58
  poolInd: {
59
- type: String,
59
+ type: [String, Number],
60
60
  required: true
61
61
  },
62
62
  pool: {
@@ -77,11 +77,9 @@ export default {
77
77
  },
78
78
  computed: {
79
79
  poolSize() {
80
- console.log(`poolSize: ${this.event.PoolSize}`)
81
80
  return this.event.PoolSize || 0;
82
81
  },
83
82
  numberOfRings() {
84
- console.log(`numberOfRings: ${this.event.NumberOfRings}`)
85
83
  return this.event.NumberOfRings || 0;
86
84
  },
87
85
  },
@@ -25,7 +25,6 @@
25
25
  <BaseText text="Go Back Seeding and Checkin to mark fencers as present." size="sm" color="primary" weight="normal" />
26
26
  </div>
27
27
  </div>
28
-
29
28
  </div>
30
29
 
31
30
  <div v-if="filteredPools.length > 1 && mode !== 'Complete'" class="grid grid-cols-2 gap-4 mx-8 mt-8">
@@ -54,7 +53,10 @@ export default {
54
53
  },
55
54
  props: {
56
55
  event: Object,
57
- poolAssignments: Object,
56
+ poolAssignments: {
57
+ type: Array,
58
+ default: () => []
59
+ },
58
60
  mode: {
59
61
  type: String,
60
62
  required: true,
@@ -128,11 +130,9 @@ export default {
128
130
  return director ? director.Person.DisplayName : 'Unassigned';
129
131
  },
130
132
  swapFencers({ draggedPerson }) {
131
- console.log('swapFencers', draggedPerson);
132
133
  this.$emit('update:swapFencers', {draggedPerson});
133
134
  },
134
135
  setDirector(personId) {
135
- console.log('setDirector', personId);
136
136
  this.$emit('update:director', personId );
137
137
  },
138
138
  }