@websy/websy-designs 1.9.0 → 1.9.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/websy-designs-es6.debug.js +14 -0
- package/dist/websy-designs-es6.js +14 -0
- package/dist/websy-designs-es6.min.js +1 -1
- package/dist/websy-designs.debug.js +14 -0
- package/dist/websy-designs.js +14 -0
- package/dist/websy-designs.min.css +1 -1
- package/dist/websy-designs.min.js +1 -1
- package/package.json +1 -1
|
@@ -1501,6 +1501,7 @@ class WebsyDropdown {
|
|
|
1501
1501
|
showCompleteSelectedList: false,
|
|
1502
1502
|
closeAfterSelection: true,
|
|
1503
1503
|
customActions: [],
|
|
1504
|
+
customButtons: [],
|
|
1504
1505
|
searchIcon: `<svg width="20" height="20" viewBox="0 0 512 512"><path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/><line x1="338.29" y1="338.29" x2="448" y2="448" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>`,
|
|
1505
1506
|
clearIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512"><title>ionicons-v5-l</title><line x1="368" y1="368" x2="144" y2="144" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="368" y1="144" x2="144" y2="368" style="fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>`,
|
|
1506
1507
|
arrowIcon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z"/></svg>`,
|
|
@@ -6930,6 +6931,13 @@ class WebsyTable3 {
|
|
|
6930
6931
|
// bodyEl.style.height = `calc(100% - ${this.sizes.header.height}px - ${this.sizes.total.height}px)`
|
|
6931
6932
|
// }
|
|
6932
6933
|
bodyEl.style.height = `${this.sizes.bodyHeight}px`
|
|
6934
|
+
if (this.isTouchDevice === true) {
|
|
6935
|
+
let touchScrollEl = document.getElementById(`${this.elementId}_touchScroller`)
|
|
6936
|
+
if (touchScrollEl) {
|
|
6937
|
+
touchScrollEl.style.top = `${this.sizes.header.height}px`
|
|
6938
|
+
touchScrollEl.style.height = `calc(100% - ${this.sizes.header.height + 30}px)`
|
|
6939
|
+
}
|
|
6940
|
+
}
|
|
6933
6941
|
if (this.options.virtualScroll === true) {
|
|
6934
6942
|
// set the scroll element positions
|
|
6935
6943
|
let vScrollEl = document.getElementById(`${this.elementId}_vScrollContainer`)
|
|
@@ -6937,6 +6945,9 @@ class WebsyTable3 {
|
|
|
6937
6945
|
if (this.vScrollRequired === true) {
|
|
6938
6946
|
vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
|
|
6939
6947
|
vScrollEl.style.height = `${this.sizes.bodyHeight}px`
|
|
6948
|
+
if (this.isTouchDevice === true) {
|
|
6949
|
+
vScrollEl.style.visibility = `unset`
|
|
6950
|
+
}
|
|
6940
6951
|
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
6941
6952
|
const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
|
|
6942
6953
|
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
@@ -6950,6 +6961,9 @@ class WebsyTable3 {
|
|
|
6950
6961
|
hScrollEl.style.left = `${this.sizes.table.width - this.sizes.scrollableWidth}px`
|
|
6951
6962
|
hScrollEl.style.width = `${this.sizes.scrollableWidth - (this.isTouchDevice ? 30 : 20)}px`
|
|
6952
6963
|
hHandleEl.style.width = Math.max(this.options.minHandleSize, this.sizes.scrollableWidth * (this.sizes.scrollableWidth / this.sizes.totalNonPinnedWidth)) + 'px'
|
|
6964
|
+
if (this.isTouchDevice === true) {
|
|
6965
|
+
hScrollEl.style.visibility = `unset`
|
|
6966
|
+
}
|
|
6953
6967
|
}
|
|
6954
6968
|
else {
|
|
6955
6969
|
hHandleEl.style.width = '0px'
|
|
@@ -1507,6 +1507,7 @@ var WebsyDropdown = /*#__PURE__*/function () {
|
|
|
1507
1507
|
showCompleteSelectedList: false,
|
|
1508
1508
|
closeAfterSelection: true,
|
|
1509
1509
|
customActions: [],
|
|
1510
|
+
customButtons: [],
|
|
1510
1511
|
searchIcon: "<svg width=\"20\" height=\"20\" viewBox=\"0 0 512 512\"><path d=\"M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z\" style=\"fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px\"/><line x1=\"338.29\" y1=\"338.29\" x2=\"448\" y2=\"448\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px\"/></svg>",
|
|
1511
1512
|
clearIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 512 512\"><title>ionicons-v5-l</title><line x1=\"368\" y1=\"368\" x2=\"144\" y2=\"144\" style=\"fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/><line x1=\"368\" y1=\"144\" x2=\"144\" y2=\"368\" style=\"fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px\"/></svg>",
|
|
1512
1513
|
arrowIcon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M23.677 18.52c.914 1.523-.183 3.472-1.967 3.472h-19.414c-1.784 0-2.881-1.949-1.967-3.472l9.709-16.18c.891-1.483 3.041-1.48 3.93 0l9.709 16.18z\"/></svg>",
|
|
@@ -6634,6 +6635,13 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6634
6635
|
// bodyEl.style.height = `calc(100% - ${this.sizes.header.height}px - ${this.sizes.total.height}px)`
|
|
6635
6636
|
// }
|
|
6636
6637
|
bodyEl.style.height = "".concat(this.sizes.bodyHeight, "px");
|
|
6638
|
+
if (this.isTouchDevice === true) {
|
|
6639
|
+
var touchScrollEl = document.getElementById("".concat(this.elementId, "_touchScroller"));
|
|
6640
|
+
if (touchScrollEl) {
|
|
6641
|
+
touchScrollEl.style.top = "".concat(this.sizes.header.height, "px");
|
|
6642
|
+
touchScrollEl.style.height = "calc(100% - ".concat(this.sizes.header.height + 30, "px)");
|
|
6643
|
+
}
|
|
6644
|
+
}
|
|
6637
6645
|
if (this.options.virtualScroll === true) {
|
|
6638
6646
|
// set the scroll element positions
|
|
6639
6647
|
var vScrollEl = document.getElementById("".concat(this.elementId, "_vScrollContainer"));
|
|
@@ -6641,6 +6649,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6641
6649
|
if (this.vScrollRequired === true) {
|
|
6642
6650
|
vScrollEl.style.top = "".concat(this.sizes.header.height + this.sizes.total.height, "px");
|
|
6643
6651
|
vScrollEl.style.height = "".concat(this.sizes.bodyHeight, "px");
|
|
6652
|
+
if (this.isTouchDevice === true) {
|
|
6653
|
+
vScrollEl.style.visibility = "unset";
|
|
6654
|
+
}
|
|
6644
6655
|
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px';
|
|
6645
6656
|
var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
|
|
6646
6657
|
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
|
|
@@ -6653,6 +6664,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6653
6664
|
hScrollEl.style.left = "".concat(this.sizes.table.width - this.sizes.scrollableWidth, "px");
|
|
6654
6665
|
hScrollEl.style.width = "".concat(this.sizes.scrollableWidth - (this.isTouchDevice ? 30 : 20), "px");
|
|
6655
6666
|
hHandleEl.style.width = Math.max(this.options.minHandleSize, this.sizes.scrollableWidth * (this.sizes.scrollableWidth / this.sizes.totalNonPinnedWidth)) + 'px';
|
|
6667
|
+
if (this.isTouchDevice === true) {
|
|
6668
|
+
hScrollEl.style.visibility = "unset";
|
|
6669
|
+
}
|
|
6656
6670
|
} else {
|
|
6657
6671
|
hHandleEl.style.width = '0px';
|
|
6658
6672
|
}
|