@dcrackel/hematournamentui 1.0.41 → 1.0.42
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 +3497 -3393
- package/dist/HemaTouranmentUI-lib.umd.js +27 -27
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +2 -6
- package/src/stories/Templates/TournamentManagement/AddTournament/PageOne/AddTournamentPageOne.vue +5 -6
- package/src/stories/Templates/TournamentManagement/AddTournament/PageTwo/AddTournamentPageTwo.vue +0 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -15,7 +15,7 @@ export { default as BaseModal } from './stories/Molecules/Modals/BaseModal/BaseM
|
|
|
15
15
|
export { default as AddressAutocomplete } from './stories/Organisms/ComplexInputs/AddressAutocomplete/AddressAutocomplete.vue';
|
|
16
16
|
export { default as DatePicker } from './stories/Organisms/ComplexInputs/DatePicker/DatePicker.vue';
|
|
17
17
|
export { default as DropDownMenu } from './stories/Organisms/ComplexInputs/DropDown/DropDownMenu.vue';
|
|
18
|
-
export { default as GridContainer } from './stories/Organisms/
|
|
18
|
+
export { default as GridContainer } from './stories/Organisms/Grids/GridContainer.vue';
|
|
19
19
|
export { default as ImageCropper } from './stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue';
|
|
20
20
|
export { default as TextBoxEditor } from './stories/Organisms/ComplexInputs/TextBoxEditor/TextBoxEditor.vue';
|
|
21
21
|
export { default as TournamentCard } from './stories/Organisms/Cards/TournamentCard/TournamentCard.vue';
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
selectItem(item) {
|
|
91
91
|
this.showDropdown = false;
|
|
92
92
|
this.inputValue = item.Name;
|
|
93
|
-
this.$emit('
|
|
93
|
+
this.$emit('update-location', item);
|
|
94
94
|
this.$nextTick(() => {
|
|
95
95
|
this.showDropdown = false;
|
|
96
96
|
});
|
|
@@ -110,18 +110,14 @@ export default {
|
|
|
110
110
|
}, 500);
|
|
111
111
|
},
|
|
112
112
|
handleLocationName(newName) {
|
|
113
|
-
console.log(newName)
|
|
114
113
|
this.formData.locationName = newName
|
|
115
114
|
},
|
|
116
115
|
handleAddressUpdate(newAddress) {
|
|
117
|
-
console.log(newAddress)
|
|
118
116
|
this.formData.address = newAddress.address
|
|
119
117
|
this.formData.coordinates = newAddress.coordinates
|
|
120
118
|
},
|
|
121
119
|
handleSubmit(formData) {
|
|
122
|
-
|
|
123
|
-
console.log(this.locationName)
|
|
124
|
-
console.log('Form Data:', this.formData);
|
|
120
|
+
this.$emit('update-location', formData);
|
|
125
121
|
this.showNewLocation = false;
|
|
126
122
|
}
|
|
127
123
|
}
|
package/src/stories/Templates/TournamentManagement/AddTournament/PageOne/AddTournamentPageOne.vue
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<section class="w-96">
|
|
17
17
|
<TitledInput :invalid="validation.name" title="Tournament Name" :inputValue="tournament.name" placeholder="Enter Tournament Name" @update:value="value => tournament.name = value"></TitledInput>
|
|
18
18
|
<div class="flex flex-col mb-3">
|
|
19
|
-
<BaseText :color="'primaryHighlight'" :invalid="validation.
|
|
19
|
+
<BaseText :color="'primaryHighlight'" :invalid="validation.addressName" :size="'sm'" :text="'Location'"
|
|
20
20
|
:weight="'normal'" class="mb-1" data-testid="text-address"/>
|
|
21
|
-
<FindLocation :addBorder="true" :locations="locations" addNewText="Add New" />
|
|
21
|
+
<FindLocation :addBorder="true" :locations="locations" addNewText="Add New" @update-location="handleAddressUpdate" />
|
|
22
22
|
</div>
|
|
23
23
|
<div class="flex flex-row mb-3">
|
|
24
24
|
<div class="w-3/4 mr-1">
|
|
@@ -93,6 +93,7 @@ export default {
|
|
|
93
93
|
tournament: {
|
|
94
94
|
name: '',
|
|
95
95
|
imageLink: '',
|
|
96
|
+
addressName: '',
|
|
96
97
|
address: '',
|
|
97
98
|
coordinates: '',
|
|
98
99
|
startDate: '',
|
|
@@ -140,14 +141,12 @@ export default {
|
|
|
140
141
|
});
|
|
141
142
|
},
|
|
142
143
|
handleAddressUpdate(updatedAddress) {
|
|
143
|
-
this.tournament.
|
|
144
|
+
this.tournament.addressName = updatedAddress.Name
|
|
145
|
+
this.tournament.address = updatedAddress.Address1 + ' ' + updatedAddress.City + ' ' + updatedAddress.State + ' ' + updatedAddress.Zip;
|
|
144
146
|
this.tournament.coordinates = updatedAddress.coordinates;
|
|
145
147
|
},
|
|
146
148
|
handleDateUpdate(newDate) {
|
|
147
149
|
this.tournament.startDate = newDate;
|
|
148
|
-
console.log("New Date")
|
|
149
|
-
console.log(newDate)
|
|
150
|
-
console.log(DatePicker.props.invalid)
|
|
151
150
|
},
|
|
152
151
|
handleEditorUpdate(newContent) {
|
|
153
152
|
this.tournament.description = newContent;
|
package/src/stories/Templates/TournamentManagement/AddTournament/PageTwo/AddTournamentPageTwo.vue
CHANGED
|
@@ -107,9 +107,7 @@ export default {
|
|
|
107
107
|
this.localTournament.externalLinks = this.localTournament.externalLinks.filter(link => link.url !== urlToRemove);
|
|
108
108
|
},
|
|
109
109
|
handleSubmit() {
|
|
110
|
-
console.log('submitting ferrotas hosting');
|
|
111
110
|
if (this.areAllLinksValid()) {
|
|
112
|
-
console.log(this.localTournament)
|
|
113
111
|
this.$emit('submit', this.localTournament);
|
|
114
112
|
}
|
|
115
113
|
},
|