Review main Merged

74067[FEATURE] Introduce TCA type "number"

Nikita Hovratov CR +2 V +2 Expert +1053 −294 updated 04/05/22, 15:25

Commit message

The new type "number" is a replacement for type
"input" with "eval=int" or "eval=double2" set.

With this, the type "input" field is now always a
html "text" field and type "number" is always a
html "number" field.

With the new TCA option "format", a number type can
be defined. Values can be either "integer" (default)
or "decimal". The decimal format replaces the former
"double2" eval value.

In the future, a new option for precision might be
added, in order to dynamically define how many
decimal places should be possible.

The valueSlider has been moved from InputTextElement
to NumberElement, as it makes only sense with a type
number field. Additionally, the JS module is migrated
to a custom element.

Note: There is still the eval="num" option for type
"input" fields. This is solely for the purpose to
ensure only numeric characters are used. Therefore,
this option does not qualify anymore for the "range"
option. The "range" option is now removed altogether
for simple type "input" fields, as it now purely
handles text values.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 38

Show 18 more files