import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/extension-registry';

export const manifest: ManifestPropertyEditorUi = {
	type: 'propertyEditorUi',
	alias: 'Umb.PropertyEditorUi.DocumentTypePicker',
	name: 'Document Type Picker Property Editor UI',
	js: () => import('./property-editor-ui-document-type-picker.element.js'),
	meta: {
		label: 'Document Type Picker',
		icon: 'icon-document-dashed-line',
		group: 'advanced',
		settings: {
			properties: [
				{
					alias: 'showOpenButton',
					label: 'Show open button',
					description: 'Opens the node in a dialog',
					propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
				},
				{
					alias: 'onlyPickElementTypes',
					label: 'Only Element Types',
					description: 'Limit to only pick Element Types',
					propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
				},
			],
		},
	},
};
