Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Folder Children Collection Workspace View #2446

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9ec20e9
wip
madsrasmussen Oct 7, 2024
b52389b
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Oct 9, 2024
87b7586
wip render tree item children in collection
madsrasmussen Oct 9, 2024
5bb88ea
split workspace into folders
madsrasmussen Oct 9, 2024
c771b18
export consts + temp conditions for testing purposes
madsrasmussen Oct 9, 2024
f970e50
Merge branch 'v15/feature/collection-empty-state' into v15/feature/fo…
madsrasmussen Oct 10, 2024
4f5c450
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Oct 10, 2024
9fcf2be
don't make pagination take up space
madsrasmussen Oct 10, 2024
5baddfa
register modal routes for editing
madsrasmussen Oct 10, 2024
2447864
reorganize entity location
madsrasmussen Oct 10, 2024
fde5f92
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Oct 11, 2024
89c9f54
clean up
madsrasmussen Oct 11, 2024
cd928e2
clean up
madsrasmussen Oct 11, 2024
2641f64
Update manifests.ts
madsrasmussen Oct 11, 2024
cf02568
clean up
madsrasmussen Oct 11, 2024
7e5e2c5
remove double export
madsrasmussen Oct 11, 2024
7894a80
fix types
madsrasmussen Oct 11, 2024
e08e44a
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Oct 11, 2024
faa60e8
add element type column
madsrasmussen Oct 11, 2024
14fe353
add boolean + entity actions global table column layouts
madsrasmussen Oct 11, 2024
37d8af7
use entity actions in extension insights
madsrasmussen Oct 11, 2024
daa7379
Update user-table-collection-view.element.ts
madsrasmussen Oct 11, 2024
5cb8cea
Update user-group-table-collection-view.element.ts
madsrasmussen Oct 11, 2024
1616fdc
Update member-table-collection-view.element.ts
madsrasmussen Oct 11, 2024
1763a40
Update language-table-collection-view.element.ts
madsrasmussen Oct 11, 2024
051a79a
Update member-group-table-collection-view.element.ts
madsrasmussen Oct 11, 2024
0863622
align alias
madsrasmussen Oct 11, 2024
357286e
stop click event
madsrasmussen Oct 11, 2024
188bd9b
delete unused code
madsrasmussen Oct 11, 2024
9c3b69a
use global components
madsrasmussen Oct 11, 2024
f582751
add entity actions to document and media
madsrasmussen Oct 11, 2024
ee0976c
Merge branch 'v15/feature/reusable-table-column-layouts' into v15/fea…
madsrasmussen Oct 11, 2024
2bca898
add entity actions
madsrasmussen Oct 11, 2024
63006fe
Merge branch 'main' into v15/feature/reusable-table-column-layouts
madsrasmussen Oct 11, 2024
b316e77
move to entity action module
madsrasmussen Oct 11, 2024
503df51
Update localize.element.stories.ts
madsrasmussen Oct 11, 2024
10b36db
Merge branch 'v15/feature/reusable-table-column-layouts' into v15/fea…
madsrasmussen Oct 11, 2024
c8756c6
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Nov 7, 2024
023e558
manual merges
madsrasmussen Nov 7, 2024
dd499a5
add todo
madsrasmussen Nov 7, 2024
d1a4a5d
fix lint errors
madsrasmussen Nov 7, 2024
42e0221
Merge branch 'main' into v15/feature/folder-children-collection-works…
madsrasmussen Nov 7, 2024
2395981
remove []
nielslyngsoe Nov 7, 2024
929bec8
remove destroy function
nielslyngsoe Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { html, nothing, customElement, property } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';

