Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Move property editor UI picker modal #2329

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/packages/core/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { manifests as menuManifests } from './menu/manifests.js';
import { manifests as modalManifests } from './modal/manifests.js';
import { manifests as pickerManifests } from './picker/manifests.js';
import { manifests as propertyActionManifests } from './property-action/manifests.js';
import { manifests as propertyEditorManifests } from './property-editor/manifests.js';
import { manifests as propertyManifests } from './property/manifests.js';
import { manifests as propertyTypeManifests } from './property-type/manifests.js';
import { manifests as recycleBinManifests } from './recycle-bin/manifests.js';
Expand Down Expand Up @@ -40,6 +41,7 @@ export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> =
...modalManifests,
...pickerManifests,
...propertyActionManifests,
...propertyEditorManifests,
...propertyManifests,
...propertyTypeManifests,
...recycleBinManifests,
Expand Down
1 change: 0 additions & 1 deletion src/packages/core/modal/token/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './change-password-modal.token.js';
export * from './embedded-media-modal.token.js';
export * from './modal-token.js';
export * from './property-editor-ui-picker-modal.token.js';
3 changes: 2 additions & 1 deletion src/packages/core/property-editor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './components/index.js';
export * from './config/index.js';
export * from './events/index.js';
export * from './constants.js';
export * from './events/index.js';
export * from './ui-picker-modal/index.js';
3 changes: 3 additions & 0 deletions src/packages/core/property-editor/manifests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { manifests as uiPickerModalManifests } from './ui-picker-modal/manifests.js';

export const manifests: Array<UmbExtensionManifest> = [...uiPickerModalManifests];
1 change: 1 addition & 0 deletions src/packages/core/property-editor/ui-picker-modal/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './property-editor-ui-picker-modal.token.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const manifests: Array<UmbExtensionManifest> = [
{
type: 'modal',
alias: 'Umb.Modal.PropertyEditorUiPicker',
name: 'Property Editor UI Picker Modal',
element: () => import('./property-editor-ui-picker-modal.element.js'),
},
];
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type {
UmbPropertyEditorUIPickerModalData,
UmbPropertyEditorUIPickerModalValue,
} from './property-editor-ui-picker-modal.token.js';
import { css, customElement, html, repeat, state } from '@umbraco-cms/backoffice/external/lit';
import { fromCamelCase } from '@umbraco-cms/backoffice/utils';
import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
import { umbFocus } from '@umbraco-cms/backoffice/lit-element';
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
import type { ManifestPropertyEditorUi } from '@umbraco-cms/backoffice/extension-registry';
import type {
UmbPropertyEditorUIPickerModalData,
UmbPropertyEditorUIPickerModalValue,
} from '@umbraco-cms/backoffice/modal';
import type { UUIInputEvent } from '@umbraco-cms/backoffice/external/uui';

@customElement('umb-property-editor-ui-picker-modal')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { UmbPropertyEditorUIPickerModalElement } from './property-editor-ui-picker-modal.element.js';
import type { UmbPropertyEditorUIPickerModalValue } from './property-editor-ui-picker-modal.token.js';
import type { Meta, Story } from '@storybook/web-components';
import { html } from '@umbraco-cms/backoffice/external/lit';
import type { UmbPropertyEditorUIPickerModalValue } from '@umbraco-cms/backoffice/modal';

import './property-editor-ui-picker-modal.element.js';
import '../../../core/components/body-layout/body-layout.element.js';
import '../../components/body-layout/body-layout.element.js';

export default {
title: 'API/Modals/Layouts/Property Editor UI Picker',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UmbModalToken } from './modal-token.js';
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';

export interface UmbPropertyEditorUIPickerModalData {
/** @deprecated This property will be removed in Umbraco 15. */
Expand Down
6 changes: 0 additions & 6 deletions src/packages/data-type/modals/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
export const manifests: Array<UmbExtensionManifest> = [
{
type: 'modal',
alias: 'Umb.Modal.PropertyEditorUiPicker',
name: 'Property Editor UI Picker Modal',
element: () => import('./property-editor-ui-picker/property-editor-ui-picker-modal.element.js'),
},
{
type: 'modal',
alias: 'Umb.Modal.DataTypePickerFlow',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from '../../data-type-workspace.conte
import { css, customElement, html, nothing, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
import { UMB_MODAL_MANAGER_CONTEXT, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL } from '@umbraco-cms/backoffice/modal';
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
import { UMB_PROPERTY_EDITOR_UI_PICKER_MODAL } from '@umbraco-cms/backoffice/property-editor';
import type { UmbWorkspaceViewElement } from '@umbraco-cms/backoffice/workspace';
import { umbBindToValidation } from '@umbraco-cms/backoffice/validation';

Expand Down
Loading