uikit 3.14.2 → 3.14.3

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 (44) hide show
  1. package/CHANGELOG.md +10 -3
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +24 -84
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +17 -101
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +17 -101
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +2 -2
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +2 -2
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +2 -2
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +29 -135
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +75 -209
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +7 -7
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/mixin/parallax.js +1 -1
  44. package/src/js/util/dom.js +4 -3
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.14.2 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.14.3 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -868,7 +868,6 @@
868
868
  }
869
869
 
870
870
  function transition(element, props, duration, timing) {if (duration === void 0) {duration = 400;}if (timing === void 0) {timing = 'linear';}
871
- duration = Math.round(duration);
872
871
  return Promise.all(
873
872
  toNodes(element).map(
874
873
  (element) =>
@@ -1183,14 +1182,15 @@
1183
1182
  }
1184
1183
 
1185
1184
  function empty(element) {
1186
- return replaceChildren(element, '');
1185
+ element = $(element);
1186
+ element.innerHTML = '';
1187
+ return element;
1187
1188
  }
1188
1189
 
1189
1190
  function html(parent, html) {
1190
- return isUndefined(html) ? $(parent).innerHTML : replaceChildren(parent, html);
1191
+ return isUndefined(html) ? $(parent).innerHTML : append(empty(parent), html);
1191
1192
  }
1192
1193
 
1193
- const replaceChildren = applyFn('replaceChildren');
1194
1194
  const prepend = applyFn('prepend');
1195
1195
  const append = applyFn('append');
1196
1196
  const before = applyFn('before');
@@ -1887,7 +1887,7 @@
1887
1887
  return clamp((scrollTop - start) / (end - start));
1888
1888
  }
1889
1889
 
1890
- function scrollParents(element, overflowRe, scrollable) {if (overflowRe === void 0) {overflowRe = /auto|scroll|hidden|clip/;}if (scrollable === void 0) {scrollable = false;}
1890
+ function scrollParents(element, overflowRe, scrollable) {if (overflowRe === void 0) {overflowRe = /auto|scroll|hidden/;}if (scrollable === void 0) {scrollable = false;}
1891
1891
  const scrollEl = scrollingElement(element);
1892
1892
 
1893
1893
  let ancestors = parents(element).reverse();
@@ -2178,7 +2178,6 @@
2178
2178
  isTag: isTag,
2179
2179
  empty: empty,
2180
2180
  html: html,
2181
- replaceChildren: replaceChildren,
2182
2181
  prepend: prepend,
2183
2182
  append: append,
2184
2183
  before: before,
@@ -2950,7 +2949,7 @@
2950
2949
  UIkit.data = '__uikit__';
2951
2950
  UIkit.prefix = 'uk-';
2952
2951
  UIkit.options = {};
2953
- UIkit.version = '3.14.2';
2952
+ UIkit.version = '3.14.3';
2954
2953
 
2955
2954
  globalAPI(UIkit);
2956
2955
  hooksAPI(UIkit);
@@ -3059,7 +3058,7 @@
3059
3058
 
3060
3059
  initProps: {
3061
3060
  overflow: '',
3062
- maxHeight: '',
3061
+ height: '',
3063
3062
  paddingTop: '',
3064
3063
  paddingBottom: '',
3065
3064
  marginTop: '',
@@ -3069,7 +3068,7 @@
3069
3068
 
3070
3069
  hideProps: {
3071
3070
  overflow: 'hidden',
3072
- maxHeight: 0,
3071
+ height: 0,
3073
3072
  paddingTop: 0,
3074
3073
  paddingBottom: 0,
3075
3074
  marginTop: 0,
@@ -3084,7 +3083,7 @@
3084
3083
  },
3085
3084
 
3086
3085
  hasTransition(_ref2) {let { animation } = _ref2;
3087
- return startsWith(animation[0], 'slide');
3086
+ return this.hasAnimation && animation[0] === true;
3088
3087
  } },
3089
3088
 
3090
3089
 
@@ -3108,9 +3107,9 @@
3108
3107
  isFunction(animate) ?
3109
3108
  animate :
3110
3109
  animate === false || !this.hasAnimation ?
3111
- toggleInstant(this) :
3110
+ this._toggle :
3112
3111
  this.hasTransition ?
3113
- toggleTransition(this) :
3112
+ toggleHeight(this) :
3114
3113
  toggleAnimation(this))(
3115
3114
  el, show);
3116
3115
 
@@ -3174,25 +3173,7 @@
3174
3173
 
3175
3174
 
3176
3175
 
3177
- function toggleInstant(_ref3) {let { _toggle } = _ref3;
3178
- return (el, show) => {
3179
- Animation.cancel(el);
3180
- Transition.cancel(el);
3181
- return _toggle(el, show);
3182
- };
3183
- }
3184
-
3185
- function toggleTransition(cmp) {
3186
- switch (cmp.animation[0]) {
3187
- case 'slide-left':
3188
- return slideHorizontal(cmp);
3189
- case 'slide-right':
3190
- return slideHorizontal(cmp, true);}
3191
-
3192
- return slide(cmp);
3193
- }
3194
-
3195
- function slide(_ref4)
3176
+ function toggleHeight(_ref3)
3196
3177
 
3197
3178
 
3198
3179
 
@@ -3200,17 +3181,14 @@
3200
3181
 
3201
3182
 
3202
3183
 
3203
- {let { isToggled, duration, velocity, initProps, hideProps, transition, _toggle } = _ref4;
3184
+ {let { isToggled, duration, velocity, initProps, hideProps, transition, _toggle } = _ref3;
3204
3185
  return (el, show) => {
3205
3186
  const inProgress = Transition.inProgress(el);
3206
- const inner =
3207
- !inProgress && el.hasChildNodes() ?
3187
+ const inner = el.hasChildNodes() ?
3208
3188
  toFloat(css(el.firstElementChild, 'marginTop')) +
3209
3189
  toFloat(css(el.lastElementChild, 'marginBottom')) :
3210
3190
  0;
3211
- const currentHeight = isVisible(el) ? toFloat(css(el, 'height')) + inner : 0;
3212
-
3213
- const props = inProgress ? css(el, Object.keys(initProps)) : show ? hideProps : initProps;
3191
+ const currentHeight = isVisible(el) ? height(el) + (inProgress ? 0 : inner) : 0;
3214
3192
 
3215
3193
  Transition.cancel(el);
3216
3194
 
@@ -3218,97 +3196,34 @@
3218
3196
  _toggle(el, true);
3219
3197
  }
3220
3198
 
3221
- css(el, 'maxHeight', '');
3199
+ height(el, '');
3222
3200
 
3223
3201
  // Update child components first
3224
3202
  fastdom.flush();
3225
3203
 
3226
- const endHeight = toFloat(css(el, 'height')) + inner;
3227
- duration = velocity * endHeight + duration;
3204
+ const endHeight = height(el) + (inProgress ? 0 : inner);
3205
+ duration = velocity * el.offsetHeight + duration;
3228
3206
 
3229
- css(el, { ...props, maxHeight: currentHeight });
3207
+ height(el, currentHeight);
3230
3208
 
3231
3209
  return (
3232
3210
  show ?
3233
3211
  Transition.start(
3234
3212
  el,
3235
- { ...initProps, overflow: 'hidden', maxHeight: endHeight },
3236
- duration * (1 - currentHeight / endHeight),
3213
+ { ...initProps, overflow: 'hidden', height: endHeight },
3214
+ Math.round(duration * (1 - currentHeight / endHeight)),
3237
3215
  transition) :
3238
3216
 
3239
3217
  Transition.start(
3240
3218
  el,
3241
3219
  hideProps,
3242
- duration * (currentHeight / endHeight),
3220
+ Math.round(duration * (currentHeight / endHeight)),
3243
3221
  transition).
3244
3222
  then(() => _toggle(el, false))).
3245
3223
  then(() => css(el, initProps));
3246
3224
  };
3247
3225
  }
3248
3226
 
3249
- function slideHorizontal(_ref5, right) {let { isToggled, duration, velocity, transition, _toggle } = _ref5;
3250
- return (el, show) => {
3251
- const visible = isVisible(el);
3252
- const marginLeft = toFloat(css(el, 'marginLeft'));
3253
-
3254
- Transition.cancel(el);
3255
-
3256
- const [scrollElement] = scrollParents(el);
3257
- css(scrollElement, 'overflowX', 'hidden');
3258
-
3259
- if (!isToggled(el)) {
3260
- _toggle(el, true);
3261
- }
3262
-
3263
- const width = toFloat(css(el, 'width'));
3264
- duration = velocity * width + duration;
3265
-
3266
- const percent = visible ? (width + marginLeft * (right ? -1 : 1)) / width * 100 : 0;
3267
- const offsetEl = offset(el);
3268
- const useClipPath = right ?
3269
- offsetEl.right < scrollElement.clientWidth :
3270
- Math.round(offsetEl.left) > 0;
3271
-
3272
- css(el, {
3273
- clipPath: useClipPath ?
3274
- right ? "polygon(0 0," +
3275
- percent + "% 0," + percent + "% 100%,0 100%)" : "polygon(" + (
3276
- 100 - percent) + "% 0,100% 0,100% 100%," + (100 - percent) + "% 100%)" :
3277
- '',
3278
- marginLeft: (100 - percent) * (right ? 1 : -1) / 100 * width });
3279
-
3280
-
3281
- return (
3282
- show ?
3283
- Transition.start(
3284
- el,
3285
- {
3286
- clipPath: useClipPath ? "polygon(0 0,100% 0,100% 100%,0 100%)" : '',
3287
- marginLeft: 0 },
3288
-
3289
- duration * (1 - percent / 100),
3290
- transition) :
3291
-
3292
- Transition.start(
3293
- el,
3294
- {
3295
- clipPath: useClipPath ?
3296
- right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)" :
3297
-
3298
-
3299
- '',
3300
- marginLeft: (right ? 1 : -1) * width },
3301
-
3302
- duration * (percent / 100),
3303
- transition).
3304
- then(() => _toggle(el, false))).
3305
- then(() => {
3306
- css(scrollElement, 'overflowX', '');
3307
- css(el, { clipPath: '', marginLeft: '' });
3308
- });
3309
- };
3310
- }
3311
-
3312
3227
  function toggleAnimation(cmp) {
3313
3228
  return (el, show) => {
3314
3229
  Animation.cancel(el);
@@ -3342,7 +3257,7 @@
3342
3257
  data: {
3343
3258
  targets: '> *',
3344
3259
  active: false,
3345
- animation: ['slide'],
3260
+ animation: [true],
3346
3261
  collapsible: true,
3347
3262
  multiple: false,
3348
3263
  clsOpen: 'uk-open',
@@ -3452,7 +3367,7 @@
3452
3367
  }
3453
3368
 
3454
3369
  hide(content, false);
3455
- await slide(this)(el._wrapper, show);
3370
+ await toggleHeight(this)(el._wrapper, show);
3456
3371
  hide(content, !show);
3457
3372
 
3458
3373
  delete el._wrapper;
@@ -3486,7 +3401,7 @@
3486
3401
 
3487
3402
 
3488
3403
  data: {
3489
- animation: ['slide'],
3404
+ animation: [true],
3490
3405
  selClose: '.uk-alert-close',
3491
3406
  duration: 150,
3492
3407
  hideProps: { opacity: 0, ...Togglable.data.hideProps } },
@@ -3672,17 +3587,23 @@
3672
3587
 
3673
3588
  connected() {
3674
3589
  this.pos = this.$props.pos.split('-').concat('center').slice(0, 2);
3675
- [this.dir, this.align] = this.pos;
3676
- this.axis = includes(['top', 'bottom'], this.dir) ? 'y' : 'x';
3590
+ this.axis = includes(['top', 'bottom'], this.pos[0]) ? 'y' : 'x';
3677
3591
  },
3678
3592
 
3679
3593
  methods: {
3680
3594
  positionAt(element, target, boundary) {
3681
- let offset = [this.getPositionOffset(element), this.getShiftOffset(element)];
3595
+ const [dir, align] = this.pos;
3596
+
3597
+ let offset = toPx(
3598
+ this.offset === false ? getCssVar('position-offset', element) : this.offset,
3599
+ this.axis === 'x' ? 'width' : 'height',
3600
+ element);
3601
+
3602
+ offset = [includes(['left', 'top'], dir) ? -offset : +offset, 0];
3682
3603
 
3683
3604
  const attach = {
3684
- element: [flipPosition(this.dir), this.align],
3685
- target: [this.dir, this.align] };
3605
+ element: [flipPosition(dir), align],
3606
+ target: [dir, align] };
3686
3607
 
3687
3608
 
3688
3609
  if (this.axis === 'y') {
@@ -3692,41 +3613,13 @@
3692
3613
  offset = offset.reverse();
3693
3614
  }
3694
3615
 
3695
- // Ensure none positioned element does not generate scrollbars
3696
- const elDim = dimensions(element);
3697
- css(element, { top: -elDim.height, left: -elDim.width });
3698
-
3699
3616
  positionAt(element, target, {
3700
3617
  attach,
3701
3618
  offset,
3702
3619
  boundary,
3703
3620
  flip: this.flip,
3704
- viewportOffset: this.getViewportOffset(element) });
3705
-
3706
- },
3707
-
3708
- getPositionOffset(element) {
3709
- return (
3710
- toPx(
3711
- this.offset === false ? getCssVar('position-offset', element) : this.offset,
3712
- this.axis === 'x' ? 'width' : 'height',
3713
- element) * (
3714
- includes(['left', 'top'], this.dir) ? -1 : 1));
3715
-
3716
- },
3717
-
3718
- getShiftOffset(element) {
3719
- return includes(['center', 'justify', 'stretch'], this.align) ?
3720
- 0 :
3721
- toPx(
3722
- getCssVar('position-shift-offset', element),
3723
- this.axis === 'y' ? 'width' : 'height',
3724
- element) * (
3725
- includes(['left', 'top'], this.align) ? 1 : -1);
3726
- },
3621
+ viewportOffset: toPx(getCssVar('position-viewport-offset', element)) });
3727
3622
 
3728
- getViewportOffset(element) {
3729
- return toPx(getCssVar('position-viewport-offset', element));
3730
3623
  } } };
