@dcrackel/hematournamentui 1.0.98 → 1.0.100

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 (54) hide show
  1. package/dist/{HemaTouranmentUI-lib.es.js → HemaTournamentUI-lib.es.js} +1578 -1474
  2. package/dist/{HemaTouranmentUI-lib.umd.js → HemaTournamentUI-lib.umd.js} +4 -4
  3. package/package.json +11 -3
  4. package/src/assets/portrait1.png +0 -0
  5. package/src/config/boutScreenConfigurations.js +54 -0
  6. package/src/mocks/eventRules.js +31 -0
  7. package/src/mocks/getPoolsWithBouts.js +405 -0
  8. package/src/mocks/getPoolsWithBoutsByPoolId.js +921 -0
  9. package/src/mocks/getPoolsWithBoutsClubColors.js +6 -0
  10. package/src/mocks/getPoolsWithBoutsComplete.js +926 -0
  11. package/src/stories/Atoms/Icon/BaseIcon.vue +8 -4
  12. package/src/stories/Atoms/Text/BaseText.vue +8 -2
  13. package/src/stories/Molecules/Boxes/BoutBoxes/PassesBox/PassesBox.stories.js +60 -0
  14. package/src/stories/Molecules/Boxes/BoutBoxes/PassesBox/PassesBox.vue +94 -0
  15. package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.stories.js +113 -0
  16. package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.vue +110 -0
  17. package/src/stories/Molecules/Boxes/BoutBoxes/TimerBox/TimerBox.stories.js +39 -0
  18. package/src/stories/Molecules/Boxes/BoutBoxes/TimerBox/TimerBox.vue +112 -0
  19. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.test.js +0 -2
  20. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +6 -8
  21. package/src/stories/Molecules/Modals/BaseModal/BaseModal.vue +0 -5
  22. package/src/stories/Molecules/Modals/DirectorModal/DirectorModal.stories.js +52 -0
  23. package/src/stories/Molecules/Modals/DirectorModal/DirectorModal.vue +64 -0
  24. package/src/stories/Molecules/Modals/EditBoutModal/EditBoutModal.stories.js +56 -0
  25. package/src/stories/Molecules/Modals/EditBoutModal/EditBoutModal.vue +57 -0
  26. package/src/stories/Organisms/Cards/BoutCard/BoutCard.stories.js +81 -0
  27. package/src/stories/Organisms/Cards/BoutCard/BoutCard.vue +212 -0
  28. package/src/stories/Organisms/Cards/Director/DirectorCard.stories.js +34 -0
  29. package/src/stories/Organisms/Cards/Director/DirectorCard.vue +100 -0
  30. package/src/stories/Organisms/Cards/EditBout/EditBout.stories.js +53 -0
  31. package/src/stories/Organisms/Cards/EditBout/EditBout.vue +150 -0
  32. package/src/stories/Organisms/Cards/PoolBoutMatchCard/PoolBoutMatchCard.stories.js +202 -0
  33. package/src/stories/Organisms/Cards/PoolBoutMatchCard/PoolBoutMatchCard.vue +59 -0
  34. package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +30 -20
  35. package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +0 -2
  36. package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.vue +0 -5
  37. package/src/stories/Organisms/Containers/Pool/Pool.vue +25 -5
  38. package/src/stories/Organisms/Containers/PoolGrid/PoolGrid.stories.js +30 -0
  39. package/src/stories/Organisms/Containers/PoolGrid/PoolGrid.vue +204 -0
  40. package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.stories.js +42 -1
  41. package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.vue +15 -4
  42. package/src/stories/Organisms/Headers/ToggleHeader/ToggleHeader.stories.js +52 -0
  43. package/src/stories/Organisms/Headers/{StaffSummary/StaffSummary.vue → ToggleHeader/ToggleHeader.vue} +20 -11
  44. package/src/stories/Templates/EventManagement/ListEvents/ListEvents.vue +0 -3
  45. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.stories.js +32 -0
  46. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +206 -0
  47. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.stories.js +1 -1
  48. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +1 -1
  49. package/src/stories/Templates/EventManagement/StaffList/StaffList.vue +3 -3
  50. package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +0 -5
  51. package/src/stories/Templates/TournamentManagement/EditTournament/EditPageOne/EditTournamentPageOne.vue +0 -3
  52. package/tailwind.config.js +46 -3
  53. package/vite.config.js +9 -8
  54. package/src/stories/Organisms/Headers/StaffSummary/StaffSummary.stories.js +0 -35
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.98",
4
+ "version": "1.0.100",
5
5
  "type": "module",
