UNPKG

@blinkk/selective-edit

Version:
18 lines (17 loc) 718 B
import { Field, FieldConfig } from '../field'; import { GlobalConfig, SelectiveEditor } from '../editor'; import { TemplateResult } from 'lit-html'; import { DeepObject } from '../../utility/deepObject'; import { Types } from '../types'; export declare type DatetimeFieldConfig = FieldConfig; export declare class DatetimeField extends Field { config: DatetimeFieldConfig; constructor(types: Types, config: DatetimeFieldConfig, globalConfig: GlobalConfig, fieldType?: string); /** * Cleanup the datetime strings. * * @param value Original value from the source. */ cleanOriginalValue(value: any): any; templateInput(editor: SelectiveEditor, data: DeepObject): TemplateResult; }