UNPKG

nakedobjects.spa

Version:

Single Page Application client for a Naked Objects application.

39 lines (38 loc) 1.76 kB
import { Command } from './cicero-commands/Command'; import { ContextService } from './context.service'; import { UrlManagerService } from './url-manager.service'; import { MaskService } from './mask.service'; import { ErrorService } from './error.service'; import { ConfigService } from './config.service'; import { Location } from '@angular/common'; import { CiceroContextService } from './cicero-context.service'; import { Result } from './cicero-commands/result'; import { CiceroRendererService } from './cicero-renderer.service'; export declare class ParseResult { commands?: Command[]; error?: string; static create: (commands: Command[]) => ParseResult; static createError: (msg: string) => ParseResult; } export declare class CiceroCommandFactoryService { private readonly urlManager; private readonly location; private readonly context; private readonly mask; private readonly error; private readonly configService; private readonly ciceroContext; private readonly ciceroRenderer; constructor(urlManager: UrlManagerService, location: Location, context: ContextService, mask: MaskService, error: ErrorService, configService: ConfigService, ciceroContext: CiceroContextService, ciceroRenderer: CiceroRendererService); private commandsInitialised; private commandTypes; private allCommands; private commands; private mapInputToCommands(input); getCommands(input: string): ParseResult; getArgs(input: string): string | null; getSingleCommand: (input: string, chained: boolean) => Command; preParse: (input: string) => Result; getCommand: (commandWord: string) => Command; allCommandsForCurrentContext: () => string; }