@dcrackel/hematournamentui 1.0.617 → 1.0.618
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 +12 -9
- package/dist/HemaTournamentUI-lib.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/stories/Organisms/ComplexInputs/DatePicker/DatePicker.vue +12 -6
- package/src/stories/Organisms/Wizards/EditEventWizard/BasicEventInfo/BasicEventInfo.vue +1 -1
- package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +0 -1
|
@@ -9281,12 +9281,16 @@ const SE = {
|
|
|
9281
9281
|
return this.pickerMode === "time" ? { "time-picker": !0 } : {};
|
|
9282
9282
|
},
|
|
9283
9283
|
dateFormat() {
|
|
9284
|
-
return this.pickerMode === "time" ? "HH:mm
|
|
9284
|
+
return this.pickerMode === "time" ? "HH:mm" : this.pickerMode === "datetime" ? "MM/dd/yyyy HH:mm" : "MM/dd/yyyy";
|
|
9285
9285
|
}
|
|
9286
9286
|
},
|
|
9287
9287
|
watch: {
|
|
9288
9288
|
selectedDate(n) {
|
|
9289
|
-
this
|
|
9289
|
+
if (this.pickerMode === "time" && n && typeof n == "object") {
|
|
9290
|
+
const e = String(n.hours).padStart(2, "0"), t = String(n.minutes).padStart(2, "0");
|
|
9291
|
+
this.$emit("update:selectedDate", `${e}:${t}`);
|
|
9292
|
+
} else
|
|
9293
|
+
this.$emit("update:selectedDate", n);
|
|
9290
9294
|
}
|
|
9291
9295
|
},
|
|
9292
9296
|
methods: {
|
|
@@ -9296,8 +9300,8 @@ const SE = {
|
|
|
9296
9300
|
parseDate(n) {
|
|
9297
9301
|
if (typeof n == "string") {
|
|
9298
9302
|
if (this.pickerMode === "time") {
|
|
9299
|
-
const [o, i
|
|
9300
|
-
return { hours: o, minutes: i
|
|
9303
|
+
const [o, i] = n.split(":").map(Number);
|
|
9304
|
+
return { hours: o, minutes: i };
|
|
9301
9305
|
}
|
|
9302
9306
|
const [e, t, r] = n.split("-").map(Number);
|
|
9303
9307
|
return new Date(e, t - 1, r);
|
|
@@ -9320,7 +9324,7 @@ function ME(n, e, t, r, o, i) {
|
|
|
9320
9324
|
}, i.datePickerAttrs), null, 16, ["modelValue", "format", "min-date", "mode", "class"])
|
|
9321
9325
|
]);
|
|
9322
9326
|
}
|
|
9323
|
-
const Bg = /* @__PURE__ */ oe(SE, [["render", ME], ["__scopeId", "data-v-
|
|
9327
|
+
const Bg = /* @__PURE__ */ oe(SE, [["render", ME], ["__scopeId", "data-v-48f7ae69"]]), OE = {
|
|
9324
9328
|
name: "StepIndicator",
|
|
9325
9329
|
components: { BaseText: Be, BaseIcon: qe },
|
|
9326
9330
|
props: {
|
|
@@ -9426,7 +9430,7 @@ const di = /* @__PURE__ */ oe(OE, [["render", NE]]), FE = {
|
|
|
9426
9430
|
this.$emit("update", { Date: n });
|
|
9427
9431
|
},
|
|
9428
9432
|
handleTimeUpdate(n) {
|
|
9429
|
-
this.$emit("update", { StartTime: n });
|
|
9433
|
+
console.log(n), this.$emit("update", { StartTime: n });
|
|
9430
9434
|
},
|
|
9431
9435
|
handleNumberOfRingsChange(n) {
|
|
9432
9436
|
this.$emit("update", { NumberOfRings: n });
|
|
@@ -9515,10 +9519,9 @@ function ZE(n, e, t, r, o, i) {
|
|
|
9515
9519
|
h(c, {
|
|
9516
9520
|
invalid: t.validation.StartTime,
|
|
9517
9521
|
setDate: t.eventConfig.StartTime,
|
|
9518
|
-
userLevel: t.userLevel,
|
|
9519
9522
|
pickerMode: "time",
|
|
9520
9523
|
"onUpdate:selectedDate": i.handleTimeUpdate
|
|
9521
|
-
}, null, 8, ["invalid", "setDate", "
|
|
9524
|
+
}, null, 8, ["invalid", "setDate", "onUpdate:selectedDate"])
|
|
9522
9525
|
]),
|
|
9523
9526
|
m("div", JE, [
|
|
9524
9527
|
h(A, {
|
|
@@ -10699,7 +10702,7 @@ const Ev = /* @__PURE__ */ oe(uv, [["render", Bv]]), Qv = {
|
|
|
10699
10702
|
}));
|
|
10700
10703
|
},
|
|
10701
10704
|
handleSubmit() {
|
|
10702
|
-
this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig),
|
|
10705
|
+
this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
|
|
10703
10706
|
},
|
|
10704
10707
|
handleCancel() {
|
|
10705
10708
|
this.$emit("update:cancel");
|