@dcrackel/hematournamentui 1.0.71 → 1.0.73
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 +60 -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 +24 -19
- 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 +22 -16
|
@@ -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
|
},
|
|
@@ -29152,20 +29166,27 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29152
29166
|
formattedClubs: []
|
|
29153
29167
|
};
|
|
29154
29168
|
},
|
|
29155
|
-
|
|
29156
|
-
this.formattedClubs = this.mapClubData(this.clubs);
|
|
29157
|
-
},
|
|
29169
|
+
computed: {},
|
|
29158
29170
|
watch: {
|
|
29159
29171
|
inputValue(n) {
|
|
29160
29172
|
n.length < 2 && (this.showDropdown = !1, this.filteredPersons = []), n.length >= 2 && this.debounceSearch();
|
|
29161
29173
|
}
|
|
29162
29174
|
},
|
|
29175
|
+
created() {
|
|
29176
|
+
this.formatClubs();
|
|
29177
|
+
},
|
|
29163
29178
|
methods: {
|
|
29179
|
+
formatClubs() {
|
|
29180
|
+
this.fencingClubs[0].Name && (console.log("----------------------- Mapping clubs:", this.fencingClubs), this.formattedClubs = this.fencingClubs.map((n) => ({
|
|
29181
|
+
text: n.Name,
|
|
29182
|
+
link: n.ClubId.toString()
|
|
29183
|
+
})), console.log("----------------------- Mapping clubs:", this.formattedClubs));
|
|
29184
|
+
},
|
|
29164
29185
|
updateInput(n) {
|
|
29165
29186
|
this.inputValue = n.target.value;
|
|
29166
29187
|
},
|
|
29167
29188
|
selectPerson(n) {
|
|
29168
|
-
console.log(n), this.showDropdown = !1, this.inputValue = "", this.$emit("person-selected", n), this.showModal = !1;
|
|
29189
|
+
console.log("------- FindOrAddPerson: selectPerson -------"), console.log(n), this.showDropdown = !1, this.inputValue = "", this.$emit("person-selected", n), this.showModal = !1;
|
|
29169
29190
|
},
|
|
29170
29191
|
addNewPerson() {
|
|
29171
29192
|
this.isSearchMode = !1, this.modalIcon = "fa-user", this.modalButtonText = "Add Person";
|
|
@@ -29194,12 +29215,6 @@ const VT = /* @__PURE__ */ Ue(PT, [["render", HT]]), jT = {
|
|
|
29194
29215
|
};
|
|
29195
29216
|
this.$emit("new-person-submitted", n), console.log(n), this.showModal = !1;
|
|
29196
29217
|
},
|
|
29197
|
-
mapClubData(n) {
|
|
29198
|
-
return n.map((e) => ({
|
|
29199
|
-
text: e.Name,
|
|
29200
|
-
link: e.ClubId.toString()
|
|
29201
|
-
}));
|
|
29202
|
-
},
|
|
29203
29218
|
handleSelectedClub(n) {
|
|
29204
29219
|
this.selectedClub = n;
|
|
29205
29220
|
},
|
|
@@ -29338,7 +29353,7 @@ const XT = /* @__PURE__ */ Ue(jT, [["render", GT]]), _T = {
|
|
|
29338
29353
|
props: {
|
|
29339
29354
|
personsAll: Array,
|
|
29340
29355
|
event: Object,
|
|
29341
|
-
|
|
29356
|
+
fencingClubs: {
|
|
29342
29357
|
type: Array,
|
|
29343
29358
|
default: () => []
|
|
29344
29359
|
},
|
|
@@ -29390,16 +29405,16 @@ const XT = /* @__PURE__ */ Ue(jT, [["render", GT]]), _T = {
|
|
|
29390
29405
|
},
|
|
29391
29406
|
methods: {
|
|
29392
29407
|
handleSelectedItem(n) {
|
|
29393
|
-
console.log(
|
|
29408
|
+
console.log(`----- selectedItem: ${n}`), this.localSelectedItem = n;
|
|
29394
29409
|
},
|
|
29395
29410
|
handleStatus(n) {
|
|
29396
|
-
console.log(
|
|
29411
|
+
console.log(`----- handleStatus: ${n}`), n.Status = n.Status === "Absent" ? "Present" : "Absent", this.$emit("update:person", n);
|
|
29397
29412
|
},
|
|
29398
29413
|
handleNewPerson(n) {
|
|
29399
|
-
console.log(
|
|
29414
|
+
console.log(`----- handleNewPerson: ${n}`), this.$emit("add:person", n);
|
|
29400
29415
|
},
|
|
29401
29416
|
handleAddExistingPerson(n) {
|
|
29402
|
-
console.log(
|
|
29417
|
+
console.log(`----- handleAddExistingPerson: ${n}`), this.$emit("add:existing-person", n);
|
|
29403
29418
|
}
|
|
29404
29419
|
}
|
|
29405
29420
|
}, $T = { class: "w-full flex flex-row justify-center mt-3" }, eR = { class: "w-full" }, tR = {
|
|
@@ -29423,11 +29438,13 @@ function lR(n, e, t, r, i, o) {
|
|
|
29423
29438
|
N("section", nR, [
|
|
29424
29439
|
N("div", rR, [
|
|
29425
29440
|
z(l, {
|
|
29426
|
-
clubs: t.clubs,
|
|
29427
29441
|
persons: t.personsAll,
|
|
29442
|
+
fencingClubs: t.fencingClubs,
|
|
29443
|
+
addBorder: !1,
|
|
29444
|
+
addNewText: "Add New",
|
|
29428
29445
|
onNewPersonSubmitted: o.handleNewPerson,
|
|
29429
29446
|
onPersonSelected: o.handleAddExistingPerson
|
|
29430
|
-
}, null, 8, ["
|
|
29447
|
+
}, null, 8, ["persons", "fencingClubs", "onNewPersonSubmitted", "onPersonSelected"])
|
|
29431
29448
|
]),
|
|
29432
29449
|
N("div", iR, [
|
|
29433
29450
|
z(A, {
|
|
@@ -29446,14 +29463,14 @@ function lR(n, e, t, r, i, o) {
|
|
|
29446
29463
|
}, null, 8, aR),
|
|
29447
29464
|
z(u, {
|
|
29448
29465
|
color: "primaryHighlight",
|
|
29449
|
-
size: "
|
|
29466
|
+
size: "lg",
|
|
29450
29467
|
text: "0 events added yet.",
|
|
29451
29468
|
weight: "normal",
|
|
29452
29469
|
"data-testid": "text-num-events"
|
|
29453
29470
|
}),
|
|
29454
29471
|
z(u, {
|
|
29455
29472
|
color: "primaryHighlight",
|
|
29456
|
-
size: "
|
|
29473
|
+
size: "lg",
|
|
29457
29474
|
text: "Click below to add first event.",
|
|
29458
29475
|
weight: "normal",
|
|
29459
29476
|
"data-testid": "text-num-events"
|