Revert "move modal tokens to separate file"
This reverts commit 4800d03fcd.
This commit is contained in:
@@ -20,9 +20,14 @@ import {
|
||||
UmbPartialViewPickerModalResult,
|
||||
} from '@umbraco-cms/backoffice/modal';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_MODAL } from '../../modals/modal-tokens';
|
||||
|
||||
|
||||
export const UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_MODAL = new UmbModalToken<{ hidePartialView: boolean }>(
|
||||
UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS,
|
||||
{
|
||||
type: 'sidebar',
|
||||
size: 'small',
|
||||
}
|
||||
);
|
||||
|
||||
@customElement('umb-templating-insert-menu')
|
||||
export class UmbTemplatingInsertMenuElement extends UmbLitElement {
|
||||
|
||||
@@ -1,18 +1,25 @@
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css';
|
||||
import { css, html } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL } from './modal-tokens';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS } from './manifests';
|
||||
import { UmbModalBaseElement } from '@umbraco-cms/internal/modal';
|
||||
import {
|
||||
UMB_MODAL_CONTEXT_TOKEN,
|
||||
UmbModalContext,
|
||||
UmbModalToken,
|
||||
UMB_PARTIAL_VIEW_PICKER_MODAL,
|
||||
UmbModalHandler,
|
||||
UMB_DICTIONARY_ITEM_PICKER_MODAL,
|
||||
UmbDictionaryItemPickerModalResult,
|
||||
} from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
|
||||
export const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL = new UmbModalToken(
|
||||
UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS,
|
||||
{
|
||||
type: 'sidebar',
|
||||
size: 'small',
|
||||
}
|
||||
);
|
||||
|
||||
export interface ChooseInsertTypeModalData {
|
||||
hidePartialViews?: boolean;
|
||||
|
||||
@@ -2,6 +2,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css';
|
||||
import { css, html } from 'lit';
|
||||
import { customElement, property, query } from 'lit/decorators.js';
|
||||
import { UUIBooleanInputElement, UUIInputElement } from '@umbraco-ui/uui';
|
||||
import { getAddSectionSnippet, getRenderBodySnippet, getRenderSectionSnippet } from '../../utils';
|
||||
|
||||
@customElement('umb-insert-section-checkbox')
|
||||
export class UmbInsertSectionCheckboxElement extends UUIBooleanInputElement {
|
||||
|
||||
@@ -2,11 +2,12 @@ import { UUITextStyles } from '@umbraco-ui/uui-css';
|
||||
import { css, html } from 'lit';
|
||||
import { customElement, queryAll, state } from 'lit/decorators.js';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS } from '../manifests';
|
||||
import { getAddSectionSnippet, getRenderBodySnippet, getRenderSectionSnippet } from '../../utils';
|
||||
import { UmbInsertSectionCheckboxElement } from './insert-section-input.element';
|
||||
import { UmbModalBaseElement } from '@umbraco-cms/internal/modal';
|
||||
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
import './insert-section-input.element';
|
||||
import UmbInsertSectionCheckboxElement from './insert-section-input.element';
|
||||
import { getAddSectionSnippet, getRenderBodySnippet, getRenderSectionSnippet } from '../../utils';
|
||||
|
||||
export const UMB_MODAL_TEMPLATING_INSERT_SECTION_MODAL = new UmbModalToken(
|
||||
UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS,
|
||||
|
||||
@@ -1,21 +1 @@
|
||||
import {
|
||||
UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS,
|
||||
UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS,
|
||||
} from './manifests';
|
||||
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
export const UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_MODAL = new UmbModalToken<{ hidePartialView: boolean }>(
|
||||
UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS,
|
||||
{
|
||||
type: 'sidebar',
|
||||
size: 'small',
|
||||
}
|
||||
);
|
||||
|
||||
export const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL = new UmbModalToken(
|
||||
UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS,
|
||||
{
|
||||
type: 'sidebar',
|
||||
size: 'small',
|
||||
}
|
||||
);
|
||||
//TODO: move tokens here nad import this file somewhere
|
||||
|
||||
Reference in New Issue
Block a user