From d87b4d489394193b9da708b1a9873535025968cd Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 22 May 2023 11:16:05 +0200 Subject: [PATCH] add index.ts to property-actions --- .../{ => common}/clear/property-action-clear.element.ts | 2 +- .../{ => common}/clear/property-action-clear.stories.ts | 0 .../{ => common}/copy/property-action-copy.element.ts | 2 +- .../{ => common}/copy/property-action-copy.stories.ts | 0 .../src/packages/core/property-actions/index.ts | 1 + .../src/packages/core/property-actions/manifests.ts | 4 ++-- .../src/packages/core/property-actions/shared/index.ts | 2 ++ 7 files changed, 7 insertions(+), 4 deletions(-) rename src/Umbraco.Web.UI.Client/src/packages/core/property-actions/{ => common}/clear/property-action-clear.element.ts (95%) rename src/Umbraco.Web.UI.Client/src/packages/core/property-actions/{ => common}/clear/property-action-clear.stories.ts (100%) rename src/Umbraco.Web.UI.Client/src/packages/core/property-actions/{ => common}/copy/property-action-copy.element.ts (94%) rename src/Umbraco.Web.UI.Client/src/packages/core/property-actions/{ => common}/copy/property-action-copy.stories.ts (100%) create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property-actions/index.ts create mode 100644 src/Umbraco.Web.UI.Client/src/packages/core/property-actions/shared/index.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/clear/property-action-clear.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/clear/property-action-clear.element.ts similarity index 95% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-actions/clear/property-action-clear.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/clear/property-action-clear.element.ts index 26cd0dcd55..d57ea5fc09 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/clear/property-action-clear.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/clear/property-action-clear.element.ts @@ -1,6 +1,6 @@ import { html } from 'lit'; import { customElement, property } from 'lit/decorators.js'; -import { UmbPropertyAction } from '../shared/property-action/property-action.model'; +import { UmbPropertyAction } from '../../shared/property-action/property-action.model'; import { UmbWorkspacePropertyContext, UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/workspace'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/clear/property-action-clear.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/clear/property-action-clear.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-actions/clear/property-action-clear.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/clear/property-action-clear.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/copy/property-action-copy.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/copy/property-action-copy.element.ts similarity index 94% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-actions/copy/property-action-copy.element.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/copy/property-action-copy.element.ts index 1e7cc2136b..15445335f3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/copy/property-action-copy.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/copy/property-action-copy.element.ts @@ -1,6 +1,6 @@ import { html } from 'lit'; import { customElement, property } from 'lit/decorators.js'; -import type { UmbPropertyAction } from '../shared/property-action/property-action.model'; +import type { UmbPropertyAction } from '../../shared/property-action/property-action.model'; import { UmbNotificationDefaultData, UmbNotificationContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/copy/property-action-copy.stories.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/copy/property-action-copy.stories.ts similarity index 100% rename from src/Umbraco.Web.UI.Client/src/packages/core/property-actions/copy/property-action-copy.stories.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/property-actions/common/copy/property-action-copy.stories.ts diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/index.ts new file mode 100644 index 0000000000..c3da79f741 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/index.ts @@ -0,0 +1 @@ +export * from './shared'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/manifests.ts index a950a56e49..c803df59d3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/manifests.ts @@ -5,7 +5,7 @@ export const manifests: Array = [ type: 'propertyAction', alias: 'Umb.PropertyAction.Copy', name: 'Copy Property Action', - loader: () => import('./copy/property-action-copy.element'), + loader: () => import('./common/copy/property-action-copy.element'), conditions: { propertyEditors: ['Umb.PropertyEditorUI.TextBox'], }, @@ -14,7 +14,7 @@ export const manifests: Array = [ type: 'propertyAction', alias: 'Umb.PropertyAction.Clear', name: 'Clear Property Action', - loader: () => import('./clear/property-action-clear.element'), + loader: () => import('./common/clear/property-action-clear.element'), conditions: { propertyEditors: ['Umb.PropertyEditorUI.TextBox'], }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/shared/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/shared/index.ts new file mode 100644 index 0000000000..c5cffae2c9 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-actions/shared/index.ts @@ -0,0 +1,2 @@ +export * from './property-action/property-action.element'; +export * from './property-action-menu/property-action-menu.element';