@salla.sa/twilight-components 2.14.485 → 2.14.487
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-DvyEpCgx.js → Helper-B2B-kxAI.js} +7 -2
- package/dist/cjs/{filepond-B1h9ltVJ.js → filepond-D8YNIT7U.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B4zD4xns.js → filepond-plugin-file-poster-DSZGbtH3.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CIX5-X21.js → filepond-plugin-file-validate-size-CDPCt-vD.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D1NcjxUw.js → filepond-plugin-file-validate-type-PPR9wk_f.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Bb7P11BN.js → filepond-plugin-image-edit-CbzNxXz5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-C4HNrnSA.js → filepond-plugin-image-exif-orientation-CHOCkxIA.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DeMAP_C9.js → filepond-plugin-image-preview-DPzPSwHT.js} +1 -1
- package/dist/cjs/{functions-COuh9Ohq.js → functions-BJ567SZR.js} +1 -1
- package/dist/cjs/{index-jbrJkd9L.js → index-AuVRM2C2.js} +1 -1
- package/dist/cjs/{index-8pwFZzoL.js → index-KEg0BIuu.js} +6 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- 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-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- 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 +349 -0
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.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 +15 -8
- package/dist/cjs/salla-filters.cjs.entry.js +101 -13
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +21 -5
- 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.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- 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-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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_2.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 +1 -1
- 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 +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.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-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-options-modal_3.cjs.entry.js +2 -2
- 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-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +21 -9
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.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-slider.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-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.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/{tracked-promise-BOMQ9hTv.js → tracked-promise-DFl5fI3j.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DM7x_-2X.js → vanilla-picker-CUpM_-PS.js} +1 -1
- package/dist/collection/Helpers/Helper.js +7 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +401 -0
- package/dist/collection/components/salla-filters/salla-filters.css +5 -0
- package/dist/collection/components/salla-filters/salla-filters.js +101 -11
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +13 -6
- package/dist/collection/components/salla-gifting/salla-gifting.js +21 -4
- package/dist/collection/components/salla-products-list/salla-products-list.js +19 -7
- package/dist/components/Helper.js +7 -2
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-summary-card.d.ts +11 -0
- package/dist/components/salla-cart-summary-card.js +404 -0
- package/dist/components/salla-filters-widget2.js +13 -6
- package/dist/components/salla-filters.js +101 -11
- package/dist/components/salla-gifting.js +21 -4
- package/dist/components/salla-products-list2.js +19 -7
- package/dist/esm/{Helper-CD8d-Brd.js → Helper-BQ9mvrt9.js} +7 -2
- package/dist/esm/{filepond-DHzuRfQN.js → filepond-BsLighF8.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BxdBxR7d.js → filepond-plugin-file-poster-Bm-5APBo.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-C-0L9g1L.js → filepond-plugin-file-validate-size-DkYobKMY.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-OyHjZUCW.js → filepond-plugin-file-validate-type-BXKbNDGH.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BIfGCYQ5.js → filepond-plugin-image-edit-B64dqBYZ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DJlKxr63.js → filepond-plugin-image-exif-orientation-BelOzBrj.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-B2DpOs_r.js → filepond-plugin-image-preview-X67Ek3oE.js} +1 -1
- package/dist/esm/{functions-DT-OwuY-.js → functions-DobdGlrA.js} +1 -1
- package/dist/esm/{index-DJPd6DKq.js → index-DBMDFsFH.js} +6 -2
- package/dist/esm/{index-D449pxDB.js → index-yDeCyY3S.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- 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-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- 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 +347 -0
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.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 +15 -8
- package/dist/esm/salla-filters.entry.js +101 -13
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +21 -5
- 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.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- 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-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.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 +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.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-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-options-modal_3.entry.js +2 -2
- 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-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +21 -9
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.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-slider.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-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.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/{tracked-promise-CNnq4c_E.js → tracked-promise-6uJz7V9Q.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DQDhWp1B.js → vanilla-picker-Bw2Vk5YA.js} +1 -1
- package/dist/twilight/{p-07e93d60.entry.js → p-000022be.entry.js} +1 -1
- package/dist/twilight/{p-800e069d.entry.js → p-00fcfe8e.entry.js} +1 -1
- package/dist/twilight/{p-309914e6.entry.js → p-0412fe67.entry.js} +1 -1
- package/dist/twilight/{p-5cd703c2.entry.js → p-08dfa3c5.entry.js} +1 -1
- package/dist/twilight/{p-67ac0915.entry.js → p-0c219cad.entry.js} +1 -1
- package/dist/twilight/{p-2e1cf59c.entry.js → p-11f843fd.entry.js} +1 -1
- package/dist/twilight/p-130633cc.entry.js +4 -0
- package/dist/twilight/{p-3a103253.entry.js → p-1450bf80.entry.js} +1 -1
- package/dist/twilight/{p-1fc50a13.entry.js → p-14e936b0.entry.js} +1 -1
- package/dist/twilight/{p-e492ab39.entry.js → p-1547f282.entry.js} +1 -1
- package/dist/twilight/p-18efb27e.entry.js +4 -0
- package/dist/twilight/{p-2566c361.entry.js → p-18f264f9.entry.js} +1 -1
- package/dist/twilight/{p-78854c4a.entry.js → p-1b4fd0db.entry.js} +1 -1
- package/dist/twilight/{p-cbb75c0b.entry.js → p-1bb06699.entry.js} +1 -1
- package/dist/twilight/{p-74ba62ad.entry.js → p-1e418b8f.entry.js} +1 -1
- package/dist/twilight/p-24d268c7.entry.js +4 -0
- package/dist/twilight/{p-f60e5ac2.entry.js → p-29620c50.entry.js} +1 -1
- package/dist/twilight/{p-329f2f11.entry.js → p-2f48e8e1.entry.js} +1 -1
- package/dist/twilight/{p-7547a8c3.entry.js → p-37ced7ab.entry.js} +1 -1
- package/dist/twilight/{p-c88eb0de.entry.js → p-39a49ae9.entry.js} +1 -1
- package/dist/twilight/{p-dafb763f.entry.js → p-3a7f5c6e.entry.js} +1 -1
- package/dist/twilight/{p-b94fe237.entry.js → p-3f153e79.entry.js} +1 -1
- package/dist/twilight/{p-9f003164.entry.js → p-4336dce1.entry.js} +1 -1
- package/dist/twilight/{p-fe9451ac.entry.js → p-44f67d40.entry.js} +1 -1
- package/dist/twilight/{p-d21bdb22.entry.js → p-46294bef.entry.js} +1 -1
- package/dist/twilight/{p-7afc3b39.entry.js → p-4836c3eb.entry.js} +1 -1
- package/dist/twilight/{p-7dedb31c.entry.js → p-49275f85.entry.js} +1 -1
- package/dist/twilight/{p-ca0fa22b.entry.js → p-4a3ccff2.entry.js} +1 -1
- package/dist/twilight/{p-859f2c19.entry.js → p-4f8ec3a6.entry.js} +1 -1
- package/dist/twilight/{p-01fd381b.entry.js → p-5119fe5d.entry.js} +1 -1
- package/dist/twilight/{p-566bae1e.entry.js → p-519551ab.entry.js} +1 -1
- package/dist/twilight/{p-17f9907e.entry.js → p-51fbf1bb.entry.js} +1 -1
- package/dist/twilight/{p-1b9272d4.entry.js → p-52cab4a6.entry.js} +1 -1
- package/dist/twilight/{p-1620eaa3.entry.js → p-546b31a3.entry.js} +1 -1
- package/dist/twilight/{p-2794a82d.entry.js → p-57785b92.entry.js} +1 -1
- package/dist/twilight/{p-40256161.entry.js → p-5dfb7601.entry.js} +1 -1
- package/dist/twilight/{p-2270652d.entry.js → p-5e14fbf5.entry.js} +1 -1
- package/dist/twilight/{p-23a8870b.entry.js → p-60545378.entry.js} +1 -1
- package/dist/twilight/{p-adb4eed7.entry.js → p-61332673.entry.js} +1 -1
- package/dist/twilight/{p-5c7dd67e.entry.js → p-636e6994.entry.js} +1 -1
- package/dist/twilight/{p-f8eb9db2.entry.js → p-67ce35b0.entry.js} +1 -1
- package/dist/twilight/{p-9c52e63b.entry.js → p-6bdcd67d.entry.js} +1 -1
- package/dist/twilight/{p-6181acb5.entry.js → p-6e2b2072.entry.js} +1 -1
- package/dist/twilight/{p-d886da88.entry.js → p-76672fe3.entry.js} +1 -1
- package/dist/twilight/{p-26603c81.entry.js → p-79bff80a.entry.js} +1 -1
- package/dist/twilight/{p-445b3e07.entry.js → p-7a5894fb.entry.js} +1 -1
- package/dist/twilight/{p-74abfefb.entry.js → p-7b0f537a.entry.js} +1 -1
- package/dist/twilight/{p-a92549f6.entry.js → p-7bd7baa5.entry.js} +1 -1
- package/dist/twilight/{p-6e8a0f83.entry.js → p-8336df51.entry.js} +1 -1
- package/dist/twilight/{p-91884639.entry.js → p-8a7f48ce.entry.js} +1 -1
- package/dist/twilight/{p-005c08fe.entry.js → p-96779a0c.entry.js} +1 -1
- package/dist/twilight/{p-4a31a4dd.entry.js → p-967d356e.entry.js} +1 -1
- package/dist/twilight/{p-a20d0254.entry.js → p-9ab52d09.entry.js} +1 -1
- package/dist/twilight/{p-BG50tuBF.js → p-BR9zeoCF.js} +1 -1
- package/dist/twilight/{p-Cve96fFs.js → p-BTYXaopE.js} +1 -1
- package/dist/twilight/{p-tC9eMgA8.js → p-CDTIhPDr.js} +1 -1
- package/dist/twilight/{p-2xUZDJ04.js → p-CMW3pjiL.js} +1 -1
- package/dist/twilight/{p-DXqzsbXl.js → p-C_htBBK4.js} +1 -1
- package/dist/twilight/{p-BL8emH6B.js → p-C_vo3xPL.js} +1 -1
- package/dist/twilight/{p-BG-PTfCd.js → p-CcfoPQKG.js} +1 -1
- package/dist/twilight/{p-DJPd6DKq.js → p-DBMDFsFH.js} +1 -1
- package/dist/twilight/{p-C4k3wAWB.js → p-Dwu1e7SR.js} +1 -1
- package/dist/twilight/p-XnA1YTjA.js +4 -0
- package/dist/twilight/{p-af769e0a.entry.js → p-a767d9fe.entry.js} +1 -1
- package/dist/twilight/{p-7baf04d3.entry.js → p-ab404907.entry.js} +1 -1
- package/dist/twilight/{p-3c4b0b05.entry.js → p-acd8aa32.entry.js} +1 -1
- package/dist/twilight/{p-bff68f44.entry.js → p-ad1d3cdf.entry.js} +1 -1
- package/dist/twilight/{p-c06f0822.entry.js → p-b3b050e7.entry.js} +1 -1
- package/dist/twilight/{p-93e3a6b1.entry.js → p-b3b78bf5.entry.js} +1 -1
- package/dist/twilight/p-b3f26711.entry.js +4 -0
- package/dist/twilight/{p-985f8781.entry.js → p-b4f4e0b7.entry.js} +1 -1
- package/dist/twilight/{p-e056c218.entry.js → p-b7da726a.entry.js} +1 -1
- package/dist/twilight/{p-f13b397a.entry.js → p-b835777d.entry.js} +1 -1
- package/dist/twilight/{p-dac3e978.entry.js → p-c253f69c.entry.js} +1 -1
- package/dist/twilight/{p-2646c71c.entry.js → p-c46cf468.entry.js} +1 -1
- package/dist/twilight/{p-32eea65f.entry.js → p-c9608410.entry.js} +1 -1
- package/dist/twilight/{p-58e39fe9.entry.js → p-cc75ae11.entry.js} +1 -1
- package/dist/twilight/{p-48b68862.entry.js → p-ce0685d1.entry.js} +1 -1
- package/dist/twilight/{p-1b506134.entry.js → p-ce1bc4b0.entry.js} +1 -1
- package/dist/twilight/{p-302bc68d.entry.js → p-cf1b9798.entry.js} +1 -1
- package/dist/twilight/{p-17b0b92b.entry.js → p-cf96947a.entry.js} +1 -1
- package/dist/twilight/{p-0ade8936.entry.js → p-d01178f0.entry.js} +1 -1
- package/dist/twilight/{p-32ef12bb.entry.js → p-d3d2a114.entry.js} +1 -1
- package/dist/twilight/{p-69926ae5.entry.js → p-d8fb7f9a.entry.js} +1 -1
- package/dist/twilight/{p-5e39f770.entry.js → p-da827143.entry.js} +1 -1
- package/dist/twilight/{p-1dc4ab57.entry.js → p-ddd22625.entry.js} +1 -1
- package/dist/twilight/{p-cf17ece0.entry.js → p-de41e9b5.entry.js} +1 -1
- package/dist/twilight/p-e21a23d2.entry.js +4 -0
- package/dist/twilight/{p-6466fd9c.entry.js → p-e5022e8f.entry.js} +1 -1
- package/dist/twilight/{p-9248a9b8.entry.js → p-e84f7790.entry.js} +1 -1
- package/dist/twilight/{p-c2284ac3.entry.js → p-ef06457d.entry.js} +1 -1
- package/dist/twilight/{p-431b9986.entry.js → p-f12670a1.entry.js} +1 -1
- package/dist/twilight/{p-e625c6a1.entry.js → p-f267ac72.entry.js} +1 -1
- package/dist/twilight/{p-c1aa61bc.entry.js → p-f5d229a7.entry.js} +1 -1
- package/dist/twilight/{p-da010601.entry.js → p-f856fe4d.entry.js} +1 -1
- package/dist/twilight/{p-2d6f9f9e.entry.js → p-fa900f26.entry.js} +1 -1
- package/dist/twilight/{p-029c7342.entry.js → p-fd99de6e.entry.js} +1 -1
- package/dist/twilight/p-fdb0f6cc.entry.js +4 -0
- package/dist/twilight/{p-c31600a9.entry.js → p-ffd6ad27.entry.js} +1 -1
- package/dist/twilight/{p-Ce51TrKH.js → p-lQbFKmnv.js} +1 -1
- package/dist/twilight/{p-Bnff9Ut3.js → p-qj0-UBFk.js} +1 -1
- package/dist/twilight/{p-aMw12tPb.js → p-uiIu01tD.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +67 -0
- package/dist/types/components/salla-filters/salla-filters.d.ts +14 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +2 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +8 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -0
- package/dist/types/components.d.ts +37 -0
- package/package.json +5 -5
- package/dist/twilight/p-7f788909.entry.js +0 -4
- package/dist/twilight/p-80fc1a7b.entry.js +0 -4
- package/dist/twilight/p-83b8d7cf.entry.js +0 -4
- package/dist/twilight/p-8f672cef.entry.js +0 -4
- package/dist/twilight/p-C-3GuKNW.js +0 -4
- package/dist/twilight/p-f8ccc247.entry.js +0 -4
|
@@ -120,6 +120,7 @@ export class SallaGifting {
|
|
|
120
120
|
this.selectCity = salla.lang.get('pages.checkout.select_city');
|
|
121
121
|
this.selectCountry = salla.lang.get('pages.checkout.select_country');
|
|
122
122
|
this.selectCityInfo = salla.lang.get('blocks.buy_as_gift.city_info');
|
|
123
|
+
this.cityChangeNotice = salla.lang.get('blocks.buy_as_gift.city_change_notice');
|
|
123
124
|
this.receiverCityFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_city');
|
|
124
125
|
this.receiverRegionFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_region') || salla.lang.get('pages.checkout.region');
|
|
125
126
|
this.selectRegion = salla.lang.get('pages.checkout.select_region');
|
|
@@ -139,6 +140,21 @@ export class SallaGifting {
|
|
|
139
140
|
isPhysical() {
|
|
140
141
|
return this.physicalProducts || this.physical;
|
|
141
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Resolves the city notice text shown in the physical-product gift step:
|
|
145
|
+
* - recipient can't change address -> default city info notice
|
|
146
|
+
* - recipient can change, fixed shipping cost -> city-change notice
|
|
147
|
+
* - recipient can change, any shipping cost -> no notice
|
|
148
|
+
*/
|
|
149
|
+
cityNoticeText() {
|
|
150
|
+
if (!this.gift?.recipient_can_change_address) {
|
|
151
|
+
return this.selectCityInfo;
|
|
152
|
+
}
|
|
153
|
+
if (!this.gift?.allows_different_shipping_cost) {
|
|
154
|
+
return this.cityChangeNotice;
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
142
158
|
componentDidLoad() {
|
|
143
159
|
salla.event.product.onPriceUpdated(() => {
|
|
144
160
|
const quantityInput = document.querySelector(`.s-quantity-input-input`);
|
|
@@ -730,7 +746,7 @@ export class SallaGifting {
|
|
|
730
746
|
}
|
|
731
747
|
render() {
|
|
732
748
|
return [
|
|
733
|
-
h("div", { key: '
|
|
749
|
+
h("div", { key: '416981417bec78c8c3fda43e6f80745f4d735154' }, h("salla-list-tile", { key: '495255205e1c226669a14a94e50442aabd9818da', class: this.generateClass() }, h("div", { key: 'f2dbdc4ea0dc76d806f18563739a116e15cbbe08', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '9ed4f1d995eaf2341a9ec237ebfb486ed3db988e' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'b5d5512fcb2513177eaa1e25eacce9092f7d845f', slot: "subtitle" }, h("div", { key: '0a8223b41973b72d942ce91c5f478a3edaa5dfd3' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'a6d5a077131117c6854ffc2b39e506be7953051e', slot: "action" }, h("salla-button", { key: '99b14364789884b0010e50941c27cbcfe7445785', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '27f6be7b07084f48da83af6240933d619407307f', name: "widget-btn-content" }, h("div", { key: 'ee5d04e96dd1e3849a33813b3737b476b5470497', class: "s-gifting-widget-action-content" }, h("span", { key: 'd02bb1f6cd4dff335eeca1341da2c86d2976b4fc', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '98a3594e6d01133c4f448d8e5df22ba2984cf09e' }, this.sectionBtnText)))))), h("salla-modal", { key: '0be87b9d369e92a71b68f570b9bf19a0ddb7dd6b', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '978995d399506ff82ac0f2385a1f85a808c7da3e', slot: "loading" }, h("div", { key: '7d1f141fd9131d35edb81326062e8f7cadfa2cab', class: "s-gifting-skeleton" }, h("div", { key: 'b33cfd58381c7c1b545ffedf6739e42fdb75c8de', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'e03a505ad3720c25077ca91c7eec2843cdaee225', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '6f630d2582c96fc71406ef4557143c6e9dbd4a88', class: "s-gifting-modal-title" }, h("div", { key: '8d1a3540993c9b40e705f2145bf0514754c36dab', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: 'd965c353f19cf785a13eba6332b715eed9748836', height: '15px', width: '150px' })))), h("div", { key: 'abacc03d1e30075d3d24dfd577dc9a60f7b52810', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '03db84cfccc546602a6f521b015d0c12b93caa6f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e8e2d4e70d208055baaae44a8d7da8aa5c6a33da', height: '230px' }), h("salla-skeleton", { key: '2c90d91fb63551685b2041f2bc51fdb5219cbbb7', height: '10px', width: '150px' }), h("salla-skeleton", { key: '8962bc17f43cb04563caa02db3df585189579f8f', height: '30px' }), h("salla-skeleton", { key: '73730453aa6f8d0ec2a653b4711b80b32a18b916', height: '40px' })))), h("slot", { key: '4bcf5a6d53485c461c35f53ce7e265bcf770989e', name: "header" }), !!this.hasError ?
|
|
734
750
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
735
751
|
:
|
|
736
752
|
[
|
|
@@ -751,9 +767,9 @@ export class SallaGifting {
|
|
|
751
767
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.region'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-region` }, this.receiverRegionFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectRegion, items: this.regions ?? [], selectedItem: this.selectedRegion, loading: this.loadingRegions, disabled: this.loadingRegions || !this.regions?.length, required: true, inputId: `${this.hostId}-region`, searchable: false, keepParentScroll: true, onItemSelected: (e) => this.handleRegionSelected(e.detail), onDropdownClosed: () => this.handleRegionDropdownClosed() }), this.errors && this.errors['receiver.region'] ?
|
|
752
768
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.region']) : ''), this.isPhysical() &&
|
|
753
769
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-city` }, this.receiverCityFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectCity, items: this.displayedCities, selectedItem: this.selectedCity, loading: this.loadingCities, searching: this.searchingCities, disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId), required: true, inputId: `${this.hostId}-city`, searchQuery: this.citySearchQuery, clientSearch: !this.enableCityAjaxSearch, dropUp: true, keepParentScroll: true, onItemSelected: (e) => this.handleCitySelected(e.detail), onSearchInput: (e) => this.handleCitySearch(e.detail), onDropdownClosed: () => this.handleCityDropdownClosed() }), this.errors && this.errors['receiver.city_id'] ?
|
|
754
|
-
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
|
|
755
|
-
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.
|
|
756
|
-
], h("slot", { key: '
|
|
770
|
+
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() && this.cityNoticeText() &&
|
|
771
|
+
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.cityNoticeText())), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, !this.skipStep1() && h("a", { href: "#!", innerHTML: LeftArrow, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
772
|
+
], h("slot", { key: 'a4d37b893e4a0867c044817434ade65b16fbe89a', name: "footer" })))
|
|
757
773
|
];
|
|
758
774
|
}
|
|
759
775
|
static get is() { return "salla-gifting"; }
|
|
@@ -927,6 +943,7 @@ export class SallaGifting {
|
|
|
927
943
|
"selectCountry": {},
|
|
928
944
|
"selectCity": {},
|
|
929
945
|
"selectCityInfo": {},
|
|
946
|
+
"cityChangeNotice": {},
|
|
930
947
|
"receiverCityFieldLabel": {},
|
|
931
948
|
"receiverRegionFieldLabel": {},
|
|
932
949
|
"selectRegion": {},
|
|
@@ -134,10 +134,11 @@ export class SallaProductsList {
|
|
|
134
134
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
135
135
|
// Create a deep copy of the filters object to avoid mutating the original object
|
|
136
136
|
this.parsedFilters = JSON.parse(JSON.stringify(filters));
|
|
137
|
-
if (this.currentPage?.slug == 'product.index'
|
|
138
|
-
|
|
139
|
-
this.parsedFilters
|
|
140
|
-
|
|
137
|
+
if (this.currentPage?.slug == 'product.index') {
|
|
138
|
+
// clear when category_id disappears, otherwise getSourceValue() keeps filtering by the removed category
|
|
139
|
+
this.currentCategoryIdFilter = this.parsedFilters?.category_id
|
|
140
|
+
? this.toCategoryIdFilter(this.parsedFilters.category_id)
|
|
141
|
+
: null;
|
|
141
142
|
}
|
|
142
143
|
return this.reload();
|
|
143
144
|
}
|
|
@@ -600,6 +601,14 @@ export class SallaProductsList {
|
|
|
600
601
|
isAuxiliaryProductsListSource() {
|
|
601
602
|
return ['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource());
|
|
602
603
|
}
|
|
604
|
+
// Normalize a category_id filter (array, legacy {0:,1:} object, or scalar) into a flat list of ids
|
|
605
|
+
toCategoryIdFilter(catId) {
|
|
606
|
+
if (Array.isArray(catId))
|
|
607
|
+
return catId;
|
|
608
|
+
if (catId && typeof catId === 'object')
|
|
609
|
+
return Object.values(catId);
|
|
610
|
+
return [catId];
|
|
611
|
+
}
|
|
603
612
|
getSourceValue() {
|
|
604
613
|
if (this.getSource() === 'wishlist') {
|
|
605
614
|
const searchParams = new URLSearchParams(window.location.search);
|
|
@@ -904,7 +913,7 @@ export class SallaProductsList {
|
|
|
904
913
|
this.sortBy = this.sortBy || searchParams.get('sort') || searchParams.get('by');
|
|
905
914
|
this.parsedFilters = Helper.extractFiltersFromUrl(searchParams);
|
|
906
915
|
if (this.parsedFilters && this.parsedFilters.category_id) {
|
|
907
|
-
this.currentCategoryIdFilter =
|
|
916
|
+
this.currentCategoryIdFilter = this.toCategoryIdFilter(this.parsedFilters.category_id);
|
|
908
917
|
}
|
|
909
918
|
}
|
|
910
919
|
catch (e) {
|
|
@@ -1025,12 +1034,15 @@ export class SallaProductsList {
|
|
|
1025
1034
|
title = salla.lang.get('common.elements.search_about', { word: this.getSourceValue() });
|
|
1026
1035
|
}
|
|
1027
1036
|
else if (!title) {
|
|
1028
|
-
|
|
1037
|
+
// with user-applied filters a category name in the title is misleading — show count only;
|
|
1038
|
+
// the unfiltered base state keeps the page category's name
|
|
1039
|
+
let catId = Object.keys(this.parsedFilters || {}).length ? null : this.getSourceValue()[0];
|
|
1029
1040
|
// get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
|
|
1030
1041
|
title =
|
|
1031
1042
|
response.filters
|
|
1032
1043
|
?.find(filter => filter.key === 'category_id')
|
|
1033
|
-
|
|
1044
|
+
// loose == : catId may be a number (auto-appended page.id) while API keys are strings
|
|
1045
|
+
?.values?.find(cat => cat.key == catId)?.value ?? '';
|
|
1034
1046
|
}
|
|
1035
1047
|
title +=
|
|
1036
1048
|
(title ? ' - ' : '') +
|
|
@@ -114,8 +114,13 @@ class Helper {
|
|
|
114
114
|
if (matchesNested) {
|
|
115
115
|
const filterName = matchesNested[1];
|
|
116
116
|
const nestedKey = matchesNested[3];
|
|
117
|
-
if (nestedKey) {
|
|
118
|
-
// Handle
|
|
117
|
+
if (nestedKey === '' || /^\d+$/.test(nestedKey)) {
|
|
118
|
+
// Handle array (OR within a group), e.g. filters[brand_id][] or filters[brand_id][0]
|
|
119
|
+
filters[filterName] = Array.isArray(filters[filterName]) ? filters[filterName] : [];
|
|
120
|
+
filters[filterName].push(value);
|
|
121
|
+
}
|
|
122
|
+
else if (nestedKey) {
|
|
123
|
+
// Handle nested object, e.g. filters[price][min]
|
|
119
124
|
filters[filterName] = filters[filterName] || {};
|
|
120
125
|
filters[filterName][nestedKey] = value;
|
|
121
126
|
}
|