From f9433253e97ccb903e9a5bf88a9ec58e5d83d27a Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 20 Jan 2023 12:35:17 +0100 Subject: [PATCH] clean up --- .../models/Umbraco.ColorPicker.ts | 2 +- .../models/Umbraco.Decimal.ts | 2 +- .../models/Umbraco.Integer.ts | 2 +- .../models/Umbraco.ListView.ts | 32 ++++++++++++++++++- .../models/Umbraco.MultipleTextString.ts | 8 ++--- .../uis/block-list/manifests.ts | 6 ++++ .../uis/checkbox-list/manifests.ts | 2 +- .../uis/collection-view/manifests.ts | 29 ----------------- .../uis/document-picker/manifests.ts | 6 ++++ .../uis/dropdown/manifests.ts | 2 +- .../uis/radio-button-list/manifests.ts | 2 +- .../uis/text-box/manifests.ts | 2 +- 12 files changed, 54 insertions(+), 41 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ColorPicker.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ColorPicker.ts index 61f0e1dfd6..0dff209166 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ColorPicker.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ColorPicker.ts @@ -15,7 +15,7 @@ export const manifest: ManifestPropertyEditorModel = { propertyEditorUI: 'Umb.PropertyEditorUI.Toggle', }, { - alias: 'colors', + alias: 'items', label: 'Colors', description: 'Add, remove or sort colors', propertyEditorUI: 'Umb.PropertyEditorUI.ColorPicker', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Decimal.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Decimal.ts index 8f81d9931c..15e46b6af4 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Decimal.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Decimal.ts @@ -20,7 +20,7 @@ export const manifest: ManifestPropertyEditorModel = { propertyEditorUI: 'Umb.PropertyEditorUI.Number', }, { - alias: 'stepSize', + alias: 'step', label: 'Step size', description: 'Enter the intervals amount between each step of number to be entered', propertyEditorUI: 'Umb.PropertyEditorUI.Number', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Integer.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Integer.ts index 63ff9bb023..48df3a939b 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Integer.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.Integer.ts @@ -20,7 +20,7 @@ export const manifest: ManifestPropertyEditorModel = { propertyEditorUI: 'Umb.PropertyEditorUI.Number', }, { - alias: 'stepSize', + alias: 'step', label: 'Step size', description: 'Enter the intervals amount between each step of number to be entered', propertyEditorUI: 'Umb.PropertyEditorUI.Number', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ListView.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ListView.ts index af254ad673..5ba53b7d7f 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ListView.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.ListView.ts @@ -6,7 +6,37 @@ export const manifest: ManifestPropertyEditorModel = { alias: 'Umbraco.ListView', meta: { config: { - properties: [], + properties: [ + { + alias: 'pageSize', + label: 'Page Size', + description: 'Number of items per page.', + propertyEditorUI: 'Umb.PropertyEditorUI.Number', + }, + { + alias: 'orderDirection', + label: 'Order Direction', + propertyEditorUI: 'Umb.PropertyEditorUI.OrderDirection', + }, + { + alias: 'includeProperties', + label: 'Columns Displayed', + description: 'The properties that will be displayed for each column', + propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.ColumnConfiguration', + }, + { + alias: 'orderBy', + label: 'Order By', + description: 'The properties that will be displayed for each column', + propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.OrderBy', + }, + { + alias: 'bulkActionPermissions', + label: 'Bulk Action Permissions', + description: 'The properties that will be displayed for each column', + propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.BulkActionPermissions', + }, + ], }, }, }; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.MultipleTextString.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.MultipleTextString.ts index ebe32f190e..0795164b0a 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.MultipleTextString.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/models/Umbraco.MultipleTextString.ts @@ -8,13 +8,13 @@ export const manifest: ManifestPropertyEditorModel = { config: { properties: [ { - alias: 'minNumber', + alias: 'min', label: 'Minimum', description: 'Enter the minimum amount of text boxes to be displayed', propertyEditorUI: 'Umb.PropertyEditorUI.Number', }, { - alias: 'maxNumber', + alias: 'max', label: 'Maximum', description: 'Enter the maximum amount of text boxes to be displayed, enter 0 for unlimited', propertyEditorUI: 'Umb.PropertyEditorUI.Number', @@ -22,11 +22,11 @@ export const manifest: ManifestPropertyEditorModel = { ], defaultData: [ { - alias: 'minNumber', + alias: 'min', value: 0, }, { - alias: 'maxNumber', + alias: 'max', value: 0, }, ], diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/block-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/block-list/manifests.ts index 81094716c3..49401f720f 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/block-list/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/block-list/manifests.ts @@ -27,6 +27,12 @@ const manifest: ManifestPropertyEditorUI = { 'Live editing in editor overlays for live updated custom views or labels using custom expression.', propertyEditorUI: 'Umb.PropertyEditorUI.Toggle', }, + { + alias: 'useInlineEditingAsDefault', + label: 'Inline editing mode', + description: 'Use the inline editor as the default block view.', + propertyEditorUI: 'Umb.PropertyEditorUI.Toggle', + }, { alias: 'maxPropertyWidth', label: 'Property editor width', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/checkbox-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/checkbox-list/manifests.ts index 26fea14b52..a54858705e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/checkbox-list/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/checkbox-list/manifests.ts @@ -13,7 +13,7 @@ export const manifest: ManifestPropertyEditorUI = { config: { properties: [ { - alias: 'options', + alias: 'items', label: 'Add option', description: 'Add, remove or sort options for the list.', propertyEditorUI: 'Umb.PropertyEditorUI.MultipleTextString', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/collection-view/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/collection-view/manifests.ts index 15e32cc656..e99665523e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/collection-view/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/collection-view/manifests.ts @@ -16,41 +16,12 @@ const manifest: ManifestPropertyEditorUI = { group: 'lists', config: { properties: [ - { - alias: 'pageSize', - label: 'Page Size', - description: 'Number of items per page.', - propertyEditorUI: 'Umb.PropertyEditorUI.Number', - }, - { - alias: 'orderDirection', - label: 'Order Direction', - propertyEditorUI: 'Umb.PropertyEditorUI.OrderDirection', - }, - { - alias: 'includeProperties', - label: 'Columns Displayed', - description: 'The properties that will be displayed for each column', - propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.ColumnConfiguration', - }, - { - alias: 'orderBy', - label: 'Order By', - description: 'The properties that will be displayed for each column', - propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.OrderBy', - }, { alias: 'layouts', label: 'Layouts', description: 'The properties that will be displayed for each column', propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.LayoutConfiguration', }, - { - alias: 'bulkActionPermissions', - label: 'Bulk Action Permissions', - description: 'The properties that will be displayed for each column', - propertyEditorUI: 'Umb.PropertyEditorUI.CollectionView.BulkActionPermissions', - }, { alias: 'icon', label: 'Content app icon', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/document-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/document-picker/manifests.ts index ffa823c8f4..ac9902c752 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/document-picker/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/document-picker/manifests.ts @@ -24,6 +24,12 @@ export const manifest: ManifestPropertyEditorUI = { description: 'Require a certain amount of documents', propertyEditorUI: 'Umb.PropertyEditorUI.NumberRange', }, + { + alias: 'ignoreUserStartNodes', + label: 'Ignore User Start Nodes', + description: 'Selecting this option allows a user to choose nodes that they normally dont have access to', + propertyEditorUI: 'Umb.PropertyEditorUI.Boolean', + }, ], }, }, diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/dropdown/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/dropdown/manifests.ts index 3ac72d4dae..2e433170f7 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/dropdown/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/dropdown/manifests.ts @@ -18,7 +18,7 @@ export const manifest: ManifestPropertyEditorUI = { propertyEditorUI: 'Umb.PropertyEditorUI.Toggle', }, { - alias: 'options', + alias: 'items', label: 'Add options', propertyEditorUI: 'Umb.PropertyEditorUI.MultipleTextString', }, diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/radio-button-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/radio-button-list/manifests.ts index 2f118350d6..6570654940 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/radio-button-list/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/radio-button-list/manifests.ts @@ -13,7 +13,7 @@ export const manifest: ManifestPropertyEditorUI = { config: { properties: [ { - alias: 'options', + alias: 'items', label: 'Add option', description: 'Add, remove or sort options for the list.', propertyEditorUI: 'Umb.PropertyEditorUI.MultipleTextString', diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/text-box/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/text-box/manifests.ts index d600fe5b8d..44fcc4e718 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/text-box/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/property-editors/uis/text-box/manifests.ts @@ -45,7 +45,7 @@ export const manifests: Array = [ defaultData: [ { alias: 'inputType', - value: 'text', + value: 'email', }, ], },