@dcrackel/meyersquaredui 1.0.191 → 1.0.195

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.
Files changed (22) hide show
  1. package/dist/meyersquaredui.es.js +6 -1
  2. package/dist/meyersquaredui.umd.js +1 -1
  3. package/package.json +13 -13
  4. package/src/assets/fonts/RobotoMono-Regular.ttf +0 -0
  5. package/src/assets/fonts/RobotoMono-SemiBold.ttf +0 -0
  6. package/src/mocks/getPoolsWithBouts.js +394 -787
  7. package/src/mocks/getPoolsWithBoutsByPoolId.js +401 -1168
  8. package/src/stories/Atoms/BaseText/BaseText.vue +5 -0
  9. package/src/stories/Molecules/ScoreBoardSections/FencerName/FencerName.stories.js +40 -0
  10. package/src/stories/Molecules/ScoreBoardSections/FencerName/FencerName.vue +49 -0
  11. package/src/stories/Molecules/ScoreBoardSections/FencerScore/FencerScore.stories.js +40 -0
  12. package/src/stories/Molecules/ScoreBoardSections/FencerScore/FencerScore.vue +28 -0
  13. package/src/stories/Molecules/ScoreBoardSections/ScoreBoardPasses/ScoreBoardPasses.stories.js +45 -0
  14. package/src/stories/Molecules/ScoreBoardSections/ScoreBoardPasses/ScoreBoardPasses.vue +39 -0
  15. package/src/stories/Molecules/ScoreBoardSections/ScoreBoardTimer/ScoreBoardTimer.stories.js +43 -0
  16. package/src/stories/Molecules/ScoreBoardSections/ScoreBoardTimer/ScoreBoardTimer.vue +88 -0
  17. package/src/stories/Organisms/ScoreBoardParts/FencerNameBar/FencerNameBar.stories.js +43 -0
  18. package/src/stories/Organisms/ScoreBoardParts/FencerNameBar/FencerNameBar.vue +37 -0
  19. package/src/stories/Organisms/ScoreBoardParts/FencerPit/FencerPit.stories.js +52 -0
  20. package/src/stories/Organisms/ScoreBoardParts/FencerPit/FencerPit.vue +65 -0
  21. package/src/stories/Organisms/ScoreBoardParts/ScoreBar/ScoreBar.stories.js +58 -0
  22. package/src/stories/Organisms/ScoreBoardParts/ScoreBar/ScoreBar.vue +61 -0
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div class="flex w-full">
3
+ <FencerScore
4
+ :score="score1"
5
+ />
6
+ <ScoreBoardTimer v-if="!bout.MaxPasses"
7
+ :initialTime="bout.TimeLeft"
8
+ :timerStatus="bout.TimerStatus"
9
+ :ringName="bout.Pool.RingName"
10
+ :directorName="bout.RefName"
11
+ :showClock="showClock"
12
+ />
13
+ <ScoreBoardPasses v-if="bout.MaxPasses"
14
+ :currentPass="bout.CurrentPass || 0"
15
+ :totalPasses="bout.MaxPasses"
16
+ :ringName="bout.Pool.RingName"
17
+ :directorName="bout.RefName"
18
+ />
19
+ <FencerScore
20
+ :score="score2"
21
+ />
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import FencerScore from '../../../Molecules/ScoreBoardSections/FencerScore/FencerScore.vue';
27
+ import ScoreBoardTimer from "../../../Molecules/ScoreBoardSections/ScoreBoardTimer/ScoreBoardTimer.vue";
28
+ import ScoreBoardPasses from "../../../Molecules/ScoreBoardSections/ScoreBoardPasses/ScoreBoardPasses.vue";
29
+
30
+ export default {
31
+ name: 'ScoreBar',
32
+ components: {
33
+ ScoreBoardPasses,
34
+ ScoreBoardTimer,
35
+ FencerScore
36
+ },
37
+ props: {
38
+ bout: {
39
+ type: Object,
40
+ required: true
41
+ }
42
+ },
43
+ computed: {
44
+ score1() {
45
+ if (!this.bout.IsCountingUp) {
46
+ return this.bout.MaxPoints - this.bout.Score1;
47
+ }
48
+ return this.bout.Score1;
49
+ },
50
+ score2() {
51
+ if (!this.bout.IsCountingUp) {
52
+ return this.bout.MaxPoints - this.bout.Score2;
53
+ }
54
+ return this.bout.Score2;
55
+ },
56
+ showClock() {
57
+ return this.bout.ShowTimerBox;
58
+ }
59
+ },
60
+ };
61
+ </script>