@websy/websy-designs 1.10.2 → 1.10.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.
@@ -1826,7 +1826,7 @@ class WebsyDropdown {
1826
1826
  }
1827
1827
  }
1828
1828
  }
1829
- open (event, override = false) {
1829
+ open (event, override = false) {
1830
1830
  const maskEl = document.getElementById(`${this.elementId}_mask`)
1831
1831
  const contentEl = document.getElementById(`${this.elementId}_content`)
1832
1832
  const headerEl = document.getElementById(`${this.elementId}_header`)
@@ -7157,11 +7157,11 @@ class WebsyTable3 {
7157
7157
  headerHtml += '</colgroup>'
7158
7158
  }
7159
7159
  this.options.columns.forEach((row, rowIndex) => {
7160
- if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
7161
- // if we're calculating the size we only want to render the last row of column headers
7162
- return
7163
- }
7164
- headerHtml += `<tr class="websy-table-row websy-table-header-row">`
7160
+ // if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
7161
+ // // if we're calculating the size we only want to render the last row of column headers
7162
+ // return
7163
+ // }
7164
+ headerHtml += `<tr class="websy-table-row websy-table-header-row ${rowIndex !== this.options.columns.length - 1 ? 'websy-table-parent-header' : ''}">`
7165
7165
  row.filter(c => c.show !== false).forEach((col, colIndex) => {
7166
7166
  if (typeof sizingColumns[colIndex] === 'undefined' || sizingColumns[colIndex].show === false) {
7167
7167
  return // need to revisit this logic
@@ -7289,7 +7289,7 @@ class WebsyTable3 {
7289
7289
  let footerEl = document.getElementById(`${this.elementId}_tableFooter`)
7290
7290
  footerEl.innerHTML = this.buildTotalHtml()
7291
7291
  this.sizes.total = footerEl.getBoundingClientRect()
7292
- const rows = Array.from(tableEl.querySelectorAll('.websy-table-row'))
7292
+ const rows = Array.from(tableEl.querySelectorAll('.websy-table-row:not(.websy-table-parent-header)'))
7293
7293
  let totalWidth = 0
7294
7294
  this.sizes.scrollableWidth = this.sizes.table.width
7295
7295
  let firstNonPinnedColumnWidth = 0
@@ -6823,11 +6823,11 @@ var WebsyTable3 = /*#__PURE__*/function () {
6823
6823
  headerHtml += '</colgroup>';
6824
6824
  }
6825
6825
  this.options.columns.forEach(function (row, rowIndex) {
6826
- if (useWidths === false && rowIndex !== _this46.options.columns.length - 1) {
6827
- // if we're calculating the size we only want to render the last row of column headers
6828
- return;
6829
- }
6830
- headerHtml += "<tr class=\"websy-table-row websy-table-header-row\">";
6826
+ // if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
6827
+ // // if we're calculating the size we only want to render the last row of column headers
6828
+ // return
6829
+ // }
6830
+ headerHtml += "<tr class=\"websy-table-row websy-table-header-row ".concat(rowIndex !== _this46.options.columns.length - 1 ? 'websy-table-parent-header' : '', "\">");
6831
6831
  row.filter(function (c) {
6832
6832
  return c.show !== false;
6833
6833
  }).forEach(function (col, colIndex) {
@@ -6947,7 +6947,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
6947
6947
  var footerEl = document.getElementById("".concat(this.elementId, "_tableFooter"));
6948
6948
  footerEl.innerHTML = this.buildTotalHtml();
6949
6949
  this.sizes.total = footerEl.getBoundingClientRect();
6950
- var rows = Array.from(tableEl.querySelectorAll('.websy-table-row'));
6950
+ var rows = Array.from(tableEl.querySelectorAll('.websy-table-row:not(.websy-table-parent-header)'));
6951
6951
  var totalWidth = 0;
6952
6952
  this.sizes.scrollableWidth = this.sizes.table.width;
6953
6953
  var firstNonPinnedColumnWidth = 0;