@dcrackel/hematournamentui 1.0.149 → 1.0.150

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.149",
4
+ "version": "1.0.150",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -2,43 +2,398 @@ const eventPersonGetEventById = [
2
2
  {
3
3
  "Id": 97,
4
4
  "EventId": 5,
5
+ "PoolId": 137,
5
6
  "PersonId": 1,
6
- "Seed": 3,
7
- "PoolPosition": null,
8
- "Status": "Absent"
7
+ "Seed": 4,
8
+ "PoolPosition": 4,
9
+ "DEPosition": 1,
10
+ "Status": "Present",
11
+ "Person": {
12
+ "PersonId": 1,
13
+ "FirstName": "Dave",
14
+ "LastName": "Smith",
15
+ "Images": [
16
+ {
17
+ "ImageId": 7,
18
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg",
19
+ "AltText": null,
20
+ "Type": "Portrait",
21
+ "EntityId": 1,
22
+ "EntityType": "Person"
23
+ }
24
+ ],
25
+ "Club": {
26
+ "ClubId": 4,
27
+ "Name": "Guardians of the Guard",
28
+ "ShortName": "GotG",
29
+ "Description": "Guardians of the Guard",
30
+ "AddressId": 1,
31
+ "Color1": "purple",
32
+ "Color2": "orange"
33
+ },
34
+ "HEMARatings": [
35
+ {
36
+ "Id": 1,
37
+ "PersonId": 1,
38
+ "Rank": 1700,
39
+ "Rating": 1200.2,
40
+ "WeaponId": 1,
41
+ "Updated": "2024-05-30T17:39:47.000Z"
42
+ }
43
+ ],
44
+ "M2Ratings": [
45
+ {
46
+ "id": 1,
47
+ "PersonId": 1,
48
+ "EventId": 1,
49
+ "WeaponId": 1,
50
+ "Rating": "E24",
51
+ "DateEarned": "2024-05-30"
52
+ }
53
+ ]
54
+ }
9
55
  },
10
56
  {
11
57
  "Id": 102,
12
58
  "EventId": 5,
59
+ "PoolId": 137,
13
60
  "PersonId": 14,
14
- "Seed": 4,
15
- "PoolPosition": null,
16
- "Status": "Absent"
17
- },
18
- {
19
- "Id": 103,
20
- "EventId": 5,
21
- "PersonId": 10,
22
- "Seed": 1,
23
- "PoolPosition": null,
24
- "Status": "Absent"
61
+ "Seed": 5,
62
+ "PoolPosition": 5,
63
+ "DEPosition": 9,
64
+ "Status": "Present",
65
+ "Person": {
66
+ "PersonId": 14,
67
+ "FirstName": "Jordan",
68
+ "LastName": "Allen",
69
+ "Images": [],
70
+ "Club": {
71
+ "ClubId": 5,
72
+ "Name": "Fechtastic Fighters",
73
+ "ShortName": "FF",
74
+ "Description": "Fechtastic Fighters",
75
+ "AddressId": 1,
76
+ "Color1": "green",
77
+ "Color2": "silver"
78
+ },
79
+ "HEMARatings": [
80
+ {
81
+ "Id": 8,
82
+ "PersonId": 14,
83
+ "Rank": 1134,
84
+ "Rating": 1187.2,
85
+ "WeaponId": 1,
86
+ "Updated": "2024-06-01T04:05:26.000Z"
87
+ }
88
+ ],
89
+ "M2Ratings": []
90
+ }
25
91
  },
26
92
  {
27
93
  "Id": 105,
28
94
  "EventId": 5,
95
+ "PoolId": 138,
29
96
  "PersonId": 22,
30
- "Seed": 5,
31
- "PoolPosition": null,
32
- "Status": "Absent"
97
+ "Seed": 6,
98
+ "PoolPosition": 6,
99
+ "DEPosition": 4,
100
+ "Status": "Present",
101
+ "Person": {
102
+ "PersonId": 22,
103
+ "FirstName": "Bob",
104
+ "LastName": "Smith",
105
+ "Images": [
106
+ {
107
+ "ImageId": 12,
108
+ "URL": "https://randomuser.me/api/portraits/men/81.jpg",
109
+ "AltText": null,
110
+ "Type": "Portrait",
111
+ "EntityId": 22,
112
+ "EntityType": "Person"
113
+ }
114
+ ],
115
+ "Club": {
116
+ "ClubId": 6,
117
+ "Name": "SwordPlay Society",
118
+ "ShortName": "SS",
119
+ "Description": "SwordPlay Society",
120
+ "AddressId": 1,
121
+ "Color1": "red",
122
+ "Color2": "blue"
123
+ },
124
+ "HEMARatings": [],
125
+ "M2Ratings": []
126
+ }
33
127
  },
34
128
  {
35
129
  "Id": 106,
36
130
  "EventId": 5,
131
+ "PoolId": 138,
37
132
  "PersonId": 4,
38
133
  "Seed": 2,
39
- "PoolPosition": null,
40
- "Status": "Absent"
134
+ "PoolPosition": 2,
135
+ "DEPosition": 10,
136
+ "Status": "Present",
137
+ "Person": {
138
+ "PersonId": 4,
139
+ "FirstName": "Kim",
140
+ "LastName": "Bullock",
141
+ "Images": [
142
+ {
143
+ "ImageId": 8,
144
+ "URL": "https://randomuser.me/api/portraits/women/45.jpg",
145
+ "AltText": null,
146
+ "Type": "Portrait",
147
+ "EntityId": 4,
148
+ "EntityType": "Person"
149
+ }
150
+ ],
151
+ "Club": {
152
+ "ClubId": 1,
153
+ "Name": "Acme Fencing Club",
154
+ "ShortName": "ACME",
155
+ "Description": "Acme Fencing Club",
156
+ "AddressId": 1,
157
+ "Color1": "rose",
158
+ "Color2": "navy"
159
+ },
160
+ "HEMARatings": [
161
+ {
162
+ "Id": 6,
163
+ "PersonId": 4,
164
+ "Rank": 1234,
165
+ "Rating": 1235.6,
166
+ "WeaponId": 1,
167
+ "Updated": "2024-05-30T17:42:12.000Z"
168
+ }
169
+ ],
170
+ "M2Ratings": []
171
+ }
172
+ },
173
+ {
174
+ "Id": 107,
175
+ "EventId": 5,
176
+ "PoolId": 138,
177
+ "PersonId": 2,
178
+ "Seed": 3,
179
+ "PoolPosition": 3,
180
+ "DEPosition": 6,
181
+ "Status": "Present",
182
+ "Person": {
183
+ "PersonId": 2,
184
+ "FirstName": "Kyle",
185
+ "LastName": "Edwards",
186
+ "Images": [],
187
+ "Club": {
188
+ "ClubId": 6,
189
+ "Name": "SwordPlay Society",
190
+ "ShortName": "SS",
191
+ "Description": "SwordPlay Society",
192
+ "AddressId": 1,
193
+ "Color1": "red",
194
+ "Color2": "blue"
195
+ },
196
+ "HEMARatings": [
197
+ {
198
+ "Id": 2,
199
+ "PersonId": 2,
200
+ "Rank": 1756,
201
+ "Rating": 1223.8,
202
+ "WeaponId": 1,
203
+ "Updated": "2024-05-30T17:39:47.000Z"
204
+ },
205
+ {
206
+ "Id": 7,
207
+ "PersonId": 2,
208
+ "Rank": 900,
209
+ "Rating": 957,
210
+ "WeaponId": 1,
211
+ "Updated": "2024-06-01T04:04:46.000Z"
212
+ }
213
+ ],
214
+ "M2Ratings": [
215
+ {
216
+ "id": 2,
217
+ "PersonId": 2,
218
+ "EventId": 1,
219
+ "WeaponId": 1,
220
+ "Rating": "D24",
221
+ "DateEarned": "2024-05-22"
222
+ }
223
+ ]
224
+ }
225
+ },
226
+ {
227
+ "Id": 108,
228
+ "EventId": 5,
229
+ "PoolId": 138,
230
+ "PersonId": 5,
231
+ "Seed": 7,
232
+ "PoolPosition": 7,
233
+ "DEPosition": 3,
234
+ "Status": "Present",
235
+ "Person": {
236
+ "PersonId": 5,
237
+ "FirstName": "Darlene",
238
+ "LastName": "Acevedo",
239
+ "Images": [
240
+ {
241
+ "ImageId": 22,
242
+ "URL": "https://randomuser.me/api/portraits/women/30.jpg",
243
+ "AltText": null,
244
+ "Type": "Portrait",
245
+ "EntityId": 5,
246
+ "EntityType": "Person"
247
+ }
248
+ ],
249
+ "Club": {
250
+ "ClubId": 9,
251
+ "Name": "Cats Cutlass Club of Canton",
252
+ "ShortName": "CCCoC",
253
+ "Description": null,
254
+ "AddressId": null,
255
+ "Color1": "red",
256
+ "Color2": "blue"
257
+ },
258
+ "HEMARatings": [],
259
+ "M2Ratings": []
260
+ }
261
+ },
262
+ {
263
+ "Id": 109,
264
+ "EventId": 5,
265
+ "PoolId": 137,
266
+ "PersonId": 6,
267
+ "Seed": 8,
268
+ "PoolPosition": 8,
269
+ "DEPosition": 7,
270
+ "Status": "Present",
271
+ "Person": {
272
+ "PersonId": 6,
273
+ "FirstName": "Courtney",
274
+ "LastName": "Medina",
275
+ "Images": [],
276
+ "Club": {
277
+ "ClubId": 3,
278
+ "Name": "Sword & Blade of Callie",
279
+ "ShortName": "SBoC",
280
+ "Description": "adsasdf",
281
+ "AddressId": 1,
282
+ "Color1": "red",
283
+ "Color2": "gold"
284
+ },
285
+ "HEMARatings": [],
286
+ "M2Ratings": []
287
+ }
288
+ },
289
+ {
290
+ "Id": 110,
291
+ "EventId": 5,
292
+ "PoolId": 137,
293
+ "PersonId": 7,
294
+ "Seed": 9,
295
+ "PoolPosition": 9,
296
+ "DEPosition": 8,
297
+ "Status": "Present",
298
+ "Person": {
299
+ "PersonId": 7,
300
+ "FirstName": "Emily",
301
+ "LastName": "Carlson",
302
+ "Images": [],
303
+ "Club": {
304
+ "ClubId": 4,
305
+ "Name": "Guardians of the Guard",
306
+ "ShortName": "GotG",
307
+ "Description": "Guardians of the Guard",
308
+ "AddressId": 1,
309
+ "Color1": "purple",
310
+ "Color2": "orange"
311
+ },
312
+ "HEMARatings": [],
313
+ "M2Ratings": []
314
+ }
315
+ },
316
+ {
317
+ "Id": 111,
318
+ "EventId": 5,
319
+ "PoolId": 138,
320
+ "PersonId": 8,
321
+ "Seed": 10,
322
+ "PoolPosition": 10,
323
+ "DEPosition": 5,
324
+ "Status": "Present",
325
+ "Person": {
326
+ "PersonId": 8,
327
+ "FirstName": "Julie",
328
+ "LastName": "Riddle",
329
+ "Images": [
330
+ {
331
+ "ImageId": 23,
332
+ "URL": "https://randomuser.me/api/portraits/women/41.jpg",
333
+ "AltText": null,
334
+ "Type": "Portrait",
335
+ "EntityId": 8,
336
+ "EntityType": "Person"
337
+ }
338
+ ],
339
+ "Club": {
340
+ "ClubId": 2,
341
+ "Name": "Historical Fencing Of Anywhere",
342
+ "ShortName": "HFoA",
343
+ "Description": "is",
344
+ "AddressId": 1,
345
+ "Color1": "red",
346
+ "Color2": "blue"
347
+ },
348
+ "HEMARatings": [],
349
+ "M2Ratings": []
350
+ }
351
+ },
352
+ {
353
+ "Id": 119,
354
+ "EventId": 5,
355
+ "PoolId": 137,
356
+ "PersonId": 10,
357
+ "Seed": 1,
358
+ "PoolPosition": 1,
359
+ "DEPosition": 2,
360
+ "Status": "Present",
361
+ "Person": {
362
+ "PersonId": 10,
363
+ "FirstName": "Melissa",
364
+ "LastName": "Jones",
365
+ "Images": [
366
+ {
367
+ "ImageId": 21,
368
+ "URL": "https://randomuser.me/api/portraits/women/9.jpg",
369
+ "AltText": null,
370
+ "Type": "Portrait",
371
+ "EntityId": 10,
372
+ "EntityType": "Person"
373
+ }
374
+ ],
375
+ "Club": {
376
+ "ClubId": 4,
377
+ "Name": "Guardians of the Guard",
378
+ "ShortName": "GotG",
379
+ "Description": "Guardians of the Guard",
380
+ "AddressId": 1,
381
+ "Color1": "purple",
382
+ "Color2": "orange"
383
+ },
384
+ "HEMARatings": [
385
+ {
386
+ "Id": 9,
387
+ "PersonId": 10,
388
+ "Rank": 1432,
389
+ "Rating": 1423.4,
390
+ "WeaponId": 1,
391
+ "Updated": "2024-06-01T04:05:44.000Z"
392
+ }
393
+ ],
394
+ "M2Ratings": []
395
+ }
41
396
  }
42
- ]
397
+ ];
43
398
 
