@dcrackel/hematournamentui 1.0.411 → 1.0.415
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/dist/HemaTournamentUI-lib.es.js +17 -22
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/mocks/eventMock.js +3 -3
- package/src/stories/Molecules/Boxes/BoutBoxes/ScoreBox/ScoreBox.vue +2 -2
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +27 -21
- package/src/stories/Organisms/Cards/EventCard/EventCard.vue +1 -1
|
@@ -31047,7 +31047,7 @@ function XT(n, e, t, r, o, i) {
|
|
|
31047
31047
|
const A = y("BaseIcon"), a = y("BaseText"), l = y("BaseButton"), c = y("EventStatusBox"), u = y("BaseModal");
|
|
31048
31048
|
return f(), m(fe, null, [
|
|
31049
31049
|
h("div", {
|
|
31050
|
-
class: "flex items-center p-2 md:px-4 md:py-4 bg-eventBoxBlue border border-dropdownSelect rounded-lg md:shadow-md w-full mb-6 hover:border-bright",
|
|
31050
|
+
class: "flex items-center p-2 md:px-4 md:py-4 bg-eventBoxBlue md:bg-white border border-dropdownSelect rounded-lg md:shadow-md w-full mb-6 hover:border-bright",
|
|
31051
31051
|
onClick: e[0] || (e[0] = (...d) => i.onManage && i.onManage(...d))
|
|
31052
31052
|
}, [
|
|
31053
31053
|
h("div", MT, [
|
|
@@ -33863,12 +33863,12 @@ function Xz(n, e, t, r, o, i) {
|
|
|
33863
33863
|
onClick: e[1] || (e[1] = (...l) => i.minus && i.minus(...l))
|
|
33864
33864
|
}, [
|
|
33865
33865
|
p(a, {
|
|
33866
|
-
"icon-name": "fa-square-minus",
|
|
33866
|
+
"icon-name": t.isCountingUp ? "fa-square-minus" : "fa-square-plus",
|
|
33867
33867
|
size: "5xl",
|
|
33868
33868
|
color: i.computedColor,
|
|
33869
33869
|
hover: "quaternary",
|
|
33870
33870
|
disabled: o.baseScore <= 0
|
|
33871
|
-
}, null, 8, ["color", "disabled"])
|
|
33871
|
+
}, null, 8, ["icon-name", "color", "disabled"])
|
|
33872
33872
|
]),
|
|
33873
33873
|
h("div", Gz, [
|
|
33874
33874
|
h("div", Jz, [
|
|
@@ -33885,12 +33885,12 @@ function Xz(n, e, t, r, o, i) {
|
|
|
33885
33885
|
onClick: e[2] || (e[2] = (...l) => i.plus && i.plus(...l))
|
|
33886
33886
|
}, [
|
|
33887
33887
|
p(a, {
|
|
33888
|
-
"icon-name": "fa-square-plus",
|
|
33888
|
+
"icon-name": t.isCountingUp ? "fa-square-plus" : "fa-square-minus",
|
|
33889
33889
|
size: "5xl",
|
|
33890
33890
|
color: i.computedColor,
|
|
33891
33891
|
hover: "quaternary",
|
|
33892
33892
|
disabled: o.baseScore >= t.maxScore
|
|
33893
|
-
}, null, 8, ["color", "disabled"])
|
|
33893
|
+
}, null, 8, ["icon-name", "color", "disabled"])
|
|
33894
33894
|
])
|
|
33895
33895
|
]),
|
|
33896
33896
|
h("div", Vz, [
|
|
@@ -34189,35 +34189,27 @@ const EP = /* @__PURE__ */ ie(lP, [["render", BP]]), QP = {
|
|
|
34189
34189
|
return this.localBout.Pool.RingName || "Ring";
|
|
34190
34190
|
},
|
|
34191
34191
|
showPassesBox() {
|
|
34192
|
-
return this.eventRules.some((n) => n.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.Rules.RuleName === "DENumOfPasses");
|
|
34192
|
+
return Array.isArray(this.eventRules) && (this.eventRules.some((n) => n.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.Rules.RuleName === "DENumOfPasses"));
|
|
34193
34193
|
},
|
|
34194
34194
|
showTimerBox() {
|
|
34195
|
-
return this.eventRules.some((n) => n.Rules.RuleName === "PoolTime") || this.eventRules.some((n) => n.Rules.RuleName === "DETime");
|
|
34195
|
+
return Array.isArray(this.eventRules) && (this.eventRules.some((n) => n.Rules.RuleName === "PoolTime") || this.eventRules.some((n) => n.Rules.RuleName === "DETime"));
|
|
34196
34196
|
},
|
|
34197
34197
|
startTime() {
|
|
34198
34198
|
if (this.localBout.TimeLeft > 0) return this.localBout.TimeLeft;
|
|
34199
34199
|
if (this.localBout.DEBoutId) {
|
|
34200
|
-
const e = this.eventRules.find((t) => t.Rules.RuleName === "DETime");
|
|
34200
|
+
const e = Array.isArray(this.eventRules) ? this.eventRules.find((t) => t.Rules.RuleName === "DETime") : null;
|
|
34201
34201
|
return e ? parseInt(e.RuleValue) : 90;
|
|
34202
34202
|
}
|
|
34203
|
-
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolTime");
|
|
34203
|
+
const n = Array.isArray(this.eventRules) ? this.eventRules.find((e) => e.Rules.RuleName === "PoolTime") : null;
|
|
34204
34204
|
return n ? parseInt(n.RuleValue) : 90;
|
|
34205
34205
|
},
|
|
34206
34206
|
maxPoints() {
|
|
34207
34207
|
if (this.localBout.DEBoutId) {
|
|
34208
|
-
const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
|
|
34208
|
+
const e = Array.isArray(this.eventRules) ? this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints") : null;
|
|
34209
34209
|
return e ? parseInt(e.RuleValue) : 7;
|
|
34210
34210
|
}
|
|
34211
|
-
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints");
|
|
34211
|
+
const n = Array.isArray(this.eventRules) ? this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints") : null;
|
|
34212
34212
|
return n ? parseInt(n.RuleValue) : 7;
|
|
34213
|
-
},
|
|
34214
|
-
maxPasses() {
|
|
34215
|
-
if (this.localBout.DEBoutId) {
|
|
34216
|
-
const e = this.eventRules.find((t) => t.Rules.RuleName === "DENumOfPasses");
|
|
34217
|
-
return e ? parseInt(e.RuleValue) : 5;
|
|
34218
|
-
}
|
|
34219
|
-
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolNumOfPasses");
|
|
34220
|
-
return n ? parseInt(n.RuleValue) : 5;
|
|
34221
34213
|
}
|
|
34222
34214
|
},
|
|
34223
34215
|
methods: {
|
|
@@ -34243,8 +34235,11 @@ const EP = /* @__PURE__ */ ie(lP, [["render", BP]]), QP = {
|
|
|
34243
34235
|
this.localBout.Started === null && (this.localBout.Started = (/* @__PURE__ */ new Date()).toISOString()), this.showSubmit = this.localBout.Score1 === this.maxPoints || this.localBout.Score2 === this.maxPoints || this.localBout.TimeLeft === 0 || this.localBout.CurrentPass === this.maxPasses - 1, this.$emit("update:bout", this.localBout);
|
|
34244
34236
|
},
|
|
34245
34237
|
setCountingDirection() {
|
|
34246
|
-
|
|
34247
|
-
|
|
34238
|
+
if (Array.isArray(this.eventRules)) {
|
|
34239
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolScoreDirection");
|
|
34240
|
+
this.isCountingUp = n ? n.RuleValue : !0;
|
|
34241
|
+
}
|
|
34242
|
+
Array.isArray(this.eventRules) || (this.isCountingUp = !0);
|
|
34248
34243
|
}
|
|
34249
34244
|
}
|
|
34250
34245
|
}, vP = { class: "w-11/12 mt-5 mx-6" };
|
|
@@ -34269,7 +34264,7 @@ function wP(n, e, t, r, o, i) {
|
|
|
34269
34264
|
i.showPassesBox ? (f(), se(l, {
|
|
34270
34265
|
key: 1,
|
|
34271
34266
|
bout: o.localBout,
|
|
34272
|
-
maxPasses: parseInt(
|
|
34267
|
+
maxPasses: parseInt(n.maxPasses),
|
|
34273
34268
|
"onUpdate:passes": i.updatePasses
|
|
34274
34269
|
}, null, 8, ["bout", "maxPasses", "onUpdate:passes"])) : x("", !0),
|
|
34275
34270
|
p(A, {
|