Removes deprecated Collection View property-editor

This commit is contained in:
leekelleher
2024-05-15 12:21:17 +01:00
parent e8729f32eb
commit eb746db3c8
2 changed files with 2 additions and 41 deletions

View File

@@ -1,24 +0,0 @@
import { UmbPropertyEditorUICollectionElement } from './property-editor-ui-collection.element.js';
import { customElement } from '@umbraco-cms/backoffice/external/lit';
/**
* @element umb-legacy-property-editor-ui-collection
* @deprecated Use "umb-property-editor-ui-collection" instead.
*/
@customElement('umb-legacy-property-editor-ui-collection')
export class UmbLegacyPropertyEditorUICollectionElement extends UmbPropertyEditorUICollectionElement {
constructor() {
super();
console.warn(
'The element "umb-legacy-property-editor-ui-collection" has been deprecated. Use "umb-property-editor-ui-collection" instead.',
);
}
}
export default UmbPropertyEditorUICollectionElement;
declare global {
interface HTMLElementTagNameMap {
'umb-legacy-property-editor-ui-collection': UmbPropertyEditorUICollectionElement;
}
}

View File

@@ -101,26 +101,11 @@ const propertyEditorUiManifest: ManifestPropertyEditorUi = {
},
};
/**
* Legacy property editor UI manifest for the collection view property editor.
* @deprecated Use the property editor UI alias of 'Umb.PropertyEditorUi.Collection' instead.
*/
const legacyPropertyEditorUiManifest: ManifestPropertyEditorUi = {
...propertyEditorUiManifest,
alias: 'Umb.PropertyEditorUi.CollectionView',
element: () => import('./legacy-property-editor-ui-collection.element.js'),
};
const config: Array<ManifestPropertyEditorUi> = [
export const manifests: Array<ManifestTypes> = [
propertyEditorUiManifest,
bulkActionPermissions,
columnConfiguration,
layoutConfiguration,
orderBy,
];
export const manifests: Array<ManifestTypes> = [
propertyEditorUiManifest,
legacyPropertyEditorUiManifest,
...config,
schema,
];