All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.polymer.utils.StyleGather Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha2
Show newest version
package com.github.fluorumlabs.disconnect.polymer.utils;

import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import com.github.fluorumlabs.disconnect.polymer.Polymer;
import js.lang.Any;
import js.util.collections.Array;
import js.web.dom.HTMLStyleElement;
import js.web.webcomponents.HTMLTemplateElement;
import org.teavm.jso.JSBody;

/**
 * The interface Style gather.
 */
@NpmPackage(
		name = "@polymer/polymer",
		version = Polymer.VERSION
)
@Import(
		symbols = {"stylesFromModule", "cssFromModules", "cssFromModule", "cssFromTemplate", "cssFromModuleImports",
				"stylesFromModuleImports", "stylesFromModules", "stylesFromTemplate"},
		module = "@polymer/polymer/lib/utils/style-gather.js"
)
public interface StyleGather extends Any {
	/**
	 * Returns a list of <style> elements in a space-separated list of {@code dom-module}s.
	 *
	 * @param moduleIds List of dom-module id's within which to search for css.
	 *
	 * @return Array of contained <style> elements
	 */
	@JSBody(params = "moduleIds", script = "return stylesFromModules(moduleIds)")
	static Array stylesFromModules(String moduleIds) {
		throw new UnsupportedOperationException("Available only in JavaScript");
	}

	/**
	 * Returns a list of <style> elements in a given {@code dom-module}. Styles in a {@code dom-module} can come
	 * either from {@code