Commit Graph

10508 Commits

Author SHA1 Message Date
Niels Lyngsø
5debb4a11b option to hide content editor in overlay 2020-07-01 10:28:02 +02:00
Warren Buckley
b31ffea429 Merge pull request #8358 from umbraco/v8/bugfix/8273-block-list-inline-doctype-creation
BlockEditor Fix - Parse on contentType key
2020-07-01 07:26:57 +01:00
Niels Lyngsø
e2b7043d3c check for $block.data, to verify that the blockObject is not in a destroyed state. 2020-06-30 15:59:06 +02:00
Niels Lyngsø
26fa38c536 use one-way binding 2020-06-30 15:45:20 +02:00
Niels Lyngsø
38e8a93b28 parse on contentType key 2020-06-30 13:36:17 +02:00
Shannon Deminick
df3dc32de6 Block Editor List (#8273)
* add style to create-option in itempicker + removing overflow hidden

* style adjustment

* clean up of html

* correct sentence to use the number 7

* correct overlays, so they can use size

* numberrange prevalue editor

* add confirmRemove overlay

* correcting primary btn colors

* move confirmMessage below content of overlay.

* min max validation for numberrange

* remove comment

* improved actions for block list

* use file tree for view picker

* style adjustment to border of creator item in item-picker

* vertical align

* clean up + validation limit range

* rename ElementTypes to Blocks

* implement block list editor

* renaming

* use Chrome Headless for unit tests

* test for blockEditorService

* safer code

* block list editor

* rename view to overlayView

* block editor work

* Revert "rename view to overlayView"

This reverts commit 5b910c178a.

* block editor implementation

* sync models

* block list editor copy paste feature

* order var declarations

* remove unused paste function

* block list editor better naming

* simpler label generation

* clean up

* compile config for test mode

* Chrome Debug for VS code

* promise test working

* space change

* another two tests

* more tests for block list editor

* provide key on blockModel for angularJS performance optimization

* syncronization from infinite editing layers

* use an isolated scope

* more tests

* fix C# test

* remove unused block watcher component

* clean css

* only show on hover or focus for block-actions

* clean up and prepare for implementing settings

* remove console

* Add ability to render block list editor using Grid style rendering extension

* Enable Block List Editor settings editing

* Add Stacked Content to Block List migration

* Block Editor: Clean-up, refactoring, one step closer being ready for Content-Apps

* changes naming to Submit, to avoid misunderstanding.

* use a common variable on the block model for isOpen, to be able to make Actions show when open.

* NotSupported property editor, to be used when an editor is not supported in the given context.

* remove unused controller

* Hide group header if only one group is presented

* rename notsupport property editor css class

* smaller header for property group

* hide description if no description is presented

* css adjustments

* Inline create button styling: Better spacing, darker blue color for Focus Outline, moving the plus icon to mouse position for better visual appearance.

* css correction

* Add references for picked items

* Revert commit 45e892f350 - Changes api to GetData

* Use the .Data propertry as opposed to GetData in this PartialView

* Fix block list test failures

* Just parsing layout as model for partial views.

* minor adjustments

* Remove DB migrations so that they can be reviewed as a block

* Add migrations for new block editor

* Update default rendering partial view

* Add error handling to default template

* Handle color picker data in stacked content

* BlockList PreValue Editor opens configurations as overlay

* translation for prevalue editor property group headlines

* blockcard corrections

* block list prevalue corrections

* revert agressive clean up

* Block Picker

* MaxPropertyWidth PreValue + Implementation

* Incorporate latest block list editor changes, update migration for changed configuration

* Change declared converter type

* Handle invalid data type references

* Remove code duplicated from PR #7957

* use ElementModel for the ContentModel of an ElementType. So we can use ElementTypeModel for the ModelDefinition aka. the Type.

* do still show itempicker for BlockConfiguration even though there is no ElementTypes to pick. This enables the option to create a new ElementType to be used.

* use the right wrapper, for correct spacing

* parse item

* correct fallback for label

* removed unused callback

* paste feature for block-picker

* localize block-picker tabs

* Slightly change for shadow on block-picker item hover

* Localization of BlockEditor Settings Tab

* localizationService

* only filter when more than 8 items available

* Add multiple blocks if hold down CTRL or SuperKey

* adds notes

* ability to add a scoped stylesheet for block view

* make scoped block draggable + style adjustments

* provide index for custom view

* rename contentModel to data + rename layoutModel to layout

* clean up

* more localization

* openSettings option for block editor

* minor changes for a better developer experience

* paste mistake corrected

* only manipulate content-content-app if its present

* make small overlays slightly bigger

* moved block list entry editor into block list editor folder

* limit labelinterpretator to only runs ones pr. edit. and lets make sure to have a label thought we dont have any properties.

* fixed inline views gulp watcher

* changed vm to a better controller instance name

* make watch for views work again.

* able to re run watch

* make js up to date

* fix white background of image-picker

* media-picker container class

* loading indication

* adjust unit tests to latest interface

* getting started on JS Docs

* converting code to use contentTypeKey instead of contentTypeAlias, still missing a few TODOs.

* revert change

* add todo

* use Guid for Key

* use key

* Updates the caching layer to handle GUID keys for content types while preserving backwards compat, fixes unit tests, removes the strongly typed lists for the block editor value since it's unecessary

* Reverts the nested content changes, fixes up the GetEmptyByKey

* Returns ContentTypeKey from the server, updates js to use this everywhere and fix all js tests.

* Allows key in SimpleContentType

* correct for the new spelling

* appended this. since the method is a non-static class method.

* only add background-image if value isnt null

* simplifyed limits validation

* clean up

* no need to execute a digest.

* define the full model for new configurations

* removed setDataFromBlockModel and general clean up and added documentation

* default size should be medium

* use retriveValuesFrom method to transfer data.

* ability to disable an navigation item

* createElementTypeAndCallback working again for settings.

* still have the ability to retrive a scaffold model by alias, since we are still using alias in clipboard service.

* disable clipboard tab if no available paste options

* ups, should stay as alias

* disable clipboard when empty

* use property alias for content add button

* use a grey that can be seen on top of grey and on top of white.

* some accessibility improvements

* rename entry to block

* appended ' and added space in Element Type

* use background color for hover to corospond with active state

* make nested content unsupported

* Moving BlockEditorModelObject into its own file for Documentation purpose. Same goes for renaming BlockModel to BlockObject. and a lot of documentation written.

* fix links in js docs

* added a blocklistentryeditor for unsupported blocks

* ability to retrive the $scope from UmbVariantContentEditors, needed for Block Editor to get a scope existing across variants and splitview.

* Appending the block objects to layout, to share it across variants and in split-view.

* removed trailing comma

* Unsupported block

* Dont copy unsupported blocks

* use grey color for unsupported block

* text correction

* we dont have this fallback anymore

* sort properties

* Text change

* css correction

* use active to determine if an inline editor is expanded. To enable the inline editor to be expanded on creation.

* using udi instead of key.

* bringing the runtime block key back

* live editing ability

* live editing for settings data

* call formSubmit before property editor are removed from DOM. Both for overlay-editing and inline-editing. Fire an postFormSubmitting event after formSubmitting event to let editors know that data could have been updated.

* make sure settings object exists

* only set active to false if it was false before opening the editor.

* update test with new scope parameter

* move destroy responsibility to blockObject

* rename onDestroy to destroy

* added some JS-Docs

* correction jsDocs

* Update ElementType Resource to not use hardcoded URL but to use the Umbraco.Sys.ServerVariables.umbracoUrls instead

* Remove partially completed ConvertToElement migration, fixed in issue 7939 instead.

* Remove external property editor migration

* corrected naming of umbBlockListScopedBlock and umbBlockListBlock

* correct ngdoc type

* removed vscode specific configuration of karma

* Finished Todo, gets name of documentType if copying all entities in an infinite editor

* changed comment from TODO to something that explains the state.

* stop tracking build output files.

* rename files to match file name conventions

* this should not happen.

* remove dublicated code

* rename requestCopyBlock to copyBlock

* make sure images does not repeat.

* scale thumbnail for block showcase

* renamed blockcard.component to umb-block-card and moved it.

* removed inline style

* correct style location

* corrected filepath

* corrected file path

* keep elementTypes up to date through the EventService.

* mark Umbraco.BlockList as unsupported inside Nested Content

* correct js docs name

* remove comment

* remove comment

* remove unused controller

* rename inline method name

* corrected spelling mistake

* remove not very used vars

* make binding one-way

* split in multiple lines

* corrected default rendering

* removing documentation that is relevant for developers of new block editors. this documentation will be transfered to Our documentation.

* added danish translation

* corrected blog to blok

* Remove invalid using statement

* use native forEach

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Benjamin Carleski <benjamin@proworks.com>
Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Claus <claus@claus.nu>
2020-06-30 10:52:42 +01:00
Sebastiaan Janssen
fee6ef0fb0 Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
2020-06-24 09:05:22 +02:00
Kenn Jacobsen
90a9ce4c5d Fix a few localizatoin glitches in the listview "Order by" selector 2020-06-23 18:43:43 +02:00
Kenn Jacobsen
b28bb9bb94 Listview "Order by" should not contain removed properties 2020-06-23 18:38:41 +02:00
Kenn Jacobsen
fe12f35d79 Parse complex RTE styles rules correctly 2020-06-23 18:37:23 +02:00
Jan Skovgaard
d539fdf4f6 Add backdrop when menu items are opened (#8121) 2020-06-23 18:36:09 +02:00
Kenn Jacobsen
b38cf41752 Add a bit of spacing in infinite listview editing 2020-06-23 18:34:03 +02:00
Kenn Jacobsen
a7b0a75e5d Ensure that "sort" is available as "order by" for new listviews 2020-06-23 18:32:27 +02:00
BatJan
dc7277771c Improve accessibility and UX 2020-06-23 18:30:11 +02:00
Jan Skovgaard
4b673815a1 Umb-editor directive: Fix semantics (#8160) 2020-06-23 18:27:00 +02:00
Kenn Jacobsen
b55fdd60e5 Update listviews after sorting children 2020-06-23 18:18:50 +02:00
BatJan
dc5d418477 Fix semantics and accessibility issues 2020-06-23 18:14:56 +02:00
Jan Skovgaard
a70f95b4e5 Sort dialog: Accessibility optimizations (#8156) 2020-06-23 18:12:24 +02:00
Kenn Jacobsen
9723c81d27 Use element type description as tooltip in the Nested Content "Add content" dialog 2020-06-23 18:08:42 +02:00
Jan Skovgaard
6c2bc3ca37 Accessibility improvement: umb-context-menu (#8155) 2020-06-23 18:07:09 +02:00
BatJan
4aef0d0997 Add missing foucs style 2020-06-23 17:38:39 +02:00
BatJan
75ae5e69e0 Change binding type 2020-06-23 17:37:21 +02:00
Søren Kottal
66a75dbc1e adds row immediately if only one layout is allowed 2020-06-23 17:35:53 +02:00
Kenn Jacobsen
7b0468fb39 Prevent property previews from having focus 2020-06-23 17:32:50 +02:00
Kenn Jacobsen
5ce9a3e74f Reload property preview when changing property type 2020-06-23 17:31:30 +02:00
Bjarne Fyrstenborg
e19f375c84 Update slider to handle merging of overlapping tooltips (#8074) 2020-06-23 17:24:01 +02:00
Bjarne Fyrstenborg
69cfcc568c Add aria-hidden to icons in url lists (#8079) 2020-06-23 17:22:53 +02:00
Bjarne Fyrstenborg
611e7d3f69 Media picker folder create loader (#8306)
* Format document

* Use umb-loader component instead since this wrap the loader so it doesn't cause overflow on animation

Co-authored-by: Bjarne Fyrstenborg <bf@oerskov-gruppen.lan>
2020-06-23 13:17:56 +02:00
Sebastiaan Janssen
5cb5604224 Update to the latest jQuery 2020-06-23 11:55:54 +02:00
dependabot[bot]
7210cf45d2 Bump angular from 1.7.9 to 1.8.0 in /src/Umbraco.Web.UI.Client (#8312)
Bumps [angular](https://github.com/angular/angular.js) from 1.7.9 to 1.8.0.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular.js/compare/v1.7.9...v1.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-23 11:08:19 +02:00
Anders Bjerner
94dc4c70bb Merge pull request #8309 from richarth/patch-1
Spelling correction
2020-06-20 21:38:53 +02:00
Anders Bjerner
3b72c3de1f Merge pull request #8307 from bjarnef/v8/feature/macro-partial-view-button
Use button element for add-button in macro partial view
2020-06-20 21:03:59 +02:00
patrickdemooij9
591575b47d Added content apps for document types (#8187)
* Added content apps for document types

* PR Feedback updates

* Updated the javascript code to use Utilities

* Replace tolowercase comparison with localeCompare
2020-06-19 18:10:16 +01:00
Niels Lyngsø
3781182363 fix of npm run unit, plus begin able to test code that uses promises. 2020-06-19 09:41:19 +02:00
Richard Thompson
2fd4512d3a Spelling correction
Fixed a typo.
2020-06-18 10:55:01 +01:00
Bjarne Fyrstenborg
4f70f0e8c5 Use button element for add-button in macro partial view 2020-06-18 00:07:26 +02:00
Warren Buckley
d4c464c123 Remove duplicate comment
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbtour.directive.js
2020-06-17 13:38:24 +01:00
Warren Buckley
d7cd52161f Fix SkipStep in tour directive was looking at wrong DOM selector it needs to be skipStepIfVisible 2020-06-17 13:37:40 +01:00
Bjarne Fyrstenborg
fe90f98515 Add id attribute so click on property label focus in input (#8078)
Co-authored-by: Bjarne Fyrstenborg <bf@oerskov-gruppen.lan>
2020-06-17 12:56:41 +02:00
Marc Goodson
57d08c964a Broadcast 'formSubmitting' event when Macro Parameter Overlay is submitted
Some property editors - eg MultiUrlPicker listen out for the broadcast of the 'formSubmitting' event before setting their value of $scope.model.value... if these editors are used as Macro Parameters they do not save their value. This commit adds the broadcasting of the event when the 'submit' button is called and any parameters have been set.
2020-06-16 14:15:09 +02:00
Bjarne Fyrstenborg
35751e257f Ensure SVG image is shown in preview (#8007)
Co-authored-by: Bjarne Fyrstenborg <bf@oerskov-gruppen.lan>
2020-06-15 11:48:22 +02:00
Bjarne Fyrstenborg
fda7251aed Upload media and select media type (#8043) 2020-06-12 16:01:19 +02:00
Sebastiaan Janssen
9be4775acf Make sure to use the new Utilities class 2020-06-12 15:46:06 +02:00
Bjarne Fyrstenborg
c4456c53a0 v8: Fix disappearing image cropper and grid content when using rollback (#5792) 2020-06-12 15:37:05 +02:00
Bjarne Fyrstenborg
349a46c311 Adjust property editor settings (#8251)
Co-authored-by: Bjarne Fyrstenborg <bf@oerskov-gruppen.lan>
2020-06-11 19:14:46 +02:00
Kenn Jacobsen
ae993519ce Fix radio button checked appearance 2020-06-10 21:14:07 +02:00
Rachel Breeze
1347b973f1 V8/tmplogin (#8203) 2020-06-10 17:20:44 +02:00
Claus
c4e465ce1f Merge pull request #8175 from kjac/v8/fix/checkbox-background-glitch
Fix glitch in umb-checkbox background
2020-06-09 14:26:27 +02:00
Warren Buckley
e82f504658 Adds skipStepIfVisible property to JSON Tour Steps to allow skipping if DOM item is present (#8235)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2020-06-09 08:55:06 +02:00
Kenn Jacobsen
4266e2b1d1 Fix "Edit: undefined" in content editor title 2020-06-08 09:20:06 +02:00