set up manifests

This commit is contained in:
Mads Rasmussen
2023-01-03 15:10:10 +01:00
parent cf29c19de4
commit b8db235c52
7 changed files with 89 additions and 36 deletions

View File

@@ -0,0 +1,19 @@
import type { ManifestPropertyEditorModel } from '@umbraco-cms/models';
export const manifest: ManifestPropertyEditorModel = {
type: 'propertyEditorModel',
name: 'Content Picker',
alias: 'Umbraco.ContentPicker',
meta: {
config: {
properties: [
{
alias: 'startNodeId',
label: 'Start node',
description: '',
propertyEditorUI: 'Umb.PropertyEditorUI.TreePicker',
},
],
},
},
};

View File

@@ -0,0 +1,8 @@
import type { ManifestPropertyEditorModel } from '@umbraco-cms/models';
export const manifest: ManifestPropertyEditorModel = {
type: 'propertyEditorModel',
name: 'JSON model',
alias: 'Umbraco.JSON',
meta: {},
};

View File

@@ -1,14 +1,12 @@
import { manifest as UmbracoColorPicker } from './Umbraco.ColorPicker';
import { manifest as UmbracoContentPicker } from './Umbraco.ContentPicker';
import { manifest as UmbracoJSON } from './Umbraco.JSON';
import type { ManifestPropertyEditorModel } from '@umbraco-cms/models';
export const manifests: Array<ManifestPropertyEditorModel> = [
UmbracoColorPicker,
{
type: 'propertyEditorModel',
name: 'Content Picker',
alias: 'Umbraco.ContentPicker',
meta: {},
},
UmbracoContentPicker,
UmbracoJSON,
{
type: 'propertyEditorModel',
name: 'Eye Dropper Color Picker',
@@ -205,12 +203,6 @@ export const manifests: Array<ManifestPropertyEditorModel> = [
alias: 'Umbraco.MediaPicker3',
meta: {},
},
{
type: 'propertyEditorModel',
name: 'Custom Property Editor',
alias: 'Umbraco.Custom',
meta: {},
},
{
type: 'propertyEditorModel',
name: 'Icon Picker',

View File

@@ -0,0 +1,14 @@
import type { ManifestPropertyEditorUI } from '@umbraco-cms/models';
export const manifest: ManifestPropertyEditorUI = {
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.ColorPicker',
name: 'Color Picker Property Editor UI',
loader: () => import('./property-editor-ui-color-picker.element'),
meta: {
label: 'Color Picker',
propertyEditorModel: 'Umbraco.ColorPicker',
icon: 'umb:colorpicker',
group: 'pickers',
},
};

View File

@@ -0,0 +1,24 @@
import type { ManifestPropertyEditorUI } from '@umbraco-cms/models';
export const manifest: ManifestPropertyEditorUI = {
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.ContentPicker',
name: 'Content Picker Property Editor UI',
loader: () => import('./property-editor-ui-content-picker.element'),
meta: {
label: 'Content Picker',
propertyEditorModel: 'Umbraco.ContentPicker',
icon: 'umb:document',
group: 'common',
config: {
properties: [
{
alias: 'showOpenButton',
label: 'Show open button',
description: 'Opens the node in a dialog',
propertyEditorUI: 'Umb.PropertyEditorUI.Toggle',
},
],
},
},
};

View File

@@ -1,18 +1,12 @@
import { manifest as ColorPicker } from './color-picker/manifests';
import { manifest as ContentPicker } from './content-picker/manifests';
import { manifest as TreePicker } from './tree-picker/manifests';
import type { ManifestPropertyEditorUI } from '@umbraco-cms/models';
export const manifests: Array<ManifestPropertyEditorUI> = [
{
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.ColorPicker',
name: 'Color Picker Property Editor UI',
loader: () => import('./color-picker/property-editor-ui-color-picker.element'),
meta: {
label: 'Color Picker',
propertyEditorModel: 'Umbraco.ColorPicker',
icon: 'umb:colorpicker',
group: 'pickers',
},
},
ColorPicker,
ContentPicker,
TreePicker,
{
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.BlockList',
@@ -95,18 +89,6 @@ export const manifests: Array<ManifestPropertyEditorUI> = [
propertyEditorModel: 'Umbraco.Integer',
},
},
{
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.ContentPicker',
name: 'Content Picker Property Editor UI',
loader: () => import('./content-picker/property-editor-ui-content-picker.element'),
meta: {
label: 'Content Picker',
propertyEditorModel: 'Umbraco.ContentPicker',
icon: 'umb:document',
group: 'common',
},
},
{
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.IconPicker',

View File

@@ -0,0 +1,14 @@
import type { ManifestPropertyEditorUI } from '@umbraco-cms/models';
export const manifest: ManifestPropertyEditorUI = {
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.TreePicker',
name: 'Tree Picker Property Editor UI',
loader: () => import('./property-editor-ui-tree-picker.element'),
meta: {
label: 'Tree Picker',
icon: 'umb:page-add',
group: 'pickers',
propertyEditorModel: 'Umbraco.JSON',
},
};