adjust data to match existing property editor schemas

This commit is contained in:
Jacob Overgaard
2023-08-03 15:52:03 +02:00
parent 780108a0bb
commit e5d16d9f78
4 changed files with 13 additions and 14 deletions

View File

@@ -496,7 +496,6 @@ export const data: Array<DataTypeResponseModel | FolderTreeItemResponseModel> =
name: 'Number Range',
id: 'dt-numberRange',
parentId: null,
propertyEditorAlias: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.NumberRange',
values: [],
},
@@ -505,7 +504,6 @@ export const data: Array<DataTypeResponseModel | FolderTreeItemResponseModel> =
name: 'Order Direction',
id: 'dt-orderDirection',
parentId: null,
propertyEditorAlias: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.OrderDirection',
values: [],
},
@@ -514,7 +512,6 @@ export const data: Array<DataTypeResponseModel | FolderTreeItemResponseModel> =
name: 'Overlay Size',
id: 'dt-overlaySize',
parentId: null,
propertyEditorAlias: 'Umbraco.JSON',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.OverlaySize',
values: [],
},

View File

@@ -34,7 +34,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/package/manifes
label: 'My Custom Property',
icon: 'document',
group: 'Common',
propertyEditorSchema: 'Umbraco.JSON',
propertyEditorSchema: 'Umbraco.TextBox',
},
},
],

View File

@@ -1,7 +1,8 @@
import { Meta, StoryObj } from '@storybook/web-components';
import { html } from '@umbraco-cms/backoffice/external/lit';
import './ref-property-editor-ui.element.js';
import type { UmbRefPropertyEditorUIElement } from './ref-property-editor-ui.element.js';
import { html } from '@umbraco-cms/backoffice/external/lit';
import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor';
import './ref-property-editor-ui.element.js';
const meta: Meta<UmbRefPropertyEditorUIElement> = {
title: 'Components/Ref Property Editor UI',
@@ -15,7 +16,7 @@ export const Overview: Story = {
args: {
name: 'Custom Property Editor UI',
alias: 'Umb.PropertyEditorUi.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
},
};
@@ -23,7 +24,7 @@ export const WithDetail: Story = {
args: {
name: 'Custom Property Editor UI',
alias: 'Umb.PropertyEditorUi.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
detail: 'With some custom details',
},
};
@@ -32,7 +33,7 @@ export const WithSlots: Story = {
args: {
name: 'Custom Property Editor UI',
alias: 'Umb.PropertyEditorUi.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
detail: 'With some custom details',
},
render: (args) => html`

View File

@@ -1,7 +1,8 @@
import { Meta, StoryObj } from '@storybook/web-components';
import { html } from '@umbraco-cms/backoffice/external/lit';
import './ref-data-type.element.js';
import type { UmbRefDataTypeElement } from './ref-data-type.element.js';
import { html } from '@umbraco-cms/backoffice/external/lit';
import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor';
import './ref-data-type.element.js';
const meta: Meta<UmbRefDataTypeElement> = {
title: 'Components/Ref Data Type',
@@ -15,7 +16,7 @@ export const Overview: Story = {
args: {
name: 'Custom Data Type',
propertyEditorUiAlias: 'Umb.DataTypeInput.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
},
};
@@ -23,7 +24,7 @@ export const WithDetail: Story = {
args: {
name: 'Custom Data Type',
propertyEditorUiAlias: 'Umb.DataType.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
detail: 'With some custom details',
},
};
@@ -32,7 +33,7 @@ export const WithSlots: Story = {
args: {
name: 'Custom Data Type',
propertyEditorUiAlias: 'Umb.DataTypeInput.CustomUI',
propertyEditorSchemaAlias: 'Umbraco.JSON',
propertyEditorSchemaAlias: UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT,
detail: 'With some custom details',
},
render: (args) => html`