@dcrackel/hematournamentui 1.0.612 → 1.0.613

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.
@@ -33266,20 +33266,27 @@ const Wm = /* @__PURE__ */ oe(_R, [["render", mP]]), fP = {
33266
33266
  customDraggable: {
33267
33267
  type: Boolean,
33268
33268
  default: null
33269
+ },
33270
+ customClass: {
33271
+ type: String,
33272
+ default: ""
33269
33273
  }
33270
33274
  },
33271
33275
  computed: {
33276
+ canEdit() {
33277
+ return this.mode === "preparation" || this.mode === "planning" || this.mode === "custompool";
33278
+ },
33272
33279
  computedClasses() {
33273
33280
  const n = `flex items-center p-2 shadow rounded-lg ${this.customClass}`;
33274
- return this.mode === "preparation" || this.mode === "planning" || this.mode === "custompool" ? `${n} hover:bg-dropdownSelect ${this.background}` : `${n} ${this.background}`;
33281
+ return this.canEdit ? `${n} hover:bg-dropdownSelect ${this.background}` : `${n} ${this.background}`;
33275
33282
  },
33276
33283
  computedDraggable() {
33277
- return this.customDraggable !== null ? this.customDraggable : this.mode === "preparation" || this.mode === "planning" || this.mode === "custompool";
33284
+ return this.customDraggable !== null ? this.customDraggable : this.canEdit;
33278
33285
  }
33279
33286
  },
33280
33287
  methods: {
33281
33288
  onDragStart(n) {
33282
- (this.mode === "preparation" || this.mode === "planning" || this.mode === "preparation" || this.mode === "custompool") && n.dataTransfer.setData("text/plain", JSON.stringify({
33289
+ this.canEdit && n.dataTransfer.setData("text/plain", JSON.stringify({
33283
33290
  fromPosition: this.poolPosition,
33284
33291
  name: this.name,
33285
33292
  club: this.club,
@@ -33287,7 +33294,7 @@ const Wm = /* @__PURE__ */ oe(_R, [["render", mP]]), fP = {
33287
33294
  }));
33288
33295
  },
33289
33296
  onDrop(n) {
33290
- if (this.mode === "preparation" || this.mode === "planning" || this.mode === "custompool") {
33297
+ if (this.canEdit) {
33291
33298
  const e = JSON.parse(n.dataTransfer.getData("text/plain"));
33292
33299
  e.toPosition = this.poolPosition, this.$emit("swap-fencers", { droppedData: e });
33293
33300
  }
@@ -33360,7 +33367,7 @@ function wP(n, e, t, r, o, i) {
33360
33367
  color: "quinary"
33361
33368
  }, null, 8, ["text"])
33362
33369
  ]),
33363
- t.mode === "preparation" || t.mode === "planning" ? (f(), $(A, {
33370
+ i.canEdit ? (f(), $(A, {
33364
33371
  key: 1,
33365
33372
  "icon-name": "fa-grip-dots-vertical",
33366
33373
  size: "2xl",