diff --git a/packages/angular/common/src/providers/menu-controller.ts b/packages/angular/common/src/providers/menu-controller.ts index 0a197b1f5b1..2ceb7cba056 100644 --- a/packages/angular/common/src/providers/menu-controller.ts +++ b/packages/angular/common/src/providers/menu-controller.ts @@ -1,6 +1,6 @@ -import type { MenuControllerI } from '@ionic/core/components'; +import type { MenuControllerI, AnimationBuilder, MenuI, Animation } from '@ionic/core/components'; -export class MenuController { +export class MenuController implements MenuControllerI { constructor(private menuController: MenuControllerI) {} /** @@ -98,4 +98,32 @@ export class MenuController { getMenus(): Promise { return this.menuController.getMenus(); } + + registerAnimation(name: string, animation: AnimationBuilder): void { + return this.menuController.registerAnimation(name, animation); + } + + isAnimating(): Promise { + return this.menuController.isAnimating(); + } + + _getOpenSync(): HTMLIonMenuElement | undefined { + return this.menuController._getOpenSync(); + } + + _createAnimation(type: string, menuCmp: MenuI): Promise { + return this.menuController._createAnimation(type, menuCmp); + } + + _register(menu: MenuI): void { + return this.menuController._register(menu); + } + + _unregister(menu: MenuI): void { + return this.menuController._unregister(menu); + } + + _setOpen(menu: MenuI, shouldOpen: boolean, animated: boolean): Promise { + return this.menuController._setOpen(menu, shouldOpen, animated); + } }