@dcrackel/meyersquaredui 1.0.129 → 1.0.130

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.129",
4
+ "version": "1.0.130",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
@@ -1,4 +1,4 @@
1
- import BoutCard from '../BoutCardMobile/BoutCardMobile.vue';
1
+ import BoutCard from './BoutCard.vue';
2
2
  import getPoolsWithBouts from '../../../../mocks/getPoolsWithBouts.js';
3
3
 
4
4
  export default {
@@ -1,5 +1,9 @@
1
1
  <template>
2
2
  <section>
3
+ <!-- Custom Status -->
4
+ <div v-if="bout.customStatus && status !== 'Active'" class="text-left">
5
+ <BaseText size="sm" color="primary">{{ bout.customStatus }}</BaseText>
6
+ </div>
3
7
  <div class="flex items-center justify-between rounded-lg w-full">
4
8
  <!-- Fencer 1 -->
5
9
  <div class="w-5/12 flex justify-between border-l border-t border-b p-2 bg-poolBox rounded-l-xl"
@@ -42,11 +46,6 @@
42
46
  </div>
43
47
  </div>
44
48
  </div>
45
-
46
- <!-- Custom Status -->
47
- <div v-if="bout.customStatus && status !== 'Active'" class="text-left">
48
- <BaseText size="sm" color="primary">{{ bout.customStatus }}</BaseText>
49
- </div>
50
49
  </section>
51
50
  </template>
52
51
 
@@ -93,6 +92,15 @@ export default {
93
92
  beforeDestroy() {
94
93
  this.stopTimer();
95
94
  },
95
+ watch: {
96
+ timerStatus(newStatus) {
97
+ if (newStatus === 'running') {
98
+ this.startTimer();
99
+ } else {
100
+ this.stopTimer();
101
+ }
102
+ }
103
+ },
96
104
  computed: {
97
105
  status() {
98
106
  return this.isWaiting ? 'waiting' : this.bout.Status;
@@ -85,6 +85,15 @@ export default {
85
85
  beforeDestroy() {
86
86
  this.stopTimer();
87
87
  },
88
+ watch: {
89
+ timerStatus(newStatus) {
90
+ if (newStatus === 'running') {
91
+ this.startTimer();
92
+ } else {
93
+ this.stopTimer();
94
+ }
95
+ }
96
+ },
88
97
  computed: {
89
98
  status() {
90
99
  return this.isWaiting ? 'waiting' : this.bout.Status;
@@ -10,8 +10,8 @@
10
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" :timerStatus="bout.TimerStatus" />
14
+ <BoutCardMobile v-if="isMobile" :bout="bout" :hostingClubColors="hostingClubColors" :timerStatus="bout.TimerStatus" />
15
15
  </div>
16
16
  </div>
17
17
  </section>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="w-full rounded-lg">
2
+ <div class="w-full rounded-t-lg">
3
3
  <!-- Tabs for Pools -->
4
4
  <div class="max-w-[1200px] md:w-full flex mx-2 md:mx-auto pl-4 bg-white rounded-tr-lg rounded-tl-lg">
5
5
  <span v-for="(tab, index) in tabs" :key="index">
@@ -6,7 +6,7 @@
6
6
  <!-- Center Content -->
7
7
  <div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
8
8
  <!-- Non-Mobile Image -->
9
- <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover" />
9
+ <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover" loading="lazy" />
10
10
 
11
11
  <!-- Text Overlay for Desktop -->
12
12
  <section class="hidden md:flex absolute inset-0 items-center justify-start px-8 mt-40">
@@ -6,7 +6,7 @@
6
6
  <!-- Main Content -->
7
7
  <div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
8
8
  <!-- Background Image -->
9
- <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96"/>
9
+ <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" loading="lazy"/>
10
10
 
11
11
  <!-- Text Overlay for Desktop -->
12
12
  <section class="hidden w-full md:flex absolute inset-0 justify-between items-end">
@@ -3,7 +3,7 @@
3
3
  <div class="hidden md:block w-[150px] bg-primary border-b border-lineGrey flex-shrink-0"></div>
4
4
 
5
5
  <div class="relative w-full md:border-b md:border-l md:border-r border-lineGrey">
6
- <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" />
6
+ <img v-if="!isMobile" :src="imageSrc" alt="Hero Image" class="w-full h-full object-cover object-top max-h-96" loading="lazy" />
7
7
 
8
8
  <section class="hidden md:flex absolute inset-0 items-center justify-start px-8 pt-32">
9
9
  <div class="text-left text-white max-w-lg">