@finqu/cool 1.2.26 → 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.
- package/dist/js/cool.bundle.js +21 -13
- package/dist/js/cool.bundle.js.map +1 -1
- package/dist/js/cool.bundle.min.js +2 -2
- package/dist/js/cool.bundle.min.js.map +1 -1
- package/dist/js/cool.esm.js +21 -13
- package/dist/js/cool.esm.js.map +1 -1
- package/dist/js/cool.esm.min.js +2 -2
- package/dist/js/cool.esm.min.js.map +1 -1
- package/dist/js/cool.js +21 -13
- package/dist/js/cool.js.map +1 -1
- package/dist/js/cool.min.js +2 -2
- package/dist/js/cool.min.js.map +1 -1
- package/js/dist/collapse.js +1 -1
- package/js/dist/common.js +1 -1
- package/js/dist/dropdown.js +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/sectiontabs.js +350 -326
- package/js/dist/sectiontabs.js.map +1 -1
- package/js/dist/select.js +1 -1
- package/js/dist/tooltip.js +1707 -1593
- package/js/dist/tooltip.js.map +1 -1
- package/js/src/section-tabs.js +5 -3
- package/js/src/tooltip.js +15 -9
- package/package.json +1 -1
package/dist/js/cool.bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Cool UI v1.2.
|
|
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
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
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,
|
|
@@ -4269,7 +4275,8 @@
|
|
|
4269
4275
|
|
|
4270
4276
|
_proto.moveToList = function moveToList(el) {
|
|
4271
4277
|
var $el = $(el);
|
|
4272
|
-
$el.
|
|
4278
|
+
var $itemActionEl = $el.find('.tab-item-action');
|
|
4279
|
+
$itemActionEl.removeClass('dropdown-item');
|
|
4273
4280
|
$el.insertBefore(this.$dropdownContainer);
|
|
4274
4281
|
this.checkForChanges();
|
|
4275
4282
|
} // Move to dropdown
|
|
@@ -4277,9 +4284,10 @@
|
|
|
4277
4284
|
|
|
4278
4285
|
_proto.moveToDropdown = function moveToDropdown(el) {
|
|
4279
4286
|
var $el = $(el);
|
|
4287
|
+
var $itemActionEl = $el.find('.tab-item-action');
|
|
4280
4288
|
|
|
4281
|
-
if (!$
|
|
4282
|
-
$
|
|
4289
|
+
if (!$itemActionEl.hasClass('dropdown-item')) {
|
|
4290
|
+
$itemActionEl.addClass('dropdown-item');
|
|
4283
4291
|
}
|
|
4284
4292
|
|
|
4285
4293
|
$el.appendTo(this.$dropdownList);
|