mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add ValueParser, use when pasting
Summary: Add ValueParser file, base class, and subclasses for column types. Only NumericParser is used for now. Add valueParser field to ViewFieldRec. Use valueParser when parsing pasted text data in Grid and Detail views. Test Plan: Add test to nbrowser CopyPaste suite, copying into a numeric column with different currency and locale settings. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3082
This commit is contained in:
@@ -111,7 +111,7 @@ class IntFormatter extends NumericFormatter {
|
||||
}
|
||||
}
|
||||
|
||||
interface DateFormatOptions {
|
||||
export interface DateFormatOptions {
|
||||
dateFormat?: string;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class DateFormatter extends BaseFormatter {
|
||||
}
|
||||
}
|
||||
|
||||
interface DateTimeFormatOptions extends DateFormatOptions {
|
||||
export interface DateTimeFormatOptions extends DateFormatOptions {
|
||||
timeFormat?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user