@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.
@@ -1900,7 +1900,7 @@ class WebsyDropdown {
1900
1900
  }
1901
1901
  }
1902
1902
  }
1903
- open (event, override = false) {
1903
+ open (event, override = false) {
1904
1904
  const maskEl = document.getElementById(`${this.elementId}_mask`)
1905
1905
  const contentEl = document.getElementById(`${this.elementId}_content`)
1906
1906
  const headerEl = document.getElementById(`${this.elementId}_header`)
@@ -6736,11 +6736,11 @@ class WebsyTable3 {
6736
6736
  headerHtml += '</colgroup>'
6737
6737
  }
6738
6738
  this.options.columns.forEach((row, rowIndex) => {
6739
- if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
6740
- // if we're calculating the size we only want to render the last row of column headers
6741
- return
6742
- }
6743
- headerHtml += `<tr class="websy-table-row websy-table-header-row">`
6739
+ // if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
6740
+ // // if we're calculating the size we only want to render the last row of column headers
6741
+ // return
6742
+ // }
6743
+ headerHtml += `<tr class="websy-table-row websy-table-header-row ${rowIndex !== this.options.columns.length - 1 ? 'websy-table-parent-header' : ''}">`
6744
6744
  row.filter(c => c.show !== false).forEach((col, colIndex) => {
6745
6745
  if (typeof sizingColumns[colIndex] === 'undefined' || sizingColumns[colIndex].show === false) {
6746
6746
  return // need to revisit this logic
@@ -6868,7 +6868,7 @@ class WebsyTable3 {
6868
6868
  let footerEl = document.getElementById(`${this.elementId}_tableFooter`)
6869
6869
  footerEl.innerHTML = this.buildTotalHtml()
6870
6870
  this.sizes.total = footerEl.getBoundingClientRect()
6871
- const rows = Array.from(tableEl.querySelectorAll('.websy-table-row'))
6871
+ const rows = Array.from(tableEl.querySelectorAll('.websy-table-row:not(.websy-table-parent-header)'))
6872
6872
  let totalWidth = 0
6873
6873
  this.sizes.scrollableWidth = this.sizes.table.width
6874
6874
  let firstNonPinnedColumnWidth = 0
@@ -6429,11 +6429,11 @@ var WebsyTable3 = /*#__PURE__*/function () {
6429
6429
  headerHtml += '</colgroup>';
6430
6430
  }
6431
6431
  this.options.columns.forEach(function (row, rowIndex) {
6432
- if (useWidths === false && rowIndex !== _this43.options.columns.length - 1) {
6433
- // if we're calculating the size we only want to render the last row of column headers
6434
- return;
6435
- }
6436
- headerHtml += "<tr class=\"websy-table-row websy-table-header-row\">";
6432
+ // if (useWidths === false && rowIndex !== this.options.columns.length - 1) {
6433
+ // // if we're calculating the size we only want to render the last row of column headers
6434
+ // return
6435
+ // }
6436
+ headerHtml += "<tr class=\"websy-table-row websy-table-header-row ".concat(rowIndex !== _this43.options.columns.length - 1 ? 'websy-table-parent-header' : '', "\">");
6437
6437
  row.filter(function (c) {
6438
6438
  return c.show !== false;
6439
6439
  }).forEach(function (col, colIndex) {
@@ -6553,7 +6553,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
6553
6553
  var footerEl = document.getElementById("".concat(this.elementId, "_tableFooter"));
6554
6554
  footerEl.innerHTML = this.buildTotalHtml();
6555
6555
  this.sizes.total = footerEl.getBoundingClientRect();
6556
- var rows = Array.from(tableEl.querySelectorAll('.websy-table-row'));
6556
+ var rows = Array.from(tableEl.querySelectorAll('.websy-table-row:not(.websy-table-parent-header)'));
6557
6557
  var totalWidth = 0;
6558
6558
  this.sizes.scrollableWidth = this.sizes.table.width;
6559
6559
  var firstNonPinnedColumnWidth = 0;