uikit 3.16.24-dev.d6158da87 → 3.16.25-dev.12f581d90

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 (136) hide show
  1. package/.eslintrc.json +0 -9
  2. package/.prettierrc.json +3 -4
  3. package/CHANGELOG.md +2 -1
  4. package/build/build.js +2 -2
  5. package/build/less.js +2 -2
  6. package/build/prefix.js +3 -3
  7. package/build/release.js +7 -7
  8. package/build/scope.js +3 -3
  9. package/build/scss.js +9 -9
  10. package/build/util.js +11 -11
  11. package/dist/css/uikit-core-rtl.css +1 -1
  12. package/dist/css/uikit-core-rtl.min.css +1 -1
  13. package/dist/css/uikit-core.css +1 -1
  14. package/dist/css/uikit-core.min.css +1 -1
  15. package/dist/css/uikit-rtl.css +1 -1
  16. package/dist/css/uikit-rtl.min.css +1 -1
  17. package/dist/css/uikit.css +1 -1
  18. package/dist/css/uikit.min.css +1 -1
  19. package/dist/js/components/countdown.js +2 -2
  20. package/dist/js/components/countdown.min.js +1 -1
  21. package/dist/js/components/filter.js +18 -18
  22. package/dist/js/components/filter.min.js +1 -1
  23. package/dist/js/components/lightbox-panel.js +351 -350
  24. package/dist/js/components/lightbox-panel.min.js +1 -1
  25. package/dist/js/components/lightbox.js +353 -352
  26. package/dist/js/components/lightbox.min.js +1 -1
  27. package/dist/js/components/notification.js +6 -6
  28. package/dist/js/components/notification.min.js +1 -1
  29. package/dist/js/components/parallax.js +69 -69
  30. package/dist/js/components/parallax.min.js +1 -1
  31. package/dist/js/components/slider-parallax.js +37 -37
  32. package/dist/js/components/slider-parallax.min.js +1 -1
  33. package/dist/js/components/slider.js +222 -224
  34. package/dist/js/components/slider.min.js +1 -1
  35. package/dist/js/components/slideshow-parallax.js +37 -37
  36. package/dist/js/components/slideshow-parallax.min.js +1 -1
  37. package/dist/js/components/slideshow.js +300 -302
  38. package/dist/js/components/slideshow.min.js +1 -1
  39. package/dist/js/components/sortable.js +2 -2
  40. package/dist/js/components/sortable.min.js +1 -1
  41. package/dist/js/components/tooltip.js +95 -95
  42. package/dist/js/components/tooltip.min.js +1 -1
  43. package/dist/js/components/upload.js +2 -2
  44. package/dist/js/components/upload.min.js +1 -1
  45. package/dist/js/uikit-core.js +452 -449
  46. package/dist/js/uikit-core.min.js +1 -1
  47. package/dist/js/uikit-icons.js +1 -1
  48. package/dist/js/uikit-icons.min.js +1 -1
  49. package/dist/js/uikit.js +6837 -6836
  50. package/dist/js/uikit.min.js +1 -1
  51. package/package.json +8 -7
  52. package/src/js/api/app.js +1 -1
  53. package/src/js/api/boot.js +2 -2
  54. package/src/js/api/component.js +1 -1
  55. package/src/js/api/computed.js +2 -2
  56. package/src/js/api/events.js +2 -2
  57. package/src/js/api/global.js +3 -3
  58. package/src/js/api/hooks.js +4 -4
  59. package/src/js/api/instance.js +3 -3
  60. package/src/js/api/log.js +1 -1
  61. package/src/js/api/observables.js +1 -1
  62. package/src/js/api/observer.js +2 -2
  63. package/src/js/api/options.js +2 -2
  64. package/src/js/api/props.js +2 -2
  65. package/src/js/api/state.js +2 -2
  66. package/src/js/components/countdown.js +1 -1
  67. package/src/js/components/filter.js +5 -5
  68. package/src/js/components/internal/lightbox-animations.js +1 -1
  69. package/src/js/components/internal/slider-transitioner.js +6 -6
  70. package/src/js/components/internal/slideshow-animations.js +1 -1
  71. package/src/js/components/lightbox-panel.js +10 -10
  72. package/src/js/components/lightbox.js +2 -2
  73. package/src/js/components/notification.js +4 -4
  74. package/src/js/components/parallax.js +3 -3
  75. package/src/js/components/slider-parallax.js +1 -1
  76. package/src/js/components/slider.js +12 -12
  77. package/src/js/components/slideshow.js +3 -3
  78. package/src/js/components/sortable.js +4 -4
  79. package/src/js/components/tooltip.js +6 -6
  80. package/src/js/components/upload.js +4 -4
  81. package/src/js/core/accordion.js +8 -8
  82. package/src/js/core/alert.js +2 -2
  83. package/src/js/core/cover.js +1 -1
  84. package/src/js/core/drop.js +12 -12
  85. package/src/js/core/dropnav.js +7 -7
  86. package/src/js/core/form-custom.js +1 -1
  87. package/src/js/core/grid.js +9 -9
  88. package/src/js/core/height-match.js +2 -2
  89. package/src/js/core/height-viewport.js +1 -1
  90. package/src/js/core/icon.js +23 -23
  91. package/src/js/core/img.js +2 -2
  92. package/src/js/core/index.js +16 -14
  93. package/src/js/core/leader.js +2 -2
  94. package/src/js/core/modal.js +7 -7
  95. package/src/js/core/navbar.js +4 -4
  96. package/src/js/core/offcanvas.js +3 -3
  97. package/src/js/core/overflow-auto.js +3 -3
  98. package/src/js/core/responsive.js +3 -3
  99. package/src/js/core/scrollspy-nav.js +1 -1
  100. package/src/js/core/scrollspy.js +1 -1
  101. package/src/js/core/sticky.js +12 -12
  102. package/src/js/core/svg.js +4 -4
  103. package/src/js/core/switcher.js +7 -7
  104. package/src/js/core/tab.js +2 -2
  105. package/src/js/core/toggle.js +5 -5
  106. package/src/js/core/video.js +1 -1
  107. package/src/js/mixin/animate.js +1 -1
  108. package/src/js/mixin/i18n.js +1 -1
  109. package/src/js/mixin/internal/animate-fade.js +14 -14
  110. package/src/js/mixin/internal/animate-slide.js +1 -1
  111. package/src/js/mixin/internal/scroll.js +1 -1
  112. package/src/js/mixin/modal.js +15 -12
  113. package/src/js/mixin/parallax.js +2 -2
  114. package/src/js/mixin/position.js +2 -2
  115. package/src/js/mixin/slider-drag.js +1 -1
  116. package/src/js/mixin/slider-nav.js +8 -9
  117. package/src/js/mixin/slider.js +9 -9
  118. package/src/js/mixin/slideshow.js +1 -1
  119. package/src/js/mixin/togglable.js +4 -4
  120. package/src/js/uikit-core.js +2 -2
  121. package/src/js/uikit.js +2 -2
  122. package/src/js/util/animation.js +8 -8
  123. package/src/js/util/class.js +1 -1
  124. package/src/js/util/dimensions.js +5 -5
  125. package/src/js/util/dom.js +3 -3
  126. package/src/js/util/event.js +3 -3
  127. package/src/js/util/filter.js +1 -1
  128. package/src/js/util/lang.js +4 -4
  129. package/src/js/util/observer.js +2 -2
  130. package/src/js/util/player.js +1 -1
  131. package/src/js/util/position.js +5 -5
  132. package/src/js/util/selector.js +1 -1
  133. package/src/js/util/style.js +1 -1
  134. package/src/js/util/svg.js +2 -2
  135. package/src/js/util/viewport.js +6 -6
  136. package/tests/js/index.js +7 -7
