@yuneta/gobj-ui 7.2.0 → 7.2.2

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 = 120;
16819
16820
  }
16820
16821
  for (let i = 0; i < desc.cols.length; i++) {
16821
16822
  let col = desc.cols[i];
@@ -18883,8 +18884,8 @@ function make_toolbar(gobj) {
18883
18884
  ], [
18884
18885
  "div",
18885
18886
  {
18886
- class: "GRAPH_FIND_RESULT is-hidden is-flex is-align-items-center",
18887
- style: "gap:.3rem; margin-right:.5rem; font-size:.85rem;"
18887
+ class: "GRAPH_FIND_RESULT is-hidden",
18888
+ style: "display:flex; align-items:center; gap:.3rem; margin-right:.5rem; font-size:.85rem;"
18888
18889
  },
18889
18890
  [[
18890
18891
  "span",
@@ -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 = 120;
16814
16815
  }
16815
16816
  for (let i = 0; i < desc.cols.length; i++) {
16816
16817
  let col = desc.cols[i];
@@ -18870,8 +18871,8 @@ function make_toolbar(gobj) {
18870
18871
  ], [
18871
18872
  "div",
18872
18873
  {
18873
- class: "GRAPH_FIND_RESULT is-hidden is-flex is-align-items-center",
18874
- style: "gap:.3rem; margin-right:.5rem; font-size:.85rem;"
18874
+ class: "GRAPH_FIND_RESULT is-hidden",
18875
+ style: "display:flex; align-items:center; gap:.3rem; margin-right:.5rem; font-size:.85rem;"
18875
18876
  },
18876
18877
  [[
18877
18878
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.2.0",
3
+ "version": "7.2.2",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -543,8 +543,15 @@ function make_toolbar(gobj)
543
543
  /* Two spans, not one string: the number is DATA and "matches" is
544
544
  * the word, so a language switch re-translates the half that is a
545
545
  * word. Spaced with CSS because createElement2 trims text nodes. */
546
- ['div', {class: 'GRAPH_FIND_RESULT is-hidden is-flex is-align-items-center',
547
- style: 'gap:.3rem; margin-right:.5rem; font-size:.85rem;'}, [
546
+ /* `display:flex` inline and NOT the `is-flex` helper: both Bulma
547
+ * helpers carry !important, so `is-hidden is-flex` on one element
548
+ * is decided by whichever lands later in the stylesheet — and the
549
+ * count showed with an empty box. An inline rule loses to
550
+ * `is-hidden`'s !important and applies the moment it is removed,
551
+ * which is the toggle this needs. */
552
+ ['div', {class: 'GRAPH_FIND_RESULT is-hidden',
553
+ style: 'display:flex; align-items:center; gap:.3rem; ' +
554
+ 'margin-right:.5rem; font-size:.85rem;'}, [
548
555
  ['span', {class: 'GRAPH_FIND_COUNT'}, ''],
549
556
  ['span', {i18n: 'matches'}, 'matches']
550
557
  ]]
@@ -860,6 +860,15 @@ 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
+ if(colDef.headerFilter && colDef.headerFilter !== "tickCross") {
870
+ colDef.minWidth = 120;
871
+ }
863
872
  }
864
873
 
865
874
  for (let i = 0; i < desc.cols.length; i++) {