@salla.sa/twilight-components 2.14.299 → 2.14.301
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/{Helper-C9UmWIYn.js → Helper-B5NunIdR.js} +1 -0
- package/dist/cjs/{filepond-DsdfFzci.js → filepond-CiGLkWY7.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D7EBBVBw.js → filepond-plugin-file-poster-113aCl-e.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Dh6MxbpO.js → filepond-plugin-file-validate-size-CiZz56Xi.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D40rBF9e.js → filepond-plugin-file-validate-type-DTb9Ct3C.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BXE5dQVb.js → filepond-plugin-image-edit-BL6ixM-6.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DbGi6rNR.js → filepond-plugin-image-exif-orientation-DVosclA-.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CDgGkap0.js → filepond-plugin-image-preview-CNqKulm7.js} +1 -1
- package/dist/cjs/{index-Cd0WMShL.js → index-DHfe8MsY.js} +1 -1
- package/dist/cjs/{index-Bo6u9vKr.js → index-cNY_E-l7.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion_62.cjs.entry.js +26 -27
- 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 +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/collection/Helpers/Helper.js +1 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -3
- package/dist/collection/components/salla-products-list/salla-products-list.js +3 -3
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +14 -13
- package/dist/components/Helper.js +1 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -3
- package/dist/components/salla-products-list2.js +1 -1
- package/dist/components/salla-user-menu.js +14 -13
- package/dist/esm/{Helper-B51hb0bi.js → Helper-Bt5Zv9cl.js} +1 -0
- package/dist/esm/{filepond-CS1gpTBr.js → filepond-C7eUn4lx.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-hYRi6NyQ.js → filepond-plugin-file-poster-vmXXIkL6.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Bq1DeGGt.js → filepond-plugin-file-validate-size-BZZqHehK.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-cKS428EA.js → filepond-plugin-file-validate-type-BbwD6h-S.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Czrr7OFb.js → filepond-plugin-image-edit-xJ4IGVgP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-D5NuOSvg.js → filepond-plugin-image-exif-orientation-BG7bHX2B.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CPQU6Nfl.js → filepond-plugin-image-preview-DNRiGZ1w.js} +1 -1
- package/dist/esm/{index-CRHDw9qX.js → index-DMx0pIZZ.js} +1 -1
- package/dist/esm/{index-BcEZj_a_.js → index-wTZ5u3Qu.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion_62.entry.js +26 -27
- 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 +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/salla-reviews.entry.js +2 -2
- 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 +2 -2
- package/dist/twilight/{p-61171611.entry.js → p-0f8e76f9.entry.js} +1 -1
- package/dist/twilight/{p-7c68bcc8.entry.js → p-1015c659.entry.js} +2 -2
- package/dist/twilight/{p-eb2d4571.entry.js → p-10d2d437.entry.js} +1 -1
- package/dist/twilight/{p-c4a0b3b7.entry.js → p-19f51013.entry.js} +1 -1
- package/dist/twilight/{p-35dd8271.entry.js → p-1f3223b5.entry.js} +1 -1
- package/dist/twilight/{p-d2e0a44b.entry.js → p-1f90b598.entry.js} +1 -1
- package/dist/twilight/{p-cc426b8e.entry.js → p-21106ddd.entry.js} +1 -1
- package/dist/twilight/{p-a845dc62.entry.js → p-21ffae60.entry.js} +1 -1
- package/dist/twilight/{p-1df02ecb.entry.js → p-31e4965e.entry.js} +1 -1
- package/dist/twilight/{p-ac60f7a8.entry.js → p-32cc9ddd.entry.js} +1 -1
- package/dist/twilight/{p-7ba50aa5.entry.js → p-3578f709.entry.js} +1 -1
- package/dist/twilight/{p-618c18ef.entry.js → p-41a59f32.entry.js} +1 -1
- package/dist/twilight/{p-f8621694.entry.js → p-492f76aa.entry.js} +1 -1
- package/dist/twilight/{p-47d610c9.entry.js → p-509bef7a.entry.js} +1 -1
- package/dist/twilight/{p-6c5a9d29.entry.js → p-57fdc503.entry.js} +1 -1
- package/dist/twilight/{p-ba943da7.entry.js → p-620bf923.entry.js} +1 -1
- package/dist/twilight/p-67354cb0.entry.js +4 -0
- package/dist/twilight/{p-be4026a8.entry.js → p-680fd54e.entry.js} +1 -1
- package/dist/twilight/{p-22478bc6.entry.js → p-6a22cdb0.entry.js} +1 -1
- package/dist/twilight/{p-48fcb842.entry.js → p-7c851abe.entry.js} +1 -1
- package/dist/twilight/{p-720e6cd2.entry.js → p-7e77c246.entry.js} +1 -1
- package/dist/twilight/{p-802f41e9.entry.js → p-95f2f372.entry.js} +1 -1
- package/dist/twilight/{p-9e1fde84.entry.js → p-9eea4938.entry.js} +1 -1
- package/dist/twilight/{p-DSERK81u.js → p-B1qckR0H.js} +1 -1
- package/dist/twilight/{p-Bzhd8VNC.js → p-CZNpa8Wt.js} +1 -1
- package/dist/twilight/{p-D94zCCrv.js → p-DMdYXt9I.js} +1 -1
- package/dist/twilight/{p-BSB44NuH.js → p-DUi-y-L3.js} +1 -1
- package/dist/twilight/p-Dljb4XCt.js +4 -0
- package/dist/twilight/{p-DdybBqQi.js → p-E_gyshLJ.js} +1 -1
- package/dist/twilight/{p-DosNklS4.js → p-ZsI3fS_o.js} +2 -2
- package/dist/twilight/{p-0d7f2c4f.entry.js → p-a5774669.entry.js} +1 -1
- package/dist/twilight/{p-7f11dbdb.entry.js → p-b1c59aed.entry.js} +1 -1
- package/dist/twilight/{p-a78482f2.entry.js → p-b1d0f305.entry.js} +1 -1
- package/dist/twilight/{p-9bbb9da8.entry.js → p-c7e91395.entry.js} +1 -1
- package/dist/twilight/{p-3a156d84.entry.js → p-c89ca00d.entry.js} +1 -1
- package/dist/twilight/{p-rKgX27tV.js → p-cBibjZzs.js} +1 -1
- package/dist/twilight/{p-5013bc5d.entry.js → p-d338a839.entry.js} +1 -1
- package/dist/twilight/{p-8752f63e.entry.js → p-ec00e74e.entry.js} +1 -1
- package/dist/twilight/{p-7a7008a1.entry.js → p-f17f2815.entry.js} +1 -1
- package/dist/twilight/{p-75d4b225.entry.js → p-fa941083.entry.js} +1 -1
- package/dist/twilight/{p-7faf3b7b.entry.js → p-fcbf87ce.entry.js} +1 -1
- package/dist/twilight/{p-fbf8ed58.entry.js → p-ffe0b3f8.entry.js} +1 -1
- package/dist/twilight/p-j-xabI8F.js +9 -0
- package/dist/twilight/{p-BcEZj_a_.js → p-wTZ5u3Qu.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -1
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +2 -2
- package/dist/types/components.d.ts +2 -2
- package/package.json +5 -5
- package/dist/twilight/p-X-ZUrwUQ.js +0 -4
- package/dist/twilight/p-b1b7f8d6.entry.js +0 -4
- package/dist/twilight/p-eaOyQUpB.js +0 -9
|
@@ -93,9 +93,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
|
|
|
93
93
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h(Host, { key: '0aeceebde05ad98ab11016dda3bd65f118b656dc' }, h("salla-slider", { key: '
|
|
97
|
-
spaceBetween: 0,
|
|
98
|
-
} }, h("div", { key: 'b9983965c9ba86120540d6df6bedaaca22ea0cd1', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
96
|
+
return (h(Host, { key: '0aeceebde05ad98ab11016dda3bd65f118b656dc' }, h("salla-slider", { key: '0834a28aa149f5ab1c62c173477e0db8936ee32f', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '635d79f8bfb386c60e93536197ad68e937842831', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
99
97
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
100
98
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
101
99
|
const optionsButtonLabel = hasSavedOptions
|
|
@@ -116,7 +116,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
116
116
|
return salla.config.get('store.settings.product.filters') && this.filtersResults;
|
|
117
117
|
}
|
|
118
118
|
isSourceWithoutValue() {
|
|
119
|
-
return ['offers', 'latest', 'sales', 'wishlist', 'top-rated'].includes(this.getSource());
|
|
119
|
+
return ['offers', 'latest', 'sales', 'wishlist', 'top-rated', 'reorder'].includes(this.getSource());
|
|
120
120
|
}
|
|
121
121
|
animateItems() {
|
|
122
122
|
anime({
|
|
@@ -71,7 +71,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
71
71
|
notifications: salla.helpers.number(salla.storage.get('user.notifications') || 0),
|
|
72
72
|
pending_orders: salla.helpers.number(salla.storage.get('user.pending_orders') || 0),
|
|
73
73
|
};
|
|
74
|
-
this.sallaAccountEnabled =
|
|
74
|
+
this.sallaAccountEnabled = false;
|
|
75
75
|
this.hasBadges = Number(salla.storage.get('user.pending_orders')) > 0 ||
|
|
76
76
|
Number(salla.storage.get('user.notifications')) > 0;
|
|
77
77
|
/**
|
|
@@ -157,18 +157,19 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
componentWillLoad() {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
async componentWillLoad() {
|
|
161
|
+
await salla.onReady();
|
|
162
|
+
await salla.lang.onLoaded();
|
|
163
|
+
this.sallaAccountEnabled = Salla.config.get('store.features')?.includes('salla-account');
|
|
164
|
+
this.profileUrl = `${salla.config.get('account.url', 'https://accounts.salla.com')}/${salla.config.get('user.language_code')}/user?store=${salla.config.get('store.id')}&info=${salla.storage.get('token')}`;
|
|
165
|
+
const trigger = this.host.querySelector('[slot="trigger"]');
|
|
166
|
+
this.triggerSlot =
|
|
167
|
+
'<div class="s-user-menu-trigger"><div class="s-user-menu-avatar-wrap"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /></div><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>';
|
|
168
|
+
if (!trigger) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
this.triggerSlot = trigger.innerHTML;
|
|
172
|
+
trigger.innerHTML = this.replaceParams(trigger.innerHTML);
|
|
172
173
|
}
|
|
173
174
|
fetchFreshProfile() {
|
|
174
175
|
//don't request fetchFreshProfile unless token is injected into the api
|