uikit 3.15.11-dev.fd61e70ff → 3.15.12-dev.2299ba0d4

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 (50) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/util.js +26 -20
  3. package/dist/css/uikit-core-rtl.css +3 -3
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +3 -3
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +14 -13
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +32 -30
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +160 -148
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +168 -156
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +19 -17
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +37 -36
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +38 -29
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +84 -73
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +38 -29
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +95 -78
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +40 -37
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +43 -39
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +12 -12
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +576 -527
  38. package/dist/js/uikit-core.min.js +1 -17
  39. package/dist/js/uikit-icons.js +3 -3
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +873 -798
  42. package/dist/js/uikit.min.js +1 -17
  43. package/package.json +14 -14
  44. package/src/js/api/boot.js +3 -1
  45. package/src/js/components/slider-parallax.js +9 -0
  46. package/src/js/core/drop.js +5 -1
  47. package/src/js/core/sticky.js +6 -7
  48. package/src/js/util/env.js +1 -3
  49. package/src/js/util/position.js +11 -6
  50. package/tests/navbar.html +1 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.11-dev.fd61e70ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.12-dev.2299ba0d4 | 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(require('uikit-util')) :
@@ -21,9 +21,9 @@
21
21
  { transform: translate(dir * -100 * percent) },
22
22
  { transform: translate(dir * 100 * (1 - percent)) }];
23
23
 
24
- } } };
25
-
26
-
24
+ }
25
+ }
26
+ };
27
27
 
28
28
  function translated(el) {
29
29
  return Math.abs(uikitUtil.css(el, 'transform').split(',')[4] / el.offsetWidth) || 0;
@@ -51,8 +51,8 @@
51
51
 
52
52
  translate(percent) {
53
53
  return [{ opacity: 1 - percent }, { opacity: percent }];
54
- } },
55
-
54
+ }
55
+ },
56
56
 
57
57
  scale: {
58
58
  show() {
@@ -71,26 +71,31 @@
71
71
  { opacity: 1 - percent, transform: scale3d(1 - 0.2 * percent) },
72
72
  { opacity: percent, transform: scale3d(1 - 0.2 + 0.2 * percent) }];
73
73
 
74
- } } };
74
+ }
75
+ }
76
+ };
75
77
 
76
78
  var Container = {
77
79
  props: {
78
- container: Boolean },
79
-
80
+ container: Boolean
81
+ },
80
82
 
81
83
  data: {
82
- container: true },
83
-
84
+ container: true
85
+ },
84
86
 
85
87
  computed: {
86
88
  container(_ref) {let { container } = _ref;
87
89
  return container === true && this.$container || container && uikitUtil.$(container);
88
- } } };
90
+ }
91
+ }
92
+ };
89
93
 
90
94
  var Class = {
91
95
  connected() {
92
96
  uikitUtil.addClass(this.$el, this.$options.id);
93
- } };
97
+ }
98
+ };
94
99
 
95
100
  var Togglable = {
96
101
  props: {
@@ -99,8 +104,8 @@
99
104
  duration: Number,
100
105
  velocity: Number,
101
106
  origin: String,
102
- transition: String },
103
-
107
+ transition: String
108
+ },
104
109
 
105
110
  data: {
106
111
  cls: false,
@@ -110,8 +115,8 @@
110
115
  origin: false,
111
116
  transition: 'ease',
112
117
  clsEnter: 'uk-togglabe-enter',
113
- clsLeave: 'uk-togglabe-leave' },
114
-
118
+ clsLeave: 'uk-togglabe-leave'
119
+ },
115
120
 
116
121
  computed: {
117
122
  hasAnimation(_ref) {let { animation } = _ref;
@@ -120,8 +125,8 @@
120
125
 
121
126
  hasTransition(_ref2) {let { animation } = _ref2;
122
127
  return ['slide', 'reveal'].some((transition) => uikitUtil.startsWith(animation[0], transition));
123
- } },
124
-
128
+ }
129
+ },
125
130
 
126
131
  methods: {
127
132
  toggleElement(targets, toggle, animate) {
@@ -198,9 +203,9 @@
198
203
  if (changed) {
199
204
  uikitUtil.trigger(el, 'toggled', [toggled, this]);
200
205
  }
201
- } } };
202
-
203
-
206
+ }
207
+ }
208
+ };
204
209
 
205
210
  function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
206
211
  uikitUtil.Animation.cancel(el);
@@ -272,9 +277,9 @@
272
277
  'borderBottom',
