UNPKG

@raona/components

Version:

React components used at Raona to work with SPFx

45 lines (44 loc) 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Return web element to infinite scroll * @deprecated use instead the one without old, this is only if your tenant has not received the classes minification update yet */ function getSPScrollContainer_old() { var scrollContainer = document.querySelector('[class*="scrollRegion"]'); var isMobile = true; if (scrollContainer) { isMobile = false; } return document.querySelector("[class*=\"" + (isMobile ? 'belowHeader' : 'scrollRegion') + "\"]"); } exports.getSPScrollContainer_old = getSPScrollContainer_old; /** * Return string parameter to infinite scroll * @deprecated use instead the one without old, this is only if your tenant has not received the classes minification update yet */ function getSPScrollContainerSelector_old() { var scrollContainer = document.querySelector('[class*="scrollRegion"]'); var isMobile = true; if (scrollContainer) { isMobile = false; } return "[class*=\"" + (isMobile ? 'belowHeader' : 'scrollRegion') + "\"]"; } exports.getSPScrollContainerSelector_old = getSPScrollContainerSelector_old; /** * Return web element to infinite scroll * @remark use instead the one with old, if your tenant has not received the classes minification update yet */ function getSPScrollContainer() { return document.querySelector('[data-is-scrollable="true"]'); } exports.getSPScrollContainer = getSPScrollContainer; /** * Return string parameter to infinite scroll * @remark use instead the one with old, if your tenant has not received the classes minification update yet */ function getSPScrollContainerSelector() { return "[data-is-scrollable=\"true\"]"; } exports.getSPScrollContainerSelector = getSPScrollContainerSelector;