@umbraco-cms/backoffice 1.0.0-next.de0ffca0 → 1.0.0-next.e8be58ec
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 +1023 -282
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +66 -6
- package/controller.d.ts +3 -2
- package/custom-elements.json +1761 -1247
- package/element.d.ts +5 -5
- package/entity-action.d.ts +19 -9
- package/extensions-api.d.ts +13 -12
- package/extensions-registry.d.ts +290 -88
- package/id.d.ts +6 -0
- package/modal.d.ts +50 -338
- package/models.d.ts +4 -71
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +75 -49
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/repository.d.ts +114 -44
- package/resources.d.ts +24 -15
- package/router.d.ts +263 -25
- package/section.d.ts +29 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +51 -56
- package/tree.d.ts +14 -0
- package/umbraco-package-schema.json +37755 -0
- package/utils.d.ts +1 -9
- package/vscode-html-custom-data.json +579 -446
- package/workspace.d.ts +40 -22
- package/property-editor.d.ts +0 -8
package/workspace.d.ts
CHANGED
|
@@ -1,40 +1,58 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
host: UmbControllerHostElement;
|
|
7
|
-
workspaceContext?: T;
|
|
8
|
-
execute(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
declare class UmbWorkspaceActionBase<WorkspaceType> {
|
|
11
|
-
host: UmbControllerHostElement;
|
|
12
|
-
workspaceContext?: WorkspaceType;
|
|
13
|
-
constructor(host: UmbControllerHostElement);
|
|
14
|
-
}
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
|
|
5
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
15
6
|
|
|
16
7
|
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
17
8
|
host: UmbControllerHostElement;
|
|
18
9
|
repository: any;
|
|
19
|
-
isNew: Observable<boolean>;
|
|
20
|
-
getIsNew(): boolean;
|
|
10
|
+
isNew: Observable<boolean | undefined>;
|
|
11
|
+
getIsNew(): boolean | undefined;
|
|
21
12
|
setIsNew(value: boolean): void;
|
|
22
13
|
getEntityType(): string;
|
|
23
14
|
getData(): DataType | undefined;
|
|
15
|
+
save(): Promise<void>;
|
|
24
16
|
destroy(): void;
|
|
25
17
|
setValidationErrors?(errorMap: any): void;
|
|
26
18
|
}
|
|
27
19
|
|
|
28
|
-
|
|
20
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface$1<EntityType> {
|
|
21
|
+
getEntityId(): string | undefined;
|
|
22
|
+
getEntityType(): string;
|
|
23
|
+
save(): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare abstract class UmbWorkspaceContext<T, EntityType extends UmbEntityBase> implements UmbEntityWorkspaceContextInterface<EntityType> {
|
|
29
27
|
#private;
|
|
30
|
-
|
|
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
|
+
|
|
41
|
+
interface UmbWorkspaceAction<WorkspaceType = unknown> {
|
|
42
|
+
host: UmbControllerHostElement;
|
|
43
|
+
workspaceContext?: WorkspaceType;
|
|
31
44
|
execute(): Promise<void>;
|
|
32
45
|
}
|
|
46
|
+
declare abstract class UmbWorkspaceActionBase<WorkspaceType extends UmbWorkspaceContextInterface> implements UmbWorkspaceAction<WorkspaceType> {
|
|
47
|
+
host: UmbControllerHostElement;
|
|
48
|
+
workspaceContext?: WorkspaceType;
|
|
49
|
+
constructor(host: UmbControllerHostElement);
|
|
50
|
+
abstract execute(): Promise<void>;
|
|
51
|
+
}
|
|
33
52
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
save(): Promise<void>;
|
|
53
|
+
declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspaceContextInterface> {
|
|
54
|
+
constructor(host: UmbControllerHostElement);
|
|
55
|
+
execute(): Promise<void>;
|
|
38
56
|
}
|
|
39
57
|
|
|
40
|
-
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|
|
58
|
+
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface };
|
package/property-editor.d.ts
DELETED