273
278
  'borderLeft',
274
279
  'borderImage',
275
- marginStartProp]) });
276
-
280
+ marginStartProp])
277
281
 
282
+ });
278
283
 
279
284
  uikitUtil.css(el, {
280
285
  padding: 0,
@@ -285,8 +290,8 @@
285
290
  width: dim.width,
286
291
  height: dim.height,
287
292
  overflow: 'hidden',
288
- [dimProp]: currentDim });
289
-
293
+ [dimProp]: currentDim
294
+ });
290
295
 
291
296
  const percent = currentDim / endDim;
292
297
  duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
@@ -339,16 +344,16 @@
339
344
  selClose: String,
340
345
  escClose: Boolean,
341
346
  bgClose: Boolean,
342
- stack: Boolean },
343
-
347
+ stack: Boolean
348
+ },
344
349
 
345
350
  data: {
346
351
  cls: 'uk-open',
347
352
  escClose: true,
348
353
  bgClose: true,
349
354
  overlay: true,
350
- stack: false },
351
-
355
+ stack: false
356
+ },
352
357
 
353
358
  computed: {
354
359
  panel(_ref, $el) {let { selPanel } = _ref;
@@ -361,8 +366,8 @@
361
366
 
362
367
  bgClose(_ref2) {let { bgClose } = _ref2;
363
368
  return bgClose && this.panel;
364
- } },
365
-
369
+ }
370
+ },
366
371
 
367
372
  beforeDisconnect() {
368
373
  if (uikitUtil.includes(active, this)) {
@@ -381,8 +386,8 @@
381
386
  handler(e) {
382
387
  e.preventDefault();
383
388
  this.hide();
384
- } },
385
-
389
+ }
390
+ },
386
391
 
387
392
  {
388
393
  name: 'click',
@@ -402,8 +407,8 @@
402
407
  {
403
408
  this.hide();
404
409
  }
405
- } },
406
-
410
+ }
411
+ },
407
412
 
408
413
  {
409
414
  name: 'toggle',
@@ -420,8 +425,8 @@
420
425
  if (this.isToggled() === uikitUtil.includes(active, this)) {
421
426
  this.toggle();
422
427
  }
423
- } },
424
-
428
+ }
429
+ },
425
430
 
426
431
  {
427
432
  name: 'beforeshow',
@@ -439,8 +444,8 @@
439
444
  } else {
440
445
  active.push(this);
441
446
  }
442
- } },
443
-
447
+ }
448
+ },
444
449
 
445
450
  {
446
451
  name: 'show',
@@ -513,8 +518,8 @@
513
518
  { self: true });
514
519
 
515
520
  }
516
- } },
517
-
521
+ }
522
+ },
518
523
 
519
524
  {
520
525
  name: 'shown',
@@ -529,8 +534,8 @@
529
534
  if (!uikitUtil.$(':focus', this.$el)) {
530
535
  this.$el.focus();
531
536
  }
532
- } },
533
-
537
+ }
538
+ },
534
539
 
535
540
  {
536
541
  name: 'hidden',
@@ -547,8 +552,8 @@
547
552
  if (!active.some((modal) => modal.clsPage === this.clsPage)) {
548
553
  uikitUtil.removeClass(document.documentElement, this.clsPage);
549
554
  }
550
- } }],
551
-
555
+ }
556
+ }],
552
557
 
553
558
 
554
559
  methods: {
@@ -569,9 +574,9 @@
569
574
 
570
575
  hide() {
571
576
  return this.toggleElement(this.$el, false, animate);
572
- } } };
573
-
574
-
577
+ }
578
+ }
579
+ };
575
580
 
576
581
  function animate(el, show, _ref6) {let { transitionElement, _toggle } = _ref6;
577
582
  return new Promise((resolve, reject) =>
@@ -586,8 +591,8 @@
586
591
  'transitionstart',
587
592
  () => {
588
593
  uikitUtil.once(transitionElement, 'transitionend transitioncancel', resolve, {
589
- self: true });
590
-
594
+ self: true
595
+ });
591
596
  clearTimeout(timer);
592
597
  },
593
598
  { self: true });
