code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
function disableDraggable() {
if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
events('off');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disableDraggable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function init() {
const {
scrollbar,
$el: $swiperEl
} = swiper;
swiper.params.scrollbar = createElementIfNotDefined(swiper, swiper.originalParams.scrollbar, swiper.params.scrollbar, {
el: 'swiper-scrollbar'
});
const params = swiper.params.scrollbar;
if (!params.el) return;
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function destroy() {
const params = swiper.params.scrollbar;
const $el = swiper.scrollbar.$el;
if ($el) {
$el.removeClass(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
}
disableDraggable();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | destroy | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
enable = () => {
swiper.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);
if (swiper.scrollbar.$el) {
swiper.scrollbar.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);
}
init();
updateSize();
setTranslate();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | enable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
enable = () => {
swiper.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);
if (swiper.scrollbar.$el) {
swiper.scrollbar.$el.removeClass(swiper.params.scrollbar.scrollbarDisabledClass);
}
init();
updateSize();
setTranslate();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | enable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
disable = () => {
swiper.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);
if (swiper.scrollbar.$el) {
swiper.scrollbar.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);
}
destroy();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
disable = () => {
swiper.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);
if (swiper.scrollbar.$el) {
swiper.scrollbar.$el.addClass(swiper.params.scrollbar.scrollbarDisabledClass);
}
destroy();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function Parallax(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
parallax: {
enabled: false
}
});
const setTransform = (el, progress) => {
const {
rtl
} = swiper;
const $el = $(el);
const rtlFactor = rtl ? -1 : 1;
const p = $el.attr('data-s... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | Parallax | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransform = (el, progress) => {
const {
rtl
} = swiper;
const $el = $(el);
const rtlFactor = rtl ? -1 : 1;
const p = $el.attr('data-swiper-parallax') || '0';
let x = $el.attr('data-swiper-parallax-x');
let y = $el.attr('data-swiper-parallax-y');
const scale = $el.attr('data-swip... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTransform | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransform = (el, progress) => {
const {
rtl
} = swiper;
const $el = $(el);
const rtlFactor = rtl ? -1 : 1;
const p = $el.attr('data-swiper-parallax') || '0';
let x = $el.attr('data-swiper-parallax-x');
let y = $el.attr('data-swiper-parallax-y');
const scale = $el.attr('data-swip... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTransform | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
$el,
slides,
progress,
snapGrid
} = swiper;
$el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(el => {
setTransform(el, progress);
});
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTranslate | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTranslate = () => {
const {
$el,
slides,
progress,
snapGrid
} = swiper;
$el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(el => {
setTransform(el, progress);
});
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTranslate | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransition = function (duration) {
if (duration === void 0) {
duration = swiper.params.speed;
}
const {
$el
} = swiper;
$el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(parallaxEl... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTransition | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setTransition = function (duration) {
if (duration === void 0) {
duration = swiper.params.speed;
}
const {
$el
} = swiper;
$el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(parallaxEl... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTransition | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function Zoom(_ref) {
let {
swiper,
extendParams,
on,
emit
} = _ref;
const window = getWindow();
extendParams({
zoom: {
enabled: false,
maxRatio: 3,
minRatio: 1,
toggle: true,
containerClass: 'swiper-zoom-container',
zoomedSlideClass: 'swiper-slide-zoomed'... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | Zoom | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
get() {
return scale;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | get | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
set(value) {
if (scale !== value) {
const imageEl = gesture.$imageEl ? gesture.$imageEl[0] : undefined;
const slideEl = gesture.$slideEl ? gesture.$slideEl[0] : undefined;
emit('zoomChange', value, imageEl, slideEl);
}
scale = value;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | set | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function getDistanceBetweenTouches(e) {
if (e.targetTouches.length < 2) return 1;
const x1 = e.targetTouches[0].pageX;
const y1 = e.targetTouches[0].pageY;
const x2 = e.targetTouches[1].pageX;
const y2 = e.targetTouches[1].pageY;
const distance = Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);
r... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getDistanceBetweenTouches | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onGestureStart(e) {
const support = swiper.support;
const params = swiper.params.zoom;
fakeGestureTouched = false;
fakeGestureMoved = false;
if (!support.gestures) {
if (e.type !== 'touchstart' || e.type === 'touchstart' && e.targetTouches.length < 2) {
return;
}
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onGestureStart | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onGestureChange(e) {
const support = swiper.support;
const params = swiper.params.zoom;
const zoom = swiper.zoom;
if (!support.gestures) {
if (e.type !== 'touchmove' || e.type === 'touchmove' && e.targetTouches.length < 2) {
return;
}
fakeGestureMoved = true;
g... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onGestureChange | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onGestureEnd(e) {
const device = swiper.device;
const support = swiper.support;
const params = swiper.params.zoom;
const zoom = swiper.zoom;
if (!support.gestures) {
if (!fakeGestureTouched || !fakeGestureMoved) {
return;
}
if (e.type !== 'touchend' || e.type ===... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onGestureEnd | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onTouchStart(e) {
const device = swiper.device;
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
if (image.isTouched) return;
if (device.android && e.cancelable) e.preventDefault();
image.isTouched = true;
image.touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onTouchStart | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onTouchMove(e) {
const zoom = swiper.zoom;
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
swiper.allowClick = false;
if (!image.isTouched || !gesture.$slideEl) return;
if (!image.isMoved) {
image.width = gesture.$imageEl[0].offsetWidth;
image.height = gesture.$... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onTouchMove | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onTouchEnd() {
const zoom = swiper.zoom;
if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
if (!image.isTouched || !image.isMoved) {
image.isTouched = false;
image.isMoved = false;
return;
}
image.isTouched = false;
image.isMoved = false;
let moment... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onTouchEnd | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onTransitionEnd() {
const zoom = swiper.zoom;
if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {
if (gesture.$imageEl) {
gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');
}
if (gesture.$imageWrapEl) {
gesture.$imageWrapEl.transform('trans... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onTransitionEnd | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function zoomIn(e) {
const zoom = swiper.zoom;
const params = swiper.params.zoom;
if (!gesture.$slideEl) {
if (e && e.target) {
gesture.$slideEl = $(e.target).closest(`.${swiper.params.slideClass}`);
}
if (!gesture.$slideEl) {
if (swiper.params.virtual && swiper.params.vi... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | zoomIn | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function zoomOut() {
const zoom = swiper.zoom;
const params = swiper.params.zoom;
if (!gesture.$slideEl) {
if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) {
gesture.$slideEl = swiper.$wrapperEl.children(`.${swiper.params.slideActiveClass}`);
} else {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | zoomOut | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function zoomToggle(e) {
const zoom = swiper.zoom;
if (zoom.scale && zoom.scale !== 1) {
// Zoom Out
zoomOut();
} else {
// Zoom In
zoomIn(e);
}
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | zoomToggle | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function getListeners() {
const support = swiper.support;
const passiveListener = swiper.touchEvents.start === 'touchstart' && support.passiveListener && swiper.params.passiveListeners ? {
passive: true,
capture: false
} : false;
const activeListenerWithCapture = support.passiveListener ? {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getListeners | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function getSlideSelector() {
return `.${swiper.params.slideClass}`;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getSlideSelector | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function toggleGestures(method) {
const {
passiveListener
} = getListeners();
const slideSelector = getSlideSelector();
swiper.$wrapperEl[method]('gesturestart', slideSelector, onGestureStart, passiveListener);
swiper.$wrapperEl[method]('gesturechange', slideSelector, onGestureChange, passiveL... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | toggleGestures | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function enableGestures() {
if (gesturesEnabled) return;
gesturesEnabled = true;
toggleGestures('on');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | enableGestures | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function disableGestures() {
if (!gesturesEnabled) return;
gesturesEnabled = false;
toggleGestures('off');
} // Attach/Detach Events | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disableGestures | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function enable() {
const zoom = swiper.zoom;
if (zoom.enabled) return;
zoom.enabled = true;
const support = swiper.support;
const {
passiveListener,
activeListenerWithCapture
} = getListeners();
const slideSelector = getSlideSelector(); // Scale image
if (support.gestures) ... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | enable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function disable() {
const zoom = swiper.zoom;
if (!zoom.enabled) return;
const support = swiper.support;
zoom.enabled = false;
const {
passiveListener,
activeListenerWithCapture
} = getListeners();
const slideSelector = getSlideSelector(); // Scale image
if (support.gesture... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function Lazy(_ref) {
let {
swiper,
extendParams,
on,
emit
} = _ref;
extendParams({
lazy: {
checkInView: false,
enabled: false,
loadPrevNext: false,
loadPrevNextAmount: 1,
loadOnTransitionStart: false,
scrollingElement: '',
elementClass: 'swiper-lazy',... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | Lazy | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function loadInSlide(index, loadInDuplicate) {
if (loadInDuplicate === void 0) {
loadInDuplicate = true;
}
const params = swiper.params.lazy;
if (typeof index === 'undefined') return;
if (swiper.slides.length === 0) return;
const isVirtual = swiper.virtual && swiper.params.virtual.enabled... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | loadInSlide | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function load() {
const {
$wrapperEl,
params: swiperParams,
slides,
activeIndex
} = swiper;
const isVirtual = swiper.virtual && swiperParams.virtual.enabled;
const params = swiperParams.lazy;
let slidesPerView = swiperParams.slidesPerView;
if (slidesPerView === 'auto') {... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | load | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function slideExist(index) {
if (isVirtual) {
if ($wrapperEl.children(`.${swiperParams.slideClass}[data-swiper-slide-index="${index}"]`).length) {
return true;
}
} else if (slides[index]) return true;
return false;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideExist | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function slideIndex(slideEl) {
if (isVirtual) {
return $(slideEl).attr('data-swiper-slide-index');
}
return $(slideEl).index();
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slideIndex | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function checkInViewOnLoad() {
const window = getWindow();
if (!swiper || swiper.destroyed) return;
const $scrollElement = swiper.params.lazy.scrollingElement ? $(swiper.params.lazy.scrollingElement) : $(window);
const isWindow = $scrollElement[0] === window;
const scrollElementWidth = isWindow ? wi... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | checkInViewOnLoad | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function getInterpolateFunction(c) {
if (!swiper.controller.spline) {
swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);
}
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getInterpolateFunction | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function setTranslate(_t, byController) {
const controlled = swiper.controller.control;
let multiplier;
let controlledTranslate;
const Swiper = swiper.constructor;
function setControlledTranslate(c) {
// this will create an Interpolate function based on the snapGrids
// x is the Grid of... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTranslate | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function setControlledTranslate(c) {
// this will create an Interpolate function based on the snapGrids
// x is the Grid of the scrolled scroller and y will be the controlled scroller
// it makes sense to create this only once and recall it for the interpolation
// the function does a lot of val... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setControlledTranslate | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function setTransition(duration, byController) {
const Swiper = swiper.constructor;
const controlled = swiper.controller.control;
let i;
function setControlledTransition(c) {
c.setTransition(duration, swiper);
if (duration !== 0) {
c.transitionStart();
if (c.params.autoHei... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setTransition | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function setControlledTransition(c) {
c.setTransition(duration, swiper);
if (duration !== 0) {
c.transitionStart();
if (c.params.autoHeight) {
nextTick(() => {
c.updateAutoHeight();
});
}
c.$wrapperEl.transitionEnd(() => {
if (!con... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setControlledTransition | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function removeSpline() {
if (!swiper.controller.control) return;
if (swiper.controller.spline) {
swiper.controller.spline = undefined;
delete swiper.controller.spline;
}
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | removeSpline | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function A11y(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
a11y: {
enabled: true,
notificationClass: 'swiper-notification',
prevSlideMessage: 'Previous slide',
nextSlideMessage: 'Next slide',
firstSlideMessage: 'This is the first slide',
lastS... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | A11y | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function notify(message) {
const notification = liveRegion;
if (notification.length === 0) return;
notification.html('');
notification.html(message);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | notify | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function getRandomNumber(size) {
if (size === void 0) {
size = 16;
}
const randomChar = () => Math.round(16 * Math.random()).toString(16);
return 'x'.repeat(size).replace(/x/g, randomChar);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getRandomNumber | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function makeElFocusable($el) {
$el.attr('tabIndex', '0');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | makeElFocusable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function makeElNotFocusable($el) {
$el.attr('tabIndex', '-1');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | makeElNotFocusable | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElRole($el, role) {
$el.attr('role', role);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElRole | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElRoleDescription($el, description) {
$el.attr('aria-roledescription', description);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElRoleDescription | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElControls($el, controls) {
$el.attr('aria-controls', controls);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElControls | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElLabel($el, label) {
$el.attr('aria-label', label);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElLabel | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElId($el, id) {
$el.attr('id', id);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElId | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function addElLive($el, live) {
$el.attr('aria-live', live);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | addElLive | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function disableEl($el) {
$el.attr('aria-disabled', true);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | disableEl | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function enableEl($el) {
$el.attr('aria-disabled', false);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | enableEl | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function onEnterOrSpaceKey(e) {
if (e.keyCode !== 13 && e.keyCode !== 32) return;
const params = swiper.params.a11y;
const $targetEl = $(e.target);
if (swiper.navigation && swiper.navigation.$nextEl && $targetEl.is(swiper.navigation.$nextEl)) {
if (!(swiper.isEnd && !swiper.params.loop)) {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onEnterOrSpaceKey | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function updateNavigation() {
if (swiper.params.loop || swiper.params.rewind || !swiper.navigation) return;
const {
$nextEl,
$prevEl
} = swiper.navigation;
if ($prevEl && $prevEl.length > 0) {
if (swiper.isBeginning) {
disableEl($prevEl);
makeElNotFocusable($prevEl);
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | updateNavigation | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function hasPagination() {
return swiper.pagination && swiper.pagination.bullets && swiper.pagination.bullets.length;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | hasPagination | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function hasClickablePagination() {
return hasPagination() && swiper.params.pagination.clickable;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | hasClickablePagination | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function updatePagination() {
const params = swiper.params.a11y;
if (!hasPagination()) return;
swiper.pagination.bullets.each(bulletEl => {
const $bulletEl = $(bulletEl);
if (swiper.params.pagination.clickable) {
makeElFocusable($bulletEl);
if (!swiper.params.pagination.renderB... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | updatePagination | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
initNavEl = ($el, wrapperId, message) => {
makeElFocusable($el);
if ($el[0].tagName !== 'BUTTON') {
addElRole($el, 'button');
$el.on('keydown', onEnterOrSpaceKey);
}
addElLabel($el, message);
addElControls($el, wrapperId);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | initNavEl | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
initNavEl = ($el, wrapperId, message) => {
makeElFocusable($el);
if ($el[0].tagName !== 'BUTTON') {
addElRole($el, 'button');
$el.on('keydown', onEnterOrSpaceKey);
}
addElLabel($el, message);
addElControls($el, wrapperId);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | initNavEl | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handlePointerDown = () => {
swiper.a11y.clicked = true;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handlePointerDown | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handlePointerDown = () => {
swiper.a11y.clicked = true;
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handlePointerDown | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handlePointerUp = () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
if (!swiper.destroyed) {
swiper.a11y.clicked = false;
}
});
});
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handlePointerUp | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handlePointerUp = () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
if (!swiper.destroyed) {
swiper.a11y.clicked = false;
}
});
});
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handlePointerUp | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handleFocus = e => {
if (swiper.a11y.clicked) return;
const slideEl = e.target.closest(`.${swiper.params.slideClass}`);
if (!slideEl || !swiper.slides.includes(slideEl)) return;
const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;
const isVisible = swiper.params.watchSlidesProgres... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handleFocus | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
handleFocus = e => {
if (swiper.a11y.clicked) return;
const slideEl = e.target.closest(`.${swiper.params.slideClass}`);
if (!slideEl || !swiper.slides.includes(slideEl)) return;
const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;
const isVisible = swiper.params.watchSlidesProgres... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | handleFocus | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
initSlides = () => {
const params = swiper.params.a11y;
if (params.itemRoleDescriptionMessage) {
addElRoleDescription($(swiper.slides), params.itemRoleDescriptionMessage);
}
if (params.slideRole) {
addElRole($(swiper.slides), params.slideRole);
}
const slidesLength = swiper.params... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | initSlides | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
initSlides = () => {
const params = swiper.params.a11y;
if (params.itemRoleDescriptionMessage) {
addElRoleDescription($(swiper.slides), params.itemRoleDescriptionMessage);
}
if (params.slideRole) {
addElRole($(swiper.slides), params.slideRole);
}
const slidesLength = swiper.params... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | initSlides | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
const params = swiper.params.a11y;
swiper.$el.append(liveRegion); // Container
const $containerEl = swiper.$el;
if (params.containerRoleDescriptionMessage) {
addElRoleDescription($containerEl, params.containerRoleDescriptionMessage);
}
if (params.containerMessage) {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
const params = swiper.params.a11y;
swiper.$el.append(liveRegion); // Container
const $containerEl = swiper.$el;
if (params.containerRoleDescriptionMessage) {
addElRoleDescription($containerEl, params.containerRoleDescriptionMessage);
}
if (params.containerMessage) {
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function destroy() {
if (liveRegion && liveRegion.length > 0) liveRegion.remove();
let $nextEl;
let $prevEl;
if (swiper.navigation && swiper.navigation.$nextEl) {
$nextEl = swiper.navigation.$nextEl;
}
if (swiper.navigation && swiper.navigation.$prevEl) {
$prevEl = swiper.navigatio... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | destroy | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function History(_ref) {
let {
swiper,
extendParams,
on
} = _ref;
extendParams({
history: {
enabled: false,
root: '',
replaceState: false,
key: 'slides',
keepQuery: false
}
});
let initialized = false;
let paths = {};
const slugify = text => {
return ... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | History | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
slugify = text => {
return text.toString().replace(/\s+/g, '-').replace(/[^\w-]+/g, '').replace(/--+/g, '-').replace(/^-+/, '').replace(/-+$/, '');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slugify | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
slugify = text => {
return text.toString().replace(/\s+/g, '-').replace(/[^\w-]+/g, '').replace(/--+/g, '-').replace(/^-+/, '').replace(/-+$/, '');
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | slugify | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
getPathValues = urlOverride => {
const window = getWindow();
let location;
if (urlOverride) {
location = new URL(urlOverride);
} else {
location = window.location;
}
const pathArray = location.pathname.slice(1).split('/').filter(part => part !== '');
const total = pathArray.len... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getPathValues | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
getPathValues = urlOverride => {
const window = getWindow();
let location;
if (urlOverride) {
location = new URL(urlOverride);
} else {
location = window.location;
}
const pathArray = location.pathname.slice(1).split('/').filter(part => part !== '');
const total = pathArray.len... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | getPathValues | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHistory = (key, index) => {
const window = getWindow();
if (!initialized || !swiper.params.history.enabled) return;
let location;
if (swiper.params.url) {
location = new URL(swiper.params.url);
} else {
location = window.location;
}
const slide = swiper.slides.eq(index);
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHistory | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHistory = (key, index) => {
const window = getWindow();
if (!initialized || !swiper.params.history.enabled) return;
let location;
if (swiper.params.url) {
location = new URL(swiper.params.url);
} else {
location = window.location;
}
const slide = swiper.slides.eq(index);
... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHistory | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
scrollToSlide = (speed, value, runCallbacks) => {
if (value) {
for (let i = 0, length = swiper.slides.length; i < length; i += 1) {
const slide = swiper.slides.eq(i);
const slideHistory = slugify(slide.attr('data-history'));
if (slideHistory === value && !slide.hasClass(swiper.params.... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | scrollToSlide | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
scrollToSlide = (speed, value, runCallbacks) => {
if (value) {
for (let i = 0, length = swiper.slides.length; i < length; i += 1) {
const slide = swiper.slides.eq(i);
const slideHistory = slugify(slide.attr('data-history'));
if (slideHistory === value && !slide.hasClass(swiper.params.... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | scrollToSlide | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHistoryPopState = () => {
paths = getPathValues(swiper.params.url);
scrollToSlide(swiper.params.speed, paths.value, false);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHistoryPopState | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHistoryPopState = () => {
paths = getPathValues(swiper.params.url);
scrollToSlide(swiper.params.speed, paths.value, false);
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHistoryPopState | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
const window = getWindow();
if (!swiper.params.history) return;
if (!window.history || !window.history.pushState) {
swiper.params.history.enabled = false;
swiper.params.hashNavigation.enabled = true;
return;
}
initialized = true;
paths = getPathValues(swiper.pa... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
const window = getWindow();
if (!swiper.params.history) return;
if (!window.history || !window.history.pushState) {
swiper.params.history.enabled = false;
swiper.params.hashNavigation.enabled = true;
return;
}
initialized = true;
paths = getPathValues(swiper.pa... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
destroy = () => {
const window = getWindow();
if (!swiper.params.history.replaceState) {
window.removeEventListener('popstate', setHistoryPopState);
}
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | destroy | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
destroy = () => {
const window = getWindow();
if (!swiper.params.history.replaceState) {
window.removeEventListener('popstate', setHistoryPopState);
}
} | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | destroy | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
function HashNavigation(_ref) {
let {
swiper,
extendParams,
emit,
on
} = _ref;
let initialized = false;
const document = getDocument();
const window = getWindow();
extendParams({
hashNavigation: {
enabled: false,
replaceState: false,
watchState: false
}
});
con... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | HashNavigation | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
onHashChange = () => {
emit('hashChange');
const newHash = document.location.hash.replace('#', '');
const activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('data-hash');
if (newHash !== activeSlideHash) {
const newIndex = swiper.$wrapperEl.children(`.${swiper.params.slideClass}[data-has... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onHashChange | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
onHashChange = () => {
emit('hashChange');
const newHash = document.location.hash.replace('#', '');
const activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('data-hash');
if (newHash !== activeSlideHash) {
const newIndex = swiper.$wrapperEl.children(`.${swiper.params.slideClass}[data-has... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | onHashChange | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHash = () => {
if (!initialized || !swiper.params.hashNavigation.enabled) return;
if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {
window.history.replaceState(null, null, `#${swiper.slides.eq(swiper.activeIndex).attr('data-hash')}` || '');
emit('h... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHash | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
setHash = () => {
if (!initialized || !swiper.params.hashNavigation.enabled) return;
if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {
window.history.replaceState(null, null, `#${swiper.slides.eq(swiper.activeIndex).attr('data-hash')}` || '');
emit('h... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | setHash | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
if (!swiper.params.hashNavigation.enabled || swiper.params.history && swiper.params.history.enabled) return;
initialized = true;
const hash = document.location.hash.replace('#', '');
if (hash) {
const speed = 0;
for (let i = 0, length = swiper.slides.length; i < length; i +=... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
init = () => {
if (!swiper.params.hashNavigation.enabled || swiper.params.history && swiper.params.history.enabled) return;
initialized = true;
const hash = document.location.hash.replace('#', '');
if (hash) {
const speed = 0;
for (let i = 0, length = swiper.slides.length; i < length; i +=... | Determines whether the `index` argument is a valid `number`
after being converted from the `string` type.
@type {boolean} | init | javascript | cabloy/cabloy | src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | https://github.com/cabloy/cabloy/blob/master/src/module-system/a-swiper/dist/staticBackend/vendor/swiper/8.4.5/swiper-bundle.esm.browser.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.