From abe3aa41e03d96c087f69b4b5a6ec3b1610c48e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 1 Dec 2023 16:23:08 +0100 Subject: [PATCH 01/44] preparation for refactoring --- ...-block-list-block-configuration.element.ts | 24 ++++++++++++++++--- .../types/property-value-data.type.ts | 4 ++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts index 36b7c0b63f..abd1a82bd5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts @@ -1,22 +1,40 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; +import { UMB_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-block-list-block-configuration */ @customElement('umb-property-editor-ui-block-list-block-configuration') -export class UmbPropertyEditorUIBlockListBlockConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUIBlockListBlockConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; @property({ type: Object, attribute: false }) public config?: UmbPropertyEditorConfigCollection; + constructor() { + super(); + this.consumeContext(UMB_VARIANT_CONTEXT, async (variantContext) => { + console.log('variantContext', variantContext); + this.observe(await variantContext.propertyValueByAlias('validationLimit'), (x) => + console.log('validationLimit', x), + ); + }); + } + render() { - return html`
umb-property-editor-ui-block-list-block-configuration
`; + return html` +
umb-property-editor-ui-block-list-block-configuration
+ + Temporary used for the Variant Context tester.. + `; } static styles = [UmbTextStyles]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts new file mode 100644 index 0000000000..7f1d972516 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts @@ -0,0 +1,4 @@ +export type UmbPropertyValueData = { + alias: string; + value?: ValueType; +}; From 95aac3f8483e8923959f89336bf9d511aaf0eda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 1 Dec 2023 16:45:37 +0100 Subject: [PATCH 02/44] make property editor config element use workspace --- .../property-editor-config.element.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts index dd8595846e..1ee37004b2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts @@ -1,9 +1,9 @@ -import { html, customElement, state, ifDefined, repeat, nothing } from '@umbraco-cms/backoffice/external/lit'; +import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from '../../workspace/data-type-workspace.context.js'; +import { html, customElement, state, ifDefined, repeat } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { PropertyEditorConfigProperty } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UMB_DATA_TYPE_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/data-type'; /** * @element umb-property-editor-config @@ -13,7 +13,7 @@ import { UMB_DATA_TYPE_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/data-type @customElement('umb-property-editor-config') export class UmbPropertyEditorConfigElement extends UmbLitElement { // TODO: Make this element generic, so its not bound to DATA-TYPEs. This will require moving some functionality of Data-Type-Context to this. and this might need to self provide a variant Context for its inner property editor UIs. - #variantContext?: typeof UMB_DATA_TYPE_VARIANT_CONTEXT.TYPE; + #workspaceContext?: typeof UMB_DATA_TYPE_WORKSPACE_CONTEXT.TYPE; @state() private _properties: Array = []; @@ -21,16 +21,17 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement { constructor() { super(); - this.consumeContext(UMB_DATA_TYPE_VARIANT_CONTEXT, (instance) => { - this.#variantContext = instance; + // This now connects to the workspace, as the variant does not know about the layout details. + this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, (instance) => { + this.#workspaceContext = instance; this.#observeProperties(); }); } #observeProperties() { - if (!this.#variantContext) return; + if (!this.#workspaceContext) return; this.observe( - this.#variantContext.properties, + this.#workspaceContext.properties, (properties) => { this._properties = properties as Array; }, From f6caa8c5657c42669779df39c80bc2bd8178053c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 1 Dec 2023 16:48:21 +0100 Subject: [PATCH 03/44] clean as part of refactor for simpler variant ctx --- .../variant-context.interface.ts | 17 +++++++++-------- ...workspace-invariantable-context.interface.ts | 3 +-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts index 48fe5bc9a3..c63f7fd280 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts @@ -1,5 +1,5 @@ -import type { UmbVariantId } from "../../variant/variant-id.class.js"; -import type { Observable } from "@umbraco-cms/backoffice/external/rxjs"; +import type { UmbVariantId } from '../../variant/variant-id.class.js'; +import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; /** * A variant context, represents a set of properties. @@ -15,20 +15,21 @@ import type { Observable } from "@umbraco-cms/backoffice/external/rxjs"; * Also setting the name is an additional feature. */ export interface UmbVariantContext { - getType(): string; getUnique(): string | undefined; //getUniqueName(): string; - getVariantId: (() => UmbVariantId); + getVariantId: () => UmbVariantId; getName(): string | undefined; readonly name: Observable; + // Should it be possible to get the properties as a list of property aliases? + //readonly properties: Observable>; + destroy(): void; // Property methods: - propertyVariantId?: ((propertyAlias: string) => Promise>); - propertyValueByAlias(propertyAlias: string): Promise>; - setPropertyValue(propertyAlias: string, value: unknown): Promise; - + propertyVariantId?: (propertyAlias: string) => Observable; + propertyValueByAlias(propertyAlias: string): Observable; + setPropertyValue(propertyAlias: string, value: unknown): void; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts index 07a16286ea..dc539d296a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts @@ -6,7 +6,6 @@ import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; export interface UmbInvariantableWorkspaceContextInterface extends UmbSaveableWorkspaceContextInterface { - // Name: getName(): string | undefined; setName(name: string): void; @@ -15,6 +14,6 @@ export interface UmbInvariantableWorkspaceContextInterface propertyValueByAlias(alias: string): Promise>; getPropertyValue(alias: string): ReturnType; setPropertyValue(alias: string, value: unknown): Promise; - + createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbVariantContext; } From 0f6f3b9cd58ab002ab7f254026f9486c624a941f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Sat, 2 Dec 2023 20:38:16 +0100 Subject: [PATCH 04/44] early step in refactor --- .../workspace/data-type-workspace.context.ts | 23 +++++++- .../variant-context/basic-variant-context.ts | 58 +++++++++++++++++++ .../core/workspace/variant-context/index.ts | 1 + .../invariant-workspace-variant-context.ts | 11 +--- 4 files changed, 83 insertions(+), 10 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index 43ade5cca3..36ed65fe3f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -5,6 +5,7 @@ import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface, + UmbBasicVariantContext, } from '@umbraco-cms/backoffice/workspace'; import { appendToFrozenArray, @@ -148,8 +149,26 @@ export class UmbDataTypeWorkspaceContext return this._configDefaultData?.find((x) => x.alias === alias)?.value; } - createVariantContext(host: UmbControllerHost): UmbDataTypeVariantContext { - return new UmbDataTypeVariantContext(host, this); + createVariantContext(host: UmbControllerHost) { + const context = new UmbBasicVariantContext(host); + this.observe( + this.properties, + (properties) => { + if (properties) { + properties.forEach(async (property) => { + this.observe( + await this.propertyValueByAlias(property.alias), + (value) => { + context.setPropertyValue(property.alias, value); + }, + 'observePropertyOf_' + property.alias, + ); + }); + } + }, + 'observePropertyValues', + ); + return context; } async load(unique: string) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts new file mode 100644 index 0000000000..97f2ff4923 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts @@ -0,0 +1,58 @@ +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; +import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; +import { UMB_VARIANT_CONTEXT, UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; +import { UmbArrayState, UmbStringState } from '@umbraco-cms/backoffice/observable-api'; +import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; + +export class UmbBasicVariantContext + extends UmbContextBase + implements UmbVariantContext +{ + #name = new UmbStringState(''); + name = this.#name.asObservable(); + + #values = new UmbArrayState>([], (x) => x.alias); + private _entityType!: string; + private _unique!: string; + + getType() { + return this._entityType; + } + getUnique() { + return this._unique; + } + getName() { + return this.#name.getValue(); + } + setName(name: string) { + this.#name.next(name); + } + getVariantId() { + return UmbVariantId.CreateInvariant(); + } + + constructor(host: UmbControllerHost) { + // The controller alias, is a very generic name cause we want only one of these for this controller host. + super(host, UMB_VARIANT_CONTEXT); + } + + /** + * TODO: Write proper JSDocs here. + * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. + */ + propertyValueByAlias(propertyAlias: string) { + return this.#values.asObservablePart((values) => { + const valueObj = values.find((x) => x.alias === propertyAlias); + return valueObj ? (valueObj.value as ReturnType) : undefined; + }); + } + + /** + * TODO: Write proper JSDocs here. + * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. + */ + setPropertyValue(alias: string, value: unknown) { + this.#values.appendOne({ alias, value }); + } +} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts index 8c2af922ab..f95b8913a4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts @@ -1,3 +1,4 @@ +export * from './basic-variant-context.js'; export * from './variant-context.interface.js'; export * from './variant-context.token.js'; export * from './nameable-variant-context.interface.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts index 4831680795..bac3c46984 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts @@ -1,7 +1,5 @@ -import { DocumentVariantResponseModel } from '@umbraco-cms/backoffice/backend-api'; import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; -import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { UMB_VARIANT_CONTEXT, @@ -17,12 +15,7 @@ export class UmbInvariantWorkspaceVariantContext< { protected _workspace: WorkspaceType; - #currentVariant = new UmbObjectState(undefined); - currentVariant = this.#currentVariant.asObservable(); - - name = this.#currentVariant.asObservablePart((x) => x?.name); - culture = this.#currentVariant.asObservablePart((x) => x?.culture); - segment = this.#currentVariant.asObservablePart((x) => x?.segment); + name; // default data: @@ -47,6 +40,8 @@ export class UmbInvariantWorkspaceVariantContext< super(host, 'variantContext'); this._workspace = workspace; + this.name = this._workspace.name; + this.provideContext(UMB_VARIANT_CONTEXT, this); } From 3b399133e5caa6bfe29a9dc6edcba0ba9174d2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 4 Dec 2023 09:35:40 +0100 Subject: [PATCH 05/44] two way binding test --- .../workspace/data-type-workspace.context.ts | 22 ++++++++++++++++++- ...-block-list-block-configuration.element.ts | 19 +++++++++++++++- .../variant-context/basic-variant-context.ts | 7 ++++-- 3 files changed, 44 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index 36ed65fe3f..f92a0d4cb4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -151,17 +151,37 @@ export class UmbDataTypeWorkspaceContext createVariantContext(host: UmbControllerHost) { const context = new UmbBasicVariantContext(host); + + // Observe workspace name: + this.observe(this.name, (name) => { + context.setName(name ?? ''); + }); + // Observe the variant name: + this.observe(context.name, (name) => { + this.setName(name); + }); + this.observe( this.properties, (properties) => { if (properties) { properties.forEach(async (property) => { + // Observe value of workspace: this.observe( await this.propertyValueByAlias(property.alias), (value) => { context.setPropertyValue(property.alias, value); }, - 'observePropertyOf_' + property.alias, + 'observeWorkspacePropertyOf_' + property.alias, + ); + // Observe value of variant: + this.observe( + context.propertyValueByAlias(property.alias), + (value) => { + console.log('gets value back...'); + this.setPropertyValue(property.alias, value); + }, + 'observeVariantPropertyOf_' + property.alias, ); }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts index abd1a82bd5..04d4aa8f3d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts @@ -4,6 +4,7 @@ import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/prope import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UMB_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; +import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from 'src/packages/core/data-type/workspace/data-type-workspace.context'; /** * @element umb-property-editor-ui-block-list-block-configuration @@ -19,12 +20,21 @@ export class UmbPropertyEditorUIBlockListBlockConfigurationElement @property({ type: Object, attribute: false }) public config?: UmbPropertyEditorConfigCollection; + private _workspaceContext?: typeof UMB_DATA_TYPE_WORKSPACE_CONTEXT.TYPE; + constructor() { super(); this.consumeContext(UMB_VARIANT_CONTEXT, async (variantContext) => { console.log('variantContext', variantContext); this.observe(await variantContext.propertyValueByAlias('validationLimit'), (x) => - console.log('validationLimit', x), + console.log('variant_ validationLimit', x), + ); + }); + this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, async (workspaceContext) => { + this._workspaceContext = workspaceContext; + console.log('workspaceContext', workspaceContext); + this.observe(await workspaceContext.propertyValueByAlias('validationLimit'), (x) => + console.log('workspace_ validationLimit', x), ); }); } @@ -34,6 +44,13 @@ export class UmbPropertyEditorUIBlockListBlockConfigurationElement
umb-property-editor-ui-block-list-block-configuration
Temporary used for the Variant Context tester.. + + `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts index 97f2ff4923..8022923681 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts @@ -5,6 +5,10 @@ import { UMB_VARIANT_CONTEXT, UmbVariantContext } from '@umbraco-cms/backoffice/ import { UmbArrayState, UmbStringState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; +/** + * A basic variant context, holds a name and a a set of properties. + * This is the base type for all variant contexts. + */ export class UmbBasicVariantContext extends UmbContextBase implements UmbVariantContext @@ -31,6 +35,7 @@ export class UmbBasicVariantContext getVariantId() { return UmbVariantId.CreateInvariant(); } + // variant id for a specific property? constructor(host: UmbControllerHost) { // The controller alias, is a very generic name cause we want only one of these for this controller host. @@ -39,7 +44,6 @@ export class UmbBasicVariantContext /** * TODO: Write proper JSDocs here. - * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. */ propertyValueByAlias(propertyAlias: string) { return this.#values.asObservablePart((values) => { @@ -50,7 +54,6 @@ export class UmbBasicVariantContext /** * TODO: Write proper JSDocs here. - * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. */ setPropertyValue(alias: string, value: unknown) { this.#values.appendOne({ alias, value }); From 66df2326d9136fd2925f5ea09a2b880825161ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 4 Dec 2023 09:45:04 +0100 Subject: [PATCH 06/44] minor adjustments --- .../variant-context/basic-variant-context.ts | 12 ++++++++---- .../invariant-workspace-variant-context.ts | 4 +--- .../variant-context/variant-context.interface.ts | 5 ++--- .../workspace-invariantable-context.interface.ts | 1 + 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts index 8022923681..52293479f1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts @@ -1,7 +1,11 @@ import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; -import { UMB_VARIANT_CONTEXT, UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; +import { + UMB_VARIANT_CONTEXT, + type UmbNameableVariantContext, + type UmbVariantContext, +} from '@umbraco-cms/backoffice/workspace'; import { UmbArrayState, UmbStringState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; @@ -11,9 +15,9 @@ import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; */ export class UmbBasicVariantContext extends UmbContextBase - implements UmbVariantContext + implements UmbVariantContext, UmbNameableVariantContext { - #name = new UmbStringState(''); + #name = new UmbStringState(undefined); name = this.#name.asObservable(); #values = new UmbArrayState>([], (x) => x.alias); @@ -45,7 +49,7 @@ export class UmbBasicVariantContext /** * TODO: Write proper JSDocs here. */ - propertyValueByAlias(propertyAlias: string) { + async propertyValueByAlias(propertyAlias: string) { return this.#values.asObservablePart((values) => { const valueObj = values.find((x) => x.alias === propertyAlias); return valueObj ? (valueObj.value as ReturnType) : undefined; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts index bac3c46984..d9cb9e6185 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts @@ -47,15 +47,13 @@ export class UmbInvariantWorkspaceVariantContext< /** * TODO: Write proper JSDocs here. - * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. */ async propertyValueByAlias(propertyAlias: string) { - return this._workspace.propertyValueByAlias(propertyAlias); + return await this._workspace.propertyValueByAlias(propertyAlias); } /** * TODO: Write proper JSDocs here. - * Ideally do not use these methods, its better to communicate directly with the workspace, but if you do not know the property variant id, then this will figure it out for you. So good for externals to set or get values of a property. */ async setPropertyValue(propertyAlias: string, value: unknown) { return this._workspace.setPropertyValue(propertyAlias, value); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts index c63f7fd280..c9233f2fe9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts @@ -17,7 +17,6 @@ import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; export interface UmbVariantContext { getType(): string; getUnique(): string | undefined; - //getUniqueName(): string; getVariantId: () => UmbVariantId; getName(): string | undefined; @@ -29,7 +28,7 @@ export interface UmbVariantContext { destroy(): void; // Property methods: - propertyVariantId?: (propertyAlias: string) => Observable; - propertyValueByAlias(propertyAlias: string): Observable; + propertyVariantId?: (propertyAlias: string) => Promise>; + propertyValueByAlias(propertyAlias: string): Promise>; setPropertyValue(propertyAlias: string, value: unknown): void; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts index dc539d296a..2877f8f7f1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts @@ -7,6 +7,7 @@ import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; export interface UmbInvariantableWorkspaceContextInterface extends UmbSaveableWorkspaceContextInterface { // Name: + name: Observable; getName(): string | undefined; setName(name: string): void; From 6c77de1808db9b81a974aa62f14581079ce75fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 4 Dec 2023 14:51:56 +0100 Subject: [PATCH 07/44] basic variant --- .../src/packages/core/data-type/index.ts | 1 - .../data-type-variant-context.token.ts | 12 -- .../data-type-variant-context.ts | 11 -- .../core/data-type/variant-context/index.ts | 2 - .../workspace/data-type-workspace.context.ts | 9 +- ...-block-list-block-configuration.element.ts | 34 +----- .../types/property-value-data.type.ts | 2 +- .../variant-context/basic-variant-context.ts | 11 +- .../variant-context/basic-variant.element.ts | 37 +++++++ .../variant-context/basic-variant.test.ts | 104 ++++++++++++++++++ .../workspace-property.element.ts | 10 +- .../document-variant-context.ts | 7 +- 12 files changed, 164 insertions(+), 76 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.token.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/index.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/index.ts index fef96f6679..8290049415 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/index.ts @@ -2,6 +2,5 @@ import './components/index.js'; export * from './entity.js'; export * from './repository/index.js'; -export * from './variant-context/index.js'; export type { UmbDataTypeDetailModel } from './types.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.token.ts deleted file mode 100644 index 465fdb7ec6..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.token.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { UmbDataTypeVariantContext } from './data-type-variant-context.js'; -import { UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; -import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; - -export const isDataTypeVariantContext = (context: UmbVariantContext): context is UmbDataTypeVariantContext => - 'properties' in context && context.getType() === 'data-type'; - -export const UMB_DATA_TYPE_VARIANT_CONTEXT = new UmbContextToken( - 'UmbVariantContext', - undefined, - isDataTypeVariantContext, -); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.ts deleted file mode 100644 index 7148973a04..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/data-type-variant-context.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { UmbDataTypeWorkspaceContext } from '../workspace/data-type-workspace.context.js'; -import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -import { UmbInvariantWorkspaceVariantContext } from '@umbraco-cms/backoffice/workspace'; - -export class UmbDataTypeVariantContext extends UmbInvariantWorkspaceVariantContext { - properties = this._workspace.properties; - - constructor(host: UmbControllerHost, workspace: UmbDataTypeWorkspaceContext) { - super(host, workspace); - } -} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/index.ts deleted file mode 100644 index 95cb72dcdc..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/variant-context/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './data-type-variant-context.token.js'; -export * from './data-type-variant-context.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index f92a0d4cb4..0850318ae1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -1,5 +1,4 @@ import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js'; -import { UmbDataTypeVariantContext } from '../variant-context/data-type-variant-context.js'; import type { UmbDataTypeDetailModel } from '../types.js'; import { UmbInvariantableWorkspaceContextInterface, @@ -27,7 +26,6 @@ export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase implements UmbInvariantableWorkspaceContextInterface { - // TODO: revisit. temp solution because the create and response models are different. #data = new UmbObjectState(undefined); readonly data = this.#data.asObservable(); #getDataPromise?: Promise; @@ -124,9 +122,6 @@ export class UmbDataTypeWorkspaceContext } private _mergeConfigProperties() { - console.log('schema properties', this._propertyEditorSchemaConfigProperties); - console.log('ui properties', this._propertyEditorUISettingsProperties); - if (this._propertyEditorSchemaConfigProperties && this._propertyEditorUISettingsProperties) { this.#properties.next([ ...this._propertyEditorSchemaConfigProperties, @@ -176,7 +171,7 @@ export class UmbDataTypeWorkspaceContext ); // Observe value of variant: this.observe( - context.propertyValueByAlias(property.alias), + await context.propertyValueByAlias(property.alias), (value) => { console.log('gets value back...'); this.setPropertyValue(property.alias, value); @@ -228,7 +223,7 @@ export class UmbDataTypeWorkspaceContext getName() { return this.#data.getValue()?.name; } - setName(name: string) { + setName(name: string | undefined) { this.#data.update({ name }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts index 04d4aa8f3d..06844415c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts @@ -2,9 +2,7 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-re import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import { UMB_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from 'src/packages/core/data-type/workspace/data-type-workspace.context'; /** * @element umb-property-editor-ui-block-list-block-configuration @@ -20,38 +18,8 @@ export class UmbPropertyEditorUIBlockListBlockConfigurationElement @property({ type: Object, attribute: false }) public config?: UmbPropertyEditorConfigCollection; - private _workspaceContext?: typeof UMB_DATA_TYPE_WORKSPACE_CONTEXT.TYPE; - - constructor() { - super(); - this.consumeContext(UMB_VARIANT_CONTEXT, async (variantContext) => { - console.log('variantContext', variantContext); - this.observe(await variantContext.propertyValueByAlias('validationLimit'), (x) => - console.log('variant_ validationLimit', x), - ); - }); - this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, async (workspaceContext) => { - this._workspaceContext = workspaceContext; - console.log('workspaceContext', workspaceContext); - this.observe(await workspaceContext.propertyValueByAlias('validationLimit'), (x) => - console.log('workspace_ validationLimit', x), - ); - }); - } - render() { - return html` -
umb-property-editor-ui-block-list-block-configuration
- - Temporary used for the Variant Context tester.. - - - `; + return html`
umb-property-editor-ui-block-list-block-configuration
`; } static styles = [UmbTextStyles]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts index 7f1d972516..68be94c74a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts @@ -1,4 +1,4 @@ -export type UmbPropertyValueData = { +export type UmbPropertyValueData = { alias: string; value?: ValueType; }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts index 52293479f1..7d59217eab 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts @@ -20,7 +20,7 @@ export class UmbBasicVariantContext #name = new UmbStringState(undefined); name = this.#name.asObservable(); - #values = new UmbArrayState>([], (x) => x.alias); + #values = new UmbArrayState([], (x) => x.alias); private _entityType!: string; private _unique!: string; @@ -33,7 +33,7 @@ export class UmbBasicVariantContext getName() { return this.#name.getValue(); } - setName(name: string) { + setName(name: string | undefined) { this.#name.next(name); } getVariantId() { @@ -62,4 +62,11 @@ export class UmbBasicVariantContext setPropertyValue(alias: string, value: unknown) { this.#values.appendOne({ alias, value }); } + + getPropertyMap() { + return this.#values.getValue(); + } + setPropertyMap(map: Array) { + this.#values.next(map); + } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts new file mode 100644 index 0000000000..c20f2049b5 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -0,0 +1,37 @@ +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import { UmbBasicVariantContext } from './basic-variant-context.js'; +import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; +import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; + +@customElement('umb-basic-variant') +export class UmbBasicVariantElement extends UmbLitElement { + public readonly context = new UmbBasicVariantContext(this); + + @property({ attribute: false }) + public get value(): Array { + return this.context.getPropertyMap(); + } + public set value(value: Array) { + this.context.setPropertyMap(value); + } + + @property({ attribute: false }) + public get name(): string | undefined { + return this.context.getName(); + } + public set name(value: string | undefined) { + this.context.setName(value); + } + + render() { + return html``; + } +} + +export default UmbBasicVariantElement; + +declare global { + interface HTMLElementTagNameMap { + 'umb-basic-variant': UmbBasicVariantElement; + } +} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts new file mode 100644 index 0000000000..112f06f6ae --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -0,0 +1,104 @@ +import { expect, fixture } from '@open-wc/testing'; +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import { UMB_VARIANT_CONTEXT } from './variant-context.token.js'; +import { UmbBasicVariantElement } from './basic-variant.element.js'; +import { customElement, html, property, state, LitElement } from '@umbraco-cms/backoffice/external/lit'; +import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; + +@customElement('test-property-editor') +export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { + // + #variantContext?: typeof UMB_VARIANT_CONTEXT.TYPE; + + @property() + public get alias() { + return this._alias; + } + public set alias(value) { + this._alias = value; + this._observeProperty(); + } + _alias?: string; + + @state() + _value?: string; + + getValue() { + return this._value; + } + setValue(value: string) { + if (this._alias) { + this.#variantContext?.setPropertyValue(this._alias, value); + } + } + + private async _observeProperty() { + const alias = this._alias; + if (!this.#variantContext || !alias) return; + this.observe( + await this.#variantContext.propertyValueByAlias(alias), + (value) => { + this._value = value as string; + }, + 'observeValue', + ); + } + + constructor() { + super(); + this.consumeContext(UMB_VARIANT_CONTEXT, async (variantContext) => { + this.#variantContext = variantContext; + this._observeProperty(); + }); + } + + render() { + return html`${this._value}`; + } +} + +const dataSet: Array = [ + { + alias: 'testAlias', + value: 'testValue', + }, +]; + +describe('UmbBasicVariantElement', () => { + describe('Data bindings', () => { + let variantElement: UmbBasicVariantElement; + let propertyEditor: UmbTestPropertyEditorElement; + + beforeEach(async () => { + variantElement = await fixture( + html` + + `, + ); + + await variantElement.updateComplete; + + propertyEditor = variantElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; + }); + + it('basic-variant is defined with its own instance', () => { + expect(variantElement).to.be.instanceOf(UmbBasicVariantElement); + }); + + it('property editor gets value', async () => { + expect(propertyEditor.alias).to.equal('testAlias'); + expect(propertyEditor.getValue()).to.equal('testValue'); + }); + + it('property editor sets value on it self', async () => { + propertyEditor.setValue('testValue2'); + expect(propertyEditor.getValue()).to.equal('testValue2'); + }); + + it('property editor sets value on context', () => { + propertyEditor.setValue('testValue2'); + expect(variantElement.context.getPropertyMap()[0].alias).to.equal('testAlias'); + expect(variantElement.context.getPropertyMap()[0].value).to.equal('testValue2'); + }); + }); +}); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts index cb71042839..aff9be9507 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts @@ -1,6 +1,6 @@ import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; import { UmbWorkspacePropertyContext } from './workspace-property.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; import { ManifestPropertyEditorUi, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; @@ -131,7 +131,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { (manifest) => { this._gotEditorUI(manifest); }, - '_observePropertyEditorUI' + '_observePropertyEditorUI', ); } @@ -144,7 +144,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { } const el = await createExtensionElement(manifest); - if(el) { + if (el) { const oldValue = this._element; oldValue?.removeEventListener('change', this._onPropertyEditorChange as any as EventListener); @@ -167,7 +167,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { this._element.value = value; } }, - '_observePropertyValue' + '_observePropertyValue', ); this._configObserver = this.observe( this._propertyContext.config, @@ -176,7 +176,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { this._element.config = config; } }, - '_observePropertyConfig' + '_observePropertyConfig', ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts index 97946d2fab..4351cca8e2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts @@ -5,10 +5,13 @@ import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; -import { UMB_VARIANT_CONTEXT, UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; +import { UMB_VARIANT_CONTEXT, UmbNameableVariantContext, UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; // TODO: This code can be split into a UmbContentTypeVariantContext, leaving just the publishing state and methods to this class. -export class UmbDocumentVariantContext extends UmbBaseController implements UmbVariantContext { +export class UmbDocumentVariantContext + extends UmbBaseController + implements UmbVariantContext, UmbNameableVariantContext +{ #workspace: UmbDocumentWorkspaceContext; #variantId: UmbVariantId; public getVariantId() { From c7ba5d2488933ef9b6062109cabd42615aa41ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 4 Dec 2023 14:52:28 +0100 Subject: [PATCH 08/44] no need for rendering part --- .../core/workspace/variant-context/basic-variant.test.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index 112f06f6ae..7ad8d47585 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -51,10 +51,6 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { this._observeProperty(); }); } - - render() { - return html`${this._value}`; - } } const dataSet: Array = [ From ef5cb882e95c154bfae950cde07c923c0c6dce28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 4 Dec 2023 15:08:58 +0100 Subject: [PATCH 09/44] basic-variant element fire change event --- .../variant-context/basic-variant-context.ts | 5 +++-- .../variant-context/basic-variant.element.ts | 15 +++++++++++--- .../variant-context/basic-variant.test.ts | 20 ++++++++++++++++--- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts index 7d59217eab..17d43f8896 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts @@ -21,6 +21,7 @@ export class UmbBasicVariantContext name = this.#name.asObservable(); #values = new UmbArrayState([], (x) => x.alias); + public readonly values = this.#values.asObservable(); private _entityType!: string; private _unique!: string; @@ -63,10 +64,10 @@ export class UmbBasicVariantContext this.#values.appendOne({ alias, value }); } - getPropertyMap() { + getValues() { return this.#values.getValue(); } - setPropertyMap(map: Array) { + setValues(map: Array) { this.#values.next(map); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts index c20f2049b5..2a566578b1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -2,17 +2,18 @@ import type { UmbPropertyValueData } from '../types/property-value-data.type.js' import { UmbBasicVariantContext } from './basic-variant-context.js'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; +import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; @customElement('umb-basic-variant') export class UmbBasicVariantElement extends UmbLitElement { - public readonly context = new UmbBasicVariantContext(this); + public readonly context: UmbBasicVariantContext; @property({ attribute: false }) public get value(): Array { - return this.context.getPropertyMap(); + return this.context.getValues(); } public set value(value: Array) { - this.context.setPropertyMap(value); + this.context.setValues(value); } @property({ attribute: false }) @@ -23,6 +24,14 @@ export class UmbBasicVariantElement extends UmbLitElement { this.context.setName(value); } + constructor() { + super(); + this.context = new UmbBasicVariantContext(this); + this.observe(this.context.values, () => { + this.dispatchEvent(new UmbChangeEvent()); + }); + } + render() { return html``; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index 7ad8d47585..dabd259bf2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -1,8 +1,9 @@ -import { expect, fixture } from '@open-wc/testing'; +import { expect, fixture, oneEvent } from '@open-wc/testing'; import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; import { UMB_VARIANT_CONTEXT } from './variant-context.token.js'; import { UmbBasicVariantElement } from './basic-variant.element.js'; import { customElement, html, property, state, LitElement } from '@umbraco-cms/backoffice/external/lit'; +import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; @customElement('test-property-editor') @@ -28,6 +29,7 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { } setValue(value: string) { if (this._alias) { + this.dispatchEvent(new UmbChangeEvent()); this.#variantContext?.setPropertyValue(this._alias, value); } } @@ -93,8 +95,20 @@ describe('UmbBasicVariantElement', () => { it('property editor sets value on context', () => { propertyEditor.setValue('testValue2'); - expect(variantElement.context.getPropertyMap()[0].alias).to.equal('testAlias'); - expect(variantElement.context.getPropertyMap()[0].value).to.equal('testValue2'); + expect(variantElement.context.getValues()[0].alias).to.equal('testAlias'); + expect(variantElement.context.getValues()[0].value).to.equal('testValue2'); + }); + + it('variant element fires change event', async () => { + const listener = oneEvent(variantElement, UmbChangeEvent.TYPE); + + propertyEditor.setValue('testValue3'); + + const event = (await listener) as unknown as UmbChangeEvent; + expect(event).to.exist; + expect(event.type).to.eq(UmbChangeEvent.TYPE); + + expect(event.target).to.equal(variantElement); }); }); }); From 6e5deb6de29a7a5dd4547b8486f09de375230859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 09:37:08 +0100 Subject: [PATCH 10/44] clean up tests --- .../core/workspace/variant-context/basic-variant.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index dabd259bf2..aa04c5205c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -83,12 +83,12 @@ describe('UmbBasicVariantElement', () => { expect(variantElement).to.be.instanceOf(UmbBasicVariantElement); }); - it('property editor gets value', async () => { + it('property editor gets value', () => { expect(propertyEditor.alias).to.equal('testAlias'); expect(propertyEditor.getValue()).to.equal('testValue'); }); - it('property editor sets value on it self', async () => { + it('property editor sets value on it self', () => { propertyEditor.setValue('testValue2'); expect(propertyEditor.getValue()).to.equal('testValue2'); }); From 0acbb770a732f9ac971e554ce803d96dc631d76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 09:37:32 +0100 Subject: [PATCH 11/44] do not fire events on changes coming from the inside --- .../variant-context/basic-variant.element.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts index 2a566578b1..ccc431e95b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -6,6 +6,9 @@ import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; @customElement('umb-basic-variant') export class UmbBasicVariantElement extends UmbLitElement { + // A take on only firing events when the value is changed from the outside. + #silent = false; + public readonly context: UmbBasicVariantContext; @property({ attribute: false }) @@ -13,7 +16,9 @@ export class UmbBasicVariantElement extends UmbLitElement { return this.context.getValues(); } public set value(value: Array) { + this.#silent = true; this.context.setValues(value); + this.#silent = false; } @property({ attribute: false }) @@ -21,14 +26,23 @@ export class UmbBasicVariantElement extends UmbLitElement { return this.context.getName(); } public set name(value: string | undefined) { + this.#silent = true; this.context.setName(value); + this.#silent = false; } constructor() { super(); this.context = new UmbBasicVariantContext(this); + this.observe(this.context.name, () => { + if (!this.#silent) { + this.dispatchEvent(new UmbChangeEvent()); + } + }); this.observe(this.context.values, () => { - this.dispatchEvent(new UmbChangeEvent()); + if (!this.#silent) { + this.dispatchEvent(new UmbChangeEvent()); + } }); } From 01450b748f9d17fef78b70cdea785429ef6c9dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 09:38:36 +0100 Subject: [PATCH 12/44] simplify the code of the workspace property --- .../workspace-property.element.ts | 49 +++++++++---------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts index aff9be9507..360f1db809 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts @@ -57,13 +57,13 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { * @attr * @default '' */ - private _propertyEditorUiAlias = ''; @property({ type: String, attribute: 'property-editor-ui-alias' }) public set propertyEditorUiAlias(value: string) { if (this._propertyEditorUiAlias === value) return; this._propertyEditorUiAlias = value; this._observePropertyEditorUI(); } + private _propertyEditorUiAlias = ''; /** * Config. Configuration to pass to the Property Editor UI. This is also the configuration data stored on the Data Type. @@ -144,43 +144,38 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { } const el = await createExtensionElement(manifest); - if (el) { - const oldValue = this._element; - oldValue?.removeEventListener('change', this._onPropertyEditorChange as any as EventListener); + if (el) { + const oldElement = this._element; + + // cleanup: + this._valueObserver?.destroy(); + this._configObserver?.destroy(); + oldElement?.removeEventListener('property-value-change', this._onPropertyEditorChange as any as EventListener); this._element = el as ManifestPropertyEditorUi['ELEMENT_TYPE']; this._propertyContext.setEditor(this._element); - this._valueObserver?.destroy(); - this._configObserver?.destroy(); - if (this._element) { + // TODO: Could this be changed to change event? (or additionally support change?) this._element.addEventListener('property-value-change', this._onPropertyEditorChange as any as EventListener); - this._valueObserver = this.observe( - this._propertyContext.value, - (value) => { - this._value = value; - if (this._element) { - this._element.value = value; - } - }, - '_observePropertyValue', - ); - this._configObserver = this.observe( - this._propertyContext.config, - (config) => { - if (this._element && config) { - this._element.config = config; - } - }, - '_observePropertyConfig', - ); + // No need for a controller alias, as the clean is handled via the observer prop: + this._valueObserver = this.observe(this._propertyContext.value, (value) => { + this._value = value; + if (this._element) { + this._element.value = value; + } + }); + this._configObserver = this.observe(this._propertyContext.config, (config) => { + if (this._element && config) { + this._element.config = config; + } + }); } - this.requestUpdate('element', oldValue); + this.requestUpdate('element', oldElement); } } From 816132fcdc27b85efecb33f8cb303807a3f13757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 11:31:20 +0100 Subject: [PATCH 13/44] format --- .../components/backoffice-main.element.ts | 44 ++-- .../database/installer-database.element.ts | 33 +-- .../shared/layout/installer-layout.element.ts | 7 +- .../installer/shared/utils.story-helpers.ts | 5 +- .../src/external/router-slot/config.ts | 10 +- .../src/external/router-slot/model.ts | 110 ++++----- .../src/external/router-slot/router-slot.ts | 67 +++--- .../src/external/router-slot/util/anchor.ts | 21 +- .../src/external/router-slot/util/events.ts | 33 +-- .../src/external/router-slot/util/history.ts | 131 ++++++----- .../src/external/router-slot/util/router.ts | 128 ++++++----- .../src/external/router-slot/util/shadow.ts | 10 +- .../src/external/router-slot/util/url.ts | 58 ++--- .../consume/context-consumer.controller.ts | 17 +- .../context-provider.controller.test.ts | 2 +- .../provide/context-provider.controller.ts | 23 +- .../provide/context-provider.element.test.ts | 2 +- .../src/libs/element-api/element.mixin.ts | 21 +- .../condition-controller-arguments.type.ts | 2 +- .../extension-element-initializer.test.ts | 6 +- ...tension-manifest-initializer.controller.ts | 10 +- .../extensions-api-initializer.controller.ts | 17 +- ...ensions-manifest-initializer.controller.ts | 14 +- .../create-extension-api.function.ts | 26 ++- .../functions/create-extension-api.test.ts | 40 +--- .../create-extension-element.function.ts | 28 +-- .../create-extension-element.test.ts | 49 ++-- .../src/libs/extension-api/functions/index.ts | 1 - .../extension-api/models/api.interface.ts | 2 +- .../src/libs/extension-api/models/index.ts | 4 +- .../libs/extension-api/type-guards/index.ts | 2 +- .../is-manifest-base-type.function.ts | 4 +- .../extension-api/types/condition.types.ts | 6 +- .../src/libs/extension-api/types/index.ts | 2 +- .../types/manifest-base.interface.ts | 3 +- .../types/manifest-bundle.interface.ts | 5 +- .../types/manifest-condition.interface.ts | 4 +- .../types/manifest-entrypoint.interface.ts | 4 +- .../src/libs/extension-api/types/map.types.ts | 4 +- .../libs/observable-api/states/basic-state.ts | 16 +- .../libs/observable-api/states/class-state.ts | 2 +- .../partial-update-frozen-array.function.ts | 2 +- .../src/mocks/data/document.data.ts | 2 - .../src/mocks/data/partial-views.data.ts | 2 +- .../src/mocks/data/utils.ts | 2 +- .../src/mocks/handlers/config.handlers.ts | 2 +- .../handlers/examine-management.handlers.ts | 6 +- .../mocks/handlers/health-check.handlers.ts | 4 +- .../src/mocks/handlers/install.handlers.ts | 10 +- .../src/mocks/handlers/language.handlers.ts | 2 +- .../src/mocks/handlers/manifests.handlers.ts | 4 +- .../mocks/handlers/modelsbuilder.handlers.ts | 4 +- .../src/mocks/handlers/package.handlers.ts | 4 +- .../performance-profiling.handlers.ts | 4 +- .../handlers/published-status.handlers.ts | 10 +- .../src/mocks/handlers/server.handlers.ts | 8 +- .../src/mocks/handlers/telemetry.handlers.ts | 6 +- .../src/mocks/handlers/upgrade.handlers.ts | 4 +- ...ckoffice-notification-container.element.ts | 4 +- .../body-layout/body-layout.stories.ts | 11 +- .../button-with-dropdown.stories.ts | 9 +- .../empty-state/empty-state.element.ts | 2 +- .../empty-state/empty-state.stories.ts | 7 +- .../entity-actions-bundle.element.ts | 4 +- .../extension-slot/extension-slot.element.ts | 6 +- .../extension-slot/extension-slot.test.ts | 8 +- .../footer-layout/footer-layout.element.ts | 2 +- .../footer-layout/footer-layout.stories.ts | 13 +- .../header-app/header-app-button.element.ts | 2 +- .../history/history-item.element.ts | 2 +- .../history/history-list.element.ts | 2 +- .../history/history-list.stories.ts | 40 ++-- .../input-multi-url.element.ts | 4 +- .../input-tiny-mce/input-tiny-mce.element.ts | 6 +- .../core/components/table/table.element.ts | 28 +-- .../tooltip-menu/tooltip-menu.element.ts | 4 +- .../variant-selector.element.ts | 71 +++--- .../variant-selector.stories.ts | 3 +- .../entity-actions/create/modal/index.ts | 2 +- .../item/data-type-item.server.data.ts | 2 +- .../data-type-workspace-editor.element.ts | 5 +- .../src/packages/core/debug/debug.element.ts | 24 +- .../folder-update/folder-update.action.ts | 2 +- .../sort-children-of.action.ts | 2 +- .../models/entity-bulk-action.model.ts | 4 +- .../models/localization.model.ts | 2 +- .../extension-registry/models/modal.model.ts | 3 +- .../models/property-action.model.ts | 4 +- .../models/repository.model.ts | 4 +- .../models/workspace-action.model.ts | 9 +- .../localization/localize-date.element.ts | 12 +- .../localization/localize-number.element.ts | 12 +- .../localize-relative-time.element.ts | 14 +- .../core/localization/localize.element.ts | 8 +- .../registry/localization.registry.ts | 2 +- .../common/confirm/confirm-modal.element.ts | 1 - .../icon-picker/icon-picker-modal.element.ts | 59 +++-- .../icon-picker/icon-picker-modal.stories.ts | 3 +- .../section-picker-modal.element.ts | 3 +- .../src/packages/core/modal/modal.element.ts | 2 +- .../modal/token/icon-picker-modal.token.ts | 3 +- .../notification-layout-default.element.ts | 2 +- .../notification-layout-default.test.ts | 2 +- .../copy/property-action-copy.element.ts | 4 +- .../shared/property-action-menu/index.ts | 4 +- .../property-action-menu.element.ts | 41 ++-- .../shared/property-action/index.ts | 2 +- .../core/property-editor/config/index.ts | 4 +- ...-block-grid-block-configuration.element.ts | 7 +- ...-ui-block-grid-block-configuration.test.ts | 8 +- ...-block-grid-group-configuration.element.ts | 9 +- ...-ui-block-grid-group-configuration.test.ts | 8 +- ...ui-block-grid-stylesheet-picker.element.ts | 7 +- ...or-ui-block-grid-stylesheet-picker.test.ts | 8 +- ...editor-ui-block-grid-inner-test.element.ts | 2 +- .../property-editor-ui-block-grid.element.ts | 3 +- ...-ui-block-list-block-configuration.test.ts | 8 +- .../property-editor-ui-block-list.element.ts | 2 +- ...roperty-editor-ui-checkbox-list.element.ts | 2 +- ...on-view-bulk-action-permissions.element.ts | 7 +- ...ction-view-bulk-action-permissions.test.ts | 8 +- ...ction-view-column-configuration.element.ts | 7 +- ...llection-view-column-configuration.test.ts | 8 +- ...ction-view-layout-configuration.element.ts | 7 +- ...llection-view-layout-configuration.test.ts | 8 +- ...tor-ui-collection-view-order-by.element.ts | 7 +- ...editor-ui-collection-view-order-by.test.ts | 6 +- ...perty-editor-ui-collection-view.element.ts | 2 +- .../property-editor-ui-date-picker.element.ts | 2 +- .../property-editor-ui-icon-picker.element.ts | 2 +- .../label/property-editor-ui-label.element.ts | 2 +- ...y-editor-ui-member-group-picker.element.ts | 7 +- ...erty-editor-ui-member-group-picker.test.ts | 6 +- ...roperty-editor-ui-member-picker.element.ts | 2 +- ...erty-editor-ui-multi-url-picker.element.ts | 7 +- ...roperty-editor-ui-multi-url-picker.test.ts | 6 +- ...rty-editor-ui-multiple-text-string.test.ts | 6 +- ...property-editor-ui-number-range.element.ts | 2 +- .../property-editor-ui-number.element.ts | 2 +- ...perty-editor-ui-order-direction.element.ts | 7 +- ...property-editor-ui-overlay-size.element.ts | 2 +- ...rty-editor-ui-radio-button-list.element.ts | 7 +- ...operty-editor-ui-radio-button-list.test.ts | 6 +- .../property-editor-ui-slider.element.ts | 2 +- ...-tiny-mce-dimensions-configuration.test.ts | 8 +- ...-mce-maximagesize-configuration.element.ts | 11 +- ...iny-mce-maximagesize-configuration.test.ts | 8 +- ...y-mce-stylesheets-configuration.element.ts | 5 +- ...tiny-mce-stylesheets-configuration.test.ts | 8 +- ...-ui-tiny-mce-toolbar-configuration.test.ts | 8 +- .../property-editor-ui-toggle.element.ts | 2 +- ...y-editor-ui-tree-picker-start-node.test.ts | 6 +- .../property-editor-ui-user-picker.element.ts | 2 +- .../property-editor-ui-value-type.element.ts | 2 +- ...ata-source-paged-response-data.function.ts | 4 +- ...nd-data-source-paged-response-data.test.ts | 8 +- ...tend-data-source-response-data.function.ts | 2 +- .../repository/detail-repository.interface.ts | 4 +- .../section-main/section-main.stories.ts | 5 +- .../section-sidebar-context-menu.element.ts | 2 +- .../section-sidebar-menu.element.ts | 4 +- .../section-sidebar.context.ts | 2 +- .../section-sidebar.element.ts | 2 +- .../section-sidebar.stories.ts | 5 +- .../packages/core/sorter/sorter.controller.ts | 6 +- .../nameable-variant-context.interface.ts | 6 +- .../entity-manager-controller.ts | 4 +- ...workspace-variantable-context.interface.ts | 9 +- .../workspace-editor.stories.ts | 15 +- .../workspace-footer.stories.ts | 9 +- .../workspace-modal.element.ts | 2 +- .../workspace-property-layout.element.ts | 22 +- .../workspace-property-layout.stories.ts | 11 +- .../workspace-split-view.element.ts | 7 +- .../core/workspace/workspace.element.ts | 2 +- .../entity-actions/reload.action.ts | 2 +- .../dictionary/repository/dictionary.store.ts | 2 +- .../document-blueprint.detail.store.ts | 4 +- .../entity-actions/create/modal/index.ts | 2 +- .../document-type-workspace.element.ts | 4 +- ...perty-editor-ui-document-picker.element.ts | 5 +- .../sources/document.server.data.ts | 1 - .../documents/user-permissions/manifests.ts | 3 +- .../document-workspace-editor.element.ts | 6 +- .../document-workspace-split-view.element.ts | 6 +- .../workspace/document-workspace.context.ts | 19 +- ...-workspace-view-edit-properties.element.ts | 7 +- ...ocument-workspace-view-edit-tab.element.ts | 15 +- .../document-info-workspace-view.element.ts | 43 +++- .../health-check-dashboard.context.ts | 2 +- .../health-check/health-check.context.ts | 2 +- .../views/health-check-action.element.ts | 2 +- ...health-check-group-box-overview.element.ts | 14 +- .../views/health-check-group.element.ts | 5 +- .../donut-chart/donut-chart.element.ts | 6 +- .../donut-chart/donut-chart.stories.ts | 13 +- .../log-viewer-date-range-selector.element.ts | 2 +- .../sources/log-viewer.server.data.ts | 10 +- .../logviewer/logviewer-workspace.element.ts | 2 +- .../log-viewer-log-types-chart.element.ts | 4 +- ...ewer-message-templates-overview.element.ts | 6 +- ...-viewer-saved-searches-overview.element.ts | 6 +- .../overview/log-overview-view.element.ts | 2 +- ...og-viewer-log-level-filter-menu.element.ts | 2 +- .../components/log-viewer-message.element.ts | 25 +- .../log-viewer-messages-list.element.ts | 15 +- .../log-viewer-polling-button.element.ts | 2 +- .../log-viewer-search-input.element.ts | 12 +- .../views/search/log-search-view.element.ts | 2 +- .../collection-view-media-test.element.ts | 2 +- .../media/media/collection-view/manifests.ts | 30 ++- .../dashboard-members-welcome.element.ts | 2 +- .../member-type-workspace-editor.element.ts | 2 +- .../member-type-workspace.element.ts | 2 +- .../member-workspace-editor.element.ts | 2 +- .../workspace-package-builder.element.ts | 10 +- .../workspace/workspace-package.element.ts | 2 +- .../packages-created-overview.element.ts | 2 +- ...lled-packages-section-view-item.element.ts | 6 +- .../modal-views/fields-settings.element.ts | 8 +- .../views/section-view-examine-indexers.ts | 4 +- .../views/section-view-examine-overview.ts | 2 +- .../views/section-view-examine-searchers.ts | 4 +- .../src/packages/search/manifests.ts | 2 +- .../search-modal/search-modal.element.ts | 4 +- .../search/umb-search-header-app.element.ts | 2 +- .../dashboard-models-builder.element.ts | 1 - .../telemetry/dashboard-telemetry.element.ts | 4 +- .../extension-root-workspace.element.ts | 12 +- .../input-language-picker.element.ts | 4 +- .../repository/language-item.store.ts | 2 +- .../languages/repository/language.store.ts | 2 +- .../sources/language-item.server.data.ts | 2 +- ...root-table-delete-column-layout.element.ts | 2 +- ...e-root-table-name-column-layout.element.ts | 2 +- .../language-root-workspace.element.ts | 2 +- .../language/language-workspace.element.ts | 4 +- .../repository/relation-type.store.ts | 2 +- .../relation-type-workspace.element.ts | 4 +- .../tags-input/tags-input.element.ts | 9 +- ...rty-editor-ui-tags-storage-type.element.ts | 2 +- ...operty-editor-ui-tags-storage-type.test.ts | 6 +- .../tags/property-editor-ui-tags.element.ts | 2 +- .../src/packages/tags/repository/tag.store.ts | 6 +- .../code-editor/code-editor.element.ts | 10 +- .../code-editor/code-editor.stories.ts | 2 +- .../insert-section-input.element.ts | 4 +- .../partial-view-workspace.element.ts | 4 +- .../template-card/template-card.stories.ts | 15 +- .../query-builder-filter.element.ts | 2 +- .../sources/template.item.server.data.ts | 2 +- ...le-app-external-login-providers.element.ts | 2 +- .../user-profile-app-history.element.ts | 12 +- .../user-profile-app-themes.element.ts | 20 +- ...up-table-sections-column-layout.element.ts | 10 +- .../repository/user-group-item.store.ts | 4 +- ...orkspace-action-user-group-save.element.ts | 2 +- ...r-group-default-permission-list.element.ts | 12 +- .../user-input/user-input.element.ts | 12 +- .../user-create-success-modal.element.ts | 13 +- .../item/user-item.server.data-source.ts | 4 +- .../user-set-group.server.data-source.ts | 2 +- .../user-workspace-action-save.element.ts | 2 +- .../src/packages/user/utils.ts | 24 +- .../src/shared/icon-registry/icon.stories.ts | 2 +- .../resources/tryExecuteAndNotify.function.ts | 2 +- .../generate-route-path-builder.function.ts | 2 +- .../src/shared/style/text-style.style.ts | 9 +- ...omponent-has-manifest-property.function.ts | 2 +- .../pagination.manager.test.ts | 208 +++++++++-------- .../pagination-manager/pagination.manager.ts | 217 +++++++++--------- .../src/shared/utils/udi-service.ts | 2 +- 272 files changed, 1499 insertions(+), 1411 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts index 46bb96b2c6..f319f9d9e3 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts @@ -3,9 +3,7 @@ import { css, html, customElement, state } from '@umbraco-cms/backoffice/externa import { UmbSectionContext, UMB_SECTION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/section'; import type { UmbRoute, UmbRouterSlotChangeEvent } from '@umbraco-cms/backoffice/router'; import type { ManifestSection, UmbSectionElement } from '@umbraco-cms/backoffice/extension-registry'; -import { - UmbExtensionManifestInitializer, createExtensionElement -} from '@umbraco-cms/backoffice/extension-api'; +import { UmbExtensionManifestInitializer, createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-backoffice-main') @@ -37,7 +35,7 @@ export class UmbBackofficeMainElement extends UmbLitElement { this._sections = sections; this._createRoutes(); }, - 'observeAllowedSections' + 'observeAllowedSections', ); } } @@ -47,21 +45,23 @@ export class UmbBackofficeMainElement extends UmbLitElement { const oldValue = this._routes; // TODO: Refactor this for re-use across the app where the routes are re-generated at any time. - this._routes = this._sections.filter(x => x.manifest).map((section) => { - const existingRoute = this._routes.find((r) => r.alias === section.alias); - if (existingRoute) { - return existingRoute; - } else { - return { - alias: section.alias, - path: this._routePrefix + (section.manifest as ManifestSection).meta.pathname, - component: () => createExtensionElement(section.manifest!, 'umb-section-default'), - setup: (component) => { - (component as UmbSectionElement).manifest = section.manifest as ManifestSection; - }, - }; - } - }); + this._routes = this._sections + .filter((x) => x.manifest) + .map((section) => { + const existingRoute = this._routes.find((r) => r.alias === section.alias); + if (existingRoute) { + return existingRoute; + } else { + return { + alias: section.alias, + path: this._routePrefix + (section.manifest as ManifestSection).meta.pathname, + component: () => createExtensionElement(section.manifest!, 'umb-section-default'), + setup: (component) => { + (component as UmbSectionElement).manifest = section.manifest as ManifestSection; + }, + }; + } + }); if (this._sections.length > 0) { this._routes.push({ @@ -79,7 +79,7 @@ export class UmbBackofficeMainElement extends UmbLitElement { const section = this._sections.find((s) => this._routePrefix + (s.manifest as any).meta.pathname === currentPath); if (!section) return; await section.asPromise(); - if(section.manifest) { + if (section.manifest) { this._backofficeContext?.setActiveSectionAlias(section.alias); this._provideSectionContext(section.manifest); } @@ -105,7 +105,9 @@ export class UmbBackofficeMainElement extends UmbLitElement { :host { background-color: var(--uui-color-background); display: block; - height: calc(100% - 60px); // 60 => top header height, TODO: Make sure this comes from somewhere so it is maintainable and eventually responsive. + height: calc( + 100% - 60px + ); // 60 => top header height, TODO: Make sure this comes from somewhere so it is maintainable and eventually responsive. } `, ]; diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.element.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.element.ts index e3448233c0..45525cd576 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.element.ts @@ -169,7 +169,7 @@ export class UmbInstallerDatabaseElement extends UmbLitElement { }; const { error } = await tryExecute( - InstallResource.postInstallValidateDatabase({ requestBody: databaseDetails }) + InstallResource.postInstallValidateDatabase({ requestBody: databaseDetails }), ); if (error) { @@ -199,7 +199,7 @@ export class UmbInstallerDatabaseElement extends UmbLitElement { this._installerContext.nextStep(); const { error } = await tryExecute( - InstallResource.postInstallSetup({ requestBody: this._installerContext.getData() }) + InstallResource.postInstallSetup({ requestBody: this._installerContext.getData() }), ); if (error) { @@ -243,7 +243,7 @@ export class UmbInstallerDatabaseElement extends UmbLitElement { } result.push( - this._renderDatabaseName(this.databaseFormData.name ?? this._selectedDatabase.defaultDatabaseName ?? 'umbraco') + this._renderDatabaseName(this.databaseFormData.name ?? this._selectedDatabase.defaultDatabaseName ?? 'umbraco'), ); if (this._selectedDatabase.requiresCredentials) { @@ -271,19 +271,20 @@ export class UmbInstallerDatabaseElement extends UmbLitElement { `; - private _renderDatabaseName = (value: string) => html` - Database Name - - `; + private _renderDatabaseName = (value: string) => + html` + Database Name + + `; private _renderCredentials = () => html`

Credentials

diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.element.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.element.ts index ab8cba7730..10e4394320 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.element.ts @@ -60,8 +60,11 @@ export class UmbInstallerLayoutElement extends LitElement { max-width: 1200px; height: 100%; max-height: 900px; - box-shadow: 0px 1.1px 3.7px rgba(0, 0, 0, 0.091), 0px 3.1px 10.1px rgba(0, 0, 0, 0.13), - 0px 7.5px 24.4px rgba(0, 0, 0, 0.169), 0px 25px 81px rgba(0, 0, 0, 0.26); + box-shadow: + 0px 1.1px 3.7px rgba(0, 0, 0, 0.091), + 0px 3.1px 10.1px rgba(0, 0, 0, 0.13), + 0px 7.5px 24.4px rgba(0, 0, 0, 0.169), + 0px 25px 81px rgba(0, 0, 0, 0.26); } #grid { diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/utils.story-helpers.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/utils.story-helpers.ts index 3e881266d8..e22e315b24 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/utils.story-helpers.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/utils.story-helpers.ts @@ -1,7 +1,10 @@ import { UmbInstallerContext } from '../installer.context.js'; import { html, type TemplateResult } from '@umbraco-cms/backoffice/external/lit'; -export const installerContextProvider = (story: () => Node | string | TemplateResult, installerContext = new UmbInstallerContext()) => html` +export const installerContextProvider = ( + story: () => Node | string | TemplateResult, + installerContext = new UmbInstallerContext(), +) => html` extends HTMLElement { readonly params: Params | null; readonly match: IRouteMatch | null; routes: IRoute[]; - add: ((routes: IRoute[], navigate?: boolean) => void); - clear: (() => void); - render: (() => Promise); - constructAbsolutePath: ((path: PathFragment) => string); + add: (routes: IRoute[], navigate?: boolean) => void; + clear: () => void; + render: () => Promise; + constructAbsolutePath: (path: PathFragment) => string; parent: IRouterSlot

| null | undefined; - queryParentRouterSlot: (() => IRouterSlot

| null); + queryParentRouterSlot: () => IRouterSlot

| null; } export type IRoutingInfo = { - slot: IRouterSlot, - match: IRouteMatch + slot: IRouterSlot; + match: IRouteMatch; }; -export type CustomResolver = ((info: IRoutingInfo) => boolean | void | Promise | Promise); -export type Guard = ((info: IRoutingInfo) => boolean | Promise); -export type Cancel = (() => boolean); +export type CustomResolver = ( + info: IRoutingInfo, +) => boolean | void | Promise | Promise; +export type Guard = (info: IRoutingInfo) => boolean | Promise; +export type Cancel = () => boolean; export type PageComponent = HTMLElement | undefined; -export type ModuleResolver = Promise<{default: any; /*PageComponent*/}>; -export type Class = {new (...args: any[]): T;}; -export type Component = Class | ModuleResolver | PageComponent | (() => Class) | (() => PromiseLike) | (() => PageComponent) | (() => PromiseLike) | (() => ModuleResolver) | (() => PromiseLike); -export type Setup = ((component: PageComponent, info: IRoutingInfo) => void); +export type ModuleResolver = Promise<{ default: any /*PageComponent*/ }>; +export type Class = { new (...args: any[]): T }; +export type Component = + | Class + | ModuleResolver + | PageComponent + | (() => Class) + | (() => PromiseLike) + | (() => PageComponent) + | (() => PromiseLike) + | (() => ModuleResolver) + | (() => PromiseLike); +export type Setup = (component: PageComponent, info: IRoutingInfo) => void; -export type RouterTree = {slot: IRouterSlot} & {child?: RouterTree} | null | undefined; -export type PathMatch = "prefix" | "suffix" | "full" | "fuzzy"; +export type RouterTree = ({ slot: IRouterSlot } & { child?: RouterTree }) | null | undefined; +export type PathMatch = 'prefix' | 'suffix' | 'full' | 'fuzzy'; /** * The base route interface. * D = the data type of the data */ export interface IRouteBase { - // The path for the route fragment path: PathFragment; @@ -58,7 +68,6 @@ export interface IRouteBase { * Route type used for redirection. */ export interface IRedirectRoute extends IRouteBase { - // The paths the route should redirect to. Can either be relative or absolute. redirectTo: string; @@ -70,7 +79,6 @@ export interface IRedirectRoute extends IRouteBase { * Route type used to resolve and stamp components. */ export interface IComponentRoute extends IRouteBase { - // The component loader (should return a module with a default export) component: Component | PromiseLike; @@ -82,7 +90,6 @@ export interface IComponentRoute extends IRouteBase { * Route type used to take control of how the route should resolve. */ export interface IResolverRoute extends IRouteBase { - // A custom resolver that handles the route change resolve: CustomResolver; } @@ -90,13 +97,13 @@ export interface IResolverRoute extends IRouteBase { export type IRoute = IRedirectRoute | IComponentRoute | IResolverRoute; export type PathFragment = string; export type IPathFragments = { - consumed: PathFragment, - rest: PathFragment -} + consumed: PathFragment; + rest: PathFragment; +}; export interface IRouteMatch { route: IRoute; - params: Params, + params: Params; fragments: IPathFragments; match: RegExpMatchArray; } @@ -104,57 +111,56 @@ export interface IRouteMatch { export type PushStateEvent = CustomEvent; export type ReplaceStateEvent = CustomEvent; export type ChangeStateEvent = CustomEvent; -export type WillChangeStateEvent = CustomEvent<{ url?: string | null, eventName: GlobalRouterEvent}>; +export type WillChangeStateEvent = CustomEvent<{ url?: string | null; eventName: GlobalRouterEvent }>; export type NavigationStartEvent = CustomEvent>; export type NavigationSuccessEvent = CustomEvent>; export type NavigationCancelEvent = CustomEvent>; export type NavigationErrorEvent = CustomEvent>; export type NavigationEndEvent = CustomEvent>; -export type Params = {[key: string]: string}; -export type Query = {[key: string]: string}; +export type Params = { [key: string]: string }; +export type Query = { [key: string]: string }; -export type EventListenerSubscription = (() => void); +export type EventListenerSubscription = () => void; /** * RouterSlot related events. */ -export type RouterSlotEvent = "changestate"; +export type RouterSlotEvent = 'changestate'; /** * History related events. */ export type GlobalRouterEvent = - -// An event triggered when a new state is added to the history. - "pushstate" + // An event triggered when a new state is added to the history. + | 'pushstate' // An event triggered when the current state is replaced in the history. - | "replacestate" + | 'replacestate' // An event triggered when a state in the history is popped from the history. - | "popstate" + | 'popstate' // An event triggered when the state changes (eg. pop, push and replace) - | "changestate" + | 'changestate' // A cancellable event triggered before the history state changes. - | "willchangestate" + | 'willchangestate' // An event triggered when navigation starts. - | "navigationstart" + | 'navigationstart' // An event triggered when navigation is canceled. This is due to a route guard returning false during navigation. - | "navigationcancel" + | 'navigationcancel' // An event triggered when navigation fails due to an unexpected error. - | "navigationerror" + | 'navigationerror' // An event triggered when navigation successfully completes. - | "navigationsuccess" + | 'navigationsuccess' // An event triggered when navigation ends. - | "navigationend"; + | 'navigationend'; export interface ISlashOptions { start: boolean; @@ -164,15 +170,15 @@ export interface ISlashOptions { /* Extend the global event handlers map with the router related events */ declare global { interface GlobalEventHandlersEventMap { - "pushstate": PushStateEvent, - "replacestate": ReplaceStateEvent, - "popstate": PopStateEvent, - "changestate": ChangeStateEvent, - "navigationstart": NavigationStartEvent, - "navigationend": NavigationEndEvent, - "navigationsuccess": NavigationSuccessEvent, - "navigationcancel": NavigationCancelEvent, - "navigationerror": NavigationErrorEvent, - "willchangestate": WillChangeStateEvent + pushstate: PushStateEvent; + replacestate: ReplaceStateEvent; + popstate: PopStateEvent; + changestate: ChangeStateEvent; + navigationstart: NavigationStartEvent; + navigationend: NavigationEndEvent; + navigationsuccess: NavigationSuccessEvent; + navigationcancel: NavigationCancelEvent; + navigationerror: NavigationErrorEvent; + willchangestate: WillChangeStateEvent; } -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/router-slot.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/router-slot.ts index 1ceb0a8ca6..6e2425cd9a 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/router-slot.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/router-slot.ts @@ -1,4 +1,4 @@ -import { GLOBAL_ROUTER_EVENTS_TARGET, ROUTER_SLOT_TAG_NAME } from "./config.js"; +import { GLOBAL_ROUTER_EVENTS_TARGET, ROUTER_SLOT_TAG_NAME } from './config.js'; import { Cancel, EventListenerSubscription, @@ -11,7 +11,7 @@ import { Params, PathFragment, RouterSlotEvent, -} from "./model.js"; +} from './model.js'; import { addListener, constructAbsolutePath, @@ -28,9 +28,9 @@ import { removeListeners, resolvePageComponent, shouldNavigate, -} from "./util.js"; +} from './util.js'; -const template = document.createElement("template"); +const template = document.createElement('template'); template.innerHTML = ``; // Patches the history object and ensures the correct events. @@ -44,10 +44,7 @@ ensureAnchorHistory(); * @slot - Default content. * @event changestate - Dispatched when the router slot state changes. */ -export class RouterSlot - extends HTMLElement - implements IRouterSlot -{ +export class RouterSlot extends HTMLElement implements IRouterSlot { /** * Listeners on the router. */ @@ -131,7 +128,7 @@ export class RouterSlot constructor() { super(); - this.addEventListener("router-slot:capture-parent", (e: any) => { + this.addEventListener('router-slot:capture-parent', (e: any) => { e.stopPropagation(); e.detail.parent = this; }); @@ -139,7 +136,7 @@ export class RouterSlot this.render = this.render.bind(this); // Attach the template - const shadow = this.attachShadow({ mode: "open" }); + const shadow = this.attachShadow({ mode: 'open' }); shadow.appendChild(template.content.cloneNode(true)); } @@ -149,7 +146,7 @@ export class RouterSlot connectedCallback() { // Do not query a parent if the parent has been set from the outside. if (!this._lockParent) { - const captureParentEvent = new CustomEvent("router-slot:capture-parent", { + const captureParentEvent = new CustomEvent('router-slot:capture-parent', { composed: true, bubbles: true, detail: { parent: null }, @@ -237,9 +234,7 @@ export class RouterSlot // Either choose the parent fragment or the current path if no parent exists. // The root router slot will always use the entire path. const pathFragment = - this.parent != null && this.parent.fragments != null - ? this.parent.fragments.rest - : pathWithoutBasePath(); + this.parent != null && this.parent.fragments != null ? this.parent.fragments.rest : pathWithoutBasePath(); // Route to the path await this.renderPath(pathFragment); @@ -253,17 +248,9 @@ export class RouterSlot this.listeners.push( this.parent != null ? // Attach child router listeners - addListener( - this.parent, - "changestate", - this.render - ) + addListener(this.parent, 'changestate', this.render) : // Add global listeners. - addListener( - GLOBAL_ROUTER_EVENTS_TARGET, - "changestate", - this.render - ) + addListener(GLOBAL_ROUTER_EVENTS_TARGET, 'changestate', this.render), ); } @@ -328,12 +315,14 @@ export class RouterSlot // while we are about to navigate we have to cancel. let navigationInvalidated = false; const cancelNavigation = () => (navigationInvalidated = true); - const removeChangeListener: EventListenerSubscription = addListener< - Event, - GlobalRouterEvent - >(GLOBAL_ROUTER_EVENTS_TARGET, "changestate", cancelNavigation, { - once: true, - }); + const removeChangeListener: EventListenerSubscription = addListener( + GLOBAL_ROUTER_EVENTS_TARGET, + 'changestate', + cancelNavigation, + { + once: true, + }, + ); // Cleans up the routing by removing listeners and restoring the match from before const cleanup = () => { @@ -343,13 +332,13 @@ export class RouterSlot // Cleans up and dispatches a global event that a navigation was cancelled. const cancel: Cancel = () => { cleanup(); - dispatchGlobalRouterEvent("navigationcancel", info); - dispatchGlobalRouterEvent("navigationend", info); + dispatchGlobalRouterEvent('navigationcancel', info); + dispatchGlobalRouterEvent('navigationend', info); return false; }; // Dispatch globally that a navigation has started - dispatchGlobalRouterEvent("navigationstart", info); + dispatchGlobalRouterEvent('navigationstart', info); // Check whether the guards allow us to go to the new route. if (route.guards != null) { @@ -395,7 +384,7 @@ export class RouterSlot // We do this to ensure that we can find the match in the connectedCallback of the page. this._routeMatch = match; - if(page) { + if (page) { // Append the new page this.appendChild(page); } @@ -413,14 +402,14 @@ export class RouterSlot // Dispatch globally that a navigation has ended. if (navigate) { - dispatchGlobalRouterEvent("navigationsuccess", info); - dispatchGlobalRouterEvent("navigationend", info); + dispatchGlobalRouterEvent('navigationsuccess', info); + dispatchGlobalRouterEvent('navigationend', info); } return navigate; } catch (e) { - dispatchGlobalRouterEvent("navigationerror", info); - dispatchGlobalRouterEvent("navigationend", info); + dispatchGlobalRouterEvent('navigationerror', info); + dispatchGlobalRouterEvent('navigationend', info); throw e; } } @@ -430,6 +419,6 @@ window.customElements.define(ROUTER_SLOT_TAG_NAME, RouterSlot); declare global { interface HTMLElementTagNameMap { - "router-slot": RouterSlot; + 'router-slot': RouterSlot; } } diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/anchor.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/anchor.ts index 1337caf22e..437fd78afc 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/anchor.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/anchor.ts @@ -2,11 +2,12 @@ * Hook up a click listener to the window that, for all anchor tags * that has a relative HREF, uses the history API instead. */ -export function ensureAnchorHistory () { - window.addEventListener("click", (e: MouseEvent) => { - +export function ensureAnchorHistory() { + window.addEventListener('click', (e: MouseEvent) => { // Find the target by using the composed path to get the element through the shadow boundaries. - const $anchor = ("composedPath" in e as any) ? e.composedPath().find($elem => $elem instanceof HTMLAnchorElement) : e.target; + const $anchor = (('composedPath' in e) as any) + ? e.composedPath().find(($elem) => $elem instanceof HTMLAnchorElement) + : e.target; // Abort if the event is not about the anchor tag if ($anchor == null || !($anchor instanceof HTMLAnchorElement)) { @@ -20,9 +21,11 @@ export function ensureAnchorHistory () { // - The HREF is relative to the origin of the current location. // - The target is targeting the current frame. // - The anchor doesn't have the attribute [data-router-slot]="disabled" - if (!href.startsWith(location.origin) || - ($anchor.target !== "" && $anchor.target !== "_self") || - $anchor.dataset["routerSlot"] === "disabled") { + if ( + !href.startsWith(location.origin) || + ($anchor.target !== '' && $anchor.target !== '_self') || + $anchor.dataset['routerSlot'] === 'disabled' + ) { return; } @@ -33,6 +36,6 @@ export function ensureAnchorHistory () { e.preventDefault(); // Change the history! - history.pushState(null, "", path); + history.pushState(null, '', path); }); -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/events.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/events.ts index 85bf127954..b171d59489 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/events.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/events.ts @@ -1,13 +1,13 @@ -import { GLOBAL_ROUTER_EVENTS_TARGET } from "../config"; -import { EventListenerSubscription, GlobalRouterEvent, IRoute, IRoutingInfo } from "../model"; +import { GLOBAL_ROUTER_EVENTS_TARGET } from '../config'; +import { EventListenerSubscription, GlobalRouterEvent, IRoute, IRoutingInfo } from '../model'; /** * Dispatches a did change route event. * @param $elem * @param {IRoute} detail */ -export function dispatchRouteChangeEvent ($elem: HTMLElement, detail: IRoutingInfo) { - $elem.dispatchEvent(new CustomEvent("changestate", {detail})); +export function dispatchRouteChangeEvent($elem: HTMLElement, detail: IRoutingInfo) { + $elem.dispatchEvent(new CustomEvent('changestate', { detail })); } /** @@ -15,8 +15,8 @@ export function dispatchRouteChangeEvent ($elem: HTMLElement, detail: I * @param name * @param detail */ -export function dispatchGlobalRouterEvent (name: GlobalRouterEvent, detail?: IRoutingInfo) { - GLOBAL_ROUTER_EVENTS_TARGET.dispatchEvent(new CustomEvent(name, {detail})); +export function dispatchGlobalRouterEvent(name: GlobalRouterEvent, detail?: IRoutingInfo) { + GLOBAL_ROUTER_EVENTS_TARGET.dispatchEvent(new CustomEvent(name, { detail })); // if ("debugRouterSlot" in window) { // console.log(`%c [router-slot]: ${name}`, `color: #286ee0`, detail); // } @@ -29,21 +29,22 @@ export function dispatchGlobalRouterEvent (name: GlobalRouterEvent, det * @param listener * @param options */ -export function addListener ($elem: EventTarget, - type: eventType[] | eventType, - listener: ((e: T) => void), - options?: boolean | AddEventListenerOptions): EventListenerSubscription { +export function addListener( + $elem: EventTarget, + type: eventType[] | eventType, + listener: (e: T) => void, + options?: boolean | AddEventListenerOptions, +): EventListenerSubscription { const types = Array.isArray(type) ? type : [type]; - types.forEach(t => $elem.addEventListener(t, listener as EventListenerOrEventListenerObject, options)); - return () => types.forEach( - t => $elem.removeEventListener(t, listener as EventListenerOrEventListenerObject, options)); + types.forEach((t) => $elem.addEventListener(t, listener as EventListenerOrEventListenerObject, options)); + return () => + types.forEach((t) => $elem.removeEventListener(t, listener as EventListenerOrEventListenerObject, options)); } - /** * Removes the event listeners in the array. * @param listeners */ -export function removeListeners (listeners: EventListenerSubscription[]) { - listeners.forEach(unsub => unsub()); +export function removeListeners(listeners: EventListenerSubscription[]) { + listeners.forEach((unsub) => unsub()); } diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/history.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/history.ts index 74c7bdb59e..20ad3c8d2f 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/history.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/history.ts @@ -1,47 +1,44 @@ -import { GLOBAL_ROUTER_EVENTS_TARGET, HISTORY_PATCH_NATIVE_KEY } from "../config"; -import { GlobalRouterEvent } from "../model"; -import { dispatchGlobalRouterEvent } from "./events"; +import { GLOBAL_ROUTER_EVENTS_TARGET, HISTORY_PATCH_NATIVE_KEY } from '../config'; +import { GlobalRouterEvent } from '../model'; +import { dispatchGlobalRouterEvent } from './events'; // Mapping a history functions to the events they are going to dispatch. export const historyPatches: [string, GlobalRouterEvent[]][] = [ - ["pushState", ["pushstate", "changestate"]], - ["replaceState", ["replacestate", "changestate"]], - ["forward", ["pushstate", "changestate"]], - ["go", ["pushstate", "changestate"]], + ['pushState', ['pushstate', 'changestate']], + ['replaceState', ['replacestate', 'changestate']], + ['forward', ['pushstate', 'changestate']], + ['go', ['pushstate', 'changestate']], - // We need to handle the popstate a little differently when it comes to the change state event. - ["back", ["popstate"]], + // We need to handle the popstate a little differently when it comes to the change state event. + ['back', ['popstate']], ]; - /** * Patches the history object by ensuring correct events are dispatches when the history changes. */ export function ensureHistoryEvents() { - for (const [name, events] of historyPatches) { - for (const event of events) { - attachCallback(history, name, event); - } - } + for (const [name, events] of historyPatches) { + for (const event of events) { + attachCallback(history, name, event); + } + } - // The popstate is the only event natively dispatched when using the hardware buttons. - // Therefore we need to handle this case a little different. To ensure the changestate event - // is fired also when the hardware back button is used, we make sure to listen for the popstate - // event and dispatch a change state event right after. The reason for the setTimeout is because we - // want the popstate event to bubble up before the changestate event is dispatched. - window.addEventListener("popstate", (e: PopStateEvent) => { + // The popstate is the only event natively dispatched when using the hardware buttons. + // Therefore we need to handle this case a little different. To ensure the changestate event + // is fired also when the hardware back button is used, we make sure to listen for the popstate + // event and dispatch a change state event right after. The reason for the setTimeout is because we + // want the popstate event to bubble up before the changestate event is dispatched. + window.addEventListener('popstate', (e: PopStateEvent) => { + // Check if the state should be allowed to change + if (shouldCancelChangeState({ eventName: 'popstate' })) { + e.preventDefault(); + e.stopPropagation(); + return; + } - // Check if the state should be allowed to change - if (shouldCancelChangeState({eventName: "popstate"})) { - e.preventDefault(); - e.stopPropagation(); - return; - } - - // Dispatch the global router event to change the routes after the popstate has bubbled up - setTimeout(() => dispatchGlobalRouterEvent("changestate"), 0); - } - ); + // Dispatch the global router event to change the routes after the popstate has bubbled up + setTimeout(() => dispatchGlobalRouterEvent('changestate'), 0); + }); } /** @@ -52,20 +49,19 @@ export function ensureHistoryEvents() { * @param eventName */ export function attachCallback(obj: any, functionName: string, eventName: GlobalRouterEvent) { - const func = obj[functionName]; - saveNativeFunction(obj, functionName, func); - obj[functionName] = (...args: any[]) => { + const func = obj[functionName]; + saveNativeFunction(obj, functionName, func); + obj[functionName] = (...args: any[]) => { + // If its push/replace state we want to send the url to the should cancel change state event + const url = args.length > 2 ? args[2] : null; - // If its push/replace state we want to send the url to the should cancel change state event - const url = args.length > 2 ? args[2] : null; + // Check if the state should be allowed to change + if (shouldCancelChangeState({ url, eventName })) return; - // Check if the state should be allowed to change - if (shouldCancelChangeState({url, eventName})) return; - - // Navigate - func.apply(obj, args); - dispatchGlobalRouterEvent(eventName) - }; + // Navigate + func.apply(obj, args); + dispatchGlobalRouterEvent(eventName); + }; } /** @@ -74,37 +70,38 @@ export function attachCallback(obj: any, functionName: string, eventName: Global * @param name * @param func */ -export function saveNativeFunction(obj: any, name: string, func: (() => void)) { +export function saveNativeFunction(obj: any, name: string, func: () => void) { + // Ensure that the native object exists. + if (obj[HISTORY_PATCH_NATIVE_KEY] == null) { + obj[HISTORY_PATCH_NATIVE_KEY] = {}; + } - // Ensure that the native object exists. - if (obj[HISTORY_PATCH_NATIVE_KEY] == null) { - obj[HISTORY_PATCH_NATIVE_KEY] = {}; - } - - // Save the native function. - obj[HISTORY_PATCH_NATIVE_KEY][`${name}`] = func.bind(obj); + // Save the native function. + obj[HISTORY_PATCH_NATIVE_KEY][`${name}`] = func.bind(obj); } /** * Dispatches and event and returns whether the state change should be cancelled. * The state will be considered as cancelled if the "willChangeState" event was cancelled. */ -function shouldCancelChangeState(data: { url?: string | null, eventName: GlobalRouterEvent }): boolean { - return !GLOBAL_ROUTER_EVENTS_TARGET.dispatchEvent(new CustomEvent("willchangestate", { - cancelable: true, - detail: data - })); +function shouldCancelChangeState(data: { url?: string | null; eventName: GlobalRouterEvent }): boolean { + return !GLOBAL_ROUTER_EVENTS_TARGET.dispatchEvent( + new CustomEvent('willchangestate', { + cancelable: true, + detail: data, + }), + ); } // Expose the native history functions. declare global { - interface History { - "native": { - "back": ((distance?: any) => void); - "forward": ((distance?: any) => void); - "go": ((delta?: any) => void); - "pushState": ((data: any, title?: string, url?: string | null) => void); - "replaceState": ((data: any, title?: string, url?: string | null) => void); - } - } -} \ No newline at end of file + interface History { + native: { + back: (distance?: any) => void; + forward: (distance?: any) => void; + go: (delta?: any) => void; + pushState: (data: any, title?: string, url?: string | null) => void; + replaceState: (data: any, title?: string, url?: string | null) => void; + }; + } +} diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/router.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/router.ts index 033767f3d9..0b3303ab05 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/router.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/router.ts @@ -1,6 +1,19 @@ -import { CATCH_ALL_WILDCARD, DEFAULT_PATH_MATCH, PARAM_IDENTIFIER, TRAVERSE_FLAG } from "../config"; -import { IComponentRoute, IRedirectRoute, IResolverRoute, IRoute, IRouteMatch, IRouterSlot, ModuleResolver, PageComponent, Params, PathFragment, RouterTree, IRoutingInfo } from "../model"; -import { constructPathWithBasePath, path as getPath, queryString, stripSlash } from "./url"; +import { CATCH_ALL_WILDCARD, DEFAULT_PATH_MATCH, PARAM_IDENTIFIER, TRAVERSE_FLAG } from '../config'; +import { + IComponentRoute, + IRedirectRoute, + IResolverRoute, + IRoute, + IRouteMatch, + IRouterSlot, + ModuleResolver, + PageComponent, + Params, + PathFragment, + RouterTree, + IRoutingInfo, +} from '../model'; +import { constructPathWithBasePath, path as getPath, queryString, stripSlash } from './url'; /** * Determines whether the path is active. @@ -8,8 +21,8 @@ import { constructPathWithBasePath, path as getPath, queryString, stripSlash } f * @param path * @param fullPath */ -export function isPathActive (path: string | PathFragment, fullPath: string = getPath()): boolean { - return new RegExp(`^${stripSlash(path)}(\/|$)`, "gm").test(stripSlash(fullPath)); +export function isPathActive(path: string | PathFragment, fullPath: string = getPath()): boolean { + return new RegExp(`^${stripSlash(path)}(\/|$)`, 'gm').test(stripSlash(fullPath)); } /** @@ -17,16 +30,17 @@ export function isPathActive (path: string | PathFragment, fullPath: string = ge * @param route * @param path */ -export function matchRoute (route: IRoute, path: string | PathFragment): IRouteMatch | null { - +export function matchRoute(route: IRoute, path: string | PathFragment): IRouteMatch | null { // We start by preparing the route path by replacing the param names with a regex that matches everything // until either the end of the path or the next "/". While replacing the param placeholders we make sure // to store the names of the param placeholders. const paramNames: string[] = []; - const routePath = stripSlash(route.path.replace(PARAM_IDENTIFIER, (substring: string, ...args: string[]) => { - paramNames.push(args[0]); - return `([^\/]+)`; - })); + const routePath = stripSlash( + route.path.replace(PARAM_IDENTIFIER, (substring: string, ...args: string[]) => { + paramNames.push(args[0]); + return `([^\/]+)`; + }), + ); // Construct the regex to match with the path or fragment // If path is wildcard: @@ -45,19 +59,26 @@ export function matchRoute (route: IRoute, path: string | PathFragme // - We start the match with .*? to allow anything to be in front of what we are trying to match. // - We end the match with .*? to allow anything to be after what we are trying to match. // All matches starts with ^ to make sure the match is done from the beginning of the path. - const regex = route.path === CATCH_ALL_WILDCARD || (route.path.length === 0 && route.pathMatch != "full" ) ? /^/ : (() => { - switch (route.pathMatch || DEFAULT_PATH_MATCH) { - case "full": return new RegExp(`^${routePath}\/?$`); - case "suffix": return new RegExp(`^.*?${routePath}\/?$`); - case "fuzzy": return new RegExp(`^.*?${routePath}.*?$`); - case "prefix": default: return new RegExp(`^[\/]?${routePath}(?:\/|$)`); - } - })(); + const regex = + route.path === CATCH_ALL_WILDCARD || (route.path.length === 0 && route.pathMatch != 'full') + ? /^/ + : (() => { + switch (route.pathMatch || DEFAULT_PATH_MATCH) { + case 'full': + return new RegExp(`^${routePath}\/?$`); + case 'suffix': + return new RegExp(`^.*?${routePath}\/?$`); + case 'fuzzy': + return new RegExp(`^.*?${routePath}.*?$`); + case 'prefix': + default: + return new RegExp(`^[\/]?${routePath}(?:\/|$)`); + } + })(); // Check if there's a match const match = path.match(regex); if (match != null) { - // Match the param names with the matches. The matches starts from index 1 which is the // reason why we add 1. match[0] is the entire string. const params = paramNames.reduce((acc: Params, name: string, i: number) => { @@ -75,12 +96,11 @@ export function matchRoute (route: IRoute, path: string | PathFragme params, fragments: { consumed, - rest - } + rest, + }, }; } - return null; } @@ -89,7 +109,7 @@ export function matchRoute (route: IRoute, path: string | PathFragme * @param routes * @param path */ -export function matchRoutes (routes: IRoute[], path: string | PathFragment): IRouteMatch | null { +export function matchRoutes(routes: IRoute[], path: string | PathFragment): IRouteMatch | null { for (const route of routes) { const match = matchRoute(route, path); if (match != null) { @@ -106,15 +126,13 @@ export function matchRoutes (routes: IRoute[], path: string | PathFr * @param route * @param info */ -export async function resolvePageComponent (route: IComponentRoute, info: IRoutingInfo): Promise { - +export async function resolvePageComponent(route: IComponentRoute, info: IRoutingInfo): Promise { // Figure out if the component were given as an import or class. let cmp = route.component; if (cmp instanceof Function) { try { cmp = (cmp as Function)(); } catch (err) { - // The invocation most likely failed because the function is a class. // If it failed due to the "new" keyword not being used, the error will be of type "TypeError". // This is the most reliable way to check whether the provided function is a class or a function. @@ -147,24 +165,23 @@ export async function resolvePageComponent (route: IComponentRoute, info: IRouti * Determines if a route is a redirect route. * @param route */ -export function isRedirectRoute (route: IRoute): route is IRedirectRoute { - return "redirectTo" in route; +export function isRedirectRoute(route: IRoute): route is IRedirectRoute { + return 'redirectTo' in route; } /** * Determines if a route is a resolver route. * @param route */ -export function isResolverRoute (route: IRoute): route is IResolverRoute { - return "resolve" in route; +export function isResolverRoute(route: IRoute): route is IResolverRoute { + return 'resolve' in route; } /** * Traverses the router tree up to the root route. * @param slot */ -export function traverseRouterTree (slot: IRouterSlot): {tree: RouterTree, depth: number} { - +export function traverseRouterTree(slot: IRouterSlot): { tree: RouterTree; depth: number } { // Find the nodes from the route up to the root route let routes: IRouterSlot[] = [slot]; while (slot.parent != null) { @@ -174,12 +191,12 @@ export function traverseRouterTree (slot: IRouterSlot): {tree: RouterTree, depth // Create the tree const tree: RouterTree = routes.reduce((acc: RouterTree, slot: IRouterSlot) => { - return {slot, child: acc}; + return { slot, child: acc }; }, undefined); const depth = routes.length; - return {tree, depth}; + return { tree, depth }; } /** @@ -187,7 +204,7 @@ export function traverseRouterTree (slot: IRouterSlot): {tree: RouterTree, depth * @param tree * @param depth */ -export function getFragments (tree: RouterTree, depth: number): PathFragment[] { +export function getFragments(tree: RouterTree, depth: number): PathFragment[] { let child = tree; const fragments: PathFragment[] = []; @@ -209,27 +226,27 @@ export function getFragments (tree: RouterTree, depth: number): PathFragment[] { * @param slot * @param path */ -export function constructAbsolutePath (slot: IRouterSlot, - path: string | PathFragment = ""): string { - +export function constructAbsolutePath( + slot: IRouterSlot, + path: string | PathFragment = '', +): string { // Grab the router tree - const {tree, depth} = traverseRouterTree(slot); + const { tree, depth } = traverseRouterTree(slot); // If the path starts with "/" we treat it as an absolute path // and therefore don't continue because it is already absolute. - if (!path.startsWith("/")) { + if (!path.startsWith('/')) { let traverseDepth = 0; // If the path starts with "./" we can remove that part // because we know the path is relative to its route. - if (path.startsWith("./")) { + if (path.startsWith('./')) { path = path.slice(2); } // Match with the traverse flag. - const match = path.match(new RegExp(TRAVERSE_FLAG, "g")); + const match = path.match(new RegExp(TRAVERSE_FLAG, 'g')); if (match != null) { - // If the path matched with the traverse flag we know that we have to construct // a route until a certain depth. The traverse depth is the amount of "../" in the path // and the depth is the part of the path we a slicing away. @@ -243,12 +260,12 @@ export function constructAbsolutePath (slot: IRouterSlot // Grab the fragments and construct the new path, taking the traverse depth into account. // Always subtract at least 1 because we the path is relative to its parent. // Filter away the empty fragments from the path. - const fragments = getFragments(tree, depth - 1 - traverseDepth).filter(fragment => fragment.length > 0); - path = `${fragments.join("/")}${fragments.length > 0 ? "/" : ""}${path}`; + const fragments = getFragments(tree, depth - 1 - traverseDepth).filter((fragment) => fragment.length > 0); + path = `${fragments.join('/')}${fragments.length > 0 ? '/' : ''}${path}`; } // Add the base path in front of the path. If the path is already absolute, the path wont get the base path added. - return constructPathWithBasePath(path, {end: false}); + return constructPathWithBasePath(path, { end: false }); } /** @@ -256,8 +273,12 @@ export function constructAbsolutePath (slot: IRouterSlot * @param slot * @param route */ -export function handleRedirect (slot: IRouterSlot, route: IRedirectRoute) { - history.replaceState(history.state, "", `${constructAbsolutePath(slot, route.redirectTo)}${route.preserveQuery ? queryString() : ""}`); +export function handleRedirect(slot: IRouterSlot, route: IRedirectRoute) { + history.replaceState( + history.state, + '', + `${constructAbsolutePath(slot, route.redirectTo)}${route.preserveQuery ? queryString() : ''}`, + ); } /** @@ -265,20 +286,19 @@ export function handleRedirect (slot: IRouterSlot, route: IRedirectRoute) { * @param currentMatch * @param newMatch */ -export function shouldNavigate (currentMatch: IRouteMatch | null, newMatch: IRouteMatch) { - +export function shouldNavigate(currentMatch: IRouteMatch | null, newMatch: IRouteMatch) { // If the current match is not defined we should always route. if (currentMatch == null) { return true; } // Extract information about the matches - const {route: currentRoute, fragments: currentFragments} = currentMatch; - const {route: newRoute, fragments: newFragments} = newMatch; + const { route: currentRoute, fragments: currentFragments } = currentMatch; + const { route: newRoute, fragments: newFragments } = newMatch; const isSameRoute = currentRoute == newRoute; const isSameFragments = currentFragments.consumed == newFragments.consumed; // Only navigate if the URL consumption is new or if the two routes are no longer the same. return !isSameFragments || !isSameRoute; -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/shadow.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/shadow.ts index 0ee04a3b8f..a0ead2f6a2 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/shadow.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/shadow.ts @@ -1,11 +1,11 @@ -import { ROUTER_SLOT_TAG_NAME } from "../config"; -import { IRouterSlot } from "../model"; +import { ROUTER_SLOT_TAG_NAME } from '../config'; +import { IRouterSlot } from '../model'; /** * Queries the parent router. * @param $elem */ -export function queryParentRouterSlot ($elem: Element): IRouterSlot | null { +export function queryParentRouterSlot($elem: Element): IRouterSlot | null { return queryParentRoots>($elem, ROUTER_SLOT_TAG_NAME); } @@ -17,14 +17,12 @@ export function queryParentRouterSlot ($elem: Element): IRouterSlot * @param minRoots * @param roots */ -export function queryParentRoots ($elem: Element, query: string, minRoots: number = 0, roots: number = 0): T | null { - +export function queryParentRoots($elem: Element, query: string, minRoots: number = 0, roots: number = 0): T | null { // Grab the rood node and query it const $root = ($elem).getRootNode(); // If we are at the right level or above we can query! if (roots >= minRoots) { - // See if there's a match const match = $root.querySelector(query); if (match != null && match != $elem) { diff --git a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/url.ts b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/url.ts index 13f5d830b1..f9a95d0897 100644 --- a/src/Umbraco.Web.UI.Client/src/external/router-slot/util/url.ts +++ b/src/Umbraco.Web.UI.Client/src/external/router-slot/util/url.ts @@ -1,13 +1,13 @@ -import { ISlashOptions, Params, Query } from "../model"; +import { ISlashOptions, Params, Query } from '../model'; -const $anchor = document.createElement("a"); +const $anchor = document.createElement('a'); /** * The current path of the location. * As default slashes are included at the start and end. * @param options */ -export function path (options: Partial = {}): string { +export function path(options: Partial = {}): string { return slashify(window.location.pathname, options); } @@ -15,7 +15,7 @@ export function path (options: Partial = {}): string { * Returns the path without the base path. * @param options */ -export function pathWithoutBasePath (options: Partial = {}): string { +export function pathWithoutBasePath(options: Partial = {}): string { return slashify(stripStart(path(), basePath()), options); } @@ -30,8 +30,8 @@ export function pathWithoutBasePath (options: Partial = {}): stri * To make this method more performant we could cache the anchor element. * As default it will return the base path with slashes in front and at the end. */ -export function basePath (options: Partial = {}): string { - return constructPathWithBasePath(".", options); +export function basePath(options: Partial = {}): string { + return constructPathWithBasePath('.', options); } /** @@ -44,7 +44,7 @@ export function basePath (options: Partial = {}): string { * @param path * @param options */ -export function constructPathWithBasePath (path: string, options: Partial = {}) { +export function constructPathWithBasePath(path: string, options: Partial = {}) { $anchor.href = path; return slashify($anchor.pathname, options); } @@ -54,14 +54,14 @@ export function constructPathWithBasePath (path: string, options: Partial = {}): string { - path = start && !path.startsWith("/") ? `/${path}` : (!start && path.startsWith("/") ? path.slice(1) : path); - return end && !path.endsWith("/") ? `${path}/` : (!end && path.endsWith("/") ? path.slice(0, path.length - 1) : path); +export function slashify(path: string, { start = true, end = true }: Partial = {}): string { + path = start && !path.startsWith('/') ? `/${path}` : !start && path.startsWith('/') ? path.slice(1) : path; + return end && !path.endsWith('/') ? `${path}/` : !end && path.endsWith('/') ? path.slice(0, path.length - 1) : path; } /** @@ -105,31 +105,33 @@ export function slashify (path: string, {start = true, end = true}: Partial atom.split("=")); + const arrayMap = atoms.map((atom) => atom.split('=')); // Assign the values to an object ({ test: "123", hejsa: "LOL", wuhuu: "" }) - return Object.assign({}, ...arrayMap.map(arr => ({ - [decodeURIComponent(arr[0])]: (arr.length > 1 ? decodeURIComponent(arr[1]) : "") - }))); + return Object.assign( + {}, + ...arrayMap.map((arr) => ({ + [decodeURIComponent(arr[0])]: arr.length > 1 ? decodeURIComponent(arr[1]) : '', + })), + ); } /** * Turns a query object into a string query. * @param query */ -export function toQueryString (query: Query): string { +export function toQueryString(query: Query): string { return Object.entries(query) - .map(([key, value]) => `${key}${value != "" ? `=${encodeURIComponent(value)}` : ""}`) - .join("&"); + .map(([key, value]) => `${key}${value != '' ? `=${encodeURIComponent(value)}` : ''}`) + .join('&'); } diff --git a/src/Umbraco.Web.UI.Client/src/libs/context-api/consume/context-consumer.controller.ts b/src/Umbraco.Web.UI.Client/src/libs/context-api/consume/context-consumer.controller.ts index ff81bb7be2..3f39343f01 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/context-api/consume/context-consumer.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/context-api/consume/context-consumer.controller.ts @@ -3,19 +3,22 @@ import { UmbContextConsumer } from './context-consumer.js'; import { UmbContextCallback } from './context-request.event.js'; import type { UmbControllerHost, UmbController } from '@umbraco-cms/backoffice/controller-api'; - -export class UmbContextConsumerController< - BaseType = unknown, - ResultType extends BaseType = BaseType -> extends UmbContextConsumer implements UmbController { +export class UmbContextConsumerController + extends UmbContextConsumer + implements UmbController +{ #controllerAlias = Symbol(); #host: UmbControllerHost; public get controllerAlias() { return this.#controllerAlias; } - - constructor(host: UmbControllerHost, contextAlias: string | UmbContextToken, callback: UmbContextCallback) { + + constructor( + host: UmbControllerHost, + contextAlias: string | UmbContextToken, + callback: UmbContextCallback, + ) { super(host.getHostElement(), contextAlias, callback); this.#host = host; host.addController(this); diff --git a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.test.ts b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.test.ts index 9d09cc989e..48039ad776 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.test.ts @@ -46,7 +46,7 @@ describe('UmbContextProviderController', () => { expect(_instance?.prop).to.eq('value from provider'); done(); localConsumer.hostDisconnected(); - } + }, ); localConsumer.hostConnected(); }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.ts b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.ts index 4d8a283a0c..1b2ecac03c 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.controller.ts @@ -3,18 +3,25 @@ import { UmbContextProvider } from './context-provider.js'; import type { UmbControllerHost, UmbController } from '@umbraco-cms/backoffice/controller-api'; export class UmbContextProviderController< - BaseType = unknown, - ResultType extends BaseType = BaseType, - InstanceType extends ResultType = ResultType -> extends UmbContextProvider implements UmbController { + BaseType = unknown, + ResultType extends BaseType = BaseType, + InstanceType extends ResultType = ResultType, + > + extends UmbContextProvider + implements UmbController +{ #host: UmbControllerHost; - #controllerAlias:string; + #controllerAlias: string; public get controllerAlias() { return this.#controllerAlias; } - constructor(host: UmbControllerHost, contextAlias: string | UmbContextToken, instance: InstanceType) { + constructor( + host: UmbControllerHost, + contextAlias: string | UmbContextToken, + instance: InstanceType, + ) { super(host.getHostElement(), contextAlias, instance); this.#host = host; // Makes the controllerAlias unique for this instance, this enables multiple Contexts to be provided under the same name. (This only makes sense cause of Context Token Discriminators) @@ -30,7 +37,9 @@ export class UmbContextProviderController< // This just an additional awareness feature to make devs Aware, the alternative would be adding it anyway, but that would destroy existing controller of this alias. // Back out, this instance is already provided, by another controller. throw new Error( - `Context API: The context of '${this.controllerAlias}' and instance '${(instance as any).constructor?.name ?? 'unnamed'}' is already provided by another Context Provider Controller.` + `Context API: The context of '${this.controllerAlias}' and instance '${ + (instance as any).constructor?.name ?? 'unnamed' + }' is already provided by another Context Provider Controller.`, ); } else { host.addController(this); diff --git a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.element.test.ts b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.element.test.ts index e61536e8f8..963011715f 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/context-api/provide/context-provider.element.test.ts @@ -25,7 +25,7 @@ describe('UmbContextProvider', () => { element = await fixture( html` - ` + `, ); consumer = element.getElementsByTagName('umb-test-context')[0] as unknown as UmbTestContextElement; }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/element-api/element.mixin.ts b/src/Umbraco.Web.UI.Client/src/libs/element-api/element.mixin.ts index a8e49f0f3e..1c4cd6285c 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/element-api/element.mixin.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/element-api/element.mixin.ts @@ -22,16 +22,19 @@ export declare class UmbElement extends UmbControllerHostElement { observe( source: Observable | { asObservable: () => Observable }, callback: ObserverCallback, - unique?: string + unique?: string, ): UmbObserverController; provideContext< BaseType = unknown, ResultType extends BaseType = BaseType, - InstanceType extends ResultType = ResultType - >(alias: string | UmbContextToken, instance: InstanceType): UmbContextProviderController; + InstanceType extends ResultType = ResultType, + >( + alias: string | UmbContextToken, + instance: InstanceType, + ): UmbContextProviderController; consumeContext( alias: string | UmbContextToken, - callback: UmbContextCallback + callback: UmbContextCallback, ): UmbContextConsumerController; /** * Use the UmbLocalizeController to localize your element. @@ -65,9 +68,11 @@ export const UmbElementMixin = (superClass: T) provideContext< BaseType = unknown, ResultType extends BaseType = BaseType, - InstanceType extends ResultType = ResultType - > - (alias: string | UmbContextToken, instance: InstanceType): UmbContextProviderController { + InstanceType extends ResultType = ResultType, + >( + alias: string | UmbContextToken, + instance: InstanceType, + ): UmbContextProviderController { return new UmbContextProviderController(this, alias, instance); } @@ -80,7 +85,7 @@ export const UmbElementMixin = (superClass: T) */ consumeContext( alias: string | UmbContextToken, - callback: UmbContextCallback + callback: UmbContextCallback, ): UmbContextConsumerController { return new UmbContextConsumerController(this, alias, callback); } diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/condition/condition-controller-arguments.type.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/condition/condition-controller-arguments.type.ts index ea0a211160..47e3718dae 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/condition/condition-controller-arguments.type.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/condition/condition-controller-arguments.type.ts @@ -2,5 +2,5 @@ import { UmbConditionConfigBase } from '../types/index.js'; import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; export type UmbConditionControllerArguments< - ConditionConfigType extends UmbConditionConfigBase = UmbConditionConfigBase + ConditionConfigType extends UmbConditionConfigBase = UmbConditionConfigBase, > = { host: UmbControllerHost; config: ConditionConfigType; onChange: () => void }; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-element-initializer.test.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-element-initializer.test.ts index f2f102d347..ba82268e31 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-element-initializer.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-element-initializer.test.ts @@ -48,7 +48,7 @@ describe('UmbExtensionElementController', () => { extensionController.destroy(); } } - } + }, ); }); @@ -75,7 +75,7 @@ describe('UmbExtensionElementController', () => { } } }, - 'umb-test-fallback-element' + 'umb-test-fallback-element', ); }); }); @@ -143,7 +143,7 @@ describe('UmbExtensionElementController', () => { done(); extensionController.destroy(); // need to destroy the controller. } - } + }, ); }); }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-manifest-initializer.controller.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-manifest-initializer.controller.ts index b772dd0f95..79339f8b73 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-manifest-initializer.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extension-manifest-initializer.controller.ts @@ -8,21 +8,21 @@ import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; * When the extension is permitted to be used, the manifest is available for the consumer. * * @example -* ```ts -* const controller = new UmbExtensionManifestController(host, extensionRegistry, alias, (permitted, ctrl) => { console.log("Extension is permitted and this is the manifest: ", ctrl.manifest) })); -* ``` + * ```ts + * const controller = new UmbExtensionManifestController(host, extensionRegistry, alias, (permitted, ctrl) => { console.log("Extension is permitted and this is the manifest: ", ctrl.manifest) })); + * ``` * @export * @class UmbExtensionManifestController */ export class UmbExtensionManifestInitializer< ManifestType extends ManifestWithDynamicConditions = ManifestWithDynamicConditions, - ControllerType extends UmbBaseExtensionInitializer = any + ControllerType extends UmbBaseExtensionInitializer = any, > extends UmbBaseExtensionInitializer { constructor( host: UmbControllerHost, extensionRegistry: UmbExtensionRegistry, alias: string, - onPermissionChanged: (isPermitted: boolean, controller: ControllerType) => void + onPermissionChanged: (isPermitted: boolean, controller: ControllerType) => void, ) { super(host, extensionRegistry, 'extManifest_', alias, onPermissionChanged); this._init(); diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-api-initializer.controller.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-api-initializer.controller.ts index bf56b2a980..1f1c40a75a 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-api-initializer.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-api-initializer.controller.ts @@ -1,11 +1,10 @@ import { ManifestTypeMap, SpecificManifestTypeOrManifestBase } from '../types/map.types.js'; -import { type PermittedControllerType, UmbBaseExtensionsInitializer } from './base-extensions-initializer.controller.js'; -import { UmbExtensionApiInitializer } from './extension-api-initializer.controller.js'; import { - type UmbExtensionRegistry, - ManifestApi, - ManifestBase, -} from '@umbraco-cms/backoffice/extension-api'; + type PermittedControllerType, + UmbBaseExtensionsInitializer, +} from './base-extensions-initializer.controller.js'; +import { UmbExtensionApiInitializer } from './extension-api-initializer.controller.js'; +import { type UmbExtensionRegistry, ManifestApi, ManifestBase } from '@umbraco-cms/backoffice/extension-api'; import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; /** @@ -26,7 +25,7 @@ export class UmbExtensionsApiInitializer< ManifestType extends ManifestBase = SpecificManifestTypeOrManifestBase, ManifestTypeAsApi extends ManifestApi = ManifestType extends ManifestApi ? ManifestType : never, ControllerType extends UmbExtensionApiInitializer = UmbExtensionApiInitializer, - MyPermittedControllerType extends ControllerType = PermittedControllerType + MyPermittedControllerType extends ControllerType = PermittedControllerType, > extends UmbBaseExtensionsInitializer< ManifestTypes, ManifestTypeName, @@ -59,7 +58,7 @@ export class UmbExtensionsApiInitializer< type: ManifestTypeName | Array, constructorArguments: Array | undefined, filter?: undefined | null | ((manifest: ManifestTypeAsApi) => boolean), - onChange?: (permittedManifests: Array) => void + onChange?: (permittedManifests: Array) => void, ) { super(host, extensionRegistry, type, filter, onChange); this.#extensionRegistry = extensionRegistry; @@ -73,7 +72,7 @@ export class UmbExtensionsApiInitializer< this.#extensionRegistry, manifest.alias, this.#constructorArgs, - this._extensionChanged + this._extensionChanged, ) as ControllerType; return extController; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-manifest-initializer.controller.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-manifest-initializer.controller.ts index 59fd8888c7..7b6592bad4 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-manifest-initializer.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/controller/extensions-manifest-initializer.controller.ts @@ -1,10 +1,10 @@ import type { ManifestTypeMap, SpecificManifestTypeOrManifestBase } from '../types/map.types.js'; import { UmbExtensionManifestInitializer } from './extension-manifest-initializer.controller.js'; -import { type PermittedControllerType, UmbBaseExtensionsInitializer } from './base-extensions-initializer.controller.js'; import { - type ManifestBase, - type UmbExtensionRegistry, -} from '@umbraco-cms/backoffice/extension-api'; + type PermittedControllerType, + UmbBaseExtensionsInitializer, +} from './base-extensions-initializer.controller.js'; +import { type ManifestBase, type UmbExtensionRegistry } from '@umbraco-cms/backoffice/extension-api'; import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; /** @@ -14,7 +14,7 @@ export class UmbExtensionsManifestInitializer< ManifestTypeName extends keyof ManifestTypeMap | string, ManifestType extends ManifestBase = SpecificManifestTypeOrManifestBase, ControllerType extends UmbExtensionManifestInitializer = UmbExtensionManifestInitializer, - MyPermittedControllerType extends ControllerType = PermittedControllerType + MyPermittedControllerType extends ControllerType = PermittedControllerType, > extends UmbBaseExtensionsInitializer< ManifestTypes, ManifestTypeName, @@ -30,7 +30,7 @@ export class UmbExtensionsManifestInitializer< extensionRegistry: UmbExtensionRegistry, type: ManifestTypeName | Array, filter: null | ((manifest: ManifestType) => boolean), - onChange: (permittedManifests: Array) => void + onChange: (permittedManifests: Array) => void, ) { super(host, extensionRegistry, type, filter, onChange); this.#extensionRegistry = extensionRegistry; @@ -42,7 +42,7 @@ export class UmbExtensionsManifestInitializer< this, this.#extensionRegistry, manifest.alias, - this._extensionChanged + this._extensionChanged, ) as ControllerType; } } diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.function.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.function.ts index 909a3990b1..9a31cb7496 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.function.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.function.ts @@ -1,36 +1,38 @@ -import { UmbApi } from "../models/api.interface.js"; -import { ManifestApi, ManifestElementAndApi } from "../types/base.types.js"; -import { loadManifestApi } from "./load-manifest-api.function.js"; +import { UmbApi } from '../models/api.interface.js'; +import { ManifestApi, ManifestElementAndApi } from '../types/base.types.js'; +import { loadManifestApi } from './load-manifest-api.function.js'; -export async function createExtensionApi(manifest: ManifestApi | ManifestElementAndApi, constructorArguments: Array = []): Promise { - - if(manifest.api) { +export async function createExtensionApi( + manifest: ManifestApi | ManifestElementAndApi, + constructorArguments: Array = [], +): Promise { + if (manifest.api) { const apiConstructor = await loadManifestApi(manifest.api); - if(apiConstructor) { + if (apiConstructor) { return new apiConstructor(...constructorArguments); } else { console.error( `-- Extension of alias "${manifest.alias}" did not succeed instantiate a API class via the extension manifest property 'api', using either a 'api' or 'default' export`, - manifest + manifest, ); } } - if(manifest.js) { + if (manifest.js) { const apiConstructor2 = await loadManifestApi(manifest.js); - if(apiConstructor2) { + if (apiConstructor2) { return new apiConstructor2(...constructorArguments); } else { console.error( `-- Extension of alias "${manifest.alias}" did not succeed instantiate a API class via the extension manifest property 'js', using either a 'api' or 'default' export`, - manifest + manifest, ); } } console.error( `-- Extension of alias "${manifest.alias}" did not succeed creating an api class instance, missing a JavaScript file via the 'api' or 'js' property.`, - manifest + manifest, ); return undefined; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.test.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.test.ts index 28417d3eda..d8d961aec4 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-api.test.ts @@ -3,9 +3,6 @@ import { ManifestApi } from '../types/index.js'; import { UmbApi } from '../models/api.interface.js'; import { createExtensionApi } from './create-extension-api.function.js'; - - - class UmbExtensionApiTrueTestClass implements UmbApi { isValidClassInstance() { return true; @@ -20,33 +17,25 @@ class UmbExtensionApiFalseTestClass implements UmbApi { destroy() {} } - - const jsModuleWithDefaultExport = { - default: UmbExtensionApiTrueTestClass + default: UmbExtensionApiTrueTestClass, }; const jsModuleWithApiExport = { - api: UmbExtensionApiTrueTestClass + api: UmbExtensionApiTrueTestClass, }; const jsModuleWithDefaultAndApiExport = { default: UmbExtensionApiFalseTestClass, - api: UmbExtensionApiTrueTestClass + api: UmbExtensionApiTrueTestClass, }; - - describe('Extension-Api: Create Extension Api', () => { - - - it('Returns `undefined` when manifest does not have any correct properties', async () => { - const manifest: ManifestApi = { type: 'my-test-type', alias: 'Umb.Test.createManifestApi', - name: 'pretty name' + name: 'pretty name', }; const api = await createExtensionApi(manifest, []); @@ -54,70 +43,65 @@ describe('Extension-Api: Create Extension Api', () => { }); it('Handles when `api` property contains a class constructor', async () => { - const manifest: ManifestApi = { type: 'my-test-type', alias: 'Umb.Test.createManifestApi', name: 'pretty name', - api: UmbExtensionApiTrueTestClass + api: UmbExtensionApiTrueTestClass, }; const api = await createExtensionApi(manifest, []); expect(api).to.not.be.undefined; - if(api) { + if (api) { expect(api.isValidClassInstance()).to.be.true; } }); it('Handles when `loader` has a default export', async () => { - const manifest: ManifestApi = { type: 'my-test-type', alias: 'Umb.Test.createManifestApi', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithDefaultExport) + js: () => Promise.resolve(jsModuleWithDefaultExport), }; const api = await createExtensionApi(manifest, []); expect(api).to.not.be.undefined; - if(api) { + if (api) { expect(api.isValidClassInstance()).to.be.true; } }); it('Handles when `loader` has a api export', async () => { - const manifest: ManifestApi = { type: 'my-test-type', alias: 'Umb.Test.createManifestApi', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithApiExport) + js: () => Promise.resolve(jsModuleWithApiExport), }; const api = await createExtensionApi(manifest, []); expect(api).to.not.be.undefined; - if(api) { + if (api) { expect(api.isValidClassInstance()).to.be.true; } }); it('Prioritizes api export from loader property', async () => { - const manifest: ManifestApi = { type: 'my-test-type', alias: 'Umb.Test.createManifestApi', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithDefaultAndApiExport) + js: () => Promise.resolve(jsModuleWithDefaultAndApiExport), }; const api = await createExtensionApi(manifest, []); expect(api).to.not.be.undefined; - if(api) { + if (api) { expect(api.isValidClassInstance()).to.be.true; } }); //TODO: Test apiJs //TODO: Test js - }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.function.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.function.ts index 2cd8677813..05544a62e0 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.function.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.function.ts @@ -1,43 +1,45 @@ -import { ManifestElement, ManifestElementAndApi } from "../types/base.types.js"; -import { loadManifestElement } from "./load-manifest-element.function.js"; +import { ManifestElement, ManifestElementAndApi } from '../types/base.types.js'; +import { loadManifestElement } from './load-manifest-element.function.js'; -export async function createExtensionElement(manifest: ManifestElement | ManifestElementAndApi, fallbackElement?: string): Promise { - - if(manifest.element) { +export async function createExtensionElement( + manifest: ManifestElement | ManifestElementAndApi, + fallbackElement?: string, +): Promise { + if (manifest.element) { const elementConstructor = await loadManifestElement(manifest.element); - if(elementConstructor) { + if (elementConstructor) { return new elementConstructor(); } else { console.error( `-- Extension of alias "${manifest.alias}" did not succeed creating an element class instance via the extension manifest property 'element', using either a 'element' or 'default' export`, - manifest + manifest, ); } } - if(manifest.js) { + if (manifest.js) { const elementConstructor2 = await loadManifestElement(manifest.js); - if(elementConstructor2) { + if (elementConstructor2) { return new elementConstructor2(); } else { console.error( `-- Extension of alias "${manifest.alias}" did not succeed creating an element class instance via the extension manifest property 'js', using either a 'element' or 'default' export`, - manifest + manifest, ); } } - if(manifest.elementName) { + if (manifest.elementName) { return document.createElement(manifest.elementName) as ElementType; } - if(fallbackElement) { + if (fallbackElement) { return document.createElement(fallbackElement) as ElementType; } console.error( `-- Extension of alias "${manifest.alias}" did not succeed creating an element, missing a JavaScript file via the 'element' or 'js' property or a Element Name in 'elementName' in the manifest.`, - manifest + manifest, ); return undefined; } diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.test.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.test.ts index 21c4611c14..3b97e358c5 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/create-extension-element.test.ts @@ -3,8 +3,6 @@ import { ManifestElement, ManifestElementAndApi } from '../types/index.js'; import { createExtensionElement } from './create-extension-element.function.js'; import { customElement } from '@umbraco-cms/backoffice/external/lit'; - - @customElement('umb-extension-api-true-test-element') class UmbExtensionApiTrueTestElement extends HTMLElement { isValidClassInstance() { @@ -19,32 +17,25 @@ class UmbExtensionApiFalseTestElement extends HTMLElement { } } - - const jsModuleWithDefaultExport = { - default: UmbExtensionApiTrueTestElement + default: UmbExtensionApiTrueTestElement, }; const jsModuleWithElementExport = { - element: UmbExtensionApiTrueTestElement + element: UmbExtensionApiTrueTestElement, }; const jsModuleWithDefaultAndElementExport = { default: UmbExtensionApiFalseTestElement, - element: UmbExtensionApiTrueTestElement + element: UmbExtensionApiTrueTestElement, }; - - describe('Extension-Api: Create Extension Element', () => { - - it('Returns `undefined` when manifest does not have any correct properties', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', - name: 'pretty name' + name: 'pretty name', }; const api = await createExtensionElement(manifest); @@ -52,102 +43,94 @@ describe('Extension-Api: Create Extension Element', () => { }); it('Returns fallback element instance when manifest does not provide element', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', - name: 'pretty name' + name: 'pretty name', }; const element = await createExtensionElement(manifest, 'umb-extension-api-true-test-element'); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); - it('Still returns fallback element instance when manifest does not provide element and manifest has api', async () => { - const manifest: ManifestElementAndApi = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', name: 'pretty name', - api: class TestApi {} + api: class TestApi {}, }; const element = await createExtensionElement(manifest, 'umb-extension-api-true-test-element'); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); it('Handles when `api` property contains a class constructor', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', name: 'pretty name', - elementName: 'umb-extension-api-true-test-element' + elementName: 'umb-extension-api-true-test-element', }; const element = await createExtensionElement(manifest); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); it('Handles when `loader` has a default export', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithDefaultExport) + js: () => Promise.resolve(jsModuleWithDefaultExport), }; const element = await createExtensionElement(manifest); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); it('Handles when `loader` has a element export', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithElementExport) + js: () => Promise.resolve(jsModuleWithElementExport), }; const element = await createExtensionElement(manifest); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); it('Prioritizes api export from loader property', async () => { - const manifest: ManifestElement = { type: 'my-test-type', alias: 'Umb.Test.CreateManifestElement', name: 'pretty name', - js: () => Promise.resolve(jsModuleWithDefaultAndElementExport) + js: () => Promise.resolve(jsModuleWithDefaultAndElementExport), }; const element = await createExtensionElement(manifest); expect(element).to.not.be.undefined; - if(element) { + if (element) { expect(element.isValidClassInstance()).to.be.true; } }); //TODO: Test elementJs //TODO: Test js - }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/index.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/index.ts index b90a955eac..8081204bec 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/index.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/functions/index.ts @@ -1,4 +1,3 @@ - export * from './create-extension-api.function.js'; export * from './create-extension-element.function.js'; export * from './has-init-export.function.js'; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/api.interface.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/api.interface.ts index 895fd43f69..d6a5f9ec78 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/api.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/api.interface.ts @@ -1,3 +1,3 @@ export interface UmbApi { destroy?(): void; -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/index.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/index.ts index 643057374c..bb52c4681d 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/index.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/models/index.ts @@ -1,2 +1,2 @@ -export * from './entry-point.interface.js' -export * from './api.interface.js' +export * from './entry-point.interface.js'; +export * from './api.interface.js'; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/index.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/index.ts index 22106b469d..3ab3450a30 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/index.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/index.ts @@ -2,4 +2,4 @@ export * from './has-api-export.function.js'; export * from './has-default-export.function.js'; export * from './has-element-export.function.js'; export * from './is-manifest-base-type.function.js'; -export * from './is-manifest-element-name-type.function.js'; \ No newline at end of file +export * from './is-manifest-element-name-type.function.js'; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/is-manifest-base-type.function.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/is-manifest-base-type.function.ts index 001d355ef2..3e92e93ccb 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/is-manifest-base-type.function.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/type-guards/is-manifest-base-type.function.ts @@ -1,5 +1,5 @@ -import type { ManifestBase } from "../types/manifest-base.interface.js"; +import type { ManifestBase } from '../types/manifest-base.interface.js'; export function isManifestBaseType(x: unknown): x is ManifestBase { return typeof x === 'object' && x !== null && 'alias' in x; -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/condition.types.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/condition.types.ts index a09b527510..740d393311 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/condition.types.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/condition.types.ts @@ -1,4 +1,4 @@ -import type { ManifestBase } from "./manifest-base.interface.js"; +import type { ManifestBase } from './manifest-base.interface.js'; export interface UmbConditionConfigBase { alias: AliasType; @@ -12,7 +12,7 @@ export type ConditionTypeMap = { export type SpecificConditionTypeOrUmbConditionConfigBase< ConditionTypes extends UmbConditionConfigBase, - T extends keyof ConditionTypeMap | string + T extends keyof ConditionTypeMap | string, > = T extends keyof ConditionTypeMap ? ConditionTypeMap[T] : UmbConditionConfigBase; export interface ManifestWithDynamicConditions @@ -25,4 +25,4 @@ export interface ManifestWithDynamicConditions; -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/index.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/index.ts index 14b601b5ce..4bb9e60d1c 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/index.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/index.ts @@ -5,4 +5,4 @@ export * from './manifest-bundle.interface.js'; export * from './manifest-condition.interface.js'; export * from './manifest-entrypoint.interface.js'; export * from './manifest-kind.interface.js'; -export * from './utils.js'; \ No newline at end of file +export * from './utils.js'; diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-base.interface.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-base.interface.ts index 8a89595272..9b82ca4491 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-base.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-base.interface.ts @@ -1,4 +1,3 @@ - export interface ManifestBase { /** * The type of extension such as dashboard etc... @@ -26,4 +25,4 @@ export interface ManifestBase { * Extensions such as dashboards are ordered by weight with lower numbers being first in the list */ weight?: number; -} \ No newline at end of file +} diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-bundle.interface.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-bundle.interface.ts index 25a99091bc..f0e62ede1b 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-bundle.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-bundle.interface.ts @@ -1,5 +1,5 @@ -import type { ManifestPlainJs } from "./base.types.js"; -import type { ManifestBase } from "./manifest-base.interface.js"; +import type { ManifestPlainJs } from './base.types.js'; +import type { ManifestBase } from './manifest-base.interface.js'; /** * This type of extension takes a JS module and registers all exported manifests from the pointed JS file. @@ -8,4 +8,3 @@ export interface ManifestBundle }> { type: 'bundle'; } - diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-condition.interface.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-condition.interface.ts index 324af0a7b4..c8785ac140 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-condition.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-condition.interface.ts @@ -1,5 +1,5 @@ -import type { UmbExtensionCondition } from "../condition/index.js"; -import type { ManifestApi } from "./base.types.js"; +import type { UmbExtensionCondition } from '../condition/index.js'; +import type { ManifestApi } from './base.types.js'; /** * This type of extension takes a JS module and registers all exported manifests from the pointed JS file. diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-entrypoint.interface.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-entrypoint.interface.ts index 76764b321c..0c400daf64 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-entrypoint.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/manifest-entrypoint.interface.ts @@ -1,5 +1,5 @@ -import type { UmbEntryPointModule } from "../models/index.js"; -import type { ManifestPlainJs } from "./base.types.js"; +import type { UmbEntryPointModule } from '../models/index.js'; +import type { ManifestPlainJs } from './base.types.js'; /** * This type of extension gives full control and will simply load the specified JS file diff --git a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/map.types.ts b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/map.types.ts index 4c5fbb3b43..f02c6efe93 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/map.types.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/extension-api/types/map.types.ts @@ -1,4 +1,4 @@ -import type { ManifestBase } from "./manifest-base.interface.js"; +import type { ManifestBase } from './manifest-base.interface.js'; export type ManifestTypeMap = { [Manifest in ManifestTypes as Manifest['type']]: Manifest; @@ -8,5 +8,5 @@ export type ManifestTypeMap = { export type SpecificManifestTypeOrManifestBase< ManifestTypes extends ManifestBase, - T extends keyof ManifestTypeMap | string + T extends keyof ManifestTypeMap | string, > = T extends keyof ManifestTypeMap ? ManifestTypeMap[T] : ManifestBase; diff --git a/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/basic-state.ts b/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/basic-state.ts index 2172afa7fd..fe3e9ae7a2 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/basic-state.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/basic-state.ts @@ -6,14 +6,12 @@ import { BehaviorSubject } from '@umbraco-cms/backoffice/external/rxjs'; * @description - State ensures the data is unique, not updating any Observes unless there is an actual change of the value using `===`. */ export class UmbBasicState { - - protected _subject:BehaviorSubject; + protected _subject: BehaviorSubject; constructor(initialData: T) { this._subject = new BehaviorSubject(initialData); } - /** * @method asObservable * @return {Observable} Observable that the State casts to. @@ -22,7 +20,7 @@ export class UmbBasicState { * const myState = new UmbArrayState('Hello world'); * * this.observe(myState, (latestStateValue) => console.log("Value is: ", latestStateValue)); - */ + */ public asObservable(): ReturnType['asObservable']> { return this._subject.asObservable(); } @@ -33,10 +31,10 @@ export class UmbBasicState { * @example Example retrieve the current data of a state * const myState = new UmbArrayState('Hello world'); * console.log("Value is: ", myState.getValue()); - */ + */ public get value(): BehaviorSubject['value'] { return this._subject.value; - }; + } /** * @method getValue @@ -45,7 +43,7 @@ export class UmbBasicState { * @example Example retrieve the current data of a state * const myState = new UmbArrayState('Hello world'); * console.log("Value is: ", myState.value); - */ + */ public getValue(): ReturnType['getValue']> { return this._subject.getValue(); } @@ -53,7 +51,7 @@ export class UmbBasicState { /** * @method destroy * @description - Destroys this state and completes all observations made to it. - */ + */ public destroy(): void { this._subject.complete(); } @@ -67,7 +65,7 @@ export class UmbBasicState { * // myState.value is equal 'Good morning'. * myState.next('Goodnight') * // myState.value is equal 'Goodnight'. - */ + */ next(newData: T): void { if (newData !== this._subject.getValue()) { this._subject.next(newData); diff --git a/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/class-state.ts b/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/class-state.ts index b67a38e89c..69695deecd 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/class-state.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/observable-api/states/class-state.ts @@ -1,4 +1,4 @@ -import { UmbBasicState } from "./basic-state.js"; +import { UmbBasicState } from './basic-state.js'; export interface UmbClassStateData { equal(otherClass: this | undefined): boolean; diff --git a/src/Umbraco.Web.UI.Client/src/libs/observable-api/utils/partial-update-frozen-array.function.ts b/src/Umbraco.Web.UI.Client/src/libs/observable-api/utils/partial-update-frozen-array.function.ts index b19c322594..e7ebbbc57a 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/observable-api/utils/partial-update-frozen-array.function.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/observable-api/utils/partial-update-frozen-array.function.ts @@ -13,7 +13,7 @@ export function partialUpdateFrozenArray( data: T[], partialEntry: Partial, - findMethod: (entry: T) => boolean + findMethod: (entry: T) => boolean, ): T[] { const unFrozenDataSet = [...data]; const indexToReplace = unFrozenDataSet.findIndex((x) => findMethod(x)); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/data/document.data.ts b/src/Umbraco.Web.UI.Client/src/mocks/data/document.data.ts index a2eaab07bf..947e7762ba 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/data/document.data.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/data/document.data.ts @@ -695,7 +695,6 @@ class UmbDocumentData extends UmbEntityData { } publish(id: string, data: PublishDocumentRequestModel) { - // Update detail data: const foundIndex = this.data.findIndex((item) => item.id === id); if (foundIndex !== -1) { @@ -719,7 +718,6 @@ class UmbDocumentData extends UmbEntityData { } unpublish(id: string, data: PublishDocumentRequestModel) { - // Update detail data: const foundIndex = this.data.findIndex((item) => item.id === id); if (foundIndex !== -1) { diff --git a/src/Umbraco.Web.UI.Client/src/mocks/data/partial-views.data.ts b/src/Umbraco.Web.UI.Client/src/mocks/data/partial-views.data.ts index 823de45bc6..313c68e553 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/data/partial-views.data.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/data/partial-views.data.ts @@ -375,4 +375,4 @@ class UmbPartialViewsData extends UmbEntityData { } export const umbPartialViewSnippetsData = new UmbPartialViewSnippetsData(); -export const umbPartialViewsData = new UmbPartialViewsData(); \ No newline at end of file +export const umbPartialViewsData = new UmbPartialViewsData(); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/data/utils.ts b/src/Umbraco.Web.UI.Client/src/mocks/data/utils.ts index 8fcf7acaa5..0e3d447613 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/data/utils.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/data/utils.ts @@ -104,7 +104,7 @@ export const arrayFilter = (filterBy: Array, value?: Array): boo } return filterBy.some((filterValue: string) => value?.includes(filterValue)); -} +}; export const stringFilter = (filterBy: Array, value?: string): boolean => { // if a filter is not set, return all items diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/config.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/config.handlers.ts index 800d803b10..32ebfd7b59 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/config.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/config.handlers.ts @@ -7,7 +7,7 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json({ offset: -120 }) + ctx.json({ offset: -120 }), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/examine-management.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/examine-management.handlers.ts index ae685ea406..43532d2d13 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/examine-management.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/examine-management.handlers.ts @@ -14,7 +14,7 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json(PagedIndexers) + ctx.json(PagedIndexers), ); }), @@ -51,7 +51,7 @@ export const handlers = [ ctx.json({ total: 0, items: [{ name: 'ExternalSearcher' }, { name: 'InternalSearcher' }, { name: 'InternalMemberSearcher' }], - }) + }), ); }), @@ -69,7 +69,7 @@ export const handlers = [ ctx.json({ total: 0, items: searchResultMockData, - }) + }), ); } else { return res(ctx.status(404)); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/health-check.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/health-check.handlers.ts index eb98ebb25b..525a593ed6 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/health-check.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/health-check.handlers.ts @@ -22,7 +22,7 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json({ total: 9999, items: healthGroupsWithoutResult }) + ctx.json({ total: 9999, items: healthGroupsWithoutResult }), ); }), @@ -74,7 +74,7 @@ export const handlers = [ // Respond with a 200 status code ctx.delay(1000), ctx.status(200), - ctx.json(result) + ctx.json(result), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/install.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/install.handlers.ts index 7d36eaf4fc..c6b1defba7 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/install.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/install.handlers.ts @@ -74,7 +74,7 @@ export const handlers = [ requiresConnectionTest: true, }, ], - }) + }), ); }), @@ -88,13 +88,13 @@ export const handlers = [ type: 'connection', status: 400, detail: 'Database connection failed', - }) + }), ); } return res( // Respond with a 200 status code - ctx.status(201) + ctx.status(201), ); }), @@ -113,12 +113,12 @@ export const handlers = [ errors: { name: ['Database name is invalid'], }, - }) + }), ); } return res( // Respond with a 200 status code - ctx.status(201) + ctx.status(201), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/language.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/language.handlers.ts index 0ac0d51b67..1200f10772 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/language.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/language.handlers.ts @@ -55,7 +55,7 @@ export const handlers = [ errors: { isoCode: ['Language with same iso code already exists'], }, - }) + }), ); } }), diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/manifests.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/manifests.handlers.ts index d942db27ab..6c138fb793 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/manifests.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/manifests.handlers.ts @@ -75,7 +75,7 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/package/manifes }, ], }, - ]) + ]), ); }); @@ -83,6 +83,6 @@ export const manifestEmptyHandler = rest.get(umbracoPath('/package/manifest'), ( return res( // Respond with a 200 status code ctx.status(200), - ctx.json([]) + ctx.json([]), ); }); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/modelsbuilder.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/modelsbuilder.handlers.ts index e8a462b63a..3564a5f0a6 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/modelsbuilder.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/modelsbuilder.handlers.ts @@ -14,7 +14,7 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json({}) + ctx.json({}), ); }), @@ -26,7 +26,7 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json({}) + ctx.json({}), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/package.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/package.handlers.ts index 06d5ae5cb9..651c6139da 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/package.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/package.handlers.ts @@ -30,7 +30,7 @@ export const handlers = [ packageName: 'Package with a view', }, ], - }) + }), ); }), @@ -47,7 +47,7 @@ export const handlers = [ ctx.json({ total: packageArray.length, items: packageArray, - }) + }), ); }), diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/performance-profiling.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/performance-profiling.handlers.ts index 331dbc8bfe..bca95cd837 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/performance-profiling.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/performance-profiling.handlers.ts @@ -8,14 +8,14 @@ export const handlers = [ return res( // Respond with a 200 status code ctx.status(200), - ctx.json({ enabled: true }) + ctx.json({ enabled: true }), ); }), rest.put(umbracoPath('/profiling/status'), (_req, res, ctx) => { return res( // Respond with a 200 status code - ctx.status(200) + ctx.status(200), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/published-status.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/published-status.handlers.ts index d59dd3e7ed..c4e655b2d2 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/published-status.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/published-status.handlers.ts @@ -8,8 +8,8 @@ export const handlers = [ // Respond with a 200 status code ctx.status(200), ctx.json( - 'Database cache is ok. ContentStore contains 1 item and has 1 generation and 0 snapshot. MediaStore contains 5 items and has 1 generation and 0 snapshot.' - ) + 'Database cache is ok. ContentStore contains 1 item and has 1 generation and 0 snapshot. MediaStore contains 5 items and has 1 generation and 0 snapshot.', + ), ); }), @@ -18,7 +18,7 @@ export const handlers = [ return res( // Respond with a 200 status code - ctx.status(200) + ctx.status(200), ); }), @@ -27,14 +27,14 @@ export const handlers = [ return res( // Respond with a 200 status code - ctx.status(200) + ctx.status(200), ); }), rest.post(umbracoPath('/published-cache/collect'), (_req, res, ctx) => { return res( // Respond with a 200 status code - ctx.status(200) + ctx.status(200), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/server.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/server.handlers.ts index 66b739d365..b62fb9112a 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/server.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/server.handlers.ts @@ -12,7 +12,7 @@ export const serverRunningHandler = rest.get(umbracoPath('/server/status'), (_re ctx.status(200), ctx.json({ serverStatus: RuntimeLevelModel.RUN, - }) + }), ); }); @@ -22,7 +22,7 @@ export const serverMustInstallHandler = rest.get(umbracoPath('/server/status'), ctx.status(200), ctx.json({ serverStatus: RuntimeLevelModel.INSTALL, - }) + }), ); }); @@ -32,7 +32,7 @@ export const serverMustUpgradeHandler = rest.get(umbracoPath('/server/status'), ctx.status(200), ctx.json({ serverStatus: RuntimeLevelModel.UPGRADE, - }) + }), ); }); @@ -42,6 +42,6 @@ export const serverVersionHandler = rest.get(umbracoPath('/server/version'), (_r ctx.status(200), ctx.json({ version: '13.0.0', - }) + }), ); }); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/telemetry.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/telemetry.handlers.ts index 488d87887a..1f0d10a57f 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/telemetry.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/telemetry.handlers.ts @@ -16,7 +16,7 @@ export const handlers = [ ctx.status(200), ctx.json({ telemetryLevel, - }) + }), ); }), @@ -31,7 +31,7 @@ export const handlers = [ { telemetryLevel: TelemetryLevelModel.BASIC }, { telemetryLevel: TelemetryLevelModel.DETAILED }, ], - }) + }), ); }), @@ -41,7 +41,7 @@ export const handlers = [ telemetryLevel = newLevel; return res( // Respond with a 200 status code - ctx.status(200) + ctx.status(200), ); } else { return res(ctx.status(400)); diff --git a/src/Umbraco.Web.UI.Client/src/mocks/handlers/upgrade.handlers.ts b/src/Umbraco.Web.UI.Client/src/mocks/handlers/upgrade.handlers.ts index d611ea1240..500880e3df 100644 --- a/src/Umbraco.Web.UI.Client/src/mocks/handlers/upgrade.handlers.ts +++ b/src/Umbraco.Web.UI.Client/src/mocks/handlers/upgrade.handlers.ts @@ -14,7 +14,7 @@ export const handlers = [ oldVersion: '13.0.0', newVersion: '13.1.0', reportUrl: 'https://our.umbraco.com/download/releases/1000', - }) + }), ); }), @@ -23,7 +23,7 @@ export const handlers = [ return res( // Respond with a 200 status code - ctx.status(201) + ctx.status(201), ); }), ]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/backoffice-notification-container/backoffice-notification-container.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/backoffice-notification-container/backoffice-notification-container.element.ts index 676e080f22..f386b64cdb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/backoffice-notification-container/backoffice-notification-container.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/backoffice-notification-container/backoffice-notification-container.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, CSSResultGroup, html, customElement, state, repeat } from '@umbraco-cms/backoffice/external/lit'; import { UmbNotificationHandler, @@ -38,7 +38,7 @@ export class UmbBackofficeNotificationContainerElement extends UmbLitElement { ? repeat( this._notifications, (notification: UmbNotificationHandler) => notification.key, - (notification) => html`${notification.element}` + (notification) => html`${notification.element}`, ) : ''} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.stories.ts index 305f5d9b4e..c32feb03af 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.stories.ts @@ -13,9 +13,10 @@ export default meta; type Story = StoryObj; export const Overview: Story = { - render: () => html` -

Header slot
- Main slot -
Footer slot
- `, + render: () => + html` +
Header slot
+ Main slot +
Footer slot
+
`, }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts index 7a52a8a1c9..dfedfe440b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts @@ -8,8 +8,9 @@ export default { id: 'umb-button-with-dropdown', } as Meta; -export const AAAOverview: Story = () => html` - Open me -
I am a dropdown
-
`; +export const AAAOverview: Story = () => + html` + Open me +
I am a dropdown
+
`; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.element.ts index b9a6f254e9..2f302e0456 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, customElement, property } from '@umbraco-cms/backoffice/external/lit'; @customElement('umb-empty-state') diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.stories.ts index ca470e4e5c..0f5ec49ad2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/empty-state/empty-state.stories.ts @@ -6,9 +6,10 @@ import type { UmbEmptyStateElement } from './empty-state.element.js'; const meta: Meta = { title: 'Components/Empty State', component: 'umb-empty-state', - render: (args) => html` There are no items to be found`, + render: (args) => + html` There are no items to be found`, }; export default meta; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/entity-actions-bundle/entity-actions-bundle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/entity-actions-bundle/entity-actions-bundle.element.ts index 10f05d44a5..46bab98a29 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/entity-actions-bundle/entity-actions-bundle.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/entity-actions-bundle/entity-actions-bundle.element.ts @@ -1,5 +1,5 @@ import { css, html, nothing, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbSectionSidebarContext, UMB_SECTION_SIDEBAR_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/section'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -48,7 +48,7 @@ export class UmbEntityActionsBundleElement extends UmbLitElement { (actions) => { this._hasActions = actions.length > 0; }, - 'umbEntityActionsObserver' + 'umbEntityActionsObserver', ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.element.ts index 0e3ddae1c8..97c050d41e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.element.ts @@ -92,7 +92,7 @@ export class UmbExtensionSlotElement extends UmbLitElement { #props?: Record = {}; @property({ type: String, attribute: 'default-element' }) - public defaultElement?:string; + public defaultElement?: string; @property() public renderMethod?: (extension: UmbExtensionElementInitializer) => TemplateResult | HTMLElement | null | undefined; @@ -114,7 +114,7 @@ export class UmbExtensionSlotElement extends UmbLitElement { (extensionControllers) => { this._permittedExts = extensionControllers; }, - this.defaultElement + this.defaultElement, ); this.#extensionsController.properties = this.#props; } @@ -124,7 +124,7 @@ export class UmbExtensionSlotElement extends UmbLitElement { return repeat( this._permittedExts, (ext) => ext.alias, - (ext) => (this.renderMethod ? this.renderMethod(ext) : ext.component) + (ext) => (this.renderMethod ? this.renderMethod(ext) : ext.component), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts index 70cac2d8df..c933e21a94 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts @@ -76,7 +76,7 @@ describe('UmbExtensionSlotElement', () => { element = await fixture( html` x.alias === 'unit-test-ext-slot-element-manifest'}>` + .filter=${(x: ManifestDashboard) => x.alias === 'unit-test-ext-slot-element-manifest'}>`, ); await sleep(0); @@ -90,14 +90,14 @@ describe('UmbExtensionSlotElement', () => { type="dashboard" .filter=${(x: ManifestDashboard) => x.alias === 'unit-test-ext-slot-element-manifest'} .renderMethod=${(controller: UmbExtensionElementInitializer) => html`${controller.component}`}> - ` + `, ); await sleep(0); expect(element.shadowRoot!.firstElementChild?.nodeName).to.be.equal('BLA'); expect(element.shadowRoot!.firstElementChild?.firstElementChild).to.be.instanceOf( - UmbTestExtensionSlotManifestElement + UmbTestExtensionSlotManifestElement, ); }); @@ -107,7 +107,7 @@ describe('UmbExtensionSlotElement', () => { type="dashboard" .filter=${(x: ManifestDashboard) => x.alias === 'unit-test-ext-slot-element-manifest'} .props=${{ testProp: 'fooBar' }}> - ` + `, ); await sleep(0); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.element.ts index c0ca4fb8c2..a85432e586 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.element.ts @@ -1,5 +1,5 @@ import { css, html, LitElement, customElement } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; /** * @element umb-footer-layout diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.stories.ts index 6656d782f9..ccc0743767 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/footer-layout/footer-layout.stories.ts @@ -10,10 +10,11 @@ export default { id: 'umb-footer-layout', } as Meta; -export const AAAOverview: Story = () => html` -
- Footer slotActions slot -
-
`; +export const AAAOverview: Story = () => + html` +
+ Footer slotActions slot +
+
`; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/header-app/header-app-button.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/header-app/header-app-button.element.ts index de178fec21..4a1a9970ca 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/header-app/header-app-button.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/header-app/header-app-button.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, CSSResultGroup, html, LitElement, customElement, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { ManifestHeaderAppButtonKind, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-item.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-item.element.ts index 5ba795f064..851f6a5f50 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-item.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-item.element.ts @@ -1,5 +1,5 @@ import { css, html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-history-item') diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.element.ts index c08d39749c..a4e7d5392b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.element.ts @@ -1,5 +1,5 @@ import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-history-list') diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.stories.ts index 60552615e5..0bced47aee 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/history/history-list.stories.ts @@ -13,25 +13,25 @@ export default { id: 'umb-history-list', } as Meta; -export const AAAOverview: Story = () => html` - - Default slot - Action slot - - - Default slot - Action slot - - - Default slot - Action slot - -`; +export const AAAOverview: Story = () => + html` + + Default slot + Action slot + + + Default slot + Action slot + + + Default slot + Action slot + + `; AAAOverview.storyName = 'Overview'; -export const Node: Story = () => html` - Default slot - Action slot -`; +export const Node: Story = () => + html` + Default slot + Action slot + `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-multi-url/input-multi-url.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-multi-url/input-multi-url.element.ts index cccf149e2e..dd50ece4b2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-multi-url/input-multi-url.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-multi-url/input-multi-url.element.ts @@ -112,12 +112,12 @@ export class UmbInputMultiUrlElement extends FormControlMixin(UmbLitElement) { this.addValidator( 'rangeUnderflow', () => this.minMessage, - () => !!this.min && this.urls.length < this.min + () => !!this.min && this.urls.length < this.min, ); this.addValidator( 'rangeOverflow', () => this.maxMessage, - () => !!this.max && this.urls.length > this.max + () => !!this.max && this.urls.length > this.max, ); this.myModalRegistration = new UmbModalRouteRegistrationController(this, UMB_LINK_PICKER_MODAL) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts index baa6f00a5e..d43c6320db 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts @@ -102,7 +102,11 @@ export class UmbInputTinyMceElement extends FormControlMixin(UmbLitElement) { const manifests = (await firstValueFrom(observable)) as ManifestTinyMcePlugin[]; for (const manifest of manifests) { - const plugin = manifest.js ? await loadManifestApi(manifest.js) : manifest.api ? await loadManifestApi(manifest.api) : undefined; + const plugin = manifest.js + ? await loadManifestApi(manifest.js) + : manifest.api + ? await loadManifestApi(manifest.api) + : undefined; if (plugin) { this.#plugins.push(plugin); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/table/table.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/table/table.element.ts index bd05f533c8..70a3f182c4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/table/table.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/table/table.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, @@ -189,12 +189,13 @@ export class UmbTableElement extends LitElement { return html` ${when( this.config.allowSelection, - () => html` - ` + () => + html` + `, )} `; } @@ -217,12 +218,13 @@ export class UmbTableElement extends LitElement { ${when(!this.config.hideIcon, () => html``)} ${when( this.config.allowSelection, - () => html` e.stopPropagation()} - @change=${(event: Event) => this._handleRowCheckboxChange(event, item)} - ?checked="${this._isSelected(item.id)}"> - ` + () => + html` e.stopPropagation()} + @change=${(event: Event) => this._handleRowCheckboxChange(event, item)} + ?checked="${this._isSelected(item.id)}"> + `, )} `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/tooltip-menu/tooltip-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/tooltip-menu/tooltip-menu.element.ts index 93212d57fc..0568fe51d7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/tooltip-menu/tooltip-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/tooltip-menu/tooltip-menu.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, nothing, repeat, customElement, property } from '@umbraco-cms/backoffice/external/lit'; export interface TooltipMenuItem { @@ -48,7 +48,7 @@ export class UmbTooltipMenuElement extends LitElement { return repeat( this.items, (item) => item.label, - (item) => this._renderItem(item) + (item) => this._renderItem(item), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts index b626e9e899..819382657a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts @@ -13,7 +13,6 @@ import { DocumentVariantResponseModel, ContentStateModel } from '@umbraco-cms/ba @customElement('umb-variant-selector') export class UmbVariantSelectorElement extends UmbLitElement { - @state() _variants: Array = []; @@ -21,7 +20,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { @state() _activeVariants: Array = []; - @property({attribute: false}) + @property({ attribute: false }) public get _activeVariantsCultures(): string[] { return this._activeVariants.map((el) => el.culture ?? '') ?? []; } @@ -70,7 +69,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { this._variants = variants; } }, - '_observeVariants' + '_observeVariants', ); } } @@ -87,7 +86,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { this._activeVariants = activeVariants; } }, - '_observeActiveVariants' + '_observeActiveVariants', ); } } @@ -105,7 +104,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { (name) => { this._name = name; }, - '_name' + '_name', ); } @@ -123,7 +122,11 @@ export class UmbVariantSelectorElement extends UmbLitElement { if (event instanceof UUIInputEvent) { const target = event.composedPath()[0] as UUIInputElement; - if (typeof target?.value === 'string' && this.#variantContext && isNameablePropertySetContext(this.#variantContext)) { + if ( + typeof target?.value === 'string' && + this.#variantContext && + isNameablePropertySetContext(this.#variantContext) + ) { this.#variantContext.setName(target.value); } } @@ -196,33 +199,32 @@ export class UmbVariantSelectorElement extends UmbLitElement {
    ${this._variants.map( - (variant) => - html` -
  • - + @click=${() => this._switchVariant(variant)}> + ${this._isNotPublishedMode(variant.culture!, variant.state!) + ? html`` + : nothing} +
    + ${variant.name} (${variant.culture}) ${variant.segment} +
    ${variant.state}
    +
    + - ${this._isVariantActive(variant.culture!) - ? nothing - : html` - this._openSplitView(variant)}> - Split view - - `} -
  • - ` + ${this._isVariantActive(variant.culture!) + ? nothing + : html` + this._openSplitView(variant)}> + Split view + + `} + + `, )}
@@ -307,7 +309,12 @@ export class UmbVariantSelectorElement extends UmbLitElement { font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--uui-color-divider-standalone); - font-family: Lato, Helvetica Neue, Helvetica, Arial, sans-serif; + font-family: + Lato, + Helvetica Neue, + Helvetica, + Arial, + sans-serif; } .variant-selector-switch-button:hover { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.stories.ts index 4827af62be..f8e18fe1e4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.stories.ts @@ -11,6 +11,5 @@ export default meta; type Story = StoryObj; export const Overview: Story = { - args: { - }, + args: {}, }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/entity-actions/create/modal/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/entity-actions/create/modal/index.ts index c6565fb240..b87999813d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/entity-actions/create/modal/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/entity-actions/create/modal/index.ts @@ -9,5 +9,5 @@ export const UMB_DATA_TYPE_CREATE_OPTIONS_MODAL = new UmbModalToken ${this._renderInstance(contextData.data)} - ` + `, ); }); @@ -132,16 +132,14 @@ export class UmbDebugElement extends UmbLitElement { return instanceTemplates.push(html`
  • Callable Function
  • `); } else if (instance.type === 'object') { if (instance.methods?.length) { - instanceTemplates.push( - html` -
  • - Methods -
      - ${instance.methods?.map((methodName) => html`
    • ${methodName}
    • `)} -
    -
  • - ` - ); + instanceTemplates.push(html` +
  • + Methods +
      + ${instance.methods?.map((methodName) => html`
    • ${methodName}
    • `)} +
    +
  • + `); } const props: TemplateResult[] = []; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/folder-update/folder-update.action.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/folder-update/folder-update.action.ts index 8382bed184..bc46d9230b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/folder-update/folder-update.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/folder-update/folder-update.action.ts @@ -9,7 +9,7 @@ import { import { UmbFolderRepository } from '@umbraco-cms/backoffice/repository'; export class UmbFolderUpdateEntityAction< - T extends UmbFolderRepository = UmbFolderRepository + T extends UmbFolderRepository = UmbFolderRepository, > extends UmbEntityActionBase { #modalContext?: UmbModalManagerContext; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/sort-children-of/sort-children-of.action.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/sort-children-of/sort-children-of.action.ts index 8e7c170aca..5170df11cf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/sort-children-of/sort-children-of.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/common/sort-children-of/sort-children-of.action.ts @@ -2,7 +2,7 @@ import { UmbEntityActionBase } from '../../entity-action.js'; import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; export class UmbSortChildrenOfEntityAction< - T extends { sortChildrenOf(): Promise } + T extends { sortChildrenOf(): Promise }, > extends UmbEntityActionBase { constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) { super(host, repositoryAlias, unique); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/entity-bulk-action.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/entity-bulk-action.model.ts index bc85f2ba34..0c3628b836 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/entity-bulk-action.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/entity-bulk-action.model.ts @@ -6,7 +6,9 @@ import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbr * An action to perform on multiple entities * For example for content you may wish to move one or more documents in bulk */ -export interface ManifestEntityBulkAction extends ManifestElementAndApi, ManifestWithDynamicConditions { +export interface ManifestEntityBulkAction + extends ManifestElementAndApi, + ManifestWithDynamicConditions { type: 'entityBulkAction'; meta: MetaEntityBulkAction; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/localization.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/localization.model.ts index c51b4f7c7d..9f06f37020 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/localization.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/localization.model.ts @@ -1,7 +1,7 @@ import type { ManifestPlainJs } from '@umbraco-cms/backoffice/extension-api'; import type { UmbLocalizationDictionary } from '@umbraco-cms/backoffice/localization-api'; -export interface ManifestLocalization extends ManifestPlainJs<{default: UmbLocalizationDictionary}> { +export interface ManifestLocalization extends ManifestPlainJs<{ default: UmbLocalizationDictionary }> { type: 'localization'; meta: MetaLocalization; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/modal.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/modal.model.ts index b3826268f0..4fd1190e96 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/modal.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/modal.model.ts @@ -1,6 +1,7 @@ import type { UmbModalExtensionElement } from '../interfaces/modal-extension-element.interface.js'; import type { ManifestElement } from '@umbraco-cms/backoffice/extension-api'; -export interface ManifestModal extends ManifestElement | UmbModalExtensionElement> { +export interface ManifestModal + extends ManifestElement | UmbModalExtensionElement> { type: 'modal'; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-action.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-action.model.ts index 1f5b6c9327..aa0091ef19 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-action.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-action.model.ts @@ -1,7 +1,9 @@ import type { ConditionTypes } from '../conditions/types.js'; import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api'; -export interface ManifestPropertyAction extends ManifestElement, ManifestWithDynamicConditions { +export interface ManifestPropertyAction + extends ManifestElement, + ManifestWithDynamicConditions { type: 'propertyAction'; meta: MetaPropertyAction; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/repository.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/repository.model.ts index 33a5c5b32e..3a169b1d9a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/repository.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/repository.model.ts @@ -1,6 +1,8 @@ import type { ConditionTypes } from '../conditions/types.js'; import type { UmbApi, ManifestApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api'; // TODO: Consider adding a ClassType for this manifest. (Currently we cannot know the scope of a repository, therefor we are going with ExtensionApi for now.) -export interface ManifestRepository extends ManifestApi, ManifestWithDynamicConditions { +export interface ManifestRepository + extends ManifestApi, + ManifestWithDynamicConditions { type: 'repository'; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action.model.ts index ec092c13ee..331e258137 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action.model.ts @@ -1,12 +1,11 @@ import type { ConditionTypes } from '../conditions/types.js'; import type { InterfaceColor, InterfaceLook } from '@umbraco-cms/backoffice/external/uui'; -import type { - ManifestElementAndApi, - ManifestWithDynamicConditions, -} from '@umbraco-cms/backoffice/extension-api'; +import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api'; import type { UmbWorkspaceAction } from '@umbraco-cms/backoffice/workspace'; -export interface ManifestWorkspaceAction extends ManifestElementAndApi, ManifestWithDynamicConditions { +export interface ManifestWorkspaceAction + extends ManifestElementAndApi, + ManifestWithDynamicConditions { type: 'workspaceAction'; meta: MetaWorkspaceAction; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-date.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-date.element.ts index fba0090dc0..ad2229e63e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-date.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-date.element.ts @@ -16,23 +16,21 @@ export class UmbLocalizeDateElement extends UmbLitElement { @property() date!: string | Date; - /** + /** * Formatting options * @attr * @example options={ dateStyle: 'full', timeStyle: 'long', timeZone: 'Australia/Sydney' } */ - @property() + @property() options?: Intl.DateTimeFormatOptions; - + @state() protected get text(): string { - return this.localize.date(this.date, this.options); + return this.localize.date(this.date, this.options); } protected render() { - return this.date - ? html`${unsafeHTML(this.text)}` - : html`` + return this.date ? html`${unsafeHTML(this.text)}` : html``; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-number.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-number.element.ts index 91a5169508..872ae674a3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-number.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-number.element.ts @@ -16,23 +16,21 @@ export class UmbLocalizeNumberElement extends UmbLitElement { @property() number!: number | string; - /** + /** * Formatting options * @attr * @example options={ style: 'currency', currency: 'EUR' } */ - @property() + @property() options?: Intl.NumberFormatOptions; - + @state() protected get text(): string { - return this.localize.number(this.number, this.options); + return this.localize.number(this.number, this.options); } protected render() { - return this.number - ? html`${unsafeHTML(this.text)}` - : html`` + return this.number ? html`${unsafeHTML(this.text)}` : html``; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-relative-time.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-relative-time.element.ts index 84e042e9fb..4b47c0b731 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-relative-time.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize-relative-time.element.ts @@ -16,15 +16,15 @@ export class UmbLocalizeRelativeTimeElement extends UmbLitElement { @property() time!: number; - /** + /** * Formatting options * @attr * @example options={ dateStyle: 'full', timeStyle: 'long', timeZone: 'Australia/Sydney' } */ - @property() + @property() options?: Intl.RelativeTimeFormatOptions; - - /** + + /** * Unit * @attr * @example unit='seconds' @@ -34,13 +34,11 @@ export class UmbLocalizeRelativeTimeElement extends UmbLitElement { @state() protected get text(): string { - return this.localize.relativeTime(this.time, this.unit, this.options); + return this.localize.relativeTime(this.time, this.unit, this.options); } protected render() { - return this.time - ? html`${unsafeHTML(this.text)}` - : html`` + return this.time ? html`${unsafeHTML(this.text)}` : html``; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts index 8b30164757..0c93994195 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/localize.element.ts @@ -9,7 +9,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-localize') export class UmbLocalizeElement extends UmbLitElement { /** - * The key to localize. The key is case sensitive. + * The key to localize. The key is case sensitive. * @attr * @example key="general_ok" */ @@ -33,7 +33,7 @@ export class UmbLocalizeElement extends UmbLitElement { */ @property() debug = false; - + @state() protected get text(): string { const localizedValue = this.localize.term(this.key, ...(this.args ?? [])); @@ -53,8 +53,8 @@ export class UmbLocalizeElement extends UmbLitElement { return this.text.trim() ? html`${unsafeHTML(this.text)}` : this.debug - ? html`${this.key}` - : html``; + ? html`${this.key}` + : html``; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts index 7b2ece24f5..b9ffb20347 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts @@ -64,7 +64,7 @@ export class UmbLocalizationRegistry { } // If extension contains a js file, load it and add the default dictionary to the inner dictionary. - if(extension.js) { + if (extension.js) { const loadedExtension = await loadManifestPlainJs(extension.js); if (loadedExtension && hasDefaultExport(loadedExtension)) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/confirm/confirm-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/confirm/confirm-modal.element.ts index 2a04dbe3e9..3b18675b03 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/confirm/confirm-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/confirm/confirm-modal.element.ts @@ -5,7 +5,6 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-confirm-modal') export class UmbConfirmModalElement extends UmbLitElement { - @property({ attribute: false }) modalContext?: UmbModalContext; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.element.ts index 8050305abc..575fe4fa4d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.element.ts @@ -10,8 +10,6 @@ import { UmbIconPickerModalData, UmbIconPickerModalValue, UmbModalBaseElement } // TODO: to prevent element extension we need to move the Picker logic into a separate class we can reuse across all pickers @customElement('umb-icon-picker-modal') export class UmbIconPickerModalElement extends UmbModalBaseElement { - - private _iconList = icons.filter((icon) => !icon.legacy); @state() @@ -19,26 +17,26 @@ export class UmbIconPickerModalElement extends UmbModalBaseElement { - this._modalValue = newValue; - this._currentColorVarName = this._colorList.find(x => x.alias === newValue?.color)?.alias ?? this._colorList[0].varName; - }, '_observeModalContextValue'); + if (this.modalContext) { + this.observe( + this.modalContext?.value, + (newValue) => { + this._modalValue = newValue; + this._currentColorVarName = + this._colorList.find((x) => x.alias === newValue?.color)?.alias ?? this._colorList[0].varName; + }, + '_observeModalContextValue', + ); } } @@ -88,10 +91,15 @@ export class UmbIconPickerModalElement extends UmbModalBaseElement html` - - `, - )} + (color) => html` + + `, + ) + }
    ${this.renderIconSelection()} @@ -116,7 +124,8 @@ export class UmbIconPickerModalElement extends UmbModalBaseElement icon.name, (icon) => html` - ` + `, ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.stories.ts index d6f6fb08a8..d071a19fa8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.stories.ts @@ -13,8 +13,7 @@ export default { id: 'umb-icon-picker-modal', } as Meta; -const data: UmbIconPickerModalData = { -}; +const data: UmbIconPickerModalData = {}; const value: UmbIconPickerModalValue = { color: undefined, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker-modal.element.ts index ef6d783f06..e38d25eb99 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/section-picker/section-picker-modal.element.ts @@ -38,7 +38,8 @@ export class UmbSectionPickerModalElement extends UmbModalBaseElement< this.observe( umbExtensionsRegistry.extensionsOfType('section'), (sections: Array) => (this._sections = sections), - ), 'umbSectionsObserver'; + ), + 'umbSectionsObserver'; } render() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/modal.element.ts index 5af2670e08..a66bb6a7e5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/modal.element.ts @@ -104,7 +104,7 @@ export class UmbModalElement extends UmbLitElement { async #createInnerElement(manifest: ManifestModal) { // TODO: add inner fallback element if no extension element is found - const innerElement = (await createExtensionElement(manifest)); + const innerElement = await createExtensionElement(manifest); if (innerElement) { innerElement.data = this.#modalContext!.data; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/icon-picker-modal.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/icon-picker-modal.token.ts index 3b616b783e..40144b4c00 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/icon-picker-modal.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/token/icon-picker-modal.token.ts @@ -1,7 +1,6 @@ import { UmbModalToken } from '@umbraco-cms/backoffice/modal'; -export interface UmbIconPickerModalData { -} +export interface UmbIconPickerModalData {} export interface UmbIconPickerModalValue { color: string | undefined; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.element.ts index 2b31d747ad..f922ff5194 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.element.ts @@ -1,5 +1,5 @@ import { html, LitElement, customElement, property, ifDefined } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UmbNotificationDefaultData, UmbNotificationHandler } from '@umbraco-cms/backoffice/notification'; export type { UmbNotificationDefaultData }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts index 406d46cad4..980010eb9b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts @@ -23,7 +23,7 @@ describe('UmbNotificationLayoutDefault', () => { element = await fixture( html`` + .data=${options.data}>`, ); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts index a253d588ca..17bb0b1057 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts @@ -19,8 +19,8 @@ export class UmbPropertyActionCopyElement extends UmbLitElement implements UmbPr super(); //this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (property) => { - //console.log('Got a reference to the editor element', property.getEditor()); - // Be aware that the element might switch, so using the direct reference is not recommended, instead observe the .element Observable() + //console.log('Got a reference to the editor element', property.getEditor()); + // Be aware that the element might switch, so using the direct reference is not recommended, instead observe the .element Observable() //}); this.consumeContext(UMB_NOTIFICATION_CONTEXT_TOKEN, (instance) => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts index ef20a285be..5c5b7319eb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts @@ -1,2 +1,2 @@ -export * from './property-action-menu.context.js' -export * from './property-action-menu.element.js' \ No newline at end of file +export * from './property-action-menu.context.js'; +export * from './property-action-menu.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts index 940d0b8b32..de587bc79f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts @@ -1,23 +1,33 @@ import { UmbPropertyActionMenuContext } from './property-action-menu.context.js'; -import { css, CSSResultGroup, html, customElement, property, state, repeat } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; -import { ManifestPropertyAction, ManifestTypes, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; +import { + css, + CSSResultGroup, + html, + customElement, + property, + state, + repeat, +} from '@umbraco-cms/backoffice/external/lit'; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; +import { + ManifestPropertyAction, + ManifestTypes, + umbExtensionsRegistry, +} from '@umbraco-cms/backoffice/extension-registry'; import { UmbExtensionElementInitializer, UmbExtensionsElementInitializer } from '@umbraco-cms/backoffice/extension-api'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-property-action-menu') export class UmbPropertyActionMenuElement extends UmbLitElement { - #actionsInitializer?: UmbExtensionsElementInitializer; - @property({ attribute: false }) public get value(): unknown { return this._value; } public set value(value: unknown) { this._value = value; - if(this.#actionsInitializer) { + if (this.#actionsInitializer) { this.#actionsInitializer.properties = { value }; } } @@ -25,11 +35,16 @@ export class UmbPropertyActionMenuElement extends UmbLitElement { @property() set propertyEditorUiAlias(alias: string) { - // TODO: Align property actions with entity actions. - this.#actionsInitializer = new UmbExtensionsElementInitializer(this, umbExtensionsRegistry, 'propertyAction', (propertyAction) => propertyAction.meta.propertyEditors.includes(alias), (ctrls) => { - this._actions = ctrls; - }); + this.#actionsInitializer = new UmbExtensionsElementInitializer( + this, + umbExtensionsRegistry, + 'propertyAction', + (propertyAction) => propertyAction.meta.propertyEditors.includes(alias), + (ctrls) => { + this._actions = ctrls; + }, + ); } @state() private _actions: Array> = []; @@ -75,11 +90,7 @@ export class UmbPropertyActionMenuElement extends UmbLitElement { - + ` : ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts index ec46a53aaa..122785127c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts @@ -1 +1 @@ -export * from './property-action.interface.js'; \ No newline at end of file +export * from './property-action.interface.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts index a6654797d0..9c63d1cf9c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts @@ -1,2 +1,2 @@ -export * from './property-editor-config.type.js' -export * from './property-editor-config-collection.class.js' +export * from './property-editor-config.type.js'; +export * from './property-editor-config-collection.class.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts index 3d23986281..6f652c38b3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-block-grid-block-configuration */ @customElement('umb-property-editor-ui-block-grid-block-configuration') -export class UmbPropertyEditorUIBlockGridBlockConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUIBlockGridBlockConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts index 9416838460..99a8589c9f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUIBlockGridBlockConfigurationElement', () => { let element: UmbPropertyEditorUIBlockGridBlockConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts index 3be87591bb..da03743d67 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts @@ -1,19 +1,22 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-block-grid-group-configuration */ @customElement('umb-property-editor-ui-block-grid-group-configuration') -export class UmbPropertyEditorUIBlockGridGroupConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUIBlockGridGroupConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; @property({ type: Object, attribute: false }) - public config?: UmbPropertyEditorConfigCollection + public config?: UmbPropertyEditorConfigCollection; render() { return html`
    umb-property-editor-ui-block-grid-group-configuration
    `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts index de0ffc6d61..9f32c3112f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUIBlockGridGroupConfigurationElement', () => { let element: UmbPropertyEditorUIBlockGridGroupConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts index c4984ccafc..f0bb6966a8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-block-grid-stylesheet-picker */ @customElement('umb-property-editor-ui-block-grid-stylesheet-picker') -export class UmbPropertyEditorUIBlockGridStylesheetPickerElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUIBlockGridStylesheetPickerElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts index 38d83b7886..df5d7fcb40 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUIBlockGridStylesheetPickerElement', () => { let element: UmbPropertyEditorUIBlockGridStylesheetPickerElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts index 63da2df720..91b3cb1c3a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbRouterSlotChangeEvent, UmbRouterSlotInitEvent, UmbRoute } from '@umbraco-cms/backoffice/router'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index fbb615d31a..5301be738f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,6 +1,6 @@ import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../workspace/workspace-property/workspace-property.context.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import type { UmbRoute, UmbRouterSlotChangeEvent, UmbRouterSlotInitEvent } from '@umbraco-cms/backoffice/router'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; @@ -12,7 +12,6 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/ */ @customElement('umb-property-editor-ui-block-grid') export class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implements UmbPropertyEditorUiElement { - @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts index efd652ff62..4d53ce093e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { let element: UmbPropertyEditorUIBlockListBlockConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts index ace21ab222..e8714e0734 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts @@ -1,6 +1,6 @@ import type { UmbPropertyEditorConfigCollection } from '../../config/index.js'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts index 1baffac26d..ee4a3b8e99 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts @@ -1,6 +1,6 @@ import { UmbInputCheckboxListElement } from '../../../components/input-checkbox-list/input-checkbox-list.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts index 4377385649..648d6bb8b5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-collection-view-bulk-action-permissions */ @customElement('umb-property-editor-ui-collection-view-bulk-action-permissions') -export class UmbPropertyEditorUICollectionViewBulkActionPermissionsElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUICollectionViewBulkActionPermissionsElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts index 0b0dccec0d..d46384afee 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUICollectionViewBulkActionPermissionsElement', () => let element: UmbPropertyEditorUICollectionViewBulkActionPermissionsElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts index 951d1956ca..fa75c639de 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-collection-view-column-configuration */ @customElement('umb-property-editor-ui-collection-view-column-configuration') -export class UmbPropertyEditorUICollectionViewColumnConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUICollectionViewColumnConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts index e1c71e27cd..71288c6933 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUICollectionViewColumnConfigurationElement', () => { let element: UmbPropertyEditorUICollectionViewColumnConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts index b0cb58095f..ab4720895c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-collection-view-layout-configuration */ @customElement('umb-property-editor-ui-collection-view-layout-configuration') -export class UmbPropertyEditorUICollectionViewLayoutConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUICollectionViewLayoutConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts index 3e305054c8..5f8af52f82 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUICollectionViewLayoutConfigurationElement', () => { let element: UmbPropertyEditorUICollectionViewLayoutConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts index 507c8ab67b..3bbe2b6fd4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts @@ -1,14 +1,17 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** * @element umb-property-editor-ui-collection-view-order-by */ @customElement('umb-property-editor-ui-collection-view-order-by') -export class UmbPropertyEditorUICollectionViewOrderByElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUICollectionViewOrderByElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts index e76f78fa58..07094aafa8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUICollectionViewOrderByElement', () => { let element: UmbPropertyEditorUICollectionViewOrderByElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts index fc478d0d94..87918f1247 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts @@ -1,7 +1,7 @@ import { UmbPropertyEditorConfigCollection } from '../../config/index.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts index d3ce3705d8..68966179ff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorConfigCollection, UmbPropertyValueChangeEvent } from '../../index.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbInputDateElement } from '@umbraco-cms/backoffice/components'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts index 9baa29efee..647b967f86 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbModalManagerContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts index 228c45568e..931a3a3559 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts index 0cc187d137..39d8e40a10 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @@ -8,10 +8,7 @@ import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/prope * @element umb-property-editor-ui-member-group-picker */ @customElement('umb-property-editor-ui-member-group-picker') -export class UmbPropertyEditorUIMemberGroupPickerElement - extends UmbLitElement - implements UmbPropertyEditorUiElement -{ +export class UmbPropertyEditorUIMemberGroupPickerElement extends UmbLitElement implements UmbPropertyEditorUiElement { @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts index 3d3231e586..3f697d6202 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUIMemberGroupPickerElement', () => { let element: UmbPropertyEditorUIMemberGroupPickerElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts index 849d5e5b30..062e052117 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index b7e53f73de..0419084673 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; import { UmbInputMultiUrlElement } from '@umbraco-cms/backoffice/components'; import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; @@ -12,10 +12,7 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/ * @element umb-property-editor-ui-multi-url-picker */ @customElement('umb-property-editor-ui-multi-url-picker') -export class UmbPropertyEditorUIMultiUrlPickerElement - extends UmbLitElement - implements UmbPropertyEditorUiElement -{ +export class UmbPropertyEditorUIMultiUrlPickerElement extends UmbLitElement implements UmbPropertyEditorUiElement { @property({ type: Array }) value: UmbLinkPickerLink[] = []; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts index 0e504fb9fa..6476463b0a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUIMultiUrlPickerElement', () => { let element: UmbPropertyEditorUIMultiUrlPickerElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts index d0cd5b339f..3fd0d943d8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUIMultipleTextStringElement', () => { let element: UmbPropertyEditorUIMultipleTextStringElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts index b21681cd07..b28a3d13f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts @@ -1,6 +1,6 @@ import type { UmbInputNumberRangeElement } from '../../../components/input-number-range/input-number-range.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts index 011d9bab85..b7c369276c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts @@ -1,5 +1,5 @@ import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts index 65e6cf3c5e..911868952d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @@ -8,10 +8,7 @@ import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/prope * @element umb-property-editor-ui-order-direction */ @customElement('umb-property-editor-ui-order-direction') -export class UmbPropertyEditorUIOrderDirectionElement - extends UmbLitElement - implements UmbPropertyEditorUiElement -{ +export class UmbPropertyEditorUIOrderDirectionElement extends UmbLitElement implements UmbPropertyEditorUiElement { @property() value = ''; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts index 90d17c6d08..f726414e7c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts index d279a3b29c..aafbbe3b6d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import '../../../components/input-radio-button-list/input-radio-button-list.element.js'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import type { UmbInputRadioButtonListElement } from '../../../components/input-radio-button-list/input-radio-button-list.element.js'; @@ -10,10 +10,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; * @element umb-property-editor-ui-radio-button-list */ @customElement('umb-property-editor-ui-radio-button-list') -export class UmbPropertyEditorUIRadioButtonListElement - extends UmbLitElement - implements UmbPropertyEditorUiElement -{ +export class UmbPropertyEditorUIRadioButtonListElement extends UmbLitElement implements UmbPropertyEditorUiElement { #value = ''; @property({ type: String }) public get value(): string { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts index 311bdb57cf..415f84aa7b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUIRadioButtonListElement', () => { let element: UmbPropertyEditorUIRadioButtonListElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts index 0de1bde785..66d5eb79c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts @@ -1,6 +1,6 @@ import { UmbInputSliderElement } from '../../../components/input-slider/input-slider.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts index 4e3aef83cb..a1cd98015d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUITinyMceDimensionsConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceDimensionsConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts index 2d06aed494..86fa1a9750 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts @@ -1,14 +1,17 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorUiElement } from "@umbraco-cms/backoffice/extension-registry"; +import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; /** * @element umb-property-editor-ui-tiny-mce-maximagesize-configuration */ @customElement('umb-property-editor-ui-tiny-mce-maximagesize-configuration') -export class UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { - @property({type: Number}) +export class UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ + @property({ type: Number }) value: number = 0; render() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts index 34ddcd01cc..924f3e8657 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUITinyMceMaxImSizeConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts index b11d7f95b7..b40d99490e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts @@ -10,7 +10,10 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-re * @element umb-property-editor-ui-tiny-mce-stylesheets-configuration */ @customElement('umb-property-editor-ui-tiny-mce-stylesheets-configuration') -export class UmbPropertyEditorUITinyMceStylesheetsConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement { +export class UmbPropertyEditorUITinyMceStylesheetsConfigurationElement + extends UmbLitElement + implements UmbPropertyEditorUiElement +{ @property({ type: Array }) value: string[] = []; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts index fe3ef35eda..73bc259cc4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUITinyMceStylesheetsConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceStylesheetsConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts index e54b1a385a..d4110d2ff1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts @@ -6,11 +6,9 @@ describe('UmbPropertyEditorUITinyMceToolbarConfigurationElement', () => { let element: UmbPropertyEditorUITinyMceToolbarConfigurationElement; beforeEach(async () => { - element = await fixture( - html` - - ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts index a6b1d97f2a..28a668a60d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts @@ -1,6 +1,6 @@ import { UmbInputToggleElement } from '../../../components/input-toggle/input-toggle.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts index 55531a978c..120c203891 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUITreePickerStartNodeElement', () => { let element: UmbPropertyEditorUITreePickerStartNodeElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts index 59ad2f7418..cc85887a5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts index 2b8261a811..2fbcca9a08 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts @@ -1,5 +1,5 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUISelectEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.function.ts b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.function.ts index b1686406d2..be500ee1b1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.function.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.function.ts @@ -23,10 +23,10 @@ export function extendDataSourcePagedResponseData< IncomingDataType extends object = object, MissingPropsType extends object = Diff, // Maybe this Omit<..., "$ype"> can be removed, but for now it kept showing up as a difference, though its not a difference on the two types. - ToType = IncomingDataType & ExtendedDataType + ToType = IncomingDataType & ExtendedDataType, >( response: DataSourceResponse>, - appendData: MissingPropsType + appendData: MissingPropsType, ): DataSourceResponse> { if (response.data === undefined) return response as unknown as DataSourceResponse>; return { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.test.ts index 36ff8879db..a41f089ab9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-paged-response-data.test.ts @@ -27,8 +27,12 @@ describe('extendDataSourcePagedResponseData', () => { const extendedResponse = extendDataSourcePagedResponseData(response, { foo: 'bar' }); expect(extendedResponse.data).that.is.a('object'); - expect(extendedResponse.data?.items[1]).to.have.property('original').to.be.equal('prop'); - expect(extendedResponse.data?.items[1]).to.have.property('foo').to.be.equal('bar'); + expect(extendedResponse.data?.items[1]) + .to.have.property('original') + .to.be.equal('prop'); + expect(extendedResponse.data?.items[1]) + .to.have.property('foo') + .to.be.equal('bar'); }); }); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-response-data.function.ts b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-response-data.function.ts index b4481d0b2d..745bb391a9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-response-data.function.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/repository/data-source/extend-data-source-response-data.function.ts @@ -22,7 +22,7 @@ export function extendDataSourceResponseData< ExtendedDataType extends IncomingDataType, IncomingDataType extends object = object, MissingPropsType extends object = Diff, - ToType = IncomingDataType & ExtendedDataType + ToType = IncomingDataType & ExtendedDataType, >(response: DataSourceResponse, appendData: MissingPropsType): DataSourceResponse { if (response.data === undefined) return response as unknown as DataSourceResponse; return { ...response, data: { ...response.data, ...appendData } as unknown as ToType }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/repository/detail-repository.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/repository/detail-repository.interface.ts index c13f3bea24..901424c69f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/repository/detail-repository.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/repository/detail-repository.interface.ts @@ -6,11 +6,11 @@ export interface UmbDetailRepository< CreateResponseType = any, UpdateRequestType = any, ResponseType = any, - CreateScaffoldPresetType = Partial + CreateScaffoldPresetType = Partial, > { createScaffold( parentId: string | null, - preset?: Partial | CreateScaffoldPresetType + preset?: Partial | CreateScaffoldPresetType, ): Promise>; requestById(id: string): Promise>; byId(id: string): Promise>; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main/section-main.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main/section-main.stories.ts index 51222d7c50..ae41676182 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main/section-main.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-main/section-main.stories.ts @@ -10,6 +10,7 @@ export default { id: 'umb-section-main', } as Meta; -export const AAAOverview: Story = () => - html` Section Main Area `; +export const AAAOverview: Story = () => html` + Section Main Area +`; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts index 48218ba73e..ac589de6f8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.ts @@ -1,5 +1,5 @@ import { UmbSectionSidebarContext, UMB_SECTION_SIDEBAR_CONTEXT_TOKEN } from '../section-sidebar/index.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-menu/section-sidebar-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-menu/section-sidebar-menu.element.ts index c5cb537f0d..9674176523 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-menu/section-sidebar-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar-menu/section-sidebar-menu.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { ManifestMenu, @@ -24,7 +24,7 @@ umbExtensionsRegistry.register(manifest); @customElement('umb-section-sidebar-menu') export class UmbSectionSidebarMenuElement< - ManifestType extends ManifestSectionSidebarAppBaseMenu = ManifestSectionSidebarAppMenuKind + ManifestType extends ManifestSectionSidebarAppBaseMenu = ManifestSectionSidebarAppMenuKind, > extends UmbLitElement { @property({ type: Object, attribute: false }) manifest?: ManifestType; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.context.ts index 64e0f4d88e..1221c3e175 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.context.ts @@ -42,5 +42,5 @@ export class UmbSectionSidebarContext { } export const UMB_SECTION_SIDEBAR_CONTEXT_TOKEN = new UmbContextToken( - 'UmbSectionSidebarContext' + 'UmbSectionSidebarContext', ); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.element.ts index 02111cd4ef..4d9915a143 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.element.ts @@ -1,5 +1,5 @@ import { UmbSectionSidebarContext, UMB_SECTION_SIDEBAR_CONTEXT_TOKEN } from './section-sidebar.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.stories.ts index 9db14ee52d..90dd1f902c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.stories.ts @@ -10,6 +10,7 @@ export default { id: 'umb-section-sidebar', } as Meta; -export const AAAOverview: Story = () => - html` Section Sidebar Area `; +export const AAAOverview: Story = () => html` + Section Sidebar Area +`; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts b/src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts index 4b28bdbca5..b9bc23e05d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts @@ -265,7 +265,7 @@ export class UmbSorterController implements UmbController { throw new Error( 'Could not find drag element, query was made with the `draggableSelector` of "' + this.#config.draggableSelector + - '"' + '"', ); return; } @@ -446,7 +446,7 @@ export class UmbSorterController implements UmbController { const orderedContainerElements = Array.from( this.#currentContainerElement.shadowRoot ? this.#currentContainerElement.shadowRoot.querySelectorAll(this.#config.itemSelector) - : this.#currentContainerElement.querySelectorAll(this.#config.itemSelector) + : this.#currentContainerElement.querySelectorAll(this.#config.itemSelector), ); const currentContainerRect = this.#currentContainerElement.getBoundingClientRect(); @@ -510,7 +510,7 @@ export class UmbSorterController implements UmbController { const subBoundaryRect = subBoundaryElement.getBoundingClientRect(); const subContainerHasItems = subLayoutEl.querySelector( - this.#config.itemSelector + ':not(.' + this.#config.placeholderClass + ')' + this.#config.itemSelector + ':not(.' + this.#config.placeholderClass + ')', ); // gather elements on the same row. const subOffsetEdge = subContainerHasItems ? -10 : 20; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts index e92e823a41..a293194900 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts @@ -1,8 +1,8 @@ -import { UmbVariantContext } from "./variant-context.interface.js"; +import { UmbVariantContext } from './variant-context.interface.js'; /** * A variant context with ability to set the name of it. -*/ + */ export interface UmbNameableVariantContext extends UmbVariantContext { - setName(name:string): void + setName(name: string): void; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/entity-manager-controller.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/entity-manager-controller.ts index 0c0c05833e..fe338c3a3a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/entity-manager-controller.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/entity-manager-controller.ts @@ -14,7 +14,7 @@ import { UmbEntityDetailStore } from '@umbraco-cms/backoffice/store'; // TODO: switch to use EntityDetailItem ? if we can have such type? export class UmbEntityWorkspaceManager< StoreType extends UmbEntityDetailStore, - EntityDetailsType extends EntityTreeItemResponseModel = ReturnType + EntityDetailsType extends EntityTreeItemResponseModel = ReturnType, > { private _host; @@ -62,7 +62,7 @@ export class UmbEntityWorkspaceManager< (content) => { if (!content) return; // TODO: Handle nicely if there is no content data. this.state.next(content as any); - } + }, ); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts index 3ce0dd3238..2301d1393f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts @@ -6,8 +6,8 @@ import type { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import type { VariantResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api'; import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -export interface UmbVariantableWorkspaceContextInterface extends UmbSaveableWorkspaceContextInterface { - +export interface UmbVariantableWorkspaceContextInterface + extends UmbSaveableWorkspaceContextInterface { // Name: getName(variantId?: UmbVariantId): string | undefined; setName(name: string, variantId?: UmbVariantId): void; @@ -19,7 +19,10 @@ export interface UmbVariantableWorkspaceContextInterface e // Property: // This one is async cause it needs to structure to provide this data: - propertyValueByAlias(alias: string, variantId?: UmbVariantId): Promise>; + propertyValueByAlias( + alias: string, + variantId?: UmbVariantId, + ): Promise>; getPropertyValue(alias: string, variantId?: UmbVariantId): ReturnValue | undefined; setPropertyValue(alias: string, value: unknown, variantId?: UmbVariantId): Promise; //propertyDataByAlias(alias: string, variantId?: UmbVariantId): Observable; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.stories.ts index e1413712c5..4a32b33fb0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.stories.ts @@ -10,11 +10,12 @@ export default { id: 'umb-workspace-editor', } as Meta; -export const AAAOverview: Story = () => html` -
    Icon slot
    -
    Name slot
    -
    Footer slot
    -
    Actions slot
    - Default slot -
    `; +export const AAAOverview: Story = () => + html` +
    Icon slot
    +
    Name slot
    +
    Footer slot
    +
    Actions slot
    + Default slot +
    `; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-footer/workspace-footer.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-footer/workspace-footer.stories.ts index 7ee012940b..aaa3a2551b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-footer/workspace-footer.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-footer/workspace-footer.stories.ts @@ -11,8 +11,9 @@ export default { id: 'umb-workspace-footer', } as Meta; -export const AAAOverview: Story = () => html` -
    Footer slot
    -
    Actions slot
    -
    `; +export const AAAOverview: Story = () => + html` +
    Footer slot
    +
    Actions slot
    +
    `; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts index 2c3545243c..f599ce2a9f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, CSSResultGroup, html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbWorkspaceData } from '@umbraco-cms/backoffice/modal'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts index 1833da3221..1d244f479d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts @@ -1,5 +1,5 @@ import { css, html, LitElement, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; /** * @element umb-workspace-property-layout @@ -83,9 +83,9 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement { grid-column: span 2; } /*@container (width > 600px) {*/ - :host(:not([orientation='vertical'])) > div { - grid-column: span 1; - } + :host(:not([orientation='vertical'])) > div { + grid-column: span 1; + } /*}*/ #headerColumn { @@ -93,10 +93,10 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement { height: min-content; } /*@container (width > 600px) {*/ - #headerColumn { - position: sticky; - top: calc(var(--uui-size-space-2) * -1); - } + #headerColumn { + position: sticky; + top: calc(var(--uui-size-space-2) * -1); + } /*}*/ #description { @@ -107,9 +107,9 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement { margin-top: var(--uui-size-space-3); } /*@container (width > 600px) {*/ - #editorColumn { - margin-top: 0; - } + #editorColumn { + margin-top: 0; + } /*}*/ `, ]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts index eeb0ff8842..9dce8c495a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts @@ -10,11 +10,10 @@ export default { id: 'umb-workspace-property-layout', } as Meta; -export const AAAOverview: Story = () => html` -
    Menu
    +export const AAAOverview: Story = () => + html` +
    Menu
    -
    Editor
    -
    `; +
    Editor
    +
    `; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.element.ts index dfd8b7398e..5f222c1e31 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.element.ts @@ -1,5 +1,5 @@ import { UmbWorkspaceSplitViewContext } from './workspace-split-view.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -27,10 +27,7 @@ export class UmbWorkspaceSplitViewElement extends UmbLitElement { render() { return html` - + diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace.element.ts index 76606f6b30..8a1c82d92e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { ManifestWorkspace } from '@umbraco-cms/backoffice/extension-registry'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/reload.action.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/reload.action.ts index c9b3240133..95ef56cffa 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/reload.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/reload.action.ts @@ -1,5 +1,5 @@ import { UmbDictionaryRepository } from '../repository/dictionary.repository.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action'; import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.store.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.store.ts index 9bb616d6e0..44347b97fb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.store.ts @@ -15,7 +15,7 @@ export class UmbDictionaryStore extends UmbStoreBase { super( host, UMB_DICTIONARY_STORE_CONTEXT_TOKEN.toString(), - new UmbArrayState([], (x) => x.id) + new UmbArrayState([], (x) => x.id), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/document-blueprint.detail.store.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/document-blueprint.detail.store.ts index 97f8eb0a96..fad4dafbc3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/document-blueprint.detail.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/document-blueprint.detail.store.ts @@ -17,7 +17,7 @@ export class UmbDocumentBlueprintStore extends UmbStoreBase { UMB_DOCUMENT_BLUEPRINT_STORE_CONTEXT_TOKEN.toString(), // TODO: use the right type: - new UmbArrayState([], (x) => x.id) + new UmbArrayState([], (x) => x.id), ); } @@ -97,5 +97,5 @@ export class UmbDocumentBlueprintStore extends UmbStoreBase { } export const UMB_DOCUMENT_BLUEPRINT_STORE_CONTEXT_TOKEN = new UmbContextToken( - 'UmbDocumentBlueprintStore' + 'UmbDocumentBlueprintStore', ); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/entity-actions/create/modal/index.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/entity-actions/create/modal/index.ts index 25864e9b3b..d5e5161ad0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/entity-actions/create/modal/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/entity-actions/create/modal/index.ts @@ -9,5 +9,5 @@ export const UMB_DOCUMENT_TYPE_CREATE_OPTIONS_MODAL = new UmbModalToken = []; @property({ type: Array }) diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/repository/sources/document.server.data.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/repository/sources/document.server.data.ts index 98acdb0944..1f26836858 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/repository/sources/document.server.data.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/repository/sources/document.server.data.ts @@ -117,7 +117,6 @@ export class UmbDocumentServerDataSource return tryExecuteAndNotify(this.#host, DocumentResource.putDocumentById({ id, requestBody })); } - /** * Publish one or more variants of a Document * @param {string} id diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/user-permissions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/user-permissions/manifests.ts index b1460257c6..6269ef72e6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/user-permissions/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/user-permissions/manifests.ts @@ -195,8 +195,7 @@ export const granularPermissions: Array = [ type: 'userGranularPermission', alias: 'Umb.UserGranularPermission.Document', name: 'Document Granular User Permission', - js: () => - import('../components/input-document-granular-permission/input-document-granular-permission.element.js'), + js: () => import('../components/input-document-granular-permission/input-document-granular-permission.element.js'), meta: { entityType: 'document', }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-editor.element.ts index 5145be6ade..9942b7faca 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-editor.element.ts @@ -1,6 +1,6 @@ import { UmbDocumentWorkspaceSplitViewElement } from './document-workspace-split-view.element.js'; import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from './document-workspace.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { customElement, state, css, html } from '@umbraco-cms/backoffice/external/lit'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import type { UmbRoute, UmbRouterSlotInitEvent } from '@umbraco-cms/backoffice/router'; @@ -43,7 +43,7 @@ export class UmbDocumentWorkspaceEditorElement extends UmbLitElement { this._availableVariants = variants; this._generateRoutes(); }, - '_observeVariants' + '_observeVariants', ); } @@ -54,7 +54,7 @@ export class UmbDocumentWorkspaceEditorElement extends UmbLitElement { (variants) => { this._workspaceSplitViews = variants; }, - '_observeSplitViews' + '_observeSplitViews', ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-split-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-split-view.element.ts index 966f21ca45..5a72966566 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-split-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace-split-view.element.ts @@ -1,5 +1,5 @@ import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from './document-workspace.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, state, repeat } from '@umbraco-cms/backoffice/external/lit'; import { ActiveVariant } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -28,7 +28,7 @@ export class UmbDocumentWorkspaceSplitViewElement extends UmbLitElement { (variants) => { this._variants = variants; }, - '_observeActiveVariantsInfo' + '_observeActiveVariantsInfo', ); } @@ -44,7 +44,7 @@ export class UmbDocumentWorkspaceSplitViewElement extends UmbLitElement { alias="Umb.Workspace.Document" .splitViewIndex=${view.index} .displayNavigation=${view.index === this._variants!.length - 1}> - ` + `, )} diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts index fe551aeef5..2d0977fdb4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts @@ -24,7 +24,9 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; type EntityType = DocumentResponseModel; export class UmbDocumentWorkspaceContext extends UmbEditableWorkspaceContextBase - implements UmbVariantableWorkspaceContextInterface, UmbPublishableWorkspaceContextInterface + implements + UmbVariantableWorkspaceContextInterface, + UmbPublishableWorkspaceContextInterface { /** * The document is the current stored version of the document. @@ -204,19 +206,18 @@ export class UmbDocumentWorkspaceContext async delete() { const id = this.getEntityId(); - if(id) { + if (id) { await this.repository.delete(id); } } - public async publish() { // TODO: This might be right to publish all, but we need a method that just publishes a declared range of variants. const currentData = this.#currentData.value; - if(currentData) { + if (currentData) { const variantIds = currentData.variants?.map((x) => UmbVariantId.Create(x)); const id = this.getEntityId(); - if(variantIds && id) { + if (variantIds && id) { await this.repository.publish(id, variantIds); } } @@ -225,10 +226,10 @@ export class UmbDocumentWorkspaceContext public async saveAndPublish() { // TODO: This might be right to publish all, but we need a method that just saves and publishes a declared range of variants. const currentData = this.#currentData.value; - if(currentData) { + if (currentData) { const variantIds = currentData.variants?.map((x) => UmbVariantId.Create(x)); const id = currentData.id; - if(variantIds && id) { + if (variantIds && id) { await this.repository.saveAndPublish(id, currentData, variantIds); } } @@ -237,10 +238,10 @@ export class UmbDocumentWorkspaceContext public async unpublish() { // TODO: This might be right to unpublish all, but we need a method that just publishes a declared range of variants. const currentData = this.#currentData.value; - if(currentData) { + if (currentData) { const variantIds = currentData.variants?.map((x) => UmbVariantId.Create(x)); const id = this.getEntityId(); - if(variantIds && id) { + if (variantIds && id) { await this.repository.unpublish(id, variantIds); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.ts index 43eccabe75..34dcc050ec 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.ts @@ -1,6 +1,6 @@ import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from '../../document-workspace.context.js'; import { css, html, customElement, property, state, repeat } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbContentTypePropertyStructureHelper, PropertyContainerTypes } from '@umbraco-cms/backoffice/content-type'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { PropertyTypeModelBaseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -42,7 +42,10 @@ export class UmbDocumentWorkspaceViewEditPropertiesElement extends UmbLitElement return repeat( this._propertyStructure, (property) => property.alias, - (property) => html` ` + (property) => + html` `, ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.ts index 42a9d2b1dd..ad163ad681 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.ts @@ -1,6 +1,6 @@ import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from '../../document-workspace.context.js'; import { css, html, customElement, property, state, repeat } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbContentTypeContainerStructureHelper } from '@umbraco-cms/backoffice/content-type'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { PropertyTypeContainerModelBaseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -78,12 +78,13 @@ export class UmbDocumentWorkspaceViewEditTabElement extends UmbLitElement { ${repeat( this._groups, (group) => group.name, - (group) => html` - - ` + (group) => + html` + + `, )} `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.ts index e8895445e8..f99c551048 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.ts @@ -138,13 +138,15 @@ export class UmbDocumentInfoWorkspaceViewElement extends UmbLitElement { render() { return html`
    - ${this.#renderLinksSection()} + + ${this.#renderLinksSection()} + ${repeat( this._historyList, (item) => item.timestamp, - (item) => this.#renderHistory(item) + (item) => this.#renderHistory(item), )} ${this.#renderHistoryPagination()} @@ -173,11 +175,14 @@ export class UmbDocumentInfoWorkspaceViewElement extends UmbLitElement { return html`
    ${this.localize.term('content_publishStatus')} - +
    - +
    @@ -198,9 +203,11 @@ export class UmbDocumentInfoWorkspaceViewElement extends UmbLitElement { #renderHistory(history: HistoryNode) { return html` - ${this.#renderTag(history.logType)} ${this.#renderTagDescription(history.logType, history)} + ${this.#renderTag(history.logType)} ${this.#renderTagDescription(history.logType, history)} - + `; @@ -221,15 +228,29 @@ export class UmbDocumentInfoWorkspaceViewElement extends UmbLitElement { #renderTag(type?: HistoryLogType) { switch (type) { case 'Publish': - return html``; + return html``; case 'Unpublish': - return html``; + return html``; case 'Save': - return html``; + return html``; case 'ContentVersionEnableCleanup': - return html``; + return html``; case 'ContentVersionPreventCleanup': - return html``; + return html``; default: return 'Could not detect log type'; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts index 5f1e9c938a..066987a82b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check-dashboard.context.ts @@ -35,5 +35,5 @@ export class UmbHealthCheckDashboardContext { } export const UMB_HEALTHCHECK_DASHBOARD_CONTEXT_TOKEN = new UmbContextToken( - 'UmbHealthCheckDashboardContext' + 'UmbHealthCheckDashboardContext', ); diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check.context.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check.context.ts index ad1c9cff8b..513b6cff46 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/health-check.context.ts @@ -34,7 +34,7 @@ export class UmbHealthCheckContext { async checkGroup(name: string) { const { data } = await tryExecuteAndNotify( this.host, - HealthCheckResource.postHealthCheckGroupByNameCheck({ name }) + HealthCheckResource.postHealthCheckGroupByNameCheck({ name }), ); if (data) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-action.element.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-action.element.ts index 404d4f1bc4..64a88ecd85 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-action.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-action.element.ts @@ -19,7 +19,7 @@ export class UmbDashboardHealthCheckActionElement extends UmbLitElement { this._buttonState = 'waiting'; const { error } = await tryExecuteAndNotify( this, - HealthCheckResource.postHealthCheckExecuteAction({ requestBody: this.action }) + HealthCheckResource.postHealthCheckExecuteAction({ requestBody: this.action }), ); if (error) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group-box-overview.element.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group-box-overview.element.ts index 33f8a59cc2..45c6c6fac2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group-box-overview.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group-box-overview.element.ts @@ -3,7 +3,7 @@ import { UMB_HEALTHCHECK_DASHBOARD_CONTEXT_TOKEN, UmbHealthCheckDashboardContext, } from '../health-check-dashboard.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { ensureSlash, path } from '@umbraco-cms/backoffice/router'; import type { ManifestHealthCheck } from '@umbraco-cms/backoffice/extension-registry'; @@ -33,10 +33,14 @@ export class UmbHealthCheckGroupBoxOverviewElement extends UmbLitElement { if (!this._healthCheckContext || !this.manifest?.meta.label) return; this._api = this._healthCheckContext?.apis.get(this.manifest?.meta.label); - if(this._api) { - this.observe(this._api.results, (results) => { - this._keyResults = results; - }, '_observeApiResults'); + if (this._api) { + this.observe( + this._api.results, + (results) => { + this._keyResults = results; + }, + '_observeApiResults', + ); } }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts index e7493d4d48..c73a87c193 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/health-check/views/health-check-group.element.ts @@ -47,7 +47,7 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { this._api = this._healthCheckContext?.apis.get(this.groupName); - if(this._api) { + if (this._api) { this._api.getGroupChecks(this.groupName); this.observe(this._api.checks, (group) => { @@ -58,7 +58,6 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { this.observe(this._api.results, (results) => { this._idResults = results?.checks; }); - } }); } @@ -161,7 +160,7 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement { (action) => html` this._buttonHandler()}>` + @action-executed=${() => this._buttonHandler()}>`, )}
    `; else return nothing; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.element.ts index 60ae7949b6..57e66e65c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.element.ts @@ -1,5 +1,5 @@ import { UmbDonutSliceElement } from './donut-slice.element.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, @@ -149,7 +149,7 @@ export class UmbDonutChartElement extends LitElement { name: slice.name, kind: slice.kind, }; - }) + }), ); } @@ -258,7 +258,7 @@ export class UmbDonutChartElement extends LitElement { role="listitem" d="${circle.commands}" transform="rotate(${circle.offset} ${this.viewBox / 2} ${this.viewBox / 2})"> - ` + `, )} `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.stories.ts index 61351f9134..328aa86b92 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/donut-chart/donut-chart.stories.ts @@ -11,10 +11,11 @@ export default { tags: ['autodocs'], } as Meta; -export const AAAOverview = () => html` - - - - -`; +export const AAAOverview = () => + html` + + + + + `; AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/log-viewer-date-range-selector.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/log-viewer-date-range-selector.element.ts index b296e0f4c6..23e3587136 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/log-viewer-date-range-selector.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/components/log-viewer-date-range-selector.element.ts @@ -3,7 +3,7 @@ import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN, } from '../workspace/logviewer.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, queryAll, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { query as getQuery, path, toQueryString } from '@umbraco-cms/backoffice/router'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/repository/sources/log-viewer.server.data.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/repository/sources/log-viewer.server.data.ts index 1125cbf0e7..ee635d5f85 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/repository/sources/log-viewer.server.data.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/repository/sources/log-viewer.server.data.ts @@ -57,7 +57,7 @@ export class UmbLogSearchesServerDataSource implements LogSearchDataSource { async postLogViewerSavedSearch({ name, query }: SavedLogSearchResponseModel) { return await tryExecuteAndNotify( this.#host, - LogViewerResource.postLogViewerSavedSearch({ requestBody: { name, query } }) + LogViewerResource.postLogViewerSavedSearch({ requestBody: { name, query } }), ); } /** @@ -114,7 +114,7 @@ export class UmbLogMessagesServerDataSource implements LogMessagesDataSource { LogViewerResource.getLogViewerLevelCount({ startDate, endDate, - }) + }), ); } /** @@ -167,7 +167,7 @@ export class UmbLogMessagesServerDataSource implements LogMessagesDataSource { logLevel, startDate, endDate, - }) + }), ); } /** @@ -205,7 +205,7 @@ export class UmbLogMessagesServerDataSource implements LogMessagesDataSource { take, startDate, endDate, - }) + }), ); } @@ -215,7 +215,7 @@ export class UmbLogMessagesServerDataSource implements LogMessagesDataSource { LogViewerResource.getLogViewerValidateLogsSize({ startDate, endDate, - }) + }), ); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/logviewer/logviewer-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/logviewer/logviewer-workspace.element.ts index 1fb940c3c5..0cec2b21d7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/logviewer/logviewer-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/logviewer/logviewer-workspace.element.ts @@ -2,7 +2,7 @@ import '../../components/index.js'; import { UmbLogViewerWorkspaceContext } from '../logviewer.context.js'; import { PropertyValueMap, css, html, customElement } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; //TODO make uui-input accept min and max values diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-log-types-chart.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-log-types-chart.element.ts index 9f20a35e6c..e42b852e00 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-log-types-chart.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-log-types-chart.element.ts @@ -74,7 +74,7 @@ export class UmbLogViewerLogTypesChartElement extends UmbLitElement { style="color: var(--umb-log-viewer-${level.toLowerCase()}-color);">${level} - ` + `, ) : ''} @@ -87,7 +87,7 @@ export class UmbLogViewerLogTypesChartElement extends UmbLitElement { .name=${level} .amount=${number} .kind=${'messages'} - .color="${`var(--umb-log-viewer-${level.toLowerCase()}-color)`}"> ` + .color="${`var(--umb-log-viewer-${level.toLowerCase()}-color)`}"> `, ) : ''} diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-message-templates-overview.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-message-templates-overview.element.ts index b617326c79..8064a1f091 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-message-templates-overview.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-message-templates-overview.element.ts @@ -1,5 +1,5 @@ import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN } from '../../../logviewer.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { PagedLogTemplateResponseModel, SavedLogSearchResponseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -60,12 +60,12 @@ export class UmbLogViewerMessageTemplatesOverviewElement extends UmbLitElement { ${template.messageTemplate} ${template.count} - ` + `, ) : ''} diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-saved-searches-overview.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-saved-searches-overview.element.ts index 2ed28e1603..d907382832 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-saved-searches-overview.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/components/log-viewer-saved-searches-overview.element.ts @@ -1,5 +1,5 @@ import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN } from '../../../logviewer.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { SavedLogSearchResponseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -33,7 +33,9 @@ export class UmbLogViewerSavedSearchesOverviewElement extends UmbLitElement { + href=${`section/settings/workspace/logviewer/view/search/?lq=${encodeURIComponent( + searchListItem.query ?? '', + )}`}> ${searchListItem.name} `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/log-overview-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/log-overview-view.element.ts index 312ba162f1..f0f66462d7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/log-overview-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/overview/log-overview-view.element.ts @@ -53,7 +53,7 @@ export class UmbLogViewerOverviewViewElement extends UmbLitElement {

    ${this._errorCount}

    diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-log-level-filter-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-log-level-filter-menu.element.ts index 39591c5804..b2c413d5c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-log-level-filter-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-log-level-filter-menu.element.ts @@ -73,7 +73,7 @@ export class UmbLogViewerLogLevelFilterMenuElement extends UmbLitElement { .value=${logLevel} label="${logLevel}"> - ` + `, )} Select all - `https://github.com/umbraco/Umbraco-CMS/search?q=${ - this.properties.find((property) => property.name === 'SourceContext')?.value - }`, + `https://github.com/umbraco/Umbraco-CMS/search?q=${this.properties.find( + (property) => property.name === 'SourceContext', + )?.value}`, icon: 'https://github.githubassets.com/favicon.ico', }, { label: 'Search Umbraco Issues', title: 'Search Umbraco Issues on Github', href: () => - `https://github.com/umbraco/Umbraco-CMS/issues?q=${ - this.properties.find((property) => property.name === 'SourceContext')?.value - }`, + `https://github.com/umbraco/Umbraco-CMS/issues?q=${this.properties.find( + (property) => property.name === 'SourceContext', + )?.value}`, icon: 'https://github.githubassets.com/favicon.ico', }, ]; @@ -175,7 +175,7 @@ export class UmbLogViewerMessageElement extends UmbLitElement { ` : ''}
    - ` + `, )} @@ -193,7 +193,7 @@ export class UmbLogViewerMessageElement extends UmbLitElement { - ` + `, )} @@ -253,7 +253,12 @@ export class UmbLogViewerMessageElement extends UmbLitElement { border-left: 4px solid #d42054; color: #303033; display: block; - font-family: Lato, Helvetica Neue, Helvetica, Arial, sans-serif; + font-family: + Lato, + Helvetica Neue, + Helvetica, + Arial, + sans-serif; line-height: 20px; overflow-x: auto; padding: 9.5px; diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-messages-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-messages-list.element.ts index c676e20190..24514ffe97 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-messages-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-messages-list.element.ts @@ -79,13 +79,14 @@ export class UmbLogViewerMessagesListElement extends UmbLitElement { #renderLogs() { return html`${this._logs.length > 0 ? html` ${this._logs.map( - (log) => html`` + (log) => + html``, )}` : html` diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-polling-button.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-polling-button.element.ts index 38b6071a98..88fc66dfbc 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-polling-button.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-polling-button.element.ts @@ -78,7 +78,7 @@ export class UmbLogViewerPollingButtonElement extends UmbLitElement { (interval: PoolingInterval) => html` this.#setPolingInterval(interval)}>` + @click-label=${() => this.#setPolingInterval(interval)}>`, )} diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-search-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-search-input.element.ts index 84638fdab1..5cc58ae40e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-search-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/components/log-viewer-search-input.element.ts @@ -1,9 +1,5 @@ import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN } from '../../../logviewer.context.js'; -import { - UUIInputElement, - UUIPopoverElement, - UUISymbolExpandElement, -} from '@umbraco-cms/backoffice/external/uui'; +import { UUIInputElement, UUIPopoverElement, UUISymbolExpandElement } from '@umbraco-cms/backoffice/external/uui'; import { css, html, customElement, query, state } from '@umbraco-cms/backoffice/external/lit'; import { Subject, debounceTime, tap } from '@umbraco-cms/backoffice/external/rxjs'; import { SavedLogSearchResponseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -26,7 +22,7 @@ export const UMB_LOG_VIEWER_SAVE_SEARCH_MODAL = new UmbModalToken (this._showLoader = true)), - debounceTime(250) + debounceTime(250), ) .subscribe((query) => { this.#logViewerContext?.setFilterExpression(query); @@ -202,7 +198,7 @@ export class UmbLogViewerSearchInputElement extends UmbLitElement { @click=${() => this.#removeSearch(search.name ?? '')} > - ` + `, )} diff --git a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/log-search-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/log-search-view.element.ts index 50f44e253c..0bf2df6d26 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/log-search-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/log-viewer/workspace/views/search/log-search-view.element.ts @@ -1,5 +1,5 @@ import { UmbLogViewerWorkspaceContext, UMB_APP_LOG_VIEWER_CONTEXT_TOKEN } from '../../logviewer.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbObserverController } from '@umbraco-cms/backoffice/observable-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/collection-view-media-test.element.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/collection-view-media-test.element.ts index 8c955554b5..5f7e819253 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/collection-view-media-test.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/collection-view-media-test.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, customElement } from '@umbraco-cms/backoffice/external/lit'; @customElement('umb-collection-view-media-test') diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/manifests.ts index 875a88e8e4..8c740473ba 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/collection-view/manifests.ts @@ -12,10 +12,12 @@ export const manifests: Array = [ icon: 'icon-grid', pathName: 'grid', }, - conditions: [{ - alias: 'Umb.Condition.WorkspaceEntityType', - match: 'media', - }], + conditions: [ + { + alias: 'Umb.Condition.WorkspaceEntityType', + match: 'media', + }, + ], }, { type: 'collectionView', @@ -28,10 +30,12 @@ export const manifests: Array = [ icon: 'icon-box', pathName: 'table', }, - conditions: [{ - alias: 'Umb.Condition.WorkspaceEntityType', - match: 'media', - }], + conditions: [ + { + alias: 'Umb.Condition.WorkspaceEntityType', + match: 'media', + }, + ], }, { type: 'collectionView', @@ -45,9 +49,11 @@ export const manifests: Array = [ icon: 'icon-newspaper', pathName: 'test', }, - conditions: [{ - alias: 'Umb.Condition.WorkspaceEntityType', - match: 'media', - }], + conditions: [ + { + alias: 'Umb.Condition.WorkspaceEntityType', + match: 'media', + }, + ], }, ]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/dashboards/welcome/dashboard-members-welcome.element.ts b/src/Umbraco.Web.UI.Client/src/packages/members/dashboards/welcome/dashboard-members-welcome.element.ts index b118420c58..968ed6264b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/dashboards/welcome/dashboard-members-welcome.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/dashboards/welcome/dashboard-members-welcome.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, customElement } from '@umbraco-cms/backoffice/external/lit'; @customElement('umb-dashboard-members-welcome') diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace-editor.element.ts index e2cee65faf..5006df28c2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace-editor.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace.element.ts index 076a6fb87b..095dc14a9a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/member-types/workspace/member-type-workspace.element.ts @@ -1,6 +1,6 @@ import { UmbMemberTypeWorkspaceEditorElement } from './member-type-workspace-editor.element.js'; import { UmbMemberTypeWorkspaceContext } from './member-type-workspace.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbRoute } from '@umbraco-cms/backoffice/router'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/members/workspace/member-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/members/members/workspace/member-workspace-editor.element.ts index 459761660a..1ff638ebc6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/members/workspace/member-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/members/workspace/member-workspace-editor.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, customElement } from '@umbraco-cms/backoffice/external/lit'; @customElement('umb-member-workspace-editor') diff --git a/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts b/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts index c2669f2ab3..39a109eb1e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts @@ -1,11 +1,7 @@ import type { UmbInputDocumentElement } from '../../../documents/documents/components/input-document/input-document.element.js'; import type { UmbInputMediaElement } from '../../../media/media/components/input-media/input-media.element.js'; import type { UmbInputLanguagePickerElement } from '../../../settings/languages/components/input-language-picker/input-language-picker.element.js'; -import { - UUIBooleanInputEvent, - UUIInputElement, - UUIInputEvent, -} from '@umbraco-cms/backoffice/external/uui'; +import { UUIBooleanInputEvent, UUIInputElement, UUIInputEvent } from '@umbraco-cms/backoffice/external/uui'; import { css, html, @@ -70,7 +66,7 @@ export class UmbWorkspacePackageBuilderElement extends UmbLitElement { if (!this.#nameDefined()) return; const response = await tryExecuteAndNotify( this, - PackageResource.postPackageCreated({ requestBody: this._package }) + PackageResource.postPackageCreated({ requestBody: this._package }), ); if (!response.data || response.error) return; this._package = response.data as PackageDefinitionResponseModel; @@ -82,7 +78,7 @@ export class UmbWorkspacePackageBuilderElement extends UmbLitElement { if (!this._package?.id) return; const response = await tryExecuteAndNotify( this, - PackageResource.putPackageCreatedById({ id: this._package.id, requestBody: this._package }) + PackageResource.putPackageCreatedById({ id: this._package.id, requestBody: this._package }), ); if (response.error) return; diff --git a/src/Umbraco.Web.UI.Client/src/packages/packages/package-repo/workspace/workspace-package.element.ts b/src/Umbraco.Web.UI.Client/src/packages/packages/package-repo/workspace/workspace-package.element.ts index 9f5e3b2ce0..6ba1506a7b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/packages/package-repo/workspace/workspace-package.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/packages/package-repo/workspace/workspace-package.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, LitElement, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; @customElement('umb-workspace-package') diff --git a/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/created/packages-created-overview.element.ts b/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/created/packages-created-overview.element.ts index cfd9965b0e..ab51364ed1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/created/packages-created-overview.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/created/packages-created-overview.element.ts @@ -70,7 +70,7 @@ export class UmbPackagesCreatedOverviewElement extends UmbLitElement { ${repeat( this._createdPackages, (item) => item.id, - (item) => this.#renderPackageItem(item) + (item) => this.#renderPackageItem(item), )} `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/installed/installed-packages-section-view-item.element.ts b/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/installed/installed-packages-section-view-item.element.ts index 1f1368c421..3cf99e8cb6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/installed/installed-packages-section-view-item.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/packages/package-section/views/installed/installed-packages-section-view-item.element.ts @@ -62,7 +62,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { umbExtensionsRegistry.extensionsOfType('packageView').pipe( map((extensions) => { return extensions.filter((extension) => extension.meta.packageName === this.#name); - }) + }), ), (manifests) => { if (manifests.length === 0) { @@ -71,7 +71,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { } this._packageView = manifests[0]; }, - '_observePackageViewExtension' + '_observePackageViewExtension', ); } @@ -89,7 +89,7 @@ export class UmbInstalledPackagesSectionViewItemElement extends UmbLitElement { this._migrationButtonState = 'waiting'; const { error } = await tryExecuteAndNotify( this, - PackageResource.postPackageByNameRunMigration({ name: this.name }) + PackageResource.postPackageByNameRunMigration({ name: this.name }), ); if (error) return; this.#notificationContext?.peek('positive', { data: { message: 'Migrations completed' } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/modal-views/fields-settings.element.ts b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/modal-views/fields-settings.element.ts index 8b26180371..8846a82fd1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/modal-views/fields-settings.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/modal-views/fields-settings.element.ts @@ -8,10 +8,10 @@ import { import { ManifestModal, UmbModalExtensionElement } from '@umbraco-cms/backoffice/extension-registry'; @customElement('umb-examine-fields-settings-modal') -export default class UmbExamineFieldsSettingsModalElement extends UmbModalBaseElement< - UmbExamineFieldsSettingsModalData, - UmbExamineFieldsSettingsModalValue -> implements UmbModalExtensionElement{ +export default class UmbExamineFieldsSettingsModalElement + extends UmbModalBaseElement + implements UmbModalExtensionElement +{ @state() private _fields?: UmbExamineFieldsSettingsModalData; diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-indexers.ts b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-indexers.ts index e0b85698f3..b8ee3e86bb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-indexers.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-indexers.ts @@ -44,7 +44,7 @@ export class UmbDashboardExamineIndexElement extends UmbLitElement { private async _getIndexData() { const { data } = await tryExecuteAndNotify( this, - IndexerResource.getIndexerByIndexName({ indexName: this.indexName }) + IndexerResource.getIndexerByIndexName({ indexName: this.indexName }), ); this._indexData = data; @@ -76,7 +76,7 @@ export class UmbDashboardExamineIndexElement extends UmbLitElement { this._buttonState = 'waiting'; const { error } = await tryExecuteAndNotify( this, - IndexerResource.postIndexerByIndexNameRebuild({ indexName: this.indexName }) + IndexerResource.postIndexerByIndexNameRebuild({ indexName: this.indexName }), ); if (error) { this._buttonState = 'failed'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-overview.ts b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-overview.ts index 6bfc918485..38ea3ca2e8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-overview.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-overview.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-searchers.ts b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-searchers.ts index f80ee143c8..edd5cf127a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-searchers.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/examine-management-dashboard/views/section-view-examine-searchers.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, state, query, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbModalManagerContext, @@ -67,7 +67,7 @@ export class UmbDashboardExamineSearcherElement extends UmbLitElement { term: this._searchInput.value, take: 100, skip: 0, - }) + }), ); this._searchResults = data?.items ?? []; diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts index 6e772b8731..a1bc0bfa11 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts @@ -43,4 +43,4 @@ export const manifests: Array = [ name: 'Examine Field Settings Modal', js: () => import('./examine-management-dashboard/views/modal-views/fields-settings.element.js'), }, -]; \ No newline at end of file +]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/search-modal/search-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/search/search-modal/search-modal.element.ts index 8c7ee1c69a..f7f0f2fc4e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/search-modal/search-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/search-modal/search-modal.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, @@ -97,7 +97,7 @@ export class UmbSearchModalElement extends LitElement { ? repeat( this._groups, (group) => group.name, - (group) => this.#renderGroup(group.name, group.items) + (group) => this.#renderGroup(group.name, group.items), ) : html`
    Only mock data for now Search for blog
    `} ` diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/umb-search-header-app.element.ts b/src/Umbraco.Web.UI.Client/src/packages/search/umb-search-header-app.element.ts index a4f4d1a4ae..4c0ab780bb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/search/umb-search-header-app.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/search/umb-search-header-app.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, CSSResultGroup, html, customElement } from '@umbraco-cms/backoffice/external/lit'; import { UmbModalManagerContext, UMB_MODAL_MANAGER_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/modal'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/models-builder/dashboard-models-builder.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/models-builder/dashboard-models-builder.element.ts index c775b14110..b448af70af 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/models-builder/dashboard-models-builder.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/models-builder/dashboard-models-builder.element.ts @@ -170,7 +170,6 @@ export class UmbDashboardModelsBuilderElement extends UmbLitElement { ]; } - export default UmbDashboardModelsBuilderElement; declare global { diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.element.ts index 1824c4fa1a..667a5553cc 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.element.ts @@ -105,7 +105,9 @@ export class UmbDashboardTelemetryElement extends UmbLitElement { render() { return html` -

    Consent for telemetry data

    +

    + Consent for telemetry data +

    ${this._renderSettingSlider()} diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/extensions/workspace/extension-root-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/extensions/workspace/extension-root-workspace.element.ts index 329d69eafa..387950c4bc 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/extensions/workspace/extension-root-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/extensions/workspace/extension-root-workspace.element.ts @@ -36,13 +36,13 @@ export class UmbExtensionRootWorkspaceElement extends UmbLitElement { } // Otherwise sort by type return a.type.localeCompare(b.type); - }) - ) + }), + ), ), (extensions) => { this._extensions = extensions || undefined; }, - '_observeExtensionRegistry' + '_observeExtensionRegistry', ); } @@ -75,9 +75,7 @@ export class UmbExtensionRootWorkspaceElement extends UmbLitElement { (extension) => html` ${extension.type} - - ${extension.name} - + ${extension.name} ${extension.alias} ${extension.weight ? extension.weight : ''} @@ -90,7 +88,7 @@ export class UmbExtensionRootWorkspaceElement extends UmbLitElement { - ` + `, )} diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/components/input-language-picker/input-language-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/components/input-language-picker/input-language-picker.element.ts index dc9581841e..dca6d7ac6e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/components/input-language-picker/input-language-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/components/input-language-picker/input-language-picker.element.ts @@ -79,13 +79,13 @@ export class UmbInputLanguagePickerElement extends FormControlMixin(UmbLitElemen this.addValidator( 'rangeUnderflow', () => this.minMessage, - () => !!this.min && this.#pickerContext.getSelection().length < this.min + () => !!this.min && this.#pickerContext.getSelection().length < this.min, ); this.addValidator( 'rangeOverflow', () => this.maxMessage, - () => !!this.max && this.#pickerContext.getSelection().length > this.max + () => !!this.max && this.#pickerContext.getSelection().length > this.max, ); this.observe(this.#pickerContext.selection, (selection) => (super.value = selection.join(','))); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language-item.store.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language-item.store.ts index 2a32378754..b92105c7ff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language-item.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language-item.store.ts @@ -21,7 +21,7 @@ export class UmbLanguageItemStore super( host, UMB_LANGUAGE_ITEM_STORE_CONTEXT_TOKEN.toString(), - new UmbArrayState([], (x) => x.isoCode) + new UmbArrayState([], (x) => x.isoCode), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language.store.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language.store.ts index 95264b06e6..007b231328 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/language.store.ts @@ -19,7 +19,7 @@ export class UmbLanguageStore extends UmbStoreBase { super( host, UMB_LANGUAGE_STORE_CONTEXT_TOKEN.toString(), - new UmbArrayState([], (x) => x.isoCode) + new UmbArrayState([], (x) => x.isoCode), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/sources/language-item.server.data.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/sources/language-item.server.data.ts index e40479d898..9a9392e330 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/sources/language-item.server.data.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/repository/sources/language-item.server.data.ts @@ -29,7 +29,7 @@ export class UmbLanguageItemServerDataSource implements UmbItemDataSource([], (x) => x.id) + new UmbArrayState([], (x) => x.id), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.element.ts index e1a7fd468c..388ccd6dc4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/relation-type-workspace.element.ts @@ -1,5 +1,5 @@ import { UmbRelationTypeWorkspaceContext } from './relation-type-workspace.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbRouterSlotInitEvent, UmbRoute } from '@umbraco-cms/backoffice/router'; @@ -32,7 +32,7 @@ export class UmbRelationTypeWorkspaceElement extends UmbLitElement { new UmbWorkspaceIsNewRedirectController( this, this.#workspaceContext, - this.shadowRoot!.querySelector('umb-router-slot')! + this.shadowRoot!.querySelector('umb-router-slot')!, ); }, }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/components/tags-input/tags-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/components/tags-input/tags-input.element.ts index ecef390ec2..f5600257ff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/components/tags-input/tags-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/components/tags-input/tags-input.element.ts @@ -10,12 +10,7 @@ import { state, repeat, } from '@umbraco-cms/backoffice/external/lit'; -import { - FormControlMixin, - UUIInputElement, - UUIInputEvent, - UUITagElement, -} from '@umbraco-cms/backoffice/external/uui'; +import { FormControlMixin, UUIInputElement, UUIInputEvent, UUITagElement } from '@umbraco-cms/backoffice/external/uui'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { TagResponseModel } from '@umbraco-cms/backoffice/backend-api'; @@ -239,7 +234,7 @@ export class UmbTagsInputElement extends FormControlMixin(UmbLitElement) { @keydown="${(e: KeyboardEvent) => this.#optionKeydown(e, index)}" value="${tag.text}" /> `; - } + }, )}
    `; diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts index 7007becdeb..defb1408d0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts @@ -1,7 +1,7 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts index aefa7c2698..63b675c1c6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts @@ -6,9 +6,9 @@ describe('UmbPropertyEditorUITagsStorageTypeElement', () => { let element: UmbPropertyEditorUITagsStorageTypeElement; beforeEach(async () => { - element = await fixture( - html` ` - ); + element = await fixture(html` + + `); }); it('is defined with its own instance', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 1e72dc3bc4..5d47f69c9c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -1,6 +1,6 @@ import { UmbTagsInputElement } from '../../components/tags-input/tags-input.element.js'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/repository/tag.store.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/repository/tag.store.ts index ffb00a3848..a2fd690952 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/repository/tag.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/repository/tag.store.ts @@ -43,7 +43,7 @@ export class UmbTagStore extends UmbStoreBase { items(group: TagResponseModel['group'], culture: string) { return this._data.asObservablePart((items) => - items.filter((item) => item.group === group && item.culture === culture) + items.filter((item) => item.group === group && item.culture === culture), ); } @@ -59,8 +59,8 @@ export class UmbTagStore extends UmbStoreBase { (item) => item.group === group && item.culture === culture && - item.query?.toLocaleLowerCase().includes(query.toLocaleLowerCase()) - ) + item.query?.toLocaleLowerCase().includes(query.toLocaleLowerCase()), + ), ); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.element.ts index fd1750db69..17234ff0b9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.element.ts @@ -99,9 +99,13 @@ export class UmbCodeEditorElement extends UmbLitElement implements UmbCodeEditor constructor() { super(); this.consumeContext(UMB_THEME_CONTEXT_TOKEN, (instance) => { - this.observe(instance.theme, (themeAlias) => { - this.theme = themeAlias ? this.#translateTheme(themeAlias) : CodeEditorTheme.Light; - }, '_observeTheme'); + this.observe( + instance.theme, + (themeAlias) => { + this.theme = themeAlias ? this.#translateTheme(themeAlias) : CodeEditorTheme.Light; + }, + '_observeTheme', + ); }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.stories.ts index c56a254a31..eac2ec2da2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/code-editor/code-editor.stories.ts @@ -221,7 +221,7 @@ const [Javascript, Css, Html, Razor, Markdown, Typescript, Json]: Story[] = Obje code: codeSnippets[language as CodeEditorLanguage], }, }; - } + }, ); const Themes: Story = { diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/modals/insert-section-modal/insert-section-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/modals/insert-section-modal/insert-section-input.element.ts index 6288dadb9f..427ac228f4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/modals/insert-section-modal/insert-section-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/modals/insert-section-modal/insert-section-input.element.ts @@ -55,7 +55,9 @@ export class UmbInsertSectionCheckboxElement extends UUIBooleanInputElement { render() { return html` ${super.render()} -

    ${this.checked ? html`` : ''}${this.label}

    +

    + ${this.checked ? html`` : ''}${this.label} +

    here goes some description

    diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts index b446ab3943..338cbfa693 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts @@ -1,5 +1,5 @@ import { UmbPartialViewWorkspaceContext } from './partial-view-workspace.context.js'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbRoute, IRoutingInfo, PageComponent } from '@umbraco-cms/backoffice/router'; @@ -29,7 +29,7 @@ export class UmbPartialViewWorkspaceElement extends UmbLitElement { new UmbWorkspaceIsNewRedirectController( this, this.#partialViewWorkspaceContext, - this.shadowRoot!.querySelector('umb-router-slot')! + this.shadowRoot!.querySelector('umb-router-slot')!, ); }, }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/components/template-card/template-card.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/components/template-card/template-card.stories.ts index 6e7bb30ba4..2ef5daf227 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/components/template-card/template-card.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/components/template-card/template-card.stories.ts @@ -30,11 +30,12 @@ export const LongName: Story = { }; export const TemplateCardList: Story = { - render: () => html`
    - - - - -
    `, + render: () => + html`
    + + + + +
    `, }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/modals/query-builder/query-builder-filter.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/modals/query-builder/query-builder-filter.element.ts index fa5d3d9f42..2bdca86df5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/modals/query-builder/query-builder-filter.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/modals/query-builder/query-builder-filter.element.ts @@ -127,7 +127,7 @@ export class UmbQueryBuilderFilterElement extends UmbLitElement { ${this.settings?.properties?.map( (property) => html` - ${property.alias} + ${property.alias} `, )} { - this._history = history; - }, 'umbCurrentUserHistoryObserver'); + this.observe( + this.#currentUserHistoryStore.latestHistory, + (history) => { + this._history = history; + }, + 'umbCurrentUserHistoryObserver', + ); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/current-user/user-profile-apps/user-profile-app-themes.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/current-user/user-profile-apps/user-profile-app-themes.element.ts index 1606a0b8bb..0700f90bb9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/current-user/user-profile-apps/user-profile-app-themes.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/current-user/user-profile-apps/user-profile-app-themes.element.ts @@ -18,13 +18,21 @@ export class UmbUserProfileAppThemesElement extends UmbLitElement { super(); this.consumeContext(UMB_THEME_CONTEXT_TOKEN, (context) => { this.#themeContext = context; - this.observe(context.theme, (themeAlias) => { - this._themeAlias = themeAlias; - }, '_observeCurrentTheme'); + this.observe( + context.theme, + (themeAlias) => { + this._themeAlias = themeAlias; + }, + '_observeCurrentTheme', + ); - this.observe(umbExtensionsRegistry.extensionsOfType('theme'), (themes) => { - this._themes = themes; - }, '_observeThemeExtensions'); + this.observe( + umbExtensionsRegistry.extensionsOfType('theme'), + (themes) => { + this._themes = themes; + }, + '_observeThemeExtensions', + ); }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/collection/components/user-group-table-sections-column-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/collection/components/user-group-table-sections-column-layout.element.ts index 234492f9b8..b49b2f22a8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/collection/components/user-group-table-sections-column-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/collection/components/user-group-table-sections-column-layout.element.ts @@ -21,9 +21,13 @@ export class UmbUserGroupTableSectionsColumnLayoutElement extends UmbLitElement } private observeSectionNames() { - this.observe(umbExtensionsRegistry.extensionsOfType('section'), (sections) => { - this._sectionsNames = sections.filter((x) => this.value.includes(x.alias)).map((x) => x.meta.label || x.name); - }, 'umbUserGroupTableSectionsColumnLayoutObserver'); + this.observe( + umbExtensionsRegistry.extensionsOfType('section'), + (sections) => { + this._sectionsNames = sections.filter((x) => this.value.includes(x.alias)).map((x) => x.meta.label || x.name); + }, + 'umbUserGroupTableSectionsColumnLayoutObserver', + ); } render() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/repository/user-group-item.store.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/repository/user-group-item.store.ts index 248faf4873..4b8731794d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/repository/user-group-item.store.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/repository/user-group-item.store.ts @@ -24,7 +24,7 @@ export class UmbUserGroupItemStore super( host, UMB_USER_GROUP_ITEM_STORE_CONTEXT_TOKEN.toString(), - new UmbArrayState([], (x) => x.id) + new UmbArrayState([], (x) => x.id), ); } @@ -34,5 +34,5 @@ export class UmbUserGroupItemStore } export const UMB_USER_GROUP_ITEM_STORE_CONTEXT_TOKEN = new UmbContextToken( - 'UmbUserGroupItemStore' + 'UmbUserGroupItemStore', ); diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/actions/workspace-action-user-group-save.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/actions/workspace-action-user-group-save.element.ts index ba39d589e1..a973312255 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/actions/workspace-action-user-group-save.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/actions/workspace-action-user-group-save.element.ts @@ -1,6 +1,6 @@ import { UMB_USER_WORKSPACE_CONTEXT } from '../../../user/workspace/user-workspace.context.js'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUIButtonState } from '@umbraco-cms/backoffice/external/uui'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-workspace-action-user-group-save') diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/components/user-group-default-permission-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/components/user-group-default-permission-list.element.ts index 9f85fcfaca..271b089fde 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/components/user-group-default-permission-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/components/user-group-default-permission-list.element.ts @@ -25,15 +25,19 @@ export class UmbUserGroupDefaultPermissionListElement extends UmbLitElement { this.observe( this.#userGroupWorkspaceContext.data, (userGroup) => (this._userGroupDefaultPermissions = userGroup?.permissions), - 'umbUserGroupPermissionsObserver' + 'umbUserGroupPermissionsObserver', ); }); } #observeUserPermissions() { - this.observe(umbExtensionsRegistry.extensionsOfType('userPermission'), (userPermissionManifests) => { - this._entityTypes = [...new Set(userPermissionManifests.map((manifest) => manifest.meta.entityType))]; - }, 'umbUserPermissionsObserver'); + this.observe( + umbExtensionsRegistry.extensionsOfType('userPermission'), + (userPermissionManifests) => { + this._entityTypes = [...new Set(userPermissionManifests.map((manifest) => manifest.meta.entityType))]; + }, + 'umbUserPermissionsObserver', + ); } #onSelectedUserPermission(event: UmbSelectionChangeEvent) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts index e73ca89b3a..74d25d8799 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/components/user-input/user-input.element.ts @@ -85,8 +85,16 @@ export class UmbUserInputElement extends FormControlMixin(UmbLitElement) { () => !!this.max && this.#pickerContext.getSelection().length > this.max, ); - this.observe(this.#pickerContext.selection, (selection) => (super.value = selection.join(',')), 'umbUserInputSelectionObserver'); - this.observe(this.#pickerContext.selectedItems, (selectedItems) => (this._items = selectedItems), 'umbUserInputItemsObserver'); + this.observe( + this.#pickerContext.selection, + (selection) => (super.value = selection.join(',')), + 'umbUserInputSelectionObserver', + ); + this.observe( + this.#pickerContext.selectedItems, + (selectedItems) => (this._items = selectedItems), + 'umbUserInputItemsObserver', + ); } protected getFormElement() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/modals/create/user-create-success-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/modals/create/user-create-success-modal.element.ts index 9012a70162..6b9f3ef9d3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/modals/create/user-create-success-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/modals/create/user-create-success-modal.element.ts @@ -83,18 +83,9 @@ export class UmbUserCreateSuccessModalElement extends UmbModalBaseElement< - + - + `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/item/user-item.server.data-source.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/item/user-item.server.data-source.ts index 962de974f6..fb53ae89d4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/item/user-item.server.data-source.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/repository/item/user-item.server.data-source.ts @@ -1,5 +1,5 @@ import type { UmbItemDataSource } from '@umbraco-cms/backoffice/repository'; -import type { UmbControllerHost} from '@umbraco-cms/backoffice/controller-api'; +import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources'; import { UserItemResponseModel, UserResource } from '@umbraco-cms/backoffice/backend-api'; @@ -34,7 +34,7 @@ export class UmbUserItemServerDataSource implements UmbItemDataSource +export const getDisplayStateFromUserStatus = (status?: UserStateModel): DisplayStatus => userStates - .filter(state => state.key === status)! - .map(state => ({ + .filter((state) => state.key === status)! + .map((state) => ({ ...state, - key:'state'+state.key - }))[0] + key: 'state' + state.key, + }))[0]; diff --git a/src/Umbraco.Web.UI.Client/src/shared/icon-registry/icon.stories.ts b/src/Umbraco.Web.UI.Client/src/shared/icon-registry/icon.stories.ts index ccc11684db..5f9aa40124 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/icon-registry/icon.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/icon-registry/icon.stories.ts @@ -31,7 +31,7 @@ const Template: Story = () => { height: 100%;"> ${icon.name} - ` + `, )} `; diff --git a/src/Umbraco.Web.UI.Client/src/shared/resources/tryExecuteAndNotify.function.ts b/src/Umbraco.Web.UI.Client/src/shared/resources/tryExecuteAndNotify.function.ts index 230be1ba43..47cfeea27a 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/resources/tryExecuteAndNotify.function.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/resources/tryExecuteAndNotify.function.ts @@ -6,7 +6,7 @@ import type { UmbNotificationOptions } from '@umbraco-cms/backoffice/notificatio export function tryExecuteAndNotify( host: UmbControllerHost, resource: Promise, - options?: UmbNotificationOptions + options?: UmbNotificationOptions, ) { return new UmbResourceController(host, resource).tryExecuteAndNotify(options); } diff --git a/src/Umbraco.Web.UI.Client/src/shared/router/generate-route-path-builder.function.ts b/src/Umbraco.Web.UI.Client/src/shared/router/generate-route-path-builder.function.ts index 0f276f4d48..b2fbf53067 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/router/generate-route-path-builder.function.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/router/generate-route-path-builder.function.ts @@ -12,7 +12,7 @@ export function createRoutePathBuilder(path: string) { ? path.replace(PARAM_IDENTIFIER, (substring: string, ...args: string[]) => { return params[args[0]].toString(); }) - : path + : path, ) + '/' ); diff --git a/src/Umbraco.Web.UI.Client/src/shared/style/text-style.style.ts b/src/Umbraco.Web.UI.Client/src/shared/style/text-style.style.ts index 136cff61ac..ae658b0472 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/style/text-style.style.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/style/text-style.style.ts @@ -1,15 +1,14 @@ -import { UUITextStyles } from "@umbraco-cms/backoffice/external/uui"; -import { css } from "@umbraco-cms/backoffice/external/lit"; - +import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui'; +import { css } from '@umbraco-cms/backoffice/external/lit'; export const UmbTextStyles = css` ${UUITextStyles} - a { + a { color: var(--uui-color-interactive); } a:hover, a:focus { color: var(--uui-color-interactive-emphasis); } -` +`; diff --git a/src/Umbraco.Web.UI.Client/src/shared/utils/component-has-manifest-property.function.ts b/src/Umbraco.Web.UI.Client/src/shared/utils/component-has-manifest-property.function.ts index 414e3d81ae..95bb4c05eb 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/utils/component-has-manifest-property.function.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/utils/component-has-manifest-property.function.ts @@ -1,7 +1,7 @@ import { ManifestBase } from '@umbraco-cms/backoffice/extension-api'; export function componentHasManifestProperty( - component: HTMLElement + component: HTMLElement, ): component is HTMLElement & { manifest: ManifestBase } { return component ? 'manifest' in component : false; } diff --git a/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.test.ts b/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.test.ts index 6b35c1bc8d..b18c0c2d30 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.test.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.test.ts @@ -1,15 +1,15 @@ import { expect, oneEvent } from '@open-wc/testing'; import { UmbPaginationManager } from './pagination.manager.js'; import { Observable } from '@umbraco-cms/backoffice/external/rxjs'; -import { UmbChangeEvent } from '@umbraco-cms/backoffice/event' +import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; describe('UmbPaginationManager', () => { let manager: UmbPaginationManager; beforeEach(() => { manager = new UmbPaginationManager(); - manager.setPageSize(10); - manager.setTotalItems(100); + manager.setPageSize(10); + manager.setTotalItems(100); }); describe('Public API', () => { @@ -18,150 +18,154 @@ describe('UmbPaginationManager', () => { expect(manager).to.have.property('pageSize').to.be.an.instanceOf(Observable); }); - it('has a totalItems property', () => { + it('has a totalItems property', () => { expect(manager).to.have.property('totalItems').to.be.an.instanceOf(Observable); }); - it('has a currentPage property', () => { + it('has a currentPage property', () => { expect(manager).to.have.property('currentPage').to.be.an.instanceOf(Observable); }); - it('has a skip property', () => { + it('has a skip property', () => { expect(manager).to.have.property('skip').to.be.an.instanceOf(Observable); }); }); - + describe('methods', () => { it('has a setPageSize method', () => { expect(manager).to.have.property('setPageSize').that.is.a('function'); }); - it('has a getPageSize method', () => { + it('has a getPageSize method', () => { expect(manager).to.have.property('getPageSize').that.is.a('function'); }); - it('has a getTotalItems method', () => { + it('has a getTotalItems method', () => { expect(manager).to.have.property('getTotalItems').that.is.a('function'); }); - it('has a getTotalPages method', () => { + it('has a getTotalPages method', () => { expect(manager).to.have.property('getTotalPages').that.is.a('function'); }); - it('has a getCurrentPageNumber method', () => { + it('has a getCurrentPageNumber method', () => { expect(manager).to.have.property('getCurrentPageNumber').that.is.a('function'); }); - it('has a setCurrentPageNumber method', () => { + it('has a setCurrentPageNumber method', () => { expect(manager).to.have.property('setCurrentPageNumber').that.is.a('function'); }); - it('has a getSkip method', () => { + it('has a getSkip method', () => { expect(manager).to.have.property('getSkip').that.is.a('function'); }); }); }); - describe('Page Size', () => { - it('sets and gets the pageSize value', () => { - manager.setPageSize(5); - expect(manager.getPageSize()).to.equal(5); - }); + describe('Page Size', () => { + it('sets and gets the pageSize value', () => { + manager.setPageSize(5); + expect(manager.getPageSize()).to.equal(5); + }); - it('updates the observable', (done) => { - manager.setPageSize(2); - - manager.pageSize.subscribe((value) => { - expect(value).to.equal(2); - done(); - }) - .unsubscribe(); - }); - }); + it('updates the observable', (done) => { + manager.setPageSize(2); - describe('Total Items', () => { - it('sets and gets the totalItems value', () => { - manager.setTotalItems(200); - expect(manager.getTotalItems()).to.equal(200); - }); + manager.pageSize + .subscribe((value) => { + expect(value).to.equal(2); + done(); + }) + .unsubscribe(); + }); + }); - it('updates the observable', (done) => { - manager.totalItems.subscribe((value) => { - expect(value).to.equal(100); - done(); - }) - .unsubscribe(); - }); + describe('Total Items', () => { + it('sets and gets the totalItems value', () => { + manager.setTotalItems(200); + expect(manager.getTotalItems()).to.equal(200); + }); - it('recalculates the total pages', () => { - expect(manager.getTotalPages()).to.equal(10); - }); + it('updates the observable', (done) => { + manager.totalItems + .subscribe((value) => { + expect(value).to.equal(100); + done(); + }) + .unsubscribe(); + }); - it('it fall backs to the last page number if the totalPages is less than the currentPage', () => { - manager.setCurrentPageNumber(10); - manager.setTotalItems(20); - expect(manager.getCurrentPageNumber()).to.equal(2); - }); - }); + it('recalculates the total pages', () => { + expect(manager.getTotalPages()).to.equal(10); + }); - describe('Current Page', () => { - it('sets and gets the currentPage value', () => { - manager.setCurrentPageNumber(2); - expect(manager.getCurrentPageNumber()).to.equal(2); - }); + it('it fall backs to the last page number if the totalPages is less than the currentPage', () => { + manager.setCurrentPageNumber(10); + manager.setTotalItems(20); + expect(manager.getCurrentPageNumber()).to.equal(2); + }); + }); - it ('cant be set to a value less than 1', () => { - manager.setCurrentPageNumber(0); - expect(manager.getCurrentPageNumber()).to.equal(1); - }); + describe('Current Page', () => { + it('sets and gets the currentPage value', () => { + manager.setCurrentPageNumber(2); + expect(manager.getCurrentPageNumber()).to.equal(2); + }); - it ('cant be set to a value greater than the total pages', () => { - manager.setPageSize(1); - manager.setTotalItems(2); - manager.setCurrentPageNumber(10); - expect(manager.getCurrentPageNumber()).to.equal(2); - }); + it('cant be set to a value less than 1', () => { + manager.setCurrentPageNumber(0); + expect(manager.getCurrentPageNumber()).to.equal(1); + }); - it('updates the observable', (done) => { - manager.setCurrentPageNumber(2); - - manager.currentPage.subscribe((value) => { - expect(value).to.equal(2); - done(); - }) - .unsubscribe(); - }); + it('cant be set to a value greater than the total pages', () => { + manager.setPageSize(1); + manager.setTotalItems(2); + manager.setCurrentPageNumber(10); + expect(manager.getCurrentPageNumber()).to.equal(2); + }); - it('updates the skip value', () => { - manager.setCurrentPageNumber(5); - expect(manager.getSkip()).to.equal(40); - }); + it('updates the observable', (done) => { + manager.setCurrentPageNumber(2); - it('dispatches a change event', async () => { - const listener = oneEvent(manager, UmbChangeEvent.TYPE); - manager.setCurrentPageNumber(2); - const event = (await listener) as unknown as UmbChangeEvent; - const target = event.target as UmbPaginationManager; - expect(event).to.exist; - expect(event.type).to.equal(UmbChangeEvent.TYPE); - expect(target.getCurrentPageNumber()).to.equal(2); - }); - }); + manager.currentPage + .subscribe((value) => { + expect(value).to.equal(2); + done(); + }) + .unsubscribe(); + }); - describe('Skip', () => { - it('gets the skip value', () => { - manager.setCurrentPageNumber(5); - expect(manager.getSkip()).to.equal(40); - }); + it('updates the skip value', () => { + manager.setCurrentPageNumber(5); + expect(manager.getSkip()).to.equal(40); + }); - it('updates the observable', (done) => { - manager.setCurrentPageNumber(5); - - manager.skip.subscribe((value) => { - expect(value).to.equal(40); - done(); - }) - .unsubscribe(); - }); - }); + it('dispatches a change event', async () => { + const listener = oneEvent(manager, UmbChangeEvent.TYPE); + manager.setCurrentPageNumber(2); + const event = (await listener) as unknown as UmbChangeEvent; + const target = event.target as UmbPaginationManager; + expect(event).to.exist; + expect(event.type).to.equal(UmbChangeEvent.TYPE); + expect(target.getCurrentPageNumber()).to.equal(2); + }); + }); + + describe('Skip', () => { + it('gets the skip value', () => { + manager.setCurrentPageNumber(5); + expect(manager.getSkip()).to.equal(40); + }); + + it('updates the observable', (done) => { + manager.setCurrentPageNumber(5); + + manager.skip + .subscribe((value) => { + expect(value).to.equal(40); + done(); + }) + .unsubscribe(); + }); + }); }); diff --git a/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.ts b/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.ts index 5e23a1c8a3..c72384ff88 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/utils/pagination-manager/pagination.manager.ts @@ -1,124 +1,123 @@ -import { UmbChangeEvent } from "@umbraco-cms/backoffice/event"; -import { UmbNumberState } from "@umbraco-cms/backoffice/observable-api"; +import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; +import { UmbNumberState } from '@umbraco-cms/backoffice/observable-api'; export class UmbPaginationManager extends EventTarget { + #pageSize = new UmbNumberState(10); + public readonly pageSize = this.#pageSize.asObservable(); - #pageSize = new UmbNumberState(10); - public readonly pageSize = this.#pageSize.asObservable(); + #totalItems = new UmbNumberState(0); + public readonly totalItems = this.#totalItems.asObservable(); - #totalItems = new UmbNumberState(0); - public readonly totalItems = this.#totalItems.asObservable(); - - #totalPages = new UmbNumberState(0); + #totalPages = new UmbNumberState(0); public readonly totalPages = this.#totalPages.asObservable(); #currentPage = new UmbNumberState(1); public readonly currentPage = this.#currentPage.asObservable(); - #skip = new UmbNumberState(0); - public readonly skip = this.#skip.asObservable(); + #skip = new UmbNumberState(0); + public readonly skip = this.#skip.asObservable(); - /** - * Sets the number of items per page and recalculates the total number of pages - * @param {number} pageSize - * @memberof UmbPaginationManager - */ - public setPageSize(pageSize: number) { - this.#pageSize.next(pageSize); - this.#calculateTotalPages(); - } - - /** - * Gets the number of items per page - * @return {number} - * @memberof UmbPaginationManager - */ - public getPageSize() { - return this.#pageSize.getValue(); - } - - /** - * Gets the total number of items - * @return {number} - * @memberof UmbPaginationManager - */ - public getTotalItems() { - return this.#totalItems.getValue(); - } - - /** - * Sets the total number of items and recalculates the total number of pages - * @param {number} totalItems - * @memberof UmbPaginationManager - */ - public setTotalItems(totalItems: number) { - this.#totalItems.next(totalItems); - this.#calculateTotalPages(); - } - - /** - * Gets the total number of pages - * @return {number} - * @memberof UmbPaginationManager - */ - public getTotalPages() { - return this.#totalPages.getValue(); - } - - /** - * Gets the current page number - * @return {number} - * @memberof UmbPaginationManager - */ - public getCurrentPageNumber() { - return this.#currentPage.getValue(); - } - - /** - * Sets the current page number - * @param {number} pageNumber - * @memberof UmbPaginationManager - */ - public setCurrentPageNumber(pageNumber: number) { - if (pageNumber < 1) { - pageNumber = 1; - } - - if (pageNumber > this.#totalPages.getValue()) { - pageNumber = this.#totalPages.getValue(); - } - - this.#currentPage.next(pageNumber); - this.#calculateSkip(); - this.dispatchEvent(new UmbChangeEvent()); + /** + * Sets the number of items per page and recalculates the total number of pages + * @param {number} pageSize + * @memberof UmbPaginationManager + */ + public setPageSize(pageSize: number) { + this.#pageSize.next(pageSize); + this.#calculateTotalPages(); } - /** - * Gets the number of items to skip - * @return {number} - * @memberof UmbPaginationManager - */ - public getSkip() { - return this.#skip.getValue(); - } + /** + * Gets the number of items per page + * @return {number} + * @memberof UmbPaginationManager + */ + public getPageSize() { + return this.#pageSize.getValue(); + } - /** - * Calculates the total number of pages - * @memberof UmbPaginationManager - */ - #calculateTotalPages() { - const totalPages = Math.ceil(this.#totalItems.getValue() / this.#pageSize.getValue()); - this.#totalPages.next(totalPages); + /** + * Gets the total number of items + * @return {number} + * @memberof UmbPaginationManager + */ + public getTotalItems() { + return this.#totalItems.getValue(); + } - /* If we currently are on a page higher than the total pages. We need to reset the current page to the last page. + /** + * Sets the total number of items and recalculates the total number of pages + * @param {number} totalItems + * @memberof UmbPaginationManager + */ + public setTotalItems(totalItems: number) { + this.#totalItems.next(totalItems); + this.#calculateTotalPages(); + } + + /** + * Gets the total number of pages + * @return {number} + * @memberof UmbPaginationManager + */ + public getTotalPages() { + return this.#totalPages.getValue(); + } + + /** + * Gets the current page number + * @return {number} + * @memberof UmbPaginationManager + */ + public getCurrentPageNumber() { + return this.#currentPage.getValue(); + } + + /** + * Sets the current page number + * @param {number} pageNumber + * @memberof UmbPaginationManager + */ + public setCurrentPageNumber(pageNumber: number) { + if (pageNumber < 1) { + pageNumber = 1; + } + + if (pageNumber > this.#totalPages.getValue()) { + pageNumber = this.#totalPages.getValue(); + } + + this.#currentPage.next(pageNumber); + this.#calculateSkip(); + this.dispatchEvent(new UmbChangeEvent()); + } + + /** + * Gets the number of items to skip + * @return {number} + * @memberof UmbPaginationManager + */ + public getSkip() { + return this.#skip.getValue(); + } + + /** + * Calculates the total number of pages + * @memberof UmbPaginationManager + */ + #calculateTotalPages() { + const totalPages = Math.ceil(this.#totalItems.getValue() / this.#pageSize.getValue()); + this.#totalPages.next(totalPages); + + /* If we currently are on a page higher than the total pages. We need to reset the current page to the last page. This can happen if we have a filter that returns less items than the current page size. */ - if (this.getCurrentPageNumber() > totalPages) { - this.setCurrentPageNumber(totalPages); - } - } - - #calculateSkip() { - const skip = (this.#currentPage.getValue() - 1) * this.#pageSize.getValue(); - this.#skip.next(skip); - } -} \ No newline at end of file + if (this.getCurrentPageNumber() > totalPages) { + this.setCurrentPageNumber(totalPages); + } + } + + #calculateSkip() { + const skip = (this.#currentPage.getValue() - 1) * this.#pageSize.getValue(); + this.#skip.next(skip); + } +} diff --git a/src/Umbraco.Web.UI.Client/src/shared/utils/udi-service.ts b/src/Umbraco.Web.UI.Client/src/shared/utils/udi-service.ts index ae4f84fdc8..a943c6b452 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/utils/udi-service.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/utils/udi-service.ts @@ -18,6 +18,6 @@ export function getKeyFromUdi(udi: string) { return `${withoutHost.substring(0, 8)}-${withoutHost.substring(8, 12)}-${withoutHost.substring( 12, - 16 + 16, )}-${withoutHost.substring(16, 20)}-${withoutHost.substring(20)}`; } From d1cd36c96a19ad99748e1e708a42f01feb7a6ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 11:39:20 +0100 Subject: [PATCH 14/44] Delete button-with-dropdown.stories.ts --- .../button-with-dropdown.stories.ts | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts deleted file mode 100644 index dfedfe440b..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/button-with-dropdown/button-with-dropdown.stories.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Meta, Story } from '@storybook/web-components'; -import { UmbButtonWithDropdownElement } from './button-with-dropdown.element.js'; -import { html } from '@umbraco-cms/backoffice/external/lit'; - -export default { - title: 'Components/Button with dropdown', - component: 'umb-button-with-dropdown', - id: 'umb-button-with-dropdown', -} as Meta; - -export const AAAOverview: Story = () => - html` - Open me -
    I am a dropdown
    -
    `; -AAAOverview.storyName = 'Overview'; From 5d44ea35c1b1205ad7d104111fd8842e7c26eec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 5 Dec 2023 13:38:33 +0100 Subject: [PATCH 15/44] still problem with save, but this is the latest --- src/Umbraco.Web.UI.Client/package-lock.json | 283 ++++++++++++++++-- src/Umbraco.Web.UI.Client/package.json | 2 +- .../variant-context/basic-variant.element.ts | 2 + .../variant-context/basic-variant.test.ts | 11 +- 4 files changed, 266 insertions(+), 32 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/package-lock.json b/src/Umbraco.Web.UI.Client/package-lock.json index bf99307417..131f74a875 100644 --- a/src/Umbraco.Web.UI.Client/package-lock.json +++ b/src/Umbraco.Web.UI.Client/package-lock.json @@ -49,7 +49,7 @@ "@web/dev-server-import-maps": "^0.1.1", "@web/dev-server-rollup": "^0.6.0", "@web/test-runner": "^0.18.0", - "@web/test-runner-playwright": "^0.10.1", + "@web/test-runner-playwright": "^0.11.0", "babel-loader": "^9.1.3", "eslint": "^8.55.0", "eslint-config-prettier": "^9.0.0", @@ -9147,22 +9147,6 @@ "node": ">=18.0.0" } }, - "node_modules/@web/test-runner-chrome/node_modules/@web/test-runner-coverage-v8": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@web/test-runner-coverage-v8/-/test-runner-coverage-v8-0.8.0.tgz", - "integrity": "sha512-PskiucYpjUtgNfR2zF2AWqWwjXL7H3WW/SnCAYmzUrtob7X9o/+BjdyZ4wKbOxWWSbJO4lEdGIDLu+8X2Xw+lA==", - "dev": true, - "dependencies": { - "@web/test-runner-core": "^0.13.0", - "istanbul-lib-coverage": "^3.0.0", - "lru-cache": "^8.0.4", - "picomatch": "^2.2.2", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@web/test-runner-chrome/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -9274,21 +9258,117 @@ "dev": true }, "node_modules/@web/test-runner-coverage-v8": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@web/test-runner-coverage-v8/-/test-runner-coverage-v8-0.7.1.tgz", - "integrity": "sha512-R0laTOxbLg7kVKHCBILEmja3w1ihlwkB+eRc7J06/ByyZoQVWxkM9SrTAUx7qCFI6o738Jj24a6TfIDbu3CwSA==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@web/test-runner-coverage-v8/-/test-runner-coverage-v8-0.8.0.tgz", + "integrity": "sha512-PskiucYpjUtgNfR2zF2AWqWwjXL7H3WW/SnCAYmzUrtob7X9o/+BjdyZ4wKbOxWWSbJO4lEdGIDLu+8X2Xw+lA==", "dev": true, "dependencies": { - "@web/test-runner-core": "^0.11.0", + "@web/test-runner-core": "^0.13.0", "istanbul-lib-coverage": "^3.0.0", "lru-cache": "^8.0.4", "picomatch": "^2.2.2", "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, + "node_modules/@web/test-runner-coverage-v8/node_modules/@web/browser-logs": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@web/browser-logs/-/browser-logs-0.4.0.tgz", + "integrity": "sha512-/EBiDAUCJ2DzZhaFxTPRIznEPeafdLbXShIL6aTu7x73x7ZoxSDv7DGuTsh2rWNMUa4+AKli4UORrpyv6QBOiA==", + "dev": true, + "dependencies": { + "errorstacks": "^2.2.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-coverage-v8/node_modules/@web/dev-server-core": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@web/dev-server-core/-/dev-server-core-0.7.0.tgz", + "integrity": "sha512-1FJe6cJ3r0x0ZmxY/FnXVduQD4lKX7QgYhyS6N+VmIpV+tBU4sGRbcrmeoYeY+nlnPa6p2oNuonk3X5ln/W95g==", + "dev": true, + "dependencies": { + "@types/koa": "^2.11.6", + "@types/ws": "^7.4.0", + "@web/parse5-utils": "^2.1.0", + "chokidar": "^3.4.3", + "clone": "^2.1.2", + "es-module-lexer": "^1.0.0", + "get-stream": "^6.0.0", + "is-stream": "^2.0.0", + "isbinaryfile": "^5.0.0", + "koa": "^2.13.0", + "koa-etag": "^4.0.0", + "koa-send": "^5.0.1", + "koa-static": "^5.0.0", + "lru-cache": "^8.0.4", + "mime-types": "^2.1.27", + "parse5": "^6.0.1", + "picomatch": "^2.2.2", + "ws": "^7.4.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-coverage-v8/node_modules/@web/test-runner-core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.13.0.tgz", + "integrity": "sha512-mUrETPg9n4dHWEk+D46BU3xVhQf+ljT4cG7FSpmF7AIOsXWgWHoaXp6ReeVcEmM5fmznXec2O/apTb9hpGrP3w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.11", + "@types/babel__code-frame": "^7.0.2", + "@types/co-body": "^6.1.0", + "@types/convert-source-map": "^2.0.0", + "@types/debounce": "^1.2.0", + "@types/istanbul-lib-coverage": "^2.0.3", + "@types/istanbul-reports": "^3.0.0", + "@web/browser-logs": "^0.4.0", + "@web/dev-server-core": "^0.7.0", + "chokidar": "^3.4.3", + "cli-cursor": "^3.1.0", + "co-body": "^6.1.0", + "convert-source-map": "^2.0.0", + "debounce": "^1.2.0", + "dependency-graph": "^0.11.0", + "globby": "^11.0.1", + "ip": "^1.1.5", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-report": "^3.0.1", + "istanbul-reports": "^3.0.2", + "log-update": "^4.0.0", + "nanocolors": "^0.2.1", + "nanoid": "^3.1.25", + "open": "^8.0.2", + "picomatch": "^2.2.2", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-coverage-v8/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/@web/test-runner-coverage-v8/node_modules/es-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", + "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", + "dev": true + }, + "node_modules/@web/test-runner-coverage-v8/node_modules/ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + }, "node_modules/@web/test-runner-coverage-v8/node_modules/lru-cache": { "version": "8.0.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", @@ -9298,6 +9378,27 @@ "node": ">=16.14" } }, + "node_modules/@web/test-runner-coverage-v8/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/@web/test-runner-mocha": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/@web/test-runner-mocha/-/test-runner-mocha-0.9.0.tgz", @@ -9437,17 +9538,143 @@ } }, "node_modules/@web/test-runner-playwright": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@web/test-runner-playwright/-/test-runner-playwright-0.10.1.tgz", - "integrity": "sha512-/sEfuKc60UT0gXdn7M6lFddh+nCepO73gLPe2Og7jfoFv2tDkkk41RYBG75jx11RMVOJ6+i1peluLZSVxLlcEg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@web/test-runner-playwright/-/test-runner-playwright-0.11.0.tgz", + "integrity": "sha512-s+f43DSAcssKYVOD9SuzueUcctJdHzq1by45gAnSCKa9FQcaTbuYe8CzmxA21g+NcL5+ayo4z+MA9PO4H+PssQ==", "dev": true, "dependencies": { - "@web/test-runner-core": "^0.11.0", - "@web/test-runner-coverage-v8": "^0.7.0", + "@web/test-runner-core": "^0.13.0", + "@web/test-runner-coverage-v8": "^0.8.0", "playwright": "^1.22.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-playwright/node_modules/@web/browser-logs": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@web/browser-logs/-/browser-logs-0.4.0.tgz", + "integrity": "sha512-/EBiDAUCJ2DzZhaFxTPRIznEPeafdLbXShIL6aTu7x73x7ZoxSDv7DGuTsh2rWNMUa4+AKli4UORrpyv6QBOiA==", + "dev": true, + "dependencies": { + "errorstacks": "^2.2.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-playwright/node_modules/@web/dev-server-core": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@web/dev-server-core/-/dev-server-core-0.7.0.tgz", + "integrity": "sha512-1FJe6cJ3r0x0ZmxY/FnXVduQD4lKX7QgYhyS6N+VmIpV+tBU4sGRbcrmeoYeY+nlnPa6p2oNuonk3X5ln/W95g==", + "dev": true, + "dependencies": { + "@types/koa": "^2.11.6", + "@types/ws": "^7.4.0", + "@web/parse5-utils": "^2.1.0", + "chokidar": "^3.4.3", + "clone": "^2.1.2", + "es-module-lexer": "^1.0.0", + "get-stream": "^6.0.0", + "is-stream": "^2.0.0", + "isbinaryfile": "^5.0.0", + "koa": "^2.13.0", + "koa-etag": "^4.0.0", + "koa-send": "^5.0.1", + "koa-static": "^5.0.0", + "lru-cache": "^8.0.4", + "mime-types": "^2.1.27", + "parse5": "^6.0.1", + "picomatch": "^2.2.2", + "ws": "^7.4.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-playwright/node_modules/@web/test-runner-core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.13.0.tgz", + "integrity": "sha512-mUrETPg9n4dHWEk+D46BU3xVhQf+ljT4cG7FSpmF7AIOsXWgWHoaXp6ReeVcEmM5fmznXec2O/apTb9hpGrP3w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.11", + "@types/babel__code-frame": "^7.0.2", + "@types/co-body": "^6.1.0", + "@types/convert-source-map": "^2.0.0", + "@types/debounce": "^1.2.0", + "@types/istanbul-lib-coverage": "^2.0.3", + "@types/istanbul-reports": "^3.0.0", + "@web/browser-logs": "^0.4.0", + "@web/dev-server-core": "^0.7.0", + "chokidar": "^3.4.3", + "cli-cursor": "^3.1.0", + "co-body": "^6.1.0", + "convert-source-map": "^2.0.0", + "debounce": "^1.2.0", + "dependency-graph": "^0.11.0", + "globby": "^11.0.1", + "ip": "^1.1.5", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-report": "^3.0.1", + "istanbul-reports": "^3.0.2", + "log-update": "^4.0.0", + "nanocolors": "^0.2.1", + "nanoid": "^3.1.25", + "open": "^8.0.2", + "picomatch": "^2.2.2", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@web/test-runner-playwright/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/@web/test-runner-playwright/node_modules/es-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz", + "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==", + "dev": true + }, + "node_modules/@web/test-runner-playwright/node_modules/ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + }, + "node_modules/@web/test-runner-playwright/node_modules/lru-cache": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", + "integrity": "sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==", + "dev": true, + "engines": { + "node": ">=16.14" + } + }, + "node_modules/@web/test-runner-playwright/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/@web/test-runner/node_modules/@web/browser-logs": { diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index 971683b4be..5f591df8cb 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -169,7 +169,7 @@ "@web/dev-server-esbuild": "^0.4.1", "@web/dev-server-import-maps": "^0.1.1", "@web/dev-server-rollup": "^0.6.0", - "@web/test-runner-playwright": "^0.10.1", + "@web/test-runner-playwright": "^0.11.0", "@web/test-runner": "^0.18.0", "babel-loader": "^9.1.3", "eslint-config-prettier": "^9.0.0", diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts index ccc431e95b..60e171aea3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -40,7 +40,9 @@ export class UmbBasicVariantElement extends UmbLitElement { } }); this.observe(this.context.values, () => { + console.log('value change'); if (!this.#silent) { + console.log('value fire event!'); this.dispatchEvent(new UmbChangeEvent()); } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index aa04c5205c..83fb1a2a3d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -31,6 +31,7 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { if (this._alias) { this.dispatchEvent(new UmbChangeEvent()); this.#variantContext?.setPropertyValue(this._alias, value); + this.dispatchEvent(new UmbChangeEvent()); } } @@ -74,8 +75,6 @@ describe('UmbBasicVariantElement', () => { `, ); - await variantElement.updateComplete; - propertyEditor = variantElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; }); @@ -100,15 +99,21 @@ describe('UmbBasicVariantElement', () => { }); it('variant element fires change event', async () => { + console.log('START!'); const listener = oneEvent(variantElement, UmbChangeEvent.TYPE); + expect(propertyEditor.alias).to.eq('testAlias'); propertyEditor.setValue('testValue3'); + console.log('BEFORE!'); const event = (await listener) as unknown as UmbChangeEvent; + console.log('AFTER!', event.target); expect(event).to.exist; + console.log('#1'); expect(event.type).to.eq(UmbChangeEvent.TYPE); - + console.log('#2'); expect(event.target).to.equal(variantElement); + console.log('DONE!'); }); }); }); From 4c6cd987c512140565a62513ddbaf1fd11655b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 11:03:03 +0100 Subject: [PATCH 16/44] Ts fix for workspace modal --- .../core/workspace/workspace-modal/workspace-modal.element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts index f599ce2a9f..b37e725ac3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-modal/workspace-modal.element.ts @@ -5,7 +5,7 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-workspace-modal') export class UmbWorkspaceModalElement extends UmbLitElement { - @property() + @property({ attribute: false }) data?: UmbWorkspaceData; /** @@ -13,7 +13,7 @@ export class UmbWorkspaceModalElement extends UmbLitElement { * */ render() { - return html``; + return this.data ? html`` : ''; } static styles: CSSResultGroup = [ From d610781c99f4fc6a5a4183a9a4ec4d38d7069a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 13:23:25 +0100 Subject: [PATCH 17/44] basic variant --- .../variant-context/basic-variant.element.ts | 63 ++++++++++++++++--- .../variant-context/basic-variant.test.ts | 10 +++ 2 files changed, 64 insertions(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts index 60e171aea3..3f1c6297ce 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -7,43 +7,88 @@ import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; @customElement('umb-basic-variant') export class UmbBasicVariantElement extends UmbLitElement { // A take on only firing events when the value is changed from the outside. - #silent = false; + #silentOnce = true; public readonly context: UmbBasicVariantContext; + /** + * The value of the dataset. + * @returns {Array} + * @memberof UmbBasicVariantElement + * @example + * ```ts + * const dataSet = [ + * { + * alias: 'testAlias', + * value: 'value as a string', + * }, + * { + * alias: 'anotherAlias', + * value: 123, + * } + * ] + * + * html` + * + * + * + * + * ` + * ``` + */ @property({ attribute: false }) public get value(): Array { return this.context.getValues(); } public set value(value: Array) { - this.#silent = true; + this.#silentOnce = true; this.context.setValues(value); - this.#silent = false; } + /** + * The name of the dataset. + * @returns {string} + * @memberof UmbBasicVariantElement + * @example + * ```ts + * html` + * + * ... + * + * ` + */ @property({ attribute: false }) public get name(): string | undefined { return this.context.getName(); } public set name(value: string | undefined) { - this.#silent = true; + this.#silentOnce = true; this.context.setName(value); - this.#silent = false; } constructor() { super(); this.context = new UmbBasicVariantContext(this); this.observe(this.context.name, () => { - if (!this.#silent) { + if (!this.#silentOnce) { + console.log('——— name fire event!'); this.dispatchEvent(new UmbChangeEvent()); + } else { + this.#silentOnce = false; } }); + this.#silentOnce = true; this.observe(this.context.values, () => { - console.log('value change'); - if (!this.#silent) { - console.log('value fire event!'); + if (!this.#silentOnce) { + console.log('——— value fire event!'); this.dispatchEvent(new UmbChangeEvent()); + } else { + this.#silentOnce = false; } }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index 83fb1a2a3d..a47f361e42 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -29,9 +29,13 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { } setValue(value: string) { if (this._alias) { + console.log('# Fire input event....'); this.dispatchEvent(new UmbChangeEvent()); + console.log('# Set the value....'); this.#variantContext?.setPropertyValue(this._alias, value); + console.log('# Fire input event....'); this.dispatchEvent(new UmbChangeEvent()); + console.log('done'); } } @@ -100,8 +104,14 @@ describe('UmbBasicVariantElement', () => { it('variant element fires change event', async () => { console.log('START!'); + + variantElement.addEventListener(UmbChangeEvent.TYPE, (event: any) => { + console.log('EVENT!', event); + }); + const listener = oneEvent(variantElement, UmbChangeEvent.TYPE); + console.log('property editor:', propertyEditor.alias, propertyEditor.getValue()); expect(propertyEditor.alias).to.eq('testAlias'); propertyEditor.setValue('testValue3'); From 7d5ed5b00d45b11ae9530998bf1754f10516a161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 13:23:33 +0100 Subject: [PATCH 18/44] dev mode for testing --- .../apps/auth/src/login.test.ts | 8 +++++--- src/Umbraco.Web.UI.Client/package.json | 1 + .../apps/installer/consent/installer-content.test.ts | 8 +++++--- .../installer/database/installer-database.test.ts | 8 +++++--- .../src/apps/installer/error/installer-error.test.ts | 8 +++++--- .../src/apps/installer/installer.test.ts | 10 +++++++--- .../installing/installer-installing.test.ts | 8 +++++--- .../installer/shared/layout/installer-layout.test.ts | 8 +++++--- .../src/apps/installer/user/installer-user.test.ts | 8 +++++--- .../src/apps/upgrader/upgrader-view.test.ts | 8 +++++--- .../controller-api/controller-host-provider.test.ts | 1 + .../components/extension-slot/extension-slot.test.ts | 8 +++++--- .../core/components/input-color/input-color.test.ts | 8 +++++--- .../core/components/input-date/input-date.test.ts | 8 +++++--- .../input-dropdown/input-dropdown-list.test.ts | 8 +++++--- .../input-eye-dropper/input-eye-dropper.test.ts | 8 +++++--- .../input-number-range/input-number-range.test.ts | 8 +++++--- .../components/input-section/input-section.test.ts | 2 ++ .../common/icon-picker/icon-picker-modal.test.ts | 2 ++ .../default/notification-layout-default.test.ts | 8 +++++--- ...-editor-ui-block-grid-block-configuration.test.ts | 8 +++++--- ...-editor-ui-block-grid-group-configuration.test.ts | 8 +++++--- ...ty-editor-ui-block-grid-stylesheet-picker.test.ts | 8 +++++--- .../block-grid/property-editor-ui-block-grid.test.ts | 8 +++++--- ...-editor-ui-block-list-block-configuration.test.ts | 8 +++++--- .../block-list/property-editor-ui-block-list.test.ts | 8 +++++--- .../property-editor-ui-checkbox-list.test.ts | 8 +++++--- ...i-collection-view-bulk-action-permissions.test.ts | 8 +++++--- ...r-ui-collection-view-column-configuration.test.ts | 8 +++++--- ...r-ui-collection-view-layout-configuration.test.ts | 8 +++++--- ...operty-editor-ui-collection-view-order-by.test.ts | 8 +++++--- .../property-editor-ui-collection-view.test.ts | 8 +++++--- .../property-editor-ui-color-picker.test.ts | 8 +++++--- .../property-editor-ui-date-picker.test.ts | 8 +++++--- .../uis/dropdown/property-editor-ui-dropdown.test.ts | 8 +++++--- .../property-editor-ui-eye-dropper.test.ts | 8 +++++--- .../property-editor-ui-icon-picker.test.ts | 8 +++++--- .../property-editor-ui-image-cropper.test.ts | 8 +++++--- ...perty-editor-ui-image-crops-configuration.test.ts | 12 +++++++----- .../uis/label/property-editor-ui-label.test.ts | 8 +++++--- .../property-editor-ui-markdown-editor.test.ts | 8 +++++--- .../property-editor-ui-media-picker.test.ts | 8 +++++--- .../property-editor-ui-member-group-picker.test.ts | 8 +++++--- .../property-editor-ui-member-picker.test.ts | 8 +++++--- .../property-editor-ui-multi-url-picker.test.ts | 8 +++++--- .../property-editor-ui-multiple-text-string.test.ts | 8 +++++--- .../property-editor-ui-number-range.test.ts | 8 +++++--- .../property-editor-ui-order-direction.test.ts | 8 +++++--- .../property-editor-ui-overlay-size.test.ts | 8 +++++--- .../property-editor-ui-radio-button-list.test.ts | 8 +++++--- .../uis/slider/property-editor-ui-slider.test.ts | 8 +++++--- ...itor-ui-tiny-mce-dimensions-configuration.test.ts | 8 +++++--- ...or-ui-tiny-mce-maximagesize-configuration.test.ts | 8 +++++--- ...tor-ui-tiny-mce-stylesheets-configuration.test.ts | 8 +++++--- ...-editor-ui-tiny-mce-toolbar-configuration.test.ts | 8 +++++--- .../uis/tiny-mce/property-editor-ui-tiny-mce.test.ts | 8 +++++--- .../uis/toggle/property-editor-ui-toggle.test.ts | 8 +++++--- ...property-editor-ui-tree-picker-start-node.test.ts | 8 +++++--- .../property-editor-ui-tree-picker.test.ts | 8 +++++--- .../property-editor-ui-upload-field.test.ts | 8 +++++--- .../property-editor-ui-user-picker.test.ts | 8 +++++--- .../value-type/property-editor-ui-value-type.test.ts | 8 +++++--- .../tree/components/input-tree/input-tree.test.ts | 8 +++++--- .../components/input-document/input-document.test.ts | 8 +++++--- .../media/components/input-media/input-media.test.ts | 8 +++++--- .../property-editor-ui-tags-storage-type.test.ts | 8 +++++--- .../tags/property-editor-ui-tags.test.ts | 8 +++++--- src/Umbraco.Web.UI.Client/web-test-runner.config.mjs | 5 ++++- .../web-test-runner.dev.config.mjs | 9 +++++++++ 69 files changed, 338 insertions(+), 192 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs diff --git a/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts b/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts index 72e7e2ec32..3780c0e63d 100644 --- a/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts +++ b/src/Umbraco.Web.UI.Client/apps/auth/src/login.test.ts @@ -13,7 +13,9 @@ describe('UmbLogin', () => { expect(element).to.be.instanceOf(UmbLoginElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index 9f64902284..baeb1ad72e 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -120,6 +120,7 @@ "storybook:build": "npm run wc-analyze && storybook build", "storybook": "npm run wc-analyze && storybook dev -p 6006", "test:e2e": "npm run auth:test:e2e && npm run backoffice:test:e2e", + "test:dev-watch": "web-test-runner --watch --config ./web-test-runner.dev.config.mjs", "test:watch": "web-test-runner --watch", "test": "web-test-runner --coverage", "wc-analyze:vscode": "wca **/*.element.ts --format vscode --outFile dist-cms/vscode-html-custom-data.json", diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts index 49b15a2982..7f124d1a09 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/consent/installer-content.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerConsentElement', () => { expect(element).to.be.instanceOf(UmbInstallerConsentElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts index 8b3ac910e3..3131ff7a9a 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/database/installer-database.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerDatabaseElement', () => { expect(element).to.be.instanceOf(UmbInstallerDatabaseElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts index 869c5994e6..0cb181e7a8 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/error/installer-error.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerErrorElement', () => { expect(element).to.be.instanceOf(UmbInstallerErrorElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts index f9d4ec231c..8ce9c4dac8 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts @@ -15,7 +15,11 @@ describe('UmbInstallerElement', () => { expect(element).to.be.instanceOf(UmbInstallerElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + console.log(window); + console.log('__UMBRACO_TEST_RUN_A11Y_TEST', (window as any).__UMBRACO_TEST_RUN_A11Y_TEST); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts index 52ef025868..8de7c59b69 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/installing/installer-installing.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerInstallingElement', () => { expect(element).to.be.instanceOf(UmbInstallerInstallingElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts index 620b5d3228..e07bccd65f 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/shared/layout/installer-layout.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerLayoutElement', () => { expect(element).to.be.instanceOf(UmbInstallerLayoutElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts index 5cfd6f54c4..74868a726c 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/user/installer-user.test.ts @@ -15,7 +15,9 @@ describe('UmbInstallerUserElement', () => { expect(element).to.be.instanceOf(UmbInstallerUserElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts b/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts index 923b777107..926830a320 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/upgrader/upgrader-view.test.ts @@ -14,7 +14,9 @@ describe('UmbUpgraderView', () => { expect(element).to.be.instanceOf(UmbUpgraderViewElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts b/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts index 91c4ce6cf9..d60508d55b 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts @@ -40,6 +40,7 @@ describe('UmbControllerHostTestElement', () => { it('provides the context', () => { // Potentially we need to wait a bit here, cause the value might not be set already? as of the context consumption... + expect(consumer).to.be.instanceOf(UmbTestControllerHostInitializerConsumerElement); expect(consumer.value).to.equal(contextValue); }); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts index c933e21a94..5ddeacecc9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/extension-slot/extension-slot.test.ts @@ -27,9 +27,11 @@ describe('UmbExtensionSlotElement', () => { /* // This test fails offen on FireFox, there is no real need for this test. So i have chosen to skip it. - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } */ describe('properties', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts index c9b3a55d70..14fc9b8f74 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-color/input-color.test.ts @@ -12,7 +12,9 @@ describe('UmbInputColorElement', () => { expect(element).to.be.instanceOf(UmbInputColorElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts index af3fa7afa4..c44689676a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-date/input-date.test.ts @@ -12,7 +12,9 @@ describe('UmbInputDateElement', () => { expect(element).to.be.instanceOf(UmbInputDateElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts index 32c6709b79..6ad52a04f4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-dropdown/input-dropdown-list.test.ts @@ -12,7 +12,9 @@ describe('UmbInputDateElement', () => { expect(element).to.be.instanceOf(UmbInputDropdownListElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts index ac434f3f71..58ed37c969 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-eye-dropper/input-eye-dropper.test.ts @@ -12,7 +12,9 @@ describe('UmbInputEyeDropperElement', () => { expect(element).to.be.instanceOf(UmbInputEyeDropperElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts index 4d479c521d..463d6b671f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-number-range/input-number-range.test.ts @@ -12,7 +12,9 @@ describe('UmbPropertyEditorUINumberRangeElement', () => { expect(element).to.be.instanceOf(UmbInputNumberRangeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts index 888dfb8f0f..8cf664b4ce 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-section/input-section.test.ts @@ -13,7 +13,9 @@ import { expect, fixture, html } from '@open-wc/testing'; // expect(element).to.be.instanceOf(UmbPickerSectionElement); // }); +// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { // it('passes the a11y audit', async () => { // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); // }); +// } // }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts index 70fab3a612..534b84c10e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/icon-picker/icon-picker-modal.test.ts @@ -13,8 +13,10 @@ // expect(element).to.be.instanceOf(UmbIconPickerModalElement); // }); +// if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { // // TODO: Reinstate this test when the a11y audit is fixed on uui-color-picker // // it('passes the a11y audit', async () => { // // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); // // }); +// } // }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts index 980010eb9b..6d4daff90a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/notification/layouts/default/notification-layout-default.test.ts @@ -31,9 +31,11 @@ describe('UmbNotificationLayoutDefault', () => { expect(element).to.be.instanceOf(UmbNotificationLayoutDefaultElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(); + }); + } describe('Public API', () => { describe('properties', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts index 99a8589c9f..f93d47e335 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIBlockGridBlockConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridBlockConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts index 9f32c3112f..3c06bdf0d2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIBlockGridGroupConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridGroupConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts index df5d7fcb40..6ea2a773bd 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIBlockGridStylesheetPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridStylesheetPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts index f614a6fded..467d68182e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIBlockGridElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockGridElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts index 4d53ce093e..ef715201fc 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIBlockListBlockConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListBlockConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts index 76fa78f468..198c1f427e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIBlockListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIBlockListElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts index a97844171f..f1428dca59 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUICheckboxListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICheckboxListElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts index d46384afee..7c0e64a11f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUICollectionViewBulkActionPermissionsElement', () => expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewBulkActionPermissionsElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts index 71288c6933..203416aead 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUICollectionViewColumnConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewColumnConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts index 5f8af52f82..f91606cf5e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUICollectionViewLayoutConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewLayoutConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts index 07094aafa8..e2638728cf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUICollectionViewOrderByElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewOrderByElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts index 1f580e0218..7c9518b8f0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUICollectionViewElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUICollectionViewElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts index c5d2fba1b1..ac2841f36d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIColorPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIColorPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts index bc7b520289..11845e05e6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts @@ -37,7 +37,9 @@ describe('UmbPropertyEditorUIDatePickerElement', () => { expect(inputElement.type).to.equal('time'); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts index e14717c8bf..64eedd3d8e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIDropdownElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIDropdownElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts index f5056dc648..3ac40ef46b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIEyeDropperElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIEyeDropperElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts index c199944f4c..f946507ae1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIIconPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIIconPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts index bd91e22814..f40bcfab04 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIImageCropperElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIImageCropperElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts index a3c26746ec..8669456057 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; import { UmbPropertyEditorUIImageCropsConfigurationElement } from './property-editor-ui-image-crops-configuration.element.js'; -import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; +//import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; describe('UmbPropertyEditorUIImageCropsConfigurationElement', () => { let element: UmbPropertyEditorUIImageCropsConfigurationElement; @@ -15,8 +15,10 @@ describe('UmbPropertyEditorUIImageCropsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIImageCropsConfigurationElement); }); - it('passes the a11y audit', async () => { - //TODO: This test is broken. It fails at forms because of missing labels even if you have them. - // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + //TODO: This test is broken. It fails at forms because of missing labels even if you have them. + // await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts index 38a24dc5d1..9813b3230a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUILabelElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUILabelElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts index 8b45de2a09..5626c6e1ff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIMarkdownEditorElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMarkdownEditorElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts index 3b68f220af..3775dc4a47 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIMediaPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMediaPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts index 3f697d6202..eadd74f29f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIMemberGroupPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMemberGroupPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts index 3f64843b26..bab51e8959 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIMemberPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMemberPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts index 6476463b0a..598909dd4d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIMultiUrlPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMultiUrlPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts index 3fd0d943d8..c650bfce4b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIMultipleTextStringElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIMultipleTextStringElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts index 864e3037d6..28d362a592 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUINumberRangeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUINumberRangeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts index f205db79e6..75f2e7cc33 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIOrderDirectionElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIOrderDirectionElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts index e60d71050a..2f21434de2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIOverlaySizeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIOverlaySizeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts index 415f84aa7b..f6dd7ea791 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUIRadioButtonListElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIRadioButtonListElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts index f28122f841..6d76461baa 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUISliderElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUISliderElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts index a1cd98015d..a8c9eff402 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITinyMceDimensionsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceDimensionsConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts index 924f3e8657..1c7e51cc7c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITinyMceMaxImSizeConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceMaxImageSizeConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts index 73bc259cc4..3199a0c760 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITinyMceStylesheetsConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceStylesheetsConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts index d4110d2ff1..c9620b9601 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITinyMceToolbarConfigurationElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceToolbarConfigurationElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts index 07970418cc..0aa87752a8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUITinyMceElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITinyMceElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts index 368d9ff4ba..5ea2056371 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIToggleElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIToggleElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts index 120c203891..7349b7e78b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITreePickerStartNodeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITreePickerStartNodeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts index 378b119078..8badef8d1e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUITreePickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITreePickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts index 20ec7d860a..a8f16c1a03 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIUploadFieldElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIUploadFieldElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts index 16474612a0..a118ae22f0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIUserPickerElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIUserPickerElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts index 88a4ae7279..0f74f050fe 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUIValueTypeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUIValueTypeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts index a037ab8754..fee075d228 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/tree/components/input-tree/input-tree.test.ts @@ -12,7 +12,9 @@ describe('UmbInputTreeElement', () => { expect(element).to.be.instanceOf(UmbInputTreeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts index de1bd824d5..c7fa097fac 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/components/input-document/input-document.test.ts @@ -12,7 +12,9 @@ describe('UmbInputDocumentElement', () => { expect(element).to.be.instanceOf(UmbInputDocumentElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts index 9d0e4f8ea9..5f155fbc8e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-media/input-media.test.ts @@ -12,7 +12,9 @@ describe('UmbInputMediaElement', () => { expect(element).to.be.instanceOf(UmbInputMediaElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts index 63b675c1c6..33050a9295 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts @@ -15,7 +15,9 @@ describe('UmbPropertyEditorUITagsStorageTypeElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITagsStorageTypeElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts index 50b0cdc14c..2b36c4b203 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.test.ts @@ -13,7 +13,9 @@ describe('UmbPropertyEditorUITagsElement', () => { expect(element).to.be.instanceOf(UmbPropertyEditorUITagsElement); }); - it('passes the a11y audit', async () => { - await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).shadowDom.to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs index 92b914a800..139c4483c7 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs @@ -127,7 +127,7 @@ export default { coverageConfig: { reporters: ['lcovonly', 'text-summary'], }, - testRunnerHtml: (testFramework) => + testRunnerHtml: (testFramework, devMode) => ` @@ -135,6 +135,9 @@ export default { Umbraco + diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs new file mode 100644 index 0000000000..7345d36c8d --- /dev/null +++ b/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs @@ -0,0 +1,9 @@ +import defaultConfig from './web-test-runner.config.mjs'; + +/** @type {import('@web/dev-server').DevServerConfig} */ +export default { + ...defaultConfig, + testRunnerHtml: (testFramework) => { + return defaultConfig.testRunnerHtml(testFramework, true); + }, +}; From ac3b4bcca817c96cabb0f91797fa748cacd80da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 13:32:41 +0100 Subject: [PATCH 19/44] correct test setup --- src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts | 2 -- src/Umbraco.Web.UI.Client/web-test-runner.config.mjs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts index 8ce9c4dac8..d7c72bf535 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/installer/installer.test.ts @@ -15,8 +15,6 @@ describe('UmbInstallerElement', () => { expect(element).to.be.instanceOf(UmbInstallerElement); }); - console.log(window); - console.log('__UMBRACO_TEST_RUN_A11Y_TEST', (window as any).__UMBRACO_TEST_RUN_A11Y_TEST); if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { it('passes the a11y audit', async () => { await expect(element).to.be.accessible(defaultA11yConfig); diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs index 139c4483c7..c6251bd899 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs @@ -136,7 +136,7 @@ export default { Umbraco From a2e71d25480c48bebac56f1bd95763760aa6960a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 14:03:13 +0100 Subject: [PATCH 20/44] tests --- .../controller-api/controller-host-provider.test.ts | 4 +++- .../dashboard-redirect-management.test.ts | 8 +++++--- .../documents/workspace/document-workspace.test.ts | 10 ++++++---- .../dashboard-published-status.test.ts | 10 +++++++--- .../dashboard-settings-welcome.test.ts | 10 +++++++--- .../dashboards/telemetry/dashboard-telemetry.test.ts | 10 +++++++--- src/Umbraco.Web.UI.Client/web-test-runner.config.mjs | 2 +- 7 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts b/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts index d60508d55b..a901b0291c 100644 --- a/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts +++ b/src/Umbraco.Web.UI.Client/src/libs/controller-api/controller-host-provider.test.ts @@ -38,9 +38,11 @@ describe('UmbControllerHostTestElement', () => { expect(element).to.be.instanceOf(UmbControllerHostProviderElement); }); - it('provides the context', () => { + it('provides the context', async () => { + await Promise.resolve(); // Potentially we need to wait a bit here, cause the value might not be set already? as of the context consumption... expect(consumer).to.be.instanceOf(UmbTestControllerHostInitializerConsumerElement); + expect(consumer.value).to.not.be.null; expect(consumer.value).to.equal(contextValue); }); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts index b1f1d27719..d9f09aac2f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/dashboards/redirect-management/dashboard-redirect-management.test.ts @@ -14,7 +14,9 @@ describe('UmbDashboardRedirectManagement', () => { expect(element).to.be.instanceOf(UmbDashboardRedirectManagementElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts index e2d9219676..e4beabdb58 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.test.ts @@ -13,8 +13,10 @@ describe('UmbDocumentWorkspaceElement', () => { expect(element).to.be.instanceOf(UmbDocumentWorkspaceElement); }); - it('passes the a11y audit', async () => { - // TODO: should we use shadowDom here? - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + // TODO: should we use shadowDom here? + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts index f0b8176f23..ecb05f39ca 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/published-status/dashboard-published-status.test.ts @@ -1,3 +1,4 @@ +/* import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element.js'; @@ -14,7 +15,10 @@ describe('UmbDashboardPublishedStatus', () => { expect(element).to.be.instanceOf(UmbDashboardPublishedStatusElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); +*/ diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/settings-welcome/dashboard-settings-welcome.test.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/settings-welcome/dashboard-settings-welcome.test.ts index bed903dd30..0a6ad31866 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/settings-welcome/dashboard-settings-welcome.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/settings-welcome/dashboard-settings-welcome.test.ts @@ -1,3 +1,4 @@ +/* import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardSettingsWelcomeElement } from './dashboard-settings-welcome.element.js'; @@ -14,7 +15,10 @@ describe('UmbDashboardSettingsWelcomeElement', () => { expect(element).to.be.instanceOf(UmbDashboardSettingsWelcomeElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); +*/ diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts index 14dddb1b8a..fbcef53a98 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/dashboards/telemetry/dashboard-telemetry.test.ts @@ -1,3 +1,4 @@ +/* import { expect, fixture, html } from '@open-wc/testing'; import { UmbDashboardTelemetryElement } from './dashboard-telemetry.element.js'; import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; @@ -13,7 +14,10 @@ describe('UmbDashboardTelemetryElement', () => { expect(element).to.be.instanceOf(UmbDashboardTelemetryElement); }); - it('passes the a11y audit', async () => { - await expect(element).to.be.accessible(defaultA11yConfig); - }); + if ((window as any).__UMBRACO_TEST_RUN_A11Y_TEST) { + it('passes the a11y audit', async () => { + await expect(element).to.be.accessible(defaultA11yConfig); + }); + } }); +*/ diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs index c6251bd899..536a090da9 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs @@ -136,7 +136,7 @@ export default { Umbraco From 1ecd7f8c3406394f032353f05ba1e2ea93f95934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 14:03:24 +0100 Subject: [PATCH 21/44] prevent child change events --- .../workspace/variant-context/basic-variant.element.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts index 3f1c6297ce..8b256af50a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts @@ -73,6 +73,14 @@ export class UmbBasicVariantElement extends UmbLitElement { constructor() { super(); + + // Prevent any child events escaping this element. + this.addEventListener('change', (e) => { + if (e.target !== this) { + e.stopImmediatePropagation(); + } + }); + this.context = new UmbBasicVariantContext(this); this.observe(this.context.name, () => { if (!this.#silentOnce) { From 5e6491480a9c6e8b46ea8d7b11b4de59c0667dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 14:03:41 +0100 Subject: [PATCH 22/44] finish test --- .../variant-context/basic-variant.test.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts index a47f361e42..c4bfdfb382 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts @@ -29,13 +29,9 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { } setValue(value: string) { if (this._alias) { - console.log('# Fire input event....'); this.dispatchEvent(new UmbChangeEvent()); - console.log('# Set the value....'); this.#variantContext?.setPropertyValue(this._alias, value); - console.log('# Fire input event....'); this.dispatchEvent(new UmbChangeEvent()); - console.log('done'); } } @@ -103,27 +99,15 @@ describe('UmbBasicVariantElement', () => { }); it('variant element fires change event', async () => { - console.log('START!'); - - variantElement.addEventListener(UmbChangeEvent.TYPE, (event: any) => { - console.log('EVENT!', event); - }); - const listener = oneEvent(variantElement, UmbChangeEvent.TYPE); - console.log('property editor:', propertyEditor.alias, propertyEditor.getValue()); expect(propertyEditor.alias).to.eq('testAlias'); propertyEditor.setValue('testValue3'); - console.log('BEFORE!'); const event = (await listener) as unknown as UmbChangeEvent; - console.log('AFTER!', event.target); expect(event).to.exist; - console.log('#1'); expect(event.type).to.eq(UmbChangeEvent.TYPE); - console.log('#2'); expect(event.target).to.equal(variantElement); - console.log('DONE!'); }); }); }); From d6be3ac633d2d06a9fee5dcfe13371d712654c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 20:48:17 +0100 Subject: [PATCH 23/44] move property stuff into property folder --- .../input-tiny-mce/input-tiny-mce.element.ts | 2 +- .../components/input-tiny-mce/tiny-mce-plugin.ts | 2 +- .../property-type-based-property.element.ts | 2 +- .../ref-property-editor-ui.element.ts | 2 +- .../ref-property-editor-ui.stories.ts | 2 +- .../ref-data-type/ref-data-type.stories.ts | 2 +- .../workspace/data-type-workspace.context.ts | 2 +- .../property-editor-ui-element.interface.ts | 2 +- .../models/property-editor.model.ts | 2 +- .../src/packages/core/index.ts | 10 +++++----- .../src/packages/core/property/index.ts | 2 ++ .../common/clear/property-action-clear.element.ts | 0 .../common/clear/property-action-clear.stories.ts | 0 .../common/copy/property-action-copy.element.ts | 0 .../common/copy/property-action-copy.stories.ts | 0 .../core/{ => property}/property-action/index.ts | 0 .../{ => property}/property-action/manifests.ts | 0 .../{ => property}/property-action/shared/index.ts | 0 .../shared/property-action-menu/index.ts | 0 .../property-action-menu.element.ts | 0 .../property-action/shared/property-action/index.ts | 0 .../property-action/property-action.interface.ts | 0 .../{ => property}/property-editor/config/index.ts | 0 .../property-editor-config-collection.class.ts | 0 .../config/property-editor-config.type.ts | 0 .../{ => property}/property-editor/events/index.ts | 0 .../events/property-value-change.event.ts | 0 .../core/{ => property}/property-editor/index.ts | 0 .../{ => property}/property-editor/manifests.ts | 0 .../property-editor/schemas/Umbraco.BlockGrid.ts | 0 .../property-editor/schemas/Umbraco.BlockList.ts | 0 .../property-editor/schemas/Umbraco.CheckboxList.ts | 0 .../schemas/Umbraco.ColorPicker.EyeDropper.ts | 0 .../property-editor/schemas/Umbraco.ColorPicker.ts | 0 .../property-editor/schemas/Umbraco.DateTime.ts | 0 .../property-editor/schemas/Umbraco.Decimal.ts | 0 .../schemas/Umbraco.Dropdown.Flexible.ts | 0 .../property-editor/schemas/Umbraco.EmailAddress.ts | 0 .../property-editor/schemas/Umbraco.IconPicker.ts | 0 .../property-editor/schemas/Umbraco.ImageCropper.ts | 0 .../property-editor/schemas/Umbraco.Integer.ts | 0 .../property-editor/schemas/Umbraco.Label.ts | 0 .../property-editor/schemas/Umbraco.ListView.ts | 0 .../schemas/Umbraco.MarkdownEditor.ts | 0 .../property-editor/schemas/Umbraco.MediaPicker3.ts | 0 .../schemas/Umbraco.MemberGroupPicker.ts | 0 .../property-editor/schemas/Umbraco.MemberPicker.ts | 0 .../schemas/Umbraco.MultiNodeTreePicker.ts | 0 .../schemas/Umbraco.MultiUrlPicker.ts | 0 .../schemas/Umbraco.MultipleTextString.ts | 0 .../schemas/Umbraco.RadioButtonList.ts | 0 .../property-editor/schemas/Umbraco.RichText.ts | 0 .../property-editor/schemas/Umbraco.Slider.ts | 0 .../property-editor/schemas/Umbraco.Tags.ts | 0 .../property-editor/schemas/Umbraco.TextArea.ts | 0 .../property-editor/schemas/Umbraco.TextBox.ts | 0 .../property-editor/schemas/Umbraco.TrueFalse.ts | 0 .../property-editor/schemas/Umbraco.UploadField.ts | 0 .../property-editor/schemas/Umbraco.UserPicker.ts | 0 .../property-editor/schemas/manifests.ts | 0 .../config/block-configuration/manifests.ts | 0 ...tor-ui-block-grid-block-configuration.element.ts | 2 +- ...tor-ui-block-grid-block-configuration.stories.ts | 0 ...editor-ui-block-grid-block-configuration.test.ts | 0 .../config/group-configuration/manifests.ts | 0 ...tor-ui-block-grid-group-configuration.element.ts | 2 +- ...tor-ui-block-grid-group-configuration.stories.ts | 0 ...editor-ui-block-grid-group-configuration.test.ts | 0 .../config/stylesheet-picker/manifests.ts | 0 ...ditor-ui-block-grid-stylesheet-picker.element.ts | 2 +- ...ditor-ui-block-grid-stylesheet-picker.stories.ts | 0 ...y-editor-ui-block-grid-stylesheet-picker.test.ts | 0 .../property-editor/uis/block-grid/manifests.ts | 0 ...perty-editor-ui-block-grid-inner-test.element.ts | 0 .../property-editor-ui-block-grid.element.ts | 4 ++-- .../property-editor-ui-block-grid.stories.ts | 0 .../property-editor-ui-block-grid.test.ts | 0 .../config/block-configuration/manifests.ts | 0 ...tor-ui-block-list-block-configuration.element.ts | 2 +- ...tor-ui-block-list-block-configuration.stories.ts | 0 ...editor-ui-block-list-block-configuration.test.ts | 0 .../property-editor/uis/block-list/manifests.ts | 0 .../property-editor-ui-block-list.element.ts | 0 .../property-editor-ui-block-list.stories.ts | 0 .../property-editor-ui-block-list.test.ts | 0 .../property-editor/uis/checkbox-list/manifests.ts | 0 .../property-editor-ui-checkbox-list.element.ts | 4 ++-- .../property-editor-ui-checkbox-list.stories.ts | 0 .../property-editor-ui-checkbox-list.test.ts | 0 .../config/bulk-action-permissions/manifests.ts | 0 ...llection-view-bulk-action-permissions.element.ts | 2 +- ...llection-view-bulk-action-permissions.stories.ts | 0 ...-collection-view-bulk-action-permissions.test.ts | 0 .../config/column-configuration/manifests.ts | 0 ...-collection-view-column-configuration.element.ts | 2 +- ...-collection-view-column-configuration.stories.ts | 0 ...-ui-collection-view-column-configuration.test.ts | 0 .../config/layout-configuration/manifests.ts | 0 ...-collection-view-layout-configuration.element.ts | 2 +- ...-collection-view-layout-configuration.stories.ts | 0 ...-ui-collection-view-layout-configuration.test.ts | 0 .../collection-view/config/order-by/manifests.ts | 0 ...ty-editor-ui-collection-view-order-by.element.ts | 2 +- ...ty-editor-ui-collection-view-order-by.stories.ts | 0 ...perty-editor-ui-collection-view-order-by.test.ts | 0 .../uis/collection-view/manifests.ts | 0 .../property-editor-ui-collection-view.element.ts | 0 .../property-editor-ui-collection-view.stories.ts | 0 .../property-editor-ui-collection-view.test.ts | 0 .../property-editor/uis/color-editor/manifests.ts | 0 .../property-editor-ui-color-editor.element.ts | 2 +- .../property-editor/uis/color-picker/manifests.ts | 0 .../property-editor-ui-color-picker.element.ts | 2 +- .../property-editor-ui-color-picker.stories.ts | 0 .../property-editor-ui-color-picker.test.ts | 0 .../property-editor/uis/date-picker/manifests.ts | 0 .../property-editor-ui-date-picker.element.ts | 0 .../property-editor-ui-date-picker.stories.ts | 2 +- .../property-editor-ui-date-picker.test.ts | 4 ++-- .../property-editor/uis/dropdown/manifests.ts | 0 .../dropdown/property-editor-ui-dropdown.element.ts | 2 +- .../dropdown/property-editor-ui-dropdown.stories.ts | 0 .../dropdown/property-editor-ui-dropdown.test.ts | 0 .../property-editor/uis/eye-dropper/manifests.ts | 0 .../property-editor-ui-eye-dropper.element.ts | 2 +- .../property-editor-ui-eye-dropper.stories.ts | 0 .../property-editor-ui-eye-dropper.test.ts | 0 .../property-editor/uis/icon-picker/manifests.ts | 0 .../property-editor-ui-icon-picker.element.ts | 2 +- .../property-editor-ui-icon-picker.stories.ts | 2 +- .../property-editor-ui-icon-picker.test.ts | 0 .../property-editor/uis/image-cropper/manifests.ts | 0 .../property-editor-ui-image-cropper.element.ts | 4 ++-- .../property-editor-ui-image-cropper.stories.ts | 0 .../property-editor-ui-image-cropper.test.ts | 0 .../uis/image-crops-configuration/manifests.ts | 0 ...y-editor-ui-image-crops-configuration.element.ts | 0 ...y-editor-ui-image-crops-configuration.stories.ts | 0 ...erty-editor-ui-image-crops-configuration.test.ts | 0 .../property-editor/uis/label/manifests.ts | 0 .../uis/label/property-editor-ui-label.element.ts | 2 +- .../uis/label/property-editor-ui-label.stories.ts | 0 .../uis/label/property-editor-ui-label.test.ts | 0 .../{ => property}/property-editor/uis/manifests.ts | 0 .../uis/markdown-editor/manifests.ts | 0 .../property-editor-ui-markdown-editor.element.ts | 2 +- .../property-editor-ui-markdown-editor.stories.ts | 0 .../property-editor-ui-markdown-editor.test.ts | 0 .../property-editor/uis/media-picker/manifests.ts | 0 .../property-editor-ui-media-picker.element.ts | 4 ++-- .../property-editor-ui-media-picker.stories.ts | 0 .../property-editor-ui-media-picker.test.ts | 0 .../uis/member-group-picker/manifests.ts | 0 ...roperty-editor-ui-member-group-picker.element.ts | 2 +- ...roperty-editor-ui-member-group-picker.stories.ts | 0 .../property-editor-ui-member-group-picker.test.ts | 0 .../property-editor/uis/member-picker/manifests.ts | 0 .../property-editor-ui-member-picker.element.ts | 2 +- .../property-editor-ui-member-picker.stories.ts | 0 .../property-editor-ui-member-picker.test.ts | 0 .../uis/multi-url-picker/manifests.ts | 0 .../property-editor-ui-multi-url-picker.element.ts | 2 +- .../property-editor-ui-multi-url-picker.stories.ts | 0 .../property-editor-ui-multi-url-picker.test.ts | 0 .../uis/multiple-text-string/manifests.ts | 0 ...operty-editor-ui-multiple-text-string.element.ts | 2 +- ...operty-editor-ui-multiple-text-string.stories.ts | 0 .../property-editor-ui-multiple-text-string.test.ts | 0 .../property-editor/uis/number-range/manifests.ts | 0 .../property-editor-ui-number-range.element.ts | 6 +++--- .../property-editor-ui-number-range.stories.ts | 0 .../property-editor-ui-number-range.test.ts | 0 .../property-editor/uis/number/manifests.ts | 0 .../uis/number/property-editor-ui-number.element.ts | 2 +- .../uis/number/property-editor-ui-number.stories.ts | 0 .../uis/order-direction/manifests.ts | 0 .../property-editor-ui-order-direction.element.ts | 2 +- .../property-editor-ui-order-direction.stories.ts | 0 .../property-editor-ui-order-direction.test.ts | 0 .../property-editor/uis/overlay-size/manifests.ts | 0 .../property-editor-ui-overlay-size.element.ts | 2 +- .../property-editor-ui-overlay-size.stories.ts | 0 .../property-editor-ui-overlay-size.test.ts | 0 .../uis/radio-button-list/manifests.ts | 0 .../property-editor-ui-radio-button-list.element.ts | 6 +++--- .../property-editor-ui-radio-button-list.stories.ts | 0 .../property-editor-ui-radio-button-list.test.ts | 0 .../property-editor/uis/slider/manifests.ts | 0 .../uis/slider/property-editor-ui-slider.element.ts | 4 ++-- .../uis/slider/property-editor-ui-slider.stories.ts | 0 .../uis/slider/property-editor-ui-slider.test.ts | 0 .../property-editor/uis/text-box/manifests.ts | 0 .../text-box/property-editor-ui-text-box.element.ts | 2 +- .../text-box/property-editor-ui-text-box.stories.ts | 0 .../property-editor/uis/textarea/manifests.ts | 0 .../textarea/property-editor-ui-textarea.element.ts | 2 +- .../textarea/property-editor-ui-textarea.stories.ts | 0 ...-ui-tiny-mce-dimensions-configuration.element.ts | 0 ...-ui-tiny-mce-dimensions-configuration.stories.ts | 2 +- ...tor-ui-tiny-mce-dimensions-configuration.test.ts | 0 .../uis/tiny-mce/config/manifests.ts | 0 ...i-tiny-mce-maximagesize-configuration.element.ts | 0 ...i-tiny-mce-maximagesize-configuration.stories.ts | 2 +- ...r-ui-tiny-mce-maximagesize-configuration.test.ts | 0 ...ui-tiny-mce-stylesheets-configuration.element.ts | 2 +- ...ui-tiny-mce-stylesheets-configuration.stories.ts | 2 +- ...or-ui-tiny-mce-stylesheets-configuration.test.ts | 0 ...tor-ui-tiny-mce-toolbar-configuration.element.ts | 2 +- ...tor-ui-tiny-mce-toolbar-configuration.stories.ts | 2 +- ...editor-ui-tiny-mce-toolbar-configuration.test.ts | 0 .../property-editor/uis/tiny-mce/manifests.ts | 0 .../uis/tiny-mce/plugins/manifests.ts | 0 .../tiny-mce/plugins/tiny-mce-code-editor.plugin.ts | 0 .../plugins/tiny-mce-embeddedmedia.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-macropicker.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts | 0 .../tiny-mce/property-editor-ui-tiny-mce.element.ts | 2 +- .../tiny-mce/property-editor-ui-tiny-mce.stories.ts | 2 +- .../tiny-mce/property-editor-ui-tiny-mce.test.ts | 0 .../property-editor/uis/toggle/manifests.ts | 0 .../uis/toggle/property-editor-ui-toggle.element.ts | 4 ++-- .../uis/toggle/property-editor-ui-toggle.stories.ts | 0 .../uis/toggle/property-editor-ui-toggle.test.ts | 0 .../uis/tree-picker/config/start-node/manifests.ts | 0 ...erty-editor-ui-tree-picker-start-node.element.ts | 2 +- ...erty-editor-ui-tree-picker-start-node.stories.ts | 0 ...roperty-editor-ui-tree-picker-start-node.test.ts | 0 .../property-editor/uis/tree-picker/manifests.ts | 0 .../property-editor-ui-tree-picker.element.ts | 2 +- .../property-editor-ui-tree-picker.stories.ts | 0 .../property-editor-ui-tree-picker.test.ts | 0 .../property-editor/uis/upload-field/manifests.ts | 0 .../property-editor-ui-upload-field.element.ts | 4 ++-- .../property-editor-ui-upload-field.stories.ts | 0 .../property-editor-ui-upload-field.test.ts | 0 .../property-editor/uis/user-picker/manifests.ts | 0 .../property-editor-ui-user-picker.element.ts | 2 +- .../property-editor-ui-user-picker.stories.ts | 0 .../property-editor-ui-user-picker.test.ts | 0 .../property-editor/uis/value-type/manifests.ts | 0 .../property-editor-ui-value-type.element.ts | 2 +- .../property-editor-ui-value-type.stories.ts | 0 .../property-editor-ui-value-type.test.ts | 0 .../workspace/types/workspace-property-data.type.ts | 2 +- .../workspace-property.context.ts | 2 +- .../workspace-property.element.ts | 4 ++-- .../property-editor-ui-document-picker.element.ts | 2 +- .../property-editor-ui-tags-storage-type.element.ts | 2 +- .../tags/property-editor-ui-tags.element.ts | 2 +- src/Umbraco.Web.UI.Client/tsconfig.json | 13 ++++++++++--- 251 files changed, 93 insertions(+), 84 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/common/clear/property-action-clear.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/common/clear/property-action-clear.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/common/copy/property-action-copy.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/common/copy/property-action-copy.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/shared/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/shared/property-action-menu/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/shared/property-action-menu/property-action-menu.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/shared/property-action/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-action/shared/property-action/property-action.interface.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/config/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/config/property-editor-config-collection.class.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/config/property-editor-config.type.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/events/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/events/property-value-change.event.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.BlockGrid.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.BlockList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.CheckboxList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.ColorPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.DateTime.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Decimal.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Dropdown.Flexible.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.EmailAddress.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.IconPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.ImageCropper.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Integer.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Label.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.ListView.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MarkdownEditor.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MediaPicker3.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MemberGroupPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MemberPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MultiUrlPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.MultipleTextString.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.RadioButtonList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.RichText.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Slider.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.Tags.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.TextArea.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.TextBox.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.TrueFalse.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.UploadField.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/Umbraco.UserPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/schemas/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/block-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/group-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/config/block-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/property-editor-ui-block-list.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/block-list/property-editor-ui-block-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/checkbox-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/column-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/layout-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/order-by/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/date-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts (89%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/dropdown/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/eye-dropper/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/icon-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts (85%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-cropper/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-crops-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/label/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/label/property-editor-ui-label.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/label/property-editor-ui-label.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/label/property-editor-ui-label.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/markdown-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/media-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-group-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multi-url-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts (96%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multiple-text-string/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number-range/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number-range/property-editor-ui-number-range.element.ts (84%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number-range/property-editor-ui-number-range.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number/property-editor-ui-number.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/number/property-editor-ui-number.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/order-direction/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/overlay-size/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/radio-button-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts (86%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/slider/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/slider/property-editor-ui-slider.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/slider/property-editor-ui-slider.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/slider/property-editor-ui-slider.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/text-box/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/text-box/property-editor-ui-text-box.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/textarea/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/textarea/property-editor-ui-textarea.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts (96%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts (97%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts (97%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/toggle/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/toggle/property-editor-ui-toggle.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/toggle/property-editor-ui-toggle.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/config/start-node/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/upload-field/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts (87%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/user-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/value-type/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/value-type/property-editor-ui-value-type.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{ => property}/property-editor/uis/value-type/property-editor-ui-value-type.test.ts (100%) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts index d43c6320db..a1d3974626 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts @@ -25,7 +25,7 @@ import { import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbMediaHelper } from '@umbraco-cms/backoffice/utils'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import { UMB_APP_CONTEXT } from '@umbraco-cms/backoffice/app'; import { UmbStylesheetRepository } from '@umbraco-cms/backoffice/stylesheet'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts index bb6dd2f8f4..545b7d1720 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts @@ -2,7 +2,7 @@ import type { UmbInputTinyMceElement } from '@umbraco-cms/backoffice/components' import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { UmbApi } from '@umbraco-cms/backoffice/extension-api'; import type { Editor } from '@umbraco-cms/backoffice/external/tinymce'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; export class UmbTinyMcePluginBase extends UmbBaseController implements UmbApi { editor: Editor; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts index 1131038379..c75df8354f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts @@ -1,4 +1,4 @@ -import { UmbPropertyEditorConfig } from '../../property-editor/index.js'; +import { UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; import { UmbDataTypeDetailModel, UmbDataTypeDetailRepository } from '@umbraco-cms/backoffice/data-type'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, ifDefined, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts index 72594db443..1518b4be2a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor'; import { UUIRefNodeElement } from '@umbraco-cms/backoffice/external/uui'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts index fe73fd6d71..1f795ad3b4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import type { UmbRefPropertyEditorUIElement } from './ref-property-editor-ui.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; import './ref-property-editor-ui.element.js'; const meta: Meta = { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts index 935ad525d9..a84f44cdd7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import type { UmbRefDataTypeElement } from './ref-data-type.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; import './ref-data-type.element.js'; const meta: Meta = { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index f0ee15691b..f249f0a82f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -20,7 +20,7 @@ import { PropertyEditorConfigProperty, umbExtensionsRegistry, } from '@umbraco-cms/backoffice/extension-registry'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts index 8043f4d9b6..a8c3192d8a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts @@ -1,4 +1,4 @@ -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; export interface UmbPropertyEditorUiElement extends HTMLElement { value?: unknown; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts index 574ec02770..33f2d747a3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts @@ -1,5 +1,5 @@ import type { UmbPropertyEditorUiElement } from '../interfaces/index.js'; -import type { UmbPropertyEditorConfig } from '../../property-editor/index.js'; +import type { UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; import type { ManifestElement, ManifestBase } from '@umbraco-cms/backoffice/extension-api'; export interface ManifestPropertyEditorUi extends ManifestElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/index.ts index 21661c1e53..8fed3d6679 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/index.ts @@ -1,9 +1,9 @@ import { UmbBackofficeNotificationContainerElement, UmbBackofficeModalContainerElement } from './components/index.js'; import { manifests as debugManifests } from './debug/manifests.js'; import { manifests as localizationManifests } from './localization/manifests.js'; -import { manifests as propertyActionManifests } from './property-action/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 propertyActionManifests } from './property/property-action/manifests.js'; +import { manifests as propertyEditorManifests } from './property/property-editor/manifests.js'; +import { manifests as tinyMcePluginManifests } from './property/property-editor/uis/tiny-mce/plugins/manifests.js'; import { manifests as collectionManifests } from './collection/manifests.js'; import { manifests as workspaceManifests } from './workspace/manifests.js'; import { manifests as modalManifests } from './modal/common/manifests.js'; @@ -32,8 +32,8 @@ export * from './menu/index.js'; export * from './modal/index.js'; export * from './notification/index.js'; export * from './picker-input/index.js'; -export * from './property-action/index.js'; -export * from './property-editor/index.js'; +export * from './property/property-action/index.js'; +export * from './property/property-editor/index.js'; export * from './section/index.js'; export * from './sorter/index.js'; export * from './store/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts new file mode 100644 index 0000000000..d79be5a92b --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts @@ -0,0 +1,2 @@ +export * from './property-action/index.js'; +export * from './property-editor/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/property-action-menu.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/property-action-menu.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/property-action.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/property-action.interface.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/property-action.interface.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/property-action.interface.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config-collection.class.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config-collection.class.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config-collection.class.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config-collection.class.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config.type.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config.type.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config.type.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/property-value-change.event.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/property-value-change.event.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/property-value-change.event.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/property-value-change.event.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockGrid.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockGrid.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockGrid.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockGrid.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.CheckboxList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.CheckboxList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.CheckboxList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.CheckboxList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.DateTime.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.DateTime.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.DateTime.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.DateTime.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Decimal.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Decimal.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Decimal.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Decimal.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Dropdown.Flexible.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Dropdown.Flexible.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Dropdown.Flexible.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Dropdown.Flexible.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.EmailAddress.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.EmailAddress.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.EmailAddress.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.EmailAddress.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.IconPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.IconPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.IconPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.IconPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ImageCropper.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ImageCropper.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ImageCropper.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ImageCropper.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Integer.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Integer.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Integer.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Integer.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Label.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Label.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Label.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Label.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ListView.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ListView.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ListView.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ListView.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MarkdownEditor.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MarkdownEditor.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MarkdownEditor.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MarkdownEditor.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MediaPicker3.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MediaPicker3.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MediaPicker3.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MediaPicker3.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberGroupPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberGroupPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberGroupPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberGroupPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiUrlPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiUrlPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiUrlPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiUrlPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultipleTextString.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultipleTextString.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultipleTextString.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultipleTextString.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RadioButtonList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RadioButtonList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RadioButtonList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RadioButtonList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RichText.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RichText.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RichText.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RichText.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Slider.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Slider.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Slider.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Slider.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Tags.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Tags.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Tags.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Tags.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextArea.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextArea.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextArea.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextArea.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextBox.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextBox.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextBox.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextBox.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TrueFalse.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TrueFalse.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TrueFalse.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TrueFalse.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UploadField.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UploadField.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UploadField.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UploadField.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UserPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UserPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UserPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UserPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts index 6f652c38b3..b060fba2c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts index da03743d67..288c894b26 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts index f0bb6966a8..574dd6692e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index 5301be738f..ba42c29fef 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,11 +1,11 @@ -import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../workspace/workspace-property/workspace-property.context.js'; +import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../../workspace/workspace-property/workspace-property.context.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import type { UmbRoute, UmbRouterSlotChangeEvent, UmbRouterSlotInitEvent } from '@umbraco-cms/backoffice/router'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; /** * @element umb-property-editor-ui-block-grid diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts index 06844415c1..3b8691a823 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts index ee4a3b8e99..ea10e4335d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts @@ -1,9 +1,9 @@ -import { UmbInputCheckboxListElement } from '../../../components/input-checkbox-list/input-checkbox-list.element.js'; +import { UmbInputCheckboxListElement } from '../../../../components/input-checkbox-list/input-checkbox-list.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; /** * @element umb-property-editor-ui-checkbox-list diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts index 648d6bb8b5..e1b31cc504 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts index fa75c639de..e7ef3bc6e9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts index ab4720895c..5c03f4d629 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts index 3bbe2b6fd4..564b90db11 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts index a1e12b4b8c..b26a6efda0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbSwatchDetails } from '@umbraco-cms/backoffice/models'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbMultipleColorPickerInputElement } from '@umbraco-cms/backoffice/components'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts index 530fbdcfbf..b3d0c00135 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts @@ -3,7 +3,7 @@ import { UUIColorSwatchesEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbSwatchDetails } from '@umbraco-cms/backoffice/models'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-color-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts index cd40b10b8f..58a5dfea36 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts @@ -3,7 +3,7 @@ import type { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui- import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-date-picker.element.js'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; export default { title: 'Property Editor UIs/Date Picker', diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts similarity index 89% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts index 11845e05e6..6fe8752058 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts @@ -1,8 +1,8 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { UmbInputDateElement } from '../../../components/input-date/input-date.element.js'; +import { UmbInputDateElement } from '../../../../components/input-date/input-date.element.js'; import { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui-date-picker.element.js'; import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; describe('UmbPropertyEditorUIDatePickerElement', () => { let element: UmbPropertyEditorUIDatePickerElement; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts index a748af85ec..d09b110e44 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UUISelectEvent } from '@umbraco-cms/backoffice/external/uui'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts index b654be64a6..507d6eadd8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UUIColorPickerChangeEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-eye-dropper diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts index 647b967f86..ee2286ca57 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts @@ -7,7 +7,7 @@ import { UMB_ICON_PICKER_MODAL, } from '@umbraco-cms/backoffice/modal'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-icon-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts similarity index 85% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts index 3d69a2c355..e0bf066b9a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts @@ -1,5 +1,5 @@ import { Meta, Story } from '@storybook/web-components'; -import type { UmbIconPickerModalElement } from '../../../modal/common/icon-picker/icon-picker-modal.element.js'; +import type { UmbIconPickerModalElement } from '../../../../modal/common/icon-picker/icon-picker-modal.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-icon-picker.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts index cb354a1844..0178caf7d8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts @@ -2,8 +2,8 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import '../../../components/input-image-cropper/input-image-cropper.element.js'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import '../../../../components/input-image-cropper/input-image-cropper.element.js'; /** * @element umb-property-editor-ui-image-cropper diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts index 931a3a3559..fa1f42f6d3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-label diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts index 09a25c5d81..27d96bb60e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbInputMarkdownElement } from '@umbraco-cms/backoffice/components'; import { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts index 4a43a6cd40..1e90e9beae 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts @@ -1,6 +1,6 @@ -import { UmbInputMediaElement } from '../../../../media/media/components/input-media/input-media.element.js'; +import { UmbInputMediaElement } from '../../../../../media/media/components/input-media/input-media.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts index 39d8e40a10..219bba1381 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-member-group-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts index 062e052117..7891b25e97 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-member-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index 0419084673..b0bf6e97d5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -6,7 +6,7 @@ import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/wo import { UmbLinkPickerLink } from '@umbraco-cms/backoffice/modal'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-multi-url-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts index a3204b793c..58d54c43b7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts @@ -1,7 +1,7 @@ import { UmbPropertyValueChangeEvent } from '../../index.js'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { MultipleTextStringValue, UmbInputMultipleTextStringElement } from '@umbraco-cms/backoffice/components'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts similarity index 84% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts index b28a3d13f6..71d2516550 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts @@ -1,11 +1,11 @@ -import type { UmbInputNumberRangeElement } from '../../../components/input-number-range/input-number-range.element.js'; +import type { UmbInputNumberRangeElement } from '../../../../components/input-number-range/input-number-range.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; -import '../../../components/input-number-range/input-number-range.element.js'; +import '../../../../components/input-number-range/input-number-range.element.js'; type ValueType = { min?: number; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts index b7c369276c..e25e881e05 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined } from '@umbraco-c import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; @customElement('umb-property-editor-ui-number') export class UmbPropertyEditorUINumberElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts index 911868952d..0589ebcbbe 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-order-direction diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts index f726414e7c..9699d83826 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-overlay-size diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts similarity index 86% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts index aafbbe3b6d..a8ad6dc4a1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts @@ -1,8 +1,8 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import '../../../components/input-radio-button-list/input-radio-button-list.element.js'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import type { UmbInputRadioButtonListElement } from '../../../components/input-radio-button-list/input-radio-button-list.element.js'; +import '../../../../components/input-radio-button-list/input-radio-button-list.element.js'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbInputRadioButtonListElement } from '../../../../components/input-radio-button-list/input-radio-button-list.element.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts index 66d5eb79c1..9ecb30057e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts @@ -1,9 +1,9 @@ -import { UmbInputSliderElement } from '../../../components/input-slider/input-slider.element.js'; +import { UmbInputSliderElement } from '../../../../components/input-slider/input-slider.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; /** * @element umb-property-editor-ui-slider diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts index 2d053b43d8..0f5bbceb99 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined } from '@umbraco-c import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UUIInputElement } from '@umbraco-cms/backoffice/external/uui'; type UuiInputTypeType = typeof UUIInputElement.prototype.type; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts index 2148059eec..8bb1801b32 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined, styleMap } from ' import { UUITextareaElement } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; @customElement('umb-property-editor-ui-textarea') export class UmbPropertyEditorUITextareaElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts index c3e8ade090..d5bc640079 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts @@ -1,6 +1,6 @@ import { Meta } from '@storybook/web-components'; import './property-editor-ui-tiny-mce-dimensions-configuration.element.js'; -import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import { UmbDataTypeDetailModel } from '@umbraco-cms/backoffice/data-type'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts index 156d5f2dd0..cfcdb85ad8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-maximagesize-configuration.element.js'; import { UmbDataTypeDetailModel } from '@umbraco-cms/backoffice/data-type'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts index b40d99490e..86eeed5c14 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts @@ -3,7 +3,7 @@ import { css, customElement, html, property, state } from '@umbraco-cms/backoffi import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbStylesheetRepository } from '@umbraco-cms/backoffice/stylesheet'; import { StylesheetOverviewResponseModel } from '@umbraco-cms/backoffice/backend-api'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts index 815c313ca4..e042aa6c7e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-stylesheets-configuration.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts similarity index 97% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts index ac389d7515..a76cc50be6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts @@ -3,7 +3,7 @@ import { customElement, css, html, property, map, state, PropertyValueMap } from import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorUiElement, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { tinymce } from '@umbraco-cms/backoffice/external/tinymce'; const tinyIconSet = tinymce.IconManager.get('default'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts index 595052f517..391cfeaa48 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-toolbar-configuration.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts index 2c32a2eade..66912d954b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts @@ -2,7 +2,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-tiny-mce diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts similarity index 97% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts index 14e5bbd6b5..c5be5b806f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/web-components'; import type { UmbPropertyEditorUITinyMceElement } from './property-editor-ui-tiny-mce.element.js'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import './property-editor-ui-tiny-mce.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts index 28a668a60d..d55dfc7b29 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts @@ -1,7 +1,7 @@ -import { UmbInputToggleElement } from '../../../components/input-toggle/input-toggle.element.js'; +import { UmbInputToggleElement } from '../../../../components/input-toggle/input-toggle.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts index ea993e0e7a..2d050690f3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts @@ -1,7 +1,7 @@ import { StartNode, UmbInputContentTypeElement } from '@umbraco-cms/backoffice/content-type'; import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts index eb89ced60f..49f8548964 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { StartNode } from '@umbraco-cms/backoffice/content-type'; import { UmbInputTreeElement } from '@umbraco-cms/backoffice/tree'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts similarity index 87% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts index 11d5185613..a0abd2d8c6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts @@ -1,9 +1,9 @@ -import { UmbInputUploadFieldElement } from '../../../components/input-upload-field/input-upload-field.element.js'; +import { UmbInputUploadFieldElement } from '../../../../components/input-upload-field/input-upload-field.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; /** * @element umb-property-editor-ui-upload-field diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts index cc85887a5a..674cf7ea5e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-user-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts index 2fbcca9a08..c32d009a9d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts @@ -3,7 +3,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUISelectEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; /** * @element umb-property-editor-ui-value-type diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts index 6773a83e5b..a780c859c3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts @@ -1,4 +1,4 @@ -import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; +import { type UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; export type WorkspacePropertyData = { alias?: string; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts index 2e6c4055a0..71bd15d9d8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts @@ -12,7 +12,7 @@ import { UmbBasicState, } from '@umbraco-cms/backoffice/observable-api'; import { UmbContextProviderController, UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; export class UmbWorkspacePropertyContext extends UmbBaseController { private _providerController: UmbContextProviderController; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts index 360f1db809..4d5cd9852e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts @@ -1,4 +1,4 @@ -import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; +import { type UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; import { UmbWorkspacePropertyContext } from './workspace-property.context.js'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; @@ -6,7 +6,7 @@ import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; import { ManifestPropertyEditorUi, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; /** * @element umb-workspace-property diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts index 0fbadb185a..b684cdb8e9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts @@ -2,7 +2,7 @@ import type { UmbInputDocumentElement } from '../../components/input-document/in import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; @customElement('umb-property-editor-ui-document-picker') export class UmbPropertyEditorUIContentPickerElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts index defb1408d0..aa822eb7b0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 5d47f69c9c..00f905c5aa 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -2,7 +2,7 @@ import { UmbTagsInputElement } from '../../components/tags-input/tags-input.elem import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; -import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json index 9aeafe340d..2a3d4dbf95 100644 --- a/src/Umbraco.Web.UI.Client/tsconfig.json +++ b/src/Umbraco.Web.UI.Client/tsconfig.json @@ -70,8 +70,8 @@ "@umbraco-cms/backoffice/modal": ["src/packages/core/modal"], "@umbraco-cms/backoffice/notification": ["src/packages/core/notification"], "@umbraco-cms/backoffice/picker-input": ["src/packages/core/picker-input"], - "@umbraco-cms/backoffice/property-action": ["src/packages/core/property-action"], - "@umbraco-cms/backoffice/property-editor": ["src/packages/core/property-editor"], + "@umbraco-cms/backoffice/property-action": ["src/packages/core/property/property-action"], + "@umbraco-cms/backoffice/property-editor": ["src/packages/core/property/property-editor"], "@umbraco-cms/backoffice/section": ["src/packages/core/section"], "@umbraco-cms/backoffice/sorter": ["src/packages/core/sorter"], "@umbraco-cms/backoffice/store": ["src/packages/core/store"], @@ -126,7 +126,14 @@ "@umbraco-cms/internal/test-utils": ["utils/test-utils.ts"] } }, - "include": ["src/**/*.ts", "apps/**/*.ts", "e2e/**/*.ts", "index.ts", "storybook/stories/**/*.ts", "examples/**/*.ts", ], + "include": [ + "src/**/*.ts", + "apps/**/*.ts", + "e2e/**/*.ts", + "index.ts", + "storybook/stories/**/*.ts", + "examples/**/*.ts" + ], "references": [ { "path": "./tsconfig.node.json" From 4bfa54e117a696e40c72c9043b1e8896c030f11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Dec 2023 20:55:52 +0100 Subject: [PATCH 24/44] Revert "move property stuff into property folder" This reverts commit d6be3ac633d2d06a9fee5dcfe13371d712654c16. --- .../input-tiny-mce/input-tiny-mce.element.ts | 2 +- .../components/input-tiny-mce/tiny-mce-plugin.ts | 2 +- .../property-type-based-property.element.ts | 2 +- .../ref-property-editor-ui.element.ts | 2 +- .../ref-property-editor-ui.stories.ts | 2 +- .../ref-data-type/ref-data-type.stories.ts | 2 +- .../workspace/data-type-workspace.context.ts | 2 +- .../property-editor-ui-element.interface.ts | 2 +- .../models/property-editor.model.ts | 2 +- .../src/packages/core/index.ts | 10 +++++----- .../common/clear/property-action-clear.element.ts | 0 .../common/clear/property-action-clear.stories.ts | 0 .../common/copy/property-action-copy.element.ts | 0 .../common/copy/property-action-copy.stories.ts | 0 .../core/{property => }/property-action/index.ts | 0 .../{property => }/property-action/manifests.ts | 0 .../{property => }/property-action/shared/index.ts | 0 .../shared/property-action-menu/index.ts | 0 .../property-action-menu.element.ts | 0 .../property-action/shared/property-action/index.ts | 0 .../property-action/property-action.interface.ts | 0 .../{property => }/property-editor/config/index.ts | 0 .../property-editor-config-collection.class.ts | 0 .../config/property-editor-config.type.ts | 0 .../{property => }/property-editor/events/index.ts | 0 .../events/property-value-change.event.ts | 0 .../core/{property => }/property-editor/index.ts | 0 .../{property => }/property-editor/manifests.ts | 0 .../property-editor/schemas/Umbraco.BlockGrid.ts | 0 .../property-editor/schemas/Umbraco.BlockList.ts | 0 .../property-editor/schemas/Umbraco.CheckboxList.ts | 0 .../schemas/Umbraco.ColorPicker.EyeDropper.ts | 0 .../property-editor/schemas/Umbraco.ColorPicker.ts | 0 .../property-editor/schemas/Umbraco.DateTime.ts | 0 .../property-editor/schemas/Umbraco.Decimal.ts | 0 .../schemas/Umbraco.Dropdown.Flexible.ts | 0 .../property-editor/schemas/Umbraco.EmailAddress.ts | 0 .../property-editor/schemas/Umbraco.IconPicker.ts | 0 .../property-editor/schemas/Umbraco.ImageCropper.ts | 0 .../property-editor/schemas/Umbraco.Integer.ts | 0 .../property-editor/schemas/Umbraco.Label.ts | 0 .../property-editor/schemas/Umbraco.ListView.ts | 0 .../schemas/Umbraco.MarkdownEditor.ts | 0 .../property-editor/schemas/Umbraco.MediaPicker3.ts | 0 .../schemas/Umbraco.MemberGroupPicker.ts | 0 .../property-editor/schemas/Umbraco.MemberPicker.ts | 0 .../schemas/Umbraco.MultiNodeTreePicker.ts | 0 .../schemas/Umbraco.MultiUrlPicker.ts | 0 .../schemas/Umbraco.MultipleTextString.ts | 0 .../schemas/Umbraco.RadioButtonList.ts | 0 .../property-editor/schemas/Umbraco.RichText.ts | 0 .../property-editor/schemas/Umbraco.Slider.ts | 0 .../property-editor/schemas/Umbraco.Tags.ts | 0 .../property-editor/schemas/Umbraco.TextArea.ts | 0 .../property-editor/schemas/Umbraco.TextBox.ts | 0 .../property-editor/schemas/Umbraco.TrueFalse.ts | 0 .../property-editor/schemas/Umbraco.UploadField.ts | 0 .../property-editor/schemas/Umbraco.UserPicker.ts | 0 .../property-editor/schemas/manifests.ts | 0 .../config/block-configuration/manifests.ts | 0 ...tor-ui-block-grid-block-configuration.element.ts | 2 +- ...tor-ui-block-grid-block-configuration.stories.ts | 0 ...editor-ui-block-grid-block-configuration.test.ts | 0 .../config/group-configuration/manifests.ts | 0 ...tor-ui-block-grid-group-configuration.element.ts | 2 +- ...tor-ui-block-grid-group-configuration.stories.ts | 0 ...editor-ui-block-grid-group-configuration.test.ts | 0 .../config/stylesheet-picker/manifests.ts | 0 ...ditor-ui-block-grid-stylesheet-picker.element.ts | 2 +- ...ditor-ui-block-grid-stylesheet-picker.stories.ts | 0 ...y-editor-ui-block-grid-stylesheet-picker.test.ts | 0 .../property-editor/uis/block-grid/manifests.ts | 0 ...perty-editor-ui-block-grid-inner-test.element.ts | 0 .../property-editor-ui-block-grid.element.ts | 4 ++-- .../property-editor-ui-block-grid.stories.ts | 0 .../property-editor-ui-block-grid.test.ts | 0 .../config/block-configuration/manifests.ts | 0 ...tor-ui-block-list-block-configuration.element.ts | 2 +- ...tor-ui-block-list-block-configuration.stories.ts | 0 ...editor-ui-block-list-block-configuration.test.ts | 0 .../property-editor/uis/block-list/manifests.ts | 0 .../property-editor-ui-block-list.element.ts | 0 .../property-editor-ui-block-list.stories.ts | 0 .../property-editor-ui-block-list.test.ts | 0 .../property-editor/uis/checkbox-list/manifests.ts | 0 .../property-editor-ui-checkbox-list.element.ts | 4 ++-- .../property-editor-ui-checkbox-list.stories.ts | 0 .../property-editor-ui-checkbox-list.test.ts | 0 .../config/bulk-action-permissions/manifests.ts | 0 ...llection-view-bulk-action-permissions.element.ts | 2 +- ...llection-view-bulk-action-permissions.stories.ts | 0 ...-collection-view-bulk-action-permissions.test.ts | 0 .../config/column-configuration/manifests.ts | 0 ...-collection-view-column-configuration.element.ts | 2 +- ...-collection-view-column-configuration.stories.ts | 0 ...-ui-collection-view-column-configuration.test.ts | 0 .../config/layout-configuration/manifests.ts | 0 ...-collection-view-layout-configuration.element.ts | 2 +- ...-collection-view-layout-configuration.stories.ts | 0 ...-ui-collection-view-layout-configuration.test.ts | 0 .../collection-view/config/order-by/manifests.ts | 0 ...ty-editor-ui-collection-view-order-by.element.ts | 2 +- ...ty-editor-ui-collection-view-order-by.stories.ts | 0 ...perty-editor-ui-collection-view-order-by.test.ts | 0 .../uis/collection-view/manifests.ts | 0 .../property-editor-ui-collection-view.element.ts | 0 .../property-editor-ui-collection-view.stories.ts | 0 .../property-editor-ui-collection-view.test.ts | 0 .../property-editor/uis/color-editor/manifests.ts | 0 .../property-editor-ui-color-editor.element.ts | 2 +- .../property-editor/uis/color-picker/manifests.ts | 0 .../property-editor-ui-color-picker.element.ts | 2 +- .../property-editor-ui-color-picker.stories.ts | 0 .../property-editor-ui-color-picker.test.ts | 0 .../property-editor/uis/date-picker/manifests.ts | 0 .../property-editor-ui-date-picker.element.ts | 0 .../property-editor-ui-date-picker.stories.ts | 2 +- .../property-editor-ui-date-picker.test.ts | 4 ++-- .../property-editor/uis/dropdown/manifests.ts | 0 .../dropdown/property-editor-ui-dropdown.element.ts | 2 +- .../dropdown/property-editor-ui-dropdown.stories.ts | 0 .../dropdown/property-editor-ui-dropdown.test.ts | 0 .../property-editor/uis/eye-dropper/manifests.ts | 0 .../property-editor-ui-eye-dropper.element.ts | 2 +- .../property-editor-ui-eye-dropper.stories.ts | 0 .../property-editor-ui-eye-dropper.test.ts | 0 .../property-editor/uis/icon-picker/manifests.ts | 0 .../property-editor-ui-icon-picker.element.ts | 2 +- .../property-editor-ui-icon-picker.stories.ts | 2 +- .../property-editor-ui-icon-picker.test.ts | 0 .../property-editor/uis/image-cropper/manifests.ts | 0 .../property-editor-ui-image-cropper.element.ts | 4 ++-- .../property-editor-ui-image-cropper.stories.ts | 0 .../property-editor-ui-image-cropper.test.ts | 0 .../uis/image-crops-configuration/manifests.ts | 0 ...y-editor-ui-image-crops-configuration.element.ts | 0 ...y-editor-ui-image-crops-configuration.stories.ts | 0 ...erty-editor-ui-image-crops-configuration.test.ts | 0 .../property-editor/uis/label/manifests.ts | 0 .../uis/label/property-editor-ui-label.element.ts | 2 +- .../uis/label/property-editor-ui-label.stories.ts | 0 .../uis/label/property-editor-ui-label.test.ts | 0 .../{property => }/property-editor/uis/manifests.ts | 0 .../uis/markdown-editor/manifests.ts | 0 .../property-editor-ui-markdown-editor.element.ts | 2 +- .../property-editor-ui-markdown-editor.stories.ts | 0 .../property-editor-ui-markdown-editor.test.ts | 0 .../property-editor/uis/media-picker/manifests.ts | 0 .../property-editor-ui-media-picker.element.ts | 4 ++-- .../property-editor-ui-media-picker.stories.ts | 0 .../property-editor-ui-media-picker.test.ts | 0 .../uis/member-group-picker/manifests.ts | 0 ...roperty-editor-ui-member-group-picker.element.ts | 2 +- ...roperty-editor-ui-member-group-picker.stories.ts | 0 .../property-editor-ui-member-group-picker.test.ts | 0 .../property-editor/uis/member-picker/manifests.ts | 0 .../property-editor-ui-member-picker.element.ts | 2 +- .../property-editor-ui-member-picker.stories.ts | 0 .../property-editor-ui-member-picker.test.ts | 0 .../uis/multi-url-picker/manifests.ts | 0 .../property-editor-ui-multi-url-picker.element.ts | 2 +- .../property-editor-ui-multi-url-picker.stories.ts | 0 .../property-editor-ui-multi-url-picker.test.ts | 0 .../uis/multiple-text-string/manifests.ts | 0 ...operty-editor-ui-multiple-text-string.element.ts | 2 +- ...operty-editor-ui-multiple-text-string.stories.ts | 0 .../property-editor-ui-multiple-text-string.test.ts | 0 .../property-editor/uis/number-range/manifests.ts | 0 .../property-editor-ui-number-range.element.ts | 6 +++--- .../property-editor-ui-number-range.stories.ts | 0 .../property-editor-ui-number-range.test.ts | 0 .../property-editor/uis/number/manifests.ts | 0 .../uis/number/property-editor-ui-number.element.ts | 2 +- .../uis/number/property-editor-ui-number.stories.ts | 0 .../uis/order-direction/manifests.ts | 0 .../property-editor-ui-order-direction.element.ts | 2 +- .../property-editor-ui-order-direction.stories.ts | 0 .../property-editor-ui-order-direction.test.ts | 0 .../property-editor/uis/overlay-size/manifests.ts | 0 .../property-editor-ui-overlay-size.element.ts | 2 +- .../property-editor-ui-overlay-size.stories.ts | 0 .../property-editor-ui-overlay-size.test.ts | 0 .../uis/radio-button-list/manifests.ts | 0 .../property-editor-ui-radio-button-list.element.ts | 6 +++--- .../property-editor-ui-radio-button-list.stories.ts | 0 .../property-editor-ui-radio-button-list.test.ts | 0 .../property-editor/uis/slider/manifests.ts | 0 .../uis/slider/property-editor-ui-slider.element.ts | 4 ++-- .../uis/slider/property-editor-ui-slider.stories.ts | 0 .../uis/slider/property-editor-ui-slider.test.ts | 0 .../property-editor/uis/text-box/manifests.ts | 0 .../text-box/property-editor-ui-text-box.element.ts | 2 +- .../text-box/property-editor-ui-text-box.stories.ts | 0 .../property-editor/uis/textarea/manifests.ts | 0 .../textarea/property-editor-ui-textarea.element.ts | 2 +- .../textarea/property-editor-ui-textarea.stories.ts | 0 ...-ui-tiny-mce-dimensions-configuration.element.ts | 0 ...-ui-tiny-mce-dimensions-configuration.stories.ts | 2 +- ...tor-ui-tiny-mce-dimensions-configuration.test.ts | 0 .../uis/tiny-mce/config/manifests.ts | 0 ...i-tiny-mce-maximagesize-configuration.element.ts | 0 ...i-tiny-mce-maximagesize-configuration.stories.ts | 2 +- ...r-ui-tiny-mce-maximagesize-configuration.test.ts | 0 ...ui-tiny-mce-stylesheets-configuration.element.ts | 2 +- ...ui-tiny-mce-stylesheets-configuration.stories.ts | 2 +- ...or-ui-tiny-mce-stylesheets-configuration.test.ts | 0 ...tor-ui-tiny-mce-toolbar-configuration.element.ts | 2 +- ...tor-ui-tiny-mce-toolbar-configuration.stories.ts | 2 +- ...editor-ui-tiny-mce-toolbar-configuration.test.ts | 0 .../property-editor/uis/tiny-mce/manifests.ts | 0 .../uis/tiny-mce/plugins/manifests.ts | 0 .../tiny-mce/plugins/tiny-mce-code-editor.plugin.ts | 0 .../plugins/tiny-mce-embeddedmedia.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-macropicker.plugin.ts | 0 .../tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts | 0 .../tiny-mce/property-editor-ui-tiny-mce.element.ts | 2 +- .../tiny-mce/property-editor-ui-tiny-mce.stories.ts | 2 +- .../tiny-mce/property-editor-ui-tiny-mce.test.ts | 0 .../property-editor/uis/toggle/manifests.ts | 0 .../uis/toggle/property-editor-ui-toggle.element.ts | 4 ++-- .../uis/toggle/property-editor-ui-toggle.stories.ts | 0 .../uis/toggle/property-editor-ui-toggle.test.ts | 0 .../uis/tree-picker/config/start-node/manifests.ts | 0 ...erty-editor-ui-tree-picker-start-node.element.ts | 2 +- ...erty-editor-ui-tree-picker-start-node.stories.ts | 0 ...roperty-editor-ui-tree-picker-start-node.test.ts | 0 .../property-editor/uis/tree-picker/manifests.ts | 0 .../property-editor-ui-tree-picker.element.ts | 2 +- .../property-editor-ui-tree-picker.stories.ts | 0 .../property-editor-ui-tree-picker.test.ts | 0 .../property-editor/uis/upload-field/manifests.ts | 0 .../property-editor-ui-upload-field.element.ts | 4 ++-- .../property-editor-ui-upload-field.stories.ts | 0 .../property-editor-ui-upload-field.test.ts | 0 .../property-editor/uis/user-picker/manifests.ts | 0 .../property-editor-ui-user-picker.element.ts | 2 +- .../property-editor-ui-user-picker.stories.ts | 0 .../property-editor-ui-user-picker.test.ts | 0 .../property-editor/uis/value-type/manifests.ts | 0 .../property-editor-ui-value-type.element.ts | 2 +- .../property-editor-ui-value-type.stories.ts | 0 .../property-editor-ui-value-type.test.ts | 0 .../src/packages/core/property/index.ts | 2 -- .../workspace/types/workspace-property-data.type.ts | 2 +- .../workspace-property.context.ts | 2 +- .../workspace-property.element.ts | 4 ++-- .../property-editor-ui-document-picker.element.ts | 2 +- .../property-editor-ui-tags-storage-type.element.ts | 2 +- .../tags/property-editor-ui-tags.element.ts | 2 +- src/Umbraco.Web.UI.Client/tsconfig.json | 13 +++---------- 251 files changed, 84 insertions(+), 93 deletions(-) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/common/clear/property-action-clear.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/common/clear/property-action-clear.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/common/copy/property-action-copy.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/common/copy/property-action-copy.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/shared/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/shared/property-action-menu/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/shared/property-action-menu/property-action-menu.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/shared/property-action/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-action/shared/property-action/property-action.interface.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/config/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/config/property-editor-config-collection.class.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/config/property-editor-config.type.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/events/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/events/property-value-change.event.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.BlockGrid.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.BlockList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.CheckboxList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.ColorPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.DateTime.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Decimal.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Dropdown.Flexible.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.EmailAddress.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.IconPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.ImageCropper.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Integer.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Label.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.ListView.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MarkdownEditor.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MediaPicker3.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MemberGroupPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MemberPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MultiUrlPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.MultipleTextString.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.RadioButtonList.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.RichText.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Slider.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.Tags.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.TextArea.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.TextBox.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.TrueFalse.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.UploadField.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/Umbraco.UserPicker.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/schemas/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/block-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/group-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/config/block-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/property-editor-ui-block-list.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/block-list/property-editor-ui-block-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/checkbox-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/column-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/layout-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts (92%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/order-by/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/date-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts (89%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/dropdown/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/eye-dropper/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/icon-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts (85%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-cropper/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-crops-configuration/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/label/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/label/property-editor-ui-label.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/label/property-editor-ui-label.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/label/property-editor-ui-label.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/markdown-editor/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/media-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-group-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multi-url-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts (96%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multiple-text-string/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number-range/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number-range/property-editor-ui-number-range.element.ts (84%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number-range/property-editor-ui-number-range.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number/property-editor-ui-number.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/number/property-editor-ui-number.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/order-direction/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/overlay-size/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/radio-button-list/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts (86%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/slider/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/slider/property-editor-ui-slider.element.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/slider/property-editor-ui-slider.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/slider/property-editor-ui-slider.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/text-box/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/text-box/property-editor-ui-text-box.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/textarea/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/textarea/property-editor-ui-textarea.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts (96%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts (97%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts (91%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts (97%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/toggle/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/toggle/property-editor-ui-toggle.element.ts (88%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/toggle/property-editor-ui-toggle.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/config/start-node/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts (93%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/upload-field/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts (87%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/user-picker/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts (90%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/value-type/manifests.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/value-type/property-editor-ui-value-type.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{property => }/property-editor/uis/value-type/property-editor-ui-value-type.test.ts (100%) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts index a1d3974626..d43c6320db 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/input-tiny-mce.element.ts @@ -25,7 +25,7 @@ import { import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbMediaHelper } from '@umbraco-cms/backoffice/utils'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UMB_APP_CONTEXT } from '@umbraco-cms/backoffice/app'; import { UmbStylesheetRepository } from '@umbraco-cms/backoffice/stylesheet'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts index 545b7d1720..bb6dd2f8f4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/input-tiny-mce/tiny-mce-plugin.ts @@ -2,7 +2,7 @@ import type { UmbInputTinyMceElement } from '@umbraco-cms/backoffice/components' import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { UmbApi } from '@umbraco-cms/backoffice/extension-api'; import type { Editor } from '@umbraco-cms/backoffice/external/tinymce'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; export class UmbTinyMcePluginBase extends UmbBaseController implements UmbApi { editor: Editor; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts index c75df8354f..1131038379 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts @@ -1,4 +1,4 @@ -import { UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; +import { UmbPropertyEditorConfig } from '../../property-editor/index.js'; import { UmbDataTypeDetailModel, UmbDataTypeDetailRepository } from '@umbraco-cms/backoffice/data-type'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, ifDefined, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts index 1518b4be2a..72594db443 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor'; +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'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts index 1f795ad3b4..fe73fd6d71 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.stories.ts @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import type { UmbRefPropertyEditorUIElement } from './ref-property-editor-ui.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; import './ref-property-editor-ui.element.js'; const meta: Meta = { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts index a84f44cdd7..935ad525d9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/ref-data-type/ref-data-type.stories.ts @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import type { UmbRefDataTypeElement } from './ref-data-type.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; import './ref-data-type.element.js'; const meta: Meta = { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index f249f0a82f..f0ee15691b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -20,7 +20,7 @@ import { PropertyEditorConfigProperty, umbExtensionsRegistry, } from '@umbraco-cms/backoffice/extension-registry'; -import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from 'src/packages/core/property/property-editor/index.js'; +import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '@umbraco-cms/backoffice/property-editor'; export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts index a8c3192d8a..8043f4d9b6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/interfaces/property-editor-ui-element.interface.ts @@ -1,4 +1,4 @@ -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; export interface UmbPropertyEditorUiElement extends HTMLElement { value?: unknown; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts index 33f2d747a3..574ec02770 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/property-editor.model.ts @@ -1,5 +1,5 @@ import type { UmbPropertyEditorUiElement } from '../interfaces/index.js'; -import type { UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; +import type { UmbPropertyEditorConfig } from '../../property-editor/index.js'; import type { ManifestElement, ManifestBase } from '@umbraco-cms/backoffice/extension-api'; export interface ManifestPropertyEditorUi extends ManifestElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/index.ts index 8fed3d6679..21661c1e53 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/index.ts @@ -1,9 +1,9 @@ import { UmbBackofficeNotificationContainerElement, UmbBackofficeModalContainerElement } from './components/index.js'; import { manifests as debugManifests } from './debug/manifests.js'; import { manifests as localizationManifests } from './localization/manifests.js'; -import { manifests as propertyActionManifests } from './property/property-action/manifests.js'; -import { manifests as propertyEditorManifests } from './property/property-editor/manifests.js'; -import { manifests as tinyMcePluginManifests } from './property/property-editor/uis/tiny-mce/plugins/manifests.js'; +import { manifests as propertyActionManifests } from './property-action/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 collectionManifests } from './collection/manifests.js'; import { manifests as workspaceManifests } from './workspace/manifests.js'; import { manifests as modalManifests } from './modal/common/manifests.js'; @@ -32,8 +32,8 @@ export * from './menu/index.js'; export * from './modal/index.js'; export * from './notification/index.js'; export * from './picker-input/index.js'; -export * from './property/property-action/index.js'; -export * from './property/property-editor/index.js'; +export * from './property-action/index.js'; +export * from './property-editor/index.js'; export * from './section/index.js'; export * from './sorter/index.js'; export * from './store/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/clear/property-action-clear.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/common/copy/property-action-copy.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/copy/property-action-copy.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/property-action-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action-menu/property-action-menu.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action-menu/property-action-menu.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/property-action.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/property-action.interface.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-action/shared/property-action/property-action.interface.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-action/shared/property-action/property-action.interface.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config-collection.class.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config-collection.class.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config-collection.class.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config-collection.class.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config.type.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/config/property-editor-config.type.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/config/property-editor-config.type.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/property-value-change.event.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/property-value-change.event.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/events/property-value-change.event.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/events/property-value-change.event.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockGrid.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockGrid.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockGrid.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockGrid.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.BlockList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.BlockList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.CheckboxList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.CheckboxList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.CheckboxList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.CheckboxList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.EyeDropper.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ColorPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ColorPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.DateTime.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.DateTime.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.DateTime.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.DateTime.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Decimal.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Decimal.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Decimal.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Decimal.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Dropdown.Flexible.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Dropdown.Flexible.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Dropdown.Flexible.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Dropdown.Flexible.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.EmailAddress.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.EmailAddress.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.EmailAddress.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.EmailAddress.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.IconPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.IconPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.IconPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.IconPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ImageCropper.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ImageCropper.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ImageCropper.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ImageCropper.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Integer.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Integer.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Integer.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Integer.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Label.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Label.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Label.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Label.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ListView.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ListView.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.ListView.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.ListView.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MarkdownEditor.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MarkdownEditor.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MarkdownEditor.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MarkdownEditor.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MediaPicker3.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MediaPicker3.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MediaPicker3.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MediaPicker3.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberGroupPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberGroupPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberGroupPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberGroupPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MemberPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MemberPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiNodeTreePicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiUrlPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiUrlPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultiUrlPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultiUrlPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultipleTextString.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultipleTextString.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.MultipleTextString.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.MultipleTextString.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RadioButtonList.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RadioButtonList.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RadioButtonList.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RadioButtonList.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RichText.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RichText.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.RichText.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.RichText.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Slider.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Slider.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Slider.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Slider.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Tags.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Tags.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.Tags.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.Tags.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextArea.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextArea.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextArea.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextArea.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextBox.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextBox.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TextBox.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TextBox.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TrueFalse.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TrueFalse.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.TrueFalse.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.TrueFalse.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UploadField.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UploadField.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UploadField.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UploadField.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UserPicker.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UserPicker.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/Umbraco.UserPicker.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/Umbraco.UserPicker.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/schemas/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/schemas/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts index b060fba2c1..6f652c38b3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts index 288c894b26..da03743d67 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts index 574dd6692e..f0bb6966a8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid-inner-test.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index ba42c29fef..5301be738f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,11 +1,11 @@ -import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../../workspace/workspace-property/workspace-property.context.js'; +import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../workspace/workspace-property/workspace-property.context.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import type { UmbRoute, UmbRouterSlotChangeEvent, UmbRouterSlotInitEvent } from '@umbraco-cms/backoffice/router'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-block-grid diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts index 3b8691a823..06844415c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/block-list/property-editor-ui-block-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts index ea10e4335d..ee4a3b8e99 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.ts @@ -1,9 +1,9 @@ -import { UmbInputCheckboxListElement } from '../../../../components/input-checkbox-list/input-checkbox-list.element.js'; +import { UmbInputCheckboxListElement } from '../../../components/input-checkbox-list/input-checkbox-list.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-checkbox-list diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts index e1b31cc504..648d6bb8b5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts index e7ef3bc6e9..fa75c639de 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts index 5c03f4d629..ab4720895c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts index 564b90db11..3bbe2b6fd4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/collection-view/property-editor-ui-collection-view.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts index b26a6efda0..a1e12b4b8c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-editor/property-editor-ui-color-editor.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbSwatchDetails } from '@umbraco-cms/backoffice/models'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbMultipleColorPickerInputElement } from '@umbraco-cms/backoffice/components'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts index b3d0c00135..530fbdcfbf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.ts @@ -3,7 +3,7 @@ import { UUIColorSwatchesEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import type { UmbSwatchDetails } from '@umbraco-cms/backoffice/models'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-color-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts index 58a5dfea36..cd40b10b8f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.stories.ts @@ -3,7 +3,7 @@ import type { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui- import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-date-picker.element.js'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; export default { title: 'Property Editor UIs/Date Picker', diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts similarity index 89% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts index 6fe8752058..11845e05e6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.test.ts @@ -1,8 +1,8 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { UmbInputDateElement } from '../../../../components/input-date/input-date.element.js'; +import { UmbInputDateElement } from '../../../components/input-date/input-date.element.js'; import { UmbPropertyEditorUIDatePickerElement } from './property-editor-ui-date-picker.element.js'; import { defaultA11yConfig } from '@umbraco-cms/internal/test-utils'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; describe('UmbPropertyEditorUIDatePickerElement', () => { let element: UmbPropertyEditorUIDatePickerElement; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts index d09b110e44..a748af85ec 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UUISelectEvent } from '@umbraco-cms/backoffice/external/uui'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts index 507d6eadd8..b654be64a6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UUIColorPickerChangeEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-eye-dropper diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts index ee2286ca57..647b967f86 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.ts @@ -7,7 +7,7 @@ import { UMB_ICON_PICKER_MODAL, } from '@umbraco-cms/backoffice/modal'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-icon-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts similarity index 85% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts index e0bf066b9a..3d69a2c355 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.stories.ts @@ -1,5 +1,5 @@ import { Meta, Story } from '@storybook/web-components'; -import type { UmbIconPickerModalElement } from '../../../../modal/common/icon-picker/icon-picker-modal.element.js'; +import type { UmbIconPickerModalElement } from '../../../modal/common/icon-picker/icon-picker-modal.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-icon-picker.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts index 0178caf7d8..cb354a1844 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.ts @@ -2,8 +2,8 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; -import '../../../../components/input-image-cropper/input-image-cropper.element.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import '../../../components/input-image-cropper/input-image-cropper.element.js'; /** * @element umb-property-editor-ui-image-cropper diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts index fa1f42f6d3..931a3a3559 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-label diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/label/property-editor-ui-label.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/label/property-editor-ui-label.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts index 27d96bb60e..09a25c5d81 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbInputMarkdownElement } from '@umbraco-cms/backoffice/components'; import { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts index 1e90e9beae..4a43a6cd40 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.ts @@ -1,6 +1,6 @@ -import { UmbInputMediaElement } from '../../../../../media/media/components/input-media/input-media.element.js'; +import { UmbInputMediaElement } from '../../../../media/media/components/input-media/input-media.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts index 219bba1381..39d8e40a10 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-member-group-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts index 7891b25e97..062e052117 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-member-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index b0bf6e97d5..0419084673 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -6,7 +6,7 @@ import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/wo import { UmbLinkPickerLink } from '@umbraco-cms/backoffice/modal'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-multi-url-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts index 58d54c43b7..a3204b793c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.ts @@ -1,7 +1,7 @@ import { UmbPropertyValueChangeEvent } from '../../index.js'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { MultipleTextStringValue, UmbInputMultipleTextStringElement } from '@umbraco-cms/backoffice/components'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts similarity index 84% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts index 71d2516550..b28a3d13f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.ts @@ -1,11 +1,11 @@ -import type { UmbInputNumberRangeElement } from '../../../../components/input-number-range/input-number-range.element.js'; +import type { UmbInputNumberRangeElement } from '../../../components/input-number-range/input-number-range.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -import '../../../../components/input-number-range/input-number-range.element.js'; +import '../../../components/input-number-range/input-number-range.element.js'; type ValueType = { min?: number; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number-range/property-editor-ui-number-range.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts index e25e881e05..b7c369276c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined } from '@umbraco-c import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @customElement('umb-property-editor-ui-number') export class UmbPropertyEditorUINumberElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/number/property-editor-ui-number.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/number/property-editor-ui-number.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts index 0589ebcbbe..911868952d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-order-direction diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts index 9699d83826..f726414e7c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-overlay-size diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts similarity index 86% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts index a8ad6dc4a1..aafbbe3b6d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.ts @@ -1,8 +1,8 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import '../../../../components/input-radio-button-list/input-radio-button-list.element.js'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; -import type { UmbInputRadioButtonListElement } from '../../../../components/input-radio-button-list/input-radio-button-list.element.js'; +import '../../../components/input-radio-button-list/input-radio-button-list.element.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import type { UmbInputRadioButtonListElement } from '../../../components/input-radio-button-list/input-radio-button-list.element.js'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts index 9ecb30057e..66d5eb79c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.ts @@ -1,9 +1,9 @@ -import { UmbInputSliderElement } from '../../../../components/input-slider/input-slider.element.js'; +import { UmbInputSliderElement } from '../../../components/input-slider/input-slider.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-slider diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/slider/property-editor-ui-slider.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/slider/property-editor-ui-slider.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts index 0f5bbceb99..2d053b43d8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined } from '@umbraco-c import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UUIInputElement } from '@umbraco-cms/backoffice/external/uui'; type UuiInputTypeType = typeof UUIInputElement.prototype.type; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts index 8bb1801b32..2148059eec 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.ts @@ -2,7 +2,7 @@ import { css, html, customElement, property, state, ifDefined, styleMap } from ' import { UUITextareaElement } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @customElement('umb-property-editor-ui-textarea') export class UmbPropertyEditorUITextareaElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts index d5bc640079..c3e8ade090 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.stories.ts @@ -1,6 +1,6 @@ import { Meta } from '@storybook/web-components'; import './property-editor-ui-tiny-mce-dimensions-configuration.element.js'; -import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import { UmbDataTypeDetailModel } from '@umbraco-cms/backoffice/data-type'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts index cfcdb85ad8..156d5f2dd0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-maximagesize-configuration.element.js'; import { UmbDataTypeDetailModel } from '@umbraco-cms/backoffice/data-type'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts index 86eeed5c14..b40d99490e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.ts @@ -3,7 +3,7 @@ import { css, customElement, html, property, state } from '@umbraco-cms/backoffi import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbStylesheetRepository } from '@umbraco-cms/backoffice/stylesheet'; import { StylesheetOverviewResponseModel } from '@umbraco-cms/backoffice/backend-api'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts index e042aa6c7e..815c313ca4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-stylesheets-configuration.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts similarity index 97% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts index a76cc50be6..ac389d7515 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.ts @@ -3,7 +3,7 @@ import { customElement, css, html, property, map, state, PropertyValueMap } from import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { UmbPropertyEditorUiElement, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { firstValueFrom } from '@umbraco-cms/backoffice/external/rxjs'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { tinymce } from '@umbraco-cms/backoffice/external/tinymce'; const tinyIconSet = tinymce.IconManager.get('default'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts similarity index 91% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts index 391cfeaa48..595052f517 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.stories.ts @@ -1,5 +1,5 @@ import { Meta } from '@storybook/web-components'; -import { umbDataTypeData } from '../../../../../../../../mocks/data/data-type.data.js'; +import { umbDataTypeData } from '../../../../../../../mocks/data/data-type.data.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property-editor-ui-tiny-mce-toolbar-configuration.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts index 66912d954b..2c32a2eade 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.ts @@ -2,7 +2,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-tiny-mce diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts similarity index 97% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts index c5be5b806f..14e5bbd6b5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.stories.ts @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from '@storybook/web-components'; import type { UmbPropertyEditorUITinyMceElement } from './property-editor-ui-tiny-mce.element.js'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import './property-editor-ui-tiny-mce.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts similarity index 88% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts index d55dfc7b29..28a668a60d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.ts @@ -1,7 +1,7 @@ -import { UmbInputToggleElement } from '../../../../components/input-toggle/input-toggle.element.js'; +import { UmbInputToggleElement } from '../../../components/input-toggle/input-toggle.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/toggle/property-editor-ui-toggle.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts similarity index 93% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts index 2d050690f3..ea993e0e7a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.ts @@ -1,7 +1,7 @@ import { StartNode, UmbInputContentTypeElement } from '@umbraco-cms/backoffice/content-type'; import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts index 49f8548964..eb89ced60f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { StartNode } from '@umbraco-cms/backoffice/content-type'; import { UmbInputTreeElement } from '@umbraco-cms/backoffice/tree'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts similarity index 87% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts index a0abd2d8c6..11d5185613 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.ts @@ -1,9 +1,9 @@ -import { UmbInputUploadFieldElement } from '../../../../components/input-upload-field/input-upload-field.element.js'; +import { UmbInputUploadFieldElement } from '../../../components/input-upload-field/input-upload-field.element.js'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-upload-field diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts index 674cf7ea5e..cc85887a5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property } from '@umbraco-cms/backoffice/external/ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-user-picker diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/manifests.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/manifests.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts index c32d009a9d..2fbcca9a08 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.ts @@ -3,7 +3,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUISelectEvent } from '@umbraco-cms/backoffice/external/uui'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-property-editor-ui-value-type diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property/property-editor/uis/value-type/property-editor-ui-value-type.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.test.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts deleted file mode 100644 index d79be5a92b..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './property-action/index.js'; -export * from './property-editor/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts index a780c859c3..6773a83e5b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/workspace-property-data.type.ts @@ -1,4 +1,4 @@ -import { type UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; +import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; export type WorkspacePropertyData = { alias?: string; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts index 71bd15d9d8..2e6c4055a0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts @@ -12,7 +12,7 @@ import { UmbBasicState, } from '@umbraco-cms/backoffice/observable-api'; import { UmbContextProviderController, UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; export class UmbWorkspacePropertyContext extends UmbBaseController { private _providerController: UmbContextProviderController; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts index 4d5cd9852e..360f1db809 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts @@ -1,4 +1,4 @@ -import { type UmbPropertyEditorConfig } from '../../property/property-editor/index.js'; +import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; import { UmbWorkspacePropertyContext } from './workspace-property.context.js'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; @@ -6,7 +6,7 @@ import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; import { ManifestPropertyEditorUi, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-workspace-property diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts index b684cdb8e9..0fbadb185a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.ts @@ -2,7 +2,7 @@ import type { UmbInputDocumentElement } from '../../components/input-document/in import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @customElement('umb-property-editor-ui-document-picker') export class UmbPropertyEditorUIContentPickerElement extends UmbLitElement implements UmbPropertyEditorUiElement { diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts index aa822eb7b0..defb1408d0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor'; +import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 00f905c5aa..5d47f69c9c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -2,7 +2,7 @@ import { UmbTagsInputElement } from '../../components/tags-input/tags-input.elem import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; -import type { UmbPropertyEditorConfigCollection } from 'src/packages/core/property/property-editor/index.js'; +import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json index 2a3d4dbf95..9aeafe340d 100644 --- a/src/Umbraco.Web.UI.Client/tsconfig.json +++ b/src/Umbraco.Web.UI.Client/tsconfig.json @@ -70,8 +70,8 @@ "@umbraco-cms/backoffice/modal": ["src/packages/core/modal"], "@umbraco-cms/backoffice/notification": ["src/packages/core/notification"], "@umbraco-cms/backoffice/picker-input": ["src/packages/core/picker-input"], - "@umbraco-cms/backoffice/property-action": ["src/packages/core/property/property-action"], - "@umbraco-cms/backoffice/property-editor": ["src/packages/core/property/property-editor"], + "@umbraco-cms/backoffice/property-action": ["src/packages/core/property-action"], + "@umbraco-cms/backoffice/property-editor": ["src/packages/core/property-editor"], "@umbraco-cms/backoffice/section": ["src/packages/core/section"], "@umbraco-cms/backoffice/sorter": ["src/packages/core/sorter"], "@umbraco-cms/backoffice/store": ["src/packages/core/store"], @@ -126,14 +126,7 @@ "@umbraco-cms/internal/test-utils": ["utils/test-utils.ts"] } }, - "include": [ - "src/**/*.ts", - "apps/**/*.ts", - "e2e/**/*.ts", - "index.ts", - "storybook/stories/**/*.ts", - "examples/**/*.ts" - ], + "include": ["src/**/*.ts", "apps/**/*.ts", "e2e/**/*.ts", "index.ts", "storybook/stories/**/*.ts", "examples/**/*.ts", ], "references": [ { "path": "./tsconfig.node.json" From d032716fd81b4d6cccb610fd8ba277e14eae13cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 08:39:53 +0100 Subject: [PATCH 25/44] rename property --- src/Umbraco.Web.UI.Client/package.json | 1 + ...ata-type-details-workspace-view.element.ts | 4 +- .../workspace-view-data-type-info.element.ts | 12 ++--- .../embedded-media-modal.element.ts | 24 +++++----- .../clear/property-action-clear.element.ts | 6 +-- .../property-editor-ui-block-grid.element.ts | 4 +- ...erty-editor-ui-multi-url-picker.element.ts | 4 +- .../src/packages/core/workspace/index.ts | 4 +- .../property-layout.element.ts} | 12 ++--- .../property-layout.stories.ts | 19 ++++++++ .../packages/core/workspace/property/index.ts | 2 + .../property.context.ts} | 8 ++-- .../property.element.ts} | 25 ++++++----- .../property.stories.ts} | 10 ++--- .../workspace-property-layout.stories.ts | 19 -------- .../workspace/workspace-property/index.ts | 2 - ...orkspace-view-dictionary-editor.element.ts | 4 +- ...pe-workspace-view-edit-property.element.ts | 2 +- ...nt-type-workspace-view-settings.element.ts | 16 +++---- ...t-type-workspace-view-structure.element.ts | 12 ++--- ...t-type-workspace-view-templates.element.ts | 8 ++-- ...pe-workspace-view-edit-property.element.ts | 2 +- ...a-type-workspace-view-structure.element.ts | 12 ++--- .../workspace-package-builder.element.ts | 44 +++++++------------ ...language-details-workspace-view.element.ts | 16 +++---- ...pe-workspace-view-relation-type.element.ts | 12 ++--- .../tags/property-editor-ui-tags.element.ts | 4 +- .../user-group-workspace-editor.element.ts | 12 ++--- .../user-workspace-access-settings.element.ts | 12 ++--- ...user-workspace-profile-settings.element.ts | 8 ++-- 30 files changed, 153 insertions(+), 167 deletions(-) rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{workspace-property-layout/workspace-property-layout.element.ts => property-layout/property-layout.element.ts} (87%) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{workspace-property/workspace-property.context.ts => property/property.context.ts} (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{workspace-property/workspace-property.element.ts => property/property.element.ts} (89%) rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{workspace-property/workspace-property.stories.ts => property/property.stories.ts} (66%) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/index.ts diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index baeb1ad72e..dd457ce475 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -120,6 +120,7 @@ "storybook:build": "npm run wc-analyze && storybook build", "storybook": "npm run wc-analyze && storybook dev -p 6006", "test:e2e": "npm run auth:test:e2e && npm run backoffice:test:e2e", + "test:dev": "web-test-runner --config ./web-test-runner.dev.config.mjs", "test:dev-watch": "web-test-runner --watch --config ./web-test-runner.dev.config.mjs", "test:watch": "web-test-runner --watch", "test": "web-test-runner --coverage", diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/details/data-type-details-workspace-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/details/data-type-details-workspace-view.element.ts index 32a3413883..3d1734038f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/details/data-type-details-workspace-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/details/data-type-details-workspace-view.element.ts @@ -91,7 +91,7 @@ export class UmbDataTypeDetailsWorkspaceViewEditElement extends UmbLitElement im #renderPropertyEditorReference() { return html` - + ${this._propertyEditorUiAlias && this._propertyEditorSchemaAlias ? html` @@ -117,7 +117,7 @@ export class UmbDataTypeDetailsWorkspaceViewEditElement extends UmbLitElement im color="default" @click=${this._openPropertyEditorUIPicker}>
    `} - + `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/info/workspace-view-data-type-info.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/info/workspace-view-data-type-info.element.ts index 1b5e23dd26..b6fb55e744 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/info/workspace-view-data-type-info.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/views/info/workspace-view-data-type-info.element.ts @@ -37,16 +37,16 @@ export class UmbWorkspaceViewDataTypeInfoElement extends UmbLitElement implement private _renderGeneralInfo() { return html` - +
    ${this._dataType?.unique}
    -
    - + +
    ${this._dataType?.propertyEditorAlias}
    -
    + - +
    ${this._dataType?.propertyEditorUiAlias}
    -
    +
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/embedded-media/embedded-media-modal.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/embedded-media/embedded-media-modal.element.ts index a51a7288bc..53591fe73a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/embedded-media/embedded-media-modal.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/modal/common/embedded-media/embedded-media-modal.element.ts @@ -164,7 +164,7 @@ export class UmbEmbeddedMediaModalElement extends UmbModalBaseElement< return html` - +
    -
    + ${when( this.#embedResult?.oEmbedStatus === OEmbedStatus.Success || this._model.a11yInfo, () => - html` + html`
    ${when(this.#loading, () => html``)} ${when(this.#embedResult?.markup, () => html`${unsafeHTML(this.#embedResult.markup)}`)} @@ -191,34 +191,34 @@ export class UmbEmbeddedMediaModalElement extends UmbModalBaseElement< () => html` `, )}
    -
    `, + `, )} - + - + - + - + - + - +
    Cancel @@ -257,11 +257,11 @@ export class UmbEmbeddedMediaModalElement extends UmbModalBaseElement< width: 1px; } - umb-workspace-property-layout:first-child { + umb-property-layout:first-child { padding-top: 0; } - umb-workspace-property-layout:last-child { + umb-property-layout:last-child { padding-bottom: 0; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts index 3dde846b72..e46bb99fa0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts @@ -1,6 +1,6 @@ import type { UmbPropertyAction } from '../../shared/property-action/property-action.interface.js'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbWorkspacePropertyContext, UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; +import { UmbPropertyContext, UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-property-action-clear') @@ -10,7 +10,7 @@ export class UmbPropertyActionClearElement extends UmbLitElement implements UmbP // THESE OUT COMMENTED CODE IS USED FOR THE EXAMPLE BELOW, TODO: Should be transferred to some documentation. //private _propertyActionMenuContext?: UmbPropertyActionMenuContext; - private _propertyContext?: UmbWorkspacePropertyContext; + private _propertyContext?: UmbPropertyContext; constructor() { super(); @@ -20,7 +20,7 @@ export class UmbPropertyActionClearElement extends UmbLitElement implements UmbP this._propertyActionMenuContext = propertyActionsContext; }); */ - this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (propertyContext: UmbWorkspacePropertyContext) => { + this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (propertyContext: UmbPropertyContext) => { this._propertyContext = propertyContext; }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index 5301be738f..7c33c908cf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,4 +1,4 @@ -import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../workspace/workspace-property/workspace-property.context.js'; +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; @@ -33,7 +33,7 @@ export class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implement constructor() { super(); - this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { this.observe(context?.variantId, (propertyVariantId) => { this._variantId = propertyVariantId; this.setupRoutes(); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index 0419084673..9c8be11311 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -2,7 +2,7 @@ import { html, customElement, property, state } from '@umbraco-cms/backoffice/ex import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; import { UmbInputMultiUrlElement } from '@umbraco-cms/backoffice/components'; -import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { UmbLinkPickerLink } from '@umbraco-cms/backoffice/modal'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -49,7 +49,7 @@ export class UmbPropertyEditorUIMultiUrlPickerElement extends UmbLitElement impl constructor() { super(); - this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { this.observe(context.alias, (alias) => { this._alias = alias; }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts index 2bca6d682d..7a38d10a55 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts @@ -8,7 +8,7 @@ export * from './workspace-editor/index.js'; export * from './workspace-footer/index.js'; export * from './workspace-is-new-redirect-controller/index.js'; export * from './workspace-modal/index.js'; -export * from './workspace-property-layout/workspace-property-layout.element.js'; -export * from './workspace-property/index.js'; +export * from './property-layout/property-layout.element.js'; +export * from './property/index.js'; export * from './workspace-split-view-manager.class.js'; export * from './workspace-split-view/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.element.ts similarity index 87% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.element.ts index 1d244f479d..d5971aea5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.element.ts @@ -2,14 +2,14 @@ import { css, html, LitElement, customElement, property } from '@umbraco-cms/bac import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; /** - * @element umb-workspace-property-layout + * @element umb-property-layout * @description - Element for displaying a property in an workspace. * @slot editor - Slot for rendering the Property Editor * @slot description - Slot for rendering things below the label. - * @slot property-action-menu - Slot for rendering the Property Action Menu + * @slot action-menu - Slot for rendering the Property Action Menu */ -@customElement('umb-workspace-property-layout') -export class UmbWorkspacePropertyLayoutElement extends LitElement { +@customElement('umb-property-layout') +export class UmbPropertyLayoutElement extends LitElement { /** * Alias. The technical name of the property. * @type {string} @@ -52,7 +52,7 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement { return html`
    ${this.label} - +
    ${this.description}
    @@ -117,6 +117,6 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement { declare global { interface HTMLElementTagNameMap { - 'umb-workspace-property-layout': UmbWorkspacePropertyLayoutElement; + 'umb-property-layout': UmbPropertyLayoutElement; } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts new file mode 100644 index 0000000000..114eaa732c --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts @@ -0,0 +1,19 @@ +import { Meta, Story } from '@storybook/web-components'; +import type { UmbPropertyLayoutElement } from './property-layout.element.js'; +import { html } from '@umbraco-cms/backoffice/external/lit'; + +import './property-layout.element.js'; + +export default { + title: 'Workspaces/Property Layout', + component: 'umb-property-layout', + id: 'umb-property-layout', +} as Meta; + +export const AAAOverview: Story = () => + html` +
    Action Menu
    + +
    Editor
    +
    `; +AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts new file mode 100644 index 0000000000..bc6211a02c --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts @@ -0,0 +1,2 @@ +export * from './property.context.js'; +export * from './property.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts index 2e6c4055a0..cb45df033a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts @@ -14,7 +14,7 @@ import { import { UmbContextProviderController, UmbContextToken } from '@umbraco-cms/backoffice/context-api'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; -export class UmbWorkspacePropertyContext extends UmbBaseController { +export class UmbPropertyContext extends UmbBaseController { private _providerController: UmbContextProviderController; #data = new UmbObjectState>({}); @@ -59,7 +59,7 @@ export class UmbWorkspacePropertyContext extends UmbBaseControl this._observeProperty(); }); - this._providerController = new UmbContextProviderController(host, UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, this); + this._providerController = new UmbContextProviderController(host, UMB_PROPERTY_CONTEXT_TOKEN, this); this.observe(this.configValues, (configValues) => { this.#configCollection.next(configValues ? new UmbPropertyEditorConfigCollection(configValues) : undefined); @@ -139,6 +139,4 @@ export class UmbWorkspacePropertyContext extends UmbBaseControl } } -export const UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN = new UmbContextToken( - 'UmbWorkspacePropertyContext', -); +export const UMB_PROPERTY_CONTEXT_TOKEN = new UmbContextToken('UmbPropertyContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.element.ts similarity index 89% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.element.ts index 360f1db809..a5e23310d3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.element.ts @@ -1,5 +1,5 @@ import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; -import { UmbWorkspacePropertyContext } from './workspace-property.context.js'; +import { UmbPropertyContext } from './property.context.js'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; @@ -10,8 +10,9 @@ import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/prope /** * @element umb-workspace-property - * @description - Component for displaying a entity property. The Element will render a Property Editor based on the Property Editor UI alias passed to the element. - * The element will also render all Property Actions related to the Property Editor. + * @description Component for displaying a property with editor from extension registry. + * The Element will render a Property Editor based on the Property Editor UI alias passed to the element. + * This will also render all Property Actions related to the Property Editor UI Alias. */ @customElement('umb-workspace-property') @@ -95,7 +96,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { @state() private _description?: string; - private _propertyContext = new UmbWorkspacePropertyContext(this); + private _propertyContext = new UmbPropertyContext(this); private _valueObserver?: UmbObserverController; private _configObserver?: UmbObserverController; @@ -181,7 +182,7 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { render() { return html` - ${this._variantDifference}` : ''}
    ${this._element}
    -
    + `; } private _renderPropertyActionMenu() { return html`${this._propertyEditorUiAlias ? html`` : ''}`; @@ -216,13 +217,13 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { color: var(--uui-color-text-alt); } - #property-action-menu { + #action-menu { opacity: 0; } - #layout:focus-within #property-action-menu, - #layout:hover #property-action-menu, - #property-action-menu[open] { + #layout:focus-within #action-menu, + #layout:hover #action-menu, + #action-menu[open] { opacity: 1; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.stories.ts similarity index 66% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.stories.ts index 1f57c64cad..987bcaa89c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/workspace-property.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.stories.ts @@ -1,13 +1,13 @@ import { Meta, Story } from '@storybook/web-components'; -import type { UmbWorkspacePropertyElement } from './workspace-property.element.js'; +import type { UmbWorkspacePropertyElement } from './property.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; -import './workspace-property.element.js'; +import './property.element.js'; export default { - title: 'Components/Entity Property', - component: 'umb-workspace-property', - id: 'umb-workspace-property', + title: 'Components/Property', + component: 'umb-property', + id: 'umb-property', } as Meta; export const AAAOverview: Story = () => diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts deleted file mode 100644 index 9dce8c495a..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-layout/workspace-property-layout.stories.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Meta, Story } from '@storybook/web-components'; -import type { UmbWorkspacePropertyLayoutElement } from './workspace-property-layout.element.js'; -import { html } from '@umbraco-cms/backoffice/external/lit'; - -import './workspace-property-layout.element.js'; - -export default { - title: 'Workspaces/Shared/Editor Property Layout', - component: 'umb-workspace-property-layout', - id: 'umb-workspace-property-layout', -} as Meta; - -export const AAAOverview: Story = () => - html` -
    Menu
    - -
    Editor
    -
    `; -AAAOverview.storyName = 'Overview'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/index.ts deleted file mode 100644 index e2f4580fb6..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './workspace-property.context.js'; -export * from './workspace-property.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.ts index 2d1007e331..1be03b42d7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.ts @@ -39,14 +39,14 @@ export class UmbWorkspaceViewDictionaryEditorElement extends UmbLitElement { const translation = this._dictionary?.translations?.find((x) => x.isoCode === language.isoCode); - return html` + return html` - `; + `; } #onTextareaChange(e: Event) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.ts index 21b2026c1e..f4d1b837b8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.ts @@ -214,7 +214,7 @@ export class UmbDocumentTypeWorkspacePropertyElement extends UmbLitElement { .value=${this.property.name} @input=${this.#onNameChange}> ${this.renderPropertyAlias()} - +

    - +

    Allow editors to create content of different languages.
    - - + +
    Allow editors to segment their content.
    -
    - + +
    An Element Type is used for content instances in Property Editors, like the Block Editors.
    @@ -77,10 +77,10 @@ export class UmbDocumentTypeWorkspaceViewSettingsElement extends UmbLitElement i }} label="Element type"> -
    +
    - +
    Allow overriding the global history cleanup settings. (TODO: this ui is not working.. )
    @@ -92,7 +92,7 @@ export class UmbDocumentTypeWorkspaceViewSettingsElement extends UmbLitElement i Keep latest version per day for X days -
    +
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts index dddbdcda73..bcda0f288e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.ts @@ -42,7 +42,7 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement render() { return html` - +
    ${this.localize.term('contentTypeEditor_allowAsRootDescription')}
    -
    - + +
    Allow content of the specified types to be created underneath content of this type.
    @@ -72,13 +72,13 @@ export class UmbDocumentTypeWorkspaceViewStructureElement extends UmbLitElement }}"> -
    +
    - +
    Provides an overview of child content and hides it in the tree.
    -
    +
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.ts index 2989d66a16..915bfa7f80 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.ts @@ -57,7 +57,7 @@ export class UmbDocumentTypeWorkspaceViewTemplatesElement extends UmbLitElement render() { return html` - +
    Choose which templates editors are allowed to use on content of this type
    -
    +
    `; } @@ -87,10 +87,10 @@ export class UmbDocumentTypeWorkspaceViewTemplatesElement extends UmbLitElement align-items: stretch; } - umb-workspace-property-layout { + umb-property-layout { border-top: 1px solid var(--uui-color-border); } - umb-workspace-property-layout:first-child { + umb-property-layout:first-child { padding-top: 0; border: none; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-property.element.ts index c9ce513c8f..925fdce958 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit-property.element.ts @@ -214,7 +214,7 @@ export class UmbMediaTypeWorkspacePropertyElement extends UmbLitElement { .value=${this.property.name} @input=${this.#onNameChange}> ${this.renderPropertyAlias()} - +

    - +

    ${this.localize.term('contentTypeEditor_allowAsRootDescription')}
    - - + +
    Allow content of the specified types to be created underneath content of this type.
    @@ -70,13 +70,13 @@ export class UmbMediaTypeWorkspaceViewStructureElement extends UmbLitElement imp }}"> -
    + - +
    Provides an overview of child content and hides it in the tree.
    -
    +
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts b/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts index 39a109eb1e..4e652c9d30 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/packages/package-builder/workspace/workspace-package-builder.element.ts @@ -132,49 +132,35 @@ export class UmbWorkspacePackageBuilderElement extends UmbLitElement { } #renderEditors() { - return html` + return html` ${this.#renderContentSection()} - + - ${this.#renderMediaSection()} - + ${this.#renderMediaSection()} - + ${this.#renderDocumentTypeSection()} - + - - ${this.#renderMediaTypeSection()} - + ${this.#renderMediaTypeSection()} - - ${this.#renderLanguageSection()} - + ${this.#renderLanguageSection()} - - ${this.#renderDictionarySection()} - + ${this.#renderDictionarySection()} - - ${this.#renderDataTypeSection()} - + ${this.#renderDataTypeSection()} - - ${this.#renderTemplateSection()} - + ${this.#renderTemplateSection()} - + ${this.#renderStylesheetsSection()} - + - - ${this.#renderScriptsSection()} - + ${this.#renderScriptsSection()} - + ${this.#renderPartialViewSection()} - `; + `; } #renderContentSection() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.ts index 5cf2a5c060..87bf80b3df 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.ts @@ -116,7 +116,7 @@ export class UmbLanguageDetailsWorkspaceViewElement extends UmbLitElement implem render() { return html` - +
    html`
    ${isoCodeError}
    `, )}
    -
    + - +
    ${this._language?.isoCode}
    -
    + - +
    -
    + - language.isoCode !== this._language?.isoCode}> - +
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts index 323756f826..b39450a01c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.ts @@ -53,7 +53,7 @@ export class UmbRelationTypeWorkspaceViewRelationTypeElement extends UmbLitEleme render() { return html` - + - - ${this.#renderParentProperty()} - ${this.#renderChildProperty()} - + + ${this.#renderParentProperty()} + ${this.#renderChildProperty()} + - + `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 5d47f69c9c..522f6488cf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -1,7 +1,7 @@ import { UmbTagsInputElement } from '../../components/tags-input/tags-input.element.js'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -36,7 +36,7 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb constructor() { super(); - this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { this.observe(context.variantId, (id) => { if (id && id.culture !== undefined) { this._culture = id.culture; diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/user-group-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/user-group-workspace-editor.element.ts index a7cdcb9f13..86fc9f3e77 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/user-group-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user-group/workspace/user-group-workspace-editor.element.ts @@ -103,15 +103,15 @@ export class UmbUserGroupWorkspaceEditorElement extends UmbLitElement { return html`
    - - - + - - + - +
    diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-access-settings/user-workspace-access-settings.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-access-settings/user-workspace-access-settings.element.ts index f85ad54e7f..d63b9ad69c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-access-settings/user-workspace-access-settings.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-access-settings/user-workspace-access-settings.element.ts @@ -43,30 +43,30 @@ export class UmbUserWorkspaceAccessSettingsElement extends UmbLitElement { return html`
    Assign Access
    - - - + - - + - +
    diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-profile-settings/user-workspace-profile-settings.element.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-profile-settings/user-workspace-profile-settings.element.ts index b885012635..ae4f4d3af1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-profile-settings/user-workspace-profile-settings.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/workspace/components/user-workspace-profile-settings/user-workspace-profile-settings.element.ts @@ -39,20 +39,20 @@ export class UmbUserWorkspaceProfileSettingsElement extends UmbLitElement { #renderEmailProperty() { return html` - + - + `; } #renderUILanguageProperty() { return html` - - + `; } From 3293e23b865d5c844ae8a0ce8d66a644e33d8252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 10:11:00 +0100 Subject: [PATCH 26/44] rename to dataset --- .../variant-selector.element.ts | 10 +++--- .../workspace/data-type-workspace.context.ts | 4 +-- .../src/packages/core/workspace/index.ts | 2 +- .../core/workspace/property-dataset/index.ts | 6 ++++ ...able-property-dataset-context.interface.ts | 8 +++++ ...nameable-property-dataset-context.token.ts | 13 ++++++++ .../property-dataset-base-context.ts} | 19 +++++------ .../property-dataset-context.interface.ts} | 9 +++--- .../property-dataset-context.token.ts | 4 +++ .../property-dataset.element.test.ts} | 16 +++++----- .../property-dataset.element.ts} | 32 +++++++++++-------- .../workspace/property/property.context.ts | 6 ++-- .../core/workspace/variant-context/index.ts | 6 ---- .../nameable-variant-context.interface.ts | 8 ----- .../nameable-variant-context.token.ts | 12 ------- .../variant-context/variant-context.token.ts | 4 --- ...rkspace-invariantable-context.interface.ts | 4 +-- ...workspace-variantable-context.interface.ts | 4 +-- .../workspace-property-dataset/index.ts | 1 + ...ant-workspace-property-dataset-context.ts} | 32 +++++++++++-------- .../workspace-split-view.context.ts | 4 +-- .../document-variant-context.token.ts | 6 ++-- .../document-variant-context.ts | 10 ++++-- .../web-test-runner.dev.config.mjs | 2 ++ 24 files changed, 120 insertions(+), 102 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{variant-context/basic-variant-context.ts => property-dataset/property-dataset-base-context.ts} (79%) rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{variant-context/variant-context.interface.ts => property-dataset/property-dataset-context.interface.ts} (81%) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{variant-context/basic-variant.test.ts => property-dataset/property-dataset.element.test.ts} (85%) rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{variant-context/basic-variant.element.ts => property-dataset/property-dataset.element.ts} (72%) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.token.ts delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.token.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/workspace/{variant-context/invariant-workspace-variant-context.ts => workspace-property-dataset/invariant-workspace-property-dataset-context.ts} (59%) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts index 55d9cf21b3..f209bcac47 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts @@ -4,9 +4,9 @@ import { css, html, nothing, customElement, property, state, ifDefined } from '@ import { UmbWorkspaceSplitViewContext, UMB_WORKSPACE_SPLIT_VIEW_CONTEXT, - UMB_VARIANT_CONTEXT, + UMB_PROPERTY_DATASET_CONTEXT, ActiveVariant, - isNameablePropertySetContext, + isNameablePropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { DocumentVariantResponseModel, ContentStateModel } from '@umbraco-cms/backoffice/backend-api'; @@ -26,7 +26,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { } #splitViewContext?: UmbWorkspaceSplitViewContext; - #variantContext?: typeof UMB_VARIANT_CONTEXT.TYPE; + #variantContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; @state() private _name?: string; @@ -54,7 +54,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { this._observeVariants(); this._observeActiveVariants(); }); - this.consumeContext(UMB_VARIANT_CONTEXT, (instance) => { + this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => { this.#variantContext = instance; this._observeVariantContext(); }); @@ -128,7 +128,7 @@ export class UmbVariantSelectorElement extends UmbLitElement { if ( typeof target?.value === 'string' && this.#variantContext && - isNameablePropertySetContext(this.#variantContext) + isNameablePropertyDatasetContext(this.#variantContext) ) { this.#variantContext.setName(target.value); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index f0ee15691b..134a9b44e7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -4,7 +4,7 @@ import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface, - UmbBasicVariantContext, + UmbPropertyDatasetBaseContext, } from '@umbraco-cms/backoffice/workspace'; import { appendToFrozenArray, @@ -146,7 +146,7 @@ export class UmbDataTypeWorkspaceContext } createVariantContext(host: UmbControllerHost) { - const context = new UmbBasicVariantContext(host); + const context = new UmbPropertyDatasetBaseContext(host); // Observe workspace name: this.observe(this.name, (name) => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts index 7a38d10a55..996eced338 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts @@ -1,4 +1,4 @@ -export * from './variant-context/index.js'; +export * from './property-dataset/index.js'; export * from './workspace-action-menu/index.js'; export * from './workspace-action/index.js'; export type { WorkspaceAliasConditionConfig } from './workspace-alias.condition.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts new file mode 100644 index 0000000000..780ecba6e3 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts @@ -0,0 +1,6 @@ +export * from './property-dataset-base-context.js'; +export * from './property-dataset-context.interface.js'; +export * from './property-dataset-context.token.js'; +export * from './nameable-property-dataset-context.interface.js'; +export * from './nameable-property-dataset-context.token.js'; +export * from '../workspace-property-dataset/invariant-workspace-property-dataset-context.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts new file mode 100644 index 0000000000..fa1f37fe5e --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts @@ -0,0 +1,8 @@ +import { UmbPropertyDatasetContext } from './property-dataset-context.interface.js'; + +/** + * A variant context with ability to set the name of it. + */ +export interface UmbNameablePropertyDatasetContext extends UmbPropertyDatasetContext { + setName(name: string): void; +} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts new file mode 100644 index 0000000000..4f74142bb3 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts @@ -0,0 +1,13 @@ +import { type UmbPropertyDatasetContext } from './property-dataset-context.interface.js'; +import { UmbNameablePropertyDatasetContext } from './nameable-property-dataset-context.interface.js'; +import { UMB_PROPERTY_DATASET_CONTEXT } from './property-dataset-context.token.js'; +import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; + +export const isNameablePropertyDatasetContext = ( + context: UmbPropertyDatasetContext, +): context is UmbNameablePropertyDatasetContext => 'setName' in context; + +export const UMB_NAMEABLE_PROPERTY_DATASET_CONTEXT = new UmbContextToken< + UmbPropertyDatasetContext, + UmbNameablePropertyDatasetContext +>(UMB_PROPERTY_DATASET_CONTEXT.toString(), undefined, isNameablePropertyDatasetContext); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts similarity index 79% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts index 17d43f8896..6daeff51c5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts @@ -2,20 +2,21 @@ import type { UmbPropertyValueData } from '../types/property-value-data.type.js' import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { - UMB_VARIANT_CONTEXT, - type UmbNameableVariantContext, - type UmbVariantContext, + UMB_PROPERTY_DATASET_CONTEXT, + type UmbNameablePropertyDatasetContext, + type UmbPropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; import { UmbArrayState, UmbStringState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; /** - * A basic variant context, holds a name and a a set of properties. - * This is the base type for all variant contexts. + * A base property dataset context implementation. + * @class UmbPropertyDatasetBaseContext + * @extends {UmbContextBase} */ -export class UmbBasicVariantContext - extends UmbContextBase - implements UmbVariantContext, UmbNameableVariantContext +export class UmbPropertyDatasetBaseContext + extends UmbContextBase + implements UmbPropertyDatasetContext, UmbNameablePropertyDatasetContext { #name = new UmbStringState(undefined); name = this.#name.asObservable(); @@ -44,7 +45,7 @@ export class UmbBasicVariantContext constructor(host: UmbControllerHost) { // The controller alias, is a very generic name cause we want only one of these for this controller host. - super(host, UMB_VARIANT_CONTEXT); + super(host, UMB_PROPERTY_DATASET_CONTEXT); } /** diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.interface.ts similarity index 81% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.interface.ts index c9233f2fe9..95ecee1067 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.interface.ts @@ -2,19 +2,20 @@ import type { UmbVariantId } from '../../variant/variant-id.class.js'; import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; /** - * A variant context, represents a set of properties. + * A property dataset context, represents the data of a set of properties. * This can take form as many, so to list a few: - * - A specific variant of content - * - Content that does not vary + * - A specific variant of content. + * - Content that does not vary. * - A block. * - A DataType configuration. + * - A property editor that hosts a set of properties. * * The base type of this holds a Name and some Properties. * Some might be enriches with Variant Info, like culture and segment. * Others might have saved publishing status. * Also setting the name is an additional feature. */ -export interface UmbVariantContext { +export interface UmbPropertyDatasetContext { getType(): string; getUnique(): string | undefined; getVariantId: () => UmbVariantId; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts new file mode 100644 index 0000000000..572728a603 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts @@ -0,0 +1,4 @@ +import { type UmbPropertyDatasetContext } from './property-dataset-context.interface.js'; +import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; + +export const UMB_PROPERTY_DATASET_CONTEXT = new UmbContextToken('UmbPropertyDatasetContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts similarity index 85% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts index c4bfdfb382..fd45760328 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, oneEvent } from '@open-wc/testing'; import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; -import { UMB_VARIANT_CONTEXT } from './variant-context.token.js'; -import { UmbBasicVariantElement } from './basic-variant.element.js'; +import { UMB_PROPERTY_DATASET_CONTEXT } from './property-dataset-context.token.js'; +import { UmbPropertyDatasetElement } from './property-dataset.element.js'; import { customElement, html, property, state, LitElement } from '@umbraco-cms/backoffice/external/lit'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; @@ -9,7 +9,7 @@ import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; @customElement('test-property-editor') export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { // - #variantContext?: typeof UMB_VARIANT_CONTEXT.TYPE; + #variantContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; @property() public get alias() { @@ -49,7 +49,7 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { constructor() { super(); - this.consumeContext(UMB_VARIANT_CONTEXT, async (variantContext) => { + this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (variantContext) => { this.#variantContext = variantContext; this._observeProperty(); }); @@ -65,21 +65,21 @@ const dataSet: Array = [ describe('UmbBasicVariantElement', () => { describe('Data bindings', () => { - let variantElement: UmbBasicVariantElement; + let variantElement: UmbPropertyDatasetElement; let propertyEditor: UmbTestPropertyEditorElement; beforeEach(async () => { variantElement = await fixture( - html` + html` - `, + `, ); propertyEditor = variantElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; }); it('basic-variant is defined with its own instance', () => { - expect(variantElement).to.be.instanceOf(UmbBasicVariantElement); + expect(variantElement).to.be.instanceOf(UmbPropertyDatasetElement); }); it('property editor gets value', () => { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts similarity index 72% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts index 8b256af50a..60c28fa1ac 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/basic-variant.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts @@ -1,15 +1,20 @@ import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; -import { UmbBasicVariantContext } from './basic-variant-context.js'; +import { UmbPropertyDatasetBaseContext } from './property-dataset-base-context.js'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; -@customElement('umb-basic-variant') -export class UmbBasicVariantElement extends UmbLitElement { +/** + * @element umb-property-dataset + * @description - Element for hosting a property dataset. This is needed for umb-property to work. + * @slot default - Slot for rendering content within. + */ +@customElement('umb-property-dataset') +export class UmbPropertyDatasetElement extends UmbLitElement { // A take on only firing events when the value is changed from the outside. #silentOnce = true; - public readonly context: UmbBasicVariantContext; + public readonly context: UmbPropertyDatasetBaseContext; /** * The value of the dataset. @@ -29,7 +34,7 @@ export class UmbBasicVariantElement extends UmbLitElement { * ] * * html` - * + * * * - * + * * ` * ``` */ @@ -51,15 +56,16 @@ export class UmbBasicVariantElement extends UmbLitElement { } /** - * The name of the dataset. + * The name of the dataset, this name varies depending on the use-case. But this is either + * @type {string} * @returns {string} * @memberof UmbBasicVariantElement * @example * ```ts * html` - * + * * ... - * + * * ` */ @property({ attribute: false }) @@ -81,10 +87,9 @@ export class UmbBasicVariantElement extends UmbLitElement { } }); - this.context = new UmbBasicVariantContext(this); + this.context = new UmbPropertyDatasetBaseContext(this); this.observe(this.context.name, () => { if (!this.#silentOnce) { - console.log('——— name fire event!'); this.dispatchEvent(new UmbChangeEvent()); } else { this.#silentOnce = false; @@ -93,7 +98,6 @@ export class UmbBasicVariantElement extends UmbLitElement { this.#silentOnce = true; this.observe(this.context.values, () => { if (!this.#silentOnce) { - console.log('——— value fire event!'); this.dispatchEvent(new UmbChangeEvent()); } else { this.#silentOnce = false; @@ -106,10 +110,10 @@ export class UmbBasicVariantElement extends UmbLitElement { } } -export default UmbBasicVariantElement; +export default UmbPropertyDatasetElement; declare global { interface HTMLElementTagNameMap { - 'umb-basic-variant': UmbBasicVariantElement; + 'umb-property-dataset': UmbPropertyDatasetElement; } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts index cb45df033a..888f597dbb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts @@ -1,6 +1,6 @@ import { UmbPropertyEditorUiElement } from '../../extension-registry/interfaces/property-editor-ui-element.interface.js'; import { type WorkspacePropertyData } from '../types/workspace-property-data.type.js'; -import { UMB_VARIANT_CONTEXT } from '@umbraco-cms/backoffice/workspace'; +import { UMB_PROPERTY_DATASET_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { type UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; @@ -44,12 +44,12 @@ export class UmbPropertyContext extends UmbBaseController { private _variantDifference = new UmbStringState(undefined); public readonly variantDifference = this._variantDifference.asObservable(); - #variantContext?: typeof UMB_VARIANT_CONTEXT.TYPE; + #variantContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; constructor(host: UmbControllerHostElement) { super(host); - this.consumeContext(UMB_VARIANT_CONTEXT, (variantContext) => { + this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (variantContext) => { this.#variantContext = variantContext; this._generateVariantDifferenceString(); this._observeProperty(); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts deleted file mode 100644 index f95b8913a4..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './basic-variant-context.js'; -export * from './variant-context.interface.js'; -export * from './variant-context.token.js'; -export * from './nameable-variant-context.interface.js'; -export * from './nameable-variant-context.token.js'; -export * from './invariant-workspace-variant-context.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts deleted file mode 100644 index a293194900..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.interface.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { UmbVariantContext } from './variant-context.interface.js'; - -/** - * A variant context with ability to set the name of it. - */ -export interface UmbNameableVariantContext extends UmbVariantContext { - setName(name: string): void; -} diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.token.ts deleted file mode 100644 index c4386e9bfe..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/nameable-variant-context.token.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { type UmbVariantContext } from './variant-context.interface.js'; -import { UmbNameableVariantContext } from './nameable-variant-context.interface.js'; -import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; - -export const isNameablePropertySetContext = (context: UmbVariantContext): context is UmbNameableVariantContext => - 'setName' in context; - -export const UMB_NAMEABLE_VARIANT_CONTEXT = new UmbContextToken( - 'UmbVariantContext', - undefined, - isNameablePropertySetContext, -); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.token.ts deleted file mode 100644 index bb33a6442a..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/variant-context.token.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { type UmbVariantContext } from './variant-context.interface.js'; -import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; - -export const UMB_VARIANT_CONTEXT = new UmbContextToken('UmbVariantContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts index 2877f8f7f1..5363b3c787 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts @@ -1,5 +1,5 @@ import { UmbVariantId } from '../../variant/variant-id.class.js'; -import { UmbVariantContext } from '../variant-context/variant-context.interface.js'; +import { UmbPropertyDatasetContext } from '../property-dataset/property-dataset-context.interface.js'; import type { UmbSaveableWorkspaceContextInterface } from './saveable-workspace-context.interface.js'; import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; @@ -16,5 +16,5 @@ export interface UmbInvariantableWorkspaceContextInterface getPropertyValue(alias: string): ReturnType; setPropertyValue(alias: string, value: unknown): Promise; - createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbVariantContext; + createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts index 2301d1393f..db19ce9082 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts @@ -1,5 +1,5 @@ import type { UmbWorkspaceSplitViewManager } from '../workspace-split-view-manager.class.js'; -import { UmbVariantContext } from '../variant-context/variant-context.interface.js'; +import { UmbPropertyDatasetContext } from '../property-dataset/property-dataset-context.interface.js'; import type { UmbSaveableWorkspaceContextInterface } from './saveable-workspace-context.interface.js'; import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; import type { UmbVariantId } from '@umbraco-cms/backoffice/variant'; @@ -27,5 +27,5 @@ export interface UmbVariantableWorkspaceContextInterface setPropertyValue(alias: string, value: unknown, variantId?: UmbVariantId): Promise; //propertyDataByAlias(alias: string, variantId?: UmbVariantId): Observable; - createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbVariantContext; + createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/index.ts new file mode 100644 index 0000000000..fd988518eb --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/index.ts @@ -0,0 +1 @@ +export * from './invariant-workspace-property-dataset-context.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts similarity index 59% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts index d9cb9e6185..a4f1b8705c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/variant-context/invariant-workspace-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts @@ -2,18 +2,22 @@ import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { - UMB_VARIANT_CONTEXT, - UmbVariantContext, + UMB_PROPERTY_DATASET_CONTEXT, + UmbPropertyDatasetContext, UmbInvariantableWorkspaceContextInterface, + UmbNameablePropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; -export class UmbInvariantWorkspaceVariantContext< +/** + * A property dataset context that hooks directly into the workspace context. + */ +export class UmbInvariantWorkspacePropertyDatasetContext< WorkspaceType extends UmbInvariantableWorkspaceContextInterface = UmbInvariantableWorkspaceContextInterface, > extends UmbBaseController - implements UmbVariantContext + implements UmbPropertyDatasetContext, UmbNameablePropertyDatasetContext { - protected _workspace: WorkspaceType; + #workspace: WorkspaceType; name; @@ -23,39 +27,39 @@ export class UmbInvariantWorkspaceVariantContext< return UmbVariantId.CreateInvariant(); } getType() { - return this._workspace.getEntityType(); + return this.#workspace.getEntityType(); } getUnique() { - return this._workspace.getEntityId(); + return this.#workspace.getEntityId(); } getName() { - return this._workspace.getName(); + return this.#workspace.getName(); } setName(name: string) { - this._workspace.setName(name); + this.#workspace.setName(name); } constructor(host: UmbControllerHost, workspace: WorkspaceType) { // The controller alias, is a very generic name cause we want only one of these for this controller host. super(host, 'variantContext'); - this._workspace = workspace; + this.#workspace = workspace; - this.name = this._workspace.name; + this.name = this.#workspace.name; - this.provideContext(UMB_VARIANT_CONTEXT, this); + this.provideContext(UMB_PROPERTY_DATASET_CONTEXT, this); } /** * TODO: Write proper JSDocs here. */ async propertyValueByAlias(propertyAlias: string) { - return await this._workspace.propertyValueByAlias(propertyAlias); + return await this.#workspace.propertyValueByAlias(propertyAlias); } /** * TODO: Write proper JSDocs here. */ async setPropertyValue(propertyAlias: string, value: unknown) { - return this._workspace.setPropertyValue(propertyAlias, value); + return this.#workspace.setPropertyValue(propertyAlias, value); } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts index 394a420342..ab20a027b9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts @@ -1,4 +1,4 @@ -import { UmbVariantContext } from '../variant-context/index.js'; +import { UmbPropertyDatasetContext } from '../property-dataset/index.js'; import { UMB_VARIANT_WORKSPACE_CONTEXT_TOKEN } from '../index.js'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; @@ -12,7 +12,7 @@ export class UmbWorkspaceSplitViewContext extends UmbBaseController { return this.#workspaceContext; } - #variantContext?: UmbVariantContext; + #variantContext?: UmbPropertyDatasetContext; #index = new UmbNumberState(undefined); index = this.#index.asObservable(); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts index e5ecd6f911..9bbe4befff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts @@ -1,12 +1,12 @@ import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js'; import type { UmbDocumentVariantContext } from './document-variant-context.js'; import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import { UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; +import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/workspace'; -export const IsDocumentVariantContext = (context: UmbVariantContext): context is UmbDocumentVariantContext => +export const IsDocumentVariantContext = (context: UmbPropertyDatasetContext): context is UmbDocumentVariantContext => context.getType() === UMB_DOCUMENT_ENTITY_TYPE; -export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken( +export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken( 'UmbVariantContext', undefined, IsDocumentVariantContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts index 4351cca8e2..775d3a8116 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts @@ -5,12 +5,16 @@ import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; -import { UMB_VARIANT_CONTEXT, UmbNameableVariantContext, UmbVariantContext } from '@umbraco-cms/backoffice/workspace'; +import { + UMB_PROPERTY_DATASET_CONTEXT, + UmbNameablePropertyDatasetContext, + UmbPropertyDatasetContext, +} from '@umbraco-cms/backoffice/workspace'; // TODO: This code can be split into a UmbContentTypeVariantContext, leaving just the publishing state and methods to this class. export class UmbDocumentVariantContext extends UmbBaseController - implements UmbVariantContext, UmbNameableVariantContext + implements UmbPropertyDatasetContext, UmbNameablePropertyDatasetContext { #workspace: UmbDocumentWorkspaceContext; #variantId: UmbVariantId; @@ -62,7 +66,7 @@ export class UmbDocumentVariantContext ); // TODO: Refactor: use the document dataset context token. - this.provideContext(UMB_VARIANT_CONTEXT, this); + this.provideContext(UMB_PROPERTY_DATASET_CONTEXT, this); } #createPropertyVariantId(property: PropertyTypeModelBaseModel) { diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs index 7345d36c8d..a486fd1e7c 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.dev.config.mjs @@ -3,6 +3,8 @@ import defaultConfig from './web-test-runner.config.mjs'; /** @type {import('@web/dev-server').DevServerConfig} */ export default { ...defaultConfig, + // Only test with the first browser option ( to keep test times fast ) + browsers: [defaultConfig.browsers[0]], testRunnerHtml: (testFramework) => { return defaultConfig.testRunnerHtml(testFramework, true); }, From d604a6aaf0ffcf9d2bdaa52025449454165e02c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:16:32 +0100 Subject: [PATCH 27/44] docs --- .../storybook/stories/extending/workspaces/context.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/storybook/stories/extending/workspaces/context.mdx b/src/Umbraco.Web.UI.Client/storybook/stories/extending/workspaces/context.mdx index cb9e6a0b86..b2da374899 100644 --- a/src/Umbraco.Web.UI.Client/storybook/stories/extending/workspaces/context.mdx +++ b/src/Umbraco.Web.UI.Client/storybook/stories/extending/workspaces/context.mdx @@ -13,9 +13,9 @@ TODO: Extend the description of a workspace (rough notes) - A workspace context knows about its entity type (e.g. content, media, member, etc.) and holds its unique string (e.g.: key). -- Most workspaces contexts hold a draft state of its entity data. It is a copy of the entity data that can be modified at runtime and sent to the server to be saved. +- Most workspace contexts hold a draft state of its entity data. It is a copy of the entity data that can be modified at runtime and sent to the server to be saved. -If a workspace wants to utilize Property Editor UIs, then it must provide a variant context for the property editors. The variant-context is the generic interface between workspace and property editors. See variant contexts for more info. +If a workspace wants to utilize Property Editor UIs, then it must provide a variant context for the property editors. The property-dataset context is the generic interface between workspace and property editors. See variant contexts for more info. TODO: More points and examples: From 7d00297c1c012fc5dbeb5baa264edaae99bc72c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:17:59 +0100 Subject: [PATCH 28/44] rename document variant context --- .../document-property-dataset-context.token.ts | 13 +++++++++++++ .../document-property-dataset-context.ts} | 13 +++++-------- .../document-variant-context.token.ts | 13 ------------- .../workspace/document-workspace.context.ts | 4 ++-- 4 files changed, 20 insertions(+), 23 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts rename src/Umbraco.Web.UI.Client/src/packages/documents/documents/{variant-context/document-variant-context.ts => property-dataset-context/document-property-dataset-context.ts} (92%) delete mode 100644 src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts new file mode 100644 index 0000000000..4b0f5958ba --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts @@ -0,0 +1,13 @@ +import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js'; +import type { UmbDocumentPropertyDataContext } from './document-property-dataset-context.js'; +import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; +import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/workspace'; + +export const IsDocumentVariantContext = ( + context: UmbPropertyDatasetContext, +): context is UmbDocumentPropertyDataContext => context.getType() === UMB_DOCUMENT_ENTITY_TYPE; + +export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken< + UmbPropertyDatasetContext, + UmbDocumentPropertyDataContext +>('UmbVariantContext', undefined, IsDocumentVariantContext); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts similarity index 92% rename from src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts rename to src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts index 775d3a8116..5054684a42 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts @@ -1,7 +1,7 @@ import type { UmbDocumentWorkspaceContext } from '../workspace/index.js'; import { DocumentVariantResponseModel, PropertyTypeModelBaseModel } from '@umbraco-cms/backoffice/backend-api'; import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; +import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; @@ -11,9 +11,9 @@ import { UmbPropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; -// TODO: This code can be split into a UmbContentTypeVariantContext, leaving just the publishing state and methods to this class. -export class UmbDocumentVariantContext - extends UmbBaseController +// TODO: This code can be split into a UmbContentTypePropertyDatasetContext, leaving just the publishing state and methods to this class. +export class UmbDocumentPropertyDataContext + extends UmbContextBase implements UmbPropertyDatasetContext, UmbNameablePropertyDatasetContext { #workspace: UmbDocumentWorkspaceContext; @@ -52,7 +52,7 @@ export class UmbDocumentVariantContext constructor(host: UmbControllerHost, workspace: UmbDocumentWorkspaceContext, variantId?: UmbVariantId) { // The controller alias, is a very generic name cause we want only one of these for this controller host. - super(host, 'variantContext'); + super(host, UMB_PROPERTY_DATASET_CONTEXT); this.#workspace = workspace; this.#variantId = variantId ?? UmbVariantId.CreateInvariant(); @@ -64,9 +64,6 @@ export class UmbDocumentVariantContext }, '_observeActiveVariant', ); - - // TODO: Refactor: use the document dataset context token. - this.provideContext(UMB_PROPERTY_DATASET_CONTEXT, this); } #createPropertyVariantId(property: PropertyTypeModelBaseModel) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts deleted file mode 100644 index 9bbe4befff..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/variant-context/document-variant-context.token.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js'; -import type { UmbDocumentVariantContext } from './document-variant-context.js'; -import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/workspace'; - -export const IsDocumentVariantContext = (context: UmbPropertyDatasetContext): context is UmbDocumentVariantContext => - context.getType() === UMB_DOCUMENT_ENTITY_TYPE; - -export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken( - 'UmbVariantContext', - undefined, - IsDocumentVariantContext, -); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts index 3e4fdc864e..bf05810cec 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts @@ -1,6 +1,6 @@ import { UmbDocumentRepository } from '../repository/document.repository.js'; import { UmbDocumentTypeDetailRepository } from '../../document-types/repository/detail/document-type-detail.repository.js'; -import { UmbDocumentVariantContext } from '../variant-context/document-variant-context.js'; +import { UmbDocumentPropertyDataContext } from '../property-dataset-context/document-property-dataset-context.js'; import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { UmbContentTypePropertyStructureManager } from '@umbraco-cms/backoffice/content-type'; @@ -260,7 +260,7 @@ export class UmbDocumentWorkspaceContext */ public createVariantContext(host: UmbControllerHost, variantId: UmbVariantId) { - return new UmbDocumentVariantContext(host, this, variantId); + return new UmbDocumentPropertyDataContext(host, this, variantId); } public destroy(): void { From 830b2b619f58e80ae7dcd74c35d918e8c96135bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:19:25 +0100 Subject: [PATCH 29/44] rename to createPropertyDatasetContext --- .../data-type/workspace/data-type-workspace-editor.element.ts | 2 +- .../core/data-type/workspace/data-type-workspace.context.ts | 2 +- .../workspace-invariantable-context.interface.ts | 2 +- .../workspace-variantable-context.interface.ts | 2 +- .../workspace-split-view/workspace-split-view.context.ts | 2 +- .../documents/documents/workspace/document-workspace.context.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace-editor.element.ts index a3d55e76f1..2aa2ed3023 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace-editor.element.ts @@ -22,7 +22,7 @@ export class UmbDataTypeWorkspaceEditorElement extends UmbLitElement { this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, (workspaceContext) => { this.#workspaceContext = workspaceContext; - this.#workspaceContext?.createVariantContext(this); + this.#workspaceContext?.createPropertyDatasetContext(this); this.#observeIsNew(); this.#observeName(); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index 134a9b44e7..6999e676bf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -145,7 +145,7 @@ export class UmbDataTypeWorkspaceContext return this._configDefaultData?.find((x) => x.alias === alias)?.value; } - createVariantContext(host: UmbControllerHost) { + createPropertyDatasetContext(host: UmbControllerHost) { const context = new UmbPropertyDatasetBaseContext(host); // Observe workspace name: diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts index 5363b3c787..423498592e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts @@ -16,5 +16,5 @@ export interface UmbInvariantableWorkspaceContextInterface getPropertyValue(alias: string): ReturnType; setPropertyValue(alias: string, value: unknown): Promise; - createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; + createPropertyDatasetContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts index db19ce9082..8ed5d33cbb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts @@ -27,5 +27,5 @@ export interface UmbVariantableWorkspaceContextInterface setPropertyValue(alias: string, value: unknown, variantId?: UmbVariantId): Promise; //propertyDataByAlias(alias: string, variantId?: UmbVariantId): Observable; - createVariantContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; + createPropertyDatasetContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts index ab20a027b9..a339d89c40 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts @@ -51,7 +51,7 @@ export class UmbWorkspaceSplitViewContext extends UmbBaseController { this.#variantContext?.destroy(); const variantId = UmbVariantId.Create(activeVariantInfo); - this.#variantContext = this.#workspaceContext?.createVariantContext(this, variantId); + this.#variantContext = this.#workspaceContext?.createPropertyDatasetContext(this, variantId); }, '_observeActiveVariant', ); diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts index bf05810cec..76bedfa301 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/workspace/document-workspace.context.ts @@ -259,7 +259,7 @@ export class UmbDocumentWorkspaceContext } */ - public createVariantContext(host: UmbControllerHost, variantId: UmbVariantId) { + public createPropertyDatasetContext(host: UmbControllerHost, variantId: UmbVariantId) { return new UmbDocumentPropertyDataContext(host, this, variantId); } From 96160adff6ad018ca365ef6b400133e9801765a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:26:43 +0100 Subject: [PATCH 30/44] remove log --- .../core/data-type/workspace/data-type-workspace.context.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index 6999e676bf..fbbf6604c3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -174,7 +174,6 @@ export class UmbDataTypeWorkspaceContext this.observe( await context.propertyValueByAlias(property.alias), (value) => { - console.log('gets value back...'); this.setPropertyValue(property.alias, value); }, 'observeVariantPropertyOf_' + property.alias, From 4a9dc30019dfe42edcc016475f389d9c047e7403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:36:33 +0100 Subject: [PATCH 31/44] move property --- src/Umbraco.Web.UI.Client/package.json | 1 + .../src/packages/core/property/index.ts | 1 + .../core/{workspace => property}/property/index.ts | 0 .../property/property.context.ts | 2 +- .../property/property.element.ts | 0 .../property/property.stories.ts | 0 .../src/packages/core/workspace/index.ts | 2 +- src/Umbraco.Web.UI.Client/tsconfig.json | 10 +++++++++- src/Umbraco.Web.UI.Client/web-test-runner.config.mjs | 1 + 9 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property/index.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property/property.context.ts (98%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property/property.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property/property.stories.ts (100%) diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index 03c39839e0..95523a6456 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -36,6 +36,7 @@ "./modal": "./dist-cms/packages/core/modal/index.js", "./notification": "./dist-cms/packages/core/notification/index.js", "./picker-input": "./dist-cms/packages/core/picker-input/index.js", + "./property": "./dist-cms/packages/core/property/index.js", "./property-action": "./dist-cms/packages/core/property-action/index.js", "./property-editor": "./dist-cms/packages/core/property-editor/index.js", "./section": "./dist-cms/packages/core/section/index.js", diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts new file mode 100644 index 0000000000..16c1e01014 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts @@ -0,0 +1 @@ +export * from './property/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/index.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts similarity index 98% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index 888f597dbb..71b50449b9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -1,5 +1,5 @@ import { UmbPropertyEditorUiElement } from '../../extension-registry/interfaces/property-editor-ui-element.interface.js'; -import { type WorkspacePropertyData } from '../types/workspace-property-data.type.js'; +import { type WorkspacePropertyData } from '../../workspace/types/workspace-property-data.type.js'; import { UMB_PROPERTY_DATASET_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { type UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property/property.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts index 996eced338..820f4706a7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts @@ -9,6 +9,6 @@ export * from './workspace-footer/index.js'; export * from './workspace-is-new-redirect-controller/index.js'; export * from './workspace-modal/index.js'; export * from './property-layout/property-layout.element.js'; -export * from './property/index.js'; +export * from '../property/property/index.js'; export * from './workspace-split-view-manager.class.js'; export * from './workspace-split-view/index.js'; diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json index 9aeafe340d..a09ebfc104 100644 --- a/src/Umbraco.Web.UI.Client/tsconfig.json +++ b/src/Umbraco.Web.UI.Client/tsconfig.json @@ -70,6 +70,7 @@ "@umbraco-cms/backoffice/modal": ["src/packages/core/modal"], "@umbraco-cms/backoffice/notification": ["src/packages/core/notification"], "@umbraco-cms/backoffice/picker-input": ["src/packages/core/picker-input"], + "@umbraco-cms/backoffice/property": ["src/packages/core/property"], "@umbraco-cms/backoffice/property-action": ["src/packages/core/property-action"], "@umbraco-cms/backoffice/property-editor": ["src/packages/core/property-editor"], "@umbraco-cms/backoffice/section": ["src/packages/core/section"], @@ -126,7 +127,14 @@ "@umbraco-cms/internal/test-utils": ["utils/test-utils.ts"] } }, - "include": ["src/**/*.ts", "apps/**/*.ts", "e2e/**/*.ts", "index.ts", "storybook/stories/**/*.ts", "examples/**/*.ts", ], + "include": [ + "src/**/*.ts", + "apps/**/*.ts", + "e2e/**/*.ts", + "index.ts", + "storybook/stories/**/*.ts", + "examples/**/*.ts" + ], "references": [ { "path": "./tsconfig.node.json" diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs index 536a090da9..e48ec6415c 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs @@ -72,6 +72,7 @@ export default { '@umbraco-cms/backoffice/modal': './src/packages/core/modal/index.ts', '@umbraco-cms/backoffice/notification': './src/packages/core/notification/index.ts', '@umbraco-cms/backoffice/picker-input': './src/packages/core/picker-input/index.ts', + '@umbraco-cms/backoffice/property': './src/packages/core/property/index.ts', '@umbraco-cms/backoffice/property-action': './src/packages/core/property-action/index.ts', '@umbraco-cms/backoffice/property-editor': './src/packages/core/property-editor/index.ts', '@umbraco-cms/backoffice/section': './src/packages/core/section/index.ts', From e5344079620905301a47b7fbc2a1ce211f253088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:36:46 +0100 Subject: [PATCH 32/44] sort config of test runner --- src/Umbraco.Web.UI.Client/web-test-runner.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs index e48ec6415c..2e799c6129 100644 --- a/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs +++ b/src/Umbraco.Web.UI.Client/web-test-runner.config.mjs @@ -16,6 +16,10 @@ export default { rootDir: '.', files: ['./src/**/*.test.ts'], nodeResolve: { exportConditions: mode === 'dev' ? ['development'] : [], preferBuiltins: false, browser: true }, + browsers: [playwrightLauncher({ product: 'chromium' }), playwrightLauncher({ product: 'webkit' })], + coverageConfig: { + reporters: ['lcovonly', 'text-summary'], + }, plugins: [ esbuildPlugin({ ts: true, tsconfig: './tsconfig.json', target: 'auto', json: true }), importMapsPlugin({ @@ -124,10 +128,6 @@ export default { include: ['node_modules/**', 'src/external/**'], }), ], - browsers: [playwrightLauncher({ product: 'chromium' }), playwrightLauncher({ product: 'webkit' })], - coverageConfig: { - reporters: ['lcovonly', 'text-summary'], - }, testRunnerHtml: (testFramework, devMode) => ` From 651bbab37e418e0e53f58713386f0c91a57be63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:44:49 +0100 Subject: [PATCH 33/44] move imports --- .../common/clear/property-action-clear.element.ts | 2 +- .../uis/block-grid/property-editor-ui-block-grid.element.ts | 2 +- .../property-editor-ui-multi-url-picker.element.ts | 2 +- .../src/packages/core/property/index.ts | 2 ++ .../core/{workspace => property}/property-dataset/index.ts | 2 +- .../nameable-property-dataset-context.interface.ts | 0 .../nameable-property-dataset-context.token.ts | 0 .../property-dataset/property-dataset-base-context.ts | 2 +- .../property-dataset/property-dataset-context.interface.ts | 0 .../property-dataset/property-dataset-context.token.ts | 0 .../property-dataset/property-dataset.element.test.ts | 2 +- .../property-dataset/property-dataset.element.ts | 2 +- .../src/packages/core/property/property-layout/index.ts | 1 + .../property-layout/property-layout.element.ts | 0 .../property-layout/property-layout.stories.ts | 0 .../src/packages/core/property/property/property.element.ts | 6 ++++-- .../src/packages/core/workspace/index.ts | 4 +--- .../workspace-invariantable-context.interface.ts | 2 +- .../workspace-variantable-context.interface.ts | 2 +- .../workspace-split-view/workspace-split-view.context.ts | 2 +- .../tags/property-editor-ui-tags.element.ts | 2 +- 21 files changed, 19 insertions(+), 16 deletions(-) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/index.ts (72%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/nameable-property-dataset-context.interface.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/nameable-property-dataset-context.token.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/property-dataset-base-context.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/property-dataset-context.interface.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/property-dataset-context.token.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/property-dataset.element.test.ts (97%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-dataset/property-dataset.element.ts (96%) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-layout/property-layout.element.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/property-layout/property-layout.stories.ts (100%) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts index e46bb99fa0..33c501b025 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts @@ -1,6 +1,6 @@ +import { UmbPropertyContext, UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; import type { UmbPropertyAction } from '../../shared/property-action/property-action.interface.js'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; -import { UmbPropertyContext, UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-property-action-clear') diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index 7c33c908cf..6de7765ce6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index 9c8be11311..83507a142a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -1,8 +1,8 @@ +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; import { UmbInputMultiUrlElement } from '@umbraco-cms/backoffice/components'; -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { UmbLinkPickerLink } from '@umbraco-cms/backoffice/modal'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts index 16c1e01014..c972e67ce5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts @@ -1 +1,3 @@ export * from './property/index.js'; +export * from './property-dataset/index.js'; +export * from './property-layout/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts similarity index 72% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts index 780ecba6e3..9c55c7c132 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts @@ -3,4 +3,4 @@ export * from './property-dataset-context.interface.js'; export * from './property-dataset-context.token.js'; export * from './nameable-property-dataset-context.interface.js'; export * from './nameable-property-dataset-context.token.js'; -export * from '../workspace-property-dataset/invariant-workspace-property-dataset-context.js'; +export * from '../../workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/nameable-property-dataset-context.interface.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.interface.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/nameable-property-dataset-context.interface.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/nameable-property-dataset-context.token.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/nameable-property-dataset-context.token.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/nameable-property-dataset-context.token.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts index 6daeff51c5..69f16f1b6b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-base-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts @@ -1,4 +1,4 @@ -import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.interface.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.token.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset-context.token.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.token.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts similarity index 97% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts index fd45760328..9613d2f462 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts @@ -1,5 +1,5 @@ import { expect, fixture, oneEvent } from '@open-wc/testing'; -import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; import { UMB_PROPERTY_DATASET_CONTEXT } from './property-dataset-context.token.js'; import { UmbPropertyDatasetElement } from './property-dataset.element.js'; import { customElement, html, property, state, LitElement } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts similarity index 96% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts index 60c28fa1ac..b5c9ac3630 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-dataset/property-dataset.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts @@ -1,4 +1,4 @@ -import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; import { UmbPropertyDatasetBaseContext } from './property-dataset-base-context.js'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/index.ts new file mode 100644 index 0000000000..ea2ed3d568 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/index.ts @@ -0,0 +1 @@ +export * from './property-layout.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/property-layout.element.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/property-layout.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/property-layout.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/property-layout/property-layout.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/property-layout/property-layout.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts index a5e23310d3..c3bb118ee1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts @@ -1,4 +1,3 @@ -import { type UmbPropertyEditorConfig } from '../../property-editor/index.js'; import { UmbPropertyContext } from './property.context.js'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; @@ -6,7 +5,10 @@ import { createExtensionElement } from '@umbraco-cms/backoffice/extension-api'; import { ManifestPropertyEditorUi, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry'; import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; -import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; +import { + UmbPropertyEditorConfigCollection, + type UmbPropertyEditorConfig, +} from '@umbraco-cms/backoffice/property-editor'; /** * @element umb-workspace-property diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts index 820f4706a7..4c28d72cac 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts @@ -1,4 +1,4 @@ -export * from './property-dataset/index.js'; +export * from '../property/property-dataset/index.js'; export * from './workspace-action-menu/index.js'; export * from './workspace-action/index.js'; export type { WorkspaceAliasConditionConfig } from './workspace-alias.condition.js'; @@ -8,7 +8,5 @@ export * from './workspace-editor/index.js'; export * from './workspace-footer/index.js'; export * from './workspace-is-new-redirect-controller/index.js'; export * from './workspace-modal/index.js'; -export * from './property-layout/property-layout.element.js'; -export * from '../property/property/index.js'; export * from './workspace-split-view-manager.class.js'; export * from './workspace-split-view/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts index 423498592e..e5ccfbb4fe 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.ts @@ -1,5 +1,5 @@ import { UmbVariantId } from '../../variant/variant-id.class.js'; -import { UmbPropertyDatasetContext } from '../property-dataset/property-dataset-context.interface.js'; +import { UmbPropertyDatasetContext } from '../../property/property-dataset/property-dataset-context.interface.js'; import type { UmbSaveableWorkspaceContextInterface } from './saveable-workspace-context.interface.js'; import { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts index 8ed5d33cbb..b6dc3cb45b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-context/workspace-variantable-context.interface.ts @@ -1,5 +1,5 @@ import type { UmbWorkspaceSplitViewManager } from '../workspace-split-view-manager.class.js'; -import { UmbPropertyDatasetContext } from '../property-dataset/property-dataset-context.interface.js'; +import { UmbPropertyDatasetContext } from '../../property/property-dataset/property-dataset-context.interface.js'; import type { UmbSaveableWorkspaceContextInterface } from './saveable-workspace-context.interface.js'; import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; import type { UmbVariantId } from '@umbraco-cms/backoffice/variant'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts index a339d89c40..6932dc3a39 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-split-view/workspace-split-view.context.ts @@ -1,4 +1,4 @@ -import { UmbPropertyDatasetContext } from '../property-dataset/index.js'; +import { UmbPropertyDatasetContext } from '../../property/property-dataset/index.js'; import { UMB_VARIANT_WORKSPACE_CONTEXT_TOKEN } from '../index.js'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 522f6488cf..23fb3f7a40 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -1,7 +1,7 @@ +import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; import { UmbTagsInputElement } from '../../components/tags-input/tags-input.element.js'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; import { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/extension-registry'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; From 950372cc380776cbd45768ee78faa3f1109e3863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:47:08 +0100 Subject: [PATCH 34/44] rename token --- .../common/clear/property-action-clear.element.ts | 4 ++-- .../block-grid/property-editor-ui-block-grid.element.ts | 4 ++-- .../property-editor-ui-multi-url-picker.element.ts | 4 ++-- .../packages/core/property/property/property.context.ts | 8 ++++---- .../tags/property-editor-ui-tags.element.ts | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts index 33c501b025..9024b440a4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-action/common/clear/property-action-clear.element.ts @@ -1,4 +1,4 @@ -import { UmbPropertyContext, UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; +import { UmbPropertyContext, UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property'; import type { UmbPropertyAction } from '../../shared/property-action/property-action.interface.js'; import { html, customElement, property } from '@umbraco-cms/backoffice/external/lit'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @@ -20,7 +20,7 @@ export class UmbPropertyActionClearElement extends UmbLitElement implements UmbP this._propertyActionMenuContext = propertyActionsContext; }); */ - this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (propertyContext: UmbPropertyContext) => { + this.consumeContext(UMB_PROPERTY_CONTEXT, (propertyContext: UmbPropertyContext) => { this._propertyContext = propertyContext; }); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts index 6de7765ce6..220c67a819 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; +import { UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; @@ -33,7 +33,7 @@ export class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implement constructor() { super(); - this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => { this.observe(context?.variantId, (propertyVariantId) => { this._variantId = propertyVariantId; this.setupRoutes(); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts index 83507a142a..b152322308 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; +import { UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property'; import { html, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import type { UUIModalSidebarSize } from '@umbraco-cms/backoffice/external/uui'; @@ -49,7 +49,7 @@ export class UmbPropertyEditorUIMultiUrlPickerElement extends UmbLitElement impl constructor() { super(); - this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => { this.observe(context.alias, (alias) => { this._alias = alias; }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index 71b50449b9..a8eec5635d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -5,11 +5,11 @@ import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { type UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; import { + UmbBasicState, UmbClassState, UmbObjectState, - UmbStringState, UmbObserverController, - UmbBasicState, + UmbStringState, } from '@umbraco-cms/backoffice/observable-api'; import { UmbContextProviderController, UmbContextToken } from '@umbraco-cms/backoffice/context-api'; import { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor'; @@ -59,7 +59,7 @@ export class UmbPropertyContext extends UmbBaseController { this._observeProperty(); }); - this._providerController = new UmbContextProviderController(host, UMB_PROPERTY_CONTEXT_TOKEN, this); + this._providerController = new UmbContextProviderController(host, UMB_PROPERTY_CONTEXT, this); this.observe(this.configValues, (configValues) => { this.#configCollection.next(configValues ? new UmbPropertyEditorConfigCollection(configValues) : undefined); @@ -139,4 +139,4 @@ export class UmbPropertyContext extends UmbBaseController { } } -export const UMB_PROPERTY_CONTEXT_TOKEN = new UmbContextToken('UmbPropertyContext'); +export const UMB_PROPERTY_CONTEXT = new UmbContextToken('UmbPropertyContext'); diff --git a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts index 23fb3f7a40..455a1dab21 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tags/property-editors/tags/property-editor-ui-tags.element.ts @@ -1,4 +1,4 @@ -import { UMB_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/property'; +import { UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property'; import { UmbTagsInputElement } from '../../components/tags-input/tags-input.element.js'; import { html, customElement, property, state, ifDefined } from '@umbraco-cms/backoffice/external/lit'; import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; @@ -36,7 +36,7 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb constructor() { super(); - this.consumeContext(UMB_PROPERTY_CONTEXT_TOKEN, (context) => { + this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => { this.observe(context.variantId, (id) => { if (id && id.culture !== undefined) { this._culture = id.culture; From 2855af335241f387bcf40469c3c51f282f715266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 12:49:26 +0100 Subject: [PATCH 35/44] umb-property --- .../property-type-based-property.element.ts | 4 ++-- .../property-editor-config.element.ts | 4 ++-- .../property/property-dataset/property-dataset.element.ts | 4 ++-- .../packages/core/property/property/property.element.ts | 8 ++++---- .../packages/core/property/property/property.stories.ts | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts index 1131038379..7d8a2e2b3d 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/property-type-based-property/property-type-based-property.element.ts @@ -60,12 +60,12 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement { } render() { - return html``; + .config=${this._dataTypeData}>`; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts index 1ee37004b2..5a650364d0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/components/property-editor-config/property-editor-config.element.ts @@ -45,12 +45,12 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement { this._properties, (property) => property.alias, (property) => - html``, + .config=${property.config}>`, ) : html`
    No configuration
    `; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts index b5c9ac3630..0385b89f6f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts @@ -35,13 +35,13 @@ export class UmbPropertyDatasetElement extends UmbLitElement { * * html` * - * - * + * * * ` * ``` diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts index c3bb118ee1..0ada434046 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts @@ -11,14 +11,14 @@ import { } from '@umbraco-cms/backoffice/property-editor'; /** - * @element umb-workspace-property + * @element umb-property * @description Component for displaying a property with editor from extension registry. * The Element will render a Property Editor based on the Property Editor UI alias passed to the element. * This will also render all Property Actions related to the Property Editor UI Alias. */ -@customElement('umb-workspace-property') -export class UmbWorkspacePropertyElement extends UmbLitElement { +@customElement('umb-property') +export class UmbPropertyElement extends UmbLitElement { /** * Label. Name of the property * @type {string} @@ -238,6 +238,6 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { declare global { interface HTMLElementTagNameMap { - 'umb-workspace-property': UmbWorkspacePropertyElement; + 'umb-property': UmbPropertyElement; } } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts index 987bcaa89c..646b2ca522 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.stories.ts @@ -1,5 +1,5 @@ import { Meta, Story } from '@storybook/web-components'; -import type { UmbWorkspacePropertyElement } from './property.element.js'; +import type { UmbPropertyElement } from './property.element.js'; import { html } from '@umbraco-cms/backoffice/external/lit'; import './property.element.js'; @@ -10,11 +10,11 @@ export default { id: 'umb-property', } as Meta; -export const AAAOverview: Story = () => - html` = () => + html` `; + .value="${'Hello'}">`; AAAOverview.storyName = 'Overview'; From 1c14844d9714fcb536f36facb3812798c3011c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 13:07:58 +0100 Subject: [PATCH 36/44] example + import map corrections --- .../dashboard-with-property-dataset/README.md | 5 ++ .../dataset-dashboard.ts | 54 +++++++++++++++++++ .../dashboard-with-property-dataset/index.ts | 15 ++++++ .../variant-selector.element.ts | 3 +- .../workspace/data-type-workspace.context.ts | 3 +- .../src/packages/core/property/index.ts | 1 + .../core/property/property-dataset/index.ts | 6 +-- .../property-dataset-base-context.ts | 8 +-- .../property-dataset.element.test.ts | 2 +- .../property-dataset.element.ts | 2 +- .../property/property/property.context.ts | 2 +- .../property/property/property.element.ts | 36 ++++++------- .../src/packages/core/property/types/index.ts | 1 + .../types/property-value-data.type.ts | 0 .../src/packages/core/workspace/index.ts | 2 +- ...iant-workspace-property-dataset-context.ts | 10 ++-- ...document-property-dataset-context.token.ts | 2 +- .../document-property-dataset-context.ts | 10 ++-- 18 files changed, 119 insertions(+), 43 deletions(-) create mode 100644 src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/README.md create mode 100644 src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts create mode 100644 src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/index.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property/types/index.ts rename src/Umbraco.Web.UI.Client/src/packages/core/{workspace => property}/types/property-value-data.type.ts (100%) diff --git a/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/README.md b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/README.md new file mode 100644 index 0000000000..4a1b15255a --- /dev/null +++ b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/README.md @@ -0,0 +1,5 @@ +# Property Dataset Dashboard Example + +This example demonstrates the essence of the Property Dataset. + +This dashboard implements such, to display a few selected Property Editors and bind the data back to the Dashboard. diff --git a/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts new file mode 100644 index 0000000000..b0ef9c337d --- /dev/null +++ b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts @@ -0,0 +1,54 @@ +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; +import { css, html, customElement, LitElement } from '@umbraco-cms/backoffice/external/lit'; +import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; +import { UmbPropertyValueData, UmbPropertyDatasetElement } from '@umbraco-cms/backoffice/property'; + +@customElement('example-dataset-dashboard') +export class ExampleDatasetDashboard extends UmbElementMixin(LitElement) { + data: UmbPropertyValueData[] = [ + { + alias: 'textProperty', + value: 'Hello', + }, + ]; + + constructor() { + super(); + } + + render() { + return html` + +

    Dataset Example

    + + + + +
    Output of dashboard data:
    + ${JSON.stringify(this.data, null, 2)} +
    + `; + } + + static styles = [ + UmbTextStyles, + css` + :host { + display: block; + padding: var(--uui-size-layout-1); + } + `, + ]; +} + +export default ExampleDatasetDashboard; + +declare global { + interface HTMLElementTagNameMap { + 'example-dataset-dashboard': ExampleDatasetDashboard; + } +} diff --git a/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/index.ts b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/index.ts new file mode 100644 index 0000000000..bf689650a7 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/index.ts @@ -0,0 +1,15 @@ +import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; + +export const manifests: Array = [ + { + type: 'dashboard', + name: 'Example Dataset Workspace View', + alias: 'example.dashboard.dataset', + element: () => import('./dataset-dashboard.js'), + weight: 900, + meta: { + label: 'Dataset example', + pathname: 'dataset-example', + }, + }, +]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts index ee5b1c3bc7..5761e30546 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/variant-selector/variant-selector.element.ts @@ -1,3 +1,4 @@ +import { UMB_PROPERTY_DATASET_CONTEXT, isNameablePropertyDatasetContext } from '@umbraco-cms/backoffice/property'; import { UmbVariantId } from '../../variant/variant-id.class.js'; import { UUIInputElement, UUIInputEvent, UUIPopoverContainerElement } from '@umbraco-cms/backoffice/external/uui'; import { @@ -13,9 +14,7 @@ import { import { UmbWorkspaceSplitViewContext, UMB_WORKSPACE_SPLIT_VIEW_CONTEXT, - UMB_PROPERTY_DATASET_CONTEXT, ActiveVariant, - isNameablePropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { DocumentVariantResponseModel, ContentStateModel } from '@umbraco-cms/backoffice/backend-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index fbbf6604c3..a0e34911a3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -1,10 +1,10 @@ +import { UmbPropertyDatasetBaseContext } from '@umbraco-cms/backoffice/property'; import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js'; import type { UmbDataTypeDetailModel } from '../types.js'; import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface, - UmbPropertyDatasetBaseContext, } from '@umbraco-cms/backoffice/workspace'; import { appendToFrozenArray, @@ -146,6 +146,7 @@ export class UmbDataTypeWorkspaceContext } createPropertyDatasetContext(host: UmbControllerHost) { + // TODO: Could use the Workspace version, to spare the energy of mapping values: const context = new UmbPropertyDatasetBaseContext(host); // Observe workspace name: diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts index c972e67ce5..336c1e11ef 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/index.ts @@ -1,3 +1,4 @@ export * from './property/index.js'; export * from './property-dataset/index.js'; export * from './property-layout/index.js'; +export * from './types/index.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts index 9c55c7c132..ea833bd374 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/index.ts @@ -1,6 +1,6 @@ +export * from './nameable-property-dataset-context.interface.js'; +export * from './nameable-property-dataset-context.token.js'; export * from './property-dataset-base-context.js'; export * from './property-dataset-context.interface.js'; export * from './property-dataset-context.token.js'; -export * from './nameable-property-dataset-context.interface.js'; -export * from './nameable-property-dataset-context.token.js'; -export * from '../../workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.js'; +export * from './property-dataset.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts index 69f16f1b6b..bf38d0ae29 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts @@ -1,11 +1,11 @@ -import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; -import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { UMB_PROPERTY_DATASET_CONTEXT, type UmbNameablePropertyDatasetContext, type UmbPropertyDatasetContext, -} from '@umbraco-cms/backoffice/workspace'; +} from '@umbraco-cms/backoffice/property'; +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; +import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; +import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { UmbArrayState, UmbStringState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts index 9613d2f462..fd45760328 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts @@ -1,5 +1,5 @@ import { expect, fixture, oneEvent } from '@open-wc/testing'; -import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; import { UMB_PROPERTY_DATASET_CONTEXT } from './property-dataset-context.token.js'; import { UmbPropertyDatasetElement } from './property-dataset.element.js'; import { customElement, html, property, state, LitElement } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts index 0385b89f6f..679574a6f3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts @@ -1,4 +1,4 @@ -import type { UmbPropertyValueData } from '../../workspace/types/property-value-data.type.js'; +import type { UmbPropertyValueData } from '../types/property-value-data.type.js'; import { UmbPropertyDatasetBaseContext } from './property-dataset-base-context.js'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { customElement, html, property } from '@umbraco-cms/backoffice/external/lit'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index a8eec5635d..eece9606a8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -1,6 +1,6 @@ +import { UMB_PROPERTY_DATASET_CONTEXT } from '@umbraco-cms/backoffice/property'; import { UmbPropertyEditorUiElement } from '../../extension-registry/interfaces/property-editor-ui-element.interface.js'; import { type WorkspacePropertyData } from '../../workspace/types/workspace-property-data.type.js'; -import { UMB_PROPERTY_DATASET_CONTEXT } from '@umbraco-cms/backoffice/workspace'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { type UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts index 0ada434046..7003c6fd15 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.element.ts @@ -27,7 +27,7 @@ export class UmbPropertyElement extends UmbLitElement { */ @property({ type: String }) public set label(label: string) { - this._propertyContext.setLabel(label); + this.#propertyContext.setLabel(label); } /** @@ -38,7 +38,7 @@ export class UmbPropertyElement extends UmbLitElement { */ @property({ type: String }) public set description(description: string) { - this._propertyContext.setDescription(description); + this.#propertyContext.setDescription(description); } /** @@ -50,7 +50,7 @@ export class UmbPropertyElement extends UmbLitElement { */ @property({ type: String }) public set alias(alias: string) { - this._propertyContext.setAlias(alias); + this.#propertyContext.setAlias(alias); } /** @@ -77,7 +77,7 @@ export class UmbPropertyElement extends UmbLitElement { */ @property({ type: Array, attribute: false }) public set config(value: UmbPropertyEditorConfig | undefined) { - this._propertyContext.setConfig(value); + this.#propertyContext.setConfig(value); } @state() @@ -98,24 +98,24 @@ export class UmbPropertyElement extends UmbLitElement { @state() private _description?: string; - private _propertyContext = new UmbPropertyContext(this); + #propertyContext = new UmbPropertyContext(this); - private _valueObserver?: UmbObserverController; - private _configObserver?: UmbObserverController; + #valueObserver?: UmbObserverController; + #configObserver?: UmbObserverController; constructor() { super(); - this.observe(this._propertyContext.alias, (alias) => { + this.observe(this.#propertyContext.alias, (alias) => { this._alias = alias; }); - this.observe(this._propertyContext.label, (label) => { + this.observe(this.#propertyContext.label, (label) => { this._label = label; }); - this.observe(this._propertyContext.description, (description) => { + this.observe(this.#propertyContext.description, (description) => { this._description = description; }); - this.observe(this._propertyContext.variantDifference, (variantDifference) => { + this.observe(this.#propertyContext.variantDifference, (variantDifference) => { this._variantDifference = variantDifference; }); } @@ -124,7 +124,7 @@ export class UmbPropertyElement extends UmbLitElement { const target = e.composedPath()[0] as any; //this.value = target.value; // Sets value in context. - this._propertyContext.setValue(target.value); + this.#propertyContext.setValue(target.value); e.stopPropagation(); }; @@ -139,7 +139,7 @@ export class UmbPropertyElement extends UmbLitElement { } private async _gotEditorUI(manifest?: ManifestPropertyEditorUi | null) { - this._propertyContext.setEditor(undefined); + this.#propertyContext.setEditor(undefined); if (!manifest) { // TODO: if propertyEditorUiAlias didn't exist in store, we should do some nice fail UI. @@ -152,26 +152,26 @@ export class UmbPropertyElement extends UmbLitElement { const oldElement = this._element; // cleanup: - this._valueObserver?.destroy(); - this._configObserver?.destroy(); + this.#valueObserver?.destroy(); + this.#configObserver?.destroy(); oldElement?.removeEventListener('property-value-change', this._onPropertyEditorChange as any as EventListener); this._element = el as ManifestPropertyEditorUi['ELEMENT_TYPE']; - this._propertyContext.setEditor(this._element); + this.#propertyContext.setEditor(this._element); if (this._element) { // TODO: Could this be changed to change event? (or additionally support change?) this._element.addEventListener('property-value-change', this._onPropertyEditorChange as any as EventListener); // No need for a controller alias, as the clean is handled via the observer prop: - this._valueObserver = this.observe(this._propertyContext.value, (value) => { + this.#valueObserver = this.observe(this.#propertyContext.value, (value) => { this._value = value; if (this._element) { this._element.value = value; } }); - this._configObserver = this.observe(this._propertyContext.config, (config) => { + this.#configObserver = this.observe(this.#propertyContext.config, (config) => { if (this._element && config) { this._element.config = config; } diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/types/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/types/index.ts new file mode 100644 index 0000000000..47487e191d --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/types/index.ts @@ -0,0 +1 @@ +export * from './property-value-data.type.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/types/property-value-data.type.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/workspace/types/property-value-data.type.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property/types/property-value-data.type.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts index 4c28d72cac..ad518c4496 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/index.ts @@ -1,4 +1,4 @@ -export * from '../property/property-dataset/index.js'; +export * from './workspace-property-dataset/index.js'; export * from './workspace-action-menu/index.js'; export * from './workspace-action/index.js'; export type { WorkspaceAliasConditionConfig } from './workspace-alias.condition.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts index a4f1b8705c..067c806e9e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts @@ -1,12 +1,12 @@ -import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; -import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; -import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; import { UMB_PROPERTY_DATASET_CONTEXT, UmbPropertyDatasetContext, - UmbInvariantableWorkspaceContextInterface, UmbNameablePropertyDatasetContext, -} from '@umbraco-cms/backoffice/workspace'; +} from '@umbraco-cms/backoffice/property'; +import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; +import { UmbBaseController } from '@umbraco-cms/backoffice/class-api'; +import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; +import { UmbInvariantableWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace'; /** * A property dataset context that hooks directly into the workspace context. diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts index 4b0f5958ba..bf9271f588 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts @@ -1,7 +1,7 @@ +import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/property'; import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js'; import type { UmbDocumentPropertyDataContext } from './document-property-dataset-context.js'; import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; -import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/workspace'; export const IsDocumentVariantContext = ( context: UmbPropertyDatasetContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts index 5054684a42..9b8da4841c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts @@ -1,3 +1,8 @@ +import { + UMB_PROPERTY_DATASET_CONTEXT, + UmbNameablePropertyDatasetContext, + UmbPropertyDatasetContext, +} from '@umbraco-cms/backoffice/property'; import type { UmbDocumentWorkspaceContext } from '../workspace/index.js'; import { DocumentVariantResponseModel, PropertyTypeModelBaseModel } from '@umbraco-cms/backoffice/backend-api'; import { type UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; @@ -5,11 +10,6 @@ import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { UmbObjectState } from '@umbraco-cms/backoffice/observable-api'; import { UmbVariantId } from '@umbraco-cms/backoffice/variant'; -import { - UMB_PROPERTY_DATASET_CONTEXT, - UmbNameablePropertyDatasetContext, - UmbPropertyDatasetContext, -} from '@umbraco-cms/backoffice/workspace'; // TODO: This code can be split into a UmbContentTypePropertyDatasetContext, leaving just the publishing state and methods to this class. export class UmbDocumentPropertyDataContext From 407022125973690d570d34e6ae1247fa89154844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 13:49:22 +0100 Subject: [PATCH 37/44] example --- .../dataset-dashboard.ts | 33 +++++++++++++++---- .../property-editor-ui-text-box.element.ts | 6 ++-- .../property-dataset.element.ts | 2 ++ .../property/property/property.context.ts | 19 +++++------ 4 files changed, 42 insertions(+), 18 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts index b0ef9c337d..4d4c0a0cb7 100644 --- a/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts +++ b/src/Umbraco.Web.UI.Client/examples/dashboard-with-property-dataset/dataset-dashboard.ts @@ -1,7 +1,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, customElement, LitElement } from '@umbraco-cms/backoffice/external/lit'; import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; -import { UmbPropertyValueData, UmbPropertyDatasetElement } from '@umbraco-cms/backoffice/property'; +import { UmbPropertyValueData, type UmbPropertyDatasetElement } from '@umbraco-cms/backoffice/property'; @customElement('example-dataset-dashboard') export class ExampleDatasetDashboard extends UmbElementMixin(LitElement) { @@ -12,20 +12,41 @@ export class ExampleDatasetDashboard extends UmbElementMixin(LitElement) { }, ]; - constructor() { - super(); + #onDataChange(e: Event) { + const oldValue = this.data; + this.data = (e.target as UmbPropertyDatasetElement).value; + this.requestUpdate('data', oldValue); } render() { return html`

    Dataset Example

    - + +
    Output of dashboard data:
    diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts index 2d053b43d8..b94f1b2c47 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.ts @@ -31,7 +31,9 @@ export class UmbPropertyEditorUITextBoxElement extends UmbLitElement implements } private onChange(e: Event) { - this.value = (e.target as HTMLInputElement).value; + const newValue = (e.target as HTMLInputElement).value; + if (newValue === this.value) return; + this.value = newValue; this.dispatchEvent(new CustomEvent('property-value-change')); } @@ -41,7 +43,7 @@ export class UmbPropertyEditorUITextBoxElement extends UmbLitElement implements .type=${this._type} inputMode=${ifDefined(this._inputMode)} maxlength=${ifDefined(this._maxChars)} - @change=${this.onChange}>`; + @input=${this.onChange}>`; } static styles = [ diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts index 679574a6f3..0ab420c2a6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts @@ -53,6 +53,7 @@ export class UmbPropertyDatasetElement extends UmbLitElement { public set value(value: Array) { this.#silentOnce = true; this.context.setValues(value); + this.#silentOnce = false; } /** @@ -75,6 +76,7 @@ export class UmbPropertyDatasetElement extends UmbLitElement { public set name(value: string | undefined) { this.#silentOnce = true; this.context.setName(value); + this.#silentOnce = false; } constructor() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index eece9606a8..21bb1b1517 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -44,13 +44,13 @@ export class UmbPropertyContext extends UmbBaseController { private _variantDifference = new UmbStringState(undefined); public readonly variantDifference = this._variantDifference.asObservable(); - #variantContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; + #datasetContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; constructor(host: UmbControllerHostElement) { super(host); this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (variantContext) => { - this.#variantContext = variantContext; + this.#datasetContext = variantContext; this._generateVariantDifferenceString(); this._observeProperty(); }); @@ -74,9 +74,9 @@ export class UmbPropertyContext extends UmbBaseController { private _observePropertyValue?: UmbObserverController; private async _observeProperty() { const alias = this.#data.getValue().alias; - if (!this.#variantContext || !alias) return; + if (!this.#datasetContext || !alias) return; - const variantIdSubject = (await this.#variantContext.propertyVariantId?.(alias)) ?? undefined; + const variantIdSubject = (await this.#datasetContext.propertyVariantId?.(alias)) ?? undefined; this._observePropertyVariant?.destroy(); if (variantIdSubject) { this._observePropertyVariant = this.observe(variantIdSubject, (variantId) => { @@ -85,7 +85,7 @@ export class UmbPropertyContext extends UmbBaseController { } // TODO: Verify if we need to optimize runtime by parsing the propertyVariantID, cause this method retrieves it again: - const subject = await this.#variantContext.propertyValueByAlias(alias); + const subject = await this.#datasetContext.propertyValueByAlias(alias); this._observePropertyValue?.destroy(); if (subject) { @@ -97,8 +97,8 @@ export class UmbPropertyContext extends UmbBaseController { } private _generateVariantDifferenceString() { - if (!this.#variantContext) return; - const contextVariantId = this.#variantContext.getVariantId?.() ?? undefined; + if (!this.#datasetContext) return; + const contextVariantId = this.#datasetContext.getVariantId?.() ?? undefined; this._variantDifference.next( contextVariantId ? this.#variantId.getValue()?.toDifferencesString(contextVariantId) : '', ); @@ -115,9 +115,8 @@ export class UmbPropertyContext extends UmbBaseController { } public setValue(value: WorkspacePropertyData['value']) { const alias = this.#data.getValue().alias; - if (!this.#variantContext || !alias) return; - - this.#variantContext?.setPropertyValue(alias, value); + if (!this.#datasetContext || !alias) return; + this.#datasetContext?.setPropertyValue(alias, value); } public setConfig(config: WorkspacePropertyData['config'] | undefined) { this.#data.update({ config }); From 8cc52c329b9f3836bfe49905a35da0b2273b0f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 14:45:28 +0100 Subject: [PATCH 38/44] make umb app context consistent with the rest --- src/Umbraco.Web.UI.Client/src/apps/app/app.context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/apps/app/app.context.ts b/src/Umbraco.Web.UI.Client/src/apps/app/app.context.ts index fda9153bb5..d89f99bf25 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/app/app.context.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/app/app.context.ts @@ -23,4 +23,4 @@ export class UmbAppContext extends UmbBaseController { } } -export const UMB_APP_CONTEXT = new UmbContextToken('UMB_APP'); +export const UMB_APP_CONTEXT = new UmbContextToken('UmbAppContext'); From 1c6c1e296c177fb4b58c784b371240a92c6bae1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Dec 2023 15:08:50 +0100 Subject: [PATCH 39/44] correct schema tester --- src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json b/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json index 59034cd817..26812fa8b7 100644 --- a/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json +++ b/src/Umbraco.Web.UI.Client/utils/json-schema/test-package.json @@ -1,9 +1,10 @@ { - "$schema": "../../types/umbraco-package-schema.json", + "$schema": "../../dist-cms/umbraco-package-schema.json", "name": "My Package", "version": "1.0.0", "extensions": [ { + "type": "dashboard", "name": "My Dashboard", "alias": "myDashboard", @@ -11,7 +12,6 @@ "elementName": "my-dashboard", "js": "js/my-dashboard.js", - "type": "dashboard", "meta": { "label": "My Dashboard", "pathname": "my-dashboard" From 500e6104a1bafe9dd9d8f2e88411b495c9943d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 12 Dec 2023 14:14:48 +0100 Subject: [PATCH 40/44] rename getType to getEntityType --- .../property/property-dataset/property-dataset-base-context.ts | 2 +- .../property-dataset/property-dataset-context.interface.ts | 2 +- .../invariant-workspace-property-dataset-context.ts | 2 +- .../document-property-dataset-context.token.ts | 2 +- .../document-property-dataset-context.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts index bf38d0ae29..9f6a32fb01 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts @@ -26,7 +26,7 @@ export class UmbPropertyDatasetBaseContext private _entityType!: string; private _unique!: string; - getType() { + getEntityType() { return this._entityType; } getUnique() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts index 95ecee1067..a27696958e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts @@ -16,7 +16,7 @@ import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; * Also setting the name is an additional feature. */ export interface UmbPropertyDatasetContext { - getType(): string; + getEntityType(): string; getUnique(): string | undefined; getVariantId: () => UmbVariantId; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts index 067c806e9e..7a4bd4d0e2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts @@ -26,7 +26,7 @@ export class UmbInvariantWorkspacePropertyDatasetContext< getVariantId() { return UmbVariantId.CreateInvariant(); } - getType() { + getEntityType() { return this.#workspace.getEntityType(); } getUnique() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts index bf9271f588..882da08611 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts @@ -5,7 +5,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; export const IsDocumentVariantContext = ( context: UmbPropertyDatasetContext, -): context is UmbDocumentPropertyDataContext => context.getType() === UMB_DOCUMENT_ENTITY_TYPE; +): context is UmbDocumentPropertyDataContext => context.getEntityType() === UMB_DOCUMENT_ENTITY_TYPE; export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken< UmbPropertyDatasetContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts index 9b8da4841c..24e8b55ac2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts @@ -34,7 +34,7 @@ export class UmbDocumentPropertyDataContext // This will actually make it simpler if multiple are watching the same property. // But it will also mean that we wil watch all properties and their structure, for variantID, all the time for all of the properties. - getType(): string { + getEntityType(): string { return this.#workspace.getEntityType(); } getUnique(): string | undefined { From 2db62a6da83ae14f1d07912516863aa5d42781ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:28:09 +0100 Subject: [PATCH 41/44] dataset test and impl --- .../property-dataset.element.test.ts | 91 +++++++++++++++---- .../property-dataset.element.ts | 44 ++++----- 2 files changed, 94 insertions(+), 41 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts index fd45760328..700bcb0184 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts @@ -9,7 +9,7 @@ import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; @customElement('test-property-editor') export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { // - #variantContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; + _datasetContext?: typeof UMB_PROPERTY_DATASET_CONTEXT.TYPE; @property() public get alias() { @@ -29,17 +29,15 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { } setValue(value: string) { if (this._alias) { - this.dispatchEvent(new UmbChangeEvent()); - this.#variantContext?.setPropertyValue(this._alias, value); + this._datasetContext?.setPropertyValue(this._alias, value); this.dispatchEvent(new UmbChangeEvent()); } } - private async _observeProperty() { - const alias = this._alias; - if (!this.#variantContext || !alias) return; + protected async _observeProperty() { + if (!this._datasetContext || !this._alias) return; this.observe( - await this.#variantContext.propertyValueByAlias(alias), + await this._datasetContext.propertyValueByAlias(this._alias), (value) => { this._value = value as string; }, @@ -50,12 +48,28 @@ export class UmbTestPropertyEditorElement extends UmbElementMixin(LitElement) { constructor() { super(); this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (variantContext) => { - this.#variantContext = variantContext; + this._datasetContext = variantContext; this._observeProperty(); }); } } +// Adapter property editor, which tests what happens if a editor sets values of other editors. +@customElement('test-adapter-property-editor') +export class UmbTestAdapterPropertyEditorElement extends UmbTestPropertyEditorElement { + protected async _observeProperty() { + super._observeProperty(); + if (!this._datasetContext || !this._alias) return; + this.observe( + await this._datasetContext.propertyValueByAlias(this._alias), + (value) => { + this._datasetContext?.setPropertyValue('testAlias', 'setByAdapter_' + value); + }, + 'observeValue', + ); + } +} + const dataSet: Array = [ { alias: 'testAlias', @@ -64,25 +78,43 @@ const dataSet: Array = [ ]; describe('UmbBasicVariantElement', () => { + describe('Public API', () => { + let datasetElement: UmbPropertyDatasetElement; + + beforeEach(async () => { + datasetElement = await fixture(html` `); + }); + + describe('properties', () => { + it('has a value property', () => { + expect(datasetElement).to.have.property('value').to.be.an.a('array'); + }); + + it('has a name property', () => { + expect(datasetElement).to.have.property('name').to.be.an.a('string'); + }); + }); + }); + describe('Data bindings', () => { - let variantElement: UmbPropertyDatasetElement; + let datasetElement: UmbPropertyDatasetElement; let propertyEditor: UmbTestPropertyEditorElement; beforeEach(async () => { - variantElement = await fixture( + datasetElement = await fixture( html` `, ); - propertyEditor = variantElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; + propertyEditor = datasetElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; }); - it('basic-variant is defined with its own instance', () => { - expect(variantElement).to.be.instanceOf(UmbPropertyDatasetElement); + it('is defined with its own instance', () => { + expect(datasetElement).to.be.instanceOf(UmbPropertyDatasetElement); }); - it('property editor gets value', () => { + it('provides the value for the property editor to get', () => { expect(propertyEditor.alias).to.equal('testAlias'); expect(propertyEditor.getValue()).to.equal('testValue'); }); @@ -92,14 +124,14 @@ describe('UmbBasicVariantElement', () => { expect(propertyEditor.getValue()).to.equal('testValue2'); }); - it('property editor sets value on context', () => { + it('retrieves value set by child', () => { propertyEditor.setValue('testValue2'); - expect(variantElement.context.getValues()[0].alias).to.equal('testAlias'); - expect(variantElement.context.getValues()[0].value).to.equal('testValue2'); + expect(datasetElement.context.getValues()[0].alias).to.equal('testAlias'); + expect(datasetElement.context.getValues()[0].value).to.equal('testValue2'); }); - it('variant element fires change event', async () => { - const listener = oneEvent(variantElement, UmbChangeEvent.TYPE); + it('fires change event', async () => { + const listener = oneEvent(datasetElement, UmbChangeEvent.TYPE); expect(propertyEditor.alias).to.eq('testAlias'); propertyEditor.setValue('testValue3'); @@ -107,7 +139,26 @@ describe('UmbBasicVariantElement', () => { const event = (await listener) as unknown as UmbChangeEvent; expect(event).to.exist; expect(event.type).to.eq(UmbChangeEvent.TYPE); - expect(event.target).to.equal(variantElement); + expect(event.target).to.equal(datasetElement); + }); + + it('is does respond to changes triggered internally', async () => { + const adapterPropertyEditor = document.createElement( + 'test-adapter-property-editor', + ) as UmbTestAdapterPropertyEditorElement; + datasetElement.appendChild(adapterPropertyEditor); + + const listener = oneEvent(datasetElement, UmbChangeEvent.TYPE); + + expect(propertyEditor.alias).to.eq('testAlias'); + adapterPropertyEditor.setValue('testValue4'); + + const event = (await listener) as unknown as UmbChangeEvent; + expect(event).to.exist; + expect(event.type).to.eq(UmbChangeEvent.TYPE); + expect(event.target).to.equal(datasetElement); + expect(adapterPropertyEditor.getValue()).to.equal('testValue4'); + expect(propertyEditor.getValue()).to.equal('setByAdapter_testValue4'); }); }); }); diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts index 0ab420c2a6..b501549a4c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.ts @@ -11,8 +11,8 @@ import { UmbChangeEvent } from '@umbraco-cms/backoffice/event'; */ @customElement('umb-property-dataset') export class UmbPropertyDatasetElement extends UmbLitElement { - // A take on only firing events when the value is changed from the outside. - #silentOnce = true; + // Determine wether state change should fire an event when the value is changed. + #allowChangeEvent = false; public readonly context: UmbPropertyDatasetBaseContext; @@ -51,9 +51,10 @@ export class UmbPropertyDatasetElement extends UmbLitElement { return this.context.getValues(); } public set value(value: Array) { - this.#silentOnce = true; + this.#allowChangeEvent = false; this.context.setValues(value); - this.#silentOnce = false; + // Above might not trigger a observer callback (if no change), so set the allow change event to true: + this.#allowChangeEvent = true; } /** @@ -74,9 +75,10 @@ export class UmbPropertyDatasetElement extends UmbLitElement { return this.context.getName(); } public set name(value: string | undefined) { - this.#silentOnce = true; + this.#allowChangeEvent = false; this.context.setName(value); - this.#silentOnce = false; + // Above might not trigger a observer callback (if no change), so set the allow change event to true: + this.#allowChangeEvent = true; } constructor() { @@ -90,23 +92,23 @@ export class UmbPropertyDatasetElement extends UmbLitElement { }); this.context = new UmbPropertyDatasetBaseContext(this); - this.observe(this.context.name, () => { - if (!this.#silentOnce) { - this.dispatchEvent(new UmbChangeEvent()); - } else { - this.#silentOnce = false; - } - }); - this.#silentOnce = true; - this.observe(this.context.values, () => { - if (!this.#silentOnce) { - this.dispatchEvent(new UmbChangeEvent()); - } else { - this.#silentOnce = false; - } - }); + // prevent the first change event from firing: + this.#allowChangeEvent = false; + this.observe(this.context.name, this.#observerCallback); + // prevent the first change event from firing: + this.#allowChangeEvent = false; + this.observe(this.context.values, this.#observerCallback); } + #observerCallback = () => { + if (this.#allowChangeEvent) { + this.dispatchEvent(new UmbChangeEvent()); + } else { + // Set allow change event to true. + this.#allowChangeEvent = true; + } + }; + render() { return html``; } From aeaa99aa0fe7ae5c320b968855bef1d50d3c0c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:28:52 +0100 Subject: [PATCH 42/44] use invariant property dataset context --- .../core/data-type/workspace/data-type-workspace.context.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index a0e34911a3..ac85b0e50c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -5,6 +5,7 @@ import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface, + UmbInvariantWorkspacePropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; import { appendToFrozenArray, @@ -146,7 +147,9 @@ export class UmbDataTypeWorkspaceContext } createPropertyDatasetContext(host: UmbControllerHost) { - // TODO: Could use the Workspace version, to spare the energy of mapping values: + const context = new UmbInvariantWorkspacePropertyDatasetContext(host, this); + /* + // Example of how this could have been done with the PropertyDatasetBaseContext: const context = new UmbPropertyDatasetBaseContext(host); // Observe workspace name: @@ -184,6 +187,7 @@ export class UmbDataTypeWorkspaceContext }, 'observePropertyValues', ); + */ return context; } From a8a3de259c44728203db4d8cf3dae9f4b1f1dc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:33:48 +0100 Subject: [PATCH 43/44] append type to avoid type problem. --- .../data-type/workspace/data-type-workspace.context.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index ac85b0e50c..b3548f52f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -1,4 +1,4 @@ -import { UmbPropertyDatasetBaseContext } from '@umbraco-cms/backoffice/property'; +import { UmbPropertyDatasetContext } from '@umbraco-cms/backoffice/property'; import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-detail.repository.js'; import type { UmbDataTypeDetailModel } from '../types.js'; import { @@ -146,8 +146,8 @@ export class UmbDataTypeWorkspaceContext return this._configDefaultData?.find((x) => x.alias === alias)?.value; } - createPropertyDatasetContext(host: UmbControllerHost) { - const context = new UmbInvariantWorkspacePropertyDatasetContext(host, this); + createPropertyDatasetContext(host: UmbControllerHost): UmbPropertyDatasetContext { + return new UmbInvariantWorkspacePropertyDatasetContext(host, this); /* // Example of how this could have been done with the PropertyDatasetBaseContext: const context = new UmbPropertyDatasetBaseContext(host); @@ -187,8 +187,8 @@ export class UmbDataTypeWorkspaceContext }, 'observePropertyValues', ); - */ return context; + */ } async load(unique: string) { From d80c728b50064e41ec88e14e824a4a78d9a44c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:40:03 +0100 Subject: [PATCH 44/44] correct tests --- .../property-dataset.element.test.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts index 700bcb0184..70401d924f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset.element.test.ts @@ -82,7 +82,9 @@ describe('UmbBasicVariantElement', () => { let datasetElement: UmbPropertyDatasetElement; beforeEach(async () => { - datasetElement = await fixture(html` `); + datasetElement = await fixture( + html` `, + ); }); describe('properties', () => { @@ -110,7 +112,7 @@ describe('UmbBasicVariantElement', () => { propertyEditor = datasetElement.querySelector('test-property-editor') as UmbTestPropertyEditorElement; }); - it('is defined with its own instance', () => { + it('defines with its own instance', () => { expect(datasetElement).to.be.instanceOf(UmbPropertyDatasetElement); }); @@ -142,15 +144,20 @@ describe('UmbBasicVariantElement', () => { expect(event.target).to.equal(datasetElement); }); - it('is does respond to changes triggered internally', async () => { + it('does respond to changes triggered internally', async () => { const adapterPropertyEditor = document.createElement( 'test-adapter-property-editor', ) as UmbTestAdapterPropertyEditorElement; + + // We actually do not use the alias of the adapter property editor, but we need to set this to start observing the property value: + adapterPropertyEditor.alias = 'testAdapterAlias'; datasetElement.appendChild(adapterPropertyEditor); const listener = oneEvent(datasetElement, UmbChangeEvent.TYPE); + // The alias of the original property editor must be 'testAlias' for the adapter to set the value of it. expect(propertyEditor.alias).to.eq('testAlias'); + expect(adapterPropertyEditor.alias).to.eq('testAdapterAlias'); adapterPropertyEditor.setValue('testValue4'); const event = (await listener) as unknown as UmbChangeEvent;