@salla.sa/twilight-components 2.14.364 → 2.14.366

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 (263) hide show
  1. package/dist/cjs/{Helper-DHRnzcFm.js → Helper-CU4Xuiki.js} +9 -3
  2. package/dist/cjs/{filepond-C6YjB4Pc.js → filepond-iKAI8_Ua.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-CtNn5Jla.js → filepond-plugin-file-poster-DBOuyuqE.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-PCygUua9.js → filepond-plugin-file-validate-size-3OjivJWc.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-MZSqUcaj.js → filepond-plugin-file-validate-type-C4wPNa1h.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-ZmpgJTIn.js → filepond-plugin-image-edit-D06RnDWS.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-DxPDvRXB.js → filepond-plugin-image-exif-orientation-CbwYrnuw.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-93G9gp9A.js → filepond-plugin-image-preview-mOmpKkFJ.js} +1 -1
  9. package/dist/cjs/{index-DrduZhCQ.js → index-DL9nqubd.js} +6 -6
  10. package/dist/cjs/{index-DrtTVEw4.js → index-TmWujwmX.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  14. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  20. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
  22. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-count-down_2.cjs.entry.js +11 -8
  26. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  28. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  29. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-offer.cjs.entry.js +248 -177
  49. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-products-list.cjs.entry.js +15 -4
  60. package/dist/cjs/salla-products-slider.cjs.entry.js +11 -3
  61. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  64. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  79. package/dist/cjs/twilight.cjs.js +2 -2
  80. package/dist/cjs/{vanilla-picker-BKkfVwL1.js → vanilla-picker-DPu_Z0gW.js} +1 -1
  81. package/dist/collection/Helpers/Helper.js +9 -3
  82. package/dist/collection/components/salla-offer/interfaces.js +2 -0
  83. package/dist/collection/components/salla-offer/salla-offer.css +2 -25
  84. package/dist/collection/components/salla-offer/salla-offer.js +256 -181
  85. package/dist/collection/components/salla-product-card/salla-product-card.js +29 -7
  86. package/dist/collection/components/salla-products-list/salla-products-list.js +32 -2
  87. package/dist/collection/components/salla-products-slider/salla-products-slider.js +9 -1
  88. package/dist/components/Helper.js +9 -3
  89. package/dist/components/index.js +2 -2
  90. package/dist/components/salla-offer.js +273 -220
  91. package/dist/components/salla-product-card2.js +11 -7
  92. package/dist/components/salla-products-list2.js +14 -2
  93. package/dist/components/salla-products-slider2.js +9 -1
  94. package/dist/esm/{Helper-B5RLi6Xo.js → Helper-DFMXF2_h.js} +9 -3
  95. package/dist/esm/{filepond-DKDl5gHI.js → filepond-OIAu6i0O.js} +1 -1
  96. package/dist/esm/{filepond-plugin-file-poster-D93Cfru7.js → filepond-plugin-file-poster-BMvjO1cc.js} +1 -1
  97. package/dist/esm/{filepond-plugin-file-validate-size-B9y0A-_Z.js → filepond-plugin-file-validate-size-CMCs88HU.js} +1 -1
  98. package/dist/esm/{filepond-plugin-file-validate-type-DJLrAmDa.js → filepond-plugin-file-validate-type-Bjpeuqen.js} +1 -1
  99. package/dist/esm/{filepond-plugin-image-edit-5SrR8khF.js → filepond-plugin-image-edit-Fpoh6xBj.js} +1 -1
  100. package/dist/esm/{filepond-plugin-image-exif-orientation-CzhglWtb.js → filepond-plugin-image-exif-orientation-CPChwYPW.js} +1 -1
  101. package/dist/esm/{filepond-plugin-image-preview-DBxJhkxb.js → filepond-plugin-image-preview-pLwEytag.js} +1 -1
  102. package/dist/esm/{index-CgYN55XK.js → index-CV1rqKQz.js} +6 -6
  103. package/dist/esm/{index-BrjMW-AZ.js → index-Cs4XvAmW.js} +1 -1
  104. package/dist/esm/loader.js +3 -3
  105. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  106. package/dist/esm/salla-accordion_6.entry.js +2 -2
  107. package/dist/esm/salla-add-product-button_4.entry.js +2 -2
  108. package/dist/esm/salla-advertisement.entry.js +1 -1
  109. package/dist/esm/salla-alert_2.entry.js +1 -1
  110. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  111. package/dist/esm/salla-apps-icons.entry.js +1 -1
  112. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  113. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  114. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  115. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  116. package/dist/esm/salla-contacts.entry.js +1 -1
  117. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  118. package/dist/esm/salla-count-down_2.entry.js +11 -8
  119. package/dist/esm/salla-custom-fields.entry.js +1 -1
  120. package/dist/esm/salla-filters-widget.entry.js +2 -2
  121. package/dist/esm/salla-filters.entry.js +2 -2
  122. package/dist/esm/salla-gifting.entry.js +1 -1
  123. package/dist/esm/salla-hook.entry.js +1 -1
  124. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  125. package/dist/esm/salla-installment.entry.js +1 -1
  126. package/dist/esm/salla-list-tile.entry.js +1 -1
  127. package/dist/esm/salla-localization-modal.entry.js +1 -1
  128. package/dist/esm/salla-login-modal.entry.js +1 -1
  129. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  130. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  131. package/dist/esm/salla-loyalty.entry.js +1 -1
  132. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  133. package/dist/esm/salla-menu.entry.js +1 -1
  134. package/dist/esm/salla-metadata.entry.js +1 -1
  135. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  136. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  137. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  138. package/dist/esm/salla-notification-item.entry.js +1 -1
  139. package/dist/esm/salla-notifications.entry.js +2 -2
  140. package/dist/esm/salla-offer-modal.entry.js +1 -1
  141. package/dist/esm/salla-offer.entry.js +248 -177
  142. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  143. package/dist/esm/salla-order-details-options.entry.js +1 -1
  144. package/dist/esm/salla-order-details.entry.js +1 -1
  145. package/dist/esm/salla-order-summary.entry.js +1 -1
  146. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  147. package/dist/esm/salla-orders.entry.js +2 -2
  148. package/dist/esm/salla-payments.entry.js +1 -1
  149. package/dist/esm/salla-placeholder.entry.js +1 -1
  150. package/dist/esm/salla-price-range.entry.js +1 -1
  151. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  152. package/dist/esm/salla-products-list.entry.js +15 -4
  153. package/dist/esm/salla-products-slider.entry.js +11 -3
  154. package/dist/esm/salla-progress-bar.entry.js +1 -1
  155. package/dist/esm/salla-quick-order.entry.js +1 -1
  156. package/dist/esm/salla-rating-modal.entry.js +2 -2
  157. package/dist/esm/salla-scopes.entry.js +1 -1
  158. package/dist/esm/salla-search.entry.js +2 -2
  159. package/dist/esm/salla-skeleton.entry.js +1 -1
  160. package/dist/esm/salla-slider.entry.js +1 -1
  161. package/dist/esm/salla-social-share.entry.js +1 -1
  162. package/dist/esm/salla-social.entry.js +1 -1
  163. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  164. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  165. package/dist/esm/salla-tooltip.entry.js +1 -1
  166. package/dist/esm/salla-trust-badges.entry.js +1 -1
  167. package/dist/esm/salla-user-menu.entry.js +1 -1
  168. package/dist/esm/salla-user-profile.entry.js +1 -1
  169. package/dist/esm/salla-user-settings.entry.js +1 -1
  170. package/dist/esm/salla-verify.entry.js +1 -1
  171. package/dist/esm/salla-wallet.entry.js +1 -1
  172. package/dist/esm/twilight.js +3 -3
  173. package/dist/esm/{vanilla-picker-Btl47fnu.js → vanilla-picker-BASTfXcg.js} +1 -1
  174. package/dist/twilight/{p-7cf68887.entry.js → p-04664fcb.entry.js} +1 -1
  175. package/dist/twilight/{p-489556db.entry.js → p-0c385d73.entry.js} +1 -1
  176. package/dist/twilight/{p-45f6a85e.entry.js → p-0ede455c.entry.js} +1 -1
  177. package/dist/twilight/{p-1b90e0b0.entry.js → p-0f1d7449.entry.js} +1 -1
  178. package/dist/twilight/{p-1a7eb8b5.entry.js → p-134c9d22.entry.js} +1 -1
  179. package/dist/twilight/{p-a8e65234.entry.js → p-15242c87.entry.js} +1 -1
  180. package/dist/twilight/{p-e129ac60.entry.js → p-1aead6d3.entry.js} +1 -1
  181. package/dist/twilight/{p-80cbf7bc.entry.js → p-1f6ead7d.entry.js} +1 -1
  182. package/dist/twilight/{p-72a0eba4.entry.js → p-215ed586.entry.js} +1 -1
  183. package/dist/twilight/{p-fbe030f2.entry.js → p-22b1bd15.entry.js} +1 -1
  184. package/dist/twilight/{p-12b86d33.entry.js → p-233b89ad.entry.js} +1 -1
  185. package/dist/twilight/{p-7cd6ff80.entry.js → p-2405c0f7.entry.js} +1 -1
  186. package/dist/twilight/{p-ce7ec4bc.entry.js → p-2c787ba0.entry.js} +1 -1
  187. package/dist/twilight/{p-034a9829.entry.js → p-2dd98664.entry.js} +1 -1
  188. package/dist/twilight/{p-c6145ba2.entry.js → p-3c09b198.entry.js} +1 -1
  189. package/dist/twilight/{p-08b2c445.entry.js → p-3c418ff7.entry.js} +1 -1
  190. package/dist/twilight/{p-50090848.entry.js → p-3c6f9112.entry.js} +1 -1
  191. package/dist/twilight/{p-b6611b65.entry.js → p-3f8b06b3.entry.js} +1 -1
  192. package/dist/twilight/{p-92c2eb1d.entry.js → p-40ec7a33.entry.js} +1 -1
  193. package/dist/twilight/{p-31ad6ddc.entry.js → p-4d35a32b.entry.js} +1 -1
  194. package/dist/twilight/{p-5d42ca23.entry.js → p-50f5e38d.entry.js} +1 -1
  195. package/dist/twilight/{p-0d88be23.entry.js → p-5485978c.entry.js} +1 -1
  196. package/dist/twilight/{p-3aef87fa.entry.js → p-585a349f.entry.js} +1 -1
  197. package/dist/twilight/{p-c1ee3573.entry.js → p-58f562df.entry.js} +1 -1
  198. package/dist/twilight/{p-3a910561.entry.js → p-594d219c.entry.js} +1 -1
  199. package/dist/twilight/{p-BPzrIneD.js → p-5mQqqwMU.js} +1 -1
  200. package/dist/twilight/{p-cb974a04.entry.js → p-64ac4c0c.entry.js} +1 -1
  201. package/dist/twilight/{p-d7dafe1d.entry.js → p-6aecc925.entry.js} +1 -1
  202. package/dist/twilight/{p-737bf5ea.entry.js → p-6b6e2a52.entry.js} +1 -1
  203. package/dist/twilight/{p-860f725d.entry.js → p-6daa8bd8.entry.js} +1 -1
  204. package/dist/twilight/{p-3aab356e.entry.js → p-6dbcd99e.entry.js} +1 -1
  205. package/dist/twilight/{p-10551ac8.entry.js → p-6f09b53e.entry.js} +1 -1
  206. package/dist/twilight/{p-20beefaf.entry.js → p-721bb258.entry.js} +1 -1
  207. package/dist/twilight/{p-d018e945.entry.js → p-75ab49a3.entry.js} +1 -1
  208. package/dist/twilight/{p-31b13945.entry.js → p-7bfb9d71.entry.js} +1 -1
  209. package/dist/twilight/p-7c8c6c47.entry.js +4 -0
  210. package/dist/twilight/{p-c2f9ea90.entry.js → p-8c2b148a.entry.js} +1 -1
  211. package/dist/twilight/{p-235eb6bb.entry.js → p-907b40cd.entry.js} +1 -1
  212. package/dist/twilight/{p-257b5507.entry.js → p-90eea1a9.entry.js} +1 -1
  213. package/dist/twilight/{p-7b94d098.entry.js → p-95db0124.entry.js} +1 -1
  214. package/dist/twilight/{p-048110b6.entry.js → p-965fe2b3.entry.js} +1 -1
  215. package/dist/twilight/{p-2a461d47.entry.js → p-9797a552.entry.js} +1 -1
  216. package/dist/twilight/{p-9fe2c98c.entry.js → p-9d937a82.entry.js} +1 -1
  217. package/dist/twilight/{p-CnDmcHhx.js → p-BGB1zYFQ.js} +1 -1
  218. package/dist/twilight/{p-BX85PU_v.js → p-BLbGjdAU.js} +1 -1
  219. package/dist/twilight/p-CHf8XdiS.js +4 -0
  220. package/dist/twilight/{p-CgYN55XK.js → p-CV1rqKQz.js} +1 -1
  221. package/dist/twilight/{p-B3GTMJbg.js → p-CofhuO2Z.js} +1 -1
  222. package/dist/twilight/{p-Dk3aAnUR.js → p-CvLPGpFQ.js} +1 -1
  223. package/dist/twilight/{p-DOwnqQpN.js → p-D5AsuzfF.js} +1 -1
  224. package/dist/twilight/{p-BIoGLthd.js → p-DbzHZVd1.js} +1 -1
  225. package/dist/twilight/p-a08f5eae.entry.js +4 -0
  226. package/dist/twilight/{p-05233dda.entry.js → p-a0a6a255.entry.js} +1 -1
  227. package/dist/twilight/{p-89ce22bc.entry.js → p-a386b02a.entry.js} +1 -1
  228. package/dist/twilight/{p-22bafc5e.entry.js → p-a5df57f9.entry.js} +1 -1
  229. package/dist/twilight/{p-0d2d4bf1.entry.js → p-ac7f094e.entry.js} +1 -1
  230. package/dist/twilight/{p-1ec20122.entry.js → p-af3d4d0d.entry.js} +1 -1
  231. package/dist/twilight/{p-9cd55815.entry.js → p-bb0585cc.entry.js} +1 -1
  232. package/dist/twilight/{p-b701e858.entry.js → p-c0ab0fc6.entry.js} +1 -1
  233. package/dist/twilight/{p-d5e24adc.entry.js → p-c3f515ae.entry.js} +1 -1
  234. package/dist/twilight/{p-c86e684b.entry.js → p-c7719ce9.entry.js} +1 -1
  235. package/dist/twilight/{p-924ee352.entry.js → p-c90a6440.entry.js} +1 -1
  236. package/dist/twilight/{p-fd59d4f2.entry.js → p-cf64bb24.entry.js} +1 -1
  237. package/dist/twilight/{p-296039d7.entry.js → p-d64027b9.entry.js} +1 -1
  238. package/dist/twilight/{p-48ac6a0a.entry.js → p-db4f5b38.entry.js} +1 -1
  239. package/dist/twilight/p-de42ef8c.entry.js +4 -0
  240. package/dist/twilight/{p-a2249582.entry.js → p-dfc75ce2.entry.js} +1 -1
  241. package/dist/twilight/{p-c72f3795.entry.js → p-e0ce2c0d.entry.js} +1 -1
  242. package/dist/twilight/{p-98cacd53.entry.js → p-e0e61f73.entry.js} +1 -1
  243. package/dist/twilight/{p-2594518e.entry.js → p-e1bf6d23.entry.js} +1 -1
  244. package/dist/twilight/{p-5593e4a3.entry.js → p-e2c6ed54.entry.js} +1 -1
  245. package/dist/twilight/{p-57bc544c.entry.js → p-f1156ab8.entry.js} +1 -1
  246. package/dist/twilight/{p-f477fb8e.entry.js → p-f1be81ba.entry.js} +1 -1
  247. package/dist/twilight/{p-CBnUMxpk.js → p-f2v0udIe.js} +1 -1
  248. package/dist/twilight/{p-4afaba5f.entry.js → p-f8fb3130.entry.js} +1 -1
  249. package/dist/twilight/{p-18b2b205.entry.js → p-f9fcf183.entry.js} +1 -1
  250. package/dist/twilight/{p-b97da3f0.entry.js → p-fc6ddedc.entry.js} +1 -1
  251. package/dist/twilight/{p-CK0rWcfw.js → p-tacIS_Xg.js} +1 -1
  252. package/dist/twilight/twilight.esm.js +1 -1
  253. package/dist/types/Helpers/Helper.d.ts +2 -0
  254. package/dist/types/components/salla-offer/interfaces.d.ts +9 -7
  255. package/dist/types/components/salla-offer/salla-offer.d.ts +35 -36
  256. package/dist/types/components/salla-product-card/salla-product-card.d.ts +4 -0
  257. package/dist/types/components/salla-products-list/salla-products-list.d.ts +4 -0
  258. package/dist/types/components.d.ts +18 -2
  259. package/package.json +5 -5
  260. package/dist/twilight/p-838d98d5.entry.js +0 -4
  261. package/dist/twilight/p-DgNC8L6e.js +0 -4
  262. package/dist/twilight/p-e0d8ec2f.entry.js +0 -4
  263. package/dist/twilight/p-fcd32f66.entry.js +0 -4
@@ -86,19 +86,20 @@ export class SallaProductCard {
86
86
  's-product-card-special': this.isSpecial,
87
87
  's-product-card-full-image': this.fullImage,
88
88
  's-product-card-minimal': this.minimal,
89
+ 's-product-card-compact': this.compact,
89
90
  's-product-card-donation': this.productData?.donation,
90
91
  's-product-card-shadow': this.shadowOnHover,
91
92
  's-product-card-out-of-stock': this.productData?.is_out_of_stock,
92
93
  };
93
94
  const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
94
- return (h(Host, { key: '95347f86f3dc0354a057290ce41f74aef0a66282', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '86927cbc56a2ea92a8e18c44c8999ee1d6f82b4d', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '6294925bce0a46287389a9423b16199cf92919fd', ...hrefProp }, h("img", { key: '74e0d9fae7c61e0e3e0e20e38166d64618c8ca3d', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
95
+ return (h(Host, { key: '7184dd5df9a903e8efb13e9d7ebfde785c9de7cb', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: 'd26a9f0757675e3eca8c1c927af5a693fac362aa', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '740236251eb99e95487c6a489638cbccc224a1b7', ...hrefProp }, h("img", { key: '8d253d0e2bacac675a64bc023d71e2c9926f0586', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
95
96
  ? 'contain'
96
97
  : this.fitImageHeight
97
98
  ? this.fitImageHeight
98
- : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: 'fd2db94c99d91815b13141460a8c4538aae4a53b', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
99
- h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '9f4f39db770a394d9719664cd77111aef1c575f4', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
99
+ : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '97b6378012c501176992dc1bf2bcebd0ddb1b1e4', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
100
+ h("salla-button", { shape: "icon", fill: "none", color: "light", "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id) }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'b5f92299df71a73388dbb8e12592e8b7f4c99e91', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
100
101
  h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
101
- : '', h("div", { key: 'eab2c5f49112dd490733e0b6f1e8c30ad9670690', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '5fadc35b2bf704903bf38128c390f71ec0a8b910', class: "s-product-card-content-title" }, h("a", { key: '7e0767efef938e20ed4c2592a0abec812a9caf86', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
102
+ : '', h("div", { key: 'dc37b35ce1331859a8c8ce009880faddee014ff4', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '54bbe09fe87302771966928902e2a69ec5c966b3', class: "s-product-card-content-title" }, h("a", { key: 'd9ed3ae0f677099860b3448fb52d11c678cabb88', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
102
103
  h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
103
104
  : ''), this.productData?.donation && !this.minimal && !this.fullImage ?
104
105
  [h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
@@ -107,15 +108,17 @@ export class SallaProductCard {
107
108
  this.addBtn.donatingAmount = e.target.value;
108
109
  }, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
109
110
  : '')]
110
- : '', h("div", { key: 'f29cdbd8b8bb715583ecb6c6bcc571c64341ee39', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
111
+ : '', h("div", { key: 'd687ec1039228883aeaaa50f93ad419bf437027a', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
111
112
  h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
112
113
  : ''), this.isSpecial && this.productData.discount_ends
113
114
  ? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
114
- : '', !this.hideAddBtn ?
115
+ : '', !this.hideAddBtn && !this.compact ?
115
116
  h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { fill: "outline", width: "wide", ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
116
117
  h("salla-button", { shape: "icon", fill: "none", color: "light", ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () => salla.wishlist.toggle(this.productData.id), "data-id": "{{ product.id }}" }, h("span", { class: "text-xl", innerHTML: Heart }))
117
118
  : '')
118
- : '')));
119
+ : ''), !this.hideAddBtn && this.compact ?
120
+ h("div", { class: "s-product-card-content-footer" }, h("salla-add-product-button", { ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)))
121
+ : ''));
119
122
  }
120
123
  componentDidLoad() {
121
124
  document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
@@ -291,6 +294,25 @@ export class SallaProductCard {
291
294
  "getter": false,
292
295
  "setter": false,
293
296
  "reflect": false
297
+ },
298
+ "compact": {
299
+ "type": "boolean",
300
+ "attribute": "compact",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "boolean",
304
+ "resolved": "boolean",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": false,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "Compact list layout for drawers and lists."
312
+ },
313
+ "getter": false,
314
+ "setter": false,
315
+ "reflect": true
294
316
  }
295
317
  };
296
318
  }
@@ -203,6 +203,11 @@ export class SallaProductsList {
203
203
  const customComponentTag = this.hasCustomComponent ? this.productCardComponent : 'salla-product-card';
204
204
  const productCard = document.createElement(customComponentTag);
205
205
  productCard.product = product;
206
+ // Apply compact layout if requested - set both property and attribute for compatibility
207
+ if (this.compactCards) {
208
+ productCard.compact = true;
209
+ productCard.toggleAttribute('compact', true);
210
+ }
206
211
  this.applyLandingPageStyles(productCard);
207
212
  this.applyHorizontalCardStyles(productCard);
208
213
  // Attach click event listener to save the current products snapshot
@@ -217,6 +222,11 @@ export class SallaProductsList {
217
222
  sessionStorage.setItem(this.lastViewedProductKey, product.id);
218
223
  }
219
224
  }
225
+ // Save source when add-to-cart button is clicked
226
+ const addBtn = target.closest('salla-add-product-button');
227
+ if (addBtn) {
228
+ Helper.saveAddToCartSource(this.getSource());
229
+ }
220
230
  });
221
231
  return productCard;
222
232
  }
@@ -230,9 +240,9 @@ export class SallaProductsList {
230
240
  if (!this.horizontalCards) {
231
241
  return;
232
242
  }
233
- productCard.setAttribute('horizontal', true);
243
+ productCard.toggleAttribute('horizontal', true);
234
244
  if (!this.hasCustomComponent) {
235
- productCard.setAttribute('shadow-on-hover', true);
245
+ productCard.toggleAttribute('shadow-on-hover', true);
236
246
  }
237
247
  }
238
248
  waitForResizing(element) {
@@ -677,6 +687,7 @@ export class SallaProductsList {
677
687
  's-products-list-horizontal-cards': this.horizontalCards && !this.filtersResults,
678
688
  's-products-list-vertical-cards': !this.horizontalCards && !this.rowCards && !this.filtersResults,
679
689
  's-products-list-row-cards': this.rowCards,
690
+ 's-products-list-compact-cards': this.compactCards,
680
691
  's-products-list-filters-results': this.filtersResults,
681
692
  }, ref: wrapper => this.wrapper = wrapper }), h("div", { class: "s-infinite-scroll-status", ref: status => this.status = status }, h("p", { class: "s-infinite-scroll-last infinite-scroll-last s-hidden" }, this.endOfText), h("p", { class: "s-infinite-scroll-error infinite-scroll-error s-hidden" }, this.failedLoadMore)), this.autoload && h("div", { class: "s-products-list-loading-wrapper", style: { "display": "none" }, ref: loader => this.loader = loader }, h("span", { class: "s-button-loader s-button-loader-center s-infinite-scroll-btn-loader" })), this.hasInfiniteScroll && this.nextPage && !this.autoload ? (h("div", { class: "s-infinite-scroll-wrapper", style: { "display": "none" }, ref: loadMoreWrapper => this.loadMoreWrapper = loadMoreWrapper }, h("button", { onClick: () => this.loadMore(), class: "s-infinite-scroll-btn s-button-btn s-button-primary" }, h("span", { class: "s-button-text s-infinite-scroll-btn-text" }, this.loadMoreText ? this.loadMoreText : salla.lang.get('common.elements.load_more')), h("span", { class: "s-button-loader s-button-loader-center s-infinite-scroll-btn-loader", ref: btnLoader => this.btnLoader = btnLoader, style: { "display": "none" } })))) : ""));
682
693
  }
@@ -900,6 +911,25 @@ export class SallaProductsList {
900
911
  "setter": false,
901
912
  "reflect": true
902
913
  },
914
+ "compactCards": {
915
+ "type": "boolean",
916
+ "attribute": "compact-cards",
917
+ "mutable": false,
918
+ "complexType": {
919
+ "original": "boolean",
920
+ "resolved": "boolean",
921
+ "references": {}
922
+ },
923
+ "required": false,
924
+ "optional": false,
925
+ "docs": {
926
+ "tags": [],
927
+ "text": "Compact cards for drawer/list layouts"
928
+ },
929
+ "getter": false,
930
+ "setter": false,
931
+ "reflect": true
932
+ },
903
933
  "autoload": {
904
934
  "type": "boolean",
905
935
  "attribute": "autoload",
@@ -74,7 +74,15 @@ export class SallaProductsSlider {
74
74
  //todo:: find a better way to handle this request
75
75
  const isLandingPage = this.getSource() === 'landing-page';
76
76
  isLandingPage && (product.url = '');
77
- const handleClick = isLandingPage ? undefined : () => Helper.saveProductSource(this.getSource());
77
+ const handleClick = isLandingPage ? undefined : (event) => {
78
+ const target = event.target;
79
+ if (target.closest('salla-add-product-button')) {
80
+ Helper.saveAddToCartSource(this.getSource());
81
+ }
82
+ else {
83
+ Helper.saveProductSource(this.getSource());
84
+ }
85
+ };
78
86
  if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
79
87
  return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
80
88
  }
@@ -181,16 +181,22 @@ class Helper {
181
181
  productsIncludes() {
182
182
  return this.includes?.filter(field => field != 'metadata');
183
183
  }
184
- saveProductSource(source) {
184
+ saveSource(key, source) {
185
185
  if (!source)
186
186
  return;
187
187
  try {
188
- sessionStorage.setItem('s-viewed-source', source);
188
+ sessionStorage.setItem(key, source);
189
189
  }
190
190
  catch (error) {
191
- salla.logger.warn('Error saving product source to session storage');
191
+ salla.logger.warn('Error saving source to session storage');
192
192
  }
193
193
  }
194
+ saveProductSource(source) {
195
+ this.saveSource('s-viewed-source', source);
196
+ }
197
+ saveAddToCartSource(source) {
198
+ this.saveSource('s-add-to-cart-source', source);
199
+ }
194
200
  parseJson(includes) {
195
201
  if (typeof includes !== 'string') {
196
202
  return includes;