@golstats/gsc-filters 1.0.15 → 1.0.17
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-43eb877d.js → FilterConditions-8c2460aa.js} +21 -20
- package/dist/FilterField-1d164f79.js +21 -0
- package/dist/{FilterSubcategories-97f66d22.js → FilterSubcategories-7e385bf6.js} +9 -9
- package/dist/gsc-filters.js +2 -2
- package/dist/gsc-filters.umd.cjs +5 -5
- package/dist/{index-44cfccb3.js → index-ac11863b.js} +2823 -2786
- package/dist/style.css +1 -1
- package/package.json +48 -48
- package/dist/FilterField-a6d2c399.js +0 -21
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 c, 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 v, toDisplayString as b, pushScopeId as H, popScopeId as T } from "vue";
|
|
2
|
+
import { _ as V, L as g } from "./index-ac11863b.js";
|
|
3
|
+
const r = (d) => (H("data-v-80d9c265"), d = d(), T(), d), R = { class: "details__header" }, F = /* @__PURE__ */ r(() => /* @__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__ */ r(() => /* @__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__ */ r(() => /* @__PURE__ */ l("div", { class: "details__body__title" }, "1er tiempo", -1)), D = { class: "details__body__game-section" }, J = ["onClick"], j = { class: "details__body" }, q = /* @__PURE__ */ r(() => /* @__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,23 +89,24 @@ const c = (d) => (H("data-v-893b389d"), d = d(), T(), d), R = { class: "details_
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
setup(d) {
|
|
92
|
+
const o = d;
|
|
92
93
|
$((e) => ({
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
94
|
+
"49cba245": d.buttonsBackgroundColor,
|
|
95
|
+
"52f02da6": d.buttonsTextColor,
|
|
96
|
+
"7d3f686a": d.buttonsBorderWidth,
|
|
97
|
+
"7c286a07": d.buttonsBorderColor,
|
|
98
|
+
"24a6f4aa": d.buttonsBackgroundColorActive,
|
|
99
|
+
cd8d7768: d.buttonsTextColorActive,
|
|
100
|
+
"35fa5c10": d.buttonsBorderWidthActive,
|
|
101
|
+
"0cde1826": d.buttonsBorderColorActive
|
|
101
102
|
}));
|
|
102
|
-
const
|
|
103
|
+
const m = c(() => o.playingAs.every((e) => e.isSelected)), C = c(() => o.gameSections.every((e) => e.isSelected)), f = c(() => o.gameSections.reduce(
|
|
103
104
|
(e, t) => (t.value <= 3 ? e.firstHalf.push(t) : e.secondHalf.push(t), e),
|
|
104
105
|
{
|
|
105
106
|
firstHalf: [],
|
|
106
107
|
secondHalf: []
|
|
107
108
|
}
|
|
108
|
-
)), x =
|
|
109
|
+
)), x = c(() => ({
|
|
109
110
|
"--border-radius-first-button": `${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,
|
|
110
111
|
"--border-radius-last-button": `0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`
|
|
111
112
|
}));
|
|
@@ -147,9 +148,9 @@ const c = (d) => (H("data-v-893b389d"), d = d(), T(), d), R = { class: "details_
|
|
|
147
148
|
l("div", G, [
|
|
148
149
|
(i(!0), a(u, null, _(o.playingAs, (s, n) => (i(), a("div", {
|
|
149
150
|
key: `pa${n}`,
|
|
150
|
-
class:
|
|
151
|
+
class: v(["details__body__button", { active: s.isSelected }]),
|
|
151
152
|
onClick: (h) => B(s)
|
|
152
|
-
},
|
|
153
|
+
}, b(s.name), 11, L))), 128))
|
|
153
154
|
])
|
|
154
155
|
]),
|
|
155
156
|
l("div", P, [
|
|
@@ -167,9 +168,9 @@ const c = (d) => (H("data-v-893b389d"), d = d(), T(), d), R = { class: "details_
|
|
|
167
168
|
l("div", D, [
|
|
168
169
|
(i(!0), a(u, null, _(f.value.firstHalf, (s, n) => (i(), a("div", {
|
|
169
170
|
key: `pa${n}`,
|
|
170
|
-
class:
|
|
171
|
+
class: v(["details__body__button", { active: s.isSelected }]),
|
|
171
172
|
onClick: (h) => S(s)
|
|
172
|
-
},
|
|
173
|
+
}, b(s.text), 11, J))), 128))
|
|
173
174
|
])
|
|
174
175
|
]),
|
|
175
176
|
l("div", j, [
|
|
@@ -177,14 +178,14 @@ const c = (d) => (H("data-v-893b389d"), d = d(), T(), d), R = { class: "details_
|
|
|
177
178
|
l("div", K, [
|
|
178
179
|
(i(!0), a(u, null, _(f.value.secondHalf, (s, n) => (i(), a("div", {
|
|
179
180
|
key: `pa${n}`,
|
|
180
|
-
class:
|
|
181
|
+
class: v(["details__body__button", { active: s.isSelected }]),
|
|
181
182
|
onClick: (h) => S(s)
|
|
182
|
-
},
|
|
183
|
+
}, b(s.text), 11, M))), 128))
|
|
183
184
|
])
|
|
184
185
|
])
|
|
185
186
|
], 4));
|
|
186
187
|
}
|
|
187
|
-
}, Y = /* @__PURE__ */ V(O, [["__scopeId", "data-v-
|
|
188
|
+
}, Y = /* @__PURE__ */ V(O, [["__scopeId", "data-v-80d9c265"]]);
|
|
188
189
|
export {
|
|
189
190
|
Y as default
|
|
190
191
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ref as r, openBlock as a, createElementBlock as _, createVNode as c, unref as n } from "vue";
|
|
2
|
+
import { _ as s, a as d } from "./index-ac11863b.js";
|
|
3
|
+
const i = { class: "filter-field" }, u = {
|
|
4
|
+
__name: "FilterField",
|
|
5
|
+
setup(p) {
|
|
6
|
+
const t = r(Array.from({ length: 16 }, (l, e) => e + 1));
|
|
7
|
+
function o() {
|
|
8
|
+
}
|
|
9
|
+
return (l, e) => (a(), _("div", i, [
|
|
10
|
+
c(n(d), {
|
|
11
|
+
width: "100%",
|
|
12
|
+
"background-color": "#2E3B46",
|
|
13
|
+
value: t.value,
|
|
14
|
+
"onUpdate:modelValue": o
|
|
15
|
+
}, null, 8, ["value"])
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
}, v = /* @__PURE__ */ s(u, [["__scopeId", "data-v-8103c3e1"]]);
|
|
19
|
+
export {
|
|
20
|
+
v as default
|
|
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 d, createVNode as p } from "vue";
|
|
2
|
+
import { _ as s, L as i } from "./index-ac11863b.js";
|
|
3
|
+
const g = { class: "subcategory-group" }, y = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
|
6
6
|
subcategoryGroup: {
|
|
@@ -9,8 +9,8 @@ const b = { class: "subcategory-group" }, g = {
|
|
|
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", g, [
|
|
13
|
+
(t(!0), r(a, null, u(o.subcategoryGroup, (e) => (t(), n(d(i), {
|
|
14
14
|
key: e.id,
|
|
15
15
|
modelValue: e.isSelected,
|
|
16
16
|
"onUpdate:modelValue": (l) => e.isSelected = l,
|
|
@@ -18,8 +18,8 @@ const b = { class: "subcategory-group" }, g = {
|
|
|
18
18
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
},
|
|
22
|
-
const m = { class: "filter-subcategories" },
|
|
21
|
+
}, f = /* @__PURE__ */ s(y, [["__scopeId", "data-v-ae6f3d72"]]);
|
|
22
|
+
const m = { class: "filter-subcategories" }, b = {
|
|
23
23
|
__name: "FilterSubcategories",
|
|
24
24
|
props: {
|
|
25
25
|
subcategoryGroups: {
|
|
@@ -33,11 +33,11 @@ const m = { class: "filter-subcategories" }, f = {
|
|
|
33
33
|
key: e.id,
|
|
34
34
|
class: "filter-subcategories__group"
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
p(f, { subcategoryGroup: e }, null, 8, ["subcategoryGroup"])
|
|
37
37
|
]))), 128))
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}, S = /* @__PURE__ */ s(
|
|
40
|
+
}, S = /* @__PURE__ */ s(b, [["__scopeId", "data-v-5edaefc2"]]);
|
|
41
41
|
export {
|
|
42
42
|
S as default
|
|
43
43
|
};
|
package/dist/gsc-filters.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as
|
|
1
|
+
import { G as a, d as r, f as i, g as l, p, b as F, c as o, e as y, t as n, u } from "./index-ac11863b.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
a as GSCFilters,
|
|
5
5
|
r as detailsFilters,
|
|
6
6
|
i as filtersTypes,
|
|
7
7
|
l as golstatsFilters,
|