/**
* @file
* Ajax theme overrides for Claro.
*/
(Drupal => {
/**
* Theme override of the ajax progress indicator for full screen.
*
* @return {string}
* The HTML markup for the throbber.
*/
Drupal.theme.ajaxProgressIndicatorFullscreen = () =>
'
';
/**
* Theme override of the ajax progress indicator.
*
* @param {string} message
* The message shown on the UI.
* @return {string}
* The HTML markup for the throbber.
*/
Drupal.theme.ajaxProgressThrobber = message => {
// Build markup without adding extra white space since it affects rendering.
const messageMarkup =
typeof message === 'string'
? Drupal.theme('ajaxProgressMessage', message)
: '';
const throbber = '
';
return `${throbber}${messageMarkup}
`;
};
/**
* Theme override of the ajax progress message.
*
* @param {string} message
* The message shown on the UI.
* @return {string}
* The HTML markup for the throbber.
*/
Drupal.theme.ajaxProgressMessage = message =>
`${message}
`;
})(Drupal);