OptionaldateKeep track of date fields for json conversion Undefined means not evaluated, null or empty means the type does not have any date field
OptionaldisplaySquirrelly template for calculating the string to display
OptionalidUndefined means not evaluated, null means the type does not have any id field
Map of source type name to mapping helper for cross-type conversion
OptionalnumericField used to provide numerical value for calculation
OptionaloldOld field names that needs to be converted to new ones when loaded from json
Registers a date field for automatic JSON date conversion
The field name to register as a date field
This instance for chaining
Registers a field rename for backward compatibility when loading from JSON
The old/legacy field name
The current field name
This instance for chaining
Gets the mapping helper from another type to this type
The source type name
The mapping helper or undefined if none is registered
Checks whether no special fields are configured
True if no special fields have been set
Renders the display template with the given value
The value to render
The rendered string or undefined if no template is set
Sets and pre-compiles a display template string
Optionaltemplate: stringThe template string (uses Eta template syntax), or undefined to clear
This instance for chaining
Registers a mapping from another type to this type
The source type name
The mapping helper to register
Sets the field used for numeric value calculations
OptionalfieldName: keyof TypeThe field name to use for numeric values (optional, clears if undefined)
This instance for chaining
StaticisChecks whether a type string represents a date-compatible type
The type string to check
True if the type is Date, string, or number
Manages special field metadata for a type, including id field, date fields, display templates, numeric value fields, old field name mappings, and cross-type mappings.