@dcrackel/hematournamentui 1.0.91 → 1.0.92
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 +902 -898
- package/dist/HemaTouranmentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/stories/Organisms/Containers/Pool/Pool.vue +7 -5
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.stories.js +27 -1
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +1 -0
package/package.json
CHANGED
|
@@ -43,6 +43,10 @@ export default {
|
|
|
43
43
|
PoolFencerCard
|
|
44
44
|
},
|
|
45
45
|
props: {
|
|
46
|
+
poolId: {
|
|
47
|
+
type: [String, Number],
|
|
48
|
+
required: true
|
|
49
|
+
},
|
|
46
50
|
poolName: {
|
|
47
51
|
type: String,
|
|
48
52
|
required: true
|
|
@@ -76,10 +80,9 @@ export default {
|
|
|
76
80
|
computed: {
|
|
77
81
|
directors() {
|
|
78
82
|
return this.staff
|
|
79
|
-
//.filter(staffMember => staffMember.Role === 'Director')
|
|
80
83
|
.map(staffMember => ({
|
|
81
84
|
text: staffMember.Person.DisplayName,
|
|
82
|
-
link: staffMember.PersonId
|
|
85
|
+
link: { personId: staffMember.PersonId, eventId: staffMember.EventId, poolId: this.poolId }
|
|
83
86
|
}));
|
|
84
87
|
}
|
|
85
88
|
},
|
|
@@ -96,9 +99,8 @@ export default {
|
|
|
96
99
|
return portrait ? portrait.Link : '';
|
|
97
100
|
},
|
|
98
101
|
handleSelectedItem(event){
|
|
99
|
-
|
|
100
|
-
this
|
|
101
|
-
this.$emit('update:setDirector', event.link)
|
|
102
|
+
this.selectedDirector = { text: event.text, link: { directorId: event.link, poolId: this.poolId } }
|
|
103
|
+
this.$emit('update:setDirector', event)
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
};
|
|
@@ -62,11 +62,37 @@ export const NoPoolsYet = {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
const staff = [{
|
|
66
|
+
Id: 2,
|
|
67
|
+
TournamentId: 4,
|
|
68
|
+
EventId: 5,
|
|
69
|
+
PoolId: 102,
|
|
70
|
+
PersonId: 23,
|
|
71
|
+
Role: 'Director',
|
|
72
|
+
Person: {
|
|
73
|
+
DisplayName: 'Lucas Garcia',
|
|
74
|
+
Club: {
|
|
75
|
+
ClubId: 1,
|
|
76
|
+
Name: 'Acme Fencing Club'
|
|
77
|
+
},
|
|
78
|
+
Images: [
|
|
79
|
+
{
|
|
80
|
+
URL: 'https://randomuser.me/api/portraits/men/77.jpg'
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
Pool: {
|
|
85
|
+
PoolId: 102,
|
|
86
|
+
Name: 'Pool 1',
|
|
87
|
+
RingName: 'Ring 1'
|
|
88
|
+
}
|
|
89
|
+
}];
|
|
90
|
+
|
|
65
91
|
export const liveMode = {
|
|
66
92
|
args: {
|
|
67
93
|
event:eventPersonGetPoolAssignmentEvent,
|
|
68
94
|
poolAssignments: eventPersonGetInitialPoolAssignments,
|
|
69
|
-
staff:
|
|
95
|
+
staff: staff,
|
|
70
96
|
mode: 'Live'
|
|
71
97
|
}
|
|
72
98
|
};
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<div class="w-full flex flex-row flex-wrap justify-center" :class="this.event.Flights > 1 ? 'mt-0' : 'mt-4'">
|
|
9
9
|
<div v-for="pool in filteredPools" :key="pool.Name">
|
|
10
10
|
<Pool
|
|
11
|
+
:poolId="pool.PoolId"
|
|
11
12
|
:poolName="pool.Name"
|
|
12
13
|
:ringName="pool.RingName"
|
|
13
14
|
:poolInd="pool.poolStrengthInd"
|