Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding two properties autocapitalize and inputmode to be used in input and textarea form elements. #95

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
1 change: 1 addition & 0 deletions Configuration/NodeTypes.FormElements.MultiLineText.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'Neos.Form.Builder:FormElement': true
'Neos.Form.Builder:PlaceholderMixin': true
'Neos.Form.Builder:MaxlengthMixin': true
'Neos.Form.Builder:AutoCapitalizeMixin': true
ui:
label: 'Multi-line text'
icon: 'icon-pencil-square-o'
Expand Down
2 changes: 2 additions & 0 deletions Configuration/NodeTypes.FormElements.SingleLineText.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
'Neos.Form.Builder:TextValidatorsMixin': true
'Neos.Form.Builder:PlaceholderMixin': true
'Neos.Form.Builder:MaxlengthMixin': true
'Neos.Form.Builder:AutoCapitalizeMixin': true
'Neos.Form.Builder:InputModeMixin': true
ui:
label: 'Single-line text'
icon: 'icon-pencil-square-o'
Expand Down
22 changes: 22 additions & 0 deletions Configuration/NodeTypes.Mixin.AutoCapitalize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'Neos.Form.Builder:AutoCapitalizeMixin':
ui:
position: end
properties:
'autoCapitalize':
type: string
defaultValue: 'sentences'
ui:
label: i18n
inspector:
group: 'formElement'
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
values:
off:
label: i18n
characters:
label: i18n
words:
label: i18n
sentences:
label: i18n
30 changes: 30 additions & 0 deletions Configuration/NodeTypes.Mixin.InputMode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'Neos.Form.Builder:InputModeMixin':
ui:
position: end
properties:
'inputMode':
type: string
defaultValue: 'text'
ui:
label: i18n
inspector:
group: 'formElement'
editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
values:
text:
label: i18n
decimal:
label: i18n
numeric:
label: i18n
tel:
label: i18n
search:
label: i18n
email:
label: i18n
url:
label: i18n
none:
label: i18n
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" product-name="Neos.Form.Builder" source-language="en" datatype="plaintext">
<body>
<trans-unit id="properties.autoCapitalize" xml:space="preserve">
<source>Auto capitalize</source>
</trans-unit>
<trans-unit id="properties.autoCapitalize.selectBoxEditor.values.off" xml:space="preserve">
<source>Off</source>
</trans-unit>
<trans-unit id="properties.autoCapitalize.selectBoxEditor.values.characters" xml:space="preserve">
<source>Characters</source>
</trans-unit>
<trans-unit id="properties.autoCapitalize.selectBoxEditor.values.words" xml:space="preserve">
<source>Words</source>
</trans-unit>
<trans-unit id="properties.autoCapitalize.selectBoxEditor.values.sentences" xml:space="preserve">
<source>Sentences</source>
</trans-unit>
</body>
</file>
</xliff>
35 changes: 35 additions & 0 deletions Resources/Private/Translations/en/NodeTypes/InputModeMixin.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" product-name="Neos.Form.Builder" source-language="en" datatype="plaintext">
<body>
<trans-unit id="properties.inputMode" xml:space="preserve">
<source>Input mode (relevant for mobile browsers)</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.decimal" xml:space="preserve">
<source>Decimal</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.email" xml:space="preserve">
<source>Email</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.none" xml:space="preserve">
<source>None</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.numeric" xml:space="preserve">
<source>Numeric</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.search" xml:space="preserve">
<source>Search</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.tel" xml:space="preserve">
<source>Telephone</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.text" xml:space="preserve">
<source>Text</source>
</trans-unit>
<trans-unit id="properties.inputMode.selectBoxEditor.values.url" xml:space="preserve">
<source>URL</source>
</trans-unit>

</body>
</file>
</xliff>