lightgallery 2.9.0 → 3.0.0-beta.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.
- package/LICENSE +690 -0
- package/README.md +31 -21
- package/dist/README.md +229 -0
- package/{css → dist/css}/lg-autoplay.css +7 -4
- package/{css → dist/css}/lg-autoplay.css.map +1 -1
- package/{css → dist/css}/lg-comments.css +0 -6
- package/{css → dist/css}/lg-comments.css.map +1 -1
- package/dist/css/lg-fullscreen.css +11 -0
- package/dist/css/lg-fullscreen.css.map +1 -0
- package/dist/css/lg-justified.css +37 -0
- package/dist/css/lg-justified.css.map +1 -0
- package/{css → dist/css}/lg-pager.css.map +1 -1
- package/{css → dist/css}/lg-rotate.css +0 -16
- package/{css → dist/css}/lg-rotate.css.map +1 -1
- package/dist/css/lg-rtl.css +94 -0
- package/dist/css/lg-rtl.css.map +1 -0
- package/{css → dist/css}/lg-share.css +4 -32
- package/dist/css/lg-share.css.map +1 -0
- package/{css → dist/css}/lg-thumbnail.css +7 -3
- package/dist/css/lg-thumbnail.css.map +1 -0
- package/{css → dist/css}/lg-transitions.css +10 -0
- package/dist/css/lg-transitions.css.map +1 -0
- package/{css → dist/css}/lg-zoom.css +20 -9
- package/dist/css/lg-zoom.css.map +1 -0
- package/{css → dist/css}/lightgallery-bundle.css +150 -118
- package/dist/css/lightgallery-bundle.css.map +1 -0
- package/dist/css/lightgallery-bundle.min.css +1 -0
- package/{css → dist/css}/lightgallery-core.css +49 -7
- package/dist/css/lightgallery-core.css.map +1 -0
- package/{css → dist/css}/lightgallery.css +105 -44
- package/dist/css/lightgallery.css.map +1 -0
- package/dist/lightgallery.es5.js +3797 -0
- package/dist/lightgallery.es5.js.map +1 -0
- package/dist/lightgallery.min.js +1 -0
- package/dist/lightgallery.umd.js +3800 -0
- package/dist/lightgallery.umd.js.map +1 -0
- package/dist/package.json +33 -0
- package/dist/plugins/autoplay/lg-autoplay.es5.js +193 -0
- package/dist/plugins/autoplay/lg-autoplay.es5.js.map +1 -0
- package/dist/plugins/autoplay/lg-autoplay.min.js +1 -0
- package/dist/plugins/autoplay/lg-autoplay.umd.js +196 -0
- package/dist/plugins/autoplay/lg-autoplay.umd.js.map +1 -0
- package/dist/plugins/autoplay/package.json +7 -0
- package/dist/plugins/comment/lg-comment.es5.js +136 -0
- package/dist/plugins/comment/lg-comment.es5.js.map +1 -0
- package/dist/plugins/comment/lg-comment.min.js +1 -0
- package/dist/plugins/comment/lg-comment.umd.js +139 -0
- package/dist/plugins/comment/lg-comment.umd.js.map +1 -0
- package/dist/plugins/comment/package.json +7 -0
- package/dist/plugins/fullscreen/lg-fullscreen.es5.js +114 -0
- package/dist/plugins/fullscreen/lg-fullscreen.es5.js.map +1 -0
- package/dist/plugins/fullscreen/lg-fullscreen.min.js +1 -0
- package/dist/plugins/fullscreen/lg-fullscreen.umd.js +117 -0
- package/dist/plugins/fullscreen/lg-fullscreen.umd.js.map +1 -0
- package/dist/plugins/fullscreen/package.json +7 -0
- package/dist/plugins/hash/lg-hash.es5.js +207 -0
- package/dist/plugins/hash/lg-hash.es5.js.map +1 -0
- package/dist/plugins/hash/lg-hash.min.js +1 -0
- package/dist/plugins/hash/lg-hash.umd.js +210 -0
- package/dist/plugins/hash/lg-hash.umd.js.map +1 -0
- package/dist/plugins/hash/package.json +7 -0
- package/dist/plugins/justified/lg-justified.es5.js +415 -0
- package/dist/plugins/justified/lg-justified.es5.js.map +1 -0
- package/dist/plugins/justified/lg-justified.min.js +1 -0
- package/dist/plugins/justified/lg-justified.umd.js +418 -0
- package/dist/plugins/justified/lg-justified.umd.js.map +1 -0
- package/dist/plugins/justified/package.json +7 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js +95 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js.map +1 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.min.js +1 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js +98 -0
- package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js.map +1 -0
- package/dist/plugins/mediumZoom/package.json +7 -0
- package/dist/plugins/originCrop/lg-origin-crop.es5.js +622 -0
- package/dist/plugins/originCrop/lg-origin-crop.es5.js.map +1 -0
- package/dist/plugins/originCrop/lg-origin-crop.min.js +1 -0
- package/dist/plugins/originCrop/lg-origin-crop.umd.js +625 -0
- package/dist/plugins/originCrop/lg-origin-crop.umd.js.map +1 -0
- package/dist/plugins/pager/lg-pager.es5.js +96 -0
- package/dist/plugins/pager/lg-pager.es5.js.map +1 -0
- package/dist/plugins/pager/lg-pager.min.js +1 -0
- package/dist/plugins/pager/lg-pager.umd.js +99 -0
- package/dist/plugins/pager/lg-pager.umd.js.map +1 -0
- package/dist/plugins/pager/package.json +7 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.es5.js +98 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.es5.js.map +1 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.min.js +1 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.umd.js +101 -0
- package/dist/plugins/relativeCaption/lg-relative-caption.umd.js.map +1 -0
- package/dist/plugins/relativeCaption/package.json +7 -0
- package/dist/plugins/rotate/lg-rotate.es5.js +226 -0
- package/dist/plugins/rotate/lg-rotate.es5.js.map +1 -0
- package/dist/plugins/rotate/lg-rotate.min.js +1 -0
- package/dist/plugins/rotate/lg-rotate.umd.js +229 -0
- package/dist/plugins/rotate/lg-rotate.umd.js.map +1 -0
- package/dist/plugins/rotate/package.json +7 -0
- package/dist/plugins/share/lg-share.es5.js +309 -0
- package/dist/plugins/share/lg-share.es5.js.map +1 -0
- package/dist/plugins/share/lg-share.min.js +1 -0
- package/dist/plugins/share/lg-share.umd.js +312 -0
- package/dist/plugins/share/lg-share.umd.js.map +1 -0
- package/dist/plugins/share/package.json +7 -0
- package/dist/plugins/thumbnail/lg-thumbnail.es5.js +792 -0
- package/dist/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -0
- package/dist/plugins/thumbnail/lg-thumbnail.min.js +1 -0
- package/dist/plugins/thumbnail/lg-thumbnail.umd.js +795 -0
- package/dist/plugins/thumbnail/lg-thumbnail.umd.js.map +1 -0
- package/dist/plugins/thumbnail/package.json +7 -0
- package/dist/plugins/video/lg-video.es5.js +518 -0
- package/dist/plugins/video/lg-video.es5.js.map +1 -0
- package/dist/plugins/video/lg-video.min.js +1 -0
- package/dist/plugins/video/lg-video.umd.js +521 -0
- package/dist/plugins/video/lg-video.umd.js.map +1 -0
- package/dist/plugins/video/package.json +7 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +72 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +1 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +75 -0
- package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +1 -0
- package/dist/plugins/vimeoThumbnail/package.json +7 -0
- package/dist/plugins/zoom/lg-zoom.es5.js +1412 -0
- package/dist/plugins/zoom/lg-zoom.es5.js.map +1 -0
- package/dist/plugins/zoom/lg-zoom.min.js +1 -0
- package/dist/plugins/zoom/lg-zoom.umd.js +1415 -0
- package/dist/plugins/zoom/lg-zoom.umd.js.map +1 -0
- package/dist/plugins/zoom/package.json +7 -0
- package/{scss → dist/scss}/_lg-theme-default.scss +68 -18
- package/{scss → dist/scss}/_lg-variables.scss +0 -1
- package/{scss → dist/scss}/lg-autoplay.scss +10 -4
- package/{scss → dist/scss}/lg-comments.scss +0 -8
- package/dist/scss/lg-fullscreen.scss +15 -0
- package/dist/scss/lg-justified.scss +63 -0
- package/{scss → dist/scss}/lg-rotate.scss +0 -24
- package/dist/scss/lg-rtl.scss +145 -0
- package/{scss → dist/scss}/lg-share.scss +6 -33
- package/{scss → dist/scss}/lg-thumbnail.scss +16 -5
- package/{scss → dist/scss}/lg-zoom.scss +46 -9
- package/{scss → dist/scss}/lightgallery-bundle.scss +0 -1
- package/{scss → dist/scss}/lightgallery-core.scss +73 -6
- package/{scss → dist/scss}/lightgallery.scss +0 -1
- package/{scss → dist/scss}/transitions/_lg-scale-up.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-slide-circular-vertical.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-slide-circular.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-soft-zoom.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in-big.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in-out.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-in.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out-big.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out-in.scss +6 -0
- package/{scss → dist/scss}/transitions/_lg-zoom-out.scss +6 -0
- package/dist/types/headless/announce.d.ts +22 -0
- package/dist/types/headless/emitter.d.ts +14 -0
- package/dist/types/headless/gestures.d.ts +128 -0
- package/dist/types/headless/hash-driver.d.ts +77 -0
- package/dist/types/headless/icons.d.ts +56 -0
- package/dist/types/headless/index.d.ts +34 -0
- package/dist/types/headless/items.d.ts +92 -0
- package/dist/types/headless/justified-layout.d.ts +71 -0
- package/dist/types/headless/license.d.ts +35 -0
- package/dist/types/headless/origin-crop.d.ts +135 -0
- package/dist/types/headless/origin.d.ts +65 -0
- package/dist/types/headless/plugin-slices.d.ts +64 -0
- package/dist/types/headless/preload.d.ts +36 -0
- package/dist/types/headless/responsive.d.ts +90 -0
- package/dist/types/headless/settings.d.ts +268 -0
- package/dist/types/headless/share-urls.d.ts +60 -0
- package/dist/types/headless/spring.d.ts +42 -0
- package/dist/types/headless/state.d.ts +63 -0
- package/dist/types/headless/thumb-math.d.ts +85 -0
- package/dist/types/headless/toolbar-overflow.d.ts +61 -0
- package/dist/types/headless/transition.d.ts +33 -0
- package/dist/types/headless/velocity.d.ts +31 -0
- package/dist/types/headless/video-urls.d.ts +64 -0
- package/dist/types/headless/zoom-math.d.ts +89 -0
- package/{index.d.ts → dist/types/index.d.ts} +9 -4
- package/{lg-events.d.ts → dist/types/lg-events.d.ts} +300 -300
- package/dist/types/lg-icons.d.ts +27 -0
- package/{lg-plugin.d.ts → dist/types/lg-plugin.d.ts} +7 -7
- package/{lg-settings.d.ts → dist/types/lg-settings.d.ts} +549 -425
- package/dist/types/lg-spring-runner.d.ts +14 -0
- package/dist/types/lg-toolbar-overflow.d.ts +36 -0
- package/{lg-utils.d.ts → dist/types/lg-utils.d.ts} +236 -228
- package/{lgQuery.d.ts → dist/types/lgQuery.d.ts} +56 -56
- package/{lightgallery.d.ts → dist/types/lightgallery.d.ts} +384 -305
- package/{plugins → dist/types/plugins}/autoplay/lg-autoplay-settings.d.ts +41 -38
- package/{plugins → dist/types/plugins}/autoplay/lg-autoplay.d.ts +22 -22
- package/{plugins → dist/types/plugins}/comment/lg-comment-settings.d.ts +36 -33
- package/{plugins → dist/types/plugins}/comment/lg-comment.d.ts +25 -25
- package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen-settings.d.ts +17 -14
- package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen.d.ts +16 -16
- package/dist/types/plugins/hash/lg-hash-settings.d.ts +28 -0
- package/{plugins → dist/types/plugins}/hash/lg-hash.d.ts +25 -23
- package/dist/types/plugins/justified/lg-justified-settings.d.ts +42 -0
- package/dist/types/plugins/justified/lg-justified.d.ts +55 -0
- package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom-settings.d.ts +16 -16
- package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom.d.ts +12 -12
- package/dist/types/plugins/originCrop/lg-origin-crop-settings.d.ts +12 -0
- package/dist/types/plugins/originCrop/lg-origin-crop.d.ts +79 -0
- package/{plugins → dist/types/plugins}/pager/lg-pager-settings.d.ts +7 -7
- package/{plugins → dist/types/plugins}/pager/lg-pager.d.ts +13 -13
- package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption-settings.d.ts +7 -7
- package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption.d.ts +14 -14
- package/{plugins → dist/types/plugins}/rotate/lg-rotate-settings.d.ts +47 -45
- package/{plugins → dist/types/plugins}/rotate/lg-rotate.d.ts +25 -24
- package/{plugins → dist/types/plugins}/share/lg-fb-share-utils.d.ts +2 -2
- package/{plugins → dist/types/plugins}/share/lg-pinterest-share-utils.d.ts +2 -2
- package/{plugins → dist/types/plugins}/share/lg-share-settings.d.ts +71 -56
- package/dist/types/plugins/share/lg-share.d.ts +33 -0
- package/dist/types/plugins/share/lg-twitter-share-utils.d.ts +4 -0
- package/{plugins → dist/types/plugins}/share/types.d.ts +6 -6
- package/{plugins → dist/types/plugins}/thumbnail/lg-thumbnail-settings.d.ts +85 -70
- package/dist/types/plugins/thumbnail/lg-thumbnail.d.ts +88 -0
- package/{plugins → dist/types/plugins}/video/lg-video-settings.d.ts +94 -71
- package/{plugins → dist/types/plugins}/video/lg-video.d.ts +116 -104
- package/{plugins → dist/types/plugins}/video/types.d.ts +8 -8
- package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail-settings.d.ts +11 -11
- package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail.d.ts +14 -14
- package/{plugins → dist/types/plugins}/zoom/lg-zoom-settings.d.ts +54 -51
- package/{plugins → dist/types/plugins}/zoom/lg-zoom.d.ts +145 -108
- package/{types.d.ts → dist/types/types.d.ts} +40 -40
- package/package.json +222 -8
- package/angular/10/README.md +0 -24
- package/angular/10/bundles/lightgallery-angular-10.umd.js +0 -289
- package/angular/10/bundles/lightgallery-angular-10.umd.js.map +0 -1
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js +0 -2
- package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +0 -1
- package/angular/10/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/10/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/10/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/10/esm2015/lightgallery-angular-10.js +0 -5
- package/angular/10/esm2015/public-api.js +0 -7
- package/angular/10/fesm2015/lightgallery-angular-10.js +0 -261
- package/angular/10/fesm2015/lightgallery-angular-10.js.map +0 -1
- package/angular/10/lib/lightgallery-angular.component.d.ts +0 -39
- package/angular/10/lib/lightgallery-angular.component.d.ts.map +0 -1
- package/angular/10/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/10/lib/lightgallery-angular.module.d.ts.map +0 -1
- package/angular/10/lib/lightgallery-angular.service.d.ts +0 -7
- package/angular/10/lib/lightgallery-angular.service.d.ts.map +0 -1
- package/angular/10/lightgallery-angular-10.d.ts +0 -6
- package/angular/10/lightgallery-angular-10.d.ts.map +0 -1
- package/angular/10/package.json +0 -21
- package/angular/10/public-api.d.ts +0 -4
- package/angular/10/public-api.d.ts.map +0 -1
- package/angular/11/README.md +0 -24
- package/angular/11/bundles/lightgallery-angular-11.umd.js +0 -290
- package/angular/11/bundles/lightgallery-angular-11.umd.js.map +0 -1
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js +0 -2
- package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +0 -1
- package/angular/11/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/11/esm2015/lib/lightgallery-angular.module.js +0 -18
- package/angular/11/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/11/esm2015/lightgallery-angular-11.js +0 -5
- package/angular/11/esm2015/public-api.js +0 -7
- package/angular/11/fesm2015/lightgallery-angular-11.js +0 -262
- package/angular/11/fesm2015/lightgallery-angular-11.js.map +0 -1
- package/angular/11/lib/lightgallery-angular.component.d.ts +0 -39
- package/angular/11/lib/lightgallery-angular.component.d.ts.map +0 -1
- package/angular/11/lib/lightgallery-angular.module.d.ts +0 -8
- package/angular/11/lib/lightgallery-angular.module.d.ts.map +0 -1
- package/angular/11/lib/lightgallery-angular.service.d.ts +0 -7
- package/angular/11/lib/lightgallery-angular.service.d.ts.map +0 -1
- package/angular/11/lightgallery-angular-11.d.ts +0 -6
- package/angular/11/lightgallery-angular-11.d.ts.map +0 -1
- package/angular/11/package.json +0 -21
- package/angular/11/public-api.d.ts +0 -4
- package/angular/11/public-api.d.ts.map +0 -1
- package/angular/12/README.md +0 -24
- package/angular/12/bundles/lightgallery-angular-12.umd.js +0 -296
- package/angular/12/bundles/lightgallery-angular-12.umd.js.map +0 -1
- package/angular/12/esm2015/lib/lightgallery-angular.component.js +0 -221
- package/angular/12/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/12/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/12/esm2015/lightgallery-angular-12.js +0 -5
- package/angular/12/esm2015/public-api.js +0 -7
- package/angular/12/fesm2015/lightgallery-angular-12.js +0 -258
- package/angular/12/fesm2015/lightgallery-angular-12.js.map +0 -1
- package/angular/12/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/12/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/12/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/12/lightgallery-angular-12.d.ts +0 -5
- package/angular/12/package.json +0 -18
- package/angular/12/public-api.d.ts +0 -3
- package/angular/13/README.md +0 -24
- package/angular/13/esm2020/lib/lightgallery-angular.component.mjs +0 -221
- package/angular/13/esm2020/lib/lightgallery-angular.module.mjs +0 -17
- package/angular/13/esm2020/lib/lightgallery-angular.service.mjs +0 -14
- package/angular/13/esm2020/lightgallery-angular-13.mjs +0 -5
- package/angular/13/esm2020/public-api.mjs +0 -7
- package/angular/13/fesm2015/lightgallery-angular-13.mjs +0 -258
- package/angular/13/fesm2015/lightgallery-angular-13.mjs.map +0 -1
- package/angular/13/fesm2020/lightgallery-angular-13.mjs +0 -258
- package/angular/13/fesm2020/lightgallery-angular-13.mjs.map +0 -1
- package/angular/13/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/13/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/13/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/13/lightgallery-angular-13.d.ts +0 -5
- package/angular/13/package.json +0 -31
- package/angular/13/public-api.d.ts +0 -3
- package/angular/14/README.md +0 -24
- package/angular/14/esm2020/lib/lightgallery-angular.component.mjs +0 -217
- package/angular/14/esm2020/lib/lightgallery-angular.module.mjs +0 -17
- package/angular/14/esm2020/lib/lightgallery-angular.service.mjs +0 -14
- package/angular/14/esm2020/lightgallery-angular-14.mjs +0 -5
- package/angular/14/esm2020/public-api.mjs +0 -7
- package/angular/14/fesm2015/lightgallery-angular-14.mjs +0 -254
- package/angular/14/fesm2015/lightgallery-angular-14.mjs.map +0 -1
- package/angular/14/fesm2020/lightgallery-angular-14.mjs +0 -254
- package/angular/14/fesm2020/lightgallery-angular-14.mjs.map +0 -1
- package/angular/14/index.d.ts +0 -5
- package/angular/14/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/14/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/14/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/14/package.json +0 -31
- package/angular/14/public-api.d.ts +0 -3
- package/angular/15/README.md +0 -24
- package/angular/15/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/15/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/15/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/15/esm2022/lightgallery-angular-15.mjs +0 -5
- package/angular/15/esm2022/public-api.mjs +0 -7
- package/angular/15/fesm2022/lightgallery-angular-15.mjs +0 -254
- package/angular/15/fesm2022/lightgallery-angular-15.mjs.map +0 -1
- package/angular/15/index.d.ts +0 -5
- package/angular/15/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/15/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/15/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/15/package.json +0 -25
- package/angular/15/public-api.d.ts +0 -3
- package/angular/16/README.md +0 -24
- package/angular/16/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/16/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/16/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/16/esm2022/lightgallery-angular-16.mjs +0 -5
- package/angular/16/esm2022/public-api.mjs +0 -7
- package/angular/16/fesm2022/lightgallery-angular-16.mjs +0 -254
- package/angular/16/fesm2022/lightgallery-angular-16.mjs.map +0 -1
- package/angular/16/index.d.ts +0 -5
- package/angular/16/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/16/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/16/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/16/package.json +0 -25
- package/angular/16/public-api.d.ts +0 -3
- package/angular/9/README.md +0 -24
- package/angular/9/bundles/lightgallery-angular-9.umd.js +0 -271
- package/angular/9/bundles/lightgallery-angular-9.umd.js.map +0 -1
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js +0 -2
- package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +0 -1
- package/angular/9/esm2015/lib/lightgallery-angular.component.js +0 -225
- package/angular/9/esm2015/lib/lightgallery-angular.module.js +0 -17
- package/angular/9/esm2015/lib/lightgallery-angular.service.js +0 -14
- package/angular/9/esm2015/lightgallery-angular-9.js +0 -5
- package/angular/9/esm2015/public-api.js +0 -7
- package/angular/9/esm5/lib/lightgallery-angular.component.js +0 -228
- package/angular/9/esm5/lib/lightgallery-angular.module.js +0 -21
- package/angular/9/esm5/lib/lightgallery-angular.service.js +0 -17
- package/angular/9/esm5/lightgallery-angular-9.js +0 -5
- package/angular/9/esm5/public-api.js +0 -7
- package/angular/9/fesm2015/lightgallery-angular-9.js +0 -261
- package/angular/9/fesm2015/lightgallery-angular-9.js.map +0 -1
- package/angular/9/fesm5/lightgallery-angular-9.js +0 -268
- package/angular/9/fesm5/lightgallery-angular-9.js.map +0 -1
- package/angular/9/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/9/lib/lightgallery-angular.module.d.ts +0 -6
- package/angular/9/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/9/lightgallery-angular-9.d.ts +0 -5
- package/angular/9/package.json +0 -23
- package/angular/9/public-api.d.ts +0 -3
- package/angular/README.md +0 -24
- package/angular/esm2022/lib/lightgallery-angular.component.mjs +0 -218
- package/angular/esm2022/lib/lightgallery-angular.module.mjs +0 -18
- package/angular/esm2022/lib/lightgallery-angular.service.mjs +0 -15
- package/angular/esm2022/lightgallery-angular.mjs +0 -5
- package/angular/esm2022/public-api.mjs +0 -7
- package/angular/fesm2022/lightgallery-angular.mjs +0 -254
- package/angular/fesm2022/lightgallery-angular.mjs.map +0 -1
- package/angular/index.d.ts +0 -5
- package/angular/lib/lightgallery-angular.component.d.ts +0 -38
- package/angular/lib/lightgallery-angular.module.d.ts +0 -7
- package/angular/lib/lightgallery-angular.service.d.ts +0 -6
- package/angular/package.json +0 -25
- package/angular/public-api.d.ts +0 -3
- package/css/lg-fullscreen.css +0 -8
- package/css/lg-fullscreen.css.map +0 -1
- package/css/lg-share.css.map +0 -1
- package/css/lg-thumbnail.css.map +0 -1
- package/css/lg-transitions.css.map +0 -1
- package/css/lg-zoom.css.map +0 -1
- package/css/lightgallery-bundle.css.map +0 -1
- package/css/lightgallery-bundle.min.css +0 -1
- package/css/lightgallery-core.css.map +0 -1
- package/css/lightgallery.css.map +0 -1
- package/fonts/lg.svg +0 -54
- package/fonts/lg.ttf +0 -0
- package/fonts/lg.woff +0 -0
- package/fonts/lg.woff2 +0 -0
- package/lib/index.js +0 -8
- package/lib/index.js.map +0 -1
- package/lib/lg-events.js +0 -37
- package/lib/lg-events.js.map +0 -1
- package/lib/lg-plugin.js +0 -13
- package/lib/lg-plugin.js.map +0 -1
- package/lib/lg-settings.js +0 -83
- package/lib/lg-settings.js.map +0 -1
- package/lib/lg-utils.js +0 -328
- package/lib/lg-utils.js.map +0 -1
- package/lib/lgQuery.js +0 -385
- package/lib/lgQuery.js.map +0 -1
- package/lib/lightgallery.js +0 -1949
- package/lib/lightgallery.js.map +0 -1
- package/lib/plugins/autoplay/lg-autoplay-settings.js +0 -16
- package/lib/plugins/autoplay/lg-autoplay-settings.js.map +0 -1
- package/lib/plugins/autoplay/lg-autoplay.js +0 -184
- package/lib/plugins/autoplay/lg-autoplay.js.map +0 -1
- package/lib/plugins/comment/lg-comment-settings.js +0 -17
- package/lib/plugins/comment/lg-comment-settings.js.map +0 -1
- package/lib/plugins/comment/lg-comment.js +0 -140
- package/lib/plugins/comment/lg-comment.js.map +0 -1
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js +0 -10
- package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +0 -1
- package/lib/plugins/fullscreen/lg-fullscreen.js +0 -108
- package/lib/plugins/fullscreen/lg-fullscreen.js.map +0 -1
- package/lib/plugins/hash/lg-hash-settings.js +0 -9
- package/lib/plugins/hash/lg-hash-settings.js.map +0 -1
- package/lib/plugins/hash/lg-hash.js +0 -139
- package/lib/plugins/hash/lg-hash.js.map +0 -1
- package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js +0 -9
- package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js.map +0 -1
- package/lib/plugins/mediumZoom/lg-medium-zoom.js +0 -73
- package/lib/plugins/mediumZoom/lg-medium-zoom.js.map +0 -1
- package/lib/plugins/pager/lg-pager-settings.js +0 -7
- package/lib/plugins/pager/lg-pager-settings.js.map +0 -1
- package/lib/plugins/pager/lg-pager.js +0 -82
- package/lib/plugins/pager/lg-pager.js.map +0 -1
- package/lib/plugins/relativeCaption/lg-relative-caption-settings.js +0 -7
- package/lib/plugins/relativeCaption/lg-relative-caption-settings.js.map +0 -1
- package/lib/plugins/relativeCaption/lg-relative-caption.js +0 -97
- package/lib/plugins/relativeCaption/lg-relative-caption.js.map +0 -1
- package/lib/plugins/rotate/lg-rotate-settings.js +0 -18
- package/lib/plugins/rotate/lg-rotate-settings.js.map +0 -1
- package/lib/plugins/rotate/lg-rotate.js +0 -206
- package/lib/plugins/rotate/lg-rotate.js.map +0 -1
- package/lib/plugins/share/lg-fb-share-utils.js +0 -10
- package/lib/plugins/share/lg-fb-share-utils.js.map +0 -1
- package/lib/plugins/share/lg-pinterest-share-utils.js +0 -17
- package/lib/plugins/share/lg-pinterest-share-utils.js.map +0 -1
- package/lib/plugins/share/lg-share-settings.js +0 -15
- package/lib/plugins/share/lg-share-settings.js.map +0 -1
- package/lib/plugins/share/lg-share.js +0 -130
- package/lib/plugins/share/lg-share.js.map +0 -1
- package/lib/plugins/share/lg-twitter-share-utils.js +0 -11
- package/lib/plugins/share/lg-twitter-share-utils.js.map +0 -1
- package/lib/plugins/share/types.js +0 -3
- package/lib/plugins/share/types.js.map +0 -1
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js +0 -23
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +0 -1
- package/lib/plugins/thumbnail/lg-thumbnail.js +0 -414
- package/lib/plugins/thumbnail/lg-thumbnail.js.map +0 -1
- package/lib/plugins/video/lg-video-settings.js +0 -15
- package/lib/plugins/video/lg-video-settings.js.map +0 -1
- package/lib/plugins/video/lg-video-utils.js +0 -84
- package/lib/plugins/video/lg-video-utils.js.map +0 -1
- package/lib/plugins/video/lg-video.js +0 -411
- package/lib/plugins/video/lg-video.js.map +0 -1
- package/lib/plugins/video/types.js +0 -3
- package/lib/plugins/video/types.js.map +0 -1
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js +0 -8
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js.map +0 -1
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js +0 -122
- package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js.map +0 -1
- package/lib/plugins/zoom/lg-zoom-settings.js +0 -21
- package/lib/plugins/zoom/lg-zoom-settings.js.map +0 -1
- package/lib/plugins/zoom/lg-zoom.js +0 -909
- package/lib/plugins/zoom/lg-zoom.js.map +0 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +0 -1
- package/lightgallery-2.9.0.tgz +0 -0
- package/lightgallery.es5.js +0 -2786
- package/lightgallery.es5.js.map +0 -1
- package/lightgallery.min.js +0 -8
- package/lightgallery.umd.js +0 -2794
- package/lightgallery.umd.js.map +0 -1
- package/lit/custom-elements.json +0 -82
- package/lit/lightgallery.esm.js +0 -59
- package/lit/lightgallery.umd.js +0 -37
- package/lit/package.json +0 -8
- package/plugins/autoplay/lg-autoplay.es5.js +0 -250
- package/plugins/autoplay/lg-autoplay.es5.js.map +0 -1
- package/plugins/autoplay/lg-autoplay.min.js +0 -8
- package/plugins/autoplay/lg-autoplay.umd.js +0 -258
- package/plugins/autoplay/lg-autoplay.umd.js.map +0 -1
- package/plugins/autoplay/package.json +0 -7
- package/plugins/comment/lg-comment.es5.js +0 -205
- package/plugins/comment/lg-comment.es5.js.map +0 -1
- package/plugins/comment/lg-comment.min.js +0 -8
- package/plugins/comment/lg-comment.umd.js +0 -213
- package/plugins/comment/lg-comment.umd.js.map +0 -1
- package/plugins/comment/package.json +0 -7
- package/plugins/fullscreen/lg-fullscreen.es5.js +0 -135
- package/plugins/fullscreen/lg-fullscreen.es5.js.map +0 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +0 -8
- package/plugins/fullscreen/lg-fullscreen.umd.js +0 -143
- package/plugins/fullscreen/lg-fullscreen.umd.js.map +0 -1
- package/plugins/fullscreen/package.json +0 -7
- package/plugins/hash/lg-hash-settings.d.ts +0 -16
- package/plugins/hash/lg-hash.es5.js +0 -198
- package/plugins/hash/lg-hash.es5.js.map +0 -1
- package/plugins/hash/lg-hash.min.js +0 -8
- package/plugins/hash/lg-hash.umd.js +0 -206
- package/plugins/hash/lg-hash.umd.js.map +0 -1
- package/plugins/hash/package.json +0 -7
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +0 -132
- package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +0 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +0 -8
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +0 -140
- package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +0 -1
- package/plugins/mediumZoom/package.json +0 -7
- package/plugins/pager/lg-pager.es5.js +0 -139
- package/plugins/pager/lg-pager.es5.js.map +0 -1
- package/plugins/pager/lg-pager.min.js +0 -8
- package/plugins/pager/lg-pager.umd.js +0 -147
- package/plugins/pager/lg-pager.umd.js.map +0 -1
- package/plugins/pager/package.json +0 -7
- package/plugins/relativeCaption/lg-relative-caption.es5.js +0 -154
- package/plugins/relativeCaption/lg-relative-caption.es5.js.map +0 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +0 -8
- package/plugins/relativeCaption/lg-relative-caption.umd.js +0 -162
- package/plugins/relativeCaption/lg-relative-caption.umd.js.map +0 -1
- package/plugins/relativeCaption/package.json +0 -7
- package/plugins/rotate/lg-rotate.es5.js +0 -274
- package/plugins/rotate/lg-rotate.es5.js.map +0 -1
- package/plugins/rotate/lg-rotate.min.js +0 -8
- package/plugins/rotate/lg-rotate.umd.js +0 -282
- package/plugins/rotate/lg-rotate.umd.js.map +0 -1
- package/plugins/rotate/package.json +0 -7
- package/plugins/share/lg-share.d.ts +0 -15
- package/plugins/share/lg-share.es5.js +0 -219
- package/plugins/share/lg-share.es5.js.map +0 -1
- package/plugins/share/lg-share.min.js +0 -8
- package/plugins/share/lg-share.umd.js +0 -227
- package/plugins/share/lg-share.umd.js.map +0 -1
- package/plugins/share/lg-twitter-share-utils.d.ts +0 -2
- package/plugins/share/package.json +0 -7
- package/plugins/thumbnail/lg-thumbnail.d.ts +0 -48
- package/plugins/thumbnail/lg-thumbnail.es5.js +0 -487
- package/plugins/thumbnail/lg-thumbnail.es5.js.map +0 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +0 -8
- package/plugins/thumbnail/lg-thumbnail.umd.js +0 -495
- package/plugins/thumbnail/lg-thumbnail.umd.js.map +0 -1
- package/plugins/thumbnail/package.json +0 -7
- package/plugins/video/lg-video-utils.d.ts +0 -10
- package/plugins/video/lg-video.es5.js +0 -545
- package/plugins/video/lg-video.es5.js.map +0 -1
- package/plugins/video/lg-video.min.js +0 -8
- package/plugins/video/lg-video.umd.js +0 -553
- package/plugins/video/lg-video.umd.js.map +0 -1
- package/plugins/video/package.json +0 -7
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +0 -182
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +0 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +0 -8
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +0 -190
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +0 -1
- package/plugins/vimeoThumbnail/package.json +0 -7
- package/plugins/zoom/lg-zoom.es5.js +0 -980
- package/plugins/zoom/lg-zoom.es5.js.map +0 -1
- package/plugins/zoom/lg-zoom.min.js +0 -8
- package/plugins/zoom/lg-zoom.umd.js +0 -988
- package/plugins/zoom/lg-zoom.umd.js.map +0 -1
- package/plugins/zoom/package.json +0 -7
- package/react/Lightgallery.d.ts +0 -33
- package/react/Lightgallery.es5.js +0 -2988
- package/react/Lightgallery.es5.js.map +0 -1
- package/react/Lightgallery.umd.js +0 -2994
- package/react/Lightgallery.umd.js.map +0 -1
- package/react/package.json +0 -7
- package/scss/_lg-fonts.scss +0 -27
- package/scss/lg-fullscreen.scss +0 -9
- package/vue/LightGallery.vue.d.ts +0 -37
- package/vue/LightGalleryVue.common.js +0 -9343
- package/vue/LightGalleryVue.common.js.map +0 -1
- package/vue/LightGalleryVue.umd.js +0 -9353
- package/vue/LightGalleryVue.umd.js.map +0 -1
- package/vue/LightGalleryVue.umd.min.js +0 -8
- package/vue/LightGalleryVue.umd.min.js.map +0 -1
- package/vue/package.json +0 -7
- /package/{css → dist/css}/lg-medium-zoom.css +0 -0
- /package/{css → dist/css}/lg-medium-zoom.css.map +0 -0
- /package/{css → dist/css}/lg-pager.css +0 -0
- /package/{css → dist/css}/lg-relative-caption.css +0 -0
- /package/{css → dist/css}/lg-relative-caption.css.map +0 -0
- /package/{css → dist/css}/lg-video.css +0 -0
- /package/{css → dist/css}/lg-video.css.map +0 -0
- /package/{images → dist/images}/loading.gif +0 -0
- /package/{scss → dist/scss}/_lg-mixins.scss +0 -0
- /package/{scss → dist/scss}/lg-medium-zoom.scss +0 -0
- /package/{scss → dist/scss}/lg-pager.scss +0 -0
- /package/{scss → dist/scss}/lg-relative-caption.scss +0 -0
- /package/{scss → dist/scss}/lg-transitions.scss +0 -0
- /package/{scss → dist/scss}/lg-video.scss +0 -0
- /package/{scss → dist/scss}/transitions/_index.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-lollipop-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-lollipop.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-rotate-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-rotate.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-only.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-rev.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-skew.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-vertical-growth.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-slide-vertical.scss +0 -0
- /package/{scss → dist/scss}/transitions/_lg-tube.scss +0 -0
|
@@ -1,425 +1,549 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
* If you are using
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
*
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
*
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* <
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* <
|
|
146
|
-
*
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
*
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
*
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
*
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
*
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
*
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
*
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
*/
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
*
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Enable
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
*
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
*
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
*
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
*
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
*
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
*
|
|
400
|
-
*/
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
*
|
|
404
|
-
*/
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
*
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
*
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
*
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
1
|
+
import { VirtualizationSettings } from './headless/index';
|
|
2
|
+
import { LgIcons } from './lg-icons';
|
|
3
|
+
import { GalleryItem } from './lg-utils';
|
|
4
|
+
import { LgQuery } from './lgQuery';
|
|
5
|
+
import { LightGallery } from './lightgallery';
|
|
6
|
+
import { AutoplaySettings } from './plugins/autoplay/lg-autoplay-settings';
|
|
7
|
+
import { CommentSettings } from './plugins/comment/lg-comment-settings';
|
|
8
|
+
import { FullscreenSettings } from './plugins/fullscreen/lg-fullscreen-settings';
|
|
9
|
+
import { HashSettings } from './plugins/hash/lg-hash-settings';
|
|
10
|
+
import { JustifiedSettings } from './plugins/justified/lg-justified-settings';
|
|
11
|
+
import { MediumZoomSettings } from './plugins/mediumZoom/lg-medium-zoom-settings';
|
|
12
|
+
import { PagerSettings } from './plugins/pager/lg-pager-settings';
|
|
13
|
+
import { RotateSettings } from './plugins/rotate/lg-rotate-settings';
|
|
14
|
+
import { ShareSettings } from './plugins/share/lg-share-settings';
|
|
15
|
+
import { ThumbnailsSettings } from './plugins/thumbnail/lg-thumbnail-settings';
|
|
16
|
+
import { VideoSettings } from './plugins/video/lg-video-settings';
|
|
17
|
+
import { ZoomSettings } from './plugins/zoom/lg-zoom-settings';
|
|
18
|
+
type LightGalleryCoreMobileSettings = Exclude<LightGalleryCoreSettings, 'mobileSettings'>;
|
|
19
|
+
export interface MobileSettings extends LightGalleryCoreMobileSettings, Partial<ZoomSettings>, Partial<ThumbnailsSettings>, Partial<VideoSettings>, Partial<AutoplaySettings>, Partial<CommentSettings>, Partial<FullscreenSettings>, Partial<HashSettings>, Partial<PagerSettings>, Partial<RotateSettings>, Partial<ShareSettings> {
|
|
20
|
+
}
|
|
21
|
+
export interface LightGalleryCoreStrings {
|
|
22
|
+
closeGallery: string;
|
|
23
|
+
toggleMaximize: string;
|
|
24
|
+
previousSlide: string;
|
|
25
|
+
nextSlide: string;
|
|
26
|
+
download: string;
|
|
27
|
+
playVideo: string;
|
|
28
|
+
mediaLoadingFailed: string;
|
|
29
|
+
/** Accessible name of the gallery dialog when `ariaLabelledby` is not set. */
|
|
30
|
+
galleryLabel: string;
|
|
31
|
+
/**
|
|
32
|
+
* Template announced to assistive technology on every slide change.
|
|
33
|
+
* `{index}` and `{total}` are replaced with the 1-based slide position
|
|
34
|
+
* and the slide count; the slide caption, when present, is appended.
|
|
35
|
+
*/
|
|
36
|
+
slideAnnouncement: string;
|
|
37
|
+
/** Label of the toolbar's More options menu button. */
|
|
38
|
+
moreOptions: string;
|
|
39
|
+
/** Share plugin: share button label. */
|
|
40
|
+
share: string;
|
|
41
|
+
/** Thumbnail plugin: strip toggle button label. */
|
|
42
|
+
toggleThumbnails: string;
|
|
43
|
+
/** Autoplay plugin: slideshow toggle button label. */
|
|
44
|
+
toggleAutoplay: string;
|
|
45
|
+
/** Fullscreen plugin: fullscreen toggle button label. */
|
|
46
|
+
toggleFullscreen: string;
|
|
47
|
+
/** Zoom plugin: zoom-in button label. */
|
|
48
|
+
zoomIn: string;
|
|
49
|
+
/** Zoom plugin: zoom-out button label. */
|
|
50
|
+
zoomOut: string;
|
|
51
|
+
/** Zoom plugin: actual-size button label. */
|
|
52
|
+
viewActualSize: string;
|
|
53
|
+
/** Rotate plugin: rotate-left button label. */
|
|
54
|
+
rotateLeft: string;
|
|
55
|
+
/** Rotate plugin: rotate-right button label. */
|
|
56
|
+
rotateRight: string;
|
|
57
|
+
/** Rotate plugin: horizontal flip button label. */
|
|
58
|
+
flipHorizontal: string;
|
|
59
|
+
/** Rotate plugin: vertical flip button label. */
|
|
60
|
+
flipVertical: string;
|
|
61
|
+
/** Comment plugin: comments toggle button label. */
|
|
62
|
+
toggleComments: string;
|
|
63
|
+
}
|
|
64
|
+
export type LightGalleryAllSettings = LightGalleryCoreSettings & ZoomSettings & ThumbnailsSettings & VideoSettings & AutoplaySettings & CommentSettings & FullscreenSettings & HashSettings & JustifiedSettings & PagerSettings & RotateSettings & ShareSettings & MediumZoomSettings;
|
|
65
|
+
export type LightGallerySettings = Partial<Omit<LightGalleryAllSettings, 'strings'>> & {
|
|
66
|
+
strings?: Partial<LightGalleryCoreStrings>;
|
|
67
|
+
};
|
|
68
|
+
export interface LightGalleryCoreSettings {
|
|
69
|
+
/**
|
|
70
|
+
* Type of transition between images.
|
|
71
|
+
*/
|
|
72
|
+
mode: 'lg-slide' | 'lg-fade' | 'lg-zoom-in' | 'lg-zoom-in-big' | 'lg-zoom-out' | 'lg-zoom-out-big' | 'lg-zoom-out-in' | 'lg-zoom-in-out' | 'lg-soft-zoom' | 'lg-scale-up' | 'lg-slide-circular' | 'lg-slide-circular-vertical' | 'lg-slide-vertical' | 'lg-slide-vertical-growth' | 'lg-slide-skew-only' | 'lg-slide-skew-only-rev' | 'lg-slide-skew-only-y' | 'lg-slide-skew-only-y-rev' | 'lg-slide-skew' | 'lg-slide-skew-rev' | 'lg-slide-skew-cross' | 'lg-slide-skew-cross-rev' | 'lg-slide-skew-ver' | 'lg-slide-skew-ver-rev' | 'lg-slide-skew-ver-cross' | 'lg-slide-skew-ver-cross-rev' | 'lg-lollipop' | 'lg-lollipop-rev' | 'lg-rotate' | 'lg-rotate-rev' | 'lg-tube';
|
|
73
|
+
/**
|
|
74
|
+
* Slide animation CSS easing property
|
|
75
|
+
*/
|
|
76
|
+
easing: string;
|
|
77
|
+
/**
|
|
78
|
+
*Transition duration (in ms).
|
|
79
|
+
*/
|
|
80
|
+
speed: number;
|
|
81
|
+
/**
|
|
82
|
+
* If you are using lightGallery for commercial projects, you need to purchase a commercial license
|
|
83
|
+
* to get the license key. For projects that are compatible with GPLv3 license,
|
|
84
|
+
* please contact us for getting a license key at <a href="mailto:contact@lightgalleryjs.com">contact@lightgalleryjs.com</a>.
|
|
85
|
+
* If you want to test lightGallery before purchasing a commercial license, you can
|
|
86
|
+
* use `0000-0000-000-0000` as a temporary license key. It does not limit any
|
|
87
|
+
* feature; it only logs a console warning. lightGallery 3 keys start with `LIG`;
|
|
88
|
+
* a key from v1 or v2 logs a warning asking you to upgrade.
|
|
89
|
+
* See <a href="/docs/license/">License</a>.
|
|
90
|
+
*/
|
|
91
|
+
licenseKey: string;
|
|
92
|
+
/**
|
|
93
|
+
* Height of the gallery.
|
|
94
|
+
* example '100%' , '300px'
|
|
95
|
+
*/
|
|
96
|
+
height: string;
|
|
97
|
+
/**
|
|
98
|
+
* Width of the gallery.
|
|
99
|
+
* example '100%' , '300px'
|
|
100
|
+
*/
|
|
101
|
+
width: string;
|
|
102
|
+
/**
|
|
103
|
+
* Add custom class for gallery container
|
|
104
|
+
* This can be used to set different style for different galleries
|
|
105
|
+
*/
|
|
106
|
+
addClass: string;
|
|
107
|
+
/**
|
|
108
|
+
* Start animation class for the gallery.
|
|
109
|
+
* @description
|
|
110
|
+
* <ul>
|
|
111
|
+
* <li>startClass will be empty zoomFromOrigin is true.</li>
|
|
112
|
+
* <li>This can be used to change the starting effect when the image is loaded</li>
|
|
113
|
+
* <li>This is also applied when navigating to new slides</li>
|
|
114
|
+
* </ul>
|
|
115
|
+
*/
|
|
116
|
+
startClass: string;
|
|
117
|
+
/**
|
|
118
|
+
* Enable zoom from origin effect.
|
|
119
|
+
* @description You need to know the original image size upfront and provide it via data-lg-size attribute as <code> data-lg-size="1920-1280</code>"
|
|
120
|
+
*
|
|
121
|
+
* If you don't know, the size of a few images in the list, you can skip the data-lg-size attribute for the particular slides,
|
|
122
|
+
* lightGallery will show the default animation if data-lg-size is not available
|
|
123
|
+
*
|
|
124
|
+
* If you are using responsive images,
|
|
125
|
+
* you can pass a comma separated list of sizes combined with a max-width (up to what size the particular image should be used)
|
|
126
|
+
*
|
|
127
|
+
* example -
|
|
128
|
+
* <code> data-lg-size="240-160-375, 400-267-480, 1600-1067"
|
|
129
|
+
* data-responsive="img-240.jpg 375, img-400.jpg 480"
|
|
130
|
+
* data-src="img-1600.jpg" </code>
|
|
131
|
+
*
|
|
132
|
+
* In the above example, upto 375 width img.240.jpg and lg-size 240-160 will be used.
|
|
133
|
+
* Similarly, upto 480 pixel width size 400-267 and img-400.jpg will be used
|
|
134
|
+
* And above 480, lg-size 1600-1067 and img-1600.jpg will be used
|
|
135
|
+
*
|
|
136
|
+
* When the gallery closes on a slide that has no thumbnail to return to
|
|
137
|
+
* (the trigger is hidden or collapsed, as with the overflow items behind a
|
|
138
|
+
* "+9 photos" tile, it has no data-lg-size, or the gallery is dynamic), the
|
|
139
|
+
* slide shrinks to the centre of the stage and fades out instead of flying
|
|
140
|
+
* to the thumbnail.
|
|
141
|
+
*
|
|
142
|
+
* <ul>
|
|
143
|
+
* <li>At the moment, zoomFromOrigin options is supported only for image slides.</li>
|
|
144
|
+
* <li>The opening flight is skipped if dynamic option is enabled or galleryID found in the URL.</li>
|
|
145
|
+
* <li>startClass will be empty if zoomFromOrigin is true to avoid css conflicts.</li>
|
|
146
|
+
* </ul>
|
|
147
|
+
*/
|
|
148
|
+
zoomFromOrigin: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Zoom from image animation duration
|
|
151
|
+
*/
|
|
152
|
+
startAnimationDuration: number;
|
|
153
|
+
/**
|
|
154
|
+
* Backdrop transition duration.
|
|
155
|
+
* Note - Do not change the value of backdrop via css.
|
|
156
|
+
*/
|
|
157
|
+
backdropDuration: number;
|
|
158
|
+
/**
|
|
159
|
+
* Configure where the gallery should be appended.
|
|
160
|
+
* Useful to create inline galleries and more
|
|
161
|
+
* It is an empty string in the default settings and later assigned to document.body to avoid accessing document for SSR
|
|
162
|
+
*/
|
|
163
|
+
container: HTMLElement | (() => HTMLElement | null) | (string | null);
|
|
164
|
+
/**
|
|
165
|
+
* Delay for hiding gallery controls in ms.
|
|
166
|
+
* Pass <code>0</code> if you don't want to hide the controls
|
|
167
|
+
*/
|
|
168
|
+
hideBarsDelay: number;
|
|
169
|
+
/**
|
|
170
|
+
* Delay in hiding controls for the first time when gallery is opened
|
|
171
|
+
*/
|
|
172
|
+
showBarsAfter: number;
|
|
173
|
+
/**
|
|
174
|
+
* Delay slide transitions.
|
|
175
|
+
* @description This is useful if you want to do any action in the current slide before moving to next slide.
|
|
176
|
+
* <section>
|
|
177
|
+
* For example, fading out the captions before going to next slide.
|
|
178
|
+
* <code>.lg-slide-progress</code> class name is added to the current slide immediately after calling the slide method.
|
|
179
|
+
* But transition begins only after the delay
|
|
180
|
+
* </section>
|
|
181
|
+
*/
|
|
182
|
+
slideDelay: number;
|
|
183
|
+
/**
|
|
184
|
+
* If true, toolbar, captions and thumbnails will not overlap with media element
|
|
185
|
+
* This will not effect thumbnails if animateThumb is false
|
|
186
|
+
* Also, toggle thumbnails button is not displayed if allowMediaOverlap is false
|
|
187
|
+
* <section>
|
|
188
|
+
* Note - Changing the position of the media on every slide transition creates a flickering effect.
|
|
189
|
+
* Therefore, the height of the caption is calculated dynamically, only once based on the first slide caption.
|
|
190
|
+
* </section>
|
|
191
|
+
* <section>
|
|
192
|
+
* if you have dynamic captions for each media,
|
|
193
|
+
* you can provide an appropriate height for the captions via allowMediaOverlap option
|
|
194
|
+
* </section>
|
|
195
|
+
*/
|
|
196
|
+
allowMediaOverlap: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Video max size.
|
|
199
|
+
* @description This can be over-written by passing specific size via data-lg-size attribute
|
|
200
|
+
* Recommended video resolution and & aspect ratios <a href="https://support.google.com/youtube/answer/6375112">https://support.google.com/youtube/answer/6375112</a>
|
|
201
|
+
*/
|
|
202
|
+
videoMaxSize: string;
|
|
203
|
+
/**
|
|
204
|
+
* Automatically load poster image for YouTube videos
|
|
205
|
+
*/
|
|
206
|
+
loadYouTubePoster: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Height of the caption for calculating allowMediaOverlap positions
|
|
209
|
+
* Note - this is only used to find the position of media item if allowMediaOverlap is true.
|
|
210
|
+
* Not for setting height of the captions
|
|
211
|
+
* Set 0 if you want to calculate the height of captions dynamically
|
|
212
|
+
*/
|
|
213
|
+
defaultCaptionHeight: number;
|
|
214
|
+
/**
|
|
215
|
+
* aria-labelledby attribute fot gallery
|
|
216
|
+
*/
|
|
217
|
+
ariaLabelledby: string;
|
|
218
|
+
/**
|
|
219
|
+
* aria-describedby attribute for gallery
|
|
220
|
+
*/
|
|
221
|
+
ariaDescribedby: string;
|
|
222
|
+
/**
|
|
223
|
+
* Large-gallery virtualization. Off when undefined, the classic
|
|
224
|
+
* behavior: every thumbnail renders and the mounted-slide window is
|
|
225
|
+
* numberOfSlideItemsInDom.
|
|
226
|
+
* @description slides overrides the mounted-slide pool size; thumbs
|
|
227
|
+
* turns on thumbnail-strip windowing (only the visible thumbs plus an
|
|
228
|
+
* overscan render, with spacers preserving the strip geometry), a
|
|
229
|
+
* number is the overscan thumb count per side, 'auto' derives one
|
|
230
|
+
* extra viewport per side. The window advances at commit points
|
|
231
|
+
* (release, slide change, resize), never per pointer move.
|
|
232
|
+
* See <a href="/docs/virtualization/">Virtualization</a>.
|
|
233
|
+
* @version V3.0.0
|
|
234
|
+
*/
|
|
235
|
+
virtualization?: VirtualizationSettings;
|
|
236
|
+
/**
|
|
237
|
+
* Announce slide changes to assistive technology through a dedicated
|
|
238
|
+
* polite live region (strings.slideAnnouncement + the slide caption).
|
|
239
|
+
* @description While enabled, the counter and caption bar are not
|
|
240
|
+
* separate live regions, the announcer is the single source of
|
|
241
|
+
* slide-change announcements. Set to false to restore the previous
|
|
242
|
+
* behavior (live counter and caption, no announcer).
|
|
243
|
+
* See <a href="/docs/accessibility/">Accessibility</a>.
|
|
244
|
+
* @version V3.0.0
|
|
245
|
+
*/
|
|
246
|
+
ariaAnnouncements: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Hide scrollbar when gallery is opened
|
|
249
|
+
* @version V2.5.0
|
|
250
|
+
*/
|
|
251
|
+
hideScrollbar: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Reset to previous scrollPosition when lightGallery is closed
|
|
254
|
+
* @description By default, lightGallery doesn't hide the scrollbar for a smooth opening transition.
|
|
255
|
+
* If a user changes the scroll position, lightGallery resets it to the previous value
|
|
256
|
+
* @version V2.5.0
|
|
257
|
+
*/
|
|
258
|
+
resetScrollPosition: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* If false user won't be able to close the gallery at all
|
|
261
|
+
* This is useful for creating inline galleries.
|
|
262
|
+
*/
|
|
263
|
+
closable: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* allows vertical drag/swipe to close gallery
|
|
266
|
+
* <code>false</code> if option <code>closable</code> is <code>false</code>
|
|
267
|
+
*/
|
|
268
|
+
swipeToClose: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* allows clicks on black area to close gallery.
|
|
271
|
+
*/
|
|
272
|
+
closeOnTap: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* If false, close button won't be displayed.
|
|
275
|
+
* Useful for creating inline galleries.
|
|
276
|
+
*/
|
|
277
|
+
showCloseIcon: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Show maximize icon.
|
|
280
|
+
* Useful for creating inline galleries.
|
|
281
|
+
*/
|
|
282
|
+
showMaximizeIcon: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Keep the toolbar on one row.
|
|
285
|
+
* @description When the toolbar buttons do not fit beside the counter,
|
|
286
|
+
* the lowest-priority ones move into a "More options" menu. Set to
|
|
287
|
+
* false to let the buttons wrap onto a second row instead.
|
|
288
|
+
* See <a href="/docs/settings/#toolbarOverflow">toolbarOverflow</a>.
|
|
289
|
+
* @version V3.0.0
|
|
290
|
+
*/
|
|
291
|
+
toolbarOverflow: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Show the toolbar buttons that repeat a touch gesture.
|
|
294
|
+
* @description Zoom in, zoom out and actual size do what pinch and
|
|
295
|
+
* double-tap already do. On by default, and turned off on touch
|
|
296
|
+
* devices through mobileSettings.
|
|
297
|
+
* See <a href="/docs/settings/#showGestureButtons">showGestureButtons</a>.
|
|
298
|
+
* @version V3.0.0
|
|
299
|
+
*/
|
|
300
|
+
showGestureButtons: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* If false, will disable the ability to loop back to the beginning of the gallery from the last slide.
|
|
303
|
+
*/
|
|
304
|
+
loop: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Whether the LightGallery could be closed by pressing the "Esc" key.
|
|
307
|
+
*/
|
|
308
|
+
escKey: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Enable keyboard navigation
|
|
311
|
+
*/
|
|
312
|
+
keyPress: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Trap focus within the lightGallery
|
|
315
|
+
* @version V2.5.0
|
|
316
|
+
*/
|
|
317
|
+
trapFocus: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* If false, prev/next buttons will not be displayed.
|
|
320
|
+
*/
|
|
321
|
+
controls: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Enable slideEnd animation
|
|
324
|
+
*/
|
|
325
|
+
slideEndAnimation: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* If true, prev/next button will be hidden on first/last image.
|
|
328
|
+
* @description Note - this option will be ignored if <code>loop</code> or <code>slideEndAnimation</code> is set to true
|
|
329
|
+
*/
|
|
330
|
+
hideControlOnEnd: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* ability to navigate to next/prev slides on mousewheel
|
|
333
|
+
*/
|
|
334
|
+
mousewheel: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Gallery reading direction: keyboard arrows, swipe advance and the
|
|
337
|
+
* slide/thumbnail transforms follow it. Visual mirroring is the
|
|
338
|
+
* opt-in lg-rtl.css layer - load it whenever this resolves to 'rtl'.
|
|
339
|
+
* 'auto' inherits the computed direction of the gallery element;
|
|
340
|
+
* the default stays 'ltr' so upgrades never change behavior on
|
|
341
|
+
* existing pages.
|
|
342
|
+
* See <a href="/docs/localization-rtl/">Localization & RTL</a>.
|
|
343
|
+
* @version V3.0.0
|
|
344
|
+
*/
|
|
345
|
+
direction: 'ltr' | 'rtl' | 'auto';
|
|
346
|
+
/**
|
|
347
|
+
* Option to get captions from alt or title tags.
|
|
348
|
+
*/
|
|
349
|
+
getCaptionFromTitleOrAlt: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* control where the sub-html should be appended.
|
|
352
|
+
* If you choose '.lg-outer', you are responsible for placing the div at the right position.
|
|
353
|
+
* '.lg-outer' is useful if you want show custom HTML outside the normal gallery
|
|
354
|
+
*/
|
|
355
|
+
appendSubHtmlTo: '.lg-sub-html' | '.lg-item' | '.lg-outer';
|
|
356
|
+
/**
|
|
357
|
+
* Set to true if the selector in "data-sub-html" should use the current item as its origin.
|
|
358
|
+
*/
|
|
359
|
+
subHtmlSelectorRelative: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* number of preload slides
|
|
362
|
+
* @description will exicute only after the current slide is fully loaded.
|
|
363
|
+
* for example, if you click on 4th image and if preload = 1 then 3rd slide and 5th
|
|
364
|
+
* slide will be loaded in the background after the 4th slide is fully loaded..
|
|
365
|
+
* if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.
|
|
366
|
+
*/
|
|
367
|
+
preload: number;
|
|
368
|
+
/**
|
|
369
|
+
* Control how many slide items should be kept in dom at a time
|
|
370
|
+
* @description To improve performance by reducing number of gallery items in the dom,
|
|
371
|
+
* lightGallery keeps only the lowest possible number of slides in the dom at a time.
|
|
372
|
+
* This has a minimum value of 3
|
|
373
|
+
*/
|
|
374
|
+
numberOfSlideItemsInDom: number;
|
|
375
|
+
/**
|
|
376
|
+
* Custom selector property instead of direct children.
|
|
377
|
+
* @description Based on your markup structure, you can specify custom selectors to fetch media data for the gallery
|
|
378
|
+
* Pass "this" to select same element
|
|
379
|
+
* You can also pass HTMLCollection directly
|
|
380
|
+
* Example - '.my-selector' | '#my-selector' | this | document.querySelectorAll('.my-selector')
|
|
381
|
+
*/
|
|
382
|
+
selector: string | HTMLCollection[];
|
|
383
|
+
/**
|
|
384
|
+
* By default selector element relative to the current gallery.
|
|
385
|
+
* Instead of that you can tell lightGallery to select element relative to another element.
|
|
386
|
+
* Example - '.my-selector-container' | '#my-selector-container'
|
|
387
|
+
* In the code this become selector = document.querySelector(this.s.selectWithin ).querySelectorAll(this.s.selector);
|
|
388
|
+
*/
|
|
389
|
+
selectWithin: string;
|
|
390
|
+
/**
|
|
391
|
+
* Custom html for next control
|
|
392
|
+
*/
|
|
393
|
+
nextHtml: string;
|
|
394
|
+
/**
|
|
395
|
+
* Custom html for prev control
|
|
396
|
+
*/
|
|
397
|
+
prevHtml: string;
|
|
398
|
+
/**
|
|
399
|
+
* specify which slide should load initially
|
|
400
|
+
*/
|
|
401
|
+
index: number;
|
|
402
|
+
/**
|
|
403
|
+
* Set width for iframe.
|
|
404
|
+
*/
|
|
405
|
+
iframeWidth: string;
|
|
406
|
+
/**
|
|
407
|
+
* Set height for iframe.
|
|
408
|
+
*/
|
|
409
|
+
iframeHeight: string;
|
|
410
|
+
/**
|
|
411
|
+
* Set max width for iframe.
|
|
412
|
+
*/
|
|
413
|
+
iframeMaxWidth: string;
|
|
414
|
+
/**
|
|
415
|
+
* Set max height for iframe.
|
|
416
|
+
*/
|
|
417
|
+
iframeMaxHeight: string;
|
|
418
|
+
/**
|
|
419
|
+
* Enable download button.
|
|
420
|
+
* @description By default download url will be taken from data-src/href attribute but it supports only for modern browsers.
|
|
421
|
+
* If you want you can provide another url for download via data-download-url.
|
|
422
|
+
* pass false in data-download-url if you want to hide download button for the particular slide.
|
|
423
|
+
*/
|
|
424
|
+
download: boolean;
|
|
425
|
+
/**
|
|
426
|
+
* Whether to show total number of images and index number of currently displayed image.
|
|
427
|
+
*/
|
|
428
|
+
counter: boolean;
|
|
429
|
+
/**
|
|
430
|
+
* Where the counter should be appended
|
|
431
|
+
*/
|
|
432
|
+
appendCounterTo: string;
|
|
433
|
+
/**
|
|
434
|
+
* By setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev image.
|
|
435
|
+
*/
|
|
436
|
+
swipeThreshold: number;
|
|
437
|
+
/**
|
|
438
|
+
* Release velocity (px/ms, measured over the gesture's final ~100ms)
|
|
439
|
+
* at which a short swipe still changes slides, a flick.
|
|
440
|
+
* @version V3.0.0
|
|
441
|
+
*/
|
|
442
|
+
flickVelocity: number;
|
|
443
|
+
/**
|
|
444
|
+
* Pinching down on an un-zoomed image and releasing closes the
|
|
445
|
+
* gallery (iOS Photos). Guarded: a pinch that went past fit zoom at
|
|
446
|
+
* any point is a zoom correction and never closes. Requires
|
|
447
|
+
* `closable` and the zoom plugin.
|
|
448
|
+
* @version V3.0.0
|
|
449
|
+
*/
|
|
450
|
+
pinchToClose: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Enables swipe support for touch devices
|
|
453
|
+
*/
|
|
454
|
+
enableSwipe: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Enables desktop mouse drag support
|
|
457
|
+
*/
|
|
458
|
+
enableDrag: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* LightGallery can be instantiated and launched programmatically by setting this option to true and populating dynamicEl option (see below) with the definitions of images.
|
|
461
|
+
*/
|
|
462
|
+
dynamic: boolean;
|
|
463
|
+
/**
|
|
464
|
+
* An array of objects (src, iframe, subHtml, thumb, poster, responsive, srcset sizes) representing gallery elements.
|
|
465
|
+
*/
|
|
466
|
+
dynamicEl: GalleryItem[];
|
|
467
|
+
/**
|
|
468
|
+
* Fetch custom properties from the selector
|
|
469
|
+
* @description this is useful for plugin development
|
|
470
|
+
* By default lightGallery fetches and store all the props selectors to
|
|
471
|
+
* reduce frequent dom interaction for fetching props every time.
|
|
472
|
+
*
|
|
473
|
+
* If you need any addition data to be fetched and stored in the galleryItems variable,
|
|
474
|
+
* you can do this just by passing the prop names via extraProps
|
|
475
|
+
* @example
|
|
476
|
+
* HTML:
|
|
477
|
+
* <div id="lightGallery">
|
|
478
|
+
* <a href="a.jpg" data-custom-prop="abc"><img src="thumb.jpg" /></a>
|
|
479
|
+
* <a href="a.jpg" data-custom-prop="xyz"><img src="thumb.jpg" /></a>
|
|
480
|
+
* </div>
|
|
481
|
+
* JS:
|
|
482
|
+
* lightGallery(document.getElementById('lightGallery'), {
|
|
483
|
+
* extraProps: ['customProp']
|
|
484
|
+
* })
|
|
485
|
+
* // Note - If you are using dynamic mode, you can pass any custom prop in the galleryItem
|
|
486
|
+
* lightGallery(document.getElementById('lightGallery'), {
|
|
487
|
+
* dynamic: true,
|
|
488
|
+
* dynamicEl: [{
|
|
489
|
+
* src: 'img/img1.jpg',
|
|
490
|
+
* customProp:'abc',
|
|
491
|
+
* }]
|
|
492
|
+
* })
|
|
493
|
+
*
|
|
494
|
+
*/
|
|
495
|
+
extraProps: string[];
|
|
496
|
+
/**
|
|
497
|
+
* Option to fetch different thumbnail image other than first image
|
|
498
|
+
* @description If you want to use external image for thumbnail,
|
|
499
|
+
* add the path of that image inside "data-" attribute
|
|
500
|
+
* and set value of this option to the name of your custom attribute.
|
|
501
|
+
*
|
|
502
|
+
* @example
|
|
503
|
+
* <div id="lightGallery">
|
|
504
|
+
* <a href="a.jpg" data-external-thumb-image="images/externalThumb.jpg" ><img src="thumb.jpg" /></a>
|
|
505
|
+
* </div>
|
|
506
|
+
*
|
|
507
|
+
* lightGallery(document.getElementById('lightGallery'), {
|
|
508
|
+
* exThumbImage: 'data-external-thumb-image'
|
|
509
|
+
* })
|
|
510
|
+
*/
|
|
511
|
+
exThumbImage: string;
|
|
512
|
+
/**
|
|
513
|
+
* Function to detect mobile devices
|
|
514
|
+
*/
|
|
515
|
+
isMobile?: () => boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Separate settings for mobile devices
|
|
518
|
+
* @description Note - this is applied only at the time of loading
|
|
519
|
+
* by default controls and close buttons are disabled on mobile devices.
|
|
520
|
+
* use this options if you want to enable them or change any other settings for mobile devices
|
|
521
|
+
* Note - mobileSettings does not merge default values, You need to provide all mobileSettings including default values
|
|
522
|
+
*/
|
|
523
|
+
mobileSettings: Partial<MobileSettings>;
|
|
524
|
+
/**
|
|
525
|
+
* Customize string.
|
|
526
|
+
* @description This can be useful if you want to localize the lightGallery strings to other languages.
|
|
527
|
+
* Use your own service to translate the strings and pass it via settings.strings
|
|
528
|
+
* Every core and plugin label lives here; the per-plugin `*PluginStrings` objects are deprecated.
|
|
529
|
+
* Strings merge per-key over the defaults, override only the keys
|
|
530
|
+
* you need (the old provide-everything requirement is gone).
|
|
531
|
+
* See <a href="/docs/localization-rtl/">Localization & RTL</a>.
|
|
532
|
+
*/
|
|
533
|
+
strings: LightGalleryCoreStrings;
|
|
534
|
+
/**
|
|
535
|
+
* Custom icons: SVG markup per icon name, rendered instead of the
|
|
536
|
+
* built-in SVG icon set, bring your own icons without touching CSS.
|
|
537
|
+
* @description Omitted names keep the built-in icon. State-pair
|
|
538
|
+
* buttons (`maximize`/`minimize`, `autoplayPlay`/`autoplayPause`,
|
|
539
|
+
* `fullscreen`/`fullscreenExit`) need both names provided; a
|
|
540
|
+
* half-provided pair keeps the built-in pair. Size and color follow
|
|
541
|
+
* the button (`1em`/`currentColor`-friendly SVGs recommended).
|
|
542
|
+
* See <a href="/docs/custom-icons/">Custom icons</a>.
|
|
543
|
+
* @version V3.0.0
|
|
544
|
+
*/
|
|
545
|
+
icons: LgIcons;
|
|
546
|
+
plugins: (new (instance: LightGallery, $LG: LgQuery) => any)[];
|
|
547
|
+
}
|
|
548
|
+
export declare const lightGalleryCoreSettings: LightGalleryCoreSettings;
|
|
549
|
+
export {};
|