@dcrackel/hematournamentui 1.0.7 → 1.0.8
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/.storybook/preview-head.html +3 -1
- package/dist/HemaTouranmentUI-lib.es.js +307 -253
- package/dist/HemaTouranmentUI-lib.umd.js +1 -1
- package/package/.eslintrc.js +18 -0
- package/package/.gitattributes +2 -0
- package/package/.prettierignore +1 -0
- package/package/.storybook/main.js +18 -0
- package/package/.storybook/mockRoutes.js +9 -0
- package/package/.storybook/preview-head.html +1 -0
- package/package/.storybook/preview.js +17 -0
- package/package/LICENSE +21 -0
- package/package/README.md +83 -0
- package/package/index.html +12 -0
- package/package/package.json +49 -0
- package/package/postcss.config.js +6 -0
- package/package/prettier.config.js +10 -0
- package/package/src/assets/default-tournament.png +0 -0
- package/package/src/index.js +15 -0
- package/package/src/main.js +2 -0
- package/package/src/mocks/fileMock.js +1 -0
- package/package/src/mocks/tournamentMock.js +34 -0
- package/package/src/stories/Configure.mdx +320 -0
- package/package/tailwind/output.css +1072 -0
- package/package/tailwind/tailwind.css +4 -0
- package/package/tailwind.config.js +25 -0
- package/package/vite.config.js +23 -0
- package/package.json +9 -2
- package/src/assets/select-tournament.png +0 -0
- package/src/stories/Atoms/Icon/BaseIcon.stories.js +54 -0
- package/src/stories/Atoms/Icon/BaseIcon.vue +47 -0
- package/src/stories/Atoms/Input/BaseInput.stories.js +28 -0
- package/src/stories/Atoms/Input/BaseInput.test.js +87 -0
- package/src/stories/Atoms/Input/BaseInput.vue +73 -0
- package/src/stories/Atoms/RadioGroup/BaseRadioGroup.stories.js +31 -0
- package/src/stories/Atoms/RadioGroup/BaseRadioGroup.vue +49 -0
- package/src/stories/Atoms/Tag/BaseTag.stories.js +29 -0
- package/src/stories/Atoms/Tag/BaseTag.test.js +42 -0
- package/src/stories/Atoms/Tag/BaseTag.vue +57 -0
- package/src/stories/Atoms/Text/BaseText.stories.js +77 -0
- package/src/stories/Atoms/Text/BaseText.test.js +172 -0
- package/src/stories/Atoms/Text/BaseText.vue +170 -0
- package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.stories.js +41 -0
- package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.vue +31 -0
- package/src/stories/Molecules/Button/BaseButton.stories.js +76 -0
- package/src/stories/Molecules/Button/BaseButton.test.js +147 -0
- package/src/stories/Molecules/Button/BaseButton.vue +125 -0
- package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.stories.js +33 -0
- package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.vue +38 -0
- package/src/stories/Molecules/Cards/Header/TournamentCardHeader.stories.js +48 -0
- package/src/stories/Molecules/Cards/Header/TournamentCardHeader.vue +40 -0
- package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +36 -0
- package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.vue +49 -0
- package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +32 -0
- package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +46 -0
- package/src/stories/Organisms/AddressAutocomplete/AddressAutocomplete.stories.js +25 -0
- package/src/stories/Organisms/AddressAutocomplete/AddressAutocomplete.vue +51 -0
- package/src/stories/Organisms/DatePicker/DatePicker.stories.js +25 -0
- package/src/stories/Organisms/DatePicker/DatePicker.vue +62 -0
- package/src/stories/Organisms/DropDown/DropDownMenu.stories.js +34 -0
- package/src/stories/Organisms/DropDown/DropDownMenu.vue +51 -0
- package/src/stories/Organisms/Grid/GridContainer.stories.js +47 -0
- package/src/stories/Organisms/Grid/GridContainer.vue +108 -0
- package/src/stories/Organisms/ImageCropper/ImageCropper.stories.js +28 -0
- package/src/stories/Organisms/ImageCropper/ImageCropper.vue +86 -0
- package/src/stories/Organisms/TextBoxEditor/TextBoxEditor.stories.js +28 -0
- package/src/stories/Organisms/TextBoxEditor/TextBoxEditor.vue +97 -0
- package/src/stories/Organisms/TournamentCard/TournamentCard.stories.js +37 -0
- package/src/stories/Organisms/TournamentCard/TournamentCard.vue +35 -0
- package/src/stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.stories.js +25 -0
- package/src/stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.vue +136 -0
- package/src/stories/Templates/Menu/Admin/AdminLeftMenu.stories.js +28 -0
- package/src/stories/Templates/Menu/Admin/AdminLeftMenu.vue +57 -0
- package/tailwind/output.css +147 -7
- package/tailwind.config.js +28 -3
- /package/{src → package/src}/stories/Base/Button/BaseButton.stories.js +0 -0
- /package/{src → package/src}/stories/Base/Button/BaseButton.test.js +0 -0
- /package/{src → package/src}/stories/Base/Button/BaseButton.vue +0 -0
- /package/{src → package/src}/stories/Base/Input/BaseInput.stories.js +0 -0
- /package/{src → package/src}/stories/Base/Input/BaseInput.test.js +0 -0
- /package/{src → package/src}/stories/Base/Input/BaseInput.vue +0 -0
- /package/{src → package/src}/stories/Base/Tag/BaseTag.stories.js +0 -0
- /package/{src → package/src}/stories/Base/Tag/BaseTag.test.js +0 -0
- /package/{src → package/src}/stories/Base/Tag/BaseTag.vue +0 -0
- /package/{src → package/src}/stories/Base/Text/BaseText.stories.js +0 -0
- /package/{src → package/src}/stories/Base/Text/BaseText.test.js +0 -0
- /package/{src → package/src}/stories/Base/Text/BaseText.vue +0 -0
- /package/{src → package/src}/stories/Breadcrumb/Admin/Breadcrumb.stories.js +0 -0
- /package/{src → package/src}/stories/Breadcrumb/Admin/Breadcrumb.vue +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/Detail/TournamentCardDetail.stories.js +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/Detail/TournamentCardDetail.vue +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/Header/TournamentCardHeader.stories.js +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/Header/TournamentCardHeader.vue +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/TournamentCard.stories.js +0 -0
- /package/{src → package/src}/stories/Cards/TournamentCard/TournamentCard.vue +0 -0
- /package/{src → package/src}/stories/Containers/Grid/GridContainer.stories.js +0 -0
- /package/{src → package/src}/stories/Containers/Grid/GridContainer.vue +0 -0
- /package/{src → package/src}/stories/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +0 -0
- /package/{src → package/src}/stories/Filters/FilterAndSortBar/FilterAndSortBar.vue +0 -0
- /package/{src → package/src}/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +0 -0
- /package/{src → package/src}/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +0 -0
- /package/{src → package/src}/stories/Menu/Admin/AdminLeftMenu.stories.js +0 -0
- /package/{src → package/src}/stories/Menu/Admin/AdminLeftMenu.vue +0 -0
- /package/{src → package/src}/stories/Menu/DropDown/DropDownMenu.stories.js +0 -0
- /package/{src → package/src}/stories/Menu/DropDown/DropDownMenu.vue +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { withDirectives as
|
|
1
|
+
import { ref as C, watch as S, computed as A, withDirectives as v, openBlock as i, createElementBlock as m, normalizeClass as x, vModelText as E, toDisplayString as _, resolveComponent as u, createBlock as h, normalizeStyle as k, createCommentVNode as I, createVNode as d, reactive as Y, createElementVNode as c, Fragment as f, renderList as b, resolveDynamicComponent as M } from "vue";
|
|
2
2
|
const g = (e, t) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
r[
|
|
4
|
+
for (const [a, o] of t)
|
|
5
|
+
r[a] = o;
|
|
6
6
|
return r;
|
|
7
|
-
},
|
|
7
|
+
}, G = {
|
|
8
8
|
name: "BaseInput",
|
|
9
9
|
props: {
|
|
10
10
|
placeholder: {
|
|
@@ -14,38 +14,54 @@ const g = (e, t) => {
|
|
|
14
14
|
value: {
|
|
15
15
|
type: String,
|
|
16
16
|
default: ""
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "borderless",
|
|
21
|
+
validator: function(e) {
|
|
22
|
+
return ["formInput", "borderless"].indexOf(e) !== -1;
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
25
|
},
|
|
19
|
-
|
|
26
|
+
setup(e, { emit: t }) {
|
|
27
|
+
const r = C(e.value), a = C(null);
|
|
28
|
+
S(() => e.value, (l) => {
|
|
29
|
+
r.value = l;
|
|
30
|
+
});
|
|
31
|
+
const o = A(() => {
|
|
32
|
+
let l = "appearance-none focus:outline-none";
|
|
33
|
+
switch (e.type) {
|
|
34
|
+
case "borderless":
|
|
35
|
+
l += " w-full text-sm";
|
|
36
|
+
break;
|
|
37
|
+
case "formInput":
|
|
38
|
+
l += " border border-dropdownSelect rounded-lg text-secondary placeholder:text-xs text-sm p-2 w-full";
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
return l;
|
|
42
|
+
});
|
|
20
43
|
return {
|
|
21
|
-
internalValue:
|
|
22
|
-
|
|
44
|
+
internalValue: r,
|
|
45
|
+
baseClasses: o,
|
|
46
|
+
onInput: () => {
|
|
47
|
+
clearTimeout(a.value), a.value = setTimeout(() => {
|
|
48
|
+
t("update:value", r.value);
|
|
49
|
+
}, 300);
|
|
50
|
+
}
|
|
23
51
|
};
|
|
24
|
-
},
|
|
25
|
-
watch: {
|
|
26
|
-
value(e) {
|
|
27
|
-
this.internalValue = e;
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
onInput() {
|
|
32
|
-
clearTimeout(this.timeout), this.timeout = setTimeout(() => {
|
|
33
|
-
console.log("this.internalValue", this.internalValue), this.$emit("update:value", this.internalValue);
|
|
34
|
-
}, 300);
|
|
35
|
-
}
|
|
36
52
|
}
|
|
37
|
-
},
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
class:
|
|
53
|
+
}, U = ["placeholder"];
|
|
54
|
+
function q(e, t, r, a, o, n) {
|
|
55
|
+
return v((i(), m("input", {
|
|
56
|
+
class: x(a.baseClasses),
|
|
41
57
|
placeholder: r.placeholder,
|
|
42
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
43
|
-
onInput: t[1] || (t[1] = (...
|
|
44
|
-
}, null,
|
|
45
|
-
[
|
|
58
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => a.internalValue = l),
|
|
59
|
+
onInput: t[1] || (t[1] = (...l) => a.onInput && a.onInput(...l))
|
|
60
|
+
}, null, 42, U)), [
|
|
61
|
+
[E, a.internalValue]
|
|
46
62
|
]);
|
|
47
63
|
}
|
|
48
|
-
const
|
|
64
|
+
const Q = /* @__PURE__ */ g(G, [["render", q]]), $ = {
|
|
49
65
|
name: "BaseText",
|
|
50
66
|
props: {
|
|
51
67
|
text: {
|
|
@@ -91,10 +107,10 @@ const I = /* @__PURE__ */ g(Y, [["render", G]]), U = {
|
|
|
91
107
|
}
|
|
92
108
|
},
|
|
93
109
|
setup(e) {
|
|
94
|
-
return
|
|
95
|
-
classes:
|
|
110
|
+
return {
|
|
111
|
+
classes: A(() => {
|
|
96
112
|
let t = "inline-block font-sans";
|
|
97
|
-
switch (e.color) {
|
|
113
|
+
switch (console.log(`props.color in BaseText: ${e.color}`), e.color) {
|
|
98
114
|
case "neutral":
|
|
99
115
|
t += " text-neutral";
|
|
100
116
|
break;
|
|
@@ -191,36 +207,82 @@ const I = /* @__PURE__ */ g(Y, [["render", G]]), U = {
|
|
|
191
207
|
};
|
|
192
208
|
}
|
|
193
209
|
};
|
|
194
|
-
function
|
|
195
|
-
return i(),
|
|
196
|
-
class:
|
|
197
|
-
},
|
|
210
|
+
function T(e, t, r, a, o, n) {
|
|
211
|
+
return i(), m("div", {
|
|
212
|
+
class: x(a.classes)
|
|
213
|
+
}, _(r.text), 3);
|
|
198
214
|
}
|
|
199
|
-
const
|
|
200
|
-
name: "
|
|
201
|
-
components: { BaseText: y },
|
|
215
|
+
const p = /* @__PURE__ */ g($, [["render", T]]), V = {
|
|
216
|
+
name: "BaseIcon",
|
|
202
217
|
props: {
|
|
203
|
-
|
|
218
|
+
iconName: {
|
|
204
219
|
type: String,
|
|
205
220
|
required: !0
|
|
206
221
|
},
|
|
207
|
-
|
|
222
|
+
style: {
|
|
208
223
|
type: String,
|
|
209
|
-
default:
|
|
224
|
+
default: "fa-solid",
|
|
225
|
+
validator: function(e) {
|
|
226
|
+
return ["fa-solid", "fa-regular", "fa-solid", "fa-light", "fa-thing"].indexOf(e) !== -1;
|
|
227
|
+
}
|
|
210
228
|
},
|
|
211
229
|
size: {
|
|
212
230
|
type: String,
|
|
213
231
|
validator: function(e) {
|
|
214
|
-
return ["xs", "sm", "md", "lg", "xl"].indexOf(e) !== -1;
|
|
232
|
+
return ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"].indexOf(e) !== -1;
|
|
215
233
|
},
|
|
216
234
|
default: "sm"
|
|
217
235
|
},
|
|
236
|
+
color: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: "primary"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
computed: {
|
|
242
|
+
computedIconClass() {
|
|
243
|
+
return [
|
|
244
|
+
this.style,
|
|
245
|
+
this.iconName,
|
|
246
|
+
`text-${this.size}`,
|
|
247
|
+
this.colorClass
|
|
248
|
+
];
|
|
249
|
+
},
|
|
250
|
+
colorClass() {
|
|
251
|
+
return `text-${this.color}`;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
function F(e, t, r, a, o, n) {
|
|
256
|
+
return i(), m("i", {
|
|
257
|
+
class: x(n.computedIconClass)
|
|
258
|
+
}, null, 2);
|
|
259
|
+
}
|
|
260
|
+
const W = /* @__PURE__ */ g(V, [["render", F]]), K = {
|
|
261
|
+
name: "base-button",
|
|
262
|
+
components: { BaseText: p, BaseIcon: W },
|
|
263
|
+
props: {
|
|
264
|
+
label: {
|
|
265
|
+
type: String,
|
|
266
|
+
required: !0
|
|
267
|
+
},
|
|
268
|
+
iconName: {
|
|
269
|
+
type: String,
|
|
270
|
+
default: ""
|
|
271
|
+
},
|
|
272
|
+
iconStyle: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: "fa-solid",
|
|
275
|
+
validator: (e) => ["fa-solid", "fa-regular", "fa-light", "fa-thing"].includes(e)
|
|
276
|
+
},
|
|
277
|
+
size: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: "sm",
|
|
280
|
+
validator: (e) => ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"].includes(e)
|
|
281
|
+
},
|
|
218
282
|
type: {
|
|
219
283
|
type: String,
|
|
220
284
|
default: "primary",
|
|
221
|
-
validator:
|
|
222
|
-
return ["primary", "secondary", "tertiary", "bright", "admin", "adminSecondary"].indexOf(e) !== -1;
|
|
223
|
-
}
|
|
285
|
+
validator: (e) => ["primary", "secondary", "tertiary", "bright", "admin", "adminSecondary", "continue", "iconOnly", "editor"].includes(e)
|
|
224
286
|
},
|
|
225
287
|
selected: {
|
|
226
288
|
type: Boolean,
|
|
@@ -229,63 +291,50 @@ const y = /* @__PURE__ */ g(U, [["render", q]]), T = {
|
|
|
229
291
|
},
|
|
230
292
|
emits: ["click"],
|
|
231
293
|
setup(e, { emit: t }) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
r += " text-sm";
|
|
277
|
-
break;
|
|
278
|
-
case "md":
|
|
279
|
-
r += " text-md";
|
|
280
|
-
break;
|
|
281
|
-
case "lg":
|
|
282
|
-
r += " text-lg";
|
|
283
|
-
break;
|
|
284
|
-
case "xl":
|
|
285
|
-
r += " text-xl";
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
return r;
|
|
294
|
+
const r = {
|
|
295
|
+
primary: "px-2.5 mx-1 py-0.5 items-center gap-2.5 rounded-md text-center shadow border border-dropdownSelect justify-center hover:bg-tertiary " + (e.selected ? "bg-dropdownSelect" : "bg-neutral"),
|
|
296
|
+
secondary: "px-2.5 mx-1 py-0.5 items-center gap-2.5 rounded-md text-center shadow justify-center hover:bg-primary text-neutral " + (e.selected ? "bg-dropdownSelect" : "bg-secondary"),
|
|
297
|
+
tertiary: "px-2.5 mx-1 py-0.5 items-center gap-2.5 rounded-md text-center justify-center hover:bg-primary text-primary " + (e.selected ? "bg-primary" : "bg-tertiary"),
|
|
298
|
+
bright: "px-2.5 mx-1 py-0.5 items-center gap-2.5 rounded-md text-center justify-center hover:bg-primary text-neutral " + (e.selected ? "bg-primary" : "bg-bright"),
|
|
299
|
+
admin: "px-2.5 mx-1 py-2 items-center rounded-md gap-2.5 text-center hover:bg-primary my-1 text-neutral hover:bg-primaryHighlight " + (e.selected, "bg-primary"),
|
|
300
|
+
adminSecondary: "px-2.5 mx-1 py-0.5 items-center gap-2.5 text-center my-1 pb-0.5 border-b border-secondary hover:border-b hover:border-neutral w-11/12 text-neutral " + (e.selected, "bg-primary"),
|
|
301
|
+
continue: "px-2.5 mx-1 items-center gap-2.5 text-center my-1 p-3 border-b border-secondary hover:border-b hover:border-neutral w-full rounded-lg flex flex-row justify-center " + (e.selected ? "bg-secondary" : "bg-primary"),
|
|
302
|
+
iconOnly: "py-0.5 items-center rounded-md text-center shadow border border-dropdownSelect justify-center hover:bg-tertiary",
|
|
303
|
+
editor: "px-1 items-center rounded-md text-center justify-center hover:bg-tertiary"
|
|
304
|
+
}, a = {
|
|
305
|
+
xs: "text-xs",
|
|
306
|
+
sm: "text-sm",
|
|
307
|
+
md: "text-md",
|
|
308
|
+
lg: "text-lg",
|
|
309
|
+
xl: "text-xl",
|
|
310
|
+
"2xl": "text-2xl",
|
|
311
|
+
"3xl": "text-3xl",
|
|
312
|
+
"4xl": "text-4xl"
|
|
313
|
+
};
|
|
314
|
+
return {
|
|
315
|
+
textColor: A(() => ({
|
|
316
|
+
primary: "primary",
|
|
317
|
+
secondary: "secondary",
|
|
318
|
+
tertiary: "tertiary",
|
|
319
|
+
bright: "bright",
|
|
320
|
+
admin: "neutral",
|
|
321
|
+
adminSecondary: "neutral",
|
|
322
|
+
continue: "neutral",
|
|
323
|
+
editor: e.selected ? "bright" : "quaternary"
|
|
324
|
+
})[e.type] || "primary"),
|
|
325
|
+
classes: A(() => {
|
|
326
|
+
let o = "inline-flex", n = r[e.type] || "";
|
|
327
|
+
if (e.selected)
|
|
328
|
+
switch (e.type) {
|
|
329
|
+
case "primary":
|
|
330
|
+
n = n.replace("bg-neutral", "bg-dropdownSelect");
|
|
331
|
+
break;
|
|
332
|
+
case "secondary":
|
|
333
|
+
n = n.replace("bg-secondary", "bg-dropdownSelect");
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
let l = a[e.size] || "";
|
|
337
|
+
return `${o} ${n} ${l}`;
|
|
289
338
|
}),
|
|
290
339
|
onClick() {
|
|
291
340
|
t("click");
|
|
@@ -293,28 +342,32 @@ const y = /* @__PURE__ */ g(U, [["render", q]]), T = {
|
|
|
293
342
|
};
|
|
294
343
|
}
|
|
295
344
|
};
|
|
296
|
-
function
|
|
297
|
-
const
|
|
298
|
-
return i(),
|
|
345
|
+
function H(e, t, r, a, o, n) {
|
|
346
|
+
const l = u("BaseIcon"), s = u("BaseText");
|
|
347
|
+
return i(), m("button", {
|
|
299
348
|
"data-testid": "base-button",
|
|
300
|
-
class:
|
|
349
|
+
class: x(a.classes),
|
|
301
350
|
type: "button",
|
|
302
|
-
onClick: t[0] || (t[0] = (...
|
|
351
|
+
onClick: t[0] || (t[0] = (...y) => a.onClick && a.onClick(...y))
|
|
303
352
|
}, [
|
|
304
|
-
r.
|
|
353
|
+
r.iconName ? (i(), h(l, {
|
|
305
354
|
key: 0,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
355
|
+
"data-testid": "base-icon",
|
|
356
|
+
"icon-name": r.iconName,
|
|
357
|
+
style: k(r.iconStyle),
|
|
358
|
+
color: a.textColor,
|
|
359
|
+
size: r.size
|
|
360
|
+
}, null, 8, ["icon-name", "style", "color", "size"])) : I("", !0),
|
|
361
|
+
d(s, {
|
|
309
362
|
"data-testid": "base-text",
|
|
310
|
-
color:
|
|
363
|
+
color: a.textColor,
|
|
311
364
|
size: r.size,
|
|
312
365
|
text: r.label,
|
|
313
366
|
weight: "normal"
|
|
314
367
|
}, null, 8, ["color", "size", "text"])
|
|
315
368
|
], 2);
|
|
316
369
|
}
|
|
317
|
-
const
|
|
370
|
+
const B = /* @__PURE__ */ g(K, [["render", H]]), j = {
|
|
318
371
|
name: "base-tag",
|
|
319
372
|
props: {
|
|
320
373
|
label: {
|
|
@@ -329,8 +382,8 @@ const C = /* @__PURE__ */ g(T, [["render", $]]), V = {
|
|
|
329
382
|
}
|
|
330
383
|
},
|
|
331
384
|
setup(e) {
|
|
332
|
-
return e =
|
|
333
|
-
classes:
|
|
385
|
+
return e = Y(e), {
|
|
386
|
+
classes: A(() => {
|
|
334
387
|
let t = "cursor-pointer inline-block py-1 px-3 my-2 ml-3 text-xs font-normal rounded-full text-neutral";
|
|
335
388
|
switch (e.backgroundColor) {
|
|
336
389
|
case "primary":
|
|
@@ -357,15 +410,15 @@ const C = /* @__PURE__ */ g(T, [["render", $]]), V = {
|
|
|
357
410
|
};
|
|
358
411
|
}
|
|
359
412
|
};
|
|
360
|
-
function
|
|
361
|
-
return i(),
|
|
362
|
-
class:
|
|
363
|
-
},
|
|
413
|
+
function P(e, t, r, a, o, n) {
|
|
414
|
+
return i(), m("div", {
|
|
415
|
+
class: x(a.classes)
|
|
416
|
+
}, _(r.label), 3);
|
|
364
417
|
}
|
|
365
|
-
const
|
|
418
|
+
const z = /* @__PURE__ */ g(j, [["render", P]]), w = "data:image/png;base64,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", J = {
|
|
366
419
|
name: "tournament-card-header",
|
|
367
420
|
components: {
|
|
368
|
-
BaseTag:
|
|
421
|
+
BaseTag: z
|
|
369
422
|
},
|
|
370
423
|
props: {
|
|
371
424
|
artwork: {
|
|
@@ -383,16 +436,16 @@ const W = /* @__PURE__ */ g(V, [["render", F]]), w = "data:image/png;base64,iVBO
|
|
|
383
436
|
return `background-image: url('${this.artwork || w}');`;
|
|
384
437
|
}
|
|
385
438
|
}
|
|
386
|
-
},
|
|
387
|
-
function
|
|
388
|
-
const
|
|
389
|
-
return i(),
|
|
439
|
+
}, O = { class: "rounded-t-xl w-full" }, N = { class: "flex flex-row" };
|
|
440
|
+
function L(e, t, r, a, o, n) {
|
|
441
|
+
const l = u("BaseTag");
|
|
442
|
+
return i(), m("div", O, [
|
|
390
443
|
c("div", {
|
|
391
|
-
style:
|
|
444
|
+
style: k(n.backgroundStyle),
|
|
392
445
|
class: "h-36 w-full flex flex-col justify-end rounded-t-xl bg-cover bg-no-repeat bg-center"
|
|
393
446
|
}, [
|
|
394
|
-
c("div",
|
|
395
|
-
(i(!0),
|
|
447
|
+
c("div", N, [
|
|
448
|
+
(i(!0), m(f, null, b(r.tags, (s) => (i(), h(l, {
|
|
396
449
|
key: s,
|
|
397
450
|
label: s
|
|
398
451
|
}, null, 8, ["label"]))), 128))
|
|
@@ -400,11 +453,11 @@ function j(e, t, r, l, o, a) {
|
|
|
400
453
|
], 4)
|
|
401
454
|
]);
|
|
402
455
|
}
|
|
403
|
-
const
|
|
456
|
+
const Z = /* @__PURE__ */ g(J, [["render", L]]), R = {
|
|
404
457
|
name: "tournament-card-details",
|
|
405
458
|
components: {
|
|
406
|
-
BaseButton:
|
|
407
|
-
BaseText:
|
|
459
|
+
BaseButton: B,
|
|
460
|
+
BaseText: p
|
|
408
461
|
},
|
|
409
462
|
props: {
|
|
410
463
|
detail: {
|
|
@@ -418,37 +471,37 @@ const J = /* @__PURE__ */ g(K, [["render", j]]), z = {
|
|
|
418
471
|
})
|
|
419
472
|
}
|
|
420
473
|
}
|
|
421
|
-
},
|
|
422
|
-
function
|
|
423
|
-
const
|
|
424
|
-
return i(),
|
|
425
|
-
d(
|
|
474
|
+
}, X = { class: "flex flex-col w-full pt-4 pb-3 px-3" }, ee = { class: "mt-4 flex flex-col" }, te = { class: "flex flex-row w-full justify-end" };
|
|
475
|
+
function re(e, t, r, a, o, n) {
|
|
476
|
+
const l = u("BaseText"), s = u("BaseButton");
|
|
477
|
+
return i(), m("div", X, [
|
|
478
|
+
d(l, {
|
|
426
479
|
text: r.detail.name,
|
|
427
480
|
color: "primary",
|
|
428
481
|
size: "xl",
|
|
429
482
|
weight: "semi-bold"
|
|
430
483
|
}, null, 8, ["text"]),
|
|
431
|
-
d(
|
|
484
|
+
d(l, {
|
|
432
485
|
text: r.detail.location,
|
|
433
486
|
color: "primary",
|
|
434
487
|
size: "sm",
|
|
435
488
|
weight: "normal"
|
|
436
489
|
}, null, 8, ["text"]),
|
|
437
|
-
c("div",
|
|
438
|
-
d(
|
|
490
|
+
c("div", ee, [
|
|
491
|
+
d(l, {
|
|
439
492
|
text: `${r.detail.date}`,
|
|
440
493
|
color: "primaryHighlight",
|
|
441
494
|
size: "sm",
|
|
442
495
|
weight: "light"
|
|
443
496
|
}, null, 8, ["text"]),
|
|
444
|
-
d(
|
|
497
|
+
d(l, {
|
|
445
498
|
text: `${r.detail.closes}`,
|
|
446
499
|
color: "primaryHighlight",
|
|
447
500
|
size: "sm",
|
|
448
501
|
weight: "light"
|
|
449
502
|
}, null, 8, ["text"])
|
|
450
503
|
]),
|
|
451
|
-
c("div",
|
|
504
|
+
c("div", te, [
|
|
452
505
|
d(s, {
|
|
453
506
|
label: "Edit",
|
|
454
507
|
class: "mt-2",
|
|
@@ -457,11 +510,11 @@ function Z(e, t, r, l, o, a) {
|
|
|
457
510
|
])
|
|
458
511
|
]);
|
|
459
512
|
}
|
|
460
|
-
const
|
|
513
|
+
const ae = /* @__PURE__ */ g(R, [["render", re]]), le = {
|
|
461
514
|
name: "TournamentCard",
|
|
462
515
|
components: {
|
|
463
|
-
TournamentHeader:
|
|
464
|
-
TournamentDetail:
|
|
516
|
+
TournamentHeader: Z,
|
|
517
|
+
TournamentDetail: ae
|
|
465
518
|
},
|
|
466
519
|
props: {
|
|
467
520
|
detail: {
|
|
@@ -478,20 +531,20 @@ const R = /* @__PURE__ */ g(z, [["render", Z]]), X = {
|
|
|
478
531
|
})
|
|
479
532
|
}
|
|
480
533
|
}
|
|
481
|
-
},
|
|
482
|
-
function
|
|
483
|
-
const
|
|
484
|
-
return i(),
|
|
485
|
-
d(
|
|
534
|
+
}, ne = { class: "rounded-xl w-72 shadow" };
|
|
535
|
+
function oe(e, t, r, a, o, n) {
|
|
536
|
+
const l = u("TournamentHeader"), s = u("TournamentDetail");
|
|
537
|
+
return i(), m("div", ne, [
|
|
538
|
+
d(l, {
|
|
486
539
|
artwork: r.detail.artwork,
|
|
487
540
|
tags: r.detail.tags
|
|
488
541
|
}, null, 8, ["artwork", "tags"]),
|
|
489
542
|
d(s, { detail: r.detail }, null, 8, ["detail"])
|
|
490
543
|
]);
|
|
491
544
|
}
|
|
492
|
-
const
|
|
545
|
+
const se = /* @__PURE__ */ g(le, [["render", oe]]), ie = {
|
|
493
546
|
name: "DropDownMenu",
|
|
494
|
-
components: { BaseText:
|
|
547
|
+
components: { BaseText: p },
|
|
495
548
|
props: {
|
|
496
549
|
label: {
|
|
497
550
|
type: String
|
|
@@ -517,59 +570,54 @@ const re = /* @__PURE__ */ g(X, [["render", te]]), ae = {
|
|
|
517
570
|
this.isDropDownOpen = !this.isDropDownOpen;
|
|
518
571
|
}
|
|
519
572
|
}
|
|
520
|
-
},
|
|
573
|
+
}, ce = { class: "flex flex-row" }, de = /* @__PURE__ */ c("i", { class: "fa-solid fa-chevron-down text-xs" }, null, -1), me = {
|
|
521
574
|
key: 0,
|
|
522
575
|
class: "flex flex-col w-32 shadow mt-2 z-10 rounded-xl py-1 absolute bg-neutral"
|
|
523
|
-
},
|
|
524
|
-
function
|
|
525
|
-
const
|
|
526
|
-
return i(),
|
|
576
|
+
}, ue = ["onClick"];
|
|
577
|
+
function ge(e, t, r, a, o, n) {
|
|
578
|
+
const l = u("BaseText");
|
|
579
|
+
return i(), m("div", ce, [
|
|
527
580
|
c("span", null, [
|
|
528
581
|
c("div", {
|
|
529
|
-
class: "z-10 rounded-lg shadow px-2 py-2 w-
|
|
530
|
-
onClick: t[0] || (t[0] = (s) =>
|
|
582
|
+
class: "z-10 rounded-lg shadow px-2 py-2 w-40 flex flex-row justify-between",
|
|
583
|
+
onClick: t[0] || (t[0] = (s) => n.handleDropDown())
|
|
531
584
|
}, [
|
|
532
|
-
d(
|
|
585
|
+
d(l, {
|
|
533
586
|
text: r.label,
|
|
534
587
|
color: "quaternary",
|
|
535
588
|
size: "sm",
|
|
536
589
|
weight: "normal"
|
|
537
590
|
}, null, 8, ["text"]),
|
|
538
|
-
d(
|
|
591
|
+
d(l, {
|
|
539
592
|
text: r.selectedItem.text,
|
|
540
593
|
color: "secondary",
|
|
541
594
|
size: "sm",
|
|
542
595
|
weight: "normal"
|
|
543
596
|
}, null, 8, ["text"]),
|
|
544
|
-
|
|
597
|
+
de
|
|
545
598
|
]),
|
|
546
|
-
e.isDropDownOpen ? (i(),
|
|
547
|
-
(i(!0),
|
|
599
|
+
e.isDropDownOpen ? (i(), m("div", me, [
|
|
600
|
+
(i(!0), m(f, null, b(r.items, (s) => (i(), m("a", {
|
|
548
601
|
key: s.id,
|
|
549
|
-
onClick: (
|
|
602
|
+
onClick: (y) => n.handleClick(s),
|
|
550
603
|
class: "hover:bg-dropdownSelect py-1 px-2 border-b border-dropdownSelect last:border-0"
|
|
551
604
|
}, [
|
|
552
|
-
d(
|
|
605
|
+
d(l, {
|
|
553
606
|
text: s.text,
|
|
554
607
|
color: "primary",
|
|
555
608
|
size: "xs",
|
|
556
609
|
weight: "normal"
|
|
557
610
|
}, null, 8, ["text"])
|
|
558
|
-
], 8,
|
|
559
|
-
])) :
|
|
611
|
+
], 8, ue))), 128))
|
|
612
|
+
])) : I("", !0)
|
|
560
613
|
])
|
|
561
614
|
]);
|
|
562
615
|
}
|
|
563
|
-
const
|
|
616
|
+
const D = /* @__PURE__ */ g(ie, [["render", ge]]), ye = {
|
|
564
617
|
name: "FilterAndSortBar",
|
|
565
618
|
components: {
|
|
566
|
-
DropDownMenu:
|
|
567
|
-
BaseInput:
|
|
568
|
-
},
|
|
569
|
-
data() {
|
|
570
|
-
return {
|
|
571
|
-
filterText: ""
|
|
572
|
-
};
|
|
619
|
+
DropDownMenu: D,
|
|
620
|
+
BaseInput: Q
|
|
573
621
|
},
|
|
574
622
|
props: {
|
|
575
623
|
label: {
|
|
@@ -581,44 +629,50 @@ const Q = /* @__PURE__ */ g(ae, [["render", ie]]), ce = {
|
|
|
581
629
|
},
|
|
582
630
|
selectedItem: null
|
|
583
631
|
},
|
|
632
|
+
data() {
|
|
633
|
+
return {
|
|
634
|
+
filterText: "",
|
|
635
|
+
localSelectedItem: this.selectedItem
|
|
636
|
+
};
|
|
637
|
+
},
|
|
584
638
|
methods: {
|
|
585
639
|
handleFilter(e) {
|
|
586
640
|
this.$emit("filterbar", e);
|
|
587
641
|
},
|
|
588
642
|
handleSelectedItem(e) {
|
|
589
|
-
this.$emit("sort", e),
|
|
643
|
+
this.$emit("sort", e), this.localSelectedItem = e;
|
|
590
644
|
}
|
|
591
645
|
}
|
|
592
|
-
},
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return i(),
|
|
596
|
-
c("div",
|
|
597
|
-
|
|
598
|
-
d(
|
|
646
|
+
}, Ae = { class: "flex flex-row w-full justify-between" }, xe = { class: "rounded-lg shadow px-2 py-1 w-full flex flex-row mt-0.5 mr-4" }, pe = /* @__PURE__ */ c("i", { class: "fa-solid fa-magnifying-glass text-primaryHighlight w-6 mt-1" }, null, -1);
|
|
647
|
+
function he(e, t, r, a, o, n) {
|
|
648
|
+
const l = u("BaseInput"), s = u("DropDownMenu");
|
|
649
|
+
return i(), m("section", Ae, [
|
|
650
|
+
c("div", xe, [
|
|
651
|
+
pe,
|
|
652
|
+
d(l, {
|
|
599
653
|
placeholder: "Search on Name, Location, or Date",
|
|
600
654
|
class: "text-quaternary",
|
|
601
655
|
value: o.filterText,
|
|
602
|
-
"onUpdate:value":
|
|
656
|
+
"onUpdate:value": n.handleFilter
|
|
603
657
|
}, null, 8, ["value", "onUpdate:value"])
|
|
604
658
|
]),
|
|
605
659
|
c("div", null, [
|
|
606
660
|
d(s, {
|
|
607
661
|
label: r.label,
|
|
608
662
|
items: r.items,
|
|
609
|
-
selectedItem:
|
|
610
|
-
"onUpdate:selectedItem":
|
|
663
|
+
selectedItem: o.localSelectedItem,
|
|
664
|
+
"onUpdate:selectedItem": n.handleSelectedItem
|
|
611
665
|
}, null, 8, ["label", "items", "selectedItem", "onUpdate:selectedItem"])
|
|
612
666
|
])
|
|
613
667
|
]);
|
|
614
668
|
}
|
|
615
|
-
const
|
|
669
|
+
const fe = /* @__PURE__ */ g(ye, [["render", he]]), be = {
|
|
616
670
|
name: "FilterUpcomingPast",
|
|
617
671
|
components: {
|
|
618
|
-
BaseText:
|
|
619
|
-
BaseButton:
|
|
620
|
-
DropDownMenu:
|
|
621
|
-
BaseInput:
|
|
672
|
+
BaseText: p,
|
|
673
|
+
BaseButton: B,
|
|
674
|
+
DropDownMenu: D,
|
|
675
|
+
BaseInput: Q
|
|
622
676
|
},
|
|
623
677
|
props: {
|
|
624
678
|
selected: {
|
|
@@ -636,50 +690,50 @@ const Ae = /* @__PURE__ */ g(ce, [["render", ge]]), ye = {
|
|
|
636
690
|
this.$emit("timeFrame", e), this.localSelected = e;
|
|
637
691
|
}
|
|
638
692
|
}
|
|
639
|
-
},
|
|
640
|
-
function
|
|
641
|
-
const
|
|
642
|
-
return i(),
|
|
643
|
-
c("div",
|
|
644
|
-
d(
|
|
693
|
+
}, Be = { class: "flex flex-row w-full justify-between" }, Ce = { class: "rounded-lg w-3/4" }, we = { class: "flex flex-row h-8 w-1/4 justify-end" };
|
|
694
|
+
function _e(e, t, r, a, o, n) {
|
|
695
|
+
const l = u("BaseText"), s = u("BaseButton");
|
|
696
|
+
return i(), m("section", Be, [
|
|
697
|
+
c("div", Ce, [
|
|
698
|
+
d(l, {
|
|
645
699
|
text: "Tournament",
|
|
646
700
|
color: "primary",
|
|
647
701
|
size: "2xl",
|
|
648
702
|
weight: "normal"
|
|
649
703
|
})
|
|
650
704
|
]),
|
|
651
|
-
c("div",
|
|
705
|
+
c("div", we, [
|
|
652
706
|
d(s, {
|
|
653
707
|
label: "All",
|
|
654
708
|
color: "primary",
|
|
655
709
|
size: "sm",
|
|
656
710
|
selected: o.localSelected === "All",
|
|
657
|
-
onClick: t[0] || (t[0] = (
|
|
711
|
+
onClick: t[0] || (t[0] = (y) => n.handleTimeFrame("ALL"))
|
|
658
712
|
}, null, 8, ["selected"]),
|
|
659
713
|
d(s, {
|
|
660
714
|
label: "Upcoming",
|
|
661
715
|
color: "primary",
|
|
662
716
|
size: "sm",
|
|
663
717
|
selected: o.localSelected === "Upcoming",
|
|
664
|
-
onClick: t[1] || (t[1] = (
|
|
718
|
+
onClick: t[1] || (t[1] = (y) => n.handleTimeFrame("Upcoming"))
|
|
665
719
|
}, null, 8, ["selected"]),
|
|
666
720
|
d(s, {
|
|
667
721
|
label: "Past",
|
|
668
722
|
color: "primary",
|
|
669
723
|
size: "sm",
|
|
670
724
|
selected: o.localSelected === "Past",
|
|
671
|
-
onClick: t[2] || (t[2] = (
|
|
725
|
+
onClick: t[2] || (t[2] = (y) => n.handleTimeFrame("Past"))
|
|
672
726
|
}, null, 8, ["selected"])
|
|
673
727
|
])
|
|
674
728
|
]);
|
|
675
729
|
}
|
|
676
|
-
const
|
|
730
|
+
const ke = /* @__PURE__ */ g(be, [["render", _e]]), Ie = {
|
|
677
731
|
name: "GridContainer",
|
|
678
732
|
components: {
|
|
679
|
-
FilterAndSortBar:
|
|
680
|
-
BaseText:
|
|
681
|
-
TournamentCard:
|
|
682
|
-
FilterUpcomingPast:
|
|
733
|
+
FilterAndSortBar: fe,
|
|
734
|
+
BaseText: p,
|
|
735
|
+
TournamentCard: se,
|
|
736
|
+
FilterUpcomingPast: ke
|
|
683
737
|
},
|
|
684
738
|
props: {
|
|
685
739
|
items: {
|
|
@@ -712,7 +766,7 @@ const be = /* @__PURE__ */ g(ye, [["render", pe]]), fe = {
|
|
|
712
766
|
if (this.filterOn.trim()) {
|
|
713
767
|
const r = this.filterOn.toLowerCase();
|
|
714
768
|
e = e.filter(
|
|
715
|
-
(
|
|
769
|
+
(a) => Object.values(a).some(
|
|
716
770
|
(o) => typeof o == "string" && o.toLowerCase().includes(r)
|
|
717
771
|
)
|
|
718
772
|
);
|
|
@@ -728,13 +782,13 @@ const be = /* @__PURE__ */ g(ye, [["render", pe]]), fe = {
|
|
|
728
782
|
}
|
|
729
783
|
switch (this.sortCriteria) {
|
|
730
784
|
case "Date":
|
|
731
|
-
e = [...e].sort((r,
|
|
785
|
+
e = [...e].sort((r, a) => new Date(r.date) - new Date(a.date));
|
|
732
786
|
break;
|
|
733
787
|
case "Name":
|
|
734
|
-
e = [...e].sort((r,
|
|
788
|
+
e = [...e].sort((r, a) => r.name.localeCompare(a.name));
|
|
735
789
|
break;
|
|
736
790
|
case "Location":
|
|
737
|
-
e = [...e].sort((r,
|
|
791
|
+
e = [...e].sort((r, a) => r.location.localeCompare(a.location));
|
|
738
792
|
break;
|
|
739
793
|
}
|
|
740
794
|
return e;
|
|
@@ -751,37 +805,37 @@ const be = /* @__PURE__ */ g(ye, [["render", pe]]), fe = {
|
|
|
751
805
|
this.selectedTimeFrame = e;
|
|
752
806
|
}
|
|
753
807
|
}
|
|
754
|
-
},
|
|
755
|
-
function
|
|
756
|
-
const
|
|
757
|
-
return i(),
|
|
758
|
-
c("div",
|
|
759
|
-
d(
|
|
808
|
+
}, Qe = { class: "border border-dropdownSelect rounded-lg p-9 bg-neutral" }, De = { class: "my-4" }, Se = { class: "my-4" }, ve = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 3xl:grid-cols-4 gap-6 w-full" };
|
|
809
|
+
function Ee(e, t, r, a, o, n) {
|
|
810
|
+
const l = u("FilterUpcomingPast"), s = u("FilterAndSortBar");
|
|
811
|
+
return i(), m("div", Qe, [
|
|
812
|
+
c("div", De, [
|
|
813
|
+
d(l, {
|
|
760
814
|
selected: o.selectedTimeFrame,
|
|
761
|
-
onTimeFrame:
|
|
815
|
+
onTimeFrame: n.handleTimeFrameChange
|
|
762
816
|
}, null, 8, ["selected", "onTimeFrame"])
|
|
763
817
|
]),
|
|
764
|
-
c("div",
|
|
818
|
+
c("div", Se, [
|
|
765
819
|
d(s, {
|
|
766
820
|
items: r.dropdownItems,
|
|
767
821
|
label: r.label,
|
|
768
822
|
selectedItem: r.selectedItem,
|
|
769
|
-
onFilterbar:
|
|
770
|
-
onSort:
|
|
823
|
+
onFilterbar: n.handleFilter,
|
|
824
|
+
onSort: n.handleSort
|
|
771
825
|
}, null, 8, ["items", "label", "selectedItem", "onFilterbar", "onSort"])
|
|
772
826
|
]),
|
|
773
|
-
c("div",
|
|
774
|
-
(i(!0),
|
|
775
|
-
key:
|
|
827
|
+
c("div", ve, [
|
|
828
|
+
(i(!0), m(f, null, b(n.filteredItems, (y) => (i(), m("div", {
|
|
829
|
+
key: y.id
|
|
776
830
|
}, [
|
|
777
|
-
(i(),
|
|
831
|
+
(i(), h(M(r.component), { detail: y }, null, 8, ["detail"]))
|
|
778
832
|
]))), 128))
|
|
779
833
|
])
|
|
780
834
|
]);
|
|
781
835
|
}
|
|
782
|
-
const
|
|
836
|
+
const Fe = /* @__PURE__ */ g(Ie, [["render", Ee]]), Ye = {
|
|
783
837
|
name: "AdminLeftMenu",
|
|
784
|
-
components: { BaseButton:
|
|
838
|
+
components: { BaseButton: B },
|
|
785
839
|
props: {
|
|
786
840
|
buttons: {
|
|
787
841
|
type: Array,
|
|
@@ -793,7 +847,7 @@ const Ue = /* @__PURE__ */ g(fe, [["render", Ie]]), Qe = {
|
|
|
793
847
|
this.$emit("button-click", e);
|
|
794
848
|
}
|
|
795
849
|
}
|
|
796
|
-
},
|
|
850
|
+
}, Me = { class: "bg-secondary w-64 h-screen flex flex-col justify-between" }, Ge = /* @__PURE__ */ c("section", { class: "h-28 border-b border-neutral" }, [
|
|
797
851
|
/* @__PURE__ */ c("div", { class: "flex flex-col justify-center h-28" }, [
|
|
798
852
|
/* @__PURE__ */ c("div", { class: "ml-8" }, [
|
|
799
853
|
/* @__PURE__ */ c("img", {
|
|
@@ -803,49 +857,49 @@ const Ue = /* @__PURE__ */ g(fe, [["render", Ie]]), Qe = {
|
|
|
803
857
|
})
|
|
804
858
|
])
|
|
805
859
|
])
|
|
806
|
-
], -1),
|
|
807
|
-
function
|
|
808
|
-
const
|
|
809
|
-
return i(),
|
|
810
|
-
|
|
811
|
-
c("section",
|
|
812
|
-
(i(!0),
|
|
860
|
+
], -1), Ue = { class: "flex flex-col p-2 h-full" }, qe = { class: "flex flex-col justify-end p-2 flex-grow" }, $e = { class: "border-t border-neutral pt-2" };
|
|
861
|
+
function Te(e, t, r, a, o, n) {
|
|
862
|
+
const l = u("BaseButton");
|
|
863
|
+
return i(), m("div", Me, [
|
|
864
|
+
Ge,
|
|
865
|
+
c("section", Ue, [
|
|
866
|
+
(i(!0), m(f, null, b(r.buttons, (s) => (i(), h(l, {
|
|
813
867
|
label: s.label,
|
|
814
868
|
iconClass: "fa-solid fa-trophy text-white",
|
|
815
869
|
type: "admin",
|
|
816
870
|
hover: "admin",
|
|
817
|
-
onClick: (
|
|
871
|
+
onClick: (y) => n.handleButtonClick(s)
|
|
818
872
|
}, null, 8, ["label", "onClick"]))), 256))
|
|
819
873
|
]),
|
|
820
|
-
c("section",
|
|
821
|
-
c("div",
|
|
822
|
-
d(
|
|
874
|
+
c("section", qe, [
|
|
875
|
+
c("div", $e, [
|
|
876
|
+
d(l, {
|
|
823
877
|
iconClass: "fa-solid fa-circle-user text-textSecondary",
|
|
824
878
|
label: "Account",
|
|
825
879
|
type: "adminSecondary",
|
|
826
|
-
onClick: t[0] || (t[0] = (s) =>
|
|
880
|
+
onClick: t[0] || (t[0] = (s) => n.handleButtonClick(e.button))
|
|
827
881
|
}),
|
|
828
|
-
d(
|
|
882
|
+
d(l, {
|
|
829
883
|
iconClass: "fa-solid fa-right-to-bracket fa-rotate-180 text-textSecondary",
|
|
830
884
|
label: "Log Out",
|
|
831
885
|
type: "adminSecondary",
|
|
832
|
-
onClick: t[1] || (t[1] = (s) =>
|
|
886
|
+
onClick: t[1] || (t[1] = (s) => n.handleButtonClick(e.button))
|
|
833
887
|
})
|
|
834
888
|
])
|
|
835
889
|
])
|
|
836
890
|
]);
|
|
837
891
|
}
|
|
838
|
-
const
|
|
892
|
+
const We = /* @__PURE__ */ g(Ye, [["render", Te]]);
|
|
839
893
|
export {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
894
|
+
We as AdminLeftMenu,
|
|
895
|
+
B as BaseButton,
|
|
896
|
+
Q as BaseInput,
|
|
897
|
+
z as BaseTag,
|
|
898
|
+
p as BaseText,
|
|
899
|
+
D as DropDownMenu,
|
|
900
|
+
fe as FilterAndSortBar,
|
|
901
|
+
Fe as GridContainer,
|
|
902
|
+
se as TournamentCard,
|
|
903
|
+
ae as TournamentCardDetails,
|
|
904
|
+
Z as TournamentCardHeader
|
|
851
905
|
};
|