@dcrackel/hematournamentui 1.0.358 → 1.0.360
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 +31 -28
- package/dist/HemaTournamentUI-lib.umd.js +20 -20
- package/package.json +13 -13
- package/src/mocks/getDEWithBouts.js +277 -499
- package/src/stories/Molecules/Modals/EventWizardModal/EventWizardModal.vue +0 -1
- package/src/stories/Organisms/Cards/Director/DirectorCard.vue +13 -9
- 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.vue +0 -1
- 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 = {
|
|
@@ -33642,34 +33642,37 @@ const Fz = /* @__PURE__ */ ie(wz, [["render", zz]]), Pz = {
|
|
|
33642
33642
|
this.localBout.TimeLeft = this.startTime, this.emitBout();
|
|
33643
33643
|
},
|
|
33644
33644
|
computed: {
|
|
33645
|
+
RingName() {
|
|
33646
|
+
return this.localBout.Pool.RingName || "Ring";
|
|
33647
|
+
},
|
|
33645
33648
|
showPassesBox() {
|
|
33646
|
-
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");
|
|
33647
33650
|
},
|
|
33648
33651
|
showTimerBox() {
|
|
33649
|
-
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");
|
|
33650
33653
|
},
|
|
33651
33654
|
startTime() {
|
|
33652
33655
|
if (this.localBout.DEBoutId) {
|
|
33653
|
-
const e = this.eventRules.find((t) => t.RuleName === "DETime");
|
|
33656
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DETime");
|
|
33654
33657
|
return e ? parseInt(e.RuleValue) : 90;
|
|
33655
33658
|
}
|
|
33656
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolTime");
|
|
33659
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolTime");
|
|
33657
33660
|
return n ? parseInt(n.RuleValue) : 90;
|
|
33658
33661
|
},
|
|
33659
33662
|
maxPoints() {
|
|
33660
33663
|
if (this.localBout.DEBoutId) {
|
|
33661
|
-
const e = this.eventRules.find((t) => t.RuleName === "DEMaxPoints");
|
|
33664
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
|
|
33662
33665
|
return e ? parseInt(e.RuleValue) : 7;
|
|
33663
33666
|
}
|
|
33664
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolMaxPoints");
|
|
33667
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints");
|
|
33665
33668
|
return n ? parseInt(n.RuleValue) : 7;
|
|
33666
33669
|
},
|
|
33667
33670
|
maxPasses() {
|
|
33668
33671
|
if (this.localBout.DEBoutId) {
|
|
33669
|
-
const e = this.eventRules.find((t) => t.RuleName === "DENumOfPasses");
|
|
33672
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DENumOfPasses");
|
|
33670
33673
|
return e ? parseInt(e.RuleValue) : 5;
|
|
33671
33674
|
}
|
|
33672
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolNumOfPasses");
|
|
33675
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolNumOfPasses");
|
|
33673
33676
|
return n ? parseInt(n.RuleValue) : 5;
|
|
33674
33677
|
}
|
|
33675
33678
|
},
|
|
@@ -33709,7 +33712,7 @@ function Hz(n, e, t, r, i, A) {
|
|
|
33709
33712
|
}, null, 8, ["bout", "hostingClubColors", "maxScore", "onUpdate:Score"]),
|
|
33710
33713
|
A.showTimerBox ? (C(), le(s, {
|
|
33711
33714
|
key: 0,
|
|
33712
|
-
ringName:
|
|
33715
|
+
ringName: A.RingName,
|
|
33713
33716
|
initialTime: parseInt(A.startTime),
|
|
33714
33717
|
"onUpdate:time": A.handleTimeChange,
|
|
33715
33718
|
"onUpdate:timeChange": A.handleTimeStateChange
|
|
@@ -33867,10 +33870,10 @@ const Vp = /* @__PURE__ */ ie(Nz, [["render", qz]]), jz = {
|
|
|
33867
33870
|
},
|
|
33868
33871
|
maxPoints() {
|
|
33869
33872
|
if (this.localBout.DEBoutId) {
|
|
33870
|
-
const e = this.eventRules.find((t) => t.RuleName === "DEMaxPoints");
|
|
33873
|
+
const e = this.eventRules.find((t) => t.Rules.RuleName === "DEMaxPoints");
|
|
33871
33874
|
return e ? e.RuleValue : 7;
|
|
33872
33875
|
}
|
|
33873
|
-
const n = this.eventRules.find((e) => e.RuleName === "PoolMaxPoints");
|
|
33876
|
+
const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolMaxPoints");
|
|
33874
33877
|
return n ? n.RuleValue : 7;
|
|
33875
33878
|
}
|
|
33876
33879
|
},
|
|
@@ -34404,7 +34407,7 @@ const Xp = /* @__PURE__ */ ie(sF, [["render", kF]]), MF = {
|
|
|
34404
34407
|
this.$emit("tab:menu-click", n);
|
|
34405
34408
|
},
|
|
34406
34409
|
handleViewChange(n) {
|
|
34407
|
-
|
|
34410
|
+
this.viewName = n;
|
|
34408
34411
|
},
|
|
34409
34412
|
handleUpdateBout(n) {
|
|
34410
34413
|
if (!this.activeBouts || this.activeBouts.length === 0)
|
|
@@ -35255,7 +35258,7 @@ const JP = /* @__PURE__ */ ie(PP, [["render", GP]]), VP = {
|
|
|
35255
35258
|
poolResults: {
|
|
35256
35259
|
deep: !0,
|
|
35257
35260
|
handler(n, e) {
|
|
35258
|
-
|
|
35261
|
+
this.localPoolResults = n;
|
|
35259
35262
|
}
|
|
35260
35263
|
}
|
|
35261
35264
|
},
|
|
@@ -37420,10 +37423,10 @@ const HY = /* @__PURE__ */ ie(ZH, [["render", oN]]), sN = {
|
|
|
37420
37423
|
this.searchTerm = n;
|
|
37421
37424
|
},
|
|
37422
37425
|
handleFencerSelect(n) {
|
|
37423
|
-
|
|
37426
|
+
this.$emit("update:selectedFencer", n);
|
|
37424
37427
|
},
|
|
37425
37428
|
handlePersonSubmit() {
|
|
37426
|
-
|
|
37429
|
+
this.$emit("submit:person", value);
|
|
37427
37430
|
}
|
|
37428
37431
|
}
|
|
37429
37432
|
}, aN = { class: "w-96 p-4" }, lN = { class: "mb-4 px-4" }, cN = { class: "overflow-y-auto h-[800px]" };
|
|
@@ -37587,7 +37590,7 @@ const fN = /* @__PURE__ */ ie(gN, [["render", CN]]), mN = {
|
|
|
37587
37590
|
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 = "");
|
|
37588
37591
|
},
|
|
37589
37592
|
handleSubmit() {
|
|
37590
|
-
|
|
37593
|
+
this.$emit("submit:person", this.person);
|
|
37591
37594
|
},
|
|
37592
37595
|
handleSelectedClub(n) {
|
|
37593
37596
|
this.person.Club.Name = n.text, this.person.Club.ClubId = n.link;
|
|
@@ -38026,7 +38029,7 @@ const nY = /* @__PURE__ */ ie(ZN, [["render", tY]]), rY = {
|
|
|
38026
38029
|
this.club.ShortName = n;
|
|
38027
38030
|
},
|
|
38028
38031
|
handleSubmit() {
|
|
38029
|
-
|
|
38032
|
+
this.$emit("submit:club", this.club);
|
|
38030
38033
|
},
|
|
38031
38034
|
handleEditorUpdate(n) {
|
|
38032
38035
|
this.club.Description = n;
|