@umbraco-cms/backoffice 1.0.0-next.bf0e5e95 → 1.0.0-next.c62aa1ac
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 +594 -272
- package/context-api.d.ts +72 -2
- package/controller.d.ts +3 -2
- package/custom-elements.json +855 -407
- package/element.d.ts +5 -5
- package/entity-action.d.ts +19 -9
- package/extensions-api.d.ts +6 -4
- package/extensions-registry.d.ts +174 -13
- package/modal.d.ts +58 -322
- package/models.d.ts +14 -9
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +89 -48
- package/package.json +1 -1
- package/picker-input.d.ts +24 -0
- package/property-editor.d.ts +1 -1
- package/repository.d.ts +85 -30
- package/resources.d.ts +7 -5
- package/router.d.ts +275 -25
- package/sorter.d.ts +103 -0
- package/store.d.ts +51 -56
- package/umbraco-package-schema.json +2439 -0
- package/utils.d.ts +4 -2
- package/vscode-html-custom-data.json +257 -98
- package/workspace.d.ts +14 -7
package/element.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { HTMLElementConstructor } from '
|
|
3
|
-
import { UmbControllerHostElement } from '
|
|
4
|
-
import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from '
|
|
5
|
-
import { UmbObserverController } from '
|
|
2
|
+
import { HTMLElementConstructor } from '@umbraco-cms/backoffice/models';
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
4
|
+
import { UmbContextToken, UmbContextProviderController, UmbContextCallback, UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
|
|
5
|
+
import { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
|
|
6
6
|
|
|
7
7
|
interface ResolvedContexts {
|
|
8
8
|
[key: string]: any;
|
|
@@ -13,6 +13,6 @@ declare class UmbElementMixinInterface extends UmbControllerHostElement {
|
|
|
13
13
|
consumeContext<R = unknown>(alias: string | UmbContextToken<R>, callback: UmbContextCallback<R>): UmbContextConsumerController<R>;
|
|
14
14
|
consumeAllContexts(contextAliases: string[], callback: (_instances: ResolvedContexts) => void): void;
|
|
15
15
|
}
|
|
16
|
-
declare const UmbElementMixin: <T extends HTMLElementConstructor
|
|
16
|
+
declare const UmbElementMixin: <T extends HTMLElementConstructor>(superClass: T) => HTMLElementConstructor<UmbElementMixinInterface> & T;
|
|
17
17
|
|
|
18
18
|
export { UmbElementMixin, UmbElementMixinInterface };
|
package/entity-action.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UmbControllerHostElement } from '
|
|
2
|
-
import { UmbEntityActionBase as UmbEntityActionBase$1 } from '
|
|
1
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
2
|
+
import { UmbEntityActionBase as UmbEntityActionBase$1 } from '@umbraco-cms/backoffice/entity-action';
|
|
3
|
+
import { UmbDetailRepository, UmbItemRepository, UmbFolderRepository } from '@umbraco-cms/backoffice/repository';
|
|
3
4
|
|
|
4
5
|
interface UmbAction<RepositoryType = unknown> {
|
|
5
6
|
host: UmbControllerHostElement;
|
|
@@ -17,6 +18,7 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
|
|
|
17
18
|
}
|
|
18
19
|
declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
|
|
19
20
|
unique: string;
|
|
21
|
+
repositoryAlias: string;
|
|
20
22
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -37,10 +39,19 @@ declare class UmbCopyEntityAction<T extends {
|
|
|
37
39
|
execute(): Promise<void>;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
declare class UmbDeleteEntityAction<T extends {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
declare class UmbDeleteEntityAction<T extends UmbDetailRepository & UmbItemRepository<any>> extends UmbEntityActionBase$1<T> {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
45
|
+
execute(): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class UmbDeleteFolderEntityAction<T extends UmbItemRepository<any> & UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
51
|
+
execute(): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class UmbFolderUpdateEntityAction<T extends UmbFolderRepository = UmbFolderRepository> extends UmbEntityActionBase$1<T> {
|
|
44
55
|
#private;
|
|
45
56
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
46
57
|
execute(): Promise<void>;
|
|
@@ -60,13 +71,12 @@ declare class UmbSortChildrenOfEntityAction<T extends {
|
|
|
60
71
|
execute(): Promise<void>;
|
|
61
72
|
}
|
|
62
73
|
|
|
63
|
-
declare class UmbTrashEntityAction<T extends {
|
|
74
|
+
declare class UmbTrashEntityAction<T extends UmbItemRepository<any> & {
|
|
64
75
|
trash(unique: Array<string>): Promise<void>;
|
|
65
|
-
requestTreeItems(uniques: Array<string>): any;
|
|
66
76
|
}> extends UmbEntityActionBase$1<T> {
|
|
67
77
|
#private;
|
|
68
78
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
69
79
|
execute(): Promise<void>;
|
|
70
80
|
}
|
|
71
81
|
|
|
72
|
-
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
|
82
|
+
export { UmbAction, UmbActionBase, UmbCopyEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, UmbEntityAction, UmbEntityActionBase, UmbEntityBulkAction, UmbEntityBulkActionBase, UmbFolderUpdateEntityAction, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, UmbTrashEntityAction };
|
package/extensions-api.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from '
|
|
3
|
-
import { UmbContextToken } from '
|
|
4
|
-
import {
|
|
2
|
+
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from '@umbraco-cms/backoffice/extensions-registry';
|
|
3
|
+
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
4
|
+
import { PageComponent } from '@umbraco-cms/backoffice/router';
|
|
5
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
5
6
|
|
|
6
7
|
declare class UmbExtensionRegistry {
|
|
7
8
|
private _extensions;
|
|
@@ -10,6 +11,7 @@ declare class UmbExtensionRegistry {
|
|
|
10
11
|
readonly kinds: Observable<ManifestKind[]>;
|
|
11
12
|
defineKind(kind: ManifestKind): void;
|
|
12
13
|
register(manifest: ManifestTypes | ManifestKind): void;
|
|
14
|
+
registerMany(manifests: Array<ManifestTypes>): void;
|
|
13
15
|
unregister(alias: string): void;
|
|
14
16
|
isRegistered(alias: string): boolean;
|
|
15
17
|
private _kindsOfType;
|
|
@@ -22,7 +24,7 @@ declare class UmbExtensionRegistry {
|
|
|
22
24
|
}
|
|
23
25
|
declare const UMB_EXTENSION_REGISTRY_TOKEN: UmbContextToken<UmbExtensionRegistry>;
|
|
24
26
|
|
|
25
|
-
declare function createExtensionElement(manifest: ManifestElement): Promise<
|
|
27
|
+
declare function createExtensionElement(manifest: ManifestElement): Promise<PageComponent>;
|
|
26
28
|
|
|
27
29
|
declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
|
|
28
30
|
default: ConstructorType;
|
package/extensions-registry.d.ts
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { InterfaceLook, InterfaceColor } from '@umbraco-ui/uui-base/lib/types/index';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { UmbControllerHostElement } from './controller';
|
|
2
|
+
import { ClassConstructor } from '@umbraco-cms/backoffice/models';
|
|
3
|
+
import { UmbStoreBase, UmbTreeStore, UmbItemStore } from '@umbraco-cms/backoffice/store';
|
|
4
|
+
import { UmbExtensionRegistry } from '@umbraco-cms/backoffice/extensions-api';
|
|
5
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
7
6
|
|
|
8
7
|
interface ManifestCollectionView extends ManifestElement, ManifestWithConditions<ConditionsCollectionView> {
|
|
9
8
|
type: 'collectionView';
|
|
10
9
|
meta: MetaCollectionView;
|
|
11
10
|
}
|
|
12
11
|
interface MetaCollectionView {
|
|
12
|
+
/**
|
|
13
|
+
* The friendly name of the collection view
|
|
14
|
+
*/
|
|
13
15
|
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* An icon to represent the collection view
|
|
18
|
+
*
|
|
19
|
+
* @examples [
|
|
20
|
+
* "umb:box",
|
|
21
|
+
* "umb:grid"
|
|
22
|
+
* ]
|
|
23
|
+
*/
|
|
14
24
|
icon: string;
|
|
25
|
+
/**
|
|
26
|
+
* The URL pathname for this collection view that can be deep linked to by sharing the url
|
|
27
|
+
*/
|
|
15
28
|
pathName: string;
|
|
16
29
|
}
|
|
17
30
|
interface ConditionsCollectionView {
|
|
@@ -23,10 +36,33 @@ interface ManifestDashboard extends ManifestElement, ManifestWithConditions<Cond
|
|
|
23
36
|
meta: MetaDashboard;
|
|
24
37
|
}
|
|
25
38
|
interface MetaDashboard {
|
|
39
|
+
/**
|
|
40
|
+
* This is the URL path for the dashboard which is used for navigating or deep linking directly to the dashboard
|
|
41
|
+
* https://yoursite.com/section/settings/dashboard/my-dashboard-path
|
|
42
|
+
*
|
|
43
|
+
* @example my-dashboard-path
|
|
44
|
+
* @examples [
|
|
45
|
+
* "my-dashboard-path"
|
|
46
|
+
* ]
|
|
47
|
+
*/
|
|
26
48
|
pathname: string;
|
|
49
|
+
/**
|
|
50
|
+
* The displayed name (label) for the tab of the dashboard
|
|
51
|
+
*/
|
|
27
52
|
label?: string;
|
|
28
53
|
}
|
|
29
54
|
interface ConditionsDashboard {
|
|
55
|
+
/**
|
|
56
|
+
* An array of section aliases that the dashboard should be available in
|
|
57
|
+
*
|
|
58
|
+
* @uniqueItems true
|
|
59
|
+
* @minItems 1
|
|
60
|
+
* @items.examples [
|
|
61
|
+
* "Umb.Section.Content",
|
|
62
|
+
* "Umb.Section.Settings"
|
|
63
|
+
* ]
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
30
66
|
sections: string[];
|
|
31
67
|
}
|
|
32
68
|
|
|
@@ -45,28 +81,76 @@ interface ConditionsDashboardCollection {
|
|
|
45
81
|
entityType: string;
|
|
46
82
|
}
|
|
47
83
|
|
|
84
|
+
/**
|
|
85
|
+
* An action to perform on an entity
|
|
86
|
+
* For example for content you may wish to create a new document etc
|
|
87
|
+
*/
|
|
48
88
|
interface ManifestEntityAction extends ManifestElement {
|
|
49
89
|
type: 'entityAction';
|
|
50
90
|
meta: MetaEntityAction;
|
|
51
91
|
conditions: ConditionsEntityAction;
|
|
52
92
|
}
|
|
53
93
|
interface MetaEntityAction {
|
|
94
|
+
/**
|
|
95
|
+
* An icon to represent the action to be performed
|
|
96
|
+
*
|
|
97
|
+
* @examples [
|
|
98
|
+
* "umb:box",
|
|
99
|
+
* "umb:grid"
|
|
100
|
+
* ]
|
|
101
|
+
*/
|
|
54
102
|
icon?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The friendly name of the action to perform
|
|
105
|
+
*
|
|
106
|
+
* @examples [
|
|
107
|
+
* "Create",
|
|
108
|
+
* "Create Content Template"
|
|
109
|
+
* ]
|
|
110
|
+
*/
|
|
55
111
|
label: string;
|
|
112
|
+
/**
|
|
113
|
+
* @TJS-ignore
|
|
114
|
+
*/
|
|
56
115
|
api: any;
|
|
116
|
+
/**
|
|
117
|
+
* The alias for the repsoitory of the entity type this action is for
|
|
118
|
+
* such as 'Umb.Repository.Documents'
|
|
119
|
+
* @examples [
|
|
120
|
+
* "Umb.Repository.Documents"
|
|
121
|
+
* ]
|
|
122
|
+
*/
|
|
57
123
|
repositoryAlias: string;
|
|
58
124
|
}
|
|
59
125
|
interface ConditionsEntityAction {
|
|
60
126
|
entityType: string;
|
|
61
127
|
}
|
|
62
128
|
|
|
129
|
+
/**
|
|
130
|
+
* An action to perform on multiple entities
|
|
131
|
+
* For example for content you may wish to move one or more documents in bulk
|
|
132
|
+
*/
|
|
63
133
|
interface ManifestEntityBulkAction extends ManifestElement, ManifestWithConditions<ConditionsEntityBulkAction> {
|
|
64
134
|
type: 'entityBulkAction';
|
|
65
135
|
meta: MetaEntityBulkAction;
|
|
66
136
|
}
|
|
67
137
|
interface MetaEntityBulkAction {
|
|
138
|
+
/**
|
|
139
|
+
* A friendly label for the action
|
|
140
|
+
*/
|
|
68
141
|
label: string;
|
|
142
|
+
/**
|
|
143
|
+
* @TJS-ignore
|
|
144
|
+
*/
|
|
69
145
|
api: any;
|
|
146
|
+
/**
|
|
147
|
+
* The alias for the repsoitory of the entity type this action is for
|
|
148
|
+
* such as 'Umb.Repository.Documents'
|
|
149
|
+
*
|
|
150
|
+
* @examples [
|
|
151
|
+
* "Umb.Repository.Documents"
|
|
152
|
+
* ]
|
|
153
|
+
*/
|
|
70
154
|
repositoryAlias: string;
|
|
71
155
|
}
|
|
72
156
|
interface ConditionsEntityBulkAction {
|
|
@@ -82,6 +166,10 @@ interface MetaExternalLoginProvider {
|
|
|
82
166
|
pathname: string;
|
|
83
167
|
}
|
|
84
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Header apps are displayed in the top right corner of the backoffice
|
|
171
|
+
* The two provided header apps are the search and the user menu
|
|
172
|
+
*/
|
|
85
173
|
interface ManifestHeaderApp extends ManifestElement {
|
|
86
174
|
type: 'headerApp';
|
|
87
175
|
}
|
|
@@ -232,8 +320,16 @@ interface MetaMenuItemTreeKind {
|
|
|
232
320
|
entityType?: string;
|
|
233
321
|
}
|
|
234
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Theme manifest for styling the backoffice of Umbraco such as dark, high contrast etc
|
|
325
|
+
*/
|
|
235
326
|
interface ManifestTheme extends ManifestWithLoader<string> {
|
|
236
327
|
type: 'theme';
|
|
328
|
+
/**
|
|
329
|
+
* File location of the CSS file of the theme
|
|
330
|
+
*
|
|
331
|
+
* @examples ["themes/dark.theme.css"]
|
|
332
|
+
*/
|
|
237
333
|
css?: string;
|
|
238
334
|
}
|
|
239
335
|
|
|
@@ -279,7 +375,7 @@ interface MetaWorkspaceAction {
|
|
|
279
375
|
label?: string;
|
|
280
376
|
look?: InterfaceLook;
|
|
281
377
|
color?: InterfaceColor;
|
|
282
|
-
api: ClassConstructor<
|
|
378
|
+
api: ClassConstructor<any>;
|
|
283
379
|
}
|
|
284
380
|
interface ConditionsWorkspaceAction {
|
|
285
381
|
workspaces: Array<string>;
|
|
@@ -329,18 +425,38 @@ interface ManifestStore extends ManifestClass<UmbStoreBase> {
|
|
|
329
425
|
interface ManifestTreeStore extends ManifestClass<UmbTreeStore> {
|
|
330
426
|
type: 'treeStore';
|
|
331
427
|
}
|
|
428
|
+
interface ManifestItemStore extends ManifestClass<UmbItemStore> {
|
|
429
|
+
type: 'itemStore';
|
|
430
|
+
}
|
|
332
431
|
|
|
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;
|
|
432
|
+
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 | ManifestItemStore | ManifestBase;
|
|
334
433
|
type ManifestStandardTypes = ManifestTypes['type'];
|
|
335
434
|
type ManifestTypeMap = {
|
|
336
435
|
[Manifest in ManifestTypes as Manifest['type']]: Manifest;
|
|
337
436
|
};
|
|
338
437
|
type SpecificManifestTypeOrManifestBase<T extends keyof ManifestTypeMap | string> = T extends keyof ManifestTypeMap ? ManifestTypeMap[T] : ManifestBase;
|
|
339
438
|
interface ManifestBase {
|
|
439
|
+
/**
|
|
440
|
+
* The type of extension such as dashboard etc...
|
|
441
|
+
*/
|
|
340
442
|
type: string;
|
|
443
|
+
/**
|
|
444
|
+
* The alias of the extension, ensure it is unique
|
|
445
|
+
*/
|
|
341
446
|
alias: string;
|
|
342
|
-
|
|
447
|
+
/**
|
|
448
|
+
* The kind of the extension, used to group extensions together
|
|
449
|
+
*
|
|
450
|
+
* @examples ["button"]
|
|
451
|
+
*/
|
|
452
|
+
kind?: unknown;
|
|
453
|
+
/**
|
|
454
|
+
* The friendly name of the extension
|
|
455
|
+
*/
|
|
343
456
|
name: string;
|
|
457
|
+
/**
|
|
458
|
+
* Extensions such as dashboards are ordered by weight with lower numbers being first in the list
|
|
459
|
+
*/
|
|
344
460
|
weight?: number;
|
|
345
461
|
}
|
|
346
462
|
interface ManifestKind {
|
|
@@ -351,23 +467,54 @@ interface ManifestKind {
|
|
|
351
467
|
manifest: Partial<ManifestTypes>;
|
|
352
468
|
}
|
|
353
469
|
interface ManifestWithConditions<ConditionsType> {
|
|
470
|
+
/**
|
|
471
|
+
* Set the conditions for when the extension should be loaded
|
|
472
|
+
*/
|
|
354
473
|
conditions: ConditionsType;
|
|
355
474
|
}
|
|
356
475
|
interface ManifestWithLoader<LoaderReturnType> extends ManifestBase {
|
|
476
|
+
/**
|
|
477
|
+
* @TJS-ignore
|
|
478
|
+
*/
|
|
357
479
|
loader?: () => Promise<LoaderReturnType>;
|
|
358
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* The type of extension such as dashboard etc...
|
|
483
|
+
*/
|
|
359
484
|
interface ManifestClass<T = unknown> extends ManifestWithLoader<object> {
|
|
485
|
+
/**
|
|
486
|
+
* The file location of the javascript file to load
|
|
487
|
+
* @TJS-required
|
|
488
|
+
*/
|
|
360
489
|
js?: string;
|
|
490
|
+
/**
|
|
491
|
+
* @TJS-ignore
|
|
492
|
+
*/
|
|
361
493
|
className?: string;
|
|
494
|
+
/**
|
|
495
|
+
* @TJS-ignore
|
|
496
|
+
*/
|
|
362
497
|
class?: ClassConstructor<T>;
|
|
363
498
|
}
|
|
364
499
|
interface ManifestClassWithClassConstructor extends ManifestClass {
|
|
365
500
|
class: ClassConstructor<unknown>;
|
|
366
501
|
}
|
|
367
502
|
interface ManifestElement extends ManifestWithLoader<object | HTMLElement> {
|
|
503
|
+
/**
|
|
504
|
+
* The file location of the javascript file to load
|
|
505
|
+
*
|
|
506
|
+
* @TJS-require
|
|
507
|
+
*/
|
|
368
508
|
js?: string;
|
|
509
|
+
/**
|
|
510
|
+
* The HTML web component name to use such as 'my-dashboard'
|
|
511
|
+
* Note it is NOT <my-dashboard></my-dashboard> but just the name
|
|
512
|
+
*/
|
|
369
513
|
elementName?: string;
|
|
370
|
-
|
|
514
|
+
/**
|
|
515
|
+
* This contains properties specific to the type of extension
|
|
516
|
+
*/
|
|
517
|
+
meta?: unknown;
|
|
371
518
|
}
|
|
372
519
|
interface ManifestWithView extends ManifestElement {
|
|
373
520
|
meta: MetaManifestWithView;
|
|
@@ -378,20 +525,34 @@ interface MetaManifestWithView {
|
|
|
378
525
|
icon: string;
|
|
379
526
|
}
|
|
380
527
|
interface ManifestElementWithElementName extends ManifestElement {
|
|
528
|
+
/**
|
|
529
|
+
* The HTML web component name to use such as 'my-dashboard'
|
|
530
|
+
* Note it is NOT <my-dashboard></my-dashboard> but just the name
|
|
531
|
+
*/
|
|
381
532
|
elementName: string;
|
|
382
533
|
}
|
|
383
534
|
interface ManifestWithMeta extends ManifestBase {
|
|
535
|
+
/**
|
|
536
|
+
* This contains properties specific to the type of extension
|
|
537
|
+
*/
|
|
384
538
|
meta: unknown;
|
|
385
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* This type of extension gives full control and will simply load the specified JS file
|
|
542
|
+
* You could have custom logic to decide which extensions to load/register by using extensionRegistry
|
|
543
|
+
*/
|
|
386
544
|
interface ManifestEntrypoint extends ManifestBase {
|
|
387
|
-
type: '
|
|
545
|
+
type: 'entryPoint';
|
|
546
|
+
/**
|
|
547
|
+
* The file location of the javascript file to load in the backoffice
|
|
548
|
+
*/
|
|
388
549
|
js: string;
|
|
389
550
|
}
|
|
390
551
|
|
|
391
552
|
declare class UmbEntryPointExtensionInitializer {
|
|
392
553
|
#private;
|
|
393
|
-
constructor(
|
|
394
|
-
instantiateEntryPoint(manifest: ManifestEntrypoint): void
|
|
554
|
+
constructor(host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry);
|
|
555
|
+
instantiateEntryPoint(manifest: ManifestEntrypoint): Promise<void>;
|
|
395
556
|
}
|
|
396
557
|
|
|
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 };
|
|
558
|
+
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, ManifestItemStore, 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 };
|