UNPKG

@aujsf/core

Version:
48 lines (47 loc) 2.13 kB
import { Logger } from 'aurelia-logging'; import { BindingEngine, Container, View } from 'aurelia-framework'; import { JsonPointer } from 'jsonpointerx'; import { FormTemplateRegistry, FormContext, ViewProvider } from '../services'; import { JsonSchema, UISchema, ErrorSchema } from '../models'; import { BindingSignaler } from 'aurelia-templating-resources'; import { ViewBase } from './view-base'; export declare abstract class AujsfBase<TSchema extends JsonSchema, TValue = any> extends ViewBase { protected _element: Element; protected _container: Container; protected _templateRegistry: FormTemplateRegistry; context: FormContext; protected viewProvider: ViewProvider<JsonSchema>; protected signaler?: BindingSignaler | undefined; protected engine?: BindingEngine | undefined; protected abstract _logger: Logger; protected _bctx: any; protected _obctx: any; protected constructor(_element: Element, _container: Container, _templateRegistry: FormTemplateRegistry, context: FormContext, viewProvider: ViewProvider<JsonSchema>, signaler?: BindingSignaler | undefined, engine?: BindingEngine | undefined); value: TValue; schema: TSchema; uiSchema: UISchema; pointer: JsonPointer; required?: boolean; parentReadonly?: boolean; errors: ErrorSchema; protected owningView?: View; protected myView?: View; created(owningView: View, myView: View): void; get readonly(): boolean; get title(): string | undefined; get description(): string | undefined; get placeholder(): string; get id(): string; get hasErrors(): boolean; get errorMessages(): string[]; bind(bctx: any, obctx: any): void; protected bound(): void; protected resolveUISchemaDefaults(): void; getTitleTemplate(): string | undefined; protected enhance(): void; private _bindHandle; protected rebind(): void; protected dispatchEvent(name: string, detail: any, element?: Element): void; valueChanged(newValue: any, oldValue: any): void; schemaChanged(...args: any[]): void; }