@@ -668,8 +673,8 @@
668
673
  uikitUtil.css(scrollingElement, {
669
674
  overflowY: 'hidden',
670
675
  touchAction: 'none',
671
- paddingRight: uikitUtil.width(window) - scrollingElement.clientWidth });
672
-
676
+ paddingRight: uikitUtil.width(window) - scrollingElement.clientWidth
677
+ });
673
678
  return () => {
674
679
  prevented = false;
675
680
  uikitUtil.css(scrollingElement, { overflowY: '', touchAction: '', paddingRight: '' });
@@ -749,8 +754,8 @@
749
754
 
750
755
  getDistance() {
751
756
  return prev == null ? void 0 : prev.offsetWidth;
752
- } };
753
-
757
+ }
758
+ };
754
759
  }
755
760
 
756
761
  function triggerUpdate(el, type, data) {
@@ -764,20 +769,21 @@
764
769
  this.$emit('resize')));
765
770
 
766
771
 
767
- } };
772
+ }
773
+ };
768
774
 
769
775
  var SliderAutoplay = {
770
776
  props: {
771
777
  autoplay: Boolean,
772
778
  autoplayInterval: Number,
773
- pauseOnHover: Boolean },
774
-
779
+ pauseOnHover: Boolean
780
+ },
775
781
 
776
782
  data: {
777
783
  autoplay: false,
778
784
  autoplayInterval: 7000,
779
- pauseOnHover: true },
780
-
785
+ pauseOnHover: true
786
+ },
781
787
 
782
788
  connected() {
783
789
  this.autoplay && this.startAutoplay();
@@ -809,8 +815,8 @@
809
815
  } else {
810
816
  this.startAutoplay();
811
817
  }
812
- } }],
813
-
818
+ }
819
+ }],
814
820
 
815
821
 
816
822
  methods: {
@@ -829,7 +835,9 @@
829
835
 
830
836
  stopAutoplay() {
831
837
  this.interval && clearInterval(this.interval);
832
- } } };
838
+ }
839
+ }
840
+ };
833
841
 
834
842
  const pointerOptions = { passive: false, capture: true };
835
843
  const pointerUpOptions = { passive: true, capture: true };
@@ -839,13 +847,13 @@
839
847
 
840
848
  var SliderDrag = {
841
849
  props: {
842
- draggable: Boolean },
843
-
850
+ draggable: Boolean
851
+ },
844
852
 
845
853
  data: {
846
854
  draggable: true,
847
- threshold: 10 },
848
-
855
+ threshold: 10
856
+ },
849
857
 
850
858
  created() {
851
859
  for (const key of ['start', 'move', 'end']) {
@@ -883,16 +891,16 @@
883
891
  }
884
892
 
885
893
  this.start(e);
886
- } },
887
-
894
+ }
895
+ },
888
896
 
889
897
  {
890
898
  name: 'dragstart',
891
899
 
892
900
  handler(e) {
893
901
  e.preventDefault();
894
- } },
895
-
902
+ }
903
+ },
896
904
 
897
905
  {
898
906
  // iOS workaround for slider stopping if swiping fast
@@ -901,8 +909,8 @@
901
909
  return this.list;
902
910
  },
903
911
  handler: uikitUtil.noop,
904
- ...pointerOptions }],
905
-
912
+ ...pointerOptions
913
+ }],
906
914
 
907
915
 
908
916
  methods: {
@@ -1039,9 +1047,9 @@
1039
1047
  uikitUtil.css(this.list, { userSelect: '', pointerEvents: '' });
1040
1048
 
1041
1049
  this.drag = this.percent = null;
1042
- } } };
1043
-
1044
-
1050
+ }
1051
+ }
1052
+ };
1045
1053
 
1046
1054
  function hasSelectableText(el) {
1047
1055
  return (
@@ -1052,8 +1060,8 @@
1052
1060
 
1053
1061
  var SliderNav = {
1054
1062
  data: {
1055
- selNav: false },
1056
-
1063
+ selNav: false
1064
+ },
1057
1065
 
1058
1066
  computed: {
1059
1067
  nav(_ref, $el) {let { selNav } = _ref;
@@ -1066,8 +1074,8 @@
1066
1074
 
1067
1075
  navItems(_, $el) {
1068
1076
  return uikitUtil.$$(this.selNavItem, $el);
1069
- } },
1070
-
1077
+ }
1078
+ },
1071
1079
 
1072
1080
  update: {
1073
1081
  write() {
@@ -1085,8 +1093,8 @@
1085
1093
  this.updateNav();
1086
1094
  },
1087
1095
 
1088
- events: ['resize'] },
1089
-
1096
+ events: ['resize']
1097
+ },
1090
1098
 