44
399
  export default eventPersonGetEventById;
@@ -5,55 +5,7 @@ export default {
5
5
  component: FencerCard,
6
6
  tags: ['autodocs'],
7
7
  args: {
8
- person: {
9
- "Id": 73,
10
- "EventId": 1,
11
- "PersonId": 1,
12
- "Seed": 1,
13
- "Status": "Absent",
14
- "Person": {
15
- "PersonId": 1,
16
- "FirstName": "Dave",
17
- "LastName": "Jones",
18
- "Images": [
19
- {
20
- "ImageId": 7,
21
- "URL": "https://randomuser.me/api/portraits/men/22.jpg",
22
- "AltText": null,
23
- "Type": "Portrait",
24
- "EntityId": 1,
25
- "EntityType": "Person"
26
- }
27
- ],
28
- "Club": {
29
- "ClubId": 1,
30
- "Name": "Test Club",
31
- "Description": "This is a test",
32
- "AddressId": 1,
33
- "SocialMediaId": null
34
- },
35
- "HEMARatings": [
36
- {
37
- "Id": 1,
38
- "PersonId": 1,
39
- "Rank": 1700,
40
- "Rating": 1200.2,
41
- "WeaponId": 1,
42
- "Updated": "2024-05-30T17:39:47.000Z"
43
- }
44
- ],
45
- "M2Ratings": [
46
- {
47
- "id": 1,
48
- "PersonId": 1,
49
- "EventId": 1,
50
- "WeaponId": 1,
51
- "Rating": "E24",
52
- "DateEarned": "2024-05-30"
53
- }
54
- ]
55
- }
56
- }
8
+ person: {}
57
9
  },
58
10
  argTypes: {
59
11
  person: {
@@ -1,5 +1,5 @@
1
1
  import EditEvents from './EventAttendance.vue';
2
- import personsMock from '../../../../mocks/personsMock.js';
2
+ import eventPersonGetEventById from '../../../../mocks/eventpersonGetEventById.js';
3
3
  import personsAllMock from '../../../../mocks/personGetAllMock.js';
4
4
  import eventMock from '../../../../mocks/eventMock.js';
5
5
  import clubsMock from '../../../../mocks/clubGetAllMock.js';
@@ -9,7 +9,7 @@ export default {
9
9
  component: EditEvents,
10
10
  tags: ['autodocs'],
11
11
  args: {
12
- personsInTournament: personsMock,
12
+ personsInTournament: eventPersonGetEventById,
13
13
  personsAll: personsAllMock,
14
14
  fencingClubs: clubsMock,
15
15
  event: eventMock[0]
@@ -52,7 +52,7 @@ export default {
52
52
 
53
53
  export const Default = {
54
54
  args: {
55
- personsInTournament: personsMock,
55
+ personsInTournament: eventPersonGetEventById,
56
56
  personsAll: personsAllMock,
57
57
  fencingClubs: clubsMock,
58
58
  event: eventMock[0]
@@ -8,8 +8,7 @@
8
8
  :weight="'normal'" class="mb-1 ml-1" data-testid="text-cover-image"/>
9
9
  <div class="w-full flex justify-center">
10
10
  <div class="w-3/4">
11
- <ImageCropper :url="tournamentImage" :imageName="`t-${localTournament.TournamentId}`"
12
- @update:url="handleUpdateUrl"/>
11
+ <ImageCropper :url="tournamentImage" :imageName="`t-${localTournament.TournamentId}`" @update:url="handleUpdateUrl"/>
13
12
  </div>
14
13
  </div>
15
14
  </div>
@@ -106,7 +105,6 @@ export default {
106
105
  {id: 'Basic', label: 'Basic', color: 'primaryHighlight'},
107
106
  {id: 'Details', label: 'Details', color: 'primaryHighlight'},
108
107
  {id: 'Events', label: 'Events', color: 'primaryHighlight'},
109
- {id: 'Staff', label: 'Staff', color: 'primaryHighlight'}
110
108
  ]
111
109
  }
112
110
  },
@@ -146,7 +144,7 @@ export default {
146
144
  this.tournament.startDate = newDate;
147
145
  },
148
146
  handleEditorUpdate(newContent) {
149
- this.tournament.description = newContent;
147
+ this.tournament.Description = newContent;
150
148
  },
151
149
  handleSubmit() {
152
150
  this.$emit('update:submit', this.localTournament)
@@ -124,8 +124,7 @@ export default {
124
124
  tabs: [
125
125
  {id: 'Basic', label: 'Basic', color: 'primaryHighlight'},
126
126
  {id: 'Details', label: 'Details', color: 'primaryHighlight'},
127
- {id: 'Events', label: 'Events', color: 'primaryHighlight'},
128
- {id: 'Staff', label: 'Staff', color: 'primaryHighlight'}
127
+ {id: 'Events', label: 'Events', color: 'primaryHighlight'}
129
128
  ],
130
129
  usingM2: true,
131
130
  selectedVisibility: 'Open',