@websy/websy-designs 1.4.27 → 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(() => {
|
|
@@ -2872,7 +2872,6 @@ class WebsyNavigationMenu {
|
|
|
2872
2872
|
})
|
|
2873
2873
|
})
|
|
2874
2874
|
}
|
|
2875
|
-
console.log('visibleItems', visibleItems)
|
|
2876
2875
|
}
|
|
2877
2876
|
normaliseString (text) {
|
|
2878
2877
|
return text.replace(/-/g, '').replace(/\s/g, '_')
|
|
@@ -5144,6 +5143,9 @@ const WebsyUtils = {
|
|
|
5144
5143
|
},
|
|
5145
5144
|
toQlikDateNum: d => {
|
|
5146
5145
|
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
5146
|
+
},
|
|
5147
|
+
toQlikDate: d => {
|
|
5148
|
+
return Math.floor(d.getTime() / 86400000 + 25570)
|
|
5147
5149
|
}
|
|
5148
5150
|
}
|
|
5149
5151
|
|
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
|
|
|
@@ -3083,8 +3083,6 @@ var WebsyNavigationMenu = /*#__PURE__*/function () {
|
|
|
3083
3083
|
});
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
|
-
|
|
3087
|
-
console.log('visibleItems', visibleItems);
|
|
3088
3086
|
}
|
|
3089
3087
|
}, {
|
|
3090
3088
|
key: "normaliseString",
|
|
@@ -5742,6 +5740,9 @@ var WebsyUtils = {
|
|
|
5742
5740
|
},
|
|
5743
5741
|
toQlikDateNum: function toQlikDateNum(d) {
|
|
5744
5742
|
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5743
|
+
},
|
|
5744
|
+
toQlikDate: function toQlikDate(d) {
|
|
5745
|
+
return Math.floor(d.getTime() / 86400000 + 25570);
|
|
5745
5746
|
}
|
|
5746
5747
|
};
|
|
5747
5748
|
/* global WebsyDesigns */
|