move node editor to shared folder
This commit is contained in:
@@ -2,7 +2,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
|
||||
import '../node/editor-node.element';
|
||||
import '../shared/node/editor-node.element';
|
||||
|
||||
@customElement('umb-editor-content')
|
||||
export class UmbEditorContentElement extends LitElement {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
|
||||
import '../node/editor-node.element';
|
||||
import '../shared/node/editor-node.element';
|
||||
|
||||
@customElement('umb-editor-media')
|
||||
export class UmbEditorMediaElement extends LitElement {
|
||||
|
||||
@@ -2,20 +2,20 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { customElement, property, state } from 'lit/decorators.js';
|
||||
import { UUIInputElement, UUIInputEvent } from '@umbraco-ui/uui';
|
||||
import { UmbContextConsumerMixin, UmbContextProviderMixin } from '../../../core/context';
|
||||
import { UmbNodeStore } from '../../../core/stores/node.store';
|
||||
import { UmbContextConsumerMixin, UmbContextProviderMixin } from '../../../../core/context';
|
||||
import { UmbNodeStore } from '../../../../core/stores/node.store';
|
||||
import { distinctUntilChanged, Subscription } from 'rxjs';
|
||||
import { NodeEntity } from '../../../mocks/data/node.data';
|
||||
import type { UmbNotificationService } from '../../../core/services/notification';
|
||||
import { NodeEntity } from '../../../../mocks/data/node.data';
|
||||
import type { UmbNotificationService } from '../../../../core/services/notification';
|
||||
import { UmbNodeContext } from './node.context';
|
||||
|
||||
import '../shared/editor-entity/editor-entity.element';
|
||||
import '../../shared/editor-entity/editor-entity.element';
|
||||
|
||||
// Lazy load
|
||||
// TODO: Make this dynamic, use load-extensions method to loop over extensions for this node.
|
||||
import './views/edit/editor-view-node-edit.element';
|
||||
import './views/info/editor-view-node-info.element';
|
||||
import { UmbNotificationDefaultData } from '../../../core/services/notification/layouts/default';
|
||||
import { UmbNotificationDefaultData } from '../../../../core/services/notification/layouts/default';
|
||||
|
||||
@customElement('umb-editor-node')
|
||||
export class UmbEditorNodeElement extends UmbContextProviderMixin(UmbContextConsumerMixin(LitElement)) {
|
||||
@@ -4,7 +4,7 @@ import { html } from 'lit-html';
|
||||
import { UmbEditorNodeElement } from './editor-node.element';
|
||||
import './editor-node.element';
|
||||
|
||||
import { data } from '../../../mocks/data/node.data';
|
||||
import { data } from '../../../../mocks/data/node.data';
|
||||
|
||||
export default {
|
||||
title: 'Editors/Node',
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
import { NodeEntity } from '../../../mocks/data/node.data';
|
||||
import { NodeEntity } from '../../../../mocks/data/node.data';
|
||||
|
||||
export class UmbNodeContext {
|
||||
// TODO: figure out how fine grained we want to make our observables.
|
||||
@@ -7,7 +7,7 @@ export class UmbNodeContext {
|
||||
id: -1,
|
||||
key: '',
|
||||
name: '',
|
||||
alias: '',
|
||||
type: '',
|
||||
icon: '',
|
||||
properties: [
|
||||
{
|
||||
@@ -1,12 +1,12 @@
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { customElement, state } from 'lit/decorators.js';
|
||||
import { NodeProperty, NodePropertyData } from '../../../../../mocks/data/node.data';
|
||||
import { UmbContextConsumerMixin } from '../../../../../core/context';
|
||||
import { NodeProperty, NodePropertyData } from '../../../../../../mocks/data/node.data';
|
||||
import { UmbContextConsumerMixin } from '../../../../../../core/context';
|
||||
import { UmbNodeContext } from '../../node.context';
|
||||
import { Subscription, distinctUntilChanged } from 'rxjs';
|
||||
|
||||
import '../../../../components/node-property.element';
|
||||
import '../../../../../components/node-property.element';
|
||||
|
||||
@customElement('umb-editor-view-node-edit')
|
||||
export class UmbEditorViewNodeEditElement extends UmbContextConsumerMixin(LitElement) {
|
||||
@@ -4,7 +4,7 @@ import { html } from 'lit-html';
|
||||
import { UmbNodeContext } from '../../node.context';
|
||||
import { UmbEditorViewNodeEditElement } from './editor-view-node-edit.element';
|
||||
import './editor-view-node-edit.element';
|
||||
import { data } from '../../../../../mocks/data/node.data';
|
||||
import { data } from '../../../../../../mocks/data/node.data';
|
||||
|
||||
export default {
|
||||
title: 'Editors/Node/Views/Edit',
|
||||
@@ -1,7 +1,7 @@
|
||||
import { css, html, LitElement } from 'lit';
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { customElement, state } from 'lit/decorators.js';
|
||||
import { UmbContextConsumerMixin } from '../../../../../core/context';
|
||||
import { UmbContextConsumerMixin } from '../../../../../../core/context';
|
||||
import { UmbNodeContext } from '../../node.context';
|
||||
import { Subscription, distinctUntilChanged } from 'rxjs';
|
||||
|
||||
@@ -4,7 +4,7 @@ import { html } from 'lit-html';
|
||||
import { UmbNodeContext } from '../../node.context';
|
||||
import { UmbEditorViewNodeInfoElement } from './editor-view-node-info.element';
|
||||
import './editor-view-node-info.element';
|
||||
import { data } from '../../../../../mocks/data/node.data';
|
||||
import { data } from '../../../../../../mocks/data/node.data';
|
||||
|
||||
export default {
|
||||
title: 'Editors/Node/Views/Info',
|
||||
@@ -106,7 +106,7 @@ export const internalManifests: Array<UmbExtensionManifestCore> = [
|
||||
alias: 'Umb.EditorView.ContentEdit',
|
||||
name: 'Content',
|
||||
elementName: 'umb-editor-view-node-edit',
|
||||
js: () => import('./backoffice/editors/node/views/edit/editor-view-node-edit.element'),
|
||||
js: () => import('./backoffice/editors/shared/node/views/edit/editor-view-node-edit.element'),
|
||||
meta: {
|
||||
// TODO: how do we want to filter where editor views are shown? https://our.umbraco.com/documentation/extending/Content-Apps/#setting-up-the-plugin
|
||||
// this is a temp solution
|
||||
@@ -121,7 +121,7 @@ export const internalManifests: Array<UmbExtensionManifestCore> = [
|
||||
alias: 'Umb.EditorView.ContentInfo',
|
||||
name: 'Info',
|
||||
elementName: 'umb-editor-view-node-info',
|
||||
js: () => import('./backoffice/editors/node/views/info/editor-view-node-info.element'),
|
||||
js: () => import('./backoffice/editors/shared/node/views/info/editor-view-node-info.element'),
|
||||
meta: {
|
||||
// TODO: how do we want to filter where editor views are shown? https://our.umbraco.com/documentation/extending/Content-Apps/#setting-up-the-plugin
|
||||
// this is a temp solution
|
||||
|
||||
Reference in New Issue
Block a user