@salla.sa/twilight-components 2.14.274 → 2.14.276
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-L1nMkdqn.js → filepond-6SEXVM6z.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BYZl5BE2.js → filepond-plugin-file-poster-n2iYVp3t.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DSrSXg4-.js → filepond-plugin-file-validate-size-Iy3hm_gs.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CgnsyE2V.js → filepond-plugin-file-validate-type-BwgIXaDl.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-lODj8ghv.js → filepond-plugin-image-edit-D0Zm0Ae7.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-uQ5EYlsy.js → filepond-plugin-image-exif-orientation-O9keaTXk.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Cm1OgAvZ.js → filepond-plugin-image-preview-Cu__OpX5.js} +1 -1
- package/dist/cjs/{index-D0NII6ks.js → index-CW7Dnp8P.js} +1 -1
- package/dist/cjs/{index-BEeccvkl.js → index-zDUTAnXB.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion_62.cjs.entry.js +29 -14
- 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-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.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-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-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +17 -2
- package/dist/collection/components/salla-product-options/salla-product-options.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-offer-modal.js +17 -2
- package/dist/components/salla-product-options2.js +2 -2
- package/dist/esm/{filepond-plugin-file-poster-13kSl6pa.js → filepond-plugin-file-poster-CLU6w9b3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DGYz9wX6.js → filepond-plugin-file-validate-size-CX6dlm3b.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-7M_EeTPs.js → filepond-plugin-file-validate-type-Dww6qss9.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C5N0Q0IF.js → filepond-plugin-image-edit-DwudZslr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BvYJ1LVk.js → filepond-plugin-image-exif-orientation-BrZGrwe5.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-P4HnGsSt.js → filepond-plugin-image-preview-NpeY7GZZ.js} +1 -1
- package/dist/esm/{filepond-JStnJXdo.js → filepond-tsafeG0B.js} +1 -1
- package/dist/esm/{index-CqLymITv.js → index-DEsUYBYx.js} +1 -1
- package/dist/esm/{index-Bdj1TBK9.js → index-mrlY8HKK.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion_62.entry.js +29 -14
- 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-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.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-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-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/twilight/{p-895bd462.entry.js → p-087697fd.entry.js} +1 -1
- package/dist/twilight/{p-78e6e403.entry.js → p-0da66c10.entry.js} +1 -1
- package/dist/twilight/{p-a8d01888.entry.js → p-0f14e2e4.entry.js} +1 -1
- package/dist/twilight/{p-0f8534fd.entry.js → p-267dd052.entry.js} +1 -1
- package/dist/twilight/{p-f85916d5.entry.js → p-29a1db13.entry.js} +1 -1
- package/dist/twilight/{p-4d05539c.entry.js → p-2b6d8153.entry.js} +1 -1
- package/dist/twilight/{p-bf90a8c8.entry.js → p-2e1734e7.entry.js} +1 -1
- package/dist/twilight/{p-a1e9d695.entry.js → p-366503cd.entry.js} +1 -1
- package/dist/twilight/{p-f7784dda.entry.js → p-4066a1b1.entry.js} +1 -1
- package/dist/twilight/{p-550d2b59.entry.js → p-49e5435a.entry.js} +1 -1
- package/dist/twilight/{p-faee9d58.entry.js → p-4cda348c.entry.js} +1 -1
- package/dist/twilight/{p-282f4f69.entry.js → p-64d87b2c.entry.js} +1 -1
- package/dist/twilight/{p-1be88437.entry.js → p-69109692.entry.js} +1 -1
- package/dist/twilight/{p-cc93a79e.entry.js → p-79277342.entry.js} +1 -1
- package/dist/twilight/{p-a5681537.entry.js → p-8138baca.entry.js} +1 -1
- package/dist/twilight/{p-c9ad0ad1.entry.js → p-879c7b3b.entry.js} +1 -1
- package/dist/twilight/{p-34e10e96.entry.js → p-8aa7c264.entry.js} +1 -1
- package/dist/twilight/{p-456d49c3.entry.js → p-9481158a.entry.js} +1 -1
- package/dist/twilight/{p-3a4137eb.entry.js → p-98121aa5.entry.js} +1 -1
- package/dist/twilight/p-9f14803b.entry.js +11 -0
- package/dist/twilight/{p-BP3jjHyr.js → p-BPs87J_p.js} +1 -1
- package/dist/twilight/{p-CDM6fsL2.js → p-BQGKNqrM.js} +2 -2
- package/dist/twilight/{p-Btn8p1Mk.js → p-C0xTsGCO.js} +1 -1
- package/dist/twilight/{p-DD6CdbcU.js → p-CCWkGy7g.js} +1 -1
- package/dist/twilight/{p-DYhkBiMu.js → p-CSGfyf5g.js} +1 -1
- package/dist/twilight/{p-AhRhML1e.js → p-DM6HkKTq.js} +1 -1
- package/dist/twilight/{p-723d7b1b.entry.js → p-b072c1f9.entry.js} +1 -1
- package/dist/twilight/{p-b254a752.entry.js → p-b42d8a8b.entry.js} +1 -1
- package/dist/twilight/{p-5971eca7.entry.js → p-b648da57.entry.js} +1 -1
- package/dist/twilight/{p-bd7a0c4f.entry.js → p-c526838b.entry.js} +1 -1
- package/dist/twilight/{p-e825aae4.entry.js → p-d6be71c8.entry.js} +1 -1
- package/dist/twilight/{p-f232e683.entry.js → p-de076268.entry.js} +1 -1
- package/dist/twilight/{p-D6-aDTP4.js → p-dm1mR3lo.js} +1 -1
- package/dist/twilight/{p-1d81f143.entry.js → p-eceb7c9e.entry.js} +1 -1
- package/dist/twilight/{p-9760fa21.entry.js → p-ee9dd25a.entry.js} +1 -1
- package/dist/twilight/{p-e99645f0.entry.js → p-f1e1b555.entry.js} +1 -1
- package/dist/twilight/{p-Ccp_rmSW.js → p-fG9MNMWw.js} +1 -1
- package/dist/twilight/{p-57629f65.entry.js → p-fa3319f5.entry.js} +1 -1
- package/dist/twilight/{p-f96be282.entry.js → p-faf1616b.entry.js} +1 -1
- package/dist/twilight/{p-Bdj1TBK9.js → p-mrlY8HKK.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/package.json +5 -5
- package/dist/twilight/p-c293f9c1.entry.js +0 -11
|
@@ -30,7 +30,7 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
|
|
|
30
30
|
}
|
|
31
31
|
changeHandler(event) {
|
|
32
32
|
salla.event.emit('salla-onditional-fields::change', event);
|
|
33
|
-
salla.log('Received the change/input event:', event);
|
|
33
|
+
salla.log('Received the change/input event: ', event);
|
|
34
34
|
if (!event.target ||
|
|
35
35
|
(!['SELECT', 'INPUT', 'TEXTAREA'].includes(event.target.tagName) &&
|
|
36
36
|
!['checkbox', 'radio', 'text'].includes(event.target.getAttribute('type')))) {
|
|
@@ -135,7 +135,22 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
135
135
|
return h("div", { class: "s-offer-modal-discount-table" }, h("table", null, h("tbody", null, this.offer.get.discounts_table?.map(discount => h("tr", null, h("td", null, discount.text), h("td", { class: "s-offer-modal-discount-table-cell" }, h("salla-button", { fill: "outline", shape: "btn", color: "primary", size: "medium", width: "normal", onClick: () => this.addToCart(discount.quantity) }, this.addToCartLabel)))))));
|
|
136
136
|
}
|
|
137
137
|
else if (this.offer.get.products?.length) {
|
|
138
|
-
|
|
138
|
+
const productsCount = this.offer.get.products?.length || 0;
|
|
139
|
+
const sliderConfig = {
|
|
140
|
+
slidesPerView: 'auto',
|
|
141
|
+
spaceBetween: 16,
|
|
142
|
+
breakpoints: {
|
|
143
|
+
768: {
|
|
144
|
+
slidesPerView: Math.min(2, productsCount),
|
|
145
|
+
spaceBetween: 16
|
|
146
|
+
},
|
|
147
|
+
1024: {
|
|
148
|
+
slidesPerView: Math.min(3, productsCount),
|
|
149
|
+
spaceBetween: 16
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
return (h("salla-products-slider", { key: (this.offer.get.products?.map(product => product.id) || []).join(","), source: "selected", "source-value": `[${(this.offer.get.products?.map(product => product.id) || []).join(",")}]`, "slider-config": JSON.stringify(sliderConfig) }));
|
|
139
154
|
// return <salla-slider
|
|
140
155
|
// type="carousel"
|
|
141
156
|
// class={{"s-offer-modal-slider-centered": this.offer.get.products?.length <= 2, "s-offer-modal-slider": true}}
|
|
@@ -190,7 +205,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
190
205
|
// '</div>';
|
|
191
206
|
// }
|
|
192
207
|
render() {
|
|
193
|
-
return h("salla-modal", { key: '
|
|
208
|
+
return h("salla-modal", { key: '4fb68893e77f22143be6042b3d36727c41b0d519', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '4e1cdc78386fa8fbea214e6a62ba340661878da5', slot: 'loading' }, h("div", { key: '02f6b9416aee06f02cd7d6e0a8c306ec723f8abd', class: "s-offer-modal-skeleton" }, h("div", { key: 'c02a7642cc86a71173deb91762754b1db28f6b3d', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'abd69d4e511a48c45941259576928a8cf3a57447', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: 'aa967d8d284f7be4679d1f31dcf502a845920da9', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'eeef2a1bf033785b1d53166de1df0b627e9af5cc', height: '10px', width: '30%' })), h("div", { key: '54a362df2f3caced4b1e981b5e3b503bf1b4c5b6', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '63eee8ce9f67519694f66ded772f3a6e88ba1985', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '15ac931ba315933d6cf36880b68d1cd14d91c6d6', height: '15px', width: '50%' }), h("salla-skeleton", { key: '87232e1af65f13cd668d7ad1ee6aff80acbbbc33', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
194
209
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
195
210
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
196
211
|
: '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -601,12 +601,12 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
|
|
|
601
601
|
}
|
|
602
602
|
//@ts-ignore
|
|
603
603
|
textOption(option) {
|
|
604
|
-
return h("div", { class: "s-product-options-text" }, h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option)
|
|
604
|
+
return h("div", { class: "s-product-options-text" }, h("input", { type: "text", value: option.value, maxLength: option?.length, class: 's-form-control', required: !option.visibility_condition && option.required, name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: e => this.changedHandler(e, option) }));
|
|
605
605
|
}
|
|
606
606
|
//@ts-ignore
|
|
607
607
|
textareaOption(option) {
|
|
608
608
|
//todo::remove mt-1 class, and if it's okay to remove the tag itself will be great
|
|
609
|
-
return h("div", { class: "s-product-options-textarea" }, h("div", { class: "mt-1" }, h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option)
|
|
609
|
+
return h("div", { class: "s-product-options-textarea" }, h("div", { class: "mt-1" }, h("textarea", { rows: 4, value: option.value, maxLength: option?.length, class: "s-form-control", required: !option.visibility_condition && option.required, id: this.generateUniqueKey(option.id.toString()), name: this.generateInputName(option.id), placeholder: option.placeholder, onInvalid: (e) => this.invalidHandler(e, option), onChange: (e) => this.changedHandler(e, option) })));
|
|
610
610
|
}
|
|
611
611
|
//@ts-ignore
|
|
612
612
|
mapOption(option) {
|