@yuneta/gobj-ui 7.2.2 → 7.2.4

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.
@@ -16816,7 +16816,7 @@ function create_tabulator(gobj) {
16816
16816
  break;
16817
16817
  default: if (FILTERABLE.includes(field_desc.type)) colDef.headerFilter = "input";
16818
16818
  }
16819
- if (colDef.headerFilter && colDef.headerFilter !== "tickCross") colDef.minWidth = 120;
16819
+ if (colDef.headerFilter && colDef.headerFilter !== "tickCross") colDef.minWidth = 150;
16820
16820
  }
16821
16821
  for (let i = 0; i < desc.cols.length; i++) {
16822
16822
  let col = desc.cols[i];
@@ -16984,6 +16984,7 @@ function create_tabulator(gobj) {
16984
16984
  });
16985
16985
  tabulator.on("dataProcessed", update_rowcount);
16986
16986
  tabulator.on("dataChanged", update_rowcount);
16987
+ tabulator.on("dataFiltered", update_rowcount);
16987
16988
  tabulator.on("rowSelected", function(row) {
16988
16989
  (0, _yuneta_gobj_js.gobj_send_event)(gobj, "EV_SELECT_ROWS", { rows: [row.getData()] }, gobj);
16989
16990
  });
@@ -16811,7 +16811,7 @@ function create_tabulator(gobj) {
16811
16811
  break;
16812
16812
  default: if (FILTERABLE.includes(field_desc.type)) colDef.headerFilter = "input";
16813
16813
  }
16814
- if (colDef.headerFilter && colDef.headerFilter !== "tickCross") colDef.minWidth = 120;
16814
+ if (colDef.headerFilter && colDef.headerFilter !== "tickCross") colDef.minWidth = 150;
16815
16815
  }
16816
16816
  for (let i = 0; i < desc.cols.length; i++) {
16817
16817
  let col = desc.cols[i];
@@ -16979,6 +16979,7 @@ function create_tabulator(gobj) {
16979
16979
  });
16980
16980
  tabulator.on("dataProcessed", update_rowcount);
16981
16981
  tabulator.on("dataChanged", update_rowcount);
16982
+ tabulator.on("dataFiltered", update_rowcount);
16982
16983
  tabulator.on("rowSelected", function(row) {
16983
16984
  gobj_send_event(gobj, "EV_SELECT_ROWS", { rows: [row.getData()] }, gobj);
16984
16985
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.2.2",
3
+ "version": "7.2.4",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -865,9 +865,16 @@ function create_tabulator(gobj)
865
865
  * lays out `fitDataFill`, which sizes a column to its DATA: a
866
866
  * `Role` column holding "root" came out narrower than its own
867
867
  * filter, whose placeholder was cut to "filtrar c". The tick of a
868
- * boolean is not a box and stays as narrow as it wants. */
868
+ * boolean is not a box and stays as narrow as it wants.
869
+ *
870
+ * 150 and not a rounder number: it is what the placeholder needs
871
+ * in the LONGEST locale ("filtrar columna...", ~18 characters).
872
+ * The placeholder cannot be shortened per column — it comes from
873
+ * the shared Tabulator locale, which is exactly what re-renders it
874
+ * on a language switch; a per-column one would freeze in the
875
+ * language it was built in. */
869
876
  if(colDef.headerFilter && colDef.headerFilter !== "tickCross") {
870
- colDef.minWidth = 120;
877
+ colDef.minWidth = 150;
871
878
  }
872
879
  }
873
880
 
@@ -1108,10 +1115,15 @@ function create_tabulator(gobj)
1108
1115
  delete tabulator._pendingData;
1109
1116
  }
1110
1117
  });
1111
- /* dataProcessed: after load/filter/sort. dataChanged: rows
1112
- * added/removed/edited. Both keep the count truthful. */
1118
+ /* dataProcessed: after load/sort. dataChanged: rows added/removed/
1119
+ * edited. dataFiltered: after a filter runs — and that one is the
1120
+ * reason the footer used to LIE. It read "5 Filas" over four visible
1121
+ * rows, because filtering fires its own event and neither of the other
1122
+ * two. Nobody had noticed while the only filter was the global search
1123
+ * box; a filter per column made it a claim you read on every keystroke. */
1113
1124
  tabulator.on("dataProcessed", update_rowcount);
1114
1125
  tabulator.on("dataChanged", update_rowcount);
1126
+ tabulator.on("dataFiltered", update_rowcount);
1115
1127
  tabulator.on("rowSelected", function(row) {
1116
1128
  gobj_send_event(gobj, "EV_SELECT_ROWS", {rows: [row.getData()]}, gobj);
1117
1129
  });