@dcrackel/hematournamentui 1.0.635 → 1.0.637

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.
@@ -39185,6 +39185,7 @@ function JH(t, e, n, r, o, i) {
39185
39185
  const Kj = /* @__PURE__ */ oe(jH, [["render", JH]]), WH = {
39186
39186
  name: "KioskCardPC",
39187
39187
  components: { BaseIcon: qe, BaseText: Be, DropDownMenu: Ot, ButtonBar: ac, BaseButton: Le },
39188
+ emits: ["update:kiosk", "update:ringChange", "update:staffChange", "update:eventChange", "update:selectedType", "update:assignToMe", "update:editKiosk", "remove:kiosk"],
39188
39189
  props: {
39189
39190
  displayObject: {
39190
39191
  type: Object,
@@ -39306,13 +39307,13 @@ const Kj = /* @__PURE__ */ oe(jH, [["render", JH]]), WH = {
39306
39307
  },
39307
39308
  methods: {
39308
39309
  handleRingChange(t) {
39309
- this.localSelectedRing = t, this.editableKiosk.DisplayName = t.text, this.editableKiosk.AssignedTo = t.link;
39310
+ this.localSelectedRing = t, this.editableKiosk.DisplayName = t.text, this.editableKiosk.AssignedTo = t.link, this.$emit("update:ringChange", this.editableKiosk);
39310
39311
  },
39311
39312
  handleStaffChange(t) {
39312
- this.localSelectedStaff = t, this.editableKiosk.Person = { DisplayName: t.text, PersonId: t.link }, this.editableKiosk.AssignedTo = t.link;
39313
+ this.localSelectedStaff = t, this.editableKiosk.Person = { DisplayName: t.text, PersonId: t.link }, this.editableKiosk.AssignedTo = t.link, this.$emit("update:staffChange", this.editableKiosk);
39313
39314
  },
39314
39315
  handleEventChange(t) {
39315
- this.localSelectedEvent = t, this.editableKiosk.Event = { EventName: t.text, EventId: t.link }, this.editableKiosk.AssignedTo = t.link;
39316
+ this.localSelectedEvent = t, this.editableKiosk.Event = { EventName: t.text, EventId: t.link }, this.editableKiosk.AssignedTo = t.link, this.$emit("update:eventChange", this.editableKiosk);
39316
39317
  },
39317
39318
  handleTypeChange(t) {
39318
39319
  console.log(t), this.editableKiosk.Type = t, this.editableKiosk.AssignedTo = "", this.editableKiosk.Person = { DisplayName: "Select Person", PersonId: null }, this.editableKiosk.Event = { EventName: "Select Event", EventId: null }, this.$emit("update:selectedType", this.editableKiosk);
@@ -39870,6 +39871,7 @@ const M2 = /* @__PURE__ */ oe(D2, [["render", S2]]), O2 = {
39870
39871
  BaseText: Be,
39871
39872
  emptyDesertIcon: Wt
39872
39873
  },
39874
+ emits: ["remove:kiosk", "update:selectedStaff", "update:selectedEvent", "update:selectedType", "submit:kiosk", "update:assignToMe"],
39873
39875
  props: {
39874
39876
  displays: {
39875
39877
  type: Array,
@@ -39925,7 +39927,10 @@ const M2 = /* @__PURE__ */ oe(D2, [["render", S2]]), O2 = {
39925
39927
  return t.Person ? t.Person.DisplayName === "BYE" ? { text: "Unassigned", link: "Unassigned" } : { text: t.Person.DisplayName, link: t.Person.DisplayName } : t.Event ? { text: t.Event.EventName, link: t.Event.EventName } : { text: "", link: "" };
39926
39928
  },
39927
39929
  handleRemove(t) {
39928
- this.localDisplays = this.localDisplays.filter((e) => e.DisplayId !== t.DisplayId), this.$emit("update:remove", t);
39930
+ this.localDisplays = this.localDisplays.filter((e) => e.DisplayId !== t.DisplayId), this.$emit("remove:kiosk", t);
39931
+ },
39932
+ handleAssignToMe(t) {
39933
+ this.$emit("update:assignToMe", t);
39929
39934
  },
39930
39935
  handleAssignmentStaff(t) {
39931
39936
  this.$emit("update:selectedStaff", t);
@@ -39934,9 +39939,8 @@ const M2 = /* @__PURE__ */ oe(D2, [["render", S2]]), O2 = {
39934
39939
  this.$emit("update:selectedEvent", t);
39935
39940
  },
39936
39941
  handleChangeType(t) {
39937
- console.log(`Changing type to ${t.Type}`);
39938
39942
  const e = this.localDisplays.find((n) => n.KioskId === t.KioskId);
39939
- e.Type = t.Type, e.DisplayName = "Unassigned", console.log(this.localDisplays), this.handleKioskSubmit(e);
39943
+ e.Type = t.Type, e.DisplayName = "Unassigned", this.$emit("update:selectedType", e);
39940
39944
  },
39941
39945
  handleEditKiosk(t) {
39942
39946
  this.kiosk = t, this.showModal = !0;
@@ -39945,7 +39949,7 @@ const M2 = /* @__PURE__ */ oe(D2, [["render", S2]]), O2 = {
39945
39949
  this.showModal = !1;
39946
39950
  },
39947
39951
  handleKioskSubmit(t) {
39948
- this.handleClose(), this.$emit("submit:kioskUpdate", t);
39952
+ this.handleClose(), this.$emit("submit:kiosk", t);
39949
39953
  }
39950
39954
  }
39951
39955
  }, T2 = { class: "mt-0" }, R2 = { class: "flex flex-col w-full relative" }, P2 = { key: 0 }, z2 = ["src"], N2 = { class: "w-full flex justify-center" }, F2 = { class: "w-96" }, L2 = {
@@ -40006,12 +40010,13 @@ function G2(t, e, n, r, o, i) {
40006
40010
  eventDropDown: n.eventDropDown,
40007
40011
  staffDropDown: n.staffDropDown,
40008
40012
  userRole: n.userRole,
40009
- "onUpdate:selectedStaff": i.handleAssignmentStaff,
40010
- "onUpdate:selectedEvent": i.handleAssignmentEvent,
40011
- "onUpdate:remove": i.handleRemove,
40013
+ "onUpdate:staffChange": i.handleAssignmentStaff,
40014
+ "onUpdate:eventChange": i.handleAssignmentEvent,
40015
+ "onRemove:kiosk": i.handleRemove,
40016
+ "onUpdate:assignToMe": i.handleAssignToMe,
40012
40017
  "onUpdate:selectedType": i.handleChangeType,
40013
40018
  "onUpdate:editKiosk": i.handleEditKiosk
40014
- }, null, 8, ["displayObject", "assignedTo", "eventDropDown", "staffDropDown", "userRole", "onUpdate:selectedStaff", "onUpdate:selectedEvent", "onUpdate:remove", "onUpdate:selectedType", "onUpdate:editKiosk"])
40019
+ }, null, 8, ["displayObject", "assignedTo", "eventDropDown", "staffDropDown", "userRole", "onUpdate:staffChange", "onUpdate:eventChange", "onRemove:kiosk", "onUpdate:assignToMe", "onUpdate:selectedType", "onUpdate:editKiosk"])
40015
40020
  ]))), 128))
