@dcrackel/hematournamentui 1.0.99 → 1.0.101
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 +243 -238
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +9 -3
- package/src/mocks/eventPersonGetInitalPoolAssignmentsLivePools.js +563 -0
- package/src/mocks/eventPersonGetInitalPoolAssignmentsPreparing.js +533 -0
- package/src/mocks/eventPersonGetInitialPoolAssignments2.js +388 -397
- package/src/stories/Organisms/Containers/Pool/Pool.vue +3 -5
- package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +0 -1
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +5 -0
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<DropDownMenu :label="'Director'" :items="directors" :selectedItem="selectedDirector" width="w-full" dropDownWidth="w-full" :alignEnd="false" @update:selectedItem="handleSelectedItem"/>
|
|
20
20
|
</div>
|
|
21
21
|
<div class="text-md mb-4 w-full flex ">
|
|
22
|
-
<BaseText text="Director: "size="sm" color="quinary" weight="bold" />
|
|
22
|
+
<BaseText text="Director: " size="sm" color="quinary" weight="bold" />
|
|
23
23
|
<BaseText :text="selectedDirector.text" size="sm" color="primaryHighlight" weight="bold" class="ml-2" />
|
|
24
24
|
</div>
|
|
25
25
|
<div class="grid grid-cols-1 gap-4">
|
|
@@ -109,9 +109,8 @@ export default {
|
|
|
109
109
|
});
|
|
110
110
|
},
|
|
111
111
|
clubLogoURL(person) {
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
return portrait ? portrait.Link : '';
|
|
112
|
+
const portrait = person.Person.Club.Images[0] || [];
|
|
113
|
+
return portrait ? portrait.url : '';
|
|
115
114
|
},
|
|
116
115
|
handleSelectedItem(event){
|
|
117
116
|
this.selectedDirector = { text: event.text, link: { directorId: event.link, poolId: this.poolId } }
|
|
@@ -124,7 +123,6 @@ export default {
|
|
|
124
123
|
if (this.mode === 'live') {
|
|
125
124
|
this.$emit('select:pool', this.poolId);
|
|
126
125
|
}
|
|
127
|
-
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
128
|
};
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
@swap-fencers="swapFencers"
|
|
19
19
|
@update:setDirector="setDirector"
|
|
20
20
|
@remove:fencer="handleRemoveFencer"
|
|
21
|
+
@select:pool="handleSelectPool"
|
|
21
22
|
/>
|
|
22
23
|
</div>
|
|
23
24
|
<div v-if="filteredPools.length < 1" class="w-full flex justify-center items-center">
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
</div>
|
|
30
31
|
</div>
|
|
31
32
|
|
|
33
|
+
{{ mode }} {{ filteredPools.length}}
|
|
32
34
|
<div v-if="filteredPools.length > 1 && mode !== 'complete'" class="grid grid-cols-2 gap-4 mx-8 mt-8">
|
|
33
35
|
<BaseButton v-if="mode === 'planning' || mode === 'preparation'" label="Reset Pools" size="md" icon-name="fa-rotate-right" icon-style="fa-solid" type="graySecondary" :icon-left="true" class="max-w-96 justify-self-end" @click="handleReset" />
|
|
34
36
|
<BaseButton v-if="mode === 'planning'" label="Start Checkin" size="md" icon-name="fa-caret-right" icon-style="fa-solid" type="secondary" :icon-left="false" class="max-w-96 justify-self-start" @click="handleStart" />
|
|
@@ -143,6 +145,9 @@ export default {
|
|
|
143
145
|
},
|
|
144
146
|
handleRemoveFencer(person){
|
|
145
147
|
this.$emit('remove:fencer', person);
|
|
148
|
+
},
|
|
149
|
+
handleSelectPool(poolId){
|
|
150
|
+
this.$emit('select:pool', poolId);
|
|
146
151
|
}
|
|
147
152
|
}
|
|
148
153
|
}
|