1091
1099
  events: [
1092
1100
  {
@@ -1099,13 +1107,13 @@
1099
1107
  handler(e) {
1100
1108
  e.preventDefault();
1101
1109
  this.show(uikitUtil.data(e.current, this.attrItem));
1102
- } },
1103
-
1110
+ }
1111
+ },
1104
1112
 
1105
1113
  {
1106
1114
  name: 'itemshow',
1107
- handler: 'updateNav' }],
1108
-
1115
+ handler: 'updateNav'
1116
+ }],
1109
1117
 
1110
1118
 
1111
1119
  methods: {
@@ -1122,7 +1130,9 @@
1122
1130
  cmd === 'previous' && i === 0 || cmd === 'next' && i >= this.maxIndex));
1123
1131
 
1124
1132
  }
1125
- } } };
1133
+ }
1134
+ }
1135
+ };
1126
1136
 
1127
1137
  var Slider = {
1128
1138
  mixins: [SliderAutoplay, SliderDrag, SliderNav, Resize],
@@ -1133,8 +1143,8 @@
1133
1143
  index: Number,
1134
1144
  finite: Boolean,
1135
1145
  velocity: Number,
1136
- selSlides: String },
1137
-
1146
+ selSlides: String
1147
+ },
1138
1148
 
1139
1149
  data: () => ({
1140
1150
  easing: 'ease',
@@ -1147,8 +1157,8 @@
1147
1157
  clsActive: 'uk-active',
1148
1158
  clsActivated: false,
1149
1159
  Transitioner: false,
1150
- transitionOptions: {} }),
1151
-
1160
+ transitionOptions: {}
1161
+ }),
1152
1162
 
1153
1163
  connected() {
1154
1164
  this.prevIndex = -1;
@@ -1184,13 +1194,13 @@
1184
1194
 
1185
1195
  watch() {
1186
1196
  this.$emit('resize');
1187
- } },
1188
-
1197
+ }
1198
+ },
1189
1199
 
1190
1200
  length() {
1191
1201
  return this.slides.length;
1192
- } },
1193
-
1202
+ }
1203
+ },
1194
1204
 
1195
1205
  methods: {
1196
1206
  show(index, force) {if (force === void 0) {force = false;}
@@ -1279,8 +1289,8 @@
1279
1289
  'cubic-bezier(0.25, 0.46, 0.45, 0.94)' /* easeOutQuad */ :
1280
1290
  'cubic-bezier(0.165, 0.84, 0.44, 1)' /* easeOutQuart */ :
1281
1291
  this.easing,
1282
- ...this.transitionOptions });
1283
-
1292
+ ...this.transitionOptions
1293
+ });
1284
1294
 
1285
1295
  if (!force && !prev) {
1286
1296
  this._translate(1);
@@ -1316,9 +1326,9 @@
1316
1326
  dir * (uikitUtil.isRtl ? -1 : 1),
1317
1327
  options);
1318
1328
 
1319
- } } };
1320
-
1321
-
1329
+ }
1330
+ }
1331
+ };
1322
1332
 
1323
1333
  function getDirection(index, prevIndex) {
1324
1334
  return index === 'next' ? 1 : index === 'previous' ? -1 : index < prevIndex ? -1 : 1;
@@ -1332,15 +1342,15 @@
1332
1342
  mixins: [Slider],
1333
1343
 
1334
1344
  props: {
1335
- animation: String },
1336
-
1345
+ animation: String
1346
+ },
1337
1347
 
1338
1348
  data: {
1339
1349
  animation: 'slide',
1340
1350
  clsActivated: 'uk-transition-active',
1341
1351
  Animations: Animations$1,
1342
- Transitioner },
1343
-
1352
+ Transitioner
1353
+ },
1344
1354
 
1345
1355
  computed: {
1346
1356
  animation(_ref) {let { animation, Animations } = _ref;
@@ -1349,8 +1359,8 @@
1349
1359
 
1350
1360
  transitionOptions() {
1351
1361
  return { animation: this.animation };
1352
- } },
1353
-
1362
+ }
1363
+ },
1354
1364
 
1355
1365
  events: {
1356
1366
  beforeitemshow(_ref2) {let { target } = _ref2;
@@ -1363,7 +1373,9 @@
1363
1373
 
1364
1374
  itemhidden(_ref4) {let { target } = _ref4;
1365
1375
  uikitUtil.removeClass(target, this.clsActive, this.clsActivated);
1366
- } } };
1376
+ }
1377
+ }
1378
+ };
1367
1379
 