40016
40021
  ])) : Q("", !0),
40017
40022
  i.flightBoards.length > 0 && n.userRole !== "Director" ? (f(), I("div", Y2, [
@@ -40033,12 +40038,13 @@ function G2(t, e, n, r, o, i) {
40033
40038
  eventDropDown: n.eventDropDown,
40034
40039
  staffDropDown: n.staffDropDown,
40035
40040
  userRole: n.userRole,
40041
+ "onUpdate:staffChange": i.handleAssignmentStaff,
40042
+ "onUpdate:eventChange": i.handleAssignmentEvent,
40043
+ "onRemove:kiosk": i.handleRemove,
40044
+ "onUpdate:assignToMe": i.handleAssignToMe,
40036
40045
  "onUpdate:selectedType": i.handleChangeType,
40037
- "onUpdate:selectedStaff": i.handleAssignmentStaff,
40038
- "onUpdate:selectedEvent": i.handleAssignmentEvent,
40039
- "onUpdate:remove": i.handleRemove,
40040
40046
  "onUpdate:editKiosk": i.handleEditKiosk
40041
- }, null, 8, ["displayObject", "assignedToEvent", "eventDropDown", "staffDropDown", "userRole", "onUpdate:selectedType", "onUpdate:selectedStaff", "onUpdate:selectedEvent", "onUpdate:remove", "onUpdate:editKiosk"])
40047
+ }, null, 8, ["displayObject", "assignedToEvent", "eventDropDown", "staffDropDown", "userRole", "onUpdate:staffChange", "onUpdate:eventChange", "onRemove:kiosk", "onUpdate:assignToMe", "onUpdate:selectedType", "onUpdate:editKiosk"])
40042
40048
  ]))), 128))
40043
40049
  ])) : Q("", !0),
