@golstats/gsc-top-player 1.0.10 → 1.0.11

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.
@@ -4658,6 +4658,9 @@ const cf = {
4658
4658
  ]
4659
4659
  }),
4660
4660
  methods: {
4661
+ getButtonFontSize() {
4662
+ return this.elementSize.width > 500 ? "14px" : this.elementSize.width > 400 ? "13px" : this.elementSize.width > 300 ? "12px" : this.elementSize.width > 200 ? "11px" : "10px";
4663
+ },
4661
4664
  changeStateLoading(e) {
4662
4665
  this.isloading = e;
4663
4666
  },
@@ -4974,9 +4977,9 @@ const cf = {
4974
4977
  }
4975
4978
  }, Is = () => {
4976
4979
  H((e) => ({
4977
- "65029b3c": e.borderRadius,
4978
- "249481dc": e.borderWidth,
4979
- "237d8379": e.borderColor
4980
+ "7100dada": e.borderRadius,
4981
+ "6bbe5304": e.borderWidth,
4982
+ "6dec4fca": e.borderColor
4980
4983
  }));
4981
4984
  }, Ns = jt.setup;
4982
4985
  jt.setup = Ns ? (e, s) => (Is(), Ns(e, s)) : Is;
@@ -5030,11 +5033,11 @@ function _f(e, s, t, i, n, a) {
5030
5033
  },
5031
5034
  "category-name": t.categoryName,
5032
5035
  buttonMaxWidth: t.typeTable != 0 ? i.elementSize.width > 360 ? "210px" : "130px" : i.elementSize.width > 360 ? "180px" : "110px",
5033
- buttonFontSize: "12px",
5036
+ buttonFontSize: a.getButtonFontSize(),
5034
5037
  iconSize: "11px",
5035
5038
  onExpand: a.clickexpand,
5036
5039
  onMore: a.morestats
5037
- }, null, 8, ["type", "type-data", "game", "arrow", "team-widget", "can-play-videos", "is-expanded", "data", "category-name", "buttonMaxWidth", "onExpand", "onMore"])) : (m(), M(d, {
5040
+ }, null, 8, ["type", "type-data", "game", "arrow", "team-widget", "can-play-videos", "is-expanded", "data", "category-name", "buttonMaxWidth", "buttonFontSize", "onExpand", "onMore"])) : (m(), M(d, {
5038
5041
  key: 1,
5039
5042
  "type-data": t.typeData,
5040
5043
  "team-widget": t.teamWidget,
@@ -5221,7 +5224,7 @@ function _f(e, s, t, i, n, a) {
5221
5224
  ], 512)
5222
5225
  ], 2);
5223
5226
  }
5224
- const bf = /* @__PURE__ */ oe(jt, [["render", _f], ["__scopeId", "data-v-b71b918b"]]), xe = {
5227
+ const bf = /* @__PURE__ */ oe(jt, [["render", _f], ["__scopeId", "data-v-7a16c18a"]]), xe = {
5225
5228
  YEAR: 2,
5226
5229
  AGE_RANGE: 3,
5227
5230
  NATIONALITY: 4,
@@ -8891,11 +8894,11 @@ const xy = {
8891
8894
  },
8892
8895
  setup(e) {
8893
8896
  const s = e, t = ft(
8894
- () => import("./FilterSubcategories-a9b32cc9-BjvvEE_X.js")
8897
+ () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r.js")
8895
8898
  ), i = ft(
8896
- () => import("./FilterConditions-55d68355-zHMe0Dyg.js")
8899
+ () => import("./FilterConditions-55d68355-DMqzcKBO.js")
8897
8900
  ), n = ft(
8898
- () => import("./FilterField-59a73e38-DtNZKbqt.js")
8901
+ () => import("./FilterField-59a73e38-CNaE03Ge.js")
8899
8902
  ), a = [
8900
8903
  {
8901
8904
  name: "Sub categorías",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-top-player",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "dist/gsc-top-player.umd.js",
5
5
  "module": "dist/gsc-top-player.es.js",
6
6
  "exports": {
@@ -55,7 +55,7 @@
55
55
  ? '180px'
56
56
  : '110px'
57
57
  "
58
- buttonFontSize="12px"
58
+ :buttonFontSize="getButtonFontSize()"
59
59
  iconSize="11px"
60
60
  @expand="clickexpand"
61
61
  @more="morestats"
@@ -766,6 +766,20 @@ export default {
766
766
  ],
767
767
  }),
768
768
  methods: {
769
+ getButtonFontSize() {
770
+ // Ajustar el tamaño de la fuente según el ancho del componente
771
+ if (this.elementSize.width > 500) {
772
+ return '14px'
773
+ } else if (this.elementSize.width > 400) {
774
+ return '13px'
775
+ } else if (this.elementSize.width > 300) {
776
+ return '12px'
777
+ } else if (this.elementSize.width > 200) {
778
+ return '11px'
779
+ } else {
780
+ return '10px'
781
+ }
782
+ },
769
783
  changeStateLoading(value) {
770
784
  this.isloading = value
771
785
  },