1368
1380
  var LightboxPanel = {
1369
1381
  mixins: [Container, Modal, Togglable, Slideshow],
@@ -1374,8 +1386,8 @@
1374
1386
  delayControls: Number,
1375
1387
  preload: Number,
1376
1388
  videoAutoplay: Boolean,
1377
- template: String },
1378
-
1389
+ template: String
1390
+ },
1379
1391
 
1380
1392
  data: () => ({
1381
1393
  preload: 1,
@@ -1391,8 +1403,7 @@
1391
1403
  pauseOnHover: false,
1392
1404
  velocity: 2,
1393
1405
  Animations,
1394
- template: "<div class=\"uk-lightbox uk-overflow-hidden\"> <ul class=\"uk-lightbox-items\"></ul> <div class=\"uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque\"> <button class=\"uk-lightbox-toolbar-icon uk-close-large\" type=\"button\" uk-close></button> </div> <a class=\"uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade\" href uk-slidenav-previous uk-lightbox-item=\"previous\"></a> <a class=\"uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade\" href uk-slidenav-next uk-lightbox-item=\"next\"></a> <div class=\"uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque\"></div> </div>" }),
1395
-
1406
+ template: "<div class=\"uk-lightbox uk-overflow-hidden\"> <ul class=\"uk-lightbox-items\"></ul> <div class=\"uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque\"> <button class=\"uk-lightbox-toolbar-icon uk-close-large\" type=\"button\" uk-close></button> </div> <a class=\"uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade\" href uk-slidenav-previous uk-lightbox-item=\"previous\"></a> <a class=\"uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade\" href uk-slidenav-next uk-lightbox-item=\"next\"></a> <div class=\"uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque\"></div> </div>"
1396
1407
 
1397
1408
 
1398
1409
 
@@ -1401,6 +1412,7 @@
1401
1412
 
1402
1413
 
1403
1414
 
1415
+ }),
1404
1416
 
1405
1417
  created() {
1406
1418
  const $el = uikitUtil.$(this.template);
@@ -1413,15 +1425,15 @@
1413
1425
  computed: {
1414
1426
  caption(_ref, $el) {let { selCaption } = _ref;
1415
1427
  return uikitUtil.$(selCaption, $el);
1416
- } },
1417
-
1428
+ }
1429
+ },
1418
1430
 
1419
1431
  events: [
1420
1432
  {
1421
1433
  name: uikitUtil.pointerMove + " " + uikitUtil.pointerDown + " keydown",
1422
1434
 
1423
- handler: 'showControls' },
1424
-
1435
+ handler: 'showControls'
1436
+ },
1425
1437
 
1426
1438
  {
1427
1439
  name: 'click',
@@ -1438,8 +1450,8 @@
1438
1450
  }
1439
1451
 
1440
1452
  this.hide();
1441
- } },
1442
-
1453
+ }
1454
+ },
1443
1455
 
1444
1456
  {
1445
1457
  name: 'shown',
@@ -1448,8 +1460,8 @@
1448
1460
 
1449
1461
  handler() {
1450
1462
  this.showControls();
1451
- } },
1452
-
1463
+ }
1464
+ },
1453
1465
 
1454
1466
  {
1455
1467
  name: 'hide',
@@ -1461,8 +1473,8 @@
1461
1473
 
1462
1474
  uikitUtil.removeClass(this.slides, this.clsActive);
1463
1475
  uikitUtil.Transition.stop(this.slides);
1464
- } },
1465
-
1476
+ }
1477
+ },
1466
1478
 
1467
1479
  {
1468
1480
  name: 'hidden',
@@ -1471,8 +1483,8 @@
1471
1483
 
1472
1484
  handler() {
1473
1485
  this.$destroy(true);
1474
- } },
1475
-
1486
+ }
1487
+ },
1476
1488
 
1477
1489
  {
1478
1490
  name: 'keyup',
@@ -1494,8 +1506,8 @@
1494
1506
  this.show('next');
1495
1507
  break;}
1496
1508
 
1497
- } },
1498
-
1509
+ }
1510
+ },
1499
1511
 
1500
1512
  {
1501
1513
  name: 'beforeitemshow',
@@ -1514,8 +1526,8 @@
1514
1526
  this.animation = Animations['scale'];
1515
1527
  uikitUtil.removeClass(e.target, this.clsActive);
1516
1528
  this.stack.splice(1, 0, this.index);
1517
- } },
1518
-
1529
+ }
1530
+ },
1519
1531
 
