@umbraco-cms/backoffice 1.0.0-next.249bf505 → 1.0.0-next.264a3c21
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/README.md +2 -3
- package/backend-api.d.ts +507 -88
- package/collection.d.ts +38 -0
- package/content-type.d.ts +127 -0
- package/context-api.d.ts +45 -5
- package/{controller.d.ts → controller-api.d.ts} +3 -3
- package/custom-elements.json +5576 -4661
- package/{element.d.ts → element-api.d.ts} +4 -4
- package/entity-action.d.ts +6 -13
- package/extension-api.d.ts +200 -0
- package/extension-registry.d.ts +472 -0
- package/id.d.ts +6 -0
- package/modal.d.ts +77 -64
- package/models.d.ts +9 -72
- package/notification.d.ts +1 -1
- package/observable-api.d.ts +53 -41
- package/package.json +2 -2
- package/picker-input.d.ts +25 -0
- package/repository.d.ts +85 -45
- package/resources.d.ts +10 -14
- package/router.d.ts +8 -16
- package/section.d.ts +29 -0
- package/sorter.d.ts +103 -0
- package/store.d.ts +43 -48
- package/tree.d.ts +136 -0
- package/umbraco-package-schema.json +37755 -0
- package/utils.d.ts +27 -9
- package/variant.d.ts +21 -0
- package/vscode-html-custom-data.json +2374 -2109
- package/workspace.d.ts +66 -21
- package/extensions-api.d.ts +0 -67
- package/extensions-registry.d.ts +0 -397
- package/property-editor.d.ts +0 -8
package/workspace.d.ts
CHANGED
|
@@ -1,40 +1,85 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
workspaceContext?: T;
|
|
8
|
-
execute(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
declare class UmbWorkspaceActionBase<WorkspaceType> {
|
|
11
|
-
host: UmbControllerHostElement;
|
|
12
|
-
workspaceContext?: WorkspaceType;
|
|
13
|
-
constructor(host: UmbControllerHostElement);
|
|
14
|
-
}
|
|
3
|
+
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
|
|
4
|
+
import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
|
|
5
|
+
import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
|
|
6
|
+
import { UmbVariantId } from '@umbraco-cms/backoffice/variant';
|
|
15
7
|
|
|
16
8
|
interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
17
9
|
host: UmbControllerHostElement;
|
|
18
10
|
repository: any;
|
|
19
|
-
isNew: Observable<boolean>;
|
|
20
|
-
getIsNew(): boolean;
|
|
11
|
+
isNew: Observable<boolean | undefined>;
|
|
12
|
+
getIsNew(): boolean | undefined;
|
|
21
13
|
setIsNew(value: boolean): void;
|
|
22
14
|
getEntityType(): string;
|
|
23
15
|
getData(): DataType | undefined;
|
|
16
|
+
save(): Promise<void>;
|
|
24
17
|
destroy(): void;
|
|
25
18
|
setValidationErrors?(errorMap: any): void;
|
|
26
19
|
}
|
|
27
20
|
|
|
28
|
-
|
|
21
|
+
interface UmbEntityWorkspaceContextInterface<EntityType = unknown> extends UmbWorkspaceContextInterface$1<EntityType> {
|
|
22
|
+
getEntityId(): string | undefined;
|
|
23
|
+
getEntityType(): string;
|
|
24
|
+
save(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare abstract class UmbWorkspaceContext<T, EntityType extends UmbEntityBase> implements UmbEntityWorkspaceContextInterface<EntityType> {
|
|
29
28
|
#private;
|
|
29
|
+
host: UmbControllerHostElement;
|
|
30
|
+
repository: T;
|
|
31
|
+
isNew: rxjs.Observable<boolean | undefined>;
|
|
32
|
+
constructor(host: UmbControllerHostElement, repository: T);
|
|
33
|
+
getIsNew(): boolean | undefined;
|
|
34
|
+
setIsNew(isNew: boolean): void;
|
|
35
|
+
abstract getEntityId(): string | undefined;
|
|
36
|
+
abstract getEntityType(): string;
|
|
37
|
+
abstract getData(): EntityType | undefined;
|
|
38
|
+
abstract save(): Promise<void>;
|
|
39
|
+
abstract destroy(): void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface UmbWorkspaceAction<WorkspaceType = unknown> {
|
|
43
|
+
host: UmbControllerHostElement;
|
|
44
|
+
workspaceContext?: WorkspaceType;
|
|
45
|
+
execute(): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
declare abstract class UmbWorkspaceActionBase<WorkspaceType extends UmbWorkspaceContextInterface> implements UmbWorkspaceAction<WorkspaceType> {
|
|
48
|
+
host: UmbControllerHostElement;
|
|
49
|
+
workspaceContext?: WorkspaceType;
|
|
50
|
+
constructor(host: UmbControllerHostElement);
|
|
51
|
+
abstract execute(): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspaceContextInterface> {
|
|
30
55
|
constructor(host: UmbControllerHostElement);
|
|
31
56
|
execute(): Promise<void>;
|
|
32
57
|
}
|
|
33
58
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
59
|
+
type ActiveVariant = {
|
|
60
|
+
index: number;
|
|
61
|
+
culture: string | null;
|
|
62
|
+
segment: string | null;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
* @class UmbWorkspaceSplitViewManager
|
|
67
|
+
* @description - Class managing the split view state for a workspace context.
|
|
68
|
+
*/
|
|
69
|
+
declare class UmbWorkspaceSplitViewManager {
|
|
70
|
+
#private;
|
|
71
|
+
readonly activeVariantsInfo: rxjs.Observable<ActiveVariant[]>;
|
|
72
|
+
constructor(host: UmbControllerHostElement);
|
|
73
|
+
private _routeBase?;
|
|
74
|
+
getWorkspaceRoute(): string | undefined;
|
|
75
|
+
setWorkspaceRoute(route: string | undefined): void;
|
|
76
|
+
setActiveVariant(index: number, culture: string | null, segment: string | null): void;
|
|
77
|
+
getActiveVariants(): ActiveVariant[];
|
|
78
|
+
removeActiveVariant(index: number): void;
|
|
79
|
+
activeVariantByIndex(index: number): rxjs.Observable<ActiveVariant>;
|
|
80
|
+
switchVariant(index: number, variantId: UmbVariantId): boolean;
|
|
81
|
+
openSplitView(newVariant: UmbVariantId): boolean;
|
|
82
|
+
closeSplitView(index: number): boolean;
|
|
38
83
|
}
|
|
39
84
|
|
|
40
|
-
export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };
|
|
85
|
+
export { ActiveVariant, UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface, UmbWorkspaceSplitViewManager };
|
package/extensions-api.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ManifestTypes, ManifestKind, ManifestTypeMap, ManifestBase, SpecificManifestTypeOrManifestBase, ManifestElement, ManifestElementWithElementName, ManifestClass } from './extensions-registry';
|
|
3
|
-
import { UmbContextToken } from './context-api';
|
|
4
|
-
import { PageComponent } from './router';
|
|
5
|
-
import { UmbControllerHostElement } from './controller';
|
|
6
|
-
|
|
7
|
-
declare class UmbExtensionRegistry {
|
|
8
|
-
private _extensions;
|
|
9
|
-
readonly extensions: Observable<ManifestTypes[]>;
|
|
10
|
-
private _kinds;
|
|
11
|
-
readonly kinds: Observable<ManifestKind[]>;
|
|
12
|
-
defineKind(kind: ManifestKind): void;
|
|
13
|
-
register(manifest: ManifestTypes | ManifestKind): void;
|
|
14
|
-
unregister(alias: string): void;
|
|
15
|
-
isRegistered(alias: string): boolean;
|
|
16
|
-
private _kindsOfType;
|
|
17
|
-
private _extensionsOfType;
|
|
18
|
-
private _kindsOfTypes;
|
|
19
|
-
private _extensionsOfTypes;
|
|
20
|
-
getByTypeAndAlias<Key extends keyof ManifestTypeMap | string, T extends ManifestBase = SpecificManifestTypeOrManifestBase<Key>>(type: Key, alias: string): Observable<T | undefined>;
|
|
21
|
-
extensionsOfType<Key extends keyof ManifestTypeMap | string, T extends ManifestBase = SpecificManifestTypeOrManifestBase<Key>>(type: Key): Observable<T[]>;
|
|
22
|
-
extensionsOfTypes<ExtensionTypes extends ManifestBase = ManifestBase>(types: string[]): Observable<Array<ExtensionTypes>>;
|
|
23
|
-
}
|
|
24
|
-
declare const UMB_EXTENSION_REGISTRY_TOKEN: UmbContextToken<UmbExtensionRegistry>;
|
|
25
|
-
|
|
26
|
-
declare function createExtensionElement(manifest: ManifestElement): Promise<PageComponent>;
|
|
27
|
-
|
|
28
|
-
declare function hasDefaultExport<ConstructorType>(object: unknown): object is {
|
|
29
|
-
default: ConstructorType;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
type UmbEntrypointOnInit = (host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Interface containing supported life-cycle functions for ESModule entrypoints
|
|
35
|
-
*/
|
|
36
|
-
interface UmbEntrypointModule {
|
|
37
|
-
onInit: UmbEntrypointOnInit;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Validate if an ESModule exports a known init function called 'onInit'
|
|
42
|
-
*/
|
|
43
|
-
declare function hasInitExport(obj: unknown): obj is Pick<UmbEntrypointModule, 'onInit'>;
|
|
44
|
-
|
|
45
|
-
declare function isManifestElementNameType(manifest: unknown): manifest is ManifestElementWithElementName;
|
|
46
|
-
|
|
47
|
-
declare function isManifestElementableType(manifest: ManifestBase): manifest is ManifestElement;
|
|
48
|
-
|
|
49
|
-
type ManifestLoaderType = ManifestElement & {
|
|
50
|
-
loader: () => Promise<object | HTMLElement>;
|
|
51
|
-
};
|
|
52
|
-
type ManifestJSType = ManifestElement & {
|
|
53
|
-
js: string;
|
|
54
|
-
};
|
|
55
|
-
declare function loadExtension(manifest: ManifestElement): Promise<object | HTMLElement | null>;
|
|
56
|
-
|
|
57
|
-
declare function isManifestJSType(manifest: ManifestBase | unknown): manifest is ManifestJSType;
|
|
58
|
-
|
|
59
|
-
declare function isManifestLoaderType(manifest: ManifestBase): manifest is ManifestLoaderType;
|
|
60
|
-
|
|
61
|
-
declare function createExtensionElementOrFallback(manifest: any, fallbackElementName: string): Promise<HTMLElement | undefined>;
|
|
62
|
-
|
|
63
|
-
declare function createExtensionClass<T = unknown>(manifest: ManifestClass, constructorArguments: unknown[]): Promise<T | undefined>;
|
|
64
|
-
|
|
65
|
-
declare const umbExtensionsRegistry: UmbExtensionRegistry;
|
|
66
|
-
|
|
67
|
-
export { ManifestJSType, ManifestLoaderType, UMB_EXTENSION_REGISTRY_TOKEN, UmbEntrypointModule, UmbEntrypointOnInit, UmbExtensionRegistry, createExtensionClass, createExtensionElement, createExtensionElementOrFallback, hasDefaultExport, hasInitExport, isManifestElementNameType, isManifestElementableType, isManifestJSType, isManifestLoaderType, loadExtension, umbExtensionsRegistry };
|
package/extensions-registry.d.ts
DELETED
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { InterfaceLook, InterfaceColor } from '@umbraco-ui/uui-base/lib/types/index';
|
|
2
|
-
import { UmbWorkspaceAction } from './workspace';
|
|
3
|
-
import { ClassConstructor } from './models';
|
|
4
|
-
import { UmbStoreBase, UmbTreeStore } from './store';
|
|
5
|
-
import { UmbExtensionRegistry } from './extensions-api';
|
|
6
|
-
import { UmbControllerHostElement } from './controller';
|
|
7
|
-
|
|
8
|
-
interface ManifestCollectionView extends ManifestElement, ManifestWithConditions<ConditionsCollectionView> {
|
|
9
|
-
type: 'collectionView';
|
|
10
|
-
meta: MetaCollectionView;
|
|
11
|
-
}
|
|
12
|
-
interface MetaCollectionView {
|
|
13
|
-
label: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
pathName: string;
|
|
16
|
-
}
|
|
17
|
-
interface ConditionsCollectionView {
|
|
18
|
-
entityType: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface ManifestDashboard extends ManifestElement, ManifestWithConditions<ConditionsDashboard> {
|
|
22
|
-
type: 'dashboard';
|
|
23
|
-
meta: MetaDashboard;
|
|
24
|
-
}
|
|
25
|
-
interface MetaDashboard {
|
|
26
|
-
pathname: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
}
|
|
29
|
-
interface ConditionsDashboard {
|
|
30
|
-
sections: string[];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface ManifestDashboardCollection extends ManifestBase {
|
|
34
|
-
type: 'dashboardCollection';
|
|
35
|
-
meta: MetaDashboardCollection;
|
|
36
|
-
conditions: ConditionsDashboardCollection;
|
|
37
|
-
}
|
|
38
|
-
interface MetaDashboardCollection {
|
|
39
|
-
pathname: string;
|
|
40
|
-
label?: string;
|
|
41
|
-
repositoryAlias: string;
|
|
42
|
-
}
|
|
43
|
-
interface ConditionsDashboardCollection {
|
|
44
|
-
sections: string[];
|
|
45
|
-
entityType: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface ManifestEntityAction extends ManifestElement {
|
|
49
|
-
type: 'entityAction';
|
|
50
|
-
meta: MetaEntityAction;
|
|
51
|
-
conditions: ConditionsEntityAction;
|
|
52
|
-
}
|
|
53
|
-
interface MetaEntityAction {
|
|
54
|
-
icon?: string;
|
|
55
|
-
label: string;
|
|
56
|
-
api: any;
|
|
57
|
-
repositoryAlias: string;
|
|
58
|
-
}
|
|
59
|
-
interface ConditionsEntityAction {
|
|
60
|
-
entityType: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface ManifestEntityBulkAction extends ManifestElement, ManifestWithConditions<ConditionsEntityBulkAction> {
|
|
64
|
-
type: 'entityBulkAction';
|
|
65
|
-
meta: MetaEntityBulkAction;
|
|
66
|
-
}
|
|
67
|
-
interface MetaEntityBulkAction {
|
|
68
|
-
label: string;
|
|
69
|
-
api: any;
|
|
70
|
-
repositoryAlias: string;
|
|
71
|
-
}
|
|
72
|
-
interface ConditionsEntityBulkAction {
|
|
73
|
-
entityType: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
interface ManifestExternalLoginProvider extends ManifestElement {
|
|
77
|
-
type: 'externalLoginProvider';
|
|
78
|
-
meta: MetaExternalLoginProvider;
|
|
79
|
-
}
|
|
80
|
-
interface MetaExternalLoginProvider {
|
|
81
|
-
label: string;
|
|
82
|
-
pathname: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface ManifestHeaderApp extends ManifestElement {
|
|
86
|
-
type: 'headerApp';
|
|
87
|
-
}
|
|
88
|
-
interface MetaHeaderApp {
|
|
89
|
-
pathname: string;
|
|
90
|
-
label: string;
|
|
91
|
-
icon: string;
|
|
92
|
-
}
|
|
93
|
-
interface ManifestHeaderAppButtonKind extends ManifestHeaderApp {
|
|
94
|
-
type: 'headerApp';
|
|
95
|
-
kind: 'button';
|
|
96
|
-
meta: MetaHeaderAppButtonKind;
|
|
97
|
-
}
|
|
98
|
-
interface MetaHeaderAppButtonKind {
|
|
99
|
-
href: string;
|
|
100
|
-
label: string;
|
|
101
|
-
icon: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface ManifestHealthCheck extends ManifestElement {
|
|
105
|
-
type: 'healthCheck';
|
|
106
|
-
meta: MetaHealthCheck;
|
|
107
|
-
}
|
|
108
|
-
interface MetaHealthCheck {
|
|
109
|
-
label: string;
|
|
110
|
-
api: any;
|
|
111
|
-
}
|
|
112
|
-
interface HealthCheck {
|
|
113
|
-
alias: string;
|
|
114
|
-
name: string;
|
|
115
|
-
description: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
interface ManifestPackageView extends ManifestElement {
|
|
119
|
-
type: 'packageView';
|
|
120
|
-
meta: MetaPackageView;
|
|
121
|
-
}
|
|
122
|
-
interface MetaPackageView {
|
|
123
|
-
packageName: string;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface ManifestPropertyAction extends ManifestElement, ManifestWithConditions<ConditionsPropertyAction> {
|
|
127
|
-
type: 'propertyAction';
|
|
128
|
-
}
|
|
129
|
-
interface ConditionsPropertyAction {
|
|
130
|
-
propertyEditors: string[];
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
interface ManifestPropertyEditorUI extends ManifestElement {
|
|
134
|
-
type: 'propertyEditorUI';
|
|
135
|
-
meta: MetaPropertyEditorUI;
|
|
136
|
-
}
|
|
137
|
-
interface MetaPropertyEditorUI {
|
|
138
|
-
label: string;
|
|
139
|
-
propertyEditorModel: string;
|
|
140
|
-
icon: string;
|
|
141
|
-
group: string;
|
|
142
|
-
config?: PropertyEditorConfig;
|
|
143
|
-
supportsReadOnly?: boolean;
|
|
144
|
-
}
|
|
145
|
-
interface ManifestPropertyEditorModel extends ManifestBase {
|
|
146
|
-
type: 'propertyEditorModel';
|
|
147
|
-
meta: MetaPropertyEditorModel;
|
|
148
|
-
}
|
|
149
|
-
interface MetaPropertyEditorModel {
|
|
150
|
-
config?: PropertyEditorConfig;
|
|
151
|
-
}
|
|
152
|
-
interface PropertyEditorConfig {
|
|
153
|
-
properties: PropertyEditorConfigProperty[];
|
|
154
|
-
defaultData?: PropertyEditorConfigDefaultData[];
|
|
155
|
-
}
|
|
156
|
-
interface PropertyEditorConfigProperty {
|
|
157
|
-
label: string;
|
|
158
|
-
description?: string;
|
|
159
|
-
alias: string;
|
|
160
|
-
propertyEditorUI: string;
|
|
161
|
-
}
|
|
162
|
-
interface PropertyEditorConfigDefaultData {
|
|
163
|
-
alias: string;
|
|
164
|
-
value: any;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface ManifestSection extends ManifestElement {
|
|
168
|
-
type: 'section';
|
|
169
|
-
meta: MetaSection;
|
|
170
|
-
}
|
|
171
|
-
interface MetaSection {
|
|
172
|
-
label: string;
|
|
173
|
-
pathname: string;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface ManifestSectionView extends ManifestElement, ManifestWithConditions<ConditionsSectionView> {
|
|
177
|
-
type: 'sectionView';
|
|
178
|
-
meta: MetaSectionView;
|
|
179
|
-
}
|
|
180
|
-
interface MetaSectionView {
|
|
181
|
-
label: string;
|
|
182
|
-
pathname: string;
|
|
183
|
-
icon: string;
|
|
184
|
-
}
|
|
185
|
-
interface ConditionsSectionView {
|
|
186
|
-
sections: Array<string>;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
interface ManifestSectionSidebarApp extends ManifestElement {
|
|
190
|
-
type: 'sectionSidebarApp';
|
|
191
|
-
conditions: ConditionsSectionSidebarApp;
|
|
192
|
-
}
|
|
193
|
-
interface ConditionsSectionSidebarApp {
|
|
194
|
-
sections: Array<string>;
|
|
195
|
-
}
|
|
196
|
-
interface ManifestSectionSidebarAppMenuKind extends ManifestSectionSidebarApp {
|
|
197
|
-
type: 'sectionSidebarApp';
|
|
198
|
-
kind: 'menu';
|
|
199
|
-
meta: MetaSectionSidebarAppMenuKind;
|
|
200
|
-
}
|
|
201
|
-
interface MetaSectionSidebarAppMenuKind {
|
|
202
|
-
label: string;
|
|
203
|
-
menu: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface ManifestMenu extends ManifestElement {
|
|
207
|
-
type: 'menu';
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
interface ManifestMenuItem extends ManifestElement {
|
|
211
|
-
type: 'menuItem';
|
|
212
|
-
meta: MetaMenuItem;
|
|
213
|
-
conditions: ConditionsMenuItem;
|
|
214
|
-
}
|
|
215
|
-
interface MetaMenuItem {
|
|
216
|
-
label: string;
|
|
217
|
-
icon: string;
|
|
218
|
-
entityType?: string;
|
|
219
|
-
}
|
|
220
|
-
interface ConditionsMenuItem {
|
|
221
|
-
menus: Array<string>;
|
|
222
|
-
}
|
|
223
|
-
interface ManifestMenuItemTreeKind extends ManifestMenuItem {
|
|
224
|
-
type: 'menuItem';
|
|
225
|
-
kind: 'tree';
|
|
226
|
-
meta: MetaMenuItemTreeKind;
|
|
227
|
-
}
|
|
228
|
-
interface MetaMenuItemTreeKind {
|
|
229
|
-
treeAlias: string;
|
|
230
|
-
label: string;
|
|
231
|
-
icon: string;
|
|
232
|
-
entityType?: string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
interface ManifestTheme extends ManifestWithLoader<string> {
|
|
236
|
-
type: 'theme';
|
|
237
|
-
css?: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
interface ManifestTree extends ManifestBase {
|
|
241
|
-
type: 'tree';
|
|
242
|
-
meta: MetaTree;
|
|
243
|
-
}
|
|
244
|
-
interface MetaTree {
|
|
245
|
-
repositoryAlias: string;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
interface ManifestTreeItem extends ManifestElement {
|
|
249
|
-
type: 'treeItem';
|
|
250
|
-
conditions: ConditionsTreeItem;
|
|
251
|
-
}
|
|
252
|
-
interface ConditionsTreeItem {
|
|
253
|
-
entityType: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
interface ManifestUserProfileApp extends ManifestElement {
|
|
257
|
-
type: 'userProfileApp';
|
|
258
|
-
meta: MetaUserProfileApp;
|
|
259
|
-
}
|
|
260
|
-
interface MetaUserProfileApp {
|
|
261
|
-
label: string;
|
|
262
|
-
pathname: string;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface ManifestWorkspace extends ManifestElement {
|
|
266
|
-
type: 'workspace';
|
|
267
|
-
meta: MetaEditor;
|
|
268
|
-
}
|
|
269
|
-
interface MetaEditor {
|
|
270
|
-
entityType: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
interface ManifestWorkspaceAction extends ManifestElement {
|
|
274
|
-
type: 'workspaceAction';
|
|
275
|
-
meta: MetaWorkspaceAction;
|
|
276
|
-
conditions: ConditionsWorkspaceAction;
|
|
277
|
-
}
|
|
278
|
-
interface MetaWorkspaceAction {
|
|
279
|
-
label?: string;
|
|
280
|
-
look?: InterfaceLook;
|
|
281
|
-
color?: InterfaceColor;
|
|
282
|
-
api: ClassConstructor<UmbWorkspaceAction>;
|
|
283
|
-
}
|
|
284
|
-
interface ConditionsWorkspaceAction {
|
|
285
|
-
workspaces: Array<string>;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
interface ManifestWorkspaceView extends ManifestWithView {
|
|
289
|
-
type: 'workspaceView';
|
|
290
|
-
meta: MetaWorkspaceView;
|
|
291
|
-
conditions: ConditionsWorkspaceView;
|
|
292
|
-
}
|
|
293
|
-
interface MetaWorkspaceView {
|
|
294
|
-
pathname: string;
|
|
295
|
-
label: string;
|
|
296
|
-
icon: string;
|
|
297
|
-
}
|
|
298
|
-
interface ConditionsWorkspaceView {
|
|
299
|
-
workspaces: string[];
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
interface ManifestWorkspaceViewCollection extends ManifestBase, ManifestWithConditions<ConditionsEditorViewCollection> {
|
|
303
|
-
type: 'workspaceViewCollection';
|
|
304
|
-
meta: MetaEditorViewCollection;
|
|
305
|
-
}
|
|
306
|
-
interface MetaEditorViewCollection {
|
|
307
|
-
pathname: string;
|
|
308
|
-
label: string;
|
|
309
|
-
icon: string;
|
|
310
|
-
entityType: string;
|
|
311
|
-
storeAlias?: string;
|
|
312
|
-
repositoryAlias?: string;
|
|
313
|
-
}
|
|
314
|
-
interface ConditionsEditorViewCollection {
|
|
315
|
-
workspaces: string[];
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
interface ManifestRepository extends ManifestClass {
|
|
319
|
-
type: 'repository';
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
interface ManifestModal extends ManifestElement {
|
|
323
|
-
type: 'modal';
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
interface ManifestStore extends ManifestClass<UmbStoreBase> {
|
|
327
|
-
type: 'store';
|
|
328
|
-
}
|
|
329
|
-
interface ManifestTreeStore extends ManifestClass<UmbTreeStore> {
|
|
330
|
-
type: 'treeStore';
|
|
331
|
-
}
|
|
332
|
-
|
|
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;
|
|
334
|
-
type ManifestStandardTypes = ManifestTypes['type'];
|
|
335
|
-
type ManifestTypeMap = {
|
|
336
|
-
[Manifest in ManifestTypes as Manifest['type']]: Manifest;
|
|
337
|
-
};
|
|
338
|
-
type SpecificManifestTypeOrManifestBase<T extends keyof ManifestTypeMap | string> = T extends keyof ManifestTypeMap ? ManifestTypeMap[T] : ManifestBase;
|
|
339
|
-
interface ManifestBase {
|
|
340
|
-
type: string;
|
|
341
|
-
alias: string;
|
|
342
|
-
kind?: any;
|
|
343
|
-
name: string;
|
|
344
|
-
weight?: number;
|
|
345
|
-
}
|
|
346
|
-
interface ManifestKind {
|
|
347
|
-
type: 'kind';
|
|
348
|
-
alias: string;
|
|
349
|
-
matchType: string;
|
|
350
|
-
matchKind: string;
|
|
351
|
-
manifest: Partial<ManifestTypes>;
|
|
352
|
-
}
|
|
353
|
-
interface ManifestWithConditions<ConditionsType> {
|
|
354
|
-
conditions: ConditionsType;
|
|
355
|
-
}
|
|
356
|
-
interface ManifestWithLoader<LoaderReturnType> extends ManifestBase {
|
|
357
|
-
loader?: () => Promise<LoaderReturnType>;
|
|
358
|
-
}
|
|
359
|
-
interface ManifestClass<T = unknown> extends ManifestWithLoader<object> {
|
|
360
|
-
js?: string;
|
|
361
|
-
className?: string;
|
|
362
|
-
class?: ClassConstructor<T>;
|
|
363
|
-
}
|
|
364
|
-
interface ManifestClassWithClassConstructor extends ManifestClass {
|
|
365
|
-
class: ClassConstructor<unknown>;
|
|
366
|
-
}
|
|
367
|
-
interface ManifestElement extends ManifestWithLoader<object | HTMLElement> {
|
|
368
|
-
js?: string;
|
|
369
|
-
elementName?: string;
|
|
370
|
-
meta?: any;
|
|
371
|
-
}
|
|
372
|
-
interface ManifestWithView extends ManifestElement {
|
|
373
|
-
meta: MetaManifestWithView;
|
|
374
|
-
}
|
|
375
|
-
interface MetaManifestWithView {
|
|
376
|
-
pathname: string;
|
|
377
|
-
label: string;
|
|
378
|
-
icon: string;
|
|
379
|
-
}
|
|
380
|
-
interface ManifestElementWithElementName extends ManifestElement {
|
|
381
|
-
elementName: string;
|
|
382
|
-
}
|
|
383
|
-
interface ManifestWithMeta extends ManifestBase {
|
|
384
|
-
meta: unknown;
|
|
385
|
-
}
|
|
386
|
-
interface ManifestEntrypoint extends ManifestBase {
|
|
387
|
-
type: 'entrypoint';
|
|
388
|
-
js: string;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
declare class UmbEntryPointExtensionInitializer {
|
|
392
|
-
#private;
|
|
393
|
-
constructor(rootHost: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry);
|
|
394
|
-
instantiateEntryPoint(manifest: ManifestEntrypoint): void;
|
|
395
|
-
}
|
|
396
|
-
|
|
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 };
|
package/property-editor.d.ts
DELETED