@websy/websy-designs 1.8.0 → 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.
- package/dist/server/websy-designs-server.js +0 -3
- package/dist/websy-designs-es6.debug.js +11 -8
- package/dist/websy-designs-es6.js +628 -1976
- package/dist/websy-designs-es6.min.js +1 -1
- package/dist/websy-designs.debug.js +11 -8
- package/dist/websy-designs.js +641 -2117
- package/dist/websy-designs.min.js +1 -1
- package/package.json +1 -2
|
@@ -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
|
-
|
|
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
|
|
@@ -7307,11 +7312,9 @@ class WebsyTable3 {
|
|
|
7307
7312
|
if (this.vScrollRequired === true) {
|
|
7308
7313
|
vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
|
|
7309
7314
|
vScrollEl.style.height = `${this.sizes.bodyHeight}px`
|
|
7310
|
-
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
7314
|
-
}
|
|
7315
|
+
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
7316
|
+
const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
|
|
7317
|
+
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
7315
7318
|
}
|
|
7316
7319
|
else {
|
|
7317
7320
|
vHandleEl.style.height = '0px'
|