@salla.sa/twilight-components 2.14.599 → 2.14.601
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-Dk1cJoJp.js → filepond-D8C4FvMF.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Bg4PCTUm.js → filepond-plugin-file-poster-Bha1u8_P.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DmqmRxXK.js → filepond-plugin-file-validate-size-BrGHDbNv.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BKd2QnuC.js → filepond-plugin-file-validate-type-D1ZhZw29.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BIPbEbnk.js → filepond-plugin-image-edit-CpMtbo-c.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-eQvkwjqa.js → filepond-plugin-image-exif-orientation-C106fw_6.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Ba8K6ft0.js → filepond-plugin-image-preview-B2u9bre9.js} +1 -1
- package/dist/cjs/{index-Bm1Ew-5K.js → index-CIcdvW25.js} +7 -7
- package/dist/cjs/{intlTelInput-MWwwr9Td.js → intlTelInput-C_vfjTaa.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +50 -19
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +22 -13
- package/dist/cjs/salla-badge.cjs.entry.js +2 -2
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-bullet-delivery_3.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 +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 +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +60 -29
- 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-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 +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_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 +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_2.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-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-options-modal.cjs.entry.js +5 -5
- 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 +49 -7
- 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-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 +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +12 -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 +24 -8
- 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 +1 -1
- package/dist/cjs/ssr-helpers-BjD2_F8m.js +48 -0
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BpuzEJnJ.js → vanilla-picker-9cRfp20y.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion-body.js +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +2 -2
- package/dist/collection/components/salla-accordion/salla-accordion.js +1 -1
- package/dist/collection/components/salla-alert/salla-alert.js +1 -1
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.css +3 -0
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +108 -32
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.types.js +1 -0
- package/dist/collection/components/salla-badge/salla-badge.js +1 -1
- package/dist/collection/components/salla-booking-field/salla-booking-field.js +21 -6
- package/dist/collection/components/salla-contacts/salla-contacts.js +114 -37
- package/dist/collection/components/salla-contacts/salla-contacts.types.js +1 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.js +4 -4
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +76 -7
- package/dist/collection/components/salla-search/salla-search.js +11 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +9 -2
- package/dist/collection/components/salla-tabs/salla-tabs.js +36 -8
- package/dist/collection/utils/ssr-helpers.js +105 -0
- package/dist/components/index.js +7 -7
- package/dist/components/salla-accordion-body2.js +1 -1
- package/dist/components/salla-accordion-head2.js +2 -2
- package/dist/components/salla-accordion2.js +1 -1
- package/dist/components/salla-alert.js +1 -1
- package/dist/components/salla-apps-icons.js +53 -20
- package/dist/components/salla-badge2.js +1 -1
- package/dist/components/salla-booking-field2.js +12 -3
- package/dist/components/salla-contacts.js +62 -30
- package/dist/components/salla-order-options-modal2.js +4 -4
- package/dist/components/salla-order-totals-card.js +50 -6
- package/dist/components/salla-search.js +11 -1
- package/dist/components/salla-tab-content2.js +8 -1
- package/dist/components/salla-tabs2.js +17 -7
- package/dist/components/ssr-helpers.js +46 -0
- package/dist/docs.json +255 -34
- package/dist/esm/{filepond-3PnWp9w_.js → filepond-CdHKzx8o.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DmoyhYlz.js → filepond-plugin-file-poster-Dv1xmT8j.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CFkn2RRt.js → filepond-plugin-file-validate-size-yC6pu05S.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-pyAPn10a.js → filepond-plugin-file-validate-type-6BfFanp-.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-B5Rfgqvi.js → filepond-plugin-image-edit-DXVicFoW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DK15iBED.js → filepond-plugin-image-exif-orientation-lh9c78ZN.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BIW0XW_M.js → filepond-plugin-image-preview--nSwXCrA.js} +1 -1
- package/dist/esm/{index-CwwxD-7C.js → index-8Kr0yg20.js} +7 -7
- package/dist/esm/{intlTelInput-DYJOvh3V.js → intlTelInput-l4GKBLuF.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +4 -4
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +2 -2
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-applied-filters.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +50 -19
- package/dist/esm/salla-attachment-view_9.entry.js +22 -13
- package/dist/esm/salla-badge.entry.js +2 -2
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.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 +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 +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +60 -29
- 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-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 +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_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 +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_2.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-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-options-modal.entry.js +5 -5
- 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 +49 -7
- 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-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 +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-search-product-card.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +12 -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 +24 -8
- 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 +1 -1
- package/dist/esm/ssr-helpers-BJN-DTdN.js +46 -0
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BzVn0xEV.js → vanilla-picker-Cz2XdDMP.js} +1 -1
- package/dist/twilight/{p-3243ab6e.entry.js → p-00654af3.entry.js} +1 -1
- package/dist/twilight/{p-c84e619a.entry.js → p-048ee93a.entry.js} +1 -1
- package/dist/twilight/{p-0889368b.entry.js → p-052fb212.entry.js} +1 -1
- package/dist/twilight/{p-b7dfb1f1.entry.js → p-06b45154.entry.js} +1 -1
- package/dist/twilight/{p-7f653481.entry.js → p-0e98fddd.entry.js} +1 -1
- package/dist/twilight/{p-62c985bc.entry.js → p-0fdbd8cc.entry.js} +1 -1
- package/dist/twilight/{p-0b0c9ecb.entry.js → p-11695661.entry.js} +1 -1
- package/dist/twilight/{p-6fa1498b.entry.js → p-126d5595.entry.js} +1 -1
- package/dist/twilight/{p-62373e96.entry.js → p-16479b90.entry.js} +1 -1
- package/dist/twilight/{p-f5693509.entry.js → p-16dcf15c.entry.js} +1 -1
- package/dist/twilight/{p-f310c72e.entry.js → p-1db334c5.entry.js} +1 -1
- package/dist/twilight/{p-b7c815f7.entry.js → p-1e0df65d.entry.js} +1 -1
- package/dist/twilight/p-2173c0f0.entry.js +4 -0
- package/dist/twilight/p-23073b8a.entry.js +4 -0
- package/dist/twilight/{p-c892e962.entry.js → p-254c863e.entry.js} +1 -1
- package/dist/twilight/{p-651db82c.entry.js → p-25f15ab6.entry.js} +1 -1
- package/dist/twilight/{p-96154a67.entry.js → p-270e4b2d.entry.js} +1 -1
- package/dist/twilight/{p-afd47a18.entry.js → p-28c75dcf.entry.js} +1 -1
- package/dist/twilight/{p-e248f0d0.entry.js → p-2a160737.entry.js} +1 -1
- package/dist/twilight/{p-cce07c4c.entry.js → p-2a28633d.entry.js} +1 -1
- package/dist/twilight/{p-e4ed760b.entry.js → p-2bf57ca7.entry.js} +1 -1
- package/dist/twilight/p-3118f527.entry.js +4 -0
- package/dist/twilight/{p-07817ae8.entry.js → p-3130e363.entry.js} +1 -1
- package/dist/twilight/{p-ee2a5db7.entry.js → p-3179c72b.entry.js} +1 -1
- package/dist/twilight/{p-6d47b269.entry.js → p-3392ced8.entry.js} +1 -1
- package/dist/twilight/{p-0ba03206.entry.js → p-34b6c381.entry.js} +1 -1
- package/dist/twilight/{p-DFj0n9Nh.js → p-3RAlOumf.js} +1 -1
- package/dist/twilight/{p-83e1c586.entry.js → p-3ad77173.entry.js} +1 -1
- package/dist/twilight/{p-f4d52f9b.entry.js → p-3c89325e.entry.js} +1 -1
- package/dist/twilight/p-3cd513b2.entry.js +4 -0
- package/dist/twilight/{p-18e75544.entry.js → p-476e3d1b.entry.js} +1 -1
- package/dist/twilight/{p-f5026adf.entry.js → p-490493cc.entry.js} +1 -1
- package/dist/twilight/{p-bcbb4a03.entry.js → p-4b559931.entry.js} +1 -1
- package/dist/twilight/{p-0253bf71.entry.js → p-4cfca9e1.entry.js} +1 -1
- package/dist/twilight/{p-d01c4ba8.entry.js → p-5076dfe4.entry.js} +1 -1
- package/dist/twilight/{p-1fd1c0a3.entry.js → p-5500cb85.entry.js} +1 -1
- package/dist/twilight/{p-e1fb95cb.entry.js → p-5b0259d8.entry.js} +1 -1
- package/dist/twilight/{p-f51e9549.entry.js → p-5bfe0a12.entry.js} +1 -1
- package/dist/twilight/{p-6e7433f2.entry.js → p-5de3e4c3.entry.js} +1 -1
- package/dist/twilight/{p-ac8a7743.entry.js → p-5f176cff.entry.js} +1 -1
- package/dist/twilight/{p-8e91da09.entry.js → p-60a16078.entry.js} +1 -1
- package/dist/twilight/{p-76ca3445.entry.js → p-62081545.entry.js} +1 -1
- package/dist/twilight/{p-f1d5ebf4.entry.js → p-64ce7d04.entry.js} +1 -1
- package/dist/twilight/{p-c4f92bae.entry.js → p-654d7158.entry.js} +1 -1
- package/dist/twilight/{p-f580d024.entry.js → p-66739790.entry.js} +1 -1
- package/dist/twilight/{p-659e00b7.entry.js → p-68bab651.entry.js} +1 -1
- package/dist/twilight/{p-d8cf239a.entry.js → p-6b9e0168.entry.js} +1 -1
- package/dist/twilight/{p-114e4228.entry.js → p-6d629a37.entry.js} +1 -1
- package/dist/twilight/{p-c98d1097.entry.js → p-6f64aca2.entry.js} +1 -1
- package/dist/twilight/{p-c282869e.entry.js → p-70e1cddf.entry.js} +1 -1
- package/dist/twilight/{p-bc5b70e9.entry.js → p-722a1d49.entry.js} +1 -1
- package/dist/twilight/p-72f1eb9d.entry.js +4 -0
- package/dist/twilight/{p-2213f6eb.entry.js → p-73be3e2b.entry.js} +1 -1
- package/dist/twilight/{p-6b2f6957.entry.js → p-78fce485.entry.js} +1 -1
- package/dist/twilight/{p-62dc337d.entry.js → p-7a7efc1e.entry.js} +1 -1
- package/dist/twilight/{p-1b25ea2a.entry.js → p-80986ebf.entry.js} +1 -1
- package/dist/twilight/{p-2b5242cb.entry.js → p-8456fc2b.entry.js} +1 -1
- package/dist/twilight/{p-4ebee06a.entry.js → p-845d6d9f.entry.js} +1 -1
- package/dist/twilight/p-8Kr0yg20.js +5 -0
- package/dist/twilight/{p-fe7751a8.entry.js → p-8bb54ab1.entry.js} +1 -1
- package/dist/twilight/{p-10418cc0.entry.js → p-8bd722e2.entry.js} +1 -1
- package/dist/twilight/{p-8aa29666.entry.js → p-942a9370.entry.js} +1 -1
- package/dist/twilight/p-96028c8b.entry.js +4 -0
- package/dist/twilight/{p-46c8b068.entry.js → p-96b9ba64.entry.js} +1 -1
- package/dist/twilight/{p-db1e0bc6.entry.js → p-98de4c11.entry.js} +1 -1
- package/dist/twilight/{p-c7a491ef.entry.js → p-9a30c09e.entry.js} +1 -1
- package/dist/twilight/{p-20f98a45.entry.js → p-9bc1676b.entry.js} +1 -1
- package/dist/twilight/{p-CYeysHdt.js → p-B-WH3lv4.js} +1 -1
- package/dist/twilight/p-BJN-DTdN.js +4 -0
- package/dist/twilight/{p-DzBc32wK.js → p-BNVpOSmh.js} +1 -1
- package/dist/twilight/{p-DHXSZjVo.js → p-B_znruWg.js} +1 -1
- package/dist/twilight/{p-CntnRJCa.js → p-BwJOl2G2.js} +1 -1
- package/dist/twilight/{p-Bb9AkvT4.js → p-CSgEn8iE.js} +1 -1
- package/dist/twilight/{p-FcjN5vEx.js → p-C_-Bd9R8.js} +1 -1
- package/dist/twilight/{p-CaabLwI1.js → p-DCZHPueO.js} +1 -1
- package/dist/twilight/{p-B8yyit_i.js → p-DdILhElb.js} +1 -1
- package/dist/twilight/{p-aaac2388.entry.js → p-a3630cbf.entry.js} +1 -1
- package/dist/twilight/{p-509b04c7.entry.js → p-a98f0462.entry.js} +1 -1
- package/dist/twilight/{p-b2ff66ed.entry.js → p-ac719286.entry.js} +1 -1
- package/dist/twilight/{p-55399fed.entry.js → p-b68679eb.entry.js} +1 -1
- package/dist/twilight/{p-f38d6c1b.entry.js → p-b7ed8e39.entry.js} +1 -1
- package/dist/twilight/{p-79ce9e95.entry.js → p-b85d3a54.entry.js} +1 -1
- package/dist/twilight/{p-6d61d93c.entry.js → p-b8e56642.entry.js} +1 -1
- package/dist/twilight/{p-14b1b664.entry.js → p-c0d00e89.entry.js} +1 -1
- package/dist/twilight/p-c1039294.entry.js +4 -0
- package/dist/twilight/{p-0bff8609.entry.js → p-c6c496ec.entry.js} +1 -1
- package/dist/twilight/{p-89bba634.entry.js → p-ca838de0.entry.js} +1 -1
- package/dist/twilight/{p-067ad44c.entry.js → p-cf742415.entry.js} +1 -1
- package/dist/twilight/{p-dc090987.entry.js → p-d062becf.entry.js} +1 -1
- package/dist/twilight/p-d7cb0405.entry.js +4 -0
- package/dist/twilight/{p-925ba8ce.entry.js → p-d9360a47.entry.js} +1 -1
- package/dist/twilight/{p-7148dbad.entry.js → p-db5d3d60.entry.js} +1 -1
- package/dist/twilight/{p-93d284c4.entry.js → p-dc226d90.entry.js} +1 -1
- package/dist/twilight/{p-1c191c15.entry.js → p-df6a4f43.entry.js} +1 -1
- package/dist/twilight/{p-8d99e9d1.entry.js → p-e12337ab.entry.js} +1 -1
- package/dist/twilight/{p-2db00d46.entry.js → p-e54b95a6.entry.js} +1 -1
- package/dist/twilight/{p-261aff22.entry.js → p-e5f0a5f3.entry.js} +1 -1
- package/dist/twilight/{p-4ca3b245.entry.js → p-e62dd507.entry.js} +1 -1
- package/dist/twilight/{p-25fb1508.entry.js → p-e7ac6421.entry.js} +1 -1
- package/dist/twilight/{p-dda47e56.entry.js → p-e93bcc6e.entry.js} +1 -1
- package/dist/twilight/{p-d6886b07.entry.js → p-eb91b45a.entry.js} +1 -1
- package/dist/twilight/{p-a6594c68.entry.js → p-f1eca4da.entry.js} +1 -1
- package/dist/twilight/{p-56c77026.entry.js → p-f6b40c3f.entry.js} +1 -1
- package/dist/twilight/{p-065f2937.entry.js → p-f6dc6e8a.entry.js} +1 -1
- package/dist/twilight/{p-49bba37d.entry.js → p-fd4786e4.entry.js} +1 -1
- package/dist/twilight/{p-84912a5a.entry.js → p-ff64dad1.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-apps-icons/salla-apps-icons.d.ts +26 -13
- package/dist/types/components/salla-apps-icons/salla-apps-icons.types.d.ts +4 -0
- package/dist/types/components/salla-booking-field/salla-booking-field.d.ts +5 -1
- package/dist/types/components/salla-contacts/salla-contacts.d.ts +26 -14
- package/dist/types/components/salla-contacts/salla-contacts.types.d.ts +7 -0
- package/dist/types/components/salla-order-totals-card/interfaces.d.ts +27 -0
- package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +12 -4
- package/dist/types/components/salla-search/salla-search.d.ts +3 -1
- package/dist/types/components/salla-tabs/salla-tab-content.d.ts +3 -2
- package/dist/types/components/salla-tabs/salla-tabs.d.ts +8 -3
- package/dist/types/components.d.ts +90 -22
- package/dist/types/utils/ssr-helpers.d.ts +73 -0
- package/package.json +5 -5
- package/dist/twilight/p-1f561241.entry.js +0 -4
- package/dist/twilight/p-27df0290.entry.js +0 -4
- package/dist/twilight/p-2f04343f.entry.js +0 -4
- package/dist/twilight/p-3de0b3ae.entry.js +0 -4
- package/dist/twilight/p-89fddf1e.entry.js +0 -4
- package/dist/twilight/p-CwwxD-7C.js +0 -5
- package/dist/twilight/p-a743a10a.entry.js +0 -4
- package/dist/twilight/p-f345a77d.entry.js +0 -4
- package/dist/twilight/p-f8b428cb.entry.js +0 -4
|
@@ -1,28 +1,41 @@
|
|
|
1
|
+
import { AppsIconsConfig } from './salla-apps-icons.types';
|
|
1
2
|
/**
|
|
2
3
|
* @slot app - Replaces app item, has replaceable props `{icon}`, `{name}`.
|
|
3
4
|
*/
|
|
4
5
|
export declare class SallaAppsIcons {
|
|
5
|
-
private langUnsubscribe;
|
|
6
|
-
constructor();
|
|
7
|
-
connectedCallback(): void;
|
|
8
|
-
disconnectedCallback(): void;
|
|
9
|
-
private readonly appSlot;
|
|
10
6
|
host: HTMLElement;
|
|
11
|
-
apps: any;
|
|
12
7
|
/**
|
|
13
|
-
*
|
|
8
|
+
* Apps URLs in object format {appstore, googleplay}.
|
|
9
|
+
* When not provided, uses SDK config 'store.apps'.
|
|
14
10
|
*/
|
|
15
|
-
|
|
11
|
+
apps?: AppsIconsConfig;
|
|
16
12
|
/**
|
|
17
|
-
* The title to display.
|
|
13
|
+
* The title to display above icons.
|
|
14
|
+
* When not provided, uses SDK lang 'blocks.footer.download_apps'.
|
|
18
15
|
*/
|
|
19
|
-
appsTitle
|
|
16
|
+
appsTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Flag to hide the title.
|
|
19
|
+
*/
|
|
20
|
+
hideTitle: boolean;
|
|
20
21
|
/**
|
|
21
|
-
* Display
|
|
22
|
+
* Display icons vertically instead of horizontally.
|
|
22
23
|
*/
|
|
23
24
|
vertical: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Custom slot template HTML with placeholders {icon}, {name}.
|
|
27
|
+
* Used for SSR. Client-side can use slot="app" instead.
|
|
28
|
+
*/
|
|
29
|
+
slotTemplate?: string;
|
|
30
|
+
private sdkApps;
|
|
31
|
+
private appSlot;
|
|
32
|
+
private langUnsubscribe?;
|
|
33
|
+
private langTitle;
|
|
34
|
+
private getDefaultSlot;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
24
37
|
private getAppsArray;
|
|
25
|
-
|
|
26
|
-
render(): any;
|
|
38
|
+
private getCdnUrl;
|
|
27
39
|
componentDidRender(): void;
|
|
40
|
+
render(): any;
|
|
28
41
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Option, Reservation } from './interfaces';
|
|
3
|
+
export interface SallaBookingFieldInvalidInputEvent {
|
|
4
|
+
target: HTMLInputElement;
|
|
5
|
+
validity: ValidityState;
|
|
6
|
+
}
|
|
3
7
|
export declare class SallaBookingField {
|
|
4
8
|
private langUnsubscribe;
|
|
5
9
|
/**
|
|
@@ -22,7 +26,7 @@ export declare class SallaBookingField {
|
|
|
22
26
|
/**
|
|
23
27
|
* Event emitted when the input is invalid.
|
|
24
28
|
*/
|
|
25
|
-
invalidInput: EventEmitter<
|
|
29
|
+
invalidInput: EventEmitter<SallaBookingFieldInvalidInputEvent>;
|
|
26
30
|
private modal;
|
|
27
31
|
private iframe;
|
|
28
32
|
constructor();
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { ContactsConfig } from './salla-contacts.types';
|
|
1
2
|
/**
|
|
2
|
-
* @slot contact - Replaces contact item, has replaceable props `{icon}`, `{value}`.
|
|
3
|
+
* @slot contact - Replaces contact item, has replaceable props `{icon}`, `{value}`, `{link}`.
|
|
3
4
|
*/
|
|
4
5
|
export declare class SallaContacts {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
host: HTMLElement;
|
|
7
|
+
/**
|
|
8
|
+
* Contact information in object format {whatsapp, mobile, phone, email, telegram}.
|
|
9
|
+
* When not provided, uses SDK config 'store.contacts'.
|
|
10
|
+
*/
|
|
11
|
+
contacts?: ContactsConfig;
|
|
11
12
|
/**
|
|
12
13
|
* Section title for social block of footer.
|
|
14
|
+
* When not provided, uses SDK lang 'blocks.footer.social'.
|
|
13
15
|
*/
|
|
14
|
-
contactsTitle
|
|
16
|
+
contactsTitle?: string;
|
|
15
17
|
/**
|
|
16
18
|
* Flag to toggle title visibility.
|
|
17
19
|
*/
|
|
@@ -25,16 +27,26 @@ export declare class SallaContacts {
|
|
|
25
27
|
*/
|
|
26
28
|
horizontal: boolean;
|
|
27
29
|
/**
|
|
28
|
-
* Flag condition to show icon only or icon with label
|
|
30
|
+
* Flag condition to show icon only or icon with label.
|
|
29
31
|
*/
|
|
30
32
|
iconsOnly: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Custom slot template HTML with placeholders {icon}, {value}, {link}.
|
|
35
|
+
* Used for SSR. Client-side can use slot="contact" instead.
|
|
36
|
+
*/
|
|
37
|
+
slotTemplate?: string;
|
|
38
|
+
private sdkContacts;
|
|
39
|
+
private contactSlot;
|
|
40
|
+
private langUnsubscribe?;
|
|
41
|
+
private langTitle;
|
|
42
|
+
private iconsList;
|
|
43
|
+
private getDefaultSlot;
|
|
44
|
+
connectedCallback(): void;
|
|
45
|
+
disconnectedCallback(): void;
|
|
46
|
+
private getContactsData;
|
|
34
47
|
private getContactsArray;
|
|
35
48
|
private getContactLink;
|
|
36
49
|
private getContactIcon;
|
|
37
|
-
componentWillLoad(): Promise<unknown>;
|
|
38
|
-
render(): any;
|
|
39
50
|
componentDidRender(): void;
|
|
51
|
+
render(): any;
|
|
40
52
|
}
|
|
@@ -7,6 +7,33 @@ export interface Discount {
|
|
|
7
7
|
name: string;
|
|
8
8
|
discount: number;
|
|
9
9
|
}
|
|
10
|
+
export interface AmountsDiscount {
|
|
11
|
+
title: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
code?: string;
|
|
14
|
+
discount: string | number;
|
|
15
|
+
currency?: string;
|
|
16
|
+
discounted_shipping?: string;
|
|
17
|
+
hasMarketing?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface AmountsTax {
|
|
20
|
+
percent: string | number;
|
|
21
|
+
amount: Total;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Amounts prop shape (from theme's Moneys interface)
|
|
25
|
+
*/
|
|
26
|
+
export interface Amounts {
|
|
27
|
+
sub_total?: Total;
|
|
28
|
+
shipping_cost?: Total;
|
|
29
|
+
cash_on_delivery?: Total;
|
|
30
|
+
tax?: AmountsTax;
|
|
31
|
+
discounts?: AmountsDiscount[];
|
|
32
|
+
total?: Total;
|
|
33
|
+
paid_amount?: Total;
|
|
34
|
+
remaining_amount?: Total;
|
|
35
|
+
refund_amount?: Total;
|
|
36
|
+
}
|
|
10
37
|
export interface OrderSummary {
|
|
11
38
|
sub_total?: Total;
|
|
12
39
|
options?: OrderProduct[];
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Order } from '../salla-orders/interface';
|
|
2
|
-
import { OrderSummary } from './interfaces';
|
|
2
|
+
import { Amounts, OrderSummary } from './interfaces';
|
|
3
3
|
export declare class SallaOrderTotalsCard {
|
|
4
4
|
/**
|
|
5
|
-
* Order
|
|
5
|
+
* Order totals object (new schema). Accepts a JSON string or object with amounts.
|
|
6
|
+
*/
|
|
7
|
+
amounts?: string | Amounts;
|
|
8
|
+
/**
|
|
9
|
+
* Legacy order object for backward compatibility. Prefer using `amounts` instead.
|
|
6
10
|
*/
|
|
7
11
|
order?: string | Order;
|
|
8
12
|
summary?: OrderSummary;
|
|
9
|
-
|
|
13
|
+
private refreshSummary;
|
|
14
|
+
protected handleAmountsChange(): void;
|
|
15
|
+
protected handleOrderChange(): void;
|
|
10
16
|
componentWillLoad(): Promise<void>;
|
|
11
|
-
private
|
|
17
|
+
private normalizeAmounts;
|
|
18
|
+
private setSummaryFromAmounts;
|
|
19
|
+
private setSummaryFromOrder;
|
|
12
20
|
private renderTotalRow;
|
|
13
21
|
private renderDiscountRow;
|
|
14
22
|
private renderRefundRow;
|
|
@@ -3,7 +3,9 @@ import SearchProductsResponse from './search-response';
|
|
|
3
3
|
import { SearchLabels, SearchTrendingCategory, SearchTrendingProduct } from './interfaces';
|
|
4
4
|
export declare class SallaSearch {
|
|
5
5
|
host: HTMLStencilElement | undefined;
|
|
6
|
-
|
|
6
|
+
private searchOpenListener;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
7
9
|
private modal;
|
|
8
10
|
private searchInput;
|
|
9
11
|
private hasTrackedFocus;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class SallaTabContent {
|
|
5
5
|
/**
|
|
6
|
-
* Set name of the tab content. Mainly used as a key to
|
|
7
|
-
* ynchronize the content with it's respective header.
|
|
6
|
+
* Set name of the tab content. Mainly used as a key to synchronize the content with its respective header.
|
|
8
7
|
*/
|
|
9
8
|
name: string;
|
|
10
9
|
isSelected: boolean;
|
|
10
|
+
host: HTMLElement;
|
|
11
11
|
/**
|
|
12
12
|
* Expose self for the parent.
|
|
13
13
|
*/
|
|
@@ -16,6 +16,7 @@ export declare class SallaTabContent {
|
|
|
16
16
|
unselect: any;
|
|
17
17
|
name: string;
|
|
18
18
|
}>;
|
|
19
|
+
componentWillLoad(): void;
|
|
19
20
|
unselect(): void;
|
|
20
21
|
selected(): void;
|
|
21
22
|
render(): any;
|
|
@@ -8,15 +8,20 @@ export declare class SallaTabs {
|
|
|
8
8
|
tabsContent: ISallaTabContentData[];
|
|
9
9
|
tabGroup: ISallaTabGroup[];
|
|
10
10
|
/**
|
|
11
|
-
* Background color
|
|
11
|
+
* Background color for the tabs header section. Accepts any CSS color value.
|
|
12
12
|
*/
|
|
13
13
|
backgroundColor: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Whether to display tabs in a vertical layout. Default is false (horizontal layout).
|
|
16
16
|
*/
|
|
17
17
|
vertical: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Initial active tab name for SSR. When provided, child components (salla-tab-header/salla-tab-content)
|
|
20
|
+
* will use this value to set their initial active state. If not provided, first tab becomes active after hydration.
|
|
21
|
+
*/
|
|
22
|
+
activeTab?: string;
|
|
18
23
|
host: HTMLElement;
|
|
19
|
-
|
|
24
|
+
componentDidLoad(): void;
|
|
20
25
|
onSelectedTab(event: CustomEvent): void;
|
|
21
26
|
createGroup(): Promise<void>;
|
|
22
27
|
selectGroup(group: ISallaTabGroup): void;
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { AppsIconsConfig } from "./components/salla-apps-icons/salla-apps-icons.types";
|
|
8
9
|
import { Attachment } from "./components/salla-attachment-view/salla-attachment-view";
|
|
9
10
|
import { Attachment as Attachment1 } from "./components/salla-attachment-view/salla-attachment-view";
|
|
10
11
|
import { Option } from "./components/salla-booking-field/interfaces";
|
|
12
|
+
import { SallaBookingFieldInvalidInputEvent } from "./components/salla-booking-field/salla-booking-field";
|
|
11
13
|
import { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
|
|
12
14
|
import { Coupon } from "./components/salla-cart-coupons/interfaces";
|
|
13
15
|
import { Color, Options } from "./components/salla-color-picker/interfaces";
|
|
14
16
|
import { Comment, CommentSort, CommentType, ReviewFactor } from "./components/salla-comments/interfaces";
|
|
17
|
+
import { ContactsConfig } from "./components/salla-contacts/salla-contacts.types";
|
|
15
18
|
import { CustomField } from "./components/salla-user-profile/interfaces";
|
|
16
19
|
import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
|
|
17
20
|
import { FilePondFile } from "./components/salla-file-upload/interfaces";
|
|
@@ -27,6 +30,7 @@ import { OrderProduct, ProductOption } from "./components/salla-order-details/in
|
|
|
27
30
|
import { OrderEditItem, OrderEditProductOption, OrderEditSelectedOptions } from "./components/salla-order-edit/interfaces";
|
|
28
31
|
import { Product } from "@salla.sa/twilight/types/common";
|
|
29
32
|
import { FreeProductSelection, OrderOptionEntry } from "./components/salla-order-options-modal/salla-order-options-modal";
|
|
33
|
+
import { Amounts } from "./components/salla-order-totals-card/interfaces";
|
|
30
34
|
import { Order, OrderQueryParameters } from "./components/salla-orders/interface";
|
|
31
35
|
import { Donation, Option as Option1 } from "./components/salla-product-options/interfaces";
|
|
32
36
|
import { SallaSliderProps } from "./components/salla-slider/salla-slider";
|
|
@@ -35,13 +39,16 @@ import { ReviewFactor as ReviewFactor1 } from "./components/salla-review-factors
|
|
|
35
39
|
import { ReviewType, SortingOption, Source } from "./components/salla-reviews/interfaces";
|
|
36
40
|
import { DropdownItem } from "./components/salla-searchable-dropdown/interfaces";
|
|
37
41
|
import { Phone } from "./components/salla-tel-input/interfaces";
|
|
42
|
+
export { AppsIconsConfig } from "./components/salla-apps-icons/salla-apps-icons.types";
|
|
38
43
|
export { Attachment } from "./components/salla-attachment-view/salla-attachment-view";
|
|
39
44
|
export { Attachment as Attachment1 } from "./components/salla-attachment-view/salla-attachment-view";
|
|
40
45
|
export { Option } from "./components/salla-booking-field/interfaces";
|
|
46
|
+
export { SallaBookingFieldInvalidInputEvent } from "./components/salla-booking-field/salla-booking-field";
|
|
41
47
|
export { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
|
|
42
48
|
export { Coupon } from "./components/salla-cart-coupons/interfaces";
|
|
43
49
|
export { Color, Options } from "./components/salla-color-picker/interfaces";
|
|
44
50
|
export { Comment, CommentSort, CommentType, ReviewFactor } from "./components/salla-comments/interfaces";
|
|
51
|
+
export { ContactsConfig } from "./components/salla-contacts/salla-contacts.types";
|
|
45
52
|
export { CustomField } from "./components/salla-user-profile/interfaces";
|
|
46
53
|
export { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
|
|
47
54
|
export { FilePondFile } from "./components/salla-file-upload/interfaces";
|
|
@@ -57,6 +64,7 @@ export { OrderProduct, ProductOption } from "./components/salla-order-details/in
|
|
|
57
64
|
export { OrderEditItem, OrderEditProductOption, OrderEditSelectedOptions } from "./components/salla-order-edit/interfaces";
|
|
58
65
|
export { Product } from "@salla.sa/twilight/types/common";
|
|
59
66
|
export { FreeProductSelection, OrderOptionEntry } from "./components/salla-order-options-modal/salla-order-options-modal";
|
|
67
|
+
export { Amounts } from "./components/salla-order-totals-card/interfaces";
|
|
60
68
|
export { Order, OrderQueryParameters } from "./components/salla-orders/interface";
|
|
61
69
|
export { Donation, Option as Option1 } from "./components/salla-product-options/interfaces";
|
|
62
70
|
export { SallaSliderProps } from "./components/salla-slider/salla-slider";
|
|
@@ -192,15 +200,25 @@ export namespace Components {
|
|
|
192
200
|
}
|
|
193
201
|
interface SallaAppsIcons {
|
|
194
202
|
/**
|
|
195
|
-
*
|
|
203
|
+
* Apps URLs in object format {appstore, googleplay}. When not provided, uses SDK config 'store.apps'.
|
|
196
204
|
*/
|
|
197
|
-
"
|
|
205
|
+
"apps"?: AppsIconsConfig;
|
|
198
206
|
/**
|
|
199
|
-
*
|
|
207
|
+
* The title to display above icons. When not provided, uses SDK lang 'blocks.footer.download_apps'.
|
|
208
|
+
*/
|
|
209
|
+
"appsTitle"?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Flag to hide the title.
|
|
212
|
+
* @default false
|
|
200
213
|
*/
|
|
201
214
|
"hideTitle": boolean;
|
|
202
215
|
/**
|
|
203
|
-
*
|
|
216
|
+
* Custom slot template HTML with placeholders {icon}, {name}. Used for SSR. Client-side can use slot="app" instead.
|
|
217
|
+
*/
|
|
218
|
+
"slotTemplate"?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Display icons vertically instead of horizontally.
|
|
221
|
+
* @default false
|
|
204
222
|
*/
|
|
205
223
|
"vertical": boolean;
|
|
206
224
|
}
|
|
@@ -657,25 +675,37 @@ export namespace Components {
|
|
|
657
675
|
}
|
|
658
676
|
interface SallaContacts {
|
|
659
677
|
/**
|
|
660
|
-
*
|
|
678
|
+
* Contact information in object format {whatsapp, mobile, phone, email, telegram}. When not provided, uses SDK config 'store.contacts'.
|
|
661
679
|
*/
|
|
662
|
-
"
|
|
680
|
+
"contacts"?: ContactsConfig;
|
|
681
|
+
/**
|
|
682
|
+
* Section title for social block of footer. When not provided, uses SDK lang 'blocks.footer.social'.
|
|
683
|
+
*/
|
|
684
|
+
"contactsTitle"?: string;
|
|
663
685
|
/**
|
|
664
686
|
* Flag to toggle title visibility.
|
|
687
|
+
* @default false
|
|
665
688
|
*/
|
|
666
689
|
"hideTitle": boolean;
|
|
667
690
|
/**
|
|
668
691
|
* Flag to toggle list of contents whether vertical or horizontal.
|
|
692
|
+
* @default false
|
|
669
693
|
*/
|
|
670
694
|
"horizontal": boolean;
|
|
671
695
|
/**
|
|
672
|
-
* Flag condition to show icon only or icon with label
|
|
696
|
+
* Flag condition to show icon only or icon with label.
|
|
697
|
+
* @default false
|
|
673
698
|
*/
|
|
674
699
|
"iconsOnly": boolean;
|
|
675
700
|
/**
|
|
676
701
|
* Conditional flag to check whether the content is header or not.
|
|
702
|
+
* @default false
|
|
677
703
|
*/
|
|
678
704
|
"isHeader": boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Custom slot template HTML with placeholders {icon}, {value}, {link}. Used for SSR. Client-side can use slot="contact" instead.
|
|
707
|
+
*/
|
|
708
|
+
"slotTemplate"?: string;
|
|
679
709
|
}
|
|
680
710
|
interface SallaCookiesBar {
|
|
681
711
|
/**
|
|
@@ -2275,7 +2305,11 @@ export namespace Components {
|
|
|
2275
2305
|
}
|
|
2276
2306
|
interface SallaOrderTotalsCard {
|
|
2277
2307
|
/**
|
|
2278
|
-
* Order
|
|
2308
|
+
* Order totals object (new schema). Accepts a JSON string or object with amounts.
|
|
2309
|
+
*/
|
|
2310
|
+
"amounts"?: string | Amounts;
|
|
2311
|
+
/**
|
|
2312
|
+
* Legacy order object for backward compatibility. Prefer using `amounts` instead.
|
|
2279
2313
|
*/
|
|
2280
2314
|
"order"?: string | Order;
|
|
2281
2315
|
}
|
|
@@ -3475,7 +3509,7 @@ export namespace Components {
|
|
|
3475
3509
|
*/
|
|
3476
3510
|
"getChild": () => Promise<{ selected: any; unselect: any; name: string; }>;
|
|
3477
3511
|
/**
|
|
3478
|
-
* Set name of the tab content. Mainly used as a key to
|
|
3512
|
+
* Set name of the tab content. Mainly used as a key to synchronize the content with its respective header.
|
|
3479
3513
|
*/
|
|
3480
3514
|
"name": string;
|
|
3481
3515
|
}
|
|
@@ -3506,12 +3540,16 @@ export namespace Components {
|
|
|
3506
3540
|
}
|
|
3507
3541
|
interface SallaTabs {
|
|
3508
3542
|
/**
|
|
3509
|
-
*
|
|
3543
|
+
* Initial active tab name for SSR. When provided, child components (salla-tab-header/salla-tab-content) will use this value to set their initial active state. If not provided, first tab becomes active after hydration.
|
|
3544
|
+
*/
|
|
3545
|
+
"activeTab"?: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* Background color for the tabs header section. Accepts any CSS color value.
|
|
3510
3548
|
* @default undefined
|
|
3511
3549
|
*/
|
|
3512
3550
|
"backgroundColor": string;
|
|
3513
3551
|
/**
|
|
3514
|
-
*
|
|
3552
|
+
* Whether to display tabs in a vertical layout. Default is false (horizontal layout).
|
|
3515
3553
|
* @default false
|
|
3516
3554
|
*/
|
|
3517
3555
|
"vertical": boolean;
|
|
@@ -3984,7 +4022,7 @@ declare global {
|
|
|
3984
4022
|
new (): HTMLSallaBasketGapElement;
|
|
3985
4023
|
};
|
|
3986
4024
|
interface HTMLSallaBookingFieldElementEventMap {
|
|
3987
|
-
"invalidInput":
|
|
4025
|
+
"invalidInput": SallaBookingFieldInvalidInputEvent;
|
|
3988
4026
|
}
|
|
3989
4027
|
interface HTMLSallaBookingFieldElement extends Components.SallaBookingField, HTMLStencilElement {
|
|
3990
4028
|
addEventListener<K extends keyof HTMLSallaBookingFieldElementEventMap>(type: K, listener: (this: HTMLSallaBookingFieldElement, ev: SallaBookingFieldCustomEvent<HTMLSallaBookingFieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5694,15 +5732,25 @@ declare namespace LocalJSX {
|
|
|
5694
5732
|
}
|
|
5695
5733
|
interface SallaAppsIcons {
|
|
5696
5734
|
/**
|
|
5697
|
-
*
|
|
5735
|
+
* Apps URLs in object format {appstore, googleplay}. When not provided, uses SDK config 'store.apps'.
|
|
5736
|
+
*/
|
|
5737
|
+
"apps"?: AppsIconsConfig;
|
|
5738
|
+
/**
|
|
5739
|
+
* The title to display above icons. When not provided, uses SDK lang 'blocks.footer.download_apps'.
|
|
5698
5740
|
*/
|
|
5699
5741
|
"appsTitle"?: string;
|
|
5700
5742
|
/**
|
|
5701
|
-
* Flag to
|
|
5743
|
+
* Flag to hide the title.
|
|
5744
|
+
* @default false
|
|
5702
5745
|
*/
|
|
5703
5746
|
"hideTitle"?: boolean;
|
|
5704
5747
|
/**
|
|
5705
|
-
*
|
|
5748
|
+
* Custom slot template HTML with placeholders {icon}, {name}. Used for SSR. Client-side can use slot="app" instead.
|
|
5749
|
+
*/
|
|
5750
|
+
"slotTemplate"?: string;
|
|
5751
|
+
/**
|
|
5752
|
+
* Display icons vertically instead of horizontally.
|
|
5753
|
+
* @default false
|
|
5706
5754
|
*/
|
|
5707
5755
|
"vertical"?: boolean;
|
|
5708
5756
|
}
|
|
@@ -5800,7 +5848,7 @@ declare namespace LocalJSX {
|
|
|
5800
5848
|
/**
|
|
5801
5849
|
* Event emitted when the input is invalid.
|
|
5802
5850
|
*/
|
|
5803
|
-
"onInvalidInput"?: (event: SallaBookingFieldCustomEvent<
|
|
5851
|
+
"onInvalidInput"?: (event: SallaBookingFieldCustomEvent<SallaBookingFieldInvalidInputEvent>) => void;
|
|
5804
5852
|
/**
|
|
5805
5853
|
* The booking option configuration
|
|
5806
5854
|
*/
|
|
@@ -6131,25 +6179,37 @@ declare namespace LocalJSX {
|
|
|
6131
6179
|
}
|
|
6132
6180
|
interface SallaContacts {
|
|
6133
6181
|
/**
|
|
6134
|
-
*
|
|
6182
|
+
* Contact information in object format {whatsapp, mobile, phone, email, telegram}. When not provided, uses SDK config 'store.contacts'.
|
|
6183
|
+
*/
|
|
6184
|
+
"contacts"?: ContactsConfig;
|
|
6185
|
+
/**
|
|
6186
|
+
* Section title for social block of footer. When not provided, uses SDK lang 'blocks.footer.social'.
|
|
6135
6187
|
*/
|
|
6136
6188
|
"contactsTitle"?: string;
|
|
6137
6189
|
/**
|
|
6138
6190
|
* Flag to toggle title visibility.
|
|
6191
|
+
* @default false
|
|
6139
6192
|
*/
|
|
6140
6193
|
"hideTitle"?: boolean;
|
|
6141
6194
|
/**
|
|
6142
6195
|
* Flag to toggle list of contents whether vertical or horizontal.
|
|
6196
|
+
* @default false
|
|
6143
6197
|
*/
|
|
6144
6198
|
"horizontal"?: boolean;
|
|
6145
6199
|
/**
|
|
6146
|
-
* Flag condition to show icon only or icon with label
|
|
6200
|
+
* Flag condition to show icon only or icon with label.
|
|
6201
|
+
* @default false
|
|
6147
6202
|
*/
|
|
6148
6203
|
"iconsOnly"?: boolean;
|
|
6149
6204
|
/**
|
|
6150
6205
|
* Conditional flag to check whether the content is header or not.
|
|
6206
|
+
* @default false
|
|
6151
6207
|
*/
|
|
6152
6208
|
"isHeader"?: boolean;
|
|
6209
|
+
/**
|
|
6210
|
+
* Custom slot template HTML with placeholders {icon}, {value}, {link}. Used for SSR. Client-side can use slot="contact" instead.
|
|
6211
|
+
*/
|
|
6212
|
+
"slotTemplate"?: string;
|
|
6153
6213
|
}
|
|
6154
6214
|
interface SallaCookiesBar {
|
|
6155
6215
|
}
|
|
@@ -7700,7 +7760,11 @@ declare namespace LocalJSX {
|
|
|
7700
7760
|
}
|
|
7701
7761
|
interface SallaOrderTotalsCard {
|
|
7702
7762
|
/**
|
|
7703
|
-
* Order
|
|
7763
|
+
* Order totals object (new schema). Accepts a JSON string or object with amounts.
|
|
7764
|
+
*/
|
|
7765
|
+
"amounts"?: string | Amounts;
|
|
7766
|
+
/**
|
|
7767
|
+
* Legacy order object for backward compatibility. Prefer using `amounts` instead.
|
|
7704
7768
|
*/
|
|
7705
7769
|
"order"?: string | Order;
|
|
7706
7770
|
}
|
|
@@ -8741,7 +8805,7 @@ declare namespace LocalJSX {
|
|
|
8741
8805
|
}
|
|
8742
8806
|
interface SallaTabContent {
|
|
8743
8807
|
/**
|
|
8744
|
-
* Set name of the tab content. Mainly used as a key to
|
|
8808
|
+
* Set name of the tab content. Mainly used as a key to synchronize the content with its respective header.
|
|
8745
8809
|
*/
|
|
8746
8810
|
"name"?: string;
|
|
8747
8811
|
}
|
|
@@ -8772,12 +8836,16 @@ declare namespace LocalJSX {
|
|
|
8772
8836
|
}
|
|
8773
8837
|
interface SallaTabs {
|
|
8774
8838
|
/**
|
|
8775
|
-
*
|
|
8839
|
+
* Initial active tab name for SSR. When provided, child components (salla-tab-header/salla-tab-content) will use this value to set their initial active state. If not provided, first tab becomes active after hydration.
|
|
8840
|
+
*/
|
|
8841
|
+
"activeTab"?: string;
|
|
8842
|
+
/**
|
|
8843
|
+
* Background color for the tabs header section. Accepts any CSS color value.
|
|
8776
8844
|
* @default undefined
|
|
8777
8845
|
*/
|
|
8778
8846
|
"backgroundColor"?: string;
|
|
8779
8847
|
/**
|
|
8780
|
-
*
|
|
8848
|
+
* Whether to display tabs in a vertical layout. Default is false (horizontal layout).
|
|
8781
8849
|
* @default false
|
|
8782
8850
|
*/
|
|
8783
8851
|
"vertical"?: boolean;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSR Helper Utilities
|
|
3
|
+
* These utilities provide a clean, reusable pattern for handling SSR-safe value resolution
|
|
4
|
+
* across components. The pattern: use provided prop value -> fallback to SDK when available -> use default.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Resolves a value using the SSR-safe pattern:
|
|
8
|
+
* 1. If prop value is provided, use it directly
|
|
9
|
+
* 2. If prop not provided and salla SDK is available, use SDK getter
|
|
10
|
+
* 3. If prop not provided and salla SDK not available (SSR), use fallback
|
|
11
|
+
*
|
|
12
|
+
* @param propValue - The value provided via component prop (can be undefined)
|
|
13
|
+
* @param sdkGetter - Function to get value from SDK when available
|
|
14
|
+
* @param fallback - Default value when neither prop nor SDK is available
|
|
15
|
+
* @returns The resolved value
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // Simple config value
|
|
19
|
+
* const color = getSdkValueOrFallback(
|
|
20
|
+
* this.color,
|
|
21
|
+
* () => salla.config.get('theme.color.primary', '#5dd5c4'),
|
|
22
|
+
* '#5dd5c4'
|
|
23
|
+
* );
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // With async SDK call
|
|
27
|
+
* const title = getSdkValueOrFallback(
|
|
28
|
+
* this.title,
|
|
29
|
+
* () => salla.lang.get('common.titles.products'),
|
|
30
|
+
* 'Products'
|
|
31
|
+
* );
|
|
32
|
+
*/
|
|
33
|
+
export declare function getSdkValueOrFallback<T>(propValue: T | undefined, sdkGetter: () => T, fallback: T): T;
|
|
34
|
+
/**
|
|
35
|
+
* Async version for SDK calls that require onReady or async operations.
|
|
36
|
+
* Automatically calls salla.onReady() before executing sdkGetter.
|
|
37
|
+
*
|
|
38
|
+
* @param propValue - The value provided via component prop
|
|
39
|
+
* @param sdkGetter - Function to get value from SDK (onReady is called automatically)
|
|
40
|
+
* @param fallback - Default value when neither prop nor SDK is available
|
|
41
|
+
* @returns Promise resolving to the value
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* const color = await getSdkValueOrFallbackAsync(
|
|
45
|
+
* this.color,
|
|
46
|
+
* () => salla.config.get('theme.color.primary', '#5dd5c4'),
|
|
47
|
+
* '#5dd5c4'
|
|
48
|
+
* );
|
|
49
|
+
*/
|
|
50
|
+
export declare function getSdkValueOrFallbackAsync<T>(propValue: T | undefined, sdkGetter: () => T | Promise<T>, fallback: T): Promise<T>;
|
|
51
|
+
/**
|
|
52
|
+
* SSR-safe check for salla SDK availability.
|
|
53
|
+
* Returns true in client-side context where salla is loaded.
|
|
54
|
+
*
|
|
55
|
+
* @returns boolean indicating if salla SDK is available
|
|
56
|
+
*/
|
|
57
|
+
export declare function isSallaSdkAvailable(): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Persists the active scope to both salla.storage and a cookie (same structure),
|
|
60
|
+
* so the scope is readable server-side. Use this everywhere the scope changes to
|
|
61
|
+
* keep storage and cookie in sync.
|
|
62
|
+
*
|
|
63
|
+
* @param scope - The scope object to persist (e.g. { type, id, ... })
|
|
64
|
+
*/
|
|
65
|
+
export declare function setScope(scope: Record<string, any>): void;
|
|
66
|
+
/**
|
|
67
|
+
* SSR-safe document.dir access.
|
|
68
|
+
* Returns the document direction or fallback.
|
|
69
|
+
*
|
|
70
|
+
* @param fallback - Default direction ('rtl' or 'ltr')
|
|
71
|
+
* @returns The direction value
|
|
72
|
+
*/
|
|
73
|
+
export declare function getDocumentDir(fallback?: 'rtl' | 'ltr'): 'rtl' | 'ltr';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.601",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@googlemaps/markerclusterer": "2.6.2",
|
|
85
|
-
"@salla.sa/applepay": "2.14.
|
|
86
|
-
"@salla.sa/twilight": "2.14.
|
|
87
|
-
"@salla.sa/twilight-tailwind-theme": "2.14.
|
|
85
|
+
"@salla.sa/applepay": "2.14.601",
|
|
86
|
+
"@salla.sa/twilight": "2.14.601",
|
|
87
|
+
"@salla.sa/twilight-tailwind-theme": "2.14.601",
|
|
88
88
|
"@salla.sa/ui-address-autocomplete-widget": "1.2.1",
|
|
89
89
|
"@salla.sa/ui-google-map-render": "1.2.1",
|
|
90
90
|
"@types/node": "^20.4.8",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"vanilla-lazyload": "^17.9.0",
|
|
106
106
|
"vanilla-picker": "^2.12.3"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "11f5776ce66c8fb0722a5168c2552ba9735818a3"
|
|
109
109
|
}
|