@umbraco-cms/backoffice 14.0.0--preview004-e20cec44 → 14.0.0--preview004-aff01628
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cms/packages/documents/documents/recycle-bin/entities.d.ts +2 -0
- package/dist-cms/packages/documents/documents/recycle-bin/entities.js +2 -0
- package/dist-cms/packages/documents/documents/recycle-bin/index.d.ts +2 -1
- package/dist-cms/packages/documents/documents/recycle-bin/index.js +2 -1
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.js +1 -2
- package/dist-cms/packages/documents/documents/recycle-bin/tree/document-recycle-bin-tree.repository.d.ts +16 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/document-recycle-bin-tree.repository.js +19 -0
- package/dist-cms/packages/documents/documents/recycle-bin/{repository/document-recycle.bin.tree.store.d.ts → tree/document-recycle-bin-tree.store.d.ts} +3 -3
- package/dist-cms/packages/documents/documents/recycle-bin/{repository/document-recycle.bin.tree.store.js → tree/document-recycle-bin-tree.store.js} +2 -2
- package/dist-cms/packages/documents/documents/recycle-bin/tree/document-recycle-bin.server.data-source.d.ts +32 -0
- package/dist-cms/packages/documents/documents/recycle-bin/{repository/sources/document-recycle-bin.tree.server.data.js → tree/document-recycle-bin.server.data-source.js} +7 -5
- package/dist-cms/packages/documents/documents/recycle-bin/tree/index.d.ts +5 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/index.js +4 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.d.ts +5 -2
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.js +23 -6
- package/dist-cms/packages/documents/documents/recycle-bin/tree/types.d.ts +4 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/types.js +1 -0
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.d.ts +0 -28
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.js +0 -56
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.d.ts +0 -1
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.js +0 -1
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.d.ts +0 -4
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.js +0 -17
- package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.d.ts +0 -29
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './tree/index.js';
|
|
2
|
+
export * from './entities.js';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './tree/index.js';
|
|
2
|
+
export * from './entities.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { manifests as repositoryManifests } from './repository/manifests.js';
|
|
2
1
|
import { manifests as treeManifests } from './tree/manifests.js';
|
|
3
2
|
import { manifests as menuItemManifests } from './menu-item/manifests.js';
|
|
4
3
|
import { manifests as entityActionManifests } from './entity-action/manifests.js';
|
|
5
|
-
export const manifests = [...
|
|
4
|
+
export const manifests = [...treeManifests, ...menuItemManifests, ...entityActionManifests];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UmbDocumentRecycleBinTreeItemModel, UmbDocumentRecycleBinTreeRootModel } from './types.js';
|
|
2
|
+
import { UmbTreeRepositoryBase } from '../../../../core/tree/index.js';
|
|
3
|
+
import { type UmbControllerHost } from '../../../../../libs/controller-api/index.js';
|
|
4
|
+
import { UmbApi } from '../../../../../libs/extension-api/index.js';
|
|
5
|
+
export declare class UmbDocumentRecycleBinTreeRepository extends UmbTreeRepositoryBase<UmbDocumentRecycleBinTreeItemModel, UmbDocumentRecycleBinTreeRootModel> implements UmbApi {
|
|
6
|
+
constructor(host: UmbControllerHost);
|
|
7
|
+
requestTreeRoot(): Promise<{
|
|
8
|
+
data: {
|
|
9
|
+
id: null;
|
|
10
|
+
type: string;
|
|
11
|
+
name: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
hasChildren: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE } from '../entities.js';
|
|
2
|
+
import { UmbDocumentRecycleBinTreeServerDataSource } from './document-recycle-bin.server.data-source.js';
|
|
3
|
+
import { UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_CONTEXT } from './document-recycle-bin-tree.store.js';
|
|
4
|
+
import { UmbTreeRepositoryBase } from '../../../../core/tree/index.js';
|
|
5
|
+
export class UmbDocumentRecycleBinTreeRepository extends UmbTreeRepositoryBase {
|
|
6
|
+
constructor(host) {
|
|
7
|
+
super(host, UmbDocumentRecycleBinTreeServerDataSource, UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_CONTEXT);
|
|
8
|
+
}
|
|
9
|
+
async requestTreeRoot() {
|
|
10
|
+
const data = {
|
|
11
|
+
id: null,
|
|
12
|
+
type: UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE,
|
|
13
|
+
name: 'Recycle Bin',
|
|
14
|
+
icon: 'icon-trash',
|
|
15
|
+
hasChildren: true,
|
|
16
|
+
};
|
|
17
|
+
return { data };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UmbContextToken } from '../../../../../libs/context-api/index.js';
|
|
2
|
-
import { UmbEntityTreeStore } from '../../../../core/tree/index.js';
|
|
3
2
|
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
|
+
import { UmbEntityTreeStore } from '../../../../core/tree/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @export
|
|
6
6
|
* @class UmbDocumentRecycleBinTreeStore
|
|
7
|
-
* @extends {
|
|
8
|
-
* @description - Tree Data Store for
|
|
7
|
+
* @extends {UmbStoreBase}
|
|
8
|
+
* @description - Tree Data Store for Document Recycle Bin Tree Items
|
|
9
9
|
*/
|
|
10
10
|
export declare class UmbDocumentRecycleBinTreeStore extends UmbEntityTreeStore {
|
|
11
11
|
/**
|
|
@@ -3,8 +3,8 @@ import { UmbEntityTreeStore } from '../../../../core/tree/index.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* @export
|
|
5
5
|
* @class UmbDocumentRecycleBinTreeStore
|
|
6
|
-
* @extends {
|
|
7
|
-
* @description - Tree Data Store for
|
|
6
|
+
* @extends {UmbStoreBase}
|
|
7
|
+
* @description - Tree Data Store for Document Recycle Bin Tree Items
|
|
8
8
|
*/
|
|
9
9
|
export class UmbDocumentRecycleBinTreeStore extends UmbEntityTreeStore {
|
|
10
10
|
/**
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { UmbTreeDataSource } from '../../../../core/tree/index.js';
|
|
2
|
+
import { RecycleBinItemResponseModel } from '../../../../../external/backend-api/index.js';
|
|
3
|
+
import type { UmbControllerHost } from '../../../../../libs/controller-api/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* A data source for the Document Recycle Bin tree that fetches data from the server
|
|
6
|
+
* @export
|
|
7
|
+
* @class UmbDocumentRecycleBinTreeServerDataSource
|
|
8
|
+
* @implements {UmbTreeDataSource}
|
|
9
|
+
*/
|
|
10
|
+
export declare class UmbDocumentRecycleBinTreeServerDataSource implements UmbTreeDataSource<RecycleBinItemResponseModel> {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of UmbDocumentRecycleBinTreeServerDataSource.
|
|
14
|
+
* @param {UmbControllerHost} host
|
|
15
|
+
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
16
|
+
*/
|
|
17
|
+
constructor(host: UmbControllerHost);
|
|
18
|
+
/**
|
|
19
|
+
* Fetches the root items for the tree from the server
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
22
|
+
*/
|
|
23
|
+
getRootItems(): Promise<import("../../../../core/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedRecycleBinItemResponseModel>>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches the children of a given parent id from the server
|
|
26
|
+
* @param {(string)} parentId
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
29
|
+
*/
|
|
30
|
+
getChildrenOf(parentId: string | null): Promise<import("../../../../core/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedRecycleBinItemResponseModel>>;
|
|
31
|
+
getItems(unique: Array<string>): Promise<any>;
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentResource } from '
|
|
2
|
-
import { tryExecuteAndNotify } from '
|
|
1
|
+
import { DocumentResource } from '../../../../../external/backend-api/index.js';
|
|
2
|
+
import { tryExecuteAndNotify } from '../../../../../shared/resources/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* A data source for the Document Recycle Bin tree that fetches data from the server
|
|
5
5
|
* @export
|
|
@@ -11,13 +11,14 @@ export class UmbDocumentRecycleBinTreeServerDataSource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Creates an instance of UmbDocumentRecycleBinTreeServerDataSource.
|
|
13
13
|
* @param {UmbControllerHost} host
|
|
14
|
-
* @memberof
|
|
14
|
+
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
15
15
|
*/
|
|
16
16
|
constructor(host) {
|
|
17
17
|
this.#host = host;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Fetches the root items for the tree from the server
|
|
21
|
+
* @return {*}
|
|
21
22
|
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
22
23
|
*/
|
|
23
24
|
async getRootItems() {
|
|
@@ -25,8 +26,9 @@ export class UmbDocumentRecycleBinTreeServerDataSource {
|
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Fetches the children of a given parent id from the server
|
|
28
|
-
* @param {(string
|
|
29
|
-
* @
|
|
29
|
+
* @param {(string)} parentId
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @memberof UmbDocumentRecycleBinTreeServerDataSource
|
|
30
32
|
*/
|
|
31
33
|
async getChildrenOf(parentId) {
|
|
32
34
|
if (parentId === undefined)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { UmbDocumentRecycleBinTreeRepository } from './document-recycle-bin-tree.repository.js';
|
|
2
|
+
export { UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS, UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_ALIAS, UMB_DOCUMENT_RECYCLE_BIN_TREE_ALIAS, } from './manifests.js';
|
|
3
|
+
export { UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_CONTEXT } from './document-recycle-bin-tree.store.js';
|
|
4
|
+
export { type UmbDocumentRecycleBinTreeStore } from './document-recycle-bin-tree.store.js';
|
|
5
|
+
export * from './types.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { UmbDocumentRecycleBinTreeRepository } from './document-recycle-bin-tree.repository.js';
|
|
2
|
+
export { UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS, UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_ALIAS, UMB_DOCUMENT_RECYCLE_BIN_TREE_ALIAS, } from './manifests.js';
|
|
3
|
+
export { UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_CONTEXT } from './document-recycle-bin-tree.store.js';
|
|
4
|
+
export * from './types.js';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type { ManifestTree, ManifestTreeItem } from '../../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ManifestRepository, ManifestTree, ManifestTreeItem, ManifestTreeStore } from '../../../../core/extension-registry/index.js';
|
|
2
|
+
export declare const UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS = "Umb.Repository.DocumentRecycleBin.Tree";
|
|
3
|
+
export declare const UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_ALIAS = "Umb.Store.DocumentRecycleBin.Tree";
|
|
4
|
+
export declare const UMB_DOCUMENT_RECYCLE_BIN_TREE_ALIAS = "Umb.Tree.DocumentRecycleBin";
|
|
5
|
+
export declare const manifests: (ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestRepository<import("../../../../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE } from '../entities.js';
|
|
2
|
+
import { UmbDocumentRecycleBinTreeRepository } from './document-recycle-bin-tree.repository.js';
|
|
3
|
+
import { UmbDocumentRecycleBinTreeStore } from './document-recycle-bin-tree.store.js';
|
|
4
|
+
export const UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS = 'Umb.Repository.DocumentRecycleBin.Tree';
|
|
5
|
+
export const UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_ALIAS = 'Umb.Store.DocumentRecycleBin.Tree';
|
|
6
|
+
export const UMB_DOCUMENT_RECYCLE_BIN_TREE_ALIAS = 'Umb.Tree.DocumentRecycleBin';
|
|
7
|
+
const treeRepository = {
|
|
8
|
+
type: 'repository',
|
|
9
|
+
alias: UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS,
|
|
10
|
+
name: 'Document Recycle Bin Tree Repository',
|
|
11
|
+
api: UmbDocumentRecycleBinTreeRepository,
|
|
12
|
+
};
|
|
13
|
+
const treeStore = {
|
|
14
|
+
type: 'treeStore',
|
|
15
|
+
alias: UMB_DOCUMENT_RECYCLE_BIN_TREE_STORE_ALIAS,
|
|
16
|
+
name: 'Document Recycle Bin Tree Store',
|
|
17
|
+
api: UmbDocumentRecycleBinTreeStore,
|
|
18
|
+
};
|
|
2
19
|
const tree = {
|
|
3
20
|
type: 'tree',
|
|
4
|
-
alias:
|
|
21
|
+
alias: UMB_DOCUMENT_RECYCLE_BIN_TREE_ALIAS,
|
|
5
22
|
name: 'Document Recycle Bin Tree',
|
|
6
23
|
meta: {
|
|
7
|
-
repositoryAlias:
|
|
24
|
+
repositoryAlias: UMB_DOCUMENT_RECYCLE_BIN_TREE_REPOSITORY_ALIAS,
|
|
8
25
|
},
|
|
9
26
|
};
|
|
10
27
|
const treeItem = {
|
|
11
28
|
type: 'treeItem',
|
|
12
29
|
kind: 'entity',
|
|
13
30
|
alias: 'Umb.TreeItem.DocumentRecycleBin',
|
|
14
|
-
name: '
|
|
31
|
+
name: 'DocumentRecycleBin Tree Item',
|
|
15
32
|
meta: {
|
|
16
|
-
entityTypes: [
|
|
33
|
+
entityTypes: [UMB_DOCUMENT_RECYCLE_BIN_ROOT_ENTITY_TYPE, UMB_DOCUMENT_RECYCLE_BIN_ENTITY_TYPE],
|
|
17
34
|
},
|
|
18
35
|
};
|
|
19
|
-
export const manifests = [tree, treeItem];
|
|
36
|
+
export const manifests = [treeRepository, treeStore, tree, treeItem];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RecycleBinItemResponseModel } from '../../../../../external/backend-api/index.js';
|
|
2
|
+
import type { UmbEntityTreeItemModel, UmbEntityTreeRootModel } from '../../../../core/tree/index.js';
|
|
3
|
+
export type UmbDocumentRecycleBinTreeItemModel = RecycleBinItemResponseModel & UmbEntityTreeItemModel;
|
|
4
|
+
export type UmbDocumentRecycleBinTreeRootModel = RecycleBinItemResponseModel & UmbEntityTreeRootModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|