@dcrackel/hematournamentui 1.0.401 → 1.0.403
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 +15 -10
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.vue +12 -8
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +16 -1
|
@@ -10086,12 +10086,12 @@ const iv = /* @__PURE__ */ ie(FQ, [["render", rv]]), ov = {
|
|
|
10086
10086
|
return this.selectedFormat.Name;
|
|
10087
10087
|
},
|
|
10088
10088
|
DEPromotionTypes() {
|
|
10089
|
-
var
|
|
10090
|
-
const n = (
|
|
10091
|
-
return Array.isArray(n) ? n.map((
|
|
10092
|
-
text:
|
|
10093
|
-
link:
|
|
10094
|
-
}))
|
|
10089
|
+
var t;
|
|
10090
|
+
const n = (t = this.eventConfig) == null ? void 0 : t.DEPromoteBy;
|
|
10091
|
+
return console.log(n), (Array.isArray(n) ? n : (n == null ? void 0 : n.split(",")) || []).map((r) => ({
|
|
10092
|
+
text: r.trim(),
|
|
10093
|
+
link: r.trim()
|
|
10094
|
+
}));
|
|
10095
10095
|
},
|
|
10096
10096
|
DEPromotionDescription() {
|
|
10097
10097
|
if (this.selectedItem.text === "Top Percent")
|
|
@@ -10121,7 +10121,7 @@ const iv = /* @__PURE__ */ ie(FQ, [["render", rv]]), ov = {
|
|
|
10121
10121
|
this.$emit("update:next", this.eventConfig);
|
|
10122
10122
|
},
|
|
10123
10123
|
handleDEPromotionTypeChange(n) {
|
|
10124
|
-
this.selectedItem = n, n.text === "Top Percent" && (this.eventConfig.DEPromotionAmount = "100%"), n.text === "Top Count" && (this.eventConfig.DEPromotionAmount = "16"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromotionAmount = "2"), this.$emit("update", n);
|
|
10124
|
+
this.selectedItem = n, n.text === "Top Percent" && (this.eventConfig.DEPromotionTypes = "Percent", this.eventConfig.DEPromotionAmount = "100%"), n.text === "Top Count" && (this.eventConfig.DEPromotionTypes = "Count", this.eventConfig.DEPromotionAmount = "16"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromotionTypes = "Top", this.eventConfig.DEPromotionAmount = "2"), this.$emit("update:DEPromotionType", n);
|
|
10125
10125
|
}
|
|
10126
10126
|
}
|
|
10127
10127
|
}, Av = { class: "flex flex-col h-full pb-4" }, sv = { class: "w-full flex justify-center grow" }, av = { class: "w-full flex flex-row justify-center my-4 grow" }, lv = { class: "w-full flex mb-3 ml-1 grow" }, cv = { class: "grow" }, uv = { class: "mb-4 mt-8" }, dv = { class: "mb-4 grow" }, gv = { class: "mb-2 flex flex-col" }, hv = { class: "grow" }, pv = { class: "mb-4 mt-8" }, Cv = { class: "pb-20" }, Iv = { class: "flex flex-row justify-center h-12 mt-4" };
|
|
@@ -10373,8 +10373,12 @@ const mv = /* @__PURE__ */ ie(ov, [["render", fv]]), Bv = {
|
|
|
10373
10373
|
e === "EventName" && (this.localEvent.EventName = t), e === "Date " && (this.localEvent.Date = this.formatDateToYYYYMMDD(t)), e === "StartTime " && (this.localEvent.Date = this.formatTimeToHHMMSS(t)), e === "NumberOfRings " && (this.NumberOfRings = t), e === "WeaponId" && (this.localEvent.WeaponId = t.link), e === "CutOffNumber" && (this.localEvent.CutOffNumber = t, this.eventConfig.CutOffNumber = t), e === "PoolScoreDirection" && (this.localEvent.PoolScoreDirection = t, this.eventConfig.PoolScoreDirection = t);
|
|
10374
10374
|
},
|
|
10375
10375
|
handleValueChange(n) {
|
|
10376
|
+
console.log(n);
|
|
10376
10377
|
const [e, t] = Object.entries(n)[0];
|
|
10377
|
-
this.
|
|
10378
|
+
this.localEvent[e] = t;
|
|
10379
|
+
},
|
|
10380
|
+
handleDEPromotionType(n) {
|
|
10381
|
+
console.log(n), n.text === "Top Percent" && (this.eventConfig.DEPromoteBy = "Percent"), n.text === "Top Count" && (this.eventConfig.DEPromoteBy = "Count"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromoteBy = "Top");
|
|
10378
10382
|
},
|
|
10379
10383
|
handleBasicDetailsUpdate(n) {
|
|
10380
10384
|
this.localEvent = { ...this.localEvent, ...n }, this.currentStep += 1;
|
|
@@ -10408,7 +10412,7 @@ const mv = /* @__PURE__ */ ie(ov, [["render", fv]]), Bv = {
|
|
|
10408
10412
|
}));
|
|
10409
10413
|
},
|
|
10410
10414
|
handleSubmit() {
|
|
10411
|
-
this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
|
|
10415
|
+
this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), console.log(this.localEvent), this.$emit("update:submit", this.localEvent);
|
|
10412
10416
|
},
|
|
10413
10417
|
handleCancel() {
|
|
10414
10418
|
this.$emit("update:cancel");
|
|
@@ -10456,9 +10460,10 @@ function Qv(n, e, t, r, i, o) {
|
|
|
10456
10460
|
steps: i.steps,
|
|
10457
10461
|
currentStep: i.currentStep - 1,
|
|
10458
10462
|
onUpdate: o.handleValueChange,
|
|
10463
|
+
"onUpdate:DEPromotionType": o.handleDEPromotionType,
|
|
10459
10464
|
"onUpdate:back": o.handleBack,
|
|
10460
10465
|
"onUpdate:next": o.handleUpdate
|
|
10461
|
-
}, null, 8, ["eventConfig", "validation", "steps", "currentStep", "onUpdate", "onUpdate:back", "onUpdate:next"])) : b("", !0),
|
|
10466
|
+
}, null, 8, ["eventConfig", "validation", "steps", "currentStep", "onUpdate", "onUpdate:DEPromotionType", "onUpdate:back", "onUpdate:next"])) : b("", !0),
|
|
10462
10467
|
i.currentStep === 4 ? (I(), le(l, {
|
|
10463
10468
|
key: 3,
|
|
10464
10469
|
eventConfig: i.eventConfig,
|