@dcrackel/hematournamentui 1.0.256 → 1.0.258

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.256",
4
+ "version": "1.0.258",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -27,9 +27,9 @@
27
27
  </div>
28
28
  <div class="mb-2 flex ">
29
29
  <div class="mt-1 h-10 w-52">
30
- <Toggle :checked="eventConfig.DEMax" label="Max Points" :labelLeft="false" @update:checked="handleDEMaxPointsChange"/>
30
+ <Toggle :checked="eventConfig.DEMax" label="DE Max Points" :labelLeft="false" @update:checked="handleDEMax"/>
31
31
  </div>
32
- <TitledInput :inputValue="eventConfig.DEMaxPoints" :invalid="validation.DEMaxPoints" placeholder="Enter DE Max Points"
32
+ <TitledInput v-if="eventConfig.DEMax" :inputValue="eventConfig.DEMaxPoints" :invalid="validation.DEMaxPoints" placeholder="Enter DE Max Points"
33
33
  title="" @update:value="handleDEMaxPointsChange" />
34
34
  </div>
35
35
  </div>
@@ -86,6 +86,9 @@ export default {
86
86
  handleDEBoutCountChange(value) {
87
87
  this.$emit('update', { DEBoutCount: value });
88
88
  },
89
+ handleDEMax(value) {
90
+ this.$emit('update', { DEMax: value });
91
+ },
89
92
  handleDEMaxPointsChange(value) {
90
93
  this.$emit('update', { DEMaxPoints: value });
91
94
  },
@@ -182,7 +182,6 @@ export default {
182
182
  if (key === 'WeaponId') this.localEvent.WeaponId = value.link;
183
183
  },
184
184
  handleValueChange(change) {
185
- console.log(change)
186
185
  const [key, value] = Object.entries(change)[0];
187
186
  this.eventConfig[key] = value;
188
187
  },
@@ -217,7 +216,7 @@ export default {
217
216
  RuleName: mapping[key].RuleName,
218
217
  RuleValue: Array.isArray(value) ? value.join(",") : String(value),
219
218
  Context: mapping[key].Context
220
- }));
219
+ }))
221
220
  },
222
221
  handleSubmit() {
223
222
  this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig)
@@ -25,3 +25,21 @@ export const Default = {
25
25
  weapons: getAllWeapons,
26
26
  rules: eventRules
27
27
  };
28
+
29
+ export const NewEvent = {
30
+ event: {
31
+ Absent: 0,
32
+ Date: new Date().toISOString().split('T')[0],
33
+ EventName: '',
34
+ Flights: 1,
35
+ NumberOfPools: 2,
36
+ NumberOfRings: 2,
37
+ PoolSize: 0,
38
+ Present: 0,
39
+ StartTime: '12:00:00',
40
+ Status: 'planning',
41
+ TournamentId: 10,
42
+ },
43
+ weapons: getAllWeapons,
44
+ rules: []
45
+ }