lightgallery 2.9.0 → 3.0.0-beta.2

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 (595) 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 +3848 -0
  33. package/dist/lightgallery.es5.js.map +1 -0
  34. package/dist/lightgallery.min.js +1 -0
  35. package/dist/lightgallery.umd.js +3851 -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/{index.d.ts → dist/types/index.d.ts} +8 -4
  152. package/{lg-events.d.ts → dist/types/lg-events.d.ts} +300 -300
  153. package/dist/types/lg-icons.d.ts +27 -0
  154. package/{lg-plugin.d.ts → dist/types/lg-plugin.d.ts} +7 -7
  155. package/{lg-settings.d.ts → dist/types/lg-settings.d.ts} +555 -425
  156. package/dist/types/lg-spring-runner.d.ts +14 -0
  157. package/dist/types/lg-toolbar-overflow.d.ts +36 -0
  158. package/{lg-utils.d.ts → dist/types/lg-utils.d.ts} +236 -228
  159. package/{lgQuery.d.ts → dist/types/lgQuery.d.ts} +56 -56
  160. package/{lightgallery.d.ts → dist/types/lightgallery.d.ts} +385 -305
  161. package/{plugins → dist/types/plugins}/autoplay/lg-autoplay-settings.d.ts +41 -38
  162. package/{plugins → dist/types/plugins}/autoplay/lg-autoplay.d.ts +22 -22
  163. package/{plugins → dist/types/plugins}/comment/lg-comment-settings.d.ts +36 -33
  164. package/{plugins → dist/types/plugins}/comment/lg-comment.d.ts +25 -25
  165. package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen-settings.d.ts +17 -14
  166. package/{plugins → dist/types/plugins}/fullscreen/lg-fullscreen.d.ts +16 -16
  167. package/dist/types/plugins/hash/lg-hash-settings.d.ts +28 -0
  168. package/{plugins → dist/types/plugins}/hash/lg-hash.d.ts +25 -23
  169. package/dist/types/plugins/justified/lg-justified-settings.d.ts +42 -0
  170. package/dist/types/plugins/justified/lg-justified.d.ts +55 -0
  171. package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom-settings.d.ts +16 -16
  172. package/{plugins → dist/types/plugins}/mediumZoom/lg-medium-zoom.d.ts +12 -12
  173. package/dist/types/plugins/originCrop/lg-origin-crop-settings.d.ts +12 -0
  174. package/dist/types/plugins/originCrop/lg-origin-crop.d.ts +79 -0
  175. package/{plugins → dist/types/plugins}/pager/lg-pager-settings.d.ts +7 -7
  176. package/{plugins → dist/types/plugins}/pager/lg-pager.d.ts +13 -13
  177. package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption-settings.d.ts +7 -7
  178. package/{plugins → dist/types/plugins}/relativeCaption/lg-relative-caption.d.ts +14 -14
  179. package/{plugins → dist/types/plugins}/rotate/lg-rotate-settings.d.ts +47 -45
  180. package/{plugins → dist/types/plugins}/rotate/lg-rotate.d.ts +25 -24
  181. package/{plugins → dist/types/plugins}/share/lg-fb-share-utils.d.ts +2 -2
  182. package/{plugins → dist/types/plugins}/share/lg-pinterest-share-utils.d.ts +2 -2
  183. package/{plugins → dist/types/plugins}/share/lg-share-settings.d.ts +71 -56
  184. package/dist/types/plugins/share/lg-share.d.ts +33 -0
  185. package/dist/types/plugins/share/lg-twitter-share-utils.d.ts +4 -0
  186. package/{plugins → dist/types/plugins}/share/types.d.ts +6 -6
  187. package/{plugins → dist/types/plugins}/thumbnail/lg-thumbnail-settings.d.ts +85 -70
  188. package/dist/types/plugins/thumbnail/lg-thumbnail.d.ts +88 -0
  189. package/{plugins → dist/types/plugins}/video/lg-video-settings.d.ts +94 -71
  190. package/{plugins → dist/types/plugins}/video/lg-video.d.ts +116 -104
  191. package/{plugins → dist/types/plugins}/video/types.d.ts +8 -8
  192. package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail-settings.d.ts +11 -11
  193. package/{plugins → dist/types/plugins}/vimeoThumbnail/lg-vimeo-thumbnail.d.ts +14 -14
  194. package/{plugins → dist/types/plugins}/zoom/lg-zoom-settings.d.ts +54 -51
  195. package/{plugins → dist/types/plugins}/zoom/lg-zoom.d.ts +145 -108
  196. package/{types.d.ts → dist/types/types.d.ts} +40 -40
  197. package/package.json +237 -8
  198. package/angular/10/README.md +0 -24
  199. package/angular/10/bundles/lightgallery-angular-10.umd.js +0 -289
  200. package/angular/10/bundles/lightgallery-angular-10.umd.js.map +0 -1
  201. package/angular/10/bundles/lightgallery-angular-10.umd.min.js +0 -2
  202. package/angular/10/bundles/lightgallery-angular-10.umd.min.js.map +0 -1
  203. package/angular/10/esm2015/lib/lightgallery-angular.component.js +0 -225
  204. package/angular/10/esm2015/lib/lightgallery-angular.module.js +0 -17
  205. package/angular/10/esm2015/lib/lightgallery-angular.service.js +0 -14
  206. package/angular/10/esm2015/lightgallery-angular-10.js +0 -5
  207. package/angular/10/esm2015/public-api.js +0 -7
  208. package/angular/10/fesm2015/lightgallery-angular-10.js +0 -261
  209. package/angular/10/fesm2015/lightgallery-angular-10.js.map +0 -1
  210. package/angular/10/lib/lightgallery-angular.component.d.ts +0 -39
  211. package/angular/10/lib/lightgallery-angular.component.d.ts.map +0 -1
  212. package/angular/10/lib/lightgallery-angular.module.d.ts +0 -7
  213. package/angular/10/lib/lightgallery-angular.module.d.ts.map +0 -1
  214. package/angular/10/lib/lightgallery-angular.service.d.ts +0 -7
  215. package/angular/10/lib/lightgallery-angular.service.d.ts.map +0 -1
  216. package/angular/10/lightgallery-angular-10.d.ts +0 -6
  217. package/angular/10/lightgallery-angular-10.d.ts.map +0 -1
  218. package/angular/10/package.json +0 -21
  219. package/angular/10/public-api.d.ts +0 -4
  220. package/angular/10/public-api.d.ts.map +0 -1
  221. package/angular/11/README.md +0 -24
  222. package/angular/11/bundles/lightgallery-angular-11.umd.js +0 -290
  223. package/angular/11/bundles/lightgallery-angular-11.umd.js.map +0 -1
  224. package/angular/11/bundles/lightgallery-angular-11.umd.min.js +0 -2
  225. package/angular/11/bundles/lightgallery-angular-11.umd.min.js.map +0 -1
  226. package/angular/11/esm2015/lib/lightgallery-angular.component.js +0 -225
  227. package/angular/11/esm2015/lib/lightgallery-angular.module.js +0 -18
  228. package/angular/11/esm2015/lib/lightgallery-angular.service.js +0 -14
  229. package/angular/11/esm2015/lightgallery-angular-11.js +0 -5
  230. package/angular/11/esm2015/public-api.js +0 -7
  231. package/angular/11/fesm2015/lightgallery-angular-11.js +0 -262
  232. package/angular/11/fesm2015/lightgallery-angular-11.js.map +0 -1
  233. package/angular/11/lib/lightgallery-angular.component.d.ts +0 -39
  234. package/angular/11/lib/lightgallery-angular.component.d.ts.map +0 -1
  235. package/angular/11/lib/lightgallery-angular.module.d.ts +0 -8
  236. package/angular/11/lib/lightgallery-angular.module.d.ts.map +0 -1
  237. package/angular/11/lib/lightgallery-angular.service.d.ts +0 -7
  238. package/angular/11/lib/lightgallery-angular.service.d.ts.map +0 -1
  239. package/angular/11/lightgallery-angular-11.d.ts +0 -6
  240. package/angular/11/lightgallery-angular-11.d.ts.map +0 -1
  241. package/angular/11/package.json +0 -21
  242. package/angular/11/public-api.d.ts +0 -4
  243. package/angular/11/public-api.d.ts.map +0 -1
  244. package/angular/12/README.md +0 -24
  245. package/angular/12/bundles/lightgallery-angular-12.umd.js +0 -296
  246. package/angular/12/bundles/lightgallery-angular-12.umd.js.map +0 -1
  247. package/angular/12/esm2015/lib/lightgallery-angular.component.js +0 -221
  248. package/angular/12/esm2015/lib/lightgallery-angular.module.js +0 -17
  249. package/angular/12/esm2015/lib/lightgallery-angular.service.js +0 -14
  250. package/angular/12/esm2015/lightgallery-angular-12.js +0 -5
  251. package/angular/12/esm2015/public-api.js +0 -7
  252. package/angular/12/fesm2015/lightgallery-angular-12.js +0 -258
  253. package/angular/12/fesm2015/lightgallery-angular-12.js.map +0 -1
  254. package/angular/12/lib/lightgallery-angular.component.d.ts +0 -38
  255. package/angular/12/lib/lightgallery-angular.module.d.ts +0 -7
  256. package/angular/12/lib/lightgallery-angular.service.d.ts +0 -6
  257. package/angular/12/lightgallery-angular-12.d.ts +0 -5
  258. package/angular/12/package.json +0 -18
  259. package/angular/12/public-api.d.ts +0 -3
  260. package/angular/13/README.md +0 -24
  261. package/angular/13/esm2020/lib/lightgallery-angular.component.mjs +0 -221
  262. package/angular/13/esm2020/lib/lightgallery-angular.module.mjs +0 -17
  263. package/angular/13/esm2020/lib/lightgallery-angular.service.mjs +0 -14
  264. package/angular/13/esm2020/lightgallery-angular-13.mjs +0 -5
  265. package/angular/13/esm2020/public-api.mjs +0 -7
  266. package/angular/13/fesm2015/lightgallery-angular-13.mjs +0 -258
  267. package/angular/13/fesm2015/lightgallery-angular-13.mjs.map +0 -1
  268. package/angular/13/fesm2020/lightgallery-angular-13.mjs +0 -258
  269. package/angular/13/fesm2020/lightgallery-angular-13.mjs.map +0 -1
  270. package/angular/13/lib/lightgallery-angular.component.d.ts +0 -38
  271. package/angular/13/lib/lightgallery-angular.module.d.ts +0 -7
  272. package/angular/13/lib/lightgallery-angular.service.d.ts +0 -6
  273. package/angular/13/lightgallery-angular-13.d.ts +0 -5
  274. package/angular/13/package.json +0 -31
  275. package/angular/13/public-api.d.ts +0 -3
  276. package/angular/14/README.md +0 -24
  277. package/angular/14/esm2020/lib/lightgallery-angular.component.mjs +0 -217
  278. package/angular/14/esm2020/lib/lightgallery-angular.module.mjs +0 -17
  279. package/angular/14/esm2020/lib/lightgallery-angular.service.mjs +0 -14
  280. package/angular/14/esm2020/lightgallery-angular-14.mjs +0 -5
  281. package/angular/14/esm2020/public-api.mjs +0 -7
  282. package/angular/14/fesm2015/lightgallery-angular-14.mjs +0 -254
  283. package/angular/14/fesm2015/lightgallery-angular-14.mjs.map +0 -1
  284. package/angular/14/fesm2020/lightgallery-angular-14.mjs +0 -254
  285. package/angular/14/fesm2020/lightgallery-angular-14.mjs.map +0 -1
  286. package/angular/14/index.d.ts +0 -5
  287. package/angular/14/lib/lightgallery-angular.component.d.ts +0 -38
  288. package/angular/14/lib/lightgallery-angular.module.d.ts +0 -7
  289. package/angular/14/lib/lightgallery-angular.service.d.ts +0 -6
  290. package/angular/14/package.json +0 -31
  291. package/angular/14/public-api.d.ts +0 -3
  292. package/angular/15/README.md +0 -24
  293. package/angular/15/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  294. package/angular/15/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  295. package/angular/15/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  296. package/angular/15/esm2022/lightgallery-angular-15.mjs +0 -5
  297. package/angular/15/esm2022/public-api.mjs +0 -7
  298. package/angular/15/fesm2022/lightgallery-angular-15.mjs +0 -254
  299. package/angular/15/fesm2022/lightgallery-angular-15.mjs.map +0 -1
  300. package/angular/15/index.d.ts +0 -5
  301. package/angular/15/lib/lightgallery-angular.component.d.ts +0 -38
  302. package/angular/15/lib/lightgallery-angular.module.d.ts +0 -7
  303. package/angular/15/lib/lightgallery-angular.service.d.ts +0 -6
  304. package/angular/15/package.json +0 -25
  305. package/angular/15/public-api.d.ts +0 -3
  306. package/angular/16/README.md +0 -24
  307. package/angular/16/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  308. package/angular/16/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  309. package/angular/16/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  310. package/angular/16/esm2022/lightgallery-angular-16.mjs +0 -5
  311. package/angular/16/esm2022/public-api.mjs +0 -7
  312. package/angular/16/fesm2022/lightgallery-angular-16.mjs +0 -254
  313. package/angular/16/fesm2022/lightgallery-angular-16.mjs.map +0 -1
  314. package/angular/16/index.d.ts +0 -5
  315. package/angular/16/lib/lightgallery-angular.component.d.ts +0 -38
  316. package/angular/16/lib/lightgallery-angular.module.d.ts +0 -7
  317. package/angular/16/lib/lightgallery-angular.service.d.ts +0 -6
  318. package/angular/16/package.json +0 -25
  319. package/angular/16/public-api.d.ts +0 -3
  320. package/angular/9/README.md +0 -24
  321. package/angular/9/bundles/lightgallery-angular-9.umd.js +0 -271
  322. package/angular/9/bundles/lightgallery-angular-9.umd.js.map +0 -1
  323. package/angular/9/bundles/lightgallery-angular-9.umd.min.js +0 -2
  324. package/angular/9/bundles/lightgallery-angular-9.umd.min.js.map +0 -1
  325. package/angular/9/esm2015/lib/lightgallery-angular.component.js +0 -225
  326. package/angular/9/esm2015/lib/lightgallery-angular.module.js +0 -17
  327. package/angular/9/esm2015/lib/lightgallery-angular.service.js +0 -14
  328. package/angular/9/esm2015/lightgallery-angular-9.js +0 -5
  329. package/angular/9/esm2015/public-api.js +0 -7
  330. package/angular/9/esm5/lib/lightgallery-angular.component.js +0 -228
  331. package/angular/9/esm5/lib/lightgallery-angular.module.js +0 -21
  332. package/angular/9/esm5/lib/lightgallery-angular.service.js +0 -17
  333. package/angular/9/esm5/lightgallery-angular-9.js +0 -5
  334. package/angular/9/esm5/public-api.js +0 -7
  335. package/angular/9/fesm2015/lightgallery-angular-9.js +0 -261
  336. package/angular/9/fesm2015/lightgallery-angular-9.js.map +0 -1
  337. package/angular/9/fesm5/lightgallery-angular-9.js +0 -268
  338. package/angular/9/fesm5/lightgallery-angular-9.js.map +0 -1
  339. package/angular/9/lib/lightgallery-angular.component.d.ts +0 -38
  340. package/angular/9/lib/lightgallery-angular.module.d.ts +0 -6
  341. package/angular/9/lib/lightgallery-angular.service.d.ts +0 -6
  342. package/angular/9/lightgallery-angular-9.d.ts +0 -5
  343. package/angular/9/package.json +0 -23
  344. package/angular/9/public-api.d.ts +0 -3
  345. package/angular/README.md +0 -24
  346. package/angular/esm2022/lib/lightgallery-angular.component.mjs +0 -218
  347. package/angular/esm2022/lib/lightgallery-angular.module.mjs +0 -18
  348. package/angular/esm2022/lib/lightgallery-angular.service.mjs +0 -15
  349. package/angular/esm2022/lightgallery-angular.mjs +0 -5
  350. package/angular/esm2022/public-api.mjs +0 -7
  351. package/angular/fesm2022/lightgallery-angular.mjs +0 -254
  352. package/angular/fesm2022/lightgallery-angular.mjs.map +0 -1
  353. package/angular/index.d.ts +0 -5
  354. package/angular/lib/lightgallery-angular.component.d.ts +0 -38
  355. package/angular/lib/lightgallery-angular.module.d.ts +0 -7
  356. package/angular/lib/lightgallery-angular.service.d.ts +0 -6
  357. package/angular/package.json +0 -25
  358. package/angular/public-api.d.ts +0 -3
  359. package/css/lg-fullscreen.css +0 -8
  360. package/css/lg-fullscreen.css.map +0 -1
  361. package/css/lg-share.css.map +0 -1
  362. package/css/lg-thumbnail.css.map +0 -1
  363. package/css/lg-transitions.css.map +0 -1
  364. package/css/lg-zoom.css.map +0 -1
  365. package/css/lightgallery-bundle.css.map +0 -1
  366. package/css/lightgallery-bundle.min.css +0 -1
  367. package/css/lightgallery-core.css.map +0 -1
  368. package/css/lightgallery.css.map +0 -1
  369. package/fonts/lg.svg +0 -54
  370. package/fonts/lg.ttf +0 -0
  371. package/fonts/lg.woff +0 -0
  372. package/fonts/lg.woff2 +0 -0
  373. package/lib/index.js +0 -8
  374. package/lib/index.js.map +0 -1
  375. package/lib/lg-events.js +0 -37
  376. package/lib/lg-events.js.map +0 -1
  377. package/lib/lg-plugin.js +0 -13
  378. package/lib/lg-plugin.js.map +0 -1
  379. package/lib/lg-settings.js +0 -83
  380. package/lib/lg-settings.js.map +0 -1
  381. package/lib/lg-utils.js +0 -328
  382. package/lib/lg-utils.js.map +0 -1
  383. package/lib/lgQuery.js +0 -385
  384. package/lib/lgQuery.js.map +0 -1
  385. package/lib/lightgallery.js +0 -1949
  386. package/lib/lightgallery.js.map +0 -1
  387. package/lib/plugins/autoplay/lg-autoplay-settings.js +0 -16
  388. package/lib/plugins/autoplay/lg-autoplay-settings.js.map +0 -1
  389. package/lib/plugins/autoplay/lg-autoplay.js +0 -184
  390. package/lib/plugins/autoplay/lg-autoplay.js.map +0 -1
  391. package/lib/plugins/comment/lg-comment-settings.js +0 -17
  392. package/lib/plugins/comment/lg-comment-settings.js.map +0 -1
  393. package/lib/plugins/comment/lg-comment.js +0 -140
  394. package/lib/plugins/comment/lg-comment.js.map +0 -1
  395. package/lib/plugins/fullscreen/lg-fullscreen-settings.js +0 -10
  396. package/lib/plugins/fullscreen/lg-fullscreen-settings.js.map +0 -1
  397. package/lib/plugins/fullscreen/lg-fullscreen.js +0 -108
  398. package/lib/plugins/fullscreen/lg-fullscreen.js.map +0 -1
  399. package/lib/plugins/hash/lg-hash-settings.js +0 -9
  400. package/lib/plugins/hash/lg-hash-settings.js.map +0 -1
  401. package/lib/plugins/hash/lg-hash.js +0 -139
  402. package/lib/plugins/hash/lg-hash.js.map +0 -1
  403. package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js +0 -9
  404. package/lib/plugins/mediumZoom/lg-medium-zoom-settings.js.map +0 -1
  405. package/lib/plugins/mediumZoom/lg-medium-zoom.js +0 -73
  406. package/lib/plugins/mediumZoom/lg-medium-zoom.js.map +0 -1
  407. package/lib/plugins/pager/lg-pager-settings.js +0 -7
  408. package/lib/plugins/pager/lg-pager-settings.js.map +0 -1
  409. package/lib/plugins/pager/lg-pager.js +0 -82
  410. package/lib/plugins/pager/lg-pager.js.map +0 -1
  411. package/lib/plugins/relativeCaption/lg-relative-caption-settings.js +0 -7
  412. package/lib/plugins/relativeCaption/lg-relative-caption-settings.js.map +0 -1
  413. package/lib/plugins/relativeCaption/lg-relative-caption.js +0 -97
  414. package/lib/plugins/relativeCaption/lg-relative-caption.js.map +0 -1
  415. package/lib/plugins/rotate/lg-rotate-settings.js +0 -18
  416. package/lib/plugins/rotate/lg-rotate-settings.js.map +0 -1
  417. package/lib/plugins/rotate/lg-rotate.js +0 -206
  418. package/lib/plugins/rotate/lg-rotate.js.map +0 -1
  419. package/lib/plugins/share/lg-fb-share-utils.js +0 -10
  420. package/lib/plugins/share/lg-fb-share-utils.js.map +0 -1
  421. package/lib/plugins/share/lg-pinterest-share-utils.js +0 -17
  422. package/lib/plugins/share/lg-pinterest-share-utils.js.map +0 -1
  423. package/lib/plugins/share/lg-share-settings.js +0 -15
  424. package/lib/plugins/share/lg-share-settings.js.map +0 -1
  425. package/lib/plugins/share/lg-share.js +0 -130
  426. package/lib/plugins/share/lg-share.js.map +0 -1
  427. package/lib/plugins/share/lg-twitter-share-utils.js +0 -11
  428. package/lib/plugins/share/lg-twitter-share-utils.js.map +0 -1
  429. package/lib/plugins/share/types.js +0 -3
  430. package/lib/plugins/share/types.js.map +0 -1
  431. package/lib/plugins/thumbnail/lg-thumbnail-settings.js +0 -23
  432. package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +0 -1
  433. package/lib/plugins/thumbnail/lg-thumbnail.js +0 -414
  434. package/lib/plugins/thumbnail/lg-thumbnail.js.map +0 -1
  435. package/lib/plugins/video/lg-video-settings.js +0 -15
  436. package/lib/plugins/video/lg-video-settings.js.map +0 -1
  437. package/lib/plugins/video/lg-video-utils.js +0 -84
  438. package/lib/plugins/video/lg-video-utils.js.map +0 -1
  439. package/lib/plugins/video/lg-video.js +0 -411
  440. package/lib/plugins/video/lg-video.js.map +0 -1
  441. package/lib/plugins/video/types.js +0 -3
  442. package/lib/plugins/video/types.js.map +0 -1
  443. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js +0 -8
  444. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail-settings.js.map +0 -1
  445. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js +0 -122
  446. package/lib/plugins/vimeoThumbnail/lg-vimeo-thumbnail.js.map +0 -1
  447. package/lib/plugins/zoom/lg-zoom-settings.js +0 -21
  448. package/lib/plugins/zoom/lg-zoom-settings.js.map +0 -1
  449. package/lib/plugins/zoom/lg-zoom.js +0 -909
  450. package/lib/plugins/zoom/lg-zoom.js.map +0 -1
  451. package/lib/types.js +0 -3
  452. package/lib/types.js.map +0 -1
  453. package/lightgallery-2.9.0.tgz +0 -0
  454. package/lightgallery.es5.js +0 -2786
  455. package/lightgallery.es5.js.map +0 -1
  456. package/lightgallery.min.js +0 -8
  457. package/lightgallery.umd.js +0 -2794
  458. package/lightgallery.umd.js.map +0 -1
  459. package/lit/custom-elements.json +0 -82
  460. package/lit/lightgallery.esm.js +0 -59
  461. package/lit/lightgallery.umd.js +0 -37
  462. package/lit/package.json +0 -8
  463. package/plugins/autoplay/lg-autoplay.es5.js +0 -250
  464. package/plugins/autoplay/lg-autoplay.es5.js.map +0 -1
  465. package/plugins/autoplay/lg-autoplay.min.js +0 -8
  466. package/plugins/autoplay/lg-autoplay.umd.js +0 -258
  467. package/plugins/autoplay/lg-autoplay.umd.js.map +0 -1
  468. package/plugins/autoplay/package.json +0 -7
  469. package/plugins/comment/lg-comment.es5.js +0 -205
  470. package/plugins/comment/lg-comment.es5.js.map +0 -1
  471. package/plugins/comment/lg-comment.min.js +0 -8
  472. package/plugins/comment/lg-comment.umd.js +0 -213
  473. package/plugins/comment/lg-comment.umd.js.map +0 -1
  474. package/plugins/comment/package.json +0 -7
  475. package/plugins/fullscreen/lg-fullscreen.es5.js +0 -135
  476. package/plugins/fullscreen/lg-fullscreen.es5.js.map +0 -1
  477. package/plugins/fullscreen/lg-fullscreen.min.js +0 -8
  478. package/plugins/fullscreen/lg-fullscreen.umd.js +0 -143
  479. package/plugins/fullscreen/lg-fullscreen.umd.js.map +0 -1
  480. package/plugins/fullscreen/package.json +0 -7
  481. package/plugins/hash/lg-hash-settings.d.ts +0 -16
  482. package/plugins/hash/lg-hash.es5.js +0 -198
  483. package/plugins/hash/lg-hash.es5.js.map +0 -1
  484. package/plugins/hash/lg-hash.min.js +0 -8
  485. package/plugins/hash/lg-hash.umd.js +0 -206
  486. package/plugins/hash/lg-hash.umd.js.map +0 -1
  487. package/plugins/hash/package.json +0 -7
  488. package/plugins/mediumZoom/lg-medium-zoom.es5.js +0 -132
  489. package/plugins/mediumZoom/lg-medium-zoom.es5.js.map +0 -1
  490. package/plugins/mediumZoom/lg-medium-zoom.min.js +0 -8
  491. package/plugins/mediumZoom/lg-medium-zoom.umd.js +0 -140
  492. package/plugins/mediumZoom/lg-medium-zoom.umd.js.map +0 -1
  493. package/plugins/mediumZoom/package.json +0 -7
  494. package/plugins/pager/lg-pager.es5.js +0 -139
  495. package/plugins/pager/lg-pager.es5.js.map +0 -1
  496. package/plugins/pager/lg-pager.min.js +0 -8
  497. package/plugins/pager/lg-pager.umd.js +0 -147
  498. package/plugins/pager/lg-pager.umd.js.map +0 -1
  499. package/plugins/pager/package.json +0 -7
  500. package/plugins/relativeCaption/lg-relative-caption.es5.js +0 -154
  501. package/plugins/relativeCaption/lg-relative-caption.es5.js.map +0 -1
  502. package/plugins/relativeCaption/lg-relative-caption.min.js +0 -8
  503. package/plugins/relativeCaption/lg-relative-caption.umd.js +0 -162
  504. package/plugins/relativeCaption/lg-relative-caption.umd.js.map +0 -1
  505. package/plugins/relativeCaption/package.json +0 -7
  506. package/plugins/rotate/lg-rotate.es5.js +0 -274
  507. package/plugins/rotate/lg-rotate.es5.js.map +0 -1
  508. package/plugins/rotate/lg-rotate.min.js +0 -8
  509. package/plugins/rotate/lg-rotate.umd.js +0 -282
  510. package/plugins/rotate/lg-rotate.umd.js.map +0 -1
  511. package/plugins/rotate/package.json +0 -7
  512. package/plugins/share/lg-share.d.ts +0 -15
  513. package/plugins/share/lg-share.es5.js +0 -219
  514. package/plugins/share/lg-share.es5.js.map +0 -1
  515. package/plugins/share/lg-share.min.js +0 -8
  516. package/plugins/share/lg-share.umd.js +0 -227
  517. package/plugins/share/lg-share.umd.js.map +0 -1
  518. package/plugins/share/lg-twitter-share-utils.d.ts +0 -2
  519. package/plugins/share/package.json +0 -7
  520. package/plugins/thumbnail/lg-thumbnail.d.ts +0 -48
  521. package/plugins/thumbnail/lg-thumbnail.es5.js +0 -487
  522. package/plugins/thumbnail/lg-thumbnail.es5.js.map +0 -1
  523. package/plugins/thumbnail/lg-thumbnail.min.js +0 -8
  524. package/plugins/thumbnail/lg-thumbnail.umd.js +0 -495
  525. package/plugins/thumbnail/lg-thumbnail.umd.js.map +0 -1
  526. package/plugins/thumbnail/package.json +0 -7
  527. package/plugins/video/lg-video-utils.d.ts +0 -10
  528. package/plugins/video/lg-video.es5.js +0 -545
  529. package/plugins/video/lg-video.es5.js.map +0 -1
  530. package/plugins/video/lg-video.min.js +0 -8
  531. package/plugins/video/lg-video.umd.js +0 -553
  532. package/plugins/video/lg-video.umd.js.map +0 -1
  533. package/plugins/video/package.json +0 -7
  534. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +0 -182
  535. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js.map +0 -1
  536. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +0 -8
  537. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +0 -190
  538. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js.map +0 -1
  539. package/plugins/vimeoThumbnail/package.json +0 -7
  540. package/plugins/zoom/lg-zoom.es5.js +0 -980
  541. package/plugins/zoom/lg-zoom.es5.js.map +0 -1
  542. package/plugins/zoom/lg-zoom.min.js +0 -8
  543. package/plugins/zoom/lg-zoom.umd.js +0 -988
  544. package/plugins/zoom/lg-zoom.umd.js.map +0 -1
  545. package/plugins/zoom/package.json +0 -7
  546. package/react/Lightgallery.d.ts +0 -33
  547. package/react/Lightgallery.es5.js +0 -2988
  548. package/react/Lightgallery.es5.js.map +0 -1
  549. package/react/Lightgallery.umd.js +0 -2994
  550. package/react/Lightgallery.umd.js.map +0 -1
  551. package/react/package.json +0 -7
  552. package/scss/_lg-fonts.scss +0 -27
  553. package/scss/lg-fullscreen.scss +0 -9
  554. package/vue/LightGallery.vue.d.ts +0 -37
  555. package/vue/LightGalleryVue.common.js +0 -9343
  556. package/vue/LightGalleryVue.common.js.map +0 -1
  557. package/vue/LightGalleryVue.umd.js +0 -9353
  558. package/vue/LightGalleryVue.umd.js.map +0 -1
  559. package/vue/LightGalleryVue.umd.min.js +0 -8
  560. package/vue/LightGalleryVue.umd.min.js.map +0 -1
  561. package/vue/package.json +0 -7
  562. /package/{css → dist/css}/lg-medium-zoom.css +0 -0
  563. /package/{css → dist/css}/lg-medium-zoom.css.map +0 -0
  564. /package/{css → dist/css}/lg-pager.css +0 -0
  565. /package/{css → dist/css}/lg-relative-caption.css +0 -0
  566. /package/{css → dist/css}/lg-relative-caption.css.map +0 -0
  567. /package/{css → dist/css}/lg-video.css +0 -0
  568. /package/{css → dist/css}/lg-video.css.map +0 -0
  569. /package/{images → dist/images}/loading.gif +0 -0
  570. /package/{scss → dist/scss}/_lg-mixins.scss +0 -0
  571. /package/{scss → dist/scss}/lg-medium-zoom.scss +0 -0
  572. /package/{scss → dist/scss}/lg-pager.scss +0 -0
  573. /package/{scss → dist/scss}/lg-relative-caption.scss +0 -0
  574. /package/{scss → dist/scss}/lg-transitions.scss +0 -0
  575. /package/{scss → dist/scss}/lg-video.scss +0 -0
  576. /package/{scss → dist/scss}/transitions/_index.scss +0 -0
  577. /package/{scss → dist/scss}/transitions/_lg-lollipop-rev.scss +0 -0
  578. /package/{scss → dist/scss}/transitions/_lg-lollipop.scss +0 -0
  579. /package/{scss → dist/scss}/transitions/_lg-rotate-rev.scss +0 -0
  580. /package/{scss → dist/scss}/transitions/_lg-rotate.scss +0 -0
  581. /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross-rev.scss +0 -0
  582. /package/{scss → dist/scss}/transitions/_lg-slide-skew-cross.scss +0 -0
  583. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-rev.scss +0 -0
  584. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y-rev.scss +0 -0
  585. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only-y.scss +0 -0
  586. /package/{scss → dist/scss}/transitions/_lg-slide-skew-only.scss +0 -0
  587. /package/{scss → dist/scss}/transitions/_lg-slide-skew-rev.scss +0 -0
  588. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross-rev.scss +0 -0
  589. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-cross.scss +0 -0
  590. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver-rev.scss +0 -0
  591. /package/{scss → dist/scss}/transitions/_lg-slide-skew-ver.scss +0 -0
  592. /package/{scss → dist/scss}/transitions/_lg-slide-skew.scss +0 -0
  593. /package/{scss → dist/scss}/transitions/_lg-slide-vertical-growth.scss +0 -0
  594. /package/{scss → dist/scss}/transitions/_lg-slide-vertical.scss +0 -0
  595. /package/{scss → dist/scss}/transitions/_lg-tube.scss +0 -0
