@dcrackel/hematournamentui 1.0.205 → 1.0.207

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.
@@ -31397,8 +31397,14 @@ function XP(n, e, t, r, i, o) {
31397
31397
  const ap = /* @__PURE__ */ ae(DP, [["render", XP]]), WP = {
31398
31398
  components: { BaseIcon: _e, BaseText: ye },
31399
31399
  props: {
31400
- position: Number,
31401
- poolPosition: Number,
31400
+ position: {
31401
+ type: Number,
31402
+ required: !0
31403
+ },
31404
+ poolPosition: {
31405
+ type: Number,
31406
+ required: !0
31407
+ },
31402
31408
  name: String,
31403
31409
  club: String,
31404
31410
  seed: Number,
@@ -31411,7 +31417,7 @@ const ap = /* @__PURE__ */ ae(DP, [["render", XP]]), WP = {
31411
31417
  },
31412
31418
  methods: {
31413
31419
  onDragStart(n) {
31414
- (this.mode === "preparation" || this.mode === "planning") && n.dataTransfer.setData("text/plain", JSON.stringify({
31420
+ console.log(`PoolFencerCard.onDragStart: ${n}`), (this.mode === "preparation" || this.mode === "planning") && n.dataTransfer.setData("text/plain", JSON.stringify({
31415
31421
  fromPosition: this.poolPosition,
31416
31422
  name: this.name,
31417
31423
  club: this.club,
@@ -31419,9 +31425,9 @@ const ap = /* @__PURE__ */ ae(DP, [["render", XP]]), WP = {
31419
31425
  }));
31420
31426
  },
31421
31427
  onDrop(n) {
31422
- if (this.mode === "preparation" || this.mode === "planning") {
31428
+ if (console.log(`PoolFencerCard.onDrop: ${n}`), this.mode === "preparation" || this.mode === "planning") {
31423
31429
  const e = JSON.parse(n.dataTransfer.getData("text/plain"));
31424
- e.toPosition = this.poolPosition, this.$emit("swap-fencers", { droppedData: e });
31430
+ e.toPosition = this.poolPosition, console.log("------ onDrop:"), console.log(e), console.log("======== TO POSITION"), console.log(this.poolPosition), this.$emit("swap-fencers", { droppedData: e });
31425
31431
  }
31426
31432
  }
31427
31433
  }
@@ -31550,7 +31556,7 @@ const nR = /* @__PURE__ */ ae(WP, [["render", tR]]), rR = {
31550
31556
  },
31551
31557
  methods: {
31552
31558
  handleSwap({ droppedData: n, toPosition: e }) {
31553
- this.$emit("update:swapFencers", {
31559
+ console.log("Pool.handleSwap:", n, e), this.$emit("update:swapFencers", {
31554
31560
  draggedPerson: n,
31555
31561
  toPosition: e
31556
31562
  });
@@ -31773,7 +31779,7 @@ const dR = /* @__PURE__ */ ae(rR, [["render", uR]]), gR = {
31773
31779
  return e && e.Person ? e.Person.DisplayName : "Unassigned";
31774
31780
  },
31775
31781
  swapFencers({ draggedPerson: n }) {
31776
- this.$emit("update:swapFencers", { draggedPerson: n });
31782
+ console.log("**** PoolManagement.swapFencer:", n), this.$emit("update:swapFencers", { draggedPerson: n });
31777
31783
  },
31778
31784
  setDirector(n) {
31779
31785
  this.$emit("update:director", n);
@@ -31826,11 +31832,11 @@ function IR(n, e, t, r, i, o) {
31826
31832
  pool: u.participants,
31827
31833
  staff: t.staff,
31828
31834
  mode: t.event.Status,
31829
- onSwapFencers: o.swapFencers,
31835
+ "onUpdate:swapFencers": o.swapFencers,
31830
31836
  "onUpdate:setDirector": o.setDirector,
31831
31837
  "onRemove:fencer": o.handleRemoveFencer,
31832
31838
  "onSelect:pool": o.handleSelectPool
31833
- }, null, 8, ["poolId", "poolName", "ringName", "poolInd", "boutsLeft", "directorName", "pool", "staff", "mode", "onSwapFencers", "onUpdate:setDirector", "onRemove:fencer", "onSelect:pool"])
31839
+ }, null, 8, ["poolId", "poolName", "ringName", "poolInd", "boutsLeft", "directorName", "pool", "staff", "mode", "onUpdate:swapFencers", "onUpdate:setDirector", "onRemove:fencer", "onSelect:pool"])
31834
31840
  ]))), 128)),
31835
31841
  o.filteredPools.length < 1 ? (I(), B("div", hR, [
31836
31842
  f("div", fR, [