@@ -1,8 +1,3 @@
1
- import Class from '../mixin/class';
2
- import Togglable from '../mixin/togglable';
3
- import { keyMap } from '../util/keys';
4
- import { generateId } from '../api/instance';
5
- import { lazyload } from '../api/observables';
6
1
  import {
7
2
  $,
8
3
  $$,
@@ -25,6 +20,11 @@ import {
25
20
  within,
26
21
  wrapAll,
27
22
  } from 'uikit-util';
23
+ import { generateId } from '../api/instance';
24
+ import { lazyload } from '../api/observables';
25
+ import Class from '../mixin/class';
26
+ import Togglable from '../mixin/togglable';
27
+ import { keyMap } from '../util/keys';
28
28
 
29
29
  export default {
30
30
  mixins: [Class, Togglable],
@@ -89,7 +89,7 @@ export default {
89
89
  for (const el of items) {
90
90
  const isOpen = hasClass(
91
91
  this.items.find((item) => within(el, item)),
92
- this.clsOpen
92
+ this.clsOpen,
93
93
  );
94
94
 
95
95
  hide(el, !isOpen);
@@ -190,8 +190,8 @@ export default {
190
190
  }
191
191
 
192
192
  return transition(el, show, this);
193
- })
194
- )
193
+ }),
194
+ ),
195
195
  );
