@yuneta/gobj-ui 7.2.1 → 7.2.3

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,6 +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 = 150;
16819
16820
  }
16820
16821
  for (let i = 0; i < desc.cols.length; i++) {
16821
16822
  let col = desc.cols[i];
@@ -16811,6 +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 = 150;
16814
16815
  }
16815
16816
  for (let i = 0; i < desc.cols.length; i++) {
16816
16817
  let col = desc.cols[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.2.1",
3
+ "version": "7.2.3",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -860,6 +860,22 @@ function create_tabulator(gobj)
860
860
  }
861
861
  break;
862
862
  }
863
+
864
+ /* A column carrying a text box needs room for the box. The table
865
+ * lays out `fitDataFill`, which sizes a column to its DATA: a
866
+ * `Role` column holding "root" came out narrower than its own
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.
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. */
876
+ if(colDef.headerFilter && colDef.headerFilter !== "tickCross") {
877
+ colDef.minWidth = 150;
878
+ }
863
879
  }
864
880
 
865
881
  for (let i = 0; i < desc.cols.length; i++) {