6
- "main": "dist/HemaTouranmentUI-lib.umd.js",
7
- "module": "dist/HemaTouranmentUI-lib.es.js",
6
+ "main": "dist/HemaTournamentUI-lib.umd.js",
7
+ "module": "dist/HemaTournamentUI-lib.es.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/HemaTournamentUI-lib.es.js",
11
+ "require": "./dist/HemaTournamentUI-lib.umd.js"
12
+ }
13
+ },
8
14
  "scripts": {
9
15
  "dev-donotuse": "vite",
10
16
  "build": "npm version patch && vite build",
@@ -19,6 +25,7 @@
19
25
  "coverage": "vitest run --coverage"
20
26
  },
21
27
  "dependencies": {
28
+ "@storybook/icons": "^1.2.9",
22
29
  "@tiptap/extension-bold": "^2.1.13",
23
30
  "@tiptap/extension-highlight": "^2.1.13",
24
31
  "@tiptap/extension-text-align": "^2.1.13",
@@ -31,6 +38,7 @@
31
38
  "font-awesome": "^4.7.0",
32
39
  "glob": "^10.4.1",
33
40
  "happy-dom": "^12.10.3",
41
+ "lodash": "^4.17.21",
34
42
  "postcss": "^8.4.38",
35
43
  "postcss-nesting": "^12.1.5",
36
44
  "rimraf": "^5.0.7",
Binary file
@@ -0,0 +1,54 @@
1
+ import getPoolsWithBouts from "../mocks/getPoolsWithBouts.js";
2
+
3
+ const boutScreenConfigurations = {
4
+ standard: {
5
+ boxes: [
6
+ {
7
+ component: 'ScoreBox', props: {
8
+ fencer1: true,
9
+ match: getPoolsWithBouts[0],
10
+ screenHeight: 800,
11
+ hostingClubColors: {
12
+ Color1: 'rose',
13
+ Color2: 'navy'
14
+ },
15
+ maxScore: 7
16
+ }
17
+ },
18
+ {component: 'TimerBox', props: {timeLeft: 300}},
19
+ {
20
+ component: 'ScoreBox', props: {
21
+ fencer1: false,
22
+ match: getPoolsWithBouts[3],
23
+ screenHeight: 800,
24
+ hostingClubColors: {
25
+ Color1: 'rose',
26
+ Color2: 'navy'
27
+ },
28
+ maxScore: 7
29
+ }
30
+ },
31
+ ],
32
+ },
33
+ passesNoTimer: {
34
+ boxes: [
35
+ {component: 'ScoreBox', props: {fencer: 'fencer1'}},
36
+ {component: 'PassesBox', props: {numOfBouts: 5}},
37
+ {component: 'ScoreBox', props: {fencer: 'fencer2'}},
38
+ ],
39
+ },
40
+ passesAndTimer: {
41
+ boxes: [
42
+ {component: 'ScoreBox', props: {fencer: 'fencer1'}},
43
+ {component: 'PassesBox', props: {numOfBouts: 5}},
44
+ {component: 'ScoreBox', props: {fencer: 'fencer2'}},
45
+ ],
46
+ },
47
+ handHits: {
48
+ topBox: 'HandHitsBox',
49
+ middleBox: 'TimerBox',
50
+ bottomBox: 'ScoreBox',
51
+ },
52
+ };
53
+
54
+ export default boutScreenConfigurations;
@@ -0,0 +1,31 @@
1
+ import mockEventQuestions from "./EventQuestionsMock.js";
2
+
3
+ const eventRules = [
4
+ {
5
+ "RuleName": "PoolTime",
6
+ "RuleValue": "120",
7
+ "Context": "pool"
8
+ },
9
+ {
10
+ "RuleName": "PoolMaxPoints",
11
+ "RuleValue": "7",
12
+ "Context": "pool"
13
+ },
14
+ {
15
+ "RuleName": "DETime",
16
+ "RuleValue": "180",
17
+ "Context": "de"
18
+ },
19
+ {
20
+ "RuleName": "DEMaxPoints",
21
+ "RuleValue": "7",
22
+ "Context": "de"
23
+ },
24
+ {
25
+ "RuleName": "ThirdPlaceFenceOff",
26
+ "RuleValue": "1",
27
+ "Context": "general"
28
+ }
29
+ ]
30
+
31
+ export default eventRules;
@@ -0,0 +1,405 @@
1
+ const getPoolsWithBouts =
2
+ [
3
+ {
4
+ "BoutId": 1823,
5
+ "PoolId": 137,
6
+ "EventId": 5,
7
+ "Person1Id": 10,
8
+ "Person2Id": 1,
9
+ "Status": "Active",
10
+ "Score1": 7,
11
+ "Score2": 5,
12
+ "Started": null,
13
+ "Ended": null,
14
+ "TimerStatus": "stopped",
15
+ "TimeLeft": 60,
16
+ "RoundLabel": null,
17
+ "DEBoutId": null,
18
+ "DENextBoutId": null,
19
+ "RefereeId": null,
20
+ "createdAt": "2024-06-15T06:45:39.000Z",
21
+ "updatedAt": "2024-06-15T06:45:39.000Z",
22
+ "Person1": {
23
+ "PersonId": 10,
24
+ "DisplayName": "Melissa Jones",
25
+ "ClubId": 4,
26
+ "Images": [],
27
+ "Club": {
28
+ "Name": "Guardians of the Guard"
29
+ }
30
+ },
31
+ "Person2": {
32
+ "PersonId": 1,
33
+ "DisplayName": "Dave Smith",
34
+ "ClubId": 4,
35
+ "Images": [
36
+ {
37
+ "ImageId": 7,
38
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg"
39
+ }
40
+ ],
41
+ "Club": {
42
+ "Name": "Cat's Cutlass Club of Canton"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "BoutId": 1824,
48
+ "PoolId": 137,
49
+ "EventId": 5,
50
+ "Person1Id": 14,
51
+ "Person2Id": 6,
52
+ "Status": "Completed",
53
+ "Score1": 7,
54
+ "Score2": 4,
55
+ "Started": null,
56
+ "Ended": null,
57
+ "TimerStatus": "stopped",
58
+ "TimeLeft": 0,
59
+ "RoundLabel": null,
60
+ "DEBoutId": null,
61
+ "DENextBoutId": null,
62
+ "RefereeId": null,
63
+ "createdAt": "2024-06-15T06:45:39.000Z",
64
+ "updatedAt": "2024-06-15T06:45:39.000Z",
65
+ "Person1": {
66
+ "PersonId": 14,
67
+ "DisplayName": "Jordan Allen",
68
+ "ClubId": 5,
69
+ "Images": [],
70
+ "Club": {
71
+ "Name": "Fechtastic Fighters"
72
+ }
73
+ },
74
+ "Person2": {
75
+ "PersonId": 6,
76
+ "DisplayName": "Courtney Medina",
77
+ "ClubId": 3,
78
+ "Images": [],
79
+ "Club": {
80
+ "Name": "Sword & Blade of Callie"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "BoutId": 1825,
86
+ "PoolId": 137,
87
+ "EventId": 5,
88
+ "Person1Id": 7,
89
+ "Person2Id": 10,
90
+ "Status": "Completed",
91
+ "Score1": 3,
92
+ "Score2": 7,
93
+ "Started": null,
94
+ "Ended": null,
95
+ "TimerStatus": "stopped",
96
+ "TimeLeft": 0,
97
+ "RoundLabel": null,
98
+ "DEBoutId": null,
99
+ "DENextBoutId": null,
100
+ "RefereeId": null,
101
+ "createdAt": "2024-06-15T06:45:39.000Z",
102
+ "updatedAt": "2024-06-15T06:45:39.000Z",
103
+ "Person1": {
104
+ "PersonId": 7,
105
+ "DisplayName": "Emily Carlson",
106
+ "ClubId": 4,
107
+ "Images": [],
108
+ "Club": {
109
+ "Name": "Guardians of the Guard"
110
+ }
111
+ },
112
+ "Person2": {
113
+ "PersonId": 10,
114
+ "DisplayName": "Melissa Jones",
115
+ "ClubId": 4,
116
+ "Images": [],
117
+ "Club": {
118
+ "Name": "Guardians of the Guard"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "BoutId": 1826,
124
+ "PoolId": 137,
125
+ "EventId": 5,
126
+ "Person1Id": 1,
127
+ "Person2Id": 14,
128
+ "Status": "Completed",
129
+ "Score1": 7,
130
+ "Score2": 5,
131
+ "Started": null,
132
+ "Ended": null,
133
+ "TimerStatus": "stopped",
134
+ "TimeLeft": 0,
135
+ "RoundLabel": null,
136
+ "DEBoutId": null,
137
+ "DENextBoutId": null,
138
+ "RefereeId": null,
139
+ "createdAt": "2024-06-15T06:45:39.000Z",
140
+ "updatedAt": "2024-06-15T06:45:39.000Z",
141
+ "Person1": {
142
+ "PersonId": 1,
143
+ "DisplayName": "Dave Smith",
144
+ "ClubId": 4,
145
+ "Images": [
146
+ {
147
+ "ImageId": 7,
148
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg"
149
+ }
150
+ ],
151
+ "Club": {
152
+ "Name": "Guardians of the Guard"
153
+ }
154
+ },
155
+ "Person2": {
156
+ "PersonId": 14,
157
+ "DisplayName": "Jordan Allen",
158
+ "ClubId": 5,
159
+ "Images": [],
160
+ "Club": {
161
+ "Name": "Fechtastic Fighters"
162
+ }
163
+ }
164
+ },
165
+ {
166
+ "BoutId": 1827,
167
+ "PoolId": 137,
168
+ "EventId": 5,
169
+ "Person1Id": 7,
170
+ "Person2Id": 6,
171
+ "Status": "Scheduled",
172
+ "Score1": 0,
173
+ "Score2": 0,
174
+ "Started": null,
175
+ "Ended": null,
176
+ "TimerStatus": "stopped",
177
+ "TimeLeft": 120,
178
+ "RoundLabel": null,
179
+ "DEBoutId": null,
180
+ "DENextBoutId": null,
181
+ "RefereeId": null,
182
+ "createdAt": "2024-06-15T06:45:39.000Z",
183
+ "updatedAt": "2024-06-15T06:45:39.000Z",
184
+ "Person1": {
185
+ "PersonId": 7,
186
+ "DisplayName": "Emily Carlson",
187
+ "ClubId": 4,
188
+ "Images": [],
189
+ "Club": {
190
+ "Name": "Guardians of the Guard"
191
+ }
192
+ },
193
+ "Person2": {
194
+ "PersonId": 6,
195
+ "DisplayName": "Courtney Medina",
196
+ "ClubId": 3,
197
+ "Images": [],
198
+ "Club": {
199
+ "Name": "Sword & Blade of Callie"
200
+ }
201
+ }
202
+ },
203
+ {
204
+ "BoutId": 1828,
205
+ "PoolId": 137,
206
+ "EventId": 5,
207
+ "Person1Id": 10,
208
+ "Person2Id": 14,
209
+ "Status": "Completed",
210
+ "Score1": 7,
211
+ "Score2": 4,
212
+ "Started": null,
213
+ "Ended": null,
214
+ "TimerStatus": "stopped",
215
+ "TimeLeft": 0,
216
+ "RoundLabel": null,
217
+ "DEBoutId": null,
218
+ "DENextBoutId": null,
219
+ "RefereeId": null,
220
+ "createdAt": "2024-06-15T06:45:39.000Z",
221
+ "updatedAt": "2024-06-15T06:45:39.000Z",
222
+ "Person1": {
223
+ "PersonId": 10,
224
+ "DisplayName": "Melissa Jones",
225
+ "ClubId": 4,
226
+ "Images": [],
227
+ "Club": {
228
+ "Name": "Guardians of the Guard"
229
+ }
230
+ },
231
+ "Person2": {
232
+ "PersonId": 14,
233
+ "DisplayName": "Jordan Allen",
234
+ "ClubId": 5,
235
+ "Images": [],
236
+ "Club": {
237
+ "Name": "Fechtastic Fighters"
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "BoutId": 1829,
243
+ "PoolId": 137,
244
+ "EventId": 5,
245
+ "Person1Id": 1,
246
+ "Person2Id": 7,
247
+ "Status": "Active",
248
+ "Score1": 0,
249
+ "Score2": 0,
250
+ "Started": null,
251
+ "Ended": null,
252
+ "TimerStatus": "stopped",
253
+ "TimeLeft": 0,
254
+ "RoundLabel": null,
255
+ "DEBoutId": null,
256
+ "DENextBoutId": null,
257
+ "RefereeId": null,
258
+ "createdAt": "2024-06-15T06:45:39.000Z",
259
+ "updatedAt": "2024-06-15T06:45:39.000Z",
260
+ "Person1": {
261
+ "PersonId": 1,
262
+ "DisplayName": "Dave Smith",
263
+ "ClubId": 4,
264
+ "Images": [
265
+ {
266
+ "ImageId": 7,
267
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg"
268
+ }
269
+ ],
270
+ "Club": {
271
+ "Name": "Guardians of the Guard"
272
+ }
273
+ },
274
+ "Person2": {
275
+ "PersonId": 7,
276
+ "DisplayName": "Emily Carlson",
277
+ "ClubId": 4,
278
+ "Images": [],
279
+ "Club": {
280
+ "Name": "Guardians of the Guard"
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "BoutId": 1830,
286
+ "PoolId": 137,
287
+ "EventId": 5,
288
+ "Person1Id": 6,
289
+ "Person2Id": 10,
290
+ "Status": "Scheduled",
291
+ "Score1": 0,
292
+ "Score2": 0,
293
+ "Started": null,
294
+ "Ended": null,
295
+ "TimerStatus": "stopped",
296
+ "TimeLeft": 0,
297
+ "RoundLabel": null,
298
+ "DEBoutId": null,
299
+ "DENextBoutId": null,
300
+ "RefereeId": null,
301
+ "createdAt": "2024-06-15T06:45:39.000Z",
302
+ "updatedAt": "2024-06-15T06:45:39.000Z",
303
+ "Person1": {
304
+ "PersonId": 6,
305
+ "DisplayName": "Courtney Medina",
306
+ "ClubId": 3,
307
+ "Images": [],
308
+ "Club": {
309
+ "Name": "Sword & Blade of Callie"
310
+ }
311
+ },
312
+ "Person2": {
313
+ "PersonId": 10,
314
+ "DisplayName": "Melissa Jones",
315
+ "ClubId": 4,
316
+ "Images": [],
317
+ "Club": {
318
+ "Name": "Guardians of the Guard"
319
+ }
320
+ }
321
+ },
322
+ {
323
+ "BoutId": 1831,
324
+ "PoolId": 137,
325
+ "EventId": 5,
326
+ "Person1Id": 14,
327
+ "Person2Id": 7,
328
+ "Status": "Scheduled",
329
+ "Score1": 0,
330
+ "Score2": 0,
331
+ "Started": null,
332
+ "Ended": null,
333
+ "TimerStatus": "stopped",
334
+ "TimeLeft": 0,
335
+ "RoundLabel": null,
336
+ "DEBoutId": null,
337
+ "DENextBoutId": null,
338
+ "RefereeId": null,
339
+ "createdAt": "2024-06-15T06:45:39.000Z",
340
+ "updatedAt": "2024-06-15T06:45:39.000Z",
341
+ "Person1": {
342
+ "PersonId": 14,
343
+ "DisplayName": "Jordan Allen",
344
+ "ClubId": 5,
345
+ "Images": [],
346
+ "Club": {
347
+ "Name": "Fechtastic Fighters"
348
+ }
349
+ },
350
+ "Person2": {
351
+ "PersonId": 7,
352
+ "DisplayName": "Emily Carlson",
353
+ "ClubId": 4,
354
+ "Images": [],
355
+ "Club": {
356
+ "Name": "Guardians of the Guard"
357
+ }
358
+ }
359
+ },
360
+ {
361
+ "BoutId": 1832,
362
+ "PoolId": 137,
363
+ "EventId": 5,
364
+ "Person1Id": 6,
365
+ "Person2Id": 1,
366
+ "Status": "Scheduled",
367
+ "Score1": 0,
368
+ "Score2": 0,
369
+ "Started": null,
370
+ "Ended": null,
371
+ "TimerStatus": "stopped",
372
+ "TimeLeft": 0,
373
+ "RoundLabel": null,
374
+ "DEBoutId": null,
375
+ "DENextBoutId": null,
376
+ "RefereeId": null,
377
+ "createdAt": "2024-06-15T06:45:39.000Z",
378
+ "updatedAt": "2024-06-15T06:45:39.000Z",
379
+ "Person1": {
380
+ "PersonId": 6,
381
+ "DisplayName": "Courtney Medina",
382
+ "ClubId": 3,
383
+ "Images": [],
384
+ "Club": {
385
+ "Name": "Sword & Blade of Callie"
386
+ }
387
+ },
388
+ "Person2": {
389
+ "PersonId": 1,
390
+ "DisplayName": "Dave Smith",
391
+ "ClubId": 4,
392
+ "Images": [
393
+ {
394
+ "ImageId": 7,
395
+ "URL": "https://randomuser.me/api/portraits/men/22.jpg"
396
+ }
397
+ ],
398
+ "Club": {
399
+ "Name": "Guardians of the Guard"
400
+ }
401
+ }
402
+ }
403
+ ];
404
+
405
+ export default getPoolsWithBouts;