196
196
  },
197
197
  },
@@ -1,6 +1,6 @@
1
+ import { css, toFloat, Transition } from 'uikit-util';
1
2
  import Class from '../mixin/class';
2
3
  import Togglable from '../mixin/togglable';
3
- import { css, toFloat, Transition } from 'uikit-util';
4
4
 
5
5
  export default {
6
6
  mixins: [Class, Togglable],
@@ -55,6 +55,6 @@ function animate(el, show, { duration, transition, velocity }) {
55
55
  opacity: 0,
56
56
  },
57
57
  velocity * height + duration,
58
- transition
58
+ transition,
59
59
  );
60
60
  }
@@ -1,6 +1,6 @@
1
+ import { css, Dimensions, parent } from 'uikit-util';
1
2
  import { resize } from '../api/observables';
2
3
  import Video from './video';
3
- import { css, Dimensions, parent } from 'uikit-util';
4
4
 
5
5
  export default {
6
6
  mixins: [Video],
@@ -1,9 +1,3 @@
1
- import { lazyload } from '../api/observables';
2
- import Position from '../mixin/position';
3
- import Container from '../mixin/container';
4
- import Togglable from '../mixin/togglable';
5
- import { keyMap } from '../util/keys';
6
- import { preventBackgroundScroll } from '../mixin/internal/scroll';
7
1
  import {
8
2
  addClass,
9
3
  append,
@@ -34,6 +28,12 @@ import {
34
28
  removeClass,
35
29
  within,
36
30
  } from 'uikit-util';
31
+ import { lazyload } from '../api/observables';
32
+ import Container from '../mixin/container';
33
+ import { preventBackgroundScroll } from '../mixin/internal/scroll';
34
+ import Position from '../mixin/position';
35
+ import Togglable from '../mixin/togglable';
36
+ import { keyMap } from '../util/keys';
37
37
 
38
38
  export let active;
39
39
 
@@ -351,7 +351,7 @@ export default {
351
351
 
352
352
  this.showTimer = setTimeout(
353
353
  () => this.toggleElement(this.$el, true),
354
- (delay && this.delayShow) || 0
354
+ (delay && this.delayShow) || 0,
355
355
  );
356
356
  },
357
357
 
@@ -361,7 +361,7 @@ export default {
361
361
  this.clearTimers();
362
362
 
363
363
  this.isDelaying = getPositionedElements(this.$el).some((el) =>
364
- this.tracker.movesTo(el)
364
+ this.tracker.movesTo(el),
365
365
  );
366
366
 
367
367
  if (delay && this.isDelaying) {
@@ -405,7 +405,7 @@ export default {
405
405
  css(this.$el, {
406
406
  [prop]: Math.min(
407
407
  offset(this.boundary[i])[prop],
408
- viewports[i][prop] - 2 * viewportOffset
408
+ viewports[i][prop] - 2 * viewportOffset,
409
409
  ),
410
410
  [`overflow-${axis}`]: 'auto',
411
411
  });
@@ -438,11 +438,11 @@ export default {
438
438
  ? targetOffset[this.inset ? end : start] -
439
439
  Math.max(
440
440
  offset(this.boundary[i])[start],
441
- viewports[i][start] + viewportOffset
441
+ viewports[i][start] + viewportOffset,
442
442
  )
443
443
  : Math.min(
444
444
  offset(this.boundary[i])[end],
445
- viewports[i][end] - viewportOffset
445
+ viewports[i][end] - viewportOffset,
446
446
  ) - targetOffset[this.inset ? start : end]) - positionOffset,
447
447
  [`overflow-${axis}`]: 'auto',
448
448
  });
@@ -513,7 +513,7 @@ function listenForBackgroundClose(drop) {
513
513
  drop.hide(false);
514
514
  }
515
515
  },
516
- true
516
+ true,
517
517
  );
518
518
  }
