From 8adf5f2dded9d19a73d58b7b3a8ad561dd65d4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 26 Apr 2024 15:12:53 +0200 Subject: [PATCH] rename to umb-input-collection-content-type-property --- .../config/column/column-configuration.element.ts | 12 ++++++------ .../input-collection-content-type-property/index.ts | 1 + ...nput-collection-content-type-property.element.ts} | 8 ++++---- .../components/input-content-type-property/index.ts | 1 - 4 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/index.ts rename src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/{input-content-type-property/input-content-type-property.element.ts => input-collection-content-type-property/input-collection-content-type-property.element.ts} (96%) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/column-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/column-configuration.element.ts index e9c8a62009..74a7f0b663 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/column-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/column-configuration.element.ts @@ -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` - + @change=${this.#onAdd}> `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/index.ts new file mode 100644 index 0000000000..704890e4fc --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/index.ts @@ -0,0 +1 @@ +export * from './input-collection-content-type-property.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/input-content-type-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/input-collection-content-type-property.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/input-content-type-property.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/input-collection-content-type-property.element.ts index 34f82f10b4..f640501968 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/input-content-type-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-collection-content-type-property/input-collection-content-type-property.element.ts @@ -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; } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/index.ts deleted file mode 100644 index 72923245b3..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection-view/config/column/components/input-content-type-property/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './input-content-type-property.element.js';