const elementName = 'umb-boolean-table-column-view';
@customElement(elementName)
@customElement('umb-boolean-table-column-view')
export class UmbBooleanTableColumnViewElement extends UmbLitElement {
@property({ attribute: false })
value = false;
Expand All @@ -14,6 +13,6 @@ export class UmbBooleanTableColumnViewElement extends UmbLitElement {

declare global {
interface HTMLElementTagNameMap {
[elementName]: UmbBooleanTableColumnViewElement;
'umb-boolean-table-column-view': UmbBooleanTableColumnViewElement;
}
}
2 changes: 1 addition & 1 deletion src/packages/core/collection/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import './boolean-table-column-view/boolean-table-column-view.element.js';
import './collection-action-bundle.element.js';
import './collection-filter-field.element.js';
import './collection-selection-actions.element.js';
import './collection-toolbar.element.js';
import './collection-view-bundle.element.js';
import './boolean-table-column-view/boolean-table-column-view.element.js';
import './pagination/collection-pagination.element.js';

export * from './collection-action-bundle.element.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export class UmbCollectionPaginationElement extends UmbLitElement {
UmbTextStyles,
css`
:host {
display: contents;
}

uui-pagination {
display: block;
margin-top: var(--uui-size-layout-1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ export class UmbCollectionDefaultElement extends UmbLitElement {
}

#router {
display: none;
visibility: hidden;
}

.has-items #router {
display: block;
visibility: visible;
}

#empty-state {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@umbraco-cms/backoffice/entity-action';
import { UmbExtensionApiInitializer } from '@umbraco-cms/backoffice/extension-api';
import { umbExtensionsRegistry, type ManifestRepository } from '@umbraco-cms/backoffice/extension-registry';
import type { UmbDetailRepository, UmbRepositoryResponseWithAsObservable } from '@umbraco-cms/backoffice/repository';
import type { UmbDetailRepository } from '@umbraco-cms/backoffice/repository';

export interface UmbEntityDetailWorkspaceContextArgs {
entityType: string;
Expand Down Expand Up @@ -47,7 +47,6 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
public readonly unique = this._data.createObservablePartOfCurrent((data) => data?.unique);

protected _getDataPromise?: Promise<any>;

protected _detailRepository?: DetailRepositoryType;

#entityContext = new UmbEntityContext(this);
Expand All @@ -71,6 +70,7 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
constructor(host: UmbControllerHost, args: UmbEntityWorkspaceContextArgs) {
super(host, args.workspaceAlias);
this.#entityType = args.entityType;
this.#entityContext.setEntityType(this.#entityType);
window.addEventListener('willchangestate', this.#onWillNavigate);
this.#observeRepository(args.detailRepositoryAlias);
}
Expand Down Expand Up @@ -119,12 +119,9 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
return this.#parent.getValue()?.entityType;
}

/**
* Load the workspace data
* @param {string} unique The unique identifier of the entity to load.
* @returns { Promise<UmbRepositoryResponseWithAsObservable<DetailModelType>> } The data of the entity.
*/
async load(unique: string): Promise<UmbRepositoryResponseWithAsObservable<DetailModelType>> {
async load(unique: string) {
this.#entityContext.setEntityType(this.#entityType);
this.#entityContext.setUnique(unique);
await this.#init;
this.resetState();
this._getDataPromise = this._detailRepository!.requestByUnique(unique);
Expand All @@ -133,8 +130,6 @@ export abstract class UmbEntityDetailWorkspaceContextBase<
const data = response.data;

if (data) {
this.#entityContext.setEntityType(this.#entityType);
this.#entityContext.setUnique(unique);
this._data.setPersisted(data);
this._data.setCurrent(data);
this.setIsNew(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { UmbDocumentTypeItemModel } from '../../repository/index.js';
import { UMB_DOCUMENT_TYPE_WORKSPACE_MODAL } from '../../workspace/document-type-workspace.modal-token.js';
import { UMB_DOCUMENT_TYPE_WORKSPACE_MODAL } from '../../workspace/document-type/document-type-workspace.modal-token.js';
import type { UmbDocumentTypeTreeItemModel } from '../../tree/types.js';
import { UMB_EDIT_DOCUMENT_TYPE_WORKSPACE_PATH_PATTERN } from '../../paths.js';
import { UmbDocumentTypePickerInputContext } from './input-document-type.context.js';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE, UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE } from '../../entity.js';
import { UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE } from '../../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../tree/index.js';

export const manifests: Array<UmbExtensionManifest> = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/packages/documents/document-types/entity.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { UmbDocumentTypeFolderEntityType } from './tree/index.js';

export const UMB_DOCUMENT_TYPE_ENTITY_TYPE = 'document-type';
export const UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE = 'document-type-root';
export const UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE = 'document-type-folder';

export type UmbDocumentTypeEntityType = typeof UMB_DOCUMENT_TYPE_ENTITY_TYPE;
export type UmbDocumentTypeRootEntityType = typeof UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE;
export type UmbDocumentTypeFolderEntityType = typeof UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE;

export type UmbDocumentTypeEntityTypeUnion =
| UmbDocumentTypeEntityType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
} from '../entity.js';
import { UMB_DOCUMENT_TYPE_ENTITY_TYPE, UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE } from '../entity.js';
import type { UmbDocumentTypeTreeItemModel } from './types.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from './folder/index.js';
import type {
UmbTreeAncestorsOfRequestArgs,
UmbTreeChildrenOfRequestArgs,
Expand Down
2 changes: 2 additions & 0 deletions src/packages/documents/document-types/tree/folder/entity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE = 'document-type-folder';
export type UmbDocumentTypeFolderEntityType = typeof UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE;
1 change: 1 addition & 0 deletions src/packages/documents/document-types/tree/folder/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './repository/index.js';
export * from './workspace/index.js';
export * from './entity.js';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS } from './repository/constants.js';
import { manifests as workspaceManifests } from './workspace/manifests.js';
import { manifests as repositoryManifests } from './repository/manifests.js';
import { manifests as workspaceManifests } from './workspace/manifests.js';
import { UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS } from './repository/constants.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from './entity.js';

export const manifests: Array<UmbExtensionManifest> = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../entity.js';
import type { UmbFolderModel } from '@umbraco-cms/backoffice/tree';
import { DocumentTypeService } from '@umbraco-cms/backoffice/external/backend-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
Expand Down
2 changes: 1 addition & 1 deletion src/packages/documents/document-types/tree/folder/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../entity.js';
import type { UmbDocumentTypeTreeItemModel } from '../types.js';
import type { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from './entity.js';

export interface UmbDocumentTypeFolderTreeItemModel extends UmbDocumentTypeTreeItemModel {
entityType: typeof UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import {
UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS,
type UmbDocumentTypeFolderRepository,
} from '../repository/index.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_ALIAS } from './constants.js';
import { UmbDocumentTypeFolderWorkspaceEditorElement } from './document-type-folder-editor.element.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../entity.js';
import type { UmbDocumentTypeFolderWorkspaceContext } from './document-type-folder-workspace.context.js';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import type { UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './constants.js';
export * from './paths.js';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../../../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../entity.js';
import { UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_ALIAS } from './constants.js';
import { UMB_WORKSPACE_CONDITION_ALIAS, UmbSubmitWorkspaceAction } from '@umbraco-cms/backoffice/workspace';

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE } from '../entity.js';
import { UmbPathPattern } from '@umbraco-cms/backoffice/router';
import { UMB_SETTINGS_SECTION_PATHNAME } from '@umbraco-cms/backoffice/settings';
import { UMB_WORKSPACE_PATH_PATTERN } from '@umbraco-cms/backoffice/workspace';

export const UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_PATH = UMB_WORKSPACE_PATH_PATTERN.generateAbsolute({
sectionName: UMB_SETTINGS_SECTION_PATHNAME,
entityType: UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
});

export const UMB_EDIT_DOCUMENT_TYPE_FOLDER_WORKSPACE_PATH_PATTERN = new UmbPathPattern<{ unique: string }>(
'edit/:unique',
UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_PATH,
);
3 changes: 2 additions & 1 deletion src/packages/documents/document-types/tree/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { UMB_DOCUMENT_TYPE_TREE_STORE_CONTEXT } from './document-type.tree.store.context-token.js';
export { UMB_DOCUMENT_TYPE_TREE_REPOSITORY_ALIAS, UMB_DOCUMENT_TYPE_TREE_ALIAS } from './constants.js';
export * from './constants.js';
export * from './folder/index.js';
export * from './tree-item-children/collection/index.js';
export type * from './types.js';
33 changes: 20 additions & 13 deletions src/packages/documents/document-types/tree/manifests.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import {
UMB_DOCUMENT_TYPE_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE,
UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
} from '../entity.js';
import { UMB_DOCUMENT_TYPE_ENTITY_TYPE, UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE } from '../entity.js';
import { UMB_DOCUMENT_TYPE_ROOT_WORKSPACE_ALIAS } from '../workspace/document-type-root/index.js';
import {
UMB_DOCUMENT_TYPE_TREE_ALIAS,
UMB_DOCUMENT_TYPE_TREE_REPOSITORY_ALIAS,
UMB_DOCUMENT_TYPE_TREE_STORE_ALIAS,
} from './constants.js';
import { UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE, UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_ALIAS } from './folder/index.js';
import { manifests as folderManifests } from './folder/manifests.js';
import { manifests as reloadManifests } from './reload-tree-item-children/manifests.js';
import { manifests as treeItemChildrenManifests } from './tree-item-children/manifests.js';
import { UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_ALIAS } from './tree-item-children/collection/index.js';

export const manifests: Array<UmbExtensionManifest> = [
{
Expand Down Expand Up @@ -45,15 +44,23 @@ export const manifests: Array<UmbExtensionManifest> = [
],
},
{
type: 'workspace',
kind: 'default',
alias: 'Umb.Workspace.DocumentType.Root',
name: 'Document Type Root Workspace',
type: 'workspaceView',
kind: 'collection',
alias: 'Umb.WorkspaceView.DocumentType.TreeItemChildrenCollection',
name: 'Document Type Tree Item Children Collection Workspace View',
meta: {
entityType: UMB_DOCUMENT_TYPE_ROOT_ENTITY_TYPE,
headline: '#treeHeaders_documentTypes',
label: '#general_design',
pathname: 'design',
icon: 'icon-member-dashed-line',
collectionAlias: UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_ALIAS,
},
conditions: [
{
alias: 'Umb.Condition.WorkspaceAlias',
oneOf: [UMB_DOCUMENT_TYPE_ROOT_WORKSPACE_ALIAS, UMB_DOCUMENT_TYPE_FOLDER_WORKSPACE_ALIAS],
},
],
},
...folderManifests,
...reloadManifests,
...treeItemChildrenManifests,
];
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_ALIAS = 'Umb.Collection.DocumentType.TreeItemChildren';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './constants.js';
export * from './repository/index.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { manifests as viewManifests } from './views/manifests.js';
import { manifests as repositoryManifests } from './repository/manifests.js';
import { UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_ALIAS } from './constants.js';
import { UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js';

export const manifests: Array<UmbExtensionManifest> = [
{
type: 'collection',
kind: 'default',
alias: UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_ALIAS,
name: 'Document Type Tree Item Children Collection',
meta: {
repositoryAlias: UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_REPOSITORY_ALIAS,
},
},
...viewManifests,
...repositoryManifests,
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_REPOSITORY_ALIAS =
'Umb.Repository.DocumentType.TreeItemChildrenCollection';
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { UmbDocumentTypeTreeRepository } from '../../../document-type-tree.repository.js';
import type { UmbCollectionFilterModel, UmbCollectionRepository } from '@umbraco-cms/backoffice/collection';
import { UmbRepositoryBase } from '@umbraco-cms/backoffice/repository';
import { UMB_ENTITY_CONTEXT, type UmbEntityModel } from '@umbraco-cms/backoffice/entity';

export class UmbDocumentTypeTreeItemChildrenCollectionRepository
extends UmbRepositoryBase
implements UmbCollectionRepository
{
#treeRepository = new UmbDocumentTypeTreeRepository(this);

async requestCollection(filter: UmbCollectionFilterModel) {
// TODO: get parent from args
const entityContext = await this.getContext(UMB_ENTITY_CONTEXT);
if (!entityContext) throw new Error('Entity context not found');

const entityType = entityContext.getEntityType();
const unique = entityContext.getUnique();

if (!entityType) throw new Error('Entity type not found');
if (unique === undefined) throw new Error('Unique not found');

const parent: UmbEntityModel = { entityType, unique };

if (parent.unique === null) {
return this.#treeRepository.requestTreeRootItems({ skip: filter.skip, take: filter.take });
} else {
return this.#treeRepository.requestTreeItemsOf({ parent, skip: filter.skip, take: filter.take });
}
}
}

export { UmbDocumentTypeTreeItemChildrenCollectionRepository as api };
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './constants.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_REPOSITORY_ALIAS } from './constants.js';

export const manifests: Array<UmbExtensionManifest> = [
{
type: 'repository',
alias: UMB_DOCUMENT_TYPE_TREE_ITEM_CHILDREN_COLLECTION_REPOSITORY_ALIAS,
name: 'Document Type Tree Item Children Collection Repository',
api: () => import('./document-type-tree-item-children-collection.repository.js'),
},
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { UmbCollectionFilterModel } from '@umbraco-cms/backoffice/collection';
import type { UmbEntityModel } from '@umbraco-cms/backoffice/entity';

export interface UmbDocumentTypeTreeItemChildrenCollectionFilterModel extends UmbCollectionFilterModel {
parent: UmbEntityModel;
}
Loading
Loading