@dcrackel/hematournamentui 1.0.72 → 1.0.74
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/HemaTouranmentUI-lib.es.js +59 -43
- package/dist/HemaTouranmentUI-lib.umd.js +2 -2
- package/package.json +1 -1
- package/src/stories/Atoms/Text/BaseText.vue +1 -1
- package/src/stories/Molecules/Boxes/EventStatusBox/EventStatusBox.vue +1 -1
- package/src/stories/Organisms/Cards/FencerCard/FencerCard.vue +1 -1
- package/src/stories/Organisms/ComplexInputs/DropDown/DropDownMenu.vue +1 -4
- package/src/stories/Organisms/ComplexInputs/FindOrAddPerson/FindOrAddPerson.vue +25 -25
- package/src/stories/Organisms/Containers/PoolSummary/PoolSummary.vue +34 -11
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.stories.js +39 -3
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +6 -4
|
@@ -236,7 +236,7 @@ const fh = /* @__PURE__ */ Ue(dh, [["render", gh]]), ph = {
|
|
|
236
236
|
name: "BaseText",
|
|
237
237
|
props: {
|
|
238
238
|
text: {
|
|
239
|
-
type: String,
|
|
239
|
+
type: [String, Number],
|
|
240
240
|
required: !0,
|
|
241
241
|
default: ""
|
|
242
242
|
},
|
|
@@ -701,13 +701,10 @@ const Ph = /* @__PURE__ */ Ue(Th, [["render", Oh]]), Nh = {
|
|
|
701
701
|
type: String
|
|
702
702
|
},
|
|
703
703
|
items: {
|
|
704
|
-
type: Array
|
|
705
|
-
validator: (n) => n.every((e) => typeof e.text == "string")
|
|
704
|
+
type: Array
|
|
706
705
|
},
|
|
707
706
|
selectedItem: {
|
|
708
|
-
type: Object,
|
|
709
|
-
default: () => ({ text: "" }),
|
|
710
|
-
validator: (n) => typeof n.text == "string"
|
|
707
|
+
type: [Object, String]
|
|
711
708
|
},
|
|
712
709
|
width: {
|
|
713
710
|
type: String,
|
|
@@ -28455,7 +28452,7 @@ const Kp = /* @__PURE__ */ Ue(DM, [["render", OM]]), PM = {
|
|
|
28455
28452
|
components: { BaseText: At },
|
|
28456
28453
|
props: {
|
|
28457
28454
|
statusCount: {
|
|
28458
|
-
type: Number,
|
|
28455
|
+
type: [Number, String],
|
|
28459
28456
|
required: !0
|
|
28460
28457
|
},
|
|
28461
28458
|
statusLabel: {
|
|
@@ -28824,7 +28821,7 @@ function QT(n, e, t, r, i, o) {
|
|
|
28824
28821
|
z(a, {
|
|
28825
28822
|
text: "",
|
|
28826
28823
|
size: "sm",
|
|
28827
|
-
color: "
|
|
28824
|
+
color: "neutral",
|
|
28828
28825
|
weight: "bold"
|
|
28829
28826
|
})
|
|
28830
28827
|
])),
|
|
@@ -29027,18 +29024,36 @@ const OT = /* @__PURE__ */ Ue(kT, [["render", DT]]), PT = {
|
|
|
29027
29024
|
type: Object,
|
|
29028
29025
|
required: !0,
|
|
29029
29026
|
validator(n) {
|
|
29030
|
-
|
|
29027
|
+
const t = [
|
|
29031
29028
|
"EventName",
|
|
29032
29029
|
"RuleSummary",
|
|
29033
|
-
"PoolSize",
|
|
29034
|
-
"NumberOfPools",
|
|
29035
|
-
"NumberOfFlights",
|
|
29036
29030
|
"Absent",
|
|
29037
29031
|
"Present",
|
|
29038
29032
|
"Removed"
|
|
29039
|
-
].
|
|
29033
|
+
].filter((r) => !(r in n));
|
|
29034
|
+
return t.length ? (console.warn(`Invalid event object: Missing fields: ${t.join(", ")}`), !1) : !0;
|
|
29040
29035
|
}
|
|
29041
29036
|
}
|
|
29037
|
+
},
|
|
29038
|
+
computed: {
|
|
29039
|
+
poolSize() {
|
|
29040
|
+
return this.event.PoolSize || 0;
|
|
29041
|
+
},
|
|
29042
|
+
numberOfPools() {
|
|
29043
|
+
return this.event.NumberOfPools || 0;
|
|
29044
|
+
},
|
|
29045
|
+
numberOfFlights() {
|
|
29046
|
+
return this.event.NumberOfFlights || 0;
|
|
29047
|
+
},
|
|
29048
|
+
absent() {
|
|
29049
|
+
return this.event.Absent || "0";
|
|
29050
|
+
},
|
|
29051
|
+
present() {
|
|
29052
|
+
return this.event.Present || "0";
|
|
29053
|
+
},
|
|
29054
|
+
removed() {
|
|
29055
|
+
return this.event.Removed || "0";
|
|
29056
|
+
}
|
|
29042
29057
|
}
|
|
29043
29058
|
}, NT = { class: "bg-poolSetup py-1 px-4 rounded-xl flex justify-between items-center" }, UT = { class: "flex flex-col pt-2" }, LT = /* @__PURE__ */ N("span", { class: "h-8" }, null, -1), JT = { class: "flex space-x-4" }, FT = { class: "flex flex-col" }, zT = { class: "flex justify-center items-center" }, KT = { class: "flex" };
|
|
29044
29059
|
function HT(n, e, t, r, i, o) {
|
|
@@ -29062,17 +29077,17 @@ function HT(n, e, t, r, i, o) {
|
|
|
29062
29077
|
N("section", JT, [
|
|
29063
29078
|
z(s, {
|
|
29064
29079
|
recommended: 7,
|
|
29065
|
-
count:
|
|
29080
|
+
count: o.poolSize,
|
|
29066
29081
|
label: "Pool Size"
|
|
29067
29082
|
}, null, 8, ["count"]),
|
|
29068
29083
|
z(s, {
|
|
29069
|
-
recommended:
|
|
29070
|
-
count:
|
|
29084
|
+
recommended: 2,
|
|
29085
|
+
count: o.numberOfPools,
|
|
29071
29086
|
label: "Num Pools"
|
|
29072
|
-
}, null, 8, ["
|
|
29087
|
+
}, null, 8, ["count"]),
|
|
29073
29088
|
z(s, {
|
|
29074
29089
|
recommended: 0,
|
|
29075
|
-
count:
|
|
29090
|
+
count: o.numberOfFlights,
|
|
29076
29091
|
label: "Flights"
|
|
29077
29092
|
}, null, 8, ["count"])
|
|
29078
29093
|
]),
|
|
@@ -29081,23 +29096,22 @@ function HT(n, e, t, r, i, o) {
|
|
|
29081
29096
|
z(a, {
|
|
29082
29097
|
text: "Fencer Counts",
|
|
29083
29098
|
size: "sm",
|
|
29084
|
-
color: "quinary"
|
|
29085
|
-
weight: ""
|
|
29099
|
+
color: "quinary"
|
|
29086
29100
|
})
|
|
29087
29101
|
]),
|
|
29088
29102
|
N("div", KT, [
|
|
29089
29103
|
z(l, {
|
|
29090
|
-
"status-count":
|
|
29104
|
+
"status-count": o.absent,
|
|
29091
29105
|
"status-label": "ABSENT",
|
|
29092
29106
|
"box-color": "bg-eventBoxBlue"
|
|
29093
29107
|
}, null, 8, ["status-count"]),
|
|
29094
29108
|
z(l, {
|
|
29095
|
-
"status-count":
|
|
29109
|
+
"status-count": o.present,
|
|
29096
29110
|
"status-label": "PRESENT",
|
|
29097
29111
|
"box-color": "bg-eventBoxGreen"
|
|
29098
29112
|
}, null, 8, ["status-count"]),
|
|
29099
29113
|
z(l, {
|
|
29100
|
-
"status-count":
|
|
29114
|
+
"status-count": o.removed,
|
|
29101
29115
|
"status-label": "REMOVED",
|
|
29102
29116
|
"box-color": "bg-eventBoxRed"
|
|
29103
29117
|
}, null, 8, ["status-count"])
|
|
@@ -29113,7 +29127,7 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29113
29127
|
type: Array,
|
|
29114
29128
|
required: !0
|
|
29115
29129
|
},
|
|
29116
|
-
|
|
29130
|
+
fencingClubs: {
|
|
29117
29131
|
type: Array,
|
|
29118
29132
|
required: !0
|
|
29119
29133
|
},
|
|
@@ -29140,7 +29154,7 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29140
29154
|
debouncedTimeout: null,
|
|
29141
29155
|
modalIcon: "fa-search",
|
|
29142
29156
|
modalButtonText: "Find Person",
|
|
29143
|
-
selectedPronouns: "",
|
|
29157
|
+
selectedPronouns: { text: "", link: "" },
|
|
29144
29158
|
pronouns: [
|
|
29145
29159
|
{ text: "He/Him", link: "he-him" },
|
|
29146
29160
|
{ text: "She/Her", link: "she-her" },
|
|
@@ -29148,12 +29162,18 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29148
29162
|
{ text: "Ze/Hir", link: "ze-hir" },
|
|
29149
29163
|
{ text: "Xe/Xem", link: "xe-xem" }
|
|
29150
29164
|
],
|
|
29151
|
-
selectedClub: "",
|
|
29152
|
-
formattedClubs: []
|
|
29165
|
+
selectedClub: { text: "", link: "" }
|
|
29153
29166
|
};
|
|
29154
29167
|
},
|
|
29155
|
-
|
|
29156
|
-
|
|
29168
|
+
computed: {
|
|
29169
|
+
formattedClubs() {
|
|
29170
|
+
console.log("Mapping clubs:", this.fencingClubs);
|
|
29171
|
+
const n = this.fencingClubs.map((e) => ({
|
|
29172
|
+
text: e.Name,
|
|
29173
|
+
link: e.ClubId.toString()
|
|
29174
|
+
}));
|
|
29175
|
+
return console.log("Mapped clubs:", n), n;
|
|
29176
|
+
}
|
|
29157
29177
|
},
|
|
29158
29178
|
watch: {
|
|
29159
29179
|
inputValue(n) {
|
|
@@ -29194,12 +29214,6 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29194
29214
|
};
|
|
29195
29215
|
this.$emit("new-person-submitted", n), console.log(n), this.showModal = !1;
|
|
29196
29216
|
},
|
|
29197
|
-
mapClubData(n) {
|
|
29198
|
-
return n.map((e) => ({
|
|
29199
|
-
text: e.Name,
|
|
29200
|
-
link: e.ClubId.toString()
|
|
29201
|
-
}));
|
|
29202
|
-
},
|
|
29203
29217
|
handleSelectedClub(n) {
|
|
29204
29218
|
this.selectedClub = n;
|
|
29205
29219
|
},
|
|
@@ -29291,7 +29305,7 @@ function GT(n, e, t, r, i, o) {
|
|
|
29291
29305
|
"onUpdate:value": e[2] || (e[2] = (d) => i.personLegalName = d)
|
|
29292
29306
|
}, null, 8, ["value"]),
|
|
29293
29307
|
z(u, {
|
|
29294
|
-
label: i.selectedPronouns.length < 2 ? "Preferred Pronouns" : "",
|
|
29308
|
+
label: i.selectedPronouns.text.length < 2 ? "Preferred Pronouns" : "",
|
|
29295
29309
|
items: i.pronouns,
|
|
29296
29310
|
class: "pb-2",
|
|
29297
29311
|
selectedItem: i.selectedPronouns,
|
|
@@ -29309,8 +29323,8 @@ function GT(n, e, t, r, i, o) {
|
|
|
29309
29323
|
"onUpdate:value": e[3] || (e[3] = (d) => i.personEmail = d)
|
|
29310
29324
|
}, null, 8, ["value"]),
|
|
29311
29325
|
z(u, {
|
|
29312
|
-
label: i.selectedClub.length < 2 ? "Select Club" : "",
|
|
29313
|
-
items:
|
|
29326
|
+
label: i.selectedClub.text.length < 2 ? "Select Club" : "",
|
|
29327
|
+
items: o.formattedClubs,
|
|
29314
29328
|
selectedItem: i.selectedClub,
|
|
29315
29329
|
class: "pb-2",
|
|
29316
29330
|
"onUpdate:selectedItem": o.handleSelectedClub,
|
|
@@ -29338,7 +29352,7 @@ const XT = /* @__PURE__ */ Ue(jT, [["render", GT]]), _T = {
|
|
|
29338
29352
|
props: {
|
|
29339
29353
|
personsAll: Array,
|
|
29340
29354
|
event: Object,
|
|
29341
|
-
|
|
29355
|
+
fencingClubs: {
|
|
29342
29356
|
type: Array,
|
|
29343
29357
|
default: () => []
|
|
29344
29358
|
},
|
|
@@ -29423,11 +29437,13 @@ function lR(n, e, t, r, i, o) {
|
|
|
29423
29437
|
N("section", nR, [
|
|
29424
29438
|
N("div", rR, [
|
|
29425
29439
|
z(l, {
|
|
29426
|
-
clubs: t.clubs,
|
|
29427
29440
|
persons: t.personsAll,
|
|
29441
|
+
fencingClubs: t.fencingClubs,
|
|
29442
|
+
addBorder: !1,
|
|
29443
|
+
addNewText: "Add New",
|
|
29428
29444
|
onNewPersonSubmitted: o.handleNewPerson,
|
|
29429
29445
|
onPersonSelected: o.handleAddExistingPerson
|
|
29430
|
-
}, null, 8, ["
|
|
29446
|
+
}, null, 8, ["persons", "fencingClubs", "onNewPersonSubmitted", "onPersonSelected"])
|
|
29431
29447
|
]),
|
|
29432
29448
|
N("div", iR, [
|
|
29433
29449
|
z(A, {
|
|
@@ -29446,14 +29462,14 @@ function lR(n, e, t, r, i, o) {
|
|
|
29446
29462
|
}, null, 8, aR),
|
|
29447
29463
|
z(u, {
|
|
29448
29464
|
color: "primaryHighlight",
|
|
29449
|
-
size: "
|
|
29465
|
+
size: "lg",
|
|
29450
29466
|
text: "0 events added yet.",
|
|
29451
29467
|
weight: "normal",
|
|
29452
29468
|
"data-testid": "text-num-events"
|
|
29453
29469
|
}),
|
|
29454
29470
|
z(u, {
|
|
29455
29471
|
color: "primaryHighlight",
|
|
29456
|
-
size: "
|
|
29472
|
+
size: "lg",
|
|
29457
29473
|
text: "Click below to add first event.",
|
|
29458
29474
|
weight: "normal",
|
|
29459
29475
|
"data-testid": "text-num-events"
|