rename to umb-input-collection-content-type-property

This commit is contained in:
Niels Lyngsø
2024-04-26 15:12:53 +02:00
parent 1f4953d2a4
commit 8adf5f2dde
4 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import type { UmbCollectionColumnConfiguration } from '../../../../core/collection/types.js';
import type { UmbInputContentTypePropertyElement } from './components/input-content-type-property/index.js';
import type { UmbInputCollectionContentTypePropertyElement } from './components/input-collection-content-type-property/index.js';
import { css, customElement, html, nothing, property, repeat, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbPropertyValueChangeEvent } from '@umbraco-cms/backoffice/property-editor';
@@ -10,7 +10,7 @@ import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extensi
import type { UUIInputEvent } from '@umbraco-cms/backoffice/external/uui';
// import of local components
import './components/input-content-type-property/index.js';
import './components/input-collection-content-type-property/index.js';
/**
* @element umb-property-editor-ui-collection-view-column-configuration
@@ -46,10 +46,10 @@ export class UmbPropertyEditorUICollectionViewColumnConfigurationElement
public config?: UmbPropertyEditorConfigCollection;
@state()
private _field?: UmbInputContentTypePropertyElement['selectedProperty'];
private _field?: UmbInputCollectionContentTypePropertyElement['selectedProperty'];
#onAdd(e: CustomEvent) {
const element = e.target as UmbInputContentTypePropertyElement;
const element = e.target as UmbInputCollectionContentTypePropertyElement;
if (!element.selectedProperty) return;
@@ -100,10 +100,10 @@ export class UmbPropertyEditorUICollectionViewColumnConfigurationElement
#renderInput() {
return html`
<umb-input-content-type-property
<umb-input-collection-content-type-property
document-types
media-types
@change=${this.#onAdd}></umb-input-content-type-property>
@change=${this.#onAdd}></umb-input-collection-content-type-property>
`;
}

View File

@@ -0,0 +1 @@
export * from './input-collection-content-type-property.element.js';

View File

@@ -31,8 +31,8 @@ type UmbInputContentTypePropertyConfiguration = {
memberTypes: UmbInputContentTypePropertyConfigurationItem;
};
@customElement('umb-input-content-type-property')
export class UmbInputContentTypePropertyElement extends UUIFormControlMixin(UmbLitElement, undefined) {
@customElement('umb-input-collection-content-type-property')
export class UmbInputCollectionContentTypePropertyElement extends UUIFormControlMixin(UmbLitElement, undefined) {
#configuration: UmbInputContentTypePropertyConfiguration = {
documentTypes: {
item: {
@@ -337,10 +337,10 @@ export class UmbInputContentTypePropertyElement extends UUIFormControlMixin(UmbL
];
}
export default UmbInputContentTypePropertyElement;
export default UmbInputCollectionContentTypePropertyElement;
declare global {
interface HTMLElementTagNameMap {
'umb-input-content-type-property': UmbInputContentTypePropertyElement;
'umb-input-collection-content-type-property': UmbInputCollectionContentTypePropertyElement;
}
}