/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { GlobalLink, ToolMenuItem } from 'ng-stalk/core/types'; import { MagInitConfig } from './mag-init-config'; import { SidebarItem } from './sidebar-item'; export interface MagSupport { loadInitConfig(): Promise; onLoginSubmit(id: string, password: string): void; /** * 언어코드별 번역 텍스트 데이터를 리턴한다. * @deprecated 0.1.0-alpha.32 */ getLanguageData(): any[]; /** * URL Path 로부터 사이드 메뉴 키 값을 추출한다. * @param path ie. '/' */ extractSidebarKey(path: string): string; getSidebar(sidebarKey: string): Promise; /** * * @param toolMenuItem * @since 0.1.0-alpha.32 */ onClickToolMenu(toolMenuItem: ToolMenuItem): void; /** * * @param gnbMenuItem * @since 0.1.0-alpha.32 */ onClickGnbMenu(gnbMenuItem: GlobalLink): void; /** * @since 0.1.0-alpha.32 */ getGnpSearchPlaceholder(): string; getNavigationPrefix(): string; getTheme(): 'dark' | 'light'; /** * 어플리케이션 변경여부를 감지하기 위한 배포 단위의 버젼 * undefined 가 리턴될 경우에는 변경 여부 감지 기능이 사용되지 않는다. */ getApplicationVersion(): Promise | undefined; }