Commit Graph

11641 Commits

Author SHA1 Message Date
Lucas Michaelsen
b97f6dcb2f HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI (#10455)
* HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI - ScreenReader reads propperly

* ensurce render if condition is meet. If any child render a subset of unorder list withs is list-items
2021-06-15 09:09:26 +10:00
Jan Skovgaard
40c4c875c4 Link picker: Make link input full width if anchor option is disabled (#10313)
* Add missing focus styling

* Add width modifier to link input

* same result without adding new classes

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-09 09:02:37 +10:00
Nikcio
4e60e7dec1 Translation added
Added some danish translations and fixed a translation problem in the copy document.
2021-06-09 08:01:02 +10:00
Bjarne Fyrstenborg
e9c3c9fea6 Fix styling issues with listview sorting in overlay. (#10351)
Remove margin bottom at input fields
2021-06-08 10:19:26 +02:00
Bjarne Fyrstenborg
0e70416e27 Update connect color in noUiSlider (#10349)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 11:32:01 +10:00
patrickdemooij9
31c0faa54e Updated umbtable.directive.js for a working example
I noticed that the example on https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.directives.directive:umbTable is actually not working. items should be replaced with vm.items.
2021-06-07 10:41:27 +10:00
Bjarne Fyrstenborg
340273a604 Support custom SVG icon in Nested Content (#10368)
* Use custom SVG icon in Nested Content

* Get icon once

* Assign value instead of compare
2021-06-07 10:40:14 +10:00
Bjarne Fyrstenborg
57cc3d5da2 Use custom SVG icon in user group filter 2021-06-07 10:31:14 +10:00
Bjarne Fyrstenborg
f0e13e87d5 Support custom SVG icon in grid editor row configuration (#10361)
* Use custom svg icon in grid editor row configuration

* Use umb-icon in grid editor placeholder

* Use control icon in grid editor placeholder

* use umb-icon in itempicker to ensure svg icons are displayed

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 10:28:47 +10:00
Bjarne Fyrstenborg
5517a86972 Support custom SVG icon in listview (#10345)
* Fix custom SVG icons in listview layouts

* Fix icon in content grid

* Fix icon in umb-folder-grid

* Fix SVG icons in create dialogs

* Get icon once

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 09:33:52 +10:00
Bjarne Fyrstenborg
c2c6413eb7 Support custom SVG icon in umb-child-selector component (#10344)
* Use umb-icon component

* Specify button type attribute

* Use umb-search-filter component

* Adjust styling of item picker

* Replace trash icons with umb-icon

* Replace a few icons in umb-grid-selector as well

* Use umb-icon in datatype picker

* Ensure icons are styles correct in legacy format

* Use umb-icon component in macro parameter editors and fix wrong end closing tag from button element

* Use umb-icon in macro parameter editor overlay
2021-06-07 08:27:02 +10:00
Andy Butland
cd53d7a294 Removed hard-coded email validation for healthcheck fix value. (#5557)
Made validation for healthchcls more flexible, supporting none, email and regex.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 12:54:11 +10:00
Bjarne Fyrstenborg
57f7776848 Add input id so click on property label set focus in input (#9477)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 11:20:56 +10:00
Bjarne Fyrstenborg
3c2e7759fb Support custom SVG icon in block list editor (#10365)
* Use custom SVG icon in block card

* Adjust icons in block list editor views
2021-06-02 11:00:01 +10:00
Bjarne Fyrstenborg
0990599c63 Support custom SVG icon in content app 2021-06-02 10:50:16 +10:00
Vlael Layug
1c630e3c5f inject clearAddUserForm() to inviteUser condition 2021-05-28 09:35:49 +02:00
Bjarne Fyrstenborg
2697431de6 Fix issue with extend of object in keyboard service 2021-05-28 17:10:21 +10:00
Bjarne Fyrstenborg
7cccbb3fbf Replaced angular.extend with Utilities.extend (#10023)
* Replace angular.extend with Utilities.extend

* Replace more references of angular.extend with Utilities.extend

* Replace angular.extend

* Replace last reference of angular.extend except in Utilities itself

* Use spread operator

* Add spread operator

* Use existing format with empty destination object

* Configurate Babel to work with JS spread operator

* Use default for loose property which is "false"

* use alias for angular.extend - removes need for any other changes and makes multiple arguments easy

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:25:56 +10:00
patrickdemooij9
3440cbbac9 Fixed 10144: Prevalue alias not set (#10163)
* Fixed 10144: Prevalue alias not set

* Remove console.log

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:14:07 +10:00
Sebastiaan Janssen
7d25439b09 Merge branch 'v8/dev' into v8/contrib 2021-05-27 12:28:01 +02:00
Sebastiaan Janssen
a845d2bffd Shows a warning for people tempted to switch to the new media picker 2021-05-27 10:41:56 +02:00
Mads Rasmussen
008e76c08f fixes #10297 8.14-RC - A few areas where focus lock doesn't work properly 2021-05-26 14:32:59 +02:00
Niels Lyngsø
0a9c1c7c8e Complex validation for RTE property editor (#10328)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-26 13:08:25 +02:00
Niels Lyngsø
630fa6a989 dont remove outline 2021-05-25 15:07:42 +02:00
Niels Lyngsø
a68a6b2ac2 added windowResizeListener 2021-05-25 15:06:58 +02:00
Niels Lyngsø
ecdc687e39 use label 2021-05-25 15:05:45 +02:00
Bjarne Fyrstenborg
710ecf2537 Add option to remove/cancel added crops (#10267)
* Add option to remove/cancel added crops

* Move vm functions to top

* Only show cancel button for empty/new crop
2021-05-20 09:00:23 +10:00
Niels Lyngsø
9730a18c9b #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit 017b56eee1)
2021-05-19 12:12:58 +02:00
Sebastiaan Janssen
7b77d21d1b Merge branch 'v8/8.13' into v8/8.14
# Conflicts:
#	src/SolutionInfo.cs
2021-05-19 12:12:35 +02:00
Niels Lyngsø
36c49b0a25 #10274 Variant sorting should take into account that there might not be any language (#10278)
* 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)
2021-05-19 12:11:06 +02:00
Niels Lyngsø
017b56eee1 #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-19 12:06:17 +02:00
dependabot[bot]
cce3c49e78 Bump underscore from 1.9.1 to 1.12.1 in /src/Umbraco.Web.UI.Client
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.9.1...1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 10:47:40 +02:00
Adam Nelson
980d9ad5cf #10193 The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results (#10202)
* 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>
2021-05-12 12:36:13 +10:00
Sebastiaan Janssen
809fd81982 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
2021-05-11 10:57:57 +02:00
Bjarne Fyrstenborg
17e43a6b09 Update to noUiSlider v14.6.4 2021-05-11 14:45:00 +10:00
Chad
96d37a5e64 Fix copy button inactive, nodeSelectHandler had too many args passed. (#10158) 2021-05-11 14:32:27 +10:00
dependabot[bot]
8ff88f47de Bump lodash from 4.17.19 to 4.17.21 in /src/Umbraco.Web.UI.Client
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 08:58:15 +10:00
patrickdemooij9
ed62f7d672 Add "Insert Macro" as language key (#10164)
* Add "Insert Macro" as language key

* Remove "a" as it wasn't in the original

* Formatting

* add label in FR lanuage  file
2021-05-09 11:42:29 +02:00
Anders Bjerner
68fdc80b6a Added target="_blank" to "Update available" link 2021-05-09 01:29:42 +02:00
Bjarne Fyrstenborg
aaa13303b2 Adjust grid editor layout configuration (#9887)
* 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>
2021-05-07 10:23:19 +02:00
Bjarne Fyrstenborg
a464fadf2c Update spectrum color picker to latest v2.0.8 (#10225)
* Update spectrum color picker to latest v2.0.8

* Update package-lock.json
2021-05-06 12:54:07 +02:00
Niels Lyngsø
6e16550b84 Dont let validation issues prevent saving (#9691)
* 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>
2021-05-05 11:18:46 +02:00
Harikrishna Parmar
857997b5d4 Bugfix/umbraco backoffice icon #10192 (#10212)
* Umbraco backoffice icon #10192

Added umbraco icon

* Update icon-umbraco.svg

updated viewbox
2021-05-05 02:10:26 +02:00
Niels Lyngsø
7ab09cb404 Ensure BlockObjects have references to a working current property editor. (#10195)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-04 16:58:31 +02:00
Jan Skovgaard
a721f92aed Accessibility: Add focus lock for the infinite editor (#8522)
* 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>
2021-05-04 10:08:02 +01:00
Niels Lyngsø
c8a98a670c Review AB11194 — Improve media selector UX (#10157)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

* Show Media Type Selector if there is multiple types that matches the current upload batch

* clean-up and refactoring

* auto pick option

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-05-04 11:06:52 +02:00
Niels Lyngsø
ce34165e9d use formCtrl.$invalid instead of running angularHelper.countAllFormErrors, as this method is way too heavy to run in a $watch. (#10134)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-03 16:18:15 +02:00
Bjarne Fyrstenborg
727be420ff Use umb-icon component in listview dropdown 2021-04-29 08:40:00 +10:00
Bjarne Fyrstenborg
349c5ac3ab Fix issue with active style affected nested block list elements 2021-04-29 08:21:36 +10:00
Niels Lyngsø
1a5b88525b Media Picker v3 (#9461)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-04-22 10:28:53 +02:00