@salla.sa/twilight-components 2.14.356 → 2.14.357

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 (240) hide show
  1. package/dist/cjs/{filepond-Cp7YEyDQ.js → filepond-CVZ-BhRy.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CR4IT_jI.js → filepond-plugin-file-poster-2ShKuqPr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DINya0Zr.js → filepond-plugin-file-validate-size-BFWtiLWL.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Yo85drbo.js → filepond-plugin-file-validate-type-BzqK-hKY.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DZTSgDgr.js → filepond-plugin-image-edit-Bcnu5eSZ.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-Dtdd6Do2.js → filepond-plugin-image-exif-orientation-CCnsEJ8x.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-kI1VoGOp.js → filepond-plugin-image-preview-kn_ZJZXi.js} +1 -1
  8. package/dist/cjs/{index-BB2wN5Zu.js → index-B-qAr7bS.js} +1 -1
  9. package/dist/cjs/{index-B5Ws8rT7.js → index-CF5bZnDB.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  19. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-slider.cjs.entry.js +23 -30
  66. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  77. package/dist/cjs/twilight.cjs.js +2 -2
  78. package/dist/cjs/{vanilla-picker-C-AqEZ0S.js → vanilla-picker-DuWLLDIZ.js} +1 -1
  79. package/dist/collection/components/salla-products-slider/salla-products-slider.js +1 -1
  80. package/dist/collection/components/salla-slider/salla-slider.js +25 -33
  81. package/dist/components/index.js +2 -2
  82. package/dist/components/salla-slider2.js +23 -31
  83. package/dist/esm/{filepond-DK_xd-tp.js → filepond-BInIwZYj.js} +1 -1
  84. package/dist/esm/{filepond-plugin-file-poster-J4J1RcGt.js → filepond-plugin-file-poster-DRu2Mi6P.js} +1 -1
  85. package/dist/esm/{filepond-plugin-file-validate-size-BDSgcYn7.js → filepond-plugin-file-validate-size-DO5zxC4X.js} +1 -1
  86. package/dist/esm/{filepond-plugin-file-validate-type-U8jHGr5v.js → filepond-plugin-file-validate-type-BwxMZ28-.js} +1 -1
  87. package/dist/esm/{filepond-plugin-image-edit-CFrud4h0.js → filepond-plugin-image-edit-CwEZfbKE.js} +1 -1
  88. package/dist/esm/{filepond-plugin-image-exif-orientation-D5hBL036.js → filepond-plugin-image-exif-orientation-B2YJJ8ni.js} +1 -1
  89. package/dist/esm/{filepond-plugin-image-preview-CPKs1HAm.js → filepond-plugin-image-preview-BdiNpvoD.js} +1 -1
  90. package/dist/esm/{index-C2KyQGaa.js → index-BKsC0x_d.js} +1 -1
  91. package/dist/esm/{index-BkWJPw7x.js → index-DhtEPVv1.js} +2 -2
  92. package/dist/esm/loader.js +3 -3
  93. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  94. package/dist/esm/salla-accordion_6.entry.js +1 -1
  95. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  96. package/dist/esm/salla-advertisement.entry.js +1 -1
  97. package/dist/esm/salla-alert_2.entry.js +1 -1
  98. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  99. package/dist/esm/salla-apps-icons.entry.js +1 -1
  100. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  101. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  102. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  103. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  104. package/dist/esm/salla-contacts.entry.js +1 -1
  105. package/dist/esm/salla-count-down_2.entry.js +1 -1
  106. package/dist/esm/salla-custom-fields.entry.js +1 -1
  107. package/dist/esm/salla-filters-widget.entry.js +1 -1
  108. package/dist/esm/salla-filters.entry.js +1 -1
  109. package/dist/esm/salla-gifting.entry.js +1 -1
  110. package/dist/esm/salla-hook.entry.js +1 -1
  111. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  112. package/dist/esm/salla-installment.entry.js +1 -1
  113. package/dist/esm/salla-list-tile.entry.js +1 -1
  114. package/dist/esm/salla-localization-modal.entry.js +1 -1
  115. package/dist/esm/salla-login-modal.entry.js +1 -1
  116. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  117. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  118. package/dist/esm/salla-loyalty.entry.js +1 -1
  119. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  120. package/dist/esm/salla-menu.entry.js +1 -1
  121. package/dist/esm/salla-metadata.entry.js +1 -1
  122. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  123. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  124. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  125. package/dist/esm/salla-notification-item.entry.js +1 -1
  126. package/dist/esm/salla-notifications.entry.js +1 -1
  127. package/dist/esm/salla-offer-modal.entry.js +1 -1
  128. package/dist/esm/salla-offer.entry.js +1 -1
  129. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  130. package/dist/esm/salla-order-details-options.entry.js +1 -1
  131. package/dist/esm/salla-order-details.entry.js +1 -1
  132. package/dist/esm/salla-order-summary.entry.js +1 -1
  133. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  134. package/dist/esm/salla-orders.entry.js +1 -1
  135. package/dist/esm/salla-payments.entry.js +1 -1
  136. package/dist/esm/salla-placeholder.entry.js +1 -1
  137. package/dist/esm/salla-price-range.entry.js +1 -1
  138. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  139. package/dist/esm/salla-products-list.entry.js +1 -1
  140. package/dist/esm/salla-products-slider.entry.js +1 -1
  141. package/dist/esm/salla-progress-bar.entry.js +1 -1
  142. package/dist/esm/salla-quick-order.entry.js +1 -1
  143. package/dist/esm/salla-rating-modal.entry.js +1 -1
  144. package/dist/esm/salla-scopes.entry.js +1 -1
  145. package/dist/esm/salla-search.entry.js +1 -1
  146. package/dist/esm/salla-skeleton.entry.js +1 -1
  147. package/dist/esm/salla-slider.entry.js +23 -30
  148. package/dist/esm/salla-social-share.entry.js +1 -1
  149. package/dist/esm/salla-social.entry.js +1 -1
  150. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  151. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  152. package/dist/esm/salla-tooltip.entry.js +1 -1
  153. package/dist/esm/salla-trust-badges.entry.js +1 -1
  154. package/dist/esm/salla-user-menu.entry.js +1 -1
  155. package/dist/esm/salla-user-profile.entry.js +1 -1
  156. package/dist/esm/salla-user-settings.entry.js +1 -1
  157. package/dist/esm/salla-verify.entry.js +1 -1
  158. package/dist/esm/salla-wallet.entry.js +1 -1
  159. package/dist/esm/twilight.js +3 -3
  160. package/dist/esm/{vanilla-picker-DOvdi39c.js → vanilla-picker-9y3LOKrc.js} +1 -1
  161. package/dist/twilight/{p-8e12cdb4.entry.js → p-00c8b870.entry.js} +1 -1
  162. package/dist/twilight/{p-47d09695.entry.js → p-0108db0e.entry.js} +1 -1
  163. package/dist/twilight/{p-26d123cb.entry.js → p-0317ca56.entry.js} +1 -1
  164. package/dist/twilight/{p-13f1e451.entry.js → p-04871dde.entry.js} +1 -1
  165. package/dist/twilight/{p-6a8f5002.entry.js → p-0523a5ef.entry.js} +1 -1
  166. package/dist/twilight/{p-eeb474c4.entry.js → p-06af1120.entry.js} +1 -1
  167. package/dist/twilight/{p-30907a97.entry.js → p-12c7abc7.entry.js} +1 -1
  168. package/dist/twilight/{p-86e020f4.entry.js → p-135b2262.entry.js} +1 -1
  169. package/dist/twilight/{p-bb9ae7be.entry.js → p-17a49368.entry.js} +1 -1
  170. package/dist/twilight/{p-95862483.entry.js → p-18c1aa82.entry.js} +1 -1
  171. package/dist/twilight/{p-162806a6.entry.js → p-2ab31b93.entry.js} +1 -1
  172. package/dist/twilight/{p-b693aefa.entry.js → p-3071d452.entry.js} +1 -1
  173. package/dist/twilight/{p-b303d4aa.entry.js → p-3253d74f.entry.js} +1 -1
  174. package/dist/twilight/{p-7f28971d.entry.js → p-378f9cb2.entry.js} +1 -1
  175. package/dist/twilight/{p-39f15e8c.entry.js → p-3874791d.entry.js} +1 -1
  176. package/dist/twilight/{p-8f8cbf30.entry.js → p-476a002f.entry.js} +1 -1
  177. package/dist/twilight/{p-a42543cf.entry.js → p-478da0db.entry.js} +1 -1
  178. package/dist/twilight/{p-59a1cc3e.entry.js → p-47bc1b0e.entry.js} +1 -1
  179. package/dist/twilight/{p-b6554543.entry.js → p-4d200466.entry.js} +1 -1
  180. package/dist/twilight/{p-3f71adc6.entry.js → p-5636bdc5.entry.js} +1 -1
  181. package/dist/twilight/{p-924e13b5.entry.js → p-56b5658d.entry.js} +1 -1
  182. package/dist/twilight/{p-29bbbd8f.entry.js → p-5a691df0.entry.js} +1 -1
  183. package/dist/twilight/{p-8ab1cb25.entry.js → p-63fb4f6a.entry.js} +1 -1
  184. package/dist/twilight/{p-e7a1cda7.entry.js → p-659378d1.entry.js} +1 -1
  185. package/dist/twilight/{p-db6b7e58.entry.js → p-67656ed6.entry.js} +1 -1
  186. package/dist/twilight/{p-7edda278.entry.js → p-68f77bf9.entry.js} +1 -1
  187. package/dist/twilight/{p-0caa1e0c.entry.js → p-6aa0b298.entry.js} +1 -1
  188. package/dist/twilight/{p-bd9e6239.entry.js → p-6b48b78c.entry.js} +1 -1
  189. package/dist/twilight/{p-2f3e8d60.entry.js → p-6c9a3556.entry.js} +1 -1
  190. package/dist/twilight/{p-1b5fc61d.entry.js → p-706fc07a.entry.js} +1 -1
  191. package/dist/twilight/{p-65b3442d.entry.js → p-8318e5a4.entry.js} +1 -1
  192. package/dist/twilight/{p-13cc3fb9.entry.js → p-83a9dae4.entry.js} +1 -1
  193. package/dist/twilight/{p-bde045fa.entry.js → p-89f4a500.entry.js} +1 -1
  194. package/dist/twilight/{p-f6acc615.entry.js → p-8b8442ec.entry.js} +1 -1
  195. package/dist/twilight/{p-a7c0bc08.entry.js → p-8e3ab101.entry.js} +1 -1
  196. package/dist/twilight/{p-f052464b.entry.js → p-93e72677.entry.js} +1 -1
  197. package/dist/twilight/{p-c8a82f37.entry.js → p-9902b843.entry.js} +1 -1
  198. package/dist/twilight/{p-a32de0ab.entry.js → p-9da9a96e.entry.js} +1 -1
  199. package/dist/twilight/{p-B7hfl1_L.js → p-9kdhmfl0.js} +2 -2
  200. package/dist/twilight/{p-D1-Giq37.js → p-BnEemU3K.js} +1 -1
  201. package/dist/twilight/{p-DDUfBWCl.js → p-C5JBfwX3.js} +1 -1
  202. package/dist/twilight/{p-DK6KzbCc.js → p-ChWBy7Mi.js} +1 -1
  203. package/dist/twilight/{p-BZ1obY9a.js → p-D5Ctrxqk.js} +1 -1
  204. package/dist/twilight/{p-BkWJPw7x.js → p-DhtEPVv1.js} +1 -1
  205. package/dist/twilight/{p-CXfpMFgS.js → p-DucyXwUa.js} +1 -1
  206. package/dist/twilight/{p-DEfwTter.js → p-Oa-SLesW.js} +1 -1
  207. package/dist/twilight/{p-f184ab27.entry.js → p-a1853dac.entry.js} +1 -1
  208. package/dist/twilight/{p-90440e96.entry.js → p-a37b4382.entry.js} +1 -1
  209. package/dist/twilight/{p-74a880cc.entry.js → p-a5094c62.entry.js} +1 -1
  210. package/dist/twilight/{p-1965c320.entry.js → p-a798090d.entry.js} +1 -1
  211. package/dist/twilight/{p-4af20310.entry.js → p-adbb3dcd.entry.js} +1 -1
  212. package/dist/twilight/{p-cd20dfbd.entry.js → p-af829f6e.entry.js} +1 -1
  213. package/dist/twilight/{p-01fbef77.entry.js → p-b01b370a.entry.js} +1 -1
  214. package/dist/twilight/{p-415ba86d.entry.js → p-b350c896.entry.js} +1 -1
  215. package/dist/twilight/{p-5f58d298.entry.js → p-c2167627.entry.js} +1 -1
  216. package/dist/twilight/{p-a528f44e.entry.js → p-c50ea722.entry.js} +1 -1
  217. package/dist/twilight/{p-67ed8f76.entry.js → p-c623dae3.entry.js} +1 -1
  218. package/dist/twilight/{p-1616852e.entry.js → p-c6abc912.entry.js} +1 -1
  219. package/dist/twilight/{p-215fa138.entry.js → p-ca414718.entry.js} +1 -1
  220. package/dist/twilight/{p-c14df66d.entry.js → p-d597ea5a.entry.js} +1 -1
  221. package/dist/twilight/{p-07f8cb47.entry.js → p-da2a9d5e.entry.js} +1 -1
  222. package/dist/twilight/{p-414d057a.entry.js → p-dbd7bab7.entry.js} +1 -1
  223. package/dist/twilight/{p-2e2dce52.entry.js → p-ddf1eb8e.entry.js} +1 -1
  224. package/dist/twilight/{p-13d7b8db.entry.js → p-de3f8afc.entry.js} +1 -1
  225. package/dist/twilight/{p-77e219f7.entry.js → p-df17bdfb.entry.js} +1 -1
  226. package/dist/twilight/{p-7fa36512.entry.js → p-e0506d5f.entry.js} +1 -1
  227. package/dist/twilight/{p-7ee15c9e.entry.js → p-e0f3dcc1.entry.js} +1 -1
  228. package/dist/twilight/{p-3f911fed.entry.js → p-e0f56ef8.entry.js} +1 -1
  229. package/dist/twilight/{p-e6c7e348.entry.js → p-e13bcda5.entry.js} +1 -1
  230. package/dist/twilight/{p-131f1a54.entry.js → p-e61517dd.entry.js} +1 -1
  231. package/dist/twilight/{p-f2292a2c.entry.js → p-e6de17d2.entry.js} +1 -1
  232. package/dist/twilight/{p-560f8e69.entry.js → p-ead767db.entry.js} +1 -1
  233. package/dist/twilight/{p-c288faca.entry.js → p-f47c7d7e.entry.js} +1 -1
  234. package/dist/twilight/{p-5a2072d5.entry.js → p-fd9858a0.entry.js} +1 -1
  235. package/dist/twilight/{p-Dvq8cJys.js → p-sTgCEptc.js} +1 -1
  236. package/dist/twilight/{p-C-TeNpQx.js → p-upVSO4PR.js} +1 -1
  237. package/dist/twilight/twilight.esm.js +1 -1
  238. package/dist/types/components/salla-slider/salla-slider.d.ts +5 -6
  239. package/dist/types/components.d.ts +10 -10
  240. package/package.json +5 -6
@@ -9862,7 +9862,7 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
9862
9862
  * When enabled and there is exactly one slide in the `items` slot,
9863
9863
  * render without initializing Swiper (single slide mode).
9864
9864
  */
9865
- this.enableSingleSlideMode = false;
9865
+ this.staticWhenSingle = false;
9866
9866
  /**
9867
9867
  * Enable autoplay - working with `type="carousel" only`
9868
9868
  */
@@ -9894,8 +9894,6 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
9894
9894
  this.isBeginning = true;
9895
9895
  /** Use matchMedia instead of window.innerWidth to avoid forced reflow (Lighthouse recommended) */
9896
9896
  this.isDesktopViewport = typeof window !== 'undefined' ? window.matchMedia('(min-width: 768px)').matches : true;
9897
- /** When true, only one slide is present; we render without Swiper for performance. */
9898
- this.singleSlideMode = false;
9899
9897
  this._rafId = null;
9900
9898
  this.viewportMediaQuery = null;
9901
9899
  this.hasThumbSlot = false;
@@ -9952,7 +9950,7 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
9952
9950
  * @returns The Swiper slider instance
9953
9951
  */
9954
9952
  async sliderInstance() {
9955
- return this.singleSlideMode ? undefined : this.slider;
9953
+ return this.slider;
9956
9954
  }
9957
9955
  /**
9958
9956
  * Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
@@ -10063,7 +10061,7 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10063
10061
  * Get slider slides
10064
10062
  * **/
10065
10063
  async getSlides() {
10066
- return this.singleSlideMode ? undefined : await this.slider?.slides;
10064
+ return this.slider?.slides;
10067
10065
  }
10068
10066
  /**
10069
10067
  * Get slider slides
@@ -10114,9 +10112,7 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10114
10112
  * @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
10115
10113
  * **/
10116
10114
  async thumbsSlideTo(index, speed, runCallbacks) {
10117
- if (!this.thumbsSlider)
10118
- return;
10119
- return this.thumbsSlider.slideTo(index, speed, runCallbacks);
10115
+ return this.thumbsSlider?.slideTo(index, speed, runCallbacks);
10120
10116
  }
10121
10117
  /**
10122
10118
  * Get thumbs slider slides
@@ -10124,7 +10120,14 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10124
10120
  async getThumbsSlides() {
10125
10121
  return await this.thumbsSlider?.slides;
10126
10122
  }
10127
- componentWillLoad() {
10123
+ isStaticWhenSingle() {
10124
+ return this.staticWhenSingle && this.host.querySelector('[slot="items"]')?.children?.length === 1;
10125
+ }
10126
+ async componentWillLoad() {
10127
+ if (this.isStaticWhenSingle()) {
10128
+ this.host.classList.add('s-slider-single-mode');
10129
+ return;
10130
+ }
10128
10131
  salla.lang.onLoaded(() => {
10129
10132
  this.displayAllTitle = salla.lang.get('blocks.home.display_all');
10130
10133
  });
@@ -10297,21 +10300,15 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10297
10300
  this.slider.on('transitionStart', (slider) => this.sliderTransitionStart.emit(slider));
10298
10301
  }
10299
10302
  render() {
10303
+ if (this.isStaticWhenSingle()) {
10304
+ return;
10305
+ }
10300
10306
  let classes = this.type ? this.type + '-slider ' : '';
10301
10307
  classes += this.controlsOuter ? ' s-slider-controls-outer ' : '';
10302
10308
  classes += this.blockTitle == '' ? ' s-slider-has-notitle s-slider-v-centered ' : '';
10303
10309
  classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
10304
10310
  classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
10305
10311
  classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
10306
- if (this.singleSlideMode) {
10307
- return (h(Host, { class: 's-slider-wrapper s-slider-single-mode ' + classes }, this.blockTitle || this.displayAllUrl ?
10308
- h("div", { class: "s-slider-block__title" }, this.blockTitle ?
10309
- h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
10310
- : '', this.displayAllUrl ?
10311
- h("div", { class: "s-slider-block__title-left" }, h("a", { href: this.displayAllUrl, class: "s-slider-block__display-all" }, this.displayAllTitle))
10312
- : '')
10313
- : '', h("div", { class: "swiper s-slider-container s-slider-single", dir: this.vertical ? "ltr" : this.direction }, h("slot", null), h("div", { class: "swiper-wrapper s-slider-swiper-wrapper" }, h("slot", { name: 'items' })))));
10314
- }
10315
10312
  return (h(Host, { class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
10316
10313
  h("div", { class: "s-slider-block__title" }, this.blockTitle ?
10317
10314
  h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
@@ -10380,9 +10377,11 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10380
10377
  this.lazyObserver.observe(el);
10381
10378
  }
10382
10379
  componentDidLoad() {
10380
+ if (this.isStaticWhenSingle()) {
10381
+ return;
10382
+ }
10383
10383
  // 1. Batch Reads (Get all elements first without modifying DOM)
10384
10384
  const tasks = [];
10385
- let _singleSlideMode = false;
10386
10385
  const prepareFlatten = (container, slotSelector) => {
10387
10386
  const slotEl = container?.querySelector(slotSelector);
10388
10387
  if (!slotEl)
@@ -10391,10 +10390,6 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10391
10390
  if (elements.length) {
10392
10391
  // Queue the Write operation
10393
10392
  tasks.push(() => slotEl.replaceWith(...elements));
10394
- if (elements.length === 1 && this.enableSingleSlideMode) {
10395
- _singleSlideMode = true;
10396
- elements[0].classList.add('swiper-slide');
10397
- }
10398
10393
  }
10399
10394
  };
10400
10395
  prepareFlatten(this.sliderWrapper, 'div[slot="items"]');
@@ -10404,16 +10399,14 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10404
10399
  // 2. Batch Writes (Execute all DOM modifications together)
10405
10400
  tasks.forEach(task => task());
10406
10401
  // 3. Init Swiper inside rAF
10407
- this._rafId = requestAnimationFrame(() => {
10408
- this.singleSlideMode = _singleSlideMode;
10409
- if (!_singleSlideMode) {
10410
- this.initSlider();
10411
- }
10412
- });
10402
+ this._rafId = requestAnimationFrame(() => this.initSlider());
10413
10403
  this.viewportMediaQuery = window.matchMedia('(min-width: 768px)');
10414
10404
  this.viewportMediaQuery.addEventListener('change', this.onViewportChange);
10415
10405
  }
10416
10406
  disconnectedCallback() {
10407
+ if (this.isStaticWhenSingle()) {
10408
+ return;
10409
+ }
10417
10410
  if (this._rafId)
10418
10411
  cancelAnimationFrame(this._rafId);
10419
10412
  this.viewportMediaQuery?.removeEventListener('change', this.onViewportChange);
@@ -10435,7 +10428,7 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10435
10428
  "showControls": [516, "show-controls"],
10436
10429
  "controlsOuter": [516, "controls-outer"],
10437
10430
  "showThumbsControls": [4, "show-thumbs-controls"],
10438
- "enableSingleSlideMode": [516, "enable-single-slide-mode"],
10431
+ "staticWhenSingle": [516, "static-when-single"],
10439
10432
  "autoPlay": [4, "auto-play"],
10440
10433
  "slidesPerView": [1, "slides-per-view"],
10441
10434
  "pagination": [4],
@@ -10450,7 +10443,6 @@ const SallaSlider = /*@__PURE__*/ proxyCustomElement(class SallaSlider extends H
10450
10443
  "isBeginning": [32],
10451
10444
  "displayAllTitle": [32],
10452
10445
  "isDesktopViewport": [32],
10453
- "singleSlideMode": [32],
10454
10446
  "sliderInstance": [64],
10455
10447
  "slideTo": [64],
10456
10448
  "slideNext": [64],
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BkWJPw7x.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DhtEPVv1.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {