@umbraco-cms/backoffice 1.0.0-next.c1172939 → 1.0.0-next.de0ffca0
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/context-api.d.ts +16 -6
- package/controller.d.ts +5 -5
- package/custom-elements.json +497 -34
- package/element.d.ts +2 -2
- package/entity-action.d.ts +11 -11
- package/extensions-api.d.ts +2 -2
- package/extensions-registry.d.ts +8 -8
- package/modal.d.ts +585 -12
- package/models.d.ts +6 -1
- package/observable-api.d.ts +19 -4
- package/package.json +1 -1
- package/resources.d.ts +3 -3
- package/router.d.ts +130 -0
- package/store.d.ts +3 -3
- package/vscode-html-custom-data.json +196 -32
- package/workspace.d.ts +16 -9
package/context-api.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UmbControllerHostElement, UmbControllerInterface } from './controller';
|
|
2
|
+
import { UmbWorkspaceContextInterface } from './workspace';
|
|
3
|
+
import { BaseEntity } from './models';
|
|
2
4
|
|
|
3
5
|
declare class UmbContextToken<T = unknown> {
|
|
4
6
|
protected alias: string;
|
|
@@ -90,9 +92,9 @@ declare class UmbContextConsumer<HostType extends EventTarget = EventTarget, T =
|
|
|
90
92
|
destroy(): void;
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<
|
|
95
|
+
declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostElement, T> implements UmbControllerInterface {
|
|
94
96
|
get unique(): undefined;
|
|
95
|
-
constructor(host:
|
|
97
|
+
constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
|
|
96
98
|
destroy(): void;
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -136,9 +138,9 @@ declare class UmbContextProvider<HostType extends EventTarget = EventTarget> {
|
|
|
136
138
|
destroy(): void;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<
|
|
141
|
+
declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostElement> implements UmbControllerInterface {
|
|
140
142
|
get unique(): string;
|
|
141
|
-
constructor(host:
|
|
143
|
+
constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, instance: T);
|
|
142
144
|
destroy(): void;
|
|
143
145
|
}
|
|
144
146
|
|
|
@@ -162,4 +164,12 @@ declare class UmbContextProvideEventImplementation extends Event implements UmbC
|
|
|
162
164
|
}
|
|
163
165
|
declare const isUmbContextProvideEventType: (event: Event) => event is UmbContextProvideEventImplementation;
|
|
164
166
|
|
|
165
|
-
|
|
167
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface<EntityType> {
|
|
168
|
+
getEntityKey(): string | undefined;
|
|
169
|
+
getEntityType(): string;
|
|
170
|
+
save(): Promise<void>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare const UMB_ENTITY_WORKSPACE_CONTEXT: UmbContextToken<UmbEntityWorkspaceContextInterface<BaseEntity>>;
|
|
174
|
+
|
|
175
|
+
export { UMB_ENTITY_WORKSPACE_CONTEXT, UmbContextCallback, UmbContextConsumer, UmbContextConsumerController, UmbContextDebugRequest, UmbContextProvideEvent, UmbContextProvideEventImplementation, UmbContextProvider, UmbContextProviderController, UmbContextRequestEvent, UmbContextRequestEventImplementation, UmbContextToken, isUmbContextProvideEventType, isUmbContextRequestEvent, umbContextProvideEventType, umbContextRequestEventType, umbDebugContextEventType };
|
package/controller.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface UmbControllerInterface {
|
|
|
7
7
|
destroy(): void;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
declare class
|
|
10
|
+
declare class UmbControllerHostElement extends HTMLElement {
|
|
11
11
|
hasController(controller: UmbControllerInterface): boolean;
|
|
12
12
|
getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
|
|
13
13
|
addController(controller: UmbControllerInterface): void;
|
|
@@ -20,7 +20,7 @@ declare class UmbControllerHostInterface extends HTMLElement {
|
|
|
20
20
|
* @param {Object} superClass - superclass to be extended.
|
|
21
21
|
* @mixin
|
|
22
22
|
*/
|
|
23
|
-
declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<
|
|
23
|
+
declare const UmbControllerHostMixin: <T extends HTMLElementConstructor<HTMLElement>>(superClass: T) => HTMLElementConstructor<UmbControllerHostElement> & T;
|
|
24
24
|
declare global {
|
|
25
25
|
interface HTMLElement {
|
|
26
26
|
connectedCallback(): void;
|
|
@@ -29,13 +29,13 @@ declare global {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
declare abstract class UmbController implements UmbControllerInterface {
|
|
32
|
-
protected host?:
|
|
32
|
+
protected host?: UmbControllerHostElement;
|
|
33
33
|
private _alias?;
|
|
34
34
|
get unique(): string | undefined;
|
|
35
|
-
constructor(host:
|
|
35
|
+
constructor(host: UmbControllerHostElement, alias?: string);
|
|
36
36
|
abstract hostConnected(): void;
|
|
37
37
|
abstract hostDisconnected(): void;
|
|
38
38
|
destroy(): void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { UmbController,
|
|
41
|
+
export { UmbController, UmbControllerHostElement, UmbControllerHostMixin, UmbControllerInterface };
|