@websy/websy-designs 1.8.1 → 1.8.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.
@@ -238,7 +238,7 @@ class ButtonGroup {
238
238
  let activeClass = ''
239
239
  if (this.options.activeItem !== -1) {
240
240
  activeClass = i === this.options.activeItem ? 'active' : 'inactive'
241
- }
241
+ }
242
242
  return `
243
243
  <${this.options.tag} ${(t.attributes || []).join(' ')} data-id="${t.id || t.label}" data-index="${i}" class="websy-button-group-item ${(t.classes || []).join(' ')} ${this.options.style}-style ${activeClass}">${t.label}</${this.options.tag}>
244
244
  `
@@ -1511,7 +1511,9 @@ class WebsyDropdown {
1511
1511
  `
1512
1512
  el.innerHTML = html
1513
1513
  const scrollEl = document.getElementById(`${this.elementId}_itemsContainer`)
1514
- scrollEl.addEventListener('scroll', this.handleScroll.bind(this))
1514
+ if (scrollEl) {
1515
+ scrollEl.addEventListener('scroll', this.handleScroll.bind(this))
1516
+ }
1515
1517
  this.render()
1516
1518
  }
1517
1519
  else {
@@ -6607,7 +6609,7 @@ class WebsyTable3 {
6607
6609
  bodyHtml += `<td
6608
6610
  class='websy-table-cell ${sizeIndex < this.pinnedColumns ? 'pinned' : 'unpinned'} ${(cell.classes || []).join(' ')} ${(sizingColumns[sizeIndex].classes || []).join(' ')}'
6609
6611
  style='${style}'
6610
- data-info='${cell.value}'
6612
+ data-info='${cell.value.replace(/'/g, '`')}'
6611
6613
  colspan='${cell.colspan || 1}'
6612
6614
  rowspan='${cell.rowspan || 1}'
6613
6615
  data-row-index='${rowIndex}'
@@ -6829,6 +6831,9 @@ class WebsyTable3 {
6829
6831
  columnsForSizing[colIndex].actualWidth = 0
6830
6832
  }
6831
6833
  columnsForSizing[colIndex].actualWidth = Math.min(Math.max(columnsForSizing[colIndex].actualWidth, colSize.width), maxWidth)
6834
+ // if (columnsForSizing[colIndex].width) {
6835
+ // columnsForSizing[colIndex].actualWidth = columnsForSizing[colIndex].width
6836
+ // }
6832
6837
  columnsForSizing[colIndex].cellHeight = colSize.height
6833
6838
  if (colIndex >= this.pinnedColumns) {
6834
6839
  firstNonPinnedColumnWidth = columnsForSizing[colIndex].actualWidth