@websy/websy-designs 1.4.12 → 1.4.14
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.
|
@@ -1568,10 +1568,14 @@ class WebsyDropdown {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
if (scrollEl) {
|
|
1570
1570
|
scrollEl.scrollTo(0, 0)
|
|
1571
|
+
}
|
|
1572
|
+
if (maskEl) {
|
|
1573
|
+
maskEl.classList.remove('active')
|
|
1574
|
+
}
|
|
1575
|
+
if (contentEl) {
|
|
1576
|
+
contentEl.classList.remove('active')
|
|
1577
|
+
contentEl.classList.remove('on-top')
|
|
1571
1578
|
}
|
|
1572
|
-
maskEl.classList.remove('active')
|
|
1573
|
-
contentEl.classList.remove('active')
|
|
1574
|
-
contentEl.classList.remove('on-top')
|
|
1575
1579
|
const searchEl = document.getElementById(`${this.elementId}_search`)
|
|
1576
1580
|
if (searchEl) {
|
|
1577
1581
|
if (searchEl.value.length > 0 && this.options.onCancelSearch) {
|
|
@@ -2595,8 +2599,10 @@ class WebsyLoadingDialog {
|
|
|
2595
2599
|
}
|
|
2596
2600
|
hide () {
|
|
2597
2601
|
const el = document.getElementById(this.elementId)
|
|
2598
|
-
el
|
|
2599
|
-
|
|
2602
|
+
if (el) {
|
|
2603
|
+
el.classList.remove('loading')
|
|
2604
|
+
el.innerHTML = ''
|
|
2605
|
+
}
|
|
2600
2606
|
}
|
|
2601
2607
|
render () {
|
|
2602
2608
|
if (!this.elementId) {
|
|
@@ -4424,7 +4430,7 @@ class WebsyRouter {
|
|
|
4424
4430
|
}
|
|
4425
4431
|
}
|
|
4426
4432
|
if (toggle === false) {
|
|
4427
|
-
this.showView(
|
|
4433
|
+
this.showView(newPath.split('?')[0], this.currentParams, group)
|
|
4428
4434
|
}
|
|
4429
4435
|
else if (newPath && newPath !== '') {
|
|
4430
4436
|
this.showView(newPath, null, group)
|
|
@@ -6169,7 +6175,7 @@ class WebsyTable3 {
|
|
|
6169
6175
|
}
|
|
6170
6176
|
// console.log('rowspan', cell.rowspan)
|
|
6171
6177
|
bodyHtml += `<td
|
|
6172
|
-
class='websy-table-cell ${(cell.classes || []).join(' ')}'
|
|
6178
|
+
class='websy-table-cell ${sizeIndex < this.pinnedColumns ? 'pinned' : 'unpinned'} ${(cell.classes || []).join(' ')}'
|
|
6173
6179
|
style='${style}'
|
|
6174
6180
|
data-info='${cell.value}'
|
|
6175
6181
|
colspan='${cell.colspan || 1}'
|
|
@@ -7712,7 +7718,7 @@ function getBarY (d, i) {
|
|
|
7712
7718
|
bars
|
|
7713
7719
|
.exit()
|
|
7714
7720
|
.transition(this.transition)
|
|
7715
|
-
.style('
|
|
7721
|
+
.style('fill-opacity', 1e-6)
|
|
7716
7722
|
.remove()
|
|
7717
7723
|
|
|
7718
7724
|
bars
|
|
@@ -7736,6 +7742,14 @@ bars
|
|
|
7736
7742
|
return `bar bar_${series.key}`
|
|
7737
7743
|
})
|
|
7738
7744
|
|
|
7745
|
+
}
|
|
7746
|
+
removebar (key) {
|
|
7747
|
+
/* global key d3 */
|
|
7748
|
+
let bars = this.barLayer.selectAll(`.bar_${key}`)
|
|
7749
|
+
.transition(this.transition)
|
|
7750
|
+
.style('fill-opacity', 1e-6)
|
|
7751
|
+
.remove()
|
|
7752
|
+
|
|
7739
7753
|
}
|
|
7740
7754
|
renderLabels (series, index) {
|
|
7741
7755
|
/* global series index d3 WebsyDesigns */
|
package/dist/websy-designs.js
CHANGED
|
@@ -1698,9 +1698,15 @@ var WebsyDropdown = /*#__PURE__*/function () {
|
|
|
1698
1698
|
scrollEl.scrollTo(0, 0);
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
maskEl
|
|
1702
|
-
|
|
1703
|
-
|
|
1701
|
+
if (maskEl) {
|
|
1702
|
+
maskEl.classList.remove('active');
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
if (contentEl) {
|
|
1706
|
+
contentEl.classList.remove('active');
|
|
1707
|
+
contentEl.classList.remove('on-top');
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1704
1710
|
var searchEl = document.getElementById("".concat(this.elementId, "_search"));
|
|
1705
1711
|
|
|
1706
1712
|
if (searchEl) {
|
|
@@ -2741,8 +2747,11 @@ var WebsyLoadingDialog = /*#__PURE__*/function () {
|
|
|
2741
2747
|
key: "hide",
|
|
2742
2748
|
value: function hide() {
|
|
2743
2749
|
var el = document.getElementById(this.elementId);
|
|
2744
|
-
|
|
2745
|
-
el
|
|
2750
|
+
|
|
2751
|
+
if (el) {
|
|
2752
|
+
el.classList.remove('loading');
|
|
2753
|
+
el.innerHTML = '';
|
|
2754
|
+
}
|
|
2746
2755
|
}
|
|
2747
2756
|
}, {
|
|
2748
2757
|
key: "render",
|
|
@@ -4868,7 +4877,7 @@ var WebsyRouter = /*#__PURE__*/function () {
|
|
|
4868
4877
|
}
|
|
4869
4878
|
|
|
4870
4879
|
if (toggle === false) {
|
|
4871
|
-
this.showView(
|
|
4880
|
+
this.showView(newPath.split('?')[0], this.currentParams, group);
|
|
4872
4881
|
} else if (newPath && newPath !== '') {
|
|
4873
4882
|
this.showView(newPath, null, group);
|
|
4874
4883
|
}
|
|
@@ -6741,7 +6750,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6741
6750
|
} // console.log('rowspan', cell.rowspan)
|
|
6742
6751
|
|
|
6743
6752
|
|
|
6744
|
-
bodyHtml += "<td \n class='websy-table-cell ".concat((cell.classes || []).join(' '), "'\n style='").concat(style, "'\n data-info='").concat(cell.value, "'\n colspan='").concat(cell.colspan || 1, "'\n rowspan='").concat(cell.rowspan || 1, "'\n data-row-index='").concat(rowIndex, "'\n data-col-index='").concat(cellIndex, "'\n "); // if (useWidths === true) {
|
|
6753
|
+
bodyHtml += "<td \n class='websy-table-cell ".concat(sizeIndex < _this39.pinnedColumns ? 'pinned' : 'unpinned', " ").concat((cell.classes || []).join(' '), "'\n style='").concat(style, "'\n data-info='").concat(cell.value, "'\n colspan='").concat(cell.colspan || 1, "'\n rowspan='").concat(cell.rowspan || 1, "'\n data-row-index='").concat(rowIndex, "'\n data-col-index='").concat(cellIndex, "'\n "); // if (useWidths === true) {
|
|
6745
6754
|
// bodyHtml += `
|
|
6746
6755
|
// style='width: ${sizingColumns[cellIndex].width || sizingColumns[cellIndex].actualWidth}px!important'
|
|
6747
6756
|
// width='${sizingColumns[cellIndex].width || sizingColumns[cellIndex].actualWidth}'
|
|
@@ -8423,7 +8432,7 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8423
8432
|
}
|
|
8424
8433
|
}
|
|
8425
8434
|
|
|
8426
|
-
bars.exit().transition(this.transition).style('
|
|
8435
|
+
bars.exit().transition(this.transition).style('fill-opacity', 1e-6).remove();
|
|
8427
8436
|
bars.attr('width', getBarWidth.bind(this)).attr('height', getBarHeight.bind(this)).attr('x', getBarX.bind(this)).attr('y', getBarY.bind(this)).transition(this.transition).attr('fill', function (d) {
|
|
8428
8437
|
return d.y.color || d.color || series.color;
|
|
8429
8438
|
});
|
|
@@ -8434,6 +8443,12 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8434
8443
|
return "bar bar_".concat(series.key);
|
|
8435
8444
|
});
|
|
8436
8445
|
}
|
|
8446
|
+
}, {
|
|
8447
|
+
key: "removebar",
|
|
8448
|
+
value: function removebar(key) {
|
|
8449
|
+
/* global key d3 */
|
|
8450
|
+
var bars = this.barLayer.selectAll(".bar_".concat(key)).transition(this.transition).style('fill-opacity', 1e-6).remove();
|
|
8451
|
+
}
|
|
8437
8452
|
}, {
|
|
8438
8453
|
key: "renderLabels",
|
|
8439
8454
|
value: function renderLabels(series, index) {
|