@dcrackel/hematournamentui 1.0.359 → 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.
Files changed (24) hide show
  1. package/dist/HemaTournamentUI-lib.es.js +27 -27
  2. package/dist/HemaTournamentUI-lib.umd.js +20 -20
  3. package/package.json +13 -13
  4. package/src/mocks/getDEWithBouts.js +277 -499
  5. package/src/stories/Molecules/Modals/EventWizardModal/EventWizardModal.vue +0 -1
  6. package/src/stories/Organisms/Cards/Director/DirectorCard.vue +9 -8
  7. package/src/stories/Organisms/Cards/EditBout/EditBout.vue +2 -2
  8. package/src/stories/Organisms/Cards/PoolFencerCard/PoolFencerCard.vue +0 -2
  9. package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.vue +0 -2
  10. package/src/stories/Organisms/ComplexInputs/AddressAutocomplete/AddressAutocomplete.vue +0 -2
  11. package/src/stories/Organisms/ComplexInputs/FindPerson/FindPerson.vue +0 -1
  12. package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +0 -2
  13. package/src/stories/Organisms/Containers/PeopleColumn/PeopleColumn.vue +0 -2
  14. package/src/stories/Organisms/Form/EditEvent/EditEvent.vue +0 -2
  15. package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +0 -1
  16. package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.vue +1 -2
  17. package/src/stories/Templates/ClubManagement/ClubManagement.vue +0 -1
  18. package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +3 -4
  19. package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +0 -1
  20. package/src/stories/Templates/EventManagement/PoolLive/PoolLive.vue +0 -1
  21. package/src/stories/Templates/EventManagement/PoolManagement/PoolManagement.vue +0 -1
  22. package/src/stories/Templates/EventManagement/PoolResults/PoolResults.vue +0 -1
  23. package/src/stories/Templates/PersonManagement/PersonManagement.vue +0 -1
  24. 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
- console.log("PoolConfiguration.vue: computed: eventConfig: ", this.eventConfig), this.localEventConfig = { ...this.eventConfig };
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
- console.log("EditEventWiard HandleSubmit"), this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
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
- console.log("EventWizardModal.handleSubmitEvent"), this.$emit("update:submit", n);
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
- console.log("-------------------"), console.log(n), this.$emit("add-new-address", n);
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
- console.log(n), this.$emit("edit", this.detail.TournamentId);
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, console.log(`Uploaded: ${n}`), n.response.status === 200 && (this.localUrl = `${this.imageServer}${this.uploadImageName}.png`, console.log(this.localUrl), this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
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
- console.log("updating input"), this.inputValue = n.target.value;
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
- console.log("Submitting tournament:", this.localTournament), this.$emit("submit:tournament", this.localTournament);
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
- console.log(`PoolFencerCard.onDragStart: ${n}`), (this.mode === "preparation" || this.mode === "planning") && n.dataTransfer.setData("text/plain", JSON.stringify({
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 (console.log(`PoolFencerCard.onDrop: ${n}`), this.mode === "preparation" || this.mode === "planning") {
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
- console.log(`Pool ${n} selected`), this.$emit("select:pool", n);
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
33663
  if (this.localBout.DEBoutId) {
33664
- const e = this.eventRules.find((t) => t.RuleName === "DEMaxPoints");
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
  },
@@ -34407,7 +34407,7 @@ const Xp = /* @__PURE__ */ ie(sF, [["render", kF]]), MF = {
34407
34407
  this.$emit("tab:menu-click", n);
34408
34408
  },
34409
34409
  handleViewChange(n) {
34410
- console.log("handleViewChange", n), this.viewName = n;
34410
+ this.viewName = n;
34411
34411
  },
34412
34412
  handleUpdateBout(n) {
34413
34413
  if (!this.activeBouts || this.activeBouts.length === 0)
@@ -35258,7 +35258,7 @@ const JP = /* @__PURE__ */ ie(PP, [["render", GP]]), VP = {
35258
35258
  poolResults: {
35259
35259
  deep: !0,
35260
35260
  handler(n, e) {
35261
- console.log("poolResults changed:", n), this.localPoolResults = n;
35261
+ this.localPoolResults = n;
35262
35262
  }
35263
35263
  }
35264
35264
  },
@@ -37423,10 +37423,10 @@ const HY = /* @__PURE__ */ ie(ZH, [["render", oN]]), sN = {
37423
37423
  this.searchTerm = n;
37424
37424
  },
37425
37425
  handleFencerSelect(n) {
37426
- console.log(`Selected fencer: ${n}`), this.$emit("update:selectedFencer", n);
37426
+ this.$emit("update:selectedFencer", n);
37427
37427
  },
37428
37428
  handlePersonSubmit() {
37429
- console.log(`Submitted person: ${value}`), this.$emit("submit:person", value);
37429
+ this.$emit("submit:person", value);
37430
37430
  }
37431
37431
  }
37432
37432
  }, aN = { class: "w-96 p-4" }, lN = { class: "mb-4 px-4" }, cN = { class: "overflow-y-auto h-[800px]" };
@@ -37590,7 +37590,7 @@ const fN = /* @__PURE__ */ ie(gN, [["render", CN]]), mN = {
37590
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 = "");
37591
37591
  },
37592
37592
  handleSubmit() {
37593
- console.log(this.person), this.$emit("submit:person", this.person);
37593
+ this.$emit("submit:person", this.person);
37594
37594
  },
37595
37595
  handleSelectedClub(n) {
37596
37596
  this.person.Club.Name = n.text, this.person.Club.ClubId = n.link;
@@ -38029,7 +38029,7 @@ const nY = /* @__PURE__ */ ie(ZN, [["render", tY]]), rY = {
38029
38029
  this.club.ShortName = n;
38030
38030
  },
38031
38031
  handleSubmit() {
38032
- console.log(this.club), this.$emit("submit:club", this.club);
38032
+ this.$emit("submit:club", this.club);
38033
38033
  },
38034
38034
  handleEditorUpdate(n) {
38035
38035
  this.club.Description = n;