UNPKG

@blinkk/selective-edit

Version:
18 lines (17 loc) 698 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 TimeFieldConfig = FieldConfig; export declare class TimeField extends Field { config: TimeFieldConfig; constructor(types: Types, config: TimeFieldConfig, globalConfig: GlobalConfig, fieldType?: string); /** * Cleanup the time strings. * * @param value Original value from the source. */ cleanOriginalValue(value: any): any; templateInput(editor: SelectiveEditor, data: DeepObject): TemplateResult; }