40044
40050
  i.unassignedBoards.length > 0 && n.userRole !== "Director" ? (f(), I("div", K2, [
@@ -40060,12 +40066,13 @@ function G2(t, e, n, r, o, i) {
40060
40066
  eventDropDown: i.eventDropDownList,
40061
40067
  staffDropDown: i.staffDropDownList,
40062
40068
  userRole: n.userRole,
40069
+ "onUpdate:staffChange": i.handleAssignmentStaff,
40070
+ "onUpdate:eventChange": i.handleAssignmentEvent,
40071
+ "onRemove:kiosk": i.handleRemove,
40072
+ "onUpdate:assignToMe": i.handleAssignToMe,
40063
40073
  "onUpdate:selectedType": i.handleChangeType,
40064
- "onUpdate:selectedStaff": i.handleAssignmentStaff,
40065
- "onUpdate:selectedEvent": i.handleAssignmentEvent,
40066
- "onUpdate:remove": i.handleRemove,
40067
40074
  "onUpdate:editKiosk": i.handleEditKiosk
40068
- }, null, 8, ["displayObject", "assignedToEvent", "eventDropDown", "staffDropDown", "userRole", "onUpdate:selectedType", "onUpdate:selectedStaff", "onUpdate:selectedEvent", "onUpdate:remove", "onUpdate:editKiosk"])
40075
+ }, null, 8, ["displayObject", "assignedToEvent", "eventDropDown", "staffDropDown", "userRole", "onUpdate:staffChange", "onUpdate:eventChange", "onRemove:kiosk", "onUpdate:assignToMe", "onUpdate:selectedType", "onUpdate:editKiosk"])
40069
40076
  ]))), 128))
40070
40077
  ])) : Q("", !0)
40071
40078
  ])) : Q("", !0),
@@ -40087,6 +40094,7 @@ const J2 = /* @__PURE__ */ oe(O2, [["render", G2]]), W2 = {
40087
40094
  KioskContainer: J2,
40088
40095
  EditEventsTopMenu: fn
40089
40096
  },
40097
+ emits: ["remove:kiosk", "update:selectedStaff", "update:selectedEvent", "update:selectedType", "submit:kiosk", "update:assignToMe", "tab:menu-click"],
40090
40098
  props: {
40091
40099
  displays: {
40092
40100
  type: Array,
@@ -40137,7 +40145,7 @@ const J2 = /* @__PURE__ */ oe(O2, [["render", G2]]), W2 = {
40137
40145
  this.$emit("tab:menu-click", t);
40138
40146
  },
40139
40147
  handleRemove(t) {
40140
- this.$emit("update:remove", t);
40148
+ this.$emit("remove:kiosk", t);
40141
40149
  },
40142
40150
  handleAssignmentStaff(t) {
40143
40151
  this.$emit("update:selectedStaff", t);
@@ -40148,12 +40156,15 @@ const J2 = /* @__PURE__ */ oe(O2, [["render", G2]]), W2 = {
40148
40156
  handleSelectedType(t) {
40149
40157
  this.$emit("update:selectedType", t);
40150
40158
  },
40159
+ handleAssignToMe(t) {
40160
+ this.$emit("update:assignToMe", t);
40161
+ },
40151
40162
  handleResize() {
40152
40163
  this.windowWidth = window.innerWidth;
40153
40164
  },
40154
40165
  handleSubmit(t) {
40155
40166
  const e = this.localDisplays.findIndex((n) => n.DisplayId === t.DisplayId);
40156
- e !== -1 && (this.localDisplays.splice(e, 1, t), this.localDisplays = [...this.localDisplays]), this.$emit("submit:kioskUpdate", t);
40167
+ e !== -1 && (this.localDisplays.splice(e, 1, t), this.localDisplays = [...this.localDisplays]), this.$emit("submit:kiosk", t);
40157
40168
  }
40158
40169
  }
40159
40170
  }, V2 = /* @__PURE__ */ m("div", { class: "w-full flex justify-end mt-4" }, null, -1);
@@ -40170,12 +40181,13 @@ function X2(t, e, n, r, o, i) {
40170
40181
  eventDropDown: n.eventDropDown,
40171
40182
  staffDropDown: n.staffDropDown,
40172
40183
  userRole: n.role,
40173
- "onUpdate:remove": i.handleRemove,
40184
+ "onRemove:kiosk": i.handleRemove,
40174
40185
  "onUpdate:selectedStaff": i.handleAssignmentStaff,
40175
40186
  "onUpdate:selectedEvent": i.handleAssignmentEvent,
40176
40187
  "onUpdate:selectedType": i.handleSelectedType,
40177
- "onSubmit:kioskUpdate": i.handleSubmit
40178
- }, null, 8, ["displays", "eventDropDown", "staffDropDown", "userRole", "onUpdate:remove", "onUpdate:selectedStaff", "onUpdate:selectedEvent", "onUpdate:selectedType", "onSubmit:kioskUpdate"]),
40188
+ "onUpdate:assignToMe": i.handleAssignToMe,
40189
+ "onSubmit:kiosk": i.handleSubmit
40190
+ }, null, 8, ["displays", "eventDropDown", "staffDropDown", "userRole", "onRemove:kiosk", "onUpdate:selectedStaff", "onUpdate:selectedEvent", "onUpdate:selectedType", "onUpdate:assignToMe", "onSubmit:kiosk"]),
40179
40191
  V2
40180
40192
  ]);
40181
40193
  }