Kerim
d6e4c9171b
from mac
2022-12-14 20:55:13 +05:00
Luke Towers
b2d88d6da9
Fix issue when refreshing an entire form that occurs because the toggleEmptyTabs timer runs after the elements it was based on have all been replaced.
2020-06-24 11:33:44 -06:00
Rike-cz
b445b65150
Add support for linkable form tabs ( #4754 )
2020-04-04 21:56:48 -06:00
Luke Towers
52cdfda935
Trigger form change events when items are added / removed in a repeater.
...
Fixes #3595 . Replaces #4736 . Credit to @SebastiaanKloos for the initial solution.
Also fixes a longstanding issue where dynamically added fields were not considered when refreshing dependant fields.
2020-03-30 18:07:53 -06:00
Klaas Poortinga
cbfa309c39
Modify password field to support placeholder attribute ( #5003 )
2020-03-26 13:38:40 -06:00
danielbidala
c27e4d1148
Display '0' in preview mode for type: number fields ( #4944 )
2020-02-19 23:26:17 -06:00
Ben Thomson
f8634e0757
Immediately load a lazy tab if it is the initial active tab.
...
Fixes #4879
2020-02-19 10:49:15 +08:00
Samuel Georges
953061797d
Remove hard coded widget name for lazy tabs ( #4839 )
...
- The widget alias may not always be form, so pass the handler name
- No need to spam non-lazy tabs with useless data tags
2019-12-22 16:39:45 +11:00
Marc Jauvin
3a49b5fa7a
allow loading of lazy tabs for secondary tabs as well ( #4839 )
2019-12-22 15:24:42 +11:00
Samuel Georges
63729e401b
Fixes typo in merge conflict
2019-12-09 20:58:16 +11:00
Tobias Kündig
4704f85096
Added lazy loading for backend form tabs ( #4658 )
...
* Added lazy loading for backend form tabs
2019-12-09 20:45:26 +11:00
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 22847e7892 . 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 c836d92f9f
...
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