3731
3624
 
3732
3625
  let active$1;
@@ -3744,8 +3637,7 @@
3744
3637
  delayShow: Number,
3745
3638
  delayHide: Number,
3746
3639
  display: String,
3747
- clsDrop: String,
3748
- animateOut: Boolean },
3640
+ clsDrop: String },
3749
3641
 
3750
3642
 
3751
3643
  data: {
@@ -3759,8 +3651,7 @@
3759
3651
  clsDrop: false,
3760
3652
  animation: ['uk-animation-fade'],
3761
3653
  cls: 'uk-open',
3762
- container: false,
3763
- animateOut: false },
3654
+ container: false },
3764
3655
 
3765
3656
 
3766
3657
  created() {
@@ -3948,7 +3839,7 @@
3948
3839
  }
3949
3840
  }),
3950
3841
 
3951
- ...(this.display === 'static' && this.align !== 'stretch' ?
3842
+ ...(this.display === 'static' ?
3952
3843
  [] :
3953
3844
  (() => {
3954
3845
  const handler = () => this.$emit();
@@ -4009,7 +3900,7 @@
4009
3900
  methods: {
4010
3901
  show(target, delay) {if (target === void 0) {target = this.target;}if (delay === void 0) {delay = true;}
4011
3902
  if (this.isToggled() && target && this.target && target !== this.target) {
4012
- this.hide(false, false);
3903
+ this.hide(false);
4013
3904
  }
4014
3905
 
4015
3906
  this.target = target;
@@ -4029,7 +3920,7 @@
4029
3920
  let prev;
4030
3921
  while (active$1 && prev !== active$1 && !within(this.$el, active$1.$el)) {
4031
3922
  prev = active$1;
4032
- active$1.hide(false, false);
3923
+ active$1.hide(false);
4033
3924
  }
4034
3925
  }
4035
3926
 
@@ -4043,8 +3934,8 @@
4043
3934
 
4044
3935
  },
4045
3936
 
4046
- hide(delay, animate) {if (delay === void 0) {delay = true;}if (animate === void 0) {animate = true;}
4047
- const hide = () => this.toggleElement(this.$el, false, this.animateOut && animate);
3937
+ hide(delay) {if (delay === void 0) {delay = true;}
3938
+ const hide = () => this.toggleElement(this.$el, false, false);
4048
3939
 
4049
3940
  this.clearTimers();
4050
3941
 
@@ -4076,51 +3967,28 @@
4076
3967
  position() {
4077
3968
  removeClass(this.$el, this.clsDrop + "-stack");
4078
3969
  toggleClass(this.$el, this.clsDrop + "-boundary", this.boundaryAlign);
4079
- toggleClass(this.$el, this.clsDrop + "-stretch", this.align === 'stretch');
4080
3970
 
4081
3971
  const boundary = query(this.boundary, this.$el);
4082
- const target = boundary && this.boundaryAlign ? boundary : this.target;
4083
- const [scrollParent] = scrollParents(
4084
- boundary && this.boundaryAlign ? boundary : this.$el);
3972
+ const scrollParentOffset = offset(
3973
+ scrollParents(boundary && this.boundaryAlign ? boundary : this.$el)[0]);
4085
3974
 
4086
- const scrollParentOffset = offset(scrollParent);
4087
3975
  const boundaryOffset = boundary ? offset(boundary) : scrollParentOffset;
4088
- const viewportOffset = this.getViewportOffset(this.$el);
4089
3976
 
4090
3977
  css(this.$el, 'maxWidth', '');
4091
- const maxWidth = scrollParentOffset.width - 2 * viewportOffset;
3978
+ const maxWidth =
3979
+ scrollParentOffset.width -
3980
+ 2 * toPx(getCssVar('position-viewport-offset', this.$el));
4092
3981
 
4093
- if (this.align === 'justify') {
3982
+ if (this.pos[1] === 'justify') {
4094
3983
  const prop = this.axis === 'y' ? 'width' : 'height';
4095
3984
  css(
4096
3985
  this.$el,
4097
3986
  prop,
4098
3987
  Math.min(
4099
3988
  (boundary ? boundaryOffset : offset(this.target))[prop],
4100
- scrollParentOffset[prop] - 2 * viewportOffset));
4101
-
4102
-
4103
- } else if (this.align === 'stretch') {
4104
- this.flip = this.axis === 'y' ? 'x' : 'y';
4105
- this.display = 'static';
4106
-
4107
- const viewport = offsetViewport(scrollParent);
4108
- const targetDim = offset(target);
4109
- const elOffset = Math.abs(this.getPositionOffset(this.$el)) + viewportOffset;
4110
-
4111
- css(this.$el, {
4112
- width:
4113
- this.axis === 'y' ?
4114
- viewport.width :
4115
- (this.dir === 'left' ?
4116
- targetDim.left - viewport.left :
4117
- viewport.right - targetDim.right) - elOffset,
4118
- height:
4119
- this.axis === 'x' ?
4120
- viewport.height :
4121
- (this.dir === 'top' ?
4122
- targetDim.top - viewport.top :
4123
- viewport.bottom - targetDim.bottom) - elOffset });
3989
+ scrollParentOffset[prop] -
3990
+ 2 * toPx(getCssVar('position-viewport-offset', this.$el))));
3991
+
4124
3992
 
4125
3993
  } else if (this.$el.offsetWidth > maxWidth) {
4126
3994
  addClass(this.$el, this.clsDrop + "-stack");
@@ -4128,7 +3996,11 @@
4128
3996
 
4129
3997
  css(this.$el, 'maxWidth', maxWidth);
4130
3998
 
4131
- this.positionAt(this.$el, target, boundary);
3999
+ this.positionAt(
4000
+ this.$el,
4001
+ boundary && this.boundaryAlign ? boundary : this.target,
4002
+ boundary);
4003
+
4132
4004
  } } };
4133
4005
 
4134
4006
 
@@ -4613,7 +4485,7 @@
4613
4485
 
4614
4486
  resizeTargets() {
4615
4487
  // check for offsetTop change
4616
- return [this.$el, ...scrollParents(this.$el, /auto|scroll/)];
4488
+ return [this.$el, document.documentElement];
4617
4489
  },
4618
4490
 
4619
4491
  update: {
@@ -4625,25 +4497,21 @@
4625
4497
  let minHeight = '';
4626
4498
  const box = boxModelAdjust(this.$el, 'height', 'content-box');
4627
4499
 
4628
- const [scrollElement] = scrollParents(this.$el, /auto|scroll/);
4629
- const { height: viewportHeight } = offsetViewport(scrollElement);
4630
-
4631
4500
  if (this.expand) {
4632
4501
  minHeight = Math.max(
4633
- viewportHeight - (
4634
- dimensions(scrollElement).height - dimensions(this.$el).height) -
4502
+ height(window) - (
4503
+ dimensions(document.documentElement).height -
4504
+ dimensions(this.$el).height) -
4635
4505
  box,
4636
4506
  0);
4637
4507
 
4638
4508
  } else {
4639
4509
  // on mobile devices (iOS and Android) window.innerHeight !== 100vh
4640
- minHeight = "calc(" + (
4641
- document.scrollingElement === scrollElement ? '100vh' : viewportHeight + "px");
4642
-
4510
+ minHeight = 'calc(100vh';
4643
4511
 
4644
4512
  if (this.offsetTop) {
4645
- const top = offsetPosition(this.$el)[0] - offsetPosition(scrollElement)[0];
4646
- minHeight += top > 0 && top < viewportHeight / 2 ? " - " + top + "px" : '';
4513
+ const { top } = offset(this.$el);
4514
+ minHeight += top > 0 && top < height(window) / 2 ? " - " + top + "px" : '';
4647
4515
  }
4648
4516
 
4649
4517
  if (this.offsetBottom === true) {
@@ -5977,8 +5845,8 @@
5977
5845
  return this.dropbar;
5978
5846
  },
5979
5847
 
5980
- handler(_, _ref9) {let { $el, align } = _ref9;
5981
- if (!hasClass($el, this.clsDrop) || align === 'stretch') {
5848
+ handler(_, _ref9) {let { $el } = _ref9;
5849
+ if (!hasClass($el, this.clsDrop)) {
5982
5850
  return;
5983
5851
  }
5984
5852
 
@@ -6001,8 +5869,8 @@
6001
5869
  return this.dropbar;
6002
5870
  },
6003
5871
 
6004
- handler(_, _ref10) {let { $el, align } = _ref10;
6005
- if (!hasClass($el, this.clsDrop) || align === 'stretch') {
5872
+ handler(_, _ref10) {let { $el } = _ref10;
5873
+ if (!hasClass($el, this.clsDrop)) {
6006
5874
  return;
6007
5875
  }
6008
5876
 
@@ -6052,8 +5920,8 @@
6052
5920
  return this.dropbar;
6053
5921
  },
6054
5922
 
6055
- handler(_, _ref12) {let { $el, align } = _ref12;
6056
- if (!hasClass($el, this.clsDrop) || align === 'stretch') {
5923
+ handler(_, _ref12) {let { $el } = _ref12;
5924
+ if (!hasClass($el, this.clsDrop)) {
6057
5925
  return;
6058
5926
  }
6059
5927
 
@@ -6079,7 +5947,7 @@
6079
5947
 
6080
5948
  el = oldHeight < newHeight && el;
6081
5949
 
6082
- css(el, 'clipPath', "polygon(0 0,100% 0,100% " + oldHeight + "px,0 " + oldHeight + "px)");
5950
+ css(el, 'clip', "rect(0," + el.offsetWidth + "px," + oldHeight + "px,0)");
6083
5951
 
6084
5952
  height(dropbar, oldHeight);
6085
5953
 
@@ -6088,14 +5956,12 @@
6088
5956
  Transition.start(dropbar, { height: newHeight }, this.duration),
6089
5957
  Transition.start(
6090
5958
  el,
6091
- {
6092
- clipPath: "polygon(0 0,100% 0,100% " + newHeight + "px,0 " + newHeight + "px)" },
6093
-
5959
+ { clip: "rect(0," + el.offsetWidth + "px," + newHeight + "px,0)" },
6094
5960
  this.duration)]).
6095
5961
 
6096
5962
 
6097
5963
  catch(noop).
6098
- then(() => css(el, { clipPath: '' }));
5964
+ then(() => css(el, { clip: '' }));
6099
5965
  },
6100
5966
 
6101
5967
  getDropdown(el) {