@salla.sa/twilight-components 2.11.25 → 2.11.26
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/salla-button_37.cjs.entry.js +9 -7
- package/dist/collection/components/salla-slider/salla-slider.js +11 -9
- package/dist/components/salla-slider2.js +9 -7
- package/dist/esm/salla-button_37.entry.js +9 -7
- package/dist/esm-es5/salla-button_37.entry.js +1 -1
- package/dist/twilight/{p-cd5fda9d.system.entry.js → p-187222ed.system.entry.js} +1 -1
- package/dist/twilight/p-1b87ab66.system.js +1 -1
- package/dist/twilight/{p-11da4b05.entry.js → p-a341ed7a.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-slider/salla-slider.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +2 -2
|
@@ -24740,7 +24740,7 @@ const SallaSwiper = class {
|
|
|
24740
24740
|
this.displayAllTitle = salla.lang.get('blocks.home.display_all');
|
|
24741
24741
|
});
|
|
24742
24742
|
this.hasThumbSlot = !!this.host.querySelector('[slot="thumbs"]');
|
|
24743
|
-
// if (this.enableCallToSlide) {
|
|
24743
|
+
// if (this.enableCallToSlide) {
|
|
24744
24744
|
// salla.event.on('product-options::goToSlide', data => {
|
|
24745
24745
|
// const slideIndex = this.sliderWrapper.querySelector(`[data-img-id="${data}"]`).getAttribute('data-slid-index');
|
|
24746
24746
|
// this.slideTo(parseInt(slideIndex), 300, false);
|
|
@@ -24788,14 +24788,16 @@ const SallaSwiper = class {
|
|
|
24788
24788
|
lazy: true,
|
|
24789
24789
|
on: {
|
|
24790
24790
|
// todo:: find better way for this workaround to show lazyLoad for duplicated slides, for some reason they are loaded but class not added.
|
|
24791
|
-
afterInit: (slider) =>
|
|
24791
|
+
afterInit: (slider) => {
|
|
24792
24792
|
var _a;
|
|
24793
24793
|
(_a = document.lazyLoadInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
24794
|
-
|
|
24795
|
-
|
|
24796
|
-
|
|
24797
|
-
|
|
24798
|
-
|
|
24794
|
+
this.loop && slider.slides.map(slide => {
|
|
24795
|
+
if (!slide.classList.contains('swiper-slide-duplicate')) {
|
|
24796
|
+
return;
|
|
24797
|
+
}
|
|
24798
|
+
slide.querySelectorAll('img.lazy:not(.loaded)').forEach(img => img.classList.add('loaded'));
|
|
24799
|
+
});
|
|
24800
|
+
},
|
|
24799
24801
|
},
|
|
24800
24802
|
pagination: this.pagination ? {
|
|
24801
24803
|
el: this.host.id ? `#${this.host.id} .swiper-pagination` : '',
|
|
@@ -270,7 +270,7 @@ export class SallaSwiper {
|
|
|
270
270
|
this.displayAllTitle = salla.lang.get('blocks.home.display_all');
|
|
271
271
|
});
|
|
272
272
|
this.hasThumbSlot = !!this.host.querySelector('[slot="thumbs"]');
|
|
273
|
-
// if (this.enableCallToSlide) {
|
|
273
|
+
// if (this.enableCallToSlide) {
|
|
274
274
|
// salla.event.on('product-options::goToSlide', data => {
|
|
275
275
|
// const slideIndex = this.sliderWrapper.querySelector(`[data-img-id="${data}"]`).getAttribute('data-slid-index');
|
|
276
276
|
// this.slideTo(parseInt(slideIndex), 300, false);
|
|
@@ -318,14 +318,16 @@ export class SallaSwiper {
|
|
|
318
318
|
lazy: true,
|
|
319
319
|
on: {
|
|
320
320
|
// todo:: find better way for this workaround to show lazyLoad for duplicated slides, for some reason they are loaded but class not added.
|
|
321
|
-
afterInit: (slider) =>
|
|
321
|
+
afterInit: (slider) => {
|
|
322
322
|
var _a;
|
|
323
323
|
(_a = document.lazyLoadInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
this.loop && slider.slides.map(slide => {
|
|
325
|
+
if (!slide.classList.contains('swiper-slide-duplicate')) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
slide.querySelectorAll('img.lazy:not(.loaded)').forEach(img => img.classList.add('loaded'));
|
|
329
|
+
});
|
|
330
|
+
},
|
|
329
331
|
},
|
|
330
332
|
pagination: this.pagination ? {
|
|
331
333
|
el: this.host.id ? `#${this.host.id} .swiper-pagination` : '',
|
|
@@ -961,7 +963,7 @@ export class SallaSwiper {
|
|
|
961
963
|
"composed": true,
|
|
962
964
|
"docs": {
|
|
963
965
|
"tags": [],
|
|
964
|
-
"text": "Event will be fired when user touch and move finger over Swiper and move it
|
|
966
|
+
"text": "Event will be fired when user touch and move finger over Swiper and move it.\nReceives touchmove event as an arguments."
|
|
965
967
|
},
|
|
966
968
|
"complexType": {
|
|
967
969
|
"original": "any",
|
|
@@ -991,7 +993,7 @@ export class SallaSwiper {
|
|
|
991
993
|
"composed": true,
|
|
992
994
|
"docs": {
|
|
993
995
|
"tags": [],
|
|
994
|
-
"text": "Event will be fired when user touch and move finger over Swiper
|
|
996
|
+
"text": "Event will be fired when user touch and move finger over Swiper.\nReceives touchmove event as an arguments."
|
|
995
997
|
},
|
|
996
998
|
"complexType": {
|
|
997
999
|
"original": "any",
|
|
@@ -292,7 +292,7 @@ const SallaSwiper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
292
292
|
this.displayAllTitle = salla.lang.get('blocks.home.display_all');
|
|
293
293
|
});
|
|
294
294
|
this.hasThumbSlot = !!this.host.querySelector('[slot="thumbs"]');
|
|
295
|
-
// if (this.enableCallToSlide) {
|
|
295
|
+
// if (this.enableCallToSlide) {
|
|
296
296
|
// salla.event.on('product-options::goToSlide', data => {
|
|
297
297
|
// const slideIndex = this.sliderWrapper.querySelector(`[data-img-id="${data}"]`).getAttribute('data-slid-index');
|
|
298
298
|
// this.slideTo(parseInt(slideIndex), 300, false);
|
|
@@ -340,14 +340,16 @@ const SallaSwiper = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
340
340
|
lazy: true,
|
|
341
341
|
on: {
|
|
342
342
|
// todo:: find better way for this workaround to show lazyLoad for duplicated slides, for some reason they are loaded but class not added.
|
|
343
|
-
afterInit: (slider) =>
|
|
343
|
+
afterInit: (slider) => {
|
|
344
344
|
var _a;
|
|
345
345
|
(_a = document.lazyLoadInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
this.loop && slider.slides.map(slide => {
|
|
347
|
+
if (!slide.classList.contains('swiper-slide-duplicate')) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
slide.querySelectorAll('img.lazy:not(.loaded)').forEach(img => img.classList.add('loaded'));
|
|
351
|
+
});
|
|
352
|
+
},
|
|
351
353
|
},
|
|
352
354
|
pagination: this.pagination ? {
|
|
353
355
|
el: this.host.id ? `#${this.host.id} .swiper-pagination` : '',
|
|
@@ -24736,7 +24736,7 @@ const SallaSwiper = class {
|
|
|
24736
24736
|
this.displayAllTitle = salla.lang.get('blocks.home.display_all');
|
|
24737
24737
|
});
|
|
24738
24738
|
this.hasThumbSlot = !!this.host.querySelector('[slot="thumbs"]');
|
|
24739
|
-
// if (this.enableCallToSlide) {
|
|
24739
|
+
// if (this.enableCallToSlide) {
|
|
24740
24740
|
// salla.event.on('product-options::goToSlide', data => {
|
|
24741
24741
|
// const slideIndex = this.sliderWrapper.querySelector(`[data-img-id="${data}"]`).getAttribute('data-slid-index');
|
|
24742
24742
|
// this.slideTo(parseInt(slideIndex), 300, false);
|
|
@@ -24784,14 +24784,16 @@ const SallaSwiper = class {
|
|
|
24784
24784
|
lazy: true,
|
|
24785
24785
|
on: {
|
|
24786
24786
|
// todo:: find better way for this workaround to show lazyLoad for duplicated slides, for some reason they are loaded but class not added.
|
|
24787
|
-
afterInit: (slider) =>
|
|
24787
|
+
afterInit: (slider) => {
|
|
24788
24788
|
var _a;
|
|
24789
24789
|
(_a = document.lazyLoadInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
24790
|
+
this.loop && slider.slides.map(slide => {
|
|
24791
|
+
if (!slide.classList.contains('swiper-slide-duplicate')) {
|
|
24792
|
+
return;
|
|
24793
|
+
}
|
|
24794
|
+
slide.querySelectorAll('img.lazy:not(.loaded)').forEach(img => img.classList.add('loaded'));
|
|
24795
|
+
});
|
|
24796
|
+
},
|
|
24795
24797
|
},
|
|
24796
24798
|
pagination: this.pagination ? {
|
|
24797
24799
|
el: this.host.id ? `#${this.host.id} .swiper-pagination` : '',
|