@dcrackel/hematournamentui 1.0.87 → 1.0.88

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.
Files changed (23) hide show
  1. package/dist/HemaTouranmentUI-lib.es.js +6778 -6288
  2. package/dist/HemaTouranmentUI-lib.umd.js +28 -28
  3. package/package.json +1 -1
  4. package/src/index.js +2 -1
  5. package/src/mocks/eventPersonGetInitialPoolAssignments.js +148 -136
  6. package/src/mocks/eventPersonGetInitialPoolAssignments2.js +420 -0
  7. package/src/mocks/eventPersonGetInitialStaff.js +38 -0
  8. package/src/mocks/eventPersonGetPoolAssignmentEvent.js +1 -1
  9. package/src/mocks/getAllStaffByTournamentId.js +80 -0
  10. package/src/stories/Molecules/Boxes/CounterBox/CounterBox.vue +6 -2
  11. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +43 -50
  12. package/src/stories/Organisms/Cards/StaffCard/StaffCard.stories.js +73 -0
  13. package/src/stories/Organisms/Cards/StaffCard/StaffCard.vue +73 -0
  14. package/src/stories/Organisms/Containers/Pool/Pool.vue +21 -7
  15. package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.vue +40 -17
  16. package/src/stories/Organisms/Headers/StaffSummary/StaffSummary.stories.js +35 -0
  17. package/src/stories/Organisms/Headers/StaffSummary/StaffSummary.vue +55 -0
  18. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.stories.js +45 -20
  19. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +81 -31
  20. package/src/stories/Templates/EventManagement/StaffList/StaffList.stories.js +58 -0
  21. package/src/stories/Templates/EventManagement/StaffList/StaffList.vue +136 -0
  22. package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +6 -1
  23. package/tailwind.config.js +2 -0
