com.vaadin.flow.server.frontend.

Class ThemeValidationUtil

java.lang.Object
com.vaadin.flow.server.frontend.ThemeValidationUtil
public class ThemeValidationUtil extends Object

Theme handling methods.

For internal use only. May be renamed or removed in a future release.

Since:

24.1

  • 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 options

      statsJson - 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.