@umbraco-cms/backoffice 1.0.0-next.99fe12c7 → 1.0.0-next.c1172939

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.
@@ -183,6 +183,10 @@
183
183
  }
184
184
  ]
185
185
  },
186
+ {
187
+ "name": "umb-document-menu-item",
188
+ "path": "./src/backoffice/documents/documents/menu-item/document-menu-item.element.ts"
189
+ },
186
190
  {
187
191
  "name": "umb-document-picker-modal",
188
192
  "path": "./src/backoffice/documents/documents/modals/document-picker/document-picker-modal.element.ts",
@@ -195,8 +199,18 @@
195
199
  ]
196
200
  },
197
201
  {
198
- "name": "umb-document-sidebar-menu-item",
199
- "path": "./src/backoffice/documents/documents/sidebar-menu-item/document-sidebar-menu-item.element.ts"
202
+ "name": "umb-document-tree-item",
203
+ "path": "./src/backoffice/documents/documents/tree/tree-item/document-tree-item.element.ts",
204
+ "properties": [
205
+ {
206
+ "name": "styles",
207
+ "type": "CSSResult[]",
208
+ "default": "[\"UUITextStyles\",null]"
209
+ },
210
+ {
211
+ "name": "item"
212
+ }
213
+ ]
200
214
  },
201
215
  {
202
216
  "name": "umb-document-workspace-edit",
@@ -1337,10 +1351,6 @@
1337
1351
  }
1338
1352
  ]
1339
1353
  },
1340
- {
1341
- "name": "umb-relation-types-menu-item",
1342
- "path": "./src/backoffice/settings/relation-types/menu-item/relation-types-menu-item.element.ts"
1343
- },
1344
1354
  {
1345
1355
  "name": "umb-relation-type-workspace-edit-element",
1346
1356
  "path": "./src/backoffice/settings/relation-types/workspace/relation-type-workspace-edit.element.ts",
@@ -2146,6 +2156,10 @@
2146
2156
  "type": "(manifest: any) => boolean",
2147
2157
  "default": "\"() => true\""
2148
2158
  },
2159
+ {
2160
+ "name": "props",
2161
+ "type": "Record<string, any> | undefined"
2162
+ },
2149
2163
  {
2150
2164
  "name": "defaultElement",
2151
2165
  "attribute": "default-element",
@@ -4040,77 +4054,41 @@
4040
4054
  ]
4041
4055
  },
4042
4056
  {
4043
- "name": "umb-tree-item",
4044
- "path": "./src/backoffice/shared/components/tree/tree-item.element.ts",
4045
- "attributes": [
4046
- {
4047
- "name": "key",
4048
- "type": "string",
4049
- "default": "\"\""
4050
- },
4051
- {
4052
- "name": "parentKey",
4053
- "type": "string | null"
4054
- },
4055
- {
4056
- "name": "label",
4057
- "type": "string",
4058
- "default": "\"\""
4059
- },
4060
- {
4061
- "name": "icon",
4062
- "type": "string",
4063
- "default": "\"\""
4064
- },
4057
+ "name": "umb-entity-tree-item",
4058
+ "path": "./src/backoffice/shared/components/tree/entity-tree-item/entity-tree-item.element.ts",
4059
+ "properties": [
4065
4060
  {
4066
- "name": "entityType",
4067
- "type": "string"
4061
+ "name": "styles",
4062
+ "type": "CSSResult[]",
4063
+ "default": "[\"UUITextStyles\",null]"
4068
4064
  },
4069
4065
  {
4070
- "name": "has-children",
4071
- "type": "boolean",
4072
- "default": "false"
4066
+ "name": "item"
4073
4067
  }
4074
- ],
4068
+ ]
4069
+ },
4070
+ {
4071
+ "name": "umb-tree-item-base",
4072
+ "path": "./src/backoffice/shared/components/tree/tree-item-base/tree-item-base.element.ts",
4075
4073
  "properties": [
4076
4074
  {
4077
4075
  "name": "styles",
4078
4076
  "type": "CSSResult[]",
4079
4077
  "default": "[\"UUITextStyles\",null]"
4080
- },
4081
- {
4082
- "name": "key",
4083
- "attribute": "key",
4084
- "type": "string",
4085
- "default": "\"\""
4086
- },
4087
- {
4088
- "name": "parentKey",
4089
- "attribute": "parentKey",
4090
- "type": "string | null"
4091
- },
4092
- {
4093
- "name": "label",
4094
- "attribute": "label",
4095
- "type": "string",
4096
- "default": "\"\""
4097
- },
4098
- {
4099
- "name": "icon",
4100
- "attribute": "icon",
4101
- "type": "string",
4102
- "default": "\"\""
4103
- },
4078
+ }
4079
+ ]
4080
+ },
4081
+ {
4082
+ "name": "umb-tree-item",
4083
+ "path": "./src/backoffice/shared/components/tree/tree-item/tree-item.element.ts",
4084
+ "properties": [
4104
4085
  {
4105
- "name": "entityType",
4106
- "attribute": "entityType",
4107
- "type": "string"
4086
+ "name": "styles",
4087
+ "type": "CSSResult[]",
4088
+ "default": "[\"UUITextStyles\",null]"
4108
4089
  },
4109
4090
  {
4110
- "name": "hasChildren",
4111
- "attribute": "has-children",
4112
- "type": "boolean",
4113
- "default": "false"
4091
+ "name": "item"
4114
4092
  }
4115
4093
  ]
4116
4094
  },
