move content picker schema
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { manifest as blockGrid } from './Umbraco.BlockGrid.js';
|
||||
import { manifest as blockList } from './Umbraco.BlockList.js';
|
||||
import { manifest as contentPicker } from './Umbraco.ContentPicker.js';
|
||||
import { manifest as dateTime } from './Umbraco.DateTime.js';
|
||||
import { manifest as decimal } from './Umbraco.Decimal.js';
|
||||
import { manifest as dropdownFlexible } from './Umbraco.Dropdown.Flexible.js';
|
||||
@@ -32,7 +31,6 @@ import type { ManifestPropertyEditorSchema } from '@umbraco-cms/backoffice/exten
|
||||
export const manifests: Array<ManifestPropertyEditorSchema> = [
|
||||
blockGrid,
|
||||
blockList,
|
||||
contentPicker,
|
||||
dateTime,
|
||||
decimal,
|
||||
dropdownFlexible,
|
||||
|
||||
@@ -1,36 +1,40 @@
|
||||
import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { manifest as schemaManifest } from './Umbraco.ContentPicker.js';
|
||||
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const manifest: ManifestPropertyEditorUi = {
|
||||
type: 'propertyEditorUi',
|
||||
alias: 'Umb.PropertyEditorUi.DocumentPicker',
|
||||
name: 'Document Picker Property Editor UI',
|
||||
element: () => import('./property-editor-ui-document-picker.element.js'),
|
||||
meta: {
|
||||
label: 'Document Picker',
|
||||
propertyEditorSchemaAlias: 'Umbraco.ContentPicker',
|
||||
icon: 'icon-document',
|
||||
group: 'common',
|
||||
settings: {
|
||||
properties: [
|
||||
{
|
||||
alias: 'startNodeId',
|
||||
label: 'Start node',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.DocumentPicker',
|
||||
config: [
|
||||
{
|
||||
alias: 'validationLimit',
|
||||
value: { min: 0, max: 1 },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
alias: 'showOpenButton',
|
||||
label: 'Show open button',
|
||||
description: 'Opens the node in a dialog',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
|
||||
},
|
||||
],
|
||||
export const manifests: Array<ManifestTypes> = [
|
||||
{
|
||||
type: 'propertyEditorUi',
|
||||
alias: 'Umb.PropertyEditorUi.DocumentPicker',
|
||||
name: 'Document Picker Property Editor UI',
|
||||
element: () => import('./property-editor-ui-document-picker.element.js'),
|
||||
meta: {
|
||||
label: 'Document Picker',
|
||||
propertyEditorSchemaAlias: 'Umbraco.ContentPicker',
|
||||
icon: 'icon-document',
|
||||
group: 'common',
|
||||
settings: {
|
||||
properties: [
|
||||
{
|
||||
alias: 'startNodeId',
|
||||
label: 'Start node',
|
||||
description: '',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.DocumentPicker',
|
||||
config: [
|
||||
{
|
||||
alias: 'validationLimit',
|
||||
value: { min: 0, max: 1 },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
alias: 'showOpenButton',
|
||||
label: 'Show open button',
|
||||
description: 'Opens the node in a dialog',
|
||||
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
schemaManifest,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user