lightgallery 2.3.0 → 2.5.0-beta.1
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.
- package/README.md +4 -0
- package/angular/10/bundles/lightgallery-angular-10.umd.js +34 -1
- package/angular/10/bundles/lightgallery-angular-10.umd.js.map +1 -1
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js +1 -1
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +1 -1
- package/angular/10/esm2015/lib/lightgallery-angular.component.js +35 -2
- package/angular/10/fesm2015/lightgallery-angular-10.js +34 -1
- package/angular/10/fesm2015/lightgallery-angular-10.js.map +1 -1
- package/angular/10/lib/lightgallery-angular.component.d.ts +6 -2
- package/angular/10/lib/lightgallery-angular.component.d.ts.map +1 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.js +34 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.js.map +1 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js +1 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +1 -1
- package/angular/11/esm2015/lib/lightgallery-angular.component.js +35 -2
- package/angular/11/fesm2015/lightgallery-angular-11.js +34 -1
- package/angular/11/fesm2015/lightgallery-angular-11.js.map +1 -1
- package/angular/11/lib/lightgallery-angular.component.d.ts +6 -2
- package/angular/11/lib/lightgallery-angular.component.d.ts.map +1 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.js +34 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.js.map +1 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js +1 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +1 -1
- package/angular/9/esm2015/lib/lightgallery-angular.component.js +35 -2
- package/angular/9/esm5/lib/lightgallery-angular.component.js +35 -2
- package/angular/9/fesm2015/lightgallery-angular-9.js +34 -1
- package/angular/9/fesm2015/lightgallery-angular-9.js.map +1 -1
- package/angular/9/fesm5/lightgallery-angular-9.js +34 -1
- package/angular/9/fesm5/lightgallery-angular-9.js.map +1 -1
- package/angular/9/lib/lightgallery-angular.component.d.ts +6 -2
- package/angular/bundles/lightgallery-angular.umd.js +34 -1
- package/angular/bundles/lightgallery-angular.umd.js.map +1 -1
- package/angular/esm2015/lib/lightgallery-angular.component.js +35 -2
- package/angular/fesm2015/lightgallery-angular.js +34 -1
- package/angular/fesm2015/lightgallery-angular.js.map +1 -1
- package/angular/lib/lightgallery-angular.component.d.ts +6 -2
- package/angular/lib/lightgallery-angular.component.d.ts.map +1 -1
- package/css/lightgallery-bundle.css +0 -1
- package/css/lightgallery-bundle.min.css +1 -1
- package/css/lightgallery-core.css +0 -1
- package/css/lightgallery.css +0 -1
- package/lg-events.d.ts +44 -0
- package/lg-settings.d.ts +15 -0
- package/lg-utils.d.ts +1 -1
- package/lib/lg-events.js +3 -0
- package/lib/lg-events.js.map +1 -1
- package/lib/lg-settings.js +8 -0
- package/lib/lg-settings.js.map +1 -1
- package/lib/lg-utils.js +2 -2
- package/lib/lg-utils.js.map +1 -1
- package/lib/lgQuery.js +4 -2
- package/lib/lgQuery.js.map +1 -1
- package/lib/lightgallery.js +11 -10
- package/lib/lightgallery.js.map +1 -1
- package/lib/plugins/autoplay/lg-autoplay-settings.js +3 -0
- package/lib/plugins/autoplay/lg-autoplay-settings.js.map +1 -1
- package/lib/plugins/autoplay/lg-autoplay.js +20 -11
- package/lib/plugins/autoplay/lg-autoplay.js.map +1 -1
- package/lib/plugins/comment/lg-comment-settings.js +3 -0
- package/lib/plugins/comment/lg-comment-settings.js.map +1 -1
- package/lib/plugins/comment/lg-comment.js +1 -1
- package/lib/plugins/comment/lg-comment.js.map +1 -1
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js +3 -0
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +1 -1
- package/lib/plugins/fullscreen/lg-fullscreen.js +1 -2
- package/lib/plugins/fullscreen/lg-fullscreen.js.map +1 -1
- package/lib/plugins/rotate/lg-rotate-settings.js +6 -0
- package/lib/plugins/rotate/lg-rotate-settings.js.map +1 -1
- package/lib/plugins/rotate/lg-rotate.js +4 -8
- package/lib/plugins/rotate/lg-rotate.js.map +1 -1
- package/lib/plugins/share/lg-share-settings.js +1 -0
- package/lib/plugins/share/lg-share-settings.js.map +1 -1
- package/lib/plugins/share/lg-share.js +1 -1
- package/lib/plugins/share/lg-share.js.map +1 -1
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js +3 -0
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +1 -1
- package/lib/plugins/thumbnail/lg-thumbnail.js +3 -1
- package/lib/plugins/thumbnail/lg-thumbnail.js.map +1 -1
- package/lib/plugins/video/lg-video-utils.js +13 -5
- package/lib/plugins/video/lg-video-utils.js.map +1 -1
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js +8 -0
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js.map +1 -0
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js +122 -0
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js.map +1 -0
- package/lib/plugins/zoom/lg-zoom-settings.js +5 -0
- package/lib/plugins/zoom/lg-zoom-settings.js.map +1 -1
- package/lib/plugins/zoom/lg-zoom.js +2 -2
- package/lib/plugins/zoom/lg-zoom.js.map +1 -1
- package/lightgallery.d.ts +1 -1
- package/lightgallery.es5.js +126 -112
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +126 -112
- package/lightgallery.umd.js.map +1 -1
- package/lit/lightgallery.esm.js +6 -6
- package/lit/lightgallery.umd.js +3 -3
- package/package.json +1 -1
- package/plugins/autoplay/lg-autoplay-settings.d.ts +7 -0
- package/plugins/autoplay/lg-autoplay.d.ts +2 -2
- package/plugins/autoplay/lg-autoplay.es5.js +27 -12
- package/plugins/autoplay/lg-autoplay.es5.js.map +1 -1
- package/plugins/autoplay/lg-autoplay.min.js +2 -2
- package/plugins/autoplay/lg-autoplay.umd.js +27 -12
- package/plugins/autoplay/lg-autoplay.umd.js.map +1 -1
- package/plugins/comment/lg-comment-settings.d.ts +7 -0
- package/plugins/comment/lg-comment.es5.js +8 -2
- package/plugins/comment/lg-comment.es5.js.map +1 -1
- package/plugins/comment/lg-comment.min.js +2 -2
- package/plugins/comment/lg-comment.umd.js +8 -2
- package/plugins/comment/lg-comment.umd.js.map +1 -1
- package/plugins/fullscreen/lg-fullscreen-settings.d.ts +7 -0
- package/plugins/fullscreen/lg-fullscreen.es5.js +5 -3
- package/plugins/fullscreen/lg-fullscreen.es5.js.map +1 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +2 -2
- package/plugins/fullscreen/lg-fullscreen.umd.js +5 -3
- package/plugins/fullscreen/lg-fullscreen.umd.js.map +1 -1
- package/plugins/hash/lg-hash.es5.js +4 -1
- package/plugins/hash/lg-hash.es5.js.map +1 -1
- package/plugins/hash/lg-hash.min.js +1 -1
- package/plugins/hash/lg-hash.umd.js +4 -1
- package/plugins/hash/lg-hash.umd.js.map +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +4 -1
- package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +4 -1
- package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +1 -1
- package/plugins/pager/lg-pager.es5.js +4 -1
- package/plugins/pager/lg-pager.es5.js.map +1 -1
- package/plugins/pager/lg-pager.min.js +1 -1
- package/plugins/pager/lg-pager.umd.js +4 -1
- package/plugins/pager/lg-pager.umd.js.map +1 -1
- package/plugins/relativeCaption/lg-relative-caption.es5.js +4 -1
- package/plugins/relativeCaption/lg-relative-caption.es5.js.map +1 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.umd.js +4 -1
- package/plugins/relativeCaption/lg-relative-caption.umd.js.map +1 -1
- package/plugins/rotate/lg-rotate-settings.d.ts +11 -0
- package/plugins/rotate/lg-rotate.es5.js +14 -9
- package/plugins/rotate/lg-rotate.es5.js.map +1 -1
- package/plugins/rotate/lg-rotate.min.js +2 -2
- package/plugins/rotate/lg-rotate.umd.js +14 -9
- package/plugins/rotate/lg-rotate.umd.js.map +1 -1
- package/plugins/share/lg-share-settings.d.ts +8 -0
- package/plugins/share/lg-share.es5.js +6 -2
- package/plugins/share/lg-share.es5.js.map +1 -1
- package/plugins/share/lg-share.min.js +2 -2
- package/plugins/share/lg-share.umd.js +6 -2
- package/plugins/share/lg-share.umd.js.map +1 -1
- package/plugins/thumbnail/lg-thumbnail-settings.d.ts +8 -0
- package/plugins/thumbnail/lg-thumbnail.es5.js +10 -2
- package/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +2 -2
- package/plugins/thumbnail/lg-thumbnail.umd.js +10 -2
- package/plugins/thumbnail/lg-thumbnail.umd.js.map +1 -1
- package/plugins/video/lg-video.es5.js +17 -6
- package/plugins/video/lg-video.es5.js.map +1 -1
- package/plugins/video/lg-video.min.js +2 -2
- package/plugins/video/lg-video.umd.js +17 -6
- package/plugins/video/lg-video.umd.js.map +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.d.ts +11 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.d.ts +14 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +182 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +1 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +8 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +190 -0
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +1 -0
- package/plugins/vimeoThumbnail/package.json +7 -0
- package/plugins/zoom/lg-zoom-settings.d.ts +9 -0
- package/plugins/zoom/lg-zoom.es5.js +11 -3
- package/plugins/zoom/lg-zoom.es5.js.map +1 -1
- package/plugins/zoom/lg-zoom.min.js +2 -2
- package/plugins/zoom/lg-zoom.umd.js +11 -3
- package/plugins/zoom/lg-zoom.umd.js.map +1 -1
- package/react/Lightgallery.d.ts +5 -1
- package/react/Lightgallery.es5.js +155 -113
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +155 -113
- package/react/Lightgallery.umd.js.map +1 -1
- package/scss/lightgallery-core.scss +0 -1
- package/vue/LightGallery.vue.d.ts +5 -1
- package/vue/LightGalleryVue.common.js +140 -110
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +140 -110
- package/vue/LightGalleryVue.umd.js.map +1 -1
- package/vue/LightGalleryVue.umd.min.js +1 -1
- package/vue/LightGalleryVue.umd.min.js.map +1 -1
|
@@ -4859,7 +4859,7 @@ if (typeof window !== 'undefined') {
|
|
|
4859
4859
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
4860
4860
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
4861
4861
|
|
|
4862
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=template&id=
|
|
4862
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist??ref--0-1!./src/components/LightGallery.vue?vue&type=template&id=47173610
|
|
4863
4863
|
|
|
4864
4864
|
var _hoisted_1 = {
|
|
4865
4865
|
ref: "container",
|
|
@@ -4868,7 +4868,7 @@ var _hoisted_1 = {
|
|
|
4868
4868
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4869
4869
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512);
|
|
4870
4870
|
}
|
|
4871
|
-
// CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=template&id=
|
|
4871
|
+
// CONCATENATED MODULE: ./src/components/LightGallery.vue?vue&type=template&id=47173610
|
|
4872
4872
|
|
|
4873
4873
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
4874
4874
|
var es_object_keys = __webpack_require__("b64b");
|
|
@@ -5814,6 +5814,116 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
5814
5814
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
5815
5815
|
var es_array_find = __webpack_require__("7db0");
|
|
5816
5816
|
|
|
5817
|
+
// CONCATENATED MODULE: ../src/lg-events.ts
|
|
5818
|
+
/**
|
|
5819
|
+
* List of lightGallery events
|
|
5820
|
+
* All events should be documented here
|
|
5821
|
+
* Below interfaces are used to build the website documentations
|
|
5822
|
+
* */
|
|
5823
|
+
var lGEvents = {
|
|
5824
|
+
afterAppendSlide: 'lgAfterAppendSlide',
|
|
5825
|
+
init: 'lgInit',
|
|
5826
|
+
hasVideo: 'lgHasVideo',
|
|
5827
|
+
containerResize: 'lgContainerResize',
|
|
5828
|
+
updateSlides: 'lgUpdateSlides',
|
|
5829
|
+
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
|
5830
|
+
beforeOpen: 'lgBeforeOpen',
|
|
5831
|
+
afterOpen: 'lgAfterOpen',
|
|
5832
|
+
slideItemLoad: 'lgSlideItemLoad',
|
|
5833
|
+
beforeSlide: 'lgBeforeSlide',
|
|
5834
|
+
afterSlide: 'lgAfterSlide',
|
|
5835
|
+
posterClick: 'lgPosterClick',
|
|
5836
|
+
dragStart: 'lgDragStart',
|
|
5837
|
+
dragMove: 'lgDragMove',
|
|
5838
|
+
dragEnd: 'lgDragEnd',
|
|
5839
|
+
beforeNextSlide: 'lgBeforeNextSlide',
|
|
5840
|
+
beforePrevSlide: 'lgBeforePrevSlide',
|
|
5841
|
+
beforeClose: 'lgBeforeClose',
|
|
5842
|
+
afterClose: 'lgAfterClose',
|
|
5843
|
+
rotateLeft: 'lgRotateLeft',
|
|
5844
|
+
rotateRight: 'lgRotateRight',
|
|
5845
|
+
flipHorizontal: 'lgFlipHorizontal',
|
|
5846
|
+
flipVertical: 'lgFlipVertical',
|
|
5847
|
+
autoplay: 'lgAutoplay',
|
|
5848
|
+
autoplayStart: 'lgAutoplayStart',
|
|
5849
|
+
autoplayStop: 'lgAutoplayStop'
|
|
5850
|
+
};
|
|
5851
|
+
// CONCATENATED MODULE: ../src/lg-settings.ts
|
|
5852
|
+
var lightGalleryCoreSettings = {
|
|
5853
|
+
mode: 'lg-slide',
|
|
5854
|
+
easing: 'ease',
|
|
5855
|
+
speed: 400,
|
|
5856
|
+
licenseKey: '0000-0000-000-0000',
|
|
5857
|
+
height: '100%',
|
|
5858
|
+
width: '100%',
|
|
5859
|
+
addClass: '',
|
|
5860
|
+
startClass: 'lg-start-zoom',
|
|
5861
|
+
backdropDuration: 300,
|
|
5862
|
+
container: '',
|
|
5863
|
+
startAnimationDuration: 400,
|
|
5864
|
+
zoomFromOrigin: true,
|
|
5865
|
+
hideBarsDelay: 0,
|
|
5866
|
+
showBarsAfter: 10000,
|
|
5867
|
+
slideDelay: 0,
|
|
5868
|
+
supportLegacyBrowser: true,
|
|
5869
|
+
allowMediaOverlap: false,
|
|
5870
|
+
videoMaxSize: '1280-720',
|
|
5871
|
+
loadYouTubePoster: true,
|
|
5872
|
+
defaultCaptionHeight: 0,
|
|
5873
|
+
ariaLabelledby: '',
|
|
5874
|
+
ariaDescribedby: '',
|
|
5875
|
+
closable: true,
|
|
5876
|
+
swipeToClose: true,
|
|
5877
|
+
closeOnTap: true,
|
|
5878
|
+
showCloseIcon: true,
|
|
5879
|
+
showMaximizeIcon: false,
|
|
5880
|
+
loop: true,
|
|
5881
|
+
escKey: true,
|
|
5882
|
+
keyPress: true,
|
|
5883
|
+
controls: true,
|
|
5884
|
+
slideEndAnimation: true,
|
|
5885
|
+
hideControlOnEnd: false,
|
|
5886
|
+
mousewheel: false,
|
|
5887
|
+
getCaptionFromTitleOrAlt: true,
|
|
5888
|
+
appendSubHtmlTo: '.lg-sub-html',
|
|
5889
|
+
subHtmlSelectorRelative: false,
|
|
5890
|
+
preload: 2,
|
|
5891
|
+
numberOfSlideItemsInDom: 10,
|
|
5892
|
+
selector: '',
|
|
5893
|
+
selectWithin: '',
|
|
5894
|
+
nextHtml: '',
|
|
5895
|
+
prevHtml: '',
|
|
5896
|
+
index: 0,
|
|
5897
|
+
iframeWidth: '100%',
|
|
5898
|
+
iframeHeight: '100%',
|
|
5899
|
+
iframeMaxWidth: '100%',
|
|
5900
|
+
iframeMaxHeight: '100%',
|
|
5901
|
+
download: true,
|
|
5902
|
+
counter: true,
|
|
5903
|
+
appendCounterTo: '.lg-toolbar',
|
|
5904
|
+
swipeThreshold: 50,
|
|
5905
|
+
enableSwipe: true,
|
|
5906
|
+
enableDrag: true,
|
|
5907
|
+
dynamic: false,
|
|
5908
|
+
dynamicEl: [],
|
|
5909
|
+
extraProps: [],
|
|
5910
|
+
exThumbImage: '',
|
|
5911
|
+
isMobile: undefined,
|
|
5912
|
+
mobileSettings: {
|
|
5913
|
+
controls: false,
|
|
5914
|
+
showCloseIcon: false,
|
|
5915
|
+
download: false
|
|
5916
|
+
},
|
|
5917
|
+
plugins: [],
|
|
5918
|
+
strings: {
|
|
5919
|
+
closeGallery: 'Close gallery',
|
|
5920
|
+
toggleMaximize: 'Toggle maximize',
|
|
5921
|
+
previousSlide: 'Previous slide',
|
|
5922
|
+
nextSlide: 'Next slide',
|
|
5923
|
+
download: 'Download',
|
|
5924
|
+
playVideo: 'Play video'
|
|
5925
|
+
}
|
|
5926
|
+
};
|
|
5817
5927
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
5818
5928
|
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
5819
5929
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -6249,7 +6359,9 @@ var lgQuery_lgQuery = /*#__PURE__*/function () {
|
|
|
6249
6359
|
var _this5 = this;
|
|
6250
6360
|
|
|
6251
6361
|
fetch(url).then(function (res) {
|
|
6252
|
-
|
|
6362
|
+
return res.text();
|
|
6363
|
+
}).then(function (html) {
|
|
6364
|
+
_this5.selector.innerHTML = html;
|
|
6253
6365
|
});
|
|
6254
6366
|
return this;
|
|
6255
6367
|
}
|
|
@@ -6572,7 +6684,7 @@ var utils = {
|
|
|
6572
6684
|
|
|
6573
6685
|
return true;
|
|
6574
6686
|
},
|
|
6575
|
-
getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, _isVideo) {
|
|
6687
|
+
getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, playVideoString, _isVideo) {
|
|
6576
6688
|
var videoClass = '';
|
|
6577
6689
|
|
|
6578
6690
|
if (_isVideo && _isVideo.youtube) {
|
|
@@ -6583,7 +6695,7 @@ var utils = {
|
|
|
6583
6695
|
videoClass = 'lg-has-html5';
|
|
6584
6696
|
}
|
|
6585
6697
|
|
|
6586
|
-
return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"
|
|
6698
|
+
return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"").concat(playVideoString, "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>").concat(playVideoString, "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
|
|
6587
6699
|
},
|
|
6588
6700
|
|
|
6589
6701
|
/**
|
|
@@ -6675,105 +6787,6 @@ var utils = {
|
|
|
6675
6787
|
}
|
|
6676
6788
|
};
|
|
6677
6789
|
/* harmony default export */ var lg_utils = (utils);
|
|
6678
|
-
// CONCATENATED MODULE: ../src/lg-settings.ts
|
|
6679
|
-
var lightGalleryCoreSettings = {
|
|
6680
|
-
mode: 'lg-slide',
|
|
6681
|
-
easing: 'ease',
|
|
6682
|
-
speed: 400,
|
|
6683
|
-
licenseKey: '0000-0000-000-0000',
|
|
6684
|
-
height: '100%',
|
|
6685
|
-
width: '100%',
|
|
6686
|
-
addClass: '',
|
|
6687
|
-
startClass: 'lg-start-zoom',
|
|
6688
|
-
backdropDuration: 300,
|
|
6689
|
-
container: '',
|
|
6690
|
-
startAnimationDuration: 400,
|
|
6691
|
-
zoomFromOrigin: true,
|
|
6692
|
-
hideBarsDelay: 0,
|
|
6693
|
-
showBarsAfter: 10000,
|
|
6694
|
-
slideDelay: 0,
|
|
6695
|
-
supportLegacyBrowser: true,
|
|
6696
|
-
allowMediaOverlap: false,
|
|
6697
|
-
videoMaxSize: '1280-720',
|
|
6698
|
-
loadYouTubePoster: true,
|
|
6699
|
-
defaultCaptionHeight: 0,
|
|
6700
|
-
ariaLabelledby: '',
|
|
6701
|
-
ariaDescribedby: '',
|
|
6702
|
-
closable: true,
|
|
6703
|
-
swipeToClose: true,
|
|
6704
|
-
closeOnTap: true,
|
|
6705
|
-
showCloseIcon: true,
|
|
6706
|
-
showMaximizeIcon: false,
|
|
6707
|
-
loop: true,
|
|
6708
|
-
escKey: true,
|
|
6709
|
-
keyPress: true,
|
|
6710
|
-
controls: true,
|
|
6711
|
-
slideEndAnimation: true,
|
|
6712
|
-
hideControlOnEnd: false,
|
|
6713
|
-
mousewheel: false,
|
|
6714
|
-
getCaptionFromTitleOrAlt: true,
|
|
6715
|
-
appendSubHtmlTo: '.lg-sub-html',
|
|
6716
|
-
subHtmlSelectorRelative: false,
|
|
6717
|
-
preload: 2,
|
|
6718
|
-
numberOfSlideItemsInDom: 10,
|
|
6719
|
-
selector: '',
|
|
6720
|
-
selectWithin: '',
|
|
6721
|
-
nextHtml: '',
|
|
6722
|
-
prevHtml: '',
|
|
6723
|
-
index: 0,
|
|
6724
|
-
iframeWidth: '100%',
|
|
6725
|
-
iframeHeight: '100%',
|
|
6726
|
-
iframeMaxWidth: '100%',
|
|
6727
|
-
iframeMaxHeight: '100%',
|
|
6728
|
-
download: true,
|
|
6729
|
-
counter: true,
|
|
6730
|
-
appendCounterTo: '.lg-toolbar',
|
|
6731
|
-
swipeThreshold: 50,
|
|
6732
|
-
enableSwipe: true,
|
|
6733
|
-
enableDrag: true,
|
|
6734
|
-
dynamic: false,
|
|
6735
|
-
dynamicEl: [],
|
|
6736
|
-
extraProps: [],
|
|
6737
|
-
exThumbImage: '',
|
|
6738
|
-
isMobile: undefined,
|
|
6739
|
-
mobileSettings: {
|
|
6740
|
-
controls: false,
|
|
6741
|
-
showCloseIcon: false,
|
|
6742
|
-
download: false
|
|
6743
|
-
},
|
|
6744
|
-
plugins: []
|
|
6745
|
-
};
|
|
6746
|
-
// CONCATENATED MODULE: ../src/lg-events.ts
|
|
6747
|
-
/**
|
|
6748
|
-
* List of lightGallery events
|
|
6749
|
-
* All events should be documented here
|
|
6750
|
-
* Below interfaces are used to build the website documentations
|
|
6751
|
-
* */
|
|
6752
|
-
var lGEvents = {
|
|
6753
|
-
afterAppendSlide: 'lgAfterAppendSlide',
|
|
6754
|
-
init: 'lgInit',
|
|
6755
|
-
hasVideo: 'lgHasVideo',
|
|
6756
|
-
containerResize: 'lgContainerResize',
|
|
6757
|
-
updateSlides: 'lgUpdateSlides',
|
|
6758
|
-
afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
|
6759
|
-
beforeOpen: 'lgBeforeOpen',
|
|
6760
|
-
afterOpen: 'lgAfterOpen',
|
|
6761
|
-
slideItemLoad: 'lgSlideItemLoad',
|
|
6762
|
-
beforeSlide: 'lgBeforeSlide',
|
|
6763
|
-
afterSlide: 'lgAfterSlide',
|
|
6764
|
-
posterClick: 'lgPosterClick',
|
|
6765
|
-
dragStart: 'lgDragStart',
|
|
6766
|
-
dragMove: 'lgDragMove',
|
|
6767
|
-
dragEnd: 'lgDragEnd',
|
|
6768
|
-
beforeNextSlide: 'lgBeforeNextSlide',
|
|
6769
|
-
beforePrevSlide: 'lgBeforePrevSlide',
|
|
6770
|
-
beforeClose: 'lgBeforeClose',
|
|
6771
|
-
afterClose: 'lgAfterClose',
|
|
6772
|
-
rotateLeft: 'lgRotateLeft',
|
|
6773
|
-
rotateRight: 'lgRotateRight',
|
|
6774
|
-
flipHorizontal: 'lgFlipHorizontal',
|
|
6775
|
-
flipVertical: 'lgFlipVertical'
|
|
6776
|
-
};
|
|
6777
6790
|
// CONCATENATED MODULE: ../src/lightgallery.ts
|
|
6778
6791
|
|
|
6779
6792
|
|
|
@@ -6999,7 +7012,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
6999
7012
|
var subHtmlCont = ''; // Create controls
|
|
7000
7013
|
|
|
7001
7014
|
if (this.settings.controls) {
|
|
7002
|
-
controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"
|
|
7015
|
+
controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"").concat(this.settings.strings['previousSlide'], "\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"").concat(this.settings.strings['nextSlide'], "\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
|
|
7003
7016
|
}
|
|
7004
7017
|
|
|
7005
7018
|
if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
|
@@ -7016,10 +7029,15 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
7016
7029
|
var ariaLabelledby = this.settings.ariaLabelledby ? 'aria-labelledby="' + this.settings.ariaLabelledby + '"' : '';
|
|
7017
7030
|
var ariaDescribedby = this.settings.ariaDescribedby ? 'aria-describedby="' + this.settings.ariaDescribedby + '"' : '';
|
|
7018
7031
|
var containerClassName = "lg-container ".concat(this.settings.addClass, " ").concat(document.body !== this.settings.container ? 'lg-inline' : '');
|
|
7019
|
-
var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"
|
|
7020
|
-
var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"
|
|
7032
|
+
var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['closeGallery'], "\" id=\"").concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
|
|
7033
|
+
var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['toggleMaximize'], "\" id=\"").concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
|
|
7021
7034
|
var template = "\n <div class=\"".concat(containerClassName, "\" id=\"").concat(this.getIdName('lg-container'), "\" tabindex=\"-1\" aria-modal=\"true\" ").concat(ariaLabelledby, " ").concat(ariaDescribedby, " role=\"dialog\"\n >\n <div id=\"").concat(this.getIdName('lg-backdrop'), "\" class=\"lg-backdrop\"></div>\n\n <div id=\"").concat(this.getIdName('lg-outer'), "\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items ").concat(addClasses, " \">\n\n <div id=\"").concat(this.getIdName('lg-content'), "\" class=\"lg-content\">\n <div id=\"").concat(this.getIdName('lg-inner'), "\" class=\"lg-inner\">\n </div>\n ").concat(controls, "\n </div>\n <div id=\"").concat(this.getIdName('lg-toolbar'), "\" class=\"lg-toolbar lg-group\">\n ").concat(maximizeIcon, "\n ").concat(closeIcon, "\n </div>\n ").concat(this.settings.appendSubHtmlTo === '.lg-outer' ? subHtmlCont : '', "\n <div id=\"").concat(this.getIdName('lg-components'), "\" class=\"lg-components\">\n ").concat(this.settings.appendSubHtmlTo === '.lg-sub-html' ? subHtmlCont : '', "\n </div>\n </div>\n </div>\n ");
|
|
7022
|
-
$LG(this.settings.container).
|
|
7035
|
+
$LG(this.settings.container).append(template);
|
|
7036
|
+
|
|
7037
|
+
if (document.body !== this.settings.container) {
|
|
7038
|
+
$LG(this.settings.container).css('position', 'relative');
|
|
7039
|
+
}
|
|
7040
|
+
|
|
7023
7041
|
this.outer = this.getElementById('lg-outer');
|
|
7024
7042
|
this.$lgComponents = this.getElementById('lg-components');
|
|
7025
7043
|
this.$backdrop = this.getElementById('lg-backdrop');
|
|
@@ -7040,7 +7058,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
7040
7058
|
this.$inner.css('transition-duration', this.settings.speed + 'ms');
|
|
7041
7059
|
|
|
7042
7060
|
if (this.settings.download) {
|
|
7043
|
-
this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"
|
|
7061
|
+
this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"").concat(this.settings.strings['download'], "\" download class=\"lg-download lg-icon\"></a>"));
|
|
7044
7062
|
}
|
|
7045
7063
|
|
|
7046
7064
|
this.counter();
|
|
@@ -7692,7 +7710,7 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
7692
7710
|
dummyImg = this.getDummyImageContent($currentSlide, index, '');
|
|
7693
7711
|
}
|
|
7694
7712
|
|
|
7695
|
-
var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, videoInfo);
|
|
7713
|
+
var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, this.settings.strings['playVideo'], videoInfo);
|
|
7696
7714
|
|
|
7697
7715
|
$currentSlide.prepend(_markup);
|
|
7698
7716
|
} else if (videoInfo) {
|
|
@@ -8993,6 +9011,18 @@ LightGalleryvue_type_script_lang_ts_Lightgallery = __decorate([Options({
|
|
|
8993
9011
|
},
|
|
8994
9012
|
onAfterClose: {
|
|
8995
9013
|
type: Function
|
|
9014
|
+
},
|
|
9015
|
+
onRotateLeft: {
|
|
9016
|
+
type: Function
|
|
9017
|
+
},
|
|
9018
|
+
onRotateRight: {
|
|
9019
|
+
type: Function
|
|
9020
|
+
},
|
|
9021
|
+
onFlipHorizontal: {
|
|
9022
|
+
type: Function
|
|
9023
|
+
},
|
|
9024
|
+
onFlipVertical: {
|
|
9025
|
+
type: Function
|
|
8996
9026
|
}
|
|
8997
9027
|
}
|
|
8998
9028
|
})], LightGalleryvue_type_script_lang_ts_Lightgallery);
|