@dcrackel/hematournamentui 1.0.77 → 1.0.80
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/.storybook/preview.js +1 -1
- package/dist/HemaTouranmentUI-lib.es.js +1409 -1381
- package/dist/HemaTouranmentUI-lib.umd.js +27 -27
- package/package.json +13 -13
- package/src/stories/Molecules/Boxes/CounterBox/CounterBox.vue +10 -10
- package/src/stories/Molecules/Boxes/EventStatusBox/EventStatusBox.vue +1 -1
- package/src/stories/Organisms/Headers/PoolSummary/PoolSummary.vue +9 -6
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +5 -1
- package/src/stories/Templates/EventManagement/ListEvents/ListEvents.vue +7 -1
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.stories.js +17 -1
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +14 -2
- package/src/stories/Templates/Menus/EditEventsTopMenu/EditEventsTopMenu.vue +1 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcrackel/hematournamentui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.80",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/HemaTouranmentUI-lib.umd.js",
|
|
7
7
|
"module": "dist/HemaTouranmentUI-lib.es.js",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@chromatic-com/storybook": "^1.4.0",
|
|
43
|
-
"@storybook/addon-actions": "^8.1.
|
|
44
|
-
"@storybook/addon-docs": "^8.1.
|
|
45
|
-
"@storybook/addon-essentials": "^8.1.
|
|
46
|
-
"@storybook/addon-interactions": "^8.1.
|
|
47
|
-
"@storybook/addon-links": "^8.1.
|
|
48
|
-
"@storybook/addon-mdx-gfm": "^8.1.
|
|
49
|
-
"@storybook/blocks": "^8.1.
|
|
50
|
-
"@storybook/react": "^8.1.
|
|
51
|
-
"@storybook/test": "^8.1.
|
|
52
|
-
"@storybook/vue3": "^8.1.
|
|
53
|
-
"@storybook/vue3-vite": "^8.1.
|
|
43
|
+
"@storybook/addon-actions": "^8.1.6",
|
|
44
|
+
"@storybook/addon-docs": "^8.1.6",
|
|
45
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
46
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
47
|
+
"@storybook/addon-links": "^8.1.6",
|
|
48
|
+
"@storybook/addon-mdx-gfm": "^8.1.6",
|
|
49
|
+
"@storybook/blocks": "^8.1.6",
|
|
50
|
+
"@storybook/react": "^8.1.6",
|
|
51
|
+
"@storybook/test": "^8.1.6",
|
|
52
|
+
"@storybook/vue3": "^8.1.6",
|
|
53
|
+
"@storybook/vue3-vite": "^8.1.6",
|
|
54
54
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
55
55
|
"@vitest/coverage-v8": "^1.1.0",
|
|
56
56
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"eslint": "^8.56.0",
|
|
60
60
|
"eslint-plugin-storybook": "^0.8.0",
|
|
61
61
|
"eslint-plugin-vue": "^9.20.1",
|
|
62
|
-
"storybook": "^8.1.
|
|
62
|
+
"storybook": "^8.1.6",
|
|
63
63
|
"storybook-vue3-router": "^5.0.0",
|
|
64
64
|
"tailwindcss": "^3.4.3",
|
|
65
65
|
"vite": "^5.0.10",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex flex-col items-center">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
<section class="flex justify-center">
|
|
4
|
+
<BaseText :text="label" size="sm" color="primaryHighlight" />
|
|
5
|
+
</section>
|
|
6
|
+
<section :class="boxClass">
|
|
7
|
+
<div class="flex flex-row items-center justify-between h-14 py-2 px-2">
|
|
8
|
+
<button @click="increase" class="py-1"><BaseIcon icon-name="fa-caret-up" size="xl" color="primaryHighlight" /></button>
|
|
9
|
+
<span class="px-1"><BaseText :text="counter" size="xl" color="primary"/></span>
|
|
10
|
+
<button @click="decrease" class="py-1"><BaseIcon icon-name="fa-caret-down" size="xl" color="primaryHighlight" /></button>
|
|
11
|
+
</div>
|
|
12
|
+
</section>
|
|
13
13
|
</div>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section :class="['w-20 h-14 rounded-xl m-1 shadow border border-
|
|
2
|
+
<section :class="['w-20 h-14 rounded-xl m-1 shadow border border-dropdownSelect', boxColor]">
|
|
3
3
|
<div class="flex flex-col justify-between h-14 py-2 pl-1">
|
|
4
4
|
<p class="flex flex-row justify-center w-full pb-1">
|
|
5
5
|
<BaseText :text="statusCount" size="sm" color="quinary" weight="bold" />
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<span class="h-8"></span>
|
|
7
7
|
</section>
|
|
8
8
|
<section class="flex space-x-4">
|
|
9
|
-
<CounterBox :recommended="7" :count="poolSize" label="Pool Size" />
|
|
10
|
-
<CounterBox :recommended="2" :count="numberOfRings" label="Num Rings" />
|
|
9
|
+
<CounterBox :recommended="7" :count="poolSize" label="Pool Size" @update:count="handlePoolSizeChange" />
|
|
10
|
+
<CounterBox :recommended="2" :count="numberOfRings" label="Num Rings" @update:count="handleNumOfRingsChange" />
|
|
11
11
|
</section>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
@@ -27,10 +27,7 @@ export default {
|
|
|
27
27
|
validator(event) {
|
|
28
28
|
const requiredFields = [
|
|
29
29
|
'EventName',
|
|
30
|
-
'RuleSummary'
|
|
31
|
-
'Absent',
|
|
32
|
-
'Present',
|
|
33
|
-
'Removed',
|
|
30
|
+
'RuleSummary'
|
|
34
31
|
];
|
|
35
32
|
|
|
36
33
|
const missingFields = requiredFields.filter(field => !(field in event));
|
|
@@ -49,6 +46,12 @@ export default {
|
|
|
49
46
|
numberOfRings() {
|
|
50
47
|
return this.event.NumberOfRings || 0;
|
|
51
48
|
},
|
|
49
|
+
handlePoolSizeChange(poolSize) {
|
|
50
|
+
this.$emit('update:poolSize', poolSize);
|
|
51
|
+
},
|
|
52
|
+
handleNumOfRingsChange(numberOfRings) {
|
|
53
|
+
this.$emit('update:numberOfRings', numberOfRings);
|
|
54
|
+
},
|
|
52
55
|
},
|
|
53
56
|
};
|
|
54
57
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section>
|
|
3
|
-
<EditEventsTopMenu :currentTab="'Checkin'" :tabs="tabs"/>
|
|
3
|
+
<EditEventsTopMenu :currentTab="'Checkin'" :tabs="tabs" @tabMenuClick="handleTabMenuClick"/>
|
|
4
4
|
<AttendanceSummary :event="event"/>
|
|
5
5
|
|
|
6
6
|
<div class="w-full flex flex-row justify-center mt-3">
|
|
@@ -142,6 +142,10 @@ export default {
|
|
|
142
142
|
handleAddExistingPerson(value) {
|
|
143
143
|
console.log(`----- handleAddExistingPerson: ${value}`);
|
|
144
144
|
this.$emit('add:existing-person', value);
|
|
145
|
+
},
|
|
146
|
+
handleTabMenuClick(value) {
|
|
147
|
+
console.log(`----- handleTabMenuClick: ${value}`);
|
|
148
|
+
this.$emit('tab:menu-click', value);
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="mx-4">
|
|
3
|
-
<EditTournamentMenu currentTab="Events" :tabs="tabs" />
|
|
3
|
+
<EditTournamentMenu currentTab="Events" :tabs="tabs" @tabMenuClick="handleTabMenuClick" />
|
|
4
4
|
<div class="w-full flex flex-row justify-center">
|
|
5
5
|
<section class="w-full">
|
|
6
6
|
<div class="w-full flex flex-col justify-center items-center mb-6" style="text-align: center">
|
|
@@ -33,9 +33,11 @@ import BaseText from "../../../Atoms/Text/BaseText.vue";
|
|
|
33
33
|
import BaseButton from "../../../Molecules/Buttons/BaseButton/BaseButton.vue";
|
|
34
34
|
import EventCard from "../../../Organisms/Cards/EventCard/EventCard.vue";
|
|
35
35
|
import emptyDesertIcon from '../../../../assets/empty_desert_icon.png';
|
|
36
|
+
import EditEventsTopMenu from "../../Menus/EditEventsTopMenu/EditEventsTopMenu.vue";
|
|
36
37
|
|
|
37
38
|
export default {
|
|
38
39
|
components: {
|
|
40
|
+
EditEventsTopMenu,
|
|
39
41
|
EventCard,
|
|
40
42
|
EditTournamentMenu,
|
|
41
43
|
BaseText,
|
|
@@ -70,6 +72,10 @@ export default {
|
|
|
70
72
|
handleManageEvent(eventId) {
|
|
71
73
|
console.log(`handleManageEvent: ${eventId}`);
|
|
72
74
|
this.$emit('manageEvent', eventId);
|
|
75
|
+
},
|
|
76
|
+
handleTabMenuClick(value) {
|
|
77
|
+
console.log(`----- handleTabMenuClick: ${value}`);
|
|
78
|
+
this.$emit('tab:menu-click', value);
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
}
|
|
@@ -24,7 +24,23 @@ export default {
|
|
|
24
24
|
|
|
25
25
|
export const Default = {
|
|
26
26
|
args: {
|
|
27
|
-
event:
|
|
27
|
+
event: {
|
|
28
|
+
"EventId": 5,
|
|
29
|
+
"TournamentId": 4,
|
|
30
|
+
"EventName": "Feline Longsword",
|
|
31
|
+
"Date": "2024-05-22",
|
|
32
|
+
"StartTime": "17:25:31",
|
|
33
|
+
"NumberOfRings": 3,
|
|
34
|
+
"NumberOfPools": 3,
|
|
35
|
+
"PoolSize": 4,
|
|
36
|
+
"Flights": 1,
|
|
37
|
+
"WeaponId": 1,
|
|
38
|
+
"Status": "Upcoming",
|
|
39
|
+
"Present": 0,
|
|
40
|
+
"Absent": 10,
|
|
41
|
+
"Removed": 0,
|
|
42
|
+
"RuleSummary": "Pools -> DE -> 3rd Place Faceoff"
|
|
43
|
+
},
|
|
28
44
|
poolAssignments: eventPersonGetInitialPoolAssignments
|
|
29
45
|
}
|
|
30
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section>
|
|
3
|
-
<EditEventsTopMenu :currentTab="'Pools'" :tabs="tabs"/>
|
|
4
|
-
<PoolSummary :event="event"/>
|
|
3
|
+
<EditEventsTopMenu :currentTab="'Pools'" :tabs="tabs" @tabMenuClick="handleTabMenuClick"/>
|
|
4
|
+
<PoolSummary :event="event" @update:poolSize="handlePoolSizeChange" @update:numberOfRings="handleNumberOfRinigs" />
|
|
5
5
|
|
|
6
6
|
<div class="w-full flex flex-row flex-wrap justify-start mt-3">
|
|
7
7
|
<div v-for="pool in poolAssignments" :key="pool.Name" >
|
|
@@ -69,6 +69,18 @@ export default {
|
|
|
69
69
|
swapFencers({ draggedPerson }) {
|
|
70
70
|
console.log('swapFencers', draggedPerson);
|
|
71
71
|
this.$emit('swap-fencers', {draggedPerson});
|
|
72
|
+
},
|
|
73
|
+
handleTabMenuClick(value) {
|
|
74
|
+
console.log(`----- handleTabMenuClick: ${value}`);
|
|
75
|
+
this.$emit('tab:menu-click', value);
|
|
76
|
+
},
|
|
77
|
+
handlePoolSizeChange(poolSize) {
|
|
78
|
+
console.log('handlePoolSizeChange', poolSize);
|
|
79
|
+
this.$emit('update:poolSize', poolSize);
|
|
80
|
+
},
|
|
81
|
+
handleNumberOfRinigs(numberOfRings) {
|
|
82
|
+
console.log('handleNumberOfRinigs', numberOfRings);
|
|
83
|
+
this.$emit('update:numberOfRings', numberOfRings);
|
|
72
84
|
}
|
|
73
85
|
}
|
|
74
86
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="flex">
|
|
3
|
-
<!-- <div class="mr-4">-->
|
|
4
|
-
<!-- <BaseButton label="Return" size="xs" type="primary" @click="addTournament" />-->
|
|
5
|
-
<!-- <BaseText text="Open Mixed Saber" size="lg" color="Primary" weight="bold" class="ml-4 pt-1" />-->
|
|
6
|
-
<!-- </div>-->
|
|
7
3
|
<TabBar class="border-b border-dropdownSelect mb-5">
|
|
8
4
|
<BaseButton
|
|
9
5
|
v-for="tab in tabs"
|
|
@@ -44,7 +40,7 @@ export default {
|
|
|
44
40
|
},
|
|
45
41
|
methods: {
|
|
46
42
|
handleButtonClick(buttonId) {
|
|
47
|
-
this.$emit('
|
|
43
|
+
this.$emit('tabMenuClick', buttonId);
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
}
|