@salla.sa/twilight-components 3.0.14 → 3.0.16
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.
- package/dist/cjs/{Helper-BQjkdKQR.js → Helper-BV6HUQzI.js} +1 -1
- package/dist/cjs/{filepond-CxskOYg4.js → filepond-hJcaHnfM.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B07yRMJ1.js → filepond-plugin-file-poster-DDkDXFOe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DBnT1Dbq.js → filepond-plugin-file-validate-size-BBZimb8J.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-7J10P-y_.js → filepond-plugin-file-validate-type-B5VDnf33.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BCeiF3bq.js → filepond-plugin-image-edit-Cmuqwdn1.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BGLPVh4r.js → filepond-plugin-image-exif-orientation-BFjHgWMS.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CiJf5BH6.js → filepond-plugin-image-preview-C7Ow81pR.js} +1 -1
- package/dist/cjs/{index-_VQc877V.js → index-PB4iLztN.js} +11 -11
- package/dist/cjs/{intlTelInput-CtIksZen.js → intlTelInput-Ds-AW6H6.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +3 -3
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +21 -8
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-applied-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +101 -17
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +22 -9
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_9.cjs.entry.js +2 -2
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +16 -7
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +28 -12
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-items.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-payment.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-rewards.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +2 -2
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
- package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-thank-you-header.cjs.entry.js +1 -1
- package/dist/cjs/salla-thank-you-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +2 -2
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-C9MGx2jV.js → vanilla-picker-ZsewI4gd.js} +1 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +11 -6
- package/dist/collection/components/salla-color-picker/color-popup-placement.js +68 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.css +13 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +24 -5
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +14 -5
- package/dist/collection/components/salla-modal/salla-modal.css +4 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +27 -11
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +3 -0
- package/dist/collection/components/salla-product-options/salla-product-options.css +5 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js +5 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +9 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.css +8 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +19 -6
- package/dist/components/index.js +11 -11
- package/dist/components/salla-bullet-delivery.js +1 -1
- package/dist/components/salla-color-picker2.js +90 -6
- package/dist/components/salla-filters-widget2.js +14 -5
- package/dist/components/salla-modal2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +27 -11
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-product-options2.js +6 -2
- package/dist/components/salla-quick-buy2.js +13 -4
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-searchable-dropdown2.js +20 -7
- package/dist/docs.json +1 -1
- package/dist/esm/{Helper-ugQ_d05z.js → Helper-CsyfMJLx.js} +1 -1
- package/dist/esm/{filepond-CK3iWGQr.js → filepond-Cla3ae_2.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BLnEbCEA.js → filepond-plugin-file-poster-BO0nARSu.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-C-wYn6MJ.js → filepond-plugin-file-validate-size-CrcZ7P5c.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-C3sGrm0S.js → filepond-plugin-file-validate-type-Cci8f5e3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-cPTJjenQ.js → filepond-plugin-image-edit-y0q-Gkyo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DydDGbir.js → filepond-plugin-image-exif-orientation-WYrkP26J.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-qzrPDdAI.js → filepond-plugin-image-preview-Bz0ZRBQp.js} +1 -1
- package/dist/esm/{index-Dn-G-rYP.js → index-DJuBNP7w.js} +11 -11
- package/dist/esm/{intlTelInput-T1Xx9nML.js → intlTelInput-Dcl0COqn.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +3 -3
- package/dist/esm/salla-add-product-button_5.entry.js +21 -8
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-applied-filters.entry.js +2 -2
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +101 -17
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +22 -9
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_9.entry.js +2 -2
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +16 -7
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
- package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_3.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +28 -12
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-items.entry.js +1 -1
- package/dist/esm/salla-order-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-payment.entry.js +1 -1
- package/dist/esm/salla-order-rewards.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +2 -2
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +2 -2
- package/dist/esm/salla-products-slider.entry.js +2 -2
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search-product-card.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-thank-you-header.entry.js +1 -1
- package/dist/esm/salla-thank-you-page.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/salla-wishlist-summary.entry.js +2 -2
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-BOVm7kmN.js → vanilla-picker-DPvEywPm.js} +1 -1
- package/dist/twilight/{p-f5f11216.entry.js → p-03e6d42b.entry.js} +1 -1
- package/dist/twilight/{p-5bc57eed.entry.js → p-05e1fc6a.entry.js} +1 -1
- package/dist/twilight/{p-7ab19f36.entry.js → p-09c651a2.entry.js} +1 -1
- package/dist/twilight/{p-e7ea698c.entry.js → p-0c292c9a.entry.js} +1 -1
- package/dist/twilight/{p-b6091333.entry.js → p-1267d95a.entry.js} +1 -1
- package/dist/twilight/{p-b4d9592e.entry.js → p-134692f5.entry.js} +1 -1
- package/dist/twilight/{p-8f3dc174.entry.js → p-1436b465.entry.js} +1 -1
- package/dist/twilight/{p-5c66077d.entry.js → p-15098cb1.entry.js} +1 -1
- package/dist/twilight/{p-f1a17520.entry.js → p-189fa3c4.entry.js} +1 -1
- package/dist/twilight/{p-d2ad4fb1.entry.js → p-19bf11c5.entry.js} +1 -1
- package/dist/twilight/{p-981c4a07.entry.js → p-1a7b0a2b.entry.js} +1 -1
- package/dist/twilight/{p-52eafe02.entry.js → p-1c2d9885.entry.js} +1 -1
- package/dist/twilight/{p-990aab23.entry.js → p-1e7a0a4f.entry.js} +1 -1
- package/dist/twilight/{p-9427a193.entry.js → p-20642013.entry.js} +1 -1
- package/dist/twilight/{p-66ef5e3b.entry.js → p-2ce991e8.entry.js} +1 -1
- package/dist/twilight/p-33689489.entry.js +4 -0
- package/dist/twilight/{p-335f1b26.entry.js → p-343f57ea.entry.js} +1 -1
- package/dist/twilight/{p-7aa902e6.entry.js → p-370924c0.entry.js} +1 -1
- package/dist/twilight/{p-bfa4a20f.entry.js → p-382dc313.entry.js} +1 -1
- package/dist/twilight/{p-684b21cf.entry.js → p-3b3f1838.entry.js} +1 -1
- package/dist/twilight/p-3b4aa865.entry.js +4 -0
- package/dist/twilight/{p-70f78e11.entry.js → p-3b6efc6e.entry.js} +1 -1
- package/dist/twilight/{p-05262172.entry.js → p-3cbcec7c.entry.js} +1 -1
- package/dist/twilight/p-3f701181.entry.js +4 -0
- package/dist/twilight/p-3f713fc0.entry.js +4 -0
- package/dist/twilight/{p-39c11b35.entry.js → p-43700093.entry.js} +1 -1
- package/dist/twilight/{p-2bb77526.entry.js → p-43a4e000.entry.js} +1 -1
- package/dist/twilight/{p-599174df.entry.js → p-48fb615e.entry.js} +1 -1
- package/dist/twilight/{p-8437a046.entry.js → p-4a07e070.entry.js} +1 -1
- package/dist/twilight/{p-283a2486.entry.js → p-4a3d4c28.entry.js} +1 -1
- package/dist/twilight/{p-09bf959a.entry.js → p-4a843e15.entry.js} +1 -1
- package/dist/twilight/{p-fc6062ff.entry.js → p-4be6e307.entry.js} +1 -1
- package/dist/twilight/{p-ea07e117.entry.js → p-52749db7.entry.js} +1 -1
- package/dist/twilight/{p-c089ca19.entry.js → p-537748de.entry.js} +1 -1
- package/dist/twilight/{p-5de673df.entry.js → p-558f8ee0.entry.js} +1 -1
- package/dist/twilight/{p-ec989a0b.entry.js → p-5aa8ec0a.entry.js} +1 -1
- package/dist/twilight/{p-38e5d462.entry.js → p-5b52ef24.entry.js} +1 -1
- package/dist/twilight/{p-5ceb5a28.entry.js → p-5b60ebdf.entry.js} +1 -1
- package/dist/twilight/{p-efe2645b.entry.js → p-5e8b7483.entry.js} +1 -1
- package/dist/twilight/{p-dcb56554.entry.js → p-5f1b28e3.entry.js} +1 -1
- package/dist/twilight/{p-bcdd8e20.entry.js → p-5f5c4f3c.entry.js} +1 -1
- package/dist/twilight/{p-9613f87f.entry.js → p-615edf90.entry.js} +1 -1
- package/dist/twilight/{p-e7a73278.entry.js → p-63053048.entry.js} +1 -1
- package/dist/twilight/{p-2e89ccdc.entry.js → p-67bb5e0c.entry.js} +1 -1
- package/dist/twilight/{p-b8611dc1.entry.js → p-6a8d04d9.entry.js} +1 -1
- package/dist/twilight/{p-b0b0cd7e.entry.js → p-70d5d802.entry.js} +1 -1
- package/dist/twilight/{p-b02e0f10.entry.js → p-72092eff.entry.js} +1 -1
- package/dist/twilight/{p-ebed26e5.entry.js → p-74238c01.entry.js} +1 -1
- package/dist/twilight/{p-9bb4bbae.entry.js → p-75015061.entry.js} +1 -1
- package/dist/twilight/{p-d9a48543.entry.js → p-788c0264.entry.js} +1 -1
- package/dist/twilight/{p-59ed15d0.entry.js → p-792f1e05.entry.js} +1 -1
- package/dist/twilight/{p-66425015.entry.js → p-8278e31a.entry.js} +1 -1
- package/dist/twilight/{p-5a351bdd.entry.js → p-82d50064.entry.js} +1 -1
- package/dist/twilight/{p-4655a08a.entry.js → p-86ade991.entry.js} +1 -1
- package/dist/twilight/{p-b7b764f3.entry.js → p-86db3fe8.entry.js} +1 -1
- package/dist/twilight/{p-26087245.entry.js → p-8907ef61.entry.js} +1 -1
- package/dist/twilight/{p-50a77bcb.entry.js → p-8a7bce99.entry.js} +1 -1
- package/dist/twilight/{p-b1aa9b07.entry.js → p-8b72b7a2.entry.js} +1 -1
- package/dist/twilight/{p-34df5588.entry.js → p-8cb6dfd9.entry.js} +1 -1
- package/dist/twilight/{p-962a2992.entry.js → p-8e6bc10e.entry.js} +1 -1
- package/dist/twilight/{p-13d92c04.entry.js → p-91ef7c89.entry.js} +1 -1
- package/dist/twilight/{p-aa5b00be.entry.js → p-927d1967.entry.js} +1 -1
- package/dist/twilight/{p-f14048bd.entry.js → p-951f1af4.entry.js} +1 -1
- package/dist/twilight/{p-e8b90fe9.entry.js → p-96be66eb.entry.js} +1 -1
- package/dist/twilight/{p-5f6c393d.entry.js → p-96e16a6b.entry.js} +1 -1
- package/dist/twilight/{p-19d5537e.entry.js → p-9b02e779.entry.js} +1 -1
- package/dist/twilight/{p-8b0230f7.entry.js → p-9b46c1ab.entry.js} +1 -1
- package/dist/twilight/{p-e1eca1c0.entry.js → p-9e24dec9.entry.js} +1 -1
- package/dist/twilight/{p-230d1bae.entry.js → p-9e8c583a.entry.js} +1 -1
- package/dist/twilight/{p-bb653aa9.entry.js → p-9f920812.entry.js} +1 -1
- package/dist/twilight/{p-0dc3f5c3.entry.js → p-9f9ab89c.entry.js} +1 -1
- package/dist/twilight/{p-BCAqnsw2.js → p-BPjqOy84.js} +1 -1
- package/dist/twilight/{p-iyDT2D68.js → p-BgGU8BXX.js} +1 -1
- package/dist/twilight/{p-CByYU0cc.js → p-C9eNuCn7.js} +1 -1
- package/dist/twilight/{p-CTMAmboj.js → p-CRYD9K0S.js} +1 -1
- package/dist/twilight/{p-CQzEIWvJ.js → p-CqENl4Wm.js} +1 -1
- package/dist/twilight/{p-BT-nRs3_.js → p-DCUZjQXX.js} +1 -1
- package/dist/twilight/{p-BDRIrndf.js → p-DHk7-wXk.js} +1 -1
- package/dist/twilight/p-DJuBNP7w.js +5 -0
- package/dist/twilight/p-DliR9Sp1.js +9 -0
- package/dist/twilight/{p-BbBadi9B.js → p-Do-w5Os8.js} +1 -1
- package/dist/twilight/{p-392658ea.entry.js → p-a16f2376.entry.js} +1 -1
- package/dist/twilight/{p-0747fdf2.entry.js → p-a36e2dcf.entry.js} +1 -1
- package/dist/twilight/{p-f75a8197.entry.js → p-a6ba5168.entry.js} +1 -1
- package/dist/twilight/{p-72051130.entry.js → p-a7d2613b.entry.js} +1 -1
- package/dist/twilight/{p-61a94823.entry.js → p-a8f88ea6.entry.js} +1 -1
- package/dist/twilight/p-a92e5068.entry.js +4 -0
- package/dist/twilight/{p-e57bbd99.entry.js → p-a9a8a819.entry.js} +1 -1
- package/dist/twilight/{p-ced36894.entry.js → p-aa210c8a.entry.js} +1 -1
- package/dist/twilight/{p-f38619d5.entry.js → p-b1aa33f3.entry.js} +1 -1
- package/dist/twilight/{p-ae2b2f4e.entry.js → p-b798788b.entry.js} +1 -1
- package/dist/twilight/{p-c3a4cf47.entry.js → p-b891f863.entry.js} +1 -1
- package/dist/twilight/{p-6a689318.entry.js → p-b90d0e51.entry.js} +1 -1
- package/dist/twilight/{p-32a4f4fa.entry.js → p-be203bd9.entry.js} +1 -1
- package/dist/twilight/{p-761ff2ee.entry.js → p-be84879f.entry.js} +1 -1
- package/dist/twilight/{p-150b90b8.entry.js → p-bf12f616.entry.js} +1 -1
- package/dist/twilight/{p-ac2ebf6b.entry.js → p-c33be542.entry.js} +1 -1
- package/dist/twilight/{p-8ea4b8bf.entry.js → p-c657883d.entry.js} +1 -1
- package/dist/twilight/{p-cc3a777c.entry.js → p-caac5694.entry.js} +1 -1
- package/dist/twilight/{p-80512599.entry.js → p-cfe523ab.entry.js} +1 -1
- package/dist/twilight/{p-290c8241.entry.js → p-d5b394c9.entry.js} +1 -1
- package/dist/twilight/{p-6899b648.entry.js → p-dcfd3688.entry.js} +1 -1
- package/dist/twilight/{p-ca8277a1.entry.js → p-de458068.entry.js} +1 -1
- package/dist/twilight/{p-93fcb7e3.entry.js → p-def7b9c4.entry.js} +1 -1
- package/dist/twilight/{p-d7203748.entry.js → p-e651c3ee.entry.js} +1 -1
- package/dist/twilight/{p-97e38038.entry.js → p-e66f1b70.entry.js} +1 -1
- package/dist/twilight/p-e67fdc9d.entry.js +4 -0
- package/dist/twilight/{p-501bb75a.entry.js → p-ebb756bc.entry.js} +1 -1
- package/dist/twilight/{p-5b34ccd4.entry.js → p-f1037da9.entry.js} +1 -1
- package/dist/twilight/{p-c4327d6f.entry.js → p-f2062f34.entry.js} +1 -1
- package/dist/twilight/{p-c8659c23.entry.js → p-f24a477c.entry.js} +1 -1
- package/dist/twilight/{p-b117b67e.entry.js → p-f46da712.entry.js} +1 -1
- package/dist/twilight/{p-BsTxLQBI.js → p-pOFi82Pb.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-color-picker/color-popup-placement.d.ts +49 -0
- package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +1 -1
- package/dist/types/components/salla-filters-widget/salla-filters-widget.d.ts +2 -0
- package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +2 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +1 -0
- package/dist/types/components/salla-scopes/interfaces.d.ts +2 -0
- package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-1ba2b88b.entry.js +0 -4
- package/dist/twilight/p-2e744c1d.entry.js +0 -4
- package/dist/twilight/p-3ee7714e.entry.js +0 -4
- package/dist/twilight/p-6925ffe5.entry.js +0 -4
- package/dist/twilight/p-CtmwvhFW.js +0 -9
- package/dist/twilight/p-Dn-G-rYP.js +0 -5
- package/dist/twilight/p-c16b1399.entry.js +0 -4
- package/dist/twilight/p-c1e27a9b.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-PB4iLztN.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = "/*!twlt*/@charset \"UTF-8\";.s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}.s-wallet-summary{display:flex;align-items:stretch;gap:16px;margin-bottom:28px}.s-wallet-balance-card{flex:0 0 34%;max-width:240px;background:#fff;border-radius:12px;padding:20px;box-sizing:border-box}.s-wallet-balance-mark{width:48px;height:48px;border-radius:9999px;background:var(--color-primary-reverse, #eaf7f0);color:var(--color-primary, #2e8b57);display:inline-flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:12px}.s-wallet-balance-figure{font-size:18px;font-weight:700;color:#1c1c1c}.s-wallet-balance-label{margin-top:2px;font-size:12px;color:#9aa0a6}.s-wallet-amount{display:inline-flex;align-items:center;gap:4px;font-weight:700;white-space:nowrap}.s-wallet-amount-credit{color:#00af6c}.s-wallet-amount-debit{color:#f55157}.s-wallet-transaction-type{display:flex;align-items:center;color:#4b5563}@media screen and (min-width: 768px){.s-wallet-balance-card{display:flex;flex-direction:column;justify-content:center}}@media screen and (max-width: 767px){.s-wallet-summary{gap:12px;margin-bottom:20px}.s-wallet-balance-card{flex:0 0 38%;padding:16px;text-align:center}.s-wallet-balance-mark{margin-bottom:8px}}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.table{display:table}.hidden{display:none}.items-center{align-items:center}.p-3{padding:0.75rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-wallet-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-wallet-mobile-title{display:none}}.s-wallet-reference-id{display:none}@media (min-width: 768px){.s-wallet-reference-id{display:inline-block}}.s-wallet-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-wallet-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-wallet-copy-to-clipboard-button{display:none}}.s-wallet-copy-to-clipboard-button salla-button{position:relative}.s-wallet-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-wallet-status-container{margin-left:0px;margin-right:0px}}.s-wallet-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-wallet-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-wallet-status-container i{margin-top:0.25rem}.s-wallet-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-wallet-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-wallet-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-wallet-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-wallet-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-wallet-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-wallet-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-wallet-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-wallet-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-wallet-table-head{display:table-header-group}}.s-wallet-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-wallet-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-wallet-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-wallet-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-wallet-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-wallet-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-wallet-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-wallet-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-wallet-table-tbody-tr-td{height:5rem;width:auto}.s-wallet-table-tbody-tr-td:last-child{text-align:end}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}.s-wallet-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem}@media (min-width: 768px){.s-wallet-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-wallet-table-tbody-tr-td-content:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-right:0.5rem}.s-wallet-table-tbody-tr-td-content:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:0.5rem}.s-wallet-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-wallet-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-wallet-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}@media (min-width: 768px){.md\\:mx-0{margin-left:0px;margin-right:0px}.md\\:inline-block{display:inline-block}.md\\:hidden{display:none}}.ltr\\:ml-auto:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.ltr\\:mr-4:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:1rem}.rtl\\:ml-4:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:1rem}.rtl\\:mr-auto:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-PB4iLztN.js');
|
|
7
7
|
|
|
8
8
|
const sallaWishlistActionsCss = "/*!twlt*/:host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}.static{position:static}.absolute{position:absolute}.relative{position:relative}.z-20{z-index:20}.mb-3{margin-bottom:0.75rem}.mt-1{margin-top:0.25rem}.mt-3{margin-top:0.75rem}.flex{display:flex}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:0.5rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}";
|
|
9
9
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-PB4iLztN.js');
|
|
7
7
|
var heart = require('./heart-ClVn_Co8.js');
|
|
8
|
-
var Helper = require('./Helper-
|
|
8
|
+
var Helper = require('./Helper-BV6HUQzI.js');
|
|
9
9
|
|
|
10
10
|
const sallaWishlistSummaryCss = "/*!twlt*/:host{display:inline-flex;align-items:center;margin-inline-start:1rem}.hidden{display:none}.s-wishlist-summary-wrapper{position:relative;margin-inline-start:0.75rem;display:inline-flex;align-items:center;border-style:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-wishlist-summary-wrapper:hover{opacity:0.8}.s-wishlist-summary-icon{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-color:var(--color-border,#e5e7eb);color:var(--color-text-primary,#374151)}.s-wishlist-summary-icon svg{height:1.25rem;width:1.25rem;fill:currentColor}.s-wishlist-summary-count{position:absolute;top:-4px;left:-6px;display:inline-flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding:0.25rem;font-size:0.75rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-wishlist-summary-count:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:unset;right:-6px}";
|
|
11
11
|
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -14,11 +14,14 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
/* Allow searchable dropdown popover to paint outside the modal body
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/* Allow searchable dropdown popover to paint outside the modal body (tablet/desktop only).
|
|
18
|
+
On mobile the modal body is the bottom-sheet scroll container (overflow-y: auto); forcing it
|
|
19
|
+
visible lets the panel run off-screen so the options can't be reached or scrolled. */
|
|
20
|
+
@media screen and (min-width: 640px) {
|
|
21
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
22
|
+
overflow: visible !important;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
|
-
|
|
22
25
|
.s-bullet-delivery-form-actions.s-bullet-delivery-form-actions--single {
|
|
23
26
|
padding-bottom: 0;
|
|
24
27
|
flex-direction: column;
|
|
@@ -455,8 +458,10 @@
|
|
|
455
458
|
overflow-y: auto;
|
|
456
459
|
}
|
|
457
460
|
}
|
|
458
|
-
|
|
459
|
-
|
|
461
|
+
@media (min-width: 640px){
|
|
462
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open){
|
|
463
|
+
overflow: visible !important;
|
|
464
|
+
}
|
|
460
465
|
}
|
|
461
466
|
.s-bullet-delivery-inner{
|
|
462
467
|
min-block-size: 0;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'clip', 'scroll']);
|
|
5
|
+
/**
|
|
6
|
+
* Intersect the viewport with the nearest ancestor that clips each axis.
|
|
7
|
+
* `overflow-x` / `overflow-y` of `hidden`, `auto`, `clip`, or `scroll` clip.
|
|
8
|
+
* `visible` does not.
|
|
9
|
+
*/
|
|
10
|
+
export function clippingFrame(start, viewport) {
|
|
11
|
+
const frame = {
|
|
12
|
+
left: 0,
|
|
13
|
+
right: viewport.width,
|
|
14
|
+
top: 0,
|
|
15
|
+
bottom: viewport.height,
|
|
16
|
+
};
|
|
17
|
+
let clipsX = false;
|
|
18
|
+
let clipsY = false;
|
|
19
|
+
let node = start.parentElement;
|
|
20
|
+
while (node && (!clipsX || !clipsY)) {
|
|
21
|
+
const style = getComputedStyle(node);
|
|
22
|
+
const hitX = !clipsX && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
23
|
+
const hitY = !clipsY && CLIPPING_OVERFLOW.has(style.overflowY);
|
|
24
|
+
if (hitX || hitY) {
|
|
25
|
+
const rect = node.getBoundingClientRect();
|
|
26
|
+
if (hitX) {
|
|
27
|
+
frame.left = Math.max(frame.left, rect.left);
|
|
28
|
+
frame.right = Math.min(frame.right, rect.right);
|
|
29
|
+
clipsX = true;
|
|
30
|
+
}
|
|
31
|
+
if (hitY) {
|
|
32
|
+
frame.top = Math.max(frame.top, rect.top);
|
|
33
|
+
frame.bottom = Math.min(frame.bottom, rect.bottom);
|
|
34
|
+
clipsY = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
node = node.parentElement;
|
|
38
|
+
}
|
|
39
|
+
return frame;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Keep the legacy popup position unless it leaves the visible frame.
|
|
43
|
+
* The frame is the viewport, or the viewport intersected with a clipping ancestor.
|
|
44
|
+
* Open downward unless that would clip the Ok button and there is more room above.
|
|
45
|
+
* `shift` is a pixel correction on top of the left already applied.
|
|
46
|
+
*/
|
|
47
|
+
export function placeColorPopup(input) {
|
|
48
|
+
const margin = input.margin ?? 8;
|
|
49
|
+
const { popup, widget, viewport } = input;
|
|
50
|
+
const frame = input.frame ?? {
|
|
51
|
+
left: 0,
|
|
52
|
+
right: viewport.width,
|
|
53
|
+
top: 0,
|
|
54
|
+
bottom: viewport.height,
|
|
55
|
+
};
|
|
56
|
+
const spaceBelow = frame.bottom - widget.bottom;
|
|
57
|
+
const spaceAbove = widget.top - frame.top;
|
|
58
|
+
const clipsBottom = popup.bottom > frame.bottom - margin;
|
|
59
|
+
const side = clipsBottom && spaceAbove > spaceBelow ? 'top' : 'bottom';
|
|
60
|
+
let shift = 0;
|
|
61
|
+
if (popup.left < frame.left + margin) {
|
|
62
|
+
shift = frame.left + margin - popup.left;
|
|
63
|
+
}
|
|
64
|
+
else if (popup.right > frame.right - margin) {
|
|
65
|
+
shift = frame.right - margin - popup.right;
|
|
66
|
+
}
|
|
67
|
+
return { side, shift };
|
|
68
|
+
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
/*!twlt*/.
|
|
1
|
+
/*!twlt*/.visible {
|
|
2
|
+
visibility: visible
|
|
3
|
+
}
|
|
4
|
+
.hidden {
|
|
5
|
+
display: none
|
|
6
|
+
}
|
|
7
|
+
.resize {
|
|
2
8
|
resize: both
|
|
3
9
|
}
|
|
4
10
|
.s-hidden {
|
|
@@ -14,6 +20,12 @@
|
|
|
14
20
|
--tw-shadow-colored: 0 0 #0000 !important;
|
|
15
21
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important
|
|
16
22
|
}
|
|
23
|
+
.s-color-picker-main .picker_wrapper.popup {
|
|
24
|
+
z-index: 30 !important
|
|
25
|
+
}
|
|
26
|
+
.s-color-picker-main .picker_wrapper.\!popup {
|
|
27
|
+
z-index: 30 !important
|
|
28
|
+
}
|
|
17
29
|
.s-color-picker-main .picker_arrow {
|
|
18
30
|
display: none
|
|
19
31
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { h, Host, } from "@stencil/core";
|
|
5
5
|
import ArrowDown from "../../assets/svg/keyboard_arrow_down.svg";
|
|
6
6
|
import { isSallaSdkAvailable } from "../../utils/ssr-helpers";
|
|
7
|
+
import { clippingFrame, placeColorPopup } from "./color-popup-placement";
|
|
7
8
|
export class SallaColorPicker {
|
|
8
9
|
constructor() {
|
|
9
10
|
/** Lazy-loaded to avoid bundling vanilla-picker (Babel polyfills) into main/hydrate bundle. */
|
|
@@ -159,12 +160,13 @@ export class SallaColorPicker {
|
|
|
159
160
|
return 375;
|
|
160
161
|
}
|
|
161
162
|
setPopInPosition() {
|
|
162
|
-
//
|
|
163
|
-
//
|
|
163
|
+
// Legacy offset still uses the breakpoint cache, not innerWidth.
|
|
164
|
+
// The clip check reads the viewport and the nearest clipping ancestor
|
|
165
|
+
// in the same turn as getBoundingClientRect, so those reads share that layout flush.
|
|
164
166
|
const viewportWidth = this.cachedViewportWidth || this.getViewportWidthFromBreakpoints();
|
|
165
167
|
const popup = this.host.querySelector('.picker_wrapper');
|
|
166
168
|
const widgetEl = this.host.querySelector('.s-color-picker-widget');
|
|
167
|
-
if (!popup || !widgetEl)
|
|
169
|
+
if (!popup || !widgetEl || typeof window === 'undefined')
|
|
168
170
|
return;
|
|
169
171
|
const widgetPosition = widgetEl.getBoundingClientRect();
|
|
170
172
|
const widgetToWindowEq = viewportWidth / 2 - widgetPosition.width / 2;
|
|
@@ -179,7 +181,24 @@ export class SallaColorPicker {
|
|
|
179
181
|
popup.style.left = 'auto';
|
|
180
182
|
}
|
|
181
183
|
if (!isMobile || (isMobile && ((!widgetInRight && !widgetInLeft) || widgetInCenter))) {
|
|
182
|
-
popup.style.left =
|
|
184
|
+
popup.style.left = '-95px';
|
|
185
|
+
}
|
|
186
|
+
popup.classList.add('popup_bottom');
|
|
187
|
+
popup.classList.remove('popup_top');
|
|
188
|
+
const viewport = { width: window.innerWidth, height: window.innerHeight };
|
|
189
|
+
const placement = placeColorPopup({
|
|
190
|
+
popup: popup.getBoundingClientRect(),
|
|
191
|
+
widget: { top: widgetPosition.top, bottom: widgetPosition.bottom },
|
|
192
|
+
viewport,
|
|
193
|
+
frame: clippingFrame(popup, viewport),
|
|
194
|
+
});
|
|
195
|
+
popup.classList.remove('popup_bottom');
|
|
196
|
+
popup.classList.remove('popup_top');
|
|
197
|
+
popup.classList.add(placement.side === 'top' ? 'popup_top' : 'popup_bottom');
|
|
198
|
+
if (placement.shift !== 0) {
|
|
199
|
+
const base = popup.style.left === 'auto' ? parseFloat(getComputedStyle(popup).left) || 0 : parseFloat(popup.style.left);
|
|
200
|
+
popup.style.left = `${base + placement.shift}px`;
|
|
201
|
+
popup.style.right = 'auto';
|
|
183
202
|
}
|
|
184
203
|
}
|
|
185
204
|
initColorPicker() {
|
|
@@ -203,7 +222,7 @@ export class SallaColorPicker {
|
|
|
203
222
|
});
|
|
204
223
|
}
|
|
205
224
|
render() {
|
|
206
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: '9b733fabacb7d18cbe2dee845ef96d7770fad402', class: "s-color-picker-main" }, h("slot", { key: '077d47dc2a759500db5eb588df1caa05a3d04ecc', name: "widget" }, h("div", { key: '76252b75d56cdc0587c327b5c0777a91d8e8dcba', class: "s-color-picker-widget" }, h("div", { key: '334ce5f8aa8ab3b529fa19310b551f2f57a776ea', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'b43c29d5e939ee7da3b69257c088efb1e9871737', innerHTML: ArrowDown }))), h("input", { key: 'c607e63377ceab32cd6cf77de572c0e2afbf72c7', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
|
|
207
226
|
}
|
|
208
227
|
componentDidLoad() {
|
|
209
228
|
if (this.canvas)
|
|
@@ -120,8 +120,14 @@ export class SallaFiltersWidget {
|
|
|
120
120
|
if (![FilterOptionTypes.VALUES, FilterOptionTypes.MINIMUM, FilterOptionTypes.VARIANTS].includes(option.type)) {
|
|
121
121
|
return '';
|
|
122
122
|
}
|
|
123
|
+
// snapshot once per widget instance: selected options float to the top on page load
|
|
124
|
+
// only, so checking a box later doesn't shuffle the list under the cursor
|
|
125
|
+
if (!this.pinnedValues) {
|
|
126
|
+
//@ts-ignore
|
|
127
|
+
this.pinnedValues = new Set(option.values.map(v => this.optionValue(v)).filter(v => this.isSelectedOption(option, v)));
|
|
128
|
+
}
|
|
123
129
|
//@ts-ignore
|
|
124
|
-
const filteredValues = option.values.filter((filterOption) => {
|
|
130
|
+
const filteredValues = [...option.values].sort((a, b) => Number(this.pinnedValues.has(this.optionValue(b))) - Number(this.pinnedValues.has(this.optionValue(a)))).filter((filterOption) => {
|
|
125
131
|
if (!this.searchQuery)
|
|
126
132
|
return true;
|
|
127
133
|
const label = typeof filterOption === 'number'
|
|
@@ -136,11 +142,14 @@ export class SallaFiltersWidget {
|
|
|
136
142
|
return (h("div", { class: "s-filters-widget-empty-state" }, salla.lang.get('common.elements.no_options') || 'لا توجد نتائج'));
|
|
137
143
|
}
|
|
138
144
|
//@ts-ignore
|
|
139
|
-
return filteredValues.map((filterOption
|
|
140
|
-
|
|
145
|
+
return filteredValues.map((filterOption) => {
|
|
146
|
+
const value = this.optionValue(filterOption);
|
|
141
147
|
return h("label", { class: "s-filters-label", htmlFor: `${option.key}-option-${value}`, key: `${option.key}-option-${value}` }, h("input", { id: `${option.key}-option-${value}`, name: option.key, type: option.type === FilterOptionTypes.VALUES ? 'checkbox' : 'radio', checked: this.isSelectedOption(option, value), class: option.type === FilterOptionTypes.VALUES ? 's-filters-checkbox' : 's-filters-radio', onChange: event => this.changed.emit({ event, option, value }) }), this.getOptionLabel(option, filterOption));
|
|
142
148
|
});
|
|
143
149
|
}
|
|
150
|
+
optionValue(filterOption) {
|
|
151
|
+
return typeof filterOption == 'number' ? filterOption : (filterOption.key || filterOption.value);
|
|
152
|
+
}
|
|
144
153
|
isSelectedOption(option, value) {
|
|
145
154
|
if (option.type === FilterOptionTypes.MINIMUM) {
|
|
146
155
|
return this.filtersData[option.key] == value;
|
|
@@ -173,12 +182,12 @@ export class SallaFiltersWidget {
|
|
|
173
182
|
return h("span", { class: "s-filters-option-name" }, label);
|
|
174
183
|
}
|
|
175
184
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: '5d0e0ab6de7efb4eb75c2e1c85421dd6f3cf3e1d', class: "s-filters-widget-container" }, h("h3", { key: 'df5a000bf4de2c59ada08cdee02e2239f6052db7', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '0e55827c11e6d936cd9fd5f489f40bdaacd636fd' }, this.option.label), h("span", { key: 'ebcd57b65904b8669a4bcb8d6d849360bfa5b2da', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '30e65251f0f2c2d88ad8232ef9c5a1dc407edcd9', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: 'b661a373929b51e16eb6b23190d78a4b6290117d', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '3e5eebd5d36957d09953f4a6a0629891304a3f7e', type: "text", class: "s-filters-widget-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder') || 'بحث...', value: this.searchQuery, onInput: (e) => this.searchQuery = e.target.value }))), h("div", { key: '774f6590dd76edbd334f41ca2d15518019e8d43a', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '0fe6b327f9065c53fbeec8a74fa01a21403b5e2b' }), this.option.type !== FilterOptionTypes.RANGE
|
|
177
186
|
? this.renderFilterOption(this.option)
|
|
178
187
|
: h("salla-price-range", { onChanged: (event) => {
|
|
179
188
|
this.changed.emit(event.detail);
|
|
180
189
|
}, ref: price => this.priceRange = price, filtersData: this.filtersData, option: this.option })), this.withLoadMore && (!this.searchQuery || this.filteredCount > this.initialItemCount) &&
|
|
181
|
-
h("a", { key: '
|
|
190
|
+
h("a", { key: 'a07b802f1f9432826578992bf77518f3793589a8', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
|
|
182
191
|
}
|
|
183
192
|
static get is() { return "salla-filters-widget"; }
|
|
184
193
|
static get originalStyleUrls() {
|
|
@@ -62,8 +62,10 @@
|
|
|
62
62
|
overflow-y: auto;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
@media (min-width: 640px) {
|
|
66
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
67
|
+
overflow: visible !important;
|
|
68
|
+
}
|
|
67
69
|
}
|
|
68
70
|
.s-comments-item-images-slider .s-modal-close {
|
|
69
71
|
background-color: transparent;
|
|
@@ -302,29 +302,44 @@ export class SallaMultipleBundleProductDetails {
|
|
|
302
302
|
}
|
|
303
303
|
return '0';
|
|
304
304
|
}
|
|
305
|
+
ensureProductCountLang() {
|
|
306
|
+
if (SallaMultipleBundleProductDetails.productCountLangReady) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
salla.lang.add('pages.products.bundle_product_count', {
|
|
310
|
+
ar: '{1} منتج|{2} منتجان|[3,10] :count منتجات|[11,99] :count منتجًا|[0,*] :count منتج',
|
|
311
|
+
en: '{1} :count product|[0,*] :count products',
|
|
312
|
+
});
|
|
313
|
+
SallaMultipleBundleProductDetails.productCountLangReady = true;
|
|
314
|
+
}
|
|
305
315
|
getSectionSelectionNote(section) {
|
|
306
316
|
const min = this.getObligatoryMin(section);
|
|
307
317
|
const max = Number(section.max_obligatory_products) || 0;
|
|
308
|
-
|
|
309
|
-
const hasMax = max > 0;
|
|
310
|
-
if (!hasMin && !hasMax) {
|
|
318
|
+
if (min <= 0 && max <= 0) {
|
|
311
319
|
return null;
|
|
312
320
|
}
|
|
313
|
-
|
|
321
|
+
this.ensureProductCountLang();
|
|
322
|
+
const products = (count) => salla.lang.choice('pages.products.bundle_product_count', count);
|
|
323
|
+
const num = (v) => salla.helpers.number(String(v));
|
|
324
|
+
const ar = (salla.lang.getLocale?.() || 'ar') === 'ar';
|
|
325
|
+
if (min > 0 && max > 0) {
|
|
314
326
|
if (min === max) {
|
|
315
|
-
return
|
|
327
|
+
return ar ? `اختر ${products(min)}` : `Select ${products(min)}`;
|
|
316
328
|
}
|
|
317
|
-
return
|
|
329
|
+
return ar
|
|
330
|
+
? `اختر من ${num(min)} إلى ${products(max)}`
|
|
331
|
+
: `Select from ${num(min)} to ${products(max)}`;
|
|
318
332
|
}
|
|
319
|
-
if (
|
|
320
|
-
return
|
|
333
|
+
if (min > 0) {
|
|
334
|
+
return ar ? `اختر على الأقل ${products(min)}` : `Select at least ${products(min)}`;
|
|
321
335
|
}
|
|
322
|
-
return
|
|
336
|
+
return ar ? `اختر حتى ${products(max)}` : `Select up to ${products(max)}`;
|
|
323
337
|
}
|
|
324
338
|
handleSectionsChange() {
|
|
325
339
|
this.autoSelectSingleProductSections();
|
|
326
340
|
}
|
|
327
341
|
componentWillLoad() {
|
|
342
|
+
this.ensureProductCountLang();
|
|
328
343
|
this.autoSelectSingleProductSections();
|
|
329
344
|
}
|
|
330
345
|
renderAccordionHeader(section) {
|
|
@@ -360,9 +375,9 @@ export class SallaMultipleBundleProductDetails {
|
|
|
360
375
|
}
|
|
361
376
|
}
|
|
362
377
|
render() {
|
|
363
|
-
return (h(Host, { key: '
|
|
378
|
+
return (h(Host, { key: 'ccc37b0f67b64192f1d7c12660b8c968aa776b15', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '6529eb0eea69ea8440fbba251df56a3e7bdcff32', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
|
|
364
379
|
return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, selectionLimit: this.getEffectiveMax(section), isSelectionLocked: this.isProductSelectionLocked(section), onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
365
|
-
})), h("salla-multiple-bundle-product-options-modal", { key: '
|
|
380
|
+
})), h("salla-multiple-bundle-product-options-modal", { key: 'ea769a631840c75d2906da8f97c7127ddd772f04' })));
|
|
366
381
|
}
|
|
367
382
|
static get is() { return "salla-multiple-bundle-product-details"; }
|
|
368
383
|
static get originalStyleUrls() {
|
|
@@ -446,3 +461,4 @@ export class SallaMultipleBundleProductDetails {
|
|
|
446
461
|
}];
|
|
447
462
|
}
|
|
448
463
|
}
|
|
464
|
+
SallaMultipleBundleProductDetails.productCountLangReady = false;
|
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
grid-column: span 2 / span 2;
|
|
99
99
|
margin-top: 0px
|
|
100
100
|
}
|
|
101
|
+
}
|
|
102
|
+
.s-product-options-option-content-color {
|
|
103
|
+
overflow: visible !important
|
|
104
|
+
}
|
|
105
|
+
@media (min-width: 640px) {
|
|
101
106
|
.s-product-options-option-content-full-width {
|
|
102
107
|
grid-column: span 3 / span 3
|
|
103
108
|
}
|
|
@@ -615,7 +615,11 @@ export class SallaProductOptions {
|
|
|
615
615
|
}
|
|
616
616
|
return (h(Host, { class: { 's-product-options-wrapper': true, 's-product-options-no-padding': this.noPadding } }, h("salla-conditional-fields", null, this.optionsData.map((option) => h("div", { key: option.id, class: `s-product-options-option-container${option.visibility_condition || this.hideDigitalCardsOptions(option) ? ' hidden' : ''}`, "data-option-id": option.id, ...this.getOptionShownWhen(option) }, option.name === 'splitter' ?
|
|
617
617
|
this.splitterOption()
|
|
618
|
-
: h("div", { class: { "s-product-options-option": true, "s-product-options-option-booking": option.type === DisplayType.BOOKING && salla.url.is_page("cart") }, "data-option-type": option.type, "data-option-required": `${option.required}` }, h("label", { htmlFor: this.generateInputId(option.id), class: `s-product-options-option-label ${this.hideLabel(option) ? 's-product-options-option-label-hidden' : ''}` }, h("b", null, option.name, option.required && h("span", null, " * "), " "), h("small", null, option.placeholder)), h("div", { class:
|
|
618
|
+
: h("div", { class: { "s-product-options-option": true, "s-product-options-option-booking": option.type === DisplayType.BOOKING && salla.url.is_page("cart") }, "data-option-type": option.type, "data-option-required": `${option.required}` }, h("label", { htmlFor: this.generateInputId(option.id), class: `s-product-options-option-label ${this.hideLabel(option) ? 's-product-options-option-label-hidden' : ''}` }, h("b", null, option.name, option.required && h("span", null, " * "), " "), h("small", null, option.placeholder)), h("div", { class: {
|
|
619
|
+
's-product-options-option-content': true,
|
|
620
|
+
's-product-options-option-content-full-width': this.hideLabel(option) || (option.type === DisplayType.BOOKING && salla.url.is_page('cart')),
|
|
621
|
+
's-product-options-option-content-color': option.type === DisplayType.COLOR_PICKER,
|
|
622
|
+
} }, this.getDisplayForType(option))))))));
|
|
619
623
|
}
|
|
620
624
|
generateUniqueKey(defaultValue) {
|
|
621
625
|
const contextData = this.bundleContext;
|
|
@@ -314,7 +314,15 @@ export class SallaQuickBuy {
|
|
|
314
314
|
return salla.api.request('checkout/quick-purchase/' + this.productId, data, 'post');
|
|
315
315
|
}
|
|
316
316
|
isGuestCheckout() {
|
|
317
|
-
return salla.config.isGuest() &&
|
|
317
|
+
return salla.config.isGuest() && this.isGuestCheckoutAllowed() && this.isPhysicalProduct();
|
|
318
|
+
}
|
|
319
|
+
// store.features scores the shopper's cart; buy_now.guest_checkout scores this product alone
|
|
320
|
+
isGuestCheckoutAllowed() {
|
|
321
|
+
const buyNowGuest = salla.config.get('store.settings.buy_now.guest_checkout');
|
|
322
|
+
if (typeof buyNowGuest === 'boolean' && this.productId == salla.config.get('page.id')) {
|
|
323
|
+
return buyNowGuest;
|
|
324
|
+
}
|
|
325
|
+
return salla.config.get('store.features').includes('guest-checkout');
|
|
318
326
|
}
|
|
319
327
|
getRequiredShippingContactFields() {
|
|
320
328
|
let fields = [];
|
|
@@ -130,7 +130,7 @@ export class SallaScopees {
|
|
|
130
130
|
'id': this.current_scope.id
|
|
131
131
|
});
|
|
132
132
|
salla.cart.reset();
|
|
133
|
-
window.location.replace(salla.
|
|
133
|
+
window.location.replace(salla.scope.urlFor(this.current_scope));
|
|
134
134
|
}).catch(e => console.log(e))
|
|
135
135
|
.finally(() => {
|
|
136
136
|
this.changeBtn.stop();
|
|
@@ -149,6 +149,9 @@
|
|
|
149
149
|
max-height: min(40vh, 220px);
|
|
150
150
|
overflow-y: auto;
|
|
151
151
|
scrollbar-width: thin;
|
|
152
|
+
overscroll-behavior: contain;
|
|
153
|
+
-webkit-overflow-scrolling: touch;
|
|
154
|
+
touch-action: pan-y;
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
.s-searchable-dropdown-item {
|
|
@@ -264,8 +267,11 @@
|
|
|
264
267
|
-ms-border-radius: 10px;
|
|
265
268
|
-o-border-radius: 10px;
|
|
266
269
|
}
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
@media (min-width: 640px) {
|
|
271
|
+
|
|
272
|
+
.s-bullet-delivery .s-bullet-delivery-modal .s-modal-body:has(.s-searchable-dropdown--open) {
|
|
273
|
+
overflow: visible !important;
|
|
274
|
+
}
|
|
269
275
|
}
|
|
270
276
|
.s-searchable-dropdown {
|
|
271
277
|
position: relative;
|
|
@@ -116,19 +116,32 @@ export class SallaSearchableDropdown {
|
|
|
116
116
|
}
|
|
117
117
|
return null;
|
|
118
118
|
}
|
|
119
|
+
/** Touch-first devices: focusing the search input raises the on-screen keyboard, which covers the list. */
|
|
120
|
+
isCoarsePointer() {
|
|
121
|
+
return !!window.matchMedia?.('(pointer: coarse)').matches;
|
|
122
|
+
}
|
|
123
|
+
/** Mobile bottom-sheet layout: the modal body is the scroll container and must keep scrolling. */
|
|
124
|
+
isNarrowViewport() {
|
|
125
|
+
return !!window.matchMedia?.('(max-width: 639px)').matches;
|
|
126
|
+
}
|
|
119
127
|
open() {
|
|
120
128
|
if (this.disabled || this.loading)
|
|
121
129
|
return;
|
|
122
130
|
this.isOpen = true;
|
|
123
131
|
this.focusedIndex = -1;
|
|
124
|
-
if (!this.keepParentScroll) {
|
|
132
|
+
if (!this.keepParentScroll && !this.isNarrowViewport()) {
|
|
125
133
|
this.scrollableAncestor = this.findScrollableAncestor();
|
|
126
134
|
if (this.scrollableAncestor) {
|
|
127
135
|
this.scrollableAncestor.style.overflow = 'visible';
|
|
128
136
|
}
|
|
129
137
|
}
|
|
130
138
|
this.dropdownOpened.emit();
|
|
131
|
-
requestAnimationFrame(() =>
|
|
139
|
+
requestAnimationFrame(() => {
|
|
140
|
+
if (!this.isCoarsePointer()) {
|
|
141
|
+
this.searchInputRef?.focus();
|
|
142
|
+
}
|
|
143
|
+
this.panelRef?.scrollIntoView?.({ block: 'nearest' });
|
|
144
|
+
});
|
|
132
145
|
}
|
|
133
146
|
close() {
|
|
134
147
|
if (!this.isOpen)
|
|
@@ -188,18 +201,18 @@ export class SallaSearchableDropdown {
|
|
|
188
201
|
render() {
|
|
189
202
|
const hasSelection = this.selectedItem != null;
|
|
190
203
|
const listboxId = `${this.inputId}-listbox`;
|
|
191
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: 'eadd6ff762e66bc3458d19f7d2490da939a268d0', class: "s-searchable-dropdown" }, h("div", { key: '0cb614d73e06626c0cd3b5e5eadc76ebfc296093', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '6f3c440ccad07f3ab271f85f508ddf6294464947', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '9415e3b6b87e702079c2fc810aa7621e623e5641', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '7ed8979005ef68e40976a536ead5da4c736bb0ba', class: {
|
|
192
205
|
's-searchable-dropdown-trigger': true,
|
|
193
206
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
194
207
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
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: '
|
|
208
|
+
}, 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: '7df0a517cb916ad6652544c1b738c569ab2f290f', class: {
|
|
196
209
|
'sicon-keyboard_arrow_down': true,
|
|
197
210
|
's-searchable-dropdown-trigger-icon': true,
|
|
198
211
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
199
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
212
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '797dea9a0b0a26402132f5d33c49b74cde5f617d', class: {
|
|
200
213
|
's-searchable-dropdown-panel': true,
|
|
201
214
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
202
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
215
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'e7b7ec94dbc99ac40a1f833b7aa61c5d2a8742b7', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '59fc0e1986726f99639688c18bc6c501fae966b4', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '70a63f4297d7f1f204d95336cc6aaea28d8f14e1', 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: 'f998cc8115062d98befdb814cba0a282c491ef4e', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
203
216
|
}
|
|
204
217
|
renderListContent() {
|
|
205
218
|
if (this.searching || this.loading) {
|