@golstats/gsc-landing 1.0.28 → 1.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-landing",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -23,13 +23,13 @@
23
23
  "dependencies": {
24
24
  "@golstats/gsc-button": "^1.0.13",
25
25
  "@golstats/gsc-calendar-by-game": "^1.0.23",
26
- "@golstats/gsc-general-table": "^1.0.22",
27
- "@golstats/gsc-media-player": "^1.0.13",
26
+ "@golstats/gsc-general-table": "^1.0.24",
28
27
  "@golstats/gsc-mosaic-the-best": "^1.0.11",
29
- "@golstats/gsc-season-select": "^1.0.6",
28
+ "@golstats/gsc-player-team-game": "^1.1.20",
29
+ "@golstats/gsc-season-select": "^1.0.7",
30
30
  "@golstats/gsc-slider": "^1.0.4",
31
31
  "@golstats/gsc-switch-component": "^1.0.14",
32
- "@golstats/gsc-tournament-select": "^1.0.6",
32
+ "@golstats/gsc-tournament-select": "^1.0.7",
33
33
  "axios": "^1.6.2",
34
34
  "vue": "3.3.4"
35
35
  },
@@ -1,241 +0,0 @@
1
- import { useCssVars as E, computed as c, openBlock as d, createElementBlock as o, normalizeStyle as $, createElementVNode as s, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as V, popScopeId as H } from "vue";
2
- import { L as m } from "./gsc-checkbox-61a9b387-xMZ_9V3m.js";
3
- import { q as L } from "./index-CEduevOX.js";
4
- const r = (i) => (V("data-v-f22f11b6"), i = i(), H(), i), R = { class: "details__header" }, T = /* @__PURE__ */ r(() => /* @__PURE__ */ s("div", { class: "details__header__title" }, "Jugando como", -1)), W = { class: "details__header__checkbox" }, I = { class: "details__body" }, q = { class: "details__body__playing-as" }, z = ["onClick"], F = { class: "details__header" }, N = /* @__PURE__ */ r(() => /* @__PURE__ */ s("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), U = { class: "details__header__checkbox" }, j = { class: "details__body" }, D = /* @__PURE__ */ r(() => /* @__PURE__ */ s("div", { class: "details__body__title" }, "1er tiempo", -1)), J = { class: "details__body__game-section" }, O = ["onClick"], w = { class: "details__body" }, G = /* @__PURE__ */ r(() => /* @__PURE__ */ s("div", { class: "details__body__title" }, "2do tiempo", -1)), K = { class: "details__body__game-section" }, M = ["onClick"], P = {
5
- __name: "FilterConditions",
6
- props: {
7
- conditions: {
8
- type: Object,
9
- default: () => ({
10
- playingAs: [
11
- {
12
- name: "Local",
13
- value: 1,
14
- isSelected: !0
15
- },
16
- {
17
- name: "Visitante",
18
- value: 2,
19
- isSelected: !0
20
- }
21
- ],
22
- gameSections: [
23
- {
24
- text: "0-15",
25
- value: 1,
26
- isSelected: !0
27
- },
28
- {
29
- text: "16-30",
30
- value: 2,
31
- isSelected: !0
32
- },
33
- {
34
- text: "31-45",
35
- value: 3,
36
- isSelected: !0
37
- },
38
- {
39
- text: "46-60",
40
- value: 4,
41
- isSelected: !0
42
- },
43
- {
44
- text: "61-75",
45
- value: 5,
46
- isSelected: !0
47
- },
48
- {
49
- text: "76-90",
50
- value: 6,
51
- isSelected: !0
52
- }
53
- ]
54
- })
55
- },
56
- playingAs: {
57
- type: Array,
58
- default: () => [
59
- {
60
- name: "Local",
61
- isSelected: !0
62
- },
63
- {
64
- name: "Visitante",
65
- isSelected: !0
66
- }
67
- ]
68
- },
69
- gameSections: {
70
- type: Array,
71
- default: () => [
72
- {
73
- text: "0-15",
74
- value: 1,
75
- isSelected: !0
76
- },
77
- {
78
- text: "16-30",
79
- value: 2,
80
- isSelected: !0
81
- },
82
- {
83
- text: "31-45",
84
- value: 3,
85
- isSelected: !0
86
- },
87
- {
88
- text: "46-60",
89
- value: 4,
90
- isSelected: !0
91
- },
92
- {
93
- text: "61-75",
94
- value: 5,
95
- isSelected: !0
96
- },
97
- {
98
- text: "76-90",
99
- value: 6,
100
- isSelected: !0
101
- }
102
- ]
103
- },
104
- buttonsBackgroundColor: {
105
- type: String,
106
- default: "rgba(255, 255, 255, 0)"
107
- },
108
- buttonsBackgroundColorActive: {
109
- type: String,
110
- default: "rgba(203, 238, 107, 0.05)"
111
- },
112
- buttonsTextColor: {
113
- type: String,
114
- default: "rgba(255, 255, 255, 0.8)"
115
- },
116
- buttonsTextColorActive: {
117
- type: String,
118
- default: "rgba(255, 255, 255, 1)"
119
- },
120
- buttonsBorderColor: {
121
- type: String,
122
- default: "#8ea2ab"
123
- },
124
- buttonsBorderColorActive: {
125
- type: String,
126
- default: "#cbee6b"
127
- },
128
- buttonsBorderWidth: {
129
- type: String,
130
- default: "0.8px"
131
- },
132
- buttonsBorderWidthActive: {
133
- type: String,
134
- default: "1px"
135
- },
136
- buttonsBorderRadius: {
137
- type: String,
138
- default: "4px"
139
- }
140
- },
141
- setup(i) {
142
- const a = i;
143
- E((e) => ({
144
- "7fb261be": i.buttonsBackgroundColor,
145
- "2ed63bdf": i.buttonsTextColor,
146
- "104a673a": i.buttonsBorderWidth,
147
- 12786400: i.buttonsBorderColor,
148
- "661a0664": i.buttonsBackgroundColorActive,
149
- "61bff876": i.buttonsTextColorActive,
150
- e5a1bd6e: i.buttonsBorderWidthActive,
151
- "50c5b926": i.buttonsBorderColorActive
152
- }));
153
- const x = c(() => a.conditions.playingAs.every((e) => e.isSelected)), C = c(() => a.conditions.gameSections.every((e) => e.isSelected)), S = c(() => a.conditions.gameSections.reduce(
154
- (e, t) => (t.value <= 3 ? e.firstHalf.push(t) : e.secondHalf.push(t), e),
155
- {
156
- firstHalf: [],
157
- secondHalf: []
158
- }
159
- )), h = c(() => ({
160
- "--border-radius-first-button": `${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,
161
- "--border-radius-last-button": `0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`
162
- }));
163
- function B(e) {
164
- e ? a.conditions.playingAs.forEach((t) => {
165
- t.isSelected = !0;
166
- }) : a.conditions.playingAs.forEach((t, l) => {
167
- t.isSelected = l === 0;
168
- });
169
- }
170
- function k(e) {
171
- a.conditions.playingAs.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
172
- }
173
- function p(e) {
174
- a.conditions.gameSections.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
175
- }
176
- function A(e) {
177
- e ? a.conditions.gameSections.forEach((t) => {
178
- t.isSelected = !0;
179
- }) : a.conditions.gameSections.forEach((t, l) => {
180
- t.isSelected = l === 0;
181
- });
182
- }
183
- return (e, t) => (d(), o("div", {
184
- class: "details",
185
- style: $(h.value)
186
- }, [
187
- s("div", R, [
188
- T,
189
- s("div", W, [
190
- y(g(m), {
191
- label: "Todos",
192
- "model-value": x.value,
193
- "onUpdate:modelValue": B
194
- }, null, 8, ["model-value"])
195
- ])
196
- ]),
197
- s("div", I, [
198
- s("div", q, [
199
- (d(!0), o(u, null, _(i.conditions.playingAs, (l, n) => (d(), o("div", {
200
- key: `pa${n}`,
201
- class: b(["details__body__button", { active: l.isSelected }]),
202
- onClick: (f) => k(l)
203
- }, v(l.name), 11, z))), 128))
204
- ])
205
- ]),
206
- s("div", F, [
207
- N,
208
- s("div", U, [
209
- y(g(m), {
210
- label: "Todos",
211
- "model-value": C.value,
212
- "onUpdate:modelValue": A
213
- }, null, 8, ["model-value"])
214
- ])
215
- ]),
216
- s("div", j, [
217
- D,
218
- s("div", J, [
219
- (d(!0), o(u, null, _(S.value.firstHalf, (l, n) => (d(), o("div", {
220
- key: `pa${n}`,
221
- class: b(["details__body__button", { active: l.isSelected }]),
222
- onClick: (f) => p(l)
223
- }, v(l.text), 11, O))), 128))
224
- ])
225
- ]),
226
- s("div", w, [
227
- G,
228
- s("div", K, [
229
- (d(!0), o(u, null, _(S.value.secondHalf, (l, n) => (d(), o("div", {
230
- key: `pa${n}`,
231
- class: b(["details__body__button", { active: l.isSelected }]),
232
- onClick: (f) => p(l)
233
- }, v(l.text), 11, M))), 128))
234
- ])
235
- ])
236
- ], 4));
237
- }
238
- }, Y = /* @__PURE__ */ L(P, [["__scopeId", "data-v-f22f11b6"]]);
239
- export {
240
- Y as default
241
- };