@salla.sa/twilight-components 2.14.444 → 2.14.445

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 (315) hide show
  1. package/dist/cjs/{filepond-Bbj7PmYR.js → filepond-DHzf3TcL.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CmQuPQcY.js → filepond-plugin-file-poster-BXm87rQo.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-sGTAJHie.js → filepond-plugin-file-validate-size-C5UIq4A2.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DhXaHZZZ.js → filepond-plugin-file-validate-type-DuhBUbfK.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-Cj8JCfAN.js → filepond-plugin-image-edit-B9-VYsWc.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-32JSai7q.js → filepond-plugin-image-exif-orientation-DMpSTznq.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BKmavM3U.js → filepond-plugin-image-preview-CMGkdkZi.js} +1 -1
  8. package/dist/cjs/{functions-lGTNolKl.js → functions-9Nj0nrLx.js} +1 -1
  9. package/dist/cjs/{index-BjjfvdmF.js → index-DQZXng_4.js} +2 -2
  10. package/dist/cjs/{index-BSEEzSJv.js → index-rElwQMYM.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  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-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +58 -42
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +144 -38
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +15 -4
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  83. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-BLOn0DiZ.js → tracked-promise-YvbHmmFp.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +2 -2
  100. package/dist/cjs/{vanilla-picker-C5CI4VSj.js → vanilla-picker-C02drqC1.js} +1 -1
  101. package/dist/collection/components/salla-gifting/salla-gifting.css +15 -0
  102. package/dist/collection/components/salla-gifting/salla-gifting.js +149 -36
  103. package/dist/collection/components/salla-order-edit/salla-order-edit.js +16 -4
  104. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +97 -41
  105. package/dist/components/index.js +2 -2
  106. package/dist/components/salla-gifting.js +170 -51
  107. package/dist/components/salla-order-edit.js +16 -4
  108. package/dist/components/salla-searchable-dropdown2.js +59 -41
  109. package/dist/esm/{filepond-BFX6xxhJ.js → filepond-D3RXwxDJ.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-poster-DwMxJsyL.js → filepond-plugin-file-poster-Bn0h-4qC.js} +1 -1
  111. package/dist/esm/{filepond-plugin-file-validate-size-BFwbB1wr.js → filepond-plugin-file-validate-size-CN-3nZup.js} +1 -1
  112. package/dist/esm/{filepond-plugin-file-validate-type-9VetG0aO.js → filepond-plugin-file-validate-type-BbLjL14b.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-edit-DqIgezI-.js → filepond-plugin-image-edit-Dr_0Kpj1.js} +1 -1
  114. package/dist/esm/{filepond-plugin-image-exif-orientation-B97i5tWf.js → filepond-plugin-image-exif-orientation-Bo8gf--w.js} +1 -1
  115. package/dist/esm/{filepond-plugin-image-preview-eGkx8PnH.js → filepond-plugin-image-preview-CkgdmQBn.js} +1 -1
  116. package/dist/esm/{functions-C1QgrjTx.js → functions-CsLl2GF-.js} +1 -1
  117. package/dist/esm/{index-BU_MkqNl.js → index-BZR5x5kv.js} +1 -1
  118. package/dist/esm/{index-CjquqEh1.js → index-DNtvpIPH.js} +2 -2
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  121. package/dist/esm/salla-accordion_6.entry.js +1 -1
  122. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  123. package/dist/esm/salla-advertisement.entry.js +1 -1
  124. package/dist/esm/salla-alert_2.entry.js +1 -1
  125. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  126. package/dist/esm/salla-apps-icons.entry.js +1 -1
  127. package/dist/esm/salla-badge.entry.js +1 -1
  128. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  129. package/dist/esm/salla-bullet-delivery_2.entry.js +58 -42
  130. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  131. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  132. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  133. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  134. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  135. package/dist/esm/salla-contacts.entry.js +1 -1
  136. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  137. package/dist/esm/salla-count-down.entry.js +1 -1
  138. package/dist/esm/salla-custom-fields.entry.js +1 -1
  139. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  140. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  141. package/dist/esm/salla-filters-widget.entry.js +1 -1
  142. package/dist/esm/salla-filters.entry.js +1 -1
  143. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  144. package/dist/esm/salla-gifting.entry.js +144 -38
  145. package/dist/esm/salla-hook.entry.js +1 -1
  146. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  147. package/dist/esm/salla-installment.entry.js +1 -1
  148. package/dist/esm/salla-list-tile.entry.js +1 -1
  149. package/dist/esm/salla-localization-modal.entry.js +1 -1
  150. package/dist/esm/salla-login-modal.entry.js +1 -1
  151. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  152. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  153. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  154. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  155. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  156. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  157. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  158. package/dist/esm/salla-loyalty.entry.js +1 -1
  159. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  160. package/dist/esm/salla-map.entry.js +1 -1
  161. package/dist/esm/salla-menu.entry.js +1 -1
  162. package/dist/esm/salla-metadata.entry.js +1 -1
  163. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  164. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  165. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  166. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  167. package/dist/esm/salla-notification-item.entry.js +1 -1
  168. package/dist/esm/salla-notifications.entry.js +1 -1
  169. package/dist/esm/salla-offer-modal.entry.js +1 -1
  170. package/dist/esm/salla-offer.entry.js +1 -1
  171. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  172. package/dist/esm/salla-order-details-options.entry.js +1 -1
  173. package/dist/esm/salla-order-details.entry.js +1 -1
  174. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  175. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  176. package/dist/esm/salla-order-edit.entry.js +15 -4
  177. package/dist/esm/salla-order-summary.entry.js +1 -1
  178. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  179. package/dist/esm/salla-orders.entry.js +1 -1
  180. package/dist/esm/salla-payments.entry.js +1 -1
  181. package/dist/esm/salla-placeholder.entry.js +1 -1
  182. package/dist/esm/salla-price-range.entry.js +1 -1
  183. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  184. package/dist/esm/salla-product-card_2.entry.js +1 -1
  185. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  186. package/dist/esm/salla-products-list.entry.js +1 -1
  187. package/dist/esm/salla-progress-bar.entry.js +1 -1
  188. package/dist/esm/salla-quick-order.entry.js +1 -1
  189. package/dist/esm/salla-rating-modal.entry.js +1 -1
  190. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  191. package/dist/esm/salla-scopes.entry.js +1 -1
  192. package/dist/esm/salla-search.entry.js +1 -1
  193. package/dist/esm/salla-skeleton.entry.js +1 -1
  194. package/dist/esm/salla-slider.entry.js +1 -1
  195. package/dist/esm/salla-social-share.entry.js +1 -1
  196. package/dist/esm/salla-social.entry.js +1 -1
  197. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  198. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  199. package/dist/esm/salla-tooltip.entry.js +1 -1
  200. package/dist/esm/salla-trust-badges.entry.js +1 -1
  201. package/dist/esm/salla-user-menu.entry.js +1 -1
  202. package/dist/esm/salla-user-profile.entry.js +1 -1
  203. package/dist/esm/salla-user-settings.entry.js +1 -1
  204. package/dist/esm/salla-verify.entry.js +1 -1
  205. package/dist/esm/salla-wallet.entry.js +1 -1
  206. package/dist/esm/{tracked-promise-CHodYJuF.js → tracked-promise-BnC5Z9K7.js} +1 -1
  207. package/dist/esm/twilight.js +3 -3
  208. package/dist/esm/{vanilla-picker-Dz2cnaJm.js → vanilla-picker-CF_W6ne1.js} +1 -1
  209. package/dist/twilight/{p-12383fc2.entry.js → p-007bf4b3.entry.js} +1 -1
  210. package/dist/twilight/{p-3376ea68.entry.js → p-0418d2eb.entry.js} +1 -1
  211. package/dist/twilight/{p-4fbe9195.entry.js → p-058d72ba.entry.js} +1 -1
  212. package/dist/twilight/{p-0bc373c3.entry.js → p-062e5544.entry.js} +1 -1
  213. package/dist/twilight/p-06496953.entry.js +4 -0
  214. package/dist/twilight/{p-ce3c2d87.entry.js → p-08344e0e.entry.js} +1 -1
  215. package/dist/twilight/{p-7b2f6272.entry.js → p-09aa60ca.entry.js} +1 -1
  216. package/dist/twilight/{p-0f268a17.entry.js → p-0aea9987.entry.js} +1 -1
  217. package/dist/twilight/{p-efca806c.entry.js → p-108fff84.entry.js} +1 -1
  218. package/dist/twilight/{p-4da7a36e.entry.js → p-13cbd6eb.entry.js} +1 -1
  219. package/dist/twilight/{p-d876814e.entry.js → p-14b4b77f.entry.js} +1 -1
  220. package/dist/twilight/{p-22ac20fb.entry.js → p-16e2e0a8.entry.js} +1 -1
  221. package/dist/twilight/p-185b629e.entry.js +4 -0
  222. package/dist/twilight/{p-4f7a053b.entry.js → p-186df566.entry.js} +1 -1
  223. package/dist/twilight/{p-b07ea02e.entry.js → p-2134195f.entry.js} +1 -1
  224. package/dist/twilight/{p-98404ee2.entry.js → p-2282abc4.entry.js} +1 -1
  225. package/dist/twilight/{p-041739c7.entry.js → p-28e39ff0.entry.js} +1 -1
  226. package/dist/twilight/{p-736037bf.entry.js → p-2b9deb4c.entry.js} +1 -1
  227. package/dist/twilight/{p-86cdc4f0.entry.js → p-2fb3d665.entry.js} +1 -1
  228. package/dist/twilight/{p-4858fee7.entry.js → p-318e0847.entry.js} +1 -1
  229. package/dist/twilight/{p-30159ed2.entry.js → p-34c2e75f.entry.js} +1 -1
  230. package/dist/twilight/{p-46aecc23.entry.js → p-38c677fb.entry.js} +1 -1
  231. package/dist/twilight/{p-d6d1a44f.entry.js → p-3953d2cc.entry.js} +1 -1
  232. package/dist/twilight/{p-549792e6.entry.js → p-3af39ede.entry.js} +1 -1
  233. package/dist/twilight/{p-bdb97cd6.entry.js → p-3da82405.entry.js} +1 -1
  234. package/dist/twilight/{p-c02a27a5.entry.js → p-4168d56d.entry.js} +1 -1
  235. package/dist/twilight/{p-51e355f4.entry.js → p-42e59b60.entry.js} +1 -1
  236. package/dist/twilight/{p-28503efc.entry.js → p-43e90789.entry.js} +1 -1
  237. package/dist/twilight/{p-7e5bd688.entry.js → p-455c6c0b.entry.js} +1 -1
  238. package/dist/twilight/{p-345fade3.entry.js → p-45f78030.entry.js} +1 -1
  239. package/dist/twilight/{p-c65eb0ee.entry.js → p-46bd695f.entry.js} +1 -1
  240. package/dist/twilight/{p-2c270887.entry.js → p-46f82b50.entry.js} +1 -1
  241. package/dist/twilight/{p-0aa1fc10.entry.js → p-52686e7d.entry.js} +1 -1
  242. package/dist/twilight/{p-386f7262.entry.js → p-52d2d246.entry.js} +1 -1
  243. package/dist/twilight/{p-432b5dc2.entry.js → p-53c2b30e.entry.js} +1 -1
  244. package/dist/twilight/{p-556d563d.entry.js → p-554e905e.entry.js} +1 -1
  245. package/dist/twilight/{p-9a029ffb.entry.js → p-561b7f43.entry.js} +1 -1
  246. package/dist/twilight/{p-cafc416d.entry.js → p-564007ad.entry.js} +1 -1
  247. package/dist/twilight/{p-113e46ae.entry.js → p-56bdf925.entry.js} +1 -1
  248. package/dist/twilight/{p-44bcc6ef.entry.js → p-589b4b5e.entry.js} +1 -1
  249. package/dist/twilight/{p-7a8e7d0f.entry.js → p-5da3194a.entry.js} +1 -1
  250. package/dist/twilight/{p-da47b179.entry.js → p-67a36054.entry.js} +1 -1
  251. package/dist/twilight/{p-dec3e314.entry.js → p-68fa49cc.entry.js} +1 -1
  252. package/dist/twilight/{p-b86e2768.entry.js → p-69498df8.entry.js} +1 -1
  253. package/dist/twilight/{p-OpqsYFJ7.js → p-6Cm0Ixpa.js} +2 -2
  254. package/dist/twilight/{p-c9403f34.entry.js → p-6c45e8fa.entry.js} +1 -1
  255. package/dist/twilight/{p-89c54193.entry.js → p-717782f4.entry.js} +1 -1
  256. package/dist/twilight/{p-9dc45831.entry.js → p-73409575.entry.js} +1 -1
  257. package/dist/twilight/{p-a85d96e2.entry.js → p-788c870c.entry.js} +1 -1
  258. package/dist/twilight/{p-9c3ff0a1.entry.js → p-7f805c47.entry.js} +1 -1
  259. package/dist/twilight/{p-48f717e0.entry.js → p-7ffd3938.entry.js} +1 -1
  260. package/dist/twilight/{p-0cc907b6.entry.js → p-819992c7.entry.js} +1 -1
  261. package/dist/twilight/{p-f933dbd9.entry.js → p-83a08f07.entry.js} +1 -1
  262. package/dist/twilight/{p-1ce6baf8.entry.js → p-86be6cee.entry.js} +1 -1
  263. package/dist/twilight/{p-6e230a2b.entry.js → p-87978156.entry.js} +1 -1
  264. package/dist/twilight/{p-b8acec24.entry.js → p-89bdd5e6.entry.js} +1 -1
  265. package/dist/twilight/{p-a3b2c406.entry.js → p-8d942086.entry.js} +1 -1
  266. package/dist/twilight/{p-2aa656f0.entry.js → p-8f0d2c32.entry.js} +1 -1
  267. package/dist/twilight/{p-f5a99491.entry.js → p-9b4d472b.entry.js} +1 -1
  268. package/dist/twilight/{p-d6b42548.entry.js → p-9e1f454d.entry.js} +1 -1
  269. package/dist/twilight/{p-CHlhCr-2.js → p-BGCZ19oG.js} +1 -1
  270. package/dist/twilight/{p-BAeNPoQd.js → p-Bc7fLLSC.js} +1 -1
  271. package/dist/twilight/{p-CiZS53-6.js → p-BxtnkpUH.js} +1 -1
  272. package/dist/twilight/{p-CZmvt3JS.js → p-C5-SqAXv.js} +1 -1
  273. package/dist/twilight/{p-XxMmLD82.js → p-CCzp4vsg.js} +1 -1
  274. package/dist/twilight/p-D9eZofcJ.js +4 -0
  275. package/dist/twilight/{p-4z9238xc.js → p-DEbQVTrF.js} +1 -1
  276. package/dist/twilight/{p-CjquqEh1.js → p-DNtvpIPH.js} +1 -1
  277. package/dist/twilight/{p-DcGM6DYo.js → p-D_Gt_HbS.js} +1 -1
  278. package/dist/twilight/{p-lbla8oyU.js → p-J5XAqGwq.js} +1 -1
  279. package/dist/twilight/{p-DizhqBLB.js → p-NWWejksc.js} +1 -1
  280. package/dist/twilight/{p-61ae022e.entry.js → p-a8aea13b.entry.js} +1 -1
  281. package/dist/twilight/{p-c191d2fc.entry.js → p-ab4d2172.entry.js} +1 -1
  282. package/dist/twilight/{p-9586467e.entry.js → p-ab565608.entry.js} +1 -1
  283. package/dist/twilight/{p-9aa7503c.entry.js → p-ada82ecc.entry.js} +1 -1
  284. package/dist/twilight/{p-d65cd0ca.entry.js → p-b25fd2a3.entry.js} +1 -1
  285. package/dist/twilight/{p-d47b2e4a.entry.js → p-bb2ecab7.entry.js} +1 -1
  286. package/dist/twilight/{p-dff8a0d3.entry.js → p-be76e4e7.entry.js} +1 -1
  287. package/dist/twilight/{p-87eaf990.entry.js → p-beb60b7e.entry.js} +1 -1
  288. package/dist/twilight/{p-f141b189.entry.js → p-c583a907.entry.js} +1 -1
  289. package/dist/twilight/{p-2ea272a5.entry.js → p-c81203f3.entry.js} +1 -1
  290. package/dist/twilight/{p-4532ccc9.entry.js → p-c86c3e12.entry.js} +1 -1
  291. package/dist/twilight/{p-bca4bdc7.entry.js → p-ccf623d3.entry.js} +1 -1
  292. package/dist/twilight/{p-40da7379.entry.js → p-d34e48ce.entry.js} +1 -1
  293. package/dist/twilight/{p-96be7ad7.entry.js → p-d618c0ee.entry.js} +1 -1
  294. package/dist/twilight/{p-ea7e46e8.entry.js → p-d6dba947.entry.js} +1 -1
  295. package/dist/twilight/{p-22c4ec76.entry.js → p-d8c3e606.entry.js} +1 -1
  296. package/dist/twilight/{p-b8a680fa.entry.js → p-db06baf6.entry.js} +1 -1
  297. package/dist/twilight/{p-89f289b8.entry.js → p-dd706055.entry.js} +1 -1
  298. package/dist/twilight/{p-e88b5134.entry.js → p-df7d2c53.entry.js} +1 -1
  299. package/dist/twilight/{p-928752cf.entry.js → p-dfc9dac3.entry.js} +1 -1
  300. package/dist/twilight/{p-d5c2fe58.entry.js → p-e902b0b4.entry.js} +1 -1
  301. package/dist/twilight/{p-271228e8.entry.js → p-eb8a0d2f.entry.js} +1 -1
  302. package/dist/twilight/{p-2d771a56.entry.js → p-ecb8c538.entry.js} +1 -1
  303. package/dist/twilight/{p-656f5c9f.entry.js → p-ed107904.entry.js} +1 -1
  304. package/dist/twilight/{p-658af936.entry.js → p-ee83c195.entry.js} +1 -1
  305. package/dist/twilight/{p-b1555436.entry.js → p-f48a00a8.entry.js} +1 -1
  306. package/dist/twilight/{p-f6741e14.entry.js → p-fa350b8c.entry.js} +1 -1
  307. package/dist/twilight/twilight.esm.js +1 -1
  308. package/dist/types/components/salla-gifting/salla-gifting.d.ts +23 -4
  309. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +4 -0
  310. package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +8 -0
  311. package/dist/types/components.d.ts +18 -0
  312. package/package.json +5 -5
  313. package/dist/twilight/p-2a75ac14.entry.js +0 -4
  314. package/dist/twilight/p-644ab356.entry.js +0 -4
  315. package/dist/twilight/p-vtSaduZY.js +0 -4
@@ -25,6 +25,7 @@ export class SallaOrderEdit {
25
25
  this.addProductConfirmLoading = false;
26
26
  this.mobileProductsModalMounted = false;
27
27
  this.isMobileViewport = false;
28
+ this.isRTL = true;
28
29
  // Plain field (not @State): scroll-loading guard never affects rendering, so avoid re-render churn.
29
30
  this.mobileProductsListLoading = false;
30
31
  this.confirming = false;
@@ -67,6 +68,9 @@ export class SallaOrderEdit {
67
68
  };
68
69
  this.defaultProductsListSource = 'latest';
69
70
  this.debouncedProductSearch = salla.helpers.debounce((query) => this.applyProductSearch(query), 500);
71
+ salla.onReady(() => {
72
+ this.isRTL = salla.config.get('theme.is_rtl', true);
73
+ });
70
74
  }
71
75
  getParsedExcludedCategories() {
72
76
  if (!this.excludedCategories) {
@@ -420,6 +424,13 @@ export class SallaOrderEdit {
420
424
  this.navigateToOrder();
421
425
  }
422
426
  }
427
+ returnToOrderDetails() {
428
+ this.confirming = true;
429
+ this.navigateToOrder();
430
+ }
431
+ getConfirmButtonIconClass() {
432
+ return this.isRTL ? 'sicon-keyboard_arrow_left' : 'sicon-keyboard_arrow_right';
433
+ }
423
434
  async cancelEditSession() {
424
435
  try {
425
436
  await salla.order.api.cancelEditSession(this.orderId);
@@ -469,7 +480,7 @@ export class SallaOrderEdit {
469
480
  const hasRemainingAmount = preview?.totals?.remaining_amount?.amount > 0;
470
481
  const hasRefundAmount = preview?.totals?.refund_amount?.amount > 0;
471
482
  const taxAmount = preview?.totals?.tax?.amount?.amount;
472
- return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", onModalVisibilityChanged: async (e) => {
483
+ return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", isClosable: false, onModalVisibilityChanged: async (e) => {
473
484
  if (!e.detail) {
474
485
  this.editPreview = null;
475
486
  if (!this.confirming) {
@@ -477,7 +488,7 @@ export class SallaOrderEdit {
477
488
  }
478
489
  this.confirming = false;
479
490
  }
480
- } }, h("div", { class: "s-order-edit-modal" }, h("h2", { class: "s-order-edit-modal-title" }, salla.lang.getWithDefault('pages.orders.edit_summary_title', 'ملخص الطلب بعد التعديل')), preview?.items?.length > 0 && (h("div", { class: "s-order-edit-modal-items" }, preview.items.map(item => {
491
+ } }, h("div", { class: "s-order-edit-modal" }, h("h2", { class: "s-order-edit-modal-title" }, salla.lang.getWithDefault('pages.orders.edit_summary_title', 'ملخص الطلب بعد التعديل')), h("p", { class: "s-order-edit-modal-subtitle" }, salla.lang.getWithDefault('pages.orders.cart_edits_saved', 'Your cart edits have been saved')), preview?.items?.length > 0 && (h("div", { class: "s-order-edit-modal-items" }, preview.items.map(item => {
481
492
  const orderItem = this.order?.items?.find(oi => oi.id == item.id);
482
493
  const imageUrl = orderItem?.product?.image?.url;
483
494
  const optionsLabel = item.options?.join('/ ');
@@ -486,7 +497,7 @@ export class SallaOrderEdit {
486
497
  ? salla.lang.getWithDefault('pages.orders.pay_difference', 'دفع فارق المبلغ')
487
498
  : hasRefundAmount
488
499
  ? salla.lang.getWithDefault('pages.orders.confirm_and_receive_difference', 'تأكيد واستلام فارق المبلغ')
489
- : salla.lang.getWithDefault('pages.orders.confirm_changes', 'تأكيد التعديلات'), h("i", { class: "sicon-keyboard_arrow_left s-order-edit-modal-btn-icon" }))))));
500
+ : salla.lang.getWithDefault('pages.orders.confirm_changes', 'تأكيد التعديلات'), h("i", { class: `${this.getConfirmButtonIconClass()} s-order-edit-modal-btn-icon` })), h("salla-button", { color: 'gray', fill: "outline", onClick: () => this.returnToOrderDetails() }, salla.lang.getWithDefault('pages.orders.back_to_order_details', 'العودة إلى تفاصيل الطلب'))))));
490
501
  }
491
502
  render() {
492
503
  if (this.loading) {
@@ -595,7 +606,8 @@ export class SallaOrderEdit {
595
606
  "addProductLoading": {},
596
607
  "addProductConfirmLoading": {},
597
608
  "mobileProductsModalMounted": {},
598
- "isMobileViewport": {}
609
+ "isMobileViewport": {},
610
+ "isRTL": {}
599
611
  };
600
612
  }
601
613
  static get listeners() {
@@ -16,6 +16,13 @@ export class SallaSearchableDropdown {
16
16
  this.searchQuery = '';
17
17
  this.clientSearch = false;
18
18
  this.dropUp = false;
19
+ this.searchable = true;
20
+ /**
21
+ * When true, the dropdown will NOT override the nearest scrollable ancestor's
22
+ * `overflow` to `visible` while open. Use this when the host (e.g. a modal
23
+ * body) needs to keep its own scrolling intact while the dropdown is open.
24
+ */
25
+ this.keepParentScroll = false;
19
26
  this.isOpen = false;
20
27
  this.focusedIndex = -1;
21
28
  this.clientSearchQuery = '';
@@ -29,14 +36,18 @@ export class SallaSearchableDropdown {
29
36
  }
30
37
  };
31
38
  this.handleTriggerKeyDown = (e) => {
32
- if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {
33
- e.preventDefault();
34
- if (!this.isOpen)
39
+ if (!this.isOpen) {
40
+ if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {
41
+ e.preventDefault();
35
42
  this.open();
43
+ }
44
+ else if (e.key === 'Escape') {
45
+ this.close();
46
+ }
47
+ return;
36
48
  }
37
- else if (e.key === 'Escape') {
38
- this.close();
39
- }
49
+ // When open without a search input, the trigger keeps focus and drives item navigation.
50
+ this.navigateItems(e);
40
51
  };
41
52
  this.handleSearchInputChange = (e) => {
42
53
  const value = e.target.value;
@@ -47,34 +58,7 @@ export class SallaSearchableDropdown {
47
58
  this.focusedIndex = -1;
48
59
  };
49
60
  this.handleSearchKeyDown = (e) => {
50
- const visibleItems = this.filteredItems;
51
- const itemCount = visibleItems.length;
52
- switch (e.key) {
53
- case 'ArrowDown':
54
- e.preventDefault();
55
- this.focusedIndex = itemCount > 0
56
- ? (this.focusedIndex + 1) % itemCount
57
- : -1;
58
- this.scrollFocusedIntoView();
59
- break;
60
- case 'ArrowUp':
61
- e.preventDefault();
62
- this.focusedIndex = itemCount > 0
63
- ? (this.focusedIndex - 1 + itemCount) % itemCount
64
- : -1;
65
- this.scrollFocusedIntoView();
66
- break;
67
- case 'Enter':
68
- e.preventDefault();
69
- if (this.focusedIndex >= 0 && this.focusedIndex < itemCount) {
70
- this.selectItem(visibleItems[this.focusedIndex]);
71
- }
72
- break;
73
- case 'Escape':
74
- e.preventDefault();
75
- this.close();
76
- break;
77
- }
61
+ this.navigateItems(e);
78
62
  };
79
63
  }
80
64
  connectedCallback() {
@@ -137,9 +121,11 @@ export class SallaSearchableDropdown {
137
121
  return;
138
122
  this.isOpen = true;
139
123
  this.focusedIndex = -1;
140
- this.scrollableAncestor = this.findScrollableAncestor();
141
- if (this.scrollableAncestor) {
142
- this.scrollableAncestor.style.overflow = 'visible';
124
+ if (!this.keepParentScroll) {
125
+ this.scrollableAncestor = this.findScrollableAncestor();
126
+ if (this.scrollableAncestor) {
127
+ this.scrollableAncestor.style.overflow = 'visible';
128
+ }
143
129
  }
144
130
  this.dropdownOpened.emit();
145
131
  requestAnimationFrame(() => this.searchInputRef?.focus());
@@ -156,6 +142,36 @@ export class SallaSearchableDropdown {
156
142
  }
157
143
  this.dropdownClosed.emit();
158
144
  }
145
+ navigateItems(e) {
146
+ const visibleItems = this.filteredItems;
147
+ const itemCount = visibleItems.length;
148
+ switch (e.key) {
149
+ case 'ArrowDown':
150
+ e.preventDefault();
151
+ this.focusedIndex = itemCount > 0
152
+ ? (this.focusedIndex + 1) % itemCount
153
+ : -1;
154
+ this.scrollFocusedIntoView();
155
+ break;
156
+ case 'ArrowUp':
157
+ e.preventDefault();
158
+ this.focusedIndex = itemCount > 0
159
+ ? (this.focusedIndex - 1 + itemCount) % itemCount
160
+ : -1;
161
+ this.scrollFocusedIntoView();
162
+ break;
163
+ case 'Enter':
164
+ e.preventDefault();
165
+ if (this.focusedIndex >= 0 && this.focusedIndex < itemCount) {
166
+ this.selectItem(visibleItems[this.focusedIndex]);
167
+ }
168
+ break;
169
+ case 'Escape':
170
+ e.preventDefault();
171
+ this.close();
172
+ break;
173
+ }
174
+ }
159
175
  scrollFocusedIntoView() {
160
176
  if (this.focusedIndex < 0)
161
177
  return;
@@ -172,18 +188,18 @@ export class SallaSearchableDropdown {
172
188
  render() {
173
189
  const hasSelection = this.selectedItem != null;
174
190
  const listboxId = `${this.inputId}-listbox`;
175
- return (h(Host, { key: '3545a75c07ae7c2a2c82ee54fa710f6f5d8bcfce', class: "s-searchable-dropdown" }, h("div", { key: '022fb98602228c5837cadb758f24f00956fafc22', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '24e09036df24d45ce74799ec06b20b03df866866', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '94277d1659f2b22c96de02a77a37920eefff13ef', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '077e0662f0570c1bf9339577e7699d75f9b337de', class: {
191
+ return (h(Host, { key: 'c529f2b61adbc38aa1e5403da6fdb985fe256baa', class: "s-searchable-dropdown" }, h("div", { key: '88ab96afd36421fdf965b79298fa14f435adbcef', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '6ee8a2d0428e1347e36eabec32a3129897481abc', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '8473884ec18e73c72c79e7749264bd9c24c56ae9', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'bffbea7ff0cb9466c8a852a841a21ed8351ef92d', class: {
176
192
  's-searchable-dropdown-trigger': true,
177
193
  's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
178
194
  's-searchable-dropdown-trigger--open': this.isOpen,
179
- }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '134a95003036f1c8a7df91a06542178e6ec12c04', class: {
195
+ }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: 'e3aee1ffe1b80a9ef21f4c9cca02de0a590b0825', class: {
180
196
  'sicon-keyboard_arrow_down': true,
181
197
  's-searchable-dropdown-trigger-icon': true,
182
198
  's-searchable-dropdown-trigger-icon--open': this.isOpen,
183
- }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'be6eb6c94d4b73c27959722ccb4bc87722035d1c', class: {
199
+ }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '7a19f2d6847b3e0dda5e0ea509df91a2f48fa098', class: {
184
200
  's-searchable-dropdown-panel': true,
185
201
  's-searchable-dropdown-panel--up': this.dropUp,
186
- }, ref: (el) => (this.panelRef = el) }, h("div", { key: 'd97ce90a0fd26043a45c1a45616f8fde621e8ac5', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'c7683e2dd873306e18afea983bb410827d883796', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '64c4259b6c5453a9b1cb5985c58c65dd01ec139f', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId })), h("div", { key: '9748f507fcb884b520ffc847800cc3543546b8ce', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
202
+ }, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '601529f76a09762a57fe7b7663ecfa1505462367', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'f91e464e7efed3759837880b5a7593daa4f84ecb', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'f72a7e12d0a6e90bab3983258c9b08aa286bc897', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '495aa88fc76d3d17956db7277cc98aff08b4c1af', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
187
203
  }
188
204
  renderListContent() {
189
205
  if (this.searching || this.loading) {
@@ -477,6 +493,46 @@ export class SallaSearchableDropdown {
477
493
  "setter": false,
478
494
  "reflect": false,
479
495
  "defaultValue": "false"
496
+ },
497
+ "searchable": {
498
+ "type": "boolean",
499
+ "attribute": "searchable",
500
+ "mutable": false,
501
+ "complexType": {
502
+ "original": "boolean",
503
+ "resolved": "boolean",
504
+ "references": {}
505
+ },
506
+ "required": false,
507
+ "optional": false,
508
+ "docs": {
509
+ "tags": [],
510
+ "text": ""
511
+ },
512
+ "getter": false,
513
+ "setter": false,
514
+ "reflect": false,
515
+ "defaultValue": "true"
516
+ },
517
+ "keepParentScroll": {
518
+ "type": "boolean",
519
+ "attribute": "keep-parent-scroll",
520
+ "mutable": false,
521
+ "complexType": {
522
+ "original": "boolean",
523
+ "resolved": "boolean",
524
+ "references": {}
525
+ },
526
+ "required": false,
527
+ "optional": false,
528
+ "docs": {
529
+ "tags": [],
530
+ "text": "When true, the dropdown will NOT override the nearest scrollable ancestor's\n`overflow` to `visible` while open. Use this when the host (e.g. a modal\nbody) needs to keep its own scrolling intact while the dropdown is open."
531
+ },
532
+ "getter": false,
533
+ "setter": false,
534
+ "reflect": false,
535
+ "defaultValue": "false"
480
536
  }
481
537
  };
482
538
  }