[FEATURE] Introduce TCA type "number"
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. Resolves: #97193 Releases: main Change-Id: Ia0888699f2c518917412e700e2681d9fea727340 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74067 Tested-by:Nikita Hovratov <nikita.h@live.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/TypeScript/backend/form-engine-validation.ts 5 additions, 3 deletionsBuild/Sources/TypeScript/backend/form-engine-validation.ts
- Build/Sources/TypeScript/backend/form-engine/field-wizard/value-slider.ts 40 additions, 22 deletions...peScript/backend/form-engine/field-wizard/value-slider.ts
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 3 additions, 0 deletions...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 2 additions, 52 deletions.../sysext/backend/Classes/Form/Element/InputTextElement.php
- typo3/sysext/backend/Classes/Form/Element/NumberElement.php 309 additions, 0 deletionstypo3/sysext/backend/Classes/Form/Element/NumberElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaColumnsProcessPlaceholders.php 2 additions, 1 deletion...s/Form/FormDataProvider/TcaColumnsProcessPlaceholders.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php 2 additions, 1 deletion...nd/Classes/Form/FormDataProvider/TcaInputPlaceholders.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 1 addition, 0 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php 1 addition, 0 deletions...sysext/backend/Classes/Form/Utility/FormEngineUtility.php
- typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php 6 additions, 8 deletions...3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine-validation.js 1 addition, 1 deletion...end/Resources/Public/JavaScript/form-engine-validation.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/field-wizard/value-slider.js 1 addition, 1 deletion...ublic/JavaScript/form-engine/field-wizard/value-slider.js
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 48 additions, 27 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/DataHandling/TableColumnType.php 1 addition, 0 deletionstypo3/sysext/core/Classes/DataHandling/TableColumnType.php
- typo3/sysext/core/Classes/Migrations/TcaMigration.php 62 additions, 0 deletionstypo3/sysext/core/Classes/Migrations/TcaMigration.php
- typo3/sysext/core/Classes/Resource/Search/QueryRestrictions/SearchTermRestriction.php 1 addition, 1 deletion...source/Search/QueryRestrictions/SearchTermRestriction.php
- typo3/sysext/core/Configuration/TCA/sys_file.php 1 addition, 3 deletionstypo3/sysext/core/Configuration/TCA/sys_file.php
- typo3/sysext/core/Configuration/TCA/sys_file_metadata.php 2 additions, 6 deletionstypo3/sysext/core/Configuration/TCA/sys_file_metadata.php
Please register or sign in to comment