@dcrackel/hematournamentui 1.0.706 → 1.0.707

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 (330) hide show
  1. package/.prettierignore +7 -1
  2. package/.storybook/main.js +5 -12
  3. package/.storybook/preview-head.html +10 -3
  4. package/.storybook/preview.js +5 -13
  5. package/AGENTS.md +31 -1
  6. package/README.md +29 -22
  7. package/dist/HemaTournamentUI-lib.es.js +7189 -7467
  8. package/dist/HemaTournamentUI-lib.umd.js +27 -27
  9. package/dist/hematournamentui-tailwind.css +0 -24
  10. package/dist/hematournamentui.css +1 -1
  11. package/eslint.config.js +49 -23
  12. package/package.json +6 -2
  13. package/postcss.config.js +3 -3
  14. package/prettier.config.js +16 -10
  15. package/src/config/boutScreenConfigurations.js +52 -50
  16. package/src/main.js +1 -1
  17. package/src/mocks/EventQuestionsMock.js +43 -55
  18. package/src/mocks/assignments.js +180 -181
  19. package/src/mocks/clubGetAllMock.js +8143 -8143
  20. package/src/mocks/eventMock.js +205 -205
  21. package/src/mocks/eventPersonGetInitalPoolAssignmentsLivePools.js +541 -542
  22. package/src/mocks/eventPersonGetInitalPoolAssignmentsPreparing.js +522 -523
  23. package/src/mocks/eventPersonGetInitialPoolAssignments.js +386 -387
  24. package/src/mocks/eventPersonGetInitialPoolAssignments2.js +2267 -2268
  25. package/src/mocks/eventPersonGetInitialStaff.js +94 -95
  26. package/src/mocks/eventPersonGetPoolAssignmentEvent.js +161 -162
  27. package/src/mocks/eventRules.js +87 -86
  28. package/src/mocks/eventpersonGetEventById.js +1737 -1737
  29. package/src/mocks/getAllClubs.js +8143 -8143
  30. package/src/mocks/getAllStaffByTournamentId.js +74 -75
  31. package/src/mocks/getAllWeapons.js +81 -82
  32. package/src/mocks/getAttendance.js +43 -44
  33. package/src/mocks/getClub.js +43 -44
  34. package/src/mocks/getClubDisplayByClubId.js +104 -105
  35. package/src/mocks/getDEBouts-128Fencers.js +3247 -3248
  36. package/src/mocks/getDEBouts-42Fencers.js +3736 -3737
  37. package/src/mocks/getDEBouts-67Fencers.js +6684 -6690
  38. package/src/mocks/getDEBouts-DoubleElim.js +4198 -4199
  39. package/src/mocks/getDEWithBouts.js +628 -629
  40. package/src/mocks/getDeBouts-12fencers.js +1255 -1256
  41. package/src/mocks/getDeBouts-15fencers.js +925 -927
  42. package/src/mocks/getDeBouts-22fencers.js +1683 -1685
  43. package/src/mocks/getDeBouts-6fencers.js +818 -818
  44. package/src/mocks/getEventByTournamentId.js +47 -48
  45. package/src/mocks/getFinalEventResult.js +304 -305
  46. package/src/mocks/getPenaltiesByEvent.js +655 -656
  47. package/src/mocks/getPoolResults.js +1533 -1534
  48. package/src/mocks/getPoolsWithBouts.js +662 -663
  49. package/src/mocks/getPoolsWithBouts6PoolId139.js +885 -886
  50. package/src/mocks/getPoolsWithBoutsByPoolId.js +841 -841
  51. package/src/mocks/getPoolsWithBoutsClubColors.js +4 -4
  52. package/src/mocks/getPoolsWithBoutsComplete.js +919 -921
  53. package/src/mocks/locationMock.js +3213 -3214
  54. package/src/mocks/mockRoutes.js +3 -3
  55. package/src/mocks/personGetAllMock.js +2536 -2537
  56. package/src/mocks/personsMock.js +17569 -17570
  57. package/src/mocks/singleEventMock.js +249 -250
  58. package/src/mocks/tournamentMock.js +1988 -1927
  59. package/src/stories/Atoms/CheckBox/BaseCheckbox.stories.js +25 -23
  60. package/src/stories/Atoms/CheckBox/BaseCheckbox.vue +30 -24
  61. package/src/stories/Atoms/Icon/BaseIcon.stories.js +63 -64
  62. package/src/stories/Atoms/Icon/BaseIcon.test.js +67 -69
  63. package/src/stories/Atoms/Icon/BaseIcon.vue +2 -3
  64. package/src/stories/Atoms/Input/BaseInput.stories.js +18 -18
  65. package/src/stories/Atoms/Input/BaseInput.test.js +65 -67
  66. package/src/stories/Atoms/Input/BaseInput.vue +36 -31
  67. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.stories.js +21 -21
  68. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.test.js +31 -31
  69. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.vue +23 -18
  70. package/src/stories/Atoms/Tag/BaseTag.stories.js +21 -21
  71. package/src/stories/Atoms/Tag/BaseTag.test.js +26 -30
  72. package/src/stories/Atoms/Tag/BaseTag.vue +18 -19
  73. package/src/stories/Atoms/Text/BaseText.stories.js +54 -62
  74. package/src/stories/Atoms/Text/BaseText.test.js +152 -154
  75. package/src/stories/Atoms/Text/BaseText.vue +103 -81
  76. package/src/stories/Configure.mdx +5 -3
  77. package/src/stories/Molecules/Boxes/BoutBoxes/HandshotCounterBox/HandshotCounterBox.stories.js +24 -24
  78. package/src/stories/Molecules/Boxes/BoutBoxes/HandshotCounterBox/HandshotCounterBox.vue +33 -15
  79. package/src/stories/Molecules/Boxes/BoutBoxes/PassesBox/PassesBox.stories.js +46 -48
  80. package/src/stories/Molecules/Boxes/BoutBoxes/PassesBox/PassesBox.vue +38 -25
  81. package/src/stories/Molecules/Boxes/BoutBoxes/PenaltyConfirmationBox/PenaltyConfirmationBox.stories.js +4 -4
  82. package/src/stories/Molecules/Boxes/BoutBoxes/PenaltyConfirmationBox/PenaltyConfirmationBox.vue +9 -4
  83. package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.stories.js +90 -90
  84. package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.vue +51 -32
  85. package/src/stories/Molecules/Boxes/BoutBoxes/TimerBox/TimerBox.stories.js +25 -25
  86. package/src/stories/Molecules/Boxes/BoutBoxes/TimerBox/TimerBox.vue +47 -12
  87. package/src/stories/Molecules/Boxes/CounterBox/CounterBox.stories.js +19 -19
  88. package/src/stories/Molecules/Boxes/CounterBox/CounterBox.vue +25 -19
  89. package/src/stories/Molecules/Boxes/EventStatusBox/EventStatusBox.stories.js +25 -28
  90. package/src/stories/Molecules/Boxes/EventStatusBox/EventStatusBox.vue +7 -7
  91. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.stories.js +28 -29
  92. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.test.js +58 -58
  93. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.vue +15 -15
  94. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.stories.js +86 -86
  95. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.test.js +101 -103
  96. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +87 -24
  97. package/src/stories/Molecules/Buttons/ButtonBar/ButtonBar.stories.js +31 -31
  98. package/src/stories/Molecules/Buttons/ButtonBar/ButtonBar.vue +19 -21
  99. package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.stories.js +57 -57
  100. package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.test.js +64 -64
  101. package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.vue +17 -16
  102. package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +19 -19
  103. package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.vue +18 -7
  104. package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +16 -18
  105. package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +31 -13
  106. package/src/stories/Molecules/Indicators/ServerConnected/ServerConnected.stories.js +27 -27
  107. package/src/stories/Molecules/Indicators/ServerConnected/ServerConnected.vue +6 -5
  108. package/src/stories/Molecules/Inputs/MultiSelect/MultiSelect.stories.js +35 -35
  109. package/src/stories/Molecules/Inputs/MultiSelect/MultiSelect.vue +13 -8
  110. package/src/stories/Molecules/Inputs/Toggle/Toggle.stories.js +27 -27
  111. package/src/stories/Molecules/Inputs/Toggle/Toggle.vue +8 -5
  112. package/src/stories/Molecules/Menus/TabBar/TabBar.stories.js +18 -18
  113. package/src/stories/Molecules/Menus/TabBar/TabBar.vue +1 -2
  114. package/src/stories/Molecules/Modals/AddDisplayModal/AddDisplay.stories.js +36 -27
  115. package/src/stories/Molecules/Modals/AddDisplayModal/AddDisplayModal.vue +25 -15
  116. package/src/stories/Molecules/Modals/BaseModal/BaseModal.stories.js +66 -65
  117. package/src/stories/Molecules/Modals/BaseModal/BaseModal.vue +47 -9
  118. package/src/stories/Molecules/Modals/ConfirmModal/ConfirmModal.stories.js +23 -23
  119. package/src/stories/Molecules/Modals/ConfirmModal/ConfirmModal.vue +59 -11
  120. package/src/stories/Molecules/Modals/DirectorModal/DirectorModal.stories.js +37 -37
  121. package/src/stories/Molecules/Modals/DirectorModal/DirectorModal.vue +27 -22
  122. package/src/stories/Molecules/Modals/EditBoutModal/EditBoutModal.stories.js +41 -41
  123. package/src/stories/Molecules/Modals/EditBoutModal/EditBoutModal.vue +27 -15
  124. package/src/stories/Molecules/Modals/EventWizardModal/EventWizardModal.stories.js +29 -30
  125. package/src/stories/Molecules/Modals/EventWizardModal/EventWizardModal.vue +18 -16
  126. package/src/stories/Molecules/Modals/LoadingModal/LoadingModal.stories.js +21 -21
  127. package/src/stories/Molecules/Modals/LoadingModal/LoadingModal.vue +7 -7
  128. package/src/stories/Molecules/Modals/PenaltyModal/PenaltyModal.stories.js +24 -24
  129. package/src/stories/Molecules/Modals/PenaltyModal/PenaltyModal.vue +30 -25
  130. package/src/stories/Molecules/Reorder/ReorderableShell.stories.js +81 -77
  131. package/src/stories/Molecules/Reorder/ReorderableShell.vue +46 -43
  132. package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.stories.js +40 -40
  133. package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.vue +23 -25
  134. package/src/stories/Organisms/Cards/BoutCard/BoutCard.stories.js +34 -29
  135. package/src/stories/Organisms/Cards/BoutCard/BoutCard.vue +69 -66
  136. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardActive/BoutCardActive.stories.js +24 -22
  137. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardActive/BoutCardActive.vue +53 -41
  138. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardInactive/BoutCardInactive.stories.js +24 -37
  139. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardInactive/BoutCardInactive.vue +88 -103
  140. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardReorder/BoutCardReorder.vue +13 -14
  141. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardWaiting/BoutCardWaiting.stories.js +5 -5
  142. package/src/stories/Organisms/Cards/BoutCard/Variants/BoutCardWaiting/BoutCardWaiting.vue +22 -21
  143. package/src/stories/Organisms/Cards/ClubCard/ClubCard.stories.js +14 -17
  144. package/src/stories/Organisms/Cards/ClubCard/ClubCard.vue +25 -18
  145. package/src/stories/Organisms/Cards/Director/DirectorCard.stories.js +23 -23
  146. package/src/stories/Organisms/Cards/Director/DirectorCard.vue +159 -103
  147. package/src/stories/Organisms/Cards/EditBout/EditBout.stories.js +47 -47
  148. package/src/stories/Organisms/Cards/EditBout/EditBout.test.js +51 -0
  149. package/src/stories/Organisms/Cards/EditBout/EditBout.vue +82 -54
  150. package/src/stories/Organisms/Cards/EventCard/EventCard.stories.js +9 -10
  151. package/src/stories/Organisms/Cards/EventCard/EventCard.vue +83 -63
  152. package/src/stories/Organisms/Cards/FencerCard/FencerCard.stories.js +105 -105
  153. package/src/stories/Organisms/Cards/FencerCard/FencerCard.vue +142 -58
  154. package/src/stories/Organisms/Cards/FencerFinalResultCard/FencerFinalResultCard.stories.js +14 -14
  155. package/src/stories/Organisms/Cards/FencerFinalResultCard/FencerFinalResultCard.vue +37 -26
  156. package/src/stories/Organisms/Cards/FencerPoolResultsCard/FencerPoolResults.stories.js +24 -24
  157. package/src/stories/Organisms/Cards/FencerPoolResultsCard/FencerPoolResultsCard.vue +95 -28
  158. package/src/stories/Organisms/Cards/ImportFencerCard/ImportFencerCard.stories.js +59 -60
  159. package/src/stories/Organisms/Cards/ImportFencerCard/ImportFencerCard.vue +13 -7
  160. package/src/stories/Organisms/Cards/KioskCard/KioskCard.stories.js +34 -34
  161. package/src/stories/Organisms/Cards/KioskCard/KioskCard.vue +149 -104
  162. package/src/stories/Organisms/Cards/PenaltyCard/PenaltyCard.stories.js +19 -20
  163. package/src/stories/Organisms/Cards/PenaltyCard/PenaltyCard.vue +207 -163
  164. package/src/stories/Organisms/Cards/PenaltyFencerCard/PenaltyFencerCard.stories.js +17 -17
  165. package/src/stories/Organisms/Cards/PenaltyFencerCard/PenaltyFencerCard.vue +88 -46
  166. package/src/stories/Organisms/Cards/PoolBoutMatchCard/PoolBoutMatchCard.stories.js +182 -182
  167. package/src/stories/Organisms/Cards/PoolBoutMatchCard/PoolBoutMatchCard.vue +21 -12
  168. package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.stories.js +25 -28
  169. package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +28 -22
  170. package/src/stories/Organisms/Cards/StaffCard/StaffCard.stories.js +62 -62
  171. package/src/stories/Organisms/Cards/StaffCard/StaffCard.vue +27 -22
  172. package/src/stories/Organisms/Cards/TableauBoutCard/SpacingConfig.js +103 -103
  173. package/src/stories/Organisms/Cards/TableauBoutCard/TableauBoutCard.stories.js +73 -73
  174. package/src/stories/Organisms/Cards/TableauBoutCard/TableauBoutCard.test.js +44 -0
  175. package/src/stories/Organisms/Cards/TableauBoutCard/TableauBoutCard.vue +69 -56
  176. package/src/stories/Organisms/Cards/TableauFencerCard/TableauFencerCard.stories.js +80 -81
  177. package/src/stories/Organisms/Cards/TableauFencerCard/TableauFencerCard.vue +39 -22
  178. package/src/stories/Organisms/Cards/TournamentAdminCard/TournamentAdmin.stories.js +20 -20
  179. package/src/stories/Organisms/Cards/TournamentAdminCard/TournamentAdminCard.vue +62 -33
  180. package/src/stories/Organisms/Cards/WaitlistFencerCard/WaitlistFencerCard.vue +44 -30
  181. package/src/stories/Organisms/ComplexInputs/AddressAutocomplete/AddressAutocomplete.stories.js +6 -7
  182. package/src/stories/Organisms/ComplexInputs/AddressAutocomplete/AddressAutocomplete.vue +7 -8
  183. package/src/stories/Organisms/ComplexInputs/ClubColorPicker/ClubColorPicker.stories.js +31 -31
  184. package/src/stories/Organisms/ComplexInputs/ClubColorPicker/ClubColorPicker.vue +30 -35
  185. package/src/stories/Organisms/ComplexInputs/DatePicker/DatePicker.stories.js +13 -16
  186. package/src/stories/Organisms/ComplexInputs/DatePicker/DatePicker.vue +68 -70
  187. package/src/stories/Organisms/ComplexInputs/DropDown/DropDownMenu.stories.js +32 -34
  188. package/src/stories/Organisms/ComplexInputs/DropDown/DropDownMenu.vue +48 -25
  189. package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.stories.js +21 -21
  190. package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +65 -38
  191. package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.stories.js +19 -20
  192. package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.vue +46 -21
  193. package/src/stories/Organisms/ComplexInputs/FindPerson/FindPerson.stories.js +22 -22
  194. package/src/stories/Organisms/ComplexInputs/FindPerson/FindPerson.vue +68 -23
  195. package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.stories.js +13 -13
  196. package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +25 -24
  197. package/src/stories/Organisms/ComplexInputs/TextBoxEditor/TextBoxEditor.stories.js +6 -10
  198. package/src/stories/Organisms/ComplexInputs/TextBoxEditor/TextBoxEditor.vue +112 -48
  199. package/src/stories/Organisms/Containers/BoutsSection/BoutsSection.stories.js +43 -44
  200. package/src/stories/Organisms/Containers/BoutsSection/BoutsSection.vue +30 -23
  201. package/src/stories/Organisms/Containers/FinalResults/FinalResultsTable.stories.js +20 -20
  202. package/src/stories/Organisms/Containers/FinalResults/FinalResultsTable.vue +12 -12
  203. package/src/stories/Organisms/Containers/KioskContainer/KioskContainer.stories.js +24 -25
  204. package/src/stories/Organisms/Containers/KioskContainer/KioskContainer.vue +112 -87
  205. package/src/stories/Organisms/Containers/Pool/Pool.stories.js +54 -54
  206. package/src/stories/Organisms/Containers/Pool/Pool.vue +64 -41
  207. package/src/stories/Organisms/Containers/PoolGrid/PoolGrid.stories.js +17 -19
  208. package/src/stories/Organisms/Containers/PoolGrid/PoolGrid.vue +189 -135
  209. package/src/stories/Organisms/Containers/PoolResults/PoolResultsTable.stories.js +53 -54
  210. package/src/stories/Organisms/Containers/PoolResults/PoolResultsTable.vue +107 -73
  211. package/src/stories/Organisms/Containers/Tableau/Tableau.stories.js +23 -24
  212. package/src/stories/Organisms/Containers/Tableau/Tableau.test.js +49 -10
  213. package/src/stories/Organisms/Containers/Tableau/Tableau.vue +96 -173
  214. package/src/stories/Organisms/Containers/TableauColumn/TabeauColumn.stories.js +26 -27
  215. package/src/stories/Organisms/Containers/TableauColumn/TableauColumn.vue +20 -17
  216. package/src/stories/Organisms/Containers/TableauLines/SpacingConfig.js +153 -103
  217. package/src/stories/Organisms/Containers/TableauLines/TableauLines.stories.js +13 -15
  218. package/src/stories/Organisms/Containers/TableauLines/TableauLines.vue +7 -8
  219. package/src/stories/Organisms/Form/AddDisplay/AddDisplay.stories.js +26 -26
  220. package/src/stories/Organisms/Form/AddDisplay/AddDisplay.vue +130 -118
  221. package/src/stories/Organisms/Form/AddNewPerson/AddNewPerson.stories.js +14 -15
  222. package/src/stories/Organisms/Form/AddNewPerson/AddNewPerson.vue +94 -88
  223. package/src/stories/Organisms/Grids/GridContainer.stories.js +101 -101
  224. package/src/stories/Organisms/Grids/GridContainer.vue +160 -136
  225. package/src/stories/Organisms/Headers/AttendanceSummary/AttendanceSummary.stories.js +47 -47
  226. package/src/stories/Organisms/Headers/AttendanceSummary/AttendanceSummary.vue +65 -54
  227. package/src/stories/Organisms/Headers/EventFinalResultsHeader/EventFinalResultsHeader.stories.js +27 -27
  228. package/src/stories/Organisms/Headers/EventFinalResultsHeader/EventFinalResultsHeader.vue +38 -22
  229. package/src/stories/Organisms/Headers/PenaltySummary/PenaltySummary.stories.js +80 -80
  230. package/src/stories/Organisms/Headers/PenaltySummary/PenaltySummary.vue +14 -6
  231. package/src/stories/Organisms/Headers/PoolResultsHeader/PoolResultsHeader.stories.js +34 -34
  232. package/src/stories/Organisms/Headers/PoolResultsHeader/PoolResultsHeader.vue +36 -36
  233. package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.stories.js +21 -21
  234. package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.vue +56 -29
  235. package/src/stories/Organisms/Headers/ToggleHeader/ToggleHeader.stories.js +38 -38
  236. package/src/stories/Organisms/Headers/ToggleHeader/ToggleHeader.vue +19 -20
  237. package/src/stories/Organisms/RankCalculator/ByLetter/RankCalculator.stories.js +12 -13
  238. package/src/stories/Organisms/RankCalculator/ByLetter/RankCalculator.vue +47 -41
  239. package/src/stories/Organisms/RankCalculator/ByPoints/RankCalculatorByPoints.stories.js +12 -13
  240. package/src/stories/Organisms/RankCalculator/ByPoints/RankCalculatorByPoints.vue +66 -37
  241. package/src/stories/Organisms/Skeletons/ClubManagement/ClubManagement.stories.js +6 -10
  242. package/src/stories/Organisms/Skeletons/ClubManagement/ClubMangementSkeleton.vue +2 -2
  243. package/src/stories/Organisms/Skeletons/EventCard/EventCardSkeleton.stories.js +6 -10
  244. package/src/stories/Organisms/Skeletons/EventCard/EventCardSkeleton.vue +2 -3
  245. package/src/stories/Organisms/Skeletons/FencerCard/FencerCardSkeleton.stories.js +6 -10
  246. package/src/stories/Organisms/Skeletons/FencerCard/FencerCardSkeleton.vue +1 -1
  247. package/src/stories/Organisms/Skeletons/PersonManagement/PersonManagementSkeleton.stories.js +6 -9
  248. package/src/stories/Organisms/Skeletons/PersonManagement/PersonManagementSkeleton.vue +2 -2
  249. package/src/stories/Organisms/Skeletons/PoolSkeleton/PoolSkeleton.stories.js +6 -10
  250. package/src/stories/Organisms/Skeletons/PoolSkeleton/PoolSkeleton.vue +10 -4
  251. package/src/stories/Organisms/Skeletons/TournamentCard/TournamentCardSkeleton.stories.js +6 -10
  252. package/src/stories/Organisms/Skeletons/TournamentCard/TournamentCardSkeleton.vue +2 -2
  253. package/src/stories/Organisms/Wizards/EditEventWizard/BasicEventInfo/BasicEventInfo.stories.js +34 -34
  254. package/src/stories/Organisms/Wizards/EditEventWizard/BasicEventInfo/BasicEventInfo.vue +106 -56
  255. package/src/stories/Organisms/Wizards/EditEventWizard/DirectElimination/DirectElimination.stories.js +95 -95
  256. package/src/stories/Organisms/Wizards/EditEventWizard/DirectElimination/DirectElimination.vue +129 -69
  257. package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.stories.js +87 -88
  258. package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.vue +105 -60
  259. package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.stories.js +82 -82
  260. package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +150 -177
  261. package/src/stories/Organisms/Wizards/EditEventWizard/EventCustomization/EventCustomization.stories.js +28 -28
  262. package/src/stories/Organisms/Wizards/EditEventWizard/EventCustomization/EventCustomization.vue +96 -36
  263. package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.stories.js +99 -99
  264. package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.vue +115 -67
  265. package/src/stories/Templates/Assignment/Assignment.stories.js +22 -23
  266. package/src/stories/Templates/Assignment/Assignment.vue +210 -161
  267. package/src/stories/Templates/ClubManagement/ClubBasic/ClubBasic.stories.js +90 -90
  268. package/src/stories/Templates/ClubManagement/ClubBasic/ClubBasic.vue +68 -55
  269. package/src/stories/Templates/ClubManagement/ClubManagement.stories.js +87 -87
  270. package/src/stories/Templates/ClubManagement/ClubManagement.vue +167 -147
  271. package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +82 -103
  272. package/src/stories/Templates/EventManagement/Bracket/Bracket.test.js +88 -43
  273. package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +167 -200
  274. package/src/stories/Templates/EventManagement/EditEventInfo/EditEventInfo.stories.js +49 -50
  275. package/src/stories/Templates/EventManagement/EditEventInfo/EditEventInfo.vue +21 -21
  276. package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.stories.js +105 -103
  277. package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +289 -226
  278. package/src/stories/Templates/EventManagement/EventFinalResults/EventFinalResults.stories.js +30 -30
  279. package/src/stories/Templates/EventManagement/EventFinalResults/EventFinalResults.vue +27 -22
  280. package/src/stories/Templates/EventManagement/KioskDisplay/KioskDisplay.stories.js +44 -45
  281. package/src/stories/Templates/EventManagement/KioskDisplay/KioskDisplay.vue +52 -43
  282. package/src/stories/Templates/EventManagement/Penalties/PenaltyReport.stories.js +28 -29
  283. package/src/stories/Templates/EventManagement/Penalties/PenaltyReport.vue +54 -39
  284. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.stories.js +80 -111
  285. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.test.js +121 -0
  286. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +290 -255
  287. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.stories.js +109 -107
  288. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +144 -87
  289. package/src/stories/Templates/EventManagement/PoolResults/PoolResults.stories.js +56 -57
  290. package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +132 -123
  291. package/src/stories/Templates/EventManagement/StaffList/StaffList.stories.js +56 -57
  292. package/src/stories/Templates/EventManagement/StaffList/StaffList.vue +84 -47
  293. package/src/stories/Templates/Menus/Admin/AdminLeftMenu.stories.js +29 -29
  294. package/src/stories/Templates/Menus/Admin/AdminLeftMenu.vue +71 -67
  295. package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.stories.js +39 -40
  296. package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +79 -71
  297. package/src/stories/Templates/PersonManagement/Admin/Administration/Administration.stories.js +47 -47
  298. package/src/stories/Templates/PersonManagement/Admin/Administration/Administration.vue +39 -42
  299. package/src/stories/Templates/PersonManagement/Admin/FencerAdmin/FencerAdmin.stories.js +54 -54
  300. package/src/stories/Templates/PersonManagement/Admin/FencerAdmin/FencerAdmin.vue +27 -31
  301. package/src/stories/Templates/PersonManagement/Admin/MergeAccounts/MergeAccounts.stories.js +69 -69
  302. package/src/stories/Templates/PersonManagement/Admin/MergeAccounts/MergeAccounts.vue +78 -89
  303. package/src/stories/Templates/PersonManagement/Attendance/Attendance.stories.js +22 -22
  304. package/src/stories/Templates/PersonManagement/Attendance/Attendance.vue +61 -33
  305. package/src/stories/Templates/PersonManagement/Basic/BasicEdit.stories.js +29 -29
  306. package/src/stories/Templates/PersonManagement/Basic/BasicEdit.vue +80 -53
  307. package/src/stories/Templates/PersonManagement/PersonManagement.stories.js +84 -86
  308. package/src/stories/Templates/PersonManagement/PersonManagement.vue +107 -82
  309. package/src/stories/Templates/TournamentManagement/ListEvents/ListEvents.stories.js +31 -31
  310. package/src/stories/Templates/TournamentManagement/ListEvents/ListEvents.vue +70 -51
  311. package/src/stories/Templates/TournamentManagement/TournamentManagement.stories.js +79 -79
  312. package/src/stories/Templates/TournamentManagement/TournamentManagement.vue +275 -230
  313. package/src/stories/Templates/TournamentManagement/TournamentPageOne/TournamentPageOne.stories.js +113 -113
  314. package/src/stories/Templates/TournamentManagement/TournamentPageOne/TournamentPageOne.vue +175 -146
  315. package/src/stories/Templates/TournamentManagement/TournamentPageTwo/TournamentPageTwo.stories.js +77 -77
  316. package/src/stories/Templates/TournamentManagement/TournamentPageTwo/TournamentPageTwo.vue +208 -185
  317. package/src/stories/Util/Validations/AddNewPersonModalValidation.js +23 -19
  318. package/src/stories/Util/Validations/ClubManagementValidations.js +17 -21
  319. package/src/stories/Util/Validations/PersonManagementValidations.js +26 -22
  320. package/src/stories/Util/Validations/TournamentFieldsValidations.js +20 -18
  321. package/src/stories/Util/seeding.js +131 -131
  322. package/src/stories/Util/tabs.js +75 -75
  323. package/tailwind/tailwind.css +5 -7
  324. package/tailwind.config.js +12 -15
  325. package/vite.config.js +3 -3
  326. package/src/mocks/getDirectors.js +0 -18
  327. package/src/stories/Molecules/Modals/AssignDirectorModal/AssignDirectorModal.stories.js +0 -45
  328. package/src/stories/Molecules/Modals/AssignDirectorModal/AssignDirectorModal.vue +0 -111
  329. package/src/stories/Organisms/Cards/DirectorAssignmentCard/DirectorAssignmentCard.stories.js +0 -45
  330. package/src/stories/Organisms/Cards/DirectorAssignmentCard/DirectorAssignmentCard.vue +0 -83
