@dcrackel/meyersquaredui 1.0.126 → 1.0.128

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/meyersquaredui",
3
3
  "private": false,
4
- "version": "1.0.126",
4
+ "version": "1.0.128",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
@@ -3,7 +3,7 @@
3
3
  <div class="flex items-center justify-between rounded-lg w-full">
4
4
  <!-- Fencer 1 -->
5
5
  <div class="w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl"
6
- :class="[this.bout.Status !== 'Active' ? 'border-r' : '']"
6
+ :class="[status !== 'Active' ? 'border-r' : '']"
7
7
  >
8
8
  <div class="flex space-x-4 items-center">
9
9
  <div>
@@ -25,7 +25,7 @@
25
25
 
26
26
  <!-- Fencer 2 -->
27
27
  <div class="w-5/12 flex justify-between border-r border-t border-b p-2 bg-poolBox rounded-r-xl"
28
- :class="[this.bout.Status !== 'Active' ? 'border-l' : '']"
28
+ :class="[status !== 'Active' ? 'border-l' : '']"
29
29
  >
30
30
  <div class="flex justify-between space-x-4 ml-4 w-full">
31
31
  <BaseText size="3xl" weight="bold" class="pl-3 pt-0.5">{{ fencer2Score }}</BaseText>
@@ -44,7 +44,7 @@
44
44
  </div>
45
45
 
46
46
  <!-- Custom Status -->
47
- <div v-if="bout.customStatus && bout.Status !== 'Active'" class="text-left">
47
+ <div v-if="bout.customStatus && status !== 'Active'" class="text-left">
48
48
  <BaseText size="sm" color="primary">{{ bout.customStatus }}</BaseText>
49
49
  </div>
50
50
  </section>
@@ -94,6 +94,9 @@ export default {
94
94
  this.stopTimer();
95
95
  },
96
96
  computed: {
97
+ status() {
98
+ return this.isWaiting ? 'waiting' : this.bout.Status;
99
+ },
97
100
  fencer1Name() {
98
101
  return this.isWaiting ? 'Waiting to be selected' : this.bout.Person1.DisplayName;
99
102
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <section class="flex flex-col items-center w-full space-y-2 p-4 bg-poolBox rounded-lg relative">
3
3
  <!-- Custom Status (Only show if customStatus exists and bout is not Active) -->
4
- <div v-if="bout.customStatus && bout.Status !== 'Active'" class="text-center">
4
+ <div v-if="bout.customStatus && status !== 'Active'" class="text-center">
5
5
  <BaseText size="sm" color="primary" weight="bold" class=" pb-1">{{ bout.customStatus }}</BaseText>
6
6
  </div>
7
7
 
@@ -21,10 +21,10 @@
21
21
  <!-- Timer in the center, floating between fencer portraits -->
22
22
  <div class="absolute top-2 inset-x-0 text-center z-10 flex justify-center">
23
23
  <BaseText size="4xl" weight="bold" class="pr-4 -mt-1">{{ fencer1Score }}</BaseText>
24
- <div v-if="bout.Status === 'Active'" class="bg-primary p-2 rounded-lg">
24
+ <div v-if="status === 'Active'" class="bg-primary p-2 rounded-lg">
25
25
  <BaseText size="sm" color="white" weight="bold">{{ displayTime }}</BaseText>
26
26
  </div>
27
- <div v-if="bout.Status !== 'Active'" class="w-4"></div>
27
+ <div v-if="status !== 'Active'" class="w-4"></div>
28
28
  <BaseText size="4xl" weight="bold" class="pl-4 -mt-1">{{ fencer1Score }}</BaseText>
29
29
  </div>
30
30
 
@@ -86,6 +86,9 @@ export default {
86
86
  this.stopTimer();
87
87
  },
88
88
  computed: {
89
+ status() {
90
+ return this.isWaiting ? 'waiting' : this.bout.Status;
91
+ },
89
92
  fencer1Name() {
90
93
  return this.isWaiting ? 'Waiting to be selected' : this.bout.Person1.DisplayName;
91
94
  },
@@ -6,12 +6,12 @@
6
6
 
7
7
  <div class="w-full flex flex-col items-center">
8
8
  <div v-if="!hasActiveBout" class="w-full md:w-3/4 md:my-4">
9
- <!-- <BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />-->
10
- <!-- <BoutCardMobile :bout="bout" :hostingClubColors="hostingClubColors" />-->
9
+ <BoutCard v-if="!isMobile" :bout="{}" :hostingClubColors="hostingClubColors" :isWaiting="true" />
10
+ <BoutCardMobile v-if="isMobile" :bout="{}" :hostingClubColors="hostingClubColors" :isWaiting="true"/>
11
11
  </div>
12
12
  <div v-for="bout in activeBouts" :key="bout.BoutId" class="w-full md:w-3/4 md:my-4">
13
- <!-- <BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />-->
14
- <!-- <BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />-->
13
+ <BoutCard v-if="!isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
14
+ <BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" />
15
15
  </div>
16
16
  </div>
17
17
  </section>