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.
Files changed (619) hide show
  1. package/LICENSE +690 -0
  2. package/README.md +31 -21
  3. package/dist/README.md +229 -0
  4. package/{css → dist/css}/lg-autoplay.css +7 -4
  5. package/{css → dist/css}/lg-autoplay.css.map +1 -1
  6. package/{css → dist/css}/lg-comments.css +0 -6
  7. package/{css → dist/css}/lg-comments.css.map +1 -1
  8. package/dist/css/lg-fullscreen.css +11 -0
  9. package/dist/css/lg-fullscreen.css.map +1 -0
  10. package/dist/css/lg-justified.css +37 -0
  11. package/dist/css/lg-justified.css.map +1 -0
  12. package/{css → dist/css}/lg-pager.css.map +1 -1
  13. package/{css → dist/css}/lg-rotate.css +0 -16
  14. package/{css → dist/css}/lg-rotate.css.map +1 -1
  15. package/dist/css/lg-rtl.css +94 -0
  16. package/dist/css/lg-rtl.css.map +1 -0
  17. package/{css → dist/css}/lg-share.css +4 -32
  18. package/dist/css/lg-share.css.map +1 -0
  19. package/{css → dist/css}/lg-thumbnail.css +7 -3
  20. package/dist/css/lg-thumbnail.css.map +1 -0
  21. package/{css → dist/css}/lg-transitions.css +10 -0
  22. package/dist/css/lg-transitions.css.map +1 -0
  23. package/{css → dist/css}/lg-zoom.css +20 -9
  24. package/dist/css/lg-zoom.css.map +1 -0
  25. package/{css → dist/css}/lightgallery-bundle.css +150 -118
  26. package/dist/css/lightgallery-bundle.css.map +1 -0
  27. package/dist/css/lightgallery-bundle.min.css +1 -0
  28. package/{css → dist/css}/lightgallery-core.css +49 -7
  29. package/dist/css/lightgallery-core.css.map +1 -0
  30. package/{css → dist/css}/lightgallery.css +105 -44
  31. package/dist/css/lightgallery.css.map +1 -0
  32. package/dist/lightgallery.es5.js +3797 -0
  33. package/dist/lightgallery.es5.js.map +1 -0
  34. package/dist/lightgallery.min.js +1 -0
  35. package/dist/lightgallery.umd.js +3800 -0
  36. package/dist/lightgallery.umd.js.map +1 -0
  37. package/dist/package.json +33 -0
  38. package/dist/plugins/autoplay/lg-autoplay.es5.js +193 -0
  39. package/dist/plugins/autoplay/lg-autoplay.es5.js.map +1 -0
  40. package/dist/plugins/autoplay/lg-autoplay.min.js +1 -0
  41. package/dist/plugins/autoplay/lg-autoplay.umd.js +196 -0
  42. package/dist/plugins/autoplay/lg-autoplay.umd.js.map +1 -0
  43. package/dist/plugins/autoplay/package.json +7 -0
  44. package/dist/plugins/comment/lg-comment.es5.js +136 -0
  45. package/dist/plugins/comment/lg-comment.es5.js.map +1 -0
  46. package/dist/plugins/comment/lg-comment.min.js +1 -0
  47. package/dist/plugins/comment/lg-comment.umd.js +139 -0
  48. package/dist/plugins/comment/lg-comment.umd.js.map +1 -0
  49. package/dist/plugins/comment/package.json +7 -0
  50. package/dist/plugins/fullscreen/lg-fullscreen.es5.js +114 -0
  51. package/dist/plugins/fullscreen/lg-fullscreen.es5.js.map +1 -0
  52. package/dist/plugins/fullscreen/lg-fullscreen.min.js +1 -0
  53. package/dist/plugins/fullscreen/lg-fullscreen.umd.js +117 -0
  54. package/dist/plugins/fullscreen/lg-fullscreen.umd.js.map +1 -0
  55. package/dist/plugins/fullscreen/package.json +7 -0
  56. package/dist/plugins/hash/lg-hash.es5.js +207 -0
  57. package/dist/plugins/hash/lg-hash.es5.js.map +1 -0
  58. package/dist/plugins/hash/lg-hash.min.js +1 -0
  59. package/dist/plugins/hash/lg-hash.umd.js +210 -0
  60. package/dist/plugins/hash/lg-hash.umd.js.map +1 -0
  61. package/dist/plugins/hash/package.json +7 -0
  62. package/dist/plugins/justified/lg-justified.es5.js +415 -0
  63. package/dist/plugins/justified/lg-justified.es5.js.map +1 -0
  64. package/dist/plugins/justified/lg-justified.min.js +1 -0
  65. package/dist/plugins/justified/lg-justified.umd.js +418 -0
  66. package/dist/plugins/justified/lg-justified.umd.js.map +1 -0
  67. package/dist/plugins/justified/package.json +7 -0
  68. package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js +95 -0
  69. package/dist/plugins/mediumZoom/lg-medium-zoom.es5.js.map +1 -0
  70. package/dist/plugins/mediumZoom/lg-medium-zoom.min.js +1 -0
  71. package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js +98 -0
  72. package/dist/plugins/mediumZoom/lg-medium-zoom.umd.js.map +1 -0
  73. package/dist/plugins/mediumZoom/package.json +7 -0
  74. package/dist/plugins/originCrop/lg-origin-crop.es5.js +622 -0
  75. package/dist/plugins/originCrop/lg-origin-crop.es5.js.map +1 -0
  76. package/dist/plugins/originCrop/lg-origin-crop.min.js +1 -0
  77. package/dist/plugins/originCrop/lg-origin-crop.umd.js +625 -0
  78. package/dist/plugins/originCrop/lg-origin-crop.umd.js.map +1 -0
  79. package/dist/plugins/pager/lg-pager.es5.js +96 -0
  80. package/dist/plugins/pager/lg-pager.es5.js.map +1 -0
  81. package/dist/plugins/pager/lg-pager.min.js +1 -0
  82. package/dist/plugins/pager/lg-pager.umd.js +99 -0
  83. package/dist/plugins/pager/lg-pager.umd.js.map +1 -0
  84. package/dist/plugins/pager/package.json +7 -0
  85. package/dist/plugins/relativeCaption/lg-relative-caption.es5.js +98 -0
  86. package/dist/plugins/relativeCaption/lg-relative-caption.es5.js.map +1 -0
  87. package/dist/plugins/relativeCaption/lg-relative-caption.min.js +1 -0
  88. package/dist/plugins/relativeCaption/lg-relative-caption.umd.js +101 -0
  89. package/dist/plugins/relativeCaption/lg-relative-caption.umd.js.map +1 -0
  90. package/dist/plugins/relativeCaption/package.json +7 -0
  91. package/dist/plugins/rotate/lg-rotate.es5.js +226 -0
  92. package/dist/plugins/rotate/lg-rotate.es5.js.map +1 -0
  93. package/dist/plugins/rotate/lg-rotate.min.js +1 -0
  94. package/dist/plugins/rotate/lg-rotate.umd.js +229 -0
  95. package/dist/plugins/rotate/lg-rotate.umd.js.map +1 -0
  96. package/dist/plugins/rotate/package.json +7 -0
  97. package/dist/plugins/share/lg-share.es5.js +309 -0
  98. package/dist/plugins/share/lg-share.es5.js.map +1 -0
  99. package/dist/plugins/share/lg-share.min.js +1 -0
  100. package/dist/plugins/share/lg-share.umd.js +312 -0
  101. package/dist/plugins/share/lg-share.umd.js.map +1 -0
  102. package/dist/plugins/share/package.json +7 -0
  103. package/dist/plugins/thumbnail/lg-thumbnail.es5.js +792 -0
  104. package/dist/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -0
  105. package/dist/plugins/thumbnail/lg-thumbnail.min.js +1 -0
  106. package/dist/plugins/thumbnail/lg-thumbnail.umd.js +795 -0
  107. package/dist/plugins/thumbnail/lg-thumbnail.umd.js.map +1 -0
  108. package/dist/plugins/thumbnail/package.json +7 -0
  109. package/dist/plugins/video/lg-video.es5.js +518 -0
  110. package/dist/plugins/video/lg-video.es5.js.map +1 -0
  111. package/dist/plugins/video/lg-video.min.js +1 -0
  112. package/dist/plugins/video/lg-video.umd.js +521 -0
  113. package/dist/plugins/video/lg-video.umd.js.map +1 -0
  114. package/dist/plugins/video/package.json +7 -0
  115. package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +72 -0
  116. package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +1 -0
  117. package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -0
  118. package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +75 -0
  119. package/dist/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +1 -0
  120. package/dist/plugins/vimeoThumbnail/package.json +7 -0
  121. package/dist/plugins/zoom/lg-zoom.es5.js +1412 -0
  122. package/dist/plugins/zoom/lg-zoom.es5.js.map +1 -0
  123. package/dist/plugins/zoom/lg-zoom.min.js +1 -0
  124. package/dist/plugins/zoom/lg-zoom.umd.js +1415 -0
  125. package/dist/plugins/zoom/lg-zoom.umd.js.map +1 -0
  126. package/dist/plugins/zoom/package.json +7 -0
  127. package/{scss → dist/scss}/_lg-theme-default.scss +68 -18
  128. package/{scss → dist/scss}/_lg-variables.scss +0 -1
  129. package/{scss → dist/scss}/lg-autoplay.scss +10 -4
  130. package/{scss → dist/scss}/lg-comments.scss +0 -8
  131. package/dist/scss/lg-fullscreen.scss +15 -0
  132. package/dist/scss/lg-justified.scss +63 -0
  133. package/{scss → dist/scss}/lg-rotate.scss +0 -24
  134. package/dist/scss/lg-rtl.scss +145 -0
  135. package/{scss → dist/scss}/lg-share.scss +6 -33
  136. package/{scss → dist/scss}/lg-thumbnail.scss +16 -5
  137. package/{scss → dist/scss}/lg-zoom.scss +46 -9
  138. package/{scss → dist/scss}/lightgallery-bundle.scss +0 -1
  139. package/{scss → dist/scss}/lightgallery-core.scss +73 -6
  140. package/{scss → dist/scss}/lightgallery.scss +0 -1
  141. package/{scss → dist/scss}/transitions/_lg-scale-up.scss +6 -0
  142. package/{scss → dist/scss}/transitions/_lg-slide-circular-vertical.scss +6 -0
  143. package/{scss → dist/scss}/transitions/_lg-slide-circular.scss +6 -0
  144. package/{scss → dist/scss}/transitions/_lg-soft-zoom.scss +6 -0
  145. package/{scss → dist/scss}/transitions/_lg-zoom-in-big.scss +6 -0
  146. package/{scss → dist/scss}/transitions/_lg-zoom-in-out.scss +6 -0
  147. package/{scss → dist/scss}/transitions/_lg-zoom-in.scss +6 -0
  148. package/{scss → dist/scss}/transitions/_lg-zoom-out-big.scss +6 -0
  149. package/{scss → dist/scss}/transitions/_lg-zoom-out-in.scss +6 -0
  150. package/{scss → dist/scss}/transitions/_lg-zoom-out.scss +6 -0
  151. package/dist/types/headless/announce.d.ts +22 -0
  152. package/dist/types/headless/emitter.d.ts +14 -0
  153. package/dist/types/headless/gestures.d.ts +128 -0
  154. package/dist/types/headless/hash-driver.d.ts +77 -0
  155. package/dist/types/headless/icons.d.ts +56 -0
  156. package/dist/types/headless/index.d.ts +34 -0
  157. package/dist/types/headless/items.d.ts +92 -0
  158. package/dist/types/headless/justified-layout.d.ts +71 -0
  159. package/dist/types/headless/license.d.ts +35 -0
  160. package/dist/types/headless/origin-crop.d.ts +135 -0
  161. package/dist/types/headless/origin.d.ts +65 -0
  162. package/dist/types/headless/plugin-slices.d.ts +64 -0
  163. package/dist/types/headless/preload.d.ts +36 -0
  164. package/dist/types/headless/responsive.d.ts +90 -0
  165. package/dist/types/headless/settings.d.ts +268 -0
  166. package/dist/types/headless/share-urls.d.ts +60 -0
  167. package/dist/types/headless/spring.d.ts +42 -0
  168. package/dist/types/headless/state.d.ts +63 -0
  169. package/dist/types/headless/thumb-math.d.ts +85 -0
  170. package/dist/types/headless/toolbar-overflow.d.ts +61 -0
  171. package/dist/types/headless/transition.d.ts +33 -0
  172. package/dist/types/headless/velocity.d.ts +31 -0
  173. package/dist/types/headless/video-urls.d.ts +64 -0
  174. package/dist/types/headless/zoom-math.d.ts +89 -0
  175. package/{index.d.ts → dist/types/index.d.ts} +9 -4
  176. package/{lg-events.d.ts → dist/types/lg-events.d.ts} +300 -300
  177. package/dist/types/lg-icons.d.ts +27 -0
  178. package/{lg-plugin.d.ts → dist/types/lg-plugin.d.ts} +7 -7
  179. package/{lg-settings.d.ts → dist/types/lg-settings.d.ts} +549 -425
  180. package/dist/types/lg-spring-runner.d.ts +14 -0
  181. package/dist/types/lg-toolbar-overflow.d.ts +36 -0
  182. package/{lg-utils.d.ts → dist/types/lg-utils.d.ts} +236 -228
  183. package/{lgQuery.d.ts → dist/types/lgQuery.d.ts} +56 -56
  184. package/{lightgallery.d.ts → dist/types/lightgallery.d.ts} +384 -305
  185. package/{plugins → dist/types/plugins}/autoplay/lg-autoplay-settings.d.ts +41 -38
  186. package/{plugins → dist/types/plugins}/autoplay/lg-autoplay.d.ts +22 -22
  187. package/{plugins → dist/types/plugins}/comment/lg-comment-settings.d.ts +36 -33
  188. package/{plugins → dist/types/plugins}/comment/lg-comment.d.ts +25 -25
  189. package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen-settings.d.ts +17 -14
  190. package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen.d.ts +16 -16
  191. package/dist/types/plugins/hash/lg-hash-settings.d.ts +28 -0
  192. package/{plugins → dist/types/plugins}/hash/lg-hash.d.ts +25 -23
  193. package/dist/types/plugins/justified/lg-justified-settings.d.ts +42 -0
  194. package/dist/types/plugins/justified/lg-justified.d.ts +55 -0
  195. package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom-settings.d.ts +16 -16
  196. package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom.d.ts +12 -12
  197. package/dist/types/plugins/originCrop/lg-origin-crop-settings.d.ts +12 -0
  198. package/dist/types/plugins/originCrop/lg-origin-crop.d.ts +79 -0
  199. package/{plugins → dist/types/plugins}/pager/lg-pager-settings.d.ts +7 -7
  200. package/{plugins → dist/types/plugins}/pager/lg-pager.d.ts +13 -13
  201. package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption-settings.d.ts +7 -7
  202. package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption.d.ts +14 -14
  203. package/{plugins → dist/types/plugins}/rotate/lg-rotate-settings.d.ts +47 -45
  204. package/{plugins → dist/types/plugins}/rotate/lg-rotate.d.ts +25 -24
  205. package/{plugins → dist/types/plugins}/share/lg-fb-share-utils.d.ts +2 -2
  206. package/{plugins → dist/types/plugins}/share/lg-pinterest-share-utils.d.ts +2 -2
  207. package/{plugins → dist/types/plugins}/share/lg-share-settings.d.ts +71 -56
  208. package/dist/types/plugins/share/lg-share.d.ts +33 -0
  209. package/dist/types/plugins/share/lg-twitter-share-utils.d.ts +4 -0
  210. package/{plugins → dist/types/plugins}/share/types.d.ts +6 -6
  211. package/{plugins → dist/types/plugins}/thumbnail/lg-thumbnail-settings.d.ts +85 -70
  212. package/dist/types/plugins/thumbnail/lg-thumbnail.d.ts +88 -0
  213. package/{plugins → dist/types/plugins}/video/lg-video-settings.d.ts +94 -71
  214. package/{plugins → dist/types/plugins}/video/lg-video.d.ts +116 -104
  215. package/{plugins → dist/types/plugins}/video/types.d.ts +8 -8
  216. package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail-settings.d.ts +11 -11
  217. package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail.d.ts +14 -14
  218. package/{plugins → dist/types/plugins}/zoom/lg-zoom-settings.d.ts +54 -51
  219. package/{plugins → dist/types/plugins}/zoom/lg-zoom.d.ts +145 -108
  220. package/{types.d.ts → dist/types/types.d.ts} +40 -40
  221. package/package.json +222 -8
  222. package/angular/10/README.md +0 -24
  223. package/angular/10/bundles/lightgallery-angular-10.umd.js +0 -289
  224. package/angular/10/bundles/lightgallery-angular-10.umd.js.map +0 -1
  225. package/angular/10/bundles/lightgallery-angular-10.umd.min.js +0 -2
  226. package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +0 -1
  227. package/angular/10/esm2015/lib/lightgallery-angular.component.js +0 -225
  228. package/angular/10/esm2015/lib/lightgallery-angular.module.js +0 -17
  229. package/angular/10/esm2015/lib/lightgallery-angular.service.js +0 -14
  230. package/angular/10/esm2015/lightgallery-angular-10.js +0 -5
  231. package/angular/10/esm2015/public-api.js +0 -7
  232. package/angular/10/fesm2015/lightgallery-angular-10.js +0 -261
  233. package/angular/10/fesm2015/lightgallery-angular-10.js.map +0 -1
  234. package/angular/10/lib/lightgallery-angular.component.d.ts +0 -39
  235. package/angular/10/lib/lightgallery-angular.component.d.ts.map +0 -1
  236. package/angular/10/lib/lightgallery-angular.module.d.ts +0 -7
  237. package/angular/10/lib/lightgallery-angular.module.d.ts.map +0 -1
  238. package/angular/10/lib/lightgallery-angular.service.d.ts +0 -7
  239. package/angular/10/lib/lightgallery-angular.service.d.ts.map +0 -1
  240. package/angular/10/lightgallery-angular-10.d.ts +0 -6
  241. package/angular/10/lightgallery-angular-10.d.ts.map +0 -1
  242. package/angular/10/package.json +0 -21
  243. package/angular/10/public-api.d.ts +0 -4
  244. package/angular/10/public-api.d.ts.map +0 -1
  245. package/angular/11/README.md +0 -24
  246. package/angular/11/bundles/lightgallery-angular-11.umd.js +0 -290
  247. package/angular/11/bundles/lightgallery-angular-11.umd.js.map +0 -1
  248. package/angular/11/bundles/lightgallery-angular-11.umd.min.js +0 -2
  249. package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +0 -1
  250. package/angular/11/esm2015/lib/lightgallery-angular.component.js +0 -225
  251. package/angular/11/esm2015/lib/lightgallery-angular.module.js +0 -18
  252. package/angular/11/esm2015/lib/lightgallery-angular.service.js +0 -14
  253. package/angular/11/esm2015/lightgallery-angular-11.js +0 -5
  254. package/angular/11/esm2015/public-api.js +0 -7
  255. package/angular/11/fesm2015/lightgallery-angular-11.js +0 -262
  256. package/angular/11/fesm2015/lightgallery-angular-11.js.map +0 -1
  257. package/angular/11/lib/lightgallery-angular.component.d.ts +0 -39
  258. package/angular/11/lib/lightgallery-angular.component.d.ts.map +0 -1
  259. package/angular/11/lib/lightgallery-angular.module.d.ts +0 -8
  260. package/angular/11/lib/lightgallery-angular.module.d.ts.map +0 -1
  261. package/angular/11/lib/lightgallery-angular.service.d.ts +0 -7
  262. package/angular/11/lib/lightgallery-angular.service.d.ts.map +0 -1
  263. package/angular/11/lightgallery-angular-11.d.ts +0 -6
  264. package/angular/11/lightgallery-angular-11.d.ts.map +0 -1
  265. package/angular/11/package.json +0 -21
  266. package/angular/11/public-api.d.ts +0 -4
  267. package/angular/11/public-api.d.ts.map +0 -1
  268. package/angular/12/README.md +0 -24
  269. package/angular/12/bundles/lightgallery-angular-12.umd.js +0 -296
  270. package/angular/12/bundles/lightgallery-angular-12.umd.js.map +0 -1
  271. package/angular/12/esm2015/lib/lightgallery-angular.component.js +0 -221
  272. package/angular/12/esm2015/lib/lightgallery-angular.module.js +0 -17
  273. package/angular/12/esm2015/lib/lightgallery-angular.service.js +0 -14
  274. package/angular/12/esm2015/lightgallery-angular-12.js +0 -5
  275. package/angular/12/esm2015/public-api.js +0 -7
  276. package/angular/12/fesm2015/lightgallery-angular-12.js +0 -258
  277. package/angular/12/fesm2015/lightgallery-angular-12.js.map +0 -1
  278. package/angular/12/lib/lightgallery-angular.component.d.ts +0 -38
  279. package/angular/12/lib/lightgallery-angular.module.d.ts +0 -7
  280. package/angular/12/lib/lightgallery-angular.service.d.ts +0 -6
  281. package/angular/12/lightgallery-angular-12.d.ts +0 -5
  282. package/angular/12/package.json +0 -18
  283. package/angular/12/public-api.d.ts +0 -3
  284. package/angular/13/README.md +0 -24
  285. package/angular/13/esm2020/lib/lightgallery-angular.component.mjs +0 -221
  286. package/angular/13/esm2020/lib/lightgallery-angular.module.mjs +0 -17
  287. package/angular/13/esm2020/lib/lightgallery-angular.service.mjs +0 -14
  288. package/angular/13/esm2020/lightgallery-angular-13.mjs +0 -5
  289. package/angular/13/esm2020/public-api.mjs +0 -7
  290. package/angular/13/fesm2015/lightgallery-angular-13.mjs +0 -258
  291. package/angular/13/fesm2015/lightgallery-angular-13.mjs.map +0 -1
  292. package/angular/13/fesm2020/lightgallery-angular-13.mjs +0 -258
  293. package/angular/13/fesm2020/lightgallery-angular-13.mjs.map +0 -1
  294. package/angular/13/lib/lightgallery-angular.component.d.ts +0 -38
  295. package/angular/13/lib/lightgallery-angular.module.d.ts +0 -7
  296. package/angular/13/lib/lightgallery-angular.service.d.ts +0 -6
  297. package/angular/13/lightgallery-angular-13.d.ts +0 -5
  298. package/angular/13/package.json +0 -31
  299. package/angular/13/public-api.d.ts +0 -3
  300. package/angular/14/README.md +0 -24
  301. package/angular/14/esm2020/lib/lightgallery-angular.component.mjs +0 -217
  302. package/angular/14/esm2020/lib/lightgallery-angular.module.mjs +0 -17
  303. package/angular/14/esm2020/lib/lightgallery-angular.service.mjs +0 -14
  304. package/angular/14/esm2020/lightgallery-angular-14.mjs +0 -5
  305. package/angular/14/esm2020/public-api.mjs +0 -7
  306. package/angular/14/fesm2015/lightgallery-angular-14.mjs +0 -254
  307. package/angular/14/fesm2015/lightgallery-angular-14.mjs.map +0 -1
  308. package/angular/14/fesm2020/lightgallery-angular-14.mjs +0 -254
  309. package/angular/14/fesm2020/lightgallery-angular-14.mjs.map +0 -1
  310. package/angular/14/index.d.ts +0 -5
  311. package/angular/14/lib/lightgallery-angular.component.d.ts +0 -38
  312. package/angular/14/lib/lightgallery-angular.module.d.ts +0 -7
  313. package/angular/14/lib/lightgallery-angular.service.d.ts +0 -6
  314. package/angular/14/package.json +0 -31
  315. package/angular/14/public-api.d.ts +0 -3
  316. package/angular/15/README.md +0 -24
  317. package/angular/15/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  318. package/angular/15/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  319. package/angular/15/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  320. package/angular/15/esm2022/lightgallery-angular-15.mjs +0 -5
  321. package/angular/15/esm2022/public-api.mjs +0 -7
  322. package/angular/15/fesm2022/lightgallery-angular-15.mjs +0 -254
  323. package/angular/15/fesm2022/lightgallery-angular-15.mjs.map +0 -1
  324. package/angular/15/index.d.ts +0 -5
  325. package/angular/15/lib/lightgallery-angular.component.d.ts +0 -38
  326. package/angular/15/lib/lightgallery-angular.module.d.ts +0 -7
  327. package/angular/15/lib/lightgallery-angular.service.d.ts +0 -6
  328. package/angular/15/package.json +0 -25
  329. package/angular/15/public-api.d.ts +0 -3
  330. package/angular/16/README.md +0 -24
  331. package/angular/16/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  332. package/angular/16/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  333. package/angular/16/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  334. package/angular/16/esm2022/lightgallery-angular-16.mjs +0 -5
  335. package/angular/16/esm2022/public-api.mjs +0 -7
  336. package/angular/16/fesm2022/lightgallery-angular-16.mjs +0 -254
  337. package/angular/16/fesm2022/lightgallery-angular-16.mjs.map +0 -1
  338. package/angular/16/index.d.ts +0 -5
  339. package/angular/16/lib/lightgallery-angular.component.d.ts +0 -38
  340. package/angular/16/lib/lightgallery-angular.module.d.ts +0 -7
  341. package/angular/16/lib/lightgallery-angular.service.d.ts +0 -6
  342. package/angular/16/package.json +0 -25
  343. package/angular/16/public-api.d.ts +0 -3
  344. package/angular/9/README.md +0 -24
  345. package/angular/9/bundles/lightgallery-angular-9.umd.js +0 -271
  346. package/angular/9/bundles/lightgallery-angular-9.umd.js.map +0 -1
  347. package/angular/9/bundles/lightgallery-angular-9.umd.min.js +0 -2
  348. package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +0 -1
  349. package/angular/9/esm2015/lib/lightgallery-angular.component.js +0 -225
  350. package/angular/9/esm2015/lib/lightgallery-angular.module.js +0 -17
  351. package/angular/9/esm2015/lib/lightgallery-angular.service.js +0 -14
  352. package/angular/9/esm2015/lightgallery-angular-9.js +0 -5
  353. package/angular/9/esm2015/public-api.js +0 -7
  354. package/angular/9/esm5/lib/lightgallery-angular.component.js +0 -228
  355. package/angular/9/esm5/lib/lightgallery-angular.module.js +0 -21
  356. package/angular/9/esm5/lib/lightgallery-angular.service.js +0 -17
  357. package/angular/9/esm5/lightgallery-angular-9.js +0 -5
  358. package/angular/9/esm5/public-api.js +0 -7
  359. package/angular/9/fesm2015/lightgallery-angular-9.js +0 -261
  360. package/angular/9/fesm2015/lightgallery-angular-9.js.map +0 -1
  361. package/angular/9/fesm5/lightgallery-angular-9.js +0 -268
  362. package/angular/9/fesm5/lightgallery-angular-9.js.map +0 -1
  363. package/angular/9/lib/lightgallery-angular.component.d.ts +0 -38
  364. package/angular/9/lib/lightgallery-angular.module.d.ts +0 -6
  365. package/angular/9/lib/lightgallery-angular.service.d.ts +0 -6
  366. package/angular/9/lightgallery-angular-9.d.ts +0 -5
  367. package/angular/9/package.json +0 -23
  368. package/angular/9/public-api.d.ts +0 -3
  369. package/angular/README.md +0 -24
  370. package/angular/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  371. package/angular/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  372. package/angular/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  373. package/angular/esm2022/lightgallery-angular.mjs +0 -5
  374. package/angular/esm2022/public-api.mjs +0 -7
  375. package/angular/fesm2022/lightgallery-angular.mjs +0 -254
  376. package/angular/fesm2022/lightgallery-angular.mjs.map +0 -1
  377. package/angular/index.d.ts +0 -5
  378. package/angular/lib/lightgallery-angular.component.d.ts +0 -38
  379. package/angular/lib/lightgallery-angular.module.d.ts +0 -7
  380. package/angular/lib/lightgallery-angular.service.d.ts +0 -6
  381. package/angular/package.json +0 -25
  382. package/angular/public-api.d.ts +0 -3
  383. package/css/lg-fullscreen.css +0 -8
  384. package/css/lg-fullscreen.css.map +0 -1
  385. package/css/lg-share.css.map +0 -1
  386. package/css/lg-thumbnail.css.map +0 -1
  387. package/css/lg-transitions.css.map +0 -1
  388. package/css/lg-zoom.css.map +0 -1
  389. package/css/lightgallery-bundle.css.map +0 -1
  390. package/css/lightgallery-bundle.min.css +0 -1
  391. package/css/lightgallery-core.css.map +0 -1
  392. package/css/lightgallery.css.map +0 -1
  393. package/fonts/lg.svg +0 -54
  394. package/fonts/lg.ttf +0 -0
  395. package/fonts/lg.woff +0 -0
  396. package/fonts/lg.woff2 +0 -0
  397. package/lib/index.js +0 -8
  398. package/lib/index.js.map +0 -1
  399. package/lib/lg-events.js +0 -37
  400. package/lib/lg-events.js.map +0 -1
  401. package/lib/lg-plugin.js +0 -13
  402. package/lib/lg-plugin.js.map +0 -1
  403. package/lib/lg-settings.js +0 -83
  404. package/lib/lg-settings.js.map +0 -1
  405. package/lib/lg-utils.js +0 -328
  406. package/lib/lg-utils.js.map +0 -1
  407. package/lib/lgQuery.js +0 -385
  408. package/lib/lgQuery.js.map +0 -1
  409. package/lib/lightgallery.js +0 -1949
  410. package/lib/lightgallery.js.map +0 -1
  411. package/lib/plugins/autoplay/lg-autoplay-settings.js +0 -16
  412. package/lib/plugins/autoplay/lg-autoplay-settings.js.map +0 -1
  413. package/lib/plugins/autoplay/lg-autoplay.js +0 -184
  414. package/lib/plugins/autoplay/lg-autoplay.js.map +0 -1
  415. package/lib/plugins/comment/lg-comment-settings.js +0 -17
  416. package/lib/plugins/comment/lg-comment-settings.js.map +0 -1
  417. package/lib/plugins/comment/lg-comment.js +0 -140
  418. package/lib/plugins/comment/lg-comment.js.map +0 -1
  419. package/lib/plugins/fullscreen/lg-fullscreen-settings.js +0 -10
  420. package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +0 -1
  421. package/lib/plugins/fullscreen/lg-fullscreen.js +0 -108
  422. package/lib/plugins/fullscreen/lg-fullscreen.js.map +0 -1
  423. package/lib/plugins/hash/lg-hash-settings.js +0 -9
  424. package/lib/plugins/hash/lg-hash-settings.js.map +0 -1
  425. package/lib/plugins/hash/lg-hash.js +0 -139
  426. package/lib/plugins/hash/lg-hash.js.map +0 -1
  427. package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js +0 -9
  428. package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js.map +0 -1
  429. package/lib/plugins/mediumZoom/lg-medium-zoom.js +0 -73
  430. package/lib/plugins/mediumZoom/lg-medium-zoom.js.map +0 -1
  431. package/lib/plugins/pager/lg-pager-settings.js +0 -7
  432. package/lib/plugins/pager/lg-pager-settings.js.map +0 -1
  433. package/lib/plugins/pager/lg-pager.js +0 -82
  434. package/lib/plugins/pager/lg-pager.js.map +0 -1
  435. package/lib/plugins/relativeCaption/lg-relative-caption-settings.js +0 -7
  436. package/lib/plugins/relativeCaption/lg-relative-caption-settings.js.map +0 -1
  437. package/lib/plugins/relativeCaption/lg-relative-caption.js +0 -97
  438. package/lib/plugins/relativeCaption/lg-relative-caption.js.map +0 -1
  439. package/lib/plugins/rotate/lg-rotate-settings.js +0 -18
  440. package/lib/plugins/rotate/lg-rotate-settings.js.map +0 -1
  441. package/lib/plugins/rotate/lg-rotate.js +0 -206
  442. package/lib/plugins/rotate/lg-rotate.js.map +0 -1
  443. package/lib/plugins/share/lg-fb-share-utils.js +0 -10
  444. package/lib/plugins/share/lg-fb-share-utils.js.map +0 -1
  445. package/lib/plugins/share/lg-pinterest-share-utils.js +0 -17
  446. package/lib/plugins/share/lg-pinterest-share-utils.js.map +0 -1
  447. package/lib/plugins/share/lg-share-settings.js +0 -15
  448. package/lib/plugins/share/lg-share-settings.js.map +0 -1
  449. package/lib/plugins/share/lg-share.js +0 -130
  450. package/lib/plugins/share/lg-share.js.map +0 -1
  451. package/lib/plugins/share/lg-twitter-share-utils.js +0 -11
  452. package/lib/plugins/share/lg-twitter-share-utils.js.map +0 -1
  453. package/lib/plugins/share/types.js +0 -3
  454. package/lib/plugins/share/types.js.map +0 -1
  455. package/lib/plugins/thumbnail/lg-thumbnail-settings.js +0 -23
  456. package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +0 -1
  457. package/lib/plugins/thumbnail/lg-thumbnail.js +0 -414
  458. package/lib/plugins/thumbnail/lg-thumbnail.js.map +0 -1
  459. package/lib/plugins/video/lg-video-settings.js +0 -15
  460. package/lib/plugins/video/lg-video-settings.js.map +0 -1
  461. package/lib/plugins/video/lg-video-utils.js +0 -84
  462. package/lib/plugins/video/lg-video-utils.js.map +0 -1
  463. package/lib/plugins/video/lg-video.js +0 -411
  464. package/lib/plugins/video/lg-video.js.map +0 -1
  465. package/lib/plugins/video/types.js +0 -3
  466. package/lib/plugins/video/types.js.map +0 -1
  467. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js +0 -8
  468. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js.map +0 -1
  469. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js +0 -122
  470. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js.map +0 -1
  471. package/lib/plugins/zoom/lg-zoom-settings.js +0 -21
  472. package/lib/plugins/zoom/lg-zoom-settings.js.map +0 -1
  473. package/lib/plugins/zoom/lg-zoom.js +0 -909
  474. package/lib/plugins/zoom/lg-zoom.js.map +0 -1
  475. package/lib/types.js +0 -3
  476. package/lib/types.js.map +0 -1
  477. package/lightgallery-2.9.0.tgz +0 -0
  478. package/lightgallery.es5.js +0 -2786
  479. package/lightgallery.es5.js.map +0 -1
  480. package/lightgallery.min.js +0 -8
  481. package/lightgallery.umd.js +0 -2794
  482. package/lightgallery.umd.js.map +0 -1
  483. package/lit/custom-elements.json +0 -82
  484. package/lit/lightgallery.esm.js +0 -59
  485. package/lit/lightgallery.umd.js +0 -37
  486. package/lit/package.json +0 -8
  487. package/plugins/autoplay/lg-autoplay.es5.js +0 -250
  488. package/plugins/autoplay/lg-autoplay.es5.js.map +0 -1
  489. package/plugins/autoplay/lg-autoplay.min.js +0 -8
  490. package/plugins/autoplay/lg-autoplay.umd.js +0 -258
  491. package/plugins/autoplay/lg-autoplay.umd.js.map +0 -1
  492. package/plugins/autoplay/package.json +0 -7
  493. package/plugins/comment/lg-comment.es5.js +0 -205
  494. package/plugins/comment/lg-comment.es5.js.map +0 -1
  495. package/plugins/comment/lg-comment.min.js +0 -8
  496. package/plugins/comment/lg-comment.umd.js +0 -213
  497. package/plugins/comment/lg-comment.umd.js.map +0 -1
  498. package/plugins/comment/package.json +0 -7
  499. package/plugins/fullscreen/lg-fullscreen.es5.js +0 -135
  500. package/plugins/fullscreen/lg-fullscreen.es5.js.map +0 -1
  501. package/plugins/fullscreen/lg-fullscreen.min.js +0 -8
  502. package/plugins/fullscreen/lg-fullscreen.umd.js +0 -143
  503. package/plugins/fullscreen/lg-fullscreen.umd.js.map +0 -1
  504. package/plugins/fullscreen/package.json +0 -7
  505. package/plugins/hash/lg-hash-settings.d.ts +0 -16
  506. package/plugins/hash/lg-hash.es5.js +0 -198
  507. package/plugins/hash/lg-hash.es5.js.map +0 -1
  508. package/plugins/hash/lg-hash.min.js +0 -8
  509. package/plugins/hash/lg-hash.umd.js +0 -206
  510. package/plugins/hash/lg-hash.umd.js.map +0 -1
  511. package/plugins/hash/package.json +0 -7
  512. package/plugins/mediumZoom/lg-medium-zoom.es5.js +0 -132
  513. package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +0 -1
  514. package/plugins/mediumZoom/lg-medium-zoom.min.js +0 -8
  515. package/plugins/mediumZoom/lg-medium-zoom.umd.js +0 -140
  516. package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +0 -1
  517. package/plugins/mediumZoom/package.json +0 -7
  518. package/plugins/pager/lg-pager.es5.js +0 -139
  519. package/plugins/pager/lg-pager.es5.js.map +0 -1
  520. package/plugins/pager/lg-pager.min.js +0 -8
  521. package/plugins/pager/lg-pager.umd.js +0 -147
  522. package/plugins/pager/lg-pager.umd.js.map +0 -1
  523. package/plugins/pager/package.json +0 -7
  524. package/plugins/relativeCaption/lg-relative-caption.es5.js +0 -154
  525. package/plugins/relativeCaption/lg-relative-caption.es5.js.map +0 -1
  526. package/plugins/relativeCaption/lg-relative-caption.min.js +0 -8
  527. package/plugins/relativeCaption/lg-relative-caption.umd.js +0 -162
  528. package/plugins/relativeCaption/lg-relative-caption.umd.js.map +0 -1
  529. package/plugins/relativeCaption/package.json +0 -7
  530. package/plugins/rotate/lg-rotate.es5.js +0 -274
  531. package/plugins/rotate/lg-rotate.es5.js.map +0 -1
  532. package/plugins/rotate/lg-rotate.min.js +0 -8
  533. package/plugins/rotate/lg-rotate.umd.js +0 -282
  534. package/plugins/rotate/lg-rotate.umd.js.map +0 -1
  535. package/plugins/rotate/package.json +0 -7
  536. package/plugins/share/lg-share.d.ts +0 -15
  537. package/plugins/share/lg-share.es5.js +0 -219
  538. package/plugins/share/lg-share.es5.js.map +0 -1
  539. package/plugins/share/lg-share.min.js +0 -8
  540. package/plugins/share/lg-share.umd.js +0 -227
  541. package/plugins/share/lg-share.umd.js.map +0 -1
  542. package/plugins/share/lg-twitter-share-utils.d.ts +0 -2
  543. package/plugins/share/package.json +0 -7
  544. package/plugins/thumbnail/lg-thumbnail.d.ts +0 -48
  545. package/plugins/thumbnail/lg-thumbnail.es5.js +0 -487
  546. package/plugins/thumbnail/lg-thumbnail.es5.js.map +0 -1
  547. package/plugins/thumbnail/lg-thumbnail.min.js +0 -8
  548. package/plugins/thumbnail/lg-thumbnail.umd.js +0 -495
  549. package/plugins/thumbnail/lg-thumbnail.umd.js.map +0 -1
  550. package/plugins/thumbnail/package.json +0 -7
  551. package/plugins/video/lg-video-utils.d.ts +0 -10
  552. package/plugins/video/lg-video.es5.js +0 -545
  553. package/plugins/video/lg-video.es5.js.map +0 -1
  554. package/plugins/video/lg-video.min.js +0 -8
  555. package/plugins/video/lg-video.umd.js +0 -553
  556. package/plugins/video/lg-video.umd.js.map +0 -1
  557. package/plugins/video/package.json +0 -7
  558. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +0 -182
  559. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +0 -1
  560. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +0 -8
  561. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +0 -190
  562. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +0 -1
  563. package/plugins/vimeoThumbnail/package.json +0 -7
  564. package/plugins/zoom/lg-zoom.es5.js +0 -980
  565. package/plugins/zoom/lg-zoom.es5.js.map +0 -1
  566. package/plugins/zoom/lg-zoom.min.js +0 -8
  567. package/plugins/zoom/lg-zoom.umd.js +0 -988
  568. package/plugins/zoom/lg-zoom.umd.js.map +0 -1
  569. package/plugins/zoom/package.json +0 -7
  570. package/react/Lightgallery.d.ts +0 -33
  571. package/react/Lightgallery.es5.js +0 -2988
  572. package/react/Lightgallery.es5.js.map +0 -1
  573. package/react/Lightgallery.umd.js +0 -2994
  574. package/react/Lightgallery.umd.js.map +0 -1
  575. package/react/package.json +0 -7
  576. package/scss/_lg-fonts.scss +0 -27
  577. package/scss/lg-fullscreen.scss +0 -9
  578. package/vue/LightGallery.vue.d.ts +0 -37
  579. package/vue/LightGalleryVue.common.js +0 -9343
  580. package/vue/LightGalleryVue.common.js.map +0 -1
  581. package/vue/LightGalleryVue.umd.js +0 -9353
  582. package/vue/LightGalleryVue.umd.js.map +0 -1
  583. package/vue/LightGalleryVue.umd.min.js +0 -8
  584. package/vue/LightGalleryVue.umd.min.js.map +0 -1
  585. package/vue/package.json +0 -7
  586. /package/{css → dist/css}/lg-medium-zoom.css +0 -0
  587. /package/{css → dist/css}/lg-medium-zoom.css.map +0 -0
  588. /package/{css → dist/css}/lg-pager.css +0 -0
  589. /package/{css → dist/css}/lg-relative-caption.css +0 -0
  590. /package/{css → dist/css}/lg-relative-caption.css.map +0 -0
  591. /package/{css → dist/css}/lg-video.css +0 -0
  592. /package/{css → dist/css}/lg-video.css.map +0 -0
  593. /package/{images → dist/images}/loading.gif +0 -0
  594. /package/{scss → dist/scss}/_lg-mixins.scss +0 -0
  595. /package/{scss → dist/scss}/lg-medium-zoom.scss +0 -0
  596. /package/{scss → dist/scss}/lg-pager.scss +0 -0
  597. /package/{scss → dist/scss}/lg-relative-caption.scss +0 -0
  598. /package/{scss → dist/scss}/lg-transitions.scss +0 -0
  599. /package/{scss → dist/scss}/lg-video.scss +0 -0
  600. /package/{scss → dist/scss}/transitions/_index.scss +0 -0
  601. /package/{scss → dist/scss}/transitions/_lg-lollipop-rev.scss +0 -0
  602. /package/{scss → dist/scss}/transitions/_lg-lollipop.scss +0 -0
  603. /package/{scss → dist/scss}/transitions/_lg-rotate-rev.scss +0 -0
  604. /package/{scss → dist/scss}/transitions/_lg-rotate.scss +0 -0
  605. /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross-rev.scss +0 -0
  606. /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross.scss +0 -0
  607. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-rev.scss +0 -0
  608. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y-rev.scss +0 -0
  609. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y.scss +0 -0
  610. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only.scss +0 -0
  611. /package/{scss → dist/scss}/transitions/_lg-slide-skew-rev.scss +0 -0
  612. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross-rev.scss +0 -0
  613. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross.scss +0 -0
  614. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-rev.scss +0 -0
  615. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver.scss +0 -0
  616. /package/{scss → dist/scss}/transitions/_lg-slide-skew.scss +0 -0
  617. /package/{scss → dist/scss}/transitions/_lg-slide-vertical-growth.scss +0 -0
  618. /package/{scss → dist/scss}/transitions/_lg-slide-vertical.scss +0 -0
  619. /package/{scss → dist/scss}/transitions/_lg-tube.scss +0 -0