519
519
  });
@@ -1,6 +1,3 @@
1
- import { active } from './drop';
2
- import Class from '../mixin/class';
3
- import Container from '../mixin/container';
4
1
  import {
5
2
  $,
6
3
  $$,
@@ -25,7 +22,10 @@ import {
25
22
  Transition,
26
23
  within,
27
24
  } from 'uikit-util';
25
+ import Class from '../mixin/class';
26
+ import Container from '../mixin/container';
28
27
  import { keyMap } from '../util/keys';
28
+ import { active } from './drop';
29
29
 
30
30
  export default {
31
31
  mixins: [Class, Container],
@@ -108,7 +108,7 @@ export default {
108
108
  'uk-dropbar',
109
109
  'uk-dropbar-top',
110
110
  this.clsDropbar,
111
- `uk-${this.$options.name}-dropbar`
111
+ `uk-${this.$options.name}-dropbar`,
112
112
  );
113
113
  },
114
114
 
@@ -210,7 +210,7 @@ export default {
210
210
  getIndex(
211
211
  next,
212
212
  elements,
213
- findIndex(elements, (el) => matches(el, ':focus'))
213
+ findIndex(elements, (el) => matches(el, ':focus')),
214
214
  )
215
215
  ].focus();
216
216
  }
@@ -294,7 +294,7 @@ export default {
294
294
  css(this.dropbar, 'top', this.dropbar.offsetTop - (dropbarOffset.top - minTop));
295
295
  this.transitionTo(
296
296
  maxBottom - minTop + toFloat(css(target, 'marginBottom')),
297
- target
297
+ target,
298
298
  );
299
299
  };
300
300
  this._observer = observeResize([drop.$el, ...drop.target], adjustHeight);
@@ -376,7 +376,7 @@ export default {
376
376
  {
377
377
  clipPath: `polygon(0 0,100% 0,100% ${newHeight}px,0 ${newHeight}px)`,
378
378
  },
379
- this.duration
379
+ this.duration,
380
380
  ).finally(() => css(el, { clipPath: '' })),
381
381
  ]).catch(noop);
382
382
  },
@@ -1,5 +1,5 @@
1
- import Class from '../mixin/class';
2
1
  import { $, $$, closest, isInput, matches, parent, selInput } from 'uikit-util';
2
+ import Class from '../mixin/class';
3
3
 
