@salla.sa/twilight-components 2.14.389 → 2.14.391
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-D-Sm5mfd.js → filepond-DFNeUlJZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D_Q9tOzh.js → filepond-plugin-file-poster-CdscjCyV.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-jE8i9yLT.js → filepond-plugin-file-validate-size-CeIHus23.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-ClNK2GsY.js → filepond-plugin-file-validate-type-B-xReGXI.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BtI2loP1.js → filepond-plugin-image-edit-BEZKgnin.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DFksd-cT.js → filepond-plugin-image-exif-orientation-BsIhjiXV.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-B6iy7dvj.js → filepond-plugin-image-preview-CgGyHHMF.js} +1 -1
- package/dist/cjs/{index-CZzG9P8m.js → index-RCgJUM7B.js} +34 -10
- package/dist/cjs/{index-PbcABX0l.js → index-U__MmWip.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +63 -0
- 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 +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 +196 -0
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +230 -0
- 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 +45 -0
- package/dist/cjs/salla-gifting.cjs.entry.js +91 -16
- 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-accordion-body_3.cjs.entry.js → salla-map.cjs.entry.js} +1 -57
- 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 +95 -0
- package/dist/cjs/salla-order-edit.cjs.entry.js +181 -0
- 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-count-down_2.cjs.entry.js → salla-product-card.cjs.entry.js} +1 -160
- 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-BP4lqf-K.js → vanilla-picker-yWlr4I9a.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/salla-count-down/salla-count-down.css +4 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js +122 -13
- package/dist/collection/components/salla-delivery-promise/interfaces.js +1 -0
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +247 -0
- package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.js +51 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +96 -15
- package/dist/collection/components/salla-order-edit/interfaces.js +1 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +185 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +256 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-count-down2.js +49 -13
- package/dist/components/salla-delivery-promise.d.ts +11 -0
- package/dist/components/salla-delivery-promise.js +266 -0
- package/dist/components/salla-fulfillment-methods.d.ts +11 -0
- package/dist/components/salla-fulfillment-methods.js +64 -0
- package/dist/components/salla-gifting.js +96 -15
- package/dist/components/salla-order-edit-item.d.ts +11 -0
- package/dist/components/salla-order-edit-item.js +9 -0
- package/dist/components/salla-order-edit-item2.js +184 -0
- package/dist/components/salla-order-edit.d.ts +11 -0
- package/dist/components/salla-order-edit.js +291 -0
- package/dist/components/salla-quantity-input.js +1 -125
- package/dist/components/salla-quantity-input2.js +130 -0
- package/dist/esm/{filepond-PPWykQxI.js → filepond-dioc1UNj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BRSyNznG.js → filepond-plugin-file-poster-BpOMmY57.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BKa_IBRc.js → filepond-plugin-file-validate-size-D3zrIASS.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-B2Gqcysx.js → filepond-plugin-file-validate-type-C_O5sg3V.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C0UvZ9iA.js → filepond-plugin-image-edit-vV9cFwQt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Dmzu9ZJy.js → filepond-plugin-image-exif-orientation-DQHJunT0.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CaZ36U6e.js → filepond-plugin-image-preview-CK8pdQ2g.js} +1 -1
- package/dist/esm/{index-C3w2qMi0.js → index-B6FFbRiW.js} +1 -1
- package/dist/esm/{index-CyfZeaV2.js → index-BBHnyTVS.js} +34 -10
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +60 -0
- 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 +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 +194 -0
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +228 -0
- 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 +43 -0
- package/dist/esm/salla-gifting.entry.js +91 -16
- 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-accordion-body_3.entry.js → salla-map.entry.js} +2 -56
- 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 +93 -0
- package/dist/esm/salla-order-edit.entry.js +179 -0
- 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-count-down_2.entry.js → salla-product-card.entry.js} +2 -160
- 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-BnLjo9lg.js → vanilla-picker-DSMkPxn-.js} +1 -1
- package/dist/twilight/p-01cb129f.entry.js +4 -0
- package/dist/twilight/{p-CKAWVE2E.js → p-03jJUGJM.js} +1 -1
- package/dist/twilight/{p-414f399b.entry.js → p-042206f2.entry.js} +1 -1
- package/dist/twilight/{p-8c1f6ff5.entry.js → p-0557c403.entry.js} +1 -1
- package/dist/twilight/{p-f9b6a945.entry.js → p-06d3f60c.entry.js} +1 -1
- package/dist/twilight/{p-8538541b.entry.js → p-099267e9.entry.js} +1 -1
- package/dist/twilight/{p-d224ad78.entry.js → p-0a779ecb.entry.js} +1 -1
- package/dist/twilight/p-0c45b777.entry.js +4 -0
- package/dist/twilight/{p-c782ba90.entry.js → p-143f385c.entry.js} +1 -1
- package/dist/twilight/p-1646270f.entry.js +4 -0
- package/dist/twilight/{p-7eebae69.entry.js → p-1a7e8dc4.entry.js} +1 -1
- package/dist/twilight/p-1b50e37e.entry.js +4 -0
- package/dist/twilight/{p-f8b53b4a.entry.js → p-1bacbd68.entry.js} +1 -1
- package/dist/twilight/{p-5db4f7be.entry.js → p-214c17ba.entry.js} +1 -1
- package/dist/twilight/{p-5a3fbfcc.entry.js → p-23c450bb.entry.js} +1 -1
- package/dist/twilight/{p-3490e1f2.entry.js → p-2534ee8d.entry.js} +1 -1
- package/dist/twilight/{p-2d3c3fc0.entry.js → p-2690964e.entry.js} +1 -1
- package/dist/twilight/{p-749f87cc.entry.js → p-2f4352f5.entry.js} +1 -1
- package/dist/twilight/{p-fdb99998.entry.js → p-2fd9954e.entry.js} +1 -1
- package/dist/twilight/{p-de4fc6d3.entry.js → p-3094c1a1.entry.js} +1 -1
- package/dist/twilight/{p-313e016b.entry.js → p-31cff9d6.entry.js} +1 -1
- package/dist/twilight/{p-49178d13.entry.js → p-3570139b.entry.js} +1 -1
- package/dist/twilight/p-3a20fbc0.entry.js +4 -0
- package/dist/twilight/{p-fca12e58.entry.js → p-43a3d74b.entry.js} +1 -1
- package/dist/twilight/{p-b6924b12.entry.js → p-43fd9024.entry.js} +1 -1
- package/dist/twilight/{p-7367264c.entry.js → p-45c1eaa8.entry.js} +1 -1
- package/dist/twilight/p-49260c6c.entry.js +4 -0
- package/dist/twilight/{p-f713d4c1.entry.js → p-495a9262.entry.js} +1 -1
- package/dist/twilight/{p-9b03dc5f.entry.js → p-4b78b5b6.entry.js} +1 -1
- package/dist/twilight/{p-92aa6f9c.entry.js → p-4f664ee5.entry.js} +1 -1
- package/dist/twilight/{p-981aa6b2.entry.js → p-5039c032.entry.js} +1 -1
- package/dist/twilight/{p-282b2717.entry.js → p-51eeff00.entry.js} +1 -1
- package/dist/twilight/{p-a3479656.entry.js → p-5abc72fb.entry.js} +1 -1
- package/dist/twilight/{p-52249b73.entry.js → p-5de17423.entry.js} +1 -1
- package/dist/twilight/{p-71e9036c.entry.js → p-5e08505f.entry.js} +1 -1
- package/dist/twilight/{p-7b3e9e94.entry.js → p-64316672.entry.js} +1 -1
- package/dist/twilight/{p-68e1946b.entry.js → p-698cda6b.entry.js} +1 -1
- package/dist/twilight/p-6d9ff62d.entry.js +4 -0
- package/dist/twilight/p-72128782.entry.js +4 -0
- package/dist/twilight/{p-9af46409.entry.js → p-736661d1.entry.js} +1 -1
- package/dist/twilight/{p-6f230886.entry.js → p-73fc8bc2.entry.js} +1 -1
- package/dist/twilight/{p-e51abff8.entry.js → p-78230ff2.entry.js} +1 -1
- package/dist/twilight/{p-9dace77f.entry.js → p-7b1e18b9.entry.js} +1 -1
- package/dist/twilight/p-8735bed6.entry.js +4 -0
- package/dist/twilight/{p-d0d9eaa7.entry.js → p-911df985.entry.js} +1 -1
- package/dist/twilight/{p-b85269f0.entry.js → p-917e279a.entry.js} +1 -1
- package/dist/twilight/{p-0dcadf17.entry.js → p-9623211d.entry.js} +1 -1
- package/dist/twilight/{p-56f20bf9.entry.js → p-98365139.entry.js} +1 -1
- package/dist/twilight/{p-e4984da6.entry.js → p-9a2fa95c.entry.js} +1 -1
- package/dist/twilight/{p-3424772f.entry.js → p-9f09f917.entry.js} +1 -1
- package/dist/twilight/{p-CyfZeaV2.js → p-BBHnyTVS.js} +2 -2
- package/dist/twilight/{p-DV84B4Zf.js → p-BLNd0Q7w.js} +1 -1
- package/dist/twilight/p-BdSnnWWn.js +9 -0
- package/dist/twilight/{p-DgRZXtp7.js → p-BywTh96y.js} +1 -1
- package/dist/twilight/{p-B5sTdzgA.js → p-CWQJdJyB.js} +1 -1
- package/dist/twilight/{p-DaXFe_AG.js → p-CttEbJoQ.js} +1 -1
- package/dist/twilight/{p-oPo_An7U.js → p-HRFCteJK.js} +1 -1
- package/dist/twilight/{p-nDM6sAQW.js → p-IulbkBPB.js} +1 -1
- package/dist/twilight/{p-71199938.entry.js → p-a50a28ea.entry.js} +1 -1
- package/dist/twilight/{p-1fa74395.entry.js → p-abfc0327.entry.js} +1 -1
- package/dist/twilight/{p-9ae66ab7.entry.js → p-b9a7a8b1.entry.js} +1 -1
- package/dist/twilight/{p-646ac137.entry.js → p-bc9aa300.entry.js} +1 -1
- package/dist/twilight/{p-28691a37.entry.js → p-c800360f.entry.js} +1 -1
- package/dist/twilight/{p-83bb3e08.entry.js → p-cc8c8ee0.entry.js} +1 -1
- package/dist/twilight/{p-a5215f9c.entry.js → p-ccf81e66.entry.js} +1 -1
- package/dist/twilight/{p-46715ed4.entry.js → p-ce4e06b8.entry.js} +1 -1
- package/dist/twilight/{p-85e08789.entry.js → p-d375a0d6.entry.js} +1 -1
- package/dist/twilight/{p-ccc3689d.entry.js → p-d5bea7d7.entry.js} +1 -1
- package/dist/twilight/{p-dccaabbe.entry.js → p-daf6d030.entry.js} +1 -1
- package/dist/twilight/{p-6c5ab45f.entry.js → p-db1699d8.entry.js} +1 -1
- package/dist/twilight/{p-75744403.entry.js → p-db8ea013.entry.js} +1 -1
- package/dist/twilight/{p-f2a021d2.entry.js → p-dd95dd45.entry.js} +1 -1
- package/dist/twilight/{p-6b642ef5.entry.js → p-df66218c.entry.js} +1 -1
- package/dist/twilight/{p-0e064e79.entry.js → p-e2a6cc78.entry.js} +1 -1
- package/dist/twilight/{p-b6d4d88f.entry.js → p-e5faf311.entry.js} +1 -1
- package/dist/twilight/{p-8c918f58.entry.js → p-e8ee7b09.entry.js} +1 -1
- package/dist/twilight/{p-016b3b19.entry.js → p-ec2a876a.entry.js} +1 -1
- package/dist/twilight/{p-549d8385.entry.js → p-f08590d7.entry.js} +1 -1
- package/dist/twilight/{p-c48e2a05.entry.js → p-f17b1333.entry.js} +1 -1
- package/dist/twilight/{p-4a0248ab.entry.js → p-f8b8c0da.entry.js} +1 -1
- package/dist/twilight/{p-833e8364.entry.js → p-f8beca67.entry.js} +1 -1
- package/dist/twilight/{p-77a89284.entry.js → p-fc6852a0.entry.js} +1 -1
- package/dist/twilight/{p-69ae622f.entry.js → p-fd540f5b.entry.js} +1 -1
- package/dist/twilight/{p-1a9b64ea.entry.js → p-fe417603.entry.js} +1 -1
- package/dist/twilight/{p-CJnMMMxb.js → p-okSe2zH1.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +24 -0
- package/dist/types/components/salla-delivery-promise/interfaces.d.ts +27 -0
- package/dist/types/components/salla-delivery-promise/salla-delivery-promise.d.ts +48 -0
- package/dist/types/components/salla-fulfillment-methods/salla-fulfillment-methods.d.ts +18 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +10 -1
- package/dist/types/components/salla-order-edit/interfaces.d.ts +114 -0
- package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +35 -0
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +42 -0
- package/dist/types/components.d.ts +236 -0
- package/package.json +5 -5
- package/dist/twilight/p-1048b469.entry.js +0 -4
- package/dist/twilight/p-C11T4TVo.js +0 -9
- package/dist/twilight/p-d33f3c58.entry.js +0 -4
- package/dist/twilight/p-fbcc194e.entry.js +0 -4
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
/**
|
|
6
|
+
* @salla/ui-components
|
|
7
|
+
* The `salla-order-edit-item` component renders a single editable order item card
|
|
8
|
+
* with quantity controls, editable product options, and a remove button.
|
|
9
|
+
*/
|
|
10
|
+
export class SallaOrderEditItem {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.handleQuantityChange = (event) => {
|
|
13
|
+
const detail = event.detail;
|
|
14
|
+
const newQuantity = detail?.quantity ?? parseInt(event.target.value, 10);
|
|
15
|
+
if (isNaN(newQuantity) || newQuantity < 1)
|
|
16
|
+
return;
|
|
17
|
+
if (newQuantity === this.quantity)
|
|
18
|
+
return;
|
|
19
|
+
this.quantity = newQuantity;
|
|
20
|
+
this.emitUpdate(newQuantity);
|
|
21
|
+
};
|
|
22
|
+
this.handleOptionsChange = () => {
|
|
23
|
+
this.emitUpdate(this.quantity);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
this.quantity = this.item?.quantity || 1;
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
const quantityEl = this.host.querySelector('salla-quantity-input');
|
|
31
|
+
if (quantityEl) {
|
|
32
|
+
quantityEl.addEventListener('change', this.handleQuantityChange);
|
|
33
|
+
}
|
|
34
|
+
const optionsEl = this.host.querySelector('salla-product-options');
|
|
35
|
+
if (optionsEl) {
|
|
36
|
+
optionsEl.addEventListener('change', this.handleOptionsChange);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
const quantityEl = this.host.querySelector('salla-quantity-input');
|
|
41
|
+
if (quantityEl) {
|
|
42
|
+
quantityEl.removeEventListener('change', this.handleQuantityChange);
|
|
43
|
+
}
|
|
44
|
+
const optionsEl = this.host.querySelector('salla-product-options');
|
|
45
|
+
if (optionsEl) {
|
|
46
|
+
optionsEl.removeEventListener('change', this.handleOptionsChange);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get hasOptions() {
|
|
50
|
+
const options = this.item.product?.options;
|
|
51
|
+
return options && options.length > 0;
|
|
52
|
+
}
|
|
53
|
+
async getSelectedOptions() {
|
|
54
|
+
const optionsEl = this.host.querySelector(`salla-product-options[product-id="${this.item.product?.id}"]`);
|
|
55
|
+
return (await optionsEl?.getSelectedOptionsData()) || {};
|
|
56
|
+
}
|
|
57
|
+
async emitUpdate(quantity) {
|
|
58
|
+
const detail = { itemId: this.item?.id, quantity };
|
|
59
|
+
if (this.hasOptions) {
|
|
60
|
+
detail.options = await this.getSelectedOptions();
|
|
61
|
+
}
|
|
62
|
+
this.orderItemUpdated.emit(detail);
|
|
63
|
+
}
|
|
64
|
+
removeItem() {
|
|
65
|
+
const itemId = this.item?.id;
|
|
66
|
+
if (itemId == null)
|
|
67
|
+
return;
|
|
68
|
+
this.orderItemRemoved.emit({ itemId });
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
if (!this.item)
|
|
72
|
+
return null;
|
|
73
|
+
const product = this.item.product;
|
|
74
|
+
const productName = this.item.name || product?.name || '';
|
|
75
|
+
const imageUrl = product?.image?.url || '';
|
|
76
|
+
const imageAlt = product?.image?.alt || productName;
|
|
77
|
+
const productUrl = product?.url || '#';
|
|
78
|
+
const price = product?.price;
|
|
79
|
+
const maxQuantity = product?.max_quantity;
|
|
80
|
+
const weightLabel = product?.weight_label;
|
|
81
|
+
const options = this.item.product?.options;
|
|
82
|
+
const quantityAttrs = { value: this.quantity };
|
|
83
|
+
if (maxQuantity) {
|
|
84
|
+
quantityAttrs.max = maxQuantity;
|
|
85
|
+
}
|
|
86
|
+
return (h(Host, null, h("div", null, h("div", { class: "s-order-edit-item-header" }, h("div", { class: "s-order-edit-item-media" }, imageUrl && (h("a", { href: productUrl }, h("img", { src: imageUrl, alt: imageAlt, class: "s-order-edit-item-image" }))), h("div", { class: "s-order-edit-item-details" }, h("h2", { class: "s-order-edit-item-name" }, h("a", { href: productUrl, class: "s-order-edit-item-link" }, productName)), price != null && (h("span", { class: "s-order-edit-item-price", innerHTML: salla.money(price) })), weightLabel && (h("p", { class: "s-order-edit-item-weight" }, salla.lang.getWithDefault('pages.products.weight', 'الوزن'), " ", weightLabel)))), h("salla-button", { type: "button", shape: "icon", size: "small", color: "danger", "aria-label": salla.lang.getWithDefault('common.elements.delete', 'حذف'), onClick: () => this.removeItem() }, h("i", { class: "sicon-cancel" }))), h("div", { class: "s-order-edit-item-quantity" }, h("h3", { class: "s-order-edit-item-quantity-label" }, salla.lang.getWithDefault('common.elements.quantity', 'الكمية')), h("div", { class: "s-order-edit-item-quantity-input" }, h("salla-quantity-input", { ...quantityAttrs }))), this.hasOptions && (h("form", { onSubmit: e => e.preventDefault() }, h("salla-product-options", { "product-id": product.id, options: JSON.stringify(options), key: `${product.id}-order-edit-item-options` }))))));
|
|
87
|
+
}
|
|
88
|
+
static get is() { return "salla-order-edit-item"; }
|
|
89
|
+
static get originalStyleUrls() {
|
|
90
|
+
return {
|
|
91
|
+
"$": ["salla-order-edit-item.scss"]
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
static get styleUrls() {
|
|
95
|
+
return {
|
|
96
|
+
"$": ["salla-order-edit-item.css"]
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
static get properties() {
|
|
100
|
+
return {
|
|
101
|
+
"item": {
|
|
102
|
+
"type": "unknown",
|
|
103
|
+
"attribute": "item",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "OrderEditItem",
|
|
107
|
+
"resolved": "OrderEditItem",
|
|
108
|
+
"references": {
|
|
109
|
+
"OrderEditItem": {
|
|
110
|
+
"location": "import",
|
|
111
|
+
"path": "./interfaces",
|
|
112
|
+
"id": "src/components/salla-order-edit/interfaces.ts::OrderEditItem"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Item data object"
|
|
121
|
+
},
|
|
122
|
+
"getter": false,
|
|
123
|
+
"setter": false
|
|
124
|
+
},
|
|
125
|
+
"orderId": {
|
|
126
|
+
"type": "any",
|
|
127
|
+
"attribute": "order-id",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "string | number",
|
|
131
|
+
"resolved": "number | string",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": false,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": "Parent order ID (for API calls)"
|
|
139
|
+
},
|
|
140
|
+
"getter": false,
|
|
141
|
+
"setter": false,
|
|
142
|
+
"reflect": false
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
static get states() {
|
|
147
|
+
return {
|
|
148
|
+
"quantity": {}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
static get events() {
|
|
152
|
+
return [{
|
|
153
|
+
"method": "orderItemUpdated",
|
|
154
|
+
"name": "orderItemUpdated",
|
|
155
|
+
"bubbles": true,
|
|
156
|
+
"cancelable": true,
|
|
157
|
+
"composed": true,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Emitted when an item quantity or options are updated"
|
|
161
|
+
},
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "{\n itemId: string | number;\n quantity: number;\n options?: any[];\n }",
|
|
164
|
+
"resolved": "{ itemId: string | number; quantity: number; options?: any[]; }",
|
|
165
|
+
"references": {}
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
"method": "orderItemRemoved",
|
|
169
|
+
"name": "orderItemRemoved",
|
|
170
|
+
"bubbles": true,
|
|
171
|
+
"cancelable": true,
|
|
172
|
+
"composed": true,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": "Emitted when an item is successfully removed"
|
|
176
|
+
},
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "{\n itemId: string | number;\n }",
|
|
179
|
+
"resolved": "{ itemId: string | number; }",
|
|
180
|
+
"references": {}
|
|
181
|
+
}
|
|
182
|
+
}];
|
|
183
|
+
}
|
|
184
|
+
static get elementRef() { return "host"; }
|
|
185
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
/**
|
|
6
|
+
* @salla/ui-components
|
|
7
|
+
* The `salla-order-edit` component
|
|
8
|
+
* as an editable card with quantity controls, editable options, and an order summary.
|
|
9
|
+
*/
|
|
10
|
+
export class SallaOrderEdit {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.loading = true;
|
|
13
|
+
this.saveLoading = false;
|
|
14
|
+
this.payload = { items: { update: [], remove: [] } };
|
|
15
|
+
this.expired = false;
|
|
16
|
+
this.editPreview = null;
|
|
17
|
+
this.confirming = false;
|
|
18
|
+
}
|
|
19
|
+
async componentWillLoad() {
|
|
20
|
+
await salla.onReady();
|
|
21
|
+
this.loadFromProp();
|
|
22
|
+
this.startExpiryCheck();
|
|
23
|
+
}
|
|
24
|
+
disconnectedCallback() {
|
|
25
|
+
clearInterval(this.expiryInterval);
|
|
26
|
+
}
|
|
27
|
+
startExpiryCheck() {
|
|
28
|
+
const endsAt = this.order?.customer_editing_session?.ends_at;
|
|
29
|
+
if (!endsAt)
|
|
30
|
+
return;
|
|
31
|
+
const isExpired = () => new Date(`${endsAt.replace(' ', 'T')}+03:00`).getTime() <= Date.now();
|
|
32
|
+
if (isExpired()) {
|
|
33
|
+
this.expired = true;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.expiryInterval = setInterval(() => {
|
|
37
|
+
if (isExpired()) {
|
|
38
|
+
this.expired = true;
|
|
39
|
+
clearInterval(this.expiryInterval);
|
|
40
|
+
}
|
|
41
|
+
}, 1000);
|
|
42
|
+
}
|
|
43
|
+
loadFromProp() {
|
|
44
|
+
try {
|
|
45
|
+
if (!this.orderData) {
|
|
46
|
+
this.error = salla.lang.getWithDefault('pages.orders.order_not_found', 'الطلب غير موجود');
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const data = typeof this.orderData === 'string' ? JSON.parse(this.orderData) : this.orderData;
|
|
50
|
+
this.order = data;
|
|
51
|
+
}
|
|
52
|
+
catch (e) {
|
|
53
|
+
this.error = salla.lang.getWithDefault('pages.orders.order_not_found', 'الطلب غير موجود');
|
|
54
|
+
}
|
|
55
|
+
finally {
|
|
56
|
+
this.loading = false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
handleItemUpdated(event) {
|
|
60
|
+
if (!this.order)
|
|
61
|
+
return;
|
|
62
|
+
const { itemId, quantity, options } = event.detail;
|
|
63
|
+
const updateList = this.payload.items.update.filter(u => u.id !== itemId);
|
|
64
|
+
const updateEntry = { id: itemId, quantity, options: options ?? [] };
|
|
65
|
+
updateList.push(updateEntry);
|
|
66
|
+
this.payload = {
|
|
67
|
+
...this.payload,
|
|
68
|
+
items: { ...this.payload.items, update: updateList },
|
|
69
|
+
};
|
|
70
|
+
this.order = {
|
|
71
|
+
...this.order,
|
|
72
|
+
items: this.order.items.map(item => item.id === itemId ? { ...item, quantity } : item),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
handleItemRemoved(event) {
|
|
76
|
+
if (!this.order)
|
|
77
|
+
return;
|
|
78
|
+
if (this.order.items.length <= 1) {
|
|
79
|
+
salla.notify.error(salla.lang.getWithDefault('pages.orders.order_cannot_be_empty', 'لا يمكن إزالة جميع المنتجات من الطلب'));
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const { itemId } = event.detail;
|
|
83
|
+
this.payload = {
|
|
84
|
+
...this.payload,
|
|
85
|
+
items: {
|
|
86
|
+
update: this.payload.items.update.filter(u => u.id !== itemId),
|
|
87
|
+
remove: [...this.payload.items.remove, itemId],
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
this.order = {
|
|
91
|
+
...this.order,
|
|
92
|
+
items: this.order.items.filter(item => item.id !== itemId),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
get hasChanges() {
|
|
96
|
+
return this.payload.items.update.length > 0 || this.payload.items.remove.length > 0;
|
|
97
|
+
}
|
|
98
|
+
async saveOrder() {
|
|
99
|
+
if (!this.hasChanges)
|
|
100
|
+
return;
|
|
101
|
+
this.saveLoading = true;
|
|
102
|
+
try {
|
|
103
|
+
const response = await salla.order.api.editOrder(this.orderId, this.payload);
|
|
104
|
+
this.editPreview = response?.data?.data || response?.data;
|
|
105
|
+
await this.saveModal?.open();
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
const message = error?.response?.data?.error?.message || error?.response?.data?.message;
|
|
109
|
+
if (message) {
|
|
110
|
+
salla.notify.error(message);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
finally {
|
|
114
|
+
this.saveLoading = false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
navigateToOrder() {
|
|
118
|
+
const url = new URL(window.location.href);
|
|
119
|
+
url.pathname = url.pathname.replace(/\/edit\/?$/, '');
|
|
120
|
+
url.search = '';
|
|
121
|
+
window.location.href = url.href;
|
|
122
|
+
}
|
|
123
|
+
handleConfirm() {
|
|
124
|
+
this.confirming = true;
|
|
125
|
+
if (this.editPreview?.payment?.required && this.editPreview.payment.payment_url) {
|
|
126
|
+
window.location.href = this.editPreview.payment.payment_url;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
this.navigateToOrder();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
cancel() {
|
|
133
|
+
this.navigateToOrder();
|
|
134
|
+
}
|
|
135
|
+
renderSaveModal() {
|
|
136
|
+
const preview = this.editPreview;
|
|
137
|
+
const hasRemainingAmount = preview?.totals?.remaining_amount?.amount > 0;
|
|
138
|
+
const hasRefundAmount = preview?.totals?.refund_amount?.amount > 0;
|
|
139
|
+
const taxAmount = preview?.totals?.tax?.amount?.amount;
|
|
140
|
+
return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", onModalVisibilityChanged: (e) => {
|
|
141
|
+
if (!e.detail) {
|
|
142
|
+
this.editPreview = null;
|
|
143
|
+
if (!this.confirming) {
|
|
144
|
+
this.navigateToOrder();
|
|
145
|
+
}
|
|
146
|
+
this.confirming = false;
|
|
147
|
+
}
|
|
148
|
+
} }, h("div", { class: "s-order-edit-modal" }, h("h2", { class: "s-order-edit-modal-title" }, salla.lang.getWithDefault('pages.orders.edit_summary_title', 'ملخص الطلب بعد التعديل')), preview?.items?.length > 0 && (h("div", { class: "s-order-edit-modal-items" }, preview.items.map(item => {
|
|
149
|
+
const orderItem = this.order?.items?.find(oi => oi.id == item.id);
|
|
150
|
+
const imageUrl = orderItem?.product?.image?.url;
|
|
151
|
+
const optionsLabel = item.options?.join('/ ');
|
|
152
|
+
return (h("div", { class: "s-order-edit-modal-item" }, h("div", { class: "s-order-edit-modal-item-start" }, imageUrl && (h("img", { src: imageUrl, alt: item.name, class: "s-order-edit-modal-item-image" })), h("div", null, h("p", { class: "s-order-edit-modal-item-name" }, item.name), optionsLabel && (h("span", { class: "s-order-edit-modal-item-options" }, optionsLabel)))), h("div", { class: "s-order-edit-modal-item-end" }, h("span", { class: "s-order-edit-modal-item-price", innerHTML: salla.money(item.price.amount) }))));
|
|
153
|
+
}))), preview?.totals?.updated_products_total && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-row-label" }, salla.lang.getWithDefault('pages.orders.modified_products_total', 'مجموع المنتجات المعدلة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(preview.totals.updated_products_total.amount) }))), taxAmount > 0 && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-tax-label" }, h("i", { class: "sicon-info-circle s-order-edit-modal-tax-icon" }), salla.lang.getWithDefault('pages.orders.vat', 'ضريبة القيمة المضافة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(taxAmount) }))), preview?.totals?.total && (h("div", { class: "s-order-edit-modal-total" }, h("span", { class: "s-order-edit-modal-total-label" }, salla.lang.getWithDefault('pages.orders.order_total', 'اجمالي الطلب')), h("span", { class: "s-order-edit-modal-total-value", innerHTML: salla.money(preview.totals.total.amount) }))), hasRefundAmount && (h("div", { class: "s-order-edit-modal-refund" }, h("i", { class: "sicon-info-circle s-order-edit-modal-refund-icon" }), h("p", { class: "s-order-edit-modal-refund-text" }, salla.lang.getWithDefault('pages.orders.refund_message', 'سيتم تحويل فارق المبلغ على نفس وسيلة الدفع')))), h("div", { class: "s-order-edit-modal-btn-wrapper" }, h("salla-button", { onClick: () => this.handleConfirm() }, hasRemainingAmount
|
|
154
|
+
? salla.lang.getWithDefault('pages.orders.pay_difference', 'دفع فارق المبلغ')
|
|
155
|
+
: hasRefundAmount
|
|
156
|
+
? salla.lang.getWithDefault('pages.orders.confirm_and_receive_difference', 'تأكيد واستلام فارق المبلغ')
|
|
157
|
+
: salla.lang.getWithDefault('pages.orders.confirm_changes', 'تأكيد التعديلات'), h("i", { class: "sicon-keyboard_arrow_left s-order-edit-modal-btn-icon" }))))));
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
if (this.loading) {
|
|
161
|
+
return (h(Host, null, h("salla-loading", null)));
|
|
162
|
+
}
|
|
163
|
+
if (this.expired) {
|
|
164
|
+
return (h(Host, null, h("div", { class: "s-order-edit-expired" }, h("p", null, salla.lang.getWithDefault('pages.orders.edit_session_expired', 'انتهت مدة التعديل المتاحة')), h("salla-button", { onClick: () => this.navigateToOrder() }, salla.lang.getWithDefault('pages.orders.back_to_order', 'العودة إلى تفاصيل الطلب')))));
|
|
165
|
+
}
|
|
166
|
+
if (this.error || !this.order) {
|
|
167
|
+
return (h(Host, null, h("div", { class: "no-content-placeholder" }, h("i", { class: "sicon-shopping-bag icon" }), h("p", null, this.error))));
|
|
168
|
+
}
|
|
169
|
+
const hasItems = this.order.items && this.order.items.length > 0;
|
|
170
|
+
const endsAt = this.order.customer_editing_session?.ends_at;
|
|
171
|
+
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) => [
|
|
172
|
+
h("salla-order-edit-item", { key: item.id, item: item, orderId: this.orderId }),
|
|
173
|
+
index < this.order.items.length - 1 ? (h("div", { class: "s-order-edit-items-divider" })) : null,
|
|
174
|
+
])) : (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.cancel() }, salla.lang.getWithDefault('common.elements.cancel', 'الغاء'))), this.renderSaveModal()));
|
|
175
|
+
}
|
|
176
|
+
static get is() { return "salla-order-edit"; }
|
|
177
|
+
static get originalStyleUrls() {
|
|
178
|
+
return {
|
|
179
|
+
"$": ["salla-order-edit.scss"]
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get styleUrls() {
|
|
183
|
+
return {
|
|
184
|
+
"$": ["salla-order-edit.css"]
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
static get properties() {
|
|
188
|
+
return {
|
|
189
|
+
"orderId": {
|
|
190
|
+
"type": "any",
|
|
191
|
+
"attribute": "order-id",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "string | number",
|
|
195
|
+
"resolved": "number | string",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": "The order ID to edit"
|
|
203
|
+
},
|
|
204
|
+
"getter": false,
|
|
205
|
+
"setter": false,
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
208
|
+
"orderData": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"attribute": "order-data",
|
|
211
|
+
"mutable": false,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "string",
|
|
214
|
+
"resolved": "string",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "Pre-loaded order data (JSON string)."
|
|
222
|
+
},
|
|
223
|
+
"getter": false,
|
|
224
|
+
"setter": false,
|
|
225
|
+
"reflect": false
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
static get states() {
|
|
230
|
+
return {
|
|
231
|
+
"order": {},
|
|
232
|
+
"loading": {},
|
|
233
|
+
"error": {},
|
|
234
|
+
"saveLoading": {},
|
|
235
|
+
"payload": {},
|
|
236
|
+
"expired": {},
|
|
237
|
+
"editPreview": {}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
static get elementRef() { return "host"; }
|
|
241
|
+
static get listeners() {
|
|
242
|
+
return [{
|
|
243
|
+
"name": "orderItemUpdated",
|
|
244
|
+
"method": "handleItemUpdated",
|
|
245
|
+
"target": undefined,
|
|
246
|
+
"capture": false,
|
|
247
|
+
"passive": false
|
|
248
|
+
}, {
|
|
249
|
+
"name": "orderItemRemoved",
|
|
250
|
+
"method": "handleItemRemoved",
|
|
251
|
+
"target": undefined,
|
|
252
|
+
"capture": false,
|
|
253
|
+
"passive": false
|
|
254
|
+
}];
|
|
255
|
+
}
|
|
256
|
+
}
|