@dcrackel/hematournamentui 1.0.487 → 1.0.488

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.487",
4
+ "version": "1.0.488",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -145,6 +145,30 @@ const assignmentsMock =
145
145
  "StartTime": "12:00:00",
146
146
  "Role": "Director",
147
147
  "Status": "completed"
148
+ },
149
+ {
150
+ "EventId": 35,
151
+ "EventName": "Saber 2",
152
+ "Date": "2024-11-17",
153
+ "StartTime": "12:00:00",
154
+ "Role": "Director",
155
+ "Status": "planning"
156
+ },
157
+ {
158
+ "EventId": 35,
159
+ "EventName": "Saber 3",
160
+ "Date": "2024-11-17",
161
+ "StartTime": "12:00:00",
162
+ "Role": "Director",
163
+ "Status": "preparation"
164
+ },
165
+ {
166
+ "EventId": 35,
167
+ "EventName": "Saber 4",
168
+ "Date": "2024-11-17",
169
+ "StartTime": "12:00:00",
170
+ "Role": "Director",
171
+ "Status": "live"
148
172
  }
149
173
  ]
150
174
  },
@@ -163,7 +187,7 @@ const assignmentsMock =
163
187
  "Status": "completed"
164
188
  }
165
189
  ]
166
- }
190
+ },
167
191
  ];
168
192
 
169
193
  export default assignmentsMock;
@@ -3,7 +3,7 @@
3
3
  <div class="w-full flex justify-between">
4
4
  <BaseText text="Assignments" color="primary" size="xl" type="h1" weight="bold" class="pt-2"/>
5
5
  <div class="flex">
6
- <BaseButton iconName="fa-arrow-rotate-right" :iconLeft="true" label="" size="sm" type="primary" @buttonClick="refreshAssignments" class="w-8 pl-4"/>
6
+ <BaseButton iconName="fa-arrow-rotate-right" :iconLeft="true" label="" size="sm" type="primary" @buttonClick="refreshAssignments" class="w-8 pl-4 md:w-12"/>
7
7
  <BaseButton label="Current" size="sm" :selected="showCurrent" type="primary" @buttonClick="showCurrent = true" />
8
8
  <BaseButton label="Past" size="sm" :selected="!showCurrent" type="primary" @buttonClick="showCurrent = false" class="w-16"/>
9
9
  </div>
@@ -38,10 +38,10 @@
38
38
  </span>
39
39
  </div>
40
40
  <div class="w-12 md:flex bg-poolSetup ml-2 px-4 py-2 rounded-lg">
41
- <BaseIcon :iconName="getStatusIcon(event)" size="sm" color="quinary" />
41
+ <BaseIcon :iconName="getStatusIcon(event)" size="md" color="quinary" :class="getIconClass(event)" />
42
42
  </div>
43
43
  <div v-if="shouldShowButton(event) && showCurrent" class="w-12 ml-1">
44
- <BaseButton v-if="shouldShowButton(event)" iconName="fa-right-from-line" :iconLeft="false" label="" size="md" type="primary" @buttonClick="forwardToEvent(event)" class="h-10"/>
44
+ <BaseButton v-if="shouldShowButton(event)" iconName="fa-right-from-line" :iconLeft="false" label="" size="md" type="primary" @buttonClick="forwardToEvent(event)" class="h-10 w-10 pr-4"/>
45
45
  </div>
46
46
  <span v-if="!shouldShowButton(event) && showCurrent" class="w-12 ml-1" />
47
47
  </section>
@@ -112,7 +112,7 @@ export default {
112
112
  }
113
113
  },
114
114
  shouldShowButton(event) {
115
- return event.Status !== "completed";
115
+ return event.Status === "live" || event.Status === "results" || event.Status === "de";
116
116
  },
117
117
  formatTournamentDates(startDate, endDate) {
118
118
  const today = new Date();
@@ -146,21 +146,39 @@ export default {
146
146
  getStatusIcon(event) {
147
147
  switch (event.Status) {
148
148
  case "planning":
149
- return "fa-clipboard";
149
+ return "fa-hourglass";
150
150
  case "preparation":
151
- return "fa-clipboard-check";
151
+ return "fa-hourglass-start";
152
152
  case "live":
153
- return "fa-swords";
153
+ return "fa-play";
154
154
  case "results":
155
- return "fa-chart-bar";
155
+ return "fa-pause";
156
156
  case "de":
157
- return "fa-sitemap";
157
+ return "fa-circle-play";
158
158
  case "completed":
159
159
  return "fa-trophy";
160
160
  default:
161
161
  return "fa-circle-question";
162
162
  }
163
163
  },
164
+ getIconClass(event) {
165
+ switch (event.Status) {
166
+ case "planning":
167
+ return "mt-1 pl-1";
168
+ case "preparation":
169
+ return "mt-1 pl-1";
170
+ case "live":
171
+ return "mt-1 pl-1";
172
+ case "results":
173
+ return "mt-1 pl-1";
174
+ case "de":
175
+ return "mt-1 pl-1";
176
+ case "completed":
177
+ return "mt-0.5";
178
+ default:
179
+ return "";
180
+ }
181
+ },
164
182
  forwardToEvent(event) {
165
183
  this.$emit('forwardToEvent', event);
166
184
  },