fix build errors
This commit is contained in:
@@ -73,5 +73,7 @@ import './variant-selector/variant-selector.element';
|
||||
import './code-editor';
|
||||
|
||||
export * from './table';
|
||||
export * from './tree/tree.element';
|
||||
export * from './code-editor';
|
||||
|
||||
export const manifests = [...debugManifests];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { UUITextStyles } from '@umbraco-ui/uui-css';
|
||||
import { css, html } from 'lit';
|
||||
import { customElement, state } from 'lit/decorators.js';
|
||||
import { UmbTreeElement } from '../../shared/components/tree/tree.element';
|
||||
import { UmbPartialViewPickerModalData, UmbPartialViewPickerModalResult } from '@umbraco-cms/backoffice/modal';
|
||||
import { UmbModalBaseElement } from '@umbraco-cms/internal/modal';
|
||||
import { UmbTreeElement } from '@umbraco-cms/backoffice/core/components';
|
||||
|
||||
@customElement('umb-partial-view-picker-modal')
|
||||
export default class UmbPartialViewPickerModalElement extends UmbModalBaseElement<
|
||||
@@ -11,7 +11,7 @@ export default class UmbPartialViewPickerModalElement extends UmbModalBaseElemen
|
||||
UmbPartialViewPickerModalResult
|
||||
> {
|
||||
@state()
|
||||
_selection: Array<string> = [];
|
||||
_selection: Array<string | null> = [];
|
||||
|
||||
@state()
|
||||
_multiple = false;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
|
||||
import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
||||
|
||||
export class UmbCreateEmptyPartialViewAction<T extends { copy(): Promise<void> }> extends UmbEntityActionBase<T> {
|
||||
constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
|
||||
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
|
||||
super(host, repositoryAlias, unique);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
|
||||
import { UmbControllerHostInterface } from '@umbraco-cms/backoffice/controller';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
||||
|
||||
export class UmbCreateFromSnippetPartialViewAction<T extends { copy(): Promise<void> }> extends UmbEntityActionBase<T> {
|
||||
constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string) {
|
||||
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {
|
||||
super(host, repositoryAlias, unique);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const partialViewActions: Array<ManifestEntityAction> = [
|
||||
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: {
|
||||
entityType: PARTIAL_VIEW_ENTITY_TYPE,
|
||||
entityTypes: [PARTIAL_VIEW_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -38,7 +38,7 @@ const partialViewFolderActions: Array<ManifestEntityAction> = [
|
||||
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: {
|
||||
entityType: PARTIAL_VIEW_FOLDER_ENTITY_TYPE,
|
||||
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -52,7 +52,7 @@ const partialViewFolderActions: Array<ManifestEntityAction> = [
|
||||
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: {
|
||||
entityType: PARTIAL_VIEW_FOLDER_ENTITY_TYPE,
|
||||
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -7,6 +7,8 @@ import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco
|
||||
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
|
||||
import { ProblemDetailsModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
import { UmbDetailRepository, UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
|
||||
import { UmbTreeRootEntityModel } from '@umbraco-cms/backoffice/tree';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export class UmbTemplateRepository implements UmbTreeRepository<any>, UmbDetailRepository<any> {
|
||||
#init;
|
||||
@@ -40,7 +42,27 @@ export class UmbTemplateRepository implements UmbTreeRepository<any>, UmbDetailR
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
requestTreeRoot(): Promise<{ data?: UmbTreeRootEntityModel | undefined; error?: ProblemDetailsModel | undefined }> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
requestItemsLegacy?:
|
||||
| ((
|
||||
uniques: string[]
|
||||
) => Promise<{
|
||||
data?: any[] | undefined;
|
||||
error?: ProblemDetailsModel | undefined;
|
||||
asObservable?: (() => Observable<any[]>) | undefined;
|
||||
}>)
|
||||
| undefined;
|
||||
|
||||
itemsLegacy?: ((uniques: string[]) => Promise<Observable<any[]>>) | undefined;
|
||||
|
||||
byId(id: string): Promise<Observable<any>> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
requestById(id: string): Promise<{ data?: any; error?: ProblemDetailsModel | undefined }> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { DataSourceResponse, UmbDataSource } from '@umbraco-cms/backoffice/repos
|
||||
|
||||
//TODO Pass proper models
|
||||
export class UmbPartialViewDetailServerDataSource
|
||||
implements UmbDataSource<PartialViewDetails, PartialViewDetails, PartialViewDetails>
|
||||
implements UmbDataSource<PartialViewDetails, PartialViewDetails, PartialViewDetails, PartialViewDetails>
|
||||
{
|
||||
#host: UmbControllerHostElement;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export class UmbPartialViewsTreeServerDataSource implements PartialViewsTreeData
|
||||
}) {
|
||||
if (!path) {
|
||||
const error: ProblemDetailsModel = { title: 'Path is missing' };
|
||||
return { error };
|
||||
return error ;
|
||||
}
|
||||
|
||||
return tryExecuteAndNotify(
|
||||
@@ -41,7 +41,7 @@ export class UmbPartialViewsTreeServerDataSource implements PartialViewsTreeData
|
||||
async getItem(id: Array<string>) {
|
||||
if (!id) {
|
||||
const error: ProblemDetailsModel = { title: 'Paths are missing' };
|
||||
return { error };
|
||||
return error ;
|
||||
}
|
||||
|
||||
return tryExecuteAndNotify(
|
||||
|
||||
@@ -16,7 +16,7 @@ const treeItem: ManifestTreeItem = {
|
||||
alias: 'Umb.TreeItem.PartialViews',
|
||||
name: 'Partial Views Tree Item',
|
||||
conditions: {
|
||||
entityType: PARTIAL_VIEW_ENTITY_TYPE,
|
||||
entityTypes: [PARTIAL_VIEW_ENTITY_TYPE],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { UmbSaveWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspace,
|
||||
ManifestWorkspaceAction,
|
||||
ManifestWorkspaceView,
|
||||
} from '@umbraco-cms/backoffice/extensions-registry';
|
||||
import type { ManifestWorkspace, ManifestWorkspaceAction } from '@umbraco-cms/backoffice/extensions-registry';
|
||||
|
||||
const workspace: ManifestWorkspace = {
|
||||
type: 'workspace',
|
||||
@@ -15,8 +11,6 @@ const workspace: ManifestWorkspace = {
|
||||
},
|
||||
};
|
||||
|
||||
const workspaceViews: Array<ManifestWorkspaceView> = [];
|
||||
|
||||
const workspaceActions: Array<ManifestWorkspaceAction> = [
|
||||
{
|
||||
type: 'workspaceAction',
|
||||
@@ -35,4 +29,4 @@ const workspaceActions: Array<ManifestWorkspaceAction> = [
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [workspace, ...workspaceViews, ...workspaceActions];
|
||||
export const manifests = [workspace, ...workspaceActions];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { UmbTemplateRepository } from '../repository/partial-views.repository';
|
||||
import { UmbWorkspaceContext } from '../../../shared/components/workspace/workspace-context/workspace-context';
|
||||
import { createObservablePart, UmbDeepState } from '@umbraco-cms/backoffice/observable-api';
|
||||
import { TemplateResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
||||
import { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext<UmbTemplateRepository, TemplateResponseModel> {
|
||||
getEntityId(): string | undefined {
|
||||
|
||||
@@ -2,12 +2,12 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
|
||||
import { css, html } from 'lit';
|
||||
import { customElement, query, state } from 'lit/decorators.js';
|
||||
import { UUIInputElement } from '@umbraco-ui/uui';
|
||||
import { UmbCodeEditorElement } from '../../../shared/components/code-editor/code-editor.element';
|
||||
import { UmbTemplatingInsertMenuElement } from '../../components/insert-menu/templating-insert-menu.element';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_SECTION_MODAL } from '../../modals/insert-section-modal/insert-section-modal.element';
|
||||
import { UmbTemplateWorkspaceContext } from './template-workspace.context';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import { UMB_MODAL_CONTEXT_TOKEN, UmbModalContext } from '@umbraco-cms/backoffice/modal';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_SECTION_MODAL } from '../../modals/insert-section-modal/insert-section-modal.element';
|
||||
import { UmbCodeEditorElement } from '@umbraco-cms/backoffice/core/components';
|
||||
|
||||
@customElement('umb-template-workspace-edit')
|
||||
export class UmbTemplateWorkspaceEditElement extends UmbLitElement {
|
||||
|
||||
Reference in New Issue
Block a user