@dcrackel/hematournamentui 1.0.89 → 1.0.90
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/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.90",
|
|
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.7",
|
|
44
|
+
"@storybook/addon-docs": "^8.1.7",
|
|
45
|
+
"@storybook/addon-essentials": "^8.1.7",
|
|
46
|
+
"@storybook/addon-interactions": "^8.1.7",
|
|
47
|
+
"@storybook/addon-links": "^8.1.7",
|
|
48
|
+
"@storybook/addon-mdx-gfm": "^8.1.7",
|
|
49
|
+
"@storybook/blocks": "^8.1.7",
|
|
50
|
+
"@storybook/react": "^8.1.7",
|
|
51
|
+
"@storybook/test": "^8.1.7",
|
|
52
|
+
"@storybook/vue3": "^8.1.7",
|
|
53
|
+
"@storybook/vue3-vite": "^8.1.7",
|
|
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.7",
|
|
63
63
|
"storybook-vue3-router": "^5.0.0",
|
|
64
64
|
"tailwindcss": "^3.4.3",
|
|
65
65
|
"vite": "^5.0.10",
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
|
-
<div v-if="filteredPools.length > 1" class="grid grid-cols-2 gap-4 mx-8 mt-8">
|
|
32
|
-
<BaseButton label="Reset Pools" size="md" icon-name="fa-rotate-right" icon-style="fa-solid" type="graySecondary" :icon-left="true" class="max-w-96 justify-self-end" @click="handleReset" />
|
|
33
|
-
<BaseButton label="Start
|
|
31
|
+
<div v-if="filteredPools.length > 1 && mode !== 'Complete'" class="grid grid-cols-2 gap-4 mx-8 mt-8">
|
|
32
|
+
<BaseButton v-if="mode === 'Planning' || mode === 'Preparation'" label="Reset Pools" size="md" icon-name="fa-rotate-right" icon-style="fa-solid" type="graySecondary" :icon-left="true" class="max-w-96 justify-self-end" @click="handleReset" />
|
|
33
|
+
<BaseButton v-if="mode === 'Planning'" label="Start Event" size="md" icon-name="fa-caret-right" icon-style="fa-solid" type="secondary" :icon-left="false" class="max-w-96 justify-self-start" @click="handleStart" />
|
|
34
|
+
<BaseButton v-if="mode === 'Preparation'" label="Make Pools Live" size="md" icon-name="fa-caret-right" icon-style="fa-solid" type="secondary" :icon-left="false" class="max-w-96 justify-self-start" @click="handleGoLive" />
|
|
34
35
|
</div>
|
|
35
36
|
</section>
|
|
36
37
|
</template>
|
|
@@ -119,6 +120,9 @@ export default {
|
|
|
119
120
|
handleStart() {
|
|
120
121
|
this.$emit('start:pool');
|
|
121
122
|
},
|
|
123
|
+
handleGoLive() {
|
|
124
|
+
this.$emit('goLive:pool');
|
|
125
|
+
},
|
|
122
126
|
getDirectorName(staffArray) {
|
|
123
127
|
const director = staffArray.find(staff => staff.Role === 'Director');
|
|
124
128
|
return director ? director.Person.DisplayName : 'Unassigned';
|