Luke Towers
17f3c6f74b
Added 'email' field type
2019-10-06 16:15:29 -06:00
Tobias Kündig
4f34ac5f4a
Prevent flash of unstyled tabs on page load ( #4666 )
...
Credit to @tobias-kuendig.
2019-10-06 14:42:40 +08:00
Samuel Georges
6daea258b9
Tidy up checkbox list - refs #4599
...
Also had to revert the 100vw improvement on tabs because it causes unnecessary scroll/drag activation. Also reverted change in form.base.less that had no reasoning.
2019-09-21 12:36:31 +10:00
Samuel Georges
202d1f6b04
Update the checkbox list widget ( #4599 )
2019-09-21 11:57:53 +10:00
Luke Towers
fafd05f7c0
Cleaning up spacing
2019-09-14 06:27:24 -06:00
Samuel Georges
2962f75221
Include the JSON parser natively in framework.js
...
We've also included it as a separate framework.parser.js file in case its needed by some external lib, such as Storm UI
2019-09-14 17:56:18 +10:00
Samuel Georges
ebcb7ee6fd
Add a small JSON Parser to October framework lib ( #4527 )
...
* Add a small JSON Parser to October framework lib
2019-09-14 17:29:31 +10:00
Ben Thomson
199407f1a0
Revert #4401 for build 458.
...
Reverts commit 22847e7892a2054da91bd85ec183ba6e7bc52094. Will be redeployed in build 459.
2019-08-09 16:07:32 +08:00
Ayumi Hamasaki
22847e7892
Improve backend accessibility ( #4401 )
...
Credit to @ayumihamsaki. Fixes #4400 .
- Added WAI-ARIA to the layout templates files.
- Added Focus-ring polyfill to allow better keyboard navigation and screen reader support.
- Added WAI-ARIA to tabs and created keyboard arrow controls for tabs.
- Added event.key polyfill to allow removal of deprecated event.keyCode, event.charCode and event.which.
- Fixed all the whitespace, tabbing and indent issues with all the lang files.
- Keyboard navigation now allows the following key actions: Tab, Up Arrow, Down Arrow, Left Arrow, Right Arrow, Home and End buttons.
- Added keyboard navigation for tab panels.
2019-07-17 15:07:45 -06:00
Patrik Nemeček
b345191b3f
Add escaping of values to more backend fields ( #4296 )
...
Credit to @patriknemecek
2019-04-26 12:05:08 -06:00
Denis Denisov
bb37068b1a
Remove functionality to swipe between tabs on mobile ( #4103 )
...
Fixes #4037 . Credit to @w20k
2019-04-25 01:48:12 -06:00
Luke Towers
57d54eb882
Improve code clarity
2019-04-19 12:39:36 -06:00
Luke Towers
8c9be817cc
Added support for min, max, and step for the number field type
2019-01-18 18:14:25 -06:00
Luke Towers
3ff77120c6
Improved disabled support for balloon-selector and fileupload fields
2019-01-16 13:32:31 -06:00
Luke Towers
d53e174469
Change number field type to use HTML5 number type
...
Credit to @w20k for the solution. Fixes #2311 .
2018-12-06 14:40:33 -06:00
Romaldy Minaya
cca3c704a3
Fixes #3119 ( #3163 )
...
Added readOnly support to RecordFinder, Switch widget and relation widget including dropdown Fixes #3119 . Credit to @romaldyminaya
2018-11-23 00:33:01 -06:00
Luke Towers
e726165554
Add Tab icons functionality ( #3901 )
...
Credit to @ayumihamsaki for the original proposal, @Teranode for the initial work. Related #3888 , #3856 .
2018-10-30 20:06:33 -06:00
Luke Towers
c55a7cd2e2
Target only immediate children when determining if a tab should be hidden
...
Fixes #3627 . This changes the logic for hiding tabs when all of their fields are hidden to specifically only target direct children of the tab pane when looking for visible fields because repeaters will have fields present that are only hidden by virtue of the parent field being hidden however the previous behaviour would consider it visible.
2018-07-05 10:14:41 -04:00
Luke Towers
a62a6e6493
Support on and off options for the switch field
...
Adds support for custom on and off options for the switch field type.
2017-10-20 11:47:30 -06:00
jimcottrell
263200fd7b
Support form field commentHtml flag for section, checkbox, and switch types ( #3150 )
2017-10-03 13:41:14 -06:00
Samuel Georges
58aa360eab
The text input value should be explicit, not mutated, ever.
...
Rollback fb893efb9ca3a0fa25e3bb9fd01f55cef6216473
Refs #2942
Refs #3101
2017-09-15 08:41:05 +10:00
Samuel Georges
1db67af8e8
Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
...
Conflicts:
modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Luke Towers
c9e31fd83b
Support previewMode for the balloon-selector
...
Add support for previewMode in the Balloon Selector form field type.
Refs: #2724 , 5f91c45
2017-07-09 12:53:29 -06:00
Szabó Gergő
f7f507dbdc
Translate the value of the text field ( #2942 )
...
It is a useful feature, if you like to add translatable value.
2017-06-26 09:38:31 -06:00
Samuel Georges
41cc1744f1
Tab panes now support CSS spec
...
See form docs > paneCssClass
2017-06-05 17:37:13 +10:00
Priit Perna
2b3b6ece46
Made checkbox quick selection configurable
...
With this change the following configuration will show the quick selection links:
"quickselect" => true
2017-05-18 15:16:42 +03:00
CSNWEB
3cfb8c7587
DRY up the code
2017-04-09 04:01:34 +02:00
CSNWEB
ee2dd7ac1c
Add readOnly / disabled support for checkboxlist
...
Relations rendered with the relation formwidget using checkboxlist are now correctly rendered like in the previewMode.
2017-04-07 21:04:20 +02:00
Samuel Georges
5daf4365ae
Move the change event to the input element
...
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Luke Towers
3876dc61d1
Rollback c836d92f9f04f66f8e0e1b4d9ba8af83fed3e439
...
Rollback due to discussion on c836d92f9f
. Will be looked into again later when addressing #2311 .
2017-03-13 09:36:49 -06:00
Luke Towers
c836d92f9f
Make number field an HTML5 number field
...
Makes the `number` form field actually be an HTML5 `type="number"` field.
2017-02-15 08:44:12 -06:00
Samuel Georges
0d1fc43212
Add isSelected() helper to form field
...
Fixes an issue where dropdown NULL and 0 are treated as the same
Fixes #2612
2017-02-03 06:35:23 +11:00
Pásztor Gábor
94ab13cd8b
Fix exception message, remove some unneded imports.
2016-12-07 21:33:05 +01:00
Samuel Georges
4aca2d40ff
Remove "allowClear" and tidy up #2459
...
Allow clear is not necessary, equivalent of allowClear false is "placeholder" and allowClear true is "emptyOption".
2016-11-07 08:43:52 +11:00
Joseba Juániz
1ee0250441
Dropdown can support either placeholder / emptyOption
...
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuel Georges
675a6a4224
Code improvements
...
Refs #2235
2016-07-23 14:22:36 +10:00
Anže Časar
79bb4c2035
Nested DependsOn
2016-07-22 00:38:32 +02:00
Samuel Georges
0d8a30730e
Introduce scope "switch" type, allow options to be passed
2016-04-27 19:09:19 +10:00
Samuel Georges
0aef151d9a
Add showSearch option to dropdown
...
This is a highly specific option, so we shouldn't add it to the FormField class itself
2016-03-25 18:21:58 +11:00
Samuel Georges
21f3ac93c1
Add support for HTML comments
...
Fixes #1808
2016-02-27 09:46:00 +11:00
Pásztor Gábor
e1a9d8d393
Minor fix
...
It does not worked for me in popup window.
2015-12-30 19:32:14 +01:00
Samuel Georges
cf7585f79b
Fixes formwidget logic leaking out of context
...
For example: a formwidget with no tabs can exist inside a set of preview content tabs
2015-09-10 20:51:02 +10:00
Samuel Georges
275463996e
When toggling empty tabs: if a hidden tab was selected, select the first visible tab
...
Induce tab overlap using negative right margin instead (first-child tab can be hidden)
Use a slightly cleaner approach than in #1401
2015-08-29 18:42:29 +10:00
Jérémy Gaulin
6ec42da584
Hide FormWidget tabs when they contain no fields or only hidden fields after a toggle event on a field has occurred
2015-08-27 22:28:03 +02:00
Samuel Georges
fc04bd1b4c
Added new makeFormWidget() method to WidgetMaker for rendering form widgets individually
2015-08-07 19:06:04 +10:00
Samuel Georges
93f7b7800b
Merge pull request #1306 from Flynsarmy/numberPattern
...
Allow overriding number field pattern attribute
2015-07-25 15:28:46 +10:00
Samuel Georges
4781c703bb
Fixes previewMode on checkboxlist and radio
...
Checkboxlist wasn't showing the placeholder for empty preview values
2015-07-25 09:22:22 +10:00
flynsarmy
a5b41269e7
Allow overriding number field pattern attribute
2015-07-24 16:24:50 +10:00
Samuel Georges
d9b98bccca
Minor
2015-07-21 07:57:04 +10:00
Samuel Georges
846feb6a33
FileUpload now triggers dependsOn event
...
form.beforeRefresh event now uses dataholder pattern
Improve exception handling in ControllerBehavior
2015-07-18 08:50:31 +10:00