@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/element.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HTMLElementConstructor } from './models';
3
- import { UmbControllerHostInterface } from './controller';
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 UmbControllerHostInterface {
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>;
@@ -1,15 +1,15 @@
1
- import { UmbControllerHostInterface } from './controller';
1
+ import { UmbControllerHostElement } from './controller';
2
2
  import { UmbEntityActionBase as UmbEntityActionBase$1 } from './entity-action';
3
3
 
4
4
  interface UmbAction<RepositoryType = unknown> {
5
- host: UmbControllerHostInterface;
5
+ host: UmbControllerHostElement;
6
6
  repository: RepositoryType;
7
7
  execute(): Promise<void>;
8
8
  }
9
9
  declare class UmbActionBase<RepositoryType> {
10
- host: UmbControllerHostInterface;
10
+ host: UmbControllerHostElement;
11
11
  repository?: RepositoryType;
12
- constructor(host: UmbControllerHostInterface, repositoryAlias: string);
12
+ constructor(host: UmbControllerHostElement, repositoryAlias: string);
13
13
  }
14
14
 
15
15
  interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
@@ -17,7 +17,7 @@ interface UmbEntityAction<RepositoryType> extends UmbAction<RepositoryType> {
17
17
  }
18
18
  declare class UmbEntityActionBase<RepositoryType> extends UmbActionBase<RepositoryType> {
19
19
  unique: string;
20
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
20
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
21
21
  }
22
22
 
23
23
  interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<RepositoryType> {
@@ -26,14 +26,14 @@ interface UmbEntityBulkAction<RepositoryType = unknown> extends UmbAction<Reposi
26
26
  }
27
27
  declare class UmbEntityBulkActionBase<RepositoryType = unknown> extends UmbActionBase<RepositoryType> {
28
28
  selection: Array<string>;
29
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, selection: Array<string>);
29
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, selection: Array<string>);
30
30
  setSelection(selection: Array<string>): void;
31
31
  }
32
32
 
33
33
  declare class UmbCopyEntityAction<T extends {
34
34
  copy(): Promise<void>;
35
35
  }> extends UmbEntityActionBase$1<T> {
36
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
36
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
37
37
  execute(): Promise<void>;
38
38
  }
39
39
 
@@ -42,21 +42,21 @@ declare class UmbDeleteEntityAction<T extends {
42
42
  requestItems(uniques: Array<string>): any;
43
43
  }> extends UmbEntityActionBase$1<T> {
44
44
  #private;
45
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
45
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
46
46
  execute(): Promise<void>;
47
47
  }
48
48
 
49
49
  declare class UmbMoveEntityAction<T extends {
50
50
  move(): Promise<void>;
51
51
  }> extends UmbEntityActionBase$1<T> {
52
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
52
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
53
53
  execute(): Promise<void>;
54
54
  }
55
55
 
56
56
  declare class UmbSortChildrenOfEntityAction<T extends {
57
57
  sortChildrenOf(): Promise<void>;
58
58
  }> extends UmbEntityActionBase$1<T> {
59
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
59
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
60
60
  execute(): Promise<void>;
61
61
  }
62
62
 
@@ -65,7 +65,7 @@ declare class UmbTrashEntityAction<T extends {
65
65
  requestTreeItems(uniques: Array<string>): any;
66
66
  }> extends UmbEntityActionBase$1<T> {
67
67
  #private;
68
- constructor(host: UmbControllerHostInterface, repositoryAlias: string, unique: string);
68
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
69
69
  execute(): Promise<void>;
70
70
  }
71
71
 
@@ -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 { UmbControllerHostInterface } from './controller';
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: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry) => void;
31
+ type UmbEntrypointOnInit = (host: UmbControllerHostElement, extensionRegistry: UmbExtensionRegistry) => void;
32
32
  /**
33
33
  * Interface containing supported life-cycle functions for ESModule entrypoints
34
34
  */
@@ -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 { UmbStoreBase, UmbTreeStoreBase } from './store';
3
+ import { ClassConstructor } from './models';
4
+ import { UmbStoreBase, UmbTreeStore } from './store';
5
5
  import { UmbExtensionRegistry } from './extensions-api';
6
- import { UmbControllerHostInterface } from './controller';
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
- storeAlias?: string;
246
- repository?: ClassConstructor<unknown>;
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 ManifestUserDashboard extends ManifestElement {
250
- type: 'userDashboard';
251
- meta: MetaUserDashboard;
256
+ interface ManifestUserProfileApp extends ManifestElement {
257
+ type: 'userProfileApp';
258
+ meta: MetaUserProfileApp;
252
259
  }
253
- interface MetaUserDashboard {
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<UmbTreeStoreBase> {
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 | ManifestUserDashboard | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestBase;
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: UmbControllerHostInterface, extensionRegistry: UmbExtensionRegistry);
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, ManifestUserDashboard, 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, MetaUserDashboard, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
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 };