@@ -0,0 +1,420 @@
1
+ const eventPersonGetInitialPoolAssignments2 =
2
+ [
3
+ {
4
+ "PoolId": 102,
5
+ "Name": "Pool 1",
6
+ "RingName": "Ring 1",
7
+ "Flight": 1,
8
+ "PoolType": "STANDARD",
9
+ "EventId": 5,
10
+ "Status": "preview",
11
+ "Updated": "2024-06-08T04:12:43.000Z",
12
+ "Staff": [
13
+ {
14
+ "Id": 2,
15
+ "TournamentId": 4,
16
+ "EventId": 5,
17
+ "PoolId": 102,
18
+ "PersonId": 23,
19
+ "Role": "Director",
20
+ "Person": {
21
+ "DisplayName": "Lucas Garcia"
22
+ }
23
+ },
24
+ {
25
+ "Id": 4,
26
+ "TournamentId": 4,
27
+ "EventId": 5,
28
+ "PoolId": 102,
29
+ "PersonId": 22,
30
+ "Role": "Line Judge",
31
+ "Person": {
32
+ "DisplayName": "Bob Smith"
33
+ }
34
+ }
35
+ ],
36
+ "participants": [
37
+ {
38
+ "Id": 103,
39
+ "EventId": 5,
40
+ "PersonId": 10,
41
+ "Seed": 1,
42
+ "PoolPosition": 1,
43
+ "Status": "Absent",
44
+ "Person": {
45
+ "PersonId": 10,
46
+ "DisplayName": "Melissa Jones",
47
+ "Pronouns": "She/Her",
48
+ "FirstName": "Melissa",
49
+ "LastName": "Jones",
50
+ "Birthday": "1993-10-14",
51
+ "ClubId": 4,
52
+ "ShowData": true,
53
+ "Club": {
54
+ "ClubId": 4,
55
+ "Name": "Guardians of the Guard",
56
+ "ShortName": "GotG",
57
+ "Description": "Guardians of the Guard",
58
+ "AddressId": 1,
59
+ "SocialMedia": [
60
+ {
61
+ "Type": "Web",
62
+ "Link": "https://meyersquared.com/images/Club9.png",
63
+ "Label": null
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "Id": 109,
71
+ "EventId": 5,
72
+ "PersonId": 6,
73
+ "Seed": 8,
74
+ "PoolPosition": 8,
75
+ "Status": "Absent",
76
+ "Person": {
77
+ "PersonId": 6,
78
+ "DisplayName": "Courtney Medina",
79
+ "Pronouns": "They/Them",
80
+ "FirstName": "Courtney",
81
+ "LastName": "Medina",
82
+ "Birthday": "1983-09-25",
83
+ "ClubId": 3,
84
+ "ShowData": true,
85
+ "Club": {
86
+ "ClubId": 3,
87
+ "Name": "Sword & Blade of Callie",
88
+ "ShortName": "SBoC",
89
+ "Description": "adsasdf",
90
+ "AddressId": 1,
91
+ "SocialMedia": [
92
+ {
93
+ "Type": "Web",
94
+ "Link": "https://meyersquared.com/images/Club8.png",
95
+ "Label": null
96
+ }
97
+ ]
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "Id": 110,
103
+ "EventId": 5,
104
+ "PersonId": 7,
105
+ "Seed": 9,
106
+ "PoolPosition": 9,
107
+ "Status": "Absent",
108
+ "Person": {
109
+ "PersonId": 7,
110
+ "DisplayName": "Emily Carlson",
111
+ "Pronouns": "He/Him",
112
+ "FirstName": "Emily",
113
+ "LastName": "Carlson",
114
+ "Birthday": "1997-06-13",
115
+ "ClubId": 4,
116
+ "ShowData": true,
117
+ "Club": {
118
+ "ClubId": 4,
119
+ "Name": "Guardians of the Guard",
120
+ "ShortName": "GotG",
121
+ "Description": "Guardians of the Guard",
122
+ "AddressId": 1,
123
+ "SocialMedia": [
124
+ {
125
+ "Type": "Web",
126
+ "Link": "https://meyersquared.com/images/Club9.png",
127
+ "Label": null
128
+ }
129
+ ]
130
+ }
131
+ }
132
+ }
133
+ ],
134
+ "poolStrength": 18,
135
+ "poolStrengthInd": 4
136
+ },
137
+ {
138
+ "PoolId": 103,
139
+ "Name": "Pool 2",
140
+ "RingName": "Ring 2",
141
+ "Flight": 1,
142
+ "PoolType": "STANDARD",
143
+ "EventId": 5,
144
+ "Status": "preview",
145
+ "Updated": "2024-06-08T04:12:43.000Z",
146
+ "Staff": [
147
+ {
148
+ "Id": 3,
149
+ "TournamentId": 4,
150
+ "EventId": 5,
151
+ "PoolId": 103,
152
+ "PersonId": 24,
153
+ "Role": "Director",
154
+ "Person": {
155
+ "DisplayName": "Mia Rodriguez"
156
+ }
157
+ }
158
+ ],
159
+ "participants": [
160
+ {
161
+ "Id": 106,
162
+ "EventId": 5,
163
+ "PersonId": 4,
164
+ "Seed": 2,
165
+ "PoolPosition": 2,
166
+ "Status": "Absent",
167
+ "Person": {
168
+ "PersonId": 4,
169
+ "DisplayName": "Kim Bullock",
170
+ "Pronouns": "He/Him",
171
+ "FirstName": "Kim",
172
+ "LastName": "Bullock",
173
+ "Birthday": "1963-07-09",
174
+ "ClubId": 1,
175
+ "ShowData": true,
176
+ "Club": {
177
+ "ClubId": 1,
178
+ "Name": "Acme Fencing Club",
179
+ "ShortName": "ACME",
180
+ "Description": "Acme Fencing Club",
181
+ "AddressId": 1,
182
+ "SocialMedia": [
183
+ {
184
+ "Type": "Web",
185
+ "Link": "https://meyersquared.com/images/Club6.png",
186
+ "Label": null
187
+ }
188
+ ]
189
+ }
190
+ }
191
+ },
192
+ {
193
+ "Id": 108,
194
+ "EventId": 5,
195
+ "PersonId": 5,
196
+ "Seed": 7,
197
+ "PoolPosition": 7,
198
+ "Status": "Absent",
199
+ "Person": {
200
+ "PersonId": 5,
201
+ "DisplayName": "Darlene Acevedo",
202
+ "Pronouns": "He/Him",
203
+ "FirstName": "Darlene",
204
+ "LastName": "Acevedo",
205
+ "Birthday": "1992-08-11",
206
+ "ClubId": 9,
207
+ "ShowData": true,
208
+ "Club": {
209
+ "ClubId": 9,
210
+ "Name": "Cats Cutlass Club of Canton",
211
+ "ShortName": "CCCoC",
212
+ "Description": null,
213
+ "AddressId": null,
214
+ "SocialMedia": [
215
+ {
216
+ "Type": "Web",
217
+ "Link": "https://meyersquared.com/images/Club12.png",
218
+ "Label": null
219
+ }
220
+ ]
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "Id": 111,
226
+ "EventId": 5,
227
+ "PersonId": 8,
228
+ "Seed": 10,
229
+ "PoolPosition": 10,
230
+ "Status": "Absent",
231
+ "Person": {
232
+ "PersonId": 8,
233
+ "DisplayName": "Julie Riddle",
234
+ "Pronouns": "He/Him",
235
+ "FirstName": "Julie",
236
+ "LastName": "Riddle",
237
+ "Birthday": "1984-07-18",
238
+ "ClubId": 2,
239
+ "ShowData": true,
240
+ "Club": {
241
+ "ClubId": 2,
242
+ "Name": "Historical Fencing Of Anywhere",
243
+ "ShortName": "HFoA",
244
+ "Description": "is",
245
+ "AddressId": 1,
246
+ "SocialMedia": [
247
+ {
248
+ "Type": "Web",
249
+ "Link": "https://meyersquared.com/images/Club7.png",
250
+ "Label": null
251
+ }
252
+ ]
253
+ }
254
+ }
255
+ }
256
+ ],
257
+ "poolStrength": 19,
258
+ "poolStrengthInd": 5
259
+ },
260
+ {
261
+ "PoolId": 105,
262
+ "Name": "Pool 3",
263
+ "RingName": "Ring 1",
264
+ "Flight": 2,
265
+ "PoolType": "STANDARD",
266
+ "EventId": 5,
267
+ "Status": "preview",
268
+ "Updated": "2024-06-08T04:16:56.000Z",
269
+ "Staff": [],
270
+ "participants": [
271
+ {
272
+ "Id": 107,
273
+ "EventId": 5,
274
+ "PersonId": 2,
275
+ "Seed": 3,
276
+ "PoolPosition": 3,
277
+ "Status": "Absent",
278
+ "Person": {
279
+ "PersonId": 2,
280
+ "DisplayName": "Kyle Edwards",
281
+ "Pronouns": "They/Them",
282
+ "FirstName": "Kyle",
283
+ "LastName": "Edwards",
284
+ "Birthday": null,
285
+ "ClubId": 6,
286
+ "ShowData": true,
287
+ "Club": {
288
+ "ClubId": 6,
289
+ "Name": "SwordPlay Society",
290
+ "ShortName": "SS",
291
+ "Description": "SwordPlay Society",
292
+ "AddressId": 1,
293
+ "SocialMedia": [
294
+ {
295
+ "Type": "Web",
296
+ "Link": "https://meyersquared.com/images/Club1.jpg",
297
+ "Label": null
298
+ }
299
+ ]
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "Id": 105,
305
+ "EventId": 5,
306
+ "PersonId": 22,
307
+ "Seed": 6,
308
+ "PoolPosition": 6,
309
+ "Status": "Absent",
310
+ "Person": {
311
+ "PersonId": 22,
312
+ "DisplayName": "Bob Smith",
313
+ "Pronouns": "He/Him",
314
+ "FirstName": "Bob",
315
+ "LastName": "Smith",
316
+ "Birthday": "2024-06-06",
317
+ "ClubId": 6,
318
+ "ShowData": true,
319
+ "Club": {
320
+ "ClubId": 6,
321
+ "Name": "SwordPlay Society",
322
+ "ShortName": "SS",
323
+ "Description": "SwordPlay Society",
324
+ "AddressId": 1,
325
+ "SocialMedia": [
326
+ {
327
+ "Type": "Web",
328
+ "Link": "https://meyersquared.com/images/Club1.jpg",
329
+ "Label": null
330
+ }
331
+ ]
332
+ }
333
+ }
334
+ }
335
+ ],
336
+ "poolStrength": 9,
337
+ "poolStrengthInd": -5
338
+ },
339
+ {
340
+ "PoolId": 106,
341
+ "Name": "Pool 4",
342
+ "RingName": "Ring 2",
343
+ "Flight": 2,
344
+ "PoolType": "STANDARD",
345
+ "EventId": 5,
346
+ "Status": "preview",
347
+ "Updated": "2024-06-08T04:16:57.000Z",
348
+ "Staff": [],
349
+ "participants": [
350
+ {
351
+ "Id": 97,
352
+ "EventId": 5,
353
+ "PersonId": 1,
354
+ "Seed": 4,
355
+ "PoolPosition": 4,
356
+ "Status": "Absent",
357
+ "Person": {
358
+ "PersonId": 1,
359
+ "DisplayName": "Dave Smith",
360
+ "Pronouns": null,
361
+ "FirstName": "Dave",
362
+ "LastName": "Smith",
363
+ "Birthday": null,
364
+ "ClubId": 4,
365
+ "ShowData": true,
366
+ "Club": {
367
+ "ClubId": 4,
368
+ "Name": "Guardians of the Guard",
369
+ "ShortName": "GotG",
370
+ "Description": "Guardians of the Guard",
371
+ "AddressId": 1,
372
+ "SocialMedia": [
373
+ {
374
+ "Type": "Web",
375
+ "Link": "https://meyersquared.com/images/Club9.png",
376
+ "Label": null
377
+ }
378
+ ]
379
+ }
380
+ }
381
+ },
382
+ {
383
+ "Id": 102,
384
+ "EventId": 5,
385
+ "PersonId": 14,
386
+ "Seed": 5,
387
+ "PoolPosition": 5,
388
+ "Status": "Absent",
389
+ "Person": {
390
+ "PersonId": 14,
391
+ "DisplayName": "Jordan Allen",
392
+ "Pronouns": "They/Them",
393
+ "FirstName": "Jordan",
394
+ "LastName": "Allen",
395
+ "Birthday": "1995-08-12",
396
+ "ClubId": 5,
397
+ "ShowData": true,
398
+ "Club": {
399
+ "ClubId": 5,
400
+ "Name": "Fechtastic Fighters",
401
+ "ShortName": "FF",
402
+ "Description": "Fechtastic Fighters",
403
+ "AddressId": 1,
404
+ "SocialMedia": [
405
+ {
406
+ "Type": "Web",
407
+ "Link": "https://meyersquared.com/images/Club10.png",
408
+ "Label": null
409
+ }
410
+ ]
411
+ }
412
+ }
413
+ }
414
+ ],
415
+ "poolStrength": 9,
416
+ "poolStrengthInd": -5
417
+ }
418
+ ];
419
+
420
+ export default eventPersonGetInitialPoolAssignments2;
@@ -0,0 +1,38 @@
1
+ const eventPersonGetInitialStaff =
2
+ [
3
+ {
4
+ "Id": 2,
5
+ "TournamentId": 4,
6
+ "EventId": 5,
7
+ "PoolId": 102,
8
+ "PersonId": 23,
9
+ "Role": "Director",
10
+ "Person": {
11
+ "DisplayName": "Robert Garcia"
12
+ }
13
+ },
14
+ {
15
+ "Id": 3,
16
+ "TournamentId": 4,
17
+ "EventId": 5,
18
+ "PoolId": 103,
19
+ "PersonId": 24,
20
+ "Role": "Director",
21
+ "Person": {
22
+ "DisplayName": "Mia Rodriguez"
23
+ }
24
+ },
25
+ {
26
+ "Id": 4,
27
+ "TournamentId": 4,
28
+ "EventId": 5,
29
+ "PoolId": 102,
30
+ "PersonId": 22,
31
+ "Role": "Line Judge",
32
+ "Person": {
33
+ "DisplayName": "Bob Smith"
34
+ }
35
+ }
36
+ ];
37
+
38
+ export default eventPersonGetInitialStaff;
@@ -9,7 +9,7 @@ const eventPersonGetPoolAssignmentEvent =
9
9
  "NumberOfRings": 3,
10
10
  "NumberOfPools": 3,
11
11
  "PoolSize": 4,
12
- "Flights": 1,
12
+ "Flights": 2,
13
13
  "WeaponId": 1,
14
14
  "Status": "Upcoming",
15
15
  "Present": 0,
@@ -0,0 +1,80 @@
1
+ const getAllStaffByTournamentId =
2
+ [
3
+ {
4
+ "Id": 2,
5
+ "TournamentId": 4,
6
+ "EventId": 5,
7
+ "PoolId": 102,
8
+ "PersonId": 23,
9
+ "Role": "Director",
10
+ "Person": {
11
+ "DisplayName": "Lucas Garcia",
12
+ "Club": {
13
+ "ClubId": 1,
14
+ "Name": "Acme Fencing Club"
15
+ },
16
+ "Images": [
17
+ {
18
+ "URL": "https://randomuser.me/api/portraits/men/77.jpg"
19
+ }
20
+ ]
21
+ },
22
+ "Pool": {
23
+ "PoolId": 102,
24
+ "Name": "Pool 1",
25
+ "RingName": "Ring 1"
26
+ }
27
+ },
28
+ {
29
+ "Id": 3,
30
+ "TournamentId": 4,
31
+ "EventId": 5,
32
+ "PoolId": 103,
33
+ "PersonId": 24,
34
+ "Role": "Director",
35
+ "Person": {
36
+ "DisplayName": "Mia Rodriguez",
37
+ "Club": {
38
+ "ClubId": 2,
39
+ "Name": "Historical Fencing Of Anywhere"
40
+ },
41
+ "Images": [
42
+ {
43
+ "URL": "https://randomuser.me/api/portraits/women/89.jpg"
44
+ }
45
+ ]
46
+ },
47
+ "Pool": {
48
+ "PoolId": 103,
49
+ "Name": "Pool 2",
50
+ "RingName": "Ring 2"
51
+ }
52
+ },
53
+ {
54
+ "Id": 4,
55
+ "TournamentId": 4,
56
+ "EventId": 5,
57
+ "PoolId": 102,
58
+ "PersonId": 22,
59
+ "Role": "Line Judge",
60
+ "Person": {
61
+ "DisplayName": "Bob Smith",
62
+ "Club": {
63
+ "ClubId": 6,
64
+ "Name": "SwordPlay Society"
65
+ },
66
+ "Images": [
67
+ {
68
+ "URL": "https://randomuser.me/api/portraits/men/81.jpg"
69
+ }
70
+ ]
71
+ },
72
+ "Pool": {
73
+ "PoolId": 102,
74
+ "Name": "Pool 1",
75
+ "RingName": "Ring 1"
76
+ }
77
+ }
78
+ ]
79
+
80
+ export default getAllStaffByTournamentId;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="flex flex-col items-center">
3
3
  <section class="flex justify-center">
4
- <BaseText :text="label" size="sm" color="primaryHighlight"/>
4
+ <BaseText :text="label" size="sm" :color="textColor"/>
5
5
  </section>
6
6
  <section :class="boxClass">
7
7
  <div class="flex flex-row items-center justify-between h-14 py-2 px-2">
@@ -38,6 +38,10 @@ export default {
38
38
  type: Number,
39
39
  default: 0,
40
40
  },
41
+ textColor: {
42
+ type: String,
43
+ default: 'primaryHighlight',
44
+ }
41
45
  },
42
46
  data() {
43
47
  return {
@@ -55,7 +59,7 @@ export default {
55
59
  },
56
60
  boxClass() {
57
61
  return {
58
- 'w-20 h-14 rounded-xl m-1 border bg-neutral': true,
62
+ 'w-20 h-14 rounded-xl m-1 border bg-neutral shadow': true,
59
63
  'border-dropdownSelect': !this.isRecommended,
60
64
  'border-bright': this.isRecommended
61
65
  };