@dcrackel/hematournamentui 1.0.25 → 1.0.28

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.28",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTouranmentUI-lib.umd.js",
7
7
  "module": "dist/HemaTouranmentUI-lib.es.js",
package/src/index.js CHANGED
@@ -6,20 +6,20 @@ export { default as BaseText } from './stories/Atoms/Text/BaseText.vue';
6
6
 
7
7
  export { default as Breadcrumb } from './stories/Molecules/Breadcrumb/Admin/Breadcrumb.vue';
8
8
  export { default as BaseButton } from './stories/Molecules/Button/BaseButton.vue';
9
- export { default as TournamentCardDetails } from './stories/Molecules/Cards/Detail/TournamentCardDetail.vue';
9
+ export { default as TournamentCardDetail } from './stories/Molecules/Cards/Detail/TournamentCardDetail.vue';
10
10
  export { default as TournamentCardHeader } from './stories/Molecules/Cards/Header/TournamentCardHeader.vue';
11
11
  export { default as FilterAndSortBar } from './stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.vue';
12
12
  export { default as FilterUpcomingPast } from './stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.vue';
13
13
 
14
14
  export { default as AddressAutocomplete } from './stories/Organisms/AddressAutocomplete/AddressAutocomplete.vue';
15
15
  export { default as DatePicker } from './stories/Organisms/DatePicker/DatePicker.vue';
16
- export { default as DropDown } from './stories/Organisms/DropDown/DropDownMenu.vue';
16
+ export { default as DropDownMenu } from './stories/Organisms/DropDown/DropDownMenu.vue';
17
17
  export { default as GridContainer } from './stories/Organisms/Grid/GridContainer.vue';
18
18
  export { default as ImageCropper } from './stories/Organisms/ImageCropper/ImageCropper.vue';
19
19
  export { default as TextBoxEditor } from './stories/Organisms/TextBoxEditor/TextBoxEditor.vue';
20
20
  export { default as TournamentCard } from './stories/Organisms/TournamentCard/TournamentCard.vue';
21
21
 
22
22
  export { default as AddTournamentPageOne } from './stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.vue';
23
- // export { default as AddTournamentPageTwo } from './stories/Templates/Forms/AddTournamentPageTwo/AddTournamentPageTwo.vue';
23
+ export { default as AddTournamentPageTwo } from './stories/Templates/Forms/AddTournamentPageTwo/AddTournamentPageTwo.vue';
24
24
  export { default as AdminLeftMenu } from './stories/Templates/Menu/Admin/AdminLeftMenu.vue';
25
25
 
@@ -101,9 +101,7 @@ export default {
101
101
  },
102
102
  methods: {
103
103
  handleSubmit() {
104
- console.log('submitting form');
105
104
  this.setAllValidationStates(false);
106
- console.log(this.tournament);
107
105
 
108
106
  if (this.tournament.name === '') this.validation.name = true;
109
107
  if (this.tournament.coordinates === '') this.validation.address = true;
@@ -112,8 +110,7 @@ export default {
112
110
  if (this.tournament.description === '') this.validation.description = true;
113
111
  if (this.tournament.visibility === '') this.validation.visibility = true;
114
112
 
115
- if (this.isFormValid) {
116
- console.log('form is valid');
113
+ if (!this.areAnyFieldsAreLeftInvalid) {
117
114
  this.$emit('update:tournament', this.tournament);
118
115
  this.$emit('update:step', 2);
119
116
  }
@@ -135,7 +132,7 @@ export default {
135
132
  }
136
133
  },
137
134
  computed: {
138
- isFormValid() {
135
+ areAnyFieldsAreLeftInvalid() {
139
136
  return Object.values(this.validation).every(v => v);
140
137
  }
141
138
  }