feat: add slider, color, time to FieldType and slider props to FormField
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
de5ea170e1
commit
3f42fa38e2
1 changed files with 10 additions and 1 deletions
11
src/types.ts
11
src/types.ts
|
|
@ -12,7 +12,10 @@ export type FieldType =
|
||||||
| 'tags'
|
| 'tags'
|
||||||
| 'note-link'
|
| 'note-link'
|
||||||
| 'folder-picker'
|
| 'folder-picker'
|
||||||
| 'rating';
|
| 'rating'
|
||||||
|
| 'slider'
|
||||||
|
| 'color'
|
||||||
|
| 'time';
|
||||||
|
|
||||||
export interface FormField {
|
export interface FormField {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -25,6 +28,12 @@ export interface FormField {
|
||||||
options?: string[];
|
options?: string[];
|
||||||
/** For note-link: restrict to files in this folder. */
|
/** For note-link: restrict to files in this folder. */
|
||||||
folder?: string;
|
folder?: string;
|
||||||
|
/** For slider: minimum value. */
|
||||||
|
min?: number;
|
||||||
|
/** For slider: maximum value. */
|
||||||
|
max?: number;
|
||||||
|
/** For slider: step increment. */
|
||||||
|
step?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue