Commit Graph

33025 Commits

Author SHA1 Message Date
Shannon
ffe41fcb68 Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/block-editor-list-validation
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js
2020-07-17 13:51:18 +10:00
Shannon
b57545a9b0 No need for 2x the same component, we just change how we $compile, fixes up showing the validation border 2020-07-17 13:37:36 +10:00
Shannon
4d06094696 Ensures that FormController hierarchy is maintained with infinite editors 2020-07-17 12:21:33 +10:00
Shannon
0afdd69416 Fixes deleting nodes with server validation and also ensuring that the dirty state is set on the form 2020-07-17 01:40:32 +10:00
Shannon
d01b06bd9c only call model state callbacks once instead of exponentially, fixes valPropertyMsg, no more watching the value, uses clever trick of assigning $validators, now works for nested content because we don't need to watch values, makes nested content look more like block editor, adds error borders 2020-07-17 00:48:28 +10:00
Shannon
5c91774ae9 ensure culture carries through to child model state and ensure language culture is carried through on the block content scaffolds 2020-07-16 18:52:53 +10:00
Shannon
2af1feadfc adds error styling 2020-07-16 17:49:23 +10:00
Shannon
b7e25eed21 Yay! gets it all working for the block editor, refactored counting form errors recursively to actually work and be readable, updates valPropertyMsg with all of the odd edge cases. 2020-07-16 17:31:46 +10:00
Shannon
1291545908 Fixes styling since umb-property is a component, fixes binding to the property validation path 2020-07-15 17:54:03 +10:00
Shannon
b32d92ed07 Add valServerMatch which we now use to highlight block rows if they have errors. 2020-07-15 16:49:54 +10:00
Shannon
f4d8d0e28e adds ability to match suffix, prefix and contains for the serverValidationManager + tests 2020-07-15 15:08:17 +10:00
Shannon
f759ab4d36 Fixes block list editor to correctly re-sync it's view model after persisting 2020-07-14 10:37:30 +01:00
Shannon
74ab1c0262 Updates serverValidationManager to have different matching options, fixes unit tests, now need to write tests for the Suffix match 2020-07-14 18:09:46 +10:00
Shannon
0b78b277e3 remove testing html 2020-07-14 16:43:30 +10:00
Shannon
1795153fad fixes exception handling in content editor 2020-07-14 16:42:10 +10:00
Shannon
551a5a82ce Ensures we don't display the complex json as notification 2020-07-14 15:23:09 +10:00
Shannon
b37a4d151b removes console.log outputs 2020-07-14 13:44:59 +10:00
Shannon
f9fdbc41ab removes notes from valPropertyMsg 2020-07-14 13:42:35 +10:00
Shannon
5296213bab fixes udi service infinite loop 2020-07-14 10:09:25 +10:00
Shannon
212dc7f0fa notes 2020-07-14 10:08:59 +10:00
Shannon
51c338f04b Fixes block list editor to correctly re-sync it's view model after persisting 2020-07-14 09:43:10 +10:00
Shannon
bbbb7a052b Getting close, adds tests, fixese the key being set on the block, gets errors clearing, now need to make the UI behave. 2020-07-10 18:06:11 +10:00
Shannon
00c83182e7 get validation path prefixes matching in serverValidationManager 2020-07-10 12:22:22 +10:00
Shannon
bd3bc81b7c Gets validation paths generated and tested 2020-07-10 09:25:20 +10:00
Shannon
0722adba2f WIP - with lots of notes 2020-07-10 08:44:43 +10:00
Shannon
f4e31e1dba Ensures valid/non valid errors are handled all the time with the serverValidationManager (need to write tests for that), tries to recursively clear property errors, thought that works it clears errors when there are other child nested errors, need to rethink some things. 2020-07-07 14:40:55 +10:00
Shannon
6004d7adaa seems to work with inline now 2020-07-07 13:03:54 +10:00
Shannon
c4e7929e68 Converts umbProperty to a component, gets nested valPropertyMsg validators clearing (as a prototype), need to check TODOs, test inline editing, etc... 2020-07-07 12:50:15 +10:00
Shannon
7a482a1a9f Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/block-editor-list-validation 2020-07-06 20:31:35 +10:00
Warren Buckley
4e8feae35b Merge pull request #8381 from umbraco/v8/feature/block-list-more-solid
V8/feature/block list more solid
2020-07-03 12:50:12 +01:00
Niels Lyngsø
b017b3f1b6 improve test script 2020-07-03 12:22:23 +02:00
Niels Lyngsø
9f208a0ff1 improve existence, destroy and watchers 2020-07-03 12:22:14 +02:00
Shannon
6c13fb3af3 Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/block-editor-list-validation
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklistentryeditors/labelblock/labelblock.editor.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js
2020-07-02 15:29:13 +10:00
Shannon
9649b22e0d remvoes comments and unneeded code 2020-07-02 15:13:05 +10:00
Niels Lyngsø
c74b03a1b6 check for object before prop 2020-07-01 20:10:28 +02:00
Niels Lyngsø
f1c5e19124 no need for var twice 2020-07-01 20:10:08 +02:00
Warren Buckley
d4898b58e0 Merge pull request #8368 from umbraco/v8/feature/block-list-hideContentinOverlay-v2
V8/feature/block list hide contentin overlay v2
2020-07-01 13:40:30 +01:00
Niels Lyngsø
69c2ab20ff correct behaviour 2020-07-01 11:45:45 +02:00
Niels Lyngsø
22aa76d6b1 remove unused line 2020-07-01 10:33:13 +02:00
Niels Lyngsø
d2678135fe bail out if we dont have settings. 2020-07-01 10:32:20 +02:00
Niels Lyngsø
8f7194df36 remove line 2020-07-01 10:30:20 +02:00
Niels Lyngsø
5debb4a11b option to hide content editor in overlay 2020-07-01 10:28:02 +02:00
Claus
f0efc7f0c0 Merge pull request #8366 from umbraco/v8/bugfix/improve-block-list-default-razor
Improve block list default razor view
2020-07-01 09:19:33 +02:00
Warren Buckley
5173a7b589 Remove try/catch block as it will make it hard for people to see what the issue when using the Razor view when building sites 2020-07-01 08:07:30 +01: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
Shannon
a8a1bb2a55 manually merge in benj PR 2020-07-01 15:01:55 +10:00
Shannon
1b69620ffc Merge remote-tracking branch 'origin/v8/8.7' into v8/feature/block-editor-list-validation
# Conflicts:
#	src/Umbraco.Core/Models/Blocks/IBlockElement.cs
#	src/Umbraco.Tests/PropertyEditors/BlockListPropertyValueConverterTests.cs
#	src/Umbraco.Web.UI.Client/src/common/services/blockeditormodelobject.service.js
#	src/Umbraco.Web.UI.Client/src/common/services/udi.service.js
#	src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/blockeditor/blockeditor.controller.js
#	src/Umbraco.Web.UI.Client/src/views/components/blockcard/umbBlockCard.component.js
#	src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html
#	src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umbelementeditorcontent.component.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/blocklistentryeditors/labelblock/labelblock.editor.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umb-block-list-block.component.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umb-block-list-property-editor.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umb-block-list-scoped-block.component.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/umbBlockListPropertyEditor.component.js
#	src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml
#	src/Umbraco.Web/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/BlockListPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/ValueConverters/BlockEditorConverter.cs
#	src/Umbraco.Web/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs
2020-07-01 14:52:29 +10:00
Shannon
086d7b6e23 ensures the udi structure works always for the validation key 2020-07-01 13:00:56 +10:00
Shannon
7c6cf3710b Gets the inherited property validation working from the server side. 2020-07-01 12:44:34 +10:00
Shannon
2fc6ed10fb Gets inherited property validation working but will switch this to server side 2020-07-01 12:10:12 +10:00