@umbraco-cms/backoffice 1.0.0-next.99fe12c7 → 1.0.0-next.bc7aa666
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 +76 -6
- package/controller.d.ts +5 -5
- package/custom-elements.json +712 -158
- package/element.d.ts +2 -2
- package/entity-action.d.ts +30 -13
- package/extensions-api.d.ts +2 -2
- package/extensions-registry.d.ts +20 -13
- package/modal.d.ts +594 -12
- package/models.d.ts +6 -1
- package/observable-api.d.ts +19 -4
- package/package.json +1 -1
- package/repository.d.ts +61 -27
- package/resources.d.ts +3 -3
- package/router.d.ts +130 -0
- package/store.d.ts +80 -34
- package/vscode-html-custom-data.json +267 -75
- package/workspace.d.ts +16 -9
package/element.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { HTMLElementConstructor } from './models';
|
|
3
|
-
import {
|
|
3
|
+
import { UmbControllerHostElement } from './controller';
|
|
4
4
|
import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from './context-api';
|
|
5
5
|
import { UmbObserverController } from './observable-api';
|
|
6
6
|
|
|
7
7
|
interface ResolvedContexts {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
|
-
declare class UmbElementMixinInterface extends
|
|
10
|
+
declare class UmbElementMixinInterface extends UmbControllerHostElement {
|
|
11
11
|
observe<T>(source: Observable<T>, callback: (_value: T) => void, unique?: string): UmbObserverController<T>;
|
|
12
12
|
provideContext<R = unknown>(alias: string | UmbContextToken<R>, instance: R): UmbContextProviderController<R>;
|
|
13
13
|
consumeContext<R = unknown>(alias: string | UmbContextToken<R>, callback: UmbContextCallback<R>): UmbContextConsumerController<R>;
|
package/entity-action.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UmbControllerHostElement } from './controller';
|
|
2
2
|
import { UmbEntityActionBase as UmbEntityActionBase$1 } from './entity-action';
|
|
3
|
+
import { UmbFolderRepository } from './repository';
|
|
3
4
|
|
|
4
5
|
interface UmbAction<RepositoryType = unknown> {
|
|
5
|
-
host:
|
|
6
|
+
host: UmbControllerHostElement;
|
|
6
7
|
repository: RepositoryType;
|
|
7
8
|
execute(): Promise<void>;
|
|
8
9
|
}
|
|
9
10
|
declare class UmbActionBase<RepositoryType> {
|
|
10
|
-
host:
|
|
11
|
+
host: UmbControllerHostElement;
|
|
11
12
|
repository?: RepositoryType;
|
|
12
|
-
constructor(host:
|
|
13
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
|
|
@@ -17,7 +18,8 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
|
|
|
17
18
|
}
|
|
18
19
|
declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
|
|
19
20
|
unique: string;
|
|
20
|
-
|
|
21
|
+
repositoryAlias: string;
|
|
22
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<RepositoryType> {
|
|
@@ -26,37 +28,52 @@ interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<Reposi
|
|
|
26
28
|
}
|
|
27
29
|
declare class UmbEntityBulkActionBase<RepositoryType = unknown> extends UmbActionBase<RepositoryType> {
|
|
28
30
|
selection: Array<string>;
|
|
29
|
-
constructor(host:
|
|
31
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, selection: Array<string>);
|
|
30
32
|
setSelection(selection: Array<string>): void;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
declare class UmbCopyEntityAction<T extends {
|
|
34
36
|
copy(): Promise<void>;
|
|
35
37
|
}> extends UmbEntityActionBase$1<T> {
|
|
36
|
-
constructor(host:
|
|
38
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
37
39
|
execute(): Promise<void>;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
declare class UmbDeleteEntityAction<T extends {
|
|
41
43
|
delete(unique: string): Promise<void>;
|
|
42
|
-
|
|
44
|
+
requestTreeItems(uniques: Array<string>): any;
|
|
43
45
|
}> extends UmbEntityActionBase$1<T> {
|
|
44
46
|
#private;
|
|
45
|
-
constructor(host:
|
|
47
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
48
|
+
execute(): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class UmbDeleteFolderEntityAction<T extends {
|
|
52
|
+
deleteFolder(unique: string): Promise<void>;
|
|
53
|
+
requestTreeItems(uniques: Array<string>): any;
|
|
54
|
+
}> extends UmbEntityActionBase$1<T> {
|
|
55
|
+
#private;
|
|
56
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
57
|
+
execute(): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class UmbFolderUpdateEntityAction<T extends UmbFolderRepository = UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
61
|
+
#private;
|
|
62
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
46
63
|
execute(): Promise<void>;
|
|
47
64
|
}
|
|
48
65
|
|
|
49
66
|
declare class UmbMoveEntityAction<T extends {
|
|
50
67
|
move(): Promise<void>;
|
|
51
68
|
}> extends UmbEntityActionBase$1<T> {
|
|
52
|
-
constructor(host:
|
|
69
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
53
70
|
execute(): Promise<void>;
|
|
54
71
|
}
|
|
55
72
|
|
|
56
73
|
declare class UmbSortChildrenOfEntityAction<T extends {
|
|
57
74
|
sortChildrenOf(): Promise<void>;
|
|
58
75
|
}> extends UmbEntityActionBase$1<T> {
|
|
59
|
-
constructor(host:
|
|
76
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
60
77
|
execute(): Promise<void>;
|
|
61
78
|
}
|
|
62
79
|
|
|
@@ -65,8 +82,8 @@ declare class UmbTrashEntityAction<T extends {
|
|
|
65
82
|
requestTreeItems(uniques: Array<string>): any;
|
|
66
83
|
}> extends UmbEntityActionBase$1<T> {
|
|
67
84
|
#private;
|
|
68
|
-
constructor(host:
|
|
85
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
69
86
|
execute(): Promise<void>;
|
|
70
87
|
}
|
|
71
88
|
|
|
72
|
-
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
|
89
|
+
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbFolderUpdateEntityAction, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
package/extensions-api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from './extensions-registry';
|
|
3
3
|
import { UmbContextToken } from './context-api';
|
|
4
|
-
import {
|
|
4
|
+
import { UmbControllerHostElement } from './controller';
|
|
5
5
|
|
|
6
6
|
declare class UmbExtensionRegistry {
|
|
7
7
|
private _extensions;
|
|
@@ -28,7 +28,7 @@ declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
|
|
|
28
28
|
default: ConstructorType;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
type UmbEntrypointOnInit = (host:
|
|
31
|
+
type UmbEntrypointOnInit = (host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Interface containing supported life-cycle functions for ESModule entrypoints
|
|
34
34
|
*/
|
package/extensions-registry.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ClassConstructor } from './models';
|
|
2
1
|
import { InterfaceLook, InterfaceColor } from '@umbraco-ui/uui-base/lib/types/index';
|
|
3
2
|
import { UmbWorkspaceAction } from './workspace';
|
|
4
|
-
import {
|
|
3
|
+
import { ClassConstructor } from './models';
|
|
4
|
+
import { UmbStoreBase, UmbTreeStore } from './store';
|
|
5
5
|
import { UmbExtensionRegistry } from './extensions-api';
|
|
6
|
-
import {
|
|
6
|
+
import { UmbControllerHostElement } from './controller';
|
|
7
7
|
|
|
8
8
|
interface ManifestCollectionView extends ManifestElement, ManifestWithConditions<ConditionsCollectionView> {
|
|
9
9
|
type: 'collectionView';
|
|
@@ -242,15 +242,22 @@ interface ManifestTree extends ManifestBase {
|
|
|
242
242
|
meta: MetaTree;
|
|
243
243
|
}
|
|
244
244
|
interface MetaTree {
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
repositoryAlias: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface ManifestTreeItem extends ManifestElement {
|
|
249
|
+
type: 'treeItem';
|
|
250
|
+
conditions: ConditionsTreeItem;
|
|
251
|
+
}
|
|
252
|
+
interface ConditionsTreeItem {
|
|
253
|
+
entityType: string;
|
|
247
254
|
}
|
|
248
255
|
|
|
249
|
-
interface
|
|
250
|
-
type: '
|
|
251
|
-
meta:
|
|
256
|
+
interface ManifestUserProfileApp extends ManifestElement {
|
|
257
|
+
type: 'userProfileApp';
|
|
258
|
+
meta: MetaUserProfileApp;
|
|
252
259
|
}
|
|
253
|
-
interface
|
|
260
|
+
interface MetaUserProfileApp {
|
|
254
261
|
label: string;
|
|
255
262
|
pathname: string;
|
|
256
263
|
}
|
|
@@ -319,11 +326,11 @@ interface ManifestModal extends ManifestElement {
|
|
|
319
326
|
interface ManifestStore extends ManifestClass<UmbStoreBase> {
|
|
320
327
|
type: 'store';
|
|
321
328
|
}
|
|
322
|
-
interface ManifestTreeStore extends ManifestClass<
|
|
329
|
+
interface ManifestTreeStore extends ManifestClass<UmbTreeStore> {
|
|
323
330
|
type: 'treeStore';
|
|
324
331
|
}
|
|
325
332
|
|
|
326
|
-
type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree |
|
|
333
|
+
type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestBase;
|
|
327
334
|
type ManifestStandardTypes = ManifestTypes['type'];
|
|
328
335
|
type ManifestTypeMap = {
|
|
329
336
|
[Manifest in ManifestTypes as Manifest['type']]: Manifest;
|
|
@@ -383,8 +390,8 @@ interface ManifestEntrypoint extends ManifestBase {
|
|
|
383
390
|
|
|
384
391
|
declare class UmbEntryPointExtensionInitializer {
|
|
385
392
|
#private;
|
|
386
|
-
constructor(rootHost:
|
|
393
|
+
constructor(rootHost: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry);
|
|
387
394
|
instantiateEntryPoint(manifest: ManifestEntrypoint): void;
|
|
388
395
|
}
|
|
389
396
|
|
|
390
|
-
export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeStore, ManifestTypeMap, ManifestTypes,
|
|
397
|
+
export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserProfileApp, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
|