* Variant sorting should take into account that there might not be any language available
* fix languages
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit e19a5989e9)
* The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results #10193
* Updated comment.
* Another updated comment.
Co-authored-by: Adam Nelson <anelson@bauerxcelmedia.com.au>
* Fix wrong end closing tag
* Add button type attribute
* Assign null instead of undefined
* Left align text in row button
* Assign temporary rows to currentLayout
* Cleanup output
* Register functions in vm
* Move nameChanged property to init function
* Don't set toggled as checked when switching columns in row
* Use existing behaviour to set allowAll
* Remove vm.layout again
* copy rows when adding new section + clean up rows on submit and close
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* skipValidation for content save
* Correcting merge
* Use warning style when saving
* final corrections
* skip client side validation
* remove log
* show invariant property validation issues in the save dialog
* use warning color for .show-validation-type-warning
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
* Toggle the inert attribute when adding or removing the first/last editor
* Add focus lock directive for the editor
* Increase timeout period so infinite editors transclusions will also have time to finish
* Make sure elements containing .ng-hide are not part of the possible focusable elements
* Update comments
* Conditionally add umb-focus-lock and inert attributes
* Hook into the evenservice to reinitialize the onInit method if the last editor has not been closed when the lock is used in infinite mode
* Don't try to add focus to something that does not exist
* Minor code refactor placing some variables outside the init method
* Refactoring code to make things a bit more clean
* Remove the event listener when the directive is destroyed
* Add mutationObserver to watch for attribute changes and then trigger the getFocusableElements method
* Fetch focusable elements on domChange
* Ensure that args exists before trying to read the properties
* Refactor to use mutationobserver when overlays are closed passing the correct target and re-initialising the directive to activate the focus lock
* Change ng-hide to ng-if so the focusable elements inside the hidden div are not being selected
* Narrow attributes to look for down to the bare minimum of the umb-focus-lock
* Refactor to using good ol' for loop (Fastest)
* Disconnect the observer once the init function has been called - Massive performance improvement
* Event handler cleanup
* Refactor the code to re-initialize the init method on destroy in case infinite editors still exists in the DOM
* Align codestyle
* Add logic to deal with "lastKnowFocused" elements in infinite editing mode
* Re-add attributes after merge with contrib branch
* Correct spelling mistake
* Move onInit into the $includeContentLoaded event and set the timeout to 0
* Make sure to add focus to elements with role="button" as well
* Add comments and remove timeout / delay settings
* Debouce domObserver
* Wrap init function in safeApply
* Add comments to help remember / understand what things are intended to be doing and add missing event param as well as getting rid of some unused code
* Adding more comments
* Move setting of first and last focusable elements into the setElement function
* Remove todo
* Move the setup of first and last focusable elements back to where they were...
Co-authored-by: Joe Glombek <gh@joe.gl>