@@ -1,24 +1,23 @@
1
1
  import RankCalculator from './RankCalculator.vue';
2
2
 
3
3
  export default {
4
- title: 'Organisms/RankCalculator/byLetter',
5
- component: RankCalculator,
6
- tags: ['autodocs'],
7
- args: {
8
- ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
9
- },
10
- argTypes: {
11
- ranks: {
12
- control: 'array'
13
- }
4
+ title: 'Organisms/RankCalculator/byLetter',
5
+ component: RankCalculator,
6
+ tags: ['autodocs'],
7
+ args: {
8
+ ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
9
+ },
10
+ argTypes: {
11
+ ranks: {
12
+ control: 'array'
14
13
  }
14
+ }
15
15
  };
16
16
 
17
-
18
17
  export const Default = {
19
- ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D'],
18
+ ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
20
19
  };
21
20
 
22
21
  export const AnotherExample = {
23
- ranks: ['A', 'B', 'C', 'D', 'E', 'E', 'E', 'D', 'C', 'B', 'A'],
22
+ ranks: ['A', 'B', 'C', 'D', 'E', 'E', 'E', 'D', 'C', 'B', 'A']
24
23
  };
@@ -1,53 +1,61 @@
1
1
  <template>
2
2
  <div>
3
- <BaseText :color="'primaryHighlight'" :size="'2xl'" :text="'Rank Calculator'" :weight="'normal'"/>
4
- <TitledInput :inputValue="rankInput"
5
- placeholder="e.g., A,A,B,B,B,C,C,C,D,D,E"
6
- title="Enter Ranks (separate by commas)"
7
- @update:value="handleRankInput"/>
3
+ <BaseText :color="'primaryHighlight'" :size="'2xl'" :text="'Rank Calculator'" :weight="'normal'" />
4
+ <TitledInput
5
+ :inputValue="rankInput"
6
+ placeholder="e.g., A,A,B,B,B,C,C,C,D,D,E"
7
+ title="Enter Ranks (separate by commas)"
8
+ @update:value="handleRankInput"
9
+ />
8
10
 
9
- <BaseButton class="w-full" color="neutral" label="Calculate" size="sm" type="secondary" @buttonClick="updateRanks"/>
10
- <br>
11
- <BaseText :color="'primaryHighlight'" :size="'sm'" :text="ranks.join(', ')" :weight="'normal'"/>
11
+ <BaseButton
12
+ class="w-full"
13
+ color="neutral"
14
+ label="Calculate"
15
+ size="sm"
16
+ type="secondary"
17
+ @buttonClick="updateRanks"
18
+ />
19
+ <br />
20
+ <BaseText :color="'primaryHighlight'" :size="'sm'" :text="ranks.join(', ')" :weight="'normal'" />
12
21
  <div class="flex p-2">
13
- <BaseText :color="'primaryHighlight'" :size="'md'" text="Final Rank:" :weight="'normal'"/>
14
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="finalRank" :weight="'normal'"/>
22
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="Final Rank:" :weight="'normal'" />
23
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="finalRank" :weight="'normal'" />
15
24
  </div>
16
25
 
17
26
  <div>
18
27
  <div class="flex p-2">
19
- <BaseText :color="'primaryHighlight'" :size="'md'" text="PayOut: " :weight="'normal'"/>
20
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.rank" :weight="'normal'"/>
28
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="PayOut: " :weight="'normal'" />
29
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.rank" :weight="'normal'" />
21
30
  </div>
22
31
  <div class="flex p-2">
23
- <BaseText :color="'primaryHighlight'" :size="'md'" text="A's:" :weight="'normal'"/>
24
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[0]" :weight="'normal'"/>
32
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="A's:" :weight="'normal'" />
33
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[0]" :weight="'normal'" />
25
34
  </div>
26
35
  <div class="flex p-2">
27
- <BaseText :color="'primaryHighlight'" :size="'md'" text="B's:" :weight="'normal'"/>
28
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[1]" :weight="'normal'"/>
36
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="B's:" :weight="'normal'" />
37
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[1]" :weight="'normal'" />
29
38
  </div>
30
39
  <div class="flex p-2">
31
- <BaseText :color="'primaryHighlight'" :size="'md'" text="C's:" :weight="'normal'"/>
32
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[2]" :weight="'normal'"/>
40
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="C's:" :weight="'normal'" />
41
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[2]" :weight="'normal'" />
33
42
  </div>
34
43
  <div class="flex p-2">
35
- <BaseText :color="'primaryHighlight'" :size="'md'" text="D's:" :weight="'normal'"/>
36
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[3]" :weight="'normal'"/>
44
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="D's:" :weight="'normal'" />
45
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[3]" :weight="'normal'" />
37
46
  </div>
38
47
  <div class="flex p-2">
39
- <BaseText :color="'primaryHighlight'" :size="'md'" text="E's:" :weight="'normal'"/>
40
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[4]" :weight="'normal'"/>
48
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="E's:" :weight="'normal'" />
49
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[4]" :weight="'normal'" />
41
50
  </div>
42
51
  </div>
43
52
  </div>
44
53
  </template>
45
54
 
46
-
47
55
  <script>
48
56
  import BaseButton from '../../../Molecules/Buttons/BaseButton/BaseButton.vue';
49
- import TitledInput from "../../../Molecules/CombinationInputs/TitledInput/TitledInput.vue";
50
- import BaseText from "../../../Atoms/Text/BaseText.vue";
57
+ import TitledInput from '../../../Molecules/CombinationInputs/TitledInput/TitledInput.vue';
58
+ import BaseText from '../../../Atoms/Text/BaseText.vue';
51
59
 
52
60
  const chart = [
53
61
  { rank: 'A5', counts: [5, 6, 1, 0, 0, 0] },
@@ -102,7 +110,7 @@ const payoutChart = [
102
110
  { rank: 'A2', counts: [2, 3, 4, 5, 6] },
103
111
  { rank: 'A3', counts: [3, 4, 5, 6, 7] },
104
112
  { rank: 'A4', counts: [4, 5, 6, 7, 8] },
105
- { rank: 'A5', counts: [5, 7, 7, 8, 9] },
113
+ { rank: 'A5', counts: [5, 7, 7, 8, 9] }
106
114
  ];
107
115
 
108
116
  export default {
@@ -115,7 +123,7 @@ export default {
115
123
  data() {
116
124
  return {
117
125
  rankInput: '', // Field to enter ranks
118
- ranks: [], // Ranks array based on input
126
+ ranks: [] // Ranks array based on input
119
127
  };
120
128
  },
121
129
  computed: {
@@ -124,10 +132,10 @@ export default {
124
132
  },
125
133
  payout() {
126
134
  return payoutChart.find(p => p.rank === this.finalRank) || { rank: 'Unknown', counts: [0, 0, 0, 0, 0] };
127
- },
135
+ }
128
136
  },
129
137
  methods: {
130
- handleRankInput(value){
138
+ handleRankInput(value) {
131
139
  this.rankInput = value;
132
140
  },
133
141
  updateRanks() {
@@ -146,16 +154,15 @@ export default {
146
154
  return counts;
147
155
  },
148
156
  downgradeRanks(counts) {
149
- for (let i = 0; i < counts.length - 1; i++) {
150
- if (counts[i] > 0) {
151
- counts[i + 1] += 1; // Shift one rank to the right
152
- counts[i] -= 1;
153
- break; // Exit the loop after shifting one rank
154
- }
155
- }
157
+ const downgradedCounts = [...counts];
158
+ const rankIndex = downgradedCounts.findIndex((count, index) => index < downgradedCounts.length - 1 && count > 0);
159
+ if (rankIndex < 0) return downgradedCounts;
160
+
161
+ downgradedCounts[rankIndex] -= 1;
162
+ downgradedCounts[rankIndex + 1] += 1;
163
+ return downgradedCounts;
156
164
  },
157
165
  getFinalRank(ranks) {
158
- ranks.sort((a, b) => a.charCodeAt(0) - b.charCodeAt(0));
159
166
  let counts = this.getRankCounts(ranks);
160
167
  let downgrades = 0;
161
168
 
@@ -166,7 +173,7 @@ export default {
166
173
  }
167
174
  }
168
175
 
169
- this.downgradeRanks(counts);
176
+ counts = this.downgradeRanks(counts);
170
177
 
171
178
  for (let chartRank of chart) {
172
179
  if (chartRank.counts.every((count, idx) => count <= counts[idx])) {
@@ -181,8 +188,7 @@ export default {
181
188
  }
182
189
 
183
190
  return 'E1';
184
- },
185
- },
191
+ }
192
+ }
186
193
  };
187
194
  </script>
188
-
@@ -1,24 +1,23 @@
1
1
  import RankCalculatorByPoints from './RankCalculatorByPoints.vue';
2
2
 
3
3
  export default {
4
- title: 'Organisms/RankCalculator/byPoints',
5
- component: RankCalculatorByPoints,
6
- tags: ['autodocs'],
7
- args: {
8
- ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
9
- },
10
- argTypes: {
11
- ranks: {
12
- control: 'array'
13
- }
4
+ title: 'Organisms/RankCalculator/byPoints',
5
+ component: RankCalculatorByPoints,
6
+ tags: ['autodocs'],
7
+ args: {
8
+ ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
9
+ },
10
+ argTypes: {
11
+ ranks: {
12
+ control: 'array'
14
13
  }
14
+ }
15
15
  };
16
16
 
17
-
18
17
  export const Default = {
19
- ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D'],
18
+ ranks: ['A', 'A', 'B', 'B', 'B', 'C', 'C', 'C', 'C', 'D', 'D', 'D']
20
19
  };
21
20
 
22
21
  export const AnotherExample = {
23
- ranks: ['A', 'B', 'C', 'D', 'E', 'E', 'E', 'D', 'C', 'B', 'A'],
22
+ ranks: ['A', 'B', 'C', 'D', 'E', 'E', 'E', 'D', 'C', 'B', 'A']
24
23
  };
@@ -1,58 +1,87 @@
1
1
  <template>
2
2
  <div>
3
- <BaseText :color="'primaryHighlight'" :size="'2xl'" :text="'Rank Calculator'" :weight="'normal'"/>
4
- <TitledInput :inputValue="rankInput"
5
- placeholder="e.g., A,A,B,B,B,C,C,C,D,D,E"
6
- title="Enter Ranks (separate by commas)"
7
- @update:value="handleRankInput"/>
3
+ <BaseText :color="'primaryHighlight'" :size="'2xl'" :text="'Rank Calculator'" :weight="'normal'" />
4
+ <TitledInput
5
+ :inputValue="rankInput"
6
+ placeholder="e.g., A,A,B,B,B,C,C,C,D,D,E"
7
+ title="Enter Ranks (separate by commas)"
8
+ @update:value="handleRankInput"
9
+ />
8
10
 
9
- <BaseButton class="w-full" color="neutral" label="Calculate" size="sm" type="secondary" @buttonClick="updateRanks"/>
10
- <br>
11
- <BaseText :color="'primaryHighlight'" :size="'sm'" :text="ranks.join(', ')" :weight="'normal'"/>
11
+ <BaseButton
12
+ class="w-full"
13
+ color="neutral"
14
+ label="Calculate"
15
+ size="sm"
16
+ type="secondary"
17
+ @buttonClick="updateRanks"
18
+ />
19
+ <br />
20
+ <BaseText :color="'primaryHighlight'" :size="'sm'" :text="ranks.join(', ')" :weight="'normal'" />
12
21
  <div class="flex p-2">
13
- <BaseText :color="'primaryHighlight'" :size="'md'" text="Final Rank:" :weight="'normal'"/>
14
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="finalRank" :weight="'normal'"/>
22
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="Final Rank:" :weight="'normal'" />
23
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="finalRank" :weight="'normal'" />
15
24
  </div>
16
25
 
17
26
  <div class="flex p-2">
18
- <BaseText :color="'primaryHighlight'" :size="'md'" text="PayOut: " :weight="'normal'"/>
19
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.rank" :weight="'normal'"/>
27
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="PayOut: " :weight="'normal'" />
28
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.rank" :weight="'normal'" />
20
29
  </div>
21
30
  <div class="flex p-2">
22
- <BaseText :color="'primaryHighlight'" :size="'md'" text="A's:" :weight="'normal'"/>
23
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[0]" :weight="'normal'"/>
31
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="A's:" :weight="'normal'" />
32
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[0]" :weight="'normal'" />
24
33
  </div>
25
34
  <div class="flex p-2">
26
- <BaseText :color="'primaryHighlight'" :size="'md'" text="B's:" :weight="'normal'"/>
27
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[1]" :weight="'normal'"/>
35
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="B's:" :weight="'normal'" />
36
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[1]" :weight="'normal'" />
28
37
  </div>
29
38
  <div class="flex p-2">
30
- <BaseText :color="'primaryHighlight'" :size="'md'" text="C's:" :weight="'normal'"/>
31
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[2]" :weight="'normal'"/>
39
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="C's:" :weight="'normal'" />
40
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[2]" :weight="'normal'" />
32
41
  </div>
33
42
  <div class="flex p-2">
34
- <BaseText :color="'primaryHighlight'" :size="'md'" text="D's:" :weight="'normal'"/>
35
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[3]" :weight="'normal'"/>
43
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="D's:" :weight="'normal'" />
44
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[3]" :weight="'normal'" />
36
45
  </div>
37
46
  <div class="flex p-2">
38
- <BaseText :color="'primaryHighlight'" :size="'md'" text="E's:" :weight="'normal'"/>
39
- <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[4]" :weight="'normal'"/>
47
+ <BaseText :color="'primaryHighlight'" :size="'md'" text="E's:" :weight="'normal'" />
48
+ <BaseText :color="'primaryHighlight'" :size="'md'" :text="payout.counts[4]" :weight="'normal'" />
40
49
  </div>
41
50
  </div>
42
51
  </template>
43
52
 
44
53
  <script>
45
54
  import BaseButton from '../../../Molecules/Buttons/BaseButton/BaseButton.vue';
46
- import TitledInput from "../../../Molecules/CombinationInputs/TitledInput/TitledInput.vue";
47
- import BaseText from "../../../Atoms/Text/BaseText.vue";
55
+ import TitledInput from '../../../Molecules/CombinationInputs/TitledInput/TitledInput.vue';
56
+ import BaseText from '../../../Atoms/Text/BaseText.vue';
48
57
 
49
58
  const pointValues = {
50
- 'A5': 1000, 'A4': 950, 'A3': 900, 'A2': 850, 'A1': 800,
51
- 'B5': 750, 'B4': 700, 'B3': 650, 'B2': 600, 'B1': 550,
52
- 'C5': 500, 'C4': 450, 'C3': 400, 'C2': 350, 'C1': 300,
53
- 'D5': 250, 'D4': 200, 'D3': 150, 'D2': 100, 'D1': 50,
54
- 'E5': 25, 'E4': 20, 'E3': 15, 'E2': 10, 'E1': 5,
55
- 'U': 0
59
+ A5: 1000,
60
+ A4: 950,
61
+ A3: 900,
62
+ A2: 850,
63
+ A1: 800,
64
+ B5: 750,
65
+ B4: 700,
66
+ B3: 650,
67
+ B2: 600,
68
+ B1: 550,
69
+ C5: 500,
70
+ C4: 450,
71
+ C3: 400,
72
+ C2: 350,
73
+ C1: 300,
74
+ D5: 250,
75
+ D4: 200,
76
+ D3: 150,
77
+ D2: 100,
78
+ D1: 50,
79
+ E5: 25,
80
+ E4: 20,
81
+ E3: 15,
82
+ E2: 10,
83
+ E1: 5,
84
+ U: 0
56
85
  };
57
86
 
58
87
  const pointToRank = [
@@ -80,7 +109,7 @@ const pointToRank = [
80
109
  { points: 200, rank: 'E4' },
81
110
  { points: 150, rank: 'E3' },
82
111
  { points: 100, rank: 'E2' },
83
- { points: 50, rank: 'E1' },
112
+ { points: 50, rank: 'E1' }
84
113
  ];
85
114
 
86
115
  const payoutChart = [
@@ -108,7 +137,7 @@ const payoutChart = [
108
137
  { rank: 'A2', counts: [2, 3, 4, 5, 6] },
109
138
  { rank: 'A3', counts: [3, 4, 5, 6, 7] },
110
139
  { rank: 'A4', counts: [4, 5, 6, 7, 8] },
111
- { rank: 'A5', counts: [5, 7, 7, 8, 9] },
140
+ { rank: 'A5', counts: [5, 7, 7, 8, 9] }
112
141
  ];
113
142
 
114
143
  export default {
@@ -121,14 +150,14 @@ export default {
121
150
  data() {
122
151
  return {
123
152
  rankInput: 'A,A,B,B,C,C,D,D,E,E,U,U', // Field to enter ranks
124
- ranks: [], // Ranks array based on input
125
- finalRank: '', // To store the final rank after calculation
153
+ ranks: [], // Ranks array based on input
154
+ finalRank: '' // To store the final rank after calculation
126
155
  };
127
156
  },
128
157
  computed: {
129
158
  payout() {
130
159
  return payoutChart.find(p => p.rank === this.finalRank) || { rank: 'Unknown', counts: [0, 0, 0, 0, 0] };
131
- },
160
+ }
132
161
  },
133
162
  methods: {
134
163
  handleRankInput(value) {
@@ -150,7 +179,7 @@ export default {
150
179
  }
151
180
  }
152
181
  return 'U'; // Default to 'U' if no matching rank is found
153
- },
154
- },
182
+ }
183
+ }
155
184
  };
156
185
  </script>
@@ -1,17 +1,13 @@
1
1
  import ClubMangementSkeleton from './ClubMangementSkeleton.vue';
2
2
 
3
-
4
3
  export default {
5
- title: 'Organisms/Skeletons/ClubMangement',
6
- component: ClubMangementSkeleton,
7
- tags: ['autodocs'],
8
- args: {
9
-
10
- },
11
- argTypes: {
12
- }
4
+ title: 'Organisms/Skeletons/ClubMangement',
5
+ component: ClubMangementSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
13
9
  };
14
10
 
15
11
  export const Default = {
16
- components: { ClubMangementSkeleton },
12
+ components: { ClubMangementSkeleton }
17
13
  };
@@ -39,6 +39,6 @@
39
39
 
40
40
  <script>
41
41
  export default {
42
- name: 'ClubManagementSkeleton',
43
- }
42
+ name: 'ClubManagementSkeleton'
43
+ };
44
44
  </script>
@@ -1,17 +1,13 @@
1
1
  import EventCardSkeleton from './EventCardSkeleton.vue';
2
2
 
3
-
4
3
  export default {
5
- title: 'Organisms/Skeletons/EventCard',
6
- component: EventCardSkeleton,
7
- tags: ['autodocs'],
8
- args: {
9
-
10
- },
11
- argTypes: {
12
- }
4
+ title: 'Organisms/Skeletons/EventCard',
5
+ component: EventCardSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
13
9
  };
14
10
 
15
11
  export const Default = {
16
- components: { EventCardSkeleton },
12
+ components: { EventCardSkeleton }
17
13
  };
@@ -25,11 +25,10 @@
25
25
  </div>
26
26
  </div>
27
27
  </div>
28
-
29
28
  </template>
30
29
 
31
30
  <script>
32
31
  export default {
33
32
  name: 'EventCardSkeleton'
34
- }
35
- </script>
33
+ };
34
+ </script>
@@ -1,17 +1,13 @@
1
1
  import FencerCardSkeleton from './FencerCardSkeleton.vue';
2
2
 
3
-
4
3
  export default {
5
- title: 'Organisms/Skeletons/FencerCard',
6
- component: FencerCardSkeleton,
7
- tags: ['autodocs'],
8
- args: {
9
-
10
- },
11
- argTypes: {
12
- }
4
+ title: 'Organisms/Skeletons/FencerCard',
5
+ component: FencerCardSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
13
9
  };
14
10
 
15
11
  export const Default = {
16
- components: { FencerCardSkeleton },
12
+ components: { FencerCardSkeleton }
17
13
  };
@@ -44,5 +44,5 @@
44
44
  <script>
45
45
  export default {
46
46
  name: 'FencerCardSkeleton'
47
- }
47
+ };
48
48
  </script>
@@ -1,16 +1,13 @@
1
1
  import PersonManagementSkeleton from './PersonManagementSkeleton.vue';
2
2
 
3
3
  export default {
4
- title: 'Organisms/Skeletons/PersonManagement',
5
- component: PersonManagementSkeleton,
6
- tags: ['autodocs'],
7
- args: {
8
-
9
- },
10
- argTypes: {
11
- }
4
+ title: 'Organisms/Skeletons/PersonManagement',
5
+ component: PersonManagementSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
12
9
  };
13
10
 
14
11
  export const Default = {
15
- components: { PersonManagementSkeleton },
12
+ components: { PersonManagementSkeleton }
16
13
  };
@@ -57,6 +57,6 @@
57
57
 
58
58
  <script>
59
59
  export default {
60
- name: 'PersonManagementSkeleton',
61
- }
60
+ name: 'PersonManagementSkeleton'
61
+ };
62
62
  </script>
@@ -1,17 +1,13 @@
1
1
  import PoolSkeleton from './PoolSkeleton.vue';
2
2
 
3
-
4
3
  export default {
5
- title: 'Organisms/Skeletons/Pool',
6
- component: PoolSkeleton,
7
- tags: ['autodocs'],
8
- args: {
9
-
10
- },
11
- argTypes: {
12
- }
4
+ title: 'Organisms/Skeletons/Pool',
5
+ component: PoolSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
13
9
  };
14
10
 
15
11
  export const Default = {
16
- components: { PoolSkeleton },
12
+ components: { PoolSkeleton }
17
13
  };
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <div class="p-4 mr-4 mt-3 bg-neutral rounded-lg shadow-md border border-dropdownSelect min-w-[22rem] w-40 animate-pulse">
2
+ <div
3
+ class="p-4 mr-4 mt-3 bg-neutral rounded-lg shadow-md border border-dropdownSelect min-w-[22rem] w-40 animate-pulse"
4
+ >
3
5
  <div class="flex flex-row justify-between mb-2">
4
6
  <div class="bg-dropdownSelect rounded h-6 w-1/2 mr-6"></div>
5
7
  <div class="bg-dropdownSelect rounded h-6 w-1/2"></div>
@@ -15,7 +17,11 @@
15
17
  </div>
16
18
 
17
19
  <div class="grid grid-cols-1 gap-4">
18
- <div v-for="index in 6" :key="index" class="flex flex-row items-center border border-dropdownSelect shadow p-3 rounded-lg">
20
+ <div
21
+ v-for="index in 6"
22
+ :key="index"
23
+ class="flex flex-row items-center border border-dropdownSelect shadow p-3 rounded-lg"
24
+ >
19
25
  <div class="bg-dropdownSelect rounded-lg h-8 w-8"></div>
20
26
  <div class="flex flex-col ml-4 w-3/4">
21
27
  <div class="bg-dropdownSelect rounded h-4 w-3/4 mb-2"></div>
@@ -29,5 +35,5 @@
29
35
  <script>
30
36
  export default {
31
37
  name: 'PoolSkeleton'
32
- }
33
- </script>
38
+ };
39
+ </script>
@@ -1,17 +1,13 @@
1
1
  import TournamentCardSkeleton from './TournamentCardSkeleton.vue';
2
2
 
3
-
4
3
  export default {
5
- title: 'Organisms/Skeletons/TournamentCard',
6
- component: TournamentCardSkeleton,
7
- tags: ['autodocs'],
8
- args: {
9
-
10
- },
11
- argTypes: {
12
- }
4
+ title: 'Organisms/Skeletons/TournamentCard',
5
+ component: TournamentCardSkeleton,
6
+ tags: ['autodocs'],
7
+ args: {},
8
+ argTypes: {}
13
9
  };
14
10
 
15
11
  export const Default = {
16
- components: { TournamentCardSkeleton },
12
+ components: { TournamentCardSkeleton }
17
13
  };
@@ -21,6 +21,6 @@
21
21
 
22
22
  <script>
23
23
  export default {
24
- name: 'TournamentCardSkeleton',
25
- }
24
+ name: 'TournamentCardSkeleton'
25
+ };
26
26
  </script>