@dcrackel/hematournamentui 1.0.41 → 1.0.43
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 +3513 -3398
- package/dist/HemaTouranmentUI-lib.umd.js +27 -27
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.vue +0 -3
- package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +2 -6
- package/src/stories/Templates/TournamentManagement/AddTournament/PageOne/AddTournamentPageOne.vue +20 -9
- 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,8 +93,16 @@ export default {
|
|
|
93
93
|
tournament: {
|
|
94
94
|
name: '',
|
|
95
95
|
imageLink: '',
|
|
96
|
-
address:
|
|
97
|
-
|
|
96
|
+
"address": [
|
|
97
|
+
{
|
|
98
|
+
"Name": "",
|
|
99
|
+
"Address1": "",
|
|
100
|
+
"City": "",
|
|
101
|
+
"State": "",
|
|
102
|
+
"Zip": "",
|
|
103
|
+
"Coordinates": ""
|
|
104
|
+
}
|
|
105
|
+
],
|
|
98
106
|
startDate: '',
|
|
99
107
|
totalDays: 1,
|
|
100
108
|
description: '',
|
|
@@ -140,14 +148,17 @@ export default {
|
|
|
140
148
|
});
|
|
141
149
|
},
|
|
142
150
|
handleAddressUpdate(updatedAddress) {
|
|
143
|
-
this.tournament.address =
|
|
144
|
-
|
|
151
|
+
this.tournament.address = [{
|
|
152
|
+
"Name": updatedAddress.Name,
|
|
153
|
+
"Address1": updatedAddress.Address1,
|
|
154
|
+
"City": updatedAddress.City,
|
|
155
|
+
"State": updatedAddress.State,
|
|
156
|
+
"Zip": updatedAddress.Zip,
|
|
157
|
+
"Coordinates": updatedAddress.coordinates
|
|
158
|
+
}];
|
|
145
159
|
},
|
|
146
160
|
handleDateUpdate(newDate) {
|
|
147
161
|
this.tournament.startDate = newDate;
|
|
148
|
-
console.log("New Date")
|
|
149
|
-
console.log(newDate)
|
|
150
|
-
console.log(DatePicker.props.invalid)
|
|
151
162
|
},
|
|
152
163
|
handleEditorUpdate(newContent) {
|
|
153
164
|
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
|
},
|