@dcrackel/hematournamentui 1.0.577 → 1.0.579
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 +441 -408
- package/dist/HemaTournamentUI-lib.umd.js +21 -21
- package/package.json +1 -1
- package/src/mocks/getFinalEventResult.js +174 -177
- package/src/mocks/personGetAllMock.js +2528 -224
- package/src/mocks/personsMock.js +2535 -50
- package/src/mocks/tournamentMock.js +42 -35
- package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +1 -1
- package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.vue +1 -1
- package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.vue +2 -2
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +0 -1
- package/src/stories/Organisms/Cards/FencerFinalResultCard/FencerFinalResultCard.vue +28 -11
- package/src/stories/Organisms/Cards/TournamentAdminCard/TournamentAdminCard.vue +0 -1
- package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +6 -1
- package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +0 -2
- package/src/stories/Organisms/Grids/GridContainer.vue +8 -1
- package/src/stories/Organisms/Wizards/EditEventWizard/BasicEventInfo/BasicEventInfo.vue +6 -7
- package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.vue +7 -7
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.stories.js +44 -14
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +9 -10
- package/src/stories/Organisms/Wizards/EditEventWizard/EventCustomization/EventCustomization.vue +23 -22
- package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.vue +4 -4
- package/src/stories/Templates/ClubManagement/ClubBasic/ClubBasic.vue +0 -1
- package/src/stories/Templates/ClubManagement/ClubManagement.vue +0 -2
- package/src/stories/Templates/PersonManagement/PersonManagement.vue +0 -1
- package/src/stories/Templates/TournamentManagement/ListEvents/ListEvents.vue +2 -5
- package/src/stories/Templates/TournamentManagement/TournamentManagement.vue +1 -2
- package/src/stories/Templates/TournamentManagement/TournamentPageOne/TournamentPageOne.vue +8 -2
- package/src/stories/Util/tabs.js +1 -1
|
@@ -37,6 +37,7 @@ import BaseButton from "../../../Molecules/Buttons/BaseButton/BaseButton.vue";
|
|
|
37
37
|
import EventCard from "../../../Organisms/Cards/EventCard/EventCard.vue";
|
|
38
38
|
import emptyDesertIcon from '../../../../assets/empty_desert_icon.png';
|
|
39
39
|
import EditEventsTopMenu from "../../Menus/EditEventsTopMenu/EditEventsTopMenu.vue";
|
|
40
|
+
import {tournamentTabs} from "../../../Util/tabs.js";
|
|
40
41
|
|
|
41
42
|
export default {
|
|
42
43
|
components: {
|
|
@@ -54,11 +55,7 @@ export default {
|
|
|
54
55
|
return {
|
|
55
56
|
emptyDesertIcon,
|
|
56
57
|
currentTab: 'Events',
|
|
57
|
-
tabs:
|
|
58
|
-
{id: 'Basic', label: 'Basic', color: 'primaryHighlight', icon: 'fa-edit'},
|
|
59
|
-
{id: 'Details', label: 'Details', color: 'primaryHighlight', icon: 'fa-tasks'},
|
|
60
|
-
{id: 'Events', label: 'Events', color: 'primaryHighlight', icon: 'fa-swords'},
|
|
61
|
-
]
|
|
58
|
+
tabs: tournamentTabs()
|
|
62
59
|
};
|
|
63
60
|
},
|
|
64
61
|
methods: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<TournamentPageOne v-if="currentTab === 'Basic'"
|
|
5
5
|
:tournament="localTournament"
|
|
6
6
|
:locations="locations"
|
|
7
|
-
:persons="persons"
|
|
7
|
+
:persons="Array.isArray(persons) ? persons : [persons]"
|
|
8
8
|
:validation="validation"
|
|
9
9
|
:imageServer="imageServer"
|
|
10
10
|
:uploadImageName="uploadImageName"
|
|
@@ -219,7 +219,6 @@ export default {
|
|
|
219
219
|
}, 2000);
|
|
220
220
|
|
|
221
221
|
this.setEndDate();
|
|
222
|
-
console.log(this.localTournament);
|
|
223
222
|
this.$emit('submit:tournament', this.localTournament);
|
|
224
223
|
}
|
|
225
224
|
},
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
/>
|
|
105
105
|
<TextBoxEditor
|
|
106
106
|
:invalid="validation.Description.invalid"
|
|
107
|
+
:initialContent="tournament.Description"
|
|
107
108
|
@update:editorContent="emitUpdate('Description', $event)"
|
|
108
109
|
/>
|
|
109
110
|
</div>
|
|
@@ -112,7 +113,8 @@
|
|
|
112
113
|
<BaseText :color="'primaryHighlight'" :invalid="false" :size="'sm'" :text="'Primary Contact'"
|
|
113
114
|
:weight="'normal'" class="mb-1" data-testid="text-primary-contact"/>
|
|
114
115
|
<FindPerson :addBorder="true"
|
|
115
|
-
:persons="
|
|
116
|
+
:persons="persons"
|
|
117
|
+
:defaultValue="getDefaultPerson"
|
|
116
118
|
addNewText="Add New Person"
|
|
117
119
|
@new-person-submitted="handlePersonUpdate('PrimaryContactId', $event)"
|
|
118
120
|
@person-selected="handlePersonUpdate('PrimaryContactId', $event)"/>
|
|
@@ -143,7 +145,7 @@ export default {
|
|
|
143
145
|
required: true
|
|
144
146
|
},
|
|
145
147
|
persons: {
|
|
146
|
-
type:
|
|
148
|
+
type: Array,
|
|
147
149
|
required: true
|
|
148
150
|
},
|
|
149
151
|
validation: {
|
|
@@ -197,6 +199,10 @@ export default {
|
|
|
197
199
|
},
|
|
198
200
|
registrationCutOff() {
|
|
199
201
|
return this.tournament?.RegistrationCutOff || new Date();
|
|
202
|
+
},
|
|
203
|
+
getDefaultPerson: function () {
|
|
204
|
+
const person = this.persons.find(p => p.PersonId === this.tournament.PrimaryContactId);
|
|
205
|
+
return person ? person.DisplayName : '';
|
|
200
206
|
}
|
|
201
207
|
},
|
|
202
208
|
methods: {
|
package/src/stories/Util/tabs.js
CHANGED
|
@@ -69,7 +69,7 @@ export const personProfileTabs = (role) => {
|
|
|
69
69
|
export const tournamentTabs = () => {
|
|
70
70
|
return [
|
|
71
71
|
{id: 'Basic', label: 'Basic', color: 'primaryHighlight', icon: 'fa-info-circle'},
|
|
72
|
-
{id: 'Hosting', label: 'Hosting', color: 'primaryHighlight', icon: 'fa-
|
|
72
|
+
{id: 'Hosting', label: 'Hosting', color: 'primaryHighlight', icon: 'fa-globe-pointer'},
|
|
73
73
|
{id: 'Events', label: 'Events', color: 'primaryHighlight', icon: 'fa-swords'},
|
|
74
74
|
]
|
|
75
75
|
}
|