From a818a6aa8f1aef5278ef8349fb640f4e9156c0dc Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Wed, 7 Sep 2022 13:15:21 +0200 Subject: [PATCH] move registration of custom uui elements --- src/Umbraco.Web.UI.Client/src/app.ts | 6 ++++++ .../property-editor-content-picker.element.ts | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/app.ts b/src/Umbraco.Web.UI.Client/src/app.ts index 02f80c23d8..de6d164323 100644 --- a/src/Umbraco.Web.UI.Client/src/app.ts +++ b/src/Umbraco.Web.UI.Client/src/app.ts @@ -1,6 +1,12 @@ import './css/custom-properties.css'; import 'router-slot'; +// TODO: remove these imports when they are part of UUI +import '@umbraco-ui/uui-modal'; +import '@umbraco-ui/uui-modal-sidebar'; +import '@umbraco-ui/uui-modal-container'; +import '@umbraco-ui/uui-modal-dialog'; + import { UUIIconRegistryEssential } from '@umbraco-ui/uui'; import { css, html, LitElement } from 'lit'; import { customElement, state } from 'lit/decorators.js'; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/property-editor-content-picker.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/property-editor-content-picker.element.ts index bb863d7443..be556328b3 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/property-editor-content-picker.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/property-editor-content-picker.element.ts @@ -1,16 +1,10 @@ -import { css, html, LitElement } from 'lit'; import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; +import { css, html, LitElement } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import { UmbContextConsumerMixin } from '../../core/context'; import { UmbModalService } from '../../core/services/modal'; -// TODO: remove these imports when they are part of UUI -import '@umbraco-ui/uui-modal'; -import '@umbraco-ui/uui-modal-sidebar'; -import '@umbraco-ui/uui-modal-container'; -import '@umbraco-ui/uui-modal-dialog'; - @customElement('umb-property-editor-content-picker') export class UmbPropertyEditorContentPicker extends UmbContextConsumerMixin(LitElement) { static styles = [