Revert "move modal tokens to separate file"

This reverts commit 4800d03fcd.
This commit is contained in:
Julia Gru
2023-05-09 13:55:59 +02:00
parent 4800d03fcd
commit c23dd3d4ea
5 changed files with 21 additions and 27 deletions

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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,

View File

@@ -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