@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
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
const express = require('express')
|
|
2
2
|
const bodyParser = require('body-parser')
|
|
3
|
-
// const cookie = require('cookie')
|
|
4
3
|
const cookieParser = require('cookie-parser')
|
|
5
4
|
const expressSession = require('express-session')
|
|
6
|
-
// const sessionHelper = require('./helpers/v1/sessionHelper')
|
|
7
|
-
// const DBSession = require(process.env.EXPRESS_SESSION_CONNECT)(expressSession)
|
|
8
5
|
|
|
9
6
|
module.exports = function (options) {
|
|
10
7
|
return new Promise((resolve, reject) => {
|
|
@@ -233,7 +233,7 @@ class ButtonGroup {
|
|
|
233
233
|
let activeClass = ''
|
|
234
234
|
if (this.options.activeItem !== -1) {
|
|
235
235
|
activeClass = i === this.options.activeItem ? 'active' : 'inactive'
|
|
236
|
-
}
|
|
236
|
+
}
|
|
237
237
|
return `
|
|
238
238
|
<${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}>
|
|
239
239
|
`
|
|
@@ -1590,7 +1590,9 @@ class WebsyDropdown {
|
|
|
1590
1590
|
`
|
|
1591
1591
|
el.innerHTML = html
|
|
1592
1592
|
const scrollEl = document.getElementById(`${this.elementId}_itemsContainer`)
|
|
1593
|
-
|
|
1593
|
+
if (scrollEl) {
|
|
1594
|
+
scrollEl.addEventListener('scroll', this.handleScroll.bind(this))
|
|
1595
|
+
}
|
|
1594
1596
|
this.render()
|
|
1595
1597
|
}
|
|
1596
1598
|
else {
|
|
@@ -6191,7 +6193,7 @@ class WebsyTable3 {
|
|
|
6191
6193
|
bodyHtml += `<td
|
|
6192
6194
|
class='websy-table-cell ${sizeIndex < this.pinnedColumns ? 'pinned' : 'unpinned'} ${(cell.classes || []).join(' ')} ${(sizingColumns[sizeIndex].classes || []).join(' ')}'
|
|
6193
6195
|
style='${style}'
|
|
6194
|
-
data-info='${cell.value}'
|
|
6196
|
+
data-info='${cell.value.replace(/'/g, '`')}'
|
|
6195
6197
|
colspan='${cell.colspan || 1}'
|
|
6196
6198
|
rowspan='${cell.rowspan || 1}'
|
|
6197
6199
|
data-row-index='${rowIndex}'
|
|
@@ -6413,6 +6415,9 @@ class WebsyTable3 {
|
|
|
6413
6415
|
columnsForSizing[colIndex].actualWidth = 0
|
|
6414
6416
|
}
|
|
6415
6417
|
columnsForSizing[colIndex].actualWidth = Math.min(Math.max(columnsForSizing[colIndex].actualWidth, colSize.width), maxWidth)
|
|
6418
|
+
// if (columnsForSizing[colIndex].width) {
|
|
6419
|
+
// columnsForSizing[colIndex].actualWidth = columnsForSizing[colIndex].width
|
|
6420
|
+
// }
|
|
6416
6421
|
columnsForSizing[colIndex].cellHeight = colSize.height
|
|
6417
6422
|
if (colIndex >= this.pinnedColumns) {
|
|
6418
6423
|
firstNonPinnedColumnWidth = columnsForSizing[colIndex].actualWidth
|
|
@@ -6891,11 +6896,9 @@ class WebsyTable3 {
|
|
|
6891
6896
|
if (this.vScrollRequired === true) {
|
|
6892
6897
|
vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
|
|
6893
6898
|
vScrollEl.style.height = `${this.sizes.bodyHeight}px`
|
|
6894
|
-
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
6898
|
-
}
|
|
6899
|
+
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
6900
|
+
const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
|
|
6901
|
+
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
6899
6902
|
}
|
|
6900
6903
|
else {
|
|
6901
6904
|
vHandleEl.style.height = '0px'
|