rename property editor folder

This commit is contained in:
Niels Lyngsø
2023-06-29 14:28:18 +02:00
parent ff1c9a51a5
commit f7bb93ad89
235 changed files with 32 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import { type UmbDataTypeConfigProperty, type UmbDataTypeConfig } from '../../property-editors/index.js';
import { type UmbDataTypeConfigProperty, type UmbDataTypeConfig } from '../../property-editor/index.js';
import { DataTypePropertyPresentationModel } from '@umbraco-cms/backoffice/backend-api';
/**

View File

@@ -7,6 +7,7 @@ import {
} from '@umbraco-cms/backoffice/extension-registry';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '../../property-editor';
/**
* @element umb-property-editor-config
@@ -59,7 +60,9 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement {
this.observe(
umbExtensionsRegistry.getByTypeAndAlias('propertyEditorUi', this.propertyEditorUiAlias),
(manifest) => {
this._observePropertyEditorSchemaConfig(manifest?.meta.propertyEditorSchemaAlias);
this._observePropertyEditorSchemaConfig(
manifest?.meta.propertyEditorSchemaAlias || UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT
);
this._propertyEditorUISettingsProperties = manifest?.meta.settings?.properties || [];
this._propertyEditorUISettingsDefaultData = manifest?.meta.settings?.defaultData || [];
this._mergeConfigProperties();
@@ -68,9 +71,7 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement {
);
}
private _observePropertyEditorSchemaConfig(propertyEditorSchemaAlias?: string) {
if (!propertyEditorSchemaAlias) return;
private _observePropertyEditorSchemaConfig(propertyEditorSchemaAlias: string) {
this.observe(
umbExtensionsRegistry.getByTypeAndAlias('propertyEditorSchema', propertyEditorSchemaAlias),
(manifest) => {

View File

@@ -1,4 +1,4 @@
import { UmbDataTypeConfig, type UmbDataTypeConfigProperty } from '../../property-editors/index.js';
import { UmbDataTypeConfig, type UmbDataTypeConfigProperty } from '../../property-editor/index.js';
import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui';
import { css, html, ifDefined, customElement, property, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbDataTypeRepository } from '@umbraco-cms/backoffice/data-type';

View File

@@ -1,3 +1,4 @@
import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor';
import { UUIRefNodeElement } from '@umbraco-cms/backoffice/external/uui';
import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit';
@@ -39,7 +40,7 @@ export class UmbRefPropertyEditorUIElement extends UUIRefNodeElement {
if (this.propertyEditorSchemaAlias !== '') {
details.push(this.propertyEditorSchemaAlias);
} else {
details.push('Property Editor Missing');
details.push(UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT);
}
if (this.detail !== '') {

View File

@@ -1,5 +1,5 @@
import type { UmbPropertyEditorExtensionElement } from '../interfaces/index.js';
import { type UmbDataTypeConfig } from '../../property-editors/index.js';
import { type UmbDataTypeConfig } from '../../property-editor/index.js';
import type { ManifestElement, ManifestBase } from '@umbraco-cms/backoffice/extension-api';
export interface ManifestPropertyEditorUi extends ManifestElement<UmbPropertyEditorExtensionElement> {

View File

@@ -1,8 +1,8 @@
import { UmbBackofficeNotificationContainerElement, UmbBackofficeModalContainerElement } from './components/index.js';
import { manifests as debugManifests } from './debug/manifests.js';
import { manifests as propertyActionManifests } from './property-actions/manifests.js';
import { manifests as propertyEditorManifests } from './property-editors/manifests.js';
import { manifests as tinyMcePluginManifests } from './property-editors/uis/tiny-mce/plugins/manifests.js';
import { manifests as propertyEditorManifests } from './property-editor/manifests.js';
import { manifests as tinyMcePluginManifests } from './property-editor/uis/tiny-mce/plugins/manifests.js';
import { manifests as workspaceManifests } from './workspace/manifests.js';
import { manifests as modalManifests } from './modal/common/manifests.js';
import { UmbStoreExtensionInitializer } from './store/index.js';
@@ -28,7 +28,7 @@ export * from './modal/index.js';
export * from './notification/index.js';
export * from './picker-input/index.js';
export * from './property-actions/index.js';
export * from './property-editors/index.js';
export * from './property-editor/index.js';
export * from './section/index.js';
export * from './sorter/index.js';
export * from './store/index.js';

View File

@@ -0,0 +1,4 @@
export * from './types';
export * from './events';
export const UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT = 'Umbraco.JSON';

Some files were not shown because too many files have changed in this diff Show More