@umbraco-cms/backoffice 1.0.0-next.596cc732 → 1.0.0-next.6c429eee
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/backend-api.d.ts +594 -272
- package/context-api.d.ts +76 -6
- package/controller.d.ts +6 -5
- package/custom-elements.json +429 -68
- package/element.d.ts +3 -3
- package/entity-action.d.ts +30 -13
- package/extensions-api.d.ts +4 -3
- package/extensions-registry.d.ts +8 -8
- package/modal.d.ts +48 -341
- package/models.d.ts +13 -8
- package/observable-api.d.ts +44 -15
- package/package.json +1 -1
- package/repository.d.ts +50 -26
- package/resources.d.ts +3 -3
- package/router.d.ts +273 -23
- package/store.d.ts +14 -14
- package/utils.d.ts +3 -1
- package/vscode-html-custom-data.json +211 -63
- package/workspace.d.ts +19 -12
package/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { UmbControllerHostElement } from './controller';
|
|
4
4
|
import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from './backend-api';
|
|
5
5
|
import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from './store';
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ interface UmbEntityDetailStore<T> extends UmbDataStore {
|
|
|
18
18
|
* @return {*} {T}
|
|
19
19
|
* @memberof UmbEntityDetailStore
|
|
20
20
|
*/
|
|
21
|
-
getScaffold: (entityType: string,
|
|
21
|
+
getScaffold: (entityType: string, parentId: string | null) => T;
|
|
22
22
|
/**
|
|
23
23
|
* @description - Request data by key. The data is added to the store and is returned as an Observable.
|
|
24
24
|
* @param {string} key
|
|
@@ -39,9 +39,9 @@ interface UmbContentStore<T> extends UmbEntityDetailStore<T> {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare class UmbStoreBase {
|
|
42
|
-
protected _host:
|
|
42
|
+
protected _host: UmbControllerHostElement;
|
|
43
43
|
readonly storeAlias: string;
|
|
44
|
-
constructor(_host:
|
|
44
|
+
constructor(_host: UmbControllerHostElement, storeAlias: string);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -60,17 +60,17 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
|
|
|
60
60
|
appendItems(items: Array<EntityTreeItemResponseModel>): void;
|
|
61
61
|
/**
|
|
62
62
|
* Updates an item in the store
|
|
63
|
-
* @param {string}
|
|
63
|
+
* @param {string} id
|
|
64
64
|
* @param {Partial<EntityTreeItemResponseModel>} data
|
|
65
65
|
* @memberof UmbEntityTreeStore
|
|
66
66
|
*/
|
|
67
|
-
updateItem(
|
|
67
|
+
updateItem(id: string, data: Partial<EntityTreeItemResponseModel>): void;
|
|
68
68
|
/**
|
|
69
69
|
* Removes an item from the store
|
|
70
|
-
* @param {string}
|
|
70
|
+
* @param {string} id
|
|
71
71
|
* @memberof UmbEntityTreeStore
|
|
72
72
|
*/
|
|
73
|
-
removeItem(
|
|
73
|
+
removeItem(id: string): void;
|
|
74
74
|
/**
|
|
75
75
|
* An observable to observe the root items
|
|
76
76
|
* @memberof UmbEntityTreeStore
|
|
@@ -78,18 +78,18 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
|
|
|
78
78
|
rootItems: rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
79
79
|
/**
|
|
80
80
|
* Returns an observable to observe the children of a given parent
|
|
81
|
-
* @param {(string | null)}
|
|
81
|
+
* @param {(string | null)} parentId
|
|
82
82
|
* @return {*}
|
|
83
83
|
* @memberof UmbEntityTreeStore
|
|
84
84
|
*/
|
|
85
|
-
childrenOf(
|
|
85
|
+
childrenOf(parentId: string | null): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
86
86
|
/**
|
|
87
|
-
* Returns an observable to observe the items with the given
|
|
88
|
-
* @param {Array<string>}
|
|
87
|
+
* Returns an observable to observe the items with the given ids
|
|
88
|
+
* @param {Array<string>} ids
|
|
89
89
|
* @return {*}
|
|
90
90
|
* @memberof UmbEntityTreeStore
|
|
91
91
|
*/
|
|
92
|
-
items(
|
|
92
|
+
items(ids: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -132,7 +132,7 @@ declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeSt
|
|
|
132
132
|
*/
|
|
133
133
|
childrenOf(parentPath: string | null): rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
|
|
134
134
|
/**
|
|
135
|
-
* Returns an observable to observe the items with the given
|
|
135
|
+
* Returns an observable to observe the items with the given ids
|
|
136
136
|
* @param {Array<string>} paths
|
|
137
137
|
* @return {*}
|
|
138
138
|
* @memberof UmbFileSystemTreeStore
|
package/utils.d.ts
CHANGED
|
@@ -11,4 +11,6 @@ declare function umbracoPath(path: string): string;
|
|
|
11
11
|
declare function buildUdi(entityType: string, guid: string): string;
|
|
12
12
|
declare function getKeyFromUdi(udi: string): string;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
declare function generateGuid(): string;
|
|
15
|
+
|
|
16
|
+
export { buildUdi, generateGuid, getKeyFromUdi, getLookAndColorFromUserStatus, umbracoPath };
|