4
4
  export default {
5
5
  mixins: [Class],
@@ -1,6 +1,3 @@
1
- import { scroll } from '../api/observables';
2
- import Margin from './margin';
3
- import Class from '../mixin/class';
4
1
  import {
5
2
  addClass,
6
3
  children,
@@ -12,6 +9,9 @@ import {
12
9
  toFloat,
13
10
  toggleClass,
14
11
  } from 'uikit-util';
12
+ import { scroll } from '../api/observables';
13
+ import Class from '../mixin/class';
14
+ import Margin from './margin';
15
15
 
16
16
  export default {
17
17
  extends: Margin,
@@ -79,9 +79,9 @@ export default {
79
79
  (newPadding, hgt, i) =>
80
80
  Math.max(
81
81
  newPadding,
82
- hgt + margin + (i % 2 ? padding : padding / 8) - elHeight
82
+ hgt + margin + (i % 2 ? padding : padding / 8) - elHeight,
83
83
  ),
84
- 0
84
+ 0,
85
85
  );
86
86
  }
87
87
 
@@ -124,9 +124,9 @@ export default {
124
124
  : `translateY(${
125
125
  (translates && -translates[i][j]) +
126
126
  (scrolled ? (i % 2 ? scrolled : scrolled / 8) : 0)
127
- }px)`
128
- )
129
- )
127
+ }px)`,
128
+ ),
129
+ ),
130
130
  );
131
131
  },
132
132
 
@@ -146,7 +146,7 @@ function getTranslates(rows, columns) {
146
146
  let prev = 0;
147
147
  return elements.map(
148
148
  (element, row) =>
149
- (prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0)
149
+ (prev += row ? rowHeights[row - 1] - elements[row - 1].offsetHeight : 0),
150
150
  );
151
151
  });
152
152
  }
@@ -1,6 +1,6 @@
1
- import { getRows } from './margin';
2
- import { resize } from '../api/observables';
3
1
  import { $$, boxModelAdjust, css, dimensions, isVisible, pick } from 'uikit-util';
2
+ import { resize } from '../api/observables';
3
+ import { getRows } from './margin';
4
4
 
5
5
  export default {
6
6
  args: 'target',
@@ -47,7 +47,7 @@ export default {
47
47
  const { body, scrollingElement } = document;
48
48
  const scrollElement = scrollParent(this.$el);
49
49
  const { height: viewportHeight } = offsetViewport(
50
- scrollElement === body ? scrollingElement : scrollElement
50
+ scrollElement === body ? scrollingElement : scrollElement,
51
51
  );
52
52
 
53
53
  if (this.expand) {
@@ -1,25 +1,3 @@
1
- import Svg from '../mixin/svg';
2
- import I18n from '../mixin/i18n';
3
- import closeIcon from '../../images/components/close-icon.svg';
4
- import closeLarge from '../../images/components/close-large.svg';
5
- import dropParentIcon from '../../images/components/drop-parent-icon.svg';
6
- import marker from '../../images/components/marker.svg';
7
- import navParentIcon from '../../images/components/nav-parent-icon.svg';
8
- import navParentIconLarge from '../../images/components/nav-parent-icon-large.svg';
9
- import navbarParentIcon from '../../images/components/navbar-parent-icon.svg';
10
- import navbarToggleIcon from '../../images/components/navbar-toggle-icon.svg';
11
- import overlayIcon from '../../images/components/overlay-icon.svg';
12
- import paginationNext from '../../images/components/pagination-next.svg';
13
- import paginationPrevious from '../../images/components/pagination-previous.svg';
14
- import searchIcon from '../../images/components/search-icon.svg';
15
- import searchLarge from '../../images/components/search-large.svg';
16
- import searchNavbar from '../../images/components/search-navbar.svg';
17
- import slidenavNext from '../../images/components/slidenav-next.svg';
18
- import slidenavNextLarge from '../../images/components/slidenav-next-large.svg';
19
- import slidenavPrevious from '../../images/components/slidenav-previous.svg';
20
- import slidenavPreviousLarge from '../../images/components/slidenav-previous-large.svg';
21
- import spinner from '../../images/components/spinner.svg';
22
- import totop from '../../images/components/totop.svg';
23
1
  import {
24
2
  $,
25
3
  addClass,
@@ -37,6 +15,28 @@ import {
37
15
  parents,
38
16
  swap,
39
17
  } from 'uikit-util';
18
+ import closeIcon from '../../images/components/close-icon.svg';
19
+ import closeLarge from '../../images/components/close-large.svg';
20
+ import dropParentIcon from '../../images/components/drop-parent-icon.svg';
21
+ import marker from '../../images/components/marker.svg';
22
+ import navParentIconLarge from '../../images/components/nav-parent-icon-large.svg';
23
+ import navParentIcon from '../../images/components/nav-parent-icon.svg';
24
+ import navbarParentIcon from '../../images/components/navbar-parent-icon.svg';
25
+ import navbarToggleIcon from '../../images/components/navbar-toggle-icon.svg';
26
+ import overlayIcon from '../../images/components/overlay-icon.svg';
27
+ import paginationNext from '../../images/components/pagination-next.svg';
28
+ import paginationPrevious from '../../images/components/pagination-previous.svg';
29
+ import searchIcon from '../../images/components/search-icon.svg';
30
+ import searchLarge from '../../images/components/search-large.svg';
31
+ import searchNavbar from '../../images/components/search-navbar.svg';
32
+ import slidenavNextLarge from '../../images/components/slidenav-next-large.svg';
33
+ import slidenavNext from '../../images/components/slidenav-next.svg';
34
+ import slidenavPreviousLarge from '../../images/components/slidenav-previous-large.svg';
35
+ import slidenavPrevious from '../../images/components/slidenav-previous.svg';
36
+ import spinner from '../../images/components/spinner.svg';
37
+ import totop from '../../images/components/totop.svg';
38
+ import I18n from '../mixin/i18n';
39
+ import Svg from '../mixin/svg';
40
40
 
41
41
  const icons = {
42
42
  spinner,
@@ -243,7 +243,7 @@ function install(UIkit) {
243
243
  apply(document.body, (el) =>
244
244
  each(UIkit.getComponents(el), (cmp) => {
245
245
  cmp.$options.isIcon && cmp.icon in added && cmp.$reset();
246
- })
246
+ }),
247
247
  );
248
248
  }
249
249
  };
@@ -1,5 +1,3 @@
1
- import { parseOptions } from '../api/options';
2
- import { intersection } from '../api/observables';
3
1
  import {
4
2
  append,
5
3
  attr,
@@ -21,6 +19,8 @@ import {
21
19
  startsWith,
22
20
  trigger,
23
21
  } from 'uikit-util';
22
+ import { intersection } from '../api/observables';
23
+ import { parseOptions } from '../api/options';
24
24
 
25
25
  const nativeLazyLoad = inBrowser && 'loading' in HTMLImageElement.prototype;
26
26
 
@@ -28,17 +28,19 @@ export { default as Toggle } from './toggle';
28
28
  export { default as Video } from './video';
29
29
 
30
30
  // Icon components
31
- export { Close } from './icon';
32
- export { Marker } from './icon';
33
- export { NavbarToggleIcon } from './icon';
34
- export { NavParentIcon } from './icon';
35
- export { PaginationNext } from './icon';
36
- export { PaginationPrevious } from './icon';
37
- export { Search as SearchIcon } from './icon';
38
- export { Slidenav as SlidenavNext } from './icon';
39
- export { Slidenav as SlidenavPrevious } from './icon';
40
- export { Spinner } from './icon';
41
- export { Totop } from './icon';
42
- export { IconComponent as DropParentIcon } from './icon';
43
- export { IconComponent as NavbarParentIcon } from './icon';
44
- export { IconComponent as OverlayIcon } from './icon';
31
+ export {
32
+ Close,
33
+ IconComponent as DropParentIcon,
34
+ Marker,
35
+ NavParentIcon,
36
+ IconComponent as NavbarParentIcon,
37
+ NavbarToggleIcon,
38
+ IconComponent as OverlayIcon,
39
+ PaginationNext,
40
+ PaginationPrevious,
41
+ Search as SearchIcon,
42
+ Slidenav as SlidenavNext,
43
+ Slidenav as SlidenavPrevious,
44
+ Spinner,
45
+ Totop,
46
+ } from './icon';
@@ -1,7 +1,7 @@
1
+ import { attr, css, toggleClass, unwrap, wrapInner } from 'uikit-util';
2
+ import { resize } from '../api/observables';
1
3
  import Class from '../mixin/class';
2
4
  import Media from '../mixin/media';
3
- import { resize } from '../api/observables';
4
- import { attr, css, toggleClass, unwrap, wrapInner } from 'uikit-util';
5
5
 
6
6
  export default {
7
7
  mixins: [Class, Media],
@@ -1,4 +1,3 @@
1
- import Modal from '../mixin/modal';
2
1
  import {
3
2
  $,
4
3
  addClass,
@@ -12,6 +11,7 @@ import {
12
11
  on,
13
12
  removeClass,
14
13
  } from 'uikit-util';
14
+ import Modal from '../mixin/modal';
15
15
 
16
16
  export default {
17
17
  install,
@@ -61,7 +61,7 @@ function install({ modal }) {
61
61
  `<div class="uk-modal">
