@umbraco-cms/backoffice 1.0.0-next.ce55cd35 → 1.0.0-next.d2c0dcf1
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 +161 -84
- package/context-api.d.ts +3 -3
- package/controller.d.ts +2 -1
- package/custom-elements.json +536 -384
- package/element.d.ts +4 -4
- package/entity-action.d.ts +6 -13
- package/extensions-api.d.ts +5 -4
- package/extensions-registry.d.ts +171 -10
- package/modal.d.ts +18 -318
- package/models.d.ts +1 -1
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +53 -41
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/property-editor.d.ts +1 -1
- package/repository.d.ts +51 -26
- package/resources.d.ts +7 -5
- package/router.d.ts +275 -25
- package/sorter.d.ts +103 -0
- package/store.d.ts +43 -48
- package/umbraco-package-schema.json +2439 -0
- package/utils.d.ts +1 -1
- package/vscode-html-custom-data.json +117 -75
- package/workspace.d.ts +5 -5
package/store.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { UmbControllerHostElement } from '
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { UmbArrayState } from '@umbraco-cms/backoffice/observable-api';
|
|
5
|
+
import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api';
|
|
6
|
+
import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from '@umbraco-cms/backoffice/store';
|
|
6
7
|
|
|
7
8
|
interface UmbDataStoreIdentifiers {
|
|
8
9
|
key?: string;
|
|
@@ -38,39 +39,46 @@ interface UmbContentStore<T> extends UmbEntityDetailStore<T> {
|
|
|
38
39
|
save(data: T[]): Promise<void>;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
interface UmbStore<T> {
|
|
43
|
+
appendItems: (items: Array<T>) => void;
|
|
44
|
+
updateItem: (unique: string, item: Partial<T>) => void;
|
|
45
|
+
removeItem: (unique: string) => void;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<EntityTreeItemResponseModel> {
|
|
54
|
-
#private;
|
|
48
|
+
declare class UmbStoreBase<StoreItemType = any> implements UmbStore<StoreItemType> {
|
|
49
|
+
protected _host: UmbControllerHostElement;
|
|
50
|
+
protected _data: UmbArrayState<StoreItemType>;
|
|
51
|
+
readonly storeAlias: string;
|
|
52
|
+
constructor(_host: UmbControllerHostElement, storeAlias: string, data: UmbArrayState<StoreItemType>);
|
|
55
53
|
/**
|
|
56
54
|
* Appends items to the store
|
|
57
|
-
* @param {Array<
|
|
55
|
+
* @param {Array<StoreItemType>} items
|
|
58
56
|
* @memberof UmbEntityTreeStore
|
|
59
57
|
*/
|
|
60
|
-
appendItems(items: Array<
|
|
58
|
+
appendItems(items: Array<StoreItemType>): void;
|
|
61
59
|
/**
|
|
62
60
|
* Updates an item in the store
|
|
63
61
|
* @param {string} id
|
|
64
|
-
* @param {Partial<
|
|
62
|
+
* @param {Partial<StoreItemType>} data
|
|
65
63
|
* @memberof UmbEntityTreeStore
|
|
66
64
|
*/
|
|
67
|
-
updateItem(
|
|
65
|
+
updateItem(unique: string, data: Partial<StoreItemType>): void;
|
|
68
66
|
/**
|
|
69
67
|
* Removes an item from the store
|
|
70
68
|
* @param {string} id
|
|
71
69
|
* @memberof UmbEntityTreeStore
|
|
72
70
|
*/
|
|
73
|
-
removeItem(
|
|
71
|
+
removeItem(unique: string): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
* @class UmbEntityTreeStore
|
|
77
|
+
* @extends {UmbStoreBase}
|
|
78
|
+
* @description - Entity Tree Store
|
|
79
|
+
*/
|
|
80
|
+
declare class UmbEntityTreeStore extends UmbStoreBase$1<EntityTreeItemResponseModel> implements UmbTreeStore$1<EntityTreeItemResponseModel> {
|
|
81
|
+
constructor(host: UmbControllerHostElement, storeAlias: string);
|
|
74
82
|
/**
|
|
75
83
|
* An observable to observe the root items
|
|
76
84
|
* @memberof UmbEntityTreeStore
|
|
@@ -96,29 +104,10 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
|
|
|
96
104
|
* @export
|
|
97
105
|
* @class UmbFileSystemTreeStore
|
|
98
106
|
* @extends {UmbStoreBase}
|
|
99
|
-
* @description -
|
|
107
|
+
* @description - File System Tree Store
|
|
100
108
|
*/
|
|
101
|
-
declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<FileSystemTreeItemPresentationModel> {
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Appends items to the store
|
|
105
|
-
* @param {Array<FileSystemTreeItemPresentationModel>} items
|
|
106
|
-
* @memberof UmbFileSystemTreeStore
|
|
107
|
-
*/
|
|
108
|
-
appendItems(items: Array<FileSystemTreeItemPresentationModel>): void;
|
|
109
|
-
/**
|
|
110
|
-
* Updates an item in the store
|
|
111
|
-
* @param {string} path
|
|
112
|
-
* @param {Partial<FileSystemTreeItemPresentationModel>} data
|
|
113
|
-
* @memberof UmbFileSystemTreeStore
|
|
114
|
-
*/
|
|
115
|
-
updateItem(path: string, data: Partial<FileSystemTreeItemPresentationModel>): void;
|
|
116
|
-
/**
|
|
117
|
-
* Removes an item from the store
|
|
118
|
-
* @param {string} path
|
|
119
|
-
* @memberof UmbFileSystemTreeStore
|
|
120
|
-
*/
|
|
121
|
-
removeItem(path: string): void;
|
|
109
|
+
declare class UmbFileSystemTreeStore extends UmbStoreBase$1<FileSystemTreeItemPresentationModel> implements UmbTreeStore$1<FileSystemTreeItemPresentationModel> {
|
|
110
|
+
constructor(host: UmbControllerHostElement, storeAlias: string);
|
|
122
111
|
/**
|
|
123
112
|
* An observable to observe the root items
|
|
124
113
|
* @memberof UmbFileSystemTreeStore
|
|
@@ -132,7 +121,7 @@ declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeSt
|
|
|
132
121
|
*/
|
|
133
122
|
childrenOf(parentPath: string | null): rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
|
|
134
123
|
/**
|
|
135
|
-
* Returns an observable to observe the items with the given
|
|
124
|
+
* Returns an observable to observe the items with the given ids
|
|
136
125
|
* @param {Array<string>} paths
|
|
137
126
|
* @return {*}
|
|
138
127
|
* @memberof UmbFileSystemTreeStore
|
|
@@ -147,13 +136,19 @@ type TreeItemPresentationModel = {
|
|
|
147
136
|
hasChildren?: boolean;
|
|
148
137
|
};
|
|
149
138
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
139
|
+
type ItemResponseModelBaseModel = {
|
|
140
|
+
name?: string;
|
|
141
|
+
id?: string;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
interface UmbTreeStore<T extends TreeItemPresentationModel = any> extends UmbStore<T> {
|
|
154
145
|
rootItems: Observable<Array<T>>;
|
|
155
146
|
childrenOf: (parentUnique: string | null) => Observable<Array<T>>;
|
|
156
147
|
items: (uniques: Array<string>) => Observable<Array<T>>;
|
|
157
148
|
}
|
|
158
149
|
|
|
159
|
-
|
|
150
|
+
interface UmbItemStore<T extends ItemResponseModelBaseModel = any> extends UmbStore<T> {
|
|
151
|
+
items: (uniques: Array<string>) => Observable<Array<T>>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export { UmbContentStore, UmbDataStore, UmbDataStoreIdentifiers, UmbEntityDetailStore, UmbEntityTreeStore, UmbFileSystemTreeStore, UmbItemStore, UmbStoreBase, UmbTreeStore };
|