@umbraco-cms/backoffice 1.0.0-next.99fe12c7 → 1.0.0-next.bf0e5e95
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 +5 -5
- package/controller.d.ts +5 -5
- package/custom-elements.json +572 -88
- 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 +20 -13
- package/modal.d.ts +558 -12
- package/observable-api.d.ts +3 -3
- package/package.json +1 -1
- package/repository.d.ts +33 -29
- package/resources.d.ts +3 -3
- package/router.d.ts +130 -0
- package/store.d.ts +80 -34
- package/vscode-html-custom-data.json +224 -58
- package/workspace.d.ts +7 -7
package/context-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UmbControllerHostElement, UmbControllerInterface } from './controller';
|
|
2
2
|
|
|
3
3
|
declare class UmbContextToken<T = unknown> {
|
|
4
4
|
protected alias: string;
|
|
@@ -90,9 +90,9 @@ declare class UmbContextConsumer<HostType extends EventTarget = EventTarget, T =
|
|
|
90
90
|
destroy(): void;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<
|
|
93
|
+
declare class UmbContextConsumerController<T = unknown> extends UmbContextConsumer<UmbControllerHostElement, T> implements UmbControllerInterface {
|
|
94
94
|
get unique(): undefined;
|
|
95
|
-
constructor(host:
|
|
95
|
+
constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, callback: UmbContextCallback<T>);
|
|
96
96
|
destroy(): void;
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -136,9 +136,9 @@ declare class UmbContextProvider<HostType extends EventTarget = EventTarget> {
|
|
|
136
136
|
destroy(): void;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<
|
|
139
|
+
declare class UmbContextProviderController<T = unknown> extends UmbContextProvider<UmbControllerHostElement> implements UmbControllerInterface {
|
|
140
140
|
get unique(): string;
|
|
141
|
-
constructor(host:
|
|
141
|
+
constructor(host: UmbControllerHostElement, contextAlias: string | UmbContextToken<T>, instance: T);
|
|
142
142
|
destroy(): void;
|
|
143
143
|
}
|
|
144
144
|
|
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 };
|