@asante-org/atlascopco-vt-litesitegenerator 3.0.30 → 3.0.32
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/index.esm.js +27 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +20 -6
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/dist/index.scss +20 -6
- package/dist/src/components/lsg/LsgCarousel/LsgCarousel.stories.d.ts +3 -0
- package/dist/src/components/lsg/LsgCarousel/LsgCarouselController.d.ts +7 -0
- package/dist/themes/theme-1.css +10 -3
- package/dist/themes/theme-1.css.map +1 -1
- package/dist/themes/theme-1.js +30 -5
- package/dist/themes/theme-1.js.map +1 -1
- package/dist/themes/theme-2.css +10 -3
- package/dist/themes/theme-2.css.map +1 -1
- package/dist/themes/theme-2.js +30 -5
- package/dist/themes/theme-2.js.map +1 -1
- package/dist/themes/theme-3.css +10 -3
- package/dist/themes/theme-3.css.map +1 -1
- package/dist/themes/theme-3.js +30 -5
- package/dist/themes/theme-3.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2065,13 +2065,29 @@ var LsgCarouselController = /** @class */function () {
|
|
|
2065
2065
|
var _this = this;
|
|
2066
2066
|
var _a, _b, _c, _d;
|
|
2067
2067
|
this.embla = null;
|
|
2068
|
+
/**
|
|
2069
|
+
* Embla automatically falls back to non-looping mode when there is not enough
|
|
2070
|
+
* slide content to create a safe loop (most noticeable with two-up layouts and
|
|
2071
|
+
* only 2–3 authored items). Keep the arrow contract cyclic in that fallback:
|
|
2072
|
+
* when there is no native previous snap, jump to the final authored snap.
|
|
2073
|
+
*/
|
|
2068
2074
|
this.scrollPrev = function () {
|
|
2069
|
-
|
|
2070
|
-
(
|
|
2075
|
+
if (!_this.embla) return;
|
|
2076
|
+
if (_this.embla.canScrollPrev()) {
|
|
2077
|
+
_this.embla.scrollPrev();
|
|
2078
|
+
return;
|
|
2079
|
+
}
|
|
2080
|
+
var lastSnap = _this.embla.scrollSnapList().length - 1;
|
|
2081
|
+
if (lastSnap >= 0) _this.embla.scrollTo(lastSnap);
|
|
2071
2082
|
};
|
|
2083
|
+
/** See `scrollPrev` for why the explicit wrap fallback is required. */
|
|
2072
2084
|
this.scrollNext = function () {
|
|
2073
|
-
|
|
2074
|
-
(
|
|
2085
|
+
if (!_this.embla) return;
|
|
2086
|
+
if (_this.embla.canScrollNext()) {
|
|
2087
|
+
_this.embla.scrollNext();
|
|
2088
|
+
return;
|
|
2089
|
+
}
|
|
2090
|
+
if (_this.embla.scrollSnapList().length > 0) _this.embla.scrollTo(0);
|
|
2075
2091
|
};
|
|
2076
2092
|
this.syncSelectedState = function () {
|
|
2077
2093
|
var _a, _b;
|
|
@@ -2086,10 +2102,15 @@ var LsgCarouselController = /** @class */function () {
|
|
|
2086
2102
|
this.paginationBtns = elements.paginationBtns ? Array.from(elements.paginationBtns) : [];
|
|
2087
2103
|
this.embla = EmblaCarousel(viewport, {
|
|
2088
2104
|
align: "start",
|
|
2089
|
-
|
|
2105
|
+
// Every authored media item owns a pagination dot. `trimSnaps` can remove
|
|
2106
|
+
// the final snap when two-up/peek layouts do not have enough overflow,
|
|
2107
|
+
// leaving the last authored item only partially reachable. Keep all snaps
|
|
2108
|
+
// so dot/item indexes stay 1:1 for 2, 3, 4, ... media items.
|
|
2109
|
+
containScroll: false,
|
|
2090
2110
|
direction: (_a = options.direction) !== null && _a !== void 0 ? _a : "ltr",
|
|
2091
2111
|
loop: (_b = options.loop) !== null && _b !== void 0 ? _b : true,
|
|
2092
|
-
skipSnaps: false
|
|
2112
|
+
skipSnaps: false,
|
|
2113
|
+
slidesToScroll: 1
|
|
2093
2114
|
});
|
|
2094
2115
|
this.paginationHandlers = this.paginationBtns.map(function (_, index) {
|
|
2095
2116
|
return function () {
|