@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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ProblemDetailsModel, DocumentTypeResponseModel, PropertyTypeContainerResponseModelBaseModel, PropertyTypeResponseModelBaseModel, DocumentTypePropertyTypeResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
4
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
5
|
+
import { MappingFunction } from '@umbraco-cms/backoffice/observable-api';
|
|
6
|
+
|
|
7
|
+
interface UmbRepositoryErrorResponse {
|
|
8
|
+
error?: ProblemDetailsModel;
|
|
9
|
+
}
|
|
10
|
+
interface UmbRepositoryResponse<T> extends UmbRepositoryErrorResponse {
|
|
11
|
+
data?: T;
|
|
12
|
+
}
|
|
13
|
+
interface UmbDetailRepository<CreateRequestType = any, CreateResponseType = any, UpdateRequestType = any, ResponseType = any> {
|
|
14
|
+
createScaffold(parentId: string | null): Promise<UmbRepositoryResponse<CreateRequestType>>;
|
|
15
|
+
requestById(id: string): Promise<UmbRepositoryResponse<ResponseType>>;
|
|
16
|
+
byId(id: string): Promise<Observable<ResponseType>>;
|
|
17
|
+
create(data: CreateRequestType): Promise<UmbRepositoryResponse<CreateResponseType>>;
|
|
18
|
+
save(id: string, data: UpdateRequestType): Promise<UmbRepositoryErrorResponse>;
|
|
19
|
+
delete(id: string): Promise<UmbRepositoryErrorResponse>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type PropertyContainerTypes = 'Group' | 'Tab';
|
|
23
|
+
type T = DocumentTypeResponseModel;
|
|
24
|
+
declare class UmbContentTypePropertyStructureManager<R extends UmbDetailRepository<T> = UmbDetailRepository<T>> {
|
|
25
|
+
#private;
|
|
26
|
+
readonly documentTypes: rxjs.Observable<DocumentTypeResponseModel[]>;
|
|
27
|
+
private readonly _documentTypeContainers;
|
|
28
|
+
constructor(host: UmbControllerHostElement, typeRepository: R);
|
|
29
|
+
/**
|
|
30
|
+
* loadType will load the node type and all inherited and composed types.
|
|
31
|
+
* This will give us all the structure for properties and containers.
|
|
32
|
+
*/
|
|
33
|
+
loadType(id?: string): Promise<{
|
|
34
|
+
data?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
data: any;
|
|
37
|
+
}>;
|
|
38
|
+
createScaffold(parentId: string): Promise<{
|
|
39
|
+
data?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
data: DocumentTypeResponseModel;
|
|
42
|
+
}>;
|
|
43
|
+
private _ensureType;
|
|
44
|
+
private _loadType;
|
|
45
|
+
_observeDocumentType(data: T): Promise<void>;
|
|
46
|
+
private _loadDocumentTypeCompositions;
|
|
47
|
+
/** Public methods for consuming structure: */
|
|
48
|
+
rootDocumentType(): rxjs.Observable<DocumentTypeResponseModel | undefined>;
|
|
49
|
+
getRootDocumentType(): DocumentTypeResponseModel | undefined;
|
|
50
|
+
updateRootDocumentType(entry: T): void;
|
|
51
|
+
createContainer(contentTypeId: string | null, parentId?: string | null, type?: PropertyContainerTypes, sortOrder?: number): Promise<PropertyTypeContainerResponseModelBaseModel>;
|
|
52
|
+
updateContainer(documentTypeId: string | null, groupKey: string, partialUpdate: Partial<PropertyTypeContainerResponseModelBaseModel>): Promise<void>;
|
|
53
|
+
removeContainer(documentTypeKey: string | null, containerId?: string | null): Promise<void>;
|
|
54
|
+
createProperty(documentTypeId: string | null, containerId?: string | null, sortOrder?: number): Promise<PropertyTypeResponseModelBaseModel>;
|
|
55
|
+
insertProperty(documentTypeId: string | null, property: PropertyTypeResponseModelBaseModel): Promise<void>;
|
|
56
|
+
removeProperty(documentTypeId: string | null, propertyId: string): Promise<void>;
|
|
57
|
+
updateProperty(documentTypeId: string | null, propertyId: string, partialUpdate: Partial<PropertyTypeResponseModelBaseModel>): Promise<void>;
|
|
58
|
+
rootDocumentTypeObservablePart<PartResult>(mappingFunction: MappingFunction<T, PartResult>): rxjs.Observable<PartResult | undefined>;
|
|
59
|
+
hasPropertyStructuresOf(containerId: string | null): rxjs.Observable<boolean>;
|
|
60
|
+
rootPropertyStructures(): rxjs.Observable<PropertyTypeResponseModelBaseModel[]>;
|
|
61
|
+
propertyStructuresOf(containerId: string | null): rxjs.Observable<PropertyTypeResponseModelBaseModel[]>;
|
|
62
|
+
rootContainers(containerType: PropertyContainerTypes): rxjs.Observable<PropertyTypeContainerResponseModelBaseModel[]>;
|
|
63
|
+
hasRootContainers(containerType: PropertyContainerTypes): rxjs.Observable<boolean>;
|
|
64
|
+
containersOfParentKey(parentId: PropertyTypeContainerResponseModelBaseModel['parentId'], containerType: PropertyContainerTypes): rxjs.Observable<PropertyTypeContainerResponseModelBaseModel[]>;
|
|
65
|
+
containersByNameAndType(name: string, containerType: PropertyContainerTypes): rxjs.Observable<PropertyTypeContainerResponseModelBaseModel[]>;
|
|
66
|
+
private _reset;
|
|
67
|
+
destroy(): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class UmbContentTypeContainerStructureHelper {
|
|
71
|
+
#private;
|
|
72
|
+
private _ownerType?;
|
|
73
|
+
private _childType?;
|
|
74
|
+
private _isRoot;
|
|
75
|
+
private _ownerName?;
|
|
76
|
+
private _ownerKey?;
|
|
77
|
+
private _ownerContainers;
|
|
78
|
+
readonly containers: rxjs.Observable<PropertyTypeContainerResponseModelBaseModel[]>;
|
|
79
|
+
readonly hasProperties: rxjs.Observable<boolean>;
|
|
80
|
+
constructor(host: UmbControllerHostElement);
|
|
81
|
+
setStructureManager(structure: UmbContentTypePropertyStructureManager): void;
|
|
82
|
+
setType(value?: PropertyContainerTypes): void;
|
|
83
|
+
getType(): PropertyContainerTypes | undefined;
|
|
84
|
+
setContainerChildType(value?: PropertyContainerTypes): void;
|
|
85
|
+
getContainerChildType(): PropertyContainerTypes | undefined;
|
|
86
|
+
setName(value?: string): void;
|
|
87
|
+
getName(): string | undefined;
|
|
88
|
+
setIsRoot(value: boolean): void;
|
|
89
|
+
getIsRoot(): boolean;
|
|
90
|
+
private _observeOwnerContainers;
|
|
91
|
+
private _observeOwnerProperties;
|
|
92
|
+
private _observeChildContainers;
|
|
93
|
+
private _observeRootContainers;
|
|
94
|
+
private _insertGroupContainers;
|
|
95
|
+
/**
|
|
96
|
+
* Returns true if the container is an owner container.
|
|
97
|
+
*/
|
|
98
|
+
isOwnerContainer(groupId?: string): boolean | undefined;
|
|
99
|
+
/** Manipulate methods: */
|
|
100
|
+
addContainer(ownerId?: string, sortOrder?: number): Promise<void>;
|
|
101
|
+
partialUpdateContainer(groupId?: string, partialUpdate?: Partial<PropertyTypeContainerResponseModelBaseModel>): Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class UmbContentTypePropertyStructureHelper {
|
|
105
|
+
#private;
|
|
106
|
+
private _containerType?;
|
|
107
|
+
private _isRoot?;
|
|
108
|
+
private _containerName?;
|
|
109
|
+
readonly propertyStructure: rxjs.Observable<PropertyTypeResponseModelBaseModel[]>;
|
|
110
|
+
constructor(host: UmbControllerHostElement);
|
|
111
|
+
setStructureManager(structure: UmbContentTypePropertyStructureManager): void;
|
|
112
|
+
setContainerType(value?: PropertyContainerTypes): void;
|
|
113
|
+
getContainerType(): PropertyContainerTypes | undefined;
|
|
114
|
+
setContainerName(value?: string): void;
|
|
115
|
+
getContainerName(): string | undefined;
|
|
116
|
+
setIsRoot(value: boolean): void;
|
|
117
|
+
getIsRoot(): boolean | undefined;
|
|
118
|
+
private _observeGroupContainers;
|
|
119
|
+
private _observePropertyStructureOf;
|
|
120
|
+
/** Manipulate methods: */
|
|
121
|
+
addProperty(ownerId?: string, sortOrder?: number): Promise<PropertyTypeResponseModelBaseModel | undefined>;
|
|
122
|
+
insertProperty(property: PropertyTypeResponseModelBaseModel, sortOrder?: number): Promise<boolean>;
|
|
123
|
+
removeProperty(propertyId: string): Promise<boolean>;
|
|
124
|
+
partialUpdateProperty(propertyKey?: string, partialUpdate?: Partial<DocumentTypePropertyTypeResponseModel>): Promise<void>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { PropertyContainerTypes, UmbContentTypeContainerStructureHelper, UmbContentTypePropertyStructureHelper, UmbContentTypePropertyStructureManager };
|
package/context-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UmbControllerHostElement, UmbControllerInterface } from '@umbraco-cms/backoffice/controller';
|
|
2
2
|
import { UmbWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
|
|
3
|
-
import {
|
|
3
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
4
4
|
|
|
5
5
|
declare class UmbContextToken<T = unknown> {
|
|
6
6
|
protected alias: string;
|
|
@@ -170,7 +170,7 @@ interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWo
|
|
|
170
170
|
save(): Promise<void>;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<
|
|
173
|
+
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<UmbEntityBase>>;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
176
|
* Change the collection of Contexts into a simplified array of data
|
package/custom-elements.json
CHANGED
|
@@ -141,8 +141,7 @@
|
|
|
141
141
|
"type": "string | undefined"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
"name": "container-type"
|
|
145
|
-
"type": "PropertyContainerTypes | undefined"
|
|
144
|
+
"name": "container-type"
|
|
146
145
|
}
|
|
147
146
|
],
|
|
148
147
|
"properties": [
|
|
@@ -158,8 +157,7 @@
|
|
|
158
157
|
},
|
|
159
158
|
{
|
|
160
159
|
"name": "containerType",
|
|
161
|
-
"attribute": "container-type"
|
|
162
|
-
"type": "PropertyContainerTypes | undefined"
|
|
160
|
+
"attribute": "container-type"
|
|
163
161
|
},
|
|
164
162
|
{
|
|
165
163
|
"name": "styles",
|
|
@@ -428,8 +426,7 @@
|
|
|
428
426
|
"type": "string | undefined"
|
|
429
427
|
},
|
|
430
428
|
{
|
|
431
|
-
"name": "container-type"
|
|
432
|
-
"type": "PropertyContainerTypes | undefined"
|
|
429
|
+
"name": "container-type"
|
|
433
430
|
}
|
|
434
431
|
],
|
|
435
432
|
"properties": [
|
|
@@ -440,8 +437,7 @@
|
|
|
440
437
|
},
|
|
441
438
|
{
|
|
442
439
|
"name": "containerType",
|
|
443
|
-
"attribute": "container-type"
|
|
444
|
-
"type": "PropertyContainerTypes | undefined"
|
|
440
|
+
"attribute": "container-type"
|
|
445
441
|
},
|
|
446
442
|
{
|
|
447
443
|
"name": "styles",
|
|
@@ -3902,7 +3898,7 @@
|
|
|
3902
3898
|
},
|
|
3903
3899
|
{
|
|
3904
3900
|
"name": "selectedIds",
|
|
3905
|
-
"type": "string[]"
|
|
3901
|
+
"type": "(string | null)[]"
|
|
3906
3902
|
},
|
|
3907
3903
|
{
|
|
3908
3904
|
"name": "defaultId",
|
|
@@ -3941,7 +3937,7 @@
|
|
|
3941
3937
|
{
|
|
3942
3938
|
"name": "selectedIds",
|
|
3943
3939
|
"attribute": "selectedIds",
|
|
3944
|
-
"type": "string[]"
|
|
3940
|
+
"type": "(string | null)[]"
|
|
3945
3941
|
},
|
|
3946
3942
|
{
|
|
3947
3943
|
"name": "defaultId",
|
|
@@ -4191,66 +4187,6 @@
|
|
|
4191
4187
|
}
|
|
4192
4188
|
]
|
|
4193
4189
|
},
|
|
4194
|
-
{
|
|
4195
|
-
"name": "umb-input-user-group",
|
|
4196
|
-
"path": "./../../src/backoffice/shared/components/input-user-group/input-user-group.element.ts",
|
|
4197
|
-
"attributes": [
|
|
4198
|
-
{
|
|
4199
|
-
"name": "value",
|
|
4200
|
-
"type": "string[]",
|
|
4201
|
-
"default": "[]"
|
|
4202
|
-
},
|
|
4203
|
-
{
|
|
4204
|
-
"name": "multiple",
|
|
4205
|
-
"type": "boolean",
|
|
4206
|
-
"default": "true"
|
|
4207
|
-
},
|
|
4208
|
-
{
|
|
4209
|
-
"name": "modalType",
|
|
4210
|
-
"default": "\"sidebar\""
|
|
4211
|
-
},
|
|
4212
|
-
{
|
|
4213
|
-
"name": "modalSize",
|
|
4214
|
-
"type": "UUIModalSidebarSize",
|
|
4215
|
-
"default": "\"small\""
|
|
4216
|
-
}
|
|
4217
|
-
],
|
|
4218
|
-
"properties": [
|
|
4219
|
-
{
|
|
4220
|
-
"name": "styles",
|
|
4221
|
-
"type": "CSSResult[]",
|
|
4222
|
-
"default": "[\"UUITextStyles\",null]"
|
|
4223
|
-
},
|
|
4224
|
-
{
|
|
4225
|
-
"name": "value",
|
|
4226
|
-
"attribute": "value",
|
|
4227
|
-
"type": "string[]",
|
|
4228
|
-
"default": "[]"
|
|
4229
|
-
},
|
|
4230
|
-
{
|
|
4231
|
-
"name": "multiple",
|
|
4232
|
-
"attribute": "multiple",
|
|
4233
|
-
"type": "boolean",
|
|
4234
|
-
"default": "true"
|
|
4235
|
-
},
|
|
4236
|
-
{
|
|
4237
|
-
"name": "modalType",
|
|
4238
|
-
"attribute": "modalType",
|
|
4239
|
-
"default": "\"sidebar\""
|
|
4240
|
-
},
|
|
4241
|
-
{
|
|
4242
|
-
"name": "modalSize",
|
|
4243
|
-
"attribute": "modalSize",
|
|
4244
|
-
"type": "UUIModalSidebarSize",
|
|
4245
|
-
"default": "\"small\""
|
|
4246
|
-
}
|
|
4247
|
-
],
|
|
4248
|
-
"events": [
|
|
4249
|
-
{
|
|
4250
|
-
"name": "change"
|
|
4251
|
-
}
|
|
4252
|
-
]
|
|
4253
|
-
},
|
|
4254
4190
|
{
|
|
4255
4191
|
"name": "umb-menu-item-base",
|
|
4256
4192
|
"path": "./../../src/backoffice/shared/components/menu/menu-item-base/menu-item-base.element.ts",
|
|
@@ -4834,18 +4770,19 @@
|
|
|
4834
4770
|
"attributes": [
|
|
4835
4771
|
{
|
|
4836
4772
|
"name": "alias",
|
|
4837
|
-
"type": "string"
|
|
4773
|
+
"type": "string | undefined"
|
|
4838
4774
|
},
|
|
4839
4775
|
{
|
|
4840
|
-
"name": "selectable"
|
|
4841
|
-
"type": "boolean"
|
|
4776
|
+
"name": "selectable"
|
|
4842
4777
|
},
|
|
4843
4778
|
{
|
|
4844
|
-
"name": "selection"
|
|
4845
|
-
"type": "string[]"
|
|
4779
|
+
"name": "selection"
|
|
4846
4780
|
},
|
|
4847
4781
|
{
|
|
4848
|
-
"name": "multiple"
|
|
4782
|
+
"name": "multiple"
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
"name": "hide-tree-root",
|
|
4849
4786
|
"type": "boolean"
|
|
4850
4787
|
}
|
|
4851
4788
|
],
|
|
@@ -4853,27 +4790,24 @@
|
|
|
4853
4790
|
{
|
|
4854
4791
|
"name": "alias",
|
|
4855
4792
|
"attribute": "alias",
|
|
4856
|
-
"type": "string"
|
|
4793
|
+
"type": "string | undefined"
|
|
4857
4794
|
},
|
|
4858
4795
|
{
|
|
4859
4796
|
"name": "selectable",
|
|
4860
|
-
"attribute": "selectable"
|
|
4861
|
-
"type": "boolean"
|
|
4797
|
+
"attribute": "selectable"
|
|
4862
4798
|
},
|
|
4863
4799
|
{
|
|
4864
4800
|
"name": "selection",
|
|
4865
|
-
"attribute": "selection"
|
|
4866
|
-
"type": "string[]"
|
|
4801
|
+
"attribute": "selection"
|
|
4867
4802
|
},
|
|
4868
4803
|
{
|
|
4869
4804
|
"name": "multiple",
|
|
4870
|
-
"attribute": "multiple"
|
|
4871
|
-
|
|
4872
|
-
}
|
|
4873
|
-
],
|
|
4874
|
-
"events": [
|
|
4805
|
+
"attribute": "multiple"
|
|
4806
|
+
},
|
|
4875
4807
|
{
|
|
4876
|
-
"name": "
|
|
4808
|
+
"name": "hideTreeRoot",
|
|
4809
|
+
"attribute": "hide-tree-root",
|
|
4810
|
+
"type": "boolean"
|
|
4877
4811
|
}
|
|
4878
4812
|
]
|
|
4879
4813
|
},
|
|
@@ -7496,6 +7430,66 @@
|
|
|
7496
7430
|
}
|
|
7497
7431
|
]
|
|
7498
7432
|
},
|
|
7433
|
+
{
|
|
7434
|
+
"name": "umb-input-user-group",
|
|
7435
|
+
"path": "./../../src/backoffice/users/user-groups/components/input-user-group/input-user-group.element.ts",
|
|
7436
|
+
"attributes": [
|
|
7437
|
+
{
|
|
7438
|
+
"name": "value",
|
|
7439
|
+
"type": "string[]",
|
|
7440
|
+
"default": "[]"
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"name": "multiple",
|
|
7444
|
+
"type": "boolean",
|
|
7445
|
+
"default": "true"
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"name": "modalType",
|
|
7449
|
+
"default": "\"sidebar\""
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
"name": "modalSize",
|
|
7453
|
+
"type": "UUIModalSidebarSize",
|
|
7454
|
+
"default": "\"small\""
|
|
7455
|
+
}
|
|
7456
|
+
],
|
|
7457
|
+
"properties": [
|
|
7458
|
+
{
|
|
7459
|
+
"name": "styles",
|
|
7460
|
+
"type": "CSSResult[]",
|
|
7461
|
+
"default": "[\"UUITextStyles\",null]"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"name": "value",
|
|
7465
|
+
"attribute": "value",
|
|
7466
|
+
"type": "string[]",
|
|
7467
|
+
"default": "[]"
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
"name": "multiple",
|
|
7471
|
+
"attribute": "multiple",
|
|
7472
|
+
"type": "boolean",
|
|
7473
|
+
"default": "true"
|
|
7474
|
+
},
|
|
7475
|
+
{
|
|
7476
|
+
"name": "modalType",
|
|
7477
|
+
"attribute": "modalType",
|
|
7478
|
+
"default": "\"sidebar\""
|
|
7479
|
+
},
|
|
7480
|
+
{
|
|
7481
|
+
"name": "modalSize",
|
|
7482
|
+
"attribute": "modalSize",
|
|
7483
|
+
"type": "UUIModalSidebarSize",
|
|
7484
|
+
"default": "\"small\""
|
|
7485
|
+
}
|
|
7486
|
+
],
|
|
7487
|
+
"events": [
|
|
7488
|
+
{
|
|
7489
|
+
"name": "change"
|
|
7490
|
+
}
|
|
7491
|
+
]
|
|
7492
|
+
},
|
|
7499
7493
|
{
|
|
7500
7494
|
"name": "umb-user-group-picker-modal",
|
|
7501
7495
|
"path": "./../../src/backoffice/users/user-groups/modals/user-group-picker/user-group-picker-modal.element.ts",
|
package/extensions-registry.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ interface MetaEntityAction {
|
|
|
126
126
|
repositoryAlias: string;
|
|
127
127
|
}
|
|
128
128
|
interface ConditionsEntityAction {
|
|
129
|
-
|
|
129
|
+
entityTypes: Array<string>;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -383,7 +383,7 @@ interface ManifestTreeItem extends ManifestElement<UmbTreeItemExtensionElement>
|
|
|
383
383
|
conditions: ConditionsTreeItem;
|
|
384
384
|
}
|
|
385
385
|
interface ConditionsTreeItem {
|
|
386
|
-
|
|
386
|
+
entityTypes: Array<string>;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
interface ManifestUserProfileApp extends ManifestElement {
|
package/id.d.ts
ADDED
package/modal.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
|
9
9
|
import { Params } from '@umbraco-cms/backoffice/router';
|
|
10
10
|
import { UmbModalToken as UmbModalToken$1, UmbModalConfig as UmbModalConfig$1, UmbPickerModalData as UmbPickerModalData$1 } from '@umbraco-cms/backoffice/modal';
|
|
11
11
|
import { LanguageResponseModel, UserResponseModel, FolderReponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
12
|
-
import { UserDetails } from '@umbraco-cms/backoffice/models';
|
|
13
12
|
|
|
14
13
|
declare class UmbSearchModalElement extends LitElement {
|
|
15
14
|
#private;
|
|
@@ -210,10 +209,10 @@ declare const UMB_CONTEXT_DEBUGGER_MODAL: UmbModalToken$1<UmbContextDebuggerModa
|
|
|
210
209
|
|
|
211
210
|
interface UmbDocumentPickerModalData {
|
|
212
211
|
multiple?: boolean;
|
|
213
|
-
selection?: Array<string>;
|
|
212
|
+
selection?: Array<string | null>;
|
|
214
213
|
}
|
|
215
214
|
interface UmbDocumentPickerModalResult {
|
|
216
|
-
selection: Array<string>;
|
|
215
|
+
selection: Array<string | null>;
|
|
217
216
|
}
|
|
218
217
|
declare const UMB_DOCUMENT_PICKER_MODAL: UmbModalToken$1<UmbDocumentPickerModalData, UmbDocumentPickerModalResult>;
|
|
219
218
|
|
|
@@ -222,7 +221,7 @@ interface UmbDocumentTypePickerModalData {
|
|
|
222
221
|
selection?: Array<string>;
|
|
223
222
|
}
|
|
224
223
|
interface UmbDocumentTypePickerModalResult {
|
|
225
|
-
selection: Array<string>;
|
|
224
|
+
selection: Array<string | null>;
|
|
226
225
|
}
|
|
227
226
|
declare const UMB_DOCUMENT_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult>;
|
|
228
227
|
|
|
@@ -328,7 +327,7 @@ interface UmbMediaPickerModalData {
|
|
|
328
327
|
selection: Array<string>;
|
|
329
328
|
}
|
|
330
329
|
interface UmbMediaPickerModalResult {
|
|
331
|
-
selection: Array<string>;
|
|
330
|
+
selection: Array<string | null>;
|
|
332
331
|
}
|
|
333
332
|
declare const UMB_MEDIA_PICKER_MODAL: UmbModalToken$1<UmbMediaPickerModalData, UmbMediaPickerModalResult>;
|
|
334
333
|
|
|
@@ -375,14 +374,14 @@ declare const UMB_TEMPLATE_MODAL: UmbModalToken$1<UmbTemplateModalData, UmbTempl
|
|
|
375
374
|
|
|
376
375
|
interface UmbTemplatePickerModalData {
|
|
377
376
|
multiple: boolean;
|
|
378
|
-
selection: string
|
|
377
|
+
selection: Array<string | null>;
|
|
379
378
|
}
|
|
380
379
|
interface UmbTemplatePickerModalResult {
|
|
381
|
-
selection: string
|
|
380
|
+
selection: Array<string | null>;
|
|
382
381
|
}
|
|
383
382
|
declare const UMB_TEMPLATE_PICKER_MODAL: UmbModalToken$1<UmbTemplatePickerModalData, UmbTemplatePickerModalResult>;
|
|
384
383
|
|
|
385
|
-
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<
|
|
384
|
+
declare const UMB_USER_GROUP_PICKER_MODAL: UmbModalToken$1<UmbPickerModalData$1<any>, unknown>;
|
|
386
385
|
|
|
387
386
|
type UmbUserPickerModalData = UmbPickerModalData$1<UserResponseModel>;
|
|
388
387
|
interface UmbUserPickerModalResult {
|
|
@@ -400,21 +399,21 @@ interface UmbFolderModalResult {
|
|
|
400
399
|
declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
|
|
401
400
|
|
|
402
401
|
interface UmbDataTypePickerModalData {
|
|
403
|
-
selection?: Array<string>;
|
|
402
|
+
selection?: Array<string | null>;
|
|
404
403
|
multiple?: boolean;
|
|
405
404
|
}
|
|
406
405
|
interface UmbDataTypePickerModalResult {
|
|
407
|
-
selection: Array<string>;
|
|
406
|
+
selection: Array<string | null>;
|
|
408
407
|
}
|
|
409
408
|
declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbDataTypePickerModalResult>;
|
|
410
409
|
|
|
411
410
|
interface UmbPickerModalData<T> {
|
|
412
411
|
multiple: boolean;
|
|
413
|
-
selection: Array<string>;
|
|
412
|
+
selection: Array<string | null>;
|
|
414
413
|
filter?: (item: T) => boolean;
|
|
415
414
|
}
|
|
416
415
|
interface UmbPickerModalResult {
|
|
417
|
-
selection: Array<string>;
|
|
416
|
+
selection: Array<string | null>;
|
|
418
417
|
}
|
|
419
418
|
|
|
420
419
|
export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DATA_TYPE_PICKER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult, UmbUserPickerModalData, UmbUserPickerModalResult };
|
package/models.d.ts
CHANGED
|
@@ -1,85 +1,13 @@
|
|
|
1
|
-
import { EntityTreeItemResponseModel, FolderTreeItemResponseModel, PackageManifestResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
|
2
|
-
|
|
3
1
|
type HTMLElementConstructor<T = HTMLElement> = new (...args: any[]) => T;
|
|
4
2
|
type ClassConstructor<T> = new (...args: any[]) => T;
|
|
5
|
-
interface Entity {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
type: string;
|
|
10
|
-
hasChildren: boolean;
|
|
11
|
-
parentId: string | null;
|
|
12
|
-
}
|
|
13
3
|
/** Tried to find a common base of our entities — used by Entity Workspace Context */
|
|
14
|
-
type
|
|
4
|
+
type UmbEntityBase = {
|
|
15
5
|
id?: string;
|
|
16
6
|
name?: string;
|
|
17
7
|
};
|
|
18
|
-
interface
|
|
19
|
-
type: 'user';
|
|
20
|
-
}
|
|
21
|
-
type UserStatus = 'enabled' | 'inactive' | 'invited' | 'disabled';
|
|
22
|
-
interface UserDetails extends UserEntity {
|
|
23
|
-
email: string;
|
|
24
|
-
status: UserStatus;
|
|
25
|
-
language: string;
|
|
26
|
-
lastLoginDate?: string;
|
|
27
|
-
lastLockoutDate?: string;
|
|
28
|
-
lastPasswordChangeDate?: string;
|
|
29
|
-
updateDate: string;
|
|
30
|
-
createDate: string;
|
|
31
|
-
failedLoginAttempts: number;
|
|
32
|
-
userGroups: Array<string>;
|
|
33
|
-
contentStartNodes: Array<string>;
|
|
34
|
-
mediaStartNodes: Array<string>;
|
|
35
|
-
}
|
|
36
|
-
interface UserGroupEntity extends Entity {
|
|
37
|
-
type: 'user-group';
|
|
38
|
-
}
|
|
39
|
-
interface UserGroupDetails extends UserGroupEntity {
|
|
40
|
-
sections: Array<string>;
|
|
41
|
-
contentStartNode?: string;
|
|
42
|
-
mediaStartNode?: string;
|
|
43
|
-
permissions: Array<string>;
|
|
44
|
-
}
|
|
45
|
-
interface MemberTypeDetails extends EntityTreeItemResponseModel {
|
|
46
|
-
id: string;
|
|
47
|
-
alias: string;
|
|
48
|
-
properties: [];
|
|
49
|
-
}
|
|
50
|
-
interface MediaTypeDetails extends FolderTreeItemResponseModel {
|
|
51
|
-
id: string;
|
|
52
|
-
alias: string;
|
|
53
|
-
properties: [];
|
|
54
|
-
}
|
|
55
|
-
interface MemberGroupDetails extends EntityTreeItemResponseModel {
|
|
56
|
-
id: string;
|
|
57
|
-
}
|
|
58
|
-
interface MemberDetails extends EntityTreeItemResponseModel {
|
|
59
|
-
id: string;
|
|
60
|
-
}
|
|
61
|
-
interface DocumentBlueprintDetails {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
type: 'document-blueprint';
|
|
65
|
-
properties: Array<any>;
|
|
66
|
-
data: Array<any>;
|
|
67
|
-
icon: string;
|
|
68
|
-
documentTypeKey: string;
|
|
69
|
-
}
|
|
70
|
-
interface SwatchDetails {
|
|
8
|
+
interface UmbSwatchDetails {
|
|
71
9
|
label: string;
|
|
72
10
|
value: string;
|
|
73
11
|
}
|
|
74
|
-
type UmbPackage = PackageManifestResponseModel;
|
|
75
|
-
type PackageManifestResponse = UmbPackage[];
|
|
76
|
-
type UmbPackageWithMigrationStatus = UmbPackage & {
|
|
77
|
-
hasPendingMigrations: boolean;
|
|
78
|
-
};
|
|
79
|
-
interface UmbFilterModel {
|
|
80
|
-
skip?: number;
|
|
81
|
-
take?: number;
|
|
82
|
-
filter?: string;
|
|
83
|
-
}
|
|
84
12
|
|
|
85
|
-
export {
|
|
13
|
+
export { ClassConstructor, HTMLElementConstructor, UmbEntityBase, UmbSwatchDetails };
|