@salla.sa/twilight-components 2.14.346 → 2.14.348
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-D3JT19b9.js → filepond-B_sfbQx7.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-vIqpi5Jb.js → filepond-plugin-file-poster-CStjlaHV.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CGka-OOR.js → filepond-plugin-file-validate-size-DrcM89vc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D5Xexu4N.js → filepond-plugin-file-validate-type-DnIoL6mq.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CIxcoEFX.js → filepond-plugin-image-edit-DLV0U0gb.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-yRezDeUb.js → filepond-plugin-image-exif-orientation-tPl3p3z_.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CPE8T2_S.js → filepond-plugin-image-preview-WTfIQM6C.js} +1 -1
- package/dist/cjs/{index-B_jylE1-.js → index-4jrFyN8u.js} +1 -1
- package/dist/cjs/{index-CBbHmJY_.js → index-CkpcUCU5.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion_62.cjs.entry.js +10368 -1323
- package/dist/cjs/salla-advertisement.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-cart-item-offers.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-custom-fields.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-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.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-metadata.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.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-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-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.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-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-BBejdpPH.js +1045 -0
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +67 -37
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -5
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +3 -0
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +68 -55
- package/dist/collection/components/salla-slider/salla-slider.css +687 -238
- package/dist/collection/components/salla-slider/salla-slider.js +76 -58
- package/dist/components/index.js +2 -2
- package/dist/components/salla-color-picker2.js +69 -1056
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -5
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-products-slider2.js +3 -0
- package/dist/components/salla-quick-buy2.js +367 -139
- package/dist/components/salla-slider2.js +9861 -61
- package/dist/components/vanilla-picker.js +1043 -0
- package/dist/esm/{filepond-ESI025KA.js → filepond-BBd4zIxi.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CWHjkl55.js → filepond-plugin-file-poster-Vvhvcuu3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-B7W5i7Mk.js → filepond-plugin-file-validate-size-NvdGUEr-.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-B1Ny76Ep.js → filepond-plugin-file-validate-type-BwVZhOLd.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DfqS6NSZ.js → filepond-plugin-image-edit-BOgZn2vW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-3kpdQNdB.js → filepond-plugin-image-exif-orientation-BmbDj4hl.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-Ck91BQiY.js → filepond-plugin-image-preview-CDsLWAPe.js} +1 -1
- package/dist/esm/{index-5xSCOnsp.js → index-BhHl4h44.js} +1 -1
- package/dist/esm/{index-gdKTeC4S.js → index-LmL2BolE.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion_62.entry.js +10368 -1323
- package/dist/esm/salla-advertisement.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-cart-item-offers.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-custom-fields.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-hook.entry.js +1 -1
- package/dist/esm/salla-installment.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-metadata.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.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-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-price-range.entry.js +1 -1
- package/dist/esm/salla-review-card.entry.js +1 -1
- package/dist/esm/salla-reviews-page.entry.js +1 -1
- package/dist/esm/salla-reviews.entry.js +1 -1
- package/dist/esm/salla-social.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-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-nCA1ATQw.js +1043 -0
- package/dist/twilight/{p-158398ff.entry.js → p-03870195.entry.js} +1 -1
- package/dist/twilight/{p-db68f32e.entry.js → p-06956c1d.entry.js} +1 -1
- package/dist/twilight/{p-4e98e961.entry.js → p-07add349.entry.js} +1 -1
- package/dist/twilight/{p-343c8271.entry.js → p-09dceb55.entry.js} +1 -1
- package/dist/twilight/{p-f64cd638.entry.js → p-0aef5345.entry.js} +1 -1
- package/dist/twilight/{p-eab13555.entry.js → p-133f1a48.entry.js} +1 -1
- package/dist/twilight/{p-936a76d1.entry.js → p-23ff2132.entry.js} +1 -1
- package/dist/twilight/{p-1445c077.entry.js → p-2c9d0518.entry.js} +1 -1
- package/dist/twilight/{p-6bd166a7.entry.js → p-2ed7cfba.entry.js} +1 -1
- package/dist/twilight/p-2gPrnQD6.js +9 -0
- package/dist/twilight/{p-369ada5a.entry.js → p-312c1af1.entry.js} +1 -1
- package/dist/twilight/{p-b8f7b4eb.entry.js → p-388fb59e.entry.js} +1 -1
- package/dist/twilight/{p-a7a488d5.entry.js → p-3d69e45a.entry.js} +1 -1
- package/dist/twilight/{p-ad2b2919.entry.js → p-45cd70b8.entry.js} +1 -1
- package/dist/twilight/{p-0a4b04a4.entry.js → p-48b90fb3.entry.js} +1 -1
- package/dist/twilight/{p-ebd8dbf8.entry.js → p-4cd30c07.entry.js} +1 -1
- package/dist/twilight/{p-ef0fa205.entry.js → p-4d47725f.entry.js} +1 -1
- package/dist/twilight/{p-8a1aa61c.entry.js → p-549ff403.entry.js} +1 -1
- package/dist/twilight/{p-46b242d9.entry.js → p-63e9750c.entry.js} +1 -1
- package/dist/twilight/{p-b0e7c134.entry.js → p-6c648552.entry.js} +1 -1
- package/dist/twilight/{p-5099bc51.entry.js → p-74aaf06c.entry.js} +1 -1
- package/dist/twilight/{p-003a77fe.entry.js → p-7c85a102.entry.js} +1 -1
- package/dist/twilight/{p-49638a91.entry.js → p-8c111815.entry.js} +1 -1
- package/dist/twilight/{p-e465a952.entry.js → p-950f9a87.entry.js} +1 -1
- package/dist/twilight/{p-8563e747.entry.js → p-966ed241.entry.js} +1 -1
- package/dist/twilight/{p-aefe5639.entry.js → p-9f39c553.entry.js} +1 -1
- package/dist/twilight/p-Bf4kQRcH.js +11 -0
- package/dist/twilight/{p-D3JRC8L6.js → p-CIEz2m31.js} +1 -1
- package/dist/twilight/{p-DH5ljldi.js → p-D1_qMmD0.js} +1 -1
- package/dist/twilight/{p-gdKTeC4S.js → p-LmL2BolE.js} +1 -1
- package/dist/twilight/{p-DpJnHcvE.js → p-TSs7NqKJ.js} +1 -1
- package/dist/twilight/{p-1037bca4.entry.js → p-b30a12dc.entry.js} +1 -1
- package/dist/twilight/{p-8100a941.entry.js → p-bcec0cf0.entry.js} +1 -1
- package/dist/twilight/{p-CUtvZOiz.js → p-c0pjDpvN.js} +1 -1
- package/dist/twilight/{p-3e410acd.entry.js → p-c302d3e3.entry.js} +1 -1
- package/dist/twilight/{p-5570cae4.entry.js → p-c38c65f0.entry.js} +1 -1
- package/dist/twilight/{p-7b5906b8.entry.js → p-cd2c9076.entry.js} +1 -1
- package/dist/twilight/{p-36a95a0f.entry.js → p-d2ed15e9.entry.js} +1 -1
- package/dist/twilight/{p-8418b725.entry.js → p-f1f60ef7.entry.js} +1 -1
- package/dist/twilight/{p-360a28b9.entry.js → p-f74f1591.entry.js} +1 -1
- package/dist/twilight/{p-d5da6f45.entry.js → p-fbbd8d5d.entry.js} +1 -1
- package/dist/twilight/p-fff8923d.entry.js +4 -0
- package/dist/twilight/{p-DId3Z42j.js → p-qNQwLhxq.js} +1 -1
- package/dist/twilight/{p-rYLDeLaL.js → p-v9xIxXO9.js} +1 -1
- package/dist/twilight/{p-CMYBgZIX.js → p-xUcnsSlW.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-color-picker/interfaces.d.ts +9 -0
- package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +4 -1
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +1 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +2 -0
- package/dist/types/components/salla-slider/salla-slider.d.ts +9 -3
- package/package.json +6 -6
- package/dist/twilight/p-04e81b46.entry.js +0 -11
- package/dist/twilight/p-EnsROQgl.js +0 -9
|
@@ -476,22 +476,21 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
|
|
|
476
476
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
477
477
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
478
478
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
479
|
-
return (h(Host, { key: '28786c060499c9bfbacf025b75f21d0e8a2d6ab1' }, h("salla-modal", { key: '6322c0542ca2769f50ed6fc616c6d5c72d456c9c', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '812707c4108b5bdefa97e1ff7537998083e2403b', slot: "loading" }, h("salla-skeleton", { key: 'e82b875495873b66414ee4a75d845823373b4914', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '
|
|
479
|
+
return (h(Host, { key: '28786c060499c9bfbacf025b75f21d0e8a2d6ab1' }, h("salla-modal", { key: '6322c0542ca2769f50ed6fc616c6d5c72d456c9c', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '812707c4108b5bdefa97e1ff7537998083e2403b', slot: "loading" }, h("salla-skeleton", { key: 'e82b875495873b66414ee4a75d845823373b4914', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'f1f3545637b182257f9107972a819ae9819de137', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
480
480
|
centeredSlides: true,
|
|
481
481
|
centeredSlidesBounds: true,
|
|
482
482
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
483
483
|
watchOverflow: true,
|
|
484
|
-
watchSlidesVisibility: true,
|
|
485
484
|
watchSlidesProgress: true,
|
|
486
485
|
direction: 'vertical',
|
|
487
486
|
spaceBetween: 10,
|
|
488
|
-
} }, h("div", { key: '
|
|
487
|
+
} }, h("div", { key: '97b50195903a01376e057bc99ddb353fd3dfdb2b', slot: "items" }, this.product?.images &&
|
|
489
488
|
this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
|
|
490
489
|
e.target.style.display = 'none';
|
|
491
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '
|
|
490
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: 'ff943c9c8f175ff1c0374a13153b33889c468dda', slot: "thumbs" }, this.product?.images &&
|
|
492
491
|
this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
|
|
493
492
|
e.target.style.display = 'none';
|
|
494
|
-
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '
|
|
493
|
+
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '7555836d26018f6405bc54a1cd735b4030d4bdf1', slot: "footer" }, h("div", { key: 'a7ee5f19a4c11a1c61e4dc026fa8673e0ab74c3f', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '1da19964053766f3a1339ea0e77ab7aaa4d8a003', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
495
494
|
? salla.lang.get('common.elements.saving')
|
|
496
495
|
: salla.lang.get('common.elements.save')))))));
|
|
497
496
|
}
|
|
@@ -104,7 +104,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
|
|
|
104
104
|
: KeyBoardArrowRightIcon;
|
|
105
105
|
return (h("div", { class: `s-multiple-bundle-product-slide-one-third ${product.quantity == 0
|
|
106
106
|
? 's-multiple-bundle-product-slide-one-third-disabled'
|
|
107
|
-
: ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.
|
|
107
|
+
: ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.regular_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, optionsButtonLabel, h("span", { class: "s-multiple-bundle-product-button-icon", innerHTML: optionsArrowIcon })))))));
|
|
108
108
|
})))));
|
|
109
109
|
}
|
|
110
110
|
get host() { return this; }
|
|
@@ -78,6 +78,9 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
78
78
|
}
|
|
79
79
|
}, 1000);
|
|
80
80
|
}
|
|
81
|
+
async componentDidLoad() {
|
|
82
|
+
await Salla.hooks.registerComponent('salla-products-slider', this);
|
|
83
|
+
}
|
|
81
84
|
isSourceWithoutValue() {
|
|
82
85
|
return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
|
|
83
86
|
}
|