@umbraco-cms/backoffice 1.0.0-next.7db274e5 → 1.0.0-next.8afd0d0c
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 +333 -40
- package/collection.d.ts +9 -3
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +2 -2
- package/custom-elements.json +4489 -4492
- package/extensions-registry.d.ts +2 -2
- 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 +132 -0
- package/umbraco-package-schema.json +18 -12
- package/variant.d.ts +21 -0
- package/vscode-html-custom-data.json +1939 -1951
- package/workspace.d.ts +45 -1
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/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 };
|
package/package.json
CHANGED
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,132 @@
|
|
|
1
|
+
import * as _umbraco_cms_backoffice_backend_api from '@umbraco-cms/backoffice/backend-api';
|
|
2
|
+
import { TreeItemPresentationModel, ProblemDetailsModel } from '@umbraco-cms/backoffice/backend-api';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
6
|
+
import { UmbPagedData as UmbPagedData$1, UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
|
|
7
|
+
import { UmbTreeContextBase as UmbTreeContextBase$1 } from '@umbraco-cms/backoffice/tree';
|
|
8
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
9
|
+
|
|
10
|
+
interface UmbTreeContext<TreeItemType extends TreeItemPresentationModel> {
|
|
11
|
+
readonly selectable: Observable<boolean>;
|
|
12
|
+
readonly selection: Observable<Array<string | null>>;
|
|
13
|
+
setSelectable(value: boolean): void;
|
|
14
|
+
setMultiple(value: boolean): void;
|
|
15
|
+
setSelection(value: Array<string | null>): void;
|
|
16
|
+
select(unique: string | null): void;
|
|
17
|
+
deselect(unique: string | null): void;
|
|
18
|
+
requestChildrenOf: (parentUnique: string | null) => Promise<{
|
|
19
|
+
data?: UmbPagedData$1<TreeItemType>;
|
|
20
|
+
error?: ProblemDetailsModel;
|
|
21
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
declare class UmbTreeContextBase<TreeItemType extends TreeItemPresentationModel> implements UmbTreeContext<TreeItemType> {
|
|
25
|
+
#private;
|
|
26
|
+
host: UmbControllerHostElement;
|
|
27
|
+
readonly selectable: Observable<boolean>;
|
|
28
|
+
readonly multiple: Observable<boolean>;
|
|
29
|
+
readonly selection: Observable<(string | null)[]>;
|
|
30
|
+
repository?: UmbTreeRepository<TreeItemType>;
|
|
31
|
+
constructor(host: UmbControllerHostElement);
|
|
32
|
+
setTreeAlias(treeAlias?: string): Promise<void>;
|
|
33
|
+
getTreeAlias(): string | undefined;
|
|
34
|
+
setSelectable(value: boolean): void;
|
|
35
|
+
getSelectable(): boolean;
|
|
36
|
+
setMultiple(value: boolean): void;
|
|
37
|
+
getMultiple(): boolean;
|
|
38
|
+
setSelection(value: Array<string | null>): void;
|
|
39
|
+
getSelection(): (string | null)[];
|
|
40
|
+
select(unique: string | null): void;
|
|
41
|
+
deselect(unique: string | null): void;
|
|
42
|
+
requestTreeRoot(): Promise<{
|
|
43
|
+
data?: UmbTreeRootEntityModel | undefined;
|
|
44
|
+
error?: ProblemDetailsModel | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
requestRootItems(): Promise<{
|
|
47
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
48
|
+
error?: ProblemDetailsModel | undefined;
|
|
49
|
+
asObservable?: (() => Observable<TreeItemType[]>) | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
requestChildrenOf(parentUnique: string | null): Promise<{
|
|
52
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
53
|
+
error?: ProblemDetailsModel | undefined;
|
|
54
|
+
asObservable?: (() => Observable<TreeItemType[]>) | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
rootItems(): Promise<Observable<TreeItemType[]>>;
|
|
57
|
+
childrenOf(parentUnique: string | null): Promise<Observable<TreeItemType[]>>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface UmbPagedData<T> {
|
|
61
|
+
total: number;
|
|
62
|
+
items: Array<T>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface UmbTreeItemContext<TreeItemType extends TreeItemPresentationModel> {
|
|
66
|
+
host: UmbControllerHostElement;
|
|
67
|
+
unique?: string | null;
|
|
68
|
+
type?: string;
|
|
69
|
+
treeItem: Observable<TreeItemType | undefined>;
|
|
70
|
+
hasChildren: Observable<boolean>;
|
|
71
|
+
isLoading: Observable<boolean>;
|
|
72
|
+
isSelectable: Observable<boolean>;
|
|
73
|
+
isSelected: Observable<boolean>;
|
|
74
|
+
isActive: Observable<boolean>;
|
|
75
|
+
hasActions: Observable<boolean>;
|
|
76
|
+
path: Observable<string>;
|
|
77
|
+
setTreeItem(treeItem: TreeItemType | undefined): void;
|
|
78
|
+
requestChildren(): Promise<{
|
|
79
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
80
|
+
error?: ProblemDetailsModel | undefined;
|
|
81
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
82
|
+
}>;
|
|
83
|
+
toggleContextMenu(): void;
|
|
84
|
+
select(): void;
|
|
85
|
+
deselect(): void;
|
|
86
|
+
constructPath(pathname: string, entityType: string, unique: string): string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type UmbTreeItemUniqueFunction<TreeItemType extends TreeItemPresentationModel> = (x: TreeItemType) => string | null | undefined;
|
|
90
|
+
declare class UmbTreeItemContextBase<TreeItemType extends TreeItemPresentationModel> implements UmbTreeItemContext<TreeItemType> {
|
|
91
|
+
#private;
|
|
92
|
+
host: UmbControllerHostElement;
|
|
93
|
+
unique?: string | null;
|
|
94
|
+
type?: string;
|
|
95
|
+
treeItem: rxjs.Observable<TreeItemType | undefined>;
|
|
96
|
+
hasChildren: rxjs.Observable<boolean>;
|
|
97
|
+
isLoading: rxjs.Observable<boolean>;
|
|
98
|
+
isSelectable: rxjs.Observable<boolean>;
|
|
99
|
+
isSelected: rxjs.Observable<boolean>;
|
|
100
|
+
isActive: rxjs.Observable<boolean>;
|
|
101
|
+
hasActions: rxjs.Observable<boolean>;
|
|
102
|
+
path: rxjs.Observable<string>;
|
|
103
|
+
treeContext?: UmbTreeContextBase$1<TreeItemType>;
|
|
104
|
+
constructor(host: UmbControllerHostElement, getUniqueFunction: UmbTreeItemUniqueFunction<TreeItemType>);
|
|
105
|
+
setTreeItem(treeItem: TreeItemType | undefined): void;
|
|
106
|
+
requestChildren(): Promise<{
|
|
107
|
+
data?: UmbPagedData<TreeItemType> | undefined;
|
|
108
|
+
error?: _umbraco_cms_backoffice_backend_api.ProblemDetailsModel | undefined;
|
|
109
|
+
asObservable?: (() => rxjs.Observable<TreeItemType[]>) | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
toggleContextMenu(): void;
|
|
112
|
+
select(): void;
|
|
113
|
+
deselect(): void;
|
|
114
|
+
getTreeItem(): TreeItemType | undefined;
|
|
115
|
+
constructPath(pathname: string, entityType: string, unique: string | null): string;
|
|
116
|
+
}
|
|
117
|
+
declare const UMB_TREE_ITEM_CONTEXT_TOKEN: UmbContextToken<UmbTreeItemContext<any>>;
|
|
118
|
+
|
|
119
|
+
interface UmbTreeRootModel {
|
|
120
|
+
type: string;
|
|
121
|
+
name: string;
|
|
122
|
+
hasChildren: boolean;
|
|
123
|
+
icon?: string;
|
|
124
|
+
}
|
|
125
|
+
interface UmbTreeRootEntityModel extends UmbTreeRootModel {
|
|
126
|
+
id: string | null;
|
|
127
|
+
}
|
|
128
|
+
interface UmbTreeRootFileSystemModel extends UmbTreeRootModel {
|
|
129
|
+
path: string | null;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { UMB_TREE_ITEM_CONTEXT_TOKEN, UmbTreeContext, UmbTreeContextBase, UmbTreeItemContext, UmbTreeItemContextBase, UmbTreeItemUniqueFunction, 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@556": {
|
|
3239
3245
|
"type": "string"
|
|
3240
3246
|
},
|
|
3241
3247
|
"onloading": {
|
|
@@ -3267,7 +3273,7 @@
|
|
|
3267
3273
|
}
|
|
3268
3274
|
},
|
|
3269
3275
|
"required": [
|
|
3270
|
-
"__@toStringTag@
|
|
3276
|
+
"__@toStringTag@556",
|
|
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@556": {
|
|
18261
18267
|
"type": "string"
|
|
18262
18268
|
}
|
|
18263
18269
|
},
|
|
18264
18270
|
"required": [
|
|
18265
|
-
"__@toStringTag@
|
|
18271
|
+
"__@toStringTag@556"
|
|
18266
18272
|
],
|
|
18267
18273
|
"type": "object"
|
|
18268
18274
|
},
|
|
18269
18275
|
"Promise<ServiceWorkerRegistration>": {
|
|
18270
18276
|
"properties": {
|
|
18271
|
-
"__@toStringTag@
|
|
18277
|
+
"__@toStringTag@556": {
|
|
18272
18278
|
"type": "string"
|
|
18273
18279
|
}
|
|
18274
18280
|
},
|
|
18275
18281
|
"required": [
|
|
18276
|
-
"__@toStringTag@
|
|
18282
|
+
"__@toStringTag@556"
|
|
18277
18283
|
],
|
|
18278
18284
|
"type": "object"
|
|
18279
18285
|
},
|
package/variant.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare class UmbVariantId {
|
|
2
|
+
static Create(variantData: {
|
|
3
|
+
culture?: string | null;
|
|
4
|
+
segment?: string | null;
|
|
5
|
+
}): UmbVariantId;
|
|
6
|
+
readonly culture: string | null;
|
|
7
|
+
readonly segment: string | null;
|
|
8
|
+
constructor(variantData: {
|
|
9
|
+
culture?: string | null;
|
|
10
|
+
segment?: string | null;
|
|
11
|
+
});
|
|
12
|
+
compare(obj: {
|
|
13
|
+
culture?: string | null;
|
|
14
|
+
segment?: string | null;
|
|
15
|
+
}): boolean;
|
|
16
|
+
equal(variantId: UmbVariantId): boolean;
|
|
17
|
+
toString(): string;
|
|
18
|
+
toDifferencesString(variantId: UmbVariantId): string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { UmbVariantId };
|