1520
1532
  {
1521
1533
  name: 'itemshow',
@@ -1526,16 +1538,16 @@
1526
1538
  for (let j = -this.preload; j <= this.preload; j++) {
1527
1539
  this.loadItem(this.index + j);
1528
1540
  }
1529
- } },
1530
-
1541
+ }
1542
+ },
1531
1543
 
1532
1544
  {
1533
1545
  name: 'itemshown',
1534
1546
 
1535
1547
  handler() {
1536
1548
  this.draggable = this.$props.draggable;
1537
- } },
1538
-
1549
+ }
1550
+ },
1539
1551
 
1540
1552
  {
1541
1553
  name: 'itemload',
@@ -1554,8 +1566,8 @@
1554
1566
  allowfullscreen: '',
1555
1567
  style: 'max-width: 100%; box-sizing: border-box;',
1556
1568
  'uk-responsive': '',
1557
- 'uk-video': "" + this.videoAutoplay };
1558
-
1569
+ 'uk-video': "" + this.videoAutoplay
1570
+ };
1559
1571
 
1560
1572
  // Image
1561
1573
  if (
@@ -1577,8 +1589,8 @@
1577
1589
  controls: '',
1578
1590
  playsinline: '',
1579
1591
  'uk-video': "" + this.videoAutoplay,
1580
- ...attrs });
1581
-
1592
+ ...attrs
1593
+ });
1582
1594
 
1583
1595
  uikitUtil.on(video, 'loadedmetadata', () => {
1584
1596
  uikitUtil.attr(video, { width: video.videoWidth, height: video.videoHeight });
@@ -1594,8 +1606,8 @@
1594
1606
  src,
1595
1607
  allowfullscreen: '',
1596
1608
  class: 'uk-lightbox-iframe',
1597
- ...attrs }));
1598
-
1609
+ ...attrs
1610
+ }));
1599
1611
 
1600
1612
 
1601
1613
  // YouTube
@@ -1613,8 +1625,8 @@
1613
1625
  width: 1920,
1614
1626
  height: 1080,
1615
1627
  ...iframeAttrs,
1616
- ...attrs }));
1617
-
1628
+ ...attrs
1629
+ }));
1618
1630
 
1619
1631
 
1620
1632
  // Vimeo
@@ -1626,8 +1638,8 @@
1626
1638
  src),
1627
1639
 
1628
1640
  {
1629
- credentials: 'omit' })).
1630
-
1641
+ credentials: 'omit'
1642
+ })).
1631
1643
 
1632
1644
  json();
1633
1645
 
@@ -1640,15 +1652,15 @@
1640
1652
  width,
1641
1653
  height,
1642
1654
  ...iframeAttrs,
1643
- ...attrs }));
1644
-
1655
+ ...attrs
1656
+ }));
1645
1657
 
1646
1658
  } catch (e) {
1647
1659
  this.setError(item);
1648
1660
  }
1649
1661
  }
1650
- } }],
1651
-
1662
+ }
1663
+ }],
1652
1664
 
1653
1665
 
1654
1666
  methods: {
@@ -1685,9 +1697,9 @@
1685
1697
 
1686
1698
  hideControls() {
1687
1699
  uikitUtil.removeClass(this.$el, 'uk-active', 'uk-transition-active');
1688
- } } };
1689
-
1690
-
1700
+ }
1701
+ }
1702
+ };
1691
1703
 
1692
1704
  function createEl(tag, attrs) {
1693
1705
  const el = uikitUtil.fragment("<" + tag + ">");
@@ -1710,9 +1722,9 @@
1710
1722
 
1711
1723
  watch() {
1712
1724
  this.hide();
1713
- } } },
1714
-
1715
-
1725
+ }
1726
+ }
1727
+ },
1716
1728
 
1717
1729
  disconnected() {
1718
1730
  this.hide();
@@ -1729,8 +1741,8 @@
1729
1741
  handler(e) {
1730
1742
  e.preventDefault();
1731
1743
  this.show(e.current);
1732
- } }],
1733
-
1744
+ }
1745
+ }],
1734
1746
 
1735
1747
 
1736
1748
  methods: {
@@ -1751,9 +1763,9 @@
1751
1763
 
1752
1764
  hide() {var _this$panel;
1753
1765
  return (_this$panel = this.panel) == null ? void 0 : _this$panel.hide();
1754
- } } };
1755
-
1756
-
1766
+ }
1767
+ }
1768
+ };
1757
1769
 
1758
1770
  function install(UIkit, Lightbox) {
1759
1771
  if (!UIkit.lightboxPanel) {