@umbraco-cms/backoffice 1.0.0-next.ad335e6f → 1.0.0-next.ae903a71
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 +313 -20
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +2 -2
- package/custom-elements.json +81 -87
- package/extensions-registry.d.ts +2 -2
- package/id.d.ts +6 -0
- package/modal.d.ts +11 -12
- package/models.d.ts +3 -75
- package/package.json +1 -1
- package/repository.d.ts +38 -32
- package/section.d.ts +29 -0
- package/store.d.ts +1 -1
- package/tree.d.ts +14 -0
- package/umbraco-package-schema.json +18 -12
- package/utils.d.ts +1 -3
- package/vscode-html-custom-data.json +71 -87
- package/workspace.d.ts +18 -1
package/repository.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApiError, CancelError, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, ProblemDetailsModel, FolderModelBaseModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
1
|
+
import { ApiError, CancelError, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, TreeItemPresentationModel, ProblemDetailsModel, FolderModelBaseModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
2
2
|
import { DataSourceResponse as DataSourceResponse$1, UmbDataSourceErrorResponse as UmbDataSourceErrorResponse$1 } from '@umbraco-cms/backoffice/repository';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { UmbTreeRootModel, UmbTreeRootEntityModel } from '@umbraco-cms/backoffice/tree';
|
|
4
5
|
|
|
5
6
|
interface DataSourceResponse<T = undefined> extends UmbDataSourceErrorResponse {
|
|
6
7
|
data?: T;
|
|
@@ -25,47 +26,51 @@ interface UmbFolderDataSource {
|
|
|
25
26
|
delete(unique: string): Promise<DataSourceResponse>;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
|
|
29
|
-
getRootItems(): Promise<DataSourceResponse$1<PagedItemsType>>;
|
|
30
|
-
getChildrenOf(parentUnique: string): Promise<DataSourceResponse$1<PagedItemsType>>;
|
|
31
|
-
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemsType>>>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface UmbItemDataSource<ItemType> {
|
|
35
|
-
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemType>>>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface UmbMoveDataSource {
|
|
39
|
-
move(unique: string, targetUnique: string): Promise<UmbDataSourceErrorResponse$1>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface UmbCopyDataSource {
|
|
43
|
-
copy(unique: string, targetUnique: string): Promise<DataSourceResponse$1<string>>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
29
|
interface UmbPagedData<T> {
|
|
47
30
|
total: number;
|
|
48
31
|
items: Array<T>;
|
|
49
32
|
}
|
|
50
|
-
interface UmbTreeRepository<
|
|
33
|
+
interface UmbTreeRepository<TreeItemType extends TreeItemPresentationModel, TreeRootType extends UmbTreeRootModel = UmbTreeRootEntityModel> {
|
|
34
|
+
requestTreeRoot: () => Promise<{
|
|
35
|
+
data?: TreeRootType;
|
|
36
|
+
error?: ProblemDetailsModel;
|
|
37
|
+
}>;
|
|
51
38
|
requestRootTreeItems: () => Promise<{
|
|
52
|
-
data
|
|
53
|
-
error
|
|
54
|
-
asObservable?: () => Observable<
|
|
39
|
+
data?: UmbPagedData<TreeItemType>;
|
|
40
|
+
error?: ProblemDetailsModel;
|
|
41
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
55
42
|
}>;
|
|
56
43
|
requestTreeItemsOf: (parentUnique: string | null) => Promise<{
|
|
57
|
-
data
|
|
58
|
-
error
|
|
59
|
-
asObservable?: () => Observable<
|
|
44
|
+
data?: UmbPagedData<TreeItemType>;
|
|
45
|
+
error?: ProblemDetailsModel;
|
|
46
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
60
47
|
}>;
|
|
61
48
|
requestItemsLegacy?: (uniques: string[]) => Promise<{
|
|
62
|
-
data
|
|
63
|
-
error
|
|
64
|
-
asObservable?: () => Observable<
|
|
49
|
+
data?: Array<TreeItemType>;
|
|
50
|
+
error?: ProblemDetailsModel;
|
|
51
|
+
asObservable?: () => Observable<any[]>;
|
|
65
52
|
}>;
|
|
66
|
-
rootTreeItems: () => Promise<Observable<
|
|
67
|
-
treeItemsOf: (parentUnique: string | null) => Promise<Observable<
|
|
68
|
-
itemsLegacy?: (uniques: string[]) => Promise<Observable<
|
|
53
|
+
rootTreeItems: () => Promise<Observable<TreeItemType[]>>;
|
|
54
|
+
treeItemsOf: (parentUnique: string | null) => Promise<Observable<TreeItemType[]>>;
|
|
55
|
+
itemsLegacy?: (uniques: string[]) => Promise<Observable<any[]>>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface UmbTreeDataSource<ItemType = any, PagedItemType = UmbPagedData<ItemType>> {
|
|
59
|
+
getRootItems(): Promise<DataSourceResponse<PagedItemType>>;
|
|
60
|
+
getChildrenOf(parentUnique: string | null): Promise<DataSourceResponse<PagedItemType>>;
|
|
61
|
+
getItems(unique: Array<string>): Promise<DataSourceResponse<Array<any>>>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface UmbItemDataSource<ItemType> {
|
|
65
|
+
getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemType>>>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface UmbMoveDataSource {
|
|
69
|
+
move(unique: string, targetUnique: string | null): Promise<UmbDataSourceErrorResponse$1>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface UmbCopyDataSource {
|
|
73
|
+
copy(unique: string, targetUnique: string | null): Promise<DataSourceResponse$1<string>>;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
interface UmbCollectionDataSource<ItemType = any, PagedItemType = UmbPagedData<ItemType>> {
|
|
@@ -82,6 +87,7 @@ interface UmbRepositoryResponse<T> extends UmbRepositoryErrorResponse {
|
|
|
82
87
|
interface UmbDetailRepository<CreateRequestType = any, CreateResponseType = any, UpdateRequestType = any, ResponseType = any> {
|
|
83
88
|
createScaffold(parentId: string | null): Promise<UmbRepositoryResponse<CreateRequestType>>;
|
|
84
89
|
requestById(id: string): Promise<UmbRepositoryResponse<ResponseType>>;
|
|
90
|
+
byId(id: string): Promise<Observable<ResponseType>>;
|
|
85
91
|
create(data: CreateRequestType): Promise<UmbRepositoryResponse<CreateResponseType>>;
|
|
86
92
|
save(id: string, data: UpdateRequestType): Promise<UmbRepositoryErrorResponse>;
|
|
87
93
|
delete(id: string): Promise<UmbRepositoryErrorResponse>;
|
package/section.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { ManifestSection } from '@umbraco-cms/backoffice/extensions-registry';
|
|
5
|
+
|
|
6
|
+
declare class UmbSectionSidebarContext {
|
|
7
|
+
#private;
|
|
8
|
+
contextMenuIsOpen: rxjs.Observable<boolean>;
|
|
9
|
+
entityType: rxjs.Observable<string | undefined>;
|
|
10
|
+
unique: rxjs.Observable<string | null | undefined>;
|
|
11
|
+
headline: rxjs.Observable<string | undefined>;
|
|
12
|
+
constructor(host: UmbControllerHostElement);
|
|
13
|
+
toggleContextMenu(entityType: string, unique: string | null | undefined, headline: string): void;
|
|
14
|
+
openContextMenu(entityType: string, unique: string | null | undefined, headline: string): void;
|
|
15
|
+
closeContextMenu(): void;
|
|
16
|
+
}
|
|
17
|
+
declare const UMB_SECTION_SIDEBAR_CONTEXT_TOKEN: UmbContextToken<UmbSectionSidebarContext>;
|
|
18
|
+
|
|
19
|
+
declare class UmbSectionContext {
|
|
20
|
+
#private;
|
|
21
|
+
readonly alias: rxjs.Observable<string | undefined>;
|
|
22
|
+
readonly pathname: rxjs.Observable<string | undefined>;
|
|
23
|
+
readonly label: rxjs.Observable<string | undefined>;
|
|
24
|
+
constructor(manifest: ManifestSection);
|
|
25
|
+
setManifest(manifest?: ManifestSection): void;
|
|
26
|
+
}
|
|
27
|
+
declare const UMB_SECTION_CONTEXT_TOKEN: UmbContextToken<UmbSectionContext>;
|
|
28
|
+
|
|
29
|
+
export { UMB_SECTION_CONTEXT_TOKEN, UMB_SECTION_SIDEBAR_CONTEXT_TOKEN, UmbSectionContext, UmbSectionSidebarContext };
|
package/store.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1<EntityTreeItemResponseMo
|
|
|
97
97
|
* @return {*}
|
|
98
98
|
* @memberof UmbEntityTreeStore
|
|
99
99
|
*/
|
|
100
|
-
items(ids: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
100
|
+
items(ids: Array<string | null>): rxjs.Observable<EntityTreeItemResponseModel[]>;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/**
|
package/tree.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface UmbTreeRootModel {
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
hasChildren: boolean;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
interface UmbTreeRootEntityModel extends UmbTreeRootModel {
|
|
8
|
+
id: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface UmbTreeRootFileSystemModel extends UmbTreeRootModel {
|
|
11
|
+
path: string | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { UmbTreeRootEntityModel, UmbTreeRootFileSystemModel, UmbTreeRootModel };
|
|
@@ -675,12 +675,15 @@
|
|
|
675
675
|
},
|
|
676
676
|
"ConditionsEntityAction": {
|
|
677
677
|
"properties": {
|
|
678
|
-
"
|
|
679
|
-
"
|
|
678
|
+
"entityTypes": {
|
|
679
|
+
"items": {
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
"type": "array"
|
|
680
683
|
}
|
|
681
684
|
},
|
|
682
685
|
"required": [
|
|
683
|
-
"
|
|
686
|
+
"entityTypes"
|
|
684
687
|
],
|
|
685
688
|
"type": "object"
|
|
686
689
|
},
|
|
@@ -753,12 +756,15 @@
|
|
|
753
756
|
},
|
|
754
757
|
"ConditionsTreeItem": {
|
|
755
758
|
"properties": {
|
|
756
|
-
"
|
|
757
|
-
"
|
|
759
|
+
"entityTypes": {
|
|
760
|
+
"items": {
|
|
761
|
+
"type": "string"
|
|
762
|
+
},
|
|
763
|
+
"type": "array"
|
|
758
764
|
}
|
|
759
765
|
},
|
|
760
766
|
"required": [
|
|
761
|
-
"
|
|
767
|
+
"entityTypes"
|
|
762
768
|
],
|
|
763
769
|
"type": "object"
|
|
764
770
|
},
|
|
@@ -3235,7 +3241,7 @@
|
|
|
3235
3241
|
},
|
|
3236
3242
|
"FontFaceSet": {
|
|
3237
3243
|
"properties": {
|
|
3238
|
-
"__@toStringTag@
|
|
3244
|
+
"__@toStringTag@555": {
|
|
3239
3245
|
"type": "string"
|
|
3240
3246
|
},
|
|
3241
3247
|
"onloading": {
|
|
@@ -3267,7 +3273,7 @@
|
|
|
3267
3273
|
}
|
|
3268
3274
|
},
|
|
3269
3275
|
"required": [
|
|
3270
|
-
"__@toStringTag@
|
|
3276
|
+
"__@toStringTag@555",
|
|
3271
3277
|
"onloading",
|
|
3272
3278
|
"onloadingdone",
|
|
3273
3279
|
"onloadingerror",
|
|
@@ -18257,23 +18263,23 @@
|
|
|
18257
18263
|
},
|
|
18258
18264
|
"Promise<FontFaceSet>": {
|
|
18259
18265
|
"properties": {
|
|
18260
|
-
"__@toStringTag@
|
|
18266
|
+
"__@toStringTag@555": {
|
|
18261
18267
|
"type": "string"
|
|
18262
18268
|
}
|
|
18263
18269
|
},
|
|
18264
18270
|
"required": [
|
|
18265
|
-
"__@toStringTag@
|
|
18271
|
+
"__@toStringTag@555"
|
|
18266
18272
|
],
|
|
18267
18273
|
"type": "object"
|
|
18268
18274
|
},
|
|
18269
18275
|
"Promise<ServiceWorkerRegistration>": {
|
|
18270
18276
|
"properties": {
|
|
18271
|
-
"__@toStringTag@
|
|
18277
|
+
"__@toStringTag@555": {
|
|
18272
18278
|
"type": "string"
|
|
18273
18279
|
}
|
|
18274
18280
|
},
|
|
18275
18281
|
"required": [
|
|
18276
|
-
"__@toStringTag@
|
|
18282
|
+
"__@toStringTag@555"
|
|
18277
18283
|
],
|
|
18278
18284
|
"type": "object"
|
|
18279
18285
|
},
|
package/utils.d.ts
CHANGED
|
@@ -3,6 +3,4 @@ declare function umbracoPath(path: string): string;
|
|
|
3
3
|
declare function buildUdi(entityType: string, guid: string): string;
|
|
4
4
|
declare function getKeyFromUdi(udi: string): string;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { buildUdi, generateGuid, getKeyFromUdi, umbracoPath };
|
|
6
|
+
export { buildUdi, getKeyFromUdi, umbracoPath };
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"name": "umb-document-type-workspace-view-edit-properties",
|
|
65
|
-
"description": "Attributes:\n\n * `container-id` {`string | undefined`} - \n\n * `container-name` {`string | undefined`} - \n\n * `container-type`
|
|
65
|
+
"description": "Attributes:\n\n * `container-id` {`string | undefined`} - \n\n * `container-name` {`string | undefined`} - \n\n * `container-type` - \n\nProperties:\n\n * `_containerId` {`string | undefined`} - \n\n * `containerId` {`string | undefined`} - \n\n * `containerName` {`string | undefined`} - \n\n * `containerType` - \n\n * `_propertyStructureHelper` - \n\n * `_propertyStructure` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
66
66
|
"attributes": [
|
|
67
67
|
{
|
|
68
68
|
"name": "container-id",
|
|
@@ -76,15 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "container-type",
|
|
79
|
-
"description": "`container-type`
|
|
80
|
-
"values": [
|
|
81
|
-
{
|
|
82
|
-
"name": "Group"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "Tab"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
79
|
+
"description": "`container-type` - \n\nProperty: containerType"
|
|
88
80
|
}
|
|
89
81
|
]
|
|
90
82
|
},
|
|
@@ -169,12 +161,12 @@
|
|
|
169
161
|
},
|
|
170
162
|
{
|
|
171
163
|
"name": "umb-document-picker-modal",
|
|
172
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
164
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
173
165
|
"attributes": []
|
|
174
166
|
},
|
|
175
167
|
{
|
|
176
168
|
"name": "umb-document-type-picker-modal",
|
|
177
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
169
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
178
170
|
"attributes": []
|
|
179
171
|
},
|
|
180
172
|
{
|
|
@@ -199,7 +191,7 @@
|
|
|
199
191
|
},
|
|
200
192
|
{
|
|
201
193
|
"name": "umb-document-workspace-view-edit-properties",
|
|
202
|
-
"description": "Attributes:\n\n * `container-name` {`string | undefined`} - \n\n * `container-type`
|
|
194
|
+
"description": "Attributes:\n\n * `container-name` {`string | undefined`} - \n\n * `container-type` - \n\nProperties:\n\n * `containerName` {`string | undefined`} - \n\n * `containerType` - \n\n * `_propertyStructureHelper` - \n\n * `_propertyStructure` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
203
195
|
"attributes": [
|
|
204
196
|
{
|
|
205
197
|
"name": "container-name",
|
|
@@ -208,15 +200,7 @@
|
|
|
208
200
|
},
|
|
209
201
|
{
|
|
210
202
|
"name": "container-type",
|
|
211
|
-
"description": "`container-type`
|
|
212
|
-
"values": [
|
|
213
|
-
{
|
|
214
|
-
"name": "Group"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "Tab"
|
|
218
|
-
}
|
|
219
|
-
]
|
|
203
|
+
"description": "`container-type` - \n\nProperty: containerType"
|
|
220
204
|
}
|
|
221
205
|
]
|
|
222
206
|
},
|
|
@@ -282,7 +266,7 @@
|
|
|
282
266
|
},
|
|
283
267
|
{
|
|
284
268
|
"name": "umb-media-picker-modal",
|
|
285
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
269
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
286
270
|
"attributes": []
|
|
287
271
|
},
|
|
288
272
|
{
|
|
@@ -312,7 +296,7 @@
|
|
|
312
296
|
},
|
|
313
297
|
{
|
|
314
298
|
"name": "umb-member-group-workspace-edit",
|
|
315
|
-
"description": "Properties:\n\n * `_memberGroup` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
299
|
+
"description": "Properties:\n\n * `_memberGroup` {`MemberGroupDetails | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
316
300
|
"attributes": []
|
|
317
301
|
},
|
|
318
302
|
{
|
|
@@ -322,7 +306,7 @@
|
|
|
322
306
|
},
|
|
323
307
|
{
|
|
324
308
|
"name": "umb-workspace-view-member-group-info",
|
|
325
|
-
"description": "Properties:\n\n * `_memberGroup` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
309
|
+
"description": "Properties:\n\n * `_memberGroup` {`MemberGroupDetails | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
326
310
|
"attributes": []
|
|
327
311
|
},
|
|
328
312
|
{
|
|
@@ -561,7 +545,7 @@
|
|
|
561
545
|
},
|
|
562
546
|
{
|
|
563
547
|
"name": "umb-data-type-picker-modal",
|
|
564
|
-
"description": "Properties:\n\n * `modalHandler` - \n\n * `data` - \n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
548
|
+
"description": "Properties:\n\n * `modalHandler` - \n\n * `data` - \n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
565
549
|
"attributes": []
|
|
566
550
|
},
|
|
567
551
|
{
|
|
@@ -1617,7 +1601,7 @@
|
|
|
1617
1601
|
},
|
|
1618
1602
|
{
|
|
1619
1603
|
"name": "umb-input-template",
|
|
1620
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `selectedIds` {`string[]`} - \n\n * `defaultId` {`string`} - \n\nProperties:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `_selectedIds` {`string[]`} - \n\n * `selectedIds` {`string[]`} - \n\n * `_defaultId` {`string`} - \n\n * `defaultId` {`string`} - \n\n * `_modalContext` - \n\n * `_templateRepository` - \n\n * `_pickedTemplates` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`FormDataEntryValue | FormData`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
|
|
1604
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `selectedIds` {`(string | null)[]`} - \n\n * `defaultId` {`string`} - \n\nProperties:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `_selectedIds` {`(string | null)[]`} - \n\n * `selectedIds` {`(string | null)[]`} - \n\n * `_defaultId` {`string`} - \n\n * `defaultId` {`string`} - \n\n * `_modalContext` - \n\n * `_templateRepository` - \n\n * `_pickedTemplates` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`FormDataEntryValue | FormData`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
|
|
1621
1605
|
"attributes": [
|
|
1622
1606
|
{
|
|
1623
1607
|
"name": "min",
|
|
@@ -1639,7 +1623,7 @@
|
|
|
1639
1623
|
},
|
|
1640
1624
|
{
|
|
1641
1625
|
"name": "selectedIds",
|
|
1642
|
-
"description": "`selectedIds` {`string[]`} - \n\nProperty: selectedIds"
|
|
1626
|
+
"description": "`selectedIds` {`(string | null)[]`} - \n\nProperty: selectedIds"
|
|
1643
1627
|
},
|
|
1644
1628
|
{
|
|
1645
1629
|
"name": "defaultId",
|
|
@@ -1705,47 +1689,6 @@
|
|
|
1705
1689
|
}
|
|
1706
1690
|
]
|
|
1707
1691
|
},
|
|
1708
|
-
{
|
|
1709
|
-
"name": "umb-input-user-group",
|
|
1710
|
-
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\nProperties:\n\n * `_userGroups` {`any[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\n * `pickerToken` - \n\n * `_modalContext` - ",
|
|
1711
|
-
"attributes": [
|
|
1712
|
-
{
|
|
1713
|
-
"name": "value",
|
|
1714
|
-
"description": "`value` {`string[]`} - \n\nProperty: value\n\nDefault: "
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
"name": "multiple",
|
|
1718
|
-
"description": "`multiple` {`boolean`} - \n\nProperty: multiple\n\nDefault: true",
|
|
1719
|
-
"valueSet": "v"
|
|
1720
|
-
},
|
|
1721
|
-
{
|
|
1722
|
-
"name": "modalType",
|
|
1723
|
-
"description": "`modalType` - \n\nProperty: modalType\n\nDefault: sidebar"
|
|
1724
|
-
},
|
|
1725
|
-
{
|
|
1726
|
-
"name": "modalSize",
|
|
1727
|
-
"description": "`modalSize` {`UUIModalSidebarSize`} - \n\nProperty: modalSize\n\nDefault: small",
|
|
1728
|
-
"values": [
|
|
1729
|
-
{
|
|
1730
|
-
"name": "small"
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
"name": "large"
|
|
1734
|
-
},
|
|
1735
|
-
{
|
|
1736
|
-
"name": "medium"
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
"name": "full"
|
|
1740
|
-
}
|
|
1741
|
-
]
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
"name": "onchange",
|
|
1745
|
-
"description": "`change` {`CustomEvent<unknown>`} - "
|
|
1746
|
-
}
|
|
1747
|
-
]
|
|
1748
|
-
},
|
|
1749
1692
|
{
|
|
1750
1693
|
"name": "umb-menu-item-base",
|
|
1751
1694
|
"description": "Attributes:\n\n * `entity-type` {`string | undefined`} - \n\n * `icon-name` {`string`} - \n\n * `label` {`string`} - \n\n * `has-children` {`boolean`} - \n\nProperties:\n\n * `_entityType` {`string | undefined`} - \n\n * `entityType` {`string | undefined`} - \n\n * `iconName` {`string`} - \n\n * `label` {`string`} - \n\n * `hasChildren` {`boolean`} - \n\n * `_href` {`string | undefined`} - \n\n * `_hasActions` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
@@ -1847,7 +1790,7 @@
|
|
|
1847
1790
|
},
|
|
1848
1791
|
{
|
|
1849
1792
|
"name": "umb-section-sidebar-context-menu",
|
|
1850
|
-
"description": "Properties:\n\n * `_isOpen` {`boolean`} - \n\n * `_entityType` {`string | undefined`} - \n\n * `_unique` {`string | undefined`} - \n\n * `_headline` {`string | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
1793
|
+
"description": "Properties:\n\n * `_isOpen` {`boolean`} - \n\n * `_entityType` {`string | undefined`} - \n\n * `_unique` {`string | null | undefined`} - \n\n * `_headline` {`string | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
1851
1794
|
"attributes": []
|
|
1852
1795
|
},
|
|
1853
1796
|
{
|
|
@@ -1967,7 +1910,7 @@
|
|
|
1967
1910
|
},
|
|
1968
1911
|
{
|
|
1969
1912
|
"name": "umb-menu-item-tree",
|
|
1970
|
-
"description": "Attributes:\n\n * `manifest` - \n\nProperties:\n\n * `
|
|
1913
|
+
"description": "Attributes:\n\n * `manifest` - \n\nProperties:\n\n * `manifest` - ",
|
|
1971
1914
|
"attributes": [
|
|
1972
1915
|
{
|
|
1973
1916
|
"name": "manifest",
|
|
@@ -1977,29 +1920,29 @@
|
|
|
1977
1920
|
},
|
|
1978
1921
|
{
|
|
1979
1922
|
"name": "umb-tree",
|
|
1980
|
-
"description": "
|
|
1923
|
+
"description": "Attributes:\n\n * `alias` {`string | undefined`} - \n\n * `selectable` - \n\n * `selection` - \n\n * `multiple` - \n\n * `hide-tree-root` {`boolean`} - \n\nProperties:\n\n * `alias` {`string | undefined`} - \n\n * `selectable` - \n\n * `selection` - \n\n * `multiple` - \n\n * `_hideTreeRoot` {`boolean`} - \n\n * `hideTreeRoot` {`boolean`} - \n\n * `_items` {`any[]`} - \n\n * `_treeRoot` - ",
|
|
1981
1924
|
"attributes": [
|
|
1982
1925
|
{
|
|
1983
1926
|
"name": "alias",
|
|
1984
|
-
"description": "`alias` {`string`} - \n\nProperty: alias"
|
|
1927
|
+
"description": "`alias` {`string | undefined`} - \n\nProperty: alias",
|
|
1928
|
+
"values": []
|
|
1985
1929
|
},
|
|
1986
1930
|
{
|
|
1987
1931
|
"name": "selectable",
|
|
1988
|
-
"description": "`selectable`
|
|
1989
|
-
"valueSet": "v"
|
|
1932
|
+
"description": "`selectable` - \n\nProperty: selectable"
|
|
1990
1933
|
},
|
|
1991
1934
|
{
|
|
1992
1935
|
"name": "selection",
|
|
1993
|
-
"description": "`selection`
|
|
1936
|
+
"description": "`selection` - \n\nProperty: selection"
|
|
1994
1937
|
},
|
|
1995
1938
|
{
|
|
1996
1939
|
"name": "multiple",
|
|
1997
|
-
"description": "`multiple`
|
|
1998
|
-
"valueSet": "v"
|
|
1940
|
+
"description": "`multiple` - \n\nProperty: multiple"
|
|
1999
1941
|
},
|
|
2000
1942
|
{
|
|
2001
|
-
"name": "
|
|
2002
|
-
"description": "`
|
|
1943
|
+
"name": "hide-tree-root",
|
|
1944
|
+
"description": "`hide-tree-root` {`boolean`} - \n\nProperty: hideTreeRoot",
|
|
1945
|
+
"valueSet": "v"
|
|
2003
1946
|
}
|
|
2004
1947
|
]
|
|
2005
1948
|
},
|
|
@@ -2216,7 +2159,7 @@
|
|
|
2216
2159
|
},
|
|
2217
2160
|
{
|
|
2218
2161
|
"name": "umb-template-picker-modal",
|
|
2219
|
-
"description": "Properties:\n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2162
|
+
"description": "Properties:\n\n * `_selection` {`(string | null)[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2220
2163
|
"attributes": []
|
|
2221
2164
|
},
|
|
2222
2165
|
{
|
|
@@ -2968,7 +2911,7 @@
|
|
|
2968
2911
|
},
|
|
2969
2912
|
{
|
|
2970
2913
|
"name": "umb-current-user-header-app",
|
|
2971
|
-
"description": "Properties:\n\n * `_currentUser` - \n\n * `_currentUserStore` - \n\n * `_modalContext` - \n\n * `styles` - ",
|
|
2914
|
+
"description": "Properties:\n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_currentUserStore` - \n\n * `_modalContext` - \n\n * `styles` - ",
|
|
2972
2915
|
"attributes": []
|
|
2973
2916
|
},
|
|
2974
2917
|
{
|
|
@@ -2983,7 +2926,7 @@
|
|
|
2983
2926
|
},
|
|
2984
2927
|
{
|
|
2985
2928
|
"name": "umb-current-user-modal",
|
|
2986
|
-
"description": "Properties:\n\n * `modalHandler` - \n\n * `_currentUser` - \n\n * `_currentUserStore` - \n\n * `styles` - ",
|
|
2929
|
+
"description": "Properties:\n\n * `modalHandler` - \n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_currentUserStore` - \n\n * `styles` - ",
|
|
2987
2930
|
"attributes": []
|
|
2988
2931
|
},
|
|
2989
2932
|
{
|
|
@@ -3003,7 +2946,7 @@
|
|
|
3003
2946
|
},
|
|
3004
2947
|
{
|
|
3005
2948
|
"name": "umb-user-profile-app-profile",
|
|
3006
|
-
"description": "Properties:\n\n * `_currentUser` - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
2949
|
+
"description": "Properties:\n\n * `_currentUser` {`UmbLoggedInUser | undefined`} - \n\n * `_modalContext` - \n\n * `_currentUserStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3007
2950
|
"attributes": []
|
|
3008
2951
|
},
|
|
3009
2952
|
{
|
|
@@ -3011,9 +2954,50 @@
|
|
|
3011
2954
|
"description": "Properties:\n\n * `_themeAlias` {`string | null`} - \n\n * `_themes` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3012
2955
|
"attributes": []
|
|
3013
2956
|
},
|
|
2957
|
+
{
|
|
2958
|
+
"name": "umb-input-user-group",
|
|
2959
|
+
"description": "Events:\n\n * `change` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\nProperties:\n\n * `_userGroups` {`UserGroupEntity[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - \n\n * `value` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\n * `modalType` - \n\n * `modalSize` {`UUIModalSidebarSize`} - \n\n * `pickerToken` - \n\n * `_modalContext` - ",
|
|
2960
|
+
"attributes": [
|
|
2961
|
+
{
|
|
2962
|
+
"name": "value",
|
|
2963
|
+
"description": "`value` {`string[]`} - \n\nProperty: value\n\nDefault: "
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
"name": "multiple",
|
|
2967
|
+
"description": "`multiple` {`boolean`} - \n\nProperty: multiple\n\nDefault: true",
|
|
2968
|
+
"valueSet": "v"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"name": "modalType",
|
|
2972
|
+
"description": "`modalType` - \n\nProperty: modalType\n\nDefault: sidebar"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"name": "modalSize",
|
|
2976
|
+
"description": "`modalSize` {`UUIModalSidebarSize`} - \n\nProperty: modalSize\n\nDefault: small",
|
|
2977
|
+
"values": [
|
|
2978
|
+
{
|
|
2979
|
+
"name": "small"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"name": "large"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"name": "medium"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "full"
|
|
2989
|
+
}
|
|
2990
|
+
]
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"name": "onchange",
|
|
2994
|
+
"description": "`change` {`CustomEvent<unknown>`} - "
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
},
|
|
3014
2998
|
{
|
|
3015
2999
|
"name": "umb-user-group-picker-modal",
|
|
3016
|
-
"description": "Properties:\n\n * `_userGroups` {`
|
|
3000
|
+
"description": "Properties:\n\n * `_userGroups` {`UserGroupDetails[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3017
3001
|
"attributes": []
|
|
3018
3002
|
},
|
|
3019
3003
|
{
|
|
@@ -3038,7 +3022,7 @@
|
|
|
3038
3022
|
},
|
|
3039
3023
|
{
|
|
3040
3024
|
"name": "umb-user-group-workspace-edit",
|
|
3041
|
-
"description": "Properties:\n\n * `defaultPermissions` {`{ name: string; permissions: { name: string; description: string; value: boolean; }[]; }[]`} - \n\n * `_userStore` - \n\n * `_userGroup` - \n\n * `_userKeys` {`string[] | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3025
|
+
"description": "Properties:\n\n * `defaultPermissions` {`{ name: string; permissions: { name: string; description: string; value: boolean; }[]; }[]`} - \n\n * `_userStore` - \n\n * `_userGroup` {`UserGroupDetails | undefined`} - \n\n * `_userKeys` {`string[] | undefined`} - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3042
3026
|
"attributes": []
|
|
3043
3027
|
},
|
|
3044
3028
|
{
|
|
@@ -3048,7 +3032,7 @@
|
|
|
3048
3032
|
},
|
|
3049
3033
|
{
|
|
3050
3034
|
"name": "umb-workspace-view-user-groups",
|
|
3051
|
-
"description": "Properties:\n\n * `_userGroups` {`
|
|
3035
|
+
"description": "Properties:\n\n * `_userGroups` {`UserGroupDetails[]`} - \n\n * `_tableConfig` {`UmbTableConfig`} - \n\n * `_tableColumns` {`UmbTableColumn[]`} - \n\n * `_tableItems` {`UmbTableItem[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_userGroupStore` - \n\n * `styles` {`CSSResult[]`} - ",
|
|
3052
3036
|
"attributes": []
|
|
3053
3037
|
},
|
|
3054
3038
|
{
|
package/workspace.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
3
4
|
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
|
|
5
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
4
6
|
|
|
5
7
|
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
6
8
|
host: UmbControllerHostElement;
|
|
@@ -21,6 +23,21 @@ interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWo
|
|
|
21
23
|
save(): Promise<void>;
|
|
22
24
|
}
|
|
23
25
|
|
|
26
|
+
declare abstract class UmbWorkspaceContext<T, EntityType extends UmbEntityBase> implements UmbEntityWorkspaceContextInterface<EntityType> {
|
|
27
|
+
#private;
|
|
28
|
+
host: UmbControllerHostElement;
|
|
29
|
+
repository: T;
|
|
30
|
+
isNew: rxjs.Observable<boolean | undefined>;
|
|
31
|
+
constructor(host: UmbControllerHostElement, repository: T);
|
|
32
|
+
getIsNew(): boolean | undefined;
|
|
33
|
+
setIsNew(isNew: boolean): void;
|
|
34
|
+
abstract getEntityId(): string | undefined;
|
|
35
|
+
abstract getEntityType(): string;
|
|
36
|
+
abstract getData(): EntityType | undefined;
|
|
37
|
+
abstract save(): Promise<void>;
|
|
38
|
+
abstract destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
24
41
|
interface UmbWorkspaceAction<WorkspaceType = unknown> {
|
|
25
42
|
host: UmbControllerHostElement;
|
|
26
43
|
workspaceContext?: WorkspaceType;
|
|
@@ -38,4 +55,4 @@ declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspace
|
|
|
38
55
|
execute(): Promise<void>;
|
|
39
56
|
}
|
|
40
57
|
|
|
41
|
-
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|
|
58
|
+
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface };
|