Bugfix: Re-introduces Integer, removes Number editor
In v13, the alias for the Numeric property-editor was `Umbraco.Integer`, which in the v14 data-type migration was aligned with `Umb.PropertyEditorUi.Integer`. Also for v14, a `Umb.PropertyEditorUi.Number` had also been introduced, with the Integer being a shared base for both Number and Decimal editors. However due to a subsequent issue between the Number and Decimal editor configurations, the Integer editor was removed. This causes an issue for the v13 to v14 data-type migration. This PR re-introduces the Integer editor and removes the Number editor, and updates all the internal references.
This commit is contained in:
@@ -988,7 +988,7 @@ export const data: Array<UmbMockDataTypeModel> = [
|
||||
id: 'dt-integer',
|
||||
parent: null,
|
||||
editorAlias: 'Umbraco.Integer',
|
||||
editorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
editorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
hasChildren: false,
|
||||
isFolder: false,
|
||||
isDeletable: true,
|
||||
|
||||
@@ -43,7 +43,7 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'gridColumns',
|
||||
label: 'Grid Columns',
|
||||
description: 'Set the number of columns for the layout. (defaults to 12)',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ export class UmbBlockGridTypeWorkspaceViewAreasElement extends UmbLitElement imp
|
||||
<umb-property
|
||||
label=${this.localize.term('blockEditor_areasLayoutColumns')}
|
||||
alias="areaGridColumns"
|
||||
property-editor-ui-alias="Umb.PropertyEditorUi.Number"></umb-property>
|
||||
property-editor-ui-alias="Umb.PropertyEditorUi.Integer"></umb-property>
|
||||
<umb-property
|
||||
label=${this.localize.term('blockEditor_areasConfigurations')}
|
||||
alias="areas"
|
||||
|
||||
@@ -38,7 +38,7 @@ const propertyEditorUiManifest: ManifestPropertyEditorUi = {
|
||||
alias: 'pageSize',
|
||||
label: 'Page Size',
|
||||
description: 'Number of items per page.',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -12,14 +12,14 @@ export const manifest: ManifestPropertyEditorSchema = {
|
||||
alias: 'minNumber',
|
||||
label: 'Minimum number of items',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
alias: 'maxNumber',
|
||||
label: 'Maximum number of items',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -12,14 +12,14 @@ export const manifest: ManifestPropertyEditorSchema = {
|
||||
alias: 'minNumber',
|
||||
label: 'Minimum number of items',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
alias: 'maxNumber',
|
||||
label: 'Maximum number of items',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -13,14 +13,14 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'min',
|
||||
label: 'Minimum',
|
||||
description: 'Enter the minimum amount of text boxes to be displayed',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
alias: 'max',
|
||||
label: 'Maximum',
|
||||
description: 'Enter the maximum amount of text boxes to be displayed, enter 0 for unlimited',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -6,26 +6,26 @@ export const manifests: Array<ManifestTypes> = [
|
||||
name: 'Integer',
|
||||
alias: 'Umbraco.Integer',
|
||||
meta: {
|
||||
defaultPropertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
defaultPropertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
settings: {
|
||||
properties: [
|
||||
{
|
||||
alias: 'min',
|
||||
label: 'Minimum',
|
||||
description: 'Enter the minimum amount of number to be entered',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
{
|
||||
alias: 'max',
|
||||
label: 'Maximum',
|
||||
description: 'Enter the maximum amount of number to be entered',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
{
|
||||
alias: 'step',
|
||||
label: 'Step size',
|
||||
description: 'Enter the intervals amount between each step of number to be entered',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -26,11 +26,11 @@ export const manifests: Array<ManifestTypes> = [
|
||||
},
|
||||
{
|
||||
type: 'propertyEditorUi',
|
||||
alias: 'Umb.PropertyEditorUi.Number',
|
||||
name: 'Number Property Editor UI',
|
||||
alias: 'Umb.PropertyEditorUi.Integer',
|
||||
name: 'Numeric Property Editor UI',
|
||||
element: () => import('./property-editor-ui-number.element.js'),
|
||||
meta: {
|
||||
label: 'Number',
|
||||
label: 'Numeric',
|
||||
icon: 'icon-autofill',
|
||||
group: 'common',
|
||||
propertyEditorSchemaAlias: 'Umbraco.Integer',
|
||||
|
||||
@@ -12,13 +12,13 @@ export const manifest: ManifestPropertyEditorSchema = {
|
||||
alias: 'minVal',
|
||||
label: 'Minimum value',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
{
|
||||
alias: 'maxVal',
|
||||
label: 'Maximum value',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
],
|
||||
defaultData: [
|
||||
|
||||
@@ -24,19 +24,19 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'initVal1',
|
||||
label: 'Initial value',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
{
|
||||
alias: 'initVal2',
|
||||
label: 'Initial value 2',
|
||||
description: 'Used when range is enabled',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
{
|
||||
alias: 'step',
|
||||
label: 'Step increments',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
],
|
||||
defaultData: [
|
||||
|
||||
@@ -12,7 +12,7 @@ export const manifest: ManifestPropertyEditorSchema = {
|
||||
alias: 'maxChars',
|
||||
label: 'Maximum allowed characters',
|
||||
description: 'If empty, 512 character limit',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
},
|
||||
],
|
||||
defaultData: [
|
||||
|
||||
@@ -12,7 +12,7 @@ export const manifest: ManifestPropertyEditorSchema = {
|
||||
alias: 'maxChars',
|
||||
label: 'Maximum allowed characters',
|
||||
description: 'If empty - no character limit',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -18,21 +18,21 @@ export const manifests: Array<ManifestTypes> = [
|
||||
alias: 'rows',
|
||||
label: 'Number of rows',
|
||||
description: 'If empty or zero, the textarea is set to auto-height',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
alias: 'minHeight',
|
||||
label: 'Min height (pixels)',
|
||||
description: 'Sets the minimum height of the textarea',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
{
|
||||
alias: 'maxHeight',
|
||||
label: 'Max height (pixels)',
|
||||
description: 'Sets the maximum height of the textarea',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
|
||||
config: [{ alias: 'min', value: 0 }],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user