@umbraco-cms/backoffice 1.0.0-next.7db274e5 → 1.0.0-next.84b71a2f
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/README.md +2 -3
- package/backend-api.d.ts +333 -40
- package/collection.d.ts +10 -4
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +44 -4
- package/{controller.d.ts → controller-api.d.ts} +2 -3
- package/custom-elements.json +5177 -4519
- package/data-type.d.ts +13 -0
- package/{element.d.ts → element-api.d.ts} +2 -2
- package/entity-action.d.ts +1 -1
- package/extension-api.d.ts +200 -0
- package/{extensions-registry.d.ts → extension-registry.d.ts} +14 -140
- package/modal.d.ts +63 -63
- package/models.d.ts +8 -76
- package/observable-api.d.ts +1 -1
- package/package.json +2 -2
- package/picker-input.d.ts +4 -3
- package/repository.d.ts +38 -32
- package/resources.d.ts +2 -15
- package/router.d.ts +1 -1
- package/section.d.ts +29 -0
- package/sorter.d.ts +1 -1
- package/store.d.ts +2 -2
- package/tree.d.ts +136 -0
- package/umbraco-package-schema.json +34 -28
- package/utils.d.ts +29 -1
- package/variant.d.ts +21 -0
- package/vscode-html-custom-data.json +2272 -2035
- package/workspace.d.ts +46 -2
- package/extensions-api.d.ts +0 -67
package/tree.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
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-api';
|
|
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
|
+
getSelectable(): boolean;
|
|
15
|
+
setMultiple(value: boolean): void;
|
|
16
|
+
getMultiple(): boolean;
|
|
17
|
+
setSelection(value: Array<string | null>): void;
|
|
18
|
+
getSelection(): Array<string | null>;
|
|
19
|
+
select(unique: string | null): void;
|
|
20
|
+
deselect(unique: string | null): void;
|
|
21
|
+
requestChildrenOf: (parentUnique: string | null) => Promise<{
|
|
22
|
+
data?: UmbPagedData$1<TreeItemType>;
|
|
23
|
+
error?: ProblemDetailsModel;
|
|
24
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
declare class UmbTreeContextBase<TreeItemType extends TreeItemPresentationModel> implements UmbTreeContext<TreeItemType> {
|
|
28
|
+
#private;
|
|
29
|
+
host: UmbControllerHostElement;
|
|
30
|
+
readonly selectable: Observable<boolean>;
|
|
31
|
+
readonly multiple: Observable<boolean>;
|
|
32
|
+
readonly selection: Observable<(string | null)[]>;
|
|
33
|
+
repository?: UmbTreeRepository<TreeItemType>;
|
|
34
|
+
selectableFilter?: (item: TreeItemType) => boolean;
|
|
35
|
+
constructor(host: UmbControllerHostElement);
|
|
36
|
+
setTreeAlias(treeAlias?: string): Promise<void>;
|
|
37
|
+
getTreeAlias(): string | undefined;
|
|
38
|
+
setSelectable(value: boolean): void;
|
|
39
|
+
getSelectable(): boolean;
|
|
40
|
+
setMultiple(value: boolean): void;
|
|
41
|
+
getMultiple(): boolean;
|
|
42
|
+
setSelection(value: Array<string | null>): void;
|
|
43
|
+
getSelection(): (string | null)[];
|
|
44
|
+
select(unique: string | null): void;
|
|
45
|
+
deselect(unique: string | null): void;
|
|
46
|
+
requestTreeRoot(): Promise<{
|
|
47
|
+
data?: UmbTreeRootEntityModel | undefined;
|
|
48
|
+
error?: ProblemDetailsModel | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
requestRootItems(): Promise<{
|
|
51
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
52
|
+
error?: ProblemDetailsModel | undefined;
|
|
53
|
+
asObservable?: (() => Observable<TreeItemType[]>) | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
requestChildrenOf(parentUnique: string | null): Promise<{
|
|
56
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
57
|
+
error?: ProblemDetailsModel | undefined;
|
|
58
|
+
asObservable?: (() => Observable<TreeItemType[]>) | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
rootItems(): Promise<Observable<TreeItemType[]>>;
|
|
61
|
+
childrenOf(parentUnique: string | null): Promise<Observable<TreeItemType[]>>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface UmbPagedData<T> {
|
|
65
|
+
total: number;
|
|
66
|
+
items: Array<T>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface UmbTreeItemContext<TreeItemType extends TreeItemPresentationModel> {
|
|
70
|
+
host: UmbControllerHostElement;
|
|
71
|
+
unique?: string | null;
|
|
72
|
+
type?: string;
|
|
73
|
+
treeItem: Observable<TreeItemType | undefined>;
|
|
74
|
+
hasChildren: Observable<boolean>;
|
|
75
|
+
isLoading: Observable<boolean>;
|
|
76
|
+
isSelectable: Observable<boolean>;
|
|
77
|
+
isSelected: Observable<boolean>;
|
|
78
|
+
isActive: Observable<boolean>;
|
|
79
|
+
hasActions: Observable<boolean>;
|
|
80
|
+
path: Observable<string>;
|
|
81
|
+
setTreeItem(treeItem: TreeItemType | undefined): void;
|
|
82
|
+
requestChildren(): Promise<{
|
|
83
|
+
data?: UmbPagedData$1<TreeItemType> | undefined;
|
|
84
|
+
error?: ProblemDetailsModel | undefined;
|
|
85
|
+
asObservable?: () => Observable<TreeItemType[]>;
|
|
86
|
+
}>;
|
|
87
|
+
toggleContextMenu(): void;
|
|
88
|
+
select(): void;
|
|
89
|
+
deselect(): void;
|
|
90
|
+
constructPath(pathname: string, entityType: string, unique: string): string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type UmbTreeItemUniqueFunction<TreeItemType extends TreeItemPresentationModel> = (x: TreeItemType) => string | null | undefined;
|
|
94
|
+
declare class UmbTreeItemContextBase<TreeItemType extends TreeItemPresentationModel> implements UmbTreeItemContext<TreeItemType> {
|
|
95
|
+
#private;
|
|
96
|
+
host: UmbControllerHostElement;
|
|
97
|
+
unique?: string | null;
|
|
98
|
+
type?: string;
|
|
99
|
+
treeItem: rxjs.Observable<TreeItemType | undefined>;
|
|
100
|
+
hasChildren: rxjs.Observable<boolean>;
|
|
101
|
+
isLoading: rxjs.Observable<boolean>;
|
|
102
|
+
isSelectable: rxjs.Observable<boolean>;
|
|
103
|
+
isSelected: rxjs.Observable<boolean>;
|
|
104
|
+
isActive: rxjs.Observable<boolean>;
|
|
105
|
+
hasActions: rxjs.Observable<boolean>;
|
|
106
|
+
path: rxjs.Observable<string>;
|
|
107
|
+
treeContext?: UmbTreeContextBase$1<TreeItemType>;
|
|
108
|
+
constructor(host: UmbControllerHostElement, getUniqueFunction: UmbTreeItemUniqueFunction<TreeItemType>);
|
|
109
|
+
setTreeItem(treeItem: TreeItemType | undefined): void;
|
|
110
|
+
requestChildren(): Promise<{
|
|
111
|
+
data?: UmbPagedData<TreeItemType> | undefined;
|
|
112
|
+
error?: _umbraco_cms_backoffice_backend_api.ProblemDetailsModel | undefined;
|
|
113
|
+
asObservable?: (() => rxjs.Observable<TreeItemType[]>) | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
toggleContextMenu(): void;
|
|
116
|
+
select(): void;
|
|
117
|
+
deselect(): void;
|
|
118
|
+
getTreeItem(): TreeItemType | undefined;
|
|
119
|
+
constructPath(pathname: string, entityType: string, unique: string | null): string;
|
|
120
|
+
}
|
|
121
|
+
declare const UMB_TREE_ITEM_CONTEXT_TOKEN: UmbContextToken<UmbTreeItemContext<any>>;
|
|
122
|
+
|
|
123
|
+
interface UmbTreeRootModel {
|
|
124
|
+
type: string;
|
|
125
|
+
name: string;
|
|
126
|
+
hasChildren: boolean;
|
|
127
|
+
icon?: string;
|
|
128
|
+
}
|
|
129
|
+
interface UmbTreeRootEntityModel extends UmbTreeRootModel {
|
|
130
|
+
id: string | null;
|
|
131
|
+
}
|
|
132
|
+
interface UmbTreeRootFileSystemModel extends UmbTreeRootModel {
|
|
133
|
+
path: string | null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
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@689": {
|
|
3239
3245
|
"type": "string"
|
|
3240
3246
|
},
|
|
3241
3247
|
"onloading": {
|
|
@@ -3267,7 +3273,7 @@
|
|
|
3267
3273
|
}
|
|
3268
3274
|
},
|
|
3269
3275
|
"required": [
|
|
3270
|
-
"__@toStringTag@
|
|
3276
|
+
"__@toStringTag@689",
|
|
3271
3277
|
"onloading",
|
|
3272
3278
|
"onloadingdone",
|
|
3273
3279
|
"onloadingerror",
|
|
@@ -15284,7 +15290,7 @@
|
|
|
15284
15290
|
],
|
|
15285
15291
|
"type": "object"
|
|
15286
15292
|
},
|
|
15287
|
-
"
|
|
15293
|
+
"ManifestEntryPoint": {
|
|
15288
15294
|
"description": "This type of extension gives full control and will simply load the specified JS file\nYou could have custom logic to decide which extensions to load/register by using extensionRegistry",
|
|
15289
15295
|
"properties": {
|
|
15290
15296
|
"alias": {
|
|
@@ -16455,20 +16461,17 @@
|
|
|
16455
16461
|
},
|
|
16456
16462
|
"ManifestTypes": {
|
|
16457
16463
|
"anyOf": [
|
|
16458
|
-
{
|
|
16459
|
-
"$ref": "#/definitions/ManifestCollectionView"
|
|
16460
|
-
},
|
|
16461
16464
|
{
|
|
16462
16465
|
"$ref": "#/definitions/ManifestBase"
|
|
16463
16466
|
},
|
|
16464
16467
|
{
|
|
16465
|
-
"$ref": "#/definitions/
|
|
16468
|
+
"$ref": "#/definitions/ManifestEntryPoint"
|
|
16466
16469
|
},
|
|
16467
16470
|
{
|
|
16468
|
-
"$ref": "#/definitions/
|
|
16471
|
+
"$ref": "#/definitions/ManifestCollectionView"
|
|
16469
16472
|
},
|
|
16470
16473
|
{
|
|
16471
|
-
"$ref": "#/definitions/
|
|
16474
|
+
"$ref": "#/definitions/ManifestDashboard"
|
|
16472
16475
|
},
|
|
16473
16476
|
{
|
|
16474
16477
|
"$ref": "#/definitions/ManifestDashboardCollection"
|
|
@@ -16480,7 +16483,7 @@
|
|
|
16480
16483
|
"$ref": "#/definitions/ManifestEntityBulkAction"
|
|
16481
16484
|
},
|
|
16482
16485
|
{
|
|
16483
|
-
"$ref": "#/definitions/
|
|
16486
|
+
"$ref": "#/definitions/ManifestExternalLoginProvider"
|
|
16484
16487
|
},
|
|
16485
16488
|
{
|
|
16486
16489
|
"$ref": "#/definitions/ManifestHeaderApp"
|
|
@@ -16492,10 +16495,10 @@
|
|
|
16492
16495
|
"$ref": "#/definitions/ManifestHealthCheck"
|
|
16493
16496
|
},
|
|
16494
16497
|
{
|
|
16495
|
-
"$ref": "#/definitions/
|
|
16498
|
+
"$ref": "#/definitions/ManifestMenu"
|
|
16496
16499
|
},
|
|
16497
16500
|
{
|
|
16498
|
-
"$ref": "#/definitions/
|
|
16501
|
+
"$ref": "#/definitions/ManifestMenuItem"
|
|
16499
16502
|
},
|
|
16500
16503
|
{
|
|
16501
16504
|
"$ref": "#/definitions/ManifestMenuItemTreeKind"
|
|
@@ -16510,10 +16513,10 @@
|
|
|
16510
16513
|
"$ref": "#/definitions/ManifestPropertyAction"
|
|
16511
16514
|
},
|
|
16512
16515
|
{
|
|
16513
|
-
"$ref": "#/definitions/
|
|
16516
|
+
"$ref": "#/definitions/ManifestPropertyEditorUI"
|
|
16514
16517
|
},
|
|
16515
16518
|
{
|
|
16516
|
-
"$ref": "#/definitions/
|
|
16519
|
+
"$ref": "#/definitions/ManifestPropertyEditorModel"
|
|
16517
16520
|
},
|
|
16518
16521
|
{
|
|
16519
16522
|
"$ref": "#/definitions/ManifestRepository"
|
|
@@ -16533,6 +16536,12 @@
|
|
|
16533
16536
|
{
|
|
16534
16537
|
"$ref": "#/definitions/ManifestStore"
|
|
16535
16538
|
},
|
|
16539
|
+
{
|
|
16540
|
+
"$ref": "#/definitions/ManifestTreeStore"
|
|
16541
|
+
},
|
|
16542
|
+
{
|
|
16543
|
+
"$ref": "#/definitions/ManifestItemStore"
|
|
16544
|
+
},
|
|
16536
16545
|
{
|
|
16537
16546
|
"$ref": "#/definitions/ManifestTheme"
|
|
16538
16547
|
},
|
|
@@ -16542,9 +16551,6 @@
|
|
|
16542
16551
|
{
|
|
16543
16552
|
"$ref": "#/definitions/ManifestTreeItem"
|
|
16544
16553
|
},
|
|
16545
|
-
{
|
|
16546
|
-
"$ref": "#/definitions/ManifestTreeStore"
|
|
16547
|
-
},
|
|
16548
16554
|
{
|
|
16549
16555
|
"$ref": "#/definitions/ManifestUserProfileApp"
|
|
16550
16556
|
},
|
|
@@ -18257,23 +18263,23 @@
|
|
|
18257
18263
|
},
|
|
18258
18264
|
"Promise<FontFaceSet>": {
|
|
18259
18265
|
"properties": {
|
|
18260
|
-
"__@toStringTag@
|
|
18266
|
+
"__@toStringTag@689": {
|
|
18261
18267
|
"type": "string"
|
|
18262
18268
|
}
|
|
18263
18269
|
},
|
|
18264
18270
|
"required": [
|
|
18265
|
-
"__@toStringTag@
|
|
18271
|
+
"__@toStringTag@689"
|
|
18266
18272
|
],
|
|
18267
18273
|
"type": "object"
|
|
18268
18274
|
},
|
|
18269
18275
|
"Promise<ServiceWorkerRegistration>": {
|
|
18270
18276
|
"properties": {
|
|
18271
|
-
"__@toStringTag@
|
|
18277
|
+
"__@toStringTag@689": {
|
|
18272
18278
|
"type": "string"
|
|
18273
18279
|
}
|
|
18274
18280
|
},
|
|
18275
18281
|
"required": [
|
|
18276
|
-
"__@toStringTag@
|
|
18282
|
+
"__@toStringTag@689"
|
|
18277
18283
|
],
|
|
18278
18284
|
"type": "object"
|
|
18279
18285
|
},
|
|
@@ -29377,6 +29383,7 @@
|
|
|
29377
29383
|
"type": "number"
|
|
29378
29384
|
},
|
|
29379
29385
|
"config": {
|
|
29386
|
+
"description": "Extends Array to add utility functions for accessing data type properties\nby alias, returning either the value or the complete DataTypePropertyPresentationModel object",
|
|
29380
29387
|
"items": {
|
|
29381
29388
|
"properties": {
|
|
29382
29389
|
"alias": {
|
|
@@ -30289,7 +30296,6 @@
|
|
|
30289
30296
|
"clientLeft",
|
|
30290
30297
|
"clientTop",
|
|
30291
30298
|
"clientWidth",
|
|
30292
|
-
"config",
|
|
30293
30299
|
"contentEditable",
|
|
30294
30300
|
"dataset",
|
|
30295
30301
|
"dir",
|
package/utils.d.ts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
|
|
1
3
|
declare function umbracoPath(path: string): string;
|
|
2
4
|
|
|
3
5
|
declare function buildUdi(entityType: string, guid: string): string;
|
|
4
6
|
declare function getKeyFromUdi(udi: string): string;
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
interface UmbSelectionManager {
|
|
9
|
+
selection: Observable<Array<string | null>>;
|
|
10
|
+
multiple: Observable<boolean>;
|
|
11
|
+
getSelection(): Array<string | null>;
|
|
12
|
+
setSelection(value: Array<string | null>): void;
|
|
13
|
+
getMultiple(): boolean;
|
|
14
|
+
setMultiple(value: boolean): void;
|
|
15
|
+
toggleSelect(unique: string | null): void;
|
|
16
|
+
select(unique: string | null): void;
|
|
17
|
+
deselect(unique: string | null): void;
|
|
18
|
+
isSelected(unique: string | null): boolean;
|
|
19
|
+
}
|
|
20
|
+
declare class UmbSelectionManagerBase implements UmbSelectionManager {
|
|
21
|
+
#private;
|
|
22
|
+
readonly selection: Observable<(string | null)[]>;
|
|
23
|
+
readonly multiple: Observable<boolean>;
|
|
24
|
+
getSelection(): (string | null)[];
|
|
25
|
+
setSelection(value: Array<string | null>): void;
|
|
26
|
+
getMultiple(): boolean;
|
|
27
|
+
setMultiple(value: boolean): void;
|
|
28
|
+
toggleSelect(unique: string | null): void;
|
|
29
|
+
select(unique: string | null): void;
|
|
30
|
+
deselect(unique: string | null): void;
|
|
31
|
+
isSelected(unique: string | null): boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { UmbSelectionManager, UmbSelectionManagerBase, buildUdi, getKeyFromUdi, umbracoPath };
|
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 };
|