Fix modal route registration circular import (#18953)
* fix modal route registration circular import * Update modal-route-registration.controller.ts
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export * from './components/not-found/route-not-found.element.js';
|
||||
export * from './components/router-slot/index.js';
|
||||
export * from './route/index.js';
|
||||
export * from './contexts/index.js';
|
||||
export * from './encode-folder-name.function.js';
|
||||
export * from './modal-registration/modal-route-registration.controller.js';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UMB_ROUTE_CONTEXT, UMB_ROUTE_PATH_ADDENDUM_CONTEXT } from '../index.js';
|
||||
import { encodeFolderName } from '../encode-folder-name.function.js';
|
||||
import type { UmbModalRouteRegistration } from './modal-route-registration.interface.js';
|
||||
import type {
|
||||
@@ -13,6 +12,8 @@ import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
||||
import { UmbId } from '@umbraco-cms/backoffice/id';
|
||||
import type { UmbDeepPartialObject } from '@umbraco-cms/backoffice/utils';
|
||||
import type { IRouterSlot, Params } from '@umbraco-cms/backoffice/external/router-slot';
|
||||
import { UMB_ROUTE_PATH_ADDENDUM_CONTEXT } from '../contexts/route-path-addendum.context-token.js';
|
||||
import { UMB_ROUTE_CONTEXT } from '../route/route.context.js';
|
||||
|
||||
export type UmbModalRouteBuilder = (params: { [key: string]: string | number } | null) => string;
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './not-found/route-not-found.element.js';
|
||||
export * from './route.context.js';
|
||||
export * from './router-slot-change.event.js';
|
||||
export * from './router-slot-init.event.js';
|
||||
@@ -5,7 +5,6 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
/**
|
||||
* A fallback view to be used in Workspace Views, maybe this can be upgraded at a later point.
|
||||
*/
|
||||
// TODO: Rename and move this file to a more generic place.
|
||||
@customElement('umb-route-not-found')
|
||||
export class UmbRouteNotFoundElement extends UmbLitElement {
|
||||
override render() {
|
||||
@@ -1,5 +1,3 @@
|
||||
import { umbGenerateRoutePathBuilder } from '../../generate-route-path-builder.function.js';
|
||||
import type { UmbModalRouteRegistration } from '../../modal-registration/modal-route-registration.interface.js';
|
||||
import type { UmbRoute } from './route.interface.js';
|
||||
import type { IRouterSlot } from '@umbraco-cms/backoffice/external/router-slot';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
@@ -7,6 +5,8 @@ import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
|
||||
import { UMB_MODAL_MANAGER_CONTEXT } from '@umbraco-cms/backoffice/modal';
|
||||
import { UmbStringState, mergeObservables } from '@umbraco-cms/backoffice/observable-api';
|
||||
import type { UmbModalRouteRegistration } from '../modal-registration/modal-route-registration.interface.js';
|
||||
import { umbGenerateRoutePathBuilder } from '../generate-route-path-builder.function.js';
|
||||
|
||||
const EmptyDiv = document.createElement('div');
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import '@umbraco-cms/backoffice/external/router-slot';
|
||||
import { UmbRoutePathAddendumResetContext } from '../../contexts/route-path-addendum-reset.context.js';
|
||||
import { UmbRouterSlotInitEvent } from './router-slot-init.event.js';
|
||||
import { UmbRouterSlotChangeEvent } from './router-slot-change.event.js';
|
||||
import type { UmbRoute } from './route.interface.js';
|
||||
@@ -7,6 +6,7 @@ import { UmbRouteContext } from './route.context.js';
|
||||
import { css, html, type PropertyValueMap, customElement, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
import type { IRouterSlot } from '@umbraco-cms/backoffice/external/router-slot';
|
||||
import { UmbRoutePathAddendumResetContext } from '../contexts/route-path-addendum-reset.context.js';
|
||||
|
||||
/**
|
||||
* @element umb-router-slot
|
||||
Reference in New Issue
Block a user