@salla.sa/twilight-components 2.14.399 → 2.14.401
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-CAA4JtVB.js → filepond-Cyf8KBGp.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DhN_1Eck.js → filepond-plugin-file-poster--yUgJ7UK.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-scR4RTHB.js → filepond-plugin-file-validate-size-uHtguPuy.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CbTXW7ia.js → filepond-plugin-file-validate-type-COz5Ivmq.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-SJy1jzXB.js → filepond-plugin-image-edit-CHInCcL8.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DQNZO8Ud.js → filepond-plugin-image-exif-orientation-CIh1qmKb.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-i58wZeMz.js → filepond-plugin-image-preview-C2lHZO0J.js} +1 -1
- package/dist/cjs/{index-BuPGPqyc.js → index-CnTFTuui.js} +1 -1
- package/dist/cjs/{index-V7mMf3rP.js → index-CsHE7up1.js} +2 -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 +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
- 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-booking-field_7.cjs.entry.js +10 -10
- 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 +43 -5
- 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-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-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.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.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 +15 -6
- 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.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-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-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/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DbwdhFuE.js → vanilla-picker-DYNK0WJo.js} +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +33 -3
- package/dist/collection/components/salla-comments/salla-comment-item.js +1 -1
- package/dist/collection/components/salla-comments/salla-comments.js +34 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +14 -5
- package/dist/components/index.js +2 -2
- package/dist/components/salla-comment-form2.js +17 -4
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +26 -1
- package/dist/components/salla-order-edit.js +14 -5
- package/dist/esm/{filepond-DKOO57n5.js → filepond-DR4SNVzz.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CS4lvRo1.js → filepond-plugin-file-poster-D5SixGgC.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BYRiiOWs.js → filepond-plugin-file-validate-size-DsOh2L9N.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DnNDBwRb.js → filepond-plugin-file-validate-type-B4O62KoP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-yEG_5mtR.js → filepond-plugin-image-edit-Clnx4Mv4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-U130gE_x.js → filepond-plugin-image-exif-orientation-BN-eLjue.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-LxQqDfJa.js → filepond-plugin-image-preview-CYK3uEyM.js} +1 -1
- package/dist/esm/{index-DxISp5Dq.js → index-BlBuuMQp.js} +2 -2
- package/dist/esm/{index-X5ULyXa3.js → index-D6k2MP-W.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 +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +1 -1
- 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-booking-field_7.entry.js +10 -10
- 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 +43 -5
- 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-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-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.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.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 +15 -6
- 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.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-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-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/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-lDvnE-D_.js → vanilla-picker-oVvgrx3f.js} +1 -1
- package/dist/twilight/{p-15c09018.entry.js → p-084e2131.entry.js} +1 -1
- package/dist/twilight/{p-db36ce3b.entry.js → p-08582b06.entry.js} +1 -1
- package/dist/twilight/{p-1cb66ce2.entry.js → p-0901a25d.entry.js} +1 -1
- package/dist/twilight/{p-bea97114.entry.js → p-091fe74b.entry.js} +1 -1
- package/dist/twilight/{p-4f1ee9e9.entry.js → p-11c02cc2.entry.js} +1 -1
- package/dist/twilight/{p-ae54f9bc.entry.js → p-1426be48.entry.js} +1 -1
- package/dist/twilight/{p-c92a444a.entry.js → p-14d50b4c.entry.js} +1 -1
- package/dist/twilight/{p-72bcf692.entry.js → p-15aa6772.entry.js} +1 -1
- package/dist/twilight/{p-82984ff3.entry.js → p-1caa8d6e.entry.js} +1 -1
- package/dist/twilight/{p-e258284f.entry.js → p-209a2ef7.entry.js} +1 -1
- package/dist/twilight/{p-fd8d665c.entry.js → p-22790492.entry.js} +1 -1
- package/dist/twilight/{p-ae7c2ca0.entry.js → p-25123930.entry.js} +1 -1
- package/dist/twilight/{p-3da0d921.entry.js → p-26ce4274.entry.js} +1 -1
- package/dist/twilight/{p-305a3e83.entry.js → p-2768932b.entry.js} +1 -1
- package/dist/twilight/{p-7f26caf6.entry.js → p-2835ba4b.entry.js} +1 -1
- package/dist/twilight/{p-abbd02fa.entry.js → p-28d735dc.entry.js} +1 -1
- package/dist/twilight/{p-4b0dc3e3.entry.js → p-32ab498a.entry.js} +1 -1
- package/dist/twilight/{p-47285e55.entry.js → p-345807de.entry.js} +1 -1
- package/dist/twilight/{p-eda6d855.entry.js → p-35b7c465.entry.js} +1 -1
- package/dist/twilight/{p-673bc264.entry.js → p-372ce435.entry.js} +1 -1
- package/dist/twilight/{p-d8ae24e2.entry.js → p-3b3b6cd6.entry.js} +1 -1
- package/dist/twilight/{p-bec6513a.entry.js → p-3d2bdf94.entry.js} +1 -1
- package/dist/twilight/{p-03ac4545.entry.js → p-45f1b946.entry.js} +1 -1
- package/dist/twilight/{p-e9823101.entry.js → p-48b8b9b0.entry.js} +1 -1
- package/dist/twilight/{p-a8dd51c4.entry.js → p-505504bf.entry.js} +1 -1
- package/dist/twilight/{p-e9b85cd1.entry.js → p-546f8eb7.entry.js} +1 -1
- package/dist/twilight/{p-bb2b5df6.entry.js → p-56ad6447.entry.js} +1 -1
- package/dist/twilight/{p-96933403.entry.js → p-5f3d4e2c.entry.js} +1 -1
- package/dist/twilight/{p-d0f96984.entry.js → p-6324f2ca.entry.js} +1 -1
- package/dist/twilight/{p-6163a9d6.entry.js → p-65129aa6.entry.js} +1 -1
- package/dist/twilight/p-6b5c8369.entry.js +4 -0
- package/dist/twilight/{p-311f692c.entry.js → p-6e47537d.entry.js} +1 -1
- package/dist/twilight/{p-b82102f1.entry.js → p-6f8ce4cc.entry.js} +1 -1
- package/dist/twilight/{p-85f5a535.entry.js → p-727a8316.entry.js} +1 -1
- package/dist/twilight/{p-190bc2ed.entry.js → p-78d7eb5c.entry.js} +1 -1
- package/dist/twilight/{p-363a6168.entry.js → p-79dd8455.entry.js} +1 -1
- package/dist/twilight/{p-be4cc9c6.entry.js → p-7a15e1a1.entry.js} +1 -1
- package/dist/twilight/{p-17048b56.entry.js → p-7d6b0477.entry.js} +1 -1
- package/dist/twilight/{p-e220e7df.entry.js → p-8290d5fc.entry.js} +1 -1
- package/dist/twilight/{p-07583fe7.entry.js → p-864d29b3.entry.js} +1 -1
- package/dist/twilight/{p-3ab11cb2.entry.js → p-8d4c052f.entry.js} +1 -1
- package/dist/twilight/{p-eb505b32.entry.js → p-8f67c4cb.entry.js} +1 -1
- package/dist/twilight/{p-be6ad643.entry.js → p-8f73276d.entry.js} +1 -1
- package/dist/twilight/{p-f1af3f66.entry.js → p-958e5868.entry.js} +1 -1
- package/dist/twilight/{p-f5c06ea6.entry.js → p-9972c1f3.entry.js} +1 -1
- package/dist/twilight/{p-822ff1cc.entry.js → p-9b68df5a.entry.js} +1 -1
- package/dist/twilight/{p-4ae05f7c.entry.js → p-9bd7d9f5.entry.js} +1 -1
- package/dist/twilight/{p-8f75e0b1.entry.js → p-9c58f3c0.entry.js} +1 -1
- package/dist/twilight/{p-ee4d28d7.entry.js → p-9cf29ddb.entry.js} +1 -1
- package/dist/twilight/{p-556138e9.entry.js → p-9d9338c9.entry.js} +1 -1
- package/dist/twilight/{p-0731e51b.entry.js → p-9e85bac1.entry.js} +1 -1
- package/dist/twilight/{p-UuGnO1eu.js → p-BG4uFEWi.js} +1 -1
- package/dist/twilight/{p-DxISp5Dq.js → p-BlBuuMQp.js} +2 -2
- package/dist/twilight/{p-FCyIqKZm.js → p-C9FzKstV.js} +1 -1
- package/dist/twilight/{p-CQfE2kYs.js → p-CwzEvhrD.js} +1 -1
- package/dist/twilight/{p-Bo1KLgoM.js → p-DI03hbOx.js} +1 -1
- package/dist/twilight/{p-BGvVD-bS.js → p-D_gOsznU.js} +1 -1
- package/dist/twilight/{p-D1Jq4ACv.js → p-Duj4y93z.js} +1 -1
- package/dist/twilight/{p-DXSWjLoJ.js → p-EaMy8k6o.js} +1 -1
- package/dist/twilight/{p-DHD7zD_h.js → p-FrOTq2f2.js} +1 -1
- package/dist/twilight/{p-D08E5qXo.js → p-GweAdjGj.js} +1 -1
- package/dist/twilight/{p-742937f9.entry.js → p-a63e2bd1.entry.js} +1 -1
- package/dist/twilight/{p-303b388e.entry.js → p-a9e4b4a9.entry.js} +1 -1
- package/dist/twilight/{p-93369bed.entry.js → p-aba6b3a8.entry.js} +1 -1
- package/dist/twilight/{p-28a4ec95.entry.js → p-acf4f50d.entry.js} +1 -1
- package/dist/twilight/{p-b3ea6e7a.entry.js → p-b3ac5838.entry.js} +1 -1
- package/dist/twilight/{p-da4036b3.entry.js → p-b606c9a2.entry.js} +1 -1
- package/dist/twilight/{p-a2993a2b.entry.js → p-bcbdff6d.entry.js} +1 -1
- package/dist/twilight/{p-247ba282.entry.js → p-c0239486.entry.js} +1 -1
- package/dist/twilight/p-c0822f39.entry.js +4 -0
- package/dist/twilight/{p-ca4c81a2.entry.js → p-c6358810.entry.js} +1 -1
- package/dist/twilight/{p-72e90c17.entry.js → p-c86dde05.entry.js} +1 -1
- package/dist/twilight/{p-7c24539c.entry.js → p-d2816142.entry.js} +1 -1
- package/dist/twilight/{p-4287f5c0.entry.js → p-d38bd02b.entry.js} +1 -1
- package/dist/twilight/{p-f682e39e.entry.js → p-d4dcdcc5.entry.js} +1 -1
- package/dist/twilight/{p-f72d8eba.entry.js → p-d8d3dfcd.entry.js} +1 -1
- package/dist/twilight/{p-1b8edfaa.entry.js → p-dc846049.entry.js} +1 -1
- package/dist/twilight/{p-9faad03d.entry.js → p-dfdb0e7c.entry.js} +1 -1
- package/dist/twilight/{p-518a9054.entry.js → p-e17e30a7.entry.js} +1 -1
- package/dist/twilight/{p-493268f8.entry.js → p-ef7c452b.entry.js} +1 -1
- package/dist/twilight/{p-406b28a5.entry.js → p-f2488a50.entry.js} +1 -1
- package/dist/twilight/{p-4a31f8f8.entry.js → p-f4e96119.entry.js} +1 -1
- package/dist/twilight/{p-416ee7be.entry.js → p-f58c722c.entry.js} +1 -1
- package/dist/twilight/{p-0f9a2dbc.entry.js → p-f60646dc.entry.js} +1 -1
- package/dist/twilight/{p-452ad23a.entry.js → p-fe4a504b.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +15 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +4 -0
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +1 -1
- package/dist/types/components.d.ts +35 -0
- package/package.json +5 -5
- package/dist/twilight/p-7aa3f615.entry.js +0 -4
- package/dist/twilight/p-7bfcad78.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
4
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { d as defineCustomElement$1 } from './salla-button2.js';
|
|
6
6
|
|
|
7
7
|
const sallaCommentFormCss = ":host{display:block}";
|
|
@@ -10,6 +10,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
|
+
this.commentAdded = createEvent(this, "commentAdded", 7);
|
|
13
14
|
this.placeholder = salla.lang.get('blocks.comments.placeholder');
|
|
14
15
|
this.submitText = salla.lang.get('blocks.comments.submit');
|
|
15
16
|
salla.lang.onLoaded(() => {
|
|
@@ -27,12 +28,24 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
|
|
|
27
28
|
salla.log('CommentForm:: validation error!');
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
31
|
+
const commentText = this.commentField.value;
|
|
30
32
|
this.submitBtn.load()
|
|
31
|
-
.then(() => salla.comment.add({ id: this.itemId, comment:
|
|
32
|
-
.
|
|
33
|
+
.then(() => salla.comment.add({ id: this.itemId, comment: commentText, type: this.type }))
|
|
34
|
+
.then(() => {
|
|
35
|
+
this.commentAdded.emit({
|
|
36
|
+
name: salla.config.get('user.name'),
|
|
37
|
+
avatar: salla.config.get('user.avatar'),
|
|
38
|
+
content: commentText,
|
|
39
|
+
is_pending: true,
|
|
40
|
+
created_at: { date: new Date().toISOString().replace('T', ' ').substring(0, 19) },
|
|
41
|
+
images: [],
|
|
42
|
+
});
|
|
43
|
+
this.commentField.value = '';
|
|
44
|
+
})
|
|
45
|
+
.finally(() => this.submitBtn.stop());
|
|
33
46
|
}
|
|
34
47
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
|
|
36
49
|
h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
|
|
37
50
|
}
|
|
38
51
|
static get style() { return sallaCommentFormCss; }
|
|
@@ -151,7 +151,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
151
151
|
h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
152
152
|
: null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
|
|
153
153
|
h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
|
|
154
|
-
: null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
154
|
+
: null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
155
155
|
h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
156
156
|
this.getReplies().map((reply) => {
|
|
157
157
|
return h("div", null, h("salla-comment-item", { comment: reply }));
|
|
@@ -233,6 +233,31 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
|
|
|
233
233
|
return this.loadInitialData();
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Catch the commentAdded event emitted by salla-comment-form and instantly render it
|
|
238
|
+
*/
|
|
239
|
+
onCommentAdded(event) {
|
|
240
|
+
const comment = event.detail;
|
|
241
|
+
if (!comment)
|
|
242
|
+
return;
|
|
243
|
+
// If comments were empty, clear the placeholder and initialize the list
|
|
244
|
+
if (this.showPlaceholder || !this.total) {
|
|
245
|
+
this.showPlaceholder = false;
|
|
246
|
+
this.total = (this.total || 0) + 1;
|
|
247
|
+
this.comments = this.comments || [];
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
this.total = (this.total || 0) + 1;
|
|
251
|
+
}
|
|
252
|
+
// Wait for next render tick so wrapper is available if placeholder was just removed
|
|
253
|
+
setTimeout(() => {
|
|
254
|
+
if (!this.wrapper)
|
|
255
|
+
return;
|
|
256
|
+
const commentItem = this.getCommentHTML(comment);
|
|
257
|
+
this.wrapper.prepend(commentItem);
|
|
258
|
+
this.animateItems([commentItem]);
|
|
259
|
+
}, 0);
|
|
260
|
+
}
|
|
236
261
|
// Load initial data
|
|
237
262
|
async loadInitialData() {
|
|
238
263
|
try {
|
|
@@ -331,7 +356,7 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
|
|
|
331
356
|
"showRatingSummary": [32],
|
|
332
357
|
"allowLikes": [32],
|
|
333
358
|
"reload": [64]
|
|
334
|
-
}]);
|
|
359
|
+
}, [[0, "commentAdded", "onCommentAdded"]]]);
|
|
335
360
|
function defineCustomElement$1() {
|
|
336
361
|
if (typeof customElements === "undefined") {
|
|
337
362
|
return;
|
|
@@ -143,19 +143,28 @@ const SallaOrderEdit$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderEdit e
|
|
|
143
143
|
this.navigateToOrder();
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
async cancelEditSession() {
|
|
147
|
+
try {
|
|
148
|
+
await salla.order.api.cancelEditSession(this.orderId);
|
|
149
|
+
this.navigateToOrder();
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
const message = error?.response?.data?.error?.message || error?.response?.data?.message;
|
|
153
|
+
if (message) {
|
|
154
|
+
salla.notify.error(message);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
148
157
|
}
|
|
149
158
|
renderSaveModal() {
|
|
150
159
|
const preview = this.editPreview;
|
|
151
160
|
const hasRemainingAmount = preview?.totals?.remaining_amount?.amount > 0;
|
|
152
161
|
const hasRefundAmount = preview?.totals?.refund_amount?.amount > 0;
|
|
153
162
|
const taxAmount = preview?.totals?.tax?.amount?.amount;
|
|
154
|
-
return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", onModalVisibilityChanged: (e) => {
|
|
163
|
+
return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", onModalVisibilityChanged: async (e) => {
|
|
155
164
|
if (!e.detail) {
|
|
156
165
|
this.editPreview = null;
|
|
157
166
|
if (!this.confirming) {
|
|
158
|
-
this.
|
|
167
|
+
await this.cancelEditSession();
|
|
159
168
|
}
|
|
160
169
|
this.confirming = false;
|
|
161
170
|
}
|
|
@@ -185,7 +194,7 @@ const SallaOrderEdit$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderEdit e
|
|
|
185
194
|
return (h(Host, null, endsAt && (h("div", { class: "s-order-edit-timer-wrapper" }, h("salla-count-down", { prefixText: salla.lang.getWithDefault('pages.orders.edit_within', 'يمكنك التعديل خلال'), date: endsAt, horizontal: true, withButton: true, autoSegments: true, labeled: false, size: "sm", color: "primary" }))), h("div", { class: "s-order-edit-items-wrapper" }, h("h2", { class: "s-order-edit-items-title" }, salla.lang.getWithDefault('pages.orders.order_products', 'منتجات الطلب')), hasItems ? (this.order.items.map((item, index) => [
|
|
186
195
|
h("salla-order-edit-item", { key: item.id, item: item, orderId: this.orderId }),
|
|
187
196
|
index < this.order.items.length - 1 ? (h("div", { class: "s-order-edit-items-divider" })) : null,
|
|
188
|
-
])) : (h("div", { class: "no-content-placeholder" }, h("i", { class: "sicon-shopping-bag icon" }), h("p", null, salla.lang.getWithDefault('common.elements.no_items', 'لا توجد عناصر'))))), h("div", { class: "s-order-edit-actions" }, h("salla-button", { onClick: () => this.saveOrder(), loading: this.saveLoading, disabled: !this.hasChanges }, salla.lang.getWithDefault('pages.orders.save_changes', 'حفظ التعديلات')), h("salla-button", { color: "gray", fill: "outline", onClick: () => this.
|
|
197
|
+
])) : (h("div", { class: "no-content-placeholder" }, h("i", { class: "sicon-shopping-bag icon" }), h("p", null, salla.lang.getWithDefault('common.elements.no_items', 'لا توجد عناصر'))))), h("div", { class: "s-order-edit-actions" }, h("salla-button", { onClick: () => this.saveOrder(), loading: this.saveLoading, disabled: !this.hasChanges }, salla.lang.getWithDefault('pages.orders.save_changes', 'حفظ التعديلات')), h("salla-button", { color: "gray", fill: "outline", onClick: () => this.cancelEditSession() }, salla.lang.getWithDefault('common.elements.cancel', 'الغاء'))), this.renderSaveModal()));
|
|
189
198
|
}
|
|
190
199
|
get host() { return this; }
|
|
191
200
|
static get style() { return sallaOrderEditCss; }
|