@websy/websy-designs 1.4.11 → 1.4.13
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 +37 -18
- package/dist/websy-designs-es6.js +269 -250
- package/dist/websy-designs-es6.min.js +1 -1
- package/dist/websy-designs.debug.js +37 -18
- package/dist/websy-designs.js +272 -253
- package/dist/websy-designs.min.js +1 -1
- package/package.json +1 -1
|
@@ -692,11 +692,13 @@ class WebsyDatePicker {
|
|
|
692
692
|
this.close()
|
|
693
693
|
}
|
|
694
694
|
else if (event.target.classList.contains('clear-selection')) {
|
|
695
|
+
this.currentselection = []
|
|
696
|
+
this.selectedRangeDates = []
|
|
695
697
|
this.selectRange(0, false)
|
|
696
698
|
if (this.options.onClear) {
|
|
697
699
|
this.options.onClear()
|
|
698
700
|
}
|
|
699
|
-
this.updateRange(0)
|
|
701
|
+
// this.updateRange(0)
|
|
700
702
|
}
|
|
701
703
|
}
|
|
702
704
|
handleKeyDown (event) {
|
|
@@ -1215,18 +1217,21 @@ class WebsyDatePicker {
|
|
|
1215
1217
|
selectRange (index, confirm = true) {
|
|
1216
1218
|
if (this.options.ranges[this.options.mode][index]) {
|
|
1217
1219
|
this.selectedRangeDates = [...this.options.ranges[this.options.mode][index].range]
|
|
1218
|
-
this.currentselection =
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1220
|
+
this.currentselection = []
|
|
1221
|
+
// this.currentselection = this.options.ranges[this.options.mode][index].range.map(d => {
|
|
1222
|
+
// if (this.options.mode === 'date' || this.options.mode === 'monthyear') {
|
|
1223
|
+
// return d.getTime()
|
|
1224
|
+
// }
|
|
1225
|
+
// else {
|
|
1226
|
+
// return d
|
|
1227
|
+
// }
|
|
1228
|
+
// })
|
|
1226
1229
|
this.selectedRange = +index
|
|
1227
1230
|
this.highlightRange()
|
|
1228
|
-
this.updateRange()
|
|
1229
|
-
|
|
1231
|
+
this.updateRange()
|
|
1232
|
+
if (confirm === true) {
|
|
1233
|
+
this.close(confirm, true)
|
|
1234
|
+
}
|
|
1230
1235
|
}
|
|
1231
1236
|
}
|
|
1232
1237
|
selectCustomRange (rangeInput) {
|
|
@@ -1563,10 +1568,14 @@ class WebsyDropdown {
|
|
|
1563
1568
|
}
|
|
1564
1569
|
if (scrollEl) {
|
|
1565
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')
|
|
1566
1578
|
}
|
|
1567
|
-
maskEl.classList.remove('active')
|
|
1568
|
-
contentEl.classList.remove('active')
|
|
1569
|
-
contentEl.classList.remove('on-top')
|
|
1570
1579
|
const searchEl = document.getElementById(`${this.elementId}_search`)
|
|
1571
1580
|
if (searchEl) {
|
|
1572
1581
|
if (searchEl.value.length > 0 && this.options.onCancelSearch) {
|
|
@@ -2590,8 +2599,10 @@ class WebsyLoadingDialog {
|
|
|
2590
2599
|
}
|
|
2591
2600
|
hide () {
|
|
2592
2601
|
const el = document.getElementById(this.elementId)
|
|
2593
|
-
el
|
|
2594
|
-
|
|
2602
|
+
if (el) {
|
|
2603
|
+
el.classList.remove('loading')
|
|
2604
|
+
el.innerHTML = ''
|
|
2605
|
+
}
|
|
2595
2606
|
}
|
|
2596
2607
|
render () {
|
|
2597
2608
|
if (!this.elementId) {
|
|
@@ -6164,7 +6175,7 @@ class WebsyTable3 {
|
|
|
6164
6175
|
}
|
|
6165
6176
|
// console.log('rowspan', cell.rowspan)
|
|
6166
6177
|
bodyHtml += `<td
|
|
6167
|
-
class='websy-table-cell ${(cell.classes || []).join(' ')}'
|
|
6178
|
+
class='websy-table-cell ${sizeIndex < this.pinnedColumns ? 'pinned' : 'unpinned'} ${(cell.classes || []).join(' ')}'
|
|
6168
6179
|
style='${style}'
|
|
6169
6180
|
data-info='${cell.value}'
|
|
6170
6181
|
colspan='${cell.colspan || 1}'
|
|
@@ -7707,7 +7718,7 @@ function getBarY (d, i) {
|
|
|
7707
7718
|
bars
|
|
7708
7719
|
.exit()
|
|
7709
7720
|
.transition(this.transition)
|
|
7710
|
-
.style('
|
|
7721
|
+
.style('fill-opacity', 1e-6)
|
|
7711
7722
|
.remove()
|
|
7712
7723
|
|
|
7713
7724
|
bars
|
|
@@ -7731,6 +7742,14 @@ bars
|
|
|
7731
7742
|
return `bar bar_${series.key}`
|
|
7732
7743
|
})
|
|
7733
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
|
+
|
|
7734
7753
|
}
|
|
7735
7754
|
renderLabels (series, index) {
|
|
7736
7755
|
/* global series index d3 WebsyDesigns */
|