Merge branch 'main' into feature/document-action-public-access

This commit is contained in:
Jacob Overgaard
2024-02-02 13:31:03 +01:00
committed by GitHub
41 changed files with 140 additions and 130 deletions

View File

@@ -23,11 +23,27 @@ type UmbClassMixinConstructor = new (
// TODO: we need the interface from EventTarget to be part of the controller base. As a temp solution the UmbClassMixinDeclaration extends EventTarget.
declare class UmbClassMixinDeclaration extends EventTarget implements UmbClassMixinInterface {
_host: UmbControllerHost;
/**
* @description Observe a RxJS source of choice.
* @param {Observable<T>} source RxJS source
* @param {method} callback Callback method called when data is changed.
* @return {UmbObserverController} Reference to a Observer Controller instance
* @memberof UmbClassMixin
*/
observe<T>(
source: Observable<T>,
callback: (_value: T) => void,
controllerAlias?: UmbControllerAlias,
): UmbObserverController<T>;
/**
* @description Provide a context API for this or child elements.
* @param {string} contextAlias
* @param {instance} instance The API instance to be exposed.
* @return {UmbContextProviderController} Reference to a Context Provider Controller instance
* @memberof UmbClassMixin
*/
provideContext<
BaseType = unknown,
ResultType extends BaseType = BaseType,
@@ -36,10 +52,19 @@ declare class UmbClassMixinDeclaration extends EventTarget implements UmbClassMi
alias: string | UmbContextToken<BaseType, ResultType>,
instance: InstanceType,
): UmbContextProviderController<BaseType, ResultType, InstanceType>;
/**
* @description Setup a subscription for a context. The callback is called when the context is resolved.
* @param {string} contextAlias
* @param {method} callback Callback method called when context is resolved.
* @return {UmbContextConsumerController} Reference to a Context Consumer Controller instance
* @memberof UmbClassMixin
*/
consumeContext<BaseType = unknown, ResultType extends BaseType = BaseType>(
alias: string | UmbContextToken<BaseType, ResultType>,
callback: UmbContextCallback<ResultType>,
): UmbContextConsumerController<BaseType, ResultType>;
hasController(controller: UmbController): boolean;
getControllers(filterMethod: (ctrl: UmbController) => boolean): UmbController[];
addController(controller: UmbController): void;
@@ -50,6 +75,11 @@ declare class UmbClassMixinDeclaration extends EventTarget implements UmbClassMi
get controllerAlias(): UmbControllerAlias;
hostConnected(): void;
hostDisconnected(): void;
/**
* @description Destroys the controller and removes it from the host.
* @memberof UmbClassMixin
*/
destroy(): void;
}
@@ -73,24 +103,10 @@ export const UmbClassMixin = <T extends ClassConstructor>(superClass: T) => {
return this._controllerAlias;
}
/**
* @description Observe a RxJS source of choice.
* @param {Observable<T>} source RxJS source
* @param {method} callback Callback method called when data is changed.
* @return {UmbObserverController} Reference to a Observer Controller instance
* @memberof UmbElementMixin
*/
observe<T>(source: Observable<T>, callback: (_value: T) => void, controllerAlias?: UmbControllerAlias) {
return new UmbObserverController<T>(this, source, callback, controllerAlias);
}
/**
* @description Provide a context API for this or child elements.
* @param {string} contextAlias
* @param {instance} instance The API instance to be exposed.
* @return {UmbContextProviderController} Reference to a Context Provider Controller instance
* @memberof UmbElementMixin
*/
provideContext<
BaseType = unknown,
ResultType extends BaseType = BaseType,
@@ -99,13 +115,6 @@ export const UmbClassMixin = <T extends ClassConstructor>(superClass: T) => {
return new UmbContextProviderController<BaseType, ResultType, InstanceType>(this, contextAlias, instance);
}
/**
* @description Setup a subscription for a context. The callback is called when the context is resolved.
* @param {string} contextAlias
* @param {method} callback Callback method called when context is resolved.
* @return {UmbContextConsumerController} Reference to a Context Consumer Controller instance
* @memberof UmbElementMixin
*/
consumeContext<BaseType = unknown, ResultType extends BaseType = BaseType>(
contextAlias: string | UmbContextToken<BaseType, ResultType>,
callback: UmbContextCallback<ResultType>,
@@ -113,10 +122,6 @@ export const UmbClassMixin = <T extends ClassConstructor>(superClass: T) => {
return new UmbContextConsumerController(this, contextAlias, callback);
}
/**
* @description Destroys the controller and removes it from the host.
* @memberof UmbClassMixin
*/
public destroy() {
if (this._host) {
this._host.removeController(this);

View File

@@ -11,10 +11,9 @@ import type {
PagedUserResponseModel,
UpdateUserGroupsOnUserRequestModel,
UserItemResponseModel,
UserResponseModel} from '@umbraco-cms/backoffice/backend-api';
import {
UserStateModel,
UserResponseModel,
} from '@umbraco-cms/backoffice/backend-api';
import { UserStateModel } from '@umbraco-cms/backoffice/backend-api';
const createUserItem = (item: UserResponseModel): UserItemResponseModel => {
return {
@@ -90,7 +89,7 @@ class UmbUserData extends UmbEntityData<UserResponseModel> {
/**
* Get current user
* @return {*} {UmbLoggedInUser}
* @return {*} {UmbCurrentUser}
* @memberof UmbUserData
*/
getCurrentUser(): UmbCurrentUser {

View File

@@ -10,6 +10,8 @@ import type { UmbWorkspaceViewElement } from '@umbraco-cms/backoffice/extension-
@customElement('umb-block-workspace-view-edit-no-router')
export class UmbBlockWorkspaceViewEditNoRouterElement extends UmbLitElement implements UmbWorkspaceViewElement {
//private _hasRootProperties = false;
@state()
private _hasRootGroups = false;
@state()

View File

@@ -19,7 +19,7 @@ export const manifest: ManifestPropertyEditorSchema = {
alias: 'items',
label: 'Colors',
description: 'Add, remove or sort colors',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.ColorEditor',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.ColorSwatchesEditor',
},
],
},

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CheckboxList',
name: 'Checkbox List Property Editor UI',
js: () => import('./property-editor-ui-checkbox-list.element.js'),
element: () => import('./property-editor-ui-checkbox-list.element.js'),
meta: {
label: 'Checkbox List',
propertyEditorSchemaAlias: 'Umbraco.CheckboxList',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CollectionView.BulkActionPermissions',
name: 'Collection View Bulk Action Permissions Property Editor UI',
js: () => import('./property-editor-ui-collection-view-bulk-action-permissions.element.js'),
element: () => import('./property-editor-ui-collection-view-bulk-action-permissions.element.js'),
meta: {
label: 'Collection View Bulk Action Permissions',
propertyEditorSchemaAlias: '',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CollectionView.ColumnConfiguration',
name: 'Collection View Column Configuration Property Editor UI',
js: () => import('./property-editor-ui-collection-view-column-configuration.element.js'),
element: () => import('./property-editor-ui-collection-view-column-configuration.element.js'),
meta: {
label: 'Collection View Column Configuration',
propertyEditorSchemaAlias: '',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CollectionView.LayoutConfiguration',
name: 'Collection View Column Configuration Property Editor UI',
js: () => import('./property-editor-ui-collection-view-layout-configuration.element.js'),
element: () => import('./property-editor-ui-collection-view-layout-configuration.element.js'),
meta: {
label: 'Collection View Layout Configuration',
propertyEditorSchemaAlias: '',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CollectionView.OrderBy',
name: 'Collection View Column Configuration Property Editor UI',
js: () => import('./property-editor-ui-collection-view-order-by.element.js'),
element: () => import('./property-editor-ui-collection-view-order-by.element.js'),
meta: {
label: 'Collection View Order By',
propertyEditorSchemaAlias: '',

View File

@@ -8,7 +8,7 @@ const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.CollectionView',
name: 'Collection View Property Editor UI',
js: () => import('./property-editor-ui-collection-view.element.js'),
element: () => import('./property-editor-ui-collection-view.element.js'),
meta: {
label: 'Collection View',
propertyEditorSchemaAlias: 'Umbraco.ListView',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.ColorPicker',
name: 'Color Picker Property Editor UI',
js: () => import('./property-editor-ui-color-picker.element.js'),
element: () => import('./property-editor-ui-color-picker.element.js'),
meta: {
label: 'Color Picker',
propertyEditorSchemaAlias: 'Umbraco.ColorPicker',

View File

@@ -2,11 +2,11 @@ import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/extension
export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.ColorEditor',
name: 'Color Editor Property Editor UI',
js: () => import('./property-editor-ui-color-editor.element.js'),
alias: 'Umb.PropertyEditorUi.ColorSwatchesEditor',
name: 'Color Swatches Editor Property Editor UI',
element: () => import('./property-editor-ui-color-swatches-editor.element.js'),
meta: {
label: 'Color Editor',
label: 'Color Swatches Editor',
icon: 'icon-page-add',
group: 'Umbraco.DropDown.Flexible',
},

View File

@@ -6,10 +6,10 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/
import type { UmbMultipleColorPickerInputElement } from '@umbraco-cms/backoffice/components';
/**
* @element umb-property-editor-ui-color-editor
* @element umb-property-editor-ui-color-swatches-editor
*/
@customElement('umb-property-editor-ui-color-editor')
export class UmbPropertyEditorUIColorEditorElement extends UmbLitElement implements UmbPropertyEditorUiElement {
@customElement('umb-property-editor-ui-color-swatches-editor')
export class UmbPropertyEditorUIColorSwatchesEditorElement extends UmbLitElement implements UmbPropertyEditorUiElement {
#defaultShowLabels = true;
@property({ type: Array })
@@ -37,10 +37,10 @@ export class UmbPropertyEditorUIColorEditorElement extends UmbLitElement impleme
}
}
export default UmbPropertyEditorUIColorEditorElement;
export default UmbPropertyEditorUIColorSwatchesEditorElement;
declare global {
interface HTMLElementTagNameMap {
'umb-property-editor-ui-color-editor': UmbPropertyEditorUIColorEditorElement;
'umb-property-editor-ui-color-swatches-editor': UmbPropertyEditorUIColorSwatchesEditorElement;
}
}

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.DatePicker',
name: 'Date Picker Property Editor UI',
js: () => import('./property-editor-ui-date-picker.element.js'),
element: () => import('./property-editor-ui-date-picker.element.js'),
meta: {
label: 'Date Picker',
propertyEditorSchemaAlias: 'Umbraco.DateTime',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Dropdown',
name: 'Dropdown Property Editor UI',
js: () => import('./property-editor-ui-dropdown.element.js'),
element: () => import('./property-editor-ui-dropdown.element.js'),
meta: {
label: 'Dropdown',
propertyEditorSchemaAlias: 'Umbraco.DropDown.Flexible',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.EyeDropper',
name: 'Eye Dropper Color Picker Property Editor UI',
js: () => import('./property-editor-ui-eye-dropper.element.js'),
element: () => import('./property-editor-ui-eye-dropper.element.js'),
meta: {
label: 'Eye Dropper Color Picker',
icon: 'icon-colorpicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.IconPicker',
name: 'Icon Picker Property Editor UI',
js: () => import('./property-editor-ui-icon-picker.element.js'),
element: () => import('./property-editor-ui-icon-picker.element.js'),
meta: {
label: 'Icon Picker',
propertyEditorSchemaAlias: 'Umbraco.IconPicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Label',
name: 'Label Property Editor UI',
js: () => import('./property-editor-ui-label.element.js'),
element: () => import('./property-editor-ui-label.element.js'),
meta: {
label: 'Label',
icon: 'icon-readonly',

View File

@@ -1,72 +1,60 @@
import { manifest as colorPicker } from './color-picker/manifests.js';
import { manifest as colorEditor } from './color-editor/manifests.js';
import { manifest as datePicker } from './date-picker/manifests.js';
import { manifest as eyeDropper } from './eye-dropper/manifests.js';
import { manifest as multiUrlPicker } from './multi-url-picker/manifests.js';
import { manifest as overlaySize } from './overlay-size/manifests.js';
import { manifests as treePicker } from './tree-picker/manifests.js';
import { manifests as textBoxes } from './text-box/manifests.js';
import { manifest as dropdown } from './dropdown/manifests.js';
import { manifest as multipleTextString } from './multiple-text-string/manifests.js';
import { manifest as textArea } from './textarea/manifests.js';
import { manifest as slider } from './slider/manifests.js';
import { manifest as toggle } from './toggle/manifests.js';
import { manifest as markdownEditor } from './markdown-editor/manifests.js';
import { manifest as radioButtonList } from './radio-button-list/manifests.js';
import { manifest as checkboxList } from './checkbox-list/manifests.js';
import { manifest as numberRange } from './number-range/manifests.js';
import { manifest as uploadField } from './upload-field/manifests.js';
import { manifest as orderDirection } from './order-direction/manifests.js';
import { manifests as collectionView } from './collection-view/manifests.js';
import { manifests as tinyMCE } from './tiny-mce/manifests.js';
import { manifest as colorEditor } from './color-swatches-editor/manifests.js';
import { manifest as colorPicker } from './color-picker/manifests.js';
import { manifest as datePicker } from './date-picker/manifests.js';
import { manifest as dropdown } from './dropdown/manifests.js';
import { manifest as eyeDropper } from './eye-dropper/manifests.js';
import { manifest as iconPicker } from './icon-picker/manifests.js';
import { manifest as label } from './label/manifests.js';
import { manifest as valueType } from './value-type/manifests.js';
import { manifests as numbers } from './number/manifests.js';
import { manifest as userPicker } from './user-picker/manifests.js';
import { manifest as memberPicker } from './member-picker/manifests.js';
import { manifest as markdownEditor } from './markdown-editor/manifests.js';
import { manifest as memberGroupPicker } from './member-group-picker/manifests.js';
import { manifest as memberPicker } from './member-picker/manifests.js';
import { manifest as multipleTextString } from './multiple-text-string/manifests.js';
import { manifest as multiUrlPicker } from './multi-url-picker/manifests.js';
import { manifest as numberRange } from './number-range/manifests.js';
import { manifest as orderDirection } from './order-direction/manifests.js';
import { manifest as overlaySize } from './overlay-size/manifests.js';
import { manifest as radioButtonList } from './radio-button-list/manifests.js';
import { manifest as slider } from './slider/manifests.js';
import { manifest as textArea } from './textarea/manifests.js';
import { manifest as toggle } from './toggle/manifests.js';
import { manifest as uploadField } from './upload-field/manifests.js';
import { manifest as userPicker } from './user-picker/manifests.js';
import { manifest as valueType } from './value-type/manifests.js';
import { manifests as collectionView } from './collection-view/manifests.js';
import { manifests as numbers } from './number/manifests.js';
import { manifests as textBoxes } from './text-box/manifests.js';
import { manifests as tinyMCE } from './tiny-mce/manifests.js';
import { manifests as treePicker } from './tree-picker/manifests.js';
import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/extension-registry';
export const manifests: Array<ManifestPropertyEditorUi> = [
colorPicker,
colorEditor,
datePicker,
eyeDropper,
multiUrlPicker,
overlaySize,
dropdown,
multipleTextString,
textArea,
slider,
toggle,
markdownEditor,
radioButtonList,
checkboxList,
numberRange,
uploadField,
orderDirection,
colorEditor,
colorPicker,
datePicker,
dropdown,
eyeDropper,
iconPicker,
label,
valueType,
userPicker,
memberPicker,
markdownEditor,
memberGroupPicker,
memberPicker,
multipleTextString,
multiUrlPicker,
numberRange,
orderDirection,
overlaySize,
radioButtonList,
slider,
textArea,
toggle,
uploadField,
userPicker,
valueType,
...collectionView,
...numbers,
...textBoxes,
...treePicker,
...collectionView,
...tinyMCE,
{
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Number',
name: 'Number Property Editor UI',
js: () => import('./number/property-editor-ui-number.element.js'),
meta: {
label: 'Number',
icon: 'icon-autofill',
group: 'common',
propertyEditorSchemaAlias: 'Umbraco.Integer',
},
},
...treePicker,
];

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.MemberGroupPicker',
name: 'Member Group Picker Property Editor UI',
js: () => import('./property-editor-ui-member-group-picker.element.js'),
element: () => import('./property-editor-ui-member-group-picker.element.js'),
meta: {
label: 'Member Group Picker',
propertyEditorSchemaAlias: 'Umbraco.MemberGroupPicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.MemberPicker',
name: 'Member Picker Property Editor UI',
js: () => import('./property-editor-ui-member-picker.element.js'),
element: () => import('./property-editor-ui-member-picker.element.js'),
meta: {
label: 'Member Picker',
propertyEditorSchemaAlias: 'Umbraco.MemberPicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.MultiUrlPicker',
name: 'Multi URL Picker Property Editor UI',
js: () => import('./property-editor-ui-multi-url-picker.element.js'),
element: () => import('./property-editor-ui-multi-url-picker.element.js'),
meta: {
label: 'Multi URL Picker',
propertyEditorSchemaAlias: 'Umbraco.MultiUrlPicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.MultipleTextString',
name: 'Multiple Text String Property Editor UI',
js: () => import('./property-editor-ui-multiple-text-string.element.js'),
element: () => import('./property-editor-ui-multiple-text-string.element.js'),
meta: {
label: 'Multiple Text String',
propertyEditorSchemaAlias: 'Umbraco.MultipleTextString',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.NumberRange',
name: 'Number Range Property Editor UI',
js: () => import('./property-editor-ui-number-range.element.js'),
element: () => import('./property-editor-ui-number-range.element.js'),
meta: {
label: 'Number Range',
propertyEditorSchemaAlias: '',

View File

@@ -12,7 +12,7 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Integer',
name: 'Integer Property Editor UI',
js: () => import('./property-editor-ui-number.element.js'),
element: () => import('./property-editor-ui-number.element.js'),
meta: {
label: 'Integer',
propertyEditorSchemaAlias: 'Umbraco.Integer',
@@ -33,7 +33,7 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Decimal',
name: 'Decimal Property Editor UI',
js: () => import('./property-editor-ui-number.element.js'),
element: () => import('./property-editor-ui-number.element.js'),
meta: {
label: 'Decimal',
propertyEditorSchemaAlias: 'Umbraco.Decimal',
@@ -50,4 +50,16 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
},
},
},
{
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Number',
name: 'Number Property Editor UI',
element: () => import('./property-editor-ui-number.element.js'),
meta: {
label: 'Number',
icon: 'icon-autofill',
group: 'common',
propertyEditorSchemaAlias: 'Umbraco.Integer',
},
},
];

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.OrderDirection',
name: 'Order Direction Property Editor UI',
js: () => import('./property-editor-ui-order-direction.element.js'),
element: () => import('./property-editor-ui-order-direction.element.js'),
meta: {
label: 'Order Direction',
propertyEditorSchemaAlias: '',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.OverlaySize',
name: 'Overlay Size Property Editor UI',
js: () => import('./property-editor-ui-overlay-size.element.js'),
element: () => import('./property-editor-ui-overlay-size.element.js'),
meta: {
label: 'Overlay Size',
propertyEditorSchemaAlias: '',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.RadioButtonList',
name: 'Radio Button List Property Editor UI',
js: () => import('./property-editor-ui-radio-button-list.element.js'),
element: () => import('./property-editor-ui-radio-button-list.element.js'),
meta: {
label: 'Radio Button List',
propertyEditorSchemaAlias: 'Umbraco.RadioButtonList',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Slider',
name: 'Slider Property Editor UI',
js: () => import('./property-editor-ui-slider.element.js'),
element: () => import('./property-editor-ui-slider.element.js'),
meta: {
label: 'Slider',
propertyEditorSchemaAlias: 'Umbraco.Slider',

View File

@@ -13,7 +13,7 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TextBox',
name: 'Text Box Property Editor UI',
js: () => import('./property-editor-ui-text-box.element.js'),
element: () => import('./property-editor-ui-text-box.element.js'),
meta: {
label: 'Text Box',
propertyEditorSchemaAlias: 'Umbraco.TextBox',
@@ -34,7 +34,7 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Email',
name: 'Email Property Editor UI',
js: () => import('./property-editor-ui-text-box.element.js'),
element: () => import('./property-editor-ui-text-box.element.js'),
meta: {
label: 'Email',
propertyEditorSchemaAlias: 'Umbraco.EmailAddress',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TextArea',
name: 'Text Area Property Editor UI',
js: () => import('./property-editor-ui-textarea.element.js'),
element: () => import('./property-editor-ui-textarea.element.js'),
meta: {
label: 'Text Area',
propertyEditorSchemaAlias: 'Umbraco.TextArea',

View File

@@ -5,7 +5,7 @@ const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TinyMCE',
name: 'Rich Text Editor Property Editor UI',
js: () => import('./property-editor-ui-tiny-mce.element.js'),
element: () => import('./property-editor-ui-tiny-mce.element.js'),
meta: {
label: 'Rich Text Editor',
propertyEditorSchemaAlias: 'Umbraco.RichText',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.Toggle',
name: 'Toggle Property Editor UI',
js: () => import('./property-editor-ui-toggle.element.js'),
element: () => import('./property-editor-ui-toggle.element.js'),
meta: {
label: 'Toggle',
propertyEditorSchemaAlias: 'Umbraco.TrueFalse',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TreePicker.SourcePicker',
name: 'Tree Picker Source Picker Property Editor UI',
js: () => import('./property-editor-ui-tree-picker-source-picker.element.js'),
element: () => import('./property-editor-ui-tree-picker-source-picker.element.js'),
meta: {
label: 'Tree Picker Source Picker',
icon: 'icon-page-add',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TreePicker.SourceTypePicker',
name: 'Tree Picker Source Type Picker Property Editor UI',
js: () => import('./property-editor-ui-tree-picker-source-type-picker.element.js'),
element: () => import('./property-editor-ui-tree-picker-source-type-picker.element.js'),
meta: {
label: 'Tree Picker Source Type Picker',
icon: 'icon-page-add',

View File

@@ -6,7 +6,7 @@ const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.TreePicker',
name: 'Tree Picker Property Editor UI',
js: () => import('./property-editor-ui-tree-picker.element.js'),
element: () => import('./property-editor-ui-tree-picker.element.js'),
meta: {
label: 'Tree Picker',
icon: 'icon-page-add',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.UploadField',
name: 'Upload Field Property Editor UI',
js: () => import('./property-editor-ui-upload-field.element.js'),
element: () => import('./property-editor-ui-upload-field.element.js'),
meta: {
label: 'Upload Field',
propertyEditorSchemaAlias: 'Umbraco.UploadField',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.UserPicker',
name: 'User Picker Property Editor UI',
js: () => import('./property-editor-ui-user-picker.element.js'),
element: () => import('./property-editor-ui-user-picker.element.js'),
meta: {
label: 'User Picker',
propertyEditorSchemaAlias: 'Umbraco.UserPicker',

View File

@@ -4,7 +4,7 @@ export const manifest: ManifestPropertyEditorUi = {
type: 'propertyEditorUi',
alias: 'Umb.PropertyEditorUi.ValueType',
name: 'Value Type Property Editor UI',
js: () => import('./property-editor-ui-value-type.element.js'),
element: () => import('./property-editor-ui-value-type.element.js'),
meta: {
label: 'Value Type',
icon: 'icon-autofill',

View File

@@ -66,6 +66,8 @@ export class UmbDocumentTypeWorkspaceViewEditElement extends UmbLitElement imple
};
//private _hasRootProperties = false;
@state()
private _hasRootGroups = false;
@state()

View File

@@ -66,6 +66,8 @@ export class UmbMediaTypeWorkspaceViewEditElement extends UmbLitElement implemen
};
//private _hasRootProperties = false;
@state()
private _hasRootGroups = false;
@state()