@dcrackel/hematournamentui 1.0.66 → 1.0.69

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.66",
4
+ "version": "1.0.69",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTouranmentUI-lib.umd.js",
7
7
  "module": "dist/HemaTouranmentUI-lib.es.js",
@@ -0,0 +1,29 @@
1
+ const clubGetAllMock =
2
+ [
3
+ {
4
+ "ClubId": 1,
5
+ "Name": "Test Club",
6
+ "ShortName": "TEST",
7
+ "Description": "This is a test",
8
+ "AddressId": 1,
9
+ "SocialMediaId": null
10
+ },
11
+ {
12
+ "ClubId": 2,
13
+ "Name": "This is a long HEMA club name",
14
+ "ShortName": "TLHC",
15
+ "Description": "is",
16
+ "AddressId": 1,
17
+ "SocialMediaId": null
18
+ },
19
+ {
20
+ "ClubId": 3,
21
+ "Name": "Historical Fencing Club of Longnamed Place",
22
+ "ShortName": "HFoLP",
23
+ "Description": "adsasdf",
24
+ "AddressId": 1,
25
+ "SocialMediaId": null
26
+ }
27
+ ]
28
+
29
+ export default clubGetAllMock;
@@ -0,0 +1,594 @@
1
+ const personGetAllMock =
2
+ [
3
+ {
4
+ "PersonId": 1,
5
+ "DisplayName": "Dwain Crackel",
6
+ "Pronouns": null,
7
+ "FirstName": "Dwain",
8
+ "LastName": "Crackel",
9
+ "Birthday": null,
10
+ "ClubId": 1,
11
+ "PersonEmails": [
12
+ {
13
+ "EmailId": 2,
14
+ "EmailAddress": "dcrackel@gmail.com",
15
+ "PersonId": 1,
16
+ "IsPrimary": true
17
+ }
18
+ ],
19
+ "Images": [
20
+ {
21
+ "ImageId": 7,
22
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg",
23
+ "AltText": null,
24
+ "Type": "Portrait",
25
+ "EntityId": 1,
26
+ "EntityType": "Person"
27
+ }
28
+ ],
29
+ "Club": {
30
+ "ClubId": 1,
31
+ "Name": "Test Club",
32
+ "ShortName": "TEST",
33
+ "Description": "This is a test",
34
+ "AddressId": 1,
35
+ "SocialMediaId": null
36
+ },
37
+ "HEMARatings": [
38
+ {
39
+ "Id": 4,
40
+ "PersonId": 1,
41
+ "Rank": 1500,
42
+ "Rating": 1200.5,
43
+ "WeaponId": 4,
44
+ "Updated": "2024-05-30T13:40:04.000Z"
45
+ },
46
+ {
47
+ "Id": 1,
48
+ "PersonId": 1,
49
+ "Rank": 1700,
50
+ "Rating": 1200.2,
51
+ "WeaponId": 1,
52
+ "Updated": "2024-05-30T17:39:47.000Z"
53
+ }
54
+ ],
55
+ "M2Ratings": [
56
+ {
57
+ "id": 4,
58
+ "PersonId": 1,
59
+ "EventId": 1,
60
+ "WeaponId": 2,
61
+ "Rating": "C",
62
+ "DateEarned": "2024-05-30"
63
+ },
64
+ {
65
+ "id": 1,
66
+ "PersonId": 1,
67
+ "EventId": 1,
68
+ "WeaponId": 1,
69
+ "Rating": "E",
70
+ "DateEarned": "2024-05-30"
71
+ }
72
+ ],
73
+ "ProfileImage": {
74
+ "ImageId": 7,
75
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg",
76
+ "AltText": null,
77
+ "Type": "Portrait",
78
+ "EntityId": 1,
79
+ "EntityType": "Person"
80
+ }
81
+ },
82
+ {
83
+ "PersonId": 2,
84
+ "DisplayName": "Kyle Edwards",
85
+ "Pronouns": "They/Them",
86
+ "FirstName": "Kyle",
87
+ "LastName": "Edwards",
88
+ "Birthday": null,
89
+ "ClubId": 2,
90
+ "PersonEmails": [
91
+ {
92
+ "EmailId": 3,
93
+ "EmailAddress": "tlou@gmail.com",
94
+ "PersonId": 2,
95
+ "IsPrimary": true
96
+ },
97
+ {
98
+ "EmailId": 4,
99
+ "EmailAddress": "tblouey@hotmail.com",
100
+ "PersonId": 2,
101
+ "IsPrimary": false
102
+ }
103
+ ],
104
+ "Images": [],
105
+ "Club": {
106
+ "ClubId": 2,
107
+ "Name": "This is a long HEMA club name",
108
+ "ShortName": "TLHC",
109
+ "Description": "is",
110
+ "AddressId": 1,
111
+ "SocialMediaId": null
112
+ },
113
+ "HEMARatings": [
114
+ {
115
+ "Id": 5,
116
+ "PersonId": 2,
117
+ "Rank": 1500,
118
+ "Rating": 1302.4,
119
+ "WeaponId": 5,
120
+ "Updated": "2024-05-30T17:40:56.000Z"
121
+ },
122
+ {
123
+ "Id": 2,
124
+ "PersonId": 2,
125
+ "Rank": 1756,
126
+ "Rating": 1223.8,
127
+ "WeaponId": 1,
128
+ "Updated": "2024-05-30T17:39:47.000Z"
129
+ }
130
+ ],
131
+ "M2Ratings": [
132
+ {
133
+ "id": 2,
134
+ "PersonId": 2,
135
+ "EventId": 1,
136
+ "WeaponId": 1,
137
+ "Rating": "D",
138
+ "DateEarned": "2024-05-22"
139
+ }
140
+ ],
141
+ "ProfileImage": null
142
+ },
143
+ {
144
+ "PersonId": 3,
145
+ "DisplayName": "Dave Larabee",
146
+ "Pronouns": null,
147
+ "FirstName": "Dave",
148
+ "LastName": "Larabee",
149
+ "Birthday": null,
150
+ "ClubId": 3,
151
+ "PersonEmails": [
152
+ {
153
+ "EmailId": 5,
154
+ "EmailAddress": "davesmith@gmail.com",
155
+ "PersonId": 3,
156
+ "IsPrimary": true
157
+ },
158
+ {
159
+ "EmailId": 6,
160
+ "EmailAddress": "cwagner@rivera-villanueva.info",
161
+ "PersonId": 3,
162
+ "IsPrimary": true
163
+ }
164
+ ],
165
+ "Images": [],
166
+ "Club": {
167
+ "ClubId": 3,
168
+ "Name": "Historical Fencing Club of Longnamed Place",
169
+ "ShortName": "HFoLP",
170
+ "Description": "adsasdf",
171
+ "AddressId": 1,
172
+ "SocialMediaId": null
173
+ },
174
+ "HEMARatings": [],
175
+ "M2Ratings": [
176
+ {
177
+ "id": 3,
178
+ "PersonId": 3,
179
+ "EventId": 1,
180
+ "WeaponId": 1,
181
+ "Rating": "C",
182
+ "DateEarned": "2024-05-30"
183
+ }
184
+ ],
185
+ "ProfileImage": null
186
+ },
187
+ {
188
+ "PersonId": 4,
189
+ "DisplayName": "Kim Bullock",
190
+ "Pronouns": "He/Him",
191
+ "FirstName": "Kim",
192
+ "LastName": "Bullock",
193
+ "Birthday": "1963-07-09",
194
+ "ClubId": 1,
195
+ "PersonEmails": [
196
+ {
197
+ "EmailId": 7,
198
+ "EmailAddress": "samuelharrison@velazquez.net",
199
+ "PersonId": 4,
200
+ "IsPrimary": true
201
+ }
202
+ ],
203
+ "Images": [
204
+ {
205
+ "ImageId": 8,
206
+ "URL": "https://randomuser.me/api/portraits/women/9.jpg",
207
+ "AltText": null,
208
+ "Type": "Portrait",
209
+ "EntityId": 4,
210
+ "EntityType": "Person"
211
+ }
212
+ ],
213
+ "Club": {
214
+ "ClubId": 1,
215
+ "Name": "Test Club",
216
+ "ShortName": "TEST",
217
+ "Description": "This is a test",
218
+ "AddressId": 1,
219
+ "SocialMediaId": null
220
+ },
221
+ "HEMARatings": [
222
+ {
223
+ "Id": 6,
224
+ "PersonId": 4,
225
+ "Rank": 1234,
226
+ "Rating": 1235.6,
227
+ "WeaponId": 1,
228
+ "Updated": "2024-05-30T17:42:12.000Z"
229
+ }
230
+ ],
231
+ "M2Ratings": [],
232
+ "ProfileImage": {
233
+ "ImageId": 8,
234
+ "URL": "https://randomuser.me/api/portraits/women/9.jpg",
235
+ "AltText": null,
236
+ "Type": "Portrait",
237
+ "EntityId": 4,
238
+ "EntityType": "Person"
239
+ }
240
+ },
241
+ {
242
+ "PersonId": 5,
243
+ "DisplayName": "Darlene Acevedo",
244
+ "Pronouns": "He/Him",
245
+ "FirstName": "Darlene",
246
+ "LastName": "Acevedo",
247
+ "Birthday": "1992-08-11",
248
+ "ClubId": 2,
249
+ "PersonEmails": [
250
+ {
251
+ "EmailId": 8,
252
+ "EmailAddress": "knicholson@hotmail.com",
253
+ "PersonId": 5,
254
+ "IsPrimary": true
255
+ }
256
+ ],
257
+ "Images": [],
258
+ "Club": {
259
+ "ClubId": 2,
260
+ "Name": "This is a long HEMA club name",
261
+ "ShortName": "TLHC",
262
+ "Description": "is",
263
+ "AddressId": 1,
264
+ "SocialMediaId": null
265
+ },
266
+ "HEMARatings": [],
267
+ "M2Ratings": [],
268
+ "ProfileImage": null
269
+ },
270
+ {
271
+ "PersonId": 6,
272
+ "DisplayName": "Courtney Medina",
273
+ "Pronouns": "They/Them",
274
+ "FirstName": "Courtney",
275
+ "LastName": "Medina",
276
+ "Birthday": "1983-09-25",
277
+ "ClubId": 3,
278
+ "PersonEmails": [
279
+ {
280
+ "EmailId": 9,
281
+ "EmailAddress": "jacquelinehill@davis.biz",
282
+ "PersonId": 6,
283
+ "IsPrimary": true
284
+ }
285
+ ],
286
+ "Images": [],
287
+ "Club": {
288
+ "ClubId": 3,
289
+ "Name": "Historical Fencing Club of Longnamed Place",
290
+ "ShortName": "HFoLP",
291
+ "Description": "adsasdf",
292
+ "AddressId": 1,
293
+ "SocialMediaId": null
294
+ },
295
+ "HEMARatings": [],
296
+ "M2Ratings": [],
297
+ "ProfileImage": null
298
+ },
299
+ {
300
+ "PersonId": 7,
301
+ "DisplayName": "Emily Carlson",
302
+ "Pronouns": "He/Him",
303
+ "FirstName": "Emily",
304
+ "LastName": "Carlson",
305
+ "Birthday": "1997-06-13",
306
+ "ClubId": 1,
307
+ "PersonEmails": [
308
+ {
309
+ "EmailId": 10,
310
+ "EmailAddress": "wgonzalez@yahoo.com",
311
+ "PersonId": 7,
312
+ "IsPrimary": true
313
+ }
314
+ ],
315
+ "Images": [],
316
+ "Club": {
317
+ "ClubId": 1,
318
+ "Name": "Test Club",
319
+ "ShortName": "TEST",
320
+ "Description": "This is a test",
321
+ "AddressId": 1,
322
+ "SocialMediaId": null
323
+ },
324
+ "HEMARatings": [],
325
+ "M2Ratings": [],
326
+ "ProfileImage": null
327
+ },
328
+ {
329
+ "PersonId": 8,
330
+ "DisplayName": "Julie Riddle",
331
+ "Pronouns": "He/Him",
332
+ "FirstName": "Julie",
333
+ "LastName": "Riddle",
334
+ "Birthday": "1984-07-18",
335
+ "ClubId": 2,
336
+ "PersonEmails": [],
337
+ "Images": [],
338
+ "Club": {
339
+ "ClubId": 2,
340
+ "Name": "This is a long HEMA club name",
341
+ "ShortName": "TLHC",
342
+ "Description": "is",
343
+ "AddressId": 1,
344
+ "SocialMediaId": null
345
+ },
346
+ "HEMARatings": [],
347
+ "M2Ratings": [],
348
+ "ProfileImage": null
349
+ },
350
+ {
351
+ "PersonId": 9,
352
+ "DisplayName": "Sean McCoy",
353
+ "Pronouns": "He/Him",
354
+ "FirstName": "Sean",
355
+ "LastName": "McCoy",
356
+ "Birthday": "1989-10-14",
357
+ "ClubId": 3,
358
+ "PersonEmails": [],
359
+ "Images": [],
360
+ "Club": {
361
+ "ClubId": 3,
362
+ "Name": "Historical Fencing Club of Longnamed Place",
363
+ "ShortName": "HFoLP",
364
+ "Description": "adsasdf",
365
+ "AddressId": 1,
366
+ "SocialMediaId": null
367
+ },
368
+ "HEMARatings": [],
369
+ "M2Ratings": [],
370
+ "ProfileImage": null
371
+ },
372
+ {
373
+ "PersonId": 10,
374
+ "DisplayName": "Melissa Jones",
375
+ "Pronouns": "She/Her",
376
+ "FirstName": "Melissa",
377
+ "LastName": "Jones",
378
+ "Birthday": "1993-10-14",
379
+ "ClubId": 1,
380
+ "PersonEmails": [],
381
+ "Images": [],
382
+ "Club": {
383
+ "ClubId": 1,
384
+ "Name": "Test Club",
385
+ "ShortName": "TEST",
386
+ "Description": "This is a test",
387
+ "AddressId": 1,
388
+ "SocialMediaId": null
389
+ },
390
+ "HEMARatings": [],
391
+ "M2Ratings": [],
392
+ "ProfileImage": null
393
+ },
394
+ {
395
+ "PersonId": 11,
396
+ "DisplayName": "Sylvia Lee",
397
+ "Pronouns": "She/Her",
398
+ "FirstName": "Sylvia",
399
+ "LastName": "Lee",
400
+ "Birthday": "1963-12-28",
401
+ "ClubId": 3,
402
+ "PersonEmails": [],
403
+ "Images": [],
404
+ "Club": {
405
+ "ClubId": 3,
406
+ "Name": "Historical Fencing Club of Longnamed Place",
407
+ "ShortName": "HFoLP",
408
+ "Description": "adsasdf",
409
+ "AddressId": 1,
410
+ "SocialMediaId": null
411
+ },
412
+ "HEMARatings": [],
413
+ "M2Ratings": [],
414
+ "ProfileImage": null
415
+ },
416
+ {
417
+ "PersonId": 12,
418
+ "DisplayName": "Lindsey Mitchell",
419
+ "Pronouns": "They/Them",
420
+ "FirstName": "Lindsey",
421
+ "LastName": "Mitchell",
422
+ "Birthday": "1977-06-17",
423
+ "ClubId": 2,
424
+ "PersonEmails": [],
425
+ "Images": [],
426
+ "Club": {
427
+ "ClubId": 2,
428
+ "Name": "This is a long HEMA club name",
429
+ "ShortName": "TLHC",
430
+ "Description": "is",
431
+ "AddressId": 1,
432
+ "SocialMediaId": null
433
+ },
434
+ "HEMARatings": [],
435
+ "M2Ratings": [],
436
+ "ProfileImage": null
437
+ },
438
+ {
439
+ "PersonId": 13,
440
+ "DisplayName": "Jarrett Anderson",
441
+ "Pronouns": "He/Him",
442
+ "FirstName": "Jarrett",
443
+ "LastName": "Anderson",
444
+ "Birthday": "1970-09-15",
445
+ "ClubId": 1,
446
+ "PersonEmails": [],
447
+ "Images": [],
448
+ "Club": {
449
+ "ClubId": 1,
450
+ "Name": "Test Club",
451
+ "ShortName": "TEST",
452
+ "Description": "This is a test",
453
+ "AddressId": 1,
454
+ "SocialMediaId": null
455
+ },
456
+ "HEMARatings": [],
457
+ "M2Ratings": [],
458
+ "ProfileImage": null
459
+ },
460
+ {
461
+ "PersonId": 14,
462
+ "DisplayName": "Jordan Allen",
463
+ "Pronouns": "They/Them",
464
+ "FirstName": "Jordan",
465
+ "LastName": "Allen",
466
+ "Birthday": "1995-08-12",
467
+ "ClubId": 2,
468
+ "PersonEmails": [],
469
+ "Images": [],
470
+ "Club": {
471
+ "ClubId": 2,
472
+ "Name": "This is a long HEMA club name",
473
+ "ShortName": "TLHC",
474
+ "Description": "is",
475
+ "AddressId": 1,
476
+ "SocialMediaId": null
477
+ },
478
+ "HEMARatings": [],
479
+ "M2Ratings": [],
480
+ "ProfileImage": null
481
+ },
482
+ {
483
+ "PersonId": 15,
484
+ "DisplayName": "David Peters",
485
+ "Pronouns": "They/Them",
486
+ "FirstName": "David",
487
+ "LastName": "Peters",
488
+ "Birthday": "2005-03-06",
489
+ "ClubId": 3,
490
+ "PersonEmails": [],
491
+ "Images": [],
492
+ "Club": {
493
+ "ClubId": 3,
494
+ "Name": "Historical Fencing Club of Longnamed Place",
495
+ "ShortName": "HFoLP",
496
+ "Description": "adsasdf",
497
+ "AddressId": 1,
498
+ "SocialMediaId": null
499
+ },
500
+ "HEMARatings": [],
501
+ "M2Ratings": [],
502
+ "ProfileImage": null
503
+ },
504
+ {
505
+ "PersonId": 16,
506
+ "DisplayName": "Christian Jacob Peralta",
507
+ "Pronouns": "He/Him",
508
+ "FirstName": "Christian",
509
+ "LastName": "Jacob Peralta",
510
+ "Birthday": "1987-08-31",
511
+ "ClubId": 1,
512
+ "PersonEmails": [],
513
+ "Images": [],
514
+ "Club": {
515
+ "ClubId": 1,
516
+ "Name": "Test Club",
517
+ "ShortName": "TEST",
518
+ "Description": "This is a test",
519
+ "AddressId": 1,
520
+ "SocialMediaId": null
521
+ },
522
+ "HEMARatings": [],
523
+ "M2Ratings": [],
524
+ "ProfileImage": null
525
+ },
526
+ {
527
+ "PersonId": 17,
528
+ "DisplayName": "Brendan Morris",
529
+ "Pronouns": "Him",
530
+ "FirstName": "Brendan",
531
+ "LastName": "Morris",
532
+ "Birthday": "1994-12-11",
533
+ "ClubId": 2,
534
+ "PersonEmails": [],
535
+ "Images": [],
536
+ "Club": {
537
+ "ClubId": 2,
538
+ "Name": "This is a long HEMA club name",
539
+ "ShortName": "TLHC",
540
+ "Description": "is",
541
+ "AddressId": 1,
542
+ "SocialMediaId": null
543
+ },
544
+ "HEMARatings": [],
545
+ "M2Ratings": [],
546
+ "ProfileImage": null
547
+ },
548
+ {
549
+ "PersonId": 18,
550
+ "DisplayName": "Sean Hanson",
551
+ "Pronouns": "He/Him",
552
+ "FirstName": "Sean",
553
+ "LastName": "Hanson",
554
+ "Birthday": "1978-03-04",
555
+ "ClubId": 3,
556
+ "PersonEmails": [],
557
+ "Images": [],
558
+ "Club": {
559
+ "ClubId": 3,
560
+ "Name": "Historical Fencing Club of Longnamed Place",
561
+ "ShortName": "HFoLP",
562
+ "Description": "adsasdf",
563
+ "AddressId": 1,
564
+ "SocialMediaId": null
565
+ },
566
+ "HEMARatings": [],
567
+ "M2Ratings": [],
568
+ "ProfileImage": null
569
+ },
570
+ {
571
+ "PersonId": 19,
572
+ "DisplayName": "David Frederick",
573
+ "Pronouns": "He/Him",
574
+ "FirstName": "David",
575
+ "LastName": "Frederick",
576
+ "Birthday": "1993-11-21",
577
+ "ClubId": 1,
578
+ "PersonEmails": [],
579
+ "Images": [],
580
+ "Club": {
581
+ "ClubId": 1,
582
+ "Name": "Test Club",
583
+ "ShortName": "TEST",
584
+ "Description": "This is a test",
585
+ "AddressId": 1,
586
+ "SocialMediaId": null
587
+ },
588
+ "HEMARatings": [],
589
+ "M2Ratings": [],
590
+ "ProfileImage": null
591
+ }
592
+ ];
593
+
594
+ export default personGetAllMock;
@@ -1,24 +1,19 @@
1
1
  <template>
