@golstats/gsc-filters 1.0.11 → 1.0.12
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/README.md +2 -2
- package/dist/{FilterConditions-6dbd93ec.js → FilterConditions-eb6063e3.js} +20 -21
- package/dist/{FilterField-bd1c3d65.js → FilterField-d3222459.js} +6 -6
- package/dist/{FilterSubcategories-63afd108.js → FilterSubcategories-69379523.js} +9 -9
- package/dist/gsc-filters.js +1 -1
- package/dist/gsc-filters.umd.cjs +5 -5
- package/dist/{index-dee7e979.js → index-43e808d7.js} +2802 -2793
- package/dist/style.css +1 -1
- package/package.json +48 -48
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# filters-component
|
|
2
|
-
Componente filtros
|
|
1
|
+
# filters-component
|
|
2
|
+
Componente filtros
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useCssVars as $, computed as
|
|
2
|
-
import { _ as V, L as g } from "./index-
|
|
3
|
-
const
|
|
1
|
+
import { useCssVars as $, computed as r, openBlock as i, createElementBlock as a, normalizeStyle as E, createElementVNode as l, createVNode as y, unref as p, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as H, popScopeId as T } from "vue";
|
|
2
|
+
import { _ as V, L as g } from "./index-43e808d7.js";
|
|
3
|
+
const c = (d) => (H("data-v-893b389d"), d = d(), T(), d), R = { class: "details__header" }, F = /* @__PURE__ */ c(() => /* @__PURE__ */ l("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, W = { class: "details__body" }, G = { class: "details__body__playing-as" }, L = ["onClick"], P = { class: "details__header" }, z = /* @__PURE__ */ c(() => /* @__PURE__ */ l("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), N = { class: "details__header__checkbox" }, U = { class: "details__body" }, w = /* @__PURE__ */ c(() => /* @__PURE__ */ l("div", { class: "details__body__title" }, "1er tiempo", -1)), D = { class: "details__body__game-section" }, J = ["onClick"], j = { class: "details__body" }, q = /* @__PURE__ */ c(() => /* @__PURE__ */ l("div", { class: "details__body__title" }, "2do tiempo", -1)), K = { class: "details__body__game-section" }, M = ["onClick"], O = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
|
6
6
|
playingAs: {
|
|
@@ -89,24 +89,23 @@ const r = (d) => (H("data-v-80d9c265"), d = d(), T(), d), R = { class: "details_
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
setup(d) {
|
|
92
|
-
const o = d;
|
|
93
92
|
$((e) => ({
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
93
|
+
"2715f84a": d.buttonsBackgroundColor,
|
|
94
|
+
"97bea92a": d.buttonsTextColor,
|
|
95
|
+
"544788ef": d.buttonsBorderWidth,
|
|
96
|
+
"53308a8c": d.buttonsBorderColor,
|
|
97
|
+
e844f820: d.buttonsBackgroundColorActive,
|
|
98
|
+
"76839a51": d.buttonsTextColorActive,
|
|
99
|
+
"2bf17656": d.buttonsBorderWidthActive,
|
|
100
|
+
a4c4469c: d.buttonsBorderColorActive
|
|
102
101
|
}));
|
|
103
|
-
const m =
|
|
102
|
+
const o = d, m = r(() => o.playingAs.every((e) => e.isSelected)), C = r(() => o.gameSections.every((e) => e.isSelected)), f = r(() => o.gameSections.reduce(
|
|
104
103
|
(e, t) => (t.value <= 3 ? e.firstHalf.push(t) : e.secondHalf.push(t), e),
|
|
105
104
|
{
|
|
106
105
|
firstHalf: [],
|
|
107
106
|
secondHalf: []
|
|
108
107
|
}
|
|
109
|
-
)), x =
|
|
108
|
+
)), x = r(() => ({
|
|
110
109
|
"--border-radius-first-button": `${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,
|
|
111
110
|
"--border-radius-last-button": `0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`
|
|
112
111
|
}));
|
|
@@ -148,9 +147,9 @@ const r = (d) => (H("data-v-80d9c265"), d = d(), T(), d), R = { class: "details_
|
|
|
148
147
|
l("div", G, [
|
|
149
148
|
(i(!0), a(u, null, _(o.playingAs, (s, n) => (i(), a("div", {
|
|
150
149
|
key: `pa${n}`,
|
|
151
|
-
class:
|
|
150
|
+
class: b(["details__body__button", { active: s.isSelected }]),
|
|
152
151
|
onClick: (h) => B(s)
|
|
153
|
-
},
|
|
152
|
+
}, v(s.name), 11, L))), 128))
|
|
154
153
|
])
|
|
155
154
|
]),
|
|
156
155
|
l("div", P, [
|
|
@@ -168,9 +167,9 @@ const r = (d) => (H("data-v-80d9c265"), d = d(), T(), d), R = { class: "details_
|
|
|
168
167
|
l("div", D, [
|
|
169
168
|
(i(!0), a(u, null, _(f.value.firstHalf, (s, n) => (i(), a("div", {
|
|
170
169
|
key: `pa${n}`,
|
|
171
|
-
class:
|
|
170
|
+
class: b(["details__body__button", { active: s.isSelected }]),
|
|
172
171
|
onClick: (h) => S(s)
|
|
173
|
-
},
|
|
172
|
+
}, v(s.text), 11, J))), 128))
|
|
174
173
|
])
|
|
175
174
|
]),
|
|
176
175
|
l("div", j, [
|
|
@@ -178,14 +177,14 @@ const r = (d) => (H("data-v-80d9c265"), d = d(), T(), d), R = { class: "details_
|
|
|
178
177
|
l("div", K, [
|
|
179
178
|
(i(!0), a(u, null, _(f.value.secondHalf, (s, n) => (i(), a("div", {
|
|
180
179
|
key: `pa${n}`,
|
|
181
|
-
class:
|
|
180
|
+
class: b(["details__body__button", { active: s.isSelected }]),
|
|
182
181
|
onClick: (h) => S(s)
|
|
183
|
-
},
|
|
182
|
+
}, v(s.text), 11, M))), 128))
|
|
184
183
|
])
|
|
185
184
|
])
|
|
186
185
|
], 4));
|
|
187
186
|
}
|
|
188
|
-
}, Y = /* @__PURE__ */ V(O, [["__scopeId", "data-v-
|
|
187
|
+
}, Y = /* @__PURE__ */ V(O, [["__scopeId", "data-v-893b389d"]]);
|
|
189
188
|
export {
|
|
190
189
|
Y as default
|
|
191
190
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as r, openBlock as _, createElementBlock as a, createVNode as
|
|
2
|
-
import { _ as
|
|
3
|
-
const i = { class: "filter-field" },
|
|
1
|
+
import { ref as r, openBlock as _, createElementBlock as a, createVNode as d, unref as n } from "vue";
|
|
2
|
+
import { _ as c, D as s } from "./index-43e808d7.js";
|
|
3
|
+
const i = { class: "filter-field" }, f = {
|
|
4
4
|
__name: "FilterField",
|
|
5
|
-
setup(
|
|
5
|
+
setup(u) {
|
|
6
6
|
const t = r(Array.from({ length: 16 }, (l, e) => e + 1));
|
|
7
7
|
function o() {
|
|
8
8
|
}
|
|
9
9
|
return (l, e) => (_(), a("div", i, [
|
|
10
|
-
|
|
10
|
+
d(n(s), {
|
|
11
11
|
width: "100%",
|
|
12
12
|
"background-color": "#2E3B46",
|
|
13
13
|
value: t.value,
|
|
@@ -15,7 +15,7 @@ const i = { class: "filter-field" }, u = {
|
|
|
15
15
|
}, null, 8, ["value"])
|
|
16
16
|
]));
|
|
17
17
|
}
|
|
18
|
-
}, v = /* @__PURE__ */
|
|
18
|
+
}, v = /* @__PURE__ */ c(f, [["__scopeId", "data-v-ef90fbbd"]]);
|
|
19
19
|
export {
|
|
20
20
|
v as default
|
|
21
21
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as r, Fragment as a, renderList as u, createBlock as n, unref as
|
|
2
|
-
import { _ as s, L as i } from "./index-
|
|
3
|
-
const
|
|
1
|
+
import { openBlock as t, createElementBlock as r, Fragment as a, renderList as u, createBlock as n, unref as p, createVNode as d } from "vue";
|
|
2
|
+
import { _ as s, L as i } from "./index-43e808d7.js";
|
|
3
|
+
const b = { class: "subcategory-group" }, g = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
|
6
6
|
subcategoryGroup: {
|
|
@@ -9,8 +9,8 @@ const g = { class: "subcategory-group" }, y = {
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
setup(o) {
|
|
12
|
-
return (c, _) => (t(), r("div",
|
|
13
|
-
(t(!0), r(a, null, u(o.subcategoryGroup, (e) => (t(), n(
|
|
12
|
+
return (c, _) => (t(), r("div", b, [
|
|
13
|
+
(t(!0), r(a, null, u(o.subcategoryGroup, (e) => (t(), n(p(i), {
|
|
14
14
|
key: e.id,
|
|
15
15
|
modelValue: e.isSelected,
|
|
16
16
|
"onUpdate:modelValue": (l) => e.isSelected = l,
|
|
@@ -18,8 +18,8 @@ const g = { class: "subcategory-group" }, y = {
|
|
|
18
18
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
},
|
|
22
|
-
const m = { class: "filter-subcategories" },
|
|
21
|
+
}, y = /* @__PURE__ */ s(g, [["__scopeId", "data-v-85bc2114"]]);
|
|
22
|
+
const m = { class: "filter-subcategories" }, f = {
|
|
23
23
|
__name: "FilterSubcategories",
|
|
24
24
|
props: {
|
|
25
25
|
subcategoryGroups: {
|
|
@@ -33,11 +33,11 @@ const m = { class: "filter-subcategories" }, b = {
|
|
|
33
33
|
key: e.id,
|
|
34
34
|
class: "filter-subcategories__group"
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
d(y, { subcategoryGroup: e }, null, 8, ["subcategoryGroup"])
|
|
37
37
|
]))), 128))
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}, S = /* @__PURE__ */ s(
|
|
40
|
+
}, S = /* @__PURE__ */ s(f, [["__scopeId", "data-v-74a77bab"]]);
|
|
41
41
|
export {
|
|
42
42
|
S as default
|
|
43
43
|
};
|
package/dist/gsc-filters.js
CHANGED