@websy/websy-designs 1.4.26 → 1.4.28
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.
|
@@ -305,7 +305,7 @@ class WebsyCarousel {
|
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
play () {
|
|
308
|
-
if (this.options.autoPlay !== true) {
|
|
308
|
+
if (this.options.autoPlay !== true || this.options.frames.length < 2) {
|
|
309
309
|
return
|
|
310
310
|
}
|
|
311
311
|
this.playTimeoutFn = setTimeout(() => {
|
|
@@ -2839,7 +2839,8 @@ class WebsyNavigationMenu {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
handleSearch (searchText) {
|
|
2841
2841
|
const el = document.getElementById(this.elementId)
|
|
2842
|
-
let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
|
|
2842
|
+
// let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
|
|
2843
|
+
let lowestItems = this.flatItems.filter(d => !d.hasChildren)
|
|
2843
2844
|
let visibleItems = lowestItems
|
|
2844
2845
|
let defaultMethod = 'remove'
|
|
2845
2846
|
if (searchText && searchText.length > 1) {
|
|
@@ -2871,7 +2872,6 @@ class WebsyNavigationMenu {
|
|
|
2871
2872
|
})
|
|
2872
2873
|
})
|
|
2873
2874
|
}
|
|
2874
|
-
console.log('visibleItems', visibleItems)
|
|
2875
2875
|
}
|
|
2876
2876
|
normaliseString (text) {
|
|
2877
2877
|
return text.replace(/-/g, '').replace(/\s/g, '_')
|
|
@@ -5143,6 +5143,9 @@ const WebsyUtils = {
|
|
|
5143
5143
|
},
|
|
5144
5144
|
toQlikDateNum: d => {
|
|
5145
5145
|
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
5146
|
+
},
|
|
5147
|
+
toQlikDate: d => {
|
|
5148
|
+
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
5146
5149
|
}
|
|
5147
5150
|
}
|
|
5148
5151
|
|
|
@@ -7635,7 +7638,6 @@ else {
|
|
|
7635
7638
|
if (this.rightAxis.nice) {
|
|
7636
7639
|
this.rightAxis.nice()
|
|
7637
7640
|
}
|
|
7638
|
-
console.log('axis right', this.options.margin.axisRight)
|
|
7639
7641
|
if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
|
|
7640
7642
|
this.rightAxisLayer.call(
|
|
7641
7643
|
d3.axisRight(this.rightAxis)
|
|
@@ -8645,8 +8647,7 @@ class WebsyChartTooltip {
|
|
|
8645
8647
|
}
|
|
8646
8648
|
if (position.onTop === true) {
|
|
8647
8649
|
classes.push('top')
|
|
8648
|
-
}
|
|
8649
|
-
console.log(classes.join(' '))
|
|
8650
|
+
}
|
|
8650
8651
|
let fO = this.tooltipLayer
|
|
8651
8652
|
.selectAll('foreignObject')
|
|
8652
8653
|
.attr('width', `${position.width}px`)
|
package/dist/websy-designs.js
CHANGED
|
@@ -418,7 +418,7 @@ var WebsyCarousel = /*#__PURE__*/function () {
|
|
|
418
418
|
value: function play() {
|
|
419
419
|
var _this2 = this;
|
|
420
420
|
|
|
421
|
-
if (this.options.autoPlay !== true) {
|
|
421
|
+
if (this.options.autoPlay !== true || this.options.frames.length < 2) {
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
|
|
@@ -3036,9 +3036,10 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
|
|
|
3036
3036
|
value: function handleSearch(searchText) {
|
|
3037
3037
|
var _this19 = this;
|
|
3038
3038
|
|
|
3039
|
-
var el = document.getElementById(this.elementId);
|
|
3039
|
+
var el = document.getElementById(this.elementId); // let lowestItems = this.flatItems.filter(d => d.level === this.maxLevel)
|
|
3040
|
+
|
|
3040
3041
|
var lowestItems = this.flatItems.filter(function (d) {
|
|
3041
|
-
return d.
|
|
3042
|
+
return !d.hasChildren;
|
|
3042
3043
|
});
|
|
3043
3044
|
var visibleItems = lowestItems;
|
|
3044
3045
|
var defaultMethod = 'remove';
|
|
@@ -3082,8 +3083,6 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
|
|
|
3082
3083
|
});
|
|
3083
3084
|
});
|
|
3084
3085
|
}
|
|
3085
|
-
|
|
3086
|
-
console.log('visibleItems', visibleItems);
|
|
3087
3086
|
}
|
|
3088
3087
|
}, {
|
|
3089
3088
|
key: "normaliseString",
|
|
@@ -5741,6 +5740,9 @@ var WebsyUtils = {
|
|
|
5741
5740
|
},
|
|
5742
5741
|
toQlikDateNum: function toQlikDateNum(d) {
|
|
5743
5742
|
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5743
|
+
},
|
|
5744
|
+
toQlikDate: function toQlikDate(d) {
|
|
5745
|
+
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5744
5746
|
}
|
|
5745
5747
|
};
|
|
5746
5748
|
/* global WebsyDesigns */
|
|
@@ -8386,8 +8388,6 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8386
8388
|
this.rightAxis.nice();
|
|
8387
8389
|
}
|
|
8388
8390
|
|
|
8389
|
-
console.log('axis right', this.options.margin.axisRight);
|
|
8390
|
-
|
|
8391
8391
|
if (this.options.margin.axisRight > 0 && (this.options.data.right.min !== 0 || this.options.data.right.max !== 0)) {
|
|
8392
8392
|
this.rightAxisLayer.call(d3.axisRight(this.rightAxis).ticks(this.options.data.left.ticks || 5).tickFormat(function (d) {
|
|
8393
8393
|
if (_this47.options.data.right.formatter) {
|
|
@@ -9386,7 +9386,6 @@ var WebsyChartTooltip = /*#__PURE__*/function () {
|
|
|
9386
9386
|
classes.push('top');
|
|
9387
9387
|
}
|
|
9388
9388
|
|
|
9389
|
-
console.log(classes.join(' '));
|
|
9390
9389
|
var fO = this.tooltipLayer.selectAll('foreignObject').attr('width', "".concat(position.width, "px")) // .attr('height', `${position.height}px`)
|
|
9391
9390
|
// .attr('y', `0px`)
|
|
9392
9391
|
.attr('class', "websy-chart-tooltip ".concat(classes.join(' ')));
|