@dcrackel/hematournamentui 1.0.144 → 1.0.145
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 +19 -10
- package/dist/HemaTournamentUI-lib.umd.js +19 -19
- package/package.json +1 -1
- package/src/stories/Atoms/Input/BaseInput.vue +1 -1
- package/src/stories/Templates/EventManagement/ListEvents/ListEvents.vue +2 -2
- package/src/stories/Templates/EventManagement/PoolLive/PoolLive.stories.js +1 -0
- package/src/stories/Templates/TournamentManagement/EditTournament/EditBasic/EditTournamentBasicInfo.stories.js +16 -14
- package/src/stories/Templates/TournamentManagement/EditTournament/EditBasic/EditTournamentBasicInfo.vue +18 -6
|
@@ -67,7 +67,7 @@ const lt = /* @__PURE__ */ de(wp, [["render", bp]]), xp = {
|
|
|
67
67
|
components: { BaseIcon: lt },
|
|
68
68
|
props: {
|
|
69
69
|
placeholder: {
|
|
70
|
-
type: String,
|
|
70
|
+
type: [String, Number],
|
|
71
71
|
default: ""
|
|
72
72
|
},
|
|
73
73
|
value: {
|
|
@@ -28476,7 +28476,7 @@ const ks = /* @__PURE__ */ de(FS, [["render", jS]]), YS = {
|
|
|
28476
28476
|
},
|
|
28477
28477
|
props: {
|
|
28478
28478
|
tournament: {
|
|
28479
|
-
type:
|
|
28479
|
+
type: Object,
|
|
28480
28480
|
required: !0
|
|
28481
28481
|
},
|
|
28482
28482
|
locations: {
|
|
@@ -28486,7 +28486,7 @@ const ks = /* @__PURE__ */ de(FS, [["render", jS]]), YS = {
|
|
|
28486
28486
|
},
|
|
28487
28487
|
data() {
|
|
28488
28488
|
return {
|
|
28489
|
-
localTournament:
|
|
28489
|
+
localTournament: this.tournament,
|
|
28490
28490
|
validation: {
|
|
28491
28491
|
name: !1,
|
|
28492
28492
|
imageLink: !1,
|
|
@@ -28505,6 +28505,15 @@ const ks = /* @__PURE__ */ de(FS, [["render", jS]]), YS = {
|
|
|
28505
28505
|
]
|
|
28506
28506
|
};
|
|
28507
28507
|
},
|
|
28508
|
+
created() {
|
|
28509
|
+
console.log(this.localTournament);
|
|
28510
|
+
},
|
|
28511
|
+
computed: {
|
|
28512
|
+
totalDays() {
|
|
28513
|
+
const n = new Date(this.localTournament.StartDate), r = (new Date(this.localTournament.EndDate) - n) / (1e3 * 60 * 60 * 24);
|
|
28514
|
+
return r >= 0 ? Math.ceil(r) + 1 : 0;
|
|
28515
|
+
}
|
|
28516
|
+
},
|
|
28508
28517
|
methods: {
|
|
28509
28518
|
handleTabMenuClick(n) {
|
|
28510
28519
|
this.$emit("tab:menu-click", n);
|
|
@@ -28560,11 +28569,11 @@ function nM(n, e, t, r, i, o) {
|
|
|
28560
28569
|
JS,
|
|
28561
28570
|
p("div", KS, [
|
|
28562
28571
|
I(l, {
|
|
28563
|
-
inputValue: i.localTournament.
|
|
28572
|
+
inputValue: i.localTournament.Name,
|
|
28564
28573
|
invalid: i.validation.name,
|
|
28565
|
-
placeholder: i.localTournament.
|
|
28574
|
+
placeholder: i.localTournament.Name,
|
|
28566
28575
|
title: "Tournament Name",
|
|
28567
|
-
"onUpdate:value": e[0] || (e[0] = (C) => i.localTournament.
|
|
28576
|
+
"onUpdate:value": e[0] || (e[0] = (C) => i.localTournament.Name = C)
|
|
28568
28577
|
}, null, 8, ["inputValue", "invalid", "placeholder"])
|
|
28569
28578
|
]),
|
|
28570
28579
|
p("div", GS, [
|
|
@@ -28613,7 +28622,7 @@ function nM(n, e, t, r, i, o) {
|
|
|
28613
28622
|
}, null, 8, ["invalid"]),
|
|
28614
28623
|
I(d, {
|
|
28615
28624
|
invalid: i.validation.startDate,
|
|
28616
|
-
setDate: t.tournament.
|
|
28625
|
+
setDate: t.tournament.StartDate,
|
|
28617
28626
|
"onUpdate:selectedDate": o.handleDateUpdate
|
|
28618
28627
|
}, null, 8, ["invalid", "setDate", "onUpdate:selectedDate"])
|
|
28619
28628
|
]),
|
|
@@ -28625,7 +28634,7 @@ function nM(n, e, t, r, i, o) {
|
|
|
28625
28634
|
}),
|
|
28626
28635
|
I(g, {
|
|
28627
28636
|
addBorder: !0,
|
|
28628
|
-
placeholder:
|
|
28637
|
+
placeholder: o.totalDays
|
|
28629
28638
|
}, null, 8, ["placeholder"])
|
|
28630
28639
|
])
|
|
28631
28640
|
]),
|
|
@@ -29136,14 +29145,14 @@ function _M(n, e, t, r, i, o) {
|
|
|
29136
29145
|
}, null, 8, JM),
|
|
29137
29146
|
I(s, {
|
|
29138
29147
|
color: "primaryHighlight",
|
|
29139
|
-
size: "
|
|
29148
|
+
size: "lg",
|
|
29140
29149
|
text: "0 events added yet.",
|
|
29141
29150
|
weight: "normal",
|
|
29142
29151
|
"data-testid": "text-num-events"
|
|
29143
29152
|
}),
|
|
29144
29153
|
I(s, {
|
|
29145
29154
|
color: "primaryHighlight",
|
|
29146
|
-
size: "
|
|
29155
|
+
size: "md",
|
|
29147
29156
|
text: "Click below to add first event.",
|
|
29148
29157
|
weight: "normal",
|
|
29149
29158
|
"data-testid": "text-num-events"
|