@@ -1,425 +1,555 @@
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 '@lightgallery/headless';
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
+ * Support legacy browsers
185
+ * @description Currently this is used only for adding support to srcset attribute via picturefill library
186
+ * If true lightGallery will show warning message to include picturefill library
187
+ */
188
+ supportLegacyBrowser: boolean;
189
+ /**
190
+ * If true, toolbar, captions and thumbnails will not overlap with media element
191
+ * This will not effect thumbnails if animateThumb is false
192
+ * Also, toggle thumbnails button is not displayed if allowMediaOverlap is false
193
+ * <section>
194
+ * Note - Changing the position of the media on every slide transition creates a flickering effect.
195
+ * Therefore, the height of the caption is calculated dynamically, only once based on the first slide caption.
196
+ * </section>
197
+ * <section>
198
+ * if you have dynamic captions for each media,
199
+ * you can provide an appropriate height for the captions via allowMediaOverlap option
200
+ * </section>
201
+ */
202
+ allowMediaOverlap: boolean;
203
+ /**
204
+ * Video max size.
205
+ * @description This can be over-written by passing specific size via data-lg-size attribute
206
+ * Recommended video resolution and & aspect ratios <a href="https://support.google.com/youtube/answer/6375112">https://support.google.com/youtube/answer/6375112</a>
207
+ */
208
+ videoMaxSize: string;
209
+ /**
210
+ * Automatically load poster image for YouTube videos
211
+ */
212
+ loadYouTubePoster: boolean;
213
+ /**
214
+ * Height of the caption for calculating allowMediaOverlap positions
215
+ * Note - this is only used to find the position of media item if allowMediaOverlap is true.
216
+ * Not for setting height of the captions
217
+ * Set 0 if you want to calculate the height of captions dynamically
218
+ */
219
+ defaultCaptionHeight: number;
220
+ /**
221
+ * aria-labelledby attribute fot gallery
222
+ */
223
+ ariaLabelledby: string;
224
+ /**
225
+ * aria-describedby attribute for gallery
226
+ */
227
+ ariaDescribedby: string;
228
+ /**
229
+ * Large-gallery virtualization. Off when undefined, the classic
230
+ * behavior: every thumbnail renders and the mounted-slide window is
231
+ * numberOfSlideItemsInDom.
232
+ * @description slides overrides the mounted-slide pool size; thumbs
233
+ * turns on thumbnail-strip windowing (only the visible thumbs plus an
234
+ * overscan render, with spacers preserving the strip geometry), a
235
+ * number is the overscan thumb count per side, 'auto' derives one
236
+ * extra viewport per side. The window advances at commit points
237
+ * (release, slide change, resize), never per pointer move.
238
+ * See <a href="/docs/virtualization/">Virtualization</a>.
239
+ * @version V3.0.0
240
+ */
241
+ virtualization?: VirtualizationSettings;
242
+ /**
243
+ * Announce slide changes to assistive technology through a dedicated
244
+ * polite live region (strings.slideAnnouncement + the slide caption).
245
+ * @description While enabled, the counter and caption bar are not
246
+ * separate live regions, the announcer is the single source of
247
+ * slide-change announcements. Set to false to restore the previous
248
+ * behavior (live counter and caption, no announcer).
249
+ * See <a href="/docs/accessibility/">Accessibility</a>.
250
+ * @version V3.0.0
251
+ */
252
+ ariaAnnouncements: boolean;
253
+ /**
254
+ * Hide scrollbar when gallery is opened
255
+ * @version V2.5.0
256
+ */
257
+ hideScrollbar: boolean;
258
+ /**
259
+ * Reset to previous scrollPosition when lightGallery is closed
260
+ * @description By default, lightGallery doesn't hide the scrollbar for a smooth opening transition.
261
+ * If a user changes the scroll position, lightGallery resets it to the previous value
262
+ * @version V2.5.0
263
+ */
264
+ resetScrollPosition: boolean;
265
+ /**
266
+ * If false user won't be able to close the gallery at all
267
+ * This is useful for creating inline galleries.
268
+ */
269
+ closable: boolean;
270
+ /**
271
+ * allows vertical drag/swipe to close gallery
272
+ * <code>false</code> if option <code>closable</code> is <code>false</code>
273
+ */
274
+ swipeToClose: boolean;
275
+ /**
276
+ * allows clicks on black area to close gallery.
277
+ */
278
+ closeOnTap: boolean;
279
+ /**
280
+ * If false, close button won't be displayed.
281
+ * Useful for creating inline galleries.
282
+ */
283
+ showCloseIcon: boolean;
284
+ /**
285
+ * Show maximize icon.
286
+ * Useful for creating inline galleries.
287
+ */
288
+ showMaximizeIcon: boolean;
289
+ /**
290
+ * Keep the toolbar on one row.
291
+ * @description When the toolbar buttons do not fit beside the counter,
292
+ * the lowest-priority ones move into a "More options" menu. Set to
293
+ * false to let the buttons wrap onto a second row instead.
294
+ * See <a href="/docs/settings/#toolbarOverflow">toolbarOverflow</a>.
295
+ * @version V3.0.0
296
+ */
297
+ toolbarOverflow: boolean;
298
+ /**
299
+ * Show the toolbar buttons that repeat a touch gesture.
300
+ * @description Zoom in, zoom out and actual size do what pinch and
301
+ * double-tap already do. On by default, and turned off on touch
302
+ * devices through mobileSettings.
303
+ * See <a href="/docs/settings/#showGestureButtons">showGestureButtons</a>.
304
+ * @version V3.0.0
305
+ */
306
+ showGestureButtons: boolean;
307
+ /**
308
+ * If false, will disable the ability to loop back to the beginning of the gallery from the last slide.
309
+ */
310
+ loop: boolean;
311
+ /**
312
+ * Whether the LightGallery could be closed by pressing the "Esc" key.
313
+ */
314
+ escKey: boolean;
315
+ /**
316
+ * Enable keyboard navigation
317
+ */
318
+ keyPress: boolean;
319
+ /**
320
+ * Trap focus within the lightGallery
321
+ * @version V2.5.0
322
+ */
323
+ trapFocus: boolean;
324
+ /**
325
+ * If false, prev/next buttons will not be displayed.
326
+ */
327
+ controls: boolean;
328
+ /**
329
+ * Enable slideEnd animation
330
+ */
331
+ slideEndAnimation: boolean;
332
+ /**
333
+ * If true, prev/next button will be hidden on first/last image.
334
+ * @description Note - this option will be ignored if <code>loop</code> or <code>slideEndAnimation</code> is set to true
335
+ */
336
+ hideControlOnEnd: boolean;
337
+ /**
338
+ * ability to navigate to next/prev slides on mousewheel
339
+ */
340
+ mousewheel: boolean;
341
+ /**
342
+ * Gallery reading direction: keyboard arrows, swipe advance and the
343
+ * slide/thumbnail transforms follow it. Visual mirroring is the
344
+ * opt-in lg-rtl.css layer - load it whenever this resolves to 'rtl'.
345
+ * 'auto' inherits the computed direction of the gallery element;
346
+ * the default stays 'ltr' so upgrades never change behavior on
347
+ * existing pages.
348
+ * See <a href="/docs/localization-rtl/">Localization &amp; RTL</a>.
349
+ * @version V3.0.0
350
+ */
351
+ direction: 'ltr' | 'rtl' | 'auto';
352
+ /**
353
+ * Option to get captions from alt or title tags.
354
+ */
355
+ getCaptionFromTitleOrAlt: boolean;
356
+ /**
357
+ * control where the sub-html should be appended.
358
+ * If you choose '.lg-outer', you are responsible for placing the div at the right position.
359
+ * '.lg-outer' is useful if you want show custom HTML outside the normal gallery
360
+ */
361
+ appendSubHtmlTo: '.lg-sub-html' | '.lg-item' | '.lg-outer';
362
+ /**
363
+ * Set to true if the selector in "data-sub-html" should use the current item as its origin.
364
+ */
365
+ subHtmlSelectorRelative: boolean;
366
+ /**
367
+ * number of preload slides
368
+ * @description will exicute only after the current slide is fully loaded.
369
+ * for example, if you click on 4th image and if preload = 1 then 3rd slide and 5th
370
+ * slide will be loaded in the background after the 4th slide is fully loaded..
371
+ * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.
372
+ */
373
+ preload: number;
374
+ /**
375
+ * Control how many slide items should be kept in dom at a time
376
+ * @description To improve performance by reducing number of gallery items in the dom,
377
+ * lightGallery keeps only the lowest possible number of slides in the dom at a time.
378
+ * This has a minimum value of 3
379
+ */
380
+ numberOfSlideItemsInDom: number;
381
+ /**
382
+ * Custom selector property instead of direct children.
383
+ * @description Based on your markup structure, you can specify custom selectors to fetch media data for the gallery
384
+ * Pass "this" to select same element
385
+ * You can also pass HTMLCollection directly
386
+ * Example - '.my-selector' | '#my-selector' | this | document.querySelectorAll('.my-selector')
387
+ */
388
+ selector: string | HTMLCollection[];
389
+ /**
390
+ * By default selector element relative to the current gallery.
391
+ * Instead of that you can tell lightGallery to select element relative to another element.
392
+ * Example - '.my-selector-container' | '#my-selector-container'
393
+ * In the code this become selector = document.querySelector(this.s.selectWithin ).querySelectorAll(this.s.selector);
394
+ */
395
+ selectWithin: string;
396
+ /**
397
+ * Custom html for next control
398
+ */
399
+ nextHtml: string;
400
+ /**
401
+ * Custom html for prev control
402
+ */
403
+ prevHtml: string;
404
+ /**
405
+ * specify which slide should load initially
406
+ */
407
+ index: number;
408
+ /**
409
+ * Set width for iframe.
410
+ */
411
+ iframeWidth: string;
412
+ /**
413
+ * Set height for iframe.
414
+ */
415
+ iframeHeight: string;
416
+ /**
417
+ * Set max width for iframe.
418
+ */
419
+ iframeMaxWidth: string;
420
+ /**
421
+ * Set max height for iframe.
422
+ */
423
+ iframeMaxHeight: string;
424
+ /**
425
+ * Enable download button.
426
+ * @description By default download url will be taken from data-src/href attribute but it supports only for modern browsers.
427
+ * If you want you can provide another url for download via data-download-url.
428
+ * pass false in data-download-url if you want to hide download button for the particular slide.
429
+ */
430
+ download: boolean;
431
+ /**
432
+ * Whether to show total number of images and index number of currently displayed image.
433
+ */
434
+ counter: boolean;
435
+ /**
436
+ * Where the counter should be appended
437
+ */
438
+ appendCounterTo: string;
439
+ /**
440
+ * By setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev image.
441
+ */
442
+ swipeThreshold: number;
443
+ /**
444
+ * Release velocity (px/ms, measured over the gesture's final ~100ms)
445
+ * at which a short swipe still changes slides, a flick.
446
+ * @version V3.0.0
447
+ */
448
+ flickVelocity: number;
449
+ /**
450
+ * Pinching down on an un-zoomed image and releasing closes the
451
+ * gallery (iOS Photos). Guarded: a pinch that went past fit zoom at
452
+ * any point is a zoom correction and never closes. Requires
453
+ * `closable` and the zoom plugin.
454
+ * @version V3.0.0
455
+ */
456
+ pinchToClose: boolean;
457
+ /**
458
+ * Enables swipe support for touch devices
459
+ */
460
+ enableSwipe: boolean;
461
+ /**
462
+ * Enables desktop mouse drag support
463
+ */
464
+ enableDrag: boolean;
465
+ /**
466
+ * LightGallery can be instantiated and launched programmatically by setting this option to true and populating dynamicEl option (see below) with the definitions of images.
467
+ */
468
+ dynamic: boolean;
469
+ /**
470
+ * An array of objects (src, iframe, subHtml, thumb, poster, responsive, srcset sizes) representing gallery elements.
471
+ */
472
+ dynamicEl: GalleryItem[];
473
+ /**
474
+ * Fetch custom properties from the selector
475
+ * @description this is useful for plugin development
476
+ * By default lightGallery fetches and store all the props selectors to
477
+ * reduce frequent dom interaction for fetching props every time.
478
+ *
479
+ * If you need any addition data to be fetched and stored in the galleryItems variable,
480
+ * you can do this just by passing the prop names via extraProps
481
+ * @example
482
+ * HTML:
483
+ * <div id="lightGallery">
484
+ * <a href="a.jpg" data-custom-prop="abc"><img src="thumb.jpg" /></a>
485
+ * <a href="a.jpg" data-custom-prop="xyz"><img src="thumb.jpg" /></a>
486
+ * </div>
487
+ * JS:
488
+ * lightGallery(document.getElementById('lightGallery'), {
489
+ * extraProps: ['customProp']
490
+ * })
491
+ * // Note - If you are using dynamic mode, you can pass any custom prop in the galleryItem
492
+ * lightGallery(document.getElementById('lightGallery'), {
493
+ * dynamic: true,
494
+ * dynamicEl: [{
495
+ * src: 'img/img1.jpg',
496
+ * customProp:'abc',
497
+ * }]
498
+ * })
499
+ *
500
+ */
501
+ extraProps: string[];
502
+ /**
503
+ * Option to fetch different thumbnail image other than first image
504
+ * @description If you want to use external image for thumbnail,
505
+ * add the path of that image inside "data-" attribute
506
+ * and set value of this option to the name of your custom attribute.
507
+ *
508
+ * @example
509
+ * <div id="lightGallery">
510
+ * <a href="a.jpg" data-external-thumb-image="images/externalThumb.jpg" ><img src="thumb.jpg" /></a>
511
+ * </div>
512
+ *
513
+ * lightGallery(document.getElementById('lightGallery'), {
514
+ * exThumbImage: 'data-external-thumb-image'
515
+ * })
516
+ */
517
+ exThumbImage: string;
518
+ /**
519
+ * Function to detect mobile devices
520
+ */
521
+ isMobile?: () => boolean;
522
+ /**
523
+ * Separate settings for mobile devices
524
+ * @description Note - this is applied only at the time of loading
525
+ * by default controls and close buttons are disabled on mobile devices.
526
+ * use this options if you want to enable them or change any other settings for mobile devices
527
+ * Note - mobileSettings does not merge default values, You need to provide all mobileSettings including default values
528
+ */
529
+ mobileSettings: Partial<MobileSettings>;
530
+ /**
531
+ * Customize string.
532
+ * @description This can be useful if you want to localize the lightGallery strings to other languages.
533
+ * Use your own service to translate the strings and pass it via settings.strings
534
+ * Every core and plugin label lives here; the per-plugin `*PluginStrings` objects are deprecated.
535
+ * Strings merge per-key over the defaults, override only the keys
536
+ * you need (the old provide-everything requirement is gone).
537
+ * See <a href="/docs/localization-rtl/">Localization &amp; RTL</a>.
538
+ */
539
+ strings: LightGalleryCoreStrings;
540
+ /**
541
+ * Custom icons: SVG markup per icon name, rendered instead of the
542
+ * built-in SVG icon set, bring your own icons without touching CSS.
543
+ * @description Omitted names keep the built-in icon. State-pair
544
+ * buttons (`maximize`/`minimize`, `autoplayPlay`/`autoplayPause`,
545
+ * `fullscreen`/`fullscreenExit`) need both names provided; a
546
+ * half-provided pair keeps the built-in pair. Size and color follow
547
+ * the button (`1em`/`currentColor`-friendly SVGs recommended).
548
+ * See <a href="/docs/custom-icons/">Custom icons</a>.
549
+ * @version V3.0.0
550
+ */
551
+ icons: LgIcons;
552
+ plugins: (new (instance: LightGallery, $LG: LgQuery) => any)[];
553
+ }
554
+ export declare const lightGalleryCoreSettings: LightGalleryCoreSettings;
555
+ export {};