2
2
  <div v-if="show" class="fixed inset-0 bg-secondary bg-opacity-50 overflow-y-auto h-full w-full z-20" @click="close">
3
3
  <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-neutral" @click.stop>
4
-
5
- <!-- Close icon wrapper with absolute positioning -->
6
4
  <div class="absolute top-3 right-3">
7
5
  <BaseIcon icon-name="fa-circle-xmark" size="lg" color="quaternary" hover="alarm" @click="close" />
8
6
  </div>
9
-
10
7
  <div class="mt-3 text-center w-full">
11
8
  <div class="w-full flex flex-row justify-center mb-8">
12
9
  <p :class="['bg-' + iconBackgroundColor, 'flex flex-row justify-center h-20 w-20 rounded-full', 'border border-' + iconBorderColor]">
13
10
  <BaseIcon :icon-name="iconName" iconStyle="fa-solid" size="4xl" :color="iconColor" class="mb-3 mt-5" data-testid="base-icon" />
14
11
  </p>
15
12
  </div>
16
-
17
13
  <slot name="modal-content">
18
14
  <BaseText :text="headerText" size="2xl" weight="bold" color="secondary" class="m-3" data-testid="text-title"/>
19
15
  <BaseText :text="bodyText" size="sm" weight="normal" color="primaryHighlight" class="mb-3" data-testid="text-title"/>
