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 booleanthemeConfigurationChanged(Options options, tools.jackson.databind.JsonNode statsJson, FrontendDependenciesScanner frontendDependencies) static booleanthemeShadowDOMStylesheetsChanged(Options options, tools.jackson.databind.JsonNode 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, tools.jackson.databind.JsonNode statsJson, FrontendDependenciesScanner frontendDependencies) -
themeShadowDOMStylesheetsChanged
public static boolean themeShadowDOMStylesheetsChanged(Options options, tools.jackson.databind.JsonNode 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 settings- Returns:
- true if the theme has legacy Shadow DOM stylesheets, and they are not included on the application bundle, otherwise false.
-