@salla.sa/twilight-components 2.14.404 → 2.14.406
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/{filepond-BGeIVPOk.js → filepond-Dv_Vd2af.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Dj0y59Ov.js → filepond-plugin-file-poster-CDFzVn8y.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-B8XJT5tN.js → filepond-plugin-file-validate-size-smkVFdk4.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-wrMrxOn7.js → filepond-plugin-file-validate-type-DtgLYo7I.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-D3Iapkhv.js → filepond-plugin-image-edit-CBKnIuOq.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BbEM_vMd.js → filepond-plugin-image-exif-orientation-U0UFINRP.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Bz-ITSEo.js → filepond-plugin-image-preview-Fqi5ikRb.js} +1 -1
- package/dist/cjs/{functions-DVMonIet.js → functions-BteTqioX.js} +1 -1
- package/dist/cjs/{index-B3JuQExz.js → index-DPCf4JsS.js} +2 -2
- package/dist/cjs/{index-B587wk8w.js → index-DgjrN1qB.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 +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +64 -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 +36 -23
- package/dist/cjs/salla-bullet-delivery.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-comment-form_8.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.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 +1 -1
- 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-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.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-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- 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-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.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 +1 -1
- 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_2.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 +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- 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 +1 -1
- 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/{tracked-promise-Ef3pfQOZ.js → tracked-promise-BydfL53z.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-BgPOS3MC.js → vanilla-picker-CN1BrJl3.js} +1 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +18 -6
- package/dist/collection/components/salla-product-options/salla-product-options.js +63 -1
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +8 -7
- package/dist/components/index.js +2 -2
- package/dist/components/salla-conditional-fields2.js +18 -6
- package/dist/components/salla-product-options2.js +63 -1
- package/dist/components/salla-quantity-input2.js +8 -7
- package/dist/esm/{filepond-TQwRQEj7.js → filepond-akG9YxKs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D6Scyf7M.js → filepond-plugin-file-poster-78baNcka.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DmV95X-a.js → filepond-plugin-file-validate-size-CETGyPCg.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BxcIYCpF.js → filepond-plugin-file-validate-type-C5CKH4pM.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C_dhSLv3.js → filepond-plugin-image-edit-JDFQOv1g.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C0v1CD3U.js → filepond-plugin-image-exif-orientation-EK76RBmr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DjsC29px.js → filepond-plugin-image-preview-BmPnm8ID.js} +1 -1
- package/dist/esm/{functions-CsHz6jUn.js → functions-CobAX8rF.js} +1 -1
- package/dist/esm/{index-aDXaoBqI.js → index-BJ31ZN0M.js} +2 -2
- package/dist/esm/{index-C_WMBvxX.js → index-CUxBUUOD.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 +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +64 -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 +36 -23
- package/dist/esm/salla-bullet-delivery.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-comment-form_8.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.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 +1 -1
- 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-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.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-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.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.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 +1 -1
- 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_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- 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 +1 -1
- 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/{tracked-promise-DftQnHNU.js → tracked-promise-Du_1QBOl.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-D_u7k2C7.js → vanilla-picker-BdII2xCi.js} +1 -1
- package/dist/twilight/{p-d5d04465.entry.js → p-05468a1e.entry.js} +1 -1
- package/dist/twilight/{p-d19423c8.entry.js → p-0597f95a.entry.js} +1 -1
- package/dist/twilight/{p-eb4c87d2.entry.js → p-073b6803.entry.js} +1 -1
- package/dist/twilight/{p-bd7963b8.entry.js → p-07cc8c2d.entry.js} +1 -1
- package/dist/twilight/{p-19b2712e.entry.js → p-0b9c253d.entry.js} +1 -1
- package/dist/twilight/p-0db8f9a7.entry.js +4 -0
- package/dist/twilight/{p-f6f154f2.entry.js → p-0e8180bb.entry.js} +1 -1
- package/dist/twilight/{p-5863784a.entry.js → p-123ffe95.entry.js} +1 -1
- package/dist/twilight/{p-4d27be11.entry.js → p-169722ae.entry.js} +1 -1
- package/dist/twilight/{p-ec130506.entry.js → p-19c20fcb.entry.js} +1 -1
- package/dist/twilight/{p-18e842b3.entry.js → p-1b817177.entry.js} +1 -1
- package/dist/twilight/{p-d1b2e25d.entry.js → p-1d7cd144.entry.js} +1 -1
- package/dist/twilight/{p-61358d11.entry.js → p-20d4985f.entry.js} +1 -1
- package/dist/twilight/{p-8c8c7d88.entry.js → p-2d80eb08.entry.js} +1 -1
- package/dist/twilight/{p-29bc5464.entry.js → p-2f6e5e91.entry.js} +1 -1
- package/dist/twilight/{p-913dfdeb.entry.js → p-2fc64c69.entry.js} +1 -1
- package/dist/twilight/p-3aafb389.entry.js +4 -0
- package/dist/twilight/{p-8237cece.entry.js → p-3b8e672d.entry.js} +1 -1
- package/dist/twilight/{p-4f25c507.entry.js → p-3d890d1f.entry.js} +1 -1
- package/dist/twilight/{p-444a8a35.entry.js → p-3eafc56d.entry.js} +1 -1
- package/dist/twilight/{p-59e8585a.entry.js → p-441277b3.entry.js} +1 -1
- package/dist/twilight/{p-44369f67.entry.js → p-4622b7d1.entry.js} +1 -1
- package/dist/twilight/{p-ee7d1c8c.entry.js → p-4762930b.entry.js} +1 -1
- package/dist/twilight/{p-7ab5a0a3.entry.js → p-4b47f067.entry.js} +1 -1
- package/dist/twilight/{p-6d0a0866.entry.js → p-4e6aaa3c.entry.js} +1 -1
- package/dist/twilight/{p-19801f8a.entry.js → p-54f97f1a.entry.js} +1 -1
- package/dist/twilight/{p-d39a4239.entry.js → p-56bf1eca.entry.js} +1 -1
- package/dist/twilight/{p-bbb92919.entry.js → p-58cad593.entry.js} +1 -1
- package/dist/twilight/{p-fe008cc5.entry.js → p-59e67d7c.entry.js} +1 -1
- package/dist/twilight/{p-7ee3d2ce.entry.js → p-606fc739.entry.js} +1 -1
- package/dist/twilight/{p-1d9285ce.entry.js → p-63545832.entry.js} +1 -1
- package/dist/twilight/{p-196754b9.entry.js → p-65c4bc54.entry.js} +1 -1
- package/dist/twilight/{p-14210f63.entry.js → p-67f965c2.entry.js} +1 -1
- package/dist/twilight/{p-8e5c7dad.entry.js → p-6aad9d28.entry.js} +1 -1
- package/dist/twilight/{p-ccde5f93.entry.js → p-7102a001.entry.js} +1 -1
- package/dist/twilight/{p-c5ca258f.entry.js → p-7447f78c.entry.js} +1 -1
- package/dist/twilight/{p-24b05b1a.entry.js → p-751e0024.entry.js} +1 -1
- package/dist/twilight/{p-bb588e20.entry.js → p-78d12e59.entry.js} +1 -1
- package/dist/twilight/{p-6dfb4b36.entry.js → p-7af653fd.entry.js} +1 -1
- package/dist/twilight/{p-c5ff4012.entry.js → p-83adc1be.entry.js} +1 -1
- package/dist/twilight/{p-1ef01404.entry.js → p-83db3971.entry.js} +1 -1
- package/dist/twilight/{p-20b32fe8.entry.js → p-882b2bfe.entry.js} +1 -1
- package/dist/twilight/{p-eadcfa35.entry.js → p-884a8a23.entry.js} +1 -1
- package/dist/twilight/p-8bd4f18e.entry.js +4 -0
- package/dist/twilight/{p-7bcced89.entry.js → p-8f76f2ca.entry.js} +1 -1
- package/dist/twilight/{p-5e24d043.entry.js → p-9597a62a.entry.js} +1 -1
- package/dist/twilight/{p-3b0558c4.entry.js → p-978c4d5e.entry.js} +1 -1
- package/dist/twilight/{p-fdebb964.entry.js → p-9a142974.entry.js} +1 -1
- package/dist/twilight/{p-00a64a38.entry.js → p-9a37eea7.entry.js} +1 -1
- package/dist/twilight/{p-205a52b1.entry.js → p-9ccdac28.entry.js} +1 -1
- package/dist/twilight/{p-f5a225fb.entry.js → p-9f4adc18.entry.js} +1 -1
- package/dist/twilight/p-B3hrzPfw.js +4 -0
- package/dist/twilight/{p-aDXaoBqI.js → p-BJ31ZN0M.js} +1 -1
- package/dist/twilight/{p-BAAK-Wog.js → p-BgiHenwd.js} +1 -1
- package/dist/twilight/{p-CVVRdz9l.js → p-Bh5SqUDX.js} +1 -1
- package/dist/twilight/{p-BVp3vitI.js → p-Bp4nxKlJ.js} +1 -1
- package/dist/twilight/{p-BhnvZDje.js → p-C6vE8kuo.js} +1 -1
- package/dist/twilight/{p-Jii8QiXD.js → p-CN9ed0k2.js} +1 -1
- package/dist/twilight/{p-Bzuww4Jp.js → p-CuQZwJue.js} +1 -1
- package/dist/twilight/{p-BaM5mo9g.js → p-DXva9cuL.js} +1 -1
- package/dist/twilight/{p-9VcxoAaz.js → p-DkJk7oyK.js} +1 -1
- package/dist/twilight/{p-DboJwcoy.js → p-DqmP8Y8y.js} +1 -1
- package/dist/twilight/{p-BvzXDYao.js → p-POTxBToh.js} +1 -1
- package/dist/twilight/{p-4feac98b.entry.js → p-a5edff7a.entry.js} +1 -1
- package/dist/twilight/{p-6752ef5e.entry.js → p-a637f31f.entry.js} +1 -1
- package/dist/twilight/{p-27d8eddd.entry.js → p-a9ecd789.entry.js} +1 -1
- package/dist/twilight/{p-0d660e1f.entry.js → p-aded7099.entry.js} +1 -1
- package/dist/twilight/{p-cfa7e6f8.entry.js → p-b22eaeff.entry.js} +1 -1
- package/dist/twilight/{p-dd732fd5.entry.js → p-ba62c754.entry.js} +1 -1
- package/dist/twilight/{p-41df3651.entry.js → p-bb661b27.entry.js} +1 -1
- package/dist/twilight/{p-0930f5b4.entry.js → p-bbacd868.entry.js} +1 -1
- package/dist/twilight/{p-36e9a803.entry.js → p-bea52ab5.entry.js} +1 -1
- package/dist/twilight/{p-f6f860d3.entry.js → p-bfdeadc7.entry.js} +1 -1
- package/dist/twilight/{p-7f5d2abb.entry.js → p-bfe9e7b3.entry.js} +1 -1
- package/dist/twilight/{p-5aabe849.entry.js → p-c82583d7.entry.js} +1 -1
- package/dist/twilight/{p-cf65581e.entry.js → p-c9b79f97.entry.js} +1 -1
- package/dist/twilight/{p-f32d462e.entry.js → p-cc8cfb41.entry.js} +1 -1
- package/dist/twilight/{p-e0da92db.entry.js → p-d1a3d31c.entry.js} +1 -1
- package/dist/twilight/{p-fd486a62.entry.js → p-d29a0e54.entry.js} +1 -1
- package/dist/twilight/{p-8a55874d.entry.js → p-d5681b3d.entry.js} +1 -1
- package/dist/twilight/{p-beb851a0.entry.js → p-d7b32afd.entry.js} +1 -1
- package/dist/twilight/{p-f414c3e8.entry.js → p-d849d1e3.entry.js} +1 -1
- package/dist/twilight/{p-f180a4d2.entry.js → p-dcc50063.entry.js} +1 -1
- package/dist/twilight/{p-83880a8d.entry.js → p-ddf0d826.entry.js} +1 -1
- package/dist/twilight/{p-8bc3feef.entry.js → p-dfc1145f.entry.js} +1 -1
- package/dist/twilight/{p-63d277c4.entry.js → p-e156ed77.entry.js} +1 -1
- package/dist/twilight/{p-25b36736.entry.js → p-e1d0f511.entry.js} +1 -1
- package/dist/twilight/{p-c84796ed.entry.js → p-ed1149a1.entry.js} +1 -1
- package/dist/twilight/{p-7e04b708.entry.js → p-f0b71329.entry.js} +1 -1
- package/dist/twilight/{p-225fe66e.entry.js → p-f329dbd4.entry.js} +1 -1
- package/dist/twilight/{p-59eab6b7.entry.js → p-f420bc05.entry.js} +1 -1
- package/dist/twilight/{p-d79993a2.entry.js → p-f94b4221.entry.js} +1 -1
- package/dist/twilight/{p-81b539fc.entry.js → p-fececfd1.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +2 -0
- package/package.json +5 -5
- package/dist/twilight/p-6c573616.entry.js +0 -4
- package/dist/twilight/p-UAJe1KFk.js +0 -4
- package/dist/twilight/p-ae8d11a1.entry.js +0 -4
- package/dist/twilight/p-b955177d.entry.js +0 -4
|
@@ -16,15 +16,27 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
disableInputs(field) {
|
|
19
|
-
field.querySelectorAll('[name]').forEach((
|
|
19
|
+
field.querySelectorAll('[name]').forEach((node) => {
|
|
20
|
+
const input = node;
|
|
20
21
|
input.setAttribute('disabled', '');
|
|
21
22
|
input.removeAttribute('required');
|
|
22
|
-
if (input
|
|
23
|
+
if (input instanceof HTMLSelectElement) {
|
|
23
24
|
input.value = '';
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (input instanceof HTMLTextAreaElement) {
|
|
28
|
+
input.value = '';
|
|
29
|
+
return;
|
|
24
30
|
}
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
if (input instanceof HTMLInputElement) {
|
|
32
|
+
const t = (input.type || 'text').toLowerCase();
|
|
33
|
+
if (t === 'checkbox' || t === 'radio') {
|
|
34
|
+
input.checked = false;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (['text', 'search', 'number', 'tel', 'url', 'email'].includes(t)) {
|
|
38
|
+
input.value = '';
|
|
39
|
+
}
|
|
28
40
|
}
|
|
29
41
|
});
|
|
30
42
|
}
|
|
@@ -118,7 +130,7 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
|
|
|
118
130
|
});
|
|
119
131
|
}
|
|
120
132
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: 'a7314ccb4aaccc58db6c24db7a0f57e53087fdac' }, h("slot", { key: '0f192d2fd0670c8ba0e3d94dc84fed81123373b2' })));
|
|
122
134
|
}
|
|
123
135
|
get host() { return this; }
|
|
124
136
|
}, [4, "salla-conditional-fields", undefined, [[0, "change", "changeHandler"], [0, "input", "changeHandler"]]]);
|
|
@@ -206,8 +206,12 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
|
|
|
206
206
|
const requiredElements = this.host.querySelectorAll('[required]');
|
|
207
207
|
let pass = true;
|
|
208
208
|
for (let i = 0; i < requiredElements.length; i++) {
|
|
209
|
+
const el = requiredElements[i];
|
|
210
|
+
if (el.disabled || el.closest('.hidden')) {
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
209
213
|
//if there is only one invalid option, return false
|
|
210
|
-
if ('reportValidity' in
|
|
214
|
+
if ('reportValidity' in el && !el.reportValidity()) {
|
|
211
215
|
pass = false;
|
|
212
216
|
}
|
|
213
217
|
}
|
|
@@ -330,6 +334,13 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
|
|
|
330
334
|
}
|
|
331
335
|
return opt;
|
|
332
336
|
});
|
|
337
|
+
this.pruneInvisibleConditionalSelections();
|
|
338
|
+
this.setSelectedSkus();
|
|
339
|
+
requestAnimationFrame(() => {
|
|
340
|
+
this.optionsData
|
|
341
|
+
?.filter(o => o.type === DisplayType.MULTIPLE_OPTIONS && o.required)
|
|
342
|
+
.forEach(o => this.handleRequiredMultipleOptions(o));
|
|
343
|
+
});
|
|
333
344
|
// Emit the event only if fireChangeEvent is true
|
|
334
345
|
if (fireChangeEvent) {
|
|
335
346
|
this.changed.emit(data);
|
|
@@ -349,9 +360,60 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
|
|
|
349
360
|
return;
|
|
350
361
|
}
|
|
351
362
|
const optionContainer = this.host.querySelector(`[data-option-id="${option.id}"]`);
|
|
363
|
+
if (!optionContainer) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
352
366
|
const hasChecked = optionContainer.querySelectorAll('input:checked').length;
|
|
353
367
|
optionContainer.querySelectorAll('input').forEach(input => input.toggleAttribute('required', !hasChecked));
|
|
354
368
|
}
|
|
369
|
+
pruneInvisibleConditionalSelections() {
|
|
370
|
+
const passes = Math.max(1, this.optionsData.length);
|
|
371
|
+
for (let p = 0; p < passes; p++) {
|
|
372
|
+
let clearedSomething = false;
|
|
373
|
+
for (const opt of this.optionsData) {
|
|
374
|
+
const vc = opt.visibility_condition;
|
|
375
|
+
if (!vc) {
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
const selectedAtParent = this.selectedOptions
|
|
379
|
+
.filter(s => s.option_id === vc.option)
|
|
380
|
+
.map(s => String(s.id));
|
|
381
|
+
const targetSelected = selectedAtParent.includes(String(vc.value));
|
|
382
|
+
const shouldShow = vc.operator === '=' ? targetSelected : !targetSelected;
|
|
383
|
+
if (shouldShow) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
if (this.clearStaleOption(opt.id)) {
|
|
387
|
+
clearedSomething = true;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (!clearedSomething) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
clearStaleOption(optionId) {
|
|
396
|
+
const opt = this.optionsData.find(o => o.id === optionId);
|
|
397
|
+
if (!opt) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
const beforeLen = this.selectedOptions.length;
|
|
401
|
+
this.selectedOptions = this.selectedOptions.filter(s => s.option_id !== optionId);
|
|
402
|
+
const removedFromSelected = this.selectedOptions.length !== beforeLen;
|
|
403
|
+
const hasValue = opt.value != null && String(opt.value).length > 0;
|
|
404
|
+
const hadSelectedDetail = opt.details?.some(d => d.is_selected) ?? false;
|
|
405
|
+
if (!removedFromSelected && !hasValue && !hadSelectedDetail) {
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
this.optionsData = this.optionsData.map(o => o.id !== optionId
|
|
409
|
+
? o
|
|
410
|
+
: {
|
|
411
|
+
...o,
|
|
412
|
+
value: undefined,
|
|
413
|
+
details: o.details?.map(d => ({ ...d, is_selected: false })) ?? o.details,
|
|
414
|
+
});
|
|
415
|
+
return true;
|
|
416
|
+
}
|
|
355
417
|
getLatLng(value, type) {
|
|
356
418
|
return value
|
|
357
419
|
? value.split(',')[type === 'lat' ? 0 : 1]
|
|
@@ -79,14 +79,15 @@ const SallaQuantityInput = /*@__PURE__*/ proxyCustomElement(class SallaQuantityI
|
|
|
79
79
|
*/
|
|
80
80
|
async setValue(value, fireChangeEvent = true) {
|
|
81
81
|
this.fireChangeEvent = fireChangeEvent;
|
|
82
|
-
let
|
|
83
|
-
if (
|
|
84
|
-
|
|
82
|
+
let numericValue = parseInt(salla.helpers.digitsOnly(String(value ?? '')), 10);
|
|
83
|
+
if (!Number.isFinite(numericValue) || numericValue < 1) {
|
|
84
|
+
numericValue = 1;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
let maxQuantity = parseInt(this.host.getAttribute('max'));
|
|
87
|
+
if (maxQuantity && numericValue > maxQuantity) {
|
|
88
|
+
numericValue = maxQuantity;
|
|
88
89
|
}
|
|
89
|
-
this.quantity =
|
|
90
|
+
this.quantity = numericValue;
|
|
90
91
|
return this.host;
|
|
91
92
|
}
|
|
92
93
|
render() {
|
|
@@ -94,7 +95,7 @@ const SallaQuantityInput = /*@__PURE__*/ proxyCustomElement(class SallaQuantityI
|
|
|
94
95
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
95
96
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
96
97
|
}
|
|
97
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '97cfd53bacd63cfd819d733f25055fd6befcb46a', class: "s-quantity-input" }, h("div", { key: 'fbe95d268cfb58eac1cf751d39695fb1abb76de1', class: "s-quantity-input-container" }, h("button", { key: '511ee9299a053f3853b1e68783ec345523bf3dc2', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '104cad1ffb95e0213ee1ce3e215213d1ad346bdc', name: "increment-button" })), h("input", { key: '60d3114d8d7ca3a4923761041b4b02218fc903ce', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: '554b02f7b85cbd026431adf2573efa1cbb0564bb', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '8028a32c8c83a4205e093e8ad5ccf5d8e9fd019b', name: "decrement-button" })))));
|
|
98
99
|
}
|
|
99
100
|
get host() { return this; }
|
|
100
101
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-BJ31ZN0M.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|