packages/plugins/media-queries/dist/index.js
function getComponentsInEventRegistry(eventRegistry, namespace) {
    var selector = Object.keys(eventRegistry)
        .map(function (componentName) { return "[data-" + namespace + "-name=\"" + componentName + "\"]"; })
        .join(",");
    if (!selector) {
        return [];
    }
    var componentElements = document.documentElement.querySelectorAll(selector);
    var components = [];
    for (var i = 0; i < componentElements.length; i++) {
        var component = getComponentByDomNode(componentElements[i], namespace);
        if (component) {
            components.push(component);
        }
    }
    return components;
}
function getComponentsInEventRegistry(eventRegistry, namespace) {
    var selector = Object.keys(eventRegistry)
        .map(function (componentName) { return "[data-" + namespace + "-name=\"" + componentName + "\"]"; })
        .join(",");
    if (!selector) {
        return [];
    }
    var componentElements = document.documentElement.querySelectorAll(selector);
    var components = [];
    for (var i = 0; i < componentElements.length; i++) {
        var component = getComponentByDomNode(componentElements[i], namespace);
        if (component) {
            components.push(component);
        }
    }
    return components;
}
function getComponentsInEventRegistry ( eventRegistry , namespace ) { var selector = Object . keys ( eventRegistry ) . map ( function ( componentName ) { return "[data-" + namespace + "-name=\"" + componentName + "\"]" ; } ) . join ( "," ) ; if ( ! selector ) { return [ ] ; } var componentElements = document . documentElement . querySelectorAll ( selector ) ; var components = [ ] ; for ( var i = 0 ; i < componentElements . length ; i ++ ) { var component = getComponentByDomNode ( componentElements [ i ] , namespace ) ; if ( component ) { components . push ( component ) ; } } return components ; }
This function returns all components for the given eventRegistry which can be found in the dom.
This function returns all components for the given eventRegistry which can be found in the dom .