62
62
  <div class="uk-modal-dialog">${content}</div>
63
63
  </div>`,
64
- { stack: true, role: 'alertdialog', ...options }
64
+ { stack: true, role: 'alertdialog', ...options },
65
65
  );
66
66
 
67
67
  dialog.show();
@@ -73,7 +73,7 @@ function install({ modal }) {
73
73
  await Promise.resolve();
74
74
  dialog.$destroy(true);
75
75
  },
76
- { self: true }
76
+ { self: true },
77
77
  );
78
78
 
79
79
  return dialog;
@@ -89,7 +89,7 @@ function install({ modal }) {
89
89
  i18n.ok
90
90
  }</button>
91
91
  </div>`,
92
- options
92
+ options,
93
93
  );
94
94
  };
95
95
 
@@ -105,7 +105,7 @@ function install({ modal }) {
105
105
  </div>
106
106
  </form>`,
107
107
  options,
108
- () => Promise.reject()
108
+ () => Promise.reject(),
109
109
  );
110
110
  };
111
111
 
@@ -125,7 +125,7 @@ function install({ modal }) {
125
125
  </form>`,
126
126
  options,
127
127
  () => null,
128
- () => input.value
128
+ () => input.value,
129
129
  );
130
130
 
131
131
  const { $el } = promise.dialog;
