We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.frontend.
Package com.vaadin.flow.server.frontend
Class ThemeValidationUtil
java.lang.Object
com.vaadin.flow.server.frontend.ThemeValidationUtil
Theme handling methods.
For internal use only. May be renamed or removed in a future release.
Since:
24.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
themeConfigurationChanged
(Options options, elemental.json.JsonObject statsJson, FrontendDependenciesScanner frontendDependencies) static boolean
themeShadowDOMStylesheetsChanged
(Options options, elemental.json.JsonObject statsJson, FrontendDependenciesScanner frontendDependencies) Checks if theme has legacy Shadow DOM stylesheets in <theme>/components folder and if their content has changed.
-
Constructor Details
-
ThemeValidationUtil
public ThemeValidationUtil()
-
-
Method Details
-
themeConfigurationChanged
public static boolean themeConfigurationChanged(Options options, elemental.json.JsonObject statsJson, FrontendDependenciesScanner frontendDependencies) -
themeShadowDOMStylesheetsChanged
public static boolean themeShadowDOMStylesheetsChanged(Options options, elemental.json.JsonObject statsJson, FrontendDependenciesScanner frontendDependencies) Checks if theme has legacy Shadow DOM stylesheets in <theme>/components folder and if their content has changed.
Parameters:
options
- Flow plugin optionsstatsJson
- the stats.json for the application bundle.frontendDependencies
- frontend dependencies scanner to lookup for theme settingsReturns:
true if the theme has legacy Shadow DOM stylesheets, and they are not included on the application bundle, otherwise false.
-