@dcrackel/meyersquaredui 1.0.247 → 1.0.249
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/meyersquaredui.es.js +19 -13
- package/dist/meyersquaredui.umd.js +4 -4
- package/package.json +1 -1
- package/src/mocks/getBoutUpdateViaWS.js +64 -186
- package/src/stories/Molecules/ScoreBoardSections/FencerName/FencerName.vue +11 -9
- package/src/stories/Organisms/ScoreBoardParts/FencerPit/FencerPit.vue +30 -22
|
@@ -7207,10 +7207,13 @@ const Gm = /* @__PURE__ */ C(nl, [["render", dl]]), cl = {
|
|
|
7207
7207
|
return this.fullName;
|
|
7208
7208
|
},
|
|
7209
7209
|
getBackground() {
|
|
7210
|
-
return "bg-" + this.assignedColor;
|
|
7210
|
+
return "bg-" + this.assignedColor.toLowerCase();
|
|
7211
7211
|
},
|
|
7212
7212
|
textAlignment() {
|
|
7213
7213
|
return this.fencer1 ? "text-left" : "text-right";
|
|
7214
|
+
},
|
|
7215
|
+
textColor() {
|
|
7216
|
+
return this.assignedColor.toLowerCase() === "silver" ? "primary" : "white";
|
|
7214
7217
|
}
|
|
7215
7218
|
}
|
|
7216
7219
|
};
|
|
@@ -7220,7 +7223,7 @@ function ul(r, e, t, i, a, s) {
|
|
|
7220
7223
|
class: S([[s.getBackground, s.textAlignment], "px-8 py-3 w-1/2"])
|
|
7221
7224
|
}, [
|
|
7222
7225
|
l(o, {
|
|
7223
|
-
color:
|
|
7226
|
+
color: s.textColor,
|
|
7224
7227
|
size: "7xl",
|
|
7225
7228
|
weight: "bold",
|
|
7226
7229
|
class: "whitespace-nowrap overflow-hidden"
|
|
@@ -7229,17 +7232,16 @@ function ul(r, e, t, i, a, s) {
|
|
|
7229
7232
|
m(p(s.formattedName), 1)
|
|
7230
7233
|
]),
|
|
7231
7234
|
_: 1
|
|
7232
|
-
}),
|
|
7235
|
+
}, 8, ["color"]),
|
|
7233
7236
|
l(o, {
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
class: ""
|
|
7237
|
+
color: s.textColor,
|
|
7238
|
+
size: "2xl"
|
|
7237
7239
|
}, {
|
|
7238
7240
|
default: h(() => [
|
|
7239
7241
|
m(p(t.club), 1)
|
|
7240
7242
|
]),
|
|
7241
7243
|
_: 1
|
|
7242
|
-
})
|
|
7244
|
+
}, 8, ["color"])
|
|
7243
7245
|
], 2);
|
|
7244
7246
|
}
|
|
7245
7247
|
const ml = /* @__PURE__ */ C(cl, [["render", ul]]), hl = {
|
|
@@ -7291,7 +7293,8 @@ const Xm = /* @__PURE__ */ C(hl, [["render", pl]]), fl = {
|
|
|
7291
7293
|
},
|
|
7292
7294
|
computed: {
|
|
7293
7295
|
limitedBouts() {
|
|
7294
|
-
|
|
7296
|
+
var r;
|
|
7297
|
+
return ((r = this.nextBouts) == null ? void 0 : r.slice(0, 3)) || [];
|
|
7295
7298
|
}
|
|
7296
7299
|
},
|
|
7297
7300
|
methods: {
|
|
@@ -7308,7 +7311,10 @@ const Xm = /* @__PURE__ */ C(hl, [["render", pl]]), fl = {
|
|
|
7308
7311
|
}
|
|
7309
7312
|
},
|
|
7310
7313
|
getBackgroundColor(r) {
|
|
7311
|
-
return `bg-${r}`;
|
|
7314
|
+
return `bg-${r == null ? void 0 : r.toLowerCase()}`;
|
|
7315
|
+
},
|
|
7316
|
+
getTextColor(r) {
|
|
7317
|
+
return (r == null ? void 0 : r.toLowerCase()) === "silver" ? "primary" : "white";
|
|
7312
7318
|
}
|
|
7313
7319
|
}
|
|
7314
7320
|
}, bl = { class: "fencer-pit flex flex-col gap-4" }, yl = { class: "flex flex-col w-1/2" }, xl = { class: "pl-4 h-6" }, wl = { class: "flex flex-col w-1/2 text-right" }, vl = { class: "pr-4 h-6" };
|
|
@@ -7337,7 +7343,7 @@ function Cl(r, e, t, i, a, s) {
|
|
|
7337
7343
|
l(o, {
|
|
7338
7344
|
size: "4xl",
|
|
7339
7345
|
weight: "bold",
|
|
7340
|
-
color:
|
|
7346
|
+
color: s.getTextColor(t.hostingClubColors.Color1),
|
|
7341
7347
|
class: "p-2 pl-4"
|
|
7342
7348
|
}, {
|
|
7343
7349
|
default: h(() => {
|
|
@@ -7347,7 +7353,7 @@ function Cl(r, e, t, i, a, s) {
|
|
|
7347
7353
|
];
|
|
7348
7354
|
}),
|
|
7349
7355
|
_: 2
|
|
7350
|
-
},
|
|
7356
|
+
}, 1032, ["color"])
|
|
7351
7357
|
], 2)
|
|
7352
7358
|
]),
|
|
7353
7359
|
n("div", wl, [
|
|
@@ -7368,7 +7374,7 @@ function Cl(r, e, t, i, a, s) {
|
|
|
7368
7374
|
l(o, {
|
|
7369
7375
|
size: "4xl",
|
|
7370
7376
|
weight: "bold",
|
|
7371
|
-
color:
|
|
7377
|
+
color: s.getTextColor(t.hostingClubColors.Color2),
|
|
7372
7378
|
class: "p-2 pr-4"
|
|
7373
7379
|
}, {
|
|
7374
7380
|
default: h(() => {
|
|
@@ -7378,7 +7384,7 @@ function Cl(r, e, t, i, a, s) {
|
|
|
7378
7384
|
];
|
|
7379
7385
|
}),
|
|
7380
7386
|
_: 2
|
|
7381
|
-
},
|
|
7387
|
+
}, 1032, ["color"])
|
|
7382
7388
|
], 2)
|
|
7383
7389
|
])
|
|
7384
7390
|
]))), 128))
|