@ohayojp/form
Version:
22 lines (21 loc) • 1.29 kB
TypeScript
import { NzSafeAny } from 'ng-zorro-antd/core/types';
import { NzI18nService } from 'ng-zorro-antd/i18n';
import { Observable } from 'rxjs';
import { SFSchema, SFSchemaDefinition, SFSchemaEnum } from './schema';
import { SFUISchema, SFUISchemaItem, SFUISchemaItemRun } from './schema/ui';
export declare function isBlank(o: any): boolean;
export declare function toBool(value: any, defaultValue: boolean): boolean;
export declare function di(ui: SFUISchema, ...args: NzSafeAny[]): void;
/**
* 取回Schema,并处理 `$ref` 的关系
*/
export declare function retrieveSchema(schema: SFSchema, definitions?: SFSchemaDefinition): SFSchema;
export declare function resolveIfSchema(_schema: SFSchema, _ui: SFUISchemaItemRun): void;
export declare function orderProperties(properties: string[], order: string[]): string[];
export declare function getEnum(list: any[], formData: any, readOnly: boolean): SFSchemaEnum[];
export declare function getCopyEnum(list: any[], formData: any, readOnly: boolean): SFSchemaEnum[];
export declare function getData(schema: SFSchema, ui: SFUISchemaItem, formData: any, asyncArgs?: any): Observable<SFSchemaEnum[]>;
/**
* Whether to using date-fns to format a date
*/
export declare function isDateFns(srv: NzI18nService): boolean;