@dcrackel/hematournamentui 1.0.201 → 1.0.203

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.201",
4
+ "version": "1.0.203",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -51,17 +51,17 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@chromatic-com/storybook": "^1.6.1",
54
- "@storybook/addon-actions": "^8.2.4",
55
- "@storybook/addon-docs": "^8.2.4",
56
- "@storybook/addon-essentials": "^8.2.4",
57
- "@storybook/addon-interactions": "^8.2.4",
58
- "@storybook/addon-links": "^8.2.4",
59
- "@storybook/addon-mdx-gfm": "^8.2.4",
60
- "@storybook/blocks": "^8.2.4",
61
- "@storybook/react": "^8.2.4",
62
- "@storybook/test": "^8.2.4",
63
- "@storybook/vue3": "^8.2.4",
64
- "@storybook/vue3-vite": "^8.2.4",
54
+ "@storybook/addon-actions": "^8.2.6",
55
+ "@storybook/addon-docs": "^8.2.6",
56
+ "@storybook/addon-essentials": "^8.2.6",
57
+ "@storybook/addon-interactions": "^8.2.6",
58
+ "@storybook/addon-links": "^8.2.6",
59
+ "@storybook/addon-mdx-gfm": "^8.2.6",
60
+ "@storybook/blocks": "^8.2.6",
61
+ "@storybook/react": "^8.2.6",
62
+ "@storybook/test": "^8.2.6",
63
+ "@storybook/vue3": "^8.2.6",
64
+ "@storybook/vue3-vite": "^8.2.6",
65
65
  "@vitejs/plugin-vue": "^5.0.0",
66
66
  "@vitest/coverage-v8": "^1.1.0",
67
67
  "@vue/cli-plugin-babel": "^5.0.8",
@@ -70,7 +70,7 @@
70
70
  "eslint": "^8.56.0",
71
71
  "eslint-plugin-storybook": "^0.8.0",
72
72
  "eslint-plugin-vue": "^9.20.1",
73
- "storybook": "^8.2.4",
73
+ "storybook": "^8.2.6",
74
74
  "storybook-vue3-router": "^5.0.0",
75
75
  "tailwindcss": "^3.4.3",
76
76
  "vite": "^5.0.10",
@@ -225,8 +225,8 @@ const mockTournaments = [
225
225
  {
226
226
  "TournamentId": 8,
227
227
  "Name": "Swordathon",
228
- "StartDate": "2023-12-31",
229
- "EndDate": "2024-01-01",
228
+ "StartDate": "2024-07-22",
229
+ "EndDate": "2024-07-23",
230
230
  "Description": "Super fun swords",
231
231
  "ClubId": 1,
232
232
  "AddressId": 1,
@@ -148,6 +148,13 @@ export default {
148
148
  this.showModal = value;
149
149
  this.inputValue = "";
150
150
  },
151
+ clearFields(){
152
+ this.personName = '';
153
+ this.personLegalName = '';
154
+ this.personEmail = '';
155
+ this.selectedPronouns = { text: '', link: '' };
156
+ this.selectedClub = { text: '', link: '' };
157
+ },
151
158
  handleSubmit() {
152
159
  const newPerson = {
153
160
  personName: this.personName,
@@ -158,6 +165,7 @@ export default {
158
165
  };
159
166
  this.$emit('new-person-submitted', newPerson);
160
167
  this.showModal = false;
168
+ this.clearFields();
161
169
  },
162
170
  handleSelectedClub(value) {
163
171
  this.selectedClub = value;
@@ -75,12 +75,11 @@ export default {
75
75
  break;
76
76
  case 'Past':
77
77
  result = result.filter(item => new Date(item.date) < currentDate);
78
- break;
79
78
  }
80
79
 
81
80
  switch(this.sortCriteria) {
82
81
  case 'Date':
83
- result = [...result].sort((a, b) => new Date(a.StartDate) - new Date(b.StartDate));
82
+ result = [...result].sort((a, b) => new Date(b.StartDate) - new Date(a.StartDate));
84
83
  break;
85
84
  case 'Name':
86
85
  result = [...result].sort((a, b) => a.Name.localeCompare(b.Name));