@finqu/cool 1.2.4 → 1.2.5

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.
Files changed (40) hide show
  1. package/dist/css/cool-grid.css +2 -2
  2. package/dist/css/cool-grid.css.map +2 -2
  3. package/dist/css/cool-grid.min.css +1 -1
  4. package/dist/css/cool-grid.min.css.map +1 -1
  5. package/dist/css/cool-reboot.css +2 -2
  6. package/dist/css/cool-reboot.css.map +2 -2
  7. package/dist/css/cool-reboot.min.css +1 -1
  8. package/dist/css/cool-reboot.min.css.map +1 -1
  9. package/dist/css/cool.css +77 -45
  10. package/dist/css/cool.css.map +4 -4
  11. package/dist/css/cool.min.css +2 -2
  12. package/dist/css/cool.min.css.map +1 -1
  13. package/dist/js/cool.bundle.js +7 -8
  14. package/dist/js/cool.bundle.js.map +1 -1
  15. package/dist/js/cool.bundle.min.js +2 -2
  16. package/dist/js/cool.bundle.min.js.map +1 -1
  17. package/dist/js/cool.esm.js +7 -8
  18. package/dist/js/cool.esm.js.map +1 -1
  19. package/dist/js/cool.esm.min.js +2 -2
  20. package/dist/js/cool.esm.min.js.map +1 -1
  21. package/dist/js/cool.js +7 -8
  22. package/dist/js/cool.js.map +1 -1
  23. package/dist/js/cool.min.js +2 -2
  24. package/dist/js/cool.min.js.map +1 -1
  25. package/html/index.html +31 -0
  26. package/js/dist/collapse.js +1 -1
  27. package/js/dist/common.js +1 -1
  28. package/js/dist/dropdown.js +685 -698
  29. package/js/dist/dropdown.js.map +1 -1
  30. package/js/dist/popover.js +1 -1
  31. package/js/dist/sectiontabs.js +1 -1
  32. package/js/dist/select.js +1 -1
  33. package/js/dist/tooltip.js +1 -1
  34. package/js/src/dropdown.js +10 -7
  35. package/package.json +1 -1
  36. package/scss/_section.scss +32 -0
  37. package/scss/_variables.scss +1 -1
  38. package/scss/cool-grid.scss +1 -1
  39. package/scss/cool-reboot.scss +1 -1
  40. package/scss/cool.scss +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI popover.js v1.2.3 (https://finqu.fi)
2
+ * Cool UI popover.js v1.2.4 (https://finqu.fi)
3
3
  * Copyright 2011-2019 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI sectiontabs.js v1.2.3 (https://finqu.fi)
2
+ * Cool UI sectiontabs.js v1.2.4 (https://finqu.fi)
3
3
  * Copyright 2011-2019 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
package/js/dist/select.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI select.js v1.2.3 (https://finqu.fi)
2
+ * Cool UI select.js v1.2.4 (https://finqu.fi)
3
3
  * Copyright 2011-2019 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI tooltip.js v1.2.3 (https://finqu.fi)
2
+ * Cool UI tooltip.js v1.2.4 (https://finqu.fi)
3
3
  * Copyright 2011-2019 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
@@ -294,21 +294,24 @@ class Dropdown extends AbstractUIComponent {
294
294
  dropdownPosY += parseInt(offsetY, 10);
295
295
  }
296
296
 
297
- if (this.positionObserver) {
297
+ if (this.positionObserver && this.$container.length > 0) {
298
298
 
299
299
  // this is not set during init so we have to fetch it
300
300
  // and let's assume that this containing parent fits and is inside
301
301
  // viewport
302
- let $containingParent = null;
302
+ let $containingParent = this.$container.parent();
303
303
 
304
- do {
305
- $containingParent = $containingParent ? $containingParent.parent() : this.$container.parent();
304
+ while (
305
+ $containingParent.css('overflow-x') !== 'hidden' && 
306
+ $containingParent.css('overflow') !== 'hidden' &&
307
+ ($containingParent.prop('tagName') || '').toLowerCase() !== 'body'
308
+ ) {
309
+ $containingParent = $containingParent.parent();
306
310
 
307
311
  if (!$containingParent) {
308
- $containingParent = $('body');
309
- break;
312
+ return;
310
313
  }
311
- } while ($containingParent.css('overflow-x') !== 'hidden' && $containingParent.css('overflow') !== 'hidden' && ($containingParent.prop('tagName') ? $containingParent.prop('tagName').toLowerCase() !== 'body' : false));
314
+ }
312
315
 
313
316
  const containingBoundingRect = $containingParent.get(0).getBoundingClientRect();
314
317
  const containerBoundingRect = this.$container.get(0).getBoundingClientRect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finqu/cool",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Finqu UI package",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -710,6 +710,38 @@
710
710
  }
711
711
  }
712
712
 
713
+ .collapsing {
714
+ left: auto;
715
+ right: auto;
716
+ }
717
+
718
+ .collapse,
719
+ .collapsing {
720
+
721
+ > .section-hr {
722
+ width: 100%;
723
+ padding-top: 0;
724
+ padding-bottom: $section-padding;
725
+
726
+ &:after {
727
+ margin-left: 0;
728
+ margin-right: 0;
729
+ }
730
+
731
+ &.content-full-width {
732
+ position: relative;
733
+ margin-left: 0;
734
+ margin-right: 0;
735
+
736
+ &:after {
737
+ position: absolute;
738
+ left: -$section-padding;
739
+ right: -$section-padding;
740
+ }
741
+ }
742
+ }
743
+ }
744
+
713
745
  &:not(.show) {
714
746
  margin-top: 0;
715
747
  padding-top: 0;
@@ -629,7 +629,7 @@ $section-font-size: $font-size-base !default;
629
629
  $section-border-radius: $border-radius !default;
630
630
  $section-spacer: spacer(4) !default;
631
631
  $section-spacer-mobile: spacer(2) !default;
632
- $section-padding: spacer(3) !default;
632
+ $section-padding: spacer(4) !default;
633
633
 
634
634
  $section-bg: color('white') !default;
635
635
  $section-color: $body-color !default;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI - Grid v1.2.4 (https://finqu.fi)
2
+ * Cool UI - Grid v1.2.5 (https://finqu.fi)
3
3
  * Copyright 2019 Finqu Oy.
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  * Forked from Bootstrap, licensed MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI - Reboot v1.2.4 (https://finqu.fi)
2
+ * Cool UI - Reboot v1.2.5 (https://finqu.fi)
3
3
  * Copyright 2019 Finqu Oy.
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  * Forked from Bootstrap, licensed MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
package/scss/cool.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI v1.2.4 (https://finqu.fi)
2
+ * Cool UI v1.2.5 (https://finqu.fi)
3
3
  * Copyright 2019 Finqu Oy.
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  * Forked from Bootstrap, licensed MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)