Add default export for compatibility

This commit is contained in:
Dmitry Lyzo 2020-03-29 00:06:27 +03:00
parent 5efc95fd09
commit eb047175be
2 changed files with 24 additions and 2 deletions

View File

@ -1853,3 +1853,14 @@ import 'programStyles';
cell.removeAttribute('data-seriestimerid'); cell.removeAttribute('data-seriestimerid');
} }
} }
export default {
getCardsHtml: getCardsHtml,
getDefaultBackgroundClass: getDefaultBackgroundClass,
getDefaultText: getDefaultText,
buildCards: buildCards,
onUserDataChanged: onUserDataChanged,
onTimerCreated: onTimerCreated,
onTimerCancelled: onTimerCancelled,
onSeriesTimerCancelled: onSeriesTimerCancelled
};

View File

@ -1,3 +1,8 @@
/**
* Module for performing keyboard navigation.
* @module components/input/keyboardnavigation
*/
import inputManager from "inputManager"; import inputManager from "inputManager";
import layoutManager from "layoutManager"; import layoutManager from "layoutManager";
@ -55,7 +60,7 @@ if (!hasFieldKey) {
/** /**
* Returns key name from event. * Returns key name from event.
* *
* @param {KeyboardEvent} event keyboard event * @param {KeyboardEvent} event - keyboard event
* @return {string} key name * @return {string} key name
*/ */
export function getKeyName(event) { export function getKeyName(event) {
@ -65,7 +70,7 @@ export function getKeyName(event) {
/** /**
* Returns _true_ if key is used for navigation. * Returns _true_ if key is used for navigation.
* *
* @param {string} key name * @param {string} key - key name
* @return {boolean} _true_ if key is used for navigation * @return {boolean} _true_ if key is used for navigation
*/ */
export function isNavigationKey(key) { export function isNavigationKey(key) {
@ -155,3 +160,9 @@ function attachGamepadScript(e) {
// No need to check for gamepads manually at load time, the eventhandler will be fired for that // No need to check for gamepads manually at load time, the eventhandler will be fired for that
window.addEventListener("gamepadconnected", attachGamepadScript); window.addEventListener("gamepadconnected", attachGamepadScript);
export default {
enable: enable,
getKeyName: getKeyName,
isNavigationKey: isNavigationKey
};