entity-layout
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//TODO: we need to figure out what components should be available for extensions and load them upfront
|
||||
import './workspaces/shared/editor-entity-layout/editor-entity-layout.element';
|
||||
import './workspaces/shared/workspace-entity-layout/workspace-entity-layout.element';
|
||||
import './components/ref-property-editor-ui/ref-property-editor-ui.element';
|
||||
import './components/backoffice-frame/backoffice-header.element';
|
||||
import './components/backoffice-frame/backoffice-main.element';
|
||||
|
||||
@@ -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 '../shared/editor-entity-layout/editor-entity-layout.element';
|
||||
import '../shared/workspace-entity-layout/workspace-entity-layout.element';
|
||||
|
||||
@customElement('umb-editor-media-type')
|
||||
export class UmbEditorMediaTypeElement 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 '../shared/editor-entity-layout/editor-entity-layout.element';
|
||||
import '../shared/workspace-entity-layout/workspace-entity-layout.element';
|
||||
|
||||
@customElement('umb-editor-member-type')
|
||||
export class UmbEditorMemberTypeElement extends LitElement {
|
||||
|
||||
@@ -12,7 +12,7 @@ import type { UmbDocumentStore } from 'src/core/stores/document/document.store';
|
||||
import { UmbMediaStore } from 'src/core/stores/media/media.store';
|
||||
import type { DocumentDetails, MediaDetails } from '@umbraco-cms/models';
|
||||
|
||||
import '../editor-entity-layout/editor-entity-layout.element';
|
||||
import '../workspace-entity-layout/workspace-entity-layout.element';
|
||||
|
||||
// Lazy load
|
||||
// TODO: Make this dynamic, use load-extensions method to loop over extensions for this node.
|
||||
|
||||
@@ -23,11 +23,11 @@ import '../editor-action-extension/editor-action-extension.element';
|
||||
* @slot actions - Slot for rendering the entity actions
|
||||
* @slot default - slot for main content
|
||||
* @export
|
||||
* @class UmbEditorEntityLayout
|
||||
* @class UmbWorkspaceEntityLayout
|
||||
* @extends {UmbContextConsumerMixin(LitElement)}
|
||||
*/
|
||||
@customElement('umb-workspace-entity-layout')
|
||||
export class UmbEditorEntityLayout extends UmbContextConsumerMixin(UmbObserverMixin(LitElement)) {
|
||||
export class UmbWorkspaceEntityLayout extends UmbContextConsumerMixin(UmbObserverMixin(LitElement)) {
|
||||
static styles = [
|
||||
UUITextStyles,
|
||||
css`
|
||||
@@ -171,6 +171,6 @@ export class UmbEditorEntityLayout extends UmbContextConsumerMixin(UmbObserverMi
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'umb-workspace-entity-layout': UmbEditorEntityLayout;
|
||||
'umb-workspace-entity-layout': UmbWorkspaceEntityLayout;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import './editor-entity-layout.element';
|
||||
import './workspace-entity-layout.element';
|
||||
|
||||
import { Meta, Story } from '@storybook/web-components';
|
||||
import { html } from 'lit-html';
|
||||
|
||||
import type { UmbEditorEntityLayout } from './editor-entity-layout.element';
|
||||
import type { UmbWorkspaceEntityLayout } from './workspace-entity-layout.element';
|
||||
|
||||
export default {
|
||||
title: 'Editors/Shared/Editor Entity Layout',
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
id: 'umb-workspace-entity-layout',
|
||||
} as Meta;
|
||||
|
||||
export const AAAOverview: Story<UmbEditorEntityLayout> = () => html` <umb-workspace-entity-layout>
|
||||
export const AAAOverview: Story<UmbWorkspaceEntityLayout> = () => html` <umb-workspace-entity-layout>
|
||||
<div slot="icon"><uui-button color="" look="placeholder">Icon slot</uui-button></div>
|
||||
<div slot="name"><uui-button color="" look="placeholder">Name slot</uui-button></div>
|
||||
<div slot="footer"><uui-button color="" look="placeholder">Footer slot</uui-button></div>
|
||||
@@ -17,7 +17,7 @@ import '@umbraco-cms/components/input-user-group/input-user-group.element';
|
||||
|
||||
import { umbCurrentUserService } from 'src/core/services/current-user';
|
||||
import { UmbModalService } from '@umbraco-cms/services';
|
||||
import '../shared/editor-entity-layout/editor-entity-layout.element';
|
||||
import '../shared/workspace-entity-layout/workspace-entity-layout.element';
|
||||
import { umbExtensionsRegistry } from '@umbraco-cms/extensions-registry';
|
||||
import { UmbObserverMixin } from '@umbraco-cms/observable-api';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user