nz-json-schema-form
Version:
Schema form for JSON schema
36 lines (35 loc) • 1.62 kB
TypeScript
import { Type } from '@angular/core';
import { JSONSchemaTypes } from './interfaces/json-schema';
import { NzSchema } from './interfaces/nz-schema';
import { SchemaFormAutocompleteComponent, SchemaFormCascaderComponent, SchemaFormCheckboxComponent, SchemaFormDatePickerComponent, SchemaFormMentionComponent, SchemaFormSelectComponent, SchemaFormTextareaComponent } from './widgets';
import * as i0 from "@angular/core";
export declare class SchemaWidgetRegistryService {
widgetMap: {
array: {
select: typeof SchemaFormSelectComponent;
cascader: typeof SchemaFormCascaderComponent;
};
boolean: {
checkbox: typeof SchemaFormCheckboxComponent;
select: typeof SchemaFormSelectComponent;
};
number: {
select: typeof SchemaFormSelectComponent;
'date-picker': typeof SchemaFormDatePickerComponent;
};
object: {};
string: {
select: typeof SchemaFormSelectComponent;
autocomplete: typeof SchemaFormAutocompleteComponent;
textarea: typeof SchemaFormTextareaComponent;
'date-picker': typeof SchemaFormDatePickerComponent;
mention: typeof SchemaFormMentionComponent;
};
null: {};
integer: {};
};
getWidget(schema: NzSchema): Type<any> | null;
setWidget(type: JSONSchemaTypes, widgetName: string, widgetComponent: Type<any>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaWidgetRegistryService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SchemaWidgetRegistryService>;
}