@finqu/cool 1.2.27 → 1.2.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI v1.2.27 (https://finqu.fi)
2
+ * Cool UI v1.2.28 (https://finqu.fi)
3
3
  * Copyright 2011-2020 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
@@ -3768,21 +3768,25 @@
3768
3768
  this.placement = this.$el.data('placement') ? this.$el.data('placement') : this.opts.placement;
3769
3769
  this.placementChanged = false;
3770
3770
  this.content = this.$el.data('content') ? this.$el.data('content') : this.opts.content;
3771
+ this.trigger = this.$el.data('trigger') ? this.$el.data('trigger') : this.opts.trigger;
3771
3772
  } // Bind events that trigger methods
3772
3773
  ;
3773
3774
 
3774
3775
  _proto.bindEvents = function bindEvents() {
3775
3776
  var _this2 = this;
3776
3777
 
3777
- this.$el.on('mouseenter' + '.' + NAME$3, function () {
3778
- _this2.show();
3779
- });
3780
- this.$el.on('mouseleave' + '.' + NAME$3, function () {
3781
- _this2.close();
3782
- });
3783
- this.$el.on('blur' + '.' + NAME$3, function () {
3784
- _this2.close();
3785
- });
3778
+ if (this.trigger === 'auto') {
3779
+ this.$el.on('mouseenter' + '.' + NAME$3, function () {
3780
+ _this2.show();
3781
+ });
3782
+ this.$el.on('mouseleave' + '.' + NAME$3, function () {
3783
+ _this2.close();
3784
+ });
3785
+ this.$el.on('blur' + '.' + NAME$3, function () {
3786
+ _this2.close();
3787
+ });
3788
+ }
3789
+
3786
3790
  this.$el.on('destroyed' + '.' + NAME$3, function () {
3787
3791
  _this2.close();
3788
3792
  });
@@ -3825,6 +3829,7 @@
3825
3829
  this.log('Animation speed: ' + this.animationSpeed);
3826
3830
  this.log('Placement: ' + this.placement);
3827
3831
  this.log('Content: ' + this.content);
3832
+ this.log('Trigger: ' + this.trigger);
3828
3833
  } // Set positions
3829
3834
  ;
3830
3835
 
@@ -4176,6 +4181,7 @@
4176
4181
  animationSpeed: 'fastest',
4177
4182
  placement: 'bottom',
4178
4183
  content: '',
4184
+ trigger: 'auto',
4179
4185
  onInit: null,
4180
4186
  onUpdate: null,
4181
4187
  onDestroy: null,