@@ -6538,6 +6516,42 @@
6538
6516
  }
6539
6517
  ]
6540
6518
  },
6519
+ {
6520
+ "name": "umb-file-system-tree-item",
6521
+ "path": "./src/backoffice/templating/components/file-system-tree-item/file-system-tree-item.element.ts",
6522
+ "properties": [
6523
+ {
6524
+ "name": "styles",
6525
+ "type": "CSSResult[]",
6526
+ "default": "[\"UUITextStyles\",null]"
6527
+ },
6528
+ {
6529
+ "name": "item"
6530
+ }
6531
+ ]
6532
+ },
6533
+ {
6534
+ "name": "umb-stylesheet-workspace-edit",
6535
+ "path": "./src/backoffice/templating/stylesheets/workspace/stylesheet-workspace-edit.element.ts",
6536
+ "properties": [
6537
+ {
6538
+ "name": "styles",
6539
+ "type": "CSSResult[]",
6540
+ "default": "[\"UUITextStyles\",null]"
6541
+ }
6542
+ ]
6543
+ },
6544
+ {
6545
+ "name": "umb-stylesheet-workspace",
6546
+ "path": "./src/backoffice/templating/stylesheets/workspace/stylesheet-workspace.element.ts",
6547
+ "properties": [
6548
+ {
6549
+ "name": "styles",
6550
+ "type": "CSSResult[]",
6551
+ "default": "[\"UUITextStyles\",null]"
6552
+ }
6553
+ ]
6554
+ },
6541
6555
  {
6542
6556
  "name": "umb-template-workspace",
6543
6557
  "path": "./src/backoffice/templating/templates/workspace/template-workspace.element.ts",
@@ -1,7 +1,7 @@
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
6
  import { UmbControllerHostInterface } from './controller';
7
7
 
@@ -242,8 +242,15 @@ 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
256
  interface ManifestUserDashboard extends ManifestElement {
@@ -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 | ManifestUserDashboard | 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;
@@ -387,4 +394,4 @@ declare class UmbEntryPointExtensionInitializer {
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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
- "version": "1.0.0-next.99fe12c7",
3
+ "version": "1.0.0-next.c1172939",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "umbraco",
package/repository.d.ts CHANGED
@@ -1,12 +1,26 @@
1
- import { ProblemDetailsModel, PagedEntityTreeItemResponseModel, EntityTreeItemResponseModel } from './backend-api';
2
- import { Observable } from 'rxjs';
1
+ import { ProblemDetailsModel } from './backend-api';
3
2
  import { DataSourceResponse as DataSourceResponse$1 } from './repository';
3
+ import { Observable } from 'rxjs';
4
4
 
5
5
  interface DataSourceResponse<T = undefined> {
6
6
  data?: T;
7
7
  error?: ProblemDetailsModel;
8
8
  }
9
9
 
10
+ interface UmbDataSource<T> {
11
+ createScaffold(parentKey: string | null): Promise<DataSourceResponse$1<T>>;
12
+ get(key: string): Promise<DataSourceResponse$1<T>>;
13
+ insert(data: T): Promise<DataSourceResponse$1<T>>;
14
+ update(data: T): Promise<DataSourceResponse$1<T>>;
15
+ delete(key: string): Promise<DataSourceResponse$1<T>>;
16
+ }
17
+
18
+ interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
19
+ getRootItems(): Promise<DataSourceResponse$1<PagedItemsType>>;
20
+ getChildrenOf(parentUnique: string): Promise<DataSourceResponse$1<PagedItemsType>>;
21
+ getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemsType>>>;
22
+ }
23
+
10
24
  interface UmbDetailRepository<DetailType> {
11
25
  createScaffold(parentKey: string | null): Promise<{
12
26
  data?: DetailType;
@@ -27,39 +41,29 @@ interface UmbDetailRepository<DetailType> {
27
41
  }>;
28
42
  }
29
43
 
30
- interface UmbTreeRepository {
44
+ interface UmbPagedData<T> {
45
+ total: number;
46
+ items: Array<T>;
47
+ }
48
+ interface UmbTreeRepository<ItemType = any, PagedItemType = UmbPagedData<ItemType>> {
31
49
  requestRootTreeItems: () => Promise<{
32
- data: PagedEntityTreeItemResponseModel | undefined;
50
+ data: PagedItemType | undefined;
33
51
  error: ProblemDetailsModel | undefined;
34
- asObservable?: () => Observable<EntityTreeItemResponseModel[]>;
52
+ asObservable?: () => Observable<ItemType[]>;
35
53
  }>;
36
- requestTreeItemsOf: (parentKey: string | null) => Promise<{
37
- data: PagedEntityTreeItemResponseModel | undefined;
54
+ requestTreeItemsOf: (parentUnique: string | null) => Promise<{
55
+ data: PagedItemType | undefined;
38
56
  error: ProblemDetailsModel | undefined;
39
- asObservable?: () => Observable<EntityTreeItemResponseModel[]>;
57
+ asObservable?: () => Observable<ItemType[]>;
40
58
  }>;
41
- requestTreeItems: (keys: string[]) => Promise<{
42
- data: Array<EntityTreeItemResponseModel> | undefined;
59
+ requestTreeItems: (uniques: string[]) => Promise<{
60
+ data: Array<ItemType> | undefined;
43
61
  error: ProblemDetailsModel | undefined;
44
- asObservable?: () => Observable<EntityTreeItemResponseModel[]>;
62
+ asObservable?: () => Observable<ItemType[]>;
45
63
  }>;
46
- rootTreeItems: () => Promise<Observable<EntityTreeItemResponseModel[]>>;
47
- treeItemsOf: (parentKey: string | null) => Promise<Observable<EntityTreeItemResponseModel[]>>;
48
- treeItems: (keys: string[]) => Promise<Observable<EntityTreeItemResponseModel[]>>;
49
- }
50
-
51
- interface RepositoryTreeDataSource {
52
- getRootItems(): Promise<DataSourceResponse$1<PagedEntityTreeItemResponseModel>>;
53
- getChildrenOf(parentKey: string): Promise<DataSourceResponse$1<PagedEntityTreeItemResponseModel>>;
54
- getItems(key: Array<string>): Promise<DataSourceResponse$1<EntityTreeItemResponseModel[]>>;
55
- }
56
-
57
- interface RepositoryDetailDataSource<DetailType> {
58
- createScaffold(parentKey: string | null): Promise<DataSourceResponse$1<DetailType>>;
59
- get(key: string): Promise<DataSourceResponse$1<DetailType>>;
60
- insert(data: DetailType): Promise<DataSourceResponse$1<DetailType>>;
61
- update(data: DetailType): Promise<DataSourceResponse$1<DetailType>>;
62
- delete(key: string): Promise<DataSourceResponse$1<DetailType>>;
64
+ rootTreeItems: () => Promise<Observable<ItemType[]>>;
65
+ treeItemsOf: (parentUnique: string | null) => Promise<Observable<ItemType[]>>;
66
+ treeItems: (uniques: string[]) => Promise<Observable<ItemType[]>>;
63
67
  }
64
68
 
65
- export { DataSourceResponse, RepositoryDetailDataSource, RepositoryTreeDataSource, UmbDetailRepository, UmbTreeRepository };
69
+ export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbPagedData, UmbTreeDataSource, UmbTreeRepository };
package/store.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import { UmbControllerHostInterface } from './controller';
4
- import { EntityTreeItemResponseModel } from './backend-api';
5
- import { UmbStoreBase as UmbStoreBase$1 } from './store';
4
+ import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from './backend-api';
5
+ import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from './store';
6
6
 
7
7
  interface UmbDataStoreIdentifiers {
8
8
  key?: string;
@@ -11,24 +11,6 @@ interface UmbDataStoreIdentifiers {
11
11
  interface UmbDataStore {
12
12
  readonly storeAlias: string;
13
13
  }
14
- interface UmbTreeStore<T> extends UmbDataStore {
15
- getTreeRoot(): Observable<Array<T>>;
16
- getTreeItemChildren(key: string): Observable<Array<T>>;
17
- /**
18
- * @description - Trash data.
19
- * @param {string[]} keys
20
- * @return {*} {(Promise<void>)}
21
- * @memberof UmbTreeStore
22
- */
23
- trash(keys: string[]): Promise<void>;
24
- /**
25
- * @description - Move data.
26
- * @param {string[]} keys
27
- * @return {*} {(Promise<void>)}
28
- * @memberof UmbTreeStore
29
- */
30
- move(keys: string[], destination: string): Promise<void>;
31
- }
32
14
  interface UmbEntityDetailStore<T> extends UmbDataStore {
33
15
  /**
34
16
  * @description - Request scaffold data by entityType and . The data is added to the store and is returned as an Observable.
@@ -64,50 +46,114 @@ declare class UmbStoreBase {
64
46
 
65
47
  /**
66
48
  * @export
67
- * @class UmbTreeStoreBase
49
+ * @class UmbEntityTreeStore
68
50
  * @extends {UmbStoreBase}
69
51
  * @description - General Tree Data Store
70
52
  */
71
- declare class UmbTreeStoreBase extends UmbStoreBase$1 {
53
+ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<EntityTreeItemResponseModel> {
72
54
  #private;
73
55
  /**
74
56
  * Appends items to the store
75
- * @param {Array<EntityTreeItemModel>} items
76
- * @memberof UmbTreeStoreBase
57
+ * @param {Array<EntityTreeItemResponseModel>} items
58
+ * @memberof UmbEntityTreeStore
77
59
  */
78
60
  appendItems(items: Array<EntityTreeItemResponseModel>): void;
79
61
  /**
80
62
  * Updates an item in the store
81
63
  * @param {string} key
82
- * @param {Partial<EntityTreeItemModel>} data
83
- * @memberof UmbTreeStoreBase
64
+ * @param {Partial<EntityTreeItemResponseModel>} data
65
+ * @memberof UmbEntityTreeStore
84
66
  */
85
67
  updateItem(key: string, data: Partial<EntityTreeItemResponseModel>): void;
86
68
  /**
87
69
  * Removes an item from the store
88
70
  * @param {string} key
89
- * @memberof UmbTreeStoreBase
71
+ * @memberof UmbEntityTreeStore
90
72
  */
91
73
  removeItem(key: string): void;
92
74
  /**
93
75
  * An observable to observe the root items
94
- * @memberof UmbTreeStoreBase
76
+ * @memberof UmbEntityTreeStore
95
77
  */
96
78
  rootItems: rxjs.Observable<EntityTreeItemResponseModel[]>;
97
79
  /**
98
80
  * Returns an observable to observe the children of a given parent
99
81
  * @param {(string | null)} parentKey
100
82
  * @return {*}
101
- * @memberof UmbTreeStoreBase
83
+ * @memberof UmbEntityTreeStore
102
84
  */
103
85
  childrenOf(parentKey: string | null): rxjs.Observable<EntityTreeItemResponseModel[]>;
104
86
  /**
105
87
  * Returns an observable to observe the items with the given keys
106
88
  * @param {Array<string>} keys
107
89
  * @return {*}
108
- * @memberof UmbTreeStoreBase
90
+ * @memberof UmbEntityTreeStore
109
91
  */
110
92
  items(keys: Array<string>): rxjs.Observable<EntityTreeItemResponseModel[]>;
111
93
  }
112
94
 
113
- export { UmbContentStore, UmbDataStore, UmbDataStoreIdentifiers, UmbEntityDetailStore, UmbStoreBase, UmbTreeStore, UmbTreeStoreBase };
95
+ /**
96
+ * @export
97
+ * @class UmbFileSystemTreeStore
98
+ * @extends {UmbStoreBase}
99
+ * @description - General Tree Data Store
100
+ */
101
+ declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<FileSystemTreeItemPresentationModel> {
102
+ #private;
103
+ /**
104
+ * Appends items to the store
105
+ * @param {Array<FileSystemTreeItemPresentationModel>} items
106
+ * @memberof UmbFileSystemTreeStore
107
+ */
108
+ appendItems(items: Array<FileSystemTreeItemPresentationModel>): void;
109
+ /**
110
+ * Updates an item in the store
111
+ * @param {string} path
112
+ * @param {Partial<FileSystemTreeItemPresentationModel>} data
113
+ * @memberof UmbFileSystemTreeStore
114
+ */
115
+ updateItem(path: string, data: Partial<FileSystemTreeItemPresentationModel>): void;
116
+ /**
117
+ * Removes an item from the store
118
+ * @param {string} path
119
+ * @memberof UmbFileSystemTreeStore
120
+ */
121
+ removeItem(path: string): void;
122
+ /**
123
+ * An observable to observe the root items
124
+ * @memberof UmbFileSystemTreeStore
125
+ */
126
+ rootItems: rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
127
+ /**
128
+ * Returns an observable to observe the children of a given parent
129
+ * @param {(string | null)} parentPath
130
+ * @return {*}
131
+ * @memberof UmbFileSystemTreeStore
132
+ */
133
+ childrenOf(parentPath: string | null): rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
134
+ /**
135
+ * Returns an observable to observe the items with the given keys
136
+ * @param {Array<string>} paths
137
+ * @return {*}
138
+ * @memberof UmbFileSystemTreeStore
139
+ */
140
+ items(paths: Array<string>): rxjs.Observable<FileSystemTreeItemPresentationModel[]>;
141
+ }
142
+
143
+ type TreeItemPresentationModel = {
144
+ name?: string;
145
+ type?: string;
146
+ icon?: string;
147
+ hasChildren?: boolean;
148
+ };
149
+
150
+ interface UmbTreeStore<T extends TreeItemPresentationModel = any> {
151
+ appendItems: (items: Array<T>) => void;
152
+ updateItem: (unique: string, item: Partial<T>) => void;
153
+ removeItem: (unique: string) => void;
154
+ rootItems: Observable<Array<T>>;
155
+ childrenOf: (parentUnique: string | null) => Observable<Array<T>>;
156
+ items: (uniques: Array<string>) => Observable<Array<T>>;
157
+ }
158
+
159
+ export { UmbContentStore, UmbDataStore, UmbDataStoreIdentifiers, UmbEntityDetailStore, UmbEntityTreeStore, UmbFileSystemTreeStore, UmbStoreBase, UmbTreeStore };
@@ -80,13 +80,18 @@
80
80
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_items` {`any[] | undefined`} - \n\n * `_tableConfig` {`UmbTableConfig`} - \n\n * `_tableColumns` {`UmbTableColumn[]`} - \n\n * `_tableItems` {`UmbTableItem[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_collectionContext` - ",
81
81
  "attributes": []
82
82
  },
83
+ {
84
+ "name": "umb-document-menu-item",
85
+ "attributes": []
86
+ },
83
87
  {
84
88
  "name": "umb-document-picker-modal",
85
89
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - ",
86
90
  "attributes": []
87
91
  },
88
92
  {
89
- "name": "umb-document-sidebar-menu-item",
93
+ "name": "umb-document-tree-item",
94
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_item` - \n\n * `item` - ",
90
95
  "attributes": []
91
96
  },
92
97
  {
@@ -620,11 +625,6 @@
620
625
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_canShowLogs` {`boolean`} - ",
621
626
  "attributes": []
622
627
  },
623
- {
624
- "name": "umb-relation-types-menu-item",
625
- "description": "Properties:\n\n * `_renderTree` {`boolean`} - ",
626
- "attributes": []
627
- },
628
628
  {
629
629
  "name": "umb-relation-type-workspace-edit-element",
630
630
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_relationType` - ",
@@ -1061,7 +1061,7 @@
1061
1061
  },
1062
1062
  {
1063
1063
  "name": "umb-extension-slot",
1064
- "description": "Slots:\n\n * `default` {} - slot for inserting additional things into this slot.\n\nAttributes:\n\n * `type` {`string`} - \n\n * `default-element` {`string`} - \n\n * `renderMethod` - \n\nProperties:\n\n * `styles` - \n\n * `_extensions` {`InitializedExtension[]`} - \n\n * `type` {`string`} - \n\n * `filter` - \n\n * `defaultElement` {`string`} - \n\n * `renderMethod` - ",
1064
+ "description": "Slots:\n\n * `default` {} - slot for inserting additional things into this slot.\n\nAttributes:\n\n * `type` {`string`} - \n\n * `default-element` {`string`} - \n\n * `renderMethod` - \n\nProperties:\n\n * `styles` - \n\n * `_extensions` {`InitializedExtension[]`} - \n\n * `type` {`string`} - \n\n * `filter` - \n\n * `_props` - \n\n * `props` - \n\n * `defaultElement` {`string`} - \n\n * `renderMethod` - ",
1065
1065
  "attributes": [
1066
1066
  {
1067
1067
  "name": "type",
@@ -1729,37 +1729,20 @@
1729
1729
  }
1730
1730
  ]
1731
1731
  },
1732
+ {
1733
+ "name": "umb-entity-tree-item",
1734
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_item` - \n\n * `item` - ",
1735
+ "attributes": []
1736
+ },
1737
+ {
1738
+ "name": "umb-tree-item-base",
1739
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_item` - \n\n * `_childItems` {`any[] | undefined`} - \n\n * `_href` {`string | undefined`} - \n\n * `_isLoading` {`boolean`} - \n\n * `_isSelectable` {`boolean`} - \n\n * `_isSelected` {`boolean`} - \n\n * `_hasActions` {`boolean`} - \n\n * `_hasChildren` {`boolean`} - \n\n * `_iconSlotHasChildren` {`boolean`} - ",
1740
+ "attributes": []
1741
+ },
1732
1742
  {
1733
1743
  "name": "umb-tree-item",
1734
- "description": "Attributes:\n\n * `key` {`string`} - \n\n * `parentKey` {`string | null`} - \n\n * `label` {`string`} - \n\n * `icon` {`string`} - \n\n * `entityType` {`string`} - \n\n * `has-children` {`boolean`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `key` {`string`} - \n\n * `parentKey` {`string | null`} - \n\n * `label` {`string`} - \n\n * `icon` {`string`} - \n\n * `_entityType` {`string`} - \n\n * `entityType` {`string`} - \n\n * `hasChildren` {`boolean`} - \n\n * `_childItems` {`any[] | undefined`} - \n\n * `_href` {`string | undefined`} - \n\n * `_loading` {`boolean`} - \n\n * `_selectable` {`boolean`} - \n\n * `_selected` {`boolean`} - \n\n * `_isActive` {`boolean`} - \n\n * `_hasActions` {`boolean`} - \n\n * `_treeContext` - \n\n * `_store` - \n\n * `_sectionContext` - \n\n * `_sectionSidebarContext` - ",
1735
- "attributes": [
1736
- {
1737
- "name": "key",
1738
- "description": "`key` {`string`} - \n\nProperty: key\n\nDefault: "
1739
- },
1740
- {
1741
- "name": "parentKey",
1742
- "description": "`parentKey` {`string | null`} - \n\nProperty: parentKey\n\nDefault: null",
1743
- "values": []
1744
- },
1745
- {
1746
- "name": "label",
1747
- "description": "`label` {`string`} - \n\nProperty: label\n\nDefault: "
1748
- },
1749
- {
1750
- "name": "icon",
1751
- "description": "`icon` {`string`} - \n\nProperty: icon\n\nDefault: "
1752
- },
1753
- {
1754
- "name": "entityType",
1755
- "description": "`entityType` {`string`} - \n\nProperty: entityType"
1756
- },
1757
- {
1758
- "name": "has-children",
1759
- "description": "`has-children` {`boolean`} - \n\nProperty: hasChildren\n\nDefault: false",
1760
- "valueSet": "v"
1761
- }
1762
- ]
1744
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `item` - ",
1745
+ "attributes": []
1763
1746
  },
1764
1747
  {
1765
1748
  "name": "umb-menu-item-tree",
@@ -1773,7 +1756,7 @@
1773
1756
  },
1774
1757
  {
1775
1758
  "name": "umb-tree",
1776
- "description": "Events:\n\n * `selected` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `alias` {`string`} - \n\n * `selectable` {`boolean`} - \n\n * `selection` {`string[]`} - \n\nProperties:\n\n * `_alias` {`string`} - \n\n * `alias` {`string`} - \n\n * `_selectable` {`boolean`} - \n\n * `selectable` {`boolean`} - \n\n * `_selection` {`string[]`} - \n\n * `selection` {`string[]`} - \n\n * `_tree` - \n\n * `_items` {`any[]`} - \n\n * `_loading` {`boolean`} - \n\n * `_treeContext` - ",
1759
+ "description": "Events:\n\n * `selected` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `alias` {`string`} - \n\n * `selectable` {`boolean`} - \n\n * `selection` {`string[]`} - \n\nProperties:\n\n * `_alias` {`string`} - \n\n * `alias` {`string`} - \n\n * `_selectable` {`boolean`} - \n\n * `selectable` {`boolean`} - \n\n * `_selection` {`string[]`} - \n\n * `selection` {`string[]`} - \n\n * `_tree` - \n\n * `_items` {`any[]`} - \n\n * `_treeContext` - ",
1777
1760
  "attributes": [
1778
1761
  {
1779
1762
  "name": "alias",
@@ -2690,6 +2673,21 @@
2690
2673
  }
2691
2674
  ]
2692
2675
  },
2676
+ {
2677
+ "name": "umb-file-system-tree-item",
2678
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_item` - \n\n * `item` - ",
2679
+ "attributes": []
2680
+ },
2681
+ {
2682
+ "name": "umb-stylesheet-workspace-edit",
2683
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
2684
+ "attributes": []
2685
+ },
2686
+ {
2687
+ "name": "umb-stylesheet-workspace",
2688
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_routes` {`any[]`} - ",
2689
+ "attributes": []
2690
+ },
2693
2691
  {
2694
2692
  "name": "umb-template-workspace",
2695
2693
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_name` {`string | null | undefined`} - \n\n * `_content` {`string | null | undefined`} - \n\n * `_codeEditor` - ",
package/workspace.d.ts CHANGED
@@ -30,4 +30,4 @@ declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspace
30
30
  execute(): Promise<void>;
31
31
  }
32
32
 
33
- export { UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase };
33
+ export { UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContextInterface };