@dcrackel/hematournamentui 1.0.488 → 1.0.489

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 (22) hide show
  1. package/dist/HemaTournamentUI-lib.es.js +1147 -1031
  2. package/dist/HemaTournamentUI-lib.umd.js +1 -1
  3. package/package.json +1 -1
  4. package/src/stories/Templates/Assignment/Assignment.vue +2 -2
  5. package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +6 -2
  6. package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +1 -1
  7. package/src/stories/Templates/EventManagement/ClubDisplay/ClubDisplay.stories.js +7 -3
  8. package/src/stories/Templates/EventManagement/ClubDisplay/ClubDisplay.vue +20 -2
  9. package/src/stories/Templates/EventManagement/EditEventInfo/EditEventInfo.stories.js +8 -4
  10. package/src/stories/Templates/EventManagement/EditEventInfo/EditEventInfo.vue +14 -2
  11. package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +14 -1
  12. package/src/stories/Templates/EventManagement/EventFinalResults/EventFinalResults.stories.js +6 -0
  13. package/src/stories/Templates/EventManagement/EventFinalResults/EventFinalResults.vue +15 -2
  14. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.stories.js +7 -2
  15. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +31 -18
  16. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +14 -1
  17. package/src/stories/Templates/EventManagement/PoolResults/PoolResults.stories.js +12 -6
  18. package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +12 -1
  19. package/src/stories/Templates/EventManagement/StaffList/StaffList.stories.js +5 -0
  20. package/src/stories/Templates/EventManagement/StaffList/StaffList.vue +14 -1
  21. package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +28 -25
  22. package/src/stories/Util/tabs.js +26 -13
@@ -1,30 +1,33 @@
1
1
  <template>
2
- <section class="flex">
3
- <TabBar class="border-b border-dropdownSelect mb-5 overflow-auto w-full flex flex-wrap">
4
- <div
5
- class="w-full flex md:flex-nowrap flex-wrap justify-between md:justify-start">
6
- <BaseButton
7
- v-for="tab in tabs"
8
- :key="tab.id"
9
- :selected="currentTab === tab.id"
10
- class="mx-2.5 md:mx-3 text-xs md:text-sm"
11
- size="sm"
12
- :dropDown="!!tab.children"
13
- :iconName="getIconName(tab)"
14
- :color="tab.color"
15
- :label="tab.label"
16
- type="tabBar"
17
- @buttonClick="handleButtonClick(tab.id)"
18
- />
2
+ <div>
3
+ <section class="flex">
4
+ <TabBar class="border-b border-dropdownSelect mb-5 overflow-auto w-full flex flex-wrap">
5
+ <div
6
+ class="w-full flex md:flex-nowrap flex-wrap justify-between md:justify-start">
7
+ <BaseButton
8
+ v-for="tab in tabs"
9
+ :key="tab.id"
10
+ :selected="currentTab === tab.id"
11
+ class="mx-2.5 md:mx-3 text-xs md:text-sm"
12
+ size="sm"
13
+ :dropDown="!!tab.children"
14
+ :iconName="getIconName(tab)"
15
+ :color="tab.color"
16
+ :label="tab.label"
17
+ type="tabBar"
18
+ @buttonClick="handleButtonClick(tab.id)"
19
+ />
20
+ </div>
21
+ </TabBar>
22
+ </section>
23
+ <section v-if="activeDropdown" class="bg-eventBoxBlue rounded w-full -mt-4 grid grid-cols-3 gap-4 pt-3 pb-1">
24
+ <div v-for="item in selectedDropdownItem" class="flex flex-col items-center justify-center mb-2 mr-2">
25
+ <BaseIcon size="md" :iconName="item.icon" :color="item.color" class="w-6 mb-1 text-center"/>
26
+ <BaseText size="xs" :color="item.color" :text="item.label" @click="handleButtonClick(item.id)"
27
+ class="text-center"/>
19
28
  </div>
20
- </TabBar>
21
- </section>
22
- <section v-if="activeDropdown" class="bg-eventBoxBlue rounded w-full -mt-4 grid grid-cols-3 gap-4 pt-3 pb-1">
23
- <div v-for="item in selectedDropdownItem" class="flex flex-col items-center justify-center mb-2 mr-2">
24
- <BaseIcon size="md" :iconName="item.icon" :color="item.color" class="w-6 mb-1 text-center" />
25
- <BaseText size="xs" :color="item.color" :text="item.label" @click="handleButtonClick(item.id)" class="text-center" />
26
- </div>
27
- </section>
29
+ </section>
30
+ </div>
28
31
  </template>
29
32
 
30
33
 
@@ -1,18 +1,31 @@
1
- export const tabs = (role) => {
1
+ export const tabs = (role, isMobile) => {
2
2
  if (role.toLocaleLowerCase() === 'admin' || role.toLocaleLowerCase() === 'club') {
3
+ if (isMobile) {
4
+ return [
5
+ {
6
+ id: 'Settings',
7
+ label: 'Settings',
8
+ color: 'primaryHighlight',
9
+ icon: 'fa-cog',
10
+ group: 'Settings',
11
+ children: [
12
+ {id: 'Edit', label: 'Edit', color: 'primaryHighlight', icon: 'fa-pencil-alt'},
13
+ {id: 'Staff', label: 'Staff', color: 'primaryHighlight', icon: 'fa-users-cog'},
14
+ {id: 'Displays', label: 'Displays', color: 'primaryHighlight', icon: 'fa-tv'},
15
+ ],
16
+ },
17
+ {id: 'Checkin', label: 'Checkin', color: 'primaryHighlight', icon: 'fa-clipboard-check'},
18
+ {id: 'Pools', label: 'Pools', color: 'primaryHighlight', icon: 'fa-swords'},
19
+ {id: 'Pool Results', label: 'Pool Results', color: 'primaryHighlight', icon: 'fa-chart-bar'},
20
+ {id: 'Bracket', label: 'Bracket', color: 'primaryHighlight', icon: 'fa-sitemap'},
21
+ {id: 'Final', label: 'Final Results', color: 'primaryHighlight', icon: 'fa-trophy'},
22
+ ];
23
+ }
24
+
3
25
  return [
4
- {
5
- id: 'Settings',
6
- label: 'Settings',
7
- color: 'primaryHighlight',
8
- icon: 'fa-cog',
9
- group: 'Settings',
10
- children: [
11
- {id: 'Edit', label: 'Edit', color: 'primaryHighlight', icon: 'fa-pencil-alt'},
12
- {id: 'Staff', label: 'Staff', color: 'primaryHighlight', icon: 'fa-users-cog'},
13
- {id: 'Displays', label: 'Displays', color: 'primaryHighlight', icon: 'fa-tv'},
14
- ],
15
- },
26
+ {id: 'Edit', label: 'Edit', color: 'primaryHighlight', icon: 'fa-pencil-alt'},
27
+ {id: 'Staff', label: 'Staff', color: 'primaryHighlight', icon: 'fa-users-cog'},
28
+ {id: 'Displays', label: 'Displays', color: 'primaryHighlight', icon: 'fa-tv'},
16
29
  {id: 'Checkin', label: 'Checkin', color: 'primaryHighlight', icon: 'fa-clipboard-check'},
17
30
  {id: 'Pools', label: 'Pools', color: 'primaryHighlight', icon: 'fa-swords'},
18
31
  {id: 'Pool Results', label: 'Pool Results', color: 'primaryHighlight', icon: 'fa-chart-bar'},