20
16
  </slot>
21
-
22
17
  <div class="mt-4">
23
18
  <BaseButton :label="buttonText" size="sm" type="secondary" :selected="true" @click="submit" color="neutral" class="w-full" data-testid="base-button"/>
24
19
  </div>
@@ -34,7 +29,7 @@ import BaseButton from "../../Buttons/BaseButton/BaseButton.vue";
34
29
 
35
30
  export default {
36
31
  name: "BaseModal",
37
- components: {BaseButton, BaseIcon, BaseText},
32
+ components: { BaseButton, BaseIcon, BaseText },
38
33
  props: {
39
34
  show: {
40
35
  type: Boolean,
@@ -70,14 +65,19 @@ export default {
70
65
  }
71
66
  },
72
67
  emits: ['update:show', 'submit-modal'],
68
+ watch: {
69
+ show(newValue) {
70
+ console.log(`BaseModal show prop changed to: ${newValue}`);
71
+ }
72
+ },
73
73
  methods: {
74
74
  close() {
75
- this.$emit('update:show', false)
75
+ this.$emit('update:show', false);
76
76
  },
77
77
  submit() {
78
78
  this.$emit('submit-modal');
79
79
  this.close();
80
- },
80
+ }
81
81
  }
82
82
  };
83
- </script>
83
+ </script>