@golstats/gsc-reports 1.0.61 → 1.0.62

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.
@@ -112337,11 +112337,11 @@ const _N = {
112337
112337
  },
112338
112338
  setup(r) {
112339
112339
  const a = r, m = jv(
112340
- () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-DWRGe3W8-C2zMmKQT.js")
112340
+ () => import("./FilterSubcategories-a9b32cc9-_h5FCZ4r-DJCYBkHX-lcddRo59.js")
112341
112341
  ), D = jv(
112342
- () => import("./FilterConditions-55d68355-DMqzcKBO-D5u3nF4R-BQ5FVxGX.js")
112342
+ () => import("./FilterConditions-55d68355-DMqzcKBO-CsT1pZ-G-B0DBczOX.js")
112343
112343
  ), J = jv(
112344
- () => import("./FilterField-59a73e38-CNaE03Ge-Daxwu2Mf-yoqeFBA_.js")
112344
+ () => import("./FilterField-59a73e38-CNaE03Ge-BY9XPMOm-D7Sqs3WR.js")
112345
112345
  ), M = [
112346
112346
  {
112347
112347
  name: "Sub categorías",
@@ -141314,7 +141314,7 @@ class Rf {
141314
141314
  if (console.log("gamesToShow", n), n && n.length > 0) {
141315
141315
  let i = 0;
141316
141316
  for (const d of n)
141317
- if (!this.childViews.find((s) => s.view.componentProps.gameNumber !== d)) {
141317
+ if (!this.childViews.find((s) => s.view.componentProps.gameNumber === d)) {
141318
141318
  i = d;
141319
141319
  break;
141320
141320
  }
@@ -141827,17 +141827,23 @@ class Rf {
141827
141827
  console.log(`GSCLineupsReports - updating specific filters for component ${m}`), this.setDynamicFilters(a, m);
141828
141828
  const J = this.childViews.find((M) => M.view.id === m);
141829
141829
  J && this.updateGSCLineupsReports(J, a);
141830
- } else
141831
- console.log("GSCLineupsReports - updating all components with global filters"), Array.isArray(D) && D.length > 0 && this.childViews.reduce((J, M) => (D.includes(M.view.componentProps.gameNumber) || J.push(M.view.componentProps.gameNumber), J), []).forEach((J) => {
141832
- const M = this.childViews.findIndex((x) => x.view.componentProps.gameNumber === J);
141833
- if (M !== -1) {
141834
- for (let x = M; x < this.childViews.length; x++) {
141835
- const t = this.childViews[x + 1], g = this.childViews[x];
141836
- t && (g.view.componentProps.gameNumber = t.view.componentProps.gameNumber, g.view.filterMultiple = { gameNumber: t.view.componentProps.gameNumber });
141837
- }
141838
- this.removeChildView(this.childViews[this.childViews.length - 1]);
141839
- }
141840
- }), this.childViews.forEach((J) => {
141830
+ } else {
141831
+ if (console.log("GSCLineupsReports - updating all components with global filters"), Array.isArray(D))
141832
+ if (D.length === 0)
141833
+ for (console.log("GSCLineupsReports - no games selected, removing all components"); this.childViews.length > 0; )
141834
+ this.removeChildView(this.childViews[0]);
141835
+ else
141836
+ this.childViews.reduce((J, M) => (D.includes(M.view.componentProps.gameNumber) || J.push(M.view.componentProps.gameNumber), J), []).forEach((J) => {
141837
+ const M = this.childViews.findIndex((x) => x.view.componentProps.gameNumber === J);
141838
+ if (M !== -1) {
141839
+ for (let x = M; x < this.childViews.length; x++) {
141840
+ const t = this.childViews[x + 1], g = this.childViews[x];
141841
+ t && (g.view.componentProps.gameNumber = t.view.componentProps.gameNumber, g.view.filterMultiple = { gameNumber: t.view.componentProps.gameNumber });
141842
+ }
141843
+ this.removeChildView(this.childViews[this.childViews.length - 1]);
141844
+ }
141845
+ });
141846
+ this.childViews.forEach((J) => {
141841
141847
  J.view.componentProps && (J.view.componentProps._isReactive || (J.view.componentProps = oc(J.view.componentProps), J.view.componentProps._isReactive = !0), Fi.emit("component-props-updated", {
141842
141848
  viewId: J.view.id,
141843
141849
  componentProps: J.view.componentProps,
@@ -141848,6 +141854,7 @@ class Rf {
141848
141854
  dynamicFilters: a
141849
141855
  }));
141850
141856
  });
141857
+ }
141851
141858
  }
141852
141859
  if (this.viewId === 3) {
141853
141860
  if (console.log("GSCMatchSummary updateDynamicFilters:", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@golstats/gsc-checkbox": "^1.0.13",
50
- "@golstats/gsc-template-report-maker": "^1.0.89",
50
+ "@golstats/gsc-template-report-maker": "^1.0.90",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",