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
@@ -3,6 +3,12 @@
3
3
  .lg-css3 {
4
4
  &.lg-zoom-out {
5
5
  .lg-item {
6
+ // The crossfade IS the effect here, so it runs for the
7
+ // whole slide instead of the short default swap. Declared on
8
+ // the item: --lg-speed is published on .lg-inner, so only its
9
+ // descendants can resolve it.
10
+ --lg-opacity-speed: var(--lg-speed, 400ms);
11
+
6
12
  opacity: 0;
7
13
 
8
14
  &.lg-prev-slide {
@@ -1,4 +1,8 @@
1
- import { LightGallerySettings } from './lg-settings';
2
- import { LightGallery } from './lightgallery';
3
- declare function lightGallery(el: HTMLElement, options?: LightGallerySettings): LightGallery;
4
- export default lightGallery;
1
+ import { LightGallerySettings } from './lg-settings';
2
+ import { LightGallery } from './lightgallery';
3
+ declare function lightGallery(el: HTMLElement, options?: LightGallerySettings): LightGallery;
4
+ declare namespace lightGallery {
5
+ var setLicenseKey: typeof import("@lightgallery/headless").setLicenseKey;
6
+ }
7
+ export default lightGallery;
8
+ export type { LgIconName, LgIcons } from './lg-icons';
@@ -1,300 +1,300 @@
1
- import { LightGallery } from './lightgallery';
2
- import { VideoSource } from './plugins/video/types';
3
- /**
4
- * List of lightGallery events
5
- * All events should be documented here
6
- * Below interfaces are used to build the website documentations
7
- * */
8
- export declare const lGEvents: {
9
- [key: string]: string;
10
- };
11
- /**
12
- * Fired only once when lightGallery is initialized
13
- * @name lgInit
14
- * @method onInit
15
- * @example
16
- * const lg = document.getElementById('custom-events-demo');
17
- * // Perform any action on lightGallery initialization.
18
- * // Init event returns the plugin instance that can be used to call any lightGalley public method
19
- * let pluginInstance = null;
20
- * lg.addEventListener('lgInit', (event) => {
21
- * pluginInstance = event.detail.instance;
22
- * });
23
- * lightGallery(lg);
24
- * @see <a href="/docs/methods">Methods<a>
25
- */
26
- export interface InitDetail {
27
- /**
28
- * lightGallery plugin instance
29
- */
30
- instance: LightGallery;
31
- }
32
- /**
33
- * Fired when the slide content has been inserted into it's slide container.
34
- * @name lgAfterAppendSlide
35
- * @method onAfterAppendSlide
36
- */
37
- export interface AfterAppendSlideEventDetail {
38
- /**
39
- * Index of the slide
40
- */
41
- index: number;
42
- }
43
- /**
44
- * Fired immediately before opening the gallery
45
- * @name lgBeforeOpen
46
- * @method onBeforeOpen
47
- */
48
- export interface BeforeOpenDetail {
49
- }
50
- /**
51
- * Fired immediately after opening the gallery
52
- * @name lgAfterOpen
53
- * @method onAfterOpen
54
- */
55
- export interface AfterOpenDetail {
56
- }
57
- /**
58
- * Fired once the media inside the slide has been completely loaded .
59
- * @name lgSlideItemLoad
60
- * @method onSlideItemLoad
61
- */
62
- export interface SlideItemLoadDetail {
63
- /**
64
- * Index of the slide
65
- */
66
- index: number;
67
- /**
68
- * For the first slide, lightGallery adds some delay for displaying the loaded slide item.
69
- * This delay is required for the transition effect when the slide item is displayed
70
- * Respect the delay when you use this event
71
- */
72
- delay: number;
73
- isFirstSlide: boolean;
74
- }
75
- /**
76
- * Fired immediately before each slide transition.
77
- * @name lgBeforeSlide
78
- * @method onBeforeSlide
79
- * @example
80
- * const lg = document.getElementById('custom-events-demo');
81
- * // Perform any action before each slide transition
82
- * lg.addEventListener('lgBeforeSlide', (event) => {
83
- * const { index, prevIndex } = event.detail;
84
- * alert(index, prevIndex);
85
- * });
86
- * lightGallery(lg);
87
- */
88
- export interface BeforeSlideDetail {
89
- /**
90
- * Index of the previous slide
91
- */
92
- prevIndex: number;
93
- /**
94
- * Index of the slide
95
- */
96
- index: number;
97
- /**
98
- * true if slide function called via touch event or mouse drag
99
- */
100
- fromTouch: boolean;
101
- /**
102
- * true if slide function called via thumbnail click
103
- */
104
- fromThumb: boolean;
105
- }
106
- /**
107
- * Fired immediately after each slide transition.
108
- * @name lgAfterSlide
109
- * @method onAfterSlide
110
- */
111
- export interface AfterSlideDetail {
112
- /**
113
- * Index of the previous slide
114
- */
115
- prevIndex: number;
116
- /**
117
- * Index of the slide
118
- */
119
- index: number;
120
- /**
121
- * true if slide function called via touch event or mouse drag
122
- */
123
- fromTouch: boolean;
124
- /**
125
- * true if slide function called via thumbnail click
126
- */
127
- fromThumb: boolean;
128
- }
129
- /**
130
- * Fired when the video poster is clicked.
131
- * @name lgPosterClick
132
- * @method onPosterClick
133
- */
134
- export interface PosterClickDetail {
135
- }
136
- /**
137
- * Fired when the drag event to move to different slide starts.
138
- * @name lgDragStart
139
- * @method onDragStart
140
- */
141
- export interface DragStartDetail {
142
- }
143
- /**
144
- * Fired periodically during the drag operation.
145
- * @name lgDragMove
146
- * @method onDragMove
147
- */
148
- export interface DragMoveDetail {
149
- }
150
- /**
151
- * Fired when the user has finished the drag operation
152
- * @name lgDragEnd
153
- * @method onDragEnd
154
- */
155
- export interface DragEndDetail {
156
- }
157
- /**
158
- * Fired immediately before the start of the close process.
159
- * @name lgBeforeClose
160
- * @method onBeforeClose
161
- */
162
- export interface BeforeCloseDetail {
163
- }
164
- /**
165
- * Fired immediately once lightGallery is closed.
166
- * @name lgAfterClose
167
- * @method onAfterClose
168
- */
169
- export interface AfterCloseDetail {
170
- /**
171
- * lightGallery plugin instance
172
- */
173
- instance: LightGallery;
174
- }
175
- /**
176
- * Fired immediately before each "next" slide transition
177
- * @name lgBeforeNextSlide
178
- * @method onBeforeNextSlide
179
- */
180
- export interface BeforeNextSlideDetail {
181
- /**
182
- * Index of the slide
183
- */
184
- index: number;
185
- /**
186
- * true if slide function called via touch event or mouse drag
187
- */
188
- fromTouch: boolean;
189
- }
190
- /**
191
- * Fired immediately before each "prev" slide transition
192
- * @name lgBeforePrevSlide
193
- * @method onBeforePrevSlide
194
- */
195
- export interface BeforePrevSlideDetail {
196
- /**
197
- * Index of the slide
198
- */
199
- index: number;
200
- /**
201
- * true if slide function called via touch event or mouse drag
202
- */
203
- fromTouch: boolean;
204
- }
205
- /**
206
- * Fired when the sub-html content (ex : title/ description) has been appended into the slide.
207
- * @name lgAfterAppendSubHtml
208
- * @method onAfterAppendSubHtml
209
- */
210
- export interface AfterAppendSubHtmlDetail {
211
- /**
212
- * Index of the slide
213
- */
214
- index: number;
215
- }
216
- /**
217
- * Fired when the lightGallery container has been resized.
218
- * @name lgContainerResize
219
- * @method onContainerResize
220
- */
221
- export interface ContainerResizeDetail {
222
- /**
223
- * Index of the slide
224
- */
225
- index: number;
226
- }
227
- /**
228
- * Fired when lightGallery detects video slide
229
- * @name lgHasVideo
230
- * @method onHasVideo
231
- */
232
- export interface HasVideoDetail {
233
- /**
234
- * Index of the slide,
235
- */
236
- index: number;
237
- /**
238
- * Video source
239
- */
240
- src: string;
241
- /**
242
- * HTML5 video source if available
243
- * <p>
244
- HTML5 video source = source: {
245
- src: string;
246
- type: string;
247
- }[];
248
- attributes: HTMLVideoElement;
249
- * </p>
250
- */
251
- html5Video: VideoSource;
252
- /**
253
- * True if video has poster
254
- */
255
- hasPoster: boolean;
256
- }
257
- /**
258
- * Fired when the image is rotated in anticlockwise direction
259
- * @name lgRotateLeft
260
- * @method onRotateLeft
261
- */
262
- export interface RotateLeftDetail {
263
- /**
264
- * Index of the slide
265
- */
266
- index: number;
267
- }
268
- /**
269
- * Fired when the image is rotated in clockwise direction
270
- * @name lgRotateRight
271
- * @method onRotateRight
272
- */
273
- export interface RotateRightDetail {
274
- /**
275
- * Index of the slide
276
- */
277
- index: number;
278
- }
279
- /**
280
- * Fired when the image is flipped horizontally
281
- * @name lgFlipHorizontal
282
- * @method onFlipHorizontal
283
- */
284
- export interface FlipHorizontalDetail {
285
- /**
286
- * Index of the slide
287
- */
288
- index: number;
289
- }
290
- /**
291
- * Fired when the image is flipped vertically
292
- * @name lgFlipVertical
293
- * @method onFlipVertical
294
- */
295
- export interface FlipVerticalDetail {
296
- /**
297
- * Index of the slide
298
- */
299
- index: number;
300
- }
1
+ import { LightGallery } from './lightgallery';
2
+ import { VideoSource } from './plugins/video/types';
3
+ /**
4
+ * List of lightGallery events
5
+ * All events should be documented here
6
+ * Below interfaces are used to build the website documentations
7
+ * */
8
+ export declare const lGEvents: {
9
+ [key: string]: string;
10
+ };
11
+ /**
12
+ * Fired only once when lightGallery is initialized
13
+ * @name lgInit
14
+ * @method onInit
15
+ * @example
16
+ * const lg = document.getElementById('custom-events-demo');
17
+ * // Perform any action on lightGallery initialization.
18
+ * // Init event returns the plugin instance that can be used to call any lightGalley public method
19
+ * let pluginInstance = null;
20
+ * lg.addEventListener('lgInit', (event) => {
21
+ * pluginInstance = event.detail.instance;
22
+ * });
23
+ * lightGallery(lg);
24
+ * @see <a href="/docs/methods/">Methods</a>
25
+ */
26
+ export interface InitDetail {
27
+ /**
28
+ * lightGallery plugin instance
29
+ */
30
+ instance: LightGallery;
31
+ }
32
+ /**
33
+ * Fired when the slide content has been inserted into it's slide container.
34
+ * @name lgAfterAppendSlide
35
+ * @method onAfterAppendSlide
36
+ */
37
+ export interface AfterAppendSlideEventDetail {
38
+ /**
39
+ * Index of the slide
40
+ */
41
+ index: number;
42
+ }
43
+ /**
44
+ * Fired immediately before opening the gallery
45
+ * @name lgBeforeOpen
46
+ * @method onBeforeOpen
47
+ */
48
+ export interface BeforeOpenDetail {
49
+ }
50
+ /**
51
+ * Fired immediately after opening the gallery
52
+ * @name lgAfterOpen
53
+ * @method onAfterOpen
54
+ */
55
+ export interface AfterOpenDetail {
56
+ }
57
+ /**
58
+ * Fired once the media inside the slide has been completely loaded .
59
+ * @name lgSlideItemLoad
60
+ * @method onSlideItemLoad
61
+ */
62
+ export interface SlideItemLoadDetail {
63
+ /**
64
+ * Index of the slide
65
+ */
66
+ index: number;
67
+ /**
68
+ * For the first slide, lightGallery adds some delay for displaying the loaded slide item.
69
+ * This delay is required for the transition effect when the slide item is displayed
70
+ * Respect the delay when you use this event
71
+ */
72
+ delay: number;
73
+ isFirstSlide: boolean;
74
+ }
75
+ /**
76
+ * Fired immediately before each slide transition.
77
+ * @name lgBeforeSlide
78
+ * @method onBeforeSlide
79
+ * @example
80
+ * const lg = document.getElementById('custom-events-demo');
81
+ * // Perform any action before each slide transition
82
+ * lg.addEventListener('lgBeforeSlide', (event) => {
83
+ * const { index, prevIndex } = event.detail;
84
+ * alert(index, prevIndex);
85
+ * });
86
+ * lightGallery(lg);
87
+ */
88
+ export interface BeforeSlideDetail {
89
+ /**
90
+ * Index of the previous slide
91
+ */
92
+ prevIndex: number;
93
+ /**
94
+ * Index of the slide
95
+ */
96
+ index: number;
97
+ /**
98
+ * true if slide function called via touch event or mouse drag
99
+ */
100
+ fromTouch: boolean;
101
+ /**
102
+ * true if slide function called via thumbnail click
103
+ */
104
+ fromThumb: boolean;
105
+ }
106
+ /**
107
+ * Fired immediately after each slide transition.
108
+ * @name lgAfterSlide
109
+ * @method onAfterSlide
110
+ */
111
+ export interface AfterSlideDetail {
112
+ /**
113
+ * Index of the previous slide
114
+ */
115
+ prevIndex: number;
116
+ /**
117
+ * Index of the slide
118
+ */
119
+ index: number;
120
+ /**
121
+ * true if slide function called via touch event or mouse drag
122
+ */
123
+ fromTouch: boolean;
124
+ /**
125
+ * true if slide function called via thumbnail click
126
+ */
127
+ fromThumb: boolean;
128
+ }
129
+ /**
130
+ * Fired when the video poster is clicked.
131
+ * @name lgPosterClick
132
+ * @method onPosterClick
133
+ */
134
+ export interface PosterClickDetail {
135
+ }
136
+ /**
137
+ * Fired when the drag event to move to different slide starts.
138
+ * @name lgDragStart
139
+ * @method onDragStart
140
+ */
141
+ export interface DragStartDetail {
142
+ }
143
+ /**
144
+ * Fired periodically during the drag operation.
145
+ * @name lgDragMove
146
+ * @method onDragMove
147
+ */
148
+ export interface DragMoveDetail {
149
+ }
150
+ /**
151
+ * Fired when the user has finished the drag operation
152
+ * @name lgDragEnd
153
+ * @method onDragEnd
154
+ */
155
+ export interface DragEndDetail {
156
+ }
157
+ /**
158
+ * Fired immediately before the start of the close process.
159
+ * @name lgBeforeClose
160
+ * @method onBeforeClose
161
+ */
162
+ export interface BeforeCloseDetail {
163
+ }
164
+ /**
165
+ * Fired immediately once lightGallery is closed.
166
+ * @name lgAfterClose
167
+ * @method onAfterClose
168
+ */
169
+ export interface AfterCloseDetail {
170
+ /**
171
+ * lightGallery plugin instance
172
+ */
173
+ instance: LightGallery;
174
+ }
175
+ /**
176
+ * Fired immediately before each "next" slide transition
177
+ * @name lgBeforeNextSlide
178
+ * @method onBeforeNextSlide
179
+ */
180
+ export interface BeforeNextSlideDetail {
181
+ /**
182
+ * Index of the slide
183
+ */
184
+ index: number;
185
+ /**
186
+ * true if slide function called via touch event or mouse drag
187
+ */
188
+ fromTouch: boolean;
189
+ }
190
+ /**
191
+ * Fired immediately before each "prev" slide transition
192
+ * @name lgBeforePrevSlide
193
+ * @method onBeforePrevSlide
194
+ */
195
+ export interface BeforePrevSlideDetail {
196
+ /**
197
+ * Index of the slide
198
+ */
199
+ index: number;
200
+ /**
201
+ * true if slide function called via touch event or mouse drag
202
+ */
203
+ fromTouch: boolean;
204
+ }
205
+ /**
206
+ * Fired when the sub-html content (ex : title/ description) has been appended into the slide.
207
+ * @name lgAfterAppendSubHtml
208
+ * @method onAfterAppendSubHtml
209
+ */
210
+ export interface AfterAppendSubHtmlDetail {
211
+ /**
212
+ * Index of the slide
213
+ */
214
+ index: number;
215
+ }
216
+ /**
217
+ * Fired when the lightGallery container has been resized.
218
+ * @name lgContainerResize
219
+ * @method onContainerResize
220
+ */
221
+ export interface ContainerResizeDetail {
222
+ /**
223
+ * Index of the slide
224
+ */
225
+ index: number;
226
+ }
227
+ /**
228
+ * Fired when lightGallery detects video slide
229
+ * @name lgHasVideo
230
+ * @method onHasVideo
231
+ */
232
+ export interface HasVideoDetail {
233
+ /**
234
+ * Index of the slide,
235
+ */
236
+ index: number;
237
+ /**
238
+ * Video source
239
+ */
240
+ src: string;
241
+ /**
242
+ * HTML5 video source if available
243
+ * <p>
244
+ HTML5 video source = source: {
245
+ src: string;
246
+ type: string;
247
+ }[];
248
+ attributes: HTMLVideoElement;
249
+ * </p>
250
+ */
251
+ html5Video: VideoSource;
252
+ /**
253
+ * True if video has poster
254
+ */
255
+ hasPoster: boolean;
256
+ }
257
+ /**
258
+ * Fired when the image is rotated in anticlockwise direction
259
+ * @name lgRotateLeft
260
+ * @method onRotateLeft
261
+ */
262
+ export interface RotateLeftDetail {
263
+ /**
264
+ * Index of the slide
265
+ */
266
+ index: number;
267
+ }
268
+ /**
269
+ * Fired when the image is rotated in clockwise direction
270
+ * @name lgRotateRight
271
+ * @method onRotateRight
272
+ */
273
+ export interface RotateRightDetail {
274
+ /**
275
+ * Index of the slide
276
+ */
277
+ index: number;
278
+ }
279
+ /**
280
+ * Fired when the image is flipped horizontally
281
+ * @name lgFlipHorizontal
282
+ * @method onFlipHorizontal
283
+ */
284
+ export interface FlipHorizontalDetail {
285
+ /**
286
+ * Index of the slide
287
+ */
288
+ index: number;
289
+ }
290
+ /**
291
+ * Fired when the image is flipped vertically
292
+ * @name lgFlipVertical
293
+ * @method onFlipVertical
294
+ */
295
+ export interface FlipVerticalDetail {
296
+ /**
297
+ * Index of the slide
298
+ */
299
+ index: number;
300
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Icon injection: the gallery's icons are inline SVG strings, built-in
3
+ * defaults (registered by the core and by each plugin, so a plugin's
4
+ * icons ship in its own bundle) merged under the consumer's
5
+ * `settings.icons` overrides. One generic pass over the built structure,
6
+ * every icon button (core and plugins alike) is an empty classed element
7
+ * by the end of `buildStructure`, so a name→selector table covers them
8
+ * all without touching the individual templates.
9
+ *
10
+ * State-pair buttons (maximize/minimize, autoplay play/pause, fullscreen
11
+ * enter/exit) render BOTH icons of the pair; state classes (`lg-inline`,
12
+ * `lg-show-autoplay`, `lg-fullscreen-on`) toggle their visibility in
13
+ * CSS. A consumer override applies only when it answers every name of a
14
+ * pair, a half-provided pair keeps the defaults so no state ends up
15
+ * iconless.
16
+ */
17
+ import type { LgIconName } from '@lightgallery/headless';
18
+ export type { LgIconName };
19
+ /** SVG markup per icon; omitted names keep the built-in glyph. */
20
+ export type LgIcons = Partial<Record<LgIconName, string>>;
21
+ /**
22
+ * Inject the gallery's icons into the built structure: per target, the
23
+ * consumer's overrides apply when they answer every name (pairs must be
24
+ * complete), else the registered defaults render. Elements keep their
25
+ * classes and listeners, the icons are prepended children.
26
+ */
27
+ export declare function applyCustomIcons(container: HTMLElement, defaults: LgIcons, overrides: LgIcons | undefined): void;
@@ -1,7 +1,7 @@
1
- import { LgQuery } from './lgQuery';
2
- import { LightGallery } from './lightgallery';
3
- export declare class LgPlugin {
4
- core: LightGallery;
5
- $LG: LgQuery;
6
- constructor(core: LightGallery, $LG: LgQuery);
7
- }
1
+ import { LgQuery } from './lgQuery';
2
+ import { LightGallery } from './lightgallery';
3
+ export declare class LgPlugin {
4
+ core: LightGallery;
5
+ $LG: LgQuery;
6
+ constructor(core: LightGallery, $LG: LgQuery);
7
+ }