@@ -161,7 +161,7 @@ function install({ modal }) {
161
161
  dialog.hide();
162
162
  });
163
163
  }),
164
- { dialog }
164
+ { dialog },
165
165
  );
166
166
  }
167
167
  }
@@ -1,5 +1,5 @@
1
- import Dropnav from './dropnav';
2
1
  import { $$, css, hasClass } from 'uikit-util';
2
+ import Dropnav from './dropnav';
3
3
 
4
4
  export default {
5
5
  extends: Dropnav,
@@ -15,7 +15,7 @@ export default {
15
15
  const justify = hasClass(this.$el, 'uk-navbar-justify');
16
16
  for (const container of $$(
17
17
  '.uk-navbar-nav, .uk-navbar-left, .uk-navbar-right',
18
- this.$el
18
+ this.$el,
19
19
  )) {
20
20
  css(
21
21
  container,
@@ -23,9 +23,9 @@ export default {
23
23
  justify
24
24
  ? $$(
25
25
  '.uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle',
26
- container
26
+ container,
27
27
  ).length
28
- : ''
28
+ : '',
29
29
  );
30
30
  }
31
31
  },
@@ -1,5 +1,3 @@
1
- import Modal from '../mixin/modal';
2
- import { swipe } from '../api/observables';
3
1
  import {
4
2
  $,
5
3
  addClass,
@@ -14,6 +12,8 @@ import {
14
12
  unwrap,
15
13
  wrapAll,
16
14
  } from 'uikit-util';
15
+ import { swipe } from '../api/observables';
16
+ import Modal from '../mixin/modal';
17
17
 
18
18
  export default {
19
19
  mixins: [Modal],
@@ -119,7 +119,7 @@ export default {
119
119
  addClass(
120
120
  this.panel,
121
121
  this.clsSidebarAnimation,
122
- this.mode === 'reveal' ? '' : this.clsMode
122
+ this.mode === 'reveal' ? '' : this.clsMode,
123
123
  );
124
124
 
125
125
  height(body); // force reflow
@@ -1,6 +1,6 @@
1
- import Class from '../mixin/class';
2
- import { resize } from '../api/observables';
3
1
  import { closest, css, dimensions, height, isVisible } from 'uikit-util';
2
+ import { resize } from '../api/observables';
3
+ import Class from '../mixin/class';
4
4
 
5
5
  export default {
6
6
  mixins: [Class],
@@ -40,7 +40,7 @@ export default {
40
40
  return {
41
41
  max: Math.max(
42
42
  this.minHeight,
43
- height(this.container) - (dimensions(this.content).height - height(this.$el))
43
+ height(this.container) - (dimensions(this.content).height - height(this.$el)),
44
44
  ),
45
45
  };
46
46
  },
@@ -1,5 +1,5 @@
1
- import { resize } from '../api/observables';
2
1
  import { addClass, Dimensions, height, isVisible, parent, width } from 'uikit-util';
2
+ import { resize } from '../api/observables';
3
3
 
4
4
  export default {
5
5
  props: ['width', 'height'],
@@ -27,8 +27,8 @@ export default {
27
27
  height: this.height,
28
28
  width: this.width,
29
29
  },
30
- dim
31
- ).height
30
+ dim,
31
+ ).height,
32
32
  );
33
33
  },
34
34
 
@@ -1,4 +1,3 @@
1
- import { intersection, scroll } from '../api/observables';
2
1
  import {
3
2
  $$,
4
3
  closest,
@@ -12,6 +11,7 @@ import {
12
11
  toggleClass,
13
12
  trigger,
14
13
  } from 'uikit-util';
14
+ import { intersection, scroll } from '../api/observables';
15
15
 
16
16
  export default {
17
17
  props: {
@@ -1,4 +1,3 @@
1
- import { intersection } from '../api/observables';
2
1
  import {
3
2
  $$,
4
3
  css,
@@ -10,6 +9,7 @@ import {
10
9
  toggleClass,
11
10
  trigger,
12
11
  } from 'uikit-util';
12
+ import { intersection } from '../api/observables';
13
13
 
14
14
  export default {
15
15
  args: 'cls',
@@ -1,11 +1,8 @@
1
- import Class from '../mixin/class';
2
- import Media from '../mixin/media';
3
- import { resize, scroll, viewport } from '../api/observables';
4
1
  import {
5
2
  $,
3
+ Animation,
6
4
  addClass,
7
5
  after,
8
- Animation,
9
6
  before,
10
7
  clamp,
11
8
  css,
@@ -24,11 +21,14 @@ import {
24
21
  removeClass,
25
22
  replaceClass,
26
23
  toFloat,
27
- toggleClass,
28
24
  toPx,
25
+ toggleClass,
29
26
  trigger,
30
27
  within,
31
28
  } from 'uikit-util';
29
+ import { resize, scroll, viewport } from '../api/observables';
30
+ import Class from '../mixin/class';
31
+ import Media from '../mixin/media';
32
32
 
33
33
  export default {
34
34
  mixins: [Class, Media],
@@ -86,7 +86,7 @@ export default {
86
86
  this.setActive(false);
87
87
  },
88
88
 
89
- disconnected() {
89
+ beforeDisconnect() {
90
90
  if (this.isFixed) {
91
91
  this.hide();
92
92
  removeClass(this.selTarget, this.clsInactive);
@@ -145,7 +145,7 @@ export default {
145
145
  this.transitionInProgress = once(
146
146
  this.$el,
147
147
  'transitionend transitioncancel',
148
- () => (this.transitionInProgress = null)
148
+ () => (this.transitionInProgress = null),
149
149
  );
150
150
  },
151
151
  },
@@ -206,7 +206,7 @@ export default {
206
206
  parseProp(this.end, this.$el, topOffset + height, true) -
207
207
  elHeight -
208
208
  offset +
209
- overflow
209
+ overflow,
210
210
  );
211
211
 
212
212
  sticky =
@@ -216,7 +216,7 @@ export default {
216
216
  end ===
217
217
  Math.min(
218
218
  maxScrollHeight,
219
- parseProp('!*', this.$el, 0, true) - elHeight - offset + overflow
219
+ parseProp('!*', this.$el, 0, true) - elHeight - offset + overflow,
220
220
  ) &&
221
221
  css(parent(this.$el), 'overflowY') === 'visible';
222
222
 
@@ -280,12 +280,12 @@ export default {
280
280
  scroll,
281
281
  prevScroll,
282
282
  offsetParentTop: getOffset(
283
- (this.isFixed ? this.placeholder : this.$el).offsetParent
283
+ (this.isFixed ? this.placeholder : this.$el).offsetParent,
284
284
  ).top,
285
285
  overflowScroll: clamp(
286
286
  overflowScroll + clamp(scroll, start, end) - clamp(prevScroll, start, end),
287
287
  0,
288
- overflow
288
+ overflow,
289
289
  ),
290
290
  };
291
291
  },
@@ -429,7 +429,7 @@ export default {
429
429
  toggleClass(
430
430
  this.$el,
431
431
  this.clsBelow,
432
- scroll > topOffset + (sticky ? Math.min(height, elHeight) : height)
432
+ scroll > topOffset + (sticky ? Math.min(height, elHeight) : height),
433
433
  );
434
434
  addClass(this.$el, this.clsFixed);
435
435
  },