@dcrackel/hematournamentui 1.0.359 → 1.0.361
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 +35 -31
- package/dist/HemaTournamentUI-lib.umd.js +20 -20
- package/package.json +13 -13
- package/src/mocks/getDEWithBouts.js +277 -499
- package/src/mocks/getPoolsWithBoutsByPoolId.js +252 -947
- package/src/stories/Molecules/Modals/EventWizardModal/EventWizardModal.vue +0 -1
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +10 -8
- package/src/stories/Organisms/Cards/EditBout/EditBout.vue +2 -2
- package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +0 -2
- package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.vue +0 -2
- package/src/stories/Organisms/ComplexInputs/AddressAutocomplete/AddressAutocomplete.vue +0 -2
- package/src/stories/Organisms/ComplexInputs/FindPerson/FindPerson.vue +0 -1
- package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +0 -2
- package/src/stories/Organisms/Containers/PeopleColumn/PeopleColumn.vue +0 -2
- package/src/stories/Organisms/Form/EditEvent/EditEvent.vue +0 -2
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +0 -1
- package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.vue +1 -2
- package/src/stories/Templates/ClubManagement/ClubManagement.vue +0 -1
- package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +3 -4
- package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +0 -1
- package/src/stories/Templates/EventManagement/PoolLive/PoolLive.stories.js +13 -13
- package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +4 -2
- package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +0 -1
- package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +0 -1
- package/src/stories/Templates/PersonManagement/PersonManagement.vue +0 -1
- package/src/stories/Templates/TournamentManagement/AddTournament/PageTwo/AddTournamentPageTwo.vue +0 -1
|
@@ -9570,7 +9570,7 @@ const gs = /* @__PURE__ */ ie(AQ, [["render", lQ]]), cQ = {
|
|
|
9570
9570
|
};
|
|
9571
9571
|
},
|
|
9572
9572
|
mounted() {
|
|
9573
|
-
|
|
9573
|
+
this.localEventConfig = { ...this.eventConfig };
|
|
9574
9574
|
},
|
|
9575
9575
|
watch: {
|
|
9576
9576
|
eventConfig: {
|
|
@@ -10265,7 +10265,7 @@ const dv = /* @__PURE__ */ ie($Q, [["render", uv]]), gv = {
|
|
|
10265
10265
|
}));
|
|
10266
10266
|
},
|
|
10267
10267
|
handleSubmit() {
|
|
10268
|
-
|
|
10268
|
+
this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
|
|
10269
10269
|
},
|
|
10270
10270
|
handleCancel() {
|
|
10271
10271
|
this.$emit("update:cancel");
|
|
@@ -10354,7 +10354,7 @@ const fg = /* @__PURE__ */ ie(gv, [["render", pv]]), Iv = {
|
|
|
10354
10354
|
this.$emit("update:closeModal", this.bout);
|
|
10355
10355
|
},
|
|
10356
10356
|
handleSubmitEvent(n) {
|
|
10357
|
-
|
|
10357
|
+
this.$emit("update:submit", n);
|
|
10358
10358
|
}
|
|
10359
10359
|
}
|
|
10360
10360
|
}, Cv = { class: "flex w-full justify-end mt-1" };
|
|
@@ -10713,7 +10713,7 @@ const yv = /* @__PURE__ */ ie(Qv, [["render", wv]]), bv = {
|
|
|
10713
10713
|
},
|
|
10714
10714
|
methods: {
|
|
10715
10715
|
addNewAddress(n) {
|
|
10716
|
-
|
|
10716
|
+
this.$emit("add-new-address", n);
|
|
10717
10717
|
},
|
|
10718
10718
|
getAddressData(n) {
|
|
10719
10719
|
const e = `${n.street_number} ${n.route}`, t = n.locality, r = n.administrative_area_level_1;
|
|
@@ -10758,7 +10758,7 @@ const hs = /* @__PURE__ */ ie(bv, [["render", xv]]), Dv = {
|
|
|
10758
10758
|
},
|
|
10759
10759
|
methods: {
|
|
10760
10760
|
handleEditClick(n) {
|
|
10761
|
-
|
|
10761
|
+
this.$emit("edit", this.detail.TournamentId);
|
|
10762
10762
|
},
|
|
10763
10763
|
listEvents() {
|
|
10764
10764
|
this.$emit("listEvents", this.detail.TournamentId);
|
|
@@ -13048,7 +13048,7 @@ const Xc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAACRCAYAAADtlO7dAA
|
|
|
13048
13048
|
this.uploading = !0;
|
|
13049
13049
|
},
|
|
13050
13050
|
handleUploaded(n) {
|
|
13051
|
-
this.uploading = !1,
|
|
13051
|
+
this.uploading = !1, n.response.status === 200 && (this.localUrl = `${this.imageServer}${this.uploadImageName}.png`, this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
|
|
13052
13052
|
},
|
|
13053
13053
|
handleCompleted() {
|
|
13054
13054
|
this.message = "Upload completed.";
|
|
@@ -29353,7 +29353,7 @@ const Os = /* @__PURE__ */ ie(H1, [["render", K1]]), U1 = {
|
|
|
29353
29353
|
},
|
|
29354
29354
|
methods: {
|
|
29355
29355
|
updateInput(n) {
|
|
29356
|
-
|
|
29356
|
+
this.inputValue = n.target.value;
|
|
29357
29357
|
},
|
|
29358
29358
|
selectPerson(n) {
|
|
29359
29359
|
this.showDropdown = !1, this.inputValue = n.DisplayName, this.$emit("person-selected", n), this.$nextTick(() => {
|
|
@@ -30026,7 +30026,7 @@ const vY = /* @__PURE__ */ ie(iO, [["render", mO]]), BO = {
|
|
|
30026
30026
|
this.localTournament.externalLinks = this.localTournament.externalLinks.filter((e) => e.url !== n);
|
|
30027
30027
|
},
|
|
30028
30028
|
handleSubmit() {
|
|
30029
|
-
|
|
30029
|
+
this.$emit("submit:tournament", this.localTournament);
|
|
30030
30030
|
},
|
|
30031
30031
|
isValidUrl(n) {
|
|
30032
30032
|
return /^(https?:\/\/)?([\da-z.-]+)\.([\da-z.]+)\.([\/\w\W]+)\/?$/.test(n);
|
|
@@ -31962,7 +31962,7 @@ const Kp = /* @__PURE__ */ ie(ZT, [["render", h7]]), p7 = {
|
|
|
31962
31962
|
},
|
|
31963
31963
|
methods: {
|
|
31964
31964
|
onDragStart(n) {
|
|
31965
|
-
|
|
31965
|
+
(this.mode === "preparation" || this.mode === "planning") && n.dataTransfer.setData("text/plain", JSON.stringify({
|
|
31966
31966
|
fromPosition: this.poolPosition,
|
|
31967
31967
|
name: this.name,
|
|
31968
31968
|
club: this.club,
|
|
@@ -31970,7 +31970,7 @@ const Kp = /* @__PURE__ */ ie(ZT, [["render", h7]]), p7 = {
|
|
|
31970
31970
|
}));
|
|
31971
31971
|
},
|
|
31972
31972
|
onDrop(n) {
|
|
31973
|
-
if (
|
|
31973
|
+
if (this.mode === "preparation" || this.mode === "planning") {
|
|
31974
31974
|
const e = JSON.parse(n.dataTransfer.getData("text/plain"));
|
|
31975
31975
|
e.toPosition = this.poolPosition, this.$emit("swap-fencers", { droppedData: e });
|
|
31976
31976
|
}
|
|
@@ -32392,7 +32392,7 @@ const j7 = /* @__PURE__ */ ie(T7, [["render", q7]]), K7 = {
|
|
|
32392
32392
|
this.$emit("remove:fencer", n);
|
|
32393
32393
|
},
|
|
32394
32394
|
handleSelectPool(n) {
|
|
32395
|
-
|
|
32395
|
+
this.$emit("select:pool", n);
|
|
32396
32396
|
}
|
|
32397
32397
|
}
|
|
32398
32398
|
}, U7 = {
|
|
@@ -33646,33 +33646,33 @@ const Fz = /* @__PURE__ */ ie(wz, [["render", zz]]), Pz = {
|
|
|
33646
33646
|
return this.localBout.Pool.RingName || "Ring";
|
|
33647
33647
|
},
|
|
33648
33648
|
showPassesBox() {
|
|
33649
|
-
return this.eventRules.some((n) => n.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.RuleName === "DENumOfPasses");
|
|
33649
|
+
return console.log(this.eventRules), this.eventRules.some((n) => n.Rules.RuleName === "PoolNumOfPasses") || this.eventRules.some((n) => n.Rules.RuleName === "DENumOfPasses");
|
|
33650
33650
|
},
|
|
33651
33651
|
showTimerBox() {
|
|
33652
|
-
return this.eventRules.some((n) => n.RuleName === "PoolTime") || this.eventRules.some((n) => n.RuleName === "DETime");
|
|
33652
|
+
return this.eventRules.some((n) => n.Rules.RuleName === "PoolTime") || this.eventRules.some((n) => n.Rules.RuleName === "DETime");
|
|
33653
33653
|
},
|
|
33654
33654
|
startTime() {
|
|
33655
33655
|
if (this.localBout.DEBoutId) {
|
|
33656
|
-
const e = this.eventRules.find((t) => t.RuleName === "DETime");
|
|
33656
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DETime");
|
|
33657
33657
|
return e ? parseInt(e.RuleValue) : 90;
|
|
33658
33658
|
}
|
|
33659
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolTime");
|
|
33659
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolTime");
|
|
33660
33660
|
return n ? parseInt(n.RuleValue) : 90;
|
|
33661
33661
|
},
|
|
33662
33662
|
maxPoints() {
|
|
33663
|
-
if (this.localBout.DEBoutId) {
|
|
33664
|
-
const e = this.eventRules.find((t) => t.RuleName === "DEMaxPoints");
|
|
33663
|
+
if (console.log(this.eventRules), this.localBout.DEBoutId) {
|
|
33664
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
|
|
33665
33665
|
return e ? parseInt(e.RuleValue) : 7;
|
|
33666
33666
|
}
|
|
33667
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolMaxPoints");
|
|
33667
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints");
|
|
33668
33668
|
return n ? parseInt(n.RuleValue) : 7;
|
|
33669
33669
|
},
|
|
33670
33670
|
maxPasses() {
|
|
33671
33671
|
if (this.localBout.DEBoutId) {
|
|
33672
|
-
const e = this.eventRules.find((t) => t.RuleName === "DENumOfPasses");
|
|
33672
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DENumOfPasses");
|
|
33673
33673
|
return e ? parseInt(e.RuleValue) : 5;
|
|
33674
33674
|
}
|
|
33675
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolNumOfPasses");
|
|
33675
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolNumOfPasses");
|
|
33676
33676
|
return n ? parseInt(n.RuleValue) : 5;
|
|
33677
33677
|
}
|
|
33678
33678
|
},
|
|
@@ -33870,10 +33870,10 @@ const Vp = /* @__PURE__ */ ie(Nz, [["render", qz]]), jz = {
|
|
|
33870
33870
|
},
|
|
33871
33871
|
maxPoints() {
|
|
33872
33872
|
if (this.localBout.DEBoutId) {
|
|
33873
|
-
const e = this.eventRules.find((t) => t.RuleName === "DEMaxPoints");
|
|
33873
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
|
|
33874
33874
|
return e ? e.RuleValue : 7;
|
|
33875
33875
|
}
|
|
33876
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolMaxPoints");
|
|
33876
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints");
|
|
33877
33877
|
return n ? n.RuleValue : 7;
|
|
33878
33878
|
}
|
|
33879
33879
|
},
|
|
@@ -34326,7 +34326,7 @@ const Xp = /* @__PURE__ */ ie(sF, [["render", kF]]), MF = {
|
|
|
34326
34326
|
type: Array,
|
|
34327
34327
|
required: !0
|
|
34328
34328
|
},
|
|
34329
|
-
|
|
34329
|
+
event: {
|
|
34330
34330
|
type: Object,
|
|
34331
34331
|
required: !0
|
|
34332
34332
|
},
|
|
@@ -34344,6 +34344,10 @@ const Xp = /* @__PURE__ */ ie(sF, [["render", kF]]), MF = {
|
|
|
34344
34344
|
}
|
|
34345
34345
|
},
|
|
34346
34346
|
computed: {
|
|
34347
|
+
eventRules() {
|
|
34348
|
+
var n;
|
|
34349
|
+
return ((n = this.event) == null ? void 0 : n.EventRules) || {};
|
|
34350
|
+
},
|
|
34347
34351
|
upcomingBouts() {
|
|
34348
34352
|
return this.bouts.filter((n) => n.Status === "Scheduled");
|
|
34349
34353
|
},
|
|
@@ -34407,7 +34411,7 @@ const Xp = /* @__PURE__ */ ie(sF, [["render", kF]]), MF = {
|
|
|
34407
34411
|
this.$emit("tab:menu-click", n);
|
|
34408
34412
|
},
|
|
34409
34413
|
handleViewChange(n) {
|
|
34410
|
-
|
|
34414
|
+
this.viewName = n;
|
|
34411
34415
|
},
|
|
34412
34416
|
handleUpdateBout(n) {
|
|
34413
34417
|
if (!this.activeBouts || this.activeBouts.length === 0)
|
|
@@ -34555,7 +34559,7 @@ function GF(n, e, t, r, i, A) {
|
|
|
34555
34559
|
]),
|
|
34556
34560
|
p(u, {
|
|
34557
34561
|
bout: i.selectedBout,
|
|
34558
|
-
eventRules:
|
|
34562
|
+
eventRules: A.eventRules,
|
|
34559
34563
|
hostingClubColors: t.hostingClubColors,
|
|
34560
34564
|
show: i.showDirectorModal,
|
|
34561
34565
|
"onUpdate:closeModal": A.handleCloseModal,
|
|
@@ -34564,7 +34568,7 @@ function GF(n, e, t, r, i, A) {
|
|
|
34564
34568
|
}, null, 8, ["bout", "eventRules", "hostingClubColors", "show", "onUpdate:closeModal", "onUpdate:bout", "onSubmit:bout"]),
|
|
34565
34569
|
p(d, {
|
|
34566
34570
|
bout: i.selectedBout,
|
|
34567
|
-
eventRules:
|
|
34571
|
+
eventRules: A.eventRules,
|
|
34568
34572
|
hostingClubColors: t.hostingClubColors,
|
|
34569
34573
|
show: i.showEditBoutModal,
|
|
34570
34574
|
"onUpdate:closeModal": A.handleCloseModal,
|
|
@@ -35258,7 +35262,7 @@ const JP = /* @__PURE__ */ ie(PP, [["render", GP]]), VP = {
|
|
|
35258
35262
|
poolResults: {
|
|
35259
35263
|
deep: !0,
|
|
35260
35264
|
handler(n, e) {
|
|
35261
|
-
|
|
35265
|
+
this.localPoolResults = n;
|
|
35262
35266
|
}
|
|
35263
35267
|
}
|
|
35264
35268
|
},
|
|
@@ -37423,10 +37427,10 @@ const HY = /* @__PURE__ */ ie(ZH, [["render", oN]]), sN = {
|
|
|
37423
37427
|
this.searchTerm = n;
|
|
37424
37428
|
},
|
|
37425
37429
|
handleFencerSelect(n) {
|
|
37426
|
-
|
|
37430
|
+
this.$emit("update:selectedFencer", n);
|
|
37427
37431
|
},
|
|
37428
37432
|
handlePersonSubmit() {
|
|
37429
|
-
|
|
37433
|
+
this.$emit("submit:person", value);
|
|
37430
37434
|
}
|
|
37431
37435
|
}
|
|
37432
37436
|
}, aN = { class: "w-96 p-4" }, lN = { class: "mb-4 px-4" }, cN = { class: "overflow-y-auto h-[800px]" };
|
|
@@ -37590,7 +37594,7 @@ const fN = /* @__PURE__ */ ie(gN, [["render", CN]]), mN = {
|
|
|
37590
37594
|
e.length > 1 && (this.person.FirstName = e[0], this.person.LastName = e.slice(1).join(" ")), e.length === 0 && (this.person.FirstName = e[0], this.person.LastName = "");
|
|
37591
37595
|
},
|
|
37592
37596
|
handleSubmit() {
|
|
37593
|
-
|
|
37597
|
+
this.$emit("submit:person", this.person);
|
|
37594
37598
|
},
|
|
37595
37599
|
handleSelectedClub(n) {
|
|
37596
37600
|
this.person.Club.Name = n.text, this.person.Club.ClubId = n.link;
|
|
@@ -38029,7 +38033,7 @@ const nY = /* @__PURE__ */ ie(ZN, [["render", tY]]), rY = {
|
|
|
38029
38033
|
this.club.ShortName = n;
|
|
38030
38034
|
},
|
|
38031
38035
|
handleSubmit() {
|
|
38032
|
-
|
|
38036
|
+
this.$emit("submit:club", this.club);
|
|
38033
38037
|
},
|
|
38034
38038
|
handleEditorUpdate(n) {
|
|
38035
38039
|
this.club.Description = n;
|