[FEATURE] Improved JavaScript Modal API 28/52228/14
authorBenjamin Kott <benjamin.kott@wfp2.com>
Wed, 29 Mar 2017 01:27:14 +0000 (03:27 +0200)
committerBenni Mack <benni@typo3.org>
Fri, 31 Mar 2017 12:51:21 +0000 (14:51 +0200)
commit0612bfcd94c0f786b5dfce6ce3db1c78a6499078
tree9dfb7fa74a8baa5213567bf7ad19aa263f1285b6
parent448d1312a22dad256f760e67d56680e78c8b6631
[FEATURE] Improved JavaScript Modal API

To improve the usability and flexibility for a unified handling of
overlays in the backend we're opening the existing API for modals to be
more flexible and adjustable to your needs for advanced usage. With the
introduction of the advanded API it is now possible to pass configuration
via a json object. This enables more easy configuation and better
fallbacks if the modal is not correctly configured.

For a unified experience all modals are now centered by default, will be
kept in place automatically and are available in different sizes depending
on your needs. In addition to this there is also a new type for loading
content into an iframe. Buttons now have full support for the TYPO3 Icon
API and data attributes can also be set by configuration.

Resolves: #80579
Releases: master
Change-Id: Iddd260193a55335889db1068fbd8684011db6518
Reviewed-on: https://review.typo3.org/52228
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
17 files changed:
Build/Gruntfile.js
Build/Resources/Public/Sass/backend.scss
Build/Resources/Public/Sass/component/_modal.scss [new file with mode: 0644]
Build/Resources/Public/Sass/typo3/_element_modal.scss [deleted file]
components/testing_framework/Classes/Core/Acceptance/Support/Helper/ModalDialog.php
typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationElement.html
typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationWizard.html
typo3/sysext/backend/Resources/Private/TypeScript/ImageManipulation.ts
typo3/sysext/backend/Resources/Public/Css/backend.css
typo3/sysext/backend/Resources/Public/JavaScript/ImageManipulation.js
typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js
typo3/sysext/backend/Resources/Public/JavaScript/Modal.js
typo3/sysext/backend/Resources/Public/JavaScript/Wizard.js
typo3/sysext/core/Documentation/Changelog/master/Deprecation-80579-ModalCenter.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-80579-ImprovedJavaScriptModalAPI.rst [new file with mode: 0644]
typo3/sysext/lang/Resources/Private/Language/locallang_wizards.xlf
typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/typo3link.js