@umbraco-cms/backoffice 1.0.0-next.99fe12c7 → 1.0.0-next.9c008bb2
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 +32 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +76 -6
- package/controller.d.ts +7 -6
- package/custom-elements.json +2231 -1238
- package/element.d.ts +6 -6
- package/entity-action.d.ts +29 -19
- package/extensions-api.d.ts +14 -13
- package/extensions-registry.d.ts +300 -91
- package/id.d.ts +6 -0
- package/modal.d.ts +303 -17
- package/models.d.ts +19 -9
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +90 -49
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/repository.d.ts +109 -40
- package/resources.d.ts +25 -16
- package/router.d.ts +368 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +93 -52
- package/umbraco-package-schema.json +37749 -0
- package/utils.d.ts +1 -9
- package/vscode-html-custom-data.json +716 -421
- package/workspace.d.ts +28 -20
- package/property-editor.d.ts +0 -8
package/workspace.d.ts
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
|
-
import { UmbControllerHostInterface } from './controller';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
3
|
+
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
|
|
3
4
|
|
|
4
|
-
interface
|
|
5
|
-
host:
|
|
6
|
-
workspaceContext?: T;
|
|
7
|
-
execute(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
declare class UmbWorkspaceActionBase<WorkspaceType> {
|
|
10
|
-
host: UmbControllerHostInterface;
|
|
11
|
-
workspaceContext?: WorkspaceType;
|
|
12
|
-
constructor(host: UmbControllerHostInterface);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface UmbWorkspaceContextInterface<T = unknown> {
|
|
16
|
-
host: UmbControllerHostInterface;
|
|
5
|
+
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
6
|
+
host: UmbControllerHostElement;
|
|
17
7
|
repository: any;
|
|
18
|
-
isNew: Observable<boolean>;
|
|
19
|
-
getIsNew(): boolean;
|
|
8
|
+
isNew: Observable<boolean | undefined>;
|
|
9
|
+
getIsNew(): boolean | undefined;
|
|
20
10
|
setIsNew(value: boolean): void;
|
|
21
11
|
getEntityType(): string;
|
|
22
|
-
getData():
|
|
12
|
+
getData(): DataType | undefined;
|
|
13
|
+
save(): Promise<void>;
|
|
23
14
|
destroy(): void;
|
|
24
15
|
setValidationErrors?(errorMap: any): void;
|
|
25
16
|
}
|
|
26
17
|
|
|
18
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface$1<EntityType> {
|
|
19
|
+
getEntityId(): string | undefined;
|
|
20
|
+
getEntityType(): string;
|
|
21
|
+
save(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface UmbWorkspaceAction<WorkspaceType = unknown> {
|
|
25
|
+
host: UmbControllerHostElement;
|
|
26
|
+
workspaceContext?: WorkspaceType;
|
|
27
|
+
execute(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
declare abstract class UmbWorkspaceActionBase<WorkspaceType extends UmbWorkspaceContextInterface> implements UmbWorkspaceAction<WorkspaceType> {
|
|
30
|
+
host: UmbControllerHostElement;
|
|
31
|
+
workspaceContext?: WorkspaceType;
|
|
32
|
+
constructor(host: UmbControllerHostElement);
|
|
33
|
+
abstract execute(): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspaceContextInterface> {
|
|
28
|
-
|
|
29
|
-
constructor(host: UmbControllerHostInterface);
|
|
37
|
+
constructor(host: UmbControllerHostElement);
|
|
30
38
|
execute(): Promise<void>;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
|
-
export { UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase };
|
|
41
|
+
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|
package/property-editor.d.ts
DELETED