@@ -1,425 +1,549 @@
1
- import { GalleryItem } from './lg-utils';
2
- import { LgQuery } from './lgQuery';
3
- import { LightGallery } from './lightgallery';
4
- import { AutoplaySettings } from './plugins/autoplay/lg-autoplay-settings';
5
- import { CommentSettings } from './plugins/comment/lg-comment-settings';
6
- import { FullscreenSettings } from './plugins/fullscreen/lg-fullscreen-settings';
7
- import { HashSettings } from './plugins/hash/lg-hash-settings';
8
- import { MediumZoomSettings } from './plugins/mediumZoom/lg-medium-zoom-settings';
9
- import { PagerSettings } from './plugins/pager/lg-pager-settings';
10
- import { RotateSettings } from './plugins/rotate/lg-rotate-settings';
11
- import { ShareSettings } from './plugins/share/lg-share-settings';
12
- import { ThumbnailsSettings } from './plugins/thumbnail/lg-thumbnail-settings';
13
- import { VideoSettings } from './plugins/video/lg-video-settings';
14
- import { ZoomSettings } from './plugins/zoom/lg-zoom-settings';
15
- declare type LightGalleryCoreMobileSettings = Exclude<LightGalleryCoreSettings, 'mobileSettings'>;
16
- 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> {
17
- }
18
- export interface LightGalleryCoreStrings {
19
- closeGallery: string;
20
- toggleMaximize: string;
21
- previousSlide: string;
22
- nextSlide: string;
23
- download: string;
24
- playVideo: string;
25
- mediaLoadingFailed: string;
26
- }
27
- export declare type LightGalleryAllSettings = LightGalleryCoreSettings & ZoomSettings & ThumbnailsSettings & VideoSettings & AutoplaySettings & CommentSettings & FullscreenSettings & HashSettings & PagerSettings & RotateSettings & ShareSettings & MediumZoomSettings;
28
- export declare type LightGallerySettings = Partial<LightGalleryAllSettings>;
29
- export interface LightGalleryCoreSettings {
30
- /**
31
- * Type of transition between images.
32
- */
33
- 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';
34
- /**
35
- * Slide animation CSS easing property
36
- */
37
- easing: string;
38
- /**
39
- *Transition duration (in ms).
40
- */
41
- speed: number;
42
- /**
43
- * If you are using lightGallery for commercial projects, you need to purchase a commercial license
44
- * to get the license key. For projects that are compatible with GPLv3 license,
45
- * please contact us for getting a license key at <a href="mailto:contact@lightgalleryjs.com">contact@lightgalleryjs.com</a>.
46
- * If you want to test lightGallery before purchasing a commercial license, you can
47
- * use `0000-0000-000-0000` as a temporary license key
48
- */
49
- licenseKey: string;
50
- /**
51
- * Height of the gallery.
52
- * example '100%' , '300px'
53
- */
54
- height: string;
55
- /**
56
- * Width of the gallery.
57
- * example '100%' , '300px'
58
- */
59
- width: string;
60
- /**
61
- * Add custom class for gallery container
62
- * This can be used to set different style for different galleries
63
- */
64
- addClass: string;
65
- /**
66
- * Start animation class for the gallery.
67
- * @description
68
- * <ul>
69
- * <li>startClass will be empty zoomFromOrigin is true.</li>
70
- * <li>This can be used to change the starting effect when the image is loaded</li>
71
- * <li>This is also applied when navigating to new slides</li>
72
- * </ul>
73
- */
74
- startClass: string;
75
- /**
76
- * Enable zoom from origin effect.
77
- * @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>"
78
- *
79
- * 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,
80
- * lightGallery will show the default animation if data-lg-size is not available
81
- *
82
- * If you are using responsive images,
83
- * you can pass a comma separated list of sizes combined with a max-width (up to what size the particular image should be used)
84
- *
85
- * example -
86
- * <code> data-lg-size="240-160-375, 400-267-480, 1600-1067"
87
- * data-responsive="img-240.jpg 375, img-400.jpg 480"
88
- * data-src="img-1600.jpg" </code>
89
- *
90
- * In the above example, upto 375 width img.240.jpg and lg-size 240-160 will be used.
91
- * Similarly, upto 480 pixel width size 400-267 and img-400.jpg will be used
92
- * And above 480, lg-size 1600-1067 and img-1600.jpg will be used
93
- *
94
- * <ul>
95
- * <li>At the moment, zoomFromOrigin options is supported only for image slides.</li>
96
- * <li>Will be false if dynamic option is enabled or galleryID found in the URL.</li>
97
- * <li>startClass will be empty if zoomFromOrigin is true to avoid css conflicts.</li>
98
- * </ul>
99
- */
100
- zoomFromOrigin: boolean;
101
- /**
102
- * Zoom from image animation duration
103
- */
104
- startAnimationDuration: number;
105
- /**
106
- * Backdrop transition duration.
107
- * Note - Do not change the value of backdrop via css.
108
- */
109
- backdropDuration: number;
110
- /**
111
- * Configure where the gallery should be appended.
112
- * Useful to create inline galleries and more
113
- * It is an empty string in the default settings and later assigned to document.body to avoid accessing document for SSR
114
- */
115
- container: HTMLElement | (() => HTMLElement | null) | (string | null);
116
- /**
117
- * Delay for hiding gallery controls in ms.
118
- * Pass <code>0</code> if you don't want to hide the controls
119
- */
120
- hideBarsDelay: number;
121
- /**
122
- * Delay in hiding controls for the first time when gallery is opened
123
- */
124
- showBarsAfter: number;
125
- /**
126
- * Delay slide transitions.
127
- * @description This is useful if you want to do any action in the current slide before moving to next slide.
128
- * <section>
129
- * For example, fading out the captions before going to next slide.
130
- * <code>.lg-slide-progress</code> class name is added to the current slide immediately after calling the slide method.
131
- * But transition begins only after the delay
132
- * </section>
133
- */
134
- slideDelay: number;
135
- /**
136
- * Support legacy browsers
137
- * @description Currently this is used only for adding support to srcset attribute via picturefill library
138
- * If true lightGallery will show warning message to include picturefill library
139
- */
140
- supportLegacyBrowser: boolean;
141
- /**
142
- * If true, toolbar, captions and thumbnails will not overlap with media element
143
- * This will not effect thumbnails if animateThumb is false
144
- * Also, toggle thumbnails button is not displayed if allowMediaOverlap is false
145
- * <section>
146
- * Note - Changing the position of the media on every slide transition creates a flickering effect.
147
- * Therefore, the height of the caption is calculated dynamically, only once based on the first slide caption.
148
- * </section>
149
- * <section>
150
- * if you have dynamic captions for each media,
151
- * you can provide an appropriate height for the captions via allowMediaOverlap option
152
- * </section>
153
- */
154
- allowMediaOverlap: boolean;
155
- /**
156
- * Video max size.
157
- * @description This can be over-written by passing specific size via data-lg-size attribute
158
- * Recommended video resolution and & aspect ratios <a href="https://support.google.com/youtube/answer/6375112">https://support.google.com/youtube/answer/6375112</a>
159
- */
160
- videoMaxSize: string;
161
- /**
162
- * Automatically load poster image for YouTube videos
163
- */
164
- loadYouTubePoster: boolean;
165
- /**
166
- * Height of the caption for calculating allowMediaOverlap positions
167
- * Note - this is only used to find the position of media item if allowMediaOverlap is true.
168
- * Not for setting height of the captions
169
- * Set 0 if you want to calculate the height of captions dynamically
170
- */
171
- defaultCaptionHeight: number;
172
- /**
173
- * aria-labelledby attribute fot gallery
174
- */
175
- ariaLabelledby: string;
176
- /**
177
- * aria-describedby attribute for gallery
178
- */
179
- ariaDescribedby: string;
180
- /**
181
- * Hide scrollbar when gallery is opened
182
- * @version V2.5.0
183
- */
184
- hideScrollbar: boolean;
185
- /**
186
- * Reset to previous scrollPosition when lightGallery is closed
187
- * @description By default, lightGallery doesn't hide the scrollbar for a smooth opening transition.
188
- * If a user changes the scroll position, lightGallery resets it to the previous value
189
- * @version V2.5.0
190
- */
191
- resetScrollPosition: boolean;
192
- /**
193
- * If false user won't be able to close the gallery at all
194
- * This is useful for creating inline galleries.
195
- */
196
- closable: boolean;
197
- /**
198
- * allows vertical drag/swipe to close gallery
199
- * <code>false</code> if option <code>closable</code> is <code>false</code>
200
- */
201
- swipeToClose: boolean;
202
- /**
203
- * allows clicks on black area to close gallery.
204
- */
205
- closeOnTap: boolean;
206
- /**
207
- * If false, close button won't be displayed.
208
- * Useful for creating inline galleries.
209
- */
210
- showCloseIcon: boolean;
211
- /**
212
- * Show maximize icon.
213
- * Useful for creating inline galleries.
214
- */
215
- showMaximizeIcon: boolean;
216
- /**
217
- * If false, will disable the ability to loop back to the beginning of the gallery from the last slide.
218
- */
219
- loop: boolean;
220
- /**
221
- * Whether the LightGallery could be closed by pressing the "Esc" key.
222
- */
223
- escKey: boolean;
224
- /**
225
- * Enable keyboard navigation
226
- */
227
- keyPress: boolean;
228
- /**
229
- * Trap focus within the lightGallery
230
- * @version V2.5.0
231
- */
232
- trapFocus: boolean;
233
- /**
234
- * If false, prev/next buttons will not be displayed.
235
- */
236
- controls: boolean;
237
- /**
238
- * Enable slideEnd animation
239
- */
240
- slideEndAnimation: boolean;
241
- /**
242
- * If true, prev/next button will be hidden on first/last image.
243
- * @description Note - this option will be ignored if <code>loop</code> or <code>slideEndAnimation</code> is set to true
244
- */
245
- hideControlOnEnd: boolean;
246
- /**
247
- * ability to navigate to next/prev slides on mousewheel
248
- */
249
- mousewheel: boolean;
250
- /**
251
- * Option to get captions from alt or title tags.
252
- */
253
- getCaptionFromTitleOrAlt: boolean;
254
- /**
255
- * control where the sub-html should be appended.
256
- * If you choose '.lg-outer', you are responsible for placing the div at the right position.
257
- * '.lg-outer' is useful if you want show custom HTML outside the normal gallery
258
- */
259
- appendSubHtmlTo: '.lg-sub-html' | '.lg-item' | '.lg-outer';
260
- /**
261
- * Set to true if the selector in "data-sub-html" should use the current item as its origin.
262
- */
263
- subHtmlSelectorRelative: boolean;
264
- /**
265
- * number of preload slides
266
- * @description will exicute only after the current slide is fully loaded.
267
- * for example, if you click on 4th image and if preload = 1 then 3rd slide and 5th
268
- * slide will be loaded in the background after the 4th slide is fully loaded..
269
- * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.
270
- */
271
- preload: number;
272
- /**
273
- * Control how many slide items should be kept in dom at a time
274
- * @description To improve performance by reducing number of gallery items in the dom,
275
- * lightGallery keeps only the lowest possible number of slides in the dom at a time.
276
- * This has a minimum value of 3
277
- */
278
- numberOfSlideItemsInDom: number;
279
- /**
280
- * Custom selector property instead of direct children.
281
- * @description Based on your markup structure, you can specify custom selectors to fetch media data for the gallery
282
- * Pass "this" to select same element
283
- * You can also pass HTMLCollection directly
284
- * Example - '.my-selector' | '#my-selector' | this | document.querySelectorAll('.my-selector')
285
- */
286
- selector: string | HTMLCollection[];
287
- /**
288
- * By default selector element relative to the current gallery.
289
- * Instead of that you can tell lightGallery to select element relative to another element.
290
- * Example - '.my-selector-container' | '#my-selector-container'
291
- * In the code this become selector = document.querySelector(this.s.selectWithin ).querySelectorAll(this.s.selector);
292
- */
293
- selectWithin: string;
294
- /**
295
- * Custom html for next control
296
- */
297
- nextHtml: string;
298
- /**
299
- * Custom html for prev control
300
- */
301
- prevHtml: string;
302
- /**
303
- * specify which slide should load initially
304
- */
305
- index: number;
306
- /**
307
- * Set width for iframe.
308
- */
309
- iframeWidth: string;
310
- /**
311
- * Set height for iframe.
312
- */
313
- iframeHeight: string;
314
- /**
315
- * Set max width for iframe.
316
- */
317
- iframeMaxWidth: string;
318
- /**
319
- * Set max height for iframe.
320
- */
321
- iframeMaxHeight: string;
322
- /**
323
- * Enable download button.
324
- * @description By default download url will be taken from data-src/href attribute but it supports only for modern browsers.
325
- * If you want you can provide another url for download via data-download-url.
326
- * pass false in data-download-url if you want to hide download button for the particular slide.
327
- */
328
- download: boolean;
329
- /**
330
- * Whether to show total number of images and index number of currently displayed image.
331
- */
332
- counter: boolean;
333
- /**
334
- * Where the counter should be appended
335
- */
336
- appendCounterTo: string;
337
- /**
338
- * By setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev image.
339
- */
340
- swipeThreshold: number;
341
- /**
342
- * Enables swipe support for touch devices
343
- */
344
- enableSwipe: boolean;
345
- /**
346
- * Enables desktop mouse drag support
347
- */
348
- enableDrag: boolean;
349
- /**
350
- * LightGallery can be instantiated and launched programmatically by setting this option to true and populating dynamicEl option (see below) with the definitions of images.
351
- */
352
- dynamic: boolean;
353
- /**
354
- * An array of objects (src, iframe, subHtml, thumb, poster, responsive, srcset sizes) representing gallery elements.
355
- */
356
- dynamicEl: GalleryItem[];
357
- /**
358
- * Fetch custom properties from the selector
359
- * @description this is useful for plugin development
360
- * By default lightGallery fetches and store all the props selectors to
361
- * reduce frequent dom interaction for fetching props every time.
362
- *
363
- * If you need any addition data to be fetched and stored in the galleryItems variable,
364
- * you can do this just by passing the prop names via extraProps
365
- * @example
366
- * HTML:
367
- * <div id="lightGallery">
368
- * <a href="a.jpg" data-custom-prop="abc"><img src="thumb.jpg" /></a>
369
- * <a href="a.jpg" data-custom-prop="xyz"><img src="thumb.jpg" /></a>
370
- * </div>
371
- * JS:
372
- * lightGallery(document.getElementById('lightGallery'), {
373
- * extraProps: ['customProp']
374
- * })
375
- * // Note - If you are using dynamic mode, you can pass any custom prop in the galleryItem
376
- * lightGallery(document.getElementById('lightGallery'), {
377
- * dynamic: true,
378
- * dynamicEl: [{
379
- * src: 'img/img1.jpg',
380
- * customProp:'abc',
381
- * }]
382
- * })
383
- *
384
- */
385
- extraProps: string[];
386
- /**
387
- * Option to fetch different thumbnail image other than first image
388
- * @description If you want to use external image for thumbnail,
389
- * add the path of that image inside "data-" attribute
390
- * and set value of this option to the name of your custom attribute.
391
- *
392
- * @example
393
- * <div id="lightGallery">
394
- * <a href="a.jpg" data-external-thumb-image="images/externalThumb.jpg" ><img src="thumb.jpg" /></a>
395
- * </div>
396
- *
397
- * lightGallery(document.getElementById('lightGallery'), {
398
- * exThumbImage: 'data-external-thumb-image'
399
- * })
400
- */
401
- exThumbImage: string;
402
- /**
403
- * Function to detect mobile devices
404
- */
405
- isMobile?: () => boolean;
406
- /**
407
- * Separate settings for mobile devices
408
- * @description Note - this is applied only at the time of loading
409
- * by default controls and close buttons are disabled on mobile devices.
410
- * use this options if you want to enable them or change any other settings for mobile devices
411
- * Note - mobileSettings does not merge default values, You need to provide all mobileSettings including default values
412
- */
413
- mobileSettings: Partial<MobileSettings>;
414
- /**
415
- * Customize string.
416
- * @description This can be useful if you want to localize the lightGallery strings to other languages.
417
- * Use your own service to translate the strings and pass it via settings.strings
418
- * You can find dedicated strings option for all lightGallery modules in their respective documentation.
419
- * Note - You need to provide values for all the strings. For example, even if you just want to change the closeGallery string, you need to provide all the other strings as well.
420
- */
421
- strings: LightGalleryCoreStrings;
422
- plugins: (new (instance: LightGallery, $LG: LgQuery) => any)[];
423
- }
424
- export declare const lightGalleryCoreSettings: LightGalleryCoreSettings;
425
- export {};
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 &amp; 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 &amp; 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 {};