lightgallery 2.3.0-beta.3 → 2.3.0-beta.4

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 (61) hide show
  1. package/lg-settings.d.ts +2 -1
  2. package/lib/lg-settings.js +1 -1
  3. package/lib/lg-settings.js.map +1 -1
  4. package/lib/lgQuery.js +25 -18
  5. package/lib/lgQuery.js.map +1 -1
  6. package/lib/lightgallery.js +5 -4
  7. package/lib/lightgallery.js.map +1 -1
  8. package/lightgallery.es5.js +32 -24
  9. package/lightgallery.es5.js.map +1 -1
  10. package/lightgallery.min.js +2 -2
  11. package/lightgallery.umd.js +32 -24
  12. package/lightgallery.umd.js.map +1 -1
  13. package/lit/lightgallery.esm.js +2 -2
  14. package/lit/lightgallery.umd.js +2 -2
  15. package/package.json +1 -1
  16. package/plugins/autoplay/lg-autoplay.es5.js +1 -1
  17. package/plugins/autoplay/lg-autoplay.min.js +1 -1
  18. package/plugins/autoplay/lg-autoplay.umd.js +1 -1
  19. package/plugins/comment/lg-comment.es5.js +1 -1
  20. package/plugins/comment/lg-comment.min.js +1 -1
  21. package/plugins/comment/lg-comment.umd.js +1 -1
  22. package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
  23. package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
  24. package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
  25. package/plugins/hash/lg-hash.es5.js +1 -1
  26. package/plugins/hash/lg-hash.min.js +1 -1
  27. package/plugins/hash/lg-hash.umd.js +1 -1
  28. package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
  29. package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
  30. package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
  31. package/plugins/pager/lg-pager.es5.js +1 -1
  32. package/plugins/pager/lg-pager.min.js +1 -1
  33. package/plugins/pager/lg-pager.umd.js +1 -1
  34. package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
  35. package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
  36. package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
  37. package/plugins/rotate/lg-rotate.es5.js +1 -1
  38. package/plugins/rotate/lg-rotate.min.js +1 -1
  39. package/plugins/rotate/lg-rotate.umd.js +1 -1
  40. package/plugins/share/lg-share.es5.js +1 -1
  41. package/plugins/share/lg-share.min.js +1 -1
  42. package/plugins/share/lg-share.umd.js +1 -1
  43. package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
  44. package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
  45. package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
  46. package/plugins/video/lg-video.es5.js +1 -1
  47. package/plugins/video/lg-video.min.js +1 -1
  48. package/plugins/video/lg-video.umd.js +1 -1
  49. package/plugins/zoom/lg-zoom.es5.js +1 -1
  50. package/plugins/zoom/lg-zoom.min.js +1 -1
  51. package/plugins/zoom/lg-zoom.umd.js +1 -1
  52. package/react/Lightgallery.es5.js +32 -24
  53. package/react/Lightgallery.es5.js.map +1 -1
  54. package/react/Lightgallery.umd.js +32 -24
  55. package/react/Lightgallery.umd.js.map +1 -1
  56. package/vue/LightGalleryVue.common.js +30 -25
  57. package/vue/LightGalleryVue.common.js.map +1 -1
  58. package/vue/LightGalleryVue.umd.js +30 -25
  59. package/vue/LightGalleryVue.umd.js.map +1 -1
  60. package/vue/LightGalleryVue.umd.min.js +2 -2
  61. package/vue/LightGalleryVue.umd.min.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
2
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -28,7 +28,7 @@ function __rest(s, e) {
28
28
  }
29
29
 
30
30
  /*!
31
- * lightgallery | 2.3.0-beta.3 | October 9th 2021
31
+ * lightgallery | 2.3.0-beta.4 | October 11th 2021
32
32
  * http://www.lightgalleryjs.com/
33
33
  * Copyright (c) 2020 Sachin Neravath;
34
34
  * @license GPLv3
@@ -68,24 +68,30 @@ function __spreadArrays() {
68
68
  return r;
69
69
  }
70
70
 
71
- (function () {
72
- if (typeof window.CustomEvent === 'function')
73
- return false;
74
- function CustomEvent(event, params) {
75
- params = params || { bubbles: false, cancelable: false, detail: null };
76
- var evt = document.createEvent('CustomEvent');
77
- evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
78
- return evt;
79
- }
80
- window.CustomEvent = CustomEvent;
81
- })();
82
- (function () {
83
- if (!Element.prototype.matches) {
84
- Element.prototype.matches =
85
- Element.prototype.msMatchesSelector ||
86
- Element.prototype.webkitMatchesSelector;
87
- }
88
- })();
71
+ function initLgPolyfills() {
72
+ (function () {
73
+ if (typeof window.CustomEvent === 'function')
74
+ return false;
75
+ function CustomEvent(event, params) {
76
+ params = params || {
77
+ bubbles: false,
78
+ cancelable: false,
79
+ detail: null,
80
+ };
81
+ var evt = document.createEvent('CustomEvent');
82
+ evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
83
+ return evt;
84
+ }
85
+ window.CustomEvent = CustomEvent;
86
+ })();
87
+ (function () {
88
+ if (!Element.prototype.matches) {
89
+ Element.prototype.matches =
90
+ Element.prototype.msMatchesSelector ||
91
+ Element.prototype.webkitMatchesSelector;
92
+ }
93
+ })();
94
+ }
89
95
  var lgQuery = /** @class */ (function () {
90
96
  function lgQuery(selector) {
91
97
  this.cssVenderPrefixes = [
@@ -431,6 +437,7 @@ var lgQuery = /** @class */ (function () {
431
437
  return lgQuery;
432
438
  }());
433
439
  function $LG(selector) {
440
+ initLgPolyfills();
434
441
  return new lgQuery(selector);
435
442
  }
436
443
 
@@ -726,7 +733,7 @@ var lightGalleryCoreSettings = {
726
733
  addClass: '',
727
734
  startClass: 'lg-start-zoom',
728
735
  backdropDuration: 300,
729
- container: document.body,
736
+ container: '',
730
737
  startAnimationDuration: 400,
731
738
  zoomFromOrigin: true,
732
739
  hideBarsDelay: 0,
@@ -2393,12 +2400,13 @@ var LightGallery = /** @class */ (function () {
2393
2400
  return;
2394
2401
  }
2395
2402
  if (e.deltaY > 0) {
2396
- _this.goToPrevSlide();
2397
- }
2398
- else {
2399
2403
  _this.goToNextSlide();
2404
+ e.preventDefault();
2405
+ }
2406
+ else if (e.deltaY < 0) {
2407
+ _this.goToPrevSlide();
2408
+ e.preventDefault();
2400
2409
  }
2401
- e.preventDefault();
2402
2410
  });
2403
2411
  };
2404
2412
  LightGallery.prototype.isSlideElement = function (target) {