@yuneta/gobj-ui 7.23.126 → 7.23.127

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.
@@ -8443,7 +8443,7 @@ function create_tabulator$1(gobj, $extend, name, template) {
8443
8443
  tabulator.on("renderComplete", function() {
8444
8444
  yui_tabulator_name_row_selects(tabulator, i18next.t);
8445
8445
  });
8446
- tabulator.on("tableBuilt", function() {
8446
+ tabulator.on("columnsLoaded", function() {
8447
8447
  yui_tabulator_name_row_selects(tabulator, i18next.t);
8448
8448
  });
8449
8449
  tabulator.on("rowClick", function(e, row) {
@@ -25218,6 +25218,10 @@ function create_tabulator(gobj) {
25218
25218
  tabulator.element.classList.toggle("yui-single-page", single_page);
25219
25219
  tabulator.element.classList.toggle("yui-no-paginator", no_paginator);
25220
25220
  }
25221
+ tabulator.on("columnsLoaded", function() {
25222
+ yui_tabulator_name_filters(tabulator, i18next.t);
25223
+ yui_tabulator_name_row_selects(tabulator, i18next.t);
25224
+ });
25221
25225
  tabulator._ready = false;
25222
25226
  tabulator.on("tableBuilt", function() {
25223
25227
  yui_tabulator_name_filters(tabulator, i18next.t);
@@ -8438,7 +8438,7 @@ function create_tabulator$1(gobj, $extend, name, template) {
8438
8438
  tabulator.on("renderComplete", function() {
8439
8439
  yui_tabulator_name_row_selects(tabulator, t);
8440
8440
  });
8441
- tabulator.on("tableBuilt", function() {
8441
+ tabulator.on("columnsLoaded", function() {
8442
8442
  yui_tabulator_name_row_selects(tabulator, t);
8443
8443
  });
8444
8444
  tabulator.on("rowClick", function(e, row) {
@@ -25213,6 +25213,10 @@ function create_tabulator(gobj) {
25213
25213
  tabulator.element.classList.toggle("yui-single-page", single_page);
25214
25214
  tabulator.element.classList.toggle("yui-no-paginator", no_paginator);
25215
25215
  }
25216
+ tabulator.on("columnsLoaded", function() {
25217
+ yui_tabulator_name_filters(tabulator, t);
25218
+ yui_tabulator_name_row_selects(tabulator, t);
25219
+ });
25216
25220
  tabulator._ready = false;
25217
25221
  tabulator.on("tableBuilt", function() {
25218
25222
  yui_tabulator_name_filters(tabulator, t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.126",
3
+ "version": "7.23.127",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/c_yui_form.js CHANGED
@@ -1842,9 +1842,11 @@ function create_tabulator(gobj, $extend, name, template)
1842
1842
  tabulator.on("renderComplete", function() {
1843
1843
  yui_tabulator_name_row_selects(tabulator, t);
1844
1844
  });
1845
- /* And at build: an EMPTY table renders no body, so `renderComplete`
1846
- * never fires and the header's own box would keep its English name. */
1847
- tabulator.on("tableBuilt", function() {
1845
+ /* And on every rebuild of the COLUMNS: an empty table renders no
1846
+ * body, so `renderComplete` never fires and the header's own box
1847
+ * would keep its English name -- and a `setColumns()` rebuilds the
1848
+ * header, throwing away whatever name was on it. */
1849
+ tabulator.on("columnsLoaded", function() {
1848
1850
  yui_tabulator_name_row_selects(tabulator, t);
1849
1851
  });
1850
1852
  tabulator.on("rowClick", function(e, row) {
@@ -1652,6 +1652,16 @@ function create_tabulator(gobj)
1652
1652
  tabulator.element.classList.toggle("yui-no-paginator", no_paginator);
1653
1653
  }
1654
1654
 
1655
+ /* `columnsLoaded` and not only `tableBuilt`: EVERY rebuild of the
1656
+ * columns rebuilds the header, and the header carries two things
1657
+ * Tabulator draws without a name -- the per-column filter box and the
1658
+ * select-all checkbox. A language change runs `setColumns()`, so the
1659
+ * names put on at build were thrown away with the old header and the
1660
+ * boxes came back in English. This event fires on both paths. */
1661
+ tabulator.on("columnsLoaded", function() {
1662
+ yui_tabulator_name_filters(tabulator, t);
1663
+ yui_tabulator_name_row_selects(tabulator, t);
1664
+ });
1655
1665
  tabulator._ready = false;
1656
1666
  tabulator.on("tableBuilt", function() {
1657
1667
  /* Tabulator gives its header-filter boxes no name of any kind: