gent_styleguide 7.2.3 → 7.2.5
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/build/css/main.css +1 -1
- package/build/css/styleguide.css +1 -1
- package/build/styleguide/fonts/gent-icons-v7.eot +0 -0
- package/build/styleguide/fonts/gent-icons-v7.svg +146 -146
- package/build/styleguide/fonts/gent-icons-v7.ttf +0 -0
- package/build/styleguide/fonts/gent-icons-v7.woff +0 -0
- package/build/styleguide/fonts/gent-icons-v7.woff2 +0 -0
- package/build/styleguide/sass/11-base/fonts/_icons.scss +172 -172
- package/build/styleguide/sass/31-molecules/partner-block/_partner-block.scss +8 -1
- package/build/styleguide/sass/31-molecules/teaser/_teaser.scss +51 -0
- package/build/styleguide/vendor/swiper/modules/a11y-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/a11y.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/a11y.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/a11y.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/a11y.mjs +5 -10
- package/build/styleguide/vendor/swiper/modules/autoplay-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/autoplay.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/autoplay.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/autoplay.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/autoplay.mjs +17 -14
- package/build/styleguide/vendor/swiper/modules/controller-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/controller.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-cards-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-cards.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-coverflow-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-coverflow.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-creative-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-creative.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-cube-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-cube.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-fade-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-fade.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-flip-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/effect-flip.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/free-mode-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/free-mode.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/grid-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/grid.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/grid.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/grid.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/grid.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/hash-navigation-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/hash-navigation.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/history-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/history.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/keyboard-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/keyboard.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/keyboard.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/keyboard.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/keyboard.mjs +7 -5
- package/build/styleguide/vendor/swiper/modules/manipulation-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/manipulation.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/mousewheel-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/mousewheel.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/navigation-element.css +26 -6
- package/build/styleguide/vendor/swiper/modules/navigation-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/navigation-element.min.css +1 -1
- package/build/styleguide/vendor/swiper/modules/navigation.css +7 -0
- package/build/styleguide/vendor/swiper/modules/navigation.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/navigation.min.css +1 -1
- package/build/styleguide/vendor/swiper/modules/pagination-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/pagination.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/parallax-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/parallax.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/scrollbar-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/scrollbar.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/thumbs-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/thumbs.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/thumbs.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/thumbs.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/thumbs.mjs +23 -4
- package/build/styleguide/vendor/swiper/modules/virtual-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/virtual.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/zoom-element.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/zoom.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/modules/zoom.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/modules/zoom.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/modules/zoom.mjs +2 -0
- package/build/styleguide/vendor/swiper/package.json +206 -56
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/classes-to-selector.mjs +2 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/swiper-core.mjs +69 -11
- package/build/styleguide/vendor/swiper/shared/update-swiper.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/update-swiper.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/update-swiper.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.min.mjs +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/shared/utils.mjs +1 -2
- package/build/styleguide/vendor/swiper/swiper-bundle.css +24 -3
- package/build/styleguide/vendor/swiper/swiper-bundle.css.d.ts +1 -0
- package/build/styleguide/vendor/swiper/swiper-bundle.js +133 -54
- package/build/styleguide/vendor/swiper/swiper-bundle.min.css +4 -4
- package/build/styleguide/vendor/swiper/swiper-bundle.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-bundle.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-bundle.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-bundle.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-effect-utils.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-effect-utils.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper-element-bundle.js +140 -61
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.mjs +4 -4
- package/build/styleguide/vendor/swiper/swiper-element-bundle.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element-bundle.mjs +6 -6
- package/build/styleguide/vendor/swiper/swiper-element.d.ts +15 -15
- package/build/styleguide/vendor/swiper/swiper-element.js +80 -23
- package/build/styleguide/vendor/swiper/swiper-element.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper-element.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element.min.mjs +4 -4
- package/build/styleguide/vendor/swiper/swiper-element.min.mjs.map +1 -1
- package/build/styleguide/vendor/swiper/swiper-element.mjs +6 -6
- package/build/styleguide/vendor/swiper/swiper-react.d.ts +16 -15
- package/build/styleguide/vendor/swiper/swiper-react.mjs +12 -5
- package/build/styleguide/vendor/swiper/swiper-vue.d.ts +19 -15
- package/build/styleguide/vendor/swiper/swiper-vue.mjs +11 -5
- package/build/styleguide/vendor/swiper/swiper.css +17 -3
- package/build/styleguide/vendor/swiper/swiper.css.d.ts +50 -0
- package/build/styleguide/vendor/swiper/swiper.js +73 -16
- package/build/styleguide/vendor/swiper/swiper.min.css +4 -4
- package/build/styleguide/vendor/swiper/swiper.min.js +4 -4
- package/build/styleguide/vendor/swiper/swiper.min.js.map +1 -1
- package/build/styleguide/vendor/swiper/swiper.min.mjs +3 -3
- package/build/styleguide/vendor/swiper/swiper.mjs +3 -3
- package/build/styleguide/vendor/swiper/types/modules/keyboard.d.ts +6 -0
- package/build/styleguide/vendor/swiper/types/modules/thumbs.d.ts +1 -1
- package/build/styleguide/vendor/swiper/types/swiper-options.d.ts +12 -3
- package/package.json +9 -5
|
@@ -362,6 +362,57 @@
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
&.teaser--with--address{
|
|
366
|
+
.content__second {
|
|
367
|
+
@include theme('background-color', 'color-none');
|
|
368
|
+
|
|
369
|
+
position: static;
|
|
370
|
+
padding: 20px 60px 20px 20px;
|
|
371
|
+
|
|
372
|
+
@include phablet {
|
|
373
|
+
padding: 30px 60px 30px 30px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
h3 {
|
|
377
|
+
display: flex;
|
|
378
|
+
align-items: center;
|
|
379
|
+
margin: 10px 0;
|
|
380
|
+
|
|
381
|
+
@include phablet {
|
|
382
|
+
display: block;
|
|
383
|
+
height: auto;
|
|
384
|
+
margin: 0 15px 20px 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
span {
|
|
388
|
+
padding: 0;
|
|
389
|
+
background-color: transparent;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
p,
|
|
394
|
+
.opening-hours-accordion {
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.teaser-links {
|
|
399
|
+
display: block;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.read-more {
|
|
403
|
+
@include read-more-icon-link;
|
|
404
|
+
|
|
405
|
+
position: absolute;
|
|
406
|
+
right: 0;
|
|
407
|
+
bottom: 0;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
a.teaser-overlay-link {
|
|
412
|
+
top: 0;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
365
416
|
&.teaser--inverted {
|
|
366
417
|
.content__second {
|
|
367
418
|
@include theme('background-color', 'color-tertiary-light');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{c as classesToSelector}from"../shared/classes-to-selector.min.mjs";import{c as createElement,j as elementIndex,m as makeElementsArray,s as setInnerHTML}from"../shared/utils.min.mjs";function A11y({swiper:e,extendParams:a,on:t}){a({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let n,
|
|
1
|
+
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";import{c as classesToSelector}from"../shared/classes-to-selector.min.mjs";import{c as createElement,j as elementIndex,m as makeElementsArray,s as setInnerHTML}from"../shared/utils.min.mjs";function A11y({swiper:e,extendParams:a,on:t}){a({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let i,n,s=null,r=(new Date).getTime();function l(e){const a=s;0!==a.length&&setInnerHTML(a,e)}function o(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function d(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function c(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("role",a)})}function p(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-roledescription",a)})}function m(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-label",a)})}function g(e){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function u(e){(e=makeElementsArray(e)).forEach(e=>{e.removeAttribute("aria-disabled")})}function E(a){if(13!==a.keyCode&&32!==a.keyCode)return;const t=e.params.a11y,i=a.target;if(!e.pagination||!e.pagination.el||i!==e.pagination.el&&!e.pagination.el.contains(a.target)||a.target.matches(classesToSelector(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const a=makeElementsArray(e.navigation.prevEl);makeElementsArray(e.navigation.nextEl).includes(i)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(t.lastSlideMessage):l(t.nextSlideMessage)),a.includes(i)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(t.firstSlideMessage):l(t.prevSlideMessage))}e.pagination&&i.matches(classesToSelector(e.params.pagination.bulletClass))&&i.click()}}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function v(){return f()&&e.params.pagination.clickable}const b=(e,a,t)=>{o(e),"BUTTON"!==e.tagName&&(c(e,"button"),e.addEventListener("keydown",E)),m(e,t)},y=a=>{n&&n!==a.target&&!n.contains(a.target)&&(i=!0),e.a11y.clicked=!0},h=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},A=e=>{r=(new Date).getTime()},k=a=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus)return;if((new Date).getTime()-r<100)return;const t=a.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!t||!e.slides.includes(t))return;n=t;const s=e.virtual&&e.params.virtual.enabled,l=(s?parseInt(t.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(t))===e.activeIndex,o=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(t);l||o||a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(t.getAttribute("data-swiper-slide-index"))),0):s?e.slideTo(e.getSlideIndexWhenGrid(parseInt(t.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(t)),0),i=!1)}))},x=()=>{const a=e.params.a11y;a.itemRoleDescriptionMessage&&p(e.slides,a.itemRoleDescriptionMessage),a.slideRole&&c(e.slides,a.slideRole);const t=e.slides.length;a.slideLabelMessage&&e.slides.forEach((i,n)=>{const s=e.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):n;m(i,a.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,t))})},M=()=>{const a=e.params.a11y;e.el.append(s);const t=e.el;a.containerRoleDescriptionMessage&&p(t,a.containerRoleDescriptionMessage),a.containerMessage&&m(t,a.containerMessage),a.containerRole&&c(t,a.containerRole);const i=e.wrapperEl,n=a.id||i.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;var r;if(r=n,makeElementsArray(i).forEach(e=>{e.setAttribute("id",r)}),a.wrapperLiveRegion){!function(e,a){(e=makeElementsArray(e)).forEach(e=>{e.setAttribute("aria-live",a)})}(i,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite")}x();let{nextEl:l,prevEl:o}=e.navigation?e.navigation:{};if(l=makeElementsArray(l),o=makeElementsArray(o),l&&l.forEach(e=>b(e,0,a.nextSlideMessage)),o&&o.forEach(e=>b(e,0,a.prevSlideMessage)),v()){makeElementsArray(e.pagination.el).forEach(e=>{e.addEventListener("keydown",E)})}getDocument().addEventListener("visibilitychange",A),e.el.addEventListener("focus",k,!0),e.el.addEventListener("pointerdown",y,!0),e.el.addEventListener("pointerup",h,!0)};t("beforeInit",()=>{s=createElement("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),t("afterInit",()=>{e.params.a11y.enabled&&M()}),t("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&x()}),t("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:a,prevEl:t}=e.navigation;t&&(e.isBeginning?(g(t),d(t)):(u(t),o(t))),a&&(e.isEnd?(g(a),d(a)):(u(a),o(a)))}()}),t("paginationUpdate",()=>{e.params.a11y.enabled&&function(){const a=e.params.a11y;f()&&e.pagination.bullets.forEach(t=>{e.params.pagination.clickable&&(o(t),e.params.pagination.renderBullet||(c(t,"button"),m(t,a.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(t)+1)))),t.matches(classesToSelector(e.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}()}),t("destroy",()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:a,prevEl:t}=e.navigation?e.navigation:{};a=makeElementsArray(a),t=makeElementsArray(t),a&&a.forEach(e=>e.removeEventListener("keydown",E)),t&&t.forEach(e=>e.removeEventListener("keydown",E)),v()&&makeElementsArray(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",E)});getDocument().removeEventListener("visibilitychange",A),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",k,!0),e.el.removeEventListener("pointerdown",y,!0),e.el.removeEventListener("pointerup",h,!0))}()})}export{A11y as default};
|
|
2
2
|
//# sourceMappingURL=a11y.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.mjs.mjs","names":["getDocument","classesToSelector","createElement","elementIndex","makeElementsArray","setInnerHTML","A11y","swiper","extendParams","on","a11y","enabled","notificationClass","prevSlideMessage","nextSlideMessage","firstSlideMessage","lastSlideMessage","paginationBulletMessage","slideLabelMessage","containerMessage","containerRoleDescriptionMessage","containerRole","itemRoleDescriptionMessage","slideRole","id","scrollOnFocus","wrapperLiveRegion","clicked","preventFocusHandler","focusTargetSlideEl","liveRegion","visibilityChangedTimestamp","Date","getTime","notify","message","notification","length","makeElFocusable","el","forEach","subEl","setAttribute","makeElNotFocusable","addElRole","role","addElRoleDescription","description","addElLabel","label","disableEl","enableEl","onEnterOrSpaceKey","e","keyCode","params","targetEl","target","pagination","contains","matches","bulletClass","navigation","prevEl","nextEl","prevEls","includes","isEnd","loop","slideNext","isBeginning","slidePrev","click","hasPagination","bullets","hasClickablePagination","clickable","initNavEl","wrapperId","tagName","addEventListener","
|
|
1
|
+
{"version":3,"file":"a11y.mjs.mjs","names":["getDocument","classesToSelector","createElement","elementIndex","makeElementsArray","setInnerHTML","A11y","swiper","extendParams","on","a11y","enabled","notificationClass","prevSlideMessage","nextSlideMessage","firstSlideMessage","lastSlideMessage","paginationBulletMessage","slideLabelMessage","containerMessage","containerRoleDescriptionMessage","containerRole","itemRoleDescriptionMessage","slideRole","id","scrollOnFocus","wrapperLiveRegion","clicked","preventFocusHandler","focusTargetSlideEl","liveRegion","visibilityChangedTimestamp","Date","getTime","notify","message","notification","length","makeElFocusable","el","forEach","subEl","setAttribute","makeElNotFocusable","addElRole","role","addElRoleDescription","description","addElLabel","label","disableEl","enableEl","removeAttribute","onEnterOrSpaceKey","e","keyCode","params","targetEl","target","pagination","contains","matches","bulletClass","navigation","prevEl","nextEl","prevEls","includes","isEnd","loop","slideNext","isBeginning","slidePrev","click","hasPagination","bullets","hasClickablePagination","clickable","initNavEl","wrapperId","tagName","addEventListener","handlePointerDown","handlePointerUp","requestAnimationFrame","destroyed","onVisibilityChange","handleFocus","slideEl","closest","slideClass","slides","isVirtual","virtual","isActive","parseInt","getAttribute","indexOf","activeIndex","isVisible","watchSlidesProgress","visibleSlides","sourceCapabilities","firesTouchEvents","isHorizontal","scrollLeft","scrollTop","slideToLoop","getSlideIndexWhenGrid","slideTo","initSlides","slidesLength","index","slideIndex","replace","init","append","containerEl","wrapperEl","size","repeat","Math","round","random","toString","getRandomNumber","live","addElLive","autoplay","rewind","updateNavigation","bulletEl","renderBullet","bulletActiveClass","updatePagination","remove","removeEventListener","destroy"],"sources":["0"],"mappings":"YAAcA,gBAAmB,+CACnBC,sBAAyB,oDACzBC,mBAAoBC,kBAAmBC,uBAAwBC,iBAAoB,0BAEjG,SAASC,MAAKC,OACZA,EAAMC,aACNA,EAAYC,GACZA,IAEAD,EAAa,CACXE,KAAM,CACJC,SAAS,EACTC,kBAAmB,sBACnBC,iBAAkB,iBAClBC,iBAAkB,aAClBC,kBAAmB,0BACnBC,iBAAkB,yBAClBC,wBAAyB,wBACzBC,kBAAmB,+BACnBC,iBAAkB,KAClBC,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BnF,EAAWmF,EAAU3E,EAAOvC,wBAAwBiG,QAAQ,gBAAiB/G,aAAagI,GAAY,MAGtGA,EAAStE,QAAQ5D,kBAAkBM,EAAOiD,OAAOG,WAAW0E,oBAC9DF,EAASzF,aAAa,eAAgB,QAEtCyF,EAAS/E,gBAAgB,iBAG/B,CAoLEkF,KAEF7H,EAAG,UAAW,KACPF,EAAOiD,OAAO9C,KAAKC,SArD1B,WACMmB,GAAYA,EAAWyG,SAC3B,IAAItE,OACFA,EAAMD,OACNA,GACEzD,EAAOwD,WAAaxD,EAAOwD,WAAa,CAAC,EAC7CE,EAAS7D,kBAAkB6D,GAC3BD,EAAS5D,kBAAkB4D,GACvBC,GACFA,EAAOzB,QAAQD,GAAMA,EAAGiG,oBAAoB,UAAWnF,IAErDW,GACFA,EAAOxB,QAAQD,GAAMA,EAAGiG,oBAAoB,UAAWnF,IAIrDuB,KACmBxE,kBAAkBG,EAAOoD,WAAWpB,IAC5CC,QAAQD,IACnBA,EAAGiG,oBAAoB,UAAWnF,KAGrBrD,cACRwI,oBAAoB,mBAAoBlD,GAE7C/E,EAAOgC,IAA2B,iBAAdhC,EAAOgC,KAC7BhC,EAAOgC,GAAGiG,oBAAoB,QAASjD,GAAa,GACpDhF,EAAOgC,GAAGiG,oBAAoB,cAAetD,GAAmB,GAChE3E,EAAOgC,GAAGiG,oBAAoB,YAAarD,GAAiB,GAEhE,CAwBEsD,IAEJ,QAESnI"}
|
|
@@ -67,12 +67,6 @@ function A11y({
|
|
|
67
67
|
subEl.setAttribute('aria-roledescription', description);
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
function addElControls(el, controls) {
|
|
71
|
-
el = makeElementsArray(el);
|
|
72
|
-
el.forEach(subEl => {
|
|
73
|
-
subEl.setAttribute('aria-controls', controls);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
70
|
function addElLabel(el, label) {
|
|
77
71
|
el = makeElementsArray(el);
|
|
78
72
|
el.forEach(subEl => {
|
|
@@ -100,7 +94,7 @@ function A11y({
|
|
|
100
94
|
function enableEl(el) {
|
|
101
95
|
el = makeElementsArray(el);
|
|
102
96
|
el.forEach(subEl => {
|
|
103
|
-
subEl.
|
|
97
|
+
subEl.removeAttribute('aria-disabled');
|
|
104
98
|
});
|
|
105
99
|
}
|
|
106
100
|
function onEnterOrSpaceKey(e) {
|
|
@@ -194,7 +188,6 @@ function A11y({
|
|
|
194
188
|
el.addEventListener('keydown', onEnterOrSpaceKey);
|
|
195
189
|
}
|
|
196
190
|
addElLabel(el, message);
|
|
197
|
-
addElControls(el, wrapperId);
|
|
198
191
|
};
|
|
199
192
|
const handlePointerDown = e => {
|
|
200
193
|
if (focusTargetSlideEl && focusTargetSlideEl !== e.target && !focusTargetSlideEl.contains(e.target)) {
|
|
@@ -221,7 +214,8 @@ function A11y({
|
|
|
221
214
|
const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);
|
|
222
215
|
if (!slideEl || !swiper.slides.includes(slideEl)) return;
|
|
223
216
|
focusTargetSlideEl = slideEl;
|
|
224
|
-
const
|
|
217
|
+
const isVirtual = swiper.virtual && swiper.params.virtual.enabled;
|
|
218
|
+
const isActive = (isVirtual ? parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10) : swiper.slides.indexOf(slideEl)) === swiper.activeIndex;
|
|
225
219
|
const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);
|
|
226
220
|
if (isActive || isVisible) return;
|
|
227
221
|
if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;
|
|
@@ -234,6 +228,8 @@ function A11y({
|
|
|
234
228
|
if (preventFocusHandler) return;
|
|
235
229
|
if (swiper.params.loop) {
|
|
236
230
|
swiper.slideToLoop(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute('data-swiper-slide-index'))), 0);
|
|
231
|
+
} else if (isVirtual) {
|
|
232
|
+
swiper.slideTo(swiper.getSlideIndexWhenGrid(parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10)), 0);
|
|
237
233
|
} else {
|
|
238
234
|
swiper.slideTo(swiper.getSlideIndexWhenGrid(swiper.slides.indexOf(slideEl)), 0);
|
|
239
235
|
}
|
|
@@ -311,7 +307,6 @@ function A11y({
|
|
|
311
307
|
const document = getDocument();
|
|
312
308
|
document.addEventListener('visibilitychange', onVisibilityChange);
|
|
313
309
|
swiper.el.addEventListener('focus', handleFocus, true);
|
|
314
|
-
swiper.el.addEventListener('focus', handleFocus, true);
|
|
315
310
|
swiper.el.addEventListener('pointerdown', handlePointerDown, true);
|
|
316
311
|
swiper.el.addEventListener('pointerup', handlePointerUp, true);
|
|
317
312
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";function Autoplay({swiper:e,extendParams:a,on:t,emit:n,params:i}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,l,p,u,d,y,m,c
|
|
1
|
+
import{g as getDocument}from"../shared/ssr-window.esm.min.mjs";function Autoplay({swiper:e,extendParams:a,on:t,emit:n,params:i}){let r,o;e.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,l,p,u,d,y,m,c=i&&i.autoplay?i.autoplay.delay:3e3,g=i&&i.autoplay?i.autoplay.delay:3e3,v=(new Date).getTime();function T(a){e&&!e.destroyed&&e.wrapperEl&&a.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",T),m||a.detail&&a.detail.bySwiperTouchMove||O())}const f=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=s,l=!1);const a=e.autoplay.paused?s:v+g-(new Date).getTime();e.autoplay.timeLeft=a,n("autoplayTimeLeft",a,a/c),o=requestAnimationFrame(()=>{f()})},w=()=>{let a=e.params.autoplay.delay;const t=(()=>{let a;if(a=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!a)return;return parseInt(a.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(t)&&t>0&&(a=t),a},b=a=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),f();let t=a;void 0===t&&(t=w(),c=t,g=t),s=t;const i=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),n("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,i,!0,!0),n("autoplay")),e.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame(()=>{b()})))};return t>0?(clearTimeout(r),r=setTimeout(()=>{l()},t)):requestAnimationFrame(()=>{l()}),t},E=()=>{v=(new Date).getTime(),e.autoplay.running=!0,b(),n("autoplayStart")},L=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),n("autoplayStop")},D=(a,t)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),a||(y=!0);const i=()=>{n("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",T):O()};if(e.autoplay.paused=!0,t)return void i();const o=s||e.params.autoplay.delay;s=o-((new Date).getTime()-v),e.isEnd&&s<0&&!e.params.loop||(s<0&&(s=0),i())},O=()=>{e.isEnd&&s<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=(new Date).getTime(),y?(y=!1,b(s)):b(),e.autoplay.paused=!1,n("autoplayResume"))},S=()=>{if(e.destroyed||!e.autoplay.running)return;const a=getDocument();"hidden"===a.visibilityState&&(y=!0,D(!0)),"visible"===a.visibilityState&&O()},M=a=>{"mouse"===a.pointerType&&(y=!0,m=!0,e.animating||e.autoplay.paused||D(!0))},h=a=>{"mouse"===a.pointerType&&(m=!1,e.autoplay.paused&&O())};t("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",h)),getDocument().addEventListener("visibilitychange",S),E())}),t("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",h)),getDocument().removeEventListener("visibilitychange",S),e.autoplay.running&&L()}),t("_freeModeStaticRelease",()=>{(u||y)&&O()}),t("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?L():D(!0,!0)}),t("beforeTransitionStart",(a,t,n)=>{!e.destroyed&&e.autoplay.running&&(n||!e.params.autoplay.disableOnInteraction?D(!0,!0):L())}),t("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?L():(p=!0,u=!1,y=!1,d=setTimeout(()=>{y=!0,u=!0,D(!0)},200)))}),t("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&p){if(clearTimeout(d),clearTimeout(r),e.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&e.params.cssMode&&O(),u=!1,p=!1}}),t("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(s=w(),c=w())}),Object.assign(e.autoplay,{start:E,stop:L,pause:D,resume:O})}export{Autoplay as default};
|
|
2
2
|
//# sourceMappingURL=autoplay.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoplay.mjs.mjs","names":["getDocument","Autoplay","swiper","extendParams","on","emit","params","timeout","raf","autoplay","running","paused","timeLeft","enabled","delay","waitForTransition","disableOnInteraction","stopOnLastSlide","reverseDirection","pauseOnMouseEnter","autoplayTimeLeft","wasPaused","isTouched","pausedByTouch","touchStartTimeout","
|
|
1
|
+
{"version":3,"file":"autoplay.mjs.mjs","names":["getDocument","Autoplay","swiper","extendParams","on","emit","params","timeout","raf","autoplay","running","paused","timeLeft","enabled","delay","waitForTransition","disableOnInteraction","stopOnLastSlide","reverseDirection","pauseOnMouseEnter","autoplayTimeLeft","wasPaused","isTouched","pausedByTouch","touchStartTimeout","pausedByInteraction","pausedByPointerEnter","autoplayDelayTotal","autoplayDelayCurrent","autoplayStartTime","Date","getTime","onTransitionEnd","e","destroyed","wrapperEl","target","removeEventListener","detail","bySwiperTouchMove","resume","calcTimeLeft","requestAnimationFrame","getTotalDelay","totalDelay","currentSlideDelay","activeSlideEl","virtual","slides","find","slideEl","classList","contains","activeIndex","parseInt","getAttribute","getSlideDelay","Number","isNaN","run","delayForce","cancelAnimationFrame","speed","proceed","isBeginning","loop","rewind","slidePrev","slideTo","length","isEnd","slideNext","cssMode","clearTimeout","setTimeout","start","stop","pause","internal","reset","addEventListener","onVisibilityChange","document","visibilityState","onPointerEnter","pointerType","animating","onPointerLeave","el","_s","Object","assign"],"sources":["0"],"mappings":"YAAcA,gBAAmB,mCAIjC,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,EAAIC,OACJA,IAkBA,IAAIC,EACAC,EAjBJN,EAAOO,SAAW,CAChBC,SAAS,EACTC,QAAQ,EACRC,SAAU,GAEZT,EAAa,CACXM,SAAU,CACRI,SAAS,EACTC,MAAO,IACPC,mBAAmB,EACnBC,sBAAsB,EACtBC,iBAAiB,EACjBC,kBAAkB,EAClBC,mBAAmB,KAKvB,IAEIC,EAEAC,EACAC,EACAC,EACAC,EACAC,EACAC,EATAC,EAAqBrB,GAAUA,EAAOG,SAAWH,EAAOG,SAASK,MAAQ,IACzEc,EAAuBtB,GAAUA,EAAOG,SAAW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B,CAACqF,EAAI3B,EAAOgB,MAClC5E,EAAOgC,WAAchC,EAAOO,SAASC,UACrCoE,IAAa5E,EAAOI,OAAOG,SAASO,qBACtC6D,GAAM,GAAM,GAEZD,OAGJxE,EAAG,kBAAmB,MAChBF,EAAOgC,WAAchC,EAAOO,SAASC,UACrCR,EAAOI,OAAOG,SAASO,qBACzB4D,KAGFtD,GAAY,EACZC,GAAgB,EAChBE,GAAsB,EACtBD,EAAoBkD,WAAW,KAC7BjD,GAAsB,EACtBF,GAAgB,EAChBsD,GAAM,IACL,SAELzE,EAAG,WAAY,KACb,IAAIF,EAAOgC,WAAchC,EAAOO,SAASC,SAAYY,EAArD,CAGA,GAFAmD,aAAajD,GACbiD,aAAalE,GACTL,EAAOI,OAAOG,SAASO,qBAGzB,OAFAO,GAAgB,OAChBD,GAAY,GAGVC,GAAiBrB,EAAOI,OAAOkE,SAAShC,IAC5CjB,GAAgB,EAChBD,GAAY,CAV0D,IAYxElB,EAAG,cAAe,MACZF,EAAOgC,WAAchC,EAAOO,SAASC,SACrCR,EAAOO,SAASE,SAClBS,EAAmBuB,IACnBhB,EAAqBgB,OAGzB+C,OAAOC,OAAOzF,EAAOO,SAAU,CAC7BkE,QACAC,OACAC,QACArC,UAEJ,QAESvC"}
|
|
@@ -35,7 +35,6 @@ function Autoplay({
|
|
|
35
35
|
let isTouched;
|
|
36
36
|
let pausedByTouch;
|
|
37
37
|
let touchStartTimeout;
|
|
38
|
-
let slideChanged;
|
|
39
38
|
let pausedByInteraction;
|
|
40
39
|
let pausedByPointerEnter;
|
|
41
40
|
function onTransitionEnd(e) {
|
|
@@ -73,18 +72,23 @@ function Autoplay({
|
|
|
73
72
|
const currentSlideDelay = parseInt(activeSlideEl.getAttribute('data-swiper-autoplay'), 10);
|
|
74
73
|
return currentSlideDelay;
|
|
75
74
|
};
|
|
75
|
+
const getTotalDelay = () => {
|
|
76
|
+
let totalDelay = swiper.params.autoplay.delay;
|
|
77
|
+
const currentSlideDelay = getSlideDelay();
|
|
78
|
+
if (!Number.isNaN(currentSlideDelay) && currentSlideDelay > 0) {
|
|
79
|
+
totalDelay = currentSlideDelay;
|
|
80
|
+
}
|
|
81
|
+
return totalDelay;
|
|
82
|
+
};
|
|
76
83
|
const run = delayForce => {
|
|
77
84
|
if (swiper.destroyed || !swiper.autoplay.running) return;
|
|
78
85
|
cancelAnimationFrame(raf);
|
|
79
86
|
calcTimeLeft();
|
|
80
|
-
let delay =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
delay = currentSlideDelay;
|
|
86
|
-
autoplayDelayTotal = currentSlideDelay;
|
|
87
|
-
autoplayDelayCurrent = currentSlideDelay;
|
|
87
|
+
let delay = delayForce;
|
|
88
|
+
if (typeof delay === 'undefined') {
|
|
89
|
+
delay = getTotalDelay();
|
|
90
|
+
autoplayDelayTotal = delay;
|
|
91
|
+
autoplayDelayCurrent = delay;
|
|
88
92
|
}
|
|
89
93
|
autoplayTimeLeft = delay;
|
|
90
94
|
const speed = swiper.params.speed;
|
|
@@ -156,10 +160,6 @@ function Autoplay({
|
|
|
156
160
|
};
|
|
157
161
|
swiper.autoplay.paused = true;
|
|
158
162
|
if (reset) {
|
|
159
|
-
if (slideChanged) {
|
|
160
|
-
autoplayTimeLeft = swiper.params.autoplay.delay;
|
|
161
|
-
}
|
|
162
|
-
slideChanged = false;
|
|
163
163
|
proceed();
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
@@ -290,7 +290,10 @@ function Autoplay({
|
|
|
290
290
|
});
|
|
291
291
|
on('slideChange', () => {
|
|
292
292
|
if (swiper.destroyed || !swiper.autoplay.running) return;
|
|
293
|
-
|
|
293
|
+
if (swiper.autoplay.paused) {
|
|
294
|
+
autoplayTimeLeft = getTotalDelay();
|
|
295
|
+
autoplayDelayTotal = getTotalDelay();
|
|
296
|
+
}
|
|
294
297
|
});
|
|
295
298
|
Object.assign(swiper.autoplay, {
|
|
296
299
|
start,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function Grid({swiper:e,extendParams:i,on:r}){let a,t,s,l;i({grid:{rows:1,fill:"column"}});const o=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};r("init",()=>{l=e.params.grid&&e.params.grid.rows>1}),r("update",()=>{const{params:i,el:r}=e,a=i.grid&&i.grid.rows>1;l&&!a?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),s=1,e.emitContainerClasses()):!l&&a&&(r.classList.add(`${i.containerModifierClass}grid`),"column"===i.grid.fill&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),l=a}),e.grid={initSlides:i=>{const{slidesPerView:r}=e.params,{rows:l,fill:o}=e.params.grid,n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:i.length;s=Math.floor(n/l),a=Math.floor(n/l)===n/l?n:Math.ceil(n/l)*l,"auto"!==r&&"row"===o&&(a=Math.max(a,r*l)),t=a/l},unsetSlides:()=>{e.slides&&e.slides.forEach(i=>{i.swiperSlideGridSet&&(i.style.height="",i.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(i,r,l)=>{const{slidesPerGroup:n}=e.params,d=o(),{rows:p,fill:c}=e.params.grid,g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:l.length;let u,h,m;if("row"===c&&n>1){const e=Math.floor(i/(n*p)),t=i-p*n*e,s=0===e?n:Math.min(Math.ceil((g-e*p*n)/p),n);m=Math.floor(t/s),h=t-m*s+e*n,u=h+m*a/p,r.style.order=u}else"column"===c?(h=Math.floor(i/p),m=i-h*p,(h>s||h===s&&m===p-1)&&(m+=1,m>=p&&(m=0,h+=1))):(m=Math.floor(i/t),h=i-m*t);r.row=m,r.column=h,r.style.height=`calc((100% - ${(p-1)*d}px) / ${p})`,r.style[e.getDirectionLabel("margin-top")]=0!==m?d&&`${d}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(i,r)=>{const{centeredSlides:t,roundLengths:s}=e.params,l=o(),{rows:n}=e.params.grid;if(e.virtualSize=(i+l)*a,e.virtualSize=Math.ceil(e.virtualSize/n)-l,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+l}px`),t){const i=[];for(let a=0;a<r.length;a+=1){let t=r[a];s&&(t=Math.floor(t)),r[a]<e.virtualSize+r[0]&&i.push(t)}r.splice(0,r.length),r.push(...i)}}}}export{Grid as default};
|
|
1
|
+
function Grid({swiper:e,extendParams:i,on:r}){let a,t,s,l;i({grid:{rows:1,fill:"column"}});const o=()=>{let i=e.params.spaceBetween;return"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*e.size:"string"==typeof i&&(i=parseFloat(i)),i};r("init",()=>{l=e.params.grid&&e.params.grid.rows>1}),r("update",()=>{const{params:i,el:r}=e,a=i.grid&&i.grid.rows>1;l&&!a?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),s=1,e.emitContainerClasses()):!l&&a&&(r.classList.add(`${i.containerModifierClass}grid`),"column"===i.grid.fill&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),l=a}),e.grid={initSlides:i=>{const{slidesPerView:r}=e.params,{rows:l,fill:o}=e.params.grid,n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:i.length;s=Math.floor(n/l),a=Math.floor(n/l)===n/l?n:Math.ceil(n/l)*l,"auto"!==r&&"row"===o&&(a=Math.max(a,Math.floor(r)*l)),t=a/l},unsetSlides:()=>{e.slides&&e.slides.forEach(i=>{i.swiperSlideGridSet&&(i.style.height="",i.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(i,r,l)=>{const{slidesPerGroup:n}=e.params,d=o(),{rows:p,fill:c}=e.params.grid,g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:l.length;let u,h,m;if("row"===c&&n>1){const e=Math.floor(i/(n*p)),t=i-p*n*e,s=0===e?n:Math.min(Math.ceil((g-e*p*n)/p),n);m=Math.floor(t/s),h=t-m*s+e*n,u=h+m*a/p,r.style.order=u}else"column"===c?(h=Math.floor(i/p),m=i-h*p,(h>s||h===s&&m===p-1)&&(m+=1,m>=p&&(m=0,h+=1))):(m=Math.floor(i/t),h=i-m*t);r.row=m,r.column=h,r.style.height=`calc((100% - ${(p-1)*d}px) / ${p})`,r.style[e.getDirectionLabel("margin-top")]=0!==m?d&&`${d}px`:"",r.swiperSlideGridSet=!0},updateWrapperSize:(i,r)=>{const{centeredSlides:t,roundLengths:s}=e.params,l=o(),{rows:n}=e.params.grid;if(e.virtualSize=(i+l)*a,e.virtualSize=Math.ceil(e.virtualSize/n)-l,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+l}px`),t){const i=[];for(let a=0;a<r.length;a+=1){let t=r[a];s&&(t=Math.floor(t)),r[a]<e.virtualSize+r[0]&&i.push(t)}r.splice(0,r.length),r.push(...i)}}}}export{Grid as default};
|
|
2
2
|
//# sourceMappingURL=grid.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.mjs.mjs","names":["Grid","swiper","extendParams","on","slidesNumberEvenToRows","slidesPerRow","numFullColumns","wasMultiRow","grid","rows","fill","getSpaceBetween","spaceBetween","params","indexOf","parseFloat","replace","size","el","isMultiRow","classList","remove","containerModifierClass","emitContainerClasses","add","initSlides","slides","slidesPerView","slidesLength","virtual","enabled","length","Math","floor","ceil","max","unsetSlides","forEach","slide","swiperSlideGridSet","style","height","getDirectionLabel","updateSlide","i","slidesPerGroup","newSlideOrderIndex","column","row","groupIndex","slideIndexInGroup","columnsInGroup","min","order","updateWrapperSize","slideSize","snapGrid","centeredSlides","roundLengths","virtualSize","cssMode","wrapperEl","newSlidesGrid","slidesGridItem","push","splice"],"sources":["0"],"mappings":"AAAA,SAASA,MAAKC,OACZA,EAAMC,aACNA,EAAYC,GACZA,IAQA,IAAIC,EACAC,EACAC,EACAC,EATJL,EAAa,CACXM,KAAM,CACJC,KAAM,EACNC,KAAM,YAOV,MAAMC,EAAkB,KACtB,IAAIC,EAAeX,EAAOY,OAAOD,aAMjC,MAL4B,iBAAjBA,GAA6BA,EAAaE,QAAQ,MAAQ,EACnEF,EAAeG,WAAWH,EAAaI,QAAQ,IAAK,KAAO,IAAMf,EAAOgB,KACvC,iBAAjBL,IAChBA,EAAeG,WAAWH,IAErBA,GAyHTT,EAAG,OAtBY,KACbI,EAAcN,EAAOY,OAAOL,MAAQP,EAAOY,OAAOL,KAAKC,KAAO,IAsBhEN,EAAG,SApBc,KACf,MAAMU,OACJA,EAAMK,GACNA,GACEjB,EACEkB,EAAaN,EAAOL,MAAQK,EAAOL,KAAKC,KAAO,EACjDF,IAAgBY,GAClBD,EAAGE,UAAUC,OAAO,GAAGR,EAAOS,6BAA8B,GAAGT,EAAOS,qCACtEhB,EAAiB,EACjBL,EAAOsB,yBACGhB,GAAeY,IACzBD,EAAGE,UAAUI,IAAI,GAAGX,EAAOS,8BACF,WAArBT,EAAOL,KAAKE,MACdQ,EAAGE,UAAUI,IAAI,GAAGX,EAAOS,qCAE7BrB,EAAOsB,wBAEThB,EAAcY,IAIhBlB,EAAOO,KAAO,CACZiB,WA1HiBC,IACjB,MAAMC,cACJA,GACE1B,EAAOY,QACLJ,KACJA,EAAIC,KACJA,GACET,EAAOY,OAAOL,KACZoB,EAAe3B,EAAO4B,SAAW5B,EAAOY,OAAOgB,QAAQC,QAAU7B,EAAO4B,QAAQH,OAAOK,OAASL,EAAOK,OAC7GzB,EAAiB0B,KAAKC,MAAML,EAAenB,GAEzCL,EADE4B,KAAKC,MAAML,EAAenB,KAAUmB,EAAenB,EAC5BmB,EAEAI,KAAKE,KAAKN,EAAenB,GAAQA,EAEtC,SAAlBkB,GAAqC,QAATjB,IAC9BN,EAAyB4B,KAAKG,IAAI/B,
|
|
1
|
+
{"version":3,"file":"grid.mjs.mjs","names":["Grid","swiper","extendParams","on","slidesNumberEvenToRows","slidesPerRow","numFullColumns","wasMultiRow","grid","rows","fill","getSpaceBetween","spaceBetween","params","indexOf","parseFloat","replace","size","el","isMultiRow","classList","remove","containerModifierClass","emitContainerClasses","add","initSlides","slides","slidesPerView","slidesLength","virtual","enabled","length","Math","floor","ceil","max","unsetSlides","forEach","slide","swiperSlideGridSet","style","height","getDirectionLabel","updateSlide","i","slidesPerGroup","newSlideOrderIndex","column","row","groupIndex","slideIndexInGroup","columnsInGroup","min","order","updateWrapperSize","slideSize","snapGrid","centeredSlides","roundLengths","virtualSize","cssMode","wrapperEl","newSlidesGrid","slidesGridItem","push","splice"],"sources":["0"],"mappings":"AAAA,SAASA,MAAKC,OACZA,EAAMC,aACNA,EAAYC,GACZA,IAQA,IAAIC,EACAC,EACAC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AAgB,GAAGA,MAAmB,GACxG0B,EAAMC,oBAAqB,GAuD3Be,kBArDwB,CAACC,EAAWC,KACpC,MAAMC,eACJA,EAAcC,aACdA,GACEzD,EAAOY,OACLD,EAAeD,KACfF,KACJA,GACER,EAAOY,OAAOL,KAMlB,GALAP,EAAO0D,aAAeJ,EAAY3C,GAAgBR,EAClDH,EAAO0D,YAAc3B,KAAKE,KAAKjC,EAAO0D,YAAclD,GAAQG,EACvDX,EAAOY,OAAO+C,UACjB3D,EAAO4D,UAAUrB,MAAMvC,EAAOyC,kBAAkB,UAAY,GAAGzC,EAAO0D,YAAc/C,OAElF6C,EAAgB,CAClB,MAAMK,EAAgB,GACtB,IAAK,IAAIlB,EAAI,EAAGA,EAAIY,EAASzB,OAAQa,GAAK,EAAG,CAC3C,IAAImB,EAAiBP,EAASZ,GAC1Bc,IAAcK,EAAiB/B,KAAKC,MAAM8B,IAC1CP,EAASZ,GAAK3C,EAAO0D,YAAcH,EAAS,IAAIM,EAAcE,KAAKD,EACzE,CACAP,EAASS,OAAO,EAAGT,EAASzB,QAC5ByB,EAASQ,QAAQF,EACnB,GAgCJ,QAES9D"}
|
|
@@ -38,7 +38,7 @@ function Grid({
|
|
|
38
38
|
slidesNumberEvenToRows = Math.ceil(slidesLength / rows) * rows;
|
|
39
39
|
}
|
|
40
40
|
if (slidesPerView !== 'auto' && fill === 'row') {
|
|
41
|
-
slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, slidesPerView * rows);
|
|
41
|
+
slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, Math.floor(slidesPerView) * rows);
|
|
42
42
|
}
|
|
43
43
|
slidesPerRow = slidesNumberEvenToRows / rows;
|
|
44
44
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as getDocument,a as getWindow}from"../shared/ssr-window.esm.min.mjs";import{d as elementParents,f as elementOffset}from"../shared/utils.min.mjs";function Keyboard({swiper:e,extendParams:t,on:n,emit:a}){const r=getDocument(),
|
|
1
|
+
import{g as getDocument,a as getWindow}from"../shared/ssr-window.esm.min.mjs";import{d as elementParents,f as elementOffset}from"../shared/utils.min.mjs";function Keyboard({swiper:e,extendParams:t,on:n,emit:a}){const r=getDocument(),i=getWindow();function l(t){if(!e.enabled)return;const{rtlTranslate:n}=e;let l=t;l.originalEvent&&(l=l.originalEvent);const o=l.keyCode||l.charCode,s=e.params.keyboard.pageUpDown,d=s&&33===o,f=s&&34===o,m=37===o,c=39===o,p=38===o,b=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&c||e.isVertical()&&b||f))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&m||e.isVertical()&&p||d))return!1;if(l.shiftKey||l.altKey||l.ctrlKey||l.metaKey)return;if(r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(d||f||m||c||p||b)){let t=!1;if(elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===elementParents(e.el,`.${e.params.slideActiveClass}`).length)return;const a=e.el,r=a.clientWidth,l=a.clientHeight,o=i.innerWidth,s=i.innerHeight,d=elementOffset(a);n&&(d.left-=a.scrollLeft);const f=[[d.left,d.top],[d.left+r,d.top],[d.left,d.top+l],[d.left+r,d.top+l]];for(let e=0;e<f.length;e+=1){const n=f[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=s){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}const u=e.params.keyboard.speed;e.isHorizontal()?((d||f||m||c)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),((f||c)&&!n||(d||m)&&n)&&e.slideNext(u),((d||m)&&!n||(f||c)&&n)&&e.slidePrev(u)):((d||f||p||b)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),(f||b)&&e.slideNext(u),(d||p)&&e.slidePrev(u)),a("keyPress",o)}function o(){e.keyboard.enabled||(r.addEventListener("keydown",l),e.keyboard.enabled=!0)}function s(){e.keyboard.enabled&&(r.removeEventListener("keydown",l),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),n("init",()=>{e.params.keyboard.enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&s()}),Object.assign(e.keyboard,{enable:o,disable:s})}export{Keyboard as default};
|
|
2
2
|
//# sourceMappingURL=keyboard.min.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.mjs.mjs","names":["getDocument","getWindow","elementParents","elementOffset","Keyboard","swiper","extendParams","on","emit","document","window","handle","event","enabled","rtlTranslate","rtl","e","originalEvent","kc","keyCode","charCode","pageUpDown","params","keyboard","isPageUp","isPageDown","isArrowLeft","isArrowRight","isArrowUp","isArrowDown","allowSlideNext","isHorizontal","isVertical","allowSlidePrev","shiftKey","altKey","ctrlKey","metaKey","activeElement","isContentEditable","nodeName","toLowerCase","onlyInViewport","inView","el","slideClass","length","slideActiveClass","swiperWidth","clientWidth","swiperHeight","clientHeight","windowWidth","innerWidth","windowHeight","innerHeight","swiperOffset","left","scrollLeft","swiperCoord","top","i","point","preventDefault","returnValue","slideNext","slidePrev","enable","addEventListener","disable","removeEventListener","Object","assign"],"sources":["0"],"mappings":"YAAcA,iBAAkBC,cAAiB,+CACnCC,oBAAqBC,kBAAqB,0BAGxD,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,IAEA,MAAMC,EAAWT,cACXU,EAAST,
|
|
1
|
+
{"version":3,"file":"keyboard.mjs.mjs","names":["getDocument","getWindow","elementParents","elementOffset","Keyboard","swiper","extendParams","on","emit","document","window","handle","event","enabled","rtlTranslate","rtl","e","originalEvent","kc","keyCode","charCode","pageUpDown","params","keyboard","isPageUp","isPageDown","isArrowLeft","isArrowRight","isArrowUp","isArrowDown","allowSlideNext","isHorizontal","isVertical","allowSlidePrev","shiftKey","altKey","ctrlKey","metaKey","activeElement","isContentEditable","nodeName","toLowerCase","onlyInViewport","inView","el","slideClass","length","slideActiveClass","swiperWidth","clientWidth","swiperHeight","clientHeight","windowWidth","innerWidth","windowHeight","innerHeight","swiperOffset","left","scrollLeft","swiperCoord","top","i","point","speed","preventDefault","returnValue","slideNext","slidePrev","enable","addEventListener","disable","removeEventListener","undefined","Object","assign"],"sources":["0"],"mappings":"YAAcA,iBAAkBC,cAAiB,+CACnCC,oBAAqBC,kBAAqB,0BAGxD,SAASC,UAASC,OAChBA,EAAMC,aACNA,EAAYC,GACZA,EAAEC,KACFA,IAEA,MAAMC,EAAWT,cACXU,EAAST,YAYf,SAASU,EAAOC,GACd,IAAKP,EAAOQ,QAAS,OACrB,MACEC,aAAcC,GACZV,EACJ,IAAIW,EAAIJ,EACJI,EAAEC,gBAAeD,EAAIA,EAAEC,eAC3B,MAAMC,EAAKF,EAAEG,SAAWH,EAAEI,SACpBC,EAAahB,EAAOiB,OAAOC,SAASF,WACpCG,EAAWH,GAAqB,KAAPH,EACzBO,EAAaJ,GAAqB,KAAPH,EAC3BQ,EAAqB,KAAPR,EACdS,EAAsB,KAAPT,EACfU,EAAmB,KAAPV,EACZW,EAAqB,KAAPX,EAEpB,IAAKb,EAAOyB,iBAAmBzB,EAAO0B,gBAAkBJ,GAAgBtB,EAAO2B,cAAgBH,GAAeJ,GAC5G,OAAO,EAET,IAAKpB,EAAO4B,iBAAmB5B,EAAO0B,gBAAkBL,GAAerB,EAAO2B,cAAgBJ,GAAaJ,GACzG,OAAO,EAET,GAAIR,EAAEkB,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C,GAAeC,KACvCX,EAAEgD,eAAgBhD,EAAEgD,iBAAsBhD,EAAEiD,aAAc,KAE3DxC,GAAcE,KAAkBZ,IAAQS,GAAYE,IAAgBX,IAAKV,EAAO6D,UAAUH,KAC1FvC,GAAYE,KAAiBX,IAAQU,GAAcE,IAAiBZ,IAAKV,EAAO8D,UAAUJ,MAE3FvC,GAAYC,GAAcG,GAAaC,KACrCb,EAAEgD,eAAgBhD,EAAEgD,iBAAsBhD,EAAEiD,aAAc,IAE5DxC,GAAcI,IAAaxB,EAAO6D,UAAUH,IAC5CvC,GAAYI,IAAWvB,EAAO8D,UAAUJ,IAE9CvD,EAAK,WAAYU,EAEnB,CACA,SAASkD,IACH/D,EAAOkB,SAASV,UACpBJ,EAAS4D,iBAAiB,UAAW1D,GACrCN,EAAOkB,SAASV,SAAU,EAC5B,CACA,SAASyD,IACFjE,EAAOkB,SAASV,UACrBJ,EAAS8D,oBAAoB,UAAW5D,GACxCN,EAAOkB,SAASV,SAAU,EAC5B,CAxFAR,EAAOkB,SAAW,CAChBV,SAAS,GAEXP,EAAa,CACXiB,SAAU,CACRV,SAAS,EACT6B,gBAAgB,EAChBrB,YAAY,EACZ0C,WAAOS,KAiFXjE,EAAG,OAAQ,KACLF,EAAOiB,OAAOC,SAASV,SACzBuD,MAGJ7D,EAAG,UAAW,KACRF,EAAOkB,SAASV,SAClByD,MAGJG,OAAOC,OAAOrE,EAAOkB,SAAU,CAC7B6C,SACAE,WAEJ,QAESlE"}
|
|
@@ -17,7 +17,8 @@ function Keyboard({
|
|
|
17
17
|
keyboard: {
|
|
18
18
|
enabled: false,
|
|
19
19
|
onlyInViewport: true,
|
|
20
|
-
pageUpDown: true
|
|
20
|
+
pageUpDown: true,
|
|
21
|
+
speed: undefined
|
|
21
22
|
}
|
|
22
23
|
});
|
|
23
24
|
function handle(event) {
|
|
@@ -71,18 +72,19 @@ function Keyboard({
|
|
|
71
72
|
}
|
|
72
73
|
if (!inView) return undefined;
|
|
73
74
|
}
|
|
75
|
+
const speed = swiper.params.keyboard.speed;
|
|
74
76
|
if (swiper.isHorizontal()) {
|
|
75
77
|
if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {
|
|
76
78
|
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
77
79
|
}
|
|
78
|
-
if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();
|
|
79
|
-
if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();
|
|
80
|
+
if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext(speed);
|
|
81
|
+
if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev(speed);
|
|
80
82
|
} else {
|
|
81
83
|
if (isPageUp || isPageDown || isArrowUp || isArrowDown) {
|
|
82
84
|
if (e.preventDefault) e.preventDefault();else e.returnValue = false;
|
|
83
85
|
}
|
|
84
|
-
if (isPageDown || isArrowDown) swiper.slideNext();
|
|
85
|
-
if (isPageUp || isArrowUp) swiper.slidePrev();
|
|
86
|
+
if (isPageDown || isArrowDown) swiper.slideNext(speed);
|
|
87
|
+
if (isPageUp || isArrowUp) swiper.slidePrev(speed);
|
|
86
88
|
}
|
|
87
89
|
emit('keyPress', kc);
|
|
88
90
|
return undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|